@devline-smart-taxi/common 2.3.50 → 2.3.52
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/chat-message-proto-path.d.ts +1 -0
- package/dist/proto/chat-message-proto-path.js +4 -0
- package/dist/proto/chat-message-proto-path.ts +3 -0
- package/dist/proto/chat-message.proto +72 -0
- package/dist/proto/driver.proto +20 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -59,3 +59,4 @@ __exportStar(require("./proto/wallet-proto-path"), exports);
|
|
|
59
59
|
__exportStar(require("./proto/bonus-campaign-proto-path"), exports);
|
|
60
60
|
__exportStar(require("./proto/support-contact-proto-path"), exports);
|
|
61
61
|
__exportStar(require("./proto/legal-document-proto-path"), exports);
|
|
62
|
+
__exportStar(require("./proto/chat-message-proto-path"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const chatMessageProtoPath: string;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package chat_message;
|
|
4
|
+
|
|
5
|
+
import "common.proto";
|
|
6
|
+
|
|
7
|
+
// ==========================================
|
|
8
|
+
// 1. SERVICE
|
|
9
|
+
// ==========================================
|
|
10
|
+
|
|
11
|
+
service ChatMessageService {
|
|
12
|
+
rpc GetMyMessages (GetMyMessagesRequest) returns (MessageListResponse);
|
|
13
|
+
rpc GetByTripId (GetByTripIdRequest) returns (MessageListResponse);
|
|
14
|
+
rpc GetById (common.IdRequest) returns (SingleMessageResponse);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// ==========================================
|
|
18
|
+
// 2. DATA MESSAGES
|
|
19
|
+
// ==========================================
|
|
20
|
+
|
|
21
|
+
message MessageData {
|
|
22
|
+
string id = 1;
|
|
23
|
+
optional string correlationId = 2;
|
|
24
|
+
optional string tripId = 3;
|
|
25
|
+
string senderId = 4;
|
|
26
|
+
string senderType = 5;
|
|
27
|
+
string recipientId = 6;
|
|
28
|
+
string recipientType = 7;
|
|
29
|
+
string category = 8;
|
|
30
|
+
string type = 9;
|
|
31
|
+
string content = 10;
|
|
32
|
+
optional string metadata = 11;
|
|
33
|
+
string priority = 12;
|
|
34
|
+
string status = 13;
|
|
35
|
+
string createdAt = 14;
|
|
36
|
+
optional string updatedAt = 15;
|
|
37
|
+
optional string sentAt = 16;
|
|
38
|
+
optional string deliveredAt = 17;
|
|
39
|
+
optional string readAt = 18;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// ==========================================
|
|
43
|
+
// 3. REQUESTS
|
|
44
|
+
// ==========================================
|
|
45
|
+
|
|
46
|
+
message GetMyMessagesRequest {
|
|
47
|
+
string userId = 1;
|
|
48
|
+
int32 limit = 2;
|
|
49
|
+
int32 offset = 3;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message GetByTripIdRequest {
|
|
53
|
+
string tripId = 1;
|
|
54
|
+
int32 limit = 2;
|
|
55
|
+
int32 offset = 3;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// ==========================================
|
|
59
|
+
// 4. RESPONSES
|
|
60
|
+
// ==========================================
|
|
61
|
+
|
|
62
|
+
message MessageListResponse {
|
|
63
|
+
int32 statusCode = 1;
|
|
64
|
+
string message = 2;
|
|
65
|
+
repeated MessageData data = 3;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message SingleMessageResponse {
|
|
69
|
+
int32 statusCode = 1;
|
|
70
|
+
string message = 2;
|
|
71
|
+
MessageData data = 3;
|
|
72
|
+
}
|
package/dist/proto/driver.proto
CHANGED
|
@@ -70,6 +70,9 @@ service DriverService {
|
|
|
70
70
|
|
|
71
71
|
// Ro'yxatdan o'tish holatini tekshirish (auth talab qilinmaydi)
|
|
72
72
|
rpc GetRegistrationStatus (GetRegistrationStatusRequest) returns (GetRegistrationStatusResponse);
|
|
73
|
+
|
|
74
|
+
// Rad etilgan arizani qayta yuborish (REJECTED -> PERSONAL_INFO_ADDED)
|
|
75
|
+
rpc ResendApplication (ResendApplicationRequest) returns (ResendApplicationResponse);
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
// ==========================================
|
|
@@ -169,6 +172,11 @@ message GetRegistrationStatusRequest {
|
|
|
169
172
|
string secretOtp = 2;
|
|
170
173
|
}
|
|
171
174
|
|
|
175
|
+
message ResendApplicationRequest {
|
|
176
|
+
string phoneNumber = 1;
|
|
177
|
+
string secretOtp = 2;
|
|
178
|
+
}
|
|
179
|
+
|
|
172
180
|
message UpdateDriverPersonalInfoRequest {
|
|
173
181
|
string id = 1;
|
|
174
182
|
optional string firstName = 2;
|
|
@@ -382,6 +390,18 @@ message RegistrationStatusData {
|
|
|
382
390
|
optional string reason = 2;
|
|
383
391
|
}
|
|
384
392
|
|
|
393
|
+
message ResendApplicationResponse {
|
|
394
|
+
int32 statusCode = 1;
|
|
395
|
+
string message = 2;
|
|
396
|
+
ResendApplicationData data = 3;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
message ResendApplicationData {
|
|
400
|
+
string step = 1;
|
|
401
|
+
string phoneNumber = 2;
|
|
402
|
+
string secretOtp = 3;
|
|
403
|
+
}
|
|
404
|
+
|
|
385
405
|
// Registratsiyadan o'tadish uchun
|
|
386
406
|
message PasswordData {
|
|
387
407
|
bool success = 1;
|