@devline-smart-taxi/common 2.3.66 → 2.3.68

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.
@@ -82,6 +82,9 @@ service DriverService {
82
82
 
83
83
  // Refresh token orqali yangi access token olish
84
84
  rpc RefreshToken (RefreshTokenRequest) returns (RefreshTokenResponse);
85
+
86
+ // Push bildirishnomalarini yoqish/o'chirish
87
+ rpc UpdatePushPreference (UpdatePushPreferenceRequest) returns (common.SuccessResponseResult);
85
88
  }
86
89
 
87
90
  // ==========================================
@@ -205,6 +208,10 @@ message RefreshTokenRequest {
205
208
  string refreshToken = 1;
206
209
  }
207
210
 
211
+ message UpdatePushPreferenceRequest {
212
+ bool pushEnabled = 1;
213
+ }
214
+
208
215
  message UpdateDriverPersonalInfoRequest {
209
216
  string id = 1;
210
217
  optional string firstName = 2;
@@ -368,6 +375,7 @@ message DriverData {
368
375
  optional string fcm_token = 22;
369
376
  optional string lang = 23;
370
377
  optional string profilePhotoUrl = 24; // Avatar URL
378
+ optional bool pushEnabled = 25;
371
379
  }
372
380
 
373
381
  // Haydovchining hujjatlari (ID karta, selfi, haydovchilik guvohnomasi)
@@ -23,6 +23,7 @@ service UserService {
23
23
  rpc GetMyProfile (common.NoParams) returns (UserResponse);
24
24
  rpc ApplyReferralCode (ApplyReferralCodeRequest) returns (common.SuccessResponseResult);
25
25
  rpc GetFcmTokens (GetFcmTokensRequest) returns (FcmTokensResponse);
26
+ rpc UpdatePushPreference (UpdatePushPreferenceRequest) returns (common.SuccessResponseResult);
26
27
  }
27
28
 
28
29
  // ==========================================
@@ -48,6 +49,7 @@ message UserData {
48
49
  optional string referredById = 16;
49
50
  optional string fcmToken = 17;
50
51
  optional string lang = 18;
52
+ optional bool pushEnabled = 19;
51
53
  }
52
54
 
53
55
  message Id{
@@ -117,6 +119,10 @@ message GetFcmTokensRequest {
117
119
  string role = 1; // "CLIENT", "DRIVER", "ALL"
118
120
  }
119
121
 
122
+ message UpdatePushPreferenceRequest {
123
+ bool pushEnabled = 1;
124
+ }
125
+
120
126
  // ==========================================
121
127
  // 4. RESPONSES
122
128
  // ==========================================
@@ -20,6 +20,7 @@ service WalletService {
20
20
  rpc RequestWithdrawal (RequestWithdrawalRequest) returns (WithdrawalResponse);
21
21
  rpc GetDriverSettlementSummary (GetDriverSettlementSummaryRequest) returns (DriverSettlementSummaryResponse);
22
22
  rpc GetDriverSettlementLedger (GetDriverSettlementLedgerRequest) returns (DriverSettlementLedgerResponse);
23
+ rpc GetDriverTodayEarnings (GetDriverTodayEarningsRequest) returns (DriverTodayEarningsResponse);
23
24
 
24
25
  // Admin
25
26
  rpc ProcessWithdrawal (ProcessWithdrawalRequest) returns (ProcessWithdrawalResponse);
@@ -73,6 +74,14 @@ message DriverBalanceData {
73
74
  float balance = 2;
74
75
  }
75
76
 
77
+ message DriverTodayEarningsData {
78
+ string driverId = 1;
79
+ float amount = 2;
80
+ string currency = 3;
81
+ string fromDate = 4;
82
+ string toDate = 5;
83
+ }
84
+
76
85
  message DriverSettlementSummaryData {
77
86
  float credits = 1;
78
87
  float debits = 2;
@@ -164,6 +173,10 @@ message GetDriverSettlementLedgerRequest {
164
173
  optional string toDate = 6;
165
174
  }
166
175
 
176
+ message GetDriverTodayEarningsRequest {
177
+ string driverId = 1;
178
+ }
179
+
167
180
  // Admin
168
181
  message ProcessWithdrawalRequest {
169
182
  string withdrawalId = 1;
@@ -214,6 +227,12 @@ message DriverBalanceResponse {
214
227
  DriverBalanceData data = 3;
215
228
  }
216
229
 
230
+ message DriverTodayEarningsResponse {
231
+ int32 statusCode = 1;
232
+ string message = 2;
233
+ DriverTodayEarningsData data = 3;
234
+ }
235
+
217
236
  // Driver earning added
218
237
  message AddDriverEarningData {
219
238
  string transactionId = 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devline-smart-taxi/common",
3
- "version": "2.3.66",
3
+ "version": "2.3.68",
4
4
  "description": "Reusable NestJS common library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",