@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.
- package/CHANGELOG.md +101 -0
- package/README.md +69 -35
- package/dist/{config-96Sl6oNJ.d.mts → config-BdSyAdnF.d.mts} +10 -0
- package/dist/events/index.d.mts +1 -1
- package/dist/events/index.mjs +2 -2
- package/dist/{events-BtZOdiPw.mjs → events-DN5_p6T0.mjs} +1 -1
- package/dist/{index-CMSNfGos.d.mts → index-BN96EDac.d.mts} +19 -4
- package/dist/{index-xLLJ7jLy.d.mts → index-CnESLipu.d.mts} +1 -1
- package/dist/{index-Bo5YQ_fu.d.mts → index-D20Cn4KB.d.mts} +23 -0
- package/dist/index.d.mts +154 -6
- package/dist/index.mjs +26 -18
- package/dist/{loyalty-events-Cyt9TwX6.mjs → loyalty-events-C38JA3cU.mjs} +4 -2
- package/dist/models/index.d.mts +513 -465
- package/dist/models/index.mjs +1 -1
- package/dist/{models-uhh9c-7k.mjs → models-Ddh62lgO.mjs} +29 -2
- package/dist/repositories/index.d.mts +1 -1
- package/dist/repositories/index.mjs +1 -1
- package/dist/{repositories-CZlhTYVp.mjs → repositories-C_p8asCn.mjs} +307 -155
- package/dist/types/index.d.mts +2 -2
- package/package.json +6 -6
package/dist/models/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ResolvedTenant, i as ModelName, r as LoyaltyModelName, t as IndexDefinition } from "../config-
|
|
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
|
|
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
|
|
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
|
|
31
|
-
deactivatedAt?: NativeDate | null
|
|
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
|
|
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
|
|
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
|
|
56
|
-
deactivatedAt?: NativeDate | null
|
|
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
|
|
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
|
|
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
|
|
83
|
-
deactivatedAt?: NativeDate | null
|
|
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
|
|
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
|
|
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
|
|
114
|
-
deactivatedAt?: NativeDate | null
|
|
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
|
|
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
|
|
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
|
|
137
|
-
deactivatedAt?: NativeDate | null
|
|
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
|
|
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
|
|
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
|
|
164
|
-
deactivatedAt?: NativeDate | null
|
|
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
|
|
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
|
|
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
|
|
193
|
-
deactivatedAt?: NativeDate | null
|
|
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
|
|
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
|
|
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
|
|
222
|
-
deactivatedAt?: NativeDate | null
|
|
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
|
|
241
|
-
referenceId?: string | null
|
|
242
|
-
idempotencyKey?: string | null
|
|
243
|
-
earningRuleId?: _$mongoose.Types.ObjectId | null
|
|
244
|
-
expiresAt?: NativeDate | null
|
|
245
|
-
expiredAt?: NativeDate | null
|
|
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
|
|
259
|
-
referenceId?: string | null
|
|
260
|
-
idempotencyKey?: string | null
|
|
261
|
-
earningRuleId?: _$mongoose.Types.ObjectId | null
|
|
262
|
-
expiresAt?: NativeDate | null
|
|
263
|
-
expiredAt?: NativeDate | null
|
|
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
|
|
282
|
-
referenceId?: string | null
|
|
283
|
-
idempotencyKey?: string | null
|
|
284
|
-
earningRuleId?: _$mongoose.Types.ObjectId | null
|
|
285
|
-
expiresAt?: NativeDate | null
|
|
286
|
-
expiredAt?: NativeDate | null
|
|
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
|
|
309
|
-
referenceId?: string | null
|
|
310
|
-
idempotencyKey?: string | null
|
|
311
|
-
earningRuleId?: _$mongoose.Types.ObjectId | null
|
|
312
|
-
expiresAt?: NativeDate | null
|
|
313
|
-
expiredAt?: NativeDate | null
|
|
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
|
|
325
|
-
referenceId?: string | null
|
|
326
|
-
idempotencyKey?: string | null
|
|
327
|
-
earningRuleId?: _$mongoose.Types.ObjectId | null
|
|
328
|
-
expiresAt?: NativeDate | null
|
|
329
|
-
expiredAt?: NativeDate | null
|
|
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
|
|
348
|
-
referenceId?: string | null
|
|
349
|
-
idempotencyKey?: string | null
|
|
350
|
-
earningRuleId?: _$mongoose.Types.ObjectId | null
|
|
351
|
-
expiresAt?: NativeDate | null
|
|
352
|
-
expiredAt?: NativeDate | null
|
|
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
|
|
370
|
-
referenceId?: string | null
|
|
371
|
-
idempotencyKey?: string | null
|
|
372
|
-
earningRuleId?: _$mongoose.Types.ObjectId | null
|
|
373
|
-
expiresAt?: NativeDate | null
|
|
374
|
-
expiredAt?: NativeDate | null
|
|
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
|
|
390
|
-
referenceId?: string | null
|
|
391
|
-
idempotencyKey?: string | null
|
|
392
|
-
earningRuleId?: _$mongoose.Types.ObjectId | null
|
|
393
|
-
expiresAt?: NativeDate | null
|
|
394
|
-
expiredAt?: NativeDate | null
|
|
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
|
|
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
|
|
438
|
+
minOrderAmount?: number | null;
|
|
415
439
|
dateRange?: {
|
|
416
|
-
start?: NativeDate | null
|
|
417
|
-
end?: NativeDate | null
|
|
418
|
-
} | null
|
|
419
|
-
} | null
|
|
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
|
|
423
|
-
amountPerPoint?: number | null
|
|
424
|
-
fixedPoints?: number | null
|
|
425
|
-
multiplier?: number | null
|
|
426
|
-
maxPointsPerTransaction?: number | null
|
|
427
|
-
} | null
|
|
428
|
-
startsAt?: NativeDate | null
|
|
429
|
-
endsAt?: NativeDate | null
|
|
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
|
|
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
|
|
469
|
+
minOrderAmount?: number | null;
|
|
446
470
|
dateRange?: {
|
|
447
|
-
start?: NativeDate | null
|
|
448
|
-
end?: NativeDate | null
|
|
449
|
-
} | null
|
|
450
|
-
} | null
|
|
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
|
|
454
|
-
amountPerPoint?: number | null
|
|
455
|
-
fixedPoints?: number | null
|
|
456
|
-
multiplier?: number | null
|
|
457
|
-
maxPointsPerTransaction?: number | null
|
|
458
|
-
} | null
|
|
459
|
-
startsAt?: NativeDate | null
|
|
460
|
-
endsAt?: NativeDate | null
|
|
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
|
|
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
|
|
502
|
+
minOrderAmount?: number | null;
|
|
479
503
|
dateRange?: {
|
|
480
|
-
start?: NativeDate | null
|
|
481
|
-
end?: NativeDate | null
|
|
482
|
-
} | null
|
|
483
|
-
} | null
|
|
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
|
|
487
|
-
amountPerPoint?: number | null
|
|
488
|
-
fixedPoints?: number | null
|
|
489
|
-
multiplier?: number | null
|
|
490
|
-
maxPointsPerTransaction?: number | null
|
|
491
|
-
} | null
|
|
492
|
-
startsAt?: NativeDate | null
|
|
493
|
-
endsAt?: NativeDate | null
|
|
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
|
|
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
|
|
539
|
+
minOrderAmount?: number | null;
|
|
516
540
|
dateRange?: {
|
|
517
|
-
start?: NativeDate | null
|
|
518
|
-
end?: NativeDate | null
|
|
519
|
-
} | null
|
|
520
|
-
} | null
|
|
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
|
|
524
|
-
amountPerPoint?: number | null
|
|
525
|
-
fixedPoints?: number | null
|
|
526
|
-
multiplier?: number | null
|
|
527
|
-
maxPointsPerTransaction?: number | null
|
|
528
|
-
} | null
|
|
529
|
-
startsAt?: NativeDate | null
|
|
530
|
-
endsAt?: NativeDate | null
|
|
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
|
|
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
|
|
568
|
+
minOrderAmount?: number | null;
|
|
545
569
|
dateRange?: {
|
|
546
|
-
start?: NativeDate | null
|
|
547
|
-
end?: NativeDate | null
|
|
548
|
-
} | null
|
|
549
|
-
} | null
|
|
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
|
|
553
|
-
amountPerPoint?: number | null
|
|
554
|
-
fixedPoints?: number | null
|
|
555
|
-
multiplier?: number | null
|
|
556
|
-
maxPointsPerTransaction?: number | null
|
|
557
|
-
} | null
|
|
558
|
-
startsAt?: NativeDate | null
|
|
559
|
-
endsAt?: NativeDate | null
|
|
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
|
|
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
|
|
601
|
+
minOrderAmount?: number | null;
|
|
578
602
|
dateRange?: {
|
|
579
|
-
start?: NativeDate | null
|
|
580
|
-
end?: NativeDate | null
|
|
581
|
-
} | null
|
|
582
|
-
} | null
|
|
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
|
|
586
|
-
amountPerPoint?: number | null
|
|
587
|
-
fixedPoints?: number | null
|
|
588
|
-
multiplier?: number | null
|
|
589
|
-
maxPointsPerTransaction?: number | null
|
|
590
|
-
} | null
|
|
591
|
-
startsAt?: NativeDate | null
|
|
592
|
-
endsAt?: NativeDate | null
|
|
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
|
|
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
|
|
636
|
+
minOrderAmount?: number | null;
|
|
613
637
|
dateRange?: {
|
|
614
|
-
start?: NativeDate | null
|
|
615
|
-
end?: NativeDate | null
|
|
616
|
-
} | null
|
|
617
|
-
} | null
|
|
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
|
|
621
|
-
amountPerPoint?: number | null
|
|
622
|
-
fixedPoints?: number | null
|
|
623
|
-
multiplier?: number | null
|
|
624
|
-
maxPointsPerTransaction?: number | null
|
|
625
|
-
} | null
|
|
626
|
-
startsAt?: NativeDate | null
|
|
627
|
-
endsAt?: NativeDate | null
|
|
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
|
|
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
|
|
671
|
+
minOrderAmount?: number | null;
|
|
648
672
|
dateRange?: {
|
|
649
|
-
start?: NativeDate | null
|
|
650
|
-
end?: NativeDate | null
|
|
651
|
-
} | null
|
|
652
|
-
} | null
|
|
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
|
|
656
|
-
amountPerPoint?: number | null
|
|
657
|
-
fixedPoints?: number | null
|
|
658
|
-
multiplier?: number | null
|
|
659
|
-
maxPointsPerTransaction?: number | null
|
|
660
|
-
} | null
|
|
661
|
-
startsAt?: NativeDate | null
|
|
662
|
-
endsAt?: NativeDate | null
|
|
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
|
|
677
|
-
minLifetimeSpend?: number | null
|
|
678
|
-
evaluationPeriodDays?: number | null
|
|
679
|
-
} | null
|
|
700
|
+
minLifetimePoints?: number | null;
|
|
701
|
+
minLifetimeSpend?: number | null;
|
|
702
|
+
evaluationPeriodDays?: number | null;
|
|
703
|
+
} | null;
|
|
680
704
|
benefits?: {
|
|
681
|
-
pointsMultiplier?: number | null
|
|
682
|
-
discountPercent?: number | null
|
|
683
|
-
freeShipping?: boolean | null
|
|
705
|
+
pointsMultiplier?: number | null;
|
|
706
|
+
discountPercent?: number | null;
|
|
707
|
+
freeShipping?: boolean | null;
|
|
684
708
|
customBenefits?: any;
|
|
685
|
-
} | null
|
|
709
|
+
} | null;
|
|
686
710
|
downgrade?: {
|
|
687
711
|
enabled: boolean;
|
|
688
712
|
gracePeriodDays: number;
|
|
689
|
-
} | null
|
|
690
|
-
color?: string | null
|
|
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
|
|
700
|
-
minLifetimeSpend?: number | null
|
|
701
|
-
evaluationPeriodDays?: number | null
|
|
702
|
-
} | null
|
|
723
|
+
minLifetimePoints?: number | null;
|
|
724
|
+
minLifetimeSpend?: number | null;
|
|
725
|
+
evaluationPeriodDays?: number | null;
|
|
726
|
+
} | null;
|
|
703
727
|
benefits?: {
|
|
704
|
-
pointsMultiplier?: number | null
|
|
705
|
-
discountPercent?: number | null
|
|
706
|
-
freeShipping?: boolean | null
|
|
728
|
+
pointsMultiplier?: number | null;
|
|
729
|
+
discountPercent?: number | null;
|
|
730
|
+
freeShipping?: boolean | null;
|
|
707
731
|
customBenefits?: any;
|
|
708
|
-
} | null
|
|
732
|
+
} | null;
|
|
709
733
|
downgrade?: {
|
|
710
734
|
enabled: boolean;
|
|
711
735
|
gracePeriodDays: number;
|
|
712
|
-
} | null
|
|
713
|
-
color?: string | null
|
|
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
|
|
725
|
-
minLifetimeSpend?: number | null
|
|
726
|
-
evaluationPeriodDays?: number | null
|
|
727
|
-
} | null
|
|
748
|
+
minLifetimePoints?: number | null;
|
|
749
|
+
minLifetimeSpend?: number | null;
|
|
750
|
+
evaluationPeriodDays?: number | null;
|
|
751
|
+
} | null;
|
|
728
752
|
benefits?: {
|
|
729
|
-
pointsMultiplier?: number | null
|
|
730
|
-
discountPercent?: number | null
|
|
731
|
-
freeShipping?: boolean | null
|
|
753
|
+
pointsMultiplier?: number | null;
|
|
754
|
+
discountPercent?: number | null;
|
|
755
|
+
freeShipping?: boolean | null;
|
|
732
756
|
customBenefits?: any;
|
|
733
|
-
} | null
|
|
757
|
+
} | null;
|
|
734
758
|
downgrade?: {
|
|
735
759
|
enabled: boolean;
|
|
736
760
|
gracePeriodDays: number;
|
|
737
|
-
} | null
|
|
738
|
-
color?: string | null
|
|
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
|
|
754
|
-
minLifetimeSpend?: number | null
|
|
755
|
-
evaluationPeriodDays?: number | null
|
|
756
|
-
} | null
|
|
777
|
+
minLifetimePoints?: number | null;
|
|
778
|
+
minLifetimeSpend?: number | null;
|
|
779
|
+
evaluationPeriodDays?: number | null;
|
|
780
|
+
} | null;
|
|
757
781
|
benefits?: {
|
|
758
|
-
pointsMultiplier?: number | null
|
|
759
|
-
discountPercent?: number | null
|
|
760
|
-
freeShipping?: boolean | null
|
|
782
|
+
pointsMultiplier?: number | null;
|
|
783
|
+
discountPercent?: number | null;
|
|
784
|
+
freeShipping?: boolean | null;
|
|
761
785
|
customBenefits?: any;
|
|
762
|
-
} | null
|
|
786
|
+
} | null;
|
|
763
787
|
downgrade?: {
|
|
764
788
|
enabled: boolean;
|
|
765
789
|
gracePeriodDays: number;
|
|
766
|
-
} | null
|
|
767
|
-
color?: string | null
|
|
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
|
|
775
|
-
minLifetimeSpend?: number | null
|
|
776
|
-
evaluationPeriodDays?: number | null
|
|
777
|
-
} | null
|
|
798
|
+
minLifetimePoints?: number | null;
|
|
799
|
+
minLifetimeSpend?: number | null;
|
|
800
|
+
evaluationPeriodDays?: number | null;
|
|
801
|
+
} | null;
|
|
778
802
|
benefits?: {
|
|
779
|
-
pointsMultiplier?: number | null
|
|
780
|
-
discountPercent?: number | null
|
|
781
|
-
freeShipping?: boolean | null
|
|
803
|
+
pointsMultiplier?: number | null;
|
|
804
|
+
discountPercent?: number | null;
|
|
805
|
+
freeShipping?: boolean | null;
|
|
782
806
|
customBenefits?: any;
|
|
783
|
-
} | null
|
|
807
|
+
} | null;
|
|
784
808
|
downgrade?: {
|
|
785
809
|
enabled: boolean;
|
|
786
810
|
gracePeriodDays: number;
|
|
787
|
-
} | null
|
|
788
|
-
color?: string | null
|
|
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
|
|
800
|
-
minLifetimeSpend?: number | null
|
|
801
|
-
evaluationPeriodDays?: number | null
|
|
802
|
-
} | null
|
|
823
|
+
minLifetimePoints?: number | null;
|
|
824
|
+
minLifetimeSpend?: number | null;
|
|
825
|
+
evaluationPeriodDays?: number | null;
|
|
826
|
+
} | null;
|
|
803
827
|
benefits?: {
|
|
804
|
-
pointsMultiplier?: number | null
|
|
805
|
-
discountPercent?: number | null
|
|
806
|
-
freeShipping?: boolean | null
|
|
828
|
+
pointsMultiplier?: number | null;
|
|
829
|
+
discountPercent?: number | null;
|
|
830
|
+
freeShipping?: boolean | null;
|
|
807
831
|
customBenefits?: any;
|
|
808
|
-
} | null
|
|
832
|
+
} | null;
|
|
809
833
|
downgrade?: {
|
|
810
834
|
enabled: boolean;
|
|
811
835
|
gracePeriodDays: number;
|
|
812
|
-
} | null
|
|
813
|
-
color?: string | null
|
|
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
|
|
827
|
-
minLifetimeSpend?: number | null
|
|
828
|
-
evaluationPeriodDays?: number | null
|
|
829
|
-
} | null
|
|
850
|
+
minLifetimePoints?: number | null;
|
|
851
|
+
minLifetimeSpend?: number | null;
|
|
852
|
+
evaluationPeriodDays?: number | null;
|
|
853
|
+
} | null;
|
|
830
854
|
benefits?: {
|
|
831
|
-
pointsMultiplier?: number | null
|
|
832
|
-
discountPercent?: number | null
|
|
833
|
-
freeShipping?: boolean | null
|
|
855
|
+
pointsMultiplier?: number | null;
|
|
856
|
+
discountPercent?: number | null;
|
|
857
|
+
freeShipping?: boolean | null;
|
|
834
858
|
customBenefits?: any;
|
|
835
|
-
} | null
|
|
859
|
+
} | null;
|
|
836
860
|
downgrade?: {
|
|
837
861
|
enabled: boolean;
|
|
838
862
|
gracePeriodDays: number;
|
|
839
|
-
} | null
|
|
840
|
-
color?: string | null
|
|
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
|
|
854
|
-
minLifetimeSpend?: number | null
|
|
855
|
-
evaluationPeriodDays?: number | null
|
|
856
|
-
} | null
|
|
877
|
+
minLifetimePoints?: number | null;
|
|
878
|
+
minLifetimeSpend?: number | null;
|
|
879
|
+
evaluationPeriodDays?: number | null;
|
|
880
|
+
} | null;
|
|
857
881
|
benefits?: {
|
|
858
|
-
pointsMultiplier?: number | null
|
|
859
|
-
discountPercent?: number | null
|
|
860
|
-
freeShipping?: boolean | null
|
|
882
|
+
pointsMultiplier?: number | null;
|
|
883
|
+
discountPercent?: number | null;
|
|
884
|
+
freeShipping?: boolean | null;
|
|
861
885
|
customBenefits?: any;
|
|
862
|
-
} | null
|
|
886
|
+
} | null;
|
|
863
887
|
downgrade?: {
|
|
864
888
|
enabled: boolean;
|
|
865
889
|
gracePeriodDays: number;
|
|
866
|
-
} | null
|
|
867
|
-
color?: string | null
|
|
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
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
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
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
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
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
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
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
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
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
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
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
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
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
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
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
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
|
|
1072
|
-
referrerRewardPoints?: number | null
|
|
1073
|
-
refereeRewardPoints?: number | null
|
|
1074
|
-
referrerTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1075
|
-
refereeTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1076
|
-
approvedAt?: NativeDate | null
|
|
1077
|
-
rejectedAt?: NativeDate | null
|
|
1078
|
-
rejectionReason?: string | null
|
|
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
|
|
1089
|
-
referrerRewardPoints?: number | null
|
|
1090
|
-
refereeRewardPoints?: number | null
|
|
1091
|
-
referrerTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1092
|
-
refereeTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1093
|
-
approvedAt?: NativeDate | null
|
|
1094
|
-
rejectedAt?: NativeDate | null
|
|
1095
|
-
rejectionReason?: string | null
|
|
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
|
|
1108
|
-
referrerRewardPoints?: number | null
|
|
1109
|
-
refereeRewardPoints?: number | null
|
|
1110
|
-
referrerTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1111
|
-
refereeTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1112
|
-
approvedAt?: NativeDate | null
|
|
1113
|
-
rejectedAt?: NativeDate | null
|
|
1114
|
-
rejectionReason?: string | null
|
|
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
|
|
1131
|
-
referrerRewardPoints?: number | null
|
|
1132
|
-
refereeRewardPoints?: number | null
|
|
1133
|
-
referrerTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1134
|
-
refereeTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1135
|
-
approvedAt?: NativeDate | null
|
|
1136
|
-
rejectedAt?: NativeDate | null
|
|
1137
|
-
rejectionReason?: string | null
|
|
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
|
|
1146
|
-
referrerRewardPoints?: number | null
|
|
1147
|
-
refereeRewardPoints?: number | null
|
|
1148
|
-
referrerTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1149
|
-
refereeTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1150
|
-
approvedAt?: NativeDate | null
|
|
1151
|
-
rejectedAt?: NativeDate | null
|
|
1152
|
-
rejectionReason?: string | null
|
|
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
|
|
1165
|
-
referrerRewardPoints?: number | null
|
|
1166
|
-
refereeRewardPoints?: number | null
|
|
1167
|
-
referrerTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1168
|
-
refereeTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1169
|
-
approvedAt?: NativeDate | null
|
|
1170
|
-
rejectedAt?: NativeDate | null
|
|
1171
|
-
rejectionReason?: string | null
|
|
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
|
|
1186
|
-
referrerRewardPoints?: number | null
|
|
1187
|
-
refereeRewardPoints?: number | null
|
|
1188
|
-
referrerTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1189
|
-
refereeTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1190
|
-
approvedAt?: NativeDate | null
|
|
1191
|
-
rejectedAt?: NativeDate | null
|
|
1192
|
-
rejectionReason?: string | null
|
|
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
|
|
1207
|
-
referrerRewardPoints?: number | null
|
|
1208
|
-
refereeRewardPoints?: number | null
|
|
1209
|
-
referrerTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1210
|
-
refereeTransactionId?: _$mongoose.Types.ObjectId | null
|
|
1211
|
-
approvedAt?: NativeDate | null
|
|
1212
|
-
rejectedAt?: NativeDate | null
|
|
1213
|
-
rejectionReason?: string | null
|
|
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
|
} & {
|