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 @@
|
|
|
1
|
+
export * from "../enums/socket-io-booking-operation.enum";
|
|
@@ -0,0 +1,17 @@
|
|
|
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("../enums/socket-io-booking-operation.enum"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../interface/socket-io-bookings.interface";
|
|
@@ -0,0 +1,17 @@
|
|
|
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("../interface/socket-io-bookings.interface"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AvailabilityView = void 0;
|
|
4
|
+
var AvailabilityView;
|
|
5
|
+
(function (AvailabilityView) {
|
|
6
|
+
AvailabilityView["NORMAL"] = "normal";
|
|
7
|
+
AvailabilityView["MERGED"] = "merged";
|
|
8
|
+
})(AvailabilityView || (exports.AvailabilityView = AvailabilityView = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingDetailsStatus = void 0;
|
|
4
|
+
var BookingDetailsStatus;
|
|
5
|
+
(function (BookingDetailsStatus) {
|
|
6
|
+
BookingDetailsStatus["BOOKED"] = "booked";
|
|
7
|
+
BookingDetailsStatus["BLOCKED"] = "blocked";
|
|
8
|
+
})(BookingDetailsStatus || (exports.BookingDetailsStatus = BookingDetailsStatus = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingFetchFilter = void 0;
|
|
4
|
+
var BookingFetchFilter;
|
|
5
|
+
(function (BookingFetchFilter) {
|
|
6
|
+
BookingFetchFilter["PENDING_PAYMENT"] = "pending_payment";
|
|
7
|
+
BookingFetchFilter["PENDING_REFUND"] = "pending_refund";
|
|
8
|
+
BookingFetchFilter["FULL_REFUND"] = "full_refund";
|
|
9
|
+
})(BookingFetchFilter || (exports.BookingFetchFilter = BookingFetchFilter = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum BookingHistoryOperationType {
|
|
2
|
+
DELETE = "delete",
|
|
3
|
+
UPDATE = "update",
|
|
4
|
+
INSERT = "insert",
|
|
5
|
+
DELETE_INSERT = "delete_insert",
|
|
6
|
+
DELETE_SLOT = "delete_slot",
|
|
7
|
+
REFUND = "refund",
|
|
8
|
+
PAYMENT = "payment",
|
|
9
|
+
MERGED = "merged",
|
|
10
|
+
DELETE_SLOT_EVENT = "delete_slot_event"
|
|
11
|
+
}
|
|
12
|
+
export declare const OPERATION_TYPES: BookingHistoryOperationType[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OPERATION_TYPES = exports.BookingHistoryOperationType = void 0;
|
|
4
|
+
var BookingHistoryOperationType;
|
|
5
|
+
(function (BookingHistoryOperationType) {
|
|
6
|
+
BookingHistoryOperationType["DELETE"] = "delete";
|
|
7
|
+
BookingHistoryOperationType["UPDATE"] = "update";
|
|
8
|
+
BookingHistoryOperationType["INSERT"] = "insert";
|
|
9
|
+
BookingHistoryOperationType["DELETE_INSERT"] = "delete_insert";
|
|
10
|
+
BookingHistoryOperationType["DELETE_SLOT"] = "delete_slot";
|
|
11
|
+
BookingHistoryOperationType["REFUND"] = "refund";
|
|
12
|
+
BookingHistoryOperationType["PAYMENT"] = "payment";
|
|
13
|
+
BookingHistoryOperationType["MERGED"] = "merged";
|
|
14
|
+
BookingHistoryOperationType["DELETE_SLOT_EVENT"] = "delete_slot_event";
|
|
15
|
+
})(BookingHistoryOperationType || (exports.BookingHistoryOperationType = BookingHistoryOperationType = {}));
|
|
16
|
+
exports.OPERATION_TYPES = [
|
|
17
|
+
BookingHistoryOperationType.DELETE,
|
|
18
|
+
BookingHistoryOperationType.REFUND,
|
|
19
|
+
BookingHistoryOperationType.PAYMENT,
|
|
20
|
+
];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingsStatus = void 0;
|
|
4
|
+
var BookingsStatus;
|
|
5
|
+
(function (BookingsStatus) {
|
|
6
|
+
BookingsStatus["BOOKED"] = "booked";
|
|
7
|
+
BookingsStatus["BLOCKED"] = "blocked";
|
|
8
|
+
BookingsStatus["DELETE"] = "delete";
|
|
9
|
+
})(BookingsStatus || (exports.BookingsStatus = BookingsStatus = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigurationDescription = void 0;
|
|
4
|
+
var ConfigurationDescription;
|
|
5
|
+
(function (ConfigurationDescription) {
|
|
6
|
+
ConfigurationDescription["SEND_DAILY_COLLECTION"] = "Daily payment collection will be sent by email to the owner";
|
|
7
|
+
ConfigurationDescription["SUBSCRIPTION_REMINDER"] = "Send reminder to owners";
|
|
8
|
+
ConfigurationDescription["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
|
|
9
|
+
})(ConfigurationDescription || (exports.ConfigurationDescription = ConfigurationDescription = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CronJobsNames } from "./cron-jobs-name.enum";
|
|
2
|
+
export declare enum ConfigurationKey {
|
|
3
|
+
SEND_DAILY_COLLECTION = "send_daily_collection",
|
|
4
|
+
SUBSCRIPTION_REMINDER = "subscription_reminder",
|
|
5
|
+
SUBSCRIPTION_ACTIVATION = "subscription_activation"
|
|
6
|
+
}
|
|
7
|
+
export declare namespace ConfigurationKey {
|
|
8
|
+
function CronJobsConfigurationsKeys(key: ConfigurationKey): boolean;
|
|
9
|
+
function getCronJobName(configurationKey: ConfigurationKey): CronJobsNames;
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigurationKey = void 0;
|
|
4
|
+
var cron_jobs_name_enum_1 = require("./cron-jobs-name.enum");
|
|
5
|
+
var ConfigurationKey;
|
|
6
|
+
(function (ConfigurationKey) {
|
|
7
|
+
ConfigurationKey["SEND_DAILY_COLLECTION"] = "send_daily_collection";
|
|
8
|
+
ConfigurationKey["SUBSCRIPTION_REMINDER"] = "subscription_reminder";
|
|
9
|
+
ConfigurationKey["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
|
|
10
|
+
})(ConfigurationKey || (exports.ConfigurationKey = ConfigurationKey = {}));
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
12
|
+
(function (ConfigurationKey) {
|
|
13
|
+
function CronJobsConfigurationsKeys(key) {
|
|
14
|
+
if (getCronJobName(key))
|
|
15
|
+
return true;
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
ConfigurationKey.CronJobsConfigurationsKeys = CronJobsConfigurationsKeys;
|
|
19
|
+
function getCronJobName(configurationKey) {
|
|
20
|
+
var _a;
|
|
21
|
+
var cronJobConfigurationKeyMapping = (_a = {},
|
|
22
|
+
_a[ConfigurationKey.SEND_DAILY_COLLECTION] = cron_jobs_name_enum_1.CronJobsNames.SEND_DAILY_COLLECTION,
|
|
23
|
+
_a[ConfigurationKey.SUBSCRIPTION_REMINDER] = cron_jobs_name_enum_1.CronJobsNames.SUBSCRIPTION_REMINDER,
|
|
24
|
+
_a[ConfigurationKey.SUBSCRIPTION_ACTIVATION] = cron_jobs_name_enum_1.CronJobsNames.SUBSCRIPTION_ACTIVATION,
|
|
25
|
+
_a);
|
|
26
|
+
return cronJobConfigurationKeyMapping[configurationKey];
|
|
27
|
+
}
|
|
28
|
+
ConfigurationKey.getCronJobName = getCronJobName;
|
|
29
|
+
})(ConfigurationKey || (exports.ConfigurationKey = ConfigurationKey = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigurationText = void 0;
|
|
4
|
+
var ConfigurationText;
|
|
5
|
+
(function (ConfigurationText) {
|
|
6
|
+
ConfigurationText["SEND_DAILY_COLLECTION"] = "A daily payment collection email will be sent to the owner";
|
|
7
|
+
ConfigurationText["SUBSCRIPTION_REMINDER"] = "Send reminder to owners on specific days";
|
|
8
|
+
ConfigurationText["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
|
|
9
|
+
})(ConfigurationText || (exports.ConfigurationText = ConfigurationText = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CronJobsNames = void 0;
|
|
4
|
+
var CronJobsNames;
|
|
5
|
+
(function (CronJobsNames) {
|
|
6
|
+
CronJobsNames["SEND_DAILY_COLLECTION"] = "send_daily_collection";
|
|
7
|
+
CronJobsNames["SUBSCRIPTION_REMINDER"] = "subscription_reminder";
|
|
8
|
+
CronJobsNames["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
|
|
9
|
+
})(CronJobsNames || (exports.CronJobsNames = CronJobsNames = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CronJobsStatus = void 0;
|
|
4
|
+
var CronJobsStatus;
|
|
5
|
+
(function (CronJobsStatus) {
|
|
6
|
+
CronJobsStatus["RUNNING"] = "running";
|
|
7
|
+
CronJobsStatus["FAILED"] = "failed";
|
|
8
|
+
CronJobsStatus["SUCCESS"] = "success";
|
|
9
|
+
})(CronJobsStatus || (exports.CronJobsStatus = CronJobsStatus = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Environment = void 0;
|
|
4
|
+
var Environment;
|
|
5
|
+
(function (Environment) {
|
|
6
|
+
Environment["DEVELOPMENT"] = "development";
|
|
7
|
+
Environment["PRODUCTION"] = "production";
|
|
8
|
+
Environment["TEST"] = "test";
|
|
9
|
+
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModificationDiscountPolicy = void 0;
|
|
4
|
+
var ModificationDiscountPolicy;
|
|
5
|
+
(function (ModificationDiscountPolicy) {
|
|
6
|
+
ModificationDiscountPolicy["DISCOUNT_RECALL"] = "discount_recall";
|
|
7
|
+
ModificationDiscountPolicy["DISCOUNT_RELATIVE"] = "discount_relative";
|
|
8
|
+
ModificationDiscountPolicy["DISCOUNT_CONDITIONAL"] = "discount_conditional";
|
|
9
|
+
})(ModificationDiscountPolicy || (exports.ModificationDiscountPolicy = ModificationDiscountPolicy = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum OrganizationStatus {
|
|
2
|
+
REGISTRATION = "registration",
|
|
3
|
+
REGISTRATION_INVALID = "registration_invalid",
|
|
4
|
+
REGISTRATION_APPROVED = "registration_approved",
|
|
5
|
+
SETUP_INVALID = "setup_invalid",
|
|
6
|
+
SETUP_DONE = "setup_done",
|
|
7
|
+
PAYMENT_INVALID = "payment_invalid",
|
|
8
|
+
PAYMENT_DONE = "payment_done",
|
|
9
|
+
ACCOUNT_ACTIVE = "account_active",
|
|
10
|
+
ACCOUNT_SUSPENDED = "account_suspended"
|
|
11
|
+
}
|
|
12
|
+
export declare namespace OrganizationStatus {
|
|
13
|
+
function allowPermissionSuperAdmin(): OrganizationStatus[];
|
|
14
|
+
function allowPermissionOwner(): OrganizationStatus[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganizationStatus = void 0;
|
|
4
|
+
var OrganizationStatus;
|
|
5
|
+
(function (OrganizationStatus) {
|
|
6
|
+
OrganizationStatus["REGISTRATION"] = "registration";
|
|
7
|
+
OrganizationStatus["REGISTRATION_INVALID"] = "registration_invalid";
|
|
8
|
+
OrganizationStatus["REGISTRATION_APPROVED"] = "registration_approved";
|
|
9
|
+
OrganizationStatus["SETUP_INVALID"] = "setup_invalid";
|
|
10
|
+
OrganizationStatus["SETUP_DONE"] = "setup_done";
|
|
11
|
+
OrganizationStatus["PAYMENT_INVALID"] = "payment_invalid";
|
|
12
|
+
OrganizationStatus["PAYMENT_DONE"] = "payment_done";
|
|
13
|
+
OrganizationStatus["ACCOUNT_ACTIVE"] = "account_active";
|
|
14
|
+
OrganizationStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
|
|
15
|
+
})(OrganizationStatus || (exports.OrganizationStatus = OrganizationStatus = {}));
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
17
|
+
(function (OrganizationStatus) {
|
|
18
|
+
function allowPermissionSuperAdmin() {
|
|
19
|
+
return Object.values(OrganizationStatus).filter(function (status) {
|
|
20
|
+
return status !== OrganizationStatus.SETUP_DONE &&
|
|
21
|
+
status !== OrganizationStatus.REGISTRATION;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
OrganizationStatus.allowPermissionSuperAdmin = allowPermissionSuperAdmin;
|
|
25
|
+
function allowPermissionOwner() {
|
|
26
|
+
return Object.values(OrganizationStatus).filter(function (status) {
|
|
27
|
+
return status === OrganizationStatus.SETUP_DONE;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
OrganizationStatus.allowPermissionOwner = allowPermissionOwner;
|
|
31
|
+
})(OrganizationStatus || (exports.OrganizationStatus = OrganizationStatus = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganizationType = void 0;
|
|
4
|
+
var OrganizationType;
|
|
5
|
+
(function (OrganizationType) {
|
|
6
|
+
OrganizationType["PARTNERSHIP"] = "partnership";
|
|
7
|
+
OrganizationType["COMPANY"] = "company";
|
|
8
|
+
OrganizationType["PROPRIETOR"] = "proprietor";
|
|
9
|
+
})(OrganizationType || (exports.OrganizationType = OrganizationType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMode = void 0;
|
|
4
|
+
var PaymentMode;
|
|
5
|
+
(function (PaymentMode) {
|
|
6
|
+
PaymentMode["UPI"] = "upi";
|
|
7
|
+
PaymentMode["CASH"] = "cash";
|
|
8
|
+
})(PaymentMode || (exports.PaymentMode = PaymentMode = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PitchOperations = void 0;
|
|
4
|
+
var PitchOperations;
|
|
5
|
+
(function (PitchOperations) {
|
|
6
|
+
PitchOperations["DELETE"] = "delete";
|
|
7
|
+
PitchOperations["UPDATE"] = "update";
|
|
8
|
+
PitchOperations["CREATE"] = "create";
|
|
9
|
+
})(PitchOperations || (exports.PitchOperations = PitchOperations = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PitchSports = void 0;
|
|
4
|
+
var PitchSports;
|
|
5
|
+
(function (PitchSports) {
|
|
6
|
+
PitchSports["CRICKET"] = "cricket";
|
|
7
|
+
PitchSports["FOOTBALL"] = "football";
|
|
8
|
+
PitchSports["HOCKEY"] = "hockey";
|
|
9
|
+
PitchSports["TENNIS"] = "tennis";
|
|
10
|
+
PitchSports["BASKETBALL"] = "basketball";
|
|
11
|
+
})(PitchSports || (exports.PitchSports = PitchSports = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum PitchStatus {
|
|
2
|
+
ACTIVE = "active",
|
|
3
|
+
DELETE = "delete",
|
|
4
|
+
DEACTIVE = "deactive",
|
|
5
|
+
NEW = "new",
|
|
6
|
+
SETUP_INVALID = "setup_invalid",
|
|
7
|
+
PAYMENT_INVALID = "payment_invalid",
|
|
8
|
+
ACCOUNT_SUSPENDED = "account_suspended"
|
|
9
|
+
}
|
|
10
|
+
export type IPitchStatus = {
|
|
11
|
+
[key in PitchStatus]: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PitchStatus = void 0;
|
|
4
|
+
var PitchStatus;
|
|
5
|
+
(function (PitchStatus) {
|
|
6
|
+
PitchStatus["ACTIVE"] = "active";
|
|
7
|
+
PitchStatus["DELETE"] = "delete";
|
|
8
|
+
PitchStatus["DEACTIVE"] = "deactive";
|
|
9
|
+
PitchStatus["NEW"] = "new";
|
|
10
|
+
PitchStatus["SETUP_INVALID"] = "setup_invalid";
|
|
11
|
+
PitchStatus["PAYMENT_INVALID"] = "payment_invalid";
|
|
12
|
+
PitchStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
|
|
13
|
+
})(PitchStatus || (exports.PitchStatus = PitchStatus = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricingPlanStatus = void 0;
|
|
4
|
+
var PricingPlanStatus;
|
|
5
|
+
(function (PricingPlanStatus) {
|
|
6
|
+
PricingPlanStatus["ACTIVE"] = "active";
|
|
7
|
+
PricingPlanStatus["DEACTIVE"] = "deactive";
|
|
8
|
+
})(PricingPlanStatus || (exports.PricingPlanStatus = PricingPlanStatus = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum RegistrationStatus {
|
|
2
|
+
REGISTRATION = "registration",
|
|
3
|
+
REGISTRATION_INVALID = "registration_invalid",
|
|
4
|
+
REGISTRATION_APPROVED = "registration_approved",
|
|
5
|
+
SETUP_INVALID = "setup_invalid",
|
|
6
|
+
SETUP_DONE = "setup_done",
|
|
7
|
+
PAYMENT_INVALID = "payment_invalid",
|
|
8
|
+
PAYMENT_DONE = "payment_done",
|
|
9
|
+
ACCOUNT_ACTIVE = "account_active",
|
|
10
|
+
ACCOUNT_SUSPENDED = "account_suspended",
|
|
11
|
+
ACTIVE = "active"
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegistrationStatus = void 0;
|
|
4
|
+
var RegistrationStatus;
|
|
5
|
+
(function (RegistrationStatus) {
|
|
6
|
+
RegistrationStatus["REGISTRATION"] = "registration";
|
|
7
|
+
RegistrationStatus["REGISTRATION_INVALID"] = "registration_invalid";
|
|
8
|
+
RegistrationStatus["REGISTRATION_APPROVED"] = "registration_approved";
|
|
9
|
+
RegistrationStatus["SETUP_INVALID"] = "setup_invalid";
|
|
10
|
+
RegistrationStatus["SETUP_DONE"] = "setup_done";
|
|
11
|
+
RegistrationStatus["PAYMENT_INVALID"] = "payment_invalid";
|
|
12
|
+
RegistrationStatus["PAYMENT_DONE"] = "payment_done";
|
|
13
|
+
RegistrationStatus["ACCOUNT_ACTIVE"] = "account_active";
|
|
14
|
+
RegistrationStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
|
|
15
|
+
RegistrationStatus["ACTIVE"] = "active";
|
|
16
|
+
})(RegistrationStatus || (exports.RegistrationStatus = RegistrationStatus = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingOperations = void 0;
|
|
4
|
+
var BookingOperations;
|
|
5
|
+
(function (BookingOperations) {
|
|
6
|
+
BookingOperations["BOOKED"] = "booked";
|
|
7
|
+
BookingOperations["BLOCKED"] = "blocked";
|
|
8
|
+
BookingOperations["DELETE"] = "delete";
|
|
9
|
+
BookingOperations["MODIFY"] = "modify";
|
|
10
|
+
})(BookingOperations || (exports.BookingOperations = BookingOperations = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare enum SubscriptionStatus {
|
|
2
|
+
ACTIVE = "active",
|
|
3
|
+
DEACTIVE = "deactive",
|
|
4
|
+
SUSPENDED = "suspended",
|
|
5
|
+
ONHOLD = "onhold",
|
|
6
|
+
UPGRADE = "upgrade",
|
|
7
|
+
UPGRADED = "upgraded",
|
|
8
|
+
PAYMENT_DONE = "payment_done",
|
|
9
|
+
PAYMENT_PENDING = "payment_pending",
|
|
10
|
+
DEACTIVE_ACCOUNT_SUSPENDED = "deactive_account_suspended",
|
|
11
|
+
DEACTIVE_EXPIRED = "deactive_expired",
|
|
12
|
+
UPGRADE_PAYMENT_PENDING = "upgrade_payment_pending",
|
|
13
|
+
UPGRADE_PAYMENT_DONE = "upgrade_payment_done",
|
|
14
|
+
UPGRADE_RENEW_PAYMENT_PENDING = "upgrade_renew_payment_pending",
|
|
15
|
+
UPGRADE_RENEW_PAYMENT_DONE = "upgrade_renew_payment_done",
|
|
16
|
+
REJECT = "reject",
|
|
17
|
+
SETUP_INVALID = "setup_invalid",
|
|
18
|
+
PAYMENT_INVALID = "payment_invalid",
|
|
19
|
+
ACCOUNT_SUSPENDED = "account_suspended"
|
|
20
|
+
}
|
|
21
|
+
export declare namespace SubscriptionStatus {
|
|
22
|
+
function InProcessStatus(): SubscriptionStatus[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionStatus = void 0;
|
|
4
|
+
var SubscriptionStatus;
|
|
5
|
+
(function (SubscriptionStatus) {
|
|
6
|
+
SubscriptionStatus["ACTIVE"] = "active";
|
|
7
|
+
SubscriptionStatus["DEACTIVE"] = "deactive";
|
|
8
|
+
SubscriptionStatus["SUSPENDED"] = "suspended";
|
|
9
|
+
SubscriptionStatus["ONHOLD"] = "onhold";
|
|
10
|
+
SubscriptionStatus["UPGRADE"] = "upgrade";
|
|
11
|
+
SubscriptionStatus["UPGRADED"] = "upgraded";
|
|
12
|
+
SubscriptionStatus["PAYMENT_DONE"] = "payment_done";
|
|
13
|
+
SubscriptionStatus["PAYMENT_PENDING"] = "payment_pending";
|
|
14
|
+
SubscriptionStatus["DEACTIVE_ACCOUNT_SUSPENDED"] = "deactive_account_suspended";
|
|
15
|
+
SubscriptionStatus["DEACTIVE_EXPIRED"] = "deactive_expired";
|
|
16
|
+
SubscriptionStatus["UPGRADE_PAYMENT_PENDING"] = "upgrade_payment_pending";
|
|
17
|
+
SubscriptionStatus["UPGRADE_PAYMENT_DONE"] = "upgrade_payment_done";
|
|
18
|
+
SubscriptionStatus["UPGRADE_RENEW_PAYMENT_PENDING"] = "upgrade_renew_payment_pending";
|
|
19
|
+
SubscriptionStatus["UPGRADE_RENEW_PAYMENT_DONE"] = "upgrade_renew_payment_done";
|
|
20
|
+
SubscriptionStatus["REJECT"] = "reject";
|
|
21
|
+
SubscriptionStatus["SETUP_INVALID"] = "setup_invalid";
|
|
22
|
+
SubscriptionStatus["PAYMENT_INVALID"] = "payment_invalid";
|
|
23
|
+
SubscriptionStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
|
|
24
|
+
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
26
|
+
(function (SubscriptionStatus) {
|
|
27
|
+
function InProcessStatus() {
|
|
28
|
+
var inProcessStatus = [
|
|
29
|
+
SubscriptionStatus.PAYMENT_DONE,
|
|
30
|
+
SubscriptionStatus.PAYMENT_PENDING,
|
|
31
|
+
SubscriptionStatus.UPGRADE_PAYMENT_DONE,
|
|
32
|
+
SubscriptionStatus.UPGRADE_PAYMENT_PENDING,
|
|
33
|
+
// SubscriptionStatus.ACTIVE,
|
|
34
|
+
];
|
|
35
|
+
return Object.values(SubscriptionStatus).filter(function (status) {
|
|
36
|
+
return inProcessStatus.includes(status);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
SubscriptionStatus.InProcessStatus = InProcessStatus;
|
|
40
|
+
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
|