@classytic/loyalty 0.2.3 → 0.3.0

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.
@@ -1,4 +1,4 @@
1
- import { c as ResolvedTenant, i as ModelName, r as LoyaltyModelName, t as IndexDefinition } from "../config-96Sl6oNJ.mjs";
1
+ import { c as ResolvedTenant, i as ModelName, r as LoyaltyModelName, t as IndexDefinition } from "../config-BdSyAdnF.mjs";
2
2
  import * as _$mongoose from "mongoose";
3
3
  import { Connection, Model } from "mongoose";
4
4
 
@@ -13,22 +13,22 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
13
13
  externalType: string;
14
14
  status: "active" | "inactive" | "suspended";
15
15
  enrolledAt: NativeDate;
16
- cardId?: string | null | undefined;
17
- referralCode?: string | null | undefined;
18
- tier?: string | null | undefined;
19
- tierOverride?: string | null | undefined;
20
- tierOverrideReason?: string | null | undefined;
21
- tierOverrideExpiresAt?: NativeDate | null | undefined;
22
- referredBy?: string | null | undefined;
23
- tierQualifiedAt?: NativeDate | null | undefined;
24
- tierExpiresAt?: NativeDate | null | undefined;
16
+ cardId?: string | null;
17
+ referralCode?: string | null;
18
+ tier?: string | null;
19
+ tierOverride?: string | null;
20
+ tierOverrideReason?: string | null;
21
+ tierOverrideExpiresAt?: NativeDate | null;
22
+ referredBy?: string | null;
23
+ tierQualifiedAt?: NativeDate | null;
24
+ tierExpiresAt?: NativeDate | null;
25
25
  balance?: {
26
26
  current: number;
27
27
  lifetime: number;
28
28
  redeemed: number;
29
29
  expired: number;
30
- } | null | undefined;
31
- deactivatedAt?: NativeDate | null | undefined;
30
+ } | null;
31
+ deactivatedAt?: NativeDate | null;
32
32
  metadata?: any;
33
33
  } & _$mongoose.DefaultTimestampProps, {}, {}, {
34
34
  id: string;
@@ -38,22 +38,22 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
38
38
  externalType: string;
39
39
  status: "active" | "inactive" | "suspended";
40
40
  enrolledAt: NativeDate;
41
- cardId?: string | null | undefined;
42
- referralCode?: string | null | undefined;
43
- tier?: string | null | undefined;
44
- tierOverride?: string | null | undefined;
45
- tierOverrideReason?: string | null | undefined;
46
- tierOverrideExpiresAt?: NativeDate | null | undefined;
47
- referredBy?: string | null | undefined;
48
- tierQualifiedAt?: NativeDate | null | undefined;
49
- tierExpiresAt?: NativeDate | null | undefined;
41
+ cardId?: string | null;
42
+ referralCode?: string | null;
43
+ tier?: string | null;
44
+ tierOverride?: string | null;
45
+ tierOverrideReason?: string | null;
46
+ tierOverrideExpiresAt?: NativeDate | null;
47
+ referredBy?: string | null;
48
+ tierQualifiedAt?: NativeDate | null;
49
+ tierExpiresAt?: NativeDate | null;
50
50
  balance?: {
51
51
  current: number;
52
52
  lifetime: number;
53
53
  redeemed: number;
54
54
  expired: number;
55
- } | null | undefined;
56
- deactivatedAt?: NativeDate | null | undefined;
55
+ } | null;
56
+ deactivatedAt?: NativeDate | null;
57
57
  metadata?: any;
58
58
  } & _$mongoose.DefaultTimestampProps, {
59
59
  id: string;
@@ -65,22 +65,22 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
65
65
  externalType: string;
66
66
  status: "active" | "inactive" | "suspended";
67
67
  enrolledAt: NativeDate;
68
- cardId?: string | null | undefined;
69
- referralCode?: string | null | undefined;
70
- tier?: string | null | undefined;
71
- tierOverride?: string | null | undefined;
72
- tierOverrideReason?: string | null | undefined;
73
- tierOverrideExpiresAt?: NativeDate | null | undefined;
74
- referredBy?: string | null | undefined;
75
- tierQualifiedAt?: NativeDate | null | undefined;
76
- tierExpiresAt?: NativeDate | null | undefined;
68
+ cardId?: string | null;
69
+ referralCode?: string | null;
70
+ tier?: string | null;
71
+ tierOverride?: string | null;
72
+ tierOverrideReason?: string | null;
73
+ tierOverrideExpiresAt?: NativeDate | null;
74
+ referredBy?: string | null;
75
+ tierQualifiedAt?: NativeDate | null;
76
+ tierExpiresAt?: NativeDate | null;
77
77
  balance?: {
78
78
  current: number;
79
79
  lifetime: number;
80
80
  redeemed: number;
81
81
  expired: number;
82
- } | null | undefined;
83
- deactivatedAt?: NativeDate | null | undefined;
82
+ } | null;
83
+ deactivatedAt?: NativeDate | null;
84
84
  metadata?: any;
85
85
  } & _$mongoose.DefaultTimestampProps & {
86
86
  _id: _$mongoose.Types.ObjectId;
@@ -96,22 +96,22 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
96
96
  externalType: string;
97
97
  status: "active" | "inactive" | "suspended";
98
98
  enrolledAt: NativeDate;
99
- cardId?: string | null | undefined;
100
- referralCode?: string | null | undefined;
101
- tier?: string | null | undefined;
102
- tierOverride?: string | null | undefined;
103
- tierOverrideReason?: string | null | undefined;
104
- tierOverrideExpiresAt?: NativeDate | null | undefined;
105
- referredBy?: string | null | undefined;
106
- tierQualifiedAt?: NativeDate | null | undefined;
107
- tierExpiresAt?: NativeDate | null | undefined;
99
+ cardId?: string | null;
100
+ referralCode?: string | null;
101
+ tier?: string | null;
102
+ tierOverride?: string | null;
103
+ tierOverrideReason?: string | null;
104
+ tierOverrideExpiresAt?: NativeDate | null;
105
+ referredBy?: string | null;
106
+ tierQualifiedAt?: NativeDate | null;
107
+ tierExpiresAt?: NativeDate | null;
108
108
  balance?: {
109
109
  current: number;
110
110
  lifetime: number;
111
111
  redeemed: number;
112
112
  expired: number;
113
- } | null | undefined;
114
- deactivatedAt?: NativeDate | null | undefined;
113
+ } | null;
114
+ deactivatedAt?: NativeDate | null;
115
115
  metadata?: any;
116
116
  } & _$mongoose.DefaultTimestampProps, _$mongoose.Document<unknown, {}, {
117
117
  programId: string;
@@ -119,22 +119,22 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
119
119
  externalType: string;
120
120
  status: "active" | "inactive" | "suspended";
121
121
  enrolledAt: NativeDate;
122
- cardId?: string | null | undefined;
123
- referralCode?: string | null | undefined;
124
- tier?: string | null | undefined;
125
- tierOverride?: string | null | undefined;
126
- tierOverrideReason?: string | null | undefined;
127
- tierOverrideExpiresAt?: NativeDate | null | undefined;
128
- referredBy?: string | null | undefined;
129
- tierQualifiedAt?: NativeDate | null | undefined;
130
- tierExpiresAt?: NativeDate | null | undefined;
122
+ cardId?: string | null;
123
+ referralCode?: string | null;
124
+ tier?: string | null;
125
+ tierOverride?: string | null;
126
+ tierOverrideReason?: string | null;
127
+ tierOverrideExpiresAt?: NativeDate | null;
128
+ referredBy?: string | null;
129
+ tierQualifiedAt?: NativeDate | null;
130
+ tierExpiresAt?: NativeDate | null;
131
131
  balance?: {
132
132
  current: number;
133
133
  lifetime: number;
134
134
  redeemed: number;
135
135
  expired: number;
136
- } | null | undefined;
137
- deactivatedAt?: NativeDate | null | undefined;
136
+ } | null;
137
+ deactivatedAt?: NativeDate | null;
138
138
  metadata?: any;
139
139
  } & _$mongoose.DefaultTimestampProps, {
140
140
  id: string;
@@ -146,22 +146,22 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
146
146
  externalType: string;
147
147
  status: "active" | "inactive" | "suspended";
148
148
  enrolledAt: NativeDate;
149
- cardId?: string | null | undefined;
150
- referralCode?: string | null | undefined;
151
- tier?: string | null | undefined;
152
- tierOverride?: string | null | undefined;
153
- tierOverrideReason?: string | null | undefined;
154
- tierOverrideExpiresAt?: NativeDate | null | undefined;
155
- referredBy?: string | null | undefined;
156
- tierQualifiedAt?: NativeDate | null | undefined;
157
- tierExpiresAt?: NativeDate | null | undefined;
149
+ cardId?: string | null;
150
+ referralCode?: string | null;
151
+ tier?: string | null;
152
+ tierOverride?: string | null;
153
+ tierOverrideReason?: string | null;
154
+ tierOverrideExpiresAt?: NativeDate | null;
155
+ referredBy?: string | null;
156
+ tierQualifiedAt?: NativeDate | null;
157
+ tierExpiresAt?: NativeDate | null;
158
158
  balance?: {
159
159
  current: number;
160
160
  lifetime: number;
161
161
  redeemed: number;
162
162
  expired: number;
163
- } | null | undefined;
164
- deactivatedAt?: NativeDate | null | undefined;
163
+ } | null;
164
+ deactivatedAt?: NativeDate | null;
165
165
  metadata?: any;
166
166
  } & _$mongoose.DefaultTimestampProps & {
167
167
  _id: _$mongoose.Types.ObjectId;
@@ -175,22 +175,22 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
175
175
  externalType: string;
176
176
  status: "active" | "inactive" | "suspended";
177
177
  enrolledAt: NativeDate;
178
- cardId?: string | null | undefined;
179
- referralCode?: string | null | undefined;
180
- tier?: string | null | undefined;
181
- tierOverride?: string | null | undefined;
182
- tierOverrideReason?: string | null | undefined;
183
- tierOverrideExpiresAt?: NativeDate | null | undefined;
184
- referredBy?: string | null | undefined;
185
- tierQualifiedAt?: NativeDate | null | undefined;
186
- tierExpiresAt?: NativeDate | null | undefined;
178
+ cardId?: string | null;
179
+ referralCode?: string | null;
180
+ tier?: string | null;
181
+ tierOverride?: string | null;
182
+ tierOverrideReason?: string | null;
183
+ tierOverrideExpiresAt?: NativeDate | null;
184
+ referredBy?: string | null;
185
+ tierQualifiedAt?: NativeDate | null;
186
+ tierExpiresAt?: NativeDate | null;
187
187
  balance?: {
188
188
  current: number;
189
189
  lifetime: number;
190
190
  redeemed: number;
191
191
  expired: number;
192
- } | null | undefined;
193
- deactivatedAt?: NativeDate | null | undefined;
192
+ } | null;
193
+ deactivatedAt?: NativeDate | null;
194
194
  metadata?: any;
195
195
  createdAt: NativeDate;
196
196
  updatedAt: NativeDate;
@@ -204,22 +204,22 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
204
204
  externalType: string;
205
205
  status: "active" | "inactive" | "suspended";
206
206
  enrolledAt: NativeDate;
207
- cardId?: string | null | undefined;
208
- referralCode?: string | null | undefined;
209
- tier?: string | null | undefined;
210
- tierOverride?: string | null | undefined;
211
- tierOverrideReason?: string | null | undefined;
212
- tierOverrideExpiresAt?: NativeDate | null | undefined;
213
- referredBy?: string | null | undefined;
214
- tierQualifiedAt?: NativeDate | null | undefined;
215
- tierExpiresAt?: NativeDate | null | undefined;
207
+ cardId?: string | null;
208
+ referralCode?: string | null;
209
+ tier?: string | null;
210
+ tierOverride?: string | null;
211
+ tierOverrideReason?: string | null;
212
+ tierOverrideExpiresAt?: NativeDate | null;
213
+ referredBy?: string | null;
214
+ tierQualifiedAt?: NativeDate | null;
215
+ tierExpiresAt?: NativeDate | null;
216
216
  balance?: {
217
217
  current: number;
218
218
  lifetime: number;
219
219
  redeemed: number;
220
220
  expired: number;
221
- } | null | undefined;
222
- deactivatedAt?: NativeDate | null | undefined;
221
+ } | null;
222
+ deactivatedAt?: NativeDate | null;
223
223
  metadata?: any;
224
224
  createdAt: NativeDate;
225
225
  updatedAt: NativeDate;
@@ -237,15 +237,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
237
237
  balanceAfter: number;
238
238
  actorId: string;
239
239
  metadata?: any;
240
- referenceType?: string | null | undefined;
241
- referenceId?: string | null | undefined;
242
- idempotencyKey?: string | null | undefined;
243
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
244
- expiresAt?: NativeDate | null | undefined;
245
- expiredAt?: NativeDate | null | undefined;
240
+ referenceType?: string | null;
241
+ referenceId?: string | null;
242
+ idempotencyKey?: string | null;
243
+ earningRuleId?: _$mongoose.Types.ObjectId | null;
244
+ expiresAt?: NativeDate | null;
245
+ expiredAt?: NativeDate | null;
246
246
  approvals?: any;
247
- approvalPolicyId?: string | null | undefined;
248
- approvalPolicyVersion?: number | null | undefined;
247
+ approvalPolicyId?: string | null;
248
+ approvalPolicyVersion?: number | null;
249
249
  createdAt: NativeDate;
250
250
  }, {}, {}, {
251
251
  id: string;
@@ -258,15 +258,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
258
258
  balanceAfter: number;
259
259
  actorId: string;
260
260
  metadata?: any;
261
- referenceType?: string | null | undefined;
262
- referenceId?: string | null | undefined;
263
- idempotencyKey?: string | null | undefined;
264
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
265
- expiresAt?: NativeDate | null | undefined;
266
- expiredAt?: NativeDate | null | undefined;
261
+ referenceType?: string | null;
262
+ referenceId?: string | null;
263
+ idempotencyKey?: string | null;
264
+ earningRuleId?: _$mongoose.Types.ObjectId | null;
265
+ expiresAt?: NativeDate | null;
266
+ expiredAt?: NativeDate | null;
267
267
  approvals?: any;
268
- approvalPolicyId?: string | null | undefined;
269
- approvalPolicyVersion?: number | null | undefined;
268
+ approvalPolicyId?: string | null;
269
+ approvalPolicyVersion?: number | null;
270
270
  createdAt: NativeDate;
271
271
  }, {
272
272
  id: string;
@@ -284,15 +284,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
284
284
  balanceAfter: number;
285
285
  actorId: string;
286
286
  metadata?: any;
287
- referenceType?: string | null | undefined;
288
- referenceId?: string | null | undefined;
289
- idempotencyKey?: string | null | undefined;
290
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
291
- expiresAt?: NativeDate | null | undefined;
292
- expiredAt?: NativeDate | null | undefined;
287
+ referenceType?: string | null;
288
+ referenceId?: string | null;
289
+ idempotencyKey?: string | null;
290
+ earningRuleId?: _$mongoose.Types.ObjectId | null;
291
+ expiresAt?: NativeDate | null;
292
+ expiredAt?: NativeDate | null;
293
293
  approvals?: any;
294
- approvalPolicyId?: string | null | undefined;
295
- approvalPolicyVersion?: number | null | undefined;
294
+ approvalPolicyId?: string | null;
295
+ approvalPolicyVersion?: number | null;
296
296
  createdAt: NativeDate;
297
297
  } & {
298
298
  _id: _$mongoose.Types.ObjectId;
@@ -314,15 +314,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
314
314
  balanceAfter: number;
315
315
  actorId: string;
316
316
  metadata?: any;
317
- referenceType?: string | null | undefined;
318
- referenceId?: string | null | undefined;
319
- idempotencyKey?: string | null | undefined;
320
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
321
- expiresAt?: NativeDate | null | undefined;
322
- expiredAt?: NativeDate | null | undefined;
317
+ referenceType?: string | null;
318
+ referenceId?: string | null;
319
+ idempotencyKey?: string | null;
320
+ earningRuleId?: _$mongoose.Types.ObjectId | null;
321
+ expiresAt?: NativeDate | null;
322
+ expiredAt?: NativeDate | null;
323
323
  approvals?: any;
324
- approvalPolicyId?: string | null | undefined;
325
- approvalPolicyVersion?: number | null | undefined;
324
+ approvalPolicyId?: string | null;
325
+ approvalPolicyVersion?: number | null;
326
326
  createdAt: NativeDate;
327
327
  }, _$mongoose.Document<unknown, {}, {
328
328
  programId: string;
@@ -333,15 +333,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
333
333
  balanceAfter: number;
334
334
  actorId: string;
335
335
  metadata?: any;
336
- referenceType?: string | null | undefined;
337
- referenceId?: string | null | undefined;
338
- idempotencyKey?: string | null | undefined;
339
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
340
- expiresAt?: NativeDate | null | undefined;
341
- expiredAt?: NativeDate | null | undefined;
336
+ referenceType?: string | null;
337
+ referenceId?: string | null;
338
+ idempotencyKey?: string | null;
339
+ earningRuleId?: _$mongoose.Types.ObjectId | null;
340
+ expiresAt?: NativeDate | null;
341
+ expiredAt?: NativeDate | null;
342
342
  approvals?: any;
343
- approvalPolicyId?: string | null | undefined;
344
- approvalPolicyVersion?: number | null | undefined;
343
+ approvalPolicyId?: string | null;
344
+ approvalPolicyVersion?: number | null;
345
345
  createdAt: NativeDate;
346
346
  }, {
347
347
  id: string;
@@ -359,15 +359,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
359
359
  balanceAfter: number;
360
360
  actorId: string;
361
361
  metadata?: any;
362
- referenceType?: string | null | undefined;
363
- referenceId?: string | null | undefined;
364
- idempotencyKey?: string | null | undefined;
365
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
366
- expiresAt?: NativeDate | null | undefined;
367
- expiredAt?: NativeDate | null | undefined;
362
+ referenceType?: string | null;
363
+ referenceId?: string | null;
364
+ idempotencyKey?: string | null;
365
+ earningRuleId?: _$mongoose.Types.ObjectId | null;
366
+ expiresAt?: NativeDate | null;
367
+ expiredAt?: NativeDate | null;
368
368
  approvals?: any;
369
- approvalPolicyId?: string | null | undefined;
370
- approvalPolicyVersion?: number | null | undefined;
369
+ approvalPolicyId?: string | null;
370
+ approvalPolicyVersion?: number | null;
371
371
  createdAt: NativeDate;
372
372
  } & {
373
373
  _id: _$mongoose.Types.ObjectId;
@@ -384,15 +384,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
384
384
  balanceAfter: number;
385
385
  actorId: string;
386
386
  metadata?: any;
387
- referenceType?: string | null | undefined;
388
- referenceId?: string | null | undefined;
389
- idempotencyKey?: string | null | undefined;
390
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
391
- expiresAt?: NativeDate | null | undefined;
392
- expiredAt?: NativeDate | null | undefined;
387
+ referenceType?: string | null;
388
+ referenceId?: string | null;
389
+ idempotencyKey?: string | null;
390
+ earningRuleId?: _$mongoose.Types.ObjectId | null;
391
+ expiresAt?: NativeDate | null;
392
+ expiredAt?: NativeDate | null;
393
393
  approvals?: any;
394
- approvalPolicyId?: string | null | undefined;
395
- approvalPolicyVersion?: number | null | undefined;
394
+ approvalPolicyId?: string | null;
395
+ approvalPolicyVersion?: number | null;
396
396
  createdAt: NativeDate;
397
397
  } & {
398
398
  _id: _$mongoose.Types.ObjectId;
@@ -407,15 +407,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
407
407
  balanceAfter: number;
408
408
  actorId: string;
409
409
  metadata?: any;
410
- referenceType?: string | null | undefined;
411
- referenceId?: string | null | undefined;
412
- idempotencyKey?: string | null | undefined;
413
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
414
- expiresAt?: NativeDate | null | undefined;
415
- expiredAt?: NativeDate | null | undefined;
410
+ referenceType?: string | null;
411
+ referenceId?: string | null;
412
+ idempotencyKey?: string | null;
413
+ earningRuleId?: _$mongoose.Types.ObjectId | null;
414
+ expiresAt?: NativeDate | null;
415
+ expiredAt?: NativeDate | null;
416
416
  approvals?: any;
417
- approvalPolicyId?: string | null | undefined;
418
- approvalPolicyVersion?: number | null | undefined;
417
+ approvalPolicyId?: string | null;
418
+ approvalPolicyVersion?: number | null;
419
419
  createdAt: NativeDate;
420
420
  } & {
421
421
  _id: _$mongoose.Types.ObjectId;
@@ -429,28 +429,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
429
429
  status: "active" | "expired" | "paused";
430
430
  priority: number;
431
431
  metadata?: any;
432
- description?: string | null | undefined;
432
+ description?: string | null;
433
433
  conditions?: {
434
434
  categories: string[];
435
435
  tiers: string[];
436
436
  actions: string[];
437
437
  dayOfWeek: number[];
438
- minOrderAmount?: number | null | undefined;
438
+ minOrderAmount?: number | null;
439
439
  dateRange?: {
440
- start?: NativeDate | null | undefined;
441
- end?: NativeDate | null | undefined;
442
- } | null | undefined;
443
- } | null | undefined;
440
+ start?: NativeDate | null;
441
+ end?: NativeDate | null;
442
+ } | null;
443
+ } | null;
444
444
  reward?: {
445
445
  roundingMode: "floor" | "round" | "ceil";
446
- pointsPerAmount?: number | null | undefined;
447
- amountPerPoint?: number | null | undefined;
448
- fixedPoints?: number | null | undefined;
449
- multiplier?: number | null | undefined;
450
- maxPointsPerTransaction?: number | null | undefined;
451
- } | null | undefined;
452
- startsAt?: NativeDate | null | undefined;
453
- endsAt?: NativeDate | null | undefined;
446
+ pointsPerAmount?: number | null;
447
+ amountPerPoint?: number | null;
448
+ fixedPoints?: number | null;
449
+ multiplier?: number | null;
450
+ maxPointsPerTransaction?: number | null;
451
+ } | null;
452
+ startsAt?: NativeDate | null;
453
+ endsAt?: NativeDate | null;
454
454
  } & _$mongoose.DefaultTimestampProps, {}, {}, {
455
455
  id: string;
456
456
  }, _$mongoose.Document<unknown, {}, {
@@ -460,28 +460,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
460
460
  status: "active" | "expired" | "paused";
461
461
  priority: number;
462
462
  metadata?: any;
463
- description?: string | null | undefined;
463
+ description?: string | null;
464
464
  conditions?: {
465
465
  categories: string[];
466
466
  tiers: string[];
467
467
  actions: string[];
468
468
  dayOfWeek: number[];
469
- minOrderAmount?: number | null | undefined;
469
+ minOrderAmount?: number | null;
470
470
  dateRange?: {
471
- start?: NativeDate | null | undefined;
472
- end?: NativeDate | null | undefined;
473
- } | null | undefined;
474
- } | null | undefined;
471
+ start?: NativeDate | null;
472
+ end?: NativeDate | null;
473
+ } | null;
474
+ } | null;
475
475
  reward?: {
476
476
  roundingMode: "floor" | "round" | "ceil";
477
- pointsPerAmount?: number | null | undefined;
478
- amountPerPoint?: number | null | undefined;
479
- fixedPoints?: number | null | undefined;
480
- multiplier?: number | null | undefined;
481
- maxPointsPerTransaction?: number | null | undefined;
482
- } | null | undefined;
483
- startsAt?: NativeDate | null | undefined;
484
- endsAt?: NativeDate | null | undefined;
477
+ pointsPerAmount?: number | null;
478
+ amountPerPoint?: number | null;
479
+ fixedPoints?: number | null;
480
+ multiplier?: number | null;
481
+ maxPointsPerTransaction?: number | null;
482
+ } | null;
483
+ startsAt?: NativeDate | null;
484
+ endsAt?: NativeDate | null;
485
485
  } & _$mongoose.DefaultTimestampProps, {
486
486
  id: string;
487
487
  }, {
@@ -493,28 +493,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
493
493
  status: "active" | "expired" | "paused";
494
494
  priority: number;
495
495
  metadata?: any;
496
- description?: string | null | undefined;
496
+ description?: string | null;
497
497
  conditions?: {
498
498
  categories: string[];
499
499
  tiers: string[];
500
500
  actions: string[];
501
501
  dayOfWeek: number[];
502
- minOrderAmount?: number | null | undefined;
502
+ minOrderAmount?: number | null;
503
503
  dateRange?: {
504
- start?: NativeDate | null | undefined;
505
- end?: NativeDate | null | undefined;
506
- } | null | undefined;
507
- } | null | undefined;
504
+ start?: NativeDate | null;
505
+ end?: NativeDate | null;
506
+ } | null;
507
+ } | null;
508
508
  reward?: {
509
509
  roundingMode: "floor" | "round" | "ceil";
510
- pointsPerAmount?: number | null | undefined;
511
- amountPerPoint?: number | null | undefined;
512
- fixedPoints?: number | null | undefined;
513
- multiplier?: number | null | undefined;
514
- maxPointsPerTransaction?: number | null | undefined;
515
- } | null | undefined;
516
- startsAt?: NativeDate | null | undefined;
517
- endsAt?: NativeDate | null | undefined;
510
+ pointsPerAmount?: number | null;
511
+ amountPerPoint?: number | null;
512
+ fixedPoints?: number | null;
513
+ multiplier?: number | null;
514
+ maxPointsPerTransaction?: number | null;
515
+ } | null;
516
+ startsAt?: NativeDate | null;
517
+ endsAt?: NativeDate | null;
518
518
  } & _$mongoose.DefaultTimestampProps & {
519
519
  _id: _$mongoose.Types.ObjectId;
520
520
  } & {
@@ -530,28 +530,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
530
530
  status: "active" | "expired" | "paused";
531
531
  priority: number;
532
532
  metadata?: any;
533
- description?: string | null | undefined;
533
+ description?: string | null;
534
534
  conditions?: {
535
535
  categories: string[];
536
536
  tiers: string[];
537
537
  actions: string[];
538
538
  dayOfWeek: number[];
539
- minOrderAmount?: number | null | undefined;
539
+ minOrderAmount?: number | null;
540
540
  dateRange?: {
541
- start?: NativeDate | null | undefined;
542
- end?: NativeDate | null | undefined;
543
- } | null | undefined;
544
- } | null | undefined;
541
+ start?: NativeDate | null;
542
+ end?: NativeDate | null;
543
+ } | null;
544
+ } | null;
545
545
  reward?: {
546
546
  roundingMode: "floor" | "round" | "ceil";
547
- pointsPerAmount?: number | null | undefined;
548
- amountPerPoint?: number | null | undefined;
549
- fixedPoints?: number | null | undefined;
550
- multiplier?: number | null | undefined;
551
- maxPointsPerTransaction?: number | null | undefined;
552
- } | null | undefined;
553
- startsAt?: NativeDate | null | undefined;
554
- endsAt?: NativeDate | null | undefined;
547
+ pointsPerAmount?: number | null;
548
+ amountPerPoint?: number | null;
549
+ fixedPoints?: number | null;
550
+ multiplier?: number | null;
551
+ maxPointsPerTransaction?: number | null;
552
+ } | null;
553
+ startsAt?: NativeDate | null;
554
+ endsAt?: NativeDate | null;
555
555
  } & _$mongoose.DefaultTimestampProps, _$mongoose.Document<unknown, {}, {
556
556
  programId: string;
557
557
  type: "order" | "action" | "category" | "tier_bonus";
@@ -559,28 +559,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
559
559
  status: "active" | "expired" | "paused";
560
560
  priority: number;
561
561
  metadata?: any;
562
- description?: string | null | undefined;
562
+ description?: string | null;
563
563
  conditions?: {
564
564
  categories: string[];
565
565
  tiers: string[];
566
566
  actions: string[];
567
567
  dayOfWeek: number[];
568
- minOrderAmount?: number | null | undefined;
568
+ minOrderAmount?: number | null;
569
569
  dateRange?: {
570
- start?: NativeDate | null | undefined;
571
- end?: NativeDate | null | undefined;
572
- } | null | undefined;
573
- } | null | undefined;
570
+ start?: NativeDate | null;
571
+ end?: NativeDate | null;
572
+ } | null;
573
+ } | null;
574
574
  reward?: {
575
575
  roundingMode: "floor" | "round" | "ceil";
576
- pointsPerAmount?: number | null | undefined;
577
- amountPerPoint?: number | null | undefined;
578
- fixedPoints?: number | null | undefined;
579
- multiplier?: number | null | undefined;
580
- maxPointsPerTransaction?: number | null | undefined;
581
- } | null | undefined;
582
- startsAt?: NativeDate | null | undefined;
583
- endsAt?: NativeDate | null | undefined;
576
+ pointsPerAmount?: number | null;
577
+ amountPerPoint?: number | null;
578
+ fixedPoints?: number | null;
579
+ multiplier?: number | null;
580
+ maxPointsPerTransaction?: number | null;
581
+ } | null;
582
+ startsAt?: NativeDate | null;
583
+ endsAt?: NativeDate | null;
584
584
  } & _$mongoose.DefaultTimestampProps, {
585
585
  id: string;
586
586
  }, Omit<_$mongoose.DefaultSchemaOptions, "timestamps"> & {
@@ -592,28 +592,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
592
592
  status: "active" | "expired" | "paused";
593
593
  priority: number;
594
594
  metadata?: any;
595
- description?: string | null | undefined;
595
+ description?: string | null;
596
596
  conditions?: {
597
597
  categories: string[];
598
598
  tiers: string[];
599
599
  actions: string[];
600
600
  dayOfWeek: number[];
601
- minOrderAmount?: number | null | undefined;
601
+ minOrderAmount?: number | null;
602
602
  dateRange?: {
603
- start?: NativeDate | null | undefined;
604
- end?: NativeDate | null | undefined;
605
- } | null | undefined;
606
- } | null | undefined;
603
+ start?: NativeDate | null;
604
+ end?: NativeDate | null;
605
+ } | null;
606
+ } | null;
607
607
  reward?: {
608
608
  roundingMode: "floor" | "round" | "ceil";
609
- pointsPerAmount?: number | null | undefined;
610
- amountPerPoint?: number | null | undefined;
611
- fixedPoints?: number | null | undefined;
612
- multiplier?: number | null | undefined;
613
- maxPointsPerTransaction?: number | null | undefined;
614
- } | null | undefined;
615
- startsAt?: NativeDate | null | undefined;
616
- endsAt?: NativeDate | null | undefined;
609
+ pointsPerAmount?: number | null;
610
+ amountPerPoint?: number | null;
611
+ fixedPoints?: number | null;
612
+ multiplier?: number | null;
613
+ maxPointsPerTransaction?: number | null;
614
+ } | null;
615
+ startsAt?: NativeDate | null;
616
+ endsAt?: NativeDate | null;
617
617
  } & _$mongoose.DefaultTimestampProps & {
618
618
  _id: _$mongoose.Types.ObjectId;
619
619
  } & {
@@ -627,28 +627,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
627
627
  status: "active" | "expired" | "paused";
628
628
  priority: number;
629
629
  metadata?: any;
630
- description?: string | null | undefined;
630
+ description?: string | null;
631
631
  conditions?: {
632
632
  categories: string[];
633
633
  tiers: string[];
634
634
  actions: string[];
635
635
  dayOfWeek: number[];
636
- minOrderAmount?: number | null | undefined;
636
+ minOrderAmount?: number | null;
637
637
  dateRange?: {
638
- start?: NativeDate | null | undefined;
639
- end?: NativeDate | null | undefined;
640
- } | null | undefined;
641
- } | null | undefined;
638
+ start?: NativeDate | null;
639
+ end?: NativeDate | null;
640
+ } | null;
641
+ } | null;
642
642
  reward?: {
643
643
  roundingMode: "floor" | "round" | "ceil";
644
- pointsPerAmount?: number | null | undefined;
645
- amountPerPoint?: number | null | undefined;
646
- fixedPoints?: number | null | undefined;
647
- multiplier?: number | null | undefined;
648
- maxPointsPerTransaction?: number | null | undefined;
649
- } | null | undefined;
650
- startsAt?: NativeDate | null | undefined;
651
- endsAt?: NativeDate | null | undefined;
644
+ pointsPerAmount?: number | null;
645
+ amountPerPoint?: number | null;
646
+ fixedPoints?: number | null;
647
+ multiplier?: number | null;
648
+ maxPointsPerTransaction?: number | null;
649
+ } | null;
650
+ startsAt?: NativeDate | null;
651
+ endsAt?: NativeDate | null;
652
652
  createdAt: NativeDate;
653
653
  updatedAt: NativeDate;
654
654
  } & {
@@ -662,28 +662,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
662
662
  status: "active" | "expired" | "paused";
663
663
  priority: number;
664
664
  metadata?: any;
665
- description?: string | null | undefined;
665
+ description?: string | null;
666
666
  conditions?: {
667
667
  categories: string[];
668
668
  tiers: string[];
669
669
  actions: string[];
670
670
  dayOfWeek: number[];
671
- minOrderAmount?: number | null | undefined;
671
+ minOrderAmount?: number | null;
672
672
  dateRange?: {
673
- start?: NativeDate | null | undefined;
674
- end?: NativeDate | null | undefined;
675
- } | null | undefined;
676
- } | null | undefined;
673
+ start?: NativeDate | null;
674
+ end?: NativeDate | null;
675
+ } | null;
676
+ } | null;
677
677
  reward?: {
678
678
  roundingMode: "floor" | "round" | "ceil";
679
- pointsPerAmount?: number | null | undefined;
680
- amountPerPoint?: number | null | undefined;
681
- fixedPoints?: number | null | undefined;
682
- multiplier?: number | null | undefined;
683
- maxPointsPerTransaction?: number | null | undefined;
684
- } | null | undefined;
685
- startsAt?: NativeDate | null | undefined;
686
- endsAt?: NativeDate | null | undefined;
679
+ pointsPerAmount?: number | null;
680
+ amountPerPoint?: number | null;
681
+ fixedPoints?: number | null;
682
+ multiplier?: number | null;
683
+ maxPointsPerTransaction?: number | null;
684
+ } | null;
685
+ startsAt?: NativeDate | null;
686
+ endsAt?: NativeDate | null;
687
687
  createdAt: NativeDate;
688
688
  updatedAt: NativeDate;
689
689
  } & {
@@ -697,21 +697,21 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
697
697
  rank: number;
698
698
  metadata?: any;
699
699
  qualificationCriteria?: {
700
- minLifetimePoints?: number | null | undefined;
701
- minLifetimeSpend?: number | null | undefined;
702
- evaluationPeriodDays?: number | null | undefined;
703
- } | null | undefined;
700
+ minLifetimePoints?: number | null;
701
+ minLifetimeSpend?: number | null;
702
+ evaluationPeriodDays?: number | null;
703
+ } | null;
704
704
  benefits?: {
705
- pointsMultiplier?: number | null | undefined;
706
- discountPercent?: number | null | undefined;
707
- freeShipping?: boolean | null | undefined;
705
+ pointsMultiplier?: number | null;
706
+ discountPercent?: number | null;
707
+ freeShipping?: boolean | null;
708
708
  customBenefits?: any;
709
- } | null | undefined;
709
+ } | null;
710
710
  downgrade?: {
711
711
  enabled: boolean;
712
712
  gracePeriodDays: number;
713
- } | null | undefined;
714
- color?: string | null | undefined;
713
+ } | null;
714
+ color?: string | null;
715
715
  } & _$mongoose.DefaultTimestampProps, {}, {}, {
716
716
  id: string;
717
717
  }, _$mongoose.Document<unknown, {}, {
@@ -720,21 +720,21 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
720
720
  rank: number;
721
721
  metadata?: any;
722
722
  qualificationCriteria?: {
723
- minLifetimePoints?: number | null | undefined;
724
- minLifetimeSpend?: number | null | undefined;
725
- evaluationPeriodDays?: number | null | undefined;
726
- } | null | undefined;
723
+ minLifetimePoints?: number | null;
724
+ minLifetimeSpend?: number | null;
725
+ evaluationPeriodDays?: number | null;
726
+ } | null;
727
727
  benefits?: {
728
- pointsMultiplier?: number | null | undefined;
729
- discountPercent?: number | null | undefined;
730
- freeShipping?: boolean | null | undefined;
728
+ pointsMultiplier?: number | null;
729
+ discountPercent?: number | null;
730
+ freeShipping?: boolean | null;
731
731
  customBenefits?: any;
732
- } | null | undefined;
732
+ } | null;
733
733
  downgrade?: {
734
734
  enabled: boolean;
735
735
  gracePeriodDays: number;
736
- } | null | undefined;
737
- color?: string | null | undefined;
736
+ } | null;
737
+ color?: string | null;
738
738
  } & _$mongoose.DefaultTimestampProps, {
739
739
  id: string;
740
740
  }, {
@@ -745,21 +745,21 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
745
745
  rank: number;
746
746
  metadata?: any;
747
747
  qualificationCriteria?: {
748
- minLifetimePoints?: number | null | undefined;
749
- minLifetimeSpend?: number | null | undefined;
750
- evaluationPeriodDays?: number | null | undefined;
751
- } | null | undefined;
748
+ minLifetimePoints?: number | null;
749
+ minLifetimeSpend?: number | null;
750
+ evaluationPeriodDays?: number | null;
751
+ } | null;
752
752
  benefits?: {
753
- pointsMultiplier?: number | null | undefined;
754
- discountPercent?: number | null | undefined;
755
- freeShipping?: boolean | null | undefined;
753
+ pointsMultiplier?: number | null;
754
+ discountPercent?: number | null;
755
+ freeShipping?: boolean | null;
756
756
  customBenefits?: any;
757
- } | null | undefined;
757
+ } | null;
758
758
  downgrade?: {
759
759
  enabled: boolean;
760
760
  gracePeriodDays: number;
761
- } | null | undefined;
762
- color?: string | null | undefined;
761
+ } | null;
762
+ color?: string | null;
763
763
  } & _$mongoose.DefaultTimestampProps & {
764
764
  _id: _$mongoose.Types.ObjectId;
765
765
  } & {
@@ -774,42 +774,42 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
774
774
  rank: number;
775
775
  metadata?: any;
776
776
  qualificationCriteria?: {
777
- minLifetimePoints?: number | null | undefined;
778
- minLifetimeSpend?: number | null | undefined;
779
- evaluationPeriodDays?: number | null | undefined;
780
- } | null | undefined;
777
+ minLifetimePoints?: number | null;
778
+ minLifetimeSpend?: number | null;
779
+ evaluationPeriodDays?: number | null;
780
+ } | null;
781
781
  benefits?: {
782
- pointsMultiplier?: number | null | undefined;
783
- discountPercent?: number | null | undefined;
784
- freeShipping?: boolean | null | undefined;
782
+ pointsMultiplier?: number | null;
783
+ discountPercent?: number | null;
784
+ freeShipping?: boolean | null;
785
785
  customBenefits?: any;
786
- } | null | undefined;
786
+ } | null;
787
787
  downgrade?: {
788
788
  enabled: boolean;
789
789
  gracePeriodDays: number;
790
- } | null | undefined;
791
- color?: string | null | undefined;
790
+ } | null;
791
+ color?: string | null;
792
792
  } & _$mongoose.DefaultTimestampProps, _$mongoose.Document<unknown, {}, {
793
793
  programId: string;
794
794
  name: string;
795
795
  rank: number;
796
796
  metadata?: any;
797
797
  qualificationCriteria?: {
798
- minLifetimePoints?: number | null | undefined;
799
- minLifetimeSpend?: number | null | undefined;
800
- evaluationPeriodDays?: number | null | undefined;
801
- } | null | undefined;
798
+ minLifetimePoints?: number | null;
799
+ minLifetimeSpend?: number | null;
800
+ evaluationPeriodDays?: number | null;
801
+ } | null;
802
802
  benefits?: {
803
- pointsMultiplier?: number | null | undefined;
804
- discountPercent?: number | null | undefined;
805
- freeShipping?: boolean | null | undefined;
803
+ pointsMultiplier?: number | null;
804
+ discountPercent?: number | null;
805
+ freeShipping?: boolean | null;
806
806
  customBenefits?: any;
807
- } | null | undefined;
807
+ } | null;
808
808
  downgrade?: {
809
809
  enabled: boolean;
810
810
  gracePeriodDays: number;
811
- } | null | undefined;
812
- color?: string | null | undefined;
811
+ } | null;
812
+ color?: string | null;
813
813
  } & _$mongoose.DefaultTimestampProps, {
814
814
  id: string;
815
815
  }, Omit<_$mongoose.DefaultSchemaOptions, "timestamps"> & {
@@ -820,21 +820,21 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
820
820
  rank: number;
821
821
  metadata?: any;
822
822
  qualificationCriteria?: {
823
- minLifetimePoints?: number | null | undefined;
824
- minLifetimeSpend?: number | null | undefined;
825
- evaluationPeriodDays?: number | null | undefined;
826
- } | null | undefined;
823
+ minLifetimePoints?: number | null;
824
+ minLifetimeSpend?: number | null;
825
+ evaluationPeriodDays?: number | null;
826
+ } | null;
827
827
  benefits?: {
828
- pointsMultiplier?: number | null | undefined;
829
- discountPercent?: number | null | undefined;
830
- freeShipping?: boolean | null | undefined;
828
+ pointsMultiplier?: number | null;
829
+ discountPercent?: number | null;
830
+ freeShipping?: boolean | null;
831
831
  customBenefits?: any;
832
- } | null | undefined;
832
+ } | null;
833
833
  downgrade?: {
834
834
  enabled: boolean;
835
835
  gracePeriodDays: number;
836
- } | null | undefined;
837
- color?: string | null | undefined;
836
+ } | null;
837
+ color?: string | null;
838
838
  } & _$mongoose.DefaultTimestampProps & {
839
839
  _id: _$mongoose.Types.ObjectId;
840
840
  } & {
@@ -847,21 +847,21 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
847
847
  rank: number;
848
848
  metadata?: any;
849
849
  qualificationCriteria?: {
850
- minLifetimePoints?: number | null | undefined;
851
- minLifetimeSpend?: number | null | undefined;
852
- evaluationPeriodDays?: number | null | undefined;
853
- } | null | undefined;
850
+ minLifetimePoints?: number | null;
851
+ minLifetimeSpend?: number | null;
852
+ evaluationPeriodDays?: number | null;
853
+ } | null;
854
854
  benefits?: {
855
- pointsMultiplier?: number | null | undefined;
856
- discountPercent?: number | null | undefined;
857
- freeShipping?: boolean | null | undefined;
855
+ pointsMultiplier?: number | null;
856
+ discountPercent?: number | null;
857
+ freeShipping?: boolean | null;
858
858
  customBenefits?: any;
859
- } | null | undefined;
859
+ } | null;
860
860
  downgrade?: {
861
861
  enabled: boolean;
862
862
  gracePeriodDays: number;
863
- } | null | undefined;
864
- color?: string | null | undefined;
863
+ } | null;
864
+ color?: string | null;
865
865
  createdAt: NativeDate;
866
866
  updatedAt: NativeDate;
867
867
  } & {
@@ -874,21 +874,21 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
874
874
  rank: number;
875
875
  metadata?: any;
876
876
  qualificationCriteria?: {
877
- minLifetimePoints?: number | null | undefined;
878
- minLifetimeSpend?: number | null | undefined;
879
- evaluationPeriodDays?: number | null | undefined;
880
- } | null | undefined;
877
+ minLifetimePoints?: number | null;
878
+ minLifetimeSpend?: number | null;
879
+ evaluationPeriodDays?: number | null;
880
+ } | null;
881
881
  benefits?: {
882
- pointsMultiplier?: number | null | undefined;
883
- discountPercent?: number | null | undefined;
884
- freeShipping?: boolean | null | undefined;
882
+ pointsMultiplier?: number | null;
883
+ discountPercent?: number | null;
884
+ freeShipping?: boolean | null;
885
885
  customBenefits?: any;
886
- } | null | undefined;
886
+ } | null;
887
887
  downgrade?: {
888
888
  enabled: boolean;
889
889
  gracePeriodDays: number;
890
- } | null | undefined;
891
- color?: string | null | undefined;
890
+ } | null;
891
+ color?: string | null;
892
892
  createdAt: NativeDate;
893
893
  updatedAt: NativeDate;
894
894
  } & {
@@ -906,18 +906,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
906
906
  conversionRate: number;
907
907
  ownerType: string;
908
908
  ownerId: string;
909
- expiresAt?: NativeDate | null | undefined;
909
+ expiresAt?: NativeDate | null;
910
910
  approvals?: any;
911
- approvalPolicyId?: string | null | undefined;
912
- approvalPolicyVersion?: number | null | undefined;
913
- confirmedAt?: NativeDate | null | undefined;
914
- releasedAt?: NativeDate | null | undefined;
915
- reversedAt?: NativeDate | null | undefined;
916
- reversalReason?: string | null | undefined;
917
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
918
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
919
- initialBalance?: number | null | undefined;
920
- remainingBalance?: number | null | undefined;
911
+ approvalPolicyId?: string | null;
912
+ approvalPolicyVersion?: number | null;
913
+ confirmedAt?: NativeDate | null;
914
+ releasedAt?: NativeDate | null;
915
+ reversedAt?: NativeDate | null;
916
+ reversalReason?: string | null;
917
+ reversalTransactionId?: _$mongoose.Types.ObjectId | null;
918
+ transactionId?: _$mongoose.Types.ObjectId | null;
919
+ initialBalance?: number | null;
920
+ remainingBalance?: number | null;
921
921
  } & _$mongoose.DefaultTimestampProps, {}, {}, {
922
922
  id: string;
923
923
  }, _$mongoose.Document<unknown, {}, {
@@ -930,18 +930,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
930
930
  conversionRate: number;
931
931
  ownerType: string;
932
932
  ownerId: string;
933
- expiresAt?: NativeDate | null | undefined;
933
+ expiresAt?: NativeDate | null;
934
934
  approvals?: any;
935
- approvalPolicyId?: string | null | undefined;
936
- approvalPolicyVersion?: number | null | undefined;
937
- confirmedAt?: NativeDate | null | undefined;
938
- releasedAt?: NativeDate | null | undefined;
939
- reversedAt?: NativeDate | null | undefined;
940
- reversalReason?: string | null | undefined;
941
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
942
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
943
- initialBalance?: number | null | undefined;
944
- remainingBalance?: number | null | undefined;
935
+ approvalPolicyId?: string | null;
936
+ approvalPolicyVersion?: number | null;
937
+ confirmedAt?: NativeDate | null;
938
+ releasedAt?: NativeDate | null;
939
+ reversedAt?: NativeDate | null;
940
+ reversalReason?: string | null;
941
+ reversalTransactionId?: _$mongoose.Types.ObjectId | null;
942
+ transactionId?: _$mongoose.Types.ObjectId | null;
943
+ initialBalance?: number | null;
944
+ remainingBalance?: number | null;
945
945
  } & _$mongoose.DefaultTimestampProps, {
946
946
  id: string;
947
947
  }, {
@@ -956,18 +956,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
956
956
  conversionRate: number;
957
957
  ownerType: string;
958
958
  ownerId: string;
959
- expiresAt?: NativeDate | null | undefined;
959
+ expiresAt?: NativeDate | null;
960
960
  approvals?: any;
961
- approvalPolicyId?: string | null | undefined;
962
- approvalPolicyVersion?: number | null | undefined;
963
- confirmedAt?: NativeDate | null | undefined;
964
- releasedAt?: NativeDate | null | undefined;
965
- reversedAt?: NativeDate | null | undefined;
966
- reversalReason?: string | null | undefined;
967
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
968
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
969
- initialBalance?: number | null | undefined;
970
- remainingBalance?: number | null | undefined;
961
+ approvalPolicyId?: string | null;
962
+ approvalPolicyVersion?: number | null;
963
+ confirmedAt?: NativeDate | null;
964
+ releasedAt?: NativeDate | null;
965
+ reversedAt?: NativeDate | null;
966
+ reversalReason?: string | null;
967
+ reversalTransactionId?: _$mongoose.Types.ObjectId | null;
968
+ transactionId?: _$mongoose.Types.ObjectId | null;
969
+ initialBalance?: number | null;
970
+ remainingBalance?: number | null;
971
971
  } & _$mongoose.DefaultTimestampProps & {
972
972
  _id: _$mongoose.Types.ObjectId;
973
973
  } & {
@@ -986,18 +986,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
986
986
  conversionRate: number;
987
987
  ownerType: string;
988
988
  ownerId: string;
989
- expiresAt?: NativeDate | null | undefined;
989
+ expiresAt?: NativeDate | null;
990
990
  approvals?: any;
991
- approvalPolicyId?: string | null | undefined;
992
- approvalPolicyVersion?: number | null | undefined;
993
- confirmedAt?: NativeDate | null | undefined;
994
- releasedAt?: NativeDate | null | undefined;
995
- reversedAt?: NativeDate | null | undefined;
996
- reversalReason?: string | null | undefined;
997
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
998
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
999
- initialBalance?: number | null | undefined;
1000
- remainingBalance?: number | null | undefined;
991
+ approvalPolicyId?: string | null;
992
+ approvalPolicyVersion?: number | null;
993
+ confirmedAt?: NativeDate | null;
994
+ releasedAt?: NativeDate | null;
995
+ reversedAt?: NativeDate | null;
996
+ reversalReason?: string | null;
997
+ reversalTransactionId?: _$mongoose.Types.ObjectId | null;
998
+ transactionId?: _$mongoose.Types.ObjectId | null;
999
+ initialBalance?: number | null;
1000
+ remainingBalance?: number | null;
1001
1001
  } & _$mongoose.DefaultTimestampProps, _$mongoose.Document<unknown, {}, {
1002
1002
  programId: string;
1003
1003
  status: "expired" | "reserved" | "confirmed" | "released" | "reversed";
@@ -1008,18 +1008,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1008
1008
  conversionRate: number;
1009
1009
  ownerType: string;
1010
1010
  ownerId: string;
1011
- expiresAt?: NativeDate | null | undefined;
1011
+ expiresAt?: NativeDate | null;
1012
1012
  approvals?: any;
1013
- approvalPolicyId?: string | null | undefined;
1014
- approvalPolicyVersion?: number | null | undefined;
1015
- confirmedAt?: NativeDate | null | undefined;
1016
- releasedAt?: NativeDate | null | undefined;
1017
- reversedAt?: NativeDate | null | undefined;
1018
- reversalReason?: string | null | undefined;
1019
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1020
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
1021
- initialBalance?: number | null | undefined;
1022
- remainingBalance?: number | null | undefined;
1013
+ approvalPolicyId?: string | null;
1014
+ approvalPolicyVersion?: number | null;
1015
+ confirmedAt?: NativeDate | null;
1016
+ releasedAt?: NativeDate | null;
1017
+ reversedAt?: NativeDate | null;
1018
+ reversalReason?: string | null;
1019
+ reversalTransactionId?: _$mongoose.Types.ObjectId | null;
1020
+ transactionId?: _$mongoose.Types.ObjectId | null;
1021
+ initialBalance?: number | null;
1022
+ remainingBalance?: number | null;
1023
1023
  } & _$mongoose.DefaultTimestampProps, {
1024
1024
  id: string;
1025
1025
  }, Omit<_$mongoose.DefaultSchemaOptions, "timestamps"> & {
@@ -1034,18 +1034,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1034
1034
  conversionRate: number;
1035
1035
  ownerType: string;
1036
1036
  ownerId: string;
1037
- expiresAt?: NativeDate | null | undefined;
1037
+ expiresAt?: NativeDate | null;
1038
1038
  approvals?: any;
1039
- approvalPolicyId?: string | null | undefined;
1040
- approvalPolicyVersion?: number | null | undefined;
1041
- confirmedAt?: NativeDate | null | undefined;
1042
- releasedAt?: NativeDate | null | undefined;
1043
- reversedAt?: NativeDate | null | undefined;
1044
- reversalReason?: string | null | undefined;
1045
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1046
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
1047
- initialBalance?: number | null | undefined;
1048
- remainingBalance?: number | null | undefined;
1039
+ approvalPolicyId?: string | null;
1040
+ approvalPolicyVersion?: number | null;
1041
+ confirmedAt?: NativeDate | null;
1042
+ releasedAt?: NativeDate | null;
1043
+ reversedAt?: NativeDate | null;
1044
+ reversalReason?: string | null;
1045
+ reversalTransactionId?: _$mongoose.Types.ObjectId | null;
1046
+ transactionId?: _$mongoose.Types.ObjectId | null;
1047
+ initialBalance?: number | null;
1048
+ remainingBalance?: number | null;
1049
1049
  } & _$mongoose.DefaultTimestampProps & {
1050
1050
  _id: _$mongoose.Types.ObjectId;
1051
1051
  } & {
@@ -1062,18 +1062,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1062
1062
  conversionRate: number;
1063
1063
  ownerType: string;
1064
1064
  ownerId: string;
1065
- expiresAt?: NativeDate | null | undefined;
1065
+ expiresAt?: NativeDate | null;
1066
1066
  approvals?: any;
1067
- approvalPolicyId?: string | null | undefined;
1068
- approvalPolicyVersion?: number | null | undefined;
1069
- confirmedAt?: NativeDate | null | undefined;
1070
- releasedAt?: NativeDate | null | undefined;
1071
- reversedAt?: NativeDate | null | undefined;
1072
- reversalReason?: string | null | undefined;
1073
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1074
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
1075
- initialBalance?: number | null | undefined;
1076
- remainingBalance?: number | null | undefined;
1067
+ approvalPolicyId?: string | null;
1068
+ approvalPolicyVersion?: number | null;
1069
+ confirmedAt?: NativeDate | null;
1070
+ releasedAt?: NativeDate | null;
1071
+ reversedAt?: NativeDate | null;
1072
+ reversalReason?: string | null;
1073
+ reversalTransactionId?: _$mongoose.Types.ObjectId | null;
1074
+ transactionId?: _$mongoose.Types.ObjectId | null;
1075
+ initialBalance?: number | null;
1076
+ remainingBalance?: number | null;
1077
1077
  createdAt: NativeDate;
1078
1078
  updatedAt: NativeDate;
1079
1079
  } & {
@@ -1090,18 +1090,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1090
1090
  conversionRate: number;
1091
1091
  ownerType: string;
1092
1092
  ownerId: string;
1093
- expiresAt?: NativeDate | null | undefined;
1093
+ expiresAt?: NativeDate | null;
1094
1094
  approvals?: any;
1095
- approvalPolicyId?: string | null | undefined;
1096
- approvalPolicyVersion?: number | null | undefined;
1097
- confirmedAt?: NativeDate | null | undefined;
1098
- releasedAt?: NativeDate | null | undefined;
1099
- reversedAt?: NativeDate | null | undefined;
1100
- reversalReason?: string | null | undefined;
1101
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1102
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
1103
- initialBalance?: number | null | undefined;
1104
- remainingBalance?: number | null | undefined;
1095
+ approvalPolicyId?: string | null;
1096
+ approvalPolicyVersion?: number | null;
1097
+ confirmedAt?: NativeDate | null;
1098
+ releasedAt?: NativeDate | null;
1099
+ reversedAt?: NativeDate | null;
1100
+ reversalReason?: string | null;
1101
+ reversalTransactionId?: _$mongoose.Types.ObjectId | null;
1102
+ transactionId?: _$mongoose.Types.ObjectId | null;
1103
+ initialBalance?: number | null;
1104
+ remainingBalance?: number | null;
1105
1105
  createdAt: NativeDate;
1106
1106
  updatedAt: NativeDate;
1107
1107
  } & {
@@ -1116,14 +1116,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1116
1116
  referrerId: _$mongoose.Types.ObjectId;
1117
1117
  refereeId: _$mongoose.Types.ObjectId;
1118
1118
  metadata?: any;
1119
- expiresAt?: NativeDate | null | undefined;
1120
- referrerRewardPoints?: number | null | undefined;
1121
- refereeRewardPoints?: number | null | undefined;
1122
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1123
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1124
- approvedAt?: NativeDate | null | undefined;
1125
- rejectedAt?: NativeDate | null | undefined;
1126
- rejectionReason?: string | null | undefined;
1119
+ expiresAt?: NativeDate | null;
1120
+ referrerRewardPoints?: number | null;
1121
+ refereeRewardPoints?: number | null;
1122
+ referrerTransactionId?: _$mongoose.Types.ObjectId | null;
1123
+ refereeTransactionId?: _$mongoose.Types.ObjectId | null;
1124
+ approvedAt?: NativeDate | null;
1125
+ rejectedAt?: NativeDate | null;
1126
+ rejectionReason?: string | null;
1127
1127
  } & _$mongoose.DefaultTimestampProps, {}, {}, {
1128
1128
  id: string;
1129
1129
  }, _$mongoose.Document<unknown, {}, {
@@ -1133,14 +1133,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1133
1133
  referrerId: _$mongoose.Types.ObjectId;
1134
1134
  refereeId: _$mongoose.Types.ObjectId;
1135
1135
  metadata?: any;
1136
- expiresAt?: NativeDate | null | undefined;
1137
- referrerRewardPoints?: number | null | undefined;
1138
- refereeRewardPoints?: number | null | undefined;
1139
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1140
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1141
- approvedAt?: NativeDate | null | undefined;
1142
- rejectedAt?: NativeDate | null | undefined;
1143
- rejectionReason?: string | null | undefined;
1136
+ expiresAt?: NativeDate | null;
1137
+ referrerRewardPoints?: number | null;
1138
+ refereeRewardPoints?: number | null;
1139
+ referrerTransactionId?: _$mongoose.Types.ObjectId | null;
1140
+ refereeTransactionId?: _$mongoose.Types.ObjectId | null;
1141
+ approvedAt?: NativeDate | null;
1142
+ rejectedAt?: NativeDate | null;
1143
+ rejectionReason?: string | null;
1144
1144
  } & _$mongoose.DefaultTimestampProps, {
1145
1145
  id: string;
1146
1146
  }, {
@@ -1152,14 +1152,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1152
1152
  referrerId: _$mongoose.Types.ObjectId;
1153
1153
  refereeId: _$mongoose.Types.ObjectId;
1154
1154
  metadata?: any;
1155
- expiresAt?: NativeDate | null | undefined;
1156
- referrerRewardPoints?: number | null | undefined;
1157
- refereeRewardPoints?: number | null | undefined;
1158
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1159
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1160
- approvedAt?: NativeDate | null | undefined;
1161
- rejectedAt?: NativeDate | null | undefined;
1162
- rejectionReason?: string | null | undefined;
1155
+ expiresAt?: NativeDate | null;
1156
+ referrerRewardPoints?: number | null;
1157
+ refereeRewardPoints?: number | null;
1158
+ referrerTransactionId?: _$mongoose.Types.ObjectId | null;
1159
+ refereeTransactionId?: _$mongoose.Types.ObjectId | null;
1160
+ approvedAt?: NativeDate | null;
1161
+ rejectedAt?: NativeDate | null;
1162
+ rejectionReason?: string | null;
1163
1163
  } & _$mongoose.DefaultTimestampProps & {
1164
1164
  _id: _$mongoose.Types.ObjectId;
1165
1165
  } & {
@@ -1175,14 +1175,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1175
1175
  referrerId: _$mongoose.Types.ObjectId;
1176
1176
  refereeId: _$mongoose.Types.ObjectId;
1177
1177
  metadata?: any;
1178
- expiresAt?: NativeDate | null | undefined;
1179
- referrerRewardPoints?: number | null | undefined;
1180
- refereeRewardPoints?: number | null | undefined;
1181
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1182
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1183
- approvedAt?: NativeDate | null | undefined;
1184
- rejectedAt?: NativeDate | null | undefined;
1185
- rejectionReason?: string | null | undefined;
1178
+ expiresAt?: NativeDate | null;
1179
+ referrerRewardPoints?: number | null;
1180
+ refereeRewardPoints?: number | null;
1181
+ referrerTransactionId?: _$mongoose.Types.ObjectId | null;
1182
+ refereeTransactionId?: _$mongoose.Types.ObjectId | null;
1183
+ approvedAt?: NativeDate | null;
1184
+ rejectedAt?: NativeDate | null;
1185
+ rejectionReason?: string | null;
1186
1186
  } & _$mongoose.DefaultTimestampProps, _$mongoose.Document<unknown, {}, {
1187
1187
  programId: string;
1188
1188
  status: "expired" | "pending" | "approved" | "rejected";
@@ -1190,14 +1190,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1190
1190
  referrerId: _$mongoose.Types.ObjectId;
1191
1191
  refereeId: _$mongoose.Types.ObjectId;
1192
1192
  metadata?: any;
1193
- expiresAt?: NativeDate | null | undefined;
1194
- referrerRewardPoints?: number | null | undefined;
1195
- refereeRewardPoints?: number | null | undefined;
1196
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1197
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1198
- approvedAt?: NativeDate | null | undefined;
1199
- rejectedAt?: NativeDate | null | undefined;
1200
- rejectionReason?: string | null | undefined;
1193
+ expiresAt?: NativeDate | null;
1194
+ referrerRewardPoints?: number | null;
1195
+ refereeRewardPoints?: number | null;
1196
+ referrerTransactionId?: _$mongoose.Types.ObjectId | null;
1197
+ refereeTransactionId?: _$mongoose.Types.ObjectId | null;
1198
+ approvedAt?: NativeDate | null;
1199
+ rejectedAt?: NativeDate | null;
1200
+ rejectionReason?: string | null;
1201
1201
  } & _$mongoose.DefaultTimestampProps, {
1202
1202
  id: string;
1203
1203
  }, Omit<_$mongoose.DefaultSchemaOptions, "timestamps"> & {
@@ -1209,14 +1209,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1209
1209
  referrerId: _$mongoose.Types.ObjectId;
1210
1210
  refereeId: _$mongoose.Types.ObjectId;
1211
1211
  metadata?: any;
1212
- expiresAt?: NativeDate | null | undefined;
1213
- referrerRewardPoints?: number | null | undefined;
1214
- refereeRewardPoints?: number | null | undefined;
1215
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1216
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1217
- approvedAt?: NativeDate | null | undefined;
1218
- rejectedAt?: NativeDate | null | undefined;
1219
- rejectionReason?: string | null | undefined;
1212
+ expiresAt?: NativeDate | null;
1213
+ referrerRewardPoints?: number | null;
1214
+ refereeRewardPoints?: number | null;
1215
+ referrerTransactionId?: _$mongoose.Types.ObjectId | null;
1216
+ refereeTransactionId?: _$mongoose.Types.ObjectId | null;
1217
+ approvedAt?: NativeDate | null;
1218
+ rejectedAt?: NativeDate | null;
1219
+ rejectionReason?: string | null;
1220
1220
  } & _$mongoose.DefaultTimestampProps & {
1221
1221
  _id: _$mongoose.Types.ObjectId;
1222
1222
  } & {
@@ -1230,14 +1230,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1230
1230
  referrerId: _$mongoose.Types.ObjectId;
1231
1231
  refereeId: _$mongoose.Types.ObjectId;
1232
1232
  metadata?: any;
1233
- expiresAt?: NativeDate | null | undefined;
1234
- referrerRewardPoints?: number | null | undefined;
1235
- refereeRewardPoints?: number | null | undefined;
1236
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1237
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1238
- approvedAt?: NativeDate | null | undefined;
1239
- rejectedAt?: NativeDate | null | undefined;
1240
- rejectionReason?: string | null | undefined;
1233
+ expiresAt?: NativeDate | null;
1234
+ referrerRewardPoints?: number | null;
1235
+ refereeRewardPoints?: number | null;
1236
+ referrerTransactionId?: _$mongoose.Types.ObjectId | null;
1237
+ refereeTransactionId?: _$mongoose.Types.ObjectId | null;
1238
+ approvedAt?: NativeDate | null;
1239
+ rejectedAt?: NativeDate | null;
1240
+ rejectionReason?: string | null;
1241
1241
  createdAt: NativeDate;
1242
1242
  updatedAt: NativeDate;
1243
1243
  } & {
@@ -1251,14 +1251,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1251
1251
  referrerId: _$mongoose.Types.ObjectId;
1252
1252
  refereeId: _$mongoose.Types.ObjectId;
1253
1253
  metadata?: any;
1254
- expiresAt?: NativeDate | null | undefined;
1255
- referrerRewardPoints?: number | null | undefined;
1256
- refereeRewardPoints?: number | null | undefined;
1257
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1258
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1259
- approvedAt?: NativeDate | null | undefined;
1260
- rejectedAt?: NativeDate | null | undefined;
1261
- rejectionReason?: string | null | undefined;
1254
+ expiresAt?: NativeDate | null;
1255
+ referrerRewardPoints?: number | null;
1256
+ refereeRewardPoints?: number | null;
1257
+ referrerTransactionId?: _$mongoose.Types.ObjectId | null;
1258
+ refereeTransactionId?: _$mongoose.Types.ObjectId | null;
1259
+ approvedAt?: NativeDate | null;
1260
+ rejectedAt?: NativeDate | null;
1261
+ rejectionReason?: string | null;
1262
1262
  createdAt: NativeDate;
1263
1263
  updatedAt: NativeDate;
1264
1264
  } & {