@devline-smart-taxi/common 2.3.46 → 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
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);
|
|
@@ -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
|
+
}
|