@classytic/loyalty 0.2.2 → 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,12 +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
+ approvals?: any;
247
+ approvalPolicyId?: string | null;
248
+ approvalPolicyVersion?: number | null;
246
249
  createdAt: NativeDate;
247
250
  }, {}, {}, {
248
251
  id: string;
@@ -255,12 +258,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
255
258
  balanceAfter: number;
256
259
  actorId: string;
257
260
  metadata?: any;
258
- referenceType?: string | null | undefined;
259
- referenceId?: string | null | undefined;
260
- idempotencyKey?: string | null | undefined;
261
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
262
- expiresAt?: NativeDate | null | undefined;
263
- 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
+ approvals?: any;
268
+ approvalPolicyId?: string | null;
269
+ approvalPolicyVersion?: number | null;
264
270
  createdAt: NativeDate;
265
271
  }, {
266
272
  id: string;
@@ -278,12 +284,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
278
284
  balanceAfter: number;
279
285
  actorId: string;
280
286
  metadata?: any;
281
- referenceType?: string | null | undefined;
282
- referenceId?: string | null | undefined;
283
- idempotencyKey?: string | null | undefined;
284
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
285
- expiresAt?: NativeDate | null | undefined;
286
- 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
+ approvals?: any;
294
+ approvalPolicyId?: string | null;
295
+ approvalPolicyVersion?: number | null;
287
296
  createdAt: NativeDate;
288
297
  } & {
289
298
  _id: _$mongoose.Types.ObjectId;
@@ -305,12 +314,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
305
314
  balanceAfter: number;
306
315
  actorId: string;
307
316
  metadata?: any;
308
- referenceType?: string | null | undefined;
309
- referenceId?: string | null | undefined;
310
- idempotencyKey?: string | null | undefined;
311
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
312
- expiresAt?: NativeDate | null | undefined;
313
- 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
+ approvals?: any;
324
+ approvalPolicyId?: string | null;
325
+ approvalPolicyVersion?: number | null;
314
326
  createdAt: NativeDate;
315
327
  }, _$mongoose.Document<unknown, {}, {
316
328
  programId: string;
@@ -321,12 +333,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
321
333
  balanceAfter: number;
322
334
  actorId: string;
323
335
  metadata?: any;
324
- referenceType?: string | null | undefined;
325
- referenceId?: string | null | undefined;
326
- idempotencyKey?: string | null | undefined;
327
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
328
- expiresAt?: NativeDate | null | undefined;
329
- 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
+ approvals?: any;
343
+ approvalPolicyId?: string | null;
344
+ approvalPolicyVersion?: number | null;
330
345
  createdAt: NativeDate;
331
346
  }, {
332
347
  id: string;
@@ -344,12 +359,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
344
359
  balanceAfter: number;
345
360
  actorId: string;
346
361
  metadata?: any;
347
- referenceType?: string | null | undefined;
348
- referenceId?: string | null | undefined;
349
- idempotencyKey?: string | null | undefined;
350
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
351
- expiresAt?: NativeDate | null | undefined;
352
- 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
+ approvals?: any;
369
+ approvalPolicyId?: string | null;
370
+ approvalPolicyVersion?: number | null;
353
371
  createdAt: NativeDate;
354
372
  } & {
355
373
  _id: _$mongoose.Types.ObjectId;
@@ -366,12 +384,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
366
384
  balanceAfter: number;
367
385
  actorId: string;
368
386
  metadata?: any;
369
- referenceType?: string | null | undefined;
370
- referenceId?: string | null | undefined;
371
- idempotencyKey?: string | null | undefined;
372
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
373
- expiresAt?: NativeDate | null | undefined;
374
- 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
+ approvals?: any;
394
+ approvalPolicyId?: string | null;
395
+ approvalPolicyVersion?: number | null;
375
396
  createdAt: NativeDate;
376
397
  } & {
377
398
  _id: _$mongoose.Types.ObjectId;
@@ -386,12 +407,15 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
386
407
  balanceAfter: number;
387
408
  actorId: string;
388
409
  metadata?: any;
389
- referenceType?: string | null | undefined;
390
- referenceId?: string | null | undefined;
391
- idempotencyKey?: string | null | undefined;
392
- earningRuleId?: _$mongoose.Types.ObjectId | null | undefined;
393
- expiresAt?: NativeDate | null | undefined;
394
- 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
+ approvals?: any;
417
+ approvalPolicyId?: string | null;
418
+ approvalPolicyVersion?: number | null;
395
419
  createdAt: NativeDate;
396
420
  } & {
397
421
  _id: _$mongoose.Types.ObjectId;
@@ -405,28 +429,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
405
429
  status: "active" | "expired" | "paused";
406
430
  priority: number;
407
431
  metadata?: any;
408
- description?: string | null | undefined;
432
+ description?: string | null;
409
433
  conditions?: {
410
434
  categories: string[];
411
435
  tiers: string[];
412
436
  actions: string[];
413
437
  dayOfWeek: number[];
414
- minOrderAmount?: number | null | undefined;
438
+ minOrderAmount?: number | null;
415
439
  dateRange?: {
416
- start?: NativeDate | null | undefined;
417
- end?: NativeDate | null | undefined;
418
- } | null | undefined;
419
- } | null | undefined;
440
+ start?: NativeDate | null;
441
+ end?: NativeDate | null;
442
+ } | null;
443
+ } | null;
420
444
  reward?: {
421
445
  roundingMode: "floor" | "round" | "ceil";
422
- pointsPerAmount?: number | null | undefined;
423
- amountPerPoint?: number | null | undefined;
424
- fixedPoints?: number | null | undefined;
425
- multiplier?: number | null | undefined;
426
- maxPointsPerTransaction?: number | null | undefined;
427
- } | null | undefined;
428
- startsAt?: NativeDate | null | undefined;
429
- 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;
430
454
  } & _$mongoose.DefaultTimestampProps, {}, {}, {
431
455
  id: string;
432
456
  }, _$mongoose.Document<unknown, {}, {
@@ -436,28 +460,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
436
460
  status: "active" | "expired" | "paused";
437
461
  priority: number;
438
462
  metadata?: any;
439
- description?: string | null | undefined;
463
+ description?: string | null;
440
464
  conditions?: {
441
465
  categories: string[];
442
466
  tiers: string[];
443
467
  actions: string[];
444
468
  dayOfWeek: number[];
445
- minOrderAmount?: number | null | undefined;
469
+ minOrderAmount?: number | null;
446
470
  dateRange?: {
447
- start?: NativeDate | null | undefined;
448
- end?: NativeDate | null | undefined;
449
- } | null | undefined;
450
- } | null | undefined;
471
+ start?: NativeDate | null;
472
+ end?: NativeDate | null;
473
+ } | null;
474
+ } | null;
451
475
  reward?: {
452
476
  roundingMode: "floor" | "round" | "ceil";
453
- pointsPerAmount?: number | null | undefined;
454
- amountPerPoint?: number | null | undefined;
455
- fixedPoints?: number | null | undefined;
456
- multiplier?: number | null | undefined;
457
- maxPointsPerTransaction?: number | null | undefined;
458
- } | null | undefined;
459
- startsAt?: NativeDate | null | undefined;
460
- 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;
461
485
  } & _$mongoose.DefaultTimestampProps, {
462
486
  id: string;
463
487
  }, {
@@ -469,28 +493,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
469
493
  status: "active" | "expired" | "paused";
470
494
  priority: number;
471
495
  metadata?: any;
472
- description?: string | null | undefined;
496
+ description?: string | null;
473
497
  conditions?: {
474
498
  categories: string[];
475
499
  tiers: string[];
476
500
  actions: string[];
477
501
  dayOfWeek: number[];
478
- minOrderAmount?: number | null | undefined;
502
+ minOrderAmount?: number | null;
479
503
  dateRange?: {
480
- start?: NativeDate | null | undefined;
481
- end?: NativeDate | null | undefined;
482
- } | null | undefined;
483
- } | null | undefined;
504
+ start?: NativeDate | null;
505
+ end?: NativeDate | null;
506
+ } | null;
507
+ } | null;
484
508
  reward?: {
485
509
  roundingMode: "floor" | "round" | "ceil";
486
- pointsPerAmount?: number | null | undefined;
487
- amountPerPoint?: number | null | undefined;
488
- fixedPoints?: number | null | undefined;
489
- multiplier?: number | null | undefined;
490
- maxPointsPerTransaction?: number | null | undefined;
491
- } | null | undefined;
492
- startsAt?: NativeDate | null | undefined;
493
- 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;
494
518
  } & _$mongoose.DefaultTimestampProps & {
495
519
  _id: _$mongoose.Types.ObjectId;
496
520
  } & {
@@ -506,28 +530,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
506
530
  status: "active" | "expired" | "paused";
507
531
  priority: number;
508
532
  metadata?: any;
509
- description?: string | null | undefined;
533
+ description?: string | null;
510
534
  conditions?: {
511
535
  categories: string[];
512
536
  tiers: string[];
513
537
  actions: string[];
514
538
  dayOfWeek: number[];
515
- minOrderAmount?: number | null | undefined;
539
+ minOrderAmount?: number | null;
516
540
  dateRange?: {
517
- start?: NativeDate | null | undefined;
518
- end?: NativeDate | null | undefined;
519
- } | null | undefined;
520
- } | null | undefined;
541
+ start?: NativeDate | null;
542
+ end?: NativeDate | null;
543
+ } | null;
544
+ } | null;
521
545
  reward?: {
522
546
  roundingMode: "floor" | "round" | "ceil";
523
- pointsPerAmount?: number | null | undefined;
524
- amountPerPoint?: number | null | undefined;
525
- fixedPoints?: number | null | undefined;
526
- multiplier?: number | null | undefined;
527
- maxPointsPerTransaction?: number | null | undefined;
528
- } | null | undefined;
529
- startsAt?: NativeDate | null | undefined;
530
- 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;
531
555
  } & _$mongoose.DefaultTimestampProps, _$mongoose.Document<unknown, {}, {
532
556
  programId: string;
533
557
  type: "order" | "action" | "category" | "tier_bonus";
@@ -535,28 +559,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
535
559
  status: "active" | "expired" | "paused";
536
560
  priority: number;
537
561
  metadata?: any;
538
- description?: string | null | undefined;
562
+ description?: string | null;
539
563
  conditions?: {
540
564
  categories: string[];
541
565
  tiers: string[];
542
566
  actions: string[];
543
567
  dayOfWeek: number[];
544
- minOrderAmount?: number | null | undefined;
568
+ minOrderAmount?: number | null;
545
569
  dateRange?: {
546
- start?: NativeDate | null | undefined;
547
- end?: NativeDate | null | undefined;
548
- } | null | undefined;
549
- } | null | undefined;
570
+ start?: NativeDate | null;
571
+ end?: NativeDate | null;
572
+ } | null;
573
+ } | null;
550
574
  reward?: {
551
575
  roundingMode: "floor" | "round" | "ceil";
552
- pointsPerAmount?: number | null | undefined;
553
- amountPerPoint?: number | null | undefined;
554
- fixedPoints?: number | null | undefined;
555
- multiplier?: number | null | undefined;
556
- maxPointsPerTransaction?: number | null | undefined;
557
- } | null | undefined;
558
- startsAt?: NativeDate | null | undefined;
559
- 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;
560
584
  } & _$mongoose.DefaultTimestampProps, {
561
585
  id: string;
562
586
  }, Omit<_$mongoose.DefaultSchemaOptions, "timestamps"> & {
@@ -568,28 +592,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
568
592
  status: "active" | "expired" | "paused";
569
593
  priority: number;
570
594
  metadata?: any;
571
- description?: string | null | undefined;
595
+ description?: string | null;
572
596
  conditions?: {
573
597
  categories: string[];
574
598
  tiers: string[];
575
599
  actions: string[];
576
600
  dayOfWeek: number[];
577
- minOrderAmount?: number | null | undefined;
601
+ minOrderAmount?: number | null;
578
602
  dateRange?: {
579
- start?: NativeDate | null | undefined;
580
- end?: NativeDate | null | undefined;
581
- } | null | undefined;
582
- } | null | undefined;
603
+ start?: NativeDate | null;
604
+ end?: NativeDate | null;
605
+ } | null;
606
+ } | null;
583
607
  reward?: {
584
608
  roundingMode: "floor" | "round" | "ceil";
585
- pointsPerAmount?: number | null | undefined;
586
- amountPerPoint?: number | null | undefined;
587
- fixedPoints?: number | null | undefined;
588
- multiplier?: number | null | undefined;
589
- maxPointsPerTransaction?: number | null | undefined;
590
- } | null | undefined;
591
- startsAt?: NativeDate | null | undefined;
592
- 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;
593
617
  } & _$mongoose.DefaultTimestampProps & {
594
618
  _id: _$mongoose.Types.ObjectId;
595
619
  } & {
@@ -603,28 +627,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
603
627
  status: "active" | "expired" | "paused";
604
628
  priority: number;
605
629
  metadata?: any;
606
- description?: string | null | undefined;
630
+ description?: string | null;
607
631
  conditions?: {
608
632
  categories: string[];
609
633
  tiers: string[];
610
634
  actions: string[];
611
635
  dayOfWeek: number[];
612
- minOrderAmount?: number | null | undefined;
636
+ minOrderAmount?: number | null;
613
637
  dateRange?: {
614
- start?: NativeDate | null | undefined;
615
- end?: NativeDate | null | undefined;
616
- } | null | undefined;
617
- } | null | undefined;
638
+ start?: NativeDate | null;
639
+ end?: NativeDate | null;
640
+ } | null;
641
+ } | null;
618
642
  reward?: {
619
643
  roundingMode: "floor" | "round" | "ceil";
620
- pointsPerAmount?: number | null | undefined;
621
- amountPerPoint?: number | null | undefined;
622
- fixedPoints?: number | null | undefined;
623
- multiplier?: number | null | undefined;
624
- maxPointsPerTransaction?: number | null | undefined;
625
- } | null | undefined;
626
- startsAt?: NativeDate | null | undefined;
627
- 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;
628
652
  createdAt: NativeDate;
629
653
  updatedAt: NativeDate;
630
654
  } & {
@@ -638,28 +662,28 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
638
662
  status: "active" | "expired" | "paused";
639
663
  priority: number;
640
664
  metadata?: any;
641
- description?: string | null | undefined;
665
+ description?: string | null;
642
666
  conditions?: {
643
667
  categories: string[];
644
668
  tiers: string[];
645
669
  actions: string[];
646
670
  dayOfWeek: number[];
647
- minOrderAmount?: number | null | undefined;
671
+ minOrderAmount?: number | null;
648
672
  dateRange?: {
649
- start?: NativeDate | null | undefined;
650
- end?: NativeDate | null | undefined;
651
- } | null | undefined;
652
- } | null | undefined;
673
+ start?: NativeDate | null;
674
+ end?: NativeDate | null;
675
+ } | null;
676
+ } | null;
653
677
  reward?: {
654
678
  roundingMode: "floor" | "round" | "ceil";
655
- pointsPerAmount?: number | null | undefined;
656
- amountPerPoint?: number | null | undefined;
657
- fixedPoints?: number | null | undefined;
658
- multiplier?: number | null | undefined;
659
- maxPointsPerTransaction?: number | null | undefined;
660
- } | null | undefined;
661
- startsAt?: NativeDate | null | undefined;
662
- 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;
663
687
  createdAt: NativeDate;
664
688
  updatedAt: NativeDate;
665
689
  } & {
@@ -673,21 +697,21 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
673
697
  rank: number;
674
698
  metadata?: any;
675
699
  qualificationCriteria?: {
676
- minLifetimePoints?: number | null | undefined;
677
- minLifetimeSpend?: number | null | undefined;
678
- evaluationPeriodDays?: number | null | undefined;
679
- } | null | undefined;
700
+ minLifetimePoints?: number | null;
701
+ minLifetimeSpend?: number | null;
702
+ evaluationPeriodDays?: number | null;
703
+ } | null;
680
704
  benefits?: {
681
- pointsMultiplier?: number | null | undefined;
682
- discountPercent?: number | null | undefined;
683
- freeShipping?: boolean | null | undefined;
705
+ pointsMultiplier?: number | null;
706
+ discountPercent?: number | null;
707
+ freeShipping?: boolean | null;
684
708
  customBenefits?: any;
685
- } | null | undefined;
709
+ } | null;
686
710
  downgrade?: {
687
711
  enabled: boolean;
688
712
  gracePeriodDays: number;
689
- } | null | undefined;
690
- color?: string | null | undefined;
713
+ } | null;
714
+ color?: string | null;
691
715
  } & _$mongoose.DefaultTimestampProps, {}, {}, {
692
716
  id: string;
693
717
  }, _$mongoose.Document<unknown, {}, {
@@ -696,21 +720,21 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
696
720
  rank: number;
697
721
  metadata?: any;
698
722
  qualificationCriteria?: {
699
- minLifetimePoints?: number | null | undefined;
700
- minLifetimeSpend?: number | null | undefined;
701
- evaluationPeriodDays?: number | null | undefined;
702
- } | null | undefined;
723
+ minLifetimePoints?: number | null;
724
+ minLifetimeSpend?: number | null;
725
+ evaluationPeriodDays?: number | null;
726
+ } | null;
703
727
  benefits?: {
704
- pointsMultiplier?: number | null | undefined;
705
- discountPercent?: number | null | undefined;
706
- freeShipping?: boolean | null | undefined;
728
+ pointsMultiplier?: number | null;
729
+ discountPercent?: number | null;
730
+ freeShipping?: boolean | null;
707
731
  customBenefits?: any;
708
- } | null | undefined;
732
+ } | null;
709
733
  downgrade?: {
710
734
  enabled: boolean;
711
735
  gracePeriodDays: number;
712
- } | null | undefined;
713
- color?: string | null | undefined;
736
+ } | null;
737
+ color?: string | null;
714
738
  } & _$mongoose.DefaultTimestampProps, {
715
739
  id: string;
716
740
  }, {
@@ -721,21 +745,21 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
721
745
  rank: number;
722
746
  metadata?: any;
723
747
  qualificationCriteria?: {
724
- minLifetimePoints?: number | null | undefined;
725
- minLifetimeSpend?: number | null | undefined;
726
- evaluationPeriodDays?: number | null | undefined;
727
- } | null | undefined;
748
+ minLifetimePoints?: number | null;
749
+ minLifetimeSpend?: number | null;
750
+ evaluationPeriodDays?: number | null;
751
+ } | null;
728
752
  benefits?: {
729
- pointsMultiplier?: number | null | undefined;
730
- discountPercent?: number | null | undefined;
731
- freeShipping?: boolean | null | undefined;
753
+ pointsMultiplier?: number | null;
754
+ discountPercent?: number | null;
755
+ freeShipping?: boolean | null;
732
756
  customBenefits?: any;
733
- } | null | undefined;
757
+ } | null;
734
758
  downgrade?: {
735
759
  enabled: boolean;
736
760
  gracePeriodDays: number;
737
- } | null | undefined;
738
- color?: string | null | undefined;
761
+ } | null;
762
+ color?: string | null;
739
763
  } & _$mongoose.DefaultTimestampProps & {
740
764
  _id: _$mongoose.Types.ObjectId;
741
765
  } & {
@@ -750,42 +774,42 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
750
774
  rank: number;
751
775
  metadata?: any;
752
776
  qualificationCriteria?: {
753
- minLifetimePoints?: number | null | undefined;
754
- minLifetimeSpend?: number | null | undefined;
755
- evaluationPeriodDays?: number | null | undefined;
756
- } | null | undefined;
777
+ minLifetimePoints?: number | null;
778
+ minLifetimeSpend?: number | null;
779
+ evaluationPeriodDays?: number | null;
780
+ } | null;
757
781
  benefits?: {
758
- pointsMultiplier?: number | null | undefined;
759
- discountPercent?: number | null | undefined;
760
- freeShipping?: boolean | null | undefined;
782
+ pointsMultiplier?: number | null;
783
+ discountPercent?: number | null;
784
+ freeShipping?: boolean | null;
761
785
  customBenefits?: any;
762
- } | null | undefined;
786
+ } | null;
763
787
  downgrade?: {
764
788
  enabled: boolean;
765
789
  gracePeriodDays: number;
766
- } | null | undefined;
767
- color?: string | null | undefined;
790
+ } | null;
791
+ color?: string | null;
768
792
  } & _$mongoose.DefaultTimestampProps, _$mongoose.Document<unknown, {}, {
769
793
  programId: string;
770
794
  name: string;
771
795
  rank: number;
772
796
  metadata?: any;
773
797
  qualificationCriteria?: {
774
- minLifetimePoints?: number | null | undefined;
775
- minLifetimeSpend?: number | null | undefined;
776
- evaluationPeriodDays?: number | null | undefined;
777
- } | null | undefined;
798
+ minLifetimePoints?: number | null;
799
+ minLifetimeSpend?: number | null;
800
+ evaluationPeriodDays?: number | null;
801
+ } | null;
778
802
  benefits?: {
779
- pointsMultiplier?: number | null | undefined;
780
- discountPercent?: number | null | undefined;
781
- freeShipping?: boolean | null | undefined;
803
+ pointsMultiplier?: number | null;
804
+ discountPercent?: number | null;
805
+ freeShipping?: boolean | null;
782
806
  customBenefits?: any;
783
- } | null | undefined;
807
+ } | null;
784
808
  downgrade?: {
785
809
  enabled: boolean;
786
810
  gracePeriodDays: number;
787
- } | null | undefined;
788
- color?: string | null | undefined;
811
+ } | null;
812
+ color?: string | null;
789
813
  } & _$mongoose.DefaultTimestampProps, {
790
814
  id: string;
791
815
  }, Omit<_$mongoose.DefaultSchemaOptions, "timestamps"> & {
@@ -796,21 +820,21 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
796
820
  rank: number;
797
821
  metadata?: any;
798
822
  qualificationCriteria?: {
799
- minLifetimePoints?: number | null | undefined;
800
- minLifetimeSpend?: number | null | undefined;
801
- evaluationPeriodDays?: number | null | undefined;
802
- } | null | undefined;
823
+ minLifetimePoints?: number | null;
824
+ minLifetimeSpend?: number | null;
825
+ evaluationPeriodDays?: number | null;
826
+ } | null;
803
827
  benefits?: {
804
- pointsMultiplier?: number | null | undefined;
805
- discountPercent?: number | null | undefined;
806
- freeShipping?: boolean | null | undefined;
828
+ pointsMultiplier?: number | null;
829
+ discountPercent?: number | null;
830
+ freeShipping?: boolean | null;
807
831
  customBenefits?: any;
808
- } | null | undefined;
832
+ } | null;
809
833
  downgrade?: {
810
834
  enabled: boolean;
811
835
  gracePeriodDays: number;
812
- } | null | undefined;
813
- color?: string | null | undefined;
836
+ } | null;
837
+ color?: string | null;
814
838
  } & _$mongoose.DefaultTimestampProps & {
815
839
  _id: _$mongoose.Types.ObjectId;
816
840
  } & {
@@ -823,21 +847,21 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
823
847
  rank: number;
824
848
  metadata?: any;
825
849
  qualificationCriteria?: {
826
- minLifetimePoints?: number | null | undefined;
827
- minLifetimeSpend?: number | null | undefined;
828
- evaluationPeriodDays?: number | null | undefined;
829
- } | null | undefined;
850
+ minLifetimePoints?: number | null;
851
+ minLifetimeSpend?: number | null;
852
+ evaluationPeriodDays?: number | null;
853
+ } | null;
830
854
  benefits?: {
831
- pointsMultiplier?: number | null | undefined;
832
- discountPercent?: number | null | undefined;
833
- freeShipping?: boolean | null | undefined;
855
+ pointsMultiplier?: number | null;
856
+ discountPercent?: number | null;
857
+ freeShipping?: boolean | null;
834
858
  customBenefits?: any;
835
- } | null | undefined;
859
+ } | null;
836
860
  downgrade?: {
837
861
  enabled: boolean;
838
862
  gracePeriodDays: number;
839
- } | null | undefined;
840
- color?: string | null | undefined;
863
+ } | null;
864
+ color?: string | null;
841
865
  createdAt: NativeDate;
842
866
  updatedAt: NativeDate;
843
867
  } & {
@@ -850,21 +874,21 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
850
874
  rank: number;
851
875
  metadata?: any;
852
876
  qualificationCriteria?: {
853
- minLifetimePoints?: number | null | undefined;
854
- minLifetimeSpend?: number | null | undefined;
855
- evaluationPeriodDays?: number | null | undefined;
856
- } | null | undefined;
877
+ minLifetimePoints?: number | null;
878
+ minLifetimeSpend?: number | null;
879
+ evaluationPeriodDays?: number | null;
880
+ } | null;
857
881
  benefits?: {
858
- pointsMultiplier?: number | null | undefined;
859
- discountPercent?: number | null | undefined;
860
- freeShipping?: boolean | null | undefined;
882
+ pointsMultiplier?: number | null;
883
+ discountPercent?: number | null;
884
+ freeShipping?: boolean | null;
861
885
  customBenefits?: any;
862
- } | null | undefined;
886
+ } | null;
863
887
  downgrade?: {
864
888
  enabled: boolean;
865
889
  gracePeriodDays: number;
866
- } | null | undefined;
867
- color?: string | null | undefined;
890
+ } | null;
891
+ color?: string | null;
868
892
  createdAt: NativeDate;
869
893
  updatedAt: NativeDate;
870
894
  } & {
@@ -882,15 +906,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
882
906
  conversionRate: number;
883
907
  ownerType: string;
884
908
  ownerId: string;
885
- expiresAt?: NativeDate | null | undefined;
886
- confirmedAt?: NativeDate | null | undefined;
887
- releasedAt?: NativeDate | null | undefined;
888
- reversedAt?: NativeDate | null | undefined;
889
- reversalReason?: string | null | undefined;
890
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
891
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
892
- initialBalance?: number | null | undefined;
893
- remainingBalance?: number | null | undefined;
909
+ expiresAt?: NativeDate | null;
910
+ approvals?: any;
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;
894
921
  } & _$mongoose.DefaultTimestampProps, {}, {}, {
895
922
  id: string;
896
923
  }, _$mongoose.Document<unknown, {}, {
@@ -903,15 +930,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
903
930
  conversionRate: number;
904
931
  ownerType: string;
905
932
  ownerId: string;
906
- expiresAt?: NativeDate | null | undefined;
907
- confirmedAt?: NativeDate | null | undefined;
908
- releasedAt?: NativeDate | null | undefined;
909
- reversedAt?: NativeDate | null | undefined;
910
- reversalReason?: string | null | undefined;
911
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
912
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
913
- initialBalance?: number | null | undefined;
914
- remainingBalance?: number | null | undefined;
933
+ expiresAt?: NativeDate | null;
934
+ approvals?: any;
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;
915
945
  } & _$mongoose.DefaultTimestampProps, {
916
946
  id: string;
917
947
  }, {
@@ -926,15 +956,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
926
956
  conversionRate: number;
927
957
  ownerType: string;
928
958
  ownerId: string;
929
- expiresAt?: NativeDate | null | undefined;
930
- confirmedAt?: NativeDate | null | undefined;
931
- releasedAt?: NativeDate | null | undefined;
932
- reversedAt?: NativeDate | null | undefined;
933
- reversalReason?: string | null | undefined;
934
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
935
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
936
- initialBalance?: number | null | undefined;
937
- remainingBalance?: number | null | undefined;
959
+ expiresAt?: NativeDate | null;
960
+ approvals?: any;
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;
938
971
  } & _$mongoose.DefaultTimestampProps & {
939
972
  _id: _$mongoose.Types.ObjectId;
940
973
  } & {
@@ -953,15 +986,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
953
986
  conversionRate: number;
954
987
  ownerType: string;
955
988
  ownerId: string;
956
- expiresAt?: NativeDate | null | undefined;
957
- confirmedAt?: NativeDate | null | undefined;
958
- releasedAt?: NativeDate | null | undefined;
959
- reversedAt?: NativeDate | null | undefined;
960
- reversalReason?: string | null | undefined;
961
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
962
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
963
- initialBalance?: number | null | undefined;
964
- remainingBalance?: number | null | undefined;
989
+ expiresAt?: NativeDate | null;
990
+ approvals?: any;
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;
965
1001
  } & _$mongoose.DefaultTimestampProps, _$mongoose.Document<unknown, {}, {
966
1002
  programId: string;
967
1003
  status: "expired" | "reserved" | "confirmed" | "released" | "reversed";
@@ -972,15 +1008,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
972
1008
  conversionRate: number;
973
1009
  ownerType: string;
974
1010
  ownerId: string;
975
- expiresAt?: NativeDate | null | undefined;
976
- confirmedAt?: NativeDate | null | undefined;
977
- releasedAt?: NativeDate | null | undefined;
978
- reversedAt?: NativeDate | null | undefined;
979
- reversalReason?: string | null | undefined;
980
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
981
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
982
- initialBalance?: number | null | undefined;
983
- remainingBalance?: number | null | undefined;
1011
+ expiresAt?: NativeDate | null;
1012
+ approvals?: any;
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;
984
1023
  } & _$mongoose.DefaultTimestampProps, {
985
1024
  id: string;
986
1025
  }, Omit<_$mongoose.DefaultSchemaOptions, "timestamps"> & {
@@ -995,15 +1034,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
995
1034
  conversionRate: number;
996
1035
  ownerType: string;
997
1036
  ownerId: string;
998
- expiresAt?: NativeDate | null | undefined;
999
- confirmedAt?: NativeDate | null | undefined;
1000
- releasedAt?: NativeDate | null | undefined;
1001
- reversedAt?: NativeDate | null | undefined;
1002
- reversalReason?: string | null | undefined;
1003
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1004
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
1005
- initialBalance?: number | null | undefined;
1006
- remainingBalance?: number | null | undefined;
1037
+ expiresAt?: NativeDate | null;
1038
+ approvals?: any;
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;
1007
1049
  } & _$mongoose.DefaultTimestampProps & {
1008
1050
  _id: _$mongoose.Types.ObjectId;
1009
1051
  } & {
@@ -1020,15 +1062,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1020
1062
  conversionRate: number;
1021
1063
  ownerType: string;
1022
1064
  ownerId: string;
1023
- expiresAt?: NativeDate | null | undefined;
1024
- confirmedAt?: NativeDate | null | undefined;
1025
- releasedAt?: NativeDate | null | undefined;
1026
- reversedAt?: NativeDate | null | undefined;
1027
- reversalReason?: string | null | undefined;
1028
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1029
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
1030
- initialBalance?: number | null | undefined;
1031
- remainingBalance?: number | null | undefined;
1065
+ expiresAt?: NativeDate | null;
1066
+ approvals?: any;
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;
1032
1077
  createdAt: NativeDate;
1033
1078
  updatedAt: NativeDate;
1034
1079
  } & {
@@ -1045,15 +1090,18 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1045
1090
  conversionRate: number;
1046
1091
  ownerType: string;
1047
1092
  ownerId: string;
1048
- expiresAt?: NativeDate | null | undefined;
1049
- confirmedAt?: NativeDate | null | undefined;
1050
- releasedAt?: NativeDate | null | undefined;
1051
- reversedAt?: NativeDate | null | undefined;
1052
- reversalReason?: string | null | undefined;
1053
- reversalTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1054
- transactionId?: _$mongoose.Types.ObjectId | null | undefined;
1055
- initialBalance?: number | null | undefined;
1056
- remainingBalance?: number | null | undefined;
1093
+ expiresAt?: NativeDate | null;
1094
+ approvals?: any;
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;
1057
1105
  createdAt: NativeDate;
1058
1106
  updatedAt: NativeDate;
1059
1107
  } & {
@@ -1068,14 +1116,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1068
1116
  referrerId: _$mongoose.Types.ObjectId;
1069
1117
  refereeId: _$mongoose.Types.ObjectId;
1070
1118
  metadata?: any;
1071
- expiresAt?: NativeDate | null | undefined;
1072
- referrerRewardPoints?: number | null | undefined;
1073
- refereeRewardPoints?: number | null | undefined;
1074
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1075
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1076
- approvedAt?: NativeDate | null | undefined;
1077
- rejectedAt?: NativeDate | null | undefined;
1078
- 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;
1079
1127
  } & _$mongoose.DefaultTimestampProps, {}, {}, {
1080
1128
  id: string;
1081
1129
  }, _$mongoose.Document<unknown, {}, {
@@ -1085,14 +1133,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1085
1133
  referrerId: _$mongoose.Types.ObjectId;
1086
1134
  refereeId: _$mongoose.Types.ObjectId;
1087
1135
  metadata?: any;
1088
- expiresAt?: NativeDate | null | undefined;
1089
- referrerRewardPoints?: number | null | undefined;
1090
- refereeRewardPoints?: number | null | undefined;
1091
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1092
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1093
- approvedAt?: NativeDate | null | undefined;
1094
- rejectedAt?: NativeDate | null | undefined;
1095
- 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;
1096
1144
  } & _$mongoose.DefaultTimestampProps, {
1097
1145
  id: string;
1098
1146
  }, {
@@ -1104,14 +1152,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1104
1152
  referrerId: _$mongoose.Types.ObjectId;
1105
1153
  refereeId: _$mongoose.Types.ObjectId;
1106
1154
  metadata?: any;
1107
- expiresAt?: NativeDate | null | undefined;
1108
- referrerRewardPoints?: number | null | undefined;
1109
- refereeRewardPoints?: number | null | undefined;
1110
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1111
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1112
- approvedAt?: NativeDate | null | undefined;
1113
- rejectedAt?: NativeDate | null | undefined;
1114
- 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;
1115
1163
  } & _$mongoose.DefaultTimestampProps & {
1116
1164
  _id: _$mongoose.Types.ObjectId;
1117
1165
  } & {
@@ -1127,14 +1175,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1127
1175
  referrerId: _$mongoose.Types.ObjectId;
1128
1176
  refereeId: _$mongoose.Types.ObjectId;
1129
1177
  metadata?: any;
1130
- expiresAt?: NativeDate | null | undefined;
1131
- referrerRewardPoints?: number | null | undefined;
1132
- refereeRewardPoints?: number | null | undefined;
1133
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1134
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1135
- approvedAt?: NativeDate | null | undefined;
1136
- rejectedAt?: NativeDate | null | undefined;
1137
- 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;
1138
1186
  } & _$mongoose.DefaultTimestampProps, _$mongoose.Document<unknown, {}, {
1139
1187
  programId: string;
1140
1188
  status: "expired" | "pending" | "approved" | "rejected";
@@ -1142,14 +1190,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1142
1190
  referrerId: _$mongoose.Types.ObjectId;
1143
1191
  refereeId: _$mongoose.Types.ObjectId;
1144
1192
  metadata?: any;
1145
- expiresAt?: NativeDate | null | undefined;
1146
- referrerRewardPoints?: number | null | undefined;
1147
- refereeRewardPoints?: number | null | undefined;
1148
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1149
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1150
- approvedAt?: NativeDate | null | undefined;
1151
- rejectedAt?: NativeDate | null | undefined;
1152
- 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;
1153
1201
  } & _$mongoose.DefaultTimestampProps, {
1154
1202
  id: string;
1155
1203
  }, Omit<_$mongoose.DefaultSchemaOptions, "timestamps"> & {
@@ -1161,14 +1209,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1161
1209
  referrerId: _$mongoose.Types.ObjectId;
1162
1210
  refereeId: _$mongoose.Types.ObjectId;
1163
1211
  metadata?: any;
1164
- expiresAt?: NativeDate | null | undefined;
1165
- referrerRewardPoints?: number | null | undefined;
1166
- refereeRewardPoints?: number | null | undefined;
1167
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1168
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1169
- approvedAt?: NativeDate | null | undefined;
1170
- rejectedAt?: NativeDate | null | undefined;
1171
- 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;
1172
1220
  } & _$mongoose.DefaultTimestampProps & {
1173
1221
  _id: _$mongoose.Types.ObjectId;
1174
1222
  } & {
@@ -1182,14 +1230,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1182
1230
  referrerId: _$mongoose.Types.ObjectId;
1183
1231
  refereeId: _$mongoose.Types.ObjectId;
1184
1232
  metadata?: any;
1185
- expiresAt?: NativeDate | null | undefined;
1186
- referrerRewardPoints?: number | null | undefined;
1187
- refereeRewardPoints?: number | null | undefined;
1188
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1189
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1190
- approvedAt?: NativeDate | null | undefined;
1191
- rejectedAt?: NativeDate | null | undefined;
1192
- 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;
1193
1241
  createdAt: NativeDate;
1194
1242
  updatedAt: NativeDate;
1195
1243
  } & {
@@ -1203,14 +1251,14 @@ declare function createModels(connection: Connection, tenant: ResolvedTenant, in
1203
1251
  referrerId: _$mongoose.Types.ObjectId;
1204
1252
  refereeId: _$mongoose.Types.ObjectId;
1205
1253
  metadata?: any;
1206
- expiresAt?: NativeDate | null | undefined;
1207
- referrerRewardPoints?: number | null | undefined;
1208
- refereeRewardPoints?: number | null | undefined;
1209
- referrerTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1210
- refereeTransactionId?: _$mongoose.Types.ObjectId | null | undefined;
1211
- approvedAt?: NativeDate | null | undefined;
1212
- rejectedAt?: NativeDate | null | undefined;
1213
- 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;
1214
1262
  createdAt: NativeDate;
1215
1263
  updatedAt: NativeDate;
1216
1264
  } & {