itlab-internal-services 2.14.4 → 2.14.5

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.
@@ -39,7 +39,7 @@ export declare class ModelService {
39
39
  $isValid(path: string): boolean;
40
40
  $locals: Record<string, unknown>;
41
41
  $markValid(path: string): void;
42
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
42
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
43
43
  _id: unknown;
44
44
  }> & {
45
45
  __v: number;
@@ -58,7 +58,7 @@ export declare class ModelService {
58
58
  deleteOne(options?: import("mongoose").QueryOptions): any;
59
59
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
60
60
  directModifiedPaths(): Array<string>;
61
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
61
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
62
62
  errors?: import("mongoose").Error.ValidationError;
63
63
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
64
64
  get(path: string, type?: any, options?: any): any;
@@ -85,7 +85,7 @@ export declare class ModelService {
85
85
  isSelected(path: string): boolean;
86
86
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
87
87
  markModified(path: string, scope?: any): void;
88
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
88
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
89
89
  _id: unknown;
90
90
  }> & {
91
91
  __v: number;
@@ -106,6 +106,9 @@ export declare class ModelService {
106
106
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
107
107
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
108
108
  set(value: string | Record<string, any>): /*elided*/ any;
109
+ toJSON(options: import("mongoose").ToObjectOptions & {
110
+ virtuals: true;
111
+ }): any;
109
112
  toJSON(options?: import("mongoose").ToObjectOptions & {
110
113
  flattenMaps?: true;
111
114
  flattenObjectIds?: false;
@@ -142,6 +145,9 @@ export declare class ModelService {
142
145
  flattenMaps: false;
143
146
  flattenObjectIds: true;
144
147
  }): import("mongoose").ObjectIdToString<T>;
148
+ toObject(options: import("mongoose").ToObjectOptions & {
149
+ virtuals: true;
150
+ }): any;
145
151
  toObject(options?: import("mongoose").ToObjectOptions): any;
146
152
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
147
153
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -177,7 +183,7 @@ export declare class ModelService {
177
183
  $isValid(path: string): boolean;
178
184
  $locals: Record<string, unknown>;
179
185
  $markValid(path: string): void;
180
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
186
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
181
187
  _id: unknown;
182
188
  }> & {
183
189
  __v: number;
@@ -196,7 +202,7 @@ export declare class ModelService {
196
202
  deleteOne(options?: import("mongoose").QueryOptions): any;
197
203
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
198
204
  directModifiedPaths(): Array<string>;
199
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
205
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
200
206
  errors?: import("mongoose").Error.ValidationError;
201
207
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
202
208
  get(path: string, type?: any, options?: any): any;
@@ -223,7 +229,7 @@ export declare class ModelService {
223
229
  isSelected(path: string): boolean;
224
230
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
225
231
  markModified(path: string, scope?: any): void;
226
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
232
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
227
233
  _id: unknown;
228
234
  }> & {
229
235
  __v: number;
@@ -244,6 +250,9 @@ export declare class ModelService {
244
250
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
245
251
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
246
252
  set(value: string | Record<string, any>): /*elided*/ any;
253
+ toJSON(options: import("mongoose").ToObjectOptions & {
254
+ virtuals: true;
255
+ }): any;
247
256
  toJSON(options?: import("mongoose").ToObjectOptions & {
248
257
  flattenMaps?: true;
249
258
  flattenObjectIds?: false;
@@ -280,6 +289,9 @@ export declare class ModelService {
280
289
  flattenMaps: false;
281
290
  flattenObjectIds: true;
282
291
  }): import("mongoose").ObjectIdToString<T>;
292
+ toObject(options: import("mongoose").ToObjectOptions & {
293
+ virtuals: true;
294
+ }): any;
283
295
  toObject(options?: import("mongoose").ToObjectOptions): any;
284
296
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
285
297
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -296,7 +308,7 @@ export declare class ModelService {
296
308
  }): import("mongoose").Error.ValidationError | null;
297
309
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
298
310
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
299
- }> & {
311
+ }, {}> & {
300
312
  username: string;
301
313
  email: string;
302
314
  avatar?: boolean;
@@ -315,7 +327,7 @@ export declare class ModelService {
315
327
  $isValid(path: string): boolean;
316
328
  $locals: Record<string, unknown>;
317
329
  $markValid(path: string): void;
318
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
330
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
319
331
  _id: unknown;
320
332
  }> & {
321
333
  __v: number;
@@ -334,7 +346,7 @@ export declare class ModelService {
334
346
  deleteOne(options?: import("mongoose").QueryOptions): any;
335
347
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
336
348
  directModifiedPaths(): Array<string>;
337
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
349
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
338
350
  errors?: import("mongoose").Error.ValidationError;
339
351
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
340
352
  get(path: string, type?: any, options?: any): any;
@@ -361,7 +373,7 @@ export declare class ModelService {
361
373
  isSelected(path: string): boolean;
362
374
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
363
375
  markModified(path: string, scope?: any): void;
364
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
376
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
365
377
  _id: unknown;
366
378
  }> & {
367
379
  __v: number;
@@ -382,6 +394,9 @@ export declare class ModelService {
382
394
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
383
395
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
384
396
  set(value: string | Record<string, any>): /*elided*/ any;
397
+ toJSON(options: import("mongoose").ToObjectOptions & {
398
+ virtuals: true;
399
+ }): any;
385
400
  toJSON(options?: import("mongoose").ToObjectOptions & {
386
401
  flattenMaps?: true;
387
402
  flattenObjectIds?: false;
@@ -418,6 +433,9 @@ export declare class ModelService {
418
433
  flattenMaps: false;
419
434
  flattenObjectIds: true;
420
435
  }): import("mongoose").ObjectIdToString<T>;
436
+ toObject(options: import("mongoose").ToObjectOptions & {
437
+ virtuals: true;
438
+ }): any;
421
439
  toObject(options?: import("mongoose").ToObjectOptions): any;
422
440
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
423
441
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -464,7 +482,7 @@ export declare class ModelService {
464
482
  $isValid(path: string): boolean;
465
483
  $locals: Record<string, unknown>;
466
484
  $markValid(path: string): void;
467
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
485
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
468
486
  _id: unknown;
469
487
  }> & {
470
488
  __v: number;
@@ -483,7 +501,7 @@ export declare class ModelService {
483
501
  deleteOne(options?: import("mongoose").QueryOptions): any;
484
502
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
485
503
  directModifiedPaths(): Array<string>;
486
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
504
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
487
505
  errors?: import("mongoose").Error.ValidationError;
488
506
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
489
507
  get(path: string, type?: any, options?: any): any;
@@ -510,7 +528,7 @@ export declare class ModelService {
510
528
  isSelected(path: string): boolean;
511
529
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
512
530
  markModified(path: string, scope?: any): void;
513
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
531
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
514
532
  _id: unknown;
515
533
  }> & {
516
534
  __v: number;
@@ -531,6 +549,9 @@ export declare class ModelService {
531
549
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
532
550
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
533
551
  set(value: string | Record<string, any>): /*elided*/ any;
552
+ toJSON(options: import("mongoose").ToObjectOptions & {
553
+ virtuals: true;
554
+ }): any;
534
555
  toJSON(options?: import("mongoose").ToObjectOptions & {
535
556
  flattenMaps?: true;
536
557
  flattenObjectIds?: false;
@@ -567,6 +588,9 @@ export declare class ModelService {
567
588
  flattenMaps: false;
568
589
  flattenObjectIds: true;
569
590
  }): import("mongoose").ObjectIdToString<T>;
591
+ toObject(options: import("mongoose").ToObjectOptions & {
592
+ virtuals: true;
593
+ }): any;
570
594
  toObject(options?: import("mongoose").ToObjectOptions): any;
571
595
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
572
596
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -608,7 +632,7 @@ export declare class ModelService {
608
632
  $isValid(path: string): boolean;
609
633
  $locals: Record<string, unknown>;
610
634
  $markValid(path: string): void;
611
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
635
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
612
636
  _id: unknown;
613
637
  }> & {
614
638
  __v: number;
@@ -627,7 +651,7 @@ export declare class ModelService {
627
651
  deleteOne(options?: import("mongoose").QueryOptions): any;
628
652
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
629
653
  directModifiedPaths(): Array<string>;
630
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
654
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
631
655
  errors?: import("mongoose").Error.ValidationError;
632
656
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
633
657
  get(path: string, type?: any, options?: any): any;
@@ -654,7 +678,7 @@ export declare class ModelService {
654
678
  isSelected(path: string): boolean;
655
679
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
656
680
  markModified(path: string, scope?: any): void;
657
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
681
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
658
682
  _id: unknown;
659
683
  }> & {
660
684
  __v: number;
@@ -675,6 +699,9 @@ export declare class ModelService {
675
699
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
676
700
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
677
701
  set(value: string | Record<string, any>): /*elided*/ any;
702
+ toJSON(options: import("mongoose").ToObjectOptions & {
703
+ virtuals: true;
704
+ }): any;
678
705
  toJSON(options?: import("mongoose").ToObjectOptions & {
679
706
  flattenMaps?: true;
680
707
  flattenObjectIds?: false;
@@ -711,6 +738,9 @@ export declare class ModelService {
711
738
  flattenMaps: false;
712
739
  flattenObjectIds: true;
713
740
  }): import("mongoose").ObjectIdToString<T>;
741
+ toObject(options: import("mongoose").ToObjectOptions & {
742
+ virtuals: true;
743
+ }): any;
714
744
  toObject(options?: import("mongoose").ToObjectOptions): any;
715
745
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
716
746
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -727,7 +757,7 @@ export declare class ModelService {
727
757
  }): import("mongoose").Error.ValidationError | null;
728
758
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
729
759
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
730
- }> & {
760
+ }, {}> & {
731
761
  _resource: string;
732
762
  _resourceId: string;
733
763
  html: string;
@@ -752,7 +782,7 @@ export declare class ModelService {
752
782
  $isValid(path: string): boolean;
753
783
  $locals: Record<string, unknown>;
754
784
  $markValid(path: string): void;
755
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
785
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
756
786
  _id: unknown;
757
787
  }> & {
758
788
  __v: number;
@@ -771,7 +801,7 @@ export declare class ModelService {
771
801
  deleteOne(options?: import("mongoose").QueryOptions): any;
772
802
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
773
803
  directModifiedPaths(): Array<string>;
774
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
804
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
775
805
  errors?: import("mongoose").Error.ValidationError;
776
806
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
777
807
  get(path: string, type?: any, options?: any): any;
@@ -798,7 +828,7 @@ export declare class ModelService {
798
828
  isSelected(path: string): boolean;
799
829
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
800
830
  markModified(path: string, scope?: any): void;
801
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
831
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
802
832
  _id: unknown;
803
833
  }> & {
804
834
  __v: number;
@@ -819,6 +849,9 @@ export declare class ModelService {
819
849
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
820
850
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
821
851
  set(value: string | Record<string, any>): /*elided*/ any;
852
+ toJSON(options: import("mongoose").ToObjectOptions & {
853
+ virtuals: true;
854
+ }): any;
822
855
  toJSON(options?: import("mongoose").ToObjectOptions & {
823
856
  flattenMaps?: true;
824
857
  flattenObjectIds?: false;
@@ -855,6 +888,9 @@ export declare class ModelService {
855
888
  flattenMaps: false;
856
889
  flattenObjectIds: true;
857
890
  }): import("mongoose").ObjectIdToString<T>;
891
+ toObject(options: import("mongoose").ToObjectOptions & {
892
+ virtuals: true;
893
+ }): any;
858
894
  toObject(options?: import("mongoose").ToObjectOptions): any;
859
895
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
860
896
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -897,7 +933,7 @@ export declare class ModelService {
897
933
  $isValid(path: string): boolean;
898
934
  $locals: Record<string, unknown>;
899
935
  $markValid(path: string): void;
900
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
936
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
901
937
  _id: unknown;
902
938
  }> & {
903
939
  __v: number;
@@ -916,7 +952,7 @@ export declare class ModelService {
916
952
  deleteOne(options?: import("mongoose").QueryOptions): any;
917
953
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
918
954
  directModifiedPaths(): Array<string>;
919
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
955
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
920
956
  errors?: import("mongoose").Error.ValidationError;
921
957
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
922
958
  get(path: string, type?: any, options?: any): any;
@@ -943,7 +979,7 @@ export declare class ModelService {
943
979
  isSelected(path: string): boolean;
944
980
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
945
981
  markModified(path: string, scope?: any): void;
946
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
982
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
947
983
  _id: unknown;
948
984
  }> & {
949
985
  __v: number;
@@ -964,6 +1000,9 @@ export declare class ModelService {
964
1000
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
965
1001
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
966
1002
  set(value: string | Record<string, any>): /*elided*/ any;
1003
+ toJSON(options: import("mongoose").ToObjectOptions & {
1004
+ virtuals: true;
1005
+ }): any;
967
1006
  toJSON(options?: import("mongoose").ToObjectOptions & {
968
1007
  flattenMaps?: true;
969
1008
  flattenObjectIds?: false;
@@ -1000,6 +1039,9 @@ export declare class ModelService {
1000
1039
  flattenMaps: false;
1001
1040
  flattenObjectIds: true;
1002
1041
  }): import("mongoose").ObjectIdToString<T>;
1042
+ toObject(options: import("mongoose").ToObjectOptions & {
1043
+ virtuals: true;
1044
+ }): any;
1003
1045
  toObject(options?: import("mongoose").ToObjectOptions): any;
1004
1046
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
1005
1047
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -1037,7 +1079,7 @@ export declare class ModelService {
1037
1079
  $isValid(path: string): boolean;
1038
1080
  $locals: Record<string, unknown>;
1039
1081
  $markValid(path: string): void;
1040
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
1082
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1041
1083
  _id: unknown;
1042
1084
  }> & {
1043
1085
  __v: number;
@@ -1056,7 +1098,7 @@ export declare class ModelService {
1056
1098
  deleteOne(options?: import("mongoose").QueryOptions): any;
1057
1099
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
1058
1100
  directModifiedPaths(): Array<string>;
1059
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
1101
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
1060
1102
  errors?: import("mongoose").Error.ValidationError;
1061
1103
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
1062
1104
  get(path: string, type?: any, options?: any): any;
@@ -1083,7 +1125,7 @@ export declare class ModelService {
1083
1125
  isSelected(path: string): boolean;
1084
1126
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
1085
1127
  markModified(path: string, scope?: any): void;
1086
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
1128
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1087
1129
  _id: unknown;
1088
1130
  }> & {
1089
1131
  __v: number;
@@ -1104,6 +1146,9 @@ export declare class ModelService {
1104
1146
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1105
1147
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1106
1148
  set(value: string | Record<string, any>): /*elided*/ any;
1149
+ toJSON(options: import("mongoose").ToObjectOptions & {
1150
+ virtuals: true;
1151
+ }): any;
1107
1152
  toJSON(options?: import("mongoose").ToObjectOptions & {
1108
1153
  flattenMaps?: true;
1109
1154
  flattenObjectIds?: false;
@@ -1140,6 +1185,9 @@ export declare class ModelService {
1140
1185
  flattenMaps: false;
1141
1186
  flattenObjectIds: true;
1142
1187
  }): import("mongoose").ObjectIdToString<T>;
1188
+ toObject(options: import("mongoose").ToObjectOptions & {
1189
+ virtuals: true;
1190
+ }): any;
1143
1191
  toObject(options?: import("mongoose").ToObjectOptions): any;
1144
1192
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
1145
1193
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -1156,7 +1204,7 @@ export declare class ModelService {
1156
1204
  }): import("mongoose").Error.ValidationError | null;
1157
1205
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
1158
1206
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
1159
- }> & {
1207
+ }, {}> & {
1160
1208
  _resource: string;
1161
1209
  _resourceId: string;
1162
1210
  json: [];
@@ -1177,7 +1225,7 @@ export declare class ModelService {
1177
1225
  $isValid(path: string): boolean;
1178
1226
  $locals: Record<string, unknown>;
1179
1227
  $markValid(path: string): void;
1180
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
1228
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1181
1229
  _id: unknown;
1182
1230
  }> & {
1183
1231
  __v: number;
@@ -1196,7 +1244,7 @@ export declare class ModelService {
1196
1244
  deleteOne(options?: import("mongoose").QueryOptions): any;
1197
1245
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
1198
1246
  directModifiedPaths(): Array<string>;
1199
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
1247
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
1200
1248
  errors?: import("mongoose").Error.ValidationError;
1201
1249
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
1202
1250
  get(path: string, type?: any, options?: any): any;
@@ -1223,7 +1271,7 @@ export declare class ModelService {
1223
1271
  isSelected(path: string): boolean;
1224
1272
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
1225
1273
  markModified(path: string, scope?: any): void;
1226
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
1274
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1227
1275
  _id: unknown;
1228
1276
  }> & {
1229
1277
  __v: number;
@@ -1244,6 +1292,9 @@ export declare class ModelService {
1244
1292
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1245
1293
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1246
1294
  set(value: string | Record<string, any>): /*elided*/ any;
1295
+ toJSON(options: import("mongoose").ToObjectOptions & {
1296
+ virtuals: true;
1297
+ }): any;
1247
1298
  toJSON(options?: import("mongoose").ToObjectOptions & {
1248
1299
  flattenMaps?: true;
1249
1300
  flattenObjectIds?: false;
@@ -1280,6 +1331,9 @@ export declare class ModelService {
1280
1331
  flattenMaps: false;
1281
1332
  flattenObjectIds: true;
1282
1333
  }): import("mongoose").ObjectIdToString<T>;
1334
+ toObject(options: import("mongoose").ToObjectOptions & {
1335
+ virtuals: true;
1336
+ }): any;
1283
1337
  toObject(options?: import("mongoose").ToObjectOptions): any;
1284
1338
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
1285
1339
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -1321,7 +1375,7 @@ export declare class ModelService {
1321
1375
  $isValid(path: string): boolean;
1322
1376
  $locals: Record<string, unknown>;
1323
1377
  $markValid(path: string): void;
1324
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
1378
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1325
1379
  _id: unknown;
1326
1380
  }> & {
1327
1381
  __v: number;
@@ -1340,7 +1394,7 @@ export declare class ModelService {
1340
1394
  deleteOne(options?: import("mongoose").QueryOptions): any;
1341
1395
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
1342
1396
  directModifiedPaths(): Array<string>;
1343
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
1397
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
1344
1398
  errors?: import("mongoose").Error.ValidationError;
1345
1399
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
1346
1400
  get(path: string, type?: any, options?: any): any;
@@ -1367,7 +1421,7 @@ export declare class ModelService {
1367
1421
  isSelected(path: string): boolean;
1368
1422
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
1369
1423
  markModified(path: string, scope?: any): void;
1370
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
1424
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1371
1425
  _id: unknown;
1372
1426
  }> & {
1373
1427
  __v: number;
@@ -1388,6 +1442,9 @@ export declare class ModelService {
1388
1442
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1389
1443
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1390
1444
  set(value: string | Record<string, any>): /*elided*/ any;
1445
+ toJSON(options: import("mongoose").ToObjectOptions & {
1446
+ virtuals: true;
1447
+ }): any;
1391
1448
  toJSON(options?: import("mongoose").ToObjectOptions & {
1392
1449
  flattenMaps?: true;
1393
1450
  flattenObjectIds?: false;
@@ -1424,6 +1481,9 @@ export declare class ModelService {
1424
1481
  flattenMaps: false;
1425
1482
  flattenObjectIds: true;
1426
1483
  }): import("mongoose").ObjectIdToString<T>;
1484
+ toObject(options: import("mongoose").ToObjectOptions & {
1485
+ virtuals: true;
1486
+ }): any;
1427
1487
  toObject(options?: import("mongoose").ToObjectOptions): any;
1428
1488
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
1429
1489
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -1460,7 +1520,7 @@ export declare class ModelService {
1460
1520
  $isValid(path: string): boolean;
1461
1521
  $locals: Record<string, unknown>;
1462
1522
  $markValid(path: string): void;
1463
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
1523
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1464
1524
  _id: unknown;
1465
1525
  }> & {
1466
1526
  __v: number;
@@ -1479,7 +1539,7 @@ export declare class ModelService {
1479
1539
  deleteOne(options?: import("mongoose").QueryOptions): any;
1480
1540
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
1481
1541
  directModifiedPaths(): Array<string>;
1482
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
1542
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
1483
1543
  errors?: import("mongoose").Error.ValidationError;
1484
1544
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
1485
1545
  get(path: string, type?: any, options?: any): any;
@@ -1506,7 +1566,7 @@ export declare class ModelService {
1506
1566
  isSelected(path: string): boolean;
1507
1567
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
1508
1568
  markModified(path: string, scope?: any): void;
1509
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
1569
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1510
1570
  _id: unknown;
1511
1571
  }> & {
1512
1572
  __v: number;
@@ -1527,6 +1587,9 @@ export declare class ModelService {
1527
1587
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1528
1588
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1529
1589
  set(value: string | Record<string, any>): /*elided*/ any;
1590
+ toJSON(options: import("mongoose").ToObjectOptions & {
1591
+ virtuals: true;
1592
+ }): any;
1530
1593
  toJSON(options?: import("mongoose").ToObjectOptions & {
1531
1594
  flattenMaps?: true;
1532
1595
  flattenObjectIds?: false;
@@ -1563,6 +1626,9 @@ export declare class ModelService {
1563
1626
  flattenMaps: false;
1564
1627
  flattenObjectIds: true;
1565
1628
  }): import("mongoose").ObjectIdToString<T>;
1629
+ toObject(options: import("mongoose").ToObjectOptions & {
1630
+ virtuals: true;
1631
+ }): any;
1566
1632
  toObject(options?: import("mongoose").ToObjectOptions): any;
1567
1633
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
1568
1634
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -1579,7 +1645,7 @@ export declare class ModelService {
1579
1645
  }): import("mongoose").Error.ValidationError | null;
1580
1646
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
1581
1647
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
1582
- }> & {
1648
+ }, {}> & {
1583
1649
  title: string;
1584
1650
  _hid: string;
1585
1651
  draft: boolean;
@@ -1599,7 +1665,7 @@ export declare class ModelService {
1599
1665
  $isValid(path: string): boolean;
1600
1666
  $locals: Record<string, unknown>;
1601
1667
  $markValid(path: string): void;
1602
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
1668
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1603
1669
  _id: unknown;
1604
1670
  }> & {
1605
1671
  __v: number;
@@ -1618,7 +1684,7 @@ export declare class ModelService {
1618
1684
  deleteOne(options?: import("mongoose").QueryOptions): any;
1619
1685
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
1620
1686
  directModifiedPaths(): Array<string>;
1621
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
1687
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
1622
1688
  errors?: import("mongoose").Error.ValidationError;
1623
1689
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
1624
1690
  get(path: string, type?: any, options?: any): any;
@@ -1645,7 +1711,7 @@ export declare class ModelService {
1645
1711
  isSelected(path: string): boolean;
1646
1712
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
1647
1713
  markModified(path: string, scope?: any): void;
1648
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
1714
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1649
1715
  _id: unknown;
1650
1716
  }> & {
1651
1717
  __v: number;
@@ -1666,6 +1732,9 @@ export declare class ModelService {
1666
1732
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1667
1733
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1668
1734
  set(value: string | Record<string, any>): /*elided*/ any;
1735
+ toJSON(options: import("mongoose").ToObjectOptions & {
1736
+ virtuals: true;
1737
+ }): any;
1669
1738
  toJSON(options?: import("mongoose").ToObjectOptions & {
1670
1739
  flattenMaps?: true;
1671
1740
  flattenObjectIds?: false;
@@ -1702,6 +1771,9 @@ export declare class ModelService {
1702
1771
  flattenMaps: false;
1703
1772
  flattenObjectIds: true;
1704
1773
  }): import("mongoose").ObjectIdToString<T>;
1774
+ toObject(options: import("mongoose").ToObjectOptions & {
1775
+ virtuals: true;
1776
+ }): any;
1705
1777
  toObject(options?: import("mongoose").ToObjectOptions): any;
1706
1778
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
1707
1779
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -1743,7 +1815,7 @@ export declare class ModelService {
1743
1815
  $isValid(path: string): boolean;
1744
1816
  $locals: Record<string, unknown>;
1745
1817
  $markValid(path: string): void;
1746
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
1818
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1747
1819
  _id: unknown;
1748
1820
  }> & {
1749
1821
  __v: number;
@@ -1762,7 +1834,7 @@ export declare class ModelService {
1762
1834
  deleteOne(options?: import("mongoose").QueryOptions): any;
1763
1835
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
1764
1836
  directModifiedPaths(): Array<string>;
1765
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
1837
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
1766
1838
  errors?: import("mongoose").Error.ValidationError;
1767
1839
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
1768
1840
  get(path: string, type?: any, options?: any): any;
@@ -1789,7 +1861,7 @@ export declare class ModelService {
1789
1861
  isSelected(path: string): boolean;
1790
1862
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
1791
1863
  markModified(path: string, scope?: any): void;
1792
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
1864
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1793
1865
  _id: unknown;
1794
1866
  }> & {
1795
1867
  __v: number;
@@ -1810,6 +1882,9 @@ export declare class ModelService {
1810
1882
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1811
1883
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1812
1884
  set(value: string | Record<string, any>): /*elided*/ any;
1885
+ toJSON(options: import("mongoose").ToObjectOptions & {
1886
+ virtuals: true;
1887
+ }): any;
1813
1888
  toJSON(options?: import("mongoose").ToObjectOptions & {
1814
1889
  flattenMaps?: true;
1815
1890
  flattenObjectIds?: false;
@@ -1846,6 +1921,9 @@ export declare class ModelService {
1846
1921
  flattenMaps: false;
1847
1922
  flattenObjectIds: true;
1848
1923
  }): import("mongoose").ObjectIdToString<T>;
1924
+ toObject(options: import("mongoose").ToObjectOptions & {
1925
+ virtuals: true;
1926
+ }): any;
1849
1927
  toObject(options?: import("mongoose").ToObjectOptions): any;
1850
1928
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
1851
1929
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -1882,7 +1960,7 @@ export declare class ModelService {
1882
1960
  $isValid(path: string): boolean;
1883
1961
  $locals: Record<string, unknown>;
1884
1962
  $markValid(path: string): void;
1885
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
1963
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1886
1964
  _id: unknown;
1887
1965
  }> & {
1888
1966
  __v: number;
@@ -1901,7 +1979,7 @@ export declare class ModelService {
1901
1979
  deleteOne(options?: import("mongoose").QueryOptions): any;
1902
1980
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
1903
1981
  directModifiedPaths(): Array<string>;
1904
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
1982
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
1905
1983
  errors?: import("mongoose").Error.ValidationError;
1906
1984
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
1907
1985
  get(path: string, type?: any, options?: any): any;
@@ -1928,7 +2006,7 @@ export declare class ModelService {
1928
2006
  isSelected(path: string): boolean;
1929
2007
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
1930
2008
  markModified(path: string, scope?: any): void;
1931
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2009
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
1932
2010
  _id: unknown;
1933
2011
  }> & {
1934
2012
  __v: number;
@@ -1949,6 +2027,9 @@ export declare class ModelService {
1949
2027
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1950
2028
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
1951
2029
  set(value: string | Record<string, any>): /*elided*/ any;
2030
+ toJSON(options: import("mongoose").ToObjectOptions & {
2031
+ virtuals: true;
2032
+ }): any;
1952
2033
  toJSON(options?: import("mongoose").ToObjectOptions & {
1953
2034
  flattenMaps?: true;
1954
2035
  flattenObjectIds?: false;
@@ -1985,6 +2066,9 @@ export declare class ModelService {
1985
2066
  flattenMaps: false;
1986
2067
  flattenObjectIds: true;
1987
2068
  }): import("mongoose").ObjectIdToString<T>;
2069
+ toObject(options: import("mongoose").ToObjectOptions & {
2070
+ virtuals: true;
2071
+ }): any;
1988
2072
  toObject(options?: import("mongoose").ToObjectOptions): any;
1989
2073
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
1990
2074
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -2001,7 +2085,7 @@ export declare class ModelService {
2001
2085
  }): import("mongoose").Error.ValidationError | null;
2002
2086
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
2003
2087
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
2004
- }> & {
2088
+ }, {}> & {
2005
2089
  title: string;
2006
2090
  _hid: string;
2007
2091
  draft: boolean;
@@ -2021,7 +2105,7 @@ export declare class ModelService {
2021
2105
  $isValid(path: string): boolean;
2022
2106
  $locals: Record<string, unknown>;
2023
2107
  $markValid(path: string): void;
2024
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2108
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2025
2109
  _id: unknown;
2026
2110
  }> & {
2027
2111
  __v: number;
@@ -2040,7 +2124,7 @@ export declare class ModelService {
2040
2124
  deleteOne(options?: import("mongoose").QueryOptions): any;
2041
2125
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
2042
2126
  directModifiedPaths(): Array<string>;
2043
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
2127
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
2044
2128
  errors?: import("mongoose").Error.ValidationError;
2045
2129
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
2046
2130
  get(path: string, type?: any, options?: any): any;
@@ -2067,7 +2151,7 @@ export declare class ModelService {
2067
2151
  isSelected(path: string): boolean;
2068
2152
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
2069
2153
  markModified(path: string, scope?: any): void;
2070
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2154
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2071
2155
  _id: unknown;
2072
2156
  }> & {
2073
2157
  __v: number;
@@ -2088,6 +2172,9 @@ export declare class ModelService {
2088
2172
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2089
2173
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2090
2174
  set(value: string | Record<string, any>): /*elided*/ any;
2175
+ toJSON(options: import("mongoose").ToObjectOptions & {
2176
+ virtuals: true;
2177
+ }): any;
2091
2178
  toJSON(options?: import("mongoose").ToObjectOptions & {
2092
2179
  flattenMaps?: true;
2093
2180
  flattenObjectIds?: false;
@@ -2124,6 +2211,9 @@ export declare class ModelService {
2124
2211
  flattenMaps: false;
2125
2212
  flattenObjectIds: true;
2126
2213
  }): import("mongoose").ObjectIdToString<T>;
2214
+ toObject(options: import("mongoose").ToObjectOptions & {
2215
+ virtuals: true;
2216
+ }): any;
2127
2217
  toObject(options?: import("mongoose").ToObjectOptions): any;
2128
2218
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
2129
2219
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -2166,7 +2256,7 @@ export declare class ModelService {
2166
2256
  $isValid(path: string): boolean;
2167
2257
  $locals: Record<string, unknown>;
2168
2258
  $markValid(path: string): void;
2169
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2259
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2170
2260
  _id: unknown;
2171
2261
  }> & {
2172
2262
  __v: number;
@@ -2185,7 +2275,7 @@ export declare class ModelService {
2185
2275
  deleteOne(options?: import("mongoose").QueryOptions): any;
2186
2276
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
2187
2277
  directModifiedPaths(): Array<string>;
2188
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
2278
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
2189
2279
  errors?: import("mongoose").Error.ValidationError;
2190
2280
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
2191
2281
  get(path: string, type?: any, options?: any): any;
@@ -2212,7 +2302,7 @@ export declare class ModelService {
2212
2302
  isSelected(path: string): boolean;
2213
2303
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
2214
2304
  markModified(path: string, scope?: any): void;
2215
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2305
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2216
2306
  _id: unknown;
2217
2307
  }> & {
2218
2308
  __v: number;
@@ -2233,6 +2323,9 @@ export declare class ModelService {
2233
2323
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2234
2324
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2235
2325
  set(value: string | Record<string, any>): /*elided*/ any;
2326
+ toJSON(options: import("mongoose").ToObjectOptions & {
2327
+ virtuals: true;
2328
+ }): any;
2236
2329
  toJSON(options?: import("mongoose").ToObjectOptions & {
2237
2330
  flattenMaps?: true;
2238
2331
  flattenObjectIds?: false;
@@ -2269,6 +2362,9 @@ export declare class ModelService {
2269
2362
  flattenMaps: false;
2270
2363
  flattenObjectIds: true;
2271
2364
  }): import("mongoose").ObjectIdToString<T>;
2365
+ toObject(options: import("mongoose").ToObjectOptions & {
2366
+ virtuals: true;
2367
+ }): any;
2272
2368
  toObject(options?: import("mongoose").ToObjectOptions): any;
2273
2369
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
2274
2370
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -2306,7 +2402,7 @@ export declare class ModelService {
2306
2402
  $isValid(path: string): boolean;
2307
2403
  $locals: Record<string, unknown>;
2308
2404
  $markValid(path: string): void;
2309
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2405
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2310
2406
  _id: unknown;
2311
2407
  }> & {
2312
2408
  __v: number;
@@ -2325,7 +2421,7 @@ export declare class ModelService {
2325
2421
  deleteOne(options?: import("mongoose").QueryOptions): any;
2326
2422
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
2327
2423
  directModifiedPaths(): Array<string>;
2328
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
2424
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
2329
2425
  errors?: import("mongoose").Error.ValidationError;
2330
2426
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
2331
2427
  get(path: string, type?: any, options?: any): any;
@@ -2352,7 +2448,7 @@ export declare class ModelService {
2352
2448
  isSelected(path: string): boolean;
2353
2449
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
2354
2450
  markModified(path: string, scope?: any): void;
2355
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2451
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2356
2452
  _id: unknown;
2357
2453
  }> & {
2358
2454
  __v: number;
@@ -2373,6 +2469,9 @@ export declare class ModelService {
2373
2469
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2374
2470
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2375
2471
  set(value: string | Record<string, any>): /*elided*/ any;
2472
+ toJSON(options: import("mongoose").ToObjectOptions & {
2473
+ virtuals: true;
2474
+ }): any;
2376
2475
  toJSON(options?: import("mongoose").ToObjectOptions & {
2377
2476
  flattenMaps?: true;
2378
2477
  flattenObjectIds?: false;
@@ -2409,6 +2508,9 @@ export declare class ModelService {
2409
2508
  flattenMaps: false;
2410
2509
  flattenObjectIds: true;
2411
2510
  }): import("mongoose").ObjectIdToString<T>;
2511
+ toObject(options: import("mongoose").ToObjectOptions & {
2512
+ virtuals: true;
2513
+ }): any;
2412
2514
  toObject(options?: import("mongoose").ToObjectOptions): any;
2413
2515
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
2414
2516
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -2425,7 +2527,7 @@ export declare class ModelService {
2425
2527
  }): import("mongoose").Error.ValidationError | null;
2426
2528
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
2427
2529
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
2428
- }> & {
2530
+ }, {}> & {
2429
2531
  title: string;
2430
2532
  _hid: string;
2431
2533
  _year: number;
@@ -2446,7 +2548,7 @@ export declare class ModelService {
2446
2548
  $isValid(path: string): boolean;
2447
2549
  $locals: Record<string, unknown>;
2448
2550
  $markValid(path: string): void;
2449
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2551
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2450
2552
  _id: unknown;
2451
2553
  }> & {
2452
2554
  __v: number;
@@ -2465,7 +2567,7 @@ export declare class ModelService {
2465
2567
  deleteOne(options?: import("mongoose").QueryOptions): any;
2466
2568
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
2467
2569
  directModifiedPaths(): Array<string>;
2468
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
2570
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
2469
2571
  errors?: import("mongoose").Error.ValidationError;
2470
2572
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
2471
2573
  get(path: string, type?: any, options?: any): any;
@@ -2492,7 +2594,7 @@ export declare class ModelService {
2492
2594
  isSelected(path: string): boolean;
2493
2595
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
2494
2596
  markModified(path: string, scope?: any): void;
2495
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2597
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2496
2598
  _id: unknown;
2497
2599
  }> & {
2498
2600
  __v: number;
@@ -2513,6 +2615,9 @@ export declare class ModelService {
2513
2615
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2514
2616
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2515
2617
  set(value: string | Record<string, any>): /*elided*/ any;
2618
+ toJSON(options: import("mongoose").ToObjectOptions & {
2619
+ virtuals: true;
2620
+ }): any;
2516
2621
  toJSON(options?: import("mongoose").ToObjectOptions & {
2517
2622
  flattenMaps?: true;
2518
2623
  flattenObjectIds?: false;
@@ -2549,6 +2654,9 @@ export declare class ModelService {
2549
2654
  flattenMaps: false;
2550
2655
  flattenObjectIds: true;
2551
2656
  }): import("mongoose").ObjectIdToString<T>;
2657
+ toObject(options: import("mongoose").ToObjectOptions & {
2658
+ virtuals: true;
2659
+ }): any;
2552
2660
  toObject(options?: import("mongoose").ToObjectOptions): any;
2553
2661
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
2554
2662
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -2590,7 +2698,7 @@ export declare class ModelService {
2590
2698
  $isValid(path: string): boolean;
2591
2699
  $locals: Record<string, unknown>;
2592
2700
  $markValid(path: string): void;
2593
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2701
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2594
2702
  _id: unknown;
2595
2703
  }> & {
2596
2704
  __v: number;
@@ -2609,7 +2717,7 @@ export declare class ModelService {
2609
2717
  deleteOne(options?: import("mongoose").QueryOptions): any;
2610
2718
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
2611
2719
  directModifiedPaths(): Array<string>;
2612
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
2720
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
2613
2721
  errors?: import("mongoose").Error.ValidationError;
2614
2722
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
2615
2723
  get(path: string, type?: any, options?: any): any;
@@ -2636,7 +2744,7 @@ export declare class ModelService {
2636
2744
  isSelected(path: string): boolean;
2637
2745
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
2638
2746
  markModified(path: string, scope?: any): void;
2639
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2747
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2640
2748
  _id: unknown;
2641
2749
  }> & {
2642
2750
  __v: number;
@@ -2657,6 +2765,9 @@ export declare class ModelService {
2657
2765
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2658
2766
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2659
2767
  set(value: string | Record<string, any>): /*elided*/ any;
2768
+ toJSON(options: import("mongoose").ToObjectOptions & {
2769
+ virtuals: true;
2770
+ }): any;
2660
2771
  toJSON(options?: import("mongoose").ToObjectOptions & {
2661
2772
  flattenMaps?: true;
2662
2773
  flattenObjectIds?: false;
@@ -2693,6 +2804,9 @@ export declare class ModelService {
2693
2804
  flattenMaps: false;
2694
2805
  flattenObjectIds: true;
2695
2806
  }): import("mongoose").ObjectIdToString<T>;
2807
+ toObject(options: import("mongoose").ToObjectOptions & {
2808
+ virtuals: true;
2809
+ }): any;
2696
2810
  toObject(options?: import("mongoose").ToObjectOptions): any;
2697
2811
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
2698
2812
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -2729,7 +2843,7 @@ export declare class ModelService {
2729
2843
  $isValid(path: string): boolean;
2730
2844
  $locals: Record<string, unknown>;
2731
2845
  $markValid(path: string): void;
2732
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2846
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2733
2847
  _id: unknown;
2734
2848
  }> & {
2735
2849
  __v: number;
@@ -2748,7 +2862,7 @@ export declare class ModelService {
2748
2862
  deleteOne(options?: import("mongoose").QueryOptions): any;
2749
2863
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
2750
2864
  directModifiedPaths(): Array<string>;
2751
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
2865
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
2752
2866
  errors?: import("mongoose").Error.ValidationError;
2753
2867
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
2754
2868
  get(path: string, type?: any, options?: any): any;
@@ -2775,7 +2889,7 @@ export declare class ModelService {
2775
2889
  isSelected(path: string): boolean;
2776
2890
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
2777
2891
  markModified(path: string, scope?: any): void;
2778
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2892
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2779
2893
  _id: unknown;
2780
2894
  }> & {
2781
2895
  __v: number;
@@ -2796,6 +2910,9 @@ export declare class ModelService {
2796
2910
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2797
2911
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2798
2912
  set(value: string | Record<string, any>): /*elided*/ any;
2913
+ toJSON(options: import("mongoose").ToObjectOptions & {
2914
+ virtuals: true;
2915
+ }): any;
2799
2916
  toJSON(options?: import("mongoose").ToObjectOptions & {
2800
2917
  flattenMaps?: true;
2801
2918
  flattenObjectIds?: false;
@@ -2832,6 +2949,9 @@ export declare class ModelService {
2832
2949
  flattenMaps: false;
2833
2950
  flattenObjectIds: true;
2834
2951
  }): import("mongoose").ObjectIdToString<T>;
2952
+ toObject(options: import("mongoose").ToObjectOptions & {
2953
+ virtuals: true;
2954
+ }): any;
2835
2955
  toObject(options?: import("mongoose").ToObjectOptions): any;
2836
2956
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
2837
2957
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -2848,7 +2968,7 @@ export declare class ModelService {
2848
2968
  }): import("mongoose").Error.ValidationError | null;
2849
2969
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
2850
2970
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
2851
- }> & {
2971
+ }, {}> & {
2852
2972
  title: string;
2853
2973
  _hid: string;
2854
2974
  draft: boolean;
@@ -2868,7 +2988,7 @@ export declare class ModelService {
2868
2988
  $isValid(path: string): boolean;
2869
2989
  $locals: Record<string, unknown>;
2870
2990
  $markValid(path: string): void;
2871
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
2991
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2872
2992
  _id: unknown;
2873
2993
  }> & {
2874
2994
  __v: number;
@@ -2887,7 +3007,7 @@ export declare class ModelService {
2887
3007
  deleteOne(options?: import("mongoose").QueryOptions): any;
2888
3008
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
2889
3009
  directModifiedPaths(): Array<string>;
2890
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
3010
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
2891
3011
  errors?: import("mongoose").Error.ValidationError;
2892
3012
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
2893
3013
  get(path: string, type?: any, options?: any): any;
@@ -2914,7 +3034,7 @@ export declare class ModelService {
2914
3034
  isSelected(path: string): boolean;
2915
3035
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
2916
3036
  markModified(path: string, scope?: any): void;
2917
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
3037
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
2918
3038
  _id: unknown;
2919
3039
  }> & {
2920
3040
  __v: number;
@@ -2935,6 +3055,9 @@ export declare class ModelService {
2935
3055
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2936
3056
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
2937
3057
  set(value: string | Record<string, any>): /*elided*/ any;
3058
+ toJSON(options: import("mongoose").ToObjectOptions & {
3059
+ virtuals: true;
3060
+ }): any;
2938
3061
  toJSON(options?: import("mongoose").ToObjectOptions & {
2939
3062
  flattenMaps?: true;
2940
3063
  flattenObjectIds?: false;
@@ -2971,6 +3094,9 @@ export declare class ModelService {
2971
3094
  flattenMaps: false;
2972
3095
  flattenObjectIds: true;
2973
3096
  }): import("mongoose").ObjectIdToString<T>;
3097
+ toObject(options: import("mongoose").ToObjectOptions & {
3098
+ virtuals: true;
3099
+ }): any;
2974
3100
  toObject(options?: import("mongoose").ToObjectOptions): any;
2975
3101
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
2976
3102
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -3013,7 +3139,7 @@ export declare class ModelService {
3013
3139
  $isValid(path: string): boolean;
3014
3140
  $locals: Record<string, unknown>;
3015
3141
  $markValid(path: string): void;
3016
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
3142
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3017
3143
  _id: unknown;
3018
3144
  }> & {
3019
3145
  __v: number;
@@ -3032,7 +3158,7 @@ export declare class ModelService {
3032
3158
  deleteOne(options?: import("mongoose").QueryOptions): any;
3033
3159
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
3034
3160
  directModifiedPaths(): Array<string>;
3035
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
3161
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
3036
3162
  errors?: import("mongoose").Error.ValidationError;
3037
3163
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
3038
3164
  get(path: string, type?: any, options?: any): any;
@@ -3059,7 +3185,7 @@ export declare class ModelService {
3059
3185
  isSelected(path: string): boolean;
3060
3186
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
3061
3187
  markModified(path: string, scope?: any): void;
3062
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
3188
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3063
3189
  _id: unknown;
3064
3190
  }> & {
3065
3191
  __v: number;
@@ -3080,6 +3206,9 @@ export declare class ModelService {
3080
3206
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3081
3207
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3082
3208
  set(value: string | Record<string, any>): /*elided*/ any;
3209
+ toJSON(options: import("mongoose").ToObjectOptions & {
3210
+ virtuals: true;
3211
+ }): any;
3083
3212
  toJSON(options?: import("mongoose").ToObjectOptions & {
3084
3213
  flattenMaps?: true;
3085
3214
  flattenObjectIds?: false;
@@ -3116,6 +3245,9 @@ export declare class ModelService {
3116
3245
  flattenMaps: false;
3117
3246
  flattenObjectIds: true;
3118
3247
  }): import("mongoose").ObjectIdToString<T>;
3248
+ toObject(options: import("mongoose").ToObjectOptions & {
3249
+ virtuals: true;
3250
+ }): any;
3119
3251
  toObject(options?: import("mongoose").ToObjectOptions): any;
3120
3252
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
3121
3253
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -3153,7 +3285,7 @@ export declare class ModelService {
3153
3285
  $isValid(path: string): boolean;
3154
3286
  $locals: Record<string, unknown>;
3155
3287
  $markValid(path: string): void;
3156
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
3288
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3157
3289
  _id: unknown;
3158
3290
  }> & {
3159
3291
  __v: number;
@@ -3172,7 +3304,7 @@ export declare class ModelService {
3172
3304
  deleteOne(options?: import("mongoose").QueryOptions): any;
3173
3305
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
3174
3306
  directModifiedPaths(): Array<string>;
3175
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
3307
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
3176
3308
  errors?: import("mongoose").Error.ValidationError;
3177
3309
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
3178
3310
  get(path: string, type?: any, options?: any): any;
@@ -3199,7 +3331,7 @@ export declare class ModelService {
3199
3331
  isSelected(path: string): boolean;
3200
3332
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
3201
3333
  markModified(path: string, scope?: any): void;
3202
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
3334
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3203
3335
  _id: unknown;
3204
3336
  }> & {
3205
3337
  __v: number;
@@ -3220,6 +3352,9 @@ export declare class ModelService {
3220
3352
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3221
3353
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3222
3354
  set(value: string | Record<string, any>): /*elided*/ any;
3355
+ toJSON(options: import("mongoose").ToObjectOptions & {
3356
+ virtuals: true;
3357
+ }): any;
3223
3358
  toJSON(options?: import("mongoose").ToObjectOptions & {
3224
3359
  flattenMaps?: true;
3225
3360
  flattenObjectIds?: false;
@@ -3256,6 +3391,9 @@ export declare class ModelService {
3256
3391
  flattenMaps: false;
3257
3392
  flattenObjectIds: true;
3258
3393
  }): import("mongoose").ObjectIdToString<T>;
3394
+ toObject(options: import("mongoose").ToObjectOptions & {
3395
+ virtuals: true;
3396
+ }): any;
3259
3397
  toObject(options?: import("mongoose").ToObjectOptions): any;
3260
3398
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
3261
3399
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -3272,7 +3410,7 @@ export declare class ModelService {
3272
3410
  }): import("mongoose").Error.ValidationError | null;
3273
3411
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
3274
3412
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
3275
- }> & {
3413
+ }, {}> & {
3276
3414
  title: string;
3277
3415
  _hid: string;
3278
3416
  authorId: string;
@@ -3293,7 +3431,7 @@ export declare class ModelService {
3293
3431
  $isValid(path: string): boolean;
3294
3432
  $locals: Record<string, unknown>;
3295
3433
  $markValid(path: string): void;
3296
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
3434
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3297
3435
  _id: unknown;
3298
3436
  }> & {
3299
3437
  __v: number;
@@ -3312,7 +3450,7 @@ export declare class ModelService {
3312
3450
  deleteOne(options?: import("mongoose").QueryOptions): any;
3313
3451
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
3314
3452
  directModifiedPaths(): Array<string>;
3315
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
3453
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
3316
3454
  errors?: import("mongoose").Error.ValidationError;
3317
3455
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
3318
3456
  get(path: string, type?: any, options?: any): any;
@@ -3339,7 +3477,7 @@ export declare class ModelService {
3339
3477
  isSelected(path: string): boolean;
3340
3478
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
3341
3479
  markModified(path: string, scope?: any): void;
3342
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
3480
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3343
3481
  _id: unknown;
3344
3482
  }> & {
3345
3483
  __v: number;
@@ -3360,6 +3498,9 @@ export declare class ModelService {
3360
3498
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3361
3499
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3362
3500
  set(value: string | Record<string, any>): /*elided*/ any;
3501
+ toJSON(options: import("mongoose").ToObjectOptions & {
3502
+ virtuals: true;
3503
+ }): any;
3363
3504
  toJSON(options?: import("mongoose").ToObjectOptions & {
3364
3505
  flattenMaps?: true;
3365
3506
  flattenObjectIds?: false;
@@ -3396,6 +3537,9 @@ export declare class ModelService {
3396
3537
  flattenMaps: false;
3397
3538
  flattenObjectIds: true;
3398
3539
  }): import("mongoose").ObjectIdToString<T>;
3540
+ toObject(options: import("mongoose").ToObjectOptions & {
3541
+ virtuals: true;
3542
+ }): any;
3399
3543
  toObject(options?: import("mongoose").ToObjectOptions): any;
3400
3544
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
3401
3545
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -3437,7 +3581,7 @@ export declare class ModelService {
3437
3581
  $isValid(path: string): boolean;
3438
3582
  $locals: Record<string, unknown>;
3439
3583
  $markValid(path: string): void;
3440
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
3584
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3441
3585
  _id: unknown;
3442
3586
  }> & {
3443
3587
  __v: number;
@@ -3456,7 +3600,7 @@ export declare class ModelService {
3456
3600
  deleteOne(options?: import("mongoose").QueryOptions): any;
3457
3601
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
3458
3602
  directModifiedPaths(): Array<string>;
3459
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
3603
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
3460
3604
  errors?: import("mongoose").Error.ValidationError;
3461
3605
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
3462
3606
  get(path: string, type?: any, options?: any): any;
@@ -3483,7 +3627,7 @@ export declare class ModelService {
3483
3627
  isSelected(path: string): boolean;
3484
3628
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
3485
3629
  markModified(path: string, scope?: any): void;
3486
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
3630
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3487
3631
  _id: unknown;
3488
3632
  }> & {
3489
3633
  __v: number;
@@ -3504,6 +3648,9 @@ export declare class ModelService {
3504
3648
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3505
3649
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3506
3650
  set(value: string | Record<string, any>): /*elided*/ any;
3651
+ toJSON(options: import("mongoose").ToObjectOptions & {
3652
+ virtuals: true;
3653
+ }): any;
3507
3654
  toJSON(options?: import("mongoose").ToObjectOptions & {
3508
3655
  flattenMaps?: true;
3509
3656
  flattenObjectIds?: false;
@@ -3540,6 +3687,9 @@ export declare class ModelService {
3540
3687
  flattenMaps: false;
3541
3688
  flattenObjectIds: true;
3542
3689
  }): import("mongoose").ObjectIdToString<T>;
3690
+ toObject(options: import("mongoose").ToObjectOptions & {
3691
+ virtuals: true;
3692
+ }): any;
3543
3693
  toObject(options?: import("mongoose").ToObjectOptions): any;
3544
3694
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
3545
3695
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -3576,7 +3726,7 @@ export declare class ModelService {
3576
3726
  $isValid(path: string): boolean;
3577
3727
  $locals: Record<string, unknown>;
3578
3728
  $markValid(path: string): void;
3579
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
3729
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3580
3730
  _id: unknown;
3581
3731
  }> & {
3582
3732
  __v: number;
@@ -3595,7 +3745,7 @@ export declare class ModelService {
3595
3745
  deleteOne(options?: import("mongoose").QueryOptions): any;
3596
3746
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
3597
3747
  directModifiedPaths(): Array<string>;
3598
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
3748
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
3599
3749
  errors?: import("mongoose").Error.ValidationError;
3600
3750
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
3601
3751
  get(path: string, type?: any, options?: any): any;
@@ -3622,7 +3772,7 @@ export declare class ModelService {
3622
3772
  isSelected(path: string): boolean;
3623
3773
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
3624
3774
  markModified(path: string, scope?: any): void;
3625
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
3775
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3626
3776
  _id: unknown;
3627
3777
  }> & {
3628
3778
  __v: number;
@@ -3643,6 +3793,9 @@ export declare class ModelService {
3643
3793
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3644
3794
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3645
3795
  set(value: string | Record<string, any>): /*elided*/ any;
3796
+ toJSON(options: import("mongoose").ToObjectOptions & {
3797
+ virtuals: true;
3798
+ }): any;
3646
3799
  toJSON(options?: import("mongoose").ToObjectOptions & {
3647
3800
  flattenMaps?: true;
3648
3801
  flattenObjectIds?: false;
@@ -3679,6 +3832,9 @@ export declare class ModelService {
3679
3832
  flattenMaps: false;
3680
3833
  flattenObjectIds: true;
3681
3834
  }): import("mongoose").ObjectIdToString<T>;
3835
+ toObject(options: import("mongoose").ToObjectOptions & {
3836
+ virtuals: true;
3837
+ }): any;
3682
3838
  toObject(options?: import("mongoose").ToObjectOptions): any;
3683
3839
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
3684
3840
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -3695,7 +3851,7 @@ export declare class ModelService {
3695
3851
  }): import("mongoose").Error.ValidationError | null;
3696
3852
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
3697
3853
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
3698
- }> & {
3854
+ }, {}> & {
3699
3855
  title: string;
3700
3856
  _hid: string;
3701
3857
  authorId: string;
@@ -3715,7 +3871,7 @@ export declare class ModelService {
3715
3871
  $isValid(path: string): boolean;
3716
3872
  $locals: Record<string, unknown>;
3717
3873
  $markValid(path: string): void;
3718
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
3874
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3719
3875
  _id: unknown;
3720
3876
  }> & {
3721
3877
  __v: number;
@@ -3734,7 +3890,7 @@ export declare class ModelService {
3734
3890
  deleteOne(options?: import("mongoose").QueryOptions): any;
3735
3891
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
3736
3892
  directModifiedPaths(): Array<string>;
3737
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
3893
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
3738
3894
  errors?: import("mongoose").Error.ValidationError;
3739
3895
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
3740
3896
  get(path: string, type?: any, options?: any): any;
@@ -3761,7 +3917,7 @@ export declare class ModelService {
3761
3917
  isSelected(path: string): boolean;
3762
3918
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
3763
3919
  markModified(path: string, scope?: any): void;
3764
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
3920
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3765
3921
  _id: unknown;
3766
3922
  }> & {
3767
3923
  __v: number;
@@ -3782,6 +3938,9 @@ export declare class ModelService {
3782
3938
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3783
3939
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3784
3940
  set(value: string | Record<string, any>): /*elided*/ any;
3941
+ toJSON(options: import("mongoose").ToObjectOptions & {
3942
+ virtuals: true;
3943
+ }): any;
3785
3944
  toJSON(options?: import("mongoose").ToObjectOptions & {
3786
3945
  flattenMaps?: true;
3787
3946
  flattenObjectIds?: false;
@@ -3818,6 +3977,9 @@ export declare class ModelService {
3818
3977
  flattenMaps: false;
3819
3978
  flattenObjectIds: true;
3820
3979
  }): import("mongoose").ObjectIdToString<T>;
3980
+ toObject(options: import("mongoose").ToObjectOptions & {
3981
+ virtuals: true;
3982
+ }): any;
3821
3983
  toObject(options?: import("mongoose").ToObjectOptions): any;
3822
3984
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
3823
3985
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -3861,7 +4023,7 @@ export declare class ModelService {
3861
4023
  $isValid(path: string): boolean;
3862
4024
  $locals: Record<string, unknown>;
3863
4025
  $markValid(path: string): void;
3864
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4026
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3865
4027
  _id: unknown;
3866
4028
  }> & {
3867
4029
  __v: number;
@@ -3880,7 +4042,7 @@ export declare class ModelService {
3880
4042
  deleteOne(options?: import("mongoose").QueryOptions): any;
3881
4043
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
3882
4044
  directModifiedPaths(): Array<string>;
3883
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
4045
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
3884
4046
  errors?: import("mongoose").Error.ValidationError;
3885
4047
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
3886
4048
  get(path: string, type?: any, options?: any): any;
@@ -3907,7 +4069,7 @@ export declare class ModelService {
3907
4069
  isSelected(path: string): boolean;
3908
4070
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
3909
4071
  markModified(path: string, scope?: any): void;
3910
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4072
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
3911
4073
  _id: unknown;
3912
4074
  }> & {
3913
4075
  __v: number;
@@ -3928,6 +4090,9 @@ export declare class ModelService {
3928
4090
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3929
4091
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
3930
4092
  set(value: string | Record<string, any>): /*elided*/ any;
4093
+ toJSON(options: import("mongoose").ToObjectOptions & {
4094
+ virtuals: true;
4095
+ }): any;
3931
4096
  toJSON(options?: import("mongoose").ToObjectOptions & {
3932
4097
  flattenMaps?: true;
3933
4098
  flattenObjectIds?: false;
@@ -3964,6 +4129,9 @@ export declare class ModelService {
3964
4129
  flattenMaps: false;
3965
4130
  flattenObjectIds: true;
3966
4131
  }): import("mongoose").ObjectIdToString<T>;
4132
+ toObject(options: import("mongoose").ToObjectOptions & {
4133
+ virtuals: true;
4134
+ }): any;
3967
4135
  toObject(options?: import("mongoose").ToObjectOptions): any;
3968
4136
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
3969
4137
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -4002,7 +4170,7 @@ export declare class ModelService {
4002
4170
  $isValid(path: string): boolean;
4003
4171
  $locals: Record<string, unknown>;
4004
4172
  $markValid(path: string): void;
4005
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4173
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4006
4174
  _id: unknown;
4007
4175
  }> & {
4008
4176
  __v: number;
@@ -4021,7 +4189,7 @@ export declare class ModelService {
4021
4189
  deleteOne(options?: import("mongoose").QueryOptions): any;
4022
4190
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
4023
4191
  directModifiedPaths(): Array<string>;
4024
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
4192
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
4025
4193
  errors?: import("mongoose").Error.ValidationError;
4026
4194
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
4027
4195
  get(path: string, type?: any, options?: any): any;
@@ -4048,7 +4216,7 @@ export declare class ModelService {
4048
4216
  isSelected(path: string): boolean;
4049
4217
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
4050
4218
  markModified(path: string, scope?: any): void;
4051
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4219
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4052
4220
  _id: unknown;
4053
4221
  }> & {
4054
4222
  __v: number;
@@ -4069,6 +4237,9 @@ export declare class ModelService {
4069
4237
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4070
4238
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4071
4239
  set(value: string | Record<string, any>): /*elided*/ any;
4240
+ toJSON(options: import("mongoose").ToObjectOptions & {
4241
+ virtuals: true;
4242
+ }): any;
4072
4243
  toJSON(options?: import("mongoose").ToObjectOptions & {
4073
4244
  flattenMaps?: true;
4074
4245
  flattenObjectIds?: false;
@@ -4105,6 +4276,9 @@ export declare class ModelService {
4105
4276
  flattenMaps: false;
4106
4277
  flattenObjectIds: true;
4107
4278
  }): import("mongoose").ObjectIdToString<T>;
4279
+ toObject(options: import("mongoose").ToObjectOptions & {
4280
+ virtuals: true;
4281
+ }): any;
4108
4282
  toObject(options?: import("mongoose").ToObjectOptions): any;
4109
4283
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
4110
4284
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -4121,7 +4295,7 @@ export declare class ModelService {
4121
4295
  }): import("mongoose").Error.ValidationError | null;
4122
4296
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
4123
4297
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
4124
- }> & {
4298
+ }, {}> & {
4125
4299
  title: string;
4126
4300
  _hid: string;
4127
4301
  _year: number;
@@ -4143,7 +4317,7 @@ export declare class ModelService {
4143
4317
  $isValid(path: string): boolean;
4144
4318
  $locals: Record<string, unknown>;
4145
4319
  $markValid(path: string): void;
4146
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4320
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4147
4321
  _id: unknown;
4148
4322
  }> & {
4149
4323
  __v: number;
@@ -4162,7 +4336,7 @@ export declare class ModelService {
4162
4336
  deleteOne(options?: import("mongoose").QueryOptions): any;
4163
4337
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
4164
4338
  directModifiedPaths(): Array<string>;
4165
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
4339
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
4166
4340
  errors?: import("mongoose").Error.ValidationError;
4167
4341
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
4168
4342
  get(path: string, type?: any, options?: any): any;
@@ -4189,7 +4363,7 @@ export declare class ModelService {
4189
4363
  isSelected(path: string): boolean;
4190
4364
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
4191
4365
  markModified(path: string, scope?: any): void;
4192
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4366
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4193
4367
  _id: unknown;
4194
4368
  }> & {
4195
4369
  __v: number;
@@ -4210,6 +4384,9 @@ export declare class ModelService {
4210
4384
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4211
4385
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4212
4386
  set(value: string | Record<string, any>): /*elided*/ any;
4387
+ toJSON(options: import("mongoose").ToObjectOptions & {
4388
+ virtuals: true;
4389
+ }): any;
4213
4390
  toJSON(options?: import("mongoose").ToObjectOptions & {
4214
4391
  flattenMaps?: true;
4215
4392
  flattenObjectIds?: false;
@@ -4246,6 +4423,9 @@ export declare class ModelService {
4246
4423
  flattenMaps: false;
4247
4424
  flattenObjectIds: true;
4248
4425
  }): import("mongoose").ObjectIdToString<T>;
4426
+ toObject(options: import("mongoose").ToObjectOptions & {
4427
+ virtuals: true;
4428
+ }): any;
4249
4429
  toObject(options?: import("mongoose").ToObjectOptions): any;
4250
4430
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
4251
4431
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -4287,7 +4467,7 @@ export declare class ModelService {
4287
4467
  $isValid(path: string): boolean;
4288
4468
  $locals: Record<string, unknown>;
4289
4469
  $markValid(path: string): void;
4290
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4470
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4291
4471
  _id: unknown;
4292
4472
  }> & {
4293
4473
  __v: number;
@@ -4306,7 +4486,7 @@ export declare class ModelService {
4306
4486
  deleteOne(options?: import("mongoose").QueryOptions): any;
4307
4487
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
4308
4488
  directModifiedPaths(): Array<string>;
4309
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
4489
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
4310
4490
  errors?: import("mongoose").Error.ValidationError;
4311
4491
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
4312
4492
  get(path: string, type?: any, options?: any): any;
@@ -4333,7 +4513,7 @@ export declare class ModelService {
4333
4513
  isSelected(path: string): boolean;
4334
4514
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
4335
4515
  markModified(path: string, scope?: any): void;
4336
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4516
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4337
4517
  _id: unknown;
4338
4518
  }> & {
4339
4519
  __v: number;
@@ -4354,6 +4534,9 @@ export declare class ModelService {
4354
4534
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4355
4535
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4356
4536
  set(value: string | Record<string, any>): /*elided*/ any;
4537
+ toJSON(options: import("mongoose").ToObjectOptions & {
4538
+ virtuals: true;
4539
+ }): any;
4357
4540
  toJSON(options?: import("mongoose").ToObjectOptions & {
4358
4541
  flattenMaps?: true;
4359
4542
  flattenObjectIds?: false;
@@ -4390,6 +4573,9 @@ export declare class ModelService {
4390
4573
  flattenMaps: false;
4391
4574
  flattenObjectIds: true;
4392
4575
  }): import("mongoose").ObjectIdToString<T>;
4576
+ toObject(options: import("mongoose").ToObjectOptions & {
4577
+ virtuals: true;
4578
+ }): any;
4393
4579
  toObject(options?: import("mongoose").ToObjectOptions): any;
4394
4580
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
4395
4581
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -4426,7 +4612,7 @@ export declare class ModelService {
4426
4612
  $isValid(path: string): boolean;
4427
4613
  $locals: Record<string, unknown>;
4428
4614
  $markValid(path: string): void;
4429
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4615
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4430
4616
  _id: unknown;
4431
4617
  }> & {
4432
4618
  __v: number;
@@ -4445,7 +4631,7 @@ export declare class ModelService {
4445
4631
  deleteOne(options?: import("mongoose").QueryOptions): any;
4446
4632
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
4447
4633
  directModifiedPaths(): Array<string>;
4448
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
4634
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
4449
4635
  errors?: import("mongoose").Error.ValidationError;
4450
4636
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
4451
4637
  get(path: string, type?: any, options?: any): any;
@@ -4472,7 +4658,7 @@ export declare class ModelService {
4472
4658
  isSelected(path: string): boolean;
4473
4659
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
4474
4660
  markModified(path: string, scope?: any): void;
4475
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4661
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4476
4662
  _id: unknown;
4477
4663
  }> & {
4478
4664
  __v: number;
@@ -4493,6 +4679,9 @@ export declare class ModelService {
4493
4679
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4494
4680
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4495
4681
  set(value: string | Record<string, any>): /*elided*/ any;
4682
+ toJSON(options: import("mongoose").ToObjectOptions & {
4683
+ virtuals: true;
4684
+ }): any;
4496
4685
  toJSON(options?: import("mongoose").ToObjectOptions & {
4497
4686
  flattenMaps?: true;
4498
4687
  flattenObjectIds?: false;
@@ -4529,6 +4718,9 @@ export declare class ModelService {
4529
4718
  flattenMaps: false;
4530
4719
  flattenObjectIds: true;
4531
4720
  }): import("mongoose").ObjectIdToString<T>;
4721
+ toObject(options: import("mongoose").ToObjectOptions & {
4722
+ virtuals: true;
4723
+ }): any;
4532
4724
  toObject(options?: import("mongoose").ToObjectOptions): any;
4533
4725
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
4534
4726
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -4545,7 +4737,7 @@ export declare class ModelService {
4545
4737
  }): import("mongoose").Error.ValidationError | null;
4546
4738
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
4547
4739
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
4548
- }> & {
4740
+ }, {}> & {
4549
4741
  title: string;
4550
4742
  _hid: string;
4551
4743
  draft: boolean;
@@ -4565,7 +4757,7 @@ export declare class ModelService {
4565
4757
  $isValid(path: string): boolean;
4566
4758
  $locals: Record<string, unknown>;
4567
4759
  $markValid(path: string): void;
4568
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4760
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4569
4761
  _id: unknown;
4570
4762
  }> & {
4571
4763
  __v: number;
@@ -4584,7 +4776,7 @@ export declare class ModelService {
4584
4776
  deleteOne(options?: import("mongoose").QueryOptions): any;
4585
4777
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
4586
4778
  directModifiedPaths(): Array<string>;
4587
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
4779
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
4588
4780
  errors?: import("mongoose").Error.ValidationError;
4589
4781
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
4590
4782
  get(path: string, type?: any, options?: any): any;
@@ -4611,7 +4803,7 @@ export declare class ModelService {
4611
4803
  isSelected(path: string): boolean;
4612
4804
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
4613
4805
  markModified(path: string, scope?: any): void;
4614
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4806
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4615
4807
  _id: unknown;
4616
4808
  }> & {
4617
4809
  __v: number;
@@ -4632,6 +4824,9 @@ export declare class ModelService {
4632
4824
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4633
4825
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4634
4826
  set(value: string | Record<string, any>): /*elided*/ any;
4827
+ toJSON(options: import("mongoose").ToObjectOptions & {
4828
+ virtuals: true;
4829
+ }): any;
4635
4830
  toJSON(options?: import("mongoose").ToObjectOptions & {
4636
4831
  flattenMaps?: true;
4637
4832
  flattenObjectIds?: false;
@@ -4668,6 +4863,9 @@ export declare class ModelService {
4668
4863
  flattenMaps: false;
4669
4864
  flattenObjectIds: true;
4670
4865
  }): import("mongoose").ObjectIdToString<T>;
4866
+ toObject(options: import("mongoose").ToObjectOptions & {
4867
+ virtuals: true;
4868
+ }): any;
4671
4869
  toObject(options?: import("mongoose").ToObjectOptions): any;
4672
4870
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
4673
4871
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -4708,7 +4906,7 @@ export declare class ModelService {
4708
4906
  $isValid(path: string): boolean;
4709
4907
  $locals: Record<string, unknown>;
4710
4908
  $markValid(path: string): void;
4711
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4909
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4712
4910
  _id: unknown;
4713
4911
  }> & {
4714
4912
  __v: number;
@@ -4727,7 +4925,7 @@ export declare class ModelService {
4727
4925
  deleteOne(options?: import("mongoose").QueryOptions): any;
4728
4926
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
4729
4927
  directModifiedPaths(): Array<string>;
4730
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
4928
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
4731
4929
  errors?: import("mongoose").Error.ValidationError;
4732
4930
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
4733
4931
  get(path: string, type?: any, options?: any): any;
@@ -4754,7 +4952,7 @@ export declare class ModelService {
4754
4952
  isSelected(path: string): boolean;
4755
4953
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
4756
4954
  markModified(path: string, scope?: any): void;
4757
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
4955
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4758
4956
  _id: unknown;
4759
4957
  }> & {
4760
4958
  __v: number;
@@ -4775,6 +4973,9 @@ export declare class ModelService {
4775
4973
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4776
4974
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4777
4975
  set(value: string | Record<string, any>): /*elided*/ any;
4976
+ toJSON(options: import("mongoose").ToObjectOptions & {
4977
+ virtuals: true;
4978
+ }): any;
4778
4979
  toJSON(options?: import("mongoose").ToObjectOptions & {
4779
4980
  flattenMaps?: true;
4780
4981
  flattenObjectIds?: false;
@@ -4811,6 +5012,9 @@ export declare class ModelService {
4811
5012
  flattenMaps: false;
4812
5013
  flattenObjectIds: true;
4813
5014
  }): import("mongoose").ObjectIdToString<T>;
5015
+ toObject(options: import("mongoose").ToObjectOptions & {
5016
+ virtuals: true;
5017
+ }): any;
4814
5018
  toObject(options?: import("mongoose").ToObjectOptions): any;
4815
5019
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
4816
5020
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -4846,7 +5050,7 @@ export declare class ModelService {
4846
5050
  $isValid(path: string): boolean;
4847
5051
  $locals: Record<string, unknown>;
4848
5052
  $markValid(path: string): void;
4849
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5053
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4850
5054
  _id: unknown;
4851
5055
  }> & {
4852
5056
  __v: number;
@@ -4865,7 +5069,7 @@ export declare class ModelService {
4865
5069
  deleteOne(options?: import("mongoose").QueryOptions): any;
4866
5070
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
4867
5071
  directModifiedPaths(): Array<string>;
4868
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
5072
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
4869
5073
  errors?: import("mongoose").Error.ValidationError;
4870
5074
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
4871
5075
  get(path: string, type?: any, options?: any): any;
@@ -4892,7 +5096,7 @@ export declare class ModelService {
4892
5096
  isSelected(path: string): boolean;
4893
5097
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
4894
5098
  markModified(path: string, scope?: any): void;
4895
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5099
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4896
5100
  _id: unknown;
4897
5101
  }> & {
4898
5102
  __v: number;
@@ -4913,6 +5117,9 @@ export declare class ModelService {
4913
5117
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4914
5118
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
4915
5119
  set(value: string | Record<string, any>): /*elided*/ any;
5120
+ toJSON(options: import("mongoose").ToObjectOptions & {
5121
+ virtuals: true;
5122
+ }): any;
4916
5123
  toJSON(options?: import("mongoose").ToObjectOptions & {
4917
5124
  flattenMaps?: true;
4918
5125
  flattenObjectIds?: false;
@@ -4949,6 +5156,9 @@ export declare class ModelService {
4949
5156
  flattenMaps: false;
4950
5157
  flattenObjectIds: true;
4951
5158
  }): import("mongoose").ObjectIdToString<T>;
5159
+ toObject(options: import("mongoose").ToObjectOptions & {
5160
+ virtuals: true;
5161
+ }): any;
4952
5162
  toObject(options?: import("mongoose").ToObjectOptions): any;
4953
5163
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
4954
5164
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -4965,7 +5175,7 @@ export declare class ModelService {
4965
5175
  }): import("mongoose").Error.ValidationError | null;
4966
5176
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
4967
5177
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
4968
- }> & {
5178
+ }, {}> & {
4969
5179
  name: string;
4970
5180
  draft: boolean;
4971
5181
  _hid: string;
@@ -4984,7 +5194,7 @@ export declare class ModelService {
4984
5194
  $isValid(path: string): boolean;
4985
5195
  $locals: Record<string, unknown>;
4986
5196
  $markValid(path: string): void;
4987
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5197
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
4988
5198
  _id: unknown;
4989
5199
  }> & {
4990
5200
  __v: number;
@@ -5003,7 +5213,7 @@ export declare class ModelService {
5003
5213
  deleteOne(options?: import("mongoose").QueryOptions): any;
5004
5214
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
5005
5215
  directModifiedPaths(): Array<string>;
5006
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
5216
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
5007
5217
  errors?: import("mongoose").Error.ValidationError;
5008
5218
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
5009
5219
  get(path: string, type?: any, options?: any): any;
@@ -5030,7 +5240,7 @@ export declare class ModelService {
5030
5240
  isSelected(path: string): boolean;
5031
5241
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
5032
5242
  markModified(path: string, scope?: any): void;
5033
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5243
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
5034
5244
  _id: unknown;
5035
5245
  }> & {
5036
5246
  __v: number;
@@ -5051,6 +5261,9 @@ export declare class ModelService {
5051
5261
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5052
5262
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5053
5263
  set(value: string | Record<string, any>): /*elided*/ any;
5264
+ toJSON(options: import("mongoose").ToObjectOptions & {
5265
+ virtuals: true;
5266
+ }): any;
5054
5267
  toJSON(options?: import("mongoose").ToObjectOptions & {
5055
5268
  flattenMaps?: true;
5056
5269
  flattenObjectIds?: false;
@@ -5087,6 +5300,9 @@ export declare class ModelService {
5087
5300
  flattenMaps: false;
5088
5301
  flattenObjectIds: true;
5089
5302
  }): import("mongoose").ObjectIdToString<T>;
5303
+ toObject(options: import("mongoose").ToObjectOptions & {
5304
+ virtuals: true;
5305
+ }): any;
5090
5306
  toObject(options?: import("mongoose").ToObjectOptions): any;
5091
5307
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
5092
5308
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -5128,7 +5344,7 @@ export declare class ModelService {
5128
5344
  $isValid(path: string): boolean;
5129
5345
  $locals: Record<string, unknown>;
5130
5346
  $markValid(path: string): void;
5131
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5347
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
5132
5348
  _id: unknown;
5133
5349
  }> & {
5134
5350
  __v: number;
@@ -5147,7 +5363,7 @@ export declare class ModelService {
5147
5363
  deleteOne(options?: import("mongoose").QueryOptions): any;
5148
5364
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
5149
5365
  directModifiedPaths(): Array<string>;
5150
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
5366
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
5151
5367
  errors?: import("mongoose").Error.ValidationError;
5152
5368
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
5153
5369
  get(path: string, type?: any, options?: any): any;
@@ -5174,7 +5390,7 @@ export declare class ModelService {
5174
5390
  isSelected(path: string): boolean;
5175
5391
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
5176
5392
  markModified(path: string, scope?: any): void;
5177
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5393
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
5178
5394
  _id: unknown;
5179
5395
  }> & {
5180
5396
  __v: number;
@@ -5195,6 +5411,9 @@ export declare class ModelService {
5195
5411
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5196
5412
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5197
5413
  set(value: string | Record<string, any>): /*elided*/ any;
5414
+ toJSON(options: import("mongoose").ToObjectOptions & {
5415
+ virtuals: true;
5416
+ }): any;
5198
5417
  toJSON(options?: import("mongoose").ToObjectOptions & {
5199
5418
  flattenMaps?: true;
5200
5419
  flattenObjectIds?: false;
@@ -5231,6 +5450,9 @@ export declare class ModelService {
5231
5450
  flattenMaps: false;
5232
5451
  flattenObjectIds: true;
5233
5452
  }): import("mongoose").ObjectIdToString<T>;
5453
+ toObject(options: import("mongoose").ToObjectOptions & {
5454
+ virtuals: true;
5455
+ }): any;
5234
5456
  toObject(options?: import("mongoose").ToObjectOptions): any;
5235
5457
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
5236
5458
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -5267,7 +5489,7 @@ export declare class ModelService {
5267
5489
  $isValid(path: string): boolean;
5268
5490
  $locals: Record<string, unknown>;
5269
5491
  $markValid(path: string): void;
5270
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5492
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
5271
5493
  _id: unknown;
5272
5494
  }> & {
5273
5495
  __v: number;
@@ -5286,7 +5508,7 @@ export declare class ModelService {
5286
5508
  deleteOne(options?: import("mongoose").QueryOptions): any;
5287
5509
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
5288
5510
  directModifiedPaths(): Array<string>;
5289
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
5511
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
5290
5512
  errors?: import("mongoose").Error.ValidationError;
5291
5513
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
5292
5514
  get(path: string, type?: any, options?: any): any;
@@ -5313,7 +5535,7 @@ export declare class ModelService {
5313
5535
  isSelected(path: string): boolean;
5314
5536
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
5315
5537
  markModified(path: string, scope?: any): void;
5316
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5538
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
5317
5539
  _id: unknown;
5318
5540
  }> & {
5319
5541
  __v: number;
@@ -5334,6 +5556,9 @@ export declare class ModelService {
5334
5556
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5335
5557
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5336
5558
  set(value: string | Record<string, any>): /*elided*/ any;
5559
+ toJSON(options: import("mongoose").ToObjectOptions & {
5560
+ virtuals: true;
5561
+ }): any;
5337
5562
  toJSON(options?: import("mongoose").ToObjectOptions & {
5338
5563
  flattenMaps?: true;
5339
5564
  flattenObjectIds?: false;
@@ -5370,6 +5595,9 @@ export declare class ModelService {
5370
5595
  flattenMaps: false;
5371
5596
  flattenObjectIds: true;
5372
5597
  }): import("mongoose").ObjectIdToString<T>;
5598
+ toObject(options: import("mongoose").ToObjectOptions & {
5599
+ virtuals: true;
5600
+ }): any;
5373
5601
  toObject(options?: import("mongoose").ToObjectOptions): any;
5374
5602
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
5375
5603
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -5386,7 +5614,7 @@ export declare class ModelService {
5386
5614
  }): import("mongoose").Error.ValidationError | null;
5387
5615
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
5388
5616
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
5389
- }> & {
5617
+ }, {}> & {
5390
5618
  title: string;
5391
5619
  _hid: string;
5392
5620
  draft: boolean;
@@ -5406,7 +5634,7 @@ export declare class ModelService {
5406
5634
  $isValid(path: string): boolean;
5407
5635
  $locals: Record<string, unknown>;
5408
5636
  $markValid(path: string): void;
5409
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5637
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
5410
5638
  _id: unknown;
5411
5639
  }> & {
5412
5640
  __v: number;
@@ -5425,7 +5653,7 @@ export declare class ModelService {
5425
5653
  deleteOne(options?: import("mongoose").QueryOptions): any;
5426
5654
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
5427
5655
  directModifiedPaths(): Array<string>;
5428
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
5656
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
5429
5657
  errors?: import("mongoose").Error.ValidationError;
5430
5658
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
5431
5659
  get(path: string, type?: any, options?: any): any;
@@ -5452,7 +5680,7 @@ export declare class ModelService {
5452
5680
  isSelected(path: string): boolean;
5453
5681
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
5454
5682
  markModified(path: string, scope?: any): void;
5455
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5683
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
5456
5684
  _id: unknown;
5457
5685
  }> & {
5458
5686
  __v: number;
@@ -5473,6 +5701,9 @@ export declare class ModelService {
5473
5701
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5474
5702
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5475
5703
  set(value: string | Record<string, any>): /*elided*/ any;
5704
+ toJSON(options: import("mongoose").ToObjectOptions & {
5705
+ virtuals: true;
5706
+ }): any;
5476
5707
  toJSON(options?: import("mongoose").ToObjectOptions & {
5477
5708
  flattenMaps?: true;
5478
5709
  flattenObjectIds?: false;
@@ -5509,6 +5740,9 @@ export declare class ModelService {
5509
5740
  flattenMaps: false;
5510
5741
  flattenObjectIds: true;
5511
5742
  }): import("mongoose").ObjectIdToString<T>;
5743
+ toObject(options: import("mongoose").ToObjectOptions & {
5744
+ virtuals: true;
5745
+ }): any;
5512
5746
  toObject(options?: import("mongoose").ToObjectOptions): any;
5513
5747
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
5514
5748
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -5551,7 +5785,7 @@ export declare class ModelService {
5551
5785
  $isValid(path: string): boolean;
5552
5786
  $locals: Record<string, unknown>;
5553
5787
  $markValid(path: string): void;
5554
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5788
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
5555
5789
  _id: unknown;
5556
5790
  }> & {
5557
5791
  __v: number;
@@ -5570,7 +5804,7 @@ export declare class ModelService {
5570
5804
  deleteOne(options?: import("mongoose").QueryOptions): any;
5571
5805
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
5572
5806
  directModifiedPaths(): Array<string>;
5573
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
5807
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
5574
5808
  errors?: import("mongoose").Error.ValidationError;
5575
5809
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
5576
5810
  get(path: string, type?: any, options?: any): any;
@@ -5597,7 +5831,7 @@ export declare class ModelService {
5597
5831
  isSelected(path: string): boolean;
5598
5832
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
5599
5833
  markModified(path: string, scope?: any): void;
5600
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5834
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
5601
5835
  _id: unknown;
5602
5836
  }> & {
5603
5837
  __v: number;
@@ -5618,6 +5852,9 @@ export declare class ModelService {
5618
5852
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5619
5853
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5620
5854
  set(value: string | Record<string, any>): /*elided*/ any;
5855
+ toJSON(options: import("mongoose").ToObjectOptions & {
5856
+ virtuals: true;
5857
+ }): any;
5621
5858
  toJSON(options?: import("mongoose").ToObjectOptions & {
5622
5859
  flattenMaps?: true;
5623
5860
  flattenObjectIds?: false;
@@ -5654,6 +5891,9 @@ export declare class ModelService {
5654
5891
  flattenMaps: false;
5655
5892
  flattenObjectIds: true;
5656
5893
  }): import("mongoose").ObjectIdToString<T>;
5894
+ toObject(options: import("mongoose").ToObjectOptions & {
5895
+ virtuals: true;
5896
+ }): any;
5657
5897
  toObject(options?: import("mongoose").ToObjectOptions): any;
5658
5898
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
5659
5899
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -5691,7 +5931,7 @@ export declare class ModelService {
5691
5931
  $isValid(path: string): boolean;
5692
5932
  $locals: Record<string, unknown>;
5693
5933
  $markValid(path: string): void;
5694
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5934
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
5695
5935
  _id: unknown;
5696
5936
  }> & {
5697
5937
  __v: number;
@@ -5710,7 +5950,7 @@ export declare class ModelService {
5710
5950
  deleteOne(options?: import("mongoose").QueryOptions): any;
5711
5951
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
5712
5952
  directModifiedPaths(): Array<string>;
5713
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
5953
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
5714
5954
  errors?: import("mongoose").Error.ValidationError;
5715
5955
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
5716
5956
  get(path: string, type?: any, options?: any): any;
@@ -5737,7 +5977,7 @@ export declare class ModelService {
5737
5977
  isSelected(path: string): boolean;
5738
5978
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
5739
5979
  markModified(path: string, scope?: any): void;
5740
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
5980
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
5741
5981
  _id: unknown;
5742
5982
  }> & {
5743
5983
  __v: number;
@@ -5758,6 +5998,9 @@ export declare class ModelService {
5758
5998
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5759
5999
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5760
6000
  set(value: string | Record<string, any>): /*elided*/ any;
6001
+ toJSON(options: import("mongoose").ToObjectOptions & {
6002
+ virtuals: true;
6003
+ }): any;
5761
6004
  toJSON(options?: import("mongoose").ToObjectOptions & {
5762
6005
  flattenMaps?: true;
5763
6006
  flattenObjectIds?: false;
@@ -5794,6 +6037,9 @@ export declare class ModelService {
5794
6037
  flattenMaps: false;
5795
6038
  flattenObjectIds: true;
5796
6039
  }): import("mongoose").ObjectIdToString<T>;
6040
+ toObject(options: import("mongoose").ToObjectOptions & {
6041
+ virtuals: true;
6042
+ }): any;
5797
6043
  toObject(options?: import("mongoose").ToObjectOptions): any;
5798
6044
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
5799
6045
  unmarkModified<T extends string | number | symbol>(path: T): void;
@@ -5810,7 +6056,7 @@ export declare class ModelService {
5810
6056
  }): import("mongoose").Error.ValidationError | null;
5811
6057
  validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
5812
6058
  validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
5813
- }> & {
6059
+ }, {}> & {
5814
6060
  timestamp: number;
5815
6061
  _year: number;
5816
6062
  _month: number;
@@ -5831,7 +6077,7 @@ export declare class ModelService {
5831
6077
  $isValid(path: string): boolean;
5832
6078
  $locals: Record<string, unknown>;
5833
6079
  $markValid(path: string): void;
5834
- $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
6080
+ $model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
5835
6081
  _id: unknown;
5836
6082
  }> & {
5837
6083
  __v: number;
@@ -5850,7 +6096,7 @@ export declare class ModelService {
5850
6096
  deleteOne(options?: import("mongoose").QueryOptions): any;
5851
6097
  depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
5852
6098
  directModifiedPaths(): Array<string>;
5853
- equals(doc: import("mongoose").Document<unknown, any, any>): boolean;
6099
+ equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>>): boolean;
5854
6100
  errors?: import("mongoose").Error.ValidationError;
5855
6101
  get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
5856
6102
  get(path: string, type?: any, options?: any): any;
@@ -5877,7 +6123,7 @@ export declare class ModelService {
5877
6123
  isSelected(path: string): boolean;
5878
6124
  markModified<T extends string | number | symbol>(path: T, scope?: any): void;
5879
6125
  markModified(path: string, scope?: any): void;
5880
- model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown> & Required<{
6126
+ model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
5881
6127
  _id: unknown;
5882
6128
  }> & {
5883
6129
  __v: number;
@@ -5898,6 +6144,9 @@ export declare class ModelService {
5898
6144
  set(path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5899
6145
  set(path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): /*elided*/ any;
5900
6146
  set(value: string | Record<string, any>): /*elided*/ any;
6147
+ toJSON(options: import("mongoose").ToObjectOptions & {
6148
+ virtuals: true;
6149
+ }): any;
5901
6150
  toJSON(options?: import("mongoose").ToObjectOptions & {
5902
6151
  flattenMaps?: true;
5903
6152
  flattenObjectIds?: false;
@@ -5934,6 +6183,9 @@ export declare class ModelService {
5934
6183
  flattenMaps: false;
5935
6184
  flattenObjectIds: true;
5936
6185
  }): import("mongoose").ObjectIdToString<T>;
6186
+ toObject(options: import("mongoose").ToObjectOptions & {
6187
+ virtuals: true;
6188
+ }): any;
5937
6189
  toObject(options?: import("mongoose").ToObjectOptions): any;
5938
6190
  toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
5939
6191
  unmarkModified<T extends string | number | symbol>(path: T): void;