@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,405 @@
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.VolumesApi = exports.VolumesApiApiKeys = 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 VolumesApiApiKeys;
35
+ (function (VolumesApiApiKeys) {
36
+ })(VolumesApiApiKeys = exports.VolumesApiApiKeys || (exports.VolumesApiApiKeys = {}));
37
+ class VolumesApi {
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[VolumesApiApiKeys[key]].apiKey = value;
77
+ }
78
+ addInterceptor(interceptor) {
79
+ this.interceptors.push(interceptor);
80
+ }
81
+ /**
82
+ *
83
+ * @summary Create a new volume
84
+ * @param organisation The organisation ID
85
+ * @param application The application ID
86
+ * @param environment The environment ID
87
+ */
88
+ createVolume(organisation, application, environment, options = { headers: {} }) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/volumes'
91
+ .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
92
+ .replace('{' + 'application' + '}', encodeURIComponent(String(application)))
93
+ .replace('{' + 'environment' + '}', encodeURIComponent(String(environment)));
94
+ let localVarQueryParameters = {};
95
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
96
+ const produces = ['application/json'];
97
+ // give precedence to 'application/json'
98
+ if (produces.indexOf('application/json') >= 0) {
99
+ localVarHeaderParams.Accept = 'application/json';
100
+ }
101
+ else {
102
+ localVarHeaderParams.Accept = produces.join(',');
103
+ }
104
+ let localVarFormParams = {};
105
+ // verify required parameter 'organisation' is not null or undefined
106
+ if (organisation === null || organisation === undefined) {
107
+ throw new Error('Required parameter organisation was null or undefined when calling createVolume.');
108
+ }
109
+ // verify required parameter 'application' is not null or undefined
110
+ if (application === null || application === undefined) {
111
+ throw new Error('Required parameter application was null or undefined when calling createVolume.');
112
+ }
113
+ // verify required parameter 'environment' is not null or undefined
114
+ if (environment === null || environment === undefined) {
115
+ throw new Error('Required parameter environment was null or undefined when calling createVolume.');
116
+ }
117
+ Object.assign(localVarHeaderParams, options.headers);
118
+ let localVarUseFormData = false;
119
+ let localVarRequestOptions = {
120
+ method: 'POST',
121
+ qs: localVarQueryParameters,
122
+ headers: localVarHeaderParams,
123
+ uri: localVarPath,
124
+ useQuerystring: this._useQuerystring,
125
+ json: true,
126
+ };
127
+ let authenticationPromise = Promise.resolve();
128
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
129
+ let interceptorPromise = authenticationPromise;
130
+ for (const interceptor of this.interceptors) {
131
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
132
+ }
133
+ return interceptorPromise.then(() => {
134
+ if (Object.keys(localVarFormParams).length) {
135
+ if (localVarUseFormData) {
136
+ localVarRequestOptions.formData = localVarFormParams;
137
+ }
138
+ else {
139
+ localVarRequestOptions.form = localVarFormParams;
140
+ }
141
+ }
142
+ return new Promise((resolve, reject) => {
143
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
144
+ if (error) {
145
+ reject(error);
146
+ }
147
+ else {
148
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
149
+ body = models_1.ObjectSerializer.deserialize(body, "Volume");
150
+ resolve({ response: response, body: body });
151
+ }
152
+ else {
153
+ reject(new apis_1.HttpError(response, body, response.statusCode));
154
+ }
155
+ }
156
+ });
157
+ });
158
+ });
159
+ });
160
+ }
161
+ /**
162
+ *
163
+ * @summary Delete a volume
164
+ * @param organisation The organisation ID
165
+ * @param application The application ID
166
+ * @param environment The environment ID
167
+ * @param volume The volume ID
168
+ */
169
+ deleteVolume(organisation, application, environment, volume, options = { headers: {} }) {
170
+ return __awaiter(this, void 0, void 0, function* () {
171
+ const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/volumes/{volume}'
172
+ .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
173
+ .replace('{' + 'application' + '}', encodeURIComponent(String(application)))
174
+ .replace('{' + 'environment' + '}', encodeURIComponent(String(environment)))
175
+ .replace('{' + 'volume' + '}', encodeURIComponent(String(volume)));
176
+ let localVarQueryParameters = {};
177
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
178
+ let localVarFormParams = {};
179
+ // verify required parameter 'organisation' is not null or undefined
180
+ if (organisation === null || organisation === undefined) {
181
+ throw new Error('Required parameter organisation was null or undefined when calling deleteVolume.');
182
+ }
183
+ // verify required parameter 'application' is not null or undefined
184
+ if (application === null || application === undefined) {
185
+ throw new Error('Required parameter application was null or undefined when calling deleteVolume.');
186
+ }
187
+ // verify required parameter 'environment' is not null or undefined
188
+ if (environment === null || environment === undefined) {
189
+ throw new Error('Required parameter environment was null or undefined when calling deleteVolume.');
190
+ }
191
+ // verify required parameter 'volume' is not null or undefined
192
+ if (volume === null || volume === undefined) {
193
+ throw new Error('Required parameter volume was null or undefined when calling deleteVolume.');
194
+ }
195
+ Object.assign(localVarHeaderParams, options.headers);
196
+ let localVarUseFormData = false;
197
+ let localVarRequestOptions = {
198
+ method: 'DELETE',
199
+ qs: localVarQueryParameters,
200
+ headers: localVarHeaderParams,
201
+ uri: localVarPath,
202
+ useQuerystring: this._useQuerystring,
203
+ json: true,
204
+ };
205
+ let authenticationPromise = Promise.resolve();
206
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
207
+ let interceptorPromise = authenticationPromise;
208
+ for (const interceptor of this.interceptors) {
209
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
210
+ }
211
+ return interceptorPromise.then(() => {
212
+ if (Object.keys(localVarFormParams).length) {
213
+ if (localVarUseFormData) {
214
+ localVarRequestOptions.formData = localVarFormParams;
215
+ }
216
+ else {
217
+ localVarRequestOptions.form = localVarFormParams;
218
+ }
219
+ }
220
+ return new Promise((resolve, reject) => {
221
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
222
+ if (error) {
223
+ reject(error);
224
+ }
225
+ else {
226
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
227
+ resolve({ response: response, body: body });
228
+ }
229
+ else {
230
+ reject(new apis_1.HttpError(response, body, response.statusCode));
231
+ }
232
+ }
233
+ });
234
+ });
235
+ });
236
+ });
237
+ }
238
+ /**
239
+ *
240
+ * @summary Get a volume
241
+ * @param organisation The organisation ID
242
+ * @param application The application ID
243
+ * @param environment The environment ID
244
+ * @param volume The volume ID
245
+ */
246
+ getVolume(organisation, application, environment, volume, options = { headers: {} }) {
247
+ return __awaiter(this, void 0, void 0, function* () {
248
+ const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/volumes/{volume}'
249
+ .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
250
+ .replace('{' + 'application' + '}', encodeURIComponent(String(application)))
251
+ .replace('{' + 'environment' + '}', encodeURIComponent(String(environment)))
252
+ .replace('{' + 'volume' + '}', encodeURIComponent(String(volume)));
253
+ let localVarQueryParameters = {};
254
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
255
+ const produces = ['application/json'];
256
+ // give precedence to 'application/json'
257
+ if (produces.indexOf('application/json') >= 0) {
258
+ localVarHeaderParams.Accept = 'application/json';
259
+ }
260
+ else {
261
+ localVarHeaderParams.Accept = produces.join(',');
262
+ }
263
+ let localVarFormParams = {};
264
+ // verify required parameter 'organisation' is not null or undefined
265
+ if (organisation === null || organisation === undefined) {
266
+ throw new Error('Required parameter organisation was null or undefined when calling getVolume.');
267
+ }
268
+ // verify required parameter 'application' is not null or undefined
269
+ if (application === null || application === undefined) {
270
+ throw new Error('Required parameter application was null or undefined when calling getVolume.');
271
+ }
272
+ // verify required parameter 'environment' is not null or undefined
273
+ if (environment === null || environment === undefined) {
274
+ throw new Error('Required parameter environment was null or undefined when calling getVolume.');
275
+ }
276
+ // verify required parameter 'volume' is not null or undefined
277
+ if (volume === null || volume === undefined) {
278
+ throw new Error('Required parameter volume was null or undefined when calling getVolume.');
279
+ }
280
+ Object.assign(localVarHeaderParams, options.headers);
281
+ let localVarUseFormData = false;
282
+ let localVarRequestOptions = {
283
+ method: 'GET',
284
+ qs: localVarQueryParameters,
285
+ headers: localVarHeaderParams,
286
+ uri: localVarPath,
287
+ useQuerystring: this._useQuerystring,
288
+ json: true,
289
+ };
290
+ let authenticationPromise = Promise.resolve();
291
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
292
+ let interceptorPromise = authenticationPromise;
293
+ for (const interceptor of this.interceptors) {
294
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
295
+ }
296
+ return interceptorPromise.then(() => {
297
+ if (Object.keys(localVarFormParams).length) {
298
+ if (localVarUseFormData) {
299
+ localVarRequestOptions.formData = localVarFormParams;
300
+ }
301
+ else {
302
+ localVarRequestOptions.form = localVarFormParams;
303
+ }
304
+ }
305
+ return new Promise((resolve, reject) => {
306
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
307
+ if (error) {
308
+ reject(error);
309
+ }
310
+ else {
311
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
312
+ body = models_1.ObjectSerializer.deserialize(body, "Volume");
313
+ resolve({ response: response, body: body });
314
+ }
315
+ else {
316
+ reject(new apis_1.HttpError(response, body, response.statusCode));
317
+ }
318
+ }
319
+ });
320
+ });
321
+ });
322
+ });
323
+ }
324
+ /**
325
+ *
326
+ * @summary Get all volumes for an environment
327
+ * @param organisation The organisation ID
328
+ * @param application The application ID
329
+ * @param environment The environment ID
330
+ */
331
+ listVolumes(organisation, application, environment, options = { headers: {} }) {
332
+ return __awaiter(this, void 0, void 0, function* () {
333
+ const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/volumes'
334
+ .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
335
+ .replace('{' + 'application' + '}', encodeURIComponent(String(application)))
336
+ .replace('{' + 'environment' + '}', encodeURIComponent(String(environment)));
337
+ let localVarQueryParameters = {};
338
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
339
+ const produces = ['application/json'];
340
+ // give precedence to 'application/json'
341
+ if (produces.indexOf('application/json') >= 0) {
342
+ localVarHeaderParams.Accept = 'application/json';
343
+ }
344
+ else {
345
+ localVarHeaderParams.Accept = produces.join(',');
346
+ }
347
+ let localVarFormParams = {};
348
+ // verify required parameter 'organisation' is not null or undefined
349
+ if (organisation === null || organisation === undefined) {
350
+ throw new Error('Required parameter organisation was null or undefined when calling listVolumes.');
351
+ }
352
+ // verify required parameter 'application' is not null or undefined
353
+ if (application === null || application === undefined) {
354
+ throw new Error('Required parameter application was null or undefined when calling listVolumes.');
355
+ }
356
+ // verify required parameter 'environment' is not null or undefined
357
+ if (environment === null || environment === undefined) {
358
+ throw new Error('Required parameter environment was null or undefined when calling listVolumes.');
359
+ }
360
+ Object.assign(localVarHeaderParams, options.headers);
361
+ let localVarUseFormData = false;
362
+ let localVarRequestOptions = {
363
+ method: 'GET',
364
+ qs: localVarQueryParameters,
365
+ headers: localVarHeaderParams,
366
+ uri: localVarPath,
367
+ useQuerystring: this._useQuerystring,
368
+ json: true,
369
+ };
370
+ let authenticationPromise = Promise.resolve();
371
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
372
+ let interceptorPromise = authenticationPromise;
373
+ for (const interceptor of this.interceptors) {
374
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
375
+ }
376
+ return interceptorPromise.then(() => {
377
+ if (Object.keys(localVarFormParams).length) {
378
+ if (localVarUseFormData) {
379
+ localVarRequestOptions.formData = localVarFormParams;
380
+ }
381
+ else {
382
+ localVarRequestOptions.form = localVarFormParams;
383
+ }
384
+ }
385
+ return new Promise((resolve, reject) => {
386
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
387
+ if (error) {
388
+ reject(error);
389
+ }
390
+ else {
391
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
392
+ body = models_1.ObjectSerializer.deserialize(body, "Volume");
393
+ resolve({ response: response, body: body });
394
+ }
395
+ else {
396
+ reject(new apis_1.HttpError(response, body, response.statusCode));
397
+ }
398
+ }
399
+ });
400
+ });
401
+ });
402
+ });
403
+ }
404
+ }
405
+ exports.VolumesApi = VolumesApi;
package/dist/api.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './api/apis';
2
+ export * from './model/models';
package/dist/api.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // This is the entrypoint for the package
18
+ __exportStar(require("./api/apis"), exports);
19
+ __exportStar(require("./model/models"), exports);
@@ -0,0 +1,38 @@
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
+ export declare class Application {
13
+ 'appName': string;
14
+ 'organisation': string;
15
+ 'database'?: object;
16
+ 'filesystem'?: object;
17
+ 'composeDefinition'?: object;
18
+ 'status'?: object;
19
+ 'deploymentInformation'?: object;
20
+ 'imageReference'?: object;
21
+ 'containerNames'?: Array<string>;
22
+ 'minCapacity'?: number;
23
+ 'maxCapacity'?: number;
24
+ 'desiredCount'?: object;
25
+ 'runningCount'?: object;
26
+ 'environments'?: object;
27
+ static discriminator: string | undefined;
28
+ static attributeTypeMap: Array<{
29
+ name: string;
30
+ baseName: string;
31
+ type: string;
32
+ }>;
33
+ static getAttributeTypeMap(): {
34
+ name: string;
35
+ baseName: string;
36
+ type: string;
37
+ }[];
38
+ }
@@ -0,0 +1,93 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Application = void 0;
15
+ class Application {
16
+ static getAttributeTypeMap() {
17
+ return Application.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.Application = Application;
21
+ Application.discriminator = undefined;
22
+ Application.attributeTypeMap = [
23
+ {
24
+ "name": "appName",
25
+ "baseName": "appName",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "name": "organisation",
30
+ "baseName": "organisation",
31
+ "type": "string"
32
+ },
33
+ {
34
+ "name": "database",
35
+ "baseName": "database",
36
+ "type": "object"
37
+ },
38
+ {
39
+ "name": "filesystem",
40
+ "baseName": "filesystem",
41
+ "type": "object"
42
+ },
43
+ {
44
+ "name": "composeDefinition",
45
+ "baseName": "composeDefinition",
46
+ "type": "object"
47
+ },
48
+ {
49
+ "name": "status",
50
+ "baseName": "status",
51
+ "type": "object"
52
+ },
53
+ {
54
+ "name": "deploymentInformation",
55
+ "baseName": "deploymentInformation",
56
+ "type": "object"
57
+ },
58
+ {
59
+ "name": "imageReference",
60
+ "baseName": "imageReference",
61
+ "type": "object"
62
+ },
63
+ {
64
+ "name": "containerNames",
65
+ "baseName": "containerNames",
66
+ "type": "Array<string>"
67
+ },
68
+ {
69
+ "name": "minCapacity",
70
+ "baseName": "minCapacity",
71
+ "type": "number"
72
+ },
73
+ {
74
+ "name": "maxCapacity",
75
+ "baseName": "maxCapacity",
76
+ "type": "number"
77
+ },
78
+ {
79
+ "name": "desiredCount",
80
+ "baseName": "desiredCount",
81
+ "type": "object"
82
+ },
83
+ {
84
+ "name": "runningCount",
85
+ "baseName": "runningCount",
86
+ "type": "object"
87
+ },
88
+ {
89
+ "name": "environments",
90
+ "baseName": "environments",
91
+ "type": "object"
92
+ }
93
+ ];
@@ -0,0 +1,34 @@
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
+ export declare class Command {
13
+ 'runId'?: string;
14
+ 'runType'?: string;
15
+ 'command'?: string;
16
+ 'status'?: string;
17
+ 'startTime'?: string;
18
+ 'endTime'?: string;
19
+ 'exitCode'?: number;
20
+ 'output'?: Array<string>;
21
+ 'scheduleName'?: string;
22
+ 'targetContainerName'?: string;
23
+ static discriminator: string | undefined;
24
+ static attributeTypeMap: Array<{
25
+ name: string;
26
+ baseName: string;
27
+ type: string;
28
+ }>;
29
+ static getAttributeTypeMap(): {
30
+ name: string;
31
+ baseName: string;
32
+ type: string;
33
+ }[];
34
+ }
@@ -0,0 +1,73 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Command = void 0;
15
+ class Command {
16
+ static getAttributeTypeMap() {
17
+ return Command.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.Command = Command;
21
+ Command.discriminator = undefined;
22
+ Command.attributeTypeMap = [
23
+ {
24
+ "name": "runId",
25
+ "baseName": "runId",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "name": "runType",
30
+ "baseName": "runType",
31
+ "type": "string"
32
+ },
33
+ {
34
+ "name": "command",
35
+ "baseName": "command",
36
+ "type": "string"
37
+ },
38
+ {
39
+ "name": "status",
40
+ "baseName": "status",
41
+ "type": "string"
42
+ },
43
+ {
44
+ "name": "startTime",
45
+ "baseName": "startTime",
46
+ "type": "string"
47
+ },
48
+ {
49
+ "name": "endTime",
50
+ "baseName": "endTime",
51
+ "type": "string"
52
+ },
53
+ {
54
+ "name": "exitCode",
55
+ "baseName": "exitCode",
56
+ "type": "number"
57
+ },
58
+ {
59
+ "name": "output",
60
+ "baseName": "output",
61
+ "type": "Array<string>"
62
+ },
63
+ {
64
+ "name": "scheduleName",
65
+ "baseName": "scheduleName",
66
+ "type": "string"
67
+ },
68
+ {
69
+ "name": "targetContainerName",
70
+ "baseName": "targetContainerName",
71
+ "type": "string"
72
+ }
73
+ ];