@mamindom/contracts 1.0.167 → 1.0.169
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/gen/product.d.ts +1 -0
- package/dist/gen/search.d.ts +18 -0
- package/dist/gen/search.js +2 -0
- package/dist/proto/account.proto +35 -41
- package/dist/proto/attribute.proto +37 -48
- package/dist/proto/audit.proto +33 -33
- package/dist/proto/auth.proto +9 -15
- package/dist/proto/banner.proto +17 -27
- package/dist/proto/bonus_settings.proto +11 -16
- package/dist/proto/brand.proto +16 -24
- package/dist/proto/bundle.proto +46 -58
- package/dist/proto/calculation.proto +28 -34
- package/dist/proto/cart.proto +84 -90
- package/dist/proto/category.proto +21 -30
- package/dist/proto/common.proto +6 -7
- package/dist/proto/common_post.proto +4 -4
- package/dist/proto/coupon.proto +43 -56
- package/dist/proto/crm_calculation.proto +47 -57
- package/dist/proto/delivery.proto +67 -69
- package/dist/proto/delivery_settings.proto +27 -36
- package/dist/proto/faq.proto +30 -43
- package/dist/proto/manager.proto +44 -32
- package/dist/proto/media.proto +9 -19
- package/dist/proto/notification.proto +76 -111
- package/dist/proto/order.proto +142 -151
- package/dist/proto/product.proto +3 -1
- package/dist/proto/search.proto +24 -0
- package/dist/proto/size_chart.proto +17 -19
- package/dist/proto/warehouse.proto +4 -5
- package/gen/product.ts +1 -0
- package/gen/search.ts +31 -0
- package/package.json +1 -1
- package/proto/account.proto +35 -41
- package/proto/attribute.proto +37 -48
- package/proto/audit.proto +33 -33
- package/proto/auth.proto +9 -15
- package/proto/banner.proto +17 -27
- package/proto/bonus_settings.proto +11 -16
- package/proto/brand.proto +16 -24
- package/proto/bundle.proto +46 -58
- package/proto/calculation.proto +28 -34
- package/proto/cart.proto +84 -90
- package/proto/category.proto +21 -30
- package/proto/common.proto +6 -7
- package/proto/common_post.proto +4 -4
- package/proto/coupon.proto +43 -56
- package/proto/crm_calculation.proto +47 -57
- package/proto/delivery.proto +67 -69
- package/proto/delivery_settings.proto +27 -36
- package/proto/faq.proto +30 -43
- package/proto/manager.proto +44 -32
- package/proto/media.proto +9 -19
- package/proto/notification.proto +76 -111
- package/proto/order.proto +142 -151
- package/proto/product.proto +3 -1
- package/proto/search.proto +24 -0
- package/proto/size_chart.proto +17 -19
- package/proto/warehouse.proto +4 -5
|
@@ -2,113 +2,106 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package crm.v1;
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
service CrmCalculationService {
|
|
7
6
|
rpc CalculateCart(CalculateCartRequest) returns (CalculateCartResponse);
|
|
8
7
|
|
|
9
|
-
|
|
10
8
|
rpc InvalidateCartSession(InvalidateCartSessionRequest) returns (InvalidateCartSessionResponse);
|
|
11
9
|
|
|
12
|
-
|
|
13
10
|
rpc ReserveBonuses(ReserveBonusesRequest) returns (ReserveBonusesResponse);
|
|
14
11
|
rpc ReleaseBonusReserve(ReleaseBonusReserveRequest) returns (ReleaseBonusReserveResponse);
|
|
15
12
|
|
|
16
|
-
|
|
17
13
|
rpc GetCustomerProfile(GetCustomerProfileRequest) returns (GetCustomerProfileResponse);
|
|
18
14
|
}
|
|
19
15
|
|
|
20
16
|
message CrmCalculationItem {
|
|
21
|
-
string product_id
|
|
22
|
-
string variant_id
|
|
23
|
-
string category_id = 3;
|
|
24
|
-
string brand_id
|
|
25
|
-
int32
|
|
26
|
-
double unit_price
|
|
27
|
-
double subtotal
|
|
17
|
+
string product_id = 1;
|
|
18
|
+
string variant_id = 2;
|
|
19
|
+
string category_id = 3;
|
|
20
|
+
string brand_id = 4;
|
|
21
|
+
int32 quantity = 5;
|
|
22
|
+
double unit_price = 6;
|
|
23
|
+
double subtotal = 7;
|
|
28
24
|
}
|
|
29
25
|
|
|
30
26
|
message CalculateCartRequest {
|
|
31
|
-
string cart_session_id = 1;
|
|
32
|
-
string user_id
|
|
27
|
+
string cart_session_id = 1;
|
|
28
|
+
string user_id = 2;
|
|
33
29
|
repeated CrmCalculationItem items = 3;
|
|
34
|
-
double bonus_to_spend
|
|
35
|
-
double total_amount
|
|
30
|
+
double bonus_to_spend = 4;
|
|
31
|
+
double total_amount = 5;
|
|
36
32
|
|
|
37
33
|
string calculation_date = 6;
|
|
38
|
-
string order_id
|
|
39
|
-
repeated string coupon_codes = 8;
|
|
40
|
-
string business_unit_entry_id = 9;
|
|
34
|
+
string order_id = 7;
|
|
35
|
+
repeated string coupon_codes = 8;
|
|
36
|
+
string business_unit_entry_id = 9;
|
|
41
37
|
}
|
|
42
38
|
|
|
43
39
|
message CrmCalculatedItem {
|
|
44
|
-
string product_id
|
|
45
|
-
string variant_id
|
|
46
|
-
int32
|
|
47
|
-
double unit_price
|
|
48
|
-
double line_total
|
|
40
|
+
string product_id = 1;
|
|
41
|
+
string variant_id = 2;
|
|
42
|
+
int32 quantity = 3;
|
|
43
|
+
double unit_price = 4;
|
|
44
|
+
double line_total = 5;
|
|
49
45
|
double discount_amount = 6;
|
|
50
|
-
string promotion_name
|
|
46
|
+
string promotion_name = 7;
|
|
51
47
|
}
|
|
52
48
|
|
|
53
49
|
message CrmAppliedPromotion {
|
|
54
|
-
string id
|
|
55
|
-
string name
|
|
50
|
+
string id = 1;
|
|
51
|
+
string name = 2;
|
|
56
52
|
double discount_amount = 3;
|
|
57
53
|
}
|
|
58
54
|
|
|
59
55
|
message CrmPromoError {
|
|
60
|
-
string code
|
|
56
|
+
string code = 1;
|
|
61
57
|
string message = 2;
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
message CalculateCartResponse {
|
|
65
|
-
|
|
66
61
|
string source = 1;
|
|
67
|
-
|
|
62
|
+
|
|
68
63
|
bool degraded = 2;
|
|
69
|
-
|
|
64
|
+
|
|
70
65
|
bool parsed = 3;
|
|
71
66
|
|
|
72
|
-
double subtotal
|
|
73
|
-
double discount_total
|
|
74
|
-
double total
|
|
75
|
-
double bonus_to_deduct
|
|
76
|
-
double bonus_max_spend
|
|
67
|
+
double subtotal = 4;
|
|
68
|
+
double discount_total = 5;
|
|
69
|
+
double total = 6;
|
|
70
|
+
double bonus_to_deduct = 7;
|
|
71
|
+
double bonus_max_spend = 8;
|
|
77
72
|
double cashback_to_earn = 9;
|
|
78
73
|
|
|
79
74
|
repeated CrmCalculatedItem items = 10;
|
|
80
75
|
repeated CrmAppliedPromotion promotions = 11;
|
|
81
76
|
repeated CrmPromoError promo_errors = 12;
|
|
82
77
|
|
|
83
|
-
|
|
84
|
-
string crm_task_id = 13;
|
|
78
|
+
string crm_task_id = 13;
|
|
85
79
|
string crm_comment_id = 14;
|
|
86
|
-
|
|
80
|
+
|
|
87
81
|
string raw_result = 15;
|
|
88
82
|
|
|
89
83
|
int32 duration_ms = 16;
|
|
90
84
|
}
|
|
91
85
|
|
|
92
86
|
message ReserveBonusesRequest {
|
|
93
|
-
string user_id
|
|
87
|
+
string user_id = 1;
|
|
94
88
|
string cart_session_id = 2;
|
|
95
|
-
double amount
|
|
89
|
+
double amount = 3;
|
|
96
90
|
}
|
|
97
91
|
|
|
98
92
|
message ReserveBonusesResponse {
|
|
99
|
-
bool
|
|
93
|
+
bool success = 1;
|
|
100
94
|
string reserve_id = 2;
|
|
101
|
-
|
|
102
|
-
int64 expires_at = 3;
|
|
103
|
-
|
|
104
|
-
double available = 4;
|
|
105
95
|
|
|
106
|
-
|
|
96
|
+
int64 expires_at = 3;
|
|
97
|
+
|
|
98
|
+
double available = 4;
|
|
99
|
+
|
|
100
|
+
string error = 5;
|
|
107
101
|
}
|
|
108
102
|
|
|
109
103
|
message ReleaseBonusReserveRequest {
|
|
110
|
-
|
|
111
|
-
string reserve_id = 1;
|
|
104
|
+
string reserve_id = 1;
|
|
112
105
|
string cart_session_id = 2;
|
|
113
106
|
}
|
|
114
107
|
|
|
@@ -129,21 +122,18 @@ message GetCustomerProfileRequest {
|
|
|
129
122
|
}
|
|
130
123
|
|
|
131
124
|
message GetCustomerProfileResponse {
|
|
132
|
-
|
|
133
125
|
bool found = 1;
|
|
134
|
-
|
|
126
|
+
|
|
135
127
|
bool degraded = 2;
|
|
136
128
|
string planfix_contact_id = 3;
|
|
137
129
|
|
|
138
|
-
double bonus_balance
|
|
139
|
-
double cashback_active
|
|
130
|
+
double bonus_balance = 4;
|
|
131
|
+
double cashback_active = 5;
|
|
140
132
|
double cashback_inactive = 6;
|
|
141
|
-
double cashback_total
|
|
142
|
-
double cashback_burned
|
|
133
|
+
double cashback_total = 7;
|
|
134
|
+
double cashback_burned = 8;
|
|
143
135
|
double cashback_negative = 9;
|
|
144
136
|
|
|
145
|
-
|
|
146
|
-
|
|
147
137
|
string loyalty_status_raw = 10;
|
|
148
|
-
string gift_bonuses_raw
|
|
138
|
+
string gift_bonuses_raw = 11;
|
|
149
139
|
}
|
package/proto/delivery.proto
CHANGED
|
@@ -16,74 +16,72 @@ service DeliveryService {
|
|
|
16
16
|
rpc ListShipments(ListShipmentsRequest) returns (ListShipmentsResponse);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
message City {
|
|
21
|
-
string ref
|
|
22
|
-
string carrier
|
|
23
|
-
string name
|
|
24
|
-
string name_ru
|
|
25
|
-
string region
|
|
26
|
-
string area_ref
|
|
20
|
+
string ref = 1;
|
|
21
|
+
string carrier = 2;
|
|
22
|
+
string name = 3;
|
|
23
|
+
string name_ru = 4;
|
|
24
|
+
string region = 5;
|
|
25
|
+
string area_ref = 6;
|
|
27
26
|
string settlement_type = 7;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
message Warehouse {
|
|
31
|
-
string ref
|
|
32
|
-
string carrier
|
|
33
|
-
string city_ref
|
|
34
|
-
string number
|
|
35
|
-
string name
|
|
30
|
+
string ref = 1;
|
|
31
|
+
string carrier = 2;
|
|
32
|
+
string city_ref = 3;
|
|
33
|
+
string number = 4;
|
|
34
|
+
string name = 5;
|
|
36
35
|
string short_address = 6;
|
|
37
|
-
string type
|
|
38
|
-
string schedule
|
|
36
|
+
string type = 7;
|
|
37
|
+
string schedule = 8;
|
|
39
38
|
double max_weight_kg = 9;
|
|
40
|
-
bool
|
|
41
|
-
double lat
|
|
42
|
-
double lng
|
|
39
|
+
bool postomat = 10;
|
|
40
|
+
double lat = 11;
|
|
41
|
+
double lng = 12;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
message Shipment {
|
|
46
|
-
string id
|
|
47
|
-
string order_id
|
|
48
|
-
string carrier
|
|
49
|
-
string method
|
|
50
|
-
string ttn
|
|
51
|
-
string status
|
|
52
|
-
string tracking_url
|
|
53
|
-
string sender_city
|
|
45
|
+
string id = 1;
|
|
46
|
+
string order_id = 2;
|
|
47
|
+
string carrier = 3;
|
|
48
|
+
string method = 4;
|
|
49
|
+
string ttn = 5;
|
|
50
|
+
string status = 6;
|
|
51
|
+
string tracking_url = 7;
|
|
52
|
+
string sender_city = 8;
|
|
54
53
|
string sender_warehouse = 9;
|
|
55
|
-
string recipient_name
|
|
54
|
+
string recipient_name = 10;
|
|
56
55
|
string recipient_phone = 11;
|
|
57
56
|
string recipient_city_ref = 12;
|
|
58
57
|
string recipient_warehouse_ref = 13;
|
|
59
58
|
string recipient_address = 14;
|
|
60
|
-
double cost
|
|
61
|
-
double weight_kg
|
|
62
|
-
string description
|
|
59
|
+
double cost = 15;
|
|
60
|
+
double weight_kg = 16;
|
|
61
|
+
string description = 17;
|
|
63
62
|
string estimated_date = 18;
|
|
64
|
-
int64
|
|
65
|
-
int64
|
|
63
|
+
int64 created_at = 19;
|
|
64
|
+
int64 updated_at = 20;
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
message ShipmentParcelItem {
|
|
69
|
-
string sku
|
|
70
|
-
string name
|
|
71
|
-
int32
|
|
72
|
-
double price
|
|
68
|
+
string sku = 1;
|
|
69
|
+
string name = 2;
|
|
70
|
+
int32 qty = 3;
|
|
71
|
+
double price = 4;
|
|
73
72
|
double weight_kg = 5;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
|
-
|
|
77
75
|
message Area {
|
|
78
|
-
string ref
|
|
76
|
+
string ref = 1;
|
|
79
77
|
string carrier = 2;
|
|
80
|
-
string name
|
|
78
|
+
string name = 3;
|
|
81
79
|
}
|
|
82
80
|
|
|
83
81
|
message SearchCitiesRequest {
|
|
84
|
-
string carrier
|
|
85
|
-
string query
|
|
86
|
-
int32
|
|
82
|
+
string carrier = 1;
|
|
83
|
+
string query = 2;
|
|
84
|
+
int32 limit = 3;
|
|
87
85
|
string area_ref = 4;
|
|
88
86
|
}
|
|
89
87
|
|
|
@@ -100,11 +98,11 @@ message ListAreasResponse {
|
|
|
100
98
|
}
|
|
101
99
|
|
|
102
100
|
message ListWarehousesRequest {
|
|
103
|
-
string carrier
|
|
101
|
+
string carrier = 1;
|
|
104
102
|
string city_ref = 2;
|
|
105
|
-
string type
|
|
106
|
-
string query
|
|
107
|
-
int32
|
|
103
|
+
string type = 3;
|
|
104
|
+
string query = 4;
|
|
105
|
+
int32 limit = 5;
|
|
108
106
|
}
|
|
109
107
|
|
|
110
108
|
message ListWarehousesResponse {
|
|
@@ -112,29 +110,29 @@ message ListWarehousesResponse {
|
|
|
112
110
|
}
|
|
113
111
|
|
|
114
112
|
message CalculateRequest {
|
|
115
|
-
string carrier
|
|
116
|
-
string method
|
|
117
|
-
string sender_city
|
|
113
|
+
string carrier = 1;
|
|
114
|
+
string method = 2;
|
|
115
|
+
string sender_city = 3;
|
|
118
116
|
string recipient_city = 4;
|
|
119
|
-
double weight_kg
|
|
117
|
+
double weight_kg = 5;
|
|
120
118
|
double declared_value = 6;
|
|
121
|
-
string service_type
|
|
119
|
+
string service_type = 7;
|
|
122
120
|
}
|
|
123
121
|
|
|
124
122
|
message CalculateResponse {
|
|
125
|
-
bool
|
|
126
|
-
double cost
|
|
127
|
-
string currency
|
|
123
|
+
bool ok = 1;
|
|
124
|
+
double cost = 2;
|
|
125
|
+
string currency = 3;
|
|
128
126
|
string estimated_date = 4;
|
|
129
127
|
string error_message = 5;
|
|
130
128
|
}
|
|
131
129
|
|
|
132
130
|
message CreateShipmentRequest {
|
|
133
|
-
string order_id
|
|
134
|
-
string carrier
|
|
135
|
-
string method
|
|
131
|
+
string order_id = 1;
|
|
132
|
+
string carrier = 2;
|
|
133
|
+
string method = 3;
|
|
136
134
|
|
|
137
|
-
string recipient_name
|
|
135
|
+
string recipient_name = 4;
|
|
138
136
|
string recipient_phone = 5;
|
|
139
137
|
string recipient_email = 6;
|
|
140
138
|
string recipient_city_ref = 7;
|
|
@@ -143,32 +141,32 @@ message CreateShipmentRequest {
|
|
|
143
141
|
string recipient_warehouse_name = 10;
|
|
144
142
|
string recipient_address = 11;
|
|
145
143
|
|
|
146
|
-
string description
|
|
147
|
-
double weight_kg
|
|
144
|
+
string description = 12;
|
|
145
|
+
double weight_kg = 13;
|
|
148
146
|
double declared_value = 14;
|
|
149
|
-
bool
|
|
150
|
-
double cod_amount
|
|
147
|
+
bool cash_on_delivery = 15;
|
|
148
|
+
double cod_amount = 16;
|
|
151
149
|
|
|
152
150
|
repeated ShipmentParcelItem items = 17;
|
|
153
151
|
}
|
|
154
152
|
|
|
155
153
|
message CancelShipmentRequest {
|
|
156
|
-
string id
|
|
154
|
+
string id = 1;
|
|
157
155
|
string reason = 2;
|
|
158
156
|
}
|
|
159
157
|
|
|
160
158
|
message TrackRequest {
|
|
161
159
|
string carrier = 1;
|
|
162
|
-
string ttn
|
|
160
|
+
string ttn = 2;
|
|
163
161
|
}
|
|
164
162
|
|
|
165
163
|
message TrackResponse {
|
|
166
|
-
bool
|
|
167
|
-
string status
|
|
168
|
-
string status_label
|
|
169
|
-
string last_event
|
|
170
|
-
int64
|
|
171
|
-
string tracking_url
|
|
164
|
+
bool ok = 1;
|
|
165
|
+
string status = 2;
|
|
166
|
+
string status_label = 3;
|
|
167
|
+
string last_event = 4;
|
|
168
|
+
int64 last_event_at = 5;
|
|
169
|
+
string tracking_url = 6;
|
|
172
170
|
string error_message = 7;
|
|
173
171
|
}
|
|
174
172
|
|
|
@@ -2,51 +2,44 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package delivery.v1;
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
service DeliverySettingsService {
|
|
7
|
-
rpc GetDeliverySettings
|
|
8
|
-
rpc UpdateDeliverySettings
|
|
6
|
+
rpc GetDeliverySettings(GetDeliverySettingsRequest) returns (DeliverySettingsResponse);
|
|
7
|
+
rpc UpdateDeliverySettings(UpdateDeliverySettingsRequest) returns (DeliverySettingsResponse);
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
rpc
|
|
12
|
-
rpc
|
|
13
|
-
rpc UpdateCarrierConfig (UpdateCarrierConfigRequest) returns (CarrierConfigResponse);
|
|
9
|
+
rpc ListCarriers(ListCarriersRequest) returns (ListCarriersResponse);
|
|
10
|
+
rpc GetCarrierConfig(GetCarrierConfigRequest) returns (CarrierConfigResponse);
|
|
11
|
+
rpc UpdateCarrierConfig(UpdateCarrierConfigRequest) returns (CarrierConfigResponse);
|
|
14
12
|
}
|
|
15
13
|
|
|
16
|
-
|
|
17
14
|
message DeliverySettingsResponse {
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
double default_item_weight_kg = 1;
|
|
16
|
+
|
|
17
|
+
double free_shipping_threshold = 2;
|
|
18
|
+
|
|
19
|
+
double default_declared_value = 3;
|
|
20
20
|
|
|
21
|
-
double free_shipping_threshold = 2;
|
|
22
|
-
|
|
23
|
-
double default_declared_value = 3;
|
|
24
|
-
|
|
25
21
|
optional string np_sender_warehouse_ref = 4;
|
|
26
22
|
|
|
27
23
|
string updated_at = 5;
|
|
28
24
|
}
|
|
29
25
|
|
|
30
|
-
|
|
31
26
|
message GetDeliverySettingsRequest {}
|
|
32
27
|
|
|
33
|
-
|
|
34
28
|
message UpdateDeliverySettingsRequest {
|
|
35
|
-
optional double default_item_weight_kg
|
|
36
|
-
optional double free_shipping_threshold
|
|
37
|
-
optional double default_declared_value
|
|
38
|
-
optional string np_sender_warehouse_ref
|
|
39
|
-
bool
|
|
29
|
+
optional double default_item_weight_kg = 1;
|
|
30
|
+
optional double free_shipping_threshold = 2;
|
|
31
|
+
optional double default_declared_value = 3;
|
|
32
|
+
optional string np_sender_warehouse_ref = 4;
|
|
33
|
+
bool clear_np_sender_warehouse_ref = 5;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
|
-
|
|
43
36
|
message ListCarriersRequest {}
|
|
44
37
|
|
|
45
38
|
message CarrierInfo {
|
|
46
|
-
string key
|
|
39
|
+
string key = 1;
|
|
47
40
|
string display_name = 2;
|
|
48
|
-
|
|
49
|
-
bool
|
|
41
|
+
|
|
42
|
+
bool configured = 3;
|
|
50
43
|
}
|
|
51
44
|
|
|
52
45
|
message ListCarriersResponse {
|
|
@@ -57,16 +50,15 @@ message GetCarrierConfigRequest {
|
|
|
57
50
|
string key = 1;
|
|
58
51
|
}
|
|
59
52
|
|
|
60
|
-
|
|
61
53
|
message CarrierConfigField {
|
|
62
|
-
string key
|
|
63
|
-
string label
|
|
64
|
-
string type
|
|
65
|
-
bool
|
|
66
|
-
bool
|
|
67
|
-
|
|
68
|
-
string value
|
|
69
|
-
bool
|
|
54
|
+
string key = 1;
|
|
55
|
+
string label = 2;
|
|
56
|
+
string type = 3;
|
|
57
|
+
bool required = 4;
|
|
58
|
+
bool secret = 5;
|
|
59
|
+
|
|
60
|
+
string value = 6;
|
|
61
|
+
bool is_set = 7;
|
|
70
62
|
}
|
|
71
63
|
|
|
72
64
|
message CarrierConfigResponse {
|
|
@@ -76,9 +68,8 @@ message CarrierConfigResponse {
|
|
|
76
68
|
string error_message = 4;
|
|
77
69
|
}
|
|
78
70
|
|
|
79
|
-
|
|
80
71
|
message CarrierConfigPatch {
|
|
81
|
-
string key
|
|
72
|
+
string key = 1;
|
|
82
73
|
string value = 2;
|
|
83
74
|
}
|
|
84
75
|
|
package/proto/faq.proto
CHANGED
|
@@ -4,49 +4,43 @@ package content.v1;
|
|
|
4
4
|
|
|
5
5
|
import "common_post.proto";
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
service FaqService {
|
|
9
|
-
|
|
10
|
-
rpc
|
|
11
|
-
rpc SearchFaq (SearchFaqRequest) returns (SearchFaqResponse);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
rpc GetFaqCategories (GetFaqCategoriesRequest) returns (GetFaqCategoriesResponse);
|
|
15
|
-
rpc GetFaqCategory (FaqCategoryIdRequest) returns (FaqCategoryResponse);
|
|
16
|
-
rpc CreateFaqCategory (CreateFaqCategoryRequest) returns (FaqCategoryResponse);
|
|
17
|
-
rpc UpdateFaqCategory (UpdateFaqCategoryRequest) returns (FaqCategoryResponse);
|
|
18
|
-
rpc DeleteFaqCategory (FaqCategoryIdRequest) returns (DeleteResponse);
|
|
19
|
-
rpc ReorderFaqCategories (ReorderFaqRequest) returns (SuccessResponse);
|
|
8
|
+
rpc GetFaqStorefront(GetFaqStorefrontRequest) returns (GetFaqStorefrontResponse);
|
|
9
|
+
rpc SearchFaq(SearchFaqRequest) returns (SearchFaqResponse);
|
|
20
10
|
|
|
11
|
+
rpc GetFaqCategories(GetFaqCategoriesRequest) returns (GetFaqCategoriesResponse);
|
|
12
|
+
rpc GetFaqCategory(FaqCategoryIdRequest) returns (FaqCategoryResponse);
|
|
13
|
+
rpc CreateFaqCategory(CreateFaqCategoryRequest) returns (FaqCategoryResponse);
|
|
14
|
+
rpc UpdateFaqCategory(UpdateFaqCategoryRequest) returns (FaqCategoryResponse);
|
|
15
|
+
rpc DeleteFaqCategory(FaqCategoryIdRequest) returns (DeleteResponse);
|
|
16
|
+
rpc ReorderFaqCategories(ReorderFaqRequest) returns (SuccessResponse);
|
|
21
17
|
|
|
22
|
-
rpc GetFaqItems
|
|
23
|
-
rpc GetFaqItem
|
|
24
|
-
rpc CreateFaqItem
|
|
25
|
-
rpc UpdateFaqItem
|
|
26
|
-
rpc DeleteFaqItem
|
|
27
|
-
rpc ReorderFaqItems
|
|
28
|
-
rpc BulkSetPopular
|
|
18
|
+
rpc GetFaqItems(GetFaqItemsRequest) returns (GetFaqItemsResponse);
|
|
19
|
+
rpc GetFaqItem(FaqItemIdRequest) returns (FaqItemResponse);
|
|
20
|
+
rpc CreateFaqItem(CreateFaqItemRequest) returns (FaqItemResponse);
|
|
21
|
+
rpc UpdateFaqItem(UpdateFaqItemRequest) returns (FaqItemResponse);
|
|
22
|
+
rpc DeleteFaqItem(FaqItemIdRequest) returns (DeleteResponse);
|
|
23
|
+
rpc ReorderFaqItems(ReorderFaqRequest) returns (SuccessResponse);
|
|
24
|
+
rpc BulkSetPopular(BulkSetPopularFaqRequest) returns (SuccessResponse);
|
|
29
25
|
}
|
|
30
26
|
|
|
31
|
-
|
|
32
27
|
enum FaqStatus {
|
|
33
28
|
FAQ_STATUS_UNSPECIFIED = 0;
|
|
34
|
-
FAQ_STATUS_DRAFT
|
|
35
|
-
FAQ_STATUS_PUBLISHED
|
|
36
|
-
FAQ_STATUS_ARCHIVED
|
|
29
|
+
FAQ_STATUS_DRAFT = 1;
|
|
30
|
+
FAQ_STATUS_PUBLISHED = 2;
|
|
31
|
+
FAQ_STATUS_ARCHIVED = 3;
|
|
37
32
|
}
|
|
38
33
|
|
|
39
|
-
|
|
40
34
|
message FaqCategoryResponse {
|
|
41
|
-
string id
|
|
35
|
+
string id = 1;
|
|
42
36
|
string slug = 2;
|
|
43
37
|
|
|
44
38
|
map<string, string> title = 3;
|
|
45
39
|
|
|
46
40
|
optional string icon = 4;
|
|
47
41
|
|
|
48
|
-
int32
|
|
49
|
-
FaqStatus status
|
|
42
|
+
int32 sort_order = 5;
|
|
43
|
+
FaqStatus status = 6;
|
|
50
44
|
|
|
51
45
|
int32 items_count = 7;
|
|
52
46
|
|
|
@@ -54,37 +48,33 @@ message FaqCategoryResponse {
|
|
|
54
48
|
string updated_at = 9;
|
|
55
49
|
}
|
|
56
50
|
|
|
57
|
-
|
|
58
51
|
message FaqItemResponse {
|
|
59
|
-
string id
|
|
52
|
+
string id = 1;
|
|
60
53
|
string category_id = 2;
|
|
61
54
|
|
|
62
55
|
map<string, string> question = 3;
|
|
63
|
-
map<string, string> answer
|
|
56
|
+
map<string, string> answer = 4;
|
|
64
57
|
|
|
65
|
-
bool
|
|
66
|
-
int32
|
|
67
|
-
FaqStatus status
|
|
58
|
+
bool is_popular = 5;
|
|
59
|
+
int32 sort_order = 6;
|
|
60
|
+
FaqStatus status = 7;
|
|
68
61
|
|
|
69
62
|
string created_at = 8;
|
|
70
63
|
string updated_at = 9;
|
|
71
64
|
}
|
|
72
65
|
|
|
73
|
-
|
|
74
66
|
message FaqCategoryWithItems {
|
|
75
|
-
FaqCategoryResponse
|
|
76
|
-
repeated FaqItemResponse items
|
|
67
|
+
FaqCategoryResponse category = 1;
|
|
68
|
+
repeated FaqItemResponse items = 2;
|
|
77
69
|
}
|
|
78
70
|
|
|
79
|
-
|
|
80
|
-
|
|
81
71
|
message GetFaqStorefrontRequest {
|
|
82
72
|
optional int32 popular_limit = 1;
|
|
83
73
|
}
|
|
84
74
|
|
|
85
75
|
message GetFaqStorefrontResponse {
|
|
86
|
-
repeated FaqItemResponse
|
|
87
|
-
repeated FaqCategoryWithItems
|
|
76
|
+
repeated FaqItemResponse popular = 1;
|
|
77
|
+
repeated FaqCategoryWithItems categories = 2;
|
|
88
78
|
}
|
|
89
79
|
|
|
90
80
|
message SearchFaqRequest {
|
|
@@ -126,7 +116,6 @@ message UpdateFaqCategoryRequest {
|
|
|
126
116
|
bool clear_icon = 7;
|
|
127
117
|
}
|
|
128
118
|
|
|
129
|
-
|
|
130
119
|
message FaqItemIdRequest {
|
|
131
120
|
string id = 1;
|
|
132
121
|
}
|
|
@@ -162,8 +151,6 @@ message UpdateFaqItemRequest {
|
|
|
162
151
|
optional FaqStatus status = 7;
|
|
163
152
|
}
|
|
164
153
|
|
|
165
|
-
|
|
166
|
-
|
|
167
154
|
message FaqSortEntry {
|
|
168
155
|
string id = 1;
|
|
169
156
|
int32 sort_order = 2;
|