@devline-smart-taxi/common 2.3.53 → 2.3.55
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/proto/driver.proto +19 -0
- package/dist/proto/wallet-referral-proto-path.d.ts +1 -0
- package/dist/proto/wallet-referral-proto-path.js +4 -0
- package/dist/proto/wallet-referral-proto-path.ts +3 -0
- package/dist/proto/wallet-referral.proto +30 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export * from './dto/update-car-manufacturer.dto';
|
|
|
34
34
|
export * from './dto/create-car-model.dto';
|
|
35
35
|
export * from './dto/update-car-model.dto';
|
|
36
36
|
export * from './proto/wallet-proto-path';
|
|
37
|
+
export * from './proto/wallet-referral-proto-path';
|
|
37
38
|
export * from './proto/bonus-campaign-proto-path';
|
|
38
39
|
export * from './proto/support-contact-proto-path';
|
|
39
40
|
export * from './proto/legal-document-proto-path';
|
package/dist/index.js
CHANGED
|
@@ -51,6 +51,7 @@ __exportStar(require("./dto/update-car-manufacturer.dto"), exports);
|
|
|
51
51
|
__exportStar(require("./dto/create-car-model.dto"), exports);
|
|
52
52
|
__exportStar(require("./dto/update-car-model.dto"), exports);
|
|
53
53
|
__exportStar(require("./proto/wallet-proto-path"), exports);
|
|
54
|
+
__exportStar(require("./proto/wallet-referral-proto-path"), exports);
|
|
54
55
|
__exportStar(require("./proto/bonus-campaign-proto-path"), exports);
|
|
55
56
|
__exportStar(require("./proto/support-contact-proto-path"), exports);
|
|
56
57
|
__exportStar(require("./proto/legal-document-proto-path"), exports);
|
package/dist/proto/driver.proto
CHANGED
|
@@ -73,6 +73,9 @@ service DriverService {
|
|
|
73
73
|
|
|
74
74
|
// Rad etilgan arizani qayta yuborish (REJECTED -> PERSONAL_INFO_ADDED)
|
|
75
75
|
rpc ResendApplication (ResendApplicationRequest) returns (ResendApplicationResponse);
|
|
76
|
+
|
|
77
|
+
// Refresh token orqali yangi access token olish
|
|
78
|
+
rpc RefreshToken (RefreshTokenRequest) returns (RefreshTokenResponse);
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
// ==========================================
|
|
@@ -177,6 +180,10 @@ message ResendApplicationRequest {
|
|
|
177
180
|
string secretOtp = 2;
|
|
178
181
|
}
|
|
179
182
|
|
|
183
|
+
message RefreshTokenRequest {
|
|
184
|
+
string refreshToken = 1;
|
|
185
|
+
}
|
|
186
|
+
|
|
180
187
|
message UpdateDriverPersonalInfoRequest {
|
|
181
188
|
string id = 1;
|
|
182
189
|
optional string firstName = 2;
|
|
@@ -402,6 +409,18 @@ message ResendApplicationData {
|
|
|
402
409
|
string secretOtp = 3;
|
|
403
410
|
}
|
|
404
411
|
|
|
412
|
+
message RefreshTokenResponse {
|
|
413
|
+
int32 statusCode = 1;
|
|
414
|
+
string message = 2;
|
|
415
|
+
RefreshTokenData data = 3;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
message RefreshTokenData {
|
|
419
|
+
string accessToken = 1;
|
|
420
|
+
string refreshToken = 2;
|
|
421
|
+
string id = 3;
|
|
422
|
+
}
|
|
423
|
+
|
|
405
424
|
// Registratsiyadan o'tadish uchun
|
|
406
425
|
message PasswordData {
|
|
407
426
|
bool success = 1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const walletReferralProtoPath: string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wallet_referral;
|
|
4
|
+
|
|
5
|
+
service WalletReferralService {
|
|
6
|
+
rpc ApplyReferralBonus (ApplyReferralBonusRequest) returns (ApplyReferralBonusResponse);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message ApplyReferralBonusRequest {
|
|
10
|
+
string refereeClientId = 1;
|
|
11
|
+
string referrerClientId = 2;
|
|
12
|
+
float refereeAmount = 3;
|
|
13
|
+
float referrerAmount = 4;
|
|
14
|
+
string referralCode = 5;
|
|
15
|
+
string eventId = 6;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message ApplyReferralBonusData {
|
|
19
|
+
string refereeClientId = 1;
|
|
20
|
+
string referrerClientId = 2;
|
|
21
|
+
float refereeBalance = 3;
|
|
22
|
+
float referrerBalance = 4;
|
|
23
|
+
string eventId = 5;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message ApplyReferralBonusResponse {
|
|
27
|
+
int32 statusCode = 1;
|
|
28
|
+
string message = 2;
|
|
29
|
+
ApplyReferralBonusData data = 3;
|
|
30
|
+
}
|