@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,30 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
67
|
exports.UsersServerApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
|
-
var
|
|
69
|
+
var AddContactMethodRequest_1 = require("../models/AddContactMethodRequest");
|
|
70
|
+
var CompleteOtpLoginRequest_1 = require("../models/CompleteOtpLoginRequest");
|
|
71
|
+
var ContactMethod_1 = require("../models/ContactMethod");
|
|
72
|
+
var ContentObject_1 = require("../models/ContentObject");
|
|
73
|
+
var CreateContentUploadLinkRequest_1 = require("../models/CreateContentUploadLinkRequest");
|
|
74
|
+
var CreateContentUploadLinkResponse_1 = require("../models/CreateContentUploadLinkResponse");
|
|
75
|
+
var CreateOtpLoginRequest_1 = require("../models/CreateOtpLoginRequest");
|
|
76
|
+
var CreateOtpLoginResponse_1 = require("../models/CreateOtpLoginResponse");
|
|
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 CreateUserInviteRequest_1 = require("../models/CreateUserInviteRequest");
|
|
82
|
+
var GetContentDownloadLinkResponse_1 = require("../models/GetContentDownloadLinkResponse");
|
|
83
|
+
var ListContentResponse_1 = require("../models/ListContentResponse");
|
|
84
|
+
var ListUserInvitesResponse_1 = require("../models/ListUserInvitesResponse");
|
|
85
|
+
var LoginUserResponse_1 = require("../models/LoginUserResponse");
|
|
86
|
+
var PaginatedResponsePaymentObject_1 = require("../models/PaginatedResponsePaymentObject");
|
|
87
|
+
var PendingUserInviteObject_1 = require("../models/PendingUserInviteObject");
|
|
88
|
+
var RegisterUserRequest_1 = require("../models/RegisterUserRequest");
|
|
89
|
+
var RegisterUserResponse_1 = require("../models/RegisterUserResponse");
|
|
90
|
+
var RenewSessionTokenResponse_1 = require("../models/RenewSessionTokenResponse");
|
|
91
|
+
var UpdateContentSharesRequest_1 = require("../models/UpdateContentSharesRequest");
|
|
92
|
+
var UserObject_1 = require("../models/UserObject");
|
|
70
93
|
/**
|
|
71
94
|
*
|
|
72
95
|
*/
|
|
@@ -75,39 +98,52 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
75
98
|
function UsersServerApi() {
|
|
76
99
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* Creates request options for completeOtpLogin without sending the request
|
|
103
|
+
*/
|
|
104
|
+
UsersServerApi.prototype.completeOtpLoginRequestOpts = function (requestParameters) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
106
|
+
var queryParameters, headerParameters, urlPath;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
if (requestParameters['projectId'] == null) {
|
|
109
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling completeOtpLogin().');
|
|
110
|
+
}
|
|
111
|
+
if (requestParameters['pendingLoginId'] == null) {
|
|
112
|
+
throw new runtime.RequiredError('pendingLoginId', 'Required parameter "pendingLoginId" was null or undefined when calling completeOtpLogin().');
|
|
113
|
+
}
|
|
114
|
+
if (requestParameters['completeOtpLoginRequest'] == null) {
|
|
115
|
+
throw new runtime.RequiredError('completeOtpLoginRequest', 'Required parameter "completeOtpLoginRequest" was null or undefined when calling completeOtpLogin().');
|
|
116
|
+
}
|
|
117
|
+
queryParameters = {};
|
|
118
|
+
headerParameters = {};
|
|
119
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
120
|
+
urlPath = "/api/v1/{projectId}/users/otp-login/{pendingLoginId}";
|
|
121
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
122
|
+
urlPath = urlPath.replace('{pendingLoginId}', encodeURIComponent(String(requestParameters['pendingLoginId'])));
|
|
123
|
+
return [2 /*return*/, {
|
|
124
|
+
path: urlPath,
|
|
125
|
+
method: 'POST',
|
|
126
|
+
headers: headerParameters,
|
|
127
|
+
query: queryParameters,
|
|
128
|
+
body: (0, CompleteOtpLoginRequest_1.CompleteOtpLoginRequestToJSON)(requestParameters['completeOtpLoginRequest']),
|
|
129
|
+
}];
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
};
|
|
78
133
|
/**
|
|
79
134
|
*/
|
|
80
135
|
UsersServerApi.prototype.completeOtpLoginRaw = function (requestParameters, initOverrides) {
|
|
81
136
|
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
-
var
|
|
137
|
+
var requestOptions, response;
|
|
83
138
|
return __generator(this, function (_a) {
|
|
84
139
|
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 completeOtpLogin().');
|
|
88
|
-
}
|
|
89
|
-
if (requestParameters['pendingLoginId'] == null) {
|
|
90
|
-
throw new runtime.RequiredError('pendingLoginId', 'Required parameter "pendingLoginId" was null or undefined when calling completeOtpLogin().');
|
|
91
|
-
}
|
|
92
|
-
if (requestParameters['completeOtpLoginRequest'] == null) {
|
|
93
|
-
throw new runtime.RequiredError('completeOtpLoginRequest', 'Required parameter "completeOtpLoginRequest" was null or undefined when calling completeOtpLogin().');
|
|
94
|
-
}
|
|
95
|
-
queryParameters = {};
|
|
96
|
-
headerParameters = {};
|
|
97
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
98
|
-
urlPath = "/api/v1/{projectId}/users/otp-login/{pendingLoginId}";
|
|
99
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
100
|
-
urlPath = urlPath.replace("{".concat("pendingLoginId", "}"), encodeURIComponent(String(requestParameters['pendingLoginId'])));
|
|
101
|
-
return [4 /*yield*/, this.request({
|
|
102
|
-
path: urlPath,
|
|
103
|
-
method: 'POST',
|
|
104
|
-
headers: headerParameters,
|
|
105
|
-
query: queryParameters,
|
|
106
|
-
body: (0, index_1.CompleteOtpLoginRequestToJSON)(requestParameters['completeOtpLoginRequest']),
|
|
107
|
-
}, initOverrides)];
|
|
140
|
+
case 0: return [4 /*yield*/, this.completeOtpLoginRequestOpts(requestParameters)];
|
|
108
141
|
case 1:
|
|
142
|
+
requestOptions = _a.sent();
|
|
143
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
144
|
+
case 2:
|
|
109
145
|
response = _a.sent();
|
|
110
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
146
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, LoginUserResponse_1.LoginUserResponseFromJSON)(jsonValue); })];
|
|
111
147
|
}
|
|
112
148
|
});
|
|
113
149
|
});
|
|
@@ -128,35 +164,48 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
128
164
|
});
|
|
129
165
|
});
|
|
130
166
|
};
|
|
167
|
+
/**
|
|
168
|
+
* Creates request options for createContactMethod without sending the request
|
|
169
|
+
*/
|
|
170
|
+
UsersServerApi.prototype.createContactMethodRequestOpts = function (requestParameters) {
|
|
171
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
172
|
+
var queryParameters, headerParameters, urlPath;
|
|
173
|
+
return __generator(this, function (_a) {
|
|
174
|
+
if (requestParameters['projectId'] == null) {
|
|
175
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createContactMethod().');
|
|
176
|
+
}
|
|
177
|
+
if (requestParameters['addContactMethodRequest'] == null) {
|
|
178
|
+
throw new runtime.RequiredError('addContactMethodRequest', 'Required parameter "addContactMethodRequest" was null or undefined when calling createContactMethod().');
|
|
179
|
+
}
|
|
180
|
+
queryParameters = {};
|
|
181
|
+
headerParameters = {};
|
|
182
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
183
|
+
urlPath = "/api/v1/{projectId}/users/me/contact-methods";
|
|
184
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
185
|
+
return [2 /*return*/, {
|
|
186
|
+
path: urlPath,
|
|
187
|
+
method: 'POST',
|
|
188
|
+
headers: headerParameters,
|
|
189
|
+
query: queryParameters,
|
|
190
|
+
body: (0, AddContactMethodRequest_1.AddContactMethodRequestToJSON)(requestParameters['addContactMethodRequest']),
|
|
191
|
+
}];
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
};
|
|
131
195
|
/**
|
|
132
196
|
*/
|
|
133
197
|
UsersServerApi.prototype.createContactMethodRaw = function (requestParameters, initOverrides) {
|
|
134
198
|
return __awaiter(this, void 0, void 0, function () {
|
|
135
|
-
var
|
|
199
|
+
var requestOptions, response;
|
|
136
200
|
return __generator(this, function (_a) {
|
|
137
201
|
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 createContactMethod().');
|
|
141
|
-
}
|
|
142
|
-
if (requestParameters['addContactMethodRequest'] == null) {
|
|
143
|
-
throw new runtime.RequiredError('addContactMethodRequest', 'Required parameter "addContactMethodRequest" was null or undefined when calling createContactMethod().');
|
|
144
|
-
}
|
|
145
|
-
queryParameters = {};
|
|
146
|
-
headerParameters = {};
|
|
147
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
148
|
-
urlPath = "/api/v1/{projectId}/users/me/contact-methods";
|
|
149
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
150
|
-
return [4 /*yield*/, this.request({
|
|
151
|
-
path: urlPath,
|
|
152
|
-
method: 'POST',
|
|
153
|
-
headers: headerParameters,
|
|
154
|
-
query: queryParameters,
|
|
155
|
-
body: (0, index_1.AddContactMethodRequestToJSON)(requestParameters['addContactMethodRequest']),
|
|
156
|
-
}, initOverrides)];
|
|
202
|
+
case 0: return [4 /*yield*/, this.createContactMethodRequestOpts(requestParameters)];
|
|
157
203
|
case 1:
|
|
204
|
+
requestOptions = _a.sent();
|
|
205
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
206
|
+
case 2:
|
|
158
207
|
response = _a.sent();
|
|
159
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
208
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContactMethod_1.ContactMethodFromJSON)(jsonValue); })];
|
|
160
209
|
}
|
|
161
210
|
});
|
|
162
211
|
});
|
|
@@ -177,35 +226,48 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
177
226
|
});
|
|
178
227
|
});
|
|
179
228
|
};
|
|
229
|
+
/**
|
|
230
|
+
* Creates request options for createContentUploadLink without sending the request
|
|
231
|
+
*/
|
|
232
|
+
UsersServerApi.prototype.createContentUploadLinkRequestOpts = function (requestParameters) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
234
|
+
var queryParameters, headerParameters, urlPath;
|
|
235
|
+
return __generator(this, function (_a) {
|
|
236
|
+
if (requestParameters['projectId'] == null) {
|
|
237
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createContentUploadLink().');
|
|
238
|
+
}
|
|
239
|
+
if (requestParameters['createContentUploadLinkRequest'] == null) {
|
|
240
|
+
throw new runtime.RequiredError('createContentUploadLinkRequest', 'Required parameter "createContentUploadLinkRequest" was null or undefined when calling createContentUploadLink().');
|
|
241
|
+
}
|
|
242
|
+
queryParameters = {};
|
|
243
|
+
headerParameters = {};
|
|
244
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
245
|
+
urlPath = "/api/v1/{projectId}/users/me/content/upload-links";
|
|
246
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
247
|
+
return [2 /*return*/, {
|
|
248
|
+
path: urlPath,
|
|
249
|
+
method: 'POST',
|
|
250
|
+
headers: headerParameters,
|
|
251
|
+
query: queryParameters,
|
|
252
|
+
body: (0, CreateContentUploadLinkRequest_1.CreateContentUploadLinkRequestToJSON)(requestParameters['createContentUploadLinkRequest']),
|
|
253
|
+
}];
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
};
|
|
180
257
|
/**
|
|
181
258
|
*/
|
|
182
259
|
UsersServerApi.prototype.createContentUploadLinkRaw = function (requestParameters, initOverrides) {
|
|
183
260
|
return __awaiter(this, void 0, void 0, function () {
|
|
184
|
-
var
|
|
261
|
+
var requestOptions, response;
|
|
185
262
|
return __generator(this, function (_a) {
|
|
186
263
|
switch (_a.label) {
|
|
187
|
-
case 0:
|
|
188
|
-
if (requestParameters['projectId'] == null) {
|
|
189
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createContentUploadLink().');
|
|
190
|
-
}
|
|
191
|
-
if (requestParameters['createContentUploadLinkRequest'] == null) {
|
|
192
|
-
throw new runtime.RequiredError('createContentUploadLinkRequest', 'Required parameter "createContentUploadLinkRequest" was null or undefined when calling createContentUploadLink().');
|
|
193
|
-
}
|
|
194
|
-
queryParameters = {};
|
|
195
|
-
headerParameters = {};
|
|
196
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
197
|
-
urlPath = "/api/v1/{projectId}/users/me/content/upload-links";
|
|
198
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
199
|
-
return [4 /*yield*/, this.request({
|
|
200
|
-
path: urlPath,
|
|
201
|
-
method: 'POST',
|
|
202
|
-
headers: headerParameters,
|
|
203
|
-
query: queryParameters,
|
|
204
|
-
body: (0, index_1.CreateContentUploadLinkRequestToJSON)(requestParameters['createContentUploadLinkRequest']),
|
|
205
|
-
}, initOverrides)];
|
|
264
|
+
case 0: return [4 /*yield*/, this.createContentUploadLinkRequestOpts(requestParameters)];
|
|
206
265
|
case 1:
|
|
266
|
+
requestOptions = _a.sent();
|
|
267
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
268
|
+
case 2:
|
|
207
269
|
response = _a.sent();
|
|
208
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
270
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateContentUploadLinkResponse_1.CreateContentUploadLinkResponseFromJSON)(jsonValue); })];
|
|
209
271
|
}
|
|
210
272
|
});
|
|
211
273
|
});
|
|
@@ -226,35 +288,48 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
226
288
|
});
|
|
227
289
|
});
|
|
228
290
|
};
|
|
291
|
+
/**
|
|
292
|
+
* Creates request options for createOtpLogin without sending the request
|
|
293
|
+
*/
|
|
294
|
+
UsersServerApi.prototype.createOtpLoginRequestOpts = function (requestParameters) {
|
|
295
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
296
|
+
var queryParameters, headerParameters, urlPath;
|
|
297
|
+
return __generator(this, function (_a) {
|
|
298
|
+
if (requestParameters['projectId'] == null) {
|
|
299
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createOtpLogin().');
|
|
300
|
+
}
|
|
301
|
+
if (requestParameters['createOtpLoginRequest'] == null) {
|
|
302
|
+
throw new runtime.RequiredError('createOtpLoginRequest', 'Required parameter "createOtpLoginRequest" was null or undefined when calling createOtpLogin().');
|
|
303
|
+
}
|
|
304
|
+
queryParameters = {};
|
|
305
|
+
headerParameters = {};
|
|
306
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
307
|
+
urlPath = "/api/v1/{projectId}/users/otp-login";
|
|
308
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
309
|
+
return [2 /*return*/, {
|
|
310
|
+
path: urlPath,
|
|
311
|
+
method: 'POST',
|
|
312
|
+
headers: headerParameters,
|
|
313
|
+
query: queryParameters,
|
|
314
|
+
body: (0, CreateOtpLoginRequest_1.CreateOtpLoginRequestToJSON)(requestParameters['createOtpLoginRequest']),
|
|
315
|
+
}];
|
|
316
|
+
});
|
|
317
|
+
});
|
|
318
|
+
};
|
|
229
319
|
/**
|
|
230
320
|
*/
|
|
231
321
|
UsersServerApi.prototype.createOtpLoginRaw = function (requestParameters, initOverrides) {
|
|
232
322
|
return __awaiter(this, void 0, void 0, function () {
|
|
233
|
-
var
|
|
323
|
+
var requestOptions, response;
|
|
234
324
|
return __generator(this, function (_a) {
|
|
235
325
|
switch (_a.label) {
|
|
236
|
-
case 0:
|
|
237
|
-
if (requestParameters['projectId'] == null) {
|
|
238
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createOtpLogin().');
|
|
239
|
-
}
|
|
240
|
-
if (requestParameters['createOtpLoginRequest'] == null) {
|
|
241
|
-
throw new runtime.RequiredError('createOtpLoginRequest', 'Required parameter "createOtpLoginRequest" was null or undefined when calling createOtpLogin().');
|
|
242
|
-
}
|
|
243
|
-
queryParameters = {};
|
|
244
|
-
headerParameters = {};
|
|
245
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
246
|
-
urlPath = "/api/v1/{projectId}/users/otp-login";
|
|
247
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
248
|
-
return [4 /*yield*/, this.request({
|
|
249
|
-
path: urlPath,
|
|
250
|
-
method: 'POST',
|
|
251
|
-
headers: headerParameters,
|
|
252
|
-
query: queryParameters,
|
|
253
|
-
body: (0, index_1.CreateOtpLoginRequestToJSON)(requestParameters['createOtpLoginRequest']),
|
|
254
|
-
}, initOverrides)];
|
|
326
|
+
case 0: return [4 /*yield*/, this.createOtpLoginRequestOpts(requestParameters)];
|
|
255
327
|
case 1:
|
|
328
|
+
requestOptions = _a.sent();
|
|
329
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
330
|
+
case 2:
|
|
256
331
|
response = _a.sent();
|
|
257
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
332
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateOtpLoginResponse_1.CreateOtpLoginResponseFromJSON)(jsonValue); })];
|
|
258
333
|
}
|
|
259
334
|
});
|
|
260
335
|
});
|
|
@@ -275,35 +350,48 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
275
350
|
});
|
|
276
351
|
});
|
|
277
352
|
};
|
|
353
|
+
/**
|
|
354
|
+
* Creates request options for createPayment without sending the request
|
|
355
|
+
*/
|
|
356
|
+
UsersServerApi.prototype.createPaymentRequestOpts = function (requestParameters) {
|
|
357
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
358
|
+
var queryParameters, headerParameters, urlPath;
|
|
359
|
+
return __generator(this, function (_a) {
|
|
360
|
+
if (requestParameters['projectId'] == null) {
|
|
361
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createPayment().');
|
|
362
|
+
}
|
|
363
|
+
if (requestParameters['createPaymentRequest'] == null) {
|
|
364
|
+
throw new runtime.RequiredError('createPaymentRequest', 'Required parameter "createPaymentRequest" was null or undefined when calling createPayment().');
|
|
365
|
+
}
|
|
366
|
+
queryParameters = {};
|
|
367
|
+
headerParameters = {};
|
|
368
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
369
|
+
urlPath = "/api/v1/{projectId}/users/me/payments";
|
|
370
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
371
|
+
return [2 /*return*/, {
|
|
372
|
+
path: urlPath,
|
|
373
|
+
method: 'POST',
|
|
374
|
+
headers: headerParameters,
|
|
375
|
+
query: queryParameters,
|
|
376
|
+
body: (0, CreatePaymentRequest_1.CreatePaymentRequestToJSON)(requestParameters['createPaymentRequest']),
|
|
377
|
+
}];
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
};
|
|
278
381
|
/**
|
|
279
382
|
*/
|
|
280
383
|
UsersServerApi.prototype.createPaymentRaw = function (requestParameters, initOverrides) {
|
|
281
384
|
return __awaiter(this, void 0, void 0, function () {
|
|
282
|
-
var
|
|
385
|
+
var requestOptions, response;
|
|
283
386
|
return __generator(this, function (_a) {
|
|
284
387
|
switch (_a.label) {
|
|
285
|
-
case 0:
|
|
286
|
-
if (requestParameters['projectId'] == null) {
|
|
287
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createPayment().');
|
|
288
|
-
}
|
|
289
|
-
if (requestParameters['createPaymentRequest'] == null) {
|
|
290
|
-
throw new runtime.RequiredError('createPaymentRequest', 'Required parameter "createPaymentRequest" was null or undefined when calling createPayment().');
|
|
291
|
-
}
|
|
292
|
-
queryParameters = {};
|
|
293
|
-
headerParameters = {};
|
|
294
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
295
|
-
urlPath = "/api/v1/{projectId}/users/me/payments";
|
|
296
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
297
|
-
return [4 /*yield*/, this.request({
|
|
298
|
-
path: urlPath,
|
|
299
|
-
method: 'POST',
|
|
300
|
-
headers: headerParameters,
|
|
301
|
-
query: queryParameters,
|
|
302
|
-
body: (0, index_1.CreatePaymentRequestToJSON)(requestParameters['createPaymentRequest']),
|
|
303
|
-
}, initOverrides)];
|
|
388
|
+
case 0: return [4 /*yield*/, this.createPaymentRequestOpts(requestParameters)];
|
|
304
389
|
case 1:
|
|
390
|
+
requestOptions = _a.sent();
|
|
391
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
392
|
+
case 2:
|
|
305
393
|
response = _a.sent();
|
|
306
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
394
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreatePaymentResponse_1.CreatePaymentResponseFromJSON)(jsonValue); })];
|
|
307
395
|
}
|
|
308
396
|
});
|
|
309
397
|
});
|
|
@@ -324,35 +412,48 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
324
412
|
});
|
|
325
413
|
});
|
|
326
414
|
};
|
|
415
|
+
/**
|
|
416
|
+
* Creates request options for createPaymentPreview without sending the request
|
|
417
|
+
*/
|
|
418
|
+
UsersServerApi.prototype.createPaymentPreviewRequestOpts = function (requestParameters) {
|
|
419
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
420
|
+
var queryParameters, headerParameters, urlPath;
|
|
421
|
+
return __generator(this, function (_a) {
|
|
422
|
+
if (requestParameters['projectId'] == null) {
|
|
423
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createPaymentPreview().');
|
|
424
|
+
}
|
|
425
|
+
if (requestParameters['createPaymentPreviewRequest'] == null) {
|
|
426
|
+
throw new runtime.RequiredError('createPaymentPreviewRequest', 'Required parameter "createPaymentPreviewRequest" was null or undefined when calling createPaymentPreview().');
|
|
427
|
+
}
|
|
428
|
+
queryParameters = {};
|
|
429
|
+
headerParameters = {};
|
|
430
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
431
|
+
urlPath = "/api/v1/{projectId}/users/me/payments/preview";
|
|
432
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
433
|
+
return [2 /*return*/, {
|
|
434
|
+
path: urlPath,
|
|
435
|
+
method: 'POST',
|
|
436
|
+
headers: headerParameters,
|
|
437
|
+
query: queryParameters,
|
|
438
|
+
body: (0, CreatePaymentPreviewRequest_1.CreatePaymentPreviewRequestToJSON)(requestParameters['createPaymentPreviewRequest']),
|
|
439
|
+
}];
|
|
440
|
+
});
|
|
441
|
+
});
|
|
442
|
+
};
|
|
327
443
|
/**
|
|
328
444
|
*/
|
|
329
445
|
UsersServerApi.prototype.createPaymentPreviewRaw = function (requestParameters, initOverrides) {
|
|
330
446
|
return __awaiter(this, void 0, void 0, function () {
|
|
331
|
-
var
|
|
447
|
+
var requestOptions, response;
|
|
332
448
|
return __generator(this, function (_a) {
|
|
333
449
|
switch (_a.label) {
|
|
334
|
-
case 0:
|
|
335
|
-
if (requestParameters['projectId'] == null) {
|
|
336
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createPaymentPreview().');
|
|
337
|
-
}
|
|
338
|
-
if (requestParameters['createPaymentPreviewRequest'] == null) {
|
|
339
|
-
throw new runtime.RequiredError('createPaymentPreviewRequest', 'Required parameter "createPaymentPreviewRequest" was null or undefined when calling createPaymentPreview().');
|
|
340
|
-
}
|
|
341
|
-
queryParameters = {};
|
|
342
|
-
headerParameters = {};
|
|
343
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
344
|
-
urlPath = "/api/v1/{projectId}/users/me/payments/preview";
|
|
345
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
346
|
-
return [4 /*yield*/, this.request({
|
|
347
|
-
path: urlPath,
|
|
348
|
-
method: 'POST',
|
|
349
|
-
headers: headerParameters,
|
|
350
|
-
query: queryParameters,
|
|
351
|
-
body: (0, index_1.CreatePaymentPreviewRequestToJSON)(requestParameters['createPaymentPreviewRequest']),
|
|
352
|
-
}, initOverrides)];
|
|
450
|
+
case 0: return [4 /*yield*/, this.createPaymentPreviewRequestOpts(requestParameters)];
|
|
353
451
|
case 1:
|
|
452
|
+
requestOptions = _a.sent();
|
|
453
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
454
|
+
case 2:
|
|
354
455
|
response = _a.sent();
|
|
355
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
456
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreatePaymentPreviewResponse_1.CreatePaymentPreviewResponseFromJSON)(jsonValue); })];
|
|
356
457
|
}
|
|
357
458
|
});
|
|
358
459
|
});
|
|
@@ -373,32 +474,107 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
373
474
|
});
|
|
374
475
|
});
|
|
375
476
|
};
|
|
477
|
+
/**
|
|
478
|
+
* Creates request options for createUserInvite without sending the request
|
|
479
|
+
*/
|
|
480
|
+
UsersServerApi.prototype.createUserInviteRequestOpts = function (requestParameters) {
|
|
481
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
482
|
+
var queryParameters, headerParameters, urlPath;
|
|
483
|
+
return __generator(this, function (_a) {
|
|
484
|
+
if (requestParameters['projectId'] == null) {
|
|
485
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createUserInvite().');
|
|
486
|
+
}
|
|
487
|
+
if (requestParameters['createUserInviteRequest'] == null) {
|
|
488
|
+
throw new runtime.RequiredError('createUserInviteRequest', 'Required parameter "createUserInviteRequest" was null or undefined when calling createUserInvite().');
|
|
489
|
+
}
|
|
490
|
+
queryParameters = {};
|
|
491
|
+
headerParameters = {};
|
|
492
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
493
|
+
urlPath = "/api/v1/{projectId}/users/me/invites";
|
|
494
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
495
|
+
return [2 /*return*/, {
|
|
496
|
+
path: urlPath,
|
|
497
|
+
method: 'POST',
|
|
498
|
+
headers: headerParameters,
|
|
499
|
+
query: queryParameters,
|
|
500
|
+
body: (0, CreateUserInviteRequest_1.CreateUserInviteRequestToJSON)(requestParameters['createUserInviteRequest']),
|
|
501
|
+
}];
|
|
502
|
+
});
|
|
503
|
+
});
|
|
504
|
+
};
|
|
505
|
+
/**
|
|
506
|
+
*/
|
|
507
|
+
UsersServerApi.prototype.createUserInviteRaw = function (requestParameters, initOverrides) {
|
|
508
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
509
|
+
var requestOptions, response;
|
|
510
|
+
return __generator(this, function (_a) {
|
|
511
|
+
switch (_a.label) {
|
|
512
|
+
case 0: return [4 /*yield*/, this.createUserInviteRequestOpts(requestParameters)];
|
|
513
|
+
case 1:
|
|
514
|
+
requestOptions = _a.sent();
|
|
515
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
516
|
+
case 2:
|
|
517
|
+
response = _a.sent();
|
|
518
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PendingUserInviteObject_1.PendingUserInviteObjectFromJSON)(jsonValue); })];
|
|
519
|
+
}
|
|
520
|
+
});
|
|
521
|
+
});
|
|
522
|
+
};
|
|
523
|
+
/**
|
|
524
|
+
*/
|
|
525
|
+
UsersServerApi.prototype.createUserInvite = function (requestParameters, initOverrides) {
|
|
526
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
527
|
+
var response;
|
|
528
|
+
return __generator(this, function (_a) {
|
|
529
|
+
switch (_a.label) {
|
|
530
|
+
case 0: return [4 /*yield*/, this.createUserInviteRaw(requestParameters, initOverrides)];
|
|
531
|
+
case 1:
|
|
532
|
+
response = _a.sent();
|
|
533
|
+
return [4 /*yield*/, response.value()];
|
|
534
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
});
|
|
538
|
+
};
|
|
539
|
+
/**
|
|
540
|
+
* Creates request options for deleteContactMethod without sending the request
|
|
541
|
+
*/
|
|
542
|
+
UsersServerApi.prototype.deleteContactMethodRequestOpts = function (requestParameters) {
|
|
543
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
544
|
+
var queryParameters, headerParameters, urlPath;
|
|
545
|
+
return __generator(this, function (_a) {
|
|
546
|
+
if (requestParameters['projectId'] == null) {
|
|
547
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteContactMethod().');
|
|
548
|
+
}
|
|
549
|
+
if (requestParameters['contactMethodId'] == null) {
|
|
550
|
+
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling deleteContactMethod().');
|
|
551
|
+
}
|
|
552
|
+
queryParameters = {};
|
|
553
|
+
headerParameters = {};
|
|
554
|
+
urlPath = "/api/v1/{projectId}/users/me/contact-methods/{contactMethodId}";
|
|
555
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
556
|
+
urlPath = urlPath.replace('{contactMethodId}', encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
557
|
+
return [2 /*return*/, {
|
|
558
|
+
path: urlPath,
|
|
559
|
+
method: 'DELETE',
|
|
560
|
+
headers: headerParameters,
|
|
561
|
+
query: queryParameters,
|
|
562
|
+
}];
|
|
563
|
+
});
|
|
564
|
+
});
|
|
565
|
+
};
|
|
376
566
|
/**
|
|
377
567
|
*/
|
|
378
568
|
UsersServerApi.prototype.deleteContactMethodRaw = function (requestParameters, initOverrides) {
|
|
379
569
|
return __awaiter(this, void 0, void 0, function () {
|
|
380
|
-
var
|
|
570
|
+
var requestOptions, response;
|
|
381
571
|
return __generator(this, function (_a) {
|
|
382
572
|
switch (_a.label) {
|
|
383
|
-
case 0:
|
|
384
|
-
if (requestParameters['projectId'] == null) {
|
|
385
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteContactMethod().');
|
|
386
|
-
}
|
|
387
|
-
if (requestParameters['contactMethodId'] == null) {
|
|
388
|
-
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling deleteContactMethod().');
|
|
389
|
-
}
|
|
390
|
-
queryParameters = {};
|
|
391
|
-
headerParameters = {};
|
|
392
|
-
urlPath = "/api/v1/{projectId}/users/me/contact-methods/{contactMethodId}";
|
|
393
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
394
|
-
urlPath = urlPath.replace("{".concat("contactMethodId", "}"), encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
395
|
-
return [4 /*yield*/, this.request({
|
|
396
|
-
path: urlPath,
|
|
397
|
-
method: 'DELETE',
|
|
398
|
-
headers: headerParameters,
|
|
399
|
-
query: queryParameters,
|
|
400
|
-
}, initOverrides)];
|
|
573
|
+
case 0: return [4 /*yield*/, this.deleteContactMethodRequestOpts(requestParameters)];
|
|
401
574
|
case 1:
|
|
575
|
+
requestOptions = _a.sent();
|
|
576
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
577
|
+
case 2:
|
|
402
578
|
response = _a.sent();
|
|
403
579
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
404
580
|
}
|
|
@@ -419,32 +595,45 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
419
595
|
});
|
|
420
596
|
});
|
|
421
597
|
};
|
|
598
|
+
/**
|
|
599
|
+
* Creates request options for deleteContent without sending the request
|
|
600
|
+
*/
|
|
601
|
+
UsersServerApi.prototype.deleteContentRequestOpts = function (requestParameters) {
|
|
602
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
603
|
+
var queryParameters, headerParameters, urlPath;
|
|
604
|
+
return __generator(this, function (_a) {
|
|
605
|
+
if (requestParameters['projectId'] == null) {
|
|
606
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteContent().');
|
|
607
|
+
}
|
|
608
|
+
if (requestParameters['contentId'] == null) {
|
|
609
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling deleteContent().');
|
|
610
|
+
}
|
|
611
|
+
queryParameters = {};
|
|
612
|
+
headerParameters = {};
|
|
613
|
+
urlPath = "/api/v1/{projectId}/users/me/content/{contentId}";
|
|
614
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
615
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
616
|
+
return [2 /*return*/, {
|
|
617
|
+
path: urlPath,
|
|
618
|
+
method: 'DELETE',
|
|
619
|
+
headers: headerParameters,
|
|
620
|
+
query: queryParameters,
|
|
621
|
+
}];
|
|
622
|
+
});
|
|
623
|
+
});
|
|
624
|
+
};
|
|
422
625
|
/**
|
|
423
626
|
*/
|
|
424
627
|
UsersServerApi.prototype.deleteContentRaw = function (requestParameters, initOverrides) {
|
|
425
628
|
return __awaiter(this, void 0, void 0, function () {
|
|
426
|
-
var
|
|
629
|
+
var requestOptions, response;
|
|
427
630
|
return __generator(this, function (_a) {
|
|
428
631
|
switch (_a.label) {
|
|
429
|
-
case 0:
|
|
430
|
-
if (requestParameters['projectId'] == null) {
|
|
431
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteContent().');
|
|
432
|
-
}
|
|
433
|
-
if (requestParameters['contentId'] == null) {
|
|
434
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling deleteContent().');
|
|
435
|
-
}
|
|
436
|
-
queryParameters = {};
|
|
437
|
-
headerParameters = {};
|
|
438
|
-
urlPath = "/api/v1/{projectId}/users/me/content/{contentId}";
|
|
439
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
440
|
-
urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
|
|
441
|
-
return [4 /*yield*/, this.request({
|
|
442
|
-
path: urlPath,
|
|
443
|
-
method: 'DELETE',
|
|
444
|
-
headers: headerParameters,
|
|
445
|
-
query: queryParameters,
|
|
446
|
-
}, initOverrides)];
|
|
632
|
+
case 0: return [4 /*yield*/, this.deleteContentRequestOpts(requestParameters)];
|
|
447
633
|
case 1:
|
|
634
|
+
requestOptions = _a.sent();
|
|
635
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
636
|
+
case 2:
|
|
448
637
|
response = _a.sent();
|
|
449
638
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
450
639
|
}
|
|
@@ -465,34 +654,47 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
465
654
|
});
|
|
466
655
|
});
|
|
467
656
|
};
|
|
657
|
+
/**
|
|
658
|
+
* Creates request options for finalizeContent without sending the request
|
|
659
|
+
*/
|
|
660
|
+
UsersServerApi.prototype.finalizeContentRequestOpts = function (requestParameters) {
|
|
661
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
662
|
+
var queryParameters, headerParameters, urlPath;
|
|
663
|
+
return __generator(this, function (_a) {
|
|
664
|
+
if (requestParameters['projectId'] == null) {
|
|
665
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling finalizeContent().');
|
|
666
|
+
}
|
|
667
|
+
if (requestParameters['pendingContentId'] == null) {
|
|
668
|
+
throw new runtime.RequiredError('pendingContentId', 'Required parameter "pendingContentId" was null or undefined when calling finalizeContent().');
|
|
669
|
+
}
|
|
670
|
+
queryParameters = {};
|
|
671
|
+
headerParameters = {};
|
|
672
|
+
urlPath = "/api/v1/{projectId}/users/me/content/{pendingContentId}";
|
|
673
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
674
|
+
urlPath = urlPath.replace('{pendingContentId}', encodeURIComponent(String(requestParameters['pendingContentId'])));
|
|
675
|
+
return [2 /*return*/, {
|
|
676
|
+
path: urlPath,
|
|
677
|
+
method: 'POST',
|
|
678
|
+
headers: headerParameters,
|
|
679
|
+
query: queryParameters,
|
|
680
|
+
}];
|
|
681
|
+
});
|
|
682
|
+
});
|
|
683
|
+
};
|
|
468
684
|
/**
|
|
469
685
|
*/
|
|
470
686
|
UsersServerApi.prototype.finalizeContentRaw = function (requestParameters, initOverrides) {
|
|
471
687
|
return __awaiter(this, void 0, void 0, function () {
|
|
472
|
-
var
|
|
688
|
+
var requestOptions, response;
|
|
473
689
|
return __generator(this, function (_a) {
|
|
474
690
|
switch (_a.label) {
|
|
475
|
-
case 0:
|
|
476
|
-
if (requestParameters['projectId'] == null) {
|
|
477
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling finalizeContent().');
|
|
478
|
-
}
|
|
479
|
-
if (requestParameters['contentId'] == null) {
|
|
480
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling finalizeContent().');
|
|
481
|
-
}
|
|
482
|
-
queryParameters = {};
|
|
483
|
-
headerParameters = {};
|
|
484
|
-
urlPath = "/api/v1/{projectId}/users/me/content/{contentId}/finalize";
|
|
485
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
486
|
-
urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
|
|
487
|
-
return [4 /*yield*/, this.request({
|
|
488
|
-
path: urlPath,
|
|
489
|
-
method: 'POST',
|
|
490
|
-
headers: headerParameters,
|
|
491
|
-
query: queryParameters,
|
|
492
|
-
}, initOverrides)];
|
|
691
|
+
case 0: return [4 /*yield*/, this.finalizeContentRequestOpts(requestParameters)];
|
|
493
692
|
case 1:
|
|
693
|
+
requestOptions = _a.sent();
|
|
694
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
695
|
+
case 2:
|
|
494
696
|
response = _a.sent();
|
|
495
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
697
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContentObject_1.ContentObjectFromJSON)(jsonValue); })];
|
|
496
698
|
}
|
|
497
699
|
});
|
|
498
700
|
});
|
|
@@ -513,30 +715,43 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
513
715
|
});
|
|
514
716
|
});
|
|
515
717
|
};
|
|
718
|
+
/**
|
|
719
|
+
* Creates request options for getAccount without sending the request
|
|
720
|
+
*/
|
|
721
|
+
UsersServerApi.prototype.getAccountRequestOpts = function (requestParameters) {
|
|
722
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
723
|
+
var queryParameters, headerParameters, urlPath;
|
|
724
|
+
return __generator(this, function (_a) {
|
|
725
|
+
if (requestParameters['projectId'] == null) {
|
|
726
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getAccount().');
|
|
727
|
+
}
|
|
728
|
+
queryParameters = {};
|
|
729
|
+
headerParameters = {};
|
|
730
|
+
urlPath = "/api/v1/{projectId}/users/me";
|
|
731
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
732
|
+
return [2 /*return*/, {
|
|
733
|
+
path: urlPath,
|
|
734
|
+
method: 'GET',
|
|
735
|
+
headers: headerParameters,
|
|
736
|
+
query: queryParameters,
|
|
737
|
+
}];
|
|
738
|
+
});
|
|
739
|
+
});
|
|
740
|
+
};
|
|
516
741
|
/**
|
|
517
742
|
*/
|
|
518
743
|
UsersServerApi.prototype.getAccountRaw = function (requestParameters, initOverrides) {
|
|
519
744
|
return __awaiter(this, void 0, void 0, function () {
|
|
520
|
-
var
|
|
745
|
+
var requestOptions, response;
|
|
521
746
|
return __generator(this, function (_a) {
|
|
522
747
|
switch (_a.label) {
|
|
523
|
-
case 0:
|
|
524
|
-
if (requestParameters['projectId'] == null) {
|
|
525
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getAccount().');
|
|
526
|
-
}
|
|
527
|
-
queryParameters = {};
|
|
528
|
-
headerParameters = {};
|
|
529
|
-
urlPath = "/api/v1/{projectId}/users/me";
|
|
530
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
531
|
-
return [4 /*yield*/, this.request({
|
|
532
|
-
path: urlPath,
|
|
533
|
-
method: 'GET',
|
|
534
|
-
headers: headerParameters,
|
|
535
|
-
query: queryParameters,
|
|
536
|
-
}, initOverrides)];
|
|
748
|
+
case 0: return [4 /*yield*/, this.getAccountRequestOpts(requestParameters)];
|
|
537
749
|
case 1:
|
|
750
|
+
requestOptions = _a.sent();
|
|
751
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
752
|
+
case 2:
|
|
538
753
|
response = _a.sent();
|
|
539
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
754
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserObject_1.UserObjectFromJSON)(jsonValue); })];
|
|
540
755
|
}
|
|
541
756
|
});
|
|
542
757
|
});
|
|
@@ -557,34 +772,47 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
557
772
|
});
|
|
558
773
|
});
|
|
559
774
|
};
|
|
775
|
+
/**
|
|
776
|
+
* Creates request options for getContent without sending the request
|
|
777
|
+
*/
|
|
778
|
+
UsersServerApi.prototype.getContentRequestOpts = function (requestParameters) {
|
|
779
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
780
|
+
var queryParameters, headerParameters, urlPath;
|
|
781
|
+
return __generator(this, function (_a) {
|
|
782
|
+
if (requestParameters['projectId'] == null) {
|
|
783
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getContent().');
|
|
784
|
+
}
|
|
785
|
+
if (requestParameters['contentId'] == null) {
|
|
786
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContent().');
|
|
787
|
+
}
|
|
788
|
+
queryParameters = {};
|
|
789
|
+
headerParameters = {};
|
|
790
|
+
urlPath = "/api/v1/{projectId}/users/me/content/{contentId}";
|
|
791
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
792
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
793
|
+
return [2 /*return*/, {
|
|
794
|
+
path: urlPath,
|
|
795
|
+
method: 'GET',
|
|
796
|
+
headers: headerParameters,
|
|
797
|
+
query: queryParameters,
|
|
798
|
+
}];
|
|
799
|
+
});
|
|
800
|
+
});
|
|
801
|
+
};
|
|
560
802
|
/**
|
|
561
803
|
*/
|
|
562
804
|
UsersServerApi.prototype.getContentRaw = function (requestParameters, initOverrides) {
|
|
563
805
|
return __awaiter(this, void 0, void 0, function () {
|
|
564
|
-
var
|
|
806
|
+
var requestOptions, response;
|
|
565
807
|
return __generator(this, function (_a) {
|
|
566
808
|
switch (_a.label) {
|
|
567
|
-
case 0:
|
|
568
|
-
if (requestParameters['projectId'] == null) {
|
|
569
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getContent().');
|
|
570
|
-
}
|
|
571
|
-
if (requestParameters['contentId'] == null) {
|
|
572
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContent().');
|
|
573
|
-
}
|
|
574
|
-
queryParameters = {};
|
|
575
|
-
headerParameters = {};
|
|
576
|
-
urlPath = "/api/v1/{projectId}/users/me/content/{contentId}";
|
|
577
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
578
|
-
urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
|
|
579
|
-
return [4 /*yield*/, this.request({
|
|
580
|
-
path: urlPath,
|
|
581
|
-
method: 'GET',
|
|
582
|
-
headers: headerParameters,
|
|
583
|
-
query: queryParameters,
|
|
584
|
-
}, initOverrides)];
|
|
809
|
+
case 0: return [4 /*yield*/, this.getContentRequestOpts(requestParameters)];
|
|
585
810
|
case 1:
|
|
811
|
+
requestOptions = _a.sent();
|
|
812
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
813
|
+
case 2:
|
|
586
814
|
response = _a.sent();
|
|
587
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
815
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContentObject_1.ContentObjectFromJSON)(jsonValue); })];
|
|
588
816
|
}
|
|
589
817
|
});
|
|
590
818
|
});
|
|
@@ -605,34 +833,47 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
605
833
|
});
|
|
606
834
|
});
|
|
607
835
|
};
|
|
836
|
+
/**
|
|
837
|
+
* Creates request options for getContentDownloadLink without sending the request
|
|
838
|
+
*/
|
|
839
|
+
UsersServerApi.prototype.getContentDownloadLinkRequestOpts = function (requestParameters) {
|
|
840
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
841
|
+
var queryParameters, headerParameters, urlPath;
|
|
842
|
+
return __generator(this, function (_a) {
|
|
843
|
+
if (requestParameters['projectId'] == null) {
|
|
844
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getContentDownloadLink().');
|
|
845
|
+
}
|
|
846
|
+
if (requestParameters['contentId'] == null) {
|
|
847
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContentDownloadLink().');
|
|
848
|
+
}
|
|
849
|
+
queryParameters = {};
|
|
850
|
+
headerParameters = {};
|
|
851
|
+
urlPath = "/api/v1/{projectId}/users/me/content/{contentId}/download-link";
|
|
852
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
853
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
854
|
+
return [2 /*return*/, {
|
|
855
|
+
path: urlPath,
|
|
856
|
+
method: 'GET',
|
|
857
|
+
headers: headerParameters,
|
|
858
|
+
query: queryParameters,
|
|
859
|
+
}];
|
|
860
|
+
});
|
|
861
|
+
});
|
|
862
|
+
};
|
|
608
863
|
/**
|
|
609
864
|
*/
|
|
610
865
|
UsersServerApi.prototype.getContentDownloadLinkRaw = function (requestParameters, initOverrides) {
|
|
611
866
|
return __awaiter(this, void 0, void 0, function () {
|
|
612
|
-
var
|
|
867
|
+
var requestOptions, response;
|
|
613
868
|
return __generator(this, function (_a) {
|
|
614
869
|
switch (_a.label) {
|
|
615
|
-
case 0:
|
|
616
|
-
if (requestParameters['projectId'] == null) {
|
|
617
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getContentDownloadLink().');
|
|
618
|
-
}
|
|
619
|
-
if (requestParameters['contentId'] == null) {
|
|
620
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContentDownloadLink().');
|
|
621
|
-
}
|
|
622
|
-
queryParameters = {};
|
|
623
|
-
headerParameters = {};
|
|
624
|
-
urlPath = "/api/v1/{projectId}/users/me/content/{contentId}/download-link";
|
|
625
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
626
|
-
urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
|
|
627
|
-
return [4 /*yield*/, this.request({
|
|
628
|
-
path: urlPath,
|
|
629
|
-
method: 'GET',
|
|
630
|
-
headers: headerParameters,
|
|
631
|
-
query: queryParameters,
|
|
632
|
-
}, initOverrides)];
|
|
870
|
+
case 0: return [4 /*yield*/, this.getContentDownloadLinkRequestOpts(requestParameters)];
|
|
633
871
|
case 1:
|
|
872
|
+
requestOptions = _a.sent();
|
|
873
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
874
|
+
case 2:
|
|
634
875
|
response = _a.sent();
|
|
635
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
876
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetContentDownloadLinkResponse_1.GetContentDownloadLinkResponseFromJSON)(jsonValue); })];
|
|
636
877
|
}
|
|
637
878
|
});
|
|
638
879
|
});
|
|
@@ -653,57 +894,70 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
653
894
|
});
|
|
654
895
|
});
|
|
655
896
|
};
|
|
897
|
+
/**
|
|
898
|
+
* Creates request options for googleAuthLoginCallback without sending the request
|
|
899
|
+
*/
|
|
900
|
+
UsersServerApi.prototype.googleAuthLoginCallbackRequestOpts = function (requestParameters) {
|
|
901
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
902
|
+
var queryParameters, headerParameters, consumes, canConsumeForm, formParams, useForm, urlPath;
|
|
903
|
+
return __generator(this, function (_a) {
|
|
904
|
+
if (requestParameters['projectId'] == null) {
|
|
905
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling googleAuthLoginCallback().');
|
|
906
|
+
}
|
|
907
|
+
if (requestParameters['gCsrfToken'] == null) {
|
|
908
|
+
throw new runtime.RequiredError('gCsrfToken', 'Required parameter "gCsrfToken" was null or undefined when calling googleAuthLoginCallback().');
|
|
909
|
+
}
|
|
910
|
+
if (requestParameters['credential'] == null) {
|
|
911
|
+
throw new runtime.RequiredError('credential', 'Required parameter "credential" was null or undefined when calling googleAuthLoginCallback().');
|
|
912
|
+
}
|
|
913
|
+
queryParameters = {};
|
|
914
|
+
headerParameters = {};
|
|
915
|
+
consumes = [
|
|
916
|
+
{ contentType: 'application/x-www-form-urlencoded' },
|
|
917
|
+
];
|
|
918
|
+
canConsumeForm = runtime.canConsumeForm(consumes);
|
|
919
|
+
useForm = false;
|
|
920
|
+
if (useForm) {
|
|
921
|
+
formParams = new FormData();
|
|
922
|
+
}
|
|
923
|
+
else {
|
|
924
|
+
formParams = new URLSearchParams();
|
|
925
|
+
}
|
|
926
|
+
if (requestParameters['gCsrfToken'] != null) {
|
|
927
|
+
formParams.append('g_csrf_token', requestParameters['gCsrfToken']);
|
|
928
|
+
}
|
|
929
|
+
if (requestParameters['credential'] != null) {
|
|
930
|
+
formParams.append('credential', requestParameters['credential']);
|
|
931
|
+
}
|
|
932
|
+
if (requestParameters['recaptchaToken'] != null) {
|
|
933
|
+
formParams.append('recaptcha_token', requestParameters['recaptchaToken']);
|
|
934
|
+
}
|
|
935
|
+
urlPath = "/api/v1/{projectId}/users/google-auth-callback";
|
|
936
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
937
|
+
return [2 /*return*/, {
|
|
938
|
+
path: urlPath,
|
|
939
|
+
method: 'POST',
|
|
940
|
+
headers: headerParameters,
|
|
941
|
+
query: queryParameters,
|
|
942
|
+
body: formParams,
|
|
943
|
+
}];
|
|
944
|
+
});
|
|
945
|
+
});
|
|
946
|
+
};
|
|
656
947
|
/**
|
|
657
948
|
*/
|
|
658
949
|
UsersServerApi.prototype.googleAuthLoginCallbackRaw = function (requestParameters, initOverrides) {
|
|
659
950
|
return __awaiter(this, void 0, void 0, function () {
|
|
660
|
-
var
|
|
951
|
+
var requestOptions, response;
|
|
661
952
|
return __generator(this, function (_a) {
|
|
662
953
|
switch (_a.label) {
|
|
663
|
-
case 0:
|
|
664
|
-
if (requestParameters['projectId'] == null) {
|
|
665
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling googleAuthLoginCallback().');
|
|
666
|
-
}
|
|
667
|
-
if (requestParameters['gCsrfToken'] == null) {
|
|
668
|
-
throw new runtime.RequiredError('gCsrfToken', 'Required parameter "gCsrfToken" was null or undefined when calling googleAuthLoginCallback().');
|
|
669
|
-
}
|
|
670
|
-
if (requestParameters['credential'] == null) {
|
|
671
|
-
throw new runtime.RequiredError('credential', 'Required parameter "credential" was null or undefined when calling googleAuthLoginCallback().');
|
|
672
|
-
}
|
|
673
|
-
queryParameters = {};
|
|
674
|
-
headerParameters = {};
|
|
675
|
-
consumes = [
|
|
676
|
-
{ contentType: 'application/x-www-form-urlencoded' },
|
|
677
|
-
];
|
|
678
|
-
canConsumeForm = runtime.canConsumeForm(consumes);
|
|
679
|
-
useForm = false;
|
|
680
|
-
if (useForm) {
|
|
681
|
-
formParams = new FormData();
|
|
682
|
-
}
|
|
683
|
-
else {
|
|
684
|
-
formParams = new URLSearchParams();
|
|
685
|
-
}
|
|
686
|
-
if (requestParameters['gCsrfToken'] != null) {
|
|
687
|
-
formParams.append('g_csrf_token', requestParameters['gCsrfToken']);
|
|
688
|
-
}
|
|
689
|
-
if (requestParameters['credential'] != null) {
|
|
690
|
-
formParams.append('credential', requestParameters['credential']);
|
|
691
|
-
}
|
|
692
|
-
if (requestParameters['recaptchaToken'] != null) {
|
|
693
|
-
formParams.append('recaptcha_token', requestParameters['recaptchaToken']);
|
|
694
|
-
}
|
|
695
|
-
urlPath = "/api/v1/{projectId}/users/google-auth-callback";
|
|
696
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
697
|
-
return [4 /*yield*/, this.request({
|
|
698
|
-
path: urlPath,
|
|
699
|
-
method: 'POST',
|
|
700
|
-
headers: headerParameters,
|
|
701
|
-
query: queryParameters,
|
|
702
|
-
body: formParams,
|
|
703
|
-
}, initOverrides)];
|
|
954
|
+
case 0: return [4 /*yield*/, this.googleAuthLoginCallbackRequestOpts(requestParameters)];
|
|
704
955
|
case 1:
|
|
956
|
+
requestOptions = _a.sent();
|
|
957
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
958
|
+
case 2:
|
|
705
959
|
response = _a.sent();
|
|
706
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
960
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, LoginUserResponse_1.LoginUserResponseFromJSON)(jsonValue); })];
|
|
707
961
|
}
|
|
708
962
|
});
|
|
709
963
|
});
|
|
@@ -724,36 +978,49 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
724
978
|
});
|
|
725
979
|
});
|
|
726
980
|
};
|
|
981
|
+
/**
|
|
982
|
+
* Creates request options for listContent without sending the request
|
|
983
|
+
*/
|
|
984
|
+
UsersServerApi.prototype.listContentRequestOpts = function (requestParameters) {
|
|
985
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
986
|
+
var queryParameters, headerParameters, urlPath;
|
|
987
|
+
return __generator(this, function (_a) {
|
|
988
|
+
if (requestParameters['projectId'] == null) {
|
|
989
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listContent().');
|
|
990
|
+
}
|
|
991
|
+
queryParameters = {};
|
|
992
|
+
if (requestParameters['page'] != null) {
|
|
993
|
+
queryParameters['page'] = requestParameters['page'];
|
|
994
|
+
}
|
|
995
|
+
if (requestParameters['pageSize'] != null) {
|
|
996
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
997
|
+
}
|
|
998
|
+
headerParameters = {};
|
|
999
|
+
urlPath = "/api/v1/{projectId}/users/me/content";
|
|
1000
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1001
|
+
return [2 /*return*/, {
|
|
1002
|
+
path: urlPath,
|
|
1003
|
+
method: 'GET',
|
|
1004
|
+
headers: headerParameters,
|
|
1005
|
+
query: queryParameters,
|
|
1006
|
+
}];
|
|
1007
|
+
});
|
|
1008
|
+
});
|
|
1009
|
+
};
|
|
727
1010
|
/**
|
|
728
1011
|
*/
|
|
729
1012
|
UsersServerApi.prototype.listContentRaw = function (requestParameters, initOverrides) {
|
|
730
1013
|
return __awaiter(this, void 0, void 0, function () {
|
|
731
|
-
var
|
|
1014
|
+
var requestOptions, response;
|
|
732
1015
|
return __generator(this, function (_a) {
|
|
733
1016
|
switch (_a.label) {
|
|
734
|
-
case 0:
|
|
735
|
-
if (requestParameters['projectId'] == null) {
|
|
736
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listContent().');
|
|
737
|
-
}
|
|
738
|
-
queryParameters = {};
|
|
739
|
-
if (requestParameters['page'] != null) {
|
|
740
|
-
queryParameters['page'] = requestParameters['page'];
|
|
741
|
-
}
|
|
742
|
-
if (requestParameters['pageSize'] != null) {
|
|
743
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
744
|
-
}
|
|
745
|
-
headerParameters = {};
|
|
746
|
-
urlPath = "/api/v1/{projectId}/users/me/content";
|
|
747
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
748
|
-
return [4 /*yield*/, this.request({
|
|
749
|
-
path: urlPath,
|
|
750
|
-
method: 'GET',
|
|
751
|
-
headers: headerParameters,
|
|
752
|
-
query: queryParameters,
|
|
753
|
-
}, initOverrides)];
|
|
1017
|
+
case 0: return [4 /*yield*/, this.listContentRequestOpts(requestParameters)];
|
|
754
1018
|
case 1:
|
|
1019
|
+
requestOptions = _a.sent();
|
|
1020
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1021
|
+
case 2:
|
|
755
1022
|
response = _a.sent();
|
|
756
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1023
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ListContentResponse_1.ListContentResponseFromJSON)(jsonValue); })];
|
|
757
1024
|
}
|
|
758
1025
|
});
|
|
759
1026
|
});
|
|
@@ -774,45 +1041,58 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
774
1041
|
});
|
|
775
1042
|
});
|
|
776
1043
|
};
|
|
1044
|
+
/**
|
|
1045
|
+
* Creates request options for listMyPayments without sending the request
|
|
1046
|
+
*/
|
|
1047
|
+
UsersServerApi.prototype.listMyPaymentsRequestOpts = function (requestParameters) {
|
|
1048
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1049
|
+
var queryParameters, headerParameters, urlPath;
|
|
1050
|
+
return __generator(this, function (_a) {
|
|
1051
|
+
if (requestParameters['projectId'] == null) {
|
|
1052
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listMyPayments().');
|
|
1053
|
+
}
|
|
1054
|
+
queryParameters = {};
|
|
1055
|
+
if (requestParameters['metadataKey'] != null) {
|
|
1056
|
+
queryParameters['metadataKey'] = requestParameters['metadataKey'];
|
|
1057
|
+
}
|
|
1058
|
+
if (requestParameters['metadataValue'] != null) {
|
|
1059
|
+
queryParameters['metadataValue'] = requestParameters['metadataValue'];
|
|
1060
|
+
}
|
|
1061
|
+
if (requestParameters['minTime'] != null) {
|
|
1062
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
1063
|
+
}
|
|
1064
|
+
if (requestParameters['maxTime'] != null) {
|
|
1065
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
1066
|
+
}
|
|
1067
|
+
if (requestParameters['nextToken'] != null) {
|
|
1068
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
1069
|
+
}
|
|
1070
|
+
headerParameters = {};
|
|
1071
|
+
urlPath = "/api/v1/{projectId}/users/me/payments";
|
|
1072
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1073
|
+
return [2 /*return*/, {
|
|
1074
|
+
path: urlPath,
|
|
1075
|
+
method: 'GET',
|
|
1076
|
+
headers: headerParameters,
|
|
1077
|
+
query: queryParameters,
|
|
1078
|
+
}];
|
|
1079
|
+
});
|
|
1080
|
+
});
|
|
1081
|
+
};
|
|
777
1082
|
/**
|
|
778
1083
|
*/
|
|
779
1084
|
UsersServerApi.prototype.listMyPaymentsRaw = function (requestParameters, initOverrides) {
|
|
780
1085
|
return __awaiter(this, void 0, void 0, function () {
|
|
781
|
-
var
|
|
1086
|
+
var requestOptions, response;
|
|
782
1087
|
return __generator(this, function (_a) {
|
|
783
1088
|
switch (_a.label) {
|
|
784
|
-
case 0:
|
|
785
|
-
if (requestParameters['projectId'] == null) {
|
|
786
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listMyPayments().');
|
|
787
|
-
}
|
|
788
|
-
queryParameters = {};
|
|
789
|
-
if (requestParameters['metadataKey'] != null) {
|
|
790
|
-
queryParameters['metadataKey'] = requestParameters['metadataKey'];
|
|
791
|
-
}
|
|
792
|
-
if (requestParameters['metadataValue'] != null) {
|
|
793
|
-
queryParameters['metadataValue'] = requestParameters['metadataValue'];
|
|
794
|
-
}
|
|
795
|
-
if (requestParameters['minTime'] != null) {
|
|
796
|
-
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
797
|
-
}
|
|
798
|
-
if (requestParameters['maxTime'] != null) {
|
|
799
|
-
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
800
|
-
}
|
|
801
|
-
if (requestParameters['nextToken'] != null) {
|
|
802
|
-
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
803
|
-
}
|
|
804
|
-
headerParameters = {};
|
|
805
|
-
urlPath = "/api/v1/{projectId}/users/me/payments";
|
|
806
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
807
|
-
return [4 /*yield*/, this.request({
|
|
808
|
-
path: urlPath,
|
|
809
|
-
method: 'GET',
|
|
810
|
-
headers: headerParameters,
|
|
811
|
-
query: queryParameters,
|
|
812
|
-
}, initOverrides)];
|
|
1089
|
+
case 0: return [4 /*yield*/, this.listMyPaymentsRequestOpts(requestParameters)];
|
|
813
1090
|
case 1:
|
|
1091
|
+
requestOptions = _a.sent();
|
|
1092
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1093
|
+
case 2:
|
|
814
1094
|
response = _a.sent();
|
|
815
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1095
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponsePaymentObject_1.PaginatedResponsePaymentObjectFromJSON)(jsonValue); })];
|
|
816
1096
|
}
|
|
817
1097
|
});
|
|
818
1098
|
});
|
|
@@ -834,132 +1114,162 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
834
1114
|
});
|
|
835
1115
|
};
|
|
836
1116
|
/**
|
|
1117
|
+
* Creates request options for listUserInvites without sending the request
|
|
837
1118
|
*/
|
|
838
|
-
UsersServerApi.prototype.
|
|
1119
|
+
UsersServerApi.prototype.listUserInvitesRequestOpts = function (requestParameters) {
|
|
839
1120
|
return __awaiter(this, void 0, void 0, function () {
|
|
840
|
-
var queryParameters, headerParameters, urlPath
|
|
1121
|
+
var queryParameters, headerParameters, urlPath;
|
|
1122
|
+
return __generator(this, function (_a) {
|
|
1123
|
+
if (requestParameters['projectId'] == null) {
|
|
1124
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listUserInvites().');
|
|
1125
|
+
}
|
|
1126
|
+
queryParameters = {};
|
|
1127
|
+
headerParameters = {};
|
|
1128
|
+
urlPath = "/api/v1/{projectId}/users/me/invites";
|
|
1129
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1130
|
+
return [2 /*return*/, {
|
|
1131
|
+
path: urlPath,
|
|
1132
|
+
method: 'GET',
|
|
1133
|
+
headers: headerParameters,
|
|
1134
|
+
query: queryParameters,
|
|
1135
|
+
}];
|
|
1136
|
+
});
|
|
1137
|
+
});
|
|
1138
|
+
};
|
|
1139
|
+
/**
|
|
1140
|
+
*/
|
|
1141
|
+
UsersServerApi.prototype.listUserInvitesRaw = function (requestParameters, initOverrides) {
|
|
1142
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1143
|
+
var requestOptions, response;
|
|
841
1144
|
return __generator(this, function (_a) {
|
|
842
1145
|
switch (_a.label) {
|
|
843
|
-
case 0:
|
|
844
|
-
if (requestParameters['projectId'] == null) {
|
|
845
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling logout().');
|
|
846
|
-
}
|
|
847
|
-
queryParameters = {};
|
|
848
|
-
headerParameters = {};
|
|
849
|
-
if (requestParameters['authorization'] != null) {
|
|
850
|
-
headerParameters['Authorization'] = String(requestParameters['authorization']);
|
|
851
|
-
}
|
|
852
|
-
urlPath = "/api/v1/{projectId}/users/logout";
|
|
853
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
854
|
-
return [4 /*yield*/, this.request({
|
|
855
|
-
path: urlPath,
|
|
856
|
-
method: 'POST',
|
|
857
|
-
headers: headerParameters,
|
|
858
|
-
query: queryParameters,
|
|
859
|
-
}, initOverrides)];
|
|
1146
|
+
case 0: return [4 /*yield*/, this.listUserInvitesRequestOpts(requestParameters)];
|
|
860
1147
|
case 1:
|
|
1148
|
+
requestOptions = _a.sent();
|
|
1149
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1150
|
+
case 2:
|
|
861
1151
|
response = _a.sent();
|
|
862
|
-
return [2 /*return*/, new runtime.
|
|
1152
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ListUserInvitesResponse_1.ListUserInvitesResponseFromJSON)(jsonValue); })];
|
|
863
1153
|
}
|
|
864
1154
|
});
|
|
865
1155
|
});
|
|
866
1156
|
};
|
|
867
1157
|
/**
|
|
868
1158
|
*/
|
|
869
|
-
UsersServerApi.prototype.
|
|
1159
|
+
UsersServerApi.prototype.listUserInvites = function (requestParameters, initOverrides) {
|
|
870
1160
|
return __awaiter(this, void 0, void 0, function () {
|
|
1161
|
+
var response;
|
|
871
1162
|
return __generator(this, function (_a) {
|
|
872
1163
|
switch (_a.label) {
|
|
873
|
-
case 0: return [4 /*yield*/, this.
|
|
1164
|
+
case 0: return [4 /*yield*/, this.listUserInvitesRaw(requestParameters, initOverrides)];
|
|
874
1165
|
case 1:
|
|
875
|
-
_a.sent();
|
|
876
|
-
return [
|
|
1166
|
+
response = _a.sent();
|
|
1167
|
+
return [4 /*yield*/, response.value()];
|
|
1168
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
877
1169
|
}
|
|
878
1170
|
});
|
|
879
1171
|
});
|
|
880
1172
|
};
|
|
881
1173
|
/**
|
|
1174
|
+
* Creates request options for logout without sending the request
|
|
882
1175
|
*/
|
|
883
|
-
UsersServerApi.prototype.
|
|
1176
|
+
UsersServerApi.prototype.logoutRequestOpts = function (requestParameters) {
|
|
884
1177
|
return __awaiter(this, void 0, void 0, function () {
|
|
885
|
-
var queryParameters, headerParameters, urlPath
|
|
1178
|
+
var queryParameters, headerParameters, urlPath;
|
|
1179
|
+
return __generator(this, function (_a) {
|
|
1180
|
+
if (requestParameters['projectId'] == null) {
|
|
1181
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling logout().');
|
|
1182
|
+
}
|
|
1183
|
+
queryParameters = {};
|
|
1184
|
+
headerParameters = {};
|
|
1185
|
+
if (requestParameters['authorization'] != null) {
|
|
1186
|
+
headerParameters['Authorization'] = String(requestParameters['authorization']);
|
|
1187
|
+
}
|
|
1188
|
+
urlPath = "/api/v1/{projectId}/users/logout";
|
|
1189
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1190
|
+
return [2 /*return*/, {
|
|
1191
|
+
path: urlPath,
|
|
1192
|
+
method: 'POST',
|
|
1193
|
+
headers: headerParameters,
|
|
1194
|
+
query: queryParameters,
|
|
1195
|
+
}];
|
|
1196
|
+
});
|
|
1197
|
+
});
|
|
1198
|
+
};
|
|
1199
|
+
/**
|
|
1200
|
+
*/
|
|
1201
|
+
UsersServerApi.prototype.logoutRaw = function (requestParameters, initOverrides) {
|
|
1202
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1203
|
+
var requestOptions, response;
|
|
886
1204
|
return __generator(this, function (_a) {
|
|
887
1205
|
switch (_a.label) {
|
|
888
|
-
case 0:
|
|
889
|
-
if (requestParameters['projectId'] == null) {
|
|
890
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling reUploadContent().');
|
|
891
|
-
}
|
|
892
|
-
if (requestParameters['contentId'] == null) {
|
|
893
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling reUploadContent().');
|
|
894
|
-
}
|
|
895
|
-
if (requestParameters['createContentUploadLinkRequest'] == null) {
|
|
896
|
-
throw new runtime.RequiredError('createContentUploadLinkRequest', 'Required parameter "createContentUploadLinkRequest" was null or undefined when calling reUploadContent().');
|
|
897
|
-
}
|
|
898
|
-
queryParameters = {};
|
|
899
|
-
headerParameters = {};
|
|
900
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
901
|
-
urlPath = "/api/v1/{projectId}/users/me/content/{contentId}/upload-links";
|
|
902
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
903
|
-
urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
|
|
904
|
-
return [4 /*yield*/, this.request({
|
|
905
|
-
path: urlPath,
|
|
906
|
-
method: 'POST',
|
|
907
|
-
headers: headerParameters,
|
|
908
|
-
query: queryParameters,
|
|
909
|
-
body: (0, index_1.CreateContentUploadLinkRequestToJSON)(requestParameters['createContentUploadLinkRequest']),
|
|
910
|
-
}, initOverrides)];
|
|
1206
|
+
case 0: return [4 /*yield*/, this.logoutRequestOpts(requestParameters)];
|
|
911
1207
|
case 1:
|
|
1208
|
+
requestOptions = _a.sent();
|
|
1209
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1210
|
+
case 2:
|
|
912
1211
|
response = _a.sent();
|
|
913
|
-
return [2 /*return*/, new runtime.
|
|
1212
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
914
1213
|
}
|
|
915
1214
|
});
|
|
916
1215
|
});
|
|
917
1216
|
};
|
|
918
1217
|
/**
|
|
919
1218
|
*/
|
|
920
|
-
UsersServerApi.prototype.
|
|
1219
|
+
UsersServerApi.prototype.logout = function (requestParameters, initOverrides) {
|
|
921
1220
|
return __awaiter(this, void 0, void 0, function () {
|
|
922
|
-
var response;
|
|
923
1221
|
return __generator(this, function (_a) {
|
|
924
1222
|
switch (_a.label) {
|
|
925
|
-
case 0: return [4 /*yield*/, this.
|
|
1223
|
+
case 0: return [4 /*yield*/, this.logoutRaw(requestParameters, initOverrides)];
|
|
926
1224
|
case 1:
|
|
927
|
-
|
|
928
|
-
return [
|
|
929
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
1225
|
+
_a.sent();
|
|
1226
|
+
return [2 /*return*/];
|
|
930
1227
|
}
|
|
931
1228
|
});
|
|
932
1229
|
});
|
|
933
1230
|
};
|
|
1231
|
+
/**
|
|
1232
|
+
* Creates request options for registerUser without sending the request
|
|
1233
|
+
*/
|
|
1234
|
+
UsersServerApi.prototype.registerUserRequestOpts = function (requestParameters) {
|
|
1235
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1236
|
+
var queryParameters, headerParameters, urlPath;
|
|
1237
|
+
return __generator(this, function (_a) {
|
|
1238
|
+
if (requestParameters['projectId'] == null) {
|
|
1239
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling registerUser().');
|
|
1240
|
+
}
|
|
1241
|
+
if (requestParameters['registerUserRequest'] == null) {
|
|
1242
|
+
throw new runtime.RequiredError('registerUserRequest', 'Required parameter "registerUserRequest" was null or undefined when calling registerUser().');
|
|
1243
|
+
}
|
|
1244
|
+
queryParameters = {};
|
|
1245
|
+
headerParameters = {};
|
|
1246
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1247
|
+
urlPath = "/api/v1/{projectId}/users/register";
|
|
1248
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1249
|
+
return [2 /*return*/, {
|
|
1250
|
+
path: urlPath,
|
|
1251
|
+
method: 'POST',
|
|
1252
|
+
headers: headerParameters,
|
|
1253
|
+
query: queryParameters,
|
|
1254
|
+
body: (0, RegisterUserRequest_1.RegisterUserRequestToJSON)(requestParameters['registerUserRequest']),
|
|
1255
|
+
}];
|
|
1256
|
+
});
|
|
1257
|
+
});
|
|
1258
|
+
};
|
|
934
1259
|
/**
|
|
935
1260
|
*/
|
|
936
1261
|
UsersServerApi.prototype.registerUserRaw = function (requestParameters, initOverrides) {
|
|
937
1262
|
return __awaiter(this, void 0, void 0, function () {
|
|
938
|
-
var
|
|
1263
|
+
var requestOptions, response;
|
|
939
1264
|
return __generator(this, function (_a) {
|
|
940
1265
|
switch (_a.label) {
|
|
941
|
-
case 0:
|
|
942
|
-
if (requestParameters['projectId'] == null) {
|
|
943
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling registerUser().');
|
|
944
|
-
}
|
|
945
|
-
if (requestParameters['registerUserRequest'] == null) {
|
|
946
|
-
throw new runtime.RequiredError('registerUserRequest', 'Required parameter "registerUserRequest" was null or undefined when calling registerUser().');
|
|
947
|
-
}
|
|
948
|
-
queryParameters = {};
|
|
949
|
-
headerParameters = {};
|
|
950
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
951
|
-
urlPath = "/api/v1/{projectId}/users/register";
|
|
952
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
953
|
-
return [4 /*yield*/, this.request({
|
|
954
|
-
path: urlPath,
|
|
955
|
-
method: 'POST',
|
|
956
|
-
headers: headerParameters,
|
|
957
|
-
query: queryParameters,
|
|
958
|
-
body: (0, index_1.RegisterUserRequestToJSON)(requestParameters['registerUserRequest']),
|
|
959
|
-
}, initOverrides)];
|
|
1266
|
+
case 0: return [4 /*yield*/, this.registerUserRequestOpts(requestParameters)];
|
|
960
1267
|
case 1:
|
|
1268
|
+
requestOptions = _a.sent();
|
|
1269
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1270
|
+
case 2:
|
|
961
1271
|
response = _a.sent();
|
|
962
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1272
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, RegisterUserResponse_1.RegisterUserResponseFromJSON)(jsonValue); })];
|
|
963
1273
|
}
|
|
964
1274
|
});
|
|
965
1275
|
});
|
|
@@ -980,36 +1290,49 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
980
1290
|
});
|
|
981
1291
|
});
|
|
982
1292
|
};
|
|
1293
|
+
/**
|
|
1294
|
+
* Creates request options for renewSessionToken without sending the request
|
|
1295
|
+
*/
|
|
1296
|
+
UsersServerApi.prototype.renewSessionTokenRequestOpts = function (requestParameters) {
|
|
1297
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1298
|
+
var queryParameters, headerParameters, urlPath;
|
|
1299
|
+
return __generator(this, function (_a) {
|
|
1300
|
+
if (requestParameters['projectId'] == null) {
|
|
1301
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling renewSessionToken().');
|
|
1302
|
+
}
|
|
1303
|
+
queryParameters = {};
|
|
1304
|
+
if (requestParameters['renewalDurationSeconds'] != null) {
|
|
1305
|
+
queryParameters['renewalDurationSeconds'] = requestParameters['renewalDurationSeconds'];
|
|
1306
|
+
}
|
|
1307
|
+
headerParameters = {};
|
|
1308
|
+
if (requestParameters['authorization'] != null) {
|
|
1309
|
+
headerParameters['Authorization'] = String(requestParameters['authorization']);
|
|
1310
|
+
}
|
|
1311
|
+
urlPath = "/api/v1/{projectId}/users/session-token/renew";
|
|
1312
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1313
|
+
return [2 /*return*/, {
|
|
1314
|
+
path: urlPath,
|
|
1315
|
+
method: 'POST',
|
|
1316
|
+
headers: headerParameters,
|
|
1317
|
+
query: queryParameters,
|
|
1318
|
+
}];
|
|
1319
|
+
});
|
|
1320
|
+
});
|
|
1321
|
+
};
|
|
983
1322
|
/**
|
|
984
1323
|
*/
|
|
985
1324
|
UsersServerApi.prototype.renewSessionTokenRaw = function (requestParameters, initOverrides) {
|
|
986
1325
|
return __awaiter(this, void 0, void 0, function () {
|
|
987
|
-
var
|
|
1326
|
+
var requestOptions, response;
|
|
988
1327
|
return __generator(this, function (_a) {
|
|
989
1328
|
switch (_a.label) {
|
|
990
|
-
case 0:
|
|
991
|
-
if (requestParameters['projectId'] == null) {
|
|
992
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling renewSessionToken().');
|
|
993
|
-
}
|
|
994
|
-
queryParameters = {};
|
|
995
|
-
if (requestParameters['renewalDurationSeconds'] != null) {
|
|
996
|
-
queryParameters['renewalDurationSeconds'] = requestParameters['renewalDurationSeconds'];
|
|
997
|
-
}
|
|
998
|
-
headerParameters = {};
|
|
999
|
-
if (requestParameters['authorization'] != null) {
|
|
1000
|
-
headerParameters['Authorization'] = String(requestParameters['authorization']);
|
|
1001
|
-
}
|
|
1002
|
-
urlPath = "/api/v1/{projectId}/users/session-token/renew";
|
|
1003
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1004
|
-
return [4 /*yield*/, this.request({
|
|
1005
|
-
path: urlPath,
|
|
1006
|
-
method: 'POST',
|
|
1007
|
-
headers: headerParameters,
|
|
1008
|
-
query: queryParameters,
|
|
1009
|
-
}, initOverrides)];
|
|
1329
|
+
case 0: return [4 /*yield*/, this.renewSessionTokenRequestOpts(requestParameters)];
|
|
1010
1330
|
case 1:
|
|
1331
|
+
requestOptions = _a.sent();
|
|
1332
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1333
|
+
case 2:
|
|
1011
1334
|
response = _a.sent();
|
|
1012
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1335
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, RenewSessionTokenResponse_1.RenewSessionTokenResponseFromJSON)(jsonValue); })];
|
|
1013
1336
|
}
|
|
1014
1337
|
});
|
|
1015
1338
|
});
|
|
@@ -1030,34 +1353,47 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1030
1353
|
});
|
|
1031
1354
|
});
|
|
1032
1355
|
};
|
|
1356
|
+
/**
|
|
1357
|
+
* Creates request options for resendContactMethodVerificationCode without sending the request
|
|
1358
|
+
*/
|
|
1359
|
+
UsersServerApi.prototype.resendContactMethodVerificationCodeRequestOpts = function (requestParameters) {
|
|
1360
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1361
|
+
var queryParameters, headerParameters, urlPath;
|
|
1362
|
+
return __generator(this, function (_a) {
|
|
1363
|
+
if (requestParameters['projectId'] == null) {
|
|
1364
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling resendContactMethodVerificationCode().');
|
|
1365
|
+
}
|
|
1366
|
+
if (requestParameters['contactMethodId'] == null) {
|
|
1367
|
+
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling resendContactMethodVerificationCode().');
|
|
1368
|
+
}
|
|
1369
|
+
queryParameters = {};
|
|
1370
|
+
headerParameters = {};
|
|
1371
|
+
urlPath = "/api/v1/{projectId}/users/me/contact-methods/{contactMethodId}/resend-verification-code";
|
|
1372
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1373
|
+
urlPath = urlPath.replace('{contactMethodId}', encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
1374
|
+
return [2 /*return*/, {
|
|
1375
|
+
path: urlPath,
|
|
1376
|
+
method: 'POST',
|
|
1377
|
+
headers: headerParameters,
|
|
1378
|
+
query: queryParameters,
|
|
1379
|
+
}];
|
|
1380
|
+
});
|
|
1381
|
+
});
|
|
1382
|
+
};
|
|
1033
1383
|
/**
|
|
1034
1384
|
*/
|
|
1035
1385
|
UsersServerApi.prototype.resendContactMethodVerificationCodeRaw = function (requestParameters, initOverrides) {
|
|
1036
1386
|
return __awaiter(this, void 0, void 0, function () {
|
|
1037
|
-
var
|
|
1387
|
+
var requestOptions, response;
|
|
1038
1388
|
return __generator(this, function (_a) {
|
|
1039
1389
|
switch (_a.label) {
|
|
1040
|
-
case 0:
|
|
1041
|
-
if (requestParameters['projectId'] == null) {
|
|
1042
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling resendContactMethodVerificationCode().');
|
|
1043
|
-
}
|
|
1044
|
-
if (requestParameters['contactMethodId'] == null) {
|
|
1045
|
-
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling resendContactMethodVerificationCode().');
|
|
1046
|
-
}
|
|
1047
|
-
queryParameters = {};
|
|
1048
|
-
headerParameters = {};
|
|
1049
|
-
urlPath = "/api/v1/{projectId}/users/me/contact-methods/{contactMethodId}/resend-verification-code";
|
|
1050
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1051
|
-
urlPath = urlPath.replace("{".concat("contactMethodId", "}"), encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
1052
|
-
return [4 /*yield*/, this.request({
|
|
1053
|
-
path: urlPath,
|
|
1054
|
-
method: 'POST',
|
|
1055
|
-
headers: headerParameters,
|
|
1056
|
-
query: queryParameters,
|
|
1057
|
-
}, initOverrides)];
|
|
1390
|
+
case 0: return [4 /*yield*/, this.resendContactMethodVerificationCodeRequestOpts(requestParameters)];
|
|
1058
1391
|
case 1:
|
|
1392
|
+
requestOptions = _a.sent();
|
|
1393
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1394
|
+
case 2:
|
|
1059
1395
|
response = _a.sent();
|
|
1060
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1396
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContactMethod_1.ContactMethodFromJSON)(jsonValue); })];
|
|
1061
1397
|
}
|
|
1062
1398
|
});
|
|
1063
1399
|
});
|
|
@@ -1078,34 +1414,47 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1078
1414
|
});
|
|
1079
1415
|
});
|
|
1080
1416
|
};
|
|
1417
|
+
/**
|
|
1418
|
+
* Creates request options for resendLoginOtp without sending the request
|
|
1419
|
+
*/
|
|
1420
|
+
UsersServerApi.prototype.resendLoginOtpRequestOpts = function (requestParameters) {
|
|
1421
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1422
|
+
var queryParameters, headerParameters, urlPath;
|
|
1423
|
+
return __generator(this, function (_a) {
|
|
1424
|
+
if (requestParameters['projectId'] == null) {
|
|
1425
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling resendLoginOtp().');
|
|
1426
|
+
}
|
|
1427
|
+
if (requestParameters['pendingLoginId'] == null) {
|
|
1428
|
+
throw new runtime.RequiredError('pendingLoginId', 'Required parameter "pendingLoginId" was null or undefined when calling resendLoginOtp().');
|
|
1429
|
+
}
|
|
1430
|
+
queryParameters = {};
|
|
1431
|
+
headerParameters = {};
|
|
1432
|
+
urlPath = "/api/v1/{projectId}/users/otp-login/{pendingLoginId}/resend";
|
|
1433
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1434
|
+
urlPath = urlPath.replace('{pendingLoginId}', encodeURIComponent(String(requestParameters['pendingLoginId'])));
|
|
1435
|
+
return [2 /*return*/, {
|
|
1436
|
+
path: urlPath,
|
|
1437
|
+
method: 'POST',
|
|
1438
|
+
headers: headerParameters,
|
|
1439
|
+
query: queryParameters,
|
|
1440
|
+
}];
|
|
1441
|
+
});
|
|
1442
|
+
});
|
|
1443
|
+
};
|
|
1081
1444
|
/**
|
|
1082
1445
|
*/
|
|
1083
1446
|
UsersServerApi.prototype.resendLoginOtpRaw = function (requestParameters, initOverrides) {
|
|
1084
1447
|
return __awaiter(this, void 0, void 0, function () {
|
|
1085
|
-
var
|
|
1448
|
+
var requestOptions, response;
|
|
1086
1449
|
return __generator(this, function (_a) {
|
|
1087
1450
|
switch (_a.label) {
|
|
1088
|
-
case 0:
|
|
1089
|
-
if (requestParameters['projectId'] == null) {
|
|
1090
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling resendLoginOtp().');
|
|
1091
|
-
}
|
|
1092
|
-
if (requestParameters['pendingLoginId'] == null) {
|
|
1093
|
-
throw new runtime.RequiredError('pendingLoginId', 'Required parameter "pendingLoginId" was null or undefined when calling resendLoginOtp().');
|
|
1094
|
-
}
|
|
1095
|
-
queryParameters = {};
|
|
1096
|
-
headerParameters = {};
|
|
1097
|
-
urlPath = "/api/v1/{projectId}/users/otp-login/{pendingLoginId}/resend";
|
|
1098
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1099
|
-
urlPath = urlPath.replace("{".concat("pendingLoginId", "}"), encodeURIComponent(String(requestParameters['pendingLoginId'])));
|
|
1100
|
-
return [4 /*yield*/, this.request({
|
|
1101
|
-
path: urlPath,
|
|
1102
|
-
method: 'POST',
|
|
1103
|
-
headers: headerParameters,
|
|
1104
|
-
query: queryParameters,
|
|
1105
|
-
}, initOverrides)];
|
|
1451
|
+
case 0: return [4 /*yield*/, this.resendLoginOtpRequestOpts(requestParameters)];
|
|
1106
1452
|
case 1:
|
|
1453
|
+
requestOptions = _a.sent();
|
|
1454
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1455
|
+
case 2:
|
|
1107
1456
|
response = _a.sent();
|
|
1108
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1457
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateOtpLoginResponse_1.CreateOtpLoginResponseFromJSON)(jsonValue); })];
|
|
1109
1458
|
}
|
|
1110
1459
|
});
|
|
1111
1460
|
});
|
|
@@ -1126,39 +1475,111 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1126
1475
|
});
|
|
1127
1476
|
});
|
|
1128
1477
|
};
|
|
1478
|
+
/**
|
|
1479
|
+
* Creates request options for revokeUserInvite without sending the request
|
|
1480
|
+
*/
|
|
1481
|
+
UsersServerApi.prototype.revokeUserInviteRequestOpts = function (requestParameters) {
|
|
1482
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1483
|
+
var queryParameters, headerParameters, urlPath;
|
|
1484
|
+
return __generator(this, function (_a) {
|
|
1485
|
+
if (requestParameters['projectId'] == null) {
|
|
1486
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling revokeUserInvite().');
|
|
1487
|
+
}
|
|
1488
|
+
if (requestParameters['inviteId'] == null) {
|
|
1489
|
+
throw new runtime.RequiredError('inviteId', 'Required parameter "inviteId" was null or undefined when calling revokeUserInvite().');
|
|
1490
|
+
}
|
|
1491
|
+
queryParameters = {};
|
|
1492
|
+
headerParameters = {};
|
|
1493
|
+
urlPath = "/api/v1/{projectId}/users/me/invites/{inviteId}";
|
|
1494
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1495
|
+
urlPath = urlPath.replace('{inviteId}', encodeURIComponent(String(requestParameters['inviteId'])));
|
|
1496
|
+
return [2 /*return*/, {
|
|
1497
|
+
path: urlPath,
|
|
1498
|
+
method: 'DELETE',
|
|
1499
|
+
headers: headerParameters,
|
|
1500
|
+
query: queryParameters,
|
|
1501
|
+
}];
|
|
1502
|
+
});
|
|
1503
|
+
});
|
|
1504
|
+
};
|
|
1505
|
+
/**
|
|
1506
|
+
*/
|
|
1507
|
+
UsersServerApi.prototype.revokeUserInviteRaw = function (requestParameters, initOverrides) {
|
|
1508
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1509
|
+
var requestOptions, response;
|
|
1510
|
+
return __generator(this, function (_a) {
|
|
1511
|
+
switch (_a.label) {
|
|
1512
|
+
case 0: return [4 /*yield*/, this.revokeUserInviteRequestOpts(requestParameters)];
|
|
1513
|
+
case 1:
|
|
1514
|
+
requestOptions = _a.sent();
|
|
1515
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1516
|
+
case 2:
|
|
1517
|
+
response = _a.sent();
|
|
1518
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1519
|
+
}
|
|
1520
|
+
});
|
|
1521
|
+
});
|
|
1522
|
+
};
|
|
1523
|
+
/**
|
|
1524
|
+
*/
|
|
1525
|
+
UsersServerApi.prototype.revokeUserInvite = function (requestParameters, initOverrides) {
|
|
1526
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1527
|
+
return __generator(this, function (_a) {
|
|
1528
|
+
switch (_a.label) {
|
|
1529
|
+
case 0: return [4 /*yield*/, this.revokeUserInviteRaw(requestParameters, initOverrides)];
|
|
1530
|
+
case 1:
|
|
1531
|
+
_a.sent();
|
|
1532
|
+
return [2 /*return*/];
|
|
1533
|
+
}
|
|
1534
|
+
});
|
|
1535
|
+
});
|
|
1536
|
+
};
|
|
1537
|
+
/**
|
|
1538
|
+
* Creates request options for updateContentShares without sending the request
|
|
1539
|
+
*/
|
|
1540
|
+
UsersServerApi.prototype.updateContentSharesRequestOpts = function (requestParameters) {
|
|
1541
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1542
|
+
var queryParameters, headerParameters, urlPath;
|
|
1543
|
+
return __generator(this, function (_a) {
|
|
1544
|
+
if (requestParameters['projectId'] == null) {
|
|
1545
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateContentShares().');
|
|
1546
|
+
}
|
|
1547
|
+
if (requestParameters['contentId'] == null) {
|
|
1548
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling updateContentShares().');
|
|
1549
|
+
}
|
|
1550
|
+
if (requestParameters['updateContentSharesRequest'] == null) {
|
|
1551
|
+
throw new runtime.RequiredError('updateContentSharesRequest', 'Required parameter "updateContentSharesRequest" was null or undefined when calling updateContentShares().');
|
|
1552
|
+
}
|
|
1553
|
+
queryParameters = {};
|
|
1554
|
+
headerParameters = {};
|
|
1555
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1556
|
+
urlPath = "/api/v1/{projectId}/users/me/content/{contentId}/shares";
|
|
1557
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1558
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1559
|
+
return [2 /*return*/, {
|
|
1560
|
+
path: urlPath,
|
|
1561
|
+
method: 'PUT',
|
|
1562
|
+
headers: headerParameters,
|
|
1563
|
+
query: queryParameters,
|
|
1564
|
+
body: (0, UpdateContentSharesRequest_1.UpdateContentSharesRequestToJSON)(requestParameters['updateContentSharesRequest']),
|
|
1565
|
+
}];
|
|
1566
|
+
});
|
|
1567
|
+
});
|
|
1568
|
+
};
|
|
1129
1569
|
/**
|
|
1130
1570
|
*/
|
|
1131
1571
|
UsersServerApi.prototype.updateContentSharesRaw = function (requestParameters, initOverrides) {
|
|
1132
1572
|
return __awaiter(this, void 0, void 0, function () {
|
|
1133
|
-
var
|
|
1573
|
+
var requestOptions, response;
|
|
1134
1574
|
return __generator(this, function (_a) {
|
|
1135
1575
|
switch (_a.label) {
|
|
1136
|
-
case 0:
|
|
1137
|
-
if (requestParameters['projectId'] == null) {
|
|
1138
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateContentShares().');
|
|
1139
|
-
}
|
|
1140
|
-
if (requestParameters['contentId'] == null) {
|
|
1141
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling updateContentShares().');
|
|
1142
|
-
}
|
|
1143
|
-
if (requestParameters['updateContentSharesRequest'] == null) {
|
|
1144
|
-
throw new runtime.RequiredError('updateContentSharesRequest', 'Required parameter "updateContentSharesRequest" was null or undefined when calling updateContentShares().');
|
|
1145
|
-
}
|
|
1146
|
-
queryParameters = {};
|
|
1147
|
-
headerParameters = {};
|
|
1148
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1149
|
-
urlPath = "/api/v1/{projectId}/users/me/content/{contentId}/shares";
|
|
1150
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1151
|
-
urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
|
|
1152
|
-
return [4 /*yield*/, this.request({
|
|
1153
|
-
path: urlPath,
|
|
1154
|
-
method: 'PUT',
|
|
1155
|
-
headers: headerParameters,
|
|
1156
|
-
query: queryParameters,
|
|
1157
|
-
body: (0, index_1.UpdateContentSharesRequestToJSON)(requestParameters['updateContentSharesRequest']),
|
|
1158
|
-
}, initOverrides)];
|
|
1576
|
+
case 0: return [4 /*yield*/, this.updateContentSharesRequestOpts(requestParameters)];
|
|
1159
1577
|
case 1:
|
|
1578
|
+
requestOptions = _a.sent();
|
|
1579
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1580
|
+
case 2:
|
|
1160
1581
|
response = _a.sent();
|
|
1161
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1582
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContentObject_1.ContentObjectFromJSON)(jsonValue); })];
|
|
1162
1583
|
}
|
|
1163
1584
|
});
|
|
1164
1585
|
});
|
|
@@ -1179,40 +1600,53 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1179
1600
|
});
|
|
1180
1601
|
});
|
|
1181
1602
|
};
|
|
1603
|
+
/**
|
|
1604
|
+
* Creates request options for verifyContactMethod without sending the request
|
|
1605
|
+
*/
|
|
1606
|
+
UsersServerApi.prototype.verifyContactMethodRequestOpts = function (requestParameters) {
|
|
1607
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1608
|
+
var queryParameters, headerParameters, urlPath;
|
|
1609
|
+
return __generator(this, function (_a) {
|
|
1610
|
+
if (requestParameters['projectId'] == null) {
|
|
1611
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling verifyContactMethod().');
|
|
1612
|
+
}
|
|
1613
|
+
if (requestParameters['contactMethodId'] == null) {
|
|
1614
|
+
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling verifyContactMethod().');
|
|
1615
|
+
}
|
|
1616
|
+
if (requestParameters['verificationCode'] == null) {
|
|
1617
|
+
throw new runtime.RequiredError('verificationCode', 'Required parameter "verificationCode" was null or undefined when calling verifyContactMethod().');
|
|
1618
|
+
}
|
|
1619
|
+
queryParameters = {};
|
|
1620
|
+
if (requestParameters['verificationCode'] != null) {
|
|
1621
|
+
queryParameters['verificationCode'] = requestParameters['verificationCode'];
|
|
1622
|
+
}
|
|
1623
|
+
headerParameters = {};
|
|
1624
|
+
urlPath = "/api/v1/{projectId}/users/me/contact-methods/{contactMethodId}/verification";
|
|
1625
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1626
|
+
urlPath = urlPath.replace('{contactMethodId}', encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
1627
|
+
return [2 /*return*/, {
|
|
1628
|
+
path: urlPath,
|
|
1629
|
+
method: 'POST',
|
|
1630
|
+
headers: headerParameters,
|
|
1631
|
+
query: queryParameters,
|
|
1632
|
+
}];
|
|
1633
|
+
});
|
|
1634
|
+
});
|
|
1635
|
+
};
|
|
1182
1636
|
/**
|
|
1183
1637
|
*/
|
|
1184
1638
|
UsersServerApi.prototype.verifyContactMethodRaw = function (requestParameters, initOverrides) {
|
|
1185
1639
|
return __awaiter(this, void 0, void 0, function () {
|
|
1186
|
-
var
|
|
1640
|
+
var requestOptions, response;
|
|
1187
1641
|
return __generator(this, function (_a) {
|
|
1188
1642
|
switch (_a.label) {
|
|
1189
|
-
case 0:
|
|
1190
|
-
if (requestParameters['projectId'] == null) {
|
|
1191
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling verifyContactMethod().');
|
|
1192
|
-
}
|
|
1193
|
-
if (requestParameters['contactMethodId'] == null) {
|
|
1194
|
-
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling verifyContactMethod().');
|
|
1195
|
-
}
|
|
1196
|
-
if (requestParameters['verificationCode'] == null) {
|
|
1197
|
-
throw new runtime.RequiredError('verificationCode', 'Required parameter "verificationCode" was null or undefined when calling verifyContactMethod().');
|
|
1198
|
-
}
|
|
1199
|
-
queryParameters = {};
|
|
1200
|
-
if (requestParameters['verificationCode'] != null) {
|
|
1201
|
-
queryParameters['verificationCode'] = requestParameters['verificationCode'];
|
|
1202
|
-
}
|
|
1203
|
-
headerParameters = {};
|
|
1204
|
-
urlPath = "/api/v1/{projectId}/users/me/contact-methods/{contactMethodId}/verification";
|
|
1205
|
-
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1206
|
-
urlPath = urlPath.replace("{".concat("contactMethodId", "}"), encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
1207
|
-
return [4 /*yield*/, this.request({
|
|
1208
|
-
path: urlPath,
|
|
1209
|
-
method: 'POST',
|
|
1210
|
-
headers: headerParameters,
|
|
1211
|
-
query: queryParameters,
|
|
1212
|
-
}, initOverrides)];
|
|
1643
|
+
case 0: return [4 /*yield*/, this.verifyContactMethodRequestOpts(requestParameters)];
|
|
1213
1644
|
case 1:
|
|
1645
|
+
requestOptions = _a.sent();
|
|
1646
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1647
|
+
case 2:
|
|
1214
1648
|
response = _a.sent();
|
|
1215
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1649
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContactMethod_1.ContactMethodFromJSON)(jsonValue); })];
|
|
1216
1650
|
}
|
|
1217
1651
|
});
|
|
1218
1652
|
});
|