@managesome/knotr-toolkit 0.8.6 → 0.8.8

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 (80) hide show
  1. package/dist/backend/index.d.ts +2 -1
  2. package/dist/backend/index.d.ts.map +1 -1
  3. package/dist/backend/index.js +2 -0
  4. package/dist/backend/index.js.map +1 -1
  5. package/dist/backend/service-auth.d.ts +54 -0
  6. package/dist/backend/service-auth.d.ts.map +1 -0
  7. package/dist/backend/service-auth.js +142 -0
  8. package/dist/backend/service-auth.js.map +1 -0
  9. package/dist/helpers/id-generator.d.ts +15 -5
  10. package/dist/helpers/id-generator.d.ts.map +1 -1
  11. package/dist/helpers/id-generator.js +18 -5
  12. package/dist/helpers/id-generator.js.map +1 -1
  13. package/dist/schemas/account.schema.d.ts +7 -4331
  14. package/dist/schemas/account.schema.d.ts.map +1 -1
  15. package/dist/schemas/chat.schema.d.ts +42 -4662
  16. package/dist/schemas/chat.schema.d.ts.map +1 -1
  17. package/dist/schemas/chat.schema.js +37 -3
  18. package/dist/schemas/chat.schema.js.map +1 -1
  19. package/dist/schemas/collaboration-request.schema.d.ts +8 -3917
  20. package/dist/schemas/collaboration-request.schema.d.ts.map +1 -1
  21. package/dist/schemas/company-review.schema.d.ts +7 -3421
  22. package/dist/schemas/company-review.schema.d.ts.map +1 -1
  23. package/dist/schemas/company.schema.d.ts +8 -6108
  24. package/dist/schemas/company.schema.d.ts.map +1 -1
  25. package/dist/schemas/contract.schema.d.ts +7 -5241
  26. package/dist/schemas/contract.schema.d.ts.map +1 -1
  27. package/dist/schemas/dispute-evidence.schema.d.ts +8 -3747
  28. package/dist/schemas/dispute-evidence.schema.d.ts.map +1 -1
  29. package/dist/schemas/dispute.schema.d.ts +8 -4926
  30. package/dist/schemas/dispute.schema.d.ts.map +1 -1
  31. package/dist/schemas/donation.schema.d.ts +8 -3552
  32. package/dist/schemas/donation.schema.d.ts.map +1 -1
  33. package/dist/schemas/escrow.schema.d.ts +8 -4279
  34. package/dist/schemas/escrow.schema.d.ts.map +1 -1
  35. package/dist/schemas/flag.schema.d.ts +8 -4332
  36. package/dist/schemas/flag.schema.d.ts.map +1 -1
  37. package/dist/schemas/interest.schema.d.ts +7 -3811
  38. package/dist/schemas/interest.schema.d.ts.map +1 -1
  39. package/dist/schemas/match.schema.d.ts +7 -3941
  40. package/dist/schemas/match.schema.d.ts.map +1 -1
  41. package/dist/schemas/message.schema.d.ts +7 -4071
  42. package/dist/schemas/message.schema.d.ts.map +1 -1
  43. package/dist/schemas/milestone.schema.d.ts +8 -4267
  44. package/dist/schemas/milestone.schema.d.ts.map +1 -1
  45. package/dist/schemas/notification.schema.d.ts +8 -4595
  46. package/dist/schemas/notification.schema.d.ts.map +1 -1
  47. package/dist/schemas/profile.schema.d.ts +16 -9241
  48. package/dist/schemas/profile.schema.d.ts.map +1 -1
  49. package/dist/schemas/profit-share-agreement.schema.d.ts +7 -3746
  50. package/dist/schemas/profit-share-agreement.schema.d.ts.map +1 -1
  51. package/dist/schemas/profit-share.schema.d.ts +7 -4006
  52. package/dist/schemas/profit-share.schema.d.ts.map +1 -1
  53. package/dist/schemas/promo-code.schema.d.ts +7 -3876
  54. package/dist/schemas/promo-code.schema.d.ts.map +1 -1
  55. package/dist/schemas/proposal.schema.d.ts +8 -5139
  56. package/dist/schemas/proposal.schema.d.ts.map +1 -1
  57. package/dist/schemas/purchase.schema.d.ts +8 -3682
  58. package/dist/schemas/purchase.schema.d.ts.map +1 -1
  59. package/dist/schemas/requirement-post.schema.d.ts +8 -6272
  60. package/dist/schemas/requirement-post.schema.d.ts.map +1 -1
  61. package/dist/schemas/review.schema.d.ts +8 -4462
  62. package/dist/schemas/review.schema.d.ts.map +1 -1
  63. package/dist/schemas/service-listing.schema.d.ts +8 -5109
  64. package/dist/schemas/service-listing.schema.d.ts.map +1 -1
  65. package/dist/schemas/subscription.schema.d.ts +8 -3942
  66. package/dist/schemas/subscription.schema.d.ts.map +1 -1
  67. package/dist/schemas/tmc-application.schema.d.ts +8 -4316
  68. package/dist/schemas/tmc-application.schema.d.ts.map +1 -1
  69. package/dist/schemas/tmc-membership.schema.d.ts +8 -3942
  70. package/dist/schemas/tmc-membership.schema.d.ts.map +1 -1
  71. package/dist/schemas/trust-badge.schema.d.ts +7 -3876
  72. package/dist/schemas/trust-badge.schema.d.ts.map +1 -1
  73. package/dist/schemas/verification.schema.d.ts +8 -4564
  74. package/dist/schemas/verification.schema.d.ts.map +1 -1
  75. package/dist/schemas/webhook-event.schema.d.ts +7 -3489
  76. package/dist/schemas/webhook-event.schema.d.ts.map +1 -1
  77. package/dist/types/chat.d.ts +6 -1
  78. package/dist/types/chat.d.ts.map +1 -1
  79. package/dist/types/chat.js.map +1 -1
  80. package/package.json +1 -1
@@ -17,3908 +17,39 @@ 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
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
20
+ }, {}, {}> & Omit<IPromoCode, "id"> & {
21
21
  _id: string;
22
22
  } & Required<{
23
23
  _id: string;
24
24
  }> & {
25
25
  __v: number;
26
- } & {
27
- id: string;
28
26
  }, PromoCodeModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
29
27
  _id: string;
30
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
28
+ }, {}, {}> & Omit<IPromoCode, "id"> & {
31
29
  _id: string;
32
30
  } & Required<{
33
31
  _id: string;
34
32
  }> & {
35
33
  __v: number;
36
- } & {
37
- id: string;
38
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
34
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
39
35
  _id: string;
40
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
36
+ }, {}, {}> & Omit<IPromoCode, "id"> & {
41
37
  _id: string;
42
38
  } & Required<{
43
39
  _id: string;
44
40
  }> & {
45
41
  __v: number;
46
- } & {
47
- id: string;
48
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
42
+ }>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
49
43
  _id: string;
50
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
44
+ }, {}, {}> & Omit<IPromoCode, "id"> & {
51
45
  _id: string;
52
46
  } & Required<{
53
47
  _id: string;
54
48
  }> & {
55
49
  __v: number;
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 "code" | "createdAt" | "updatedAt" | "_id" | "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 "code" | "createdAt" | "updatedAt" | "_id" | "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 "code" | "createdAt" | "updatedAt" | "_id" | "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 "code" | "createdAt" | "updatedAt" | "_id" | "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 "code" | "createdAt" | "updatedAt" | "_id" | "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 "code" | "createdAt" | "updatedAt" | "_id" | "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 "code" | "createdAt" | "updatedAt" | "_id" | "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 "code" | "createdAt" | "updatedAt" | "_id" | "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 "code" | "createdAt" | "updatedAt" | "_id" | "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
- code: string;
2010
- createdAt: Date;
2011
- updatedAt: Date;
2012
- _id: string;
2013
- discountType: import("../index.js").DiscountType;
2014
- discountValue: number;
2015
- trialExtensionDays?: number | undefined;
2016
- validFrom: Date;
2017
- validUntil: Date;
2018
- isActive: boolean;
2019
- maxUses?: number | undefined;
2020
- currentUses: number;
2021
- maxUsesPerAccount: number;
2022
- applicablePlans?: SubscriptionPlan[] | undefined;
2023
- newAccountsOnly: boolean;
2024
- minPurchaseAmount?: number | undefined;
2025
- campaign?: string | undefined;
2026
- createdBy: string;
2027
- };
2028
- (options: import("mongoose").ToObjectOptions & {
2029
- flattenMaps: false;
2030
- flattenObjectIds: true;
2031
- virtuals: true;
2032
- }): {
2033
- code: string;
2034
- createdAt: Date;
2035
- updatedAt: Date;
2036
- discountType: import("../index.js").DiscountType;
2037
- discountValue: number;
2038
- trialExtensionDays?: number | undefined;
2039
- validFrom: Date;
2040
- validUntil: Date;
2041
- isActive: boolean;
2042
- maxUses?: number | undefined;
2043
- currentUses: number;
2044
- maxUsesPerAccount: number;
2045
- applicablePlans?: SubscriptionPlan[] | undefined;
2046
- newAccountsOnly: boolean;
2047
- minPurchaseAmount?: number | undefined;
2048
- campaign?: string | undefined;
2049
- createdBy: string;
2050
- _id: string;
2051
- };
2052
- (options: import("mongoose").ToObjectOptions & {
2053
- flattenMaps: false;
2054
- flattenObjectIds: false;
2055
- virtuals: true;
2056
- versionKey: false;
2057
- }): Omit<Omit<IPromoCode, "id"> & {
2058
- _id: string;
2059
- } & Required<{
2060
- _id: string;
2061
- }>, "__v">;
2062
- (options: import("mongoose").ToObjectOptions & {
2063
- flattenMaps: false;
2064
- flattenObjectIds: false;
2065
- virtuals: true;
2066
- }): Omit<IPromoCode, "id"> & {
2067
- _id: string;
2068
- } & Required<{
2069
- _id: string;
2070
- }>;
2071
- (options: import("mongoose").ToObjectOptions & {
2072
- flattenMaps: false;
2073
- flattenObjectIds: true;
2074
- virtuals: false;
2075
- versionKey: false;
2076
- }): {
2077
- code: string;
2078
- createdAt: Date;
2079
- updatedAt: Date;
2080
- _id: string;
2081
- discountType: import("../index.js").DiscountType;
2082
- discountValue: number;
2083
- trialExtensionDays?: number | undefined;
2084
- validFrom: Date;
2085
- validUntil: Date;
2086
- isActive: boolean;
2087
- maxUses?: number | undefined;
2088
- currentUses: number;
2089
- maxUsesPerAccount: number;
2090
- applicablePlans?: SubscriptionPlan[] | undefined;
2091
- newAccountsOnly: boolean;
2092
- minPurchaseAmount?: number | undefined;
2093
- campaign?: string | undefined;
2094
- createdBy: string;
2095
- };
2096
- (options: import("mongoose").ToObjectOptions & {
2097
- flattenMaps: false;
2098
- flattenObjectIds: true;
2099
- virtuals: false;
2100
- }): {
2101
- code: string;
2102
- createdAt: Date;
2103
- updatedAt: Date;
2104
- discountType: import("../index.js").DiscountType;
2105
- discountValue: number;
2106
- trialExtensionDays?: number | undefined;
2107
- validFrom: Date;
2108
- validUntil: Date;
2109
- isActive: boolean;
2110
- maxUses?: number | undefined;
2111
- currentUses: number;
2112
- maxUsesPerAccount: number;
2113
- applicablePlans?: SubscriptionPlan[] | undefined;
2114
- newAccountsOnly: boolean;
2115
- minPurchaseAmount?: number | undefined;
2116
- campaign?: string | undefined;
2117
- createdBy: string;
2118
- _id: string;
2119
- };
2120
- (options: import("mongoose").ToObjectOptions & {
2121
- flattenMaps: false;
2122
- flattenObjectIds: false;
2123
- virtuals: false;
2124
- versionKey: false;
2125
- }): Omit<Omit<IPromoCode, "id"> & {
2126
- _id: string;
2127
- } & Required<{
2128
- _id: string;
2129
- }>, "__v">;
2130
- (options: import("mongoose").ToObjectOptions & {
2131
- flattenMaps: false;
2132
- flattenObjectIds: false;
2133
- virtuals: false;
2134
- }): Omit<IPromoCode, "id"> & {
2135
- _id: string;
2136
- } & Required<{
2137
- _id: string;
2138
- }>;
2139
- (options: import("mongoose").ToObjectOptions & {
2140
- flattenMaps: true;
2141
- flattenObjectIds: true;
2142
- virtuals: true;
2143
- versionKey: false;
2144
- }): {
2145
- code: string;
2146
- createdAt: Date;
2147
- updatedAt: Date;
2148
- _id: string;
2149
- discountType: import("../index.js").DiscountType;
2150
- discountValue: number;
2151
- trialExtensionDays?: number | undefined;
2152
- validFrom: Date;
2153
- validUntil: Date;
2154
- isActive: boolean;
2155
- maxUses?: number | undefined;
2156
- currentUses: number;
2157
- maxUsesPerAccount: number;
2158
- applicablePlans?: SubscriptionPlan[] | undefined;
2159
- newAccountsOnly: boolean;
2160
- minPurchaseAmount?: number | undefined;
2161
- campaign?: string | undefined;
2162
- createdBy: string;
2163
- };
2164
- (options: import("mongoose").ToObjectOptions & {
2165
- flattenMaps: true;
2166
- flattenObjectIds: true;
2167
- virtuals: true;
2168
- }): {
2169
- code: string;
2170
- createdAt: Date;
2171
- updatedAt: Date;
2172
- discountType: import("../index.js").DiscountType;
2173
- discountValue: number;
2174
- trialExtensionDays?: number | undefined;
2175
- validFrom: Date;
2176
- validUntil: Date;
2177
- isActive: boolean;
2178
- maxUses?: number | undefined;
2179
- currentUses: number;
2180
- maxUsesPerAccount: number;
2181
- applicablePlans?: SubscriptionPlan[] | undefined;
2182
- newAccountsOnly: boolean;
2183
- minPurchaseAmount?: number | undefined;
2184
- campaign?: string | undefined;
2185
- createdBy: string;
2186
- _id: string;
2187
- };
2188
- (options: import("mongoose").ToObjectOptions & {
2189
- flattenMaps: true;
2190
- flattenObjectIds: false;
2191
- virtuals: true;
2192
- versionKey: false;
2193
- }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2194
- _id: string;
2195
- } & Required<{
2196
- _id: string;
2197
- }>>, "__v">;
2198
- (options: import("mongoose").ToObjectOptions & {
2199
- flattenMaps: true;
2200
- flattenObjectIds: false;
2201
- virtuals: true;
2202
- }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2203
- _id: string;
2204
- } & Required<{
2205
- _id: string;
2206
- }>>;
2207
- (options: import("mongoose").ToObjectOptions & {
2208
- flattenMaps: true;
2209
- flattenObjectIds: true;
2210
- virtuals: false;
2211
- versionKey: false;
2212
- }): {
2213
- code: string;
2214
- createdAt: Date;
2215
- updatedAt: Date;
2216
- _id: string;
2217
- discountType: import("../index.js").DiscountType;
2218
- discountValue: number;
2219
- trialExtensionDays?: number | undefined;
2220
- validFrom: Date;
2221
- validUntil: Date;
2222
- isActive: boolean;
2223
- maxUses?: number | undefined;
2224
- currentUses: number;
2225
- maxUsesPerAccount: number;
2226
- applicablePlans?: SubscriptionPlan[] | undefined;
2227
- newAccountsOnly: boolean;
2228
- minPurchaseAmount?: number | undefined;
2229
- campaign?: string | undefined;
2230
- createdBy: string;
2231
- };
2232
- (options: import("mongoose").ToObjectOptions & {
2233
- flattenMaps: true;
2234
- flattenObjectIds: true;
2235
- virtuals: false;
2236
- }): {
2237
- code: string;
2238
- createdAt: Date;
2239
- updatedAt: Date;
2240
- discountType: import("../index.js").DiscountType;
2241
- discountValue: number;
2242
- trialExtensionDays?: number | undefined;
2243
- validFrom: Date;
2244
- validUntil: Date;
2245
- isActive: boolean;
2246
- maxUses?: number | undefined;
2247
- currentUses: number;
2248
- maxUsesPerAccount: number;
2249
- applicablePlans?: SubscriptionPlan[] | undefined;
2250
- newAccountsOnly: boolean;
2251
- minPurchaseAmount?: number | undefined;
2252
- campaign?: string | undefined;
2253
- createdBy: string;
2254
- _id: string;
2255
- };
2256
- (options: import("mongoose").ToObjectOptions & {
2257
- flattenMaps: true;
2258
- flattenObjectIds: false;
2259
- virtuals: false;
2260
- versionKey: false;
2261
- }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2262
- _id: string;
2263
- } & Required<{
2264
- _id: string;
2265
- }>>, "__v">;
2266
- (options: import("mongoose").ToObjectOptions & {
2267
- flattenMaps: true;
2268
- flattenObjectIds: false;
2269
- virtuals: false;
2270
- }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2271
- _id: string;
2272
- } & Required<{
2273
- _id: string;
2274
- }>>;
2275
- (options: import("mongoose").ToObjectOptions & {
2276
- flattenMaps: true;
2277
- flattenObjectIds: true;
2278
- virtuals: true;
2279
- }): {
2280
- code: string;
2281
- createdAt: Date;
2282
- updatedAt: Date;
2283
- discountType: import("../index.js").DiscountType;
2284
- discountValue: number;
2285
- trialExtensionDays?: number | undefined;
2286
- validFrom: Date;
2287
- validUntil: Date;
2288
- isActive: boolean;
2289
- maxUses?: number | undefined;
2290
- currentUses: number;
2291
- maxUsesPerAccount: number;
2292
- applicablePlans?: SubscriptionPlan[] | undefined;
2293
- newAccountsOnly: boolean;
2294
- minPurchaseAmount?: number | undefined;
2295
- campaign?: string | undefined;
2296
- createdBy: string;
2297
- _id: string;
2298
- };
2299
- (options: import("mongoose").ToObjectOptions & {
2300
- flattenMaps: true;
2301
- flattenObjectIds: true;
2302
- }): {
2303
- code: string;
2304
- createdAt: Date;
2305
- updatedAt: Date;
2306
- discountType: import("../index.js").DiscountType;
2307
- discountValue: number;
2308
- trialExtensionDays?: number | undefined;
2309
- validFrom: Date;
2310
- validUntil: Date;
2311
- isActive: boolean;
2312
- maxUses?: number | undefined;
2313
- currentUses: number;
2314
- maxUsesPerAccount: number;
2315
- applicablePlans?: SubscriptionPlan[] | undefined;
2316
- newAccountsOnly: boolean;
2317
- minPurchaseAmount?: number | undefined;
2318
- campaign?: string | undefined;
2319
- createdBy: string;
2320
- _id: string;
2321
- };
2322
- (options: import("mongoose").ToObjectOptions & {
2323
- flattenObjectIds: true;
2324
- virtuals: true;
2325
- }): {
2326
- code: string;
2327
- createdAt: Date;
2328
- updatedAt: Date;
2329
- discountType: import("../index.js").DiscountType;
2330
- discountValue: number;
2331
- trialExtensionDays?: number | undefined;
2332
- validFrom: Date;
2333
- validUntil: Date;
2334
- isActive: boolean;
2335
- maxUses?: number | undefined;
2336
- currentUses: number;
2337
- maxUsesPerAccount: number;
2338
- applicablePlans?: SubscriptionPlan[] | undefined;
2339
- newAccountsOnly: boolean;
2340
- minPurchaseAmount?: number | undefined;
2341
- campaign?: string | undefined;
2342
- createdBy: string;
2343
- _id: string;
2344
- };
2345
- (options: import("mongoose").ToObjectOptions & {
2346
- flattenObjectIds: true;
2347
- }): {
2348
- code: string;
2349
- createdAt: Date;
2350
- updatedAt: Date;
2351
- discountType: import("../index.js").DiscountType;
2352
- discountValue: number;
2353
- trialExtensionDays?: number | undefined;
2354
- validFrom: Date;
2355
- validUntil: Date;
2356
- isActive: boolean;
2357
- maxUses?: number | undefined;
2358
- currentUses: number;
2359
- maxUsesPerAccount: number;
2360
- applicablePlans?: SubscriptionPlan[] | undefined;
2361
- newAccountsOnly: boolean;
2362
- minPurchaseAmount?: number | undefined;
2363
- campaign?: string | undefined;
2364
- createdBy: string;
2365
- _id: string;
2366
- };
2367
- (options: import("mongoose").ToObjectOptions & {
2368
- flattenMaps: true;
2369
- virtuals: true;
2370
- }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2371
- _id: string;
2372
- } & Required<{
2373
- _id: string;
2374
- }>>;
2375
- (options: import("mongoose").ToObjectOptions & {
2376
- flattenMaps: true;
2377
- }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2378
- _id: string;
2379
- } & Required<{
2380
- _id: string;
2381
- }>>;
2382
- (options: import("mongoose").ToObjectOptions & {
2383
- versionKey: false;
2384
- flattenMaps: true;
2385
- flattenObjectIds: true;
2386
- virtuals: true;
2387
- }): {
2388
- code: string;
2389
- createdAt: Date;
2390
- updatedAt: Date;
2391
- _id: string;
2392
- discountType: import("../index.js").DiscountType;
2393
- discountValue: number;
2394
- trialExtensionDays?: number | undefined;
2395
- validFrom: Date;
2396
- validUntil: Date;
2397
- isActive: boolean;
2398
- maxUses?: number | undefined;
2399
- currentUses: number;
2400
- maxUsesPerAccount: number;
2401
- applicablePlans?: SubscriptionPlan[] | undefined;
2402
- newAccountsOnly: boolean;
2403
- minPurchaseAmount?: number | undefined;
2404
- campaign?: string | undefined;
2405
- createdBy: string;
2406
- };
2407
- (options: import("mongoose").ToObjectOptions & {
2408
- versionKey: false;
2409
- flattenMaps: false;
2410
- flattenObjectIds: true;
2411
- virtuals: true;
2412
- }): {
2413
- code: string;
2414
- createdAt: Date;
2415
- updatedAt: Date;
2416
- _id: string;
2417
- discountType: import("../index.js").DiscountType;
2418
- discountValue: number;
2419
- trialExtensionDays?: number | undefined;
2420
- validFrom: Date;
2421
- validUntil: Date;
2422
- isActive: boolean;
2423
- maxUses?: number | undefined;
2424
- currentUses: number;
2425
- maxUsesPerAccount: number;
2426
- applicablePlans?: SubscriptionPlan[] | undefined;
2427
- newAccountsOnly: boolean;
2428
- minPurchaseAmount?: number | undefined;
2429
- campaign?: string | undefined;
2430
- createdBy: string;
2431
- };
2432
- (options: import("mongoose").ToObjectOptions & {
2433
- versionKey: false;
2434
- flattenMaps: true;
2435
- virtuals: true;
2436
- }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2437
- _id: string;
2438
- } & Required<{
2439
- _id: string;
2440
- }>>, "__v">;
2441
- (options: import("mongoose").ToObjectOptions & {
2442
- versionKey: false;
2443
- flattenObjectIds: true;
2444
- virtuals: true;
2445
- }): {
2446
- code: string;
2447
- createdAt: Date;
2448
- updatedAt: Date;
2449
- _id: string;
2450
- discountType: import("../index.js").DiscountType;
2451
- discountValue: number;
2452
- trialExtensionDays?: number | undefined;
2453
- validFrom: Date;
2454
- validUntil: Date;
2455
- isActive: boolean;
2456
- maxUses?: number | undefined;
2457
- currentUses: number;
2458
- maxUsesPerAccount: number;
2459
- applicablePlans?: SubscriptionPlan[] | undefined;
2460
- newAccountsOnly: boolean;
2461
- minPurchaseAmount?: number | undefined;
2462
- campaign?: string | undefined;
2463
- createdBy: string;
2464
- };
2465
- (options: import("mongoose").ToObjectOptions & {
2466
- versionKey: false;
2467
- virtuals: true;
2468
- }): Omit<Omit<IPromoCode, "id"> & {
2469
- _id: string;
2470
- } & Required<{
2471
- _id: string;
2472
- }>, "__v">;
2473
- (options: import("mongoose").ToObjectOptions & {
2474
- versionKey: false;
2475
- flattenMaps: true;
2476
- flattenObjectIds: true;
2477
- }): {
2478
- code: string;
2479
- createdAt: Date;
2480
- updatedAt: Date;
2481
- _id: string;
2482
- discountType: import("../index.js").DiscountType;
2483
- discountValue: number;
2484
- trialExtensionDays?: number | undefined;
2485
- validFrom: Date;
2486
- validUntil: Date;
2487
- isActive: boolean;
2488
- maxUses?: number | undefined;
2489
- currentUses: number;
2490
- maxUsesPerAccount: number;
2491
- applicablePlans?: SubscriptionPlan[] | undefined;
2492
- newAccountsOnly: boolean;
2493
- minPurchaseAmount?: number | undefined;
2494
- campaign?: string | undefined;
2495
- createdBy: string;
2496
- };
2497
- (options: import("mongoose").ToObjectOptions & {
2498
- versionKey: false;
2499
- flattenObjectIds: true;
2500
- }): {
2501
- code: string;
2502
- createdAt: Date;
2503
- updatedAt: Date;
2504
- _id: string;
2505
- discountType: import("../index.js").DiscountType;
2506
- discountValue: number;
2507
- trialExtensionDays?: number | undefined;
2508
- validFrom: Date;
2509
- validUntil: Date;
2510
- isActive: boolean;
2511
- maxUses?: number | undefined;
2512
- currentUses: number;
2513
- maxUsesPerAccount: number;
2514
- applicablePlans?: SubscriptionPlan[] | undefined;
2515
- newAccountsOnly: boolean;
2516
- minPurchaseAmount?: number | undefined;
2517
- campaign?: string | undefined;
2518
- createdBy: string;
2519
- };
2520
- (options: import("mongoose").ToObjectOptions & {
2521
- versionKey: false;
2522
- flattenMaps: true;
2523
- }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2524
- _id: string;
2525
- } & Required<{
2526
- _id: string;
2527
- }>>, "__v">;
2528
- (options: import("mongoose").ToObjectOptions & {
2529
- versionKey: false;
2530
- }): Omit<Omit<IPromoCode, "id"> & {
2531
- _id: string;
2532
- } & Required<{
2533
- _id: string;
2534
- }>, "__v">;
2535
- (options: import("mongoose").ToObjectOptions & {
2536
- virtuals: true;
2537
- }): Omit<IPromoCode, "id"> & {
2538
- _id: string;
2539
- } & Required<{
2540
- _id: string;
2541
- }>;
2542
- (options?: import("mongoose").ToObjectOptions): Omit<IPromoCode, "id"> & {
2543
- _id: string;
2544
- } & Required<{
2545
- _id: string;
2546
- }> & {
2547
- __v: number;
2548
- };
2549
- <T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> & {
2550
- __v: number;
2551
- };
2552
- }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
2553
- _id: string;
2554
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
2555
- _id: string;
2556
- } & Required<{
2557
- _id: string;
2558
- }> & {
2559
- __v: number;
2560
- } & {
2561
- id: string;
2562
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
2563
- _id: string;
2564
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
2565
- _id: string;
2566
- } & Required<{
2567
- _id: string;
2568
- }> & {
2569
- __v: number;
2570
- } & {
2571
- id: string;
2572
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
2573
- _id: string;
2574
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
2575
- _id: string;
2576
- } & Required<{
2577
- _id: string;
2578
- }> & {
2579
- __v: number;
2580
- } & {
2581
- id: string;
2582
- }> | undefined;
2583
- toObject?: import("mongoose").SchemaDefinitionProperty<{
2584
- (options: import("mongoose").ToObjectOptions & {
2585
- flattenMaps: false;
2586
- flattenObjectIds: true;
2587
- virtuals: true;
2588
- versionKey: false;
2589
- }): {
2590
- code: string;
2591
- createdAt: Date;
2592
- updatedAt: Date;
2593
- _id: string;
2594
- discountType: import("../index.js").DiscountType;
2595
- discountValue: number;
2596
- trialExtensionDays?: number | undefined;
2597
- validFrom: Date;
2598
- validUntil: Date;
2599
- isActive: boolean;
2600
- maxUses?: number | undefined;
2601
- currentUses: number;
2602
- maxUsesPerAccount: number;
2603
- applicablePlans?: SubscriptionPlan[] | undefined;
2604
- newAccountsOnly: boolean;
2605
- minPurchaseAmount?: number | undefined;
2606
- campaign?: string | undefined;
2607
- createdBy: string;
2608
- };
2609
- (options: import("mongoose").ToObjectOptions & {
2610
- flattenMaps: false;
2611
- flattenObjectIds: true;
2612
- virtuals: true;
2613
- }): {
2614
- code: string;
2615
- createdAt: Date;
2616
- updatedAt: Date;
2617
- discountType: import("../index.js").DiscountType;
2618
- discountValue: number;
2619
- trialExtensionDays?: number | undefined;
2620
- validFrom: Date;
2621
- validUntil: Date;
2622
- isActive: boolean;
2623
- maxUses?: number | undefined;
2624
- currentUses: number;
2625
- maxUsesPerAccount: number;
2626
- applicablePlans?: SubscriptionPlan[] | undefined;
2627
- newAccountsOnly: boolean;
2628
- minPurchaseAmount?: number | undefined;
2629
- campaign?: string | undefined;
2630
- createdBy: string;
2631
- _id: string;
2632
- };
2633
- (options: import("mongoose").ToObjectOptions & {
2634
- flattenMaps: false;
2635
- flattenObjectIds: false;
2636
- virtuals: true;
2637
- versionKey: false;
2638
- }): Omit<Omit<IPromoCode, "id"> & {
2639
- _id: string;
2640
- } & Required<{
2641
- _id: string;
2642
- }>, "__v">;
2643
- (options: import("mongoose").ToObjectOptions & {
2644
- flattenMaps: false;
2645
- flattenObjectIds: false;
2646
- virtuals: true;
2647
- }): Omit<IPromoCode, "id"> & {
2648
- _id: string;
2649
- } & Required<{
2650
- _id: string;
2651
- }>;
2652
- (options: import("mongoose").ToObjectOptions & {
2653
- flattenMaps: false;
2654
- flattenObjectIds: true;
2655
- virtuals: false;
2656
- versionKey: false;
2657
- }): {
2658
- code: string;
2659
- createdAt: Date;
2660
- updatedAt: Date;
2661
- _id: string;
2662
- discountType: import("../index.js").DiscountType;
2663
- discountValue: number;
2664
- trialExtensionDays?: number | undefined;
2665
- validFrom: Date;
2666
- validUntil: Date;
2667
- isActive: boolean;
2668
- maxUses?: number | undefined;
2669
- currentUses: number;
2670
- maxUsesPerAccount: number;
2671
- applicablePlans?: SubscriptionPlan[] | undefined;
2672
- newAccountsOnly: boolean;
2673
- minPurchaseAmount?: number | undefined;
2674
- campaign?: string | undefined;
2675
- createdBy: string;
2676
- };
2677
- (options: import("mongoose").ToObjectOptions & {
2678
- flattenMaps: false;
2679
- flattenObjectIds: true;
2680
- virtuals: false;
2681
- }): {
2682
- code: string;
2683
- createdAt: Date;
2684
- updatedAt: Date;
2685
- discountType: import("../index.js").DiscountType;
2686
- discountValue: number;
2687
- trialExtensionDays?: number | undefined;
2688
- validFrom: Date;
2689
- validUntil: Date;
2690
- isActive: boolean;
2691
- maxUses?: number | undefined;
2692
- currentUses: number;
2693
- maxUsesPerAccount: number;
2694
- applicablePlans?: SubscriptionPlan[] | undefined;
2695
- newAccountsOnly: boolean;
2696
- minPurchaseAmount?: number | undefined;
2697
- campaign?: string | undefined;
2698
- createdBy: string;
2699
- _id: string;
2700
- };
2701
- (options: import("mongoose").ToObjectOptions & {
2702
- flattenMaps: false;
2703
- flattenObjectIds: false;
2704
- virtuals: false;
2705
- versionKey: false;
2706
- }): Omit<Omit<IPromoCode, "id"> & {
2707
- _id: string;
2708
- } & Required<{
2709
- _id: string;
2710
- }>, "__v">;
2711
- (options: import("mongoose").ToObjectOptions & {
2712
- flattenMaps: false;
2713
- flattenObjectIds: false;
2714
- virtuals: false;
2715
- }): Omit<IPromoCode, "id"> & {
2716
- _id: string;
2717
- } & Required<{
2718
- _id: string;
2719
- }>;
2720
- (options: import("mongoose").ToObjectOptions & {
2721
- flattenMaps: true;
2722
- flattenObjectIds: true;
2723
- virtuals: true;
2724
- versionKey: false;
2725
- }): {
2726
- code: string;
2727
- createdAt: Date;
2728
- updatedAt: Date;
2729
- _id: string;
2730
- discountType: import("../index.js").DiscountType;
2731
- discountValue: number;
2732
- trialExtensionDays?: number | undefined;
2733
- validFrom: Date;
2734
- validUntil: Date;
2735
- isActive: boolean;
2736
- maxUses?: number | undefined;
2737
- currentUses: number;
2738
- maxUsesPerAccount: number;
2739
- applicablePlans?: SubscriptionPlan[] | undefined;
2740
- newAccountsOnly: boolean;
2741
- minPurchaseAmount?: number | undefined;
2742
- campaign?: string | undefined;
2743
- createdBy: string;
2744
- };
2745
- (options: import("mongoose").ToObjectOptions & {
2746
- flattenMaps: true;
2747
- flattenObjectIds: true;
2748
- virtuals: true;
2749
- }): {
2750
- code: string;
2751
- createdAt: Date;
2752
- updatedAt: Date;
2753
- discountType: import("../index.js").DiscountType;
2754
- discountValue: number;
2755
- trialExtensionDays?: number | undefined;
2756
- validFrom: Date;
2757
- validUntil: Date;
2758
- isActive: boolean;
2759
- maxUses?: number | undefined;
2760
- currentUses: number;
2761
- maxUsesPerAccount: number;
2762
- applicablePlans?: SubscriptionPlan[] | undefined;
2763
- newAccountsOnly: boolean;
2764
- minPurchaseAmount?: number | undefined;
2765
- campaign?: string | undefined;
2766
- createdBy: string;
2767
- _id: string;
2768
- };
2769
- (options: import("mongoose").ToObjectOptions & {
2770
- flattenMaps: true;
2771
- flattenObjectIds: false;
2772
- virtuals: true;
2773
- versionKey: false;
2774
- }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2775
- _id: string;
2776
- } & Required<{
2777
- _id: string;
2778
- }>>, "__v">;
2779
- (options: import("mongoose").ToObjectOptions & {
2780
- flattenMaps: true;
2781
- flattenObjectIds: false;
2782
- virtuals: true;
2783
- }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2784
- _id: string;
2785
- } & Required<{
2786
- _id: string;
2787
- }>>;
2788
- (options: import("mongoose").ToObjectOptions & {
2789
- flattenMaps: true;
2790
- flattenObjectIds: true;
2791
- virtuals: false;
2792
- versionKey: false;
2793
- }): {
2794
- code: string;
2795
- createdAt: Date;
2796
- updatedAt: Date;
2797
- _id: string;
2798
- discountType: import("../index.js").DiscountType;
2799
- discountValue: number;
2800
- trialExtensionDays?: number | undefined;
2801
- validFrom: Date;
2802
- validUntil: Date;
2803
- isActive: boolean;
2804
- maxUses?: number | undefined;
2805
- currentUses: number;
2806
- maxUsesPerAccount: number;
2807
- applicablePlans?: SubscriptionPlan[] | undefined;
2808
- newAccountsOnly: boolean;
2809
- minPurchaseAmount?: number | undefined;
2810
- campaign?: string | undefined;
2811
- createdBy: string;
2812
- };
2813
- (options: import("mongoose").ToObjectOptions & {
2814
- flattenMaps: true;
2815
- flattenObjectIds: true;
2816
- virtuals: false;
2817
- }): {
2818
- code: string;
2819
- createdAt: Date;
2820
- updatedAt: Date;
2821
- discountType: import("../index.js").DiscountType;
2822
- discountValue: number;
2823
- trialExtensionDays?: number | undefined;
2824
- validFrom: Date;
2825
- validUntil: Date;
2826
- isActive: boolean;
2827
- maxUses?: number | undefined;
2828
- currentUses: number;
2829
- maxUsesPerAccount: number;
2830
- applicablePlans?: SubscriptionPlan[] | undefined;
2831
- newAccountsOnly: boolean;
2832
- minPurchaseAmount?: number | undefined;
2833
- campaign?: string | undefined;
2834
- createdBy: string;
2835
- _id: string;
2836
- };
2837
- (options: import("mongoose").ToObjectOptions & {
2838
- flattenMaps: true;
2839
- flattenObjectIds: false;
2840
- virtuals: false;
2841
- versionKey: false;
2842
- }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2843
- _id: string;
2844
- } & Required<{
2845
- _id: string;
2846
- }>>, "__v">;
2847
- (options: import("mongoose").ToObjectOptions & {
2848
- flattenMaps: true;
2849
- flattenObjectIds: false;
2850
- virtuals: false;
2851
- }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2852
- _id: string;
2853
- } & Required<{
2854
- _id: string;
2855
- }>>;
2856
- (options: import("mongoose").ToObjectOptions & {
2857
- flattenMaps: true;
2858
- flattenObjectIds: true;
2859
- virtuals: true;
2860
- }): {
2861
- code: string;
2862
- createdAt: Date;
2863
- updatedAt: Date;
2864
- discountType: import("../index.js").DiscountType;
2865
- discountValue: number;
2866
- trialExtensionDays?: number | undefined;
2867
- validFrom: Date;
2868
- validUntil: Date;
2869
- isActive: boolean;
2870
- maxUses?: number | undefined;
2871
- currentUses: number;
2872
- maxUsesPerAccount: number;
2873
- applicablePlans?: SubscriptionPlan[] | undefined;
2874
- newAccountsOnly: boolean;
2875
- minPurchaseAmount?: number | undefined;
2876
- campaign?: string | undefined;
2877
- createdBy: string;
2878
- _id: string;
2879
- };
2880
- (options: import("mongoose").ToObjectOptions & {
2881
- flattenMaps: true;
2882
- flattenObjectIds: true;
2883
- }): {
2884
- code: string;
2885
- createdAt: Date;
2886
- updatedAt: Date;
2887
- discountType: import("../index.js").DiscountType;
2888
- discountValue: number;
2889
- trialExtensionDays?: number | undefined;
2890
- validFrom: Date;
2891
- validUntil: Date;
2892
- isActive: boolean;
2893
- maxUses?: number | undefined;
2894
- currentUses: number;
2895
- maxUsesPerAccount: number;
2896
- applicablePlans?: SubscriptionPlan[] | undefined;
2897
- newAccountsOnly: boolean;
2898
- minPurchaseAmount?: number | undefined;
2899
- campaign?: string | undefined;
2900
- createdBy: string;
2901
- _id: string;
2902
- };
2903
- (options: import("mongoose").ToObjectOptions & {
2904
- flattenObjectIds: true;
2905
- virtuals: true;
2906
- }): {
2907
- code: string;
2908
- createdAt: Date;
2909
- updatedAt: Date;
2910
- discountType: import("../index.js").DiscountType;
2911
- discountValue: number;
2912
- trialExtensionDays?: number | undefined;
2913
- validFrom: Date;
2914
- validUntil: Date;
2915
- isActive: boolean;
2916
- maxUses?: number | undefined;
2917
- currentUses: number;
2918
- maxUsesPerAccount: number;
2919
- applicablePlans?: SubscriptionPlan[] | undefined;
2920
- newAccountsOnly: boolean;
2921
- minPurchaseAmount?: number | undefined;
2922
- campaign?: string | undefined;
2923
- createdBy: string;
2924
- _id: string;
2925
- };
2926
- (options: import("mongoose").ToObjectOptions & {
2927
- flattenObjectIds: true;
2928
- }): {
2929
- code: string;
2930
- createdAt: Date;
2931
- updatedAt: Date;
2932
- discountType: import("../index.js").DiscountType;
2933
- discountValue: number;
2934
- trialExtensionDays?: number | undefined;
2935
- validFrom: Date;
2936
- validUntil: Date;
2937
- isActive: boolean;
2938
- maxUses?: number | undefined;
2939
- currentUses: number;
2940
- maxUsesPerAccount: number;
2941
- applicablePlans?: SubscriptionPlan[] | undefined;
2942
- newAccountsOnly: boolean;
2943
- minPurchaseAmount?: number | undefined;
2944
- campaign?: string | undefined;
2945
- createdBy: string;
2946
- _id: string;
2947
- };
2948
- (options: import("mongoose").ToObjectOptions & {
2949
- flattenMaps: true;
2950
- virtuals: true;
2951
- }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2952
- _id: string;
2953
- } & Required<{
2954
- _id: string;
2955
- }>>;
2956
- (options: import("mongoose").ToObjectOptions & {
2957
- flattenMaps: true;
2958
- }): import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
2959
- _id: string;
2960
- } & Required<{
2961
- _id: string;
2962
- }>>;
2963
- (options: import("mongoose").ToObjectOptions & {
2964
- versionKey: false;
2965
- flattenMaps: true;
2966
- flattenObjectIds: true;
2967
- virtuals: true;
2968
- }): {
2969
- code: string;
2970
- createdAt: Date;
2971
- updatedAt: Date;
2972
- _id: string;
2973
- discountType: import("../index.js").DiscountType;
2974
- discountValue: number;
2975
- trialExtensionDays?: number | undefined;
2976
- validFrom: Date;
2977
- validUntil: Date;
2978
- isActive: boolean;
2979
- maxUses?: number | undefined;
2980
- currentUses: number;
2981
- maxUsesPerAccount: number;
2982
- applicablePlans?: SubscriptionPlan[] | undefined;
2983
- newAccountsOnly: boolean;
2984
- minPurchaseAmount?: number | undefined;
2985
- campaign?: string | undefined;
2986
- createdBy: string;
2987
- };
2988
- (options: import("mongoose").ToObjectOptions & {
2989
- versionKey: false;
2990
- flattenMaps: false;
2991
- flattenObjectIds: true;
2992
- virtuals: true;
2993
- }): {
2994
- code: string;
2995
- createdAt: Date;
2996
- updatedAt: Date;
2997
- _id: string;
2998
- discountType: import("../index.js").DiscountType;
2999
- discountValue: number;
3000
- trialExtensionDays?: number | undefined;
3001
- validFrom: Date;
3002
- validUntil: Date;
3003
- isActive: boolean;
3004
- maxUses?: number | undefined;
3005
- currentUses: number;
3006
- maxUsesPerAccount: number;
3007
- applicablePlans?: SubscriptionPlan[] | undefined;
3008
- newAccountsOnly: boolean;
3009
- minPurchaseAmount?: number | undefined;
3010
- campaign?: string | undefined;
3011
- createdBy: string;
3012
- };
3013
- (options: import("mongoose").ToObjectOptions & {
3014
- versionKey: false;
3015
- flattenMaps: true;
3016
- virtuals: true;
3017
- }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
3018
- _id: string;
3019
- } & Required<{
3020
- _id: string;
3021
- }>>, "__v">;
3022
- (options: import("mongoose").ToObjectOptions & {
3023
- versionKey: false;
3024
- flattenObjectIds: true;
3025
- virtuals: true;
3026
- }): {
3027
- code: string;
3028
- createdAt: Date;
3029
- updatedAt: Date;
3030
- _id: string;
3031
- discountType: import("../index.js").DiscountType;
3032
- discountValue: number;
3033
- trialExtensionDays?: number | undefined;
3034
- validFrom: Date;
3035
- validUntil: Date;
3036
- isActive: boolean;
3037
- maxUses?: number | undefined;
3038
- currentUses: number;
3039
- maxUsesPerAccount: number;
3040
- applicablePlans?: SubscriptionPlan[] | undefined;
3041
- newAccountsOnly: boolean;
3042
- minPurchaseAmount?: number | undefined;
3043
- campaign?: string | undefined;
3044
- createdBy: string;
3045
- };
3046
- (options: import("mongoose").ToObjectOptions & {
3047
- versionKey: false;
3048
- virtuals: true;
3049
- }): Omit<Omit<IPromoCode, "id"> & {
3050
- _id: string;
3051
- } & Required<{
3052
- _id: string;
3053
- }>, "__v">;
3054
- (options: import("mongoose").ToObjectOptions & {
3055
- versionKey: false;
3056
- flattenMaps: true;
3057
- flattenObjectIds: true;
3058
- }): {
3059
- code: string;
3060
- createdAt: Date;
3061
- updatedAt: Date;
3062
- _id: string;
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
- flattenObjectIds: true;
3081
- }): {
3082
- code: string;
3083
- createdAt: Date;
3084
- updatedAt: Date;
3085
- _id: string;
3086
- discountType: import("../index.js").DiscountType;
3087
- discountValue: number;
3088
- trialExtensionDays?: number | undefined;
3089
- validFrom: Date;
3090
- validUntil: Date;
3091
- isActive: boolean;
3092
- maxUses?: number | undefined;
3093
- currentUses: number;
3094
- maxUsesPerAccount: number;
3095
- applicablePlans?: SubscriptionPlan[] | undefined;
3096
- newAccountsOnly: boolean;
3097
- minPurchaseAmount?: number | undefined;
3098
- campaign?: string | undefined;
3099
- createdBy: string;
3100
- };
3101
- (options: import("mongoose").ToObjectOptions & {
3102
- versionKey: false;
3103
- flattenMaps: true;
3104
- }): Omit<import("mongoose").FlattenMaps<Omit<IPromoCode, "id"> & {
3105
- _id: string;
3106
- } & Required<{
3107
- _id: string;
3108
- }>>, "__v">;
3109
- (options: import("mongoose").ToObjectOptions & {
3110
- versionKey: false;
3111
- }): Omit<Omit<IPromoCode, "id"> & {
3112
- _id: string;
3113
- } & Required<{
3114
- _id: string;
3115
- }>, "__v">;
3116
- (options: import("mongoose").ToObjectOptions & {
3117
- virtuals: true;
3118
- }): Omit<IPromoCode, "id"> & {
3119
- _id: string;
3120
- } & Required<{
3121
- _id: string;
3122
- }>;
3123
- (options?: import("mongoose").ToObjectOptions): Omit<IPromoCode, "id"> & {
3124
- _id: string;
3125
- } & Required<{
3126
- _id: string;
3127
- }> & {
3128
- __v: number;
3129
- };
3130
- <T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> & {
3131
- __v: number;
3132
- };
3133
- }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3134
- _id: string;
3135
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3136
- _id: string;
3137
- } & Required<{
3138
- _id: string;
3139
- }> & {
3140
- __v: number;
3141
- } & {
3142
- id: string;
3143
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3144
- _id: string;
3145
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3146
- _id: string;
3147
- } & Required<{
3148
- _id: string;
3149
- }> & {
3150
- __v: number;
3151
- } & {
3152
- id: string;
3153
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3154
- _id: string;
3155
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3156
- _id: string;
3157
- } & Required<{
3158
- _id: string;
3159
- }> & {
3160
- __v: number;
3161
- } & {
3162
- id: string;
3163
- }> | undefined;
3164
- unmarkModified?: import("mongoose").SchemaDefinitionProperty<{
3165
- <T extends "code" | "createdAt" | "updatedAt" | "_id" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(path: T): void;
3166
- (path: string): void;
3167
- }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3168
- _id: string;
3169
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3170
- _id: string;
3171
- } & Required<{
3172
- _id: string;
3173
- }> & {
3174
- __v: number;
3175
- } & {
3176
- id: string;
3177
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3178
- _id: string;
3179
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3180
- _id: string;
3181
- } & Required<{
3182
- _id: string;
3183
- }> & {
3184
- __v: number;
3185
- } & {
3186
- id: string;
3187
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3188
- _id: string;
3189
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3190
- _id: string;
3191
- } & Required<{
3192
- _id: string;
3193
- }> & {
3194
- __v: number;
3195
- } & {
3196
- id: string;
3197
- }> | undefined;
3198
- updateOne?: import("mongoose").SchemaDefinitionProperty<(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery<import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3199
- _id: string;
3200
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3201
- _id: string;
3202
- } & Required<{
3203
- _id: string;
3204
- }> & {
3205
- __v: number;
3206
- } & {
3207
- id: string;
3208
- }> | undefined, options?: import("mongoose").QueryOptions | null) => import("mongoose").Query<any, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3209
- _id: string;
3210
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3211
- _id: string;
3212
- } & Required<{
3213
- _id: string;
3214
- }> & {
3215
- __v: number;
3216
- } & {
3217
- id: string;
3218
- }, {}, unknown, "find", Record<string, never>>, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3219
- _id: string;
3220
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3221
- _id: string;
3222
- } & Required<{
3223
- _id: string;
3224
- }> & {
3225
- __v: number;
3226
- } & {
3227
- id: string;
3228
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3229
- _id: string;
3230
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3231
- _id: string;
3232
- } & Required<{
3233
- _id: string;
3234
- }> & {
3235
- __v: number;
3236
- } & {
3237
- id: string;
3238
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3239
- _id: string;
3240
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3241
- _id: string;
3242
- } & Required<{
3243
- _id: string;
3244
- }> & {
3245
- __v: number;
3246
- } & {
3247
- id: string;
3248
- }> | undefined;
3249
- validate?: import("mongoose").SchemaDefinitionProperty<{
3250
- <T extends "code" | "createdAt" | "updatedAt" | "_id" | "discountType" | "discountValue" | "trialExtensionDays" | "validFrom" | "validUntil" | "isActive" | "maxUses" | "currentUses" | "maxUsesPerAccount" | "applicablePlans" | "newAccountsOnly" | "minPurchaseAmount" | "campaign" | "createdBy">(pathsToValidate?: T | T[] | undefined, options?: import("mongoose").AnyObject): Promise<void>;
3251
- (pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): Promise<void>;
3252
- (options: {
3253
- pathsToSkip?: import("mongoose").pathsToSkip;
3254
- }): Promise<void>;
3255
- }, 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
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3266
- _id: string;
3267
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3268
- _id: string;
3269
- } & Required<{
3270
- _id: string;
3271
- }> & {
3272
- __v: number;
3273
- } & {
3274
- id: string;
3275
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3276
- _id: string;
3277
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3278
- _id: string;
3279
- } & Required<{
3280
- _id: string;
3281
- }> & {
3282
- __v: number;
3283
- } & {
3284
- id: string;
3285
- }> | undefined;
3286
- validateSync?: import("mongoose").SchemaDefinitionProperty<{
3287
- (options: {
3288
- pathsToSkip?: import("mongoose").pathsToSkip;
3289
- [k: string]: any;
3290
- }): import("mongoose").Error.ValidationError | null;
3291
- <T extends "code" | "createdAt" | "updatedAt" | "_id" | "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;
3292
- (pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
3293
- }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3294
- _id: string;
3295
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3296
- _id: string;
3297
- } & Required<{
3298
- _id: string;
3299
- }> & {
3300
- __v: number;
3301
- } & {
3302
- id: string;
3303
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3304
- _id: string;
3305
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3306
- _id: string;
3307
- } & Required<{
3308
- _id: string;
3309
- }> & {
3310
- __v: number;
3311
- } & {
3312
- id: string;
3313
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3314
- _id: string;
3315
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3316
- _id: string;
3317
- } & Required<{
3318
- _id: string;
3319
- }> & {
3320
- __v: number;
3321
- } & {
3322
- id: string;
3323
- }> | undefined;
3324
- code?: import("mongoose").SchemaDefinitionProperty<string, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3325
- _id: string;
3326
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3327
- _id: string;
3328
- } & Required<{
3329
- _id: string;
3330
- }> & {
3331
- __v: number;
3332
- } & {
3333
- id: string;
3334
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3335
- _id: string;
3336
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3337
- _id: string;
3338
- } & Required<{
3339
- _id: string;
3340
- }> & {
3341
- __v: number;
3342
- } & {
3343
- id: string;
3344
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3345
- _id: string;
3346
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3347
- _id: string;
3348
- } & Required<{
3349
- _id: string;
3350
- }> & {
3351
- __v: number;
3352
- } & {
3353
- id: string;
3354
- }> | undefined;
3355
- createdAt?: import("mongoose").SchemaDefinitionProperty<Date, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3356
- _id: string;
3357
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3358
- _id: string;
3359
- } & Required<{
3360
- _id: string;
3361
- }> & {
3362
- __v: number;
3363
- } & {
3364
- id: string;
3365
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3366
- _id: string;
3367
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3368
- _id: string;
3369
- } & Required<{
3370
- _id: string;
3371
- }> & {
3372
- __v: number;
3373
- } & {
3374
- id: string;
3375
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3376
- _id: string;
3377
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3378
- _id: string;
3379
- } & Required<{
3380
- _id: string;
3381
- }> & {
3382
- __v: number;
3383
- } & {
3384
- id: string;
3385
- }> | undefined;
3386
- updatedAt?: import("mongoose").SchemaDefinitionProperty<Date, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3387
- _id: string;
3388
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3389
- _id: string;
3390
- } & Required<{
3391
- _id: string;
3392
- }> & {
3393
- __v: number;
3394
- } & {
3395
- id: string;
3396
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3397
- _id: string;
3398
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3399
- _id: string;
3400
- } & Required<{
3401
- _id: string;
3402
- }> & {
3403
- __v: number;
3404
- } & {
3405
- id: string;
3406
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3407
- _id: string;
3408
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3409
- _id: string;
3410
- } & Required<{
3411
- _id: string;
3412
- }> & {
3413
- __v: number;
3414
- } & {
3415
- id: string;
3416
- }> | undefined;
3417
- discountType?: import("mongoose").SchemaDefinitionProperty<import("../index.js").DiscountType, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3418
- _id: string;
3419
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3420
- _id: string;
3421
- } & Required<{
3422
- _id: string;
3423
- }> & {
3424
- __v: number;
3425
- } & {
3426
- id: string;
3427
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3428
- _id: string;
3429
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3430
- _id: string;
3431
- } & Required<{
3432
- _id: string;
3433
- }> & {
3434
- __v: number;
3435
- } & {
3436
- id: string;
3437
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3438
- _id: string;
3439
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3440
- _id: string;
3441
- } & Required<{
3442
- _id: string;
3443
- }> & {
3444
- __v: number;
3445
- } & {
3446
- id: string;
3447
- }> | undefined;
3448
- discountValue?: import("mongoose").SchemaDefinitionProperty<number, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3449
- _id: string;
3450
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3451
- _id: string;
3452
- } & Required<{
3453
- _id: string;
3454
- }> & {
3455
- __v: number;
3456
- } & {
3457
- id: string;
3458
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3459
- _id: string;
3460
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3461
- _id: string;
3462
- } & Required<{
3463
- _id: string;
3464
- }> & {
3465
- __v: number;
3466
- } & {
3467
- id: string;
3468
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3469
- _id: string;
3470
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3471
- _id: string;
3472
- } & Required<{
3473
- _id: string;
3474
- }> & {
3475
- __v: number;
3476
- } & {
3477
- id: string;
3478
- }> | undefined;
3479
- trialExtensionDays?: import("mongoose").SchemaDefinitionProperty<number | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3480
- _id: string;
3481
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3482
- _id: string;
3483
- } & Required<{
3484
- _id: string;
3485
- }> & {
3486
- __v: number;
3487
- } & {
3488
- id: string;
3489
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3490
- _id: string;
3491
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3492
- _id: string;
3493
- } & Required<{
3494
- _id: string;
3495
- }> & {
3496
- __v: number;
3497
- } & {
3498
- id: string;
3499
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3500
- _id: string;
3501
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3502
- _id: string;
3503
- } & Required<{
3504
- _id: string;
3505
- }> & {
3506
- __v: number;
3507
- } & {
3508
- id: string;
3509
- }> | undefined;
3510
- validFrom?: import("mongoose").SchemaDefinitionProperty<Date, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3511
- _id: string;
3512
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3513
- _id: string;
3514
- } & Required<{
3515
- _id: string;
3516
- }> & {
3517
- __v: number;
3518
- } & {
3519
- id: string;
3520
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3521
- _id: string;
3522
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3523
- _id: string;
3524
- } & Required<{
3525
- _id: string;
3526
- }> & {
3527
- __v: number;
3528
- } & {
3529
- id: string;
3530
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3531
- _id: string;
3532
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3533
- _id: string;
3534
- } & Required<{
3535
- _id: string;
3536
- }> & {
3537
- __v: number;
3538
- } & {
3539
- id: string;
3540
- }> | undefined;
3541
- validUntil?: import("mongoose").SchemaDefinitionProperty<Date, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3542
- _id: string;
3543
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3544
- _id: string;
3545
- } & Required<{
3546
- _id: string;
3547
- }> & {
3548
- __v: number;
3549
- } & {
3550
- id: string;
3551
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3552
- _id: string;
3553
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3554
- _id: string;
3555
- } & Required<{
3556
- _id: string;
3557
- }> & {
3558
- __v: number;
3559
- } & {
3560
- id: string;
3561
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3562
- _id: string;
3563
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3564
- _id: string;
3565
- } & Required<{
3566
- _id: string;
3567
- }> & {
3568
- __v: number;
3569
- } & {
3570
- id: string;
3571
- }> | undefined;
3572
- isActive?: import("mongoose").SchemaDefinitionProperty<boolean, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3573
- _id: string;
3574
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3575
- _id: string;
3576
- } & Required<{
3577
- _id: string;
3578
- }> & {
3579
- __v: number;
3580
- } & {
3581
- id: string;
3582
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3583
- _id: string;
3584
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3585
- _id: string;
3586
- } & Required<{
3587
- _id: string;
3588
- }> & {
3589
- __v: number;
3590
- } & {
3591
- id: string;
3592
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3593
- _id: string;
3594
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3595
- _id: string;
3596
- } & Required<{
3597
- _id: string;
3598
- }> & {
3599
- __v: number;
3600
- } & {
3601
- id: string;
3602
- }> | undefined;
3603
- maxUses?: import("mongoose").SchemaDefinitionProperty<number | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3604
- _id: string;
3605
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3606
- _id: string;
3607
- } & Required<{
3608
- _id: string;
3609
- }> & {
3610
- __v: number;
3611
- } & {
3612
- id: string;
3613
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3614
- _id: string;
3615
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3616
- _id: string;
3617
- } & Required<{
3618
- _id: string;
3619
- }> & {
3620
- __v: number;
3621
- } & {
3622
- id: string;
3623
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3624
- _id: string;
3625
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3626
- _id: string;
3627
- } & Required<{
3628
- _id: string;
3629
- }> & {
3630
- __v: number;
3631
- } & {
3632
- id: string;
3633
- }> | undefined;
3634
- currentUses?: import("mongoose").SchemaDefinitionProperty<number, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3635
- _id: string;
3636
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3637
- _id: string;
3638
- } & Required<{
3639
- _id: string;
3640
- }> & {
3641
- __v: number;
3642
- } & {
3643
- id: string;
3644
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3645
- _id: string;
3646
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3647
- _id: string;
3648
- } & Required<{
3649
- _id: string;
3650
- }> & {
3651
- __v: number;
3652
- } & {
3653
- id: string;
3654
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3655
- _id: string;
3656
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3657
- _id: string;
3658
- } & Required<{
3659
- _id: string;
3660
- }> & {
3661
- __v: number;
3662
- } & {
3663
- id: string;
3664
- }> | undefined;
3665
- maxUsesPerAccount?: import("mongoose").SchemaDefinitionProperty<number, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3666
- _id: string;
3667
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3668
- _id: string;
3669
- } & Required<{
3670
- _id: string;
3671
- }> & {
3672
- __v: number;
3673
- } & {
3674
- id: string;
3675
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3676
- _id: string;
3677
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3678
- _id: string;
3679
- } & Required<{
3680
- _id: string;
3681
- }> & {
3682
- __v: number;
3683
- } & {
3684
- id: string;
3685
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3686
- _id: string;
3687
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3688
- _id: string;
3689
- } & Required<{
3690
- _id: string;
3691
- }> & {
3692
- __v: number;
3693
- } & {
3694
- id: string;
3695
- }> | undefined;
3696
- applicablePlans?: import("mongoose").SchemaDefinitionProperty<SubscriptionPlan[] | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3697
- _id: string;
3698
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3699
- _id: string;
3700
- } & Required<{
3701
- _id: string;
3702
- }> & {
3703
- __v: number;
3704
- } & {
3705
- id: string;
3706
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3707
- _id: string;
3708
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3709
- _id: string;
3710
- } & Required<{
3711
- _id: string;
3712
- }> & {
3713
- __v: number;
3714
- } & {
3715
- id: string;
3716
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3717
- _id: string;
3718
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3719
- _id: string;
3720
- } & Required<{
3721
- _id: string;
3722
- }> & {
3723
- __v: number;
3724
- } & {
3725
- id: string;
3726
- }> | undefined;
3727
- newAccountsOnly?: import("mongoose").SchemaDefinitionProperty<boolean, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3728
- _id: string;
3729
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3730
- _id: string;
3731
- } & Required<{
3732
- _id: string;
3733
- }> & {
3734
- __v: number;
3735
- } & {
3736
- id: string;
3737
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3738
- _id: string;
3739
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3740
- _id: string;
3741
- } & Required<{
3742
- _id: string;
3743
- }> & {
3744
- __v: number;
3745
- } & {
3746
- id: string;
3747
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3748
- _id: string;
3749
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3750
- _id: string;
3751
- } & Required<{
3752
- _id: string;
3753
- }> & {
3754
- __v: number;
3755
- } & {
3756
- id: string;
3757
- }> | undefined;
3758
- minPurchaseAmount?: import("mongoose").SchemaDefinitionProperty<number | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3759
- _id: string;
3760
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3761
- _id: string;
3762
- } & Required<{
3763
- _id: string;
3764
- }> & {
3765
- __v: number;
3766
- } & {
3767
- id: string;
3768
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3769
- _id: string;
3770
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3771
- _id: string;
3772
- } & Required<{
3773
- _id: string;
3774
- }> & {
3775
- __v: number;
3776
- } & {
3777
- id: string;
3778
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3779
- _id: string;
3780
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3781
- _id: string;
3782
- } & Required<{
3783
- _id: string;
3784
- }> & {
3785
- __v: number;
3786
- } & {
3787
- id: string;
3788
- }> | undefined;
3789
- campaign?: import("mongoose").SchemaDefinitionProperty<string | undefined, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3790
- _id: string;
3791
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3792
- _id: string;
3793
- } & Required<{
3794
- _id: string;
3795
- }> & {
3796
- __v: number;
3797
- } & {
3798
- id: string;
3799
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3800
- _id: string;
3801
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3802
- _id: string;
3803
- } & Required<{
3804
- _id: string;
3805
- }> & {
3806
- __v: number;
3807
- } & {
3808
- id: string;
3809
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3810
- _id: string;
3811
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3812
- _id: string;
3813
- } & Required<{
3814
- _id: string;
3815
- }> & {
3816
- __v: number;
3817
- } & {
3818
- id: string;
3819
- }> | undefined;
3820
- createdBy?: import("mongoose").SchemaDefinitionProperty<string, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3821
- _id: string;
3822
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3823
- _id: string;
3824
- } & Required<{
3825
- _id: string;
3826
- }> & {
3827
- __v: number;
3828
- } & {
3829
- id: string;
3830
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3831
- _id: string;
3832
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3833
- _id: string;
3834
- } & Required<{
3835
- _id: string;
3836
- }> & {
3837
- __v: number;
3838
- } & {
3839
- id: string;
3840
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3841
- _id: string;
3842
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3843
- _id: string;
3844
- } & Required<{
3845
- _id: string;
3846
- }> & {
3847
- __v: number;
3848
- } & {
3849
- id: string;
3850
- }> | undefined;
3851
- __v?: import("mongoose").SchemaDefinitionProperty<number, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3852
- _id: string;
3853
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3854
- _id: string;
3855
- } & Required<{
3856
- _id: string;
3857
- }> & {
3858
- __v: number;
3859
- } & {
3860
- id: string;
3861
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3862
- _id: string;
3863
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3864
- _id: string;
3865
- } & Required<{
3866
- _id: string;
3867
- }> & {
3868
- __v: number;
3869
- } & {
3870
- id: string;
3871
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3872
- _id: string;
3873
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3874
- _id: string;
3875
- } & Required<{
3876
- _id: string;
3877
- }> & {
3878
- __v: number;
3879
- } & {
3880
- id: string;
3881
- }> | undefined;
3882
- id?: import("mongoose").SchemaDefinitionProperty<string, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3883
- _id: string;
3884
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3885
- _id: string;
3886
- } & Required<{
3887
- _id: string;
3888
- }> & {
3889
- __v: number;
3890
- } & {
3891
- id: string;
3892
- }, import("mongoose").Document<unknown, {}, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3893
- _id: string;
3894
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3895
- _id: string;
3896
- } & Required<{
3897
- _id: string;
3898
- }> & {
3899
- __v: number;
3900
- } & {
3901
- id: string;
3902
- }, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3903
- _id: string;
3904
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3905
- _id: string;
3906
- } & Required<{
3907
- _id: string;
3908
- }> & {
3909
- __v: number;
3910
- } & {
3911
- id: string;
3912
- }> | undefined;
3913
- }, import("mongoose").Document<unknown, {}, Omit<IPromoCode, "id"> & {
3914
- _id: string;
3915
- }, {}, import("mongoose").DefaultSchemaOptions> & Omit<IPromoCode, "id"> & {
3916
- _id: string;
3917
- } & Required<{
50
+ }> & Required<{
3918
51
  _id: string;
3919
52
  }> & {
3920
53
  __v: number;
3921
- } & {
3922
- id: string;
3923
54
  }>;
3924
55
  //# sourceMappingURL=promo-code.schema.d.ts.map