@quantcdn/quant-client 3.0.2 → 3.0.4

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 (34) hide show
  1. package/README.md +3 -3
  2. package/dist/api/backupManagementApi.d.ts +8 -2
  3. package/dist/api/backupManagementApi.js +26 -2
  4. package/dist/api/composeApi.d.ts +5 -4
  5. package/dist/api/composeApi.js +8 -4
  6. package/dist/api/environmentsApi.d.ts +2 -2
  7. package/dist/api/environmentsApi.js +10 -2
  8. package/dist/model/container.d.ts +46 -9
  9. package/dist/model/container.js +43 -0
  10. package/dist/model/containerDependsOnInner.d.ts +40 -0
  11. package/dist/model/containerDependsOnInner.js +42 -0
  12. package/dist/model/containerEnvironmentInner.d.ts +6 -0
  13. package/dist/model/containerHealthCheck.d.ts +47 -0
  14. package/dist/model/containerHealthCheck.js +65 -0
  15. package/dist/model/containerImageReference.d.ts +14 -4
  16. package/dist/model/containerImageReference.js +8 -11
  17. package/dist/model/containerMountPointsInner.d.ts +6 -0
  18. package/dist/model/containerMountPointsInner.js +3 -0
  19. package/dist/model/containerSecretsInner.d.ts +32 -0
  20. package/dist/model/containerSecretsInner.js +33 -0
  21. package/dist/model/listBackups200Response.d.ts +4 -0
  22. package/dist/model/listBackups200Response.js +5 -0
  23. package/dist/model/listBackups422Response.d.ts +25 -0
  24. package/dist/model/listBackups422Response.js +28 -0
  25. package/dist/model/models.d.ts +5 -0
  26. package/dist/model/models.js +17 -0
  27. package/dist/model/updateEnvironmentRequest.d.ts +9 -1
  28. package/dist/model/updateEnvironmentRequest.js +10 -0
  29. package/dist/model/validateCompose200Response.d.ts +9 -3
  30. package/dist/model/validateCompose422Response.d.ts +25 -0
  31. package/dist/model/validateCompose422Response.js +28 -0
  32. package/dist/model/validateComposeRequest.d.ts +12 -1
  33. package/dist/model/validateComposeRequest.js +10 -0
  34. package/package.json +1 -1
package/README.md CHANGED
@@ -5,13 +5,13 @@ A TypeScript client for the Quant API.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install quant-ts-client
8
+ npm install @quantcdn/quant-client
9
9
  ```
10
10
 
11
11
  ## Usage
12
12
 
13
13
  ```typescript
14
- import { EnvironmentsApi, Configuration } from 'quant-ts-client';
14
+ import { EnvironmentsApi, Configuration } from '@quantcdn/quant-client';
15
15
 
16
16
  // Create a configuration with your API key
17
17
  const config = new Configuration({
@@ -62,4 +62,4 @@ npm publish
62
62
 
63
63
  ## License
64
64
 
65
- MIT
65
+ MIT
@@ -88,14 +88,20 @@ export declare class BackupManagementApi {
88
88
  body: DownloadBackup200Response;
89
89
  }>;
90
90
  /**
91
- *
91
+ * Retrieves a list of backups (database or filesystem) for the environment with status, size, and metadata. Supports filtering and ordering via query parameters.
92
92
  * @summary List backups for an environment
93
93
  * @param organisation The organisation ID
94
94
  * @param application The application ID
95
95
  * @param environment The environment ID
96
96
  * @param type The backup type
97
+ * @param order Sort order for backups by creation date (asc = oldest first, desc = newest first)
98
+ * @param limit Maximum number of backups to return (max 100)
99
+ * @param createdBefore Only return backups created before this ISO 8601 timestamp (e.g., 2025-01-01T00:00:00Z)
100
+ * @param createdAfter Only return backups created after this ISO 8601 timestamp (e.g., 2024-12-01T00:00:00Z)
101
+ * @param status Filter backups by status
102
+ * @param nextToken Token for retrieving the next page of results
97
103
  */
98
- listBackups(organisation: string, application: string, environment: string, type: 'database' | 'filesystem', options?: {
104
+ listBackups(organisation: string, application: string, environment: string, type: 'database' | 'filesystem', order?: 'asc' | 'desc', limit?: number, createdBefore?: Date, createdAfter?: Date, status?: 'completed' | 'failed' | 'running', nextToken?: string, options?: {
99
105
  headers: {
100
106
  [name: string]: string;
101
107
  };
@@ -351,14 +351,20 @@ class BackupManagementApi {
351
351
  });
352
352
  }
353
353
  /**
354
- *
354
+ * Retrieves a list of backups (database or filesystem) for the environment with status, size, and metadata. Supports filtering and ordering via query parameters.
355
355
  * @summary List backups for an environment
356
356
  * @param organisation The organisation ID
357
357
  * @param application The application ID
358
358
  * @param environment The environment ID
359
359
  * @param type The backup type
360
+ * @param order Sort order for backups by creation date (asc = oldest first, desc = newest first)
361
+ * @param limit Maximum number of backups to return (max 100)
362
+ * @param createdBefore Only return backups created before this ISO 8601 timestamp (e.g., 2025-01-01T00:00:00Z)
363
+ * @param createdAfter Only return backups created after this ISO 8601 timestamp (e.g., 2024-12-01T00:00:00Z)
364
+ * @param status Filter backups by status
365
+ * @param nextToken Token for retrieving the next page of results
360
366
  */
361
- listBackups(organisation, application, environment, type, options = { headers: {} }) {
367
+ listBackups(organisation, application, environment, type, order, limit, createdBefore, createdAfter, status, nextToken, options = { headers: {} }) {
362
368
  return __awaiter(this, void 0, void 0, function* () {
363
369
  const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/backups/{type}'
364
370
  .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
@@ -392,6 +398,24 @@ class BackupManagementApi {
392
398
  if (type === null || type === undefined) {
393
399
  throw new Error('Required parameter type was null or undefined when calling listBackups.');
394
400
  }
401
+ if (order !== undefined) {
402
+ localVarQueryParameters['order'] = models_1.ObjectSerializer.serialize(order, "'asc' | 'desc'");
403
+ }
404
+ if (limit !== undefined) {
405
+ localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
406
+ }
407
+ if (createdBefore !== undefined) {
408
+ localVarQueryParameters['createdBefore'] = models_1.ObjectSerializer.serialize(createdBefore, "Date");
409
+ }
410
+ if (createdAfter !== undefined) {
411
+ localVarQueryParameters['createdAfter'] = models_1.ObjectSerializer.serialize(createdAfter, "Date");
412
+ }
413
+ if (status !== undefined) {
414
+ localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "'completed' | 'failed' | 'running'");
415
+ }
416
+ if (nextToken !== undefined) {
417
+ localVarQueryParameters['nextToken'] = models_1.ObjectSerializer.serialize(nextToken, "string");
418
+ }
395
419
  Object.assign(localVarHeaderParams, options.headers);
396
420
  let localVarUseFormData = false;
397
421
  let localVarRequestOptions = {
@@ -50,12 +50,13 @@ export declare class ComposeApi {
50
50
  body: Compose;
51
51
  }>;
52
52
  /**
53
- *
54
- * @summary Validate a compose file
53
+ * Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
54
+ * @summary Validate Docker Compose File
55
55
  * @param organisation The organisation ID
56
- * @param validateComposeRequest
56
+ * @param validateComposeRequest The docker-compose.yml file content. Can be sent as raw YAML string or as a JSON wrapper containing both yamlContent (string) and imageSuffix (string) fields. Query parameter imageSuffix takes precedence if both are provided.
57
+ * @param imageSuffix Optional. Image tag suffix to apply during translation. Transforms internal image tags to consistent \'{containerName}-{suffix}\' format (e.g., \'nginx-pr-456\'). External images are left unchanged. Useful for feature branch deployments.
57
58
  */
58
- validateCompose(organisation: string, validateComposeRequest: ValidateComposeRequest, options?: {
59
+ validateCompose(organisation: string, validateComposeRequest: ValidateComposeRequest, imageSuffix?: string, options?: {
59
60
  headers: {
60
61
  [name: string]: string;
61
62
  };
@@ -159,12 +159,13 @@ class ComposeApi {
159
159
  });
160
160
  }
161
161
  /**
162
- *
163
- * @summary Validate a compose file
162
+ * Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
163
+ * @summary Validate Docker Compose File
164
164
  * @param organisation The organisation ID
165
- * @param validateComposeRequest
165
+ * @param validateComposeRequest The docker-compose.yml file content. Can be sent as raw YAML string or as a JSON wrapper containing both yamlContent (string) and imageSuffix (string) fields. Query parameter imageSuffix takes precedence if both are provided.
166
+ * @param imageSuffix Optional. Image tag suffix to apply during translation. Transforms internal image tags to consistent \'{containerName}-{suffix}\' format (e.g., \'nginx-pr-456\'). External images are left unchanged. Useful for feature branch deployments.
166
167
  */
167
- validateCompose(organisation, validateComposeRequest, options = { headers: {} }) {
168
+ validateCompose(organisation, validateComposeRequest, imageSuffix, options = { headers: {} }) {
168
169
  return __awaiter(this, void 0, void 0, function* () {
169
170
  const localVarPath = this.basePath + '/organisations/{organisation}/compose/validate'
170
171
  .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)));
@@ -187,6 +188,9 @@ class ComposeApi {
187
188
  if (validateComposeRequest === null || validateComposeRequest === undefined) {
188
189
  throw new Error('Required parameter validateComposeRequest was null or undefined when calling validateCompose.');
189
190
  }
191
+ if (imageSuffix !== undefined) {
192
+ localVarQueryParameters['imageSuffix'] = models_1.ObjectSerializer.serialize(imageSuffix, "string");
193
+ }
190
194
  Object.assign(localVarHeaderParams, options.headers);
191
195
  let localVarUseFormData = false;
192
196
  let localVarRequestOptions = {
@@ -160,8 +160,8 @@ export declare class EnvironmentsApi {
160
160
  body: SyncOperation;
161
161
  }>;
162
162
  /**
163
- *
164
- * @summary Update the compose for an environment
163
+ * Replaces the entire task definition for the environment based on the provided multi-container compose definition. This will create a new task definition revision and update the ECS service, triggering a redeployment. Optionally accepts minCapacity and maxCapacity at the root level for convenience.
164
+ * @summary Update Environment Compose Definition
165
165
  * @param organisation The organisation ID
166
166
  * @param application The application ID
167
167
  * @param environment The environment ID
@@ -704,8 +704,8 @@ class EnvironmentsApi {
704
704
  });
705
705
  }
706
706
  /**
707
- *
708
- * @summary Update the compose for an environment
707
+ * Replaces the entire task definition for the environment based on the provided multi-container compose definition. This will create a new task definition revision and update the ECS service, triggering a redeployment. Optionally accepts minCapacity and maxCapacity at the root level for convenience.
708
+ * @summary Update Environment Compose Definition
709
709
  * @param organisation The organisation ID
710
710
  * @param application The application ID
711
711
  * @param environment The environment ID
@@ -719,6 +719,14 @@ class EnvironmentsApi {
719
719
  .replace('{' + 'environment' + '}', encodeURIComponent(String(environment)));
720
720
  let localVarQueryParameters = {};
721
721
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
722
+ const produces = ['application/json'];
723
+ // give precedence to 'application/json'
724
+ if (produces.indexOf('application/json') >= 0) {
725
+ localVarHeaderParams.Accept = 'application/json';
726
+ }
727
+ else {
728
+ localVarHeaderParams.Accept = produces.join(',');
729
+ }
722
730
  let localVarFormParams = {};
723
731
  // verify required parameter 'organisation' is not null or undefined
724
732
  if (organisation === null || organisation === undefined) {
@@ -9,21 +9,58 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ContainerDependsOnInner } from './containerDependsOnInner';
12
13
  import { ContainerEnvironmentInner } from './containerEnvironmentInner';
14
+ import { ContainerHealthCheck } from './containerHealthCheck';
13
15
  import { ContainerImageReference } from './containerImageReference';
14
16
  import { ContainerMountPointsInner } from './containerMountPointsInner';
17
+ import { ContainerSecretsInner } from './containerSecretsInner';
15
18
  export declare class Container {
19
+ /**
20
+ * Name of the container
21
+ */
16
22
  'name': string;
17
23
  'imageReference': ContainerImageReference;
18
- 'cpu'?: number;
19
- 'memory'?: number;
20
- 'memoryReservation'?: number;
21
- 'exposedPorts'?: Array<number>;
22
- 'mountPoints'?: Array<ContainerMountPointsInner>;
23
- 'environment'?: Array<ContainerEnvironmentInner>;
24
- 'command'?: Array<string>;
25
- 'entryPoint'?: Array<string>;
26
- 'essential'?: boolean;
24
+ /**
25
+ * Container-level CPU units
26
+ */
27
+ 'cpu'?: number | null;
28
+ /**
29
+ * Container-level memory hard limit (MiB)
30
+ */
31
+ 'memory'?: number | null;
32
+ /**
33
+ * Container-level memory soft limit (MiB)
34
+ */
35
+ 'memoryReservation'?: number | null;
36
+ /**
37
+ * List of container ports to expose
38
+ */
39
+ 'exposedPorts'?: Array<number> | null;
40
+ 'mountPoints'?: Array<ContainerMountPointsInner> | null;
41
+ /**
42
+ * Environment variables specific to this container
43
+ */
44
+ 'environment'?: Array<ContainerEnvironmentInner> | null;
45
+ /**
46
+ * Secrets mapped to environment variables
47
+ */
48
+ 'secrets'?: Array<ContainerSecretsInner> | null;
49
+ 'healthCheck'?: ContainerHealthCheck | null;
50
+ /**
51
+ * Container startup dependencies
52
+ */
53
+ 'dependsOn'?: Array<ContainerDependsOnInner> | null;
54
+ 'command'?: Array<string> | null;
55
+ 'entryPoint'?: Array<string> | null;
56
+ 'workingDirectory'?: string | null;
57
+ 'essential'?: boolean | null;
58
+ 'readonlyRootFilesystem'?: boolean | null;
59
+ 'user'?: string | null;
60
+ /**
61
+ * Enable origin protection for all exposed ports on this container
62
+ */
63
+ 'originProtection'?: boolean | null;
27
64
  static discriminator: string | undefined;
28
65
  static attributeTypeMap: Array<{
29
66
  name: string;
@@ -13,6 +13,14 @@
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.Container = void 0;
15
15
  class Container {
16
+ constructor() {
17
+ this['essential'] = true;
18
+ this['readonlyRootFilesystem'] = false;
19
+ /**
20
+ * Enable origin protection for all exposed ports on this container
21
+ */
22
+ this['originProtection'] = false;
23
+ }
16
24
  static getAttributeTypeMap() {
17
25
  return Container.attributeTypeMap;
18
26
  }
@@ -60,6 +68,21 @@ Container.attributeTypeMap = [
60
68
  "baseName": "environment",
61
69
  "type": "Array<ContainerEnvironmentInner>"
62
70
  },
71
+ {
72
+ "name": "secrets",
73
+ "baseName": "secrets",
74
+ "type": "Array<ContainerSecretsInner>"
75
+ },
76
+ {
77
+ "name": "healthCheck",
78
+ "baseName": "healthCheck",
79
+ "type": "ContainerHealthCheck"
80
+ },
81
+ {
82
+ "name": "dependsOn",
83
+ "baseName": "dependsOn",
84
+ "type": "Array<ContainerDependsOnInner>"
85
+ },
63
86
  {
64
87
  "name": "command",
65
88
  "baseName": "command",
@@ -70,9 +93,29 @@ Container.attributeTypeMap = [
70
93
  "baseName": "entryPoint",
71
94
  "type": "Array<string>"
72
95
  },
96
+ {
97
+ "name": "workingDirectory",
98
+ "baseName": "workingDirectory",
99
+ "type": "string"
100
+ },
73
101
  {
74
102
  "name": "essential",
75
103
  "baseName": "essential",
76
104
  "type": "boolean"
105
+ },
106
+ {
107
+ "name": "readonlyRootFilesystem",
108
+ "baseName": "readonlyRootFilesystem",
109
+ "type": "boolean"
110
+ },
111
+ {
112
+ "name": "user",
113
+ "baseName": "user",
114
+ "type": "string"
115
+ },
116
+ {
117
+ "name": "originProtection",
118
+ "baseName": "originProtection",
119
+ "type": "boolean"
77
120
  }
78
121
  ];
@@ -0,0 +1,40 @@
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 ContainerDependsOnInner {
13
+ /**
14
+ * The name of the container this container depends on
15
+ */
16
+ 'containerName': string;
17
+ /**
18
+ * The condition to wait for on the dependency
19
+ */
20
+ 'condition'?: ContainerDependsOnInner.ConditionEnum;
21
+ static discriminator: string | undefined;
22
+ static attributeTypeMap: Array<{
23
+ name: string;
24
+ baseName: string;
25
+ type: string;
26
+ }>;
27
+ static getAttributeTypeMap(): {
28
+ name: string;
29
+ baseName: string;
30
+ type: string;
31
+ }[];
32
+ }
33
+ export declare namespace ContainerDependsOnInner {
34
+ enum ConditionEnum {
35
+ Start,
36
+ Healthy,
37
+ Complete,
38
+ Success
39
+ }
40
+ }
@@ -0,0 +1,42 @@
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.ContainerDependsOnInner = void 0;
15
+ class ContainerDependsOnInner {
16
+ static getAttributeTypeMap() {
17
+ return ContainerDependsOnInner.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.ContainerDependsOnInner = ContainerDependsOnInner;
21
+ ContainerDependsOnInner.discriminator = undefined;
22
+ ContainerDependsOnInner.attributeTypeMap = [
23
+ {
24
+ "name": "containerName",
25
+ "baseName": "containerName",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "name": "condition",
30
+ "baseName": "condition",
31
+ "type": "ContainerDependsOnInner.ConditionEnum"
32
+ }
33
+ ];
34
+ (function (ContainerDependsOnInner) {
35
+ let ConditionEnum;
36
+ (function (ConditionEnum) {
37
+ ConditionEnum[ConditionEnum["Start"] = 'START'] = "Start";
38
+ ConditionEnum[ConditionEnum["Healthy"] = 'HEALTHY'] = "Healthy";
39
+ ConditionEnum[ConditionEnum["Complete"] = 'COMPLETE'] = "Complete";
40
+ ConditionEnum[ConditionEnum["Success"] = 'SUCCESS'] = "Success";
41
+ })(ConditionEnum = ContainerDependsOnInner.ConditionEnum || (ContainerDependsOnInner.ConditionEnum = {}));
42
+ })(ContainerDependsOnInner = exports.ContainerDependsOnInner || (exports.ContainerDependsOnInner = {}));
@@ -10,7 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export declare class ContainerEnvironmentInner {
13
+ /**
14
+ * Environment variable name
15
+ */
13
16
  'name': string;
17
+ /**
18
+ * Environment variable value
19
+ */
14
20
  'value': string;
15
21
  static discriminator: string | undefined;
16
22
  static attributeTypeMap: Array<{
@@ -0,0 +1,47 @@
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
+ /**
13
+ * Container health check configuration
14
+ */
15
+ export declare class ContainerHealthCheck {
16
+ /**
17
+ * The command to run to determine if the container is healthy
18
+ */
19
+ 'command'?: Array<string>;
20
+ /**
21
+ * Time period (seconds) between health checks
22
+ */
23
+ 'interval'?: number;
24
+ /**
25
+ * Time period (seconds) to wait for a health check to return
26
+ */
27
+ 'timeout'?: number;
28
+ /**
29
+ * Number of times to retry a failed health check
30
+ */
31
+ 'retries'?: number;
32
+ /**
33
+ * Grace period (seconds) to ignore unhealthy checks after container starts
34
+ */
35
+ 'startPeriod'?: number | null;
36
+ static discriminator: string | undefined;
37
+ static attributeTypeMap: Array<{
38
+ name: string;
39
+ baseName: string;
40
+ type: string;
41
+ }>;
42
+ static getAttributeTypeMap(): {
43
+ name: string;
44
+ baseName: string;
45
+ type: string;
46
+ }[];
47
+ }
@@ -0,0 +1,65 @@
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.ContainerHealthCheck = void 0;
15
+ /**
16
+ * Container health check configuration
17
+ */
18
+ class ContainerHealthCheck {
19
+ constructor() {
20
+ /**
21
+ * Time period (seconds) between health checks
22
+ */
23
+ this['interval'] = 30;
24
+ /**
25
+ * Time period (seconds) to wait for a health check to return
26
+ */
27
+ this['timeout'] = 5;
28
+ /**
29
+ * Number of times to retry a failed health check
30
+ */
31
+ this['retries'] = 3;
32
+ }
33
+ static getAttributeTypeMap() {
34
+ return ContainerHealthCheck.attributeTypeMap;
35
+ }
36
+ }
37
+ exports.ContainerHealthCheck = ContainerHealthCheck;
38
+ ContainerHealthCheck.discriminator = undefined;
39
+ ContainerHealthCheck.attributeTypeMap = [
40
+ {
41
+ "name": "command",
42
+ "baseName": "command",
43
+ "type": "Array<string>"
44
+ },
45
+ {
46
+ "name": "interval",
47
+ "baseName": "interval",
48
+ "type": "number"
49
+ },
50
+ {
51
+ "name": "timeout",
52
+ "baseName": "timeout",
53
+ "type": "number"
54
+ },
55
+ {
56
+ "name": "retries",
57
+ "baseName": "retries",
58
+ "type": "number"
59
+ },
60
+ {
61
+ "name": "startPeriod",
62
+ "baseName": "startPeriod",
63
+ "type": "number"
64
+ }
65
+ ];
@@ -10,10 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export declare class ContainerImageReference {
13
- 'repository': string;
14
- 'tag': string;
15
- 'type'?: string;
16
- 'identifier'?: string;
13
+ /**
14
+ * Specifies whether the image is internal (ECR) or external (e.g., Docker Hub)
15
+ */
16
+ 'type': ContainerImageReference.TypeEnum;
17
+ /**
18
+ * The image identifier. For \'internal\' type, this is the image tag. For \'external\' type, this is the full image name.
19
+ */
20
+ 'identifier': string;
17
21
  static discriminator: string | undefined;
18
22
  static attributeTypeMap: Array<{
19
23
  name: string;
@@ -26,3 +30,9 @@ export declare class ContainerImageReference {
26
30
  type: string;
27
31
  }[];
28
32
  }
33
+ export declare namespace ContainerImageReference {
34
+ enum TypeEnum {
35
+ Internal,
36
+ External
37
+ }
38
+ }
@@ -20,20 +20,10 @@ class ContainerImageReference {
20
20
  exports.ContainerImageReference = ContainerImageReference;
21
21
  ContainerImageReference.discriminator = undefined;
22
22
  ContainerImageReference.attributeTypeMap = [
23
- {
24
- "name": "repository",
25
- "baseName": "repository",
26
- "type": "string"
27
- },
28
- {
29
- "name": "tag",
30
- "baseName": "tag",
31
- "type": "string"
32
- },
33
23
  {
34
24
  "name": "type",
35
25
  "baseName": "type",
36
- "type": "string"
26
+ "type": "ContainerImageReference.TypeEnum"
37
27
  },
38
28
  {
39
29
  "name": "identifier",
@@ -41,3 +31,10 @@ ContainerImageReference.attributeTypeMap = [
41
31
  "type": "string"
42
32
  }
43
33
  ];
34
+ (function (ContainerImageReference) {
35
+ let TypeEnum;
36
+ (function (TypeEnum) {
37
+ TypeEnum[TypeEnum["Internal"] = 'internal'] = "Internal";
38
+ TypeEnum[TypeEnum["External"] = 'external'] = "External";
39
+ })(TypeEnum = ContainerImageReference.TypeEnum || (ContainerImageReference.TypeEnum = {}));
40
+ })(ContainerImageReference = exports.ContainerImageReference || (exports.ContainerImageReference = {}));
@@ -10,7 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export declare class ContainerMountPointsInner {
13
+ /**
14
+ * The name of the logical volume
15
+ */
13
16
  'sourceVolume': string;
17
+ /**
18
+ * The path inside the container where the volume is mounted
19
+ */
14
20
  'containerPath': string;
15
21
  'readOnly'?: boolean;
16
22
  static discriminator: string | undefined;
@@ -13,6 +13,9 @@
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.ContainerMountPointsInner = void 0;
15
15
  class ContainerMountPointsInner {
16
+ constructor() {
17
+ this['readOnly'] = false;
18
+ }
16
19
  static getAttributeTypeMap() {
17
20
  return ContainerMountPointsInner.attributeTypeMap;
18
21
  }
@@ -0,0 +1,32 @@
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 ContainerSecretsInner {
13
+ /**
14
+ * The environment variable name to be set in the container
15
+ */
16
+ 'name': string;
17
+ /**
18
+ * The key of the secret in the environment\'s \'app-secrets\' store
19
+ */
20
+ 'valueFrom': string;
21
+ static discriminator: string | undefined;
22
+ static attributeTypeMap: Array<{
23
+ name: string;
24
+ baseName: string;
25
+ type: string;
26
+ }>;
27
+ static getAttributeTypeMap(): {
28
+ name: string;
29
+ baseName: string;
30
+ type: string;
31
+ }[];
32
+ }
@@ -0,0 +1,33 @@
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.ContainerSecretsInner = void 0;
15
+ class ContainerSecretsInner {
16
+ static getAttributeTypeMap() {
17
+ return ContainerSecretsInner.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.ContainerSecretsInner = ContainerSecretsInner;
21
+ ContainerSecretsInner.discriminator = undefined;
22
+ ContainerSecretsInner.attributeTypeMap = [
23
+ {
24
+ "name": "name",
25
+ "baseName": "name",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "name": "valueFrom",
30
+ "baseName": "valueFrom",
31
+ "type": "string"
32
+ }
33
+ ];
@@ -13,6 +13,10 @@ import { ListBackups200ResponseBackupsInner } from './listBackups200ResponseBack
13
13
  export declare class ListBackups200Response {
14
14
  'backups'?: Array<ListBackups200ResponseBackupsInner>;
15
15
  'count'?: number;
16
+ /**
17
+ * Token for retrieving the next page of results, if more data is available
18
+ */
19
+ 'nextToken'?: string | null;
16
20
  'message'?: string;
17
21
  static discriminator: string | undefined;
18
22
  static attributeTypeMap: Array<{
@@ -30,6 +30,11 @@ ListBackups200Response.attributeTypeMap = [
30
30
  "baseName": "count",
31
31
  "type": "number"
32
32
  },
33
+ {
34
+ "name": "nextToken",
35
+ "baseName": "nextToken",
36
+ "type": "string"
37
+ },
33
38
  {
34
39
  "name": "message",
35
40
  "baseName": "message",
@@ -0,0 +1,25 @@
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 ListBackups422Response {
13
+ 'error'?: string;
14
+ static discriminator: string | undefined;
15
+ static attributeTypeMap: Array<{
16
+ name: string;
17
+ baseName: string;
18
+ type: string;
19
+ }>;
20
+ static getAttributeTypeMap(): {
21
+ name: string;
22
+ baseName: string;
23
+ type: string;
24
+ }[];
25
+ }
@@ -0,0 +1,28 @@
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.ListBackups422Response = void 0;
15
+ class ListBackups422Response {
16
+ static getAttributeTypeMap() {
17
+ return ListBackups422Response.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.ListBackups422Response = ListBackups422Response;
21
+ ListBackups422Response.discriminator = undefined;
22
+ ListBackups422Response.attributeTypeMap = [
23
+ {
24
+ "name": "error",
25
+ "baseName": "error",
26
+ "type": "string"
27
+ }
28
+ ];
@@ -6,9 +6,12 @@ export * from './application';
6
6
  export * from './command';
7
7
  export * from './compose';
8
8
  export * from './container';
9
+ export * from './containerDependsOnInner';
9
10
  export * from './containerEnvironmentInner';
11
+ export * from './containerHealthCheck';
10
12
  export * from './containerImageReference';
11
13
  export * from './containerMountPointsInner';
14
+ export * from './containerSecretsInner';
12
15
  export * from './createBackup202Response';
13
16
  export * from './createBackupRequest';
14
17
  export * from './createCommandRequest';
@@ -25,6 +28,7 @@ export * from './getSshAccessCredentials200Response';
25
28
  export * from './getSshAccessCredentials200ResponseCredentials';
26
29
  export * from './listBackups200Response';
27
30
  export * from './listBackups200ResponseBackupsInner';
31
+ export * from './listBackups422Response';
28
32
  export * from './scalingPolicy';
29
33
  export * from './syncOperation';
30
34
  export * from './syncToEnvironmentRequest';
@@ -33,6 +37,7 @@ export * from './updateEnvironmentRequest';
33
37
  export * from './updateEnvironmentStateRequest';
34
38
  export * from './updateEnvironmentVariableRequest';
35
39
  export * from './validateCompose200Response';
40
+ export * from './validateCompose422Response';
36
41
  export * from './validateComposeRequest';
37
42
  export * from './variable';
38
43
  export * from './volume';
@@ -19,9 +19,12 @@ __exportStar(require("./application"), exports);
19
19
  __exportStar(require("./command"), exports);
20
20
  __exportStar(require("./compose"), exports);
21
21
  __exportStar(require("./container"), exports);
22
+ __exportStar(require("./containerDependsOnInner"), exports);
22
23
  __exportStar(require("./containerEnvironmentInner"), exports);
24
+ __exportStar(require("./containerHealthCheck"), exports);
23
25
  __exportStar(require("./containerImageReference"), exports);
24
26
  __exportStar(require("./containerMountPointsInner"), exports);
27
+ __exportStar(require("./containerSecretsInner"), exports);
25
28
  __exportStar(require("./createBackup202Response"), exports);
26
29
  __exportStar(require("./createBackupRequest"), exports);
27
30
  __exportStar(require("./createCommandRequest"), exports);
@@ -38,6 +41,7 @@ __exportStar(require("./getSshAccessCredentials200Response"), exports);
38
41
  __exportStar(require("./getSshAccessCredentials200ResponseCredentials"), exports);
39
42
  __exportStar(require("./listBackups200Response"), exports);
40
43
  __exportStar(require("./listBackups200ResponseBackupsInner"), exports);
44
+ __exportStar(require("./listBackups422Response"), exports);
41
45
  __exportStar(require("./scalingPolicy"), exports);
42
46
  __exportStar(require("./syncOperation"), exports);
43
47
  __exportStar(require("./syncToEnvironmentRequest"), exports);
@@ -46,6 +50,7 @@ __exportStar(require("./updateEnvironmentRequest"), exports);
46
50
  __exportStar(require("./updateEnvironmentStateRequest"), exports);
47
51
  __exportStar(require("./updateEnvironmentVariableRequest"), exports);
48
52
  __exportStar(require("./validateCompose200Response"), exports);
53
+ __exportStar(require("./validateCompose422Response"), exports);
49
54
  __exportStar(require("./validateComposeRequest"), exports);
50
55
  __exportStar(require("./variable"), exports);
51
56
  __exportStar(require("./volume"), exports);
@@ -53,9 +58,12 @@ const application_1 = require("./application");
53
58
  const command_1 = require("./command");
54
59
  const compose_1 = require("./compose");
55
60
  const container_1 = require("./container");
61
+ const containerDependsOnInner_1 = require("./containerDependsOnInner");
56
62
  const containerEnvironmentInner_1 = require("./containerEnvironmentInner");
63
+ const containerHealthCheck_1 = require("./containerHealthCheck");
57
64
  const containerImageReference_1 = require("./containerImageReference");
58
65
  const containerMountPointsInner_1 = require("./containerMountPointsInner");
66
+ const containerSecretsInner_1 = require("./containerSecretsInner");
59
67
  const createBackup202Response_1 = require("./createBackup202Response");
60
68
  const createBackupRequest_1 = require("./createBackupRequest");
61
69
  const createCommandRequest_1 = require("./createCommandRequest");
@@ -72,6 +80,7 @@ const getSshAccessCredentials200Response_1 = require("./getSshAccessCredentials2
72
80
  const getSshAccessCredentials200ResponseCredentials_1 = require("./getSshAccessCredentials200ResponseCredentials");
73
81
  const listBackups200Response_1 = require("./listBackups200Response");
74
82
  const listBackups200ResponseBackupsInner_1 = require("./listBackups200ResponseBackupsInner");
83
+ const listBackups422Response_1 = require("./listBackups422Response");
75
84
  const scalingPolicy_1 = require("./scalingPolicy");
76
85
  const syncOperation_1 = require("./syncOperation");
77
86
  const syncToEnvironmentRequest_1 = require("./syncToEnvironmentRequest");
@@ -80,6 +89,7 @@ const updateEnvironmentRequest_1 = require("./updateEnvironmentRequest");
80
89
  const updateEnvironmentStateRequest_1 = require("./updateEnvironmentStateRequest");
81
90
  const updateEnvironmentVariableRequest_1 = require("./updateEnvironmentVariableRequest");
82
91
  const validateCompose200Response_1 = require("./validateCompose200Response");
92
+ const validateCompose422Response_1 = require("./validateCompose422Response");
83
93
  const validateComposeRequest_1 = require("./validateComposeRequest");
84
94
  const variable_1 = require("./variable");
85
95
  const volume_1 = require("./volume");
@@ -95,6 +105,8 @@ let primitives = [
95
105
  "any"
96
106
  ];
97
107
  let enumsMap = {
108
+ "ContainerDependsOnInner.ConditionEnum": containerDependsOnInner_1.ContainerDependsOnInner.ConditionEnum,
109
+ "ContainerImageReference.TypeEnum": containerImageReference_1.ContainerImageReference.TypeEnum,
98
110
  "CronRun.RunTypeEnum": cronRun_1.CronRun.RunTypeEnum,
99
111
  "CronRun.StatusEnum": cronRun_1.CronRun.StatusEnum,
100
112
  "ScalingPolicy.MetricEnum": scalingPolicy_1.ScalingPolicy.MetricEnum,
@@ -104,9 +116,12 @@ let typeMap = {
104
116
  "Command": command_1.Command,
105
117
  "Compose": compose_1.Compose,
106
118
  "Container": container_1.Container,
119
+ "ContainerDependsOnInner": containerDependsOnInner_1.ContainerDependsOnInner,
107
120
  "ContainerEnvironmentInner": containerEnvironmentInner_1.ContainerEnvironmentInner,
121
+ "ContainerHealthCheck": containerHealthCheck_1.ContainerHealthCheck,
108
122
  "ContainerImageReference": containerImageReference_1.ContainerImageReference,
109
123
  "ContainerMountPointsInner": containerMountPointsInner_1.ContainerMountPointsInner,
124
+ "ContainerSecretsInner": containerSecretsInner_1.ContainerSecretsInner,
110
125
  "CreateBackup202Response": createBackup202Response_1.CreateBackup202Response,
111
126
  "CreateBackupRequest": createBackupRequest_1.CreateBackupRequest,
112
127
  "CreateCommandRequest": createCommandRequest_1.CreateCommandRequest,
@@ -123,6 +138,7 @@ let typeMap = {
123
138
  "GetSshAccessCredentials200ResponseCredentials": getSshAccessCredentials200ResponseCredentials_1.GetSshAccessCredentials200ResponseCredentials,
124
139
  "ListBackups200Response": listBackups200Response_1.ListBackups200Response,
125
140
  "ListBackups200ResponseBackupsInner": listBackups200ResponseBackupsInner_1.ListBackups200ResponseBackupsInner,
141
+ "ListBackups422Response": listBackups422Response_1.ListBackups422Response,
126
142
  "ScalingPolicy": scalingPolicy_1.ScalingPolicy,
127
143
  "SyncOperation": syncOperation_1.SyncOperation,
128
144
  "SyncToEnvironmentRequest": syncToEnvironmentRequest_1.SyncToEnvironmentRequest,
@@ -131,6 +147,7 @@ let typeMap = {
131
147
  "UpdateEnvironmentStateRequest": updateEnvironmentStateRequest_1.UpdateEnvironmentStateRequest,
132
148
  "UpdateEnvironmentVariableRequest": updateEnvironmentVariableRequest_1.UpdateEnvironmentVariableRequest,
133
149
  "ValidateCompose200Response": validateCompose200Response_1.ValidateCompose200Response,
150
+ "ValidateCompose422Response": validateCompose422Response_1.ValidateCompose422Response,
134
151
  "ValidateComposeRequest": validateComposeRequest_1.ValidateComposeRequest,
135
152
  "Variable": variable_1.Variable,
136
153
  "Volume": volume_1.Volume,
@@ -11,7 +11,15 @@
11
11
  */
12
12
  import { Compose } from './compose';
13
13
  export declare class UpdateEnvironmentRequest {
14
- 'composeDefinition'?: Compose;
14
+ 'composeDefinition': Compose;
15
+ /**
16
+ * Optional. Minimum number of tasks for auto-scaling. If provided at root level, will be merged into composeDefinition.
17
+ */
18
+ 'minCapacity'?: number | null;
19
+ /**
20
+ * Optional. Maximum number of tasks for auto-scaling. If provided at root level, will be merged into composeDefinition.
21
+ */
22
+ 'maxCapacity'?: number | null;
15
23
  static discriminator: string | undefined;
16
24
  static attributeTypeMap: Array<{
17
25
  name: string;
@@ -24,5 +24,15 @@ UpdateEnvironmentRequest.attributeTypeMap = [
24
24
  "name": "composeDefinition",
25
25
  "baseName": "composeDefinition",
26
26
  "type": "Compose"
27
+ },
28
+ {
29
+ "name": "minCapacity",
30
+ "baseName": "minCapacity",
31
+ "type": "number"
32
+ },
33
+ {
34
+ "name": "maxCapacity",
35
+ "baseName": "maxCapacity",
36
+ "type": "number"
27
37
  }
28
38
  ];
@@ -10,9 +10,15 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export declare class ValidateCompose200Response {
13
- 'message'?: string;
14
- 'translatedComposeDefinition'?: object;
15
- 'translationWarnings'?: Array<string>;
13
+ 'message': string;
14
+ /**
15
+ * The translated internal compose definition format
16
+ */
17
+ 'translatedComposeDefinition': object;
18
+ /**
19
+ * Optional warnings encountered during translation
20
+ */
21
+ 'translationWarnings'?: Array<string> | null;
16
22
  static discriminator: string | undefined;
17
23
  static attributeTypeMap: Array<{
18
24
  name: string;
@@ -0,0 +1,25 @@
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 ValidateCompose422Response {
13
+ 'error'?: string;
14
+ static discriminator: string | undefined;
15
+ static attributeTypeMap: Array<{
16
+ name: string;
17
+ baseName: string;
18
+ type: string;
19
+ }>;
20
+ static getAttributeTypeMap(): {
21
+ name: string;
22
+ baseName: string;
23
+ type: string;
24
+ }[];
25
+ }
@@ -0,0 +1,28 @@
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.ValidateCompose422Response = void 0;
15
+ class ValidateCompose422Response {
16
+ static getAttributeTypeMap() {
17
+ return ValidateCompose422Response.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.ValidateCompose422Response = ValidateCompose422Response;
21
+ ValidateCompose422Response.discriminator = undefined;
22
+ ValidateCompose422Response.attributeTypeMap = [
23
+ {
24
+ "name": "error",
25
+ "baseName": "error",
26
+ "type": "string"
27
+ }
28
+ ];
@@ -10,7 +10,18 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export declare class ValidateComposeRequest {
13
- 'compose'?: string;
13
+ /**
14
+ * The docker-compose.yml file content as a string
15
+ */
16
+ 'compose': string;
17
+ /**
18
+ * Optional image tag suffix (query parameter takes precedence)
19
+ */
20
+ 'imageSuffix'?: string;
21
+ /**
22
+ * Optional application name for context
23
+ */
24
+ 'application'?: string;
14
25
  static discriminator: string | undefined;
15
26
  static attributeTypeMap: Array<{
16
27
  name: string;
@@ -24,5 +24,15 @@ ValidateComposeRequest.attributeTypeMap = [
24
24
  "name": "compose",
25
25
  "baseName": "compose",
26
26
  "type": "string"
27
+ },
28
+ {
29
+ "name": "imageSuffix",
30
+ "baseName": "imageSuffix",
31
+ "type": "string"
32
+ },
33
+ {
34
+ "name": "application",
35
+ "baseName": "application",
36
+ "type": "string"
27
37
  }
28
38
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantcdn/quant-client",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "TypeScript client for Quant Cloud API",
5
5
  "main": "dist/api.js",
6
6
  "types": "dist/api.d.ts",