@cirrobio/api-client 0.0.35-alpha → 0.0.36-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 +1 -1
- package/dist/apis/SystemApi.d.ts +0 -8
- package/dist/apis/SystemApi.js +16 -48
- package/package.json +1 -1
- package/src/apis/SystemApi.ts +8 -26
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.36-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
|
@@ -132,19 +132,28 @@ var SystemApi = /** @class */ (function (_super) {
|
|
|
132
132
|
*/
|
|
133
133
|
SystemApi.prototype.infoRaw = function (initOverrides) {
|
|
134
134
|
return __awaiter(this, void 0, void 0, function () {
|
|
135
|
-
var queryParameters, headerParameters, response;
|
|
135
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
136
136
|
return __generator(this, function (_a) {
|
|
137
137
|
switch (_a.label) {
|
|
138
138
|
case 0:
|
|
139
139
|
queryParameters = {};
|
|
140
140
|
headerParameters = {};
|
|
141
|
-
return [
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
headers: headerParameters,
|
|
145
|
-
query: queryParameters,
|
|
146
|
-
}, initOverrides)];
|
|
141
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
142
|
+
token = this.configuration.accessToken;
|
|
143
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
147
144
|
case 1:
|
|
145
|
+
tokenString = _a.sent();
|
|
146
|
+
if (tokenString) {
|
|
147
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
148
|
+
}
|
|
149
|
+
_a.label = 2;
|
|
150
|
+
case 2: return [4 /*yield*/, this.request({
|
|
151
|
+
path: "/info",
|
|
152
|
+
method: 'GET',
|
|
153
|
+
headers: headerParameters,
|
|
154
|
+
query: queryParameters,
|
|
155
|
+
}, initOverrides)];
|
|
156
|
+
case 3:
|
|
148
157
|
response = _a.sent();
|
|
149
158
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SystemInfoResponseFromJSON)(jsonValue); })];
|
|
150
159
|
}
|
|
@@ -168,47 +177,6 @@ var SystemApi = /** @class */ (function (_super) {
|
|
|
168
177
|
});
|
|
169
178
|
});
|
|
170
179
|
};
|
|
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
180
|
return SystemApi;
|
|
213
181
|
}(runtime.BaseAPI));
|
|
214
182
|
exports.SystemApi = SystemApi;
|
package/package.json
CHANGED
package/src/apis/SystemApi.ts
CHANGED
|
@@ -74,6 +74,14 @@ export class SystemApi extends runtime.BaseAPI {
|
|
|
74
74
|
|
|
75
75
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
76
76
|
|
|
77
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
+
const token = this.configuration.accessToken;
|
|
79
|
+
const tokenString = await token("accessToken", []);
|
|
80
|
+
|
|
81
|
+
if (tokenString) {
|
|
82
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
77
85
|
const response = await this.request({
|
|
78
86
|
path: `/info`,
|
|
79
87
|
method: 'GET',
|
|
@@ -92,30 +100,4 @@ export class SystemApi extends runtime.BaseAPI {
|
|
|
92
100
|
return await response.value();
|
|
93
101
|
}
|
|
94
102
|
|
|
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
103
|
}
|