@cirrobio/api-client 0.0.8-alpha → 0.0.9-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @cirrobio/api-client@0.0.
|
|
39
|
+
npm install @cirrobio/api-client@0.0.9-alpha --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/dist/apis/SystemApi.d.ts
CHANGED
|
@@ -33,12 +33,4 @@ export declare class SystemApi extends runtime.BaseAPI {
|
|
|
33
33
|
* Get system info
|
|
34
34
|
*/
|
|
35
35
|
info(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* Get system info
|
|
38
|
-
*/
|
|
39
|
-
info1Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfoResponse>>;
|
|
40
|
-
/**
|
|
41
|
-
* Get system info
|
|
42
|
-
*/
|
|
43
|
-
info1(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse>;
|
|
44
36
|
}
|
package/dist/apis/SystemApi.js
CHANGED
|
@@ -168,47 +168,6 @@ var SystemApi = /** @class */ (function (_super) {
|
|
|
168
168
|
});
|
|
169
169
|
});
|
|
170
170
|
};
|
|
171
|
-
/**
|
|
172
|
-
* Get system info
|
|
173
|
-
*/
|
|
174
|
-
SystemApi.prototype.info1Raw = function (initOverrides) {
|
|
175
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
176
|
-
var queryParameters, headerParameters, response;
|
|
177
|
-
return __generator(this, function (_a) {
|
|
178
|
-
switch (_a.label) {
|
|
179
|
-
case 0:
|
|
180
|
-
queryParameters = {};
|
|
181
|
-
headerParameters = {};
|
|
182
|
-
return [4 /*yield*/, this.request({
|
|
183
|
-
path: "/info/system",
|
|
184
|
-
method: 'GET',
|
|
185
|
-
headers: headerParameters,
|
|
186
|
-
query: queryParameters,
|
|
187
|
-
}, initOverrides)];
|
|
188
|
-
case 1:
|
|
189
|
-
response = _a.sent();
|
|
190
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SystemInfoResponseFromJSON)(jsonValue); })];
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
* Get system info
|
|
197
|
-
*/
|
|
198
|
-
SystemApi.prototype.info1 = function (initOverrides) {
|
|
199
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
-
var response;
|
|
201
|
-
return __generator(this, function (_a) {
|
|
202
|
-
switch (_a.label) {
|
|
203
|
-
case 0: return [4 /*yield*/, this.info1Raw(initOverrides)];
|
|
204
|
-
case 1:
|
|
205
|
-
response = _a.sent();
|
|
206
|
-
return [4 /*yield*/, response.value()];
|
|
207
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
};
|
|
212
171
|
return SystemApi;
|
|
213
172
|
}(runtime.BaseAPI));
|
|
214
173
|
exports.SystemApi = SystemApi;
|
|
@@ -20,7 +20,6 @@ var runtime_1 = require("../runtime");
|
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfMetricRecord(value) {
|
|
22
22
|
var isInstance = true;
|
|
23
|
-
isInstance = isInstance && "date" in value;
|
|
24
23
|
isInstance = isInstance && "unit" in value;
|
|
25
24
|
return isInstance;
|
|
26
25
|
}
|
|
@@ -34,7 +33,7 @@ function MetricRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
33
|
return json;
|
|
35
34
|
}
|
|
36
35
|
return {
|
|
37
|
-
'date': (
|
|
36
|
+
'date': !(0, runtime_1.exists)(json, 'date') ? undefined : json['date'],
|
|
38
37
|
'unit': json['unit'],
|
|
39
38
|
'services': !(0, runtime_1.exists)(json, 'services') ? undefined : json['services'],
|
|
40
39
|
};
|
|
@@ -48,7 +47,7 @@ function MetricRecordToJSON(value) {
|
|
|
48
47
|
return null;
|
|
49
48
|
}
|
|
50
49
|
return {
|
|
51
|
-
'date':
|
|
50
|
+
'date': value.date,
|
|
52
51
|
'unit': value.unit,
|
|
53
52
|
'services': value.services,
|
|
54
53
|
};
|
package/package.json
CHANGED
package/src/apis/SystemApi.ts
CHANGED
|
@@ -92,30 +92,4 @@ export class SystemApi extends runtime.BaseAPI {
|
|
|
92
92
|
return await response.value();
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
/**
|
|
96
|
-
* Get system info
|
|
97
|
-
*/
|
|
98
|
-
async info1Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfoResponse>> {
|
|
99
|
-
const queryParameters: any = {};
|
|
100
|
-
|
|
101
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
102
|
-
|
|
103
|
-
const response = await this.request({
|
|
104
|
-
path: `/info/system`,
|
|
105
|
-
method: 'GET',
|
|
106
|
-
headers: headerParameters,
|
|
107
|
-
query: queryParameters,
|
|
108
|
-
}, initOverrides);
|
|
109
|
-
|
|
110
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SystemInfoResponseFromJSON(jsonValue));
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Get system info
|
|
115
|
-
*/
|
|
116
|
-
async info1(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse> {
|
|
117
|
-
const response = await this.info1Raw(initOverrides);
|
|
118
|
-
return await response.value();
|
|
119
|
-
}
|
|
120
|
-
|
|
121
95
|
}
|
|
@@ -20,11 +20,11 @@ import { exists, mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface MetricRecord {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {
|
|
23
|
+
* Date in ISO 8601 format
|
|
24
|
+
* @type {string}
|
|
25
25
|
* @memberof MetricRecord
|
|
26
26
|
*/
|
|
27
|
-
date
|
|
27
|
+
date?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -44,7 +44,6 @@ export interface MetricRecord {
|
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfMetricRecord(value: object): boolean {
|
|
46
46
|
let isInstance = true;
|
|
47
|
-
isInstance = isInstance && "date" in value;
|
|
48
47
|
isInstance = isInstance && "unit" in value;
|
|
49
48
|
|
|
50
49
|
return isInstance;
|
|
@@ -60,7 +59,7 @@ export function MetricRecordFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
60
59
|
}
|
|
61
60
|
return {
|
|
62
61
|
|
|
63
|
-
'date': (
|
|
62
|
+
'date': !exists(json, 'date') ? undefined : json['date'],
|
|
64
63
|
'unit': json['unit'],
|
|
65
64
|
'services': !exists(json, 'services') ? undefined : json['services'],
|
|
66
65
|
};
|
|
@@ -75,7 +74,7 @@ export function MetricRecordToJSON(value?: MetricRecord | null): any {
|
|
|
75
74
|
}
|
|
76
75
|
return {
|
|
77
76
|
|
|
78
|
-
'date':
|
|
77
|
+
'date': value.date,
|
|
79
78
|
'unit': value.unit,
|
|
80
79
|
'services': value.services,
|
|
81
80
|
};
|