@quantcdn/quant-client 3.0.1 → 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.
- package/dist/api/composeApi.d.ts +5 -4
- package/dist/api/composeApi.js +8 -4
- package/dist/model/listBackups200Response.d.ts +2 -0
- package/dist/model/listBackups200Response.js +10 -0
- package/dist/model/listBackups200ResponseBackupsInner.d.ts +10 -2
- package/dist/model/listBackups200ResponseBackupsInner.js +45 -5
- package/dist/model/models.d.ts +1 -0
- package/dist/model/models.js +3 -0
- package/dist/model/validateCompose200Response.d.ts +9 -3
- package/dist/model/validateCompose422Response.d.ts +25 -0
- package/dist/model/validateCompose422Response.js +28 -0
- package/dist/model/validateComposeRequest.d.ts +12 -1
- package/dist/model/validateComposeRequest.js +10 -0
- package/package.json +1 -1
package/dist/api/composeApi.d.ts
CHANGED
|
@@ -50,12 +50,13 @@ export declare class ComposeApi {
|
|
|
50
50
|
body: Compose;
|
|
51
51
|
}>;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
54
|
-
* @summary Validate
|
|
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
|
};
|
package/dist/api/composeApi.js
CHANGED
|
@@ -159,12 +159,13 @@ class ComposeApi {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
|
-
*
|
|
163
|
-
* @summary Validate
|
|
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 = {
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import { ListBackups200ResponseBackupsInner } from './listBackups200ResponseBackupsInner';
|
|
13
13
|
export declare class ListBackups200Response {
|
|
14
14
|
'backups'?: Array<ListBackups200ResponseBackupsInner>;
|
|
15
|
+
'count'?: number;
|
|
16
|
+
'message'?: string;
|
|
15
17
|
static discriminator: string | undefined;
|
|
16
18
|
static attributeTypeMap: Array<{
|
|
17
19
|
name: string;
|
|
@@ -24,5 +24,15 @@ ListBackups200Response.attributeTypeMap = [
|
|
|
24
24
|
"name": "backups",
|
|
25
25
|
"baseName": "backups",
|
|
26
26
|
"type": "Array<ListBackups200ResponseBackupsInner>"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "count",
|
|
30
|
+
"baseName": "count",
|
|
31
|
+
"type": "number"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "message",
|
|
35
|
+
"baseName": "message",
|
|
36
|
+
"type": "string"
|
|
27
37
|
}
|
|
28
38
|
];
|
|
@@ -10,11 +10,19 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
export declare class ListBackups200ResponseBackupsInner {
|
|
13
|
-
'
|
|
13
|
+
'backupId'?: string;
|
|
14
14
|
'status'?: string;
|
|
15
|
+
'type'?: string;
|
|
16
|
+
'engine'?: string;
|
|
17
|
+
'description'?: string;
|
|
15
18
|
'createdAt'?: Date;
|
|
19
|
+
'updatedAt'?: Date;
|
|
20
|
+
'taskArn'?: string;
|
|
21
|
+
's3Key'?: string;
|
|
22
|
+
'bucketName'?: string;
|
|
16
23
|
'size'?: number;
|
|
17
|
-
'
|
|
24
|
+
'sizeFormatted'?: string;
|
|
25
|
+
'fileExists'?: boolean;
|
|
18
26
|
static discriminator: string | undefined;
|
|
19
27
|
static attributeTypeMap: Array<{
|
|
20
28
|
name: string;
|
|
@@ -21,8 +21,8 @@ exports.ListBackups200ResponseBackupsInner = ListBackups200ResponseBackupsInner;
|
|
|
21
21
|
ListBackups200ResponseBackupsInner.discriminator = undefined;
|
|
22
22
|
ListBackups200ResponseBackupsInner.attributeTypeMap = [
|
|
23
23
|
{
|
|
24
|
-
"name": "
|
|
25
|
-
"baseName": "
|
|
24
|
+
"name": "backupId",
|
|
25
|
+
"baseName": "backupId",
|
|
26
26
|
"type": "string"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
@@ -30,19 +30,59 @@ ListBackups200ResponseBackupsInner.attributeTypeMap = [
|
|
|
30
30
|
"baseName": "status",
|
|
31
31
|
"type": "string"
|
|
32
32
|
},
|
|
33
|
+
{
|
|
34
|
+
"name": "type",
|
|
35
|
+
"baseName": "type",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "engine",
|
|
40
|
+
"baseName": "engine",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "description",
|
|
45
|
+
"baseName": "description",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
33
48
|
{
|
|
34
49
|
"name": "createdAt",
|
|
35
50
|
"baseName": "createdAt",
|
|
36
51
|
"type": "Date"
|
|
37
52
|
},
|
|
53
|
+
{
|
|
54
|
+
"name": "updatedAt",
|
|
55
|
+
"baseName": "updatedAt",
|
|
56
|
+
"type": "Date"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "taskArn",
|
|
60
|
+
"baseName": "taskArn",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "s3Key",
|
|
65
|
+
"baseName": "s3Key",
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "bucketName",
|
|
70
|
+
"baseName": "bucketName",
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
38
73
|
{
|
|
39
74
|
"name": "size",
|
|
40
75
|
"baseName": "size",
|
|
41
76
|
"type": "number"
|
|
42
77
|
},
|
|
43
78
|
{
|
|
44
|
-
"name": "
|
|
45
|
-
"baseName": "
|
|
46
|
-
"type": "
|
|
79
|
+
"name": "sizeFormatted",
|
|
80
|
+
"baseName": "sizeFormatted",
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "fileExists",
|
|
85
|
+
"baseName": "fileExists",
|
|
86
|
+
"type": "boolean"
|
|
47
87
|
}
|
|
48
88
|
];
|
package/dist/model/models.d.ts
CHANGED
|
@@ -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';
|
package/dist/model/models.js
CHANGED
|
@@ -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'
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
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
|
];
|