@open-norantec/utilities 2.1.3 → 2.1.5

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/enums.d.ts CHANGED
@@ -49,8 +49,8 @@ export declare namespace Enums {
49
49
  readonly DEBUG: "debug";
50
50
  };
51
51
  }
52
- export declare namespace EnumTypes {
53
- type OrderOrientation = (typeof Enums.OrderOrientation)[keyof typeof Enums.OrderOrientation];
54
- type WhereClauseOp = (typeof Enums.WhereClauseOp)[keyof typeof Enums.WhereClauseOp];
55
- type LogLevel = (typeof Enums.LogLevel)[keyof typeof Enums.LogLevel];
52
+ export interface EnumTypes {
53
+ OrderOrientation: (typeof Enums.OrderOrientation)[keyof typeof Enums.OrderOrientation];
54
+ WhereClauseOp: (typeof Enums.WhereClauseOp)[keyof typeof Enums.WhereClauseOp];
55
+ LogLevel: (typeof Enums.LogLevel)[keyof typeof Enums.LogLevel];
56
56
  }
@@ -1,7 +1,7 @@
1
1
  import { EnumTypes } from './enums';
2
2
  export declare class LogUtil {
3
3
  private readonly defaultLogLevel;
4
- constructor(defaultLogLevel?: EnumTypes.LogLevel);
5
- match(bottomLogLevel: EnumTypes.LogLevel | boolean, logLevel: EnumTypes.LogLevel): boolean;
6
- log(level: EnumTypes.LogLevel, message: string | Error): void;
4
+ constructor(defaultLogLevel?: EnumTypes['LogLevel']);
5
+ match(bottomLogLevel: EnumTypes['LogLevel'] | boolean, logLevel: EnumTypes['LogLevel']): boolean;
6
+ log(level: EnumTypes['LogLevel'], message: string | Error): void;
7
7
  }
package/dist/schemas.d.ts CHANGED
@@ -482,17 +482,17 @@ export declare namespace Schemas {
482
482
  }, z.core.$strip>], "type">>>>;
483
483
  }, z.core.$strip>;
484
484
  }
485
- export declare namespace SchemaTypes {
486
- type CommonResult = z.infer<typeof Schemas.COMMON_RESULT>;
487
- type File = z.infer<typeof Schemas.FILE>;
488
- type FindOneOptions = z.infer<typeof Schemas.FIND_ONE_OPTIONS>;
489
- type IDObject = z.infer<typeof Schemas.ID_OBJECT>;
490
- type LogLevel = z.infer<typeof Schemas.LOG_LEVEL>;
491
- type OrderItem = z.infer<typeof Schemas.ORDER_ITEM>;
492
- type OrderOrientation = z.infer<typeof Schemas.ORDER_ORIENTATION>;
493
- type PaginationOptions = z.infer<typeof Schemas.PAGINATION_OPTIONS>;
494
- type PaginationResult = z.infer<typeof Schemas.PAGINATION_RESULT>;
495
- type TimeRecord = z.infer<typeof Schemas.TIME_RECORD>;
496
- type WhereClause = z.infer<typeof Schemas.WHERE_CLAUSE>;
497
- type WhereClauseOp = z.infer<typeof Schemas.WHERE_CLAUSE_OP>;
485
+ export interface SchemaTypes {
486
+ CommonResult: z.infer<typeof Schemas.COMMON_RESULT>;
487
+ File: z.infer<typeof Schemas.FILE>;
488
+ FindOneOptions: z.infer<typeof Schemas.FIND_ONE_OPTIONS>;
489
+ IDObject: z.infer<typeof Schemas.ID_OBJECT>;
490
+ LogLevel: z.infer<typeof Schemas.LOG_LEVEL>;
491
+ OrderItem: z.infer<typeof Schemas.ORDER_ITEM>;
492
+ OrderOrientation: z.infer<typeof Schemas.ORDER_ORIENTATION>;
493
+ PaginationOptions: z.infer<typeof Schemas.PAGINATION_OPTIONS>;
494
+ PaginationResult: z.infer<typeof Schemas.PAGINATION_RESULT>;
495
+ TimeRecord: z.infer<typeof Schemas.TIME_RECORD>;
496
+ WhereClause: z.infer<typeof Schemas.WHERE_CLAUSE>;
497
+ WhereClauseOp: z.infer<typeof Schemas.WHERE_CLAUSE_OP>;
498
498
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-norantec/utilities",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "NoranTec Utilities",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -24,6 +24,7 @@
24
24
  "LICENSE",
25
25
  "README.md"
26
26
  ],
27
+ "type": "commonjs",
27
28
  "publishConfig": {
28
29
  "access": "public",
29
30
  "registry": "https://registry.npmjs.org"