@mamindom/contracts 1.0.168 → 1.0.170
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/calculation.d.ts +1 -0
- package/dist/gen/cart.d.ts +1 -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 +30 -34
- package/dist/proto/cart.proto +85 -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/size_chart.proto +17 -19
- package/dist/proto/warehouse.proto +4 -5
- package/gen/calculation.ts +1 -0
- package/gen/cart.ts +1 -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 +30 -34
- package/proto/cart.proto +85 -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/size_chart.proto +17 -19
- package/proto/warehouse.proto +4 -5
package/proto/account.proto
CHANGED
|
@@ -3,78 +3,76 @@ syntax = "proto3";
|
|
|
3
3
|
package account.v1;
|
|
4
4
|
|
|
5
5
|
service AccountService {
|
|
6
|
-
|
|
6
|
+
rpc GetAccount(GetAccountRequest) returns (GetAccountResponse);
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
rpc InitEmailChange(InitEmailChangeRequest) returns (InitEmailChangeResponse);
|
|
9
|
+
rpc ConfirmEmailChange(ConfirmEmailChangeRequest) returns (ConfirmEmailChangeResponse);
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
rpc InitPhoneChange(InitPhoneChangeRequest) returns (InitPhoneChangeResponse);
|
|
12
|
+
rpc ConfirmPhoneChange(ConfirmPhoneChangeRequest) returns (ConfirmPhoneChangeResponse);
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
rpc AdminGetAccount(AdminGetAccountRequest) returns (AdminGetAccountResponse);
|
|
15
15
|
rpc AdminBlockAccount(AdminBlockAccountRequest) returns (AdminBlockAccountResponse);
|
|
16
16
|
rpc AdminCreateAccount(AdminCreateAccountRequest) returns (AdminCreateAccountResponse);
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
rpc AdminGetAccounts(AdminGetAccountsRequest) returns (AdminGetAccountsResponse);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
message GetAccountRequest {
|
|
22
|
-
|
|
22
|
+
string id = 1;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
message GetAccountResponse {
|
|
26
|
-
|
|
26
|
+
string id = 1;
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
string phone = 2;
|
|
29
|
+
string email = 3;
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
string first_name = 4;
|
|
32
|
+
string last_name = 5;
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
bool is_email_verified = 6;
|
|
35
|
+
bool is_phone_verified = 7;
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Role role = 8;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
message InitEmailChangeRequest {
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
string email = 1;
|
|
42
|
+
string user_id = 2;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
message InitEmailChangeResponse {
|
|
46
|
-
|
|
46
|
+
bool ok = 1;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
message ConfirmEmailChangeRequest {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
string email = 1;
|
|
51
|
+
string code = 2;
|
|
52
|
+
string user_id = 3;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
55
|
message ConfirmEmailChangeResponse {
|
|
58
|
-
|
|
56
|
+
bool ok = 1;
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
message InitPhoneChangeRequest {
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
string phone = 1;
|
|
61
|
+
string user_id = 2;
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
message InitPhoneChangeResponse {
|
|
67
|
-
|
|
65
|
+
bool ok = 1;
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
message ConfirmPhoneChangeRequest {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
string phone = 1;
|
|
70
|
+
string code = 2;
|
|
71
|
+
string user_id = 3;
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
message ConfirmPhoneChangeResponse {
|
|
77
|
-
|
|
75
|
+
bool ok = 1;
|
|
78
76
|
}
|
|
79
77
|
|
|
80
78
|
message AdminGetAccountRequest {
|
|
@@ -96,7 +94,7 @@ message AdminGetAccountResponse {
|
|
|
96
94
|
|
|
97
95
|
message AdminBlockAccountRequest {
|
|
98
96
|
string id = 1;
|
|
99
|
-
bool block = 2;
|
|
97
|
+
bool block = 2;
|
|
100
98
|
}
|
|
101
99
|
|
|
102
100
|
message AdminBlockAccountResponse {
|
|
@@ -116,8 +114,6 @@ message AdminCreateAccountResponse {
|
|
|
116
114
|
string id = 1;
|
|
117
115
|
}
|
|
118
116
|
|
|
119
|
-
|
|
120
|
-
|
|
121
117
|
message AdminGetAccountsRequest {
|
|
122
118
|
optional int32 page = 1;
|
|
123
119
|
optional int32 limit = 2;
|
|
@@ -128,16 +124,14 @@ message AdminGetAccountsRequest {
|
|
|
128
124
|
}
|
|
129
125
|
|
|
130
126
|
message AdminGetAccountsResponse {
|
|
131
|
-
repeated AdminGetAccountResponse items = 1;
|
|
127
|
+
repeated AdminGetAccountResponse items = 1;
|
|
132
128
|
int32 total = 2;
|
|
133
129
|
}
|
|
134
130
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
ADMIN = 1;
|
|
131
|
+
enum Role {
|
|
132
|
+
USER = 0;
|
|
133
|
+
ADMIN = 1;
|
|
139
134
|
MANAGER = 2;
|
|
140
135
|
COPYWRITER = 3;
|
|
141
136
|
SEO = 4;
|
|
142
137
|
}
|
|
143
|
-
|
package/proto/attribute.proto
CHANGED
|
@@ -2,51 +2,43 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package catalog.v1;
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
import "common.proto";
|
|
7
6
|
|
|
8
|
-
|
|
9
7
|
service AttributeService {
|
|
10
|
-
|
|
11
|
-
rpc
|
|
12
|
-
rpc
|
|
13
|
-
rpc
|
|
14
|
-
rpc
|
|
15
|
-
rpc DeleteAttributeGroup (DeleteAttributeGroupRequest) returns (DeleteResponse);
|
|
8
|
+
rpc GetAttributeGroups(GetAttributeGroupsRequest) returns (GetAttributeGroupsResponse);
|
|
9
|
+
rpc GetAttributeGroup(GetAttributeGroupRequest) returns (AttributeGroupResponse);
|
|
10
|
+
rpc CreateAttributeGroup(CreateAttributeGroupRequest) returns (AttributeGroupResponse);
|
|
11
|
+
rpc UpdateAttributeGroup(UpdateAttributeGroupRequest) returns (AttributeGroupResponse);
|
|
12
|
+
rpc DeleteAttributeGroup(DeleteAttributeGroupRequest) returns (DeleteResponse);
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
rpc
|
|
19
|
-
rpc
|
|
20
|
-
rpc
|
|
21
|
-
rpc
|
|
22
|
-
rpc DeleteAttribute (DeleteAttributeRequest) returns (DeleteResponse);
|
|
14
|
+
rpc GetAttributes(GetAttributesRequest) returns (GetAttributesResponse);
|
|
15
|
+
rpc GetAttribute(GetAttributeRequest) returns (AttributeResponse);
|
|
16
|
+
rpc CreateAttribute(CreateAttributeRequest) returns (AttributeResponse);
|
|
17
|
+
rpc UpdateAttribute(UpdateAttributeRequest) returns (AttributeResponse);
|
|
18
|
+
rpc DeleteAttribute(DeleteAttributeRequest) returns (DeleteResponse);
|
|
23
19
|
|
|
24
|
-
|
|
25
|
-
rpc
|
|
26
|
-
rpc
|
|
27
|
-
rpc
|
|
28
|
-
rpc DeleteAttributeValue (DeleteAttributeValueRequest) returns (DeleteResponse);
|
|
20
|
+
rpc GetAttributeValues(GetAttributeValuesRequest) returns (GetAttributeValuesResponse);
|
|
21
|
+
rpc CreateAttributeValue(CreateAttributeValueRequest) returns (AttributeValueResponse);
|
|
22
|
+
rpc UpdateAttributeValue(UpdateAttributeValueRequest) returns (AttributeValueResponse);
|
|
23
|
+
rpc DeleteAttributeValue(DeleteAttributeValueRequest) returns (DeleteResponse);
|
|
29
24
|
|
|
30
|
-
|
|
31
|
-
rpc
|
|
32
|
-
rpc UnbindAttributeFromCategory (BindAttributeRequest) returns (SuccessResponse);
|
|
25
|
+
rpc BindAttributeToCategory(BindAttributeRequest) returns (SuccessResponse);
|
|
26
|
+
rpc UnbindAttributeFromCategory(BindAttributeRequest) returns (SuccessResponse);
|
|
33
27
|
|
|
34
|
-
rpc GetAllAttributesWithValues
|
|
28
|
+
rpc GetAllAttributesWithValues(GetAllAttributesWithValuesRequest) returns (GetAllAttributesWithValuesResponse);
|
|
35
29
|
|
|
36
|
-
|
|
37
|
-
rpc UpsertAttributes (UpsertAttributesRequest) returns (UpsertAttributesResponse);
|
|
30
|
+
rpc UpsertAttributes(UpsertAttributesRequest) returns (UpsertAttributesResponse);
|
|
38
31
|
}
|
|
39
32
|
|
|
40
|
-
|
|
41
33
|
message AttributeSyncValueItem {
|
|
42
|
-
string value_guid = 1;
|
|
43
|
-
map<string, string> value = 2;
|
|
34
|
+
string value_guid = 1;
|
|
35
|
+
map<string, string> value = 2;
|
|
44
36
|
}
|
|
45
37
|
|
|
46
38
|
message AttributeSyncItem {
|
|
47
|
-
string property_guid = 1;
|
|
48
|
-
map<string, string> name = 2;
|
|
49
|
-
bool is_color = 3;
|
|
39
|
+
string property_guid = 1;
|
|
40
|
+
map<string, string> name = 2;
|
|
41
|
+
bool is_color = 3;
|
|
50
42
|
repeated AttributeSyncValueItem values = 4;
|
|
51
43
|
}
|
|
52
44
|
|
|
@@ -56,8 +48,8 @@ message UpsertAttributesRequest {
|
|
|
56
48
|
}
|
|
57
49
|
|
|
58
50
|
message AttributeUpsertResult {
|
|
59
|
-
string guid = 1;
|
|
60
|
-
string status = 2;
|
|
51
|
+
string guid = 1;
|
|
52
|
+
string status = 2;
|
|
61
53
|
optional string reason = 3;
|
|
62
54
|
optional string id = 4;
|
|
63
55
|
int32 values_created = 5;
|
|
@@ -79,17 +71,17 @@ message AttributeWithValuesResponse {
|
|
|
79
71
|
string id = 1;
|
|
80
72
|
optional string group_id = 2;
|
|
81
73
|
string slug = 3;
|
|
82
|
-
map<string, string> name = 4;
|
|
83
|
-
string display_type = 5;
|
|
74
|
+
map<string, string> name = 4;
|
|
75
|
+
string display_type = 5;
|
|
84
76
|
int32 sort_order = 6;
|
|
85
77
|
optional string guid1c = 7;
|
|
86
78
|
bool is_filterable = 8;
|
|
87
|
-
repeated AttributeValueResponse values = 9;
|
|
79
|
+
repeated AttributeValueResponse values = 9;
|
|
88
80
|
}
|
|
89
81
|
|
|
90
82
|
message AttributeGroupResponse {
|
|
91
83
|
string id = 1;
|
|
92
|
-
map<string, string> name = 2;
|
|
84
|
+
map<string, string> name = 2;
|
|
93
85
|
int32 sort_order = 3;
|
|
94
86
|
}
|
|
95
87
|
|
|
@@ -121,13 +113,12 @@ message DeleteAttributeGroupRequest {
|
|
|
121
113
|
string id = 1;
|
|
122
114
|
}
|
|
123
115
|
|
|
124
|
-
|
|
125
116
|
message AttributeResponse {
|
|
126
117
|
string id = 1;
|
|
127
118
|
optional string group_id = 2;
|
|
128
119
|
string slug = 3;
|
|
129
|
-
map<string, string> name = 4;
|
|
130
|
-
string display_type = 5;
|
|
120
|
+
map<string, string> name = 4;
|
|
121
|
+
string display_type = 5;
|
|
131
122
|
int32 sort_order = 6;
|
|
132
123
|
optional string guid1c = 7;
|
|
133
124
|
bool is_filterable = 8;
|
|
@@ -135,7 +126,7 @@ message AttributeResponse {
|
|
|
135
126
|
|
|
136
127
|
message GetAttributesRequest {
|
|
137
128
|
PaginationRequest pagination = 1;
|
|
138
|
-
optional string group_id = 2;
|
|
129
|
+
optional string group_id = 2;
|
|
139
130
|
}
|
|
140
131
|
|
|
141
132
|
message GetAttributesResponse {
|
|
@@ -145,7 +136,7 @@ message GetAttributesResponse {
|
|
|
145
136
|
|
|
146
137
|
message GetAttributeRequest {
|
|
147
138
|
string id = 1;
|
|
148
|
-
optional string slug = 2;
|
|
139
|
+
optional string slug = 2;
|
|
149
140
|
}
|
|
150
141
|
|
|
151
142
|
message CreateAttributeRequest {
|
|
@@ -172,17 +163,16 @@ message DeleteAttributeRequest {
|
|
|
172
163
|
string id = 1;
|
|
173
164
|
}
|
|
174
165
|
|
|
175
|
-
|
|
176
166
|
message AttributeValueResponse {
|
|
177
167
|
string id = 1;
|
|
178
168
|
string attribute_id = 2;
|
|
179
|
-
map<string, string> value = 3;
|
|
180
|
-
optional string meta = 4;
|
|
169
|
+
map<string, string> value = 3;
|
|
170
|
+
optional string meta = 4;
|
|
181
171
|
optional string guid1c = 5;
|
|
182
172
|
}
|
|
183
173
|
|
|
184
174
|
message GetAttributeValuesRequest {
|
|
185
|
-
string attribute_id = 1;
|
|
175
|
+
string attribute_id = 1;
|
|
186
176
|
}
|
|
187
177
|
|
|
188
178
|
message GetAttributeValuesResponse {
|
|
@@ -206,8 +196,7 @@ message DeleteAttributeValueRequest {
|
|
|
206
196
|
string id = 1;
|
|
207
197
|
}
|
|
208
198
|
|
|
209
|
-
|
|
210
199
|
message BindAttributeRequest {
|
|
211
200
|
string category_id = 1;
|
|
212
201
|
string attribute_id = 2;
|
|
213
|
-
}
|
|
202
|
+
}
|
package/proto/audit.proto
CHANGED
|
@@ -8,17 +8,17 @@ service AuditService {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
message LogActionRequest {
|
|
11
|
-
optional string actor_id
|
|
12
|
-
optional string actor_name
|
|
13
|
-
optional string actor_email
|
|
14
|
-
string action
|
|
15
|
-
string target_type
|
|
16
|
-
optional string target_id
|
|
17
|
-
optional string summary
|
|
18
|
-
optional string before_json
|
|
19
|
-
optional string after_json
|
|
20
|
-
optional string ip
|
|
21
|
-
optional string user_agent
|
|
11
|
+
optional string actor_id = 1;
|
|
12
|
+
optional string actor_name = 2;
|
|
13
|
+
optional string actor_email = 3;
|
|
14
|
+
string action = 4;
|
|
15
|
+
string target_type = 5;
|
|
16
|
+
optional string target_id = 6;
|
|
17
|
+
optional string summary = 7;
|
|
18
|
+
optional string before_json = 8;
|
|
19
|
+
optional string after_json = 9;
|
|
20
|
+
optional string ip = 10;
|
|
21
|
+
optional string user_agent = 11;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
message LogActionResponse {
|
|
@@ -26,31 +26,31 @@ message LogActionResponse {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
message ListAuditRequest {
|
|
29
|
-
optional int32 page
|
|
30
|
-
optional int32 limit
|
|
31
|
-
optional string actor_id
|
|
32
|
-
optional string target_type
|
|
33
|
-
optional string target_id
|
|
34
|
-
optional string action
|
|
35
|
-
optional string action_group = 7;
|
|
36
|
-
optional string from
|
|
37
|
-
optional string to
|
|
29
|
+
optional int32 page = 1;
|
|
30
|
+
optional int32 limit = 2;
|
|
31
|
+
optional string actor_id = 3;
|
|
32
|
+
optional string target_type = 4;
|
|
33
|
+
optional string target_id = 5;
|
|
34
|
+
optional string action = 6;
|
|
35
|
+
optional string action_group = 7;
|
|
36
|
+
optional string from = 8;
|
|
37
|
+
optional string to = 9;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
message AuditEntry {
|
|
41
|
-
string id
|
|
42
|
-
string actor_id
|
|
43
|
-
string actor_name
|
|
44
|
-
string actor_email
|
|
45
|
-
string action
|
|
46
|
-
string target_type
|
|
47
|
-
string target_id
|
|
48
|
-
string summary
|
|
49
|
-
string before_json
|
|
50
|
-
string after_json
|
|
51
|
-
string ip
|
|
52
|
-
string user_agent
|
|
53
|
-
string created_at
|
|
41
|
+
string id = 1;
|
|
42
|
+
string actor_id = 2;
|
|
43
|
+
string actor_name = 3;
|
|
44
|
+
string actor_email = 4;
|
|
45
|
+
string action = 5;
|
|
46
|
+
string target_type = 6;
|
|
47
|
+
string target_id = 7;
|
|
48
|
+
string summary = 8;
|
|
49
|
+
string before_json = 9;
|
|
50
|
+
string after_json = 10;
|
|
51
|
+
string ip = 11;
|
|
52
|
+
string user_agent = 12;
|
|
53
|
+
string created_at = 13;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
message ListAuditResponse {
|
package/proto/auth.proto
CHANGED
|
@@ -2,16 +2,15 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package auth.v1;
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
service AuthService {
|
|
7
|
-
rpc SendOtp
|
|
8
|
-
rpc VerifyOtp
|
|
9
|
-
rpc Refresh
|
|
10
|
-
rpc Login
|
|
11
|
-
rpc Register
|
|
12
|
-
rpc Logout
|
|
13
|
-
rpc RequestPasswordReset
|
|
14
|
-
rpc ResetPassword
|
|
6
|
+
rpc SendOtp(SendOtpRequest) returns (SendOtpResponse);
|
|
7
|
+
rpc VerifyOtp(VerifyOtpRequest) returns (AuthResponse);
|
|
8
|
+
rpc Refresh(RefreshRequest) returns (RefreshResponse);
|
|
9
|
+
rpc Login(LoginRequest) returns (AuthResponse);
|
|
10
|
+
rpc Register(RegisterRequest) returns (AuthResponse);
|
|
11
|
+
rpc Logout(LogoutRequest) returns (LogoutResponse);
|
|
12
|
+
rpc RequestPasswordReset(RequestPasswordResetRequest) returns (RequestPasswordResetResponse);
|
|
13
|
+
rpc ResetPassword(ResetPasswordRequest) returns (AuthResponse);
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
message LogoutRequest {
|
|
@@ -22,7 +21,6 @@ message LogoutResponse {
|
|
|
22
21
|
bool ok = 1;
|
|
23
22
|
}
|
|
24
23
|
|
|
25
|
-
|
|
26
24
|
message SendOtpRequest {
|
|
27
25
|
string identifier = 1;
|
|
28
26
|
string type = 2;
|
|
@@ -32,21 +30,18 @@ message SendOtpResponse {
|
|
|
32
30
|
bool ok = 1;
|
|
33
31
|
}
|
|
34
32
|
|
|
35
|
-
|
|
36
33
|
message VerifyOtpRequest {
|
|
37
34
|
string identifier = 1;
|
|
38
35
|
string type = 2;
|
|
39
36
|
string code = 3;
|
|
40
37
|
}
|
|
41
38
|
|
|
42
|
-
|
|
43
39
|
message LoginRequest {
|
|
44
40
|
string identifier = 1;
|
|
45
41
|
string type = 2;
|
|
46
42
|
string password = 3;
|
|
47
43
|
}
|
|
48
44
|
|
|
49
|
-
|
|
50
45
|
message RegisterRequest {
|
|
51
46
|
string first_name = 1;
|
|
52
47
|
string last_name = 2;
|
|
@@ -71,7 +66,6 @@ message ResetPasswordRequest {
|
|
|
71
66
|
string new_password = 4;
|
|
72
67
|
}
|
|
73
68
|
|
|
74
|
-
|
|
75
69
|
message AuthResponse {
|
|
76
70
|
string access_token = 1;
|
|
77
71
|
string refresh_token = 2;
|
|
@@ -84,4 +78,4 @@ message RefreshRequest {
|
|
|
84
78
|
message RefreshResponse {
|
|
85
79
|
string access_token = 1;
|
|
86
80
|
string refresh_token = 2;
|
|
87
|
-
}
|
|
81
|
+
}
|
package/proto/banner.proto
CHANGED
|
@@ -5,21 +5,18 @@ package content.v1;
|
|
|
5
5
|
import "common_post.proto";
|
|
6
6
|
|
|
7
7
|
service BannerService {
|
|
8
|
-
|
|
9
|
-
rpc
|
|
10
|
-
rpc
|
|
11
|
-
rpc
|
|
12
|
-
rpc
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
rpc
|
|
17
|
-
rpc
|
|
18
|
-
|
|
19
|
-
rpc
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
rpc GetBannersByPlacement (GetBannersByPlacementRequest) returns (GetBannersByPlacementResponse);
|
|
8
|
+
rpc GetBanners(GetBannersRequest) returns (GetBannersResponse);
|
|
9
|
+
rpc GetBanner(GetBannerRequest) returns (BannerDetailResponse);
|
|
10
|
+
rpc CreateBanner(CreateBannerRequest) returns (BannerDetailResponse);
|
|
11
|
+
rpc UpdateBanner(UpdateBannerRequest) returns (BannerDetailResponse);
|
|
12
|
+
rpc DeleteBanner(DeleteBannerRequest) returns (DeleteResponse);
|
|
13
|
+
|
|
14
|
+
rpc CreateBannerSlide(CreateBannerSlideRequest) returns (BannerSlideResponse);
|
|
15
|
+
rpc UpdateBannerSlide(UpdateBannerSlideRequest) returns (BannerSlideResponse);
|
|
16
|
+
rpc DeleteBannerSlide(DeleteBannerSlideRequest) returns (DeleteResponse);
|
|
17
|
+
rpc UpdateSlideOrder(UpdateSlideOrderRequest) returns (SuccessResponse);
|
|
18
|
+
|
|
19
|
+
rpc GetBannersByPlacement(GetBannersByPlacementRequest) returns (GetBannersByPlacementResponse);
|
|
23
20
|
}
|
|
24
21
|
|
|
25
22
|
enum BannerPlacement {
|
|
@@ -33,7 +30,6 @@ enum BannerPlacement {
|
|
|
33
30
|
BANNER_PLACEMENT_ABOUT_PAGE = 7;
|
|
34
31
|
}
|
|
35
32
|
|
|
36
|
-
|
|
37
33
|
message BannerListItemResponse {
|
|
38
34
|
string id = 1;
|
|
39
35
|
string slug = 2;
|
|
@@ -78,11 +74,10 @@ message BannerSlideResponse {
|
|
|
78
74
|
optional ElementPosition links_position = 11;
|
|
79
75
|
optional string links_layout = 12;
|
|
80
76
|
|
|
81
|
-
string styling = 13;
|
|
77
|
+
string styling = 13;
|
|
82
78
|
int32 sort_order = 14;
|
|
83
79
|
}
|
|
84
80
|
|
|
85
|
-
|
|
86
81
|
message GetBannersRequest {
|
|
87
82
|
PaginationRequest pagination = 1;
|
|
88
83
|
optional BannerPlacement placement = 2;
|
|
@@ -118,7 +113,7 @@ message UpdateBannerRequest {
|
|
|
118
113
|
string id = 1;
|
|
119
114
|
optional string slug = 2;
|
|
120
115
|
map<string, string> name = 3;
|
|
121
|
-
|
|
116
|
+
|
|
122
117
|
repeated BannerPlacement placements = 4;
|
|
123
118
|
optional bool status = 5;
|
|
124
119
|
optional int32 sort_order = 6;
|
|
@@ -141,14 +136,13 @@ message CreateBannerSlidePayload {
|
|
|
141
136
|
map<string, string> title = 5;
|
|
142
137
|
map<string, string> subtitle = 6;
|
|
143
138
|
|
|
144
|
-
|
|
145
139
|
repeated BannerSlideButton buttons = 7;
|
|
146
140
|
optional ElementPosition buttons_position = 8;
|
|
147
141
|
repeated BannerSlideLink links = 9;
|
|
148
142
|
optional ElementPosition links_position = 10;
|
|
149
143
|
optional string links_layout = 11;
|
|
150
144
|
|
|
151
|
-
string styling = 12;
|
|
145
|
+
string styling = 12;
|
|
152
146
|
int32 sort_order = 13;
|
|
153
147
|
}
|
|
154
148
|
|
|
@@ -161,7 +155,6 @@ message CreateBannerSlideRequest {
|
|
|
161
155
|
map<string, string> title = 6;
|
|
162
156
|
map<string, string> subtitle = 7;
|
|
163
157
|
|
|
164
|
-
|
|
165
158
|
repeated BannerSlideButton buttons = 8;
|
|
166
159
|
optional ElementPosition buttons_position = 9;
|
|
167
160
|
repeated BannerSlideLink links = 10;
|
|
@@ -181,7 +174,6 @@ message UpdateBannerSlideRequest {
|
|
|
181
174
|
map<string, string> title = 6;
|
|
182
175
|
map<string, string> subtitle = 7;
|
|
183
176
|
|
|
184
|
-
|
|
185
177
|
repeated BannerSlideButton buttons = 8;
|
|
186
178
|
optional ElementPosition buttons_position = 9;
|
|
187
179
|
repeated BannerSlideLink links = 10;
|
|
@@ -206,7 +198,6 @@ message UpdateSlideOrderRequest {
|
|
|
206
198
|
repeated SlideOrderItem items = 2;
|
|
207
199
|
}
|
|
208
200
|
|
|
209
|
-
|
|
210
201
|
message GetBannersByPlacementRequest {
|
|
211
202
|
BannerPlacement placement = 1;
|
|
212
203
|
optional string category_id = 2;
|
|
@@ -223,10 +214,9 @@ message PublicBannerResponse {
|
|
|
223
214
|
message PublicSlideResponse {
|
|
224
215
|
string image = 1;
|
|
225
216
|
optional string mobile_image = 2;
|
|
226
|
-
optional string title = 3;
|
|
217
|
+
optional string title = 3;
|
|
227
218
|
optional string subtitle = 4;
|
|
228
219
|
|
|
229
|
-
|
|
230
220
|
repeated PublicBannerSlideButton buttons = 5;
|
|
231
221
|
optional ElementPosition buttons_position = 6;
|
|
232
222
|
repeated PublicBannerSlideLink links = 7;
|
|
@@ -292,4 +282,4 @@ message PublicBannerSlideLink {
|
|
|
292
282
|
string text = 1;
|
|
293
283
|
string href = 2;
|
|
294
284
|
optional string category_id = 3;
|
|
295
|
-
}
|
|
285
|
+
}
|
|
@@ -2,33 +2,28 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package promo.v1;
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
service BonusSettingsService {
|
|
7
|
-
rpc GetBonusSettings
|
|
8
|
-
rpc UpdateBonusSettings
|
|
6
|
+
rpc GetBonusSettings(GetBonusSettingsRequest) returns (BonusSettingsResponse);
|
|
7
|
+
rpc UpdateBonusSettings(UpdateBonusSettingsRequest) returns (BonusSettingsResponse);
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
|
|
12
10
|
message BonusSettingsResponse {
|
|
11
|
+
double earn_rate = 1;
|
|
12
|
+
|
|
13
|
+
double redeem_rate = 2;
|
|
13
14
|
|
|
14
|
-
double earn_rate = 1;
|
|
15
|
-
|
|
16
|
-
double redeem_rate = 2;
|
|
17
|
-
|
|
18
15
|
double min_order_for_earn = 3;
|
|
19
|
-
|
|
20
|
-
double max_redeem_share = 4;
|
|
21
16
|
|
|
22
|
-
|
|
23
|
-
}
|
|
17
|
+
double max_redeem_share = 4;
|
|
24
18
|
|
|
19
|
+
string updated_at = 5;
|
|
20
|
+
}
|
|
25
21
|
|
|
26
22
|
message GetBonusSettingsRequest {}
|
|
27
23
|
|
|
28
|
-
|
|
29
24
|
message UpdateBonusSettingsRequest {
|
|
30
|
-
optional double earn_rate
|
|
31
|
-
optional double redeem_rate
|
|
25
|
+
optional double earn_rate = 1;
|
|
26
|
+
optional double redeem_rate = 2;
|
|
32
27
|
optional double min_order_for_earn = 3;
|
|
33
|
-
optional double max_redeem_share
|
|
28
|
+
optional double max_redeem_share = 4;
|
|
34
29
|
}
|