@medusajs/promotion 2.22.3 → 2.22.4

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 (72) hide show
  1. package/dist/index.d.ts.map +1 -1
  2. package/dist/index.js.map +1 -1
  3. package/dist/migrations/Migration20240227120221.d.ts.map +1 -1
  4. package/dist/migrations/Migration20240227120221.js.map +1 -1
  5. package/dist/migrations/Migration20240617102917.d.ts.map +1 -1
  6. package/dist/migrations/Migration20240617102917.js.map +1 -1
  7. package/dist/migrations/Migration20240624153824.d.ts.map +1 -1
  8. package/dist/migrations/Migration20240624153824.js.map +1 -1
  9. package/dist/migrations/Migration20241211061114.d.ts.map +1 -1
  10. package/dist/migrations/Migration20241211061114.js.map +1 -1
  11. package/dist/migrations/Migration20250113094144.d.ts.map +1 -1
  12. package/dist/migrations/Migration20250113094144.js.map +1 -1
  13. package/dist/migrations/Migration20250120110700.d.ts.map +1 -1
  14. package/dist/migrations/Migration20250120110700.js.map +1 -1
  15. package/dist/migrations/Migration20250226130616.d.ts.map +1 -1
  16. package/dist/migrations/Migration20250226130616.js.map +1 -1
  17. package/dist/migrations/Migration20250508081510.d.ts.map +1 -1
  18. package/dist/migrations/Migration20250508081510.js.map +1 -1
  19. package/dist/migrations/Migration20250828075407.d.ts.map +1 -1
  20. package/dist/migrations/Migration20250828075407.js.map +1 -1
  21. package/dist/migrations/Migration20250909083125.d.ts.map +1 -1
  22. package/dist/migrations/Migration20250909083125.js.map +1 -1
  23. package/dist/migrations/Migration20250916120552.d.ts.map +1 -1
  24. package/dist/migrations/Migration20250916120552.js.map +1 -1
  25. package/dist/migrations/Migration20250917143818.d.ts.map +1 -1
  26. package/dist/migrations/Migration20250917143818.js.map +1 -1
  27. package/dist/migrations/Migration20250919122137.d.ts.map +1 -1
  28. package/dist/migrations/Migration20250919122137.js.map +1 -1
  29. package/dist/migrations/Migration20251006000000.d.ts.map +1 -1
  30. package/dist/migrations/Migration20251006000000.js.map +1 -1
  31. package/dist/migrations/Migration20251015113934.d.ts.map +1 -1
  32. package/dist/migrations/Migration20251015113934.js.map +1 -1
  33. package/dist/migrations/Migration20251107050148.d.ts.map +1 -1
  34. package/dist/migrations/Migration20251107050148.js.map +1 -1
  35. package/dist/models/application-method.d.ts +30 -30
  36. package/dist/models/application-method.d.ts.map +1 -1
  37. package/dist/models/application-method.js.map +1 -1
  38. package/dist/models/campaign-budget-usage.d.ts +18 -56
  39. package/dist/models/campaign-budget-usage.d.ts.map +1 -1
  40. package/dist/models/campaign-budget-usage.js.map +1 -1
  41. package/dist/models/campaign-budget.d.ts +18 -56
  42. package/dist/models/campaign-budget.d.ts.map +1 -1
  43. package/dist/models/campaign-budget.js.map +1 -1
  44. package/dist/models/campaign.d.ts +18 -56
  45. package/dist/models/campaign.d.ts.map +1 -1
  46. package/dist/models/campaign.js.map +1 -1
  47. package/dist/models/promotion-rule-value.d.ts +16 -310
  48. package/dist/models/promotion-rule-value.d.ts.map +1 -1
  49. package/dist/models/promotion-rule-value.js.map +1 -1
  50. package/dist/models/promotion-rule.d.ts +29 -29
  51. package/dist/models/promotion-rule.d.ts.map +1 -1
  52. package/dist/models/promotion-rule.js.map +1 -1
  53. package/dist/models/promotion.d.ts +7 -7
  54. package/dist/models/promotion.d.ts.map +1 -1
  55. package/dist/models/promotion.js.map +1 -1
  56. package/dist/services/promotion-module.d.ts +218 -496
  57. package/dist/services/promotion-module.d.ts.map +1 -1
  58. package/dist/services/promotion-module.js.map +1 -1
  59. package/dist/types/promotion-rule.js.map +1 -1
  60. package/dist/utils/compute-actions/build-promotion-rule-query-filter-from-context.js.map +1 -1
  61. package/dist/utils/compute-actions/buy-get.d.ts +1 -1
  62. package/dist/utils/compute-actions/buy-get.js.map +1 -1
  63. package/dist/utils/compute-actions/line-items.js.map +1 -1
  64. package/dist/utils/compute-actions/shipping-methods.js.map +1 -1
  65. package/dist/utils/compute-actions/sort-by-price.d.ts +2 -2
  66. package/dist/utils/compute-actions/sort-by-price.js.map +1 -1
  67. package/dist/utils/compute-actions/usage.js.map +1 -1
  68. package/dist/utils/index.js.map +1 -1
  69. package/dist/utils/validations/application-method.js.map +1 -1
  70. package/dist/utils/validations/promotion-rule.js.map +1 -1
  71. package/package.json +4 -4
  72. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -56,6 +56,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
56
56
  createPromotions(data: PromotionTypes.CreatePromotionDTO, sharedContext?: Context): Promise<PromotionTypes.PromotionDTO>;
57
57
  createPromotions(data: PromotionTypes.CreatePromotionDTO[], sharedContext?: Context): Promise<PromotionTypes.PromotionDTO[]>;
58
58
  protected createPromotions_(data: PromotionTypes.CreatePromotionDTO[], sharedContext?: Context): Promise<{
59
+ created_at: Date;
60
+ updated_at: Date;
61
+ deleted_at: Date | null;
59
62
  id: string;
60
63
  code: string;
61
64
  is_automatic: boolean;
@@ -65,6 +68,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
65
68
  type: PromotionType;
66
69
  status: PromotionStatus;
67
70
  campaign: {
71
+ created_at: Date;
72
+ updated_at: Date;
73
+ deleted_at: Date | null;
68
74
  id: string;
69
75
  name: string;
70
76
  description: string | null;
@@ -72,6 +78,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
72
78
  starts_at: Date | null;
73
79
  ends_at: Date | null;
74
80
  budget: {
81
+ created_at: Date;
82
+ updated_at: Date;
83
+ deleted_at: Date | null;
75
84
  id: string;
76
85
  type: CampaignBudgetType;
77
86
  currency_code: string | null;
@@ -80,29 +89,26 @@ export default class PromotionModuleService extends PromotionModuleService_base
80
89
  campaign: /*elided*/ any;
81
90
  attribute: string | null;
82
91
  usages: {
92
+ created_at: Date;
93
+ updated_at: Date;
94
+ deleted_at: Date | null;
83
95
  id: string;
84
96
  attribute_value: string;
85
97
  used: number;
86
98
  budget: /*elided*/ any;
87
- raw_used: Record<string, unknown>;
88
- created_at: Date;
89
- updated_at: Date;
90
- deleted_at: Date | null;
91
99
  budget_id: string;
100
+ raw_used: Record<string, unknown>;
92
101
  }[];
102
+ campaign_id: string;
93
103
  raw_limit: Record<string, unknown> | null;
94
104
  raw_used: Record<string, unknown>;
95
- created_at: Date;
96
- updated_at: Date;
97
- deleted_at: Date | null;
98
- campaign_id: string;
99
105
  };
100
106
  promotions: /*elided*/ any[];
107
+ };
108
+ application_method: {
101
109
  created_at: Date;
102
110
  updated_at: Date;
103
111
  deleted_at: Date | null;
104
- };
105
- application_method: {
106
112
  id: string;
107
113
  value: number | null;
108
114
  currency_code: string | null;
@@ -114,129 +120,84 @@ export default class PromotionModuleService extends PromotionModuleService_base
114
120
  allocation: ApplicationMethodAllocation | null;
115
121
  promotion: /*elided*/ any;
116
122
  target_rules: {
123
+ created_at: Date;
124
+ updated_at: Date;
125
+ deleted_at: Date | null;
117
126
  id: string;
118
127
  description: string | null;
119
128
  attribute: string;
120
129
  operator: import("@medusajs/framework/utils").PromotionRuleOperator;
121
130
  values: {
122
- id: string;
123
- value: string;
124
- promotion_rule: /*elided*/ any;
125
131
  created_at: Date;
126
132
  updated_at: Date;
127
133
  deleted_at: Date | null;
134
+ id: string;
135
+ value: string;
136
+ promotion_rule: /*elided*/ any;
128
137
  promotion_rule_id: string;
129
138
  }[];
130
- promotions: /*elided*/ any[];
139
+ promotions: any[];
131
140
  method_target_rules: /*elided*/ any[];
132
- method_buy_rules: /*elided*/ any[];
141
+ method_buy_rules: any[];
142
+ }[];
143
+ buy_rules: {
133
144
  created_at: Date;
134
145
  updated_at: Date;
135
146
  deleted_at: Date | null;
136
- }[];
137
- buy_rules: {
138
147
  id: string;
139
148
  description: string | null;
140
149
  attribute: string;
141
150
  operator: import("@medusajs/framework/utils").PromotionRuleOperator;
142
151
  values: {
143
- id: string;
144
- value: string;
145
- promotion_rule: /*elided*/ any;
146
152
  created_at: Date;
147
153
  updated_at: Date;
148
154
  deleted_at: Date | null;
155
+ id: string;
156
+ value: string;
157
+ promotion_rule: any;
149
158
  promotion_rule_id: string;
150
159
  }[];
151
- promotions: /*elided*/ any[];
152
- method_target_rules: /*elided*/ any[];
153
- method_buy_rules: /*elided*/ any[];
154
- created_at: Date;
155
- updated_at: Date;
156
- deleted_at: Date | null;
160
+ promotions: any[];
161
+ method_target_rules: any[];
162
+ method_buy_rules: any[];
157
163
  }[];
158
- raw_value: Record<string, unknown> | null;
159
- raw_max_quantity: Record<string, unknown> | null;
164
+ promotion_id: string;
160
165
  raw_apply_to_quantity: Record<string, unknown> | null;
161
166
  raw_buy_rules_min_quantity: Record<string, unknown> | null;
167
+ raw_max_quantity: Record<string, unknown> | null;
168
+ raw_value: Record<string, unknown> | null;
169
+ };
170
+ rules: {
162
171
  created_at: Date;
163
172
  updated_at: Date;
164
173
  deleted_at: Date | null;
165
- promotion_id: string;
166
- };
167
- rules: {
168
174
  id: string;
169
175
  description: string | null;
170
176
  attribute: string;
171
177
  operator: import("@medusajs/framework/utils").PromotionRuleOperator;
172
178
  values: {
173
- id: string;
174
- value: string;
175
- promotion_rule: /*elided*/ any;
176
- created_at: Date;
177
- updated_at: Date;
178
- deleted_at: Date | null;
179
- promotion_rule_id: string;
180
- }[];
181
- promotions: /*elided*/ any[];
182
- method_target_rules: {
183
- id: string;
184
- value: number | null;
185
- currency_code: string | null;
186
- max_quantity: number | null;
187
- apply_to_quantity: number | null;
188
- buy_rules_min_quantity: number | null;
189
- type: import("@medusajs/framework/utils").ApplicationMethodType;
190
- target_type: ApplicationMethodTargetType;
191
- allocation: ApplicationMethodAllocation | null;
192
- promotion: /*elided*/ any;
193
- target_rules: /*elided*/ any[];
194
- buy_rules: /*elided*/ any[];
195
- raw_value: Record<string, unknown> | null;
196
- raw_max_quantity: Record<string, unknown> | null;
197
- raw_apply_to_quantity: Record<string, unknown> | null;
198
- raw_buy_rules_min_quantity: Record<string, unknown> | null;
199
179
  created_at: Date;
200
180
  updated_at: Date;
201
181
  deleted_at: Date | null;
202
- promotion_id: string;
203
- }[];
204
- method_buy_rules: {
205
182
  id: string;
206
- value: number | null;
207
- currency_code: string | null;
208
- max_quantity: number | null;
209
- apply_to_quantity: number | null;
210
- buy_rules_min_quantity: number | null;
211
- type: import("@medusajs/framework/utils").ApplicationMethodType;
212
- target_type: ApplicationMethodTargetType;
213
- allocation: ApplicationMethodAllocation | null;
214
- promotion: /*elided*/ any;
215
- target_rules: /*elided*/ any[];
216
- buy_rules: /*elided*/ any[];
217
- raw_value: Record<string, unknown> | null;
218
- raw_max_quantity: Record<string, unknown> | null;
219
- raw_apply_to_quantity: Record<string, unknown> | null;
220
- raw_buy_rules_min_quantity: Record<string, unknown> | null;
221
- created_at: Date;
222
- updated_at: Date;
223
- deleted_at: Date | null;
224
- promotion_id: string;
183
+ value: string;
184
+ promotion_rule: any;
185
+ promotion_rule_id: string;
225
186
  }[];
226
- created_at: Date;
227
- updated_at: Date;
228
- deleted_at: Date | null;
187
+ promotions: any[];
188
+ method_target_rules: any[];
189
+ method_buy_rules: any[];
229
190
  }[];
230
191
  metadata: NoInfer<Record<string, unknown>> | null;
231
- raw_limit: Record<string, unknown> | null;
232
- created_at: Date;
233
- updated_at: Date;
234
- deleted_at: Date | null;
235
192
  campaign_id: string | null;
193
+ raw_limit: Record<string, unknown> | null;
236
194
  }[]>;
237
195
  updatePromotions(data: PromotionTypes.UpdatePromotionDTO, sharedContext?: Context): Promise<PromotionTypes.PromotionDTO>;
238
196
  updatePromotions(data: PromotionTypes.UpdatePromotionDTO[], sharedContext?: Context): Promise<PromotionTypes.PromotionDTO[]>;
239
197
  protected updatePromotions_(data: PromotionTypes.UpdatePromotionDTO[], sharedContext?: Context): Promise<{
198
+ created_at: Date;
199
+ updated_at: Date;
200
+ deleted_at: Date | null;
240
201
  id: string;
241
202
  code: string;
242
203
  is_automatic: boolean;
@@ -246,6 +207,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
246
207
  type: PromotionType;
247
208
  status: PromotionStatus;
248
209
  campaign: {
210
+ created_at: Date;
211
+ updated_at: Date;
212
+ deleted_at: Date | null;
249
213
  id: string;
250
214
  name: string;
251
215
  description: string | null;
@@ -253,6 +217,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
253
217
  starts_at: Date | null;
254
218
  ends_at: Date | null;
255
219
  budget: {
220
+ created_at: Date;
221
+ updated_at: Date;
222
+ deleted_at: Date | null;
256
223
  id: string;
257
224
  type: CampaignBudgetType;
258
225
  currency_code: string | null;
@@ -261,29 +228,26 @@ export default class PromotionModuleService extends PromotionModuleService_base
261
228
  campaign: /*elided*/ any;
262
229
  attribute: string | null;
263
230
  usages: {
231
+ created_at: Date;
232
+ updated_at: Date;
233
+ deleted_at: Date | null;
264
234
  id: string;
265
235
  attribute_value: string;
266
236
  used: number;
267
237
  budget: /*elided*/ any;
268
- raw_used: Record<string, unknown>;
269
- created_at: Date;
270
- updated_at: Date;
271
- deleted_at: Date | null;
272
238
  budget_id: string;
239
+ raw_used: Record<string, unknown>;
273
240
  }[];
241
+ campaign_id: string;
274
242
  raw_limit: Record<string, unknown> | null;
275
243
  raw_used: Record<string, unknown>;
276
- created_at: Date;
277
- updated_at: Date;
278
- deleted_at: Date | null;
279
- campaign_id: string;
280
244
  };
281
245
  promotions: /*elided*/ any[];
246
+ };
247
+ application_method: {
282
248
  created_at: Date;
283
249
  updated_at: Date;
284
250
  deleted_at: Date | null;
285
- };
286
- application_method: {
287
251
  id: string;
288
252
  value: number | null;
289
253
  currency_code: string | null;
@@ -295,142 +259,100 @@ export default class PromotionModuleService extends PromotionModuleService_base
295
259
  allocation: ApplicationMethodAllocation | null;
296
260
  promotion: /*elided*/ any;
297
261
  target_rules: {
262
+ created_at: Date;
263
+ updated_at: Date;
264
+ deleted_at: Date | null;
298
265
  id: string;
299
266
  description: string | null;
300
267
  attribute: string;
301
268
  operator: import("@medusajs/framework/utils").PromotionRuleOperator;
302
269
  values: {
303
- id: string;
304
- value: string;
305
- promotion_rule: /*elided*/ any;
306
270
  created_at: Date;
307
271
  updated_at: Date;
308
272
  deleted_at: Date | null;
273
+ id: string;
274
+ value: string;
275
+ promotion_rule: /*elided*/ any;
309
276
  promotion_rule_id: string;
310
277
  }[];
311
- promotions: /*elided*/ any[];
278
+ promotions: any[];
312
279
  method_target_rules: /*elided*/ any[];
313
- method_buy_rules: /*elided*/ any[];
280
+ method_buy_rules: any[];
281
+ }[];
282
+ buy_rules: {
314
283
  created_at: Date;
315
284
  updated_at: Date;
316
285
  deleted_at: Date | null;
317
- }[];
318
- buy_rules: {
319
286
  id: string;
320
287
  description: string | null;
321
288
  attribute: string;
322
289
  operator: import("@medusajs/framework/utils").PromotionRuleOperator;
323
290
  values: {
324
- id: string;
325
- value: string;
326
- promotion_rule: /*elided*/ any;
327
291
  created_at: Date;
328
292
  updated_at: Date;
329
293
  deleted_at: Date | null;
294
+ id: string;
295
+ value: string;
296
+ promotion_rule: any;
330
297
  promotion_rule_id: string;
331
298
  }[];
332
- promotions: /*elided*/ any[];
333
- method_target_rules: /*elided*/ any[];
334
- method_buy_rules: /*elided*/ any[];
335
- created_at: Date;
336
- updated_at: Date;
337
- deleted_at: Date | null;
299
+ promotions: any[];
300
+ method_target_rules: any[];
301
+ method_buy_rules: any[];
338
302
  }[];
339
- raw_value: Record<string, unknown> | null;
340
- raw_max_quantity: Record<string, unknown> | null;
303
+ promotion_id: string;
341
304
  raw_apply_to_quantity: Record<string, unknown> | null;
342
305
  raw_buy_rules_min_quantity: Record<string, unknown> | null;
306
+ raw_max_quantity: Record<string, unknown> | null;
307
+ raw_value: Record<string, unknown> | null;
308
+ };
309
+ rules: {
343
310
  created_at: Date;
344
311
  updated_at: Date;
345
312
  deleted_at: Date | null;
346
- promotion_id: string;
347
- };
348
- rules: {
349
313
  id: string;
350
314
  description: string | null;
351
315
  attribute: string;
352
316
  operator: import("@medusajs/framework/utils").PromotionRuleOperator;
353
317
  values: {
354
- id: string;
355
- value: string;
356
- promotion_rule: /*elided*/ any;
357
318
  created_at: Date;
358
319
  updated_at: Date;
359
320
  deleted_at: Date | null;
360
- promotion_rule_id: string;
361
- }[];
362
- promotions: /*elided*/ any[];
363
- method_target_rules: {
364
321
  id: string;
365
- value: number | null;
366
- currency_code: string | null;
367
- max_quantity: number | null;
368
- apply_to_quantity: number | null;
369
- buy_rules_min_quantity: number | null;
370
- type: import("@medusajs/framework/utils").ApplicationMethodType;
371
- target_type: ApplicationMethodTargetType;
372
- allocation: ApplicationMethodAllocation | null;
373
- promotion: /*elided*/ any;
374
- target_rules: /*elided*/ any[];
375
- buy_rules: /*elided*/ any[];
376
- raw_value: Record<string, unknown> | null;
377
- raw_max_quantity: Record<string, unknown> | null;
378
- raw_apply_to_quantity: Record<string, unknown> | null;
379
- raw_buy_rules_min_quantity: Record<string, unknown> | null;
380
- created_at: Date;
381
- updated_at: Date;
382
- deleted_at: Date | null;
383
- promotion_id: string;
384
- }[];
385
- method_buy_rules: {
386
- id: string;
387
- value: number | null;
388
- currency_code: string | null;
389
- max_quantity: number | null;
390
- apply_to_quantity: number | null;
391
- buy_rules_min_quantity: number | null;
392
- type: import("@medusajs/framework/utils").ApplicationMethodType;
393
- target_type: ApplicationMethodTargetType;
394
- allocation: ApplicationMethodAllocation | null;
395
- promotion: /*elided*/ any;
396
- target_rules: /*elided*/ any[];
397
- buy_rules: /*elided*/ any[];
398
- raw_value: Record<string, unknown> | null;
399
- raw_max_quantity: Record<string, unknown> | null;
400
- raw_apply_to_quantity: Record<string, unknown> | null;
401
- raw_buy_rules_min_quantity: Record<string, unknown> | null;
402
- created_at: Date;
403
- updated_at: Date;
404
- deleted_at: Date | null;
405
- promotion_id: string;
322
+ value: string;
323
+ promotion_rule: any;
324
+ promotion_rule_id: string;
406
325
  }[];
407
- created_at: Date;
408
- updated_at: Date;
409
- deleted_at: Date | null;
326
+ promotions: any[];
327
+ method_target_rules: any[];
328
+ method_buy_rules: any[];
410
329
  }[];
411
330
  metadata: NoInfer<Record<string, unknown>> | null;
412
- raw_limit: Record<string, unknown> | null;
413
- created_at: Date;
414
- updated_at: Date;
415
- deleted_at: Date | null;
416
331
  campaign_id: string | null;
332
+ raw_limit: Record<string, unknown> | null;
417
333
  }[]>;
418
334
  updatePromotionRules(data: PromotionTypes.UpdatePromotionRuleDTO[], sharedContext?: Context): Promise<PromotionTypes.PromotionRuleDTO[]>;
419
335
  protected updatePromotionRules_(data: PromotionTypes.UpdatePromotionRuleDTO[], sharedContext?: Context): Promise<{
336
+ created_at: Date;
337
+ updated_at: Date;
338
+ deleted_at: Date | null;
420
339
  id: string;
421
340
  description: string | null;
422
341
  attribute: string;
423
342
  operator: import("@medusajs/framework/utils").PromotionRuleOperator;
424
343
  values: {
425
- id: string;
426
- value: string;
427
- promotion_rule: /*elided*/ any;
428
344
  created_at: Date;
429
345
  updated_at: Date;
430
346
  deleted_at: Date | null;
347
+ id: string;
348
+ value: string;
349
+ promotion_rule: /*elided*/ any;
431
350
  promotion_rule_id: string;
432
351
  }[];
433
352
  promotions: {
353
+ created_at: Date;
354
+ updated_at: Date;
355
+ deleted_at: Date | null;
434
356
  id: string;
435
357
  code: string;
436
358
  is_automatic: boolean;
@@ -440,6 +362,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
440
362
  type: PromotionType;
441
363
  status: PromotionStatus;
442
364
  campaign: {
365
+ created_at: Date;
366
+ updated_at: Date;
367
+ deleted_at: Date | null;
443
368
  id: string;
444
369
  name: string;
445
370
  description: string | null;
@@ -447,6 +372,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
447
372
  starts_at: Date | null;
448
373
  ends_at: Date | null;
449
374
  budget: {
375
+ created_at: Date;
376
+ updated_at: Date;
377
+ deleted_at: Date | null;
450
378
  id: string;
451
379
  type: CampaignBudgetType;
452
380
  currency_code: string | null;
@@ -455,29 +383,26 @@ export default class PromotionModuleService extends PromotionModuleService_base
455
383
  campaign: /*elided*/ any;
456
384
  attribute: string | null;
457
385
  usages: {
386
+ created_at: Date;
387
+ updated_at: Date;
388
+ deleted_at: Date | null;
458
389
  id: string;
459
390
  attribute_value: string;
460
391
  used: number;
461
392
  budget: /*elided*/ any;
462
- raw_used: Record<string, unknown>;
463
- created_at: Date;
464
- updated_at: Date;
465
- deleted_at: Date | null;
466
393
  budget_id: string;
394
+ raw_used: Record<string, unknown>;
467
395
  }[];
396
+ campaign_id: string;
468
397
  raw_limit: Record<string, unknown> | null;
469
398
  raw_used: Record<string, unknown>;
470
- created_at: Date;
471
- updated_at: Date;
472
- deleted_at: Date | null;
473
- campaign_id: string;
474
399
  };
475
400
  promotions: /*elided*/ any[];
401
+ };
402
+ application_method: {
476
403
  created_at: Date;
477
404
  updated_at: Date;
478
405
  deleted_at: Date | null;
479
- };
480
- application_method: {
481
406
  id: string;
482
407
  value: number | null;
483
408
  currency_code: string | null;
@@ -489,25 +414,22 @@ export default class PromotionModuleService extends PromotionModuleService_base
489
414
  allocation: ApplicationMethodAllocation | null;
490
415
  promotion: /*elided*/ any;
491
416
  target_rules: /*elided*/ any[];
492
- buy_rules: /*elided*/ any[];
493
- raw_value: Record<string, unknown> | null;
494
- raw_max_quantity: Record<string, unknown> | null;
417
+ buy_rules: any[];
418
+ promotion_id: string;
495
419
  raw_apply_to_quantity: Record<string, unknown> | null;
496
420
  raw_buy_rules_min_quantity: Record<string, unknown> | null;
497
- created_at: Date;
498
- updated_at: Date;
499
- deleted_at: Date | null;
500
- promotion_id: string;
421
+ raw_max_quantity: Record<string, unknown> | null;
422
+ raw_value: Record<string, unknown> | null;
501
423
  };
502
- rules: /*elided*/ any[];
424
+ rules: any[];
503
425
  metadata: NoInfer<Record<string, unknown>> | null;
426
+ campaign_id: string | null;
504
427
  raw_limit: Record<string, unknown> | null;
428
+ }[];
429
+ method_target_rules: {
505
430
  created_at: Date;
506
431
  updated_at: Date;
507
432
  deleted_at: Date | null;
508
- campaign_id: string | null;
509
- }[];
510
- method_target_rules: {
511
433
  id: string;
512
434
  value: number | null;
513
435
  currency_code: string | null;
@@ -517,74 +439,19 @@ export default class PromotionModuleService extends PromotionModuleService_base
517
439
  type: import("@medusajs/framework/utils").ApplicationMethodType;
518
440
  target_type: ApplicationMethodTargetType;
519
441
  allocation: ApplicationMethodAllocation | null;
520
- promotion: {
521
- id: string;
522
- code: string;
523
- is_automatic: boolean;
524
- is_tax_inclusive: boolean;
525
- limit: number | null;
526
- used: number;
527
- type: PromotionType;
528
- status: PromotionStatus;
529
- campaign: {
530
- id: string;
531
- name: string;
532
- description: string | null;
533
- campaign_identifier: string;
534
- starts_at: Date | null;
535
- ends_at: Date | null;
536
- budget: {
537
- id: string;
538
- type: CampaignBudgetType;
539
- currency_code: string | null;
540
- limit: number | null;
541
- used: number;
542
- campaign: /*elided*/ any;
543
- attribute: string | null;
544
- usages: {
545
- id: string;
546
- attribute_value: string;
547
- used: number;
548
- budget: /*elided*/ any;
549
- raw_used: Record<string, unknown>;
550
- created_at: Date;
551
- updated_at: Date;
552
- deleted_at: Date | null;
553
- budget_id: string;
554
- }[];
555
- raw_limit: Record<string, unknown> | null;
556
- raw_used: Record<string, unknown>;
557
- created_at: Date;
558
- updated_at: Date;
559
- deleted_at: Date | null;
560
- campaign_id: string;
561
- };
562
- promotions: /*elided*/ any[];
563
- created_at: Date;
564
- updated_at: Date;
565
- deleted_at: Date | null;
566
- };
567
- application_method: /*elided*/ any;
568
- rules: /*elided*/ any[];
569
- metadata: NoInfer<Record<string, unknown>> | null;
570
- raw_limit: Record<string, unknown> | null;
571
- created_at: Date;
572
- updated_at: Date;
573
- deleted_at: Date | null;
574
- campaign_id: string | null;
575
- };
576
- target_rules: /*elided*/ any[];
577
- buy_rules: /*elided*/ any[];
578
- raw_value: Record<string, unknown> | null;
579
- raw_max_quantity: Record<string, unknown> | null;
442
+ promotion: any;
443
+ target_rules: any[];
444
+ buy_rules: any[];
445
+ promotion_id: string;
580
446
  raw_apply_to_quantity: Record<string, unknown> | null;
581
447
  raw_buy_rules_min_quantity: Record<string, unknown> | null;
448
+ raw_max_quantity: Record<string, unknown> | null;
449
+ raw_value: Record<string, unknown> | null;
450
+ }[];
451
+ method_buy_rules: {
582
452
  created_at: Date;
583
453
  updated_at: Date;
584
454
  deleted_at: Date | null;
585
- promotion_id: string;
586
- }[];
587
- method_buy_rules: {
588
455
  id: string;
589
456
  value: number | null;
590
457
  currency_code: string | null;
@@ -594,76 +461,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
594
461
  type: import("@medusajs/framework/utils").ApplicationMethodType;
595
462
  target_type: ApplicationMethodTargetType;
596
463
  allocation: ApplicationMethodAllocation | null;
597
- promotion: {
598
- id: string;
599
- code: string;
600
- is_automatic: boolean;
601
- is_tax_inclusive: boolean;
602
- limit: number | null;
603
- used: number;
604
- type: PromotionType;
605
- status: PromotionStatus;
606
- campaign: {
607
- id: string;
608
- name: string;
609
- description: string | null;
610
- campaign_identifier: string;
611
- starts_at: Date | null;
612
- ends_at: Date | null;
613
- budget: {
614
- id: string;
615
- type: CampaignBudgetType;
616
- currency_code: string | null;
617
- limit: number | null;
618
- used: number;
619
- campaign: /*elided*/ any;
620
- attribute: string | null;
621
- usages: {
622
- id: string;
623
- attribute_value: string;
624
- used: number;
625
- budget: /*elided*/ any;
626
- raw_used: Record<string, unknown>;
627
- created_at: Date;
628
- updated_at: Date;
629
- deleted_at: Date | null;
630
- budget_id: string;
631
- }[];
632
- raw_limit: Record<string, unknown> | null;
633
- raw_used: Record<string, unknown>;
634
- created_at: Date;
635
- updated_at: Date;
636
- deleted_at: Date | null;
637
- campaign_id: string;
638
- };
639
- promotions: /*elided*/ any[];
640
- created_at: Date;
641
- updated_at: Date;
642
- deleted_at: Date | null;
643
- };
644
- application_method: /*elided*/ any;
645
- rules: /*elided*/ any[];
646
- metadata: NoInfer<Record<string, unknown>> | null;
647
- raw_limit: Record<string, unknown> | null;
648
- created_at: Date;
649
- updated_at: Date;
650
- deleted_at: Date | null;
651
- campaign_id: string | null;
652
- };
653
- target_rules: /*elided*/ any[];
654
- buy_rules: /*elided*/ any[];
655
- raw_value: Record<string, unknown> | null;
656
- raw_max_quantity: Record<string, unknown> | null;
464
+ promotion: any;
465
+ target_rules: any[];
466
+ buy_rules: any[];
467
+ promotion_id: string;
657
468
  raw_apply_to_quantity: Record<string, unknown> | null;
658
469
  raw_buy_rules_min_quantity: Record<string, unknown> | null;
659
- created_at: Date;
660
- updated_at: Date;
661
- deleted_at: Date | null;
662
- promotion_id: string;
470
+ raw_max_quantity: Record<string, unknown> | null;
471
+ raw_value: Record<string, unknown> | null;
663
472
  }[];
664
- created_at: Date;
665
- updated_at: Date;
666
- deleted_at: Date | null;
667
473
  }[]>;
668
474
  addPromotionRules(promotionId: string, rulesData: PromotionTypes.CreatePromotionRuleDTO[], sharedContext?: Context): Promise<PromotionTypes.PromotionRuleDTO[]>;
669
475
  addPromotionTargetRules(promotionId: string, rulesData: PromotionTypes.CreatePromotionRuleDTO[], sharedContext?: Context): Promise<PromotionTypes.PromotionRuleDTO[]>;
@@ -677,6 +483,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
677
483
  createCampaigns(data: PromotionTypes.CreateCampaignDTO, sharedContext?: Context): Promise<PromotionTypes.CampaignDTO>;
678
484
  createCampaigns(data: PromotionTypes.CreateCampaignDTO[], sharedContext?: Context): Promise<PromotionTypes.CampaignDTO[]>;
679
485
  protected createCampaigns_(data: PromotionTypes.CreateCampaignDTO[], sharedContext?: Context): Promise<{
486
+ created_at: Date;
487
+ updated_at: Date;
488
+ deleted_at: Date | null;
680
489
  id: string;
681
490
  name: string;
682
491
  description: string | null;
@@ -684,6 +493,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
684
493
  starts_at: Date | null;
685
494
  ends_at: Date | null;
686
495
  budget: {
496
+ created_at: Date;
497
+ updated_at: Date;
498
+ deleted_at: Date | null;
687
499
  id: string;
688
500
  type: CampaignBudgetType;
689
501
  currency_code: string | null;
@@ -692,24 +504,24 @@ export default class PromotionModuleService extends PromotionModuleService_base
692
504
  campaign: /*elided*/ any;
693
505
  attribute: string | null;
694
506
  usages: {
507
+ created_at: Date;
508
+ updated_at: Date;
509
+ deleted_at: Date | null;
695
510
  id: string;
696
511
  attribute_value: string;
697
512
  used: number;
698
513
  budget: /*elided*/ any;
699
- raw_used: Record<string, unknown>;
700
- created_at: Date;
701
- updated_at: Date;
702
- deleted_at: Date | null;
703
514
  budget_id: string;
515
+ raw_used: Record<string, unknown>;
704
516
  }[];
517
+ campaign_id: string;
705
518
  raw_limit: Record<string, unknown> | null;
706
519
  raw_used: Record<string, unknown>;
520
+ };
521
+ promotions: {
707
522
  created_at: Date;
708
523
  updated_at: Date;
709
524
  deleted_at: Date | null;
710
- campaign_id: string;
711
- };
712
- promotions: {
713
525
  id: string;
714
526
  code: string;
715
527
  is_automatic: boolean;
@@ -720,6 +532,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
720
532
  status: PromotionStatus;
721
533
  campaign: /*elided*/ any;
722
534
  application_method: {
535
+ created_at: Date;
536
+ updated_at: Date;
537
+ deleted_at: Date | null;
723
538
  id: string;
724
539
  value: number | null;
725
540
  currency_code: string | null;
@@ -731,129 +546,78 @@ export default class PromotionModuleService extends PromotionModuleService_base
731
546
  allocation: ApplicationMethodAllocation | null;
732
547
  promotion: /*elided*/ any;
733
548
  target_rules: {
549
+ created_at: Date;
550
+ updated_at: Date;
551
+ deleted_at: Date | null;
734
552
  id: string;
735
553
  description: string | null;
736
554
  attribute: string;
737
555
  operator: import("@medusajs/framework/utils").PromotionRuleOperator;
738
556
  values: {
739
- id: string;
740
- value: string;
741
- promotion_rule: /*elided*/ any;
742
557
  created_at: Date;
743
558
  updated_at: Date;
744
559
  deleted_at: Date | null;
560
+ id: string;
561
+ value: string;
562
+ promotion_rule: /*elided*/ any;
745
563
  promotion_rule_id: string;
746
564
  }[];
747
565
  promotions: /*elided*/ any[];
748
566
  method_target_rules: /*elided*/ any[];
749
- method_buy_rules: /*elided*/ any[];
567
+ method_buy_rules: any[];
568
+ }[];
569
+ buy_rules: {
750
570
  created_at: Date;
751
571
  updated_at: Date;
752
572
  deleted_at: Date | null;
753
- }[];
754
- buy_rules: {
755
573
  id: string;
756
574
  description: string | null;
757
575
  attribute: string;
758
576
  operator: import("@medusajs/framework/utils").PromotionRuleOperator;
759
577
  values: {
760
- id: string;
761
- value: string;
762
- promotion_rule: /*elided*/ any;
763
578
  created_at: Date;
764
579
  updated_at: Date;
765
580
  deleted_at: Date | null;
581
+ id: string;
582
+ value: string;
583
+ promotion_rule: any;
766
584
  promotion_rule_id: string;
767
585
  }[];
768
- promotions: /*elided*/ any[];
769
- method_target_rules: /*elided*/ any[];
770
- method_buy_rules: /*elided*/ any[];
771
- created_at: Date;
772
- updated_at: Date;
773
- deleted_at: Date | null;
586
+ promotions: any[];
587
+ method_target_rules: any[];
588
+ method_buy_rules: any[];
774
589
  }[];
775
- raw_value: Record<string, unknown> | null;
776
- raw_max_quantity: Record<string, unknown> | null;
590
+ promotion_id: string;
777
591
  raw_apply_to_quantity: Record<string, unknown> | null;
778
592
  raw_buy_rules_min_quantity: Record<string, unknown> | null;
593
+ raw_max_quantity: Record<string, unknown> | null;
594
+ raw_value: Record<string, unknown> | null;
595
+ };
596
+ rules: {
779
597
  created_at: Date;
780
598
  updated_at: Date;
781
599
  deleted_at: Date | null;
782
- promotion_id: string;
783
- };
784
- rules: {
785
600
  id: string;
786
601
  description: string | null;
787
602
  attribute: string;
788
603
  operator: import("@medusajs/framework/utils").PromotionRuleOperator;
789
604
  values: {
790
- id: string;
791
- value: string;
792
- promotion_rule: /*elided*/ any;
793
605
  created_at: Date;
794
606
  updated_at: Date;
795
607
  deleted_at: Date | null;
796
- promotion_rule_id: string;
797
- }[];
798
- promotions: /*elided*/ any[];
799
- method_target_rules: {
800
- id: string;
801
- value: number | null;
802
- currency_code: string | null;
803
- max_quantity: number | null;
804
- apply_to_quantity: number | null;
805
- buy_rules_min_quantity: number | null;
806
- type: import("@medusajs/framework/utils").ApplicationMethodType;
807
- target_type: ApplicationMethodTargetType;
808
- allocation: ApplicationMethodAllocation | null;
809
- promotion: /*elided*/ any;
810
- target_rules: /*elided*/ any[];
811
- buy_rules: /*elided*/ any[];
812
- raw_value: Record<string, unknown> | null;
813
- raw_max_quantity: Record<string, unknown> | null;
814
- raw_apply_to_quantity: Record<string, unknown> | null;
815
- raw_buy_rules_min_quantity: Record<string, unknown> | null;
816
- created_at: Date;
817
- updated_at: Date;
818
- deleted_at: Date | null;
819
- promotion_id: string;
820
- }[];
821
- method_buy_rules: {
822
608
  id: string;
823
- value: number | null;
824
- currency_code: string | null;
825
- max_quantity: number | null;
826
- apply_to_quantity: number | null;
827
- buy_rules_min_quantity: number | null;
828
- type: import("@medusajs/framework/utils").ApplicationMethodType;
829
- target_type: ApplicationMethodTargetType;
830
- allocation: ApplicationMethodAllocation | null;
831
- promotion: /*elided*/ any;
832
- target_rules: /*elided*/ any[];
833
- buy_rules: /*elided*/ any[];
834
- raw_value: Record<string, unknown> | null;
835
- raw_max_quantity: Record<string, unknown> | null;
836
- raw_apply_to_quantity: Record<string, unknown> | null;
837
- raw_buy_rules_min_quantity: Record<string, unknown> | null;
838
- created_at: Date;
839
- updated_at: Date;
840
- deleted_at: Date | null;
841
- promotion_id: string;
609
+ value: string;
610
+ promotion_rule: any;
611
+ promotion_rule_id: string;
842
612
  }[];
843
- created_at: Date;
844
- updated_at: Date;
845
- deleted_at: Date | null;
613
+ promotions: any[];
614
+ method_target_rules: any[];
615
+ method_buy_rules: any[];
846
616
  }[];
847
617
  metadata: NoInfer<Record<string, unknown>> | null;
848
- raw_limit: Record<string, unknown> | null;
849
- created_at: Date;
850
- updated_at: Date;
851
- deleted_at: Date | null;
852
618
  campaign_id: string | null;
619
+ raw_limit: Record<string, unknown> | null;
853
620
  }[];
854
- created_at: Date;
855
- updated_at: Date;
856
- deleted_at: Date | null;
857
621
  }[]>;
858
622
  protected validateCampaignBudgetData(data: {
859
623
  type?: CampaignBudgetTypeValues;
@@ -862,6 +626,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
862
626
  updateCampaigns(data: PromotionTypes.UpdateCampaignDTO, sharedContext?: Context): Promise<PromotionTypes.CampaignDTO>;
863
627
  updateCampaigns(data: PromotionTypes.UpdateCampaignDTO[], sharedContext?: Context): Promise<PromotionTypes.CampaignDTO[]>;
864
628
  protected updateCampaigns_(data: PromotionTypes.UpdateCampaignDTO[], sharedContext?: Context): Promise<{
629
+ created_at: Date;
630
+ updated_at: Date;
631
+ deleted_at: Date | null;
865
632
  id: string;
866
633
  name: string;
867
634
  description: string | null;
@@ -869,6 +636,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
869
636
  starts_at: Date | null;
870
637
  ends_at: Date | null;
871
638
  budget: {
639
+ created_at: Date;
640
+ updated_at: Date;
641
+ deleted_at: Date | null;
872
642
  id: string;
873
643
  type: CampaignBudgetType;
874
644
  currency_code: string | null;
@@ -877,24 +647,24 @@ export default class PromotionModuleService extends PromotionModuleService_base
877
647
  campaign: /*elided*/ any;
878
648
  attribute: string | null;
879
649
  usages: {
650
+ created_at: Date;
651
+ updated_at: Date;
652
+ deleted_at: Date | null;
880
653
  id: string;
881
654
  attribute_value: string;
882
655
  used: number;
883
656
  budget: /*elided*/ any;
884
- raw_used: Record<string, unknown>;
885
- created_at: Date;
886
- updated_at: Date;
887
- deleted_at: Date | null;
888
657
  budget_id: string;
658
+ raw_used: Record<string, unknown>;
889
659
  }[];
660
+ campaign_id: string;
890
661
  raw_limit: Record<string, unknown> | null;
891
662
  raw_used: Record<string, unknown>;
663
+ };
664
+ promotions: {
892
665
  created_at: Date;
893
666
  updated_at: Date;
894
667
  deleted_at: Date | null;
895
- campaign_id: string;
896
- };
897
- promotions: {
898
668
  id: string;
899
669
  code: string;
900
670
  is_automatic: boolean;
@@ -905,6 +675,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
905
675
  status: PromotionStatus;
906
676
  campaign: /*elided*/ any;
907
677
  application_method: {
678
+ created_at: Date;
679
+ updated_at: Date;
680
+ deleted_at: Date | null;
908
681
  id: string;
909
682
  value: number | null;
910
683
  currency_code: string | null;
@@ -916,129 +689,78 @@ export default class PromotionModuleService extends PromotionModuleService_base
916
689
  allocation: ApplicationMethodAllocation | null;
917
690
  promotion: /*elided*/ any;
918
691
  target_rules: {
692
+ created_at: Date;
693
+ updated_at: Date;
694
+ deleted_at: Date | null;
919
695
  id: string;
920
696
  description: string | null;
921
697
  attribute: string;
922
698
  operator: import("@medusajs/framework/utils").PromotionRuleOperator;
923
699
  values: {
924
- id: string;
925
- value: string;
926
- promotion_rule: /*elided*/ any;
927
700
  created_at: Date;
928
701
  updated_at: Date;
929
702
  deleted_at: Date | null;
703
+ id: string;
704
+ value: string;
705
+ promotion_rule: /*elided*/ any;
930
706
  promotion_rule_id: string;
931
707
  }[];
932
708
  promotions: /*elided*/ any[];
933
709
  method_target_rules: /*elided*/ any[];
934
- method_buy_rules: /*elided*/ any[];
710
+ method_buy_rules: any[];
711
+ }[];
712
+ buy_rules: {
935
713
  created_at: Date;
936
714
  updated_at: Date;
937
715
  deleted_at: Date | null;
938
- }[];
939
- buy_rules: {
940
716
  id: string;
941
717
  description: string | null;
942
718
  attribute: string;
943
719
  operator: import("@medusajs/framework/utils").PromotionRuleOperator;
944
720
  values: {
945
- id: string;
946
- value: string;
947
- promotion_rule: /*elided*/ any;
948
721
  created_at: Date;
949
722
  updated_at: Date;
950
723
  deleted_at: Date | null;
724
+ id: string;
725
+ value: string;
726
+ promotion_rule: any;
951
727
  promotion_rule_id: string;
952
728
  }[];
953
- promotions: /*elided*/ any[];
954
- method_target_rules: /*elided*/ any[];
955
- method_buy_rules: /*elided*/ any[];
956
- created_at: Date;
957
- updated_at: Date;
958
- deleted_at: Date | null;
729
+ promotions: any[];
730
+ method_target_rules: any[];
731
+ method_buy_rules: any[];
959
732
  }[];
960
- raw_value: Record<string, unknown> | null;
961
- raw_max_quantity: Record<string, unknown> | null;
733
+ promotion_id: string;
962
734
  raw_apply_to_quantity: Record<string, unknown> | null;
963
735
  raw_buy_rules_min_quantity: Record<string, unknown> | null;
736
+ raw_max_quantity: Record<string, unknown> | null;
737
+ raw_value: Record<string, unknown> | null;
738
+ };
739
+ rules: {
964
740
  created_at: Date;
965
741
  updated_at: Date;
966
742
  deleted_at: Date | null;
967
- promotion_id: string;
968
- };
969
- rules: {
970
743
  id: string;
971
744
  description: string | null;
972
745
  attribute: string;
973
746
  operator: import("@medusajs/framework/utils").PromotionRuleOperator;
974
747
  values: {
975
- id: string;
976
- value: string;
977
- promotion_rule: /*elided*/ any;
978
- created_at: Date;
979
- updated_at: Date;
980
- deleted_at: Date | null;
981
- promotion_rule_id: string;
982
- }[];
983
- promotions: /*elided*/ any[];
984
- method_target_rules: {
985
- id: string;
986
- value: number | null;
987
- currency_code: string | null;
988
- max_quantity: number | null;
989
- apply_to_quantity: number | null;
990
- buy_rules_min_quantity: number | null;
991
- type: import("@medusajs/framework/utils").ApplicationMethodType;
992
- target_type: ApplicationMethodTargetType;
993
- allocation: ApplicationMethodAllocation | null;
994
- promotion: /*elided*/ any;
995
- target_rules: /*elided*/ any[];
996
- buy_rules: /*elided*/ any[];
997
- raw_value: Record<string, unknown> | null;
998
- raw_max_quantity: Record<string, unknown> | null;
999
- raw_apply_to_quantity: Record<string, unknown> | null;
1000
- raw_buy_rules_min_quantity: Record<string, unknown> | null;
1001
748
  created_at: Date;
1002
749
  updated_at: Date;
1003
750
  deleted_at: Date | null;
1004
- promotion_id: string;
1005
- }[];
1006
- method_buy_rules: {
1007
751
  id: string;
1008
- value: number | null;
1009
- currency_code: string | null;
1010
- max_quantity: number | null;
1011
- apply_to_quantity: number | null;
1012
- buy_rules_min_quantity: number | null;
1013
- type: import("@medusajs/framework/utils").ApplicationMethodType;
1014
- target_type: ApplicationMethodTargetType;
1015
- allocation: ApplicationMethodAllocation | null;
1016
- promotion: /*elided*/ any;
1017
- target_rules: /*elided*/ any[];
1018
- buy_rules: /*elided*/ any[];
1019
- raw_value: Record<string, unknown> | null;
1020
- raw_max_quantity: Record<string, unknown> | null;
1021
- raw_apply_to_quantity: Record<string, unknown> | null;
1022
- raw_buy_rules_min_quantity: Record<string, unknown> | null;
1023
- created_at: Date;
1024
- updated_at: Date;
1025
- deleted_at: Date | null;
1026
- promotion_id: string;
752
+ value: string;
753
+ promotion_rule: any;
754
+ promotion_rule_id: string;
1027
755
  }[];
1028
- created_at: Date;
1029
- updated_at: Date;
1030
- deleted_at: Date | null;
756
+ promotions: any[];
757
+ method_target_rules: any[];
758
+ method_buy_rules: any[];
1031
759
  }[];
1032
760
  metadata: NoInfer<Record<string, unknown>> | null;
1033
- raw_limit: Record<string, unknown> | null;
1034
- created_at: Date;
1035
- updated_at: Date;
1036
- deleted_at: Date | null;
1037
761
  campaign_id: string | null;
762
+ raw_limit: Record<string, unknown> | null;
1038
763
  }[];
1039
- created_at: Date;
1040
- updated_at: Date;
1041
- deleted_at: Date | null;
1042
764
  }[]>;
1043
765
  addPromotionsToCampaign(data: PromotionTypes.AddPromotionsToCampaignDTO, sharedContext?: Context): Promise<{
1044
766
  ids: string[];