@idunion/tl-sdk 0.0.30 → 0.0.32
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 +30 -1
- package/api.js +64 -0
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -203,7 +203,8 @@ export interface Tlr {
|
|
|
203
203
|
*/
|
|
204
204
|
'status': TlrStatusEnum;
|
|
205
205
|
'accreditedFor'?: Array<AccreditedFor>;
|
|
206
|
-
'onboardingCredentials'
|
|
206
|
+
'onboardingCredentials': Array<OnboardingCredential>;
|
|
207
|
+
'isRoot': boolean;
|
|
207
208
|
}
|
|
208
209
|
export declare const TlrStatusEnum: {
|
|
209
210
|
readonly Unverified: "unverified";
|
|
@@ -293,6 +294,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
293
294
|
* @throws {RequiredError}
|
|
294
295
|
*/
|
|
295
296
|
tlCreate: (tlPayload?: TlPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
297
|
+
/**
|
|
298
|
+
* Destroys the Trust List.
|
|
299
|
+
* @param {string} tlId
|
|
300
|
+
* @param {*} [options] Override http request option.
|
|
301
|
+
* @throws {RequiredError}
|
|
302
|
+
*/
|
|
303
|
+
tlDelete: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
296
304
|
/**
|
|
297
305
|
* Gets the specified Trust List
|
|
298
306
|
* @param {string} tlId
|
|
@@ -419,6 +427,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
419
427
|
* @throws {RequiredError}
|
|
420
428
|
*/
|
|
421
429
|
tlCreate(tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
|
|
430
|
+
/**
|
|
431
|
+
* Destroys the Trust List.
|
|
432
|
+
* @param {string} tlId
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
tlDelete(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
422
437
|
/**
|
|
423
438
|
* Gets the specified Trust List
|
|
424
439
|
* @param {string} tlId
|
|
@@ -545,6 +560,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
545
560
|
* @throws {RequiredError}
|
|
546
561
|
*/
|
|
547
562
|
tlCreate(tlPayload?: TlPayload, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
|
|
563
|
+
/**
|
|
564
|
+
* Destroys the Trust List.
|
|
565
|
+
* @param {string} tlId
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
*/
|
|
569
|
+
tlDelete(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
548
570
|
/**
|
|
549
571
|
* Gets the specified Trust List
|
|
550
572
|
* @param {string} tlId
|
|
@@ -671,6 +693,13 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
671
693
|
* @throws {RequiredError}
|
|
672
694
|
*/
|
|
673
695
|
tlCreate(tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
|
|
696
|
+
/**
|
|
697
|
+
* Destroys the Trust List.
|
|
698
|
+
* @param {string} tlId
|
|
699
|
+
* @param {*} [options] Override http request option.
|
|
700
|
+
* @throws {RequiredError}
|
|
701
|
+
*/
|
|
702
|
+
tlDelete(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
674
703
|
/**
|
|
675
704
|
* Gets the specified Trust List
|
|
676
705
|
* @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
|