turf-common 1.0.16 → 1.0.18-beta.0
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/README.md +9 -0
- package/build/@enum.d.ts +17 -0
- package/build/@enum.js +33 -0
- package/build/@model.d.ts +8 -0
- package/build/@model.js +24 -0
- package/build/@type.d.ts +26 -0
- package/build/@type.js +42 -0
- package/build/enums/booking-details-status.enum.d.ts +4 -0
- package/build/enums/booking-details-status.enum.js +8 -0
- package/build/enums/booking-history-operation-type.enum.d.ts +10 -0
- package/build/enums/booking-history-operation-type.enum.js +18 -0
- package/build/enums/configuration-key.enum.d.ts +8 -0
- package/build/enums/configuration-key.enum.js +25 -0
- package/build/enums/cron-jobs-name.enum.d.ts +3 -0
- package/build/enums/cron-jobs-name.enum.js +7 -0
- package/build/enums/cron-jobs-status.enum.d.ts +5 -0
- package/build/enums/cron-jobs-status.enum.js +9 -0
- package/build/enums/faqs-status.enum.d.ts +3 -0
- package/build/enums/faqs-status.enum.js +7 -0
- package/build/enums/organization-status.enum.d.ts +15 -0
- package/build/enums/organization-status.enum.js +31 -0
- package/build/enums/payment-mode.enum.d.ts +4 -0
- package/build/enums/payment-mode.enum.js +8 -0
- package/build/enums/pitch-operation.enum.d.ts +5 -0
- package/build/enums/pitch-operation.enum.js +9 -0
- package/build/enums/pitch-sports.enum.d.ts +7 -0
- package/build/enums/pitch-sports.enum.js +11 -0
- package/build/enums/pitch-status.enum.d.ts +12 -0
- package/build/enums/pitch-status.enum.js +13 -0
- package/build/enums/pricing-plan-status.enum.d.ts +4 -0
- package/build/enums/pricing-plan-status.enum.js +8 -0
- package/build/enums/registration-status-enum.d.ts +12 -0
- package/build/enums/registration-status-enum.js +16 -0
- package/build/enums/subscription-status.enum.d.ts +23 -0
- package/build/enums/subscription-status.enum.js +40 -0
- package/build/enums/transaction-type.enum.d.ts +7 -0
- package/build/enums/transaction-type.enum.js +11 -0
- package/build/enums/user-status.enum.d.ts +11 -0
- package/build/enums/user-status.enum.js +15 -0
- package/build/enums/valid-type.enum.d.ts +6 -0
- package/build/enums/valid-type.enum.js +10 -0
- package/build/index.d.ts +0 -7
- package/build/index.js +0 -7
- package/build/interface/api/activate-subscription.interface.d.ts +3 -0
- package/build/interface/api/booking-availablity-by-pitch.interface.d.ts +28 -0
- package/build/interface/api/booking-availablity-by-pitch.interface.js +2 -0
- package/build/interface/api/cancellation-charges.interface.d.ts +6 -0
- package/build/interface/api/cancellation-charges.interface.js +2 -0
- package/build/interface/api/create-bank-details.interface.d.ts +3 -0
- package/build/interface/api/create-bank-details.interface.js +2 -0
- package/build/interface/api/create-cancellation-policy.interface.d.ts +3 -0
- package/build/interface/api/create-cancellation-policy.interface.js +2 -0
- package/build/interface/api/create-coupon.interface.d.ts +3 -0
- package/build/interface/api/create-coupon.interface.js +2 -0
- package/build/interface/api/create-faqs.interface.d.ts +3 -0
- package/build/interface/api/create-faqs.interface.js +2 -0
- package/build/interface/api/create-organization.interface.d.ts +3 -0
- package/build/interface/api/create-organization.interface.js +2 -0
- package/build/interface/api/create-pricing-plan.interface.d.ts +3 -0
- package/build/interface/api/create-pricing-plan.interface.js +2 -0
- package/build/interface/api/create-recurring-slot-booking.interface.d.ts +3 -0
- package/build/interface/api/create-recurring-slot-booking.interface.js +2 -0
- package/build/interface/api/create-registration-transaction-output.interface.d.ts +2 -0
- package/build/interface/api/create-registration-transaction-output.interface.js +2 -0
- package/build/interface/api/create-subscription.interface.d.ts +3 -0
- package/build/interface/api/create-subscription.interface.js +2 -0
- package/build/interface/api/create-turf.interface.d.ts +14 -0
- package/build/interface/api/create-turf.interface.js +2 -0
- package/build/interface/api/delete-bank-details-by-id.interface.d.ts +3 -0
- package/build/interface/api/delete-bank-details-by-id.interface.js +2 -0
- package/build/interface/api/delete-booking-by-codes-response.interface.d.ts +7 -0
- package/build/interface/api/delete-booking-by-codes-response.interface.js +2 -0
- package/build/interface/api/delete-booking-by-codes.interface.d.ts +7 -0
- package/build/interface/api/delete-booking-by-codes.interface.js +2 -0
- package/build/interface/api/delete-booking-info.interface.d.ts +3 -0
- package/build/interface/api/delete-booking-info.interface.js +2 -0
- package/build/interface/api/delete-pricing-plan.interface.d.ts +3 -0
- package/build/interface/api/delete-pricing-plan.interface.js +2 -0
- package/build/interface/api/get-all-booking-of-turf.interface.d.ts +16 -0
- package/build/interface/api/get-all-booking-of-turf.interface.js +2 -0
- package/build/interface/api/get-bank-detail-by-id.interface.d.ts +3 -0
- package/build/interface/api/get-bank-detail-by-id.interface.js +2 -0
- package/build/interface/api/get-bank-detail-entities.interface.d.ts +3 -0
- package/build/interface/api/get-bank-detail-entities.interface.js +2 -0
- package/build/interface/api/get-booking-by-organization-id.interface.d.ts +19 -0
- package/build/interface/api/get-booking-by-organization-id.interface.js +2 -0
- package/build/interface/api/get-booking-customers.interface.d.ts +3 -0
- package/build/interface/api/get-booking-customers.interface.js +2 -0
- package/build/interface/api/get-booking-details-by-id.interface.d.ts +3 -0
- package/build/interface/api/get-booking-details-by-id.interface.js +2 -0
- package/build/interface/api/get-booking-info.interface.d.ts +11 -0
- package/build/interface/api/get-booking-info.interface.js +2 -0
- package/build/interface/api/get-cancellation-policy-entity-by-org-id.interface.d.ts +9 -0
- package/build/interface/api/get-cancellation-policy-entity-by-org-id.interface.js +2 -0
- package/build/interface/api/get-collection.interface.d.ts +12 -0
- package/build/interface/api/get-collection.interface.js +2 -0
- package/build/interface/api/get-cron-job-by-date-range-name-status.interface.d.ts +3 -0
- package/build/interface/api/get-cron-job-by-date-range-name-status.interface.js +2 -0
- package/build/interface/api/get-current-subscription.interface.d.ts +5 -0
- package/build/interface/api/get-current-subscription.interface.js +2 -0
- package/build/interface/api/get-organization-by-orgid.interface.d.ts +21 -0
- package/build/interface/api/get-organization-by-orgid.interface.js +2 -0
- package/build/interface/api/get-price-by-organization-response.interface.d.ts +6 -0
- package/build/interface/api/get-price-by-organization-response.interface.js +2 -0
- package/build/interface/api/get-price-entity.types.d.ts +5 -0
- package/build/interface/api/get-price-entity.types.js +2 -0
- package/build/interface/api/get-price-query.interface.d.ts +7 -0
- package/build/interface/api/get-price-query.interface.js +2 -0
- package/build/interface/api/get-pricing-plan-by-date-response.interface.d.ts +23 -0
- package/build/interface/api/get-pricing-plan-by-date-response.interface.js +2 -0
- package/build/interface/api/get-pricing-plan-by-id.interface.d.ts +3 -0
- package/build/interface/api/get-pricing-plan-by-id.interface.js +2 -0
- package/build/interface/api/get-pricing-plan-entities.interface.d.ts +3 -0
- package/build/interface/api/get-pricing-plan-entities.interface.js +2 -0
- package/build/interface/api/get-registration-by-id.types.d.ts +38 -0
- package/build/interface/api/get-registration-by-id.types.js +2 -0
- package/build/interface/api/get-registration-entities.interface.d.ts +36 -0
- package/build/interface/api/get-registration-entities.interface.js +2 -0
- package/build/interface/api/get-subscription-by-org-id.interface.d.ts +3 -0
- package/build/interface/api/get-subscription-by-org-id.interface.js +2 -0
- package/build/interface/api/get-subscription-entities.interface.d.ts +3 -0
- package/build/interface/api/get-subscription-entities.interface.js +2 -0
- package/build/interface/api/get-turf-by-organization.interface.d.ts +3 -0
- package/build/interface/api/get-turf-by-organization.interface.js +2 -0
- package/build/interface/api/get-turf-entity-response.interface.d.ts +3 -0
- package/build/interface/api/get-turf-entity-response.interface.js +2 -0
- package/build/interface/api/index.d.ts +64 -0
- package/build/interface/api/index.js +82 -0
- package/build/interface/api/list-of-coupons.interface.d.ts +8 -0
- package/build/interface/api/list-of-coupons.interface.js +2 -0
- package/build/interface/api/login-response.interface.d.ts +23 -0
- package/build/interface/api/login-response.interface.js +2 -0
- package/build/interface/api/one-slot-booking.interface.d.ts +3 -0
- package/build/interface/api/one-slot-booking.interface.js +2 -0
- package/build/interface/api/renew-subscription.interface.d.ts +3 -0
- package/build/interface/api/renew-subscription.interface.js +2 -0
- package/build/interface/api/setup-registration.interface.d.ts +5 -0
- package/build/interface/api/setup-registration.interface.js +2 -0
- package/build/interface/api/staff-member-list.interface.d.ts +10 -0
- package/build/interface/api/staff-member-list.interface.js +2 -0
- package/build/interface/api/update-bank-detail.interface.d.ts +3 -0
- package/build/interface/api/update-bank-detail.interface.js +2 -0
- package/build/interface/api/update-booking-by-code-response.d.ts +7 -0
- package/build/interface/api/update-booking-by-code-response.interface.d.ts +7 -0
- package/build/interface/api/update-booking-by-code-response.interface.js +2 -0
- package/build/interface/api/update-booking-by-code-response.js +2 -0
- package/build/interface/api/update-booking-by-code.interface.d.ts +15 -0
- package/build/interface/api/update-booking-by-code.interface.js +2 -0
- package/build/interface/api/update-configuration.interface.d.ts +9 -0
- package/build/interface/api/update-configuration.interface.js +2 -0
- package/build/interface/api/update-coupon.interface.d.ts +3 -0
- package/build/interface/api/update-coupon.interface.js +2 -0
- package/build/interface/api/update-faqs-steps.interface.d.ts +3 -0
- package/build/interface/api/update-faqs-steps.interface.js +2 -0
- package/build/interface/api/update-faqs.interface.d.ts +3 -0
- package/build/interface/api/update-faqs.interface.js +2 -0
- package/build/interface/api/update-organization.interface.d.ts +6 -0
- package/build/interface/api/update-organization.interface.js +2 -0
- package/build/interface/api/update-pricing-plan-by-id.interface.d.ts +7 -0
- package/build/interface/api/update-pricing-plan-by-id.interface.js +2 -0
- package/build/interface/api/update-recurring-booking.interface.d.ts +37 -0
- package/build/interface/api/update-recurring-booking.interface.js +2 -0
- package/build/interface/api/update-registration-entities.interface.d.ts +3 -0
- package/build/interface/api/update-registration-entities.interface.js +2 -0
- package/build/interface/api/update-staff-member.interface.d.ts +23 -0
- package/build/interface/api/update-staff-member.interface.js +2 -0
- package/build/interface/api/update-subscription.interface.d.ts +4 -0
- package/build/interface/api/update-subscription.interface.js +2 -0
- package/build/interface/api/update-turf-transaction-output.d.ts +20 -0
- package/build/interface/api/update-turf-transaction-output.js +2 -0
- package/build/interface/api/upgrade-renew-subscription.interface.d.ts +3 -0
- package/build/interface/api/upgrade-renew-subscription.interface.js +2 -0
- package/build/interface/api/upgrade-subscription.interface.d.ts +3 -0
- package/build/interface/api/upgrade-subscription.interface.js +2 -0
- package/build/interface/api/userentity-without-password.interface.d.ts +3 -0
- package/build/interface/api/userentity-without-password.interface.js +2 -0
- package/build/interface/billing-cycle-dto.interface.d.ts +8 -0
- package/build/interface/billing-cycle-dto.interface.js +2 -0
- package/build/interface/billing-cycle.interface.d.ts +7 -0
- package/build/interface/billing-cycle.interface.js +2 -0
- package/build/interface/booking-details-with-code.interface.d.ts +31 -0
- package/build/interface/booking-details-with-code.interface.js +2 -0
- package/build/interface/controller.interface.d.ts +6 -0
- package/build/interface/controller.interface.js +2 -0
- package/build/interface/dto/delete-booking-by-codes-dto.interface.d.ts +7 -0
- package/build/interface/dto/delete-booking-by-codes-dto.interface.js +2 -0
- package/build/interface/dto/update-booking-by-code-dto.interface.d.ts +15 -0
- package/build/interface/dto/update-booking-by-code-dto.interface.js +2 -0
- package/build/interface/entity/bank-details-entity.interface.d.ts +12 -0
- package/build/interface/entity/bank-details-entity.interface.js +2 -0
- package/build/interface/entity/booking-cancellation-entity.interface.d.ts +32 -0
- package/build/interface/entity/booking-cancellation-entity.interface.js +2 -0
- package/build/interface/entity/booking-customer-entity.interface.d.ts +8 -0
- package/build/interface/entity/booking-customer-entity.interface.js +2 -0
- package/build/interface/entity/booking-details-entity.interface.d.ts +27 -0
- package/build/interface/entity/booking-details-entity.interface.js +2 -0
- package/build/interface/entity/booking-history-entity.interface.d.ts +31 -0
- package/build/interface/entity/booking-history-entity.interface.js +2 -0
- package/build/interface/entity/booking-payment-history-entity.interface.d.ts +13 -0
- package/build/interface/entity/booking-payment-history-entity.interface.js +2 -0
- package/build/interface/entity/bookings-entity.interface.d.ts +6 -0
- package/build/interface/entity/bookings-entity.interface.js +2 -0
- package/build/interface/entity/cancellation-policy-entity.interface.d.ts +8 -0
- package/build/interface/entity/cancellation-policy-entity.interface.js +2 -0
- package/build/interface/entity/configurations-entity.interface.d.ts +8 -0
- package/build/interface/entity/configurations-entity.interface.js +2 -0
- package/build/interface/entity/coupon.entity.interface.d.ts +10 -0
- package/build/interface/entity/coupon.entity.interface.js +2 -0
- package/build/interface/entity/cron-jobs-entity.interface.d.ts +12 -0
- package/build/interface/entity/cron-jobs-entity.interface.js +2 -0
- package/build/interface/entity/entity-audit-column.interface.d.ts +12 -0
- package/build/interface/entity/entity-audit-column.interface.js +9 -0
- package/build/interface/entity/faqs-entity.interface.d.ts +10 -0
- package/build/interface/entity/faqs-entity.interface.js +2 -0
- package/build/interface/entity/index.d.ts +23 -0
- package/build/interface/entity/index.js +39 -0
- package/build/interface/entity/organization-entity.interface.d.ts +23 -0
- package/build/interface/entity/organization-entity.interface.js +2 -0
- package/build/interface/entity/pitch-entity.interface.d.ts +9 -0
- package/build/interface/entity/pitch-entity.interface.js +2 -0
- package/build/interface/entity/price-entity.interface.d.ts +5 -0
- package/build/interface/entity/price-entity.interface.js +2 -0
- package/build/interface/entity/pricing-plan-entity.interface.d.ts +16 -0
- package/build/interface/entity/pricing-plan-entity.interface.js +2 -0
- package/build/interface/entity/registration-entity.interface.d.ts +12 -0
- package/build/interface/entity/registration-entity.interface.js +2 -0
- package/build/interface/entity/subscription-entity.interface.d.ts +20 -0
- package/build/interface/entity/subscription-entity.interface.js +2 -0
- package/build/interface/entity/subscription-pitch-mapping.interface.d.ts +7 -0
- package/build/interface/entity/subscription-pitch-mapping.interface.js +3 -0
- package/build/interface/entity/turf-entity.interface.d.ts +17 -0
- package/build/interface/entity/turf-entity.interface.js +2 -0
- package/build/interface/entity/user-entity.interface.d.ts +25 -0
- package/build/interface/entity/user-entity.interface.js +2 -0
- package/build/interface/get-booking-by-id.interface.d.ts +56 -0
- package/build/interface/get-booking-by-id.interface.js +2 -0
- package/build/interface/get-pricing-plan-by-date-response.interface.d.ts +23 -0
- package/build/interface/get-pricing-plan-by-date-response.interface.js +2 -0
- package/build/interface/get-turf-entity.interface.d.ts +34 -0
- package/build/interface/get-turf-entity.interface.js +2 -0
- package/build/interface/model/booking-details-model.interface.d.ts +5 -0
- package/build/interface/model/booking-details-model.interface.js +2 -0
- package/build/interface/model/booking-entity-model.interface.d.ts +8 -0
- package/build/interface/model/booking-entity-model.interface.js +2 -0
- package/build/interface/model/cancellation-policy-model.interface.d.ts +4 -0
- package/build/interface/model/cancellation-policy-model.interface.js +2 -0
- package/build/interface/model/charge-model.interface.js +2 -0
- package/build/interface/model/configuration-model.interface.d.ts +4 -0
- package/build/interface/model/configuration-model.interface.js +2 -0
- package/build/interface/model/index.d.ts +10 -0
- package/build/interface/model/index.js +26 -0
- package/build/interface/model/price-model.interface.d.ts +3 -0
- package/build/interface/model/price-model.interface.js +2 -0
- package/build/interface/model/pricing-plan-entity-model.interface.d.ts +13 -0
- package/build/interface/model/pricing-plan-entity-model.interface.js +2 -0
- package/build/interface/model/pricing-plan-model.interface.d.ts +15 -0
- package/build/interface/model/pricing-plan-model.interface.js +2 -0
- package/build/interface/model/turf-model.interface.d.ts +7 -0
- package/build/interface/model/turf-model.interface.js +2 -0
- package/build/interface/model/user-model.interface.d.ts +3 -0
- package/build/interface/model/user-model.interface.js +2 -0
- package/build/interface/pitch-slab-dto.interface.d.ts +8 -0
- package/build/interface/pitch-slab-dto.interface.js +2 -0
- package/build/interface/pitch-slab.interface.d.ts +5 -0
- package/build/interface/pitch-slab.interface.js +2 -0
- package/build/interface/pricing-plan.interface.d.ts +15 -0
- package/build/interface/pricing-plan.interface.js +2 -0
- package/build/interface/upload-multer-file.interface.d.ts +9 -0
- package/build/interface/upload-multer-file.interface.js +2 -0
- package/build/interface/user-info-dto.interface.d.ts +16 -0
- package/build/interface/user-info-dto.interface.js +2 -0
- package/build/interface/without-token-registration-entity.types.d.ts +3 -0
- package/build/interface/without-token-registration-entity.types.js +2 -0
- package/build/models/billing-cycle-model.d.ts +10 -0
- package/build/models/billing-cycle-model.js +20 -0
- package/build/models/charge-model.d.ts +1 -1
- package/build/models/entity/booking-details-model.d.ts +39 -0
- package/build/models/entity/booking-details-model.js +69 -0
- package/build/models/entity/booking-entity-model.d.ts +21 -0
- package/build/models/entity/booking-entity-model.js +47 -0
- package/build/models/entity/booking-payment-history-model.d.ts +20 -0
- package/build/models/entity/booking-payment-history-model.js +36 -0
- package/build/models/entity/cancellation-policy-model.d.ts +18 -0
- package/build/models/entity/cancellation-policy-model.js +32 -0
- package/build/models/entity/configuration-model.d.ts +16 -0
- package/build/models/entity/configuration-model.js +17 -0
- package/build/models/entity/index.d.ts +10 -0
- package/build/models/entity/index.js +26 -0
- package/build/models/entity/price-model.d.ts +11 -0
- package/build/models/entity/price-model.js +15 -0
- package/build/models/entity/pricing-plan-entity-model.d.ts +47 -0
- package/build/models/entity/pricing-plan-entity-model.js +128 -0
- package/build/models/entity/subscription-model.d.ts +30 -0
- package/build/models/entity/subscription-model.js +51 -0
- package/build/models/entity/turf-model.d.ts +34 -0
- package/build/models/entity/turf-model.js +88 -0
- package/build/models/entity/user-model.d.ts +32 -0
- package/build/models/entity/user-model.js +19 -0
- package/build/models/pitch-slab-model.d.ts +9 -0
- package/build/models/pitch-slab-model.js +21 -0
- package/build/models/pricing-plan-model.d.ts +24 -0
- package/build/models/pricing-plan-model.js +67 -0
- package/build/models/subscribed-pricing-plan-model.d.ts +26 -0
- package/build/models/subscribed-pricing-plan-model.js +88 -0
- package/build/types/bookingdetails-with-booking.type.d.ts +34 -0
- package/build/types/bookingdetails-with-booking.type.js +2 -0
- package/build/types/date-wise-payment-history-data.types.d.ts +9 -0
- package/build/types/date-wise-payment-history-data.types.js +2 -0
- package/package.json +33 -27
- /package/build/interface/{charge-model.interface.js → api/activate-subscription.interface.js} +0 -0
- /package/build/interface/{charge-model.interface.d.ts → model/charge-model.interface.d.ts} +0 -0
package/README.md
CHANGED
package/build/@enum.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from "./enums/booking-details-status.enum";
|
|
2
|
+
export * from "./enums/booking-history-operation-type.enum";
|
|
3
|
+
export * from "./enums/configuration-key.enum";
|
|
4
|
+
export * from "./enums/cron-jobs-name.enum";
|
|
5
|
+
export * from "./enums/cron-jobs-status.enum";
|
|
6
|
+
export * from "./enums/faqs-status.enum";
|
|
7
|
+
export * from "./enums/modification-discount-policy.enum";
|
|
8
|
+
export * from "./enums/organization-status.enum";
|
|
9
|
+
export * from "./enums/payment-mode.enum";
|
|
10
|
+
export * from "./enums/pitch-status.enum";
|
|
11
|
+
export * from "./enums/pricing-plan-status.enum";
|
|
12
|
+
export * from "./enums/registration-status-enum";
|
|
13
|
+
export * from "./enums/subscription-status.enum";
|
|
14
|
+
export * from "./enums/transaction-type.enum";
|
|
15
|
+
export * from "./enums/user-status.enum";
|
|
16
|
+
export * from "./enums/valid-type.enum";
|
|
17
|
+
export * from "./enums/modification-discount-policy.enum";
|
package/build/@enum.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
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/booking-details-status.enum"), exports);
|
|
18
|
+
__exportStar(require("./enums/booking-history-operation-type.enum"), exports);
|
|
19
|
+
__exportStar(require("./enums/configuration-key.enum"), exports);
|
|
20
|
+
__exportStar(require("./enums/cron-jobs-name.enum"), exports);
|
|
21
|
+
__exportStar(require("./enums/cron-jobs-status.enum"), exports);
|
|
22
|
+
__exportStar(require("./enums/faqs-status.enum"), exports);
|
|
23
|
+
__exportStar(require("./enums/modification-discount-policy.enum"), exports);
|
|
24
|
+
__exportStar(require("./enums/organization-status.enum"), exports);
|
|
25
|
+
__exportStar(require("./enums/payment-mode.enum"), exports);
|
|
26
|
+
__exportStar(require("./enums/pitch-status.enum"), exports);
|
|
27
|
+
__exportStar(require("./enums/pricing-plan-status.enum"), exports);
|
|
28
|
+
__exportStar(require("./enums/registration-status-enum"), exports);
|
|
29
|
+
__exportStar(require("./enums/subscription-status.enum"), exports);
|
|
30
|
+
__exportStar(require("./enums/transaction-type.enum"), exports);
|
|
31
|
+
__exportStar(require("./enums/user-status.enum"), exports);
|
|
32
|
+
__exportStar(require("./enums/valid-type.enum"), exports);
|
|
33
|
+
__exportStar(require("./enums/modification-discount-policy.enum"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./models/booking-code-model";
|
|
2
|
+
export * from "./models/charge-model";
|
|
3
|
+
export * from "./models/time-slot-model";
|
|
4
|
+
export * from "./models/billing-cycle-model";
|
|
5
|
+
export * from "./models/pitch-slab-model";
|
|
6
|
+
export * from "./models/pricing-plan-model";
|
|
7
|
+
export * from "./models/subscribed-pricing-plan-model";
|
|
8
|
+
export * from "./models/entity";
|
package/build/@model.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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("./models/booking-code-model"), exports);
|
|
18
|
+
__exportStar(require("./models/charge-model"), exports);
|
|
19
|
+
__exportStar(require("./models/time-slot-model"), exports);
|
|
20
|
+
__exportStar(require("./models/billing-cycle-model"), exports);
|
|
21
|
+
__exportStar(require("./models/pitch-slab-model"), exports);
|
|
22
|
+
__exportStar(require("./models/pricing-plan-model"), exports);
|
|
23
|
+
__exportStar(require("./models/subscribed-pricing-plan-model"), exports);
|
|
24
|
+
__exportStar(require("./models/entity"), exports);
|
package/build/@type.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from "./types/app-badrequest-exception.type";
|
|
2
|
+
export * from "./types/booking-modification.type";
|
|
3
|
+
export * from "./types/bookingdetails-with-booking.type";
|
|
4
|
+
export * from "./types/date-wise-payment-history-data.types";
|
|
5
|
+
export * from "./types/app-badrequest-exception.type";
|
|
6
|
+
export * from "./types/booking-modification.type";
|
|
7
|
+
export * from "./interface/get-booking-codes-per-thirty-min.interface";
|
|
8
|
+
export * from "./interface/get-turf-entity.interface";
|
|
9
|
+
export * from "./interface/entity";
|
|
10
|
+
export * from "./interface/model";
|
|
11
|
+
export * from "./interface/billing-cycle.interface";
|
|
12
|
+
export * from "./interface/get-booking-codes-per-thirty-min.interface";
|
|
13
|
+
export * from "./interface/get-pricing-plan-by-date-response.interface";
|
|
14
|
+
export * from "./interface/get-turf-entity.interface";
|
|
15
|
+
export * from "./interface/pitch-slab.interface";
|
|
16
|
+
export * from "./interface/pricing-plan.interface";
|
|
17
|
+
export * from "./interface/entity/entity-audit-column.interface";
|
|
18
|
+
export * from "./interface/api";
|
|
19
|
+
export * from "./interface/billing-cycle-dto.interface";
|
|
20
|
+
export * from "./interface/booking-details-with-code.interface";
|
|
21
|
+
export * from "./interface/controller.interface";
|
|
22
|
+
export * from "./interface/get-booking-by-id.interface";
|
|
23
|
+
export * from "./interface/pitch-slab-dto.interface";
|
|
24
|
+
export * from "./interface/upload-multer-file.interface";
|
|
25
|
+
export * from "./interface/user-info-dto.interface";
|
|
26
|
+
export * from "./interface/without-token-registration-entity.types";
|
package/build/@type.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
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("./types/app-badrequest-exception.type"), exports);
|
|
18
|
+
__exportStar(require("./types/booking-modification.type"), exports);
|
|
19
|
+
__exportStar(require("./types/bookingdetails-with-booking.type"), exports);
|
|
20
|
+
__exportStar(require("./types/date-wise-payment-history-data.types"), exports);
|
|
21
|
+
__exportStar(require("./types/app-badrequest-exception.type"), exports);
|
|
22
|
+
__exportStar(require("./types/booking-modification.type"), exports);
|
|
23
|
+
__exportStar(require("./interface/get-booking-codes-per-thirty-min.interface"), exports);
|
|
24
|
+
__exportStar(require("./interface/get-turf-entity.interface"), exports);
|
|
25
|
+
__exportStar(require("./interface/entity"), exports);
|
|
26
|
+
__exportStar(require("./interface/model"), exports);
|
|
27
|
+
__exportStar(require("./interface/billing-cycle.interface"), exports);
|
|
28
|
+
__exportStar(require("./interface/get-booking-codes-per-thirty-min.interface"), exports);
|
|
29
|
+
__exportStar(require("./interface/get-pricing-plan-by-date-response.interface"), exports);
|
|
30
|
+
__exportStar(require("./interface/get-turf-entity.interface"), exports);
|
|
31
|
+
__exportStar(require("./interface/pitch-slab.interface"), exports);
|
|
32
|
+
__exportStar(require("./interface/pricing-plan.interface"), exports);
|
|
33
|
+
__exportStar(require("./interface/entity/entity-audit-column.interface"), exports);
|
|
34
|
+
__exportStar(require("./interface/api"), exports);
|
|
35
|
+
__exportStar(require("./interface/billing-cycle-dto.interface"), exports);
|
|
36
|
+
__exportStar(require("./interface/booking-details-with-code.interface"), exports);
|
|
37
|
+
__exportStar(require("./interface/controller.interface"), exports);
|
|
38
|
+
__exportStar(require("./interface/get-booking-by-id.interface"), exports);
|
|
39
|
+
__exportStar(require("./interface/pitch-slab-dto.interface"), exports);
|
|
40
|
+
__exportStar(require("./interface/upload-multer-file.interface"), exports);
|
|
41
|
+
__exportStar(require("./interface/user-info-dto.interface"), exports);
|
|
42
|
+
__exportStar(require("./interface/without-token-registration-entity.types"), exports);
|
|
@@ -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,10 @@
|
|
|
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
|
+
}
|
|
10
|
+
export declare const operationTypes: BookingHistoryOperationType[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.operationTypes = 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 || (exports.BookingHistoryOperationType = BookingHistoryOperationType = {}));
|
|
14
|
+
exports.operationTypes = [
|
|
15
|
+
BookingHistoryOperationType.DELETE,
|
|
16
|
+
BookingHistoryOperationType.REFUND,
|
|
17
|
+
BookingHistoryOperationType.PAYMENT,
|
|
18
|
+
];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CronJobsNames } from './cron-jobs-name.enum';
|
|
2
|
+
export declare enum ConfigurationKey {
|
|
3
|
+
SEND_DAILY_COLLECTION = "send_daily_collection"
|
|
4
|
+
}
|
|
5
|
+
export declare namespace ConfigurationKey {
|
|
6
|
+
function CronJobsConfigurationsKeys(key: ConfigurationKey): boolean;
|
|
7
|
+
function getCronJobName(configurationKey: ConfigurationKey): CronJobsNames;
|
|
8
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 || (exports.ConfigurationKey = ConfigurationKey = {}));
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
10
|
+
(function (ConfigurationKey) {
|
|
11
|
+
function CronJobsConfigurationsKeys(key) {
|
|
12
|
+
if (getCronJobName(key))
|
|
13
|
+
return true;
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
ConfigurationKey.CronJobsConfigurationsKeys = CronJobsConfigurationsKeys;
|
|
17
|
+
function getCronJobName(configurationKey) {
|
|
18
|
+
var _a;
|
|
19
|
+
var cronJobConfigurationKeyMapping = (_a = {},
|
|
20
|
+
_a[ConfigurationKey.SEND_DAILY_COLLECTION] = cron_jobs_name_enum_1.CronJobsNames.SEND_DAILY_COLLECTION,
|
|
21
|
+
_a);
|
|
22
|
+
return cronJobConfigurationKeyMapping[configurationKey];
|
|
23
|
+
}
|
|
24
|
+
ConfigurationKey.getCronJobName = getCronJobName;
|
|
25
|
+
})(ConfigurationKey || (exports.ConfigurationKey = ConfigurationKey = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
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 || (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,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,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,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 = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum BookingPaymentTransactionType {
|
|
2
|
+
CUSTOMER_PAYMENT = "customer_payment",
|
|
3
|
+
CUSTOMER_REFUND = "customer_refund",
|
|
4
|
+
CUSTOMER_REFUND_INPROCESS = "customer_refund_inprocess",
|
|
5
|
+
CUSTOMER_REFUND_REJECT = "customer_refund_reject",
|
|
6
|
+
CUSTOMER_CANCELLATION = "customer_cancellation"
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingPaymentTransactionType = void 0;
|
|
4
|
+
var BookingPaymentTransactionType;
|
|
5
|
+
(function (BookingPaymentTransactionType) {
|
|
6
|
+
BookingPaymentTransactionType["CUSTOMER_PAYMENT"] = "customer_payment";
|
|
7
|
+
BookingPaymentTransactionType["CUSTOMER_REFUND"] = "customer_refund";
|
|
8
|
+
BookingPaymentTransactionType["CUSTOMER_REFUND_INPROCESS"] = "customer_refund_inprocess";
|
|
9
|
+
BookingPaymentTransactionType["CUSTOMER_REFUND_REJECT"] = "customer_refund_reject";
|
|
10
|
+
BookingPaymentTransactionType["CUSTOMER_CANCELLATION"] = "customer_cancellation";
|
|
11
|
+
})(BookingPaymentTransactionType || (exports.BookingPaymentTransactionType = BookingPaymentTransactionType = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum UserStatus {
|
|
2
|
+
ACTIVE = "active",
|
|
3
|
+
DEACTIVE = "deactive",
|
|
4
|
+
SUSPENDED = "suspended",
|
|
5
|
+
REGISTRATION_APPROVED = "registration_approved",
|
|
6
|
+
SETUP_INVALID = "setup_invalid",
|
|
7
|
+
PAYMENT_INVALID = "payment_invalid",
|
|
8
|
+
ACCOUNT_SUSPENDED = "account_suspended",
|
|
9
|
+
SETUP_DONE = "setup_done",
|
|
10
|
+
PAYMENT_DONE = "payment_done"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserStatus = void 0;
|
|
4
|
+
var UserStatus;
|
|
5
|
+
(function (UserStatus) {
|
|
6
|
+
UserStatus["ACTIVE"] = "active";
|
|
7
|
+
UserStatus["DEACTIVE"] = "deactive";
|
|
8
|
+
UserStatus["SUSPENDED"] = "suspended";
|
|
9
|
+
UserStatus["REGISTRATION_APPROVED"] = "registration_approved";
|
|
10
|
+
UserStatus["SETUP_INVALID"] = "setup_invalid";
|
|
11
|
+
UserStatus["PAYMENT_INVALID"] = "payment_invalid";
|
|
12
|
+
UserStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
|
|
13
|
+
UserStatus["SETUP_DONE"] = "setup_done";
|
|
14
|
+
UserStatus["PAYMENT_DONE"] = "payment_done";
|
|
15
|
+
})(UserStatus || (exports.UserStatus = UserStatus = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserType = void 0;
|
|
4
|
+
var UserType;
|
|
5
|
+
(function (UserType) {
|
|
6
|
+
UserType["STAFF"] = "staff";
|
|
7
|
+
UserType["OWNER"] = "owner";
|
|
8
|
+
UserType["SUPERADMIN"] = "superadmin";
|
|
9
|
+
UserType["BOT_USER"] = "bot_user";
|
|
10
|
+
})(UserType || (exports.UserType = UserType = {}));
|
package/build/index.d.ts
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
export * from "./models/booking-code-model";
|
|
2
|
-
export * from "./models/charge-model";
|
|
3
|
-
export * from "./models/time-slot-model";
|
|
4
1
|
export * from "./exceptions/app-badrequest.exception";
|
|
5
|
-
export * from "./types/app-badrequest-exception.type";
|
|
6
|
-
export * from "./types/booking-modification.type";
|
|
7
|
-
export * from "./interface/get-booking-codes-per-thirty-min.interface";
|
|
8
|
-
export * from "./enums/modification-discount-policy.enum";
|