turf-common 1.0.16-beta.14 → 1.0.16-beta.15

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.
@@ -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,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,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,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,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,28 @@
1
+ import { PricingPlanStatus } from "../../enums/pricing-plan-status.enum";
2
+ import { IBillingCycle } from "../../interface/billing-cycle.interface";
3
+ import { GetPricingPlanByDateResponse } from "../../interface/get-pricing-plan-by-date-response.interface";
4
+ import { IPitchSlab } from "../../interface/pitch-slab.interface";
5
+ import { IPringPlanModel } from "../../interface/pricing-plan-model.interface";
6
+ import { IEntityAuditColumn } from "./entity-audit-column.type";
7
+ export interface IPricingPlanEntity extends IEntityAuditColumn {
8
+ id: number;
9
+ effectiveFrom: Date;
10
+ effectiveTo: Date;
11
+ costCode: string;
12
+ status: PricingPlanStatus;
13
+ createdBy: number;
14
+ createdOn: Date;
15
+ updatedBy: number;
16
+ updatedOn: Date;
17
+ basePrice: number;
18
+ billingCycle: string;
19
+ unit: string;
20
+ getBillingCycleKeys(): string[];
21
+ toModel(): IPringPlanModel;
22
+ arrayToIndexedObject<T>(arr: T[]): {
23
+ [key: string]: T;
24
+ };
25
+ toObject(): GetPricingPlanByDateResponse;
26
+ toPitchSlabs(): IPitchSlab[];
27
+ toBillingCycles(): IBillingCycle[];
28
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.0.16-beta.14",
3
+ "version": "1.0.16-beta.15",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",