@idunion/tl-sdk 0.0.25 → 0.0.26

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 +33 -0
  2. package/api.js +69 -0
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -1013,6 +1013,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1013
1013
  * @throws {RequiredError}
1014
1014
  */
1015
1015
  tlPatch: (tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1016
+ /**
1017
+ * Retrieves a specific Trust List record
1018
+ * @param {string} tlId Trust List Identifier
1019
+ * @param {string} tlrId Trust List Record Identifier
1020
+ * @param {*} [options] Override http request option.
1021
+ * @throws {RequiredError}
1022
+ */
1023
+ tlrGet: (tlId: string, tlrId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1016
1024
  /**
1017
1025
  * Retrieves a list of Trust List Records.
1018
1026
  * @param {string} orgName
@@ -1124,6 +1132,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1124
1132
  * @throws {RequiredError}
1125
1133
  */
1126
1134
  tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
1135
+ /**
1136
+ * Retrieves a specific Trust List record
1137
+ * @param {string} tlId Trust List Identifier
1138
+ * @param {string} tlrId Trust List Record Identifier
1139
+ * @param {*} [options] Override http request option.
1140
+ * @throws {RequiredError}
1141
+ */
1142
+ tlrGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tlr>>;
1127
1143
  /**
1128
1144
  * Retrieves a list of Trust List Records.
1129
1145
  * @param {string} orgName
@@ -1235,6 +1251,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1235
1251
  * @throws {RequiredError}
1236
1252
  */
1237
1253
  tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
1254
+ /**
1255
+ * Retrieves a specific Trust List record
1256
+ * @param {string} tlId Trust List Identifier
1257
+ * @param {string} tlrId Trust List Record Identifier
1258
+ * @param {*} [options] Override http request option.
1259
+ * @throws {RequiredError}
1260
+ */
1261
+ tlrGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): AxiosPromise<Tlr>;
1238
1262
  /**
1239
1263
  * Retrieves a list of Trust List Records.
1240
1264
  * @param {string} orgName
@@ -1359,6 +1383,15 @@ export declare class DefaultApi extends BaseAPI {
1359
1383
  * @memberof DefaultApi
1360
1384
  */
1361
1385
  tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
1386
+ /**
1387
+ * Retrieves a specific Trust List record
1388
+ * @param {string} tlId Trust List Identifier
1389
+ * @param {string} tlrId Trust List Record Identifier
1390
+ * @param {*} [options] Override http request option.
1391
+ * @throws {RequiredError}
1392
+ * @memberof DefaultApi
1393
+ */
1394
+ tlrGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tlr, any>>;
1362
1395
  /**
1363
1396
  * Retrieves a list of Trust List Records.
1364
1397
  * @param {string} orgName
package/api.js CHANGED
@@ -408,6 +408,38 @@ const DefaultApiAxiosParamCreator = function (configuration) {
408
408
  options: localVarRequestOptions,
409
409
  };
410
410
  }),
411
+ /**
412
+ * Retrieves a specific Trust List record
413
+ * @param {string} tlId Trust List Identifier
414
+ * @param {string} tlrId Trust List Record Identifier
415
+ * @param {*} [options] Override http request option.
416
+ * @throws {RequiredError}
417
+ */
418
+ tlrGet: (tlId_1, tlrId_1, ...args_1) => __awaiter(this, [tlId_1, tlrId_1, ...args_1], void 0, function* (tlId, tlrId, options = {}) {
419
+ // verify required parameter 'tlId' is not null or undefined
420
+ (0, common_1.assertParamExists)('tlrGet', 'tlId', tlId);
421
+ // verify required parameter 'tlrId' is not null or undefined
422
+ (0, common_1.assertParamExists)('tlrGet', 'tlrId', tlrId);
423
+ const localVarPath = `/{tl_id}/{tlr_id}`
424
+ .replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)))
425
+ .replace(`{${"tlr_id"}}`, encodeURIComponent(String(tlrId)));
426
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
427
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
428
+ let baseOptions;
429
+ if (configuration) {
430
+ baseOptions = configuration.baseOptions;
431
+ }
432
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
433
+ const localVarHeaderParameter = {};
434
+ const localVarQueryParameter = {};
435
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
436
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
437
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
438
+ return {
439
+ url: (0, common_1.toPathString)(localVarUrlObj),
440
+ options: localVarRequestOptions,
441
+ };
442
+ }),
411
443
  /**
412
444
  * Retrieves a list of Trust List Records.
413
445
  * @param {string} orgName
@@ -686,6 +718,22 @@ const DefaultApiFp = function (configuration) {
686
718
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
687
719
  });
688
720
  },
721
+ /**
722
+ * Retrieves a specific Trust List record
723
+ * @param {string} tlId Trust List Identifier
724
+ * @param {string} tlrId Trust List Record Identifier
725
+ * @param {*} [options] Override http request option.
726
+ * @throws {RequiredError}
727
+ */
728
+ tlrGet(tlId, tlrId, options) {
729
+ return __awaiter(this, void 0, void 0, function* () {
730
+ var _a, _b, _c;
731
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tlrGet(tlId, tlrId, options);
732
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
733
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlrGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
734
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
735
+ });
736
+ },
689
737
  /**
690
738
  * Retrieves a list of Trust List Records.
691
739
  * @param {string} orgName
@@ -847,6 +895,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
847
895
  tlPatch(tlId, tlPayload, options) {
848
896
  return localVarFp.tlPatch(tlId, tlPayload, options).then((request) => request(axios, basePath));
849
897
  },
898
+ /**
899
+ * Retrieves a specific Trust List record
900
+ * @param {string} tlId Trust List Identifier
901
+ * @param {string} tlrId Trust List Record Identifier
902
+ * @param {*} [options] Override http request option.
903
+ * @throws {RequiredError}
904
+ */
905
+ tlrGet(tlId, tlrId, options) {
906
+ return localVarFp.tlrGet(tlId, tlrId, options).then((request) => request(axios, basePath));
907
+ },
850
908
  /**
851
909
  * Retrieves a list of Trust List Records.
852
910
  * @param {string} orgName
@@ -1001,6 +1059,17 @@ class DefaultApi extends base_1.BaseAPI {
1001
1059
  tlPatch(tlId, tlPayload, options) {
1002
1060
  return (0, exports.DefaultApiFp)(this.configuration).tlPatch(tlId, tlPayload, options).then((request) => request(this.axios, this.basePath));
1003
1061
  }
1062
+ /**
1063
+ * Retrieves a specific Trust List record
1064
+ * @param {string} tlId Trust List Identifier
1065
+ * @param {string} tlrId Trust List Record Identifier
1066
+ * @param {*} [options] Override http request option.
1067
+ * @throws {RequiredError}
1068
+ * @memberof DefaultApi
1069
+ */
1070
+ tlrGet(tlId, tlrId, options) {
1071
+ return (0, exports.DefaultApiFp)(this.configuration).tlrGet(tlId, tlrId, options).then((request) => request(this.axios, this.basePath));
1072
+ }
1004
1073
  /**
1005
1074
  * Retrieves a list of Trust List Records.
1006
1075
  * @param {string} orgName
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idunion/tl-sdk",
3
3
  "private": false,
4
- "version": "0.0.25",
4
+ "version": "0.0.26",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {