@mamindom/contracts 1.0.171 → 1.0.173
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 +8 -0
- package/dist/gen/cart.d.ts +7 -0
- package/dist/gen/promotion.d.ts +8 -0
- package/dist/gen/promotion.js +1 -0
- package/dist/gen/users.d.ts +7 -0
- package/dist/gen/users.js +1 -0
- package/dist/proto/calculation.proto +10 -0
- package/dist/proto/cart.proto +8 -0
- package/dist/proto/promotion.proto +10 -2
- package/dist/proto/users.proto +8 -0
- package/gen/calculation.ts +9 -0
- package/gen/cart.ts +8 -0
- package/gen/promotion.ts +8 -0
- package/gen/users.ts +13 -0
- package/package.json +1 -1
- package/proto/calculation.proto +10 -0
- package/proto/cart.proto +8 -0
- package/proto/promotion.proto +10 -2
- package/proto/users.proto +8 -0
|
@@ -26,6 +26,14 @@ export interface ValidateAndCalculateResponse {
|
|
|
26
26
|
appliedCoupon?: AppliedCoupon | undefined;
|
|
27
27
|
errorMessage?: string | undefined;
|
|
28
28
|
couponError?: string | undefined;
|
|
29
|
+
giftSuggestions: GiftSuggestion[];
|
|
30
|
+
}
|
|
31
|
+
export interface GiftSuggestion {
|
|
32
|
+
promotionId: string;
|
|
33
|
+
promotionName: string;
|
|
34
|
+
discountPct: number;
|
|
35
|
+
productIds: string[];
|
|
36
|
+
minOrderAmount: number;
|
|
29
37
|
}
|
|
30
38
|
export interface AppliedPromotion {
|
|
31
39
|
promotionId: string;
|
package/dist/gen/cart.d.ts
CHANGED
|
@@ -93,6 +93,13 @@ export interface Cart {
|
|
|
93
93
|
updatedAt: number;
|
|
94
94
|
expiresAt: number;
|
|
95
95
|
couponError?: string | undefined;
|
|
96
|
+
giftSuggestions: CartGiftSuggestion[];
|
|
97
|
+
}
|
|
98
|
+
export interface CartGiftSuggestion {
|
|
99
|
+
promotionId: string;
|
|
100
|
+
promotionName: string;
|
|
101
|
+
discountPct: number;
|
|
102
|
+
productIds: string[];
|
|
96
103
|
}
|
|
97
104
|
export interface WishlistItem {
|
|
98
105
|
productId: string;
|
package/dist/gen/promotion.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare enum PromotionType {
|
|
|
16
16
|
PROMOTION_TYPE_N_ITEMS_FIXED = 11,
|
|
17
17
|
PROMOTION_TYPE_COMBO_SET = 12,
|
|
18
18
|
PROMOTION_TYPE_POSITIONAL = 13,
|
|
19
|
+
PROMOTION_TYPE_COMPOSITION_CASCADE = 14,
|
|
19
20
|
UNRECOGNIZED = -1
|
|
20
21
|
}
|
|
21
22
|
export declare enum DiscountType {
|
|
@@ -122,6 +123,8 @@ export interface PromotionResponse {
|
|
|
122
123
|
cascadeSteps?: string | undefined;
|
|
123
124
|
bundlePrice?: number | undefined;
|
|
124
125
|
bundleSize?: number | undefined;
|
|
126
|
+
source?: string | undefined;
|
|
127
|
+
planfixId?: string | undefined;
|
|
125
128
|
}
|
|
126
129
|
export interface PromotionResponse_NameEntry {
|
|
127
130
|
key: string;
|
|
@@ -149,6 +152,7 @@ export interface GetPromotionsRequest {
|
|
|
149
152
|
dateTo?: string | undefined;
|
|
150
153
|
sortBy?: string | undefined;
|
|
151
154
|
sortDir?: string | undefined;
|
|
155
|
+
source?: string | undefined;
|
|
152
156
|
}
|
|
153
157
|
export interface GetPromotionsResponse {
|
|
154
158
|
items: PromotionListItem[];
|
|
@@ -172,6 +176,8 @@ export interface PromotionListItem {
|
|
|
172
176
|
priority: number;
|
|
173
177
|
discountValue: number;
|
|
174
178
|
discountType: DiscountType;
|
|
179
|
+
source?: string | undefined;
|
|
180
|
+
planfixId?: string | undefined;
|
|
175
181
|
}
|
|
176
182
|
export interface PromotionListItem_NameEntry {
|
|
177
183
|
key: string;
|
|
@@ -216,6 +222,8 @@ export interface CreatePromotionRequest {
|
|
|
216
222
|
cascadeSteps?: string | undefined;
|
|
217
223
|
bundlePrice?: number | undefined;
|
|
218
224
|
bundleSize?: number | undefined;
|
|
225
|
+
source?: string | undefined;
|
|
226
|
+
planfixId?: string | undefined;
|
|
219
227
|
}
|
|
220
228
|
export interface CreatePromotionRequest_NameEntry {
|
|
221
229
|
key: string;
|
package/dist/gen/promotion.js
CHANGED
|
@@ -26,6 +26,7 @@ var PromotionType;
|
|
|
26
26
|
PromotionType[PromotionType["PROMOTION_TYPE_N_ITEMS_FIXED"] = 11] = "PROMOTION_TYPE_N_ITEMS_FIXED";
|
|
27
27
|
PromotionType[PromotionType["PROMOTION_TYPE_COMBO_SET"] = 12] = "PROMOTION_TYPE_COMBO_SET";
|
|
28
28
|
PromotionType[PromotionType["PROMOTION_TYPE_POSITIONAL"] = 13] = "PROMOTION_TYPE_POSITIONAL";
|
|
29
|
+
PromotionType[PromotionType["PROMOTION_TYPE_COMPOSITION_CASCADE"] = 14] = "PROMOTION_TYPE_COMPOSITION_CASCADE";
|
|
29
30
|
PromotionType[PromotionType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
30
31
|
})(PromotionType || (exports.PromotionType = PromotionType = {}));
|
|
31
32
|
var DiscountType;
|
package/dist/gen/users.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export interface User {
|
|
|
46
46
|
phone?: string | undefined;
|
|
47
47
|
internalNote?: string | undefined;
|
|
48
48
|
planfixContactId?: string | undefined;
|
|
49
|
+
groups: string[];
|
|
49
50
|
}
|
|
50
51
|
export interface AdminUpdateCustomerRequest {
|
|
51
52
|
id: string;
|
|
@@ -53,6 +54,10 @@ export interface AdminUpdateCustomerRequest {
|
|
|
53
54
|
lastName?: string | undefined;
|
|
54
55
|
internalNote?: string | undefined;
|
|
55
56
|
}
|
|
57
|
+
export interface AdminUpdateCustomerGroupsRequest {
|
|
58
|
+
id: string;
|
|
59
|
+
groups: string[];
|
|
60
|
+
}
|
|
56
61
|
export interface AdminUpdateCustomerResponse {
|
|
57
62
|
user: User | undefined;
|
|
58
63
|
}
|
|
@@ -271,6 +276,7 @@ export interface UsersServiceClient {
|
|
|
271
276
|
getMe(request: GetMeRequest): Observable<GetMeResponse>;
|
|
272
277
|
createUser(request: CreateUserRequest): Observable<CreateUserResponse>;
|
|
273
278
|
updateUser(request: UpdateUserRequest): Observable<UpdateUserResponse>;
|
|
279
|
+
adminUpdateCustomerGroups(request: AdminUpdateCustomerGroupsRequest): Observable<UpdateUserResponse>;
|
|
274
280
|
updateNotificationSettings(request: UpdateNotificationSettingsRequest): Observable<UpdateNotificationSettingsResponse>;
|
|
275
281
|
getAddresses(request: GetAddressesRequest): Observable<GetAddressesResponse>;
|
|
276
282
|
addAddress(request: AddAddressRequest): Observable<AddressResponse>;
|
|
@@ -302,6 +308,7 @@ export interface UsersServiceController {
|
|
|
302
308
|
getMe(request: GetMeRequest): Promise<GetMeResponse> | Observable<GetMeResponse> | GetMeResponse;
|
|
303
309
|
createUser(request: CreateUserRequest): Promise<CreateUserResponse> | Observable<CreateUserResponse> | CreateUserResponse;
|
|
304
310
|
updateUser(request: UpdateUserRequest): Promise<UpdateUserResponse> | Observable<UpdateUserResponse> | UpdateUserResponse;
|
|
311
|
+
adminUpdateCustomerGroups(request: AdminUpdateCustomerGroupsRequest): Promise<UpdateUserResponse> | Observable<UpdateUserResponse> | UpdateUserResponse;
|
|
305
312
|
updateNotificationSettings(request: UpdateNotificationSettingsRequest): Promise<UpdateNotificationSettingsResponse> | Observable<UpdateNotificationSettingsResponse> | UpdateNotificationSettingsResponse;
|
|
306
313
|
getAddresses(request: GetAddressesRequest): Promise<GetAddressesResponse> | Observable<GetAddressesResponse> | GetAddressesResponse;
|
|
307
314
|
addAddress(request: AddAddressRequest): Promise<AddressResponse> | Observable<AddressResponse> | AddressResponse;
|
package/dist/gen/users.js
CHANGED
|
@@ -40,6 +40,16 @@ message ValidateAndCalculateResponse {
|
|
|
40
40
|
optional string error_message = 6;
|
|
41
41
|
|
|
42
42
|
optional string coupon_error = 7;
|
|
43
|
+
|
|
44
|
+
repeated GiftSuggestion gift_suggestions = 8;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message GiftSuggestion {
|
|
48
|
+
string promotion_id = 1;
|
|
49
|
+
string promotion_name = 2;
|
|
50
|
+
double discount_pct = 3;
|
|
51
|
+
repeated string product_ids = 4;
|
|
52
|
+
double min_order_amount = 5;
|
|
43
53
|
}
|
|
44
54
|
|
|
45
55
|
message AppliedPromotion {
|
package/dist/proto/cart.proto
CHANGED
|
@@ -141,6 +141,14 @@ message Cart {
|
|
|
141
141
|
int64 updated_at = 16;
|
|
142
142
|
int64 expires_at = 17;
|
|
143
143
|
optional string coupon_error = 18;
|
|
144
|
+
repeated CartGiftSuggestion gift_suggestions = 19;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message CartGiftSuggestion {
|
|
148
|
+
string promotion_id = 1;
|
|
149
|
+
string promotion_name = 2;
|
|
150
|
+
double discount_pct = 3;
|
|
151
|
+
repeated string product_ids = 4;
|
|
144
152
|
}
|
|
145
153
|
|
|
146
154
|
message WishlistItem {
|
|
@@ -56,6 +56,7 @@ enum PromotionType {
|
|
|
56
56
|
PROMOTION_TYPE_N_ITEMS_FIXED = 11;
|
|
57
57
|
PROMOTION_TYPE_COMBO_SET = 12;
|
|
58
58
|
PROMOTION_TYPE_POSITIONAL = 13;
|
|
59
|
+
PROMOTION_TYPE_COMPOSITION_CASCADE = 14;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
enum DiscountType {
|
|
@@ -172,6 +173,8 @@ message PromotionResponse {
|
|
|
172
173
|
optional string cascade_steps = 34;
|
|
173
174
|
optional double bundle_price = 35;
|
|
174
175
|
optional int32 bundle_size = 36;
|
|
176
|
+
optional string source = 37;
|
|
177
|
+
optional string planfix_id = 38;
|
|
175
178
|
}
|
|
176
179
|
|
|
177
180
|
|
|
@@ -184,8 +187,9 @@ message GetPromotionsRequest {
|
|
|
184
187
|
optional string category_id = 5;
|
|
185
188
|
optional string date_from = 6;
|
|
186
189
|
optional string date_to = 7;
|
|
187
|
-
optional string sort_by = 8;
|
|
188
|
-
optional string sort_dir = 9;
|
|
190
|
+
optional string sort_by = 8;
|
|
191
|
+
optional string sort_dir = 9;
|
|
192
|
+
optional string source = 10;
|
|
189
193
|
}
|
|
190
194
|
|
|
191
195
|
message GetPromotionsResponse {
|
|
@@ -209,6 +213,8 @@ message PromotionListItem {
|
|
|
209
213
|
int32 priority = 13;
|
|
210
214
|
double discount_value = 14;
|
|
211
215
|
DiscountType discount_type = 15;
|
|
216
|
+
optional string source = 16;
|
|
217
|
+
optional string planfix_id = 17;
|
|
212
218
|
}
|
|
213
219
|
|
|
214
220
|
|
|
@@ -254,6 +260,8 @@ message CreatePromotionRequest {
|
|
|
254
260
|
optional string cascade_steps = 25;
|
|
255
261
|
optional double bundle_price = 26;
|
|
256
262
|
optional int32 bundle_size = 27;
|
|
263
|
+
optional string source = 28;
|
|
264
|
+
optional string planfix_id = 29;
|
|
257
265
|
}
|
|
258
266
|
|
|
259
267
|
message UpdatePromotionRequest {
|
package/dist/proto/users.proto
CHANGED
|
@@ -7,6 +7,7 @@ service UsersService {
|
|
|
7
7
|
rpc GetMe(GetMeRequest) returns (GetMeResponse);
|
|
8
8
|
rpc CreateUser(CreateUserRequest) returns (CreateUserResponse);
|
|
9
9
|
rpc UpdateUser(UpdateUserRequest) returns (UpdateUserResponse);
|
|
10
|
+
rpc AdminUpdateCustomerGroups(AdminUpdateCustomerGroupsRequest) returns (UpdateUserResponse);
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
rpc UpdateNotificationSettings(UpdateNotificationSettingsRequest) returns (UpdateNotificationSettingsResponse);
|
|
@@ -96,6 +97,8 @@ message User {
|
|
|
96
97
|
optional string internal_note = 7;
|
|
97
98
|
|
|
98
99
|
optional string planfix_contact_id = 8;
|
|
100
|
+
|
|
101
|
+
repeated string groups = 9;
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
message AdminUpdateCustomerRequest {
|
|
@@ -106,6 +109,11 @@ message AdminUpdateCustomerRequest {
|
|
|
106
109
|
optional string internal_note = 4;
|
|
107
110
|
}
|
|
108
111
|
|
|
112
|
+
message AdminUpdateCustomerGroupsRequest {
|
|
113
|
+
string id = 1;
|
|
114
|
+
repeated string groups = 2;
|
|
115
|
+
}
|
|
116
|
+
|
|
109
117
|
message AdminUpdateCustomerResponse {
|
|
110
118
|
User user = 1;
|
|
111
119
|
}
|
package/gen/calculation.ts
CHANGED
|
@@ -38,6 +38,15 @@ export interface ValidateAndCalculateResponse {
|
|
|
38
38
|
appliedCoupon?: AppliedCoupon | undefined;
|
|
39
39
|
errorMessage?: string | undefined;
|
|
40
40
|
couponError?: string | undefined;
|
|
41
|
+
giftSuggestions: GiftSuggestion[];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface GiftSuggestion {
|
|
45
|
+
promotionId: string;
|
|
46
|
+
promotionName: string;
|
|
47
|
+
discountPct: number;
|
|
48
|
+
productIds: string[];
|
|
49
|
+
minOrderAmount: number;
|
|
41
50
|
}
|
|
42
51
|
|
|
43
52
|
export interface AppliedPromotion {
|
package/gen/cart.ts
CHANGED
|
@@ -112,6 +112,14 @@ export interface Cart {
|
|
|
112
112
|
updatedAt: number;
|
|
113
113
|
expiresAt: number;
|
|
114
114
|
couponError?: string | undefined;
|
|
115
|
+
giftSuggestions: CartGiftSuggestion[];
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface CartGiftSuggestion {
|
|
119
|
+
promotionId: string;
|
|
120
|
+
promotionName: string;
|
|
121
|
+
discountPct: number;
|
|
122
|
+
productIds: string[];
|
|
115
123
|
}
|
|
116
124
|
|
|
117
125
|
export interface WishlistItem {
|
package/gen/promotion.ts
CHANGED
|
@@ -26,6 +26,7 @@ export enum PromotionType {
|
|
|
26
26
|
PROMOTION_TYPE_N_ITEMS_FIXED = 11,
|
|
27
27
|
PROMOTION_TYPE_COMBO_SET = 12,
|
|
28
28
|
PROMOTION_TYPE_POSITIONAL = 13,
|
|
29
|
+
PROMOTION_TYPE_COMPOSITION_CASCADE = 14,
|
|
29
30
|
UNRECOGNIZED = -1,
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -134,6 +135,8 @@ export interface PromotionResponse {
|
|
|
134
135
|
cascadeSteps?: string | undefined;
|
|
135
136
|
bundlePrice?: number | undefined;
|
|
136
137
|
bundleSize?: number | undefined;
|
|
138
|
+
source?: string | undefined;
|
|
139
|
+
planfixId?: string | undefined;
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
export interface PromotionResponse_NameEntry {
|
|
@@ -166,6 +169,7 @@ export interface GetPromotionsRequest {
|
|
|
166
169
|
dateTo?: string | undefined;
|
|
167
170
|
sortBy?: string | undefined;
|
|
168
171
|
sortDir?: string | undefined;
|
|
172
|
+
source?: string | undefined;
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
export interface GetPromotionsResponse {
|
|
@@ -189,6 +193,8 @@ export interface PromotionListItem {
|
|
|
189
193
|
priority: number;
|
|
190
194
|
discountValue: number;
|
|
191
195
|
discountType: DiscountType;
|
|
196
|
+
source?: string | undefined;
|
|
197
|
+
planfixId?: string | undefined;
|
|
192
198
|
}
|
|
193
199
|
|
|
194
200
|
export interface PromotionListItem_NameEntry {
|
|
@@ -228,6 +234,8 @@ export interface CreatePromotionRequest {
|
|
|
228
234
|
cascadeSteps?: string | undefined;
|
|
229
235
|
bundlePrice?: number | undefined;
|
|
230
236
|
bundleSize?: number | undefined;
|
|
237
|
+
source?: string | undefined;
|
|
238
|
+
planfixId?: string | undefined;
|
|
231
239
|
}
|
|
232
240
|
|
|
233
241
|
export interface CreatePromotionRequest_NameEntry {
|
package/gen/users.ts
CHANGED
|
@@ -64,6 +64,7 @@ export interface User {
|
|
|
64
64
|
phone?: string | undefined;
|
|
65
65
|
internalNote?: string | undefined;
|
|
66
66
|
planfixContactId?: string | undefined;
|
|
67
|
+
groups: string[];
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
export interface AdminUpdateCustomerRequest {
|
|
@@ -73,6 +74,11 @@ export interface AdminUpdateCustomerRequest {
|
|
|
73
74
|
internalNote?: string | undefined;
|
|
74
75
|
}
|
|
75
76
|
|
|
77
|
+
export interface AdminUpdateCustomerGroupsRequest {
|
|
78
|
+
id: string;
|
|
79
|
+
groups: string[];
|
|
80
|
+
}
|
|
81
|
+
|
|
76
82
|
export interface AdminUpdateCustomerResponse {
|
|
77
83
|
user: User | undefined;
|
|
78
84
|
}
|
|
@@ -345,6 +351,8 @@ export interface UsersServiceClient {
|
|
|
345
351
|
|
|
346
352
|
updateUser(request: UpdateUserRequest): Observable<UpdateUserResponse>;
|
|
347
353
|
|
|
354
|
+
adminUpdateCustomerGroups(request: AdminUpdateCustomerGroupsRequest): Observable<UpdateUserResponse>;
|
|
355
|
+
|
|
348
356
|
updateNotificationSettings(
|
|
349
357
|
request: UpdateNotificationSettingsRequest,
|
|
350
358
|
): Observable<UpdateNotificationSettingsResponse>;
|
|
@@ -411,6 +419,10 @@ export interface UsersServiceController {
|
|
|
411
419
|
request: UpdateUserRequest,
|
|
412
420
|
): Promise<UpdateUserResponse> | Observable<UpdateUserResponse> | UpdateUserResponse;
|
|
413
421
|
|
|
422
|
+
adminUpdateCustomerGroups(
|
|
423
|
+
request: AdminUpdateCustomerGroupsRequest,
|
|
424
|
+
): Promise<UpdateUserResponse> | Observable<UpdateUserResponse> | UpdateUserResponse;
|
|
425
|
+
|
|
414
426
|
updateNotificationSettings(
|
|
415
427
|
request: UpdateNotificationSettingsRequest,
|
|
416
428
|
):
|
|
@@ -511,6 +523,7 @@ export function UsersServiceControllerMethods() {
|
|
|
511
523
|
"getMe",
|
|
512
524
|
"createUser",
|
|
513
525
|
"updateUser",
|
|
526
|
+
"adminUpdateCustomerGroups",
|
|
514
527
|
"updateNotificationSettings",
|
|
515
528
|
"getAddresses",
|
|
516
529
|
"addAddress",
|
package/package.json
CHANGED
package/proto/calculation.proto
CHANGED
|
@@ -40,6 +40,16 @@ message ValidateAndCalculateResponse {
|
|
|
40
40
|
optional string error_message = 6;
|
|
41
41
|
|
|
42
42
|
optional string coupon_error = 7;
|
|
43
|
+
|
|
44
|
+
repeated GiftSuggestion gift_suggestions = 8;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message GiftSuggestion {
|
|
48
|
+
string promotion_id = 1;
|
|
49
|
+
string promotion_name = 2;
|
|
50
|
+
double discount_pct = 3;
|
|
51
|
+
repeated string product_ids = 4;
|
|
52
|
+
double min_order_amount = 5;
|
|
43
53
|
}
|
|
44
54
|
|
|
45
55
|
message AppliedPromotion {
|
package/proto/cart.proto
CHANGED
|
@@ -141,6 +141,14 @@ message Cart {
|
|
|
141
141
|
int64 updated_at = 16;
|
|
142
142
|
int64 expires_at = 17;
|
|
143
143
|
optional string coupon_error = 18;
|
|
144
|
+
repeated CartGiftSuggestion gift_suggestions = 19;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message CartGiftSuggestion {
|
|
148
|
+
string promotion_id = 1;
|
|
149
|
+
string promotion_name = 2;
|
|
150
|
+
double discount_pct = 3;
|
|
151
|
+
repeated string product_ids = 4;
|
|
144
152
|
}
|
|
145
153
|
|
|
146
154
|
message WishlistItem {
|
package/proto/promotion.proto
CHANGED
|
@@ -56,6 +56,7 @@ enum PromotionType {
|
|
|
56
56
|
PROMOTION_TYPE_N_ITEMS_FIXED = 11;
|
|
57
57
|
PROMOTION_TYPE_COMBO_SET = 12;
|
|
58
58
|
PROMOTION_TYPE_POSITIONAL = 13;
|
|
59
|
+
PROMOTION_TYPE_COMPOSITION_CASCADE = 14;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
enum DiscountType {
|
|
@@ -172,6 +173,8 @@ message PromotionResponse {
|
|
|
172
173
|
optional string cascade_steps = 34;
|
|
173
174
|
optional double bundle_price = 35;
|
|
174
175
|
optional int32 bundle_size = 36;
|
|
176
|
+
optional string source = 37;
|
|
177
|
+
optional string planfix_id = 38;
|
|
175
178
|
}
|
|
176
179
|
|
|
177
180
|
|
|
@@ -184,8 +187,9 @@ message GetPromotionsRequest {
|
|
|
184
187
|
optional string category_id = 5;
|
|
185
188
|
optional string date_from = 6;
|
|
186
189
|
optional string date_to = 7;
|
|
187
|
-
optional string sort_by = 8;
|
|
188
|
-
optional string sort_dir = 9;
|
|
190
|
+
optional string sort_by = 8;
|
|
191
|
+
optional string sort_dir = 9;
|
|
192
|
+
optional string source = 10;
|
|
189
193
|
}
|
|
190
194
|
|
|
191
195
|
message GetPromotionsResponse {
|
|
@@ -209,6 +213,8 @@ message PromotionListItem {
|
|
|
209
213
|
int32 priority = 13;
|
|
210
214
|
double discount_value = 14;
|
|
211
215
|
DiscountType discount_type = 15;
|
|
216
|
+
optional string source = 16;
|
|
217
|
+
optional string planfix_id = 17;
|
|
212
218
|
}
|
|
213
219
|
|
|
214
220
|
|
|
@@ -254,6 +260,8 @@ message CreatePromotionRequest {
|
|
|
254
260
|
optional string cascade_steps = 25;
|
|
255
261
|
optional double bundle_price = 26;
|
|
256
262
|
optional int32 bundle_size = 27;
|
|
263
|
+
optional string source = 28;
|
|
264
|
+
optional string planfix_id = 29;
|
|
257
265
|
}
|
|
258
266
|
|
|
259
267
|
message UpdatePromotionRequest {
|
package/proto/users.proto
CHANGED
|
@@ -7,6 +7,7 @@ service UsersService {
|
|
|
7
7
|
rpc GetMe(GetMeRequest) returns (GetMeResponse);
|
|
8
8
|
rpc CreateUser(CreateUserRequest) returns (CreateUserResponse);
|
|
9
9
|
rpc UpdateUser(UpdateUserRequest) returns (UpdateUserResponse);
|
|
10
|
+
rpc AdminUpdateCustomerGroups(AdminUpdateCustomerGroupsRequest) returns (UpdateUserResponse);
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
rpc UpdateNotificationSettings(UpdateNotificationSettingsRequest) returns (UpdateNotificationSettingsResponse);
|
|
@@ -96,6 +97,8 @@ message User {
|
|
|
96
97
|
optional string internal_note = 7;
|
|
97
98
|
|
|
98
99
|
optional string planfix_contact_id = 8;
|
|
100
|
+
|
|
101
|
+
repeated string groups = 9;
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
message AdminUpdateCustomerRequest {
|
|
@@ -106,6 +109,11 @@ message AdminUpdateCustomerRequest {
|
|
|
106
109
|
optional string internal_note = 4;
|
|
107
110
|
}
|
|
108
111
|
|
|
112
|
+
message AdminUpdateCustomerGroupsRequest {
|
|
113
|
+
string id = 1;
|
|
114
|
+
repeated string groups = 2;
|
|
115
|
+
}
|
|
116
|
+
|
|
109
117
|
message AdminUpdateCustomerResponse {
|
|
110
118
|
User user = 1;
|
|
111
119
|
}
|