@devline-smart-taxi/common 2.3.45 → 2.3.47
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/support-contact-proto-path.d.ts +1 -0
- package/dist/proto/support-contact-proto-path.js +4 -0
- package/dist/proto/support-contact-proto-path.ts +3 -0
- package/dist/proto/support-contact.proto +59 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -57,3 +57,4 @@ __exportStar(require("./dto/create-car-model.dto"), exports);
|
|
|
57
57
|
__exportStar(require("./dto/update-car-model.dto"), exports);
|
|
58
58
|
__exportStar(require("./proto/wallet-proto-path"), exports);
|
|
59
59
|
__exportStar(require("./proto/bonus-campaign-proto-path"), exports);
|
|
60
|
+
__exportStar(require("./proto/support-contact-proto-path"), exports);
|
package/dist/proto/driver.proto
CHANGED
|
@@ -67,6 +67,9 @@ service DriverService {
|
|
|
67
67
|
|
|
68
68
|
// Haydovchi avatarini yangilash
|
|
69
69
|
rpc UpdateAvatar (UpdateAvatarRequest) returns (common.SuccessResponseResult);
|
|
70
|
+
|
|
71
|
+
// Ro'yxatdan o'tish holatini tekshirish (auth talab qilinmaydi)
|
|
72
|
+
rpc GetRegistrationStatus (GetRegistrationStatusRequest) returns (GetRegistrationStatusResponse);
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
// ==========================================
|
|
@@ -161,6 +164,11 @@ message UpdateAvatarRequest {
|
|
|
161
164
|
string avatarId = 2; // UsersImage ID (UUID)
|
|
162
165
|
}
|
|
163
166
|
|
|
167
|
+
message GetRegistrationStatusRequest {
|
|
168
|
+
string phoneNumber = 1;
|
|
169
|
+
string secretOtp = 2;
|
|
170
|
+
}
|
|
171
|
+
|
|
164
172
|
message UpdateDriverPersonalInfoRequest {
|
|
165
173
|
string id = 1;
|
|
166
174
|
optional string firstName = 2;
|
|
@@ -363,6 +371,17 @@ message UsersImageData {
|
|
|
363
371
|
string name = 5;
|
|
364
372
|
}
|
|
365
373
|
|
|
374
|
+
message GetRegistrationStatusResponse {
|
|
375
|
+
int32 statusCode = 1;
|
|
376
|
+
string message = 2;
|
|
377
|
+
RegistrationStatusData data = 3;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
message RegistrationStatusData {
|
|
381
|
+
string step = 1;
|
|
382
|
+
optional string reason = 2;
|
|
383
|
+
}
|
|
384
|
+
|
|
366
385
|
// Registratsiyadan o'tadish uchun
|
|
367
386
|
message PasswordData {
|
|
368
387
|
bool success = 1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const supportContactProtoPath: string;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package support_contact;
|
|
4
|
+
|
|
5
|
+
import "common.proto";
|
|
6
|
+
|
|
7
|
+
// ==========================================
|
|
8
|
+
// 1. SERVICES
|
|
9
|
+
// ==========================================
|
|
10
|
+
service SupportContactService {
|
|
11
|
+
rpc Create (CreateSupportContactRequest) returns (SupportContactResponse);
|
|
12
|
+
rpc Update (UpdateSupportContactRequest) returns (SupportContactResponse);
|
|
13
|
+
rpc Delete (common.IdRequest) returns (common.SuccessResponseResult);
|
|
14
|
+
// Public — faqat active
|
|
15
|
+
rpc GetAll (common.NoParams) returns (SupportContactListResponse);
|
|
16
|
+
// Admin — hammasi
|
|
17
|
+
rpc GetAllAdmin (common.NoParams) returns (SupportContactListResponse);
|
|
18
|
+
rpc GetById (common.IdRequest) returns (SupportContactResponse);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// ==========================================
|
|
22
|
+
// 2. REQUESTS
|
|
23
|
+
// ==========================================
|
|
24
|
+
message CreateSupportContactRequest {
|
|
25
|
+
string type = 1;
|
|
26
|
+
string value = 2;
|
|
27
|
+
optional string label = 3;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message UpdateSupportContactRequest {
|
|
31
|
+
string id = 1;
|
|
32
|
+
optional string type = 2;
|
|
33
|
+
optional string value = 3;
|
|
34
|
+
optional string label = 4;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// ==========================================
|
|
38
|
+
// 3. RESPONSES
|
|
39
|
+
// ==========================================
|
|
40
|
+
message SupportContactData {
|
|
41
|
+
string id = 1;
|
|
42
|
+
string type = 2;
|
|
43
|
+
string value = 3;
|
|
44
|
+
string label = 4;
|
|
45
|
+
bool isActive = 5;
|
|
46
|
+
string createdAt = 6;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message SupportContactResponse {
|
|
50
|
+
int32 statusCode = 1;
|
|
51
|
+
string message = 2;
|
|
52
|
+
SupportContactData data = 3;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message SupportContactListResponse {
|
|
56
|
+
int32 statusCode = 1;
|
|
57
|
+
string message = 2;
|
|
58
|
+
repeated SupportContactData data = 3;
|
|
59
|
+
}
|