@cyberskill/shared 2.19.1 → 2.21.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.
- package/dist/config/storybook/index.cjs +1 -0
- package/dist/config/storybook/index.d.ts +2 -0
- package/dist/config/storybook/index.js +6 -0
- package/dist/config/storybook/storybook.main.cjs +1 -0
- package/dist/config/storybook/storybook.main.d.ts +17 -0
- package/dist/config/storybook/storybook.main.js +18 -0
- package/dist/config/storybook/storybook.preview.cjs +1 -0
- package/dist/config/storybook/storybook.preview.d.ts +18 -0
- package/dist/config/storybook/storybook.preview.js +39 -0
- package/dist/config/vitest/vitest.e2e.cjs +1 -1
- package/dist/config/vitest/vitest.e2e.js +6 -6
- package/dist/config/vitest/vitest.unit.cjs +1 -1
- package/dist/config/vitest/vitest.unit.js +5 -5
- package/dist/node/cli/index.cjs +2 -2
- package/dist/node/cli/index.js +51 -41
- package/dist/node/express/express.util.cjs +1 -1
- package/dist/node/express/express.util.js +21 -21
- package/dist/node/mongo/mongo-controller.test.unit.d.ts +1 -0
- package/dist/node/mongo/mongo.test.unit.d.ts +1 -0
- package/dist/node/mongo/mongo.type.d.ts +2 -2
- package/dist/node/mongo/mongo.util.cjs +2 -2
- package/dist/node/mongo/mongo.util.d.ts +847 -147
- package/dist/node/mongo/mongo.util.js +70 -68
- package/dist/node/path/index.cjs +1 -1
- package/dist/node/path/index.js +27 -25
- package/dist/node/path/path.constant.cjs +1 -1
- package/dist/node/path/path.constant.d.ts +6 -0
- package/dist/node/path/path.constant.js +171 -143
- package/dist/node/path/path.test.unit.d.ts +1 -0
- package/dist/node/path/path.util.d.ts +2 -2
- package/dist/node/storage/index.cjs +1 -1
- package/dist/node/storage/index.d.ts +2 -0
- package/dist/node/storage/index.js +7 -2
- package/dist/node/storage/storage.constant.cjs +1 -0
- package/dist/node/storage/storage.constant.d.ts +4 -0
- package/dist/node/storage/storage.constant.js +7 -0
- package/dist/node/storage/storage.type.d.ts +14 -0
- package/dist/node/storage/storage.util.cjs +1 -1
- package/dist/node/storage/storage.util.d.ts +1 -1
- package/dist/node/storage/storage.util.js +160 -50
- package/dist/react/loading/loading.component.cjs +2 -2
- package/dist/react/loading/loading.component.js +32 -19
- package/dist/react/loading/loading.test.unit.d.ts +1 -0
- package/dist/react/loading/loading.type.d.ts +2 -1
- package/dist/util/common/common.test.unit.d.ts +1 -0
- package/dist/util/common/common.util.cjs +1 -1
- package/dist/util/common/common.util.js +14 -15
- package/dist/util/index.cjs +1 -1
- package/dist/util/index.js +16 -15
- package/dist/util/object/index.cjs +1 -1
- package/dist/util/object/index.js +4 -3
- package/dist/util/object/object.test.unit.d.ts +1 -0
- package/dist/util/object/object.util.cjs +1 -1
- package/dist/util/object/object.util.d.ts +10 -30
- package/dist/util/object/object.util.js +102 -69
- package/dist/util/serializer/serializer.test.unit.d.ts +1 -0
- package/dist/util/serializer/serializer.util.cjs +1 -1
- package/dist/util/serializer/serializer.util.js +19 -16
- package/dist/util/string/string.test.unit.d.ts +1 -0
- package/dist/util/string/string.util.cjs +1 -1
- package/dist/util/string/string.util.d.ts +4 -3
- package/dist/util/string/string.util.js +32 -41
- package/dist/util/validate/validate.test.unit.d.ts +1 -0
- package/dist/util/validate/validate.util.cjs +1 -1
- package/dist/util/validate/validate.util.js +9 -9
- package/package.json +49 -52
- /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.16_@types_node@25.0.3_jiti@2.6.1_jsdom@27.3.0_sass@1.97.0_tsx@4.21.0_yaml@2.8.2}/node_modules/vitest/dist/config.cjs +0 -0
- /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.16_@types_node@25.0.3_jiti@2.6.1_jsdom@27.3.0_sass@1.97.0_tsx@4.21.0_yaml@2.8.2}/node_modules/vitest/dist/config.js +0 -0
|
@@ -41,15 +41,851 @@ 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,
|
|
45
|
-
_id:
|
|
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, {},
|
|
49
|
-
_id:
|
|
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<"save" | "validate" | "remove" | 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
|
+
}, {
|
|
410
|
+
[x: number]: {};
|
|
411
|
+
[x: symbol]: {};
|
|
412
|
+
[x: string]: {};
|
|
413
|
+
} & Required<{
|
|
414
|
+
_id: unknown;
|
|
415
|
+
}> & {
|
|
416
|
+
__v: number;
|
|
417
|
+
}> | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
|
|
418
|
+
_id: mongooseRaw.Types.ObjectId;
|
|
419
|
+
}> & {
|
|
420
|
+
__v: number;
|
|
421
|
+
}> | undefined;
|
|
422
|
+
set?: mongooseRaw.SchemaDefinitionProperty<{
|
|
423
|
+
<T extends string | number | symbol>(path: T, val: any, type: any, options?: mongooseRaw.DocumentSetOptions): C_Document;
|
|
424
|
+
(path: string | Record<string, any>, val: any, type: any, options?: mongooseRaw.DocumentSetOptions): C_Document;
|
|
425
|
+
(path: string | Record<string, any>, val: any, options?: mongooseRaw.DocumentSetOptions): C_Document;
|
|
426
|
+
(value: string | Record<string, any>): C_Document;
|
|
427
|
+
} | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
|
|
428
|
+
_id: mongooseRaw.Types.ObjectId;
|
|
429
|
+
}> & {
|
|
430
|
+
__v: number;
|
|
431
|
+
}> | undefined;
|
|
432
|
+
toJSON?: mongooseRaw.SchemaDefinitionProperty<{
|
|
433
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
434
|
+
flattenMaps: false;
|
|
435
|
+
flattenObjectIds: true;
|
|
436
|
+
virtuals: true;
|
|
437
|
+
versionKey: false;
|
|
438
|
+
}): {
|
|
439
|
+
[x: string]: any;
|
|
440
|
+
[x: number]: any;
|
|
441
|
+
[x: symbol]: any;
|
|
442
|
+
};
|
|
443
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
444
|
+
flattenMaps: false;
|
|
445
|
+
flattenObjectIds: true;
|
|
446
|
+
virtuals: true;
|
|
447
|
+
}): any;
|
|
448
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
449
|
+
flattenMaps: false;
|
|
450
|
+
flattenObjectIds: false;
|
|
451
|
+
virtuals: true;
|
|
452
|
+
versionKey: false;
|
|
453
|
+
}): Omit<any, "__v">;
|
|
454
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
455
|
+
flattenMaps: false;
|
|
456
|
+
flattenObjectIds: false;
|
|
457
|
+
virtuals: true;
|
|
458
|
+
}): any;
|
|
459
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
460
|
+
flattenMaps: false;
|
|
461
|
+
flattenObjectIds: true;
|
|
462
|
+
virtuals: false;
|
|
463
|
+
versionKey: false;
|
|
464
|
+
}): {
|
|
465
|
+
[x: string]: any;
|
|
466
|
+
[x: number]: any;
|
|
467
|
+
[x: symbol]: any;
|
|
468
|
+
};
|
|
469
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
470
|
+
flattenMaps: false;
|
|
471
|
+
flattenObjectIds: true;
|
|
472
|
+
virtuals: false;
|
|
473
|
+
}): any;
|
|
474
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
475
|
+
flattenMaps: false;
|
|
476
|
+
flattenObjectIds: false;
|
|
477
|
+
virtuals: false;
|
|
478
|
+
versionKey: false;
|
|
479
|
+
}): Omit<any, "__v">;
|
|
480
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
481
|
+
flattenMaps: false;
|
|
482
|
+
flattenObjectIds: false;
|
|
483
|
+
virtuals: false;
|
|
484
|
+
}): any;
|
|
485
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
486
|
+
flattenMaps: true;
|
|
487
|
+
flattenObjectIds: true;
|
|
488
|
+
virtuals: true;
|
|
489
|
+
versionKey: false;
|
|
490
|
+
}): {
|
|
491
|
+
[x: string]: any;
|
|
492
|
+
[x: number]: any;
|
|
493
|
+
[x: symbol]: any;
|
|
494
|
+
};
|
|
495
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
496
|
+
flattenMaps: true;
|
|
497
|
+
flattenObjectIds: true;
|
|
498
|
+
virtuals: true;
|
|
499
|
+
}): {
|
|
500
|
+
[x: string]: any;
|
|
501
|
+
};
|
|
502
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
503
|
+
flattenMaps: true;
|
|
504
|
+
flattenObjectIds: false;
|
|
505
|
+
virtuals: true;
|
|
506
|
+
versionKey: false;
|
|
507
|
+
}): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
|
|
508
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
509
|
+
flattenMaps: true;
|
|
510
|
+
flattenObjectIds: false;
|
|
511
|
+
virtuals: true;
|
|
512
|
+
}): mongooseRaw.FlattenMaps<any>;
|
|
513
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
514
|
+
flattenMaps: true;
|
|
515
|
+
flattenObjectIds: true;
|
|
516
|
+
virtuals: false;
|
|
517
|
+
versionKey: false;
|
|
518
|
+
}): {
|
|
519
|
+
[x: string]: any;
|
|
520
|
+
[x: number]: any;
|
|
521
|
+
[x: symbol]: any;
|
|
522
|
+
};
|
|
523
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
524
|
+
flattenMaps: true;
|
|
525
|
+
flattenObjectIds: true;
|
|
526
|
+
virtuals: false;
|
|
527
|
+
}): {
|
|
528
|
+
[x: string]: any;
|
|
529
|
+
};
|
|
530
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
531
|
+
flattenMaps: true;
|
|
532
|
+
flattenObjectIds: false;
|
|
533
|
+
virtuals: false;
|
|
534
|
+
versionKey: false;
|
|
535
|
+
}): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
|
|
536
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
537
|
+
flattenMaps: true;
|
|
538
|
+
flattenObjectIds: false;
|
|
539
|
+
virtuals: false;
|
|
540
|
+
}): mongooseRaw.FlattenMaps<any>;
|
|
541
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
542
|
+
flattenMaps: true;
|
|
543
|
+
flattenObjectIds: true;
|
|
544
|
+
virtuals: true;
|
|
545
|
+
}): {
|
|
546
|
+
[x: string]: any;
|
|
547
|
+
};
|
|
548
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
549
|
+
flattenMaps: true;
|
|
550
|
+
flattenObjectIds: true;
|
|
551
|
+
}): {
|
|
552
|
+
[x: string]: any;
|
|
553
|
+
};
|
|
554
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
555
|
+
flattenObjectIds: true;
|
|
556
|
+
virtuals: true;
|
|
557
|
+
}): any;
|
|
558
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
559
|
+
flattenObjectIds: true;
|
|
560
|
+
}): any;
|
|
561
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
562
|
+
flattenMaps: true;
|
|
563
|
+
virtuals: true;
|
|
564
|
+
}): mongooseRaw.FlattenMaps<any>;
|
|
565
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
566
|
+
flattenMaps: true;
|
|
567
|
+
}): mongooseRaw.FlattenMaps<any>;
|
|
568
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
569
|
+
versionKey: false;
|
|
570
|
+
flattenMaps: true;
|
|
571
|
+
flattenObjectIds: true;
|
|
572
|
+
virtuals: true;
|
|
573
|
+
}): {
|
|
574
|
+
[x: string]: any;
|
|
575
|
+
[x: number]: any;
|
|
576
|
+
[x: symbol]: any;
|
|
577
|
+
};
|
|
578
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
579
|
+
versionKey: false;
|
|
580
|
+
flattenMaps: false;
|
|
581
|
+
flattenObjectIds: true;
|
|
582
|
+
virtuals: true;
|
|
583
|
+
}): {
|
|
584
|
+
[x: string]: any;
|
|
585
|
+
[x: number]: any;
|
|
586
|
+
[x: symbol]: any;
|
|
587
|
+
};
|
|
588
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
589
|
+
versionKey: false;
|
|
590
|
+
flattenMaps: true;
|
|
591
|
+
virtuals: true;
|
|
592
|
+
}): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
|
|
593
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
594
|
+
versionKey: false;
|
|
595
|
+
flattenObjectIds: true;
|
|
596
|
+
virtuals: true;
|
|
597
|
+
}): {
|
|
598
|
+
[x: string]: any;
|
|
599
|
+
[x: number]: any;
|
|
600
|
+
[x: symbol]: any;
|
|
601
|
+
};
|
|
602
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
603
|
+
versionKey: false;
|
|
604
|
+
virtuals: true;
|
|
605
|
+
}): Omit<any, "__v">;
|
|
606
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
607
|
+
versionKey: false;
|
|
608
|
+
flattenMaps: true;
|
|
609
|
+
flattenObjectIds: true;
|
|
610
|
+
}): {
|
|
611
|
+
[x: string]: any;
|
|
612
|
+
[x: number]: any;
|
|
613
|
+
[x: symbol]: any;
|
|
614
|
+
};
|
|
615
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
616
|
+
versionKey: false;
|
|
617
|
+
flattenObjectIds: true;
|
|
618
|
+
}): {
|
|
619
|
+
[x: string]: any;
|
|
620
|
+
[x: number]: any;
|
|
621
|
+
[x: symbol]: any;
|
|
622
|
+
};
|
|
623
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
624
|
+
versionKey: false;
|
|
625
|
+
flattenMaps: true;
|
|
626
|
+
}): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
|
|
627
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
628
|
+
versionKey: false;
|
|
629
|
+
}): Omit<any, "__v">;
|
|
630
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
631
|
+
virtuals: true;
|
|
632
|
+
}): any;
|
|
633
|
+
(options?: mongooseRaw.ToObjectOptions): any;
|
|
634
|
+
<T>(options?: mongooseRaw.ToObjectOptions): mongooseRaw.Require_id<T> & {
|
|
635
|
+
__v: number;
|
|
636
|
+
};
|
|
637
|
+
} | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
|
|
638
|
+
_id: mongooseRaw.Types.ObjectId;
|
|
639
|
+
}> & {
|
|
640
|
+
__v: number;
|
|
641
|
+
}> | undefined;
|
|
642
|
+
toObject?: mongooseRaw.SchemaDefinitionProperty<{
|
|
643
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
644
|
+
flattenMaps: false;
|
|
645
|
+
flattenObjectIds: true;
|
|
646
|
+
virtuals: true;
|
|
647
|
+
versionKey: false;
|
|
648
|
+
}): {
|
|
649
|
+
[x: string]: any;
|
|
650
|
+
[x: number]: any;
|
|
651
|
+
[x: symbol]: any;
|
|
652
|
+
};
|
|
653
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
654
|
+
flattenMaps: false;
|
|
655
|
+
flattenObjectIds: true;
|
|
656
|
+
virtuals: true;
|
|
657
|
+
}): any;
|
|
658
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
659
|
+
flattenMaps: false;
|
|
660
|
+
flattenObjectIds: false;
|
|
661
|
+
virtuals: true;
|
|
662
|
+
versionKey: false;
|
|
663
|
+
}): Omit<any, "__v">;
|
|
664
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
665
|
+
flattenMaps: false;
|
|
666
|
+
flattenObjectIds: false;
|
|
667
|
+
virtuals: true;
|
|
668
|
+
}): any;
|
|
669
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
670
|
+
flattenMaps: false;
|
|
671
|
+
flattenObjectIds: true;
|
|
672
|
+
virtuals: false;
|
|
673
|
+
versionKey: false;
|
|
674
|
+
}): {
|
|
675
|
+
[x: string]: any;
|
|
676
|
+
[x: number]: any;
|
|
677
|
+
[x: symbol]: any;
|
|
678
|
+
};
|
|
679
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
680
|
+
flattenMaps: false;
|
|
681
|
+
flattenObjectIds: true;
|
|
682
|
+
virtuals: false;
|
|
683
|
+
}): any;
|
|
684
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
685
|
+
flattenMaps: false;
|
|
686
|
+
flattenObjectIds: false;
|
|
687
|
+
virtuals: false;
|
|
688
|
+
versionKey: false;
|
|
689
|
+
}): Omit<any, "__v">;
|
|
690
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
691
|
+
flattenMaps: false;
|
|
692
|
+
flattenObjectIds: false;
|
|
693
|
+
virtuals: false;
|
|
694
|
+
}): any;
|
|
695
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
696
|
+
flattenMaps: true;
|
|
697
|
+
flattenObjectIds: true;
|
|
698
|
+
virtuals: true;
|
|
699
|
+
versionKey: false;
|
|
700
|
+
}): {
|
|
701
|
+
[x: string]: any;
|
|
702
|
+
[x: number]: any;
|
|
703
|
+
[x: symbol]: any;
|
|
704
|
+
};
|
|
705
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
706
|
+
flattenMaps: true;
|
|
707
|
+
flattenObjectIds: true;
|
|
708
|
+
virtuals: true;
|
|
709
|
+
}): {
|
|
710
|
+
[x: string]: any;
|
|
711
|
+
};
|
|
712
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
713
|
+
flattenMaps: true;
|
|
714
|
+
flattenObjectIds: false;
|
|
715
|
+
virtuals: true;
|
|
716
|
+
versionKey: false;
|
|
717
|
+
}): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
|
|
718
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
719
|
+
flattenMaps: true;
|
|
720
|
+
flattenObjectIds: false;
|
|
721
|
+
virtuals: true;
|
|
722
|
+
}): mongooseRaw.FlattenMaps<any>;
|
|
723
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
724
|
+
flattenMaps: true;
|
|
725
|
+
flattenObjectIds: true;
|
|
726
|
+
virtuals: false;
|
|
727
|
+
versionKey: false;
|
|
728
|
+
}): {
|
|
729
|
+
[x: string]: any;
|
|
730
|
+
[x: number]: any;
|
|
731
|
+
[x: symbol]: any;
|
|
732
|
+
};
|
|
733
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
734
|
+
flattenMaps: true;
|
|
735
|
+
flattenObjectIds: true;
|
|
736
|
+
virtuals: false;
|
|
737
|
+
}): {
|
|
738
|
+
[x: string]: any;
|
|
739
|
+
};
|
|
740
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
741
|
+
flattenMaps: true;
|
|
742
|
+
flattenObjectIds: false;
|
|
743
|
+
virtuals: false;
|
|
744
|
+
versionKey: false;
|
|
745
|
+
}): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
|
|
746
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
747
|
+
flattenMaps: true;
|
|
748
|
+
flattenObjectIds: false;
|
|
749
|
+
virtuals: false;
|
|
750
|
+
}): mongooseRaw.FlattenMaps<any>;
|
|
751
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
752
|
+
flattenMaps: true;
|
|
753
|
+
flattenObjectIds: true;
|
|
754
|
+
virtuals: true;
|
|
755
|
+
}): {
|
|
756
|
+
[x: string]: any;
|
|
757
|
+
};
|
|
758
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
759
|
+
flattenMaps: true;
|
|
760
|
+
flattenObjectIds: true;
|
|
761
|
+
}): {
|
|
762
|
+
[x: string]: any;
|
|
763
|
+
};
|
|
764
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
765
|
+
flattenObjectIds: true;
|
|
766
|
+
virtuals: true;
|
|
767
|
+
}): any;
|
|
768
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
769
|
+
flattenObjectIds: true;
|
|
770
|
+
}): any;
|
|
771
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
772
|
+
flattenMaps: true;
|
|
773
|
+
virtuals: true;
|
|
774
|
+
}): mongooseRaw.FlattenMaps<any>;
|
|
775
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
776
|
+
flattenMaps: true;
|
|
777
|
+
}): mongooseRaw.FlattenMaps<any>;
|
|
778
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
779
|
+
versionKey: false;
|
|
780
|
+
flattenMaps: true;
|
|
781
|
+
flattenObjectIds: true;
|
|
782
|
+
virtuals: true;
|
|
783
|
+
}): {
|
|
784
|
+
[x: string]: any;
|
|
785
|
+
[x: number]: any;
|
|
786
|
+
[x: symbol]: any;
|
|
787
|
+
};
|
|
788
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
789
|
+
versionKey: false;
|
|
790
|
+
flattenMaps: false;
|
|
791
|
+
flattenObjectIds: true;
|
|
792
|
+
virtuals: true;
|
|
793
|
+
}): {
|
|
794
|
+
[x: string]: any;
|
|
795
|
+
[x: number]: any;
|
|
796
|
+
[x: symbol]: any;
|
|
797
|
+
};
|
|
798
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
799
|
+
versionKey: false;
|
|
800
|
+
flattenMaps: true;
|
|
801
|
+
virtuals: true;
|
|
802
|
+
}): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
|
|
803
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
804
|
+
versionKey: false;
|
|
805
|
+
flattenObjectIds: true;
|
|
806
|
+
virtuals: true;
|
|
807
|
+
}): {
|
|
808
|
+
[x: string]: any;
|
|
809
|
+
[x: number]: any;
|
|
810
|
+
[x: symbol]: any;
|
|
811
|
+
};
|
|
812
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
813
|
+
versionKey: false;
|
|
814
|
+
virtuals: true;
|
|
815
|
+
}): Omit<any, "__v">;
|
|
816
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
817
|
+
versionKey: false;
|
|
818
|
+
flattenMaps: true;
|
|
819
|
+
flattenObjectIds: true;
|
|
820
|
+
}): {
|
|
821
|
+
[x: string]: any;
|
|
822
|
+
[x: number]: any;
|
|
823
|
+
[x: symbol]: any;
|
|
824
|
+
};
|
|
825
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
826
|
+
versionKey: false;
|
|
827
|
+
flattenObjectIds: true;
|
|
828
|
+
}): {
|
|
829
|
+
[x: string]: any;
|
|
830
|
+
[x: number]: any;
|
|
831
|
+
[x: symbol]: any;
|
|
832
|
+
};
|
|
833
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
834
|
+
versionKey: false;
|
|
835
|
+
flattenMaps: true;
|
|
836
|
+
}): Omit<mongooseRaw.FlattenMaps<any>, "__v">;
|
|
837
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
838
|
+
versionKey: false;
|
|
839
|
+
}): Omit<any, "__v">;
|
|
840
|
+
(options: mongooseRaw.ToObjectOptions & {
|
|
841
|
+
virtuals: true;
|
|
842
|
+
}): any;
|
|
843
|
+
(options?: mongooseRaw.ToObjectOptions): any;
|
|
844
|
+
<T>(options?: mongooseRaw.ToObjectOptions): mongooseRaw.Require_id<T> & {
|
|
845
|
+
__v: number;
|
|
846
|
+
};
|
|
847
|
+
} | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
|
|
848
|
+
_id: mongooseRaw.Types.ObjectId;
|
|
849
|
+
}> & {
|
|
850
|
+
__v: number;
|
|
851
|
+
}> | undefined;
|
|
852
|
+
unmarkModified?: mongooseRaw.SchemaDefinitionProperty<{
|
|
853
|
+
<T extends string | number | symbol>(path: T): void;
|
|
854
|
+
(path: string): void;
|
|
855
|
+
} | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
|
|
856
|
+
_id: mongooseRaw.Types.ObjectId;
|
|
857
|
+
}> & {
|
|
858
|
+
__v: number;
|
|
859
|
+
}> | undefined;
|
|
860
|
+
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<{
|
|
861
|
+
_id: mongooseRaw.Types.ObjectId;
|
|
862
|
+
}> & {
|
|
863
|
+
__v: number;
|
|
864
|
+
}> | undefined;
|
|
865
|
+
validate?: mongooseRaw.SchemaDefinitionProperty<{
|
|
866
|
+
<T extends string | number | symbol>(pathsToValidate?: T | T[] | undefined, options?: mongooseRaw.AnyObject): Promise<void>;
|
|
867
|
+
(pathsToValidate?: mongooseRaw.pathsToValidate, options?: mongooseRaw.AnyObject): Promise<void>;
|
|
868
|
+
(options: {
|
|
869
|
+
pathsToSkip?: mongooseRaw.pathsToSkip;
|
|
870
|
+
}): Promise<void>;
|
|
871
|
+
} | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
|
|
872
|
+
_id: mongooseRaw.Types.ObjectId;
|
|
873
|
+
}> & {
|
|
874
|
+
__v: number;
|
|
875
|
+
}> | undefined;
|
|
876
|
+
validateSync?: mongooseRaw.SchemaDefinitionProperty<{
|
|
877
|
+
(options: {
|
|
878
|
+
pathsToSkip?: mongooseRaw.pathsToSkip;
|
|
879
|
+
[k: string]: any;
|
|
880
|
+
}): mongooseRaw.Error.ValidationError | null;
|
|
881
|
+
<T extends string | number | symbol>(pathsToValidate?: T | T[] | undefined, options?: mongooseRaw.AnyObject): mongooseRaw.Error.ValidationError | null;
|
|
882
|
+
(pathsToValidate?: mongooseRaw.pathsToValidate, options?: mongooseRaw.AnyObject): mongooseRaw.Error.ValidationError | null;
|
|
883
|
+
} | undefined, I_GenericDocument, mongooseRaw.Document<unknown, {}, I_GenericDocument, {}, mongooseRaw.ResolveSchemaOptions<mongooseRaw.DefaultSchemaOptions>> & I_GenericDocument & Required<{
|
|
884
|
+
_id: mongooseRaw.Types.ObjectId;
|
|
885
|
+
}> & {
|
|
886
|
+
__v: number;
|
|
887
|
+
}> | undefined;
|
|
888
|
+
}, I_GenericDocument>;
|
|
53
889
|
/**
|
|
54
890
|
* Creates a Mongoose schema with optional virtual fields and generic fields.
|
|
55
891
|
* This function creates a new Mongoose schema from the provided schema definition,
|
|
@@ -137,9 +973,9 @@ export declare const mongo: {
|
|
|
137
973
|
}) => void;
|
|
138
974
|
init(): Promise<void>;
|
|
139
975
|
create(description: string): Promise<string>;
|
|
140
|
-
up(db:
|
|
141
|
-
down(db:
|
|
142
|
-
status(db:
|
|
976
|
+
up(db: mongooseRaw.mongo.Db, client: mongooseRaw.mongo.MongoClient): Promise<string[]>;
|
|
977
|
+
down(db: mongooseRaw.mongo.Db, client: mongooseRaw.mongo.MongoClient): Promise<string[]>;
|
|
978
|
+
status(db: mongooseRaw.mongo.Db): Promise<migrate.MigrationStatus[]>;
|
|
143
979
|
database: typeof migrate.database;
|
|
144
980
|
config: typeof migrate.config;
|
|
145
981
|
};
|
|
@@ -416,7 +1252,7 @@ export declare class MongooseController<T extends Partial<C_Document>> {
|
|
|
416
1252
|
* @param options.filter - Additional filter conditions to apply to the query.
|
|
417
1253
|
* @returns A MongoDB query object for checking slug existence.
|
|
418
1254
|
*/
|
|
419
|
-
createSlugQuery({ slug, field, isObject, haveHistory, filter }: I_Input_GenerateSlug<T>): {
|
|
1255
|
+
createSlugQuery({ slug, field, isObject, haveHistory, filter }: I_Input_GenerateSlug<T>): (mongooseRaw.QueryFilter<T> & {
|
|
420
1256
|
$or: ({
|
|
421
1257
|
[x: string]: string;
|
|
422
1258
|
slugHistory?: undefined;
|
|
@@ -427,75 +1263,7 @@ export declare class MongooseController<T extends Partial<C_Document>> {
|
|
|
427
1263
|
};
|
|
428
1264
|
};
|
|
429
1265
|
})[];
|
|
430
|
-
|
|
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;
|
|
454
|
-
deleteOne?: any;
|
|
455
|
-
depopulate?: any;
|
|
456
|
-
directModifiedPaths?: any;
|
|
457
|
-
equals?: any;
|
|
458
|
-
errors?: any;
|
|
459
|
-
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;
|
|
472
|
-
model?: any;
|
|
473
|
-
modifiedPaths?: any;
|
|
474
|
-
overwrite?: any;
|
|
475
|
-
$parent?: any;
|
|
476
|
-
populate?: any;
|
|
477
|
-
populated?: any;
|
|
478
|
-
replaceOne?: any;
|
|
479
|
-
save?: any;
|
|
480
|
-
schema?: any;
|
|
481
|
-
set?: any;
|
|
482
|
-
toJSON?: any;
|
|
483
|
-
toObject?: any;
|
|
484
|
-
unmarkModified?: any;
|
|
485
|
-
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>;
|
|
498
|
-
} | {
|
|
1266
|
+
}) | (mongooseRaw.QueryFilter<T> & {
|
|
499
1267
|
$or: ({
|
|
500
1268
|
slug: string;
|
|
501
1269
|
slugHistory?: undefined;
|
|
@@ -503,75 +1271,7 @@ export declare class MongooseController<T extends Partial<C_Document>> {
|
|
|
503
1271
|
slugHistory: string;
|
|
504
1272
|
slug?: undefined;
|
|
505
1273
|
})[];
|
|
506
|
-
|
|
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;
|
|
530
|
-
deleteOne?: any;
|
|
531
|
-
depopulate?: any;
|
|
532
|
-
directModifiedPaths?: any;
|
|
533
|
-
equals?: any;
|
|
534
|
-
errors?: any;
|
|
535
|
-
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;
|
|
548
|
-
model?: any;
|
|
549
|
-
modifiedPaths?: any;
|
|
550
|
-
overwrite?: any;
|
|
551
|
-
$parent?: any;
|
|
552
|
-
populate?: any;
|
|
553
|
-
populated?: any;
|
|
554
|
-
replaceOne?: any;
|
|
555
|
-
save?: any;
|
|
556
|
-
schema?: any;
|
|
557
|
-
set?: any;
|
|
558
|
-
toJSON?: any;
|
|
559
|
-
toObject?: any;
|
|
560
|
-
unmarkModified?: any;
|
|
561
|
-
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>;
|
|
574
|
-
};
|
|
1274
|
+
});
|
|
575
1275
|
/**
|
|
576
1276
|
* Creates a unique slug based on a given string.
|
|
577
1277
|
* This method generates multiple slug variations and finds the first available one.
|