@forteplatforms/sdk 1.0.148 → 1.0.149
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.
|
@@ -227,59 +227,59 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
227
227
|
});
|
|
228
228
|
};
|
|
229
229
|
/**
|
|
230
|
-
* Creates request options for
|
|
230
|
+
* Creates request options for createOtpLogin without sending the request
|
|
231
231
|
*/
|
|
232
|
-
UsersServerApi.prototype.
|
|
232
|
+
UsersServerApi.prototype.createOtpLoginRequestOpts = function (requestParameters) {
|
|
233
233
|
return __awaiter(this, void 0, void 0, function () {
|
|
234
234
|
var queryParameters, headerParameters, urlPath;
|
|
235
235
|
return __generator(this, function (_a) {
|
|
236
236
|
if (requestParameters['projectId'] == null) {
|
|
237
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
237
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createOtpLogin().');
|
|
238
238
|
}
|
|
239
|
-
if (requestParameters['
|
|
240
|
-
throw new runtime.RequiredError('
|
|
239
|
+
if (requestParameters['createOtpLoginRequest'] == null) {
|
|
240
|
+
throw new runtime.RequiredError('createOtpLoginRequest', 'Required parameter "createOtpLoginRequest" was null or undefined when calling createOtpLogin().');
|
|
241
241
|
}
|
|
242
242
|
queryParameters = {};
|
|
243
243
|
headerParameters = {};
|
|
244
244
|
headerParameters['Content-Type'] = 'application/json';
|
|
245
|
-
urlPath = "/api/v1/{projectId}/users/
|
|
245
|
+
urlPath = "/api/v1/{projectId}/users/otp-login";
|
|
246
246
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
247
247
|
return [2 /*return*/, {
|
|
248
248
|
path: urlPath,
|
|
249
249
|
method: 'POST',
|
|
250
250
|
headers: headerParameters,
|
|
251
251
|
query: queryParameters,
|
|
252
|
-
body: (0,
|
|
252
|
+
body: (0, CreateOtpLoginRequest_1.CreateOtpLoginRequestToJSON)(requestParameters['createOtpLoginRequest']),
|
|
253
253
|
}];
|
|
254
254
|
});
|
|
255
255
|
});
|
|
256
256
|
};
|
|
257
257
|
/**
|
|
258
258
|
*/
|
|
259
|
-
UsersServerApi.prototype.
|
|
259
|
+
UsersServerApi.prototype.createOtpLoginRaw = function (requestParameters, initOverrides) {
|
|
260
260
|
return __awaiter(this, void 0, void 0, function () {
|
|
261
261
|
var requestOptions, response;
|
|
262
262
|
return __generator(this, function (_a) {
|
|
263
263
|
switch (_a.label) {
|
|
264
|
-
case 0: return [4 /*yield*/, this.
|
|
264
|
+
case 0: return [4 /*yield*/, this.createOtpLoginRequestOpts(requestParameters)];
|
|
265
265
|
case 1:
|
|
266
266
|
requestOptions = _a.sent();
|
|
267
267
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
268
268
|
case 2:
|
|
269
269
|
response = _a.sent();
|
|
270
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
270
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateOtpLoginResponse_1.CreateOtpLoginResponseFromJSON)(jsonValue); })];
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
});
|
|
274
274
|
};
|
|
275
275
|
/**
|
|
276
276
|
*/
|
|
277
|
-
UsersServerApi.prototype.
|
|
277
|
+
UsersServerApi.prototype.createOtpLogin = function (requestParameters, initOverrides) {
|
|
278
278
|
return __awaiter(this, void 0, void 0, function () {
|
|
279
279
|
var response;
|
|
280
280
|
return __generator(this, function (_a) {
|
|
281
281
|
switch (_a.label) {
|
|
282
|
-
case 0: return [4 /*yield*/, this.
|
|
282
|
+
case 0: return [4 /*yield*/, this.createOtpLoginRaw(requestParameters, initOverrides)];
|
|
283
283
|
case 1:
|
|
284
284
|
response = _a.sent();
|
|
285
285
|
return [4 /*yield*/, response.value()];
|
|
@@ -289,59 +289,59 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
289
289
|
});
|
|
290
290
|
};
|
|
291
291
|
/**
|
|
292
|
-
* Creates request options for
|
|
292
|
+
* Creates request options for createUserInvite without sending the request
|
|
293
293
|
*/
|
|
294
|
-
UsersServerApi.prototype.
|
|
294
|
+
UsersServerApi.prototype.createUserInviteRequestOpts = function (requestParameters) {
|
|
295
295
|
return __awaiter(this, void 0, void 0, function () {
|
|
296
296
|
var queryParameters, headerParameters, urlPath;
|
|
297
297
|
return __generator(this, function (_a) {
|
|
298
298
|
if (requestParameters['projectId'] == null) {
|
|
299
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
299
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createUserInvite().');
|
|
300
300
|
}
|
|
301
|
-
if (requestParameters['
|
|
302
|
-
throw new runtime.RequiredError('
|
|
301
|
+
if (requestParameters['createUserInviteRequest'] == null) {
|
|
302
|
+
throw new runtime.RequiredError('createUserInviteRequest', 'Required parameter "createUserInviteRequest" was null or undefined when calling createUserInvite().');
|
|
303
303
|
}
|
|
304
304
|
queryParameters = {};
|
|
305
305
|
headerParameters = {};
|
|
306
306
|
headerParameters['Content-Type'] = 'application/json';
|
|
307
|
-
urlPath = "/api/v1/{projectId}/users/
|
|
307
|
+
urlPath = "/api/v1/{projectId}/users/me/invites";
|
|
308
308
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
309
309
|
return [2 /*return*/, {
|
|
310
310
|
path: urlPath,
|
|
311
311
|
method: 'POST',
|
|
312
312
|
headers: headerParameters,
|
|
313
313
|
query: queryParameters,
|
|
314
|
-
body: (0,
|
|
314
|
+
body: (0, CreateUserInviteRequest_1.CreateUserInviteRequestToJSON)(requestParameters['createUserInviteRequest']),
|
|
315
315
|
}];
|
|
316
316
|
});
|
|
317
317
|
});
|
|
318
318
|
};
|
|
319
319
|
/**
|
|
320
320
|
*/
|
|
321
|
-
UsersServerApi.prototype.
|
|
321
|
+
UsersServerApi.prototype.createUserInviteRaw = function (requestParameters, initOverrides) {
|
|
322
322
|
return __awaiter(this, void 0, void 0, function () {
|
|
323
323
|
var requestOptions, response;
|
|
324
324
|
return __generator(this, function (_a) {
|
|
325
325
|
switch (_a.label) {
|
|
326
|
-
case 0: return [4 /*yield*/, this.
|
|
326
|
+
case 0: return [4 /*yield*/, this.createUserInviteRequestOpts(requestParameters)];
|
|
327
327
|
case 1:
|
|
328
328
|
requestOptions = _a.sent();
|
|
329
329
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
330
330
|
case 2:
|
|
331
331
|
response = _a.sent();
|
|
332
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
332
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PendingUserInviteObject_1.PendingUserInviteObjectFromJSON)(jsonValue); })];
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
335
|
});
|
|
336
336
|
};
|
|
337
337
|
/**
|
|
338
338
|
*/
|
|
339
|
-
UsersServerApi.prototype.
|
|
339
|
+
UsersServerApi.prototype.createUserInvite = function (requestParameters, initOverrides) {
|
|
340
340
|
return __awaiter(this, void 0, void 0, function () {
|
|
341
341
|
var response;
|
|
342
342
|
return __generator(this, function (_a) {
|
|
343
343
|
switch (_a.label) {
|
|
344
|
-
case 0: return [4 /*yield*/, this.
|
|
344
|
+
case 0: return [4 /*yield*/, this.createUserInviteRaw(requestParameters, initOverrides)];
|
|
345
345
|
case 1:
|
|
346
346
|
response = _a.sent();
|
|
347
347
|
return [4 /*yield*/, response.value()];
|
|
@@ -351,121 +351,113 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
351
351
|
});
|
|
352
352
|
};
|
|
353
353
|
/**
|
|
354
|
-
* Creates request options for
|
|
354
|
+
* Creates request options for deleteContactMethod without sending the request
|
|
355
355
|
*/
|
|
356
|
-
UsersServerApi.prototype.
|
|
356
|
+
UsersServerApi.prototype.deleteContactMethodRequestOpts = function (requestParameters) {
|
|
357
357
|
return __awaiter(this, void 0, void 0, function () {
|
|
358
358
|
var queryParameters, headerParameters, urlPath;
|
|
359
359
|
return __generator(this, function (_a) {
|
|
360
360
|
if (requestParameters['projectId'] == null) {
|
|
361
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
361
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteContactMethod().');
|
|
362
362
|
}
|
|
363
|
-
if (requestParameters['
|
|
364
|
-
throw new runtime.RequiredError('
|
|
363
|
+
if (requestParameters['contactMethodId'] == null) {
|
|
364
|
+
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling deleteContactMethod().');
|
|
365
365
|
}
|
|
366
366
|
queryParameters = {};
|
|
367
367
|
headerParameters = {};
|
|
368
|
-
|
|
369
|
-
urlPath = "/api/v1/{projectId}/users/me/payments";
|
|
368
|
+
urlPath = "/api/v1/{projectId}/users/me/contact-methods/{contactMethodId}";
|
|
370
369
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
370
|
+
urlPath = urlPath.replace('{contactMethodId}', encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
371
371
|
return [2 /*return*/, {
|
|
372
372
|
path: urlPath,
|
|
373
|
-
method: '
|
|
373
|
+
method: 'DELETE',
|
|
374
374
|
headers: headerParameters,
|
|
375
375
|
query: queryParameters,
|
|
376
|
-
body: (0, CreatePaymentRequest_1.CreatePaymentRequestToJSON)(requestParameters['createPaymentRequest']),
|
|
377
376
|
}];
|
|
378
377
|
});
|
|
379
378
|
});
|
|
380
379
|
};
|
|
381
380
|
/**
|
|
382
381
|
*/
|
|
383
|
-
UsersServerApi.prototype.
|
|
382
|
+
UsersServerApi.prototype.deleteContactMethodRaw = function (requestParameters, initOverrides) {
|
|
384
383
|
return __awaiter(this, void 0, void 0, function () {
|
|
385
384
|
var requestOptions, response;
|
|
386
385
|
return __generator(this, function (_a) {
|
|
387
386
|
switch (_a.label) {
|
|
388
|
-
case 0: return [4 /*yield*/, this.
|
|
387
|
+
case 0: return [4 /*yield*/, this.deleteContactMethodRequestOpts(requestParameters)];
|
|
389
388
|
case 1:
|
|
390
389
|
requestOptions = _a.sent();
|
|
391
390
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
392
391
|
case 2:
|
|
393
392
|
response = _a.sent();
|
|
394
|
-
return [2 /*return*/, new runtime.
|
|
393
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
395
394
|
}
|
|
396
395
|
});
|
|
397
396
|
});
|
|
398
397
|
};
|
|
399
398
|
/**
|
|
400
399
|
*/
|
|
401
|
-
UsersServerApi.prototype.
|
|
400
|
+
UsersServerApi.prototype.deleteContactMethod = function (requestParameters, initOverrides) {
|
|
402
401
|
return __awaiter(this, void 0, void 0, function () {
|
|
403
|
-
var response;
|
|
404
402
|
return __generator(this, function (_a) {
|
|
405
403
|
switch (_a.label) {
|
|
406
|
-
case 0: return [4 /*yield*/, this.
|
|
404
|
+
case 0: return [4 /*yield*/, this.deleteContactMethodRaw(requestParameters, initOverrides)];
|
|
407
405
|
case 1:
|
|
408
|
-
|
|
409
|
-
return [
|
|
410
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
406
|
+
_a.sent();
|
|
407
|
+
return [2 /*return*/];
|
|
411
408
|
}
|
|
412
409
|
});
|
|
413
410
|
});
|
|
414
411
|
};
|
|
415
412
|
/**
|
|
416
|
-
* Creates request options for
|
|
413
|
+
* Creates request options for getAccount without sending the request
|
|
417
414
|
*/
|
|
418
|
-
UsersServerApi.prototype.
|
|
415
|
+
UsersServerApi.prototype.getAccountRequestOpts = function (requestParameters) {
|
|
419
416
|
return __awaiter(this, void 0, void 0, function () {
|
|
420
417
|
var queryParameters, headerParameters, urlPath;
|
|
421
418
|
return __generator(this, function (_a) {
|
|
422
419
|
if (requestParameters['projectId'] == null) {
|
|
423
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
424
|
-
}
|
|
425
|
-
if (requestParameters['createPaymentPreviewRequest'] == null) {
|
|
426
|
-
throw new runtime.RequiredError('createPaymentPreviewRequest', 'Required parameter "createPaymentPreviewRequest" was null or undefined when calling createPaymentPreview().');
|
|
420
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getAccount().');
|
|
427
421
|
}
|
|
428
422
|
queryParameters = {};
|
|
429
423
|
headerParameters = {};
|
|
430
|
-
|
|
431
|
-
urlPath = "/api/v1/{projectId}/users/me/payments/preview";
|
|
424
|
+
urlPath = "/api/v1/{projectId}/users/me";
|
|
432
425
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
433
426
|
return [2 /*return*/, {
|
|
434
427
|
path: urlPath,
|
|
435
|
-
method: '
|
|
428
|
+
method: 'GET',
|
|
436
429
|
headers: headerParameters,
|
|
437
430
|
query: queryParameters,
|
|
438
|
-
body: (0, CreatePaymentPreviewRequest_1.CreatePaymentPreviewRequestToJSON)(requestParameters['createPaymentPreviewRequest']),
|
|
439
431
|
}];
|
|
440
432
|
});
|
|
441
433
|
});
|
|
442
434
|
};
|
|
443
435
|
/**
|
|
444
436
|
*/
|
|
445
|
-
UsersServerApi.prototype.
|
|
437
|
+
UsersServerApi.prototype.getAccountRaw = function (requestParameters, initOverrides) {
|
|
446
438
|
return __awaiter(this, void 0, void 0, function () {
|
|
447
439
|
var requestOptions, response;
|
|
448
440
|
return __generator(this, function (_a) {
|
|
449
441
|
switch (_a.label) {
|
|
450
|
-
case 0: return [4 /*yield*/, this.
|
|
442
|
+
case 0: return [4 /*yield*/, this.getAccountRequestOpts(requestParameters)];
|
|
451
443
|
case 1:
|
|
452
444
|
requestOptions = _a.sent();
|
|
453
445
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
454
446
|
case 2:
|
|
455
447
|
response = _a.sent();
|
|
456
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
448
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserObject_1.UserObjectFromJSON)(jsonValue); })];
|
|
457
449
|
}
|
|
458
450
|
});
|
|
459
451
|
});
|
|
460
452
|
};
|
|
461
453
|
/**
|
|
462
454
|
*/
|
|
463
|
-
UsersServerApi.prototype.
|
|
455
|
+
UsersServerApi.prototype.getAccount = function (requestParameters, initOverrides) {
|
|
464
456
|
return __awaiter(this, void 0, void 0, function () {
|
|
465
457
|
var response;
|
|
466
458
|
return __generator(this, function (_a) {
|
|
467
459
|
switch (_a.label) {
|
|
468
|
-
case 0: return [4 /*yield*/, this.
|
|
460
|
+
case 0: return [4 /*yield*/, this.getAccountRaw(requestParameters, initOverrides)];
|
|
469
461
|
case 1:
|
|
470
462
|
response = _a.sent();
|
|
471
463
|
return [4 /*yield*/, response.value()];
|
|
@@ -475,59 +467,81 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
475
467
|
});
|
|
476
468
|
};
|
|
477
469
|
/**
|
|
478
|
-
* Creates request options for
|
|
470
|
+
* Creates request options for googleAuthLoginCallback without sending the request
|
|
479
471
|
*/
|
|
480
|
-
UsersServerApi.prototype.
|
|
472
|
+
UsersServerApi.prototype.googleAuthLoginCallbackRequestOpts = function (requestParameters) {
|
|
481
473
|
return __awaiter(this, void 0, void 0, function () {
|
|
482
|
-
var queryParameters, headerParameters, urlPath;
|
|
474
|
+
var queryParameters, headerParameters, consumes, canConsumeForm, formParams, useForm, urlPath;
|
|
483
475
|
return __generator(this, function (_a) {
|
|
484
476
|
if (requestParameters['projectId'] == null) {
|
|
485
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
477
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling googleAuthLoginCallback().');
|
|
486
478
|
}
|
|
487
|
-
if (requestParameters['
|
|
488
|
-
throw new runtime.RequiredError('
|
|
479
|
+
if (requestParameters['gCsrfToken'] == null) {
|
|
480
|
+
throw new runtime.RequiredError('gCsrfToken', 'Required parameter "gCsrfToken" was null or undefined when calling googleAuthLoginCallback().');
|
|
481
|
+
}
|
|
482
|
+
if (requestParameters['credential'] == null) {
|
|
483
|
+
throw new runtime.RequiredError('credential', 'Required parameter "credential" was null or undefined when calling googleAuthLoginCallback().');
|
|
489
484
|
}
|
|
490
485
|
queryParameters = {};
|
|
491
486
|
headerParameters = {};
|
|
492
|
-
|
|
493
|
-
|
|
487
|
+
consumes = [
|
|
488
|
+
{ contentType: 'application/x-www-form-urlencoded' },
|
|
489
|
+
];
|
|
490
|
+
canConsumeForm = runtime.canConsumeForm(consumes);
|
|
491
|
+
useForm = false;
|
|
492
|
+
if (useForm) {
|
|
493
|
+
formParams = new FormData();
|
|
494
|
+
}
|
|
495
|
+
else {
|
|
496
|
+
formParams = new URLSearchParams();
|
|
497
|
+
}
|
|
498
|
+
if (requestParameters['gCsrfToken'] != null) {
|
|
499
|
+
formParams.append('g_csrf_token', requestParameters['gCsrfToken']);
|
|
500
|
+
}
|
|
501
|
+
if (requestParameters['credential'] != null) {
|
|
502
|
+
formParams.append('credential', requestParameters['credential']);
|
|
503
|
+
}
|
|
504
|
+
if (requestParameters['recaptchaToken'] != null) {
|
|
505
|
+
formParams.append('recaptcha_token', requestParameters['recaptchaToken']);
|
|
506
|
+
}
|
|
507
|
+
urlPath = "/api/v1/{projectId}/users/google-auth-callback";
|
|
494
508
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
495
509
|
return [2 /*return*/, {
|
|
496
510
|
path: urlPath,
|
|
497
511
|
method: 'POST',
|
|
498
512
|
headers: headerParameters,
|
|
499
513
|
query: queryParameters,
|
|
500
|
-
body:
|
|
514
|
+
body: formParams,
|
|
501
515
|
}];
|
|
502
516
|
});
|
|
503
517
|
});
|
|
504
518
|
};
|
|
505
519
|
/**
|
|
506
520
|
*/
|
|
507
|
-
UsersServerApi.prototype.
|
|
521
|
+
UsersServerApi.prototype.googleAuthLoginCallbackRaw = function (requestParameters, initOverrides) {
|
|
508
522
|
return __awaiter(this, void 0, void 0, function () {
|
|
509
523
|
var requestOptions, response;
|
|
510
524
|
return __generator(this, function (_a) {
|
|
511
525
|
switch (_a.label) {
|
|
512
|
-
case 0: return [4 /*yield*/, this.
|
|
526
|
+
case 0: return [4 /*yield*/, this.googleAuthLoginCallbackRequestOpts(requestParameters)];
|
|
513
527
|
case 1:
|
|
514
528
|
requestOptions = _a.sent();
|
|
515
529
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
516
530
|
case 2:
|
|
517
531
|
response = _a.sent();
|
|
518
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
532
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, LoginUserResponse_1.LoginUserResponseFromJSON)(jsonValue); })];
|
|
519
533
|
}
|
|
520
534
|
});
|
|
521
535
|
});
|
|
522
536
|
};
|
|
523
537
|
/**
|
|
524
538
|
*/
|
|
525
|
-
UsersServerApi.prototype.
|
|
539
|
+
UsersServerApi.prototype.googleAuthLoginCallback = function (requestParameters, initOverrides) {
|
|
526
540
|
return __awaiter(this, void 0, void 0, function () {
|
|
527
541
|
var response;
|
|
528
542
|
return __generator(this, function (_a) {
|
|
529
543
|
switch (_a.label) {
|
|
530
|
-
case 0: return [4 /*yield*/, this.
|
|
544
|
+
case 0: return [4 /*yield*/, this.googleAuthLoginCallbackRaw(requestParameters, initOverrides)];
|
|
531
545
|
case 1:
|
|
532
546
|
response = _a.sent();
|
|
533
547
|
return [4 /*yield*/, response.value()];
|
|
@@ -537,26 +551,37 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
537
551
|
});
|
|
538
552
|
};
|
|
539
553
|
/**
|
|
540
|
-
* Creates request options for
|
|
554
|
+
* Creates request options for listMyPayments without sending the request
|
|
541
555
|
*/
|
|
542
|
-
UsersServerApi.prototype.
|
|
556
|
+
UsersServerApi.prototype.listMyPaymentsRequestOpts = function (requestParameters) {
|
|
543
557
|
return __awaiter(this, void 0, void 0, function () {
|
|
544
558
|
var queryParameters, headerParameters, urlPath;
|
|
545
559
|
return __generator(this, function (_a) {
|
|
546
560
|
if (requestParameters['projectId'] == null) {
|
|
547
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
548
|
-
}
|
|
549
|
-
if (requestParameters['contactMethodId'] == null) {
|
|
550
|
-
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling deleteContactMethod().');
|
|
561
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listMyPayments().');
|
|
551
562
|
}
|
|
552
563
|
queryParameters = {};
|
|
564
|
+
if (requestParameters['metadataKey'] != null) {
|
|
565
|
+
queryParameters['metadataKey'] = requestParameters['metadataKey'];
|
|
566
|
+
}
|
|
567
|
+
if (requestParameters['metadataValue'] != null) {
|
|
568
|
+
queryParameters['metadataValue'] = requestParameters['metadataValue'];
|
|
569
|
+
}
|
|
570
|
+
if (requestParameters['minTime'] != null) {
|
|
571
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
572
|
+
}
|
|
573
|
+
if (requestParameters['maxTime'] != null) {
|
|
574
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
575
|
+
}
|
|
576
|
+
if (requestParameters['nextToken'] != null) {
|
|
577
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
578
|
+
}
|
|
553
579
|
headerParameters = {};
|
|
554
|
-
urlPath = "/api/v1/{projectId}/users/me/
|
|
580
|
+
urlPath = "/api/v1/{projectId}/users/me/payments";
|
|
555
581
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
556
|
-
urlPath = urlPath.replace('{contactMethodId}', encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
557
582
|
return [2 /*return*/, {
|
|
558
583
|
path: urlPath,
|
|
559
|
-
method: '
|
|
584
|
+
method: 'GET',
|
|
560
585
|
headers: headerParameters,
|
|
561
586
|
query: queryParameters,
|
|
562
587
|
}];
|
|
@@ -565,57 +590,55 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
565
590
|
};
|
|
566
591
|
/**
|
|
567
592
|
*/
|
|
568
|
-
UsersServerApi.prototype.
|
|
593
|
+
UsersServerApi.prototype.listMyPaymentsRaw = function (requestParameters, initOverrides) {
|
|
569
594
|
return __awaiter(this, void 0, void 0, function () {
|
|
570
595
|
var requestOptions, response;
|
|
571
596
|
return __generator(this, function (_a) {
|
|
572
597
|
switch (_a.label) {
|
|
573
|
-
case 0: return [4 /*yield*/, this.
|
|
598
|
+
case 0: return [4 /*yield*/, this.listMyPaymentsRequestOpts(requestParameters)];
|
|
574
599
|
case 1:
|
|
575
600
|
requestOptions = _a.sent();
|
|
576
601
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
577
602
|
case 2:
|
|
578
603
|
response = _a.sent();
|
|
579
|
-
return [2 /*return*/, new runtime.
|
|
604
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponsePaymentObject_1.PaginatedResponsePaymentObjectFromJSON)(jsonValue); })];
|
|
580
605
|
}
|
|
581
606
|
});
|
|
582
607
|
});
|
|
583
608
|
};
|
|
584
609
|
/**
|
|
585
610
|
*/
|
|
586
|
-
UsersServerApi.prototype.
|
|
611
|
+
UsersServerApi.prototype.listMyPayments = function (requestParameters, initOverrides) {
|
|
587
612
|
return __awaiter(this, void 0, void 0, function () {
|
|
613
|
+
var response;
|
|
588
614
|
return __generator(this, function (_a) {
|
|
589
615
|
switch (_a.label) {
|
|
590
|
-
case 0: return [4 /*yield*/, this.
|
|
616
|
+
case 0: return [4 /*yield*/, this.listMyPaymentsRaw(requestParameters, initOverrides)];
|
|
591
617
|
case 1:
|
|
592
|
-
_a.sent();
|
|
593
|
-
return [
|
|
618
|
+
response = _a.sent();
|
|
619
|
+
return [4 /*yield*/, response.value()];
|
|
620
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
594
621
|
}
|
|
595
622
|
});
|
|
596
623
|
});
|
|
597
624
|
};
|
|
598
625
|
/**
|
|
599
|
-
* Creates request options for
|
|
626
|
+
* Creates request options for listUserInvites without sending the request
|
|
600
627
|
*/
|
|
601
|
-
UsersServerApi.prototype.
|
|
628
|
+
UsersServerApi.prototype.listUserInvitesRequestOpts = function (requestParameters) {
|
|
602
629
|
return __awaiter(this, void 0, void 0, function () {
|
|
603
630
|
var queryParameters, headerParameters, urlPath;
|
|
604
631
|
return __generator(this, function (_a) {
|
|
605
632
|
if (requestParameters['projectId'] == null) {
|
|
606
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
607
|
-
}
|
|
608
|
-
if (requestParameters['contentId'] == null) {
|
|
609
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling deleteContent().');
|
|
633
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listUserInvites().');
|
|
610
634
|
}
|
|
611
635
|
queryParameters = {};
|
|
612
636
|
headerParameters = {};
|
|
613
|
-
urlPath = "/api/v1/{projectId}/users/me/
|
|
637
|
+
urlPath = "/api/v1/{projectId}/users/me/invites";
|
|
614
638
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
615
|
-
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
616
639
|
return [2 /*return*/, {
|
|
617
640
|
path: urlPath,
|
|
618
|
-
method: '
|
|
641
|
+
method: 'GET',
|
|
619
642
|
headers: headerParameters,
|
|
620
643
|
query: queryParameters,
|
|
621
644
|
}];
|
|
@@ -624,54 +647,55 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
624
647
|
};
|
|
625
648
|
/**
|
|
626
649
|
*/
|
|
627
|
-
UsersServerApi.prototype.
|
|
650
|
+
UsersServerApi.prototype.listUserInvitesRaw = function (requestParameters, initOverrides) {
|
|
628
651
|
return __awaiter(this, void 0, void 0, function () {
|
|
629
652
|
var requestOptions, response;
|
|
630
653
|
return __generator(this, function (_a) {
|
|
631
654
|
switch (_a.label) {
|
|
632
|
-
case 0: return [4 /*yield*/, this.
|
|
655
|
+
case 0: return [4 /*yield*/, this.listUserInvitesRequestOpts(requestParameters)];
|
|
633
656
|
case 1:
|
|
634
657
|
requestOptions = _a.sent();
|
|
635
658
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
636
659
|
case 2:
|
|
637
660
|
response = _a.sent();
|
|
638
|
-
return [2 /*return*/, new runtime.
|
|
661
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ListUserInvitesResponse_1.ListUserInvitesResponseFromJSON)(jsonValue); })];
|
|
639
662
|
}
|
|
640
663
|
});
|
|
641
664
|
});
|
|
642
665
|
};
|
|
643
666
|
/**
|
|
644
667
|
*/
|
|
645
|
-
UsersServerApi.prototype.
|
|
668
|
+
UsersServerApi.prototype.listUserInvites = function (requestParameters, initOverrides) {
|
|
646
669
|
return __awaiter(this, void 0, void 0, function () {
|
|
670
|
+
var response;
|
|
647
671
|
return __generator(this, function (_a) {
|
|
648
672
|
switch (_a.label) {
|
|
649
|
-
case 0: return [4 /*yield*/, this.
|
|
673
|
+
case 0: return [4 /*yield*/, this.listUserInvitesRaw(requestParameters, initOverrides)];
|
|
650
674
|
case 1:
|
|
651
|
-
_a.sent();
|
|
652
|
-
return [
|
|
675
|
+
response = _a.sent();
|
|
676
|
+
return [4 /*yield*/, response.value()];
|
|
677
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
653
678
|
}
|
|
654
679
|
});
|
|
655
680
|
});
|
|
656
681
|
};
|
|
657
682
|
/**
|
|
658
|
-
* Creates request options for
|
|
683
|
+
* Creates request options for logout without sending the request
|
|
659
684
|
*/
|
|
660
|
-
UsersServerApi.prototype.
|
|
685
|
+
UsersServerApi.prototype.logoutRequestOpts = function (requestParameters) {
|
|
661
686
|
return __awaiter(this, void 0, void 0, function () {
|
|
662
687
|
var queryParameters, headerParameters, urlPath;
|
|
663
688
|
return __generator(this, function (_a) {
|
|
664
689
|
if (requestParameters['projectId'] == null) {
|
|
665
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
666
|
-
}
|
|
667
|
-
if (requestParameters['pendingContentId'] == null) {
|
|
668
|
-
throw new runtime.RequiredError('pendingContentId', 'Required parameter "pendingContentId" was null or undefined when calling finalizeContent().');
|
|
690
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling logout().');
|
|
669
691
|
}
|
|
670
692
|
queryParameters = {};
|
|
671
693
|
headerParameters = {};
|
|
672
|
-
|
|
694
|
+
if (requestParameters['authorization'] != null) {
|
|
695
|
+
headerParameters['Authorization'] = String(requestParameters['authorization']);
|
|
696
|
+
}
|
|
697
|
+
urlPath = "/api/v1/{projectId}/users/logout";
|
|
673
698
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
674
|
-
urlPath = urlPath.replace('{pendingContentId}', encodeURIComponent(String(requestParameters['pendingContentId'])));
|
|
675
699
|
return [2 /*return*/, {
|
|
676
700
|
path: urlPath,
|
|
677
701
|
method: 'POST',
|
|
@@ -683,87 +707,90 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
683
707
|
};
|
|
684
708
|
/**
|
|
685
709
|
*/
|
|
686
|
-
UsersServerApi.prototype.
|
|
710
|
+
UsersServerApi.prototype.logoutRaw = function (requestParameters, initOverrides) {
|
|
687
711
|
return __awaiter(this, void 0, void 0, function () {
|
|
688
712
|
var requestOptions, response;
|
|
689
713
|
return __generator(this, function (_a) {
|
|
690
714
|
switch (_a.label) {
|
|
691
|
-
case 0: return [4 /*yield*/, this.
|
|
715
|
+
case 0: return [4 /*yield*/, this.logoutRequestOpts(requestParameters)];
|
|
692
716
|
case 1:
|
|
693
717
|
requestOptions = _a.sent();
|
|
694
718
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
695
719
|
case 2:
|
|
696
720
|
response = _a.sent();
|
|
697
|
-
return [2 /*return*/, new runtime.
|
|
721
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
698
722
|
}
|
|
699
723
|
});
|
|
700
724
|
});
|
|
701
725
|
};
|
|
702
726
|
/**
|
|
703
727
|
*/
|
|
704
|
-
UsersServerApi.prototype.
|
|
728
|
+
UsersServerApi.prototype.logout = function (requestParameters, initOverrides) {
|
|
705
729
|
return __awaiter(this, void 0, void 0, function () {
|
|
706
|
-
var response;
|
|
707
730
|
return __generator(this, function (_a) {
|
|
708
731
|
switch (_a.label) {
|
|
709
|
-
case 0: return [4 /*yield*/, this.
|
|
732
|
+
case 0: return [4 /*yield*/, this.logoutRaw(requestParameters, initOverrides)];
|
|
710
733
|
case 1:
|
|
711
|
-
|
|
712
|
-
return [
|
|
713
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
734
|
+
_a.sent();
|
|
735
|
+
return [2 /*return*/];
|
|
714
736
|
}
|
|
715
737
|
});
|
|
716
738
|
});
|
|
717
739
|
};
|
|
718
740
|
/**
|
|
719
|
-
* Creates request options for
|
|
741
|
+
* Creates request options for registerUser without sending the request
|
|
720
742
|
*/
|
|
721
|
-
UsersServerApi.prototype.
|
|
743
|
+
UsersServerApi.prototype.registerUserRequestOpts = function (requestParameters) {
|
|
722
744
|
return __awaiter(this, void 0, void 0, function () {
|
|
723
745
|
var queryParameters, headerParameters, urlPath;
|
|
724
746
|
return __generator(this, function (_a) {
|
|
725
747
|
if (requestParameters['projectId'] == null) {
|
|
726
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
748
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling registerUser().');
|
|
749
|
+
}
|
|
750
|
+
if (requestParameters['registerUserRequest'] == null) {
|
|
751
|
+
throw new runtime.RequiredError('registerUserRequest', 'Required parameter "registerUserRequest" was null or undefined when calling registerUser().');
|
|
727
752
|
}
|
|
728
753
|
queryParameters = {};
|
|
729
754
|
headerParameters = {};
|
|
730
|
-
|
|
755
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
756
|
+
urlPath = "/api/v1/{projectId}/users/register";
|
|
731
757
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
732
758
|
return [2 /*return*/, {
|
|
733
759
|
path: urlPath,
|
|
734
|
-
method: '
|
|
760
|
+
method: 'POST',
|
|
735
761
|
headers: headerParameters,
|
|
736
762
|
query: queryParameters,
|
|
763
|
+
body: (0, RegisterUserRequest_1.RegisterUserRequestToJSON)(requestParameters['registerUserRequest']),
|
|
737
764
|
}];
|
|
738
765
|
});
|
|
739
766
|
});
|
|
740
767
|
};
|
|
741
768
|
/**
|
|
742
769
|
*/
|
|
743
|
-
UsersServerApi.prototype.
|
|
770
|
+
UsersServerApi.prototype.registerUserRaw = function (requestParameters, initOverrides) {
|
|
744
771
|
return __awaiter(this, void 0, void 0, function () {
|
|
745
772
|
var requestOptions, response;
|
|
746
773
|
return __generator(this, function (_a) {
|
|
747
774
|
switch (_a.label) {
|
|
748
|
-
case 0: return [4 /*yield*/, this.
|
|
775
|
+
case 0: return [4 /*yield*/, this.registerUserRequestOpts(requestParameters)];
|
|
749
776
|
case 1:
|
|
750
777
|
requestOptions = _a.sent();
|
|
751
778
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
752
779
|
case 2:
|
|
753
780
|
response = _a.sent();
|
|
754
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
781
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, RegisterUserResponse_1.RegisterUserResponseFromJSON)(jsonValue); })];
|
|
755
782
|
}
|
|
756
783
|
});
|
|
757
784
|
});
|
|
758
785
|
};
|
|
759
786
|
/**
|
|
760
787
|
*/
|
|
761
|
-
UsersServerApi.prototype.
|
|
788
|
+
UsersServerApi.prototype.registerUser = function (requestParameters, initOverrides) {
|
|
762
789
|
return __awaiter(this, void 0, void 0, function () {
|
|
763
790
|
var response;
|
|
764
791
|
return __generator(this, function (_a) {
|
|
765
792
|
switch (_a.label) {
|
|
766
|
-
case 0: return [4 /*yield*/, this.
|
|
793
|
+
case 0: return [4 /*yield*/, this.registerUserRaw(requestParameters, initOverrides)];
|
|
767
794
|
case 1:
|
|
768
795
|
response = _a.sent();
|
|
769
796
|
return [4 /*yield*/, response.value()];
|
|
@@ -773,26 +800,28 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
773
800
|
});
|
|
774
801
|
};
|
|
775
802
|
/**
|
|
776
|
-
* Creates request options for
|
|
803
|
+
* Creates request options for renewSessionToken without sending the request
|
|
777
804
|
*/
|
|
778
|
-
UsersServerApi.prototype.
|
|
805
|
+
UsersServerApi.prototype.renewSessionTokenRequestOpts = function (requestParameters) {
|
|
779
806
|
return __awaiter(this, void 0, void 0, function () {
|
|
780
807
|
var queryParameters, headerParameters, urlPath;
|
|
781
808
|
return __generator(this, function (_a) {
|
|
782
809
|
if (requestParameters['projectId'] == null) {
|
|
783
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
784
|
-
}
|
|
785
|
-
if (requestParameters['contentId'] == null) {
|
|
786
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContent().');
|
|
810
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling renewSessionToken().');
|
|
787
811
|
}
|
|
788
812
|
queryParameters = {};
|
|
813
|
+
if (requestParameters['renewalDurationSeconds'] != null) {
|
|
814
|
+
queryParameters['renewalDurationSeconds'] = requestParameters['renewalDurationSeconds'];
|
|
815
|
+
}
|
|
789
816
|
headerParameters = {};
|
|
790
|
-
|
|
817
|
+
if (requestParameters['authorization'] != null) {
|
|
818
|
+
headerParameters['Authorization'] = String(requestParameters['authorization']);
|
|
819
|
+
}
|
|
820
|
+
urlPath = "/api/v1/{projectId}/users/session-token/renew";
|
|
791
821
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
792
|
-
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
793
822
|
return [2 /*return*/, {
|
|
794
823
|
path: urlPath,
|
|
795
|
-
method: '
|
|
824
|
+
method: 'POST',
|
|
796
825
|
headers: headerParameters,
|
|
797
826
|
query: queryParameters,
|
|
798
827
|
}];
|
|
@@ -801,30 +830,30 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
801
830
|
};
|
|
802
831
|
/**
|
|
803
832
|
*/
|
|
804
|
-
UsersServerApi.prototype.
|
|
833
|
+
UsersServerApi.prototype.renewSessionTokenRaw = function (requestParameters, initOverrides) {
|
|
805
834
|
return __awaiter(this, void 0, void 0, function () {
|
|
806
835
|
var requestOptions, response;
|
|
807
836
|
return __generator(this, function (_a) {
|
|
808
837
|
switch (_a.label) {
|
|
809
|
-
case 0: return [4 /*yield*/, this.
|
|
838
|
+
case 0: return [4 /*yield*/, this.renewSessionTokenRequestOpts(requestParameters)];
|
|
810
839
|
case 1:
|
|
811
840
|
requestOptions = _a.sent();
|
|
812
841
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
813
842
|
case 2:
|
|
814
843
|
response = _a.sent();
|
|
815
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
844
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, RenewSessionTokenResponse_1.RenewSessionTokenResponseFromJSON)(jsonValue); })];
|
|
816
845
|
}
|
|
817
846
|
});
|
|
818
847
|
});
|
|
819
848
|
};
|
|
820
849
|
/**
|
|
821
850
|
*/
|
|
822
|
-
UsersServerApi.prototype.
|
|
851
|
+
UsersServerApi.prototype.renewSessionToken = function (requestParameters, initOverrides) {
|
|
823
852
|
return __awaiter(this, void 0, void 0, function () {
|
|
824
853
|
var response;
|
|
825
854
|
return __generator(this, function (_a) {
|
|
826
855
|
switch (_a.label) {
|
|
827
|
-
case 0: return [4 /*yield*/, this.
|
|
856
|
+
case 0: return [4 /*yield*/, this.renewSessionTokenRaw(requestParameters, initOverrides)];
|
|
828
857
|
case 1:
|
|
829
858
|
response = _a.sent();
|
|
830
859
|
return [4 /*yield*/, response.value()];
|
|
@@ -834,26 +863,26 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
834
863
|
});
|
|
835
864
|
};
|
|
836
865
|
/**
|
|
837
|
-
* Creates request options for
|
|
866
|
+
* Creates request options for resendContactMethodVerificationCode without sending the request
|
|
838
867
|
*/
|
|
839
|
-
UsersServerApi.prototype.
|
|
868
|
+
UsersServerApi.prototype.resendContactMethodVerificationCodeRequestOpts = function (requestParameters) {
|
|
840
869
|
return __awaiter(this, void 0, void 0, function () {
|
|
841
870
|
var queryParameters, headerParameters, urlPath;
|
|
842
871
|
return __generator(this, function (_a) {
|
|
843
872
|
if (requestParameters['projectId'] == null) {
|
|
844
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
873
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling resendContactMethodVerificationCode().');
|
|
845
874
|
}
|
|
846
|
-
if (requestParameters['
|
|
847
|
-
throw new runtime.RequiredError('
|
|
875
|
+
if (requestParameters['contactMethodId'] == null) {
|
|
876
|
+
throw new runtime.RequiredError('contactMethodId', 'Required parameter "contactMethodId" was null or undefined when calling resendContactMethodVerificationCode().');
|
|
848
877
|
}
|
|
849
878
|
queryParameters = {};
|
|
850
879
|
headerParameters = {};
|
|
851
|
-
urlPath = "/api/v1/{projectId}/users/me/
|
|
880
|
+
urlPath = "/api/v1/{projectId}/users/me/contact-methods/{contactMethodId}/resend-verification-code";
|
|
852
881
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
853
|
-
urlPath = urlPath.replace('{
|
|
882
|
+
urlPath = urlPath.replace('{contactMethodId}', encodeURIComponent(String(requestParameters['contactMethodId'])));
|
|
854
883
|
return [2 /*return*/, {
|
|
855
884
|
path: urlPath,
|
|
856
|
-
method: '
|
|
885
|
+
method: 'POST',
|
|
857
886
|
headers: headerParameters,
|
|
858
887
|
query: queryParameters,
|
|
859
888
|
}];
|
|
@@ -862,30 +891,30 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
862
891
|
};
|
|
863
892
|
/**
|
|
864
893
|
*/
|
|
865
|
-
UsersServerApi.prototype.
|
|
894
|
+
UsersServerApi.prototype.resendContactMethodVerificationCodeRaw = function (requestParameters, initOverrides) {
|
|
866
895
|
return __awaiter(this, void 0, void 0, function () {
|
|
867
896
|
var requestOptions, response;
|
|
868
897
|
return __generator(this, function (_a) {
|
|
869
898
|
switch (_a.label) {
|
|
870
|
-
case 0: return [4 /*yield*/, this.
|
|
899
|
+
case 0: return [4 /*yield*/, this.resendContactMethodVerificationCodeRequestOpts(requestParameters)];
|
|
871
900
|
case 1:
|
|
872
901
|
requestOptions = _a.sent();
|
|
873
902
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
874
903
|
case 2:
|
|
875
904
|
response = _a.sent();
|
|
876
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
905
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContactMethod_1.ContactMethodFromJSON)(jsonValue); })];
|
|
877
906
|
}
|
|
878
907
|
});
|
|
879
908
|
});
|
|
880
909
|
};
|
|
881
910
|
/**
|
|
882
911
|
*/
|
|
883
|
-
UsersServerApi.prototype.
|
|
912
|
+
UsersServerApi.prototype.resendContactMethodVerificationCode = function (requestParameters, initOverrides) {
|
|
884
913
|
return __awaiter(this, void 0, void 0, function () {
|
|
885
914
|
var response;
|
|
886
915
|
return __generator(this, function (_a) {
|
|
887
916
|
switch (_a.label) {
|
|
888
|
-
case 0: return [4 /*yield*/, this.
|
|
917
|
+
case 0: return [4 /*yield*/, this.resendContactMethodVerificationCodeRaw(requestParameters, initOverrides)];
|
|
889
918
|
case 1:
|
|
890
919
|
response = _a.sent();
|
|
891
920
|
return [4 /*yield*/, response.value()];
|
|
@@ -895,81 +924,58 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
895
924
|
});
|
|
896
925
|
};
|
|
897
926
|
/**
|
|
898
|
-
* Creates request options for
|
|
927
|
+
* Creates request options for resendLoginOtp without sending the request
|
|
899
928
|
*/
|
|
900
|
-
UsersServerApi.prototype.
|
|
929
|
+
UsersServerApi.prototype.resendLoginOtpRequestOpts = function (requestParameters) {
|
|
901
930
|
return __awaiter(this, void 0, void 0, function () {
|
|
902
|
-
var queryParameters, headerParameters,
|
|
931
|
+
var queryParameters, headerParameters, urlPath;
|
|
903
932
|
return __generator(this, function (_a) {
|
|
904
933
|
if (requestParameters['projectId'] == null) {
|
|
905
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
906
|
-
}
|
|
907
|
-
if (requestParameters['gCsrfToken'] == null) {
|
|
908
|
-
throw new runtime.RequiredError('gCsrfToken', 'Required parameter "gCsrfToken" was null or undefined when calling googleAuthLoginCallback().');
|
|
934
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling resendLoginOtp().');
|
|
909
935
|
}
|
|
910
|
-
if (requestParameters['
|
|
911
|
-
throw new runtime.RequiredError('
|
|
936
|
+
if (requestParameters['pendingLoginId'] == null) {
|
|
937
|
+
throw new runtime.RequiredError('pendingLoginId', 'Required parameter "pendingLoginId" was null or undefined when calling resendLoginOtp().');
|
|
912
938
|
}
|
|
913
939
|
queryParameters = {};
|
|
914
940
|
headerParameters = {};
|
|
915
|
-
|
|
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";
|
|
941
|
+
urlPath = "/api/v1/{projectId}/users/otp-login/{pendingLoginId}/resend";
|
|
936
942
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
943
|
+
urlPath = urlPath.replace('{pendingLoginId}', encodeURIComponent(String(requestParameters['pendingLoginId'])));
|
|
937
944
|
return [2 /*return*/, {
|
|
938
945
|
path: urlPath,
|
|
939
946
|
method: 'POST',
|
|
940
947
|
headers: headerParameters,
|
|
941
948
|
query: queryParameters,
|
|
942
|
-
body: formParams,
|
|
943
949
|
}];
|
|
944
950
|
});
|
|
945
951
|
});
|
|
946
952
|
};
|
|
947
953
|
/**
|
|
948
954
|
*/
|
|
949
|
-
UsersServerApi.prototype.
|
|
955
|
+
UsersServerApi.prototype.resendLoginOtpRaw = function (requestParameters, initOverrides) {
|
|
950
956
|
return __awaiter(this, void 0, void 0, function () {
|
|
951
957
|
var requestOptions, response;
|
|
952
958
|
return __generator(this, function (_a) {
|
|
953
959
|
switch (_a.label) {
|
|
954
|
-
case 0: return [4 /*yield*/, this.
|
|
960
|
+
case 0: return [4 /*yield*/, this.resendLoginOtpRequestOpts(requestParameters)];
|
|
955
961
|
case 1:
|
|
956
962
|
requestOptions = _a.sent();
|
|
957
963
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
958
964
|
case 2:
|
|
959
965
|
response = _a.sent();
|
|
960
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
966
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateOtpLoginResponse_1.CreateOtpLoginResponseFromJSON)(jsonValue); })];
|
|
961
967
|
}
|
|
962
968
|
});
|
|
963
969
|
});
|
|
964
970
|
};
|
|
965
971
|
/**
|
|
966
972
|
*/
|
|
967
|
-
UsersServerApi.prototype.
|
|
973
|
+
UsersServerApi.prototype.resendLoginOtp = function (requestParameters, initOverrides) {
|
|
968
974
|
return __awaiter(this, void 0, void 0, function () {
|
|
969
975
|
var response;
|
|
970
976
|
return __generator(this, function (_a) {
|
|
971
977
|
switch (_a.label) {
|
|
972
|
-
case 0: return [4 /*yield*/, this.
|
|
978
|
+
case 0: return [4 /*yield*/, this.resendLoginOtpRaw(requestParameters, initOverrides)];
|
|
973
979
|
case 1:
|
|
974
980
|
response = _a.sent();
|
|
975
981
|
return [4 /*yield*/, response.value()];
|
|
@@ -979,28 +985,26 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
979
985
|
});
|
|
980
986
|
};
|
|
981
987
|
/**
|
|
982
|
-
* Creates request options for
|
|
988
|
+
* Creates request options for revokeUserInvite without sending the request
|
|
983
989
|
*/
|
|
984
|
-
UsersServerApi.prototype.
|
|
990
|
+
UsersServerApi.prototype.revokeUserInviteRequestOpts = function (requestParameters) {
|
|
985
991
|
return __awaiter(this, void 0, void 0, function () {
|
|
986
992
|
var queryParameters, headerParameters, urlPath;
|
|
987
993
|
return __generator(this, function (_a) {
|
|
988
994
|
if (requestParameters['projectId'] == null) {
|
|
989
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
990
|
-
}
|
|
991
|
-
queryParameters = {};
|
|
992
|
-
if (requestParameters['page'] != null) {
|
|
993
|
-
queryParameters['page'] = requestParameters['page'];
|
|
995
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling revokeUserInvite().');
|
|
994
996
|
}
|
|
995
|
-
if (requestParameters['
|
|
996
|
-
|
|
997
|
+
if (requestParameters['inviteId'] == null) {
|
|
998
|
+
throw new runtime.RequiredError('inviteId', 'Required parameter "inviteId" was null or undefined when calling revokeUserInvite().');
|
|
997
999
|
}
|
|
1000
|
+
queryParameters = {};
|
|
998
1001
|
headerParameters = {};
|
|
999
|
-
urlPath = "/api/v1/{projectId}/users/me/
|
|
1002
|
+
urlPath = "/api/v1/{projectId}/users/me/invites/{inviteId}";
|
|
1000
1003
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1004
|
+
urlPath = urlPath.replace('{inviteId}', encodeURIComponent(String(requestParameters['inviteId'])));
|
|
1001
1005
|
return [2 /*return*/, {
|
|
1002
1006
|
path: urlPath,
|
|
1003
|
-
method: '
|
|
1007
|
+
method: 'DELETE',
|
|
1004
1008
|
headers: headerParameters,
|
|
1005
1009
|
query: queryParameters,
|
|
1006
1010
|
}];
|
|
@@ -1009,102 +1013,90 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1009
1013
|
};
|
|
1010
1014
|
/**
|
|
1011
1015
|
*/
|
|
1012
|
-
UsersServerApi.prototype.
|
|
1016
|
+
UsersServerApi.prototype.revokeUserInviteRaw = function (requestParameters, initOverrides) {
|
|
1013
1017
|
return __awaiter(this, void 0, void 0, function () {
|
|
1014
1018
|
var requestOptions, response;
|
|
1015
1019
|
return __generator(this, function (_a) {
|
|
1016
1020
|
switch (_a.label) {
|
|
1017
|
-
case 0: return [4 /*yield*/, this.
|
|
1021
|
+
case 0: return [4 /*yield*/, this.revokeUserInviteRequestOpts(requestParameters)];
|
|
1018
1022
|
case 1:
|
|
1019
1023
|
requestOptions = _a.sent();
|
|
1020
1024
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1021
1025
|
case 2:
|
|
1022
1026
|
response = _a.sent();
|
|
1023
|
-
return [2 /*return*/, new runtime.
|
|
1027
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1024
1028
|
}
|
|
1025
1029
|
});
|
|
1026
1030
|
});
|
|
1027
1031
|
};
|
|
1028
1032
|
/**
|
|
1029
1033
|
*/
|
|
1030
|
-
UsersServerApi.prototype.
|
|
1034
|
+
UsersServerApi.prototype.revokeUserInvite = function (requestParameters, initOverrides) {
|
|
1031
1035
|
return __awaiter(this, void 0, void 0, function () {
|
|
1032
|
-
var response;
|
|
1033
1036
|
return __generator(this, function (_a) {
|
|
1034
1037
|
switch (_a.label) {
|
|
1035
|
-
case 0: return [4 /*yield*/, this.
|
|
1038
|
+
case 0: return [4 /*yield*/, this.revokeUserInviteRaw(requestParameters, initOverrides)];
|
|
1036
1039
|
case 1:
|
|
1037
|
-
|
|
1038
|
-
return [
|
|
1039
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
1040
|
+
_a.sent();
|
|
1041
|
+
return [2 /*return*/];
|
|
1040
1042
|
}
|
|
1041
1043
|
});
|
|
1042
1044
|
});
|
|
1043
1045
|
};
|
|
1044
1046
|
/**
|
|
1045
|
-
* Creates request options for
|
|
1047
|
+
* Creates request options for usersCreateContentUploadLink without sending the request
|
|
1046
1048
|
*/
|
|
1047
|
-
UsersServerApi.prototype.
|
|
1049
|
+
UsersServerApi.prototype.usersCreateContentUploadLinkRequestOpts = function (requestParameters) {
|
|
1048
1050
|
return __awaiter(this, void 0, void 0, function () {
|
|
1049
1051
|
var queryParameters, headerParameters, urlPath;
|
|
1050
1052
|
return __generator(this, function (_a) {
|
|
1051
1053
|
if (requestParameters['projectId'] == null) {
|
|
1052
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
1053
|
-
}
|
|
1054
|
-
queryParameters = {};
|
|
1055
|
-
if (requestParameters['metadataKey'] != null) {
|
|
1056
|
-
queryParameters['metadataKey'] = requestParameters['metadataKey'];
|
|
1054
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling usersCreateContentUploadLink().');
|
|
1057
1055
|
}
|
|
1058
|
-
if (requestParameters['
|
|
1059
|
-
|
|
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'];
|
|
1056
|
+
if (requestParameters['createContentUploadLinkRequest'] == null) {
|
|
1057
|
+
throw new runtime.RequiredError('createContentUploadLinkRequest', 'Required parameter "createContentUploadLinkRequest" was null or undefined when calling usersCreateContentUploadLink().');
|
|
1069
1058
|
}
|
|
1059
|
+
queryParameters = {};
|
|
1070
1060
|
headerParameters = {};
|
|
1071
|
-
|
|
1061
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1062
|
+
urlPath = "/api/v1/{projectId}/users/me/content/upload-links";
|
|
1072
1063
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1073
1064
|
return [2 /*return*/, {
|
|
1074
1065
|
path: urlPath,
|
|
1075
|
-
method: '
|
|
1066
|
+
method: 'POST',
|
|
1076
1067
|
headers: headerParameters,
|
|
1077
1068
|
query: queryParameters,
|
|
1069
|
+
body: (0, CreateContentUploadLinkRequest_1.CreateContentUploadLinkRequestToJSON)(requestParameters['createContentUploadLinkRequest']),
|
|
1078
1070
|
}];
|
|
1079
1071
|
});
|
|
1080
1072
|
});
|
|
1081
1073
|
};
|
|
1082
1074
|
/**
|
|
1083
1075
|
*/
|
|
1084
|
-
UsersServerApi.prototype.
|
|
1076
|
+
UsersServerApi.prototype.usersCreateContentUploadLinkRaw = function (requestParameters, initOverrides) {
|
|
1085
1077
|
return __awaiter(this, void 0, void 0, function () {
|
|
1086
1078
|
var requestOptions, response;
|
|
1087
1079
|
return __generator(this, function (_a) {
|
|
1088
1080
|
switch (_a.label) {
|
|
1089
|
-
case 0: return [4 /*yield*/, this.
|
|
1081
|
+
case 0: return [4 /*yield*/, this.usersCreateContentUploadLinkRequestOpts(requestParameters)];
|
|
1090
1082
|
case 1:
|
|
1091
1083
|
requestOptions = _a.sent();
|
|
1092
1084
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1093
1085
|
case 2:
|
|
1094
1086
|
response = _a.sent();
|
|
1095
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1087
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateContentUploadLinkResponse_1.CreateContentUploadLinkResponseFromJSON)(jsonValue); })];
|
|
1096
1088
|
}
|
|
1097
1089
|
});
|
|
1098
1090
|
});
|
|
1099
1091
|
};
|
|
1100
1092
|
/**
|
|
1101
1093
|
*/
|
|
1102
|
-
UsersServerApi.prototype.
|
|
1094
|
+
UsersServerApi.prototype.usersCreateContentUploadLink = function (requestParameters, initOverrides) {
|
|
1103
1095
|
return __awaiter(this, void 0, void 0, function () {
|
|
1104
1096
|
var response;
|
|
1105
1097
|
return __generator(this, function (_a) {
|
|
1106
1098
|
switch (_a.label) {
|
|
1107
|
-
case 0: return [4 /*yield*/, this.
|
|
1099
|
+
case 0: return [4 /*yield*/, this.usersCreateContentUploadLinkRaw(requestParameters, initOverrides)];
|
|
1108
1100
|
case 1:
|
|
1109
1101
|
response = _a.sent();
|
|
1110
1102
|
return [4 /*yield*/, response.value()];
|
|
@@ -1114,54 +1106,59 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1114
1106
|
});
|
|
1115
1107
|
};
|
|
1116
1108
|
/**
|
|
1117
|
-
* Creates request options for
|
|
1109
|
+
* Creates request options for usersCreatePayment without sending the request
|
|
1118
1110
|
*/
|
|
1119
|
-
UsersServerApi.prototype.
|
|
1111
|
+
UsersServerApi.prototype.usersCreatePaymentRequestOpts = function (requestParameters) {
|
|
1120
1112
|
return __awaiter(this, void 0, void 0, function () {
|
|
1121
1113
|
var queryParameters, headerParameters, urlPath;
|
|
1122
1114
|
return __generator(this, function (_a) {
|
|
1123
1115
|
if (requestParameters['projectId'] == null) {
|
|
1124
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
1116
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling usersCreatePayment().');
|
|
1117
|
+
}
|
|
1118
|
+
if (requestParameters['createPaymentRequest'] == null) {
|
|
1119
|
+
throw new runtime.RequiredError('createPaymentRequest', 'Required parameter "createPaymentRequest" was null or undefined when calling usersCreatePayment().');
|
|
1125
1120
|
}
|
|
1126
1121
|
queryParameters = {};
|
|
1127
1122
|
headerParameters = {};
|
|
1128
|
-
|
|
1123
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1124
|
+
urlPath = "/api/v1/{projectId}/users/me/payments";
|
|
1129
1125
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1130
1126
|
return [2 /*return*/, {
|
|
1131
1127
|
path: urlPath,
|
|
1132
|
-
method: '
|
|
1128
|
+
method: 'POST',
|
|
1133
1129
|
headers: headerParameters,
|
|
1134
1130
|
query: queryParameters,
|
|
1131
|
+
body: (0, CreatePaymentRequest_1.CreatePaymentRequestToJSON)(requestParameters['createPaymentRequest']),
|
|
1135
1132
|
}];
|
|
1136
1133
|
});
|
|
1137
1134
|
});
|
|
1138
1135
|
};
|
|
1139
1136
|
/**
|
|
1140
1137
|
*/
|
|
1141
|
-
UsersServerApi.prototype.
|
|
1138
|
+
UsersServerApi.prototype.usersCreatePaymentRaw = function (requestParameters, initOverrides) {
|
|
1142
1139
|
return __awaiter(this, void 0, void 0, function () {
|
|
1143
1140
|
var requestOptions, response;
|
|
1144
1141
|
return __generator(this, function (_a) {
|
|
1145
1142
|
switch (_a.label) {
|
|
1146
|
-
case 0: return [4 /*yield*/, this.
|
|
1143
|
+
case 0: return [4 /*yield*/, this.usersCreatePaymentRequestOpts(requestParameters)];
|
|
1147
1144
|
case 1:
|
|
1148
1145
|
requestOptions = _a.sent();
|
|
1149
1146
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1150
1147
|
case 2:
|
|
1151
1148
|
response = _a.sent();
|
|
1152
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1149
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreatePaymentResponse_1.CreatePaymentResponseFromJSON)(jsonValue); })];
|
|
1153
1150
|
}
|
|
1154
1151
|
});
|
|
1155
1152
|
});
|
|
1156
1153
|
};
|
|
1157
1154
|
/**
|
|
1158
1155
|
*/
|
|
1159
|
-
UsersServerApi.prototype.
|
|
1156
|
+
UsersServerApi.prototype.usersCreatePayment = function (requestParameters, initOverrides) {
|
|
1160
1157
|
return __awaiter(this, void 0, void 0, function () {
|
|
1161
1158
|
var response;
|
|
1162
1159
|
return __generator(this, function (_a) {
|
|
1163
1160
|
switch (_a.label) {
|
|
1164
|
-
case 0: return [4 /*yield*/, this.
|
|
1161
|
+
case 0: return [4 /*yield*/, this.usersCreatePaymentRaw(requestParameters, initOverrides)];
|
|
1165
1162
|
case 1:
|
|
1166
1163
|
response = _a.sent();
|
|
1167
1164
|
return [4 /*yield*/, response.value()];
|
|
@@ -1171,145 +1168,144 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1171
1168
|
});
|
|
1172
1169
|
};
|
|
1173
1170
|
/**
|
|
1174
|
-
* Creates request options for
|
|
1171
|
+
* Creates request options for usersCreatePaymentPreview without sending the request
|
|
1175
1172
|
*/
|
|
1176
|
-
UsersServerApi.prototype.
|
|
1173
|
+
UsersServerApi.prototype.usersCreatePaymentPreviewRequestOpts = function (requestParameters) {
|
|
1177
1174
|
return __awaiter(this, void 0, void 0, function () {
|
|
1178
1175
|
var queryParameters, headerParameters, urlPath;
|
|
1179
1176
|
return __generator(this, function (_a) {
|
|
1180
1177
|
if (requestParameters['projectId'] == null) {
|
|
1181
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
1178
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling usersCreatePaymentPreview().');
|
|
1179
|
+
}
|
|
1180
|
+
if (requestParameters['createPaymentPreviewRequest'] == null) {
|
|
1181
|
+
throw new runtime.RequiredError('createPaymentPreviewRequest', 'Required parameter "createPaymentPreviewRequest" was null or undefined when calling usersCreatePaymentPreview().');
|
|
1182
1182
|
}
|
|
1183
1183
|
queryParameters = {};
|
|
1184
1184
|
headerParameters = {};
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
}
|
|
1188
|
-
urlPath = "/api/v1/{projectId}/users/logout";
|
|
1185
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1186
|
+
urlPath = "/api/v1/{projectId}/users/me/payments/preview";
|
|
1189
1187
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1190
1188
|
return [2 /*return*/, {
|
|
1191
1189
|
path: urlPath,
|
|
1192
1190
|
method: 'POST',
|
|
1193
1191
|
headers: headerParameters,
|
|
1194
1192
|
query: queryParameters,
|
|
1193
|
+
body: (0, CreatePaymentPreviewRequest_1.CreatePaymentPreviewRequestToJSON)(requestParameters['createPaymentPreviewRequest']),
|
|
1195
1194
|
}];
|
|
1196
1195
|
});
|
|
1197
1196
|
});
|
|
1198
1197
|
};
|
|
1199
1198
|
/**
|
|
1200
1199
|
*/
|
|
1201
|
-
UsersServerApi.prototype.
|
|
1200
|
+
UsersServerApi.prototype.usersCreatePaymentPreviewRaw = function (requestParameters, initOverrides) {
|
|
1202
1201
|
return __awaiter(this, void 0, void 0, function () {
|
|
1203
1202
|
var requestOptions, response;
|
|
1204
1203
|
return __generator(this, function (_a) {
|
|
1205
1204
|
switch (_a.label) {
|
|
1206
|
-
case 0: return [4 /*yield*/, this.
|
|
1205
|
+
case 0: return [4 /*yield*/, this.usersCreatePaymentPreviewRequestOpts(requestParameters)];
|
|
1207
1206
|
case 1:
|
|
1208
1207
|
requestOptions = _a.sent();
|
|
1209
1208
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1210
1209
|
case 2:
|
|
1211
1210
|
response = _a.sent();
|
|
1212
|
-
return [2 /*return*/, new runtime.
|
|
1211
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreatePaymentPreviewResponse_1.CreatePaymentPreviewResponseFromJSON)(jsonValue); })];
|
|
1213
1212
|
}
|
|
1214
1213
|
});
|
|
1215
1214
|
});
|
|
1216
1215
|
};
|
|
1217
1216
|
/**
|
|
1218
1217
|
*/
|
|
1219
|
-
UsersServerApi.prototype.
|
|
1218
|
+
UsersServerApi.prototype.usersCreatePaymentPreview = function (requestParameters, initOverrides) {
|
|
1220
1219
|
return __awaiter(this, void 0, void 0, function () {
|
|
1220
|
+
var response;
|
|
1221
1221
|
return __generator(this, function (_a) {
|
|
1222
1222
|
switch (_a.label) {
|
|
1223
|
-
case 0: return [4 /*yield*/, this.
|
|
1223
|
+
case 0: return [4 /*yield*/, this.usersCreatePaymentPreviewRaw(requestParameters, initOverrides)];
|
|
1224
1224
|
case 1:
|
|
1225
|
-
_a.sent();
|
|
1226
|
-
return [
|
|
1225
|
+
response = _a.sent();
|
|
1226
|
+
return [4 /*yield*/, response.value()];
|
|
1227
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1227
1228
|
}
|
|
1228
1229
|
});
|
|
1229
1230
|
});
|
|
1230
1231
|
};
|
|
1231
1232
|
/**
|
|
1232
|
-
* Creates request options for
|
|
1233
|
+
* Creates request options for usersDeleteContent without sending the request
|
|
1233
1234
|
*/
|
|
1234
|
-
UsersServerApi.prototype.
|
|
1235
|
+
UsersServerApi.prototype.usersDeleteContentRequestOpts = function (requestParameters) {
|
|
1235
1236
|
return __awaiter(this, void 0, void 0, function () {
|
|
1236
1237
|
var queryParameters, headerParameters, urlPath;
|
|
1237
1238
|
return __generator(this, function (_a) {
|
|
1238
1239
|
if (requestParameters['projectId'] == null) {
|
|
1239
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
1240
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling usersDeleteContent().');
|
|
1240
1241
|
}
|
|
1241
|
-
if (requestParameters['
|
|
1242
|
-
throw new runtime.RequiredError('
|
|
1242
|
+
if (requestParameters['contentId'] == null) {
|
|
1243
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling usersDeleteContent().');
|
|
1243
1244
|
}
|
|
1244
1245
|
queryParameters = {};
|
|
1245
1246
|
headerParameters = {};
|
|
1246
|
-
|
|
1247
|
-
urlPath = "/api/v1/{projectId}/users/register";
|
|
1247
|
+
urlPath = "/api/v1/{projectId}/users/me/content/{contentId}";
|
|
1248
1248
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1249
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1249
1250
|
return [2 /*return*/, {
|
|
1250
1251
|
path: urlPath,
|
|
1251
|
-
method: '
|
|
1252
|
+
method: 'DELETE',
|
|
1252
1253
|
headers: headerParameters,
|
|
1253
1254
|
query: queryParameters,
|
|
1254
|
-
body: (0, RegisterUserRequest_1.RegisterUserRequestToJSON)(requestParameters['registerUserRequest']),
|
|
1255
1255
|
}];
|
|
1256
1256
|
});
|
|
1257
1257
|
});
|
|
1258
1258
|
};
|
|
1259
1259
|
/**
|
|
1260
1260
|
*/
|
|
1261
|
-
UsersServerApi.prototype.
|
|
1261
|
+
UsersServerApi.prototype.usersDeleteContentRaw = function (requestParameters, initOverrides) {
|
|
1262
1262
|
return __awaiter(this, void 0, void 0, function () {
|
|
1263
1263
|
var requestOptions, response;
|
|
1264
1264
|
return __generator(this, function (_a) {
|
|
1265
1265
|
switch (_a.label) {
|
|
1266
|
-
case 0: return [4 /*yield*/, this.
|
|
1266
|
+
case 0: return [4 /*yield*/, this.usersDeleteContentRequestOpts(requestParameters)];
|
|
1267
1267
|
case 1:
|
|
1268
1268
|
requestOptions = _a.sent();
|
|
1269
1269
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1270
1270
|
case 2:
|
|
1271
1271
|
response = _a.sent();
|
|
1272
|
-
return [2 /*return*/, new runtime.
|
|
1272
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1273
1273
|
}
|
|
1274
1274
|
});
|
|
1275
1275
|
});
|
|
1276
1276
|
};
|
|
1277
1277
|
/**
|
|
1278
1278
|
*/
|
|
1279
|
-
UsersServerApi.prototype.
|
|
1279
|
+
UsersServerApi.prototype.usersDeleteContent = function (requestParameters, initOverrides) {
|
|
1280
1280
|
return __awaiter(this, void 0, void 0, function () {
|
|
1281
|
-
var response;
|
|
1282
1281
|
return __generator(this, function (_a) {
|
|
1283
1282
|
switch (_a.label) {
|
|
1284
|
-
case 0: return [4 /*yield*/, this.
|
|
1283
|
+
case 0: return [4 /*yield*/, this.usersDeleteContentRaw(requestParameters, initOverrides)];
|
|
1285
1284
|
case 1:
|
|
1286
|
-
|
|
1287
|
-
return [
|
|
1288
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
1285
|
+
_a.sent();
|
|
1286
|
+
return [2 /*return*/];
|
|
1289
1287
|
}
|
|
1290
1288
|
});
|
|
1291
1289
|
});
|
|
1292
1290
|
};
|
|
1293
1291
|
/**
|
|
1294
|
-
* Creates request options for
|
|
1292
|
+
* Creates request options for usersFinalizeContent without sending the request
|
|
1295
1293
|
*/
|
|
1296
|
-
UsersServerApi.prototype.
|
|
1294
|
+
UsersServerApi.prototype.usersFinalizeContentRequestOpts = function (requestParameters) {
|
|
1297
1295
|
return __awaiter(this, void 0, void 0, function () {
|
|
1298
1296
|
var queryParameters, headerParameters, urlPath;
|
|
1299
1297
|
return __generator(this, function (_a) {
|
|
1300
1298
|
if (requestParameters['projectId'] == null) {
|
|
1301
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
1299
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling usersFinalizeContent().');
|
|
1302
1300
|
}
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
queryParameters['renewalDurationSeconds'] = requestParameters['renewalDurationSeconds'];
|
|
1301
|
+
if (requestParameters['pendingContentId'] == null) {
|
|
1302
|
+
throw new runtime.RequiredError('pendingContentId', 'Required parameter "pendingContentId" was null or undefined when calling usersFinalizeContent().');
|
|
1306
1303
|
}
|
|
1304
|
+
queryParameters = {};
|
|
1307
1305
|
headerParameters = {};
|
|
1308
|
-
|
|
1309
|
-
headerParameters['Authorization'] = String(requestParameters['authorization']);
|
|
1310
|
-
}
|
|
1311
|
-
urlPath = "/api/v1/{projectId}/users/session-token/renew";
|
|
1306
|
+
urlPath = "/api/v1/{projectId}/users/me/content/{pendingContentId}";
|
|
1312
1307
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1308
|
+
urlPath = urlPath.replace('{pendingContentId}', encodeURIComponent(String(requestParameters['pendingContentId'])));
|
|
1313
1309
|
return [2 /*return*/, {
|
|
1314
1310
|
path: urlPath,
|
|
1315
1311
|
method: 'POST',
|
|
@@ -1321,30 +1317,30 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1321
1317
|
};
|
|
1322
1318
|
/**
|
|
1323
1319
|
*/
|
|
1324
|
-
UsersServerApi.prototype.
|
|
1320
|
+
UsersServerApi.prototype.usersFinalizeContentRaw = function (requestParameters, initOverrides) {
|
|
1325
1321
|
return __awaiter(this, void 0, void 0, function () {
|
|
1326
1322
|
var requestOptions, response;
|
|
1327
1323
|
return __generator(this, function (_a) {
|
|
1328
1324
|
switch (_a.label) {
|
|
1329
|
-
case 0: return [4 /*yield*/, this.
|
|
1325
|
+
case 0: return [4 /*yield*/, this.usersFinalizeContentRequestOpts(requestParameters)];
|
|
1330
1326
|
case 1:
|
|
1331
1327
|
requestOptions = _a.sent();
|
|
1332
1328
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1333
1329
|
case 2:
|
|
1334
1330
|
response = _a.sent();
|
|
1335
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1331
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContentObject_1.ContentObjectFromJSON)(jsonValue); })];
|
|
1336
1332
|
}
|
|
1337
1333
|
});
|
|
1338
1334
|
});
|
|
1339
1335
|
};
|
|
1340
1336
|
/**
|
|
1341
1337
|
*/
|
|
1342
|
-
UsersServerApi.prototype.
|
|
1338
|
+
UsersServerApi.prototype.usersFinalizeContent = function (requestParameters, initOverrides) {
|
|
1343
1339
|
return __awaiter(this, void 0, void 0, function () {
|
|
1344
1340
|
var response;
|
|
1345
1341
|
return __generator(this, function (_a) {
|
|
1346
1342
|
switch (_a.label) {
|
|
1347
|
-
case 0: return [4 /*yield*/, this.
|
|
1343
|
+
case 0: return [4 /*yield*/, this.usersFinalizeContentRaw(requestParameters, initOverrides)];
|
|
1348
1344
|
case 1:
|
|
1349
1345
|
response = _a.sent();
|
|
1350
1346
|
return [4 /*yield*/, response.value()];
|
|
@@ -1354,26 +1350,26 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1354
1350
|
});
|
|
1355
1351
|
};
|
|
1356
1352
|
/**
|
|
1357
|
-
* Creates request options for
|
|
1353
|
+
* Creates request options for usersGetContent without sending the request
|
|
1358
1354
|
*/
|
|
1359
|
-
UsersServerApi.prototype.
|
|
1355
|
+
UsersServerApi.prototype.usersGetContentRequestOpts = function (requestParameters) {
|
|
1360
1356
|
return __awaiter(this, void 0, void 0, function () {
|
|
1361
1357
|
var queryParameters, headerParameters, urlPath;
|
|
1362
1358
|
return __generator(this, function (_a) {
|
|
1363
1359
|
if (requestParameters['projectId'] == null) {
|
|
1364
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
1360
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling usersGetContent().');
|
|
1365
1361
|
}
|
|
1366
|
-
if (requestParameters['
|
|
1367
|
-
throw new runtime.RequiredError('
|
|
1362
|
+
if (requestParameters['contentId'] == null) {
|
|
1363
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling usersGetContent().');
|
|
1368
1364
|
}
|
|
1369
1365
|
queryParameters = {};
|
|
1370
1366
|
headerParameters = {};
|
|
1371
|
-
urlPath = "/api/v1/{projectId}/users/me/
|
|
1367
|
+
urlPath = "/api/v1/{projectId}/users/me/content/{contentId}";
|
|
1372
1368
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1373
|
-
urlPath = urlPath.replace('{
|
|
1369
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1374
1370
|
return [2 /*return*/, {
|
|
1375
1371
|
path: urlPath,
|
|
1376
|
-
method: '
|
|
1372
|
+
method: 'GET',
|
|
1377
1373
|
headers: headerParameters,
|
|
1378
1374
|
query: queryParameters,
|
|
1379
1375
|
}];
|
|
@@ -1382,30 +1378,30 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1382
1378
|
};
|
|
1383
1379
|
/**
|
|
1384
1380
|
*/
|
|
1385
|
-
UsersServerApi.prototype.
|
|
1381
|
+
UsersServerApi.prototype.usersGetContentRaw = function (requestParameters, initOverrides) {
|
|
1386
1382
|
return __awaiter(this, void 0, void 0, function () {
|
|
1387
1383
|
var requestOptions, response;
|
|
1388
1384
|
return __generator(this, function (_a) {
|
|
1389
1385
|
switch (_a.label) {
|
|
1390
|
-
case 0: return [4 /*yield*/, this.
|
|
1386
|
+
case 0: return [4 /*yield*/, this.usersGetContentRequestOpts(requestParameters)];
|
|
1391
1387
|
case 1:
|
|
1392
1388
|
requestOptions = _a.sent();
|
|
1393
1389
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1394
1390
|
case 2:
|
|
1395
1391
|
response = _a.sent();
|
|
1396
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1392
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContentObject_1.ContentObjectFromJSON)(jsonValue); })];
|
|
1397
1393
|
}
|
|
1398
1394
|
});
|
|
1399
1395
|
});
|
|
1400
1396
|
};
|
|
1401
1397
|
/**
|
|
1402
1398
|
*/
|
|
1403
|
-
UsersServerApi.prototype.
|
|
1399
|
+
UsersServerApi.prototype.usersGetContent = function (requestParameters, initOverrides) {
|
|
1404
1400
|
return __awaiter(this, void 0, void 0, function () {
|
|
1405
1401
|
var response;
|
|
1406
1402
|
return __generator(this, function (_a) {
|
|
1407
1403
|
switch (_a.label) {
|
|
1408
|
-
case 0: return [4 /*yield*/, this.
|
|
1404
|
+
case 0: return [4 /*yield*/, this.usersGetContentRaw(requestParameters, initOverrides)];
|
|
1409
1405
|
case 1:
|
|
1410
1406
|
response = _a.sent();
|
|
1411
1407
|
return [4 /*yield*/, response.value()];
|
|
@@ -1415,26 +1411,26 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1415
1411
|
});
|
|
1416
1412
|
};
|
|
1417
1413
|
/**
|
|
1418
|
-
* Creates request options for
|
|
1414
|
+
* Creates request options for usersGetContentDownloadLink without sending the request
|
|
1419
1415
|
*/
|
|
1420
|
-
UsersServerApi.prototype.
|
|
1416
|
+
UsersServerApi.prototype.usersGetContentDownloadLinkRequestOpts = function (requestParameters) {
|
|
1421
1417
|
return __awaiter(this, void 0, void 0, function () {
|
|
1422
1418
|
var queryParameters, headerParameters, urlPath;
|
|
1423
1419
|
return __generator(this, function (_a) {
|
|
1424
1420
|
if (requestParameters['projectId'] == null) {
|
|
1425
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
1421
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling usersGetContentDownloadLink().');
|
|
1426
1422
|
}
|
|
1427
|
-
if (requestParameters['
|
|
1428
|
-
throw new runtime.RequiredError('
|
|
1423
|
+
if (requestParameters['contentId'] == null) {
|
|
1424
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling usersGetContentDownloadLink().');
|
|
1429
1425
|
}
|
|
1430
1426
|
queryParameters = {};
|
|
1431
1427
|
headerParameters = {};
|
|
1432
|
-
urlPath = "/api/v1/{projectId}/users/
|
|
1428
|
+
urlPath = "/api/v1/{projectId}/users/me/content/{contentId}/download-link";
|
|
1433
1429
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1434
|
-
urlPath = urlPath.replace('{
|
|
1430
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1435
1431
|
return [2 /*return*/, {
|
|
1436
1432
|
path: urlPath,
|
|
1437
|
-
method: '
|
|
1433
|
+
method: 'GET',
|
|
1438
1434
|
headers: headerParameters,
|
|
1439
1435
|
query: queryParameters,
|
|
1440
1436
|
}];
|
|
@@ -1443,30 +1439,30 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1443
1439
|
};
|
|
1444
1440
|
/**
|
|
1445
1441
|
*/
|
|
1446
|
-
UsersServerApi.prototype.
|
|
1442
|
+
UsersServerApi.prototype.usersGetContentDownloadLinkRaw = function (requestParameters, initOverrides) {
|
|
1447
1443
|
return __awaiter(this, void 0, void 0, function () {
|
|
1448
1444
|
var requestOptions, response;
|
|
1449
1445
|
return __generator(this, function (_a) {
|
|
1450
1446
|
switch (_a.label) {
|
|
1451
|
-
case 0: return [4 /*yield*/, this.
|
|
1447
|
+
case 0: return [4 /*yield*/, this.usersGetContentDownloadLinkRequestOpts(requestParameters)];
|
|
1452
1448
|
case 1:
|
|
1453
1449
|
requestOptions = _a.sent();
|
|
1454
1450
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1455
1451
|
case 2:
|
|
1456
1452
|
response = _a.sent();
|
|
1457
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1453
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetContentDownloadLinkResponse_1.GetContentDownloadLinkResponseFromJSON)(jsonValue); })];
|
|
1458
1454
|
}
|
|
1459
1455
|
});
|
|
1460
1456
|
});
|
|
1461
1457
|
};
|
|
1462
1458
|
/**
|
|
1463
1459
|
*/
|
|
1464
|
-
UsersServerApi.prototype.
|
|
1460
|
+
UsersServerApi.prototype.usersGetContentDownloadLink = function (requestParameters, initOverrides) {
|
|
1465
1461
|
return __awaiter(this, void 0, void 0, function () {
|
|
1466
1462
|
var response;
|
|
1467
1463
|
return __generator(this, function (_a) {
|
|
1468
1464
|
switch (_a.label) {
|
|
1469
|
-
case 0: return [4 /*yield*/, this.
|
|
1465
|
+
case 0: return [4 /*yield*/, this.usersGetContentDownloadLinkRaw(requestParameters, initOverrides)];
|
|
1470
1466
|
case 1:
|
|
1471
1467
|
response = _a.sent();
|
|
1472
1468
|
return [4 /*yield*/, response.value()];
|
|
@@ -1476,26 +1472,28 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1476
1472
|
});
|
|
1477
1473
|
};
|
|
1478
1474
|
/**
|
|
1479
|
-
* Creates request options for
|
|
1475
|
+
* Creates request options for usersListContent without sending the request
|
|
1480
1476
|
*/
|
|
1481
|
-
UsersServerApi.prototype.
|
|
1477
|
+
UsersServerApi.prototype.usersListContentRequestOpts = function (requestParameters) {
|
|
1482
1478
|
return __awaiter(this, void 0, void 0, function () {
|
|
1483
1479
|
var queryParameters, headerParameters, urlPath;
|
|
1484
1480
|
return __generator(this, function (_a) {
|
|
1485
1481
|
if (requestParameters['projectId'] == null) {
|
|
1486
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
1487
|
-
}
|
|
1488
|
-
if (requestParameters['inviteId'] == null) {
|
|
1489
|
-
throw new runtime.RequiredError('inviteId', 'Required parameter "inviteId" was null or undefined when calling revokeUserInvite().');
|
|
1482
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling usersListContent().');
|
|
1490
1483
|
}
|
|
1491
1484
|
queryParameters = {};
|
|
1485
|
+
if (requestParameters['page'] != null) {
|
|
1486
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1487
|
+
}
|
|
1488
|
+
if (requestParameters['pageSize'] != null) {
|
|
1489
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
1490
|
+
}
|
|
1492
1491
|
headerParameters = {};
|
|
1493
|
-
urlPath = "/api/v1/{projectId}/users/me/
|
|
1492
|
+
urlPath = "/api/v1/{projectId}/users/me/content";
|
|
1494
1493
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1495
|
-
urlPath = urlPath.replace('{inviteId}', encodeURIComponent(String(requestParameters['inviteId'])));
|
|
1496
1494
|
return [2 /*return*/, {
|
|
1497
1495
|
path: urlPath,
|
|
1498
|
-
method: '
|
|
1496
|
+
method: 'GET',
|
|
1499
1497
|
headers: headerParameters,
|
|
1500
1498
|
query: queryParameters,
|
|
1501
1499
|
}];
|
|
@@ -1504,51 +1502,53 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1504
1502
|
};
|
|
1505
1503
|
/**
|
|
1506
1504
|
*/
|
|
1507
|
-
UsersServerApi.prototype.
|
|
1505
|
+
UsersServerApi.prototype.usersListContentRaw = function (requestParameters, initOverrides) {
|
|
1508
1506
|
return __awaiter(this, void 0, void 0, function () {
|
|
1509
1507
|
var requestOptions, response;
|
|
1510
1508
|
return __generator(this, function (_a) {
|
|
1511
1509
|
switch (_a.label) {
|
|
1512
|
-
case 0: return [4 /*yield*/, this.
|
|
1510
|
+
case 0: return [4 /*yield*/, this.usersListContentRequestOpts(requestParameters)];
|
|
1513
1511
|
case 1:
|
|
1514
1512
|
requestOptions = _a.sent();
|
|
1515
1513
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1516
1514
|
case 2:
|
|
1517
1515
|
response = _a.sent();
|
|
1518
|
-
return [2 /*return*/, new runtime.
|
|
1516
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ListContentResponse_1.ListContentResponseFromJSON)(jsonValue); })];
|
|
1519
1517
|
}
|
|
1520
1518
|
});
|
|
1521
1519
|
});
|
|
1522
1520
|
};
|
|
1523
1521
|
/**
|
|
1524
1522
|
*/
|
|
1525
|
-
UsersServerApi.prototype.
|
|
1523
|
+
UsersServerApi.prototype.usersListContent = function (requestParameters, initOverrides) {
|
|
1526
1524
|
return __awaiter(this, void 0, void 0, function () {
|
|
1525
|
+
var response;
|
|
1527
1526
|
return __generator(this, function (_a) {
|
|
1528
1527
|
switch (_a.label) {
|
|
1529
|
-
case 0: return [4 /*yield*/, this.
|
|
1528
|
+
case 0: return [4 /*yield*/, this.usersListContentRaw(requestParameters, initOverrides)];
|
|
1530
1529
|
case 1:
|
|
1531
|
-
_a.sent();
|
|
1532
|
-
return [
|
|
1530
|
+
response = _a.sent();
|
|
1531
|
+
return [4 /*yield*/, response.value()];
|
|
1532
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1533
1533
|
}
|
|
1534
1534
|
});
|
|
1535
1535
|
});
|
|
1536
1536
|
};
|
|
1537
1537
|
/**
|
|
1538
|
-
* Creates request options for
|
|
1538
|
+
* Creates request options for usersUpdateContentShares without sending the request
|
|
1539
1539
|
*/
|
|
1540
|
-
UsersServerApi.prototype.
|
|
1540
|
+
UsersServerApi.prototype.usersUpdateContentSharesRequestOpts = function (requestParameters) {
|
|
1541
1541
|
return __awaiter(this, void 0, void 0, function () {
|
|
1542
1542
|
var queryParameters, headerParameters, urlPath;
|
|
1543
1543
|
return __generator(this, function (_a) {
|
|
1544
1544
|
if (requestParameters['projectId'] == null) {
|
|
1545
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
1545
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling usersUpdateContentShares().');
|
|
1546
1546
|
}
|
|
1547
1547
|
if (requestParameters['contentId'] == null) {
|
|
1548
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling
|
|
1548
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling usersUpdateContentShares().');
|
|
1549
1549
|
}
|
|
1550
1550
|
if (requestParameters['updateContentSharesRequest'] == null) {
|
|
1551
|
-
throw new runtime.RequiredError('updateContentSharesRequest', 'Required parameter "updateContentSharesRequest" was null or undefined when calling
|
|
1551
|
+
throw new runtime.RequiredError('updateContentSharesRequest', 'Required parameter "updateContentSharesRequest" was null or undefined when calling usersUpdateContentShares().');
|
|
1552
1552
|
}
|
|
1553
1553
|
queryParameters = {};
|
|
1554
1554
|
headerParameters = {};
|
|
@@ -1568,12 +1568,12 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1568
1568
|
};
|
|
1569
1569
|
/**
|
|
1570
1570
|
*/
|
|
1571
|
-
UsersServerApi.prototype.
|
|
1571
|
+
UsersServerApi.prototype.usersUpdateContentSharesRaw = function (requestParameters, initOverrides) {
|
|
1572
1572
|
return __awaiter(this, void 0, void 0, function () {
|
|
1573
1573
|
var requestOptions, response;
|
|
1574
1574
|
return __generator(this, function (_a) {
|
|
1575
1575
|
switch (_a.label) {
|
|
1576
|
-
case 0: return [4 /*yield*/, this.
|
|
1576
|
+
case 0: return [4 /*yield*/, this.usersUpdateContentSharesRequestOpts(requestParameters)];
|
|
1577
1577
|
case 1:
|
|
1578
1578
|
requestOptions = _a.sent();
|
|
1579
1579
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
@@ -1586,12 +1586,12 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1586
1586
|
};
|
|
1587
1587
|
/**
|
|
1588
1588
|
*/
|
|
1589
|
-
UsersServerApi.prototype.
|
|
1589
|
+
UsersServerApi.prototype.usersUpdateContentShares = function (requestParameters, initOverrides) {
|
|
1590
1590
|
return __awaiter(this, void 0, void 0, function () {
|
|
1591
1591
|
var response;
|
|
1592
1592
|
return __generator(this, function (_a) {
|
|
1593
1593
|
switch (_a.label) {
|
|
1594
|
-
case 0: return [4 /*yield*/, this.
|
|
1594
|
+
case 0: return [4 /*yield*/, this.usersUpdateContentSharesRaw(requestParameters, initOverrides)];
|
|
1595
1595
|
case 1:
|
|
1596
1596
|
response = _a.sent();
|
|
1597
1597
|
return [4 /*yield*/, response.value()];
|