@lwshen/vault-hub-ts-fetch-client 1.4.5 → 1.4.6
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/CliApi.d.ts +2 -4
- package/dist/apis/CliApi.js +4 -10
- package/package.json +1 -1
- package/src/apis/CliApi.ts +4 -14
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @lwshen/vault-hub-ts-fetch-client@v1.4.
|
|
1
|
+
## @lwshen/vault-hub-ts-fetch-client@v1.4.6
|
|
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@v1.4.
|
|
39
|
+
npm install @lwshen/vault-hub-ts-fetch-client@v1.4.6 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/dist/apis/CliApi.d.ts
CHANGED
|
@@ -13,11 +13,9 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { Vault, VaultLite } from '../models/index';
|
|
14
14
|
export interface GetVaultByAPIKeyRequest {
|
|
15
15
|
uniqueId: string;
|
|
16
|
-
xEnableClientEncryption?: string;
|
|
17
16
|
}
|
|
18
17
|
export interface GetVaultByNameAPIKeyRequest {
|
|
19
18
|
name: string;
|
|
20
|
-
xEnableClientEncryption?: string;
|
|
21
19
|
}
|
|
22
20
|
/**
|
|
23
21
|
*
|
|
@@ -30,7 +28,7 @@ export declare class CliApi extends runtime.BaseAPI {
|
|
|
30
28
|
/**
|
|
31
29
|
* Get a specific vault by Unique ID using API key
|
|
32
30
|
*/
|
|
33
|
-
getVaultByAPIKey(uniqueId: string,
|
|
31
|
+
getVaultByAPIKey(uniqueId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Vault>;
|
|
34
32
|
/**
|
|
35
33
|
* Get a specific vault by name using API key
|
|
36
34
|
*/
|
|
@@ -38,7 +36,7 @@ export declare class CliApi extends runtime.BaseAPI {
|
|
|
38
36
|
/**
|
|
39
37
|
* Get a specific vault by name using API key
|
|
40
38
|
*/
|
|
41
|
-
getVaultByNameAPIKey(name: string,
|
|
39
|
+
getVaultByNameAPIKey(name: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Vault>;
|
|
42
40
|
/**
|
|
43
41
|
* Get all vaults accessible by API key
|
|
44
42
|
*/
|
package/dist/apis/CliApi.js
CHANGED
|
@@ -89,9 +89,6 @@ var CliApi = /** @class */ (function (_super) {
|
|
|
89
89
|
}
|
|
90
90
|
queryParameters = {};
|
|
91
91
|
headerParameters = {};
|
|
92
|
-
if (requestParameters['xEnableClientEncryption'] != null) {
|
|
93
|
-
headerParameters['X-Enable-Client-Encryption'] = String(requestParameters['xEnableClientEncryption']);
|
|
94
|
-
}
|
|
95
92
|
return [4 /*yield*/, this.request({
|
|
96
93
|
path: "/api/cli/vault/{uniqueId}".replace("{".concat("uniqueId", "}"), encodeURIComponent(String(requestParameters['uniqueId']))),
|
|
97
94
|
method: 'GET',
|
|
@@ -108,12 +105,12 @@ var CliApi = /** @class */ (function (_super) {
|
|
|
108
105
|
/**
|
|
109
106
|
* Get a specific vault by Unique ID using API key
|
|
110
107
|
*/
|
|
111
|
-
CliApi.prototype.getVaultByAPIKey = function (uniqueId,
|
|
108
|
+
CliApi.prototype.getVaultByAPIKey = function (uniqueId, initOverrides) {
|
|
112
109
|
return __awaiter(this, void 0, void 0, function () {
|
|
113
110
|
var response;
|
|
114
111
|
return __generator(this, function (_a) {
|
|
115
112
|
switch (_a.label) {
|
|
116
|
-
case 0: return [4 /*yield*/, this.getVaultByAPIKeyRaw({ uniqueId: uniqueId
|
|
113
|
+
case 0: return [4 /*yield*/, this.getVaultByAPIKeyRaw({ uniqueId: uniqueId }, initOverrides)];
|
|
117
114
|
case 1:
|
|
118
115
|
response = _a.sent();
|
|
119
116
|
return [4 /*yield*/, response.value()];
|
|
@@ -136,9 +133,6 @@ var CliApi = /** @class */ (function (_super) {
|
|
|
136
133
|
}
|
|
137
134
|
queryParameters = {};
|
|
138
135
|
headerParameters = {};
|
|
139
|
-
if (requestParameters['xEnableClientEncryption'] != null) {
|
|
140
|
-
headerParameters['X-Enable-Client-Encryption'] = String(requestParameters['xEnableClientEncryption']);
|
|
141
|
-
}
|
|
142
136
|
return [4 /*yield*/, this.request({
|
|
143
137
|
path: "/api/cli/vault/name/{name}".replace("{".concat("name", "}"), encodeURIComponent(String(requestParameters['name']))),
|
|
144
138
|
method: 'GET',
|
|
@@ -155,12 +149,12 @@ var CliApi = /** @class */ (function (_super) {
|
|
|
155
149
|
/**
|
|
156
150
|
* Get a specific vault by name using API key
|
|
157
151
|
*/
|
|
158
|
-
CliApi.prototype.getVaultByNameAPIKey = function (name,
|
|
152
|
+
CliApi.prototype.getVaultByNameAPIKey = function (name, initOverrides) {
|
|
159
153
|
return __awaiter(this, void 0, void 0, function () {
|
|
160
154
|
var response;
|
|
161
155
|
return __generator(this, function (_a) {
|
|
162
156
|
switch (_a.label) {
|
|
163
|
-
case 0: return [4 /*yield*/, this.getVaultByNameAPIKeyRaw({ name: name
|
|
157
|
+
case 0: return [4 /*yield*/, this.getVaultByNameAPIKeyRaw({ name: name }, initOverrides)];
|
|
164
158
|
case 1:
|
|
165
159
|
response = _a.sent();
|
|
166
160
|
return [4 /*yield*/, response.value()];
|
package/package.json
CHANGED
package/src/apis/CliApi.ts
CHANGED
|
@@ -27,12 +27,10 @@ import {
|
|
|
27
27
|
|
|
28
28
|
export interface GetVaultByAPIKeyRequest {
|
|
29
29
|
uniqueId: string;
|
|
30
|
-
xEnableClientEncryption?: string;
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
export interface GetVaultByNameAPIKeyRequest {
|
|
34
33
|
name: string;
|
|
35
|
-
xEnableClientEncryption?: string;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
/**
|
|
@@ -55,10 +53,6 @@ export class CliApi extends runtime.BaseAPI {
|
|
|
55
53
|
|
|
56
54
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
57
55
|
|
|
58
|
-
if (requestParameters['xEnableClientEncryption'] != null) {
|
|
59
|
-
headerParameters['X-Enable-Client-Encryption'] = String(requestParameters['xEnableClientEncryption']);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
56
|
const response = await this.request({
|
|
63
57
|
path: `/api/cli/vault/{uniqueId}`.replace(`{${"uniqueId"}}`, encodeURIComponent(String(requestParameters['uniqueId']))),
|
|
64
58
|
method: 'GET',
|
|
@@ -72,8 +66,8 @@ export class CliApi extends runtime.BaseAPI {
|
|
|
72
66
|
/**
|
|
73
67
|
* Get a specific vault by Unique ID using API key
|
|
74
68
|
*/
|
|
75
|
-
async getVaultByAPIKey(uniqueId: string,
|
|
76
|
-
const response = await this.getVaultByAPIKeyRaw({ uniqueId: uniqueId
|
|
69
|
+
async getVaultByAPIKey(uniqueId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Vault> {
|
|
70
|
+
const response = await this.getVaultByAPIKeyRaw({ uniqueId: uniqueId }, initOverrides);
|
|
77
71
|
return await response.value();
|
|
78
72
|
}
|
|
79
73
|
|
|
@@ -92,10 +86,6 @@ export class CliApi extends runtime.BaseAPI {
|
|
|
92
86
|
|
|
93
87
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
94
88
|
|
|
95
|
-
if (requestParameters['xEnableClientEncryption'] != null) {
|
|
96
|
-
headerParameters['X-Enable-Client-Encryption'] = String(requestParameters['xEnableClientEncryption']);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
89
|
const response = await this.request({
|
|
100
90
|
path: `/api/cli/vault/name/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))),
|
|
101
91
|
method: 'GET',
|
|
@@ -109,8 +99,8 @@ export class CliApi extends runtime.BaseAPI {
|
|
|
109
99
|
/**
|
|
110
100
|
* Get a specific vault by name using API key
|
|
111
101
|
*/
|
|
112
|
-
async getVaultByNameAPIKey(name: string,
|
|
113
|
-
const response = await this.getVaultByNameAPIKeyRaw({ name: name
|
|
102
|
+
async getVaultByNameAPIKey(name: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Vault> {
|
|
103
|
+
const response = await this.getVaultByNameAPIKeyRaw({ name: name }, initOverrides);
|
|
114
104
|
return await response.value();
|
|
115
105
|
}
|
|
116
106
|
|