@lwshen/vault-hub-ts-fetch-client 0.20250724.162355 → 0.20250725.162305

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @lwshen/vault-hub-ts-fetch-client@0.20250724.162355
1
+ ## @lwshen/vault-hub-ts-fetch-client@0.20250725.162305
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @lwshen/vault-hub-ts-fetch-client@0.20250724.162355 --save
39
+ npm install @lwshen/vault-hub-ts-fetch-client@0.20250725.162305 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -16,7 +16,7 @@ export interface GetAuditLogsRequest {
16
16
  pageIndex: number;
17
17
  startDate?: Date;
18
18
  endDate?: Date;
19
- vaultId?: number;
19
+ vaultUniqueId?: string;
20
20
  }
21
21
  /**
22
22
  *
@@ -29,5 +29,5 @@ export declare class AuditApi extends runtime.BaseAPI {
29
29
  /**
30
30
  * Get audit logs with optional filtering and pagination
31
31
  */
32
- getAuditLogs(pageSize: number, pageIndex: number, startDate?: Date, endDate?: Date, vaultId?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuditLogsResponse>;
32
+ getAuditLogs(pageSize: number, pageIndex: number, startDate?: Date, endDate?: Date, vaultUniqueId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuditLogsResponse>;
33
33
  }
@@ -97,8 +97,8 @@ var AuditApi = /** @class */ (function (_super) {
97
97
  if (requestParameters['endDate'] != null) {
98
98
  queryParameters['end_date'] = requestParameters['endDate'].toISOString();
99
99
  }
100
- if (requestParameters['vaultId'] != null) {
101
- queryParameters['vault_id'] = requestParameters['vaultId'];
100
+ if (requestParameters['vaultUniqueId'] != null) {
101
+ queryParameters['vault_unique_id'] = requestParameters['vaultUniqueId'];
102
102
  }
103
103
  if (requestParameters['pageSize'] != null) {
104
104
  queryParameters['pageSize'] = requestParameters['pageSize'];
@@ -123,12 +123,12 @@ var AuditApi = /** @class */ (function (_super) {
123
123
  /**
124
124
  * Get audit logs with optional filtering and pagination
125
125
  */
126
- AuditApi.prototype.getAuditLogs = function (pageSize, pageIndex, startDate, endDate, vaultId, initOverrides) {
126
+ AuditApi.prototype.getAuditLogs = function (pageSize, pageIndex, startDate, endDate, vaultUniqueId, initOverrides) {
127
127
  return __awaiter(this, void 0, void 0, function () {
128
128
  var response;
129
129
  return __generator(this, function (_a) {
130
130
  switch (_a.label) {
131
- case 0: return [4 /*yield*/, this.getAuditLogsRaw({ pageSize: pageSize, pageIndex: pageIndex, startDate: startDate, endDate: endDate, vaultId: vaultId }, initOverrides)];
131
+ case 0: return [4 /*yield*/, this.getAuditLogsRaw({ pageSize: pageSize, pageIndex: pageIndex, startDate: startDate, endDate: endDate, vaultUniqueId: vaultUniqueId }, initOverrides)];
132
132
  case 1:
133
133
  response = _a.sent();
134
134
  return [4 /*yield*/, response.value()];
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VaultLite } from './VaultLite';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -22,11 +23,11 @@ export interface AuditLog {
22
23
  */
23
24
  createdAt: Date;
24
25
  /**
25
- * ID of the vault (null for user actions)
26
- * @type {number}
26
+ *
27
+ * @type {VaultLite}
27
28
  * @memberof AuditLog
28
29
  */
29
- vaultId?: number | null;
30
+ vault?: VaultLite;
30
31
  /**
31
32
  * Type of action performed
32
33
  * @type {string}
@@ -19,6 +19,7 @@ exports.AuditLogFromJSON = AuditLogFromJSON;
19
19
  exports.AuditLogFromJSONTyped = AuditLogFromJSONTyped;
20
20
  exports.AuditLogToJSON = AuditLogToJSON;
21
21
  exports.AuditLogToJSONTyped = AuditLogToJSONTyped;
22
+ var VaultLite_1 = require("./VaultLite");
22
23
  /**
23
24
  * @export
24
25
  */
@@ -50,7 +51,7 @@ function AuditLogFromJSONTyped(json, ignoreDiscriminator) {
50
51
  }
51
52
  return {
52
53
  'createdAt': (new Date(json['created_at'])),
53
- 'vaultId': json['vault_id'] == null ? undefined : json['vault_id'],
54
+ 'vault': json['vault'] == null ? undefined : (0, VaultLite_1.VaultLiteFromJSON)(json['vault']),
54
55
  'action': json['action'],
55
56
  'ipAddress': json['ip_address'] == null ? undefined : json['ip_address'],
56
57
  'userAgent': json['user_agent'] == null ? undefined : json['user_agent'],
@@ -66,7 +67,7 @@ function AuditLogToJSONTyped(value, ignoreDiscriminator) {
66
67
  }
67
68
  return {
68
69
  'created_at': ((value['createdAt']).toISOString()),
69
- 'vault_id': value['vaultId'],
70
+ 'vault': (0, VaultLite_1.VaultLiteToJSON)(value['vault']),
70
71
  'action': value['action'],
71
72
  'ip_address': value['ipAddress'],
72
73
  'user_agent': value['userAgent'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwshen/vault-hub-ts-fetch-client",
3
- "version": "0.20250724.162355",
3
+ "version": "0.20250725.162305",
4
4
  "description": "OpenAPI client for @lwshen/vault-hub-ts-fetch-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -27,7 +27,7 @@ export interface GetAuditLogsRequest {
27
27
  pageIndex: number;
28
28
  startDate?: Date;
29
29
  endDate?: Date;
30
- vaultId?: number;
30
+ vaultUniqueId?: string;
31
31
  }
32
32
 
33
33
  /**
@@ -63,8 +63,8 @@ export class AuditApi extends runtime.BaseAPI {
63
63
  queryParameters['end_date'] = (requestParameters['endDate'] as any).toISOString();
64
64
  }
65
65
 
66
- if (requestParameters['vaultId'] != null) {
67
- queryParameters['vault_id'] = requestParameters['vaultId'];
66
+ if (requestParameters['vaultUniqueId'] != null) {
67
+ queryParameters['vault_unique_id'] = requestParameters['vaultUniqueId'];
68
68
  }
69
69
 
70
70
  if (requestParameters['pageSize'] != null) {
@@ -90,8 +90,8 @@ export class AuditApi extends runtime.BaseAPI {
90
90
  /**
91
91
  * Get audit logs with optional filtering and pagination
92
92
  */
93
- async getAuditLogs(pageSize: number, pageIndex: number, startDate?: Date, endDate?: Date, vaultId?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuditLogsResponse> {
94
- const response = await this.getAuditLogsRaw({ pageSize: pageSize, pageIndex: pageIndex, startDate: startDate, endDate: endDate, vaultId: vaultId }, initOverrides);
93
+ async getAuditLogs(pageSize: number, pageIndex: number, startDate?: Date, endDate?: Date, vaultUniqueId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuditLogsResponse> {
94
+ const response = await this.getAuditLogsRaw({ pageSize: pageSize, pageIndex: pageIndex, startDate: startDate, endDate: endDate, vaultUniqueId: vaultUniqueId }, initOverrides);
95
95
  return await response.value();
96
96
  }
97
97
 
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { VaultLite } from './VaultLite';
17
+ import {
18
+ VaultLiteFromJSON,
19
+ VaultLiteFromJSONTyped,
20
+ VaultLiteToJSON,
21
+ VaultLiteToJSONTyped,
22
+ } from './VaultLite';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -26,11 +34,11 @@ export interface AuditLog {
26
34
  */
27
35
  createdAt: Date;
28
36
  /**
29
- * ID of the vault (null for user actions)
30
- * @type {number}
37
+ *
38
+ * @type {VaultLite}
31
39
  * @memberof AuditLog
32
40
  */
33
- vaultId?: number | null;
41
+ vault?: VaultLite;
34
42
  /**
35
43
  * Type of action performed
36
44
  * @type {string}
@@ -87,7 +95,7 @@ export function AuditLogFromJSONTyped(json: any, ignoreDiscriminator: boolean):
87
95
  return {
88
96
 
89
97
  'createdAt': (new Date(json['created_at'])),
90
- 'vaultId': json['vault_id'] == null ? undefined : json['vault_id'],
98
+ 'vault': json['vault'] == null ? undefined : VaultLiteFromJSON(json['vault']),
91
99
  'action': json['action'],
92
100
  'ipAddress': json['ip_address'] == null ? undefined : json['ip_address'],
93
101
  'userAgent': json['user_agent'] == null ? undefined : json['user_agent'],
@@ -106,7 +114,7 @@ export function AuditLogToJSONTyped(value?: AuditLog | null, ignoreDiscriminator
106
114
  return {
107
115
 
108
116
  'created_at': ((value['createdAt']).toISOString()),
109
- 'vault_id': value['vaultId'],
117
+ 'vault': VaultLiteToJSON(value['vault']),
110
118
  'action': value['action'],
111
119
  'ip_address': value['ipAddress'],
112
120
  'user_agent': value['userAgent'],