@coscine/api-client 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1803 -1614
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1803 -1614
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api/api.js +1069 -179
- package/dist/lib/Coscine.Api/api.js.map +1 -1
- package/dist/lib/apis.js +37 -37
- package/dist/lib/apis.js.map +1 -1
- package/dist/types/Coscine.Api/api.d.ts +801 -89
- package/dist/types/apis.d.ts +11 -6
- package/dist/types/index.d.ts +22 -12
- package/package.json +1 -1
- package/dist/lib/Coscine.Api.Blob/api.js +0 -301
- package/dist/lib/Coscine.Api.Blob/api.js.map +0 -1
- package/dist/lib/Coscine.Api.Blob/base.js +0 -65
- package/dist/lib/Coscine.Api.Blob/base.js.map +0 -1
- package/dist/lib/Coscine.Api.Blob/common.js +0 -153
- package/dist/lib/Coscine.Api.Blob/common.js.map +0 -1
- package/dist/lib/Coscine.Api.Blob/configuration.js +0 -43
- package/dist/lib/Coscine.Api.Blob/configuration.js.map +0 -1
- package/dist/lib/Coscine.Api.Blob/index.js +0 -32
- package/dist/lib/Coscine.Api.Blob/index.js.map +0 -1
- package/dist/lib/Coscine.Api.Tree/api.js +0 -231
- package/dist/lib/Coscine.Api.Tree/api.js.map +0 -1
- package/dist/lib/Coscine.Api.Tree/base.js +0 -65
- package/dist/lib/Coscine.Api.Tree/base.js.map +0 -1
- package/dist/lib/Coscine.Api.Tree/common.js +0 -153
- package/dist/lib/Coscine.Api.Tree/common.js.map +0 -1
- package/dist/lib/Coscine.Api.Tree/configuration.js +0 -43
- package/dist/lib/Coscine.Api.Tree/configuration.js.map +0 -1
- package/dist/lib/Coscine.Api.Tree/index.js +0 -32
- package/dist/lib/Coscine.Api.Tree/index.js.map +0 -1
- package/dist/types/Coscine.Api.Blob/api.d.ts +0 -155
- package/dist/types/Coscine.Api.Blob/base.d.ts +0 -55
- package/dist/types/Coscine.Api.Blob/common.d.ts +0 -65
- package/dist/types/Coscine.Api.Blob/configuration.d.ts +0 -83
- package/dist/types/Coscine.Api.Blob/index.d.ts +0 -13
- package/dist/types/Coscine.Api.Tree/api.d.ts +0 -122
- package/dist/types/Coscine.Api.Tree/base.d.ts +0 -55
- package/dist/types/Coscine.Api.Tree/common.d.ts +0 -65
- package/dist/types/Coscine.Api.Tree/configuration.d.ts +0 -83
- package/dist/types/Coscine.Api.Tree/index.d.ts +0 -13
|
@@ -25,8 +25,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
28
|
+
exports.ProjectMemberApi = exports.ProjectMemberApiFactory = exports.ProjectMemberApiFp = exports.ProjectMemberApiAxiosParamCreator = exports.ProjectInvitationApi = exports.ProjectInvitationApiFactory = exports.ProjectInvitationApiFp = exports.ProjectInvitationApiAxiosParamCreator = exports.ProjectApi = exports.ProjectApiFactory = exports.ProjectApiFp = exports.ProjectApiAxiosParamCreator = exports.PidApi = exports.PidApiFactory = exports.PidApiFp = exports.PidApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.MaintenanceApi = exports.MaintenanceApiFactory = exports.MaintenanceApiFp = exports.MaintenanceApiAxiosParamCreator = exports.LicenseApi = exports.LicenseApiFactory = exports.LicenseApiFp = exports.LicenseApiAxiosParamCreator = exports.LanguageApi = exports.LanguageApiFactory = exports.LanguageApiFp = exports.LanguageApiAxiosParamCreator = exports.DisciplineApi = exports.DisciplineApiFactory = exports.DisciplineApiFp = exports.DisciplineApiAxiosParamCreator = exports.BlobApi = exports.BlobApiFactory = exports.BlobApiFp = exports.BlobApiAxiosParamCreator = exports.ApplicationProfileApi = exports.ApplicationProfileApiFactory = exports.ApplicationProfileApiFp = exports.ApplicationProfileApiAxiosParamCreator = exports.TreeDataType = exports.ResourceTypeStatus = exports.RdfFormat = exports.QuotaUnit = exports.ExternalAuthenticators = exports.AcceptedLanguage = void 0;
|
|
29
|
+
exports.VisibilityApiFp = exports.VisibilityApiAxiosParamCreator = exports.UserApiTokenApi = exports.UserApiTokenApiFactory = exports.UserApiTokenApiFp = exports.UserApiTokenApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TreeApi = exports.TreeApiFactory = exports.TreeApiFp = exports.TreeApiAxiosParamCreator = exports.ToSApi = exports.ToSApiFactory = exports.ToSApiFp = exports.ToSApiAxiosParamCreator = exports.TitleApi = exports.TitleApiFactory = exports.TitleApiFp = exports.TitleApiAxiosParamCreator = exports.RoleApi = exports.RoleApiFactory = exports.RoleApiFp = exports.RoleApiAxiosParamCreator = exports.ResourceTypeApi = exports.ResourceTypeApiFactory = exports.ResourceTypeApiFp = exports.ResourceTypeApiAxiosParamCreator = exports.ResourceApi = exports.ResourceApiFactory = exports.ResourceApiFp = exports.ResourceApiAxiosParamCreator = exports.ProjectResourceTypeApi = exports.ProjectResourceTypeApiFactory = exports.ProjectResourceTypeApiFp = exports.ProjectResourceTypeApiAxiosParamCreator = exports.ProjectResourceQuotaApi = exports.ProjectResourceQuotaApiFactory = exports.ProjectResourceQuotaApiFp = exports.ProjectResourceQuotaApiAxiosParamCreator = exports.ProjectResourceApi = exports.ProjectResourceApiFactory = exports.ProjectResourceApiFp = exports.ProjectResourceApiAxiosParamCreator = exports.ProjectQuotaApi = exports.ProjectQuotaApiFactory = exports.ProjectQuotaApiFp = exports.ProjectQuotaApiAxiosParamCreator = void 0;
|
|
30
|
+
exports.VocabularyApi = exports.VocabularyApiFactory = exports.VocabularyApiFp = exports.VocabularyApiAxiosParamCreator = exports.VisibilityApi = exports.VisibilityApiFactory = void 0;
|
|
30
31
|
const axios_1 = __importDefault(require("axios"));
|
|
31
32
|
// Some imports not used depending on template conditions
|
|
32
33
|
// @ts-ignore
|
|
@@ -87,6 +88,16 @@ var ResourceTypeStatus;
|
|
|
87
88
|
ResourceTypeStatus["Hidden"] = "hidden";
|
|
88
89
|
ResourceTypeStatus["Active"] = "active";
|
|
89
90
|
})(ResourceTypeStatus = exports.ResourceTypeStatus || (exports.ResourceTypeStatus = {}));
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @export
|
|
94
|
+
* @enum {string}
|
|
95
|
+
*/
|
|
96
|
+
var TreeDataType;
|
|
97
|
+
(function (TreeDataType) {
|
|
98
|
+
TreeDataType["Tree"] = "Tree";
|
|
99
|
+
TreeDataType["Leaf"] = "Leaf";
|
|
100
|
+
})(TreeDataType = exports.TreeDataType || (exports.TreeDataType = {}));
|
|
90
101
|
/**
|
|
91
102
|
* ApplicationProfileApi - axios parameter creator
|
|
92
103
|
* @export
|
|
@@ -465,18 +476,26 @@ class ApplicationProfileApi extends base_1.BaseAPI {
|
|
|
465
476
|
}
|
|
466
477
|
exports.ApplicationProfileApi = ApplicationProfileApi;
|
|
467
478
|
/**
|
|
468
|
-
*
|
|
479
|
+
* BlobApi - axios parameter creator
|
|
469
480
|
* @export
|
|
470
481
|
*/
|
|
471
|
-
const
|
|
482
|
+
const BlobApiAxiosParamCreator = function (configuration) {
|
|
472
483
|
return {
|
|
473
484
|
/**
|
|
474
485
|
*
|
|
486
|
+
* @param {string} projectId
|
|
487
|
+
* @param {string} resourceId
|
|
475
488
|
* @param {*} [options] Override http request option.
|
|
476
489
|
* @throws {RequiredError}
|
|
477
490
|
*/
|
|
478
|
-
|
|
479
|
-
|
|
491
|
+
apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions: (projectId, resourceId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
492
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
493
|
+
(0, common_1.assertParamExists)('apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions', 'projectId', projectId);
|
|
494
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
495
|
+
(0, common_1.assertParamExists)('apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions', 'resourceId', resourceId);
|
|
496
|
+
const localVarPath = `/api/v2/projects/{projectId}/resources/{resourceId}/blobs`
|
|
497
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
498
|
+
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
480
499
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
481
500
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
482
501
|
let baseOptions;
|
|
@@ -498,29 +517,44 @@ const DisciplineApiAxiosParamCreator = function (configuration) {
|
|
|
498
517
|
}),
|
|
499
518
|
/**
|
|
500
519
|
*
|
|
501
|
-
* @param {string}
|
|
520
|
+
* @param {string} projectId
|
|
521
|
+
* @param {string} resourceId
|
|
522
|
+
* @param {string} key
|
|
523
|
+
* @param {any} [file]
|
|
502
524
|
* @param {*} [options] Override http request option.
|
|
503
525
|
* @throws {RequiredError}
|
|
504
526
|
*/
|
|
505
|
-
|
|
506
|
-
// verify required parameter '
|
|
507
|
-
(0, common_1.assertParamExists)('
|
|
508
|
-
|
|
509
|
-
|
|
527
|
+
createBlob: (projectId, resourceId, key, file, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
528
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
529
|
+
(0, common_1.assertParamExists)('createBlob', 'projectId', projectId);
|
|
530
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
531
|
+
(0, common_1.assertParamExists)('createBlob', 'resourceId', resourceId);
|
|
532
|
+
// verify required parameter 'key' is not null or undefined
|
|
533
|
+
(0, common_1.assertParamExists)('createBlob', 'key', key);
|
|
534
|
+
const localVarPath = `/api/v2/projects/{projectId}/resources/{resourceId}/blobs/{key}`
|
|
535
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
536
|
+
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
|
|
537
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
510
538
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
511
539
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
512
540
|
let baseOptions;
|
|
513
541
|
if (configuration) {
|
|
514
542
|
baseOptions = configuration.baseOptions;
|
|
515
543
|
}
|
|
516
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
544
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
517
545
|
const localVarHeaderParameter = {};
|
|
518
546
|
const localVarQueryParameter = {};
|
|
547
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
519
548
|
// authentication Bearer required
|
|
520
549
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
550
|
+
if (file !== undefined) {
|
|
551
|
+
localVarFormParams.append('file', file);
|
|
552
|
+
}
|
|
553
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
521
554
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
522
555
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
523
556
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
557
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
524
558
|
return {
|
|
525
559
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
526
560
|
options: localVarRequestOptions,
|
|
@@ -528,37 +562,120 @@ const DisciplineApiAxiosParamCreator = function (configuration) {
|
|
|
528
562
|
}),
|
|
529
563
|
/**
|
|
530
564
|
*
|
|
531
|
-
* @param {
|
|
532
|
-
* @param {
|
|
533
|
-
* @param {string}
|
|
565
|
+
* @param {string} projectId
|
|
566
|
+
* @param {string} resourceId
|
|
567
|
+
* @param {string} key
|
|
534
568
|
* @param {*} [options] Override http request option.
|
|
535
569
|
* @throws {RequiredError}
|
|
536
570
|
*/
|
|
537
|
-
|
|
538
|
-
|
|
571
|
+
deleteBlob: (projectId, resourceId, key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
572
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
573
|
+
(0, common_1.assertParamExists)('deleteBlob', 'projectId', projectId);
|
|
574
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
575
|
+
(0, common_1.assertParamExists)('deleteBlob', 'resourceId', resourceId);
|
|
576
|
+
// verify required parameter 'key' is not null or undefined
|
|
577
|
+
(0, common_1.assertParamExists)('deleteBlob', 'key', key);
|
|
578
|
+
const localVarPath = `/api/v2/projects/{projectId}/resources/{resourceId}/blobs/{key}`
|
|
579
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
580
|
+
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
|
|
581
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
539
582
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
540
583
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
541
584
|
let baseOptions;
|
|
542
585
|
if (configuration) {
|
|
543
586
|
baseOptions = configuration.baseOptions;
|
|
544
587
|
}
|
|
545
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
588
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
546
589
|
const localVarHeaderParameter = {};
|
|
547
590
|
const localVarQueryParameter = {};
|
|
548
591
|
// authentication Bearer required
|
|
549
592
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
550
|
-
|
|
551
|
-
|
|
593
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
594
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
595
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
596
|
+
return {
|
|
597
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
598
|
+
options: localVarRequestOptions,
|
|
599
|
+
};
|
|
600
|
+
}),
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @param {string} projectId
|
|
604
|
+
* @param {string} resourceId
|
|
605
|
+
* @param {string} key
|
|
606
|
+
* @param {*} [options] Override http request option.
|
|
607
|
+
* @throws {RequiredError}
|
|
608
|
+
*/
|
|
609
|
+
getBlob: (projectId, resourceId, key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
610
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
611
|
+
(0, common_1.assertParamExists)('getBlob', 'projectId', projectId);
|
|
612
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
613
|
+
(0, common_1.assertParamExists)('getBlob', 'resourceId', resourceId);
|
|
614
|
+
// verify required parameter 'key' is not null or undefined
|
|
615
|
+
(0, common_1.assertParamExists)('getBlob', 'key', key);
|
|
616
|
+
const localVarPath = `/api/v2/projects/{projectId}/resources/{resourceId}/blobs/{key}`
|
|
617
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
618
|
+
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
|
|
619
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
620
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
621
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
622
|
+
let baseOptions;
|
|
623
|
+
if (configuration) {
|
|
624
|
+
baseOptions = configuration.baseOptions;
|
|
552
625
|
}
|
|
553
|
-
|
|
554
|
-
|
|
626
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
627
|
+
const localVarHeaderParameter = {};
|
|
628
|
+
const localVarQueryParameter = {};
|
|
629
|
+
// authentication Bearer required
|
|
630
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
631
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
632
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
633
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
634
|
+
return {
|
|
635
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
636
|
+
options: localVarRequestOptions,
|
|
637
|
+
};
|
|
638
|
+
}),
|
|
639
|
+
/**
|
|
640
|
+
*
|
|
641
|
+
* @param {string} projectId
|
|
642
|
+
* @param {string} resourceId
|
|
643
|
+
* @param {string} key
|
|
644
|
+
* @param {any} [file]
|
|
645
|
+
* @param {*} [options] Override http request option.
|
|
646
|
+
* @throws {RequiredError}
|
|
647
|
+
*/
|
|
648
|
+
updateBlob: (projectId, resourceId, key, file, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
649
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
650
|
+
(0, common_1.assertParamExists)('updateBlob', 'projectId', projectId);
|
|
651
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
652
|
+
(0, common_1.assertParamExists)('updateBlob', 'resourceId', resourceId);
|
|
653
|
+
// verify required parameter 'key' is not null or undefined
|
|
654
|
+
(0, common_1.assertParamExists)('updateBlob', 'key', key);
|
|
655
|
+
const localVarPath = `/api/v2/projects/{projectId}/resources/{resourceId}/blobs/{key}`
|
|
656
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
657
|
+
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
|
|
658
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
659
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
660
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
661
|
+
let baseOptions;
|
|
662
|
+
if (configuration) {
|
|
663
|
+
baseOptions = configuration.baseOptions;
|
|
555
664
|
}
|
|
556
|
-
|
|
557
|
-
|
|
665
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
666
|
+
const localVarHeaderParameter = {};
|
|
667
|
+
const localVarQueryParameter = {};
|
|
668
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
669
|
+
// authentication Bearer required
|
|
670
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
671
|
+
if (file !== undefined) {
|
|
672
|
+
localVarFormParams.append('file', file);
|
|
558
673
|
}
|
|
674
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
559
675
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
560
676
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
561
677
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
678
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
562
679
|
return {
|
|
563
680
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
564
681
|
options: localVarRequestOptions,
|
|
@@ -566,145 +683,237 @@ const DisciplineApiAxiosParamCreator = function (configuration) {
|
|
|
566
683
|
}),
|
|
567
684
|
};
|
|
568
685
|
};
|
|
569
|
-
exports.
|
|
686
|
+
exports.BlobApiAxiosParamCreator = BlobApiAxiosParamCreator;
|
|
570
687
|
/**
|
|
571
|
-
*
|
|
688
|
+
* BlobApi - functional programming interface
|
|
572
689
|
* @export
|
|
573
690
|
*/
|
|
574
|
-
const
|
|
575
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
691
|
+
const BlobApiFp = function (configuration) {
|
|
692
|
+
const localVarAxiosParamCreator = (0, exports.BlobApiAxiosParamCreator)(configuration);
|
|
576
693
|
return {
|
|
577
694
|
/**
|
|
578
695
|
*
|
|
696
|
+
* @param {string} projectId
|
|
697
|
+
* @param {string} resourceId
|
|
579
698
|
* @param {*} [options] Override http request option.
|
|
580
699
|
* @throws {RequiredError}
|
|
581
700
|
*/
|
|
582
|
-
|
|
701
|
+
apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions(projectId, resourceId, options) {
|
|
583
702
|
return __awaiter(this, void 0, void 0, function* () {
|
|
584
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
703
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions(projectId, resourceId, options);
|
|
585
704
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
586
705
|
});
|
|
587
706
|
},
|
|
588
707
|
/**
|
|
589
708
|
*
|
|
590
|
-
* @param {string}
|
|
709
|
+
* @param {string} projectId
|
|
710
|
+
* @param {string} resourceId
|
|
711
|
+
* @param {string} key
|
|
712
|
+
* @param {any} [file]
|
|
591
713
|
* @param {*} [options] Override http request option.
|
|
592
714
|
* @throws {RequiredError}
|
|
593
715
|
*/
|
|
594
|
-
|
|
716
|
+
createBlob(projectId, resourceId, key, file, options) {
|
|
595
717
|
return __awaiter(this, void 0, void 0, function* () {
|
|
596
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
718
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBlob(projectId, resourceId, key, file, options);
|
|
597
719
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
598
720
|
});
|
|
599
721
|
},
|
|
600
722
|
/**
|
|
601
723
|
*
|
|
602
|
-
* @param {
|
|
603
|
-
* @param {
|
|
604
|
-
* @param {string}
|
|
724
|
+
* @param {string} projectId
|
|
725
|
+
* @param {string} resourceId
|
|
726
|
+
* @param {string} key
|
|
605
727
|
* @param {*} [options] Override http request option.
|
|
606
728
|
* @throws {RequiredError}
|
|
607
729
|
*/
|
|
608
|
-
|
|
730
|
+
deleteBlob(projectId, resourceId, key, options) {
|
|
609
731
|
return __awaiter(this, void 0, void 0, function* () {
|
|
610
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
732
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBlob(projectId, resourceId, key, options);
|
|
733
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
734
|
+
});
|
|
735
|
+
},
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @param {string} projectId
|
|
739
|
+
* @param {string} resourceId
|
|
740
|
+
* @param {string} key
|
|
741
|
+
* @param {*} [options] Override http request option.
|
|
742
|
+
* @throws {RequiredError}
|
|
743
|
+
*/
|
|
744
|
+
getBlob(projectId, resourceId, key, options) {
|
|
745
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
746
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBlob(projectId, resourceId, key, options);
|
|
747
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
748
|
+
});
|
|
749
|
+
},
|
|
750
|
+
/**
|
|
751
|
+
*
|
|
752
|
+
* @param {string} projectId
|
|
753
|
+
* @param {string} resourceId
|
|
754
|
+
* @param {string} key
|
|
755
|
+
* @param {any} [file]
|
|
756
|
+
* @param {*} [options] Override http request option.
|
|
757
|
+
* @throws {RequiredError}
|
|
758
|
+
*/
|
|
759
|
+
updateBlob(projectId, resourceId, key, file, options) {
|
|
760
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
761
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBlob(projectId, resourceId, key, file, options);
|
|
611
762
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
612
763
|
});
|
|
613
764
|
},
|
|
614
765
|
};
|
|
615
766
|
};
|
|
616
|
-
exports.
|
|
767
|
+
exports.BlobApiFp = BlobApiFp;
|
|
617
768
|
/**
|
|
618
|
-
*
|
|
769
|
+
* BlobApi - factory interface
|
|
619
770
|
* @export
|
|
620
771
|
*/
|
|
621
|
-
const
|
|
622
|
-
const localVarFp = (0, exports.
|
|
772
|
+
const BlobApiFactory = function (configuration, basePath, axios) {
|
|
773
|
+
const localVarFp = (0, exports.BlobApiFp)(configuration);
|
|
623
774
|
return {
|
|
624
775
|
/**
|
|
625
776
|
*
|
|
777
|
+
* @param {string} projectId
|
|
778
|
+
* @param {string} resourceId
|
|
626
779
|
* @param {*} [options] Override http request option.
|
|
627
780
|
* @throws {RequiredError}
|
|
628
781
|
*/
|
|
629
|
-
|
|
630
|
-
return localVarFp.
|
|
782
|
+
apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions(projectId, resourceId, options) {
|
|
783
|
+
return localVarFp.apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions(projectId, resourceId, options).then((request) => request(axios, basePath));
|
|
631
784
|
},
|
|
632
785
|
/**
|
|
633
786
|
*
|
|
634
|
-
* @param {string}
|
|
787
|
+
* @param {string} projectId
|
|
788
|
+
* @param {string} resourceId
|
|
789
|
+
* @param {string} key
|
|
790
|
+
* @param {any} [file]
|
|
635
791
|
* @param {*} [options] Override http request option.
|
|
636
792
|
* @throws {RequiredError}
|
|
637
793
|
*/
|
|
638
|
-
|
|
639
|
-
return localVarFp.
|
|
794
|
+
createBlob(projectId, resourceId, key, file, options) {
|
|
795
|
+
return localVarFp.createBlob(projectId, resourceId, key, file, options).then((request) => request(axios, basePath));
|
|
640
796
|
},
|
|
641
797
|
/**
|
|
642
798
|
*
|
|
643
|
-
* @param {
|
|
644
|
-
* @param {
|
|
645
|
-
* @param {string}
|
|
799
|
+
* @param {string} projectId
|
|
800
|
+
* @param {string} resourceId
|
|
801
|
+
* @param {string} key
|
|
646
802
|
* @param {*} [options] Override http request option.
|
|
647
803
|
* @throws {RequiredError}
|
|
648
804
|
*/
|
|
649
|
-
|
|
650
|
-
return localVarFp.
|
|
805
|
+
deleteBlob(projectId, resourceId, key, options) {
|
|
806
|
+
return localVarFp.deleteBlob(projectId, resourceId, key, options).then((request) => request(axios, basePath));
|
|
807
|
+
},
|
|
808
|
+
/**
|
|
809
|
+
*
|
|
810
|
+
* @param {string} projectId
|
|
811
|
+
* @param {string} resourceId
|
|
812
|
+
* @param {string} key
|
|
813
|
+
* @param {*} [options] Override http request option.
|
|
814
|
+
* @throws {RequiredError}
|
|
815
|
+
*/
|
|
816
|
+
getBlob(projectId, resourceId, key, options) {
|
|
817
|
+
return localVarFp.getBlob(projectId, resourceId, key, options).then((request) => request(axios, basePath));
|
|
818
|
+
},
|
|
819
|
+
/**
|
|
820
|
+
*
|
|
821
|
+
* @param {string} projectId
|
|
822
|
+
* @param {string} resourceId
|
|
823
|
+
* @param {string} key
|
|
824
|
+
* @param {any} [file]
|
|
825
|
+
* @param {*} [options] Override http request option.
|
|
826
|
+
* @throws {RequiredError}
|
|
827
|
+
*/
|
|
828
|
+
updateBlob(projectId, resourceId, key, file, options) {
|
|
829
|
+
return localVarFp.updateBlob(projectId, resourceId, key, file, options).then((request) => request(axios, basePath));
|
|
651
830
|
},
|
|
652
831
|
};
|
|
653
832
|
};
|
|
654
|
-
exports.
|
|
833
|
+
exports.BlobApiFactory = BlobApiFactory;
|
|
655
834
|
/**
|
|
656
|
-
*
|
|
835
|
+
* BlobApi - object-oriented interface
|
|
657
836
|
* @export
|
|
658
|
-
* @class
|
|
837
|
+
* @class BlobApi
|
|
659
838
|
* @extends {BaseAPI}
|
|
660
839
|
*/
|
|
661
|
-
class
|
|
840
|
+
class BlobApi extends base_1.BaseAPI {
|
|
662
841
|
/**
|
|
663
842
|
*
|
|
843
|
+
* @param {string} projectId
|
|
844
|
+
* @param {string} resourceId
|
|
664
845
|
* @param {*} [options] Override http request option.
|
|
665
846
|
* @throws {RequiredError}
|
|
666
|
-
* @memberof
|
|
847
|
+
* @memberof BlobApi
|
|
667
848
|
*/
|
|
668
|
-
|
|
669
|
-
return (0, exports.
|
|
849
|
+
apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions(projectId, resourceId, options) {
|
|
850
|
+
return (0, exports.BlobApiFp)(this.configuration).apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions(projectId, resourceId, options).then((request) => request(this.axios, this.basePath));
|
|
670
851
|
}
|
|
671
852
|
/**
|
|
672
853
|
*
|
|
673
|
-
* @param {string}
|
|
854
|
+
* @param {string} projectId
|
|
855
|
+
* @param {string} resourceId
|
|
856
|
+
* @param {string} key
|
|
857
|
+
* @param {any} [file]
|
|
674
858
|
* @param {*} [options] Override http request option.
|
|
675
859
|
* @throws {RequiredError}
|
|
676
|
-
* @memberof
|
|
860
|
+
* @memberof BlobApi
|
|
677
861
|
*/
|
|
678
|
-
|
|
679
|
-
return (0, exports.
|
|
862
|
+
createBlob(projectId, resourceId, key, file, options) {
|
|
863
|
+
return (0, exports.BlobApiFp)(this.configuration).createBlob(projectId, resourceId, key, file, options).then((request) => request(this.axios, this.basePath));
|
|
680
864
|
}
|
|
681
865
|
/**
|
|
682
866
|
*
|
|
683
|
-
* @param {
|
|
684
|
-
* @param {
|
|
685
|
-
* @param {string}
|
|
867
|
+
* @param {string} projectId
|
|
868
|
+
* @param {string} resourceId
|
|
869
|
+
* @param {string} key
|
|
686
870
|
* @param {*} [options] Override http request option.
|
|
687
871
|
* @throws {RequiredError}
|
|
688
|
-
* @memberof
|
|
872
|
+
* @memberof BlobApi
|
|
689
873
|
*/
|
|
690
|
-
|
|
691
|
-
return (0, exports.
|
|
874
|
+
deleteBlob(projectId, resourceId, key, options) {
|
|
875
|
+
return (0, exports.BlobApiFp)(this.configuration).deleteBlob(projectId, resourceId, key, options).then((request) => request(this.axios, this.basePath));
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
*
|
|
879
|
+
* @param {string} projectId
|
|
880
|
+
* @param {string} resourceId
|
|
881
|
+
* @param {string} key
|
|
882
|
+
* @param {*} [options] Override http request option.
|
|
883
|
+
* @throws {RequiredError}
|
|
884
|
+
* @memberof BlobApi
|
|
885
|
+
*/
|
|
886
|
+
getBlob(projectId, resourceId, key, options) {
|
|
887
|
+
return (0, exports.BlobApiFp)(this.configuration).getBlob(projectId, resourceId, key, options).then((request) => request(this.axios, this.basePath));
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
*
|
|
891
|
+
* @param {string} projectId
|
|
892
|
+
* @param {string} resourceId
|
|
893
|
+
* @param {string} key
|
|
894
|
+
* @param {any} [file]
|
|
895
|
+
* @param {*} [options] Override http request option.
|
|
896
|
+
* @throws {RequiredError}
|
|
897
|
+
* @memberof BlobApi
|
|
898
|
+
*/
|
|
899
|
+
updateBlob(projectId, resourceId, key, file, options) {
|
|
900
|
+
return (0, exports.BlobApiFp)(this.configuration).updateBlob(projectId, resourceId, key, file, options).then((request) => request(this.axios, this.basePath));
|
|
692
901
|
}
|
|
693
902
|
}
|
|
694
|
-
exports.
|
|
903
|
+
exports.BlobApi = BlobApi;
|
|
695
904
|
/**
|
|
696
|
-
*
|
|
905
|
+
* DisciplineApi - axios parameter creator
|
|
697
906
|
* @export
|
|
698
907
|
*/
|
|
699
|
-
const
|
|
908
|
+
const DisciplineApiAxiosParamCreator = function (configuration) {
|
|
700
909
|
return {
|
|
701
910
|
/**
|
|
702
911
|
*
|
|
703
912
|
* @param {*} [options] Override http request option.
|
|
704
913
|
* @throws {RequiredError}
|
|
705
914
|
*/
|
|
706
|
-
|
|
707
|
-
const localVarPath = `/api/v2/
|
|
915
|
+
apiV2DisciplinesOptions: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
916
|
+
const localVarPath = `/api/v2/disciplines`;
|
|
708
917
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
709
918
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
710
919
|
let baseOptions;
|
|
@@ -726,15 +935,15 @@ const LanguageApiAxiosParamCreator = function (configuration) {
|
|
|
726
935
|
}),
|
|
727
936
|
/**
|
|
728
937
|
*
|
|
729
|
-
* @param {string}
|
|
938
|
+
* @param {string} disciplineId
|
|
730
939
|
* @param {*} [options] Override http request option.
|
|
731
940
|
* @throws {RequiredError}
|
|
732
941
|
*/
|
|
733
|
-
|
|
734
|
-
// verify required parameter '
|
|
735
|
-
(0, common_1.assertParamExists)('
|
|
736
|
-
const localVarPath = `/api/v2/
|
|
737
|
-
.replace(`{${"
|
|
942
|
+
getDiscipline: (disciplineId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
943
|
+
// verify required parameter 'disciplineId' is not null or undefined
|
|
944
|
+
(0, common_1.assertParamExists)('getDiscipline', 'disciplineId', disciplineId);
|
|
945
|
+
const localVarPath = `/api/v2/disciplines/{disciplineId}`
|
|
946
|
+
.replace(`{${"disciplineId"}}`, encodeURIComponent(String(disciplineId)));
|
|
738
947
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
739
948
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
740
949
|
let baseOptions;
|
|
@@ -762,8 +971,8 @@ const LanguageApiAxiosParamCreator = function (configuration) {
|
|
|
762
971
|
* @param {*} [options] Override http request option.
|
|
763
972
|
* @throws {RequiredError}
|
|
764
973
|
*/
|
|
765
|
-
|
|
766
|
-
const localVarPath = `/api/v2/
|
|
974
|
+
getDisciplines: (pageNumber, pageSize, orderBy, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
975
|
+
const localVarPath = `/api/v2/disciplines`;
|
|
767
976
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
768
977
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
769
978
|
let baseOptions;
|
|
@@ -794,22 +1003,250 @@ const LanguageApiAxiosParamCreator = function (configuration) {
|
|
|
794
1003
|
}),
|
|
795
1004
|
};
|
|
796
1005
|
};
|
|
797
|
-
exports.
|
|
1006
|
+
exports.DisciplineApiAxiosParamCreator = DisciplineApiAxiosParamCreator;
|
|
798
1007
|
/**
|
|
799
|
-
*
|
|
1008
|
+
* DisciplineApi - functional programming interface
|
|
800
1009
|
* @export
|
|
801
1010
|
*/
|
|
802
|
-
const
|
|
803
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
1011
|
+
const DisciplineApiFp = function (configuration) {
|
|
1012
|
+
const localVarAxiosParamCreator = (0, exports.DisciplineApiAxiosParamCreator)(configuration);
|
|
804
1013
|
return {
|
|
805
1014
|
/**
|
|
806
1015
|
*
|
|
807
1016
|
* @param {*} [options] Override http request option.
|
|
808
1017
|
* @throws {RequiredError}
|
|
809
1018
|
*/
|
|
810
|
-
|
|
1019
|
+
apiV2DisciplinesOptions(options) {
|
|
811
1020
|
return __awaiter(this, void 0, void 0, function* () {
|
|
812
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1021
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV2DisciplinesOptions(options);
|
|
1022
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1023
|
+
});
|
|
1024
|
+
},
|
|
1025
|
+
/**
|
|
1026
|
+
*
|
|
1027
|
+
* @param {string} disciplineId
|
|
1028
|
+
* @param {*} [options] Override http request option.
|
|
1029
|
+
* @throws {RequiredError}
|
|
1030
|
+
*/
|
|
1031
|
+
getDiscipline(disciplineId, options) {
|
|
1032
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1033
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDiscipline(disciplineId, options);
|
|
1034
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1035
|
+
});
|
|
1036
|
+
},
|
|
1037
|
+
/**
|
|
1038
|
+
*
|
|
1039
|
+
* @param {number} [pageNumber]
|
|
1040
|
+
* @param {number} [pageSize]
|
|
1041
|
+
* @param {string} [orderBy]
|
|
1042
|
+
* @param {*} [options] Override http request option.
|
|
1043
|
+
* @throws {RequiredError}
|
|
1044
|
+
*/
|
|
1045
|
+
getDisciplines(pageNumber, pageSize, orderBy, options) {
|
|
1046
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1047
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDisciplines(pageNumber, pageSize, orderBy, options);
|
|
1048
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1049
|
+
});
|
|
1050
|
+
},
|
|
1051
|
+
};
|
|
1052
|
+
};
|
|
1053
|
+
exports.DisciplineApiFp = DisciplineApiFp;
|
|
1054
|
+
/**
|
|
1055
|
+
* DisciplineApi - factory interface
|
|
1056
|
+
* @export
|
|
1057
|
+
*/
|
|
1058
|
+
const DisciplineApiFactory = function (configuration, basePath, axios) {
|
|
1059
|
+
const localVarFp = (0, exports.DisciplineApiFp)(configuration);
|
|
1060
|
+
return {
|
|
1061
|
+
/**
|
|
1062
|
+
*
|
|
1063
|
+
* @param {*} [options] Override http request option.
|
|
1064
|
+
* @throws {RequiredError}
|
|
1065
|
+
*/
|
|
1066
|
+
apiV2DisciplinesOptions(options) {
|
|
1067
|
+
return localVarFp.apiV2DisciplinesOptions(options).then((request) => request(axios, basePath));
|
|
1068
|
+
},
|
|
1069
|
+
/**
|
|
1070
|
+
*
|
|
1071
|
+
* @param {string} disciplineId
|
|
1072
|
+
* @param {*} [options] Override http request option.
|
|
1073
|
+
* @throws {RequiredError}
|
|
1074
|
+
*/
|
|
1075
|
+
getDiscipline(disciplineId, options) {
|
|
1076
|
+
return localVarFp.getDiscipline(disciplineId, options).then((request) => request(axios, basePath));
|
|
1077
|
+
},
|
|
1078
|
+
/**
|
|
1079
|
+
*
|
|
1080
|
+
* @param {number} [pageNumber]
|
|
1081
|
+
* @param {number} [pageSize]
|
|
1082
|
+
* @param {string} [orderBy]
|
|
1083
|
+
* @param {*} [options] Override http request option.
|
|
1084
|
+
* @throws {RequiredError}
|
|
1085
|
+
*/
|
|
1086
|
+
getDisciplines(pageNumber, pageSize, orderBy, options) {
|
|
1087
|
+
return localVarFp.getDisciplines(pageNumber, pageSize, orderBy, options).then((request) => request(axios, basePath));
|
|
1088
|
+
},
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
exports.DisciplineApiFactory = DisciplineApiFactory;
|
|
1092
|
+
/**
|
|
1093
|
+
* DisciplineApi - object-oriented interface
|
|
1094
|
+
* @export
|
|
1095
|
+
* @class DisciplineApi
|
|
1096
|
+
* @extends {BaseAPI}
|
|
1097
|
+
*/
|
|
1098
|
+
class DisciplineApi extends base_1.BaseAPI {
|
|
1099
|
+
/**
|
|
1100
|
+
*
|
|
1101
|
+
* @param {*} [options] Override http request option.
|
|
1102
|
+
* @throws {RequiredError}
|
|
1103
|
+
* @memberof DisciplineApi
|
|
1104
|
+
*/
|
|
1105
|
+
apiV2DisciplinesOptions(options) {
|
|
1106
|
+
return (0, exports.DisciplineApiFp)(this.configuration).apiV2DisciplinesOptions(options).then((request) => request(this.axios, this.basePath));
|
|
1107
|
+
}
|
|
1108
|
+
/**
|
|
1109
|
+
*
|
|
1110
|
+
* @param {string} disciplineId
|
|
1111
|
+
* @param {*} [options] Override http request option.
|
|
1112
|
+
* @throws {RequiredError}
|
|
1113
|
+
* @memberof DisciplineApi
|
|
1114
|
+
*/
|
|
1115
|
+
getDiscipline(disciplineId, options) {
|
|
1116
|
+
return (0, exports.DisciplineApiFp)(this.configuration).getDiscipline(disciplineId, options).then((request) => request(this.axios, this.basePath));
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
*
|
|
1120
|
+
* @param {number} [pageNumber]
|
|
1121
|
+
* @param {number} [pageSize]
|
|
1122
|
+
* @param {string} [orderBy]
|
|
1123
|
+
* @param {*} [options] Override http request option.
|
|
1124
|
+
* @throws {RequiredError}
|
|
1125
|
+
* @memberof DisciplineApi
|
|
1126
|
+
*/
|
|
1127
|
+
getDisciplines(pageNumber, pageSize, orderBy, options) {
|
|
1128
|
+
return (0, exports.DisciplineApiFp)(this.configuration).getDisciplines(pageNumber, pageSize, orderBy, options).then((request) => request(this.axios, this.basePath));
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
exports.DisciplineApi = DisciplineApi;
|
|
1132
|
+
/**
|
|
1133
|
+
* LanguageApi - axios parameter creator
|
|
1134
|
+
* @export
|
|
1135
|
+
*/
|
|
1136
|
+
const LanguageApiAxiosParamCreator = function (configuration) {
|
|
1137
|
+
return {
|
|
1138
|
+
/**
|
|
1139
|
+
*
|
|
1140
|
+
* @param {*} [options] Override http request option.
|
|
1141
|
+
* @throws {RequiredError}
|
|
1142
|
+
*/
|
|
1143
|
+
apiV2LanguagesOptions: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1144
|
+
const localVarPath = `/api/v2/languages`;
|
|
1145
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1146
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1147
|
+
let baseOptions;
|
|
1148
|
+
if (configuration) {
|
|
1149
|
+
baseOptions = configuration.baseOptions;
|
|
1150
|
+
}
|
|
1151
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'OPTIONS' }, baseOptions), options);
|
|
1152
|
+
const localVarHeaderParameter = {};
|
|
1153
|
+
const localVarQueryParameter = {};
|
|
1154
|
+
// authentication Bearer required
|
|
1155
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1156
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1157
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1158
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1159
|
+
return {
|
|
1160
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1161
|
+
options: localVarRequestOptions,
|
|
1162
|
+
};
|
|
1163
|
+
}),
|
|
1164
|
+
/**
|
|
1165
|
+
*
|
|
1166
|
+
* @param {string} languageId
|
|
1167
|
+
* @param {*} [options] Override http request option.
|
|
1168
|
+
* @throws {RequiredError}
|
|
1169
|
+
*/
|
|
1170
|
+
getLanguage: (languageId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1171
|
+
// verify required parameter 'languageId' is not null or undefined
|
|
1172
|
+
(0, common_1.assertParamExists)('getLanguage', 'languageId', languageId);
|
|
1173
|
+
const localVarPath = `/api/v2/languages/{languageId}`
|
|
1174
|
+
.replace(`{${"languageId"}}`, encodeURIComponent(String(languageId)));
|
|
1175
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1176
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1177
|
+
let baseOptions;
|
|
1178
|
+
if (configuration) {
|
|
1179
|
+
baseOptions = configuration.baseOptions;
|
|
1180
|
+
}
|
|
1181
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1182
|
+
const localVarHeaderParameter = {};
|
|
1183
|
+
const localVarQueryParameter = {};
|
|
1184
|
+
// authentication Bearer required
|
|
1185
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1186
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1187
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1188
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1189
|
+
return {
|
|
1190
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1191
|
+
options: localVarRequestOptions,
|
|
1192
|
+
};
|
|
1193
|
+
}),
|
|
1194
|
+
/**
|
|
1195
|
+
*
|
|
1196
|
+
* @param {number} [pageNumber]
|
|
1197
|
+
* @param {number} [pageSize]
|
|
1198
|
+
* @param {string} [orderBy]
|
|
1199
|
+
* @param {*} [options] Override http request option.
|
|
1200
|
+
* @throws {RequiredError}
|
|
1201
|
+
*/
|
|
1202
|
+
getLanguages: (pageNumber, pageSize, orderBy, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1203
|
+
const localVarPath = `/api/v2/languages`;
|
|
1204
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1205
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1206
|
+
let baseOptions;
|
|
1207
|
+
if (configuration) {
|
|
1208
|
+
baseOptions = configuration.baseOptions;
|
|
1209
|
+
}
|
|
1210
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1211
|
+
const localVarHeaderParameter = {};
|
|
1212
|
+
const localVarQueryParameter = {};
|
|
1213
|
+
// authentication Bearer required
|
|
1214
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1215
|
+
if (pageNumber !== undefined) {
|
|
1216
|
+
localVarQueryParameter['PageNumber'] = pageNumber;
|
|
1217
|
+
}
|
|
1218
|
+
if (pageSize !== undefined) {
|
|
1219
|
+
localVarQueryParameter['PageSize'] = pageSize;
|
|
1220
|
+
}
|
|
1221
|
+
if (orderBy !== undefined) {
|
|
1222
|
+
localVarQueryParameter['OrderBy'] = orderBy;
|
|
1223
|
+
}
|
|
1224
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1225
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1226
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1227
|
+
return {
|
|
1228
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1229
|
+
options: localVarRequestOptions,
|
|
1230
|
+
};
|
|
1231
|
+
}),
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
exports.LanguageApiAxiosParamCreator = LanguageApiAxiosParamCreator;
|
|
1235
|
+
/**
|
|
1236
|
+
* LanguageApi - functional programming interface
|
|
1237
|
+
* @export
|
|
1238
|
+
*/
|
|
1239
|
+
const LanguageApiFp = function (configuration) {
|
|
1240
|
+
const localVarAxiosParamCreator = (0, exports.LanguageApiAxiosParamCreator)(configuration);
|
|
1241
|
+
return {
|
|
1242
|
+
/**
|
|
1243
|
+
*
|
|
1244
|
+
* @param {*} [options] Override http request option.
|
|
1245
|
+
* @throws {RequiredError}
|
|
1246
|
+
*/
|
|
1247
|
+
apiV2LanguagesOptions(options) {
|
|
1248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1249
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV2LanguagesOptions(options);
|
|
813
1250
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
814
1251
|
});
|
|
815
1252
|
},
|
|
@@ -5308,14 +5745,320 @@ const ToSApiAxiosParamCreator = function (configuration) {
|
|
|
5308
5745
|
if (configuration) {
|
|
5309
5746
|
baseOptions = configuration.baseOptions;
|
|
5310
5747
|
}
|
|
5311
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5748
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5749
|
+
const localVarHeaderParameter = {};
|
|
5750
|
+
const localVarQueryParameter = {};
|
|
5751
|
+
// authentication Bearer required
|
|
5752
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5753
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5754
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5755
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5756
|
+
return {
|
|
5757
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5758
|
+
options: localVarRequestOptions,
|
|
5759
|
+
};
|
|
5760
|
+
}),
|
|
5761
|
+
};
|
|
5762
|
+
};
|
|
5763
|
+
exports.ToSApiAxiosParamCreator = ToSApiAxiosParamCreator;
|
|
5764
|
+
/**
|
|
5765
|
+
* ToSApi - functional programming interface
|
|
5766
|
+
* @export
|
|
5767
|
+
*/
|
|
5768
|
+
const ToSApiFp = function (configuration) {
|
|
5769
|
+
const localVarAxiosParamCreator = (0, exports.ToSApiAxiosParamCreator)(configuration);
|
|
5770
|
+
return {
|
|
5771
|
+
/**
|
|
5772
|
+
*
|
|
5773
|
+
* @param {*} [options] Override http request option.
|
|
5774
|
+
* @throws {RequiredError}
|
|
5775
|
+
*/
|
|
5776
|
+
apiV2TosOptions(options) {
|
|
5777
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5778
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV2TosOptions(options);
|
|
5779
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5780
|
+
});
|
|
5781
|
+
},
|
|
5782
|
+
/**
|
|
5783
|
+
*
|
|
5784
|
+
* @param {*} [options] Override http request option.
|
|
5785
|
+
* @throws {RequiredError}
|
|
5786
|
+
*/
|
|
5787
|
+
getToS(options) {
|
|
5788
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5789
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getToS(options);
|
|
5790
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5791
|
+
});
|
|
5792
|
+
},
|
|
5793
|
+
};
|
|
5794
|
+
};
|
|
5795
|
+
exports.ToSApiFp = ToSApiFp;
|
|
5796
|
+
/**
|
|
5797
|
+
* ToSApi - factory interface
|
|
5798
|
+
* @export
|
|
5799
|
+
*/
|
|
5800
|
+
const ToSApiFactory = function (configuration, basePath, axios) {
|
|
5801
|
+
const localVarFp = (0, exports.ToSApiFp)(configuration);
|
|
5802
|
+
return {
|
|
5803
|
+
/**
|
|
5804
|
+
*
|
|
5805
|
+
* @param {*} [options] Override http request option.
|
|
5806
|
+
* @throws {RequiredError}
|
|
5807
|
+
*/
|
|
5808
|
+
apiV2TosOptions(options) {
|
|
5809
|
+
return localVarFp.apiV2TosOptions(options).then((request) => request(axios, basePath));
|
|
5810
|
+
},
|
|
5811
|
+
/**
|
|
5812
|
+
*
|
|
5813
|
+
* @param {*} [options] Override http request option.
|
|
5814
|
+
* @throws {RequiredError}
|
|
5815
|
+
*/
|
|
5816
|
+
getToS(options) {
|
|
5817
|
+
return localVarFp.getToS(options).then((request) => request(axios, basePath));
|
|
5818
|
+
},
|
|
5819
|
+
};
|
|
5820
|
+
};
|
|
5821
|
+
exports.ToSApiFactory = ToSApiFactory;
|
|
5822
|
+
/**
|
|
5823
|
+
* ToSApi - object-oriented interface
|
|
5824
|
+
* @export
|
|
5825
|
+
* @class ToSApi
|
|
5826
|
+
* @extends {BaseAPI}
|
|
5827
|
+
*/
|
|
5828
|
+
class ToSApi extends base_1.BaseAPI {
|
|
5829
|
+
/**
|
|
5830
|
+
*
|
|
5831
|
+
* @param {*} [options] Override http request option.
|
|
5832
|
+
* @throws {RequiredError}
|
|
5833
|
+
* @memberof ToSApi
|
|
5834
|
+
*/
|
|
5835
|
+
apiV2TosOptions(options) {
|
|
5836
|
+
return (0, exports.ToSApiFp)(this.configuration).apiV2TosOptions(options).then((request) => request(this.axios, this.basePath));
|
|
5837
|
+
}
|
|
5838
|
+
/**
|
|
5839
|
+
*
|
|
5840
|
+
* @param {*} [options] Override http request option.
|
|
5841
|
+
* @throws {RequiredError}
|
|
5842
|
+
* @memberof ToSApi
|
|
5843
|
+
*/
|
|
5844
|
+
getToS(options) {
|
|
5845
|
+
return (0, exports.ToSApiFp)(this.configuration).getToS(options).then((request) => request(this.axios, this.basePath));
|
|
5846
|
+
}
|
|
5847
|
+
}
|
|
5848
|
+
exports.ToSApi = ToSApi;
|
|
5849
|
+
/**
|
|
5850
|
+
* TreeApi - axios parameter creator
|
|
5851
|
+
* @export
|
|
5852
|
+
*/
|
|
5853
|
+
const TreeApiAxiosParamCreator = function (configuration) {
|
|
5854
|
+
return {
|
|
5855
|
+
/**
|
|
5856
|
+
*
|
|
5857
|
+
* @param {string} projectId
|
|
5858
|
+
* @param {string} resourceId
|
|
5859
|
+
* @param {*} [options] Override http request option.
|
|
5860
|
+
* @throws {RequiredError}
|
|
5861
|
+
*/
|
|
5862
|
+
apiV2ProjectsProjectIdResourcesResourceIdTreesOptions: (projectId, resourceId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5863
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
5864
|
+
(0, common_1.assertParamExists)('apiV2ProjectsProjectIdResourcesResourceIdTreesOptions', 'projectId', projectId);
|
|
5865
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
5866
|
+
(0, common_1.assertParamExists)('apiV2ProjectsProjectIdResourcesResourceIdTreesOptions', 'resourceId', resourceId);
|
|
5867
|
+
const localVarPath = `/api/v2/projects/{projectId}/resources/{resourceId}/trees`
|
|
5868
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
5869
|
+
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
5870
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5871
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5872
|
+
let baseOptions;
|
|
5873
|
+
if (configuration) {
|
|
5874
|
+
baseOptions = configuration.baseOptions;
|
|
5875
|
+
}
|
|
5876
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'OPTIONS' }, baseOptions), options);
|
|
5877
|
+
const localVarHeaderParameter = {};
|
|
5878
|
+
const localVarQueryParameter = {};
|
|
5879
|
+
// authentication Bearer required
|
|
5880
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5881
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5882
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5883
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5884
|
+
return {
|
|
5885
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5886
|
+
options: localVarRequestOptions,
|
|
5887
|
+
};
|
|
5888
|
+
}),
|
|
5889
|
+
/**
|
|
5890
|
+
*
|
|
5891
|
+
* @param {string} projectId
|
|
5892
|
+
* @param {string} resourceId
|
|
5893
|
+
* @param {MetadataTreeForCreationDto} [metadataTreeForCreationDto]
|
|
5894
|
+
* @param {*} [options] Override http request option.
|
|
5895
|
+
* @throws {RequiredError}
|
|
5896
|
+
*/
|
|
5897
|
+
createMetadataTree: (projectId, resourceId, metadataTreeForCreationDto, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5898
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
5899
|
+
(0, common_1.assertParamExists)('createMetadataTree', 'projectId', projectId);
|
|
5900
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
5901
|
+
(0, common_1.assertParamExists)('createMetadataTree', 'resourceId', resourceId);
|
|
5902
|
+
const localVarPath = `/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata`
|
|
5903
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
5904
|
+
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
5905
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5906
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5907
|
+
let baseOptions;
|
|
5908
|
+
if (configuration) {
|
|
5909
|
+
baseOptions = configuration.baseOptions;
|
|
5910
|
+
}
|
|
5911
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5912
|
+
const localVarHeaderParameter = {};
|
|
5913
|
+
const localVarQueryParameter = {};
|
|
5914
|
+
// authentication Bearer required
|
|
5915
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5916
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5917
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5918
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5919
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5920
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(metadataTreeForCreationDto, localVarRequestOptions, configuration);
|
|
5921
|
+
return {
|
|
5922
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5923
|
+
options: localVarRequestOptions,
|
|
5924
|
+
};
|
|
5925
|
+
}),
|
|
5926
|
+
/**
|
|
5927
|
+
*
|
|
5928
|
+
* @param {string} projectId
|
|
5929
|
+
* @param {string} resourceId
|
|
5930
|
+
* @param {string} [path]
|
|
5931
|
+
* @param {number} [pageNumber]
|
|
5932
|
+
* @param {number} [pageSize]
|
|
5933
|
+
* @param {string} [orderBy]
|
|
5934
|
+
* @param {*} [options] Override http request option.
|
|
5935
|
+
* @throws {RequiredError}
|
|
5936
|
+
*/
|
|
5937
|
+
getFileTree: (projectId, resourceId, path, pageNumber, pageSize, orderBy, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5938
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
5939
|
+
(0, common_1.assertParamExists)('getFileTree', 'projectId', projectId);
|
|
5940
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
5941
|
+
(0, common_1.assertParamExists)('getFileTree', 'resourceId', resourceId);
|
|
5942
|
+
const localVarPath = `/api/v2/projects/{projectId}/resources/{resourceId}/trees/files`
|
|
5943
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
5944
|
+
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
5945
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5946
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5947
|
+
let baseOptions;
|
|
5948
|
+
if (configuration) {
|
|
5949
|
+
baseOptions = configuration.baseOptions;
|
|
5950
|
+
}
|
|
5951
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5952
|
+
const localVarHeaderParameter = {};
|
|
5953
|
+
const localVarQueryParameter = {};
|
|
5954
|
+
// authentication Bearer required
|
|
5955
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5956
|
+
if (path !== undefined) {
|
|
5957
|
+
localVarQueryParameter['Path'] = path;
|
|
5958
|
+
}
|
|
5959
|
+
if (pageNumber !== undefined) {
|
|
5960
|
+
localVarQueryParameter['PageNumber'] = pageNumber;
|
|
5961
|
+
}
|
|
5962
|
+
if (pageSize !== undefined) {
|
|
5963
|
+
localVarQueryParameter['PageSize'] = pageSize;
|
|
5964
|
+
}
|
|
5965
|
+
if (orderBy !== undefined) {
|
|
5966
|
+
localVarQueryParameter['OrderBy'] = orderBy;
|
|
5967
|
+
}
|
|
5968
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5969
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5970
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5971
|
+
return {
|
|
5972
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5973
|
+
options: localVarRequestOptions,
|
|
5974
|
+
};
|
|
5975
|
+
}),
|
|
5976
|
+
/**
|
|
5977
|
+
*
|
|
5978
|
+
* @param {string} projectId
|
|
5979
|
+
* @param {string} resourceId
|
|
5980
|
+
* @param {string} [path]
|
|
5981
|
+
* @param {RdfFormat} [format]
|
|
5982
|
+
* @param {number} [pageNumber]
|
|
5983
|
+
* @param {number} [pageSize]
|
|
5984
|
+
* @param {string} [orderBy]
|
|
5985
|
+
* @param {*} [options] Override http request option.
|
|
5986
|
+
* @throws {RequiredError}
|
|
5987
|
+
*/
|
|
5988
|
+
getMetadataTree: (projectId, resourceId, path, format, pageNumber, pageSize, orderBy, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5989
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
5990
|
+
(0, common_1.assertParamExists)('getMetadataTree', 'projectId', projectId);
|
|
5991
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
5992
|
+
(0, common_1.assertParamExists)('getMetadataTree', 'resourceId', resourceId);
|
|
5993
|
+
const localVarPath = `/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata`
|
|
5994
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
5995
|
+
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
5996
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5997
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5998
|
+
let baseOptions;
|
|
5999
|
+
if (configuration) {
|
|
6000
|
+
baseOptions = configuration.baseOptions;
|
|
6001
|
+
}
|
|
6002
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6003
|
+
const localVarHeaderParameter = {};
|
|
6004
|
+
const localVarQueryParameter = {};
|
|
6005
|
+
// authentication Bearer required
|
|
6006
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6007
|
+
if (path !== undefined) {
|
|
6008
|
+
localVarQueryParameter['Path'] = path;
|
|
6009
|
+
}
|
|
6010
|
+
if (format !== undefined) {
|
|
6011
|
+
localVarQueryParameter['Format'] = format;
|
|
6012
|
+
}
|
|
6013
|
+
if (pageNumber !== undefined) {
|
|
6014
|
+
localVarQueryParameter['PageNumber'] = pageNumber;
|
|
6015
|
+
}
|
|
6016
|
+
if (pageSize !== undefined) {
|
|
6017
|
+
localVarQueryParameter['PageSize'] = pageSize;
|
|
6018
|
+
}
|
|
6019
|
+
if (orderBy !== undefined) {
|
|
6020
|
+
localVarQueryParameter['OrderBy'] = orderBy;
|
|
6021
|
+
}
|
|
6022
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
6023
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6024
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6025
|
+
return {
|
|
6026
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6027
|
+
options: localVarRequestOptions,
|
|
6028
|
+
};
|
|
6029
|
+
}),
|
|
6030
|
+
/**
|
|
6031
|
+
*
|
|
6032
|
+
* @param {string} projectId
|
|
6033
|
+
* @param {string} resourceId
|
|
6034
|
+
* @param {MetadataTreeForUpdateDto} [metadataTreeForUpdateDto]
|
|
6035
|
+
* @param {*} [options] Override http request option.
|
|
6036
|
+
* @throws {RequiredError}
|
|
6037
|
+
*/
|
|
6038
|
+
updateMetadataTree: (projectId, resourceId, metadataTreeForUpdateDto, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6039
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
6040
|
+
(0, common_1.assertParamExists)('updateMetadataTree', 'projectId', projectId);
|
|
6041
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
6042
|
+
(0, common_1.assertParamExists)('updateMetadataTree', 'resourceId', resourceId);
|
|
6043
|
+
const localVarPath = `/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata`
|
|
6044
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
6045
|
+
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
6046
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6047
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6048
|
+
let baseOptions;
|
|
6049
|
+
if (configuration) {
|
|
6050
|
+
baseOptions = configuration.baseOptions;
|
|
6051
|
+
}
|
|
6052
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
5312
6053
|
const localVarHeaderParameter = {};
|
|
5313
6054
|
const localVarQueryParameter = {};
|
|
5314
6055
|
// authentication Bearer required
|
|
5315
6056
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6057
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5316
6058
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5317
6059
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5318
6060
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6061
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(metadataTreeForUpdateDto, localVarRequestOptions, configuration);
|
|
5319
6062
|
return {
|
|
5320
6063
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5321
6064
|
options: localVarRequestOptions,
|
|
@@ -5323,92 +6066,239 @@ const ToSApiAxiosParamCreator = function (configuration) {
|
|
|
5323
6066
|
}),
|
|
5324
6067
|
};
|
|
5325
6068
|
};
|
|
5326
|
-
exports.
|
|
6069
|
+
exports.TreeApiAxiosParamCreator = TreeApiAxiosParamCreator;
|
|
5327
6070
|
/**
|
|
5328
|
-
*
|
|
6071
|
+
* TreeApi - functional programming interface
|
|
5329
6072
|
* @export
|
|
5330
6073
|
*/
|
|
5331
|
-
const
|
|
5332
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
6074
|
+
const TreeApiFp = function (configuration) {
|
|
6075
|
+
const localVarAxiosParamCreator = (0, exports.TreeApiAxiosParamCreator)(configuration);
|
|
5333
6076
|
return {
|
|
5334
6077
|
/**
|
|
5335
6078
|
*
|
|
6079
|
+
* @param {string} projectId
|
|
6080
|
+
* @param {string} resourceId
|
|
5336
6081
|
* @param {*} [options] Override http request option.
|
|
5337
6082
|
* @throws {RequiredError}
|
|
5338
6083
|
*/
|
|
5339
|
-
|
|
6084
|
+
apiV2ProjectsProjectIdResourcesResourceIdTreesOptions(projectId, resourceId, options) {
|
|
5340
6085
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5341
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
6086
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV2ProjectsProjectIdResourcesResourceIdTreesOptions(projectId, resourceId, options);
|
|
5342
6087
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5343
6088
|
});
|
|
5344
6089
|
},
|
|
5345
6090
|
/**
|
|
5346
6091
|
*
|
|
6092
|
+
* @param {string} projectId
|
|
6093
|
+
* @param {string} resourceId
|
|
6094
|
+
* @param {MetadataTreeForCreationDto} [metadataTreeForCreationDto]
|
|
5347
6095
|
* @param {*} [options] Override http request option.
|
|
5348
6096
|
* @throws {RequiredError}
|
|
5349
6097
|
*/
|
|
5350
|
-
|
|
6098
|
+
createMetadataTree(projectId, resourceId, metadataTreeForCreationDto, options) {
|
|
5351
6099
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5352
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
6100
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createMetadataTree(projectId, resourceId, metadataTreeForCreationDto, options);
|
|
6101
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6102
|
+
});
|
|
6103
|
+
},
|
|
6104
|
+
/**
|
|
6105
|
+
*
|
|
6106
|
+
* @param {string} projectId
|
|
6107
|
+
* @param {string} resourceId
|
|
6108
|
+
* @param {string} [path]
|
|
6109
|
+
* @param {number} [pageNumber]
|
|
6110
|
+
* @param {number} [pageSize]
|
|
6111
|
+
* @param {string} [orderBy]
|
|
6112
|
+
* @param {*} [options] Override http request option.
|
|
6113
|
+
* @throws {RequiredError}
|
|
6114
|
+
*/
|
|
6115
|
+
getFileTree(projectId, resourceId, path, pageNumber, pageSize, orderBy, options) {
|
|
6116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6117
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFileTree(projectId, resourceId, path, pageNumber, pageSize, orderBy, options);
|
|
6118
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6119
|
+
});
|
|
6120
|
+
},
|
|
6121
|
+
/**
|
|
6122
|
+
*
|
|
6123
|
+
* @param {string} projectId
|
|
6124
|
+
* @param {string} resourceId
|
|
6125
|
+
* @param {string} [path]
|
|
6126
|
+
* @param {RdfFormat} [format]
|
|
6127
|
+
* @param {number} [pageNumber]
|
|
6128
|
+
* @param {number} [pageSize]
|
|
6129
|
+
* @param {string} [orderBy]
|
|
6130
|
+
* @param {*} [options] Override http request option.
|
|
6131
|
+
* @throws {RequiredError}
|
|
6132
|
+
*/
|
|
6133
|
+
getMetadataTree(projectId, resourceId, path, format, pageNumber, pageSize, orderBy, options) {
|
|
6134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6135
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetadataTree(projectId, resourceId, path, format, pageNumber, pageSize, orderBy, options);
|
|
6136
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6137
|
+
});
|
|
6138
|
+
},
|
|
6139
|
+
/**
|
|
6140
|
+
*
|
|
6141
|
+
* @param {string} projectId
|
|
6142
|
+
* @param {string} resourceId
|
|
6143
|
+
* @param {MetadataTreeForUpdateDto} [metadataTreeForUpdateDto]
|
|
6144
|
+
* @param {*} [options] Override http request option.
|
|
6145
|
+
* @throws {RequiredError}
|
|
6146
|
+
*/
|
|
6147
|
+
updateMetadataTree(projectId, resourceId, metadataTreeForUpdateDto, options) {
|
|
6148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6149
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateMetadataTree(projectId, resourceId, metadataTreeForUpdateDto, options);
|
|
5353
6150
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5354
6151
|
});
|
|
5355
6152
|
},
|
|
5356
6153
|
};
|
|
5357
6154
|
};
|
|
5358
|
-
exports.
|
|
6155
|
+
exports.TreeApiFp = TreeApiFp;
|
|
5359
6156
|
/**
|
|
5360
|
-
*
|
|
6157
|
+
* TreeApi - factory interface
|
|
5361
6158
|
* @export
|
|
5362
6159
|
*/
|
|
5363
|
-
const
|
|
5364
|
-
const localVarFp = (0, exports.
|
|
6160
|
+
const TreeApiFactory = function (configuration, basePath, axios) {
|
|
6161
|
+
const localVarFp = (0, exports.TreeApiFp)(configuration);
|
|
5365
6162
|
return {
|
|
5366
6163
|
/**
|
|
5367
6164
|
*
|
|
6165
|
+
* @param {string} projectId
|
|
6166
|
+
* @param {string} resourceId
|
|
6167
|
+
* @param {*} [options] Override http request option.
|
|
6168
|
+
* @throws {RequiredError}
|
|
6169
|
+
*/
|
|
6170
|
+
apiV2ProjectsProjectIdResourcesResourceIdTreesOptions(projectId, resourceId, options) {
|
|
6171
|
+
return localVarFp.apiV2ProjectsProjectIdResourcesResourceIdTreesOptions(projectId, resourceId, options).then((request) => request(axios, basePath));
|
|
6172
|
+
},
|
|
6173
|
+
/**
|
|
6174
|
+
*
|
|
6175
|
+
* @param {string} projectId
|
|
6176
|
+
* @param {string} resourceId
|
|
6177
|
+
* @param {MetadataTreeForCreationDto} [metadataTreeForCreationDto]
|
|
5368
6178
|
* @param {*} [options] Override http request option.
|
|
5369
6179
|
* @throws {RequiredError}
|
|
5370
6180
|
*/
|
|
5371
|
-
|
|
5372
|
-
return localVarFp.
|
|
6181
|
+
createMetadataTree(projectId, resourceId, metadataTreeForCreationDto, options) {
|
|
6182
|
+
return localVarFp.createMetadataTree(projectId, resourceId, metadataTreeForCreationDto, options).then((request) => request(axios, basePath));
|
|
6183
|
+
},
|
|
6184
|
+
/**
|
|
6185
|
+
*
|
|
6186
|
+
* @param {string} projectId
|
|
6187
|
+
* @param {string} resourceId
|
|
6188
|
+
* @param {string} [path]
|
|
6189
|
+
* @param {number} [pageNumber]
|
|
6190
|
+
* @param {number} [pageSize]
|
|
6191
|
+
* @param {string} [orderBy]
|
|
6192
|
+
* @param {*} [options] Override http request option.
|
|
6193
|
+
* @throws {RequiredError}
|
|
6194
|
+
*/
|
|
6195
|
+
getFileTree(projectId, resourceId, path, pageNumber, pageSize, orderBy, options) {
|
|
6196
|
+
return localVarFp.getFileTree(projectId, resourceId, path, pageNumber, pageSize, orderBy, options).then((request) => request(axios, basePath));
|
|
5373
6197
|
},
|
|
5374
6198
|
/**
|
|
5375
6199
|
*
|
|
6200
|
+
* @param {string} projectId
|
|
6201
|
+
* @param {string} resourceId
|
|
6202
|
+
* @param {string} [path]
|
|
6203
|
+
* @param {RdfFormat} [format]
|
|
6204
|
+
* @param {number} [pageNumber]
|
|
6205
|
+
* @param {number} [pageSize]
|
|
6206
|
+
* @param {string} [orderBy]
|
|
5376
6207
|
* @param {*} [options] Override http request option.
|
|
5377
6208
|
* @throws {RequiredError}
|
|
5378
6209
|
*/
|
|
5379
|
-
|
|
5380
|
-
return localVarFp.
|
|
6210
|
+
getMetadataTree(projectId, resourceId, path, format, pageNumber, pageSize, orderBy, options) {
|
|
6211
|
+
return localVarFp.getMetadataTree(projectId, resourceId, path, format, pageNumber, pageSize, orderBy, options).then((request) => request(axios, basePath));
|
|
6212
|
+
},
|
|
6213
|
+
/**
|
|
6214
|
+
*
|
|
6215
|
+
* @param {string} projectId
|
|
6216
|
+
* @param {string} resourceId
|
|
6217
|
+
* @param {MetadataTreeForUpdateDto} [metadataTreeForUpdateDto]
|
|
6218
|
+
* @param {*} [options] Override http request option.
|
|
6219
|
+
* @throws {RequiredError}
|
|
6220
|
+
*/
|
|
6221
|
+
updateMetadataTree(projectId, resourceId, metadataTreeForUpdateDto, options) {
|
|
6222
|
+
return localVarFp.updateMetadataTree(projectId, resourceId, metadataTreeForUpdateDto, options).then((request) => request(axios, basePath));
|
|
5381
6223
|
},
|
|
5382
6224
|
};
|
|
5383
6225
|
};
|
|
5384
|
-
exports.
|
|
6226
|
+
exports.TreeApiFactory = TreeApiFactory;
|
|
5385
6227
|
/**
|
|
5386
|
-
*
|
|
6228
|
+
* TreeApi - object-oriented interface
|
|
5387
6229
|
* @export
|
|
5388
|
-
* @class
|
|
6230
|
+
* @class TreeApi
|
|
5389
6231
|
* @extends {BaseAPI}
|
|
5390
6232
|
*/
|
|
5391
|
-
class
|
|
6233
|
+
class TreeApi extends base_1.BaseAPI {
|
|
5392
6234
|
/**
|
|
5393
6235
|
*
|
|
6236
|
+
* @param {string} projectId
|
|
6237
|
+
* @param {string} resourceId
|
|
5394
6238
|
* @param {*} [options] Override http request option.
|
|
5395
6239
|
* @throws {RequiredError}
|
|
5396
|
-
* @memberof
|
|
6240
|
+
* @memberof TreeApi
|
|
5397
6241
|
*/
|
|
5398
|
-
|
|
5399
|
-
return (0, exports.
|
|
6242
|
+
apiV2ProjectsProjectIdResourcesResourceIdTreesOptions(projectId, resourceId, options) {
|
|
6243
|
+
return (0, exports.TreeApiFp)(this.configuration).apiV2ProjectsProjectIdResourcesResourceIdTreesOptions(projectId, resourceId, options).then((request) => request(this.axios, this.basePath));
|
|
6244
|
+
}
|
|
6245
|
+
/**
|
|
6246
|
+
*
|
|
6247
|
+
* @param {string} projectId
|
|
6248
|
+
* @param {string} resourceId
|
|
6249
|
+
* @param {MetadataTreeForCreationDto} [metadataTreeForCreationDto]
|
|
6250
|
+
* @param {*} [options] Override http request option.
|
|
6251
|
+
* @throws {RequiredError}
|
|
6252
|
+
* @memberof TreeApi
|
|
6253
|
+
*/
|
|
6254
|
+
createMetadataTree(projectId, resourceId, metadataTreeForCreationDto, options) {
|
|
6255
|
+
return (0, exports.TreeApiFp)(this.configuration).createMetadataTree(projectId, resourceId, metadataTreeForCreationDto, options).then((request) => request(this.axios, this.basePath));
|
|
5400
6256
|
}
|
|
5401
6257
|
/**
|
|
5402
6258
|
*
|
|
6259
|
+
* @param {string} projectId
|
|
6260
|
+
* @param {string} resourceId
|
|
6261
|
+
* @param {string} [path]
|
|
6262
|
+
* @param {number} [pageNumber]
|
|
6263
|
+
* @param {number} [pageSize]
|
|
6264
|
+
* @param {string} [orderBy]
|
|
5403
6265
|
* @param {*} [options] Override http request option.
|
|
5404
6266
|
* @throws {RequiredError}
|
|
5405
|
-
* @memberof
|
|
6267
|
+
* @memberof TreeApi
|
|
5406
6268
|
*/
|
|
5407
|
-
|
|
5408
|
-
return (0, exports.
|
|
6269
|
+
getFileTree(projectId, resourceId, path, pageNumber, pageSize, orderBy, options) {
|
|
6270
|
+
return (0, exports.TreeApiFp)(this.configuration).getFileTree(projectId, resourceId, path, pageNumber, pageSize, orderBy, options).then((request) => request(this.axios, this.basePath));
|
|
6271
|
+
}
|
|
6272
|
+
/**
|
|
6273
|
+
*
|
|
6274
|
+
* @param {string} projectId
|
|
6275
|
+
* @param {string} resourceId
|
|
6276
|
+
* @param {string} [path]
|
|
6277
|
+
* @param {RdfFormat} [format]
|
|
6278
|
+
* @param {number} [pageNumber]
|
|
6279
|
+
* @param {number} [pageSize]
|
|
6280
|
+
* @param {string} [orderBy]
|
|
6281
|
+
* @param {*} [options] Override http request option.
|
|
6282
|
+
* @throws {RequiredError}
|
|
6283
|
+
* @memberof TreeApi
|
|
6284
|
+
*/
|
|
6285
|
+
getMetadataTree(projectId, resourceId, path, format, pageNumber, pageSize, orderBy, options) {
|
|
6286
|
+
return (0, exports.TreeApiFp)(this.configuration).getMetadataTree(projectId, resourceId, path, format, pageNumber, pageSize, orderBy, options).then((request) => request(this.axios, this.basePath));
|
|
6287
|
+
}
|
|
6288
|
+
/**
|
|
6289
|
+
*
|
|
6290
|
+
* @param {string} projectId
|
|
6291
|
+
* @param {string} resourceId
|
|
6292
|
+
* @param {MetadataTreeForUpdateDto} [metadataTreeForUpdateDto]
|
|
6293
|
+
* @param {*} [options] Override http request option.
|
|
6294
|
+
* @throws {RequiredError}
|
|
6295
|
+
* @memberof TreeApi
|
|
6296
|
+
*/
|
|
6297
|
+
updateMetadataTree(projectId, resourceId, metadataTreeForUpdateDto, options) {
|
|
6298
|
+
return (0, exports.TreeApiFp)(this.configuration).updateMetadataTree(projectId, resourceId, metadataTreeForUpdateDto, options).then((request) => request(this.axios, this.basePath));
|
|
5409
6299
|
}
|
|
5410
6300
|
}
|
|
5411
|
-
exports.
|
|
6301
|
+
exports.TreeApi = TreeApi;
|
|
5412
6302
|
/**
|
|
5413
6303
|
* UserApi - axios parameter creator
|
|
5414
6304
|
* @export
|
|
@@ -6476,16 +7366,16 @@ const VocabularyApiAxiosParamCreator = function (configuration) {
|
|
|
6476
7366
|
}),
|
|
6477
7367
|
/**
|
|
6478
7368
|
*
|
|
6479
|
-
* @param {string}
|
|
6480
|
-
* @param {AcceptedLanguage} [
|
|
7369
|
+
* @param {string} [searchTerm]
|
|
7370
|
+
* @param {AcceptedLanguage} [language]
|
|
7371
|
+
* @param {number} [pageNumber]
|
|
7372
|
+
* @param {number} [pageSize]
|
|
7373
|
+
* @param {string} [orderBy]
|
|
6481
7374
|
* @param {*} [options] Override http request option.
|
|
6482
7375
|
* @throws {RequiredError}
|
|
6483
7376
|
*/
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
(0, common_1.assertParamExists)('getInstance', 'instance', instance);
|
|
6487
|
-
const localVarPath = `/api/v2/vocabularies/instances/{instance}`
|
|
6488
|
-
.replace(`{${"instance"}}`, encodeURIComponent(String(instance)));
|
|
7377
|
+
getVocabularies: (searchTerm, language, pageNumber, pageSize, orderBy, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7378
|
+
const localVarPath = `/api/v2/vocabularies`;
|
|
6489
7379
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6490
7380
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6491
7381
|
let baseOptions;
|
|
@@ -6497,8 +7387,20 @@ const VocabularyApiAxiosParamCreator = function (configuration) {
|
|
|
6497
7387
|
const localVarQueryParameter = {};
|
|
6498
7388
|
// authentication Bearer required
|
|
6499
7389
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6500
|
-
if (
|
|
6501
|
-
|
|
7390
|
+
if (searchTerm !== undefined) {
|
|
7391
|
+
localVarQueryParameter['SearchTerm'] = searchTerm;
|
|
7392
|
+
}
|
|
7393
|
+
if (language !== undefined) {
|
|
7394
|
+
localVarQueryParameter['Language'] = language;
|
|
7395
|
+
}
|
|
7396
|
+
if (pageNumber !== undefined) {
|
|
7397
|
+
localVarQueryParameter['PageNumber'] = pageNumber;
|
|
7398
|
+
}
|
|
7399
|
+
if (pageSize !== undefined) {
|
|
7400
|
+
localVarQueryParameter['PageSize'] = pageSize;
|
|
7401
|
+
}
|
|
7402
|
+
if (orderBy !== undefined) {
|
|
7403
|
+
localVarQueryParameter['OrderBy'] = orderBy;
|
|
6502
7404
|
}
|
|
6503
7405
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
6504
7406
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -6510,16 +7412,16 @@ const VocabularyApiAxiosParamCreator = function (configuration) {
|
|
|
6510
7412
|
}),
|
|
6511
7413
|
/**
|
|
6512
7414
|
*
|
|
6513
|
-
* @param {string}
|
|
6514
|
-
* @param {AcceptedLanguage} [
|
|
6515
|
-
* @param {number} [pageNumber]
|
|
6516
|
-
* @param {number} [pageSize]
|
|
6517
|
-
* @param {string} [orderBy]
|
|
7415
|
+
* @param {string} instance
|
|
7416
|
+
* @param {AcceptedLanguage} [acceptLanguage]
|
|
6518
7417
|
* @param {*} [options] Override http request option.
|
|
6519
7418
|
* @throws {RequiredError}
|
|
6520
7419
|
*/
|
|
6521
|
-
|
|
6522
|
-
|
|
7420
|
+
getVocabularyInstance: (instance, acceptLanguage, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7421
|
+
// verify required parameter 'instance' is not null or undefined
|
|
7422
|
+
(0, common_1.assertParamExists)('getVocabularyInstance', 'instance', instance);
|
|
7423
|
+
const localVarPath = `/api/v2/vocabularies/instances/{instance}`
|
|
7424
|
+
.replace(`{${"instance"}}`, encodeURIComponent(String(instance)));
|
|
6523
7425
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6524
7426
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6525
7427
|
let baseOptions;
|
|
@@ -6531,20 +7433,8 @@ const VocabularyApiAxiosParamCreator = function (configuration) {
|
|
|
6531
7433
|
const localVarQueryParameter = {};
|
|
6532
7434
|
// authentication Bearer required
|
|
6533
7435
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6534
|
-
if (
|
|
6535
|
-
|
|
6536
|
-
}
|
|
6537
|
-
if (language !== undefined) {
|
|
6538
|
-
localVarQueryParameter['Language'] = language;
|
|
6539
|
-
}
|
|
6540
|
-
if (pageNumber !== undefined) {
|
|
6541
|
-
localVarQueryParameter['PageNumber'] = pageNumber;
|
|
6542
|
-
}
|
|
6543
|
-
if (pageSize !== undefined) {
|
|
6544
|
-
localVarQueryParameter['PageSize'] = pageSize;
|
|
6545
|
-
}
|
|
6546
|
-
if (orderBy !== undefined) {
|
|
6547
|
-
localVarQueryParameter['OrderBy'] = orderBy;
|
|
7436
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
7437
|
+
localVarHeaderParameter['Accept-Language'] = String(JSON.stringify(acceptLanguage));
|
|
6548
7438
|
}
|
|
6549
7439
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
6550
7440
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -6629,30 +7519,30 @@ const VocabularyApiFp = function (configuration) {
|
|
|
6629
7519
|
},
|
|
6630
7520
|
/**
|
|
6631
7521
|
*
|
|
6632
|
-
* @param {string}
|
|
6633
|
-
* @param {AcceptedLanguage} [
|
|
7522
|
+
* @param {string} [searchTerm]
|
|
7523
|
+
* @param {AcceptedLanguage} [language]
|
|
7524
|
+
* @param {number} [pageNumber]
|
|
7525
|
+
* @param {number} [pageSize]
|
|
7526
|
+
* @param {string} [orderBy]
|
|
6634
7527
|
* @param {*} [options] Override http request option.
|
|
6635
7528
|
* @throws {RequiredError}
|
|
6636
7529
|
*/
|
|
6637
|
-
|
|
7530
|
+
getVocabularies(searchTerm, language, pageNumber, pageSize, orderBy, options) {
|
|
6638
7531
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6639
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7532
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVocabularies(searchTerm, language, pageNumber, pageSize, orderBy, options);
|
|
6640
7533
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6641
7534
|
});
|
|
6642
7535
|
},
|
|
6643
7536
|
/**
|
|
6644
7537
|
*
|
|
6645
|
-
* @param {string}
|
|
6646
|
-
* @param {AcceptedLanguage} [
|
|
6647
|
-
* @param {number} [pageNumber]
|
|
6648
|
-
* @param {number} [pageSize]
|
|
6649
|
-
* @param {string} [orderBy]
|
|
7538
|
+
* @param {string} instance
|
|
7539
|
+
* @param {AcceptedLanguage} [acceptLanguage]
|
|
6650
7540
|
* @param {*} [options] Override http request option.
|
|
6651
7541
|
* @throws {RequiredError}
|
|
6652
7542
|
*/
|
|
6653
|
-
|
|
7543
|
+
getVocabularyInstance(instance, acceptLanguage, options) {
|
|
6654
7544
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6655
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7545
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVocabularyInstance(instance, acceptLanguage, options);
|
|
6656
7546
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6657
7547
|
});
|
|
6658
7548
|
},
|
|
@@ -6691,16 +7581,6 @@ const VocabularyApiFactory = function (configuration, basePath, axios) {
|
|
|
6691
7581
|
apiV2VocabulariesOptions(options) {
|
|
6692
7582
|
return localVarFp.apiV2VocabulariesOptions(options).then((request) => request(axios, basePath));
|
|
6693
7583
|
},
|
|
6694
|
-
/**
|
|
6695
|
-
*
|
|
6696
|
-
* @param {string} instance
|
|
6697
|
-
* @param {AcceptedLanguage} [acceptLanguage]
|
|
6698
|
-
* @param {*} [options] Override http request option.
|
|
6699
|
-
* @throws {RequiredError}
|
|
6700
|
-
*/
|
|
6701
|
-
getInstance(instance, acceptLanguage, options) {
|
|
6702
|
-
return localVarFp.getInstance(instance, acceptLanguage, options).then((request) => request(axios, basePath));
|
|
6703
|
-
},
|
|
6704
7584
|
/**
|
|
6705
7585
|
*
|
|
6706
7586
|
* @param {string} [searchTerm]
|
|
@@ -6714,6 +7594,16 @@ const VocabularyApiFactory = function (configuration, basePath, axios) {
|
|
|
6714
7594
|
getVocabularies(searchTerm, language, pageNumber, pageSize, orderBy, options) {
|
|
6715
7595
|
return localVarFp.getVocabularies(searchTerm, language, pageNumber, pageSize, orderBy, options).then((request) => request(axios, basePath));
|
|
6716
7596
|
},
|
|
7597
|
+
/**
|
|
7598
|
+
*
|
|
7599
|
+
* @param {string} instance
|
|
7600
|
+
* @param {AcceptedLanguage} [acceptLanguage]
|
|
7601
|
+
* @param {*} [options] Override http request option.
|
|
7602
|
+
* @throws {RequiredError}
|
|
7603
|
+
*/
|
|
7604
|
+
getVocabularyInstance(instance, acceptLanguage, options) {
|
|
7605
|
+
return localVarFp.getVocabularyInstance(instance, acceptLanguage, options).then((request) => request(axios, basePath));
|
|
7606
|
+
},
|
|
6717
7607
|
/**
|
|
6718
7608
|
*
|
|
6719
7609
|
* @param {string} _class
|
|
@@ -6747,17 +7637,6 @@ class VocabularyApi extends base_1.BaseAPI {
|
|
|
6747
7637
|
apiV2VocabulariesOptions(options) {
|
|
6748
7638
|
return (0, exports.VocabularyApiFp)(this.configuration).apiV2VocabulariesOptions(options).then((request) => request(this.axios, this.basePath));
|
|
6749
7639
|
}
|
|
6750
|
-
/**
|
|
6751
|
-
*
|
|
6752
|
-
* @param {string} instance
|
|
6753
|
-
* @param {AcceptedLanguage} [acceptLanguage]
|
|
6754
|
-
* @param {*} [options] Override http request option.
|
|
6755
|
-
* @throws {RequiredError}
|
|
6756
|
-
* @memberof VocabularyApi
|
|
6757
|
-
*/
|
|
6758
|
-
getInstance(instance, acceptLanguage, options) {
|
|
6759
|
-
return (0, exports.VocabularyApiFp)(this.configuration).getInstance(instance, acceptLanguage, options).then((request) => request(this.axios, this.basePath));
|
|
6760
|
-
}
|
|
6761
7640
|
/**
|
|
6762
7641
|
*
|
|
6763
7642
|
* @param {string} [searchTerm]
|
|
@@ -6772,6 +7651,17 @@ class VocabularyApi extends base_1.BaseAPI {
|
|
|
6772
7651
|
getVocabularies(searchTerm, language, pageNumber, pageSize, orderBy, options) {
|
|
6773
7652
|
return (0, exports.VocabularyApiFp)(this.configuration).getVocabularies(searchTerm, language, pageNumber, pageSize, orderBy, options).then((request) => request(this.axios, this.basePath));
|
|
6774
7653
|
}
|
|
7654
|
+
/**
|
|
7655
|
+
*
|
|
7656
|
+
* @param {string} instance
|
|
7657
|
+
* @param {AcceptedLanguage} [acceptLanguage]
|
|
7658
|
+
* @param {*} [options] Override http request option.
|
|
7659
|
+
* @throws {RequiredError}
|
|
7660
|
+
* @memberof VocabularyApi
|
|
7661
|
+
*/
|
|
7662
|
+
getVocabularyInstance(instance, acceptLanguage, options) {
|
|
7663
|
+
return (0, exports.VocabularyApiFp)(this.configuration).getVocabularyInstance(instance, acceptLanguage, options).then((request) => request(this.axios, this.basePath));
|
|
7664
|
+
}
|
|
6775
7665
|
/**
|
|
6776
7666
|
*
|
|
6777
7667
|
* @param {string} _class
|