@idunion/tl-sdk 0.0.41 → 0.0.43

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.
Files changed (3) hide show
  1. package/api.d.ts +32 -12
  2. package/api.js +67 -17
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -380,12 +380,17 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
380
380
  */
381
381
  tlGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
382
382
  /**
383
- * Gets Trust Lists for a specific owner
384
- * @param {string} [ownerId]
383
+ * Provides a list of Trusted Lists
385
384
  * @param {*} [options] Override http request option.
386
385
  * @throws {RequiredError}
387
386
  */
388
- tlList: (ownerId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
387
+ tlList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
388
+ /**
389
+ * Provides a list of Trusted Lists for an authenticated owner
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ tlListByOwner: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
389
394
  /**
390
395
  * Updates a Trust List based on the specified payload.
391
396
  * @param {string} tlId
@@ -537,12 +542,17 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
537
542
  */
538
543
  tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
539
544
  /**
540
- * Gets Trust Lists for a specific owner
541
- * @param {string} [ownerId]
545
+ * Provides a list of Trusted Lists
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ tlList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlList>>;
550
+ /**
551
+ * Provides a list of Trusted Lists for an authenticated owner
542
552
  * @param {*} [options] Override http request option.
543
553
  * @throws {RequiredError}
544
554
  */
545
- tlList(ownerId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlList>>;
555
+ tlListByOwner(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlList>>;
546
556
  /**
547
557
  * Updates a Trust List based on the specified payload.
548
558
  * @param {string} tlId
@@ -694,12 +704,17 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
694
704
  */
695
705
  tlGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
696
706
  /**
697
- * Gets Trust Lists for a specific owner
698
- * @param {string} [ownerId]
707
+ * Provides a list of Trusted Lists
699
708
  * @param {*} [options] Override http request option.
700
709
  * @throws {RequiredError}
701
710
  */
702
- tlList(ownerId?: string, options?: RawAxiosRequestConfig): AxiosPromise<TlList>;
711
+ tlList(options?: RawAxiosRequestConfig): AxiosPromise<TlList>;
712
+ /**
713
+ * Provides a list of Trusted Lists for an authenticated owner
714
+ * @param {*} [options] Override http request option.
715
+ * @throws {RequiredError}
716
+ */
717
+ tlListByOwner(options?: RawAxiosRequestConfig): AxiosPromise<TlList>;
703
718
  /**
704
719
  * Updates a Trust List based on the specified payload.
705
720
  * @param {string} tlId
@@ -851,12 +866,17 @@ export declare class DefaultApi extends BaseAPI {
851
866
  */
852
867
  tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
853
868
  /**
854
- * Gets Trust Lists for a specific owner
855
- * @param {string} [ownerId]
869
+ * Provides a list of Trusted Lists
870
+ * @param {*} [options] Override http request option.
871
+ * @throws {RequiredError}
872
+ */
873
+ tlList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
874
+ /**
875
+ * Provides a list of Trusted Lists for an authenticated owner
856
876
  * @param {*} [options] Override http request option.
857
877
  * @throws {RequiredError}
858
878
  */
859
- tlList(ownerId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
879
+ tlListByOwner(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
860
880
  /**
861
881
  * Updates a Trust List based on the specified payload.
862
882
  * @param {string} tlId
package/api.js CHANGED
@@ -433,12 +433,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
433
433
  };
434
434
  }),
435
435
  /**
436
- * Gets Trust Lists for a specific owner
437
- * @param {string} [ownerId]
436
+ * Provides a list of Trusted Lists
438
437
  * @param {*} [options] Override http request option.
439
438
  * @throws {RequiredError}
440
439
  */
441
- tlList: (ownerId_1, ...args_1) => __awaiter(this, [ownerId_1, ...args_1], void 0, function* (ownerId, options = {}) {
440
+ tlList: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
442
441
  const localVarPath = `/tl`;
443
442
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
444
443
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -452,9 +451,33 @@ const DefaultApiAxiosParamCreator = function (configuration) {
452
451
  // authentication accessToken required
453
452
  // http bearer authentication required
454
453
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
455
- if (ownerId !== undefined) {
456
- localVarQueryParameter['owner_id'] = ownerId;
454
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
455
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
456
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
457
+ return {
458
+ url: (0, common_1.toPathString)(localVarUrlObj),
459
+ options: localVarRequestOptions,
460
+ };
461
+ }),
462
+ /**
463
+ * Provides a list of Trusted Lists for an authenticated owner
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ */
467
+ tlListByOwner: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
468
+ const localVarPath = `/tl/owner`;
469
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
470
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
471
+ let baseOptions;
472
+ if (configuration) {
473
+ baseOptions = configuration.baseOptions;
457
474
  }
475
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
476
+ const localVarHeaderParameter = {};
477
+ const localVarQueryParameter = {};
478
+ // authentication accessToken required
479
+ // http bearer authentication required
480
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
458
481
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
459
482
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
460
483
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -890,20 +913,33 @@ const DefaultApiFp = function (configuration) {
890
913
  });
891
914
  },
892
915
  /**
893
- * Gets Trust Lists for a specific owner
894
- * @param {string} [ownerId]
916
+ * Provides a list of Trusted Lists
895
917
  * @param {*} [options] Override http request option.
896
918
  * @throws {RequiredError}
897
919
  */
898
- tlList(ownerId, options) {
920
+ tlList(options) {
899
921
  return __awaiter(this, void 0, void 0, function* () {
900
922
  var _a, _b, _c;
901
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tlList(ownerId, options);
923
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tlList(options);
902
924
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
903
925
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
904
926
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
905
927
  });
906
928
  },
929
+ /**
930
+ * Provides a list of Trusted Lists for an authenticated owner
931
+ * @param {*} [options] Override http request option.
932
+ * @throws {RequiredError}
933
+ */
934
+ tlListByOwner(options) {
935
+ return __awaiter(this, void 0, void 0, function* () {
936
+ var _a, _b, _c;
937
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tlListByOwner(options);
938
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
939
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlListByOwner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
940
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
941
+ });
942
+ },
907
943
  /**
908
944
  * Updates a Trust List based on the specified payload.
909
945
  * @param {string} tlId
@@ -1139,13 +1175,20 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1139
1175
  return localVarFp.tlGet(tlId, options).then((request) => request(axios, basePath));
1140
1176
  },
1141
1177
  /**
1142
- * Gets Trust Lists for a specific owner
1143
- * @param {string} [ownerId]
1178
+ * Provides a list of Trusted Lists
1144
1179
  * @param {*} [options] Override http request option.
1145
1180
  * @throws {RequiredError}
1146
1181
  */
1147
- tlList(ownerId, options) {
1148
- return localVarFp.tlList(ownerId, options).then((request) => request(axios, basePath));
1182
+ tlList(options) {
1183
+ return localVarFp.tlList(options).then((request) => request(axios, basePath));
1184
+ },
1185
+ /**
1186
+ * Provides a list of Trusted Lists for an authenticated owner
1187
+ * @param {*} [options] Override http request option.
1188
+ * @throws {RequiredError}
1189
+ */
1190
+ tlListByOwner(options) {
1191
+ return localVarFp.tlListByOwner(options).then((request) => request(axios, basePath));
1149
1192
  },
1150
1193
  /**
1151
1194
  * Updates a Trust List based on the specified payload.
@@ -1338,13 +1381,20 @@ class DefaultApi extends base_1.BaseAPI {
1338
1381
  return (0, exports.DefaultApiFp)(this.configuration).tlGet(tlId, options).then((request) => request(this.axios, this.basePath));
1339
1382
  }
1340
1383
  /**
1341
- * Gets Trust Lists for a specific owner
1342
- * @param {string} [ownerId]
1384
+ * Provides a list of Trusted Lists
1385
+ * @param {*} [options] Override http request option.
1386
+ * @throws {RequiredError}
1387
+ */
1388
+ tlList(options) {
1389
+ return (0, exports.DefaultApiFp)(this.configuration).tlList(options).then((request) => request(this.axios, this.basePath));
1390
+ }
1391
+ /**
1392
+ * Provides a list of Trusted Lists for an authenticated owner
1343
1393
  * @param {*} [options] Override http request option.
1344
1394
  * @throws {RequiredError}
1345
1395
  */
1346
- tlList(ownerId, options) {
1347
- return (0, exports.DefaultApiFp)(this.configuration).tlList(ownerId, options).then((request) => request(this.axios, this.basePath));
1396
+ tlListByOwner(options) {
1397
+ return (0, exports.DefaultApiFp)(this.configuration).tlListByOwner(options).then((request) => request(this.axios, this.basePath));
1348
1398
  }
1349
1399
  /**
1350
1400
  * Updates a Trust List based on the specified payload.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idunion/tl-sdk",
3
3
  "private": false,
4
- "version": "0.0.41",
4
+ "version": "0.0.43",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {