turf-common 1.0.18-beta.0 → 1.0.18-beta.10

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.
Files changed (61) hide show
  1. package/build/@enum.d.ts +1 -0
  2. package/build/@enum.js +1 -0
  3. package/build/enums/booking-fetch-filter.enum.d.ts +5 -0
  4. package/build/enums/booking-fetch-filter.enum.js +9 -0
  5. package/build/enums/valid-coupon-type.enum.d.ts +4 -0
  6. package/build/enums/valid-coupon-type.enum.js +8 -0
  7. package/build/interface/api/activate-subscription.interface.d.ts +5 -1
  8. package/build/interface/api/booking-availablity-by-pitch.interface.d.ts +12 -1
  9. package/build/interface/api/cancellation-charges.interface.d.ts +12 -1
  10. package/build/interface/api/create-bank-details.interface.d.ts +12 -2
  11. package/build/interface/api/create-cancellation-policy.interface.d.ts +11 -2
  12. package/build/interface/api/create-coupon.interface.d.ts +7 -2
  13. package/build/interface/api/create-faqs.interface.d.ts +11 -2
  14. package/build/interface/api/create-organization.interface.d.ts +18 -2
  15. package/build/interface/api/create-pricing-plan.interface.d.ts +12 -2
  16. package/build/interface/api/create-recurring-slot-booking.interface.d.ts +25 -2
  17. package/build/interface/api/create-registration-transaction-output.interface.d.ts +10 -1
  18. package/build/interface/api/create-subscription.interface.d.ts +14 -2
  19. package/build/interface/api/create-turf.interface.d.ts +1 -1
  20. package/build/interface/api/create-user.interface.d.ts +11 -0
  21. package/build/interface/api/delete-bank-details-by-id.interface.d.ts +1 -1
  22. package/build/interface/api/delete-booking-by-codes.interface.d.ts +5 -5
  23. package/build/interface/api/delete-booking-info.interface.d.ts +1 -1
  24. package/build/interface/api/delete-pricing-plan.interface.d.ts +1 -1
  25. package/build/interface/api/get-all-booking-of-turf.interface.d.ts +1 -1
  26. package/build/interface/api/get-bank-detail-by-id.interface.d.ts +1 -1
  27. package/build/interface/api/get-bank-detail-entities.interface.d.ts +1 -1
  28. package/build/interface/api/get-booking-by-organization-id.interface.d.ts +5 -1
  29. package/build/interface/api/get-booking-customers.interface.d.ts +1 -1
  30. package/build/interface/api/get-collection.interface.d.ts +6 -0
  31. package/build/interface/api/get-cron-job-by-date-range-name-status.interface.d.ts +6 -0
  32. package/build/interface/api/get-price-entity.interface.d.ts +10 -0
  33. package/build/interface/api/get-price-query.interface.d.ts +3 -0
  34. package/build/interface/api/index.d.ts +6 -2
  35. package/build/interface/api/index.js +6 -2
  36. package/build/interface/api/manual-trigger-cron-job.interface.d.ts +5 -0
  37. package/build/interface/api/manual-trigger-cron-job.interface.js +2 -0
  38. package/build/interface/api/one-slot-booking.interface.d.ts +21 -0
  39. package/build/interface/api/renew-subscription.interface.d.ts +14 -1
  40. package/build/interface/api/set-price.interface.d.ts +6 -0
  41. package/build/interface/api/set-price.interface.js +2 -0
  42. package/build/interface/api/update-bank-detail.interface.d.ts +11 -1
  43. package/build/interface/api/update-configuration.interface.d.ts +1 -1
  44. package/build/interface/api/update-coupon.interface.d.ts +3 -0
  45. package/build/interface/api/update-faqs-steps.interface.d.ts +5 -0
  46. package/build/interface/api/update-organization.interface.d.ts +12 -0
  47. package/build/interface/api/update-pricing-plan-by-id.interface.d.ts +11 -1
  48. package/build/interface/api/update-recurring-booking.interface.d.ts +16 -1
  49. package/build/interface/api/update-registration-entities.interface.d.ts +5 -1
  50. package/build/interface/api/update-staff-member.interface.d.ts +8 -0
  51. package/build/interface/api/update-staff-member.interface.js +7 -0
  52. package/build/interface/api/update-subscription.interface.d.ts +14 -0
  53. package/build/interface/api/update-turf-transaction-output.d.ts +8 -8
  54. package/build/interface/api/upgrade-renew-subscription.interface.d.ts +5 -1
  55. package/build/interface/api/upgrade-subscription.interface.d.ts +16 -1
  56. package/build/interface/dto/update-booking-by-code-dto.interface.d.ts +5 -7
  57. package/package.json +1 -1
  58. package/build/interface/api/update-booking-by-code-response.d.ts +0 -7
  59. package/build/interface/api/update-booking-by-code.interface.d.ts +0 -15
  60. /package/build/interface/api/{update-booking-by-code-response.js → create-user.interface.js} +0 -0
  61. /package/build/interface/api/{update-booking-by-code.interface.js → get-price-entity.interface.js} +0 -0
package/build/@enum.d.ts CHANGED
@@ -15,3 +15,4 @@ export * from "./enums/transaction-type.enum";
15
15
  export * from "./enums/user-status.enum";
16
16
  export * from "./enums/valid-type.enum";
17
17
  export * from "./enums/modification-discount-policy.enum";
18
+ export * from "./enums/valid-coupon-type.enum";
package/build/@enum.js CHANGED
@@ -31,3 +31,4 @@ __exportStar(require("./enums/transaction-type.enum"), exports);
31
31
  __exportStar(require("./enums/user-status.enum"), exports);
32
32
  __exportStar(require("./enums/valid-type.enum"), exports);
33
33
  __exportStar(require("./enums/modification-discount-policy.enum"), exports);
34
+ __exportStar(require("./enums/valid-coupon-type.enum"), exports);
@@ -0,0 +1,5 @@
1
+ export declare enum BookingFetchFilter {
2
+ PENDING_PAYMENT = "pending_payment",
3
+ PENDING_REFUND = "pending_refund",
4
+ FULL_REFUND = "full_refund"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BookingFetchFilter = void 0;
4
+ var BookingFetchFilter;
5
+ (function (BookingFetchFilter) {
6
+ BookingFetchFilter["PENDING_PAYMENT"] = "pending_payment";
7
+ BookingFetchFilter["PENDING_REFUND"] = "pending_refund";
8
+ BookingFetchFilter["FULL_REFUND"] = "full_refund";
9
+ })(BookingFetchFilter || (exports.BookingFetchFilter = BookingFetchFilter = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum ValidCouponType {
2
+ PERCENTAGE = "percentage",
3
+ UNIT = "unit"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidCouponType = void 0;
4
+ var ValidCouponType;
5
+ (function (ValidCouponType) {
6
+ ValidCouponType["PERCENTAGE"] = "percentage";
7
+ ValidCouponType["UNIT"] = "unit";
8
+ })(ValidCouponType || (exports.ValidCouponType = ValidCouponType = {}));
@@ -1,3 +1,7 @@
1
1
  import { ISubscriptionEntity } from "../../@type";
2
- export interface IActivateSubscription extends Array<ISubscriptionEntity> {
2
+ export interface IActivateSubscriptionResponse extends Array<ISubscriptionEntity> {
3
+ }
4
+ export interface IActivateSubscriptionRequest {
5
+ dateCode?: number;
6
+ organizationId?: number;
3
7
  }
@@ -1,4 +1,4 @@
1
- export interface IBookingAvailabilityByPitch {
1
+ export interface IBookingAvailabilityByPitchResponse {
2
2
  available: {
3
3
  [key: string]: {
4
4
  from: string;
@@ -26,3 +26,14 @@ export interface IBookingByPitches {
26
26
  to: string;
27
27
  pitch: number[];
28
28
  }
29
+ export interface IBookingAvailabilityByPitchRequest {
30
+ slot: IBookingAvailabilitySlotRequest[];
31
+ bookingCode?: string;
32
+ }
33
+ export interface IBookingAvailabilitySlotRequest {
34
+ fromDate: number;
35
+ toDate: number;
36
+ weekdays: number[];
37
+ from: string;
38
+ to: string;
39
+ }
@@ -1,6 +1,17 @@
1
- export interface ICancellationCharges {
1
+ export interface ICancellationChargesResponse {
2
2
  [key: string]: {
3
3
  cancellationCharges: number;
4
4
  cancellationUnit: string;
5
5
  };
6
6
  }
7
+ export interface ICancellationChargesDtoRequest {
8
+ data?: {
9
+ [key: string]: string;
10
+ };
11
+ new_slot?: ICancellationChargesSlot;
12
+ }
13
+ export interface ICancellationChargesSlot {
14
+ date: number;
15
+ from: string;
16
+ to: string;
17
+ }
@@ -1,3 +1,13 @@
1
- import { IBankDetailsEntity } from '../../@type';
2
- export interface ICreateBankDetail extends IBankDetailsEntity {
1
+ import { IBankDetailsEntity, IUploadedMulterFile } from "../../@type";
2
+ export interface ICreateBankDetailResponse extends IBankDetailsEntity {
3
+ }
4
+ export interface ICreateBankDetailRequest {
5
+ qrCode?: IUploadedMulterFile;
6
+ bankName: string;
7
+ accountName: string;
8
+ accountNo: string;
9
+ ifscCode: string;
10
+ upiId?: string;
11
+ bankAddress?: string;
12
+ branch: string;
3
13
  }
@@ -1,3 +1,12 @@
1
- import { ICancellationPolicyEntity } from '../../@type';
2
- export interface ICreateCancellationPolicy extends Array<ICancellationPolicyEntity> {
1
+ import { ICancellationPolicyEntity } from "../../@type";
2
+ export interface ICreateCancellationPolicyResponse extends Array<ICancellationPolicyEntity> {
3
+ }
4
+ export interface ICreateCancellationPolicyDtoRequest {
5
+ adhocRefund: boolean;
6
+ cancellationPolicy?: ICancellationPolicyDetailsRequest[];
7
+ }
8
+ export interface ICancellationPolicyDetailsRequest {
9
+ from: number;
10
+ to: number;
11
+ charges: string;
3
12
  }
@@ -1,3 +1,8 @@
1
- import { ICouponEntity } from '../../@type';
2
- export interface ICreateCoupon extends ICouponEntity {
1
+ import { ICouponEntity } from "../../@type";
2
+ import { ValidCouponType } from "../../enums/valid-coupon-type.enum";
3
+ export interface ICreateCouponResponse extends ICouponEntity {
4
+ }
5
+ export interface ICreateCouponDtoRequest {
6
+ type: ValidCouponType;
7
+ value: number;
3
8
  }
@@ -1,3 +1,12 @@
1
- import { IFaqsEntity } from '../../@type';
2
- export interface ICreateFaqs extends IFaqsEntity {
1
+ import { IFaqsEntity } from "../../@type";
2
+ export interface ICreateFaqsResponse extends IFaqsEntity {
3
+ }
4
+ export interface ICreateFaqsRequest {
5
+ module: string;
6
+ question: string;
7
+ index: string;
8
+ steps: IStepsRequest[];
9
+ }
10
+ export interface IStepsRequest {
11
+ text: string;
3
12
  }
@@ -1,3 +1,19 @@
1
- import { IOrganizationEntity } from '../../@type';
2
- export interface ICreateOrganization extends IOrganizationEntity {
1
+ import { IOrganizationEntity } from "../../@type";
2
+ export interface ICreateOrganizationResponse extends IOrganizationEntity {
3
+ }
4
+ export interface ICreateOrganizationRequest {
5
+ name: string;
6
+ owner: ICreateOrganizationUserInfo[];
7
+ email?: string;
8
+ phone?: number;
9
+ type: string;
10
+ pan: string;
11
+ gst?: string;
12
+ deed?: string;
13
+ }
14
+ export interface ICreateOrganizationUserInfo {
15
+ first_name: string;
16
+ last_name: string;
17
+ email?: string;
18
+ phone?: number;
3
19
  }
@@ -1,3 +1,13 @@
1
- import { IPricingPlanEntity } from '../../@type';
2
- export interface ICreatePricingPlan extends IPricingPlanEntity {
1
+ import { IPricingPlanEntity, IBillingCycleDto, IPitchSlab } from "../../@type";
2
+ export interface ICreatePricingPlanResponse extends IPricingPlanEntity {
3
+ }
4
+ export interface ICreatePricingPlanDtoRequest {
5
+ effective_from_date: number;
6
+ effective_to_date: number;
7
+ base_price: number;
8
+ unit: string;
9
+ pitch_slab: {
10
+ [key: string]: IPitchSlab;
11
+ };
12
+ billing_cycle: IBillingCycleDto;
3
13
  }
@@ -1,3 +1,26 @@
1
- import { IBookingDetailsEntity } from '../../@type';
2
- export interface ICreateRecurringSlotBooking extends IBookingDetailsEntity {
1
+ import { PaymentMode, BookingDetailsStatus } from "../../@enum";
2
+ import { IBookingDetailsEntity } from "../../@type";
3
+ export interface ICreateRecurringSlotBookingResponse extends IBookingDetailsEntity {
4
+ }
5
+ export interface ICreateRecurringSlotsBookingDetailsRequest {
6
+ customerName: string;
7
+ contact: number;
8
+ email?: string | null;
9
+ paymentMode: PaymentMode;
10
+ couponCode?: string;
11
+ totalCost: number;
12
+ discountedCost: number;
13
+ amountPaid: number;
14
+ pitchId: number;
15
+ status: BookingDetailsStatus;
16
+ sport: string;
17
+ remarks?: string | null;
18
+ slot: IRecurringSlot[];
19
+ }
20
+ export declare class IRecurringSlot {
21
+ fromDate: number;
22
+ toDate: number;
23
+ weekdays: number[];
24
+ from: string;
25
+ to: string;
3
26
  }
@@ -1,2 +1,11 @@
1
- import { IWithoutTokenRegistrationEntity } from '../without-token-registration-entity.types';
1
+ import { OrganizationStatus } from "../../@enum";
2
+ import { IWithoutTokenRegistrationEntity } from "../without-token-registration-entity.types";
2
3
  export type CreateRegistrationTransactionOutput = IWithoutTokenRegistrationEntity;
4
+ export interface ICreateRegistrationRequest {
5
+ name: string;
6
+ contact: string;
7
+ email: string;
8
+ pitchPlan: string;
9
+ status: OrganizationStatus;
10
+ comments?: string;
11
+ }
@@ -1,3 +1,15 @@
1
- import { ISubscriptionEntity } from '../../@type';
2
- export interface ICreateSubscription extends Array<ISubscriptionEntity> {
1
+ import { ISubscriptionEntity } from "../../@type";
2
+ export interface ICreateSubscriptionResponse extends Array<ISubscriptionEntity> {
3
+ }
4
+ export interface ICreateSubscriptionRequest {
5
+ from: string;
6
+ to: string;
7
+ pricingPlanId: number;
8
+ type: string;
9
+ grossAmount: number;
10
+ discount: string;
11
+ netAmount: number;
12
+ amountPaid: number;
13
+ noOfPitches: number;
14
+ remarks?: string;
3
15
  }
@@ -1,5 +1,5 @@
1
1
  import { PitchSports } from "../../enums/pitch-sports.enum";
2
- export interface ICreateTurfDto {
2
+ export interface ICreateTurfRequest {
3
3
  turfName: string;
4
4
  numberOfPitches: number;
5
5
  pitches: IPitches[];
@@ -0,0 +1,11 @@
1
+ import { UserType } from "../../@enum";
2
+ export interface IUserRequest {
3
+ firstname: string;
4
+ lastname: string;
5
+ password: string;
6
+ phone: number;
7
+ email: string;
8
+ turfids: string[];
9
+ type: UserType;
10
+ comments?: string;
11
+ }
@@ -1,3 +1,3 @@
1
1
  import { IBankDetailsEntity } from '../../@type';
2
- export interface IDeleteBankDetailsById extends IBankDetailsEntity {
2
+ export interface IDeleteBankDetailsByIdResponse extends IBankDetailsEntity {
3
3
  }
@@ -1,7 +1,7 @@
1
1
  import { PaymentMode } from "../../@enum";
2
- export interface IDeleteBookingByCodes {
3
- bookingCodes: string;
4
- cancellation_amount?: number;
5
- refund_amount?: number;
6
- refund_mode?: PaymentMode;
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
7
  }
@@ -1,3 +1,3 @@
1
1
  import { IBookingDetailsEntity } from "../../@type";
2
- export interface IDeleteBookingInfo extends IBookingDetailsEntity {
2
+ export interface IDeleteBookingInfoResponse extends IBookingDetailsEntity {
3
3
  }
@@ -1,3 +1,3 @@
1
1
  import { IPricingPlanEntity } from "../../@type";
2
- export interface IRemovePricingPlanById extends IPricingPlanEntity {
2
+ export interface IRemovePricingPlanByIdResponse extends IPricingPlanEntity {
3
3
  }
@@ -1,6 +1,6 @@
1
1
  import { ITurf } from "../../@type";
2
2
  import { IBookingDetailsWithCode } from "../booking-details-with-code.interface";
3
- export interface IGetAllBookingOfTurf {
3
+ export interface IGetAllBookingOfTurfResponse {
4
4
  turfs: {
5
5
  [turfId: number]: ITurf;
6
6
  };
@@ -1,3 +1,3 @@
1
1
  import { IBankDetailsEntity } from "../../@type";
2
- export interface IGetBankDetailById extends IBankDetailsEntity {
2
+ export interface IGetBankDetailByIdResponse extends IBankDetailsEntity {
3
3
  }
@@ -1,3 +1,3 @@
1
1
  import { IBankDetailsEntity } from "../../@type";
2
- export interface IGetBankDetailsEntities extends IBankDetailsEntity {
2
+ export interface IGetBankDetailsEntitiesResponse extends IBankDetailsEntity {
3
3
  }
@@ -1,7 +1,8 @@
1
1
  import { ITurf } from "../../@type";
2
2
  import { IBookingDetailsWithBooking } from "../../types/bookingdetails-with-booking.type";
3
3
  import { UserType } from "../../enums/valid-type.enum";
4
- export interface IGetBookingsByOrganizationId {
4
+ import { BookingFetchFilter } from "../../enums/booking-fetch-filter.enum";
5
+ export interface IGetBookingsByOrganizationIdResponse {
5
6
  turfs: {
6
7
  [turfId: number]: ITurf;
7
8
  };
@@ -17,3 +18,6 @@ export interface IGetBookingsByOrganizationId {
17
18
  };
18
19
  };
19
20
  }
21
+ export interface IGetBookingsByOrganizationIdRequest {
22
+ fetch: BookingFetchFilter[];
23
+ }
@@ -1,3 +1,3 @@
1
1
  import { IBookingCustomerEntity } from "../../@type";
2
- export interface IGetBookingCustomers extends Array<IBookingCustomerEntity> {
2
+ export interface IGetBookingCustomersResponse extends Array<IBookingCustomerEntity> {
3
3
  }
@@ -10,3 +10,9 @@ export interface IGetCollection {
10
10
  total: IDateWisePaymentHistoryData;
11
11
  payments: IBookingPaymentHistoryEntity[];
12
12
  }
13
+ export interface IGetCollectionRequest {
14
+ fromDateCode?: string;
15
+ toDateCode?: string;
16
+ turfIds?: number[];
17
+ total?: boolean;
18
+ }
@@ -1,3 +1,9 @@
1
+ import { CronJobsNames, CronJobsStatus } from "../../@enum";
1
2
  import { ICronJobsEntity } from "../../@type";
2
3
  export interface IGetCronJobByDateRangeNameStatus extends Array<ICronJobsEntity> {
3
4
  }
5
+ export interface IGetCronJobByDateRangeNameStatusRequest {
6
+ dateRange?: string;
7
+ name?: CronJobsNames[];
8
+ status?: CronJobsStatus[];
9
+ }
@@ -0,0 +1,10 @@
1
+ export type IGetPriceEntity = {
2
+ [date: string]: {
3
+ [time: string]: number;
4
+ };
5
+ };
6
+ export interface IGetPriceEntityRequest {
7
+ turfId: number;
8
+ weekdays: number[];
9
+ months: number[];
10
+ }
@@ -1,3 +1,4 @@
1
+ import { ISetPriceRequest } from "./set-price.interface";
1
2
  export interface IGetPriceQuery {
2
3
  [turfId: string]: {
3
4
  [code: string]: {
@@ -5,3 +6,5 @@ export interface IGetPriceQuery {
5
6
  };
6
7
  };
7
8
  }
9
+ export interface IGetPriceQueryRequest extends ISetPriceRequest {
10
+ }
@@ -27,7 +27,7 @@ export * from "./get-cron-job-by-date-range-name-status.interface";
27
27
  export * from "./get-current-subscription.interface";
28
28
  export * from "./get-organization-by-orgid.interface";
29
29
  export * from "./get-price-by-organization-response.interface";
30
- export * from "./get-price-entity.types";
30
+ export * from "./get-price-entity.interface";
31
31
  export * from "./get-price-query.interface";
32
32
  export * from "./get-pricing-plan-by-date-response.interface";
33
33
  export * from "./get-pricing-plan-by-id.interface";
@@ -59,6 +59,10 @@ export * from "./upgrade-renew-subscription.interface";
59
59
  export * from "./upgrade-subscription.interface";
60
60
  export * from "./userentity-without-password.interface";
61
61
  export * from "./update-registration-entities.interface";
62
- export * from "./delete-booking-by-codes-response.interface";
62
+ export * from "./delete-booking-by-codes.interface";
63
63
  export * from "./update-booking-by-code-response.interface";
64
64
  export * from "./login-response.interface";
65
+ export * from "./create-turf.interface";
66
+ export * from "./set-price.interface";
67
+ export * from "./manual-trigger-cron-job.interface";
68
+ export * from "./create-user.interface";
@@ -43,7 +43,7 @@ __exportStar(require("./get-cron-job-by-date-range-name-status.interface"), expo
43
43
  __exportStar(require("./get-current-subscription.interface"), exports);
44
44
  __exportStar(require("./get-organization-by-orgid.interface"), exports);
45
45
  __exportStar(require("./get-price-by-organization-response.interface"), exports);
46
- __exportStar(require("./get-price-entity.types"), exports);
46
+ __exportStar(require("./get-price-entity.interface"), exports);
47
47
  __exportStar(require("./get-price-query.interface"), exports);
48
48
  __exportStar(require("./get-pricing-plan-by-date-response.interface"), exports);
49
49
  __exportStar(require("./get-pricing-plan-by-id.interface"), exports);
@@ -77,6 +77,10 @@ __exportStar(require("./upgrade-renew-subscription.interface"), exports);
77
77
  __exportStar(require("./upgrade-subscription.interface"), exports);
78
78
  __exportStar(require("./userentity-without-password.interface"), exports);
79
79
  __exportStar(require("./update-registration-entities.interface"), exports);
80
- __exportStar(require("./delete-booking-by-codes-response.interface"), exports);
80
+ __exportStar(require("./delete-booking-by-codes.interface"), exports);
81
81
  __exportStar(require("./update-booking-by-code-response.interface"), exports);
82
82
  __exportStar(require("./login-response.interface"), exports);
83
+ __exportStar(require("./create-turf.interface"), exports);
84
+ __exportStar(require("./set-price.interface"), exports);
85
+ __exportStar(require("./manual-trigger-cron-job.interface"), exports);
86
+ __exportStar(require("./create-user.interface"), exports);
@@ -0,0 +1,5 @@
1
+ export interface IManualTriggerCronJobRequest {
2
+ fromDateCode?: string;
3
+ toDateCode?: string;
4
+ organizationIds?: number[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,24 @@
1
+ import { PaymentMode, BookingDetailsStatus } from "../../@enum";
1
2
  import { IBookingDetailsEntity } from "../../@type";
2
3
  export interface IOneSlotBooking extends IBookingDetailsEntity {
3
4
  }
5
+ export interface ICreateOneSlotBookingDetailsRequest {
6
+ customerName: string;
7
+ contact: number;
8
+ email?: string | null;
9
+ paymentMode: PaymentMode;
10
+ couponCode: string;
11
+ totalCost?: number;
12
+ discountedCost: number;
13
+ amountPaid: number;
14
+ pitchId: number;
15
+ status: BookingDetailsStatus;
16
+ sport: string;
17
+ remarks?: string | null;
18
+ slot: ICreateOneSlot[];
19
+ }
20
+ export interface ICreateOneSlot {
21
+ date: number;
22
+ from: string;
23
+ to: string;
24
+ }
@@ -1,3 +1,16 @@
1
- import { ISubscriptionEntity } from "../../@type";
1
+ import { ISubscriptionEntity, IUpgrade_details } from "../../@type";
2
2
  export interface IRenewSubscription extends ISubscriptionEntity {
3
3
  }
4
+ export interface IRenewSubscriptionRequest {
5
+ from: string;
6
+ to: string;
7
+ pricingPlanId: number;
8
+ type: string;
9
+ grossAmount: number;
10
+ discount: string;
11
+ netAmount: number;
12
+ amountPaid: number;
13
+ remarks?: string;
14
+ pitchCount?: number;
15
+ upgrade_details?: IUpgrade_details[];
16
+ }
@@ -0,0 +1,6 @@
1
+ export interface ISetPriceRequest {
2
+ from: string;
3
+ to: string;
4
+ monthWeekDays: number[];
5
+ price: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,13 @@
1
- import { IBankDetailsEntity } from "../../@type";
1
+ import { IBankDetailsEntity, IUploadedMulterFile } from "../../@type";
2
2
  export interface IUpdateBankDetail extends IBankDetailsEntity {
3
3
  }
4
+ export interface IUpdateBankDetailRequest {
5
+ qrCode?: IUploadedMulterFile;
6
+ bankName: string;
7
+ accountName: string;
8
+ accountNo: string;
9
+ ifscCode: string;
10
+ upiId?: string;
11
+ bankAddress?: string;
12
+ branch: string;
13
+ }
@@ -5,5 +5,5 @@ export interface IUpdateConfiguration extends Array<IConfigurationsEntity> {
5
5
  export interface IUpdateConfigurationRequest {
6
6
  key: ConfigurationKey;
7
7
  value: string;
8
- description: string;
8
+ description?: string;
9
9
  }
@@ -1,3 +1,6 @@
1
1
  import { ICouponEntity } from "../../@type";
2
2
  export interface IUpdateCoupon extends ICouponEntity {
3
3
  }
4
+ export interface IUpdateCouponRequest {
5
+ value: number;
6
+ }
@@ -1,3 +1,8 @@
1
1
  import { IFaqsEntity } from "../../@type";
2
2
  export interface IUpdateFaqsSteps extends IFaqsEntity {
3
3
  }
4
+ export interface IUpdateFaqsRequest {
5
+ module?: string;
6
+ question?: string;
7
+ text?: string;
8
+ }
@@ -1,6 +1,18 @@
1
+ import { OrganizationStatus } from "../../@enum";
1
2
  import { IOrganizationEntity } from "../../@type";
2
3
  import { IUserInfo } from "../user-info-dto.interface";
3
4
  export interface IUpdateOrganization extends IOrganizationEntity {
4
5
  imageUrl?: string;
5
6
  owners?: IUserInfo[];
6
7
  }
8
+ export interface IUpdateOrganizationRequest {
9
+ name?: string;
10
+ owners?: IUserInfo[];
11
+ email?: string;
12
+ phone?: number;
13
+ type?: string;
14
+ pan?: string;
15
+ gst?: string;
16
+ deed?: string;
17
+ status?: OrganizationStatus;
18
+ }
@@ -1,7 +1,17 @@
1
- import { IPricingPlanEntity } from "../../@type";
1
+ import { IPitchSlab, IPricingPlanEntity } from "../../@type";
2
2
  import { IPitchSlabDto } from "../pitch-slab-dto.interface";
3
3
  import { IBillingCycleDto } from "../billing-cycle-dto.interface";
4
4
  export interface IUpdatePricingPlanById extends IPricingPlanEntity {
5
5
  pitch_slab?: IPitchSlabDto;
6
6
  billing_cycle?: IBillingCycleDto;
7
7
  }
8
+ export interface IUpdatePricingPlanByIdRequest {
9
+ effective_from_date?: number;
10
+ effective_to_date?: number;
11
+ base_price?: number;
12
+ unit?: string;
13
+ pitch_slab?: {
14
+ [key: string]: IPitchSlab;
15
+ };
16
+ billing_cycle?: IBillingCycleDto;
17
+ }
@@ -1,4 +1,4 @@
1
- import { BookingDetailsStatus } from "../../@enum";
1
+ import { BookingDetailsStatus, PaymentMode } from "../../@enum";
2
2
  import { IBookingDetailsEntity } 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";
@@ -35,3 +35,18 @@ export interface IUpdateRecurringBooking extends IBookingDetailsEntity {
35
35
  delete_slot?: IDeleteBookingByCodesDto;
36
36
  update_slot?: IUpdateBookingByCodesDto;
37
37
  }
38
+ export interface IUpdateRecurringSlotBookingDetailsRequest {
39
+ customerName?: string;
40
+ contact?: number;
41
+ email?: string;
42
+ paymentMode?: PaymentMode;
43
+ couponCode?: string;
44
+ amountPaid?: number;
45
+ status?: BookingDetailsStatus;
46
+ advancePayment?: number;
47
+ refundedAmount?: number;
48
+ refundedMode?: PaymentMode;
49
+ delete_slot?: IDeleteBookingByCodesDto;
50
+ update_slot?: IUpdateBookingByCodesDto;
51
+ remarks?: string | null;
52
+ }
@@ -1,3 +1,7 @@
1
- import { IWithoutTokenRegistrationEntity } from '../without-token-registration-entity.types';
1
+ import { RegistrationStatus } from "../../@enum";
2
+ import { IWithoutTokenRegistrationEntity } from "../without-token-registration-entity.types";
2
3
  export interface IUpdateRegistrationEntities extends IWithoutTokenRegistrationEntity {
3
4
  }
5
+ export interface IUpdateRegistrationRequest {
6
+ status?: RegistrationStatus;
7
+ }
@@ -21,3 +21,11 @@ export interface IUpdateStaffMember {
21
21
  imageUrl: null | string;
22
22
  turfids?: string[];
23
23
  }
24
+ export declare class IUpdateStaffMemberDtoRequest {
25
+ firstname?: string;
26
+ lastname?: string;
27
+ phone?: number;
28
+ turfids?: string[];
29
+ email?: string[];
30
+ password?: string;
31
+ }
@@ -1,2 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IUpdateStaffMemberDtoRequest = void 0;
4
+ var IUpdateStaffMemberDtoRequest = /** @class */ (function () {
5
+ function IUpdateStaffMemberDtoRequest() {
6
+ }
7
+ return IUpdateStaffMemberDtoRequest;
8
+ }());
9
+ exports.IUpdateStaffMemberDtoRequest = IUpdateStaffMemberDtoRequest;
@@ -1,4 +1,18 @@
1
+ import { SubscriptionStatus } from "../../@enum";
1
2
  import { ISubscriptionEntity } from "../../@type";
2
3
  export interface IUpdateSubscription extends ISubscriptionEntity {
3
4
  advanceAmount?: number;
4
5
  }
6
+ export interface IUpdateSubscriptionDtoRequest {
7
+ from?: string;
8
+ to?: string;
9
+ type?: string;
10
+ grossAmount?: number;
11
+ discount?: string;
12
+ netAmount?: number;
13
+ amountPaid?: number;
14
+ advanceAmount?: number;
15
+ status?: SubscriptionStatus;
16
+ noOfPitches?: number;
17
+ remarks?: string;
18
+ }
@@ -4,16 +4,16 @@ import { PitchSports } from "../../enums/pitch-sports.enum";
4
4
  export interface UpdateTurfTransactionOutput extends ITurfEntity {
5
5
  }
6
6
  export interface UpdateTurfDetailsRequest {
7
- turfName: string;
8
- pitches: IUpdatePitches[];
9
- address: string;
7
+ turfName?: string;
8
+ pitches?: IUpdatePitches[];
9
+ address?: string;
10
10
  }
11
11
  export interface IUpdatePitches {
12
- number: number;
13
- name: string;
14
- operations: PitchOperations;
15
- status: string;
16
- sports: IUpdateSports[];
12
+ number?: number;
13
+ name?: string;
14
+ operations?: PitchOperations;
15
+ status?: string;
16
+ sports?: IUpdateSports[];
17
17
  }
18
18
  export interface IUpdateSports {
19
19
  name: PitchSports;
@@ -1,3 +1,7 @@
1
- import { ISubscriptionEntity } from "../../@type";
1
+ import { IRenewSubscriptionRequest, ISubscriptionEntity, IUpgradeSubscriptionRequest } from "../../@type";
2
2
  export interface IUpgradeRenewSubscription extends ISubscriptionEntity {
3
3
  }
4
+ export interface IUpgradeRenewSubscriptionRequest {
5
+ upgradeSubscription: IUpgradeSubscriptionRequest;
6
+ renewSubscription: IRenewSubscriptionRequest;
7
+ }
@@ -1,3 +1,18 @@
1
- import { ISubscriptionEntity } from "../../@type";
1
+ import { ISubscriptionEntity, IUpdatePitches } from "../../@type";
2
2
  export interface IUpgradeSubscription extends ISubscriptionEntity {
3
3
  }
4
+ export interface IUpgradeSubscriptionRequest {
5
+ pricingPlanId: number;
6
+ pitchCount: number;
7
+ grossAmount: number;
8
+ netAmount: number;
9
+ discount: string;
10
+ upgrade_details?: IUpgrade_details[];
11
+ }
12
+ export interface IUpgrade_details {
13
+ turfId?: number;
14
+ turfName?: string;
15
+ status?: string;
16
+ pitches?: IUpdatePitches[];
17
+ address?: string;
18
+ }
@@ -5,11 +5,9 @@ export interface IUpdateBookingByCodesDto {
5
5
  refund_amount: number;
6
6
  refund_mode: PaymentMode;
7
7
  pitchId: number;
8
- slot: [
9
- {
10
- date: number;
11
- from: string;
12
- to: string;
13
- }
14
- ];
8
+ slot: {
9
+ date: number;
10
+ from: string;
11
+ to: string;
12
+ }[];
15
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.0.18-beta.0",
3
+ "version": "1.0.18-beta.10",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,7 +0,0 @@
1
- import { PaymentMode } from "../../@enum";
2
- import { IUpdateBookingByCodesDto } from "../dto/update-booking-by-code-dto.interface";
3
- export interface IUpdateBookingByCodeResponse extends IUpdateBookingByCodesDto {
4
- cancellation_amount: number;
5
- refund_amount: number;
6
- refund_mode: PaymentMode;
7
- }
@@ -1,15 +0,0 @@
1
- import { PaymentMode } from "../../@enum";
2
- export interface IUpdateBookingByCodes {
3
- bookingCode: string;
4
- cancellation_amount: number;
5
- refund_amount: number;
6
- refund_mode: PaymentMode;
7
- pitchId: number;
8
- slot: [
9
- {
10
- date: number;
11
- from: string;
12
- to: string;
13
- }
14
- ];
15
- }