@forteplatforms/sdk 1.0.144 → 1.0.148
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/generated/apis/ProjectsServerApi.d.ts +299 -19
- package/dist/generated/apis/ProjectsServerApi.js +2253 -1478
- package/dist/generated/apis/UsersServerApi.d.ts +152 -11
- package/dist/generated/apis/UsersServerApi.js +965 -531
- package/dist/generated/models/BuildStepLog.d.ts +2 -2
- package/dist/generated/models/ContentObject.d.ts +1 -1
- package/dist/generated/models/ContentShare.d.ts +1 -1
- package/dist/generated/models/ContentShareRequestItem.d.ts +1 -1
- package/dist/generated/models/CreateForteServiceRequest.d.ts +1 -1
- package/dist/generated/models/CreatePaymentTriggerRequest.d.ts +57 -0
- package/dist/generated/models/{UpsertPaymentTriggerRequest.js → CreatePaymentTriggerRequest.js} +16 -23
- package/dist/generated/models/CreateUserInviteRequest.d.ts +32 -0
- package/dist/generated/models/CreateUserInviteRequest.js +51 -0
- package/dist/generated/models/CreateWebAppRequest.d.ts +1 -1
- package/dist/generated/models/DockerfileGenerationError.d.ts +1 -1
- package/dist/generated/models/ForteApiException.d.ts +3 -1
- package/dist/generated/models/ForteApiException.js +3 -1
- package/dist/generated/models/HealthCheckDetectionError.d.ts +1 -1
- package/dist/generated/models/ListUserInvitesResponse.d.ts +33 -0
- package/dist/generated/models/ListUserInvitesResponse.js +50 -0
- package/dist/generated/models/NotificationTemplatesConfig.d.ts +12 -0
- package/dist/generated/models/NotificationTemplatesConfig.js +4 -0
- package/dist/generated/models/PaymentObject.d.ts +1 -1
- package/dist/generated/models/PaymentTriggerConfig.d.ts +3 -10
- package/dist/generated/models/PaymentTriggerConfig.js +3 -10
- package/dist/generated/models/PendingUserInviteObject.d.ts +80 -0
- package/dist/generated/models/PendingUserInviteObject.js +65 -0
- package/dist/generated/models/ServiceBuildRequestObject.d.ts +2 -2
- package/dist/generated/models/ServiceObject.d.ts +1 -1
- package/dist/generated/models/StateHistory.d.ts +1 -1
- package/dist/generated/models/TestInvocationRequest.d.ts +1 -1
- package/dist/generated/models/TriggerEvent.d.ts +25 -0
- package/dist/generated/models/TriggerEvent.js +51 -0
- package/dist/generated/models/UpdateNotificationTemplatesRequest.d.ts +12 -0
- package/dist/generated/models/UpdateNotificationTemplatesRequest.js +4 -0
- package/dist/generated/models/UpdatePaymentTriggerRequest.d.ts +57 -0
- package/dist/generated/models/UpdatePaymentTriggerRequest.js +66 -0
- package/dist/generated/models/UserActionLogObject.d.ts +4 -1
- package/dist/generated/models/UserActionLogObject.js +3 -0
- package/dist/generated/models/UserObject.d.ts +6 -0
- package/dist/generated/models/UserObject.js +2 -0
- package/dist/generated/models/WebAppBuildRequestObject.d.ts +2 -2
- package/dist/generated/models/WebAppDetectionError.d.ts +1 -1
- package/dist/generated/models/WebAppDetectionResponse.d.ts +1 -1
- package/dist/generated/models/WebAppObject.d.ts +2 -2
- package/dist/generated/models/index.d.ts +6 -1
- package/dist/generated/models/index.js +6 -1
- package/dist/generated/runtime.js +19 -1
- package/package.json +1 -1
- package/dist/generated/models/UpsertPaymentTriggerRequest.d.ts +0 -64
|
@@ -66,7 +66,56 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
67
|
exports.ListUserPaymentsStateType = exports.ListUserActionLogsActionTypeType = exports.GetUserMetricsGranularityType = exports.GetServiceMetricsGranularityType = exports.ProjectsServerApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
|
-
var
|
|
69
|
+
var AddContactMethodRequest_1 = require("../models/AddContactMethodRequest");
|
|
70
|
+
var AdminOverrideContactMethodRequest_1 = require("../models/AdminOverrideContactMethodRequest");
|
|
71
|
+
var ApiKeySummary_1 = require("../models/ApiKeySummary");
|
|
72
|
+
var ContactMethod_1 = require("../models/ContactMethod");
|
|
73
|
+
var ContentObject_1 = require("../models/ContentObject");
|
|
74
|
+
var CreateContentUploadLinkRequest_1 = require("../models/CreateContentUploadLinkRequest");
|
|
75
|
+
var CreateContentUploadLinkResponse_1 = require("../models/CreateContentUploadLinkResponse");
|
|
76
|
+
var CreateForteServiceRequest_1 = require("../models/CreateForteServiceRequest");
|
|
77
|
+
var CreatePaymentPreviewRequest_1 = require("../models/CreatePaymentPreviewRequest");
|
|
78
|
+
var CreatePaymentPreviewResponse_1 = require("../models/CreatePaymentPreviewResponse");
|
|
79
|
+
var CreatePaymentRequest_1 = require("../models/CreatePaymentRequest");
|
|
80
|
+
var CreatePaymentResponse_1 = require("../models/CreatePaymentResponse");
|
|
81
|
+
var CreatePaymentTriggerRequest_1 = require("../models/CreatePaymentTriggerRequest");
|
|
82
|
+
var CreateProjectApiKeyRequest_1 = require("../models/CreateProjectApiKeyRequest");
|
|
83
|
+
var CreateProjectApiKeyResponse_1 = require("../models/CreateProjectApiKeyResponse");
|
|
84
|
+
var CreateServiceRequestProxyRequest_1 = require("../models/CreateServiceRequestProxyRequest");
|
|
85
|
+
var CreateServiceRequestProxyResponse_1 = require("../models/CreateServiceRequestProxyResponse");
|
|
86
|
+
var CreateWebAppRequest_1 = require("../models/CreateWebAppRequest");
|
|
87
|
+
var GetContentDownloadLinkResponse_1 = require("../models/GetContentDownloadLinkResponse");
|
|
88
|
+
var ListContentResponse_1 = require("../models/ListContentResponse");
|
|
89
|
+
var NotificationTemplatesResponse_1 = require("../models/NotificationTemplatesResponse");
|
|
90
|
+
var PaginatedResponseLogLineObject_1 = require("../models/PaginatedResponseLogLineObject");
|
|
91
|
+
var PaginatedResponsePaymentObject_1 = require("../models/PaginatedResponsePaymentObject");
|
|
92
|
+
var PaginatedResponseRequestLogObject_1 = require("../models/PaginatedResponseRequestLogObject");
|
|
93
|
+
var PaginatedResponseServiceBuildRequestObject_1 = require("../models/PaginatedResponseServiceBuildRequestObject");
|
|
94
|
+
var PaginatedResponseUserActionLogObject_1 = require("../models/PaginatedResponseUserActionLogObject");
|
|
95
|
+
var PaginatedResponseUserObject_1 = require("../models/PaginatedResponseUserObject");
|
|
96
|
+
var PaginatedResponseWebAppBuildRequestObject_1 = require("../models/PaginatedResponseWebAppBuildRequestObject");
|
|
97
|
+
var PaymentTriggerConfig_1 = require("../models/PaymentTriggerConfig");
|
|
98
|
+
var ProjectObject_1 = require("../models/ProjectObject");
|
|
99
|
+
var RequestLogObject_1 = require("../models/RequestLogObject");
|
|
100
|
+
var SendUserEmailRequest_1 = require("../models/SendUserEmailRequest");
|
|
101
|
+
var SendUserSmsRequest_1 = require("../models/SendUserSmsRequest");
|
|
102
|
+
var ServiceBuildRequestObject_1 = require("../models/ServiceBuildRequestObject");
|
|
103
|
+
var ServiceMetricsResponse_1 = require("../models/ServiceMetricsResponse");
|
|
104
|
+
var ServiceObject_1 = require("../models/ServiceObject");
|
|
105
|
+
var TestInvocationRequest_1 = require("../models/TestInvocationRequest");
|
|
106
|
+
var TestInvocationResponse_1 = require("../models/TestInvocationResponse");
|
|
107
|
+
var UpdateContentSharesRequest_1 = require("../models/UpdateContentSharesRequest");
|
|
108
|
+
var UpdateForteServiceRequest_1 = require("../models/UpdateForteServiceRequest");
|
|
109
|
+
var UpdateForteServiceResponse_1 = require("../models/UpdateForteServiceResponse");
|
|
110
|
+
var UpdateNotificationTemplatesRequest_1 = require("../models/UpdateNotificationTemplatesRequest");
|
|
111
|
+
var UpdatePaymentTriggerRequest_1 = require("../models/UpdatePaymentTriggerRequest");
|
|
112
|
+
var UpdateProjectRequest_1 = require("../models/UpdateProjectRequest");
|
|
113
|
+
var UpdateWebAppRequest_1 = require("../models/UpdateWebAppRequest");
|
|
114
|
+
var UpdateWebAppResponse_1 = require("../models/UpdateWebAppResponse");
|
|
115
|
+
var UserMetricsResponse_1 = require("../models/UserMetricsResponse");
|
|
116
|
+
var UserObject_1 = require("../models/UserObject");
|
|
117
|
+
var WebAppBuildRequestObject_1 = require("../models/WebAppBuildRequestObject");
|
|
118
|
+
var WebAppObject_1 = require("../models/WebAppObject");
|
|
70
119
|
/**
|
|
71
120
|
*
|
|
72
121
|
*/
|
|
@@ -75,39 +124,52 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
75
124
|
function ProjectsServerApi() {
|
|
76
125
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Creates request options for adminAddUserContactMethod without sending the request
|
|
129
|
+
*/
|
|
130
|
+
ProjectsServerApi.prototype.adminAddUserContactMethodRequestOpts = function (requestParameters) {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
132
|
+
var queryParameters, headerParameters, urlPath;
|
|
133
|
+
return __generator(this, function (_a) {
|
|
134
|
+
if (requestParameters['projectId'] == null) {
|
|
135
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling adminAddUserContactMethod().');
|
|
136
|
+
}
|
|
137
|
+
if (requestParameters['userId'] == null) {
|
|
138
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling adminAddUserContactMethod().');
|
|
139
|
+
}
|
|
140
|
+
if (requestParameters['addContactMethodRequest'] == null) {
|
|
141
|
+
throw new runtime.RequiredError('addContactMethodRequest', 'Required parameter "addContactMethodRequest" was null or undefined when calling adminAddUserContactMethod().');
|
|
142
|
+
}
|
|
143
|
+
queryParameters = {};
|
|
144
|
+
headerParameters = {};
|
|
145
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
146
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/contact-methods";
|
|
147
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
148
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
149
|
+
return [2 /*return*/, {
|
|
150
|
+
path: urlPath,
|
|
151
|
+
method: 'POST',
|
|
152
|
+
headers: headerParameters,
|
|
153
|
+
query: queryParameters,
|
|
154
|
+
body: (0, AddContactMethodRequest_1.AddContactMethodRequestToJSON)(requestParameters['addContactMethodRequest']),
|
|
155
|
+
}];
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
};
|
|
78
159
|
/**
|
|
79
160
|
*/
|
|
80
161
|
ProjectsServerApi.prototype.adminAddUserContactMethodRaw = function (requestParameters, initOverrides) {
|
|
81
162
|
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
-
var
|
|
163
|
+
var requestOptions, response;
|
|
83
164
|
return __generator(this, function (_a) {
|
|
84
165
|
switch (_a.label) {
|
|
85
|
-
case 0:
|
|
86
|
-
if (requestParameters['projectId'] == null) {
|
|
87
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling adminAddUserContactMethod().');
|
|
88
|
-
}
|
|
89
|
-
if (requestParameters['userId'] == null) {
|
|
90
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling adminAddUserContactMethod().');
|
|
91
|
-
}
|
|
92
|
-
if (requestParameters['addContactMethodRequest'] == null) {
|
|
93
|
-
throw new runtime.RequiredError('addContactMethodRequest', 'Required parameter "addContactMethodRequest" was null or undefined when calling adminAddUserContactMethod().');
|
|
94
|
-
}
|
|
95
|
-
queryParameters = {};
|
|
96
|
-
headerParameters = {};
|
|
97
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
98
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/contact-methods";
|
|
99
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
100
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
101
|
-
return [4 /*yield*/, this.request({
|
|
102
|
-
path: urlPath,
|
|
103
|
-
method: 'POST',
|
|
104
|
-
headers: headerParameters,
|
|
105
|
-
query: queryParameters,
|
|
106
|
-
body: (0, index_1.AddContactMethodRequestToJSON)(requestParameters['addContactMethodRequest']),
|
|
107
|
-
}, initOverrides)];
|
|
166
|
+
case 0: return [4 /*yield*/, this.adminAddUserContactMethodRequestOpts(requestParameters)];
|
|
108
167
|
case 1:
|
|
168
|
+
requestOptions = _a.sent();
|
|
169
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
170
|
+
case 2:
|
|
109
171
|
response = _a.sent();
|
|
110
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
172
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContactMethod_1.ContactMethodFromJSON)(jsonValue); })];
|
|
111
173
|
}
|
|
112
174
|
});
|
|
113
175
|
});
|
|
@@ -128,43 +190,56 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
128
190
|
});
|
|
129
191
|
});
|
|
130
192
|
};
|
|
193
|
+
/**
|
|
194
|
+
* Creates request options for adminOverrideUserContactMethod without sending the request
|
|
195
|
+
*/
|
|
196
|
+
ProjectsServerApi.prototype.adminOverrideUserContactMethodRequestOpts = function (requestParameters) {
|
|
197
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
198
|
+
var queryParameters, headerParameters, urlPath;
|
|
199
|
+
return __generator(this, function (_a) {
|
|
200
|
+
if (requestParameters['projectId'] == null) {
|
|
201
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling adminOverrideUserContactMethod().');
|
|
202
|
+
}
|
|
203
|
+
if (requestParameters['userId'] == null) {
|
|
204
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling adminOverrideUserContactMethod().');
|
|
205
|
+
}
|
|
206
|
+
if (requestParameters['contactMethodId'] == null) {
|
|
207
|
+
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling adminOverrideUserContactMethod().');
|
|
208
|
+
}
|
|
209
|
+
if (requestParameters['adminOverrideContactMethodRequest'] == null) {
|
|
210
|
+
throw new runtime.RequiredError('adminOverrideContactMethodRequest', 'Required parameter "adminOverrideContactMethodRequest" was null or undefined when calling adminOverrideUserContactMethod().');
|
|
211
|
+
}
|
|
212
|
+
queryParameters = {};
|
|
213
|
+
headerParameters = {};
|
|
214
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
215
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/contact-methods/{contactMethodId}";
|
|
216
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
217
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
218
|
+
urlPath = urlPath.replace('{contactMethodId}', encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
219
|
+
return [2 /*return*/, {
|
|
220
|
+
path: urlPath,
|
|
221
|
+
method: 'PATCH',
|
|
222
|
+
headers: headerParameters,
|
|
223
|
+
query: queryParameters,
|
|
224
|
+
body: (0, AdminOverrideContactMethodRequest_1.AdminOverrideContactMethodRequestToJSON)(requestParameters['adminOverrideContactMethodRequest']),
|
|
225
|
+
}];
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
};
|
|
131
229
|
/**
|
|
132
230
|
*/
|
|
133
231
|
ProjectsServerApi.prototype.adminOverrideUserContactMethodRaw = function (requestParameters, initOverrides) {
|
|
134
232
|
return __awaiter(this, void 0, void 0, function () {
|
|
135
|
-
var
|
|
233
|
+
var requestOptions, response;
|
|
136
234
|
return __generator(this, function (_a) {
|
|
137
235
|
switch (_a.label) {
|
|
138
|
-
case 0:
|
|
139
|
-
if (requestParameters['projectId'] == null) {
|
|
140
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling adminOverrideUserContactMethod().');
|
|
141
|
-
}
|
|
142
|
-
if (requestParameters['userId'] == null) {
|
|
143
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling adminOverrideUserContactMethod().');
|
|
144
|
-
}
|
|
145
|
-
if (requestParameters['contactMethodId'] == null) {
|
|
146
|
-
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling adminOverrideUserContactMethod().');
|
|
147
|
-
}
|
|
148
|
-
if (requestParameters['adminOverrideContactMethodRequest'] == null) {
|
|
149
|
-
throw new runtime.RequiredError('adminOverrideContactMethodRequest', 'Required parameter "adminOverrideContactMethodRequest" was null or undefined when calling adminOverrideUserContactMethod().');
|
|
150
|
-
}
|
|
151
|
-
queryParameters = {};
|
|
152
|
-
headerParameters = {};
|
|
153
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
154
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/contact-methods/{contactMethodId}";
|
|
155
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
156
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
157
|
-
urlPath = urlPath.replace("{".concat("contactMethodId", "}"), encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
158
|
-
return [4 /*yield*/, this.request({
|
|
159
|
-
path: urlPath,
|
|
160
|
-
method: 'PATCH',
|
|
161
|
-
headers: headerParameters,
|
|
162
|
-
query: queryParameters,
|
|
163
|
-
body: (0, index_1.AdminOverrideContactMethodRequestToJSON)(requestParameters['adminOverrideContactMethodRequest']),
|
|
164
|
-
}, initOverrides)];
|
|
236
|
+
case 0: return [4 /*yield*/, this.adminOverrideUserContactMethodRequestOpts(requestParameters)];
|
|
165
237
|
case 1:
|
|
238
|
+
requestOptions = _a.sent();
|
|
239
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
240
|
+
case 2:
|
|
166
241
|
response = _a.sent();
|
|
167
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
242
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContactMethod_1.ContactMethodFromJSON)(jsonValue); })];
|
|
168
243
|
}
|
|
169
244
|
});
|
|
170
245
|
});
|
|
@@ -185,36 +260,49 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
185
260
|
});
|
|
186
261
|
});
|
|
187
262
|
};
|
|
263
|
+
/**
|
|
264
|
+
* Creates request options for adminRemoveUserContactMethod without sending the request
|
|
265
|
+
*/
|
|
266
|
+
ProjectsServerApi.prototype.adminRemoveUserContactMethodRequestOpts = function (requestParameters) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
268
|
+
var queryParameters, headerParameters, urlPath;
|
|
269
|
+
return __generator(this, function (_a) {
|
|
270
|
+
if (requestParameters['projectId'] == null) {
|
|
271
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling adminRemoveUserContactMethod().');
|
|
272
|
+
}
|
|
273
|
+
if (requestParameters['userId'] == null) {
|
|
274
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling adminRemoveUserContactMethod().');
|
|
275
|
+
}
|
|
276
|
+
if (requestParameters['contactMethodId'] == null) {
|
|
277
|
+
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling adminRemoveUserContactMethod().');
|
|
278
|
+
}
|
|
279
|
+
queryParameters = {};
|
|
280
|
+
headerParameters = {};
|
|
281
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/contact-methods/{contactMethodId}";
|
|
282
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
283
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
284
|
+
urlPath = urlPath.replace('{contactMethodId}', encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
285
|
+
return [2 /*return*/, {
|
|
286
|
+
path: urlPath,
|
|
287
|
+
method: 'DELETE',
|
|
288
|
+
headers: headerParameters,
|
|
289
|
+
query: queryParameters,
|
|
290
|
+
}];
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
};
|
|
188
294
|
/**
|
|
189
295
|
*/
|
|
190
296
|
ProjectsServerApi.prototype.adminRemoveUserContactMethodRaw = function (requestParameters, initOverrides) {
|
|
191
297
|
return __awaiter(this, void 0, void 0, function () {
|
|
192
|
-
var
|
|
298
|
+
var requestOptions, response;
|
|
193
299
|
return __generator(this, function (_a) {
|
|
194
300
|
switch (_a.label) {
|
|
195
|
-
case 0:
|
|
196
|
-
if (requestParameters['projectId'] == null) {
|
|
197
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling adminRemoveUserContactMethod().');
|
|
198
|
-
}
|
|
199
|
-
if (requestParameters['userId'] == null) {
|
|
200
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling adminRemoveUserContactMethod().');
|
|
201
|
-
}
|
|
202
|
-
if (requestParameters['contactMethodId'] == null) {
|
|
203
|
-
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling adminRemoveUserContactMethod().');
|
|
204
|
-
}
|
|
205
|
-
queryParameters = {};
|
|
206
|
-
headerParameters = {};
|
|
207
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/contact-methods/{contactMethodId}";
|
|
208
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
209
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
210
|
-
urlPath = urlPath.replace("{".concat("contactMethodId", "}"), encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
211
|
-
return [4 /*yield*/, this.request({
|
|
212
|
-
path: urlPath,
|
|
213
|
-
method: 'DELETE',
|
|
214
|
-
headers: headerParameters,
|
|
215
|
-
query: queryParameters,
|
|
216
|
-
}, initOverrides)];
|
|
301
|
+
case 0: return [4 /*yield*/, this.adminRemoveUserContactMethodRequestOpts(requestParameters)];
|
|
217
302
|
case 1:
|
|
303
|
+
requestOptions = _a.sent();
|
|
304
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
305
|
+
case 2:
|
|
218
306
|
response = _a.sent();
|
|
219
307
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
220
308
|
}
|
|
@@ -235,38 +323,51 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
235
323
|
});
|
|
236
324
|
});
|
|
237
325
|
};
|
|
326
|
+
/**
|
|
327
|
+
* Creates request options for adminSendUserContactMethodVerificationCode without sending the request
|
|
328
|
+
*/
|
|
329
|
+
ProjectsServerApi.prototype.adminSendUserContactMethodVerificationCodeRequestOpts = function (requestParameters) {
|
|
330
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
331
|
+
var queryParameters, headerParameters, urlPath;
|
|
332
|
+
return __generator(this, function (_a) {
|
|
333
|
+
if (requestParameters['projectId'] == null) {
|
|
334
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling adminSendUserContactMethodVerificationCode().');
|
|
335
|
+
}
|
|
336
|
+
if (requestParameters['userId'] == null) {
|
|
337
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling adminSendUserContactMethodVerificationCode().');
|
|
338
|
+
}
|
|
339
|
+
if (requestParameters['contactMethodId'] == null) {
|
|
340
|
+
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling adminSendUserContactMethodVerificationCode().');
|
|
341
|
+
}
|
|
342
|
+
queryParameters = {};
|
|
343
|
+
headerParameters = {};
|
|
344
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/contact-methods/{contactMethodId}/send-verification-code";
|
|
345
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
346
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
347
|
+
urlPath = urlPath.replace('{contactMethodId}', encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
348
|
+
return [2 /*return*/, {
|
|
349
|
+
path: urlPath,
|
|
350
|
+
method: 'POST',
|
|
351
|
+
headers: headerParameters,
|
|
352
|
+
query: queryParameters,
|
|
353
|
+
}];
|
|
354
|
+
});
|
|
355
|
+
});
|
|
356
|
+
};
|
|
238
357
|
/**
|
|
239
358
|
*/
|
|
240
359
|
ProjectsServerApi.prototype.adminSendUserContactMethodVerificationCodeRaw = function (requestParameters, initOverrides) {
|
|
241
360
|
return __awaiter(this, void 0, void 0, function () {
|
|
242
|
-
var
|
|
361
|
+
var requestOptions, response;
|
|
243
362
|
return __generator(this, function (_a) {
|
|
244
363
|
switch (_a.label) {
|
|
245
|
-
case 0:
|
|
246
|
-
if (requestParameters['projectId'] == null) {
|
|
247
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling adminSendUserContactMethodVerificationCode().');
|
|
248
|
-
}
|
|
249
|
-
if (requestParameters['userId'] == null) {
|
|
250
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling adminSendUserContactMethodVerificationCode().');
|
|
251
|
-
}
|
|
252
|
-
if (requestParameters['contactMethodId'] == null) {
|
|
253
|
-
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling adminSendUserContactMethodVerificationCode().');
|
|
254
|
-
}
|
|
255
|
-
queryParameters = {};
|
|
256
|
-
headerParameters = {};
|
|
257
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/contact-methods/{contactMethodId}/send-verification-code";
|
|
258
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
259
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
260
|
-
urlPath = urlPath.replace("{".concat("contactMethodId", "}"), encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
261
|
-
return [4 /*yield*/, this.request({
|
|
262
|
-
path: urlPath,
|
|
263
|
-
method: 'POST',
|
|
264
|
-
headers: headerParameters,
|
|
265
|
-
query: queryParameters,
|
|
266
|
-
}, initOverrides)];
|
|
364
|
+
case 0: return [4 /*yield*/, this.adminSendUserContactMethodVerificationCodeRequestOpts(requestParameters)];
|
|
267
365
|
case 1:
|
|
366
|
+
requestOptions = _a.sent();
|
|
367
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
368
|
+
case 2:
|
|
268
369
|
response = _a.sent();
|
|
269
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
370
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContactMethod_1.ContactMethodFromJSON)(jsonValue); })];
|
|
270
371
|
}
|
|
271
372
|
});
|
|
272
373
|
});
|
|
@@ -287,44 +388,57 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
287
388
|
});
|
|
288
389
|
});
|
|
289
390
|
};
|
|
391
|
+
/**
|
|
392
|
+
* Creates request options for adminVerifyUserContactMethod without sending the request
|
|
393
|
+
*/
|
|
394
|
+
ProjectsServerApi.prototype.adminVerifyUserContactMethodRequestOpts = function (requestParameters) {
|
|
395
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
396
|
+
var queryParameters, headerParameters, urlPath;
|
|
397
|
+
return __generator(this, function (_a) {
|
|
398
|
+
if (requestParameters['projectId'] == null) {
|
|
399
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling adminVerifyUserContactMethod().');
|
|
400
|
+
}
|
|
401
|
+
if (requestParameters['userId'] == null) {
|
|
402
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling adminVerifyUserContactMethod().');
|
|
403
|
+
}
|
|
404
|
+
if (requestParameters['contactMethodId'] == null) {
|
|
405
|
+
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling adminVerifyUserContactMethod().');
|
|
406
|
+
}
|
|
407
|
+
if (requestParameters['verificationCode'] == null) {
|
|
408
|
+
throw new runtime.RequiredError('verificationCode', 'Required parameter "verificationCode" was null or undefined when calling adminVerifyUserContactMethod().');
|
|
409
|
+
}
|
|
410
|
+
queryParameters = {};
|
|
411
|
+
if (requestParameters['verificationCode'] != null) {
|
|
412
|
+
queryParameters['verificationCode'] = requestParameters['verificationCode'];
|
|
413
|
+
}
|
|
414
|
+
headerParameters = {};
|
|
415
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/contact-methods/{contactMethodId}/verify";
|
|
416
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
417
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
418
|
+
urlPath = urlPath.replace('{contactMethodId}', encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
419
|
+
return [2 /*return*/, {
|
|
420
|
+
path: urlPath,
|
|
421
|
+
method: 'POST',
|
|
422
|
+
headers: headerParameters,
|
|
423
|
+
query: queryParameters,
|
|
424
|
+
}];
|
|
425
|
+
});
|
|
426
|
+
});
|
|
427
|
+
};
|
|
290
428
|
/**
|
|
291
429
|
*/
|
|
292
430
|
ProjectsServerApi.prototype.adminVerifyUserContactMethodRaw = function (requestParameters, initOverrides) {
|
|
293
431
|
return __awaiter(this, void 0, void 0, function () {
|
|
294
|
-
var
|
|
432
|
+
var requestOptions, response;
|
|
295
433
|
return __generator(this, function (_a) {
|
|
296
434
|
switch (_a.label) {
|
|
297
|
-
case 0:
|
|
298
|
-
if (requestParameters['projectId'] == null) {
|
|
299
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling adminVerifyUserContactMethod().');
|
|
300
|
-
}
|
|
301
|
-
if (requestParameters['userId'] == null) {
|
|
302
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling adminVerifyUserContactMethod().');
|
|
303
|
-
}
|
|
304
|
-
if (requestParameters['contactMethodId'] == null) {
|
|
305
|
-
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling adminVerifyUserContactMethod().');
|
|
306
|
-
}
|
|
307
|
-
if (requestParameters['verificationCode'] == null) {
|
|
308
|
-
throw new runtime.RequiredError('verificationCode', 'Required parameter "verificationCode" was null or undefined when calling adminVerifyUserContactMethod().');
|
|
309
|
-
}
|
|
310
|
-
queryParameters = {};
|
|
311
|
-
if (requestParameters['verificationCode'] != null) {
|
|
312
|
-
queryParameters['verificationCode'] = requestParameters['verificationCode'];
|
|
313
|
-
}
|
|
314
|
-
headerParameters = {};
|
|
315
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/contact-methods/{contactMethodId}/verify";
|
|
316
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
317
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
318
|
-
urlPath = urlPath.replace("{".concat("contactMethodId", "}"), encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
319
|
-
return [4 /*yield*/, this.request({
|
|
320
|
-
path: urlPath,
|
|
321
|
-
method: 'POST',
|
|
322
|
-
headers: headerParameters,
|
|
323
|
-
query: queryParameters,
|
|
324
|
-
}, initOverrides)];
|
|
435
|
+
case 0: return [4 /*yield*/, this.adminVerifyUserContactMethodRequestOpts(requestParameters)];
|
|
325
436
|
case 1:
|
|
437
|
+
requestOptions = _a.sent();
|
|
438
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
439
|
+
case 2:
|
|
326
440
|
response = _a.sent();
|
|
327
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
441
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContactMethod_1.ContactMethodFromJSON)(jsonValue); })];
|
|
328
442
|
}
|
|
329
443
|
});
|
|
330
444
|
});
|
|
@@ -345,39 +459,52 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
345
459
|
});
|
|
346
460
|
});
|
|
347
461
|
};
|
|
462
|
+
/**
|
|
463
|
+
* Creates request options for createContentUploadLink1 without sending the request
|
|
464
|
+
*/
|
|
465
|
+
ProjectsServerApi.prototype.createContentUploadLink1RequestOpts = function (requestParameters) {
|
|
466
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
467
|
+
var queryParameters, headerParameters, urlPath;
|
|
468
|
+
return __generator(this, function (_a) {
|
|
469
|
+
if (requestParameters['projectId'] == null) {
|
|
470
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createContentUploadLink1().');
|
|
471
|
+
}
|
|
472
|
+
if (requestParameters['userId'] == null) {
|
|
473
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling createContentUploadLink1().');
|
|
474
|
+
}
|
|
475
|
+
if (requestParameters['createContentUploadLinkRequest'] == null) {
|
|
476
|
+
throw new runtime.RequiredError('createContentUploadLinkRequest', 'Required parameter "createContentUploadLinkRequest" was null or undefined when calling createContentUploadLink1().');
|
|
477
|
+
}
|
|
478
|
+
queryParameters = {};
|
|
479
|
+
headerParameters = {};
|
|
480
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
481
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/upload-links";
|
|
482
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
483
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
484
|
+
return [2 /*return*/, {
|
|
485
|
+
path: urlPath,
|
|
486
|
+
method: 'POST',
|
|
487
|
+
headers: headerParameters,
|
|
488
|
+
query: queryParameters,
|
|
489
|
+
body: (0, CreateContentUploadLinkRequest_1.CreateContentUploadLinkRequestToJSON)(requestParameters['createContentUploadLinkRequest']),
|
|
490
|
+
}];
|
|
491
|
+
});
|
|
492
|
+
});
|
|
493
|
+
};
|
|
348
494
|
/**
|
|
349
495
|
*/
|
|
350
496
|
ProjectsServerApi.prototype.createContentUploadLink1Raw = function (requestParameters, initOverrides) {
|
|
351
497
|
return __awaiter(this, void 0, void 0, function () {
|
|
352
|
-
var
|
|
498
|
+
var requestOptions, response;
|
|
353
499
|
return __generator(this, function (_a) {
|
|
354
500
|
switch (_a.label) {
|
|
355
|
-
case 0:
|
|
356
|
-
if (requestParameters['projectId'] == null) {
|
|
357
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createContentUploadLink1().');
|
|
358
|
-
}
|
|
359
|
-
if (requestParameters['userId'] == null) {
|
|
360
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling createContentUploadLink1().');
|
|
361
|
-
}
|
|
362
|
-
if (requestParameters['createContentUploadLinkRequest'] == null) {
|
|
363
|
-
throw new runtime.RequiredError('createContentUploadLinkRequest', 'Required parameter "createContentUploadLinkRequest" was null or undefined when calling createContentUploadLink1().');
|
|
364
|
-
}
|
|
365
|
-
queryParameters = {};
|
|
366
|
-
headerParameters = {};
|
|
367
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
368
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/upload-links";
|
|
369
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
370
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
371
|
-
return [4 /*yield*/, this.request({
|
|
372
|
-
path: urlPath,
|
|
373
|
-
method: 'POST',
|
|
374
|
-
headers: headerParameters,
|
|
375
|
-
query: queryParameters,
|
|
376
|
-
body: (0, index_1.CreateContentUploadLinkRequestToJSON)(requestParameters['createContentUploadLinkRequest']),
|
|
377
|
-
}, initOverrides)];
|
|
501
|
+
case 0: return [4 /*yield*/, this.createContentUploadLink1RequestOpts(requestParameters)];
|
|
378
502
|
case 1:
|
|
503
|
+
requestOptions = _a.sent();
|
|
504
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
505
|
+
case 2:
|
|
379
506
|
response = _a.sent();
|
|
380
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
507
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateContentUploadLinkResponse_1.CreateContentUploadLinkResponseFromJSON)(jsonValue); })];
|
|
381
508
|
}
|
|
382
509
|
});
|
|
383
510
|
});
|
|
@@ -398,39 +525,52 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
398
525
|
});
|
|
399
526
|
});
|
|
400
527
|
};
|
|
528
|
+
/**
|
|
529
|
+
* Creates request options for createPayment1 without sending the request
|
|
530
|
+
*/
|
|
531
|
+
ProjectsServerApi.prototype.createPayment1RequestOpts = function (requestParameters) {
|
|
532
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
533
|
+
var queryParameters, headerParameters, urlPath;
|
|
534
|
+
return __generator(this, function (_a) {
|
|
535
|
+
if (requestParameters['projectId'] == null) {
|
|
536
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createPayment1().');
|
|
537
|
+
}
|
|
538
|
+
if (requestParameters['userId'] == null) {
|
|
539
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling createPayment1().');
|
|
540
|
+
}
|
|
541
|
+
if (requestParameters['createPaymentRequest'] == null) {
|
|
542
|
+
throw new runtime.RequiredError('createPaymentRequest', 'Required parameter "createPaymentRequest" was null or undefined when calling createPayment1().');
|
|
543
|
+
}
|
|
544
|
+
queryParameters = {};
|
|
545
|
+
headerParameters = {};
|
|
546
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
547
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/payments";
|
|
548
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
549
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
550
|
+
return [2 /*return*/, {
|
|
551
|
+
path: urlPath,
|
|
552
|
+
method: 'POST',
|
|
553
|
+
headers: headerParameters,
|
|
554
|
+
query: queryParameters,
|
|
555
|
+
body: (0, CreatePaymentRequest_1.CreatePaymentRequestToJSON)(requestParameters['createPaymentRequest']),
|
|
556
|
+
}];
|
|
557
|
+
});
|
|
558
|
+
});
|
|
559
|
+
};
|
|
401
560
|
/**
|
|
402
561
|
*/
|
|
403
562
|
ProjectsServerApi.prototype.createPayment1Raw = function (requestParameters, initOverrides) {
|
|
404
563
|
return __awaiter(this, void 0, void 0, function () {
|
|
405
|
-
var
|
|
564
|
+
var requestOptions, response;
|
|
406
565
|
return __generator(this, function (_a) {
|
|
407
566
|
switch (_a.label) {
|
|
408
|
-
case 0:
|
|
409
|
-
if (requestParameters['projectId'] == null) {
|
|
410
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createPayment1().');
|
|
411
|
-
}
|
|
412
|
-
if (requestParameters['userId'] == null) {
|
|
413
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling createPayment1().');
|
|
414
|
-
}
|
|
415
|
-
if (requestParameters['createPaymentRequest'] == null) {
|
|
416
|
-
throw new runtime.RequiredError('createPaymentRequest', 'Required parameter "createPaymentRequest" was null or undefined when calling createPayment1().');
|
|
417
|
-
}
|
|
418
|
-
queryParameters = {};
|
|
419
|
-
headerParameters = {};
|
|
420
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
421
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/payments";
|
|
422
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
423
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
424
|
-
return [4 /*yield*/, this.request({
|
|
425
|
-
path: urlPath,
|
|
426
|
-
method: 'POST',
|
|
427
|
-
headers: headerParameters,
|
|
428
|
-
query: queryParameters,
|
|
429
|
-
body: (0, index_1.CreatePaymentRequestToJSON)(requestParameters['createPaymentRequest']),
|
|
430
|
-
}, initOverrides)];
|
|
567
|
+
case 0: return [4 /*yield*/, this.createPayment1RequestOpts(requestParameters)];
|
|
431
568
|
case 1:
|
|
569
|
+
requestOptions = _a.sent();
|
|
570
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
571
|
+
case 2:
|
|
432
572
|
response = _a.sent();
|
|
433
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
573
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreatePaymentResponse_1.CreatePaymentResponseFromJSON)(jsonValue); })];
|
|
434
574
|
}
|
|
435
575
|
});
|
|
436
576
|
});
|
|
@@ -451,39 +591,52 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
451
591
|
});
|
|
452
592
|
});
|
|
453
593
|
};
|
|
594
|
+
/**
|
|
595
|
+
* Creates request options for createPaymentPreview1 without sending the request
|
|
596
|
+
*/
|
|
597
|
+
ProjectsServerApi.prototype.createPaymentPreview1RequestOpts = function (requestParameters) {
|
|
598
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
599
|
+
var queryParameters, headerParameters, urlPath;
|
|
600
|
+
return __generator(this, function (_a) {
|
|
601
|
+
if (requestParameters['projectId'] == null) {
|
|
602
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createPaymentPreview1().');
|
|
603
|
+
}
|
|
604
|
+
if (requestParameters['userId'] == null) {
|
|
605
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling createPaymentPreview1().');
|
|
606
|
+
}
|
|
607
|
+
if (requestParameters['createPaymentPreviewRequest'] == null) {
|
|
608
|
+
throw new runtime.RequiredError('createPaymentPreviewRequest', 'Required parameter "createPaymentPreviewRequest" was null or undefined when calling createPaymentPreview1().');
|
|
609
|
+
}
|
|
610
|
+
queryParameters = {};
|
|
611
|
+
headerParameters = {};
|
|
612
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
613
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/payments/preview";
|
|
614
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
615
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
616
|
+
return [2 /*return*/, {
|
|
617
|
+
path: urlPath,
|
|
618
|
+
method: 'POST',
|
|
619
|
+
headers: headerParameters,
|
|
620
|
+
query: queryParameters,
|
|
621
|
+
body: (0, CreatePaymentPreviewRequest_1.CreatePaymentPreviewRequestToJSON)(requestParameters['createPaymentPreviewRequest']),
|
|
622
|
+
}];
|
|
623
|
+
});
|
|
624
|
+
});
|
|
625
|
+
};
|
|
454
626
|
/**
|
|
455
627
|
*/
|
|
456
628
|
ProjectsServerApi.prototype.createPaymentPreview1Raw = function (requestParameters, initOverrides) {
|
|
457
629
|
return __awaiter(this, void 0, void 0, function () {
|
|
458
|
-
var
|
|
630
|
+
var requestOptions, response;
|
|
459
631
|
return __generator(this, function (_a) {
|
|
460
632
|
switch (_a.label) {
|
|
461
|
-
case 0:
|
|
462
|
-
if (requestParameters['projectId'] == null) {
|
|
463
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createPaymentPreview1().');
|
|
464
|
-
}
|
|
465
|
-
if (requestParameters['userId'] == null) {
|
|
466
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling createPaymentPreview1().');
|
|
467
|
-
}
|
|
468
|
-
if (requestParameters['createPaymentPreviewRequest'] == null) {
|
|
469
|
-
throw new runtime.RequiredError('createPaymentPreviewRequest', 'Required parameter "createPaymentPreviewRequest" was null or undefined when calling createPaymentPreview1().');
|
|
470
|
-
}
|
|
471
|
-
queryParameters = {};
|
|
472
|
-
headerParameters = {};
|
|
473
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
474
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/payments/preview";
|
|
475
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
476
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
477
|
-
return [4 /*yield*/, this.request({
|
|
478
|
-
path: urlPath,
|
|
479
|
-
method: 'POST',
|
|
480
|
-
headers: headerParameters,
|
|
481
|
-
query: queryParameters,
|
|
482
|
-
body: (0, index_1.CreatePaymentPreviewRequestToJSON)(requestParameters['createPaymentPreviewRequest']),
|
|
483
|
-
}, initOverrides)];
|
|
633
|
+
case 0: return [4 /*yield*/, this.createPaymentPreview1RequestOpts(requestParameters)];
|
|
484
634
|
case 1:
|
|
635
|
+
requestOptions = _a.sent();
|
|
636
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
637
|
+
case 2:
|
|
485
638
|
response = _a.sent();
|
|
486
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
639
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreatePaymentPreviewResponse_1.CreatePaymentPreviewResponseFromJSON)(jsonValue); })];
|
|
487
640
|
}
|
|
488
641
|
});
|
|
489
642
|
});
|
|
@@ -504,35 +657,48 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
504
657
|
});
|
|
505
658
|
});
|
|
506
659
|
};
|
|
660
|
+
/**
|
|
661
|
+
* Creates request options for createPaymentTrigger without sending the request
|
|
662
|
+
*/
|
|
663
|
+
ProjectsServerApi.prototype.createPaymentTriggerRequestOpts = function (requestParameters) {
|
|
664
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
665
|
+
var queryParameters, headerParameters, urlPath;
|
|
666
|
+
return __generator(this, function (_a) {
|
|
667
|
+
if (requestParameters['projectId'] == null) {
|
|
668
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createPaymentTrigger().');
|
|
669
|
+
}
|
|
670
|
+
if (requestParameters['createPaymentTriggerRequest'] == null) {
|
|
671
|
+
throw new runtime.RequiredError('createPaymentTriggerRequest', 'Required parameter "createPaymentTriggerRequest" was null or undefined when calling createPaymentTrigger().');
|
|
672
|
+
}
|
|
673
|
+
queryParameters = {};
|
|
674
|
+
headerParameters = {};
|
|
675
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
676
|
+
urlPath = "/api/v1/projects/{projectId}/payment-triggers";
|
|
677
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
678
|
+
return [2 /*return*/, {
|
|
679
|
+
path: urlPath,
|
|
680
|
+
method: 'POST',
|
|
681
|
+
headers: headerParameters,
|
|
682
|
+
query: queryParameters,
|
|
683
|
+
body: (0, CreatePaymentTriggerRequest_1.CreatePaymentTriggerRequestToJSON)(requestParameters['createPaymentTriggerRequest']),
|
|
684
|
+
}];
|
|
685
|
+
});
|
|
686
|
+
});
|
|
687
|
+
};
|
|
507
688
|
/**
|
|
508
689
|
*/
|
|
509
690
|
ProjectsServerApi.prototype.createPaymentTriggerRaw = function (requestParameters, initOverrides) {
|
|
510
691
|
return __awaiter(this, void 0, void 0, function () {
|
|
511
|
-
var
|
|
692
|
+
var requestOptions, response;
|
|
512
693
|
return __generator(this, function (_a) {
|
|
513
694
|
switch (_a.label) {
|
|
514
|
-
case 0:
|
|
515
|
-
if (requestParameters['projectId'] == null) {
|
|
516
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createPaymentTrigger().');
|
|
517
|
-
}
|
|
518
|
-
if (requestParameters['upsertPaymentTriggerRequest'] == null) {
|
|
519
|
-
throw new runtime.RequiredError('upsertPaymentTriggerRequest', 'Required parameter "upsertPaymentTriggerRequest" was null or undefined when calling createPaymentTrigger().');
|
|
520
|
-
}
|
|
521
|
-
queryParameters = {};
|
|
522
|
-
headerParameters = {};
|
|
523
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
524
|
-
urlPath = "/api/v1/projects/{projectId}/payment-triggers";
|
|
525
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
526
|
-
return [4 /*yield*/, this.request({
|
|
527
|
-
path: urlPath,
|
|
528
|
-
method: 'POST',
|
|
529
|
-
headers: headerParameters,
|
|
530
|
-
query: queryParameters,
|
|
531
|
-
body: (0, index_1.UpsertPaymentTriggerRequestToJSON)(requestParameters['upsertPaymentTriggerRequest']),
|
|
532
|
-
}, initOverrides)];
|
|
695
|
+
case 0: return [4 /*yield*/, this.createPaymentTriggerRequestOpts(requestParameters)];
|
|
533
696
|
case 1:
|
|
697
|
+
requestOptions = _a.sent();
|
|
698
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
699
|
+
case 2:
|
|
534
700
|
response = _a.sent();
|
|
535
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
701
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaymentTriggerConfig_1.PaymentTriggerConfigFromJSON)(jsonValue); })];
|
|
536
702
|
}
|
|
537
703
|
});
|
|
538
704
|
});
|
|
@@ -553,35 +719,48 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
553
719
|
});
|
|
554
720
|
});
|
|
555
721
|
};
|
|
722
|
+
/**
|
|
723
|
+
* Creates request options for createProject without sending the request
|
|
724
|
+
*/
|
|
725
|
+
ProjectsServerApi.prototype.createProjectRequestOpts = function (requestParameters) {
|
|
726
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
727
|
+
var queryParameters, headerParameters, urlPath;
|
|
728
|
+
return __generator(this, function (_a) {
|
|
729
|
+
if (requestParameters['projectName'] == null) {
|
|
730
|
+
throw new runtime.RequiredError('projectName', 'Required parameter "projectName" was null or undefined when calling createProject().');
|
|
731
|
+
}
|
|
732
|
+
queryParameters = {};
|
|
733
|
+
if (requestParameters['projectName'] != null) {
|
|
734
|
+
queryParameters['projectName'] = requestParameters['projectName'];
|
|
735
|
+
}
|
|
736
|
+
if (requestParameters['sandboxMode'] != null) {
|
|
737
|
+
queryParameters['sandboxMode'] = requestParameters['sandboxMode'];
|
|
738
|
+
}
|
|
739
|
+
headerParameters = {};
|
|
740
|
+
urlPath = "/api/v1/projects";
|
|
741
|
+
return [2 /*return*/, {
|
|
742
|
+
path: urlPath,
|
|
743
|
+
method: 'POST',
|
|
744
|
+
headers: headerParameters,
|
|
745
|
+
query: queryParameters,
|
|
746
|
+
}];
|
|
747
|
+
});
|
|
748
|
+
});
|
|
749
|
+
};
|
|
556
750
|
/**
|
|
557
751
|
*/
|
|
558
752
|
ProjectsServerApi.prototype.createProjectRaw = function (requestParameters, initOverrides) {
|
|
559
753
|
return __awaiter(this, void 0, void 0, function () {
|
|
560
|
-
var
|
|
754
|
+
var requestOptions, response;
|
|
561
755
|
return __generator(this, function (_a) {
|
|
562
756
|
switch (_a.label) {
|
|
563
|
-
case 0:
|
|
564
|
-
if (requestParameters['projectName'] == null) {
|
|
565
|
-
throw new runtime.RequiredError('projectName', 'Required parameter "projectName" was null or undefined when calling createProject().');
|
|
566
|
-
}
|
|
567
|
-
queryParameters = {};
|
|
568
|
-
if (requestParameters['projectName'] != null) {
|
|
569
|
-
queryParameters['projectName'] = requestParameters['projectName'];
|
|
570
|
-
}
|
|
571
|
-
if (requestParameters['sandboxMode'] != null) {
|
|
572
|
-
queryParameters['sandboxMode'] = requestParameters['sandboxMode'];
|
|
573
|
-
}
|
|
574
|
-
headerParameters = {};
|
|
575
|
-
urlPath = "/api/v1/projects";
|
|
576
|
-
return [4 /*yield*/, this.request({
|
|
577
|
-
path: urlPath,
|
|
578
|
-
method: 'POST',
|
|
579
|
-
headers: headerParameters,
|
|
580
|
-
query: queryParameters,
|
|
581
|
-
}, initOverrides)];
|
|
757
|
+
case 0: return [4 /*yield*/, this.createProjectRequestOpts(requestParameters)];
|
|
582
758
|
case 1:
|
|
759
|
+
requestOptions = _a.sent();
|
|
760
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
761
|
+
case 2:
|
|
583
762
|
response = _a.sent();
|
|
584
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
763
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ProjectObject_1.ProjectObjectFromJSON)(jsonValue); })];
|
|
585
764
|
}
|
|
586
765
|
});
|
|
587
766
|
});
|
|
@@ -602,35 +781,48 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
602
781
|
});
|
|
603
782
|
});
|
|
604
783
|
};
|
|
784
|
+
/**
|
|
785
|
+
* Creates request options for createProjectApiKey without sending the request
|
|
786
|
+
*/
|
|
787
|
+
ProjectsServerApi.prototype.createProjectApiKeyRequestOpts = function (requestParameters) {
|
|
788
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
789
|
+
var queryParameters, headerParameters, urlPath;
|
|
790
|
+
return __generator(this, function (_a) {
|
|
791
|
+
if (requestParameters['projectId'] == null) {
|
|
792
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createProjectApiKey().');
|
|
793
|
+
}
|
|
794
|
+
if (requestParameters['createProjectApiKeyRequest'] == null) {
|
|
795
|
+
throw new runtime.RequiredError('createProjectApiKeyRequest', 'Required parameter "createProjectApiKeyRequest" was null or undefined when calling createProjectApiKey().');
|
|
796
|
+
}
|
|
797
|
+
queryParameters = {};
|
|
798
|
+
headerParameters = {};
|
|
799
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
800
|
+
urlPath = "/api/v1/projects/{projectId}/api-keys";
|
|
801
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
802
|
+
return [2 /*return*/, {
|
|
803
|
+
path: urlPath,
|
|
804
|
+
method: 'POST',
|
|
805
|
+
headers: headerParameters,
|
|
806
|
+
query: queryParameters,
|
|
807
|
+
body: (0, CreateProjectApiKeyRequest_1.CreateProjectApiKeyRequestToJSON)(requestParameters['createProjectApiKeyRequest']),
|
|
808
|
+
}];
|
|
809
|
+
});
|
|
810
|
+
});
|
|
811
|
+
};
|
|
605
812
|
/**
|
|
606
813
|
*/
|
|
607
814
|
ProjectsServerApi.prototype.createProjectApiKeyRaw = function (requestParameters, initOverrides) {
|
|
608
815
|
return __awaiter(this, void 0, void 0, function () {
|
|
609
|
-
var
|
|
816
|
+
var requestOptions, response;
|
|
610
817
|
return __generator(this, function (_a) {
|
|
611
818
|
switch (_a.label) {
|
|
612
|
-
case 0:
|
|
613
|
-
if (requestParameters['projectId'] == null) {
|
|
614
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createProjectApiKey().');
|
|
615
|
-
}
|
|
616
|
-
if (requestParameters['createProjectApiKeyRequest'] == null) {
|
|
617
|
-
throw new runtime.RequiredError('createProjectApiKeyRequest', 'Required parameter "createProjectApiKeyRequest" was null or undefined when calling createProjectApiKey().');
|
|
618
|
-
}
|
|
619
|
-
queryParameters = {};
|
|
620
|
-
headerParameters = {};
|
|
621
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
622
|
-
urlPath = "/api/v1/projects/{projectId}/api-keys";
|
|
623
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
624
|
-
return [4 /*yield*/, this.request({
|
|
625
|
-
path: urlPath,
|
|
626
|
-
method: 'POST',
|
|
627
|
-
headers: headerParameters,
|
|
628
|
-
query: queryParameters,
|
|
629
|
-
body: (0, index_1.CreateProjectApiKeyRequestToJSON)(requestParameters['createProjectApiKeyRequest']),
|
|
630
|
-
}, initOverrides)];
|
|
819
|
+
case 0: return [4 /*yield*/, this.createProjectApiKeyRequestOpts(requestParameters)];
|
|
631
820
|
case 1:
|
|
821
|
+
requestOptions = _a.sent();
|
|
822
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
823
|
+
case 2:
|
|
632
824
|
response = _a.sent();
|
|
633
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
825
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateProjectApiKeyResponse_1.CreateProjectApiKeyResponseFromJSON)(jsonValue); })];
|
|
634
826
|
}
|
|
635
827
|
});
|
|
636
828
|
});
|
|
@@ -651,35 +843,48 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
651
843
|
});
|
|
652
844
|
});
|
|
653
845
|
};
|
|
846
|
+
/**
|
|
847
|
+
* Creates request options for createService without sending the request
|
|
848
|
+
*/
|
|
849
|
+
ProjectsServerApi.prototype.createServiceRequestOpts = function (requestParameters) {
|
|
850
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
851
|
+
var queryParameters, headerParameters, urlPath;
|
|
852
|
+
return __generator(this, function (_a) {
|
|
853
|
+
if (requestParameters['projectId'] == null) {
|
|
854
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createService().');
|
|
855
|
+
}
|
|
856
|
+
if (requestParameters['createForteServiceRequest'] == null) {
|
|
857
|
+
throw new runtime.RequiredError('createForteServiceRequest', 'Required parameter "createForteServiceRequest" was null or undefined when calling createService().');
|
|
858
|
+
}
|
|
859
|
+
queryParameters = {};
|
|
860
|
+
headerParameters = {};
|
|
861
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
862
|
+
urlPath = "/api/v1/projects/{projectId}/services";
|
|
863
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
864
|
+
return [2 /*return*/, {
|
|
865
|
+
path: urlPath,
|
|
866
|
+
method: 'POST',
|
|
867
|
+
headers: headerParameters,
|
|
868
|
+
query: queryParameters,
|
|
869
|
+
body: (0, CreateForteServiceRequest_1.CreateForteServiceRequestToJSON)(requestParameters['createForteServiceRequest']),
|
|
870
|
+
}];
|
|
871
|
+
});
|
|
872
|
+
});
|
|
873
|
+
};
|
|
654
874
|
/**
|
|
655
875
|
*/
|
|
656
876
|
ProjectsServerApi.prototype.createServiceRaw = function (requestParameters, initOverrides) {
|
|
657
877
|
return __awaiter(this, void 0, void 0, function () {
|
|
658
|
-
var
|
|
878
|
+
var requestOptions, response;
|
|
659
879
|
return __generator(this, function (_a) {
|
|
660
880
|
switch (_a.label) {
|
|
661
|
-
case 0:
|
|
662
|
-
if (requestParameters['projectId'] == null) {
|
|
663
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createService().');
|
|
664
|
-
}
|
|
665
|
-
if (requestParameters['createForteServiceRequest'] == null) {
|
|
666
|
-
throw new runtime.RequiredError('createForteServiceRequest', 'Required parameter "createForteServiceRequest" was null or undefined when calling createService().');
|
|
667
|
-
}
|
|
668
|
-
queryParameters = {};
|
|
669
|
-
headerParameters = {};
|
|
670
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
671
|
-
urlPath = "/api/v1/projects/{projectId}/services";
|
|
672
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
673
|
-
return [4 /*yield*/, this.request({
|
|
674
|
-
path: urlPath,
|
|
675
|
-
method: 'POST',
|
|
676
|
-
headers: headerParameters,
|
|
677
|
-
query: queryParameters,
|
|
678
|
-
body: (0, index_1.CreateForteServiceRequestToJSON)(requestParameters['createForteServiceRequest']),
|
|
679
|
-
}, initOverrides)];
|
|
881
|
+
case 0: return [4 /*yield*/, this.createServiceRequestOpts(requestParameters)];
|
|
680
882
|
case 1:
|
|
883
|
+
requestOptions = _a.sent();
|
|
884
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
885
|
+
case 2:
|
|
681
886
|
response = _a.sent();
|
|
682
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
887
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ServiceObject_1.ServiceObjectFromJSON)(jsonValue); })];
|
|
683
888
|
}
|
|
684
889
|
});
|
|
685
890
|
});
|
|
@@ -700,37 +905,50 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
700
905
|
});
|
|
701
906
|
});
|
|
702
907
|
};
|
|
908
|
+
/**
|
|
909
|
+
* Creates request options for createServiceDeployment without sending the request
|
|
910
|
+
*/
|
|
911
|
+
ProjectsServerApi.prototype.createServiceDeploymentRequestOpts = function (requestParameters) {
|
|
912
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
913
|
+
var queryParameters, headerParameters, urlPath;
|
|
914
|
+
return __generator(this, function (_a) {
|
|
915
|
+
if (requestParameters['projectId'] == null) {
|
|
916
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createServiceDeployment().');
|
|
917
|
+
}
|
|
918
|
+
if (requestParameters['serviceId'] == null) {
|
|
919
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling createServiceDeployment().');
|
|
920
|
+
}
|
|
921
|
+
queryParameters = {};
|
|
922
|
+
if (requestParameters['commitSha'] != null) {
|
|
923
|
+
queryParameters['commitSha'] = requestParameters['commitSha'];
|
|
924
|
+
}
|
|
925
|
+
headerParameters = {};
|
|
926
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/deployments";
|
|
927
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
928
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
929
|
+
return [2 /*return*/, {
|
|
930
|
+
path: urlPath,
|
|
931
|
+
method: 'POST',
|
|
932
|
+
headers: headerParameters,
|
|
933
|
+
query: queryParameters,
|
|
934
|
+
}];
|
|
935
|
+
});
|
|
936
|
+
});
|
|
937
|
+
};
|
|
703
938
|
/**
|
|
704
939
|
*/
|
|
705
940
|
ProjectsServerApi.prototype.createServiceDeploymentRaw = function (requestParameters, initOverrides) {
|
|
706
941
|
return __awaiter(this, void 0, void 0, function () {
|
|
707
|
-
var
|
|
942
|
+
var requestOptions, response;
|
|
708
943
|
return __generator(this, function (_a) {
|
|
709
944
|
switch (_a.label) {
|
|
710
|
-
case 0:
|
|
711
|
-
if (requestParameters['projectId'] == null) {
|
|
712
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createServiceDeployment().');
|
|
713
|
-
}
|
|
714
|
-
if (requestParameters['serviceId'] == null) {
|
|
715
|
-
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling createServiceDeployment().');
|
|
716
|
-
}
|
|
717
|
-
queryParameters = {};
|
|
718
|
-
if (requestParameters['commitSha'] != null) {
|
|
719
|
-
queryParameters['commitSha'] = requestParameters['commitSha'];
|
|
720
|
-
}
|
|
721
|
-
headerParameters = {};
|
|
722
|
-
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/deployments";
|
|
723
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
724
|
-
urlPath = urlPath.replace("{".concat("serviceId", "}"), encodeURIComponent(String(requestParameters['serviceId'])));
|
|
725
|
-
return [4 /*yield*/, this.request({
|
|
726
|
-
path: urlPath,
|
|
727
|
-
method: 'POST',
|
|
728
|
-
headers: headerParameters,
|
|
729
|
-
query: queryParameters,
|
|
730
|
-
}, initOverrides)];
|
|
945
|
+
case 0: return [4 /*yield*/, this.createServiceDeploymentRequestOpts(requestParameters)];
|
|
731
946
|
case 1:
|
|
947
|
+
requestOptions = _a.sent();
|
|
948
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
949
|
+
case 2:
|
|
732
950
|
response = _a.sent();
|
|
733
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
951
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ServiceBuildRequestObject_1.ServiceBuildRequestObjectFromJSON)(jsonValue); })];
|
|
734
952
|
}
|
|
735
953
|
});
|
|
736
954
|
});
|
|
@@ -751,39 +969,52 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
751
969
|
});
|
|
752
970
|
});
|
|
753
971
|
};
|
|
972
|
+
/**
|
|
973
|
+
* Creates request options for createServiceRequestProxy without sending the request
|
|
974
|
+
*/
|
|
975
|
+
ProjectsServerApi.prototype.createServiceRequestProxyRequestOpts = function (requestParameters) {
|
|
976
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
977
|
+
var queryParameters, headerParameters, urlPath;
|
|
978
|
+
return __generator(this, function (_a) {
|
|
979
|
+
if (requestParameters['projectId'] == null) {
|
|
980
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createServiceRequestProxy().');
|
|
981
|
+
}
|
|
982
|
+
if (requestParameters['serviceId'] == null) {
|
|
983
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling createServiceRequestProxy().');
|
|
984
|
+
}
|
|
985
|
+
if (requestParameters['createServiceRequestProxyRequest'] == null) {
|
|
986
|
+
throw new runtime.RequiredError('createServiceRequestProxyRequest', 'Required parameter "createServiceRequestProxyRequest" was null or undefined when calling createServiceRequestProxy().');
|
|
987
|
+
}
|
|
988
|
+
queryParameters = {};
|
|
989
|
+
headerParameters = {};
|
|
990
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
991
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/request-proxy";
|
|
992
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
993
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
994
|
+
return [2 /*return*/, {
|
|
995
|
+
path: urlPath,
|
|
996
|
+
method: 'POST',
|
|
997
|
+
headers: headerParameters,
|
|
998
|
+
query: queryParameters,
|
|
999
|
+
body: (0, CreateServiceRequestProxyRequest_1.CreateServiceRequestProxyRequestToJSON)(requestParameters['createServiceRequestProxyRequest']),
|
|
1000
|
+
}];
|
|
1001
|
+
});
|
|
1002
|
+
});
|
|
1003
|
+
};
|
|
754
1004
|
/**
|
|
755
1005
|
*/
|
|
756
1006
|
ProjectsServerApi.prototype.createServiceRequestProxyRaw = function (requestParameters, initOverrides) {
|
|
757
1007
|
return __awaiter(this, void 0, void 0, function () {
|
|
758
|
-
var
|
|
1008
|
+
var requestOptions, response;
|
|
759
1009
|
return __generator(this, function (_a) {
|
|
760
1010
|
switch (_a.label) {
|
|
761
|
-
case 0:
|
|
762
|
-
if (requestParameters['projectId'] == null) {
|
|
763
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createServiceRequestProxy().');
|
|
764
|
-
}
|
|
765
|
-
if (requestParameters['serviceId'] == null) {
|
|
766
|
-
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling createServiceRequestProxy().');
|
|
767
|
-
}
|
|
768
|
-
if (requestParameters['createServiceRequestProxyRequest'] == null) {
|
|
769
|
-
throw new runtime.RequiredError('createServiceRequestProxyRequest', 'Required parameter "createServiceRequestProxyRequest" was null or undefined when calling createServiceRequestProxy().');
|
|
770
|
-
}
|
|
771
|
-
queryParameters = {};
|
|
772
|
-
headerParameters = {};
|
|
773
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
774
|
-
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/request-proxy";
|
|
775
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
776
|
-
urlPath = urlPath.replace("{".concat("serviceId", "}"), encodeURIComponent(String(requestParameters['serviceId'])));
|
|
777
|
-
return [4 /*yield*/, this.request({
|
|
778
|
-
path: urlPath,
|
|
779
|
-
method: 'POST',
|
|
780
|
-
headers: headerParameters,
|
|
781
|
-
query: queryParameters,
|
|
782
|
-
body: (0, index_1.CreateServiceRequestProxyRequestToJSON)(requestParameters['createServiceRequestProxyRequest']),
|
|
783
|
-
}, initOverrides)];
|
|
1011
|
+
case 0: return [4 /*yield*/, this.createServiceRequestProxyRequestOpts(requestParameters)];
|
|
784
1012
|
case 1:
|
|
1013
|
+
requestOptions = _a.sent();
|
|
1014
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1015
|
+
case 2:
|
|
785
1016
|
response = _a.sent();
|
|
786
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1017
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateServiceRequestProxyResponse_1.CreateServiceRequestProxyResponseFromJSON)(jsonValue); })];
|
|
787
1018
|
}
|
|
788
1019
|
});
|
|
789
1020
|
});
|
|
@@ -804,35 +1035,48 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
804
1035
|
});
|
|
805
1036
|
});
|
|
806
1037
|
};
|
|
1038
|
+
/**
|
|
1039
|
+
* Creates request options for createWebApp without sending the request
|
|
1040
|
+
*/
|
|
1041
|
+
ProjectsServerApi.prototype.createWebAppRequestOpts = function (requestParameters) {
|
|
1042
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1043
|
+
var queryParameters, headerParameters, urlPath;
|
|
1044
|
+
return __generator(this, function (_a) {
|
|
1045
|
+
if (requestParameters['projectId'] == null) {
|
|
1046
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createWebApp().');
|
|
1047
|
+
}
|
|
1048
|
+
if (requestParameters['createWebAppRequest'] == null) {
|
|
1049
|
+
throw new runtime.RequiredError('createWebAppRequest', 'Required parameter "createWebAppRequest" was null or undefined when calling createWebApp().');
|
|
1050
|
+
}
|
|
1051
|
+
queryParameters = {};
|
|
1052
|
+
headerParameters = {};
|
|
1053
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1054
|
+
urlPath = "/api/v1/projects/{projectId}/web-apps";
|
|
1055
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1056
|
+
return [2 /*return*/, {
|
|
1057
|
+
path: urlPath,
|
|
1058
|
+
method: 'POST',
|
|
1059
|
+
headers: headerParameters,
|
|
1060
|
+
query: queryParameters,
|
|
1061
|
+
body: (0, CreateWebAppRequest_1.CreateWebAppRequestToJSON)(requestParameters['createWebAppRequest']),
|
|
1062
|
+
}];
|
|
1063
|
+
});
|
|
1064
|
+
});
|
|
1065
|
+
};
|
|
807
1066
|
/**
|
|
808
1067
|
*/
|
|
809
1068
|
ProjectsServerApi.prototype.createWebAppRaw = function (requestParameters, initOverrides) {
|
|
810
1069
|
return __awaiter(this, void 0, void 0, function () {
|
|
811
|
-
var
|
|
1070
|
+
var requestOptions, response;
|
|
812
1071
|
return __generator(this, function (_a) {
|
|
813
1072
|
switch (_a.label) {
|
|
814
|
-
case 0:
|
|
815
|
-
if (requestParameters['projectId'] == null) {
|
|
816
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createWebApp().');
|
|
817
|
-
}
|
|
818
|
-
if (requestParameters['createWebAppRequest'] == null) {
|
|
819
|
-
throw new runtime.RequiredError('createWebAppRequest', 'Required parameter "createWebAppRequest" was null or undefined when calling createWebApp().');
|
|
820
|
-
}
|
|
821
|
-
queryParameters = {};
|
|
822
|
-
headerParameters = {};
|
|
823
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
824
|
-
urlPath = "/api/v1/projects/{projectId}/web-apps";
|
|
825
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
826
|
-
return [4 /*yield*/, this.request({
|
|
827
|
-
path: urlPath,
|
|
828
|
-
method: 'POST',
|
|
829
|
-
headers: headerParameters,
|
|
830
|
-
query: queryParameters,
|
|
831
|
-
body: (0, index_1.CreateWebAppRequestToJSON)(requestParameters['createWebAppRequest']),
|
|
832
|
-
}, initOverrides)];
|
|
1073
|
+
case 0: return [4 /*yield*/, this.createWebAppRequestOpts(requestParameters)];
|
|
833
1074
|
case 1:
|
|
1075
|
+
requestOptions = _a.sent();
|
|
1076
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1077
|
+
case 2:
|
|
834
1078
|
response = _a.sent();
|
|
835
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1079
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, WebAppObject_1.WebAppObjectFromJSON)(jsonValue); })];
|
|
836
1080
|
}
|
|
837
1081
|
});
|
|
838
1082
|
});
|
|
@@ -853,37 +1097,50 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
853
1097
|
});
|
|
854
1098
|
});
|
|
855
1099
|
};
|
|
1100
|
+
/**
|
|
1101
|
+
* Creates request options for createWebAppDeployment without sending the request
|
|
1102
|
+
*/
|
|
1103
|
+
ProjectsServerApi.prototype.createWebAppDeploymentRequestOpts = function (requestParameters) {
|
|
1104
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1105
|
+
var queryParameters, headerParameters, urlPath;
|
|
1106
|
+
return __generator(this, function (_a) {
|
|
1107
|
+
if (requestParameters['projectId'] == null) {
|
|
1108
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createWebAppDeployment().');
|
|
1109
|
+
}
|
|
1110
|
+
if (requestParameters['webAppId'] == null) {
|
|
1111
|
+
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling createWebAppDeployment().');
|
|
1112
|
+
}
|
|
1113
|
+
queryParameters = {};
|
|
1114
|
+
if (requestParameters['commitSha'] != null) {
|
|
1115
|
+
queryParameters['commitSha'] = requestParameters['commitSha'];
|
|
1116
|
+
}
|
|
1117
|
+
headerParameters = {};
|
|
1118
|
+
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/deployments";
|
|
1119
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1120
|
+
urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
|
|
1121
|
+
return [2 /*return*/, {
|
|
1122
|
+
path: urlPath,
|
|
1123
|
+
method: 'POST',
|
|
1124
|
+
headers: headerParameters,
|
|
1125
|
+
query: queryParameters,
|
|
1126
|
+
}];
|
|
1127
|
+
});
|
|
1128
|
+
});
|
|
1129
|
+
};
|
|
856
1130
|
/**
|
|
857
1131
|
*/
|
|
858
1132
|
ProjectsServerApi.prototype.createWebAppDeploymentRaw = function (requestParameters, initOverrides) {
|
|
859
1133
|
return __awaiter(this, void 0, void 0, function () {
|
|
860
|
-
var
|
|
1134
|
+
var requestOptions, response;
|
|
861
1135
|
return __generator(this, function (_a) {
|
|
862
1136
|
switch (_a.label) {
|
|
863
|
-
case 0:
|
|
864
|
-
if (requestParameters['projectId'] == null) {
|
|
865
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createWebAppDeployment().');
|
|
866
|
-
}
|
|
867
|
-
if (requestParameters['webAppId'] == null) {
|
|
868
|
-
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling createWebAppDeployment().');
|
|
869
|
-
}
|
|
870
|
-
queryParameters = {};
|
|
871
|
-
if (requestParameters['commitSha'] != null) {
|
|
872
|
-
queryParameters['commitSha'] = requestParameters['commitSha'];
|
|
873
|
-
}
|
|
874
|
-
headerParameters = {};
|
|
875
|
-
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/deployments";
|
|
876
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
877
|
-
urlPath = urlPath.replace("{".concat("webAppId", "}"), encodeURIComponent(String(requestParameters['webAppId'])));
|
|
878
|
-
return [4 /*yield*/, this.request({
|
|
879
|
-
path: urlPath,
|
|
880
|
-
method: 'POST',
|
|
881
|
-
headers: headerParameters,
|
|
882
|
-
query: queryParameters,
|
|
883
|
-
}, initOverrides)];
|
|
1137
|
+
case 0: return [4 /*yield*/, this.createWebAppDeploymentRequestOpts(requestParameters)];
|
|
884
1138
|
case 1:
|
|
1139
|
+
requestOptions = _a.sent();
|
|
1140
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1141
|
+
case 2:
|
|
885
1142
|
response = _a.sent();
|
|
886
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1143
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, WebAppBuildRequestObject_1.WebAppBuildRequestObjectFromJSON)(jsonValue); })];
|
|
887
1144
|
}
|
|
888
1145
|
});
|
|
889
1146
|
});
|
|
@@ -904,36 +1161,49 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
904
1161
|
});
|
|
905
1162
|
});
|
|
906
1163
|
};
|
|
1164
|
+
/**
|
|
1165
|
+
* Creates request options for deleteContent1 without sending the request
|
|
1166
|
+
*/
|
|
1167
|
+
ProjectsServerApi.prototype.deleteContent1RequestOpts = function (requestParameters) {
|
|
1168
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1169
|
+
var queryParameters, headerParameters, urlPath;
|
|
1170
|
+
return __generator(this, function (_a) {
|
|
1171
|
+
if (requestParameters['projectId'] == null) {
|
|
1172
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteContent1().');
|
|
1173
|
+
}
|
|
1174
|
+
if (requestParameters['userId'] == null) {
|
|
1175
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteContent1().');
|
|
1176
|
+
}
|
|
1177
|
+
if (requestParameters['contentId'] == null) {
|
|
1178
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling deleteContent1().');
|
|
1179
|
+
}
|
|
1180
|
+
queryParameters = {};
|
|
1181
|
+
headerParameters = {};
|
|
1182
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}";
|
|
1183
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1184
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
1185
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1186
|
+
return [2 /*return*/, {
|
|
1187
|
+
path: urlPath,
|
|
1188
|
+
method: 'DELETE',
|
|
1189
|
+
headers: headerParameters,
|
|
1190
|
+
query: queryParameters,
|
|
1191
|
+
}];
|
|
1192
|
+
});
|
|
1193
|
+
});
|
|
1194
|
+
};
|
|
907
1195
|
/**
|
|
908
1196
|
*/
|
|
909
1197
|
ProjectsServerApi.prototype.deleteContent1Raw = function (requestParameters, initOverrides) {
|
|
910
1198
|
return __awaiter(this, void 0, void 0, function () {
|
|
911
|
-
var
|
|
1199
|
+
var requestOptions, response;
|
|
912
1200
|
return __generator(this, function (_a) {
|
|
913
1201
|
switch (_a.label) {
|
|
914
|
-
case 0:
|
|
915
|
-
if (requestParameters['projectId'] == null) {
|
|
916
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteContent1().');
|
|
917
|
-
}
|
|
918
|
-
if (requestParameters['userId'] == null) {
|
|
919
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteContent1().');
|
|
920
|
-
}
|
|
921
|
-
if (requestParameters['contentId'] == null) {
|
|
922
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling deleteContent1().');
|
|
923
|
-
}
|
|
924
|
-
queryParameters = {};
|
|
925
|
-
headerParameters = {};
|
|
926
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}";
|
|
927
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
928
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
929
|
-
urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
|
|
930
|
-
return [4 /*yield*/, this.request({
|
|
931
|
-
path: urlPath,
|
|
932
|
-
method: 'DELETE',
|
|
933
|
-
headers: headerParameters,
|
|
934
|
-
query: queryParameters,
|
|
935
|
-
}, initOverrides)];
|
|
1202
|
+
case 0: return [4 /*yield*/, this.deleteContent1RequestOpts(requestParameters)];
|
|
936
1203
|
case 1:
|
|
1204
|
+
requestOptions = _a.sent();
|
|
1205
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1206
|
+
case 2:
|
|
937
1207
|
response = _a.sent();
|
|
938
1208
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
939
1209
|
}
|
|
@@ -954,32 +1224,45 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
954
1224
|
});
|
|
955
1225
|
});
|
|
956
1226
|
};
|
|
1227
|
+
/**
|
|
1228
|
+
* Creates request options for deletePaymentTrigger without sending the request
|
|
1229
|
+
*/
|
|
1230
|
+
ProjectsServerApi.prototype.deletePaymentTriggerRequestOpts = function (requestParameters) {
|
|
1231
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1232
|
+
var queryParameters, headerParameters, urlPath;
|
|
1233
|
+
return __generator(this, function (_a) {
|
|
1234
|
+
if (requestParameters['projectId'] == null) {
|
|
1235
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deletePaymentTrigger().');
|
|
1236
|
+
}
|
|
1237
|
+
if (requestParameters['triggerId'] == null) {
|
|
1238
|
+
throw new runtime.RequiredError('triggerId', 'Required parameter "triggerId" was null or undefined when calling deletePaymentTrigger().');
|
|
1239
|
+
}
|
|
1240
|
+
queryParameters = {};
|
|
1241
|
+
headerParameters = {};
|
|
1242
|
+
urlPath = "/api/v1/projects/{projectId}/payment-triggers/{triggerId}";
|
|
1243
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1244
|
+
urlPath = urlPath.replace('{triggerId}', encodeURIComponent(String(requestParameters['triggerId'])));
|
|
1245
|
+
return [2 /*return*/, {
|
|
1246
|
+
path: urlPath,
|
|
1247
|
+
method: 'DELETE',
|
|
1248
|
+
headers: headerParameters,
|
|
1249
|
+
query: queryParameters,
|
|
1250
|
+
}];
|
|
1251
|
+
});
|
|
1252
|
+
});
|
|
1253
|
+
};
|
|
957
1254
|
/**
|
|
958
1255
|
*/
|
|
959
1256
|
ProjectsServerApi.prototype.deletePaymentTriggerRaw = function (requestParameters, initOverrides) {
|
|
960
1257
|
return __awaiter(this, void 0, void 0, function () {
|
|
961
|
-
var
|
|
1258
|
+
var requestOptions, response;
|
|
962
1259
|
return __generator(this, function (_a) {
|
|
963
1260
|
switch (_a.label) {
|
|
964
|
-
case 0:
|
|
965
|
-
if (requestParameters['projectId'] == null) {
|
|
966
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deletePaymentTrigger().');
|
|
967
|
-
}
|
|
968
|
-
if (requestParameters['triggerId'] == null) {
|
|
969
|
-
throw new runtime.RequiredError('triggerId', 'Required parameter "triggerId" was null or undefined when calling deletePaymentTrigger().');
|
|
970
|
-
}
|
|
971
|
-
queryParameters = {};
|
|
972
|
-
headerParameters = {};
|
|
973
|
-
urlPath = "/api/v1/projects/{projectId}/payment-triggers/{triggerId}";
|
|
974
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
975
|
-
urlPath = urlPath.replace("{".concat("triggerId", "}"), encodeURIComponent(String(requestParameters['triggerId'])));
|
|
976
|
-
return [4 /*yield*/, this.request({
|
|
977
|
-
path: urlPath,
|
|
978
|
-
method: 'DELETE',
|
|
979
|
-
headers: headerParameters,
|
|
980
|
-
query: queryParameters,
|
|
981
|
-
}, initOverrides)];
|
|
1261
|
+
case 0: return [4 /*yield*/, this.deletePaymentTriggerRequestOpts(requestParameters)];
|
|
982
1262
|
case 1:
|
|
1263
|
+
requestOptions = _a.sent();
|
|
1264
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1265
|
+
case 2:
|
|
983
1266
|
response = _a.sent();
|
|
984
1267
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
985
1268
|
}
|
|
@@ -1000,28 +1283,41 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1000
1283
|
});
|
|
1001
1284
|
});
|
|
1002
1285
|
};
|
|
1286
|
+
/**
|
|
1287
|
+
* Creates request options for deleteProject without sending the request
|
|
1288
|
+
*/
|
|
1289
|
+
ProjectsServerApi.prototype.deleteProjectRequestOpts = function (requestParameters) {
|
|
1290
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1291
|
+
var queryParameters, headerParameters, urlPath;
|
|
1292
|
+
return __generator(this, function (_a) {
|
|
1293
|
+
if (requestParameters['projectId'] == null) {
|
|
1294
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteProject().');
|
|
1295
|
+
}
|
|
1296
|
+
queryParameters = {};
|
|
1297
|
+
headerParameters = {};
|
|
1298
|
+
urlPath = "/api/v1/projects/{projectId}";
|
|
1299
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1300
|
+
return [2 /*return*/, {
|
|
1301
|
+
path: urlPath,
|
|
1302
|
+
method: 'DELETE',
|
|
1303
|
+
headers: headerParameters,
|
|
1304
|
+
query: queryParameters,
|
|
1305
|
+
}];
|
|
1306
|
+
});
|
|
1307
|
+
});
|
|
1308
|
+
};
|
|
1003
1309
|
/**
|
|
1004
1310
|
*/
|
|
1005
1311
|
ProjectsServerApi.prototype.deleteProjectRaw = function (requestParameters, initOverrides) {
|
|
1006
1312
|
return __awaiter(this, void 0, void 0, function () {
|
|
1007
|
-
var
|
|
1313
|
+
var requestOptions, response;
|
|
1008
1314
|
return __generator(this, function (_a) {
|
|
1009
1315
|
switch (_a.label) {
|
|
1010
|
-
case 0:
|
|
1011
|
-
if (requestParameters['projectId'] == null) {
|
|
1012
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteProject().');
|
|
1013
|
-
}
|
|
1014
|
-
queryParameters = {};
|
|
1015
|
-
headerParameters = {};
|
|
1016
|
-
urlPath = "/api/v1/projects/{projectId}";
|
|
1017
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1018
|
-
return [4 /*yield*/, this.request({
|
|
1019
|
-
path: urlPath,
|
|
1020
|
-
method: 'DELETE',
|
|
1021
|
-
headers: headerParameters,
|
|
1022
|
-
query: queryParameters,
|
|
1023
|
-
}, initOverrides)];
|
|
1316
|
+
case 0: return [4 /*yield*/, this.deleteProjectRequestOpts(requestParameters)];
|
|
1024
1317
|
case 1:
|
|
1318
|
+
requestOptions = _a.sent();
|
|
1319
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1320
|
+
case 2:
|
|
1025
1321
|
response = _a.sent();
|
|
1026
1322
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1027
1323
|
}
|
|
@@ -1042,32 +1338,45 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1042
1338
|
});
|
|
1043
1339
|
});
|
|
1044
1340
|
};
|
|
1341
|
+
/**
|
|
1342
|
+
* Creates request options for deleteProjectApiKey without sending the request
|
|
1343
|
+
*/
|
|
1344
|
+
ProjectsServerApi.prototype.deleteProjectApiKeyRequestOpts = function (requestParameters) {
|
|
1345
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1346
|
+
var queryParameters, headerParameters, urlPath;
|
|
1347
|
+
return __generator(this, function (_a) {
|
|
1348
|
+
if (requestParameters['projectId'] == null) {
|
|
1349
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteProjectApiKey().');
|
|
1350
|
+
}
|
|
1351
|
+
if (requestParameters['apiKeyId'] == null) {
|
|
1352
|
+
throw new runtime.RequiredError('apiKeyId', 'Required parameter "apiKeyId" was null or undefined when calling deleteProjectApiKey().');
|
|
1353
|
+
}
|
|
1354
|
+
queryParameters = {};
|
|
1355
|
+
headerParameters = {};
|
|
1356
|
+
urlPath = "/api/v1/projects/{projectId}/api-keys/{apiKeyId}";
|
|
1357
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1358
|
+
urlPath = urlPath.replace('{apiKeyId}', encodeURIComponent(String(requestParameters['apiKeyId'])));
|
|
1359
|
+
return [2 /*return*/, {
|
|
1360
|
+
path: urlPath,
|
|
1361
|
+
method: 'DELETE',
|
|
1362
|
+
headers: headerParameters,
|
|
1363
|
+
query: queryParameters,
|
|
1364
|
+
}];
|
|
1365
|
+
});
|
|
1366
|
+
});
|
|
1367
|
+
};
|
|
1045
1368
|
/**
|
|
1046
1369
|
*/
|
|
1047
1370
|
ProjectsServerApi.prototype.deleteProjectApiKeyRaw = function (requestParameters, initOverrides) {
|
|
1048
1371
|
return __awaiter(this, void 0, void 0, function () {
|
|
1049
|
-
var
|
|
1372
|
+
var requestOptions, response;
|
|
1050
1373
|
return __generator(this, function (_a) {
|
|
1051
1374
|
switch (_a.label) {
|
|
1052
|
-
case 0:
|
|
1053
|
-
if (requestParameters['projectId'] == null) {
|
|
1054
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteProjectApiKey().');
|
|
1055
|
-
}
|
|
1056
|
-
if (requestParameters['apiKeyId'] == null) {
|
|
1057
|
-
throw new runtime.RequiredError('apiKeyId', 'Required parameter "apiKeyId" was null or undefined when calling deleteProjectApiKey().');
|
|
1058
|
-
}
|
|
1059
|
-
queryParameters = {};
|
|
1060
|
-
headerParameters = {};
|
|
1061
|
-
urlPath = "/api/v1/projects/{projectId}/api-keys/{apiKeyId}";
|
|
1062
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1063
|
-
urlPath = urlPath.replace("{".concat("apiKeyId", "}"), encodeURIComponent(String(requestParameters['apiKeyId'])));
|
|
1064
|
-
return [4 /*yield*/, this.request({
|
|
1065
|
-
path: urlPath,
|
|
1066
|
-
method: 'DELETE',
|
|
1067
|
-
headers: headerParameters,
|
|
1068
|
-
query: queryParameters,
|
|
1069
|
-
}, initOverrides)];
|
|
1375
|
+
case 0: return [4 /*yield*/, this.deleteProjectApiKeyRequestOpts(requestParameters)];
|
|
1070
1376
|
case 1:
|
|
1377
|
+
requestOptions = _a.sent();
|
|
1378
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1379
|
+
case 2:
|
|
1071
1380
|
response = _a.sent();
|
|
1072
1381
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1073
1382
|
}
|
|
@@ -1089,32 +1398,45 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1089
1398
|
});
|
|
1090
1399
|
};
|
|
1091
1400
|
/**
|
|
1401
|
+
* Creates request options for deleteService without sending the request
|
|
1092
1402
|
*/
|
|
1093
|
-
ProjectsServerApi.prototype.
|
|
1403
|
+
ProjectsServerApi.prototype.deleteServiceRequestOpts = function (requestParameters) {
|
|
1094
1404
|
return __awaiter(this, void 0, void 0, function () {
|
|
1095
|
-
var queryParameters, headerParameters, urlPath
|
|
1405
|
+
var queryParameters, headerParameters, urlPath;
|
|
1096
1406
|
return __generator(this, function (_a) {
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1407
|
+
if (requestParameters['projectId'] == null) {
|
|
1408
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteService().');
|
|
1409
|
+
}
|
|
1410
|
+
if (requestParameters['serviceId'] == null) {
|
|
1411
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling deleteService().');
|
|
1412
|
+
}
|
|
1413
|
+
queryParameters = {};
|
|
1414
|
+
headerParameters = {};
|
|
1415
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}";
|
|
1416
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1417
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
1418
|
+
return [2 /*return*/, {
|
|
1419
|
+
path: urlPath,
|
|
1420
|
+
method: 'DELETE',
|
|
1421
|
+
headers: headerParameters,
|
|
1422
|
+
query: queryParameters,
|
|
1423
|
+
}];
|
|
1424
|
+
});
|
|
1425
|
+
});
|
|
1426
|
+
};
|
|
1427
|
+
/**
|
|
1428
|
+
*/
|
|
1429
|
+
ProjectsServerApi.prototype.deleteServiceRaw = function (requestParameters, initOverrides) {
|
|
1430
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1431
|
+
var requestOptions, response;
|
|
1432
|
+
return __generator(this, function (_a) {
|
|
1433
|
+
switch (_a.label) {
|
|
1434
|
+
case 0: return [4 /*yield*/, this.deleteServiceRequestOpts(requestParameters)];
|
|
1435
|
+
case 1:
|
|
1436
|
+
requestOptions = _a.sent();
|
|
1437
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1438
|
+
case 2:
|
|
1439
|
+
response = _a.sent();
|
|
1118
1440
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1119
1441
|
}
|
|
1120
1442
|
});
|
|
@@ -1134,32 +1456,45 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1134
1456
|
});
|
|
1135
1457
|
});
|
|
1136
1458
|
};
|
|
1459
|
+
/**
|
|
1460
|
+
* Creates request options for deleteUser without sending the request
|
|
1461
|
+
*/
|
|
1462
|
+
ProjectsServerApi.prototype.deleteUserRequestOpts = function (requestParameters) {
|
|
1463
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1464
|
+
var queryParameters, headerParameters, urlPath;
|
|
1465
|
+
return __generator(this, function (_a) {
|
|
1466
|
+
if (requestParameters['userId'] == null) {
|
|
1467
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteUser().');
|
|
1468
|
+
}
|
|
1469
|
+
if (requestParameters['projectId'] == null) {
|
|
1470
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteUser().');
|
|
1471
|
+
}
|
|
1472
|
+
queryParameters = {};
|
|
1473
|
+
headerParameters = {};
|
|
1474
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}";
|
|
1475
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
1476
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1477
|
+
return [2 /*return*/, {
|
|
1478
|
+
path: urlPath,
|
|
1479
|
+
method: 'DELETE',
|
|
1480
|
+
headers: headerParameters,
|
|
1481
|
+
query: queryParameters,
|
|
1482
|
+
}];
|
|
1483
|
+
});
|
|
1484
|
+
});
|
|
1485
|
+
};
|
|
1137
1486
|
/**
|
|
1138
1487
|
*/
|
|
1139
1488
|
ProjectsServerApi.prototype.deleteUserRaw = function (requestParameters, initOverrides) {
|
|
1140
1489
|
return __awaiter(this, void 0, void 0, function () {
|
|
1141
|
-
var
|
|
1490
|
+
var requestOptions, response;
|
|
1142
1491
|
return __generator(this, function (_a) {
|
|
1143
1492
|
switch (_a.label) {
|
|
1144
|
-
case 0:
|
|
1145
|
-
if (requestParameters['userId'] == null) {
|
|
1146
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteUser().');
|
|
1147
|
-
}
|
|
1148
|
-
if (requestParameters['projectId'] == null) {
|
|
1149
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteUser().');
|
|
1150
|
-
}
|
|
1151
|
-
queryParameters = {};
|
|
1152
|
-
headerParameters = {};
|
|
1153
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}";
|
|
1154
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
1155
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1156
|
-
return [4 /*yield*/, this.request({
|
|
1157
|
-
path: urlPath,
|
|
1158
|
-
method: 'DELETE',
|
|
1159
|
-
headers: headerParameters,
|
|
1160
|
-
query: queryParameters,
|
|
1161
|
-
}, initOverrides)];
|
|
1493
|
+
case 0: return [4 /*yield*/, this.deleteUserRequestOpts(requestParameters)];
|
|
1162
1494
|
case 1:
|
|
1495
|
+
requestOptions = _a.sent();
|
|
1496
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1497
|
+
case 2:
|
|
1163
1498
|
response = _a.sent();
|
|
1164
1499
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1165
1500
|
}
|
|
@@ -1180,32 +1515,45 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1180
1515
|
});
|
|
1181
1516
|
});
|
|
1182
1517
|
};
|
|
1518
|
+
/**
|
|
1519
|
+
* Creates request options for deleteWebApp without sending the request
|
|
1520
|
+
*/
|
|
1521
|
+
ProjectsServerApi.prototype.deleteWebAppRequestOpts = function (requestParameters) {
|
|
1522
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1523
|
+
var queryParameters, headerParameters, urlPath;
|
|
1524
|
+
return __generator(this, function (_a) {
|
|
1525
|
+
if (requestParameters['projectId'] == null) {
|
|
1526
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteWebApp().');
|
|
1527
|
+
}
|
|
1528
|
+
if (requestParameters['webAppId'] == null) {
|
|
1529
|
+
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling deleteWebApp().');
|
|
1530
|
+
}
|
|
1531
|
+
queryParameters = {};
|
|
1532
|
+
headerParameters = {};
|
|
1533
|
+
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}";
|
|
1534
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1535
|
+
urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
|
|
1536
|
+
return [2 /*return*/, {
|
|
1537
|
+
path: urlPath,
|
|
1538
|
+
method: 'DELETE',
|
|
1539
|
+
headers: headerParameters,
|
|
1540
|
+
query: queryParameters,
|
|
1541
|
+
}];
|
|
1542
|
+
});
|
|
1543
|
+
});
|
|
1544
|
+
};
|
|
1183
1545
|
/**
|
|
1184
1546
|
*/
|
|
1185
1547
|
ProjectsServerApi.prototype.deleteWebAppRaw = function (requestParameters, initOverrides) {
|
|
1186
1548
|
return __awaiter(this, void 0, void 0, function () {
|
|
1187
|
-
var
|
|
1549
|
+
var requestOptions, response;
|
|
1188
1550
|
return __generator(this, function (_a) {
|
|
1189
1551
|
switch (_a.label) {
|
|
1190
|
-
case 0:
|
|
1191
|
-
if (requestParameters['projectId'] == null) {
|
|
1192
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteWebApp().');
|
|
1193
|
-
}
|
|
1194
|
-
if (requestParameters['webAppId'] == null) {
|
|
1195
|
-
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling deleteWebApp().');
|
|
1196
|
-
}
|
|
1197
|
-
queryParameters = {};
|
|
1198
|
-
headerParameters = {};
|
|
1199
|
-
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}";
|
|
1200
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1201
|
-
urlPath = urlPath.replace("{".concat("webAppId", "}"), encodeURIComponent(String(requestParameters['webAppId'])));
|
|
1202
|
-
return [4 /*yield*/, this.request({
|
|
1203
|
-
path: urlPath,
|
|
1204
|
-
method: 'DELETE',
|
|
1205
|
-
headers: headerParameters,
|
|
1206
|
-
query: queryParameters,
|
|
1207
|
-
}, initOverrides)];
|
|
1552
|
+
case 0: return [4 /*yield*/, this.deleteWebAppRequestOpts(requestParameters)];
|
|
1208
1553
|
case 1:
|
|
1554
|
+
requestOptions = _a.sent();
|
|
1555
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1556
|
+
case 2:
|
|
1209
1557
|
response = _a.sent();
|
|
1210
1558
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1211
1559
|
}
|
|
@@ -1226,38 +1574,51 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1226
1574
|
});
|
|
1227
1575
|
});
|
|
1228
1576
|
};
|
|
1577
|
+
/**
|
|
1578
|
+
* Creates request options for finalizeContent1 without sending the request
|
|
1579
|
+
*/
|
|
1580
|
+
ProjectsServerApi.prototype.finalizeContent1RequestOpts = function (requestParameters) {
|
|
1581
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1582
|
+
var queryParameters, headerParameters, urlPath;
|
|
1583
|
+
return __generator(this, function (_a) {
|
|
1584
|
+
if (requestParameters['projectId'] == null) {
|
|
1585
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling finalizeContent1().');
|
|
1586
|
+
}
|
|
1587
|
+
if (requestParameters['userId'] == null) {
|
|
1588
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling finalizeContent1().');
|
|
1589
|
+
}
|
|
1590
|
+
if (requestParameters['contentId'] == null) {
|
|
1591
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling finalizeContent1().');
|
|
1592
|
+
}
|
|
1593
|
+
queryParameters = {};
|
|
1594
|
+
headerParameters = {};
|
|
1595
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/finalize";
|
|
1596
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1597
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
1598
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1599
|
+
return [2 /*return*/, {
|
|
1600
|
+
path: urlPath,
|
|
1601
|
+
method: 'POST',
|
|
1602
|
+
headers: headerParameters,
|
|
1603
|
+
query: queryParameters,
|
|
1604
|
+
}];
|
|
1605
|
+
});
|
|
1606
|
+
});
|
|
1607
|
+
};
|
|
1229
1608
|
/**
|
|
1230
1609
|
*/
|
|
1231
1610
|
ProjectsServerApi.prototype.finalizeContent1Raw = function (requestParameters, initOverrides) {
|
|
1232
1611
|
return __awaiter(this, void 0, void 0, function () {
|
|
1233
|
-
var
|
|
1612
|
+
var requestOptions, response;
|
|
1234
1613
|
return __generator(this, function (_a) {
|
|
1235
1614
|
switch (_a.label) {
|
|
1236
|
-
case 0:
|
|
1237
|
-
if (requestParameters['projectId'] == null) {
|
|
1238
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling finalizeContent1().');
|
|
1239
|
-
}
|
|
1240
|
-
if (requestParameters['userId'] == null) {
|
|
1241
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling finalizeContent1().');
|
|
1242
|
-
}
|
|
1243
|
-
if (requestParameters['contentId'] == null) {
|
|
1244
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling finalizeContent1().');
|
|
1245
|
-
}
|
|
1246
|
-
queryParameters = {};
|
|
1247
|
-
headerParameters = {};
|
|
1248
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/finalize";
|
|
1249
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1250
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
1251
|
-
urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
|
|
1252
|
-
return [4 /*yield*/, this.request({
|
|
1253
|
-
path: urlPath,
|
|
1254
|
-
method: 'POST',
|
|
1255
|
-
headers: headerParameters,
|
|
1256
|
-
query: queryParameters,
|
|
1257
|
-
}, initOverrides)];
|
|
1615
|
+
case 0: return [4 /*yield*/, this.finalizeContent1RequestOpts(requestParameters)];
|
|
1258
1616
|
case 1:
|
|
1617
|
+
requestOptions = _a.sent();
|
|
1618
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1619
|
+
case 2:
|
|
1259
1620
|
response = _a.sent();
|
|
1260
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1621
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContentObject_1.ContentObjectFromJSON)(jsonValue); })];
|
|
1261
1622
|
}
|
|
1262
1623
|
});
|
|
1263
1624
|
});
|
|
@@ -1278,38 +1639,51 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1278
1639
|
});
|
|
1279
1640
|
});
|
|
1280
1641
|
};
|
|
1642
|
+
/**
|
|
1643
|
+
* Creates request options for getContent1 without sending the request
|
|
1644
|
+
*/
|
|
1645
|
+
ProjectsServerApi.prototype.getContent1RequestOpts = function (requestParameters) {
|
|
1646
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1647
|
+
var queryParameters, headerParameters, urlPath;
|
|
1648
|
+
return __generator(this, function (_a) {
|
|
1649
|
+
if (requestParameters['projectId'] == null) {
|
|
1650
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getContent1().');
|
|
1651
|
+
}
|
|
1652
|
+
if (requestParameters['userId'] == null) {
|
|
1653
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getContent1().');
|
|
1654
|
+
}
|
|
1655
|
+
if (requestParameters['contentId'] == null) {
|
|
1656
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContent1().');
|
|
1657
|
+
}
|
|
1658
|
+
queryParameters = {};
|
|
1659
|
+
headerParameters = {};
|
|
1660
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}";
|
|
1661
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1662
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
1663
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1664
|
+
return [2 /*return*/, {
|
|
1665
|
+
path: urlPath,
|
|
1666
|
+
method: 'GET',
|
|
1667
|
+
headers: headerParameters,
|
|
1668
|
+
query: queryParameters,
|
|
1669
|
+
}];
|
|
1670
|
+
});
|
|
1671
|
+
});
|
|
1672
|
+
};
|
|
1281
1673
|
/**
|
|
1282
1674
|
*/
|
|
1283
1675
|
ProjectsServerApi.prototype.getContent1Raw = function (requestParameters, initOverrides) {
|
|
1284
1676
|
return __awaiter(this, void 0, void 0, function () {
|
|
1285
|
-
var
|
|
1677
|
+
var requestOptions, response;
|
|
1286
1678
|
return __generator(this, function (_a) {
|
|
1287
1679
|
switch (_a.label) {
|
|
1288
|
-
case 0:
|
|
1289
|
-
if (requestParameters['projectId'] == null) {
|
|
1290
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getContent1().');
|
|
1291
|
-
}
|
|
1292
|
-
if (requestParameters['userId'] == null) {
|
|
1293
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getContent1().');
|
|
1294
|
-
}
|
|
1295
|
-
if (requestParameters['contentId'] == null) {
|
|
1296
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContent1().');
|
|
1297
|
-
}
|
|
1298
|
-
queryParameters = {};
|
|
1299
|
-
headerParameters = {};
|
|
1300
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}";
|
|
1301
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1302
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
1303
|
-
urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
|
|
1304
|
-
return [4 /*yield*/, this.request({
|
|
1305
|
-
path: urlPath,
|
|
1306
|
-
method: 'GET',
|
|
1307
|
-
headers: headerParameters,
|
|
1308
|
-
query: queryParameters,
|
|
1309
|
-
}, initOverrides)];
|
|
1680
|
+
case 0: return [4 /*yield*/, this.getContent1RequestOpts(requestParameters)];
|
|
1310
1681
|
case 1:
|
|
1682
|
+
requestOptions = _a.sent();
|
|
1683
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1684
|
+
case 2:
|
|
1311
1685
|
response = _a.sent();
|
|
1312
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1686
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContentObject_1.ContentObjectFromJSON)(jsonValue); })];
|
|
1313
1687
|
}
|
|
1314
1688
|
});
|
|
1315
1689
|
});
|
|
@@ -1330,38 +1704,51 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1330
1704
|
});
|
|
1331
1705
|
});
|
|
1332
1706
|
};
|
|
1707
|
+
/**
|
|
1708
|
+
* Creates request options for getContentDownloadLink1 without sending the request
|
|
1709
|
+
*/
|
|
1710
|
+
ProjectsServerApi.prototype.getContentDownloadLink1RequestOpts = function (requestParameters) {
|
|
1711
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1712
|
+
var queryParameters, headerParameters, urlPath;
|
|
1713
|
+
return __generator(this, function (_a) {
|
|
1714
|
+
if (requestParameters['projectId'] == null) {
|
|
1715
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getContentDownloadLink1().');
|
|
1716
|
+
}
|
|
1717
|
+
if (requestParameters['userId'] == null) {
|
|
1718
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getContentDownloadLink1().');
|
|
1719
|
+
}
|
|
1720
|
+
if (requestParameters['contentId'] == null) {
|
|
1721
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContentDownloadLink1().');
|
|
1722
|
+
}
|
|
1723
|
+
queryParameters = {};
|
|
1724
|
+
headerParameters = {};
|
|
1725
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/download-link";
|
|
1726
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1727
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
1728
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1729
|
+
return [2 /*return*/, {
|
|
1730
|
+
path: urlPath,
|
|
1731
|
+
method: 'GET',
|
|
1732
|
+
headers: headerParameters,
|
|
1733
|
+
query: queryParameters,
|
|
1734
|
+
}];
|
|
1735
|
+
});
|
|
1736
|
+
});
|
|
1737
|
+
};
|
|
1333
1738
|
/**
|
|
1334
1739
|
*/
|
|
1335
1740
|
ProjectsServerApi.prototype.getContentDownloadLink1Raw = function (requestParameters, initOverrides) {
|
|
1336
1741
|
return __awaiter(this, void 0, void 0, function () {
|
|
1337
|
-
var
|
|
1742
|
+
var requestOptions, response;
|
|
1338
1743
|
return __generator(this, function (_a) {
|
|
1339
1744
|
switch (_a.label) {
|
|
1340
|
-
case 0:
|
|
1341
|
-
if (requestParameters['projectId'] == null) {
|
|
1342
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getContentDownloadLink1().');
|
|
1343
|
-
}
|
|
1344
|
-
if (requestParameters['userId'] == null) {
|
|
1345
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getContentDownloadLink1().');
|
|
1346
|
-
}
|
|
1347
|
-
if (requestParameters['contentId'] == null) {
|
|
1348
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContentDownloadLink1().');
|
|
1349
|
-
}
|
|
1350
|
-
queryParameters = {};
|
|
1351
|
-
headerParameters = {};
|
|
1352
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/download-link";
|
|
1353
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1354
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
1355
|
-
urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
|
|
1356
|
-
return [4 /*yield*/, this.request({
|
|
1357
|
-
path: urlPath,
|
|
1358
|
-
method: 'GET',
|
|
1359
|
-
headers: headerParameters,
|
|
1360
|
-
query: queryParameters,
|
|
1361
|
-
}, initOverrides)];
|
|
1745
|
+
case 0: return [4 /*yield*/, this.getContentDownloadLink1RequestOpts(requestParameters)];
|
|
1362
1746
|
case 1:
|
|
1747
|
+
requestOptions = _a.sent();
|
|
1748
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1749
|
+
case 2:
|
|
1363
1750
|
response = _a.sent();
|
|
1364
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1751
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetContentDownloadLinkResponse_1.GetContentDownloadLinkResponseFromJSON)(jsonValue); })];
|
|
1365
1752
|
}
|
|
1366
1753
|
});
|
|
1367
1754
|
});
|
|
@@ -1382,30 +1769,43 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1382
1769
|
});
|
|
1383
1770
|
});
|
|
1384
1771
|
};
|
|
1772
|
+
/**
|
|
1773
|
+
* Creates request options for getNotificationTemplates without sending the request
|
|
1774
|
+
*/
|
|
1775
|
+
ProjectsServerApi.prototype.getNotificationTemplatesRequestOpts = function (requestParameters) {
|
|
1776
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1777
|
+
var queryParameters, headerParameters, urlPath;
|
|
1778
|
+
return __generator(this, function (_a) {
|
|
1779
|
+
if (requestParameters['projectId'] == null) {
|
|
1780
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getNotificationTemplates().');
|
|
1781
|
+
}
|
|
1782
|
+
queryParameters = {};
|
|
1783
|
+
headerParameters = {};
|
|
1784
|
+
urlPath = "/api/v1/projects/{projectId}/notification-templates";
|
|
1785
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1786
|
+
return [2 /*return*/, {
|
|
1787
|
+
path: urlPath,
|
|
1788
|
+
method: 'GET',
|
|
1789
|
+
headers: headerParameters,
|
|
1790
|
+
query: queryParameters,
|
|
1791
|
+
}];
|
|
1792
|
+
});
|
|
1793
|
+
});
|
|
1794
|
+
};
|
|
1385
1795
|
/**
|
|
1386
1796
|
*/
|
|
1387
1797
|
ProjectsServerApi.prototype.getNotificationTemplatesRaw = function (requestParameters, initOverrides) {
|
|
1388
1798
|
return __awaiter(this, void 0, void 0, function () {
|
|
1389
|
-
var
|
|
1799
|
+
var requestOptions, response;
|
|
1390
1800
|
return __generator(this, function (_a) {
|
|
1391
1801
|
switch (_a.label) {
|
|
1392
|
-
case 0:
|
|
1393
|
-
if (requestParameters['projectId'] == null) {
|
|
1394
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getNotificationTemplates().');
|
|
1395
|
-
}
|
|
1396
|
-
queryParameters = {};
|
|
1397
|
-
headerParameters = {};
|
|
1398
|
-
urlPath = "/api/v1/projects/{projectId}/notification-templates";
|
|
1399
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1400
|
-
return [4 /*yield*/, this.request({
|
|
1401
|
-
path: urlPath,
|
|
1402
|
-
method: 'GET',
|
|
1403
|
-
headers: headerParameters,
|
|
1404
|
-
query: queryParameters,
|
|
1405
|
-
}, initOverrides)];
|
|
1802
|
+
case 0: return [4 /*yield*/, this.getNotificationTemplatesRequestOpts(requestParameters)];
|
|
1406
1803
|
case 1:
|
|
1804
|
+
requestOptions = _a.sent();
|
|
1805
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1806
|
+
case 2:
|
|
1407
1807
|
response = _a.sent();
|
|
1408
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1808
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, NotificationTemplatesResponse_1.NotificationTemplatesResponseFromJSON)(jsonValue); })];
|
|
1409
1809
|
}
|
|
1410
1810
|
});
|
|
1411
1811
|
});
|
|
@@ -1426,30 +1826,43 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1426
1826
|
});
|
|
1427
1827
|
});
|
|
1428
1828
|
};
|
|
1829
|
+
/**
|
|
1830
|
+
* Creates request options for getProject without sending the request
|
|
1831
|
+
*/
|
|
1832
|
+
ProjectsServerApi.prototype.getProjectRequestOpts = function (requestParameters) {
|
|
1833
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1834
|
+
var queryParameters, headerParameters, urlPath;
|
|
1835
|
+
return __generator(this, function (_a) {
|
|
1836
|
+
if (requestParameters['projectId'] == null) {
|
|
1837
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getProject().');
|
|
1838
|
+
}
|
|
1839
|
+
queryParameters = {};
|
|
1840
|
+
headerParameters = {};
|
|
1841
|
+
urlPath = "/api/v1/projects/{projectId}";
|
|
1842
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1843
|
+
return [2 /*return*/, {
|
|
1844
|
+
path: urlPath,
|
|
1845
|
+
method: 'GET',
|
|
1846
|
+
headers: headerParameters,
|
|
1847
|
+
query: queryParameters,
|
|
1848
|
+
}];
|
|
1849
|
+
});
|
|
1850
|
+
});
|
|
1851
|
+
};
|
|
1429
1852
|
/**
|
|
1430
1853
|
*/
|
|
1431
1854
|
ProjectsServerApi.prototype.getProjectRaw = function (requestParameters, initOverrides) {
|
|
1432
1855
|
return __awaiter(this, void 0, void 0, function () {
|
|
1433
|
-
var
|
|
1856
|
+
var requestOptions, response;
|
|
1434
1857
|
return __generator(this, function (_a) {
|
|
1435
1858
|
switch (_a.label) {
|
|
1436
|
-
case 0:
|
|
1437
|
-
if (requestParameters['projectId'] == null) {
|
|
1438
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getProject().');
|
|
1439
|
-
}
|
|
1440
|
-
queryParameters = {};
|
|
1441
|
-
headerParameters = {};
|
|
1442
|
-
urlPath = "/api/v1/projects/{projectId}";
|
|
1443
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1444
|
-
return [4 /*yield*/, this.request({
|
|
1445
|
-
path: urlPath,
|
|
1446
|
-
method: 'GET',
|
|
1447
|
-
headers: headerParameters,
|
|
1448
|
-
query: queryParameters,
|
|
1449
|
-
}, initOverrides)];
|
|
1859
|
+
case 0: return [4 /*yield*/, this.getProjectRequestOpts(requestParameters)];
|
|
1450
1860
|
case 1:
|
|
1861
|
+
requestOptions = _a.sent();
|
|
1862
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1863
|
+
case 2:
|
|
1451
1864
|
response = _a.sent();
|
|
1452
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1865
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ProjectObject_1.ProjectObjectFromJSON)(jsonValue); })];
|
|
1453
1866
|
}
|
|
1454
1867
|
});
|
|
1455
1868
|
});
|
|
@@ -1470,38 +1883,51 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1470
1883
|
});
|
|
1471
1884
|
});
|
|
1472
1885
|
};
|
|
1886
|
+
/**
|
|
1887
|
+
* Creates request options for getRequestInvocationLog without sending the request
|
|
1888
|
+
*/
|
|
1889
|
+
ProjectsServerApi.prototype.getRequestInvocationLogRequestOpts = function (requestParameters) {
|
|
1890
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1891
|
+
var queryParameters, headerParameters, urlPath;
|
|
1892
|
+
return __generator(this, function (_a) {
|
|
1893
|
+
if (requestParameters['projectId'] == null) {
|
|
1894
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getRequestInvocationLog().');
|
|
1895
|
+
}
|
|
1896
|
+
if (requestParameters['serviceId'] == null) {
|
|
1897
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling getRequestInvocationLog().');
|
|
1898
|
+
}
|
|
1899
|
+
if (requestParameters['requestId'] == null) {
|
|
1900
|
+
throw new runtime.RequiredError('requestId', 'Required parameter "requestId" was null or undefined when calling getRequestInvocationLog().');
|
|
1901
|
+
}
|
|
1902
|
+
queryParameters = {};
|
|
1903
|
+
headerParameters = {};
|
|
1904
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/requests/{requestId}";
|
|
1905
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1906
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
1907
|
+
urlPath = urlPath.replace('{requestId}', encodeURIComponent(String(requestParameters['requestId'])));
|
|
1908
|
+
return [2 /*return*/, {
|
|
1909
|
+
path: urlPath,
|
|
1910
|
+
method: 'GET',
|
|
1911
|
+
headers: headerParameters,
|
|
1912
|
+
query: queryParameters,
|
|
1913
|
+
}];
|
|
1914
|
+
});
|
|
1915
|
+
});
|
|
1916
|
+
};
|
|
1473
1917
|
/**
|
|
1474
1918
|
*/
|
|
1475
1919
|
ProjectsServerApi.prototype.getRequestInvocationLogRaw = function (requestParameters, initOverrides) {
|
|
1476
1920
|
return __awaiter(this, void 0, void 0, function () {
|
|
1477
|
-
var
|
|
1921
|
+
var requestOptions, response;
|
|
1478
1922
|
return __generator(this, function (_a) {
|
|
1479
1923
|
switch (_a.label) {
|
|
1480
|
-
case 0:
|
|
1481
|
-
if (requestParameters['projectId'] == null) {
|
|
1482
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getRequestInvocationLog().');
|
|
1483
|
-
}
|
|
1484
|
-
if (requestParameters['serviceId'] == null) {
|
|
1485
|
-
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling getRequestInvocationLog().');
|
|
1486
|
-
}
|
|
1487
|
-
if (requestParameters['requestId'] == null) {
|
|
1488
|
-
throw new runtime.RequiredError('requestId', 'Required parameter "requestId" was null or undefined when calling getRequestInvocationLog().');
|
|
1489
|
-
}
|
|
1490
|
-
queryParameters = {};
|
|
1491
|
-
headerParameters = {};
|
|
1492
|
-
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/requests/{requestId}";
|
|
1493
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1494
|
-
urlPath = urlPath.replace("{".concat("serviceId", "}"), encodeURIComponent(String(requestParameters['serviceId'])));
|
|
1495
|
-
urlPath = urlPath.replace("{".concat("requestId", "}"), encodeURIComponent(String(requestParameters['requestId'])));
|
|
1496
|
-
return [4 /*yield*/, this.request({
|
|
1497
|
-
path: urlPath,
|
|
1498
|
-
method: 'GET',
|
|
1499
|
-
headers: headerParameters,
|
|
1500
|
-
query: queryParameters,
|
|
1501
|
-
}, initOverrides)];
|
|
1924
|
+
case 0: return [4 /*yield*/, this.getRequestInvocationLogRequestOpts(requestParameters)];
|
|
1502
1925
|
case 1:
|
|
1926
|
+
requestOptions = _a.sent();
|
|
1927
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1928
|
+
case 2:
|
|
1503
1929
|
response = _a.sent();
|
|
1504
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1930
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, RequestLogObject_1.RequestLogObjectFromJSON)(jsonValue); })];
|
|
1505
1931
|
}
|
|
1506
1932
|
});
|
|
1507
1933
|
});
|
|
@@ -1522,34 +1948,47 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1522
1948
|
});
|
|
1523
1949
|
});
|
|
1524
1950
|
};
|
|
1951
|
+
/**
|
|
1952
|
+
* Creates request options for getService without sending the request
|
|
1953
|
+
*/
|
|
1954
|
+
ProjectsServerApi.prototype.getServiceRequestOpts = function (requestParameters) {
|
|
1955
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1956
|
+
var queryParameters, headerParameters, urlPath;
|
|
1957
|
+
return __generator(this, function (_a) {
|
|
1958
|
+
if (requestParameters['projectId'] == null) {
|
|
1959
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getService().');
|
|
1960
|
+
}
|
|
1961
|
+
if (requestParameters['serviceId'] == null) {
|
|
1962
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling getService().');
|
|
1963
|
+
}
|
|
1964
|
+
queryParameters = {};
|
|
1965
|
+
headerParameters = {};
|
|
1966
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}";
|
|
1967
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1968
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
1969
|
+
return [2 /*return*/, {
|
|
1970
|
+
path: urlPath,
|
|
1971
|
+
method: 'GET',
|
|
1972
|
+
headers: headerParameters,
|
|
1973
|
+
query: queryParameters,
|
|
1974
|
+
}];
|
|
1975
|
+
});
|
|
1976
|
+
});
|
|
1977
|
+
};
|
|
1525
1978
|
/**
|
|
1526
1979
|
*/
|
|
1527
1980
|
ProjectsServerApi.prototype.getServiceRaw = function (requestParameters, initOverrides) {
|
|
1528
1981
|
return __awaiter(this, void 0, void 0, function () {
|
|
1529
|
-
var
|
|
1982
|
+
var requestOptions, response;
|
|
1530
1983
|
return __generator(this, function (_a) {
|
|
1531
1984
|
switch (_a.label) {
|
|
1532
|
-
case 0:
|
|
1533
|
-
if (requestParameters['projectId'] == null) {
|
|
1534
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getService().');
|
|
1535
|
-
}
|
|
1536
|
-
if (requestParameters['serviceId'] == null) {
|
|
1537
|
-
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling getService().');
|
|
1538
|
-
}
|
|
1539
|
-
queryParameters = {};
|
|
1540
|
-
headerParameters = {};
|
|
1541
|
-
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}";
|
|
1542
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1543
|
-
urlPath = urlPath.replace("{".concat("serviceId", "}"), encodeURIComponent(String(requestParameters['serviceId'])));
|
|
1544
|
-
return [4 /*yield*/, this.request({
|
|
1545
|
-
path: urlPath,
|
|
1546
|
-
method: 'GET',
|
|
1547
|
-
headers: headerParameters,
|
|
1548
|
-
query: queryParameters,
|
|
1549
|
-
}, initOverrides)];
|
|
1985
|
+
case 0: return [4 /*yield*/, this.getServiceRequestOpts(requestParameters)];
|
|
1550
1986
|
case 1:
|
|
1987
|
+
requestOptions = _a.sent();
|
|
1988
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1989
|
+
case 2:
|
|
1551
1990
|
response = _a.sent();
|
|
1552
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1991
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ServiceObject_1.ServiceObjectFromJSON)(jsonValue); })];
|
|
1553
1992
|
}
|
|
1554
1993
|
});
|
|
1555
1994
|
});
|
|
@@ -1570,38 +2009,51 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1570
2009
|
});
|
|
1571
2010
|
});
|
|
1572
2011
|
};
|
|
2012
|
+
/**
|
|
2013
|
+
* Creates request options for getServiceDeployment without sending the request
|
|
2014
|
+
*/
|
|
2015
|
+
ProjectsServerApi.prototype.getServiceDeploymentRequestOpts = function (requestParameters) {
|
|
2016
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2017
|
+
var queryParameters, headerParameters, urlPath;
|
|
2018
|
+
return __generator(this, function (_a) {
|
|
2019
|
+
if (requestParameters['projectId'] == null) {
|
|
2020
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getServiceDeployment().');
|
|
2021
|
+
}
|
|
2022
|
+
if (requestParameters['serviceId'] == null) {
|
|
2023
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling getServiceDeployment().');
|
|
2024
|
+
}
|
|
2025
|
+
if (requestParameters['deploymentId'] == null) {
|
|
2026
|
+
throw new runtime.RequiredError('deploymentId', 'Required parameter "deploymentId" was null or undefined when calling getServiceDeployment().');
|
|
2027
|
+
}
|
|
2028
|
+
queryParameters = {};
|
|
2029
|
+
headerParameters = {};
|
|
2030
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/deployments/{deploymentId}";
|
|
2031
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2032
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
2033
|
+
urlPath = urlPath.replace('{deploymentId}', encodeURIComponent(String(requestParameters['deploymentId'])));
|
|
2034
|
+
return [2 /*return*/, {
|
|
2035
|
+
path: urlPath,
|
|
2036
|
+
method: 'GET',
|
|
2037
|
+
headers: headerParameters,
|
|
2038
|
+
query: queryParameters,
|
|
2039
|
+
}];
|
|
2040
|
+
});
|
|
2041
|
+
});
|
|
2042
|
+
};
|
|
1573
2043
|
/**
|
|
1574
2044
|
*/
|
|
1575
2045
|
ProjectsServerApi.prototype.getServiceDeploymentRaw = function (requestParameters, initOverrides) {
|
|
1576
2046
|
return __awaiter(this, void 0, void 0, function () {
|
|
1577
|
-
var
|
|
2047
|
+
var requestOptions, response;
|
|
1578
2048
|
return __generator(this, function (_a) {
|
|
1579
2049
|
switch (_a.label) {
|
|
1580
|
-
case 0:
|
|
1581
|
-
if (requestParameters['projectId'] == null) {
|
|
1582
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getServiceDeployment().');
|
|
1583
|
-
}
|
|
1584
|
-
if (requestParameters['serviceId'] == null) {
|
|
1585
|
-
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling getServiceDeployment().');
|
|
1586
|
-
}
|
|
1587
|
-
if (requestParameters['deploymentId'] == null) {
|
|
1588
|
-
throw new runtime.RequiredError('deploymentId', 'Required parameter "deploymentId" was null or undefined when calling getServiceDeployment().');
|
|
1589
|
-
}
|
|
1590
|
-
queryParameters = {};
|
|
1591
|
-
headerParameters = {};
|
|
1592
|
-
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/deployments/{deploymentId}";
|
|
1593
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1594
|
-
urlPath = urlPath.replace("{".concat("serviceId", "}"), encodeURIComponent(String(requestParameters['serviceId'])));
|
|
1595
|
-
urlPath = urlPath.replace("{".concat("deploymentId", "}"), encodeURIComponent(String(requestParameters['deploymentId'])));
|
|
1596
|
-
return [4 /*yield*/, this.request({
|
|
1597
|
-
path: urlPath,
|
|
1598
|
-
method: 'GET',
|
|
1599
|
-
headers: headerParameters,
|
|
1600
|
-
query: queryParameters,
|
|
1601
|
-
}, initOverrides)];
|
|
2050
|
+
case 0: return [4 /*yield*/, this.getServiceDeploymentRequestOpts(requestParameters)];
|
|
1602
2051
|
case 1:
|
|
2052
|
+
requestOptions = _a.sent();
|
|
2053
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2054
|
+
case 2:
|
|
1603
2055
|
response = _a.sent();
|
|
1604
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
2056
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ServiceBuildRequestObject_1.ServiceBuildRequestObjectFromJSON)(jsonValue); })];
|
|
1605
2057
|
}
|
|
1606
2058
|
});
|
|
1607
2059
|
});
|
|
@@ -1622,43 +2074,56 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1622
2074
|
});
|
|
1623
2075
|
});
|
|
1624
2076
|
};
|
|
2077
|
+
/**
|
|
2078
|
+
* Creates request options for getServiceMetrics without sending the request
|
|
2079
|
+
*/
|
|
2080
|
+
ProjectsServerApi.prototype.getServiceMetricsRequestOpts = function (requestParameters) {
|
|
2081
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2082
|
+
var queryParameters, headerParameters, urlPath;
|
|
2083
|
+
return __generator(this, function (_a) {
|
|
2084
|
+
if (requestParameters['projectId'] == null) {
|
|
2085
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getServiceMetrics().');
|
|
2086
|
+
}
|
|
2087
|
+
if (requestParameters['serviceId'] == null) {
|
|
2088
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling getServiceMetrics().');
|
|
2089
|
+
}
|
|
2090
|
+
queryParameters = {};
|
|
2091
|
+
if (requestParameters['minTime'] != null) {
|
|
2092
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2093
|
+
}
|
|
2094
|
+
if (requestParameters['maxTime'] != null) {
|
|
2095
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2096
|
+
}
|
|
2097
|
+
if (requestParameters['granularity'] != null) {
|
|
2098
|
+
queryParameters['granularity'] = requestParameters['granularity'];
|
|
2099
|
+
}
|
|
2100
|
+
headerParameters = {};
|
|
2101
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/metrics";
|
|
2102
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2103
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
2104
|
+
return [2 /*return*/, {
|
|
2105
|
+
path: urlPath,
|
|
2106
|
+
method: 'GET',
|
|
2107
|
+
headers: headerParameters,
|
|
2108
|
+
query: queryParameters,
|
|
2109
|
+
}];
|
|
2110
|
+
});
|
|
2111
|
+
});
|
|
2112
|
+
};
|
|
1625
2113
|
/**
|
|
1626
2114
|
*/
|
|
1627
2115
|
ProjectsServerApi.prototype.getServiceMetricsRaw = function (requestParameters, initOverrides) {
|
|
1628
2116
|
return __awaiter(this, void 0, void 0, function () {
|
|
1629
|
-
var
|
|
2117
|
+
var requestOptions, response;
|
|
1630
2118
|
return __generator(this, function (_a) {
|
|
1631
2119
|
switch (_a.label) {
|
|
1632
|
-
case 0:
|
|
1633
|
-
if (requestParameters['projectId'] == null) {
|
|
1634
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getServiceMetrics().');
|
|
1635
|
-
}
|
|
1636
|
-
if (requestParameters['serviceId'] == null) {
|
|
1637
|
-
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling getServiceMetrics().');
|
|
1638
|
-
}
|
|
1639
|
-
queryParameters = {};
|
|
1640
|
-
if (requestParameters['minTime'] != null) {
|
|
1641
|
-
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
1642
|
-
}
|
|
1643
|
-
if (requestParameters['maxTime'] != null) {
|
|
1644
|
-
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
1645
|
-
}
|
|
1646
|
-
if (requestParameters['granularity'] != null) {
|
|
1647
|
-
queryParameters['granularity'] = requestParameters['granularity'];
|
|
1648
|
-
}
|
|
1649
|
-
headerParameters = {};
|
|
1650
|
-
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/metrics";
|
|
1651
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1652
|
-
urlPath = urlPath.replace("{".concat("serviceId", "}"), encodeURIComponent(String(requestParameters['serviceId'])));
|
|
1653
|
-
return [4 /*yield*/, this.request({
|
|
1654
|
-
path: urlPath,
|
|
1655
|
-
method: 'GET',
|
|
1656
|
-
headers: headerParameters,
|
|
1657
|
-
query: queryParameters,
|
|
1658
|
-
}, initOverrides)];
|
|
2120
|
+
case 0: return [4 /*yield*/, this.getServiceMetricsRequestOpts(requestParameters)];
|
|
1659
2121
|
case 1:
|
|
2122
|
+
requestOptions = _a.sent();
|
|
2123
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2124
|
+
case 2:
|
|
1660
2125
|
response = _a.sent();
|
|
1661
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
2126
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ServiceMetricsResponse_1.ServiceMetricsResponseFromJSON)(jsonValue); })];
|
|
1662
2127
|
}
|
|
1663
2128
|
});
|
|
1664
2129
|
});
|
|
@@ -1679,34 +2144,47 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1679
2144
|
});
|
|
1680
2145
|
});
|
|
1681
2146
|
};
|
|
2147
|
+
/**
|
|
2148
|
+
* Creates request options for getUser without sending the request
|
|
2149
|
+
*/
|
|
2150
|
+
ProjectsServerApi.prototype.getUserRequestOpts = function (requestParameters) {
|
|
2151
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2152
|
+
var queryParameters, headerParameters, urlPath;
|
|
2153
|
+
return __generator(this, function (_a) {
|
|
2154
|
+
if (requestParameters['userId'] == null) {
|
|
2155
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getUser().');
|
|
2156
|
+
}
|
|
2157
|
+
if (requestParameters['projectId'] == null) {
|
|
2158
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getUser().');
|
|
2159
|
+
}
|
|
2160
|
+
queryParameters = {};
|
|
2161
|
+
headerParameters = {};
|
|
2162
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}";
|
|
2163
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
2164
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2165
|
+
return [2 /*return*/, {
|
|
2166
|
+
path: urlPath,
|
|
2167
|
+
method: 'GET',
|
|
2168
|
+
headers: headerParameters,
|
|
2169
|
+
query: queryParameters,
|
|
2170
|
+
}];
|
|
2171
|
+
});
|
|
2172
|
+
});
|
|
2173
|
+
};
|
|
1682
2174
|
/**
|
|
1683
2175
|
*/
|
|
1684
2176
|
ProjectsServerApi.prototype.getUserRaw = function (requestParameters, initOverrides) {
|
|
1685
2177
|
return __awaiter(this, void 0, void 0, function () {
|
|
1686
|
-
var
|
|
2178
|
+
var requestOptions, response;
|
|
1687
2179
|
return __generator(this, function (_a) {
|
|
1688
2180
|
switch (_a.label) {
|
|
1689
|
-
case 0:
|
|
1690
|
-
if (requestParameters['userId'] == null) {
|
|
1691
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getUser().');
|
|
1692
|
-
}
|
|
1693
|
-
if (requestParameters['projectId'] == null) {
|
|
1694
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getUser().');
|
|
1695
|
-
}
|
|
1696
|
-
queryParameters = {};
|
|
1697
|
-
headerParameters = {};
|
|
1698
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}";
|
|
1699
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
1700
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1701
|
-
return [4 /*yield*/, this.request({
|
|
1702
|
-
path: urlPath,
|
|
1703
|
-
method: 'GET',
|
|
1704
|
-
headers: headerParameters,
|
|
1705
|
-
query: queryParameters,
|
|
1706
|
-
}, initOverrides)];
|
|
2181
|
+
case 0: return [4 /*yield*/, this.getUserRequestOpts(requestParameters)];
|
|
1707
2182
|
case 1:
|
|
2183
|
+
requestOptions = _a.sent();
|
|
2184
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2185
|
+
case 2:
|
|
1708
2186
|
response = _a.sent();
|
|
1709
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
2187
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserObject_1.UserObjectFromJSON)(jsonValue); })];
|
|
1710
2188
|
}
|
|
1711
2189
|
});
|
|
1712
2190
|
});
|
|
@@ -1727,39 +2205,52 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1727
2205
|
});
|
|
1728
2206
|
});
|
|
1729
2207
|
};
|
|
2208
|
+
/**
|
|
2209
|
+
* Creates request options for getUserMetrics without sending the request
|
|
2210
|
+
*/
|
|
2211
|
+
ProjectsServerApi.prototype.getUserMetricsRequestOpts = function (requestParameters) {
|
|
2212
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2213
|
+
var queryParameters, headerParameters, urlPath;
|
|
2214
|
+
return __generator(this, function (_a) {
|
|
2215
|
+
if (requestParameters['projectId'] == null) {
|
|
2216
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getUserMetrics().');
|
|
2217
|
+
}
|
|
2218
|
+
queryParameters = {};
|
|
2219
|
+
if (requestParameters['minTime'] != null) {
|
|
2220
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2221
|
+
}
|
|
2222
|
+
if (requestParameters['maxTime'] != null) {
|
|
2223
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2224
|
+
}
|
|
2225
|
+
if (requestParameters['granularity'] != null) {
|
|
2226
|
+
queryParameters['granularity'] = requestParameters['granularity'];
|
|
2227
|
+
}
|
|
2228
|
+
headerParameters = {};
|
|
2229
|
+
urlPath = "/api/v1/projects/{projectId}/user-metrics";
|
|
2230
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2231
|
+
return [2 /*return*/, {
|
|
2232
|
+
path: urlPath,
|
|
2233
|
+
method: 'GET',
|
|
2234
|
+
headers: headerParameters,
|
|
2235
|
+
query: queryParameters,
|
|
2236
|
+
}];
|
|
2237
|
+
});
|
|
2238
|
+
});
|
|
2239
|
+
};
|
|
1730
2240
|
/**
|
|
1731
2241
|
*/
|
|
1732
2242
|
ProjectsServerApi.prototype.getUserMetricsRaw = function (requestParameters, initOverrides) {
|
|
1733
2243
|
return __awaiter(this, void 0, void 0, function () {
|
|
1734
|
-
var
|
|
2244
|
+
var requestOptions, response;
|
|
1735
2245
|
return __generator(this, function (_a) {
|
|
1736
2246
|
switch (_a.label) {
|
|
1737
|
-
case 0:
|
|
1738
|
-
if (requestParameters['projectId'] == null) {
|
|
1739
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getUserMetrics().');
|
|
1740
|
-
}
|
|
1741
|
-
queryParameters = {};
|
|
1742
|
-
if (requestParameters['minTime'] != null) {
|
|
1743
|
-
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
1744
|
-
}
|
|
1745
|
-
if (requestParameters['maxTime'] != null) {
|
|
1746
|
-
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
1747
|
-
}
|
|
1748
|
-
if (requestParameters['granularity'] != null) {
|
|
1749
|
-
queryParameters['granularity'] = requestParameters['granularity'];
|
|
1750
|
-
}
|
|
1751
|
-
headerParameters = {};
|
|
1752
|
-
urlPath = "/api/v1/projects/{projectId}/user-metrics";
|
|
1753
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1754
|
-
return [4 /*yield*/, this.request({
|
|
1755
|
-
path: urlPath,
|
|
1756
|
-
method: 'GET',
|
|
1757
|
-
headers: headerParameters,
|
|
1758
|
-
query: queryParameters,
|
|
1759
|
-
}, initOverrides)];
|
|
2247
|
+
case 0: return [4 /*yield*/, this.getUserMetricsRequestOpts(requestParameters)];
|
|
1760
2248
|
case 1:
|
|
2249
|
+
requestOptions = _a.sent();
|
|
2250
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2251
|
+
case 2:
|
|
1761
2252
|
response = _a.sent();
|
|
1762
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
2253
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserMetricsResponse_1.UserMetricsResponseFromJSON)(jsonValue); })];
|
|
1763
2254
|
}
|
|
1764
2255
|
});
|
|
1765
2256
|
});
|
|
@@ -1780,34 +2271,47 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1780
2271
|
});
|
|
1781
2272
|
});
|
|
1782
2273
|
};
|
|
2274
|
+
/**
|
|
2275
|
+
* Creates request options for getWebApp without sending the request
|
|
2276
|
+
*/
|
|
2277
|
+
ProjectsServerApi.prototype.getWebAppRequestOpts = function (requestParameters) {
|
|
2278
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2279
|
+
var queryParameters, headerParameters, urlPath;
|
|
2280
|
+
return __generator(this, function (_a) {
|
|
2281
|
+
if (requestParameters['projectId'] == null) {
|
|
2282
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getWebApp().');
|
|
2283
|
+
}
|
|
2284
|
+
if (requestParameters['webAppId'] == null) {
|
|
2285
|
+
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling getWebApp().');
|
|
2286
|
+
}
|
|
2287
|
+
queryParameters = {};
|
|
2288
|
+
headerParameters = {};
|
|
2289
|
+
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}";
|
|
2290
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2291
|
+
urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
|
|
2292
|
+
return [2 /*return*/, {
|
|
2293
|
+
path: urlPath,
|
|
2294
|
+
method: 'GET',
|
|
2295
|
+
headers: headerParameters,
|
|
2296
|
+
query: queryParameters,
|
|
2297
|
+
}];
|
|
2298
|
+
});
|
|
2299
|
+
});
|
|
2300
|
+
};
|
|
1783
2301
|
/**
|
|
1784
2302
|
*/
|
|
1785
2303
|
ProjectsServerApi.prototype.getWebAppRaw = function (requestParameters, initOverrides) {
|
|
1786
2304
|
return __awaiter(this, void 0, void 0, function () {
|
|
1787
|
-
var
|
|
2305
|
+
var requestOptions, response;
|
|
1788
2306
|
return __generator(this, function (_a) {
|
|
1789
2307
|
switch (_a.label) {
|
|
1790
|
-
case 0:
|
|
1791
|
-
if (requestParameters['projectId'] == null) {
|
|
1792
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getWebApp().');
|
|
1793
|
-
}
|
|
1794
|
-
if (requestParameters['webAppId'] == null) {
|
|
1795
|
-
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling getWebApp().');
|
|
1796
|
-
}
|
|
1797
|
-
queryParameters = {};
|
|
1798
|
-
headerParameters = {};
|
|
1799
|
-
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}";
|
|
1800
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1801
|
-
urlPath = urlPath.replace("{".concat("webAppId", "}"), encodeURIComponent(String(requestParameters['webAppId'])));
|
|
1802
|
-
return [4 /*yield*/, this.request({
|
|
1803
|
-
path: urlPath,
|
|
1804
|
-
method: 'GET',
|
|
1805
|
-
headers: headerParameters,
|
|
1806
|
-
query: queryParameters,
|
|
1807
|
-
}, initOverrides)];
|
|
2308
|
+
case 0: return [4 /*yield*/, this.getWebAppRequestOpts(requestParameters)];
|
|
1808
2309
|
case 1:
|
|
2310
|
+
requestOptions = _a.sent();
|
|
2311
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2312
|
+
case 2:
|
|
1809
2313
|
response = _a.sent();
|
|
1810
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
2314
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, WebAppObject_1.WebAppObjectFromJSON)(jsonValue); })];
|
|
1811
2315
|
}
|
|
1812
2316
|
});
|
|
1813
2317
|
});
|
|
@@ -1828,38 +2332,51 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1828
2332
|
});
|
|
1829
2333
|
});
|
|
1830
2334
|
};
|
|
2335
|
+
/**
|
|
2336
|
+
* Creates request options for getWebAppDeployment without sending the request
|
|
2337
|
+
*/
|
|
2338
|
+
ProjectsServerApi.prototype.getWebAppDeploymentRequestOpts = function (requestParameters) {
|
|
2339
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2340
|
+
var queryParameters, headerParameters, urlPath;
|
|
2341
|
+
return __generator(this, function (_a) {
|
|
2342
|
+
if (requestParameters['projectId'] == null) {
|
|
2343
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getWebAppDeployment().');
|
|
2344
|
+
}
|
|
2345
|
+
if (requestParameters['webAppId'] == null) {
|
|
2346
|
+
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling getWebAppDeployment().');
|
|
2347
|
+
}
|
|
2348
|
+
if (requestParameters['buildId'] == null) {
|
|
2349
|
+
throw new runtime.RequiredError('buildId', 'Required parameter "buildId" was null or undefined when calling getWebAppDeployment().');
|
|
2350
|
+
}
|
|
2351
|
+
queryParameters = {};
|
|
2352
|
+
headerParameters = {};
|
|
2353
|
+
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/deployments/{buildId}";
|
|
2354
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2355
|
+
urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
|
|
2356
|
+
urlPath = urlPath.replace('{buildId}', encodeURIComponent(String(requestParameters['buildId'])));
|
|
2357
|
+
return [2 /*return*/, {
|
|
2358
|
+
path: urlPath,
|
|
2359
|
+
method: 'GET',
|
|
2360
|
+
headers: headerParameters,
|
|
2361
|
+
query: queryParameters,
|
|
2362
|
+
}];
|
|
2363
|
+
});
|
|
2364
|
+
});
|
|
2365
|
+
};
|
|
1831
2366
|
/**
|
|
1832
2367
|
*/
|
|
1833
2368
|
ProjectsServerApi.prototype.getWebAppDeploymentRaw = function (requestParameters, initOverrides) {
|
|
1834
2369
|
return __awaiter(this, void 0, void 0, function () {
|
|
1835
|
-
var
|
|
2370
|
+
var requestOptions, response;
|
|
1836
2371
|
return __generator(this, function (_a) {
|
|
1837
2372
|
switch (_a.label) {
|
|
1838
|
-
case 0:
|
|
1839
|
-
if (requestParameters['projectId'] == null) {
|
|
1840
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getWebAppDeployment().');
|
|
1841
|
-
}
|
|
1842
|
-
if (requestParameters['webAppId'] == null) {
|
|
1843
|
-
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling getWebAppDeployment().');
|
|
1844
|
-
}
|
|
1845
|
-
if (requestParameters['buildId'] == null) {
|
|
1846
|
-
throw new runtime.RequiredError('buildId', 'Required parameter "buildId" was null or undefined when calling getWebAppDeployment().');
|
|
1847
|
-
}
|
|
1848
|
-
queryParameters = {};
|
|
1849
|
-
headerParameters = {};
|
|
1850
|
-
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/deployments/{buildId}";
|
|
1851
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1852
|
-
urlPath = urlPath.replace("{".concat("webAppId", "}"), encodeURIComponent(String(requestParameters['webAppId'])));
|
|
1853
|
-
urlPath = urlPath.replace("{".concat("buildId", "}"), encodeURIComponent(String(requestParameters['buildId'])));
|
|
1854
|
-
return [4 /*yield*/, this.request({
|
|
1855
|
-
path: urlPath,
|
|
1856
|
-
method: 'GET',
|
|
1857
|
-
headers: headerParameters,
|
|
1858
|
-
query: queryParameters,
|
|
1859
|
-
}, initOverrides)];
|
|
2373
|
+
case 0: return [4 /*yield*/, this.getWebAppDeploymentRequestOpts(requestParameters)];
|
|
1860
2374
|
case 1:
|
|
2375
|
+
requestOptions = _a.sent();
|
|
2376
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2377
|
+
case 2:
|
|
1861
2378
|
response = _a.sent();
|
|
1862
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
2379
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, WebAppBuildRequestObject_1.WebAppBuildRequestObjectFromJSON)(jsonValue); })];
|
|
1863
2380
|
}
|
|
1864
2381
|
});
|
|
1865
2382
|
});
|
|
@@ -1880,40 +2397,53 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1880
2397
|
});
|
|
1881
2398
|
});
|
|
1882
2399
|
};
|
|
2400
|
+
/**
|
|
2401
|
+
* Creates request options for listContent1 without sending the request
|
|
2402
|
+
*/
|
|
2403
|
+
ProjectsServerApi.prototype.listContent1RequestOpts = function (requestParameters) {
|
|
2404
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2405
|
+
var queryParameters, headerParameters, urlPath;
|
|
2406
|
+
return __generator(this, function (_a) {
|
|
2407
|
+
if (requestParameters['projectId'] == null) {
|
|
2408
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listContent1().');
|
|
2409
|
+
}
|
|
2410
|
+
if (requestParameters['userId'] == null) {
|
|
2411
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling listContent1().');
|
|
2412
|
+
}
|
|
2413
|
+
queryParameters = {};
|
|
2414
|
+
if (requestParameters['page'] != null) {
|
|
2415
|
+
queryParameters['page'] = requestParameters['page'];
|
|
2416
|
+
}
|
|
2417
|
+
if (requestParameters['pageSize'] != null) {
|
|
2418
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
2419
|
+
}
|
|
2420
|
+
headerParameters = {};
|
|
2421
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content";
|
|
2422
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2423
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
2424
|
+
return [2 /*return*/, {
|
|
2425
|
+
path: urlPath,
|
|
2426
|
+
method: 'GET',
|
|
2427
|
+
headers: headerParameters,
|
|
2428
|
+
query: queryParameters,
|
|
2429
|
+
}];
|
|
2430
|
+
});
|
|
2431
|
+
});
|
|
2432
|
+
};
|
|
1883
2433
|
/**
|
|
1884
2434
|
*/
|
|
1885
2435
|
ProjectsServerApi.prototype.listContent1Raw = function (requestParameters, initOverrides) {
|
|
1886
2436
|
return __awaiter(this, void 0, void 0, function () {
|
|
1887
|
-
var
|
|
2437
|
+
var requestOptions, response;
|
|
1888
2438
|
return __generator(this, function (_a) {
|
|
1889
2439
|
switch (_a.label) {
|
|
1890
|
-
case 0:
|
|
1891
|
-
if (requestParameters['projectId'] == null) {
|
|
1892
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listContent1().');
|
|
1893
|
-
}
|
|
1894
|
-
if (requestParameters['userId'] == null) {
|
|
1895
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling listContent1().');
|
|
1896
|
-
}
|
|
1897
|
-
queryParameters = {};
|
|
1898
|
-
if (requestParameters['page'] != null) {
|
|
1899
|
-
queryParameters['page'] = requestParameters['page'];
|
|
1900
|
-
}
|
|
1901
|
-
if (requestParameters['pageSize'] != null) {
|
|
1902
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
1903
|
-
}
|
|
1904
|
-
headerParameters = {};
|
|
1905
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content";
|
|
1906
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1907
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
1908
|
-
return [4 /*yield*/, this.request({
|
|
1909
|
-
path: urlPath,
|
|
1910
|
-
method: 'GET',
|
|
1911
|
-
headers: headerParameters,
|
|
1912
|
-
query: queryParameters,
|
|
1913
|
-
}, initOverrides)];
|
|
2440
|
+
case 0: return [4 /*yield*/, this.listContent1RequestOpts(requestParameters)];
|
|
1914
2441
|
case 1:
|
|
2442
|
+
requestOptions = _a.sent();
|
|
2443
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2444
|
+
case 2:
|
|
1915
2445
|
response = _a.sent();
|
|
1916
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
2446
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ListContentResponse_1.ListContentResponseFromJSON)(jsonValue); })];
|
|
1917
2447
|
}
|
|
1918
2448
|
});
|
|
1919
2449
|
});
|
|
@@ -1934,52 +2464,65 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1934
2464
|
});
|
|
1935
2465
|
});
|
|
1936
2466
|
};
|
|
2467
|
+
/**
|
|
2468
|
+
* Creates request options for listLogLines without sending the request
|
|
2469
|
+
*/
|
|
2470
|
+
ProjectsServerApi.prototype.listLogLinesRequestOpts = function (requestParameters) {
|
|
2471
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2472
|
+
var queryParameters, headerParameters, urlPath;
|
|
2473
|
+
return __generator(this, function (_a) {
|
|
2474
|
+
if (requestParameters['projectId'] == null) {
|
|
2475
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listLogLines().');
|
|
2476
|
+
}
|
|
2477
|
+
if (requestParameters['serviceId'] == null) {
|
|
2478
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling listLogLines().');
|
|
2479
|
+
}
|
|
2480
|
+
queryParameters = {};
|
|
2481
|
+
if (requestParameters['minTime'] != null) {
|
|
2482
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2483
|
+
}
|
|
2484
|
+
if (requestParameters['maxTime'] != null) {
|
|
2485
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2486
|
+
}
|
|
2487
|
+
if (requestParameters['requestId'] != null) {
|
|
2488
|
+
queryParameters['requestId'] = requestParameters['requestId'];
|
|
2489
|
+
}
|
|
2490
|
+
if (requestParameters['buildId'] != null) {
|
|
2491
|
+
queryParameters['buildId'] = requestParameters['buildId'];
|
|
2492
|
+
}
|
|
2493
|
+
if (requestParameters['level'] != null) {
|
|
2494
|
+
queryParameters['level'] = requestParameters['level'];
|
|
2495
|
+
}
|
|
2496
|
+
if (requestParameters['nextToken'] != null) {
|
|
2497
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
2498
|
+
}
|
|
2499
|
+
headerParameters = {};
|
|
2500
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/logs";
|
|
2501
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2502
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
2503
|
+
return [2 /*return*/, {
|
|
2504
|
+
path: urlPath,
|
|
2505
|
+
method: 'GET',
|
|
2506
|
+
headers: headerParameters,
|
|
2507
|
+
query: queryParameters,
|
|
2508
|
+
}];
|
|
2509
|
+
});
|
|
2510
|
+
});
|
|
2511
|
+
};
|
|
1937
2512
|
/**
|
|
1938
2513
|
*/
|
|
1939
2514
|
ProjectsServerApi.prototype.listLogLinesRaw = function (requestParameters, initOverrides) {
|
|
1940
2515
|
return __awaiter(this, void 0, void 0, function () {
|
|
1941
|
-
var
|
|
2516
|
+
var requestOptions, response;
|
|
1942
2517
|
return __generator(this, function (_a) {
|
|
1943
2518
|
switch (_a.label) {
|
|
1944
|
-
case 0:
|
|
1945
|
-
if (requestParameters['projectId'] == null) {
|
|
1946
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listLogLines().');
|
|
1947
|
-
}
|
|
1948
|
-
if (requestParameters['serviceId'] == null) {
|
|
1949
|
-
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling listLogLines().');
|
|
1950
|
-
}
|
|
1951
|
-
queryParameters = {};
|
|
1952
|
-
if (requestParameters['minTime'] != null) {
|
|
1953
|
-
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
1954
|
-
}
|
|
1955
|
-
if (requestParameters['maxTime'] != null) {
|
|
1956
|
-
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
1957
|
-
}
|
|
1958
|
-
if (requestParameters['requestId'] != null) {
|
|
1959
|
-
queryParameters['requestId'] = requestParameters['requestId'];
|
|
1960
|
-
}
|
|
1961
|
-
if (requestParameters['buildId'] != null) {
|
|
1962
|
-
queryParameters['buildId'] = requestParameters['buildId'];
|
|
1963
|
-
}
|
|
1964
|
-
if (requestParameters['level'] != null) {
|
|
1965
|
-
queryParameters['level'] = requestParameters['level'];
|
|
1966
|
-
}
|
|
1967
|
-
if (requestParameters['nextToken'] != null) {
|
|
1968
|
-
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
1969
|
-
}
|
|
1970
|
-
headerParameters = {};
|
|
1971
|
-
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/logs";
|
|
1972
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1973
|
-
urlPath = urlPath.replace("{".concat("serviceId", "}"), encodeURIComponent(String(requestParameters['serviceId'])));
|
|
1974
|
-
return [4 /*yield*/, this.request({
|
|
1975
|
-
path: urlPath,
|
|
1976
|
-
method: 'GET',
|
|
1977
|
-
headers: headerParameters,
|
|
1978
|
-
query: queryParameters,
|
|
1979
|
-
}, initOverrides)];
|
|
2519
|
+
case 0: return [4 /*yield*/, this.listLogLinesRequestOpts(requestParameters)];
|
|
1980
2520
|
case 1:
|
|
2521
|
+
requestOptions = _a.sent();
|
|
2522
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2523
|
+
case 2:
|
|
1981
2524
|
response = _a.sent();
|
|
1982
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
2525
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseLogLineObject_1.PaginatedResponseLogLineObjectFromJSON)(jsonValue); })];
|
|
1983
2526
|
}
|
|
1984
2527
|
});
|
|
1985
2528
|
});
|
|
@@ -2000,30 +2543,43 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2000
2543
|
});
|
|
2001
2544
|
});
|
|
2002
2545
|
};
|
|
2546
|
+
/**
|
|
2547
|
+
* Creates request options for listPaymentTriggers without sending the request
|
|
2548
|
+
*/
|
|
2549
|
+
ProjectsServerApi.prototype.listPaymentTriggersRequestOpts = function (requestParameters) {
|
|
2550
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2551
|
+
var queryParameters, headerParameters, urlPath;
|
|
2552
|
+
return __generator(this, function (_a) {
|
|
2553
|
+
if (requestParameters['projectId'] == null) {
|
|
2554
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listPaymentTriggers().');
|
|
2555
|
+
}
|
|
2556
|
+
queryParameters = {};
|
|
2557
|
+
headerParameters = {};
|
|
2558
|
+
urlPath = "/api/v1/projects/{projectId}/payment-triggers";
|
|
2559
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2560
|
+
return [2 /*return*/, {
|
|
2561
|
+
path: urlPath,
|
|
2562
|
+
method: 'GET',
|
|
2563
|
+
headers: headerParameters,
|
|
2564
|
+
query: queryParameters,
|
|
2565
|
+
}];
|
|
2566
|
+
});
|
|
2567
|
+
});
|
|
2568
|
+
};
|
|
2003
2569
|
/**
|
|
2004
2570
|
*/
|
|
2005
2571
|
ProjectsServerApi.prototype.listPaymentTriggersRaw = function (requestParameters, initOverrides) {
|
|
2006
2572
|
return __awaiter(this, void 0, void 0, function () {
|
|
2007
|
-
var
|
|
2573
|
+
var requestOptions, response;
|
|
2008
2574
|
return __generator(this, function (_a) {
|
|
2009
2575
|
switch (_a.label) {
|
|
2010
|
-
case 0:
|
|
2011
|
-
if (requestParameters['projectId'] == null) {
|
|
2012
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listPaymentTriggers().');
|
|
2013
|
-
}
|
|
2014
|
-
queryParameters = {};
|
|
2015
|
-
headerParameters = {};
|
|
2016
|
-
urlPath = "/api/v1/projects/{projectId}/payment-triggers";
|
|
2017
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2018
|
-
return [4 /*yield*/, this.request({
|
|
2019
|
-
path: urlPath,
|
|
2020
|
-
method: 'GET',
|
|
2021
|
-
headers: headerParameters,
|
|
2022
|
-
query: queryParameters,
|
|
2023
|
-
}, initOverrides)];
|
|
2576
|
+
case 0: return [4 /*yield*/, this.listPaymentTriggersRequestOpts(requestParameters)];
|
|
2024
2577
|
case 1:
|
|
2578
|
+
requestOptions = _a.sent();
|
|
2579
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2580
|
+
case 2:
|
|
2025
2581
|
response = _a.sent();
|
|
2026
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(
|
|
2582
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(PaymentTriggerConfig_1.PaymentTriggerConfigFromJSON); })];
|
|
2027
2583
|
}
|
|
2028
2584
|
});
|
|
2029
2585
|
});
|
|
@@ -2044,30 +2600,43 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2044
2600
|
});
|
|
2045
2601
|
});
|
|
2046
2602
|
};
|
|
2603
|
+
/**
|
|
2604
|
+
* Creates request options for listProjectApiKeys without sending the request
|
|
2605
|
+
*/
|
|
2606
|
+
ProjectsServerApi.prototype.listProjectApiKeysRequestOpts = function (requestParameters) {
|
|
2607
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2608
|
+
var queryParameters, headerParameters, urlPath;
|
|
2609
|
+
return __generator(this, function (_a) {
|
|
2610
|
+
if (requestParameters['projectId'] == null) {
|
|
2611
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listProjectApiKeys().');
|
|
2612
|
+
}
|
|
2613
|
+
queryParameters = {};
|
|
2614
|
+
headerParameters = {};
|
|
2615
|
+
urlPath = "/api/v1/projects/{projectId}/api-keys";
|
|
2616
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2617
|
+
return [2 /*return*/, {
|
|
2618
|
+
path: urlPath,
|
|
2619
|
+
method: 'GET',
|
|
2620
|
+
headers: headerParameters,
|
|
2621
|
+
query: queryParameters,
|
|
2622
|
+
}];
|
|
2623
|
+
});
|
|
2624
|
+
});
|
|
2625
|
+
};
|
|
2047
2626
|
/**
|
|
2048
2627
|
*/
|
|
2049
2628
|
ProjectsServerApi.prototype.listProjectApiKeysRaw = function (requestParameters, initOverrides) {
|
|
2050
2629
|
return __awaiter(this, void 0, void 0, function () {
|
|
2051
|
-
var
|
|
2630
|
+
var requestOptions, response;
|
|
2052
2631
|
return __generator(this, function (_a) {
|
|
2053
2632
|
switch (_a.label) {
|
|
2054
|
-
case 0:
|
|
2055
|
-
if (requestParameters['projectId'] == null) {
|
|
2056
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listProjectApiKeys().');
|
|
2057
|
-
}
|
|
2058
|
-
queryParameters = {};
|
|
2059
|
-
headerParameters = {};
|
|
2060
|
-
urlPath = "/api/v1/projects/{projectId}/api-keys";
|
|
2061
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2062
|
-
return [4 /*yield*/, this.request({
|
|
2063
|
-
path: urlPath,
|
|
2064
|
-
method: 'GET',
|
|
2065
|
-
headers: headerParameters,
|
|
2066
|
-
query: queryParameters,
|
|
2067
|
-
}, initOverrides)];
|
|
2633
|
+
case 0: return [4 /*yield*/, this.listProjectApiKeysRequestOpts(requestParameters)];
|
|
2068
2634
|
case 1:
|
|
2635
|
+
requestOptions = _a.sent();
|
|
2636
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2637
|
+
case 2:
|
|
2069
2638
|
response = _a.sent();
|
|
2070
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(
|
|
2639
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(ApiKeySummary_1.ApiKeySummaryFromJSON); })];
|
|
2071
2640
|
}
|
|
2072
2641
|
});
|
|
2073
2642
|
});
|
|
@@ -2089,25 +2658,38 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2089
2658
|
});
|
|
2090
2659
|
};
|
|
2091
2660
|
/**
|
|
2661
|
+
* Creates request options for listProjects without sending the request
|
|
2092
2662
|
*/
|
|
2093
|
-
ProjectsServerApi.prototype.
|
|
2663
|
+
ProjectsServerApi.prototype.listProjectsRequestOpts = function () {
|
|
2094
2664
|
return __awaiter(this, void 0, void 0, function () {
|
|
2095
|
-
var queryParameters, headerParameters, urlPath
|
|
2665
|
+
var queryParameters, headerParameters, urlPath;
|
|
2096
2666
|
return __generator(this, function (_a) {
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
urlPath
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2667
|
+
queryParameters = {};
|
|
2668
|
+
headerParameters = {};
|
|
2669
|
+
urlPath = "/api/v1/projects";
|
|
2670
|
+
return [2 /*return*/, {
|
|
2671
|
+
path: urlPath,
|
|
2672
|
+
method: 'GET',
|
|
2673
|
+
headers: headerParameters,
|
|
2674
|
+
query: queryParameters,
|
|
2675
|
+
}];
|
|
2676
|
+
});
|
|
2677
|
+
});
|
|
2678
|
+
};
|
|
2679
|
+
/**
|
|
2680
|
+
*/
|
|
2681
|
+
ProjectsServerApi.prototype.listProjectsRaw = function (initOverrides) {
|
|
2682
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2683
|
+
var requestOptions, response;
|
|
2684
|
+
return __generator(this, function (_a) {
|
|
2685
|
+
switch (_a.label) {
|
|
2686
|
+
case 0: return [4 /*yield*/, this.listProjectsRequestOpts()];
|
|
2687
|
+
case 1:
|
|
2688
|
+
requestOptions = _a.sent();
|
|
2689
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2690
|
+
case 2:
|
|
2691
|
+
response = _a.sent();
|
|
2692
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(ProjectObject_1.ProjectObjectFromJSON); })];
|
|
2111
2693
|
}
|
|
2112
2694
|
});
|
|
2113
2695
|
});
|
|
@@ -2128,49 +2710,62 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2128
2710
|
});
|
|
2129
2711
|
});
|
|
2130
2712
|
};
|
|
2713
|
+
/**
|
|
2714
|
+
* Creates request options for listRequestInvocationLogs without sending the request
|
|
2715
|
+
*/
|
|
2716
|
+
ProjectsServerApi.prototype.listRequestInvocationLogsRequestOpts = function (requestParameters) {
|
|
2717
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2718
|
+
var queryParameters, headerParameters, urlPath;
|
|
2719
|
+
return __generator(this, function (_a) {
|
|
2720
|
+
if (requestParameters['projectId'] == null) {
|
|
2721
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listRequestInvocationLogs().');
|
|
2722
|
+
}
|
|
2723
|
+
if (requestParameters['serviceId'] == null) {
|
|
2724
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling listRequestInvocationLogs().');
|
|
2725
|
+
}
|
|
2726
|
+
queryParameters = {};
|
|
2727
|
+
if (requestParameters['minTime'] != null) {
|
|
2728
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2729
|
+
}
|
|
2730
|
+
if (requestParameters['maxTime'] != null) {
|
|
2731
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2732
|
+
}
|
|
2733
|
+
if (requestParameters['statusCode'] != null) {
|
|
2734
|
+
queryParameters['statusCode'] = requestParameters['statusCode'];
|
|
2735
|
+
}
|
|
2736
|
+
if (requestParameters['requestPath'] != null) {
|
|
2737
|
+
queryParameters['requestPath'] = requestParameters['requestPath'];
|
|
2738
|
+
}
|
|
2739
|
+
if (requestParameters['nextToken'] != null) {
|
|
2740
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
2741
|
+
}
|
|
2742
|
+
headerParameters = {};
|
|
2743
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/requests";
|
|
2744
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2745
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
2746
|
+
return [2 /*return*/, {
|
|
2747
|
+
path: urlPath,
|
|
2748
|
+
method: 'GET',
|
|
2749
|
+
headers: headerParameters,
|
|
2750
|
+
query: queryParameters,
|
|
2751
|
+
}];
|
|
2752
|
+
});
|
|
2753
|
+
});
|
|
2754
|
+
};
|
|
2131
2755
|
/**
|
|
2132
2756
|
*/
|
|
2133
2757
|
ProjectsServerApi.prototype.listRequestInvocationLogsRaw = function (requestParameters, initOverrides) {
|
|
2134
2758
|
return __awaiter(this, void 0, void 0, function () {
|
|
2135
|
-
var
|
|
2759
|
+
var requestOptions, response;
|
|
2136
2760
|
return __generator(this, function (_a) {
|
|
2137
2761
|
switch (_a.label) {
|
|
2138
|
-
case 0:
|
|
2139
|
-
if (requestParameters['projectId'] == null) {
|
|
2140
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listRequestInvocationLogs().');
|
|
2141
|
-
}
|
|
2142
|
-
if (requestParameters['serviceId'] == null) {
|
|
2143
|
-
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling listRequestInvocationLogs().');
|
|
2144
|
-
}
|
|
2145
|
-
queryParameters = {};
|
|
2146
|
-
if (requestParameters['minTime'] != null) {
|
|
2147
|
-
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2148
|
-
}
|
|
2149
|
-
if (requestParameters['maxTime'] != null) {
|
|
2150
|
-
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2151
|
-
}
|
|
2152
|
-
if (requestParameters['statusCode'] != null) {
|
|
2153
|
-
queryParameters['statusCode'] = requestParameters['statusCode'];
|
|
2154
|
-
}
|
|
2155
|
-
if (requestParameters['requestPath'] != null) {
|
|
2156
|
-
queryParameters['requestPath'] = requestParameters['requestPath'];
|
|
2157
|
-
}
|
|
2158
|
-
if (requestParameters['nextToken'] != null) {
|
|
2159
|
-
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
2160
|
-
}
|
|
2161
|
-
headerParameters = {};
|
|
2162
|
-
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/requests";
|
|
2163
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2164
|
-
urlPath = urlPath.replace("{".concat("serviceId", "}"), encodeURIComponent(String(requestParameters['serviceId'])));
|
|
2165
|
-
return [4 /*yield*/, this.request({
|
|
2166
|
-
path: urlPath,
|
|
2167
|
-
method: 'GET',
|
|
2168
|
-
headers: headerParameters,
|
|
2169
|
-
query: queryParameters,
|
|
2170
|
-
}, initOverrides)];
|
|
2762
|
+
case 0: return [4 /*yield*/, this.listRequestInvocationLogsRequestOpts(requestParameters)];
|
|
2171
2763
|
case 1:
|
|
2764
|
+
requestOptions = _a.sent();
|
|
2765
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2766
|
+
case 2:
|
|
2172
2767
|
response = _a.sent();
|
|
2173
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
2768
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseRequestLogObject_1.PaginatedResponseRequestLogObjectFromJSON)(jsonValue); })];
|
|
2174
2769
|
}
|
|
2175
2770
|
});
|
|
2176
2771
|
});
|
|
@@ -2191,43 +2786,56 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2191
2786
|
});
|
|
2192
2787
|
});
|
|
2193
2788
|
};
|
|
2789
|
+
/**
|
|
2790
|
+
* Creates request options for listServiceDeployments without sending the request
|
|
2791
|
+
*/
|
|
2792
|
+
ProjectsServerApi.prototype.listServiceDeploymentsRequestOpts = function (requestParameters) {
|
|
2793
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2794
|
+
var queryParameters, headerParameters, urlPath;
|
|
2795
|
+
return __generator(this, function (_a) {
|
|
2796
|
+
if (requestParameters['projectId'] == null) {
|
|
2797
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listServiceDeployments().');
|
|
2798
|
+
}
|
|
2799
|
+
if (requestParameters['serviceId'] == null) {
|
|
2800
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling listServiceDeployments().');
|
|
2801
|
+
}
|
|
2802
|
+
queryParameters = {};
|
|
2803
|
+
if (requestParameters['minTime'] != null) {
|
|
2804
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2805
|
+
}
|
|
2806
|
+
if (requestParameters['maxTime'] != null) {
|
|
2807
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2808
|
+
}
|
|
2809
|
+
if (requestParameters['nextToken'] != null) {
|
|
2810
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
2811
|
+
}
|
|
2812
|
+
headerParameters = {};
|
|
2813
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/deployments";
|
|
2814
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2815
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
2816
|
+
return [2 /*return*/, {
|
|
2817
|
+
path: urlPath,
|
|
2818
|
+
method: 'GET',
|
|
2819
|
+
headers: headerParameters,
|
|
2820
|
+
query: queryParameters,
|
|
2821
|
+
}];
|
|
2822
|
+
});
|
|
2823
|
+
});
|
|
2824
|
+
};
|
|
2194
2825
|
/**
|
|
2195
2826
|
*/
|
|
2196
2827
|
ProjectsServerApi.prototype.listServiceDeploymentsRaw = function (requestParameters, initOverrides) {
|
|
2197
2828
|
return __awaiter(this, void 0, void 0, function () {
|
|
2198
|
-
var
|
|
2829
|
+
var requestOptions, response;
|
|
2199
2830
|
return __generator(this, function (_a) {
|
|
2200
2831
|
switch (_a.label) {
|
|
2201
|
-
case 0:
|
|
2202
|
-
if (requestParameters['projectId'] == null) {
|
|
2203
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listServiceDeployments().');
|
|
2204
|
-
}
|
|
2205
|
-
if (requestParameters['serviceId'] == null) {
|
|
2206
|
-
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling listServiceDeployments().');
|
|
2207
|
-
}
|
|
2208
|
-
queryParameters = {};
|
|
2209
|
-
if (requestParameters['minTime'] != null) {
|
|
2210
|
-
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2211
|
-
}
|
|
2212
|
-
if (requestParameters['maxTime'] != null) {
|
|
2213
|
-
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2214
|
-
}
|
|
2215
|
-
if (requestParameters['nextToken'] != null) {
|
|
2216
|
-
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
2217
|
-
}
|
|
2218
|
-
headerParameters = {};
|
|
2219
|
-
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/deployments";
|
|
2220
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2221
|
-
urlPath = urlPath.replace("{".concat("serviceId", "}"), encodeURIComponent(String(requestParameters['serviceId'])));
|
|
2222
|
-
return [4 /*yield*/, this.request({
|
|
2223
|
-
path: urlPath,
|
|
2224
|
-
method: 'GET',
|
|
2225
|
-
headers: headerParameters,
|
|
2226
|
-
query: queryParameters,
|
|
2227
|
-
}, initOverrides)];
|
|
2832
|
+
case 0: return [4 /*yield*/, this.listServiceDeploymentsRequestOpts(requestParameters)];
|
|
2228
2833
|
case 1:
|
|
2834
|
+
requestOptions = _a.sent();
|
|
2835
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2836
|
+
case 2:
|
|
2229
2837
|
response = _a.sent();
|
|
2230
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
2838
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseServiceBuildRequestObject_1.PaginatedResponseServiceBuildRequestObjectFromJSON)(jsonValue); })];
|
|
2231
2839
|
}
|
|
2232
2840
|
});
|
|
2233
2841
|
});
|
|
@@ -2248,46 +2856,59 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2248
2856
|
});
|
|
2249
2857
|
});
|
|
2250
2858
|
};
|
|
2859
|
+
/**
|
|
2860
|
+
* Creates request options for listUserActionLogs without sending the request
|
|
2861
|
+
*/
|
|
2862
|
+
ProjectsServerApi.prototype.listUserActionLogsRequestOpts = function (requestParameters) {
|
|
2863
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2864
|
+
var queryParameters, headerParameters, urlPath;
|
|
2865
|
+
return __generator(this, function (_a) {
|
|
2866
|
+
if (requestParameters['projectId'] == null) {
|
|
2867
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listUserActionLogs().');
|
|
2868
|
+
}
|
|
2869
|
+
if (requestParameters['userId'] == null) {
|
|
2870
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling listUserActionLogs().');
|
|
2871
|
+
}
|
|
2872
|
+
queryParameters = {};
|
|
2873
|
+
if (requestParameters['actionType'] != null) {
|
|
2874
|
+
queryParameters['actionType'] = requestParameters['actionType'];
|
|
2875
|
+
}
|
|
2876
|
+
if (requestParameters['minTime'] != null) {
|
|
2877
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2878
|
+
}
|
|
2879
|
+
if (requestParameters['maxTime'] != null) {
|
|
2880
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2881
|
+
}
|
|
2882
|
+
if (requestParameters['nextToken'] != null) {
|
|
2883
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
2884
|
+
}
|
|
2885
|
+
headerParameters = {};
|
|
2886
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/action-logs";
|
|
2887
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2888
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
2889
|
+
return [2 /*return*/, {
|
|
2890
|
+
path: urlPath,
|
|
2891
|
+
method: 'GET',
|
|
2892
|
+
headers: headerParameters,
|
|
2893
|
+
query: queryParameters,
|
|
2894
|
+
}];
|
|
2895
|
+
});
|
|
2896
|
+
});
|
|
2897
|
+
};
|
|
2251
2898
|
/**
|
|
2252
2899
|
*/
|
|
2253
2900
|
ProjectsServerApi.prototype.listUserActionLogsRaw = function (requestParameters, initOverrides) {
|
|
2254
2901
|
return __awaiter(this, void 0, void 0, function () {
|
|
2255
|
-
var
|
|
2902
|
+
var requestOptions, response;
|
|
2256
2903
|
return __generator(this, function (_a) {
|
|
2257
2904
|
switch (_a.label) {
|
|
2258
|
-
case 0:
|
|
2259
|
-
if (requestParameters['projectId'] == null) {
|
|
2260
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listUserActionLogs().');
|
|
2261
|
-
}
|
|
2262
|
-
if (requestParameters['userId'] == null) {
|
|
2263
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling listUserActionLogs().');
|
|
2264
|
-
}
|
|
2265
|
-
queryParameters = {};
|
|
2266
|
-
if (requestParameters['actionType'] != null) {
|
|
2267
|
-
queryParameters['actionType'] = requestParameters['actionType'];
|
|
2268
|
-
}
|
|
2269
|
-
if (requestParameters['minTime'] != null) {
|
|
2270
|
-
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2271
|
-
}
|
|
2272
|
-
if (requestParameters['maxTime'] != null) {
|
|
2273
|
-
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2274
|
-
}
|
|
2275
|
-
if (requestParameters['nextToken'] != null) {
|
|
2276
|
-
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
2277
|
-
}
|
|
2278
|
-
headerParameters = {};
|
|
2279
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/action-logs";
|
|
2280
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2281
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
2282
|
-
return [4 /*yield*/, this.request({
|
|
2283
|
-
path: urlPath,
|
|
2284
|
-
method: 'GET',
|
|
2285
|
-
headers: headerParameters,
|
|
2286
|
-
query: queryParameters,
|
|
2287
|
-
}, initOverrides)];
|
|
2905
|
+
case 0: return [4 /*yield*/, this.listUserActionLogsRequestOpts(requestParameters)];
|
|
2288
2906
|
case 1:
|
|
2907
|
+
requestOptions = _a.sent();
|
|
2908
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2909
|
+
case 2:
|
|
2289
2910
|
response = _a.sent();
|
|
2290
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
2911
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseUserActionLogObject_1.PaginatedResponseUserActionLogObjectFromJSON)(jsonValue); })];
|
|
2291
2912
|
}
|
|
2292
2913
|
});
|
|
2293
2914
|
});
|
|
@@ -2308,52 +2929,65 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2308
2929
|
});
|
|
2309
2930
|
});
|
|
2310
2931
|
};
|
|
2932
|
+
/**
|
|
2933
|
+
* Creates request options for listUserPayments without sending the request
|
|
2934
|
+
*/
|
|
2935
|
+
ProjectsServerApi.prototype.listUserPaymentsRequestOpts = function (requestParameters) {
|
|
2936
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2937
|
+
var queryParameters, headerParameters, urlPath;
|
|
2938
|
+
return __generator(this, function (_a) {
|
|
2939
|
+
if (requestParameters['projectId'] == null) {
|
|
2940
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listUserPayments().');
|
|
2941
|
+
}
|
|
2942
|
+
if (requestParameters['userId'] == null) {
|
|
2943
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling listUserPayments().');
|
|
2944
|
+
}
|
|
2945
|
+
queryParameters = {};
|
|
2946
|
+
if (requestParameters['state'] != null) {
|
|
2947
|
+
queryParameters['state'] = requestParameters['state'];
|
|
2948
|
+
}
|
|
2949
|
+
if (requestParameters['metadataKey'] != null) {
|
|
2950
|
+
queryParameters['metadataKey'] = requestParameters['metadataKey'];
|
|
2951
|
+
}
|
|
2952
|
+
if (requestParameters['metadataValue'] != null) {
|
|
2953
|
+
queryParameters['metadataValue'] = requestParameters['metadataValue'];
|
|
2954
|
+
}
|
|
2955
|
+
if (requestParameters['minTime'] != null) {
|
|
2956
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2957
|
+
}
|
|
2958
|
+
if (requestParameters['maxTime'] != null) {
|
|
2959
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2960
|
+
}
|
|
2961
|
+
if (requestParameters['nextToken'] != null) {
|
|
2962
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
2963
|
+
}
|
|
2964
|
+
headerParameters = {};
|
|
2965
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/payments";
|
|
2966
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2967
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
2968
|
+
return [2 /*return*/, {
|
|
2969
|
+
path: urlPath,
|
|
2970
|
+
method: 'GET',
|
|
2971
|
+
headers: headerParameters,
|
|
2972
|
+
query: queryParameters,
|
|
2973
|
+
}];
|
|
2974
|
+
});
|
|
2975
|
+
});
|
|
2976
|
+
};
|
|
2311
2977
|
/**
|
|
2312
2978
|
*/
|
|
2313
2979
|
ProjectsServerApi.prototype.listUserPaymentsRaw = function (requestParameters, initOverrides) {
|
|
2314
2980
|
return __awaiter(this, void 0, void 0, function () {
|
|
2315
|
-
var
|
|
2981
|
+
var requestOptions, response;
|
|
2316
2982
|
return __generator(this, function (_a) {
|
|
2317
2983
|
switch (_a.label) {
|
|
2318
|
-
case 0:
|
|
2319
|
-
if (requestParameters['projectId'] == null) {
|
|
2320
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listUserPayments().');
|
|
2321
|
-
}
|
|
2322
|
-
if (requestParameters['userId'] == null) {
|
|
2323
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling listUserPayments().');
|
|
2324
|
-
}
|
|
2325
|
-
queryParameters = {};
|
|
2326
|
-
if (requestParameters['state'] != null) {
|
|
2327
|
-
queryParameters['state'] = requestParameters['state'];
|
|
2328
|
-
}
|
|
2329
|
-
if (requestParameters['metadataKey'] != null) {
|
|
2330
|
-
queryParameters['metadataKey'] = requestParameters['metadataKey'];
|
|
2331
|
-
}
|
|
2332
|
-
if (requestParameters['metadataValue'] != null) {
|
|
2333
|
-
queryParameters['metadataValue'] = requestParameters['metadataValue'];
|
|
2334
|
-
}
|
|
2335
|
-
if (requestParameters['minTime'] != null) {
|
|
2336
|
-
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2337
|
-
}
|
|
2338
|
-
if (requestParameters['maxTime'] != null) {
|
|
2339
|
-
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2340
|
-
}
|
|
2341
|
-
if (requestParameters['nextToken'] != null) {
|
|
2342
|
-
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
2343
|
-
}
|
|
2344
|
-
headerParameters = {};
|
|
2345
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/payments";
|
|
2346
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2347
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
2348
|
-
return [4 /*yield*/, this.request({
|
|
2349
|
-
path: urlPath,
|
|
2350
|
-
method: 'GET',
|
|
2351
|
-
headers: headerParameters,
|
|
2352
|
-
query: queryParameters,
|
|
2353
|
-
}, initOverrides)];
|
|
2984
|
+
case 0: return [4 /*yield*/, this.listUserPaymentsRequestOpts(requestParameters)];
|
|
2354
2985
|
case 1:
|
|
2986
|
+
requestOptions = _a.sent();
|
|
2987
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2988
|
+
case 2:
|
|
2355
2989
|
response = _a.sent();
|
|
2356
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
2990
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponsePaymentObject_1.PaginatedResponsePaymentObjectFromJSON)(jsonValue); })];
|
|
2357
2991
|
}
|
|
2358
2992
|
});
|
|
2359
2993
|
});
|
|
@@ -2374,39 +3008,52 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2374
3008
|
});
|
|
2375
3009
|
});
|
|
2376
3010
|
};
|
|
3011
|
+
/**
|
|
3012
|
+
* Creates request options for listUsers without sending the request
|
|
3013
|
+
*/
|
|
3014
|
+
ProjectsServerApi.prototype.listUsersRequestOpts = function (requestParameters) {
|
|
3015
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3016
|
+
var queryParameters, headerParameters, urlPath;
|
|
3017
|
+
return __generator(this, function (_a) {
|
|
3018
|
+
if (requestParameters['projectId'] == null) {
|
|
3019
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listUsers().');
|
|
3020
|
+
}
|
|
3021
|
+
queryParameters = {};
|
|
3022
|
+
if (requestParameters['minTime'] != null) {
|
|
3023
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
3024
|
+
}
|
|
3025
|
+
if (requestParameters['maxTime'] != null) {
|
|
3026
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
3027
|
+
}
|
|
3028
|
+
if (requestParameters['nextToken'] != null) {
|
|
3029
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
3030
|
+
}
|
|
3031
|
+
headerParameters = {};
|
|
3032
|
+
urlPath = "/api/v1/projects/{projectId}/users";
|
|
3033
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3034
|
+
return [2 /*return*/, {
|
|
3035
|
+
path: urlPath,
|
|
3036
|
+
method: 'GET',
|
|
3037
|
+
headers: headerParameters,
|
|
3038
|
+
query: queryParameters,
|
|
3039
|
+
}];
|
|
3040
|
+
});
|
|
3041
|
+
});
|
|
3042
|
+
};
|
|
2377
3043
|
/**
|
|
2378
3044
|
*/
|
|
2379
3045
|
ProjectsServerApi.prototype.listUsersRaw = function (requestParameters, initOverrides) {
|
|
2380
3046
|
return __awaiter(this, void 0, void 0, function () {
|
|
2381
|
-
var
|
|
3047
|
+
var requestOptions, response;
|
|
2382
3048
|
return __generator(this, function (_a) {
|
|
2383
3049
|
switch (_a.label) {
|
|
2384
|
-
case 0:
|
|
2385
|
-
if (requestParameters['projectId'] == null) {
|
|
2386
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listUsers().');
|
|
2387
|
-
}
|
|
2388
|
-
queryParameters = {};
|
|
2389
|
-
if (requestParameters['minTime'] != null) {
|
|
2390
|
-
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2391
|
-
}
|
|
2392
|
-
if (requestParameters['maxTime'] != null) {
|
|
2393
|
-
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2394
|
-
}
|
|
2395
|
-
if (requestParameters['nextToken'] != null) {
|
|
2396
|
-
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
2397
|
-
}
|
|
2398
|
-
headerParameters = {};
|
|
2399
|
-
urlPath = "/api/v1/projects/{projectId}/users";
|
|
2400
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2401
|
-
return [4 /*yield*/, this.request({
|
|
2402
|
-
path: urlPath,
|
|
2403
|
-
method: 'GET',
|
|
2404
|
-
headers: headerParameters,
|
|
2405
|
-
query: queryParameters,
|
|
2406
|
-
}, initOverrides)];
|
|
3050
|
+
case 0: return [4 /*yield*/, this.listUsersRequestOpts(requestParameters)];
|
|
2407
3051
|
case 1:
|
|
3052
|
+
requestOptions = _a.sent();
|
|
3053
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3054
|
+
case 2:
|
|
2408
3055
|
response = _a.sent();
|
|
2409
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
3056
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseUserObject_1.PaginatedResponseUserObjectFromJSON)(jsonValue); })];
|
|
2410
3057
|
}
|
|
2411
3058
|
});
|
|
2412
3059
|
});
|
|
@@ -2427,43 +3074,56 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2427
3074
|
});
|
|
2428
3075
|
});
|
|
2429
3076
|
};
|
|
3077
|
+
/**
|
|
3078
|
+
* Creates request options for listWebAppDeployments without sending the request
|
|
3079
|
+
*/
|
|
3080
|
+
ProjectsServerApi.prototype.listWebAppDeploymentsRequestOpts = function (requestParameters) {
|
|
3081
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3082
|
+
var queryParameters, headerParameters, urlPath;
|
|
3083
|
+
return __generator(this, function (_a) {
|
|
3084
|
+
if (requestParameters['projectId'] == null) {
|
|
3085
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listWebAppDeployments().');
|
|
3086
|
+
}
|
|
3087
|
+
if (requestParameters['webAppId'] == null) {
|
|
3088
|
+
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling listWebAppDeployments().');
|
|
3089
|
+
}
|
|
3090
|
+
queryParameters = {};
|
|
3091
|
+
if (requestParameters['minTime'] != null) {
|
|
3092
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
3093
|
+
}
|
|
3094
|
+
if (requestParameters['maxTime'] != null) {
|
|
3095
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
3096
|
+
}
|
|
3097
|
+
if (requestParameters['nextToken'] != null) {
|
|
3098
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
3099
|
+
}
|
|
3100
|
+
headerParameters = {};
|
|
3101
|
+
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/deployments";
|
|
3102
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3103
|
+
urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
|
|
3104
|
+
return [2 /*return*/, {
|
|
3105
|
+
path: urlPath,
|
|
3106
|
+
method: 'GET',
|
|
3107
|
+
headers: headerParameters,
|
|
3108
|
+
query: queryParameters,
|
|
3109
|
+
}];
|
|
3110
|
+
});
|
|
3111
|
+
});
|
|
3112
|
+
};
|
|
2430
3113
|
/**
|
|
2431
3114
|
*/
|
|
2432
3115
|
ProjectsServerApi.prototype.listWebAppDeploymentsRaw = function (requestParameters, initOverrides) {
|
|
2433
3116
|
return __awaiter(this, void 0, void 0, function () {
|
|
2434
|
-
var
|
|
3117
|
+
var requestOptions, response;
|
|
2435
3118
|
return __generator(this, function (_a) {
|
|
2436
3119
|
switch (_a.label) {
|
|
2437
|
-
case 0:
|
|
2438
|
-
if (requestParameters['projectId'] == null) {
|
|
2439
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listWebAppDeployments().');
|
|
2440
|
-
}
|
|
2441
|
-
if (requestParameters['webAppId'] == null) {
|
|
2442
|
-
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling listWebAppDeployments().');
|
|
2443
|
-
}
|
|
2444
|
-
queryParameters = {};
|
|
2445
|
-
if (requestParameters['minTime'] != null) {
|
|
2446
|
-
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2447
|
-
}
|
|
2448
|
-
if (requestParameters['maxTime'] != null) {
|
|
2449
|
-
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2450
|
-
}
|
|
2451
|
-
if (requestParameters['nextToken'] != null) {
|
|
2452
|
-
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
2453
|
-
}
|
|
2454
|
-
headerParameters = {};
|
|
2455
|
-
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/deployments";
|
|
2456
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2457
|
-
urlPath = urlPath.replace("{".concat("webAppId", "}"), encodeURIComponent(String(requestParameters['webAppId'])));
|
|
2458
|
-
return [4 /*yield*/, this.request({
|
|
2459
|
-
path: urlPath,
|
|
2460
|
-
method: 'GET',
|
|
2461
|
-
headers: headerParameters,
|
|
2462
|
-
query: queryParameters,
|
|
2463
|
-
}, initOverrides)];
|
|
3120
|
+
case 0: return [4 /*yield*/, this.listWebAppDeploymentsRequestOpts(requestParameters)];
|
|
2464
3121
|
case 1:
|
|
3122
|
+
requestOptions = _a.sent();
|
|
3123
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3124
|
+
case 2:
|
|
2465
3125
|
response = _a.sent();
|
|
2466
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
3126
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseWebAppBuildRequestObject_1.PaginatedResponseWebAppBuildRequestObjectFromJSON)(jsonValue); })];
|
|
2467
3127
|
}
|
|
2468
3128
|
});
|
|
2469
3129
|
});
|
|
@@ -2484,30 +3144,43 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2484
3144
|
});
|
|
2485
3145
|
});
|
|
2486
3146
|
};
|
|
3147
|
+
/**
|
|
3148
|
+
* Creates request options for listWebApps without sending the request
|
|
3149
|
+
*/
|
|
3150
|
+
ProjectsServerApi.prototype.listWebAppsRequestOpts = function (requestParameters) {
|
|
3151
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3152
|
+
var queryParameters, headerParameters, urlPath;
|
|
3153
|
+
return __generator(this, function (_a) {
|
|
3154
|
+
if (requestParameters['projectId'] == null) {
|
|
3155
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listWebApps().');
|
|
3156
|
+
}
|
|
3157
|
+
queryParameters = {};
|
|
3158
|
+
headerParameters = {};
|
|
3159
|
+
urlPath = "/api/v1/projects/{projectId}/web-apps";
|
|
3160
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3161
|
+
return [2 /*return*/, {
|
|
3162
|
+
path: urlPath,
|
|
3163
|
+
method: 'GET',
|
|
3164
|
+
headers: headerParameters,
|
|
3165
|
+
query: queryParameters,
|
|
3166
|
+
}];
|
|
3167
|
+
});
|
|
3168
|
+
});
|
|
3169
|
+
};
|
|
2487
3170
|
/**
|
|
2488
3171
|
*/
|
|
2489
3172
|
ProjectsServerApi.prototype.listWebAppsRaw = function (requestParameters, initOverrides) {
|
|
2490
3173
|
return __awaiter(this, void 0, void 0, function () {
|
|
2491
|
-
var
|
|
3174
|
+
var requestOptions, response;
|
|
2492
3175
|
return __generator(this, function (_a) {
|
|
2493
3176
|
switch (_a.label) {
|
|
2494
|
-
case 0:
|
|
2495
|
-
if (requestParameters['projectId'] == null) {
|
|
2496
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listWebApps().');
|
|
2497
|
-
}
|
|
2498
|
-
queryParameters = {};
|
|
2499
|
-
headerParameters = {};
|
|
2500
|
-
urlPath = "/api/v1/projects/{projectId}/web-apps";
|
|
2501
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2502
|
-
return [4 /*yield*/, this.request({
|
|
2503
|
-
path: urlPath,
|
|
2504
|
-
method: 'GET',
|
|
2505
|
-
headers: headerParameters,
|
|
2506
|
-
query: queryParameters,
|
|
2507
|
-
}, initOverrides)];
|
|
3177
|
+
case 0: return [4 /*yield*/, this.listWebAppsRequestOpts(requestParameters)];
|
|
2508
3178
|
case 1:
|
|
3179
|
+
requestOptions = _a.sent();
|
|
3180
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3181
|
+
case 2:
|
|
2509
3182
|
response = _a.sent();
|
|
2510
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(
|
|
3183
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(WebAppObject_1.WebAppObjectFromJSON); })];
|
|
2511
3184
|
}
|
|
2512
3185
|
});
|
|
2513
3186
|
});
|
|
@@ -2529,112 +3202,116 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2529
3202
|
});
|
|
2530
3203
|
};
|
|
2531
3204
|
/**
|
|
3205
|
+
* Creates request options for putUserCustomAttributes without sending the request
|
|
2532
3206
|
*/
|
|
2533
|
-
ProjectsServerApi.prototype.
|
|
3207
|
+
ProjectsServerApi.prototype.putUserCustomAttributesRequestOpts = function (requestParameters) {
|
|
2534
3208
|
return __awaiter(this, void 0, void 0, function () {
|
|
2535
|
-
var queryParameters, headerParameters, urlPath
|
|
3209
|
+
var queryParameters, headerParameters, urlPath;
|
|
2536
3210
|
return __generator(this, function (_a) {
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
if (requestParameters['userId'] == null) {
|
|
2540
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling putUserCustomAttributes().');
|
|
2541
|
-
}
|
|
2542
|
-
if (requestParameters['projectId'] == null) {
|
|
2543
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling putUserCustomAttributes().');
|
|
2544
|
-
}
|
|
2545
|
-
if (requestParameters['requestBody'] == null) {
|
|
2546
|
-
throw new runtime.RequiredError('requestBody', 'Required parameter "requestBody" was null or undefined when calling putUserCustomAttributes().');
|
|
2547
|
-
}
|
|
2548
|
-
queryParameters = {};
|
|
2549
|
-
headerParameters = {};
|
|
2550
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2551
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/custom-attributes";
|
|
2552
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
2553
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2554
|
-
return [4 /*yield*/, this.request({
|
|
2555
|
-
path: urlPath,
|
|
2556
|
-
method: 'PUT',
|
|
2557
|
-
headers: headerParameters,
|
|
2558
|
-
query: queryParameters,
|
|
2559
|
-
body: requestParameters['requestBody'],
|
|
2560
|
-
}, initOverrides)];
|
|
2561
|
-
case 1:
|
|
2562
|
-
response = _a.sent();
|
|
2563
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserObjectFromJSON)(jsonValue); })];
|
|
3211
|
+
if (requestParameters['userId'] == null) {
|
|
3212
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling putUserCustomAttributes().');
|
|
2564
3213
|
}
|
|
3214
|
+
if (requestParameters['projectId'] == null) {
|
|
3215
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling putUserCustomAttributes().');
|
|
3216
|
+
}
|
|
3217
|
+
if (requestParameters['requestBody'] == null) {
|
|
3218
|
+
throw new runtime.RequiredError('requestBody', 'Required parameter "requestBody" was null or undefined when calling putUserCustomAttributes().');
|
|
3219
|
+
}
|
|
3220
|
+
queryParameters = {};
|
|
3221
|
+
headerParameters = {};
|
|
3222
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3223
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/custom-attributes";
|
|
3224
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
3225
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3226
|
+
return [2 /*return*/, {
|
|
3227
|
+
path: urlPath,
|
|
3228
|
+
method: 'PUT',
|
|
3229
|
+
headers: headerParameters,
|
|
3230
|
+
query: queryParameters,
|
|
3231
|
+
body: requestParameters['requestBody'],
|
|
3232
|
+
}];
|
|
2565
3233
|
});
|
|
2566
3234
|
});
|
|
2567
3235
|
};
|
|
2568
3236
|
/**
|
|
2569
3237
|
*/
|
|
2570
|
-
ProjectsServerApi.prototype.
|
|
3238
|
+
ProjectsServerApi.prototype.putUserCustomAttributesRaw = function (requestParameters, initOverrides) {
|
|
2571
3239
|
return __awaiter(this, void 0, void 0, function () {
|
|
2572
|
-
var response;
|
|
3240
|
+
var requestOptions, response;
|
|
2573
3241
|
return __generator(this, function (_a) {
|
|
2574
3242
|
switch (_a.label) {
|
|
2575
|
-
case 0: return [4 /*yield*/, this.
|
|
3243
|
+
case 0: return [4 /*yield*/, this.putUserCustomAttributesRequestOpts(requestParameters)];
|
|
2576
3244
|
case 1:
|
|
3245
|
+
requestOptions = _a.sent();
|
|
3246
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3247
|
+
case 2:
|
|
2577
3248
|
response = _a.sent();
|
|
2578
|
-
return [
|
|
2579
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
3249
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserObject_1.UserObjectFromJSON)(jsonValue); })];
|
|
2580
3250
|
}
|
|
2581
3251
|
});
|
|
2582
3252
|
});
|
|
2583
3253
|
};
|
|
2584
3254
|
/**
|
|
2585
3255
|
*/
|
|
2586
|
-
ProjectsServerApi.prototype.
|
|
3256
|
+
ProjectsServerApi.prototype.putUserCustomAttributes = function (requestParameters, initOverrides) {
|
|
2587
3257
|
return __awaiter(this, void 0, void 0, function () {
|
|
2588
|
-
var
|
|
3258
|
+
var response;
|
|
2589
3259
|
return __generator(this, function (_a) {
|
|
2590
3260
|
switch (_a.label) {
|
|
2591
|
-
case 0:
|
|
2592
|
-
if (requestParameters['projectId'] == null) {
|
|
2593
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling reUploadContent1().');
|
|
2594
|
-
}
|
|
2595
|
-
if (requestParameters['userId'] == null) {
|
|
2596
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling reUploadContent1().');
|
|
2597
|
-
}
|
|
2598
|
-
if (requestParameters['contentId'] == null) {
|
|
2599
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling reUploadContent1().');
|
|
2600
|
-
}
|
|
2601
|
-
if (requestParameters['createContentUploadLinkRequest'] == null) {
|
|
2602
|
-
throw new runtime.RequiredError('createContentUploadLinkRequest', 'Required parameter "createContentUploadLinkRequest" was null or undefined when calling reUploadContent1().');
|
|
2603
|
-
}
|
|
2604
|
-
queryParameters = {};
|
|
2605
|
-
headerParameters = {};
|
|
2606
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2607
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/upload-links";
|
|
2608
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2609
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
2610
|
-
urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
|
|
2611
|
-
return [4 /*yield*/, this.request({
|
|
2612
|
-
path: urlPath,
|
|
2613
|
-
method: 'POST',
|
|
2614
|
-
headers: headerParameters,
|
|
2615
|
-
query: queryParameters,
|
|
2616
|
-
body: (0, index_1.CreateContentUploadLinkRequestToJSON)(requestParameters['createContentUploadLinkRequest']),
|
|
2617
|
-
}, initOverrides)];
|
|
3261
|
+
case 0: return [4 /*yield*/, this.putUserCustomAttributesRaw(requestParameters, initOverrides)];
|
|
2618
3262
|
case 1:
|
|
2619
3263
|
response = _a.sent();
|
|
2620
|
-
return [
|
|
3264
|
+
return [4 /*yield*/, response.value()];
|
|
3265
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
2621
3266
|
}
|
|
2622
3267
|
});
|
|
2623
3268
|
});
|
|
2624
3269
|
};
|
|
2625
3270
|
/**
|
|
3271
|
+
* Creates request options for searchLogLines without sending the request
|
|
2626
3272
|
*/
|
|
2627
|
-
ProjectsServerApi.prototype.
|
|
3273
|
+
ProjectsServerApi.prototype.searchLogLinesRequestOpts = function (requestParameters) {
|
|
2628
3274
|
return __awaiter(this, void 0, void 0, function () {
|
|
2629
|
-
var
|
|
3275
|
+
var queryParameters, headerParameters, urlPath;
|
|
2630
3276
|
return __generator(this, function (_a) {
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
3277
|
+
if (requestParameters['projectId'] == null) {
|
|
3278
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling searchLogLines().');
|
|
3279
|
+
}
|
|
3280
|
+
if (requestParameters['serviceId'] == null) {
|
|
3281
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling searchLogLines().');
|
|
2637
3282
|
}
|
|
3283
|
+
if (requestParameters['query'] == null) {
|
|
3284
|
+
throw new runtime.RequiredError('query', 'Required parameter "query" was null or undefined when calling searchLogLines().');
|
|
3285
|
+
}
|
|
3286
|
+
queryParameters = {};
|
|
3287
|
+
if (requestParameters['query'] != null) {
|
|
3288
|
+
queryParameters['query'] = requestParameters['query'];
|
|
3289
|
+
}
|
|
3290
|
+
if (requestParameters['minTime'] != null) {
|
|
3291
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
3292
|
+
}
|
|
3293
|
+
if (requestParameters['maxTime'] != null) {
|
|
3294
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
3295
|
+
}
|
|
3296
|
+
if (requestParameters['requestId'] != null) {
|
|
3297
|
+
queryParameters['requestId'] = requestParameters['requestId'];
|
|
3298
|
+
}
|
|
3299
|
+
if (requestParameters['level'] != null) {
|
|
3300
|
+
queryParameters['level'] = requestParameters['level'];
|
|
3301
|
+
}
|
|
3302
|
+
if (requestParameters['nextToken'] != null) {
|
|
3303
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
3304
|
+
}
|
|
3305
|
+
headerParameters = {};
|
|
3306
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/log-search";
|
|
3307
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3308
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
3309
|
+
return [2 /*return*/, {
|
|
3310
|
+
path: urlPath,
|
|
3311
|
+
method: 'GET',
|
|
3312
|
+
headers: headerParameters,
|
|
3313
|
+
query: queryParameters,
|
|
3314
|
+
}];
|
|
2638
3315
|
});
|
|
2639
3316
|
});
|
|
2640
3317
|
};
|
|
@@ -2642,51 +3319,16 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2642
3319
|
*/
|
|
2643
3320
|
ProjectsServerApi.prototype.searchLogLinesRaw = function (requestParameters, initOverrides) {
|
|
2644
3321
|
return __awaiter(this, void 0, void 0, function () {
|
|
2645
|
-
var
|
|
3322
|
+
var requestOptions, response;
|
|
2646
3323
|
return __generator(this, function (_a) {
|
|
2647
3324
|
switch (_a.label) {
|
|
2648
|
-
case 0:
|
|
2649
|
-
if (requestParameters['projectId'] == null) {
|
|
2650
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling searchLogLines().');
|
|
2651
|
-
}
|
|
2652
|
-
if (requestParameters['serviceId'] == null) {
|
|
2653
|
-
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling searchLogLines().');
|
|
2654
|
-
}
|
|
2655
|
-
if (requestParameters['query'] == null) {
|
|
2656
|
-
throw new runtime.RequiredError('query', 'Required parameter "query" was null or undefined when calling searchLogLines().');
|
|
2657
|
-
}
|
|
2658
|
-
queryParameters = {};
|
|
2659
|
-
if (requestParameters['query'] != null) {
|
|
2660
|
-
queryParameters['query'] = requestParameters['query'];
|
|
2661
|
-
}
|
|
2662
|
-
if (requestParameters['minTime'] != null) {
|
|
2663
|
-
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
2664
|
-
}
|
|
2665
|
-
if (requestParameters['maxTime'] != null) {
|
|
2666
|
-
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
2667
|
-
}
|
|
2668
|
-
if (requestParameters['requestId'] != null) {
|
|
2669
|
-
queryParameters['requestId'] = requestParameters['requestId'];
|
|
2670
|
-
}
|
|
2671
|
-
if (requestParameters['level'] != null) {
|
|
2672
|
-
queryParameters['level'] = requestParameters['level'];
|
|
2673
|
-
}
|
|
2674
|
-
if (requestParameters['nextToken'] != null) {
|
|
2675
|
-
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
2676
|
-
}
|
|
2677
|
-
headerParameters = {};
|
|
2678
|
-
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/log-search";
|
|
2679
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2680
|
-
urlPath = urlPath.replace("{".concat("serviceId", "}"), encodeURIComponent(String(requestParameters['serviceId'])));
|
|
2681
|
-
return [4 /*yield*/, this.request({
|
|
2682
|
-
path: urlPath,
|
|
2683
|
-
method: 'GET',
|
|
2684
|
-
headers: headerParameters,
|
|
2685
|
-
query: queryParameters,
|
|
2686
|
-
}, initOverrides)];
|
|
3325
|
+
case 0: return [4 /*yield*/, this.searchLogLinesRequestOpts(requestParameters)];
|
|
2687
3326
|
case 1:
|
|
3327
|
+
requestOptions = _a.sent();
|
|
3328
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3329
|
+
case 2:
|
|
2688
3330
|
response = _a.sent();
|
|
2689
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
3331
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseLogLineObject_1.PaginatedResponseLogLineObjectFromJSON)(jsonValue); })];
|
|
2690
3332
|
}
|
|
2691
3333
|
});
|
|
2692
3334
|
});
|
|
@@ -2707,37 +3349,50 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2707
3349
|
});
|
|
2708
3350
|
});
|
|
2709
3351
|
};
|
|
3352
|
+
/**
|
|
3353
|
+
* Creates request options for sendUserEmail without sending the request
|
|
3354
|
+
*/
|
|
3355
|
+
ProjectsServerApi.prototype.sendUserEmailRequestOpts = function (requestParameters) {
|
|
3356
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3357
|
+
var queryParameters, headerParameters, urlPath;
|
|
3358
|
+
return __generator(this, function (_a) {
|
|
3359
|
+
if (requestParameters['userId'] == null) {
|
|
3360
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling sendUserEmail().');
|
|
3361
|
+
}
|
|
3362
|
+
if (requestParameters['projectId'] == null) {
|
|
3363
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling sendUserEmail().');
|
|
3364
|
+
}
|
|
3365
|
+
if (requestParameters['sendUserEmailRequest'] == null) {
|
|
3366
|
+
throw new runtime.RequiredError('sendUserEmailRequest', 'Required parameter "sendUserEmailRequest" was null or undefined when calling sendUserEmail().');
|
|
3367
|
+
}
|
|
3368
|
+
queryParameters = {};
|
|
3369
|
+
headerParameters = {};
|
|
3370
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3371
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/email";
|
|
3372
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
3373
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3374
|
+
return [2 /*return*/, {
|
|
3375
|
+
path: urlPath,
|
|
3376
|
+
method: 'POST',
|
|
3377
|
+
headers: headerParameters,
|
|
3378
|
+
query: queryParameters,
|
|
3379
|
+
body: (0, SendUserEmailRequest_1.SendUserEmailRequestToJSON)(requestParameters['sendUserEmailRequest']),
|
|
3380
|
+
}];
|
|
3381
|
+
});
|
|
3382
|
+
});
|
|
3383
|
+
};
|
|
2710
3384
|
/**
|
|
2711
3385
|
*/
|
|
2712
3386
|
ProjectsServerApi.prototype.sendUserEmailRaw = function (requestParameters, initOverrides) {
|
|
2713
3387
|
return __awaiter(this, void 0, void 0, function () {
|
|
2714
|
-
var
|
|
3388
|
+
var requestOptions, response;
|
|
2715
3389
|
return __generator(this, function (_a) {
|
|
2716
3390
|
switch (_a.label) {
|
|
2717
|
-
case 0:
|
|
2718
|
-
if (requestParameters['userId'] == null) {
|
|
2719
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling sendUserEmail().');
|
|
2720
|
-
}
|
|
2721
|
-
if (requestParameters['projectId'] == null) {
|
|
2722
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling sendUserEmail().');
|
|
2723
|
-
}
|
|
2724
|
-
if (requestParameters['sendUserEmailRequest'] == null) {
|
|
2725
|
-
throw new runtime.RequiredError('sendUserEmailRequest', 'Required parameter "sendUserEmailRequest" was null or undefined when calling sendUserEmail().');
|
|
2726
|
-
}
|
|
2727
|
-
queryParameters = {};
|
|
2728
|
-
headerParameters = {};
|
|
2729
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2730
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/email";
|
|
2731
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
2732
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2733
|
-
return [4 /*yield*/, this.request({
|
|
2734
|
-
path: urlPath,
|
|
2735
|
-
method: 'POST',
|
|
2736
|
-
headers: headerParameters,
|
|
2737
|
-
query: queryParameters,
|
|
2738
|
-
body: (0, index_1.SendUserEmailRequestToJSON)(requestParameters['sendUserEmailRequest']),
|
|
2739
|
-
}, initOverrides)];
|
|
3391
|
+
case 0: return [4 /*yield*/, this.sendUserEmailRequestOpts(requestParameters)];
|
|
2740
3392
|
case 1:
|
|
3393
|
+
requestOptions = _a.sent();
|
|
3394
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3395
|
+
case 2:
|
|
2741
3396
|
response = _a.sent();
|
|
2742
3397
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
2743
3398
|
return [2 /*return*/, new runtime.JSONApiResponse(response)];
|
|
@@ -2766,37 +3421,50 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2766
3421
|
});
|
|
2767
3422
|
});
|
|
2768
3423
|
};
|
|
3424
|
+
/**
|
|
3425
|
+
* Creates request options for sendUserSms without sending the request
|
|
3426
|
+
*/
|
|
3427
|
+
ProjectsServerApi.prototype.sendUserSmsRequestOpts = function (requestParameters) {
|
|
3428
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3429
|
+
var queryParameters, headerParameters, urlPath;
|
|
3430
|
+
return __generator(this, function (_a) {
|
|
3431
|
+
if (requestParameters['userId'] == null) {
|
|
3432
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling sendUserSms().');
|
|
3433
|
+
}
|
|
3434
|
+
if (requestParameters['projectId'] == null) {
|
|
3435
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling sendUserSms().');
|
|
3436
|
+
}
|
|
3437
|
+
if (requestParameters['sendUserSmsRequest'] == null) {
|
|
3438
|
+
throw new runtime.RequiredError('sendUserSmsRequest', 'Required parameter "sendUserSmsRequest" was null or undefined when calling sendUserSms().');
|
|
3439
|
+
}
|
|
3440
|
+
queryParameters = {};
|
|
3441
|
+
headerParameters = {};
|
|
3442
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3443
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/sms";
|
|
3444
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
3445
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3446
|
+
return [2 /*return*/, {
|
|
3447
|
+
path: urlPath,
|
|
3448
|
+
method: 'POST',
|
|
3449
|
+
headers: headerParameters,
|
|
3450
|
+
query: queryParameters,
|
|
3451
|
+
body: (0, SendUserSmsRequest_1.SendUserSmsRequestToJSON)(requestParameters['sendUserSmsRequest']),
|
|
3452
|
+
}];
|
|
3453
|
+
});
|
|
3454
|
+
});
|
|
3455
|
+
};
|
|
2769
3456
|
/**
|
|
2770
3457
|
*/
|
|
2771
3458
|
ProjectsServerApi.prototype.sendUserSmsRaw = function (requestParameters, initOverrides) {
|
|
2772
3459
|
return __awaiter(this, void 0, void 0, function () {
|
|
2773
|
-
var
|
|
3460
|
+
var requestOptions, response;
|
|
2774
3461
|
return __generator(this, function (_a) {
|
|
2775
3462
|
switch (_a.label) {
|
|
2776
|
-
case 0:
|
|
2777
|
-
if (requestParameters['userId'] == null) {
|
|
2778
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling sendUserSms().');
|
|
2779
|
-
}
|
|
2780
|
-
if (requestParameters['projectId'] == null) {
|
|
2781
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling sendUserSms().');
|
|
2782
|
-
}
|
|
2783
|
-
if (requestParameters['sendUserSmsRequest'] == null) {
|
|
2784
|
-
throw new runtime.RequiredError('sendUserSmsRequest', 'Required parameter "sendUserSmsRequest" was null or undefined when calling sendUserSms().');
|
|
2785
|
-
}
|
|
2786
|
-
queryParameters = {};
|
|
2787
|
-
headerParameters = {};
|
|
2788
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2789
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/sms";
|
|
2790
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
2791
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2792
|
-
return [4 /*yield*/, this.request({
|
|
2793
|
-
path: urlPath,
|
|
2794
|
-
method: 'POST',
|
|
2795
|
-
headers: headerParameters,
|
|
2796
|
-
query: queryParameters,
|
|
2797
|
-
body: (0, index_1.SendUserSmsRequestToJSON)(requestParameters['sendUserSmsRequest']),
|
|
2798
|
-
}, initOverrides)];
|
|
3463
|
+
case 0: return [4 /*yield*/, this.sendUserSmsRequestOpts(requestParameters)];
|
|
2799
3464
|
case 1:
|
|
3465
|
+
requestOptions = _a.sent();
|
|
3466
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3467
|
+
case 2:
|
|
2800
3468
|
response = _a.sent();
|
|
2801
3469
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
2802
3470
|
return [2 /*return*/, new runtime.JSONApiResponse(response)];
|
|
@@ -2825,34 +3493,47 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2825
3493
|
});
|
|
2826
3494
|
});
|
|
2827
3495
|
};
|
|
3496
|
+
/**
|
|
3497
|
+
* Creates request options for suspendUser without sending the request
|
|
3498
|
+
*/
|
|
3499
|
+
ProjectsServerApi.prototype.suspendUserRequestOpts = function (requestParameters) {
|
|
3500
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3501
|
+
var queryParameters, headerParameters, urlPath;
|
|
3502
|
+
return __generator(this, function (_a) {
|
|
3503
|
+
if (requestParameters['userId'] == null) {
|
|
3504
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling suspendUser().');
|
|
3505
|
+
}
|
|
3506
|
+
if (requestParameters['projectId'] == null) {
|
|
3507
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling suspendUser().');
|
|
3508
|
+
}
|
|
3509
|
+
queryParameters = {};
|
|
3510
|
+
headerParameters = {};
|
|
3511
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/suspend";
|
|
3512
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
3513
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3514
|
+
return [2 /*return*/, {
|
|
3515
|
+
path: urlPath,
|
|
3516
|
+
method: 'POST',
|
|
3517
|
+
headers: headerParameters,
|
|
3518
|
+
query: queryParameters,
|
|
3519
|
+
}];
|
|
3520
|
+
});
|
|
3521
|
+
});
|
|
3522
|
+
};
|
|
2828
3523
|
/**
|
|
2829
3524
|
*/
|
|
2830
3525
|
ProjectsServerApi.prototype.suspendUserRaw = function (requestParameters, initOverrides) {
|
|
2831
3526
|
return __awaiter(this, void 0, void 0, function () {
|
|
2832
|
-
var
|
|
3527
|
+
var requestOptions, response;
|
|
2833
3528
|
return __generator(this, function (_a) {
|
|
2834
3529
|
switch (_a.label) {
|
|
2835
|
-
case 0:
|
|
2836
|
-
if (requestParameters['userId'] == null) {
|
|
2837
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling suspendUser().');
|
|
2838
|
-
}
|
|
2839
|
-
if (requestParameters['projectId'] == null) {
|
|
2840
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling suspendUser().');
|
|
2841
|
-
}
|
|
2842
|
-
queryParameters = {};
|
|
2843
|
-
headerParameters = {};
|
|
2844
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/suspend";
|
|
2845
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
2846
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2847
|
-
return [4 /*yield*/, this.request({
|
|
2848
|
-
path: urlPath,
|
|
2849
|
-
method: 'POST',
|
|
2850
|
-
headers: headerParameters,
|
|
2851
|
-
query: queryParameters,
|
|
2852
|
-
}, initOverrides)];
|
|
3530
|
+
case 0: return [4 /*yield*/, this.suspendUserRequestOpts(requestParameters)];
|
|
2853
3531
|
case 1:
|
|
3532
|
+
requestOptions = _a.sent();
|
|
3533
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3534
|
+
case 2:
|
|
2854
3535
|
response = _a.sent();
|
|
2855
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
3536
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserObject_1.UserObjectFromJSON)(jsonValue); })];
|
|
2856
3537
|
}
|
|
2857
3538
|
});
|
|
2858
3539
|
});
|
|
@@ -2873,39 +3554,52 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2873
3554
|
});
|
|
2874
3555
|
});
|
|
2875
3556
|
};
|
|
3557
|
+
/**
|
|
3558
|
+
* Creates request options for testInvocation without sending the request
|
|
3559
|
+
*/
|
|
3560
|
+
ProjectsServerApi.prototype.testInvocationRequestOpts = function (requestParameters) {
|
|
3561
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3562
|
+
var queryParameters, headerParameters, urlPath;
|
|
3563
|
+
return __generator(this, function (_a) {
|
|
3564
|
+
if (requestParameters['projectId'] == null) {
|
|
3565
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling testInvocation().');
|
|
3566
|
+
}
|
|
3567
|
+
if (requestParameters['serviceId'] == null) {
|
|
3568
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling testInvocation().');
|
|
3569
|
+
}
|
|
3570
|
+
if (requestParameters['testInvocationRequest'] == null) {
|
|
3571
|
+
throw new runtime.RequiredError('testInvocationRequest', 'Required parameter "testInvocationRequest" was null or undefined when calling testInvocation().');
|
|
3572
|
+
}
|
|
3573
|
+
queryParameters = {};
|
|
3574
|
+
headerParameters = {};
|
|
3575
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3576
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/test-invocation";
|
|
3577
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3578
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
3579
|
+
return [2 /*return*/, {
|
|
3580
|
+
path: urlPath,
|
|
3581
|
+
method: 'POST',
|
|
3582
|
+
headers: headerParameters,
|
|
3583
|
+
query: queryParameters,
|
|
3584
|
+
body: (0, TestInvocationRequest_1.TestInvocationRequestToJSON)(requestParameters['testInvocationRequest']),
|
|
3585
|
+
}];
|
|
3586
|
+
});
|
|
3587
|
+
});
|
|
3588
|
+
};
|
|
2876
3589
|
/**
|
|
2877
3590
|
*/
|
|
2878
3591
|
ProjectsServerApi.prototype.testInvocationRaw = function (requestParameters, initOverrides) {
|
|
2879
3592
|
return __awaiter(this, void 0, void 0, function () {
|
|
2880
|
-
var
|
|
3593
|
+
var requestOptions, response;
|
|
2881
3594
|
return __generator(this, function (_a) {
|
|
2882
3595
|
switch (_a.label) {
|
|
2883
|
-
case 0:
|
|
2884
|
-
if (requestParameters['projectId'] == null) {
|
|
2885
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling testInvocation().');
|
|
2886
|
-
}
|
|
2887
|
-
if (requestParameters['serviceId'] == null) {
|
|
2888
|
-
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling testInvocation().');
|
|
2889
|
-
}
|
|
2890
|
-
if (requestParameters['testInvocationRequest'] == null) {
|
|
2891
|
-
throw new runtime.RequiredError('testInvocationRequest', 'Required parameter "testInvocationRequest" was null or undefined when calling testInvocation().');
|
|
2892
|
-
}
|
|
2893
|
-
queryParameters = {};
|
|
2894
|
-
headerParameters = {};
|
|
2895
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2896
|
-
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/test-invocation";
|
|
2897
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2898
|
-
urlPath = urlPath.replace("{".concat("serviceId", "}"), encodeURIComponent(String(requestParameters['serviceId'])));
|
|
2899
|
-
return [4 /*yield*/, this.request({
|
|
2900
|
-
path: urlPath,
|
|
2901
|
-
method: 'POST',
|
|
2902
|
-
headers: headerParameters,
|
|
2903
|
-
query: queryParameters,
|
|
2904
|
-
body: (0, index_1.TestInvocationRequestToJSON)(requestParameters['testInvocationRequest']),
|
|
2905
|
-
}, initOverrides)];
|
|
3596
|
+
case 0: return [4 /*yield*/, this.testInvocationRequestOpts(requestParameters)];
|
|
2906
3597
|
case 1:
|
|
3598
|
+
requestOptions = _a.sent();
|
|
3599
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3600
|
+
case 2:
|
|
2907
3601
|
response = _a.sent();
|
|
2908
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
3602
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, TestInvocationResponse_1.TestInvocationResponseFromJSON)(jsonValue); })];
|
|
2909
3603
|
}
|
|
2910
3604
|
});
|
|
2911
3605
|
});
|
|
@@ -2926,43 +3620,56 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2926
3620
|
});
|
|
2927
3621
|
});
|
|
2928
3622
|
};
|
|
3623
|
+
/**
|
|
3624
|
+
* Creates request options for updateContentShares1 without sending the request
|
|
3625
|
+
*/
|
|
3626
|
+
ProjectsServerApi.prototype.updateContentShares1RequestOpts = function (requestParameters) {
|
|
3627
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3628
|
+
var queryParameters, headerParameters, urlPath;
|
|
3629
|
+
return __generator(this, function (_a) {
|
|
3630
|
+
if (requestParameters['projectId'] == null) {
|
|
3631
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateContentShares1().');
|
|
3632
|
+
}
|
|
3633
|
+
if (requestParameters['userId'] == null) {
|
|
3634
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling updateContentShares1().');
|
|
3635
|
+
}
|
|
3636
|
+
if (requestParameters['contentId'] == null) {
|
|
3637
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling updateContentShares1().');
|
|
3638
|
+
}
|
|
3639
|
+
if (requestParameters['updateContentSharesRequest'] == null) {
|
|
3640
|
+
throw new runtime.RequiredError('updateContentSharesRequest', 'Required parameter "updateContentSharesRequest" was null or undefined when calling updateContentShares1().');
|
|
3641
|
+
}
|
|
3642
|
+
queryParameters = {};
|
|
3643
|
+
headerParameters = {};
|
|
3644
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3645
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/shares";
|
|
3646
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3647
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
3648
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
3649
|
+
return [2 /*return*/, {
|
|
3650
|
+
path: urlPath,
|
|
3651
|
+
method: 'PUT',
|
|
3652
|
+
headers: headerParameters,
|
|
3653
|
+
query: queryParameters,
|
|
3654
|
+
body: (0, UpdateContentSharesRequest_1.UpdateContentSharesRequestToJSON)(requestParameters['updateContentSharesRequest']),
|
|
3655
|
+
}];
|
|
3656
|
+
});
|
|
3657
|
+
});
|
|
3658
|
+
};
|
|
2929
3659
|
/**
|
|
2930
3660
|
*/
|
|
2931
3661
|
ProjectsServerApi.prototype.updateContentShares1Raw = function (requestParameters, initOverrides) {
|
|
2932
3662
|
return __awaiter(this, void 0, void 0, function () {
|
|
2933
|
-
var
|
|
3663
|
+
var requestOptions, response;
|
|
2934
3664
|
return __generator(this, function (_a) {
|
|
2935
3665
|
switch (_a.label) {
|
|
2936
|
-
case 0:
|
|
2937
|
-
if (requestParameters['projectId'] == null) {
|
|
2938
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateContentShares1().');
|
|
2939
|
-
}
|
|
2940
|
-
if (requestParameters['userId'] == null) {
|
|
2941
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling updateContentShares1().');
|
|
2942
|
-
}
|
|
2943
|
-
if (requestParameters['contentId'] == null) {
|
|
2944
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling updateContentShares1().');
|
|
2945
|
-
}
|
|
2946
|
-
if (requestParameters['updateContentSharesRequest'] == null) {
|
|
2947
|
-
throw new runtime.RequiredError('updateContentSharesRequest', 'Required parameter "updateContentSharesRequest" was null or undefined when calling updateContentShares1().');
|
|
2948
|
-
}
|
|
2949
|
-
queryParameters = {};
|
|
2950
|
-
headerParameters = {};
|
|
2951
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2952
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/shares";
|
|
2953
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
2954
|
-
urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
|
|
2955
|
-
urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
|
|
2956
|
-
return [4 /*yield*/, this.request({
|
|
2957
|
-
path: urlPath,
|
|
2958
|
-
method: 'PUT',
|
|
2959
|
-
headers: headerParameters,
|
|
2960
|
-
query: queryParameters,
|
|
2961
|
-
body: (0, index_1.UpdateContentSharesRequestToJSON)(requestParameters['updateContentSharesRequest']),
|
|
2962
|
-
}, initOverrides)];
|
|
3666
|
+
case 0: return [4 /*yield*/, this.updateContentShares1RequestOpts(requestParameters)];
|
|
2963
3667
|
case 1:
|
|
3668
|
+
requestOptions = _a.sent();
|
|
3669
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3670
|
+
case 2:
|
|
2964
3671
|
response = _a.sent();
|
|
2965
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
3672
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContentObject_1.ContentObjectFromJSON)(jsonValue); })];
|
|
2966
3673
|
}
|
|
2967
3674
|
});
|
|
2968
3675
|
});
|
|
@@ -2983,35 +3690,48 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2983
3690
|
});
|
|
2984
3691
|
});
|
|
2985
3692
|
};
|
|
3693
|
+
/**
|
|
3694
|
+
* Creates request options for updateNotificationTemplates without sending the request
|
|
3695
|
+
*/
|
|
3696
|
+
ProjectsServerApi.prototype.updateNotificationTemplatesRequestOpts = function (requestParameters) {
|
|
3697
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3698
|
+
var queryParameters, headerParameters, urlPath;
|
|
3699
|
+
return __generator(this, function (_a) {
|
|
3700
|
+
if (requestParameters['projectId'] == null) {
|
|
3701
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateNotificationTemplates().');
|
|
3702
|
+
}
|
|
3703
|
+
if (requestParameters['updateNotificationTemplatesRequest'] == null) {
|
|
3704
|
+
throw new runtime.RequiredError('updateNotificationTemplatesRequest', 'Required parameter "updateNotificationTemplatesRequest" was null or undefined when calling updateNotificationTemplates().');
|
|
3705
|
+
}
|
|
3706
|
+
queryParameters = {};
|
|
3707
|
+
headerParameters = {};
|
|
3708
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3709
|
+
urlPath = "/api/v1/projects/{projectId}/notification-templates";
|
|
3710
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3711
|
+
return [2 /*return*/, {
|
|
3712
|
+
path: urlPath,
|
|
3713
|
+
method: 'PATCH',
|
|
3714
|
+
headers: headerParameters,
|
|
3715
|
+
query: queryParameters,
|
|
3716
|
+
body: (0, UpdateNotificationTemplatesRequest_1.UpdateNotificationTemplatesRequestToJSON)(requestParameters['updateNotificationTemplatesRequest']),
|
|
3717
|
+
}];
|
|
3718
|
+
});
|
|
3719
|
+
});
|
|
3720
|
+
};
|
|
2986
3721
|
/**
|
|
2987
3722
|
*/
|
|
2988
3723
|
ProjectsServerApi.prototype.updateNotificationTemplatesRaw = function (requestParameters, initOverrides) {
|
|
2989
3724
|
return __awaiter(this, void 0, void 0, function () {
|
|
2990
|
-
var
|
|
3725
|
+
var requestOptions, response;
|
|
2991
3726
|
return __generator(this, function (_a) {
|
|
2992
3727
|
switch (_a.label) {
|
|
2993
|
-
case 0:
|
|
2994
|
-
if (requestParameters['projectId'] == null) {
|
|
2995
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateNotificationTemplates().');
|
|
2996
|
-
}
|
|
2997
|
-
if (requestParameters['updateNotificationTemplatesRequest'] == null) {
|
|
2998
|
-
throw new runtime.RequiredError('updateNotificationTemplatesRequest', 'Required parameter "updateNotificationTemplatesRequest" was null or undefined when calling updateNotificationTemplates().');
|
|
2999
|
-
}
|
|
3000
|
-
queryParameters = {};
|
|
3001
|
-
headerParameters = {};
|
|
3002
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
3003
|
-
urlPath = "/api/v1/projects/{projectId}/notification-templates";
|
|
3004
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
3005
|
-
return [4 /*yield*/, this.request({
|
|
3006
|
-
path: urlPath,
|
|
3007
|
-
method: 'PATCH',
|
|
3008
|
-
headers: headerParameters,
|
|
3009
|
-
query: queryParameters,
|
|
3010
|
-
body: (0, index_1.UpdateNotificationTemplatesRequestToJSON)(requestParameters['updateNotificationTemplatesRequest']),
|
|
3011
|
-
}, initOverrides)];
|
|
3728
|
+
case 0: return [4 /*yield*/, this.updateNotificationTemplatesRequestOpts(requestParameters)];
|
|
3012
3729
|
case 1:
|
|
3730
|
+
requestOptions = _a.sent();
|
|
3731
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3732
|
+
case 2:
|
|
3013
3733
|
response = _a.sent();
|
|
3014
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
3734
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, NotificationTemplatesResponse_1.NotificationTemplatesResponseFromJSON)(jsonValue); })];
|
|
3015
3735
|
}
|
|
3016
3736
|
});
|
|
3017
3737
|
});
|
|
@@ -3032,39 +3752,52 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
3032
3752
|
});
|
|
3033
3753
|
});
|
|
3034
3754
|
};
|
|
3755
|
+
/**
|
|
3756
|
+
* Creates request options for updatePaymentTrigger without sending the request
|
|
3757
|
+
*/
|
|
3758
|
+
ProjectsServerApi.prototype.updatePaymentTriggerRequestOpts = function (requestParameters) {
|
|
3759
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3760
|
+
var queryParameters, headerParameters, urlPath;
|
|
3761
|
+
return __generator(this, function (_a) {
|
|
3762
|
+
if (requestParameters['projectId'] == null) {
|
|
3763
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updatePaymentTrigger().');
|
|
3764
|
+
}
|
|
3765
|
+
if (requestParameters['triggerId'] == null) {
|
|
3766
|
+
throw new runtime.RequiredError('triggerId', 'Required parameter "triggerId" was null or undefined when calling updatePaymentTrigger().');
|
|
3767
|
+
}
|
|
3768
|
+
if (requestParameters['updatePaymentTriggerRequest'] == null) {
|
|
3769
|
+
throw new runtime.RequiredError('updatePaymentTriggerRequest', 'Required parameter "updatePaymentTriggerRequest" was null or undefined when calling updatePaymentTrigger().');
|
|
3770
|
+
}
|
|
3771
|
+
queryParameters = {};
|
|
3772
|
+
headerParameters = {};
|
|
3773
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3774
|
+
urlPath = "/api/v1/projects/{projectId}/payment-triggers/{triggerId}";
|
|
3775
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3776
|
+
urlPath = urlPath.replace('{triggerId}', encodeURIComponent(String(requestParameters['triggerId'])));
|
|
3777
|
+
return [2 /*return*/, {
|
|
3778
|
+
path: urlPath,
|
|
3779
|
+
method: 'PUT',
|
|
3780
|
+
headers: headerParameters,
|
|
3781
|
+
query: queryParameters,
|
|
3782
|
+
body: (0, UpdatePaymentTriggerRequest_1.UpdatePaymentTriggerRequestToJSON)(requestParameters['updatePaymentTriggerRequest']),
|
|
3783
|
+
}];
|
|
3784
|
+
});
|
|
3785
|
+
});
|
|
3786
|
+
};
|
|
3035
3787
|
/**
|
|
3036
3788
|
*/
|
|
3037
3789
|
ProjectsServerApi.prototype.updatePaymentTriggerRaw = function (requestParameters, initOverrides) {
|
|
3038
3790
|
return __awaiter(this, void 0, void 0, function () {
|
|
3039
|
-
var
|
|
3791
|
+
var requestOptions, response;
|
|
3040
3792
|
return __generator(this, function (_a) {
|
|
3041
3793
|
switch (_a.label) {
|
|
3042
|
-
case 0:
|
|
3043
|
-
if (requestParameters['projectId'] == null) {
|
|
3044
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updatePaymentTrigger().');
|
|
3045
|
-
}
|
|
3046
|
-
if (requestParameters['triggerId'] == null) {
|
|
3047
|
-
throw new runtime.RequiredError('triggerId', 'Required parameter "triggerId" was null or undefined when calling updatePaymentTrigger().');
|
|
3048
|
-
}
|
|
3049
|
-
if (requestParameters['upsertPaymentTriggerRequest'] == null) {
|
|
3050
|
-
throw new runtime.RequiredError('upsertPaymentTriggerRequest', 'Required parameter "upsertPaymentTriggerRequest" was null or undefined when calling updatePaymentTrigger().');
|
|
3051
|
-
}
|
|
3052
|
-
queryParameters = {};
|
|
3053
|
-
headerParameters = {};
|
|
3054
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
3055
|
-
urlPath = "/api/v1/projects/{projectId}/payment-triggers/{triggerId}";
|
|
3056
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
3057
|
-
urlPath = urlPath.replace("{".concat("triggerId", "}"), encodeURIComponent(String(requestParameters['triggerId'])));
|
|
3058
|
-
return [4 /*yield*/, this.request({
|
|
3059
|
-
path: urlPath,
|
|
3060
|
-
method: 'PUT',
|
|
3061
|
-
headers: headerParameters,
|
|
3062
|
-
query: queryParameters,
|
|
3063
|
-
body: (0, index_1.UpsertPaymentTriggerRequestToJSON)(requestParameters['upsertPaymentTriggerRequest']),
|
|
3064
|
-
}, initOverrides)];
|
|
3794
|
+
case 0: return [4 /*yield*/, this.updatePaymentTriggerRequestOpts(requestParameters)];
|
|
3065
3795
|
case 1:
|
|
3796
|
+
requestOptions = _a.sent();
|
|
3797
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3798
|
+
case 2:
|
|
3066
3799
|
response = _a.sent();
|
|
3067
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
3800
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaymentTriggerConfig_1.PaymentTriggerConfigFromJSON)(jsonValue); })];
|
|
3068
3801
|
}
|
|
3069
3802
|
});
|
|
3070
3803
|
});
|
|
@@ -3085,35 +3818,48 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
3085
3818
|
});
|
|
3086
3819
|
});
|
|
3087
3820
|
};
|
|
3821
|
+
/**
|
|
3822
|
+
* Creates request options for updateProject without sending the request
|
|
3823
|
+
*/
|
|
3824
|
+
ProjectsServerApi.prototype.updateProjectRequestOpts = function (requestParameters) {
|
|
3825
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3826
|
+
var queryParameters, headerParameters, urlPath;
|
|
3827
|
+
return __generator(this, function (_a) {
|
|
3828
|
+
if (requestParameters['projectId'] == null) {
|
|
3829
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateProject().');
|
|
3830
|
+
}
|
|
3831
|
+
if (requestParameters['updateProjectRequest'] == null) {
|
|
3832
|
+
throw new runtime.RequiredError('updateProjectRequest', 'Required parameter "updateProjectRequest" was null or undefined when calling updateProject().');
|
|
3833
|
+
}
|
|
3834
|
+
queryParameters = {};
|
|
3835
|
+
headerParameters = {};
|
|
3836
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3837
|
+
urlPath = "/api/v1/projects/{projectId}";
|
|
3838
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3839
|
+
return [2 /*return*/, {
|
|
3840
|
+
path: urlPath,
|
|
3841
|
+
method: 'PATCH',
|
|
3842
|
+
headers: headerParameters,
|
|
3843
|
+
query: queryParameters,
|
|
3844
|
+
body: (0, UpdateProjectRequest_1.UpdateProjectRequestToJSON)(requestParameters['updateProjectRequest']),
|
|
3845
|
+
}];
|
|
3846
|
+
});
|
|
3847
|
+
});
|
|
3848
|
+
};
|
|
3088
3849
|
/**
|
|
3089
3850
|
*/
|
|
3090
3851
|
ProjectsServerApi.prototype.updateProjectRaw = function (requestParameters, initOverrides) {
|
|
3091
3852
|
return __awaiter(this, void 0, void 0, function () {
|
|
3092
|
-
var
|
|
3853
|
+
var requestOptions, response;
|
|
3093
3854
|
return __generator(this, function (_a) {
|
|
3094
3855
|
switch (_a.label) {
|
|
3095
|
-
case 0:
|
|
3096
|
-
if (requestParameters['projectId'] == null) {
|
|
3097
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateProject().');
|
|
3098
|
-
}
|
|
3099
|
-
if (requestParameters['updateProjectRequest'] == null) {
|
|
3100
|
-
throw new runtime.RequiredError('updateProjectRequest', 'Required parameter "updateProjectRequest" was null or undefined when calling updateProject().');
|
|
3101
|
-
}
|
|
3102
|
-
queryParameters = {};
|
|
3103
|
-
headerParameters = {};
|
|
3104
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
3105
|
-
urlPath = "/api/v1/projects/{projectId}";
|
|
3106
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
3107
|
-
return [4 /*yield*/, this.request({
|
|
3108
|
-
path: urlPath,
|
|
3109
|
-
method: 'PATCH',
|
|
3110
|
-
headers: headerParameters,
|
|
3111
|
-
query: queryParameters,
|
|
3112
|
-
body: (0, index_1.UpdateProjectRequestToJSON)(requestParameters['updateProjectRequest']),
|
|
3113
|
-
}, initOverrides)];
|
|
3856
|
+
case 0: return [4 /*yield*/, this.updateProjectRequestOpts(requestParameters)];
|
|
3114
3857
|
case 1:
|
|
3858
|
+
requestOptions = _a.sent();
|
|
3859
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3860
|
+
case 2:
|
|
3115
3861
|
response = _a.sent();
|
|
3116
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
3862
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ProjectObject_1.ProjectObjectFromJSON)(jsonValue); })];
|
|
3117
3863
|
}
|
|
3118
3864
|
});
|
|
3119
3865
|
});
|
|
@@ -3134,39 +3880,52 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
3134
3880
|
});
|
|
3135
3881
|
});
|
|
3136
3882
|
};
|
|
3883
|
+
/**
|
|
3884
|
+
* Creates request options for updateService without sending the request
|
|
3885
|
+
*/
|
|
3886
|
+
ProjectsServerApi.prototype.updateServiceRequestOpts = function (requestParameters) {
|
|
3887
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3888
|
+
var queryParameters, headerParameters, urlPath;
|
|
3889
|
+
return __generator(this, function (_a) {
|
|
3890
|
+
if (requestParameters['projectId'] == null) {
|
|
3891
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateService().');
|
|
3892
|
+
}
|
|
3893
|
+
if (requestParameters['serviceId'] == null) {
|
|
3894
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling updateService().');
|
|
3895
|
+
}
|
|
3896
|
+
if (requestParameters['updateForteServiceRequest'] == null) {
|
|
3897
|
+
throw new runtime.RequiredError('updateForteServiceRequest', 'Required parameter "updateForteServiceRequest" was null or undefined when calling updateService().');
|
|
3898
|
+
}
|
|
3899
|
+
queryParameters = {};
|
|
3900
|
+
headerParameters = {};
|
|
3901
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3902
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}";
|
|
3903
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3904
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
3905
|
+
return [2 /*return*/, {
|
|
3906
|
+
path: urlPath,
|
|
3907
|
+
method: 'PATCH',
|
|
3908
|
+
headers: headerParameters,
|
|
3909
|
+
query: queryParameters,
|
|
3910
|
+
body: (0, UpdateForteServiceRequest_1.UpdateForteServiceRequestToJSON)(requestParameters['updateForteServiceRequest']),
|
|
3911
|
+
}];
|
|
3912
|
+
});
|
|
3913
|
+
});
|
|
3914
|
+
};
|
|
3137
3915
|
/**
|
|
3138
3916
|
*/
|
|
3139
3917
|
ProjectsServerApi.prototype.updateServiceRaw = function (requestParameters, initOverrides) {
|
|
3140
3918
|
return __awaiter(this, void 0, void 0, function () {
|
|
3141
|
-
var
|
|
3919
|
+
var requestOptions, response;
|
|
3142
3920
|
return __generator(this, function (_a) {
|
|
3143
3921
|
switch (_a.label) {
|
|
3144
|
-
case 0:
|
|
3145
|
-
if (requestParameters['projectId'] == null) {
|
|
3146
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateService().');
|
|
3147
|
-
}
|
|
3148
|
-
if (requestParameters['serviceId'] == null) {
|
|
3149
|
-
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling updateService().');
|
|
3150
|
-
}
|
|
3151
|
-
if (requestParameters['updateForteServiceRequest'] == null) {
|
|
3152
|
-
throw new runtime.RequiredError('updateForteServiceRequest', 'Required parameter "updateForteServiceRequest" was null or undefined when calling updateService().');
|
|
3153
|
-
}
|
|
3154
|
-
queryParameters = {};
|
|
3155
|
-
headerParameters = {};
|
|
3156
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
3157
|
-
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}";
|
|
3158
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
3159
|
-
urlPath = urlPath.replace("{".concat("serviceId", "}"), encodeURIComponent(String(requestParameters['serviceId'])));
|
|
3160
|
-
return [4 /*yield*/, this.request({
|
|
3161
|
-
path: urlPath,
|
|
3162
|
-
method: 'PATCH',
|
|
3163
|
-
headers: headerParameters,
|
|
3164
|
-
query: queryParameters,
|
|
3165
|
-
body: (0, index_1.UpdateForteServiceRequestToJSON)(requestParameters['updateForteServiceRequest']),
|
|
3166
|
-
}, initOverrides)];
|
|
3922
|
+
case 0: return [4 /*yield*/, this.updateServiceRequestOpts(requestParameters)];
|
|
3167
3923
|
case 1:
|
|
3924
|
+
requestOptions = _a.sent();
|
|
3925
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3926
|
+
case 2:
|
|
3168
3927
|
response = _a.sent();
|
|
3169
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
3928
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UpdateForteServiceResponse_1.UpdateForteServiceResponseFromJSON)(jsonValue); })];
|
|
3170
3929
|
}
|
|
3171
3930
|
});
|
|
3172
3931
|
});
|
|
@@ -3187,39 +3946,52 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
3187
3946
|
});
|
|
3188
3947
|
});
|
|
3189
3948
|
};
|
|
3949
|
+
/**
|
|
3950
|
+
* Creates request options for updateWebApp without sending the request
|
|
3951
|
+
*/
|
|
3952
|
+
ProjectsServerApi.prototype.updateWebAppRequestOpts = function (requestParameters) {
|
|
3953
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3954
|
+
var queryParameters, headerParameters, urlPath;
|
|
3955
|
+
return __generator(this, function (_a) {
|
|
3956
|
+
if (requestParameters['projectId'] == null) {
|
|
3957
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateWebApp().');
|
|
3958
|
+
}
|
|
3959
|
+
if (requestParameters['webAppId'] == null) {
|
|
3960
|
+
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling updateWebApp().');
|
|
3961
|
+
}
|
|
3962
|
+
if (requestParameters['updateWebAppRequest'] == null) {
|
|
3963
|
+
throw new runtime.RequiredError('updateWebAppRequest', 'Required parameter "updateWebAppRequest" was null or undefined when calling updateWebApp().');
|
|
3964
|
+
}
|
|
3965
|
+
queryParameters = {};
|
|
3966
|
+
headerParameters = {};
|
|
3967
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3968
|
+
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}";
|
|
3969
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3970
|
+
urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
|
|
3971
|
+
return [2 /*return*/, {
|
|
3972
|
+
path: urlPath,
|
|
3973
|
+
method: 'PATCH',
|
|
3974
|
+
headers: headerParameters,
|
|
3975
|
+
query: queryParameters,
|
|
3976
|
+
body: (0, UpdateWebAppRequest_1.UpdateWebAppRequestToJSON)(requestParameters['updateWebAppRequest']),
|
|
3977
|
+
}];
|
|
3978
|
+
});
|
|
3979
|
+
});
|
|
3980
|
+
};
|
|
3190
3981
|
/**
|
|
3191
3982
|
*/
|
|
3192
3983
|
ProjectsServerApi.prototype.updateWebAppRaw = function (requestParameters, initOverrides) {
|
|
3193
3984
|
return __awaiter(this, void 0, void 0, function () {
|
|
3194
|
-
var
|
|
3985
|
+
var requestOptions, response;
|
|
3195
3986
|
return __generator(this, function (_a) {
|
|
3196
3987
|
switch (_a.label) {
|
|
3197
|
-
case 0:
|
|
3198
|
-
if (requestParameters['projectId'] == null) {
|
|
3199
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateWebApp().');
|
|
3200
|
-
}
|
|
3201
|
-
if (requestParameters['webAppId'] == null) {
|
|
3202
|
-
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling updateWebApp().');
|
|
3203
|
-
}
|
|
3204
|
-
if (requestParameters['updateWebAppRequest'] == null) {
|
|
3205
|
-
throw new runtime.RequiredError('updateWebAppRequest', 'Required parameter "updateWebAppRequest" was null or undefined when calling updateWebApp().');
|
|
3206
|
-
}
|
|
3207
|
-
queryParameters = {};
|
|
3208
|
-
headerParameters = {};
|
|
3209
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
3210
|
-
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}";
|
|
3211
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
3212
|
-
urlPath = urlPath.replace("{".concat("webAppId", "}"), encodeURIComponent(String(requestParameters['webAppId'])));
|
|
3213
|
-
return [4 /*yield*/, this.request({
|
|
3214
|
-
path: urlPath,
|
|
3215
|
-
method: 'PATCH',
|
|
3216
|
-
headers: headerParameters,
|
|
3217
|
-
query: queryParameters,
|
|
3218
|
-
body: (0, index_1.UpdateWebAppRequestToJSON)(requestParameters['updateWebAppRequest']),
|
|
3219
|
-
}, initOverrides)];
|
|
3988
|
+
case 0: return [4 /*yield*/, this.updateWebAppRequestOpts(requestParameters)];
|
|
3220
3989
|
case 1:
|
|
3990
|
+
requestOptions = _a.sent();
|
|
3991
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3992
|
+
case 2:
|
|
3221
3993
|
response = _a.sent();
|
|
3222
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
3994
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UpdateWebAppResponse_1.UpdateWebAppResponseFromJSON)(jsonValue); })];
|
|
3223
3995
|
}
|
|
3224
3996
|
});
|
|
3225
3997
|
});
|
|
@@ -3280,6 +4052,9 @@ exports.ListUserActionLogsActionTypeType = {
|
|
|
3280
4052
|
USER_LOGIN_OTP_SENT: 'USER_LOGIN_OTP_SENT',
|
|
3281
4053
|
PAYMENT_CREATED: 'PAYMENT_CREATED',
|
|
3282
4054
|
WELCOME_MESSAGE_SENT: 'WELCOME_MESSAGE_SENT',
|
|
4055
|
+
USER_INVITE_CREATED: 'USER_INVITE_CREATED',
|
|
4056
|
+
USER_INVITE_REVOKED: 'USER_INVITE_REVOKED',
|
|
4057
|
+
USER_INVITE_ACCEPTED: 'USER_INVITE_ACCEPTED',
|
|
3283
4058
|
EMAIL_SENT: 'EMAIL_SENT',
|
|
3284
4059
|
SMS_SENT: 'SMS_SENT'
|
|
3285
4060
|
};
|