@devline-smart-taxi/common 2.3.70 → 2.3.71
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-priority-proto-path.d.ts +1 -0
- package/dist/proto/driver-priority-proto-path.js +4 -0
- package/dist/proto/driver-priority-proto-path.ts +3 -0
- package/dist/proto/driver-priority.proto +164 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -56,3 +56,4 @@ __exportStar(require("./proto/bonus-campaign-proto-path"), exports);
|
|
|
56
56
|
__exportStar(require("./proto/support-contact-proto-path"), exports);
|
|
57
57
|
__exportStar(require("./proto/legal-document-proto-path"), exports);
|
|
58
58
|
__exportStar(require("./proto/chat-message-proto-path"), exports);
|
|
59
|
+
__exportStar(require("./proto/driver-priority-proto-path"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const driverPriorityProtoPath: string;
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package driver_priority;
|
|
4
|
+
|
|
5
|
+
import "common.proto";
|
|
6
|
+
|
|
7
|
+
service DriverPriorityService {
|
|
8
|
+
// Driver APIs
|
|
9
|
+
rpc GetMyPrioritySummary (GetMyPrioritySummaryRequest) returns (DriverPrioritySummaryResponse);
|
|
10
|
+
rpc GetMyPriorityDetails (GetMyPriorityDetailsRequest) returns (DriverPriorityDetailsResponse);
|
|
11
|
+
|
|
12
|
+
// Admin APIs
|
|
13
|
+
rpc CreatePriorityRule (CreatePriorityRuleRequest) returns (PriorityRuleResponse);
|
|
14
|
+
rpc UpdatePriorityRule (UpdatePriorityRuleRequest) returns (PriorityRuleResponse);
|
|
15
|
+
rpc GetPriorityRuleById (GetPriorityRuleByIdRequest) returns (PriorityRuleResponse);
|
|
16
|
+
rpc GetPriorityRules (GetPriorityRulesRequest) returns (PriorityRuleListResponse);
|
|
17
|
+
rpc DeletePriorityRule (DeletePriorityRuleRequest) returns (common.SuccessResponseResult);
|
|
18
|
+
|
|
19
|
+
rpc UpsertDriverPriorityFacts (UpsertDriverPriorityFactsRequest) returns (common.SuccessResponseResult);
|
|
20
|
+
rpc GetDriverPriorityDetails (GetDriverPriorityDetailsRequest) returns (DriverPriorityDetailsResponse);
|
|
21
|
+
rpc GetDriversPriority (GetDriversPriorityRequest) returns (DriverPriorityRankListResponse);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message PriorityRuleData {
|
|
25
|
+
string id = 1;
|
|
26
|
+
string code = 2;
|
|
27
|
+
string title = 3;
|
|
28
|
+
optional string description = 4;
|
|
29
|
+
int32 points = 5;
|
|
30
|
+
string source = 6;
|
|
31
|
+
string conditionType = 7;
|
|
32
|
+
optional string factKey = 8;
|
|
33
|
+
optional double minValue = 9;
|
|
34
|
+
optional double maxValue = 10;
|
|
35
|
+
int32 sortOrder = 11;
|
|
36
|
+
bool isActive = 12;
|
|
37
|
+
string createdAt = 13;
|
|
38
|
+
optional string updatedAt = 14;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message PriorityItemData {
|
|
42
|
+
string code = 1;
|
|
43
|
+
string title = 2;
|
|
44
|
+
int32 points = 3;
|
|
45
|
+
bool awarded = 4;
|
|
46
|
+
optional string reason = 5;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message DriverPrioritySummaryData {
|
|
50
|
+
string driverId = 1;
|
|
51
|
+
int32 totalPoints = 2;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message DriverPriorityDetailsData {
|
|
55
|
+
string driverId = 1;
|
|
56
|
+
int32 totalPoints = 2;
|
|
57
|
+
repeated PriorityItemData items = 3;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message DriverPriorityRankData {
|
|
61
|
+
string driverId = 1;
|
|
62
|
+
int32 totalPoints = 2;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
message CreatePriorityRuleRequest {
|
|
66
|
+
string code = 1;
|
|
67
|
+
string title = 2;
|
|
68
|
+
optional string description = 3;
|
|
69
|
+
int32 points = 4;
|
|
70
|
+
string source = 5;
|
|
71
|
+
string conditionType = 6;
|
|
72
|
+
optional string factKey = 7;
|
|
73
|
+
optional double minValue = 8;
|
|
74
|
+
optional double maxValue = 9;
|
|
75
|
+
optional int32 sortOrder = 10;
|
|
76
|
+
optional bool isActive = 11;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message UpdatePriorityRuleRequest {
|
|
80
|
+
string id = 1;
|
|
81
|
+
optional string title = 2;
|
|
82
|
+
optional string description = 3;
|
|
83
|
+
optional int32 points = 4;
|
|
84
|
+
optional string source = 5;
|
|
85
|
+
optional string conditionType = 6;
|
|
86
|
+
optional string factKey = 7;
|
|
87
|
+
optional double minValue = 8;
|
|
88
|
+
optional double maxValue = 9;
|
|
89
|
+
optional int32 sortOrder = 10;
|
|
90
|
+
optional bool isActive = 11;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message GetPriorityRuleByIdRequest {
|
|
94
|
+
string id = 1;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message GetPriorityRulesRequest {
|
|
98
|
+
optional int32 page = 1;
|
|
99
|
+
optional int32 limit = 2;
|
|
100
|
+
optional bool isActive = 3;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message DeletePriorityRuleRequest {
|
|
104
|
+
string id = 1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
message GetMyPrioritySummaryRequest {
|
|
108
|
+
string driverId = 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message GetMyPriorityDetailsRequest {
|
|
112
|
+
string driverId = 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message UpsertDriverPriorityFactsRequest {
|
|
116
|
+
string driverId = 1;
|
|
117
|
+
string factsJson = 2;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
message GetDriverPriorityDetailsRequest {
|
|
121
|
+
string driverId = 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message GetDriversPriorityRequest {
|
|
125
|
+
optional int32 page = 1;
|
|
126
|
+
optional int32 limit = 2;
|
|
127
|
+
repeated string driverIds = 3;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
message PriorityRuleResponse {
|
|
131
|
+
int32 statusCode = 1;
|
|
132
|
+
string message = 2;
|
|
133
|
+
PriorityRuleData data = 3;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
message PriorityRuleListResponse {
|
|
137
|
+
repeated PriorityRuleData data = 1;
|
|
138
|
+
int32 total = 2;
|
|
139
|
+
int32 page = 3;
|
|
140
|
+
int32 limit = 4;
|
|
141
|
+
int32 statusCode = 5;
|
|
142
|
+
string message = 6;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
message DriverPrioritySummaryResponse {
|
|
146
|
+
int32 statusCode = 1;
|
|
147
|
+
string message = 2;
|
|
148
|
+
DriverPrioritySummaryData data = 3;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
message DriverPriorityDetailsResponse {
|
|
152
|
+
int32 statusCode = 1;
|
|
153
|
+
string message = 2;
|
|
154
|
+
DriverPriorityDetailsData data = 3;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
message DriverPriorityRankListResponse {
|
|
158
|
+
repeated DriverPriorityRankData data = 1;
|
|
159
|
+
int32 total = 2;
|
|
160
|
+
int32 page = 3;
|
|
161
|
+
int32 limit = 4;
|
|
162
|
+
int32 statusCode = 5;
|
|
163
|
+
string message = 6;
|
|
164
|
+
}
|