@lwshen/vault-hub-ts-fetch-client 0.20250717.123824 → 0.20250717.143220
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 +2 -2
- package/dist/apis/VaultApi.d.ts +8 -8
- package/dist/apis/VaultApi.js +17 -17
- package/dist/models/CreateVaultRequest.d.ts +0 -6
- package/dist/models/CreateVaultRequest.js +0 -4
- package/dist/models/Vault.d.ts +0 -6
- package/dist/models/Vault.js +0 -2
- package/package.json +1 -1
- package/src/apis/VaultApi.ts +23 -23
- package/src/models/CreateVaultRequest.ts +0 -9
- package/src/models/Vault.ts +0 -8
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @lwshen/vault-hub-ts-fetch-client@0.20250717.
|
|
1
|
+
## @lwshen/vault-hub-ts-fetch-client@0.20250717.143220
|
|
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.20250717.
|
|
39
|
+
npm install @lwshen/vault-hub-ts-fetch-client@0.20250717.143220 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/dist/apis/VaultApi.d.ts
CHANGED
|
@@ -15,16 +15,16 @@ export interface CreateVaultOperationRequest {
|
|
|
15
15
|
createVaultRequest: CreateVaultRequest;
|
|
16
16
|
}
|
|
17
17
|
export interface DeleteVaultRequest {
|
|
18
|
-
|
|
18
|
+
uniqueId: string;
|
|
19
19
|
}
|
|
20
20
|
export interface GetVaultRequest {
|
|
21
|
-
|
|
21
|
+
uniqueId: string;
|
|
22
22
|
}
|
|
23
23
|
export interface GetVaultsRequest {
|
|
24
24
|
category?: string;
|
|
25
25
|
}
|
|
26
26
|
export interface UpdateVaultOperationRequest {
|
|
27
|
-
|
|
27
|
+
uniqueId: string;
|
|
28
28
|
updateVaultRequest: UpdateVaultRequest;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -46,15 +46,15 @@ export declare class VaultApi extends runtime.BaseAPI {
|
|
|
46
46
|
/**
|
|
47
47
|
* Delete a vault
|
|
48
48
|
*/
|
|
49
|
-
deleteVault(
|
|
49
|
+
deleteVault(uniqueId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
50
50
|
/**
|
|
51
|
-
* Get a specific vault by ID
|
|
51
|
+
* Get a specific vault by Unique ID
|
|
52
52
|
*/
|
|
53
53
|
getVaultRaw(requestParameters: GetVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Vault>>;
|
|
54
54
|
/**
|
|
55
|
-
* Get a specific vault by ID
|
|
55
|
+
* Get a specific vault by Unique ID
|
|
56
56
|
*/
|
|
57
|
-
getVault(
|
|
57
|
+
getVault(uniqueId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Vault>;
|
|
58
58
|
/**
|
|
59
59
|
* Get all vaults for the current user
|
|
60
60
|
*/
|
|
@@ -70,5 +70,5 @@ export declare class VaultApi extends runtime.BaseAPI {
|
|
|
70
70
|
/**
|
|
71
71
|
* Update a vault
|
|
72
72
|
*/
|
|
73
|
-
updateVault(
|
|
73
|
+
updateVault(uniqueId: string, updateVaultRequest: UpdateVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Vault>;
|
|
74
74
|
}
|
package/dist/apis/VaultApi.js
CHANGED
|
@@ -130,13 +130,13 @@ var VaultApi = /** @class */ (function (_super) {
|
|
|
130
130
|
return __generator(this, function (_a) {
|
|
131
131
|
switch (_a.label) {
|
|
132
132
|
case 0:
|
|
133
|
-
if (requestParameters['
|
|
134
|
-
throw new runtime.RequiredError('
|
|
133
|
+
if (requestParameters['uniqueId'] == null) {
|
|
134
|
+
throw new runtime.RequiredError('uniqueId', 'Required parameter "uniqueId" was null or undefined when calling deleteVault().');
|
|
135
135
|
}
|
|
136
136
|
queryParameters = {};
|
|
137
137
|
headerParameters = {};
|
|
138
138
|
return [4 /*yield*/, this.request({
|
|
139
|
-
path: "/api/vaults/{
|
|
139
|
+
path: "/api/vaults/{unique_id}".replace("{".concat("unique_id", "}"), encodeURIComponent(String(requestParameters['uniqueId']))),
|
|
140
140
|
method: 'DELETE',
|
|
141
141
|
headers: headerParameters,
|
|
142
142
|
query: queryParameters,
|
|
@@ -151,11 +151,11 @@ var VaultApi = /** @class */ (function (_super) {
|
|
|
151
151
|
/**
|
|
152
152
|
* Delete a vault
|
|
153
153
|
*/
|
|
154
|
-
VaultApi.prototype.deleteVault = function (
|
|
154
|
+
VaultApi.prototype.deleteVault = function (uniqueId, initOverrides) {
|
|
155
155
|
return __awaiter(this, void 0, void 0, function () {
|
|
156
156
|
return __generator(this, function (_a) {
|
|
157
157
|
switch (_a.label) {
|
|
158
|
-
case 0: return [4 /*yield*/, this.deleteVaultRaw({
|
|
158
|
+
case 0: return [4 /*yield*/, this.deleteVaultRaw({ uniqueId: uniqueId }, initOverrides)];
|
|
159
159
|
case 1:
|
|
160
160
|
_a.sent();
|
|
161
161
|
return [2 /*return*/];
|
|
@@ -164,7 +164,7 @@ var VaultApi = /** @class */ (function (_super) {
|
|
|
164
164
|
});
|
|
165
165
|
};
|
|
166
166
|
/**
|
|
167
|
-
* Get a specific vault by ID
|
|
167
|
+
* Get a specific vault by Unique ID
|
|
168
168
|
*/
|
|
169
169
|
VaultApi.prototype.getVaultRaw = function (requestParameters, initOverrides) {
|
|
170
170
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -172,13 +172,13 @@ var VaultApi = /** @class */ (function (_super) {
|
|
|
172
172
|
return __generator(this, function (_a) {
|
|
173
173
|
switch (_a.label) {
|
|
174
174
|
case 0:
|
|
175
|
-
if (requestParameters['
|
|
176
|
-
throw new runtime.RequiredError('
|
|
175
|
+
if (requestParameters['uniqueId'] == null) {
|
|
176
|
+
throw new runtime.RequiredError('uniqueId', 'Required parameter "uniqueId" was null or undefined when calling getVault().');
|
|
177
177
|
}
|
|
178
178
|
queryParameters = {};
|
|
179
179
|
headerParameters = {};
|
|
180
180
|
return [4 /*yield*/, this.request({
|
|
181
|
-
path: "/api/vaults/{
|
|
181
|
+
path: "/api/vaults/{unique_id}".replace("{".concat("unique_id", "}"), encodeURIComponent(String(requestParameters['uniqueId']))),
|
|
182
182
|
method: 'GET',
|
|
183
183
|
headers: headerParameters,
|
|
184
184
|
query: queryParameters,
|
|
@@ -191,14 +191,14 @@ var VaultApi = /** @class */ (function (_super) {
|
|
|
191
191
|
});
|
|
192
192
|
};
|
|
193
193
|
/**
|
|
194
|
-
* Get a specific vault by ID
|
|
194
|
+
* Get a specific vault by Unique ID
|
|
195
195
|
*/
|
|
196
|
-
VaultApi.prototype.getVault = function (
|
|
196
|
+
VaultApi.prototype.getVault = function (uniqueId, initOverrides) {
|
|
197
197
|
return __awaiter(this, void 0, void 0, function () {
|
|
198
198
|
var response;
|
|
199
199
|
return __generator(this, function (_a) {
|
|
200
200
|
switch (_a.label) {
|
|
201
|
-
case 0: return [4 /*yield*/, this.getVaultRaw({
|
|
201
|
+
case 0: return [4 /*yield*/, this.getVaultRaw({ uniqueId: uniqueId }, initOverrides)];
|
|
202
202
|
case 1:
|
|
203
203
|
response = _a.sent();
|
|
204
204
|
return [4 /*yield*/, response.value()];
|
|
@@ -260,8 +260,8 @@ var VaultApi = /** @class */ (function (_super) {
|
|
|
260
260
|
return __generator(this, function (_a) {
|
|
261
261
|
switch (_a.label) {
|
|
262
262
|
case 0:
|
|
263
|
-
if (requestParameters['
|
|
264
|
-
throw new runtime.RequiredError('
|
|
263
|
+
if (requestParameters['uniqueId'] == null) {
|
|
264
|
+
throw new runtime.RequiredError('uniqueId', 'Required parameter "uniqueId" was null or undefined when calling updateVault().');
|
|
265
265
|
}
|
|
266
266
|
if (requestParameters['updateVaultRequest'] == null) {
|
|
267
267
|
throw new runtime.RequiredError('updateVaultRequest', 'Required parameter "updateVaultRequest" was null or undefined when calling updateVault().');
|
|
@@ -270,7 +270,7 @@ var VaultApi = /** @class */ (function (_super) {
|
|
|
270
270
|
headerParameters = {};
|
|
271
271
|
headerParameters['Content-Type'] = 'application/json';
|
|
272
272
|
return [4 /*yield*/, this.request({
|
|
273
|
-
path: "/api/vaults/{
|
|
273
|
+
path: "/api/vaults/{unique_id}".replace("{".concat("unique_id", "}"), encodeURIComponent(String(requestParameters['uniqueId']))),
|
|
274
274
|
method: 'PUT',
|
|
275
275
|
headers: headerParameters,
|
|
276
276
|
query: queryParameters,
|
|
@@ -286,12 +286,12 @@ var VaultApi = /** @class */ (function (_super) {
|
|
|
286
286
|
/**
|
|
287
287
|
* Update a vault
|
|
288
288
|
*/
|
|
289
|
-
VaultApi.prototype.updateVault = function (
|
|
289
|
+
VaultApi.prototype.updateVault = function (uniqueId, updateVaultRequest, initOverrides) {
|
|
290
290
|
return __awaiter(this, void 0, void 0, function () {
|
|
291
291
|
var response;
|
|
292
292
|
return __generator(this, function (_a) {
|
|
293
293
|
switch (_a.label) {
|
|
294
|
-
case 0: return [4 /*yield*/, this.updateVaultRaw({
|
|
294
|
+
case 0: return [4 /*yield*/, this.updateVaultRaw({ uniqueId: uniqueId, updateVaultRequest: updateVaultRequest }, initOverrides)];
|
|
295
295
|
case 1:
|
|
296
296
|
response = _a.sent();
|
|
297
297
|
return [4 /*yield*/, response.value()];
|
|
@@ -15,12 +15,6 @@
|
|
|
15
15
|
* @interface CreateVaultRequest
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateVaultRequest {
|
|
18
|
-
/**
|
|
19
|
-
* Unique identifier for the vault
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreateVaultRequest
|
|
22
|
-
*/
|
|
23
|
-
uniqueId: string;
|
|
24
18
|
/**
|
|
25
19
|
* Human-readable name
|
|
26
20
|
* @type {string}
|
|
@@ -22,8 +22,6 @@ exports.CreateVaultRequestToJSONTyped = CreateVaultRequestToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the CreateVaultRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfCreateVaultRequest(value) {
|
|
25
|
-
if (!('uniqueId' in value) || value['uniqueId'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
if (!('name' in value) || value['name'] === undefined)
|
|
28
26
|
return false;
|
|
29
27
|
if (!('value' in value) || value['value'] === undefined)
|
|
@@ -38,7 +36,6 @@ function CreateVaultRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
36
|
return json;
|
|
39
37
|
}
|
|
40
38
|
return {
|
|
41
|
-
'uniqueId': json['unique_id'],
|
|
42
39
|
'name': json['name'],
|
|
43
40
|
'value': json['value'],
|
|
44
41
|
'description': json['description'] == null ? undefined : json['description'],
|
|
@@ -54,7 +51,6 @@ function CreateVaultRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
54
51
|
return value;
|
|
55
52
|
}
|
|
56
53
|
return {
|
|
57
|
-
'unique_id': value['uniqueId'],
|
|
58
54
|
'name': value['name'],
|
|
59
55
|
'value': value['value'],
|
|
60
56
|
'description': value['description'],
|
package/dist/models/Vault.d.ts
CHANGED
package/dist/models/Vault.js
CHANGED
|
@@ -39,7 +39,6 @@ function VaultFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
41
|
'uniqueId': json['unique_id'],
|
|
42
|
-
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
43
42
|
'name': json['name'],
|
|
44
43
|
'value': json['value'],
|
|
45
44
|
'description': json['description'] == null ? undefined : json['description'],
|
|
@@ -58,7 +57,6 @@ function VaultToJSONTyped(value, ignoreDiscriminator) {
|
|
|
58
57
|
}
|
|
59
58
|
return {
|
|
60
59
|
'unique_id': value['uniqueId'],
|
|
61
|
-
'user_id': value['userId'],
|
|
62
60
|
'name': value['name'],
|
|
63
61
|
'value': value['value'],
|
|
64
62
|
'description': value['description'],
|
package/package.json
CHANGED
package/src/apis/VaultApi.ts
CHANGED
|
@@ -33,11 +33,11 @@ export interface CreateVaultOperationRequest {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export interface DeleteVaultRequest {
|
|
36
|
-
|
|
36
|
+
uniqueId: string;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export interface GetVaultRequest {
|
|
40
|
-
|
|
40
|
+
uniqueId: string;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export interface GetVaultsRequest {
|
|
@@ -45,7 +45,7 @@ export interface GetVaultsRequest {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export interface UpdateVaultOperationRequest {
|
|
48
|
-
|
|
48
|
+
uniqueId: string;
|
|
49
49
|
updateVaultRequest: UpdateVaultRequest;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -94,10 +94,10 @@ export class VaultApi extends runtime.BaseAPI {
|
|
|
94
94
|
* Delete a vault
|
|
95
95
|
*/
|
|
96
96
|
async deleteVaultRaw(requestParameters: DeleteVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
97
|
-
if (requestParameters['
|
|
97
|
+
if (requestParameters['uniqueId'] == null) {
|
|
98
98
|
throw new runtime.RequiredError(
|
|
99
|
-
'
|
|
100
|
-
'Required parameter "
|
|
99
|
+
'uniqueId',
|
|
100
|
+
'Required parameter "uniqueId" was null or undefined when calling deleteVault().'
|
|
101
101
|
);
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -106,7 +106,7 @@ export class VaultApi extends runtime.BaseAPI {
|
|
|
106
106
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
107
107
|
|
|
108
108
|
const response = await this.request({
|
|
109
|
-
path: `/api/vaults/{
|
|
109
|
+
path: `/api/vaults/{unique_id}`.replace(`{${"unique_id"}}`, encodeURIComponent(String(requestParameters['uniqueId']))),
|
|
110
110
|
method: 'DELETE',
|
|
111
111
|
headers: headerParameters,
|
|
112
112
|
query: queryParameters,
|
|
@@ -118,18 +118,18 @@ export class VaultApi extends runtime.BaseAPI {
|
|
|
118
118
|
/**
|
|
119
119
|
* Delete a vault
|
|
120
120
|
*/
|
|
121
|
-
async deleteVault(
|
|
122
|
-
await this.deleteVaultRaw({
|
|
121
|
+
async deleteVault(uniqueId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
122
|
+
await this.deleteVaultRaw({ uniqueId: uniqueId }, initOverrides);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
* Get a specific vault by ID
|
|
126
|
+
* Get a specific vault by Unique ID
|
|
127
127
|
*/
|
|
128
128
|
async getVaultRaw(requestParameters: GetVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Vault>> {
|
|
129
|
-
if (requestParameters['
|
|
129
|
+
if (requestParameters['uniqueId'] == null) {
|
|
130
130
|
throw new runtime.RequiredError(
|
|
131
|
-
'
|
|
132
|
-
'Required parameter "
|
|
131
|
+
'uniqueId',
|
|
132
|
+
'Required parameter "uniqueId" was null or undefined when calling getVault().'
|
|
133
133
|
);
|
|
134
134
|
}
|
|
135
135
|
|
|
@@ -138,7 +138,7 @@ export class VaultApi extends runtime.BaseAPI {
|
|
|
138
138
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
139
139
|
|
|
140
140
|
const response = await this.request({
|
|
141
|
-
path: `/api/vaults/{
|
|
141
|
+
path: `/api/vaults/{unique_id}`.replace(`{${"unique_id"}}`, encodeURIComponent(String(requestParameters['uniqueId']))),
|
|
142
142
|
method: 'GET',
|
|
143
143
|
headers: headerParameters,
|
|
144
144
|
query: queryParameters,
|
|
@@ -148,10 +148,10 @@ export class VaultApi extends runtime.BaseAPI {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
* Get a specific vault by ID
|
|
151
|
+
* Get a specific vault by Unique ID
|
|
152
152
|
*/
|
|
153
|
-
async getVault(
|
|
154
|
-
const response = await this.getVaultRaw({
|
|
153
|
+
async getVault(uniqueId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Vault> {
|
|
154
|
+
const response = await this.getVaultRaw({ uniqueId: uniqueId }, initOverrides);
|
|
155
155
|
return await response.value();
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -189,10 +189,10 @@ export class VaultApi extends runtime.BaseAPI {
|
|
|
189
189
|
* Update a vault
|
|
190
190
|
*/
|
|
191
191
|
async updateVaultRaw(requestParameters: UpdateVaultOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Vault>> {
|
|
192
|
-
if (requestParameters['
|
|
192
|
+
if (requestParameters['uniqueId'] == null) {
|
|
193
193
|
throw new runtime.RequiredError(
|
|
194
|
-
'
|
|
195
|
-
'Required parameter "
|
|
194
|
+
'uniqueId',
|
|
195
|
+
'Required parameter "uniqueId" was null or undefined when calling updateVault().'
|
|
196
196
|
);
|
|
197
197
|
}
|
|
198
198
|
|
|
@@ -210,7 +210,7 @@ export class VaultApi extends runtime.BaseAPI {
|
|
|
210
210
|
headerParameters['Content-Type'] = 'application/json';
|
|
211
211
|
|
|
212
212
|
const response = await this.request({
|
|
213
|
-
path: `/api/vaults/{
|
|
213
|
+
path: `/api/vaults/{unique_id}`.replace(`{${"unique_id"}}`, encodeURIComponent(String(requestParameters['uniqueId']))),
|
|
214
214
|
method: 'PUT',
|
|
215
215
|
headers: headerParameters,
|
|
216
216
|
query: queryParameters,
|
|
@@ -223,8 +223,8 @@ export class VaultApi extends runtime.BaseAPI {
|
|
|
223
223
|
/**
|
|
224
224
|
* Update a vault
|
|
225
225
|
*/
|
|
226
|
-
async updateVault(
|
|
227
|
-
const response = await this.updateVaultRaw({
|
|
226
|
+
async updateVault(uniqueId: string, updateVaultRequest: UpdateVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Vault> {
|
|
227
|
+
const response = await this.updateVaultRaw({ uniqueId: uniqueId, updateVaultRequest: updateVaultRequest }, initOverrides);
|
|
228
228
|
return await response.value();
|
|
229
229
|
}
|
|
230
230
|
|
|
@@ -19,12 +19,6 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface CreateVaultRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface CreateVaultRequest {
|
|
22
|
-
/**
|
|
23
|
-
* Unique identifier for the vault
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof CreateVaultRequest
|
|
26
|
-
*/
|
|
27
|
-
uniqueId: string;
|
|
28
22
|
/**
|
|
29
23
|
* Human-readable name
|
|
30
24
|
* @type {string}
|
|
@@ -55,7 +49,6 @@ export interface CreateVaultRequest {
|
|
|
55
49
|
* Check if a given object implements the CreateVaultRequest interface.
|
|
56
50
|
*/
|
|
57
51
|
export function instanceOfCreateVaultRequest(value: object): value is CreateVaultRequest {
|
|
58
|
-
if (!('uniqueId' in value) || value['uniqueId'] === undefined) return false;
|
|
59
52
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
60
53
|
if (!('value' in value) || value['value'] === undefined) return false;
|
|
61
54
|
return true;
|
|
@@ -71,7 +64,6 @@ export function CreateVaultRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
71
64
|
}
|
|
72
65
|
return {
|
|
73
66
|
|
|
74
|
-
'uniqueId': json['unique_id'],
|
|
75
67
|
'name': json['name'],
|
|
76
68
|
'value': json['value'],
|
|
77
69
|
'description': json['description'] == null ? undefined : json['description'],
|
|
@@ -90,7 +82,6 @@ export function CreateVaultRequestToJSONTyped(value?: CreateVaultRequest | null,
|
|
|
90
82
|
|
|
91
83
|
return {
|
|
92
84
|
|
|
93
|
-
'unique_id': value['uniqueId'],
|
|
94
85
|
'name': value['name'],
|
|
95
86
|
'value': value['value'],
|
|
96
87
|
'description': value['description'],
|
package/src/models/Vault.ts
CHANGED
|
@@ -25,12 +25,6 @@ export interface Vault {
|
|
|
25
25
|
* @memberof Vault
|
|
26
26
|
*/
|
|
27
27
|
uniqueId: string;
|
|
28
|
-
/**
|
|
29
|
-
* ID of the user who owns this vault
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof Vault
|
|
32
|
-
*/
|
|
33
|
-
userId?: number;
|
|
34
28
|
/**
|
|
35
29
|
* Human-readable name
|
|
36
30
|
* @type {string}
|
|
@@ -90,7 +84,6 @@ export function VaultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vau
|
|
|
90
84
|
return {
|
|
91
85
|
|
|
92
86
|
'uniqueId': json['unique_id'],
|
|
93
|
-
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
94
87
|
'name': json['name'],
|
|
95
88
|
'value': json['value'],
|
|
96
89
|
'description': json['description'] == null ? undefined : json['description'],
|
|
@@ -112,7 +105,6 @@ export function VaultToJSONTyped(value?: Vault | null, ignoreDiscriminator: bool
|
|
|
112
105
|
return {
|
|
113
106
|
|
|
114
107
|
'unique_id': value['uniqueId'],
|
|
115
|
-
'user_id': value['userId'],
|
|
116
108
|
'name': value['name'],
|
|
117
109
|
'value': value['value'],
|
|
118
110
|
'description': value['description'],
|