@meetelise/chat 1.49.1 → 1.50.1
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/Scheduler/tour-scheduler.d.ts +1 -0
- package/dist/src/WebComponent/actions/call-us-window.d.ts +1 -0
- package/dist/src/WebComponent/actions/email-us-window.d.ts +1 -0
- package/dist/src/WebComponent/launcher/Launcher.d.ts +1 -0
- package/dist/src/WebComponent/me-chat.d.ts +1 -0
- package/dist/src/disclaimers.d.ts +6 -2
- package/dist/src/fetchBuildingWebchatView.d.ts +10 -0
- package/dist/src/main/MEChat.d.ts +1 -0
- package/dist/src/services/fees/buildBuildingUnitsQuery.d.ts +11 -0
- package/dist/src/services/fees/fetchBuildingUnits.d.ts +3 -4
- package/package.json +1 -1
- package/public/dist/index.js +276 -244
- package/src/WebComponent/FeeCalculator/fee-calculator.ts +3 -12
- package/src/WebComponent/Scheduler/tour-scheduler.ts +6 -0
- package/src/WebComponent/actions/call-us-window.ts +21 -1
- package/src/WebComponent/actions/email-us-window.ts +3 -0
- package/src/WebComponent/launcher/Launcher.ts +5 -0
- package/src/WebComponent/me-chat.ts +9 -5
- package/src/WebComponent/pubnub-chat.ts +1 -0
- package/src/disclaimers.ts +41 -5
- package/src/fetchBuildingWebchatView.ts +27 -6
- package/src/main/MEChat.ts +13 -6
- package/src/services/fees/buildBuildingUnitsQuery.ts +35 -0
- package/src/services/fees/fetchBuildingUnits.test.ts +30 -0
- package/src/services/fees/fetchBuildingUnits.ts +20 -27
|
@@ -14,6 +14,7 @@ export declare class CallUsWindow extends LitElement {
|
|
|
14
14
|
hasTextUsEnabled: string;
|
|
15
15
|
currentLeadSource: string;
|
|
16
16
|
orgLegalName: string;
|
|
17
|
+
country: string | null;
|
|
17
18
|
private leadSourceClient;
|
|
18
19
|
private leadSourceMultitouchClient;
|
|
19
20
|
phoneNumberInputRef: Ref<HTMLInputElement>;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { TemplateResult } from "lit";
|
|
2
|
+
export declare const CANADA_PRIVACY_POLICY_URL = "https://eliseai.com/canada-policy";
|
|
3
|
+
export declare const isCanadianBuilding: (country: string | null | undefined) => boolean;
|
|
2
4
|
export declare const CURRENT_CONSENT_ID = "currentConsentId";
|
|
3
|
-
declare const formDisclaimer: ({ phoneNumberInput, emailInput, orgLegalName, orgSlug, clickingButtonText, }: {
|
|
5
|
+
declare const formDisclaimer: ({ phoneNumberInput, emailInput, orgLegalName, orgSlug, country, clickingButtonText, }: {
|
|
4
6
|
buildingName: string;
|
|
5
7
|
phoneNumberInput?: string | undefined;
|
|
6
8
|
emailInput?: string | undefined;
|
|
7
9
|
orgLegalName: string;
|
|
8
10
|
orgSlug: string;
|
|
11
|
+
country?: string | null | undefined;
|
|
9
12
|
clickingButtonText?: string | undefined;
|
|
10
13
|
}) => TemplateResult;
|
|
11
14
|
export declare const getConsentPreChatDisclaimer: (orgSlug: string | null, privacyPolicyUrl: string, consentKey: string, changeConsent: (hasConsent: boolean) => void) => TemplateResult;
|
|
12
|
-
export declare const inChatThreadDisclaimer: ({ orgSlug, buildingState, type, customAdditionalDisclaimer, }: {
|
|
15
|
+
export declare const inChatThreadDisclaimer: ({ orgSlug, buildingState, buildingCountry, type, customAdditionalDisclaimer, }: {
|
|
13
16
|
orgSlug: string;
|
|
14
17
|
buildingState: string | null;
|
|
18
|
+
buildingCountry?: string | null | undefined;
|
|
15
19
|
type: "healthcare" | "utilities" | "leasing";
|
|
16
20
|
customAdditionalDisclaimer?: string | null | undefined;
|
|
17
21
|
}) => TemplateResult;
|
|
@@ -118,6 +118,7 @@ export interface BuildingWebchatView {
|
|
|
118
118
|
featureFlagWebchatReplaceAnyScheduleTourCtaWebsite: boolean;
|
|
119
119
|
customAdditionalDisclaimer: string | null;
|
|
120
120
|
isAip: boolean;
|
|
121
|
+
country: string | null;
|
|
121
122
|
}
|
|
122
123
|
/**
|
|
123
124
|
* Load the publicly-available info for a building.
|
|
@@ -127,4 +128,13 @@ export interface BuildingWebchatView {
|
|
|
127
128
|
* @returns The building's ID, name, theme, and agent.
|
|
128
129
|
*/
|
|
129
130
|
export default function fetchBuildingWebchatView(orgSlug: string, buildingSlug: string): Promise<BuildingWebchatView>;
|
|
131
|
+
/**
|
|
132
|
+
* Load the org-anchored webchat config for centralized webchat, where the widget
|
|
133
|
+
* is scoped to the organization rather than a single building. The building/group
|
|
134
|
+
* slug on the page is used only for navigation-event tracking, not for config.
|
|
135
|
+
*
|
|
136
|
+
* @param orgSlug - The org slug, e.g. "big-prop-co"
|
|
137
|
+
* @returns The org-level webchat config, in the same shape as a building's.
|
|
138
|
+
*/
|
|
139
|
+
export declare function fetchOrgCentralWebchatView(orgSlug: string): Promise<BuildingWebchatView>;
|
|
130
140
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare type BuildingUnitsQueryParams = {
|
|
2
|
+
numBedrooms?: number[];
|
|
3
|
+
moveInDateString?: string;
|
|
4
|
+
leaseTerm?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const buildBuildingUnitsQuery: ({ numBedrooms, moveInDateString, leaseTerm, }: BuildingUnitsQueryParams) => string;
|
|
7
|
+
export declare const sortUnitsByStartingPrice: <T extends {
|
|
8
|
+
id: number;
|
|
9
|
+
startingPrice: number;
|
|
10
|
+
}>(units: T[]) => T[];
|
|
11
|
+
export {};
|
|
@@ -21,9 +21,8 @@ export declare type Unit = {
|
|
|
21
21
|
declare type FetchPropertyUnitsParams = {
|
|
22
22
|
buildingSlug: string;
|
|
23
23
|
numBedrooms?: number[];
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
leaseTermMin?: number;
|
|
24
|
+
moveInDateString?: string;
|
|
25
|
+
leaseTerm?: number;
|
|
27
26
|
};
|
|
28
|
-
declare const fetchBuildingUnits: ({ buildingSlug, numBedrooms,
|
|
27
|
+
declare const fetchBuildingUnits: ({ buildingSlug, numBedrooms, moveInDateString, leaseTerm, }: FetchPropertyUnitsParams) => Promise<Unit[]>;
|
|
29
28
|
export default fetchBuildingUnits;
|