@superbright/indexeddb-orm 1.0.34 → 1.0.35

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.
@@ -818,6 +818,195 @@ declare const buildingDetailsModalSchema: z.ZodObject<{
818
818
  propertySlug: string;
819
819
  propertyName: string;
820
820
  }>;
821
+ declare const subscriptionImpressionSchema: z.ZodObject<{
822
+ propertyId: z.ZodString;
823
+ propertySlug: z.ZodString;
824
+ } & {
825
+ propertyName: z.ZodString;
826
+ } & {
827
+ name: z.ZodString;
828
+ }, "strip", z.ZodTypeAny, {
829
+ name: string;
830
+ propertyId: string;
831
+ propertySlug: string;
832
+ propertyName: string;
833
+ }, {
834
+ name: string;
835
+ propertyId: string;
836
+ propertySlug: string;
837
+ propertyName: string;
838
+ }>;
839
+ declare const subscriptionInteractedSchema: z.ZodObject<{
840
+ name: z.ZodString;
841
+ properties: z.ZodObject<{
842
+ propertyContextSchema: z.ZodObject<{
843
+ propertyId: z.ZodString;
844
+ propertySlug: z.ZodString;
845
+ propertyName: z.ZodString;
846
+ }, "strip", z.ZodTypeAny, {
847
+ propertyId: string;
848
+ propertySlug: string;
849
+ propertyName: string;
850
+ }, {
851
+ propertyId: string;
852
+ propertySlug: string;
853
+ propertyName: string;
854
+ }>;
855
+ buttonName: z.ZodString;
856
+ formName: z.ZodString;
857
+ pageName: z.ZodString;
858
+ fieldName: z.ZodString;
859
+ }, "strip", z.ZodTypeAny, {
860
+ buttonName: string;
861
+ formName: string;
862
+ pageName: string;
863
+ propertyContextSchema: {
864
+ propertyId: string;
865
+ propertySlug: string;
866
+ propertyName: string;
867
+ };
868
+ fieldName: string;
869
+ }, {
870
+ buttonName: string;
871
+ formName: string;
872
+ pageName: string;
873
+ propertyContextSchema: {
874
+ propertyId: string;
875
+ propertySlug: string;
876
+ propertyName: string;
877
+ };
878
+ fieldName: string;
879
+ }>;
880
+ }, "strip", z.ZodTypeAny, {
881
+ name: string;
882
+ properties: {
883
+ buttonName: string;
884
+ formName: string;
885
+ pageName: string;
886
+ propertyContextSchema: {
887
+ propertyId: string;
888
+ propertySlug: string;
889
+ propertyName: string;
890
+ };
891
+ fieldName: string;
892
+ };
893
+ }, {
894
+ name: string;
895
+ properties: {
896
+ buttonName: string;
897
+ formName: string;
898
+ pageName: string;
899
+ propertyContextSchema: {
900
+ propertyId: string;
901
+ propertySlug: string;
902
+ propertyName: string;
903
+ };
904
+ fieldName: string;
905
+ };
906
+ }>;
907
+ declare const subscriptionSubmittedSchema: z.ZodObject<{
908
+ name: z.ZodString;
909
+ properties: z.ZodObject<{
910
+ propertyContextSchema: z.ZodObject<{
911
+ propertyId: z.ZodString;
912
+ propertySlug: z.ZodString;
913
+ propertyName: z.ZodString;
914
+ }, "strip", z.ZodTypeAny, {
915
+ propertyId: string;
916
+ propertySlug: string;
917
+ propertyName: string;
918
+ }, {
919
+ propertyId: string;
920
+ propertySlug: string;
921
+ propertyName: string;
922
+ }>;
923
+ buttonName: z.ZodString;
924
+ formName: z.ZodString;
925
+ pageName: z.ZodString;
926
+ bedrooms: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
927
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
928
+ }, "strip", z.ZodTypeAny, {
929
+ buttonName: string;
930
+ formName: string;
931
+ pageName: string;
932
+ propertyContextSchema: {
933
+ propertyId: string;
934
+ propertySlug: string;
935
+ propertyName: string;
936
+ };
937
+ bedrooms?: (string | number)[] | undefined;
938
+ price?: number | null | undefined;
939
+ }, {
940
+ buttonName: string;
941
+ formName: string;
942
+ pageName: string;
943
+ propertyContextSchema: {
944
+ propertyId: string;
945
+ propertySlug: string;
946
+ propertyName: string;
947
+ };
948
+ bedrooms?: (string | number)[] | undefined;
949
+ price?: number | null | undefined;
950
+ }>;
951
+ }, "strip", z.ZodTypeAny, {
952
+ name: string;
953
+ properties: {
954
+ buttonName: string;
955
+ formName: string;
956
+ pageName: string;
957
+ propertyContextSchema: {
958
+ propertyId: string;
959
+ propertySlug: string;
960
+ propertyName: string;
961
+ };
962
+ bedrooms?: (string | number)[] | undefined;
963
+ price?: number | null | undefined;
964
+ };
965
+ }, {
966
+ name: string;
967
+ properties: {
968
+ buttonName: string;
969
+ formName: string;
970
+ pageName: string;
971
+ propertyContextSchema: {
972
+ propertyId: string;
973
+ propertySlug: string;
974
+ propertyName: string;
975
+ };
976
+ bedrooms?: (string | number)[] | undefined;
977
+ price?: number | null | undefined;
978
+ };
979
+ }>;
980
+ declare const subscriptionRemovedSchema: z.ZodObject<{
981
+ propertyId: z.ZodString;
982
+ propertySlug: z.ZodString;
983
+ } & {
984
+ propertyName: z.ZodString;
985
+ } & {
986
+ bedrooms: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
987
+ price_min: z.ZodOptional<z.ZodNumber>;
988
+ price_max: z.ZodOptional<z.ZodNumber>;
989
+ highlights: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
990
+ page_name: z.ZodOptional<z.ZodString>;
991
+ }, "strip", z.ZodTypeAny, {
992
+ propertyId: string;
993
+ propertySlug: string;
994
+ propertyName: string;
995
+ highlights?: string[] | undefined;
996
+ bedrooms?: number[] | undefined;
997
+ price_min?: number | undefined;
998
+ price_max?: number | undefined;
999
+ page_name?: string | undefined;
1000
+ }, {
1001
+ propertyId: string;
1002
+ propertySlug: string;
1003
+ propertyName: string;
1004
+ highlights?: string[] | undefined;
1005
+ bedrooms?: number[] | undefined;
1006
+ price_min?: number | undefined;
1007
+ price_max?: number | undefined;
1008
+ page_name?: string | undefined;
1009
+ }>;
821
1010
  declare const hoverUnitSchema: z.ZodObject<{
822
1011
  propertyId: z.ZodString;
823
1012
  propertySlug: z.ZodString;
@@ -829,6 +1018,7 @@ declare const hoverUnitSchema: z.ZodObject<{
829
1018
  unitSlug: z.ZodString;
830
1019
  } & {
831
1020
  favoritedUnit: z.ZodBoolean;
1021
+ unitIndex: z.ZodNumber;
832
1022
  }, "strip", z.ZodTypeAny, {
833
1023
  propertyId: string;
834
1024
  propertySlug: string;
@@ -837,6 +1027,7 @@ declare const hoverUnitSchema: z.ZodObject<{
837
1027
  unitName: string;
838
1028
  unitSlug: string;
839
1029
  favoritedUnit: boolean;
1030
+ unitIndex: number;
840
1031
  }, {
841
1032
  propertyId: string;
842
1033
  propertySlug: string;
@@ -845,6 +1036,7 @@ declare const hoverUnitSchema: z.ZodObject<{
845
1036
  unitName: string;
846
1037
  unitSlug: string;
847
1038
  favoritedUnit: boolean;
1039
+ unitIndex: number;
848
1040
  }>;
849
1041
  declare const filterOpenSchema: z.ZodObject<{
850
1042
  propertyId: z.ZodString;
@@ -1016,6 +1208,7 @@ declare const clickUnitSchema: z.ZodObject<{
1016
1208
  unitSlug: z.ZodString;
1017
1209
  } & {
1018
1210
  favoritedUnit: z.ZodBoolean;
1211
+ unitIndex: z.ZodNumber;
1019
1212
  }, "strip", z.ZodTypeAny, {
1020
1213
  propertyId: string;
1021
1214
  propertySlug: string;
@@ -1024,6 +1217,7 @@ declare const clickUnitSchema: z.ZodObject<{
1024
1217
  unitName: string;
1025
1218
  unitSlug: string;
1026
1219
  favoritedUnit: boolean;
1220
+ unitIndex: number;
1027
1221
  }, {
1028
1222
  propertyId: string;
1029
1223
  propertySlug: string;
@@ -1032,6 +1226,7 @@ declare const clickUnitSchema: z.ZodObject<{
1032
1226
  unitName: string;
1033
1227
  unitSlug: string;
1034
1228
  favoritedUnit: boolean;
1229
+ unitIndex: number;
1035
1230
  }>;
1036
1231
  declare const clickUnitFavoritesSchema: z.ZodObject<{
1037
1232
  propertyId: z.ZodString;
@@ -1044,6 +1239,7 @@ declare const clickUnitFavoritesSchema: z.ZodObject<{
1044
1239
  unitSlug: z.ZodString;
1045
1240
  } & {
1046
1241
  favoritedUnit: z.ZodBoolean;
1242
+ unitIndex: z.ZodNumber;
1047
1243
  }, "strip", z.ZodTypeAny, {
1048
1244
  propertyId: string;
1049
1245
  propertySlug: string;
@@ -1052,6 +1248,7 @@ declare const clickUnitFavoritesSchema: z.ZodObject<{
1052
1248
  unitName: string;
1053
1249
  unitSlug: string;
1054
1250
  favoritedUnit: boolean;
1251
+ unitIndex: number;
1055
1252
  }, {
1056
1253
  propertyId: string;
1057
1254
  propertySlug: string;
@@ -1060,6 +1257,7 @@ declare const clickUnitFavoritesSchema: z.ZodObject<{
1060
1257
  unitName: string;
1061
1258
  unitSlug: string;
1062
1259
  favoritedUnit: boolean;
1260
+ unitIndex: number;
1063
1261
  }>;
1064
1262
  declare const unitUnfavoritedSchema: z.ZodObject<{
1065
1263
  propertyId: z.ZodString;
@@ -1072,6 +1270,7 @@ declare const unitUnfavoritedSchema: z.ZodObject<{
1072
1270
  unitSlug: z.ZodString;
1073
1271
  resultsUnitCount: z.ZodNumber;
1074
1272
  unitCountDate: z.ZodOptional<z.ZodString>;
1273
+ unitIndex: z.ZodNumber;
1075
1274
  }, "strip", z.ZodTypeAny, {
1076
1275
  propertyId: string;
1077
1276
  propertySlug: string;
@@ -1080,6 +1279,7 @@ declare const unitUnfavoritedSchema: z.ZodObject<{
1080
1279
  resultsUnitCount: number;
1081
1280
  unitName: string;
1082
1281
  unitSlug: string;
1282
+ unitIndex: number;
1083
1283
  unitCountDate?: string | undefined;
1084
1284
  }, {
1085
1285
  propertyId: string;
@@ -1089,6 +1289,7 @@ declare const unitUnfavoritedSchema: z.ZodObject<{
1089
1289
  resultsUnitCount: number;
1090
1290
  unitName: string;
1091
1291
  unitSlug: string;
1292
+ unitIndex: number;
1092
1293
  unitCountDate?: string | undefined;
1093
1294
  }>;
1094
1295
  export type BaseEvent = z.infer<typeof propertyContextSchema>;
@@ -1121,6 +1322,10 @@ export type EmailTrackedEvent = z.infer<typeof emailTrackedSchema>;
1121
1322
  export type ToastEvent = z.infer<typeof toastSchema>;
1122
1323
  export type ContentModalOpenedEvent = z.infer<typeof contentModalOpenedSchema>;
1123
1324
  export type BuildingDetailsModalEvent = z.infer<typeof buildingDetailsModalSchema>;
1325
+ export type SubscriptionImpressionEvent = z.infer<typeof subscriptionImpressionSchema>;
1326
+ export type SubscriptionInteractedEvent = z.infer<typeof subscriptionInteractedSchema>;
1327
+ export type SubscriptionSubmittedEvent = z.infer<typeof subscriptionSubmittedSchema>;
1328
+ export type SubscriptionRemovedEvent = z.infer<typeof subscriptionRemovedSchema>;
1124
1329
  export type WebPageViewedEvent = z.infer<typeof webPageViewedSchema>;
1125
1330
  export type WebPageRoomViewedEvent = z.infer<typeof webPageRoomViewedSchema>;
1126
1331
  export type TrackingEventWithUnits = FilterEvent & {
@@ -1142,6 +1347,7 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn, isDev?: bo
1142
1347
  unitName: string;
1143
1348
  unitSlug: string;
1144
1349
  favoritedUnit: boolean;
1350
+ unitIndex: number;
1145
1351
  }) => void;
1146
1352
  trackHoverUnit: (payload: {
1147
1353
  propertyId: string;
@@ -1151,6 +1357,7 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn, isDev?: bo
1151
1357
  unitName: string;
1152
1358
  unitSlug: string;
1153
1359
  favoritedUnit: boolean;
1360
+ unitIndex: number;
1154
1361
  }) => void;
1155
1362
  trackLoadMore: (payload: AnalyticsPayload<typeof loadMoreSchema>) => void;
1156
1363
  trackFilterOpened: (payload: {
@@ -1201,6 +1408,7 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn, isDev?: bo
1201
1408
  unitName: string;
1202
1409
  unitSlug: string;
1203
1410
  favoritedUnit: boolean;
1411
+ unitIndex: number;
1204
1412
  }) => void;
1205
1413
  trackUnitUnfavorited: (payload: {
1206
1414
  propertyId: string;
@@ -1210,6 +1418,7 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn, isDev?: bo
1210
1418
  resultsUnitCount: number;
1211
1419
  unitName: string;
1212
1420
  unitSlug: string;
1421
+ unitIndex: number;
1213
1422
  unitCountDate?: string | undefined;
1214
1423
  }) => void;
1215
1424
  trackQuestionnaireResult: (payload: {
@@ -1510,6 +1719,51 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn, isDev?: bo
1510
1719
  propertySlug: string;
1511
1720
  propertyName: string;
1512
1721
  }) => void;
1722
+ trackSubscriptionImpression: (payload: {
1723
+ name: string;
1724
+ propertyId: string;
1725
+ propertySlug: string;
1726
+ propertyName: string;
1727
+ }) => void;
1728
+ trackSubscriptionInteracted: (payload: {
1729
+ name: string;
1730
+ properties: {
1731
+ buttonName: string;
1732
+ formName: string;
1733
+ pageName: string;
1734
+ propertyContextSchema: {
1735
+ propertyId: string;
1736
+ propertySlug: string;
1737
+ propertyName: string;
1738
+ };
1739
+ fieldName: string;
1740
+ };
1741
+ }) => void;
1742
+ trackSubscriptionSubmitted: (payload: {
1743
+ name: string;
1744
+ properties: {
1745
+ buttonName: string;
1746
+ formName: string;
1747
+ pageName: string;
1748
+ propertyContextSchema: {
1749
+ propertyId: string;
1750
+ propertySlug: string;
1751
+ propertyName: string;
1752
+ };
1753
+ bedrooms?: (string | number)[] | undefined;
1754
+ price?: number | null | undefined;
1755
+ };
1756
+ }) => void;
1757
+ trackSubscriptionRemoved: (payload: {
1758
+ propertyId: string;
1759
+ propertySlug: string;
1760
+ propertyName: string;
1761
+ highlights?: string[] | undefined;
1762
+ bedrooms?: number[] | undefined;
1763
+ price_min?: number | undefined;
1764
+ price_max?: number | undefined;
1765
+ page_name?: string | undefined;
1766
+ }) => void;
1513
1767
  trackWebPageViewed: (payload: {
1514
1768
  propertyId: string;
1515
1769
  propertySlug: string;
@@ -1541,6 +1795,19 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn, isDev?: bo
1541
1795
  unitSlug: string;
1542
1796
  unitBedrooms: number;
1543
1797
  }) => void;
1798
+ trackEmailClick: (data: {
1799
+ event_name: string;
1800
+ }) => (payload: {
1801
+ propertyId: string;
1802
+ propertySlug: string;
1803
+ unitId: string;
1804
+ propertyName: string;
1805
+ unitName: string;
1806
+ unitSlug: string;
1807
+ utmSource: string;
1808
+ utmMedium: string;
1809
+ utmName: string;
1810
+ }) => void;
1544
1811
  };
1545
1812
  export declare function useTrackingEvents(): {
1546
1813
  trackViewAllUnits: (payload: AnalyticsPayload<typeof viewAllUnitsSchema>) => void;
@@ -1555,6 +1822,7 @@ export declare function useTrackingEvents(): {
1555
1822
  unitName: string;
1556
1823
  unitSlug: string;
1557
1824
  favoritedUnit: boolean;
1825
+ unitIndex: number;
1558
1826
  }) => void;
1559
1827
  trackHoverUnit: (payload: {
1560
1828
  propertyId: string;
@@ -1564,6 +1832,7 @@ export declare function useTrackingEvents(): {
1564
1832
  unitName: string;
1565
1833
  unitSlug: string;
1566
1834
  favoritedUnit: boolean;
1835
+ unitIndex: number;
1567
1836
  }) => void;
1568
1837
  trackLoadMore: (payload: AnalyticsPayload<typeof loadMoreSchema>) => void;
1569
1838
  trackFilterOpened: (payload: {
@@ -1614,6 +1883,7 @@ export declare function useTrackingEvents(): {
1614
1883
  unitName: string;
1615
1884
  unitSlug: string;
1616
1885
  favoritedUnit: boolean;
1886
+ unitIndex: number;
1617
1887
  }) => void;
1618
1888
  trackUnitUnfavorited: (payload: {
1619
1889
  propertyId: string;
@@ -1623,6 +1893,7 @@ export declare function useTrackingEvents(): {
1623
1893
  resultsUnitCount: number;
1624
1894
  unitName: string;
1625
1895
  unitSlug: string;
1896
+ unitIndex: number;
1626
1897
  unitCountDate?: string | undefined;
1627
1898
  }) => void;
1628
1899
  trackQuestionnaireResult: (payload: {
@@ -1923,6 +2194,51 @@ export declare function useTrackingEvents(): {
1923
2194
  propertySlug: string;
1924
2195
  propertyName: string;
1925
2196
  }) => void;
2197
+ trackSubscriptionImpression: (payload: {
2198
+ name: string;
2199
+ propertyId: string;
2200
+ propertySlug: string;
2201
+ propertyName: string;
2202
+ }) => void;
2203
+ trackSubscriptionInteracted: (payload: {
2204
+ name: string;
2205
+ properties: {
2206
+ buttonName: string;
2207
+ formName: string;
2208
+ pageName: string;
2209
+ propertyContextSchema: {
2210
+ propertyId: string;
2211
+ propertySlug: string;
2212
+ propertyName: string;
2213
+ };
2214
+ fieldName: string;
2215
+ };
2216
+ }) => void;
2217
+ trackSubscriptionSubmitted: (payload: {
2218
+ name: string;
2219
+ properties: {
2220
+ buttonName: string;
2221
+ formName: string;
2222
+ pageName: string;
2223
+ propertyContextSchema: {
2224
+ propertyId: string;
2225
+ propertySlug: string;
2226
+ propertyName: string;
2227
+ };
2228
+ bedrooms?: (string | number)[] | undefined;
2229
+ price?: number | null | undefined;
2230
+ };
2231
+ }) => void;
2232
+ trackSubscriptionRemoved: (payload: {
2233
+ propertyId: string;
2234
+ propertySlug: string;
2235
+ propertyName: string;
2236
+ highlights?: string[] | undefined;
2237
+ bedrooms?: number[] | undefined;
2238
+ price_min?: number | undefined;
2239
+ price_max?: number | undefined;
2240
+ page_name?: string | undefined;
2241
+ }) => void;
1926
2242
  trackWebPageViewed: (payload: {
1927
2243
  propertyId: string;
1928
2244
  propertySlug: string;
@@ -1954,5 +2270,18 @@ export declare function useTrackingEvents(): {
1954
2270
  unitSlug: string;
1955
2271
  unitBedrooms: number;
1956
2272
  }) => void;
2273
+ trackEmailClick: (data: {
2274
+ event_name: string;
2275
+ }) => (payload: {
2276
+ propertyId: string;
2277
+ propertySlug: string;
2278
+ unitId: string;
2279
+ propertyName: string;
2280
+ unitName: string;
2281
+ unitSlug: string;
2282
+ utmSource: string;
2283
+ utmMedium: string;
2284
+ utmName: string;
2285
+ }) => void;
1957
2286
  };
1958
2287
  export {};