@meetelise/chat 1.69.1 → 1.69.3
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/SchedulerV2/itinerary-editor.d.ts +6 -0
- package/dist/src/WebComponent/SchedulerV2/tour-scheduler-v2.d.ts +9 -0
- package/dist/src/WebComponent/SchedulerV2/tourItineraryApi.d.ts +6 -0
- package/dist/src/services/fees/utils.d.ts +3 -0
- package/package.json +1 -1
- package/public/dist/index.js +125 -124
- package/src/WebComponent/SchedulerV2/itinerary-editor.ts +14 -3
- package/src/WebComponent/SchedulerV2/tour-scheduler-v2.ts +45 -4
- package/src/WebComponent/SchedulerV2/tourItineraryApi.ts +7 -0
- package/src/services/fees/utils.ts +17 -0
- package/src/tourSchedulerV2Booking.test.ts +120 -5
|
@@ -35,8 +35,14 @@ export declare class ItineraryEditor extends LitElement {
|
|
|
35
35
|
/** The server allows another stop. */
|
|
36
36
|
canAddStop: boolean;
|
|
37
37
|
loading: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The server has planned these choices. Until it has, as after a failed
|
|
40
|
+
* request, empty lists mean nothing is known yet, not that nothing is offered.
|
|
41
|
+
*/
|
|
42
|
+
planned: boolean;
|
|
38
43
|
primaryColor: string;
|
|
39
44
|
foregroundColorOnPrimaryBackgroundColor: string;
|
|
45
|
+
private get offersKnown();
|
|
40
46
|
private editingTimeFor;
|
|
41
47
|
private dragIndex;
|
|
42
48
|
private dropIndex;
|
|
@@ -149,6 +149,15 @@ export declare class TourSchedulerV2 extends LitElement {
|
|
|
149
149
|
private problems;
|
|
150
150
|
private isMultiStop;
|
|
151
151
|
private canSubmit;
|
|
152
|
+
/**
|
|
153
|
+
* What the form offers as a bedroom preference: the bedroom counts listed at
|
|
154
|
+
* the communities on this itinerary. Where the server sent none (a building
|
|
155
|
+
* outside a group, or communities with no listed units), this widget's own
|
|
156
|
+
* building's layouts.
|
|
157
|
+
*/
|
|
158
|
+
private get bedroomOptions();
|
|
159
|
+
/** A preference can only be required where there is one to choose. */
|
|
160
|
+
private get bedroomsRequired();
|
|
152
161
|
private disclaimer;
|
|
153
162
|
/** Today's scheduler's body area, which scrolls the whole sheet on phones. */
|
|
154
163
|
private container;
|
|
@@ -21,6 +21,11 @@ export interface Community {
|
|
|
21
21
|
bedrooms: number;
|
|
22
22
|
amount: number;
|
|
23
23
|
} | null;
|
|
24
|
+
/**
|
|
25
|
+
* Every bedroom count with a listed unit, ascending (0 is a studio). Missing
|
|
26
|
+
* from a server that predates the field.
|
|
27
|
+
*/
|
|
28
|
+
bedrooms?: number[];
|
|
24
29
|
next_available: {
|
|
25
30
|
date: string;
|
|
26
31
|
time: string;
|
|
@@ -37,6 +42,7 @@ export interface CommunitySummary {
|
|
|
37
42
|
name: string;
|
|
38
43
|
address: CommunityAddress | null;
|
|
39
44
|
timezone: string | null;
|
|
45
|
+
bedrooms?: number[];
|
|
40
46
|
}
|
|
41
47
|
export declare const toCommunitySummary: (c: Community) => CommunitySummary;
|
|
42
48
|
export declare const formatAddress: (address: CommunityAddress | null) => string;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
+
import type { LayoutOption } from "../../fetchBuildingWebchatView";
|
|
1
2
|
export declare const layoutToBedrooms: (layout: number) => number;
|
|
3
|
+
/** The layout option for a bedroom count, valued and labelled as a building's own layout options are. */
|
|
4
|
+
export declare const bedroomsToLayoutOption: (bedrooms: number) => LayoutOption;
|