@quantcdn/quant-client 2.0.13 → 3.0.0

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.
Files changed (108) hide show
  1. package/README.md +49 -72
  2. package/dist/api/apis.d.ts +30 -0
  3. package/dist/api/apis.js +48 -0
  4. package/dist/api/applicationsApi.d.ts +104 -0
  5. package/dist/api/applicationsApi.js +431 -0
  6. package/dist/api/commandsApi.d.ts +80 -0
  7. package/dist/api/commandsApi.js +316 -0
  8. package/dist/api/composeApi.d.ts +66 -0
  9. package/dist/api/composeApi.js +236 -0
  10. package/dist/api/containersApi.d.ts +67 -0
  11. package/dist/api/containersApi.js +236 -0
  12. package/dist/api/cronApi.d.ts +151 -0
  13. package/dist/api/cronApi.js +681 -0
  14. package/dist/api/environmentsApi.d.ts +194 -0
  15. package/dist/api/environmentsApi.js +861 -0
  16. package/dist/api/sSHAccessApi.d.ts +50 -0
  17. package/dist/api/sSHAccessApi.js +162 -0
  18. package/dist/api/scalingPolicyApi.d.ts +82 -0
  19. package/dist/api/scalingPolicyApi.js +307 -0
  20. package/dist/api/variablesApi.d.ts +83 -0
  21. package/dist/api/variablesApi.js +313 -0
  22. package/dist/api/volumesApi.d.ts +97 -0
  23. package/dist/api/volumesApi.js +405 -0
  24. package/dist/api.d.ts +2 -0
  25. package/dist/api.js +19 -0
  26. package/dist/model/application.d.ts +38 -0
  27. package/dist/model/application.js +93 -0
  28. package/dist/model/command.d.ts +34 -0
  29. package/dist/model/command.js +73 -0
  30. package/dist/model/compose.d.ts +32 -0
  31. package/dist/model/compose.js +58 -0
  32. package/dist/model/configuration.d.ts +26 -0
  33. package/dist/model/configuration.js +30 -0
  34. package/dist/model/container.d.ts +38 -0
  35. package/dist/model/container.js +78 -0
  36. package/dist/model/containerEnvironmentInner.d.ts +26 -0
  37. package/dist/model/containerEnvironmentInner.js +33 -0
  38. package/dist/model/containerImageReference.d.ts +28 -0
  39. package/dist/model/containerImageReference.js +43 -0
  40. package/dist/model/containerMountPointsInner.d.ts +27 -0
  41. package/dist/model/containerMountPointsInner.js +38 -0
  42. package/dist/model/createApplicationRequest.d.ts +28 -0
  43. package/dist/model/createApplicationRequest.js +43 -0
  44. package/dist/model/createCommandRequest.d.ts +25 -0
  45. package/dist/model/createCommandRequest.js +28 -0
  46. package/dist/model/createCronJob422Response.d.ts +26 -0
  47. package/dist/model/createCronJob422Response.js +33 -0
  48. package/dist/model/createCronJobRequest.d.ts +30 -0
  49. package/dist/model/createCronJobRequest.js +56 -0
  50. package/dist/model/createEnvironmentRequest.d.ts +34 -0
  51. package/dist/model/createEnvironmentRequest.js +53 -0
  52. package/dist/model/cron.d.ts +27 -0
  53. package/dist/model/cron.js +38 -0
  54. package/dist/model/cronRun.d.ts +48 -0
  55. package/dist/model/cronRun.js +89 -0
  56. package/dist/model/environment.d.ts +45 -0
  57. package/dist/model/environment.js +103 -0
  58. package/dist/model/getEcrLoginCredentials200Response.d.ts +28 -0
  59. package/dist/model/getEcrLoginCredentials200Response.js +43 -0
  60. package/dist/model/getScalingPolicies200Response.d.ts +26 -0
  61. package/dist/model/getScalingPolicies200Response.js +28 -0
  62. package/dist/model/getSshAccessCredentials200Response.d.ts +34 -0
  63. package/dist/model/getSshAccessCredentials200Response.js +68 -0
  64. package/dist/model/getSshAccessCredentials200ResponseCredentials.d.ts +28 -0
  65. package/dist/model/getSshAccessCredentials200ResponseCredentials.js +43 -0
  66. package/dist/model/models.d.ts +78 -0
  67. package/dist/model/models.js +352 -0
  68. package/dist/model/scalingPolicy.d.ts +35 -0
  69. package/dist/model/scalingPolicy.js +51 -0
  70. package/dist/model/syncOperation.d.ts +31 -0
  71. package/dist/model/syncOperation.js +58 -0
  72. package/dist/model/syncToEnvironmentRequest.d.ts +25 -0
  73. package/dist/model/syncToEnvironmentRequest.js +28 -0
  74. package/dist/model/updateComposeRequest.d.ts +26 -0
  75. package/dist/model/updateComposeRequest.js +28 -0
  76. package/dist/model/updateCronJobRequest.d.ts +29 -0
  77. package/dist/model/updateCronJobRequest.js +48 -0
  78. package/dist/model/updateEnvironmentComposeRequest.d.ts +26 -0
  79. package/dist/model/updateEnvironmentComposeRequest.js +28 -0
  80. package/dist/model/updateEnvironmentRequest.d.ts +26 -0
  81. package/dist/model/updateEnvironmentRequest.js +28 -0
  82. package/dist/model/updateEnvironmentStateRequest.d.ts +26 -0
  83. package/dist/model/updateEnvironmentStateRequest.js +33 -0
  84. package/dist/model/updateEnvironmentVariableRequest.d.ts +25 -0
  85. package/dist/model/updateEnvironmentVariableRequest.js +28 -0
  86. package/dist/model/validateCompose200Response.d.ts +27 -0
  87. package/dist/model/validateCompose200Response.js +38 -0
  88. package/dist/model/validateComposeRequest.d.ts +25 -0
  89. package/dist/model/validateComposeRequest.js +28 -0
  90. package/dist/model/variable.d.ts +26 -0
  91. package/dist/model/variable.js +33 -0
  92. package/dist/model/volume.d.ts +32 -0
  93. package/dist/model/volume.js +63 -0
  94. package/package.json +21 -40
  95. package/dist/src/client.d.ts +0 -15
  96. package/dist/src/client.js +0 -380
  97. package/dist/src/index.d.ts +0 -2
  98. package/dist/src/index.js +0 -42
  99. package/dist/src/interfaces.d.ts +0 -34
  100. package/dist/src/interfaces.js +0 -2
  101. package/dist/src/response.d.ts +0 -15
  102. package/dist/src/response.js +0 -103
  103. package/dist/src/types.d.ts +0 -68
  104. package/dist/src/types.js +0 -8
  105. package/dist/tests/client.test.d.ts +0 -1
  106. package/dist/tests/client.test.js +0 -191
  107. package/dist/tests/response.test.d.ts +0 -1
  108. package/dist/tests/response.test.js +0 -133
@@ -0,0 +1,431 @@
1
+ "use strict";
2
+ /**
3
+ * QuantCloud API
4
+ * QuantCloud API
5
+ *
6
+ * The version of the OpenAPI document: 1.0.0
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
+ return new (P || (P = Promise))(function (resolve, reject) {
16
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20
+ });
21
+ };
22
+ var __importDefault = (this && this.__importDefault) || function (mod) {
23
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.ApplicationsApi = exports.ApplicationsApiApiKeys = void 0;
27
+ const request_1 = __importDefault(require("request"));
28
+ const models_1 = require("../model/models");
29
+ const apis_1 = require("./apis");
30
+ let defaultBasePath = 'http://localhost';
31
+ // ===============================================
32
+ // This file is autogenerated - Please do not edit
33
+ // ===============================================
34
+ var ApplicationsApiApiKeys;
35
+ (function (ApplicationsApiApiKeys) {
36
+ })(ApplicationsApiApiKeys = exports.ApplicationsApiApiKeys || (exports.ApplicationsApiApiKeys = {}));
37
+ class ApplicationsApi {
38
+ constructor(basePathOrUsername, password, basePath) {
39
+ this._basePath = defaultBasePath;
40
+ this._defaultHeaders = {};
41
+ this._useQuerystring = false;
42
+ this.authentications = {
43
+ 'default': new models_1.VoidAuth(),
44
+ };
45
+ this.interceptors = [];
46
+ if (password) {
47
+ if (basePath) {
48
+ this.basePath = basePath;
49
+ }
50
+ }
51
+ else {
52
+ if (basePathOrUsername) {
53
+ this.basePath = basePathOrUsername;
54
+ }
55
+ }
56
+ }
57
+ set useQuerystring(value) {
58
+ this._useQuerystring = value;
59
+ }
60
+ set basePath(basePath) {
61
+ this._basePath = basePath;
62
+ }
63
+ set defaultHeaders(defaultHeaders) {
64
+ this._defaultHeaders = defaultHeaders;
65
+ }
66
+ get defaultHeaders() {
67
+ return this._defaultHeaders;
68
+ }
69
+ get basePath() {
70
+ return this._basePath;
71
+ }
72
+ setDefaultAuthentication(auth) {
73
+ this.authentications.default = auth;
74
+ }
75
+ setApiKey(key, value) {
76
+ this.authentications[ApplicationsApiApiKeys[key]].apiKey = value;
77
+ }
78
+ addInterceptor(interceptor) {
79
+ this.interceptors.push(interceptor);
80
+ }
81
+ /**
82
+ *
83
+ * @summary Create a new application
84
+ * @param organisation The organisation ID
85
+ * @param application
86
+ */
87
+ createApplication(organisation, application, options = { headers: {} }) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ const localVarPath = this.basePath + '/organisations/{organisation}/applications'
90
+ .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)));
91
+ let localVarQueryParameters = {};
92
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
93
+ const produces = ['application/json'];
94
+ // give precedence to 'application/json'
95
+ if (produces.indexOf('application/json') >= 0) {
96
+ localVarHeaderParams.Accept = 'application/json';
97
+ }
98
+ else {
99
+ localVarHeaderParams.Accept = produces.join(',');
100
+ }
101
+ let localVarFormParams = {};
102
+ // verify required parameter 'organisation' is not null or undefined
103
+ if (organisation === null || organisation === undefined) {
104
+ throw new Error('Required parameter organisation was null or undefined when calling createApplication.');
105
+ }
106
+ // verify required parameter 'application' is not null or undefined
107
+ if (application === null || application === undefined) {
108
+ throw new Error('Required parameter application was null or undefined when calling createApplication.');
109
+ }
110
+ Object.assign(localVarHeaderParams, options.headers);
111
+ let localVarUseFormData = false;
112
+ let localVarRequestOptions = {
113
+ method: 'POST',
114
+ qs: localVarQueryParameters,
115
+ headers: localVarHeaderParams,
116
+ uri: localVarPath,
117
+ useQuerystring: this._useQuerystring,
118
+ json: true,
119
+ body: models_1.ObjectSerializer.serialize(application, "Application")
120
+ };
121
+ let authenticationPromise = Promise.resolve();
122
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
123
+ let interceptorPromise = authenticationPromise;
124
+ for (const interceptor of this.interceptors) {
125
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
126
+ }
127
+ return interceptorPromise.then(() => {
128
+ if (Object.keys(localVarFormParams).length) {
129
+ if (localVarUseFormData) {
130
+ localVarRequestOptions.formData = localVarFormParams;
131
+ }
132
+ else {
133
+ localVarRequestOptions.form = localVarFormParams;
134
+ }
135
+ }
136
+ return new Promise((resolve, reject) => {
137
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
138
+ if (error) {
139
+ reject(error);
140
+ }
141
+ else {
142
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
143
+ body = models_1.ObjectSerializer.deserialize(body, "Application");
144
+ resolve({ response: response, body: body });
145
+ }
146
+ else {
147
+ reject(new apis_1.HttpError(response, body, response.statusCode));
148
+ }
149
+ }
150
+ });
151
+ });
152
+ });
153
+ });
154
+ }
155
+ /**
156
+ *
157
+ * @summary Delete an application
158
+ * @param organisation The organisation ID
159
+ * @param application The application ID
160
+ */
161
+ deleteApplication(organisation, application, options = { headers: {} }) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}'
164
+ .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
165
+ .replace('{' + 'application' + '}', encodeURIComponent(String(application)));
166
+ let localVarQueryParameters = {};
167
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
168
+ let localVarFormParams = {};
169
+ // verify required parameter 'organisation' is not null or undefined
170
+ if (organisation === null || organisation === undefined) {
171
+ throw new Error('Required parameter organisation was null or undefined when calling deleteApplication.');
172
+ }
173
+ // verify required parameter 'application' is not null or undefined
174
+ if (application === null || application === undefined) {
175
+ throw new Error('Required parameter application was null or undefined when calling deleteApplication.');
176
+ }
177
+ Object.assign(localVarHeaderParams, options.headers);
178
+ let localVarUseFormData = false;
179
+ let localVarRequestOptions = {
180
+ method: 'DELETE',
181
+ qs: localVarQueryParameters,
182
+ headers: localVarHeaderParams,
183
+ uri: localVarPath,
184
+ useQuerystring: this._useQuerystring,
185
+ json: true,
186
+ };
187
+ let authenticationPromise = Promise.resolve();
188
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
189
+ let interceptorPromise = authenticationPromise;
190
+ for (const interceptor of this.interceptors) {
191
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
192
+ }
193
+ return interceptorPromise.then(() => {
194
+ if (Object.keys(localVarFormParams).length) {
195
+ if (localVarUseFormData) {
196
+ localVarRequestOptions.formData = localVarFormParams;
197
+ }
198
+ else {
199
+ localVarRequestOptions.form = localVarFormParams;
200
+ }
201
+ }
202
+ return new Promise((resolve, reject) => {
203
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
204
+ if (error) {
205
+ reject(error);
206
+ }
207
+ else {
208
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
209
+ resolve({ response: response, body: body });
210
+ }
211
+ else {
212
+ reject(new apis_1.HttpError(response, body, response.statusCode));
213
+ }
214
+ }
215
+ });
216
+ });
217
+ });
218
+ });
219
+ }
220
+ /**
221
+ *
222
+ * @summary Get a single application
223
+ * @param organisation The organisation ID
224
+ * @param application The application ID
225
+ */
226
+ getApplication(organisation, application, options = { headers: {} }) {
227
+ return __awaiter(this, void 0, void 0, function* () {
228
+ const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}'
229
+ .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
230
+ .replace('{' + 'application' + '}', encodeURIComponent(String(application)));
231
+ let localVarQueryParameters = {};
232
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
233
+ const produces = ['application/json'];
234
+ // give precedence to 'application/json'
235
+ if (produces.indexOf('application/json') >= 0) {
236
+ localVarHeaderParams.Accept = 'application/json';
237
+ }
238
+ else {
239
+ localVarHeaderParams.Accept = produces.join(',');
240
+ }
241
+ let localVarFormParams = {};
242
+ // verify required parameter 'organisation' is not null or undefined
243
+ if (organisation === null || organisation === undefined) {
244
+ throw new Error('Required parameter organisation was null or undefined when calling getApplication.');
245
+ }
246
+ // verify required parameter 'application' is not null or undefined
247
+ if (application === null || application === undefined) {
248
+ throw new Error('Required parameter application was null or undefined when calling getApplication.');
249
+ }
250
+ Object.assign(localVarHeaderParams, options.headers);
251
+ let localVarUseFormData = false;
252
+ let localVarRequestOptions = {
253
+ method: 'GET',
254
+ qs: localVarQueryParameters,
255
+ headers: localVarHeaderParams,
256
+ uri: localVarPath,
257
+ useQuerystring: this._useQuerystring,
258
+ json: true,
259
+ };
260
+ let authenticationPromise = Promise.resolve();
261
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
262
+ let interceptorPromise = authenticationPromise;
263
+ for (const interceptor of this.interceptors) {
264
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
265
+ }
266
+ return interceptorPromise.then(() => {
267
+ if (Object.keys(localVarFormParams).length) {
268
+ if (localVarUseFormData) {
269
+ localVarRequestOptions.formData = localVarFormParams;
270
+ }
271
+ else {
272
+ localVarRequestOptions.form = localVarFormParams;
273
+ }
274
+ }
275
+ return new Promise((resolve, reject) => {
276
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
277
+ if (error) {
278
+ reject(error);
279
+ }
280
+ else {
281
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
282
+ body = models_1.ObjectSerializer.deserialize(body, "Application");
283
+ resolve({ response: response, body: body });
284
+ }
285
+ else {
286
+ reject(new apis_1.HttpError(response, body, response.statusCode));
287
+ }
288
+ }
289
+ });
290
+ });
291
+ });
292
+ });
293
+ }
294
+ /**
295
+ *
296
+ * @summary Get ECR login credentials
297
+ * @param organisation The organisation ID
298
+ */
299
+ getEcrLoginCredentials(organisation, options = { headers: {} }) {
300
+ return __awaiter(this, void 0, void 0, function* () {
301
+ const localVarPath = this.basePath + '/organisations/{organisation}/applications/ecr-login'
302
+ .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)));
303
+ let localVarQueryParameters = {};
304
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
305
+ const produces = ['application/json'];
306
+ // give precedence to 'application/json'
307
+ if (produces.indexOf('application/json') >= 0) {
308
+ localVarHeaderParams.Accept = 'application/json';
309
+ }
310
+ else {
311
+ localVarHeaderParams.Accept = produces.join(',');
312
+ }
313
+ let localVarFormParams = {};
314
+ // verify required parameter 'organisation' is not null or undefined
315
+ if (organisation === null || organisation === undefined) {
316
+ throw new Error('Required parameter organisation was null or undefined when calling getEcrLoginCredentials.');
317
+ }
318
+ Object.assign(localVarHeaderParams, options.headers);
319
+ let localVarUseFormData = false;
320
+ let localVarRequestOptions = {
321
+ method: 'GET',
322
+ qs: localVarQueryParameters,
323
+ headers: localVarHeaderParams,
324
+ uri: localVarPath,
325
+ useQuerystring: this._useQuerystring,
326
+ json: true,
327
+ };
328
+ let authenticationPromise = Promise.resolve();
329
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
330
+ let interceptorPromise = authenticationPromise;
331
+ for (const interceptor of this.interceptors) {
332
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
333
+ }
334
+ return interceptorPromise.then(() => {
335
+ if (Object.keys(localVarFormParams).length) {
336
+ if (localVarUseFormData) {
337
+ localVarRequestOptions.formData = localVarFormParams;
338
+ }
339
+ else {
340
+ localVarRequestOptions.form = localVarFormParams;
341
+ }
342
+ }
343
+ return new Promise((resolve, reject) => {
344
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
345
+ if (error) {
346
+ reject(error);
347
+ }
348
+ else {
349
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
350
+ body = models_1.ObjectSerializer.deserialize(body, "GetEcrLoginCredentials200Response");
351
+ resolve({ response: response, body: body });
352
+ }
353
+ else {
354
+ reject(new apis_1.HttpError(response, body, response.statusCode));
355
+ }
356
+ }
357
+ });
358
+ });
359
+ });
360
+ });
361
+ }
362
+ /**
363
+ *
364
+ * @summary Get all applications for an organisation
365
+ * @param organisation The organisation ID
366
+ */
367
+ listApplications(organisation, options = { headers: {} }) {
368
+ return __awaiter(this, void 0, void 0, function* () {
369
+ const localVarPath = this.basePath + '/organisations/{organisation}/applications'
370
+ .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)));
371
+ let localVarQueryParameters = {};
372
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
373
+ const produces = ['application/json'];
374
+ // give precedence to 'application/json'
375
+ if (produces.indexOf('application/json') >= 0) {
376
+ localVarHeaderParams.Accept = 'application/json';
377
+ }
378
+ else {
379
+ localVarHeaderParams.Accept = produces.join(',');
380
+ }
381
+ let localVarFormParams = {};
382
+ // verify required parameter 'organisation' is not null or undefined
383
+ if (organisation === null || organisation === undefined) {
384
+ throw new Error('Required parameter organisation was null or undefined when calling listApplications.');
385
+ }
386
+ Object.assign(localVarHeaderParams, options.headers);
387
+ let localVarUseFormData = false;
388
+ let localVarRequestOptions = {
389
+ method: 'GET',
390
+ qs: localVarQueryParameters,
391
+ headers: localVarHeaderParams,
392
+ uri: localVarPath,
393
+ useQuerystring: this._useQuerystring,
394
+ json: true,
395
+ };
396
+ let authenticationPromise = Promise.resolve();
397
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
398
+ let interceptorPromise = authenticationPromise;
399
+ for (const interceptor of this.interceptors) {
400
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
401
+ }
402
+ return interceptorPromise.then(() => {
403
+ if (Object.keys(localVarFormParams).length) {
404
+ if (localVarUseFormData) {
405
+ localVarRequestOptions.formData = localVarFormParams;
406
+ }
407
+ else {
408
+ localVarRequestOptions.form = localVarFormParams;
409
+ }
410
+ }
411
+ return new Promise((resolve, reject) => {
412
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
413
+ if (error) {
414
+ reject(error);
415
+ }
416
+ else {
417
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
418
+ body = models_1.ObjectSerializer.deserialize(body, "Array<Application>");
419
+ resolve({ response: response, body: body });
420
+ }
421
+ else {
422
+ reject(new apis_1.HttpError(response, body, response.statusCode));
423
+ }
424
+ }
425
+ });
426
+ });
427
+ });
428
+ });
429
+ }
430
+ }
431
+ exports.ApplicationsApi = ApplicationsApi;
@@ -0,0 +1,80 @@
1
+ /**
2
+ * QuantCloud API
3
+ * QuantCloud API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /// <reference types="node" />
13
+ import http from 'http';
14
+ import { Command } from '../model/command';
15
+ import { CreateCommandRequest } from '../model/createCommandRequest';
16
+ import { Authentication, Interceptor } from '../model/models';
17
+ export declare enum CommandsApiApiKeys {
18
+ }
19
+ export declare class CommandsApi {
20
+ protected _basePath: string;
21
+ protected _defaultHeaders: any;
22
+ protected _useQuerystring: boolean;
23
+ protected authentications: {
24
+ default: Authentication;
25
+ };
26
+ protected interceptors: Interceptor[];
27
+ constructor(basePath?: string);
28
+ set useQuerystring(value: boolean);
29
+ set basePath(basePath: string);
30
+ set defaultHeaders(defaultHeaders: any);
31
+ get defaultHeaders(): any;
32
+ get basePath(): string;
33
+ setDefaultAuthentication(auth: Authentication): void;
34
+ setApiKey(key: CommandsApiApiKeys, value: string): void;
35
+ addInterceptor(interceptor: Interceptor): void;
36
+ /**
37
+ *
38
+ * @summary Create a command for an environment
39
+ * @param organisation The organisation ID
40
+ * @param environment The environment ID
41
+ * @param createCommandRequest
42
+ */
43
+ createCommand(organisation: string, environment: string, createCommandRequest: CreateCommandRequest, options?: {
44
+ headers: {
45
+ [name: string]: string;
46
+ };
47
+ }): Promise<{
48
+ response: http.IncomingMessage;
49
+ body: Command;
50
+ }>;
51
+ /**
52
+ *
53
+ * @summary Get a command
54
+ * @param organisation The organisation ID
55
+ * @param environment The environment ID
56
+ * @param command The command ID
57
+ */
58
+ getCommand(organisation: string, environment: string, command: string, options?: {
59
+ headers: {
60
+ [name: string]: string;
61
+ };
62
+ }): Promise<{
63
+ response: http.IncomingMessage;
64
+ body: Command;
65
+ }>;
66
+ /**
67
+ *
68
+ * @summary Get all commands for an environment
69
+ * @param organisation The organisation ID
70
+ * @param environment The environment ID
71
+ */
72
+ listCommands(organisation: string, environment: string, options?: {
73
+ headers: {
74
+ [name: string]: string;
75
+ };
76
+ }): Promise<{
77
+ response: http.IncomingMessage;
78
+ body: Command;
79
+ }>;
80
+ }