turf-common 1.0.16-beta.3 → 1.0.16-beta.30

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.
Files changed (134) hide show
  1. package/build/enums/booking-details-status.enum.d.ts +4 -0
  2. package/build/enums/booking-details-status.enum.js +8 -0
  3. package/build/enums/booking-history-operation-type.enum.d.ts +10 -0
  4. package/build/enums/booking-history-operation-type.enum.js +18 -0
  5. package/build/enums/configuration-key.enum.d.ts +8 -0
  6. package/build/enums/configuration-key.enum.js +25 -0
  7. package/build/enums/cron-jobs-name.enum.d.ts +3 -0
  8. package/build/enums/cron-jobs-name.enum.js +7 -0
  9. package/build/enums/cron-jobs-status.enum.d.ts +5 -0
  10. package/build/enums/cron-jobs-status.enum.js +9 -0
  11. package/build/enums/faqs-status.enum.d.ts +3 -0
  12. package/build/enums/faqs-status.enum.js +7 -0
  13. package/build/enums/organization-status.enum.d.ts +15 -0
  14. package/build/enums/organization-status.enum.js +31 -0
  15. package/build/enums/payment-mode.enum.d.ts +4 -0
  16. package/build/enums/payment-mode.enum.js +8 -0
  17. package/build/enums/pricing-plan-status.enum copy.d.ts +4 -0
  18. package/build/enums/pricing-plan-status.enum copy.js +8 -0
  19. package/build/enums/pricing-plan-status.enum.d.ts +4 -0
  20. package/build/enums/pricing-plan-status.enum.js +8 -0
  21. package/build/enums/registration-status-enum.d.ts +12 -0
  22. package/build/enums/registration-status-enum.js +16 -0
  23. package/build/enums/transaction-type.enum.d.ts +7 -0
  24. package/build/enums/transaction-type.enum.js +11 -0
  25. package/build/enums/user-status.enum.d.ts +11 -0
  26. package/build/enums/user-status.enum.js +15 -0
  27. package/build/enums/valid-type.enum.d.ts +6 -0
  28. package/build/enums/valid-type.enum.js +10 -0
  29. package/build/interface/billing-cycle.interface.d.ts +7 -0
  30. package/build/interface/billing-cycle.interface.js +2 -0
  31. package/build/interface/booking-details-model.interface.d.ts +5 -0
  32. package/build/interface/booking-details-model.interface.js +2 -0
  33. package/build/interface/booking-entity-model.interface.d.ts +8 -0
  34. package/build/interface/booking-entity-model.interface.js +2 -0
  35. package/build/interface/cancellation-policy-model.interface.d.ts +4 -0
  36. package/build/interface/cancellation-policy-model.interface.js +2 -0
  37. package/build/interface/configuration-model.interface.d.ts +4 -0
  38. package/build/interface/configuration-model.interface.js +2 -0
  39. package/build/interface/get-pricing-plan-by-date-response.interface copy.d.ts +23 -0
  40. package/build/interface/get-pricing-plan-by-date-response.interface copy.js +2 -0
  41. package/build/interface/get-pricing-plan-by-date-response.interface.d.ts +23 -0
  42. package/build/interface/get-pricing-plan-by-date-response.interface.js +2 -0
  43. package/build/interface/get-turf-entity.interface.d.ts +9 -2
  44. package/build/interface/pitch-slab.interface copy.d.ts +5 -0
  45. package/build/interface/pitch-slab.interface copy.js +2 -0
  46. package/build/interface/pitch-slab.interface.d.ts +5 -0
  47. package/build/interface/pitch-slab.interface.js +2 -0
  48. package/build/interface/price-model.interface.d.ts +3 -0
  49. package/build/interface/price-model.interface.js +2 -0
  50. package/build/interface/pricing-plan-entity-model.interface.d.ts +13 -0
  51. package/build/interface/pricing-plan-entity-model.interface.js +2 -0
  52. package/build/interface/pricing-plan-model.interface.d.ts +15 -0
  53. package/build/interface/pricing-plan-model.interface.js +2 -0
  54. package/build/interface/pricing-plan.interface.d.ts +15 -0
  55. package/build/interface/pricing-plan.interface.js +2 -0
  56. package/build/interface/subscription-status.interface.d.ts +20 -0
  57. package/build/interface/subscription-status.interface.js +24 -0
  58. package/build/interface/turf-model.interface.d.ts +7 -0
  59. package/build/interface/turf-model.interface.js +2 -0
  60. package/build/interface/user-model.interface.d.ts +3 -0
  61. package/build/interface/user-model.interface.js +2 -0
  62. package/build/models/billing-cycle-model.d.ts +10 -0
  63. package/build/models/billing-cycle-model.js +20 -0
  64. package/build/models/booking-details-model.d.ts +39 -0
  65. package/build/models/booking-details-model.js +69 -0
  66. package/build/models/booking-entity-model.d.ts +21 -0
  67. package/build/models/booking-entity-model.js +47 -0
  68. package/build/models/booking-payment-history-model.d.ts +20 -0
  69. package/build/models/booking-payment-history-model.js +36 -0
  70. package/build/models/cancellation-policy-model.d.ts +18 -0
  71. package/build/models/cancellation-policy-model.js +32 -0
  72. package/build/models/configuration-model.d.ts +16 -0
  73. package/build/models/configuration-model.js +17 -0
  74. package/build/models/pitch-slab-model.d.ts +9 -0
  75. package/build/models/pitch-slab-model.js +21 -0
  76. package/build/models/price-model.d.ts +11 -0
  77. package/build/models/price-model.js +15 -0
  78. package/build/models/pricing-plan-entity-model.d.ts +47 -0
  79. package/build/models/pricing-plan-entity-model.js +128 -0
  80. package/build/models/pricing-plan-model.d.ts +24 -0
  81. package/build/models/pricing-plan-model.js +67 -0
  82. package/build/models/subscribed-pricing-plan-model.d.ts +26 -0
  83. package/build/models/subscribed-pricing-plan-model.js +88 -0
  84. package/build/models/subscription-model.d.ts +30 -0
  85. package/build/models/subscription-model.js +51 -0
  86. package/build/models/turf-model.d.ts +34 -0
  87. package/build/models/turf-model.js +88 -0
  88. package/build/models/user-model.d.ts +31 -0
  89. package/build/models/user-model.js +19 -0
  90. package/build/types/bookingdetails-with-booking.type.d.ts +34 -0
  91. package/build/types/bookingdetails-with-booking.type.js +2 -0
  92. package/build/types/date-wise-payment-history-data.types.d.ts +9 -0
  93. package/build/types/date-wise-payment-history-data.types.js +2 -0
  94. package/build/types/entity/bank-details-entity.type.d.ts +12 -0
  95. package/build/types/entity/bank-details-entity.type.js +2 -0
  96. package/build/types/entity/booking-cancellation-entity.type.d.ts +32 -0
  97. package/build/types/entity/booking-cancellation-entity.type.js +2 -0
  98. package/build/types/entity/booking-customer-entity.type.d.ts +8 -0
  99. package/build/types/entity/booking-customer-entity.type.js +2 -0
  100. package/build/types/entity/booking-details-entity.type.d.ts +27 -0
  101. package/build/types/entity/booking-details-entity.type.js +2 -0
  102. package/build/types/entity/booking-history-entity.type.d.ts +31 -0
  103. package/build/types/entity/booking-history-entity.type.js +2 -0
  104. package/build/types/entity/booking-payment-history-entity.type.d.ts +13 -0
  105. package/build/types/entity/booking-payment-history-entity.type.js +2 -0
  106. package/build/types/entity/bookings-entity.type.d.ts +6 -0
  107. package/build/types/entity/bookings-entity.type.js +2 -0
  108. package/build/types/entity/cancellation-policy-entity.type.d.ts +8 -0
  109. package/build/types/entity/cancellation-policy-entity.type.js +2 -0
  110. package/build/types/entity/configurations-entity.type.d.ts +8 -0
  111. package/build/types/entity/configurations-entity.type.js +2 -0
  112. package/build/types/entity/coupon.entity.type.d.ts +10 -0
  113. package/build/types/entity/coupon.entity.type.js +2 -0
  114. package/build/types/entity/cron-jobs-entity.type.d.ts +12 -0
  115. package/build/types/entity/cron-jobs-entity.type.js +2 -0
  116. package/build/types/entity/faqs-entity.type.d.ts +10 -0
  117. package/build/types/entity/faqs-entity.type.js +2 -0
  118. package/build/types/entity/organization-entity.type.d.ts +23 -0
  119. package/build/types/entity/organization-entity.type.js +2 -0
  120. package/build/types/entity/price-entity.type.d.ts +5 -0
  121. package/build/types/entity/price-entity.type.js +3 -0
  122. package/build/types/entity/pricing-plan-entity.d.ts +16 -0
  123. package/build/types/entity/pricing-plan-entity.js +2 -0
  124. package/build/types/entity/registration-entity.type.d.ts +12 -0
  125. package/build/types/entity/registration-entity.type.js +2 -0
  126. package/build/types/entity/subscription-entity.type.d.ts +20 -0
  127. package/build/types/entity/subscription-entity.type.js +2 -0
  128. package/build/types/entity/subscription-pitch-mapping.type.d.ts +7 -0
  129. package/build/types/entity/subscription-pitch-mapping.type.js +3 -0
  130. package/build/types/entity/turf-entity.type.d.ts +6 -27
  131. package/build/types/entity/turf-entity.type.js +0 -100
  132. package/build/types/entity/user-entity.type.d.ts +24 -0
  133. package/build/types/entity/user-entity.type.js +2 -0
  134. package/package.json +2 -1
@@ -0,0 +1,4 @@
1
+ export declare enum BookingDetailsStatus {
2
+ BOOKED = "booked",
3
+ BLOCKED = "blocked"
4
+ }
@@ -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,3 @@
1
+ export declare enum CronJobsNames {
2
+ SEND_DAILY_COLLECTION = "send_daily_collection"
3
+ }
@@ -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,5 @@
1
+ export declare enum CronJobsStatus {
2
+ RUNNING = "running",
3
+ FAILED = "failed",
4
+ SUCCESS = "success"
5
+ }
@@ -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,3 @@
1
+ export declare enum FaqsStatus {
2
+ ACTIVE = "active"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FaqsStatus = void 0;
4
+ var FaqsStatus;
5
+ (function (FaqsStatus) {
6
+ FaqsStatus["ACTIVE"] = "active";
7
+ })(FaqsStatus || (exports.FaqsStatus = FaqsStatus = {}));
@@ -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,4 @@
1
+ export declare enum PaymentMode {
2
+ UPI = "upi",
3
+ CASH = "cash"
4
+ }
@@ -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,4 @@
1
+ export declare enum PricingPlanStatus {
2
+ ACTIVE = "active",
3
+ DEACTIVE = "deactive"
4
+ }
@@ -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,4 @@
1
+ export declare enum PricingPlanStatus {
2
+ ACTIVE = "active",
3
+ DEACTIVE = "deactive"
4
+ }
@@ -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,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,6 @@
1
+ export declare enum UserType {
2
+ STAFF = "staff",
3
+ OWNER = "owner",
4
+ SUPERADMIN = "superadmin",
5
+ BOT_USER = "bot_user"
6
+ }
@@ -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 = {}));
@@ -0,0 +1,7 @@
1
+ export interface IBillingCycle {
2
+ from: number;
3
+ to: number;
4
+ discount: string;
5
+ name: string;
6
+ key: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { ChargesModel } from "../models/charge-model";
2
+ import { IBookingDetailsEntity } from "../types/entity/booking-details-entity.type";
3
+ export interface IBookingDetailsModel extends IBookingDetailsEntity {
4
+ assignCharges(chargeModel: ChargesModel): void;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { BookingCode } from "../models/booking-code-model";
2
+ import { IBookingsEntity } from "../types/entity/bookings-entity.type";
3
+ export interface IBookingsEntityModel extends IBookingsEntity {
4
+ getTotalCost(): number;
5
+ getBookingTimeInMinutes(): number;
6
+ isTimeExtended(newBookingEntities: IBookingsEntity[]): boolean;
7
+ getBookingCode(): BookingCode;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { ICancellationPolicyEntity } from "../types/entity/cancellation-policy-entity.type";
2
+ export interface ICancellationPolicyModel extends ICancellationPolicyEntity {
3
+ unitOfCharges(): string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { IConfigurationsEntity } from "../types/entity/configurations-entity.type";
2
+ export interface IConfigurationsModel extends IConfigurationsEntity {
3
+ isCronJobKey(): boolean;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ export interface GetPricingPlanByDateResponse {
2
+ id: number;
3
+ effective_from_date: number;
4
+ effective_to_date: number;
5
+ base_price: number;
6
+ unit: string;
7
+ pitch_slab: {
8
+ [key: string]: {
9
+ from: number;
10
+ to: number;
11
+ discount: string;
12
+ };
13
+ };
14
+ billing_cycle: {
15
+ [key: string]: {
16
+ from: number;
17
+ to: number;
18
+ discount: string;
19
+ name: string;
20
+ key: string;
21
+ };
22
+ };
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ export interface GetPricingPlanByDateResponse {
2
+ id: number;
3
+ effective_from_date: number;
4
+ effective_to_date: number;
5
+ base_price: number;
6
+ unit: string;
7
+ pitch_slab: {
8
+ [key: string]: {
9
+ from: number;
10
+ to: number;
11
+ discount: string;
12
+ };
13
+ };
14
+ billing_cycle: {
15
+ [key: string]: {
16
+ from: number;
17
+ to: number;
18
+ discount: string;
19
+ name: string;
20
+ key: string;
21
+ };
22
+ };
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,6 +8,14 @@ export interface ITurf {
8
8
  createdBy: number;
9
9
  updatedBy: number;
10
10
  org_id: number;
11
+ totalPitchCount?: number;
12
+ activePitchCount?: number;
13
+ deletePitchCount?: number;
14
+ deactivePitchCount?: number;
15
+ newPitchCount?: number;
16
+ setup_invalidPitchCount?: number;
17
+ payment_invalidPitchCount?: number;
18
+ account_suspendedPitchCount?: number;
11
19
  pitches: IPitch[];
12
20
  }
13
21
  export interface IPitch {
@@ -21,7 +29,6 @@ export interface IPitch {
21
29
  createdBy: number;
22
30
  updatedBy: number;
23
31
  }
24
- interface ISport {
32
+ export interface ISport {
25
33
  name: string;
26
34
  }
27
- export {};
@@ -0,0 +1,5 @@
1
+ export interface IPitchSlab {
2
+ from: number;
3
+ to: number;
4
+ discount: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface IPitchSlab {
2
+ from: number;
3
+ to: number;
4
+ discount: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { IPriceEntity } from "../types/entity/price-entity.type";
2
+ export interface IPriceModel extends IPriceEntity {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { PricingPlanModel } from "../models/pricing-plan-model";
2
+ import { IPricingPlanEntity } from "../types/entity/pricing-plan-entity";
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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { IBillingCycle } 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]: IBillingCycle;
14
+ };
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { IBillingCycle } from "./billing-cycle.interface";
2
+ import { IPitchSlab } from "./pitch-slab.interface";
3
+ export interface IPricingPlan {
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]: IBillingCycle;
14
+ };
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
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
+ }
@@ -0,0 +1,24 @@
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 = {}));
@@ -0,0 +1,7 @@
1
+ import { IPitchStatus } from "../enums/pitch-status.enum";
2
+ import { ITurfEntity } from "../types/entity/turf-entity.type";
3
+ import { ITurf } from "./get-turf-entity.interface";
4
+ export interface ITurfModel extends ITurfEntity {
5
+ getPitchStatusCount(): IPitchStatus;
6
+ getModifiedTurfEntity(): ITurf;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { IUserEntity } from "../types/entity/user-entity.type";
2
+ export interface IUserModel extends IUserEntity {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });