@idunion/tl-sdk 0.0.33 → 0.0.34

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 +28 -0
  2. package/api.js +64 -0
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -266,6 +266,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
266
266
  * @throws {RequiredError}
267
267
  */
268
268
  didVerificationMethodAdd: (tlId: string, did: string, verificationMethod?: VerificationMethod, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
269
+ /**
270
+ * Returns an ETSI Trusted list
271
+ * @param {string} tlId
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ etsiTlGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
269
276
  /**
270
277
  *
271
278
  * @param {*} [options] Override http request option.
@@ -407,6 +414,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
407
414
  * @throws {RequiredError}
408
415
  */
409
416
  didVerificationMethodAdd(tlId: string, did: string, verificationMethod?: VerificationMethod, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
417
+ /**
418
+ * Returns an ETSI Trusted list
419
+ * @param {string} tlId
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ */
423
+ etsiTlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
410
424
  /**
411
425
  *
412
426
  * @param {*} [options] Override http request option.
@@ -548,6 +562,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
548
562
  * @throws {RequiredError}
549
563
  */
550
564
  didVerificationMethodAdd(tlId: string, did: string, verificationMethod?: VerificationMethod, options?: RawAxiosRequestConfig): AxiosPromise<void>;
565
+ /**
566
+ * Returns an ETSI Trusted list
567
+ * @param {string} tlId
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ etsiTlGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<object>;
551
572
  /**
552
573
  *
553
574
  * @param {*} [options] Override http request option.
@@ -689,6 +710,13 @@ export declare class DefaultApi extends BaseAPI {
689
710
  * @throws {RequiredError}
690
711
  */
691
712
  didVerificationMethodAdd(tlId: string, did: string, verificationMethod?: VerificationMethod, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
713
+ /**
714
+ * Returns an ETSI Trusted list
715
+ * @param {string} tlId
716
+ * @param {*} [options] Override http request option.
717
+ * @throws {RequiredError}
718
+ */
719
+ etsiTlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
692
720
  /**
693
721
  *
694
722
  * @param {*} [options] Override http request option.
package/api.js CHANGED
@@ -187,6 +187,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
187
187
  options: localVarRequestOptions,
188
188
  };
189
189
  }),
190
+ /**
191
+ * Returns an ETSI Trusted list
192
+ * @param {string} tlId
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ etsiTlGet: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
197
+ // verify required parameter 'tlId' is not null or undefined
198
+ (0, common_1.assertParamExists)('etsiTlGet', 'tlId', tlId);
199
+ const localVarPath = `/{tl_id}/etsi/tsl.xml`
200
+ .replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
201
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
202
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
203
+ let baseOptions;
204
+ if (configuration) {
205
+ baseOptions = configuration.baseOptions;
206
+ }
207
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
208
+ const localVarHeaderParameter = {};
209
+ const localVarQueryParameter = {};
210
+ // authentication accessToken required
211
+ // http bearer authentication required
212
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
213
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
214
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
215
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
216
+ return {
217
+ url: (0, common_1.toPathString)(localVarUrlObj),
218
+ options: localVarRequestOptions,
219
+ };
220
+ }),
190
221
  /**
191
222
  *
192
223
  * @param {*} [options] Override http request option.
@@ -697,6 +728,21 @@ const DefaultApiFp = function (configuration) {
697
728
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
698
729
  });
699
730
  },
731
+ /**
732
+ * Returns an ETSI Trusted list
733
+ * @param {string} tlId
734
+ * @param {*} [options] Override http request option.
735
+ * @throws {RequiredError}
736
+ */
737
+ etsiTlGet(tlId, options) {
738
+ return __awaiter(this, void 0, void 0, function* () {
739
+ var _a, _b, _c;
740
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.etsiTlGet(tlId, options);
741
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
742
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.etsiTlGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
743
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
744
+ });
745
+ },
700
746
  /**
701
747
  *
702
748
  * @param {*} [options] Override http request option.
@@ -962,6 +1008,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
962
1008
  didVerificationMethodAdd(tlId, did, verificationMethod, options) {
963
1009
  return localVarFp.didVerificationMethodAdd(tlId, did, verificationMethod, options).then((request) => request(axios, basePath));
964
1010
  },
1011
+ /**
1012
+ * Returns an ETSI Trusted list
1013
+ * @param {string} tlId
1014
+ * @param {*} [options] Override http request option.
1015
+ * @throws {RequiredError}
1016
+ */
1017
+ etsiTlGet(tlId, options) {
1018
+ return localVarFp.etsiTlGet(tlId, options).then((request) => request(axios, basePath));
1019
+ },
965
1020
  /**
966
1021
  *
967
1022
  * @param {*} [options] Override http request option.
@@ -1141,6 +1196,15 @@ class DefaultApi extends base_1.BaseAPI {
1141
1196
  didVerificationMethodAdd(tlId, did, verificationMethod, options) {
1142
1197
  return (0, exports.DefaultApiFp)(this.configuration).didVerificationMethodAdd(tlId, did, verificationMethod, options).then((request) => request(this.axios, this.basePath));
1143
1198
  }
1199
+ /**
1200
+ * Returns an ETSI Trusted list
1201
+ * @param {string} tlId
1202
+ * @param {*} [options] Override http request option.
1203
+ * @throws {RequiredError}
1204
+ */
1205
+ etsiTlGet(tlId, options) {
1206
+ return (0, exports.DefaultApiFp)(this.configuration).etsiTlGet(tlId, options).then((request) => request(this.axios, this.basePath));
1207
+ }
1144
1208
  /**
1145
1209
  *
1146
1210
  * @param {*} [options] Override http request option.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idunion/tl-sdk",
3
3
  "private": false,
4
- "version": "0.0.33",
4
+ "version": "0.0.34",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {