@devline-smart-taxi/common 2.3.66 → 2.3.67
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/proto/driver.proto +8 -0
- package/dist/proto/user.proto +6 -0
- package/package.json +1 -1
package/dist/proto/driver.proto
CHANGED
|
@@ -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)
|
package/dist/proto/user.proto
CHANGED
|
@@ -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
|
// ==========================================
|