@medusajs/promotion 2.11.3-snapshot-20251103115905 → 2.12.0-preview-20251103180145
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/models/application-method.d.ts +36 -36
- package/dist/models/campaign-budget-usage.d.ts +25 -63
- package/dist/models/campaign-budget-usage.d.ts.map +1 -1
- package/dist/models/campaign-budget.d.ts +25 -63
- package/dist/models/campaign-budget.d.ts.map +1 -1
- package/dist/models/campaign.d.ts +24 -62
- package/dist/models/campaign.d.ts.map +1 -1
- package/dist/models/promotion-rule-value.d.ts +23 -311
- package/dist/models/promotion-rule-value.d.ts.map +1 -1
- package/dist/models/promotion-rule.d.ts +35 -35
- package/dist/models/promotion.d.ts +10 -10
- package/dist/services/promotion-module.d.ts +78 -348
- package/dist/services/promotion-module.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/index.js +7 -17
- package/dist/utils/index.js.map +1 -1
- package/package.json +16 -10
|
@@ -76,13 +76,13 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
76
76
|
currency_code: string | null;
|
|
77
77
|
limit: number | null;
|
|
78
78
|
used: number;
|
|
79
|
-
campaign:
|
|
79
|
+
campaign: any;
|
|
80
80
|
attribute: string | null;
|
|
81
81
|
usages: {
|
|
82
82
|
id: string;
|
|
83
83
|
attribute_value: string;
|
|
84
84
|
used: number;
|
|
85
|
-
budget:
|
|
85
|
+
budget: any;
|
|
86
86
|
raw_used: Record<string, unknown>;
|
|
87
87
|
created_at: Date;
|
|
88
88
|
updated_at: Date;
|
|
@@ -96,7 +96,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
96
96
|
deleted_at: Date | null;
|
|
97
97
|
campaign_id: string;
|
|
98
98
|
};
|
|
99
|
-
promotions:
|
|
99
|
+
promotions: any[];
|
|
100
100
|
created_at: Date;
|
|
101
101
|
updated_at: Date;
|
|
102
102
|
deleted_at: Date | null;
|
|
@@ -111,7 +111,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
111
111
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
112
112
|
target_type: ApplicationMethodTargetType;
|
|
113
113
|
allocation: ApplicationMethodAllocation | null;
|
|
114
|
-
promotion:
|
|
114
|
+
promotion: any;
|
|
115
115
|
target_rules: {
|
|
116
116
|
id: string;
|
|
117
117
|
description: string | null;
|
|
@@ -120,15 +120,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
120
120
|
values: {
|
|
121
121
|
id: string;
|
|
122
122
|
value: string;
|
|
123
|
-
promotion_rule:
|
|
123
|
+
promotion_rule: any;
|
|
124
124
|
created_at: Date;
|
|
125
125
|
updated_at: Date;
|
|
126
126
|
deleted_at: Date | null;
|
|
127
127
|
promotion_rule_id: string;
|
|
128
128
|
}[];
|
|
129
|
-
promotions:
|
|
130
|
-
method_target_rules:
|
|
131
|
-
method_buy_rules:
|
|
129
|
+
promotions: any[];
|
|
130
|
+
method_target_rules: any[];
|
|
131
|
+
method_buy_rules: any[];
|
|
132
132
|
created_at: Date;
|
|
133
133
|
updated_at: Date;
|
|
134
134
|
deleted_at: Date | null;
|
|
@@ -141,15 +141,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
141
141
|
values: {
|
|
142
142
|
id: string;
|
|
143
143
|
value: string;
|
|
144
|
-
promotion_rule:
|
|
144
|
+
promotion_rule: any;
|
|
145
145
|
created_at: Date;
|
|
146
146
|
updated_at: Date;
|
|
147
147
|
deleted_at: Date | null;
|
|
148
148
|
promotion_rule_id: string;
|
|
149
149
|
}[];
|
|
150
|
-
promotions:
|
|
151
|
-
method_target_rules:
|
|
152
|
-
method_buy_rules:
|
|
150
|
+
promotions: any[];
|
|
151
|
+
method_target_rules: any[];
|
|
152
|
+
method_buy_rules: any[];
|
|
153
153
|
created_at: Date;
|
|
154
154
|
updated_at: Date;
|
|
155
155
|
deleted_at: Date | null;
|
|
@@ -171,57 +171,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
171
171
|
values: {
|
|
172
172
|
id: string;
|
|
173
173
|
value: string;
|
|
174
|
-
promotion_rule:
|
|
174
|
+
promotion_rule: any;
|
|
175
175
|
created_at: Date;
|
|
176
176
|
updated_at: Date;
|
|
177
177
|
deleted_at: Date | null;
|
|
178
178
|
promotion_rule_id: string;
|
|
179
179
|
}[];
|
|
180
|
-
promotions:
|
|
181
|
-
method_target_rules:
|
|
182
|
-
|
|
183
|
-
value: number | null;
|
|
184
|
-
currency_code: string | null;
|
|
185
|
-
max_quantity: number | null;
|
|
186
|
-
apply_to_quantity: number | null;
|
|
187
|
-
buy_rules_min_quantity: number | null;
|
|
188
|
-
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
189
|
-
target_type: ApplicationMethodTargetType;
|
|
190
|
-
allocation: ApplicationMethodAllocation | null;
|
|
191
|
-
promotion: /*elided*/ any;
|
|
192
|
-
target_rules: /*elided*/ any[];
|
|
193
|
-
buy_rules: /*elided*/ any[];
|
|
194
|
-
raw_value: Record<string, unknown> | null;
|
|
195
|
-
raw_max_quantity: Record<string, unknown> | null;
|
|
196
|
-
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
197
|
-
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
198
|
-
created_at: Date;
|
|
199
|
-
updated_at: Date;
|
|
200
|
-
deleted_at: Date | null;
|
|
201
|
-
promotion_id: string;
|
|
202
|
-
}[];
|
|
203
|
-
method_buy_rules: {
|
|
204
|
-
id: string;
|
|
205
|
-
value: number | null;
|
|
206
|
-
currency_code: string | null;
|
|
207
|
-
max_quantity: number | null;
|
|
208
|
-
apply_to_quantity: number | null;
|
|
209
|
-
buy_rules_min_quantity: number | null;
|
|
210
|
-
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
211
|
-
target_type: ApplicationMethodTargetType;
|
|
212
|
-
allocation: ApplicationMethodAllocation | null;
|
|
213
|
-
promotion: /*elided*/ any;
|
|
214
|
-
target_rules: /*elided*/ any[];
|
|
215
|
-
buy_rules: /*elided*/ any[];
|
|
216
|
-
raw_value: Record<string, unknown> | null;
|
|
217
|
-
raw_max_quantity: Record<string, unknown> | null;
|
|
218
|
-
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
219
|
-
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
220
|
-
created_at: Date;
|
|
221
|
-
updated_at: Date;
|
|
222
|
-
deleted_at: Date | null;
|
|
223
|
-
promotion_id: string;
|
|
224
|
-
}[];
|
|
180
|
+
promotions: any[];
|
|
181
|
+
method_target_rules: any[];
|
|
182
|
+
method_buy_rules: any[];
|
|
225
183
|
created_at: Date;
|
|
226
184
|
updated_at: Date;
|
|
227
185
|
deleted_at: Date | null;
|
|
@@ -253,13 +211,13 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
253
211
|
currency_code: string | null;
|
|
254
212
|
limit: number | null;
|
|
255
213
|
used: number;
|
|
256
|
-
campaign:
|
|
214
|
+
campaign: any;
|
|
257
215
|
attribute: string | null;
|
|
258
216
|
usages: {
|
|
259
217
|
id: string;
|
|
260
218
|
attribute_value: string;
|
|
261
219
|
used: number;
|
|
262
|
-
budget:
|
|
220
|
+
budget: any;
|
|
263
221
|
raw_used: Record<string, unknown>;
|
|
264
222
|
created_at: Date;
|
|
265
223
|
updated_at: Date;
|
|
@@ -273,7 +231,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
273
231
|
deleted_at: Date | null;
|
|
274
232
|
campaign_id: string;
|
|
275
233
|
};
|
|
276
|
-
promotions:
|
|
234
|
+
promotions: any[];
|
|
277
235
|
created_at: Date;
|
|
278
236
|
updated_at: Date;
|
|
279
237
|
deleted_at: Date | null;
|
|
@@ -288,7 +246,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
288
246
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
289
247
|
target_type: ApplicationMethodTargetType;
|
|
290
248
|
allocation: ApplicationMethodAllocation | null;
|
|
291
|
-
promotion:
|
|
249
|
+
promotion: any;
|
|
292
250
|
target_rules: {
|
|
293
251
|
id: string;
|
|
294
252
|
description: string | null;
|
|
@@ -297,15 +255,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
297
255
|
values: {
|
|
298
256
|
id: string;
|
|
299
257
|
value: string;
|
|
300
|
-
promotion_rule:
|
|
258
|
+
promotion_rule: any;
|
|
301
259
|
created_at: Date;
|
|
302
260
|
updated_at: Date;
|
|
303
261
|
deleted_at: Date | null;
|
|
304
262
|
promotion_rule_id: string;
|
|
305
263
|
}[];
|
|
306
|
-
promotions:
|
|
307
|
-
method_target_rules:
|
|
308
|
-
method_buy_rules:
|
|
264
|
+
promotions: any[];
|
|
265
|
+
method_target_rules: any[];
|
|
266
|
+
method_buy_rules: any[];
|
|
309
267
|
created_at: Date;
|
|
310
268
|
updated_at: Date;
|
|
311
269
|
deleted_at: Date | null;
|
|
@@ -318,15 +276,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
318
276
|
values: {
|
|
319
277
|
id: string;
|
|
320
278
|
value: string;
|
|
321
|
-
promotion_rule:
|
|
279
|
+
promotion_rule: any;
|
|
322
280
|
created_at: Date;
|
|
323
281
|
updated_at: Date;
|
|
324
282
|
deleted_at: Date | null;
|
|
325
283
|
promotion_rule_id: string;
|
|
326
284
|
}[];
|
|
327
|
-
promotions:
|
|
328
|
-
method_target_rules:
|
|
329
|
-
method_buy_rules:
|
|
285
|
+
promotions: any[];
|
|
286
|
+
method_target_rules: any[];
|
|
287
|
+
method_buy_rules: any[];
|
|
330
288
|
created_at: Date;
|
|
331
289
|
updated_at: Date;
|
|
332
290
|
deleted_at: Date | null;
|
|
@@ -348,57 +306,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
348
306
|
values: {
|
|
349
307
|
id: string;
|
|
350
308
|
value: string;
|
|
351
|
-
promotion_rule:
|
|
309
|
+
promotion_rule: any;
|
|
352
310
|
created_at: Date;
|
|
353
311
|
updated_at: Date;
|
|
354
312
|
deleted_at: Date | null;
|
|
355
313
|
promotion_rule_id: string;
|
|
356
314
|
}[];
|
|
357
|
-
promotions:
|
|
358
|
-
method_target_rules:
|
|
359
|
-
|
|
360
|
-
value: number | null;
|
|
361
|
-
currency_code: string | null;
|
|
362
|
-
max_quantity: number | null;
|
|
363
|
-
apply_to_quantity: number | null;
|
|
364
|
-
buy_rules_min_quantity: number | null;
|
|
365
|
-
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
366
|
-
target_type: ApplicationMethodTargetType;
|
|
367
|
-
allocation: ApplicationMethodAllocation | null;
|
|
368
|
-
promotion: /*elided*/ any;
|
|
369
|
-
target_rules: /*elided*/ any[];
|
|
370
|
-
buy_rules: /*elided*/ any[];
|
|
371
|
-
raw_value: Record<string, unknown> | null;
|
|
372
|
-
raw_max_quantity: Record<string, unknown> | null;
|
|
373
|
-
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
374
|
-
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
375
|
-
created_at: Date;
|
|
376
|
-
updated_at: Date;
|
|
377
|
-
deleted_at: Date | null;
|
|
378
|
-
promotion_id: string;
|
|
379
|
-
}[];
|
|
380
|
-
method_buy_rules: {
|
|
381
|
-
id: string;
|
|
382
|
-
value: number | null;
|
|
383
|
-
currency_code: string | null;
|
|
384
|
-
max_quantity: number | null;
|
|
385
|
-
apply_to_quantity: number | null;
|
|
386
|
-
buy_rules_min_quantity: number | null;
|
|
387
|
-
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
388
|
-
target_type: ApplicationMethodTargetType;
|
|
389
|
-
allocation: ApplicationMethodAllocation | null;
|
|
390
|
-
promotion: /*elided*/ any;
|
|
391
|
-
target_rules: /*elided*/ any[];
|
|
392
|
-
buy_rules: /*elided*/ any[];
|
|
393
|
-
raw_value: Record<string, unknown> | null;
|
|
394
|
-
raw_max_quantity: Record<string, unknown> | null;
|
|
395
|
-
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
396
|
-
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
397
|
-
created_at: Date;
|
|
398
|
-
updated_at: Date;
|
|
399
|
-
deleted_at: Date | null;
|
|
400
|
-
promotion_id: string;
|
|
401
|
-
}[];
|
|
315
|
+
promotions: any[];
|
|
316
|
+
method_target_rules: any[];
|
|
317
|
+
method_buy_rules: any[];
|
|
402
318
|
created_at: Date;
|
|
403
319
|
updated_at: Date;
|
|
404
320
|
deleted_at: Date | null;
|
|
@@ -417,7 +333,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
417
333
|
values: {
|
|
418
334
|
id: string;
|
|
419
335
|
value: string;
|
|
420
|
-
promotion_rule:
|
|
336
|
+
promotion_rule: any;
|
|
421
337
|
created_at: Date;
|
|
422
338
|
updated_at: Date;
|
|
423
339
|
deleted_at: Date | null;
|
|
@@ -443,13 +359,13 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
443
359
|
currency_code: string | null;
|
|
444
360
|
limit: number | null;
|
|
445
361
|
used: number;
|
|
446
|
-
campaign:
|
|
362
|
+
campaign: any;
|
|
447
363
|
attribute: string | null;
|
|
448
364
|
usages: {
|
|
449
365
|
id: string;
|
|
450
366
|
attribute_value: string;
|
|
451
367
|
used: number;
|
|
452
|
-
budget:
|
|
368
|
+
budget: any;
|
|
453
369
|
raw_used: Record<string, unknown>;
|
|
454
370
|
created_at: Date;
|
|
455
371
|
updated_at: Date;
|
|
@@ -463,7 +379,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
463
379
|
deleted_at: Date | null;
|
|
464
380
|
campaign_id: string;
|
|
465
381
|
};
|
|
466
|
-
promotions:
|
|
382
|
+
promotions: any[];
|
|
467
383
|
created_at: Date;
|
|
468
384
|
updated_at: Date;
|
|
469
385
|
deleted_at: Date | null;
|
|
@@ -478,9 +394,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
478
394
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
479
395
|
target_type: ApplicationMethodTargetType;
|
|
480
396
|
allocation: ApplicationMethodAllocation | null;
|
|
481
|
-
promotion:
|
|
482
|
-
target_rules:
|
|
483
|
-
buy_rules:
|
|
397
|
+
promotion: any;
|
|
398
|
+
target_rules: any[];
|
|
399
|
+
buy_rules: any[];
|
|
484
400
|
raw_value: Record<string, unknown> | null;
|
|
485
401
|
raw_max_quantity: Record<string, unknown> | null;
|
|
486
402
|
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
@@ -490,7 +406,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
490
406
|
deleted_at: Date | null;
|
|
491
407
|
promotion_id: string;
|
|
492
408
|
};
|
|
493
|
-
rules:
|
|
409
|
+
rules: any[];
|
|
494
410
|
created_at: Date;
|
|
495
411
|
updated_at: Date;
|
|
496
412
|
deleted_at: Date | null;
|
|
@@ -506,60 +422,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
506
422
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
507
423
|
target_type: ApplicationMethodTargetType;
|
|
508
424
|
allocation: ApplicationMethodAllocation | null;
|
|
509
|
-
promotion:
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
is_automatic: boolean;
|
|
513
|
-
is_tax_inclusive: boolean;
|
|
514
|
-
type: PromotionType;
|
|
515
|
-
status: PromotionStatus;
|
|
516
|
-
campaign: {
|
|
517
|
-
id: string;
|
|
518
|
-
name: string;
|
|
519
|
-
description: string | null;
|
|
520
|
-
campaign_identifier: string;
|
|
521
|
-
starts_at: Date | null;
|
|
522
|
-
ends_at: Date | null;
|
|
523
|
-
budget: {
|
|
524
|
-
id: string;
|
|
525
|
-
type: CampaignBudgetType;
|
|
526
|
-
currency_code: string | null;
|
|
527
|
-
limit: number | null;
|
|
528
|
-
used: number;
|
|
529
|
-
campaign: /*elided*/ any;
|
|
530
|
-
attribute: string | null;
|
|
531
|
-
usages: {
|
|
532
|
-
id: string;
|
|
533
|
-
attribute_value: string;
|
|
534
|
-
used: number;
|
|
535
|
-
budget: /*elided*/ any;
|
|
536
|
-
raw_used: Record<string, unknown>;
|
|
537
|
-
created_at: Date;
|
|
538
|
-
updated_at: Date;
|
|
539
|
-
deleted_at: Date | null;
|
|
540
|
-
budget_id: string;
|
|
541
|
-
}[];
|
|
542
|
-
raw_limit: Record<string, unknown> | null;
|
|
543
|
-
raw_used: Record<string, unknown>;
|
|
544
|
-
created_at: Date;
|
|
545
|
-
updated_at: Date;
|
|
546
|
-
deleted_at: Date | null;
|
|
547
|
-
campaign_id: string;
|
|
548
|
-
};
|
|
549
|
-
promotions: /*elided*/ any[];
|
|
550
|
-
created_at: Date;
|
|
551
|
-
updated_at: Date;
|
|
552
|
-
deleted_at: Date | null;
|
|
553
|
-
};
|
|
554
|
-
application_method: /*elided*/ any;
|
|
555
|
-
rules: /*elided*/ any[];
|
|
556
|
-
created_at: Date;
|
|
557
|
-
updated_at: Date;
|
|
558
|
-
deleted_at: Date | null;
|
|
559
|
-
campaign_id: string | null;
|
|
560
|
-
};
|
|
561
|
-
target_rules: /*elided*/ any[];
|
|
562
|
-
buy_rules: /*elided*/ any[];
|
|
425
|
+
promotion: any;
|
|
426
|
+
target_rules: any[];
|
|
427
|
+
buy_rules: any[];
|
|
563
428
|
raw_value: Record<string, unknown> | null;
|
|
564
429
|
raw_max_quantity: Record<string, unknown> | null;
|
|
565
430
|
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
@@ -579,60 +444,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
579
444
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
580
445
|
target_type: ApplicationMethodTargetType;
|
|
581
446
|
allocation: ApplicationMethodAllocation | null;
|
|
582
|
-
promotion:
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
is_automatic: boolean;
|
|
586
|
-
is_tax_inclusive: boolean;
|
|
587
|
-
type: PromotionType;
|
|
588
|
-
status: PromotionStatus;
|
|
589
|
-
campaign: {
|
|
590
|
-
id: string;
|
|
591
|
-
name: string;
|
|
592
|
-
description: string | null;
|
|
593
|
-
campaign_identifier: string;
|
|
594
|
-
starts_at: Date | null;
|
|
595
|
-
ends_at: Date | null;
|
|
596
|
-
budget: {
|
|
597
|
-
id: string;
|
|
598
|
-
type: CampaignBudgetType;
|
|
599
|
-
currency_code: string | null;
|
|
600
|
-
limit: number | null;
|
|
601
|
-
used: number;
|
|
602
|
-
campaign: /*elided*/ any;
|
|
603
|
-
attribute: string | null;
|
|
604
|
-
usages: {
|
|
605
|
-
id: string;
|
|
606
|
-
attribute_value: string;
|
|
607
|
-
used: number;
|
|
608
|
-
budget: /*elided*/ any;
|
|
609
|
-
raw_used: Record<string, unknown>;
|
|
610
|
-
created_at: Date;
|
|
611
|
-
updated_at: Date;
|
|
612
|
-
deleted_at: Date | null;
|
|
613
|
-
budget_id: string;
|
|
614
|
-
}[];
|
|
615
|
-
raw_limit: Record<string, unknown> | null;
|
|
616
|
-
raw_used: Record<string, unknown>;
|
|
617
|
-
created_at: Date;
|
|
618
|
-
updated_at: Date;
|
|
619
|
-
deleted_at: Date | null;
|
|
620
|
-
campaign_id: string;
|
|
621
|
-
};
|
|
622
|
-
promotions: /*elided*/ any[];
|
|
623
|
-
created_at: Date;
|
|
624
|
-
updated_at: Date;
|
|
625
|
-
deleted_at: Date | null;
|
|
626
|
-
};
|
|
627
|
-
application_method: /*elided*/ any;
|
|
628
|
-
rules: /*elided*/ any[];
|
|
629
|
-
created_at: Date;
|
|
630
|
-
updated_at: Date;
|
|
631
|
-
deleted_at: Date | null;
|
|
632
|
-
campaign_id: string | null;
|
|
633
|
-
};
|
|
634
|
-
target_rules: /*elided*/ any[];
|
|
635
|
-
buy_rules: /*elided*/ any[];
|
|
447
|
+
promotion: any;
|
|
448
|
+
target_rules: any[];
|
|
449
|
+
buy_rules: any[];
|
|
636
450
|
raw_value: Record<string, unknown> | null;
|
|
637
451
|
raw_max_quantity: Record<string, unknown> | null;
|
|
638
452
|
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
@@ -670,13 +484,13 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
670
484
|
currency_code: string | null;
|
|
671
485
|
limit: number | null;
|
|
672
486
|
used: number;
|
|
673
|
-
campaign:
|
|
487
|
+
campaign: any;
|
|
674
488
|
attribute: string | null;
|
|
675
489
|
usages: {
|
|
676
490
|
id: string;
|
|
677
491
|
attribute_value: string;
|
|
678
492
|
used: number;
|
|
679
|
-
budget:
|
|
493
|
+
budget: any;
|
|
680
494
|
raw_used: Record<string, unknown>;
|
|
681
495
|
created_at: Date;
|
|
682
496
|
updated_at: Date;
|
|
@@ -697,7 +511,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
697
511
|
is_tax_inclusive: boolean;
|
|
698
512
|
type: PromotionType;
|
|
699
513
|
status: PromotionStatus;
|
|
700
|
-
campaign:
|
|
514
|
+
campaign: any;
|
|
701
515
|
application_method: {
|
|
702
516
|
id: string;
|
|
703
517
|
value: number | null;
|
|
@@ -708,7 +522,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
708
522
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
709
523
|
target_type: ApplicationMethodTargetType;
|
|
710
524
|
allocation: ApplicationMethodAllocation | null;
|
|
711
|
-
promotion:
|
|
525
|
+
promotion: any;
|
|
712
526
|
target_rules: {
|
|
713
527
|
id: string;
|
|
714
528
|
description: string | null;
|
|
@@ -717,15 +531,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
717
531
|
values: {
|
|
718
532
|
id: string;
|
|
719
533
|
value: string;
|
|
720
|
-
promotion_rule:
|
|
534
|
+
promotion_rule: any;
|
|
721
535
|
created_at: Date;
|
|
722
536
|
updated_at: Date;
|
|
723
537
|
deleted_at: Date | null;
|
|
724
538
|
promotion_rule_id: string;
|
|
725
539
|
}[];
|
|
726
|
-
promotions:
|
|
727
|
-
method_target_rules:
|
|
728
|
-
method_buy_rules:
|
|
540
|
+
promotions: any[];
|
|
541
|
+
method_target_rules: any[];
|
|
542
|
+
method_buy_rules: any[];
|
|
729
543
|
created_at: Date;
|
|
730
544
|
updated_at: Date;
|
|
731
545
|
deleted_at: Date | null;
|
|
@@ -738,15 +552,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
738
552
|
values: {
|
|
739
553
|
id: string;
|
|
740
554
|
value: string;
|
|
741
|
-
promotion_rule:
|
|
555
|
+
promotion_rule: any;
|
|
742
556
|
created_at: Date;
|
|
743
557
|
updated_at: Date;
|
|
744
558
|
deleted_at: Date | null;
|
|
745
559
|
promotion_rule_id: string;
|
|
746
560
|
}[];
|
|
747
|
-
promotions:
|
|
748
|
-
method_target_rules:
|
|
749
|
-
method_buy_rules:
|
|
561
|
+
promotions: any[];
|
|
562
|
+
method_target_rules: any[];
|
|
563
|
+
method_buy_rules: any[];
|
|
750
564
|
created_at: Date;
|
|
751
565
|
updated_at: Date;
|
|
752
566
|
deleted_at: Date | null;
|
|
@@ -768,57 +582,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
768
582
|
values: {
|
|
769
583
|
id: string;
|
|
770
584
|
value: string;
|
|
771
|
-
promotion_rule:
|
|
585
|
+
promotion_rule: any;
|
|
772
586
|
created_at: Date;
|
|
773
587
|
updated_at: Date;
|
|
774
588
|
deleted_at: Date | null;
|
|
775
589
|
promotion_rule_id: string;
|
|
776
590
|
}[];
|
|
777
|
-
promotions:
|
|
778
|
-
method_target_rules:
|
|
779
|
-
|
|
780
|
-
value: number | null;
|
|
781
|
-
currency_code: string | null;
|
|
782
|
-
max_quantity: number | null;
|
|
783
|
-
apply_to_quantity: number | null;
|
|
784
|
-
buy_rules_min_quantity: number | null;
|
|
785
|
-
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
786
|
-
target_type: ApplicationMethodTargetType;
|
|
787
|
-
allocation: ApplicationMethodAllocation | null;
|
|
788
|
-
promotion: /*elided*/ any;
|
|
789
|
-
target_rules: /*elided*/ any[];
|
|
790
|
-
buy_rules: /*elided*/ any[];
|
|
791
|
-
raw_value: Record<string, unknown> | null;
|
|
792
|
-
raw_max_quantity: Record<string, unknown> | null;
|
|
793
|
-
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
794
|
-
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
795
|
-
created_at: Date;
|
|
796
|
-
updated_at: Date;
|
|
797
|
-
deleted_at: Date | null;
|
|
798
|
-
promotion_id: string;
|
|
799
|
-
}[];
|
|
800
|
-
method_buy_rules: {
|
|
801
|
-
id: string;
|
|
802
|
-
value: number | null;
|
|
803
|
-
currency_code: string | null;
|
|
804
|
-
max_quantity: number | null;
|
|
805
|
-
apply_to_quantity: number | null;
|
|
806
|
-
buy_rules_min_quantity: number | null;
|
|
807
|
-
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
808
|
-
target_type: ApplicationMethodTargetType;
|
|
809
|
-
allocation: ApplicationMethodAllocation | null;
|
|
810
|
-
promotion: /*elided*/ any;
|
|
811
|
-
target_rules: /*elided*/ any[];
|
|
812
|
-
buy_rules: /*elided*/ any[];
|
|
813
|
-
raw_value: Record<string, unknown> | null;
|
|
814
|
-
raw_max_quantity: Record<string, unknown> | null;
|
|
815
|
-
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
816
|
-
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
817
|
-
created_at: Date;
|
|
818
|
-
updated_at: Date;
|
|
819
|
-
deleted_at: Date | null;
|
|
820
|
-
promotion_id: string;
|
|
821
|
-
}[];
|
|
591
|
+
promotions: any[];
|
|
592
|
+
method_target_rules: any[];
|
|
593
|
+
method_buy_rules: any[];
|
|
822
594
|
created_at: Date;
|
|
823
595
|
updated_at: Date;
|
|
824
596
|
deleted_at: Date | null;
|
|
@@ -851,13 +623,13 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
851
623
|
currency_code: string | null;
|
|
852
624
|
limit: number | null;
|
|
853
625
|
used: number;
|
|
854
|
-
campaign:
|
|
626
|
+
campaign: any;
|
|
855
627
|
attribute: string | null;
|
|
856
628
|
usages: {
|
|
857
629
|
id: string;
|
|
858
630
|
attribute_value: string;
|
|
859
631
|
used: number;
|
|
860
|
-
budget:
|
|
632
|
+
budget: any;
|
|
861
633
|
raw_used: Record<string, unknown>;
|
|
862
634
|
created_at: Date;
|
|
863
635
|
updated_at: Date;
|
|
@@ -878,7 +650,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
878
650
|
is_tax_inclusive: boolean;
|
|
879
651
|
type: PromotionType;
|
|
880
652
|
status: PromotionStatus;
|
|
881
|
-
campaign:
|
|
653
|
+
campaign: any;
|
|
882
654
|
application_method: {
|
|
883
655
|
id: string;
|
|
884
656
|
value: number | null;
|
|
@@ -889,7 +661,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
889
661
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
890
662
|
target_type: ApplicationMethodTargetType;
|
|
891
663
|
allocation: ApplicationMethodAllocation | null;
|
|
892
|
-
promotion:
|
|
664
|
+
promotion: any;
|
|
893
665
|
target_rules: {
|
|
894
666
|
id: string;
|
|
895
667
|
description: string | null;
|
|
@@ -898,15 +670,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
898
670
|
values: {
|
|
899
671
|
id: string;
|
|
900
672
|
value: string;
|
|
901
|
-
promotion_rule:
|
|
673
|
+
promotion_rule: any;
|
|
902
674
|
created_at: Date;
|
|
903
675
|
updated_at: Date;
|
|
904
676
|
deleted_at: Date | null;
|
|
905
677
|
promotion_rule_id: string;
|
|
906
678
|
}[];
|
|
907
|
-
promotions:
|
|
908
|
-
method_target_rules:
|
|
909
|
-
method_buy_rules:
|
|
679
|
+
promotions: any[];
|
|
680
|
+
method_target_rules: any[];
|
|
681
|
+
method_buy_rules: any[];
|
|
910
682
|
created_at: Date;
|
|
911
683
|
updated_at: Date;
|
|
912
684
|
deleted_at: Date | null;
|
|
@@ -919,15 +691,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
919
691
|
values: {
|
|
920
692
|
id: string;
|
|
921
693
|
value: string;
|
|
922
|
-
promotion_rule:
|
|
694
|
+
promotion_rule: any;
|
|
923
695
|
created_at: Date;
|
|
924
696
|
updated_at: Date;
|
|
925
697
|
deleted_at: Date | null;
|
|
926
698
|
promotion_rule_id: string;
|
|
927
699
|
}[];
|
|
928
|
-
promotions:
|
|
929
|
-
method_target_rules:
|
|
930
|
-
method_buy_rules:
|
|
700
|
+
promotions: any[];
|
|
701
|
+
method_target_rules: any[];
|
|
702
|
+
method_buy_rules: any[];
|
|
931
703
|
created_at: Date;
|
|
932
704
|
updated_at: Date;
|
|
933
705
|
deleted_at: Date | null;
|
|
@@ -949,57 +721,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
949
721
|
values: {
|
|
950
722
|
id: string;
|
|
951
723
|
value: string;
|
|
952
|
-
promotion_rule:
|
|
724
|
+
promotion_rule: any;
|
|
953
725
|
created_at: Date;
|
|
954
726
|
updated_at: Date;
|
|
955
727
|
deleted_at: Date | null;
|
|
956
728
|
promotion_rule_id: string;
|
|
957
729
|
}[];
|
|
958
|
-
promotions:
|
|
959
|
-
method_target_rules:
|
|
960
|
-
|
|
961
|
-
value: number | null;
|
|
962
|
-
currency_code: string | null;
|
|
963
|
-
max_quantity: number | null;
|
|
964
|
-
apply_to_quantity: number | null;
|
|
965
|
-
buy_rules_min_quantity: number | null;
|
|
966
|
-
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
967
|
-
target_type: ApplicationMethodTargetType;
|
|
968
|
-
allocation: ApplicationMethodAllocation | null;
|
|
969
|
-
promotion: /*elided*/ any;
|
|
970
|
-
target_rules: /*elided*/ any[];
|
|
971
|
-
buy_rules: /*elided*/ any[];
|
|
972
|
-
raw_value: Record<string, unknown> | null;
|
|
973
|
-
raw_max_quantity: Record<string, unknown> | null;
|
|
974
|
-
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
975
|
-
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
976
|
-
created_at: Date;
|
|
977
|
-
updated_at: Date;
|
|
978
|
-
deleted_at: Date | null;
|
|
979
|
-
promotion_id: string;
|
|
980
|
-
}[];
|
|
981
|
-
method_buy_rules: {
|
|
982
|
-
id: string;
|
|
983
|
-
value: number | null;
|
|
984
|
-
currency_code: string | null;
|
|
985
|
-
max_quantity: number | null;
|
|
986
|
-
apply_to_quantity: number | null;
|
|
987
|
-
buy_rules_min_quantity: number | null;
|
|
988
|
-
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
989
|
-
target_type: ApplicationMethodTargetType;
|
|
990
|
-
allocation: ApplicationMethodAllocation | null;
|
|
991
|
-
promotion: /*elided*/ any;
|
|
992
|
-
target_rules: /*elided*/ any[];
|
|
993
|
-
buy_rules: /*elided*/ any[];
|
|
994
|
-
raw_value: Record<string, unknown> | null;
|
|
995
|
-
raw_max_quantity: Record<string, unknown> | null;
|
|
996
|
-
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
997
|
-
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
998
|
-
created_at: Date;
|
|
999
|
-
updated_at: Date;
|
|
1000
|
-
deleted_at: Date | null;
|
|
1001
|
-
promotion_id: string;
|
|
1002
|
-
}[];
|
|
730
|
+
promotions: any[];
|
|
731
|
+
method_target_rules: any[];
|
|
732
|
+
method_buy_rules: any[];
|
|
1003
733
|
created_at: Date;
|
|
1004
734
|
updated_at: Date;
|
|
1005
735
|
deleted_at: Date | null;
|