@cyberskill/shared 2.19.1 → 2.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/config/storybook/index.cjs +1 -0
  2. package/dist/config/storybook/index.d.ts +2 -0
  3. package/dist/config/storybook/index.js +6 -0
  4. package/dist/config/storybook/storybook.main.cjs +1 -0
  5. package/dist/config/storybook/storybook.main.d.ts +17 -0
  6. package/dist/config/storybook/storybook.main.js +18 -0
  7. package/dist/config/storybook/storybook.preview.cjs +1 -0
  8. package/dist/config/storybook/storybook.preview.d.ts +18 -0
  9. package/dist/config/storybook/storybook.preview.js +39 -0
  10. package/dist/config/vitest/vitest.e2e.cjs +1 -1
  11. package/dist/config/vitest/vitest.e2e.js +1 -1
  12. package/dist/config/vitest/vitest.unit.cjs +1 -1
  13. package/dist/config/vitest/vitest.unit.js +1 -1
  14. package/dist/node/cli/index.cjs +2 -2
  15. package/dist/node/cli/index.js +51 -41
  16. package/dist/node/express/express.util.cjs +1 -1
  17. package/dist/node/express/express.util.js +21 -21
  18. package/dist/node/mongo/mongo.type.d.ts +2 -2
  19. package/dist/node/mongo/mongo.util.cjs +1 -1
  20. package/dist/node/mongo/mongo.util.d.ts +1022 -128
  21. package/dist/node/mongo/mongo.util.js +1 -1
  22. package/dist/node/path/index.cjs +1 -1
  23. package/dist/node/path/index.js +27 -25
  24. package/dist/node/path/path.constant.cjs +1 -1
  25. package/dist/node/path/path.constant.d.ts +6 -0
  26. package/dist/node/path/path.constant.js +152 -128
  27. package/dist/node/storage/index.cjs +1 -1
  28. package/dist/node/storage/index.d.ts +2 -0
  29. package/dist/node/storage/index.js +7 -2
  30. package/dist/node/storage/storage.constant.cjs +1 -0
  31. package/dist/node/storage/storage.constant.d.ts +4 -0
  32. package/dist/node/storage/storage.constant.js +7 -0
  33. package/dist/node/storage/storage.type.d.ts +14 -0
  34. package/dist/node/storage/storage.util.cjs +1 -1
  35. package/dist/node/storage/storage.util.d.ts +1 -1
  36. package/dist/node/storage/storage.util.js +160 -50
  37. package/package.json +27 -22
  38. /package/dist/node_modules/.pnpm/{vitest@4.0.9_@types_debug@4.1.12_@types_node@24.10.1_jiti@2.6.1_jsdom@27.2.0_sass@1.94.0_tsx@4.20.6_yaml@2.8.1 → vitest@4.0.13_@types_debug@4.1.12_@types_node@24.10.1_jiti@2.6.1_jsdom@27.2.0_sass@1.94.2_tsx@4.20.6_yaml@2.8.1}/node_modules/vitest/dist/config.cjs +0 -0
  39. /package/dist/node_modules/.pnpm/{vitest@4.0.9_@types_debug@4.1.12_@types_node@24.10.1_jiti@2.6.1_jsdom@27.2.0_sass@1.94.0_tsx@4.20.6_yaml@2.8.1 → vitest@4.0.13_@types_debug@4.1.12_@types_node@24.10.1_jiti@2.6.1_jsdom@27.2.0_sass@1.94.2_tsx@4.20.6_yaml@2.8.1}/node_modules/vitest/dist/config.js +0 -0
@@ -41,15 +41,847 @@ export declare const mongo: {
41
41
  * @param mongoose - The Mongoose instance to create the schema with.
42
42
  * @returns A Mongoose schema with generic document fields.
43
43
  */
44
- createGenericSchema(mongoose: typeof mongooseRaw): mongooseRaw.Schema<I_GenericDocument, mongooseRaw.Model<I_GenericDocument, any, any, any, mongooseRaw.Document<unknown, any, I_GenericDocument, any, {}> & I_GenericDocument & Required<{
45
- _id: unknown;
44
+ createGenericSchema(mongoose: typeof mongooseRaw): mongooseRaw.Schema<I_GenericDocument, mongooseRaw.Model<I_GenericDocument, any, any, any, mongooseRaw.Document<unknown, any, I_GenericDocument, any, mongooseRaw.DefaultSchemaOptions> & I_GenericDocument & Required<{
45
+ _id: mongooseRaw.Types.ObjectId;
46
46
  }> & {
47
47
  __v: number;
48
- }, any>, {}, {}, {}, {}, mongooseRaw.DefaultSchemaOptions, I_GenericDocument, mongooseRaw.Document<unknown, {}, mongooseRaw.FlatRecord<I_GenericDocument>, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & mongooseRaw.FlatRecord<I_GenericDocument> & Required<{
49
- _id: unknown;
48
+ }, any, I_GenericDocument>, {}, {}, {}, {}, mongooseRaw.DefaultSchemaOptions, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
49
+ _id: mongooseRaw.Types.ObjectId;
50
50
  }> & {
51
51
  __v: number;
52
- }>;
52
+ }, {
53
+ id?: mongooseRaw.SchemaDefinitionProperty<string, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
54
+ _id: mongooseRaw.Types.ObjectId;
55
+ }> & {
56
+ __v: number;
57
+ }> | undefined;
58
+ isDel?: mongooseRaw.SchemaDefinitionProperty<boolean, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
59
+ _id: mongooseRaw.Types.ObjectId;
60
+ }> & {
61
+ __v: number;
62
+ }> | undefined;
63
+ createdAt?: mongooseRaw.SchemaDefinitionProperty<string | Date, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
64
+ _id: mongooseRaw.Types.ObjectId;
65
+ }> & {
66
+ __v: number;
67
+ }> | undefined;
68
+ updatedAt?: mongooseRaw.SchemaDefinitionProperty<string | Date, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
69
+ _id: mongooseRaw.Types.ObjectId;
70
+ }> & {
71
+ __v: number;
72
+ }> | undefined;
73
+ _id?: mongooseRaw.SchemaDefinitionProperty<mongooseRaw.Types.ObjectId | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
74
+ _id: mongooseRaw.Types.ObjectId;
75
+ }> & {
76
+ __v: number;
77
+ }> | undefined;
78
+ $assertPopulated?: mongooseRaw.SchemaDefinitionProperty<(<Paths = {}>(path: string | string[], values?: Partial<Paths> | undefined) => Omit<C_Document, keyof Paths> & Paths) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
79
+ _id: mongooseRaw.Types.ObjectId;
80
+ }> & {
81
+ __v: number;
82
+ }> | undefined;
83
+ $clearModifiedPaths?: mongooseRaw.SchemaDefinitionProperty<(() => C_Document) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
84
+ _id: mongooseRaw.Types.ObjectId;
85
+ }> & {
86
+ __v: number;
87
+ }> | undefined;
88
+ $clone?: mongooseRaw.SchemaDefinitionProperty<(() => C_Document) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
89
+ _id: mongooseRaw.Types.ObjectId;
90
+ }> & {
91
+ __v: number;
92
+ }> | undefined;
93
+ $createModifiedPathsSnapshot?: mongooseRaw.SchemaDefinitionProperty<(() => mongooseRaw.ModifiedPathsSnapshot) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
94
+ _id: mongooseRaw.Types.ObjectId;
95
+ }> & {
96
+ __v: number;
97
+ }> | undefined;
98
+ $getAllSubdocs?: mongooseRaw.SchemaDefinitionProperty<(() => mongooseRaw.Document[]) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
99
+ _id: mongooseRaw.Types.ObjectId;
100
+ }> & {
101
+ __v: number;
102
+ }> | undefined;
103
+ $ignore?: mongooseRaw.SchemaDefinitionProperty<((path: string) => void) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
104
+ _id: mongooseRaw.Types.ObjectId;
105
+ }> & {
106
+ __v: number;
107
+ }> | undefined;
108
+ $isDefault?: mongooseRaw.SchemaDefinitionProperty<((path?: string) => boolean) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
109
+ _id: mongooseRaw.Types.ObjectId;
110
+ }> & {
111
+ __v: number;
112
+ }> | undefined;
113
+ $isDeleted?: mongooseRaw.SchemaDefinitionProperty<((val?: boolean) => boolean) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
114
+ _id: mongooseRaw.Types.ObjectId;
115
+ }> & {
116
+ __v: number;
117
+ }> | undefined;
118
+ $getPopulatedDocs?: mongooseRaw.SchemaDefinitionProperty<(() => mongooseRaw.Document[]) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
119
+ _id: mongooseRaw.Types.ObjectId;
120
+ }> & {
121
+ __v: number;
122
+ }> | undefined;
123
+ $inc?: mongooseRaw.SchemaDefinitionProperty<((path: string | string[], val?: number) => C_Document) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
124
+ _id: mongooseRaw.Types.ObjectId;
125
+ }> & {
126
+ __v: number;
127
+ }> | undefined;
128
+ $isEmpty?: mongooseRaw.SchemaDefinitionProperty<((path: string) => boolean) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
129
+ _id: mongooseRaw.Types.ObjectId;
130
+ }> & {
131
+ __v: number;
132
+ }> | undefined;
133
+ $isValid?: mongooseRaw.SchemaDefinitionProperty<((path: string) => boolean) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
134
+ _id: mongooseRaw.Types.ObjectId;
135
+ }> & {
136
+ __v: number;
137
+ }> | undefined;
138
+ $locals?: mongooseRaw.SchemaDefinitionProperty<Record<string, unknown> | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
139
+ _id: mongooseRaw.Types.ObjectId;
140
+ }> & {
141
+ __v: number;
142
+ }> | undefined;
143
+ $markValid?: mongooseRaw.SchemaDefinitionProperty<((path: string) => void) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
144
+ _id: mongooseRaw.Types.ObjectId;
145
+ }> & {
146
+ __v: number;
147
+ }> | undefined;
148
+ $model?: mongooseRaw.SchemaDefinitionProperty<{
149
+ <ModelType = mongooseRaw.Model<unknown, {}, {}, {}, mongooseRaw.Document<unknown, {}, unknown, {}, mongooseRaw.DefaultSchemaOptions> & {
150
+ _id: mongooseRaw.Types.ObjectId;
151
+ } & {
152
+ __v: number;
153
+ }, any, unknown>>(name: string): ModelType;
154
+ <ModelType = mongooseRaw.Model<any, {}, {}, {}, any, any, any>>(): ModelType;
155
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
156
+ _id: mongooseRaw.Types.ObjectId;
157
+ }> & {
158
+ __v: number;
159
+ }> | undefined;
160
+ $op?: mongooseRaw.SchemaDefinitionProperty<"remove" | "save" | "validate" | null | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
161
+ _id: mongooseRaw.Types.ObjectId;
162
+ }> & {
163
+ __v: number;
164
+ }> | undefined;
165
+ $restoreModifiedPathsSnapshot?: mongooseRaw.SchemaDefinitionProperty<((snapshot: mongooseRaw.ModifiedPathsSnapshot) => C_Document) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
166
+ _id: mongooseRaw.Types.ObjectId;
167
+ }> & {
168
+ __v: number;
169
+ }> | undefined;
170
+ $session?: mongooseRaw.SchemaDefinitionProperty<((session?: mongooseRaw.ClientSession | null) => mongooseRaw.ClientSession | null) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
171
+ _id: mongooseRaw.Types.ObjectId;
172
+ }> & {
173
+ __v: number;
174
+ }> | undefined;
175
+ $set?: mongooseRaw.SchemaDefinitionProperty<{
176
+ (path: string | Record<string, any>, val: any, type: any, options?: mongooseRaw.DocumentSetOptions): C_Document;
177
+ (path: string | Record<string, any>, val: any, options?: mongooseRaw.DocumentSetOptions): C_Document;
178
+ (value: string | Record<string, any>): C_Document;
179
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
180
+ _id: mongooseRaw.Types.ObjectId;
181
+ }> & {
182
+ __v: number;
183
+ }> | undefined;
184
+ $where?: mongooseRaw.SchemaDefinitionProperty<Record<string, unknown> | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
185
+ _id: mongooseRaw.Types.ObjectId;
186
+ }> & {
187
+ __v: number;
188
+ }> | undefined;
189
+ baseModelName?: mongooseRaw.SchemaDefinitionProperty<string | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
190
+ _id: mongooseRaw.Types.ObjectId;
191
+ }> & {
192
+ __v: number;
193
+ }> | undefined;
194
+ collection?: mongooseRaw.SchemaDefinitionProperty<mongooseRaw.Collection<mongooseRaw.mongo.BSON.Document> | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
195
+ _id: mongooseRaw.Types.ObjectId;
196
+ }> & {
197
+ __v: number;
198
+ }> | undefined;
199
+ db?: mongooseRaw.SchemaDefinitionProperty<mongooseRaw.Connection | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
200
+ _id: mongooseRaw.Types.ObjectId;
201
+ }> & {
202
+ __v: number;
203
+ }> | undefined;
204
+ deleteOne?: mongooseRaw.SchemaDefinitionProperty<((options?: mongooseRaw.QueryOptions) => any) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
205
+ _id: mongooseRaw.Types.ObjectId;
206
+ }> & {
207
+ __v: number;
208
+ }> | undefined;
209
+ depopulate?: mongooseRaw.SchemaDefinitionProperty<(<Paths = {}>(path?: string | string[]) => mongooseRaw.MergeType<C_Document, Paths>) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
210
+ _id: mongooseRaw.Types.ObjectId;
211
+ }> & {
212
+ __v: number;
213
+ }> | undefined;
214
+ directModifiedPaths?: mongooseRaw.SchemaDefinitionProperty<(() => Array<string>) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
215
+ _id: mongooseRaw.Types.ObjectId;
216
+ }> & {
217
+ __v: number;
218
+ }> | undefined;
219
+ equals?: mongooseRaw.SchemaDefinitionProperty<((doc: mongooseRaw.Document<mongooseRaw.Types.ObjectId, any, any, Record<string, any>, {}>) => boolean) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
220
+ _id: mongooseRaw.Types.ObjectId;
221
+ }> & {
222
+ __v: number;
223
+ }> | undefined;
224
+ errors?: mongooseRaw.SchemaDefinitionProperty<mongooseRaw.Error.ValidationError | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
225
+ _id: mongooseRaw.Types.ObjectId;
226
+ }> & {
227
+ __v: number;
228
+ }> | undefined;
229
+ get?: mongooseRaw.SchemaDefinitionProperty<{
230
+ <T extends string | number | symbol>(path: T, type?: any, options?: any): any;
231
+ (path: string, type?: any, options?: any): any;
232
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
233
+ _id: mongooseRaw.Types.ObjectId;
234
+ }> & {
235
+ __v: number;
236
+ }> | undefined;
237
+ getChanges?: mongooseRaw.SchemaDefinitionProperty<(() => mongooseRaw.UpdateQuery<C_Document>) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
238
+ _id: mongooseRaw.Types.ObjectId;
239
+ }> & {
240
+ __v: number;
241
+ }> | undefined;
242
+ increment?: mongooseRaw.SchemaDefinitionProperty<(() => C_Document) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
243
+ _id: mongooseRaw.Types.ObjectId;
244
+ }> & {
245
+ __v: number;
246
+ }> | undefined;
247
+ init?: mongooseRaw.SchemaDefinitionProperty<((obj: mongooseRaw.AnyObject, opts?: mongooseRaw.AnyObject) => C_Document) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
248
+ _id: mongooseRaw.Types.ObjectId;
249
+ }> & {
250
+ __v: number;
251
+ }> | undefined;
252
+ invalidate?: mongooseRaw.SchemaDefinitionProperty<{
253
+ <T extends string | number | symbol>(path: T, errorMsg: string | NativeError, value?: any, kind?: string): NativeError | null;
254
+ (path: string, errorMsg: string | NativeError, value?: any, kind?: string): NativeError | null;
255
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
256
+ _id: mongooseRaw.Types.ObjectId;
257
+ }> & {
258
+ __v: number;
259
+ }> | undefined;
260
+ isDirectModified?: mongooseRaw.SchemaDefinitionProperty<{
261
+ <T extends string | number | symbol>(path: T | T[]): boolean;
262
+ (path: string | Array<string>): boolean;
263
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
264
+ _id: mongooseRaw.Types.ObjectId;
265
+ }> & {
266
+ __v: number;
267
+ }> | undefined;
268
+ isDirectSelected?: mongooseRaw.SchemaDefinitionProperty<{
269
+ <T extends string | number | symbol>(path: T): boolean;
270
+ (path: string): boolean;
271
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
272
+ _id: mongooseRaw.Types.ObjectId;
273
+ }> & {
274
+ __v: number;
275
+ }> | undefined;
276
+ isInit?: mongooseRaw.SchemaDefinitionProperty<{
277
+ <T extends string | number | symbol>(path: T): boolean;
278
+ (path: string): boolean;
279
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
280
+ _id: mongooseRaw.Types.ObjectId;
281
+ }> & {
282
+ __v: number;
283
+ }> | undefined;
284
+ isModified?: mongooseRaw.SchemaDefinitionProperty<{
285
+ <T extends string | number | symbol>(path?: T | T[] | undefined, options?: {
286
+ ignoreAtomics?: boolean;
287
+ } | null): boolean;
288
+ (path?: string | Array<string>, options?: {
289
+ ignoreAtomics?: boolean;
290
+ } | null): boolean;
291
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
292
+ _id: mongooseRaw.Types.ObjectId;
293
+ }> & {
294
+ __v: number;
295
+ }> | undefined;
296
+ isNew?: mongooseRaw.SchemaDefinitionProperty<boolean | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
297
+ _id: mongooseRaw.Types.ObjectId;
298
+ }> & {
299
+ __v: number;
300
+ }> | undefined;
301
+ isSelected?: mongooseRaw.SchemaDefinitionProperty<{
302
+ <T extends string | number | symbol>(path: T): boolean;
303
+ (path: string): boolean;
304
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
305
+ _id: mongooseRaw.Types.ObjectId;
306
+ }> & {
307
+ __v: number;
308
+ }> | undefined;
309
+ markModified?: mongooseRaw.SchemaDefinitionProperty<{
310
+ <T extends string | number | symbol>(path: T, scope?: any): void;
311
+ (path: string, scope?: any): void;
312
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
313
+ _id: mongooseRaw.Types.ObjectId;
314
+ }> & {
315
+ __v: number;
316
+ }> | undefined;
317
+ model?: mongooseRaw.SchemaDefinitionProperty<{
318
+ <ModelType = mongooseRaw.Model<unknown, {}, {}, {}, mongooseRaw.Document<unknown, {}, unknown, {}, mongooseRaw.DefaultSchemaOptions> & {
319
+ _id: mongooseRaw.Types.ObjectId;
320
+ } & {
321
+ __v: number;
322
+ }, any, unknown>>(name: string): ModelType;
323
+ <ModelType = mongooseRaw.Model<any, {}, {}, {}, any, any, any>>(): ModelType;
324
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
325
+ _id: mongooseRaw.Types.ObjectId;
326
+ }> & {
327
+ __v: number;
328
+ }> | undefined;
329
+ modifiedPaths?: mongooseRaw.SchemaDefinitionProperty<((options?: {
330
+ includeChildren?: boolean;
331
+ }) => Array<string>) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
332
+ _id: mongooseRaw.Types.ObjectId;
333
+ }> & {
334
+ __v: number;
335
+ }> | undefined;
336
+ overwrite?: mongooseRaw.SchemaDefinitionProperty<((obj: mongooseRaw.AnyObject) => C_Document) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
337
+ _id: mongooseRaw.Types.ObjectId;
338
+ }> & {
339
+ __v: number;
340
+ }> | undefined;
341
+ $parent?: mongooseRaw.SchemaDefinitionProperty<(() => mongooseRaw.Document | undefined) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
342
+ _id: mongooseRaw.Types.ObjectId;
343
+ }> & {
344
+ __v: number;
345
+ }> | undefined;
346
+ populate?: mongooseRaw.SchemaDefinitionProperty<{
347
+ <Paths = {}>(path: string | mongooseRaw.PopulateOptions | (string | mongooseRaw.PopulateOptions)[]): Promise<mongooseRaw.MergeType<C_Document, Paths>>;
348
+ <Paths = {}>(path: string, select?: string | mongooseRaw.AnyObject, model?: mongooseRaw.Model<any>, match?: mongooseRaw.AnyObject, options?: mongooseRaw.PopulateOptions): Promise<mongooseRaw.MergeType<C_Document, Paths>>;
349
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
350
+ _id: mongooseRaw.Types.ObjectId;
351
+ }> & {
352
+ __v: number;
353
+ }> | undefined;
354
+ populated?: mongooseRaw.SchemaDefinitionProperty<((path: string) => any) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
355
+ _id: mongooseRaw.Types.ObjectId;
356
+ }> & {
357
+ __v: number;
358
+ }> | undefined;
359
+ replaceOne?: mongooseRaw.SchemaDefinitionProperty<((replacement?: mongooseRaw.AnyObject, options?: mongooseRaw.QueryOptions | null) => mongooseRaw.Query<any, C_Document, {}, unknown, "find", Record<string, never>>) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
360
+ _id: mongooseRaw.Types.ObjectId;
361
+ }> & {
362
+ __v: number;
363
+ }> | undefined;
364
+ save?: mongooseRaw.SchemaDefinitionProperty<((options?: mongooseRaw.SaveOptions) => Promise<C_Document>) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
365
+ _id: mongooseRaw.Types.ObjectId;
366
+ }> & {
367
+ __v: number;
368
+ }> | undefined;
369
+ schema?: mongooseRaw.SchemaDefinitionProperty<mongooseRaw.Schema<any, mongooseRaw.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongooseRaw.DefaultSchemaOptions, {
370
+ [x: number]: unknown;
371
+ [x: symbol]: unknown;
372
+ [x: string]: unknown;
373
+ }, mongooseRaw.Document<unknown, {}, {
374
+ [x: number]: unknown;
375
+ [x: symbol]: unknown;
376
+ [x: string]: unknown;
377
+ }, {
378
+ id: string;
379
+ }, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & Omit<{
380
+ [x: number]: unknown;
381
+ [x: symbol]: unknown;
382
+ [x: string]: unknown;
383
+ } & Required<{
384
+ _id: unknown;
385
+ }> & {
386
+ __v: number;
387
+ }, "id"> & {
388
+ id: string;
389
+ }, {
390
+ [path: string]: mongooseRaw.SchemaDefinitionProperty<undefined, any, any>;
391
+ } | {
392
+ [x: string]: mongooseRaw.SchemaDefinitionProperty<any, any, mongooseRaw.Document<unknown, {}, {
393
+ [x: number]: unknown;
394
+ [x: symbol]: unknown;
395
+ [x: string]: unknown;
396
+ }, {
397
+ id: string;
398
+ }, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & Omit<{
399
+ [x: number]: unknown;
400
+ [x: symbol]: unknown;
401
+ [x: string]: unknown;
402
+ } & Required<{
403
+ _id: unknown;
404
+ }> & {
405
+ __v: number;
406
+ }, "id"> & {
407
+ id: string;
408
+ }> | undefined;
409
+ }, {} & Required<{
410
+ _id: unknown;
411
+ }> & {
412
+ __v: number;
413
+ }> | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
414
+ _id: mongooseRaw.Types.ObjectId;
415
+ }> & {
416
+ __v: number;
417
+ }> | undefined;
418
+ set?: mongooseRaw.SchemaDefinitionProperty<{
419
+ <T extends string | number | symbol>(path: T, val: any, type: any, options?: mongooseRaw.DocumentSetOptions): C_Document;
420
+ (path: string | Record<string, any>, val: any, type: any, options?: mongooseRaw.DocumentSetOptions): C_Document;
421
+ (path: string | Record<string, any>, val: any, options?: mongooseRaw.DocumentSetOptions): C_Document;
422
+ (value: string | Record<string, any>): C_Document;
423
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
424
+ _id: mongooseRaw.Types.ObjectId;
425
+ }> & {
426
+ __v: number;
427
+ }> | undefined;
428
+ toJSON?: mongooseRaw.SchemaDefinitionProperty<{
429
+ (options: mongooseRaw.ToObjectOptions & {
430
+ flattenMaps: false;
431
+ flattenObjectIds: true;
432
+ virtuals: true;
433
+ versionKey: false;
434
+ }): {
435
+ [x: string]: any;
436
+ [x: number]: any;
437
+ [x: symbol]: any;
438
+ };
439
+ (options: mongooseRaw.ToObjectOptions & {
440
+ flattenMaps: false;
441
+ flattenObjectIds: true;
442
+ virtuals: true;
443
+ }): any;
444
+ (options: mongooseRaw.ToObjectOptions & {
445
+ flattenMaps: false;
446
+ flattenObjectIds: false;
447
+ virtuals: true;
448
+ versionKey: false;
449
+ }): Omit<any, "__v">;
450
+ (options: mongooseRaw.ToObjectOptions & {
451
+ flattenMaps: false;
452
+ flattenObjectIds: false;
453
+ virtuals: true;
454
+ }): any;
455
+ (options: mongooseRaw.ToObjectOptions & {
456
+ flattenMaps: false;
457
+ flattenObjectIds: true;
458
+ virtuals: false;
459
+ versionKey: false;
460
+ }): {
461
+ [x: string]: any;
462
+ [x: number]: any;
463
+ [x: symbol]: any;
464
+ };
465
+ (options: mongooseRaw.ToObjectOptions & {
466
+ flattenMaps: false;
467
+ flattenObjectIds: true;
468
+ virtuals: false;
469
+ }): any;
470
+ (options: mongooseRaw.ToObjectOptions & {
471
+ flattenMaps: false;
472
+ flattenObjectIds: false;
473
+ virtuals: false;
474
+ versionKey: false;
475
+ }): Omit<any, "__v">;
476
+ (options: mongooseRaw.ToObjectOptions & {
477
+ flattenMaps: false;
478
+ flattenObjectIds: false;
479
+ virtuals: false;
480
+ }): any;
481
+ (options: mongooseRaw.ToObjectOptions & {
482
+ flattenMaps: true;
483
+ flattenObjectIds: true;
484
+ virtuals: true;
485
+ versionKey: false;
486
+ }): {
487
+ [x: string]: any;
488
+ [x: number]: any;
489
+ [x: symbol]: any;
490
+ };
491
+ (options: mongooseRaw.ToObjectOptions & {
492
+ flattenMaps: true;
493
+ flattenObjectIds: true;
494
+ virtuals: true;
495
+ }): {
496
+ [x: string]: any;
497
+ };
498
+ (options: mongooseRaw.ToObjectOptions & {
499
+ flattenMaps: true;
500
+ flattenObjectIds: false;
501
+ virtuals: true;
502
+ versionKey: false;
503
+ }): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
504
+ (options: mongooseRaw.ToObjectOptions & {
505
+ flattenMaps: true;
506
+ flattenObjectIds: false;
507
+ virtuals: true;
508
+ }): mongooseRaw.FlattenMaps<any>;
509
+ (options: mongooseRaw.ToObjectOptions & {
510
+ flattenMaps: true;
511
+ flattenObjectIds: true;
512
+ virtuals: false;
513
+ versionKey: false;
514
+ }): {
515
+ [x: string]: any;
516
+ [x: number]: any;
517
+ [x: symbol]: any;
518
+ };
519
+ (options: mongooseRaw.ToObjectOptions & {
520
+ flattenMaps: true;
521
+ flattenObjectIds: true;
522
+ virtuals: false;
523
+ }): {
524
+ [x: string]: any;
525
+ };
526
+ (options: mongooseRaw.ToObjectOptions & {
527
+ flattenMaps: true;
528
+ flattenObjectIds: false;
529
+ virtuals: false;
530
+ versionKey: false;
531
+ }): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
532
+ (options: mongooseRaw.ToObjectOptions & {
533
+ flattenMaps: true;
534
+ flattenObjectIds: false;
535
+ virtuals: false;
536
+ }): mongooseRaw.FlattenMaps<any>;
537
+ (options: mongooseRaw.ToObjectOptions & {
538
+ flattenMaps: true;
539
+ flattenObjectIds: true;
540
+ virtuals: true;
541
+ }): {
542
+ [x: string]: any;
543
+ };
544
+ (options: mongooseRaw.ToObjectOptions & {
545
+ flattenMaps: true;
546
+ flattenObjectIds: true;
547
+ }): {
548
+ [x: string]: any;
549
+ };
550
+ (options: mongooseRaw.ToObjectOptions & {
551
+ flattenObjectIds: true;
552
+ virtuals: true;
553
+ }): any;
554
+ (options: mongooseRaw.ToObjectOptions & {
555
+ flattenObjectIds: true;
556
+ }): any;
557
+ (options: mongooseRaw.ToObjectOptions & {
558
+ flattenMaps: true;
559
+ virtuals: true;
560
+ }): mongooseRaw.FlattenMaps<any>;
561
+ (options: mongooseRaw.ToObjectOptions & {
562
+ flattenMaps: true;
563
+ }): mongooseRaw.FlattenMaps<any>;
564
+ (options: mongooseRaw.ToObjectOptions & {
565
+ versionKey: false;
566
+ flattenMaps: true;
567
+ flattenObjectIds: true;
568
+ virtuals: true;
569
+ }): {
570
+ [x: string]: any;
571
+ [x: number]: any;
572
+ [x: symbol]: any;
573
+ };
574
+ (options: mongooseRaw.ToObjectOptions & {
575
+ versionKey: false;
576
+ flattenMaps: false;
577
+ flattenObjectIds: true;
578
+ virtuals: true;
579
+ }): {
580
+ [x: string]: any;
581
+ [x: number]: any;
582
+ [x: symbol]: any;
583
+ };
584
+ (options: mongooseRaw.ToObjectOptions & {
585
+ versionKey: false;
586
+ flattenMaps: true;
587
+ virtuals: true;
588
+ }): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
589
+ (options: mongooseRaw.ToObjectOptions & {
590
+ versionKey: false;
591
+ flattenObjectIds: true;
592
+ virtuals: true;
593
+ }): {
594
+ [x: string]: any;
595
+ [x: number]: any;
596
+ [x: symbol]: any;
597
+ };
598
+ (options: mongooseRaw.ToObjectOptions & {
599
+ versionKey: false;
600
+ virtuals: true;
601
+ }): Omit<any, "__v">;
602
+ (options: mongooseRaw.ToObjectOptions & {
603
+ versionKey: false;
604
+ flattenMaps: true;
605
+ flattenObjectIds: true;
606
+ }): {
607
+ [x: string]: any;
608
+ [x: number]: any;
609
+ [x: symbol]: any;
610
+ };
611
+ (options: mongooseRaw.ToObjectOptions & {
612
+ versionKey: false;
613
+ flattenObjectIds: true;
614
+ }): {
615
+ [x: string]: any;
616
+ [x: number]: any;
617
+ [x: symbol]: any;
618
+ };
619
+ (options: mongooseRaw.ToObjectOptions & {
620
+ versionKey: false;
621
+ flattenMaps: true;
622
+ }): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
623
+ (options: mongooseRaw.ToObjectOptions & {
624
+ versionKey: false;
625
+ }): Omit<any, "__v">;
626
+ (options: mongooseRaw.ToObjectOptions & {
627
+ virtuals: true;
628
+ }): any;
629
+ (options?: mongooseRaw.ToObjectOptions): any;
630
+ <T>(options?: mongooseRaw.ToObjectOptions): mongooseRaw.Require_id<T> & {
631
+ __v: number;
632
+ };
633
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
634
+ _id: mongooseRaw.Types.ObjectId;
635
+ }> & {
636
+ __v: number;
637
+ }> | undefined;
638
+ toObject?: mongooseRaw.SchemaDefinitionProperty<{
639
+ (options: mongooseRaw.ToObjectOptions & {
640
+ flattenMaps: false;
641
+ flattenObjectIds: true;
642
+ virtuals: true;
643
+ versionKey: false;
644
+ }): {
645
+ [x: string]: any;
646
+ [x: number]: any;
647
+ [x: symbol]: any;
648
+ };
649
+ (options: mongooseRaw.ToObjectOptions & {
650
+ flattenMaps: false;
651
+ flattenObjectIds: true;
652
+ virtuals: true;
653
+ }): any;
654
+ (options: mongooseRaw.ToObjectOptions & {
655
+ flattenMaps: false;
656
+ flattenObjectIds: false;
657
+ virtuals: true;
658
+ versionKey: false;
659
+ }): Omit<any, "__v">;
660
+ (options: mongooseRaw.ToObjectOptions & {
661
+ flattenMaps: false;
662
+ flattenObjectIds: false;
663
+ virtuals: true;
664
+ }): any;
665
+ (options: mongooseRaw.ToObjectOptions & {
666
+ flattenMaps: false;
667
+ flattenObjectIds: true;
668
+ virtuals: false;
669
+ versionKey: false;
670
+ }): {
671
+ [x: string]: any;
672
+ [x: number]: any;
673
+ [x: symbol]: any;
674
+ };
675
+ (options: mongooseRaw.ToObjectOptions & {
676
+ flattenMaps: false;
677
+ flattenObjectIds: true;
678
+ virtuals: false;
679
+ }): any;
680
+ (options: mongooseRaw.ToObjectOptions & {
681
+ flattenMaps: false;
682
+ flattenObjectIds: false;
683
+ virtuals: false;
684
+ versionKey: false;
685
+ }): Omit<any, "__v">;
686
+ (options: mongooseRaw.ToObjectOptions & {
687
+ flattenMaps: false;
688
+ flattenObjectIds: false;
689
+ virtuals: false;
690
+ }): any;
691
+ (options: mongooseRaw.ToObjectOptions & {
692
+ flattenMaps: true;
693
+ flattenObjectIds: true;
694
+ virtuals: true;
695
+ versionKey: false;
696
+ }): {
697
+ [x: string]: any;
698
+ [x: number]: any;
699
+ [x: symbol]: any;
700
+ };
701
+ (options: mongooseRaw.ToObjectOptions & {
702
+ flattenMaps: true;
703
+ flattenObjectIds: true;
704
+ virtuals: true;
705
+ }): {
706
+ [x: string]: any;
707
+ };
708
+ (options: mongooseRaw.ToObjectOptions & {
709
+ flattenMaps: true;
710
+ flattenObjectIds: false;
711
+ virtuals: true;
712
+ versionKey: false;
713
+ }): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
714
+ (options: mongooseRaw.ToObjectOptions & {
715
+ flattenMaps: true;
716
+ flattenObjectIds: false;
717
+ virtuals: true;
718
+ }): mongooseRaw.FlattenMaps<any>;
719
+ (options: mongooseRaw.ToObjectOptions & {
720
+ flattenMaps: true;
721
+ flattenObjectIds: true;
722
+ virtuals: false;
723
+ versionKey: false;
724
+ }): {
725
+ [x: string]: any;
726
+ [x: number]: any;
727
+ [x: symbol]: any;
728
+ };
729
+ (options: mongooseRaw.ToObjectOptions & {
730
+ flattenMaps: true;
731
+ flattenObjectIds: true;
732
+ virtuals: false;
733
+ }): {
734
+ [x: string]: any;
735
+ };
736
+ (options: mongooseRaw.ToObjectOptions & {
737
+ flattenMaps: true;
738
+ flattenObjectIds: false;
739
+ virtuals: false;
740
+ versionKey: false;
741
+ }): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
742
+ (options: mongooseRaw.ToObjectOptions & {
743
+ flattenMaps: true;
744
+ flattenObjectIds: false;
745
+ virtuals: false;
746
+ }): mongooseRaw.FlattenMaps<any>;
747
+ (options: mongooseRaw.ToObjectOptions & {
748
+ flattenMaps: true;
749
+ flattenObjectIds: true;
750
+ virtuals: true;
751
+ }): {
752
+ [x: string]: any;
753
+ };
754
+ (options: mongooseRaw.ToObjectOptions & {
755
+ flattenMaps: true;
756
+ flattenObjectIds: true;
757
+ }): {
758
+ [x: string]: any;
759
+ };
760
+ (options: mongooseRaw.ToObjectOptions & {
761
+ flattenObjectIds: true;
762
+ virtuals: true;
763
+ }): any;
764
+ (options: mongooseRaw.ToObjectOptions & {
765
+ flattenObjectIds: true;
766
+ }): any;
767
+ (options: mongooseRaw.ToObjectOptions & {
768
+ flattenMaps: true;
769
+ virtuals: true;
770
+ }): mongooseRaw.FlattenMaps<any>;
771
+ (options: mongooseRaw.ToObjectOptions & {
772
+ flattenMaps: true;
773
+ }): mongooseRaw.FlattenMaps<any>;
774
+ (options: mongooseRaw.ToObjectOptions & {
775
+ versionKey: false;
776
+ flattenMaps: true;
777
+ flattenObjectIds: true;
778
+ virtuals: true;
779
+ }): {
780
+ [x: string]: any;
781
+ [x: number]: any;
782
+ [x: symbol]: any;
783
+ };
784
+ (options: mongooseRaw.ToObjectOptions & {
785
+ versionKey: false;
786
+ flattenMaps: false;
787
+ flattenObjectIds: true;
788
+ virtuals: true;
789
+ }): {
790
+ [x: string]: any;
791
+ [x: number]: any;
792
+ [x: symbol]: any;
793
+ };
794
+ (options: mongooseRaw.ToObjectOptions & {
795
+ versionKey: false;
796
+ flattenMaps: true;
797
+ virtuals: true;
798
+ }): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
799
+ (options: mongooseRaw.ToObjectOptions & {
800
+ versionKey: false;
801
+ flattenObjectIds: true;
802
+ virtuals: true;
803
+ }): {
804
+ [x: string]: any;
805
+ [x: number]: any;
806
+ [x: symbol]: any;
807
+ };
808
+ (options: mongooseRaw.ToObjectOptions & {
809
+ versionKey: false;
810
+ virtuals: true;
811
+ }): Omit<any, "__v">;
812
+ (options: mongooseRaw.ToObjectOptions & {
813
+ versionKey: false;
814
+ flattenMaps: true;
815
+ flattenObjectIds: true;
816
+ }): {
817
+ [x: string]: any;
818
+ [x: number]: any;
819
+ [x: symbol]: any;
820
+ };
821
+ (options: mongooseRaw.ToObjectOptions & {
822
+ versionKey: false;
823
+ flattenObjectIds: true;
824
+ }): {
825
+ [x: string]: any;
826
+ [x: number]: any;
827
+ [x: symbol]: any;
828
+ };
829
+ (options: mongooseRaw.ToObjectOptions & {
830
+ versionKey: false;
831
+ flattenMaps: true;
832
+ }): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
833
+ (options: mongooseRaw.ToObjectOptions & {
834
+ versionKey: false;
835
+ }): Omit<any, "__v">;
836
+ (options: mongooseRaw.ToObjectOptions & {
837
+ virtuals: true;
838
+ }): any;
839
+ (options?: mongooseRaw.ToObjectOptions): any;
840
+ <T>(options?: mongooseRaw.ToObjectOptions): mongooseRaw.Require_id<T> & {
841
+ __v: number;
842
+ };
843
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
844
+ _id: mongooseRaw.Types.ObjectId;
845
+ }> & {
846
+ __v: number;
847
+ }> | undefined;
848
+ unmarkModified?: mongooseRaw.SchemaDefinitionProperty<{
849
+ <T extends string | number | symbol>(path: T): void;
850
+ (path: string): void;
851
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
852
+ _id: mongooseRaw.Types.ObjectId;
853
+ }> & {
854
+ __v: number;
855
+ }> | undefined;
856
+ updateOne?: mongooseRaw.SchemaDefinitionProperty<((update?: mongooseRaw.UpdateWithAggregationPipeline | mongooseRaw.UpdateQuery<C_Document> | undefined, options?: mongooseRaw.QueryOptions | null) => mongooseRaw.Query<any, C_Document, {}, unknown, "find", Record<string, never>>) | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
857
+ _id: mongooseRaw.Types.ObjectId;
858
+ }> & {
859
+ __v: number;
860
+ }> | undefined;
861
+ validate?: mongooseRaw.SchemaDefinitionProperty<{
862
+ <T extends string | number | symbol>(pathsToValidate?: T | T[] | undefined, options?: mongooseRaw.AnyObject): Promise<void>;
863
+ (pathsToValidate?: mongooseRaw.pathsToValidate, options?: mongooseRaw.AnyObject): Promise<void>;
864
+ (options: {
865
+ pathsToSkip?: mongooseRaw.pathsToSkip;
866
+ }): Promise<void>;
867
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
868
+ _id: mongooseRaw.Types.ObjectId;
869
+ }> & {
870
+ __v: number;
871
+ }> | undefined;
872
+ validateSync?: mongooseRaw.SchemaDefinitionProperty<{
873
+ (options: {
874
+ pathsToSkip?: mongooseRaw.pathsToSkip;
875
+ [k: string]: any;
876
+ }): mongooseRaw.Error.ValidationError | null;
877
+ <T extends string | number | symbol>(pathsToValidate?: T | T[] | undefined, options?: mongooseRaw.AnyObject): mongooseRaw.Error.ValidationError | null;
878
+ (pathsToValidate?: mongooseRaw.pathsToValidate, options?: mongooseRaw.AnyObject): mongooseRaw.Error.ValidationError | null;
879
+ } | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
880
+ _id: mongooseRaw.Types.ObjectId;
881
+ }> & {
882
+ __v: number;
883
+ }> | undefined;
884
+ }, I_GenericDocument>;
53
885
  /**
54
886
  * Creates a Mongoose schema with optional virtual fields and generic fields.
55
887
  * This function creates a new Mongoose schema from the provided schema definition,
@@ -137,9 +969,9 @@ export declare const mongo: {
137
969
  }) => void;
138
970
  init(): Promise<void>;
139
971
  create(description: string): Promise<string>;
140
- up(db: import('mongodb').Db, client: import('mongodb').MongoClient): Promise<string[]>;
141
- down(db: import('mongodb').Db, client: import('mongodb').MongoClient): Promise<string[]>;
142
- status(db: import('mongodb').Db): Promise<migrate.MigrationStatus[]>;
972
+ up(db: mongooseRaw.mongo.Db, client: mongooseRaw.mongo.MongoClient): Promise<string[]>;
973
+ down(db: mongooseRaw.mongo.Db, client: mongooseRaw.mongo.MongoClient): Promise<string[]>;
974
+ status(db: mongooseRaw.mongo.Db): Promise<migrate.MigrationStatus[]>;
143
975
  database: typeof migrate.database;
144
976
  config: typeof migrate.config;
145
977
  };
@@ -427,74 +1259,105 @@ export declare class MongooseController<T extends Partial<C_Document>> {
427
1259
  };
428
1260
  };
429
1261
  })[];
430
- _id?: any;
431
- $assertPopulated?: any;
432
- $clearModifiedPaths?: any;
433
- $clone?: any;
434
- $createModifiedPathsSnapshot?: any;
435
- $getAllSubdocs?: any;
436
- $ignore?: any;
437
- $isDefault?: any;
438
- $isDeleted?: any;
439
- $getPopulatedDocs?: any;
440
- $inc?: any;
441
- $isEmpty?: any;
442
- $isValid?: any;
443
- $locals?: any;
444
- $markValid?: any;
445
- $model?: any;
446
- $op?: any;
447
- $restoreModifiedPathsSnapshot?: any;
448
- $session?: any;
449
- $set?: any;
450
- $where?: any;
451
- baseModelName?: any;
452
- collection?: any;
453
- db?: any;
1262
+ _mongooseOptions?: any;
1263
+ exec?: any;
1264
+ $where?: string | (mongooseRaw.mongo.Condition<mongooseRaw.ApplyBasicQueryCasting<mongooseRaw.WithLevel1NestedPaths<T, keyof T>["$where"]>> & (string | ((this: mongooseRaw.WithLevel1NestedPaths<T, keyof T> extends infer T_1 ? { [P in keyof T_1]?: mongooseRaw.ApplyBasicQueryCasting<T_1[P]> | undefined; } : never) => boolean))) | ((argument: string | Function) => mongooseRaw.Query<any[], any, {}, unknown, "find", Record<string, never>>) | ((this: {
1265
+ [x: string]: any;
1266
+ }) => boolean) | undefined;
1267
+ all?: any;
1268
+ allowDiskUse?: any;
1269
+ and?: any;
1270
+ batchSize?: any;
1271
+ box?: any;
1272
+ cast?: any;
1273
+ catch?: any;
1274
+ finally?: any;
1275
+ circle?: any;
1276
+ clone?: any;
1277
+ collation?: any;
1278
+ comment?: any;
1279
+ countDocuments?: any;
1280
+ cursor?: any;
1281
+ deleteMany?: any;
454
1282
  deleteOne?: any;
455
- depopulate?: any;
456
- directModifiedPaths?: any;
1283
+ distinct?: any;
1284
+ elemMatch?: any;
1285
+ error?: any;
457
1286
  equals?: any;
458
- errors?: any;
1287
+ estimatedDocumentCount?: any;
1288
+ exists?: any;
1289
+ explain?: any;
1290
+ find?: any;
1291
+ findOne?: any;
1292
+ findOneAndDelete?: any;
1293
+ findOneAndUpdate?: any;
1294
+ findById?: any;
1295
+ findByIdAndDelete?: any;
1296
+ findByIdAndUpdate?: any;
1297
+ geometry?: any;
459
1298
  get?: any;
460
- getChanges?: any;
461
- id?: any;
462
- increment?: any;
463
- init?: any;
464
- invalidate?: any;
465
- isDirectModified?: any;
466
- isDirectSelected?: any;
467
- isInit?: any;
468
- isModified?: any;
469
- isNew?: any;
470
- isSelected?: any;
471
- markModified?: any;
1299
+ getFilter?: any;
1300
+ getOptions?: any;
1301
+ getPopulatedPaths?: any;
1302
+ getQuery?: any;
1303
+ getUpdate?: any;
1304
+ gt?: any;
1305
+ gte?: any;
1306
+ hint?: any;
1307
+ in?: any;
1308
+ intersects?: any;
1309
+ j?: any;
1310
+ lean?: any;
1311
+ limit?: any;
1312
+ lt?: any;
1313
+ lte?: any;
1314
+ transform?: any;
1315
+ maxDistance?: any;
1316
+ maxTimeMS?: any;
1317
+ merge?: any;
1318
+ mod?: any;
472
1319
  model?: any;
473
- modifiedPaths?: any;
474
- overwrite?: any;
475
- $parent?: any;
1320
+ mongooseOptions?: any;
1321
+ ne?: any;
1322
+ near?: any;
1323
+ nin?: any;
1324
+ nor?: any;
1325
+ or?: any;
1326
+ orFail?: any;
1327
+ polygon?: any;
476
1328
  populate?: any;
477
- populated?: any;
1329
+ pre?: any;
1330
+ post?: any;
1331
+ projection?: any;
1332
+ read?: any;
1333
+ readConcern?: any;
1334
+ regex?: any;
478
1335
  replaceOne?: any;
479
- save?: any;
480
- schema?: any;
1336
+ sanitizeProjection?: any;
1337
+ schemaLevelProjections?: any;
1338
+ select?: any;
1339
+ selected?: any;
1340
+ selectedExclusively?: any;
1341
+ selectedInclusively?: any;
1342
+ session?: any;
481
1343
  set?: any;
482
- toJSON?: any;
483
- toObject?: any;
484
- unmarkModified?: any;
1344
+ setOptions?: any;
1345
+ setQuery?: any;
1346
+ setUpdate?: any;
1347
+ size?: any;
1348
+ skip?: any;
1349
+ slice?: any;
1350
+ sort?: any;
1351
+ tailable?: any;
1352
+ then?: any;
1353
+ toConstructor?: any;
1354
+ updateMany?: any;
485
1355
  updateOne?: any;
486
- validate?: any;
487
- validateSync?: any;
488
- $and?: mongooseRaw.FilterQuery<T>[] | undefined;
489
- $nor?: mongooseRaw.FilterQuery<T>[] | undefined;
490
- $text?: {
491
- $search: string;
492
- $language?: string;
493
- $caseSensitive?: boolean;
494
- $diacriticSensitive?: boolean;
495
- };
496
- $comment?: string;
497
- $expr?: Record<string, any>;
1356
+ w?: any;
1357
+ where?: any;
1358
+ within?: any;
1359
+ wtimeout?: any;
1360
+ paginate?: any;
498
1361
  } | {
499
1362
  $or: ({
500
1363
  slug: string;
@@ -503,74 +1366,105 @@ export declare class MongooseController<T extends Partial<C_Document>> {
503
1366
  slugHistory: string;
504
1367
  slug?: undefined;
505
1368
  })[];
506
- _id?: any;
507
- $assertPopulated?: any;
508
- $clearModifiedPaths?: any;
509
- $clone?: any;
510
- $createModifiedPathsSnapshot?: any;
511
- $getAllSubdocs?: any;
512
- $ignore?: any;
513
- $isDefault?: any;
514
- $isDeleted?: any;
515
- $getPopulatedDocs?: any;
516
- $inc?: any;
517
- $isEmpty?: any;
518
- $isValid?: any;
519
- $locals?: any;
520
- $markValid?: any;
521
- $model?: any;
522
- $op?: any;
523
- $restoreModifiedPathsSnapshot?: any;
524
- $session?: any;
525
- $set?: any;
526
- $where?: any;
527
- baseModelName?: any;
528
- collection?: any;
529
- db?: any;
1369
+ _mongooseOptions?: any;
1370
+ exec?: any;
1371
+ $where?: string | (mongooseRaw.mongo.Condition<mongooseRaw.ApplyBasicQueryCasting<mongooseRaw.WithLevel1NestedPaths<T, keyof T>["$where"]>> & (string | ((this: mongooseRaw.WithLevel1NestedPaths<T, keyof T> extends infer T_1 ? { [P in keyof T_1]?: mongooseRaw.ApplyBasicQueryCasting<T_1[P]> | undefined; } : never) => boolean))) | ((argument: string | Function) => mongooseRaw.Query<any[], any, {}, unknown, "find", Record<string, never>>) | ((this: {
1372
+ [x: string]: any;
1373
+ }) => boolean) | undefined;
1374
+ all?: any;
1375
+ allowDiskUse?: any;
1376
+ and?: any;
1377
+ batchSize?: any;
1378
+ box?: any;
1379
+ cast?: any;
1380
+ catch?: any;
1381
+ finally?: any;
1382
+ circle?: any;
1383
+ clone?: any;
1384
+ collation?: any;
1385
+ comment?: any;
1386
+ countDocuments?: any;
1387
+ cursor?: any;
1388
+ deleteMany?: any;
530
1389
  deleteOne?: any;
531
- depopulate?: any;
532
- directModifiedPaths?: any;
1390
+ distinct?: any;
1391
+ elemMatch?: any;
1392
+ error?: any;
533
1393
  equals?: any;
534
- errors?: any;
1394
+ estimatedDocumentCount?: any;
1395
+ exists?: any;
1396
+ explain?: any;
1397
+ find?: any;
1398
+ findOne?: any;
1399
+ findOneAndDelete?: any;
1400
+ findOneAndUpdate?: any;
1401
+ findById?: any;
1402
+ findByIdAndDelete?: any;
1403
+ findByIdAndUpdate?: any;
1404
+ geometry?: any;
535
1405
  get?: any;
536
- getChanges?: any;
537
- id?: any;
538
- increment?: any;
539
- init?: any;
540
- invalidate?: any;
541
- isDirectModified?: any;
542
- isDirectSelected?: any;
543
- isInit?: any;
544
- isModified?: any;
545
- isNew?: any;
546
- isSelected?: any;
547
- markModified?: any;
1406
+ getFilter?: any;
1407
+ getOptions?: any;
1408
+ getPopulatedPaths?: any;
1409
+ getQuery?: any;
1410
+ getUpdate?: any;
1411
+ gt?: any;
1412
+ gte?: any;
1413
+ hint?: any;
1414
+ in?: any;
1415
+ intersects?: any;
1416
+ j?: any;
1417
+ lean?: any;
1418
+ limit?: any;
1419
+ lt?: any;
1420
+ lte?: any;
1421
+ transform?: any;
1422
+ maxDistance?: any;
1423
+ maxTimeMS?: any;
1424
+ merge?: any;
1425
+ mod?: any;
548
1426
  model?: any;
549
- modifiedPaths?: any;
550
- overwrite?: any;
551
- $parent?: any;
1427
+ mongooseOptions?: any;
1428
+ ne?: any;
1429
+ near?: any;
1430
+ nin?: any;
1431
+ nor?: any;
1432
+ or?: any;
1433
+ orFail?: any;
1434
+ polygon?: any;
552
1435
  populate?: any;
553
- populated?: any;
1436
+ pre?: any;
1437
+ post?: any;
1438
+ projection?: any;
1439
+ read?: any;
1440
+ readConcern?: any;
1441
+ regex?: any;
554
1442
  replaceOne?: any;
555
- save?: any;
556
- schema?: any;
1443
+ sanitizeProjection?: any;
1444
+ schemaLevelProjections?: any;
1445
+ select?: any;
1446
+ selected?: any;
1447
+ selectedExclusively?: any;
1448
+ selectedInclusively?: any;
1449
+ session?: any;
557
1450
  set?: any;
558
- toJSON?: any;
559
- toObject?: any;
560
- unmarkModified?: any;
1451
+ setOptions?: any;
1452
+ setQuery?: any;
1453
+ setUpdate?: any;
1454
+ size?: any;
1455
+ skip?: any;
1456
+ slice?: any;
1457
+ sort?: any;
1458
+ tailable?: any;
1459
+ then?: any;
1460
+ toConstructor?: any;
1461
+ updateMany?: any;
561
1462
  updateOne?: any;
562
- validate?: any;
563
- validateSync?: any;
564
- $and?: mongooseRaw.FilterQuery<T>[] | undefined;
565
- $nor?: mongooseRaw.FilterQuery<T>[] | undefined;
566
- $text?: {
567
- $search: string;
568
- $language?: string;
569
- $caseSensitive?: boolean;
570
- $diacriticSensitive?: boolean;
571
- };
572
- $comment?: string;
573
- $expr?: Record<string, any>;
1463
+ w?: any;
1464
+ where?: any;
1465
+ within?: any;
1466
+ wtimeout?: any;
1467
+ paginate?: any;
574
1468
  };
575
1469
  /**
576
1470
  * Creates a unique slug based on a given string.