@devopness/sdk-js 3.5.5 → 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.js +11 -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 +1 -1
- package/dist/api/generated/models/application-environment-apply-template.d.ts +14 -2
- package/dist/api/generated/models/application-environment-create.d.ts +1 -1
- package/dist/api/generated/models/application-relation.d.ts +1 -1
- package/dist/api/generated/models/application-update.d.ts +1 -1
- package/dist/api/generated/models/application.d.ts +1 -1
- package/dist/api/generated/models/index.d.ts +3 -0
- package/dist/api/generated/models/index.js +3 -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 +3 -3
|
@@ -14,6 +14,7 @@ import { ApiResponse } from "../../../common/ApiResponse";
|
|
|
14
14
|
import { Action } from '../../generated/models';
|
|
15
15
|
import { ActionRelation } from '../../generated/models';
|
|
16
16
|
import { ActionRetryResponse } from '../../generated/models';
|
|
17
|
+
import { ListActionsFilterParameter } from '../../generated/models';
|
|
17
18
|
/**
|
|
18
19
|
* ActionsApiService - Auto-generated
|
|
19
20
|
*/
|
|
@@ -29,8 +30,9 @@ export declare class ActionsApiService extends ApiBaseService {
|
|
|
29
30
|
* @summary Return a list of all actions belonging to current user
|
|
30
31
|
* @param {number} [page] Number of the page to be retrieved
|
|
31
32
|
* @param {number} [perPage] Number of items returned per page
|
|
33
|
+
* @param {ListActionsFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: `?filter[resource_type]=application&filter[status]=active`
|
|
32
34
|
*/
|
|
33
|
-
listActions(page?: number, perPage?: number): Promise<ApiResponse<Array<ActionRelation>>>;
|
|
35
|
+
listActions(page?: number, perPage?: number, filter?: ListActionsFilterParameter): Promise<ApiResponse<Array<ActionRelation>>>;
|
|
34
36
|
/**
|
|
35
37
|
*
|
|
36
38
|
* @summary List resource actions of an action type
|
|
@@ -25,6 +25,7 @@ exports.ActionsApiService = void 0;
|
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
27
|
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
+
const utils_1 = require("../../../common/utils");
|
|
28
29
|
/**
|
|
29
30
|
* ActionsApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -39,8 +40,7 @@ class ActionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
39
40
|
if (actionId === null || actionId === undefined) {
|
|
40
41
|
throw new Exceptions_1.ArgumentNullException('actionId', 'getAction');
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
const requestUrl = '/actions/{action_id}' + (queryString ? `?${queryString}` : '');
|
|
43
|
+
const requestUrl = '/actions/{action_id}';
|
|
44
44
|
const response = yield this.get(requestUrl.replace(`{${"action_id"}}`, encodeURIComponent(String(actionId))));
|
|
45
45
|
return new ApiResponse_1.ApiResponse(response);
|
|
46
46
|
});
|
|
@@ -50,17 +50,15 @@ class ActionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
50
50
|
* @summary Return a list of all actions belonging to current user
|
|
51
51
|
* @param {number} [page] Number of the page to be retrieved
|
|
52
52
|
* @param {number} [perPage] Number of items returned per page
|
|
53
|
+
* @param {ListActionsFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: `?filter[resource_type]=application&filter[status]=active`
|
|
53
54
|
*/
|
|
54
|
-
listActions(page, perPage) {
|
|
55
|
+
listActions(page, perPage, filter) {
|
|
55
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
let queryString =
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
63
|
-
}
|
|
57
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
58
|
+
'page': page,
|
|
59
|
+
'per_page': perPage,
|
|
60
|
+
'filter': filter,
|
|
61
|
+
});
|
|
64
62
|
const requestUrl = '/actions' + (queryString ? `?${queryString}` : '');
|
|
65
63
|
const response = yield this.get(requestUrl);
|
|
66
64
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -82,14 +80,10 @@ class ActionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
82
80
|
if (resourceType === null || resourceType === undefined) {
|
|
83
81
|
throw new Exceptions_1.ArgumentNullException('resourceType', 'listActionsByResourceType');
|
|
84
82
|
}
|
|
85
|
-
let queryString =
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
continue;
|
|
90
|
-
}
|
|
91
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
92
|
-
}
|
|
83
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
84
|
+
'page': page,
|
|
85
|
+
'per_page': perPage,
|
|
86
|
+
});
|
|
93
87
|
const requestUrl = '/actions/{resource_type}/{resource_id}' + (queryString ? `?${queryString}` : '');
|
|
94
88
|
const response = yield this.get(requestUrl.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))).replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))));
|
|
95
89
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -111,14 +105,10 @@ class ActionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
111
105
|
if (targetResourceType === null || targetResourceType === undefined) {
|
|
112
106
|
throw new Exceptions_1.ArgumentNullException('targetResourceType', 'listActionsByTargetResourceType');
|
|
113
107
|
}
|
|
114
|
-
let queryString =
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
continue;
|
|
119
|
-
}
|
|
120
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
121
|
-
}
|
|
108
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
109
|
+
'page': page,
|
|
110
|
+
'per_page': perPage,
|
|
111
|
+
});
|
|
122
112
|
const requestUrl = '/actions/targets/{target_resource_type}/{target_resource_id}' + (queryString ? `?${queryString}` : '');
|
|
123
113
|
const response = yield this.get(requestUrl.replace(`{${"target_resource_id"}}`, encodeURIComponent(String(targetResourceId))).replace(`{${"target_resource_type"}}`, encodeURIComponent(String(targetResourceType))));
|
|
124
114
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -134,8 +124,7 @@ class ActionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
134
124
|
if (actionId === null || actionId === undefined) {
|
|
135
125
|
throw new Exceptions_1.ArgumentNullException('actionId', 'retryAction');
|
|
136
126
|
}
|
|
137
|
-
|
|
138
|
-
const requestUrl = '/actions/{action_id}/retry' + (queryString ? `?${queryString}` : '');
|
|
127
|
+
const requestUrl = '/actions/{action_id}/retry';
|
|
139
128
|
const response = yield this.post(requestUrl.replace(`{${"action_id"}}`, encodeURIComponent(String(actionId))));
|
|
140
129
|
return new ApiResponse_1.ApiResponse(response);
|
|
141
130
|
});
|
|
@@ -47,8 +47,7 @@ class ActionsLogsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
47
47
|
if (actionTargetId === null || actionTargetId === undefined) {
|
|
48
48
|
throw new Exceptions_1.ArgumentNullException('actionTargetId', 'getActionLog');
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
const requestUrl = '/actions/{action_id}/targets/{action_target_id}/steps/{action_step_order}/logs' + (queryString ? `?${queryString}` : '');
|
|
50
|
+
const requestUrl = '/actions/{action_id}/targets/{action_target_id}/steps/{action_step_order}/logs';
|
|
52
51
|
const response = yield this.get(requestUrl.replace(`{${"action_id"}}`, encodeURIComponent(String(actionId))).replace(`{${"action_step_order"}}`, encodeURIComponent(String(actionStepOrder))).replace(`{${"action_target_id"}}`, encodeURIComponent(String(actionTargetId))));
|
|
53
52
|
return new ApiResponse_1.ApiResponse(response);
|
|
54
53
|
});
|
|
@@ -25,6 +25,7 @@ exports.ApplicationsApiService = void 0;
|
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
27
|
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
+
const utils_1 = require("../../../common/utils");
|
|
28
29
|
/**
|
|
29
30
|
* ApplicationsApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -43,8 +44,7 @@ class ApplicationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
43
44
|
if (deploymentApplicationCreate === null || deploymentApplicationCreate === undefined) {
|
|
44
45
|
throw new Exceptions_1.ArgumentNullException('deploymentApplicationCreate', 'addApplicationDeployment');
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
-
const requestUrl = '/applications/{application_id}/deployments' + (queryString ? `?${queryString}` : '');
|
|
47
|
+
const requestUrl = '/applications/{application_id}/deployments';
|
|
48
48
|
const response = yield this.post(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))), deploymentApplicationCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
@@ -63,8 +63,7 @@ class ApplicationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
63
63
|
if (applicationEnvironmentCreate === null || applicationEnvironmentCreate === undefined) {
|
|
64
64
|
throw new Exceptions_1.ArgumentNullException('applicationEnvironmentCreate', 'addEnvironmentApplication');
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
const requestUrl = '/environments/{environment_id}/applications' + (queryString ? `?${queryString}` : '');
|
|
66
|
+
const requestUrl = '/environments/{environment_id}/applications';
|
|
68
67
|
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), applicationEnvironmentCreate);
|
|
69
68
|
return new ApiResponse_1.ApiResponse(response);
|
|
70
69
|
});
|
|
@@ -83,8 +82,7 @@ class ApplicationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
83
82
|
if (applicationEnvironmentApplyTemplate === null || applicationEnvironmentApplyTemplate === undefined) {
|
|
84
83
|
throw new Exceptions_1.ArgumentNullException('applicationEnvironmentApplyTemplate', 'applyTemplateEnvironmentApplication');
|
|
85
84
|
}
|
|
86
|
-
|
|
87
|
-
const requestUrl = '/environments/{environment_id}/applications/apply-template' + (queryString ? `?${queryString}` : '');
|
|
85
|
+
const requestUrl = '/environments/{environment_id}/applications/apply-template';
|
|
88
86
|
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), applicationEnvironmentApplyTemplate);
|
|
89
87
|
return new ApiResponse_1.ApiResponse(response);
|
|
90
88
|
});
|
|
@@ -99,8 +97,7 @@ class ApplicationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
99
97
|
if (applicationId === null || applicationId === undefined) {
|
|
100
98
|
throw new Exceptions_1.ArgumentNullException('applicationId', 'deleteApplication');
|
|
101
99
|
}
|
|
102
|
-
|
|
103
|
-
const requestUrl = '/applications/{application_id}' + (queryString ? `?${queryString}` : '');
|
|
100
|
+
const requestUrl = '/applications/{application_id}';
|
|
104
101
|
const response = yield this.delete(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))));
|
|
105
102
|
return new ApiResponse_1.ApiResponse(response);
|
|
106
103
|
});
|
|
@@ -115,8 +112,7 @@ class ApplicationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
115
112
|
if (applicationId === null || applicationId === undefined) {
|
|
116
113
|
throw new Exceptions_1.ArgumentNullException('applicationId', 'getApplication');
|
|
117
114
|
}
|
|
118
|
-
|
|
119
|
-
const requestUrl = '/applications/{application_id}' + (queryString ? `?${queryString}` : '');
|
|
115
|
+
const requestUrl = '/applications/{application_id}';
|
|
120
116
|
const response = yield this.get(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))));
|
|
121
117
|
return new ApiResponse_1.ApiResponse(response);
|
|
122
118
|
});
|
|
@@ -133,14 +129,10 @@ class ApplicationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
133
129
|
if (environmentId === null || environmentId === undefined) {
|
|
134
130
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentApplications');
|
|
135
131
|
}
|
|
136
|
-
let queryString =
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
continue;
|
|
141
|
-
}
|
|
142
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
143
|
-
}
|
|
132
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
133
|
+
'page': page,
|
|
134
|
+
'per_page': perPage,
|
|
135
|
+
});
|
|
144
136
|
const requestUrl = '/environments/{environment_id}/applications' + (queryString ? `?${queryString}` : '');
|
|
145
137
|
const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
146
138
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -160,8 +152,7 @@ class ApplicationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
160
152
|
if (applicationUpdate === null || applicationUpdate === undefined) {
|
|
161
153
|
throw new Exceptions_1.ArgumentNullException('applicationUpdate', 'updateApplication');
|
|
162
154
|
}
|
|
163
|
-
|
|
164
|
-
const requestUrl = '/applications/{application_id}' + (queryString ? `?${queryString}` : '');
|
|
155
|
+
const requestUrl = '/applications/{application_id}';
|
|
165
156
|
const response = yield this.put(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))), applicationUpdate);
|
|
166
157
|
return new ApiResponse_1.ApiResponse(response);
|
|
167
158
|
});
|
|
@@ -25,6 +25,7 @@ exports.ApplicationsHooksApiService = void 0;
|
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
27
|
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
+
const utils_1 = require("../../../common/utils");
|
|
28
29
|
/**
|
|
29
30
|
* ApplicationsHooksApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -41,14 +42,10 @@ class ApplicationsHooksApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
41
42
|
if (applicationId === null || applicationId === undefined) {
|
|
42
43
|
throw new Exceptions_1.ArgumentNullException('applicationId', 'listApplicationHooks');
|
|
43
44
|
}
|
|
44
|
-
let queryString =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
51
|
-
}
|
|
45
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
46
|
+
'page': page,
|
|
47
|
+
'per_page': perPage,
|
|
48
|
+
});
|
|
52
49
|
const requestUrl = '/applications/{application_id}/hooks' + (queryString ? `?${queryString}` : '');
|
|
53
50
|
const response = yield this.get(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))));
|
|
54
51
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -25,6 +25,7 @@ exports.ApplicationsVariablesApiService = void 0;
|
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
27
|
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
+
const utils_1 = require("../../../common/utils");
|
|
28
29
|
/**
|
|
29
30
|
* ApplicationsVariablesApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -44,8 +45,7 @@ class ApplicationsVariablesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
44
45
|
if (variableApplicationCreate === null || variableApplicationCreate === undefined) {
|
|
45
46
|
throw new Exceptions_1.ArgumentNullException('variableApplicationCreate', 'addApplicationVariable');
|
|
46
47
|
}
|
|
47
|
-
|
|
48
|
-
const requestUrl = '/applications/{application_id}/variables' + (queryString ? `?${queryString}` : '');
|
|
48
|
+
const requestUrl = '/applications/{application_id}/variables';
|
|
49
49
|
const response = yield this.post(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))), variableApplicationCreate);
|
|
50
50
|
return new ApiResponse_1.ApiResponse(response);
|
|
51
51
|
});
|
|
@@ -63,14 +63,10 @@ class ApplicationsVariablesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
63
63
|
if (applicationId === null || applicationId === undefined) {
|
|
64
64
|
throw new Exceptions_1.ArgumentNullException('applicationId', 'listApplicationVariables');
|
|
65
65
|
}
|
|
66
|
-
let queryString =
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
73
|
-
}
|
|
66
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
67
|
+
'page': page,
|
|
68
|
+
'per_page': perPage,
|
|
69
|
+
});
|
|
74
70
|
const requestUrl = '/applications/{application_id}/variables' + (queryString ? `?${queryString}` : '');
|
|
75
71
|
const response = yield this.get(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))));
|
|
76
72
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -25,6 +25,7 @@ exports.CredentialsApiService = void 0;
|
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
27
|
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
+
const utils_1 = require("../../../common/utils");
|
|
28
29
|
/**
|
|
29
30
|
* CredentialsApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -43,8 +44,7 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
43
44
|
if (credentialOrganizationCreate === null || credentialOrganizationCreate === undefined) {
|
|
44
45
|
throw new Exceptions_1.ArgumentNullException('credentialOrganizationCreate', 'addOrganizationCredential');
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
-
const requestUrl = '/organizations/{organization_id}/credentials' + (queryString ? `?${queryString}` : '');
|
|
47
|
+
const requestUrl = '/organizations/{organization_id}/credentials';
|
|
48
48
|
const response = yield this.post(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))), credentialOrganizationCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
@@ -59,8 +59,7 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
59
59
|
if (credentialId === null || credentialId === undefined) {
|
|
60
60
|
throw new Exceptions_1.ArgumentNullException('credentialId', 'deleteCredential');
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
const requestUrl = '/credentials/{credential_id}' + (queryString ? `?${queryString}` : '');
|
|
62
|
+
const requestUrl = '/credentials/{credential_id}';
|
|
64
63
|
const response = yield this.delete(requestUrl.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId))));
|
|
65
64
|
return new ApiResponse_1.ApiResponse(response);
|
|
66
65
|
});
|
|
@@ -75,8 +74,7 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
75
74
|
if (credentialId === null || credentialId === undefined) {
|
|
76
75
|
throw new Exceptions_1.ArgumentNullException('credentialId', 'getCredential');
|
|
77
76
|
}
|
|
78
|
-
|
|
79
|
-
const requestUrl = '/credentials/{credential_id}' + (queryString ? `?${queryString}` : '');
|
|
77
|
+
const requestUrl = '/credentials/{credential_id}';
|
|
80
78
|
const response = yield this.get(requestUrl.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId))));
|
|
81
79
|
return new ApiResponse_1.ApiResponse(response);
|
|
82
80
|
});
|
|
@@ -96,14 +94,9 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
96
94
|
if (providerCode === null || providerCode === undefined) {
|
|
97
95
|
throw new Exceptions_1.ArgumentNullException('providerCode', 'getEnvironmentCredentialSettings');
|
|
98
96
|
}
|
|
99
|
-
let queryString =
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
103
|
-
continue;
|
|
104
|
-
}
|
|
105
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
106
|
-
}
|
|
97
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
98
|
+
'state': state,
|
|
99
|
+
});
|
|
107
100
|
const requestUrl = '/environments/{environment_id}/credentials/{provider_code}/settings' + (queryString ? `?${queryString}` : '');
|
|
108
101
|
const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))).replace(`{${"provider_code"}}`, encodeURIComponent(String(providerCode))));
|
|
109
102
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -124,14 +117,9 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
124
117
|
if (providerCode === null || providerCode === undefined) {
|
|
125
118
|
throw new Exceptions_1.ArgumentNullException('providerCode', 'getOrganizationCredentialSettings');
|
|
126
119
|
}
|
|
127
|
-
let queryString =
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
134
|
-
}
|
|
120
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
121
|
+
'state': state,
|
|
122
|
+
});
|
|
135
123
|
const requestUrl = '/organizations/{organization_id}/credentials/{provider_code}/settings' + (queryString ? `?${queryString}` : '');
|
|
136
124
|
const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))).replace(`{${"provider_code"}}`, encodeURIComponent(String(providerCode))));
|
|
137
125
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -147,8 +135,7 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
147
135
|
if (credentialId === null || credentialId === undefined) {
|
|
148
136
|
throw new Exceptions_1.ArgumentNullException('credentialId', 'getStatusCredential');
|
|
149
137
|
}
|
|
150
|
-
|
|
151
|
-
const requestUrl = '/credentials/{credential_id}/get-status' + (queryString ? `?${queryString}` : '');
|
|
138
|
+
const requestUrl = '/credentials/{credential_id}/get-status';
|
|
152
139
|
const response = yield this.post(requestUrl.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId))));
|
|
153
140
|
return new ApiResponse_1.ApiResponse(response);
|
|
154
141
|
});
|
|
@@ -167,8 +154,7 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
167
154
|
if (environmentId === null || environmentId === undefined) {
|
|
168
155
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'linkCredentialToEnvironment');
|
|
169
156
|
}
|
|
170
|
-
|
|
171
|
-
const requestUrl = '/environments/{environment_id}/credentials/{credential_id}/link' + (queryString ? `?${queryString}` : '');
|
|
157
|
+
const requestUrl = '/environments/{environment_id}/credentials/{credential_id}/link';
|
|
172
158
|
const response = yield this.post(requestUrl.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId))).replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
173
159
|
return new ApiResponse_1.ApiResponse(response);
|
|
174
160
|
});
|
|
@@ -187,14 +173,12 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
187
173
|
if (environmentId === null || environmentId === undefined) {
|
|
188
174
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentCredentials');
|
|
189
175
|
}
|
|
190
|
-
let queryString =
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
197
|
-
}
|
|
176
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
177
|
+
'page': page,
|
|
178
|
+
'per_page': perPage,
|
|
179
|
+
'provider_code': providerCode,
|
|
180
|
+
'provider_type': providerType,
|
|
181
|
+
});
|
|
198
182
|
const requestUrl = '/environments/{environment_id}/credentials' + (queryString ? `?${queryString}` : '');
|
|
199
183
|
const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
200
184
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -214,14 +198,12 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
214
198
|
if (organizationId === null || organizationId === undefined) {
|
|
215
199
|
throw new Exceptions_1.ArgumentNullException('organizationId', 'listOrganizationCredentials');
|
|
216
200
|
}
|
|
217
|
-
let queryString =
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
224
|
-
}
|
|
201
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
202
|
+
'page': page,
|
|
203
|
+
'per_page': perPage,
|
|
204
|
+
'provider_code': providerCode,
|
|
205
|
+
'provider_type': providerType,
|
|
206
|
+
});
|
|
225
207
|
const requestUrl = '/organizations/{organization_id}/credentials' + (queryString ? `?${queryString}` : '');
|
|
226
208
|
const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))));
|
|
227
209
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -241,8 +223,7 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
241
223
|
if (environmentId === null || environmentId === undefined) {
|
|
242
224
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'unlinkCredentialFromEnvironment');
|
|
243
225
|
}
|
|
244
|
-
|
|
245
|
-
const requestUrl = '/environments/{environment_id}/credentials/{credential_id}/unlink' + (queryString ? `?${queryString}` : '');
|
|
226
|
+
const requestUrl = '/environments/{environment_id}/credentials/{credential_id}/unlink';
|
|
246
227
|
const response = yield this.delete(requestUrl.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId))).replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
247
228
|
return new ApiResponse_1.ApiResponse(response);
|
|
248
229
|
});
|
|
@@ -261,8 +242,7 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
261
242
|
if (credentialUpdate === null || credentialUpdate === undefined) {
|
|
262
243
|
throw new Exceptions_1.ArgumentNullException('credentialUpdate', 'updateCredential');
|
|
263
244
|
}
|
|
264
|
-
|
|
265
|
-
const requestUrl = '/credentials/{credential_id}' + (queryString ? `?${queryString}` : '');
|
|
245
|
+
const requestUrl = '/credentials/{credential_id}';
|
|
266
246
|
const response = yield this.put(requestUrl.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId))), credentialUpdate);
|
|
267
247
|
return new ApiResponse_1.ApiResponse(response);
|
|
268
248
|
});
|
|
@@ -25,6 +25,7 @@ exports.CredentialsRepositoriesApiService = void 0;
|
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
27
|
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
+
const utils_1 = require("../../../common/utils");
|
|
28
29
|
/**
|
|
29
30
|
* CredentialsRepositoriesApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -47,8 +48,7 @@ class CredentialsRepositoriesApiService extends ApiBaseService_1.ApiBaseService
|
|
|
47
48
|
if (repositoryOwner === null || repositoryOwner === undefined) {
|
|
48
49
|
throw new Exceptions_1.ArgumentNullException('repositoryOwner', 'getCredentialRepository');
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
-
const requestUrl = '/credentials/{credential_id}/repositories/{repository_owner}/{repository_name}' + (queryString ? `?${queryString}` : '');
|
|
51
|
+
const requestUrl = '/credentials/{credential_id}/repositories/{repository_owner}/{repository_name}';
|
|
52
52
|
const response = yield this.get(requestUrl.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId))).replace(`{${"repository_name"}}`, encodeURIComponent(String(repositoryName))).replace(`{${"repository_owner"}}`, encodeURIComponent(String(repositoryOwner))));
|
|
53
53
|
return new ApiResponse_1.ApiResponse(response);
|
|
54
54
|
});
|
|
@@ -65,14 +65,10 @@ class CredentialsRepositoriesApiService extends ApiBaseService_1.ApiBaseService
|
|
|
65
65
|
if (credentialId === null || credentialId === undefined) {
|
|
66
66
|
throw new Exceptions_1.ArgumentNullException('credentialId', 'listCredentialRepositories');
|
|
67
67
|
}
|
|
68
|
-
let queryString =
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
continue;
|
|
73
|
-
}
|
|
74
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
75
|
-
}
|
|
68
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
69
|
+
'page': page,
|
|
70
|
+
'per_page': perPage,
|
|
71
|
+
});
|
|
76
72
|
const requestUrl = '/credentials/{credential_id}/repositories' + (queryString ? `?${queryString}` : '');
|
|
77
73
|
const response = yield this.get(requestUrl.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId))));
|
|
78
74
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -25,6 +25,7 @@ exports.CronJobsApiService = void 0;
|
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
27
|
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
+
const utils_1 = require("../../../common/utils");
|
|
28
29
|
/**
|
|
29
30
|
* CronJobsApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -43,8 +44,7 @@ class CronJobsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
43
44
|
if (cronJobEnvironmentCreate === null || cronJobEnvironmentCreate === undefined) {
|
|
44
45
|
throw new Exceptions_1.ArgumentNullException('cronJobEnvironmentCreate', 'addEnvironmentCronJob');
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
-
const requestUrl = '/environments/{environment_id}/cron-jobs' + (queryString ? `?${queryString}` : '');
|
|
47
|
+
const requestUrl = '/environments/{environment_id}/cron-jobs';
|
|
48
48
|
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), cronJobEnvironmentCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
@@ -59,8 +59,7 @@ class CronJobsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
59
59
|
if (cronJobId === null || cronJobId === undefined) {
|
|
60
60
|
throw new Exceptions_1.ArgumentNullException('cronJobId', 'deleteCronJob');
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
const requestUrl = '/cron-jobs/{cron_job_id}' + (queryString ? `?${queryString}` : '');
|
|
62
|
+
const requestUrl = '/cron-jobs/{cron_job_id}';
|
|
64
63
|
const response = yield this.delete(requestUrl.replace(`{${"cron_job_id"}}`, encodeURIComponent(String(cronJobId))));
|
|
65
64
|
return new ApiResponse_1.ApiResponse(response);
|
|
66
65
|
});
|
|
@@ -79,8 +78,7 @@ class CronJobsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
79
78
|
if (cronJobDeploy === null || cronJobDeploy === undefined) {
|
|
80
79
|
throw new Exceptions_1.ArgumentNullException('cronJobDeploy', 'deployCronJob');
|
|
81
80
|
}
|
|
82
|
-
|
|
83
|
-
const requestUrl = '/cron-jobs/{cron_job_id}/deploy' + (queryString ? `?${queryString}` : '');
|
|
81
|
+
const requestUrl = '/cron-jobs/{cron_job_id}/deploy';
|
|
84
82
|
const response = yield this.post(requestUrl.replace(`{${"cron_job_id"}}`, encodeURIComponent(String(cronJobId))), cronJobDeploy);
|
|
85
83
|
return new ApiResponse_1.ApiResponse(response);
|
|
86
84
|
});
|
|
@@ -95,8 +93,7 @@ class CronJobsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
95
93
|
if (cronJobId === null || cronJobId === undefined) {
|
|
96
94
|
throw new Exceptions_1.ArgumentNullException('cronJobId', 'getCronJob');
|
|
97
95
|
}
|
|
98
|
-
|
|
99
|
-
const requestUrl = '/cron-jobs/{cron_job_id}' + (queryString ? `?${queryString}` : '');
|
|
96
|
+
const requestUrl = '/cron-jobs/{cron_job_id}';
|
|
100
97
|
const response = yield this.get(requestUrl.replace(`{${"cron_job_id"}}`, encodeURIComponent(String(cronJobId))));
|
|
101
98
|
return new ApiResponse_1.ApiResponse(response);
|
|
102
99
|
});
|
|
@@ -113,14 +110,10 @@ class CronJobsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
113
110
|
if (environmentId === null || environmentId === undefined) {
|
|
114
111
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentCronJobs');
|
|
115
112
|
}
|
|
116
|
-
let queryString =
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
continue;
|
|
121
|
-
}
|
|
122
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
123
|
-
}
|
|
113
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
114
|
+
'page': page,
|
|
115
|
+
'per_page': perPage,
|
|
116
|
+
});
|
|
124
117
|
const requestUrl = '/environments/{environment_id}/cron-jobs' + (queryString ? `?${queryString}` : '');
|
|
125
118
|
const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
126
119
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -140,8 +133,7 @@ class CronJobsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
140
133
|
if (cronJobUpdate === null || cronJobUpdate === undefined) {
|
|
141
134
|
throw new Exceptions_1.ArgumentNullException('cronJobUpdate', 'updateCronJob');
|
|
142
135
|
}
|
|
143
|
-
|
|
144
|
-
const requestUrl = '/cron-jobs/{cron_job_id}' + (queryString ? `?${queryString}` : '');
|
|
136
|
+
const requestUrl = '/cron-jobs/{cron_job_id}';
|
|
145
137
|
const response = yield this.put(requestUrl.replace(`{${"cron_job_id"}}`, encodeURIComponent(String(cronJobId))), cronJobUpdate);
|
|
146
138
|
return new ApiResponse_1.ApiResponse(response);
|
|
147
139
|
});
|