turf-common 1.0.18 → 1.0.19-beta.11
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/@type.d.ts +1 -0
- package/build/@type.js +1 -0
- package/build/interface/api/activate-subscription.interface.d.ts +5 -2
- package/build/interface/api/create-bank-details.interface.d.ts +5 -2
- package/build/interface/api/create-cancellation-policy.interface.d.ts +2 -2
- package/build/interface/api/create-coupon.interface.d.ts +5 -2
- package/build/interface/api/create-faqs.interface.d.ts +5 -2
- package/build/interface/api/create-organization.interface.d.ts +5 -2
- package/build/interface/api/create-pricing-plan.interface.d.ts +5 -2
- package/build/interface/api/create-recurring-slot-booking.interface.d.ts +2 -2
- package/build/interface/api/create-registration-interface.d.ts +2 -1
- package/build/interface/api/create-subscription.interface.d.ts +5 -2
- package/build/interface/api/delete-bank-details-by-id.interface.d.ts +5 -2
- package/build/interface/api/delete-booking-info.interface.d.ts +2 -2
- package/build/interface/api/delete-pricing-plan.interface.d.ts +5 -2
- package/build/interface/api/get-all-booking-of-turf.interface.d.ts +2 -2
- package/build/interface/api/get-bank-detail-by-id.interface.d.ts +5 -2
- package/build/interface/api/get-bank-detail-entities.interface.d.ts +5 -2
- package/build/interface/api/get-booking-by-organization-id.interface.d.ts +11 -5
- 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-cancellation-policy-entity-by-org-id.interface.d.ts +9 -3
- package/build/interface/api/get-collection.interface.d.ts +13 -4
- package/build/interface/api/get-current-subscription.interface.d.ts +13 -4
- package/build/interface/api/get-organization-by-orgid.interface.d.ts +12 -6
- package/build/interface/api/get-registration-by-id.types.d.ts +15 -8
- package/build/interface/api/get-registration-entities.interface.d.ts +2 -2
- package/build/interface/api/get-subscription-by-org-id.interface.d.ts +5 -2
- package/build/interface/api/get-subscription-entities.interface.d.ts +5 -2
- package/build/interface/api/get-turf-by-organization.interface.d.ts +5 -2
- package/build/interface/api/get-turf-entity-response.interface.d.ts +9 -2
- package/build/interface/api/one-slot-booking.interface.d.ts +2 -2
- package/build/interface/api/renew-subscription.interface.d.ts +5 -2
- package/build/interface/api/update-bank-detail.interface.d.ts +5 -2
- package/build/interface/api/update-coupon.interface.d.ts +5 -2
- package/build/interface/api/update-faqs-steps.interface.d.ts +5 -2
- package/build/interface/api/update-faqs.interface.d.ts +5 -2
- package/build/interface/api/update-organization.interface.d.ts +5 -2
- package/build/interface/api/update-pricing-plan-by-id.interface.d.ts +5 -2
- package/build/interface/api/update-recurring-booking.interface.d.ts +4 -4
- package/build/interface/api/update-registration-entities.interface.d.ts +2 -1
- package/build/interface/api/update-staff-member.interface.d.ts +2 -2
- package/build/interface/api/update-subscription.interface.d.ts +5 -2
- package/build/interface/api/update-turf-details.interface.d.ts +2 -1
- package/build/interface/api/upgrade-renew-subscription.interface.d.ts +5 -2
- package/build/interface/api/upgrade-subscription.interface.d.ts +5 -2
- package/build/interface/api/userentity-without-password.interface.d.ts +4 -2
- package/build/interface/entity/subscription-entity.interface.d.ts +2 -0
- package/build/interface/modify.interface.d.ts +5 -0
- package/build/models/entity/subscription-model.d.ts +2 -0
- package/build/types/bookingdetails-with-booking.type.d.ts +33 -32
- package/package.json +1 -1
- package/build/interface/api/delete-booking-by-codes-response.interface.d.ts +0 -7
- package/build/interface/api/get-price-entity.types.d.ts +0 -5
- package/build/interface/api/get-price-entity.types.js +0 -2
- /package/build/interface/{api/delete-booking-by-codes-response.interface.js → modify.interface.js} +0 -0
package/build/@type.d.ts
CHANGED
|
@@ -24,3 +24,4 @@ export * from "./interface/pitch-slab-dto.interface";
|
|
|
24
24
|
export * from "./interface/upload-multer-file.interface";
|
|
25
25
|
export * from "./interface/user-info-dto.interface";
|
|
26
26
|
export * from "./interface/without-token-registration-entity.types";
|
|
27
|
+
export * from "./interface/modify.interface";
|
package/build/@type.js
CHANGED
|
@@ -40,3 +40,4 @@ __exportStar(require("./interface/pitch-slab-dto.interface"), exports);
|
|
|
40
40
|
__exportStar(require("./interface/upload-multer-file.interface"), exports);
|
|
41
41
|
__exportStar(require("./interface/user-info-dto.interface"), exports);
|
|
42
42
|
__exportStar(require("./interface/without-token-registration-entity.types"), exports);
|
|
43
|
+
__exportStar(require("./interface/modify.interface"), exports);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { ISubscriptionEntity } from "../../@type";
|
|
2
|
-
export interface IActivateSubscriptionResponse extends Array<ISubscriptionEntity
|
|
1
|
+
import { ISubscriptionEntity, Modify } from "../../@type";
|
|
2
|
+
export interface IActivateSubscriptionResponse extends Array<Modify<ISubscriptionEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}>> {
|
|
3
6
|
}
|
|
4
7
|
export interface IActivateSubscriptionRequest {
|
|
5
8
|
dateCode?: number;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { IBankDetailsEntity, IUploadedMulterFile } from "../../@type";
|
|
2
|
-
export interface ICreateBankDetailResponse extends IBankDetailsEntity {
|
|
1
|
+
import { IBankDetailsEntity, IUploadedMulterFile, Modify } from "../../@type";
|
|
2
|
+
export interface ICreateBankDetailResponse extends Modify<IBankDetailsEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
4
7
|
export interface ICreateBankDetailRequest {
|
|
5
8
|
qrCode?: IUploadedMulterFile;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICancellationPolicyEntity } from "../../@type";
|
|
2
|
-
export interface ICreateCancellationPolicyResponse extends Array<ICancellationPolicyEntity
|
|
1
|
+
import { ICancellationPolicyEntity, IModifyEntity } from "../../@type";
|
|
2
|
+
export interface ICreateCancellationPolicyResponse extends Array<IModifyEntity<ICancellationPolicyEntity>> {
|
|
3
3
|
}
|
|
4
4
|
export interface ICreateCancellationPolicyDtoRequest {
|
|
5
5
|
adhocRefund: boolean;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { ICouponEntity } from "../../@type";
|
|
1
|
+
import { ICouponEntity, Modify } from "../../@type";
|
|
2
2
|
import { ValidCouponType } from "../../enums/valid-coupon-type.enum";
|
|
3
|
-
export interface ICreateCouponResponse extends ICouponEntity {
|
|
3
|
+
export interface ICreateCouponResponse extends Modify<ICouponEntity, {
|
|
4
|
+
createdOn: string;
|
|
5
|
+
updatedOn: string;
|
|
6
|
+
}> {
|
|
4
7
|
}
|
|
5
8
|
export interface ICreateCouponDtoRequest {
|
|
6
9
|
type: ValidCouponType;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { IFaqsEntity } from "../../@type";
|
|
2
|
-
export interface ICreateFaqsResponse extends IFaqsEntity {
|
|
1
|
+
import { IFaqsEntity, Modify } from "../../@type";
|
|
2
|
+
export interface ICreateFaqsResponse extends Modify<IFaqsEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
4
7
|
export interface ICreateFaqsRequest {
|
|
5
8
|
module: string;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { IOrganizationEntity } from "../../@type";
|
|
2
|
-
export interface ICreateOrganizationResponse extends IOrganizationEntity {
|
|
1
|
+
import { IOrganizationEntity, Modify } from "../../@type";
|
|
2
|
+
export interface ICreateOrganizationResponse extends Modify<IOrganizationEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
4
7
|
export interface ICreateOrganizationRequest {
|
|
5
8
|
name: string;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { IPricingPlanEntity, IBillingCycleDto, IPitchSlab } from "../../@type";
|
|
2
|
-
export interface ICreatePricingPlanResponse extends IPricingPlanEntity {
|
|
1
|
+
import { IPricingPlanEntity, IBillingCycleDto, IPitchSlab, Modify } from "../../@type";
|
|
2
|
+
export interface ICreatePricingPlanResponse extends Modify<IPricingPlanEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
4
7
|
export interface ICreatePricingPlanDtoRequest {
|
|
5
8
|
effective_from_date: number;
|
|
@@ -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,6 +1,7 @@
|
|
|
1
1
|
import { OrganizationStatus } from "../../@enum";
|
|
2
|
+
import { IModifyEntity } from "../modify.interface";
|
|
2
3
|
import { IWithoutTokenRegistrationEntity } from "../without-token-registration-entity.types";
|
|
3
|
-
export interface ICreateRegistrationResponse extends IWithoutTokenRegistrationEntity {
|
|
4
|
+
export interface ICreateRegistrationResponse extends IModifyEntity<IWithoutTokenRegistrationEntity> {
|
|
4
5
|
}
|
|
5
6
|
export interface ICreateRegistrationRequest {
|
|
6
7
|
name: string;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { ISubscriptionEntity } from "../../@type";
|
|
2
|
-
export interface ICreateSubscriptionResponse extends Array<ISubscriptionEntity
|
|
1
|
+
import { ISubscriptionEntity, Modify } from "../../@type";
|
|
2
|
+
export interface ICreateSubscriptionResponse extends Array<Modify<ISubscriptionEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}>> {
|
|
3
6
|
}
|
|
4
7
|
export interface ICreateSubscriptionRequest {
|
|
5
8
|
from: string;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { IBankDetailsEntity } from
|
|
2
|
-
export interface IDeleteBankDetailsByIdResponse extends IBankDetailsEntity {
|
|
1
|
+
import { IBankDetailsEntity, Modify } from "../../@type";
|
|
2
|
+
export interface IDeleteBankDetailsByIdResponse extends Modify<IBankDetailsEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
@@ -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,3 +1,6 @@
|
|
|
1
|
-
import { IPricingPlanEntity } from "../../@type";
|
|
2
|
-
export interface IRemovePricingPlanByIdResponse extends IPricingPlanEntity {
|
|
1
|
+
import { IPricingPlanEntity, Modify } from "../../@type";
|
|
2
|
+
export interface IRemovePricingPlanByIdResponse extends Modify<IPricingPlanEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
@@ -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,6 @@
|
|
|
1
|
-
import { IBankDetailsEntity } from "../../@type";
|
|
2
|
-
export interface IGetBankDetailByIdResponse extends IBankDetailsEntity {
|
|
1
|
+
import { IBankDetailsEntity, Modify } from "../../@type";
|
|
2
|
+
export interface IGetBankDetailByIdResponse extends Modify<IBankDetailsEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { IBankDetailsEntity } from "../../@type";
|
|
2
|
-
export interface IGetBankDetailsEntitiesResponse extends IBankDetailsEntity {
|
|
1
|
+
import { IBankDetailsEntity, Modify } from "../../@type";
|
|
2
|
+
export interface IGetBankDetailsEntitiesResponse extends Modify<IBankDetailsEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import { ITurf } from "../../@type";
|
|
2
|
-
import {
|
|
1
|
+
import { IModifyEntity, ITurf } from "../../@type";
|
|
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
5
|
export interface IGetBookingsByOrganizationIdResponse {
|
|
6
6
|
turfs: {
|
|
7
7
|
[turfId: number]: ITurf;
|
|
8
8
|
};
|
|
9
|
-
pending_refund:
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
pending_refund: {
|
|
10
|
+
[id: string]: IModifyEntity<IBookingDetailsWithBookingCodes>;
|
|
11
|
+
};
|
|
12
|
+
full_refund: {
|
|
13
|
+
[id: string]: IModifyEntity<IBookingDetailsWithBookingCodes>;
|
|
14
|
+
};
|
|
15
|
+
pending_payment: {
|
|
16
|
+
[id: string]: IModifyEntity<IBookingDetailsWithBookingCodes>;
|
|
17
|
+
};
|
|
12
18
|
user: {
|
|
13
19
|
[userId: string]: {
|
|
14
20
|
id: number;
|
|
@@ -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,9 +1,15 @@
|
|
|
1
|
-
import { ICancellationPolicyEntity, ITurfEntity } from "../../@type";
|
|
1
|
+
import { ICancellationPolicyEntity, ITurfEntity, Modify } from "../../@type";
|
|
2
2
|
export interface IGetCancellationPolicyByOrgIdResponse {
|
|
3
3
|
turfs: {
|
|
4
|
-
[turfId: number]: ITurfEntity
|
|
4
|
+
[turfId: number]: Modify<ITurfEntity, {
|
|
5
|
+
createdOn: string;
|
|
6
|
+
updatedOn: string;
|
|
7
|
+
}>;
|
|
5
8
|
};
|
|
6
9
|
cancellationPolicy: {
|
|
7
|
-
[turfId: string]: ICancellationPolicyEntity
|
|
10
|
+
[turfId: string]: Modify<ICancellationPolicyEntity, {
|
|
11
|
+
createdOn: string;
|
|
12
|
+
updatedOn: string;
|
|
13
|
+
}>[];
|
|
8
14
|
};
|
|
9
15
|
}
|
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
import { IBookingPaymentHistoryEntity, ITurfEntity, IUserEntity } from "../../@type";
|
|
1
|
+
import { IBookingPaymentHistoryEntity, ITurfEntity, IUserEntity, Modify } from "../../@type";
|
|
2
2
|
import { IDateWisePaymentHistoryData } from "../../types/date-wise-payment-history-data.types";
|
|
3
3
|
export interface IGetCollectionResponse {
|
|
4
4
|
turfs: {
|
|
5
|
-
[turfId: number]: ITurfEntity
|
|
5
|
+
[turfId: number]: Modify<ITurfEntity, {
|
|
6
|
+
createdOn: string;
|
|
7
|
+
updatedOn: string;
|
|
8
|
+
}>;
|
|
6
9
|
};
|
|
7
10
|
users: {
|
|
8
|
-
[key: number]: IUserEntity
|
|
11
|
+
[key: number]: Modify<IUserEntity, {
|
|
12
|
+
createdOn: string;
|
|
13
|
+
updatedOn: string;
|
|
14
|
+
}>;
|
|
9
15
|
};
|
|
10
16
|
total: IDateWisePaymentHistoryData;
|
|
11
|
-
payments: IBookingPaymentHistoryEntity
|
|
17
|
+
payments: Modify<IBookingPaymentHistoryEntity, {
|
|
18
|
+
createdOn: string;
|
|
19
|
+
updatedOn: string;
|
|
20
|
+
}>[];
|
|
12
21
|
}
|
|
13
22
|
export interface IGetCollectionRequest {
|
|
14
23
|
fromDateCode?: string;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import { ISubscriptionEntity, ISubscriptionPitchMappingEntity } from "../../@type";
|
|
2
|
-
export interface IGetCurrentSubscriptionResponse extends ISubscriptionEntity {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ISubscriptionEntity, ISubscriptionPitchMappingEntity, Modify } from "../../@type";
|
|
2
|
+
export interface IGetCurrentSubscriptionResponse extends Modify<ISubscriptionEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
6
|
+
details: Modify<ISubscriptionPitchMappingEntity, {
|
|
7
|
+
createdOn: string;
|
|
8
|
+
updatedOn: string;
|
|
9
|
+
}>[];
|
|
10
|
+
next: Modify<ISubscriptionEntity, {
|
|
11
|
+
createdOn: string;
|
|
12
|
+
updatedOn: string;
|
|
13
|
+
}> | null;
|
|
5
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ITurfEntity } from "../../@type";
|
|
2
|
-
import {
|
|
1
|
+
import { ITurfEntity, Modify } from "../../@type";
|
|
2
|
+
import { IUserEntityWithoutPassword } from "./userentity-without-password.interface";
|
|
3
3
|
export interface IGetOrganizationByOrgIdResponse {
|
|
4
4
|
id: number;
|
|
5
5
|
name: string;
|
|
@@ -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?:
|
|
20
|
-
|
|
19
|
+
owners?: Modify<IUserEntityWithoutPassword, {
|
|
20
|
+
createdOn: string;
|
|
21
|
+
updatedOn: string;
|
|
22
|
+
}>[];
|
|
23
|
+
turfs?: Modify<ITurfEntity, {
|
|
24
|
+
createdOn: string;
|
|
25
|
+
updatedOn: string;
|
|
26
|
+
}>[];
|
|
21
27
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IRegistrationEntity, ISubscriptionEntity, ITurf } from "../../@type";
|
|
1
|
+
import { IModifyEntity, IPitch, IRegistrationEntity, ISubscriptionEntity, ITurf, Modify } from "../../@type";
|
|
2
2
|
import { OrganizationStatus } from "../../@enum";
|
|
3
|
-
import {
|
|
3
|
+
import { IUserEntityWithoutPassword } from "./userentity-without-password.interface";
|
|
4
4
|
export interface IGetRegistrationResponse {
|
|
5
5
|
[registrationId: string]: {
|
|
6
|
-
registration: IRegistrationEntity
|
|
6
|
+
registration: IModifyEntity<IRegistrationEntity>;
|
|
7
7
|
organization: {
|
|
8
8
|
[id: string]: {
|
|
9
9
|
id: number;
|
|
@@ -18,21 +18,28 @@ export interface IGetRegistrationResponse {
|
|
|
18
18
|
deed: string | null;
|
|
19
19
|
deed_file_path: string | null;
|
|
20
20
|
createdBy: number;
|
|
21
|
-
createdOn:
|
|
21
|
+
createdOn: string;
|
|
22
22
|
updatedBy: number;
|
|
23
|
-
updatedOn:
|
|
23
|
+
updatedOn: string;
|
|
24
24
|
status: OrganizationStatus;
|
|
25
25
|
registrationId: number;
|
|
26
26
|
turfs: {
|
|
27
|
-
[turfId: string]: ITurf
|
|
27
|
+
[turfId: string]: Modify<ITurf, {
|
|
28
|
+
createdOn: string;
|
|
29
|
+
updatedOn: string;
|
|
30
|
+
pitches: Modify<IPitch, {
|
|
31
|
+
createdOn: string;
|
|
32
|
+
updatedOn: string;
|
|
33
|
+
}>[];
|
|
34
|
+
}>;
|
|
28
35
|
};
|
|
29
36
|
owners: {
|
|
30
|
-
[userId: string]:
|
|
37
|
+
[userId: string]: IModifyEntity<IUserEntityWithoutPassword>;
|
|
31
38
|
};
|
|
32
39
|
};
|
|
33
40
|
};
|
|
34
41
|
subscription: {
|
|
35
|
-
[id: string]: ISubscriptionEntity
|
|
42
|
+
[id: string]: IModifyEntity<ISubscriptionEntity>;
|
|
36
43
|
};
|
|
37
44
|
};
|
|
38
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IRegistrationEntity, ISubscriptionEntity, ITurf } from "../../@type";
|
|
2
|
-
import {
|
|
2
|
+
import { IUserEntityWithoutPassword } from "./userentity-without-password.interface";
|
|
3
3
|
import { OrganizationStatus } from "../../@enum";
|
|
4
4
|
export interface IGetRegistrationEntityByIdResponse {
|
|
5
5
|
registration: IRegistrationEntity;
|
|
@@ -26,7 +26,7 @@ export interface IGetRegistrationEntityByIdResponse {
|
|
|
26
26
|
[turfId: string]: ITurf;
|
|
27
27
|
};
|
|
28
28
|
owners: {
|
|
29
|
-
[userId: string]:
|
|
29
|
+
[userId: string]: IUserEntityWithoutPassword;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { ISubscriptionEntity } from "../../@type";
|
|
2
|
-
export interface IGetSubscriptionByOrgIdResponse extends Array<ISubscriptionEntity
|
|
1
|
+
import { ISubscriptionEntity, Modify } from "../../@type";
|
|
2
|
+
export interface IGetSubscriptionByOrgIdResponse extends Array<Modify<ISubscriptionEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}>> {
|
|
3
6
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { ISubscriptionEntity } from "../../@type";
|
|
2
|
-
export interface IGetSubscriptionEntitiesResponse extends Array<ISubscriptionEntity
|
|
1
|
+
import { ISubscriptionEntity, Modify } from "../../@type";
|
|
2
|
+
export interface IGetSubscriptionEntitiesResponse extends Array<Modify<ISubscriptionEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}>> {
|
|
3
6
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { ITurfEntity } from "../../@type";
|
|
2
|
-
export interface IGetTurfByOrganizationResponse extends ITurfEntity {
|
|
1
|
+
import { ITurfEntity, Modify } from "../../@type";
|
|
2
|
+
export interface IGetTurfByOrganizationResponse extends Modify<ITurfEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import { ITurf } from "../../@type";
|
|
2
|
-
export interface IGetTurfEntityResponse extends ITurf {
|
|
1
|
+
import { IPitch, ITurf, Modify } from "../../@type";
|
|
2
|
+
export interface IGetTurfEntityResponse extends Modify<ITurf, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
pitches: Modify<IPitch, {
|
|
6
|
+
createdOn: string;
|
|
7
|
+
updatedOn: string;
|
|
8
|
+
}>[];
|
|
9
|
+
}> {
|
|
3
10
|
}
|
|
@@ -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,5 +1,8 @@
|
|
|
1
|
-
import { ISubscriptionEntity, IUpgrade_details } from "../../@type";
|
|
2
|
-
export interface IRenewSubscriptionResponse extends ISubscriptionEntity {
|
|
1
|
+
import { ISubscriptionEntity, IUpgrade_details, Modify } from "../../@type";
|
|
2
|
+
export interface IRenewSubscriptionResponse extends Modify<ISubscriptionEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
4
7
|
export interface IRenewSubscriptionRequest {
|
|
5
8
|
from: string;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { IBankDetailsEntity, IUploadedMulterFile } from "../../@type";
|
|
2
|
-
export interface IUpdateBankDetailResponse extends IBankDetailsEntity {
|
|
1
|
+
import { IBankDetailsEntity, IUploadedMulterFile, Modify } from "../../@type";
|
|
2
|
+
export interface IUpdateBankDetailResponse extends Modify<IBankDetailsEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
4
7
|
export interface IUpdateBankDetailRequest {
|
|
5
8
|
qrCode?: IUploadedMulterFile;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { ICouponEntity } from "../../@type";
|
|
2
|
-
export interface IUpdateCouponResponse extends ICouponEntity {
|
|
1
|
+
import { ICouponEntity, Modify } from "../../@type";
|
|
2
|
+
export interface IUpdateCouponResponse extends Modify<ICouponEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
4
7
|
export interface IUpdateCouponRequest {
|
|
5
8
|
value: number;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { IFaqsEntity } from "../../@type";
|
|
2
|
-
export interface IUpdateFaqsStepsResponse extends IFaqsEntity {
|
|
1
|
+
import { IFaqsEntity, Modify } from "../../@type";
|
|
2
|
+
export interface IUpdateFaqsStepsResponse extends Modify<IFaqsEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
4
7
|
export interface IUpdateFaqsRequest {
|
|
5
8
|
module?: string;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { IFaqsEntity } from "../../@type";
|
|
2
|
-
export interface IUpdateFaqsResponse extends IFaqsEntity {
|
|
1
|
+
import { IFaqsEntity, Modify } from "../../@type";
|
|
2
|
+
export interface IUpdateFaqsResponse extends Modify<IFaqsEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { OrganizationStatus } from "../../@enum";
|
|
2
|
-
import { IOrganizationEntity } from "../../@type";
|
|
2
|
+
import { IOrganizationEntity, Modify } from "../../@type";
|
|
3
3
|
import { IUserInfo } from "../user-info-dto.interface";
|
|
4
|
-
export interface IUpdateOrganizationResponse extends IOrganizationEntity {
|
|
4
|
+
export interface IUpdateOrganizationResponse extends Modify<IOrganizationEntity, {
|
|
5
|
+
createdOn: string;
|
|
6
|
+
updatedOn: string;
|
|
7
|
+
}> {
|
|
5
8
|
imageUrl?: string;
|
|
6
9
|
owners?: IUserInfo[];
|
|
7
10
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { IPitchSlab, IPricingPlanEntity } from "../../@type";
|
|
1
|
+
import { IPitchSlab, IPricingPlanEntity, Modify } from "../../@type";
|
|
2
2
|
import { IPitchSlabDto } from "../pitch-slab-dto.interface";
|
|
3
3
|
import { IBillingCycleDto } from "../billing-cycle-dto.interface";
|
|
4
|
-
export interface IUpdatePricingPlanByIdResponse extends IPricingPlanEntity {
|
|
4
|
+
export interface IUpdatePricingPlanByIdResponse extends Modify<IPricingPlanEntity, {
|
|
5
|
+
createdOn: string;
|
|
6
|
+
updatedOn: string;
|
|
7
|
+
}> {
|
|
5
8
|
pitch_slab?: IPitchSlabDto;
|
|
6
9
|
billing_cycle?: IBillingCycleDto;
|
|
7
10
|
}
|
|
@@ -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,6 +1,7 @@
|
|
|
1
1
|
import { RegistrationStatus } from "../../@enum";
|
|
2
|
+
import { IModifyEntity } from "../modify.interface";
|
|
2
3
|
import { IWithoutTokenRegistrationEntity } from "../without-token-registration-entity.types";
|
|
3
|
-
export interface IUpdateRegistrationEntitiesResponse extends IWithoutTokenRegistrationEntity {
|
|
4
|
+
export interface IUpdateRegistrationEntitiesResponse extends IModifyEntity<IWithoutTokenRegistrationEntity> {
|
|
4
5
|
}
|
|
5
6
|
export interface IUpdateRegistrationRequest {
|
|
6
7
|
status?: RegistrationStatus;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { SubscriptionStatus } from "../../@enum";
|
|
2
|
-
import { ISubscriptionEntity } from "../../@type";
|
|
3
|
-
export interface IUpdateSubscriptionResponse extends ISubscriptionEntity {
|
|
2
|
+
import { ISubscriptionEntity, Modify } from "../../@type";
|
|
3
|
+
export interface IUpdateSubscriptionResponse extends Modify<ISubscriptionEntity, {
|
|
4
|
+
createdOn: string;
|
|
5
|
+
updatedOn: string;
|
|
6
|
+
}> {
|
|
4
7
|
advanceAmount?: number;
|
|
5
8
|
}
|
|
6
9
|
export interface IUpdateSubscriptionRequest {
|
|
@@ -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;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { IRenewSubscriptionRequest, ISubscriptionEntity, IUpgradeSubscriptionRequest } from "../../@type";
|
|
2
|
-
export interface IUpgradeRenewSubscriptionResponse extends ISubscriptionEntity {
|
|
1
|
+
import { IRenewSubscriptionRequest, ISubscriptionEntity, IUpgradeSubscriptionRequest, Modify } from "../../@type";
|
|
2
|
+
export interface IUpgradeRenewSubscriptionResponse extends Modify<ISubscriptionEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
4
7
|
export interface IUpgradeRenewSubscriptionRequest {
|
|
5
8
|
upgradeSubscription: IUpgradeSubscriptionRequest;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { ISubscriptionEntity, IUpdatePitches } from "../../@type";
|
|
2
|
-
export interface IUpgradeSubscriptionResponse extends ISubscriptionEntity {
|
|
1
|
+
import { ISubscriptionEntity, IUpdatePitches, Modify } from "../../@type";
|
|
2
|
+
export interface IUpgradeSubscriptionResponse extends Modify<ISubscriptionEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
3
6
|
}
|
|
4
7
|
export interface IUpgradeSubscriptionRequest {
|
|
5
8
|
pricingPlanId: number;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { IUserEntity } from "../../@type";
|
|
2
|
-
export interface
|
|
1
|
+
import { IModifyEntity, IUserEntity } from "../../@type";
|
|
2
|
+
export interface IUserEntityWithoutPassword extends Omit<IUserEntity, "password"> {
|
|
3
|
+
}
|
|
4
|
+
export interface IUserEntityWithoutPasswordsResponse extends IModifyEntity<IUserEntityWithoutPassword> {
|
|
3
5
|
}
|
|
@@ -16,5 +16,7 @@ export interface ISubscriptionEntity extends IEntityAuditColumn {
|
|
|
16
16
|
registrationId: number;
|
|
17
17
|
pricingPlanId: number;
|
|
18
18
|
previousSubscriptionIds: string | null;
|
|
19
|
+
fromDateCode: string;
|
|
20
|
+
toDateCode: string;
|
|
19
21
|
}
|
|
20
22
|
export type ISubscriptionModel = ISubscriptionEntity;
|
|
@@ -20,6 +20,8 @@ export declare class SubscriptionModel implements ISubscriptionModel {
|
|
|
20
20
|
updatedOn: Date;
|
|
21
21
|
createdBy: number;
|
|
22
22
|
updatedBy: number;
|
|
23
|
+
fromDateCode: string;
|
|
24
|
+
toDateCode: string;
|
|
23
25
|
constructor(data: ISubscriptionEntity);
|
|
24
26
|
remainingSubscriptionDays(): number;
|
|
25
27
|
static updateStatus(subscriptionEntities: ISubscriptionEntity[], status: SubscriptionStatus, userId: number): ISubscriptionEntity[];
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { BookingDetailsStatus } from
|
|
1
|
+
import { BookingDetailsStatus } from "../enums/booking-details-status.enum";
|
|
2
2
|
export type IBookingDetailsWithBooking = {
|
|
3
|
-
[bookingDetailsId: string]:
|
|
4
|
-
createdOn: Date;
|
|
5
|
-
updatedOn: Date;
|
|
6
|
-
createdBy: number;
|
|
7
|
-
updatedBy: number;
|
|
8
|
-
id: number;
|
|
9
|
-
turfId: number;
|
|
10
|
-
pitchId: number;
|
|
11
|
-
customerName: string;
|
|
12
|
-
contact: string;
|
|
13
|
-
paymentMode: string;
|
|
14
|
-
couponCode: string;
|
|
15
|
-
totalCost: number;
|
|
16
|
-
discountedCost: number;
|
|
17
|
-
amountPaid: number;
|
|
18
|
-
email: string | null;
|
|
19
|
-
status: BookingDetailsStatus;
|
|
20
|
-
sport: string;
|
|
21
|
-
remarks: string | null;
|
|
22
|
-
initialBookingGrossAmount: number;
|
|
23
|
-
additionalBookingGrossAmount: number;
|
|
24
|
-
discountAmount: number;
|
|
25
|
-
cancelledBookingGrossAmount: number;
|
|
26
|
-
totalCancellationCharges: number;
|
|
27
|
-
netTotal: number;
|
|
28
|
-
amountPayable: number;
|
|
29
|
-
refundPayable: number;
|
|
30
|
-
bookings: {
|
|
31
|
-
[code: string]: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
3
|
+
[bookingDetailsId: string]: IBookingDetailsWithBookingCodes;
|
|
34
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;
|
|
32
|
+
bookings: {
|
|
33
|
+
[code: string]: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PaymentMode } from "../../@enum";
|
|
2
|
-
import { IDeleteBookingByCodesDto } from "../dto/delete-booking-by-codes-dto.interface";
|
|
3
|
-
export interface IDeleteBookingByCodesResponse extends IDeleteBookingByCodesDto {
|
|
4
|
-
cancellation_amount: number;
|
|
5
|
-
refund_amount: number;
|
|
6
|
-
refund_mode: PaymentMode;
|
|
7
|
-
}
|
/package/build/interface/{api/delete-booking-by-codes-response.interface.js → modify.interface.js}
RENAMED
|
File without changes
|