@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.
@@ -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
@@ -22,6 +22,7 @@ function AuthServiceControllerMethods() {
22
22
  "logout",
23
23
  "requestPasswordReset",
24
24
  "resetPassword",
25
+ "changePassword",
25
26
  ];
26
27
  for (const method of grpcMethods) {
27
28
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
@@ -178,6 +178,7 @@ export interface PromotionListItem {
178
178
  discountType: DiscountType;
179
179
  source?: string | undefined;
180
180
  planfixId?: string | undefined;
181
+ seoSlug?: string | undefined;
181
182
  }
182
183
  export interface PromotionListItem_NameEntry {
183
184
  key: string;
@@ -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;
@@ -215,6 +215,7 @@ message PromotionListItem {
215
215
  DiscountType discount_type = 15;
216
216
  optional string source = 16;
217
217
  optional string planfix_id = 17;
218
+ optional string seo_slug = 18;
218
219
  }
219
220
 
220
221
 
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
@@ -195,6 +195,7 @@ export interface PromotionListItem {
195
195
  discountType: DiscountType;
196
196
  source?: string | undefined;
197
197
  planfixId?: string | undefined;
198
+ seoSlug?: string | undefined;
198
199
  }
199
200
 
200
201
  export interface PromotionListItem_NameEntry {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.178",
4
+ "version": "1.0.180",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
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;
@@ -215,6 +215,7 @@ message PromotionListItem {
215
215
  DiscountType discount_type = 15;
216
216
  optional string source = 16;
217
217
  optional string planfix_id = 17;
218
+ optional string seo_slug = 18;
218
219
  }
219
220
 
220
221