@lwshen/vault-hub-ts-fetch-client 0.20250620.144136 → 0.20250620.155153
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/AuthApi.d.ts +2 -2
- package/dist/apis/AuthApi.js +4 -4
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +4 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @lwshen/vault-hub-ts-fetch-client@0.20250620.
|
|
1
|
+
## @lwshen/vault-hub-ts-fetch-client@0.20250620.155153
|
|
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.20250620.
|
|
39
|
+
npm install @lwshen/vault-hub-ts-fetch-client@0.20250620.155153 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/dist/apis/AuthApi.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
28
28
|
/**
|
|
29
29
|
* Login with email and password
|
|
30
30
|
*/
|
|
31
|
-
login(
|
|
31
|
+
login(loginRequest: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResponse>;
|
|
32
32
|
/**
|
|
33
33
|
* Logout
|
|
34
34
|
*/
|
|
@@ -44,5 +44,5 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
44
44
|
/**
|
|
45
45
|
* Sign up a new user
|
|
46
46
|
*/
|
|
47
|
-
signup(
|
|
47
|
+
signup(signupRequest: SignupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignupResponse>;
|
|
48
48
|
}
|
package/dist/apis/AuthApi.js
CHANGED
|
@@ -107,12 +107,12 @@ var AuthApi = /** @class */ (function (_super) {
|
|
|
107
107
|
/**
|
|
108
108
|
* Login with email and password
|
|
109
109
|
*/
|
|
110
|
-
AuthApi.prototype.login = function (
|
|
110
|
+
AuthApi.prototype.login = function (loginRequest, initOverrides) {
|
|
111
111
|
return __awaiter(this, void 0, void 0, function () {
|
|
112
112
|
var response;
|
|
113
113
|
return __generator(this, function (_a) {
|
|
114
114
|
switch (_a.label) {
|
|
115
|
-
case 0: return [4 /*yield*/, this.loginRaw(
|
|
115
|
+
case 0: return [4 /*yield*/, this.loginRaw({ loginRequest: loginRequest }, initOverrides)];
|
|
116
116
|
case 1:
|
|
117
117
|
response = _a.sent();
|
|
118
118
|
return [4 /*yield*/, response.value()];
|
|
@@ -192,12 +192,12 @@ var AuthApi = /** @class */ (function (_super) {
|
|
|
192
192
|
/**
|
|
193
193
|
* Sign up a new user
|
|
194
194
|
*/
|
|
195
|
-
AuthApi.prototype.signup = function (
|
|
195
|
+
AuthApi.prototype.signup = function (signupRequest, initOverrides) {
|
|
196
196
|
return __awaiter(this, void 0, void 0, function () {
|
|
197
197
|
var response;
|
|
198
198
|
return __generator(this, function (_a) {
|
|
199
199
|
switch (_a.label) {
|
|
200
|
-
case 0: return [4 /*yield*/, this.signupRaw(
|
|
200
|
+
case 0: return [4 /*yield*/, this.signupRaw({ signupRequest: signupRequest }, initOverrides)];
|
|
201
201
|
case 1:
|
|
202
202
|
response = _a.sent();
|
|
203
203
|
return [4 /*yield*/, response.value()];
|
package/package.json
CHANGED
package/src/apis/AuthApi.ts
CHANGED
|
@@ -75,8 +75,8 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
75
75
|
/**
|
|
76
76
|
* Login with email and password
|
|
77
77
|
*/
|
|
78
|
-
async login(
|
|
79
|
-
const response = await this.loginRaw(
|
|
78
|
+
async login(loginRequest: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResponse> {
|
|
79
|
+
const response = await this.loginRaw({ loginRequest: loginRequest }, initOverrides);
|
|
80
80
|
return await response.value();
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -136,8 +136,8 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
136
136
|
/**
|
|
137
137
|
* Sign up a new user
|
|
138
138
|
*/
|
|
139
|
-
async signup(
|
|
140
|
-
const response = await this.signupRaw(
|
|
139
|
+
async signup(signupRequest: SignupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignupResponse> {
|
|
140
|
+
const response = await this.signupRaw({ signupRequest: signupRequest }, initOverrides);
|
|
141
141
|
return await response.value();
|
|
142
142
|
}
|
|
143
143
|
|