@idunion/tl-sdk 0.0.41 → 0.0.42

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 +8 -12
  2. package/api.js +11 -18
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -380,12 +380,11 @@ 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>;
389
388
  /**
390
389
  * Updates a Trust List based on the specified payload.
391
390
  * @param {string} tlId
@@ -537,12 +536,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
537
536
  */
538
537
  tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
539
538
  /**
540
- * Gets Trust Lists for a specific owner
541
- * @param {string} [ownerId]
539
+ * Provides a list of Trusted Lists
542
540
  * @param {*} [options] Override http request option.
543
541
  * @throws {RequiredError}
544
542
  */
545
- tlList(ownerId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlList>>;
543
+ tlList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlList>>;
546
544
  /**
547
545
  * Updates a Trust List based on the specified payload.
548
546
  * @param {string} tlId
@@ -694,12 +692,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
694
692
  */
695
693
  tlGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
696
694
  /**
697
- * Gets Trust Lists for a specific owner
698
- * @param {string} [ownerId]
695
+ * Provides a list of Trusted Lists
699
696
  * @param {*} [options] Override http request option.
700
697
  * @throws {RequiredError}
701
698
  */
702
- tlList(ownerId?: string, options?: RawAxiosRequestConfig): AxiosPromise<TlList>;
699
+ tlList(options?: RawAxiosRequestConfig): AxiosPromise<TlList>;
703
700
  /**
704
701
  * Updates a Trust List based on the specified payload.
705
702
  * @param {string} tlId
@@ -851,12 +848,11 @@ export declare class DefaultApi extends BaseAPI {
851
848
  */
852
849
  tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
853
850
  /**
854
- * Gets Trust Lists for a specific owner
855
- * @param {string} [ownerId]
851
+ * Provides a list of Trusted Lists
856
852
  * @param {*} [options] Override http request option.
857
853
  * @throws {RequiredError}
858
854
  */
859
- tlList(ownerId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
855
+ tlList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
860
856
  /**
861
857
  * Updates a Trust List based on the specified payload.
862
858
  * @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,6 @@ 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;
457
- }
458
454
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
459
455
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
460
456
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -890,15 +886,14 @@ const DefaultApiFp = function (configuration) {
890
886
  });
891
887
  },
892
888
  /**
893
- * Gets Trust Lists for a specific owner
894
- * @param {string} [ownerId]
889
+ * Provides a list of Trusted Lists
895
890
  * @param {*} [options] Override http request option.
896
891
  * @throws {RequiredError}
897
892
  */
898
- tlList(ownerId, options) {
893
+ tlList(options) {
899
894
  return __awaiter(this, void 0, void 0, function* () {
900
895
  var _a, _b, _c;
901
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tlList(ownerId, options);
896
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tlList(options);
902
897
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
903
898
  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
899
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1139,13 +1134,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1139
1134
  return localVarFp.tlGet(tlId, options).then((request) => request(axios, basePath));
1140
1135
  },
1141
1136
  /**
1142
- * Gets Trust Lists for a specific owner
1143
- * @param {string} [ownerId]
1137
+ * Provides a list of Trusted Lists
1144
1138
  * @param {*} [options] Override http request option.
1145
1139
  * @throws {RequiredError}
1146
1140
  */
1147
- tlList(ownerId, options) {
1148
- return localVarFp.tlList(ownerId, options).then((request) => request(axios, basePath));
1141
+ tlList(options) {
1142
+ return localVarFp.tlList(options).then((request) => request(axios, basePath));
1149
1143
  },
1150
1144
  /**
1151
1145
  * Updates a Trust List based on the specified payload.
@@ -1338,13 +1332,12 @@ class DefaultApi extends base_1.BaseAPI {
1338
1332
  return (0, exports.DefaultApiFp)(this.configuration).tlGet(tlId, options).then((request) => request(this.axios, this.basePath));
1339
1333
  }
1340
1334
  /**
1341
- * Gets Trust Lists for a specific owner
1342
- * @param {string} [ownerId]
1335
+ * Provides a list of Trusted Lists
1343
1336
  * @param {*} [options] Override http request option.
1344
1337
  * @throws {RequiredError}
1345
1338
  */
1346
- tlList(ownerId, options) {
1347
- return (0, exports.DefaultApiFp)(this.configuration).tlList(ownerId, options).then((request) => request(this.axios, this.basePath));
1339
+ tlList(options) {
1340
+ return (0, exports.DefaultApiFp)(this.configuration).tlList(options).then((request) => request(this.axios, this.basePath));
1348
1341
  }
1349
1342
  /**
1350
1343
  * 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.42",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {