@meetelise/chat 1.43.42 → 1.45.0
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 +13 -0
- package/dist/src/WebComponent/launcher/Launcher.d.ts +2 -0
- package/dist/src/fetchBuildingUnitsSummary.d.ts +10 -0
- package/dist/src/types/rest-sdk.types.d.ts +4 -1
- package/package.json +1 -1
- package/public/dist/index.js +221 -204
- package/src/WebComponent/Scheduler/tour-scheduler.ts +131 -1
- package/src/WebComponent/launcher/Launcher.ts +5 -1
- package/src/WebComponent/me-chat.ts +2 -0
- package/src/fetchBuildingUnitsSummary.ts +37 -0
- package/src/types/rest-sdk.types.ts +5 -1
|
@@ -6,9 +6,11 @@ import "../me-select.ts";
|
|
|
6
6
|
import { TourAvailabilityResponse, TourAvailabilityResponseRankOrderedSupportedTourTypesEnum } from "../../types/rest-sdk.types";
|
|
7
7
|
import { MESelect } from "../me-select";
|
|
8
8
|
import { LabeledOption } from "../../fetchBuildingInfo";
|
|
9
|
+
import { LayoutOption } from "../../fetchBuildingWebchatView";
|
|
9
10
|
export declare class TourScheduler extends LitElement {
|
|
10
11
|
connectedCallback(): void;
|
|
11
12
|
tourTypeOptions: LabeledOption[];
|
|
13
|
+
layoutOptions: LayoutOption[];
|
|
12
14
|
chatId: string;
|
|
13
15
|
buildingId: number;
|
|
14
16
|
buildingSlug: string;
|
|
@@ -55,14 +57,25 @@ export declare class TourScheduler extends LitElement {
|
|
|
55
57
|
emailInput: HTMLInputElement;
|
|
56
58
|
phoneInput: HTMLInputElement;
|
|
57
59
|
selectedLeadSource: MESelect;
|
|
60
|
+
selectedLayoutEl?: MESelect;
|
|
61
|
+
selectedUnitEl?: MESelect;
|
|
58
62
|
firstNameInputValue: string;
|
|
59
63
|
lastNameInputValue: string;
|
|
60
64
|
leadSourceInputValue: string;
|
|
65
|
+
selectedLayoutValue: string;
|
|
66
|
+
selectedUnitValue: string;
|
|
67
|
+
private units;
|
|
68
|
+
private allowOccupiedUnitTours;
|
|
61
69
|
errorGettingAvailabilities: boolean;
|
|
62
70
|
_setAvailabilities: () => Promise<void>;
|
|
63
71
|
_setDefaultSelectedDateAndTimes: (tourType?: TourAvailabilityResponseRankOrderedSupportedTourTypesEnum, date?: Date) => Promise<void>;
|
|
64
72
|
_getHighestRankedTourType: (availabilities: TourAvailabilityResponse) => TourAvailabilityResponseRankOrderedSupportedTourTypesEnum | null;
|
|
65
73
|
_getTourTypeOffered: (tourType: TourType) => string | null;
|
|
74
|
+
_getUnitOptions: () => {
|
|
75
|
+
label: string;
|
|
76
|
+
value: string;
|
|
77
|
+
}[];
|
|
78
|
+
_fetchUnits: () => Promise<void>;
|
|
66
79
|
firstUpdated: () => Promise<void>;
|
|
67
80
|
protected willUpdate: (_changedProperties: PropertyValueMap<{
|
|
68
81
|
tourType: TourType;
|
|
@@ -7,6 +7,7 @@ import { FeeCalculator } from "../FeeCalculator/fee-calculator";
|
|
|
7
7
|
import { LabeledOption } from "../../fetchBuildingInfo";
|
|
8
8
|
import "./mobile-launcher";
|
|
9
9
|
import "../actions/collapse-expand-button";
|
|
10
|
+
import { LayoutOption } from "../../fetchBuildingWebchatView";
|
|
10
11
|
export declare class Launcher extends LitElement {
|
|
11
12
|
static styles: import("lit").CSSResult;
|
|
12
13
|
isMinimized: boolean;
|
|
@@ -46,6 +47,7 @@ export declare class Launcher extends LitElement {
|
|
|
46
47
|
hasSSTEnabledDesktop: boolean;
|
|
47
48
|
hasSSTEnabledMobile: boolean;
|
|
48
49
|
tourTypeOptions: LabeledOption[];
|
|
50
|
+
layoutOptions: LayoutOption[];
|
|
49
51
|
hasDynamicSchedulingEnabled: boolean;
|
|
50
52
|
hasPricingCalculatorEnabledDesktop: boolean;
|
|
51
53
|
hasPricingCalculatorEnabledMobile: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type UnitSummary = {
|
|
2
|
+
id: string;
|
|
3
|
+
unitNumber: string;
|
|
4
|
+
numberOfBedrooms: number;
|
|
5
|
+
};
|
|
6
|
+
declare type FetchBuildingUnitsSummaryParams = {
|
|
7
|
+
buildingSlug: string;
|
|
8
|
+
};
|
|
9
|
+
declare const fetchBuildingUnitsSummary: ({ buildingSlug, }: FetchBuildingUnitsSummaryParams) => Promise<UnitSummary[]>;
|
|
10
|
+
export default fetchBuildingUnitsSummary;
|
|
@@ -8,4 +8,7 @@ export declare enum TourAvailabilityResponseRankOrderedSupportedTourTypesEnum {
|
|
|
8
8
|
WithAgent = "WITH_AGENT",
|
|
9
9
|
MediaTour = "MEDIA_TOUR"
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
import type { TourAvailabilityResponse as SdkTourAvailabilityResponse } from "@meetelise/rest-sdk";
|
|
12
|
+
export declare type TourAvailabilityResponse = SdkTourAvailabilityResponse & {
|
|
13
|
+
allowOccupiedUnitTours?: boolean;
|
|
14
|
+
};
|