@devopness/sdk-js 3.5.4 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/generated/apis/actions-api.d.ts +3 -1
- package/dist/api/generated/apis/actions-api.js +18 -29
- package/dist/api/generated/apis/actions-logs-api.js +1 -2
- package/dist/api/generated/apis/applications-api.d.ts +11 -2
- package/dist/api/generated/apis/applications-api.js +31 -20
- package/dist/api/generated/apis/applications-hooks-api.js +5 -8
- package/dist/api/generated/apis/applications-variables-api.js +6 -10
- package/dist/api/generated/apis/credentials-api.js +26 -46
- package/dist/api/generated/apis/credentials-repositories-api.js +6 -10
- package/dist/api/generated/apis/cron-jobs-api.js +10 -18
- package/dist/api/generated/apis/daemons-api.js +14 -26
- package/dist/api/generated/apis/environments-actions-api.d.ts +6 -2
- package/dist/api/generated/apis/environments-actions-api.js +15 -18
- package/dist/api/generated/apis/environments-api.js +5 -10
- package/dist/api/generated/apis/hook-requests-api.js +1 -2
- package/dist/api/generated/apis/hooks-api.js +4 -8
- package/dist/api/generated/apis/hooks-requests-api.js +5 -8
- package/dist/api/generated/apis/network-rules-api.js +10 -18
- package/dist/api/generated/apis/networks-api.js +13 -18
- package/dist/api/generated/apis/networks-subnets-api.js +8 -10
- package/dist/api/generated/apis/organizations-api.js +9 -16
- package/dist/api/generated/apis/pipelines-actions-api.js +6 -10
- package/dist/api/generated/apis/pipelines-api.js +9 -16
- package/dist/api/generated/apis/pipelines-hooks-api.js +6 -10
- package/dist/api/generated/apis/pipelines-steps-api.js +4 -8
- package/dist/api/generated/apis/projects-actions-api.js +5 -8
- package/dist/api/generated/apis/projects-api.js +11 -18
- package/dist/api/generated/apis/projects-apitokens-api.js +9 -16
- package/dist/api/generated/apis/projects-archived-environments-api.js +5 -8
- package/dist/api/generated/apis/projects-environments-api.js +6 -10
- package/dist/api/generated/apis/resource-events-api.js +6 -10
- package/dist/api/generated/apis/resource-links-api.js +12 -20
- package/dist/api/generated/apis/roles-api.js +9 -16
- package/dist/api/generated/apis/servers-api.js +19 -38
- package/dist/api/generated/apis/services-api.js +15 -28
- package/dist/api/generated/apis/services-variables-api.js +6 -10
- package/dist/api/generated/apis/social-accounts-api.js +9 -16
- package/dist/api/generated/apis/sshkeys-api.js +10 -18
- package/dist/api/generated/apis/sslcertificates-api.js +9 -16
- package/dist/api/generated/apis/static-data-api.js +27 -52
- package/dist/api/generated/apis/subnets-api.js +7 -12
- package/dist/api/generated/apis/team-invitations-api.js +6 -12
- package/dist/api/generated/apis/teams-api.js +32 -60
- package/dist/api/generated/apis/teams-invitations-api.js +6 -10
- package/dist/api/generated/apis/teams-members-api.js +7 -12
- package/dist/api/generated/apis/users-api.js +12 -24
- package/dist/api/generated/apis/users-environments-api.js +6 -8
- package/dist/api/generated/apis/users-passwords-api.js +2 -4
- package/dist/api/generated/apis/users-personal-access-tokens-api.js +9 -16
- package/dist/api/generated/apis/users-projects-api.js +6 -8
- package/dist/api/generated/apis/users-team-invitations-api.js +5 -8
- package/dist/api/generated/apis/variables-api.js +11 -16
- package/dist/api/generated/apis/virtual-hosts-api.js +11 -20
- package/dist/api/generated/models/application-apply-template-response.d.ts +201 -0
- package/dist/api/generated/models/application-apply-template-response.js +14 -0
- package/dist/api/generated/models/application-environment-apply-template.d.ts +44 -0
- package/dist/api/generated/models/application-environment-apply-template.js +14 -0
- package/dist/api/generated/models/application-environment-create.d.ts +2 -16
- package/dist/api/generated/models/application-relation.d.ts +1 -1
- package/dist/api/generated/models/application-update.d.ts +2 -2
- package/dist/api/generated/models/application.d.ts +1 -1
- package/dist/api/generated/models/index.d.ts +5 -0
- package/dist/api/generated/models/index.js +5 -0
- package/dist/api/generated/models/list-actions-filter-parameter.d.ts +60 -0
- package/dist/api/generated/models/list-actions-filter-parameter.js +14 -0
- package/dist/api/generated/models/list-environment-actions-by-resource-type-filter-parameter.d.ts +36 -0
- package/dist/api/generated/models/list-environment-actions-by-resource-type-filter-parameter.js +14 -0
- package/dist/api/generated/models/list-environment-actions-filter-parameter.d.ts +42 -0
- package/dist/api/generated/models/list-environment-actions-filter-parameter.js +14 -0
- package/dist/api/generated/models/virtual-host-environment-create.d.ts +2 -2
- package/dist/api/generated/models/virtual-host-relation.d.ts +1 -1
- package/dist/api/generated/models/virtual-host-update.d.ts +2 -2
- package/dist/api/generated/models/virtual-host.d.ts +1 -1
- package/dist/common/utils.d.ts +12 -0
- package/dist/common/utils.js +71 -0
- package/dist/services/ApiBaseService.d.ts +4 -4
- package/package.json +4 -4
|
@@ -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
|
});
|
|
@@ -0,0 +1,201 @@
|
|
|
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
|
+
import { ApplicationLastDeployments } from './application-last-deployments';
|
|
13
|
+
import { CredentialRelation } from './credential-relation';
|
|
14
|
+
import { CronJobRelation } from './cron-job-relation';
|
|
15
|
+
import { DaemonRelation } from './daemon-relation';
|
|
16
|
+
import { EnvironmentRelation } from './environment-relation';
|
|
17
|
+
import { ServerRelation } from './server-relation';
|
|
18
|
+
import { ServiceRelation } from './service-relation';
|
|
19
|
+
import { UserRelation } from './user-relation';
|
|
20
|
+
import { VirtualHostRelation } from './virtual-host-relation';
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
* @interface ApplicationApplyTemplateResponse
|
|
25
|
+
*/
|
|
26
|
+
export interface ApplicationApplyTemplateResponse {
|
|
27
|
+
/**
|
|
28
|
+
* Unique ID of the application
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
31
|
+
*/
|
|
32
|
+
id: number;
|
|
33
|
+
/**
|
|
34
|
+
* Numeric ID of the project to which the application belongs to
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
37
|
+
*/
|
|
38
|
+
project_id: number;
|
|
39
|
+
/**
|
|
40
|
+
* Numeric ID of the environment to which the application belongs to
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
43
|
+
*/
|
|
44
|
+
environment_id: number;
|
|
45
|
+
/**
|
|
46
|
+
* The id of the user who created the application and to whom the application belongs
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
49
|
+
*/
|
|
50
|
+
created_by: number;
|
|
51
|
+
/**
|
|
52
|
+
* The application\'s unique name
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
55
|
+
*/
|
|
56
|
+
name: string;
|
|
57
|
+
/**
|
|
58
|
+
* The full name of a repository (`repository_owner/repository_name`) containing the application source code.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
61
|
+
*/
|
|
62
|
+
repository: string;
|
|
63
|
+
/**
|
|
64
|
+
* The name part of a repository full name (`repository_owner/repository_name`)
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
67
|
+
*/
|
|
68
|
+
repository_name: string;
|
|
69
|
+
/**
|
|
70
|
+
* The owner part of a repository full name (`repository_owner/repository_name`)
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
73
|
+
*/
|
|
74
|
+
repository_owner: string;
|
|
75
|
+
/**
|
|
76
|
+
* The version control branch that, by default, will be used when a deployment is triggered and no other branch name is informed.
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
79
|
+
*/
|
|
80
|
+
default_branch: string;
|
|
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 and should be served statically (an SPA application, for instance), then this field value should be `nodejs` and the framework should be `html`.
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
85
|
+
*/
|
|
86
|
+
programming_language: string;
|
|
87
|
+
/**
|
|
88
|
+
* The human readable version of the programming language of the application.
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
91
|
+
*/
|
|
92
|
+
programming_language_human_readable: string;
|
|
93
|
+
/**
|
|
94
|
+
* The language runtime engine version to be used to execute this application on the deployed servers
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
97
|
+
*/
|
|
98
|
+
engine_version: string;
|
|
99
|
+
/**
|
|
100
|
+
* The base framework on top of which the application has been implemented - it might have impact on the steps to be performed during application deployment
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
103
|
+
*/
|
|
104
|
+
framework: string;
|
|
105
|
+
/**
|
|
106
|
+
* The human readable version of the framework of the application.
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
109
|
+
*/
|
|
110
|
+
framework_human_readable: string;
|
|
111
|
+
/**
|
|
112
|
+
* The relative directory where package manager\'s manifest files (`package.json`, `composer.json`, `yarn.lock`, etc) are located. It needs to be set for applications where the actual source code is not located in the top level directory of the repository.
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
115
|
+
*/
|
|
116
|
+
root_directory: string;
|
|
117
|
+
/**
|
|
118
|
+
* The number of deployment history, logs and artifacts to keep stored in both devopness servers and user\'s servers. OR The number of deployment artifacts to be retained in the user\'s servers, making it easier and faster to rollback to previous versions
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
121
|
+
*/
|
|
122
|
+
deployments_keep: number;
|
|
123
|
+
/**
|
|
124
|
+
* Indicates command that Devopness must execute to install application dependencies
|
|
125
|
+
* @type {string}
|
|
126
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
127
|
+
*/
|
|
128
|
+
install_dependencies_command: string | null;
|
|
129
|
+
/**
|
|
130
|
+
* The optional command that should be executed once during deployment to build the source code and get the application in a ready state
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
133
|
+
*/
|
|
134
|
+
build_command: string | null;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {UserRelation}
|
|
138
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
139
|
+
*/
|
|
140
|
+
created_by_user: UserRelation | null;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {ApplicationLastDeployments}
|
|
144
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
145
|
+
*/
|
|
146
|
+
last_deployments: ApplicationLastDeployments;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {EnvironmentRelation}
|
|
150
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
151
|
+
*/
|
|
152
|
+
environment: EnvironmentRelation | null;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {Array<ServerRelation>}
|
|
156
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
157
|
+
*/
|
|
158
|
+
servers: Array<ServerRelation>;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {CredentialRelation}
|
|
162
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
163
|
+
*/
|
|
164
|
+
credential: CredentialRelation | null;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {Array<ServiceRelation>}
|
|
168
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
169
|
+
*/
|
|
170
|
+
services: Array<ServiceRelation>;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {Array<CronJobRelation>}
|
|
174
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
175
|
+
*/
|
|
176
|
+
cronjobs: Array<CronJobRelation>;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @type {Array<VirtualHostRelation>}
|
|
180
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
181
|
+
*/
|
|
182
|
+
virtual_hosts: Array<VirtualHostRelation>;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @type {Array<DaemonRelation>}
|
|
186
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
187
|
+
*/
|
|
188
|
+
daemons: Array<DaemonRelation>;
|
|
189
|
+
/**
|
|
190
|
+
* The date and time when the record was created
|
|
191
|
+
* @type {string}
|
|
192
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
193
|
+
*/
|
|
194
|
+
created_at: string;
|
|
195
|
+
/**
|
|
196
|
+
* The date and time when the record was last updated
|
|
197
|
+
* @type {string}
|
|
198
|
+
* @memberof ApplicationApplyTemplateResponse
|
|
199
|
+
*/
|
|
200
|
+
updated_at: string;
|
|
201
|
+
}
|