turf-common 1.3.1-beta.9 → 1.3.1
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/jest.config.d.ts +3 -0
- package/build/jest.config.js +10 -0
- package/build/src/@enums/socket-io.d.ts +1 -0
- package/build/src/@enums/socket-io.js +17 -0
- package/build/src/@types/socket-io.d.ts +1 -0
- package/build/src/@types/socket-io.js +17 -0
- package/build/src/enums/availability-view.enum.d.ts +4 -0
- package/build/src/enums/availability-view.enum.js +8 -0
- package/build/src/enums/booking-details-status.enum.d.ts +4 -0
- package/build/src/enums/booking-details-status.enum.js +8 -0
- package/build/src/enums/booking-fetch-filter.enum.d.ts +5 -0
- package/build/src/enums/booking-fetch-filter.enum.js +9 -0
- package/build/src/enums/booking-history-operation-type.enum.d.ts +12 -0
- package/build/src/enums/booking-history-operation-type.enum.js +20 -0
- package/build/src/enums/bookings-status.enum.d.ts +5 -0
- package/build/src/enums/bookings-status.enum.js +9 -0
- package/build/src/enums/configuration-description.enum.d.ts +5 -0
- package/build/src/enums/configuration-description.enum.js +9 -0
- package/build/src/enums/configuration-key.enum.d.ts +10 -0
- package/build/src/enums/configuration-key.enum.js +29 -0
- package/build/src/enums/configuration-text.enum.d.ts +5 -0
- package/build/src/enums/configuration-text.enum.js +9 -0
- package/build/src/enums/cron-jobs-name.enum.d.ts +5 -0
- package/build/src/enums/cron-jobs-name.enum.js +9 -0
- package/build/src/enums/cron-jobs-status.enum.d.ts +5 -0
- package/build/src/enums/cron-jobs-status.enum.js +9 -0
- package/build/src/enums/environment.enum.d.ts +5 -0
- package/build/src/enums/environment.enum.js +9 -0
- package/build/src/enums/faqs-status.enum.d.ts +3 -0
- package/build/src/enums/faqs-status.enum.js +7 -0
- package/build/src/enums/modification-discount-policy.enum.d.ts +5 -0
- package/build/src/enums/modification-discount-policy.enum.js +9 -0
- package/build/src/enums/organization-status.enum.d.ts +15 -0
- package/build/src/enums/organization-status.enum.js +31 -0
- package/build/src/enums/organization-type.enum.d.ts +5 -0
- package/build/src/enums/organization-type.enum.js +9 -0
- package/build/src/enums/payment-mode.enum.d.ts +4 -0
- package/build/src/enums/payment-mode.enum.js +8 -0
- package/build/src/enums/pitch-operation.enum.d.ts +5 -0
- package/build/src/enums/pitch-operation.enum.js +9 -0
- package/build/src/enums/pitch-sports.enum.d.ts +7 -0
- package/build/src/enums/pitch-sports.enum.js +11 -0
- package/build/src/enums/pitch-status.enum.d.ts +12 -0
- package/build/src/enums/pitch-status.enum.js +13 -0
- package/build/src/enums/pricing-plan-status.enum.d.ts +4 -0
- package/build/src/enums/pricing-plan-status.enum.js +8 -0
- package/build/src/enums/registration-status-enum.d.ts +12 -0
- package/build/src/enums/registration-status-enum.js +16 -0
- package/build/src/enums/socket-io-booking-operation.enum.d.ts +6 -0
- package/build/src/enums/socket-io-booking-operation.enum.js +10 -0
- package/build/src/enums/subscription-status.enum.d.ts +23 -0
- package/build/src/enums/subscription-status.enum.js +40 -0
- package/build/src/enums/timezone.enum.d.ts +3 -0
- package/build/src/enums/timezone.enum.js +7 -0
- package/build/src/enums/transaction-type.enum.d.ts +7 -0
- package/build/src/enums/transaction-type.enum.js +11 -0
- package/build/src/enums/user-status.enum.d.ts +11 -0
- package/build/src/enums/user-status.enum.js +15 -0
- package/build/src/enums/valid-coupon-type.enum.d.ts +6 -0
- package/build/src/enums/valid-coupon-type.enum.js +10 -0
- package/build/src/enums/valid-type.enum.d.ts +6 -0
- package/build/src/enums/valid-type.enum.js +10 -0
- package/build/src/exceptions/app-badrequest.exception.d.ts +4 -0
- package/build/src/exceptions/app-badrequest.exception.js +28 -0
- package/build/src/interface/api/activate-subscription.interface.d.ts +10 -0
- package/build/src/interface/api/activate-subscription.interface.js +2 -0
- package/build/src/interface/api/booking-availablity-by-pitch.interface.d.ts +39 -0
- package/build/src/interface/api/booking-availablity-by-pitch.interface.js +2 -0
- package/build/src/interface/api/cancellation-charges.interface.d.ts +17 -0
- package/build/src/interface/api/cancellation-charges.interface.js +2 -0
- package/build/src/interface/api/create-bank-details.interface.d.ts +22 -0
- package/build/src/interface/api/create-bank-details.interface.js +2 -0
- package/build/src/interface/api/create-cancellation-policy.interface.d.ts +12 -0
- package/build/src/interface/api/create-cancellation-policy.interface.js +2 -0
- package/build/src/interface/api/create-coupon.interface.d.ts +11 -0
- package/build/src/interface/api/create-coupon.interface.js +2 -0
- package/build/src/interface/api/create-faqs.interface.d.ts +15 -0
- package/build/src/interface/api/create-faqs.interface.js +2 -0
- package/build/src/interface/api/create-organization.interface.d.ts +21 -0
- package/build/src/interface/api/create-organization.interface.js +2 -0
- package/build/src/interface/api/create-pricing-plan.interface.d.ts +16 -0
- package/build/src/interface/api/create-pricing-plan.interface.js +2 -0
- package/build/src/interface/api/create-recurring-slot-booking.interface.d.ts +29 -0
- package/build/src/interface/api/create-recurring-slot-booking.interface.js +2 -0
- package/build/src/interface/api/create-registration-interface.d.ts +13 -0
- package/build/src/interface/api/create-registration-interface.js +2 -0
- package/build/src/interface/api/create-registration-transaction-output.interface.d.ts +2 -0
- package/build/src/interface/api/create-registration-transaction-output.interface.js +2 -0
- package/build/src/interface/api/create-subscription.interface.d.ts +18 -0
- package/build/src/interface/api/create-subscription.interface.js +2 -0
- package/build/src/interface/api/create-turf.interface.d.ts +13 -0
- package/build/src/interface/api/create-turf.interface.js +2 -0
- package/build/src/interface/api/create-user.interface.d.ts +10 -0
- package/build/src/interface/api/create-user.interface.js +2 -0
- package/build/src/interface/api/delete-bank-details-by-id.interface.d.ts +6 -0
- package/build/src/interface/api/delete-bank-details-by-id.interface.js +2 -0
- package/build/src/interface/api/delete-booking-by-codes.interface.d.ts +7 -0
- package/build/src/interface/api/delete-booking-by-codes.interface.js +2 -0
- package/build/src/interface/api/delete-booking-info.interface.d.ts +3 -0
- package/build/src/interface/api/delete-booking-info.interface.js +2 -0
- package/build/src/interface/api/delete-pricing-plan.interface.d.ts +6 -0
- package/build/src/interface/api/delete-pricing-plan.interface.js +2 -0
- package/build/src/interface/api/get-all-booking-of-turf.interface.d.ts +23 -0
- package/build/src/interface/api/get-all-booking-of-turf.interface.js +2 -0
- package/build/src/interface/api/get-availability-by-turf.interface.d.ts +29 -0
- package/build/src/interface/api/get-availability-by-turf.interface.js +2 -0
- package/build/src/interface/api/get-bank-detail-by-id.interface.d.ts +6 -0
- package/build/src/interface/api/get-bank-detail-by-id.interface.js +2 -0
- package/build/src/interface/api/get-bank-detail-entities.interface.d.ts +6 -0
- package/build/src/interface/api/get-bank-detail-entities.interface.js +2 -0
- package/build/src/interface/api/get-booking-by-organization-id.interface.d.ts +30 -0
- package/build/src/interface/api/get-booking-by-organization-id.interface.js +2 -0
- package/build/src/interface/api/get-booking-customers.interface.d.ts +3 -0
- package/build/src/interface/api/get-booking-customers.interface.js +2 -0
- package/build/src/interface/api/get-booking-details-by-id.interface.d.ts +4 -0
- package/build/src/interface/api/get-booking-details-by-id.interface.js +2 -0
- package/build/src/interface/api/get-booking-history.interface.d.ts +4 -0
- package/build/src/interface/api/get-booking-history.interface.js +2 -0
- package/build/src/interface/api/get-booking-info.interface.d.ts +11 -0
- package/build/src/interface/api/get-booking-info.interface.js +2 -0
- package/build/src/interface/api/get-cancellation-policy-entity-by-org-id.interface.d.ts +15 -0
- package/build/src/interface/api/get-cancellation-policy-entity-by-org-id.interface.js +2 -0
- package/build/src/interface/api/get-cancelled-booking.interface.d.ts +7 -0
- package/build/src/interface/api/get-cancelled-booking.interface.js +2 -0
- package/build/src/interface/api/get-collection.interface.d.ts +24 -0
- package/build/src/interface/api/get-collection.interface.js +2 -0
- package/build/src/interface/api/get-configuration.interface.d.ts +4 -0
- package/build/src/interface/api/get-configuration.interface.js +2 -0
- package/build/src/interface/api/get-cron-job-by-date-range-name-status.interface.d.ts +12 -0
- package/build/src/interface/api/get-cron-job-by-date-range-name-status.interface.js +2 -0
- package/build/src/interface/api/get-current-subscription.interface.d.ts +18 -0
- package/build/src/interface/api/get-current-subscription.interface.js +2 -0
- package/build/src/interface/api/get-organization-by-orgid.interface.d.ts +15 -0
- package/build/src/interface/api/get-organization-by-orgid.interface.js +2 -0
- package/build/src/interface/api/get-price-by-organization-response.interface.d.ts +6 -0
- package/build/src/interface/api/get-price-by-organization-response.interface.js +2 -0
- package/build/src/interface/api/get-price-entity.interface.d.ts +10 -0
- package/build/src/interface/api/get-price-entity.interface.js +2 -0
- package/build/src/interface/api/get-price-query.interface.d.ts +10 -0
- package/build/src/interface/api/get-price-query.interface.js +2 -0
- package/build/src/interface/api/get-pricing-plan-by-date-response.interface.d.ts +23 -0
- package/build/src/interface/api/get-pricing-plan-by-date-response.interface.js +2 -0
- package/build/src/interface/api/get-pricing-plan-by-id.interface.d.ts +3 -0
- package/build/src/interface/api/get-pricing-plan-by-id.interface.js +2 -0
- package/build/src/interface/api/get-pricing-plan-entities.interface.d.ts +3 -0
- package/build/src/interface/api/get-pricing-plan-entities.interface.js +2 -0
- package/build/src/interface/api/get-registration-by-id.types.d.ts +20 -0
- package/build/src/interface/api/get-registration-by-id.types.js +2 -0
- package/build/src/interface/api/get-registration-entities.interface.d.ts +30 -0
- package/build/src/interface/api/get-registration-entities.interface.js +2 -0
- package/build/src/interface/api/get-sports.interface.d.ts +4 -0
- package/build/src/interface/api/get-sports.interface.js +2 -0
- package/build/src/interface/api/get-subscription-by-org-id.interface.d.ts +6 -0
- package/build/src/interface/api/get-subscription-by-org-id.interface.js +2 -0
- package/build/src/interface/api/get-subscription-entities.interface.d.ts +8 -0
- package/build/src/interface/api/get-subscription-entities.interface.js +2 -0
- package/build/src/interface/api/get-tournament.interface.d.ts +4 -0
- package/build/src/interface/api/get-tournament.interface.js +2 -0
- package/build/src/interface/api/get-turf-by-organization.interface.d.ts +6 -0
- package/build/src/interface/api/get-turf-by-organization.interface.js +2 -0
- package/build/src/interface/api/get-turf-entity-response.interface.d.ts +10 -0
- package/build/src/interface/api/get-turf-entity-response.interface.js +2 -0
- package/build/src/interface/api/index.d.ts +78 -0
- package/build/src/interface/api/index.js +96 -0
- package/build/src/interface/api/list-of-coupons.interface.d.ts +14 -0
- package/build/src/interface/api/list-of-coupons.interface.js +2 -0
- package/build/src/interface/api/login-response.interface.d.ts +22 -0
- package/build/src/interface/api/login-response.interface.js +2 -0
- package/build/src/interface/api/manual-trigger-cron-job.interface.d.ts +5 -0
- package/build/src/interface/api/manual-trigger-cron-job.interface.js +2 -0
- package/build/src/interface/api/one-slot-booking.interface.d.ts +24 -0
- package/build/src/interface/api/one-slot-booking.interface.js +2 -0
- package/build/src/interface/api/renew-subscription.interface.d.ts +19 -0
- package/build/src/interface/api/renew-subscription.interface.js +2 -0
- package/build/src/interface/api/set-price.interface.d.ts +6 -0
- package/build/src/interface/api/set-price.interface.js +2 -0
- package/build/src/interface/api/setup-registration.interface.d.ts +5 -0
- package/build/src/interface/api/setup-registration.interface.js +2 -0
- package/build/src/interface/api/staff-member-list.interface.d.ts +9 -0
- package/build/src/interface/api/staff-member-list.interface.js +2 -0
- package/build/src/interface/api/update-bank-detail.interface.d.ts +17 -0
- package/build/src/interface/api/update-bank-detail.interface.js +2 -0
- package/build/src/interface/api/update-booking-by-code-response.interface.d.ts +7 -0
- package/build/src/interface/api/update-booking-by-code-response.interface.js +2 -0
- package/build/src/interface/api/update-configuration.interface.d.ts +10 -0
- package/build/src/interface/api/update-configuration.interface.js +2 -0
- package/build/src/interface/api/update-coupon.interface.d.ts +9 -0
- package/build/src/interface/api/update-coupon.interface.js +2 -0
- package/build/src/interface/api/update-faqs-steps.interface.d.ts +11 -0
- package/build/src/interface/api/update-faqs-steps.interface.js +2 -0
- package/build/src/interface/api/update-faqs.interface.d.ts +6 -0
- package/build/src/interface/api/update-faqs.interface.js +2 -0
- package/build/src/interface/api/update-organization.interface.d.ts +21 -0
- package/build/src/interface/api/update-organization.interface.js +2 -0
- package/build/src/interface/api/update-pricing-plan-by-id.interface.d.ts +20 -0
- package/build/src/interface/api/update-pricing-plan-by-id.interface.js +2 -0
- package/build/src/interface/api/update-recurring-booking.interface.d.ts +52 -0
- package/build/src/interface/api/update-recurring-booking.interface.js +2 -0
- package/build/src/interface/api/update-registration-entities.interface.d.ts +8 -0
- package/build/src/interface/api/update-registration-entities.interface.js +2 -0
- package/build/src/interface/api/update-sports-interface.d.ts +3 -0
- package/build/src/interface/api/update-sports-interface.js +2 -0
- package/build/src/interface/api/update-staff-member.interface.d.ts +16 -0
- package/build/src/interface/api/update-staff-member.interface.js +2 -0
- package/build/src/interface/api/update-subscription.interface.d.ts +23 -0
- package/build/src/interface/api/update-subscription.interface.js +2 -0
- package/build/src/interface/api/update-turf-details.interface.d.ts +20 -0
- package/build/src/interface/api/update-turf-details.interface.js +2 -0
- package/build/src/interface/api/update-turf-transaction-output.d.ts +3 -0
- package/build/src/interface/api/update-turf-transaction-output.js +2 -0
- package/build/src/interface/api/upgrade-renew-subscription.interface.d.ts +10 -0
- package/build/src/interface/api/upgrade-renew-subscription.interface.js +2 -0
- package/build/src/interface/api/upgrade-subscription.interface.d.ts +21 -0
- package/build/src/interface/api/upgrade-subscription.interface.js +2 -0
- package/build/src/interface/api/userentity-without-password.interface.d.ts +5 -0
- package/build/src/interface/api/userentity-without-password.interface.js +2 -0
- package/build/src/interface/api/utils.d.ts +18 -0
- package/build/src/interface/api/utils.js +48 -0
- package/build/src/interface/billing-cycle-dto.interface.d.ts +8 -0
- package/build/src/interface/billing-cycle-dto.interface.js +2 -0
- package/build/src/interface/billing-cycle.interface.d.ts +7 -0
- package/build/src/interface/billing-cycle.interface.js +2 -0
- package/build/src/interface/booking-details-with-code.interface.d.ts +34 -0
- package/build/src/interface/booking-details-with-code.interface.js +2 -0
- package/build/src/interface/controller.interface.d.ts +6 -0
- package/build/src/interface/controller.interface.js +2 -0
- package/build/src/interface/convert-to-midnight-time.interface.d.ts +5 -0
- package/build/src/interface/convert-to-midnight-time.interface.js +2 -0
- package/build/src/interface/date-formatter.interface.d.ts +4 -0
- package/build/src/interface/date-formatter.interface.js +2 -0
- package/build/src/interface/dto/delete-booking-by-codes-dto.interface.d.ts +7 -0
- package/build/src/interface/dto/delete-booking-by-codes-dto.interface.js +2 -0
- package/build/src/interface/dto/update-booking-by-code-dto.interface.d.ts +13 -0
- package/build/src/interface/dto/update-booking-by-code-dto.interface.js +2 -0
- package/build/src/interface/entity/bank-details-entity.interface.d.ts +12 -0
- package/build/src/interface/entity/bank-details-entity.interface.js +2 -0
- package/build/src/interface/entity/booking-cancellation-entity.interface.d.ts +32 -0
- package/build/src/interface/entity/booking-cancellation-entity.interface.js +2 -0
- package/build/src/interface/entity/booking-customer-entity.interface.d.ts +8 -0
- package/build/src/interface/entity/booking-customer-entity.interface.js +2 -0
- package/build/src/interface/entity/booking-details-entity.interface.d.ts +29 -0
- package/build/src/interface/entity/booking-details-entity.interface.js +2 -0
- package/build/src/interface/entity/booking-history-entity.interface.d.ts +35 -0
- package/build/src/interface/entity/booking-history-entity.interface.js +2 -0
- package/build/src/interface/entity/booking-payment-history-entity.interface.d.ts +13 -0
- package/build/src/interface/entity/booking-payment-history-entity.interface.js +2 -0
- package/build/src/interface/entity/bookings-entity.interface.d.ts +6 -0
- package/build/src/interface/entity/bookings-entity.interface.js +2 -0
- package/build/src/interface/entity/cancellation-policy-entity.interface.d.ts +8 -0
- package/build/src/interface/entity/cancellation-policy-entity.interface.js +2 -0
- package/build/src/interface/entity/configurations-entity.interface.d.ts +9 -0
- package/build/src/interface/entity/configurations-entity.interface.js +2 -0
- package/build/src/interface/entity/coupon.entity.interface.d.ts +10 -0
- package/build/src/interface/entity/coupon.entity.interface.js +2 -0
- package/build/src/interface/entity/cron-jobs-entity.interface.d.ts +12 -0
- package/build/src/interface/entity/cron-jobs-entity.interface.js +2 -0
- package/build/src/interface/entity/entity-audit-column.interface.d.ts +12 -0
- package/build/src/interface/entity/entity-audit-column.interface.js +9 -0
- package/build/src/interface/entity/faqs-entity.interface.d.ts +10 -0
- package/build/src/interface/entity/faqs-entity.interface.js +2 -0
- package/build/src/interface/entity/index.d.ts +23 -0
- package/build/src/interface/entity/index.js +39 -0
- package/build/src/interface/entity/organization-entity.interface.d.ts +24 -0
- package/build/src/interface/entity/organization-entity.interface.js +2 -0
- package/build/src/interface/entity/pitch-entity.interface.d.ts +9 -0
- package/build/src/interface/entity/pitch-entity.interface.js +2 -0
- package/build/src/interface/entity/price-entity.interface.d.ts +5 -0
- package/build/src/interface/entity/price-entity.interface.js +2 -0
- package/build/src/interface/entity/pricing-plan-entity.interface.d.ts +16 -0
- package/build/src/interface/entity/pricing-plan-entity.interface.js +2 -0
- package/build/src/interface/entity/registration-entity.interface.d.ts +12 -0
- package/build/src/interface/entity/registration-entity.interface.js +2 -0
- package/build/src/interface/entity/sports-entity.interface.d.ts +6 -0
- package/build/src/interface/entity/sports-entity.interface.js +2 -0
- package/build/src/interface/entity/subscription-entity.interface.d.ts +26 -0
- package/build/src/interface/entity/subscription-entity.interface.js +2 -0
- package/build/src/interface/entity/subscription-pitch-mapping.interface.d.ts +8 -0
- package/build/src/interface/entity/subscription-pitch-mapping.interface.js +2 -0
- package/build/src/interface/entity/turf-entity.interface.d.ts +17 -0
- package/build/src/interface/entity/turf-entity.interface.js +2 -0
- package/build/src/interface/entity/user-entity.interface.d.ts +24 -0
- package/build/src/interface/entity/user-entity.interface.js +2 -0
- package/build/src/interface/formate-date-and-time.interface.d.ts +6 -0
- package/build/src/interface/formate-date-and-time.interface.js +2 -0
- package/build/src/interface/get-booking-by-id.interface.d.ts +56 -0
- package/build/src/interface/get-booking-by-id.interface.js +2 -0
- package/build/src/interface/get-booking-codes-per-thirty-min.interface.d.ts +4 -0
- package/build/src/interface/get-booking-codes-per-thirty-min.interface.js +2 -0
- package/build/src/interface/get-pricing-plan-by-date-response.interface.d.ts +23 -0
- package/build/src/interface/get-pricing-plan-by-date-response.interface.js +2 -0
- package/build/src/interface/get-turf-entity.interface.d.ts +34 -0
- package/build/src/interface/get-turf-entity.interface.js +2 -0
- package/build/src/interface/key-value.interface.d.ts +3 -0
- package/build/src/interface/key-value.interface.js +2 -0
- package/build/src/interface/model/booking-details-model.interface.d.ts +5 -0
- package/build/src/interface/model/booking-details-model.interface.js +2 -0
- package/build/src/interface/model/booking-entity-model.interface.d.ts +8 -0
- package/build/src/interface/model/booking-entity-model.interface.js +2 -0
- package/build/src/interface/model/cancellation-policy-model.interface.d.ts +4 -0
- package/build/src/interface/model/cancellation-policy-model.interface.js +2 -0
- package/build/src/interface/model/charge-model.interface.d.ts +13 -0
- package/build/src/interface/model/charge-model.interface.js +2 -0
- package/build/src/interface/model/configuration-model.interface.d.ts +4 -0
- package/build/src/interface/model/configuration-model.interface.js +2 -0
- package/build/src/interface/model/index.d.ts +10 -0
- package/build/src/interface/model/index.js +26 -0
- package/build/src/interface/model/price-model.interface.d.ts +3 -0
- package/build/src/interface/model/price-model.interface.js +2 -0
- package/build/src/interface/model/pricing-plan-entity-model.interface.d.ts +13 -0
- package/build/src/interface/model/pricing-plan-entity-model.interface.js +2 -0
- package/build/src/interface/model/pricing-plan-model.interface.d.ts +15 -0
- package/build/src/interface/model/pricing-plan-model.interface.js +2 -0
- package/build/src/interface/model/turf-model.interface.d.ts +7 -0
- package/build/src/interface/model/turf-model.interface.js +2 -0
- package/build/src/interface/model/user-model.interface.d.ts +3 -0
- package/build/src/interface/model/user-model.interface.js +2 -0
- package/build/src/interface/modify-entity.interface.d.ts +5 -0
- package/build/src/interface/modify-entity.interface.js +2 -0
- package/build/src/interface/modify-turf.interface.d.ts +7 -0
- package/build/src/interface/modify-turf.interface.js +2 -0
- package/build/src/interface/modify.interface.d.ts +1 -0
- package/build/src/interface/modify.interface.js +2 -0
- package/build/src/interface/ng-date-structure.interface.d.ts +5 -0
- package/build/src/interface/ng-date-structure.interface.js +2 -0
- package/build/src/interface/pitch-slab-dto.interface.d.ts +8 -0
- package/build/src/interface/pitch-slab-dto.interface.js +2 -0
- package/build/src/interface/pitch-slab.interface.d.ts +5 -0
- package/build/src/interface/pitch-slab.interface.js +2 -0
- package/build/src/interface/pricing-plan.interface.d.ts +15 -0
- package/build/src/interface/pricing-plan.interface.js +2 -0
- package/build/src/interface/socket-io-bookings.interface.d.ts +12 -0
- package/build/src/interface/socket-io-bookings.interface.js +2 -0
- package/build/src/interface/time-formatter.interface.d.ts +4 -0
- package/build/src/interface/time-formatter.interface.js +2 -0
- package/build/src/interface/ui/booking-data.interface.d.ts +6 -0
- package/build/src/interface/ui/booking-data.interface.js +2 -0
- package/build/src/interface/ui/upgrade-subscription-data.interface.d.ts +15 -0
- package/build/src/interface/ui/upgrade-subscription-data.interface.js +2 -0
- package/build/src/interface/upload-multer-file.interface.d.ts +9 -0
- package/build/src/interface/upload-multer-file.interface.js +2 -0
- package/build/src/interface/user-info-dto.interface.d.ts +16 -0
- package/build/src/interface/user-info-dto.interface.js +2 -0
- package/build/src/interface/without-token-registration-entity.types.d.ts +3 -0
- package/build/src/interface/without-token-registration-entity.types.js +2 -0
- package/build/src/models/billing-cycle-model.d.ts +11 -0
- package/build/src/models/billing-cycle-model.js +27 -0
- package/build/src/models/booking-code-model.d.ts +139 -0
- package/build/src/models/booking-code-model.js +624 -0
- package/build/src/models/charge-model.d.ts +34 -0
- package/build/src/models/charge-model.js +275 -0
- package/build/src/models/entity/booking-details-model.d.ts +41 -0
- package/build/src/models/entity/booking-details-model.js +69 -0
- package/build/src/models/entity/booking-entity-model.d.ts +21 -0
- package/build/src/models/entity/booking-entity-model.js +47 -0
- package/build/src/models/entity/booking-payment-history-model.d.ts +20 -0
- package/build/src/models/entity/booking-payment-history-model.js +36 -0
- package/build/src/models/entity/cancellation-policy-model.d.ts +18 -0
- package/build/src/models/entity/cancellation-policy-model.js +32 -0
- package/build/src/models/entity/configuration-model.d.ts +17 -0
- package/build/src/models/entity/configuration-model.js +17 -0
- package/build/src/models/entity/index.d.ts +10 -0
- package/build/src/models/entity/index.js +26 -0
- package/build/src/models/entity/price-model.d.ts +11 -0
- package/build/src/models/entity/price-model.js +15 -0
- package/build/src/models/entity/pricing-plan-entity-model.d.ts +47 -0
- package/build/src/models/entity/pricing-plan-entity-model.js +128 -0
- package/build/src/models/entity/subscription-model.d.ts +44 -0
- package/build/src/models/entity/subscription-model.js +154 -0
- package/build/src/models/entity/turf-model.d.ts +36 -0
- package/build/src/models/entity/turf-model.js +116 -0
- package/build/src/models/entity/user-model.d.ts +32 -0
- package/build/src/models/entity/user-model.js +19 -0
- package/build/src/models/pitch-slab-model.d.ts +9 -0
- package/build/src/models/pitch-slab-model.js +21 -0
- package/build/src/models/pricing-plan-model.d.ts +27 -0
- package/build/src/models/pricing-plan-model.js +89 -0
- package/build/src/models/subscribed-pricing-plan-model.d.ts +37 -0
- package/build/src/models/subscribed-pricing-plan-model.js +122 -0
- package/build/src/models/time-slot-model.d.ts +19 -0
- package/build/src/models/time-slot-model.js +98 -0
- package/build/src/models/turf-availability-model.d.ts +57 -0
- package/build/src/models/turf-availability-model.js +239 -0
- package/build/src/types/app-badrequest-exception.type.d.ts +4 -0
- package/build/src/types/app-badrequest-exception.type.js +2 -0
- package/build/src/types/booking-modification.type.d.ts +6 -0
- package/build/src/types/booking-modification.type.js +2 -0
- package/build/src/types/bookingdetails-with-booking.type.d.ts +9 -0
- package/build/src/types/bookingdetails-with-booking.type.js +2 -0
- package/build/src/types/date-wise-payment-history-data.types.d.ts +9 -0
- package/build/src/types/date-wise-payment-history-data.types.js +2 -0
- package/build/src/utils/constant.d.ts +5 -0
- package/build/src/utils/constant.js +8 -0
- package/build/src/utils/date-util.d.ts +56 -0
- package/build/src/utils/date-util.js +157 -0
- package/build/src/utils/math-util.d.ts +14 -0
- package/build/src/utils/math-util.js +39 -0
- package/build/src/utils/string-utils.d.ts +31 -0
- package/build/src/utils/string-utils.js +82 -0
- package/build/tests/unit/charges/across-dates/across-dates-booking-TURF-476.spec.d.ts +1 -0
- package/build/tests/unit/charges/across-dates/across-dates-booking-TURF-476.spec.js +114 -0
- package/build/tests/unit/charges/across-dates/across-dates-booking-without-discount-TURF-476.e2e-spec.d.ts +1 -0
- package/build/tests/unit/charges/across-dates/across-dates-booking-without-discount-TURF-476.e2e-spec.js +114 -0
- package/build/tests/unit/charges/across-dates/across-dates-discount-TURF-476.spec.d.ts +1 -0
- package/build/tests/unit/charges/across-dates/across-dates-discount-TURF-476.spec.js +114 -0
- package/build/tests/unit/charges/across-dates/across-dates-extend-remove-TURF-476.spec.d.ts +1 -0
- package/build/tests/unit/charges/across-dates/across-dates-extend-remove-TURF-476.spec.js +114 -0
- package/build/tests/unit/charges/discount-conditional/basic-amount-half-amount-paid.spec.d.ts +1 -0
- package/build/tests/unit/charges/discount-conditional/basic-amount-half-amount-paid.spec.js +221 -0
- package/build/tests/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid-cancellation-not-present.spec.d.ts +1 -0
- package/build/tests/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid-cancellation-not-present.spec.js +518 -0
- package/build/tests/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid.spec.d.ts +1 -0
- package/build/tests/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid.spec.js +470 -0
- package/build/tests/unit/charges/discount-conditional/basic-amount-paid.spec.d.ts +1 -0
- package/build/tests/unit/charges/discount-conditional/basic-amount-paid.spec.js +263 -0
- package/build/tests/unit/charges/discount-conditional/basic.-amount-not-paid.spec.d.ts +1 -0
- package/build/tests/unit/charges/discount-conditional/basic.-amount-not-paid.spec.js +223 -0
- package/build/tests/unit/charges/discount-conditional/decimal-discount.spec.d.ts +1 -0
- package/build/tests/unit/charges/discount-conditional/decimal-discount.spec.js +509 -0
- package/build/tests/unit/charges/per-hour-unit/phu-basic-amount-not-paid-TURF-486.spec.d.ts +1 -0
- package/build/tests/unit/charges/per-hour-unit/phu-basic-amount-not-paid-TURF-486.spec.js +148 -0
- package/build/tests/utils/models/booking-entity-test.d.ts +9 -0
- package/build/tests/utils/models/booking-entity-test.js +28 -0
- package/package.json +6 -2
- /package/build/{@enum.d.ts → src/@enum.d.ts} +0 -0
- /package/build/{@enum.js → src/@enum.js} +0 -0
- /package/build/{@model.d.ts → src/@model.d.ts} +0 -0
- /package/build/{@model.js → src/@model.js} +0 -0
- /package/build/{@type.d.ts → src/@type.d.ts} +0 -0
- /package/build/{@type.js → src/@type.js} +0 -0
- /package/build/{@utils.d.ts → src/@utils.d.ts} +0 -0
- /package/build/{@utils.js → src/@utils.js} +0 -0
- /package/build/{index.d.ts → src/index.d.ts} +0 -0
- /package/build/{index.js → src/index.js} +0 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChargesModel = void 0;
|
|
4
|
+
var app_badrequest_exception_1 = require("../exceptions/app-badrequest.exception");
|
|
5
|
+
var modification_discount_policy_enum_1 = require("../enums/modification-discount-policy.enum");
|
|
6
|
+
var _utils_1 = require("../@utils");
|
|
7
|
+
var ChargesModel = /** @class */ (function () {
|
|
8
|
+
function ChargesModel(initialGrossAmount, paidAmount, couponCode, totalBookingHours, discountPolicy) {
|
|
9
|
+
this.initialBookingGrossAmount = initialGrossAmount;
|
|
10
|
+
this.amountPaid = paidAmount;
|
|
11
|
+
this.couponCode = couponCode;
|
|
12
|
+
this.additionalBookingGrossAmount = 0;
|
|
13
|
+
this.cancelledBookingGrossAmount = 0;
|
|
14
|
+
this.totalCancellationCharges = 0;
|
|
15
|
+
this.refundPayable = 0;
|
|
16
|
+
this.totalRefundedAmount = 0;
|
|
17
|
+
this.totalBookingHours = totalBookingHours;
|
|
18
|
+
this.netTotal = this.getNetAmount();
|
|
19
|
+
this.amountPayable = this.getPayableRefundAmount();
|
|
20
|
+
this.discountPolicy = discountPolicy;
|
|
21
|
+
}
|
|
22
|
+
ChargesModel.prototype.getGrossAmount = function () {
|
|
23
|
+
return (this.initialBookingGrossAmount +
|
|
24
|
+
this.additionalBookingGrossAmount -
|
|
25
|
+
this.cancelledBookingGrossAmount);
|
|
26
|
+
};
|
|
27
|
+
ChargesModel.prototype.getNetAmount = function () {
|
|
28
|
+
return this.getGrossAmount() - this.getDiscountAmount();
|
|
29
|
+
};
|
|
30
|
+
ChargesModel.prototype.getDiscountAmount = function () {
|
|
31
|
+
if ([
|
|
32
|
+
modification_discount_policy_enum_1.ModificationDiscountPolicy.DISCOUNT_CONDITIONAL,
|
|
33
|
+
modification_discount_policy_enum_1.ModificationDiscountPolicy.DISCOUNT_RECALL,
|
|
34
|
+
].includes(this.discountPolicy) &&
|
|
35
|
+
this.cancelledBookingGrossAmount > 0) {
|
|
36
|
+
this.couponCode = "";
|
|
37
|
+
}
|
|
38
|
+
return ChargesModel.getDiscountAmount(this.couponCode, this.getGrossAmount(), false, this.totalBookingHours);
|
|
39
|
+
};
|
|
40
|
+
ChargesModel.prototype.getPayableRefundAmount = function () {
|
|
41
|
+
return (this.getNetAmount() +
|
|
42
|
+
this.totalCancellationCharges -
|
|
43
|
+
this.amountPaid +
|
|
44
|
+
this.totalRefundedAmount);
|
|
45
|
+
};
|
|
46
|
+
// setRefundedAmount(refundAmount: number) {
|
|
47
|
+
// this.paidAmount = this.paidAmount - refundAmount;
|
|
48
|
+
// this.totalRefundAmount = this.totalRefundAmount - refundAmount;
|
|
49
|
+
// this.refundedAmount += refundAmount;
|
|
50
|
+
// }
|
|
51
|
+
ChargesModel.getDiscountAmount = function (couponCode, totalCost, validationApply, totalBookingHours) {
|
|
52
|
+
if (validationApply === void 0) { validationApply = false; }
|
|
53
|
+
var discountAmount = 0;
|
|
54
|
+
if (couponCode) {
|
|
55
|
+
var code = _utils_1.stringUtil.getCouponDetails(couponCode).code;
|
|
56
|
+
var value = _utils_1.stringUtil.getCouponDetails(couponCode).value;
|
|
57
|
+
if (validationApply && !code && !value) {
|
|
58
|
+
throw new app_badrequest_exception_1.AppBadRequestException({
|
|
59
|
+
key: "couponCode",
|
|
60
|
+
message: ["Coupon with code ".concat(couponCode, " is wrong ")],
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (code === "P" || code === "PHP") {
|
|
64
|
+
var percentDiscount = parseFloat(couponCode);
|
|
65
|
+
if (validationApply && percentDiscount > 90) {
|
|
66
|
+
throw new app_badrequest_exception_1.AppBadRequestException({
|
|
67
|
+
key: "couponCode",
|
|
68
|
+
message: ["Discount should not be more than 90P"],
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
discountAmount = totalCost * (percentDiscount / 100);
|
|
72
|
+
}
|
|
73
|
+
else if (code === "U") {
|
|
74
|
+
discountAmount = parseFloat(couponCode);
|
|
75
|
+
}
|
|
76
|
+
else if (code === "PHU") {
|
|
77
|
+
if (totalBookingHours === undefined) {
|
|
78
|
+
throw new app_badrequest_exception_1.AppBadRequestException({
|
|
79
|
+
key: "totalBookingHours",
|
|
80
|
+
message: [
|
|
81
|
+
"Total Booking Hours is mandatory to calculate per hour unit",
|
|
82
|
+
],
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
discountAmount = parseFloat(couponCode) * totalBookingHours;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return Math.round(discountAmount);
|
|
89
|
+
};
|
|
90
|
+
ChargesModel.prototype.setValues = function (values) {
|
|
91
|
+
if (values === void 0) { values = {}; }
|
|
92
|
+
var that = this.clone();
|
|
93
|
+
if (values.totalRefundedAmount) {
|
|
94
|
+
that.totalRefundedAmount += values.totalRefundedAmount;
|
|
95
|
+
that.refundPayable -= values.totalRefundedAmount;
|
|
96
|
+
}
|
|
97
|
+
if (values.amountPaid) {
|
|
98
|
+
that.amountPaid = that.amountPaid + values.amountPaid;
|
|
99
|
+
that.amountPayable = that.amountPayable - values.amountPaid;
|
|
100
|
+
}
|
|
101
|
+
return that;
|
|
102
|
+
};
|
|
103
|
+
ChargesModel.prototype.modify = function (bookingModification) {
|
|
104
|
+
var oldBookingCode = bookingModification.oldBookingCode, newBookingCode = bookingModification.newBookingCode, cancellationUnit = bookingModification.cancellationUnit;
|
|
105
|
+
// this.totalBookingHours =
|
|
106
|
+
// this.totalBookingHours -
|
|
107
|
+
// oldBookingCode.getTotalTime("hr") +
|
|
108
|
+
// (newBookingCode ? newBookingCode.getTotalTime("hr") : 0);
|
|
109
|
+
if (!newBookingCode) {
|
|
110
|
+
return this.modifyDelete(oldBookingCode, cancellationUnit !== null && cancellationUnit !== void 0 ? cancellationUnit : "");
|
|
111
|
+
}
|
|
112
|
+
if (!newBookingCode)
|
|
113
|
+
return null;
|
|
114
|
+
var oldTimeSlotMinutes = oldBookingCode.getTotalTime();
|
|
115
|
+
var newTimeSlotMinutes = newBookingCode.getTotalTime();
|
|
116
|
+
if (oldTimeSlotMinutes === newTimeSlotMinutes) {
|
|
117
|
+
return this.modifyMove(oldBookingCode, newBookingCode, cancellationUnit !== null && cancellationUnit !== void 0 ? cancellationUnit : "");
|
|
118
|
+
}
|
|
119
|
+
if (oldTimeSlotMinutes > newTimeSlotMinutes) {
|
|
120
|
+
return this.modifyReduce(oldBookingCode, newBookingCode, cancellationUnit !== null && cancellationUnit !== void 0 ? cancellationUnit : "");
|
|
121
|
+
}
|
|
122
|
+
if (oldTimeSlotMinutes < newTimeSlotMinutes) {
|
|
123
|
+
return this.modifyExtend(oldBookingCode, newBookingCode);
|
|
124
|
+
}
|
|
125
|
+
return null;
|
|
126
|
+
};
|
|
127
|
+
ChargesModel.prototype.modifyExtend = function (oldBookingCode, newBookingCode) {
|
|
128
|
+
var newTotalBookingHours = this.totalBookingHours -
|
|
129
|
+
oldBookingCode.getTotalTime("hr") +
|
|
130
|
+
(newBookingCode ? newBookingCode.getTotalTime("hr") : 0);
|
|
131
|
+
var newChargeModel = this.clone();
|
|
132
|
+
newChargeModel.totalBookingHours = newTotalBookingHours;
|
|
133
|
+
newChargeModel.additionalBookingGrossAmount +=
|
|
134
|
+
newBookingCode.getCost() - oldBookingCode.getCost();
|
|
135
|
+
newChargeModel.netTotal = newChargeModel.getNetAmount();
|
|
136
|
+
newChargeModel.amountPayable = newChargeModel.getPayableRefundAmount();
|
|
137
|
+
// console.log(newChargeModel.payableAmount);
|
|
138
|
+
if (newChargeModel.amountPayable > 0) {
|
|
139
|
+
newChargeModel.refundPayable = 0;
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
newChargeModel.refundPayable = Math.abs(newChargeModel.amountPayable);
|
|
143
|
+
newChargeModel.amountPayable = 0;
|
|
144
|
+
}
|
|
145
|
+
return newChargeModel;
|
|
146
|
+
};
|
|
147
|
+
ChargesModel.prototype.modifyReduce = function (oldBookingCode, newBookingCode, cancellationUnit) {
|
|
148
|
+
var newTotalBookingHours = this.totalBookingHours -
|
|
149
|
+
oldBookingCode.getTotalTime("hr") +
|
|
150
|
+
(newBookingCode ? newBookingCode.getTotalTime("hr") : 0);
|
|
151
|
+
var newChargeModel = this.clone();
|
|
152
|
+
newChargeModel.totalBookingHours = newTotalBookingHours;
|
|
153
|
+
newChargeModel.couponCode = "";
|
|
154
|
+
var costDifference = oldBookingCode.getCost() - newBookingCode.getCost();
|
|
155
|
+
// console.log(`costDifference ${costDifference}`);
|
|
156
|
+
newChargeModel.cancelledBookingGrossAmount += costDifference;
|
|
157
|
+
var cancellationCharges = ChargesModel.getDiscountAmount(cancellationUnit, costDifference);
|
|
158
|
+
// console.log(`cancellationCharges ${cancellationCharges}`);
|
|
159
|
+
newChargeModel.totalCancellationCharges += cancellationCharges;
|
|
160
|
+
newChargeModel.netTotal = newChargeModel.getNetAmount();
|
|
161
|
+
// console.log(`newChargeModel.netAmount ${newChargeModel.netAmount}`);
|
|
162
|
+
newChargeModel.amountPayable = newChargeModel.getPayableRefundAmount();
|
|
163
|
+
// console.log(`newChargeModel.payableAmount ${newChargeModel.payableAmount}`);
|
|
164
|
+
if (newChargeModel.amountPayable > 0) {
|
|
165
|
+
newChargeModel.refundPayable = 0;
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
newChargeModel.refundPayable = Math.abs(newChargeModel.amountPayable);
|
|
169
|
+
newChargeModel.amountPayable = 0;
|
|
170
|
+
}
|
|
171
|
+
return newChargeModel;
|
|
172
|
+
};
|
|
173
|
+
ChargesModel.prototype.modifyMove = function (oldBookingCode, newBookingCode, cancellationUnit) {
|
|
174
|
+
var newTotalBookingHours = this.totalBookingHours -
|
|
175
|
+
oldBookingCode.getTotalTime("hr") +
|
|
176
|
+
(newBookingCode ? newBookingCode.getTotalTime("hr") : 0);
|
|
177
|
+
var newChargeModel = this.clone();
|
|
178
|
+
newChargeModel.totalBookingHours = newTotalBookingHours;
|
|
179
|
+
var costDifference = newBookingCode.getCost() - oldBookingCode.getCost();
|
|
180
|
+
if (costDifference === 0) {
|
|
181
|
+
return newChargeModel;
|
|
182
|
+
}
|
|
183
|
+
if (costDifference > 0) {
|
|
184
|
+
newChargeModel.additionalBookingGrossAmount += costDifference;
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
newChargeModel.cancelledBookingGrossAmount += Math.abs(costDifference);
|
|
188
|
+
var cancellationCharges = ChargesModel.getDiscountAmount(cancellationUnit, Math.abs(costDifference));
|
|
189
|
+
newChargeModel.totalCancellationCharges += cancellationCharges;
|
|
190
|
+
}
|
|
191
|
+
newChargeModel.netTotal = newChargeModel.getNetAmount();
|
|
192
|
+
newChargeModel.amountPayable = newChargeModel.getPayableRefundAmount();
|
|
193
|
+
if (newChargeModel.amountPayable > 0) {
|
|
194
|
+
newChargeModel.refundPayable = 0;
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
newChargeModel.refundPayable = Math.abs(newChargeModel.amountPayable);
|
|
198
|
+
newChargeModel.amountPayable = 0;
|
|
199
|
+
}
|
|
200
|
+
return newChargeModel;
|
|
201
|
+
};
|
|
202
|
+
ChargesModel.prototype.clone = function () {
|
|
203
|
+
var that = new ChargesModel(this.initialBookingGrossAmount, this.amountPaid, this.couponCode, this.totalBookingHours, this.discountPolicy);
|
|
204
|
+
Object.assign(that, this);
|
|
205
|
+
return that;
|
|
206
|
+
};
|
|
207
|
+
ChargesModel.prototype.modifyDelete = function (bookingCode, cancellationUnit) {
|
|
208
|
+
var newTotalBookingHours = this.totalBookingHours - bookingCode.getTotalTime("hr");
|
|
209
|
+
var newChargeModel = this.clone();
|
|
210
|
+
newChargeModel.totalBookingHours = newTotalBookingHours;
|
|
211
|
+
newChargeModel.couponCode = "";
|
|
212
|
+
var costDifference = bookingCode.getCost();
|
|
213
|
+
newChargeModel.cancelledBookingGrossAmount += costDifference;
|
|
214
|
+
var cancellationCharges = ChargesModel.getDiscountAmount(cancellationUnit, costDifference);
|
|
215
|
+
newChargeModel.totalCancellationCharges += cancellationCharges;
|
|
216
|
+
newChargeModel.netTotal = newChargeModel.getNetAmount();
|
|
217
|
+
newChargeModel.amountPayable = newChargeModel.getPayableRefundAmount();
|
|
218
|
+
if (newChargeModel.amountPayable > 0) {
|
|
219
|
+
newChargeModel.refundPayable = 0;
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
newChargeModel.refundPayable = Math.abs(newChargeModel.amountPayable);
|
|
223
|
+
newChargeModel.amountPayable = 0;
|
|
224
|
+
}
|
|
225
|
+
return newChargeModel;
|
|
226
|
+
};
|
|
227
|
+
ChargesModel.getInstance = function (chargeData, discountPolicy) {
|
|
228
|
+
if (discountPolicy === void 0) { discountPolicy = modification_discount_policy_enum_1.ModificationDiscountPolicy.DISCOUNT_CONDITIONAL; }
|
|
229
|
+
var chargesModel = new ChargesModel(chargeData.initialBookingGrossAmount, chargeData.amountPaid, chargeData.couponCode, chargeData.totalBookingHours, discountPolicy);
|
|
230
|
+
Object.assign(chargesModel, chargeData);
|
|
231
|
+
return chargesModel;
|
|
232
|
+
};
|
|
233
|
+
// static assignByInterface(
|
|
234
|
+
// chargeData: IChargeModel,
|
|
235
|
+
// discountPolicy: ModificationDiscountPolicy = ModificationDiscountPolicy.DISCOUNT_CONDITIONAL
|
|
236
|
+
// ): ChargesModel {
|
|
237
|
+
// const newChargeModel = new ChargesModel(
|
|
238
|
+
// chargeData.initialBookingGrossAmount,
|
|
239
|
+
// chargeData.amountPaid,
|
|
240
|
+
// chargeData.couponCode,
|
|
241
|
+
// discountPolicy
|
|
242
|
+
// );
|
|
243
|
+
// newChargeModel.additionalBookingGrossAmount =
|
|
244
|
+
// chargeData.additionalBookingGrossAmount;
|
|
245
|
+
// newChargeModel.initialBookingGrossAmount =
|
|
246
|
+
// chargeData.initialBookingGrossAmount;
|
|
247
|
+
// newChargeModel.cancelledBookingGrossAmount =
|
|
248
|
+
// chargeData.cancelledBookingGrossAmount;
|
|
249
|
+
// newChargeModel.refundPayable = chargeData.refundPayable;
|
|
250
|
+
// newChargeModel.totalRefundedAmount = chargeData.totalRefundedAmount;
|
|
251
|
+
// newChargeModel.amountPaid = chargeData.amountPaid;
|
|
252
|
+
// newChargeModel.totalCancellationCharges =
|
|
253
|
+
// chargeData.totalCancellationCharges;
|
|
254
|
+
// newChargeModel.netTotal = chargeData.netTotal;
|
|
255
|
+
// newChargeModel.couponCode = chargeData.couponCode;
|
|
256
|
+
// newChargeModel.amountPayable = chargeData.amountPayable;
|
|
257
|
+
// return newChargeModel;
|
|
258
|
+
// }
|
|
259
|
+
ChargesModel.prototype.getTotalAmount = function () {
|
|
260
|
+
return this.getNetAmount() + this.totalCancellationCharges;
|
|
261
|
+
};
|
|
262
|
+
ChargesModel.prototype.getPaymentStatus = function () {
|
|
263
|
+
var payableRefundAmount = this.getPayableRefundAmount();
|
|
264
|
+
return payableRefundAmount < 0
|
|
265
|
+
? "Refund"
|
|
266
|
+
: payableRefundAmount === 0
|
|
267
|
+
? "Paid"
|
|
268
|
+
: "Pending";
|
|
269
|
+
};
|
|
270
|
+
ChargesModel.prototype.getTotalNetAmount = function () {
|
|
271
|
+
return this.getNetAmount() + this.totalCancellationCharges;
|
|
272
|
+
};
|
|
273
|
+
return ChargesModel;
|
|
274
|
+
}());
|
|
275
|
+
exports.ChargesModel = ChargesModel;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BookingDetailsStatus } from "../../enums/booking-details-status.enum";
|
|
2
|
+
import { IBookingDetailsModel } from "../../interface/model/booking-details-model.interface";
|
|
3
|
+
import { IBookingDetailsWithBooking } from "../../types/bookingdetails-with-booking.type";
|
|
4
|
+
import { IBookingDetailsEntity } from "../../interface/entity/booking-details-entity.interface";
|
|
5
|
+
import { IBookingsEntity } from "../../interface/entity/bookings-entity.interface";
|
|
6
|
+
import { ChargesModel } from "../charge-model";
|
|
7
|
+
export declare class BookingDetailsModel implements IBookingDetailsModel {
|
|
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;
|
|
19
|
+
status: BookingDetailsStatus;
|
|
20
|
+
sport: string;
|
|
21
|
+
remarks: string;
|
|
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
|
+
totalRefundedAmount: number;
|
|
31
|
+
createdOn: Date;
|
|
32
|
+
updatedOn: Date;
|
|
33
|
+
createdBy: number;
|
|
34
|
+
updatedBy: number;
|
|
35
|
+
totalBookingHours: number;
|
|
36
|
+
type: string | null;
|
|
37
|
+
constructor(data: IBookingDetailsEntity);
|
|
38
|
+
static getIdAndCreatedBy(bookingDetailsEntities: IBookingDetailsEntity[]): number[][];
|
|
39
|
+
assignCharges(chargeModel: ChargesModel): void;
|
|
40
|
+
static toMap(bookingDetailsEntities: IBookingDetailsEntity[], bookingsEntities: IBookingsEntity[]): IBookingDetailsWithBooking;
|
|
41
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.BookingDetailsModel = void 0;
|
|
15
|
+
var booking_entity_model_1 = require("./booking-entity-model");
|
|
16
|
+
var BookingDetailsModel = /** @class */ (function () {
|
|
17
|
+
function BookingDetailsModel(data) {
|
|
18
|
+
Object.assign(this, data);
|
|
19
|
+
}
|
|
20
|
+
BookingDetailsModel.getIdAndCreatedBy = function (bookingDetailsEntities) {
|
|
21
|
+
var bookingDetailsIds = [];
|
|
22
|
+
var userIds = [];
|
|
23
|
+
bookingDetailsEntities.forEach(function (_a) {
|
|
24
|
+
var bookingDetailId = _a.id, createdBy = _a.createdBy;
|
|
25
|
+
bookingDetailsIds.push(bookingDetailId), userIds.push(createdBy);
|
|
26
|
+
});
|
|
27
|
+
return [bookingDetailsIds, userIds];
|
|
28
|
+
};
|
|
29
|
+
// static toMap(
|
|
30
|
+
// bookingDetailsEntities: IBookingDetailsEntity[],
|
|
31
|
+
// bookingsEntities: BookingsEntity[],
|
|
32
|
+
// ): IBookingDetailsWithBooking {
|
|
33
|
+
// const response: IBookingDetailsWithBooking = {};
|
|
34
|
+
// bookingDetailsEntities.forEach((bookingsDetailsEntity) => {
|
|
35
|
+
// const bookingDetailsId = bookingsDetailsEntity.id;
|
|
36
|
+
// if (!response[bookingDetailsId]) {
|
|
37
|
+
// response[bookingDetailsId] = {
|
|
38
|
+
// ...bookingsDetailsEntity,
|
|
39
|
+
// bookings: {},
|
|
40
|
+
// };
|
|
41
|
+
// }
|
|
42
|
+
// const filterBookingEntities = bookingsEntities.filter(
|
|
43
|
+
// (bookingEntity) => bookingEntity.bookingDetailsId === bookingDetailsId,
|
|
44
|
+
// );
|
|
45
|
+
// response[bookingDetailsId].bookings = BookingsEntity.toMap(
|
|
46
|
+
// filterBookingEntities,
|
|
47
|
+
// );
|
|
48
|
+
// });
|
|
49
|
+
// return response;
|
|
50
|
+
// }
|
|
51
|
+
BookingDetailsModel.prototype.assignCharges = function (chargeModel) {
|
|
52
|
+
this.discountAmount = chargeModel.getDiscountAmount();
|
|
53
|
+
Object.assign(this, chargeModel);
|
|
54
|
+
};
|
|
55
|
+
BookingDetailsModel.toMap = function (bookingDetailsEntities, bookingsEntities) {
|
|
56
|
+
var response = {};
|
|
57
|
+
bookingDetailsEntities.forEach(function (bookingsDetailsEntity) {
|
|
58
|
+
var bookingDetailsId = bookingsDetailsEntity.id;
|
|
59
|
+
if (!response[bookingDetailsId]) {
|
|
60
|
+
response[bookingDetailsId] = __assign(__assign({}, bookingsDetailsEntity), { bookings: {} });
|
|
61
|
+
}
|
|
62
|
+
var filterBookingEntities = bookingsEntities.filter(function (bookingEntity) { return bookingEntity.bookingDetailsId === bookingDetailsId; });
|
|
63
|
+
response[bookingDetailsId].bookings = booking_entity_model_1.BookingEntityModel.toMap(filterBookingEntities);
|
|
64
|
+
});
|
|
65
|
+
return response;
|
|
66
|
+
};
|
|
67
|
+
return BookingDetailsModel;
|
|
68
|
+
}());
|
|
69
|
+
exports.BookingDetailsModel = BookingDetailsModel;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IBookingsEntityModel } from "../../interface/model/booking-entity-model.interface";
|
|
2
|
+
import { IBookingsEntity } from "../../interface/entity/bookings-entity.interface";
|
|
3
|
+
import { BookingCode } from "../booking-code-model";
|
|
4
|
+
export declare class BookingEntityModel implements IBookingsEntityModel {
|
|
5
|
+
bookingDetailsId: number;
|
|
6
|
+
code: string;
|
|
7
|
+
cost: string;
|
|
8
|
+
createdOn: Date;
|
|
9
|
+
updatedOn: Date;
|
|
10
|
+
createdBy: number;
|
|
11
|
+
updatedBy: number;
|
|
12
|
+
constructor(data: IBookingsEntity);
|
|
13
|
+
getTotalCost(): number;
|
|
14
|
+
getBookingTimeInMinutes(): number;
|
|
15
|
+
isTimeExtended(newBookingEntities: IBookingsEntity[]): boolean;
|
|
16
|
+
getBookingCode(): BookingCode;
|
|
17
|
+
static toMap(bookingEntities: IBookingsEntity[]): {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
static findByCodeAndTurfId(bookingEntities: IBookingsEntity[], turfId: number, bookingCode: string): IBookingsEntity | undefined;
|
|
21
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingEntityModel = void 0;
|
|
4
|
+
var booking_code_model_1 = require("../booking-code-model");
|
|
5
|
+
var BookingEntityModel = /** @class */ (function () {
|
|
6
|
+
function BookingEntityModel(data) {
|
|
7
|
+
Object.assign(this, data);
|
|
8
|
+
}
|
|
9
|
+
BookingEntityModel.prototype.getTotalCost = function () {
|
|
10
|
+
return this.cost
|
|
11
|
+
.split(",")
|
|
12
|
+
.map(Number)
|
|
13
|
+
.reduce(function (accumulator, currentValue) { return accumulator + currentValue; }, 0);
|
|
14
|
+
};
|
|
15
|
+
BookingEntityModel.prototype.getBookingTimeInMinutes = function () {
|
|
16
|
+
var bookingCode = new booking_code_model_1.BookingCode(this.code);
|
|
17
|
+
return bookingCode.getBookingTimeInMinutes();
|
|
18
|
+
};
|
|
19
|
+
BookingEntityModel.prototype.isTimeExtended = function (newBookingEntities) {
|
|
20
|
+
var newTimeInMinutes = newBookingEntities
|
|
21
|
+
.map(function (bookingEntity) {
|
|
22
|
+
return new BookingEntityModel(bookingEntity).getBookingTimeInMinutes();
|
|
23
|
+
})
|
|
24
|
+
.reduce(function (accumulator, currentValue) { return accumulator + currentValue; }, 0);
|
|
25
|
+
return (newTimeInMinutes > new BookingEntityModel(this).getBookingTimeInMinutes());
|
|
26
|
+
};
|
|
27
|
+
BookingEntityModel.prototype.getBookingCode = function () {
|
|
28
|
+
return new booking_code_model_1.BookingCode(this.code, this.cost);
|
|
29
|
+
};
|
|
30
|
+
BookingEntityModel.toMap = function (bookingEntities) {
|
|
31
|
+
var response = {};
|
|
32
|
+
bookingEntities.forEach(function (bookingEntity) {
|
|
33
|
+
response[bookingEntity.code] =
|
|
34
|
+
response[bookingEntity.code] === undefined
|
|
35
|
+
? bookingEntity.cost
|
|
36
|
+
: response[bookingEntity.code];
|
|
37
|
+
});
|
|
38
|
+
return response;
|
|
39
|
+
};
|
|
40
|
+
BookingEntityModel.findByCodeAndTurfId = function (bookingEntities, turfId, bookingCode) {
|
|
41
|
+
return bookingEntities.find(function (bookingEntity) {
|
|
42
|
+
return bookingEntity.code === booking_code_model_1.BookingCode.getInstance(turfId, bookingCode).code;
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
return BookingEntityModel;
|
|
46
|
+
}());
|
|
47
|
+
exports.BookingEntityModel = BookingEntityModel;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PaymentMode } from "../../enums/payment-mode.enum";
|
|
2
|
+
import { BookingPaymentTransactionType } from "../../enums/transaction-type.enum";
|
|
3
|
+
import { IDateWisePaymentHistoryData } from "../../types/date-wise-payment-history-data.types";
|
|
4
|
+
import { IBookingPaymentHistoryEntity } from "../../interface/entity/booking-payment-history-entity.interface";
|
|
5
|
+
export declare class BookingPaymentHistoryModel implements IBookingPaymentHistoryEntity {
|
|
6
|
+
id: number;
|
|
7
|
+
bookingDetailsId: number;
|
|
8
|
+
turfId: number;
|
|
9
|
+
pitchId: number;
|
|
10
|
+
type: PaymentMode | null;
|
|
11
|
+
transactionType: BookingPaymentTransactionType;
|
|
12
|
+
amount: number;
|
|
13
|
+
bookingHistoryId: number;
|
|
14
|
+
createdOn: Date;
|
|
15
|
+
updatedOn: Date;
|
|
16
|
+
createdBy: number;
|
|
17
|
+
updatedBy: number;
|
|
18
|
+
constructor(data: IBookingPaymentHistoryEntity);
|
|
19
|
+
static dateCodeAndTurfIdWiseData(bookingPaymentHistoryEntities: IBookingPaymentHistoryEntity[]): IDateWisePaymentHistoryData;
|
|
20
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingPaymentHistoryModel = void 0;
|
|
4
|
+
var payment_mode_enum_1 = require("../../enums/payment-mode.enum");
|
|
5
|
+
var booking_code_model_1 = require("../booking-code-model");
|
|
6
|
+
var BookingPaymentHistoryModel = /** @class */ (function () {
|
|
7
|
+
function BookingPaymentHistoryModel(data) {
|
|
8
|
+
Object.assign(this, data);
|
|
9
|
+
}
|
|
10
|
+
BookingPaymentHistoryModel.dateCodeAndTurfIdWiseData = function (bookingPaymentHistoryEntities) {
|
|
11
|
+
var dateWisePaymentHistoryData = {};
|
|
12
|
+
for (var _i = 0, bookingPaymentHistoryEntities_1 = bookingPaymentHistoryEntities; _i < bookingPaymentHistoryEntities_1.length; _i++) {
|
|
13
|
+
var bookingPaymentHistoryEntity = bookingPaymentHistoryEntities_1[_i];
|
|
14
|
+
var turfId = bookingPaymentHistoryEntity.turfId, amount = bookingPaymentHistoryEntity.amount, type = bookingPaymentHistoryEntity.type, createdOn = bookingPaymentHistoryEntity.createdOn;
|
|
15
|
+
var dateCode = booking_code_model_1.BookingCode.getDateCode(createdOn);
|
|
16
|
+
if (!dateWisePaymentHistoryData[dateCode])
|
|
17
|
+
dateWisePaymentHistoryData[dateCode] = {};
|
|
18
|
+
var turfWisePaymentData = dateWisePaymentHistoryData[dateCode][turfId];
|
|
19
|
+
if (!turfWisePaymentData)
|
|
20
|
+
turfWisePaymentData = dateWisePaymentHistoryData[dateCode][turfId] = {
|
|
21
|
+
cashTotal: 0,
|
|
22
|
+
upiTotal: 0,
|
|
23
|
+
total: 0,
|
|
24
|
+
};
|
|
25
|
+
if (type === payment_mode_enum_1.PaymentMode.CASH)
|
|
26
|
+
turfWisePaymentData.cashTotal += amount;
|
|
27
|
+
else if (type === payment_mode_enum_1.PaymentMode.UPI)
|
|
28
|
+
turfWisePaymentData.upiTotal += amount;
|
|
29
|
+
turfWisePaymentData.total =
|
|
30
|
+
turfWisePaymentData.cashTotal + turfWisePaymentData.upiTotal;
|
|
31
|
+
}
|
|
32
|
+
return dateWisePaymentHistoryData;
|
|
33
|
+
};
|
|
34
|
+
return BookingPaymentHistoryModel;
|
|
35
|
+
}());
|
|
36
|
+
exports.BookingPaymentHistoryModel = BookingPaymentHistoryModel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ICancellationPolicyModel } from "../../interface/model/cancellation-policy-model.interface";
|
|
2
|
+
import { ICancellationPolicyEntity } from "../../interface/entity/cancellation-policy-entity.interface";
|
|
3
|
+
export declare class CancellationPolicyModel implements ICancellationPolicyModel {
|
|
4
|
+
id: number;
|
|
5
|
+
turfId: number;
|
|
6
|
+
from: number;
|
|
7
|
+
to: number;
|
|
8
|
+
charges: string;
|
|
9
|
+
createdOn: Date;
|
|
10
|
+
updatedOn: Date;
|
|
11
|
+
createdBy: number;
|
|
12
|
+
updatedBy: number;
|
|
13
|
+
constructor(data: ICancellationPolicyEntity);
|
|
14
|
+
unitOfCharges(): string;
|
|
15
|
+
chargesWithoutUnit(): string;
|
|
16
|
+
isInEffect(hours: number): boolean;
|
|
17
|
+
getCancellationCharges(cost: number): number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CancellationPolicyModel = void 0;
|
|
4
|
+
var CancellationPolicyModel = /** @class */ (function () {
|
|
5
|
+
function CancellationPolicyModel(data) {
|
|
6
|
+
Object.assign(this, data);
|
|
7
|
+
}
|
|
8
|
+
CancellationPolicyModel.prototype.unitOfCharges = function () {
|
|
9
|
+
return this.charges.slice(-1);
|
|
10
|
+
};
|
|
11
|
+
CancellationPolicyModel.prototype.chargesWithoutUnit = function () {
|
|
12
|
+
return this.charges.slice(0, -1);
|
|
13
|
+
};
|
|
14
|
+
CancellationPolicyModel.prototype.isInEffect = function (hours) {
|
|
15
|
+
return this.from <= hours && hours <= this.to;
|
|
16
|
+
};
|
|
17
|
+
CancellationPolicyModel.prototype.getCancellationCharges = function (cost) {
|
|
18
|
+
var cancellationCharges = 0;
|
|
19
|
+
var cancellationChargesModel = new CancellationPolicyModel(this);
|
|
20
|
+
if (cancellationChargesModel.unitOfCharges() === "P") {
|
|
21
|
+
var percentageValue = cancellationChargesModel.chargesWithoutUnit();
|
|
22
|
+
cancellationCharges = (cost * Number(percentageValue)) / 100;
|
|
23
|
+
}
|
|
24
|
+
else if (cancellationChargesModel.unitOfCharges() === "U") {
|
|
25
|
+
var unit = cancellationChargesModel.chargesWithoutUnit();
|
|
26
|
+
cancellationCharges = Number(unit);
|
|
27
|
+
}
|
|
28
|
+
return cancellationCharges;
|
|
29
|
+
};
|
|
30
|
+
return CancellationPolicyModel;
|
|
31
|
+
}());
|
|
32
|
+
exports.CancellationPolicyModel = CancellationPolicyModel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ConfigurationKey } from "../../enums/configuration-key.enum";
|
|
2
|
+
import { IConfigurationsModel } from "../../interface/model/configuration-model.interface";
|
|
3
|
+
import { IConfigurationsEntity } from "../../interface/entity/configurations-entity.interface";
|
|
4
|
+
export declare class ConfigurationsModel implements IConfigurationsModel {
|
|
5
|
+
id: number;
|
|
6
|
+
key: ConfigurationKey;
|
|
7
|
+
value: string;
|
|
8
|
+
description: string;
|
|
9
|
+
createdOn: Date;
|
|
10
|
+
updatedOn: Date;
|
|
11
|
+
createdBy: number;
|
|
12
|
+
updatedBy: number;
|
|
13
|
+
text: string;
|
|
14
|
+
constructor(data: IConfigurationsEntity);
|
|
15
|
+
isCronJobKey(): boolean;
|
|
16
|
+
static findByKey(configurationEntities: IConfigurationsEntity[], key: ConfigurationKey): IConfigurationsEntity | undefined;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigurationsModel = void 0;
|
|
4
|
+
var configuration_key_enum_1 = require("../../enums/configuration-key.enum");
|
|
5
|
+
var ConfigurationsModel = /** @class */ (function () {
|
|
6
|
+
function ConfigurationsModel(data) {
|
|
7
|
+
Object.assign(this, data);
|
|
8
|
+
}
|
|
9
|
+
ConfigurationsModel.prototype.isCronJobKey = function () {
|
|
10
|
+
return configuration_key_enum_1.ConfigurationKey.CronJobsConfigurationsKeys(this.key);
|
|
11
|
+
};
|
|
12
|
+
ConfigurationsModel.findByKey = function (configurationEntities, key) {
|
|
13
|
+
return configurationEntities.find(function (configurationEntity) { return configurationEntity.key === key; });
|
|
14
|
+
};
|
|
15
|
+
return ConfigurationsModel;
|
|
16
|
+
}());
|
|
17
|
+
exports.ConfigurationsModel = ConfigurationsModel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./booking-details-model";
|
|
2
|
+
export * from "./booking-entity-model";
|
|
3
|
+
export * from "./booking-payment-history-model";
|
|
4
|
+
export * from "./cancellation-policy-model";
|
|
5
|
+
export * from "./configuration-model";
|
|
6
|
+
export * from "./price-model";
|
|
7
|
+
export * from "./pricing-plan-entity-model";
|
|
8
|
+
export * from "./subscription-model";
|
|
9
|
+
export * from "./turf-model";
|
|
10
|
+
export * from "./user-model";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./booking-details-model"), exports);
|
|
18
|
+
__exportStar(require("./booking-entity-model"), exports);
|
|
19
|
+
__exportStar(require("./booking-payment-history-model"), exports);
|
|
20
|
+
__exportStar(require("./cancellation-policy-model"), exports);
|
|
21
|
+
__exportStar(require("./configuration-model"), exports);
|
|
22
|
+
__exportStar(require("./price-model"), exports);
|
|
23
|
+
__exportStar(require("./pricing-plan-entity-model"), exports);
|
|
24
|
+
__exportStar(require("./subscription-model"), exports);
|
|
25
|
+
__exportStar(require("./turf-model"), exports);
|
|
26
|
+
__exportStar(require("./user-model"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IPriceModel } from "../../interface/model";
|
|
2
|
+
import { IPriceEntity } from "../../interface/entity/price-entity.interface";
|
|
3
|
+
export declare class PriceModel implements IPriceModel {
|
|
4
|
+
id: string;
|
|
5
|
+
price: number;
|
|
6
|
+
createdOn: Date;
|
|
7
|
+
updatedOn: Date;
|
|
8
|
+
createdBy: number;
|
|
9
|
+
updatedBy: number;
|
|
10
|
+
static sortByCode(priceEntities: IPriceEntity[]): IPriceEntity[];
|
|
11
|
+
}
|