turf-common 1.0.16 → 1.0.17
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-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/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 +19 -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 +3 -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 +3 -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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BookingCode } from "../../models/booking-code-model";
|
|
2
|
+
import { IBookingsEntity } from "../entity/bookings-entity.interface";
|
|
3
|
+
export interface IBookingsEntityModel extends IBookingsEntity {
|
|
4
|
+
getTotalCost(): number;
|
|
5
|
+
getBookingTimeInMinutes(): number;
|
|
6
|
+
isTimeExtended(newBookingEntities: IBookingsEntity[]): boolean;
|
|
7
|
+
getBookingCode(): BookingCode;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./booking-details-model.interface";
|
|
2
|
+
export * from "./booking-entity-model.interface";
|
|
3
|
+
export * from "./cancellation-policy-model.interface";
|
|
4
|
+
export * from "./charge-model.interface";
|
|
5
|
+
export * from "./configuration-model.interface";
|
|
6
|
+
export * from "./price-model.interface";
|
|
7
|
+
export * from "./pricing-plan-entity-model.interface";
|
|
8
|
+
export * from "./pricing-plan-model.interface";
|
|
9
|
+
export * from "./turf-model.interface";
|
|
10
|
+
export * from "./user-model.interface";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./booking-details-model.interface"), exports);
|
|
18
|
+
__exportStar(require("./booking-entity-model.interface"), exports);
|
|
19
|
+
__exportStar(require("./cancellation-policy-model.interface"), exports);
|
|
20
|
+
__exportStar(require("./charge-model.interface"), exports);
|
|
21
|
+
__exportStar(require("./configuration-model.interface"), exports);
|
|
22
|
+
__exportStar(require("./price-model.interface"), exports);
|
|
23
|
+
__exportStar(require("./pricing-plan-entity-model.interface"), exports);
|
|
24
|
+
__exportStar(require("./pricing-plan-model.interface"), exports);
|
|
25
|
+
__exportStar(require("./turf-model.interface"), exports);
|
|
26
|
+
__exportStar(require("./user-model.interface"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PricingPlanModel } from "../../models/pricing-plan-model";
|
|
2
|
+
import { IPricingPlanEntity } from "../entity/pricing-plan-entity.interface";
|
|
3
|
+
import { GetPricingPlanByDateResponse } from "../get-pricing-plan-by-date-response.interface";
|
|
4
|
+
import { IPitchSlab } from "../pitch-slab.interface";
|
|
5
|
+
export interface IPricingPlanEntityModel extends IPricingPlanEntity {
|
|
6
|
+
getBillingCycleKeys(): string[];
|
|
7
|
+
toModel(): PricingPlanModel;
|
|
8
|
+
arrayToIndexedObject<T>(arr: T[]): {
|
|
9
|
+
[key: string]: T;
|
|
10
|
+
};
|
|
11
|
+
toObject(): GetPricingPlanByDateResponse;
|
|
12
|
+
toPitchSlabs(): IPitchSlab[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IBillingCycleModel } from "../billing-cycle.interface";
|
|
2
|
+
import { IPitchSlab } from "../pitch-slab.interface";
|
|
3
|
+
export interface IPringPlanModel {
|
|
4
|
+
id: number;
|
|
5
|
+
effective_from_date: number;
|
|
6
|
+
effective_to_date: number;
|
|
7
|
+
base_price: number;
|
|
8
|
+
unit: string;
|
|
9
|
+
pitch_slab: {
|
|
10
|
+
[key: string]: IPitchSlab;
|
|
11
|
+
};
|
|
12
|
+
billing_cycle: {
|
|
13
|
+
[key: string]: IBillingCycleModel;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IPitchStatus } from "../../enums/pitch-status.enum";
|
|
2
|
+
import { ITurfEntity } from "../entity/turf-entity.interface";
|
|
3
|
+
import { ITurf } from "../get-turf-entity.interface";
|
|
4
|
+
export interface ITurfModel extends ITurfEntity {
|
|
5
|
+
getPitchStatusCount(): IPitchStatus;
|
|
6
|
+
getModifiedTurfEntity(): ITurf;
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IBillingCycleModel } from "./billing-cycle.interface";
|
|
2
|
+
import { IPitchSlab } from "./pitch-slab.interface";
|
|
3
|
+
export interface IPricingPlanModel {
|
|
4
|
+
id: number;
|
|
5
|
+
effective_from_date: number;
|
|
6
|
+
effective_to_date: number;
|
|
7
|
+
base_price: number;
|
|
8
|
+
unit: string;
|
|
9
|
+
pitch_slab: {
|
|
10
|
+
[key: string]: IPitchSlab;
|
|
11
|
+
};
|
|
12
|
+
billing_cycle: {
|
|
13
|
+
[key: string]: IBillingCycleModel;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UserStatus } from "../@enum";
|
|
2
|
+
import { IUploadedMulterFile } from "./upload-multer-file.interface";
|
|
3
|
+
export interface IUserInfo {
|
|
4
|
+
id?: number;
|
|
5
|
+
name?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
phone?: number;
|
|
8
|
+
operation?: string;
|
|
9
|
+
password?: string;
|
|
10
|
+
status?: UserStatus;
|
|
11
|
+
isEmailVerified?: boolean;
|
|
12
|
+
isMobileVerified?: boolean;
|
|
13
|
+
isAccountVerified?: boolean;
|
|
14
|
+
requiredNewPassword?: boolean;
|
|
15
|
+
image?: IUploadedMulterFile | string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IBillingCycleModel } from "../interface/billing-cycle.interface";
|
|
2
|
+
export declare class BillingCycleModel implements IBillingCycleModel {
|
|
3
|
+
from: number;
|
|
4
|
+
to: number;
|
|
5
|
+
discount: string;
|
|
6
|
+
name: string;
|
|
7
|
+
key: string;
|
|
8
|
+
constructor(data: IBillingCycleModel);
|
|
9
|
+
getDiscount(): number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingCycleModel = void 0;
|
|
4
|
+
var BillingCycleModel = /** @class */ (function () {
|
|
5
|
+
function BillingCycleModel(data) {
|
|
6
|
+
this.from = data.from;
|
|
7
|
+
this.to = data.to;
|
|
8
|
+
this.discount = data.discount;
|
|
9
|
+
this.name = data.name;
|
|
10
|
+
this.key = data.key;
|
|
11
|
+
}
|
|
12
|
+
BillingCycleModel.prototype.getDiscount = function () {
|
|
13
|
+
if (this.discount.indexOf("P") > -1) {
|
|
14
|
+
return parseFloat(this.discount.replace("P", ""));
|
|
15
|
+
}
|
|
16
|
+
return 0;
|
|
17
|
+
};
|
|
18
|
+
return BillingCycleModel;
|
|
19
|
+
}());
|
|
20
|
+
exports.BillingCycleModel = BillingCycleModel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IBookingModification } from "../types/booking-modification.type";
|
|
2
2
|
import { ModificationDiscountPolicy } from "../enums/modification-discount-policy.enum";
|
|
3
|
-
import { IChargeModel } from "../interface/charge-model.interface";
|
|
3
|
+
import { IChargeModel } from "../interface/model/charge-model.interface";
|
|
4
4
|
export declare class ChargesModel implements IChargeModel {
|
|
5
5
|
initialBookingGrossAmount: number;
|
|
6
6
|
additionalBookingGrossAmount: number;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BookingDetailsStatus } from "../../enums/booking-details-status.enum";
|
|
2
|
+
import { IBookingDetailsModel } from "../../interface/model/booking-details-model.interface";
|
|
3
|
+
import { IBookingDetailsWithBooking } from "../../types/bookingdetails-with-booking.type";
|
|
4
|
+
import { IBookingDetailsEntity } from "../../interface/entity/booking-details-entity.interface";
|
|
5
|
+
import { IBookingsEntity } from "../../interface/entity/bookings-entity.interface";
|
|
6
|
+
import { ChargesModel } from "../charge-model";
|
|
7
|
+
export declare class BookingDetailsModel implements IBookingDetailsModel {
|
|
8
|
+
id: number;
|
|
9
|
+
turfId: number;
|
|
10
|
+
pitchId: number;
|
|
11
|
+
customerName: string;
|
|
12
|
+
contact: string;
|
|
13
|
+
paymentMode: string;
|
|
14
|
+
couponCode: string;
|
|
15
|
+
totalCost: number;
|
|
16
|
+
discountedCost: number;
|
|
17
|
+
amountPaid: number;
|
|
18
|
+
email: string;
|
|
19
|
+
status: BookingDetailsStatus;
|
|
20
|
+
sport: string;
|
|
21
|
+
remarks: string;
|
|
22
|
+
initialBookingGrossAmount: number;
|
|
23
|
+
additionalBookingGrossAmount: number;
|
|
24
|
+
discountAmount: number;
|
|
25
|
+
cancelledBookingGrossAmount: number;
|
|
26
|
+
totalCancellationCharges: number;
|
|
27
|
+
netTotal: number;
|
|
28
|
+
amountPayable: number;
|
|
29
|
+
refundPayable: number;
|
|
30
|
+
totalRefundedAmount: number;
|
|
31
|
+
createdOn: Date;
|
|
32
|
+
updatedOn: Date;
|
|
33
|
+
createdBy: number;
|
|
34
|
+
updatedBy: number;
|
|
35
|
+
constructor(data: IBookingDetailsEntity);
|
|
36
|
+
static getIdAndCreatedBy(bookingDetailsEntities: IBookingDetailsEntity[]): number[][];
|
|
37
|
+
assignCharges(chargeModel: ChargesModel): void;
|
|
38
|
+
static toMap(bookingDetailsEntities: IBookingDetailsEntity[], bookingsEntities: IBookingsEntity[]): IBookingDetailsWithBooking;
|
|
39
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.BookingDetailsModel = void 0;
|
|
15
|
+
var booking_entity_model_1 = require("./booking-entity-model");
|
|
16
|
+
var BookingDetailsModel = /** @class */ (function () {
|
|
17
|
+
function BookingDetailsModel(data) {
|
|
18
|
+
Object.assign(this, data);
|
|
19
|
+
}
|
|
20
|
+
BookingDetailsModel.getIdAndCreatedBy = function (bookingDetailsEntities) {
|
|
21
|
+
var bookingDetailsIds = [];
|
|
22
|
+
var userIds = [];
|
|
23
|
+
bookingDetailsEntities.forEach(function (_a) {
|
|
24
|
+
var bookingDetailId = _a.id, createdBy = _a.createdBy;
|
|
25
|
+
bookingDetailsIds.push(bookingDetailId), userIds.push(createdBy);
|
|
26
|
+
});
|
|
27
|
+
return [bookingDetailsIds, userIds];
|
|
28
|
+
};
|
|
29
|
+
// static toMap(
|
|
30
|
+
// bookingDetailsEntities: IBookingDetailsEntity[],
|
|
31
|
+
// bookingsEntities: BookingsEntity[],
|
|
32
|
+
// ): IBookingDetailsWithBooking {
|
|
33
|
+
// const response: IBookingDetailsWithBooking = {};
|
|
34
|
+
// bookingDetailsEntities.forEach((bookingsDetailsEntity) => {
|
|
35
|
+
// const bookingDetailsId = bookingsDetailsEntity.id;
|
|
36
|
+
// if (!response[bookingDetailsId]) {
|
|
37
|
+
// response[bookingDetailsId] = {
|
|
38
|
+
// ...bookingsDetailsEntity,
|
|
39
|
+
// bookings: {},
|
|
40
|
+
// };
|
|
41
|
+
// }
|
|
42
|
+
// const filterBookingEntities = bookingsEntities.filter(
|
|
43
|
+
// (bookingEntity) => bookingEntity.bookingDetailsId === bookingDetailsId,
|
|
44
|
+
// );
|
|
45
|
+
// response[bookingDetailsId].bookings = BookingsEntity.toMap(
|
|
46
|
+
// filterBookingEntities,
|
|
47
|
+
// );
|
|
48
|
+
// });
|
|
49
|
+
// return response;
|
|
50
|
+
// }
|
|
51
|
+
BookingDetailsModel.prototype.assignCharges = function (chargeModel) {
|
|
52
|
+
this.discountAmount = chargeModel.getDiscountAmount();
|
|
53
|
+
Object.assign(this, chargeModel);
|
|
54
|
+
};
|
|
55
|
+
BookingDetailsModel.toMap = function (bookingDetailsEntities, bookingsEntities) {
|
|
56
|
+
var response = {};
|
|
57
|
+
bookingDetailsEntities.forEach(function (bookingsDetailsEntity) {
|
|
58
|
+
var bookingDetailsId = bookingsDetailsEntity.id;
|
|
59
|
+
if (!response[bookingDetailsId]) {
|
|
60
|
+
response[bookingDetailsId] = __assign(__assign({}, bookingsDetailsEntity), { bookings: {} });
|
|
61
|
+
}
|
|
62
|
+
var filterBookingEntities = bookingsEntities.filter(function (bookingEntity) { return bookingEntity.bookingDetailsId === bookingDetailsId; });
|
|
63
|
+
response[bookingDetailsId].bookings = booking_entity_model_1.BookingEntityModel.toMap(filterBookingEntities);
|
|
64
|
+
});
|
|
65
|
+
return response;
|
|
66
|
+
};
|
|
67
|
+
return BookingDetailsModel;
|
|
68
|
+
}());
|
|
69
|
+
exports.BookingDetailsModel = BookingDetailsModel;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IBookingsEntityModel } from "../../interface/model/booking-entity-model.interface";
|
|
2
|
+
import { IBookingsEntity } from "../../interface/entity/bookings-entity.interface";
|
|
3
|
+
import { BookingCode } from "../booking-code-model";
|
|
4
|
+
export declare class BookingEntityModel implements IBookingsEntityModel {
|
|
5
|
+
bookingDetailsId: number;
|
|
6
|
+
code: string;
|
|
7
|
+
cost: string;
|
|
8
|
+
createdOn: Date;
|
|
9
|
+
updatedOn: Date;
|
|
10
|
+
createdBy: number;
|
|
11
|
+
updatedBy: number;
|
|
12
|
+
constructor(data: IBookingsEntity);
|
|
13
|
+
getTotalCost(): number;
|
|
14
|
+
getBookingTimeInMinutes(): number;
|
|
15
|
+
isTimeExtended(newBookingEntities: IBookingsEntity[]): boolean;
|
|
16
|
+
getBookingCode(): BookingCode;
|
|
17
|
+
static toMap(bookingEntities: IBookingsEntity[]): {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
static findByCodeAndTurfId(bookingEntities: IBookingsEntity[], turfId: number, bookingCode: string): IBookingsEntity | undefined;
|
|
21
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingEntityModel = void 0;
|
|
4
|
+
var booking_code_model_1 = require("../booking-code-model");
|
|
5
|
+
var BookingEntityModel = /** @class */ (function () {
|
|
6
|
+
function BookingEntityModel(data) {
|
|
7
|
+
Object.assign(this, data);
|
|
8
|
+
}
|
|
9
|
+
BookingEntityModel.prototype.getTotalCost = function () {
|
|
10
|
+
return this.cost
|
|
11
|
+
.split(",")
|
|
12
|
+
.map(Number)
|
|
13
|
+
.reduce(function (accumulator, currentValue) { return accumulator + currentValue; }, 0);
|
|
14
|
+
};
|
|
15
|
+
BookingEntityModel.prototype.getBookingTimeInMinutes = function () {
|
|
16
|
+
var bookingCode = new booking_code_model_1.BookingCode(this.code);
|
|
17
|
+
return bookingCode.getBookingTimeInMinutes();
|
|
18
|
+
};
|
|
19
|
+
BookingEntityModel.prototype.isTimeExtended = function (newBookingEntities) {
|
|
20
|
+
var newTimeInMinutes = newBookingEntities
|
|
21
|
+
.map(function (bookingEntity) {
|
|
22
|
+
return new BookingEntityModel(bookingEntity).getBookingTimeInMinutes();
|
|
23
|
+
})
|
|
24
|
+
.reduce(function (accumulator, currentValue) { return accumulator + currentValue; }, 0);
|
|
25
|
+
return (newTimeInMinutes > new BookingEntityModel(this).getBookingTimeInMinutes());
|
|
26
|
+
};
|
|
27
|
+
BookingEntityModel.prototype.getBookingCode = function () {
|
|
28
|
+
return new booking_code_model_1.BookingCode(this.code, this.cost);
|
|
29
|
+
};
|
|
30
|
+
BookingEntityModel.toMap = function (bookingEntities) {
|
|
31
|
+
var response = {};
|
|
32
|
+
bookingEntities.forEach(function (bookingEntity) {
|
|
33
|
+
response[bookingEntity.code] =
|
|
34
|
+
response[bookingEntity.code] === undefined
|
|
35
|
+
? bookingEntity.cost
|
|
36
|
+
: response[bookingEntity.code];
|
|
37
|
+
});
|
|
38
|
+
return response;
|
|
39
|
+
};
|
|
40
|
+
BookingEntityModel.findByCodeAndTurfId = function (bookingEntities, turfId, bookingCode) {
|
|
41
|
+
return bookingEntities.find(function (bookingEntity) {
|
|
42
|
+
return bookingEntity.code === booking_code_model_1.BookingCode.getInstance(turfId, bookingCode).code;
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
return BookingEntityModel;
|
|
46
|
+
}());
|
|
47
|
+
exports.BookingEntityModel = BookingEntityModel;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PaymentMode } from "../../enums/payment-mode.enum";
|
|
2
|
+
import { BookingPaymentTransactionType } from "../../enums/transaction-type.enum";
|
|
3
|
+
import { IDateWisePaymentHistoryData } from "../../types/date-wise-payment-history-data.types";
|
|
4
|
+
import { IBookingPaymentHistoryEntity } from "../../interface/entity/booking-payment-history-entity.interface";
|
|
5
|
+
export declare class BookingPaymentHistoryModel implements IBookingPaymentHistoryEntity {
|
|
6
|
+
id: number;
|
|
7
|
+
bookingDetailsId: number;
|
|
8
|
+
turfId: number;
|
|
9
|
+
pitchId: number;
|
|
10
|
+
type: PaymentMode | null;
|
|
11
|
+
transactionType: BookingPaymentTransactionType;
|
|
12
|
+
amount: number;
|
|
13
|
+
bookingHistoryId: number;
|
|
14
|
+
createdOn: Date;
|
|
15
|
+
updatedOn: Date;
|
|
16
|
+
createdBy: number;
|
|
17
|
+
updatedBy: number;
|
|
18
|
+
constructor(data: IBookingPaymentHistoryEntity);
|
|
19
|
+
static dateCodeAndTurfIdWiseData(bookingPaymentHistoryEntities: IBookingPaymentHistoryEntity[]): IDateWisePaymentHistoryData;
|
|
20
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingPaymentHistoryModel = void 0;
|
|
4
|
+
var payment_mode_enum_1 = require("../../enums/payment-mode.enum");
|
|
5
|
+
var booking_code_model_1 = require("../booking-code-model");
|
|
6
|
+
var BookingPaymentHistoryModel = /** @class */ (function () {
|
|
7
|
+
function BookingPaymentHistoryModel(data) {
|
|
8
|
+
Object.assign(this, data);
|
|
9
|
+
}
|
|
10
|
+
BookingPaymentHistoryModel.dateCodeAndTurfIdWiseData = function (bookingPaymentHistoryEntities) {
|
|
11
|
+
var dateWisePaymentHistoryData = {};
|
|
12
|
+
for (var _i = 0, bookingPaymentHistoryEntities_1 = bookingPaymentHistoryEntities; _i < bookingPaymentHistoryEntities_1.length; _i++) {
|
|
13
|
+
var bookingPaymentHistoryEntity = bookingPaymentHistoryEntities_1[_i];
|
|
14
|
+
var turfId = bookingPaymentHistoryEntity.turfId, amount = bookingPaymentHistoryEntity.amount, type = bookingPaymentHistoryEntity.type, createdOn = bookingPaymentHistoryEntity.createdOn;
|
|
15
|
+
var dateCode = booking_code_model_1.BookingCode.getDateCode(createdOn);
|
|
16
|
+
if (!dateWisePaymentHistoryData[dateCode])
|
|
17
|
+
dateWisePaymentHistoryData[dateCode] = {};
|
|
18
|
+
var turfWisePaymentData = dateWisePaymentHistoryData[dateCode][turfId];
|
|
19
|
+
if (!turfWisePaymentData)
|
|
20
|
+
turfWisePaymentData = dateWisePaymentHistoryData[dateCode][turfId] = {
|
|
21
|
+
cashTotal: 0,
|
|
22
|
+
upiTotal: 0,
|
|
23
|
+
total: 0,
|
|
24
|
+
};
|
|
25
|
+
if (type === payment_mode_enum_1.PaymentMode.CASH)
|
|
26
|
+
turfWisePaymentData.cashTotal += amount;
|
|
27
|
+
else if (type === payment_mode_enum_1.PaymentMode.UPI)
|
|
28
|
+
turfWisePaymentData.upiTotal += amount;
|
|
29
|
+
turfWisePaymentData.total =
|
|
30
|
+
turfWisePaymentData.cashTotal + turfWisePaymentData.upiTotal;
|
|
31
|
+
}
|
|
32
|
+
return dateWisePaymentHistoryData;
|
|
33
|
+
};
|
|
34
|
+
return BookingPaymentHistoryModel;
|
|
35
|
+
}());
|
|
36
|
+
exports.BookingPaymentHistoryModel = BookingPaymentHistoryModel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ICancellationPolicyModel } from "../../interface/model/cancellation-policy-model.interface";
|
|
2
|
+
import { ICancellationPolicyEntity } from "../../interface/entity/cancellation-policy-entity.interface";
|
|
3
|
+
export declare class CancellationPolicyModel implements ICancellationPolicyModel {
|
|
4
|
+
id: number;
|
|
5
|
+
turfId: number;
|
|
6
|
+
from: number;
|
|
7
|
+
to: number;
|
|
8
|
+
charges: string;
|
|
9
|
+
createdOn: Date;
|
|
10
|
+
updatedOn: Date;
|
|
11
|
+
createdBy: number;
|
|
12
|
+
updatedBy: number;
|
|
13
|
+
constructor(data: ICancellationPolicyEntity);
|
|
14
|
+
unitOfCharges(): string;
|
|
15
|
+
chargesWithoutUnit(): string;
|
|
16
|
+
isInEffect(hours: number): boolean;
|
|
17
|
+
getCancellationCharges(cost: number): number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CancellationPolicyModel = void 0;
|
|
4
|
+
var CancellationPolicyModel = /** @class */ (function () {
|
|
5
|
+
function CancellationPolicyModel(data) {
|
|
6
|
+
Object.assign(this, data);
|
|
7
|
+
}
|
|
8
|
+
CancellationPolicyModel.prototype.unitOfCharges = function () {
|
|
9
|
+
return this.charges.slice(-1);
|
|
10
|
+
};
|
|
11
|
+
CancellationPolicyModel.prototype.chargesWithoutUnit = function () {
|
|
12
|
+
return this.charges.slice(0, -1);
|
|
13
|
+
};
|
|
14
|
+
CancellationPolicyModel.prototype.isInEffect = function (hours) {
|
|
15
|
+
return this.from <= hours && hours <= this.to;
|
|
16
|
+
};
|
|
17
|
+
CancellationPolicyModel.prototype.getCancellationCharges = function (cost) {
|
|
18
|
+
var cancellationCharges = 0;
|
|
19
|
+
var cancellationChargesModel = new CancellationPolicyModel(this);
|
|
20
|
+
if (cancellationChargesModel.unitOfCharges() === "P") {
|
|
21
|
+
var percentageValue = cancellationChargesModel.chargesWithoutUnit();
|
|
22
|
+
cancellationCharges = (cost * Number(percentageValue)) / 100;
|
|
23
|
+
}
|
|
24
|
+
else if (cancellationChargesModel.unitOfCharges() === "U") {
|
|
25
|
+
var unit = cancellationChargesModel.chargesWithoutUnit();
|
|
26
|
+
cancellationCharges = Number(unit);
|
|
27
|
+
}
|
|
28
|
+
return cancellationCharges;
|
|
29
|
+
};
|
|
30
|
+
return CancellationPolicyModel;
|
|
31
|
+
}());
|
|
32
|
+
exports.CancellationPolicyModel = CancellationPolicyModel;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ConfigurationKey } from "../../enums/configuration-key.enum";
|
|
2
|
+
import { IConfigurationsModel } from "../../interface/model/configuration-model.interface";
|
|
3
|
+
import { IConfigurationsEntity } from "../../interface/entity/configurations-entity.interface";
|
|
4
|
+
export declare class ConfigurationsModel implements IConfigurationsModel {
|
|
5
|
+
id: number;
|
|
6
|
+
key: ConfigurationKey;
|
|
7
|
+
value: string;
|
|
8
|
+
description: string;
|
|
9
|
+
createdOn: Date;
|
|
10
|
+
updatedOn: Date;
|
|
11
|
+
createdBy: number;
|
|
12
|
+
updatedBy: number;
|
|
13
|
+
constructor(data: IConfigurationsEntity);
|
|
14
|
+
isCronJobKey(): boolean;
|
|
15
|
+
static findByKey(configurationEntities: IConfigurationsEntity[], key: ConfigurationKey): IConfigurationsEntity | undefined;
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigurationsModel = void 0;
|
|
4
|
+
var configuration_key_enum_1 = require("../../enums/configuration-key.enum");
|
|
5
|
+
var ConfigurationsModel = /** @class */ (function () {
|
|
6
|
+
function ConfigurationsModel(data) {
|
|
7
|
+
Object.assign(this, data);
|
|
8
|
+
}
|
|
9
|
+
ConfigurationsModel.prototype.isCronJobKey = function () {
|
|
10
|
+
return configuration_key_enum_1.ConfigurationKey.CronJobsConfigurationsKeys(this.key);
|
|
11
|
+
};
|
|
12
|
+
ConfigurationsModel.findByKey = function (configurationEntities, key) {
|
|
13
|
+
return configurationEntities.find(function (configurationEntity) { return configurationEntity.key === key; });
|
|
14
|
+
};
|
|
15
|
+
return ConfigurationsModel;
|
|
16
|
+
}());
|
|
17
|
+
exports.ConfigurationsModel = ConfigurationsModel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./booking-details-model";
|
|
2
|
+
export * from "./booking-entity-model";
|
|
3
|
+
export * from "./booking-payment-history-model";
|
|
4
|
+
export * from "./cancellation-policy-model";
|
|
5
|
+
export * from "./configuration-model";
|
|
6
|
+
export * from "./price-model";
|
|
7
|
+
export * from "./pricing-plan-entity-model";
|
|
8
|
+
export * from "./subscription-model";
|
|
9
|
+
export * from "./turf-model";
|
|
10
|
+
export * from "./user-model";
|