@mamindom/contracts 1.0.178 → 1.0.180
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/gen/auth.d.ts +8 -0
- package/dist/gen/auth.js +1 -0
- package/dist/gen/promotion.d.ts +1 -0
- package/dist/proto/auth.proto +8 -0
- package/dist/proto/promotion.proto +1 -0
- package/gen/auth.ts +12 -0
- package/gen/promotion.ts +1 -0
- package/package.json +1 -1
- package/proto/auth.proto +8 -0
- package/proto/promotion.proto +1 -0
package/dist/gen/auth.d.ts
CHANGED
|
@@ -44,6 +44,12 @@ export interface ResetPasswordRequest {
|
|
|
44
44
|
code: string;
|
|
45
45
|
newPassword: string;
|
|
46
46
|
}
|
|
47
|
+
export interface ChangePasswordRequest {
|
|
48
|
+
accountId: string;
|
|
49
|
+
currentPassword: string;
|
|
50
|
+
newPassword: string;
|
|
51
|
+
audience?: string | undefined;
|
|
52
|
+
}
|
|
47
53
|
export interface AuthResponse {
|
|
48
54
|
accessToken: string;
|
|
49
55
|
refreshToken: string;
|
|
@@ -65,6 +71,7 @@ export interface AuthServiceClient {
|
|
|
65
71
|
logout(request: LogoutRequest): Observable<LogoutResponse>;
|
|
66
72
|
requestPasswordReset(request: RequestPasswordResetRequest): Observable<RequestPasswordResetResponse>;
|
|
67
73
|
resetPassword(request: ResetPasswordRequest): Observable<AuthResponse>;
|
|
74
|
+
changePassword(request: ChangePasswordRequest): Observable<AuthResponse>;
|
|
68
75
|
}
|
|
69
76
|
export interface AuthServiceController {
|
|
70
77
|
sendOtp(request: SendOtpRequest): Promise<SendOtpResponse> | Observable<SendOtpResponse> | SendOtpResponse;
|
|
@@ -75,6 +82,7 @@ export interface AuthServiceController {
|
|
|
75
82
|
logout(request: LogoutRequest): Promise<LogoutResponse> | Observable<LogoutResponse> | LogoutResponse;
|
|
76
83
|
requestPasswordReset(request: RequestPasswordResetRequest): Promise<RequestPasswordResetResponse> | Observable<RequestPasswordResetResponse> | RequestPasswordResetResponse;
|
|
77
84
|
resetPassword(request: ResetPasswordRequest): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
85
|
+
changePassword(request: ChangePasswordRequest): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
78
86
|
}
|
|
79
87
|
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
80
88
|
export declare const AUTH_SERVICE_NAME = "AuthService";
|
package/dist/gen/auth.js
CHANGED
package/dist/gen/promotion.d.ts
CHANGED
package/dist/proto/auth.proto
CHANGED
|
@@ -11,6 +11,7 @@ service AuthService {
|
|
|
11
11
|
rpc Logout(LogoutRequest) returns (LogoutResponse);
|
|
12
12
|
rpc RequestPasswordReset(RequestPasswordResetRequest) returns (RequestPasswordResetResponse);
|
|
13
13
|
rpc ResetPassword(ResetPasswordRequest) returns (AuthResponse);
|
|
14
|
+
rpc ChangePassword(ChangePasswordRequest) returns (AuthResponse);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
message LogoutRequest {
|
|
@@ -67,6 +68,13 @@ message ResetPasswordRequest {
|
|
|
67
68
|
string new_password = 4;
|
|
68
69
|
}
|
|
69
70
|
|
|
71
|
+
message ChangePasswordRequest {
|
|
72
|
+
string account_id = 1;
|
|
73
|
+
string current_password = 2;
|
|
74
|
+
string new_password = 3;
|
|
75
|
+
optional string audience = 4;
|
|
76
|
+
}
|
|
77
|
+
|
|
70
78
|
message AuthResponse {
|
|
71
79
|
string access_token = 1;
|
|
72
80
|
string refresh_token = 2;
|
package/gen/auth.ts
CHANGED
|
@@ -64,6 +64,13 @@ export interface ResetPasswordRequest {
|
|
|
64
64
|
newPassword: string;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
export interface ChangePasswordRequest {
|
|
68
|
+
accountId: string;
|
|
69
|
+
currentPassword: string;
|
|
70
|
+
newPassword: string;
|
|
71
|
+
audience?: string | undefined;
|
|
72
|
+
}
|
|
73
|
+
|
|
67
74
|
export interface AuthResponse {
|
|
68
75
|
accessToken: string;
|
|
69
76
|
refreshToken: string;
|
|
@@ -96,6 +103,8 @@ export interface AuthServiceClient {
|
|
|
96
103
|
requestPasswordReset(request: RequestPasswordResetRequest): Observable<RequestPasswordResetResponse>;
|
|
97
104
|
|
|
98
105
|
resetPassword(request: ResetPasswordRequest): Observable<AuthResponse>;
|
|
106
|
+
|
|
107
|
+
changePassword(request: ChangePasswordRequest): Observable<AuthResponse>;
|
|
99
108
|
}
|
|
100
109
|
|
|
101
110
|
export interface AuthServiceController {
|
|
@@ -116,6 +125,8 @@ export interface AuthServiceController {
|
|
|
116
125
|
): Promise<RequestPasswordResetResponse> | Observable<RequestPasswordResetResponse> | RequestPasswordResetResponse;
|
|
117
126
|
|
|
118
127
|
resetPassword(request: ResetPasswordRequest): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
128
|
+
|
|
129
|
+
changePassword(request: ChangePasswordRequest): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
119
130
|
}
|
|
120
131
|
|
|
121
132
|
export function AuthServiceControllerMethods() {
|
|
@@ -129,6 +140,7 @@ export function AuthServiceControllerMethods() {
|
|
|
129
140
|
"logout",
|
|
130
141
|
"requestPasswordReset",
|
|
131
142
|
"resetPassword",
|
|
143
|
+
"changePassword",
|
|
132
144
|
];
|
|
133
145
|
for (const method of grpcMethods) {
|
|
134
146
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/gen/promotion.ts
CHANGED
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -11,6 +11,7 @@ service AuthService {
|
|
|
11
11
|
rpc Logout(LogoutRequest) returns (LogoutResponse);
|
|
12
12
|
rpc RequestPasswordReset(RequestPasswordResetRequest) returns (RequestPasswordResetResponse);
|
|
13
13
|
rpc ResetPassword(ResetPasswordRequest) returns (AuthResponse);
|
|
14
|
+
rpc ChangePassword(ChangePasswordRequest) returns (AuthResponse);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
message LogoutRequest {
|
|
@@ -67,6 +68,13 @@ message ResetPasswordRequest {
|
|
|
67
68
|
string new_password = 4;
|
|
68
69
|
}
|
|
69
70
|
|
|
71
|
+
message ChangePasswordRequest {
|
|
72
|
+
string account_id = 1;
|
|
73
|
+
string current_password = 2;
|
|
74
|
+
string new_password = 3;
|
|
75
|
+
optional string audience = 4;
|
|
76
|
+
}
|
|
77
|
+
|
|
70
78
|
message AuthResponse {
|
|
71
79
|
string access_token = 1;
|
|
72
80
|
string refresh_token = 2;
|