@mamindom/contracts 1.0.168 → 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.
Files changed (49) hide show
  1. package/dist/proto/account.proto +35 -41
  2. package/dist/proto/attribute.proto +37 -48
  3. package/dist/proto/audit.proto +33 -33
  4. package/dist/proto/auth.proto +9 -15
  5. package/dist/proto/banner.proto +17 -27
  6. package/dist/proto/bonus_settings.proto +11 -16
  7. package/dist/proto/brand.proto +16 -24
  8. package/dist/proto/bundle.proto +46 -58
  9. package/dist/proto/calculation.proto +28 -34
  10. package/dist/proto/cart.proto +84 -90
  11. package/dist/proto/category.proto +21 -30
  12. package/dist/proto/common.proto +6 -7
  13. package/dist/proto/common_post.proto +4 -4
  14. package/dist/proto/coupon.proto +43 -56
  15. package/dist/proto/crm_calculation.proto +47 -57
  16. package/dist/proto/delivery.proto +67 -69
  17. package/dist/proto/delivery_settings.proto +27 -36
  18. package/dist/proto/faq.proto +30 -43
  19. package/dist/proto/manager.proto +44 -32
  20. package/dist/proto/media.proto +9 -19
  21. package/dist/proto/notification.proto +76 -111
  22. package/dist/proto/order.proto +142 -151
  23. package/dist/proto/size_chart.proto +17 -19
  24. package/dist/proto/warehouse.proto +4 -5
  25. package/package.json +1 -1
  26. package/proto/account.proto +35 -41
  27. package/proto/attribute.proto +37 -48
  28. package/proto/audit.proto +33 -33
  29. package/proto/auth.proto +9 -15
  30. package/proto/banner.proto +17 -27
  31. package/proto/bonus_settings.proto +11 -16
  32. package/proto/brand.proto +16 -24
  33. package/proto/bundle.proto +46 -58
  34. package/proto/calculation.proto +28 -34
  35. package/proto/cart.proto +84 -90
  36. package/proto/category.proto +21 -30
  37. package/proto/common.proto +6 -7
  38. package/proto/common_post.proto +4 -4
  39. package/proto/coupon.proto +43 -56
  40. package/proto/crm_calculation.proto +47 -57
  41. package/proto/delivery.proto +67 -69
  42. package/proto/delivery_settings.proto +27 -36
  43. package/proto/faq.proto +30 -43
  44. package/proto/manager.proto +44 -32
  45. package/proto/media.proto +9 -19
  46. package/proto/notification.proto +76 -111
  47. package/proto/order.proto +142 -151
  48. package/proto/size_chart.proto +17 -19
  49. package/proto/warehouse.proto +4 -5
@@ -3,78 +3,76 @@ syntax = "proto3";
3
3
  package account.v1;
4
4
 
5
5
  service AccountService {
6
- rpc GetAccount (GetAccountRequest) returns (GetAccountResponse);
6
+ rpc GetAccount(GetAccountRequest) returns (GetAccountResponse);
7
7
 
8
- rpc InitEmailChange(InitEmailChangeRequest) returns (InitEmailChangeResponse);
9
- rpc ConfirmEmailChange(ConfirmEmailChangeRequest) returns (ConfirmEmailChangeResponse);
8
+ rpc InitEmailChange(InitEmailChangeRequest) returns (InitEmailChangeResponse);
9
+ rpc ConfirmEmailChange(ConfirmEmailChangeRequest) returns (ConfirmEmailChangeResponse);
10
10
 
11
- rpc InitPhoneChange(InitPhoneChangeRequest) returns (InitPhoneChangeResponse);
12
- rpc ConfirmPhoneChange(ConfirmPhoneChangeRequest) returns (ConfirmPhoneChangeResponse);
11
+ rpc InitPhoneChange(InitPhoneChangeRequest) returns (InitPhoneChangeResponse);
12
+ rpc ConfirmPhoneChange(ConfirmPhoneChangeRequest) returns (ConfirmPhoneChangeResponse);
13
13
 
14
- rpc AdminGetAccount(AdminGetAccountRequest) returns (AdminGetAccountResponse);
14
+ rpc AdminGetAccount(AdminGetAccountRequest) returns (AdminGetAccountResponse);
15
15
  rpc AdminBlockAccount(AdminBlockAccountRequest) returns (AdminBlockAccountResponse);
16
16
  rpc AdminCreateAccount(AdminCreateAccountRequest) returns (AdminCreateAccountResponse);
17
17
 
18
- rpc AdminGetAccounts(AdminGetAccountsRequest) returns (AdminGetAccountsResponse);
18
+ rpc AdminGetAccounts(AdminGetAccountsRequest) returns (AdminGetAccountsResponse);
19
19
  }
20
20
 
21
21
  message GetAccountRequest {
22
- string id = 1;
22
+ string id = 1;
23
23
  }
24
24
 
25
25
  message GetAccountResponse {
26
- string id = 1;
26
+ string id = 1;
27
27
 
28
- string phone = 2;
29
- string email = 3;
28
+ string phone = 2;
29
+ string email = 3;
30
30
 
31
- string first_name = 4;
32
- string last_name = 5;
31
+ string first_name = 4;
32
+ string last_name = 5;
33
33
 
34
- bool is_email_verified = 6;
35
- bool is_phone_verified = 7;
34
+ bool is_email_verified = 6;
35
+ bool is_phone_verified = 7;
36
36
 
37
- Role role = 8;
37
+ Role role = 8;
38
38
  }
39
39
 
40
40
  message InitEmailChangeRequest {
41
- string email = 1;
42
- string user_id = 2;
41
+ string email = 1;
42
+ string user_id = 2;
43
43
  }
44
44
 
45
45
  message InitEmailChangeResponse {
46
- bool ok = 1;
46
+ bool ok = 1;
47
47
  }
48
48
 
49
49
  message ConfirmEmailChangeRequest {
50
- string email = 1;
51
- string code = 2;
52
- string user_id = 3;
50
+ string email = 1;
51
+ string code = 2;
52
+ string user_id = 3;
53
53
  }
54
54
 
55
-
56
-
57
55
  message ConfirmEmailChangeResponse {
58
- bool ok = 1;
56
+ bool ok = 1;
59
57
  }
60
58
 
61
59
  message InitPhoneChangeRequest {
62
- string phone = 1;
63
- string user_id = 2;
60
+ string phone = 1;
61
+ string user_id = 2;
64
62
  }
65
63
 
66
64
  message InitPhoneChangeResponse {
67
- bool ok = 1;
65
+ bool ok = 1;
68
66
  }
69
67
 
70
68
  message ConfirmPhoneChangeRequest {
71
- string phone = 1;
72
- string code = 2;
73
- string user_id = 3;
69
+ string phone = 1;
70
+ string code = 2;
71
+ string user_id = 3;
74
72
  }
75
73
 
76
74
  message ConfirmPhoneChangeResponse {
77
- bool ok = 1;
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
- enum Role{
137
- USER = 0;
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
-
@@ -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 GetAttributeGroups (GetAttributeGroupsRequest) returns (GetAttributeGroupsResponse);
12
- rpc GetAttributeGroup (GetAttributeGroupRequest) returns (AttributeGroupResponse);
13
- rpc CreateAttributeGroup (CreateAttributeGroupRequest) returns (AttributeGroupResponse);
14
- rpc UpdateAttributeGroup (UpdateAttributeGroupRequest) returns (AttributeGroupResponse);
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 GetAttributes (GetAttributesRequest) returns (GetAttributesResponse);
19
- rpc GetAttribute (GetAttributeRequest) returns (AttributeResponse);
20
- rpc CreateAttribute (CreateAttributeRequest) returns (AttributeResponse);
21
- rpc UpdateAttribute (UpdateAttributeRequest) returns (AttributeResponse);
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 GetAttributeValues (GetAttributeValuesRequest) returns (GetAttributeValuesResponse);
26
- rpc CreateAttributeValue (CreateAttributeValueRequest) returns (AttributeValueResponse);
27
- rpc UpdateAttributeValue (UpdateAttributeValueRequest) returns (AttributeValueResponse);
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 BindAttributeToCategory (BindAttributeRequest) returns (SuccessResponse);
32
- rpc UnbindAttributeFromCategory (BindAttributeRequest) returns (SuccessResponse);
25
+ rpc BindAttributeToCategory(BindAttributeRequest) returns (SuccessResponse);
26
+ rpc UnbindAttributeFromCategory(BindAttributeRequest) returns (SuccessResponse);
33
27
 
34
- rpc GetAllAttributesWithValues (GetAllAttributesWithValuesRequest) returns (GetAllAttributesWithValuesResponse);
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
+ }
@@ -8,17 +8,17 @@ service AuditService {
8
8
  }
9
9
 
10
10
  message LogActionRequest {
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;
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 = 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;
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 = 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;
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 {
@@ -2,16 +2,15 @@ syntax = "proto3";
2
2
 
3
3
  package auth.v1;
4
4
 
5
-
6
5
  service AuthService {
7
- rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
8
- rpc VerifyOtp (VerifyOtpRequest) returns (AuthResponse);
9
- rpc Refresh (RefreshRequest) returns (RefreshResponse);
10
- rpc Login (LoginRequest) returns (AuthResponse);
11
- rpc Register (RegisterRequest) returns (AuthResponse);
12
- rpc Logout (LogoutRequest) returns (LogoutResponse);
13
- rpc RequestPasswordReset (RequestPasswordResetRequest) returns (RequestPasswordResetResponse);
14
- rpc ResetPassword (ResetPasswordRequest) returns (AuthResponse);
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
+ }
@@ -5,21 +5,18 @@ package content.v1;
5
5
  import "common_post.proto";
6
6
 
7
7
  service BannerService {
8
-
9
- rpc GetBanners (GetBannersRequest) returns (GetBannersResponse);
10
- rpc GetBanner (GetBannerRequest) returns (BannerDetailResponse);
11
- rpc CreateBanner (CreateBannerRequest) returns (BannerDetailResponse);
12
- rpc UpdateBanner (UpdateBannerRequest) returns (BannerDetailResponse);
13
- rpc DeleteBanner (DeleteBannerRequest) returns (DeleteResponse);
14
-
15
-
16
- rpc CreateBannerSlide (CreateBannerSlideRequest) returns (BannerSlideResponse);
17
- rpc UpdateBannerSlide (UpdateBannerSlideRequest) returns (BannerSlideResponse);
18
- rpc DeleteBannerSlide (DeleteBannerSlideRequest) returns (DeleteResponse);
19
- rpc UpdateSlideOrder (UpdateSlideOrderRequest) returns (SuccessResponse);
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 (GetBonusSettingsRequest) returns (BonusSettingsResponse);
8
- rpc UpdateBonusSettings (UpdateBonusSettingsRequest) returns (BonusSettingsResponse);
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
- string updated_at = 5;
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 = 1;
31
- optional double redeem_rate = 2;
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 = 4;
28
+ optional double max_redeem_share = 4;
34
29
  }