@mamindom/contracts 1.0.172 → 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.
@@ -123,6 +123,8 @@ export interface PromotionResponse {
123
123
  cascadeSteps?: string | undefined;
124
124
  bundlePrice?: number | undefined;
125
125
  bundleSize?: number | undefined;
126
+ source?: string | undefined;
127
+ planfixId?: string | undefined;
126
128
  }
127
129
  export interface PromotionResponse_NameEntry {
128
130
  key: string;
@@ -150,6 +152,7 @@ export interface GetPromotionsRequest {
150
152
  dateTo?: string | undefined;
151
153
  sortBy?: string | undefined;
152
154
  sortDir?: string | undefined;
155
+ source?: string | undefined;
153
156
  }
154
157
  export interface GetPromotionsResponse {
155
158
  items: PromotionListItem[];
@@ -173,6 +176,8 @@ export interface PromotionListItem {
173
176
  priority: number;
174
177
  discountValue: number;
175
178
  discountType: DiscountType;
179
+ source?: string | undefined;
180
+ planfixId?: string | undefined;
176
181
  }
177
182
  export interface PromotionListItem_NameEntry {
178
183
  key: string;
@@ -217,6 +222,8 @@ export interface CreatePromotionRequest {
217
222
  cascadeSteps?: string | undefined;
218
223
  bundlePrice?: number | undefined;
219
224
  bundleSize?: number | undefined;
225
+ source?: string | undefined;
226
+ planfixId?: string | undefined;
220
227
  }
221
228
  export interface CreatePromotionRequest_NameEntry {
222
229
  key: string;
@@ -173,6 +173,8 @@ message PromotionResponse {
173
173
  optional string cascade_steps = 34;
174
174
  optional double bundle_price = 35;
175
175
  optional int32 bundle_size = 36;
176
+ optional string source = 37;
177
+ optional string planfix_id = 38;
176
178
  }
177
179
 
178
180
 
@@ -185,8 +187,9 @@ message GetPromotionsRequest {
185
187
  optional string category_id = 5;
186
188
  optional string date_from = 6;
187
189
  optional string date_to = 7;
188
- optional string sort_by = 8;
189
- optional string sort_dir = 9;
190
+ optional string sort_by = 8;
191
+ optional string sort_dir = 9;
192
+ optional string source = 10;
190
193
  }
191
194
 
192
195
  message GetPromotionsResponse {
@@ -210,6 +213,8 @@ message PromotionListItem {
210
213
  int32 priority = 13;
211
214
  double discount_value = 14;
212
215
  DiscountType discount_type = 15;
216
+ optional string source = 16;
217
+ optional string planfix_id = 17;
213
218
  }
214
219
 
215
220
 
@@ -255,6 +260,8 @@ message CreatePromotionRequest {
255
260
  optional string cascade_steps = 25;
256
261
  optional double bundle_price = 26;
257
262
  optional int32 bundle_size = 27;
263
+ optional string source = 28;
264
+ optional string planfix_id = 29;
258
265
  }
259
266
 
260
267
  message UpdatePromotionRequest {
package/gen/promotion.ts CHANGED
@@ -135,6 +135,8 @@ export interface PromotionResponse {
135
135
  cascadeSteps?: string | undefined;
136
136
  bundlePrice?: number | undefined;
137
137
  bundleSize?: number | undefined;
138
+ source?: string | undefined;
139
+ planfixId?: string | undefined;
138
140
  }
139
141
 
140
142
  export interface PromotionResponse_NameEntry {
@@ -167,6 +169,7 @@ export interface GetPromotionsRequest {
167
169
  dateTo?: string | undefined;
168
170
  sortBy?: string | undefined;
169
171
  sortDir?: string | undefined;
172
+ source?: string | undefined;
170
173
  }
171
174
 
172
175
  export interface GetPromotionsResponse {
@@ -190,6 +193,8 @@ export interface PromotionListItem {
190
193
  priority: number;
191
194
  discountValue: number;
192
195
  discountType: DiscountType;
196
+ source?: string | undefined;
197
+ planfixId?: string | undefined;
193
198
  }
194
199
 
195
200
  export interface PromotionListItem_NameEntry {
@@ -229,6 +234,8 @@ export interface CreatePromotionRequest {
229
234
  cascadeSteps?: string | undefined;
230
235
  bundlePrice?: number | undefined;
231
236
  bundleSize?: number | undefined;
237
+ source?: string | undefined;
238
+ planfixId?: string | undefined;
232
239
  }
233
240
 
234
241
  export interface CreatePromotionRequest_NameEntry {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.172",
4
+ "version": "1.0.173",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -173,6 +173,8 @@ message PromotionResponse {
173
173
  optional string cascade_steps = 34;
174
174
  optional double bundle_price = 35;
175
175
  optional int32 bundle_size = 36;
176
+ optional string source = 37;
177
+ optional string planfix_id = 38;
176
178
  }
177
179
 
178
180
 
@@ -185,8 +187,9 @@ message GetPromotionsRequest {
185
187
  optional string category_id = 5;
186
188
  optional string date_from = 6;
187
189
  optional string date_to = 7;
188
- optional string sort_by = 8;
189
- optional string sort_dir = 9;
190
+ optional string sort_by = 8;
191
+ optional string sort_dir = 9;
192
+ optional string source = 10;
190
193
  }
191
194
 
192
195
  message GetPromotionsResponse {
@@ -210,6 +213,8 @@ message PromotionListItem {
210
213
  int32 priority = 13;
211
214
  double discount_value = 14;
212
215
  DiscountType discount_type = 15;
216
+ optional string source = 16;
217
+ optional string planfix_id = 17;
213
218
  }
214
219
 
215
220
 
@@ -255,6 +260,8 @@ message CreatePromotionRequest {
255
260
  optional string cascade_steps = 25;
256
261
  optional double bundle_price = 26;
257
262
  optional int32 bundle_size = 27;
263
+ optional string source = 28;
264
+ optional string planfix_id = 29;
258
265
  }
259
266
 
260
267
  message UpdatePromotionRequest {