elseware-nodejs 1.8.3 → 1.8.4

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/index.d.cts CHANGED
@@ -1818,7 +1818,9 @@ declare const GlobalErrorHandler: (isProd?: boolean) => (err: unknown, _req: Req
1818
1818
  declare const validate: (schema: Schema) => (req: Request, _res: Response, next: NextFunction) => void;
1819
1819
 
1820
1820
  type Filter<T> = Partial<Record<keyof T, unknown>>;
1821
- type Select<T> = (keyof T)[] | Partial<Record<keyof T, 0 | 1>>;
1821
+ type Field<T> = Extract<keyof T, string>;
1822
+ type PrefixedField<T> = `+${Field<T>}` | `-${Field<T>}`;
1823
+ type Select<T> = (Field<T> | PrefixedField<T>)[] | Partial<Record<Field<T>, 0 | 1>>;
1822
1824
  type Sort<T> = Partial<Record<keyof T, 1 | -1>>;
1823
1825
 
1824
1826
  interface IQueryOptions<T> {
package/dist/index.d.ts CHANGED
@@ -1818,7 +1818,9 @@ declare const GlobalErrorHandler: (isProd?: boolean) => (err: unknown, _req: Req
1818
1818
  declare const validate: (schema: Schema) => (req: Request, _res: Response, next: NextFunction) => void;
1819
1819
 
1820
1820
  type Filter<T> = Partial<Record<keyof T, unknown>>;
1821
- type Select<T> = (keyof T)[] | Partial<Record<keyof T, 0 | 1>>;
1821
+ type Field<T> = Extract<keyof T, string>;
1822
+ type PrefixedField<T> = `+${Field<T>}` | `-${Field<T>}`;
1823
+ type Select<T> = (Field<T> | PrefixedField<T>)[] | Partial<Record<Field<T>, 0 | 1>>;
1822
1824
  type Sort<T> = Partial<Record<keyof T, 1 | -1>>;
1823
1825
 
1824
1826
  interface IQueryOptions<T> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elseware-nodejs",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "private": false,
5
5
  "description": "Core framework utilities for elseware NodeJS applications",
6
6
  "type": "module",