@idunion/tl-sdk 0.0.32 → 0.0.33

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 -0
  2. package/api.js +71 -0
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -323,6 +323,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
323
323
  * @throws {RequiredError}
324
324
  */
325
325
  tlPatch: (tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
326
+ /**
327
+ * Removes a specific Trust List Record
328
+ * @param {string} tlId Trust List Identifier
329
+ * @param {string} tlrId Trust List Record Identifier
330
+ * @param {*} [options] Override http request option.
331
+ * @throws {RequiredError}
332
+ */
333
+ tlrDelete: (tlId: string, tlrId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
326
334
  /**
327
335
  * Retrieves a specific Trust List record
328
336
  * @param {string} tlId Trust List Identifier
@@ -456,6 +464,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
456
464
  * @throws {RequiredError}
457
465
  */
458
466
  tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
467
+ /**
468
+ * Removes a specific Trust List Record
469
+ * @param {string} tlId Trust List Identifier
470
+ * @param {string} tlrId Trust List Record Identifier
471
+ * @param {*} [options] Override http request option.
472
+ * @throws {RequiredError}
473
+ */
474
+ tlrDelete(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
459
475
  /**
460
476
  * Retrieves a specific Trust List record
461
477
  * @param {string} tlId Trust List Identifier
@@ -589,6 +605,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
589
605
  * @throws {RequiredError}
590
606
  */
591
607
  tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
608
+ /**
609
+ * Removes a specific Trust List Record
610
+ * @param {string} tlId Trust List Identifier
611
+ * @param {string} tlrId Trust List Record Identifier
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ */
615
+ tlrDelete(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
592
616
  /**
593
617
  * Retrieves a specific Trust List record
594
618
  * @param {string} tlId Trust List Identifier
@@ -722,6 +746,14 @@ export declare class DefaultApi extends BaseAPI {
722
746
  * @throws {RequiredError}
723
747
  */
724
748
  tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
749
+ /**
750
+ * Removes a specific Trust List Record
751
+ * @param {string} tlId Trust List Identifier
752
+ * @param {string} tlrId Trust List Record Identifier
753
+ * @param {*} [options] Override http request option.
754
+ * @throws {RequiredError}
755
+ */
756
+ tlrDelete(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
725
757
  /**
726
758
  * Retrieves a specific Trust List record
727
759
  * @param {string} tlId Trust List Identifier
package/api.js CHANGED
@@ -427,6 +427,41 @@ const DefaultApiAxiosParamCreator = function (configuration) {
427
427
  options: localVarRequestOptions,
428
428
  };
429
429
  }),
430
+ /**
431
+ * Removes a specific Trust List Record
432
+ * @param {string} tlId Trust List Identifier
433
+ * @param {string} tlrId Trust List Record Identifier
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ tlrDelete: (tlId_1, tlrId_1, ...args_1) => __awaiter(this, [tlId_1, tlrId_1, ...args_1], void 0, function* (tlId, tlrId, options = {}) {
438
+ // verify required parameter 'tlId' is not null or undefined
439
+ (0, common_1.assertParamExists)('tlrDelete', 'tlId', tlId);
440
+ // verify required parameter 'tlrId' is not null or undefined
441
+ (0, common_1.assertParamExists)('tlrDelete', 'tlrId', tlrId);
442
+ const localVarPath = `/{tl_id}/{tlr_id}`
443
+ .replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)))
444
+ .replace(`{${"tlr_id"}}`, encodeURIComponent(String(tlrId)));
445
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
446
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
447
+ let baseOptions;
448
+ if (configuration) {
449
+ baseOptions = configuration.baseOptions;
450
+ }
451
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
452
+ const localVarHeaderParameter = {};
453
+ const localVarQueryParameter = {};
454
+ // authentication accessToken required
455
+ // http bearer authentication required
456
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
457
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
458
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
459
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
460
+ return {
461
+ url: (0, common_1.toPathString)(localVarUrlObj),
462
+ options: localVarRequestOptions,
463
+ };
464
+ }),
430
465
  /**
431
466
  * Retrieves a specific Trust List record
432
467
  * @param {string} tlId Trust List Identifier
@@ -783,6 +818,22 @@ const DefaultApiFp = function (configuration) {
783
818
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
784
819
  });
785
820
  },
821
+ /**
822
+ * Removes a specific Trust List Record
823
+ * @param {string} tlId Trust List Identifier
824
+ * @param {string} tlrId Trust List Record Identifier
825
+ * @param {*} [options] Override http request option.
826
+ * @throws {RequiredError}
827
+ */
828
+ tlrDelete(tlId, tlrId, options) {
829
+ return __awaiter(this, void 0, void 0, function* () {
830
+ var _a, _b, _c;
831
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tlrDelete(tlId, tlrId, options);
832
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
833
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlrDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
834
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
835
+ });
836
+ },
786
837
  /**
787
838
  * Retrieves a specific Trust List record
788
839
  * @param {string} tlId Trust List Identifier
@@ -984,6 +1035,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
984
1035
  tlPatch(tlId, tlPayload, options) {
985
1036
  return localVarFp.tlPatch(tlId, tlPayload, options).then((request) => request(axios, basePath));
986
1037
  },
1038
+ /**
1039
+ * Removes a specific Trust List Record
1040
+ * @param {string} tlId Trust List Identifier
1041
+ * @param {string} tlrId Trust List Record Identifier
1042
+ * @param {*} [options] Override http request option.
1043
+ * @throws {RequiredError}
1044
+ */
1045
+ tlrDelete(tlId, tlrId, options) {
1046
+ return localVarFp.tlrDelete(tlId, tlrId, options).then((request) => request(axios, basePath));
1047
+ },
987
1048
  /**
988
1049
  * Retrieves a specific Trust List record
989
1050
  * @param {string} tlId Trust List Identifier
@@ -1153,6 +1214,16 @@ class DefaultApi extends base_1.BaseAPI {
1153
1214
  tlPatch(tlId, tlPayload, options) {
1154
1215
  return (0, exports.DefaultApiFp)(this.configuration).tlPatch(tlId, tlPayload, options).then((request) => request(this.axios, this.basePath));
1155
1216
  }
1217
+ /**
1218
+ * Removes a specific Trust List Record
1219
+ * @param {string} tlId Trust List Identifier
1220
+ * @param {string} tlrId Trust List Record Identifier
1221
+ * @param {*} [options] Override http request option.
1222
+ * @throws {RequiredError}
1223
+ */
1224
+ tlrDelete(tlId, tlrId, options) {
1225
+ return (0, exports.DefaultApiFp)(this.configuration).tlrDelete(tlId, tlrId, options).then((request) => request(this.axios, this.basePath));
1226
+ }
1156
1227
  /**
1157
1228
  * Retrieves a specific Trust List record
1158
1229
  * @param {string} tlId Trust List Identifier
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idunion/tl-sdk",
3
3
  "private": false,
4
- "version": "0.0.32",
4
+ "version": "0.0.33",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {