@devopness/sdk-js 3.5.4 → 3.6.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.
- package/dist/api/generated/apis/actions-api.d.ts +3 -1
- package/dist/api/generated/apis/actions-api.js +18 -29
- package/dist/api/generated/apis/actions-logs-api.js +1 -2
- package/dist/api/generated/apis/applications-api.d.ts +11 -2
- package/dist/api/generated/apis/applications-api.js +31 -20
- package/dist/api/generated/apis/applications-hooks-api.js +5 -8
- package/dist/api/generated/apis/applications-variables-api.js +6 -10
- package/dist/api/generated/apis/credentials-api.js +26 -46
- package/dist/api/generated/apis/credentials-repositories-api.js +6 -10
- package/dist/api/generated/apis/cron-jobs-api.js +10 -18
- package/dist/api/generated/apis/daemons-api.js +14 -26
- package/dist/api/generated/apis/environments-actions-api.d.ts +6 -2
- package/dist/api/generated/apis/environments-actions-api.js +15 -18
- package/dist/api/generated/apis/environments-api.js +5 -10
- package/dist/api/generated/apis/hook-requests-api.js +1 -2
- package/dist/api/generated/apis/hooks-api.js +4 -8
- package/dist/api/generated/apis/hooks-requests-api.js +5 -8
- package/dist/api/generated/apis/network-rules-api.js +10 -18
- package/dist/api/generated/apis/networks-api.js +13 -18
- package/dist/api/generated/apis/networks-subnets-api.js +8 -10
- package/dist/api/generated/apis/organizations-api.js +9 -16
- package/dist/api/generated/apis/pipelines-actions-api.js +6 -10
- package/dist/api/generated/apis/pipelines-api.js +9 -16
- package/dist/api/generated/apis/pipelines-hooks-api.js +6 -10
- package/dist/api/generated/apis/pipelines-steps-api.js +4 -8
- package/dist/api/generated/apis/projects-actions-api.js +5 -8
- package/dist/api/generated/apis/projects-api.js +11 -18
- package/dist/api/generated/apis/projects-apitokens-api.js +9 -16
- package/dist/api/generated/apis/projects-archived-environments-api.js +5 -8
- package/dist/api/generated/apis/projects-environments-api.js +6 -10
- package/dist/api/generated/apis/resource-events-api.js +6 -10
- package/dist/api/generated/apis/resource-links-api.js +12 -20
- package/dist/api/generated/apis/roles-api.js +9 -16
- package/dist/api/generated/apis/servers-api.js +19 -38
- package/dist/api/generated/apis/services-api.js +15 -28
- package/dist/api/generated/apis/services-variables-api.js +6 -10
- package/dist/api/generated/apis/social-accounts-api.js +9 -16
- package/dist/api/generated/apis/sshkeys-api.js +10 -18
- package/dist/api/generated/apis/sslcertificates-api.js +9 -16
- package/dist/api/generated/apis/static-data-api.js +27 -52
- package/dist/api/generated/apis/subnets-api.js +7 -12
- package/dist/api/generated/apis/team-invitations-api.js +6 -12
- package/dist/api/generated/apis/teams-api.js +32 -60
- package/dist/api/generated/apis/teams-invitations-api.js +6 -10
- package/dist/api/generated/apis/teams-members-api.js +7 -12
- package/dist/api/generated/apis/users-api.js +12 -24
- package/dist/api/generated/apis/users-environments-api.js +6 -8
- package/dist/api/generated/apis/users-passwords-api.js +2 -4
- package/dist/api/generated/apis/users-personal-access-tokens-api.js +9 -16
- package/dist/api/generated/apis/users-projects-api.js +6 -8
- package/dist/api/generated/apis/users-team-invitations-api.js +5 -8
- package/dist/api/generated/apis/variables-api.js +11 -16
- package/dist/api/generated/apis/virtual-hosts-api.js +11 -20
- package/dist/api/generated/models/application-apply-template-response.d.ts +201 -0
- package/dist/api/generated/models/application-apply-template-response.js +14 -0
- package/dist/api/generated/models/application-environment-apply-template.d.ts +44 -0
- package/dist/api/generated/models/application-environment-apply-template.js +14 -0
- package/dist/api/generated/models/application-environment-create.d.ts +2 -16
- package/dist/api/generated/models/application-relation.d.ts +1 -1
- package/dist/api/generated/models/application-update.d.ts +2 -2
- package/dist/api/generated/models/application.d.ts +1 -1
- package/dist/api/generated/models/index.d.ts +5 -0
- package/dist/api/generated/models/index.js +5 -0
- package/dist/api/generated/models/list-actions-filter-parameter.d.ts +60 -0
- package/dist/api/generated/models/list-actions-filter-parameter.js +14 -0
- package/dist/api/generated/models/list-environment-actions-by-resource-type-filter-parameter.d.ts +36 -0
- package/dist/api/generated/models/list-environment-actions-by-resource-type-filter-parameter.js +14 -0
- package/dist/api/generated/models/list-environment-actions-filter-parameter.d.ts +42 -0
- package/dist/api/generated/models/list-environment-actions-filter-parameter.js +14 -0
- package/dist/api/generated/models/virtual-host-environment-create.d.ts +2 -2
- package/dist/api/generated/models/virtual-host-relation.d.ts +1 -1
- package/dist/api/generated/models/virtual-host-update.d.ts +2 -2
- package/dist/api/generated/models/virtual-host.d.ts +1 -1
- package/dist/common/utils.d.ts +12 -0
- package/dist/common/utils.js +71 -0
- package/dist/services/ApiBaseService.d.ts +4 -4
- package/package.json +4 -4
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApplicationEnvironmentApplyTemplate
|
|
16
|
+
*/
|
|
17
|
+
export interface ApplicationEnvironmentApplyTemplate {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the Template to be applied.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApplicationEnvironmentApplyTemplate
|
|
22
|
+
*/
|
|
23
|
+
template_id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Key/value pairs used to fill template placeholders before an application is created. Each template decides which inputs it accepts.
|
|
26
|
+
* @type {{ [key: string]: object; }}
|
|
27
|
+
* @memberof ApplicationEnvironmentApplyTemplate
|
|
28
|
+
*/
|
|
29
|
+
template_inputs: {
|
|
30
|
+
[key: string]: object;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Raw YAML for a custom template manifest. Must not be greater than 21504 characters.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ApplicationEnvironmentApplyTemplate
|
|
36
|
+
*/
|
|
37
|
+
template?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Validate the template and permissions without creating any database records.
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof ApplicationEnvironmentApplyTemplate
|
|
42
|
+
*/
|
|
43
|
+
dry_run?: boolean;
|
|
44
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -47,7 +47,7 @@ export interface ApplicationEnvironmentCreate {
|
|
|
47
47
|
*/
|
|
48
48
|
framework: string;
|
|
49
49
|
/**
|
|
50
|
-
* The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js
|
|
50
|
+
* The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js and should be served statically (an SPA application, for instance), then this field value should be `nodejs` and the framework should be `html`. Must not be greater than 30 characters.
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof ApplicationEnvironmentCreate
|
|
53
53
|
*/
|
|
@@ -65,7 +65,7 @@ export interface ApplicationEnvironmentCreate {
|
|
|
65
65
|
*/
|
|
66
66
|
credential_id: number;
|
|
67
67
|
/**
|
|
68
|
-
* The relative directory where package manager\'s manifest files (`package.json`, `composer.json`, `yarn.lock`, etc) are located. It needs to be set for applications where the actual source code is not located in the top level directory of the repository. Must start with one of <code>/</code
|
|
68
|
+
* The relative directory where package manager\'s manifest files (`package.json`, `composer.json`, `yarn.lock`, etc) are located. It needs to be set for applications where the actual source code is not located in the top level directory of the repository. Must start with one of <code>/</code> Must not be greater than 255 characters.
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof ApplicationEnvironmentCreate
|
|
71
71
|
*/
|
|
@@ -88,18 +88,4 @@ export interface ApplicationEnvironmentCreate {
|
|
|
88
88
|
* @memberof ApplicationEnvironmentCreate
|
|
89
89
|
*/
|
|
90
90
|
install_dependencies_command?: string;
|
|
91
|
-
/**
|
|
92
|
-
* Optional template to use when creating the application. Leave empty to create the application directly without using a template.
|
|
93
|
-
* @type {string}
|
|
94
|
-
* @memberof ApplicationEnvironmentCreate
|
|
95
|
-
*/
|
|
96
|
-
template?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Key/value pairs used to fill template placeholders before an application is created. Each template decides which inputs it accepts.
|
|
99
|
-
* @type {{ [key: string]: object; }}
|
|
100
|
-
* @memberof ApplicationEnvironmentCreate
|
|
101
|
-
*/
|
|
102
|
-
template_inputs?: {
|
|
103
|
-
[key: string]: object;
|
|
104
|
-
};
|
|
105
91
|
}
|
|
@@ -72,7 +72,7 @@ export interface ApplicationRelation {
|
|
|
72
72
|
*/
|
|
73
73
|
default_branch: string;
|
|
74
74
|
/**
|
|
75
|
-
* The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js
|
|
75
|
+
* The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js and should be served statically (an SPA application, for instance), then this field value should be `nodejs` and the framework should be `html`.
|
|
76
76
|
* @type {string}
|
|
77
77
|
* @memberof ApplicationRelation
|
|
78
78
|
*/
|
|
@@ -46,7 +46,7 @@ export interface ApplicationUpdate {
|
|
|
46
46
|
*/
|
|
47
47
|
framework: string;
|
|
48
48
|
/**
|
|
49
|
-
* The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js
|
|
49
|
+
* The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js and should be served statically (an SPA application, for instance), then this field value should be `nodejs` and the framework should be `html`. Must not be greater than 30 characters.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof ApplicationUpdate
|
|
52
52
|
*/
|
|
@@ -64,7 +64,7 @@ export interface ApplicationUpdate {
|
|
|
64
64
|
*/
|
|
65
65
|
credential_id?: number;
|
|
66
66
|
/**
|
|
67
|
-
* The relative directory where package manager\'s manifest files (`package.json`, `composer.json`, `yarn.lock`, etc) are located. It needs to be set for applications where the actual source code is not located in the top level directory of the repository. Must start with one of <code>/</code
|
|
67
|
+
* The relative directory where package manager\'s manifest files (`package.json`, `composer.json`, `yarn.lock`, etc) are located. It needs to be set for applications where the actual source code is not located in the top level directory of the repository. Must start with one of <code>/</code> Must not be greater than 255 characters.
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof ApplicationUpdate
|
|
70
70
|
*/
|
|
@@ -79,7 +79,7 @@ export interface Application {
|
|
|
79
79
|
*/
|
|
80
80
|
default_branch: string;
|
|
81
81
|
/**
|
|
82
|
-
* The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js
|
|
82
|
+
* The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js and should be served statically (an SPA application, for instance), then this field value should be `nodejs` and the framework should be `html`.
|
|
83
83
|
* @type {string}
|
|
84
84
|
* @memberof Application
|
|
85
85
|
*/
|
|
@@ -35,6 +35,8 @@ export * from './api-token-status';
|
|
|
35
35
|
export * from './api-token-type';
|
|
36
36
|
export * from './api-token-type-prefix';
|
|
37
37
|
export * from './application';
|
|
38
|
+
export * from './application-apply-template-response';
|
|
39
|
+
export * from './application-environment-apply-template';
|
|
38
40
|
export * from './application-environment-create';
|
|
39
41
|
export * from './application-last-deployments';
|
|
40
42
|
export * from './application-options';
|
|
@@ -137,6 +139,9 @@ export * from './language-runtime-framework-commands';
|
|
|
137
139
|
export * from './language-runtime-framework-defaults';
|
|
138
140
|
export * from './linked-resource-data';
|
|
139
141
|
export * from './linked-resource-summary-field';
|
|
142
|
+
export * from './list-actions-filter-parameter';
|
|
143
|
+
export * from './list-environment-actions-by-resource-type-filter-parameter';
|
|
144
|
+
export * from './list-environment-actions-filter-parameter';
|
|
140
145
|
export * from './log';
|
|
141
146
|
export * from './member';
|
|
142
147
|
export * from './member-relation';
|
|
@@ -51,6 +51,8 @@ __exportStar(require("./api-token-status"), exports);
|
|
|
51
51
|
__exportStar(require("./api-token-type"), exports);
|
|
52
52
|
__exportStar(require("./api-token-type-prefix"), exports);
|
|
53
53
|
__exportStar(require("./application"), exports);
|
|
54
|
+
__exportStar(require("./application-apply-template-response"), exports);
|
|
55
|
+
__exportStar(require("./application-environment-apply-template"), exports);
|
|
54
56
|
__exportStar(require("./application-environment-create"), exports);
|
|
55
57
|
__exportStar(require("./application-last-deployments"), exports);
|
|
56
58
|
__exportStar(require("./application-options"), exports);
|
|
@@ -153,6 +155,9 @@ __exportStar(require("./language-runtime-framework-commands"), exports);
|
|
|
153
155
|
__exportStar(require("./language-runtime-framework-defaults"), exports);
|
|
154
156
|
__exportStar(require("./linked-resource-data"), exports);
|
|
155
157
|
__exportStar(require("./linked-resource-summary-field"), exports);
|
|
158
|
+
__exportStar(require("./list-actions-filter-parameter"), exports);
|
|
159
|
+
__exportStar(require("./list-environment-actions-by-resource-type-filter-parameter"), exports);
|
|
160
|
+
__exportStar(require("./list-environment-actions-filter-parameter"), exports);
|
|
156
161
|
__exportStar(require("./log"), exports);
|
|
157
162
|
__exportStar(require("./member"), exports);
|
|
158
163
|
__exportStar(require("./member-relation"), exports);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ListActionsFilterParameter
|
|
16
|
+
*/
|
|
17
|
+
export interface ListActionsFilterParameter {
|
|
18
|
+
/**
|
|
19
|
+
* Organization ID. Example: `?filter[organization_id]=123`
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ListActionsFilterParameter
|
|
22
|
+
*/
|
|
23
|
+
organization_id?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Project ID. Example: `?filter[project_id]=456`
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ListActionsFilterParameter
|
|
28
|
+
*/
|
|
29
|
+
project_id?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Environment ID. Example: `?filter[environment_id]=789`
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ListActionsFilterParameter
|
|
34
|
+
*/
|
|
35
|
+
environment_id?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Resource type. Example: `?filter[resource_type]=application`
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ListActionsFilterParameter
|
|
40
|
+
*/
|
|
41
|
+
resource_type?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Resource ID. Example: `?filter[resource_id]=321`
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ListActionsFilterParameter
|
|
46
|
+
*/
|
|
47
|
+
resource_id?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Action status. Supported values: pending, waiting, skipped, queued, in-progress, completed, failed. Example: `?filter[status]=queued`
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ListActionsFilterParameter
|
|
52
|
+
*/
|
|
53
|
+
status?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Action operation name. Example: `?filter[operation]=deploy`
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ListActionsFilterParameter
|
|
58
|
+
*/
|
|
59
|
+
operation?: string;
|
|
60
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/api/generated/models/list-environment-actions-by-resource-type-filter-parameter.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ListEnvironmentActionsByResourceTypeFilterParameter
|
|
16
|
+
*/
|
|
17
|
+
export interface ListEnvironmentActionsByResourceTypeFilterParameter {
|
|
18
|
+
/**
|
|
19
|
+
* Resource ID. Example: `?filter[resource_id]=321`
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ListEnvironmentActionsByResourceTypeFilterParameter
|
|
22
|
+
*/
|
|
23
|
+
resource_id?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Action status. Supported values: pending, waiting, skipped, queued, in-progress, completed, failed. Example: `?filter[status]=queued`
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ListEnvironmentActionsByResourceTypeFilterParameter
|
|
28
|
+
*/
|
|
29
|
+
status?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Action operation name. Example: `?filter[operation]=deploy`
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListEnvironmentActionsByResourceTypeFilterParameter
|
|
34
|
+
*/
|
|
35
|
+
operation?: string;
|
|
36
|
+
}
|
package/dist/api/generated/models/list-environment-actions-by-resource-type-filter-parameter.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ListEnvironmentActionsFilterParameter
|
|
16
|
+
*/
|
|
17
|
+
export interface ListEnvironmentActionsFilterParameter {
|
|
18
|
+
/**
|
|
19
|
+
* Resource type. Example: `?filter[resource_type]=application`
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ListEnvironmentActionsFilterParameter
|
|
22
|
+
*/
|
|
23
|
+
resource_type?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Resource ID. Example: `?filter[resource_id]=321`
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ListEnvironmentActionsFilterParameter
|
|
28
|
+
*/
|
|
29
|
+
resource_id?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Action status. Supported values: pending, waiting, skipped, queued, in-progress, completed, failed. Example: `?filter[status]=queued`
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListEnvironmentActionsFilterParameter
|
|
34
|
+
*/
|
|
35
|
+
status?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Action operation name. Example: `?filter[operation]=deploy`
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ListEnvironmentActionsFilterParameter
|
|
40
|
+
*/
|
|
41
|
+
operation?: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -35,7 +35,7 @@ export interface VirtualHostEnvironmentCreate {
|
|
|
35
35
|
*/
|
|
36
36
|
name: string;
|
|
37
37
|
/**
|
|
38
|
-
* The document root location
|
|
38
|
+
* The document root location to be served for this virtual host. When the virtual host is linked to an application, the value must be a relative path within that application directory. When no application is linked, the value must be an absolute path. Must start with one of <code>/</code> Must not be greater than 255 characters.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof VirtualHostEnvironmentCreate
|
|
41
41
|
*/
|
|
@@ -47,7 +47,7 @@ export interface VirtualHostEnvironmentCreate {
|
|
|
47
47
|
*/
|
|
48
48
|
application_listen_address?: string | null;
|
|
49
49
|
/**
|
|
50
|
-
* The ID of the application to be associated with the virtual host.
|
|
50
|
+
* The ID of the application to be associated with the virtual host. When set, the value of `root_directory` will be relative to this application directory.
|
|
51
51
|
* @type {number}
|
|
52
52
|
* @memberof VirtualHostEnvironmentCreate
|
|
53
53
|
*/
|
|
@@ -51,7 +51,7 @@ export interface VirtualHostRelation {
|
|
|
51
51
|
*/
|
|
52
52
|
application: ApplicationRelation | null;
|
|
53
53
|
/**
|
|
54
|
-
* The document root location
|
|
54
|
+
* The document root location served by this virtual host. When the virtual host is linked to an application, the value is relative to that application directory. When no application is linked, the value is an absolute path
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof VirtualHostRelation
|
|
57
57
|
*/
|
|
@@ -28,7 +28,7 @@ export interface VirtualHostUpdate {
|
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
30
|
/**
|
|
31
|
-
* The document root location
|
|
31
|
+
* The document root location to be served for this virtual host. When the virtual host is linked to an application, the value must be a relative path within that application directory. When no application is linked, the value must be an absolute path. Must start with one of <code>/</code> Must not be greater than 255 characters.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof VirtualHostUpdate
|
|
34
34
|
*/
|
|
@@ -40,7 +40,7 @@ export interface VirtualHostUpdate {
|
|
|
40
40
|
*/
|
|
41
41
|
application_listen_address?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
* The ID of the application to be associated with the virtual host.
|
|
43
|
+
* The ID of the application to be associated with the virtual host. When set, the value of `root_directory` will be relative to this application directory.
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof VirtualHostUpdate
|
|
46
46
|
*/
|
|
@@ -51,7 +51,7 @@ export interface VirtualHost {
|
|
|
51
51
|
*/
|
|
52
52
|
application: ApplicationRelation | null;
|
|
53
53
|
/**
|
|
54
|
-
* The document root location
|
|
54
|
+
* The document root location served by this virtual host. When the virtual host is linked to an application, the value is relative to that application directory. When no application is linked, the value is an absolute path
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof VirtualHost
|
|
57
57
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Devopness API TypeScript SDK - Painless essential DevOps to everyone
|
|
3
|
+
*/
|
|
4
|
+
type QueryStringParam = unknown;
|
|
5
|
+
/**
|
|
6
|
+
* Returns the query string from the given query parameters.
|
|
7
|
+
*
|
|
8
|
+
* @param inParams The query parameters.
|
|
9
|
+
* @returns The query string.
|
|
10
|
+
*/
|
|
11
|
+
export declare function parseQueryString(inParams?: Record<string, QueryStringParam>): string;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Devopness API TypeScript SDK - Painless essential DevOps to everyone
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.parseQueryString = parseQueryString;
|
|
7
|
+
/**
|
|
8
|
+
* Returns the query string from the given query parameters.
|
|
9
|
+
*
|
|
10
|
+
* @param inParams The query parameters.
|
|
11
|
+
* @returns The query string.
|
|
12
|
+
*/
|
|
13
|
+
function parseQueryString(inParams = {}) {
|
|
14
|
+
const outParams = {};
|
|
15
|
+
for (const key of Object.keys(inParams)) {
|
|
16
|
+
const value = inParams[key];
|
|
17
|
+
if (isEmpty(value)) {
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
if (key === "filter") {
|
|
21
|
+
Object.assign(outParams, parseFilterQueryString(value));
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
outParams[key] = value;
|
|
25
|
+
}
|
|
26
|
+
const searchParams = new URLSearchParams();
|
|
27
|
+
for (const key of Object.keys(outParams)) {
|
|
28
|
+
searchParams.append(key, String(outParams[key]));
|
|
29
|
+
}
|
|
30
|
+
return searchParams.toString();
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns the query string from the given filter parameters.
|
|
34
|
+
*
|
|
35
|
+
* @param filterParam The filter parameters.
|
|
36
|
+
* @returns The filter query string parameters.
|
|
37
|
+
*/
|
|
38
|
+
function parseFilterQueryString(filterParam) {
|
|
39
|
+
const outParams = {};
|
|
40
|
+
if (typeof filterParam !== "object" || filterParam === null || Array.isArray(filterParam)) {
|
|
41
|
+
return outParams;
|
|
42
|
+
}
|
|
43
|
+
const params = filterParam;
|
|
44
|
+
for (const key of Object.keys(params)) {
|
|
45
|
+
const value = params[key];
|
|
46
|
+
if (isEmpty(value)) {
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
const filterKey = `filter[${key}]`;
|
|
50
|
+
const filterValue = String(value);
|
|
51
|
+
outParams[filterKey] = filterValue;
|
|
52
|
+
}
|
|
53
|
+
return outParams;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Return whether a query parameter value should be omitted.
|
|
57
|
+
*
|
|
58
|
+
* @param value The query parameter value.
|
|
59
|
+
* @returns Whether the query parameter value should be omitted.
|
|
60
|
+
*/
|
|
61
|
+
function isEmpty(value) {
|
|
62
|
+
return (value === undefined ||
|
|
63
|
+
value === null ||
|
|
64
|
+
value === false ||
|
|
65
|
+
value === "" ||
|
|
66
|
+
(Array.isArray(value) && value.length === 0) ||
|
|
67
|
+
(typeof value === "object" &&
|
|
68
|
+
value !== null &&
|
|
69
|
+
!Array.isArray(value) &&
|
|
70
|
+
Object.keys(value).length === 0));
|
|
71
|
+
}
|
|
@@ -33,8 +33,8 @@ export declare class ApiBaseService {
|
|
|
33
33
|
*/
|
|
34
34
|
private static decodeJwtPayload;
|
|
35
35
|
baseURL(): string;
|
|
36
|
-
protected post<T, B = undefined
|
|
37
|
-
protected put<T, B = undefined
|
|
38
|
-
protected delete<T
|
|
39
|
-
protected get<T
|
|
36
|
+
protected post<T, B = undefined>(endpoint: string, data?: B): Promise<AxiosResponse<T>>;
|
|
37
|
+
protected put<T, B = undefined>(endpoint: string, data?: B): Promise<AxiosResponse<T>>;
|
|
38
|
+
protected delete<T>(endpoint: string): Promise<AxiosResponse<T>>;
|
|
39
|
+
protected get<T>(endpoint: string): Promise<AxiosResponse<T>>;
|
|
40
40
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@devopness/sdk-js",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.6.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -61,16 +61,16 @@
|
|
|
61
61
|
"node": "^20.19.0 || ^22.13.0 || >=24"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@openapitools/openapi-generator-cli": "^2.40.
|
|
64
|
+
"@openapitools/openapi-generator-cli": "^2.40.1",
|
|
65
65
|
"axios-mock-adapter": "^2.1.0",
|
|
66
66
|
"husky": "9.1.7",
|
|
67
|
-
"vite-plus": "0.2.
|
|
67
|
+
"vite-plus": "0.2.8",
|
|
68
68
|
"typescript": "^7.0.2",
|
|
69
69
|
"typedoc": "^0.28.20"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@types/parse-link-header": "^2.0.3",
|
|
73
|
-
"axios": "^1.
|
|
73
|
+
"axios": "^1.19.0",
|
|
74
74
|
"parse-link-header": "^2.0.0"
|
|
75
75
|
}
|
|
76
76
|
}
|