turf-common 1.1.1-beta.13 → 1.1.1-beta.14
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-bank-details.interface.d.ts +6 -0
- package/build/interface/api/get-booking-by-organization-id.interface.d.ts +3 -2
- package/build/interface/api/get-cron-job-by-date-range-name-status.interface.d.ts +5 -2
- package/build/interface/api/get-current-subscription.interface.d.ts +2 -0
- package/build/interface/api/get-organization-by-orgid.interface.d.ts +5 -17
- package/build/interface/api/get-registration-by-id.types.d.ts +10 -37
- package/build/interface/api/get-registration-entities.interface.d.ts +4 -37
- package/build/interface/api/get-subscription-entities.interface.d.ts +2 -0
- package/build/interface/api/update-bank-detail.interface.d.ts +2 -1
- package/build/interface/api/update-staff-member.interface.d.ts +1 -1
- package/build/interface/api/update-subscription.interface.d.ts +2 -0
- package/build/interface/booking-details-with-code.interface.d.ts +2 -1
- package/build/interface/entity/subscription-pitch-mapping.interface.d.ts +2 -1
- package/build/interface/entity/subscription-pitch-mapping.interface.js +0 -1
- package/build/interface/modify-turf.interface.d.ts +7 -0
- package/build/interface/modify-turf.interface.js +2 -0
- package/build/types/bookingdetails-with-booking.type.d.ts +2 -28
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { IModifyEntity
|
|
1
|
+
import { IModifyEntity } from "../../@type";
|
|
2
2
|
import { IBookingDetailsWithBookingCodes } from "../../types/bookingdetails-with-booking.type";
|
|
3
3
|
import { UserType } from "../../enums/valid-type.enum";
|
|
4
4
|
import { BookingFetchFilter } from "../../enums/booking-fetch-filter.enum";
|
|
5
|
+
import { IModifyTurf } from "../modify-turf.interface";
|
|
5
6
|
export interface IGetBookingsByOrganizationIdResponse {
|
|
6
7
|
turfs: {
|
|
7
|
-
[turfId: number]:
|
|
8
|
+
[turfId: number]: IModifyTurf;
|
|
8
9
|
};
|
|
9
10
|
pending_refund: {
|
|
10
11
|
[id: string]: IModifyEntity<IBookingDetailsWithBookingCodes>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { CronJobsNames, CronJobsStatus } from "../../@enum";
|
|
2
|
-
import { ICronJobsEntity } from "../../@type";
|
|
3
|
-
export interface IGetCronJobByDateRangeNameStatusResponse extends Array<ICronJobsEntity
|
|
2
|
+
import { ICronJobsEntity, Modify } from "../../@type";
|
|
3
|
+
export interface IGetCronJobByDateRangeNameStatusResponse extends Array<Modify<ICronJobsEntity, {
|
|
4
|
+
startTime: string;
|
|
5
|
+
endTime: string | null;
|
|
6
|
+
}>> {
|
|
4
7
|
}
|
|
5
8
|
export interface IGetCronJobByDateRangeNameStatusRequest {
|
|
6
9
|
dateRange?: string;
|
|
@@ -2,6 +2,8 @@ import { ISubscriptionEntity, ISubscriptionPitchMappingEntity, Modify } from "..
|
|
|
2
2
|
export interface IGetCurrentSubscriptionResponse extends Modify<ISubscriptionEntity, {
|
|
3
3
|
createdOn: string;
|
|
4
4
|
updatedOn: string;
|
|
5
|
+
from: string;
|
|
6
|
+
to: string;
|
|
5
7
|
}> {
|
|
6
8
|
details: Modify<ISubscriptionPitchMappingEntity, {
|
|
7
9
|
createdOn: string;
|
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
import { ITurfEntity, Modify } from "../../@type";
|
|
1
|
+
import { IOrganizationEntity, ITurfEntity, Modify } from "../../@type";
|
|
2
2
|
import { IUserEntityWithoutPassword } from "./userentity-without-password.interface";
|
|
3
|
-
export interface IGetOrganizationByOrgIdResponse {
|
|
4
|
-
id: number;
|
|
5
|
-
name: string;
|
|
6
|
-
email: string | null;
|
|
7
|
-
contact_no: string | null;
|
|
8
|
-
type: string;
|
|
9
|
-
pan_no: string;
|
|
10
|
-
pan_file_path: string;
|
|
11
|
-
gst_no: string | null;
|
|
12
|
-
gst_file_path: string | null;
|
|
13
|
-
deed: string | null;
|
|
14
|
-
deed_file_path: string | null;
|
|
3
|
+
export interface IGetOrganizationByOrgIdResponse extends Modify<IOrganizationEntity, {
|
|
15
4
|
createdOn: string;
|
|
16
5
|
updatedOn: string;
|
|
17
|
-
|
|
18
|
-
updatedBy: number;
|
|
19
|
-
owners?: Modify<IUserEntityWithoutPassword, {
|
|
6
|
+
turfs: Modify<ITurfEntity, {
|
|
20
7
|
createdOn: string;
|
|
21
8
|
updatedOn: string;
|
|
22
9
|
}>[];
|
|
23
|
-
|
|
10
|
+
}> {
|
|
11
|
+
owners?: Modify<IUserEntityWithoutPassword, {
|
|
24
12
|
createdOn: string;
|
|
25
13
|
updatedOn: string;
|
|
26
14
|
}>[];
|
|
@@ -1,45 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { IRegistrationEntity, ISubscriptionEntity } from "../entity";
|
|
2
|
+
import { IModifyEntity } from "../modify-entity.interface";
|
|
3
|
+
import { Modify } from "../modify.interface";
|
|
4
|
+
import { IGetOrganizationByOrgIdResponse } from "./get-organization-by-orgid.interface";
|
|
4
5
|
export interface IGetRegistrationResponse {
|
|
5
6
|
[registrationId: string]: {
|
|
6
7
|
registration: IModifyEntity<IRegistrationEntity>;
|
|
7
|
-
organization:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
contact_no: string | null;
|
|
13
|
-
type: string;
|
|
14
|
-
pan_no: string;
|
|
15
|
-
pan_file_path: string;
|
|
16
|
-
gst_no: string | null;
|
|
17
|
-
gst_file_path: string | null;
|
|
18
|
-
deed: string | null;
|
|
19
|
-
deed_file_path: string | null;
|
|
20
|
-
createdBy: number;
|
|
8
|
+
organization: IGetOrganizationByOrgIdResponse;
|
|
9
|
+
subscription: {
|
|
10
|
+
[id: string]: Modify<ISubscriptionEntity, {
|
|
11
|
+
from: string;
|
|
12
|
+
to: string;
|
|
21
13
|
createdOn: string;
|
|
22
|
-
updatedBy: number;
|
|
23
14
|
updatedOn: string;
|
|
24
|
-
|
|
25
|
-
registrationId: number;
|
|
26
|
-
turfs: {
|
|
27
|
-
[turfId: string]: Modify<ITurf, {
|
|
28
|
-
createdOn: string;
|
|
29
|
-
updatedOn: string;
|
|
30
|
-
pitches: Modify<IPitch, {
|
|
31
|
-
createdOn: string;
|
|
32
|
-
updatedOn: string;
|
|
33
|
-
}>[];
|
|
34
|
-
}>;
|
|
35
|
-
};
|
|
36
|
-
owners: {
|
|
37
|
-
[userId: string]: IModifyEntity<IUserEntityWithoutPassword>;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
subscription: {
|
|
42
|
-
[id: string]: IModifyEntity<ISubscriptionEntity>;
|
|
15
|
+
}>;
|
|
43
16
|
};
|
|
44
17
|
};
|
|
45
18
|
}
|
|
@@ -1,42 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { IRegistrationEntity, ISubscriptionEntity } from "../entity";
|
|
2
|
+
import { IModifyEntity } from "../modify-entity.interface";
|
|
3
|
+
import { IGetOrganizationByOrgIdResponse } from "./get-organization-by-orgid.interface";
|
|
4
4
|
export interface IGetRegistrationEntityByIdResponse {
|
|
5
5
|
registration: IModifyEntity<IRegistrationEntity>;
|
|
6
|
-
organization:
|
|
7
|
-
[id: string]: {
|
|
8
|
-
id: number;
|
|
9
|
-
name: string;
|
|
10
|
-
email: string | null;
|
|
11
|
-
contact_no: string | null;
|
|
12
|
-
type: string;
|
|
13
|
-
pan_no: string;
|
|
14
|
-
pan_file_path: string;
|
|
15
|
-
gst_no: string | null;
|
|
16
|
-
gst_file_path: string | null;
|
|
17
|
-
deed: string | null;
|
|
18
|
-
deed_file_path: string | null;
|
|
19
|
-
createdBy: number;
|
|
20
|
-
createdOn: string;
|
|
21
|
-
updatedBy: number;
|
|
22
|
-
updatedOn: string;
|
|
23
|
-
status: OrganizationStatus;
|
|
24
|
-
registrationId: number;
|
|
25
|
-
turfs: {
|
|
26
|
-
[turfId: string]: Modify<ITurf, {
|
|
27
|
-
createdOn: string;
|
|
28
|
-
updatedOn: string;
|
|
29
|
-
pitches: Modify<IPitch, {
|
|
30
|
-
createdOn: string;
|
|
31
|
-
updatedOn: string;
|
|
32
|
-
}>[];
|
|
33
|
-
}>;
|
|
34
|
-
};
|
|
35
|
-
owners: {
|
|
36
|
-
[userId: string]: IModifyEntity<IUserEntityWithoutPassword>;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
};
|
|
6
|
+
organization: IGetOrganizationByOrgIdResponse;
|
|
40
7
|
subscription: {
|
|
41
8
|
[id: string]: IModifyEntity<ISubscriptionEntity>;
|
|
42
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBankDetailsEntity, IUploadedMulterFile, Modify } from "../../@type";
|
|
1
|
+
import { Files, IBankDetailsEntity, IUploadedMulterFile, Modify } from "../../@type";
|
|
2
2
|
export interface IUpdateBankDetailResponse extends Modify<IBankDetailsEntity, {
|
|
3
3
|
createdOn: string;
|
|
4
4
|
updatedOn: string;
|
|
@@ -13,4 +13,5 @@ export interface IUpdateBankDetailRequest {
|
|
|
13
13
|
upiId?: string;
|
|
14
14
|
bankAddress?: string;
|
|
15
15
|
branch?: string;
|
|
16
|
+
files: Files[];
|
|
16
17
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { SubscriptionStatus } from "../../@enum";
|
|
2
2
|
import { ISubscriptionEntity, Modify } from "../../@type";
|
|
3
3
|
export interface IUpdateSubscriptionResponse extends Modify<ISubscriptionEntity, {
|
|
4
|
+
from: string;
|
|
5
|
+
to: string;
|
|
4
6
|
createdOn: string;
|
|
5
7
|
updatedOn: string;
|
|
6
8
|
}> {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BookingDetailsStatus } from "../@enum";
|
|
2
|
-
|
|
2
|
+
import { IBookingDetailsEntity } from "./entity";
|
|
3
|
+
export interface IBookingDetailsWithCode extends IBookingDetailsEntity {
|
|
3
4
|
id: number;
|
|
4
5
|
turfId: number;
|
|
5
6
|
pitchId: number;
|
|
@@ -1,34 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IBookingDetailsEntity } from "../@type";
|
|
2
2
|
export type IBookingDetailsWithBooking = {
|
|
3
3
|
[bookingDetailsId: string]: IBookingDetailsWithBookingCodes;
|
|
4
4
|
};
|
|
5
|
-
export interface IBookingDetailsWithBookingCodes {
|
|
6
|
-
createdOn: Date;
|
|
7
|
-
updatedOn: Date;
|
|
8
|
-
createdBy: number;
|
|
9
|
-
updatedBy: number;
|
|
10
|
-
id: number;
|
|
11
|
-
turfId: number;
|
|
12
|
-
pitchId: number;
|
|
13
|
-
customerName: string;
|
|
14
|
-
contact: string;
|
|
15
|
-
paymentMode: string;
|
|
16
|
-
couponCode: string;
|
|
17
|
-
totalCost: number;
|
|
18
|
-
discountedCost: number;
|
|
19
|
-
amountPaid: number;
|
|
20
|
-
email: string | null;
|
|
21
|
-
status: BookingDetailsStatus;
|
|
22
|
-
sport: string;
|
|
23
|
-
remarks: string | null;
|
|
24
|
-
initialBookingGrossAmount: number;
|
|
25
|
-
additionalBookingGrossAmount: number;
|
|
26
|
-
discountAmount: number;
|
|
27
|
-
cancelledBookingGrossAmount: number;
|
|
28
|
-
totalCancellationCharges: number;
|
|
29
|
-
netTotal: number;
|
|
30
|
-
amountPayable: number;
|
|
31
|
-
refundPayable: number;
|
|
5
|
+
export interface IBookingDetailsWithBookingCodes extends IBookingDetailsEntity {
|
|
32
6
|
bookings: {
|
|
33
7
|
[code: string]: string;
|
|
34
8
|
};
|