@idunion/tl-sdk 0.0.30 → 0.0.31
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/api.d.ts +28 -0
- package/api.js +64 -0
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -293,6 +293,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
293
293
|
* @throws {RequiredError}
|
|
294
294
|
*/
|
|
295
295
|
tlCreate: (tlPayload?: TlPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
296
|
+
/**
|
|
297
|
+
* Destroys the Trust List.
|
|
298
|
+
* @param {string} tlId
|
|
299
|
+
* @param {*} [options] Override http request option.
|
|
300
|
+
* @throws {RequiredError}
|
|
301
|
+
*/
|
|
302
|
+
tlDelete: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
296
303
|
/**
|
|
297
304
|
* Gets the specified Trust List
|
|
298
305
|
* @param {string} tlId
|
|
@@ -419,6 +426,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
419
426
|
* @throws {RequiredError}
|
|
420
427
|
*/
|
|
421
428
|
tlCreate(tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
|
|
429
|
+
/**
|
|
430
|
+
* Destroys the Trust List.
|
|
431
|
+
* @param {string} tlId
|
|
432
|
+
* @param {*} [options] Override http request option.
|
|
433
|
+
* @throws {RequiredError}
|
|
434
|
+
*/
|
|
435
|
+
tlDelete(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
422
436
|
/**
|
|
423
437
|
* Gets the specified Trust List
|
|
424
438
|
* @param {string} tlId
|
|
@@ -545,6 +559,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
545
559
|
* @throws {RequiredError}
|
|
546
560
|
*/
|
|
547
561
|
tlCreate(tlPayload?: TlPayload, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
|
|
562
|
+
/**
|
|
563
|
+
* Destroys the Trust List.
|
|
564
|
+
* @param {string} tlId
|
|
565
|
+
* @param {*} [options] Override http request option.
|
|
566
|
+
* @throws {RequiredError}
|
|
567
|
+
*/
|
|
568
|
+
tlDelete(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
548
569
|
/**
|
|
549
570
|
* Gets the specified Trust List
|
|
550
571
|
* @param {string} tlId
|
|
@@ -671,6 +692,13 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
671
692
|
* @throws {RequiredError}
|
|
672
693
|
*/
|
|
673
694
|
tlCreate(tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
|
|
695
|
+
/**
|
|
696
|
+
* Destroys the Trust List.
|
|
697
|
+
* @param {string} tlId
|
|
698
|
+
* @param {*} [options] Override http request option.
|
|
699
|
+
* @throws {RequiredError}
|
|
700
|
+
*/
|
|
701
|
+
tlDelete(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
674
702
|
/**
|
|
675
703
|
* Gets the specified Trust List
|
|
676
704
|
* @param {string} tlId
|
package/api.js
CHANGED
|
@@ -300,6 +300,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
300
300
|
options: localVarRequestOptions,
|
|
301
301
|
};
|
|
302
302
|
}),
|
|
303
|
+
/**
|
|
304
|
+
* Destroys the Trust List.
|
|
305
|
+
* @param {string} tlId
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
tlDelete: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
|
|
310
|
+
// verify required parameter 'tlId' is not null or undefined
|
|
311
|
+
(0, common_1.assertParamExists)('tlDelete', 'tlId', tlId);
|
|
312
|
+
const localVarPath = `/{tl_id}`
|
|
313
|
+
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
314
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
315
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
316
|
+
let baseOptions;
|
|
317
|
+
if (configuration) {
|
|
318
|
+
baseOptions = configuration.baseOptions;
|
|
319
|
+
}
|
|
320
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
321
|
+
const localVarHeaderParameter = {};
|
|
322
|
+
const localVarQueryParameter = {};
|
|
323
|
+
// authentication accessToken required
|
|
324
|
+
// http bearer authentication required
|
|
325
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
326
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
327
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
328
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
329
|
+
return {
|
|
330
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
331
|
+
options: localVarRequestOptions,
|
|
332
|
+
};
|
|
333
|
+
}),
|
|
303
334
|
/**
|
|
304
335
|
* Gets the specified Trust List
|
|
305
336
|
* @param {string} tlId
|
|
@@ -691,6 +722,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
691
722
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
692
723
|
});
|
|
693
724
|
},
|
|
725
|
+
/**
|
|
726
|
+
* Destroys the Trust List.
|
|
727
|
+
* @param {string} tlId
|
|
728
|
+
* @param {*} [options] Override http request option.
|
|
729
|
+
* @throws {RequiredError}
|
|
730
|
+
*/
|
|
731
|
+
tlDelete(tlId, options) {
|
|
732
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
733
|
+
var _a, _b, _c;
|
|
734
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlDelete(tlId, options);
|
|
735
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
736
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
737
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
738
|
+
});
|
|
739
|
+
},
|
|
694
740
|
/**
|
|
695
741
|
* Gets the specified Trust List
|
|
696
742
|
* @param {string} tlId
|
|
@@ -901,6 +947,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
901
947
|
tlCreate(tlPayload, options) {
|
|
902
948
|
return localVarFp.tlCreate(tlPayload, options).then((request) => request(axios, basePath));
|
|
903
949
|
},
|
|
950
|
+
/**
|
|
951
|
+
* Destroys the Trust List.
|
|
952
|
+
* @param {string} tlId
|
|
953
|
+
* @param {*} [options] Override http request option.
|
|
954
|
+
* @throws {RequiredError}
|
|
955
|
+
*/
|
|
956
|
+
tlDelete(tlId, options) {
|
|
957
|
+
return localVarFp.tlDelete(tlId, options).then((request) => request(axios, basePath));
|
|
958
|
+
},
|
|
904
959
|
/**
|
|
905
960
|
* Gets the specified Trust List
|
|
906
961
|
* @param {string} tlId
|
|
@@ -1061,6 +1116,15 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1061
1116
|
tlCreate(tlPayload, options) {
|
|
1062
1117
|
return (0, exports.DefaultApiFp)(this.configuration).tlCreate(tlPayload, options).then((request) => request(this.axios, this.basePath));
|
|
1063
1118
|
}
|
|
1119
|
+
/**
|
|
1120
|
+
* Destroys the Trust List.
|
|
1121
|
+
* @param {string} tlId
|
|
1122
|
+
* @param {*} [options] Override http request option.
|
|
1123
|
+
* @throws {RequiredError}
|
|
1124
|
+
*/
|
|
1125
|
+
tlDelete(tlId, options) {
|
|
1126
|
+
return (0, exports.DefaultApiFp)(this.configuration).tlDelete(tlId, options).then((request) => request(this.axios, this.basePath));
|
|
1127
|
+
}
|
|
1064
1128
|
/**
|
|
1065
1129
|
* Gets the specified Trust List
|
|
1066
1130
|
* @param {string} tlId
|