@superbright/indexeddb-orm 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/floorplan.d.ts +2 -2
- package/dist/base/property.d.ts +2 -2
- package/dist/base/propertyamenity.d.ts +2 -2
- package/dist/base/propertyhighlight.d.ts +2 -2
- package/dist/base/room.d.ts +2 -2
- package/dist/base/style.d.ts +2 -2
- package/dist/base/unit.d.ts +2 -2
- package/dist/features/analytics/analytics.cjs +1 -1
- package/dist/features/analytics/analytics.cjs.map +1 -1
- package/dist/features/analytics/analytics.d.ts +142 -0
- package/dist/features/analytics/analytics.mjs +98 -77
- package/dist/features/analytics/analytics.mjs.map +1 -1
- package/dist/features/units/transformers.cjs +1 -1
- package/dist/features/units/transformers.cjs.map +1 -1
- package/dist/features/units/transformers.d.ts +1 -2
- package/dist/features/units/transformers.mjs +35 -32
- package/dist/features/units/transformers.mjs.map +1 -1
- package/dist/schema.cjs +1 -1
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.ts +77 -77
- package/dist/schema.mjs +2 -2
- package/dist/schema.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -11,12 +11,15 @@ export type QuestionnaireInteraction = (typeof QuestionnaireInteractionValues)[n
|
|
|
11
11
|
declare const propertyContextSchema: z.ZodObject<{
|
|
12
12
|
propertyId: z.ZodString;
|
|
13
13
|
propertySlug: z.ZodString;
|
|
14
|
+
propertyName: z.ZodString;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
15
16
|
propertySlug: string;
|
|
16
17
|
propertyId: string;
|
|
18
|
+
propertyName: string;
|
|
17
19
|
}, {
|
|
18
20
|
propertySlug: string;
|
|
19
21
|
propertyId: string;
|
|
22
|
+
propertyName: string;
|
|
20
23
|
}>;
|
|
21
24
|
declare const viewAllUnitsSchema: z.ZodObject<{
|
|
22
25
|
propertyId: z.ZodString;
|
|
@@ -154,6 +157,7 @@ declare const continueQuestionnaireEventSchema: z.ZodObject<{
|
|
|
154
157
|
declare const unitEventSchema: z.ZodObject<{
|
|
155
158
|
propertyId: z.ZodString;
|
|
156
159
|
propertySlug: z.ZodString;
|
|
160
|
+
propertyName: z.ZodString;
|
|
157
161
|
} & {
|
|
158
162
|
unitId: z.ZodString;
|
|
159
163
|
unitName: z.ZodString;
|
|
@@ -162,12 +166,14 @@ declare const unitEventSchema: z.ZodObject<{
|
|
|
162
166
|
propertySlug: string;
|
|
163
167
|
propertyId: string;
|
|
164
168
|
unitId: string;
|
|
169
|
+
propertyName: string;
|
|
165
170
|
unitName: string;
|
|
166
171
|
unitSlug: string;
|
|
167
172
|
}, {
|
|
168
173
|
propertySlug: string;
|
|
169
174
|
propertyId: string;
|
|
170
175
|
unitId: string;
|
|
176
|
+
propertyName: string;
|
|
171
177
|
unitName: string;
|
|
172
178
|
unitSlug: string;
|
|
173
179
|
}>;
|
|
@@ -435,6 +441,52 @@ declare const furnitureModalOpenedSchema: z.ZodObject<{
|
|
|
435
441
|
roomName: string;
|
|
436
442
|
furnitureName: string;
|
|
437
443
|
}>;
|
|
444
|
+
declare const furnitureCarouselSchema: z.ZodObject<{
|
|
445
|
+
propertyId: z.ZodString;
|
|
446
|
+
propertySlug: z.ZodString;
|
|
447
|
+
} & {
|
|
448
|
+
propertyName: z.ZodString;
|
|
449
|
+
} & {
|
|
450
|
+
unitId: z.ZodString;
|
|
451
|
+
unitName: z.ZodString;
|
|
452
|
+
unitSlug: z.ZodString;
|
|
453
|
+
} & {
|
|
454
|
+
method: z.ZodEnum<["Prev", "Next"]>;
|
|
455
|
+
roomName: z.ZodString;
|
|
456
|
+
unitBedrooms: z.ZodNumber;
|
|
457
|
+
styleId: z.ZodString;
|
|
458
|
+
styleName: z.ZodString;
|
|
459
|
+
furnitureId: z.ZodString;
|
|
460
|
+
furnitureName: z.ZodString;
|
|
461
|
+
}, "strip", z.ZodTypeAny, {
|
|
462
|
+
propertySlug: string;
|
|
463
|
+
propertyId: string;
|
|
464
|
+
unitId: string;
|
|
465
|
+
furnitureId: string;
|
|
466
|
+
styleId: string;
|
|
467
|
+
propertyName: string;
|
|
468
|
+
unitName: string;
|
|
469
|
+
unitSlug: string;
|
|
470
|
+
styleName: string;
|
|
471
|
+
unitBedrooms: number;
|
|
472
|
+
roomName: string;
|
|
473
|
+
furnitureName: string;
|
|
474
|
+
method: "Prev" | "Next";
|
|
475
|
+
}, {
|
|
476
|
+
propertySlug: string;
|
|
477
|
+
propertyId: string;
|
|
478
|
+
unitId: string;
|
|
479
|
+
furnitureId: string;
|
|
480
|
+
styleId: string;
|
|
481
|
+
propertyName: string;
|
|
482
|
+
unitName: string;
|
|
483
|
+
unitSlug: string;
|
|
484
|
+
styleName: string;
|
|
485
|
+
unitBedrooms: number;
|
|
486
|
+
roomName: string;
|
|
487
|
+
furnitureName: string;
|
|
488
|
+
method: "Prev" | "Next";
|
|
489
|
+
}>;
|
|
438
490
|
declare const roomEnteredSchema: z.ZodObject<{
|
|
439
491
|
propertyId: z.ZodString;
|
|
440
492
|
propertySlug: z.ZodString;
|
|
@@ -617,6 +669,34 @@ declare const emailTrackedSchema: z.ZodObject<{
|
|
|
617
669
|
utmMedium: string;
|
|
618
670
|
utmName: string;
|
|
619
671
|
}>;
|
|
672
|
+
declare const webPageViewedSchema: z.ZodObject<{
|
|
673
|
+
propertyId: z.ZodString;
|
|
674
|
+
propertySlug: z.ZodString;
|
|
675
|
+
} & {
|
|
676
|
+
propertyName: z.ZodString;
|
|
677
|
+
} & {
|
|
678
|
+
unitId: z.ZodString;
|
|
679
|
+
unitName: z.ZodString;
|
|
680
|
+
unitSlug: z.ZodString;
|
|
681
|
+
} & {
|
|
682
|
+
fullUrl: z.ZodString;
|
|
683
|
+
}, "strip", z.ZodTypeAny, {
|
|
684
|
+
propertySlug: string;
|
|
685
|
+
propertyId: string;
|
|
686
|
+
unitId: string;
|
|
687
|
+
propertyName: string;
|
|
688
|
+
unitName: string;
|
|
689
|
+
unitSlug: string;
|
|
690
|
+
fullUrl: string;
|
|
691
|
+
}, {
|
|
692
|
+
propertySlug: string;
|
|
693
|
+
propertyId: string;
|
|
694
|
+
unitId: string;
|
|
695
|
+
propertyName: string;
|
|
696
|
+
unitName: string;
|
|
697
|
+
unitSlug: string;
|
|
698
|
+
fullUrl: string;
|
|
699
|
+
}>;
|
|
620
700
|
declare const toastSchema: z.ZodObject<{
|
|
621
701
|
propertyId: z.ZodString;
|
|
622
702
|
propertySlug: z.ZodString;
|
|
@@ -761,17 +841,20 @@ declare const filterMutationSchema: z.ZodObject<{
|
|
|
761
841
|
declare const sortEventSchema: z.ZodObject<{
|
|
762
842
|
propertyId: z.ZodString;
|
|
763
843
|
propertySlug: z.ZodString;
|
|
844
|
+
propertyName: z.ZodString;
|
|
764
845
|
} & {
|
|
765
846
|
sortIndex: z.ZodNumber;
|
|
766
847
|
sortEnum: z.ZodEnum<["cost_low_to_high", "cost_high_to_low", "newest", "relevance"]>;
|
|
767
848
|
}, "strip", z.ZodTypeAny, {
|
|
768
849
|
propertySlug: string;
|
|
769
850
|
propertyId: string;
|
|
851
|
+
propertyName: string;
|
|
770
852
|
sortIndex: number;
|
|
771
853
|
sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
|
|
772
854
|
}, {
|
|
773
855
|
propertySlug: string;
|
|
774
856
|
propertyId: string;
|
|
857
|
+
propertyName: string;
|
|
775
858
|
sortIndex: number;
|
|
776
859
|
sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
|
|
777
860
|
}>;
|
|
@@ -805,6 +888,7 @@ declare const sortOpenSchema: z.ZodObject<{
|
|
|
805
888
|
declare const questionnaireResultSchema: z.ZodObject<{
|
|
806
889
|
propertyId: z.ZodString;
|
|
807
890
|
propertySlug: z.ZodString;
|
|
891
|
+
propertyName: z.ZodString;
|
|
808
892
|
} & {
|
|
809
893
|
fullQuestionnaireSchemaJson: z.ZodOptional<z.ZodUnknown>;
|
|
810
894
|
resultsJson: z.ZodOptional<z.ZodObject<{
|
|
@@ -838,6 +922,7 @@ declare const questionnaireResultSchema: z.ZodObject<{
|
|
|
838
922
|
}, "strip", z.ZodTypeAny, {
|
|
839
923
|
propertySlug: string;
|
|
840
924
|
propertyId: string;
|
|
925
|
+
propertyName: string;
|
|
841
926
|
fullQuestionnaireSchemaJson?: unknown;
|
|
842
927
|
resultsJson?: {
|
|
843
928
|
type?: string | undefined;
|
|
@@ -850,6 +935,7 @@ declare const questionnaireResultSchema: z.ZodObject<{
|
|
|
850
935
|
}, {
|
|
851
936
|
propertySlug: string;
|
|
852
937
|
propertyId: string;
|
|
938
|
+
propertyName: string;
|
|
853
939
|
fullQuestionnaireSchemaJson?: unknown;
|
|
854
940
|
resultsJson?: {
|
|
855
941
|
type?: string | undefined;
|
|
@@ -968,12 +1054,14 @@ export type FurnitureViewedEvent = z.infer<typeof furnitureViewedSchema>;
|
|
|
968
1054
|
export type FurnitureExternalUrlClickedEvent = z.infer<typeof furnitureExternalUrlSchema>;
|
|
969
1055
|
export type FurnitureSavedEvent = z.infer<typeof furnitureSavedSchema>;
|
|
970
1056
|
export type FurnitureModalOpenedEvent = z.infer<typeof furnitureModalOpenedSchema>;
|
|
1057
|
+
export type FurnitureCarouselEvent = z.infer<typeof furnitureCarouselSchema>;
|
|
971
1058
|
export type RoomEnteredEvent = z.infer<typeof roomEnteredSchema>;
|
|
972
1059
|
export type RoomLeftEvent = z.infer<typeof roomLeftSchema>;
|
|
973
1060
|
export type VideoStartedEvent = z.infer<typeof videoStartedSchema>;
|
|
974
1061
|
export type EmailTrackedEvent = z.infer<typeof emailTrackedSchema>;
|
|
975
1062
|
export type ToastEvent = z.infer<typeof toastSchema>;
|
|
976
1063
|
export type ContentModalOpenedEvent = z.infer<typeof contentModalOpenedSchema>;
|
|
1064
|
+
export type WebPageViewedEvent = z.infer<typeof webPageViewedSchema>;
|
|
977
1065
|
export type TrackingEventWithUnits = FilterEvent & {
|
|
978
1066
|
trackingEvent: (payload: FilterEvent) => void;
|
|
979
1067
|
[metadata: string]: unknown;
|
|
@@ -1033,12 +1121,14 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn): {
|
|
|
1033
1121
|
trackSelectSort: (payload: {
|
|
1034
1122
|
propertySlug: string;
|
|
1035
1123
|
propertyId: string;
|
|
1124
|
+
propertyName: string;
|
|
1036
1125
|
sortIndex: number;
|
|
1037
1126
|
sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
|
|
1038
1127
|
}) => void;
|
|
1039
1128
|
trackCancelSort: (payload: {
|
|
1040
1129
|
propertySlug: string;
|
|
1041
1130
|
propertyId: string;
|
|
1131
|
+
propertyName: string;
|
|
1042
1132
|
sortIndex: number;
|
|
1043
1133
|
sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
|
|
1044
1134
|
}) => void;
|
|
@@ -1064,6 +1154,7 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn): {
|
|
|
1064
1154
|
trackQuestionnaireResult: (payload: {
|
|
1065
1155
|
propertySlug: string;
|
|
1066
1156
|
propertyId: string;
|
|
1157
|
+
propertyName: string;
|
|
1067
1158
|
fullQuestionnaireSchemaJson?: unknown;
|
|
1068
1159
|
resultsJson?: {
|
|
1069
1160
|
type?: string | undefined;
|
|
@@ -1240,6 +1331,21 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn): {
|
|
|
1240
1331
|
roomName: string;
|
|
1241
1332
|
furnitureName: string;
|
|
1242
1333
|
}) => void;
|
|
1334
|
+
trackFurnitureCarouselToggled: (payload: {
|
|
1335
|
+
propertySlug: string;
|
|
1336
|
+
propertyId: string;
|
|
1337
|
+
unitId: string;
|
|
1338
|
+
furnitureId: string;
|
|
1339
|
+
styleId: string;
|
|
1340
|
+
propertyName: string;
|
|
1341
|
+
unitName: string;
|
|
1342
|
+
unitSlug: string;
|
|
1343
|
+
styleName: string;
|
|
1344
|
+
unitBedrooms: number;
|
|
1345
|
+
roomName: string;
|
|
1346
|
+
furnitureName: string;
|
|
1347
|
+
method: "Prev" | "Next";
|
|
1348
|
+
}) => void;
|
|
1243
1349
|
trackRoomEntered: (payload: {
|
|
1244
1350
|
propertySlug: string;
|
|
1245
1351
|
propertyId: string;
|
|
@@ -1337,6 +1443,15 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn): {
|
|
|
1337
1443
|
styleName: string;
|
|
1338
1444
|
unitBedrooms: number;
|
|
1339
1445
|
}) => void;
|
|
1446
|
+
trackWebPageViewed: (payload: {
|
|
1447
|
+
propertySlug: string;
|
|
1448
|
+
propertyId: string;
|
|
1449
|
+
unitId: string;
|
|
1450
|
+
propertyName: string;
|
|
1451
|
+
unitName: string;
|
|
1452
|
+
unitSlug: string;
|
|
1453
|
+
fullUrl: string;
|
|
1454
|
+
}) => void;
|
|
1340
1455
|
};
|
|
1341
1456
|
export declare function useTrackingEvents(): {
|
|
1342
1457
|
trackViewAllUnits: (payload: AnalyticsPayload<typeof viewAllUnitsSchema>) => void;
|
|
@@ -1391,12 +1506,14 @@ export declare function useTrackingEvents(): {
|
|
|
1391
1506
|
trackSelectSort: (payload: {
|
|
1392
1507
|
propertySlug: string;
|
|
1393
1508
|
propertyId: string;
|
|
1509
|
+
propertyName: string;
|
|
1394
1510
|
sortIndex: number;
|
|
1395
1511
|
sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
|
|
1396
1512
|
}) => void;
|
|
1397
1513
|
trackCancelSort: (payload: {
|
|
1398
1514
|
propertySlug: string;
|
|
1399
1515
|
propertyId: string;
|
|
1516
|
+
propertyName: string;
|
|
1400
1517
|
sortIndex: number;
|
|
1401
1518
|
sortEnum: "relevance" | "newest" | "cost_low_to_high" | "cost_high_to_low";
|
|
1402
1519
|
}) => void;
|
|
@@ -1422,6 +1539,7 @@ export declare function useTrackingEvents(): {
|
|
|
1422
1539
|
trackQuestionnaireResult: (payload: {
|
|
1423
1540
|
propertySlug: string;
|
|
1424
1541
|
propertyId: string;
|
|
1542
|
+
propertyName: string;
|
|
1425
1543
|
fullQuestionnaireSchemaJson?: unknown;
|
|
1426
1544
|
resultsJson?: {
|
|
1427
1545
|
type?: string | undefined;
|
|
@@ -1598,6 +1716,21 @@ export declare function useTrackingEvents(): {
|
|
|
1598
1716
|
roomName: string;
|
|
1599
1717
|
furnitureName: string;
|
|
1600
1718
|
}) => void;
|
|
1719
|
+
trackFurnitureCarouselToggled: (payload: {
|
|
1720
|
+
propertySlug: string;
|
|
1721
|
+
propertyId: string;
|
|
1722
|
+
unitId: string;
|
|
1723
|
+
furnitureId: string;
|
|
1724
|
+
styleId: string;
|
|
1725
|
+
propertyName: string;
|
|
1726
|
+
unitName: string;
|
|
1727
|
+
unitSlug: string;
|
|
1728
|
+
styleName: string;
|
|
1729
|
+
unitBedrooms: number;
|
|
1730
|
+
roomName: string;
|
|
1731
|
+
furnitureName: string;
|
|
1732
|
+
method: "Prev" | "Next";
|
|
1733
|
+
}) => void;
|
|
1601
1734
|
trackRoomEntered: (payload: {
|
|
1602
1735
|
propertySlug: string;
|
|
1603
1736
|
propertyId: string;
|
|
@@ -1695,5 +1828,14 @@ export declare function useTrackingEvents(): {
|
|
|
1695
1828
|
styleName: string;
|
|
1696
1829
|
unitBedrooms: number;
|
|
1697
1830
|
}) => void;
|
|
1831
|
+
trackWebPageViewed: (payload: {
|
|
1832
|
+
propertySlug: string;
|
|
1833
|
+
propertyId: string;
|
|
1834
|
+
unitId: string;
|
|
1835
|
+
propertyName: string;
|
|
1836
|
+
unitName: string;
|
|
1837
|
+
unitSlug: string;
|
|
1838
|
+
fullUrl: string;
|
|
1839
|
+
}) => void;
|
|
1698
1840
|
};
|
|
1699
1841
|
export {};
|