turf-common 1.0.19-beta.6 → 1.0.19-beta.8
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/api/create-recurring-slot-booking.interface.d.ts +2 -2
- package/build/interface/api/delete-booking-info.interface.d.ts +2 -2
- package/build/interface/api/get-all-booking-of-turf.interface.d.ts +2 -2
- package/build/interface/api/get-booking-customers.interface.d.ts +2 -2
- package/build/interface/api/get-booking-details-by-id.interface.d.ts +3 -2
- package/build/interface/api/get-organization-by-orgid.interface.d.ts +11 -5
- package/build/interface/api/get-turf-entity-response.interface.d.ts +0 -5
- package/build/interface/api/one-slot-booking.interface.d.ts +2 -2
- package/build/interface/api/update-recurring-booking.interface.d.ts +4 -4
- package/build/interface/api/update-turf-details.interface.d.ts +2 -1
- package/build/interface/modify.interface.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaymentMode, BookingDetailsStatus } from "../../@enum";
|
|
2
|
-
import { IBookingDetailsEntity } from "../../@type";
|
|
3
|
-
export interface ICreateRecurringSlotBookingResponse extends IBookingDetailsEntity {
|
|
2
|
+
import { IBookingDetailsEntity, IModifyEntity } from "../../@type";
|
|
3
|
+
export interface ICreateRecurringSlotBookingResponse extends IModifyEntity<IBookingDetailsEntity> {
|
|
4
4
|
}
|
|
5
5
|
export interface ICreateRecurringSlotsBookingDetailsRequest {
|
|
6
6
|
customerName: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IBookingDetailsEntity } from "../../@type";
|
|
2
|
-
export interface IDeleteBookingInfoResponse extends IBookingDetailsEntity {
|
|
1
|
+
import { IBookingDetailsEntity, IModifyEntity } from "../../@type";
|
|
2
|
+
export interface IDeleteBookingInfoResponse extends IModifyEntity<IBookingDetailsEntity> {
|
|
3
3
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ITurf } from "../../@type";
|
|
1
|
+
import { IModifyEntity, ITurf } from "../../@type";
|
|
2
2
|
import { IBookingDetailsWithCode } from "../booking-details-with-code.interface";
|
|
3
3
|
export interface IGetAllBookingOfTurfResponse {
|
|
4
4
|
turfs: {
|
|
@@ -8,7 +8,7 @@ export interface IGetAllBookingOfTurfResponse {
|
|
|
8
8
|
[turfId: string]: {
|
|
9
9
|
[pitchCode: string]: {
|
|
10
10
|
[date: string]: {
|
|
11
|
-
[timeSlotCode: string]: IBookingDetailsWithCode
|
|
11
|
+
[timeSlotCode: string]: IModifyEntity<IBookingDetailsWithCode>;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IBookingCustomerEntity } from "../../@type";
|
|
2
|
-
export interface IGetBookingCustomersResponse extends Array<IBookingCustomerEntity
|
|
1
|
+
import { IBookingCustomerEntity, IModifyEntity } from "../../@type";
|
|
2
|
+
export interface IGetBookingCustomersResponse extends Array<IModifyEntity<IBookingCustomerEntity>> {
|
|
3
3
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { IGetBookingById } from
|
|
2
|
-
|
|
1
|
+
import { IGetBookingById } from "../get-booking-by-id.interface";
|
|
2
|
+
import { IModifyEntity } from "../modify.interface";
|
|
3
|
+
export interface IGetBookingDetailsByIdResponse extends IModifyEntity<IGetBookingById> {
|
|
3
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ITurfEntity } from "../../@type";
|
|
1
|
+
import { ITurfEntity, Modify } from "../../@type";
|
|
2
2
|
import { IUserEntityWithoutPasswordResponse } from "./userentity-without-password.interface";
|
|
3
3
|
export interface IGetOrganizationByOrgIdResponse {
|
|
4
4
|
id: number;
|
|
@@ -12,10 +12,16 @@ export interface IGetOrganizationByOrgIdResponse {
|
|
|
12
12
|
gst_file_path: string | null;
|
|
13
13
|
deed: string | null;
|
|
14
14
|
deed_file_path: string | null;
|
|
15
|
-
createdOn:
|
|
16
|
-
updatedOn:
|
|
15
|
+
createdOn: string;
|
|
16
|
+
updatedOn: string;
|
|
17
17
|
createdBy: number;
|
|
18
18
|
updatedBy: number;
|
|
19
|
-
owners?: IUserEntityWithoutPasswordResponse
|
|
20
|
-
|
|
19
|
+
owners?: Modify<IUserEntityWithoutPasswordResponse, {
|
|
20
|
+
createdOn: string;
|
|
21
|
+
updatedOn: string;
|
|
22
|
+
}>[];
|
|
23
|
+
turfs?: Modify<ITurfEntity, {
|
|
24
|
+
createdOn: string;
|
|
25
|
+
updatedOn: string;
|
|
26
|
+
}>[];
|
|
21
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaymentMode, BookingDetailsStatus } from "../../@enum";
|
|
2
|
-
import { IBookingDetailsEntity } from "../../@type";
|
|
3
|
-
export interface ICreateOneSlotBookingResponse extends IBookingDetailsEntity {
|
|
2
|
+
import { IBookingDetailsEntity, IModifyEntity } from "../../@type";
|
|
3
|
+
export interface ICreateOneSlotBookingResponse extends IModifyEntity<IBookingDetailsEntity> {
|
|
4
4
|
}
|
|
5
5
|
export interface ICreateOneSlotBookingDetailsRequest {
|
|
6
6
|
customerName: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BookingDetailsStatus, PaymentMode } from "../../@enum";
|
|
2
|
-
import { IBookingDetailsEntity } from "../../@type";
|
|
2
|
+
import { IBookingDetailsEntity, IModifyEntity } from "../../@type";
|
|
3
3
|
import { IDeleteBookingByCodesDto } from "../dto/delete-booking-by-codes-dto.interface";
|
|
4
4
|
import { IUpdateBookingByCodesDto } from "../dto/update-booking-by-code-dto.interface";
|
|
5
|
-
export interface IUpdateRecurringBookingResponse extends IBookingDetailsEntity {
|
|
5
|
+
export interface IUpdateRecurringBookingResponse extends IModifyEntity<IBookingDetailsEntity> {
|
|
6
6
|
id: number;
|
|
7
7
|
turfId: number;
|
|
8
8
|
pitchId: number;
|
|
@@ -13,8 +13,8 @@ export interface IUpdateRecurringBookingResponse extends IBookingDetailsEntity {
|
|
|
13
13
|
totalCost: number;
|
|
14
14
|
discountedCost: number;
|
|
15
15
|
amountPaid: number;
|
|
16
|
-
createdOn:
|
|
17
|
-
updatedOn:
|
|
16
|
+
createdOn: string;
|
|
17
|
+
updatedOn: string;
|
|
18
18
|
createdBy: number;
|
|
19
19
|
updatedBy: number;
|
|
20
20
|
email: string | null;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PitchOperations } from "../../enums/pitch-operation.enum";
|
|
2
2
|
import { PitchSports } from "../../enums/pitch-sports.enum";
|
|
3
3
|
import { ITurfEntity } from "../entity";
|
|
4
|
-
|
|
4
|
+
import { IModifyEntity } from "../modify.interface";
|
|
5
|
+
export interface IUpdateTurfDetailsResponse extends IModifyEntity<ITurfEntity> {
|
|
5
6
|
}
|
|
6
7
|
export interface IUpdateTurfDetailsRequest {
|
|
7
8
|
turfName?: string;
|