turf-common 1.3.1-beta.8 → 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/interface/api/get-collection.interface.d.ts +1 -4
- 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,13 @@
|
|
|
1
|
+
import { PaymentMode } from "../../@enum";
|
|
2
|
+
export interface IUpdateBookingByCodesDto {
|
|
3
|
+
bookingCode: string;
|
|
4
|
+
cancellation_amount: number;
|
|
5
|
+
refund_amount: number;
|
|
6
|
+
refund_mode: PaymentMode;
|
|
7
|
+
pitchId: number;
|
|
8
|
+
slot: {
|
|
9
|
+
date: number;
|
|
10
|
+
from: string;
|
|
11
|
+
to: string;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
export interface IBankDetailsEntity extends IEntityAuditColumn {
|
|
3
|
+
id: number;
|
|
4
|
+
bankName: string;
|
|
5
|
+
accountNo: string;
|
|
6
|
+
ifscCode: string;
|
|
7
|
+
upiId: string;
|
|
8
|
+
qrCode: string | null;
|
|
9
|
+
bankAddress: string;
|
|
10
|
+
branch: string;
|
|
11
|
+
accountName: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { BookingHistoryOperationType } from "../../enums/booking-history-operation-type.enum";
|
|
3
|
+
import { PaymentMode } from "../../enums/payment-mode.enum";
|
|
4
|
+
export interface IBookingCancellationEntity extends IEntityAuditColumn {
|
|
5
|
+
id: number;
|
|
6
|
+
bookingDetailsId: number;
|
|
7
|
+
turfId: number;
|
|
8
|
+
pitchId: number;
|
|
9
|
+
customerName: string;
|
|
10
|
+
contact: string;
|
|
11
|
+
paymentMode: string;
|
|
12
|
+
couponCode: string;
|
|
13
|
+
totalCost: number;
|
|
14
|
+
discountedCost: number;
|
|
15
|
+
amountPaid: number;
|
|
16
|
+
operationType: BookingHistoryOperationType;
|
|
17
|
+
email: string | null;
|
|
18
|
+
bookingCodes: string;
|
|
19
|
+
cancellationAmount: number;
|
|
20
|
+
refundAmount: number;
|
|
21
|
+
refundMode: PaymentMode | null;
|
|
22
|
+
startDateCode: number;
|
|
23
|
+
endDateCode: number;
|
|
24
|
+
initialBookingGrossAmount: number;
|
|
25
|
+
additionalBookingGrossAmount: number;
|
|
26
|
+
discountAmount: number;
|
|
27
|
+
cancelledBookingGrossAmount: number;
|
|
28
|
+
totalCancellationCharges: number;
|
|
29
|
+
netTotal: number;
|
|
30
|
+
amountPayable: number;
|
|
31
|
+
refundPayable: number;
|
|
32
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { BookingDetailsStatus } from "../../enums/booking-details-status.enum";
|
|
3
|
+
export interface IBookingDetailsEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
turfId: number;
|
|
6
|
+
pitchId: number;
|
|
7
|
+
customerName: string;
|
|
8
|
+
contact: string;
|
|
9
|
+
paymentMode: string;
|
|
10
|
+
couponCode: string;
|
|
11
|
+
totalCost: number;
|
|
12
|
+
discountedCost: number;
|
|
13
|
+
amountPaid: number;
|
|
14
|
+
email: string | null;
|
|
15
|
+
status: BookingDetailsStatus;
|
|
16
|
+
sport: string;
|
|
17
|
+
remarks: string | null;
|
|
18
|
+
initialBookingGrossAmount: number;
|
|
19
|
+
additionalBookingGrossAmount: number;
|
|
20
|
+
discountAmount: number;
|
|
21
|
+
cancelledBookingGrossAmount: number;
|
|
22
|
+
totalCancellationCharges: number;
|
|
23
|
+
netTotal: number;
|
|
24
|
+
amountPayable: number;
|
|
25
|
+
refundPayable: number;
|
|
26
|
+
totalRefundedAmount: number;
|
|
27
|
+
totalBookingHours: number;
|
|
28
|
+
type: string | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BookingDetailsStatus } from "../../@enum";
|
|
2
|
+
import { BookingHistoryOperationType } from "../../enums/booking-history-operation-type.enum";
|
|
3
|
+
import { PaymentMode } from "../../enums/payment-mode.enum";
|
|
4
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
5
|
+
export interface IBookingHistoryEntity extends IEntityAuditColumn {
|
|
6
|
+
id: number;
|
|
7
|
+
bookingDetailsId: number;
|
|
8
|
+
turfId: number;
|
|
9
|
+
pitchId: number;
|
|
10
|
+
customerName: string;
|
|
11
|
+
contact: string;
|
|
12
|
+
paymentMode: string;
|
|
13
|
+
couponCode: string;
|
|
14
|
+
totalCost: number;
|
|
15
|
+
discountedCost: number;
|
|
16
|
+
amountPaid: number;
|
|
17
|
+
operationType: BookingHistoryOperationType;
|
|
18
|
+
email: string | null;
|
|
19
|
+
bookingCodes: string;
|
|
20
|
+
cancellationAmount: number;
|
|
21
|
+
refundAmount: number;
|
|
22
|
+
refundMode: PaymentMode | null;
|
|
23
|
+
initialBookingGrossAmount: number;
|
|
24
|
+
additionalBookingGrossAmount: number;
|
|
25
|
+
discountAmount: number;
|
|
26
|
+
cancelledBookingGrossAmount: number;
|
|
27
|
+
totalCancellationCharges: number;
|
|
28
|
+
netTotal: number;
|
|
29
|
+
amountPayable: number;
|
|
30
|
+
refundPayable: number;
|
|
31
|
+
totalRefundedAmount: number;
|
|
32
|
+
type: string | null;
|
|
33
|
+
totalBookingHours: number;
|
|
34
|
+
status: BookingDetailsStatus;
|
|
35
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PaymentMode } from "../../enums/payment-mode.enum";
|
|
2
|
+
import { BookingPaymentTransactionType } from "../../enums/transaction-type.enum";
|
|
3
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
4
|
+
export interface IBookingPaymentHistoryEntity extends IEntityAuditColumn {
|
|
5
|
+
id: number;
|
|
6
|
+
bookingDetailsId: number;
|
|
7
|
+
turfId: number;
|
|
8
|
+
pitchId: number;
|
|
9
|
+
type: PaymentMode | null;
|
|
10
|
+
transactionType: BookingPaymentTransactionType;
|
|
11
|
+
amount: number;
|
|
12
|
+
bookingHistoryId: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ConfigurationKey } from "../../enums/configuration-key.enum";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
3
|
+
export interface IConfigurationsEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
key: ConfigurationKey;
|
|
6
|
+
value: string | null;
|
|
7
|
+
text: string;
|
|
8
|
+
description: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { IOrganizationEntity } from "./organization-entity.interface";
|
|
3
|
+
export interface ICouponEntity extends IEntityAuditColumn, ICouponEntityRel {
|
|
4
|
+
id: number;
|
|
5
|
+
code: string;
|
|
6
|
+
org_id: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ICouponEntityRel {
|
|
9
|
+
organization: IOrganizationEntity;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CronJobsNames } from "../../enums/cron-jobs-name.enum";
|
|
2
|
+
import { CronJobsStatus } from "../../enums/cron-jobs-status.enum";
|
|
3
|
+
export interface ICronJobsEntity {
|
|
4
|
+
id: number;
|
|
5
|
+
job: CronJobsNames;
|
|
6
|
+
startTime: Date;
|
|
7
|
+
endTime: Date | null;
|
|
8
|
+
message: string;
|
|
9
|
+
error: string;
|
|
10
|
+
data: string;
|
|
11
|
+
status: CronJobsStatus;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IEntityAuditColumn {
|
|
2
|
+
createdOn: Date;
|
|
3
|
+
updatedOn: Date;
|
|
4
|
+
createdBy: number;
|
|
5
|
+
updatedBy: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class EntityAuditColumnModel implements IEntityAuditColumn {
|
|
8
|
+
createdOn: Date;
|
|
9
|
+
updatedOn: Date;
|
|
10
|
+
createdBy: number;
|
|
11
|
+
updatedBy: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityAuditColumnModel = void 0;
|
|
4
|
+
var EntityAuditColumnModel = /** @class */ (function () {
|
|
5
|
+
function EntityAuditColumnModel() {
|
|
6
|
+
}
|
|
7
|
+
return EntityAuditColumnModel;
|
|
8
|
+
}());
|
|
9
|
+
exports.EntityAuditColumnModel = EntityAuditColumnModel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FaqsStatus } from "../../enums/faqs-status.enum";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
3
|
+
export interface IFaqsEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
index: number;
|
|
6
|
+
status: FaqsStatus;
|
|
7
|
+
module: string;
|
|
8
|
+
question: string;
|
|
9
|
+
steps: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from "./bank-details-entity.interface";
|
|
2
|
+
export * from "./booking-cancellation-entity.interface";
|
|
3
|
+
export * from "./booking-customer-entity.interface";
|
|
4
|
+
export * from "./booking-details-entity.interface";
|
|
5
|
+
export * from "./booking-history-entity.interface";
|
|
6
|
+
export * from "./booking-payment-history-entity.interface";
|
|
7
|
+
export * from "./bookings-entity.interface";
|
|
8
|
+
export * from "./cancellation-policy-entity.interface";
|
|
9
|
+
export * from "./configurations-entity.interface";
|
|
10
|
+
export * from "./coupon.entity.interface";
|
|
11
|
+
export * from "./cron-jobs-entity.interface";
|
|
12
|
+
export * from "./entity-audit-column.interface";
|
|
13
|
+
export * from "./faqs-entity.interface";
|
|
14
|
+
export * from "./organization-entity.interface";
|
|
15
|
+
export * from "./pitch-entity.interface";
|
|
16
|
+
export * from "./price-entity.interface";
|
|
17
|
+
export * from "./pricing-plan-entity.interface";
|
|
18
|
+
export * from "./pricing-plan-entity.interface";
|
|
19
|
+
export * from "./registration-entity.interface";
|
|
20
|
+
export * from "./subscription-entity.interface";
|
|
21
|
+
export * from "./subscription-pitch-mapping.interface";
|
|
22
|
+
export * from "./turf-entity.interface";
|
|
23
|
+
export * from "./user-entity.interface";
|
|
@@ -0,0 +1,39 @@
|
|
|
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("./bank-details-entity.interface"), exports);
|
|
18
|
+
__exportStar(require("./booking-cancellation-entity.interface"), exports);
|
|
19
|
+
__exportStar(require("./booking-customer-entity.interface"), exports);
|
|
20
|
+
__exportStar(require("./booking-details-entity.interface"), exports);
|
|
21
|
+
__exportStar(require("./booking-history-entity.interface"), exports);
|
|
22
|
+
__exportStar(require("./booking-payment-history-entity.interface"), exports);
|
|
23
|
+
__exportStar(require("./bookings-entity.interface"), exports);
|
|
24
|
+
__exportStar(require("./cancellation-policy-entity.interface"), exports);
|
|
25
|
+
__exportStar(require("./configurations-entity.interface"), exports);
|
|
26
|
+
__exportStar(require("./coupon.entity.interface"), exports);
|
|
27
|
+
__exportStar(require("./cron-jobs-entity.interface"), exports);
|
|
28
|
+
__exportStar(require("./entity-audit-column.interface"), exports);
|
|
29
|
+
__exportStar(require("./faqs-entity.interface"), exports);
|
|
30
|
+
__exportStar(require("./organization-entity.interface"), exports);
|
|
31
|
+
__exportStar(require("./pitch-entity.interface"), exports);
|
|
32
|
+
__exportStar(require("./price-entity.interface"), exports);
|
|
33
|
+
__exportStar(require("./pricing-plan-entity.interface"), exports);
|
|
34
|
+
__exportStar(require("./pricing-plan-entity.interface"), exports);
|
|
35
|
+
__exportStar(require("./registration-entity.interface"), exports);
|
|
36
|
+
__exportStar(require("./subscription-entity.interface"), exports);
|
|
37
|
+
__exportStar(require("./subscription-pitch-mapping.interface"), exports);
|
|
38
|
+
__exportStar(require("./turf-entity.interface"), exports);
|
|
39
|
+
__exportStar(require("./user-entity.interface"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OrganizationType } from "../../@enum";
|
|
2
|
+
import { OrganizationStatus } from "../../enums/organization-status.enum";
|
|
3
|
+
import { ICouponEntity } from "./coupon.entity.interface";
|
|
4
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
5
|
+
import { ITurfEntity } from "./turf-entity.interface";
|
|
6
|
+
export interface IOrganizationEntity extends IEntityAuditColumn, IOrganizationEntityRel {
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
email: string | null;
|
|
10
|
+
contact_no: string | null;
|
|
11
|
+
type: OrganizationType;
|
|
12
|
+
pan_no: string;
|
|
13
|
+
pan_file_path: string;
|
|
14
|
+
gst_no: string | null;
|
|
15
|
+
gst_file_path: string | null;
|
|
16
|
+
deed: string | null;
|
|
17
|
+
deed_file_path: string | null;
|
|
18
|
+
status: OrganizationStatus;
|
|
19
|
+
registrationId: number;
|
|
20
|
+
}
|
|
21
|
+
export interface IOrganizationEntityRel {
|
|
22
|
+
turfs: ITurfEntity[];
|
|
23
|
+
coupon: ICouponEntity[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { ITurfEntity } from "./turf-entity.interface";
|
|
3
|
+
export interface IPitchEntity extends IEntityAuditColumn {
|
|
4
|
+
turf: ITurfEntity;
|
|
5
|
+
number: number;
|
|
6
|
+
name: string;
|
|
7
|
+
status: string;
|
|
8
|
+
sports: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { PricingPlanStatus } from "../../enums/pricing-plan-status.enum";
|
|
3
|
+
export interface IPricingPlanEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
effectiveFrom: Date;
|
|
6
|
+
effectiveTo: Date;
|
|
7
|
+
costCode: string;
|
|
8
|
+
status: PricingPlanStatus;
|
|
9
|
+
createdBy: number;
|
|
10
|
+
createdOn: Date;
|
|
11
|
+
updatedBy: number;
|
|
12
|
+
updatedOn: Date;
|
|
13
|
+
basePrice: number;
|
|
14
|
+
billingCycle: string;
|
|
15
|
+
unit: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RegistrationStatus } from "../../enums/registration-status-enum";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
3
|
+
export interface IRegistrationEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
contact: string;
|
|
7
|
+
email: string;
|
|
8
|
+
pitchPlan: string;
|
|
9
|
+
status: RegistrationStatus;
|
|
10
|
+
comments: string | null;
|
|
11
|
+
token: string | null;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SubscriptionStatus } from "../../enums/subscription-status.enum";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
3
|
+
import { ISubscriptionPitchMappingEntity } from "./subscription-pitch-mapping.interface";
|
|
4
|
+
export interface ISubscriptionEntity extends IEntityAuditColumn {
|
|
5
|
+
id: number;
|
|
6
|
+
organizationId: number;
|
|
7
|
+
from: Date;
|
|
8
|
+
to: Date;
|
|
9
|
+
type: string;
|
|
10
|
+
grossAmount: number;
|
|
11
|
+
discount: string;
|
|
12
|
+
netAmount: number;
|
|
13
|
+
amountPaid: number;
|
|
14
|
+
status: SubscriptionStatus;
|
|
15
|
+
noOfPitches: number;
|
|
16
|
+
remarks: string;
|
|
17
|
+
registrationId: number;
|
|
18
|
+
pricingPlanId: number;
|
|
19
|
+
previousSubscriptionIds: string | null;
|
|
20
|
+
fromDateCode: string;
|
|
21
|
+
toDateCode: string;
|
|
22
|
+
}
|
|
23
|
+
export type ISubscriptionModel = ISubscriptionEntity & {
|
|
24
|
+
details?: ISubscriptionPitchMappingEntity[];
|
|
25
|
+
advanceAmount?: number;
|
|
26
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { IOrganizationEntity } from "./organization-entity.interface";
|
|
3
|
+
import { IPitchEntity } from "./pitch-entity.interface";
|
|
4
|
+
import { IUserEntity } from "./user-entity.interface";
|
|
5
|
+
export interface ITurfEntity extends IEntityAuditColumn, ITurfEntityRel {
|
|
6
|
+
id: number;
|
|
7
|
+
turfName: string;
|
|
8
|
+
numberOfPitches: number;
|
|
9
|
+
address: string;
|
|
10
|
+
org_id: number;
|
|
11
|
+
adhocRefund: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ITurfEntityRel {
|
|
14
|
+
pitches: IPitchEntity[];
|
|
15
|
+
organization: IOrganizationEntity;
|
|
16
|
+
Users: IUserEntity[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { UserStatus } from "../../enums/user-status.enum";
|
|
3
|
+
import { UserType } from "../../enums/valid-type.enum";
|
|
4
|
+
import { ITurfEntity } from "./turf-entity.interface";
|
|
5
|
+
export interface IUserEntity extends IEntityAuditColumn, IUserEntityRel {
|
|
6
|
+
id: number;
|
|
7
|
+
firstname: string;
|
|
8
|
+
phone: string;
|
|
9
|
+
password: string;
|
|
10
|
+
email: string;
|
|
11
|
+
status: UserStatus;
|
|
12
|
+
is_email_verified: boolean;
|
|
13
|
+
is_mobile_verified: boolean;
|
|
14
|
+
is_account_verified: boolean;
|
|
15
|
+
require_new_password: boolean;
|
|
16
|
+
organization_id: number;
|
|
17
|
+
type: UserType;
|
|
18
|
+
registrationId: number;
|
|
19
|
+
comments: string | null;
|
|
20
|
+
imageUrl: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface IUserEntityRel {
|
|
23
|
+
turf: ITurfEntity[];
|
|
24
|
+
}
|