@cyberskill/shared 1.40.0 → 1.42.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/_tsup-dts-rollup.d.cts +29 -25
- package/dist/_tsup-dts-rollup.d.ts +29 -25
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/dist/nodejs/index.cjs +1 -1
- package/dist/nodejs/index.js +1 -1
- package/dist/nodejs/mongo.cjs +1 -1
- package/dist/nodejs/mongo.js +1 -1
- package/dist/typescript/index.d.cts +4 -3
- package/dist/typescript/index.d.ts +4 -3
- package/dist/typescript/mongoose.d.cts +4 -3
- package/dist/typescript/mongoose.d.ts +4 -3
- package/package.json +2 -2
|
@@ -129,8 +129,7 @@ export { createModel }
|
|
|
129
129
|
export { createModel as createModel_alias_1 }
|
|
130
130
|
export { createModel as createModel_alias_2 }
|
|
131
131
|
|
|
132
|
-
declare function createMongoGenericFields({
|
|
133
|
-
isNew?: boolean;
|
|
132
|
+
declare function createMongoGenericFields({ returnDateAs, }?: {
|
|
134
133
|
returnDateAs?: 'string' | 'date';
|
|
135
134
|
}): I_GenericDocument_2;
|
|
136
135
|
export { createMongoGenericFields }
|
|
@@ -6147,7 +6146,7 @@ extends Model<T>, PaginateModel<T>,
|
|
|
6147
6146
|
AggregatePaginateModel<T> { }
|
|
6148
6147
|
|
|
6149
6148
|
declare interface I_GenericDocument extends Partial<C_Document> {
|
|
6150
|
-
id
|
|
6149
|
+
id: string;
|
|
6151
6150
|
isDel: boolean;
|
|
6152
6151
|
createdAt: string | Date;
|
|
6153
6152
|
updatedAt: string | Date;
|
|
@@ -6157,7 +6156,7 @@ export { I_GenericDocument as I_GenericDocument_alias_1 }
|
|
|
6157
6156
|
export { I_GenericDocument as I_GenericDocument_alias_2 }
|
|
6158
6157
|
|
|
6159
6158
|
declare interface I_GenericDocument_2 extends Partial<C_Document_2> {
|
|
6160
|
-
id
|
|
6159
|
+
id: string;
|
|
6161
6160
|
isDel: boolean;
|
|
6162
6161
|
createdAt: string | Date;
|
|
6163
6162
|
updatedAt: string | Date;
|
|
@@ -6305,18 +6304,18 @@ declare interface I_LoadingProps_2 {
|
|
|
6305
6304
|
}
|
|
6306
6305
|
|
|
6307
6306
|
declare interface I_MongooseModelMiddleware<T extends Partial<C_Document>> {
|
|
6308
|
-
method:
|
|
6309
|
-
pre?:
|
|
6310
|
-
post?:
|
|
6307
|
+
method: T_MongooseMiddlewareMethod;
|
|
6308
|
+
pre?: T_MongooseMiddlewarePreFunction<T & T_QueryWithHelpers<T>>;
|
|
6309
|
+
post?: T_MongooseMiddlewarePostFunction<T>;
|
|
6311
6310
|
}
|
|
6312
6311
|
export { I_MongooseModelMiddleware }
|
|
6313
6312
|
export { I_MongooseModelMiddleware as I_MongooseModelMiddleware_alias_1 }
|
|
6314
6313
|
export { I_MongooseModelMiddleware as I_MongooseModelMiddleware_alias_2 }
|
|
6315
6314
|
|
|
6316
6315
|
declare interface I_MongooseModelMiddleware_2<T extends Partial<C_Document_2>> {
|
|
6317
|
-
method:
|
|
6318
|
-
pre?:
|
|
6319
|
-
post?:
|
|
6316
|
+
method: T_MongooseMiddlewareMethod_2;
|
|
6317
|
+
pre?: T_MongooseMiddlewarePreFunction_2<T & T_QueryWithHelpers_2<T>>;
|
|
6318
|
+
post?: T_MongooseMiddlewarePostFunction_2<T>;
|
|
6320
6319
|
}
|
|
6321
6320
|
|
|
6322
6321
|
declare interface I_MongooseOptions<T extends Partial<C_Document>> {
|
|
@@ -7043,26 +7042,31 @@ export { T_InsertOneResult as T_InsertOneResult_alias_2 }
|
|
|
7043
7042
|
|
|
7044
7043
|
declare type T_InsertOneResult_2<T> = InsertOneResult<T>;
|
|
7045
7044
|
|
|
7046
|
-
declare type
|
|
7047
|
-
export {
|
|
7048
|
-
export {
|
|
7049
|
-
export {
|
|
7045
|
+
declare type T_MongooseHookNextFunction = (error?: Error) => void;
|
|
7046
|
+
export { T_MongooseHookNextFunction }
|
|
7047
|
+
export { T_MongooseHookNextFunction as T_MongooseHookNextFunction_alias_1 }
|
|
7048
|
+
export { T_MongooseHookNextFunction as T_MongooseHookNextFunction_alias_2 }
|
|
7050
7049
|
|
|
7051
|
-
declare type
|
|
7050
|
+
declare type T_MongooseMiddlewareMethod = string | RegExp;
|
|
7051
|
+
export { T_MongooseMiddlewareMethod }
|
|
7052
|
+
export { T_MongooseMiddlewareMethod as T_MongooseMiddlewareMethod_alias_1 }
|
|
7053
|
+
export { T_MongooseMiddlewareMethod as T_MongooseMiddlewareMethod_alias_2 }
|
|
7052
7054
|
|
|
7053
|
-
declare type
|
|
7054
|
-
export { T_MongooseModelMiddlewarePostFunction }
|
|
7055
|
-
export { T_MongooseModelMiddlewarePostFunction as T_MongooseModelMiddlewarePostFunction_alias_1 }
|
|
7056
|
-
export { T_MongooseModelMiddlewarePostFunction as T_MongooseModelMiddlewarePostFunction_alias_2 }
|
|
7055
|
+
declare type T_MongooseMiddlewareMethod_2 = string | RegExp;
|
|
7057
7056
|
|
|
7058
|
-
declare type
|
|
7057
|
+
declare type T_MongooseMiddlewarePostFunction<T> = T_PostMiddlewareFunction<T> & T_ErrorHandlingMiddlewareFunction<T> & T_ErrorHandlingMiddlewareWithOption<T>;
|
|
7058
|
+
export { T_MongooseMiddlewarePostFunction }
|
|
7059
|
+
export { T_MongooseMiddlewarePostFunction as T_MongooseMiddlewarePostFunction_alias_1 }
|
|
7060
|
+
export { T_MongooseMiddlewarePostFunction as T_MongooseMiddlewarePostFunction_alias_2 }
|
|
7059
7061
|
|
|
7060
|
-
declare type
|
|
7061
|
-
export { T_MongooseModelMiddlewarePreFunction }
|
|
7062
|
-
export { T_MongooseModelMiddlewarePreFunction as T_MongooseModelMiddlewarePreFunction_alias_1 }
|
|
7063
|
-
export { T_MongooseModelMiddlewarePreFunction as T_MongooseModelMiddlewarePreFunction_alias_2 }
|
|
7062
|
+
declare type T_MongooseMiddlewarePostFunction_2<T> = T_PostMiddlewareFunction_2<T> & T_ErrorHandlingMiddlewareFunction_2<T> & T_ErrorHandlingMiddlewareWithOption_2<T>;
|
|
7064
7063
|
|
|
7065
|
-
declare type
|
|
7064
|
+
declare type T_MongooseMiddlewarePreFunction<T> = T_PreMiddlewareFunction<T> & T_PreSaveMiddlewareFunction<T>;
|
|
7065
|
+
export { T_MongooseMiddlewarePreFunction }
|
|
7066
|
+
export { T_MongooseMiddlewarePreFunction as T_MongooseMiddlewarePreFunction_alias_1 }
|
|
7067
|
+
export { T_MongooseMiddlewarePreFunction as T_MongooseMiddlewarePreFunction_alias_2 }
|
|
7068
|
+
|
|
7069
|
+
declare type T_MongooseMiddlewarePreFunction_2<T> = T_PreMiddlewareFunction_2<T> & T_PreSaveMiddlewareFunction_2<T>;
|
|
7066
7070
|
|
|
7067
7071
|
declare type T_MongoosePlugin = (schema: Schema, options?: Record<string, unknown>) => void;
|
|
7068
7072
|
export { T_MongoosePlugin }
|
|
@@ -129,8 +129,7 @@ export { createModel }
|
|
|
129
129
|
export { createModel as createModel_alias_1 }
|
|
130
130
|
export { createModel as createModel_alias_2 }
|
|
131
131
|
|
|
132
|
-
declare function createMongoGenericFields({
|
|
133
|
-
isNew?: boolean;
|
|
132
|
+
declare function createMongoGenericFields({ returnDateAs, }?: {
|
|
134
133
|
returnDateAs?: 'string' | 'date';
|
|
135
134
|
}): I_GenericDocument_2;
|
|
136
135
|
export { createMongoGenericFields }
|
|
@@ -6147,7 +6146,7 @@ extends Model<T>, PaginateModel<T>,
|
|
|
6147
6146
|
AggregatePaginateModel<T> { }
|
|
6148
6147
|
|
|
6149
6148
|
declare interface I_GenericDocument extends Partial<C_Document> {
|
|
6150
|
-
id
|
|
6149
|
+
id: string;
|
|
6151
6150
|
isDel: boolean;
|
|
6152
6151
|
createdAt: string | Date;
|
|
6153
6152
|
updatedAt: string | Date;
|
|
@@ -6157,7 +6156,7 @@ export { I_GenericDocument as I_GenericDocument_alias_1 }
|
|
|
6157
6156
|
export { I_GenericDocument as I_GenericDocument_alias_2 }
|
|
6158
6157
|
|
|
6159
6158
|
declare interface I_GenericDocument_2 extends Partial<C_Document_2> {
|
|
6160
|
-
id
|
|
6159
|
+
id: string;
|
|
6161
6160
|
isDel: boolean;
|
|
6162
6161
|
createdAt: string | Date;
|
|
6163
6162
|
updatedAt: string | Date;
|
|
@@ -6305,18 +6304,18 @@ declare interface I_LoadingProps_2 {
|
|
|
6305
6304
|
}
|
|
6306
6305
|
|
|
6307
6306
|
declare interface I_MongooseModelMiddleware<T extends Partial<C_Document>> {
|
|
6308
|
-
method:
|
|
6309
|
-
pre?:
|
|
6310
|
-
post?:
|
|
6307
|
+
method: T_MongooseMiddlewareMethod;
|
|
6308
|
+
pre?: T_MongooseMiddlewarePreFunction<T & T_QueryWithHelpers<T>>;
|
|
6309
|
+
post?: T_MongooseMiddlewarePostFunction<T>;
|
|
6311
6310
|
}
|
|
6312
6311
|
export { I_MongooseModelMiddleware }
|
|
6313
6312
|
export { I_MongooseModelMiddleware as I_MongooseModelMiddleware_alias_1 }
|
|
6314
6313
|
export { I_MongooseModelMiddleware as I_MongooseModelMiddleware_alias_2 }
|
|
6315
6314
|
|
|
6316
6315
|
declare interface I_MongooseModelMiddleware_2<T extends Partial<C_Document_2>> {
|
|
6317
|
-
method:
|
|
6318
|
-
pre?:
|
|
6319
|
-
post?:
|
|
6316
|
+
method: T_MongooseMiddlewareMethod_2;
|
|
6317
|
+
pre?: T_MongooseMiddlewarePreFunction_2<T & T_QueryWithHelpers_2<T>>;
|
|
6318
|
+
post?: T_MongooseMiddlewarePostFunction_2<T>;
|
|
6320
6319
|
}
|
|
6321
6320
|
|
|
6322
6321
|
declare interface I_MongooseOptions<T extends Partial<C_Document>> {
|
|
@@ -7043,26 +7042,31 @@ export { T_InsertOneResult as T_InsertOneResult_alias_2 }
|
|
|
7043
7042
|
|
|
7044
7043
|
declare type T_InsertOneResult_2<T> = InsertOneResult<T>;
|
|
7045
7044
|
|
|
7046
|
-
declare type
|
|
7047
|
-
export {
|
|
7048
|
-
export {
|
|
7049
|
-
export {
|
|
7045
|
+
declare type T_MongooseHookNextFunction = (error?: Error) => void;
|
|
7046
|
+
export { T_MongooseHookNextFunction }
|
|
7047
|
+
export { T_MongooseHookNextFunction as T_MongooseHookNextFunction_alias_1 }
|
|
7048
|
+
export { T_MongooseHookNextFunction as T_MongooseHookNextFunction_alias_2 }
|
|
7050
7049
|
|
|
7051
|
-
declare type
|
|
7050
|
+
declare type T_MongooseMiddlewareMethod = string | RegExp;
|
|
7051
|
+
export { T_MongooseMiddlewareMethod }
|
|
7052
|
+
export { T_MongooseMiddlewareMethod as T_MongooseMiddlewareMethod_alias_1 }
|
|
7053
|
+
export { T_MongooseMiddlewareMethod as T_MongooseMiddlewareMethod_alias_2 }
|
|
7052
7054
|
|
|
7053
|
-
declare type
|
|
7054
|
-
export { T_MongooseModelMiddlewarePostFunction }
|
|
7055
|
-
export { T_MongooseModelMiddlewarePostFunction as T_MongooseModelMiddlewarePostFunction_alias_1 }
|
|
7056
|
-
export { T_MongooseModelMiddlewarePostFunction as T_MongooseModelMiddlewarePostFunction_alias_2 }
|
|
7055
|
+
declare type T_MongooseMiddlewareMethod_2 = string | RegExp;
|
|
7057
7056
|
|
|
7058
|
-
declare type
|
|
7057
|
+
declare type T_MongooseMiddlewarePostFunction<T> = T_PostMiddlewareFunction<T> & T_ErrorHandlingMiddlewareFunction<T> & T_ErrorHandlingMiddlewareWithOption<T>;
|
|
7058
|
+
export { T_MongooseMiddlewarePostFunction }
|
|
7059
|
+
export { T_MongooseMiddlewarePostFunction as T_MongooseMiddlewarePostFunction_alias_1 }
|
|
7060
|
+
export { T_MongooseMiddlewarePostFunction as T_MongooseMiddlewarePostFunction_alias_2 }
|
|
7059
7061
|
|
|
7060
|
-
declare type
|
|
7061
|
-
export { T_MongooseModelMiddlewarePreFunction }
|
|
7062
|
-
export { T_MongooseModelMiddlewarePreFunction as T_MongooseModelMiddlewarePreFunction_alias_1 }
|
|
7063
|
-
export { T_MongooseModelMiddlewarePreFunction as T_MongooseModelMiddlewarePreFunction_alias_2 }
|
|
7062
|
+
declare type T_MongooseMiddlewarePostFunction_2<T> = T_PostMiddlewareFunction_2<T> & T_ErrorHandlingMiddlewareFunction_2<T> & T_ErrorHandlingMiddlewareWithOption_2<T>;
|
|
7064
7063
|
|
|
7065
|
-
declare type
|
|
7064
|
+
declare type T_MongooseMiddlewarePreFunction<T> = T_PreMiddlewareFunction<T> & T_PreSaveMiddlewareFunction<T>;
|
|
7065
|
+
export { T_MongooseMiddlewarePreFunction }
|
|
7066
|
+
export { T_MongooseMiddlewarePreFunction as T_MongooseMiddlewarePreFunction_alias_1 }
|
|
7067
|
+
export { T_MongooseMiddlewarePreFunction as T_MongooseMiddlewarePreFunction_alias_2 }
|
|
7068
|
+
|
|
7069
|
+
declare type T_MongooseMiddlewarePreFunction_2<T> = T_PreMiddlewareFunction_2<T> & T_PreSaveMiddlewareFunction_2<T>;
|
|
7066
7070
|
|
|
7067
7071
|
declare type T_MongoosePlugin = (schema: Schema, options?: Record<string, unknown>) => void;
|
|
7068
7072
|
export { T_MongoosePlugin }
|