@nomalism-com/types 0.35.3 → 0.35.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.
@@ -10,9 +10,9 @@ export declare const ITagTypeEnum: {
10
10
  };
11
11
  export type ITagType = (typeof ITagTypeEnum)[keyof typeof ITagTypeEnum];
12
12
  export declare const ITagType: string[];
13
- export type ICreateRequest = Omit<Entity, 'id' | 'createdAt' | 'updatedAt'>;
13
+ export type ICreateRequest = Omit<Entity, 'id' | 'created_at' | 'updated_at' | 'created_by' | 'updated_by'>;
14
14
  export type IUpdateRequest = Pick<Entity, 'index' | 'type'>;
15
- export type IFindResponse = Omit<Entity, 'createdAt' | 'updatedAt'>;
15
+ export type IFindResponse = Omit<Entity, 'created_at' | 'updated_at'>;
16
16
  export interface IRepository {
17
17
  create(data: ICreateRequest): Promise<void>;
18
18
  findByDocumentHeaderId(selector: IShared.IFindByIdRequest): Promise<IFindResponse[]>;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.35.3",
12
+ "version": "0.35.4",
13
13
  "type": "module",
14
14
  "module": "./dist/index.js",
15
15
  "main": "./dist/index.cjs",
@@ -19,9 +19,12 @@ export type ITagType = (typeof ITagTypeEnum)[keyof typeof ITagTypeEnum];
19
19
 
20
20
  export const ITagType = Object.keys(ITagTypeEnum);
21
21
 
22
- export type ICreateRequest = Omit<Entity, 'id' | 'createdAt' | 'updatedAt'>;
22
+ export type ICreateRequest = Omit<
23
+ Entity,
24
+ 'id' | 'created_at' | 'updated_at' | 'created_by' | 'updated_by'
25
+ >;
23
26
  export type IUpdateRequest = Pick<Entity, 'index' | 'type'>;
24
- export type IFindResponse = Omit<Entity, 'createdAt' | 'updatedAt'>;
27
+ export type IFindResponse = Omit<Entity, 'created_at' | 'updated_at'>;
25
28
 
26
29
  export interface IRepository {
27
30
  create(data: ICreateRequest): Promise<void>;