roughed in environment sparklines backend (#327)

This commit is contained in:
Michael Quigley
2023-05-12 11:57:34 -04:00
parent 6259b62a8a
commit 2655eaefc0
16 changed files with 908 additions and 51 deletions
+16
View File
@@ -8,6 +8,12 @@ export function configuration() {
return gateway.request(configurationOperation)
}
/**
*/
export function getAccountDetail() {
return gateway.request(getAccountDetailOperation)
}
/**
* @param {string} envZId
* @return {Promise<module:types.environmentShares>} ok
@@ -104,6 +110,16 @@ const configurationOperation = {
method: 'get'
}
const getAccountDetailOperation = {
path: '/detail/account',
method: 'get',
security: [
{
id: 'key'
}
]
}
const getEnvironmentDetailOperation = {
path: '/detail/environment/{envZId}',
method: 'get',
+9 -9
View File
@@ -87,7 +87,7 @@
* @property {string} host
* @property {string} address
* @property {string} zId
* @property {boolean} active
* @property {module:types.sparkData} activity
* @property {number} createdAt
* @property {number} updatedAt
*/
@@ -205,14 +205,6 @@
* @property {number} updatedAt
*/
/**
* @typedef sparkDataSample
* @memberof module:types
*
* @property {number} rx
* @property {number} tx
*/
/**
* @typedef shareRequest
* @memberof module:types
@@ -235,6 +227,14 @@
* @property {string} shrToken
*/
/**
* @typedef sparkDataSample
* @memberof module:types
*
* @property {number} rx
* @property {number} tx
*/
/**
* @typedef unaccessRequest
* @memberof module:types