@managesome/knotr-toolkit 0.8.13 → 0.8.15

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.
Files changed (88) hide show
  1. package/dist/constants/socket.d.ts +6 -0
  2. package/dist/constants/socket.d.ts.map +1 -1
  3. package/dist/constants/socket.js +6 -0
  4. package/dist/constants/socket.js.map +1 -1
  5. package/dist/helpers/id-generator.d.ts +3 -0
  6. package/dist/helpers/id-generator.d.ts.map +1 -1
  7. package/dist/helpers/id-generator.js +4 -0
  8. package/dist/helpers/id-generator.js.map +1 -1
  9. package/dist/schemas/account.schema.d.ts +5244 -7
  10. package/dist/schemas/account.schema.d.ts.map +1 -1
  11. package/dist/schemas/account.schema.js +4 -0
  12. package/dist/schemas/account.schema.js.map +1 -1
  13. package/dist/schemas/chat.schema.d.ts +4920 -13
  14. package/dist/schemas/chat.schema.d.ts.map +1 -1
  15. package/dist/schemas/collaboration-request.schema.d.ts +3917 -8
  16. package/dist/schemas/collaboration-request.schema.d.ts.map +1 -1
  17. package/dist/schemas/company-review.schema.d.ts +3421 -7
  18. package/dist/schemas/company-review.schema.d.ts.map +1 -1
  19. package/dist/schemas/company.schema.d.ts +6498 -8
  20. package/dist/schemas/company.schema.d.ts.map +1 -1
  21. package/dist/schemas/contract.schema.d.ts +5436 -7
  22. package/dist/schemas/contract.schema.d.ts.map +1 -1
  23. package/dist/schemas/dispute-evidence.schema.d.ts +3747 -8
  24. package/dist/schemas/dispute-evidence.schema.d.ts.map +1 -1
  25. package/dist/schemas/dispute.schema.d.ts +5600 -8
  26. package/dist/schemas/dispute.schema.d.ts.map +1 -1
  27. package/dist/schemas/donation.schema.d.ts +3552 -8
  28. package/dist/schemas/donation.schema.d.ts.map +1 -1
  29. package/dist/schemas/escrow.schema.d.ts +4279 -8
  30. package/dist/schemas/escrow.schema.d.ts.map +1 -1
  31. package/dist/schemas/flag.schema.d.ts +4722 -8
  32. package/dist/schemas/flag.schema.d.ts.map +1 -1
  33. package/dist/schemas/interest.schema.d.ts +3811 -7
  34. package/dist/schemas/interest.schema.d.ts.map +1 -1
  35. package/dist/schemas/match.schema.d.ts +4071 -7
  36. package/dist/schemas/match.schema.d.ts.map +1 -1
  37. package/dist/schemas/message.schema.d.ts +4071 -7
  38. package/dist/schemas/message.schema.d.ts.map +1 -1
  39. package/dist/schemas/milestone.schema.d.ts +4462 -8
  40. package/dist/schemas/milestone.schema.d.ts.map +1 -1
  41. package/dist/schemas/notification.schema.d.ts +4660 -8
  42. package/dist/schemas/notification.schema.d.ts.map +1 -1
  43. package/dist/schemas/profile.schema.d.ts +9501 -16
  44. package/dist/schemas/profile.schema.d.ts.map +1 -1
  45. package/dist/schemas/profit-share-agreement.schema.d.ts +3746 -7
  46. package/dist/schemas/profit-share-agreement.schema.d.ts.map +1 -1
  47. package/dist/schemas/profit-share.schema.d.ts +4136 -7
  48. package/dist/schemas/profit-share.schema.d.ts.map +1 -1
  49. package/dist/schemas/promo-code.schema.d.ts +4071 -7
  50. package/dist/schemas/promo-code.schema.d.ts.map +1 -1
  51. package/dist/schemas/promo-code.schema.js +7 -0
  52. package/dist/schemas/promo-code.schema.js.map +1 -1
  53. package/dist/schemas/proposal.schema.d.ts +5269 -8
  54. package/dist/schemas/proposal.schema.d.ts.map +1 -1
  55. package/dist/schemas/purchase.schema.d.ts +3682 -8
  56. package/dist/schemas/purchase.schema.d.ts.map +1 -1
  57. package/dist/schemas/requirement-post.schema.d.ts +6272 -8
  58. package/dist/schemas/requirement-post.schema.d.ts.map +1 -1
  59. package/dist/schemas/review.schema.d.ts +4462 -8
  60. package/dist/schemas/review.schema.d.ts.map +1 -1
  61. package/dist/schemas/service-listing.schema.d.ts +5109 -8
  62. package/dist/schemas/service-listing.schema.d.ts.map +1 -1
  63. package/dist/schemas/subscription.schema.d.ts +4007 -8
  64. package/dist/schemas/subscription.schema.d.ts.map +1 -1
  65. package/dist/schemas/tmc-application.schema.d.ts +4316 -8
  66. package/dist/schemas/tmc-application.schema.d.ts.map +1 -1
  67. package/dist/schemas/tmc-membership.schema.d.ts +4137 -8
  68. package/dist/schemas/tmc-membership.schema.d.ts.map +1 -1
  69. package/dist/schemas/trust-badge.schema.d.ts +3876 -7
  70. package/dist/schemas/trust-badge.schema.d.ts.map +1 -1
  71. package/dist/schemas/verification.schema.d.ts +4694 -8
  72. package/dist/schemas/verification.schema.d.ts.map +1 -1
  73. package/dist/schemas/verification.schema.js +3 -0
  74. package/dist/schemas/verification.schema.js.map +1 -1
  75. package/dist/schemas/webhook-event.schema.d.ts +3489 -7
  76. package/dist/schemas/webhook-event.schema.d.ts.map +1 -1
  77. package/dist/types/account.d.ts +27 -0
  78. package/dist/types/account.d.ts.map +1 -1
  79. package/dist/types/common.d.ts +7 -1
  80. package/dist/types/common.d.ts.map +1 -1
  81. package/dist/types/marketplace.d.ts +6 -4
  82. package/dist/types/marketplace.d.ts.map +1 -1
  83. package/dist/types/payment.d.ts +3 -0
  84. package/dist/types/payment.d.ts.map +1 -1
  85. package/dist/types/payment.js.map +1 -1
  86. package/dist/types/verification.d.ts +2 -0
  87. package/dist/types/verification.d.ts.map +1 -1
  88. package/package.json +2 -2
@@ -17,39 +17,4103 @@ export interface PromoCodeModel extends Model<PromoCodeDocument> {
17
17
  export declare function createPromoCodeSchema(): Schema<PromoCodeDocument, PromoCodeModel>;
18
18
  export declare const PromoCodeSchema: Schema<import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
19
19
  _id: string;
20
- }, {}, {}> & Omit<IPromoCode, "id"> & {
20
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
21
21
  _id: string;
22
22
  } & Required<{
23
23
  _id: string;
24
24
  }> & {
25
25
  __v: number;
26
+ } & {
27
+ id: string;
26
28
  }, PromoCodeModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
27
29
  _id: string;
28
- }, {}, {}> & Omit<IPromoCode, "id"> & {
30
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
29
31
  _id: string;
30
32
  } & Required<{
31
33
  _id: string;
32
34
  }> & {
33
35
  __v: number;
34
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
36
+ } & {
37
+ id: string;
38
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
35
39
  _id: string;
36
- }, {}, {}> & Omit<IPromoCode, "id"> & {
40
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
37
41
  _id: string;
38
42
  } & Required<{
39
43
  _id: string;
40
44
  }> & {
41
45
  __v: number;
42
- }>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
46
+ } & {
47
+ id: string;
48
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
43
49
  _id: string;
44
- }, {}, {}> & Omit<IPromoCode, "id"> & {
50
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
45
51
  _id: string;
46
52
  } & Required<{
47
53
  _id: string;
48
54
  }> & {
49
55
  __v: number;
50
- }> & Required<{
56
+ } & {
57
+ id: string;
58
+ }, {
59
+ _id?: import("mongoose").SchemaDefinitionProperty<string, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
60
+ _id: string;
61
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
62
+ _id: string;
63
+ } & Required<{
64
+ _id: string;
65
+ }> & {
66
+ __v: number;
67
+ } & {
68
+ id: string;
69
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
70
+ _id: string;
71
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
72
+ _id: string;
73
+ } & Required<{
74
+ _id: string;
75
+ }> & {
76
+ __v: number;
77
+ } & {
78
+ id: string;
79
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
80
+ _id: string;
81
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
82
+ _id: string;
83
+ } & Required<{
84
+ _id: string;
85
+ }> & {
86
+ __v: number;
87
+ } & {
88
+ id: string;
89
+ }> | undefined;
90
+ $assertPopulated?: import("mongoose").SchemaDefinitionProperty<(<Paths = {}>(path: string | string[], values?: Partial<Paths> | undefined) => Omit<import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
91
+ _id: string;
92
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
93
+ _id: string;
94
+ } & Required<{
95
+ _id: string;
96
+ }> & {
97
+ __v: number;
98
+ } & {
99
+ id: string;
100
+ }, keyof Paths> & Paths), import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
101
+ _id: string;
102
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
103
+ _id: string;
104
+ } & Required<{
105
+ _id: string;
106
+ }> & {
107
+ __v: number;
108
+ } & {
109
+ id: string;
110
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
111
+ _id: string;
112
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
113
+ _id: string;
114
+ } & Required<{
115
+ _id: string;
116
+ }> & {
117
+ __v: number;
118
+ } & {
119
+ id: string;
120
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
121
+ _id: string;
122
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
123
+ _id: string;
124
+ } & Required<{
125
+ _id: string;
126
+ }> & {
127
+ __v: number;
128
+ } & {
129
+ id: string;
130
+ }> | undefined;
131
+ $clearModifiedPaths?: import("mongoose").SchemaDefinitionProperty<() => import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
132
+ _id: string;
133
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
134
+ _id: string;
135
+ } & Required<{
136
+ _id: string;
137
+ }> & {
138
+ __v: number;
139
+ } & {
140
+ id: string;
141
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
142
+ _id: string;
143
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
144
+ _id: string;
145
+ } & Required<{
146
+ _id: string;
147
+ }> & {
148
+ __v: number;
149
+ } & {
150
+ id: string;
151
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
152
+ _id: string;
153
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
154
+ _id: string;
155
+ } & Required<{
156
+ _id: string;
157
+ }> & {
158
+ __v: number;
159
+ } & {
160
+ id: string;
161
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
162
+ _id: string;
163
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
164
+ _id: string;
165
+ } & Required<{
166
+ _id: string;
167
+ }> & {
168
+ __v: number;
169
+ } & {
170
+ id: string;
171
+ }> | undefined;
172
+ $clone?: import("mongoose").SchemaDefinitionProperty<() => import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
173
+ _id: string;
174
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
175
+ _id: string;
176
+ } & Required<{
177
+ _id: string;
178
+ }> & {
179
+ __v: number;
180
+ } & {
181
+ id: string;
182
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
183
+ _id: string;
184
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
185
+ _id: string;
186
+ } & Required<{
187
+ _id: string;
188
+ }> & {
189
+ __v: number;
190
+ } & {
191
+ id: string;
192
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
193
+ _id: string;
194
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
195
+ _id: string;
196
+ } & Required<{
197
+ _id: string;
198
+ }> & {
199
+ __v: number;
200
+ } & {
201
+ id: string;
202
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
203
+ _id: string;
204
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
205
+ _id: string;
206
+ } & Required<{
207
+ _id: string;
208
+ }> & {
209
+ __v: number;
210
+ } & {
211
+ id: string;
212
+ }> | undefined;
213
+ $createModifiedPathsSnapshot?: import("mongoose").SchemaDefinitionProperty<() => import("mongoose").ModifiedPathsSnapshot, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
214
+ _id: string;
215
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
216
+ _id: string;
217
+ } & Required<{
218
+ _id: string;
219
+ }> & {
220
+ __v: number;
221
+ } & {
222
+ id: string;
223
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
224
+ _id: string;
225
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
226
+ _id: string;
227
+ } & Required<{
228
+ _id: string;
229
+ }> & {
230
+ __v: number;
231
+ } & {
232
+ id: string;
233
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
234
+ _id: string;
235
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
236
+ _id: string;
237
+ } & Required<{
238
+ _id: string;
239
+ }> & {
240
+ __v: number;
241
+ } & {
242
+ id: string;
243
+ }> | undefined;
244
+ $getAllSubdocs?: import("mongoose").SchemaDefinitionProperty<() => import("mongoose").Document[], import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
245
+ _id: string;
246
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
247
+ _id: string;
248
+ } & Required<{
249
+ _id: string;
250
+ }> & {
251
+ __v: number;
252
+ } & {
253
+ id: string;
254
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
255
+ _id: string;
256
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
257
+ _id: string;
258
+ } & Required<{
259
+ _id: string;
260
+ }> & {
261
+ __v: number;
262
+ } & {
263
+ id: string;
264
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
265
+ _id: string;
266
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
267
+ _id: string;
268
+ } & Required<{
269
+ _id: string;
270
+ }> & {
271
+ __v: number;
272
+ } & {
273
+ id: string;
274
+ }> | undefined;
275
+ $ignore?: import("mongoose").SchemaDefinitionProperty<(path: string) => void, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
276
+ _id: string;
277
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
278
+ _id: string;
279
+ } & Required<{
280
+ _id: string;
281
+ }> & {
282
+ __v: number;
283
+ } & {
284
+ id: string;
285
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
286
+ _id: string;
287
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
288
+ _id: string;
289
+ } & Required<{
290
+ _id: string;
291
+ }> & {
292
+ __v: number;
293
+ } & {
294
+ id: string;
295
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
296
+ _id: string;
297
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
298
+ _id: string;
299
+ } & Required<{
300
+ _id: string;
301
+ }> & {
302
+ __v: number;
303
+ } & {
304
+ id: string;
305
+ }> | undefined;
306
+ $isDefault?: import("mongoose").SchemaDefinitionProperty<(path?: string) => boolean, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
307
+ _id: string;
308
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
309
+ _id: string;
310
+ } & Required<{
311
+ _id: string;
312
+ }> & {
313
+ __v: number;
314
+ } & {
315
+ id: string;
316
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
317
+ _id: string;
318
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
319
+ _id: string;
320
+ } & Required<{
321
+ _id: string;
322
+ }> & {
323
+ __v: number;
324
+ } & {
325
+ id: string;
326
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
327
+ _id: string;
328
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
329
+ _id: string;
330
+ } & Required<{
331
+ _id: string;
332
+ }> & {
333
+ __v: number;
334
+ } & {
335
+ id: string;
336
+ }> | undefined;
337
+ $isDeleted?: import("mongoose").SchemaDefinitionProperty<(val?: boolean) => boolean, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
338
+ _id: string;
339
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
340
+ _id: string;
341
+ } & Required<{
342
+ _id: string;
343
+ }> & {
344
+ __v: number;
345
+ } & {
346
+ id: string;
347
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
348
+ _id: string;
349
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
350
+ _id: string;
351
+ } & Required<{
352
+ _id: string;
353
+ }> & {
354
+ __v: number;
355
+ } & {
356
+ id: string;
357
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
358
+ _id: string;
359
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
360
+ _id: string;
361
+ } & Required<{
362
+ _id: string;
363
+ }> & {
364
+ __v: number;
365
+ } & {
366
+ id: string;
367
+ }> | undefined;
368
+ $getPopulatedDocs?: import("mongoose").SchemaDefinitionProperty<() => import("mongoose").Document[], import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
369
+ _id: string;
370
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
371
+ _id: string;
372
+ } & Required<{
373
+ _id: string;
374
+ }> & {
375
+ __v: number;
376
+ } & {
377
+ id: string;
378
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
379
+ _id: string;
380
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
381
+ _id: string;
382
+ } & Required<{
383
+ _id: string;
384
+ }> & {
385
+ __v: number;
386
+ } & {
387
+ id: string;
388
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
389
+ _id: string;
390
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
391
+ _id: string;
392
+ } & Required<{
393
+ _id: string;
394
+ }> & {
395
+ __v: number;
396
+ } & {
397
+ id: string;
398
+ }> | undefined;
399
+ $inc?: import("mongoose").SchemaDefinitionProperty<(path: string | string[], val?: number) => import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
400
+ _id: string;
401
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
402
+ _id: string;
403
+ } & Required<{
404
+ _id: string;
405
+ }> & {
406
+ __v: number;
407
+ } & {
408
+ id: string;
409
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
410
+ _id: string;
411
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
412
+ _id: string;
413
+ } & Required<{
414
+ _id: string;
415
+ }> & {
416
+ __v: number;
417
+ } & {
418
+ id: string;
419
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
420
+ _id: string;
421
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
422
+ _id: string;
423
+ } & Required<{
424
+ _id: string;
425
+ }> & {
426
+ __v: number;
427
+ } & {
428
+ id: string;
429
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
430
+ _id: string;
431
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
432
+ _id: string;
433
+ } & Required<{
434
+ _id: string;
435
+ }> & {
436
+ __v: number;
437
+ } & {
438
+ id: string;
439
+ }> | undefined;
440
+ $isEmpty?: import("mongoose").SchemaDefinitionProperty<(path: string) => boolean, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
441
+ _id: string;
442
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
443
+ _id: string;
444
+ } & Required<{
445
+ _id: string;
446
+ }> & {
447
+ __v: number;
448
+ } & {
449
+ id: string;
450
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
451
+ _id: string;
452
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
453
+ _id: string;
454
+ } & Required<{
455
+ _id: string;
456
+ }> & {
457
+ __v: number;
458
+ } & {
459
+ id: string;
460
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
461
+ _id: string;
462
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
463
+ _id: string;
464
+ } & Required<{
465
+ _id: string;
466
+ }> & {
467
+ __v: number;
468
+ } & {
469
+ id: string;
470
+ }> | undefined;
471
+ $isValid?: import("mongoose").SchemaDefinitionProperty<(path: string) => boolean, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
472
+ _id: string;
473
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
474
+ _id: string;
475
+ } & Required<{
476
+ _id: string;
477
+ }> & {
478
+ __v: number;
479
+ } & {
480
+ id: string;
481
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
482
+ _id: string;
483
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
484
+ _id: string;
485
+ } & Required<{
486
+ _id: string;
487
+ }> & {
488
+ __v: number;
489
+ } & {
490
+ id: string;
491
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
492
+ _id: string;
493
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
494
+ _id: string;
495
+ } & Required<{
496
+ _id: string;
497
+ }> & {
498
+ __v: number;
499
+ } & {
500
+ id: string;
501
+ }> | undefined;
502
+ $locals?: import("mongoose").SchemaDefinitionProperty<Record<string, unknown>, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
503
+ _id: string;
504
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
505
+ _id: string;
506
+ } & Required<{
507
+ _id: string;
508
+ }> & {
509
+ __v: number;
510
+ } & {
511
+ id: string;
512
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
513
+ _id: string;
514
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
515
+ _id: string;
516
+ } & Required<{
517
+ _id: string;
518
+ }> & {
519
+ __v: number;
520
+ } & {
521
+ id: string;
522
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
523
+ _id: string;
524
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
525
+ _id: string;
526
+ } & Required<{
527
+ _id: string;
528
+ }> & {
529
+ __v: number;
530
+ } & {
531
+ id: string;
532
+ }> | undefined;
533
+ $markValid?: import("mongoose").SchemaDefinitionProperty<(path: string) => void, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
534
+ _id: string;
535
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
536
+ _id: string;
537
+ } & Required<{
538
+ _id: string;
539
+ }> & {
540
+ __v: number;
541
+ } & {
542
+ id: string;
543
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
544
+ _id: string;
545
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
546
+ _id: string;
547
+ } & Required<{
548
+ _id: string;
549
+ }> & {
550
+ __v: number;
551
+ } & {
552
+ id: string;
553
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
554
+ _id: string;
555
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
556
+ _id: string;
557
+ } & Required<{
558
+ _id: string;
559
+ }> & {
560
+ __v: number;
561
+ } & {
562
+ id: string;
563
+ }> | undefined;
564
+ $model?: import("mongoose").SchemaDefinitionProperty<{
565
+ <ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, import("mongoose").DefaultSchemaOptions> & {
566
+ _id: import("mongoose").Types.ObjectId;
567
+ } & {
568
+ __v: number;
569
+ } & {
570
+ id: string;
571
+ }, any, unknown>>(name: string): ModelType;
572
+ <ModelType = Model<Omit<IPromoCode, "id"> & {
573
+ _id: string;
574
+ }, {}, {}, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
575
+ _id: string;
576
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
577
+ _id: string;
578
+ } & Required<{
579
+ _id: string;
580
+ }> & {
581
+ __v: number;
582
+ } & {
583
+ id: string;
584
+ }, any, Omit<IPromoCode, "id"> & {
585
+ _id: string;
586
+ }>>(): ModelType;
587
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
588
+ _id: string;
589
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
590
+ _id: string;
591
+ } & Required<{
592
+ _id: string;
593
+ }> & {
594
+ __v: number;
595
+ } & {
596
+ id: string;
597
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
598
+ _id: string;
599
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
600
+ _id: string;
601
+ } & Required<{
602
+ _id: string;
603
+ }> & {
604
+ __v: number;
605
+ } & {
606
+ id: string;
607
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
608
+ _id: string;
609
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
610
+ _id: string;
611
+ } & Required<{
612
+ _id: string;
613
+ }> & {
614
+ __v: number;
615
+ } & {
616
+ id: string;
617
+ }> | undefined;
618
+ $op?: import("mongoose").SchemaDefinitionProperty<"save" | "validate" | "remove" | null, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
619
+ _id: string;
620
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
621
+ _id: string;
622
+ } & Required<{
623
+ _id: string;
624
+ }> & {
625
+ __v: number;
626
+ } & {
627
+ id: string;
628
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
629
+ _id: string;
630
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
631
+ _id: string;
632
+ } & Required<{
633
+ _id: string;
634
+ }> & {
635
+ __v: number;
636
+ } & {
637
+ id: string;
638
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
639
+ _id: string;
640
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
641
+ _id: string;
642
+ } & Required<{
643
+ _id: string;
644
+ }> & {
645
+ __v: number;
646
+ } & {
647
+ id: string;
648
+ }> | undefined;
649
+ $restoreModifiedPathsSnapshot?: import("mongoose").SchemaDefinitionProperty<(snapshot: import("mongoose").ModifiedPathsSnapshot) => import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
650
+ _id: string;
651
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
652
+ _id: string;
653
+ } & Required<{
654
+ _id: string;
655
+ }> & {
656
+ __v: number;
657
+ } & {
658
+ id: string;
659
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
660
+ _id: string;
661
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
662
+ _id: string;
663
+ } & Required<{
664
+ _id: string;
665
+ }> & {
666
+ __v: number;
667
+ } & {
668
+ id: string;
669
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
670
+ _id: string;
671
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
672
+ _id: string;
673
+ } & Required<{
674
+ _id: string;
675
+ }> & {
676
+ __v: number;
677
+ } & {
678
+ id: string;
679
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
680
+ _id: string;
681
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
682
+ _id: string;
683
+ } & Required<{
684
+ _id: string;
685
+ }> & {
686
+ __v: number;
687
+ } & {
688
+ id: string;
689
+ }> | undefined;
690
+ $session?: import("mongoose").SchemaDefinitionProperty<(session?: import("mongoose").ClientSession | null) => import("mongoose").ClientSession | null, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
691
+ _id: string;
692
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
693
+ _id: string;
694
+ } & Required<{
695
+ _id: string;
696
+ }> & {
697
+ __v: number;
698
+ } & {
699
+ id: string;
700
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
701
+ _id: string;
702
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
703
+ _id: string;
704
+ } & Required<{
705
+ _id: string;
706
+ }> & {
707
+ __v: number;
708
+ } & {
709
+ id: string;
710
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
711
+ _id: string;
712
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
713
+ _id: string;
714
+ } & Required<{
715
+ _id: string;
716
+ }> & {
717
+ __v: number;
718
+ } & {
719
+ id: string;
720
+ }> | undefined;
721
+ $set?: import("mongoose").SchemaDefinitionProperty<{
722
+ (path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
723
+ _id: string;
724
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
725
+ _id: string;
726
+ } & Required<{
727
+ _id: string;
728
+ }> & {
729
+ __v: number;
730
+ } & {
731
+ id: string;
732
+ };
733
+ (path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
734
+ _id: string;
735
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
736
+ _id: string;
737
+ } & Required<{
738
+ _id: string;
739
+ }> & {
740
+ __v: number;
741
+ } & {
742
+ id: string;
743
+ };
744
+ (value: string | Record<string, any>): import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
745
+ _id: string;
746
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
747
+ _id: string;
748
+ } & Required<{
749
+ _id: string;
750
+ }> & {
751
+ __v: number;
752
+ } & {
753
+ id: string;
754
+ };
755
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
756
+ _id: string;
757
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
758
+ _id: string;
759
+ } & Required<{
760
+ _id: string;
761
+ }> & {
762
+ __v: number;
763
+ } & {
764
+ id: string;
765
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
766
+ _id: string;
767
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
768
+ _id: string;
769
+ } & Required<{
770
+ _id: string;
771
+ }> & {
772
+ __v: number;
773
+ } & {
774
+ id: string;
775
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
776
+ _id: string;
777
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
778
+ _id: string;
779
+ } & Required<{
780
+ _id: string;
781
+ }> & {
782
+ __v: number;
783
+ } & {
784
+ id: string;
785
+ }> | undefined;
786
+ $where?: import("mongoose").SchemaDefinitionProperty<Record<string, unknown>, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
787
+ _id: string;
788
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
789
+ _id: string;
790
+ } & Required<{
791
+ _id: string;
792
+ }> & {
793
+ __v: number;
794
+ } & {
795
+ id: string;
796
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
797
+ _id: string;
798
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
799
+ _id: string;
800
+ } & Required<{
801
+ _id: string;
802
+ }> & {
803
+ __v: number;
804
+ } & {
805
+ id: string;
806
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
807
+ _id: string;
808
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
809
+ _id: string;
810
+ } & Required<{
811
+ _id: string;
812
+ }> & {
813
+ __v: number;
814
+ } & {
815
+ id: string;
816
+ }> | undefined;
817
+ baseModelName?: import("mongoose").SchemaDefinitionProperty<string | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
818
+ _id: string;
819
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
820
+ _id: string;
821
+ } & Required<{
822
+ _id: string;
823
+ }> & {
824
+ __v: number;
825
+ } & {
826
+ id: string;
827
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
828
+ _id: string;
829
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
830
+ _id: string;
831
+ } & Required<{
832
+ _id: string;
833
+ }> & {
834
+ __v: number;
835
+ } & {
836
+ id: string;
837
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
838
+ _id: string;
839
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
840
+ _id: string;
841
+ } & Required<{
842
+ _id: string;
843
+ }> & {
844
+ __v: number;
845
+ } & {
846
+ id: string;
847
+ }> | undefined;
848
+ collection?: import("mongoose").SchemaDefinitionProperty<import("mongoose").Collection<import("bson").Document>, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
849
+ _id: string;
850
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
851
+ _id: string;
852
+ } & Required<{
853
+ _id: string;
854
+ }> & {
855
+ __v: number;
856
+ } & {
857
+ id: string;
858
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
859
+ _id: string;
860
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
861
+ _id: string;
862
+ } & Required<{
863
+ _id: string;
864
+ }> & {
865
+ __v: number;
866
+ } & {
867
+ id: string;
868
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
869
+ _id: string;
870
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
871
+ _id: string;
872
+ } & Required<{
873
+ _id: string;
874
+ }> & {
875
+ __v: number;
876
+ } & {
877
+ id: string;
878
+ }> | undefined;
879
+ db?: import("mongoose").SchemaDefinitionProperty<import("mongoose").Connection, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
880
+ _id: string;
881
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
882
+ _id: string;
883
+ } & Required<{
884
+ _id: string;
885
+ }> & {
886
+ __v: number;
887
+ } & {
888
+ id: string;
889
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
890
+ _id: string;
891
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
892
+ _id: string;
893
+ } & Required<{
894
+ _id: string;
895
+ }> & {
896
+ __v: number;
897
+ } & {
898
+ id: string;
899
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
900
+ _id: string;
901
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
902
+ _id: string;
903
+ } & Required<{
904
+ _id: string;
905
+ }> & {
906
+ __v: number;
907
+ } & {
908
+ id: string;
909
+ }> | undefined;
910
+ deleteOne?: import("mongoose").SchemaDefinitionProperty<(options?: import("mongoose").QueryOptions) => import("mongoose").Query<import("mongodb").DeleteResult, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
911
+ _id: string;
912
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
913
+ _id: string;
914
+ } & Required<{
915
+ _id: string;
916
+ }> & {
917
+ __v: number;
918
+ } & {
919
+ id: string;
920
+ }, {}, Omit<IPromoCode, "id"> & {
921
+ _id: string;
922
+ }, "deleteOne", Record<string, never>>, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
923
+ _id: string;
924
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
925
+ _id: string;
926
+ } & Required<{
927
+ _id: string;
928
+ }> & {
929
+ __v: number;
930
+ } & {
931
+ id: string;
932
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
933
+ _id: string;
934
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
935
+ _id: string;
936
+ } & Required<{
937
+ _id: string;
938
+ }> & {
939
+ __v: number;
940
+ } & {
941
+ id: string;
942
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
943
+ _id: string;
944
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
945
+ _id: string;
946
+ } & Required<{
947
+ _id: string;
948
+ }> & {
949
+ __v: number;
950
+ } & {
951
+ id: string;
952
+ }> | undefined;
953
+ depopulate?: import("mongoose").SchemaDefinitionProperty<(<Paths = {}>(path?: string | string[]) => import("mongoose").MergeType<import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
954
+ _id: string;
955
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
956
+ _id: string;
957
+ } & Required<{
958
+ _id: string;
959
+ }> & {
960
+ __v: number;
961
+ } & {
962
+ id: string;
963
+ }, Paths>), import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
964
+ _id: string;
965
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
966
+ _id: string;
967
+ } & Required<{
968
+ _id: string;
969
+ }> & {
970
+ __v: number;
971
+ } & {
972
+ id: string;
973
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
974
+ _id: string;
975
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
976
+ _id: string;
977
+ } & Required<{
978
+ _id: string;
979
+ }> & {
980
+ __v: number;
981
+ } & {
982
+ id: string;
983
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
984
+ _id: string;
985
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
986
+ _id: string;
987
+ } & Required<{
988
+ _id: string;
989
+ }> & {
990
+ __v: number;
991
+ } & {
992
+ id: string;
993
+ }> | undefined;
994
+ directModifiedPaths?: import("mongoose").SchemaDefinitionProperty<() => Array<string>, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
995
+ _id: string;
996
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
997
+ _id: string;
998
+ } & Required<{
999
+ _id: string;
1000
+ }> & {
1001
+ __v: number;
1002
+ } & {
1003
+ id: string;
1004
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1005
+ _id: string;
1006
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1007
+ _id: string;
1008
+ } & Required<{
1009
+ _id: string;
1010
+ }> & {
1011
+ __v: number;
1012
+ } & {
1013
+ id: string;
1014
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1015
+ _id: string;
1016
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1017
+ _id: string;
1018
+ } & Required<{
1019
+ _id: string;
1020
+ }> & {
1021
+ __v: number;
1022
+ } & {
1023
+ id: string;
1024
+ }> | undefined;
1025
+ equals?: import("mongoose").SchemaDefinitionProperty<(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>) => boolean, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1026
+ _id: string;
1027
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1028
+ _id: string;
1029
+ } & Required<{
1030
+ _id: string;
1031
+ }> & {
1032
+ __v: number;
1033
+ } & {
1034
+ id: string;
1035
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1036
+ _id: string;
1037
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1038
+ _id: string;
1039
+ } & Required<{
1040
+ _id: string;
1041
+ }> & {
1042
+ __v: number;
1043
+ } & {
1044
+ id: string;
1045
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1046
+ _id: string;
1047
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1048
+ _id: string;
1049
+ } & Required<{
1050
+ _id: string;
1051
+ }> & {
1052
+ __v: number;
1053
+ } & {
1054
+ id: string;
1055
+ }> | undefined;
1056
+ errors?: import("mongoose").SchemaDefinitionProperty<import("mongoose").Error.ValidationError | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1057
+ _id: string;
1058
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1059
+ _id: string;
1060
+ } & Required<{
1061
+ _id: string;
1062
+ }> & {
1063
+ __v: number;
1064
+ } & {
1065
+ id: string;
1066
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1067
+ _id: string;
1068
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1069
+ _id: string;
1070
+ } & Required<{
1071
+ _id: string;
1072
+ }> & {
1073
+ __v: number;
1074
+ } & {
1075
+ id: string;
1076
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1077
+ _id: string;
1078
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1079
+ _id: string;
1080
+ } & Required<{
1081
+ _id: string;
1082
+ }> & {
1083
+ __v: number;
1084
+ } & {
1085
+ id: string;
1086
+ }> | undefined;
1087
+ get?: import("mongoose").SchemaDefinitionProperty<{
1088
+ <T extends "type" | "value" | "code" | "createdAt" | "updatedAt" | "_id" | "expiresAt" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(path: T, type?: any, options?: any): (Omit<IPromoCode, "id"> & {
1089
+ _id: string;
1090
+ })[T];
1091
+ (path: string, type?: any, options?: any): any;
1092
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1093
+ _id: string;
1094
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1095
+ _id: string;
1096
+ } & Required<{
1097
+ _id: string;
1098
+ }> & {
1099
+ __v: number;
1100
+ } & {
1101
+ id: string;
1102
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1103
+ _id: string;
1104
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1105
+ _id: string;
1106
+ } & Required<{
1107
+ _id: string;
1108
+ }> & {
1109
+ __v: number;
1110
+ } & {
1111
+ id: string;
1112
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1113
+ _id: string;
1114
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1115
+ _id: string;
1116
+ } & Required<{
1117
+ _id: string;
1118
+ }> & {
1119
+ __v: number;
1120
+ } & {
1121
+ id: string;
1122
+ }> | undefined;
1123
+ getChanges?: import("mongoose").SchemaDefinitionProperty<() => import("mongoose").UpdateQuery<import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1124
+ _id: string;
1125
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1126
+ _id: string;
1127
+ } & Required<{
1128
+ _id: string;
1129
+ }> & {
1130
+ __v: number;
1131
+ } & {
1132
+ id: string;
1133
+ }>, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1134
+ _id: string;
1135
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1136
+ _id: string;
1137
+ } & Required<{
1138
+ _id: string;
1139
+ }> & {
1140
+ __v: number;
1141
+ } & {
1142
+ id: string;
1143
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1144
+ _id: string;
1145
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1146
+ _id: string;
1147
+ } & Required<{
1148
+ _id: string;
1149
+ }> & {
1150
+ __v: number;
1151
+ } & {
1152
+ id: string;
1153
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1154
+ _id: string;
1155
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1156
+ _id: string;
1157
+ } & Required<{
1158
+ _id: string;
1159
+ }> & {
1160
+ __v: number;
1161
+ } & {
1162
+ id: string;
1163
+ }> | undefined;
1164
+ increment?: import("mongoose").SchemaDefinitionProperty<() => import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1165
+ _id: string;
1166
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1167
+ _id: string;
1168
+ } & Required<{
1169
+ _id: string;
1170
+ }> & {
1171
+ __v: number;
1172
+ } & {
1173
+ id: string;
1174
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1175
+ _id: string;
1176
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1177
+ _id: string;
1178
+ } & Required<{
1179
+ _id: string;
1180
+ }> & {
1181
+ __v: number;
1182
+ } & {
1183
+ id: string;
1184
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1185
+ _id: string;
1186
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1187
+ _id: string;
1188
+ } & Required<{
1189
+ _id: string;
1190
+ }> & {
1191
+ __v: number;
1192
+ } & {
1193
+ id: string;
1194
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1195
+ _id: string;
1196
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1197
+ _id: string;
1198
+ } & Required<{
1199
+ _id: string;
1200
+ }> & {
1201
+ __v: number;
1202
+ } & {
1203
+ id: string;
1204
+ }> | undefined;
1205
+ init?: import("mongoose").SchemaDefinitionProperty<(obj: import("mongoose").AnyObject, opts?: import("mongoose").AnyObject) => import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1206
+ _id: string;
1207
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1208
+ _id: string;
1209
+ } & Required<{
1210
+ _id: string;
1211
+ }> & {
1212
+ __v: number;
1213
+ } & {
1214
+ id: string;
1215
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1216
+ _id: string;
1217
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1218
+ _id: string;
1219
+ } & Required<{
1220
+ _id: string;
1221
+ }> & {
1222
+ __v: number;
1223
+ } & {
1224
+ id: string;
1225
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1226
+ _id: string;
1227
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1228
+ _id: string;
1229
+ } & Required<{
1230
+ _id: string;
1231
+ }> & {
1232
+ __v: number;
1233
+ } & {
1234
+ id: string;
1235
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1236
+ _id: string;
1237
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1238
+ _id: string;
1239
+ } & Required<{
1240
+ _id: string;
1241
+ }> & {
1242
+ __v: number;
1243
+ } & {
1244
+ id: string;
1245
+ }> | undefined;
1246
+ invalidate?: import("mongoose").SchemaDefinitionProperty<{
1247
+ <T extends "type" | "value" | "code" | "createdAt" | "updatedAt" | "_id" | "expiresAt" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(path: T, errorMsg: string | NativeError, value?: any, kind?: string): NativeError | null;
1248
+ (path: string, errorMsg: string | NativeError, value?: any, kind?: string): NativeError | null;
1249
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1250
+ _id: string;
1251
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1252
+ _id: string;
1253
+ } & Required<{
1254
+ _id: string;
1255
+ }> & {
1256
+ __v: number;
1257
+ } & {
1258
+ id: string;
1259
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1260
+ _id: string;
1261
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1262
+ _id: string;
1263
+ } & Required<{
1264
+ _id: string;
1265
+ }> & {
1266
+ __v: number;
1267
+ } & {
1268
+ id: string;
1269
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1270
+ _id: string;
1271
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1272
+ _id: string;
1273
+ } & Required<{
1274
+ _id: string;
1275
+ }> & {
1276
+ __v: number;
1277
+ } & {
1278
+ id: string;
1279
+ }> | undefined;
1280
+ isDirectModified?: import("mongoose").SchemaDefinitionProperty<{
1281
+ <T extends "type" | "value" | "code" | "createdAt" | "updatedAt" | "_id" | "expiresAt" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(path: T | T[]): boolean;
1282
+ (path: string | Array<string>): boolean;
1283
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1284
+ _id: string;
1285
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1286
+ _id: string;
1287
+ } & Required<{
1288
+ _id: string;
1289
+ }> & {
1290
+ __v: number;
1291
+ } & {
1292
+ id: string;
1293
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1294
+ _id: string;
1295
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1296
+ _id: string;
1297
+ } & Required<{
1298
+ _id: string;
1299
+ }> & {
1300
+ __v: number;
1301
+ } & {
1302
+ id: string;
1303
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1304
+ _id: string;
1305
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1306
+ _id: string;
1307
+ } & Required<{
1308
+ _id: string;
1309
+ }> & {
1310
+ __v: number;
1311
+ } & {
1312
+ id: string;
1313
+ }> | undefined;
1314
+ isDirectSelected?: import("mongoose").SchemaDefinitionProperty<{
1315
+ <T extends "type" | "value" | "code" | "createdAt" | "updatedAt" | "_id" | "expiresAt" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(path: T): boolean;
1316
+ (path: string): boolean;
1317
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1318
+ _id: string;
1319
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1320
+ _id: string;
1321
+ } & Required<{
1322
+ _id: string;
1323
+ }> & {
1324
+ __v: number;
1325
+ } & {
1326
+ id: string;
1327
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1328
+ _id: string;
1329
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1330
+ _id: string;
1331
+ } & Required<{
1332
+ _id: string;
1333
+ }> & {
1334
+ __v: number;
1335
+ } & {
1336
+ id: string;
1337
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1338
+ _id: string;
1339
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1340
+ _id: string;
1341
+ } & Required<{
1342
+ _id: string;
1343
+ }> & {
1344
+ __v: number;
1345
+ } & {
1346
+ id: string;
1347
+ }> | undefined;
1348
+ isInit?: import("mongoose").SchemaDefinitionProperty<{
1349
+ <T extends "type" | "value" | "code" | "createdAt" | "updatedAt" | "_id" | "expiresAt" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(path: T): boolean;
1350
+ (path: string): boolean;
1351
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1352
+ _id: string;
1353
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1354
+ _id: string;
1355
+ } & Required<{
1356
+ _id: string;
1357
+ }> & {
1358
+ __v: number;
1359
+ } & {
1360
+ id: string;
1361
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1362
+ _id: string;
1363
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1364
+ _id: string;
1365
+ } & Required<{
1366
+ _id: string;
1367
+ }> & {
1368
+ __v: number;
1369
+ } & {
1370
+ id: string;
1371
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1372
+ _id: string;
1373
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1374
+ _id: string;
1375
+ } & Required<{
1376
+ _id: string;
1377
+ }> & {
1378
+ __v: number;
1379
+ } & {
1380
+ id: string;
1381
+ }> | undefined;
1382
+ isModified?: import("mongoose").SchemaDefinitionProperty<{
1383
+ <T extends "type" | "value" | "code" | "createdAt" | "updatedAt" | "_id" | "expiresAt" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(path?: T | T[] | undefined, options?: {
1384
+ ignoreAtomics?: boolean;
1385
+ } | null): boolean;
1386
+ (path?: string | Array<string>, options?: {
1387
+ ignoreAtomics?: boolean;
1388
+ } | null): boolean;
1389
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1390
+ _id: string;
1391
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1392
+ _id: string;
1393
+ } & Required<{
1394
+ _id: string;
1395
+ }> & {
1396
+ __v: number;
1397
+ } & {
1398
+ id: string;
1399
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1400
+ _id: string;
1401
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1402
+ _id: string;
1403
+ } & Required<{
1404
+ _id: string;
1405
+ }> & {
1406
+ __v: number;
1407
+ } & {
1408
+ id: string;
1409
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1410
+ _id: string;
1411
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1412
+ _id: string;
1413
+ } & Required<{
1414
+ _id: string;
1415
+ }> & {
1416
+ __v: number;
1417
+ } & {
1418
+ id: string;
1419
+ }> | undefined;
1420
+ isNew?: import("mongoose").SchemaDefinitionProperty<boolean, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1421
+ _id: string;
1422
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1423
+ _id: string;
1424
+ } & Required<{
1425
+ _id: string;
1426
+ }> & {
1427
+ __v: number;
1428
+ } & {
1429
+ id: string;
1430
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1431
+ _id: string;
1432
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1433
+ _id: string;
1434
+ } & Required<{
1435
+ _id: string;
1436
+ }> & {
1437
+ __v: number;
1438
+ } & {
1439
+ id: string;
1440
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1441
+ _id: string;
1442
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1443
+ _id: string;
1444
+ } & Required<{
1445
+ _id: string;
1446
+ }> & {
1447
+ __v: number;
1448
+ } & {
1449
+ id: string;
1450
+ }> | undefined;
1451
+ isSelected?: import("mongoose").SchemaDefinitionProperty<{
1452
+ <T extends "type" | "value" | "code" | "createdAt" | "updatedAt" | "_id" | "expiresAt" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(path: T): boolean;
1453
+ (path: string): boolean;
1454
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1455
+ _id: string;
1456
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1457
+ _id: string;
1458
+ } & Required<{
1459
+ _id: string;
1460
+ }> & {
1461
+ __v: number;
1462
+ } & {
1463
+ id: string;
1464
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1465
+ _id: string;
1466
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1467
+ _id: string;
1468
+ } & Required<{
1469
+ _id: string;
1470
+ }> & {
1471
+ __v: number;
1472
+ } & {
1473
+ id: string;
1474
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1475
+ _id: string;
1476
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1477
+ _id: string;
1478
+ } & Required<{
1479
+ _id: string;
1480
+ }> & {
1481
+ __v: number;
1482
+ } & {
1483
+ id: string;
1484
+ }> | undefined;
1485
+ markModified?: import("mongoose").SchemaDefinitionProperty<{
1486
+ <T extends "type" | "value" | "code" | "createdAt" | "updatedAt" | "_id" | "expiresAt" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(path: T, scope?: any): void;
1487
+ (path: string, scope?: any): void;
1488
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1489
+ _id: string;
1490
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1491
+ _id: string;
1492
+ } & Required<{
1493
+ _id: string;
1494
+ }> & {
1495
+ __v: number;
1496
+ } & {
1497
+ id: string;
1498
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1499
+ _id: string;
1500
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1501
+ _id: string;
1502
+ } & Required<{
1503
+ _id: string;
1504
+ }> & {
1505
+ __v: number;
1506
+ } & {
1507
+ id: string;
1508
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1509
+ _id: string;
1510
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1511
+ _id: string;
1512
+ } & Required<{
1513
+ _id: string;
1514
+ }> & {
1515
+ __v: number;
1516
+ } & {
1517
+ id: string;
1518
+ }> | undefined;
1519
+ model?: import("mongoose").SchemaDefinitionProperty<{
1520
+ <ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, import("mongoose").DefaultSchemaOptions> & {
1521
+ _id: import("mongoose").Types.ObjectId;
1522
+ } & {
1523
+ __v: number;
1524
+ } & {
1525
+ id: string;
1526
+ }, any, unknown>>(name: string): ModelType;
1527
+ <ModelType = Model<Omit<IPromoCode, "id"> & {
1528
+ _id: string;
1529
+ }, {}, {}, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1530
+ _id: string;
1531
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1532
+ _id: string;
1533
+ } & Required<{
1534
+ _id: string;
1535
+ }> & {
1536
+ __v: number;
1537
+ } & {
1538
+ id: string;
1539
+ }, any, Omit<IPromoCode, "id"> & {
1540
+ _id: string;
1541
+ }>>(): ModelType;
1542
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1543
+ _id: string;
1544
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1545
+ _id: string;
1546
+ } & Required<{
1547
+ _id: string;
1548
+ }> & {
1549
+ __v: number;
1550
+ } & {
1551
+ id: string;
1552
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1553
+ _id: string;
1554
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1555
+ _id: string;
1556
+ } & Required<{
1557
+ _id: string;
1558
+ }> & {
1559
+ __v: number;
1560
+ } & {
1561
+ id: string;
1562
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1563
+ _id: string;
1564
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1565
+ _id: string;
1566
+ } & Required<{
1567
+ _id: string;
1568
+ }> & {
1569
+ __v: number;
1570
+ } & {
1571
+ id: string;
1572
+ }> | undefined;
1573
+ modifiedPaths?: import("mongoose").SchemaDefinitionProperty<(options?: {
1574
+ includeChildren?: boolean;
1575
+ }) => Array<string>, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1576
+ _id: string;
1577
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1578
+ _id: string;
1579
+ } & Required<{
1580
+ _id: string;
1581
+ }> & {
1582
+ __v: number;
1583
+ } & {
1584
+ id: string;
1585
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1586
+ _id: string;
1587
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1588
+ _id: string;
1589
+ } & Required<{
1590
+ _id: string;
1591
+ }> & {
1592
+ __v: number;
1593
+ } & {
1594
+ id: string;
1595
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1596
+ _id: string;
1597
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1598
+ _id: string;
1599
+ } & Required<{
1600
+ _id: string;
1601
+ }> & {
1602
+ __v: number;
1603
+ } & {
1604
+ id: string;
1605
+ }> | undefined;
1606
+ overwrite?: import("mongoose").SchemaDefinitionProperty<(obj: import("mongoose").AnyObject) => import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1607
+ _id: string;
1608
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1609
+ _id: string;
1610
+ } & Required<{
1611
+ _id: string;
1612
+ }> & {
1613
+ __v: number;
1614
+ } & {
1615
+ id: string;
1616
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1617
+ _id: string;
1618
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1619
+ _id: string;
1620
+ } & Required<{
1621
+ _id: string;
1622
+ }> & {
1623
+ __v: number;
1624
+ } & {
1625
+ id: string;
1626
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1627
+ _id: string;
1628
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1629
+ _id: string;
1630
+ } & Required<{
1631
+ _id: string;
1632
+ }> & {
1633
+ __v: number;
1634
+ } & {
1635
+ id: string;
1636
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1637
+ _id: string;
1638
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1639
+ _id: string;
1640
+ } & Required<{
1641
+ _id: string;
1642
+ }> & {
1643
+ __v: number;
1644
+ } & {
1645
+ id: string;
1646
+ }> | undefined;
1647
+ $parent?: import("mongoose").SchemaDefinitionProperty<() => import("mongoose").Document | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1648
+ _id: string;
1649
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1650
+ _id: string;
1651
+ } & Required<{
1652
+ _id: string;
1653
+ }> & {
1654
+ __v: number;
1655
+ } & {
1656
+ id: string;
1657
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1658
+ _id: string;
1659
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1660
+ _id: string;
1661
+ } & Required<{
1662
+ _id: string;
1663
+ }> & {
1664
+ __v: number;
1665
+ } & {
1666
+ id: string;
1667
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1668
+ _id: string;
1669
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1670
+ _id: string;
1671
+ } & Required<{
1672
+ _id: string;
1673
+ }> & {
1674
+ __v: number;
1675
+ } & {
1676
+ id: string;
1677
+ }> | undefined;
1678
+ populate?: import("mongoose").SchemaDefinitionProperty<{
1679
+ <Paths = {}>(path: string | import("mongoose").PopulateOptions | (string | import("mongoose").PopulateOptions)[]): Promise<import("mongoose").MergeType<import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1680
+ _id: string;
1681
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1682
+ _id: string;
1683
+ } & Required<{
1684
+ _id: string;
1685
+ }> & {
1686
+ __v: number;
1687
+ } & {
1688
+ id: string;
1689
+ }, Paths>>;
1690
+ <Paths = {}>(path: string, select?: string | import("mongoose").AnyObject, model?: Model<any>, match?: import("mongoose").AnyObject, options?: import("mongoose").PopulateOptions): Promise<import("mongoose").MergeType<import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1691
+ _id: string;
1692
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1693
+ _id: string;
1694
+ } & Required<{
1695
+ _id: string;
1696
+ }> & {
1697
+ __v: number;
1698
+ } & {
1699
+ id: string;
1700
+ }, Paths>>;
1701
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1702
+ _id: string;
1703
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1704
+ _id: string;
1705
+ } & Required<{
1706
+ _id: string;
1707
+ }> & {
1708
+ __v: number;
1709
+ } & {
1710
+ id: string;
1711
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1712
+ _id: string;
1713
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1714
+ _id: string;
1715
+ } & Required<{
1716
+ _id: string;
1717
+ }> & {
1718
+ __v: number;
1719
+ } & {
1720
+ id: string;
1721
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1722
+ _id: string;
1723
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1724
+ _id: string;
1725
+ } & Required<{
1726
+ _id: string;
1727
+ }> & {
1728
+ __v: number;
1729
+ } & {
1730
+ id: string;
1731
+ }> | undefined;
1732
+ populated?: import("mongoose").SchemaDefinitionProperty<(path: string) => any, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1733
+ _id: string;
1734
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1735
+ _id: string;
1736
+ } & Required<{
1737
+ _id: string;
1738
+ }> & {
1739
+ __v: number;
1740
+ } & {
1741
+ id: string;
1742
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1743
+ _id: string;
1744
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1745
+ _id: string;
1746
+ } & Required<{
1747
+ _id: string;
1748
+ }> & {
1749
+ __v: number;
1750
+ } & {
1751
+ id: string;
1752
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1753
+ _id: string;
1754
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1755
+ _id: string;
1756
+ } & Required<{
1757
+ _id: string;
1758
+ }> & {
1759
+ __v: number;
1760
+ } & {
1761
+ id: string;
1762
+ }> | undefined;
1763
+ replaceOne?: import("mongoose").SchemaDefinitionProperty<(replacement?: import("mongoose").AnyObject, options?: import("mongoose").QueryOptions | null) => import("mongoose").Query<any, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1764
+ _id: string;
1765
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1766
+ _id: string;
1767
+ } & Required<{
1768
+ _id: string;
1769
+ }> & {
1770
+ __v: number;
1771
+ } & {
1772
+ id: string;
1773
+ }, {}, unknown, "find", Record<string, never>>, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1774
+ _id: string;
1775
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1776
+ _id: string;
1777
+ } & Required<{
1778
+ _id: string;
1779
+ }> & {
1780
+ __v: number;
1781
+ } & {
1782
+ id: string;
1783
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1784
+ _id: string;
1785
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1786
+ _id: string;
1787
+ } & Required<{
1788
+ _id: string;
1789
+ }> & {
1790
+ __v: number;
1791
+ } & {
1792
+ id: string;
1793
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1794
+ _id: string;
1795
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1796
+ _id: string;
1797
+ } & Required<{
1798
+ _id: string;
1799
+ }> & {
1800
+ __v: number;
1801
+ } & {
1802
+ id: string;
1803
+ }> | undefined;
1804
+ save?: import("mongoose").SchemaDefinitionProperty<(options?: import("mongoose").SaveOptions) => Promise<import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1805
+ _id: string;
1806
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1807
+ _id: string;
1808
+ } & Required<{
1809
+ _id: string;
1810
+ }> & {
1811
+ __v: number;
1812
+ } & {
1813
+ id: string;
1814
+ }>, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1815
+ _id: string;
1816
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1817
+ _id: string;
1818
+ } & Required<{
1819
+ _id: string;
1820
+ }> & {
1821
+ __v: number;
1822
+ } & {
1823
+ id: string;
1824
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1825
+ _id: string;
1826
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1827
+ _id: string;
1828
+ } & Required<{
1829
+ _id: string;
1830
+ }> & {
1831
+ __v: number;
1832
+ } & {
1833
+ id: string;
1834
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1835
+ _id: string;
1836
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1837
+ _id: string;
1838
+ } & Required<{
1839
+ _id: string;
1840
+ }> & {
1841
+ __v: number;
1842
+ } & {
1843
+ id: string;
1844
+ }> | undefined;
1845
+ schema?: import("mongoose").SchemaDefinitionProperty<Schema<any, Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
1846
+ [x: number]: unknown;
1847
+ [x: symbol]: unknown;
1848
+ [x: string]: unknown;
1849
+ }, import("mongoose").Document<unknown, {}, {
1850
+ [x: number]: unknown;
1851
+ [x: symbol]: unknown;
1852
+ [x: string]: unknown;
1853
+ }, {
1854
+ id: string;
1855
+ }, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<{
1856
+ [x: number]: unknown;
1857
+ [x: symbol]: unknown;
1858
+ [x: string]: unknown;
1859
+ } & Required<{
1860
+ _id: unknown;
1861
+ }> & {
1862
+ __v: number;
1863
+ }, "id"> & {
1864
+ id: string;
1865
+ }, {
1866
+ [path: string]: import("mongoose").SchemaDefinitionProperty<undefined, any, any>;
1867
+ } | {
1868
+ [x: string]: import("mongoose").SchemaDefinitionProperty<any, any, import("mongoose").Document<unknown, {}, {
1869
+ [x: number]: unknown;
1870
+ [x: symbol]: unknown;
1871
+ [x: string]: unknown;
1872
+ }, {
1873
+ id: string;
1874
+ }, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<{
1875
+ [x: number]: unknown;
1876
+ [x: symbol]: unknown;
1877
+ [x: string]: unknown;
1878
+ } & Required<{
1879
+ _id: unknown;
1880
+ }> & {
1881
+ __v: number;
1882
+ }, "id"> & {
1883
+ id: string;
1884
+ }> | undefined;
1885
+ }, {
1886
+ [x: number]: {};
1887
+ [x: symbol]: {};
1888
+ [x: string]: {};
1889
+ } & Required<{
1890
+ _id: unknown;
1891
+ }> & {
1892
+ __v: number;
1893
+ }>, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1894
+ _id: string;
1895
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1896
+ _id: string;
1897
+ } & Required<{
1898
+ _id: string;
1899
+ }> & {
1900
+ __v: number;
1901
+ } & {
1902
+ id: string;
1903
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1904
+ _id: string;
1905
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1906
+ _id: string;
1907
+ } & Required<{
1908
+ _id: string;
1909
+ }> & {
1910
+ __v: number;
1911
+ } & {
1912
+ id: string;
1913
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1914
+ _id: string;
1915
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1916
+ _id: string;
1917
+ } & Required<{
1918
+ _id: string;
1919
+ }> & {
1920
+ __v: number;
1921
+ } & {
1922
+ id: string;
1923
+ }> | undefined;
1924
+ set?: import("mongoose").SchemaDefinitionProperty<{
1925
+ <T extends "type" | "value" | "code" | "createdAt" | "updatedAt" | "_id" | "expiresAt" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(path: T, val: (Omit<IPromoCode, "id"> & {
1926
+ _id: string;
1927
+ })[T], type: any, options?: import("mongoose").DocumentSetOptions): import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1928
+ _id: string;
1929
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1930
+ _id: string;
1931
+ } & Required<{
1932
+ _id: string;
1933
+ }> & {
1934
+ __v: number;
1935
+ } & {
1936
+ id: string;
1937
+ };
1938
+ (path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1939
+ _id: string;
1940
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1941
+ _id: string;
1942
+ } & Required<{
1943
+ _id: string;
1944
+ }> & {
1945
+ __v: number;
1946
+ } & {
1947
+ id: string;
1948
+ };
1949
+ (path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1950
+ _id: string;
1951
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1952
+ _id: string;
1953
+ } & Required<{
1954
+ _id: string;
1955
+ }> & {
1956
+ __v: number;
1957
+ } & {
1958
+ id: string;
1959
+ };
1960
+ (value: string | Record<string, any>): import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1961
+ _id: string;
1962
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1963
+ _id: string;
1964
+ } & Required<{
1965
+ _id: string;
1966
+ }> & {
1967
+ __v: number;
1968
+ } & {
1969
+ id: string;
1970
+ };
1971
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1972
+ _id: string;
1973
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1974
+ _id: string;
1975
+ } & Required<{
1976
+ _id: string;
1977
+ }> & {
1978
+ __v: number;
1979
+ } & {
1980
+ id: string;
1981
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1982
+ _id: string;
1983
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1984
+ _id: string;
1985
+ } & Required<{
1986
+ _id: string;
1987
+ }> & {
1988
+ __v: number;
1989
+ } & {
1990
+ id: string;
1991
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
1992
+ _id: string;
1993
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
1994
+ _id: string;
1995
+ } & Required<{
1996
+ _id: string;
1997
+ }> & {
1998
+ __v: number;
1999
+ } & {
2000
+ id: string;
2001
+ }> | undefined;
2002
+ toJSON?: import("mongoose").SchemaDefinitionProperty<{
2003
+ (options: import("mongoose").ToObjectOptions & {
2004
+ flattenMaps: false;
2005
+ flattenObjectIds: true;
2006
+ virtuals: true;
2007
+ versionKey: false;
2008
+ }): {
2009
+ type?: import("../index.js").DiscountType | undefined;
2010
+ value?: number | undefined;
2011
+ code: string;
2012
+ createdAt: Date;
2013
+ updatedAt: Date;
2014
+ _id: string;
2015
+ expiresAt?: Date | undefined;
2016
+ discountType: import("../index.js").DiscountType;
2017
+ discountValue: number;
2018
+ trialExtensionDays?: number | undefined;
2019
+ validFrom: Date;
2020
+ validUntil: Date;
2021
+ isActive: boolean;
2022
+ maxUses?: number | undefined;
2023
+ currentUses: number;
2024
+ maxUsesPerAccount: number;
2025
+ applicablePlans?: SubscriptionPlan[] | undefined;
2026
+ newAccountsOnly: boolean;
2027
+ minPurchaseAmount?: number | undefined;
2028
+ campaign?: string | undefined;
2029
+ createdBy: string;
2030
+ };
2031
+ (options: import("mongoose").ToObjectOptions & {
2032
+ flattenMaps: false;
2033
+ flattenObjectIds: true;
2034
+ virtuals: true;
2035
+ }): {
2036
+ type?: import("../index.js").DiscountType | undefined;
2037
+ value?: number | undefined;
2038
+ code: string;
2039
+ createdAt: Date;
2040
+ updatedAt: Date;
2041
+ expiresAt?: Date | undefined;
2042
+ discountType: import("../index.js").DiscountType;
2043
+ discountValue: number;
2044
+ trialExtensionDays?: number | undefined;
2045
+ validFrom: Date;
2046
+ validUntil: Date;
2047
+ isActive: boolean;
2048
+ maxUses?: number | undefined;
2049
+ currentUses: number;
2050
+ maxUsesPerAccount: number;
2051
+ applicablePlans?: SubscriptionPlan[] | undefined;
2052
+ newAccountsOnly: boolean;
2053
+ minPurchaseAmount?: number | undefined;
2054
+ campaign?: string | undefined;
2055
+ createdBy: string;
2056
+ _id: string;
2057
+ };
2058
+ (options: import("mongoose").ToObjectOptions & {
2059
+ flattenMaps: false;
2060
+ flattenObjectIds: false;
2061
+ virtuals: true;
2062
+ versionKey: false;
2063
+ }): Omit<Omit<IPromoCode, "id"> & {
2064
+ _id: string;
2065
+ } & Required<{
2066
+ _id: string;
2067
+ }>, "__v">;
2068
+ (options: import("mongoose").ToObjectOptions & {
2069
+ flattenMaps: false;
2070
+ flattenObjectIds: false;
2071
+ virtuals: true;
2072
+ }): Omit<IPromoCode, "id"> & {
2073
+ _id: string;
2074
+ } & Required<{
2075
+ _id: string;
2076
+ }>;
2077
+ (options: import("mongoose").ToObjectOptions & {
2078
+ flattenMaps: false;
2079
+ flattenObjectIds: true;
2080
+ virtuals: false;
2081
+ versionKey: false;
2082
+ }): {
2083
+ type?: import("../index.js").DiscountType | undefined;
2084
+ value?: number | undefined;
2085
+ code: string;
2086
+ createdAt: Date;
2087
+ updatedAt: Date;
2088
+ _id: string;
2089
+ expiresAt?: Date | undefined;
2090
+ discountType: import("../index.js").DiscountType;
2091
+ discountValue: number;
2092
+ trialExtensionDays?: number | undefined;
2093
+ validFrom: Date;
2094
+ validUntil: Date;
2095
+ isActive: boolean;
2096
+ maxUses?: number | undefined;
2097
+ currentUses: number;
2098
+ maxUsesPerAccount: number;
2099
+ applicablePlans?: SubscriptionPlan[] | undefined;
2100
+ newAccountsOnly: boolean;
2101
+ minPurchaseAmount?: number | undefined;
2102
+ campaign?: string | undefined;
2103
+ createdBy: string;
2104
+ };
2105
+ (options: import("mongoose").ToObjectOptions & {
2106
+ flattenMaps: false;
2107
+ flattenObjectIds: true;
2108
+ virtuals: false;
2109
+ }): {
2110
+ type?: import("../index.js").DiscountType | undefined;
2111
+ value?: number | undefined;
2112
+ code: string;
2113
+ createdAt: Date;
2114
+ updatedAt: Date;
2115
+ expiresAt?: Date | undefined;
2116
+ discountType: import("../index.js").DiscountType;
2117
+ discountValue: number;
2118
+ trialExtensionDays?: number | undefined;
2119
+ validFrom: Date;
2120
+ validUntil: Date;
2121
+ isActive: boolean;
2122
+ maxUses?: number | undefined;
2123
+ currentUses: number;
2124
+ maxUsesPerAccount: number;
2125
+ applicablePlans?: SubscriptionPlan[] | undefined;
2126
+ newAccountsOnly: boolean;
2127
+ minPurchaseAmount?: number | undefined;
2128
+ campaign?: string | undefined;
2129
+ createdBy: string;
2130
+ _id: string;
2131
+ };
2132
+ (options: import("mongoose").ToObjectOptions & {
2133
+ flattenMaps: false;
2134
+ flattenObjectIds: false;
2135
+ virtuals: false;
2136
+ versionKey: false;
2137
+ }): Omit<Omit<IPromoCode, "id"> & {
2138
+ _id: string;
2139
+ } & Required<{
2140
+ _id: string;
2141
+ }>, "__v">;
2142
+ (options: import("mongoose").ToObjectOptions & {
2143
+ flattenMaps: false;
2144
+ flattenObjectIds: false;
2145
+ virtuals: false;
2146
+ }): Omit<IPromoCode, "id"> & {
2147
+ _id: string;
2148
+ } & Required<{
2149
+ _id: string;
2150
+ }>;
2151
+ (options: import("mongoose").ToObjectOptions & {
2152
+ flattenMaps: true;
2153
+ flattenObjectIds: true;
2154
+ virtuals: true;
2155
+ versionKey: false;
2156
+ }): {
2157
+ type?: import("../index.js").DiscountType | undefined;
2158
+ value?: number | undefined;
2159
+ code: string;
2160
+ createdAt: Date;
2161
+ updatedAt: Date;
2162
+ _id: string;
2163
+ expiresAt?: Date | undefined;
2164
+ discountType: import("../index.js").DiscountType;
2165
+ discountValue: number;
2166
+ trialExtensionDays?: number | undefined;
2167
+ validFrom: Date;
2168
+ validUntil: Date;
2169
+ isActive: boolean;
2170
+ maxUses?: number | undefined;
2171
+ currentUses: number;
2172
+ maxUsesPerAccount: number;
2173
+ applicablePlans?: SubscriptionPlan[] | undefined;
2174
+ newAccountsOnly: boolean;
2175
+ minPurchaseAmount?: number | undefined;
2176
+ campaign?: string | undefined;
2177
+ createdBy: string;
2178
+ };
2179
+ (options: import("mongoose").ToObjectOptions & {
2180
+ flattenMaps: true;
2181
+ flattenObjectIds: true;
2182
+ virtuals: true;
2183
+ }): {
2184
+ type?: import("../index.js").DiscountType | undefined;
2185
+ value?: number | undefined;
2186
+ code: string;
2187
+ createdAt: Date;
2188
+ updatedAt: Date;
2189
+ expiresAt?: Date | undefined;
2190
+ discountType: import("../index.js").DiscountType;
2191
+ discountValue: number;
2192
+ trialExtensionDays?: number | undefined;
2193
+ validFrom: Date;
2194
+ validUntil: Date;
2195
+ isActive: boolean;
2196
+ maxUses?: number | undefined;
2197
+ currentUses: number;
2198
+ maxUsesPerAccount: number;
2199
+ applicablePlans?: SubscriptionPlan[] | undefined;
2200
+ newAccountsOnly: boolean;
2201
+ minPurchaseAmount?: number | undefined;
2202
+ campaign?: string | undefined;
2203
+ createdBy: string;
2204
+ _id: string;
2205
+ };
2206
+ (options: import("mongoose").ToObjectOptions & {
2207
+ flattenMaps: true;
2208
+ flattenObjectIds: false;
2209
+ virtuals: true;
2210
+ versionKey: false;
2211
+ }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2212
+ _id: string;
2213
+ } & Required<{
2214
+ _id: string;
2215
+ }>>, "__v">;
2216
+ (options: import("mongoose").ToObjectOptions & {
2217
+ flattenMaps: true;
2218
+ flattenObjectIds: false;
2219
+ virtuals: true;
2220
+ }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2221
+ _id: string;
2222
+ } & Required<{
2223
+ _id: string;
2224
+ }>>;
2225
+ (options: import("mongoose").ToObjectOptions & {
2226
+ flattenMaps: true;
2227
+ flattenObjectIds: true;
2228
+ virtuals: false;
2229
+ versionKey: false;
2230
+ }): {
2231
+ type?: import("../index.js").DiscountType | undefined;
2232
+ value?: number | undefined;
2233
+ code: string;
2234
+ createdAt: Date;
2235
+ updatedAt: Date;
2236
+ _id: string;
2237
+ expiresAt?: Date | undefined;
2238
+ discountType: import("../index.js").DiscountType;
2239
+ discountValue: number;
2240
+ trialExtensionDays?: number | undefined;
2241
+ validFrom: Date;
2242
+ validUntil: Date;
2243
+ isActive: boolean;
2244
+ maxUses?: number | undefined;
2245
+ currentUses: number;
2246
+ maxUsesPerAccount: number;
2247
+ applicablePlans?: SubscriptionPlan[] | undefined;
2248
+ newAccountsOnly: boolean;
2249
+ minPurchaseAmount?: number | undefined;
2250
+ campaign?: string | undefined;
2251
+ createdBy: string;
2252
+ };
2253
+ (options: import("mongoose").ToObjectOptions & {
2254
+ flattenMaps: true;
2255
+ flattenObjectIds: true;
2256
+ virtuals: false;
2257
+ }): {
2258
+ type?: import("../index.js").DiscountType | undefined;
2259
+ value?: number | undefined;
2260
+ code: string;
2261
+ createdAt: Date;
2262
+ updatedAt: Date;
2263
+ expiresAt?: Date | undefined;
2264
+ discountType: import("../index.js").DiscountType;
2265
+ discountValue: number;
2266
+ trialExtensionDays?: number | undefined;
2267
+ validFrom: Date;
2268
+ validUntil: Date;
2269
+ isActive: boolean;
2270
+ maxUses?: number | undefined;
2271
+ currentUses: number;
2272
+ maxUsesPerAccount: number;
2273
+ applicablePlans?: SubscriptionPlan[] | undefined;
2274
+ newAccountsOnly: boolean;
2275
+ minPurchaseAmount?: number | undefined;
2276
+ campaign?: string | undefined;
2277
+ createdBy: string;
2278
+ _id: string;
2279
+ };
2280
+ (options: import("mongoose").ToObjectOptions & {
2281
+ flattenMaps: true;
2282
+ flattenObjectIds: false;
2283
+ virtuals: false;
2284
+ versionKey: false;
2285
+ }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2286
+ _id: string;
2287
+ } & Required<{
2288
+ _id: string;
2289
+ }>>, "__v">;
2290
+ (options: import("mongoose").ToObjectOptions & {
2291
+ flattenMaps: true;
2292
+ flattenObjectIds: false;
2293
+ virtuals: false;
2294
+ }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2295
+ _id: string;
2296
+ } & Required<{
2297
+ _id: string;
2298
+ }>>;
2299
+ (options: import("mongoose").ToObjectOptions & {
2300
+ flattenMaps: true;
2301
+ flattenObjectIds: true;
2302
+ virtuals: true;
2303
+ }): {
2304
+ type?: import("../index.js").DiscountType | undefined;
2305
+ value?: number | undefined;
2306
+ code: string;
2307
+ createdAt: Date;
2308
+ updatedAt: Date;
2309
+ expiresAt?: Date | undefined;
2310
+ discountType: import("../index.js").DiscountType;
2311
+ discountValue: number;
2312
+ trialExtensionDays?: number | undefined;
2313
+ validFrom: Date;
2314
+ validUntil: Date;
2315
+ isActive: boolean;
2316
+ maxUses?: number | undefined;
2317
+ currentUses: number;
2318
+ maxUsesPerAccount: number;
2319
+ applicablePlans?: SubscriptionPlan[] | undefined;
2320
+ newAccountsOnly: boolean;
2321
+ minPurchaseAmount?: number | undefined;
2322
+ campaign?: string | undefined;
2323
+ createdBy: string;
2324
+ _id: string;
2325
+ };
2326
+ (options: import("mongoose").ToObjectOptions & {
2327
+ flattenMaps: true;
2328
+ flattenObjectIds: true;
2329
+ }): {
2330
+ type?: import("../index.js").DiscountType | undefined;
2331
+ value?: number | undefined;
2332
+ code: string;
2333
+ createdAt: Date;
2334
+ updatedAt: Date;
2335
+ expiresAt?: Date | undefined;
2336
+ discountType: import("../index.js").DiscountType;
2337
+ discountValue: number;
2338
+ trialExtensionDays?: number | undefined;
2339
+ validFrom: Date;
2340
+ validUntil: Date;
2341
+ isActive: boolean;
2342
+ maxUses?: number | undefined;
2343
+ currentUses: number;
2344
+ maxUsesPerAccount: number;
2345
+ applicablePlans?: SubscriptionPlan[] | undefined;
2346
+ newAccountsOnly: boolean;
2347
+ minPurchaseAmount?: number | undefined;
2348
+ campaign?: string | undefined;
2349
+ createdBy: string;
2350
+ _id: string;
2351
+ };
2352
+ (options: import("mongoose").ToObjectOptions & {
2353
+ flattenObjectIds: true;
2354
+ virtuals: true;
2355
+ }): {
2356
+ type?: import("../index.js").DiscountType | undefined;
2357
+ value?: number | undefined;
2358
+ code: string;
2359
+ createdAt: Date;
2360
+ updatedAt: Date;
2361
+ expiresAt?: Date | undefined;
2362
+ discountType: import("../index.js").DiscountType;
2363
+ discountValue: number;
2364
+ trialExtensionDays?: number | undefined;
2365
+ validFrom: Date;
2366
+ validUntil: Date;
2367
+ isActive: boolean;
2368
+ maxUses?: number | undefined;
2369
+ currentUses: number;
2370
+ maxUsesPerAccount: number;
2371
+ applicablePlans?: SubscriptionPlan[] | undefined;
2372
+ newAccountsOnly: boolean;
2373
+ minPurchaseAmount?: number | undefined;
2374
+ campaign?: string | undefined;
2375
+ createdBy: string;
2376
+ _id: string;
2377
+ };
2378
+ (options: import("mongoose").ToObjectOptions & {
2379
+ flattenObjectIds: true;
2380
+ }): {
2381
+ type?: import("../index.js").DiscountType | undefined;
2382
+ value?: number | undefined;
2383
+ code: string;
2384
+ createdAt: Date;
2385
+ updatedAt: Date;
2386
+ expiresAt?: Date | undefined;
2387
+ discountType: import("../index.js").DiscountType;
2388
+ discountValue: number;
2389
+ trialExtensionDays?: number | undefined;
2390
+ validFrom: Date;
2391
+ validUntil: Date;
2392
+ isActive: boolean;
2393
+ maxUses?: number | undefined;
2394
+ currentUses: number;
2395
+ maxUsesPerAccount: number;
2396
+ applicablePlans?: SubscriptionPlan[] | undefined;
2397
+ newAccountsOnly: boolean;
2398
+ minPurchaseAmount?: number | undefined;
2399
+ campaign?: string | undefined;
2400
+ createdBy: string;
2401
+ _id: string;
2402
+ };
2403
+ (options: import("mongoose").ToObjectOptions & {
2404
+ flattenMaps: true;
2405
+ virtuals: true;
2406
+ }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2407
+ _id: string;
2408
+ } & Required<{
2409
+ _id: string;
2410
+ }>>;
2411
+ (options: import("mongoose").ToObjectOptions & {
2412
+ flattenMaps: true;
2413
+ }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2414
+ _id: string;
2415
+ } & Required<{
2416
+ _id: string;
2417
+ }>>;
2418
+ (options: import("mongoose").ToObjectOptions & {
2419
+ versionKey: false;
2420
+ flattenMaps: true;
2421
+ flattenObjectIds: true;
2422
+ virtuals: true;
2423
+ }): {
2424
+ type?: import("../index.js").DiscountType | undefined;
2425
+ value?: number | undefined;
2426
+ code: string;
2427
+ createdAt: Date;
2428
+ updatedAt: Date;
2429
+ _id: string;
2430
+ expiresAt?: Date | undefined;
2431
+ discountType: import("../index.js").DiscountType;
2432
+ discountValue: number;
2433
+ trialExtensionDays?: number | undefined;
2434
+ validFrom: Date;
2435
+ validUntil: Date;
2436
+ isActive: boolean;
2437
+ maxUses?: number | undefined;
2438
+ currentUses: number;
2439
+ maxUsesPerAccount: number;
2440
+ applicablePlans?: SubscriptionPlan[] | undefined;
2441
+ newAccountsOnly: boolean;
2442
+ minPurchaseAmount?: number | undefined;
2443
+ campaign?: string | undefined;
2444
+ createdBy: string;
2445
+ };
2446
+ (options: import("mongoose").ToObjectOptions & {
2447
+ versionKey: false;
2448
+ flattenMaps: false;
2449
+ flattenObjectIds: true;
2450
+ virtuals: true;
2451
+ }): {
2452
+ type?: import("../index.js").DiscountType | undefined;
2453
+ value?: number | undefined;
2454
+ code: string;
2455
+ createdAt: Date;
2456
+ updatedAt: Date;
2457
+ _id: string;
2458
+ expiresAt?: Date | undefined;
2459
+ discountType: import("../index.js").DiscountType;
2460
+ discountValue: number;
2461
+ trialExtensionDays?: number | undefined;
2462
+ validFrom: Date;
2463
+ validUntil: Date;
2464
+ isActive: boolean;
2465
+ maxUses?: number | undefined;
2466
+ currentUses: number;
2467
+ maxUsesPerAccount: number;
2468
+ applicablePlans?: SubscriptionPlan[] | undefined;
2469
+ newAccountsOnly: boolean;
2470
+ minPurchaseAmount?: number | undefined;
2471
+ campaign?: string | undefined;
2472
+ createdBy: string;
2473
+ };
2474
+ (options: import("mongoose").ToObjectOptions & {
2475
+ versionKey: false;
2476
+ flattenMaps: true;
2477
+ virtuals: true;
2478
+ }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2479
+ _id: string;
2480
+ } & Required<{
2481
+ _id: string;
2482
+ }>>, "__v">;
2483
+ (options: import("mongoose").ToObjectOptions & {
2484
+ versionKey: false;
2485
+ flattenObjectIds: true;
2486
+ virtuals: true;
2487
+ }): {
2488
+ type?: import("../index.js").DiscountType | undefined;
2489
+ value?: number | undefined;
2490
+ code: string;
2491
+ createdAt: Date;
2492
+ updatedAt: Date;
2493
+ _id: string;
2494
+ expiresAt?: Date | undefined;
2495
+ discountType: import("../index.js").DiscountType;
2496
+ discountValue: number;
2497
+ trialExtensionDays?: number | undefined;
2498
+ validFrom: Date;
2499
+ validUntil: Date;
2500
+ isActive: boolean;
2501
+ maxUses?: number | undefined;
2502
+ currentUses: number;
2503
+ maxUsesPerAccount: number;
2504
+ applicablePlans?: SubscriptionPlan[] | undefined;
2505
+ newAccountsOnly: boolean;
2506
+ minPurchaseAmount?: number | undefined;
2507
+ campaign?: string | undefined;
2508
+ createdBy: string;
2509
+ };
2510
+ (options: import("mongoose").ToObjectOptions & {
2511
+ versionKey: false;
2512
+ virtuals: true;
2513
+ }): Omit<Omit<IPromoCode, "id"> & {
2514
+ _id: string;
2515
+ } & Required<{
2516
+ _id: string;
2517
+ }>, "__v">;
2518
+ (options: import("mongoose").ToObjectOptions & {
2519
+ versionKey: false;
2520
+ flattenMaps: true;
2521
+ flattenObjectIds: true;
2522
+ }): {
2523
+ type?: import("../index.js").DiscountType | undefined;
2524
+ value?: number | undefined;
2525
+ code: string;
2526
+ createdAt: Date;
2527
+ updatedAt: Date;
2528
+ _id: string;
2529
+ expiresAt?: Date | undefined;
2530
+ discountType: import("../index.js").DiscountType;
2531
+ discountValue: number;
2532
+ trialExtensionDays?: number | undefined;
2533
+ validFrom: Date;
2534
+ validUntil: Date;
2535
+ isActive: boolean;
2536
+ maxUses?: number | undefined;
2537
+ currentUses: number;
2538
+ maxUsesPerAccount: number;
2539
+ applicablePlans?: SubscriptionPlan[] | undefined;
2540
+ newAccountsOnly: boolean;
2541
+ minPurchaseAmount?: number | undefined;
2542
+ campaign?: string | undefined;
2543
+ createdBy: string;
2544
+ };
2545
+ (options: import("mongoose").ToObjectOptions & {
2546
+ versionKey: false;
2547
+ flattenObjectIds: true;
2548
+ }): {
2549
+ type?: import("../index.js").DiscountType | undefined;
2550
+ value?: number | undefined;
2551
+ code: string;
2552
+ createdAt: Date;
2553
+ updatedAt: Date;
2554
+ _id: string;
2555
+ expiresAt?: Date | undefined;
2556
+ discountType: import("../index.js").DiscountType;
2557
+ discountValue: number;
2558
+ trialExtensionDays?: number | undefined;
2559
+ validFrom: Date;
2560
+ validUntil: Date;
2561
+ isActive: boolean;
2562
+ maxUses?: number | undefined;
2563
+ currentUses: number;
2564
+ maxUsesPerAccount: number;
2565
+ applicablePlans?: SubscriptionPlan[] | undefined;
2566
+ newAccountsOnly: boolean;
2567
+ minPurchaseAmount?: number | undefined;
2568
+ campaign?: string | undefined;
2569
+ createdBy: string;
2570
+ };
2571
+ (options: import("mongoose").ToObjectOptions & {
2572
+ versionKey: false;
2573
+ flattenMaps: true;
2574
+ }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2575
+ _id: string;
2576
+ } & Required<{
2577
+ _id: string;
2578
+ }>>, "__v">;
2579
+ (options: import("mongoose").ToObjectOptions & {
2580
+ versionKey: false;
2581
+ }): Omit<Omit<IPromoCode, "id"> & {
2582
+ _id: string;
2583
+ } & Required<{
2584
+ _id: string;
2585
+ }>, "__v">;
2586
+ (options: import("mongoose").ToObjectOptions & {
2587
+ virtuals: true;
2588
+ }): Omit<IPromoCode, "id"> & {
2589
+ _id: string;
2590
+ } & Required<{
2591
+ _id: string;
2592
+ }>;
2593
+ (options?: import("mongoose").ToObjectOptions): Omit<IPromoCode, "id"> & {
2594
+ _id: string;
2595
+ } & Required<{
2596
+ _id: string;
2597
+ }> & {
2598
+ __v: number;
2599
+ };
2600
+ <T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> & {
2601
+ __v: number;
2602
+ };
2603
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
2604
+ _id: string;
2605
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
2606
+ _id: string;
2607
+ } & Required<{
2608
+ _id: string;
2609
+ }> & {
2610
+ __v: number;
2611
+ } & {
2612
+ id: string;
2613
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
2614
+ _id: string;
2615
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
2616
+ _id: string;
2617
+ } & Required<{
2618
+ _id: string;
2619
+ }> & {
2620
+ __v: number;
2621
+ } & {
2622
+ id: string;
2623
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
2624
+ _id: string;
2625
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
2626
+ _id: string;
2627
+ } & Required<{
2628
+ _id: string;
2629
+ }> & {
2630
+ __v: number;
2631
+ } & {
2632
+ id: string;
2633
+ }> | undefined;
2634
+ toObject?: import("mongoose").SchemaDefinitionProperty<{
2635
+ (options: import("mongoose").ToObjectOptions & {
2636
+ flattenMaps: false;
2637
+ flattenObjectIds: true;
2638
+ virtuals: true;
2639
+ versionKey: false;
2640
+ }): {
2641
+ type?: import("../index.js").DiscountType | undefined;
2642
+ value?: number | undefined;
2643
+ code: string;
2644
+ createdAt: Date;
2645
+ updatedAt: Date;
2646
+ _id: string;
2647
+ expiresAt?: Date | undefined;
2648
+ discountType: import("../index.js").DiscountType;
2649
+ discountValue: number;
2650
+ trialExtensionDays?: number | undefined;
2651
+ validFrom: Date;
2652
+ validUntil: Date;
2653
+ isActive: boolean;
2654
+ maxUses?: number | undefined;
2655
+ currentUses: number;
2656
+ maxUsesPerAccount: number;
2657
+ applicablePlans?: SubscriptionPlan[] | undefined;
2658
+ newAccountsOnly: boolean;
2659
+ minPurchaseAmount?: number | undefined;
2660
+ campaign?: string | undefined;
2661
+ createdBy: string;
2662
+ };
2663
+ (options: import("mongoose").ToObjectOptions & {
2664
+ flattenMaps: false;
2665
+ flattenObjectIds: true;
2666
+ virtuals: true;
2667
+ }): {
2668
+ type?: import("../index.js").DiscountType | undefined;
2669
+ value?: number | undefined;
2670
+ code: string;
2671
+ createdAt: Date;
2672
+ updatedAt: Date;
2673
+ expiresAt?: Date | undefined;
2674
+ discountType: import("../index.js").DiscountType;
2675
+ discountValue: number;
2676
+ trialExtensionDays?: number | undefined;
2677
+ validFrom: Date;
2678
+ validUntil: Date;
2679
+ isActive: boolean;
2680
+ maxUses?: number | undefined;
2681
+ currentUses: number;
2682
+ maxUsesPerAccount: number;
2683
+ applicablePlans?: SubscriptionPlan[] | undefined;
2684
+ newAccountsOnly: boolean;
2685
+ minPurchaseAmount?: number | undefined;
2686
+ campaign?: string | undefined;
2687
+ createdBy: string;
2688
+ _id: string;
2689
+ };
2690
+ (options: import("mongoose").ToObjectOptions & {
2691
+ flattenMaps: false;
2692
+ flattenObjectIds: false;
2693
+ virtuals: true;
2694
+ versionKey: false;
2695
+ }): Omit<Omit<IPromoCode, "id"> & {
2696
+ _id: string;
2697
+ } & Required<{
2698
+ _id: string;
2699
+ }>, "__v">;
2700
+ (options: import("mongoose").ToObjectOptions & {
2701
+ flattenMaps: false;
2702
+ flattenObjectIds: false;
2703
+ virtuals: true;
2704
+ }): Omit<IPromoCode, "id"> & {
2705
+ _id: string;
2706
+ } & Required<{
2707
+ _id: string;
2708
+ }>;
2709
+ (options: import("mongoose").ToObjectOptions & {
2710
+ flattenMaps: false;
2711
+ flattenObjectIds: true;
2712
+ virtuals: false;
2713
+ versionKey: false;
2714
+ }): {
2715
+ type?: import("../index.js").DiscountType | undefined;
2716
+ value?: number | undefined;
2717
+ code: string;
2718
+ createdAt: Date;
2719
+ updatedAt: Date;
2720
+ _id: string;
2721
+ expiresAt?: Date | undefined;
2722
+ discountType: import("../index.js").DiscountType;
2723
+ discountValue: number;
2724
+ trialExtensionDays?: number | undefined;
2725
+ validFrom: Date;
2726
+ validUntil: Date;
2727
+ isActive: boolean;
2728
+ maxUses?: number | undefined;
2729
+ currentUses: number;
2730
+ maxUsesPerAccount: number;
2731
+ applicablePlans?: SubscriptionPlan[] | undefined;
2732
+ newAccountsOnly: boolean;
2733
+ minPurchaseAmount?: number | undefined;
2734
+ campaign?: string | undefined;
2735
+ createdBy: string;
2736
+ };
2737
+ (options: import("mongoose").ToObjectOptions & {
2738
+ flattenMaps: false;
2739
+ flattenObjectIds: true;
2740
+ virtuals: false;
2741
+ }): {
2742
+ type?: import("../index.js").DiscountType | undefined;
2743
+ value?: number | undefined;
2744
+ code: string;
2745
+ createdAt: Date;
2746
+ updatedAt: Date;
2747
+ expiresAt?: Date | undefined;
2748
+ discountType: import("../index.js").DiscountType;
2749
+ discountValue: number;
2750
+ trialExtensionDays?: number | undefined;
2751
+ validFrom: Date;
2752
+ validUntil: Date;
2753
+ isActive: boolean;
2754
+ maxUses?: number | undefined;
2755
+ currentUses: number;
2756
+ maxUsesPerAccount: number;
2757
+ applicablePlans?: SubscriptionPlan[] | undefined;
2758
+ newAccountsOnly: boolean;
2759
+ minPurchaseAmount?: number | undefined;
2760
+ campaign?: string | undefined;
2761
+ createdBy: string;
2762
+ _id: string;
2763
+ };
2764
+ (options: import("mongoose").ToObjectOptions & {
2765
+ flattenMaps: false;
2766
+ flattenObjectIds: false;
2767
+ virtuals: false;
2768
+ versionKey: false;
2769
+ }): Omit<Omit<IPromoCode, "id"> & {
2770
+ _id: string;
2771
+ } & Required<{
2772
+ _id: string;
2773
+ }>, "__v">;
2774
+ (options: import("mongoose").ToObjectOptions & {
2775
+ flattenMaps: false;
2776
+ flattenObjectIds: false;
2777
+ virtuals: false;
2778
+ }): Omit<IPromoCode, "id"> & {
2779
+ _id: string;
2780
+ } & Required<{
2781
+ _id: string;
2782
+ }>;
2783
+ (options: import("mongoose").ToObjectOptions & {
2784
+ flattenMaps: true;
2785
+ flattenObjectIds: true;
2786
+ virtuals: true;
2787
+ versionKey: false;
2788
+ }): {
2789
+ type?: import("../index.js").DiscountType | undefined;
2790
+ value?: number | undefined;
2791
+ code: string;
2792
+ createdAt: Date;
2793
+ updatedAt: Date;
2794
+ _id: string;
2795
+ expiresAt?: Date | undefined;
2796
+ discountType: import("../index.js").DiscountType;
2797
+ discountValue: number;
2798
+ trialExtensionDays?: number | undefined;
2799
+ validFrom: Date;
2800
+ validUntil: Date;
2801
+ isActive: boolean;
2802
+ maxUses?: number | undefined;
2803
+ currentUses: number;
2804
+ maxUsesPerAccount: number;
2805
+ applicablePlans?: SubscriptionPlan[] | undefined;
2806
+ newAccountsOnly: boolean;
2807
+ minPurchaseAmount?: number | undefined;
2808
+ campaign?: string | undefined;
2809
+ createdBy: string;
2810
+ };
2811
+ (options: import("mongoose").ToObjectOptions & {
2812
+ flattenMaps: true;
2813
+ flattenObjectIds: true;
2814
+ virtuals: true;
2815
+ }): {
2816
+ type?: import("../index.js").DiscountType | undefined;
2817
+ value?: number | undefined;
2818
+ code: string;
2819
+ createdAt: Date;
2820
+ updatedAt: Date;
2821
+ expiresAt?: Date | undefined;
2822
+ discountType: import("../index.js").DiscountType;
2823
+ discountValue: number;
2824
+ trialExtensionDays?: number | undefined;
2825
+ validFrom: Date;
2826
+ validUntil: Date;
2827
+ isActive: boolean;
2828
+ maxUses?: number | undefined;
2829
+ currentUses: number;
2830
+ maxUsesPerAccount: number;
2831
+ applicablePlans?: SubscriptionPlan[] | undefined;
2832
+ newAccountsOnly: boolean;
2833
+ minPurchaseAmount?: number | undefined;
2834
+ campaign?: string | undefined;
2835
+ createdBy: string;
2836
+ _id: string;
2837
+ };
2838
+ (options: import("mongoose").ToObjectOptions & {
2839
+ flattenMaps: true;
2840
+ flattenObjectIds: false;
2841
+ virtuals: true;
2842
+ versionKey: false;
2843
+ }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2844
+ _id: string;
2845
+ } & Required<{
2846
+ _id: string;
2847
+ }>>, "__v">;
2848
+ (options: import("mongoose").ToObjectOptions & {
2849
+ flattenMaps: true;
2850
+ flattenObjectIds: false;
2851
+ virtuals: true;
2852
+ }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2853
+ _id: string;
2854
+ } & Required<{
2855
+ _id: string;
2856
+ }>>;
2857
+ (options: import("mongoose").ToObjectOptions & {
2858
+ flattenMaps: true;
2859
+ flattenObjectIds: true;
2860
+ virtuals: false;
2861
+ versionKey: false;
2862
+ }): {
2863
+ type?: import("../index.js").DiscountType | undefined;
2864
+ value?: number | undefined;
2865
+ code: string;
2866
+ createdAt: Date;
2867
+ updatedAt: Date;
2868
+ _id: string;
2869
+ expiresAt?: Date | undefined;
2870
+ discountType: import("../index.js").DiscountType;
2871
+ discountValue: number;
2872
+ trialExtensionDays?: number | undefined;
2873
+ validFrom: Date;
2874
+ validUntil: Date;
2875
+ isActive: boolean;
2876
+ maxUses?: number | undefined;
2877
+ currentUses: number;
2878
+ maxUsesPerAccount: number;
2879
+ applicablePlans?: SubscriptionPlan[] | undefined;
2880
+ newAccountsOnly: boolean;
2881
+ minPurchaseAmount?: number | undefined;
2882
+ campaign?: string | undefined;
2883
+ createdBy: string;
2884
+ };
2885
+ (options: import("mongoose").ToObjectOptions & {
2886
+ flattenMaps: true;
2887
+ flattenObjectIds: true;
2888
+ virtuals: false;
2889
+ }): {
2890
+ type?: import("../index.js").DiscountType | undefined;
2891
+ value?: number | undefined;
2892
+ code: string;
2893
+ createdAt: Date;
2894
+ updatedAt: Date;
2895
+ expiresAt?: Date | undefined;
2896
+ discountType: import("../index.js").DiscountType;
2897
+ discountValue: number;
2898
+ trialExtensionDays?: number | undefined;
2899
+ validFrom: Date;
2900
+ validUntil: Date;
2901
+ isActive: boolean;
2902
+ maxUses?: number | undefined;
2903
+ currentUses: number;
2904
+ maxUsesPerAccount: number;
2905
+ applicablePlans?: SubscriptionPlan[] | undefined;
2906
+ newAccountsOnly: boolean;
2907
+ minPurchaseAmount?: number | undefined;
2908
+ campaign?: string | undefined;
2909
+ createdBy: string;
2910
+ _id: string;
2911
+ };
2912
+ (options: import("mongoose").ToObjectOptions & {
2913
+ flattenMaps: true;
2914
+ flattenObjectIds: false;
2915
+ virtuals: false;
2916
+ versionKey: false;
2917
+ }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2918
+ _id: string;
2919
+ } & Required<{
2920
+ _id: string;
2921
+ }>>, "__v">;
2922
+ (options: import("mongoose").ToObjectOptions & {
2923
+ flattenMaps: true;
2924
+ flattenObjectIds: false;
2925
+ virtuals: false;
2926
+ }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2927
+ _id: string;
2928
+ } & Required<{
2929
+ _id: string;
2930
+ }>>;
2931
+ (options: import("mongoose").ToObjectOptions & {
2932
+ flattenMaps: true;
2933
+ flattenObjectIds: true;
2934
+ virtuals: true;
2935
+ }): {
2936
+ type?: import("../index.js").DiscountType | undefined;
2937
+ value?: number | undefined;
2938
+ code: string;
2939
+ createdAt: Date;
2940
+ updatedAt: Date;
2941
+ expiresAt?: Date | undefined;
2942
+ discountType: import("../index.js").DiscountType;
2943
+ discountValue: number;
2944
+ trialExtensionDays?: number | undefined;
2945
+ validFrom: Date;
2946
+ validUntil: Date;
2947
+ isActive: boolean;
2948
+ maxUses?: number | undefined;
2949
+ currentUses: number;
2950
+ maxUsesPerAccount: number;
2951
+ applicablePlans?: SubscriptionPlan[] | undefined;
2952
+ newAccountsOnly: boolean;
2953
+ minPurchaseAmount?: number | undefined;
2954
+ campaign?: string | undefined;
2955
+ createdBy: string;
2956
+ _id: string;
2957
+ };
2958
+ (options: import("mongoose").ToObjectOptions & {
2959
+ flattenMaps: true;
2960
+ flattenObjectIds: true;
2961
+ }): {
2962
+ type?: import("../index.js").DiscountType | undefined;
2963
+ value?: number | undefined;
2964
+ code: string;
2965
+ createdAt: Date;
2966
+ updatedAt: Date;
2967
+ expiresAt?: Date | undefined;
2968
+ discountType: import("../index.js").DiscountType;
2969
+ discountValue: number;
2970
+ trialExtensionDays?: number | undefined;
2971
+ validFrom: Date;
2972
+ validUntil: Date;
2973
+ isActive: boolean;
2974
+ maxUses?: number | undefined;
2975
+ currentUses: number;
2976
+ maxUsesPerAccount: number;
2977
+ applicablePlans?: SubscriptionPlan[] | undefined;
2978
+ newAccountsOnly: boolean;
2979
+ minPurchaseAmount?: number | undefined;
2980
+ campaign?: string | undefined;
2981
+ createdBy: string;
2982
+ _id: string;
2983
+ };
2984
+ (options: import("mongoose").ToObjectOptions & {
2985
+ flattenObjectIds: true;
2986
+ virtuals: true;
2987
+ }): {
2988
+ type?: import("../index.js").DiscountType | undefined;
2989
+ value?: number | undefined;
2990
+ code: string;
2991
+ createdAt: Date;
2992
+ updatedAt: Date;
2993
+ expiresAt?: Date | undefined;
2994
+ discountType: import("../index.js").DiscountType;
2995
+ discountValue: number;
2996
+ trialExtensionDays?: number | undefined;
2997
+ validFrom: Date;
2998
+ validUntil: Date;
2999
+ isActive: boolean;
3000
+ maxUses?: number | undefined;
3001
+ currentUses: number;
3002
+ maxUsesPerAccount: number;
3003
+ applicablePlans?: SubscriptionPlan[] | undefined;
3004
+ newAccountsOnly: boolean;
3005
+ minPurchaseAmount?: number | undefined;
3006
+ campaign?: string | undefined;
3007
+ createdBy: string;
3008
+ _id: string;
3009
+ };
3010
+ (options: import("mongoose").ToObjectOptions & {
3011
+ flattenObjectIds: true;
3012
+ }): {
3013
+ type?: import("../index.js").DiscountType | undefined;
3014
+ value?: number | undefined;
3015
+ code: string;
3016
+ createdAt: Date;
3017
+ updatedAt: Date;
3018
+ expiresAt?: Date | undefined;
3019
+ discountType: import("../index.js").DiscountType;
3020
+ discountValue: number;
3021
+ trialExtensionDays?: number | undefined;
3022
+ validFrom: Date;
3023
+ validUntil: Date;
3024
+ isActive: boolean;
3025
+ maxUses?: number | undefined;
3026
+ currentUses: number;
3027
+ maxUsesPerAccount: number;
3028
+ applicablePlans?: SubscriptionPlan[] | undefined;
3029
+ newAccountsOnly: boolean;
3030
+ minPurchaseAmount?: number | undefined;
3031
+ campaign?: string | undefined;
3032
+ createdBy: string;
3033
+ _id: string;
3034
+ };
3035
+ (options: import("mongoose").ToObjectOptions & {
3036
+ flattenMaps: true;
3037
+ virtuals: true;
3038
+ }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
3039
+ _id: string;
3040
+ } & Required<{
3041
+ _id: string;
3042
+ }>>;
3043
+ (options: import("mongoose").ToObjectOptions & {
3044
+ flattenMaps: true;
3045
+ }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
3046
+ _id: string;
3047
+ } & Required<{
3048
+ _id: string;
3049
+ }>>;
3050
+ (options: import("mongoose").ToObjectOptions & {
3051
+ versionKey: false;
3052
+ flattenMaps: true;
3053
+ flattenObjectIds: true;
3054
+ virtuals: true;
3055
+ }): {
3056
+ type?: import("../index.js").DiscountType | undefined;
3057
+ value?: number | undefined;
3058
+ code: string;
3059
+ createdAt: Date;
3060
+ updatedAt: Date;
3061
+ _id: string;
3062
+ expiresAt?: Date | undefined;
3063
+ discountType: import("../index.js").DiscountType;
3064
+ discountValue: number;
3065
+ trialExtensionDays?: number | undefined;
3066
+ validFrom: Date;
3067
+ validUntil: Date;
3068
+ isActive: boolean;
3069
+ maxUses?: number | undefined;
3070
+ currentUses: number;
3071
+ maxUsesPerAccount: number;
3072
+ applicablePlans?: SubscriptionPlan[] | undefined;
3073
+ newAccountsOnly: boolean;
3074
+ minPurchaseAmount?: number | undefined;
3075
+ campaign?: string | undefined;
3076
+ createdBy: string;
3077
+ };
3078
+ (options: import("mongoose").ToObjectOptions & {
3079
+ versionKey: false;
3080
+ flattenMaps: false;
3081
+ flattenObjectIds: true;
3082
+ virtuals: true;
3083
+ }): {
3084
+ type?: import("../index.js").DiscountType | undefined;
3085
+ value?: number | undefined;
3086
+ code: string;
3087
+ createdAt: Date;
3088
+ updatedAt: Date;
3089
+ _id: string;
3090
+ expiresAt?: Date | undefined;
3091
+ discountType: import("../index.js").DiscountType;
3092
+ discountValue: number;
3093
+ trialExtensionDays?: number | undefined;
3094
+ validFrom: Date;
3095
+ validUntil: Date;
3096
+ isActive: boolean;
3097
+ maxUses?: number | undefined;
3098
+ currentUses: number;
3099
+ maxUsesPerAccount: number;
3100
+ applicablePlans?: SubscriptionPlan[] | undefined;
3101
+ newAccountsOnly: boolean;
3102
+ minPurchaseAmount?: number | undefined;
3103
+ campaign?: string | undefined;
3104
+ createdBy: string;
3105
+ };
3106
+ (options: import("mongoose").ToObjectOptions & {
3107
+ versionKey: false;
3108
+ flattenMaps: true;
3109
+ virtuals: true;
3110
+ }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
3111
+ _id: string;
3112
+ } & Required<{
3113
+ _id: string;
3114
+ }>>, "__v">;
3115
+ (options: import("mongoose").ToObjectOptions & {
3116
+ versionKey: false;
3117
+ flattenObjectIds: true;
3118
+ virtuals: true;
3119
+ }): {
3120
+ type?: import("../index.js").DiscountType | undefined;
3121
+ value?: number | undefined;
3122
+ code: string;
3123
+ createdAt: Date;
3124
+ updatedAt: Date;
3125
+ _id: string;
3126
+ expiresAt?: Date | undefined;
3127
+ discountType: import("../index.js").DiscountType;
3128
+ discountValue: number;
3129
+ trialExtensionDays?: number | undefined;
3130
+ validFrom: Date;
3131
+ validUntil: Date;
3132
+ isActive: boolean;
3133
+ maxUses?: number | undefined;
3134
+ currentUses: number;
3135
+ maxUsesPerAccount: number;
3136
+ applicablePlans?: SubscriptionPlan[] | undefined;
3137
+ newAccountsOnly: boolean;
3138
+ minPurchaseAmount?: number | undefined;
3139
+ campaign?: string | undefined;
3140
+ createdBy: string;
3141
+ };
3142
+ (options: import("mongoose").ToObjectOptions & {
3143
+ versionKey: false;
3144
+ virtuals: true;
3145
+ }): Omit<Omit<IPromoCode, "id"> & {
3146
+ _id: string;
3147
+ } & Required<{
3148
+ _id: string;
3149
+ }>, "__v">;
3150
+ (options: import("mongoose").ToObjectOptions & {
3151
+ versionKey: false;
3152
+ flattenMaps: true;
3153
+ flattenObjectIds: true;
3154
+ }): {
3155
+ type?: import("../index.js").DiscountType | undefined;
3156
+ value?: number | undefined;
3157
+ code: string;
3158
+ createdAt: Date;
3159
+ updatedAt: Date;
3160
+ _id: string;
3161
+ expiresAt?: Date | undefined;
3162
+ discountType: import("../index.js").DiscountType;
3163
+ discountValue: number;
3164
+ trialExtensionDays?: number | undefined;
3165
+ validFrom: Date;
3166
+ validUntil: Date;
3167
+ isActive: boolean;
3168
+ maxUses?: number | undefined;
3169
+ currentUses: number;
3170
+ maxUsesPerAccount: number;
3171
+ applicablePlans?: SubscriptionPlan[] | undefined;
3172
+ newAccountsOnly: boolean;
3173
+ minPurchaseAmount?: number | undefined;
3174
+ campaign?: string | undefined;
3175
+ createdBy: string;
3176
+ };
3177
+ (options: import("mongoose").ToObjectOptions & {
3178
+ versionKey: false;
3179
+ flattenObjectIds: true;
3180
+ }): {
3181
+ type?: import("../index.js").DiscountType | undefined;
3182
+ value?: number | undefined;
3183
+ code: string;
3184
+ createdAt: Date;
3185
+ updatedAt: Date;
3186
+ _id: string;
3187
+ expiresAt?: Date | undefined;
3188
+ discountType: import("../index.js").DiscountType;
3189
+ discountValue: number;
3190
+ trialExtensionDays?: number | undefined;
3191
+ validFrom: Date;
3192
+ validUntil: Date;
3193
+ isActive: boolean;
3194
+ maxUses?: number | undefined;
3195
+ currentUses: number;
3196
+ maxUsesPerAccount: number;
3197
+ applicablePlans?: SubscriptionPlan[] | undefined;
3198
+ newAccountsOnly: boolean;
3199
+ minPurchaseAmount?: number | undefined;
3200
+ campaign?: string | undefined;
3201
+ createdBy: string;
3202
+ };
3203
+ (options: import("mongoose").ToObjectOptions & {
3204
+ versionKey: false;
3205
+ flattenMaps: true;
3206
+ }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
3207
+ _id: string;
3208
+ } & Required<{
3209
+ _id: string;
3210
+ }>>, "__v">;
3211
+ (options: import("mongoose").ToObjectOptions & {
3212
+ versionKey: false;
3213
+ }): Omit<Omit<IPromoCode, "id"> & {
3214
+ _id: string;
3215
+ } & Required<{
3216
+ _id: string;
3217
+ }>, "__v">;
3218
+ (options: import("mongoose").ToObjectOptions & {
3219
+ virtuals: true;
3220
+ }): Omit<IPromoCode, "id"> & {
3221
+ _id: string;
3222
+ } & Required<{
3223
+ _id: string;
3224
+ }>;
3225
+ (options?: import("mongoose").ToObjectOptions): Omit<IPromoCode, "id"> & {
3226
+ _id: string;
3227
+ } & Required<{
3228
+ _id: string;
3229
+ }> & {
3230
+ __v: number;
3231
+ };
3232
+ <T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> & {
3233
+ __v: number;
3234
+ };
3235
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3236
+ _id: string;
3237
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3238
+ _id: string;
3239
+ } & Required<{
3240
+ _id: string;
3241
+ }> & {
3242
+ __v: number;
3243
+ } & {
3244
+ id: string;
3245
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3246
+ _id: string;
3247
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3248
+ _id: string;
3249
+ } & Required<{
3250
+ _id: string;
3251
+ }> & {
3252
+ __v: number;
3253
+ } & {
3254
+ id: string;
3255
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3256
+ _id: string;
3257
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3258
+ _id: string;
3259
+ } & Required<{
3260
+ _id: string;
3261
+ }> & {
3262
+ __v: number;
3263
+ } & {
3264
+ id: string;
3265
+ }> | undefined;
3266
+ unmarkModified?: import("mongoose").SchemaDefinitionProperty<{
3267
+ <T extends "type" | "value" | "code" | "createdAt" | "updatedAt" | "_id" | "expiresAt" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(path: T): void;
3268
+ (path: string): void;
3269
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3270
+ _id: string;
3271
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3272
+ _id: string;
3273
+ } & Required<{
3274
+ _id: string;
3275
+ }> & {
3276
+ __v: number;
3277
+ } & {
3278
+ id: string;
3279
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3280
+ _id: string;
3281
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3282
+ _id: string;
3283
+ } & Required<{
3284
+ _id: string;
3285
+ }> & {
3286
+ __v: number;
3287
+ } & {
3288
+ id: string;
3289
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3290
+ _id: string;
3291
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3292
+ _id: string;
3293
+ } & Required<{
3294
+ _id: string;
3295
+ }> & {
3296
+ __v: number;
3297
+ } & {
3298
+ id: string;
3299
+ }> | undefined;
3300
+ updateOne?: import("mongoose").SchemaDefinitionProperty<(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery<import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3301
+ _id: string;
3302
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3303
+ _id: string;
3304
+ } & Required<{
3305
+ _id: string;
3306
+ }> & {
3307
+ __v: number;
3308
+ } & {
3309
+ id: string;
3310
+ }> | undefined, options?: import("mongoose").QueryOptions | null) => import("mongoose").Query<any, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3311
+ _id: string;
3312
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3313
+ _id: string;
3314
+ } & Required<{
3315
+ _id: string;
3316
+ }> & {
3317
+ __v: number;
3318
+ } & {
3319
+ id: string;
3320
+ }, {}, unknown, "find", Record<string, never>>, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3321
+ _id: string;
3322
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3323
+ _id: string;
3324
+ } & Required<{
3325
+ _id: string;
3326
+ }> & {
3327
+ __v: number;
3328
+ } & {
3329
+ id: string;
3330
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3331
+ _id: string;
3332
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3333
+ _id: string;
3334
+ } & Required<{
3335
+ _id: string;
3336
+ }> & {
3337
+ __v: number;
3338
+ } & {
3339
+ id: string;
3340
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3341
+ _id: string;
3342
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3343
+ _id: string;
3344
+ } & Required<{
3345
+ _id: string;
3346
+ }> & {
3347
+ __v: number;
3348
+ } & {
3349
+ id: string;
3350
+ }> | undefined;
3351
+ validate?: import("mongoose").SchemaDefinitionProperty<{
3352
+ <T extends "type" | "value" | "code" | "createdAt" | "updatedAt" | "_id" | "expiresAt" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(pathsToValidate?: T | T[] | undefined, options?: import("mongoose").AnyObject): Promise<void>;
3353
+ (pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): Promise<void>;
3354
+ (options: {
3355
+ pathsToSkip?: import("mongoose").pathsToSkip;
3356
+ }): Promise<void>;
3357
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3358
+ _id: string;
3359
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3360
+ _id: string;
3361
+ } & Required<{
3362
+ _id: string;
3363
+ }> & {
3364
+ __v: number;
3365
+ } & {
3366
+ id: string;
3367
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3368
+ _id: string;
3369
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3370
+ _id: string;
3371
+ } & Required<{
3372
+ _id: string;
3373
+ }> & {
3374
+ __v: number;
3375
+ } & {
3376
+ id: string;
3377
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3378
+ _id: string;
3379
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3380
+ _id: string;
3381
+ } & Required<{
3382
+ _id: string;
3383
+ }> & {
3384
+ __v: number;
3385
+ } & {
3386
+ id: string;
3387
+ }> | undefined;
3388
+ validateSync?: import("mongoose").SchemaDefinitionProperty<{
3389
+ (options: {
3390
+ pathsToSkip?: import("mongoose").pathsToSkip;
3391
+ [k: string]: any;
3392
+ }): import("mongoose").Error.ValidationError | null;
3393
+ <T extends "type" | "value" | "code" | "createdAt" | "updatedAt" | "_id" | "expiresAt" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(pathsToValidate?: T | T[] | undefined, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
3394
+ (pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
3395
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3396
+ _id: string;
3397
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3398
+ _id: string;
3399
+ } & Required<{
3400
+ _id: string;
3401
+ }> & {
3402
+ __v: number;
3403
+ } & {
3404
+ id: string;
3405
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3406
+ _id: string;
3407
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3408
+ _id: string;
3409
+ } & Required<{
3410
+ _id: string;
3411
+ }> & {
3412
+ __v: number;
3413
+ } & {
3414
+ id: string;
3415
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3416
+ _id: string;
3417
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3418
+ _id: string;
3419
+ } & Required<{
3420
+ _id: string;
3421
+ }> & {
3422
+ __v: number;
3423
+ } & {
3424
+ id: string;
3425
+ }> | undefined;
3426
+ type?: import("mongoose").SchemaDefinitionProperty<import("../index.js").DiscountType | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3427
+ _id: string;
3428
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3429
+ _id: string;
3430
+ } & Required<{
3431
+ _id: string;
3432
+ }> & {
3433
+ __v: number;
3434
+ } & {
3435
+ id: string;
3436
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3437
+ _id: string;
3438
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3439
+ _id: string;
3440
+ } & Required<{
3441
+ _id: string;
3442
+ }> & {
3443
+ __v: number;
3444
+ } & {
3445
+ id: string;
3446
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3447
+ _id: string;
3448
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3449
+ _id: string;
3450
+ } & Required<{
3451
+ _id: string;
3452
+ }> & {
3453
+ __v: number;
3454
+ } & {
3455
+ id: string;
3456
+ }> | undefined;
3457
+ value?: import("mongoose").SchemaDefinitionProperty<number | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3458
+ _id: string;
3459
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3460
+ _id: string;
3461
+ } & Required<{
3462
+ _id: string;
3463
+ }> & {
3464
+ __v: number;
3465
+ } & {
3466
+ id: string;
3467
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3468
+ _id: string;
3469
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3470
+ _id: string;
3471
+ } & Required<{
3472
+ _id: string;
3473
+ }> & {
3474
+ __v: number;
3475
+ } & {
3476
+ id: string;
3477
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3478
+ _id: string;
3479
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3480
+ _id: string;
3481
+ } & Required<{
3482
+ _id: string;
3483
+ }> & {
3484
+ __v: number;
3485
+ } & {
3486
+ id: string;
3487
+ }> | undefined;
3488
+ code?: import("mongoose").SchemaDefinitionProperty<string, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3489
+ _id: string;
3490
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3491
+ _id: string;
3492
+ } & Required<{
3493
+ _id: string;
3494
+ }> & {
3495
+ __v: number;
3496
+ } & {
3497
+ id: string;
3498
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3499
+ _id: string;
3500
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3501
+ _id: string;
3502
+ } & Required<{
3503
+ _id: string;
3504
+ }> & {
3505
+ __v: number;
3506
+ } & {
3507
+ id: string;
3508
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3509
+ _id: string;
3510
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3511
+ _id: string;
3512
+ } & Required<{
3513
+ _id: string;
3514
+ }> & {
3515
+ __v: number;
3516
+ } & {
3517
+ id: string;
3518
+ }> | undefined;
3519
+ createdAt?: import("mongoose").SchemaDefinitionProperty<Date, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3520
+ _id: string;
3521
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3522
+ _id: string;
3523
+ } & Required<{
3524
+ _id: string;
3525
+ }> & {
3526
+ __v: number;
3527
+ } & {
3528
+ id: string;
3529
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3530
+ _id: string;
3531
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3532
+ _id: string;
3533
+ } & Required<{
3534
+ _id: string;
3535
+ }> & {
3536
+ __v: number;
3537
+ } & {
3538
+ id: string;
3539
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3540
+ _id: string;
3541
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3542
+ _id: string;
3543
+ } & Required<{
3544
+ _id: string;
3545
+ }> & {
3546
+ __v: number;
3547
+ } & {
3548
+ id: string;
3549
+ }> | undefined;
3550
+ updatedAt?: import("mongoose").SchemaDefinitionProperty<Date, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3551
+ _id: string;
3552
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3553
+ _id: string;
3554
+ } & Required<{
3555
+ _id: string;
3556
+ }> & {
3557
+ __v: number;
3558
+ } & {
3559
+ id: string;
3560
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3561
+ _id: string;
3562
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3563
+ _id: string;
3564
+ } & Required<{
3565
+ _id: string;
3566
+ }> & {
3567
+ __v: number;
3568
+ } & {
3569
+ id: string;
3570
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3571
+ _id: string;
3572
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3573
+ _id: string;
3574
+ } & Required<{
3575
+ _id: string;
3576
+ }> & {
3577
+ __v: number;
3578
+ } & {
3579
+ id: string;
3580
+ }> | undefined;
3581
+ expiresAt?: import("mongoose").SchemaDefinitionProperty<Date | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3582
+ _id: string;
3583
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3584
+ _id: string;
3585
+ } & Required<{
3586
+ _id: string;
3587
+ }> & {
3588
+ __v: number;
3589
+ } & {
3590
+ id: string;
3591
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3592
+ _id: string;
3593
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3594
+ _id: string;
3595
+ } & Required<{
3596
+ _id: string;
3597
+ }> & {
3598
+ __v: number;
3599
+ } & {
3600
+ id: string;
3601
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3602
+ _id: string;
3603
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3604
+ _id: string;
3605
+ } & Required<{
3606
+ _id: string;
3607
+ }> & {
3608
+ __v: number;
3609
+ } & {
3610
+ id: string;
3611
+ }> | undefined;
3612
+ discountType?: import("mongoose").SchemaDefinitionProperty<import("../index.js").DiscountType, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3613
+ _id: string;
3614
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3615
+ _id: string;
3616
+ } & Required<{
3617
+ _id: string;
3618
+ }> & {
3619
+ __v: number;
3620
+ } & {
3621
+ id: string;
3622
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3623
+ _id: string;
3624
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3625
+ _id: string;
3626
+ } & Required<{
3627
+ _id: string;
3628
+ }> & {
3629
+ __v: number;
3630
+ } & {
3631
+ id: string;
3632
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3633
+ _id: string;
3634
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3635
+ _id: string;
3636
+ } & Required<{
3637
+ _id: string;
3638
+ }> & {
3639
+ __v: number;
3640
+ } & {
3641
+ id: string;
3642
+ }> | undefined;
3643
+ discountValue?: import("mongoose").SchemaDefinitionProperty<number, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3644
+ _id: string;
3645
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3646
+ _id: string;
3647
+ } & Required<{
3648
+ _id: string;
3649
+ }> & {
3650
+ __v: number;
3651
+ } & {
3652
+ id: string;
3653
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3654
+ _id: string;
3655
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3656
+ _id: string;
3657
+ } & Required<{
3658
+ _id: string;
3659
+ }> & {
3660
+ __v: number;
3661
+ } & {
3662
+ id: string;
3663
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3664
+ _id: string;
3665
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3666
+ _id: string;
3667
+ } & Required<{
3668
+ _id: string;
3669
+ }> & {
3670
+ __v: number;
3671
+ } & {
3672
+ id: string;
3673
+ }> | undefined;
3674
+ trialExtensionDays?: import("mongoose").SchemaDefinitionProperty<number | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3675
+ _id: string;
3676
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3677
+ _id: string;
3678
+ } & Required<{
3679
+ _id: string;
3680
+ }> & {
3681
+ __v: number;
3682
+ } & {
3683
+ id: string;
3684
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3685
+ _id: string;
3686
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3687
+ _id: string;
3688
+ } & Required<{
3689
+ _id: string;
3690
+ }> & {
3691
+ __v: number;
3692
+ } & {
3693
+ id: string;
3694
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3695
+ _id: string;
3696
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3697
+ _id: string;
3698
+ } & Required<{
3699
+ _id: string;
3700
+ }> & {
3701
+ __v: number;
3702
+ } & {
3703
+ id: string;
3704
+ }> | undefined;
3705
+ validFrom?: import("mongoose").SchemaDefinitionProperty<Date, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3706
+ _id: string;
3707
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3708
+ _id: string;
3709
+ } & Required<{
3710
+ _id: string;
3711
+ }> & {
3712
+ __v: number;
3713
+ } & {
3714
+ id: string;
3715
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3716
+ _id: string;
3717
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3718
+ _id: string;
3719
+ } & Required<{
3720
+ _id: string;
3721
+ }> & {
3722
+ __v: number;
3723
+ } & {
3724
+ id: string;
3725
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3726
+ _id: string;
3727
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3728
+ _id: string;
3729
+ } & Required<{
3730
+ _id: string;
3731
+ }> & {
3732
+ __v: number;
3733
+ } & {
3734
+ id: string;
3735
+ }> | undefined;
3736
+ validUntil?: import("mongoose").SchemaDefinitionProperty<Date, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3737
+ _id: string;
3738
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3739
+ _id: string;
3740
+ } & Required<{
3741
+ _id: string;
3742
+ }> & {
3743
+ __v: number;
3744
+ } & {
3745
+ id: string;
3746
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3747
+ _id: string;
3748
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3749
+ _id: string;
3750
+ } & Required<{
3751
+ _id: string;
3752
+ }> & {
3753
+ __v: number;
3754
+ } & {
3755
+ id: string;
3756
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3757
+ _id: string;
3758
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3759
+ _id: string;
3760
+ } & Required<{
3761
+ _id: string;
3762
+ }> & {
3763
+ __v: number;
3764
+ } & {
3765
+ id: string;
3766
+ }> | undefined;
3767
+ isActive?: import("mongoose").SchemaDefinitionProperty<boolean, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3768
+ _id: string;
3769
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3770
+ _id: string;
3771
+ } & Required<{
3772
+ _id: string;
3773
+ }> & {
3774
+ __v: number;
3775
+ } & {
3776
+ id: string;
3777
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3778
+ _id: string;
3779
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3780
+ _id: string;
3781
+ } & Required<{
3782
+ _id: string;
3783
+ }> & {
3784
+ __v: number;
3785
+ } & {
3786
+ id: string;
3787
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3788
+ _id: string;
3789
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3790
+ _id: string;
3791
+ } & Required<{
3792
+ _id: string;
3793
+ }> & {
3794
+ __v: number;
3795
+ } & {
3796
+ id: string;
3797
+ }> | undefined;
3798
+ maxUses?: import("mongoose").SchemaDefinitionProperty<number | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3799
+ _id: string;
3800
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3801
+ _id: string;
3802
+ } & Required<{
3803
+ _id: string;
3804
+ }> & {
3805
+ __v: number;
3806
+ } & {
3807
+ id: string;
3808
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3809
+ _id: string;
3810
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3811
+ _id: string;
3812
+ } & Required<{
3813
+ _id: string;
3814
+ }> & {
3815
+ __v: number;
3816
+ } & {
3817
+ id: string;
3818
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3819
+ _id: string;
3820
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3821
+ _id: string;
3822
+ } & Required<{
3823
+ _id: string;
3824
+ }> & {
3825
+ __v: number;
3826
+ } & {
3827
+ id: string;
3828
+ }> | undefined;
3829
+ currentUses?: import("mongoose").SchemaDefinitionProperty<number, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3830
+ _id: string;
3831
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3832
+ _id: string;
3833
+ } & Required<{
3834
+ _id: string;
3835
+ }> & {
3836
+ __v: number;
3837
+ } & {
3838
+ id: string;
3839
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3840
+ _id: string;
3841
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3842
+ _id: string;
3843
+ } & Required<{
3844
+ _id: string;
3845
+ }> & {
3846
+ __v: number;
3847
+ } & {
3848
+ id: string;
3849
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3850
+ _id: string;
3851
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3852
+ _id: string;
3853
+ } & Required<{
3854
+ _id: string;
3855
+ }> & {
3856
+ __v: number;
3857
+ } & {
3858
+ id: string;
3859
+ }> | undefined;
3860
+ maxUsesPerAccount?: import("mongoose").SchemaDefinitionProperty<number, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3861
+ _id: string;
3862
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3863
+ _id: string;
3864
+ } & Required<{
3865
+ _id: string;
3866
+ }> & {
3867
+ __v: number;
3868
+ } & {
3869
+ id: string;
3870
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3871
+ _id: string;
3872
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3873
+ _id: string;
3874
+ } & Required<{
3875
+ _id: string;
3876
+ }> & {
3877
+ __v: number;
3878
+ } & {
3879
+ id: string;
3880
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3881
+ _id: string;
3882
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3883
+ _id: string;
3884
+ } & Required<{
3885
+ _id: string;
3886
+ }> & {
3887
+ __v: number;
3888
+ } & {
3889
+ id: string;
3890
+ }> | undefined;
3891
+ applicablePlans?: import("mongoose").SchemaDefinitionProperty<SubscriptionPlan[] | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3892
+ _id: string;
3893
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3894
+ _id: string;
3895
+ } & Required<{
3896
+ _id: string;
3897
+ }> & {
3898
+ __v: number;
3899
+ } & {
3900
+ id: string;
3901
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3902
+ _id: string;
3903
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3904
+ _id: string;
3905
+ } & Required<{
3906
+ _id: string;
3907
+ }> & {
3908
+ __v: number;
3909
+ } & {
3910
+ id: string;
3911
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3912
+ _id: string;
3913
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3914
+ _id: string;
3915
+ } & Required<{
3916
+ _id: string;
3917
+ }> & {
3918
+ __v: number;
3919
+ } & {
3920
+ id: string;
3921
+ }> | undefined;
3922
+ newAccountsOnly?: import("mongoose").SchemaDefinitionProperty<boolean, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3923
+ _id: string;
3924
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3925
+ _id: string;
3926
+ } & Required<{
3927
+ _id: string;
3928
+ }> & {
3929
+ __v: number;
3930
+ } & {
3931
+ id: string;
3932
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3933
+ _id: string;
3934
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3935
+ _id: string;
3936
+ } & Required<{
3937
+ _id: string;
3938
+ }> & {
3939
+ __v: number;
3940
+ } & {
3941
+ id: string;
3942
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3943
+ _id: string;
3944
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3945
+ _id: string;
3946
+ } & Required<{
3947
+ _id: string;
3948
+ }> & {
3949
+ __v: number;
3950
+ } & {
3951
+ id: string;
3952
+ }> | undefined;
3953
+ minPurchaseAmount?: import("mongoose").SchemaDefinitionProperty<number | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3954
+ _id: string;
3955
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3956
+ _id: string;
3957
+ } & Required<{
3958
+ _id: string;
3959
+ }> & {
3960
+ __v: number;
3961
+ } & {
3962
+ id: string;
3963
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3964
+ _id: string;
3965
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3966
+ _id: string;
3967
+ } & Required<{
3968
+ _id: string;
3969
+ }> & {
3970
+ __v: number;
3971
+ } & {
3972
+ id: string;
3973
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3974
+ _id: string;
3975
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3976
+ _id: string;
3977
+ } & Required<{
3978
+ _id: string;
3979
+ }> & {
3980
+ __v: number;
3981
+ } & {
3982
+ id: string;
3983
+ }> | undefined;
3984
+ campaign?: import("mongoose").SchemaDefinitionProperty<string | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3985
+ _id: string;
3986
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3987
+ _id: string;
3988
+ } & Required<{
3989
+ _id: string;
3990
+ }> & {
3991
+ __v: number;
3992
+ } & {
3993
+ id: string;
3994
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3995
+ _id: string;
3996
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3997
+ _id: string;
3998
+ } & Required<{
3999
+ _id: string;
4000
+ }> & {
4001
+ __v: number;
4002
+ } & {
4003
+ id: string;
4004
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
4005
+ _id: string;
4006
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
4007
+ _id: string;
4008
+ } & Required<{
4009
+ _id: string;
4010
+ }> & {
4011
+ __v: number;
4012
+ } & {
4013
+ id: string;
4014
+ }> | undefined;
4015
+ createdBy?: import("mongoose").SchemaDefinitionProperty<string, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
4016
+ _id: string;
4017
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
4018
+ _id: string;
4019
+ } & Required<{
4020
+ _id: string;
4021
+ }> & {
4022
+ __v: number;
4023
+ } & {
4024
+ id: string;
4025
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
4026
+ _id: string;
4027
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
4028
+ _id: string;
4029
+ } & Required<{
4030
+ _id: string;
4031
+ }> & {
4032
+ __v: number;
4033
+ } & {
4034
+ id: string;
4035
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
4036
+ _id: string;
4037
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
4038
+ _id: string;
4039
+ } & Required<{
4040
+ _id: string;
4041
+ }> & {
4042
+ __v: number;
4043
+ } & {
4044
+ id: string;
4045
+ }> | undefined;
4046
+ __v?: import("mongoose").SchemaDefinitionProperty<number, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
4047
+ _id: string;
4048
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
4049
+ _id: string;
4050
+ } & Required<{
4051
+ _id: string;
4052
+ }> & {
4053
+ __v: number;
4054
+ } & {
4055
+ id: string;
4056
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
4057
+ _id: string;
4058
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
4059
+ _id: string;
4060
+ } & Required<{
4061
+ _id: string;
4062
+ }> & {
4063
+ __v: number;
4064
+ } & {
4065
+ id: string;
4066
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
4067
+ _id: string;
4068
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
4069
+ _id: string;
4070
+ } & Required<{
4071
+ _id: string;
4072
+ }> & {
4073
+ __v: number;
4074
+ } & {
4075
+ id: string;
4076
+ }> | undefined;
4077
+ id?: import("mongoose").SchemaDefinitionProperty<string, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
4078
+ _id: string;
4079
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
4080
+ _id: string;
4081
+ } & Required<{
4082
+ _id: string;
4083
+ }> & {
4084
+ __v: number;
4085
+ } & {
4086
+ id: string;
4087
+ }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
4088
+ _id: string;
4089
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
4090
+ _id: string;
4091
+ } & Required<{
4092
+ _id: string;
4093
+ }> & {
4094
+ __v: number;
4095
+ } & {
4096
+ id: string;
4097
+ }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
4098
+ _id: string;
4099
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
4100
+ _id: string;
4101
+ } & Required<{
4102
+ _id: string;
4103
+ }> & {
4104
+ __v: number;
4105
+ } & {
4106
+ id: string;
4107
+ }> | undefined;
4108
+ }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
4109
+ _id: string;
4110
+ }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
4111
+ _id: string;
4112
+ } & Required<{
51
4113
  _id: string;
52
4114
  }> & {
53
4115
  __v: number;
4116
+ } & {
4117
+ id: string;
54
4118
  }>;
55
4119
  //# sourceMappingURL=promo-code.schema.d.ts.map