@idunion/tl-sdk 0.0.56 → 0.0.57

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 CHANGED
@@ -268,6 +268,19 @@ export interface TlrCreatePayload {
268
268
  'didKey'?: string;
269
269
  'csr'?: string;
270
270
  'orgName': string;
271
+ 'orgTradeName': string;
272
+ 'orgStreetAddress': string;
273
+ 'orgCity': string;
274
+ 'orgState': string;
275
+ 'orgPostalCode': string;
276
+ 'orgCountry': string;
277
+ 'orgEmail': string;
278
+ 'orgPhone': string;
279
+ 'orgWebAddress': string;
280
+ 'orgToC': string;
281
+ 'walletSolutionName': string;
282
+ 'walletSolutionUrl': string;
283
+ 'walletSolutionRefId': string;
271
284
  }
272
285
  export interface TlrCreatedResult {
273
286
  'did': string;
@@ -353,12 +366,19 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
353
366
  */
354
367
  didVerificationMethodPatch: (tlId: string, tlrId: string, verificationMethodPatchPayload?: VerificationMethodPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
355
368
  /**
356
- * Returns an ETSI Trusted list
369
+ * Returns an ETSI 119 602 Trusted list
357
370
  * @param {string} tlId
358
371
  * @param {*} [options] Override http request option.
359
372
  * @throws {RequiredError}
360
373
  */
361
- etsiTlGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
374
+ etsiTl602Get: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
375
+ /**
376
+ * Returns an ETSI 119 612 Trusted list
377
+ * @param {string} tlId
378
+ * @param {*} [options] Override http request option.
379
+ * @throws {RequiredError}
380
+ */
381
+ etsiTl612Get: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
362
382
  /**
363
383
  *
364
384
  * @param {*} [options] Override http request option.
@@ -523,12 +543,19 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
523
543
  */
524
544
  didVerificationMethodPatch(tlId: string, tlrId: string, verificationMethodPatchPayload?: VerificationMethodPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
525
545
  /**
526
- * Returns an ETSI Trusted list
546
+ * Returns an ETSI 119 602 Trusted list
547
+ * @param {string} tlId
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ */
551
+ etsiTl602Get(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
552
+ /**
553
+ * Returns an ETSI 119 612 Trusted list
527
554
  * @param {string} tlId
528
555
  * @param {*} [options] Override http request option.
529
556
  * @throws {RequiredError}
530
557
  */
531
- etsiTlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
558
+ etsiTl612Get(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
532
559
  /**
533
560
  *
534
561
  * @param {*} [options] Override http request option.
@@ -693,12 +720,19 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
693
720
  */
694
721
  didVerificationMethodPatch(tlId: string, tlrId: string, verificationMethodPatchPayload?: VerificationMethodPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<void>;
695
722
  /**
696
- * Returns an ETSI Trusted list
723
+ * Returns an ETSI 119 602 Trusted list
697
724
  * @param {string} tlId
698
725
  * @param {*} [options] Override http request option.
699
726
  * @throws {RequiredError}
700
727
  */
701
- etsiTlGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<object>;
728
+ etsiTl602Get(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<object>;
729
+ /**
730
+ * Returns an ETSI 119 612 Trusted list
731
+ * @param {string} tlId
732
+ * @param {*} [options] Override http request option.
733
+ * @throws {RequiredError}
734
+ */
735
+ etsiTl612Get(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<object>;
702
736
  /**
703
737
  *
704
738
  * @param {*} [options] Override http request option.
@@ -863,12 +897,19 @@ export declare class DefaultApi extends BaseAPI {
863
897
  */
864
898
  didVerificationMethodPatch(tlId: string, tlrId: string, verificationMethodPatchPayload?: VerificationMethodPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
865
899
  /**
866
- * Returns an ETSI Trusted list
900
+ * Returns an ETSI 119 602 Trusted list
901
+ * @param {string} tlId
902
+ * @param {*} [options] Override http request option.
903
+ * @throws {RequiredError}
904
+ */
905
+ etsiTl602Get(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
906
+ /**
907
+ * Returns an ETSI 119 612 Trusted list
867
908
  * @param {string} tlId
868
909
  * @param {*} [options] Override http request option.
869
910
  * @throws {RequiredError}
870
911
  */
871
- etsiTlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
912
+ etsiTl612Get(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
872
913
  /**
873
914
  *
874
915
  * @param {*} [options] Override http request option.
package/api.js CHANGED
@@ -197,15 +197,47 @@ const DefaultApiAxiosParamCreator = function (configuration) {
197
197
  };
198
198
  }),
199
199
  /**
200
- * Returns an ETSI Trusted list
200
+ * Returns an ETSI 119 602 Trusted list
201
201
  * @param {string} tlId
202
202
  * @param {*} [options] Override http request option.
203
203
  * @throws {RequiredError}
204
204
  */
205
- etsiTlGet: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
205
+ etsiTl602Get: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
206
206
  // verify required parameter 'tlId' is not null or undefined
207
- (0, common_1.assertParamExists)('etsiTlGet', 'tlId', tlId);
208
- const localVarPath = `/{tl_id}/etsi/tsl.xml`
207
+ (0, common_1.assertParamExists)('etsiTl602Get', 'tlId', tlId);
208
+ const localVarPath = `/{tl_id}/etsi/119_602_tl.xml`
209
+ .replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
210
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
211
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
+ let baseOptions;
213
+ if (configuration) {
214
+ baseOptions = configuration.baseOptions;
215
+ }
216
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
217
+ const localVarHeaderParameter = {};
218
+ const localVarQueryParameter = {};
219
+ // authentication accessToken required
220
+ // http bearer authentication required
221
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
222
+ localVarHeaderParameter['Accept'] = 'application/xml,application/json';
223
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
224
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
225
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
226
+ return {
227
+ url: (0, common_1.toPathString)(localVarUrlObj),
228
+ options: localVarRequestOptions,
229
+ };
230
+ }),
231
+ /**
232
+ * Returns an ETSI 119 612 Trusted list
233
+ * @param {string} tlId
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ etsiTl612Get: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
238
+ // verify required parameter 'tlId' is not null or undefined
239
+ (0, common_1.assertParamExists)('etsiTl612Get', 'tlId', tlId);
240
+ const localVarPath = `/{tl_id}/etsi/119_612_tl.xml`
209
241
  .replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
210
242
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
211
243
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -843,17 +875,32 @@ const DefaultApiFp = function (configuration) {
843
875
  });
844
876
  },
845
877
  /**
846
- * Returns an ETSI Trusted list
878
+ * Returns an ETSI 119 602 Trusted list
879
+ * @param {string} tlId
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ */
883
+ etsiTl602Get(tlId, options) {
884
+ return __awaiter(this, void 0, void 0, function* () {
885
+ var _a, _b, _c;
886
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.etsiTl602Get(tlId, options);
887
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
888
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.etsiTl602Get']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
889
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
890
+ });
891
+ },
892
+ /**
893
+ * Returns an ETSI 119 612 Trusted list
847
894
  * @param {string} tlId
848
895
  * @param {*} [options] Override http request option.
849
896
  * @throws {RequiredError}
850
897
  */
851
- etsiTlGet(tlId, options) {
898
+ etsiTl612Get(tlId, options) {
852
899
  return __awaiter(this, void 0, void 0, function* () {
853
900
  var _a, _b, _c;
854
- const localVarAxiosArgs = yield localVarAxiosParamCreator.etsiTlGet(tlId, options);
901
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.etsiTl612Get(tlId, options);
855
902
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
856
- 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;
903
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.etsiTl612Get']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
857
904
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
858
905
  });
859
906
  },
@@ -1169,13 +1216,22 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1169
1216
  return localVarFp.didVerificationMethodPatch(tlId, tlrId, verificationMethodPatchPayload, options).then((request) => request(axios, basePath));
1170
1217
  },
1171
1218
  /**
1172
- * Returns an ETSI Trusted list
1219
+ * Returns an ETSI 119 602 Trusted list
1173
1220
  * @param {string} tlId
1174
1221
  * @param {*} [options] Override http request option.
1175
1222
  * @throws {RequiredError}
1176
1223
  */
1177
- etsiTlGet(tlId, options) {
1178
- return localVarFp.etsiTlGet(tlId, options).then((request) => request(axios, basePath));
1224
+ etsiTl602Get(tlId, options) {
1225
+ return localVarFp.etsiTl602Get(tlId, options).then((request) => request(axios, basePath));
1226
+ },
1227
+ /**
1228
+ * Returns an ETSI 119 612 Trusted list
1229
+ * @param {string} tlId
1230
+ * @param {*} [options] Override http request option.
1231
+ * @throws {RequiredError}
1232
+ */
1233
+ etsiTl612Get(tlId, options) {
1234
+ return localVarFp.etsiTl612Get(tlId, options).then((request) => request(axios, basePath));
1179
1235
  },
1180
1236
  /**
1181
1237
  *
@@ -1385,13 +1441,22 @@ class DefaultApi extends base_1.BaseAPI {
1385
1441
  return (0, exports.DefaultApiFp)(this.configuration).didVerificationMethodPatch(tlId, tlrId, verificationMethodPatchPayload, options).then((request) => request(this.axios, this.basePath));
1386
1442
  }
1387
1443
  /**
1388
- * Returns an ETSI Trusted list
1444
+ * Returns an ETSI 119 602 Trusted list
1445
+ * @param {string} tlId
1446
+ * @param {*} [options] Override http request option.
1447
+ * @throws {RequiredError}
1448
+ */
1449
+ etsiTl602Get(tlId, options) {
1450
+ return (0, exports.DefaultApiFp)(this.configuration).etsiTl602Get(tlId, options).then((request) => request(this.axios, this.basePath));
1451
+ }
1452
+ /**
1453
+ * Returns an ETSI 119 612 Trusted list
1389
1454
  * @param {string} tlId
1390
1455
  * @param {*} [options] Override http request option.
1391
1456
  * @throws {RequiredError}
1392
1457
  */
1393
- etsiTlGet(tlId, options) {
1394
- return (0, exports.DefaultApiFp)(this.configuration).etsiTlGet(tlId, options).then((request) => request(this.axios, this.basePath));
1458
+ etsiTl612Get(tlId, options) {
1459
+ return (0, exports.DefaultApiFp)(this.configuration).etsiTl612Get(tlId, options).then((request) => request(this.axios, this.basePath));
1395
1460
  }
1396
1461
  /**
1397
1462
  *
package/common.d.ts CHANGED
@@ -28,7 +28,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
28
28
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
29
29
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
30
30
  */
31
- export declare const replaceWithSerializableTypeIfNeeded: (key: any, value: any) => any;
31
+ export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
32
32
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
33
33
  export declare const toPathString: (url: URL) => string;
34
34
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/common.js CHANGED
@@ -105,6 +105,7 @@ exports.setSearchParams = setSearchParams;
105
105
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
106
106
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
107
107
  */
108
+ // @ts-ignore
108
109
  const replaceWithSerializableTypeIfNeeded = function (key, value) {
109
110
  if (value instanceof Set) {
110
111
  return Array.from(value);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idunion/tl-sdk",
3
3
  "private": false,
4
- "version": "0.0.56",
4
+ "version": "0.0.57",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {