@meetelise/chat 1.68.0 → 1.69.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/MyPubnub.d.ts +2 -0
- package/dist/src/WebComponent/SchedulerV2/tourItineraryApi.d.ts +2 -1
- package/dist/src/WebComponent/launcher/Launcher.d.ts +11 -0
- package/dist/src/WebComponent/me-chat.d.ts +4 -0
- package/dist/src/fetchFeatureFlag.d.ts +2 -0
- package/package.json +1 -1
- package/public/dist/index.js +2077 -912
- package/src/MyPubnub.ts +5 -0
- package/src/WebComponent/SchedulerV2/schedulerRequests.ts +1 -1
- package/src/WebComponent/SchedulerV2/tourItineraryApi.ts +2 -1
- package/src/WebComponent/launcher/Launcher.ts +63 -3
- package/src/WebComponent/me-chat.ts +13 -0
- package/src/fetchFeatureFlag.ts +20 -0
- package/src/tourSchedulerV2Booking.test.ts +480 -0
- package/src/tourSchedulerV2Rollout.test.ts +190 -0
package/dist/src/MyPubnub.d.ts
CHANGED
|
@@ -118,6 +118,8 @@ declare class MyPubnub {
|
|
|
118
118
|
isFirstChatMessageSent: boolean;
|
|
119
119
|
private streamingMessageTimeout;
|
|
120
120
|
constructor(buildingSlug: string, buildingDetails: BuildingWebchatView | null, orgSlug: string, leadSource: string | null | undefined, leadUserId: string, leadSourceMultitouchClient: LeadSourceMultitouchClient | null, leadSourceClient?: LeadSourceClient | null, widgetType?: WidgetType);
|
|
121
|
+
/** The /webchat/init session token, once the session exists. */
|
|
122
|
+
getSessionToken(): string | null;
|
|
121
123
|
initSession(buildingSlug: string, orgSlug: string, existingLeadId?: string): Promise<{
|
|
122
124
|
session_token: string;
|
|
123
125
|
lead_id: string;
|
|
@@ -77,7 +77,8 @@ export interface PlanRequest {
|
|
|
77
77
|
tour_type: TourTypeId;
|
|
78
78
|
date: string;
|
|
79
79
|
start_time: string | null;
|
|
80
|
-
|
|
80
|
+
/** Times picked for later stops, by building id; empty when none are picked. */
|
|
81
|
+
stop_starts: Record<string, string>;
|
|
81
82
|
fixed_first: {
|
|
82
83
|
calendar_event_id: number;
|
|
83
84
|
} | null;
|
|
@@ -3,6 +3,8 @@ import { Ref } from "lit/directives/ref.js";
|
|
|
3
3
|
import { EmailUsWindow } from "../actions/email-us-window";
|
|
4
4
|
import { StyleInfo } from "lit/directives/style-map.js";
|
|
5
5
|
import { TourScheduler } from "../Scheduler/tour-scheduler";
|
|
6
|
+
import "../SchedulerV2/tour-scheduler-v2";
|
|
7
|
+
import type { TourSchedulerV2 } from "../SchedulerV2/tour-scheduler-v2";
|
|
6
8
|
import { FeeCalculator } from "../FeeCalculator/fee-calculator";
|
|
7
9
|
import { LabeledOption } from "../../fetchBuildingInfo";
|
|
8
10
|
import "./mobile-launcher";
|
|
@@ -57,6 +59,9 @@ export declare class Launcher extends LitElement {
|
|
|
57
59
|
layoutOptions: LayoutOption[];
|
|
58
60
|
bedroomPreferenceRequired: boolean;
|
|
59
61
|
brokerIntakeEnabled: boolean;
|
|
62
|
+
/** The building is on the `webchat_tour_scheduler_v2` rollout. */
|
|
63
|
+
tourSchedulerV2: boolean;
|
|
64
|
+
getSessionToken: () => string | null;
|
|
60
65
|
hasDynamicSchedulingEnabled: boolean;
|
|
61
66
|
hasPricingCalculatorEnabledDesktop: boolean;
|
|
62
67
|
hasPricingCalculatorEnabledMobile: boolean;
|
|
@@ -92,6 +97,12 @@ export declare class Launcher extends LitElement {
|
|
|
92
97
|
getNumCallToActions: () => number;
|
|
93
98
|
emailUsWindowRef: Ref<EmailUsWindow>;
|
|
94
99
|
tourSchedulerRef: Ref<TourScheduler>;
|
|
100
|
+
tourSchedulerV2Ref: Ref<TourSchedulerV2>;
|
|
101
|
+
/**
|
|
102
|
+
* Which scheduler the open window shows, fixed when it opens so that the
|
|
103
|
+
* rollout answer arriving later can't swap it mid-booking.
|
|
104
|
+
*/
|
|
105
|
+
private sstWindowIsV2;
|
|
95
106
|
calculatorWindowRef: Ref<FeeCalculator>;
|
|
96
107
|
willUpdate(changedProperties: PropertyValues<this>): void;
|
|
97
108
|
updated: () => Promise<void>;
|
|
@@ -49,6 +49,8 @@ export declare class MEChat extends LitElement {
|
|
|
49
49
|
private currentLeadSource;
|
|
50
50
|
private featureFlagShowDropdown;
|
|
51
51
|
private bedroomPreferenceRequired;
|
|
52
|
+
/** The building is on the `webchat_tour_scheduler_v2` rollout. */
|
|
53
|
+
private tourSchedulerV2;
|
|
52
54
|
private brokerIntakeEnabled;
|
|
53
55
|
private phoneNumberForSource;
|
|
54
56
|
private hasMounted;
|
|
@@ -61,6 +63,8 @@ export declare class MEChat extends LitElement {
|
|
|
61
63
|
/** Set only for a user-initiated open, so auto-open does not steal focus. */
|
|
62
64
|
private focusChatOnMount;
|
|
63
65
|
private myPubnub;
|
|
66
|
+
/** For the v2 tour scheduler, which calls the session-authenticated endpoints. */
|
|
67
|
+
private getSessionToken;
|
|
64
68
|
private LeadSourceClient;
|
|
65
69
|
private LeadSourceMultitouchClient;
|
|
66
70
|
private sampleRateToUse;
|
|
@@ -9,5 +9,7 @@ export declare function fetchFeatureFlagShowUtilities(orgSlug: string): Promise<
|
|
|
9
9
|
export declare function fetchFeatureFlagUseApplicationsLinkReplacement(buildingSlug: string): Promise<boolean>;
|
|
10
10
|
export declare function fetchTrackedRolloutBedroomPreferenceRequired(buildingSlug: string): Promise<boolean>;
|
|
11
11
|
export declare function fetchTrackedRolloutCoastalCustomTourTypes(buildingSlug: string): Promise<boolean>;
|
|
12
|
+
/** Whether the building shows the rebuilt tour scheduler (<tour-scheduler-v2>) instead of today's. */
|
|
13
|
+
export declare function fetchTrackedRolloutTourSchedulerV2(buildingSlug: string): Promise<boolean>;
|
|
12
14
|
/** Whether brokers are on for the building (the broker_rollout rollout), so the email form offers the broker referral fields. */
|
|
13
15
|
export declare function fetchTrackedRolloutBrokerIntake(buildingSlug: string): Promise<boolean>;
|