@meetelise/chat 1.25.1 → 1.25.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.
Files changed (217) hide show
  1. package/package.json +1 -1
  2. package/.prettierignore +0 -2
  3. package/coverage/lcov-report/base.css +0 -224
  4. package/coverage/lcov-report/block-navigation.js +0 -79
  5. package/coverage/lcov-report/favicon.png +0 -0
  6. package/coverage/lcov-report/index.html +0 -111
  7. package/coverage/lcov-report/index.js.html +0 -17093
  8. package/coverage/lcov-report/prettify.css +0 -1
  9. package/coverage/lcov-report/prettify.js +0 -2
  10. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  11. package/coverage/lcov-report/sorter.js +0 -170
  12. package/coverage/lcov.info +0 -9986
  13. package/dist/src/MyPubnub.d.ts +0 -116
  14. package/dist/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section-styles.d.ts +0 -2
  15. package/dist/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section.d.ts +0 -20
  16. package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item-styles.d.ts +0 -2
  17. package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item.d.ts +0 -14
  18. package/dist/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.d.ts +0 -2
  19. package/dist/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.d.ts +0 -17
  20. package/dist/src/WebComponent/FeeCalculator/components/index.d.ts +0 -3
  21. package/dist/src/WebComponent/FeeCalculator/components/promo-card/promo-card-styles.d.ts +0 -2
  22. package/dist/src/WebComponent/FeeCalculator/components/promo-card/promo-card.d.ts +0 -13
  23. package/dist/src/WebComponent/FeeCalculator/fee-calculator-styles.d.ts +0 -1
  24. package/dist/src/WebComponent/FeeCalculator/fee-calculator.d.ts +0 -31
  25. package/dist/src/WebComponent/FeeCalculator/index.d.ts +0 -2
  26. package/dist/src/WebComponent/FeeCalculator/model/building-fee.d.ts +0 -75
  27. package/dist/src/WebComponent/FeeCalculator/model/transaction-category.d.ts +0 -23
  28. package/dist/src/WebComponent/LeadSourceClient.d.ts +0 -46
  29. package/dist/src/WebComponent/OfficeHours.d.ts +0 -21
  30. package/dist/src/WebComponent/Scheduler/date-picker.d.ts +0 -28
  31. package/dist/src/WebComponent/Scheduler/time-picker.d.ts +0 -14
  32. package/dist/src/WebComponent/Scheduler/tour-scheduler.d.ts +0 -99
  33. package/dist/src/WebComponent/Scheduler/tour-type-option.d.ts +0 -13
  34. package/dist/src/WebComponent/Scheduler/tourSchedulerStyles.d.ts +0 -1
  35. package/dist/src/WebComponent/actions/InputStyles.d.ts +0 -1
  36. package/dist/src/WebComponent/actions/action-confirm-button.d.ts +0 -13
  37. package/dist/src/WebComponent/actions/call-us-window.d.ts +0 -37
  38. package/dist/src/WebComponent/actions/collapse-expand-button.d.ts +0 -8
  39. package/dist/src/WebComponent/actions/details-window.d.ts +0 -14
  40. package/dist/src/WebComponent/actions/email-us-window.d.ts +0 -46
  41. package/dist/src/WebComponent/actions/formatPhoneNumber.d.ts +0 -17
  42. package/dist/src/WebComponent/actions/minimize-expand-button.d.ts +0 -8
  43. package/dist/src/WebComponent/chat-additional-actions.d.ts +0 -28
  44. package/dist/src/WebComponent/health-chat.d.ts +0 -47
  45. package/dist/src/WebComponent/healthchat-styles.d.ts +0 -1
  46. package/dist/src/WebComponent/icons/ApplyOutlineIcon.d.ts +0 -2
  47. package/dist/src/WebComponent/icons/BookTourOutlineIcon.d.ts +0 -2
  48. package/dist/src/WebComponent/icons/CalculatorOutlineIcon.d.ts +0 -2
  49. package/dist/src/WebComponent/icons/ChatOutlineIcon.d.ts +0 -2
  50. package/dist/src/WebComponent/icons/ChevronLeftIcon.d.ts +0 -2
  51. package/dist/src/WebComponent/icons/ChevronRightIcon.d.ts +0 -2
  52. package/dist/src/WebComponent/icons/ContactResidentIcon.d.ts +0 -2
  53. package/dist/src/WebComponent/icons/DollarOutlineIcon.d.ts +0 -3
  54. package/dist/src/WebComponent/icons/EmailOutlineIcon.d.ts +0 -2
  55. package/dist/src/WebComponent/icons/HeyThereEmojiIcon.d.ts +0 -2
  56. package/dist/src/WebComponent/icons/PhoneOutlineIcon.d.ts +0 -2
  57. package/dist/src/WebComponent/icons/SendMessageIcon.d.ts +0 -3
  58. package/dist/src/WebComponent/icons/TourSelfGuidedIcon.d.ts +0 -2
  59. package/dist/src/WebComponent/icons/TourVirtuallyIcon.d.ts +0 -2
  60. package/dist/src/WebComponent/icons/TourWithAgentIcon.d.ts +0 -2
  61. package/dist/src/WebComponent/icons/XOutlineIcon.d.ts +0 -2
  62. package/dist/src/WebComponent/index.d.ts +0 -2
  63. package/dist/src/WebComponent/launcher/Launcher.d.ts +0 -98
  64. package/dist/src/WebComponent/launcher/launcherStyles.d.ts +0 -1
  65. package/dist/src/WebComponent/launcher/mobile-launcher.d.ts +0 -26
  66. package/dist/src/WebComponent/launcher/typeEmojiStyles.d.ts +0 -1
  67. package/dist/src/WebComponent/launcher/typeMiniStyles.d.ts +0 -1
  68. package/dist/src/WebComponent/launcher/typeMobileStyles.d.ts +0 -1
  69. package/dist/src/WebComponent/leasing-chat-styles.d.ts +0 -1
  70. package/dist/src/WebComponent/me-chat.d.ts +0 -91
  71. package/dist/src/WebComponent/me-select.d.ts +0 -24
  72. package/dist/src/WebComponent/mini-loader.d.ts +0 -5
  73. package/dist/src/WebComponent/pubnub-chat-styles.d.ts +0 -1
  74. package/dist/src/WebComponent/pubnub-chat.d.ts +0 -49
  75. package/dist/src/WebComponent/pubnub-media.d.ts +0 -14
  76. package/dist/src/WebComponent/pubnub-message-styles.d.ts +0 -1
  77. package/dist/src/WebComponent/pubnub-message.d.ts +0 -39
  78. package/dist/src/WebComponent/simple-launcher/simple-launcher-styles.d.ts +0 -1
  79. package/dist/src/WebComponent/simple-launcher/simple-launcher.d.ts +0 -12
  80. package/dist/src/WebComponent/utilities-chat.d.ts +0 -47
  81. package/dist/src/WebComponent/utilities-styles.d.ts +0 -1
  82. package/dist/src/WebComponent/utils.d.ts +0 -31
  83. package/dist/src/analytics.d.ts +0 -64
  84. package/dist/src/disclaimers.d.ts +0 -8
  85. package/dist/src/fetchBuildingABTestType.d.ts +0 -8
  86. package/dist/src/fetchBuildingInfo.d.ts +0 -57
  87. package/dist/src/fetchBuildingWebchatView.d.ts +0 -122
  88. package/dist/src/fetchFeatureFlag.d.ts +0 -14
  89. package/dist/src/fetchLeadSources.d.ts +0 -4
  90. package/dist/src/fetchPhoneNumberFromSource.d.ts +0 -6
  91. package/dist/src/getAvailabilities.d.ts +0 -44
  92. package/dist/src/getBuildingPhoneNumber.d.ts +0 -1
  93. package/dist/src/getShouldAllowScheduling.d.ts +0 -1
  94. package/dist/src/getShouldShowWebchat.d.ts +0 -3
  95. package/dist/src/getTimezoneString.d.ts +0 -1
  96. package/dist/src/globals.d.ts +0 -1
  97. package/dist/src/gtm.d.ts +0 -6
  98. package/dist/src/handleChatId.d.ts +0 -11
  99. package/dist/src/insertDNIIntoWebsite.d.ts +0 -5
  100. package/dist/src/insertLeadSourceIntoSchedulerLinks.d.ts +0 -4
  101. package/dist/src/main/MEChat.d.ts +0 -74
  102. package/dist/src/main/utils.d.ts +0 -2
  103. package/dist/src/postLeadSources.d.ts +0 -3
  104. package/dist/src/rentgrata.d.ts +0 -4
  105. package/dist/src/replaceSelectButtonsWithNewLink.d.ts +0 -5
  106. package/dist/src/services/fees/fetchBuildingFees.d.ts +0 -3
  107. package/dist/src/svgIcons.d.ts +0 -5
  108. package/dist/src/themes.d.ts +0 -5
  109. package/dist/src/types/rest-sdk.types.d.ts +0 -11
  110. package/dist/src/types/webchat-no-show-reason.d.ts +0 -1
  111. package/dist/src/utils.d.ts +0 -13
  112. package/public/demo/index.html +0 -347
  113. package/public/demo/secret.html +0 -63
  114. package/src/MyPubnub.ts +0 -792
  115. package/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section-styles.ts +0 -86
  116. package/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section.ts +0 -94
  117. package/src/WebComponent/FeeCalculator/components/fee-item/fee-item-styles.ts +0 -47
  118. package/src/WebComponent/FeeCalculator/components/fee-item/fee-item.ts +0 -50
  119. package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.ts +0 -46
  120. package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.ts +0 -70
  121. package/src/WebComponent/FeeCalculator/components/index.ts +0 -3
  122. package/src/WebComponent/FeeCalculator/components/promo-card/promo-card-styles.ts +0 -39
  123. package/src/WebComponent/FeeCalculator/components/promo-card/promo-card.ts +0 -39
  124. package/src/WebComponent/FeeCalculator/fee-calculator-styles.ts +0 -280
  125. package/src/WebComponent/FeeCalculator/fee-calculator.ts +0 -256
  126. package/src/WebComponent/FeeCalculator/index.ts +0 -4
  127. package/src/WebComponent/FeeCalculator/model/building-fee.ts +0 -83
  128. package/src/WebComponent/FeeCalculator/model/transaction-category.ts +0 -23
  129. package/src/WebComponent/LeadSourceClient.ts +0 -332
  130. package/src/WebComponent/MEChat.css +0 -5
  131. package/src/WebComponent/OfficeHours.ts +0 -73
  132. package/src/WebComponent/Scheduler/date-picker.ts +0 -405
  133. package/src/WebComponent/Scheduler/time-picker.ts +0 -190
  134. package/src/WebComponent/Scheduler/tour-scheduler.ts +0 -1352
  135. package/src/WebComponent/Scheduler/tour-type-option.ts +0 -112
  136. package/src/WebComponent/Scheduler/tourSchedulerStyles.ts +0 -418
  137. package/src/WebComponent/actions/InputStyles.ts +0 -57
  138. package/src/WebComponent/actions/action-confirm-button.ts +0 -125
  139. package/src/WebComponent/actions/call-us-window.ts +0 -445
  140. package/src/WebComponent/actions/collapse-expand-button.ts +0 -65
  141. package/src/WebComponent/actions/details-window.ts +0 -150
  142. package/src/WebComponent/actions/email-us-window.ts +0 -555
  143. package/src/WebComponent/actions/formatPhoneNumber.ts +0 -72
  144. package/src/WebComponent/actions/minimize-expand-button.ts +0 -93
  145. package/src/WebComponent/chat-additional-actions.ts +0 -135
  146. package/src/WebComponent/health-chat.ts +0 -270
  147. package/src/WebComponent/healthchat-styles.ts +0 -119
  148. package/src/WebComponent/icons/ApplyOutlineIcon.ts +0 -22
  149. package/src/WebComponent/icons/BookTourOutlineIcon.ts +0 -13
  150. package/src/WebComponent/icons/CalculatorOutlineIcon.ts +0 -22
  151. package/src/WebComponent/icons/ChatOutlineIcon.ts +0 -10
  152. package/src/WebComponent/icons/ChevronLeftIcon.ts +0 -7
  153. package/src/WebComponent/icons/ChevronRightIcon.ts +0 -7
  154. package/src/WebComponent/icons/ContactResidentIcon.ts +0 -9
  155. package/src/WebComponent/icons/DollarOutlineIcon.ts +0 -18
  156. package/src/WebComponent/icons/EmailOutlineIcon.ts +0 -7
  157. package/src/WebComponent/icons/HeyThereEmojiIcon.ts +0 -12
  158. package/src/WebComponent/icons/PhoneOutlineIcon.ts +0 -7
  159. package/src/WebComponent/icons/SendMessageIcon.ts +0 -17
  160. package/src/WebComponent/icons/TourSelfGuidedIcon.ts +0 -17
  161. package/src/WebComponent/icons/TourVirtuallyIcon.ts +0 -17
  162. package/src/WebComponent/icons/TourWithAgentIcon.ts +0 -17
  163. package/src/WebComponent/icons/XOutlineIcon.ts +0 -8
  164. package/src/WebComponent/index.ts +0 -2
  165. package/src/WebComponent/launcher/Launcher.ts +0 -1193
  166. package/src/WebComponent/launcher/launcherStyles.ts +0 -500
  167. package/src/WebComponent/launcher/mobile-launcher.ts +0 -159
  168. package/src/WebComponent/launcher/typeEmojiStyles.ts +0 -161
  169. package/src/WebComponent/launcher/typeMiniStyles.ts +0 -60
  170. package/src/WebComponent/launcher/typeMobileStyles.ts +0 -50
  171. package/src/WebComponent/leasing-chat-styles.ts +0 -114
  172. package/src/WebComponent/me-chat.ts +0 -1257
  173. package/src/WebComponent/me-select.ts +0 -322
  174. package/src/WebComponent/mini-loader.ts +0 -28
  175. package/src/WebComponent/pubnub-chat-styles.ts +0 -204
  176. package/src/WebComponent/pubnub-chat.ts +0 -928
  177. package/src/WebComponent/pubnub-media.ts +0 -208
  178. package/src/WebComponent/pubnub-message-styles.ts +0 -54
  179. package/src/WebComponent/pubnub-message.ts +0 -431
  180. package/src/WebComponent/simple-launcher/simple-launcher-styles.ts +0 -34
  181. package/src/WebComponent/simple-launcher/simple-launcher.ts +0 -100
  182. package/src/WebComponent/utilities-chat.ts +0 -270
  183. package/src/WebComponent/utilities-styles.ts +0 -110
  184. package/src/WebComponent/utils.ts +0 -82
  185. package/src/analytics.ts +0 -217
  186. package/src/assetUrls.ts +0 -6
  187. package/src/disclaimers.ts +0 -58
  188. package/src/fetchBuildingABTestType.ts +0 -21
  189. package/src/fetchBuildingInfo.ts +0 -87
  190. package/src/fetchBuildingWebchatView.ts +0 -154
  191. package/src/fetchFeatureFlag.ts +0 -250
  192. package/src/fetchLeadSources.ts +0 -98
  193. package/src/fetchPhoneNumberFromSource.ts +0 -31
  194. package/src/fetchWebchatPreferences.ts +0 -54
  195. package/src/getAvailabilities.ts +0 -174
  196. package/src/getBuildingPhoneNumber.ts +0 -26
  197. package/src/getShouldAllowScheduling.ts +0 -16
  198. package/src/getShouldShowWebchat.ts +0 -114
  199. package/src/getTimezoneString.ts +0 -39
  200. package/src/globals.ts +0 -1
  201. package/src/gtm.ts +0 -17
  202. package/src/handleChatId.ts +0 -101
  203. package/src/insertDNIIntoWebsite.ts +0 -146
  204. package/src/insertLeadSourceIntoSchedulerLinks.ts +0 -71
  205. package/src/main/MEChat.test.ts +0 -110
  206. package/src/main/MEChat.ts +0 -404
  207. package/src/main/utils.ts +0 -70
  208. package/src/postLeadSources.ts +0 -44
  209. package/src/rentgrata.ts +0 -74
  210. package/src/replaceSelectButtonsWithNewLink.ts +0 -68
  211. package/src/services/fees/fetchBuildingFees.ts +0 -28
  212. package/src/svgIcons.ts +0 -14
  213. package/src/themes.ts +0 -65
  214. package/src/types/rest-sdk.types.ts +0 -13
  215. package/src/types/webchat-no-show-reason.ts +0 -6
  216. package/src/utils.ts +0 -121
  217. package/tsconfig.json +0 -84
@@ -1,116 +0,0 @@
1
- import Pubnub, { ListenerParameters, MessageEvent } from "pubnub";
2
- import { ChatStorageKey } from "./handleChatId";
3
- import LeadSourceClient from "./WebComponent/LeadSourceClient";
4
- import { WidgetType } from "./main/MEChat";
5
- import { BuildingWebchatView } from "./fetchBuildingWebchatView";
6
- interface TokenResponse {
7
- auth: {
8
- result: {
9
- token: string;
10
- };
11
- };
12
- keys: {
13
- subscribe_key: string;
14
- publish_key: string;
15
- };
16
- }
17
- declare enum MessageType {
18
- noReply = "no-reply",
19
- text = "text",
20
- media = "media"
21
- }
22
- interface RawPubnubMessage {
23
- channel: string;
24
- message: {
25
- text: string;
26
- customType: string;
27
- messageType?: MessageType;
28
- is_streaming?: boolean;
29
- is_done?: boolean;
30
- order?: number;
31
- stream_id?: string;
32
- media?: ChatMediaFile[];
33
- };
34
- publisher: string;
35
- subscription: string;
36
- timetoken: number;
37
- }
38
- export interface SimpleTextChatMessage {
39
- timestamp: number;
40
- message: string;
41
- isLeadMessage: boolean;
42
- chunks: {
43
- text: string;
44
- order: number;
45
- isDone: boolean;
46
- }[];
47
- type: SimpleMessageTypes.text;
48
- }
49
- interface ChatMediaFile {
50
- title: string | null;
51
- description: string | null;
52
- url: string | null;
53
- }
54
- export interface SimpleMediaChatMessage {
55
- timestamp: number;
56
- media: ChatMediaFile[];
57
- isLeadMessage: boolean;
58
- type: SimpleMessageTypes.media;
59
- }
60
- export declare type SimpleChatMessage = SimpleTextChatMessage | SimpleMediaChatMessage;
61
- export declare const isSimpleTextChatMessage: (message: SimpleChatMessage) => message is SimpleTextChatMessage;
62
- export declare const isSimpleMediaChatMessage: (message: SimpleChatMessage) => message is SimpleMediaChatMessage;
63
- export declare enum SimpleMessageTypes {
64
- text = "text",
65
- media = "media"
66
- }
67
- declare class MyPubnub {
68
- private apiHost;
69
- private leadSourceClient;
70
- private buildingWebchatView;
71
- private buildingSlug;
72
- private orgSlug;
73
- private eliseResponseTimeout;
74
- private isWaitingForStreamingMessages;
75
- private widgetType;
76
- pubnub: Pubnub | null;
77
- leadUserId: string;
78
- channel: string;
79
- leadSource: string | null;
80
- isCurrentlyStreamingMessage: boolean;
81
- chatListener: ((res: {
82
- messages: SimpleChatMessage[];
83
- isLoading: boolean;
84
- }) => void) | null;
85
- rawPubnubMessages: RawPubnubMessage[];
86
- simpleChatMessages: SimpleChatMessage[];
87
- listenerParams: ListenerParameters;
88
- isLoadingMessages: boolean;
89
- isFirstChatMessageSent: boolean;
90
- private streamingMessageTimeout;
91
- constructor(buildingSlug: string, buildingDetails: BuildingWebchatView | null, orgSlug: string, leadSource: string | null | undefined, leadUserId: string, leadSourceClient?: LeadSourceClient | null, widgetType?: WidgetType);
92
- private checkAndHandleDelayStreamingMessages;
93
- checkAndHandleGTMForLeadEmail: (messageEvent: Pubnub.MessageEvent) => void;
94
- addChatListener(listener: (response: {
95
- messages: SimpleChatMessage[];
96
- isLoading: boolean;
97
- }) => void): void;
98
- initializePubnub(chatStorageKey: ChatStorageKey): Promise<Pubnub | undefined>;
99
- fetchToken(lead: string, channel: string): Promise<TokenResponse | null>;
100
- fetchChannelExists(channel: string): Promise<boolean>;
101
- withAuthToken(apiRequestFunc: () => Promise<void>): Promise<void>;
102
- private markEveryPreviousNoReplyMessageDone;
103
- private checkMessageChunkValid;
104
- getChannelHistory(maxTotalMessageChunksToFetch?: number): Promise<void>;
105
- handleChatListeners: () => void;
106
- handleDisconnect: () => void;
107
- removeChatListeners: () => void;
108
- sendMessage: (message: string) => Promise<void>;
109
- private shouldCreateAsDevState;
110
- isLeadMessage: (message: RawPubnubMessage) => boolean;
111
- private removeDuplicatedRawPubnubMessages;
112
- translatePubnubMessagesIntoSimpleChatMessages: (messages: RawPubnubMessage[]) => SimpleChatMessage[];
113
- private getConsecutiveChunks;
114
- private isMessageStillStreamingChunks;
115
- }
116
- export default MyPubnub;
@@ -1,2 +0,0 @@
1
- declare const collapsibleFeeSectionStyles: import("lit").CSSResult;
2
- export default collapsibleFeeSectionStyles;
@@ -1,20 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { BuildingFee } from "../../model/building-fee";
3
- import "../fee-item/fee-item";
4
- export declare class CollapsibleFeeSection extends LitElement {
5
- static styles: import("lit").CSSResult;
6
- primaryColor: string;
7
- title: string;
8
- totalLabel: string;
9
- buildingFees: BuildingFee[];
10
- private isDetailsVisible;
11
- get totalAmount(): string;
12
- toggleDetails: () => void;
13
- get detailsText(): string;
14
- render(): TemplateResult;
15
- }
16
- declare global {
17
- interface HTMLElementTagNameMap {
18
- "collapsible-fee-section": CollapsibleFeeSection;
19
- }
20
- }
@@ -1,2 +0,0 @@
1
- declare const feeItemStyles: import("lit").CSSResult;
2
- export default feeItemStyles;
@@ -1,14 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { BuildingFee } from "../../model/building-fee";
3
- export declare class FeeItemComponent extends LitElement {
4
- static styles: import("lit").CSSResult;
5
- feeItem: BuildingFee | null;
6
- get feeName(): string;
7
- get feeAmount(): string;
8
- render(): TemplateResult;
9
- }
10
- declare global {
11
- interface HTMLElementTagNameMap {
12
- "fee-item": FeeItemComponent;
13
- }
14
- }
@@ -1,2 +0,0 @@
1
- declare const floorPlanSelectorStyles: import("lit").CSSResult;
2
- export default floorPlanSelectorStyles;
@@ -1,17 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { LayoutOption } from "../../../../fetchBuildingWebchatView";
3
- export declare class FloorPlanSelector extends LitElement {
4
- static styles: import("lit").CSSResult;
5
- floorPlans: LayoutOption[];
6
- selectedLayoutId: number | null;
7
- primaryColor: string;
8
- allOptionId: string;
9
- private handleFloorPlanClick;
10
- private get displayOptions();
11
- render(): TemplateResult;
12
- }
13
- declare global {
14
- interface HTMLElementTagNameMap {
15
- "floor-plan-selector": FloorPlanSelector;
16
- }
17
- }
@@ -1,3 +0,0 @@
1
- export * from "./promo-card/promo-card";
2
- export * from "./floor-plan-selector/floor-plan-selector";
3
- export * from "./collapsible-fee-section/collapsible-fee-section";
@@ -1,2 +0,0 @@
1
- declare const promoCardStyles: import("lit").CSSResult;
2
- export default promoCardStyles;
@@ -1,13 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- export declare class PromoCard extends LitElement {
3
- static styles: import("lit").CSSResult;
4
- promoAmount: string;
5
- promoDescription: string;
6
- promoValidity: string;
7
- render(): TemplateResult;
8
- }
9
- declare global {
10
- interface HTMLElementTagNameMap {
11
- "promo-card": PromoCard;
12
- }
13
- }
@@ -1 +0,0 @@
1
- export declare const feeCalculatorStyles: import("lit").CSSResult;
@@ -1,31 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { LayoutOption } from "../../fetchBuildingWebchatView";
3
- import { BuildingFee, RecurrenceFrequency } from "./model/building-fee";
4
- import "./components";
5
- import "../chat-additional-actions";
6
- export declare class FeeCalculator extends LitElement {
7
- static styles: import("lit").CSSResult;
8
- buildingSlug: string;
9
- orgSlug: string;
10
- primaryColor: string;
11
- backgroundColor: string;
12
- compactDesign: boolean;
13
- onCloseClicked: ((e: MouseEvent) => void) | null;
14
- private isLoading;
15
- private buildingWebchatView;
16
- private groupedFees;
17
- get layouts(): LayoutOption[];
18
- private enabledChatWidgets;
19
- baseAmountInput: HTMLInputElement;
20
- feePercentageInput: HTMLInputElement;
21
- constructor();
22
- firstUpdated: () => Promise<void>;
23
- setupCalculator: () => Promise<void>;
24
- groupFees: (fees: BuildingFee[]) => Record<RecurrenceFrequency, BuildingFee[]>;
25
- handleClose: (e: MouseEvent) => void;
26
- connectedCallback(): void;
27
- disconnectedCallback(): void;
28
- updated(changedProperties: Map<string, unknown>): void;
29
- adjustPositionAdditionalActions: () => void;
30
- render(): TemplateResult;
31
- }
@@ -1,2 +0,0 @@
1
- export { FeeCalculator } from "./fee-calculator";
2
- export declare const installFeeCalculator: () => void;
@@ -1,75 +0,0 @@
1
- import { TransactionCategory } from "./transaction-category";
2
- export interface BuildingFee {
3
- id: number;
4
- buildingId: number;
5
- blueprint: FeeBlueprint;
6
- unitIds: number[] | null;
7
- layoutIds: number[] | null;
8
- startDate: Date | null;
9
- endDate: Date | null;
10
- source: string | null;
11
- timeCreated: Date;
12
- externalKey: string | null;
13
- syncActive: boolean;
14
- hiddenReason: string | null;
15
- refundable: boolean | null;
16
- required?: boolean;
17
- }
18
- interface FeeBlueprint {
19
- transactionId: number | null;
20
- transactionAmount: number | null;
21
- flowDirection: TransactionFlow;
22
- transactionDescription: string | null;
23
- category: TransactionCategory;
24
- recurrenceInfo: RecurrenceInfo | null;
25
- adjustmentInfo: AdjustmentInfo | null;
26
- triggerInfo: TriggerInfo | null;
27
- addOnInfo: AddOnInfo | null;
28
- priceType: PriceType;
29
- handledByThirdParty: boolean;
30
- handledByThirdPartyReasoning: string | null;
31
- leaseStartDate: Date | null;
32
- leaseEndDate: Date | null;
33
- }
34
- interface AdjustmentInfo {
35
- reason: string;
36
- percentage: number;
37
- }
38
- export declare enum RecurrenceFrequency {
39
- OneTime = "OneTime",
40
- Daily = "Daily",
41
- Weekly = "Weekly",
42
- BiWeekly = "BiWeekly",
43
- Monthly = "Monthly",
44
- Yearly = "Yearly",
45
- Unknown = "Unknown"
46
- }
47
- interface RecurrenceInfo {
48
- frequency: RecurrenceFrequency;
49
- startDate: Date | null;
50
- endDate: Date | null;
51
- }
52
- interface TriggerInfo {
53
- triggerEvent: string;
54
- maxDaysBeforeEvent: number;
55
- maxDaysAfterEvent: number;
56
- triggerEventEmbedding: number[] | null;
57
- startDate: Date | null;
58
- endDate: Date | null;
59
- }
60
- interface AddOnInfo {
61
- addOnType: string;
62
- maxUnitsCharged: number | null;
63
- minUnitsCharged: number | null;
64
- addOnTypeEmbedding: number[] | null;
65
- }
66
- declare enum TransactionFlow {
67
- Debit = "Debit",
68
- Credit = "Credit"
69
- }
70
- declare enum PriceType {
71
- Fixed = "Fixed",
72
- UsageBased = "UsageBased",
73
- Varies = "Varies"
74
- }
75
- export {};
@@ -1,23 +0,0 @@
1
- export declare enum TransactionCategory {
2
- AdminFee = "AdminFee",
3
- ApplicationFee = "ApplicationFee",
4
- Concession = "Concession",
5
- Insurance = "Insurance",
6
- LateFee = "LateFee",
7
- Legal = "Legal",
8
- NonSufficientFundFee = "NSF",
9
- Other = "Other",
10
- Parking = "Parking",
11
- Penalty = "Penalty",
12
- Pest = "Pest",
13
- PetDeposit = "PetDeposit",
14
- PetRent = "PetRent",
15
- Refund = "Refund",
16
- Relet = "Relet",
17
- Rent = "Rent",
18
- SecurityDeposit = "SecurityDeposit",
19
- Storage = "Storage",
20
- Trash = "Trash",
21
- Utility = "Utility",
22
- WaterSewer = "WaterSewer"
23
- }
@@ -1,46 +0,0 @@
1
- import { CampaignSources } from "../analytics";
2
- export interface LeadSourceInput {
3
- buildingSlug: string | null;
4
- queryParams: {
5
- [queryKey: string]: string;
6
- } | null;
7
- referrer: string;
8
- campaignSources: CampaignSources;
9
- }
10
- export declare function getDefaultLeadSourceAttribution(orgSlug: string): string;
11
- declare class LeadSourceClient {
12
- chatId: string | null;
13
- private apiHost;
14
- leadSource: string | null;
15
- private localStorageTTLDays;
16
- buildingId: number | null;
17
- orgSlug: string | null;
18
- buildingSlug: string | null;
19
- queryParameters: {
20
- [queryKey: string]: string;
21
- } | null;
22
- leadSourceInput: {
23
- websiteOrigin: string | null;
24
- websiteSearch: string | null;
25
- queryParameters: {
26
- [queryKey: string]: string;
27
- } | null;
28
- referrer: string | null;
29
- parsedUtmSource: string | null;
30
- campaignSources: string[] | null;
31
- } | null;
32
- private updateLeadSourceLocalStorage;
33
- private getLeadSourceBodyIfValid;
34
- private fetchCurrentParsedLeadSource;
35
- checkAndHandleForLogLeadSource({ webchatAction, stateId, }: {
36
- webchatAction: string;
37
- stateId: string | null;
38
- }): Promise<null>;
39
- getCookieValue(key: string): Promise<string | null>;
40
- generateUserLeadSource({ leadId, orgSlug, buildingSlug, }: {
41
- leadId: string;
42
- orgSlug: string;
43
- buildingSlug: string | null;
44
- }): Promise<string | null>;
45
- }
46
- export default LeadSourceClient;
@@ -1,21 +0,0 @@
1
- interface OfficeHourAvailabilityReponse {
2
- [dayOfWeek: string]: {
3
- start: string;
4
- end: string;
5
- };
6
- }
7
- export declare const getRawOfficeHours: (buildingId: number) => Promise<OfficeHourAvailabilityReponse>;
8
- export declare const getDefaultOfficeHours: () => {
9
- startTime: Date;
10
- endTime: Date;
11
- }[];
12
- export declare const dayNamesInOrder: string[];
13
- /**
14
- * Based on the design, we're going with monday as the first day of the week
15
- */
16
- export declare const getOfficeHourText: (buildingId: number) => Promise<(string | {
17
- dayOfWeek: string;
18
- startTime: string;
19
- endTime: string;
20
- })[]>;
21
- export {};
@@ -1,28 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { Month } from "../utils";
3
- export declare class DatePicker extends LitElement {
4
- /**
5
- * Optional attribute to set the date picker's default month.
6
- * The attribute will not be updated if the user changes the month shown.
7
- */
8
- defaultMonth?: Month;
9
- /**
10
- * Optional attribute to set the date picker's default year.
11
- * The attribute will not be updated if the user changes the year shown.
12
- */
13
- defaultYear?: number;
14
- availabilities?: {
15
- [day: string]: Date[];
16
- };
17
- private _selectedDate?;
18
- set selectedDate(date: Date | undefined);
19
- get selectedDate(): undefined | Date;
20
- now: Date;
21
- private _monthShown;
22
- set monthShown(month: number);
23
- /** 0-indexed month, e.g. `0` for January */
24
- get monthShown(): number;
25
- yearShown: number;
26
- static styles: import("lit").CSSResult;
27
- render(): TemplateResult;
28
- }
@@ -1,14 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { DateWithTimeZoneOffset } from "../../getAvailabilities";
3
- export declare type TimePickerOption = {
4
- displayTime: string;
5
- dateWithTimeZoneOffset: DateWithTimeZoneOffset;
6
- };
7
- export declare class TimePicker extends LitElement {
8
- options: TimePickerOption[];
9
- selectedDateExists: boolean;
10
- private selected?;
11
- get selectedTime(): undefined | TimePickerOption;
12
- static styles: import("lit").CSSResult;
13
- render(): TemplateResult;
14
- }
@@ -1,99 +0,0 @@
1
- import { LitElement, PropertyValueMap, TemplateResult } from "lit";
2
- import "./tour-type-option.ts";
3
- import "./date-picker.ts";
4
- import "./time-picker.ts";
5
- import "../me-select.ts";
6
- import { MESelect } from "../me-select";
7
- import { LabeledOption } from "../../fetchBuildingInfo";
8
- export declare class TourScheduler extends LitElement {
9
- tourTypeOptions: LabeledOption[];
10
- chatId: string;
11
- buildingId: number;
12
- buildingSlug: string;
13
- sgtUrl: string;
14
- selfGuidedToursTypeOffered: string;
15
- selfGuidedTourEnabled: boolean;
16
- escortedToursLink: string;
17
- virtualToursLink: string;
18
- orgSlug: string;
19
- hasDynamicSchedulingEnabled: boolean;
20
- private leadSourceClient;
21
- buildingName: string;
22
- onCloseClicked?: (e: MouseEvent) => void;
23
- private tourType;
24
- private shouldShowTourType;
25
- private email;
26
- private phoneNumber;
27
- private availabilitiesGroupedByDay;
28
- private waitingForAvailabilities;
29
- private selectedDate?;
30
- private selectedTime?;
31
- private mobilePageIndex;
32
- private isSubmitting;
33
- private tourIsBooked;
34
- private shouldAllowScheduling;
35
- private shouldAllowScheduleLoading;
36
- private promptForReschedule;
37
- private canceledReschedule;
38
- leadSources: string[];
39
- orgLegalName: string;
40
- currentLeadSource: string;
41
- featureFlagShowDropdown: string;
42
- compactDesign: boolean;
43
- primaryColor: string;
44
- backgroundColor: string;
45
- foregroundColorOnPrimaryBackgroundColor: string;
46
- foregroundColorOnSecondaryBackgroundColor: string;
47
- firstNameInput: HTMLInputElement;
48
- lastNameInput: HTMLInputElement;
49
- emailInput: HTMLInputElement;
50
- phoneInput: HTMLInputElement;
51
- selectedLeadSource: MESelect;
52
- firstNameInputValue: string;
53
- lastNameInputValue: string;
54
- leadSourceInputValue: string;
55
- errorGettingAvailabilities: boolean;
56
- firstUpdated: () => Promise<void>;
57
- protected willUpdate: (_changedProperties: PropertyValueMap<{
58
- tourType: TourType;
59
- }> | Map<PropertyKey, unknown>) => Promise<void>;
60
- handlePhoneKeydown: (e: Event) => void;
61
- handlePhoneKeyup: (e: KeyboardEvent) => void;
62
- onChangeEmail: (e: Event) => void;
63
- validators: {
64
- tourType: () => boolean;
65
- dateAndTime: () => boolean;
66
- leadInfo: () => boolean;
67
- };
68
- formIsValidForSubmission: () => boolean;
69
- /** E.g., `timeStringToHoursAndMinutes("4:15pm")` -> `[16, 15]`
70
- */
71
- timeStringToHoursAndMinutes: (timeString: string) => [hours: number, minutes: number];
72
- submit: () => Promise<void>;
73
- static styles: import("lit").CSSResult[];
74
- tourTypeMenu(): TemplateResult;
75
- dateAndTimeMenu(): TemplateResult;
76
- closeButton(): TemplateResult;
77
- mobilePages: ({
78
- validate: () => boolean;
79
- nextButtonText: string;
80
- nextButtonAction: () => void;
81
- render: () => TemplateResult;
82
- renderNextButton?: undefined;
83
- } | {
84
- validate: () => boolean;
85
- nextButtonText: null;
86
- renderNextButton: () => TemplateResult;
87
- nextButtonAction: null;
88
- render: () => TemplateResult;
89
- })[];
90
- userInfoAndLayoutMenu(): TemplateResult;
91
- confirmationMessage(): TemplateResult;
92
- loadingIcon(size?: number): TemplateResult;
93
- render(): TemplateResult;
94
- }
95
- export declare enum TourType {
96
- Guided = "guided",
97
- Self = "self",
98
- Virtual = "virtual"
99
- }
@@ -1,13 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- export declare class TourTypeOption extends LitElement {
3
- heading: string;
4
- subtitle: string;
5
- selected: boolean;
6
- onClick?: () => void;
7
- primaryColor: string;
8
- backgroundColor: string;
9
- foregroundColorOnPrimaryBackgroundColor: string;
10
- foregroundColorOnSecondaryBackgroundColor: string;
11
- static styles: import("lit").CSSResult[];
12
- render(): TemplateResult;
13
- }
@@ -1 +0,0 @@
1
- export declare const tourSchedulerStyles: import("lit").CSSResult;
@@ -1 +0,0 @@
1
- export declare const InputStyles: import("lit").CSSResult;
@@ -1,13 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- export declare class ActionConfirmButton extends LitElement {
3
- static styles: import("lit").CSSResult[];
4
- onClick?: () => void;
5
- text: string;
6
- isLoading: boolean;
7
- disabled: boolean;
8
- height: string;
9
- width: string;
10
- focus: () => void;
11
- render: () => TemplateResult;
12
- }
13
- export declare const installActionConfirmButton: () => void;
@@ -1,37 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { Ref } from "lit/directives/ref.js";
3
- export declare class CallUsWindow extends LitElement {
4
- static styles: import("lit").CSSResult[];
5
- buildingSlug: string;
6
- orgSlug: string;
7
- onCloseClicked?: (e: MouseEvent) => void;
8
- phoneNumberToCall: string;
9
- phoneNumberToText: string;
10
- buildingId: number;
11
- buildingName: string;
12
- chatCallUsHeader: string;
13
- hasCallUsEnabled: string;
14
- hasTextUsEnabled: string;
15
- currentLeadSource: string;
16
- orgLegalName: string;
17
- private leadSourceClient;
18
- phoneNumberInputRef: Ref<HTMLInputElement>;
19
- hasSubmittedForm: boolean;
20
- hasPhoneNumberError: boolean;
21
- hasSubmissionError: boolean;
22
- submittingTextUsOption: boolean;
23
- officeHoursTextInfo: (string | {
24
- dayOfWeek: string;
25
- startTime: string;
26
- endTime: string;
27
- })[];
28
- firstUpdated: () => Promise<void>;
29
- getCallLink: (phoneNumber: string) => TemplateResult;
30
- enforcePhoneFormat: (e: KeyboardEvent) => void;
31
- onSubmitTextUs: () => Promise<void>;
32
- onChangePhoneNumber: (e: Event) => void;
33
- private renderFormTextUsOption;
34
- private renderSubmittedTextUsOption;
35
- render: () => TemplateResult;
36
- }
37
- export declare const installCallUsWindow: () => void;
@@ -1,8 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- export declare class CollapseExpandButton extends LitElement {
3
- static styles: import("lit").CSSResult[];
4
- onClick: () => void;
5
- primaryColor: string;
6
- toExpand: boolean;
7
- render(): TemplateResult;
8
- }
@@ -1,14 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- export declare class DetailsWindow extends LitElement {
3
- static styles: import("lit").CSSResult;
4
- height: string;
5
- width: string;
6
- useRoundedBorders: boolean;
7
- headerText: string;
8
- onCloseClick?: (e: MouseEvent) => void;
9
- isMobileSized: boolean;
10
- useGradientDesign: boolean;
11
- firstUpdated(): Promise<void>;
12
- render(): TemplateResult;
13
- }
14
- export declare const installDetailsWindow: () => void;