turf-common 1.0.16-beta.30 → 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/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/interface/billing-cycle.interface.d.ts +1 -1
- package/build/interface/booking-details-model.interface.d.ts +1 -1
- package/build/interface/booking-entity-model.interface.d.ts +1 -1
- package/build/interface/cancellation-policy-model.interface.d.ts +1 -1
- package/build/interface/configuration-model.interface.d.ts +1 -1
- 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/price-model.interface.d.ts +1 -1
- package/build/interface/pricing-plan-entity-model.interface.d.ts +1 -1
- package/build/interface/pricing-plan-model.interface.d.ts +2 -2
- package/build/interface/pricing-plan.interface.d.ts +3 -3
- package/build/interface/turf-model.interface.d.ts +1 -1
- package/build/interface/user-model.interface.d.ts +1 -1
- package/build/models/billing-cycle-model.d.ts +3 -3
- 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/pricing-plan-model.d.ts +3 -3
- package/build/models/subscribed-pricing-plan-model.d.ts +2 -2
- package/package.json +1 -1
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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChargesModel } from "../models/charge-model";
|
|
2
|
-
import { IBookingDetailsEntity } from "
|
|
2
|
+
import { IBookingDetailsEntity } from "./entity/booking-details-entity.interface";
|
|
3
3
|
export interface IBookingDetailsModel extends IBookingDetailsEntity {
|
|
4
4
|
assignCharges(chargeModel: ChargesModel): void;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BookingCode } from "../models/booking-code-model";
|
|
2
|
-
import { IBookingsEntity } from "
|
|
2
|
+
import { IBookingsEntity } from "./entity/bookings-entity.interface";
|
|
3
3
|
export interface IBookingsEntityModel extends IBookingsEntity {
|
|
4
4
|
getTotalCost(): number;
|
|
5
5
|
getBookingTimeInMinutes(): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICancellationPolicyEntity } from "
|
|
1
|
+
import { ICancellationPolicyEntity } from "./entity/cancellation-policy-entity.interface";
|
|
2
2
|
export interface ICancellationPolicyModel extends ICancellationPolicyEntity {
|
|
3
3
|
unitOfCharges(): string;
|
|
4
4
|
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IEntityAuditColumn {
|
|
2
|
+
createdOn: Date;
|
|
3
|
+
updatedOn: Date;
|
|
4
|
+
createdBy: number;
|
|
5
|
+
updatedBy: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class EntityAuditColumnModel implements IEntityAuditColumn {
|
|
8
|
+
createdOn: Date;
|
|
9
|
+
updatedOn: Date;
|
|
10
|
+
createdBy: number;
|
|
11
|
+
updatedBy: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityAuditColumnModel = void 0;
|
|
4
|
+
var EntityAuditColumnModel = /** @class */ (function () {
|
|
5
|
+
function EntityAuditColumnModel() {
|
|
6
|
+
}
|
|
7
|
+
return EntityAuditColumnModel;
|
|
8
|
+
}());
|
|
9
|
+
exports.EntityAuditColumnModel = EntityAuditColumnModel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FaqsStatus } from "../../enums/faqs-status.enum";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
3
|
+
export interface IFaqsEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
index: number;
|
|
6
|
+
status: FaqsStatus;
|
|
7
|
+
module: string;
|
|
8
|
+
question: string;
|
|
9
|
+
steps: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./bank-details-entity.interface"), exports);
|
|
18
|
+
__exportStar(require("./booking-cancellation-entity.interface"), exports);
|
|
19
|
+
__exportStar(require("./booking-customer-entity.interface"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OrganizationStatus } from "../../enums/organization-status.enum";
|
|
2
|
+
import { ICouponEntity } from "./coupon.entity.interface";
|
|
3
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
4
|
+
import { ITurfEntity } from "./turf-entity.interface";
|
|
5
|
+
export interface IOrganizationEntity extends IEntityAuditColumn, IOrganizationEntityRel {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
email: string;
|
|
9
|
+
contact_no: string;
|
|
10
|
+
type: string;
|
|
11
|
+
pan_no: string;
|
|
12
|
+
pan_file_path: string;
|
|
13
|
+
gst_no: string;
|
|
14
|
+
gst_file_path: string;
|
|
15
|
+
deed: string;
|
|
16
|
+
deed_file_path: string;
|
|
17
|
+
status: OrganizationStatus;
|
|
18
|
+
registrationId: number;
|
|
19
|
+
}
|
|
20
|
+
export interface IOrganizationEntityRel {
|
|
21
|
+
turfs: ITurfEntity[];
|
|
22
|
+
coupon: ICouponEntity[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { ITurfEntity } from "./turf-entity.interface";
|
|
3
|
+
export interface IPitchEntity extends IEntityAuditColumn {
|
|
4
|
+
turf: ITurfEntity;
|
|
5
|
+
number: number;
|
|
6
|
+
name: string;
|
|
7
|
+
status: string;
|
|
8
|
+
sports: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { PricingPlanStatus } from "../../enums/pricing-plan-status.enum copy";
|
|
3
|
+
export interface IPricingPlanEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
effectiveFrom: Date;
|
|
6
|
+
effectiveTo: Date;
|
|
7
|
+
costCode: string;
|
|
8
|
+
status: PricingPlanStatus;
|
|
9
|
+
createdBy: number;
|
|
10
|
+
createdOn: Date;
|
|
11
|
+
updatedBy: number;
|
|
12
|
+
updatedOn: Date;
|
|
13
|
+
basePrice: number;
|
|
14
|
+
billingCycle: string;
|
|
15
|
+
unit: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RegistrationStatus } from "../../enums/registration-status-enum";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
3
|
+
export interface IRegistrationEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
contact: string;
|
|
7
|
+
email: string;
|
|
8
|
+
pitchPlan: string;
|
|
9
|
+
status: RegistrationStatus;
|
|
10
|
+
comments: string;
|
|
11
|
+
token: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SubscriptionStatus } from "../subscription-status.interface";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
3
|
+
export interface ISubscriptionEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
organizationId: number;
|
|
6
|
+
from: Date;
|
|
7
|
+
to: Date;
|
|
8
|
+
type: string;
|
|
9
|
+
grossAmount: number;
|
|
10
|
+
discount: string;
|
|
11
|
+
netAmount: number;
|
|
12
|
+
amountPaid: number;
|
|
13
|
+
status: SubscriptionStatus;
|
|
14
|
+
noOfPitches: number;
|
|
15
|
+
remarks: string;
|
|
16
|
+
registrationId: number;
|
|
17
|
+
pricingPlanId: number;
|
|
18
|
+
previousSubscriptionIds: string;
|
|
19
|
+
}
|
|
20
|
+
export type ISubscriptionModel = ISubscriptionEntity;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { IOrganizationEntity } from "./organization-entity.interface";
|
|
3
|
+
import { IPitchEntity } from "./pitch-entity.interface";
|
|
4
|
+
import { IUserEntity } from "./user-entity.interface";
|
|
5
|
+
export interface ITurfEntity extends IEntityAuditColumn, ITurfEntityRel {
|
|
6
|
+
id: number;
|
|
7
|
+
turfName: string;
|
|
8
|
+
numberOfPitches: number;
|
|
9
|
+
address: string;
|
|
10
|
+
org_id: number;
|
|
11
|
+
adhocRefund: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ITurfEntityRel {
|
|
14
|
+
pitches: IPitchEntity[];
|
|
15
|
+
organization: IOrganizationEntity;
|
|
16
|
+
Users: IUserEntity[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-column.interface";
|
|
2
|
+
import { UserStatus } from "../../enums/user-status.enum";
|
|
3
|
+
import { UserType } from "../../enums/valid-type.enum";
|
|
4
|
+
import { ITurfEntity } from "./turf-entity.interface";
|
|
5
|
+
export interface IUserEntity extends IEntityAuditColumn, IUserEntityRel {
|
|
6
|
+
id: number;
|
|
7
|
+
firstname: string;
|
|
8
|
+
lastname: string;
|
|
9
|
+
phone: string;
|
|
10
|
+
password: string;
|
|
11
|
+
email: string;
|
|
12
|
+
status: UserStatus;
|
|
13
|
+
is_email_verified: boolean;
|
|
14
|
+
is_mobile_verified: boolean;
|
|
15
|
+
is_account_verified: boolean;
|
|
16
|
+
require_new_password: boolean;
|
|
17
|
+
organization_id: number;
|
|
18
|
+
type: UserType;
|
|
19
|
+
registrationId: number;
|
|
20
|
+
comments: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IUserEntityRel {
|
|
23
|
+
turf: ITurfEntity[];
|
|
24
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PricingPlanModel } from "../models/pricing-plan-model";
|
|
2
|
-
import { IPricingPlanEntity } from "
|
|
2
|
+
import { IPricingPlanEntity } from "./entity/pricing-plan-entity.interface";
|
|
3
3
|
import { GetPricingPlanByDateResponse } from "./get-pricing-plan-by-date-response.interface";
|
|
4
4
|
import { IPitchSlab } from "./pitch-slab.interface";
|
|
5
5
|
export interface IPricingPlanEntityModel extends IPricingPlanEntity {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IBillingCycleModel } from "./billing-cycle.interface";
|
|
2
2
|
import { IPitchSlab } from "./pitch-slab.interface";
|
|
3
3
|
export interface IPringPlanModel {
|
|
4
4
|
id: number;
|
|
@@ -10,6 +10,6 @@ export interface IPringPlanModel {
|
|
|
10
10
|
[key: string]: IPitchSlab;
|
|
11
11
|
};
|
|
12
12
|
billing_cycle: {
|
|
13
|
-
[key: string]:
|
|
13
|
+
[key: string]: IBillingCycleModel;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IBillingCycleModel } from "./billing-cycle.interface";
|
|
2
2
|
import { IPitchSlab } from "./pitch-slab.interface";
|
|
3
|
-
export interface
|
|
3
|
+
export interface IPricingPlanModel {
|
|
4
4
|
id: number;
|
|
5
5
|
effective_from_date: number;
|
|
6
6
|
effective_to_date: number;
|
|
@@ -10,6 +10,6 @@ export interface IPricingPlan {
|
|
|
10
10
|
[key: string]: IPitchSlab;
|
|
11
11
|
};
|
|
12
12
|
billing_cycle: {
|
|
13
|
-
[key: string]:
|
|
13
|
+
[key: string]: IBillingCycleModel;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IPitchStatus } from "../enums/pitch-status.enum";
|
|
2
|
-
import { ITurfEntity } from "
|
|
2
|
+
import { ITurfEntity } from "./entity/turf-entity.interface";
|
|
3
3
|
import { ITurf } from "./get-turf-entity.interface";
|
|
4
4
|
export interface ITurfModel extends ITurfEntity {
|
|
5
5
|
getPitchStatusCount(): IPitchStatus;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class BillingCycleModel implements
|
|
1
|
+
import { IBillingCycleModel } from "../interface/billing-cycle.interface";
|
|
2
|
+
export declare class BillingCycleModel implements IBillingCycleModel {
|
|
3
3
|
from: number;
|
|
4
4
|
to: number;
|
|
5
5
|
discount: string;
|
|
6
6
|
name: string;
|
|
7
7
|
key: string;
|
|
8
|
-
constructor(data:
|
|
8
|
+
constructor(data: IBillingCycleModel);
|
|
9
9
|
getDiscount(): number;
|
|
10
10
|
}
|