turf-common 1.3.1-beta.7 → 1.3.1-beta.9

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.
@@ -8,10 +8,7 @@ export interface IGetCollectionResponse {
8
8
  }>;
9
9
  };
10
10
  users: {
11
- [key: number]: Modify<IUserEntity, {
12
- createdOn: string;
13
- updatedOn: string;
14
- }>;
11
+ [key: number]: Pick<IUserEntity, "id" | "firstname" | "phone" | "email" | "type">;
15
12
  };
16
13
  total: IDateWisePaymentHistoryData;
17
14
  payments: Modify<IBookingPaymentHistoryEntity, {
@@ -2,7 +2,6 @@ import { UserStatus } from "../../enums/user-status.enum";
2
2
  import { UserType } from "../../enums/valid-type.enum";
3
3
  import { IUserModel } from "../../interface/model/user-model.interface";
4
4
  import { ITurfEntity } from "../../interface/entity/turf-entity.interface";
5
- import { IUserEntity } from "../../interface/entity/user-entity.interface";
6
5
  export declare class UserModel implements IUserModel {
7
6
  id: number;
8
7
  firstname: string;
@@ -25,7 +24,9 @@ export declare class UserModel implements IUserModel {
25
24
  turf: ITurfEntity[];
26
25
  imageUrl: string;
27
26
  constructor(data: IUserModel);
28
- static toMap(userEntities: IUserEntity[]): {
29
- [key: number]: IUserEntity;
27
+ static toMap<T extends {
28
+ id: number;
29
+ }>(userEntities: T[]): {
30
+ [key: number]: T;
30
31
  };
31
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.3.1-beta.7",
3
+ "version": "1.3.1-beta.9",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",