@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.
@@ -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({ isNew, returnDateAs, }?: {
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?: string;
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?: string;
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 validate: {
7256
- common: {
7257
- isEmpty(value: unknown): boolean;
7258
- isEmptyValidator<T>(): (this: T, value: unknown) => Promise<boolean>;
7259
- isUniqueValidator<T extends {
7260
- constructor: {
7261
- findOne: (query: Record<string, unknown>) => Promise<unknown>;
7262
- };
7263
- }>(fields: string[]): (this: T, value: unknown) => Promise<boolean>;
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 { validate }
7268
- export { validate as validate_alias_1 }
7269
- export { validate as validate_alias_2 }
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({ isNew, returnDateAs, }?: {
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?: string;
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?: string;
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 validate: {
7256
- common: {
7257
- isEmpty(value: unknown): boolean;
7258
- isEmptyValidator<T>(): (this: T, value: unknown) => Promise<boolean>;
7259
- isUniqueValidator<T extends {
7260
- constructor: {
7261
- findOne: (query: Record<string, unknown>) => Promise<unknown>;
7262
- };
7263
- }>(fields: string[]): (this: T, value: unknown) => Promise<boolean>;
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 { validate }
7268
- export { validate as validate_alias_1 }
7269
- export { validate as validate_alias_2 }
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;