@managesome/knotr-toolkit 0.8.13 → 0.8.15

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