@meetelise/chat 1.43.5 → 1.43.7
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/dist/src/WebComponent/FeeCalculator/components/addons/addon-table/addon-table.d.ts +4 -4
- package/dist/src/WebComponent/FeeCalculator/components/addons/addon-table/index.d.ts +0 -1
- package/dist/src/WebComponent/FeeCalculator/components/addons/addon-table/table-qty-selectors.d.ts +3 -2
- package/dist/src/WebComponent/FeeCalculator/components/charge-inputs/charge-inputs.d.ts +27 -0
- package/dist/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout.d.ts +12 -12
- package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item.d.ts +1 -1
- package/dist/src/WebComponent/FeeCalculator/components/fee-item/grouped-rentable-item.d.ts +0 -1
- package/dist/src/WebComponent/FeeCalculator/components/index.d.ts +1 -0
- package/dist/src/WebComponent/FeeCalculator/fee-calculator.d.ts +6 -5
- package/dist/src/WebComponent/FeeCalculator/model/desired-addon.d.ts +1 -1
- package/dist/src/WebComponent/FeeCalculator/model/fee-quote.d.ts +3 -4
- package/dist/src/WebComponent/FeeCalculator/model/index.d.ts +1 -4
- package/dist/src/WebComponent/FeeCalculator/model/item-combination.d.ts +1 -3
- package/dist/src/WebComponent/FeeCalculator/model/marketable-fee-new.d.ts +75 -0
- package/dist/src/WebComponent/FeeCalculator/model/marketable-fee.d.ts +79 -0
- package/dist/src/WebComponent/FeeCalculator/model/pricing-matrix.d.ts +1 -15
- package/dist/src/WebComponent/FeeCalculator/model/pricing-metadata.d.ts +1 -9
- package/dist/src/WebComponent/FeeCalculator/model/quote.d.ts +16 -2
- package/dist/src/disclaimers.d.ts +2 -1
- package/dist/src/services/fees/calculateQuote.d.ts +13 -3
- package/dist/src/services/fees/fetchBuildingFeesV2.d.ts +2 -2
- package/package.json +1 -1
- package/public/dist/index.js +571 -462
- package/src/WebComponent/FeeCalculator/components/addons/addon-table/addon-table.ts +28 -59
- package/src/WebComponent/FeeCalculator/components/addons/addon-table/index.ts +0 -1
- package/src/WebComponent/FeeCalculator/components/addons/addon-table/table-qty-selectors.ts +7 -10
- package/src/WebComponent/FeeCalculator/components/charge-inputs/charge-inputs.ts +351 -0
- package/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout-styles.ts +26 -0
- package/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout.ts +120 -86
- package/src/WebComponent/FeeCalculator/components/fee-card/fee-card.ts +19 -14
- package/src/WebComponent/FeeCalculator/components/fee-item/fee-item.ts +23 -12
- package/src/WebComponent/FeeCalculator/components/fee-item/grouped-rentable-item.ts +3 -13
- package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.ts +1 -1
- package/src/WebComponent/FeeCalculator/components/index.ts +1 -0
- package/src/WebComponent/FeeCalculator/fee-calculator.ts +57 -64
- package/src/WebComponent/FeeCalculator/model/desired-addon.ts +1 -1
- package/src/WebComponent/FeeCalculator/model/fee-quote.ts +3 -4
- package/src/WebComponent/FeeCalculator/model/index.ts +1 -4
- package/src/WebComponent/FeeCalculator/model/item-combination.ts +2 -12
- package/src/WebComponent/FeeCalculator/model/marketable-fee-new.ts +81 -0
- package/src/WebComponent/FeeCalculator/model/marketable-fee.ts +124 -0
- package/src/WebComponent/FeeCalculator/model/pricing-matrix.ts +3 -39
- package/src/WebComponent/FeeCalculator/model/pricing-metadata.ts +2 -10
- package/src/WebComponent/FeeCalculator/model/quote.ts +16 -2
- package/src/WebComponent/Scheduler/tour-scheduler.ts +3 -0
- package/src/WebComponent/actions/email-us-window.ts +1 -0
- package/src/disclaimers.ts +17 -13
- package/src/services/fees/calculateQuote.ts +17 -8
- package/src/services/fees/downloadQuotePdf.ts +6 -8
- package/src/services/fees/fetchBuildingFeesV2.ts +10 -6
- package/src/utils.ts +1 -1
- package/dist/src/WebComponent/FeeCalculator/components/addons/addon-table/table-matrix-qty-selector-styles.d.ts +0 -1
- package/dist/src/WebComponent/FeeCalculator/components/addons/addon-table/table-matrix-qty-selector.d.ts +0 -23
- package/dist/src/WebComponent/FeeCalculator/model/building-fee-view.d.ts +0 -42
- package/dist/src/WebComponent/FeeCalculator/model/pricing-rule.d.ts +0 -10
- package/dist/src/WebComponent/FeeCalculator/model/pricing-type.d.ts +0 -10
- package/dist/src/services/fees/downloadQuotePdf.d.ts +0 -12
- package/src/WebComponent/FeeCalculator/components/addons/addon-table/table-matrix-qty-selector-styles.ts +0 -82
- package/src/WebComponent/FeeCalculator/components/addons/addon-table/table-matrix-qty-selector.ts +0 -203
- package/src/WebComponent/FeeCalculator/model/building-fee-view.ts +0 -105
- package/src/WebComponent/FeeCalculator/model/pricing-rule.ts +0 -11
- package/src/WebComponent/FeeCalculator/model/pricing-type.ts +0 -11
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { PricingMatrix } from "./pricing-matrix";
|
|
2
|
-
import { PricingRule } from "./pricing-rule";
|
|
3
|
-
|
|
4
|
-
type PricingMatrixJSON = { pricingRules: PricingRule[] };
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
|
-
function isPricingMatrixJSON(obj: any): obj is PricingMatrixJSON {
|
|
8
|
-
return (
|
|
9
|
-
obj &&
|
|
10
|
-
typeof obj === "object" &&
|
|
11
|
-
"pricingRules" in obj &&
|
|
12
|
-
Array.isArray(obj.pricingRules)
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export enum BuildingFeeFrequency {
|
|
17
|
-
OneTime = "One Time",
|
|
18
|
-
Monthly = "Monthly",
|
|
19
|
-
Quarterly = "Quarterly",
|
|
20
|
-
Annually = "Annually",
|
|
21
|
-
PerOccurrence = "Per Occurrence",
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export class BuildingFeeView {
|
|
25
|
-
id?: number;
|
|
26
|
-
buildingId: number;
|
|
27
|
-
feeName: string;
|
|
28
|
-
description?: string;
|
|
29
|
-
category = "Other";
|
|
30
|
-
unitIds?: number[];
|
|
31
|
-
layoutIds?: number[];
|
|
32
|
-
startDate?: Date;
|
|
33
|
-
endDate?: Date;
|
|
34
|
-
source?: string;
|
|
35
|
-
externalKey?: string;
|
|
36
|
-
syncActive = true;
|
|
37
|
-
hiddenReason?: string;
|
|
38
|
-
refundable = false;
|
|
39
|
-
bundleKey?: string;
|
|
40
|
-
publicFacing = true;
|
|
41
|
-
chargeCode?: string;
|
|
42
|
-
prorated?: boolean;
|
|
43
|
-
pricingCategory: "mandatory" | "situational";
|
|
44
|
-
pricingType: "fixed" | "per-item" | "usage-based" | "percent-rent" | "custom";
|
|
45
|
-
frequency: BuildingFeeFrequency;
|
|
46
|
-
nlpPricing?: string;
|
|
47
|
-
isAddon: boolean;
|
|
48
|
-
|
|
49
|
-
// Optional fields that depend on fee type
|
|
50
|
-
amount?: number;
|
|
51
|
-
percentRent?: number;
|
|
52
|
-
unitLabel?: string;
|
|
53
|
-
minAmount?: number;
|
|
54
|
-
maxAmount?: number;
|
|
55
|
-
customMatrixData?: PricingMatrix;
|
|
56
|
-
|
|
57
|
-
constructor(data: Partial<BuildingFeeView> = {}) {
|
|
58
|
-
this.id = data.id;
|
|
59
|
-
this.buildingId = data.buildingId ?? 0;
|
|
60
|
-
this.feeName = data.feeName ?? "";
|
|
61
|
-
this.description = data.description;
|
|
62
|
-
this.category = data.category ?? "Other";
|
|
63
|
-
this.unitIds = data.unitIds;
|
|
64
|
-
this.layoutIds = data.layoutIds;
|
|
65
|
-
this.startDate = data.startDate;
|
|
66
|
-
this.endDate = data.endDate;
|
|
67
|
-
this.source = data.source;
|
|
68
|
-
this.externalKey = data.externalKey;
|
|
69
|
-
this.syncActive = data.syncActive ?? true;
|
|
70
|
-
this.hiddenReason = data.hiddenReason;
|
|
71
|
-
this.refundable = data.refundable ?? false;
|
|
72
|
-
this.bundleKey = data.bundleKey;
|
|
73
|
-
this.publicFacing = data.publicFacing ?? true;
|
|
74
|
-
this.chargeCode = data.chargeCode;
|
|
75
|
-
this.prorated = data.prorated;
|
|
76
|
-
this.pricingCategory = data.pricingCategory ?? "mandatory";
|
|
77
|
-
this.pricingType = data.pricingType ?? "fixed";
|
|
78
|
-
this.frequency = data.frequency ?? BuildingFeeFrequency.OneTime;
|
|
79
|
-
this.nlpPricing = data.nlpPricing;
|
|
80
|
-
this.isAddon = data.isAddon ?? false;
|
|
81
|
-
|
|
82
|
-
// Optional fields
|
|
83
|
-
if (data.amount !== undefined) this.amount = data.amount;
|
|
84
|
-
if (data.percentRent !== undefined) this.percentRent = data.percentRent;
|
|
85
|
-
if (data.unitLabel !== undefined) this.unitLabel = data.unitLabel;
|
|
86
|
-
if (data.minAmount !== undefined) this.minAmount = data.minAmount;
|
|
87
|
-
if (data.maxAmount !== undefined) this.maxAmount = data.maxAmount;
|
|
88
|
-
|
|
89
|
-
const rawMatrixData = data.customMatrixData;
|
|
90
|
-
|
|
91
|
-
if (rawMatrixData instanceof PricingMatrix) {
|
|
92
|
-
this.customMatrixData = rawMatrixData;
|
|
93
|
-
} else if (isPricingMatrixJSON(rawMatrixData)) {
|
|
94
|
-
this.customMatrixData = PricingMatrix.fromJSON(rawMatrixData);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
get isOptional(): boolean {
|
|
99
|
-
return this.pricingCategory === "situational";
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
get hasMatrix(): boolean {
|
|
103
|
-
return !!this.customMatrixData;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ItemCombination } from "./item-combination";
|
|
2
|
-
|
|
3
|
-
export interface PricingRule {
|
|
4
|
-
combination: ItemCombination;
|
|
5
|
-
price?: number;
|
|
6
|
-
percentRent?: number;
|
|
7
|
-
percentRentMin?: number;
|
|
8
|
-
percentRentMax?: number;
|
|
9
|
-
minimumPrice?: number;
|
|
10
|
-
maximumPrice?: number;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
enum PricingType {
|
|
2
|
-
FIXED = "FIXED",
|
|
3
|
-
USAGE_BASED = "USAGE_BASED",
|
|
4
|
-
PERCENT_RENT = "PERCENT_RENT",
|
|
5
|
-
PER_ITEM = "PER_ITEM",
|
|
6
|
-
CUSTOM = "CUSTOM",
|
|
7
|
-
FIXED_MAX_PERCENT_RENT = "FIXED_MAX_PERCENT_RENT",
|
|
8
|
-
FIXED_MIN_PERCENT_RENT = "FIXED_MIN_PERCENT_RENT",
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default PricingType;
|