@nomalism-com/types 0.25.23 → 0.25.25

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.
@@ -45,12 +45,10 @@ export type IFindTasksRequest = {
45
45
  archived?: boolean;
46
46
  };
47
47
  export type findByOwnerResponse = {
48
- task: {
49
- from: string;
50
- to: string;
51
- task: string;
52
- created_at: Date;
53
- };
48
+ from: string;
49
+ to: string;
50
+ task: string;
51
+ created_at: Date;
54
52
  };
55
53
  export interface IRepository {
56
54
  find(selector: IFindTasksRequest): Promise<IFindResponse[]>;
@@ -58,6 +56,6 @@ export interface IRepository {
58
56
  create(data: ICreateRequest): Promise<Entity>;
59
57
  update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
60
58
  delete(selector: IShared.IFindByIdRequest): Promise<void>;
61
- findByOwnerId: (owner_id: IShared.IFindByOwnerIdRequest) => Promise<findByOwnerResponse[]>;
59
+ findByOwnerId: (selector: IShared.IFindByOwnerIdRequest) => Promise<findByOwnerResponse[]>;
62
60
  }
63
61
  export type IController = IShared.IEntityWithUserToken<IRepository>;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.25.23",
12
+ "version": "0.25.25",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [