@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
|
@@ -36,8 +36,7 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
36
36
|
*/
|
|
37
37
|
addUser() {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
|
|
40
|
-
const requestUrl = '/users' + (queryString ? `?${queryString}` : '');
|
|
39
|
+
const requestUrl = '/users';
|
|
41
40
|
const response = yield this.post(requestUrl);
|
|
42
41
|
return new ApiResponse_1.ApiResponse(response);
|
|
43
42
|
});
|
|
@@ -52,8 +51,7 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
52
51
|
if (userId === null || userId === undefined) {
|
|
53
52
|
throw new Exceptions_1.ArgumentNullException('userId', 'getUser');
|
|
54
53
|
}
|
|
55
|
-
|
|
56
|
-
const requestUrl = '/users/{user_id}' + (queryString ? `?${queryString}` : '');
|
|
54
|
+
const requestUrl = '/users/{user_id}';
|
|
57
55
|
const response = yield this.get(requestUrl.replace(`{${"user_id"}}`, encodeURIComponent(String(userId))));
|
|
58
56
|
return new ApiResponse_1.ApiResponse(response);
|
|
59
57
|
});
|
|
@@ -68,8 +66,7 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
68
66
|
if (userId === null || userId === undefined) {
|
|
69
67
|
throw new Exceptions_1.ArgumentNullException('userId', 'getUserActivity');
|
|
70
68
|
}
|
|
71
|
-
|
|
72
|
-
const requestUrl = '/users/{user_id}/activity' + (queryString ? `?${queryString}` : '');
|
|
69
|
+
const requestUrl = '/users/{user_id}/activity';
|
|
73
70
|
const response = yield this.get(requestUrl.replace(`{${"user_id"}}`, encodeURIComponent(String(userId))));
|
|
74
71
|
return new ApiResponse_1.ApiResponse(response);
|
|
75
72
|
});
|
|
@@ -80,8 +77,7 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
80
77
|
*/
|
|
81
78
|
getUserBilling() {
|
|
82
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
|
|
84
|
-
const requestUrl = '/users/billing' + (queryString ? `?${queryString}` : '');
|
|
80
|
+
const requestUrl = '/users/billing';
|
|
85
81
|
const response = yield this.get(requestUrl);
|
|
86
82
|
return new ApiResponse_1.ApiResponse(response);
|
|
87
83
|
});
|
|
@@ -93,8 +89,7 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
93
89
|
*/
|
|
94
90
|
getUserLogout() {
|
|
95
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
|
|
97
|
-
const requestUrl = '/users/logout' + (queryString ? `?${queryString}` : '');
|
|
92
|
+
const requestUrl = '/users/logout';
|
|
98
93
|
const response = yield this.get(requestUrl);
|
|
99
94
|
return new ApiResponse_1.ApiResponse(response);
|
|
100
95
|
});
|
|
@@ -105,8 +100,7 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
105
100
|
*/
|
|
106
101
|
getUserMe() {
|
|
107
102
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
|
|
109
|
-
const requestUrl = '/users/me' + (queryString ? `?${queryString}` : '');
|
|
103
|
+
const requestUrl = '/users/me';
|
|
110
104
|
const response = yield this.get(requestUrl);
|
|
111
105
|
return new ApiResponse_1.ApiResponse(response);
|
|
112
106
|
});
|
|
@@ -117,8 +111,7 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
117
111
|
*/
|
|
118
112
|
getUserUrls() {
|
|
119
113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
-
|
|
121
|
-
const requestUrl = '/users/urls' + (queryString ? `?${queryString}` : '');
|
|
114
|
+
const requestUrl = '/users/urls';
|
|
122
115
|
const response = yield this.get(requestUrl);
|
|
123
116
|
return new ApiResponse_1.ApiResponse(response);
|
|
124
117
|
});
|
|
@@ -130,8 +123,7 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
130
123
|
*/
|
|
131
124
|
loginUser() {
|
|
132
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
-
|
|
134
|
-
const requestUrl = '/users/login' + (queryString ? `?${queryString}` : '');
|
|
126
|
+
const requestUrl = '/users/login';
|
|
135
127
|
const response = yield this.post(requestUrl);
|
|
136
128
|
return new ApiResponse_1.ApiResponse(response);
|
|
137
129
|
});
|
|
@@ -147,8 +139,7 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
147
139
|
if (userRefreshToken === null || userRefreshToken === undefined) {
|
|
148
140
|
throw new Exceptions_1.ArgumentNullException('userRefreshToken', 'refreshTokenUser');
|
|
149
141
|
}
|
|
150
|
-
|
|
151
|
-
const requestUrl = '/users/refresh-token' + (queryString ? `?${queryString}` : '');
|
|
142
|
+
const requestUrl = '/users/refresh-token';
|
|
152
143
|
const response = yield this.post(requestUrl, userRefreshToken);
|
|
153
144
|
return new ApiResponse_1.ApiResponse(response);
|
|
154
145
|
});
|
|
@@ -163,8 +154,7 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
163
154
|
if (userResendVerification === null || userResendVerification === undefined) {
|
|
164
155
|
throw new Exceptions_1.ArgumentNullException('userResendVerification', 'resendVerificationUser');
|
|
165
156
|
}
|
|
166
|
-
|
|
167
|
-
const requestUrl = '/users/account/resend-verification' + (queryString ? `?${queryString}` : '');
|
|
157
|
+
const requestUrl = '/users/account/resend-verification';
|
|
168
158
|
const response = yield this.post(requestUrl, userResendVerification);
|
|
169
159
|
return new ApiResponse_1.ApiResponse(response);
|
|
170
160
|
});
|
|
@@ -180,8 +170,7 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
180
170
|
if (userId === null || userId === undefined) {
|
|
181
171
|
throw new Exceptions_1.ArgumentNullException('userId', 'updateUser');
|
|
182
172
|
}
|
|
183
|
-
|
|
184
|
-
const requestUrl = '/users/{user_id}' + (queryString ? `?${queryString}` : '');
|
|
173
|
+
const requestUrl = '/users/{user_id}';
|
|
185
174
|
const response = yield this.put(requestUrl.replace(`{${"user_id"}}`, encodeURIComponent(String(userId))));
|
|
186
175
|
return new ApiResponse_1.ApiResponse(response);
|
|
187
176
|
});
|
|
@@ -193,8 +182,7 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
193
182
|
*/
|
|
194
183
|
verifyUser() {
|
|
195
184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
-
|
|
197
|
-
const requestUrl = '/users/account/verify' + (queryString ? `?${queryString}` : '');
|
|
185
|
+
const requestUrl = '/users/account/verify';
|
|
198
186
|
const response = yield this.post(requestUrl);
|
|
199
187
|
return new ApiResponse_1.ApiResponse(response);
|
|
200
188
|
});
|
|
@@ -25,6 +25,7 @@ exports.UsersEnvironmentsApiService = 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
|
* UsersEnvironmentsApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -42,14 +43,11 @@ class UsersEnvironmentsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
42
43
|
if (userId === null || userId === undefined) {
|
|
43
44
|
throw new Exceptions_1.ArgumentNullException('userId', 'listUserEnvironments');
|
|
44
45
|
}
|
|
45
|
-
let queryString =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
52
|
-
}
|
|
46
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
47
|
+
'page': page,
|
|
48
|
+
'per_page': perPage,
|
|
49
|
+
'subscription_id': subscriptionId,
|
|
50
|
+
});
|
|
53
51
|
const requestUrl = '/users/{user_id}/environments' + (queryString ? `?${queryString}` : '');
|
|
54
52
|
const response = yield this.get(requestUrl.replace(`{${"user_id"}}`, encodeURIComponent(String(userId))));
|
|
55
53
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -40,8 +40,7 @@ class UsersPasswordsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
40
40
|
if (passwordUserReset === null || passwordUserReset === undefined) {
|
|
41
41
|
throw new Exceptions_1.ArgumentNullException('passwordUserReset', 'resetUserPassword');
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
const requestUrl = '/users/password/reset' + (queryString ? `?${queryString}` : '');
|
|
43
|
+
const requestUrl = '/users/password/reset';
|
|
45
44
|
const response = yield this.post(requestUrl, passwordUserReset);
|
|
46
45
|
return new ApiResponse_1.ApiResponse(response);
|
|
47
46
|
});
|
|
@@ -53,8 +52,7 @@ class UsersPasswordsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
53
52
|
*/
|
|
54
53
|
sendResetLinkUserPassword() {
|
|
55
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
|
|
57
|
-
const requestUrl = '/users/password/send-reset-link' + (queryString ? `?${queryString}` : '');
|
|
55
|
+
const requestUrl = '/users/password/send-reset-link';
|
|
58
56
|
const response = yield this.post(requestUrl);
|
|
59
57
|
return new ApiResponse_1.ApiResponse(response);
|
|
60
58
|
});
|
|
@@ -25,6 +25,7 @@ exports.UsersPersonalAccessTokensApiService = 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
|
* UsersPersonalAccessTokensApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -39,8 +40,7 @@ class UsersPersonalAccessTokensApiService extends ApiBaseService_1.ApiBaseServic
|
|
|
39
40
|
if (personalAccessTokenUserCreate === null || personalAccessTokenUserCreate === undefined) {
|
|
40
41
|
throw new Exceptions_1.ArgumentNullException('personalAccessTokenUserCreate', 'addUserPersonalAccessToken');
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
const requestUrl = '/users/personal-access-tokens' + (queryString ? `?${queryString}` : '');
|
|
43
|
+
const requestUrl = '/users/personal-access-tokens';
|
|
44
44
|
const response = yield this.post(requestUrl, personalAccessTokenUserCreate);
|
|
45
45
|
return new ApiResponse_1.ApiResponse(response);
|
|
46
46
|
});
|
|
@@ -55,8 +55,7 @@ class UsersPersonalAccessTokensApiService extends ApiBaseService_1.ApiBaseServic
|
|
|
55
55
|
if (personalAccessTokenId === null || personalAccessTokenId === undefined) {
|
|
56
56
|
throw new Exceptions_1.ArgumentNullException('personalAccessTokenId', 'getUserPersonalAccessToken');
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
const requestUrl = '/users/personal-access-tokens/{personal_access_token_id}' + (queryString ? `?${queryString}` : '');
|
|
58
|
+
const requestUrl = '/users/personal-access-tokens/{personal_access_token_id}';
|
|
60
59
|
const response = yield this.get(requestUrl.replace(`{${"personal_access_token_id"}}`, encodeURIComponent(String(personalAccessTokenId))));
|
|
61
60
|
return new ApiResponse_1.ApiResponse(response);
|
|
62
61
|
});
|
|
@@ -69,14 +68,10 @@ class UsersPersonalAccessTokensApiService extends ApiBaseService_1.ApiBaseServic
|
|
|
69
68
|
*/
|
|
70
69
|
listUserPersonalAccessTokens(page, perPage) {
|
|
71
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
let queryString =
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
continue;
|
|
77
|
-
}
|
|
78
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
79
|
-
}
|
|
71
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
72
|
+
'page': page,
|
|
73
|
+
'per_page': perPage,
|
|
74
|
+
});
|
|
80
75
|
const requestUrl = '/users/personal-access-tokens' + (queryString ? `?${queryString}` : '');
|
|
81
76
|
const response = yield this.get(requestUrl);
|
|
82
77
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -92,8 +87,7 @@ class UsersPersonalAccessTokensApiService extends ApiBaseService_1.ApiBaseServic
|
|
|
92
87
|
if (personalAccessTokenId === null || personalAccessTokenId === undefined) {
|
|
93
88
|
throw new Exceptions_1.ArgumentNullException('personalAccessTokenId', 'revokeUserPersonalAccessToken');
|
|
94
89
|
}
|
|
95
|
-
|
|
96
|
-
const requestUrl = '/users/personal-access-tokens/{personal_access_token_id}/revoke' + (queryString ? `?${queryString}` : '');
|
|
90
|
+
const requestUrl = '/users/personal-access-tokens/{personal_access_token_id}/revoke';
|
|
97
91
|
const response = yield this.delete(requestUrl.replace(`{${"personal_access_token_id"}}`, encodeURIComponent(String(personalAccessTokenId))));
|
|
98
92
|
return new ApiResponse_1.ApiResponse(response);
|
|
99
93
|
});
|
|
@@ -112,8 +106,7 @@ class UsersPersonalAccessTokensApiService extends ApiBaseService_1.ApiBaseServic
|
|
|
112
106
|
if (personalAccessTokenUserRotate === null || personalAccessTokenUserRotate === undefined) {
|
|
113
107
|
throw new Exceptions_1.ArgumentNullException('personalAccessTokenUserRotate', 'rotateUserPersonalAccessToken');
|
|
114
108
|
}
|
|
115
|
-
|
|
116
|
-
const requestUrl = '/users/personal-access-tokens/{personal_access_token_id}/rotate' + (queryString ? `?${queryString}` : '');
|
|
109
|
+
const requestUrl = '/users/personal-access-tokens/{personal_access_token_id}/rotate';
|
|
117
110
|
const response = yield this.post(requestUrl.replace(`{${"personal_access_token_id"}}`, encodeURIComponent(String(personalAccessTokenId))), personalAccessTokenUserRotate);
|
|
118
111
|
return new ApiResponse_1.ApiResponse(response);
|
|
119
112
|
});
|
|
@@ -25,6 +25,7 @@ exports.UsersProjectsApiService = 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
|
* UsersProjectsApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -42,14 +43,11 @@ class UsersProjectsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
42
43
|
if (userId === null || userId === undefined) {
|
|
43
44
|
throw new Exceptions_1.ArgumentNullException('userId', 'listUserProjects');
|
|
44
45
|
}
|
|
45
|
-
let queryString =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
52
|
-
}
|
|
46
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
47
|
+
'page': page,
|
|
48
|
+
'per_page': perPage,
|
|
49
|
+
'subscription_id': subscriptionId,
|
|
50
|
+
});
|
|
53
51
|
const requestUrl = '/users/{user_id}/projects' + (queryString ? `?${queryString}` : '');
|
|
54
52
|
const response = yield this.get(requestUrl.replace(`{${"user_id"}}`, encodeURIComponent(String(userId))));
|
|
55
53
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -24,6 +24,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
24
|
exports.UsersTeamInvitationsApiService = void 0;
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
|
+
const utils_1 = require("../../../common/utils");
|
|
27
28
|
/**
|
|
28
29
|
* UsersTeamInvitationsApiService - Auto-generated
|
|
29
30
|
*/
|
|
@@ -36,14 +37,10 @@ class UsersTeamInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
36
37
|
*/
|
|
37
38
|
listUserTeamInvitations(page, perPage) {
|
|
38
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
let queryString =
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
continue;
|
|
44
|
-
}
|
|
45
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
46
|
-
}
|
|
40
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
41
|
+
'page': page,
|
|
42
|
+
'per_page': perPage,
|
|
43
|
+
});
|
|
47
44
|
const requestUrl = '/users/team-invitations' + (queryString ? `?${queryString}` : '');
|
|
48
45
|
const response = yield this.get(requestUrl);
|
|
49
46
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -25,6 +25,7 @@ exports.VariablesApiService = 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
|
* VariablesApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -47,8 +48,7 @@ class VariablesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
47
48
|
if (variableCreate === null || variableCreate === undefined) {
|
|
48
49
|
throw new Exceptions_1.ArgumentNullException('variableCreate', 'addVariable');
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
-
const requestUrl = '/variables/{resource_type}/{resource_id}' + (queryString ? `?${queryString}` : '');
|
|
51
|
+
const requestUrl = '/variables/{resource_type}/{resource_id}';
|
|
52
52
|
const response = yield this.post(requestUrl.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))).replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))), variableCreate);
|
|
53
53
|
return new ApiResponse_1.ApiResponse(response);
|
|
54
54
|
});
|
|
@@ -63,8 +63,7 @@ class VariablesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
63
63
|
if (variableId === null || variableId === undefined) {
|
|
64
64
|
throw new Exceptions_1.ArgumentNullException('variableId', 'deleteVariable');
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
const requestUrl = '/variables/{variable_id}' + (queryString ? `?${queryString}` : '');
|
|
66
|
+
const requestUrl = '/variables/{variable_id}';
|
|
68
67
|
const response = yield this.delete(requestUrl.replace(`{${"variable_id"}}`, encodeURIComponent(String(variableId))));
|
|
69
68
|
return new ApiResponse_1.ApiResponse(response);
|
|
70
69
|
});
|
|
@@ -79,8 +78,7 @@ class VariablesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
79
78
|
if (variableId === null || variableId === undefined) {
|
|
80
79
|
throw new Exceptions_1.ArgumentNullException('variableId', 'getVariable');
|
|
81
80
|
}
|
|
82
|
-
|
|
83
|
-
const requestUrl = '/variables/{variable_id}' + (queryString ? `?${queryString}` : '');
|
|
81
|
+
const requestUrl = '/variables/{variable_id}';
|
|
84
82
|
const response = yield this.get(requestUrl.replace(`{${"variable_id"}}`, encodeURIComponent(String(variableId))));
|
|
85
83
|
return new ApiResponse_1.ApiResponse(response);
|
|
86
84
|
});
|
|
@@ -103,14 +101,12 @@ class VariablesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
103
101
|
if (resourceType === null || resourceType === undefined) {
|
|
104
102
|
throw new Exceptions_1.ArgumentNullException('resourceType', 'listVariablesByResourceType');
|
|
105
103
|
}
|
|
106
|
-
let queryString =
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
113
|
-
}
|
|
104
|
+
let queryString = (0, utils_1.parseQueryString)({
|
|
105
|
+
'page': page,
|
|
106
|
+
'per_page': perPage,
|
|
107
|
+
'include_virtual_variables': includeVirtualVariables,
|
|
108
|
+
'variable_target': variableTarget,
|
|
109
|
+
});
|
|
114
110
|
const requestUrl = '/variables/{resource_type}/{resource_id}' + (queryString ? `?${queryString}` : '');
|
|
115
111
|
const response = yield this.get(requestUrl.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))).replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))));
|
|
116
112
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -130,8 +126,7 @@ class VariablesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
130
126
|
if (variableUpdate === null || variableUpdate === undefined) {
|
|
131
127
|
throw new Exceptions_1.ArgumentNullException('variableUpdate', 'updateVariable');
|
|
132
128
|
}
|
|
133
|
-
|
|
134
|
-
const requestUrl = '/variables/{variable_id}' + (queryString ? `?${queryString}` : '');
|
|
129
|
+
const requestUrl = '/variables/{variable_id}';
|
|
135
130
|
const response = yield this.put(requestUrl.replace(`{${"variable_id"}}`, encodeURIComponent(String(variableId))), variableUpdate);
|
|
136
131
|
return new ApiResponse_1.ApiResponse(response);
|
|
137
132
|
});
|
|
@@ -25,6 +25,7 @@ exports.VirtualHostsApiService = 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
|
* VirtualHostsApiService - Auto-generated
|
|
30
31
|
*/
|
|
@@ -43,8 +44,7 @@ class VirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
43
44
|
if (virtualHostEnvironmentCreate === null || virtualHostEnvironmentCreate === undefined) {
|
|
44
45
|
throw new Exceptions_1.ArgumentNullException('virtualHostEnvironmentCreate', 'addEnvironmentVirtualHost');
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
-
const requestUrl = '/environments/{environment_id}/virtual-hosts' + (queryString ? `?${queryString}` : '');
|
|
47
|
+
const requestUrl = '/environments/{environment_id}/virtual-hosts';
|
|
48
48
|
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), virtualHostEnvironmentCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
@@ -59,8 +59,7 @@ class VirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
59
59
|
if (virtualHostId === null || virtualHostId === undefined) {
|
|
60
60
|
throw new Exceptions_1.ArgumentNullException('virtualHostId', 'deleteVirtualHost');
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
const requestUrl = '/virtual-hosts/{virtual_host_id}' + (queryString ? `?${queryString}` : '');
|
|
62
|
+
const requestUrl = '/virtual-hosts/{virtual_host_id}';
|
|
64
63
|
const response = yield this.delete(requestUrl.replace(`{${"virtual_host_id"}}`, encodeURIComponent(String(virtualHostId))));
|
|
65
64
|
return new ApiResponse_1.ApiResponse(response);
|
|
66
65
|
});
|
|
@@ -79,8 +78,7 @@ class VirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
79
78
|
if (virtualHostDeploy === null || virtualHostDeploy === undefined) {
|
|
80
79
|
throw new Exceptions_1.ArgumentNullException('virtualHostDeploy', 'deployVirtualHost');
|
|
81
80
|
}
|
|
82
|
-
|
|
83
|
-
const requestUrl = '/virtual-hosts/{virtual_host_id}/deploy' + (queryString ? `?${queryString}` : '');
|
|
81
|
+
const requestUrl = '/virtual-hosts/{virtual_host_id}/deploy';
|
|
84
82
|
const response = yield this.post(requestUrl.replace(`{${"virtual_host_id"}}`, encodeURIComponent(String(virtualHostId))), virtualHostDeploy);
|
|
85
83
|
return new ApiResponse_1.ApiResponse(response);
|
|
86
84
|
});
|
|
@@ -99,8 +97,7 @@ class VirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
99
97
|
if (virtualHostGetStatus === null || virtualHostGetStatus === undefined) {
|
|
100
98
|
throw new Exceptions_1.ArgumentNullException('virtualHostGetStatus', 'getStatusVirtualHost');
|
|
101
99
|
}
|
|
102
|
-
|
|
103
|
-
const requestUrl = '/virtual-hosts/{virtual_host_id}/get-status' + (queryString ? `?${queryString}` : '');
|
|
100
|
+
const requestUrl = '/virtual-hosts/{virtual_host_id}/get-status';
|
|
104
101
|
const response = yield this.post(requestUrl.replace(`{${"virtual_host_id"}}`, encodeURIComponent(String(virtualHostId))), virtualHostGetStatus);
|
|
105
102
|
return new ApiResponse_1.ApiResponse(response);
|
|
106
103
|
});
|
|
@@ -115,8 +112,7 @@ class VirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
115
112
|
if (virtualHostId === null || virtualHostId === undefined) {
|
|
116
113
|
throw new Exceptions_1.ArgumentNullException('virtualHostId', 'getVirtualHost');
|
|
117
114
|
}
|
|
118
|
-
|
|
119
|
-
const requestUrl = '/virtual-hosts/{virtual_host_id}' + (queryString ? `?${queryString}` : '');
|
|
115
|
+
const requestUrl = '/virtual-hosts/{virtual_host_id}';
|
|
120
116
|
const response = yield this.get(requestUrl.replace(`{${"virtual_host_id"}}`, encodeURIComponent(String(virtualHostId))));
|
|
121
117
|
return new ApiResponse_1.ApiResponse(response);
|
|
122
118
|
});
|
|
@@ -133,14 +129,10 @@ class VirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
133
129
|
if (environmentId === null || environmentId === undefined) {
|
|
134
130
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentVirtualHosts');
|
|
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}/virtual-hosts' + (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 VirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
160
152
|
if (virtualHostUpdate === null || virtualHostUpdate === undefined) {
|
|
161
153
|
throw new Exceptions_1.ArgumentNullException('virtualHostUpdate', 'updateVirtualHost');
|
|
162
154
|
}
|
|
163
|
-
|
|
164
|
-
const requestUrl = '/virtual-hosts/{virtual_host_id}' + (queryString ? `?${queryString}` : '');
|
|
155
|
+
const requestUrl = '/virtual-hosts/{virtual_host_id}';
|
|
165
156
|
const response = yield this.put(requestUrl.replace(`{${"virtual_host_id"}}`, encodeURIComponent(String(virtualHostId))), virtualHostUpdate);
|
|
166
157
|
return new ApiResponse_1.ApiResponse(response);
|
|
167
158
|
});
|
|
@@ -79,7 +79,7 @@ export interface ApplicationApplyTemplateResponse {
|
|
|
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 ApplicationApplyTemplateResponse
|
|
85
85
|
*/
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ApplicationEnvironmentApplyTemplate {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* ID of the Template to be applied.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ApplicationEnvironmentApplyTemplate
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
template_id?: string;
|
|
24
24
|
/**
|
|
25
25
|
* Key/value pairs used to fill template placeholders before an application is created. Each template decides which inputs it accepts.
|
|
26
26
|
* @type {{ [key: string]: object; }}
|
|
@@ -29,4 +29,16 @@ export interface ApplicationEnvironmentApplyTemplate {
|
|
|
29
29
|
template_inputs: {
|
|
30
30
|
[key: string]: object;
|
|
31
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;
|
|
32
44
|
}
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -139,6 +139,9 @@ export * from './language-runtime-framework-commands';
|
|
|
139
139
|
export * from './language-runtime-framework-defaults';
|
|
140
140
|
export * from './linked-resource-data';
|
|
141
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';
|
|
142
145
|
export * from './log';
|
|
143
146
|
export * from './member';
|
|
144
147
|
export * from './member-relation';
|
|
@@ -155,6 +155,9 @@ __exportStar(require("./language-runtime-framework-commands"), exports);
|
|
|
155
155
|
__exportStar(require("./language-runtime-framework-defaults"), exports);
|
|
156
156
|
__exportStar(require("./linked-resource-data"), exports);
|
|
157
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);
|
|
158
161
|
__exportStar(require("./log"), exports);
|
|
159
162
|
__exportStar(require("./member"), exports);
|
|
160
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 });
|