@mamindom/contracts 1.0.179 → 1.0.181

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.
@@ -41,6 +41,7 @@ export interface UpsertAttributesResponse {
41
41
  results: AttributeUpsertResult[];
42
42
  }
43
43
  export interface GetAllAttributesWithValuesRequest {
44
+ attributeIds: string[];
44
45
  }
45
46
  export interface GetAllAttributesWithValuesResponse {
46
47
  items: AttributeWithValuesResponse[];
@@ -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);
@@ -161,6 +161,7 @@ export interface GetPostsResponse {
161
161
  export interface GetPostRequest {
162
162
  id: string;
163
163
  slug?: string | undefined;
164
+ publishedOnly: boolean;
164
165
  }
165
166
  export interface CreatePostRequest {
166
167
  type: PostType;
@@ -62,7 +62,10 @@ message UpsertAttributesResponse {
62
62
  repeated AttributeUpsertResult results = 1;
63
63
  }
64
64
 
65
- message GetAllAttributesWithValuesRequest {}
65
+ message GetAllAttributesWithValuesRequest {
66
+
67
+ repeated string attribute_ids = 1;
68
+ }
66
69
 
67
70
  message GetAllAttributesWithValuesResponse {
68
71
  repeated AttributeWithValuesResponse items = 1;
@@ -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;
@@ -140,6 +140,9 @@ message GetPostsResponse {
140
140
  message GetPostRequest {
141
141
  string id = 1;
142
142
  optional string slug = 2;
143
+
144
+
145
+ bool published_only = 3;
143
146
  }
144
147
 
145
148
  message CreatePostRequest {
package/gen/attribute.ts CHANGED
@@ -54,6 +54,7 @@ export interface UpsertAttributesResponse {
54
54
  }
55
55
 
56
56
  export interface GetAllAttributesWithValuesRequest {
57
+ attributeIds: string[];
57
58
  }
58
59
 
59
60
  export interface GetAllAttributesWithValuesResponse {
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/post.ts CHANGED
@@ -170,6 +170,7 @@ export interface GetPostsResponse {
170
170
  export interface GetPostRequest {
171
171
  id: string;
172
172
  slug?: string | undefined;
173
+ publishedOnly: boolean;
173
174
  }
174
175
 
175
176
  export interface CreatePostRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.179",
4
+ "version": "1.0.181",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -62,7 +62,10 @@ message UpsertAttributesResponse {
62
62
  repeated AttributeUpsertResult results = 1;
63
63
  }
64
64
 
65
- message GetAllAttributesWithValuesRequest {}
65
+ message GetAllAttributesWithValuesRequest {
66
+
67
+ repeated string attribute_ids = 1;
68
+ }
66
69
 
67
70
  message GetAllAttributesWithValuesResponse {
68
71
  repeated AttributeWithValuesResponse items = 1;
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;
package/proto/post.proto CHANGED
@@ -140,6 +140,9 @@ message GetPostsResponse {
140
140
  message GetPostRequest {
141
141
  string id = 1;
142
142
  optional string slug = 2;
143
+
144
+
145
+ bool published_only = 3;
143
146
  }
144
147
 
145
148
  message CreatePostRequest {