itlab-internal-services 2.15.4 → 2.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes/document-merger.class.js +27 -37
- package/dist/classes/document-updater.class.js +2 -2
- package/dist/factories/virtuals.factory.js +2 -2
- package/dist/functions/create-duplicate-checker.function.js +3 -12
- package/dist/functions/create-internal-axios-client.function.d.ts +0 -1
- package/dist/functions/create-schema-transformer.function.js +1 -1
- package/dist/models/thumbnail/thumbnail.model.js +1 -0
- package/dist/modules/cache/cache.service.js +50 -71
- package/dist/modules/comment/comment.controller.js +3 -13
- package/dist/modules/comment/comment.module.js +5 -1
- package/dist/modules/comment/comment.service.js +31 -41
- package/dist/modules/content/content.module.js +4 -1
- package/dist/modules/content/content.property.js +1 -0
- package/dist/modules/content/content.service.js +56 -68
- package/dist/modules/database/database.liveness-controller.js +19 -30
- package/dist/modules/database/database.module.js +4 -12
- package/dist/modules/database/lock-service/lock.service.js +22 -35
- package/dist/modules/database/model-service/dbs/hub-account.db.d.ts +2 -2
- package/dist/modules/database/model-service/dbs/hub-account.db.js +1 -1
- package/dist/modules/database/model-service/dbs/hub-books.db.d.ts +2 -2
- package/dist/modules/database/model-service/dbs/hub-comments.db.d.ts +2 -2
- package/dist/modules/database/model-service/dbs/hub-content.db.d.ts +2 -2
- package/dist/modules/database/model-service/dbs/hub-demo-hive.db.d.ts +2 -2
- package/dist/modules/database/model-service/dbs/hub-events.db.d.ts +2 -2
- package/dist/modules/database/model-service/dbs/hub-hackschool.db.d.ts +6 -6
- package/dist/modules/database/model-service/dbs/hub-newsroom.db.d.ts +2 -2
- package/dist/modules/database/model-service/dbs/hub-podcasts.db.d.ts +2 -2
- package/dist/modules/database/model-service/dbs/hub-team.db.d.ts +2 -2
- package/dist/modules/database/model-service/dbs/hub-tech-radar.db.d.ts +4 -4
- package/dist/modules/database/model-service/model.service.d.ts +392 -224
- package/dist/modules/database/model-service/model.service.js +4 -17
- package/dist/modules/fetch/fetch.module.js +4 -1
- package/dist/modules/fetch/fetch.service.js +56 -94
- package/dist/modules/like/like.controller.js +7 -21
- package/dist/modules/like/like.module.js +5 -1
- package/dist/modules/like/like.service.js +13 -28
- package/dist/modules/mail/mail.module.js +4 -1
- package/dist/modules/mail/mail.service.d.ts +5 -5
- package/dist/modules/mail/mail.service.js +10 -9
- package/dist/modules/notification/notification.module.js +4 -1
- package/dist/modules/notification/notification.service.js +2 -2
- package/dist/modules/pass/pass.module.js +4 -1
- package/dist/modules/pass/pass.service.js +41 -63
- package/dist/modules/search/search.module.js +4 -1
- package/dist/modules/search/search.service.js +13 -24
- package/dist/transform/boolean.transform.js +3 -2
- package/dist/transform/image-url.transform.js +1 -1
- package/dist/transform/number.transform.js +2 -1
- package/dist/transform/string-array.transform.js +1 -1
- package/dist/transform/string.transform.js +1 -1
- package/dist/transform/timestamp.transform.js +2 -1
- package/package.json +54 -24
|
@@ -33,7 +33,7 @@ export declare class ModelService {
|
|
|
33
33
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
34
34
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
35
35
|
$ignore(path: string): void;
|
|
36
|
-
$isDefault(path
|
|
36
|
+
$isDefault(path?: string): boolean;
|
|
37
37
|
$isDeleted(val?: boolean): boolean;
|
|
38
38
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
39
39
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -41,7 +41,7 @@ export declare class ModelService {
|
|
|
41
41
|
$isValid(path: string): boolean;
|
|
42
42
|
$locals: Record<string, unknown>;
|
|
43
43
|
$markValid(path: string): void;
|
|
44
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
44
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
45
45
|
_id: unknown;
|
|
46
46
|
}> & {
|
|
47
47
|
__v: number;
|
|
@@ -60,7 +60,7 @@ export declare class ModelService {
|
|
|
60
60
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
61
61
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
62
62
|
directModifiedPaths(): Array<string>;
|
|
63
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
63
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
64
64
|
errors?: import("mongoose").Error.ValidationError;
|
|
65
65
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
66
66
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -87,7 +87,7 @@ export declare class ModelService {
|
|
|
87
87
|
isSelected(path: string): boolean;
|
|
88
88
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
89
89
|
markModified(path: string, scope?: any): void;
|
|
90
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
90
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
91
91
|
_id: unknown;
|
|
92
92
|
}> & {
|
|
93
93
|
__v: number;
|
|
@@ -151,7 +151,11 @@ export declare class ModelService {
|
|
|
151
151
|
virtuals: true;
|
|
152
152
|
}): any;
|
|
153
153
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
154
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
154
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
155
|
+
__v?: infer U;
|
|
156
|
+
} ? T_1 : T_1 & {
|
|
157
|
+
__v: number;
|
|
158
|
+
} : never : never;
|
|
155
159
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
156
160
|
unmarkModified(path: string): void;
|
|
157
161
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -177,7 +181,7 @@ export declare class ModelService {
|
|
|
177
181
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
178
182
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
179
183
|
$ignore(path: string): void;
|
|
180
|
-
$isDefault(path
|
|
184
|
+
$isDefault(path?: string): boolean;
|
|
181
185
|
$isDeleted(val?: boolean): boolean;
|
|
182
186
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
183
187
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -185,7 +189,7 @@ export declare class ModelService {
|
|
|
185
189
|
$isValid(path: string): boolean;
|
|
186
190
|
$locals: Record<string, unknown>;
|
|
187
191
|
$markValid(path: string): void;
|
|
188
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
192
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
189
193
|
_id: unknown;
|
|
190
194
|
}> & {
|
|
191
195
|
__v: number;
|
|
@@ -204,7 +208,7 @@ export declare class ModelService {
|
|
|
204
208
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
205
209
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
206
210
|
directModifiedPaths(): Array<string>;
|
|
207
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
211
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
208
212
|
errors?: import("mongoose").Error.ValidationError;
|
|
209
213
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
210
214
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -231,7 +235,7 @@ export declare class ModelService {
|
|
|
231
235
|
isSelected(path: string): boolean;
|
|
232
236
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
233
237
|
markModified(path: string, scope?: any): void;
|
|
234
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
238
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
235
239
|
_id: unknown;
|
|
236
240
|
}> & {
|
|
237
241
|
__v: number;
|
|
@@ -295,7 +299,11 @@ export declare class ModelService {
|
|
|
295
299
|
virtuals: true;
|
|
296
300
|
}): any;
|
|
297
301
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
298
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
302
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
303
|
+
__v?: infer U;
|
|
304
|
+
} ? T_1 : T_1 & {
|
|
305
|
+
__v: number;
|
|
306
|
+
} : never : never;
|
|
299
307
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
300
308
|
unmarkModified(path: string): void;
|
|
301
309
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -310,7 +318,7 @@ export declare class ModelService {
|
|
|
310
318
|
}): import("mongoose").Error.ValidationError | null;
|
|
311
319
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
312
320
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
313
|
-
}, {}> & {
|
|
321
|
+
}, {}, {}> & {
|
|
314
322
|
username: string;
|
|
315
323
|
email: string;
|
|
316
324
|
avatar?: boolean;
|
|
@@ -321,7 +329,7 @@ export declare class ModelService {
|
|
|
321
329
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
322
330
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
323
331
|
$ignore(path: string): void;
|
|
324
|
-
$isDefault(path
|
|
332
|
+
$isDefault(path?: string): boolean;
|
|
325
333
|
$isDeleted(val?: boolean): boolean;
|
|
326
334
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
327
335
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -329,7 +337,7 @@ export declare class ModelService {
|
|
|
329
337
|
$isValid(path: string): boolean;
|
|
330
338
|
$locals: Record<string, unknown>;
|
|
331
339
|
$markValid(path: string): void;
|
|
332
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
340
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
333
341
|
_id: unknown;
|
|
334
342
|
}> & {
|
|
335
343
|
__v: number;
|
|
@@ -348,7 +356,7 @@ export declare class ModelService {
|
|
|
348
356
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
349
357
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
350
358
|
directModifiedPaths(): Array<string>;
|
|
351
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
359
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
352
360
|
errors?: import("mongoose").Error.ValidationError;
|
|
353
361
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
354
362
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -375,7 +383,7 @@ export declare class ModelService {
|
|
|
375
383
|
isSelected(path: string): boolean;
|
|
376
384
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
377
385
|
markModified(path: string, scope?: any): void;
|
|
378
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
386
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
379
387
|
_id: unknown;
|
|
380
388
|
}> & {
|
|
381
389
|
__v: number;
|
|
@@ -439,7 +447,11 @@ export declare class ModelService {
|
|
|
439
447
|
virtuals: true;
|
|
440
448
|
}): any;
|
|
441
449
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
442
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
450
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
451
|
+
__v?: infer U;
|
|
452
|
+
} ? T_1 : T_1 & {
|
|
453
|
+
__v: number;
|
|
454
|
+
} : never : never;
|
|
443
455
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
444
456
|
unmarkModified(path: string): void;
|
|
445
457
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -477,7 +489,7 @@ export declare class ModelService {
|
|
|
477
489
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
478
490
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
479
491
|
$ignore(path: string): void;
|
|
480
|
-
$isDefault(path
|
|
492
|
+
$isDefault(path?: string): boolean;
|
|
481
493
|
$isDeleted(val?: boolean): boolean;
|
|
482
494
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
483
495
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -485,7 +497,7 @@ export declare class ModelService {
|
|
|
485
497
|
$isValid(path: string): boolean;
|
|
486
498
|
$locals: Record<string, unknown>;
|
|
487
499
|
$markValid(path: string): void;
|
|
488
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
500
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
489
501
|
_id: unknown;
|
|
490
502
|
}> & {
|
|
491
503
|
__v: number;
|
|
@@ -504,7 +516,7 @@ export declare class ModelService {
|
|
|
504
516
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
505
517
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
506
518
|
directModifiedPaths(): Array<string>;
|
|
507
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
519
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
508
520
|
errors?: import("mongoose").Error.ValidationError;
|
|
509
521
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
510
522
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -531,7 +543,7 @@ export declare class ModelService {
|
|
|
531
543
|
isSelected(path: string): boolean;
|
|
532
544
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
533
545
|
markModified(path: string, scope?: any): void;
|
|
534
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
546
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
535
547
|
_id: unknown;
|
|
536
548
|
}> & {
|
|
537
549
|
__v: number;
|
|
@@ -595,7 +607,11 @@ export declare class ModelService {
|
|
|
595
607
|
virtuals: true;
|
|
596
608
|
}): any;
|
|
597
609
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
598
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
610
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
611
|
+
__v?: infer U;
|
|
612
|
+
} ? T_1 : T_1 & {
|
|
613
|
+
__v: number;
|
|
614
|
+
} : never : never;
|
|
599
615
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
600
616
|
unmarkModified(path: string): void;
|
|
601
617
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -627,7 +643,7 @@ export declare class ModelService {
|
|
|
627
643
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
628
644
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
629
645
|
$ignore(path: string): void;
|
|
630
|
-
$isDefault(path
|
|
646
|
+
$isDefault(path?: string): boolean;
|
|
631
647
|
$isDeleted(val?: boolean): boolean;
|
|
632
648
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
633
649
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -635,7 +651,7 @@ export declare class ModelService {
|
|
|
635
651
|
$isValid(path: string): boolean;
|
|
636
652
|
$locals: Record<string, unknown>;
|
|
637
653
|
$markValid(path: string): void;
|
|
638
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
654
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
639
655
|
_id: unknown;
|
|
640
656
|
}> & {
|
|
641
657
|
__v: number;
|
|
@@ -654,7 +670,7 @@ export declare class ModelService {
|
|
|
654
670
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
655
671
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
656
672
|
directModifiedPaths(): Array<string>;
|
|
657
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
673
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
658
674
|
errors?: import("mongoose").Error.ValidationError;
|
|
659
675
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
660
676
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -681,7 +697,7 @@ export declare class ModelService {
|
|
|
681
697
|
isSelected(path: string): boolean;
|
|
682
698
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
683
699
|
markModified(path: string, scope?: any): void;
|
|
684
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
700
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
685
701
|
_id: unknown;
|
|
686
702
|
}> & {
|
|
687
703
|
__v: number;
|
|
@@ -745,7 +761,11 @@ export declare class ModelService {
|
|
|
745
761
|
virtuals: true;
|
|
746
762
|
}): any;
|
|
747
763
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
748
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
764
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
765
|
+
__v?: infer U;
|
|
766
|
+
} ? T_1 : T_1 & {
|
|
767
|
+
__v: number;
|
|
768
|
+
} : never : never;
|
|
749
769
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
750
770
|
unmarkModified(path: string): void;
|
|
751
771
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -760,7 +780,7 @@ export declare class ModelService {
|
|
|
760
780
|
}): import("mongoose").Error.ValidationError | null;
|
|
761
781
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
762
782
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
763
|
-
}, {}> & {
|
|
783
|
+
}, {}, {}> & {
|
|
764
784
|
_resource: string;
|
|
765
785
|
_resourceId: string;
|
|
766
786
|
html: string;
|
|
@@ -777,7 +797,7 @@ export declare class ModelService {
|
|
|
777
797
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
778
798
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
779
799
|
$ignore(path: string): void;
|
|
780
|
-
$isDefault(path
|
|
800
|
+
$isDefault(path?: string): boolean;
|
|
781
801
|
$isDeleted(val?: boolean): boolean;
|
|
782
802
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
783
803
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -785,7 +805,7 @@ export declare class ModelService {
|
|
|
785
805
|
$isValid(path: string): boolean;
|
|
786
806
|
$locals: Record<string, unknown>;
|
|
787
807
|
$markValid(path: string): void;
|
|
788
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
808
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
789
809
|
_id: unknown;
|
|
790
810
|
}> & {
|
|
791
811
|
__v: number;
|
|
@@ -804,7 +824,7 @@ export declare class ModelService {
|
|
|
804
824
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
805
825
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
806
826
|
directModifiedPaths(): Array<string>;
|
|
807
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
827
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
808
828
|
errors?: import("mongoose").Error.ValidationError;
|
|
809
829
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
810
830
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -831,7 +851,7 @@ export declare class ModelService {
|
|
|
831
851
|
isSelected(path: string): boolean;
|
|
832
852
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
833
853
|
markModified(path: string, scope?: any): void;
|
|
834
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
854
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
835
855
|
_id: unknown;
|
|
836
856
|
}> & {
|
|
837
857
|
__v: number;
|
|
@@ -895,7 +915,11 @@ export declare class ModelService {
|
|
|
895
915
|
virtuals: true;
|
|
896
916
|
}): any;
|
|
897
917
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
898
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
918
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
919
|
+
__v?: infer U;
|
|
920
|
+
} ? T_1 : T_1 & {
|
|
921
|
+
__v: number;
|
|
922
|
+
} : never : never;
|
|
899
923
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
900
924
|
unmarkModified(path: string): void;
|
|
901
925
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -929,7 +953,7 @@ export declare class ModelService {
|
|
|
929
953
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
930
954
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
931
955
|
$ignore(path: string): void;
|
|
932
|
-
$isDefault(path
|
|
956
|
+
$isDefault(path?: string): boolean;
|
|
933
957
|
$isDeleted(val?: boolean): boolean;
|
|
934
958
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
935
959
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -937,7 +961,7 @@ export declare class ModelService {
|
|
|
937
961
|
$isValid(path: string): boolean;
|
|
938
962
|
$locals: Record<string, unknown>;
|
|
939
963
|
$markValid(path: string): void;
|
|
940
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
964
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
941
965
|
_id: unknown;
|
|
942
966
|
}> & {
|
|
943
967
|
__v: number;
|
|
@@ -956,7 +980,7 @@ export declare class ModelService {
|
|
|
956
980
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
957
981
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
958
982
|
directModifiedPaths(): Array<string>;
|
|
959
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
983
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
960
984
|
errors?: import("mongoose").Error.ValidationError;
|
|
961
985
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
962
986
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -983,7 +1007,7 @@ export declare class ModelService {
|
|
|
983
1007
|
isSelected(path: string): boolean;
|
|
984
1008
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
985
1009
|
markModified(path: string, scope?: any): void;
|
|
986
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
1010
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
987
1011
|
_id: unknown;
|
|
988
1012
|
}> & {
|
|
989
1013
|
__v: number;
|
|
@@ -1047,7 +1071,11 @@ export declare class ModelService {
|
|
|
1047
1071
|
virtuals: true;
|
|
1048
1072
|
}): any;
|
|
1049
1073
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
1050
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
1074
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
1075
|
+
__v?: infer U;
|
|
1076
|
+
} ? T_1 : T_1 & {
|
|
1077
|
+
__v: number;
|
|
1078
|
+
} : never : never;
|
|
1051
1079
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
1052
1080
|
unmarkModified(path: string): void;
|
|
1053
1081
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -1075,7 +1103,7 @@ export declare class ModelService {
|
|
|
1075
1103
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
1076
1104
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
1077
1105
|
$ignore(path: string): void;
|
|
1078
|
-
$isDefault(path
|
|
1106
|
+
$isDefault(path?: string): boolean;
|
|
1079
1107
|
$isDeleted(val?: boolean): boolean;
|
|
1080
1108
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
1081
1109
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -1083,7 +1111,7 @@ export declare class ModelService {
|
|
|
1083
1111
|
$isValid(path: string): boolean;
|
|
1084
1112
|
$locals: Record<string, unknown>;
|
|
1085
1113
|
$markValid(path: string): void;
|
|
1086
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
1114
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
1087
1115
|
_id: unknown;
|
|
1088
1116
|
}> & {
|
|
1089
1117
|
__v: number;
|
|
@@ -1102,7 +1130,7 @@ export declare class ModelService {
|
|
|
1102
1130
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
1103
1131
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
1104
1132
|
directModifiedPaths(): Array<string>;
|
|
1105
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
1133
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
1106
1134
|
errors?: import("mongoose").Error.ValidationError;
|
|
1107
1135
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
1108
1136
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -1129,7 +1157,7 @@ export declare class ModelService {
|
|
|
1129
1157
|
isSelected(path: string): boolean;
|
|
1130
1158
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
1131
1159
|
markModified(path: string, scope?: any): void;
|
|
1132
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
1160
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
1133
1161
|
_id: unknown;
|
|
1134
1162
|
}> & {
|
|
1135
1163
|
__v: number;
|
|
@@ -1193,7 +1221,11 @@ export declare class ModelService {
|
|
|
1193
1221
|
virtuals: true;
|
|
1194
1222
|
}): any;
|
|
1195
1223
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
1196
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
1224
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
1225
|
+
__v?: infer U;
|
|
1226
|
+
} ? T_1 : T_1 & {
|
|
1227
|
+
__v: number;
|
|
1228
|
+
} : never : never;
|
|
1197
1229
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
1198
1230
|
unmarkModified(path: string): void;
|
|
1199
1231
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -1208,7 +1240,7 @@ export declare class ModelService {
|
|
|
1208
1240
|
}): import("mongoose").Error.ValidationError | null;
|
|
1209
1241
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
1210
1242
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
1211
|
-
}, {}> & {
|
|
1243
|
+
}, {}, {}> & {
|
|
1212
1244
|
_resource: string;
|
|
1213
1245
|
_resourceId: string;
|
|
1214
1246
|
json: [];
|
|
@@ -1221,7 +1253,7 @@ export declare class ModelService {
|
|
|
1221
1253
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
1222
1254
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
1223
1255
|
$ignore(path: string): void;
|
|
1224
|
-
$isDefault(path
|
|
1256
|
+
$isDefault(path?: string): boolean;
|
|
1225
1257
|
$isDeleted(val?: boolean): boolean;
|
|
1226
1258
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
1227
1259
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -1229,7 +1261,7 @@ export declare class ModelService {
|
|
|
1229
1261
|
$isValid(path: string): boolean;
|
|
1230
1262
|
$locals: Record<string, unknown>;
|
|
1231
1263
|
$markValid(path: string): void;
|
|
1232
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
1264
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
1233
1265
|
_id: unknown;
|
|
1234
1266
|
}> & {
|
|
1235
1267
|
__v: number;
|
|
@@ -1248,7 +1280,7 @@ export declare class ModelService {
|
|
|
1248
1280
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
1249
1281
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
1250
1282
|
directModifiedPaths(): Array<string>;
|
|
1251
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
1283
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
1252
1284
|
errors?: import("mongoose").Error.ValidationError;
|
|
1253
1285
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
1254
1286
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -1275,7 +1307,7 @@ export declare class ModelService {
|
|
|
1275
1307
|
isSelected(path: string): boolean;
|
|
1276
1308
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
1277
1309
|
markModified(path: string, scope?: any): void;
|
|
1278
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
1310
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
1279
1311
|
_id: unknown;
|
|
1280
1312
|
}> & {
|
|
1281
1313
|
__v: number;
|
|
@@ -1339,7 +1371,11 @@ export declare class ModelService {
|
|
|
1339
1371
|
virtuals: true;
|
|
1340
1372
|
}): any;
|
|
1341
1373
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
1342
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
1374
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
1375
|
+
__v?: infer U;
|
|
1376
|
+
} ? T_1 : T_1 & {
|
|
1377
|
+
__v: number;
|
|
1378
|
+
} : never : never;
|
|
1343
1379
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
1344
1380
|
unmarkModified(path: string): void;
|
|
1345
1381
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -1372,7 +1408,7 @@ export declare class ModelService {
|
|
|
1372
1408
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
1373
1409
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
1374
1410
|
$ignore(path: string): void;
|
|
1375
|
-
$isDefault(path
|
|
1411
|
+
$isDefault(path?: string): boolean;
|
|
1376
1412
|
$isDeleted(val?: boolean): boolean;
|
|
1377
1413
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
1378
1414
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -1380,7 +1416,7 @@ export declare class ModelService {
|
|
|
1380
1416
|
$isValid(path: string): boolean;
|
|
1381
1417
|
$locals: Record<string, unknown>;
|
|
1382
1418
|
$markValid(path: string): void;
|
|
1383
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
1419
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
1384
1420
|
_id: unknown;
|
|
1385
1421
|
}> & {
|
|
1386
1422
|
__v: number;
|
|
@@ -1399,7 +1435,7 @@ export declare class ModelService {
|
|
|
1399
1435
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
1400
1436
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
1401
1437
|
directModifiedPaths(): Array<string>;
|
|
1402
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
1438
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
1403
1439
|
errors?: import("mongoose").Error.ValidationError;
|
|
1404
1440
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
1405
1441
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -1426,7 +1462,7 @@ export declare class ModelService {
|
|
|
1426
1462
|
isSelected(path: string): boolean;
|
|
1427
1463
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
1428
1464
|
markModified(path: string, scope?: any): void;
|
|
1429
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
1465
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
1430
1466
|
_id: unknown;
|
|
1431
1467
|
}> & {
|
|
1432
1468
|
__v: number;
|
|
@@ -1490,7 +1526,11 @@ export declare class ModelService {
|
|
|
1490
1526
|
virtuals: true;
|
|
1491
1527
|
}): any;
|
|
1492
1528
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
1493
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
1529
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
1530
|
+
__v?: infer U;
|
|
1531
|
+
} ? T_1 : T_1 & {
|
|
1532
|
+
__v: number;
|
|
1533
|
+
} : never : never;
|
|
1494
1534
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
1495
1535
|
unmarkModified(path: string): void;
|
|
1496
1536
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -1517,7 +1557,7 @@ export declare class ModelService {
|
|
|
1517
1557
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
1518
1558
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
1519
1559
|
$ignore(path: string): void;
|
|
1520
|
-
$isDefault(path
|
|
1560
|
+
$isDefault(path?: string): boolean;
|
|
1521
1561
|
$isDeleted(val?: boolean): boolean;
|
|
1522
1562
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
1523
1563
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -1525,7 +1565,7 @@ export declare class ModelService {
|
|
|
1525
1565
|
$isValid(path: string): boolean;
|
|
1526
1566
|
$locals: Record<string, unknown>;
|
|
1527
1567
|
$markValid(path: string): void;
|
|
1528
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
1568
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
1529
1569
|
_id: unknown;
|
|
1530
1570
|
}> & {
|
|
1531
1571
|
__v: number;
|
|
@@ -1544,7 +1584,7 @@ export declare class ModelService {
|
|
|
1544
1584
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
1545
1585
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
1546
1586
|
directModifiedPaths(): Array<string>;
|
|
1547
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
1587
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
1548
1588
|
errors?: import("mongoose").Error.ValidationError;
|
|
1549
1589
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
1550
1590
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -1571,7 +1611,7 @@ export declare class ModelService {
|
|
|
1571
1611
|
isSelected(path: string): boolean;
|
|
1572
1612
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
1573
1613
|
markModified(path: string, scope?: any): void;
|
|
1574
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
1614
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
1575
1615
|
_id: unknown;
|
|
1576
1616
|
}> & {
|
|
1577
1617
|
__v: number;
|
|
@@ -1635,7 +1675,11 @@ export declare class ModelService {
|
|
|
1635
1675
|
virtuals: true;
|
|
1636
1676
|
}): any;
|
|
1637
1677
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
1638
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
1678
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
1679
|
+
__v?: infer U;
|
|
1680
|
+
} ? T_1 : T_1 & {
|
|
1681
|
+
__v: number;
|
|
1682
|
+
} : never : never;
|
|
1639
1683
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
1640
1684
|
unmarkModified(path: string): void;
|
|
1641
1685
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -1650,7 +1694,7 @@ export declare class ModelService {
|
|
|
1650
1694
|
}): import("mongoose").Error.ValidationError | null;
|
|
1651
1695
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
1652
1696
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
1653
|
-
}, {}> & {
|
|
1697
|
+
}, {}, {}> & {
|
|
1654
1698
|
title: string;
|
|
1655
1699
|
_hid: string;
|
|
1656
1700
|
draft: boolean;
|
|
@@ -1662,7 +1706,7 @@ export declare class ModelService {
|
|
|
1662
1706
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
1663
1707
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
1664
1708
|
$ignore(path: string): void;
|
|
1665
|
-
$isDefault(path
|
|
1709
|
+
$isDefault(path?: string): boolean;
|
|
1666
1710
|
$isDeleted(val?: boolean): boolean;
|
|
1667
1711
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
1668
1712
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -1670,7 +1714,7 @@ export declare class ModelService {
|
|
|
1670
1714
|
$isValid(path: string): boolean;
|
|
1671
1715
|
$locals: Record<string, unknown>;
|
|
1672
1716
|
$markValid(path: string): void;
|
|
1673
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
1717
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
1674
1718
|
_id: unknown;
|
|
1675
1719
|
}> & {
|
|
1676
1720
|
__v: number;
|
|
@@ -1689,7 +1733,7 @@ export declare class ModelService {
|
|
|
1689
1733
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
1690
1734
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
1691
1735
|
directModifiedPaths(): Array<string>;
|
|
1692
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
1736
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
1693
1737
|
errors?: import("mongoose").Error.ValidationError;
|
|
1694
1738
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
1695
1739
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -1716,7 +1760,7 @@ export declare class ModelService {
|
|
|
1716
1760
|
isSelected(path: string): boolean;
|
|
1717
1761
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
1718
1762
|
markModified(path: string, scope?: any): void;
|
|
1719
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
1763
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
1720
1764
|
_id: unknown;
|
|
1721
1765
|
}> & {
|
|
1722
1766
|
__v: number;
|
|
@@ -1780,7 +1824,11 @@ export declare class ModelService {
|
|
|
1780
1824
|
virtuals: true;
|
|
1781
1825
|
}): any;
|
|
1782
1826
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
1783
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
1827
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
1828
|
+
__v?: infer U;
|
|
1829
|
+
} ? T_1 : T_1 & {
|
|
1830
|
+
__v: number;
|
|
1831
|
+
} : never : never;
|
|
1784
1832
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
1785
1833
|
unmarkModified(path: string): void;
|
|
1786
1834
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -1813,7 +1861,7 @@ export declare class ModelService {
|
|
|
1813
1861
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
1814
1862
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
1815
1863
|
$ignore(path: string): void;
|
|
1816
|
-
$isDefault(path
|
|
1864
|
+
$isDefault(path?: string): boolean;
|
|
1817
1865
|
$isDeleted(val?: boolean): boolean;
|
|
1818
1866
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
1819
1867
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -1821,7 +1869,7 @@ export declare class ModelService {
|
|
|
1821
1869
|
$isValid(path: string): boolean;
|
|
1822
1870
|
$locals: Record<string, unknown>;
|
|
1823
1871
|
$markValid(path: string): void;
|
|
1824
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
1872
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
1825
1873
|
_id: unknown;
|
|
1826
1874
|
}> & {
|
|
1827
1875
|
__v: number;
|
|
@@ -1840,7 +1888,7 @@ export declare class ModelService {
|
|
|
1840
1888
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
1841
1889
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
1842
1890
|
directModifiedPaths(): Array<string>;
|
|
1843
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
1891
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
1844
1892
|
errors?: import("mongoose").Error.ValidationError;
|
|
1845
1893
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
1846
1894
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -1867,7 +1915,7 @@ export declare class ModelService {
|
|
|
1867
1915
|
isSelected(path: string): boolean;
|
|
1868
1916
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
1869
1917
|
markModified(path: string, scope?: any): void;
|
|
1870
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
1918
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
1871
1919
|
_id: unknown;
|
|
1872
1920
|
}> & {
|
|
1873
1921
|
__v: number;
|
|
@@ -1931,7 +1979,11 @@ export declare class ModelService {
|
|
|
1931
1979
|
virtuals: true;
|
|
1932
1980
|
}): any;
|
|
1933
1981
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
1934
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
1982
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
1983
|
+
__v?: infer U;
|
|
1984
|
+
} ? T_1 : T_1 & {
|
|
1985
|
+
__v: number;
|
|
1986
|
+
} : never : never;
|
|
1935
1987
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
1936
1988
|
unmarkModified(path: string): void;
|
|
1937
1989
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -1958,7 +2010,7 @@ export declare class ModelService {
|
|
|
1958
2010
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
1959
2011
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
1960
2012
|
$ignore(path: string): void;
|
|
1961
|
-
$isDefault(path
|
|
2013
|
+
$isDefault(path?: string): boolean;
|
|
1962
2014
|
$isDeleted(val?: boolean): boolean;
|
|
1963
2015
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
1964
2016
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -1966,7 +2018,7 @@ export declare class ModelService {
|
|
|
1966
2018
|
$isValid(path: string): boolean;
|
|
1967
2019
|
$locals: Record<string, unknown>;
|
|
1968
2020
|
$markValid(path: string): void;
|
|
1969
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2021
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
1970
2022
|
_id: unknown;
|
|
1971
2023
|
}> & {
|
|
1972
2024
|
__v: number;
|
|
@@ -1985,7 +2037,7 @@ export declare class ModelService {
|
|
|
1985
2037
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
1986
2038
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
1987
2039
|
directModifiedPaths(): Array<string>;
|
|
1988
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
2040
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
1989
2041
|
errors?: import("mongoose").Error.ValidationError;
|
|
1990
2042
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
1991
2043
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -2012,7 +2064,7 @@ export declare class ModelService {
|
|
|
2012
2064
|
isSelected(path: string): boolean;
|
|
2013
2065
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
2014
2066
|
markModified(path: string, scope?: any): void;
|
|
2015
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2067
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
2016
2068
|
_id: unknown;
|
|
2017
2069
|
}> & {
|
|
2018
2070
|
__v: number;
|
|
@@ -2076,7 +2128,11 @@ export declare class ModelService {
|
|
|
2076
2128
|
virtuals: true;
|
|
2077
2129
|
}): any;
|
|
2078
2130
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
2079
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
2131
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
2132
|
+
__v?: infer U;
|
|
2133
|
+
} ? T_1 : T_1 & {
|
|
2134
|
+
__v: number;
|
|
2135
|
+
} : never : never;
|
|
2080
2136
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
2081
2137
|
unmarkModified(path: string): void;
|
|
2082
2138
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -2091,7 +2147,7 @@ export declare class ModelService {
|
|
|
2091
2147
|
}): import("mongoose").Error.ValidationError | null;
|
|
2092
2148
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
2093
2149
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
2094
|
-
}, {}> & {
|
|
2150
|
+
}, {}, {}> & {
|
|
2095
2151
|
title: string;
|
|
2096
2152
|
_hid: string;
|
|
2097
2153
|
draft: boolean;
|
|
@@ -2103,7 +2159,7 @@ export declare class ModelService {
|
|
|
2103
2159
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
2104
2160
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
2105
2161
|
$ignore(path: string): void;
|
|
2106
|
-
$isDefault(path
|
|
2162
|
+
$isDefault(path?: string): boolean;
|
|
2107
2163
|
$isDeleted(val?: boolean): boolean;
|
|
2108
2164
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
2109
2165
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -2111,7 +2167,7 @@ export declare class ModelService {
|
|
|
2111
2167
|
$isValid(path: string): boolean;
|
|
2112
2168
|
$locals: Record<string, unknown>;
|
|
2113
2169
|
$markValid(path: string): void;
|
|
2114
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2170
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
2115
2171
|
_id: unknown;
|
|
2116
2172
|
}> & {
|
|
2117
2173
|
__v: number;
|
|
@@ -2130,7 +2186,7 @@ export declare class ModelService {
|
|
|
2130
2186
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
2131
2187
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
2132
2188
|
directModifiedPaths(): Array<string>;
|
|
2133
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
2189
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
2134
2190
|
errors?: import("mongoose").Error.ValidationError;
|
|
2135
2191
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
2136
2192
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -2157,7 +2213,7 @@ export declare class ModelService {
|
|
|
2157
2213
|
isSelected(path: string): boolean;
|
|
2158
2214
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
2159
2215
|
markModified(path: string, scope?: any): void;
|
|
2160
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2216
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
2161
2217
|
_id: unknown;
|
|
2162
2218
|
}> & {
|
|
2163
2219
|
__v: number;
|
|
@@ -2221,7 +2277,11 @@ export declare class ModelService {
|
|
|
2221
2277
|
virtuals: true;
|
|
2222
2278
|
}): any;
|
|
2223
2279
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
2224
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
2280
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
2281
|
+
__v?: infer U;
|
|
2282
|
+
} ? T_1 : T_1 & {
|
|
2283
|
+
__v: number;
|
|
2284
|
+
} : never : never;
|
|
2225
2285
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
2226
2286
|
unmarkModified(path: string): void;
|
|
2227
2287
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -2255,7 +2315,7 @@ export declare class ModelService {
|
|
|
2255
2315
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
2256
2316
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
2257
2317
|
$ignore(path: string): void;
|
|
2258
|
-
$isDefault(path
|
|
2318
|
+
$isDefault(path?: string): boolean;
|
|
2259
2319
|
$isDeleted(val?: boolean): boolean;
|
|
2260
2320
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
2261
2321
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -2263,7 +2323,7 @@ export declare class ModelService {
|
|
|
2263
2323
|
$isValid(path: string): boolean;
|
|
2264
2324
|
$locals: Record<string, unknown>;
|
|
2265
2325
|
$markValid(path: string): void;
|
|
2266
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2326
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
2267
2327
|
_id: unknown;
|
|
2268
2328
|
}> & {
|
|
2269
2329
|
__v: number;
|
|
@@ -2282,7 +2342,7 @@ export declare class ModelService {
|
|
|
2282
2342
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
2283
2343
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
2284
2344
|
directModifiedPaths(): Array<string>;
|
|
2285
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
2345
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
2286
2346
|
errors?: import("mongoose").Error.ValidationError;
|
|
2287
2347
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
2288
2348
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -2309,7 +2369,7 @@ export declare class ModelService {
|
|
|
2309
2369
|
isSelected(path: string): boolean;
|
|
2310
2370
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
2311
2371
|
markModified(path: string, scope?: any): void;
|
|
2312
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2372
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
2313
2373
|
_id: unknown;
|
|
2314
2374
|
}> & {
|
|
2315
2375
|
__v: number;
|
|
@@ -2373,7 +2433,11 @@ export declare class ModelService {
|
|
|
2373
2433
|
virtuals: true;
|
|
2374
2434
|
}): any;
|
|
2375
2435
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
2376
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
2436
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
2437
|
+
__v?: infer U;
|
|
2438
|
+
} ? T_1 : T_1 & {
|
|
2439
|
+
__v: number;
|
|
2440
|
+
} : never : never;
|
|
2377
2441
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
2378
2442
|
unmarkModified(path: string): void;
|
|
2379
2443
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -2401,7 +2465,7 @@ export declare class ModelService {
|
|
|
2401
2465
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
2402
2466
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
2403
2467
|
$ignore(path: string): void;
|
|
2404
|
-
$isDefault(path
|
|
2468
|
+
$isDefault(path?: string): boolean;
|
|
2405
2469
|
$isDeleted(val?: boolean): boolean;
|
|
2406
2470
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
2407
2471
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -2409,7 +2473,7 @@ export declare class ModelService {
|
|
|
2409
2473
|
$isValid(path: string): boolean;
|
|
2410
2474
|
$locals: Record<string, unknown>;
|
|
2411
2475
|
$markValid(path: string): void;
|
|
2412
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2476
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
2413
2477
|
_id: unknown;
|
|
2414
2478
|
}> & {
|
|
2415
2479
|
__v: number;
|
|
@@ -2428,7 +2492,7 @@ export declare class ModelService {
|
|
|
2428
2492
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
2429
2493
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
2430
2494
|
directModifiedPaths(): Array<string>;
|
|
2431
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
2495
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
2432
2496
|
errors?: import("mongoose").Error.ValidationError;
|
|
2433
2497
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
2434
2498
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -2455,7 +2519,7 @@ export declare class ModelService {
|
|
|
2455
2519
|
isSelected(path: string): boolean;
|
|
2456
2520
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
2457
2521
|
markModified(path: string, scope?: any): void;
|
|
2458
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2522
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
2459
2523
|
_id: unknown;
|
|
2460
2524
|
}> & {
|
|
2461
2525
|
__v: number;
|
|
@@ -2519,7 +2583,11 @@ export declare class ModelService {
|
|
|
2519
2583
|
virtuals: true;
|
|
2520
2584
|
}): any;
|
|
2521
2585
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
2522
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
2586
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
2587
|
+
__v?: infer U;
|
|
2588
|
+
} ? T_1 : T_1 & {
|
|
2589
|
+
__v: number;
|
|
2590
|
+
} : never : never;
|
|
2523
2591
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
2524
2592
|
unmarkModified(path: string): void;
|
|
2525
2593
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -2534,7 +2602,7 @@ export declare class ModelService {
|
|
|
2534
2602
|
}): import("mongoose").Error.ValidationError | null;
|
|
2535
2603
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
2536
2604
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
2537
|
-
}, {}> & {
|
|
2605
|
+
}, {}, {}> & {
|
|
2538
2606
|
title: string;
|
|
2539
2607
|
_hid: string;
|
|
2540
2608
|
_year: number;
|
|
@@ -2547,7 +2615,7 @@ export declare class ModelService {
|
|
|
2547
2615
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
2548
2616
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
2549
2617
|
$ignore(path: string): void;
|
|
2550
|
-
$isDefault(path
|
|
2618
|
+
$isDefault(path?: string): boolean;
|
|
2551
2619
|
$isDeleted(val?: boolean): boolean;
|
|
2552
2620
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
2553
2621
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -2555,7 +2623,7 @@ export declare class ModelService {
|
|
|
2555
2623
|
$isValid(path: string): boolean;
|
|
2556
2624
|
$locals: Record<string, unknown>;
|
|
2557
2625
|
$markValid(path: string): void;
|
|
2558
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2626
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
2559
2627
|
_id: unknown;
|
|
2560
2628
|
}> & {
|
|
2561
2629
|
__v: number;
|
|
@@ -2574,7 +2642,7 @@ export declare class ModelService {
|
|
|
2574
2642
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
2575
2643
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
2576
2644
|
directModifiedPaths(): Array<string>;
|
|
2577
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
2645
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
2578
2646
|
errors?: import("mongoose").Error.ValidationError;
|
|
2579
2647
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
2580
2648
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -2601,7 +2669,7 @@ export declare class ModelService {
|
|
|
2601
2669
|
isSelected(path: string): boolean;
|
|
2602
2670
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
2603
2671
|
markModified(path: string, scope?: any): void;
|
|
2604
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2672
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
2605
2673
|
_id: unknown;
|
|
2606
2674
|
}> & {
|
|
2607
2675
|
__v: number;
|
|
@@ -2665,7 +2733,11 @@ export declare class ModelService {
|
|
|
2665
2733
|
virtuals: true;
|
|
2666
2734
|
}): any;
|
|
2667
2735
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
2668
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
2736
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
2737
|
+
__v?: infer U;
|
|
2738
|
+
} ? T_1 : T_1 & {
|
|
2739
|
+
__v: number;
|
|
2740
|
+
} : never : never;
|
|
2669
2741
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
2670
2742
|
unmarkModified(path: string): void;
|
|
2671
2743
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -2698,7 +2770,7 @@ export declare class ModelService {
|
|
|
2698
2770
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
2699
2771
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
2700
2772
|
$ignore(path: string): void;
|
|
2701
|
-
$isDefault(path
|
|
2773
|
+
$isDefault(path?: string): boolean;
|
|
2702
2774
|
$isDeleted(val?: boolean): boolean;
|
|
2703
2775
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
2704
2776
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -2706,7 +2778,7 @@ export declare class ModelService {
|
|
|
2706
2778
|
$isValid(path: string): boolean;
|
|
2707
2779
|
$locals: Record<string, unknown>;
|
|
2708
2780
|
$markValid(path: string): void;
|
|
2709
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2781
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
2710
2782
|
_id: unknown;
|
|
2711
2783
|
}> & {
|
|
2712
2784
|
__v: number;
|
|
@@ -2725,7 +2797,7 @@ export declare class ModelService {
|
|
|
2725
2797
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
2726
2798
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
2727
2799
|
directModifiedPaths(): Array<string>;
|
|
2728
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
2800
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
2729
2801
|
errors?: import("mongoose").Error.ValidationError;
|
|
2730
2802
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
2731
2803
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -2752,7 +2824,7 @@ export declare class ModelService {
|
|
|
2752
2824
|
isSelected(path: string): boolean;
|
|
2753
2825
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
2754
2826
|
markModified(path: string, scope?: any): void;
|
|
2755
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2827
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
2756
2828
|
_id: unknown;
|
|
2757
2829
|
}> & {
|
|
2758
2830
|
__v: number;
|
|
@@ -2816,7 +2888,11 @@ export declare class ModelService {
|
|
|
2816
2888
|
virtuals: true;
|
|
2817
2889
|
}): any;
|
|
2818
2890
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
2819
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
2891
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
2892
|
+
__v?: infer U;
|
|
2893
|
+
} ? T_1 : T_1 & {
|
|
2894
|
+
__v: number;
|
|
2895
|
+
} : never : never;
|
|
2820
2896
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
2821
2897
|
unmarkModified(path: string): void;
|
|
2822
2898
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -2843,7 +2919,7 @@ export declare class ModelService {
|
|
|
2843
2919
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
2844
2920
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
2845
2921
|
$ignore(path: string): void;
|
|
2846
|
-
$isDefault(path
|
|
2922
|
+
$isDefault(path?: string): boolean;
|
|
2847
2923
|
$isDeleted(val?: boolean): boolean;
|
|
2848
2924
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
2849
2925
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -2851,7 +2927,7 @@ export declare class ModelService {
|
|
|
2851
2927
|
$isValid(path: string): boolean;
|
|
2852
2928
|
$locals: Record<string, unknown>;
|
|
2853
2929
|
$markValid(path: string): void;
|
|
2854
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2930
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
2855
2931
|
_id: unknown;
|
|
2856
2932
|
}> & {
|
|
2857
2933
|
__v: number;
|
|
@@ -2870,7 +2946,7 @@ export declare class ModelService {
|
|
|
2870
2946
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
2871
2947
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
2872
2948
|
directModifiedPaths(): Array<string>;
|
|
2873
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
2949
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
2874
2950
|
errors?: import("mongoose").Error.ValidationError;
|
|
2875
2951
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
2876
2952
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -2897,7 +2973,7 @@ export declare class ModelService {
|
|
|
2897
2973
|
isSelected(path: string): boolean;
|
|
2898
2974
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
2899
2975
|
markModified(path: string, scope?: any): void;
|
|
2900
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
2976
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
2901
2977
|
_id: unknown;
|
|
2902
2978
|
}> & {
|
|
2903
2979
|
__v: number;
|
|
@@ -2961,7 +3037,11 @@ export declare class ModelService {
|
|
|
2961
3037
|
virtuals: true;
|
|
2962
3038
|
}): any;
|
|
2963
3039
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
2964
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
3040
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
3041
|
+
__v?: infer U;
|
|
3042
|
+
} ? T_1 : T_1 & {
|
|
3043
|
+
__v: number;
|
|
3044
|
+
} : never : never;
|
|
2965
3045
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
2966
3046
|
unmarkModified(path: string): void;
|
|
2967
3047
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -2976,7 +3056,7 @@ export declare class ModelService {
|
|
|
2976
3056
|
}): import("mongoose").Error.ValidationError | null;
|
|
2977
3057
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
2978
3058
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
2979
|
-
}, {}> & {
|
|
3059
|
+
}, {}, {}> & {
|
|
2980
3060
|
title: string;
|
|
2981
3061
|
_hid: string;
|
|
2982
3062
|
draft: boolean;
|
|
@@ -2988,7 +3068,7 @@ export declare class ModelService {
|
|
|
2988
3068
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
2989
3069
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
2990
3070
|
$ignore(path: string): void;
|
|
2991
|
-
$isDefault(path
|
|
3071
|
+
$isDefault(path?: string): boolean;
|
|
2992
3072
|
$isDeleted(val?: boolean): boolean;
|
|
2993
3073
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
2994
3074
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -2996,7 +3076,7 @@ export declare class ModelService {
|
|
|
2996
3076
|
$isValid(path: string): boolean;
|
|
2997
3077
|
$locals: Record<string, unknown>;
|
|
2998
3078
|
$markValid(path: string): void;
|
|
2999
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
3079
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3000
3080
|
_id: unknown;
|
|
3001
3081
|
}> & {
|
|
3002
3082
|
__v: number;
|
|
@@ -3015,7 +3095,7 @@ export declare class ModelService {
|
|
|
3015
3095
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
3016
3096
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
3017
3097
|
directModifiedPaths(): Array<string>;
|
|
3018
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
3098
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
3019
3099
|
errors?: import("mongoose").Error.ValidationError;
|
|
3020
3100
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
3021
3101
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -3042,7 +3122,7 @@ export declare class ModelService {
|
|
|
3042
3122
|
isSelected(path: string): boolean;
|
|
3043
3123
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
3044
3124
|
markModified(path: string, scope?: any): void;
|
|
3045
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
3125
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3046
3126
|
_id: unknown;
|
|
3047
3127
|
}> & {
|
|
3048
3128
|
__v: number;
|
|
@@ -3106,7 +3186,11 @@ export declare class ModelService {
|
|
|
3106
3186
|
virtuals: true;
|
|
3107
3187
|
}): any;
|
|
3108
3188
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
3109
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
3189
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
3190
|
+
__v?: infer U;
|
|
3191
|
+
} ? T_1 : T_1 & {
|
|
3192
|
+
__v: number;
|
|
3193
|
+
} : never : never;
|
|
3110
3194
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
3111
3195
|
unmarkModified(path: string): void;
|
|
3112
3196
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -3140,7 +3224,7 @@ export declare class ModelService {
|
|
|
3140
3224
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
3141
3225
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
3142
3226
|
$ignore(path: string): void;
|
|
3143
|
-
$isDefault(path
|
|
3227
|
+
$isDefault(path?: string): boolean;
|
|
3144
3228
|
$isDeleted(val?: boolean): boolean;
|
|
3145
3229
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
3146
3230
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -3148,7 +3232,7 @@ export declare class ModelService {
|
|
|
3148
3232
|
$isValid(path: string): boolean;
|
|
3149
3233
|
$locals: Record<string, unknown>;
|
|
3150
3234
|
$markValid(path: string): void;
|
|
3151
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
3235
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3152
3236
|
_id: unknown;
|
|
3153
3237
|
}> & {
|
|
3154
3238
|
__v: number;
|
|
@@ -3167,7 +3251,7 @@ export declare class ModelService {
|
|
|
3167
3251
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
3168
3252
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
3169
3253
|
directModifiedPaths(): Array<string>;
|
|
3170
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
3254
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
3171
3255
|
errors?: import("mongoose").Error.ValidationError;
|
|
3172
3256
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
3173
3257
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -3194,7 +3278,7 @@ export declare class ModelService {
|
|
|
3194
3278
|
isSelected(path: string): boolean;
|
|
3195
3279
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
3196
3280
|
markModified(path: string, scope?: any): void;
|
|
3197
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
3281
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3198
3282
|
_id: unknown;
|
|
3199
3283
|
}> & {
|
|
3200
3284
|
__v: number;
|
|
@@ -3258,7 +3342,11 @@ export declare class ModelService {
|
|
|
3258
3342
|
virtuals: true;
|
|
3259
3343
|
}): any;
|
|
3260
3344
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
3261
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
3345
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
3346
|
+
__v?: infer U;
|
|
3347
|
+
} ? T_1 : T_1 & {
|
|
3348
|
+
__v: number;
|
|
3349
|
+
} : never : never;
|
|
3262
3350
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
3263
3351
|
unmarkModified(path: string): void;
|
|
3264
3352
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -3286,7 +3374,7 @@ export declare class ModelService {
|
|
|
3286
3374
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
3287
3375
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
3288
3376
|
$ignore(path: string): void;
|
|
3289
|
-
$isDefault(path
|
|
3377
|
+
$isDefault(path?: string): boolean;
|
|
3290
3378
|
$isDeleted(val?: boolean): boolean;
|
|
3291
3379
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
3292
3380
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -3294,7 +3382,7 @@ export declare class ModelService {
|
|
|
3294
3382
|
$isValid(path: string): boolean;
|
|
3295
3383
|
$locals: Record<string, unknown>;
|
|
3296
3384
|
$markValid(path: string): void;
|
|
3297
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
3385
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3298
3386
|
_id: unknown;
|
|
3299
3387
|
}> & {
|
|
3300
3388
|
__v: number;
|
|
@@ -3313,7 +3401,7 @@ export declare class ModelService {
|
|
|
3313
3401
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
3314
3402
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
3315
3403
|
directModifiedPaths(): Array<string>;
|
|
3316
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
3404
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
3317
3405
|
errors?: import("mongoose").Error.ValidationError;
|
|
3318
3406
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
3319
3407
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -3340,7 +3428,7 @@ export declare class ModelService {
|
|
|
3340
3428
|
isSelected(path: string): boolean;
|
|
3341
3429
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
3342
3430
|
markModified(path: string, scope?: any): void;
|
|
3343
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
3431
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3344
3432
|
_id: unknown;
|
|
3345
3433
|
}> & {
|
|
3346
3434
|
__v: number;
|
|
@@ -3404,7 +3492,11 @@ export declare class ModelService {
|
|
|
3404
3492
|
virtuals: true;
|
|
3405
3493
|
}): any;
|
|
3406
3494
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
3407
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
3495
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
3496
|
+
__v?: infer U;
|
|
3497
|
+
} ? T_1 : T_1 & {
|
|
3498
|
+
__v: number;
|
|
3499
|
+
} : never : never;
|
|
3408
3500
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
3409
3501
|
unmarkModified(path: string): void;
|
|
3410
3502
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -3419,7 +3511,7 @@ export declare class ModelService {
|
|
|
3419
3511
|
}): import("mongoose").Error.ValidationError | null;
|
|
3420
3512
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
3421
3513
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
3422
|
-
}, {}> & {
|
|
3514
|
+
}, {}, {}> & {
|
|
3423
3515
|
title: string;
|
|
3424
3516
|
_hid: string;
|
|
3425
3517
|
authorId: string;
|
|
@@ -3432,7 +3524,7 @@ export declare class ModelService {
|
|
|
3432
3524
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
3433
3525
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
3434
3526
|
$ignore(path: string): void;
|
|
3435
|
-
$isDefault(path
|
|
3527
|
+
$isDefault(path?: string): boolean;
|
|
3436
3528
|
$isDeleted(val?: boolean): boolean;
|
|
3437
3529
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
3438
3530
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -3440,7 +3532,7 @@ export declare class ModelService {
|
|
|
3440
3532
|
$isValid(path: string): boolean;
|
|
3441
3533
|
$locals: Record<string, unknown>;
|
|
3442
3534
|
$markValid(path: string): void;
|
|
3443
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
3535
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3444
3536
|
_id: unknown;
|
|
3445
3537
|
}> & {
|
|
3446
3538
|
__v: number;
|
|
@@ -3459,7 +3551,7 @@ export declare class ModelService {
|
|
|
3459
3551
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
3460
3552
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
3461
3553
|
directModifiedPaths(): Array<string>;
|
|
3462
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
3554
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
3463
3555
|
errors?: import("mongoose").Error.ValidationError;
|
|
3464
3556
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
3465
3557
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -3486,7 +3578,7 @@ export declare class ModelService {
|
|
|
3486
3578
|
isSelected(path: string): boolean;
|
|
3487
3579
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
3488
3580
|
markModified(path: string, scope?: any): void;
|
|
3489
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
3581
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3490
3582
|
_id: unknown;
|
|
3491
3583
|
}> & {
|
|
3492
3584
|
__v: number;
|
|
@@ -3550,7 +3642,11 @@ export declare class ModelService {
|
|
|
3550
3642
|
virtuals: true;
|
|
3551
3643
|
}): any;
|
|
3552
3644
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
3553
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
3645
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
3646
|
+
__v?: infer U;
|
|
3647
|
+
} ? T_1 : T_1 & {
|
|
3648
|
+
__v: number;
|
|
3649
|
+
} : never : never;
|
|
3554
3650
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
3555
3651
|
unmarkModified(path: string): void;
|
|
3556
3652
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -3583,7 +3679,7 @@ export declare class ModelService {
|
|
|
3583
3679
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
3584
3680
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
3585
3681
|
$ignore(path: string): void;
|
|
3586
|
-
$isDefault(path
|
|
3682
|
+
$isDefault(path?: string): boolean;
|
|
3587
3683
|
$isDeleted(val?: boolean): boolean;
|
|
3588
3684
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
3589
3685
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -3591,7 +3687,7 @@ export declare class ModelService {
|
|
|
3591
3687
|
$isValid(path: string): boolean;
|
|
3592
3688
|
$locals: Record<string, unknown>;
|
|
3593
3689
|
$markValid(path: string): void;
|
|
3594
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
3690
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3595
3691
|
_id: unknown;
|
|
3596
3692
|
}> & {
|
|
3597
3693
|
__v: number;
|
|
@@ -3610,7 +3706,7 @@ export declare class ModelService {
|
|
|
3610
3706
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
3611
3707
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
3612
3708
|
directModifiedPaths(): Array<string>;
|
|
3613
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
3709
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
3614
3710
|
errors?: import("mongoose").Error.ValidationError;
|
|
3615
3711
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
3616
3712
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -3637,7 +3733,7 @@ export declare class ModelService {
|
|
|
3637
3733
|
isSelected(path: string): boolean;
|
|
3638
3734
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
3639
3735
|
markModified(path: string, scope?: any): void;
|
|
3640
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
3736
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3641
3737
|
_id: unknown;
|
|
3642
3738
|
}> & {
|
|
3643
3739
|
__v: number;
|
|
@@ -3701,7 +3797,11 @@ export declare class ModelService {
|
|
|
3701
3797
|
virtuals: true;
|
|
3702
3798
|
}): any;
|
|
3703
3799
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
3704
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
3800
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
3801
|
+
__v?: infer U;
|
|
3802
|
+
} ? T_1 : T_1 & {
|
|
3803
|
+
__v: number;
|
|
3804
|
+
} : never : never;
|
|
3705
3805
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
3706
3806
|
unmarkModified(path: string): void;
|
|
3707
3807
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -3728,7 +3828,7 @@ export declare class ModelService {
|
|
|
3728
3828
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
3729
3829
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
3730
3830
|
$ignore(path: string): void;
|
|
3731
|
-
$isDefault(path
|
|
3831
|
+
$isDefault(path?: string): boolean;
|
|
3732
3832
|
$isDeleted(val?: boolean): boolean;
|
|
3733
3833
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
3734
3834
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -3736,7 +3836,7 @@ export declare class ModelService {
|
|
|
3736
3836
|
$isValid(path: string): boolean;
|
|
3737
3837
|
$locals: Record<string, unknown>;
|
|
3738
3838
|
$markValid(path: string): void;
|
|
3739
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
3839
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3740
3840
|
_id: unknown;
|
|
3741
3841
|
}> & {
|
|
3742
3842
|
__v: number;
|
|
@@ -3755,7 +3855,7 @@ export declare class ModelService {
|
|
|
3755
3855
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
3756
3856
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
3757
3857
|
directModifiedPaths(): Array<string>;
|
|
3758
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
3858
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
3759
3859
|
errors?: import("mongoose").Error.ValidationError;
|
|
3760
3860
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
3761
3861
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -3782,7 +3882,7 @@ export declare class ModelService {
|
|
|
3782
3882
|
isSelected(path: string): boolean;
|
|
3783
3883
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
3784
3884
|
markModified(path: string, scope?: any): void;
|
|
3785
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
3885
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3786
3886
|
_id: unknown;
|
|
3787
3887
|
}> & {
|
|
3788
3888
|
__v: number;
|
|
@@ -3846,7 +3946,11 @@ export declare class ModelService {
|
|
|
3846
3946
|
virtuals: true;
|
|
3847
3947
|
}): any;
|
|
3848
3948
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
3849
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
3949
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
3950
|
+
__v?: infer U;
|
|
3951
|
+
} ? T_1 : T_1 & {
|
|
3952
|
+
__v: number;
|
|
3953
|
+
} : never : never;
|
|
3850
3954
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
3851
3955
|
unmarkModified(path: string): void;
|
|
3852
3956
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -3861,7 +3965,7 @@ export declare class ModelService {
|
|
|
3861
3965
|
}): import("mongoose").Error.ValidationError | null;
|
|
3862
3966
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
3863
3967
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
3864
|
-
}, {}> & {
|
|
3968
|
+
}, {}, {}> & {
|
|
3865
3969
|
title: string;
|
|
3866
3970
|
_hid: string;
|
|
3867
3971
|
authorId: string;
|
|
@@ -3873,7 +3977,7 @@ export declare class ModelService {
|
|
|
3873
3977
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
3874
3978
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
3875
3979
|
$ignore(path: string): void;
|
|
3876
|
-
$isDefault(path
|
|
3980
|
+
$isDefault(path?: string): boolean;
|
|
3877
3981
|
$isDeleted(val?: boolean): boolean;
|
|
3878
3982
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
3879
3983
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -3881,7 +3985,7 @@ export declare class ModelService {
|
|
|
3881
3985
|
$isValid(path: string): boolean;
|
|
3882
3986
|
$locals: Record<string, unknown>;
|
|
3883
3987
|
$markValid(path: string): void;
|
|
3884
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
3988
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3885
3989
|
_id: unknown;
|
|
3886
3990
|
}> & {
|
|
3887
3991
|
__v: number;
|
|
@@ -3900,7 +4004,7 @@ export declare class ModelService {
|
|
|
3900
4004
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
3901
4005
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
3902
4006
|
directModifiedPaths(): Array<string>;
|
|
3903
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
4007
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
3904
4008
|
errors?: import("mongoose").Error.ValidationError;
|
|
3905
4009
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
3906
4010
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -3927,7 +4031,7 @@ export declare class ModelService {
|
|
|
3927
4031
|
isSelected(path: string): boolean;
|
|
3928
4032
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
3929
4033
|
markModified(path: string, scope?: any): void;
|
|
3930
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
4034
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
3931
4035
|
_id: unknown;
|
|
3932
4036
|
}> & {
|
|
3933
4037
|
__v: number;
|
|
@@ -3991,7 +4095,11 @@ export declare class ModelService {
|
|
|
3991
4095
|
virtuals: true;
|
|
3992
4096
|
}): any;
|
|
3993
4097
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
3994
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
4098
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
4099
|
+
__v?: infer U;
|
|
4100
|
+
} ? T_1 : T_1 & {
|
|
4101
|
+
__v: number;
|
|
4102
|
+
} : never : never;
|
|
3995
4103
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
3996
4104
|
unmarkModified(path: string): void;
|
|
3997
4105
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -4026,7 +4134,7 @@ export declare class ModelService {
|
|
|
4026
4134
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
4027
4135
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
4028
4136
|
$ignore(path: string): void;
|
|
4029
|
-
$isDefault(path
|
|
4137
|
+
$isDefault(path?: string): boolean;
|
|
4030
4138
|
$isDeleted(val?: boolean): boolean;
|
|
4031
4139
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
4032
4140
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -4034,7 +4142,7 @@ export declare class ModelService {
|
|
|
4034
4142
|
$isValid(path: string): boolean;
|
|
4035
4143
|
$locals: Record<string, unknown>;
|
|
4036
4144
|
$markValid(path: string): void;
|
|
4037
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
4145
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4038
4146
|
_id: unknown;
|
|
4039
4147
|
}> & {
|
|
4040
4148
|
__v: number;
|
|
@@ -4053,7 +4161,7 @@ export declare class ModelService {
|
|
|
4053
4161
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
4054
4162
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
4055
4163
|
directModifiedPaths(): Array<string>;
|
|
4056
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
4164
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
4057
4165
|
errors?: import("mongoose").Error.ValidationError;
|
|
4058
4166
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
4059
4167
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -4080,7 +4188,7 @@ export declare class ModelService {
|
|
|
4080
4188
|
isSelected(path: string): boolean;
|
|
4081
4189
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
4082
4190
|
markModified(path: string, scope?: any): void;
|
|
4083
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
4191
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4084
4192
|
_id: unknown;
|
|
4085
4193
|
}> & {
|
|
4086
4194
|
__v: number;
|
|
@@ -4144,7 +4252,11 @@ export declare class ModelService {
|
|
|
4144
4252
|
virtuals: true;
|
|
4145
4253
|
}): any;
|
|
4146
4254
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
4147
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
4255
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
4256
|
+
__v?: infer U;
|
|
4257
|
+
} ? T_1 : T_1 & {
|
|
4258
|
+
__v: number;
|
|
4259
|
+
} : never : never;
|
|
4148
4260
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
4149
4261
|
unmarkModified(path: string): void;
|
|
4150
4262
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -4173,7 +4285,7 @@ export declare class ModelService {
|
|
|
4173
4285
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
4174
4286
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
4175
4287
|
$ignore(path: string): void;
|
|
4176
|
-
$isDefault(path
|
|
4288
|
+
$isDefault(path?: string): boolean;
|
|
4177
4289
|
$isDeleted(val?: boolean): boolean;
|
|
4178
4290
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
4179
4291
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -4181,7 +4293,7 @@ export declare class ModelService {
|
|
|
4181
4293
|
$isValid(path: string): boolean;
|
|
4182
4294
|
$locals: Record<string, unknown>;
|
|
4183
4295
|
$markValid(path: string): void;
|
|
4184
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
4296
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4185
4297
|
_id: unknown;
|
|
4186
4298
|
}> & {
|
|
4187
4299
|
__v: number;
|
|
@@ -4200,7 +4312,7 @@ export declare class ModelService {
|
|
|
4200
4312
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
4201
4313
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
4202
4314
|
directModifiedPaths(): Array<string>;
|
|
4203
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
4315
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
4204
4316
|
errors?: import("mongoose").Error.ValidationError;
|
|
4205
4317
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
4206
4318
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -4227,7 +4339,7 @@ export declare class ModelService {
|
|
|
4227
4339
|
isSelected(path: string): boolean;
|
|
4228
4340
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
4229
4341
|
markModified(path: string, scope?: any): void;
|
|
4230
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
4342
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4231
4343
|
_id: unknown;
|
|
4232
4344
|
}> & {
|
|
4233
4345
|
__v: number;
|
|
@@ -4291,7 +4403,11 @@ export declare class ModelService {
|
|
|
4291
4403
|
virtuals: true;
|
|
4292
4404
|
}): any;
|
|
4293
4405
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
4294
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
4406
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
4407
|
+
__v?: infer U;
|
|
4408
|
+
} ? T_1 : T_1 & {
|
|
4409
|
+
__v: number;
|
|
4410
|
+
} : never : never;
|
|
4295
4411
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
4296
4412
|
unmarkModified(path: string): void;
|
|
4297
4413
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -4306,7 +4422,7 @@ export declare class ModelService {
|
|
|
4306
4422
|
}): import("mongoose").Error.ValidationError | null;
|
|
4307
4423
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
4308
4424
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
4309
|
-
}, {}> & {
|
|
4425
|
+
}, {}, {}> & {
|
|
4310
4426
|
title: string;
|
|
4311
4427
|
_hid: string;
|
|
4312
4428
|
_year: number;
|
|
@@ -4320,7 +4436,7 @@ export declare class ModelService {
|
|
|
4320
4436
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
4321
4437
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
4322
4438
|
$ignore(path: string): void;
|
|
4323
|
-
$isDefault(path
|
|
4439
|
+
$isDefault(path?: string): boolean;
|
|
4324
4440
|
$isDeleted(val?: boolean): boolean;
|
|
4325
4441
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
4326
4442
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -4328,7 +4444,7 @@ export declare class ModelService {
|
|
|
4328
4444
|
$isValid(path: string): boolean;
|
|
4329
4445
|
$locals: Record<string, unknown>;
|
|
4330
4446
|
$markValid(path: string): void;
|
|
4331
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
4447
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4332
4448
|
_id: unknown;
|
|
4333
4449
|
}> & {
|
|
4334
4450
|
__v: number;
|
|
@@ -4347,7 +4463,7 @@ export declare class ModelService {
|
|
|
4347
4463
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
4348
4464
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
4349
4465
|
directModifiedPaths(): Array<string>;
|
|
4350
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
4466
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
4351
4467
|
errors?: import("mongoose").Error.ValidationError;
|
|
4352
4468
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
4353
4469
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -4374,7 +4490,7 @@ export declare class ModelService {
|
|
|
4374
4490
|
isSelected(path: string): boolean;
|
|
4375
4491
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
4376
4492
|
markModified(path: string, scope?: any): void;
|
|
4377
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
4493
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4378
4494
|
_id: unknown;
|
|
4379
4495
|
}> & {
|
|
4380
4496
|
__v: number;
|
|
@@ -4438,7 +4554,11 @@ export declare class ModelService {
|
|
|
4438
4554
|
virtuals: true;
|
|
4439
4555
|
}): any;
|
|
4440
4556
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
4441
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
4557
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
4558
|
+
__v?: infer U;
|
|
4559
|
+
} ? T_1 : T_1 & {
|
|
4560
|
+
__v: number;
|
|
4561
|
+
} : never : never;
|
|
4442
4562
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
4443
4563
|
unmarkModified(path: string): void;
|
|
4444
4564
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -4471,7 +4591,7 @@ export declare class ModelService {
|
|
|
4471
4591
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
4472
4592
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
4473
4593
|
$ignore(path: string): void;
|
|
4474
|
-
$isDefault(path
|
|
4594
|
+
$isDefault(path?: string): boolean;
|
|
4475
4595
|
$isDeleted(val?: boolean): boolean;
|
|
4476
4596
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
4477
4597
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -4479,7 +4599,7 @@ export declare class ModelService {
|
|
|
4479
4599
|
$isValid(path: string): boolean;
|
|
4480
4600
|
$locals: Record<string, unknown>;
|
|
4481
4601
|
$markValid(path: string): void;
|
|
4482
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
4602
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4483
4603
|
_id: unknown;
|
|
4484
4604
|
}> & {
|
|
4485
4605
|
__v: number;
|
|
@@ -4498,7 +4618,7 @@ export declare class ModelService {
|
|
|
4498
4618
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
4499
4619
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
4500
4620
|
directModifiedPaths(): Array<string>;
|
|
4501
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
4621
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
4502
4622
|
errors?: import("mongoose").Error.ValidationError;
|
|
4503
4623
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
4504
4624
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -4525,7 +4645,7 @@ export declare class ModelService {
|
|
|
4525
4645
|
isSelected(path: string): boolean;
|
|
4526
4646
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
4527
4647
|
markModified(path: string, scope?: any): void;
|
|
4528
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
4648
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4529
4649
|
_id: unknown;
|
|
4530
4650
|
}> & {
|
|
4531
4651
|
__v: number;
|
|
@@ -4589,7 +4709,11 @@ export declare class ModelService {
|
|
|
4589
4709
|
virtuals: true;
|
|
4590
4710
|
}): any;
|
|
4591
4711
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
4592
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
4712
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
4713
|
+
__v?: infer U;
|
|
4714
|
+
} ? T_1 : T_1 & {
|
|
4715
|
+
__v: number;
|
|
4716
|
+
} : never : never;
|
|
4593
4717
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
4594
4718
|
unmarkModified(path: string): void;
|
|
4595
4719
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -4616,7 +4740,7 @@ export declare class ModelService {
|
|
|
4616
4740
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
4617
4741
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
4618
4742
|
$ignore(path: string): void;
|
|
4619
|
-
$isDefault(path
|
|
4743
|
+
$isDefault(path?: string): boolean;
|
|
4620
4744
|
$isDeleted(val?: boolean): boolean;
|
|
4621
4745
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
4622
4746
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -4624,7 +4748,7 @@ export declare class ModelService {
|
|
|
4624
4748
|
$isValid(path: string): boolean;
|
|
4625
4749
|
$locals: Record<string, unknown>;
|
|
4626
4750
|
$markValid(path: string): void;
|
|
4627
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
4751
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4628
4752
|
_id: unknown;
|
|
4629
4753
|
}> & {
|
|
4630
4754
|
__v: number;
|
|
@@ -4643,7 +4767,7 @@ export declare class ModelService {
|
|
|
4643
4767
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
4644
4768
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
4645
4769
|
directModifiedPaths(): Array<string>;
|
|
4646
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
4770
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
4647
4771
|
errors?: import("mongoose").Error.ValidationError;
|
|
4648
4772
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
4649
4773
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -4670,7 +4794,7 @@ export declare class ModelService {
|
|
|
4670
4794
|
isSelected(path: string): boolean;
|
|
4671
4795
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
4672
4796
|
markModified(path: string, scope?: any): void;
|
|
4673
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
4797
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4674
4798
|
_id: unknown;
|
|
4675
4799
|
}> & {
|
|
4676
4800
|
__v: number;
|
|
@@ -4734,7 +4858,11 @@ export declare class ModelService {
|
|
|
4734
4858
|
virtuals: true;
|
|
4735
4859
|
}): any;
|
|
4736
4860
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
4737
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
4861
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
4862
|
+
__v?: infer U;
|
|
4863
|
+
} ? T_1 : T_1 & {
|
|
4864
|
+
__v: number;
|
|
4865
|
+
} : never : never;
|
|
4738
4866
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
4739
4867
|
unmarkModified(path: string): void;
|
|
4740
4868
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -4749,7 +4877,7 @@ export declare class ModelService {
|
|
|
4749
4877
|
}): import("mongoose").Error.ValidationError | null;
|
|
4750
4878
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
4751
4879
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
4752
|
-
}, {}> & {
|
|
4880
|
+
}, {}, {}> & {
|
|
4753
4881
|
title: string;
|
|
4754
4882
|
_hid: string;
|
|
4755
4883
|
draft: boolean;
|
|
@@ -4761,7 +4889,7 @@ export declare class ModelService {
|
|
|
4761
4889
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
4762
4890
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
4763
4891
|
$ignore(path: string): void;
|
|
4764
|
-
$isDefault(path
|
|
4892
|
+
$isDefault(path?: string): boolean;
|
|
4765
4893
|
$isDeleted(val?: boolean): boolean;
|
|
4766
4894
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
4767
4895
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -4769,7 +4897,7 @@ export declare class ModelService {
|
|
|
4769
4897
|
$isValid(path: string): boolean;
|
|
4770
4898
|
$locals: Record<string, unknown>;
|
|
4771
4899
|
$markValid(path: string): void;
|
|
4772
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
4900
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4773
4901
|
_id: unknown;
|
|
4774
4902
|
}> & {
|
|
4775
4903
|
__v: number;
|
|
@@ -4788,7 +4916,7 @@ export declare class ModelService {
|
|
|
4788
4916
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
4789
4917
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
4790
4918
|
directModifiedPaths(): Array<string>;
|
|
4791
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
4919
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
4792
4920
|
errors?: import("mongoose").Error.ValidationError;
|
|
4793
4921
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
4794
4922
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -4815,7 +4943,7 @@ export declare class ModelService {
|
|
|
4815
4943
|
isSelected(path: string): boolean;
|
|
4816
4944
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
4817
4945
|
markModified(path: string, scope?: any): void;
|
|
4818
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
4946
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4819
4947
|
_id: unknown;
|
|
4820
4948
|
}> & {
|
|
4821
4949
|
__v: number;
|
|
@@ -4879,7 +5007,11 @@ export declare class ModelService {
|
|
|
4879
5007
|
virtuals: true;
|
|
4880
5008
|
}): any;
|
|
4881
5009
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
4882
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
5010
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
5011
|
+
__v?: infer U;
|
|
5012
|
+
} ? T_1 : T_1 & {
|
|
5013
|
+
__v: number;
|
|
5014
|
+
} : never : never;
|
|
4883
5015
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
4884
5016
|
unmarkModified(path: string): void;
|
|
4885
5017
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -4911,7 +5043,7 @@ export declare class ModelService {
|
|
|
4911
5043
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
4912
5044
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
4913
5045
|
$ignore(path: string): void;
|
|
4914
|
-
$isDefault(path
|
|
5046
|
+
$isDefault(path?: string): boolean;
|
|
4915
5047
|
$isDeleted(val?: boolean): boolean;
|
|
4916
5048
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
4917
5049
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -4919,7 +5051,7 @@ export declare class ModelService {
|
|
|
4919
5051
|
$isValid(path: string): boolean;
|
|
4920
5052
|
$locals: Record<string, unknown>;
|
|
4921
5053
|
$markValid(path: string): void;
|
|
4922
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
5054
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4923
5055
|
_id: unknown;
|
|
4924
5056
|
}> & {
|
|
4925
5057
|
__v: number;
|
|
@@ -4938,7 +5070,7 @@ export declare class ModelService {
|
|
|
4938
5070
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
4939
5071
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
4940
5072
|
directModifiedPaths(): Array<string>;
|
|
4941
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
5073
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
4942
5074
|
errors?: import("mongoose").Error.ValidationError;
|
|
4943
5075
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
4944
5076
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -4965,7 +5097,7 @@ export declare class ModelService {
|
|
|
4965
5097
|
isSelected(path: string): boolean;
|
|
4966
5098
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
4967
5099
|
markModified(path: string, scope?: any): void;
|
|
4968
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
5100
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
4969
5101
|
_id: unknown;
|
|
4970
5102
|
}> & {
|
|
4971
5103
|
__v: number;
|
|
@@ -5029,7 +5161,11 @@ export declare class ModelService {
|
|
|
5029
5161
|
virtuals: true;
|
|
5030
5162
|
}): any;
|
|
5031
5163
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
5032
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
5164
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
5165
|
+
__v?: infer U;
|
|
5166
|
+
} ? T_1 : T_1 & {
|
|
5167
|
+
__v: number;
|
|
5168
|
+
} : never : never;
|
|
5033
5169
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
5034
5170
|
unmarkModified(path: string): void;
|
|
5035
5171
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -5055,7 +5191,7 @@ export declare class ModelService {
|
|
|
5055
5191
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
5056
5192
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
5057
5193
|
$ignore(path: string): void;
|
|
5058
|
-
$isDefault(path
|
|
5194
|
+
$isDefault(path?: string): boolean;
|
|
5059
5195
|
$isDeleted(val?: boolean): boolean;
|
|
5060
5196
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
5061
5197
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -5063,7 +5199,7 @@ export declare class ModelService {
|
|
|
5063
5199
|
$isValid(path: string): boolean;
|
|
5064
5200
|
$locals: Record<string, unknown>;
|
|
5065
5201
|
$markValid(path: string): void;
|
|
5066
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
5202
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5067
5203
|
_id: unknown;
|
|
5068
5204
|
}> & {
|
|
5069
5205
|
__v: number;
|
|
@@ -5082,7 +5218,7 @@ export declare class ModelService {
|
|
|
5082
5218
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
5083
5219
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
5084
5220
|
directModifiedPaths(): Array<string>;
|
|
5085
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
5221
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
5086
5222
|
errors?: import("mongoose").Error.ValidationError;
|
|
5087
5223
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
5088
5224
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -5109,7 +5245,7 @@ export declare class ModelService {
|
|
|
5109
5245
|
isSelected(path: string): boolean;
|
|
5110
5246
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
5111
5247
|
markModified(path: string, scope?: any): void;
|
|
5112
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
5248
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5113
5249
|
_id: unknown;
|
|
5114
5250
|
}> & {
|
|
5115
5251
|
__v: number;
|
|
@@ -5173,7 +5309,11 @@ export declare class ModelService {
|
|
|
5173
5309
|
virtuals: true;
|
|
5174
5310
|
}): any;
|
|
5175
5311
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
5176
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
5312
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
5313
|
+
__v?: infer U;
|
|
5314
|
+
} ? T_1 : T_1 & {
|
|
5315
|
+
__v: number;
|
|
5316
|
+
} : never : never;
|
|
5177
5317
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
5178
5318
|
unmarkModified(path: string): void;
|
|
5179
5319
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -5188,7 +5328,7 @@ export declare class ModelService {
|
|
|
5188
5328
|
}): import("mongoose").Error.ValidationError | null;
|
|
5189
5329
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
5190
5330
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
5191
|
-
}, {}> & {
|
|
5331
|
+
}, {}, {}> & {
|
|
5192
5332
|
name: string;
|
|
5193
5333
|
draft: boolean;
|
|
5194
5334
|
_hid: string;
|
|
@@ -5199,7 +5339,7 @@ export declare class ModelService {
|
|
|
5199
5339
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
5200
5340
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
5201
5341
|
$ignore(path: string): void;
|
|
5202
|
-
$isDefault(path
|
|
5342
|
+
$isDefault(path?: string): boolean;
|
|
5203
5343
|
$isDeleted(val?: boolean): boolean;
|
|
5204
5344
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
5205
5345
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -5207,7 +5347,7 @@ export declare class ModelService {
|
|
|
5207
5347
|
$isValid(path: string): boolean;
|
|
5208
5348
|
$locals: Record<string, unknown>;
|
|
5209
5349
|
$markValid(path: string): void;
|
|
5210
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
5350
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5211
5351
|
_id: unknown;
|
|
5212
5352
|
}> & {
|
|
5213
5353
|
__v: number;
|
|
@@ -5226,7 +5366,7 @@ export declare class ModelService {
|
|
|
5226
5366
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
5227
5367
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
5228
5368
|
directModifiedPaths(): Array<string>;
|
|
5229
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
5369
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
5230
5370
|
errors?: import("mongoose").Error.ValidationError;
|
|
5231
5371
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
5232
5372
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -5253,7 +5393,7 @@ export declare class ModelService {
|
|
|
5253
5393
|
isSelected(path: string): boolean;
|
|
5254
5394
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
5255
5395
|
markModified(path: string, scope?: any): void;
|
|
5256
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
5396
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5257
5397
|
_id: unknown;
|
|
5258
5398
|
}> & {
|
|
5259
5399
|
__v: number;
|
|
@@ -5317,7 +5457,11 @@ export declare class ModelService {
|
|
|
5317
5457
|
virtuals: true;
|
|
5318
5458
|
}): any;
|
|
5319
5459
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
5320
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
5460
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
5461
|
+
__v?: infer U;
|
|
5462
|
+
} ? T_1 : T_1 & {
|
|
5463
|
+
__v: number;
|
|
5464
|
+
} : never : never;
|
|
5321
5465
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
5322
5466
|
unmarkModified(path: string): void;
|
|
5323
5467
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -5350,7 +5494,7 @@ export declare class ModelService {
|
|
|
5350
5494
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
5351
5495
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
5352
5496
|
$ignore(path: string): void;
|
|
5353
|
-
$isDefault(path
|
|
5497
|
+
$isDefault(path?: string): boolean;
|
|
5354
5498
|
$isDeleted(val?: boolean): boolean;
|
|
5355
5499
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
5356
5500
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -5358,7 +5502,7 @@ export declare class ModelService {
|
|
|
5358
5502
|
$isValid(path: string): boolean;
|
|
5359
5503
|
$locals: Record<string, unknown>;
|
|
5360
5504
|
$markValid(path: string): void;
|
|
5361
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
5505
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5362
5506
|
_id: unknown;
|
|
5363
5507
|
}> & {
|
|
5364
5508
|
__v: number;
|
|
@@ -5377,7 +5521,7 @@ export declare class ModelService {
|
|
|
5377
5521
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
5378
5522
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
5379
5523
|
directModifiedPaths(): Array<string>;
|
|
5380
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
5524
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
5381
5525
|
errors?: import("mongoose").Error.ValidationError;
|
|
5382
5526
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
5383
5527
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -5404,7 +5548,7 @@ export declare class ModelService {
|
|
|
5404
5548
|
isSelected(path: string): boolean;
|
|
5405
5549
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
5406
5550
|
markModified(path: string, scope?: any): void;
|
|
5407
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
5551
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5408
5552
|
_id: unknown;
|
|
5409
5553
|
}> & {
|
|
5410
5554
|
__v: number;
|
|
@@ -5468,7 +5612,11 @@ export declare class ModelService {
|
|
|
5468
5612
|
virtuals: true;
|
|
5469
5613
|
}): any;
|
|
5470
5614
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
5471
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
5615
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
5616
|
+
__v?: infer U;
|
|
5617
|
+
} ? T_1 : T_1 & {
|
|
5618
|
+
__v: number;
|
|
5619
|
+
} : never : never;
|
|
5472
5620
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
5473
5621
|
unmarkModified(path: string): void;
|
|
5474
5622
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -5495,7 +5643,7 @@ export declare class ModelService {
|
|
|
5495
5643
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
5496
5644
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
5497
5645
|
$ignore(path: string): void;
|
|
5498
|
-
$isDefault(path
|
|
5646
|
+
$isDefault(path?: string): boolean;
|
|
5499
5647
|
$isDeleted(val?: boolean): boolean;
|
|
5500
5648
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
5501
5649
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -5503,7 +5651,7 @@ export declare class ModelService {
|
|
|
5503
5651
|
$isValid(path: string): boolean;
|
|
5504
5652
|
$locals: Record<string, unknown>;
|
|
5505
5653
|
$markValid(path: string): void;
|
|
5506
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
5654
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5507
5655
|
_id: unknown;
|
|
5508
5656
|
}> & {
|
|
5509
5657
|
__v: number;
|
|
@@ -5522,7 +5670,7 @@ export declare class ModelService {
|
|
|
5522
5670
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
5523
5671
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
5524
5672
|
directModifiedPaths(): Array<string>;
|
|
5525
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
5673
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
5526
5674
|
errors?: import("mongoose").Error.ValidationError;
|
|
5527
5675
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
5528
5676
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -5549,7 +5697,7 @@ export declare class ModelService {
|
|
|
5549
5697
|
isSelected(path: string): boolean;
|
|
5550
5698
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
5551
5699
|
markModified(path: string, scope?: any): void;
|
|
5552
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
5700
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5553
5701
|
_id: unknown;
|
|
5554
5702
|
}> & {
|
|
5555
5703
|
__v: number;
|
|
@@ -5613,7 +5761,11 @@ export declare class ModelService {
|
|
|
5613
5761
|
virtuals: true;
|
|
5614
5762
|
}): any;
|
|
5615
5763
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
5616
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
5764
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
5765
|
+
__v?: infer U;
|
|
5766
|
+
} ? T_1 : T_1 & {
|
|
5767
|
+
__v: number;
|
|
5768
|
+
} : never : never;
|
|
5617
5769
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
5618
5770
|
unmarkModified(path: string): void;
|
|
5619
5771
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -5628,7 +5780,7 @@ export declare class ModelService {
|
|
|
5628
5780
|
}): import("mongoose").Error.ValidationError | null;
|
|
5629
5781
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
5630
5782
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
5631
|
-
}, {}> & {
|
|
5783
|
+
}, {}, {}> & {
|
|
5632
5784
|
title: string;
|
|
5633
5785
|
_hid: string;
|
|
5634
5786
|
draft: boolean;
|
|
@@ -5640,7 +5792,7 @@ export declare class ModelService {
|
|
|
5640
5792
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
5641
5793
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
5642
5794
|
$ignore(path: string): void;
|
|
5643
|
-
$isDefault(path
|
|
5795
|
+
$isDefault(path?: string): boolean;
|
|
5644
5796
|
$isDeleted(val?: boolean): boolean;
|
|
5645
5797
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
5646
5798
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -5648,7 +5800,7 @@ export declare class ModelService {
|
|
|
5648
5800
|
$isValid(path: string): boolean;
|
|
5649
5801
|
$locals: Record<string, unknown>;
|
|
5650
5802
|
$markValid(path: string): void;
|
|
5651
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
5803
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5652
5804
|
_id: unknown;
|
|
5653
5805
|
}> & {
|
|
5654
5806
|
__v: number;
|
|
@@ -5667,7 +5819,7 @@ export declare class ModelService {
|
|
|
5667
5819
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
5668
5820
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
5669
5821
|
directModifiedPaths(): Array<string>;
|
|
5670
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
5822
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
5671
5823
|
errors?: import("mongoose").Error.ValidationError;
|
|
5672
5824
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
5673
5825
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -5694,7 +5846,7 @@ export declare class ModelService {
|
|
|
5694
5846
|
isSelected(path: string): boolean;
|
|
5695
5847
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
5696
5848
|
markModified(path: string, scope?: any): void;
|
|
5697
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
5849
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5698
5850
|
_id: unknown;
|
|
5699
5851
|
}> & {
|
|
5700
5852
|
__v: number;
|
|
@@ -5758,7 +5910,11 @@ export declare class ModelService {
|
|
|
5758
5910
|
virtuals: true;
|
|
5759
5911
|
}): any;
|
|
5760
5912
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
5761
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
5913
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
5914
|
+
__v?: infer U;
|
|
5915
|
+
} ? T_1 : T_1 & {
|
|
5916
|
+
__v: number;
|
|
5917
|
+
} : never : never;
|
|
5762
5918
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
5763
5919
|
unmarkModified(path: string): void;
|
|
5764
5920
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -5792,7 +5948,7 @@ export declare class ModelService {
|
|
|
5792
5948
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
5793
5949
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
5794
5950
|
$ignore(path: string): void;
|
|
5795
|
-
$isDefault(path
|
|
5951
|
+
$isDefault(path?: string): boolean;
|
|
5796
5952
|
$isDeleted(val?: boolean): boolean;
|
|
5797
5953
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
5798
5954
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -5800,7 +5956,7 @@ export declare class ModelService {
|
|
|
5800
5956
|
$isValid(path: string): boolean;
|
|
5801
5957
|
$locals: Record<string, unknown>;
|
|
5802
5958
|
$markValid(path: string): void;
|
|
5803
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
5959
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5804
5960
|
_id: unknown;
|
|
5805
5961
|
}> & {
|
|
5806
5962
|
__v: number;
|
|
@@ -5819,7 +5975,7 @@ export declare class ModelService {
|
|
|
5819
5975
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
5820
5976
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
5821
5977
|
directModifiedPaths(): Array<string>;
|
|
5822
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
5978
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
5823
5979
|
errors?: import("mongoose").Error.ValidationError;
|
|
5824
5980
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
5825
5981
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -5846,7 +6002,7 @@ export declare class ModelService {
|
|
|
5846
6002
|
isSelected(path: string): boolean;
|
|
5847
6003
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
5848
6004
|
markModified(path: string, scope?: any): void;
|
|
5849
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
6005
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5850
6006
|
_id: unknown;
|
|
5851
6007
|
}> & {
|
|
5852
6008
|
__v: number;
|
|
@@ -5910,7 +6066,11 @@ export declare class ModelService {
|
|
|
5910
6066
|
virtuals: true;
|
|
5911
6067
|
}): any;
|
|
5912
6068
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
5913
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
6069
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
6070
|
+
__v?: infer U;
|
|
6071
|
+
} ? T_1 : T_1 & {
|
|
6072
|
+
__v: number;
|
|
6073
|
+
} : never : never;
|
|
5914
6074
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
5915
6075
|
unmarkModified(path: string): void;
|
|
5916
6076
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -5938,7 +6098,7 @@ export declare class ModelService {
|
|
|
5938
6098
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
5939
6099
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
5940
6100
|
$ignore(path: string): void;
|
|
5941
|
-
$isDefault(path
|
|
6101
|
+
$isDefault(path?: string): boolean;
|
|
5942
6102
|
$isDeleted(val?: boolean): boolean;
|
|
5943
6103
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
5944
6104
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -5946,7 +6106,7 @@ export declare class ModelService {
|
|
|
5946
6106
|
$isValid(path: string): boolean;
|
|
5947
6107
|
$locals: Record<string, unknown>;
|
|
5948
6108
|
$markValid(path: string): void;
|
|
5949
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
6109
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5950
6110
|
_id: unknown;
|
|
5951
6111
|
}> & {
|
|
5952
6112
|
__v: number;
|
|
@@ -5965,7 +6125,7 @@ export declare class ModelService {
|
|
|
5965
6125
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
5966
6126
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
5967
6127
|
directModifiedPaths(): Array<string>;
|
|
5968
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
6128
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
5969
6129
|
errors?: import("mongoose").Error.ValidationError;
|
|
5970
6130
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
5971
6131
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -5992,7 +6152,7 @@ export declare class ModelService {
|
|
|
5992
6152
|
isSelected(path: string): boolean;
|
|
5993
6153
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
5994
6154
|
markModified(path: string, scope?: any): void;
|
|
5995
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
6155
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
5996
6156
|
_id: unknown;
|
|
5997
6157
|
}> & {
|
|
5998
6158
|
__v: number;
|
|
@@ -6056,7 +6216,11 @@ export declare class ModelService {
|
|
|
6056
6216
|
virtuals: true;
|
|
6057
6217
|
}): any;
|
|
6058
6218
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
6059
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
6219
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
6220
|
+
__v?: infer U;
|
|
6221
|
+
} ? T_1 : T_1 & {
|
|
6222
|
+
__v: number;
|
|
6223
|
+
} : never : never;
|
|
6060
6224
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
6061
6225
|
unmarkModified(path: string): void;
|
|
6062
6226
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|
|
@@ -6071,7 +6235,7 @@ export declare class ModelService {
|
|
|
6071
6235
|
}): import("mongoose").Error.ValidationError | null;
|
|
6072
6236
|
validateSync<T extends string | number | symbol>(pathsToValidate?: T | T[], options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
6073
6237
|
validateSync(pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
|
|
6074
|
-
}, {}> & {
|
|
6238
|
+
}, {}, {}> & {
|
|
6075
6239
|
timestamp: number;
|
|
6076
6240
|
_year: number;
|
|
6077
6241
|
_month: number;
|
|
@@ -6084,7 +6248,7 @@ export declare class ModelService {
|
|
|
6084
6248
|
$createModifiedPathsSnapshot(): import("mongoose").ModifiedPathsSnapshot;
|
|
6085
6249
|
$getAllSubdocs(): import("mongoose").Document[];
|
|
6086
6250
|
$ignore(path: string): void;
|
|
6087
|
-
$isDefault(path
|
|
6251
|
+
$isDefault(path?: string): boolean;
|
|
6088
6252
|
$isDeleted(val?: boolean): boolean;
|
|
6089
6253
|
$getPopulatedDocs(): import("mongoose").Document[];
|
|
6090
6254
|
$inc(path: string | string[], val?: number): /*elided*/ any;
|
|
@@ -6092,7 +6256,7 @@ export declare class ModelService {
|
|
|
6092
6256
|
$isValid(path: string): boolean;
|
|
6093
6257
|
$locals: Record<string, unknown>;
|
|
6094
6258
|
$markValid(path: string): void;
|
|
6095
|
-
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
6259
|
+
$model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
6096
6260
|
_id: unknown;
|
|
6097
6261
|
}> & {
|
|
6098
6262
|
__v: number;
|
|
@@ -6111,7 +6275,7 @@ export declare class ModelService {
|
|
|
6111
6275
|
deleteOne(options?: import("mongoose").QueryOptions): any;
|
|
6112
6276
|
depopulate<Paths = {}>(path?: string | string[]): import("mongoose").MergeType</*elided*/ any, Paths>;
|
|
6113
6277
|
directModifiedPaths(): Array<string>;
|
|
6114
|
-
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any
|
|
6278
|
+
equals(doc: import("mongoose").Document<unknown, any, any, Record<string, any>, {}>): boolean;
|
|
6115
6279
|
errors?: import("mongoose").Error.ValidationError;
|
|
6116
6280
|
get<T extends string | number | symbol>(path: T, type?: any, options?: any): any;
|
|
6117
6281
|
get(path: string, type?: any, options?: any): any;
|
|
@@ -6138,7 +6302,7 @@ export declare class ModelService {
|
|
|
6138
6302
|
isSelected(path: string): boolean;
|
|
6139
6303
|
markModified<T extends string | number | symbol>(path: T, scope?: any): void;
|
|
6140
6304
|
markModified(path: string, scope?: any): void;
|
|
6141
|
-
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & Required<{
|
|
6305
|
+
model<ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}, {}> & Required<{
|
|
6142
6306
|
_id: unknown;
|
|
6143
6307
|
}> & {
|
|
6144
6308
|
__v: number;
|
|
@@ -6202,7 +6366,11 @@ export declare class ModelService {
|
|
|
6202
6366
|
virtuals: true;
|
|
6203
6367
|
}): any;
|
|
6204
6368
|
toObject(options?: import("mongoose").ToObjectOptions): any;
|
|
6205
|
-
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").
|
|
6369
|
+
toObject<T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Require_id<T> extends infer T_1 ? T_1 extends import("mongoose").Require_id<T> ? T_1 extends {
|
|
6370
|
+
__v?: infer U;
|
|
6371
|
+
} ? T_1 : T_1 & {
|
|
6372
|
+
__v: number;
|
|
6373
|
+
} : never : never;
|
|
6206
6374
|
unmarkModified<T extends string | number | symbol>(path: T): void;
|
|
6207
6375
|
unmarkModified(path: string): void;
|
|
6208
6376
|
updateOne(update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery</*elided*/ any>, options?: import("mongoose").QueryOptions | null): import("mongoose").Query<any, /*elided*/ any, {}, unknown, "find", Record<string, never>>;
|