@superbright/indexeddb-orm 0.1.9 → 1.0.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.
Files changed (139) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +2 -0
  2. package/dist/_virtual/_commonjsHelpers.cjs.map +1 -0
  3. package/dist/_virtual/_commonjsHelpers.mjs +9 -0
  4. package/dist/_virtual/_commonjsHelpers.mjs.map +1 -0
  5. package/dist/_virtual/dexie.min.cjs +2 -0
  6. package/dist/_virtual/dexie.min.cjs.map +1 -0
  7. package/dist/_virtual/dexie.min.mjs +5 -0
  8. package/dist/_virtual/dexie.min.mjs.map +1 -0
  9. package/dist/adapters/dexie.cjs +2 -0
  10. package/dist/adapters/dexie.cjs.map +1 -0
  11. package/dist/adapters/dexie.mjs +14 -0
  12. package/dist/adapters/dexie.mjs.map +1 -0
  13. package/dist/adapters/structured-store.cjs +2 -0
  14. package/dist/adapters/structured-store.cjs.map +1 -0
  15. package/dist/adapters/structured-store.mjs +50 -0
  16. package/dist/adapters/structured-store.mjs.map +1 -0
  17. package/dist/adapters/zustand-store.cjs +2 -0
  18. package/dist/adapters/zustand-store.cjs.map +1 -0
  19. package/dist/adapters/zustand-store.mjs +169 -0
  20. package/dist/adapters/zustand-store.mjs.map +1 -0
  21. package/dist/api/favorites.cjs +2 -0
  22. package/dist/api/favorites.cjs.map +1 -0
  23. package/dist/api/favorites.mjs +34 -0
  24. package/dist/api/favorites.mjs.map +1 -0
  25. package/dist/api/properties.cjs +2 -0
  26. package/dist/api/properties.cjs.map +1 -0
  27. package/dist/api/properties.mjs +197 -0
  28. package/dist/api/properties.mjs.map +1 -0
  29. package/dist/api/users.cjs +2 -0
  30. package/dist/api/users.cjs.map +1 -0
  31. package/dist/api/users.mjs +54 -0
  32. package/dist/api/users.mjs.map +1 -0
  33. package/dist/db.cjs +2 -0
  34. package/dist/db.cjs.map +1 -0
  35. package/dist/db.mjs +116 -0
  36. package/dist/db.mjs.map +1 -0
  37. package/dist/debug.cjs +2 -0
  38. package/dist/debug.cjs.map +1 -0
  39. package/dist/debug.mjs +18 -0
  40. package/dist/debug.mjs.map +1 -0
  41. package/dist/errors.cjs +2 -0
  42. package/dist/errors.cjs.map +1 -0
  43. package/dist/errors.mjs +15 -0
  44. package/dist/errors.mjs.map +1 -0
  45. package/dist/features/analytics/MixpanelProvider.cjs +2 -0
  46. package/dist/features/analytics/MixpanelProvider.cjs.map +1 -0
  47. package/dist/features/analytics/MixpanelProvider.mjs +40 -0
  48. package/dist/features/analytics/MixpanelProvider.mjs.map +1 -0
  49. package/dist/features/analytics/analytics.cjs +2 -0
  50. package/dist/features/analytics/analytics.cjs.map +1 -0
  51. package/dist/features/analytics/analytics.d.ts +520 -397
  52. package/dist/features/analytics/analytics.mjs +230 -0
  53. package/dist/features/analytics/analytics.mjs.map +1 -0
  54. package/dist/features/analytics/generateUserUUID.cjs +2 -0
  55. package/dist/features/analytics/generateUserUUID.cjs.map +1 -0
  56. package/dist/features/analytics/generateUserUUID.mjs +6 -0
  57. package/dist/features/analytics/generateUserUUID.mjs.map +1 -0
  58. package/dist/features/units/transformers.cjs +2 -0
  59. package/dist/features/units/transformers.cjs.map +1 -0
  60. package/dist/features/units/transformers.mjs +69 -0
  61. package/dist/features/units/transformers.mjs.map +1 -0
  62. package/dist/index.cjs +1 -65
  63. package/dist/index.cjs.map +1 -1
  64. package/dist/index.d.ts +1 -0
  65. package/dist/index.mjs +84 -14861
  66. package/dist/index.mjs.map +1 -1
  67. package/dist/node_modules/.pnpm/dexie@4.2.0/node_modules/dexie/dist/dexie.min.cjs +4 -0
  68. package/dist/node_modules/.pnpm/dexie@4.2.0/node_modules/dexie/dist/dexie.min.cjs.map +1 -0
  69. package/dist/node_modules/.pnpm/dexie@4.2.0/node_modules/dexie/dist/dexie.min.mjs +3048 -0
  70. package/dist/node_modules/.pnpm/dexie@4.2.0/node_modules/dexie/dist/dexie.min.mjs.map +1 -0
  71. package/dist/node_modules/.pnpm/dexie@4.2.0/node_modules/dexie/import-wrapper-prod.cjs +2 -0
  72. package/dist/node_modules/.pnpm/dexie@4.2.0/node_modules/dexie/import-wrapper-prod.cjs.map +1 -0
  73. package/dist/node_modules/.pnpm/dexie@4.2.0/node_modules/dexie/import-wrapper-prod.mjs +33 -0
  74. package/dist/node_modules/.pnpm/dexie@4.2.0/node_modules/dexie/import-wrapper-prod.mjs.map +1 -0
  75. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.cjs +2 -0
  76. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.cjs.map +1 -0
  77. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.mjs +88 -0
  78. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.mjs.map +1 -0
  79. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.cjs +2 -0
  80. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.cjs.map +1 -0
  81. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.mjs +10 -0
  82. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.mjs.map +1 -0
  83. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.cjs +2 -0
  84. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.cjs.map +1 -0
  85. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.mjs +8 -0
  86. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.mjs.map +1 -0
  87. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.cjs +2 -0
  88. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.cjs.map +1 -0
  89. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.mjs +98 -0
  90. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.mjs.map +1 -0
  91. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.cjs +2 -0
  92. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.cjs.map +1 -0
  93. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.mjs +95 -0
  94. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.mjs.map +1 -0
  95. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.cjs +2 -0
  96. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.cjs.map +1 -0
  97. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.mjs +62 -0
  98. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.mjs.map +1 -0
  99. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.cjs +2 -0
  100. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.cjs.map +1 -0
  101. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.mjs +2402 -0
  102. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.mjs.map +1 -0
  103. package/dist/schema.cjs +2 -0
  104. package/dist/schema.cjs.map +1 -0
  105. package/dist/schema.d.ts +165 -0
  106. package/dist/schema.mjs +209 -0
  107. package/dist/schema.mjs.map +1 -0
  108. package/dist/storage.cjs +2 -0
  109. package/dist/storage.cjs.map +1 -0
  110. package/dist/storage.mjs +54 -0
  111. package/dist/storage.mjs.map +1 -0
  112. package/dist/stores/store.cjs +2 -0
  113. package/dist/stores/store.cjs.map +1 -0
  114. package/dist/stores/store.mjs +607 -0
  115. package/dist/stores/store.mjs.map +1 -0
  116. package/dist/units/favorites.cjs +2 -0
  117. package/dist/units/favorites.cjs.map +1 -0
  118. package/dist/units/favorites.mjs +19 -0
  119. package/dist/units/favorites.mjs.map +1 -0
  120. package/dist/utils/casing.cjs +2 -0
  121. package/dist/utils/casing.cjs.map +1 -0
  122. package/dist/utils/casing.d.ts +6 -0
  123. package/dist/utils/casing.mjs +12 -0
  124. package/dist/utils/casing.mjs.map +1 -0
  125. package/dist/utils/collections.cjs +2 -0
  126. package/dist/utils/collections.cjs.map +1 -0
  127. package/dist/utils/collections.d.ts +1 -0
  128. package/dist/utils/collections.mjs +13 -0
  129. package/dist/utils/collections.mjs.map +1 -0
  130. package/dist/utils/dimensions.cjs +2 -0
  131. package/dist/utils/dimensions.cjs.map +1 -0
  132. package/dist/utils/dimensions.d.ts +32 -0
  133. package/dist/utils/dimensions.mjs +29 -0
  134. package/dist/utils/dimensions.mjs.map +1 -0
  135. package/dist/validation.cjs +2 -0
  136. package/dist/validation.cjs.map +1 -0
  137. package/dist/validation.mjs +18 -0
  138. package/dist/validation.mjs.map +1 -0
  139. package/package.json +18 -4
@@ -4,358 +4,437 @@ export type QuestionEnum = (typeof QuestionEnumValues)[number];
4
4
  export type FilterEnum = string;
5
5
  export declare const SortEnumValues: readonly ["cost_low_to_high", "cost_high_to_low", "newest", "relevance"];
6
6
  export type SortEnum = (typeof SortEnumValues)[number];
7
+ export declare const QuestionnaireInteractionValues: readonly ["Skip", "Continue", "Back"];
8
+ export type QuestionnaireInteraction = (typeof QuestionnaireInteractionValues)[number];
7
9
  declare const propertyContextSchema: z.ZodObject<{
8
- property_id: z.ZodString;
9
- property_slug: z.ZodString;
10
+ propertyId: z.ZodString;
11
+ propertySlug: z.ZodString;
10
12
  }, "strip", z.ZodTypeAny, {
11
- property_id: string;
12
- property_slug: string;
13
+ propertySlug: string;
14
+ propertyId: string;
13
15
  }, {
14
- property_id: string;
15
- property_slug: string;
16
+ propertySlug: string;
17
+ propertyId: string;
16
18
  }>;
17
19
  declare const viewAllUnitsSchema: z.ZodObject<{
18
- property_id: z.ZodString;
19
- property_slug: z.ZodString;
20
+ propertyId: z.ZodString;
21
+ propertySlug: z.ZodString;
20
22
  } & {
21
- property_name: z.ZodString;
23
+ propertyName: z.ZodString;
22
24
  } & {
23
- total_units_available: z.ZodNumber;
24
- results_unit_count: z.ZodNumber;
25
- unit_count_date: z.ZodOptional<z.ZodString>;
25
+ totalUnitsAvailable: z.ZodNumber;
26
+ resultsUnitCount: z.ZodNumber;
27
+ unitCountDate: z.ZodOptional<z.ZodString>;
26
28
  }, "strip", z.ZodTypeAny, {
27
- property_id: string;
28
- property_slug: string;
29
- property_name: string;
30
- total_units_available: number;
31
- results_unit_count: number;
32
- unit_count_date?: string | undefined;
29
+ propertySlug: string;
30
+ propertyId: string;
31
+ propertyName: string;
32
+ totalUnitsAvailable: number;
33
+ resultsUnitCount: number;
34
+ unitCountDate?: string | undefined;
33
35
  }, {
34
- property_id: string;
35
- property_slug: string;
36
- property_name: string;
37
- total_units_available: number;
38
- results_unit_count: number;
39
- unit_count_date?: string | undefined;
36
+ propertySlug: string;
37
+ propertyId: string;
38
+ propertyName: string;
39
+ totalUnitsAvailable: number;
40
+ resultsUnitCount: number;
41
+ unitCountDate?: string | undefined;
40
42
  }>;
41
43
  declare const loadMoreSchema: z.ZodObject<{
42
- property_id: z.ZodString;
43
- property_slug: z.ZodString;
44
+ propertyId: z.ZodString;
45
+ propertySlug: z.ZodString;
44
46
  } & {
45
- property_name: z.ZodString;
47
+ propertyName: z.ZodString;
46
48
  } & {
47
- total_units_available: z.ZodNumber;
48
- results_unit_count: z.ZodNumber;
49
- unit_count_date: z.ZodOptional<z.ZodString>;
49
+ totalUnitsAvailable: z.ZodNumber;
50
+ resultsUnitCount: z.ZodNumber;
51
+ unitCountDate: z.ZodOptional<z.ZodString>;
50
52
  }, "strip", z.ZodTypeAny, {
51
- property_id: string;
52
- property_slug: string;
53
- property_name: string;
54
- total_units_available: number;
55
- results_unit_count: number;
56
- unit_count_date?: string | undefined;
53
+ propertySlug: string;
54
+ propertyId: string;
55
+ propertyName: string;
56
+ totalUnitsAvailable: number;
57
+ resultsUnitCount: number;
58
+ unitCountDate?: string | undefined;
57
59
  }, {
58
- property_id: string;
59
- property_slug: string;
60
- property_name: string;
61
- total_units_available: number;
62
- results_unit_count: number;
63
- unit_count_date?: string | undefined;
60
+ propertySlug: string;
61
+ propertyId: string;
62
+ propertyName: string;
63
+ totalUnitsAvailable: number;
64
+ resultsUnitCount: number;
65
+ unitCountDate?: string | undefined;
66
+ }>;
67
+ declare const scheduleTourFormSchema: z.ZodObject<{
68
+ propertyId: z.ZodString;
69
+ propertySlug: z.ZodString;
70
+ } & {
71
+ propertyName: z.ZodString;
72
+ } & {
73
+ totalUnitsAvailable: z.ZodNumber;
74
+ resultsUnitCount: z.ZodNumber;
75
+ unitCountDate: z.ZodOptional<z.ZodString>;
76
+ lifestylePreferences: z.ZodOptional<z.ZodUnknown>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ propertySlug: string;
79
+ propertyId: string;
80
+ propertyName: string;
81
+ totalUnitsAvailable: number;
82
+ resultsUnitCount: number;
83
+ unitCountDate?: string | undefined;
84
+ lifestylePreferences?: unknown;
85
+ }, {
86
+ propertySlug: string;
87
+ propertyId: string;
88
+ propertyName: string;
89
+ totalUnitsAvailable: number;
90
+ resultsUnitCount: number;
91
+ unitCountDate?: string | undefined;
92
+ lifestylePreferences?: unknown;
64
93
  }>;
65
94
  declare const questionnaireEventSchema: z.ZodObject<{
66
- property_id: z.ZodString;
67
- property_slug: z.ZodString;
95
+ propertyId: z.ZodString;
96
+ propertySlug: z.ZodString;
97
+ } & {
98
+ propertyName: z.ZodString;
68
99
  } & {
69
- question_index: z.ZodNumber;
70
- question_ENUM: z.ZodString;
100
+ funnelStep: z.ZodNumber;
101
+ profileQuestion: z.ZodString;
102
+ interactedElement: z.ZodEnum<["Skip", "Continue", "Back"]>;
103
+ questionEnum: z.ZodOptional<z.ZodString>;
71
104
  }, "strip", z.ZodTypeAny, {
72
- property_id: string;
73
- property_slug: string;
74
- question_index: number;
75
- question_ENUM: string;
105
+ propertySlug: string;
106
+ propertyId: string;
107
+ propertyName: string;
108
+ funnelStep: number;
109
+ profileQuestion: string;
110
+ interactedElement: "Skip" | "Continue" | "Back";
111
+ questionEnum?: string | undefined;
76
112
  }, {
77
- property_id: string;
78
- property_slug: string;
79
- question_index: number;
80
- question_ENUM: string;
113
+ propertySlug: string;
114
+ propertyId: string;
115
+ propertyName: string;
116
+ funnelStep: number;
117
+ profileQuestion: string;
118
+ interactedElement: "Skip" | "Continue" | "Back";
119
+ questionEnum?: string | undefined;
81
120
  }>;
82
121
  declare const continueQuestionnaireEventSchema: z.ZodObject<{
83
- property_id: z.ZodString;
84
- property_slug: z.ZodString;
122
+ propertyId: z.ZodString;
123
+ propertySlug: z.ZodString;
124
+ } & {
125
+ propertyName: z.ZodString;
85
126
  } & {
86
- question_index: z.ZodNumber;
87
- question_ENUM: z.ZodString;
127
+ funnelStep: z.ZodNumber;
128
+ profileQuestion: z.ZodString;
129
+ interactedElement: z.ZodEnum<["Skip", "Continue", "Back"]>;
130
+ questionEnum: z.ZodOptional<z.ZodString>;
88
131
  } & {
89
- selected_answers_ENUM_Array: z.ZodEffects<z.ZodEffects<z.ZodAny, string[], any>, string[], any>;
132
+ selectedAnswersEnumArray: z.ZodEffects<z.ZodEffects<z.ZodAny, string[], any>, string[], any>;
90
133
  }, "strip", z.ZodTypeAny, {
91
- property_id: string;
92
- property_slug: string;
93
- question_index: number;
94
- question_ENUM: string;
95
- selected_answers_ENUM_Array: string[];
134
+ propertySlug: string;
135
+ propertyId: string;
136
+ propertyName: string;
137
+ funnelStep: number;
138
+ profileQuestion: string;
139
+ interactedElement: "Skip" | "Continue" | "Back";
140
+ selectedAnswersEnumArray: string[];
141
+ questionEnum?: string | undefined;
96
142
  }, {
97
- property_id: string;
98
- property_slug: string;
99
- question_index: number;
100
- question_ENUM: string;
101
- selected_answers_ENUM_Array?: any;
143
+ propertySlug: string;
144
+ propertyId: string;
145
+ propertyName: string;
146
+ funnelStep: number;
147
+ profileQuestion: string;
148
+ interactedElement: "Skip" | "Continue" | "Back";
149
+ questionEnum?: string | undefined;
150
+ selectedAnswersEnumArray?: any;
102
151
  }>;
103
152
  declare const unitEventSchema: z.ZodObject<{
104
- property_id: z.ZodString;
105
- property_slug: z.ZodString;
153
+ propertyId: z.ZodString;
154
+ propertySlug: z.ZodString;
106
155
  } & {
107
- unit_id: z.ZodString;
108
- unit_title: z.ZodString;
109
- unit_slug: z.ZodString;
156
+ unitId: z.ZodString;
157
+ unitTitle: z.ZodString;
158
+ unitSlug: z.ZodString;
110
159
  }, "strip", z.ZodTypeAny, {
111
- property_id: string;
112
- property_slug: string;
113
- unit_id: string;
114
- unit_title: string;
115
- unit_slug: string;
160
+ propertySlug: string;
161
+ propertyId: string;
162
+ unitId: string;
163
+ unitTitle: string;
164
+ unitSlug: string;
116
165
  }, {
117
- property_id: string;
118
- property_slug: string;
119
- unit_id: string;
120
- unit_title: string;
121
- unit_slug: string;
166
+ propertySlug: string;
167
+ propertyId: string;
168
+ unitId: string;
169
+ unitTitle: string;
170
+ unitSlug: string;
122
171
  }>;
123
172
  declare const hoverUnitSchema: z.ZodObject<{
124
- property_id: z.ZodString;
125
- property_slug: z.ZodString;
173
+ propertyId: z.ZodString;
174
+ propertySlug: z.ZodString;
126
175
  } & {
127
- property_name: z.ZodString;
176
+ propertyName: z.ZodString;
128
177
  } & {
129
- unit_id: z.ZodString;
130
- unit_title: z.ZodString;
131
- unit_slug: z.ZodString;
178
+ unitId: z.ZodString;
179
+ unitTitle: z.ZodString;
180
+ unitSlug: z.ZodString;
132
181
  } & {
133
- favorited_unit: z.ZodBoolean;
182
+ favoritedUnit: z.ZodBoolean;
134
183
  }, "strip", z.ZodTypeAny, {
135
- property_id: string;
136
- property_slug: string;
137
- property_name: string;
138
- unit_id: string;
139
- unit_title: string;
140
- unit_slug: string;
141
- favorited_unit: boolean;
184
+ propertySlug: string;
185
+ propertyId: string;
186
+ unitId: string;
187
+ propertyName: string;
188
+ unitTitle: string;
189
+ unitSlug: string;
190
+ favoritedUnit: boolean;
142
191
  }, {
143
- property_id: string;
144
- property_slug: string;
145
- property_name: string;
146
- unit_id: string;
147
- unit_title: string;
148
- unit_slug: string;
149
- favorited_unit: boolean;
192
+ propertySlug: string;
193
+ propertyId: string;
194
+ unitId: string;
195
+ propertyName: string;
196
+ unitTitle: string;
197
+ unitSlug: string;
198
+ favoritedUnit: boolean;
150
199
  }>;
151
200
  declare const filterOpenSchema: z.ZodObject<{
152
- property_id: z.ZodString;
153
- property_slug: z.ZodString;
201
+ propertyId: z.ZodString;
202
+ propertySlug: z.ZodString;
154
203
  } & {
155
- property_name: z.ZodString;
204
+ propertyName: z.ZodString;
156
205
  } & {
157
- filter_index: z.ZodNumber;
158
- filter_label: z.ZodString;
159
- selected_filters_ENUM: z.ZodEffects<z.ZodEffects<z.ZodAny, string[], any>, string[], any>;
160
- filter_name: z.ZodOptional<z.ZodString>;
206
+ filterIndex: z.ZodNumber;
207
+ filterLabel: z.ZodString;
208
+ selectedFiltersEnum: z.ZodEffects<z.ZodEffects<z.ZodAny, string[], any>, string[], any>;
209
+ filterName: z.ZodOptional<z.ZodString>;
161
210
  }, "strip", z.ZodTypeAny, {
162
- property_id: string;
163
- property_slug: string;
164
- property_name: string;
165
- filter_index: number;
166
- filter_label: string;
167
- selected_filters_ENUM: string[];
168
- filter_name?: string | undefined;
211
+ propertySlug: string;
212
+ propertyId: string;
213
+ propertyName: string;
214
+ filterIndex: number;
215
+ filterLabel: string;
216
+ selectedFiltersEnum: string[];
217
+ filterName?: string | undefined;
169
218
  }, {
170
- property_id: string;
171
- property_slug: string;
172
- property_name: string;
173
- filter_index: number;
174
- filter_label: string;
175
- selected_filters_ENUM?: any;
176
- filter_name?: string | undefined;
219
+ propertySlug: string;
220
+ propertyId: string;
221
+ propertyName: string;
222
+ filterIndex: number;
223
+ filterLabel: string;
224
+ selectedFiltersEnum?: any;
225
+ filterName?: string | undefined;
177
226
  }>;
178
227
  declare const filterMutationSchema: z.ZodObject<{
179
- property_id: z.ZodString;
180
- property_slug: z.ZodString;
228
+ propertyId: z.ZodString;
229
+ propertySlug: z.ZodString;
181
230
  } & {
182
- property_name: z.ZodString;
231
+ propertyName: z.ZodString;
183
232
  } & {
184
- filter_index: z.ZodNumber;
185
- filter_label: z.ZodString;
186
- selected_filters_ENUM: z.ZodEffects<z.ZodEffects<z.ZodAny, string[], any>, string[], any>;
233
+ filterIndex: z.ZodNumber;
234
+ filterLabel: z.ZodString;
235
+ selectedFiltersEnum: z.ZodEffects<z.ZodEffects<z.ZodAny, string[], any>, string[], any>;
187
236
  }, "strip", z.ZodTypeAny, {
188
- property_id: string;
189
- property_slug: string;
190
- property_name: string;
191
- filter_index: number;
192
- filter_label: string;
193
- selected_filters_ENUM: string[];
237
+ propertySlug: string;
238
+ propertyId: string;
239
+ propertyName: string;
240
+ filterIndex: number;
241
+ filterLabel: string;
242
+ selectedFiltersEnum: string[];
194
243
  }, {
195
- property_id: string;
196
- property_slug: string;
197
- property_name: string;
198
- filter_index: number;
199
- filter_label: string;
200
- selected_filters_ENUM?: any;
244
+ propertySlug: string;
245
+ propertyId: string;
246
+ propertyName: string;
247
+ filterIndex: number;
248
+ filterLabel: string;
249
+ selectedFiltersEnum?: any;
201
250
  }>;
202
251
  declare const sortEventSchema: z.ZodObject<{
203
- property_id: z.ZodString;
204
- property_slug: z.ZodString;
252
+ propertyId: z.ZodString;
253
+ propertySlug: z.ZodString;
205
254
  } & {
206
- sort_index: z.ZodNumber;
207
- sort_ENUM: z.ZodEnum<["cost_low_to_high", "cost_high_to_low", "newest", "relevance"]>;
255
+ sortIndex: z.ZodNumber;
256
+ sortEnum: z.ZodEnum<["cost_low_to_high", "cost_high_to_low", "newest", "relevance"]>;
208
257
  }, "strip", z.ZodTypeAny, {
209
- property_id: string;
210
- property_slug: string;
211
- sort_index: number;
212
- sort_ENUM: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
258
+ propertySlug: string;
259
+ propertyId: string;
260
+ sortIndex: number;
261
+ sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
213
262
  }, {
214
- property_id: string;
215
- property_slug: string;
216
- sort_index: number;
217
- sort_ENUM: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
263
+ propertySlug: string;
264
+ propertyId: string;
265
+ sortIndex: number;
266
+ sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
218
267
  }>;
219
268
  declare const sortOpenSchema: z.ZodObject<{
220
- property_id: z.ZodString;
221
- property_slug: z.ZodString;
269
+ propertyId: z.ZodString;
270
+ propertySlug: z.ZodString;
222
271
  } & {
223
- property_name: z.ZodString;
272
+ propertyName: z.ZodString;
224
273
  } & {
225
- sort_index: z.ZodNumber;
226
- sort_ENUM: z.ZodEnum<["cost_low_to_high", "cost_high_to_low", "newest", "relevance"]>;
227
- results_unit_count: z.ZodNumber;
228
- unit_count_date: z.ZodOptional<z.ZodString>;
274
+ sortIndex: z.ZodNumber;
275
+ sortEnum: z.ZodEnum<["cost_low_to_high", "cost_high_to_low", "newest", "relevance"]>;
276
+ resultsUnitCount: z.ZodNumber;
277
+ unitCountDate: z.ZodOptional<z.ZodString>;
229
278
  }, "strip", z.ZodTypeAny, {
230
- property_id: string;
231
- property_slug: string;
232
- property_name: string;
233
- results_unit_count: number;
234
- sort_index: number;
235
- sort_ENUM: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
236
- unit_count_date?: string | undefined;
279
+ propertySlug: string;
280
+ propertyId: string;
281
+ propertyName: string;
282
+ resultsUnitCount: number;
283
+ sortIndex: number;
284
+ sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
285
+ unitCountDate?: string | undefined;
237
286
  }, {
238
- property_id: string;
239
- property_slug: string;
240
- property_name: string;
241
- results_unit_count: number;
242
- sort_index: number;
243
- sort_ENUM: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
244
- unit_count_date?: string | undefined;
287
+ propertySlug: string;
288
+ propertyId: string;
289
+ propertyName: string;
290
+ resultsUnitCount: number;
291
+ sortIndex: number;
292
+ sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
293
+ unitCountDate?: string | undefined;
245
294
  }>;
246
295
  declare const questionnaireResultSchema: z.ZodObject<{
247
- property_id: z.ZodString;
248
- property_slug: z.ZodString;
296
+ propertyId: z.ZodString;
297
+ propertySlug: z.ZodString;
249
298
  } & {
250
- full_questionnaire_schema_json: z.ZodOptional<z.ZodUnknown>;
251
- unit_results: z.ZodOptional<z.ZodObject<{
299
+ fullQuestionnaireSchemaJson: z.ZodOptional<z.ZodUnknown>;
300
+ resultsJson: z.ZodOptional<z.ZodObject<{
252
301
  type: z.ZodOptional<z.ZodString>;
253
302
  total: z.ZodOptional<z.ZodNumber>;
254
303
  units: z.ZodOptional<z.ZodArray<z.ZodObject<{
255
- unit_id: z.ZodString;
256
- unit_name: z.ZodOptional<z.ZodString>;
304
+ unitId: z.ZodString;
305
+ unitName: z.ZodOptional<z.ZodString>;
257
306
  }, "strip", z.ZodTypeAny, {
258
- unit_id: string;
259
- unit_name?: string | undefined;
307
+ unitId: string;
308
+ unitName?: string | undefined;
260
309
  }, {
261
- unit_id: string;
262
- unit_name?: string | undefined;
310
+ unitId: string;
311
+ unitName?: string | undefined;
263
312
  }>, "many">>;
264
313
  }, "strip", z.ZodTypeAny, {
265
314
  type?: string | undefined;
266
315
  units?: {
267
- unit_id: string;
268
- unit_name?: string | undefined;
316
+ unitId: string;
317
+ unitName?: string | undefined;
269
318
  }[] | undefined;
270
319
  total?: number | undefined;
271
320
  }, {
272
321
  type?: string | undefined;
273
322
  units?: {
274
- unit_id: string;
275
- unit_name?: string | undefined;
323
+ unitId: string;
324
+ unitName?: string | undefined;
276
325
  }[] | undefined;
277
326
  total?: number | undefined;
278
327
  }>>;
279
328
  }, "strip", z.ZodTypeAny, {
280
- property_id: string;
281
- property_slug: string;
282
- full_questionnaire_schema_json?: unknown;
283
- unit_results?: {
329
+ propertySlug: string;
330
+ propertyId: string;
331
+ fullQuestionnaireSchemaJson?: unknown;
332
+ resultsJson?: {
284
333
  type?: string | undefined;
285
334
  units?: {
286
- unit_id: string;
287
- unit_name?: string | undefined;
335
+ unitId: string;
336
+ unitName?: string | undefined;
288
337
  }[] | undefined;
289
338
  total?: number | undefined;
290
339
  } | undefined;
291
340
  }, {
292
- property_id: string;
293
- property_slug: string;
294
- full_questionnaire_schema_json?: unknown;
295
- unit_results?: {
341
+ propertySlug: string;
342
+ propertyId: string;
343
+ fullQuestionnaireSchemaJson?: unknown;
344
+ resultsJson?: {
296
345
  type?: string | undefined;
297
346
  units?: {
298
- unit_id: string;
299
- unit_name?: string | undefined;
347
+ unitId: string;
348
+ unitName?: string | undefined;
300
349
  }[] | undefined;
301
350
  total?: number | undefined;
302
351
  } | undefined;
303
352
  }>;
304
353
  declare const clickUnitSchema: z.ZodObject<{
305
- property_id: z.ZodString;
306
- property_slug: z.ZodString;
354
+ propertyId: z.ZodString;
355
+ propertySlug: z.ZodString;
307
356
  } & {
308
- property_name: z.ZodString;
357
+ propertyName: z.ZodString;
309
358
  } & {
310
- unit_id: z.ZodString;
311
- unit_title: z.ZodString;
312
- unit_slug: z.ZodString;
359
+ unitId: z.ZodString;
360
+ unitTitle: z.ZodString;
361
+ unitSlug: z.ZodString;
313
362
  } & {
314
- favorited_unit: z.ZodBoolean;
363
+ favoritedUnit: z.ZodBoolean;
315
364
  }, "strip", z.ZodTypeAny, {
316
- property_id: string;
317
- property_slug: string;
318
- property_name: string;
319
- unit_id: string;
320
- unit_title: string;
321
- unit_slug: string;
322
- favorited_unit: boolean;
365
+ propertySlug: string;
366
+ propertyId: string;
367
+ unitId: string;
368
+ propertyName: string;
369
+ unitTitle: string;
370
+ unitSlug: string;
371
+ favoritedUnit: boolean;
323
372
  }, {
324
- property_id: string;
325
- property_slug: string;
326
- property_name: string;
327
- unit_id: string;
328
- unit_title: string;
329
- unit_slug: string;
330
- favorited_unit: boolean;
373
+ propertySlug: string;
374
+ propertyId: string;
375
+ unitId: string;
376
+ propertyName: string;
377
+ unitTitle: string;
378
+ unitSlug: string;
379
+ favoritedUnit: boolean;
331
380
  }>;
332
381
  declare const clickUnitFavoritesSchema: z.ZodObject<{
333
- property_id: z.ZodString;
334
- property_slug: z.ZodString;
382
+ propertyId: z.ZodString;
383
+ propertySlug: z.ZodString;
335
384
  } & {
336
- property_name: z.ZodString;
385
+ propertyName: z.ZodString;
337
386
  } & {
338
- unit_id: z.ZodString;
339
- unit_title: z.ZodString;
340
- unit_slug: z.ZodString;
387
+ unitId: z.ZodString;
388
+ unitTitle: z.ZodString;
389
+ unitSlug: z.ZodString;
341
390
  } & {
342
- favorited_unit: z.ZodBoolean;
391
+ favoritedUnit: z.ZodBoolean;
343
392
  }, "strip", z.ZodTypeAny, {
344
- property_id: string;
345
- property_slug: string;
346
- property_name: string;
347
- unit_id: string;
348
- unit_title: string;
349
- unit_slug: string;
350
- favorited_unit: boolean;
393
+ propertySlug: string;
394
+ propertyId: string;
395
+ unitId: string;
396
+ propertyName: string;
397
+ unitTitle: string;
398
+ unitSlug: string;
399
+ favoritedUnit: boolean;
351
400
  }, {
352
- property_id: string;
353
- property_slug: string;
354
- property_name: string;
355
- unit_id: string;
356
- unit_title: string;
357
- unit_slug: string;
358
- favorited_unit: boolean;
401
+ propertySlug: string;
402
+ propertyId: string;
403
+ unitId: string;
404
+ propertyName: string;
405
+ unitTitle: string;
406
+ unitSlug: string;
407
+ favoritedUnit: boolean;
408
+ }>;
409
+ declare const unitUnfavoritedSchema: z.ZodObject<{
410
+ propertyId: z.ZodString;
411
+ propertySlug: z.ZodString;
412
+ } & {
413
+ propertyName: z.ZodString;
414
+ } & {
415
+ unitId: z.ZodString;
416
+ unitTitle: z.ZodString;
417
+ unitSlug: z.ZodString;
418
+ resultsUnitCount: z.ZodNumber;
419
+ unitCountDate: z.ZodOptional<z.ZodString>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ propertySlug: string;
422
+ propertyId: string;
423
+ unitId: string;
424
+ propertyName: string;
425
+ resultsUnitCount: number;
426
+ unitTitle: string;
427
+ unitSlug: string;
428
+ unitCountDate?: string | undefined;
429
+ }, {
430
+ propertySlug: string;
431
+ propertyId: string;
432
+ unitId: string;
433
+ propertyName: string;
434
+ resultsUnitCount: number;
435
+ unitTitle: string;
436
+ unitSlug: string;
437
+ unitCountDate?: string | undefined;
359
438
  }>;
360
439
  export type BaseEvent = z.infer<typeof propertyContextSchema>;
361
440
  export type ViewAllUnitsEvent = z.infer<typeof viewAllUnitsSchema>;
@@ -371,6 +450,8 @@ export type SortEvent = z.infer<typeof sortEventSchema>;
371
450
  export type SortOpenEvent = z.infer<typeof sortOpenSchema>;
372
451
  export type QuestionnaireResultEvent = z.infer<typeof questionnaireResultSchema>;
373
452
  export type ClickUnitFavoritesEvent = z.infer<typeof clickUnitFavoritesSchema>;
453
+ export type ScheduleTourFormEvent = z.infer<typeof scheduleTourFormSchema>;
454
+ export type UnitUnfavoritedEvent = z.infer<typeof unitUnfavoritedSchema>;
374
455
  export type TrackingEventWithUnits = FilterEvent & {
375
456
  trackingEvent: (payload: FilterEvent) => void;
376
457
  [metadata: string]: unknown;
@@ -379,204 +460,246 @@ export type TrackEventFn = (eventName: string, data?: Record<string, any>) => vo
379
460
  export declare function useTrackEvent(): (eventName: string, data?: Record<string, any>) => void;
380
461
  export declare function buildTrackingEvents(trackEvent: TrackEventFn): {
381
462
  trackViewAllUnits: (payload: z.input<typeof viewAllUnitsSchema>) => void;
382
- trackQuestionnaireSkip: (payload: {
383
- property_id: string;
384
- property_slug: string;
385
- question_index: number;
386
- question_ENUM: string;
387
- }) => void;
388
- trackQuestionnaireContinue: (payload: {
389
- property_id: string;
390
- property_slug: string;
391
- question_index: number;
392
- question_ENUM: string;
393
- selected_answers_ENUM_Array?: any;
394
- }) => void;
395
- trackQuestionnaireBack: (payload: {
396
- property_id: string;
397
- property_slug: string;
398
- question_index: number;
399
- question_ENUM: string;
400
- }) => void;
463
+ trackQuestionnaireSkip: (payload: Omit<z.input<typeof questionnaireEventSchema>, "interactedElement">) => void;
464
+ trackQuestionnaireContinue: (payload: Omit<z.input<typeof continueQuestionnaireEventSchema>, "interactedElement">) => void;
465
+ trackQuestionnaireBack: (payload: Omit<z.input<typeof questionnaireEventSchema>, "interactedElement">) => void;
401
466
  trackClickUnit: (payload: {
402
- property_id: string;
403
- property_slug: string;
404
- property_name: string;
405
- unit_id: string;
406
- unit_title: string;
407
- unit_slug: string;
408
- favorited_unit: boolean;
467
+ propertySlug: string;
468
+ propertyId: string;
469
+ unitId: string;
470
+ propertyName: string;
471
+ unitTitle: string;
472
+ unitSlug: string;
473
+ favoritedUnit: boolean;
409
474
  }) => void;
410
475
  trackHoverUnit: (payload: {
411
- property_id: string;
412
- property_slug: string;
413
- property_name: string;
414
- unit_id: string;
415
- unit_title: string;
416
- unit_slug: string;
417
- favorited_unit: boolean;
476
+ propertySlug: string;
477
+ propertyId: string;
478
+ unitId: string;
479
+ propertyName: string;
480
+ unitTitle: string;
481
+ unitSlug: string;
482
+ favoritedUnit: boolean;
418
483
  }) => void;
419
484
  trackLoadMore: (payload: z.input<typeof loadMoreSchema>) => void;
420
- trackOpenFilters: (payload: {
421
- property_id: string;
422
- property_slug: string;
423
- property_name: string;
424
- filter_index: number;
425
- filter_label: string;
426
- selected_filters_ENUM?: any;
427
- filter_name?: string | undefined;
485
+ trackFilterOpened: (payload: {
486
+ propertySlug: string;
487
+ propertyId: string;
488
+ propertyName: string;
489
+ filterIndex: number;
490
+ filterLabel: string;
491
+ selectedFiltersEnum?: any;
492
+ filterName?: string | undefined;
428
493
  }) => void;
429
- trackCancelFilter: (payload: {
430
- property_id: string;
431
- property_slug: string;
432
- property_name: string;
433
- filter_index: number;
434
- filter_label: string;
435
- selected_filters_ENUM?: any;
494
+ trackFilterCanceled: (payload: {
495
+ propertySlug: string;
496
+ propertyId: string;
497
+ propertyName: string;
498
+ filterIndex: number;
499
+ filterLabel: string;
500
+ selectedFiltersEnum?: any;
436
501
  }) => void;
437
- trackApplyFilter: (payload: {
438
- property_id: string;
439
- property_slug: string;
440
- property_name: string;
441
- filter_index: number;
442
- filter_label: string;
443
- selected_filters_ENUM?: any;
502
+ trackFilterApplied: (payload: {
503
+ propertySlug: string;
504
+ propertyId: string;
505
+ propertyName: string;
506
+ filterIndex: number;
507
+ filterLabel: string;
508
+ selectedFiltersEnum?: any;
444
509
  }) => void;
445
510
  trackOpenSort: (payload: z.input<typeof sortOpenSchema>) => void;
446
511
  trackSelectSort: (payload: {
447
- property_id: string;
448
- property_slug: string;
449
- sort_index: number;
450
- sort_ENUM: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
512
+ propertySlug: string;
513
+ propertyId: string;
514
+ sortIndex: number;
515
+ sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
451
516
  }) => void;
452
517
  trackCancelSort: (payload: {
453
- property_id: string;
454
- property_slug: string;
455
- sort_index: number;
456
- sort_ENUM: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
518
+ propertySlug: string;
519
+ propertyId: string;
520
+ sortIndex: number;
521
+ sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
457
522
  }) => void;
458
523
  trackClickUnitFavorites: (payload: {
459
- property_id: string;
460
- property_slug: string;
461
- property_name: string;
462
- unit_id: string;
463
- unit_title: string;
464
- unit_slug: string;
465
- favorited_unit: boolean;
524
+ propertySlug: string;
525
+ propertyId: string;
526
+ unitId: string;
527
+ propertyName: string;
528
+ unitTitle: string;
529
+ unitSlug: string;
530
+ favoritedUnit: boolean;
531
+ }) => void;
532
+ trackUnitUnfavorited: (payload: {
533
+ propertySlug: string;
534
+ propertyId: string;
535
+ unitId: string;
536
+ propertyName: string;
537
+ resultsUnitCount: number;
538
+ unitTitle: string;
539
+ unitSlug: string;
540
+ unitCountDate?: string | undefined;
466
541
  }) => void;
467
542
  trackQuestionnaireResult: (payload: {
468
- property_id: string;
469
- property_slug: string;
470
- full_questionnaire_schema_json?: unknown;
471
- unit_results?: {
543
+ propertySlug: string;
544
+ propertyId: string;
545
+ fullQuestionnaireSchemaJson?: unknown;
546
+ resultsJson?: {
472
547
  type?: string | undefined;
473
548
  units?: {
474
- unit_id: string;
475
- unit_name?: string | undefined;
549
+ unitId: string;
550
+ unitName?: string | undefined;
476
551
  }[] | undefined;
477
552
  total?: number | undefined;
478
553
  } | undefined;
479
554
  }) => void;
480
- };
481
- export declare function useTrackingEvents(): {
482
- trackViewAllUnits: (payload: z.input<typeof viewAllUnitsSchema>) => void;
483
- trackQuestionnaireSkip: (payload: {
484
- property_id: string;
485
- property_slug: string;
486
- question_index: number;
487
- question_ENUM: string;
555
+ trackScheduleTourFormInteracted: (payload: {
556
+ propertySlug: string;
557
+ propertyId: string;
558
+ propertyName: string;
559
+ totalUnitsAvailable: number;
560
+ resultsUnitCount: number;
561
+ unitCountDate?: string | undefined;
562
+ lifestylePreferences?: unknown;
488
563
  }) => void;
489
- trackQuestionnaireContinue: (payload: {
490
- property_id: string;
491
- property_slug: string;
492
- question_index: number;
493
- question_ENUM: string;
494
- selected_answers_ENUM_Array?: any;
564
+ trackScheduleTourFormSubmitted: (payload: {
565
+ propertySlug: string;
566
+ propertyId: string;
567
+ propertyName: string;
568
+ totalUnitsAvailable: number;
569
+ resultsUnitCount: number;
570
+ unitCountDate?: string | undefined;
571
+ lifestylePreferences?: unknown;
495
572
  }) => void;
496
- trackQuestionnaireBack: (payload: {
497
- property_id: string;
498
- property_slug: string;
499
- question_index: number;
500
- question_ENUM: string;
573
+ trackScheduleTourUrlClicked: (payload: {
574
+ propertySlug: string;
575
+ propertyId: string;
576
+ propertyName: string;
577
+ totalUnitsAvailable: number;
578
+ resultsUnitCount: number;
579
+ unitCountDate?: string | undefined;
580
+ lifestylePreferences?: unknown;
501
581
  }) => void;
582
+ };
583
+ export declare function useTrackingEvents(): {
584
+ trackViewAllUnits: (payload: z.input<typeof viewAllUnitsSchema>) => void;
585
+ trackQuestionnaireSkip: (payload: Omit<z.input<typeof questionnaireEventSchema>, "interactedElement">) => void;
586
+ trackQuestionnaireContinue: (payload: Omit<z.input<typeof continueQuestionnaireEventSchema>, "interactedElement">) => void;
587
+ trackQuestionnaireBack: (payload: Omit<z.input<typeof questionnaireEventSchema>, "interactedElement">) => void;
502
588
  trackClickUnit: (payload: {
503
- property_id: string;
504
- property_slug: string;
505
- property_name: string;
506
- unit_id: string;
507
- unit_title: string;
508
- unit_slug: string;
509
- favorited_unit: boolean;
589
+ propertySlug: string;
590
+ propertyId: string;
591
+ unitId: string;
592
+ propertyName: string;
593
+ unitTitle: string;
594
+ unitSlug: string;
595
+ favoritedUnit: boolean;
510
596
  }) => void;
511
597
  trackHoverUnit: (payload: {
512
- property_id: string;
513
- property_slug: string;
514
- property_name: string;
515
- unit_id: string;
516
- unit_title: string;
517
- unit_slug: string;
518
- favorited_unit: boolean;
598
+ propertySlug: string;
599
+ propertyId: string;
600
+ unitId: string;
601
+ propertyName: string;
602
+ unitTitle: string;
603
+ unitSlug: string;
604
+ favoritedUnit: boolean;
519
605
  }) => void;
520
606
  trackLoadMore: (payload: z.input<typeof loadMoreSchema>) => void;
521
- trackOpenFilters: (payload: {
522
- property_id: string;
523
- property_slug: string;
524
- property_name: string;
525
- filter_index: number;
526
- filter_label: string;
527
- selected_filters_ENUM?: any;
528
- filter_name?: string | undefined;
607
+ trackFilterOpened: (payload: {
608
+ propertySlug: string;
609
+ propertyId: string;
610
+ propertyName: string;
611
+ filterIndex: number;
612
+ filterLabel: string;
613
+ selectedFiltersEnum?: any;
614
+ filterName?: string | undefined;
529
615
  }) => void;
530
- trackCancelFilter: (payload: {
531
- property_id: string;
532
- property_slug: string;
533
- property_name: string;
534
- filter_index: number;
535
- filter_label: string;
536
- selected_filters_ENUM?: any;
616
+ trackFilterCanceled: (payload: {
617
+ propertySlug: string;
618
+ propertyId: string;
619
+ propertyName: string;
620
+ filterIndex: number;
621
+ filterLabel: string;
622
+ selectedFiltersEnum?: any;
537
623
  }) => void;
538
- trackApplyFilter: (payload: {
539
- property_id: string;
540
- property_slug: string;
541
- property_name: string;
542
- filter_index: number;
543
- filter_label: string;
544
- selected_filters_ENUM?: any;
624
+ trackFilterApplied: (payload: {
625
+ propertySlug: string;
626
+ propertyId: string;
627
+ propertyName: string;
628
+ filterIndex: number;
629
+ filterLabel: string;
630
+ selectedFiltersEnum?: any;
545
631
  }) => void;
546
632
  trackOpenSort: (payload: z.input<typeof sortOpenSchema>) => void;
547
633
  trackSelectSort: (payload: {
548
- property_id: string;
549
- property_slug: string;
550
- sort_index: number;
551
- sort_ENUM: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
634
+ propertySlug: string;
635
+ propertyId: string;
636
+ sortIndex: number;
637
+ sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
552
638
  }) => void;
553
639
  trackCancelSort: (payload: {
554
- property_id: string;
555
- property_slug: string;
556
- sort_index: number;
557
- sort_ENUM: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
640
+ propertySlug: string;
641
+ propertyId: string;
642
+ sortIndex: number;
643
+ sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
558
644
  }) => void;
559
645
  trackClickUnitFavorites: (payload: {
560
- property_id: string;
561
- property_slug: string;
562
- property_name: string;
563
- unit_id: string;
564
- unit_title: string;
565
- unit_slug: string;
566
- favorited_unit: boolean;
646
+ propertySlug: string;
647
+ propertyId: string;
648
+ unitId: string;
649
+ propertyName: string;
650
+ unitTitle: string;
651
+ unitSlug: string;
652
+ favoritedUnit: boolean;
653
+ }) => void;
654
+ trackUnitUnfavorited: (payload: {
655
+ propertySlug: string;
656
+ propertyId: string;
657
+ unitId: string;
658
+ propertyName: string;
659
+ resultsUnitCount: number;
660
+ unitTitle: string;
661
+ unitSlug: string;
662
+ unitCountDate?: string | undefined;
567
663
  }) => void;
568
664
  trackQuestionnaireResult: (payload: {
569
- property_id: string;
570
- property_slug: string;
571
- full_questionnaire_schema_json?: unknown;
572
- unit_results?: {
665
+ propertySlug: string;
666
+ propertyId: string;
667
+ fullQuestionnaireSchemaJson?: unknown;
668
+ resultsJson?: {
573
669
  type?: string | undefined;
574
670
  units?: {
575
- unit_id: string;
576
- unit_name?: string | undefined;
671
+ unitId: string;
672
+ unitName?: string | undefined;
577
673
  }[] | undefined;
578
674
  total?: number | undefined;
579
675
  } | undefined;
580
676
  }) => void;
677
+ trackScheduleTourFormInteracted: (payload: {
678
+ propertySlug: string;
679
+ propertyId: string;
680
+ propertyName: string;
681
+ totalUnitsAvailable: number;
682
+ resultsUnitCount: number;
683
+ unitCountDate?: string | undefined;
684
+ lifestylePreferences?: unknown;
685
+ }) => void;
686
+ trackScheduleTourFormSubmitted: (payload: {
687
+ propertySlug: string;
688
+ propertyId: string;
689
+ propertyName: string;
690
+ totalUnitsAvailable: number;
691
+ resultsUnitCount: number;
692
+ unitCountDate?: string | undefined;
693
+ lifestylePreferences?: unknown;
694
+ }) => void;
695
+ trackScheduleTourUrlClicked: (payload: {
696
+ propertySlug: string;
697
+ propertyId: string;
698
+ propertyName: string;
699
+ totalUnitsAvailable: number;
700
+ resultsUnitCount: number;
701
+ unitCountDate?: string | undefined;
702
+ lifestylePreferences?: unknown;
703
+ }) => void;
581
704
  };
582
705
  export {};