turf-common 1.0.16-beta.34 → 1.0.16-beta.35
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/enums.d.ts +16 -0
- package/build/enums/enums.js +32 -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/subscription-status.enum.d.ts +20 -0
- package/build/enums/subscription-status.enum.js +24 -0
- package/build/index.d.ts +0 -3
- package/build/index.js +0 -3
- package/build/interface/entity/index.d.ts +22 -2
- package/build/interface/entity/index.js +20 -0
- package/build/interface/entity/pricing-plan-entity.interface.d.ts +1 -1
- package/build/interface/entity/subscription-entity.interface.d.ts +1 -1
- package/build/interface/interface.d.ts +8 -0
- package/build/interface/interface.js +24 -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.d.ts +12 -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/models/charge-model.d.ts +1 -1
- package/build/models/entity/booking-details-model.d.ts +1 -1
- package/build/models/entity/booking-entity-model.d.ts +1 -1
- package/build/models/entity/cancellation-policy-model.d.ts +1 -1
- package/build/models/entity/configuration-model.d.ts +1 -1
- 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 +1 -1
- package/build/models/entity/pricing-plan-entity-model.d.ts +2 -2
- package/build/models/entity/subscription-model.d.ts +1 -1
- package/build/models/entity/subscription-model.js +7 -7
- package/build/models/entity/turf-model.d.ts +1 -1
- package/build/models/entity/user-model.d.ts +1 -1
- package/build/models/models.d.ts +4 -0
- package/build/{interface.js → models/models.js} +4 -2
- package/build/types/type.d.ts +4 -0
- package/build/types/type.js +20 -0
- package/package.json +1 -1
- package/build/interface.d.ts +0 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from "./booking-details-status.enum";
|
|
2
|
+
export * from "./booking-history-operation-type.enum";
|
|
3
|
+
export * from "./configuration-key.enum";
|
|
4
|
+
export * from "./cron-jobs-name.enum";
|
|
5
|
+
export * from "./cron-jobs-status.enum";
|
|
6
|
+
export * from "./faqs-status.enum";
|
|
7
|
+
export * from "./modification-discount-policy.enum";
|
|
8
|
+
export * from "./organization-status.enum";
|
|
9
|
+
export * from "./payment-mode.enum";
|
|
10
|
+
export * from "./pitch-status.enum";
|
|
11
|
+
export * from "./pricing-plan-status.enum";
|
|
12
|
+
export * from "./registration-status-enum";
|
|
13
|
+
export * from "./subscription-status.enum";
|
|
14
|
+
export * from "./transaction-type.enum";
|
|
15
|
+
export * from "./user-status.enum";
|
|
16
|
+
export * from "./valid-type.enum";
|
|
@@ -0,0 +1,32 @@
|
|
|
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-status.enum"), exports);
|
|
18
|
+
__exportStar(require("./booking-history-operation-type.enum"), exports);
|
|
19
|
+
__exportStar(require("./configuration-key.enum"), exports);
|
|
20
|
+
__exportStar(require("./cron-jobs-name.enum"), exports);
|
|
21
|
+
__exportStar(require("./cron-jobs-status.enum"), exports);
|
|
22
|
+
__exportStar(require("./faqs-status.enum"), exports);
|
|
23
|
+
__exportStar(require("./modification-discount-policy.enum"), exports);
|
|
24
|
+
__exportStar(require("./organization-status.enum"), exports);
|
|
25
|
+
__exportStar(require("./payment-mode.enum"), exports);
|
|
26
|
+
__exportStar(require("./pitch-status.enum"), exports);
|
|
27
|
+
__exportStar(require("./pricing-plan-status.enum"), exports);
|
|
28
|
+
__exportStar(require("./registration-status-enum"), exports);
|
|
29
|
+
__exportStar(require("./subscription-status.enum"), exports);
|
|
30
|
+
__exportStar(require("./transaction-type.enum"), exports);
|
|
31
|
+
__exportStar(require("./user-status.enum"), exports);
|
|
32
|
+
__exportStar(require("./valid-type.enum"), exports);
|
|
@@ -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,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 = {}));
|
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export * from "./models/booking-code-model";
|
|
2
|
-
export * from "./models/charge-model";
|
|
3
|
-
export * from "./models/time-slot-model";
|
|
4
1
|
export * from "./exceptions/app-badrequest.exception";
|
|
5
2
|
export * from "./types/app-badrequest-exception.type";
|
|
6
3
|
export * from "./types/booking-modification.type";
|
package/build/index.js
CHANGED
|
@@ -14,9 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./models/booking-code-model"), exports);
|
|
18
|
-
__exportStar(require("./models/charge-model"), exports);
|
|
19
|
-
__exportStar(require("./models/time-slot-model"), exports);
|
|
20
17
|
__exportStar(require("./exceptions/app-badrequest.exception"), exports);
|
|
21
18
|
__exportStar(require("./types/app-badrequest-exception.type"), exports);
|
|
22
19
|
__exportStar(require("./types/booking-modification.type"), exports);
|
|
@@ -1,3 +1,23 @@
|
|
|
1
1
|
export * from "./bank-details-entity.interface";
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
2
|
+
export * from "./booking-cancellation-entity.interface";
|
|
3
|
+
export * from "./booking-customer-entity.interface";
|
|
4
|
+
export * from "./booking-details-entity.interface";
|
|
5
|
+
export * from "./booking-history-entity.interface";
|
|
6
|
+
export * from "./booking-payment-history-entity.interface";
|
|
7
|
+
export * from "./bookings-entity.interface";
|
|
8
|
+
export * from "./cancellation-policy-entity.interface";
|
|
9
|
+
export * from "./configurations-entity.interface";
|
|
10
|
+
export * from "./coupon.entity.interface";
|
|
11
|
+
export * from "./cron-jobs-entity.interface";
|
|
12
|
+
export * from "./entity-audit-column.interface";
|
|
13
|
+
export * from "./faqs-entity.interface";
|
|
14
|
+
export * from "./organization-entity.interface";
|
|
15
|
+
export * from "./pitch-entity.interface";
|
|
16
|
+
export * from "./price-entity.interface";
|
|
17
|
+
export * from "./pricing-plan-entity.interface";
|
|
18
|
+
export * from "./pricing-plan-entity.interface";
|
|
19
|
+
export * from "./registration-entity.interface";
|
|
20
|
+
export * from "./subscription-entity.interface";
|
|
21
|
+
export * from "./subscription-pitch-mapping.interface";
|
|
22
|
+
export * from "./turf-entity.interface";
|
|
23
|
+
export * from "./user-entity.interface";
|
|
@@ -17,3 +17,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./bank-details-entity.interface"), exports);
|
|
18
18
|
__exportStar(require("./booking-cancellation-entity.interface"), exports);
|
|
19
19
|
__exportStar(require("./booking-customer-entity.interface"), exports);
|
|
20
|
+
__exportStar(require("./booking-details-entity.interface"), exports);
|
|
21
|
+
__exportStar(require("./booking-history-entity.interface"), exports);
|
|
22
|
+
__exportStar(require("./booking-payment-history-entity.interface"), exports);
|
|
23
|
+
__exportStar(require("./bookings-entity.interface"), exports);
|
|
24
|
+
__exportStar(require("./cancellation-policy-entity.interface"), exports);
|
|
25
|
+
__exportStar(require("./configurations-entity.interface"), exports);
|
|
26
|
+
__exportStar(require("./coupon.entity.interface"), exports);
|
|
27
|
+
__exportStar(require("./cron-jobs-entity.interface"), exports);
|
|
28
|
+
__exportStar(require("./entity-audit-column.interface"), exports);
|
|
29
|
+
__exportStar(require("./faqs-entity.interface"), exports);
|
|
30
|
+
__exportStar(require("./organization-entity.interface"), exports);
|
|
31
|
+
__exportStar(require("./pitch-entity.interface"), exports);
|
|
32
|
+
__exportStar(require("./price-entity.interface"), exports);
|
|
33
|
+
__exportStar(require("./pricing-plan-entity.interface"), exports);
|
|
34
|
+
__exportStar(require("./pricing-plan-entity.interface"), exports);
|
|
35
|
+
__exportStar(require("./registration-entity.interface"), exports);
|
|
36
|
+
__exportStar(require("./subscription-entity.interface"), exports);
|
|
37
|
+
__exportStar(require("./subscription-pitch-mapping.interface"), exports);
|
|
38
|
+
__exportStar(require("./turf-entity.interface"), exports);
|
|
39
|
+
__exportStar(require("./user-entity.interface"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
-
import { PricingPlanStatus } from "../../enums/pricing-plan-status.enum
|
|
2
|
+
import { PricingPlanStatus } from "../../enums/pricing-plan-status.enum";
|
|
3
3
|
export interface IPricingPlanEntity extends IEntityAuditColumn {
|
|
4
4
|
id: number;
|
|
5
5
|
effectiveFrom: Date;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubscriptionStatus } from "
|
|
1
|
+
import { SubscriptionStatus } from "../../enums/subscription-status.enum";
|
|
2
2
|
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
3
3
|
export interface ISubscriptionEntity extends IEntityAuditColumn {
|
|
4
4
|
id: number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./entity";
|
|
2
|
+
export * from "./model";
|
|
3
|
+
export * from "./billing-cycle.interface";
|
|
4
|
+
export * from "./get-booking-codes-per-thirty-min.interface";
|
|
5
|
+
export * from "./get-pricing-plan-by-date-response.interface";
|
|
6
|
+
export * from "./get-turf-entity.interface";
|
|
7
|
+
export * from "./pitch-slab.interface";
|
|
8
|
+
export * from "./pricing-plan.interface";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./entity"), exports);
|
|
18
|
+
__exportStar(require("./model"), exports);
|
|
19
|
+
__exportStar(require("./billing-cycle.interface"), exports);
|
|
20
|
+
__exportStar(require("./get-booking-codes-per-thirty-min.interface"), exports);
|
|
21
|
+
__exportStar(require("./get-pricing-plan-by-date-response.interface"), exports);
|
|
22
|
+
__exportStar(require("./get-turf-entity.interface"), exports);
|
|
23
|
+
__exportStar(require("./pitch-slab.interface"), exports);
|
|
24
|
+
__exportStar(require("./pricing-plan.interface"), exports);
|
|
@@ -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
|
+
export interface IChargeModel {
|
|
2
|
+
initialBookingGrossAmount: number;
|
|
3
|
+
additionalBookingGrossAmount: number;
|
|
4
|
+
cancelledBookingGrossAmount: number;
|
|
5
|
+
totalCancellationCharges: number;
|
|
6
|
+
refundPayable: number;
|
|
7
|
+
netTotal: number;
|
|
8
|
+
amountPaid: number;
|
|
9
|
+
amountPayable: number;
|
|
10
|
+
totalRefundedAmount: number;
|
|
11
|
+
couponCode: string;
|
|
12
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BookingDetailsStatus } from "../../enums/booking-details-status.enum";
|
|
2
|
-
import { IBookingDetailsModel } from "../../interface/booking-details-model.interface";
|
|
2
|
+
import { IBookingDetailsModel } from "../../interface/model/booking-details-model.interface";
|
|
3
3
|
import { IBookingDetailsWithBooking } from "../../types/bookingdetails-with-booking.type";
|
|
4
4
|
import { IBookingDetailsEntity } from "../../interface/entity/booking-details-entity.interface";
|
|
5
5
|
import { IBookingsEntity } from "../../interface/entity/bookings-entity.interface";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBookingsEntityModel } from "../../interface/booking-entity-model.interface";
|
|
1
|
+
import { IBookingsEntityModel } from "../../interface/model/booking-entity-model.interface";
|
|
2
2
|
import { IBookingsEntity } from "../../interface/entity/bookings-entity.interface";
|
|
3
3
|
import { BookingCode } from "../booking-code-model";
|
|
4
4
|
export declare class BookingEntityModel implements IBookingsEntityModel {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICancellationPolicyModel } from "../../interface/cancellation-policy-model.interface";
|
|
1
|
+
import { ICancellationPolicyModel } from "../../interface/model/cancellation-policy-model.interface";
|
|
2
2
|
import { ICancellationPolicyEntity } from "../../interface/entity/cancellation-policy-entity.interface";
|
|
3
3
|
export declare class CancellationPolicyModel implements ICancellationPolicyModel {
|
|
4
4
|
id: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigurationKey } from "../../enums/configuration-key.enum";
|
|
2
|
-
import { IConfigurationsModel } from "../../interface/configuration-model.interface";
|
|
2
|
+
import { IConfigurationsModel } from "../../interface/model/configuration-model.interface";
|
|
3
3
|
import { IConfigurationsEntity } from "../../interface/entity/configurations-entity.interface";
|
|
4
4
|
export declare class ConfigurationsModel implements IConfigurationsModel {
|
|
5
5
|
id: number;
|
|
@@ -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";
|
|
@@ -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"), exports);
|
|
18
|
+
__exportStar(require("./booking-entity-model"), exports);
|
|
19
|
+
__exportStar(require("./booking-payment-history-model"), exports);
|
|
20
|
+
__exportStar(require("./cancellation-policy-model"), exports);
|
|
21
|
+
__exportStar(require("./configuration-model"), exports);
|
|
22
|
+
__exportStar(require("./price-model"), exports);
|
|
23
|
+
__exportStar(require("./pricing-plan-entity-model"), exports);
|
|
24
|
+
__exportStar(require("./subscription-model"), exports);
|
|
25
|
+
__exportStar(require("./turf-model"), exports);
|
|
26
|
+
__exportStar(require("./user-model"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPriceModel } from "../../interface/
|
|
1
|
+
import { IPriceModel } from "../../interface/model";
|
|
2
2
|
import { IPriceEntity } from "../../interface/entity/price-entity.interface";
|
|
3
3
|
export declare class PriceModel implements IPriceModel {
|
|
4
4
|
id: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PricingPlanStatus } from "../../enums/pricing-plan-status.enum
|
|
1
|
+
import { PricingPlanStatus } from "../../enums/pricing-plan-status.enum";
|
|
2
2
|
import { IBillingCycleModel } from "../../interface/billing-cycle.interface";
|
|
3
3
|
import { GetPricingPlanByDateResponse } from "../../interface/get-pricing-plan-by-date-response.interface";
|
|
4
4
|
import { IPitchSlab } from "../../interface/pitch-slab.interface";
|
|
5
|
-
import { IPricingPlanEntityModel } from "../../interface/pricing-plan-entity-model.interface";
|
|
5
|
+
import { IPricingPlanEntityModel } from "../../interface/model/pricing-plan-entity-model.interface";
|
|
6
6
|
import { IPricingPlanEntity } from "../../interface/entity/pricing-plan-entity.interface";
|
|
7
7
|
import { BillingCycleModel } from "../billing-cycle-model";
|
|
8
8
|
import { PricingPlanModel } from "../pricing-plan-model";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubscriptionStatus } from "../../
|
|
1
|
+
import { SubscriptionStatus } from "../../enums/subscription-status.enum";
|
|
2
2
|
import { ISubscriptionEntity, ISubscriptionModel } from "../../interface/entity/subscription-entity.interface";
|
|
3
3
|
export declare class SubscriptionModel implements ISubscriptionModel {
|
|
4
4
|
id: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionModel = void 0;
|
|
4
|
-
var
|
|
4
|
+
var subscription_status_enum_1 = require("../../enums/subscription-status.enum");
|
|
5
5
|
var SubscriptionModel = /** @class */ (function () {
|
|
6
6
|
function SubscriptionModel(data) {
|
|
7
7
|
Object.assign(this, data);
|
|
@@ -37,12 +37,12 @@ var SubscriptionModel = /** @class */ (function () {
|
|
|
37
37
|
SubscriptionModel.prototype.updateStatusIfPaymentDone = function () {
|
|
38
38
|
if (this.isAmountFullyPaid()) {
|
|
39
39
|
this.status =
|
|
40
|
-
this.status ===
|
|
41
|
-
?
|
|
42
|
-
: this.status ===
|
|
43
|
-
?
|
|
44
|
-
: this.status ===
|
|
45
|
-
?
|
|
40
|
+
this.status === subscription_status_enum_1.SubscriptionStatus.UPGRADE_PAYMENT_PENDING
|
|
41
|
+
? subscription_status_enum_1.SubscriptionStatus.UPGRADE_PAYMENT_DONE
|
|
42
|
+
: this.status === subscription_status_enum_1.SubscriptionStatus.UPGRADE_RENEW_PAYMENT_PENDING
|
|
43
|
+
? subscription_status_enum_1.SubscriptionStatus.UPGRADE_RENEW_PAYMENT_DONE
|
|
44
|
+
: this.status === subscription_status_enum_1.SubscriptionStatus.PAYMENT_PENDING
|
|
45
|
+
? subscription_status_enum_1.SubscriptionStatus.PAYMENT_DONE
|
|
46
46
|
: this.status;
|
|
47
47
|
}
|
|
48
48
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IPitchStatus } from "../../enums/pitch-status.enum";
|
|
2
2
|
import { ITurf } from "../../interface/get-turf-entity.interface";
|
|
3
|
-
import { ITurfModel } from "../../interface/turf-model.interface";
|
|
3
|
+
import { ITurfModel } from "../../interface/model/turf-model.interface";
|
|
4
4
|
import { IOrganizationEntity } from "../../interface/entity/organization-entity.interface";
|
|
5
5
|
import { IPitchEntity } from "../../interface/entity/pitch-entity.interface";
|
|
6
6
|
import { ISubscriptionPitchMappingEntity } from "../../interface/entity/subscription-pitch-mapping.interface";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserStatus } from "../../enums/user-status.enum";
|
|
2
2
|
import { UserType } from "../../enums/valid-type.enum";
|
|
3
|
-
import { IUserModel } from "../../interface/user-model.interface";
|
|
3
|
+
import { IUserModel } from "../../interface/model/user-model.interface";
|
|
4
4
|
import { ITurfEntity } from "../../interface/entity/turf-entity.interface";
|
|
5
5
|
import { IUserEntity } from "../../interface/entity/user-entity.interface";
|
|
6
6
|
export declare class UserModel implements IUserModel {
|
|
@@ -14,5 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./booking-code-model"), exports);
|
|
18
|
+
__exportStar(require("./charge-model"), exports);
|
|
19
|
+
__exportStar(require("./time-slot-model"), exports);
|
|
20
|
+
__exportStar(require("./entity/index"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./app-badrequest-exception.type"), exports);
|
|
18
|
+
__exportStar(require("./booking-modification.type"), exports);
|
|
19
|
+
__exportStar(require("./bookingdetails-with-booking.type"), exports);
|
|
20
|
+
__exportStar(require("./date-wise-payment-history-data.types"), exports);
|
package/package.json
CHANGED
package/build/interface.d.ts
DELETED