@cyberskill/shared 1.41.0 → 1.43.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 +15 -18
- package/dist/_tsup-dts-rollup.d.ts +15 -18
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/nodejs/index.cjs +1 -1
- package/dist/nodejs/index.d.cts +1 -0
- package/dist/nodejs/index.d.ts +1 -0
- package/dist/nodejs/index.js +1 -1
- package/dist/nodejs/mongo.cjs +1 -1
- package/dist/nodejs/mongo.js +1 -1
- package/dist/nodejs/mongoose.cjs +1 -1
- package/dist/nodejs/mongoose.d.cts +1 -0
- package/dist/nodejs/mongoose.d.ts +1 -0
- package/dist/nodejs/mongoose.js +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.cts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +1 -1
- package/package.json +2 -2
- package/dist/utils/validate.cjs +0 -1
- package/dist/utils/validate.d.cts +0 -1
- package/dist/utils/validate.d.ts +0 -1
- package/dist/utils/validate.js +0 -1
|
@@ -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;
|
|
@@ -7252,21 +7251,19 @@ export { useTranslateNextIntl }
|
|
|
7252
7251
|
export { useTranslateNextIntl as useTranslateNextIntl_alias_1 }
|
|
7253
7252
|
export { useTranslateNextIntl as useTranslateNextIntl_alias_2 }
|
|
7254
7253
|
|
|
7255
|
-
declare const
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
matchesRegexValidator(regexArray: RegExp[]): (value: string) => Promise<boolean>;
|
|
7265
|
-
};
|
|
7254
|
+
declare const validateMongooseField: {
|
|
7255
|
+
isEmpty(value: unknown): boolean;
|
|
7256
|
+
isEmptyValidator<T>(): (this: T, value: unknown) => Promise<boolean>;
|
|
7257
|
+
isUniqueValidator<T extends {
|
|
7258
|
+
constructor: {
|
|
7259
|
+
findOne: (query: Record<string, unknown>) => Promise<unknown>;
|
|
7260
|
+
};
|
|
7261
|
+
}>(fields: string[]): (this: T, value: unknown) => Promise<boolean>;
|
|
7262
|
+
matchesRegexValidator(regexArray: RegExp[]): (value: string) => Promise<boolean>;
|
|
7266
7263
|
};
|
|
7267
|
-
export {
|
|
7268
|
-
export {
|
|
7269
|
-
export {
|
|
7264
|
+
export { validateMongooseField }
|
|
7265
|
+
export { validateMongooseField as validateMongooseField_alias_1 }
|
|
7266
|
+
export { validateMongooseField as validateMongooseField_alias_2 }
|
|
7270
7267
|
|
|
7271
7268
|
declare function withNextIntl<T extends {
|
|
7272
7269
|
children: T_Children_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;
|
|
@@ -7252,21 +7251,19 @@ export { useTranslateNextIntl }
|
|
|
7252
7251
|
export { useTranslateNextIntl as useTranslateNextIntl_alias_1 }
|
|
7253
7252
|
export { useTranslateNextIntl as useTranslateNextIntl_alias_2 }
|
|
7254
7253
|
|
|
7255
|
-
declare const
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
matchesRegexValidator(regexArray: RegExp[]): (value: string) => Promise<boolean>;
|
|
7265
|
-
};
|
|
7254
|
+
declare const validateMongooseField: {
|
|
7255
|
+
isEmpty(value: unknown): boolean;
|
|
7256
|
+
isEmptyValidator<T>(): (this: T, value: unknown) => Promise<boolean>;
|
|
7257
|
+
isUniqueValidator<T extends {
|
|
7258
|
+
constructor: {
|
|
7259
|
+
findOne: (query: Record<string, unknown>) => Promise<unknown>;
|
|
7260
|
+
};
|
|
7261
|
+
}>(fields: string[]): (this: T, value: unknown) => Promise<boolean>;
|
|
7262
|
+
matchesRegexValidator(regexArray: RegExp[]): (value: string) => Promise<boolean>;
|
|
7266
7263
|
};
|
|
7267
|
-
export {
|
|
7268
|
-
export {
|
|
7269
|
-
export {
|
|
7264
|
+
export { validateMongooseField }
|
|
7265
|
+
export { validateMongooseField as validateMongooseField_alias_1 }
|
|
7266
|
+
export { validateMongooseField as validateMongooseField_alias_2 }
|
|
7270
7267
|
|
|
7271
7268
|
declare function withNextIntl<T extends {
|
|
7272
7269
|
children: T_Children_2;
|