@devline-smart-taxi/common 2.3.44 → 2.3.45

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.
@@ -22,6 +22,7 @@ service UserService {
22
22
  rpc BlockUser (Id) returns (common.SuccessResponseResult);
23
23
  rpc GetMyProfile (common.NoParams) returns (UserResponse);
24
24
  rpc ApplyReferralCode (ApplyReferralCodeRequest) returns (common.SuccessResponseResult);
25
+ rpc GetFcmTokens (GetFcmTokensRequest) returns (FcmTokensResponse);
25
26
  }
26
27
 
27
28
  // ==========================================
@@ -112,6 +113,10 @@ message ApplyReferralCodeRequest {
112
113
  string referralCode = 1;
113
114
  }
114
115
 
116
+ message GetFcmTokensRequest {
117
+ string role = 1; // "CLIENT", "DRIVER", "ALL"
118
+ }
119
+
115
120
  // ==========================================
116
121
  // 4. RESPONSES
117
122
  // ==========================================
@@ -175,3 +180,15 @@ message PaginationResult {
175
180
  int32 statusCode = 8;
176
181
  string message = 9;
177
182
  }
183
+
184
+ message FcmTokenItem {
185
+ string userId = 1;
186
+ string fcmToken = 2;
187
+ string role = 3;
188
+ }
189
+
190
+ message FcmTokensResponse {
191
+ repeated FcmTokenItem tokens = 1;
192
+ int32 statusCode = 2;
193
+ string message = 3;
194
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devline-smart-taxi/common",
3
- "version": "2.3.44",
3
+ "version": "2.3.45",
4
4
  "description": "Reusable NestJS common library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",