@meetelise/chat 1.44.0 → 1.46.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.
@@ -58,16 +58,32 @@ export declare class TourScheduler extends LitElement {
58
58
  phoneInput: HTMLInputElement;
59
59
  selectedLeadSource: MESelect;
60
60
  selectedLayoutEl?: MESelect;
61
+ selectedUnitEl?: MESelect;
61
62
  firstNameInputValue: string;
62
63
  lastNameInputValue: string;
63
64
  leadSourceInputValue: string;
64
65
  selectedLayoutValue: string;
66
+ selectedUnitValue: string;
67
+ private units;
68
+ private allowOccupiedUnitTours;
65
69
  errorGettingAvailabilities: boolean;
70
+ private centralConvoBuildings;
71
+ selectedBuildingEl?: MESelect;
72
+ private statusMessage;
66
73
  _setAvailabilities: () => Promise<void>;
67
74
  _setDefaultSelectedDateAndTimes: (tourType?: TourAvailabilityResponseRankOrderedSupportedTourTypesEnum, date?: Date) => Promise<void>;
68
75
  _getHighestRankedTourType: (availabilities: TourAvailabilityResponse) => TourAvailabilityResponseRankOrderedSupportedTourTypesEnum | null;
69
76
  _getTourTypeOffered: (tourType: TourType) => string | null;
77
+ _getUnitOptions: () => {
78
+ label: string;
79
+ value: string;
80
+ }[];
81
+ _fetchUnits: () => Promise<void>;
70
82
  firstUpdated: () => Promise<void>;
83
+ private _loadForCurrentBuilding;
84
+ private _fetchCentralConvoBuildings;
85
+ private _onBuildingChange;
86
+ buildingSelector(): TemplateResult | string;
71
87
  protected willUpdate: (_changedProperties: PropertyValueMap<{
72
88
  tourType: TourType;
73
89
  }> | Map<PropertyKey, unknown>) => Promise<void>;
@@ -105,6 +121,7 @@ export declare class TourScheduler extends LitElement {
105
121
  confirmationMessage(): TemplateResult;
106
122
  loadingIcon(size?: number): TemplateResult;
107
123
  render(): TemplateResult;
124
+ private renderBody;
108
125
  }
109
126
  export declare enum TourType {
110
127
  Guided = "guided",
@@ -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;
@@ -0,0 +1,14 @@
1
+ export interface CentralConvoBuilding {
2
+ building_id: number;
3
+ name: string;
4
+ slug: string;
5
+ }
6
+ /**
7
+ * Fetch the buildings that belong to the same central conversation group as the
8
+ * current building. Returns an empty array when the building is not part of a
9
+ * central conversation group (in which case no building selector is shown).
10
+ *
11
+ * @param orgSlug - The org slug, e.g. "big-prop-co"
12
+ * @param buildingSlug - The current building's slug, e.g. "gravity-falls"
13
+ */
14
+ export default function fetchCentralConvoBuildings(orgSlug: string, buildingSlug: string): Promise<CentralConvoBuilding[]>;
@@ -8,4 +8,7 @@ export declare enum TourAvailabilityResponseRankOrderedSupportedTourTypesEnum {
8
8
  WithAgent = "WITH_AGENT",
9
9
  MediaTour = "MEDIA_TOUR"
10
10
  }
11
- export type { TourAvailabilityResponse } from "@meetelise/rest-sdk";
11
+ import type { TourAvailabilityResponse as SdkTourAvailabilityResponse } from "@meetelise/rest-sdk";
12
+ export declare type TourAvailabilityResponse = SdkTourAvailabilityResponse & {
13
+ allowOccupiedUnitTours?: boolean;
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.44.0",
3
+ "version": "1.46.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/MeetElise/chat-ui#readme",