@triveria/wallet 0.0.91 → 0.0.93

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 +61 -5
  2. package/api.js +50 -8
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -243,7 +243,19 @@ export interface CredentialList {
243
243
  * @type {Array<CredentialMetadata>}
244
244
  * @memberof CredentialList
245
245
  */
246
- 'list'?: Array<CredentialMetadata>;
246
+ 'list': Array<CredentialMetadata>;
247
+ /**
248
+ *
249
+ * @type {string}
250
+ * @memberof CredentialList
251
+ */
252
+ 'next': string;
253
+ /**
254
+ *
255
+ * @type {string}
256
+ * @memberof CredentialList
257
+ */
258
+ 'previous': string;
247
259
  }
248
260
  /**
249
261
  * Any Credential related accompanying key, value pairs that are not part of the Issued Credential
@@ -270,6 +282,18 @@ export interface CredentialMetadata {
270
282
  * @memberof CredentialMetadata
271
283
  */
272
284
  'type': string;
285
+ /**
286
+ *
287
+ * @type {string}
288
+ * @memberof CredentialMetadata
289
+ */
290
+ 'created'?: string;
291
+ /**
292
+ *
293
+ * @type {string}
294
+ * @memberof CredentialMetadata
295
+ */
296
+ 'updated'?: string;
273
297
  /**
274
298
  *
275
299
  * @type {string}
@@ -1374,10 +1398,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1374
1398
  * @param {string} walletId
1375
1399
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1376
1400
  * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1401
+ * @param {number} [limit] The number of items
1402
+ * @param {number} [skip] The number of items skipped from the beginning of the list.
1403
+ * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
1404
+ * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
1377
1405
  * @param {*} [options] Override http request option.
1378
1406
  * @throws {RequiredError}
1379
1407
  */
1380
- credentialList: (walletId: string, interaction: CredentialListInteractionEnum, type?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1408
+ credentialList: (walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, skip?: number, sortDirection?: CredentialListSortDirectionEnum, sortField?: CredentialListSortFieldEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1381
1409
  /**
1382
1410
  * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1383
1411
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1642,10 +1670,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1642
1670
  * @param {string} walletId
1643
1671
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1644
1672
  * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1673
+ * @param {number} [limit] The number of items
1674
+ * @param {number} [skip] The number of items skipped from the beginning of the list.
1675
+ * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
1676
+ * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
1645
1677
  * @param {*} [options] Override http request option.
1646
1678
  * @throws {RequiredError}
1647
1679
  */
1648
- credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
1680
+ credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, skip?: number, sortDirection?: CredentialListSortDirectionEnum, sortField?: CredentialListSortFieldEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
1649
1681
  /**
1650
1682
  * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1651
1683
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1910,10 +1942,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1910
1942
  * @param {string} walletId
1911
1943
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1912
1944
  * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1945
+ * @param {number} [limit] The number of items
1946
+ * @param {number} [skip] The number of items skipped from the beginning of the list.
1947
+ * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
1948
+ * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
1913
1949
  * @param {*} [options] Override http request option.
1914
1950
  * @throws {RequiredError}
1915
1951
  */
1916
- credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, options?: any): AxiosPromise<CredentialList>;
1952
+ credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, skip?: number, sortDirection?: CredentialListSortDirectionEnum, sortField?: CredentialListSortFieldEnum, options?: any): AxiosPromise<CredentialList>;
1917
1953
  /**
1918
1954
  * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1919
1955
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2185,11 +2221,15 @@ export declare class DefaultApi extends BaseAPI {
2185
2221
  * @param {string} walletId
2186
2222
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
2187
2223
  * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
2224
+ * @param {number} [limit] The number of items
2225
+ * @param {number} [skip] The number of items skipped from the beginning of the list.
2226
+ * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
2227
+ * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
2188
2228
  * @param {*} [options] Override http request option.
2189
2229
  * @throws {RequiredError}
2190
2230
  * @memberof DefaultApi
2191
2231
  */
2192
- credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
2232
+ credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, skip?: number, sortDirection?: CredentialListSortDirectionEnum, sortField?: CredentialListSortFieldEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
2193
2233
  /**
2194
2234
  * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
2195
2235
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2442,3 +2482,19 @@ export declare const CredentialListInteractionEnum: {
2442
2482
  readonly Receive: "receive";
2443
2483
  };
2444
2484
  export type CredentialListInteractionEnum = typeof CredentialListInteractionEnum[keyof typeof CredentialListInteractionEnum];
2485
+ /**
2486
+ * @export
2487
+ */
2488
+ export declare const CredentialListSortDirectionEnum: {
2489
+ readonly Asc: "asc";
2490
+ readonly Desc: "desc";
2491
+ };
2492
+ export type CredentialListSortDirectionEnum = typeof CredentialListSortDirectionEnum[keyof typeof CredentialListSortDirectionEnum];
2493
+ /**
2494
+ * @export
2495
+ */
2496
+ export declare const CredentialListSortFieldEnum: {
2497
+ readonly Updated: "updated";
2498
+ readonly Created: "created";
2499
+ };
2500
+ export type CredentialListSortFieldEnum = typeof CredentialListSortFieldEnum[keyof typeof CredentialListSortFieldEnum];
package/api.js CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventTypeEnum = exports.SystemImpactStatusEnum = exports.PrepareToAccreditRequestTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = exports.AccreditationRequestTypeEnum = void 0;
28
+ exports.CredentialListSortFieldEnum = exports.CredentialListSortDirectionEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventTypeEnum = exports.SystemImpactStatusEnum = exports.PrepareToAccreditRequestTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = exports.AccreditationRequestTypeEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -260,10 +260,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
260
260
  * @param {string} walletId
261
261
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
262
262
  * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
263
+ * @param {number} [limit] The number of items
264
+ * @param {number} [skip] The number of items skipped from the beginning of the list.
265
+ * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
266
+ * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
263
267
  * @param {*} [options] Override http request option.
264
268
  * @throws {RequiredError}
265
269
  */
266
- credentialList: (walletId, interaction, type, options = {}) => __awaiter(this, void 0, void 0, function* () {
270
+ credentialList: (walletId, interaction, type, limit, skip, sortDirection, sortField, options = {}) => __awaiter(this, void 0, void 0, function* () {
267
271
  // verify required parameter 'walletId' is not null or undefined
268
272
  (0, common_1.assertParamExists)('credentialList', 'walletId', walletId);
269
273
  // verify required parameter 'interaction' is not null or undefined
@@ -287,6 +291,18 @@ const DefaultApiAxiosParamCreator = function (configuration) {
287
291
  if (type !== undefined) {
288
292
  localVarQueryParameter['type'] = type;
289
293
  }
294
+ if (limit !== undefined) {
295
+ localVarQueryParameter['limit'] = limit;
296
+ }
297
+ if (skip !== undefined) {
298
+ localVarQueryParameter['skip'] = skip;
299
+ }
300
+ if (sortDirection !== undefined) {
301
+ localVarQueryParameter['sortDirection'] = sortDirection;
302
+ }
303
+ if (sortField !== undefined) {
304
+ localVarQueryParameter['sortField'] = sortField;
305
+ }
290
306
  if (walletId != null) {
291
307
  localVarHeaderParameter['wallet-id'] = String(walletId);
292
308
  }
@@ -1335,13 +1351,17 @@ const DefaultApiFp = function (configuration) {
1335
1351
  * @param {string} walletId
1336
1352
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1337
1353
  * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1354
+ * @param {number} [limit] The number of items
1355
+ * @param {number} [skip] The number of items skipped from the beginning of the list.
1356
+ * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
1357
+ * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
1338
1358
  * @param {*} [options] Override http request option.
1339
1359
  * @throws {RequiredError}
1340
1360
  */
1341
- credentialList(walletId, interaction, type, options) {
1361
+ credentialList(walletId, interaction, type, limit, skip, sortDirection, sortField, options) {
1342
1362
  var _a, _b, _c;
1343
1363
  return __awaiter(this, void 0, void 0, function* () {
1344
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, interaction, type, options);
1364
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, interaction, type, limit, skip, sortDirection, sortField, options);
1345
1365
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1346
1366
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1347
1367
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1849,11 +1869,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1849
1869
  * @param {string} walletId
1850
1870
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1851
1871
  * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1872
+ * @param {number} [limit] The number of items
1873
+ * @param {number} [skip] The number of items skipped from the beginning of the list.
1874
+ * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
1875
+ * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
1852
1876
  * @param {*} [options] Override http request option.
1853
1877
  * @throws {RequiredError}
1854
1878
  */
1855
- credentialList(walletId, interaction, type, options) {
1856
- return localVarFp.credentialList(walletId, interaction, type, options).then((request) => request(axios, basePath));
1879
+ credentialList(walletId, interaction, type, limit, skip, sortDirection, sortField, options) {
1880
+ return localVarFp.credentialList(walletId, interaction, type, limit, skip, sortDirection, sortField, options).then((request) => request(axios, basePath));
1857
1881
  },
1858
1882
  /**
1859
1883
  * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
@@ -2194,12 +2218,16 @@ class DefaultApi extends base_1.BaseAPI {
2194
2218
  * @param {string} walletId
2195
2219
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
2196
2220
  * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
2221
+ * @param {number} [limit] The number of items
2222
+ * @param {number} [skip] The number of items skipped from the beginning of the list.
2223
+ * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
2224
+ * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
2197
2225
  * @param {*} [options] Override http request option.
2198
2226
  * @throws {RequiredError}
2199
2227
  * @memberof DefaultApi
2200
2228
  */
2201
- credentialList(walletId, interaction, type, options) {
2202
- return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, interaction, type, options).then((request) => request(this.axios, this.basePath));
2229
+ credentialList(walletId, interaction, type, limit, skip, sortDirection, sortField, options) {
2230
+ return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, interaction, type, limit, skip, sortDirection, sortField, options).then((request) => request(this.axios, this.basePath));
2203
2231
  }
2204
2232
  /**
2205
2233
  * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
@@ -2509,3 +2537,17 @@ exports.CredentialListInteractionEnum = {
2509
2537
  Presentation: 'presentation',
2510
2538
  Receive: 'receive'
2511
2539
  };
2540
+ /**
2541
+ * @export
2542
+ */
2543
+ exports.CredentialListSortDirectionEnum = {
2544
+ Asc: 'asc',
2545
+ Desc: 'desc'
2546
+ };
2547
+ /**
2548
+ * @export
2549
+ */
2550
+ exports.CredentialListSortFieldEnum = {
2551
+ Updated: 'updated',
2552
+ Created: 'created'
2553
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.91",
4
+ "version": "0.0.93",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {