turf-common 1.0.16-beta.3 → 1.0.16-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/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/pricing-plan-status.enum copy.d.ts +4 -0
- package/build/enums/pricing-plan-status.enum copy.js +8 -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/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 +1 -1
- package/build/index.js +1 -1
- package/build/interface/billing-cycle.interface.d.ts +7 -0
- package/build/interface/billing-cycle.interface.js +2 -0
- package/build/interface/booking-details-model.interface.d.ts +5 -0
- package/build/interface/booking-details-model.interface.js +2 -0
- package/build/interface/booking-entity-model.interface.d.ts +8 -0
- package/build/interface/booking-entity-model.interface.js +2 -0
- package/build/interface/cancellation-policy-model.interface.d.ts +4 -0
- package/build/interface/cancellation-policy-model.interface.js +2 -0
- package/build/interface/configuration-model.interface.d.ts +4 -0
- package/build/interface/configuration-model.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 +3 -0
- package/build/interface/entity/index.js +19 -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 +24 -0
- package/build/interface/entity/user-entity.interface.js +2 -0
- package/build/interface/get-pricing-plan-by-date-response.interface copy.d.ts +23 -0
- package/build/interface/get-pricing-plan-by-date-response.interface copy.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 +9 -2
- package/build/interface/pitch-slab.interface copy.d.ts +5 -0
- package/build/interface/pitch-slab.interface copy.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/price-model.interface.d.ts +3 -0
- package/build/interface/price-model.interface.js +2 -0
- package/build/interface/pricing-plan-entity-model.interface.d.ts +13 -0
- package/build/interface/pricing-plan-entity-model.interface.js +2 -0
- package/build/interface/pricing-plan-model.interface.d.ts +15 -0
- package/build/interface/pricing-plan-model.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/subscription-status.interface.d.ts +20 -0
- package/build/interface/subscription-status.interface.js +24 -0
- package/build/interface/turf-model.interface.d.ts +7 -0
- package/build/interface/turf-model.interface.js +2 -0
- package/build/interface/user-model.interface.d.ts +3 -0
- package/build/interface/user-model.interface.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/booking-details-model.d.ts +39 -0
- package/build/models/booking-details-model.js +69 -0
- package/build/models/booking-entity-model.d.ts +21 -0
- package/build/models/booking-entity-model.js +47 -0
- package/build/models/booking-payment-history-model.d.ts +20 -0
- package/build/models/booking-payment-history-model.js +36 -0
- package/build/models/cancellation-policy-model.d.ts +18 -0
- package/build/models/cancellation-policy-model.js +32 -0
- package/build/models/configuration-model.d.ts +16 -0
- package/build/models/configuration-model.js +17 -0
- 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/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 +31 -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/price-model.d.ts +11 -0
- package/build/models/price-model.js +15 -0
- package/build/models/pricing-plan-entity-model.d.ts +47 -0
- package/build/models/pricing-plan-entity-model.js +128 -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/models/subscription-model.d.ts +30 -0
- package/build/models/subscription-model.js +51 -0
- package/build/models/turf-model.d.ts +34 -0
- package/build/models/turf-model.js +88 -0
- package/build/models/user-model.d.ts +31 -0
- package/build/models/user-model.js +19 -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/build/types/entity/bank-details-entity.type.d.ts +12 -0
- package/build/types/entity/bank-details-entity.type.js +2 -0
- package/build/types/entity/booking-cancellation-entity.type.d.ts +32 -0
- package/build/types/entity/booking-cancellation-entity.type.js +2 -0
- package/build/types/entity/booking-customer-entity.type.d.ts +8 -0
- package/build/types/entity/booking-customer-entity.type.js +2 -0
- package/build/types/entity/booking-details-entity.type.d.ts +27 -0
- package/build/types/entity/booking-details-entity.type.js +2 -0
- package/build/types/entity/booking-history-entity.type.d.ts +31 -0
- package/build/types/entity/booking-history-entity.type.js +2 -0
- package/build/types/entity/booking-payment-history-entity.type.d.ts +13 -0
- package/build/types/entity/booking-payment-history-entity.type.js +2 -0
- package/build/types/entity/bookings-entity.type.d.ts +6 -0
- package/build/types/entity/bookings-entity.type.js +2 -0
- package/build/types/entity/cancellation-policy-entity.type.d.ts +8 -0
- package/build/types/entity/cancellation-policy-entity.type.js +2 -0
- package/build/types/entity/configurations-entity.type.d.ts +8 -0
- package/build/types/entity/configurations-entity.type.js +2 -0
- package/build/types/entity/coupon.entity.type.d.ts +10 -0
- package/build/types/entity/coupon.entity.type.js +2 -0
- package/build/types/entity/cron-jobs-entity.type.d.ts +12 -0
- package/build/types/entity/cron-jobs-entity.type.js +2 -0
- package/build/types/entity/faqs-entity.type.d.ts +10 -0
- package/build/types/entity/faqs-entity.type.js +2 -0
- package/build/types/entity/organization-entity.type.d.ts +23 -0
- package/build/types/entity/organization-entity.type.js +2 -0
- package/build/types/entity/price-entity.type.d.ts +5 -0
- package/build/types/entity/price-entity.type.js +3 -0
- package/build/types/entity/pricing-plan-entity.d.ts +16 -0
- package/build/types/entity/pricing-plan-entity.js +2 -0
- package/build/types/entity/registration-entity.type.d.ts +12 -0
- package/build/types/entity/registration-entity.type.js +2 -0
- package/build/types/entity/subscription-entity.type.d.ts +20 -0
- package/build/types/entity/subscription-entity.type.js +2 -0
- package/build/types/entity/subscription-pitch-mapping.type.d.ts +7 -0
- package/build/types/entity/subscription-pitch-mapping.type.js +3 -0
- package/build/types/entity/turf-entity.type.d.ts +6 -27
- package/build/types/entity/turf-entity.type.js +0 -100
- package/build/types/entity/user-entity.type.d.ts +24 -0
- package/build/types/entity/user-entity.type.js +2 -0
- package/package.json +2 -1
|
@@ -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,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,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,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
|
@@ -7,4 +7,4 @@ export * from "./types/booking-modification.type";
|
|
|
7
7
|
export * from "./interface/get-booking-codes-per-thirty-min.interface";
|
|
8
8
|
export * from "./interface/get-turf-entity.interface";
|
|
9
9
|
export * from "./enums/modification-discount-policy.enum";
|
|
10
|
-
export * from "./
|
|
10
|
+
export * from "./interface/entity/entity-audit-column.interface";
|
package/build/index.js
CHANGED
|
@@ -23,5 +23,5 @@ __exportStar(require("./types/booking-modification.type"), exports);
|
|
|
23
23
|
__exportStar(require("./interface/get-booking-codes-per-thirty-min.interface"), exports);
|
|
24
24
|
__exportStar(require("./interface/get-turf-entity.interface"), exports);
|
|
25
25
|
__exportStar(require("./enums/modification-discount-policy.enum"), exports);
|
|
26
|
-
__exportStar(require("./
|
|
26
|
+
__exportStar(require("./interface/entity/entity-audit-column.interface"), exports);
|
|
27
27
|
// export * from "./types/entity/turf-entity.type";
|
|
@@ -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,12 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
export interface IBankDetailsEntity extends IEntityAuditColumn {
|
|
3
|
+
id: number;
|
|
4
|
+
bankName: string;
|
|
5
|
+
accountNo: string;
|
|
6
|
+
ifscCode: string;
|
|
7
|
+
upiId: string;
|
|
8
|
+
qrCode: string;
|
|
9
|
+
bankAddress: string;
|
|
10
|
+
branch: string;
|
|
11
|
+
accountName: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { BookingHistoryOperationType } from "../../enums/booking-history-operation-type.enum";
|
|
3
|
+
import { PaymentMode } from "../../enums/payment-mode.enum";
|
|
4
|
+
export interface IBookingCancellationEntity extends IEntityAuditColumn {
|
|
5
|
+
id: number;
|
|
6
|
+
bookingDetailsId: number;
|
|
7
|
+
turfId: number;
|
|
8
|
+
pitchId: number;
|
|
9
|
+
customerName: string;
|
|
10
|
+
contact: string;
|
|
11
|
+
paymentMode: string;
|
|
12
|
+
couponCode: string;
|
|
13
|
+
totalCost: number;
|
|
14
|
+
discountedCost: number;
|
|
15
|
+
amountPaid: number;
|
|
16
|
+
operationType: BookingHistoryOperationType;
|
|
17
|
+
email: string;
|
|
18
|
+
bookingCodes: string;
|
|
19
|
+
cancellationAmount: number;
|
|
20
|
+
refundAmount: number;
|
|
21
|
+
refundMode: PaymentMode | null;
|
|
22
|
+
startDateCode: number;
|
|
23
|
+
endDateCode: number;
|
|
24
|
+
initialBookingGrossAmount: number;
|
|
25
|
+
additionalBookingGrossAmount: number;
|
|
26
|
+
discountAmount: number;
|
|
27
|
+
cancelledBookingGrossAmount: number;
|
|
28
|
+
totalCancellationCharges: number;
|
|
29
|
+
netTotal: number;
|
|
30
|
+
amountPayable: number;
|
|
31
|
+
refundPayable: number;
|
|
32
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { BookingDetailsStatus } from "../../enums/booking-details-status.enum";
|
|
3
|
+
export interface IBookingDetailsEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
turfId: number;
|
|
6
|
+
pitchId: number;
|
|
7
|
+
customerName: string;
|
|
8
|
+
contact: string;
|
|
9
|
+
paymentMode: string;
|
|
10
|
+
couponCode: string;
|
|
11
|
+
totalCost: number;
|
|
12
|
+
discountedCost: number;
|
|
13
|
+
amountPaid: number;
|
|
14
|
+
email: string;
|
|
15
|
+
status: BookingDetailsStatus;
|
|
16
|
+
sport: string;
|
|
17
|
+
remarks: string;
|
|
18
|
+
initialBookingGrossAmount: number;
|
|
19
|
+
additionalBookingGrossAmount: number;
|
|
20
|
+
discountAmount: number;
|
|
21
|
+
cancelledBookingGrossAmount: number;
|
|
22
|
+
totalCancellationCharges: number;
|
|
23
|
+
netTotal: number;
|
|
24
|
+
amountPayable: number;
|
|
25
|
+
refundPayable: number;
|
|
26
|
+
totalRefundedAmount: number;
|
|
27
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BookingHistoryOperationType } from "../../enums/booking-history-operation-type.enum";
|
|
2
|
+
import { PaymentMode } from "../../enums/payment-mode.enum";
|
|
3
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
4
|
+
export interface IBookingHistoryEntity extends IEntityAuditColumn {
|
|
5
|
+
id: number;
|
|
6
|
+
bookingDetailsId: number;
|
|
7
|
+
turfId: number;
|
|
8
|
+
pitchId: number;
|
|
9
|
+
customerName: string;
|
|
10
|
+
contact: string;
|
|
11
|
+
paymentMode: string;
|
|
12
|
+
couponCode: string;
|
|
13
|
+
totalCost: number;
|
|
14
|
+
discountedCost: number;
|
|
15
|
+
amountPaid: number;
|
|
16
|
+
operationType: BookingHistoryOperationType;
|
|
17
|
+
email: string;
|
|
18
|
+
bookingCodes: string;
|
|
19
|
+
cancellationAmount: number;
|
|
20
|
+
refundAmount: number;
|
|
21
|
+
refundMode: PaymentMode | null;
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PaymentMode } from "../../enums/payment-mode.enum";
|
|
2
|
+
import { BookingPaymentTransactionType } from "../../enums/transaction-type.enum";
|
|
3
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
4
|
+
export interface IBookingPaymentHistoryEntity extends IEntityAuditColumn {
|
|
5
|
+
id: number;
|
|
6
|
+
bookingDetailsId: number;
|
|
7
|
+
turfId: number;
|
|
8
|
+
pitchId: number;
|
|
9
|
+
type: PaymentMode | null;
|
|
10
|
+
transactionType: BookingPaymentTransactionType;
|
|
11
|
+
amount: number;
|
|
12
|
+
bookingHistoryId: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ConfigurationKey } from "../../enums/configuration-key.enum";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
3
|
+
export interface IConfigurationsEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
key: ConfigurationKey;
|
|
6
|
+
value: string;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { IOrganizationEntity } from "./organization-entity.interface";
|
|
3
|
+
export interface ICouponEntity extends IEntityAuditColumn, ICouponEntityRel {
|
|
4
|
+
id: number;
|
|
5
|
+
code: string;
|
|
6
|
+
org_id: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ICouponEntityRel {
|
|
9
|
+
organization: IOrganizationEntity;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CronJobsNames } from '../../enums/cron-jobs-name.enum';
|
|
2
|
+
import { CronJobsStatus } from '../../enums/cron-jobs-status.enum';
|
|
3
|
+
export interface ICronJobsEntity {
|
|
4
|
+
id: number;
|
|
5
|
+
job: CronJobsNames;
|
|
6
|
+
startTime: Date;
|
|
7
|
+
endTime: Date;
|
|
8
|
+
message: string;
|
|
9
|
+
error: string;
|
|
10
|
+
data: string;
|
|
11
|
+
status: CronJobsStatus;
|
|
12
|
+
}
|