@managesome/eposmatic-toolkit 0.2.248 → 0.2.250

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.
@@ -110,6 +110,9 @@ export declare const CustomersSchema: Schema<any, import("mongoose").Model<any,
110
110
  last_order_at: NativeDate;
111
111
  last_order_id: import("mongoose").Types.ObjectId;
112
112
  loyalty_points: number;
113
+ cashback_balance: number;
114
+ gift_cards: Map<string, number>;
115
+ voucher_codes: Map<string, number>;
113
116
  address_details: {
114
117
  city: string;
115
118
  address_instructions: string;
@@ -259,6 +262,9 @@ export declare const CustomersSchema: Schema<any, import("mongoose").Model<any,
259
262
  last_order_at: NativeDate;
260
263
  last_order_id: import("mongoose").Types.ObjectId;
261
264
  loyalty_points: number;
265
+ cashback_balance: number;
266
+ gift_cards: Map<string, number>;
267
+ voucher_codes: Map<string, number>;
262
268
  address_details: {
263
269
  city: string;
264
270
  address_instructions: string;
@@ -408,6 +414,9 @@ export declare const CustomersSchema: Schema<any, import("mongoose").Model<any,
408
414
  last_order_at: NativeDate;
409
415
  last_order_id: import("mongoose").Types.ObjectId;
410
416
  loyalty_points: number;
417
+ cashback_balance: number;
418
+ gift_cards: Map<string, number>;
419
+ voucher_codes: Map<string, number>;
411
420
  address_details: {
412
421
  city: string;
413
422
  address_instructions: string;
@@ -170,6 +170,20 @@ exports.CustomersSchema = new mongoose_1.Schema({
170
170
  type: Number,
171
171
  default: 0,
172
172
  },
173
+ cashback_balance: {
174
+ type: Number,
175
+ default: 0,
176
+ },
177
+ gift_cards: {
178
+ type: Map,
179
+ of: Number,
180
+ default: {},
181
+ },
182
+ voucher_codes: {
183
+ type: Map,
184
+ of: Number,
185
+ default: {},
186
+ },
173
187
  address_details: {
174
188
  type: CustomerAddressDetailsSchema,
175
189
  default: null,
@@ -0,0 +1,113 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
3
+ timestamps: true;
4
+ versionKey: false;
5
+ minimize: false;
6
+ }, {
7
+ createdAt: NativeDate;
8
+ updatedAt: NativeDate;
9
+ } & {
10
+ _id: import("mongoose").Types.ObjectId;
11
+ name: string;
12
+ tenants: string[];
13
+ createdAt: NativeDate;
14
+ updatedAt: NativeDate;
15
+ description: string;
16
+ brand_id: string;
17
+ active: boolean;
18
+ code: string;
19
+ reward_type: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM;
20
+ used_count: number;
21
+ reward_items?: any;
22
+ reward_discount?: any;
23
+ reward_discount_items?: any;
24
+ reward_points?: any;
25
+ reward_cashback?: any;
26
+ reward_voucher?: any;
27
+ max_uses?: number | null | undefined;
28
+ max_uses_per_customer?: number | null | undefined;
29
+ last_used_at?: NativeDate | null | undefined;
30
+ expire_at?: NativeDate | null | undefined;
31
+ reward_mystery_gift?: {
32
+ choice_of_rewards: string[];
33
+ reward_items?: any;
34
+ reward_discount?: any;
35
+ reward_discount_items?: any;
36
+ reward_points?: any;
37
+ reward_cashback?: any;
38
+ reward_voucher?: any;
39
+ } | null | undefined;
40
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
41
+ createdAt: NativeDate;
42
+ updatedAt: NativeDate;
43
+ } & {
44
+ _id: import("mongoose").Types.ObjectId;
45
+ name: string;
46
+ tenants: string[];
47
+ createdAt: NativeDate;
48
+ updatedAt: NativeDate;
49
+ description: string;
50
+ brand_id: string;
51
+ active: boolean;
52
+ code: string;
53
+ reward_type: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM;
54
+ used_count: number;
55
+ reward_items?: any;
56
+ reward_discount?: any;
57
+ reward_discount_items?: any;
58
+ reward_points?: any;
59
+ reward_cashback?: any;
60
+ reward_voucher?: any;
61
+ max_uses?: number | null | undefined;
62
+ max_uses_per_customer?: number | null | undefined;
63
+ last_used_at?: NativeDate | null | undefined;
64
+ expire_at?: NativeDate | null | undefined;
65
+ reward_mystery_gift?: {
66
+ choice_of_rewards: string[];
67
+ reward_items?: any;
68
+ reward_discount?: any;
69
+ reward_discount_items?: any;
70
+ reward_points?: any;
71
+ reward_cashback?: any;
72
+ reward_voucher?: any;
73
+ } | null | undefined;
74
+ }>> & import("mongoose").FlatRecord<{
75
+ createdAt: NativeDate;
76
+ updatedAt: NativeDate;
77
+ } & {
78
+ _id: import("mongoose").Types.ObjectId;
79
+ name: string;
80
+ tenants: string[];
81
+ createdAt: NativeDate;
82
+ updatedAt: NativeDate;
83
+ description: string;
84
+ brand_id: string;
85
+ active: boolean;
86
+ code: string;
87
+ reward_type: import("../../constants").GIFT_CARD_REWARD_TYPE_ENUM;
88
+ used_count: number;
89
+ reward_items?: any;
90
+ reward_discount?: any;
91
+ reward_discount_items?: any;
92
+ reward_points?: any;
93
+ reward_cashback?: any;
94
+ reward_voucher?: any;
95
+ max_uses?: number | null | undefined;
96
+ max_uses_per_customer?: number | null | undefined;
97
+ last_used_at?: NativeDate | null | undefined;
98
+ expire_at?: NativeDate | null | undefined;
99
+ reward_mystery_gift?: {
100
+ choice_of_rewards: string[];
101
+ reward_items?: any;
102
+ reward_discount?: any;
103
+ reward_discount_items?: any;
104
+ reward_points?: any;
105
+ reward_cashback?: any;
106
+ reward_voucher?: any;
107
+ } | null | undefined;
108
+ }> & Required<{
109
+ _id: import("mongoose").Types.ObjectId;
110
+ }> & {
111
+ __v: number;
112
+ }>;
113
+ export declare const GIFT_CARDS_COLLECTION_NAME = "gift_cards";
@@ -0,0 +1,150 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GIFT_CARDS_COLLECTION_NAME = exports.GiftCardsSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const constants_1 = require("../../constants");
6
+ const RewardMysteryGiftSchema = new mongoose_1.Schema({
7
+ choice_of_rewards: {
8
+ type: [String],
9
+ enum: constants_1.ALL_MYSTERY_GIFT_TYPES,
10
+ required: true,
11
+ min: 1,
12
+ },
13
+ reward_discount: {
14
+ type: mongoose_1.Schema.Types.Mixed,
15
+ required: false,
16
+ },
17
+ reward_discount_items: {
18
+ type: mongoose_1.Schema.Types.Mixed,
19
+ required: false,
20
+ },
21
+ reward_points: {
22
+ type: mongoose_1.Schema.Types.Mixed,
23
+ required: false,
24
+ },
25
+ reward_cashback: {
26
+ type: mongoose_1.Schema.Types.Mixed,
27
+ required: false,
28
+ },
29
+ reward_items: {
30
+ type: mongoose_1.Schema.Types.Mixed,
31
+ required: false,
32
+ },
33
+ reward_voucher: {
34
+ type: mongoose_1.Schema.Types.Mixed,
35
+ required: false,
36
+ },
37
+ }, {
38
+ _id: false,
39
+ minimize: false,
40
+ });
41
+ exports.GiftCardsSchema = new mongoose_1.Schema({
42
+ _id: {
43
+ type: mongoose_1.Schema.Types.ObjectId,
44
+ required: true,
45
+ immutable: true,
46
+ },
47
+ code: {
48
+ type: String,
49
+ required: true,
50
+ trim: true,
51
+ uppercase: true,
52
+ },
53
+ brand_id: {
54
+ type: String,
55
+ required: true,
56
+ immutable: true,
57
+ ref: 'brands',
58
+ },
59
+ tenants: {
60
+ type: [{ type: String, ref: 'tenants' }],
61
+ required: true,
62
+ },
63
+ name: {
64
+ type: String,
65
+ required: true,
66
+ },
67
+ description: {
68
+ type: String,
69
+ required: true,
70
+ },
71
+ active: {
72
+ type: Boolean,
73
+ default: true,
74
+ },
75
+ max_uses: {
76
+ type: Number,
77
+ required: false,
78
+ default: null,
79
+ },
80
+ max_uses_per_customer: {
81
+ type: Number,
82
+ required: false,
83
+ default: null,
84
+ },
85
+ used_count: {
86
+ type: Number,
87
+ required: true,
88
+ default: 0,
89
+ },
90
+ last_used_at: {
91
+ type: mongoose_1.Schema.Types.Date,
92
+ required: false,
93
+ default: null,
94
+ },
95
+ reward_type: {
96
+ type: String,
97
+ enum: constants_1.ALL_GIFT_CARD_REWARD_TYPES,
98
+ required: true,
99
+ },
100
+ reward_items: {
101
+ type: mongoose_1.Schema.Types.Mixed,
102
+ required: false,
103
+ },
104
+ reward_discount: {
105
+ type: mongoose_1.Schema.Types.Mixed,
106
+ required: false,
107
+ },
108
+ reward_discount_items: {
109
+ type: mongoose_1.Schema.Types.Mixed,
110
+ required: false,
111
+ },
112
+ reward_points: {
113
+ type: mongoose_1.Schema.Types.Mixed,
114
+ required: false,
115
+ },
116
+ reward_cashback: {
117
+ type: mongoose_1.Schema.Types.Mixed,
118
+ required: false,
119
+ },
120
+ reward_voucher: {
121
+ type: mongoose_1.Schema.Types.Mixed,
122
+ required: false,
123
+ },
124
+ reward_mystery_gift: {
125
+ type: RewardMysteryGiftSchema,
126
+ required: false,
127
+ },
128
+ expire_at: {
129
+ type: mongoose_1.Schema.Types.Date,
130
+ required: false,
131
+ default: null,
132
+ },
133
+ createdAt: {
134
+ type: mongoose_1.Schema.Types.Date,
135
+ required: true,
136
+ default: () => new Date(),
137
+ immutable: true,
138
+ },
139
+ updatedAt: {
140
+ type: mongoose_1.Schema.Types.Date,
141
+ required: true,
142
+ default: () => new Date(),
143
+ },
144
+ }, {
145
+ timestamps: true,
146
+ versionKey: false,
147
+ minimize: false,
148
+ });
149
+ exports.GiftCardsSchema.index({ brand_id: 1, code: 1 }, { unique: true });
150
+ exports.GIFT_CARDS_COLLECTION_NAME = 'gift_cards';
@@ -50,6 +50,7 @@ export * from './tenant_staff';
50
50
  export * from './terminal_devices';
51
51
  export * from './tokens';
52
52
  export * from './track_order_number';
53
+ export * from './vouchers';
53
54
  export * from './void_order_items';
54
55
  export * from './wallet';
55
56
  export * from './wallet_transactions';
@@ -64,3 +65,5 @@ export * from './warehouse_operational_roles';
64
65
  export * from './warehouse_staff';
65
66
  export * from './warehouse_track_order_number';
66
67
  export * from './warehouse_vendors';
68
+ export * from './gift_cards';
69
+ export * from './rewards_usage';
@@ -66,6 +66,7 @@ __exportStar(require("./tenant_staff"), exports);
66
66
  __exportStar(require("./terminal_devices"), exports);
67
67
  __exportStar(require("./tokens"), exports);
68
68
  __exportStar(require("./track_order_number"), exports);
69
+ __exportStar(require("./vouchers"), exports);
69
70
  __exportStar(require("./void_order_items"), exports);
70
71
  __exportStar(require("./wallet"), exports);
71
72
  __exportStar(require("./wallet_transactions"), exports);
@@ -80,3 +81,5 @@ __exportStar(require("./warehouse_operational_roles"), exports);
80
81
  __exportStar(require("./warehouse_staff"), exports);
81
82
  __exportStar(require("./warehouse_track_order_number"), exports);
82
83
  __exportStar(require("./warehouse_vendors"), exports);
84
+ __exportStar(require("./gift_cards"), exports);
85
+ __exportStar(require("./rewards_usage"), exports);
@@ -1,4 +1,5 @@
1
1
  import { Schema } from 'mongoose';
2
+ import { PATHWAY_TO_UNLOCK_TYPE_ORDERS_SCOPE_ENUM } from '../../constants';
2
3
  export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
3
4
  timestamps: true;
4
5
  versionKey: false;
@@ -18,7 +19,10 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
18
19
  active: boolean;
19
20
  sort_id: number;
20
21
  included_platforms: import("../../constants").PLATFORMS_ENUM[];
21
- offer_special_hours: import("mongoose").Types.DocumentArray<{
22
+ auto_apply: boolean;
23
+ pathway_to_unlock_type: import("../../constants").PATHWAY_TO_UNLOCK_TYPE_ENUM;
24
+ reward_type: import("../../constants").OFFER_REWARD_TYPE_ENUM;
25
+ offer_special_hours?: import("mongoose").Types.DocumentArray<{
22
26
  days_index: import("../../constants").DAY_INDEX_ENUM[];
23
27
  disabled_outside_date_range: boolean;
24
28
  start_time: number;
@@ -303,28 +307,35 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
303
307
  KEETA_DELIVERY: number;
304
308
  BASE_PRICE: number;
305
309
  } | null | undefined;
306
- }>;
307
- auto_apply: boolean;
308
- pathway_to_unlock_type: import("../../constants").PATHWAY_TO_UNLOCK_TYPE_ENUM;
309
- pathway_to_unlock_type_items: {
310
- item_ids: import("mongoose").Types.ObjectId[];
310
+ }> | null | undefined;
311
+ pathway_to_unlock_type_items?: {
311
312
  excluded_refs: string[];
312
313
  exclusive_refs: string[];
313
314
  num_of_items: number;
314
315
  total_amount: number;
315
- };
316
- pathway_to_unlock_type_orders: {
317
- max_amount: number;
316
+ item_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
317
+ max_claims?: number | null | undefined;
318
+ max_same_item_quantity?: number | null | undefined;
319
+ category_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
320
+ } | null | undefined;
321
+ pathway_to_unlock_type_orders?: {
318
322
  total_amount: number;
319
323
  min_num_of_orders: number;
320
- max_num_of_orders: number;
321
- };
322
- pathway_to_unlock_type_points: {
324
+ max_amount?: number | null | undefined;
325
+ scope?: PATHWAY_TO_UNLOCK_TYPE_ORDERS_SCOPE_ENUM | null | undefined;
326
+ max_num_of_orders?: number | null | undefined;
327
+ } | null | undefined;
328
+ pathway_to_unlock_type_points?: {
323
329
  total_amount: number;
324
330
  num_of_points: number;
325
- };
326
- reward_type: import("../../constants").OFFER_REWARD_TYPE_ENUM;
327
- reward_items: {
331
+ max_claims?: number | null | undefined;
332
+ } | null | undefined;
333
+ pathway_to_unlock_type_vouchers?: {
334
+ total_amount: number;
335
+ voucher_ids: import("mongoose").Types.ObjectId[];
336
+ max_amount?: number | null | undefined;
337
+ } | null | undefined;
338
+ reward_items?: {
328
339
  item_ids: import("mongoose").Types.ObjectId[];
329
340
  excluded_refs: string[];
330
341
  exclusive_refs: string[];
@@ -339,13 +350,13 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
339
350
  item_ids: import("mongoose").Types.ObjectId[];
340
351
  quantity: number;
341
352
  }> | null | undefined;
342
- };
343
- reward_discount: {
353
+ } | null | undefined;
354
+ reward_discount?: {
344
355
  is_discount_percentage: boolean;
345
356
  excluded_refs: string[];
346
357
  discount_value: number;
347
- };
348
- reward_discount_items: {
358
+ } | null | undefined;
359
+ reward_discount_items?: {
349
360
  is_discount_percentage: boolean;
350
361
  item_ids: import("mongoose").Types.ObjectId[];
351
362
  excluded_refs: string[];
@@ -362,11 +373,23 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
362
373
  item_ids: import("mongoose").Types.ObjectId[];
363
374
  quantity: number;
364
375
  }> | null | undefined;
365
- };
366
- reward_points: {
376
+ } | null | undefined;
377
+ reward_points?: {
367
378
  num_of_points: number;
368
379
  once_per_order: boolean;
369
- };
380
+ } | null | undefined;
381
+ reward_cashback?: {
382
+ excluded_refs: string[];
383
+ cashback_value: number;
384
+ is_cashback_percentage: boolean;
385
+ max_cashback_amount?: number | null | undefined;
386
+ } | null | undefined;
387
+ reward_gift_cards?: {
388
+ gift_card_ids: Map<string, number>;
389
+ } | null | undefined;
390
+ reward_voucher?: {
391
+ voucher_ids: Map<string, number>;
392
+ } | null | undefined;
370
393
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
371
394
  createdAt: NativeDate;
372
395
  updatedAt: NativeDate;
@@ -382,7 +405,10 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
382
405
  active: boolean;
383
406
  sort_id: number;
384
407
  included_platforms: import("../../constants").PLATFORMS_ENUM[];
385
- offer_special_hours: import("mongoose").Types.DocumentArray<{
408
+ auto_apply: boolean;
409
+ pathway_to_unlock_type: import("../../constants").PATHWAY_TO_UNLOCK_TYPE_ENUM;
410
+ reward_type: import("../../constants").OFFER_REWARD_TYPE_ENUM;
411
+ offer_special_hours?: import("mongoose").Types.DocumentArray<{
386
412
  days_index: import("../../constants").DAY_INDEX_ENUM[];
387
413
  disabled_outside_date_range: boolean;
388
414
  start_time: number;
@@ -667,28 +693,35 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
667
693
  KEETA_DELIVERY: number;
668
694
  BASE_PRICE: number;
669
695
  } | null | undefined;
670
- }>;
671
- auto_apply: boolean;
672
- pathway_to_unlock_type: import("../../constants").PATHWAY_TO_UNLOCK_TYPE_ENUM;
673
- pathway_to_unlock_type_items: {
674
- item_ids: import("mongoose").Types.ObjectId[];
696
+ }> | null | undefined;
697
+ pathway_to_unlock_type_items?: {
675
698
  excluded_refs: string[];
676
699
  exclusive_refs: string[];
677
700
  num_of_items: number;
678
701
  total_amount: number;
679
- };
680
- pathway_to_unlock_type_orders: {
681
- max_amount: number;
702
+ item_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
703
+ max_claims?: number | null | undefined;
704
+ max_same_item_quantity?: number | null | undefined;
705
+ category_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
706
+ } | null | undefined;
707
+ pathway_to_unlock_type_orders?: {
682
708
  total_amount: number;
683
709
  min_num_of_orders: number;
684
- max_num_of_orders: number;
685
- };
686
- pathway_to_unlock_type_points: {
710
+ max_amount?: number | null | undefined;
711
+ scope?: PATHWAY_TO_UNLOCK_TYPE_ORDERS_SCOPE_ENUM | null | undefined;
712
+ max_num_of_orders?: number | null | undefined;
713
+ } | null | undefined;
714
+ pathway_to_unlock_type_points?: {
687
715
  total_amount: number;
688
716
  num_of_points: number;
689
- };
690
- reward_type: import("../../constants").OFFER_REWARD_TYPE_ENUM;
691
- reward_items: {
717
+ max_claims?: number | null | undefined;
718
+ } | null | undefined;
719
+ pathway_to_unlock_type_vouchers?: {
720
+ total_amount: number;
721
+ voucher_ids: import("mongoose").Types.ObjectId[];
722
+ max_amount?: number | null | undefined;
723
+ } | null | undefined;
724
+ reward_items?: {
692
725
  item_ids: import("mongoose").Types.ObjectId[];
693
726
  excluded_refs: string[];
694
727
  exclusive_refs: string[];
@@ -703,13 +736,13 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
703
736
  item_ids: import("mongoose").Types.ObjectId[];
704
737
  quantity: number;
705
738
  }> | null | undefined;
706
- };
707
- reward_discount: {
739
+ } | null | undefined;
740
+ reward_discount?: {
708
741
  is_discount_percentage: boolean;
709
742
  excluded_refs: string[];
710
743
  discount_value: number;
711
- };
712
- reward_discount_items: {
744
+ } | null | undefined;
745
+ reward_discount_items?: {
713
746
  is_discount_percentage: boolean;
714
747
  item_ids: import("mongoose").Types.ObjectId[];
715
748
  excluded_refs: string[];
@@ -726,11 +759,23 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
726
759
  item_ids: import("mongoose").Types.ObjectId[];
727
760
  quantity: number;
728
761
  }> | null | undefined;
729
- };
730
- reward_points: {
762
+ } | null | undefined;
763
+ reward_points?: {
731
764
  num_of_points: number;
732
765
  once_per_order: boolean;
733
- };
766
+ } | null | undefined;
767
+ reward_cashback?: {
768
+ excluded_refs: string[];
769
+ cashback_value: number;
770
+ is_cashback_percentage: boolean;
771
+ max_cashback_amount?: number | null | undefined;
772
+ } | null | undefined;
773
+ reward_gift_cards?: {
774
+ gift_card_ids: Map<string, number>;
775
+ } | null | undefined;
776
+ reward_voucher?: {
777
+ voucher_ids: Map<string, number>;
778
+ } | null | undefined;
734
779
  }>> & import("mongoose").FlatRecord<{
735
780
  createdAt: NativeDate;
736
781
  updatedAt: NativeDate;
@@ -746,7 +791,10 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
746
791
  active: boolean;
747
792
  sort_id: number;
748
793
  included_platforms: import("../../constants").PLATFORMS_ENUM[];
749
- offer_special_hours: import("mongoose").Types.DocumentArray<{
794
+ auto_apply: boolean;
795
+ pathway_to_unlock_type: import("../../constants").PATHWAY_TO_UNLOCK_TYPE_ENUM;
796
+ reward_type: import("../../constants").OFFER_REWARD_TYPE_ENUM;
797
+ offer_special_hours?: import("mongoose").Types.DocumentArray<{
750
798
  days_index: import("../../constants").DAY_INDEX_ENUM[];
751
799
  disabled_outside_date_range: boolean;
752
800
  start_time: number;
@@ -1031,28 +1079,35 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
1031
1079
  KEETA_DELIVERY: number;
1032
1080
  BASE_PRICE: number;
1033
1081
  } | null | undefined;
1034
- }>;
1035
- auto_apply: boolean;
1036
- pathway_to_unlock_type: import("../../constants").PATHWAY_TO_UNLOCK_TYPE_ENUM;
1037
- pathway_to_unlock_type_items: {
1038
- item_ids: import("mongoose").Types.ObjectId[];
1082
+ }> | null | undefined;
1083
+ pathway_to_unlock_type_items?: {
1039
1084
  excluded_refs: string[];
1040
1085
  exclusive_refs: string[];
1041
1086
  num_of_items: number;
1042
1087
  total_amount: number;
1043
- };
1044
- pathway_to_unlock_type_orders: {
1045
- max_amount: number;
1088
+ item_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
1089
+ max_claims?: number | null | undefined;
1090
+ max_same_item_quantity?: number | null | undefined;
1091
+ category_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
1092
+ } | null | undefined;
1093
+ pathway_to_unlock_type_orders?: {
1046
1094
  total_amount: number;
1047
1095
  min_num_of_orders: number;
1048
- max_num_of_orders: number;
1049
- };
1050
- pathway_to_unlock_type_points: {
1096
+ max_amount?: number | null | undefined;
1097
+ scope?: PATHWAY_TO_UNLOCK_TYPE_ORDERS_SCOPE_ENUM | null | undefined;
1098
+ max_num_of_orders?: number | null | undefined;
1099
+ } | null | undefined;
1100
+ pathway_to_unlock_type_points?: {
1051
1101
  total_amount: number;
1052
1102
  num_of_points: number;
1053
- };
1054
- reward_type: import("../../constants").OFFER_REWARD_TYPE_ENUM;
1055
- reward_items: {
1103
+ max_claims?: number | null | undefined;
1104
+ } | null | undefined;
1105
+ pathway_to_unlock_type_vouchers?: {
1106
+ total_amount: number;
1107
+ voucher_ids: import("mongoose").Types.ObjectId[];
1108
+ max_amount?: number | null | undefined;
1109
+ } | null | undefined;
1110
+ reward_items?: {
1056
1111
  item_ids: import("mongoose").Types.ObjectId[];
1057
1112
  excluded_refs: string[];
1058
1113
  exclusive_refs: string[];
@@ -1067,13 +1122,13 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
1067
1122
  item_ids: import("mongoose").Types.ObjectId[];
1068
1123
  quantity: number;
1069
1124
  }> | null | undefined;
1070
- };
1071
- reward_discount: {
1125
+ } | null | undefined;
1126
+ reward_discount?: {
1072
1127
  is_discount_percentage: boolean;
1073
1128
  excluded_refs: string[];
1074
1129
  discount_value: number;
1075
- };
1076
- reward_discount_items: {
1130
+ } | null | undefined;
1131
+ reward_discount_items?: {
1077
1132
  is_discount_percentage: boolean;
1078
1133
  item_ids: import("mongoose").Types.ObjectId[];
1079
1134
  excluded_refs: string[];
@@ -1090,11 +1145,23 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
1090
1145
  item_ids: import("mongoose").Types.ObjectId[];
1091
1146
  quantity: number;
1092
1147
  }> | null | undefined;
1093
- };
1094
- reward_points: {
1148
+ } | null | undefined;
1149
+ reward_points?: {
1095
1150
  num_of_points: number;
1096
1151
  once_per_order: boolean;
1097
- };
1152
+ } | null | undefined;
1153
+ reward_cashback?: {
1154
+ excluded_refs: string[];
1155
+ cashback_value: number;
1156
+ is_cashback_percentage: boolean;
1157
+ max_cashback_amount?: number | null | undefined;
1158
+ } | null | undefined;
1159
+ reward_gift_cards?: {
1160
+ gift_card_ids: Map<string, number>;
1161
+ } | null | undefined;
1162
+ reward_voucher?: {
1163
+ voucher_ids: Map<string, number>;
1164
+ } | null | undefined;
1098
1165
  }> & Required<{
1099
1166
  _id: import("mongoose").Types.ObjectId;
1100
1167
  }> & {