@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.
|
@@ -459,204 +459,6 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
459
459
|
});
|
|
460
460
|
});
|
|
461
461
|
};
|
|
462
|
-
/**
|
|
463
|
-
* Creates request options for createContentUploadLink1 without sending the request
|
|
464
|
-
*/
|
|
465
|
-
ProjectsServerApi.prototype.createContentUploadLink1RequestOpts = function (requestParameters) {
|
|
466
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
467
|
-
var queryParameters, headerParameters, urlPath;
|
|
468
|
-
return __generator(this, function (_a) {
|
|
469
|
-
if (requestParameters['projectId'] == null) {
|
|
470
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createContentUploadLink1().');
|
|
471
|
-
}
|
|
472
|
-
if (requestParameters['userId'] == null) {
|
|
473
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling createContentUploadLink1().');
|
|
474
|
-
}
|
|
475
|
-
if (requestParameters['createContentUploadLinkRequest'] == null) {
|
|
476
|
-
throw new runtime.RequiredError('createContentUploadLinkRequest', 'Required parameter "createContentUploadLinkRequest" was null or undefined when calling createContentUploadLink1().');
|
|
477
|
-
}
|
|
478
|
-
queryParameters = {};
|
|
479
|
-
headerParameters = {};
|
|
480
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
481
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/upload-links";
|
|
482
|
-
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
483
|
-
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
484
|
-
return [2 /*return*/, {
|
|
485
|
-
path: urlPath,
|
|
486
|
-
method: 'POST',
|
|
487
|
-
headers: headerParameters,
|
|
488
|
-
query: queryParameters,
|
|
489
|
-
body: (0, CreateContentUploadLinkRequest_1.CreateContentUploadLinkRequestToJSON)(requestParameters['createContentUploadLinkRequest']),
|
|
490
|
-
}];
|
|
491
|
-
});
|
|
492
|
-
});
|
|
493
|
-
};
|
|
494
|
-
/**
|
|
495
|
-
*/
|
|
496
|
-
ProjectsServerApi.prototype.createContentUploadLink1Raw = function (requestParameters, initOverrides) {
|
|
497
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
498
|
-
var requestOptions, response;
|
|
499
|
-
return __generator(this, function (_a) {
|
|
500
|
-
switch (_a.label) {
|
|
501
|
-
case 0: return [4 /*yield*/, this.createContentUploadLink1RequestOpts(requestParameters)];
|
|
502
|
-
case 1:
|
|
503
|
-
requestOptions = _a.sent();
|
|
504
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
505
|
-
case 2:
|
|
506
|
-
response = _a.sent();
|
|
507
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateContentUploadLinkResponse_1.CreateContentUploadLinkResponseFromJSON)(jsonValue); })];
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
});
|
|
511
|
-
};
|
|
512
|
-
/**
|
|
513
|
-
*/
|
|
514
|
-
ProjectsServerApi.prototype.createContentUploadLink1 = function (requestParameters, initOverrides) {
|
|
515
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
516
|
-
var response;
|
|
517
|
-
return __generator(this, function (_a) {
|
|
518
|
-
switch (_a.label) {
|
|
519
|
-
case 0: return [4 /*yield*/, this.createContentUploadLink1Raw(requestParameters, initOverrides)];
|
|
520
|
-
case 1:
|
|
521
|
-
response = _a.sent();
|
|
522
|
-
return [4 /*yield*/, response.value()];
|
|
523
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
524
|
-
}
|
|
525
|
-
});
|
|
526
|
-
});
|
|
527
|
-
};
|
|
528
|
-
/**
|
|
529
|
-
* Creates request options for createPayment1 without sending the request
|
|
530
|
-
*/
|
|
531
|
-
ProjectsServerApi.prototype.createPayment1RequestOpts = function (requestParameters) {
|
|
532
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
533
|
-
var queryParameters, headerParameters, urlPath;
|
|
534
|
-
return __generator(this, function (_a) {
|
|
535
|
-
if (requestParameters['projectId'] == null) {
|
|
536
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createPayment1().');
|
|
537
|
-
}
|
|
538
|
-
if (requestParameters['userId'] == null) {
|
|
539
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling createPayment1().');
|
|
540
|
-
}
|
|
541
|
-
if (requestParameters['createPaymentRequest'] == null) {
|
|
542
|
-
throw new runtime.RequiredError('createPaymentRequest', 'Required parameter "createPaymentRequest" was null or undefined when calling createPayment1().');
|
|
543
|
-
}
|
|
544
|
-
queryParameters = {};
|
|
545
|
-
headerParameters = {};
|
|
546
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
547
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/payments";
|
|
548
|
-
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
549
|
-
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
550
|
-
return [2 /*return*/, {
|
|
551
|
-
path: urlPath,
|
|
552
|
-
method: 'POST',
|
|
553
|
-
headers: headerParameters,
|
|
554
|
-
query: queryParameters,
|
|
555
|
-
body: (0, CreatePaymentRequest_1.CreatePaymentRequestToJSON)(requestParameters['createPaymentRequest']),
|
|
556
|
-
}];
|
|
557
|
-
});
|
|
558
|
-
});
|
|
559
|
-
};
|
|
560
|
-
/**
|
|
561
|
-
*/
|
|
562
|
-
ProjectsServerApi.prototype.createPayment1Raw = function (requestParameters, initOverrides) {
|
|
563
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
564
|
-
var requestOptions, response;
|
|
565
|
-
return __generator(this, function (_a) {
|
|
566
|
-
switch (_a.label) {
|
|
567
|
-
case 0: return [4 /*yield*/, this.createPayment1RequestOpts(requestParameters)];
|
|
568
|
-
case 1:
|
|
569
|
-
requestOptions = _a.sent();
|
|
570
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
571
|
-
case 2:
|
|
572
|
-
response = _a.sent();
|
|
573
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreatePaymentResponse_1.CreatePaymentResponseFromJSON)(jsonValue); })];
|
|
574
|
-
}
|
|
575
|
-
});
|
|
576
|
-
});
|
|
577
|
-
};
|
|
578
|
-
/**
|
|
579
|
-
*/
|
|
580
|
-
ProjectsServerApi.prototype.createPayment1 = function (requestParameters, initOverrides) {
|
|
581
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
582
|
-
var response;
|
|
583
|
-
return __generator(this, function (_a) {
|
|
584
|
-
switch (_a.label) {
|
|
585
|
-
case 0: return [4 /*yield*/, this.createPayment1Raw(requestParameters, initOverrides)];
|
|
586
|
-
case 1:
|
|
587
|
-
response = _a.sent();
|
|
588
|
-
return [4 /*yield*/, response.value()];
|
|
589
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
590
|
-
}
|
|
591
|
-
});
|
|
592
|
-
});
|
|
593
|
-
};
|
|
594
|
-
/**
|
|
595
|
-
* Creates request options for createPaymentPreview1 without sending the request
|
|
596
|
-
*/
|
|
597
|
-
ProjectsServerApi.prototype.createPaymentPreview1RequestOpts = function (requestParameters) {
|
|
598
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
599
|
-
var queryParameters, headerParameters, urlPath;
|
|
600
|
-
return __generator(this, function (_a) {
|
|
601
|
-
if (requestParameters['projectId'] == null) {
|
|
602
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createPaymentPreview1().');
|
|
603
|
-
}
|
|
604
|
-
if (requestParameters['userId'] == null) {
|
|
605
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling createPaymentPreview1().');
|
|
606
|
-
}
|
|
607
|
-
if (requestParameters['createPaymentPreviewRequest'] == null) {
|
|
608
|
-
throw new runtime.RequiredError('createPaymentPreviewRequest', 'Required parameter "createPaymentPreviewRequest" was null or undefined when calling createPaymentPreview1().');
|
|
609
|
-
}
|
|
610
|
-
queryParameters = {};
|
|
611
|
-
headerParameters = {};
|
|
612
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
613
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/payments/preview";
|
|
614
|
-
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
615
|
-
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
616
|
-
return [2 /*return*/, {
|
|
617
|
-
path: urlPath,
|
|
618
|
-
method: 'POST',
|
|
619
|
-
headers: headerParameters,
|
|
620
|
-
query: queryParameters,
|
|
621
|
-
body: (0, CreatePaymentPreviewRequest_1.CreatePaymentPreviewRequestToJSON)(requestParameters['createPaymentPreviewRequest']),
|
|
622
|
-
}];
|
|
623
|
-
});
|
|
624
|
-
});
|
|
625
|
-
};
|
|
626
|
-
/**
|
|
627
|
-
*/
|
|
628
|
-
ProjectsServerApi.prototype.createPaymentPreview1Raw = function (requestParameters, initOverrides) {
|
|
629
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
630
|
-
var requestOptions, response;
|
|
631
|
-
return __generator(this, function (_a) {
|
|
632
|
-
switch (_a.label) {
|
|
633
|
-
case 0: return [4 /*yield*/, this.createPaymentPreview1RequestOpts(requestParameters)];
|
|
634
|
-
case 1:
|
|
635
|
-
requestOptions = _a.sent();
|
|
636
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
637
|
-
case 2:
|
|
638
|
-
response = _a.sent();
|
|
639
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreatePaymentPreviewResponse_1.CreatePaymentPreviewResponseFromJSON)(jsonValue); })];
|
|
640
|
-
}
|
|
641
|
-
});
|
|
642
|
-
});
|
|
643
|
-
};
|
|
644
|
-
/**
|
|
645
|
-
*/
|
|
646
|
-
ProjectsServerApi.prototype.createPaymentPreview1 = function (requestParameters, initOverrides) {
|
|
647
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
648
|
-
var response;
|
|
649
|
-
return __generator(this, function (_a) {
|
|
650
|
-
switch (_a.label) {
|
|
651
|
-
case 0: return [4 /*yield*/, this.createPaymentPreview1Raw(requestParameters, initOverrides)];
|
|
652
|
-
case 1:
|
|
653
|
-
response = _a.sent();
|
|
654
|
-
return [4 /*yield*/, response.value()];
|
|
655
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
656
|
-
}
|
|
657
|
-
});
|
|
658
|
-
});
|
|
659
|
-
};
|
|
660
462
|
/**
|
|
661
463
|
* Creates request options for createPaymentTrigger without sending the request
|
|
662
464
|
*/
|
|
@@ -1161,69 +963,6 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1161
963
|
});
|
|
1162
964
|
});
|
|
1163
965
|
};
|
|
1164
|
-
/**
|
|
1165
|
-
* Creates request options for deleteContent1 without sending the request
|
|
1166
|
-
*/
|
|
1167
|
-
ProjectsServerApi.prototype.deleteContent1RequestOpts = function (requestParameters) {
|
|
1168
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1169
|
-
var queryParameters, headerParameters, urlPath;
|
|
1170
|
-
return __generator(this, function (_a) {
|
|
1171
|
-
if (requestParameters['projectId'] == null) {
|
|
1172
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteContent1().');
|
|
1173
|
-
}
|
|
1174
|
-
if (requestParameters['userId'] == null) {
|
|
1175
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteContent1().');
|
|
1176
|
-
}
|
|
1177
|
-
if (requestParameters['contentId'] == null) {
|
|
1178
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling deleteContent1().');
|
|
1179
|
-
}
|
|
1180
|
-
queryParameters = {};
|
|
1181
|
-
headerParameters = {};
|
|
1182
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}";
|
|
1183
|
-
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1184
|
-
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
1185
|
-
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1186
|
-
return [2 /*return*/, {
|
|
1187
|
-
path: urlPath,
|
|
1188
|
-
method: 'DELETE',
|
|
1189
|
-
headers: headerParameters,
|
|
1190
|
-
query: queryParameters,
|
|
1191
|
-
}];
|
|
1192
|
-
});
|
|
1193
|
-
});
|
|
1194
|
-
};
|
|
1195
|
-
/**
|
|
1196
|
-
*/
|
|
1197
|
-
ProjectsServerApi.prototype.deleteContent1Raw = function (requestParameters, initOverrides) {
|
|
1198
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1199
|
-
var requestOptions, response;
|
|
1200
|
-
return __generator(this, function (_a) {
|
|
1201
|
-
switch (_a.label) {
|
|
1202
|
-
case 0: return [4 /*yield*/, this.deleteContent1RequestOpts(requestParameters)];
|
|
1203
|
-
case 1:
|
|
1204
|
-
requestOptions = _a.sent();
|
|
1205
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1206
|
-
case 2:
|
|
1207
|
-
response = _a.sent();
|
|
1208
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1209
|
-
}
|
|
1210
|
-
});
|
|
1211
|
-
});
|
|
1212
|
-
};
|
|
1213
|
-
/**
|
|
1214
|
-
*/
|
|
1215
|
-
ProjectsServerApi.prototype.deleteContent1 = function (requestParameters, initOverrides) {
|
|
1216
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1217
|
-
return __generator(this, function (_a) {
|
|
1218
|
-
switch (_a.label) {
|
|
1219
|
-
case 0: return [4 /*yield*/, this.deleteContent1Raw(requestParameters, initOverrides)];
|
|
1220
|
-
case 1:
|
|
1221
|
-
_a.sent();
|
|
1222
|
-
return [2 /*return*/];
|
|
1223
|
-
}
|
|
1224
|
-
});
|
|
1225
|
-
});
|
|
1226
|
-
};
|
|
1227
966
|
/**
|
|
1228
967
|
* Creates request options for deletePaymentTrigger without sending the request
|
|
1229
968
|
*/
|
|
@@ -1575,30 +1314,22 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1575
1314
|
});
|
|
1576
1315
|
};
|
|
1577
1316
|
/**
|
|
1578
|
-
* Creates request options for
|
|
1317
|
+
* Creates request options for getNotificationTemplates without sending the request
|
|
1579
1318
|
*/
|
|
1580
|
-
ProjectsServerApi.prototype.
|
|
1319
|
+
ProjectsServerApi.prototype.getNotificationTemplatesRequestOpts = function (requestParameters) {
|
|
1581
1320
|
return __awaiter(this, void 0, void 0, function () {
|
|
1582
1321
|
var queryParameters, headerParameters, urlPath;
|
|
1583
1322
|
return __generator(this, function (_a) {
|
|
1584
1323
|
if (requestParameters['projectId'] == null) {
|
|
1585
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
1586
|
-
}
|
|
1587
|
-
if (requestParameters['userId'] == null) {
|
|
1588
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling finalizeContent1().');
|
|
1589
|
-
}
|
|
1590
|
-
if (requestParameters['contentId'] == null) {
|
|
1591
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling finalizeContent1().');
|
|
1324
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getNotificationTemplates().');
|
|
1592
1325
|
}
|
|
1593
1326
|
queryParameters = {};
|
|
1594
1327
|
headerParameters = {};
|
|
1595
|
-
urlPath = "/api/v1/projects/{projectId}/
|
|
1328
|
+
urlPath = "/api/v1/projects/{projectId}/notification-templates";
|
|
1596
1329
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1597
|
-
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
1598
|
-
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1599
1330
|
return [2 /*return*/, {
|
|
1600
1331
|
path: urlPath,
|
|
1601
|
-
method: '
|
|
1332
|
+
method: 'GET',
|
|
1602
1333
|
headers: headerParameters,
|
|
1603
1334
|
query: queryParameters,
|
|
1604
1335
|
}];
|
|
@@ -1607,30 +1338,30 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1607
1338
|
};
|
|
1608
1339
|
/**
|
|
1609
1340
|
*/
|
|
1610
|
-
ProjectsServerApi.prototype.
|
|
1341
|
+
ProjectsServerApi.prototype.getNotificationTemplatesRaw = function (requestParameters, initOverrides) {
|
|
1611
1342
|
return __awaiter(this, void 0, void 0, function () {
|
|
1612
1343
|
var requestOptions, response;
|
|
1613
1344
|
return __generator(this, function (_a) {
|
|
1614
1345
|
switch (_a.label) {
|
|
1615
|
-
case 0: return [4 /*yield*/, this.
|
|
1346
|
+
case 0: return [4 /*yield*/, this.getNotificationTemplatesRequestOpts(requestParameters)];
|
|
1616
1347
|
case 1:
|
|
1617
1348
|
requestOptions = _a.sent();
|
|
1618
1349
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1619
1350
|
case 2:
|
|
1620
1351
|
response = _a.sent();
|
|
1621
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
1352
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, NotificationTemplatesResponse_1.NotificationTemplatesResponseFromJSON)(jsonValue); })];
|
|
1622
1353
|
}
|
|
1623
1354
|
});
|
|
1624
1355
|
});
|
|
1625
1356
|
};
|
|
1626
1357
|
/**
|
|
1627
1358
|
*/
|
|
1628
|
-
ProjectsServerApi.prototype.
|
|
1359
|
+
ProjectsServerApi.prototype.getNotificationTemplates = function (requestParameters, initOverrides) {
|
|
1629
1360
|
return __awaiter(this, void 0, void 0, function () {
|
|
1630
1361
|
var response;
|
|
1631
1362
|
return __generator(this, function (_a) {
|
|
1632
1363
|
switch (_a.label) {
|
|
1633
|
-
case 0: return [4 /*yield*/, this.
|
|
1364
|
+
case 0: return [4 /*yield*/, this.getNotificationTemplatesRaw(requestParameters, initOverrides)];
|
|
1634
1365
|
case 1:
|
|
1635
1366
|
response = _a.sent();
|
|
1636
1367
|
return [4 /*yield*/, response.value()];
|
|
@@ -1640,27 +1371,19 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1640
1371
|
});
|
|
1641
1372
|
};
|
|
1642
1373
|
/**
|
|
1643
|
-
* Creates request options for
|
|
1374
|
+
* Creates request options for getProject without sending the request
|
|
1644
1375
|
*/
|
|
1645
|
-
ProjectsServerApi.prototype.
|
|
1376
|
+
ProjectsServerApi.prototype.getProjectRequestOpts = function (requestParameters) {
|
|
1646
1377
|
return __awaiter(this, void 0, void 0, function () {
|
|
1647
1378
|
var queryParameters, headerParameters, urlPath;
|
|
1648
1379
|
return __generator(this, function (_a) {
|
|
1649
1380
|
if (requestParameters['projectId'] == null) {
|
|
1650
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
1651
|
-
}
|
|
1652
|
-
if (requestParameters['userId'] == null) {
|
|
1653
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getContent1().');
|
|
1654
|
-
}
|
|
1655
|
-
if (requestParameters['contentId'] == null) {
|
|
1656
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContent1().');
|
|
1381
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getProject().');
|
|
1657
1382
|
}
|
|
1658
1383
|
queryParameters = {};
|
|
1659
1384
|
headerParameters = {};
|
|
1660
|
-
urlPath = "/api/v1/projects/{projectId}
|
|
1385
|
+
urlPath = "/api/v1/projects/{projectId}";
|
|
1661
1386
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1662
|
-
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
1663
|
-
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1664
1387
|
return [2 /*return*/, {
|
|
1665
1388
|
path: urlPath,
|
|
1666
1389
|
method: 'GET',
|
|
@@ -1672,186 +1395,7 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1672
1395
|
};
|
|
1673
1396
|
/**
|
|
1674
1397
|
*/
|
|
1675
|
-
ProjectsServerApi.prototype.
|
|
1676
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1677
|
-
var requestOptions, response;
|
|
1678
|
-
return __generator(this, function (_a) {
|
|
1679
|
-
switch (_a.label) {
|
|
1680
|
-
case 0: return [4 /*yield*/, this.getContent1RequestOpts(requestParameters)];
|
|
1681
|
-
case 1:
|
|
1682
|
-
requestOptions = _a.sent();
|
|
1683
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1684
|
-
case 2:
|
|
1685
|
-
response = _a.sent();
|
|
1686
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContentObject_1.ContentObjectFromJSON)(jsonValue); })];
|
|
1687
|
-
}
|
|
1688
|
-
});
|
|
1689
|
-
});
|
|
1690
|
-
};
|
|
1691
|
-
/**
|
|
1692
|
-
*/
|
|
1693
|
-
ProjectsServerApi.prototype.getContent1 = function (requestParameters, initOverrides) {
|
|
1694
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1695
|
-
var response;
|
|
1696
|
-
return __generator(this, function (_a) {
|
|
1697
|
-
switch (_a.label) {
|
|
1698
|
-
case 0: return [4 /*yield*/, this.getContent1Raw(requestParameters, initOverrides)];
|
|
1699
|
-
case 1:
|
|
1700
|
-
response = _a.sent();
|
|
1701
|
-
return [4 /*yield*/, response.value()];
|
|
1702
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
1703
|
-
}
|
|
1704
|
-
});
|
|
1705
|
-
});
|
|
1706
|
-
};
|
|
1707
|
-
/**
|
|
1708
|
-
* Creates request options for getContentDownloadLink1 without sending the request
|
|
1709
|
-
*/
|
|
1710
|
-
ProjectsServerApi.prototype.getContentDownloadLink1RequestOpts = function (requestParameters) {
|
|
1711
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1712
|
-
var queryParameters, headerParameters, urlPath;
|
|
1713
|
-
return __generator(this, function (_a) {
|
|
1714
|
-
if (requestParameters['projectId'] == null) {
|
|
1715
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getContentDownloadLink1().');
|
|
1716
|
-
}
|
|
1717
|
-
if (requestParameters['userId'] == null) {
|
|
1718
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getContentDownloadLink1().');
|
|
1719
|
-
}
|
|
1720
|
-
if (requestParameters['contentId'] == null) {
|
|
1721
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContentDownloadLink1().');
|
|
1722
|
-
}
|
|
1723
|
-
queryParameters = {};
|
|
1724
|
-
headerParameters = {};
|
|
1725
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/download-link";
|
|
1726
|
-
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1727
|
-
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
1728
|
-
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1729
|
-
return [2 /*return*/, {
|
|
1730
|
-
path: urlPath,
|
|
1731
|
-
method: 'GET',
|
|
1732
|
-
headers: headerParameters,
|
|
1733
|
-
query: queryParameters,
|
|
1734
|
-
}];
|
|
1735
|
-
});
|
|
1736
|
-
});
|
|
1737
|
-
};
|
|
1738
|
-
/**
|
|
1739
|
-
*/
|
|
1740
|
-
ProjectsServerApi.prototype.getContentDownloadLink1Raw = function (requestParameters, initOverrides) {
|
|
1741
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1742
|
-
var requestOptions, response;
|
|
1743
|
-
return __generator(this, function (_a) {
|
|
1744
|
-
switch (_a.label) {
|
|
1745
|
-
case 0: return [4 /*yield*/, this.getContentDownloadLink1RequestOpts(requestParameters)];
|
|
1746
|
-
case 1:
|
|
1747
|
-
requestOptions = _a.sent();
|
|
1748
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1749
|
-
case 2:
|
|
1750
|
-
response = _a.sent();
|
|
1751
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetContentDownloadLinkResponse_1.GetContentDownloadLinkResponseFromJSON)(jsonValue); })];
|
|
1752
|
-
}
|
|
1753
|
-
});
|
|
1754
|
-
});
|
|
1755
|
-
};
|
|
1756
|
-
/**
|
|
1757
|
-
*/
|
|
1758
|
-
ProjectsServerApi.prototype.getContentDownloadLink1 = function (requestParameters, initOverrides) {
|
|
1759
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1760
|
-
var response;
|
|
1761
|
-
return __generator(this, function (_a) {
|
|
1762
|
-
switch (_a.label) {
|
|
1763
|
-
case 0: return [4 /*yield*/, this.getContentDownloadLink1Raw(requestParameters, initOverrides)];
|
|
1764
|
-
case 1:
|
|
1765
|
-
response = _a.sent();
|
|
1766
|
-
return [4 /*yield*/, response.value()];
|
|
1767
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
1768
|
-
}
|
|
1769
|
-
});
|
|
1770
|
-
});
|
|
1771
|
-
};
|
|
1772
|
-
/**
|
|
1773
|
-
* Creates request options for getNotificationTemplates without sending the request
|
|
1774
|
-
*/
|
|
1775
|
-
ProjectsServerApi.prototype.getNotificationTemplatesRequestOpts = function (requestParameters) {
|
|
1776
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1777
|
-
var queryParameters, headerParameters, urlPath;
|
|
1778
|
-
return __generator(this, function (_a) {
|
|
1779
|
-
if (requestParameters['projectId'] == null) {
|
|
1780
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getNotificationTemplates().');
|
|
1781
|
-
}
|
|
1782
|
-
queryParameters = {};
|
|
1783
|
-
headerParameters = {};
|
|
1784
|
-
urlPath = "/api/v1/projects/{projectId}/notification-templates";
|
|
1785
|
-
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1786
|
-
return [2 /*return*/, {
|
|
1787
|
-
path: urlPath,
|
|
1788
|
-
method: 'GET',
|
|
1789
|
-
headers: headerParameters,
|
|
1790
|
-
query: queryParameters,
|
|
1791
|
-
}];
|
|
1792
|
-
});
|
|
1793
|
-
});
|
|
1794
|
-
};
|
|
1795
|
-
/**
|
|
1796
|
-
*/
|
|
1797
|
-
ProjectsServerApi.prototype.getNotificationTemplatesRaw = function (requestParameters, initOverrides) {
|
|
1798
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1799
|
-
var requestOptions, response;
|
|
1800
|
-
return __generator(this, function (_a) {
|
|
1801
|
-
switch (_a.label) {
|
|
1802
|
-
case 0: return [4 /*yield*/, this.getNotificationTemplatesRequestOpts(requestParameters)];
|
|
1803
|
-
case 1:
|
|
1804
|
-
requestOptions = _a.sent();
|
|
1805
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1806
|
-
case 2:
|
|
1807
|
-
response = _a.sent();
|
|
1808
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, NotificationTemplatesResponse_1.NotificationTemplatesResponseFromJSON)(jsonValue); })];
|
|
1809
|
-
}
|
|
1810
|
-
});
|
|
1811
|
-
});
|
|
1812
|
-
};
|
|
1813
|
-
/**
|
|
1814
|
-
*/
|
|
1815
|
-
ProjectsServerApi.prototype.getNotificationTemplates = function (requestParameters, initOverrides) {
|
|
1816
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1817
|
-
var response;
|
|
1818
|
-
return __generator(this, function (_a) {
|
|
1819
|
-
switch (_a.label) {
|
|
1820
|
-
case 0: return [4 /*yield*/, this.getNotificationTemplatesRaw(requestParameters, initOverrides)];
|
|
1821
|
-
case 1:
|
|
1822
|
-
response = _a.sent();
|
|
1823
|
-
return [4 /*yield*/, response.value()];
|
|
1824
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
1825
|
-
}
|
|
1826
|
-
});
|
|
1827
|
-
});
|
|
1828
|
-
};
|
|
1829
|
-
/**
|
|
1830
|
-
* Creates request options for getProject without sending the request
|
|
1831
|
-
*/
|
|
1832
|
-
ProjectsServerApi.prototype.getProjectRequestOpts = function (requestParameters) {
|
|
1833
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1834
|
-
var queryParameters, headerParameters, urlPath;
|
|
1835
|
-
return __generator(this, function (_a) {
|
|
1836
|
-
if (requestParameters['projectId'] == null) {
|
|
1837
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getProject().');
|
|
1838
|
-
}
|
|
1839
|
-
queryParameters = {};
|
|
1840
|
-
headerParameters = {};
|
|
1841
|
-
urlPath = "/api/v1/projects/{projectId}";
|
|
1842
|
-
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1843
|
-
return [2 /*return*/, {
|
|
1844
|
-
path: urlPath,
|
|
1845
|
-
method: 'GET',
|
|
1846
|
-
headers: headerParameters,
|
|
1847
|
-
query: queryParameters,
|
|
1848
|
-
}];
|
|
1849
|
-
});
|
|
1850
|
-
});
|
|
1851
|
-
};
|
|
1852
|
-
/**
|
|
1853
|
-
*/
|
|
1854
|
-
ProjectsServerApi.prototype.getProjectRaw = function (requestParameters, initOverrides) {
|
|
1398
|
+
ProjectsServerApi.prototype.getProjectRaw = function (requestParameters, initOverrides) {
|
|
1855
1399
|
return __awaiter(this, void 0, void 0, function () {
|
|
1856
1400
|
var requestOptions, response;
|
|
1857
1401
|
return __generator(this, function (_a) {
|
|
@@ -2397,73 +1941,6 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
2397
1941
|
});
|
|
2398
1942
|
});
|
|
2399
1943
|
};
|
|
2400
|
-
/**
|
|
2401
|
-
* Creates request options for listContent1 without sending the request
|
|
2402
|
-
*/
|
|
2403
|
-
ProjectsServerApi.prototype.listContent1RequestOpts = function (requestParameters) {
|
|
2404
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2405
|
-
var queryParameters, headerParameters, urlPath;
|
|
2406
|
-
return __generator(this, function (_a) {
|
|
2407
|
-
if (requestParameters['projectId'] == null) {
|
|
2408
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listContent1().');
|
|
2409
|
-
}
|
|
2410
|
-
if (requestParameters['userId'] == null) {
|
|
2411
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling listContent1().');
|
|
2412
|
-
}
|
|
2413
|
-
queryParameters = {};
|
|
2414
|
-
if (requestParameters['page'] != null) {
|
|
2415
|
-
queryParameters['page'] = requestParameters['page'];
|
|
2416
|
-
}
|
|
2417
|
-
if (requestParameters['pageSize'] != null) {
|
|
2418
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
2419
|
-
}
|
|
2420
|
-
headerParameters = {};
|
|
2421
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content";
|
|
2422
|
-
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2423
|
-
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
2424
|
-
return [2 /*return*/, {
|
|
2425
|
-
path: urlPath,
|
|
2426
|
-
method: 'GET',
|
|
2427
|
-
headers: headerParameters,
|
|
2428
|
-
query: queryParameters,
|
|
2429
|
-
}];
|
|
2430
|
-
});
|
|
2431
|
-
});
|
|
2432
|
-
};
|
|
2433
|
-
/**
|
|
2434
|
-
*/
|
|
2435
|
-
ProjectsServerApi.prototype.listContent1Raw = function (requestParameters, initOverrides) {
|
|
2436
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2437
|
-
var requestOptions, response;
|
|
2438
|
-
return __generator(this, function (_a) {
|
|
2439
|
-
switch (_a.label) {
|
|
2440
|
-
case 0: return [4 /*yield*/, this.listContent1RequestOpts(requestParameters)];
|
|
2441
|
-
case 1:
|
|
2442
|
-
requestOptions = _a.sent();
|
|
2443
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2444
|
-
case 2:
|
|
2445
|
-
response = _a.sent();
|
|
2446
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ListContentResponse_1.ListContentResponseFromJSON)(jsonValue); })];
|
|
2447
|
-
}
|
|
2448
|
-
});
|
|
2449
|
-
});
|
|
2450
|
-
};
|
|
2451
|
-
/**
|
|
2452
|
-
*/
|
|
2453
|
-
ProjectsServerApi.prototype.listContent1 = function (requestParameters, initOverrides) {
|
|
2454
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2455
|
-
var response;
|
|
2456
|
-
return __generator(this, function (_a) {
|
|
2457
|
-
switch (_a.label) {
|
|
2458
|
-
case 0: return [4 /*yield*/, this.listContent1Raw(requestParameters, initOverrides)];
|
|
2459
|
-
case 1:
|
|
2460
|
-
response = _a.sent();
|
|
2461
|
-
return [4 /*yield*/, response.value()];
|
|
2462
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
2463
|
-
}
|
|
2464
|
-
});
|
|
2465
|
-
});
|
|
2466
|
-
};
|
|
2467
1944
|
/**
|
|
2468
1945
|
* Creates request options for listLogLines without sending the request
|
|
2469
1946
|
*/
|
|
@@ -3202,63 +2679,63 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
3202
2679
|
});
|
|
3203
2680
|
};
|
|
3204
2681
|
/**
|
|
3205
|
-
* Creates request options for
|
|
2682
|
+
* Creates request options for projectsCreateContentUploadLink without sending the request
|
|
3206
2683
|
*/
|
|
3207
|
-
ProjectsServerApi.prototype.
|
|
2684
|
+
ProjectsServerApi.prototype.projectsCreateContentUploadLinkRequestOpts = function (requestParameters) {
|
|
3208
2685
|
return __awaiter(this, void 0, void 0, function () {
|
|
3209
2686
|
var queryParameters, headerParameters, urlPath;
|
|
3210
2687
|
return __generator(this, function (_a) {
|
|
3211
|
-
if (requestParameters['userId'] == null) {
|
|
3212
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling putUserCustomAttributes().');
|
|
3213
|
-
}
|
|
3214
2688
|
if (requestParameters['projectId'] == null) {
|
|
3215
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
2689
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling projectsCreateContentUploadLink().');
|
|
3216
2690
|
}
|
|
3217
|
-
if (requestParameters['
|
|
3218
|
-
throw new runtime.RequiredError('
|
|
2691
|
+
if (requestParameters['userId'] == null) {
|
|
2692
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling projectsCreateContentUploadLink().');
|
|
2693
|
+
}
|
|
2694
|
+
if (requestParameters['createContentUploadLinkRequest'] == null) {
|
|
2695
|
+
throw new runtime.RequiredError('createContentUploadLinkRequest', 'Required parameter "createContentUploadLinkRequest" was null or undefined when calling projectsCreateContentUploadLink().');
|
|
3219
2696
|
}
|
|
3220
2697
|
queryParameters = {};
|
|
3221
2698
|
headerParameters = {};
|
|
3222
2699
|
headerParameters['Content-Type'] = 'application/json';
|
|
3223
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/
|
|
3224
|
-
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
2700
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/upload-links";
|
|
3225
2701
|
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2702
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
3226
2703
|
return [2 /*return*/, {
|
|
3227
2704
|
path: urlPath,
|
|
3228
|
-
method: '
|
|
2705
|
+
method: 'POST',
|
|
3229
2706
|
headers: headerParameters,
|
|
3230
2707
|
query: queryParameters,
|
|
3231
|
-
body: requestParameters['
|
|
2708
|
+
body: (0, CreateContentUploadLinkRequest_1.CreateContentUploadLinkRequestToJSON)(requestParameters['createContentUploadLinkRequest']),
|
|
3232
2709
|
}];
|
|
3233
2710
|
});
|
|
3234
2711
|
});
|
|
3235
2712
|
};
|
|
3236
2713
|
/**
|
|
3237
2714
|
*/
|
|
3238
|
-
ProjectsServerApi.prototype.
|
|
2715
|
+
ProjectsServerApi.prototype.projectsCreateContentUploadLinkRaw = function (requestParameters, initOverrides) {
|
|
3239
2716
|
return __awaiter(this, void 0, void 0, function () {
|
|
3240
2717
|
var requestOptions, response;
|
|
3241
2718
|
return __generator(this, function (_a) {
|
|
3242
2719
|
switch (_a.label) {
|
|
3243
|
-
case 0: return [4 /*yield*/, this.
|
|
2720
|
+
case 0: return [4 /*yield*/, this.projectsCreateContentUploadLinkRequestOpts(requestParameters)];
|
|
3244
2721
|
case 1:
|
|
3245
2722
|
requestOptions = _a.sent();
|
|
3246
2723
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3247
2724
|
case 2:
|
|
3248
2725
|
response = _a.sent();
|
|
3249
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
2726
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateContentUploadLinkResponse_1.CreateContentUploadLinkResponseFromJSON)(jsonValue); })];
|
|
3250
2727
|
}
|
|
3251
2728
|
});
|
|
3252
2729
|
});
|
|
3253
2730
|
};
|
|
3254
2731
|
/**
|
|
3255
2732
|
*/
|
|
3256
|
-
ProjectsServerApi.prototype.
|
|
2733
|
+
ProjectsServerApi.prototype.projectsCreateContentUploadLink = function (requestParameters, initOverrides) {
|
|
3257
2734
|
return __awaiter(this, void 0, void 0, function () {
|
|
3258
2735
|
var response;
|
|
3259
2736
|
return __generator(this, function (_a) {
|
|
3260
2737
|
switch (_a.label) {
|
|
3261
|
-
case 0: return [4 /*yield*/, this.
|
|
2738
|
+
case 0: return [4 /*yield*/, this.projectsCreateContentUploadLinkRaw(requestParameters, initOverrides)];
|
|
3262
2739
|
case 1:
|
|
3263
2740
|
response = _a.sent();
|
|
3264
2741
|
return [4 /*yield*/, response.value()];
|
|
@@ -3268,17 +2745,610 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
3268
2745
|
});
|
|
3269
2746
|
};
|
|
3270
2747
|
/**
|
|
3271
|
-
* Creates request options for
|
|
2748
|
+
* Creates request options for projectsCreatePayment without sending the request
|
|
3272
2749
|
*/
|
|
3273
|
-
ProjectsServerApi.prototype.
|
|
2750
|
+
ProjectsServerApi.prototype.projectsCreatePaymentRequestOpts = function (requestParameters) {
|
|
3274
2751
|
return __awaiter(this, void 0, void 0, function () {
|
|
3275
2752
|
var queryParameters, headerParameters, urlPath;
|
|
3276
2753
|
return __generator(this, function (_a) {
|
|
3277
2754
|
if (requestParameters['projectId'] == null) {
|
|
3278
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling
|
|
2755
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling projectsCreatePayment().');
|
|
3279
2756
|
}
|
|
3280
|
-
if (requestParameters['
|
|
3281
|
-
throw new runtime.RequiredError('
|
|
2757
|
+
if (requestParameters['userId'] == null) {
|
|
2758
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling projectsCreatePayment().');
|
|
2759
|
+
}
|
|
2760
|
+
if (requestParameters['createPaymentRequest'] == null) {
|
|
2761
|
+
throw new runtime.RequiredError('createPaymentRequest', 'Required parameter "createPaymentRequest" was null or undefined when calling projectsCreatePayment().');
|
|
2762
|
+
}
|
|
2763
|
+
queryParameters = {};
|
|
2764
|
+
headerParameters = {};
|
|
2765
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2766
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/payments";
|
|
2767
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2768
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
2769
|
+
return [2 /*return*/, {
|
|
2770
|
+
path: urlPath,
|
|
2771
|
+
method: 'POST',
|
|
2772
|
+
headers: headerParameters,
|
|
2773
|
+
query: queryParameters,
|
|
2774
|
+
body: (0, CreatePaymentRequest_1.CreatePaymentRequestToJSON)(requestParameters['createPaymentRequest']),
|
|
2775
|
+
}];
|
|
2776
|
+
});
|
|
2777
|
+
});
|
|
2778
|
+
};
|
|
2779
|
+
/**
|
|
2780
|
+
*/
|
|
2781
|
+
ProjectsServerApi.prototype.projectsCreatePaymentRaw = function (requestParameters, initOverrides) {
|
|
2782
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2783
|
+
var requestOptions, response;
|
|
2784
|
+
return __generator(this, function (_a) {
|
|
2785
|
+
switch (_a.label) {
|
|
2786
|
+
case 0: return [4 /*yield*/, this.projectsCreatePaymentRequestOpts(requestParameters)];
|
|
2787
|
+
case 1:
|
|
2788
|
+
requestOptions = _a.sent();
|
|
2789
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2790
|
+
case 2:
|
|
2791
|
+
response = _a.sent();
|
|
2792
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreatePaymentResponse_1.CreatePaymentResponseFromJSON)(jsonValue); })];
|
|
2793
|
+
}
|
|
2794
|
+
});
|
|
2795
|
+
});
|
|
2796
|
+
};
|
|
2797
|
+
/**
|
|
2798
|
+
*/
|
|
2799
|
+
ProjectsServerApi.prototype.projectsCreatePayment = function (requestParameters, initOverrides) {
|
|
2800
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2801
|
+
var response;
|
|
2802
|
+
return __generator(this, function (_a) {
|
|
2803
|
+
switch (_a.label) {
|
|
2804
|
+
case 0: return [4 /*yield*/, this.projectsCreatePaymentRaw(requestParameters, initOverrides)];
|
|
2805
|
+
case 1:
|
|
2806
|
+
response = _a.sent();
|
|
2807
|
+
return [4 /*yield*/, response.value()];
|
|
2808
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
2809
|
+
}
|
|
2810
|
+
});
|
|
2811
|
+
});
|
|
2812
|
+
};
|
|
2813
|
+
/**
|
|
2814
|
+
* Creates request options for projectsCreatePaymentPreview without sending the request
|
|
2815
|
+
*/
|
|
2816
|
+
ProjectsServerApi.prototype.projectsCreatePaymentPreviewRequestOpts = function (requestParameters) {
|
|
2817
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2818
|
+
var queryParameters, headerParameters, urlPath;
|
|
2819
|
+
return __generator(this, function (_a) {
|
|
2820
|
+
if (requestParameters['projectId'] == null) {
|
|
2821
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling projectsCreatePaymentPreview().');
|
|
2822
|
+
}
|
|
2823
|
+
if (requestParameters['userId'] == null) {
|
|
2824
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling projectsCreatePaymentPreview().');
|
|
2825
|
+
}
|
|
2826
|
+
if (requestParameters['createPaymentPreviewRequest'] == null) {
|
|
2827
|
+
throw new runtime.RequiredError('createPaymentPreviewRequest', 'Required parameter "createPaymentPreviewRequest" was null or undefined when calling projectsCreatePaymentPreview().');
|
|
2828
|
+
}
|
|
2829
|
+
queryParameters = {};
|
|
2830
|
+
headerParameters = {};
|
|
2831
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2832
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/payments/preview";
|
|
2833
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2834
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
2835
|
+
return [2 /*return*/, {
|
|
2836
|
+
path: urlPath,
|
|
2837
|
+
method: 'POST',
|
|
2838
|
+
headers: headerParameters,
|
|
2839
|
+
query: queryParameters,
|
|
2840
|
+
body: (0, CreatePaymentPreviewRequest_1.CreatePaymentPreviewRequestToJSON)(requestParameters['createPaymentPreviewRequest']),
|
|
2841
|
+
}];
|
|
2842
|
+
});
|
|
2843
|
+
});
|
|
2844
|
+
};
|
|
2845
|
+
/**
|
|
2846
|
+
*/
|
|
2847
|
+
ProjectsServerApi.prototype.projectsCreatePaymentPreviewRaw = function (requestParameters, initOverrides) {
|
|
2848
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2849
|
+
var requestOptions, response;
|
|
2850
|
+
return __generator(this, function (_a) {
|
|
2851
|
+
switch (_a.label) {
|
|
2852
|
+
case 0: return [4 /*yield*/, this.projectsCreatePaymentPreviewRequestOpts(requestParameters)];
|
|
2853
|
+
case 1:
|
|
2854
|
+
requestOptions = _a.sent();
|
|
2855
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2856
|
+
case 2:
|
|
2857
|
+
response = _a.sent();
|
|
2858
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreatePaymentPreviewResponse_1.CreatePaymentPreviewResponseFromJSON)(jsonValue); })];
|
|
2859
|
+
}
|
|
2860
|
+
});
|
|
2861
|
+
});
|
|
2862
|
+
};
|
|
2863
|
+
/**
|
|
2864
|
+
*/
|
|
2865
|
+
ProjectsServerApi.prototype.projectsCreatePaymentPreview = function (requestParameters, initOverrides) {
|
|
2866
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2867
|
+
var response;
|
|
2868
|
+
return __generator(this, function (_a) {
|
|
2869
|
+
switch (_a.label) {
|
|
2870
|
+
case 0: return [4 /*yield*/, this.projectsCreatePaymentPreviewRaw(requestParameters, initOverrides)];
|
|
2871
|
+
case 1:
|
|
2872
|
+
response = _a.sent();
|
|
2873
|
+
return [4 /*yield*/, response.value()];
|
|
2874
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
2875
|
+
}
|
|
2876
|
+
});
|
|
2877
|
+
});
|
|
2878
|
+
};
|
|
2879
|
+
/**
|
|
2880
|
+
* Creates request options for projectsDeleteContent without sending the request
|
|
2881
|
+
*/
|
|
2882
|
+
ProjectsServerApi.prototype.projectsDeleteContentRequestOpts = function (requestParameters) {
|
|
2883
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2884
|
+
var queryParameters, headerParameters, urlPath;
|
|
2885
|
+
return __generator(this, function (_a) {
|
|
2886
|
+
if (requestParameters['projectId'] == null) {
|
|
2887
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling projectsDeleteContent().');
|
|
2888
|
+
}
|
|
2889
|
+
if (requestParameters['userId'] == null) {
|
|
2890
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling projectsDeleteContent().');
|
|
2891
|
+
}
|
|
2892
|
+
if (requestParameters['contentId'] == null) {
|
|
2893
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling projectsDeleteContent().');
|
|
2894
|
+
}
|
|
2895
|
+
queryParameters = {};
|
|
2896
|
+
headerParameters = {};
|
|
2897
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}";
|
|
2898
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2899
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
2900
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
2901
|
+
return [2 /*return*/, {
|
|
2902
|
+
path: urlPath,
|
|
2903
|
+
method: 'DELETE',
|
|
2904
|
+
headers: headerParameters,
|
|
2905
|
+
query: queryParameters,
|
|
2906
|
+
}];
|
|
2907
|
+
});
|
|
2908
|
+
});
|
|
2909
|
+
};
|
|
2910
|
+
/**
|
|
2911
|
+
*/
|
|
2912
|
+
ProjectsServerApi.prototype.projectsDeleteContentRaw = function (requestParameters, initOverrides) {
|
|
2913
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2914
|
+
var requestOptions, response;
|
|
2915
|
+
return __generator(this, function (_a) {
|
|
2916
|
+
switch (_a.label) {
|
|
2917
|
+
case 0: return [4 /*yield*/, this.projectsDeleteContentRequestOpts(requestParameters)];
|
|
2918
|
+
case 1:
|
|
2919
|
+
requestOptions = _a.sent();
|
|
2920
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2921
|
+
case 2:
|
|
2922
|
+
response = _a.sent();
|
|
2923
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
2924
|
+
}
|
|
2925
|
+
});
|
|
2926
|
+
});
|
|
2927
|
+
};
|
|
2928
|
+
/**
|
|
2929
|
+
*/
|
|
2930
|
+
ProjectsServerApi.prototype.projectsDeleteContent = function (requestParameters, initOverrides) {
|
|
2931
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2932
|
+
return __generator(this, function (_a) {
|
|
2933
|
+
switch (_a.label) {
|
|
2934
|
+
case 0: return [4 /*yield*/, this.projectsDeleteContentRaw(requestParameters, initOverrides)];
|
|
2935
|
+
case 1:
|
|
2936
|
+
_a.sent();
|
|
2937
|
+
return [2 /*return*/];
|
|
2938
|
+
}
|
|
2939
|
+
});
|
|
2940
|
+
});
|
|
2941
|
+
};
|
|
2942
|
+
/**
|
|
2943
|
+
* Creates request options for projectsFinalizeContent without sending the request
|
|
2944
|
+
*/
|
|
2945
|
+
ProjectsServerApi.prototype.projectsFinalizeContentRequestOpts = function (requestParameters) {
|
|
2946
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2947
|
+
var queryParameters, headerParameters, urlPath;
|
|
2948
|
+
return __generator(this, function (_a) {
|
|
2949
|
+
if (requestParameters['projectId'] == null) {
|
|
2950
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling projectsFinalizeContent().');
|
|
2951
|
+
}
|
|
2952
|
+
if (requestParameters['userId'] == null) {
|
|
2953
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling projectsFinalizeContent().');
|
|
2954
|
+
}
|
|
2955
|
+
if (requestParameters['contentId'] == null) {
|
|
2956
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling projectsFinalizeContent().');
|
|
2957
|
+
}
|
|
2958
|
+
queryParameters = {};
|
|
2959
|
+
headerParameters = {};
|
|
2960
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/finalize";
|
|
2961
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2962
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
2963
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
2964
|
+
return [2 /*return*/, {
|
|
2965
|
+
path: urlPath,
|
|
2966
|
+
method: 'POST',
|
|
2967
|
+
headers: headerParameters,
|
|
2968
|
+
query: queryParameters,
|
|
2969
|
+
}];
|
|
2970
|
+
});
|
|
2971
|
+
});
|
|
2972
|
+
};
|
|
2973
|
+
/**
|
|
2974
|
+
*/
|
|
2975
|
+
ProjectsServerApi.prototype.projectsFinalizeContentRaw = function (requestParameters, initOverrides) {
|
|
2976
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2977
|
+
var requestOptions, response;
|
|
2978
|
+
return __generator(this, function (_a) {
|
|
2979
|
+
switch (_a.label) {
|
|
2980
|
+
case 0: return [4 /*yield*/, this.projectsFinalizeContentRequestOpts(requestParameters)];
|
|
2981
|
+
case 1:
|
|
2982
|
+
requestOptions = _a.sent();
|
|
2983
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2984
|
+
case 2:
|
|
2985
|
+
response = _a.sent();
|
|
2986
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContentObject_1.ContentObjectFromJSON)(jsonValue); })];
|
|
2987
|
+
}
|
|
2988
|
+
});
|
|
2989
|
+
});
|
|
2990
|
+
};
|
|
2991
|
+
/**
|
|
2992
|
+
*/
|
|
2993
|
+
ProjectsServerApi.prototype.projectsFinalizeContent = function (requestParameters, initOverrides) {
|
|
2994
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2995
|
+
var response;
|
|
2996
|
+
return __generator(this, function (_a) {
|
|
2997
|
+
switch (_a.label) {
|
|
2998
|
+
case 0: return [4 /*yield*/, this.projectsFinalizeContentRaw(requestParameters, initOverrides)];
|
|
2999
|
+
case 1:
|
|
3000
|
+
response = _a.sent();
|
|
3001
|
+
return [4 /*yield*/, response.value()];
|
|
3002
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
3003
|
+
}
|
|
3004
|
+
});
|
|
3005
|
+
});
|
|
3006
|
+
};
|
|
3007
|
+
/**
|
|
3008
|
+
* Creates request options for projectsGetContent without sending the request
|
|
3009
|
+
*/
|
|
3010
|
+
ProjectsServerApi.prototype.projectsGetContentRequestOpts = function (requestParameters) {
|
|
3011
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3012
|
+
var queryParameters, headerParameters, urlPath;
|
|
3013
|
+
return __generator(this, function (_a) {
|
|
3014
|
+
if (requestParameters['projectId'] == null) {
|
|
3015
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling projectsGetContent().');
|
|
3016
|
+
}
|
|
3017
|
+
if (requestParameters['userId'] == null) {
|
|
3018
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling projectsGetContent().');
|
|
3019
|
+
}
|
|
3020
|
+
if (requestParameters['contentId'] == null) {
|
|
3021
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling projectsGetContent().');
|
|
3022
|
+
}
|
|
3023
|
+
queryParameters = {};
|
|
3024
|
+
headerParameters = {};
|
|
3025
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}";
|
|
3026
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3027
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
3028
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
3029
|
+
return [2 /*return*/, {
|
|
3030
|
+
path: urlPath,
|
|
3031
|
+
method: 'GET',
|
|
3032
|
+
headers: headerParameters,
|
|
3033
|
+
query: queryParameters,
|
|
3034
|
+
}];
|
|
3035
|
+
});
|
|
3036
|
+
});
|
|
3037
|
+
};
|
|
3038
|
+
/**
|
|
3039
|
+
*/
|
|
3040
|
+
ProjectsServerApi.prototype.projectsGetContentRaw = function (requestParameters, initOverrides) {
|
|
3041
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3042
|
+
var requestOptions, response;
|
|
3043
|
+
return __generator(this, function (_a) {
|
|
3044
|
+
switch (_a.label) {
|
|
3045
|
+
case 0: return [4 /*yield*/, this.projectsGetContentRequestOpts(requestParameters)];
|
|
3046
|
+
case 1:
|
|
3047
|
+
requestOptions = _a.sent();
|
|
3048
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3049
|
+
case 2:
|
|
3050
|
+
response = _a.sent();
|
|
3051
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContentObject_1.ContentObjectFromJSON)(jsonValue); })];
|
|
3052
|
+
}
|
|
3053
|
+
});
|
|
3054
|
+
});
|
|
3055
|
+
};
|
|
3056
|
+
/**
|
|
3057
|
+
*/
|
|
3058
|
+
ProjectsServerApi.prototype.projectsGetContent = function (requestParameters, initOverrides) {
|
|
3059
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3060
|
+
var response;
|
|
3061
|
+
return __generator(this, function (_a) {
|
|
3062
|
+
switch (_a.label) {
|
|
3063
|
+
case 0: return [4 /*yield*/, this.projectsGetContentRaw(requestParameters, initOverrides)];
|
|
3064
|
+
case 1:
|
|
3065
|
+
response = _a.sent();
|
|
3066
|
+
return [4 /*yield*/, response.value()];
|
|
3067
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
3068
|
+
}
|
|
3069
|
+
});
|
|
3070
|
+
});
|
|
3071
|
+
};
|
|
3072
|
+
/**
|
|
3073
|
+
* Creates request options for projectsGetContentDownloadLink without sending the request
|
|
3074
|
+
*/
|
|
3075
|
+
ProjectsServerApi.prototype.projectsGetContentDownloadLinkRequestOpts = function (requestParameters) {
|
|
3076
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3077
|
+
var queryParameters, headerParameters, urlPath;
|
|
3078
|
+
return __generator(this, function (_a) {
|
|
3079
|
+
if (requestParameters['projectId'] == null) {
|
|
3080
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling projectsGetContentDownloadLink().');
|
|
3081
|
+
}
|
|
3082
|
+
if (requestParameters['userId'] == null) {
|
|
3083
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling projectsGetContentDownloadLink().');
|
|
3084
|
+
}
|
|
3085
|
+
if (requestParameters['contentId'] == null) {
|
|
3086
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling projectsGetContentDownloadLink().');
|
|
3087
|
+
}
|
|
3088
|
+
queryParameters = {};
|
|
3089
|
+
headerParameters = {};
|
|
3090
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/download-link";
|
|
3091
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3092
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
3093
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
3094
|
+
return [2 /*return*/, {
|
|
3095
|
+
path: urlPath,
|
|
3096
|
+
method: 'GET',
|
|
3097
|
+
headers: headerParameters,
|
|
3098
|
+
query: queryParameters,
|
|
3099
|
+
}];
|
|
3100
|
+
});
|
|
3101
|
+
});
|
|
3102
|
+
};
|
|
3103
|
+
/**
|
|
3104
|
+
*/
|
|
3105
|
+
ProjectsServerApi.prototype.projectsGetContentDownloadLinkRaw = function (requestParameters, initOverrides) {
|
|
3106
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3107
|
+
var requestOptions, response;
|
|
3108
|
+
return __generator(this, function (_a) {
|
|
3109
|
+
switch (_a.label) {
|
|
3110
|
+
case 0: return [4 /*yield*/, this.projectsGetContentDownloadLinkRequestOpts(requestParameters)];
|
|
3111
|
+
case 1:
|
|
3112
|
+
requestOptions = _a.sent();
|
|
3113
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3114
|
+
case 2:
|
|
3115
|
+
response = _a.sent();
|
|
3116
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetContentDownloadLinkResponse_1.GetContentDownloadLinkResponseFromJSON)(jsonValue); })];
|
|
3117
|
+
}
|
|
3118
|
+
});
|
|
3119
|
+
});
|
|
3120
|
+
};
|
|
3121
|
+
/**
|
|
3122
|
+
*/
|
|
3123
|
+
ProjectsServerApi.prototype.projectsGetContentDownloadLink = function (requestParameters, initOverrides) {
|
|
3124
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3125
|
+
var response;
|
|
3126
|
+
return __generator(this, function (_a) {
|
|
3127
|
+
switch (_a.label) {
|
|
3128
|
+
case 0: return [4 /*yield*/, this.projectsGetContentDownloadLinkRaw(requestParameters, initOverrides)];
|
|
3129
|
+
case 1:
|
|
3130
|
+
response = _a.sent();
|
|
3131
|
+
return [4 /*yield*/, response.value()];
|
|
3132
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
3133
|
+
}
|
|
3134
|
+
});
|
|
3135
|
+
});
|
|
3136
|
+
};
|
|
3137
|
+
/**
|
|
3138
|
+
* Creates request options for projectsListContent without sending the request
|
|
3139
|
+
*/
|
|
3140
|
+
ProjectsServerApi.prototype.projectsListContentRequestOpts = function (requestParameters) {
|
|
3141
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3142
|
+
var queryParameters, headerParameters, urlPath;
|
|
3143
|
+
return __generator(this, function (_a) {
|
|
3144
|
+
if (requestParameters['projectId'] == null) {
|
|
3145
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling projectsListContent().');
|
|
3146
|
+
}
|
|
3147
|
+
if (requestParameters['userId'] == null) {
|
|
3148
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling projectsListContent().');
|
|
3149
|
+
}
|
|
3150
|
+
queryParameters = {};
|
|
3151
|
+
if (requestParameters['page'] != null) {
|
|
3152
|
+
queryParameters['page'] = requestParameters['page'];
|
|
3153
|
+
}
|
|
3154
|
+
if (requestParameters['pageSize'] != null) {
|
|
3155
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
3156
|
+
}
|
|
3157
|
+
headerParameters = {};
|
|
3158
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content";
|
|
3159
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3160
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
3161
|
+
return [2 /*return*/, {
|
|
3162
|
+
path: urlPath,
|
|
3163
|
+
method: 'GET',
|
|
3164
|
+
headers: headerParameters,
|
|
3165
|
+
query: queryParameters,
|
|
3166
|
+
}];
|
|
3167
|
+
});
|
|
3168
|
+
});
|
|
3169
|
+
};
|
|
3170
|
+
/**
|
|
3171
|
+
*/
|
|
3172
|
+
ProjectsServerApi.prototype.projectsListContentRaw = function (requestParameters, initOverrides) {
|
|
3173
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3174
|
+
var requestOptions, response;
|
|
3175
|
+
return __generator(this, function (_a) {
|
|
3176
|
+
switch (_a.label) {
|
|
3177
|
+
case 0: return [4 /*yield*/, this.projectsListContentRequestOpts(requestParameters)];
|
|
3178
|
+
case 1:
|
|
3179
|
+
requestOptions = _a.sent();
|
|
3180
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3181
|
+
case 2:
|
|
3182
|
+
response = _a.sent();
|
|
3183
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ListContentResponse_1.ListContentResponseFromJSON)(jsonValue); })];
|
|
3184
|
+
}
|
|
3185
|
+
});
|
|
3186
|
+
});
|
|
3187
|
+
};
|
|
3188
|
+
/**
|
|
3189
|
+
*/
|
|
3190
|
+
ProjectsServerApi.prototype.projectsListContent = function (requestParameters, initOverrides) {
|
|
3191
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3192
|
+
var response;
|
|
3193
|
+
return __generator(this, function (_a) {
|
|
3194
|
+
switch (_a.label) {
|
|
3195
|
+
case 0: return [4 /*yield*/, this.projectsListContentRaw(requestParameters, initOverrides)];
|
|
3196
|
+
case 1:
|
|
3197
|
+
response = _a.sent();
|
|
3198
|
+
return [4 /*yield*/, response.value()];
|
|
3199
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
3200
|
+
}
|
|
3201
|
+
});
|
|
3202
|
+
});
|
|
3203
|
+
};
|
|
3204
|
+
/**
|
|
3205
|
+
* Creates request options for projectsUpdateContentShares without sending the request
|
|
3206
|
+
*/
|
|
3207
|
+
ProjectsServerApi.prototype.projectsUpdateContentSharesRequestOpts = function (requestParameters) {
|
|
3208
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3209
|
+
var queryParameters, headerParameters, urlPath;
|
|
3210
|
+
return __generator(this, function (_a) {
|
|
3211
|
+
if (requestParameters['projectId'] == null) {
|
|
3212
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling projectsUpdateContentShares().');
|
|
3213
|
+
}
|
|
3214
|
+
if (requestParameters['userId'] == null) {
|
|
3215
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling projectsUpdateContentShares().');
|
|
3216
|
+
}
|
|
3217
|
+
if (requestParameters['contentId'] == null) {
|
|
3218
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling projectsUpdateContentShares().');
|
|
3219
|
+
}
|
|
3220
|
+
if (requestParameters['updateContentSharesRequest'] == null) {
|
|
3221
|
+
throw new runtime.RequiredError('updateContentSharesRequest', 'Required parameter "updateContentSharesRequest" was null or undefined when calling projectsUpdateContentShares().');
|
|
3222
|
+
}
|
|
3223
|
+
queryParameters = {};
|
|
3224
|
+
headerParameters = {};
|
|
3225
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3226
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/shares";
|
|
3227
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3228
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
3229
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
3230
|
+
return [2 /*return*/, {
|
|
3231
|
+
path: urlPath,
|
|
3232
|
+
method: 'PUT',
|
|
3233
|
+
headers: headerParameters,
|
|
3234
|
+
query: queryParameters,
|
|
3235
|
+
body: (0, UpdateContentSharesRequest_1.UpdateContentSharesRequestToJSON)(requestParameters['updateContentSharesRequest']),
|
|
3236
|
+
}];
|
|
3237
|
+
});
|
|
3238
|
+
});
|
|
3239
|
+
};
|
|
3240
|
+
/**
|
|
3241
|
+
*/
|
|
3242
|
+
ProjectsServerApi.prototype.projectsUpdateContentSharesRaw = function (requestParameters, initOverrides) {
|
|
3243
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3244
|
+
var requestOptions, response;
|
|
3245
|
+
return __generator(this, function (_a) {
|
|
3246
|
+
switch (_a.label) {
|
|
3247
|
+
case 0: return [4 /*yield*/, this.projectsUpdateContentSharesRequestOpts(requestParameters)];
|
|
3248
|
+
case 1:
|
|
3249
|
+
requestOptions = _a.sent();
|
|
3250
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3251
|
+
case 2:
|
|
3252
|
+
response = _a.sent();
|
|
3253
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContentObject_1.ContentObjectFromJSON)(jsonValue); })];
|
|
3254
|
+
}
|
|
3255
|
+
});
|
|
3256
|
+
});
|
|
3257
|
+
};
|
|
3258
|
+
/**
|
|
3259
|
+
*/
|
|
3260
|
+
ProjectsServerApi.prototype.projectsUpdateContentShares = function (requestParameters, initOverrides) {
|
|
3261
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3262
|
+
var response;
|
|
3263
|
+
return __generator(this, function (_a) {
|
|
3264
|
+
switch (_a.label) {
|
|
3265
|
+
case 0: return [4 /*yield*/, this.projectsUpdateContentSharesRaw(requestParameters, initOverrides)];
|
|
3266
|
+
case 1:
|
|
3267
|
+
response = _a.sent();
|
|
3268
|
+
return [4 /*yield*/, response.value()];
|
|
3269
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
3270
|
+
}
|
|
3271
|
+
});
|
|
3272
|
+
});
|
|
3273
|
+
};
|
|
3274
|
+
/**
|
|
3275
|
+
* Creates request options for putUserCustomAttributes without sending the request
|
|
3276
|
+
*/
|
|
3277
|
+
ProjectsServerApi.prototype.putUserCustomAttributesRequestOpts = function (requestParameters) {
|
|
3278
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3279
|
+
var queryParameters, headerParameters, urlPath;
|
|
3280
|
+
return __generator(this, function (_a) {
|
|
3281
|
+
if (requestParameters['userId'] == null) {
|
|
3282
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling putUserCustomAttributes().');
|
|
3283
|
+
}
|
|
3284
|
+
if (requestParameters['projectId'] == null) {
|
|
3285
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling putUserCustomAttributes().');
|
|
3286
|
+
}
|
|
3287
|
+
if (requestParameters['requestBody'] == null) {
|
|
3288
|
+
throw new runtime.RequiredError('requestBody', 'Required parameter "requestBody" was null or undefined when calling putUserCustomAttributes().');
|
|
3289
|
+
}
|
|
3290
|
+
queryParameters = {};
|
|
3291
|
+
headerParameters = {};
|
|
3292
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3293
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/custom-attributes";
|
|
3294
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
3295
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3296
|
+
return [2 /*return*/, {
|
|
3297
|
+
path: urlPath,
|
|
3298
|
+
method: 'PUT',
|
|
3299
|
+
headers: headerParameters,
|
|
3300
|
+
query: queryParameters,
|
|
3301
|
+
body: requestParameters['requestBody'],
|
|
3302
|
+
}];
|
|
3303
|
+
});
|
|
3304
|
+
});
|
|
3305
|
+
};
|
|
3306
|
+
/**
|
|
3307
|
+
*/
|
|
3308
|
+
ProjectsServerApi.prototype.putUserCustomAttributesRaw = function (requestParameters, initOverrides) {
|
|
3309
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3310
|
+
var requestOptions, response;
|
|
3311
|
+
return __generator(this, function (_a) {
|
|
3312
|
+
switch (_a.label) {
|
|
3313
|
+
case 0: return [4 /*yield*/, this.putUserCustomAttributesRequestOpts(requestParameters)];
|
|
3314
|
+
case 1:
|
|
3315
|
+
requestOptions = _a.sent();
|
|
3316
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3317
|
+
case 2:
|
|
3318
|
+
response = _a.sent();
|
|
3319
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserObject_1.UserObjectFromJSON)(jsonValue); })];
|
|
3320
|
+
}
|
|
3321
|
+
});
|
|
3322
|
+
});
|
|
3323
|
+
};
|
|
3324
|
+
/**
|
|
3325
|
+
*/
|
|
3326
|
+
ProjectsServerApi.prototype.putUserCustomAttributes = function (requestParameters, initOverrides) {
|
|
3327
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3328
|
+
var response;
|
|
3329
|
+
return __generator(this, function (_a) {
|
|
3330
|
+
switch (_a.label) {
|
|
3331
|
+
case 0: return [4 /*yield*/, this.putUserCustomAttributesRaw(requestParameters, initOverrides)];
|
|
3332
|
+
case 1:
|
|
3333
|
+
response = _a.sent();
|
|
3334
|
+
return [4 /*yield*/, response.value()];
|
|
3335
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
3336
|
+
}
|
|
3337
|
+
});
|
|
3338
|
+
});
|
|
3339
|
+
};
|
|
3340
|
+
/**
|
|
3341
|
+
* Creates request options for searchLogLines without sending the request
|
|
3342
|
+
*/
|
|
3343
|
+
ProjectsServerApi.prototype.searchLogLinesRequestOpts = function (requestParameters) {
|
|
3344
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3345
|
+
var queryParameters, headerParameters, urlPath;
|
|
3346
|
+
return __generator(this, function (_a) {
|
|
3347
|
+
if (requestParameters['projectId'] == null) {
|
|
3348
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling searchLogLines().');
|
|
3349
|
+
}
|
|
3350
|
+
if (requestParameters['serviceId'] == null) {
|
|
3351
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling searchLogLines().');
|
|
3282
3352
|
}
|
|
3283
3353
|
if (requestParameters['query'] == null) {
|
|
3284
3354
|
throw new runtime.RequiredError('query', 'Required parameter "query" was null or undefined when calling searchLogLines().');
|
|
@@ -3620,76 +3690,6 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
3620
3690
|
});
|
|
3621
3691
|
});
|
|
3622
3692
|
};
|
|
3623
|
-
/**
|
|
3624
|
-
* Creates request options for updateContentShares1 without sending the request
|
|
3625
|
-
*/
|
|
3626
|
-
ProjectsServerApi.prototype.updateContentShares1RequestOpts = function (requestParameters) {
|
|
3627
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3628
|
-
var queryParameters, headerParameters, urlPath;
|
|
3629
|
-
return __generator(this, function (_a) {
|
|
3630
|
-
if (requestParameters['projectId'] == null) {
|
|
3631
|
-
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateContentShares1().');
|
|
3632
|
-
}
|
|
3633
|
-
if (requestParameters['userId'] == null) {
|
|
3634
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling updateContentShares1().');
|
|
3635
|
-
}
|
|
3636
|
-
if (requestParameters['contentId'] == null) {
|
|
3637
|
-
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling updateContentShares1().');
|
|
3638
|
-
}
|
|
3639
|
-
if (requestParameters['updateContentSharesRequest'] == null) {
|
|
3640
|
-
throw new runtime.RequiredError('updateContentSharesRequest', 'Required parameter "updateContentSharesRequest" was null or undefined when calling updateContentShares1().');
|
|
3641
|
-
}
|
|
3642
|
-
queryParameters = {};
|
|
3643
|
-
headerParameters = {};
|
|
3644
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
3645
|
-
urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/shares";
|
|
3646
|
-
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
3647
|
-
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
3648
|
-
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
3649
|
-
return [2 /*return*/, {
|
|
3650
|
-
path: urlPath,
|
|
3651
|
-
method: 'PUT',
|
|
3652
|
-
headers: headerParameters,
|
|
3653
|
-
query: queryParameters,
|
|
3654
|
-
body: (0, UpdateContentSharesRequest_1.UpdateContentSharesRequestToJSON)(requestParameters['updateContentSharesRequest']),
|
|
3655
|
-
}];
|
|
3656
|
-
});
|
|
3657
|
-
});
|
|
3658
|
-
};
|
|
3659
|
-
/**
|
|
3660
|
-
*/
|
|
3661
|
-
ProjectsServerApi.prototype.updateContentShares1Raw = function (requestParameters, initOverrides) {
|
|
3662
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3663
|
-
var requestOptions, response;
|
|
3664
|
-
return __generator(this, function (_a) {
|
|
3665
|
-
switch (_a.label) {
|
|
3666
|
-
case 0: return [4 /*yield*/, this.updateContentShares1RequestOpts(requestParameters)];
|
|
3667
|
-
case 1:
|
|
3668
|
-
requestOptions = _a.sent();
|
|
3669
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3670
|
-
case 2:
|
|
3671
|
-
response = _a.sent();
|
|
3672
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ContentObject_1.ContentObjectFromJSON)(jsonValue); })];
|
|
3673
|
-
}
|
|
3674
|
-
});
|
|
3675
|
-
});
|
|
3676
|
-
};
|
|
3677
|
-
/**
|
|
3678
|
-
*/
|
|
3679
|
-
ProjectsServerApi.prototype.updateContentShares1 = function (requestParameters, initOverrides) {
|
|
3680
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3681
|
-
var response;
|
|
3682
|
-
return __generator(this, function (_a) {
|
|
3683
|
-
switch (_a.label) {
|
|
3684
|
-
case 0: return [4 /*yield*/, this.updateContentShares1Raw(requestParameters, initOverrides)];
|
|
3685
|
-
case 1:
|
|
3686
|
-
response = _a.sent();
|
|
3687
|
-
return [4 /*yield*/, response.value()];
|
|
3688
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
3689
|
-
}
|
|
3690
|
-
});
|
|
3691
|
-
});
|
|
3692
|
-
};
|
|
3693
3693
|
/**
|
|
3694
3694
|
* Creates request options for updateNotificationTemplates without sending the request
|
|
3695
3695
|
*/
|