@devopness/sdk-js 3.5.5 → 3.6.1
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/DevopnessApiClient.js +2 -2
- 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/cloud-resource-instance-spec.d.ts +30 -0
- package/dist/api/generated/models/cloud-resource-instance-spec.js +14 -0
- package/dist/api/generated/models/cloud-service-settings-aws-ec2.d.ts +7 -0
- package/dist/api/generated/models/cloud-service-settings-azure-rm.d.ts +7 -0
- package/dist/api/generated/models/cloud-service-settings-digital-ocean-droplet.d.ts +7 -0
- package/dist/api/generated/models/cloud-service-settings-gcp-gce.d.ts +7 -0
- package/dist/api/generated/models/cloud-service-settings-hetzner-hcloud.d.ts +7 -0
- package/dist/api/generated/models/cloud-service-settings-self-hosted-custom.d.ts +7 -0
- package/dist/api/generated/models/index.d.ts +4 -0
- package/dist/api/generated/models/index.js +4 -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/server-provision-input.d.ts +1 -1
- 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
|
@@ -25,6 +25,7 @@ exports.StaticDataApiService = 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
|
* StaticDataApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -35,8 +36,7 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
35
36
|
*/
|
|
36
37
|
getStaticApplicationOptions() {
|
|
37
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
|
|
39
|
-
const requestUrl = '/static/application-options' + (queryString ? `?${queryString}` : '');
|
|
39
|
+
const requestUrl = '/static/application-options';
|
|
40
40
|
const response = yield this.get(requestUrl);
|
|
41
41
|
return new ApiResponse_1.ApiResponse(response);
|
|
42
42
|
});
|
|
@@ -51,8 +51,7 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
51
51
|
if (cloudProviderServiceCode === null || cloudProviderServiceCode === undefined) {
|
|
52
52
|
throw new Exceptions_1.ArgumentNullException('cloudProviderServiceCode', 'getStaticCloudProviderService');
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
const requestUrl = '/static/cloud-provider-service-options/{cloud_provider_service_code}' + (queryString ? `?${queryString}` : '');
|
|
54
|
+
const requestUrl = '/static/cloud-provider-service-options/{cloud_provider_service_code}';
|
|
56
55
|
const response = yield this.get(requestUrl.replace(`{${"cloud_provider_service_code"}}`, encodeURIComponent(String(cloudProviderServiceCode))));
|
|
57
56
|
return new ApiResponse_1.ApiResponse(response);
|
|
58
57
|
});
|
|
@@ -63,8 +62,7 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
63
62
|
*/
|
|
64
63
|
getStaticCredentialOptions() {
|
|
65
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
|
|
67
|
-
const requestUrl = '/static/credential-options' + (queryString ? `?${queryString}` : '');
|
|
65
|
+
const requestUrl = '/static/credential-options';
|
|
68
66
|
const response = yield this.get(requestUrl);
|
|
69
67
|
return new ApiResponse_1.ApiResponse(response);
|
|
70
68
|
});
|
|
@@ -75,8 +73,7 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
75
73
|
*/
|
|
76
74
|
getStaticCronJobOptions() {
|
|
77
75
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
|
|
79
|
-
const requestUrl = '/static/cronjob-options' + (queryString ? `?${queryString}` : '');
|
|
76
|
+
const requestUrl = '/static/cronjob-options';
|
|
80
77
|
const response = yield this.get(requestUrl);
|
|
81
78
|
return new ApiResponse_1.ApiResponse(response);
|
|
82
79
|
});
|
|
@@ -87,8 +84,7 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
87
84
|
*/
|
|
88
85
|
getStaticEnvironmentOptions() {
|
|
89
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
-
|
|
91
|
-
const requestUrl = '/static/environment-options' + (queryString ? `?${queryString}` : '');
|
|
87
|
+
const requestUrl = '/static/environment-options';
|
|
92
88
|
const response = yield this.get(requestUrl);
|
|
93
89
|
return new ApiResponse_1.ApiResponse(response);
|
|
94
90
|
});
|
|
@@ -99,8 +95,7 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
99
95
|
*/
|
|
100
96
|
getStaticNetworkRuleOptions() {
|
|
101
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
-
|
|
103
|
-
const requestUrl = '/static/network-rule-options' + (queryString ? `?${queryString}` : '');
|
|
98
|
+
const requestUrl = '/static/network-rule-options';
|
|
104
99
|
const response = yield this.get(requestUrl);
|
|
105
100
|
return new ApiResponse_1.ApiResponse(response);
|
|
106
101
|
});
|
|
@@ -111,8 +106,7 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
111
106
|
*/
|
|
112
107
|
getStaticServerOptions() {
|
|
113
108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
-
|
|
115
|
-
const requestUrl = '/static/server-options' + (queryString ? `?${queryString}` : '');
|
|
109
|
+
const requestUrl = '/static/server-options';
|
|
116
110
|
const response = yield this.get(requestUrl);
|
|
117
111
|
return new ApiResponse_1.ApiResponse(response);
|
|
118
112
|
});
|
|
@@ -123,8 +117,7 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
123
117
|
*/
|
|
124
118
|
getStaticServiceOptions() {
|
|
125
119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
-
|
|
127
|
-
const requestUrl = '/static/service-options' + (queryString ? `?${queryString}` : '');
|
|
120
|
+
const requestUrl = '/static/service-options';
|
|
128
121
|
const response = yield this.get(requestUrl);
|
|
129
122
|
return new ApiResponse_1.ApiResponse(response);
|
|
130
123
|
});
|
|
@@ -135,8 +128,7 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
135
128
|
*/
|
|
136
129
|
getStaticUserProfileOptions() {
|
|
137
130
|
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
-
|
|
139
|
-
const requestUrl = '/static/user-profile-options' + (queryString ? `?${queryString}` : '');
|
|
131
|
+
const requestUrl = '/static/user-profile-options';
|
|
140
132
|
const response = yield this.get(requestUrl);
|
|
141
133
|
return new ApiResponse_1.ApiResponse(response);
|
|
142
134
|
});
|
|
@@ -147,8 +139,7 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
147
139
|
*/
|
|
148
140
|
getStaticVirtualHostOptions() {
|
|
149
141
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
-
|
|
151
|
-
const requestUrl = '/static/virtual-host-options' + (queryString ? `?${queryString}` : '');
|
|
142
|
+
const requestUrl = '/static/virtual-host-options';
|
|
152
143
|
const response = yield this.get(requestUrl);
|
|
153
144
|
return new ApiResponse_1.ApiResponse(response);
|
|
154
145
|
});
|
|
@@ -161,14 +152,10 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
161
152
|
*/
|
|
162
153
|
listStaticBillingPlansOptions(page, perPage) {
|
|
163
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
-
let queryString =
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
continue;
|
|
169
|
-
}
|
|
170
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
171
|
-
}
|
|
155
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
156
|
+
'page': page,
|
|
157
|
+
'per_page': perPage,
|
|
158
|
+
});
|
|
172
159
|
const requestUrl = '/static/billing-plans-options' + (queryString ? `?${queryString}` : '');
|
|
173
160
|
const response = yield this.get(requestUrl);
|
|
174
161
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -190,14 +177,10 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
190
177
|
if (regionCode === null || regionCode === undefined) {
|
|
191
178
|
throw new Exceptions_1.ArgumentNullException('regionCode', 'listStaticCloudInstancesByCloudProviderServiceCodeAndRegionCode');
|
|
192
179
|
}
|
|
193
|
-
let queryString =
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
continue;
|
|
198
|
-
}
|
|
199
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
200
|
-
}
|
|
180
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
181
|
+
'page': page,
|
|
182
|
+
'per_page': perPage,
|
|
183
|
+
});
|
|
201
184
|
const requestUrl = '/static/cloud-provider-service-options/{cloud_provider_service_code}/regions/{region_code}/instances' + (queryString ? `?${queryString}` : '');
|
|
202
185
|
const response = yield this.get(requestUrl.replace(`{${"cloud_provider_service_code"}}`, encodeURIComponent(String(cloudProviderServiceCode))).replace(`{${"region_code"}}`, encodeURIComponent(String(regionCode))));
|
|
203
186
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -211,14 +194,10 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
211
194
|
*/
|
|
212
195
|
listStaticPermissions(page, perPage) {
|
|
213
196
|
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
-
let queryString =
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
continue;
|
|
219
|
-
}
|
|
220
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
221
|
-
}
|
|
197
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
198
|
+
'page': page,
|
|
199
|
+
'per_page': perPage,
|
|
200
|
+
});
|
|
222
201
|
const requestUrl = '/static/permissions' + (queryString ? `?${queryString}` : '');
|
|
223
202
|
const response = yield this.get(requestUrl);
|
|
224
203
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -232,14 +211,10 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
232
211
|
*/
|
|
233
212
|
listStaticResourceTypes(page, perPage) {
|
|
234
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
235
|
-
let queryString =
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
continue;
|
|
240
|
-
}
|
|
241
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
242
|
-
}
|
|
214
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
215
|
+
'page': page,
|
|
216
|
+
'per_page': perPage,
|
|
217
|
+
});
|
|
243
218
|
const requestUrl = '/static/resource-types' + (queryString ? `?${queryString}` : '');
|
|
244
219
|
const response = yield this.get(requestUrl);
|
|
245
220
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -25,6 +25,7 @@ exports.SubnetsApiService = 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
|
* SubnetsApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -39,8 +40,7 @@ class SubnetsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
39
40
|
if (subnetId === null || subnetId === undefined) {
|
|
40
41
|
throw new Exceptions_1.ArgumentNullException('subnetId', 'deleteSubnet');
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
const requestUrl = '/subnets/{subnet_id}' + (queryString ? `?${queryString}` : '');
|
|
43
|
+
const requestUrl = '/subnets/{subnet_id}';
|
|
44
44
|
const response = yield this.delete(requestUrl.replace(`{${"subnet_id"}}`, encodeURIComponent(String(subnetId))));
|
|
45
45
|
return new ApiResponse_1.ApiResponse(response);
|
|
46
46
|
});
|
|
@@ -55,8 +55,7 @@ class SubnetsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
55
55
|
if (subnetId === null || subnetId === undefined) {
|
|
56
56
|
throw new Exceptions_1.ArgumentNullException('subnetId', 'getSubnet');
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
const requestUrl = '/subnets/{subnet_id}' + (queryString ? `?${queryString}` : '');
|
|
58
|
+
const requestUrl = '/subnets/{subnet_id}';
|
|
60
59
|
const response = yield this.get(requestUrl.replace(`{${"subnet_id"}}`, encodeURIComponent(String(subnetId))));
|
|
61
60
|
return new ApiResponse_1.ApiResponse(response);
|
|
62
61
|
});
|
|
@@ -73,14 +72,10 @@ class SubnetsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
73
72
|
if (environmentId === null || environmentId === undefined) {
|
|
74
73
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentSubnets');
|
|
75
74
|
}
|
|
76
|
-
let queryString =
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
continue;
|
|
81
|
-
}
|
|
82
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
83
|
-
}
|
|
75
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
76
|
+
'page': page,
|
|
77
|
+
'per_page': perPage,
|
|
78
|
+
});
|
|
84
79
|
const requestUrl = '/environments/{environment_id}/subnets' + (queryString ? `?${queryString}` : '');
|
|
85
80
|
const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
86
81
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -25,6 +25,7 @@ exports.TeamInvitationsApiService = 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
|
* TeamInvitationsApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -40,14 +41,9 @@ class TeamInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
40
41
|
if (teamInvitationId === null || teamInvitationId === undefined) {
|
|
41
42
|
throw new Exceptions_1.ArgumentNullException('teamInvitationId', 'acceptTeamInvitation');
|
|
42
43
|
}
|
|
43
|
-
let queryString =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
47
|
-
continue;
|
|
48
|
-
}
|
|
49
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
50
|
-
}
|
|
44
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
45
|
+
'token': token,
|
|
46
|
+
});
|
|
51
47
|
const requestUrl = '/team-invitations/{team_invitation_id}/accept' + (queryString ? `?${queryString}` : '');
|
|
52
48
|
const response = yield this.post(requestUrl.replace(`{${"team_invitation_id"}}`, encodeURIComponent(String(teamInvitationId))));
|
|
53
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -63,8 +59,7 @@ class TeamInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
63
59
|
if (teamInvitationId === null || teamInvitationId === undefined) {
|
|
64
60
|
throw new Exceptions_1.ArgumentNullException('teamInvitationId', 'deleteTeamInvitation');
|
|
65
61
|
}
|
|
66
|
-
|
|
67
|
-
const requestUrl = '/team-invitations/{team_invitation_id}' + (queryString ? `?${queryString}` : '');
|
|
62
|
+
const requestUrl = '/team-invitations/{team_invitation_id}';
|
|
68
63
|
const response = yield this.delete(requestUrl.replace(`{${"team_invitation_id"}}`, encodeURIComponent(String(teamInvitationId))));
|
|
69
64
|
return new ApiResponse_1.ApiResponse(response);
|
|
70
65
|
});
|
|
@@ -79,8 +74,7 @@ class TeamInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
79
74
|
if (teamInvitationId === null || teamInvitationId === undefined) {
|
|
80
75
|
throw new Exceptions_1.ArgumentNullException('teamInvitationId', 'rejectTeamInvitation');
|
|
81
76
|
}
|
|
82
|
-
|
|
83
|
-
const requestUrl = '/team-invitations/{team_invitation_id}/reject' + (queryString ? `?${queryString}` : '');
|
|
77
|
+
const requestUrl = '/team-invitations/{team_invitation_id}/reject';
|
|
84
78
|
const response = yield this.post(requestUrl.replace(`{${"team_invitation_id"}}`, encodeURIComponent(String(teamInvitationId))));
|
|
85
79
|
return new ApiResponse_1.ApiResponse(response);
|
|
86
80
|
});
|
|
@@ -25,6 +25,7 @@ exports.TeamsApiService = 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
|
* TeamsApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -43,8 +44,7 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
43
44
|
if (teamOrganizationCreate === null || teamOrganizationCreate === undefined) {
|
|
44
45
|
throw new Exceptions_1.ArgumentNullException('teamOrganizationCreate', 'addOrganizationTeam');
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
-
const requestUrl = '/organizations/{organization_id}/teams' + (queryString ? `?${queryString}` : '');
|
|
47
|
+
const requestUrl = '/organizations/{organization_id}/teams';
|
|
48
48
|
const response = yield this.post(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))), teamOrganizationCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
@@ -59,8 +59,7 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
59
59
|
if (teamId === null || teamId === undefined) {
|
|
60
60
|
throw new Exceptions_1.ArgumentNullException('teamId', 'deleteTeam');
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
const requestUrl = '/teams/{team_id}' + (queryString ? `?${queryString}` : '');
|
|
62
|
+
const requestUrl = '/teams/{team_id}';
|
|
64
63
|
const response = yield this.delete(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))));
|
|
65
64
|
return new ApiResponse_1.ApiResponse(response);
|
|
66
65
|
});
|
|
@@ -75,8 +74,7 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
75
74
|
if (teamId === null || teamId === undefined) {
|
|
76
75
|
throw new Exceptions_1.ArgumentNullException('teamId', 'getTeam');
|
|
77
76
|
}
|
|
78
|
-
|
|
79
|
-
const requestUrl = '/teams/{team_id}' + (queryString ? `?${queryString}` : '');
|
|
77
|
+
const requestUrl = '/teams/{team_id}';
|
|
80
78
|
const response = yield this.get(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))));
|
|
81
79
|
return new ApiResponse_1.ApiResponse(response);
|
|
82
80
|
});
|
|
@@ -99,8 +97,7 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
99
97
|
if (teamEnvironmentLink === null || teamEnvironmentLink === undefined) {
|
|
100
98
|
throw new Exceptions_1.ArgumentNullException('teamEnvironmentLink', 'linkTeamToEnvironment');
|
|
101
99
|
}
|
|
102
|
-
|
|
103
|
-
const requestUrl = '/environments/{environment_id}/teams/{team_id}/link' + (queryString ? `?${queryString}` : '');
|
|
100
|
+
const requestUrl = '/environments/{environment_id}/teams/{team_id}/link';
|
|
104
101
|
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))).replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))), teamEnvironmentLink);
|
|
105
102
|
return new ApiResponse_1.ApiResponse(response);
|
|
106
103
|
});
|
|
@@ -123,8 +120,7 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
123
120
|
if (teamOrganizationLink === null || teamOrganizationLink === undefined) {
|
|
124
121
|
throw new Exceptions_1.ArgumentNullException('teamOrganizationLink', 'linkTeamToOrganization');
|
|
125
122
|
}
|
|
126
|
-
|
|
127
|
-
const requestUrl = '/organizations/{organization_id}/teams/{team_id}/link' + (queryString ? `?${queryString}` : '');
|
|
123
|
+
const requestUrl = '/organizations/{organization_id}/teams/{team_id}/link';
|
|
128
124
|
const response = yield this.post(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))).replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))), teamOrganizationLink);
|
|
129
125
|
return new ApiResponse_1.ApiResponse(response);
|
|
130
126
|
});
|
|
@@ -147,8 +143,7 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
147
143
|
if (teamProjectLink === null || teamProjectLink === undefined) {
|
|
148
144
|
throw new Exceptions_1.ArgumentNullException('teamProjectLink', 'linkTeamToProject');
|
|
149
145
|
}
|
|
150
|
-
|
|
151
|
-
const requestUrl = '/projects/{project_id}/teams/{team_id}/link' + (queryString ? `?${queryString}` : '');
|
|
146
|
+
const requestUrl = '/projects/{project_id}/teams/{team_id}/link';
|
|
152
147
|
const response = yield this.post(requestUrl.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId))).replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))), teamProjectLink);
|
|
153
148
|
return new ApiResponse_1.ApiResponse(response);
|
|
154
149
|
});
|
|
@@ -165,14 +160,10 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
165
160
|
if (environmentId === null || environmentId === undefined) {
|
|
166
161
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentTeamMemberships');
|
|
167
162
|
}
|
|
168
|
-
let queryString =
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
continue;
|
|
173
|
-
}
|
|
174
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
175
|
-
}
|
|
163
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
164
|
+
'page': page,
|
|
165
|
+
'per_page': perPage,
|
|
166
|
+
});
|
|
176
167
|
const requestUrl = '/environments/{environment_id}/team-memberships' + (queryString ? `?${queryString}` : '');
|
|
177
168
|
const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
178
169
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -190,14 +181,10 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
190
181
|
if (organizationId === null || organizationId === undefined) {
|
|
191
182
|
throw new Exceptions_1.ArgumentNullException('organizationId', 'listOrganizationTeamMemberships');
|
|
192
183
|
}
|
|
193
|
-
let queryString =
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
continue;
|
|
198
|
-
}
|
|
199
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
200
|
-
}
|
|
184
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
185
|
+
'page': page,
|
|
186
|
+
'per_page': perPage,
|
|
187
|
+
});
|
|
201
188
|
const requestUrl = '/organizations/{organization_id}/team-memberships' + (queryString ? `?${queryString}` : '');
|
|
202
189
|
const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))));
|
|
203
190
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -215,14 +202,10 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
215
202
|
if (organizationId === null || organizationId === undefined) {
|
|
216
203
|
throw new Exceptions_1.ArgumentNullException('organizationId', 'listOrganizationTeams');
|
|
217
204
|
}
|
|
218
|
-
let queryString =
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
continue;
|
|
223
|
-
}
|
|
224
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
225
|
-
}
|
|
205
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
206
|
+
'page': page,
|
|
207
|
+
'per_page': perPage,
|
|
208
|
+
});
|
|
226
209
|
const requestUrl = '/organizations/{organization_id}/teams' + (queryString ? `?${queryString}` : '');
|
|
227
210
|
const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))));
|
|
228
211
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -240,14 +223,10 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
240
223
|
if (projectId === null || projectId === undefined) {
|
|
241
224
|
throw new Exceptions_1.ArgumentNullException('projectId', 'listProjectTeamMemberships');
|
|
242
225
|
}
|
|
243
|
-
let queryString =
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
continue;
|
|
248
|
-
}
|
|
249
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
250
|
-
}
|
|
226
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
227
|
+
'page': page,
|
|
228
|
+
'per_page': perPage,
|
|
229
|
+
});
|
|
251
230
|
const requestUrl = '/projects/{project_id}/team-memberships' + (queryString ? `?${queryString}` : '');
|
|
252
231
|
const response = yield this.get(requestUrl.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId))));
|
|
253
232
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -266,14 +245,11 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
266
245
|
if (teamId === null || teamId === undefined) {
|
|
267
246
|
throw new Exceptions_1.ArgumentNullException('teamId', 'listTeamMemberships');
|
|
268
247
|
}
|
|
269
|
-
let queryString =
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
275
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
276
|
-
}
|
|
248
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
249
|
+
'page': page,
|
|
250
|
+
'per_page': perPage,
|
|
251
|
+
'filter_by': filterBy,
|
|
252
|
+
});
|
|
277
253
|
const requestUrl = '/teams/{team_id}/memberships' + (queryString ? `?${queryString}` : '');
|
|
278
254
|
const response = yield this.get(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))));
|
|
279
255
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -293,8 +269,7 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
293
269
|
if (teamId === null || teamId === undefined) {
|
|
294
270
|
throw new Exceptions_1.ArgumentNullException('teamId', 'unlinkTeamFromEnvironment');
|
|
295
271
|
}
|
|
296
|
-
|
|
297
|
-
const requestUrl = '/environments/{environment_id}/teams/{team_id}/unlink' + (queryString ? `?${queryString}` : '');
|
|
272
|
+
const requestUrl = '/environments/{environment_id}/teams/{team_id}/unlink';
|
|
298
273
|
const response = yield this.delete(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))).replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))));
|
|
299
274
|
return new ApiResponse_1.ApiResponse(response);
|
|
300
275
|
});
|
|
@@ -313,8 +288,7 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
313
288
|
if (teamId === null || teamId === undefined) {
|
|
314
289
|
throw new Exceptions_1.ArgumentNullException('teamId', 'unlinkTeamFromOrganization');
|
|
315
290
|
}
|
|
316
|
-
|
|
317
|
-
const requestUrl = '/organizations/{organization_id}/teams/{team_id}/unlink' + (queryString ? `?${queryString}` : '');
|
|
291
|
+
const requestUrl = '/organizations/{organization_id}/teams/{team_id}/unlink';
|
|
318
292
|
const response = yield this.delete(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))).replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))));
|
|
319
293
|
return new ApiResponse_1.ApiResponse(response);
|
|
320
294
|
});
|
|
@@ -333,8 +307,7 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
333
307
|
if (teamId === null || teamId === undefined) {
|
|
334
308
|
throw new Exceptions_1.ArgumentNullException('teamId', 'unlinkTeamFromProject');
|
|
335
309
|
}
|
|
336
|
-
|
|
337
|
-
const requestUrl = '/projects/{project_id}/teams/{team_id}/unlink' + (queryString ? `?${queryString}` : '');
|
|
310
|
+
const requestUrl = '/projects/{project_id}/teams/{team_id}/unlink';
|
|
338
311
|
const response = yield this.delete(requestUrl.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId))).replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))));
|
|
339
312
|
return new ApiResponse_1.ApiResponse(response);
|
|
340
313
|
});
|
|
@@ -353,8 +326,7 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
353
326
|
if (teamUpdate === null || teamUpdate === undefined) {
|
|
354
327
|
throw new Exceptions_1.ArgumentNullException('teamUpdate', 'updateTeam');
|
|
355
328
|
}
|
|
356
|
-
|
|
357
|
-
const requestUrl = '/teams/{team_id}' + (queryString ? `?${queryString}` : '');
|
|
329
|
+
const requestUrl = '/teams/{team_id}';
|
|
358
330
|
const response = yield this.put(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))), teamUpdate);
|
|
359
331
|
return new ApiResponse_1.ApiResponse(response);
|
|
360
332
|
});
|
|
@@ -25,6 +25,7 @@ exports.TeamsInvitationsApiService = 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
|
* TeamsInvitationsApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -43,8 +44,7 @@ class TeamsInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
43
44
|
if (invitationTeamCreate === null || invitationTeamCreate === undefined) {
|
|
44
45
|
throw new Exceptions_1.ArgumentNullException('invitationTeamCreate', 'addTeamInvitation');
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
-
const requestUrl = '/teams/{team_id}/invitations' + (queryString ? `?${queryString}` : '');
|
|
47
|
+
const requestUrl = '/teams/{team_id}/invitations';
|
|
48
48
|
const response = yield this.post(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))), invitationTeamCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
@@ -61,14 +61,10 @@ class TeamsInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
61
61
|
if (teamId === null || teamId === undefined) {
|
|
62
62
|
throw new Exceptions_1.ArgumentNullException('teamId', 'listTeamInvitations');
|
|
63
63
|
}
|
|
64
|
-
let queryString =
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
continue;
|
|
69
|
-
}
|
|
70
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
71
|
-
}
|
|
64
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
65
|
+
'page': page,
|
|
66
|
+
'per_page': perPage,
|
|
67
|
+
});
|
|
72
68
|
const requestUrl = '/teams/{team_id}/invitations' + (queryString ? `?${queryString}` : '');
|
|
73
69
|
const response = yield this.get(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))));
|
|
74
70
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -25,6 +25,7 @@ exports.TeamsMembersApiService = 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
|
* TeamsMembersApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -43,8 +44,7 @@ class TeamsMembersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
43
44
|
if (userId === null || userId === undefined) {
|
|
44
45
|
throw new Exceptions_1.ArgumentNullException('userId', 'deleteTeamMember');
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
-
const requestUrl = '/teams/{team_id}/members/{user_id}' + (queryString ? `?${queryString}` : '');
|
|
47
|
+
const requestUrl = '/teams/{team_id}/members/{user_id}';
|
|
48
48
|
const response = yield this.delete(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))).replace(`{${"user_id"}}`, encodeURIComponent(String(userId))));
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
@@ -63,8 +63,7 @@ class TeamsMembersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
63
63
|
if (userId === null || userId === undefined) {
|
|
64
64
|
throw new Exceptions_1.ArgumentNullException('userId', 'getTeamMember');
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
const requestUrl = '/teams/{team_id}/members/{user_id}' + (queryString ? `?${queryString}` : '');
|
|
66
|
+
const requestUrl = '/teams/{team_id}/members/{user_id}';
|
|
68
67
|
const response = yield this.get(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))).replace(`{${"user_id"}}`, encodeURIComponent(String(userId))));
|
|
69
68
|
return new ApiResponse_1.ApiResponse(response);
|
|
70
69
|
});
|
|
@@ -81,14 +80,10 @@ class TeamsMembersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
81
80
|
if (teamId === null || teamId === undefined) {
|
|
82
81
|
throw new Exceptions_1.ArgumentNullException('teamId', 'listTeamMembers');
|
|
83
82
|
}
|
|
84
|
-
let queryString =
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
continue;
|
|
89
|
-
}
|
|
90
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
91
|
-
}
|
|
83
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
84
|
+
'page': page,
|
|
85
|
+
'per_page': perPage,
|
|
86
|
+
});
|
|
92
87
|
const requestUrl = '/teams/{team_id}/members' + (queryString ? `?${queryString}` : '');
|
|
93
88
|
const response = yield this.get(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))));
|
|
94
89
|
return new ApiResponse_1.ApiResponse(response);
|