geniebox-shared-lib 1.0.33 → 1.0.35
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/dist/auth/auth.interface.d.ts +12 -0
- package/dist/auth/auth.interface.js +10 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
|
@@ -73,6 +73,7 @@ export interface AuthServiceClient {
|
|
|
73
73
|
refresh(request: RefreshRequest, metadata?: Metadata): Observable<AuthResponse>;
|
|
74
74
|
logout(request: LogoutRequest, metadata?: Metadata): Observable<Empty>;
|
|
75
75
|
recover(request: RecoverRequest, metadata?: Metadata): Observable<Empty>;
|
|
76
|
+
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): Observable<Empty>;
|
|
76
77
|
}
|
|
77
78
|
export interface AuthServiceController {
|
|
78
79
|
login(request: LoginCredentials, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
@@ -80,6 +81,7 @@ export interface AuthServiceController {
|
|
|
80
81
|
refresh(request: RefreshRequest, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
81
82
|
logout(request: LogoutRequest, metadata?: Metadata): void;
|
|
82
83
|
recover(request: RecoverRequest, metadata?: Metadata): void;
|
|
84
|
+
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): void;
|
|
83
85
|
}
|
|
84
86
|
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
85
87
|
export declare const AUTH_SERVICE_NAME = "AuthService";
|
|
@@ -130,6 +132,15 @@ export declare const AuthServiceService: {
|
|
|
130
132
|
readonly responseSerialize: (value: Empty) => Buffer;
|
|
131
133
|
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
132
134
|
};
|
|
135
|
+
readonly resetPassword: {
|
|
136
|
+
readonly path: "/auth.AuthService/resetPassword";
|
|
137
|
+
readonly requestStream: false;
|
|
138
|
+
readonly responseStream: false;
|
|
139
|
+
readonly requestSerialize: (value: ResetPasswordRequest) => Buffer;
|
|
140
|
+
readonly requestDeserialize: (value: Buffer) => ResetPasswordRequest;
|
|
141
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
142
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
143
|
+
};
|
|
133
144
|
};
|
|
134
145
|
export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
135
146
|
login: handleUnaryCall<LoginCredentials, AuthResponse>;
|
|
@@ -137,6 +148,7 @@ export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
|
137
148
|
refresh: handleUnaryCall<RefreshRequest, AuthResponse>;
|
|
138
149
|
logout: handleUnaryCall<LogoutRequest, Empty>;
|
|
139
150
|
recover: handleUnaryCall<RecoverRequest, Empty>;
|
|
151
|
+
resetPassword: handleUnaryCall<ResetPasswordRequest, Empty>;
|
|
140
152
|
}
|
|
141
153
|
export interface MessageFns<T> {
|
|
142
154
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
@@ -575,7 +575,7 @@ exports.RefreshTokenResponse = {
|
|
|
575
575
|
};
|
|
576
576
|
function AuthServiceControllerMethods() {
|
|
577
577
|
return function (constructor) {
|
|
578
|
-
const grpcMethods = ["login", "register", "refresh", "logout", "recover"];
|
|
578
|
+
const grpcMethods = ["login", "register", "refresh", "logout", "recover", "resetPassword"];
|
|
579
579
|
for (const method of grpcMethods) {
|
|
580
580
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
581
581
|
(0, microservices_1.GrpcMethod)("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
@@ -634,4 +634,13 @@ exports.AuthServiceService = {
|
|
|
634
634
|
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
635
635
|
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
636
636
|
},
|
|
637
|
+
resetPassword: {
|
|
638
|
+
path: "/auth.AuthService/resetPassword",
|
|
639
|
+
requestStream: false,
|
|
640
|
+
responseStream: false,
|
|
641
|
+
requestSerialize: (value) => Buffer.from(exports.ResetPasswordRequest.encode(value).finish()),
|
|
642
|
+
requestDeserialize: (value) => exports.ResetPasswordRequest.decode(value),
|
|
643
|
+
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
644
|
+
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
645
|
+
},
|
|
637
646
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { SharedModule } from "./shared.module";
|
|
|
2
2
|
export { UsersClient } from "./user/user.client";
|
|
3
3
|
export { AuthClient } from "./auth/auth.client";
|
|
4
4
|
export { MessageFns as UserMessageFns, protobufPackage as UserProtobufPackage, User, CreateUserRequest, CreateUserPersonal, UpdateUserRequest, GetByIdRequest, UserResponse, UsersResponse, FindByEmailRequest, FindByPhoneRequest, UpdatePasswordRequest, UserServiceService as UserService, } from "./user/user.interface";
|
|
5
|
-
export { MessageFns as AuthMessageFns, protobufPackage as AuthProtobufPackage, LoginCredentials, RegisterCredentials, LogoutRequest, RefreshRequest, AuthResponse, RefreshTokenResponse, } from "./auth/auth.interface";
|
|
5
|
+
export { MessageFns as AuthMessageFns, protobufPackage as AuthProtobufPackage, LoginCredentials, RegisterCredentials, LogoutRequest, RefreshRequest, AuthResponse, RefreshTokenResponse, RecoverRequest, ResetPasswordRequest, } from "./auth/auth.interface";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RefreshTokenResponse = exports.AuthResponse = exports.RefreshRequest = exports.LogoutRequest = exports.RegisterCredentials = exports.LoginCredentials = exports.AuthProtobufPackage = exports.UserService = exports.UpdatePasswordRequest = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.UsersResponse = exports.UserResponse = exports.GetByIdRequest = exports.UpdateUserRequest = exports.CreateUserPersonal = exports.CreateUserRequest = exports.User = exports.UserProtobufPackage = exports.AuthClient = exports.UsersClient = exports.SharedModule = void 0;
|
|
3
|
+
exports.ResetPasswordRequest = exports.RecoverRequest = exports.RefreshTokenResponse = exports.AuthResponse = exports.RefreshRequest = exports.LogoutRequest = exports.RegisterCredentials = exports.LoginCredentials = exports.AuthProtobufPackage = exports.UserService = exports.UpdatePasswordRequest = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.UsersResponse = exports.UserResponse = exports.GetByIdRequest = exports.UpdateUserRequest = exports.CreateUserPersonal = exports.CreateUserRequest = exports.User = exports.UserProtobufPackage = exports.AuthClient = exports.UsersClient = exports.SharedModule = void 0;
|
|
4
4
|
var shared_module_1 = require("./shared.module");
|
|
5
5
|
Object.defineProperty(exports, "SharedModule", { enumerable: true, get: function () { return shared_module_1.SharedModule; } });
|
|
6
6
|
var user_client_1 = require("./user/user.client");
|
|
@@ -28,3 +28,5 @@ Object.defineProperty(exports, "LogoutRequest", { enumerable: true, get: functio
|
|
|
28
28
|
Object.defineProperty(exports, "RefreshRequest", { enumerable: true, get: function () { return auth_interface_1.RefreshRequest; } });
|
|
29
29
|
Object.defineProperty(exports, "AuthResponse", { enumerable: true, get: function () { return auth_interface_1.AuthResponse; } });
|
|
30
30
|
Object.defineProperty(exports, "RefreshTokenResponse", { enumerable: true, get: function () { return auth_interface_1.RefreshTokenResponse; } });
|
|
31
|
+
Object.defineProperty(exports, "RecoverRequest", { enumerable: true, get: function () { return auth_interface_1.RecoverRequest; } });
|
|
32
|
+
Object.defineProperty(exports, "ResetPasswordRequest", { enumerable: true, get: function () { return auth_interface_1.ResetPasswordRequest; } });
|