@quantcdn/quant-client 3.0.2 → 3.0.3

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.
@@ -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 = {
@@ -33,6 +33,7 @@ export * from './updateEnvironmentRequest';
33
33
  export * from './updateEnvironmentStateRequest';
34
34
  export * from './updateEnvironmentVariableRequest';
35
35
  export * from './validateCompose200Response';
36
+ export * from './validateCompose422Response';
36
37
  export * from './validateComposeRequest';
37
38
  export * from './variable';
38
39
  export * from './volume';
@@ -46,6 +46,7 @@ __exportStar(require("./updateEnvironmentRequest"), exports);
46
46
  __exportStar(require("./updateEnvironmentStateRequest"), exports);
47
47
  __exportStar(require("./updateEnvironmentVariableRequest"), exports);
48
48
  __exportStar(require("./validateCompose200Response"), exports);
49
+ __exportStar(require("./validateCompose422Response"), exports);
49
50
  __exportStar(require("./validateComposeRequest"), exports);
50
51
  __exportStar(require("./variable"), exports);
51
52
  __exportStar(require("./volume"), exports);
@@ -80,6 +81,7 @@ const updateEnvironmentRequest_1 = require("./updateEnvironmentRequest");
80
81
  const updateEnvironmentStateRequest_1 = require("./updateEnvironmentStateRequest");
81
82
  const updateEnvironmentVariableRequest_1 = require("./updateEnvironmentVariableRequest");
82
83
  const validateCompose200Response_1 = require("./validateCompose200Response");
84
+ const validateCompose422Response_1 = require("./validateCompose422Response");
83
85
  const validateComposeRequest_1 = require("./validateComposeRequest");
84
86
  const variable_1 = require("./variable");
85
87
  const volume_1 = require("./volume");
@@ -131,6 +133,7 @@ let typeMap = {
131
133
  "UpdateEnvironmentStateRequest": updateEnvironmentStateRequest_1.UpdateEnvironmentStateRequest,
132
134
  "UpdateEnvironmentVariableRequest": updateEnvironmentVariableRequest_1.UpdateEnvironmentVariableRequest,
133
135
  "ValidateCompose200Response": validateCompose200Response_1.ValidateCompose200Response,
136
+ "ValidateCompose422Response": validateCompose422Response_1.ValidateCompose422Response,
134
137
  "ValidateComposeRequest": validateComposeRequest_1.ValidateComposeRequest,
135
138
  "Variable": variable_1.Variable,
136
139
  "Volume": volume_1.Volume,
@@ -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.3",
4
4
  "description": "TypeScript client for Quant Cloud API",
5
5
  "main": "dist/api.js",
6
6
  "types": "dist/api.d.ts",