turf-common 1.0.16-beta.28 → 1.0.16-beta.30
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/build/interface/turf-model.interface.d.ts +2 -2
- package/build/interface/user-model.interface.d.ts +2 -2
- package/build/models/turf-model.d.ts +6 -6
- package/build/models/user-model.d.ts +2 -2
- package/build/types/entity/coupon.entity.type.d.ts +4 -4
- package/build/types/entity/organization-entity.type.d.ts +6 -6
- package/build/types/entity/pitch-entity.type.d.ts +2 -2
- package/build/types/entity/turf-entity.type.d.ts +7 -7
- package/build/types/entity/user-entity.type.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IPitchStatus } from "../enums/pitch-status.enum";
|
|
2
|
-
import { ITurfEntity
|
|
2
|
+
import { ITurfEntity } from "../types/entity/turf-entity.type";
|
|
3
3
|
import { ITurf } from "./get-turf-entity.interface";
|
|
4
|
-
export interface ITurfModel extends ITurfEntity
|
|
4
|
+
export interface ITurfModel extends ITurfEntity {
|
|
5
5
|
getPitchStatusCount(): IPitchStatus;
|
|
6
6
|
getModifiedTurfEntity(): ITurf;
|
|
7
7
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IUserEntity
|
|
2
|
-
export interface IUserModel extends IUserEntity
|
|
1
|
+
import { IUserEntity } from "../types/entity/user-entity.type";
|
|
2
|
+
export interface IUserModel extends IUserEntity {
|
|
3
3
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IPitchStatus } from "../enums/pitch-status.enum";
|
|
2
2
|
import { ITurf } from "../interface/get-turf-entity.interface";
|
|
3
3
|
import { ITurfModel } from "../interface/turf-model.interface";
|
|
4
|
-
import { IOrganizationEntity
|
|
4
|
+
import { IOrganizationEntity } from "../types/entity/organization-entity.type";
|
|
5
5
|
import { IPitchEntity } from "../types/entity/pitch-entity.type";
|
|
6
6
|
import { ISubscriptionPitchMappingEntity } from "../types/entity/subscription-pitch-mapping.type";
|
|
7
|
-
import { ITurfEntity
|
|
8
|
-
import {
|
|
7
|
+
import { ITurfEntity } from "../types/entity/turf-entity.type";
|
|
8
|
+
import { IUserEntity } from "../types/entity/user-entity.type";
|
|
9
9
|
export declare class TurfModel implements ITurfModel {
|
|
10
10
|
id: number;
|
|
11
11
|
turfName: string;
|
|
@@ -18,8 +18,8 @@ export declare class TurfModel implements ITurfModel {
|
|
|
18
18
|
createdBy: number;
|
|
19
19
|
updatedBy: number;
|
|
20
20
|
pitches: IPitchEntity[];
|
|
21
|
-
organization: IOrganizationEntity
|
|
22
|
-
Users:
|
|
21
|
+
organization: IOrganizationEntity;
|
|
22
|
+
Users: IUserEntity[];
|
|
23
23
|
constructor(data: ITurfEntity);
|
|
24
24
|
getPitchStatusCount(): IPitchStatus;
|
|
25
25
|
getModifiedTurfEntity(): ITurf;
|
|
@@ -30,5 +30,5 @@ export declare class TurfModel implements ITurfModel {
|
|
|
30
30
|
[key: number]: ITurfEntity;
|
|
31
31
|
};
|
|
32
32
|
static fromEntity(data: ITurfEntity): ITurfModel;
|
|
33
|
-
static filterBySubscriptionPitchMapping(turfEntities:
|
|
33
|
+
static filterBySubscriptionPitchMapping(turfEntities: ITurfEntity[], subscriptionPitchMappingEntities: ISubscriptionPitchMappingEntity[], pitchStatusSet: Set<string>): ITurfEntity[];
|
|
34
34
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UserStatus } from "../enums/user-status.enum";
|
|
2
2
|
import { UserType } from "../enums/valid-type.enum";
|
|
3
3
|
import { IUserModel } from "../interface/user-model.interface";
|
|
4
|
-
import {
|
|
4
|
+
import { ITurfEntity } from "../types/entity/turf-entity.type";
|
|
5
5
|
import { IUserEntity } from "../types/entity/user-entity.type";
|
|
6
6
|
export declare class UserModel implements IUserModel {
|
|
7
7
|
id: number;
|
|
@@ -23,7 +23,7 @@ export declare class UserModel implements IUserModel {
|
|
|
23
23
|
updatedBy: number;
|
|
24
24
|
registrationId: number;
|
|
25
25
|
comments: string;
|
|
26
|
-
turf:
|
|
26
|
+
turf: ITurfEntity[];
|
|
27
27
|
constructor(data: IUserModel);
|
|
28
28
|
static toMap(userEntities: IUserEntity[]): {
|
|
29
29
|
[key: number]: IUserEntity;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IEntityAuditColumn } from "./entity-audit-column.type";
|
|
2
|
-
import {
|
|
3
|
-
export interface ICouponEntity extends IEntityAuditColumn {
|
|
2
|
+
import { IOrganizationEntity } from "./organization-entity.type";
|
|
3
|
+
export interface ICouponEntity extends IEntityAuditColumn, ICouponEntityRel {
|
|
4
4
|
id: number;
|
|
5
5
|
code: string;
|
|
6
6
|
org_id: number;
|
|
7
7
|
}
|
|
8
|
-
export interface ICouponEntityRel
|
|
9
|
-
organization:
|
|
8
|
+
export interface ICouponEntityRel {
|
|
9
|
+
organization: IOrganizationEntity;
|
|
10
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OrganizationStatus } from "../../enums/organization-status.enum";
|
|
2
|
-
import {
|
|
2
|
+
import { ICouponEntity } from "./coupon.entity.type";
|
|
3
3
|
import { IEntityAuditColumn } from "./entity-audit-column.type";
|
|
4
|
-
import {
|
|
5
|
-
export interface IOrganizationEntity extends IEntityAuditColumn {
|
|
4
|
+
import { ITurfEntity } from "./turf-entity.type";
|
|
5
|
+
export interface IOrganizationEntity extends IEntityAuditColumn, IOrganizationEntityRel {
|
|
6
6
|
id: number;
|
|
7
7
|
name: string;
|
|
8
8
|
email: string;
|
|
@@ -17,7 +17,7 @@ export interface IOrganizationEntity extends IEntityAuditColumn {
|
|
|
17
17
|
status: OrganizationStatus;
|
|
18
18
|
registrationId: number;
|
|
19
19
|
}
|
|
20
|
-
export interface IOrganizationEntityRel
|
|
21
|
-
turfs:
|
|
22
|
-
coupon:
|
|
20
|
+
export interface IOrganizationEntityRel {
|
|
21
|
+
turfs: ITurfEntity[];
|
|
22
|
+
coupon: ICouponEntity[];
|
|
23
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IEntityAuditColumn } from "./entity-audit-column.type";
|
|
2
|
-
import {
|
|
2
|
+
import { ITurfEntity } from "./turf-entity.type";
|
|
3
3
|
export interface IPitchEntity extends IEntityAuditColumn {
|
|
4
|
-
turf:
|
|
4
|
+
turf: ITurfEntity;
|
|
5
5
|
number: number;
|
|
6
6
|
name: string;
|
|
7
7
|
status: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IEntityAuditColumn } from "./entity-audit-column.type";
|
|
2
|
-
import {
|
|
2
|
+
import { IOrganizationEntity } from "./organization-entity.type";
|
|
3
3
|
import { IPitchEntity } from "./pitch-entity.type";
|
|
4
|
-
import {
|
|
5
|
-
export interface ITurfEntity extends IEntityAuditColumn {
|
|
4
|
+
import { IUserEntity } from "./user-entity.type";
|
|
5
|
+
export interface ITurfEntity extends IEntityAuditColumn, ITurfEntityRel {
|
|
6
6
|
id: number;
|
|
7
7
|
turfName: string;
|
|
8
8
|
numberOfPitches: number;
|
|
@@ -10,8 +10,8 @@ export interface ITurfEntity extends IEntityAuditColumn {
|
|
|
10
10
|
org_id: number;
|
|
11
11
|
adhocRefund: boolean;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export interface ITurfEntityRel {
|
|
14
14
|
pitches: IPitchEntity[];
|
|
15
|
-
organization:
|
|
16
|
-
Users:
|
|
17
|
-
}
|
|
15
|
+
organization: IOrganizationEntity;
|
|
16
|
+
Users: IUserEntity[];
|
|
17
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IEntityAuditColumn } from "./entity-audit-column.type";
|
|
2
2
|
import { UserStatus } from "../../enums/user-status.enum";
|
|
3
3
|
import { UserType } from "../../enums/valid-type.enum";
|
|
4
|
-
import {
|
|
5
|
-
export interface IUserEntity extends IEntityAuditColumn {
|
|
4
|
+
import { ITurfEntity } from "./turf-entity.type";
|
|
5
|
+
export interface IUserEntity extends IEntityAuditColumn, IUserEntityRel {
|
|
6
6
|
id: number;
|
|
7
7
|
firstname: string;
|
|
8
8
|
lastname: string;
|
|
@@ -19,6 +19,6 @@ export interface IUserEntity extends IEntityAuditColumn {
|
|
|
19
19
|
registrationId: number;
|
|
20
20
|
comments: string;
|
|
21
21
|
}
|
|
22
|
-
export interface IUserEntityRel
|
|
23
|
-
turf:
|
|
22
|
+
export interface IUserEntityRel {
|
|
23
|
+
turf: ITurfEntity[];
|
|
24
24
|
}
|