turf-common 1.4.2-beta.38 → 1.4.2-beta.40
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IOrganizationConfig } from "../entity";
|
|
1
2
|
export interface ILoginResponse {
|
|
2
3
|
UIMessage: string;
|
|
3
4
|
tokenType: string;
|
|
@@ -15,6 +16,7 @@ export interface ILoginResponse {
|
|
|
15
16
|
organizationId: number;
|
|
16
17
|
subscriptionStatus: string | null;
|
|
17
18
|
contact: string;
|
|
19
|
+
orgConfig: IOrganizationConfig;
|
|
18
20
|
}
|
|
19
21
|
export interface ILoginRequest {
|
|
20
22
|
username: string;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import { OrganizationType } from "../../@enum";
|
|
1
|
+
import { ModificationDiscountPolicy, OrganizationType } from "../../@enum";
|
|
2
2
|
import { AllowManualBookingDiscount, OrganizationStatus } from "../../enums/organization-status.enum";
|
|
3
3
|
import { ICouponEntity } from "./coupon.entity.interface";
|
|
4
4
|
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
5
5
|
import { ITurfEntity } from "./turf-entity.interface";
|
|
6
|
-
export interface
|
|
6
|
+
export interface IOrganizationConfig {
|
|
7
|
+
allowManualBookingDiscount: AllowManualBookingDiscount;
|
|
8
|
+
bookingCreationDelay: number;
|
|
9
|
+
bookingModificationDelay: number;
|
|
10
|
+
bookingCancellationDelay: number;
|
|
11
|
+
modificationDiscountPolicy: ModificationDiscountPolicy;
|
|
12
|
+
}
|
|
13
|
+
export interface IOrganizationEntity extends IEntityAuditColumn, IOrganizationEntityRel, IOrganizationConfig {
|
|
7
14
|
id: number;
|
|
8
15
|
name: string;
|
|
9
16
|
email: string | null;
|
|
@@ -18,6 +25,10 @@ export interface IOrganizationEntity extends IEntityAuditColumn, IOrganizationEn
|
|
|
18
25
|
status: OrganizationStatus;
|
|
19
26
|
registrationId: number;
|
|
20
27
|
allowManualBookingDiscount: AllowManualBookingDiscount;
|
|
28
|
+
bookingCreationDelay: number;
|
|
29
|
+
bookingModificationDelay: number;
|
|
30
|
+
bookingCancellationDelay: number;
|
|
31
|
+
modificationDiscountPolicy: ModificationDiscountPolicy;
|
|
21
32
|
}
|
|
22
33
|
export interface IOrganizationEntityRel {
|
|
23
34
|
turfs: ITurfEntity[];
|