@superbright/indexeddb-orm 1.0.51 → 1.0.53
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/api/api.generated.d.ts +7065 -5802
- package/dist/api/cms-schemas.generated.d.ts +32 -1334
- package/dist/api/embed-schemas.generated.cjs +1 -1
- package/dist/api/embed-schemas.generated.cjs.map +1 -1
- package/dist/api/embed-schemas.generated.d.ts +18 -1278
- package/dist/api/embed-schemas.generated.mjs +141 -162
- package/dist/api/embed-schemas.generated.mjs.map +1 -1
- package/dist/api/schemas.generated.d.ts +102 -102
- package/dist/base/amenityimagesonproperty.d.ts +2 -2
- package/dist/base/media.cjs +1 -1
- package/dist/base/media.cjs.map +1 -1
- package/dist/base/media.d.ts +0 -69
- package/dist/base/media.mjs +7 -30
- package/dist/base/media.mjs.map +1 -1
- package/dist/base/overviewimagesonproperty.d.ts +2 -2
- package/dist/base/unit.cjs +1 -1
- package/dist/base/unit.cjs.map +1 -1
- package/dist/base/unit.d.ts +3 -0
- package/dist/base/unit.mjs +8 -7
- package/dist/base/unit.mjs.map +1 -1
- package/dist/base/visitorquestionnaire.d.ts +2 -2
- package/dist/features/analytics/analytics.d.ts +20 -20
- package/dist/types/api.generated.d.ts +2795 -0
- package/package.json +1 -1
|
@@ -3,9 +3,9 @@ export declare const AmenityImagesOnPropertyModel: z.ZodObject<{
|
|
|
3
3
|
mediaId: z.ZodNumber;
|
|
4
4
|
propertyId: z.ZodNumber;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
propertyId: number;
|
|
7
6
|
mediaId: number;
|
|
8
|
-
}, {
|
|
9
7
|
propertyId: number;
|
|
8
|
+
}, {
|
|
10
9
|
mediaId: number;
|
|
10
|
+
propertyId: number;
|
|
11
11
|
}>;
|
package/dist/base/media.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./enums.cjs"),e=require("../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.cjs"),i=e.object({id:e.number().int(),url:e.string(),mediaType:e.nativeEnum(t.MediaType)});exports.MediaModel=i;
|
|
2
2
|
//# sourceMappingURL=media.cjs.map
|
package/dist/base/media.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media.cjs","sources":["../../src/base/media.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { MediaType } from \"./enums\";\n\nexport const MediaModel = z.object({\n id: z.number().int(),\n
|
|
1
|
+
{"version":3,"file":"media.cjs","sources":["../../src/base/media.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { MediaType } from \"./enums\";\n\nexport const MediaModel = z.object({\n id: z.number().int(),\n url: z.string(),\n mediaType: z.nativeEnum(MediaType),\n})"],"names":["MediaModel","z.object","z.number","z.string","z.nativeEnum","MediaType"],"mappings":"4LAGaA,EAAaC,EAAAA,OAAS,CACjC,GAAIC,EAAAA,OAAE,EAAS,IAAA,EACf,IAAKC,EAAAA,OAAE,EACP,UAAWC,EAAAA,WAAaC,EAAAA,SAAS,CACnC,CAAC"}
|
package/dist/base/media.d.ts
CHANGED
|
@@ -2,83 +2,14 @@ import { z } from "zod";
|
|
|
2
2
|
import { MediaType } from "./enums";
|
|
3
3
|
export declare const MediaModel: z.ZodObject<{
|
|
4
4
|
id: z.ZodNumber;
|
|
5
|
-
description: z.ZodString;
|
|
6
5
|
url: z.ZodString;
|
|
7
|
-
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
6
|
mediaType: z.ZodNativeEnum<typeof MediaType>;
|
|
9
|
-
furnitureId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
-
propertyId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
-
amenityId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
-
logoId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
-
leadMediaId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
-
leadVideoId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
-
blenderFileId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
-
rawImageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
-
processedImageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
-
processedImageJsonId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
-
floorPlanDataId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
-
floorPlanExtentsDataId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
-
floorPlanImageDataId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
-
colorfulFloorPlanImageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
-
rendersId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
-
videoId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
-
videoThumbnailId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
-
embedGifId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
-
renderedStyleId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
-
renderGeneratedImageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
-
unitRenderedStyleId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
7
|
}, "strip", z.ZodTypeAny, {
|
|
31
8
|
id: number;
|
|
32
|
-
description: string;
|
|
33
9
|
url: string;
|
|
34
10
|
mediaType: MediaType;
|
|
35
|
-
thumbnail?: string | null | undefined;
|
|
36
|
-
furnitureId?: number | null | undefined;
|
|
37
|
-
propertyId?: number | null | undefined;
|
|
38
|
-
amenityId?: number | null | undefined;
|
|
39
|
-
logoId?: number | null | undefined;
|
|
40
|
-
blenderFileId?: number | null | undefined;
|
|
41
|
-
floorPlanDataId?: number | null | undefined;
|
|
42
|
-
floorPlanExtentsDataId?: number | null | undefined;
|
|
43
|
-
floorPlanImageDataId?: number | null | undefined;
|
|
44
|
-
colorfulFloorPlanImageId?: number | null | undefined;
|
|
45
|
-
rendersId?: number | null | undefined;
|
|
46
|
-
videoId?: number | null | undefined;
|
|
47
|
-
videoThumbnailId?: number | null | undefined;
|
|
48
|
-
embedGifId?: number | null | undefined;
|
|
49
|
-
renderedStyleId?: number | null | undefined;
|
|
50
|
-
unitRenderedStyleId?: number | null | undefined;
|
|
51
|
-
leadMediaId?: number | null | undefined;
|
|
52
|
-
leadVideoId?: number | null | undefined;
|
|
53
|
-
rawImageId?: number | null | undefined;
|
|
54
|
-
processedImageId?: number | null | undefined;
|
|
55
|
-
processedImageJsonId?: number | null | undefined;
|
|
56
|
-
renderGeneratedImageId?: number | null | undefined;
|
|
57
11
|
}, {
|
|
58
12
|
id: number;
|
|
59
|
-
description: string;
|
|
60
13
|
url: string;
|
|
61
14
|
mediaType: MediaType;
|
|
62
|
-
thumbnail?: string | null | undefined;
|
|
63
|
-
furnitureId?: number | null | undefined;
|
|
64
|
-
propertyId?: number | null | undefined;
|
|
65
|
-
amenityId?: number | null | undefined;
|
|
66
|
-
logoId?: number | null | undefined;
|
|
67
|
-
blenderFileId?: number | null | undefined;
|
|
68
|
-
floorPlanDataId?: number | null | undefined;
|
|
69
|
-
floorPlanExtentsDataId?: number | null | undefined;
|
|
70
|
-
floorPlanImageDataId?: number | null | undefined;
|
|
71
|
-
colorfulFloorPlanImageId?: number | null | undefined;
|
|
72
|
-
rendersId?: number | null | undefined;
|
|
73
|
-
videoId?: number | null | undefined;
|
|
74
|
-
videoThumbnailId?: number | null | undefined;
|
|
75
|
-
embedGifId?: number | null | undefined;
|
|
76
|
-
renderedStyleId?: number | null | undefined;
|
|
77
|
-
unitRenderedStyleId?: number | null | undefined;
|
|
78
|
-
leadMediaId?: number | null | undefined;
|
|
79
|
-
leadVideoId?: number | null | undefined;
|
|
80
|
-
rawImageId?: number | null | undefined;
|
|
81
|
-
processedImageId?: number | null | undefined;
|
|
82
|
-
processedImageJsonId?: number | null | undefined;
|
|
83
|
-
renderGeneratedImageId?: number | null | undefined;
|
|
84
15
|
}>;
|
package/dist/base/media.mjs
CHANGED
|
@@ -1,34 +1,11 @@
|
|
|
1
|
-
import { MediaType as
|
|
2
|
-
import { object as
|
|
3
|
-
const
|
|
4
|
-
id:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
thumbnail: i().nullish(),
|
|
8
|
-
mediaType: t(l),
|
|
9
|
-
furnitureId: n().int().nullish(),
|
|
10
|
-
propertyId: n().int().nullish(),
|
|
11
|
-
amenityId: n().int().nullish(),
|
|
12
|
-
logoId: n().int().nullish(),
|
|
13
|
-
leadMediaId: n().int().nullish(),
|
|
14
|
-
leadVideoId: n().int().nullish(),
|
|
15
|
-
blenderFileId: n().int().nullish(),
|
|
16
|
-
rawImageId: n().int().nullish(),
|
|
17
|
-
processedImageId: n().int().nullish(),
|
|
18
|
-
processedImageJsonId: n().int().nullish(),
|
|
19
|
-
floorPlanDataId: n().int().nullish(),
|
|
20
|
-
floorPlanExtentsDataId: n().int().nullish(),
|
|
21
|
-
floorPlanImageDataId: n().int().nullish(),
|
|
22
|
-
colorfulFloorPlanImageId: n().int().nullish(),
|
|
23
|
-
rendersId: n().int().nullish(),
|
|
24
|
-
videoId: n().int().nullish(),
|
|
25
|
-
videoThumbnailId: n().int().nullish(),
|
|
26
|
-
embedGifId: n().int().nullish(),
|
|
27
|
-
renderedStyleId: n().int().nullish(),
|
|
28
|
-
renderGeneratedImageId: n().int().nullish(),
|
|
29
|
-
unitRenderedStyleId: n().int().nullish()
|
|
1
|
+
import { MediaType as e } from "./enums.mjs";
|
|
2
|
+
import { object as i, nativeEnum as t, string as n, number as r } from "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.mjs";
|
|
3
|
+
const o = i({
|
|
4
|
+
id: r().int(),
|
|
5
|
+
url: n(),
|
|
6
|
+
mediaType: t(e)
|
|
30
7
|
});
|
|
31
8
|
export {
|
|
32
|
-
|
|
9
|
+
o as MediaModel
|
|
33
10
|
};
|
|
34
11
|
//# sourceMappingURL=media.mjs.map
|
package/dist/base/media.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media.mjs","sources":["../../src/base/media.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { MediaType } from \"./enums\";\n\nexport const MediaModel = z.object({\n id: z.number().int(),\n
|
|
1
|
+
{"version":3,"file":"media.mjs","sources":["../../src/base/media.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { MediaType } from \"./enums\";\n\nexport const MediaModel = z.object({\n id: z.number().int(),\n url: z.string(),\n mediaType: z.nativeEnum(MediaType),\n})"],"names":["MediaModel","z.object","z.number","z.string","z.nativeEnum","MediaType"],"mappings":";;AAGO,MAAMA,IAAaC,EAAS;AAAA,EACjC,IAAIC,EAAE,EAAS,IAAA;AAAA,EACf,KAAKC,EAAE;AAAA,EACP,WAAWC,EAAaC,CAAS;AACnC,CAAC;"}
|
|
@@ -3,9 +3,9 @@ export declare const OverviewImagesOnPropertyModel: z.ZodObject<{
|
|
|
3
3
|
mediaId: z.ZodNumber;
|
|
4
4
|
propertyId: z.ZodNumber;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
propertyId: number;
|
|
7
6
|
mediaId: number;
|
|
8
|
-
}, {
|
|
9
7
|
propertyId: number;
|
|
8
|
+
}, {
|
|
10
9
|
mediaId: number;
|
|
10
|
+
propertyId: number;
|
|
11
11
|
}>;
|
package/dist/base/unit.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./enums.cjs"),e=require("../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.cjs"),n=e.object({id:e.number().int(),name:e.string(),slug:e.string().nullish(),qty_bedrooms:e.number().int(),qty_bathrooms:e.number(),base_price:e.number(),dim_sq_ft:e.number().int(),propertyId:e.number().int(),is_available:e.boolean(),createdAt:e.date(),updatedAt:e.date(),date_availability:e.date().nullish(),unitSetAvailableOn:e.date().nullish(),floorPlanId:e.number().int().nullish(),userId:e.number().int(),status:e.nativeEnum(t.Status),external_id:e.string().nullish()});exports.UnitModel=n;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./enums.cjs"),e=require("../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.cjs"),n=e.object({id:e.number().int(),name:e.string(),slug:e.string().nullish(),qty_bedrooms:e.number().int(),qty_bathrooms:e.number(),base_price:e.number(),dim_sq_ft:e.number().int(),propertyId:e.number().int(),is_available:e.boolean(),createdAt:e.date(),updatedAt:e.date(),date_availability:e.date().nullish(),unitSetAvailableOn:e.date().nullish(),floorPlanId:e.number().int().nullish(),userId:e.number().int(),status:e.nativeEnum(t.Status),external_id:e.string().nullish(),videoThumbnailId:e.number().int().nullish()});exports.UnitModel=n;
|
|
2
2
|
//# sourceMappingURL=unit.cjs.map
|
package/dist/base/unit.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit.cjs","sources":["../../src/base/unit.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { Status } from \"./enums\";\n\nexport const UnitModel = z.object({\n id: z.number().int(),\n name: z.string(),\n slug: z.string().nullish(),\n qty_bedrooms: z.number().int(),\n qty_bathrooms: z.number(),\n base_price: z.number(),\n dim_sq_ft: z.number().int(),\n propertyId: z.number().int(),\n is_available: z.boolean(),\n createdAt: z.date(),\n updatedAt: z.date(),\n date_availability: z.date().nullish(),\n unitSetAvailableOn: z.date().nullish(),\n floorPlanId: z.number().int().nullish(),\n userId: z.number().int(),\n status: z.nativeEnum(Status),\n external_id: z.string().nullish(),\n})"],"names":["UnitModel","z.object","z.number","z.string","z.boolean","z.date","z.nativeEnum","Status"],"mappings":"4LAGaA,EAAYC,EAAAA,OAAS,CAChC,GAAIC,EAAAA,OAAE,EAAS,IAAA,EACf,KAAMC,EAAAA,OAAE,EACR,KAAMA,EAAAA,OAAE,EAAS,QAAA,EACjB,aAAcD,EAAAA,OAAE,EAAS,IAAA,EACzB,cAAeA,EAAAA,OAAE,EACjB,WAAYA,EAAAA,OAAE,EACd,UAAWA,EAAAA,OAAE,EAAS,IAAA,EACtB,WAAYA,EAAAA,OAAE,EAAS,IAAA,EACvB,aAAcE,EAAAA,QAAE,EAChB,UAAWC,EAAAA,KAAE,EACb,UAAWA,EAAAA,KAAE,EACb,kBAAmBA,EAAAA,KAAE,EAAO,QAAA,EAC5B,mBAAoBA,EAAAA,KAAE,EAAO,QAAA,EAC7B,YAAaH,EAAAA,OAAE,EAAS,IAAA,EAAM,QAAA,EAC9B,OAAQA,EAAAA,OAAE,EAAS,IAAA,EACnB,OAAQI,EAAAA,WAAaC,QAAM,EAC3B,YAAaJ,EAAAA,OAAE,EAAS,QAAA,
|
|
1
|
+
{"version":3,"file":"unit.cjs","sources":["../../src/base/unit.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { Status } from \"./enums\";\n\nexport const UnitModel = z.object({\n id: z.number().int(),\n name: z.string(),\n slug: z.string().nullish(),\n qty_bedrooms: z.number().int(),\n qty_bathrooms: z.number(),\n base_price: z.number(),\n dim_sq_ft: z.number().int(),\n propertyId: z.number().int(),\n is_available: z.boolean(),\n createdAt: z.date(),\n updatedAt: z.date(),\n date_availability: z.date().nullish(),\n unitSetAvailableOn: z.date().nullish(),\n floorPlanId: z.number().int().nullish(),\n userId: z.number().int(),\n status: z.nativeEnum(Status),\n external_id: z.string().nullish(),\n videoThumbnailId: z.number().int().nullish(),\n})"],"names":["UnitModel","z.object","z.number","z.string","z.boolean","z.date","z.nativeEnum","Status"],"mappings":"4LAGaA,EAAYC,EAAAA,OAAS,CAChC,GAAIC,EAAAA,OAAE,EAAS,IAAA,EACf,KAAMC,EAAAA,OAAE,EACR,KAAMA,EAAAA,OAAE,EAAS,QAAA,EACjB,aAAcD,EAAAA,OAAE,EAAS,IAAA,EACzB,cAAeA,EAAAA,OAAE,EACjB,WAAYA,EAAAA,OAAE,EACd,UAAWA,EAAAA,OAAE,EAAS,IAAA,EACtB,WAAYA,EAAAA,OAAE,EAAS,IAAA,EACvB,aAAcE,EAAAA,QAAE,EAChB,UAAWC,EAAAA,KAAE,EACb,UAAWA,EAAAA,KAAE,EACb,kBAAmBA,EAAAA,KAAE,EAAO,QAAA,EAC5B,mBAAoBA,EAAAA,KAAE,EAAO,QAAA,EAC7B,YAAaH,EAAAA,OAAE,EAAS,IAAA,EAAM,QAAA,EAC9B,OAAQA,EAAAA,OAAE,EAAS,IAAA,EACnB,OAAQI,EAAAA,WAAaC,QAAM,EAC3B,YAAaJ,EAAAA,OAAE,EAAS,QAAA,EACxB,iBAAkBD,EAAAA,OAAE,EAAS,IAAA,EAAM,QAAA,CACrC,CAAC"}
|
package/dist/base/unit.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const UnitModel: z.ZodObject<{
|
|
|
18
18
|
userId: z.ZodNumber;
|
|
19
19
|
status: z.ZodNativeEnum<typeof Status>;
|
|
20
20
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
videoThumbnailId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
22
|
}, "strip", z.ZodTypeAny, {
|
|
22
23
|
name: string;
|
|
23
24
|
status: Status;
|
|
@@ -36,6 +37,7 @@ export declare const UnitModel: z.ZodObject<{
|
|
|
36
37
|
unitSetAvailableOn?: Date | null | undefined;
|
|
37
38
|
floorPlanId?: number | null | undefined;
|
|
38
39
|
external_id?: string | null | undefined;
|
|
40
|
+
videoThumbnailId?: number | null | undefined;
|
|
39
41
|
}, {
|
|
40
42
|
name: string;
|
|
41
43
|
status: Status;
|
|
@@ -54,4 +56,5 @@ export declare const UnitModel: z.ZodObject<{
|
|
|
54
56
|
unitSetAvailableOn?: Date | null | undefined;
|
|
55
57
|
floorPlanId?: number | null | undefined;
|
|
56
58
|
external_id?: string | null | undefined;
|
|
59
|
+
videoThumbnailId?: number | null | undefined;
|
|
57
60
|
}>;
|
package/dist/base/unit.mjs
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { Status as
|
|
2
|
-
import { object as n,
|
|
1
|
+
import { Status as a } from "./enums.mjs";
|
|
2
|
+
import { object as n, number as t, string as i, nativeEnum as l, date as e, boolean as s } from "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.mjs";
|
|
3
3
|
const u = n({
|
|
4
4
|
id: t().int(),
|
|
5
|
-
name:
|
|
6
|
-
slug:
|
|
5
|
+
name: i(),
|
|
6
|
+
slug: i().nullish(),
|
|
7
7
|
qty_bedrooms: t().int(),
|
|
8
8
|
qty_bathrooms: t(),
|
|
9
9
|
base_price: t(),
|
|
10
10
|
dim_sq_ft: t().int(),
|
|
11
11
|
propertyId: t().int(),
|
|
12
|
-
is_available:
|
|
12
|
+
is_available: s(),
|
|
13
13
|
createdAt: e(),
|
|
14
14
|
updatedAt: e(),
|
|
15
15
|
date_availability: e().nullish(),
|
|
16
16
|
unitSetAvailableOn: e().nullish(),
|
|
17
17
|
floorPlanId: t().int().nullish(),
|
|
18
18
|
userId: t().int(),
|
|
19
|
-
status:
|
|
20
|
-
external_id:
|
|
19
|
+
status: l(a),
|
|
20
|
+
external_id: i().nullish(),
|
|
21
|
+
videoThumbnailId: t().int().nullish()
|
|
21
22
|
});
|
|
22
23
|
export {
|
|
23
24
|
u as UnitModel
|
package/dist/base/unit.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit.mjs","sources":["../../src/base/unit.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { Status } from \"./enums\";\n\nexport const UnitModel = z.object({\n id: z.number().int(),\n name: z.string(),\n slug: z.string().nullish(),\n qty_bedrooms: z.number().int(),\n qty_bathrooms: z.number(),\n base_price: z.number(),\n dim_sq_ft: z.number().int(),\n propertyId: z.number().int(),\n is_available: z.boolean(),\n createdAt: z.date(),\n updatedAt: z.date(),\n date_availability: z.date().nullish(),\n unitSetAvailableOn: z.date().nullish(),\n floorPlanId: z.number().int().nullish(),\n userId: z.number().int(),\n status: z.nativeEnum(Status),\n external_id: z.string().nullish(),\n})"],"names":["UnitModel","z.object","z.number","z.string","z.boolean","z.date","z.nativeEnum","Status"],"mappings":";;AAGO,MAAMA,IAAYC,EAAS;AAAA,EAChC,IAAIC,EAAE,EAAS,IAAA;AAAA,EACf,MAAMC,EAAE;AAAA,EACR,MAAMA,EAAE,EAAS,QAAA;AAAA,EACjB,cAAcD,EAAE,EAAS,IAAA;AAAA,EACzB,eAAeA,EAAE;AAAA,EACjB,YAAYA,EAAE;AAAA,EACd,WAAWA,EAAE,EAAS,IAAA;AAAA,EACtB,YAAYA,EAAE,EAAS,IAAA;AAAA,EACvB,cAAcE,EAAE;AAAA,EAChB,WAAWC,EAAE;AAAA,EACb,WAAWA,EAAE;AAAA,EACb,mBAAmBA,EAAE,EAAO,QAAA;AAAA,EAC5B,oBAAoBA,EAAE,EAAO,QAAA;AAAA,EAC7B,aAAaH,EAAE,EAAS,IAAA,EAAM,QAAA;AAAA,EAC9B,QAAQA,EAAE,EAAS,IAAA;AAAA,EACnB,QAAQI,EAAaC,CAAM;AAAA,EAC3B,aAAaJ,EAAE,EAAS,QAAA;
|
|
1
|
+
{"version":3,"file":"unit.mjs","sources":["../../src/base/unit.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { Status } from \"./enums\";\n\nexport const UnitModel = z.object({\n id: z.number().int(),\n name: z.string(),\n slug: z.string().nullish(),\n qty_bedrooms: z.number().int(),\n qty_bathrooms: z.number(),\n base_price: z.number(),\n dim_sq_ft: z.number().int(),\n propertyId: z.number().int(),\n is_available: z.boolean(),\n createdAt: z.date(),\n updatedAt: z.date(),\n date_availability: z.date().nullish(),\n unitSetAvailableOn: z.date().nullish(),\n floorPlanId: z.number().int().nullish(),\n userId: z.number().int(),\n status: z.nativeEnum(Status),\n external_id: z.string().nullish(),\n videoThumbnailId: z.number().int().nullish(),\n})"],"names":["UnitModel","z.object","z.number","z.string","z.boolean","z.date","z.nativeEnum","Status"],"mappings":";;AAGO,MAAMA,IAAYC,EAAS;AAAA,EAChC,IAAIC,EAAE,EAAS,IAAA;AAAA,EACf,MAAMC,EAAE;AAAA,EACR,MAAMA,EAAE,EAAS,QAAA;AAAA,EACjB,cAAcD,EAAE,EAAS,IAAA;AAAA,EACzB,eAAeA,EAAE;AAAA,EACjB,YAAYA,EAAE;AAAA,EACd,WAAWA,EAAE,EAAS,IAAA;AAAA,EACtB,YAAYA,EAAE,EAAS,IAAA;AAAA,EACvB,cAAcE,EAAE;AAAA,EAChB,WAAWC,EAAE;AAAA,EACb,WAAWA,EAAE;AAAA,EACb,mBAAmBA,EAAE,EAAO,QAAA;AAAA,EAC5B,oBAAoBA,EAAE,EAAO,QAAA;AAAA,EAC7B,aAAaH,EAAE,EAAS,IAAA,EAAM,QAAA;AAAA,EAC9B,QAAQA,EAAE,EAAS,IAAA;AAAA,EACnB,QAAQI,EAAaC,CAAM;AAAA,EAC3B,aAAaJ,EAAE,EAAS,QAAA;AAAA,EACxB,kBAAkBD,EAAE,EAAS,IAAA,EAAM,QAAA;AACrC,CAAC;"}
|
|
@@ -11,14 +11,14 @@ export declare const VisitorQuestionnaireModel: z.ZodObject<{
|
|
|
11
11
|
createdAt: z.ZodDate;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
id: number;
|
|
14
|
-
propertyId: number;
|
|
15
14
|
data: Json;
|
|
15
|
+
propertyId: number;
|
|
16
16
|
createdAt: Date;
|
|
17
17
|
visitorId: string;
|
|
18
18
|
}, {
|
|
19
19
|
id: number;
|
|
20
|
-
propertyId: number;
|
|
21
20
|
data: Json;
|
|
21
|
+
propertyId: number;
|
|
22
22
|
createdAt: Date;
|
|
23
23
|
visitorId: string;
|
|
24
24
|
}>;
|
|
@@ -300,8 +300,8 @@ declare const furnitureInteractionSchema: z.ZodObject<{
|
|
|
300
300
|
category: z.ZodString;
|
|
301
301
|
}, "strip", z.ZodTypeAny, {
|
|
302
302
|
type: "click" | "hover_on" | "hover_off";
|
|
303
|
-
furnitureId: string;
|
|
304
303
|
propertyId: string;
|
|
304
|
+
furnitureId: string;
|
|
305
305
|
styleId: string;
|
|
306
306
|
category: string;
|
|
307
307
|
propertySlug: string;
|
|
@@ -316,8 +316,8 @@ declare const furnitureInteractionSchema: z.ZodObject<{
|
|
|
316
316
|
brandName: string;
|
|
317
317
|
}, {
|
|
318
318
|
type: "click" | "hover_on" | "hover_off";
|
|
319
|
-
furnitureId: string;
|
|
320
319
|
propertyId: string;
|
|
320
|
+
furnitureId: string;
|
|
321
321
|
styleId: string;
|
|
322
322
|
category: string;
|
|
323
323
|
propertySlug: string;
|
|
@@ -353,8 +353,8 @@ declare const furnitureExternalUrlSchema: z.ZodObject<{
|
|
|
353
353
|
category: z.ZodString;
|
|
354
354
|
}, "strip", z.ZodTypeAny, {
|
|
355
355
|
type: string;
|
|
356
|
-
furnitureId: string;
|
|
357
356
|
propertyId: string;
|
|
357
|
+
furnitureId: string;
|
|
358
358
|
styleId: string;
|
|
359
359
|
category: string;
|
|
360
360
|
link: string;
|
|
@@ -371,8 +371,8 @@ declare const furnitureExternalUrlSchema: z.ZodObject<{
|
|
|
371
371
|
brandName: string;
|
|
372
372
|
}, {
|
|
373
373
|
type: string;
|
|
374
|
-
furnitureId: string;
|
|
375
374
|
propertyId: string;
|
|
375
|
+
furnitureId: string;
|
|
376
376
|
styleId: string;
|
|
377
377
|
category: string;
|
|
378
378
|
link: string;
|
|
@@ -406,8 +406,8 @@ declare const furnitureSavedSchema: z.ZodObject<{
|
|
|
406
406
|
brandName: z.ZodString;
|
|
407
407
|
category: z.ZodString;
|
|
408
408
|
}, "strip", z.ZodTypeAny, {
|
|
409
|
-
furnitureId: string;
|
|
410
409
|
propertyId: string;
|
|
410
|
+
furnitureId: string;
|
|
411
411
|
styleId: string;
|
|
412
412
|
category: string;
|
|
413
413
|
propertySlug: string;
|
|
@@ -421,8 +421,8 @@ declare const furnitureSavedSchema: z.ZodObject<{
|
|
|
421
421
|
furnitureName: string;
|
|
422
422
|
brandName: string;
|
|
423
423
|
}, {
|
|
424
|
-
furnitureId: string;
|
|
425
424
|
propertyId: string;
|
|
425
|
+
furnitureId: string;
|
|
426
426
|
styleId: string;
|
|
427
427
|
category: string;
|
|
428
428
|
propertySlug: string;
|
|
@@ -454,8 +454,8 @@ declare const furnitureModalOpenedSchema: z.ZodObject<{
|
|
|
454
454
|
brandName: z.ZodString;
|
|
455
455
|
category: z.ZodString;
|
|
456
456
|
}, "strip", z.ZodTypeAny, {
|
|
457
|
-
furnitureId: string;
|
|
458
457
|
propertyId: string;
|
|
458
|
+
furnitureId: string;
|
|
459
459
|
styleId: string;
|
|
460
460
|
category: string;
|
|
461
461
|
propertySlug: string;
|
|
@@ -469,8 +469,8 @@ declare const furnitureModalOpenedSchema: z.ZodObject<{
|
|
|
469
469
|
furnitureName: string;
|
|
470
470
|
brandName: string;
|
|
471
471
|
}, {
|
|
472
|
-
furnitureId: string;
|
|
473
472
|
propertyId: string;
|
|
473
|
+
furnitureId: string;
|
|
474
474
|
styleId: string;
|
|
475
475
|
category: string;
|
|
476
476
|
propertySlug: string;
|
|
@@ -503,8 +503,8 @@ declare const furnitureCarouselSchema: z.ZodObject<{
|
|
|
503
503
|
brandName: z.ZodString;
|
|
504
504
|
category: z.ZodString;
|
|
505
505
|
}, "strip", z.ZodTypeAny, {
|
|
506
|
-
furnitureId: string;
|
|
507
506
|
propertyId: string;
|
|
507
|
+
furnitureId: string;
|
|
508
508
|
styleId: string;
|
|
509
509
|
category: string;
|
|
510
510
|
propertySlug: string;
|
|
@@ -519,8 +519,8 @@ declare const furnitureCarouselSchema: z.ZodObject<{
|
|
|
519
519
|
brandName: string;
|
|
520
520
|
method: "Prev" | "Next";
|
|
521
521
|
}, {
|
|
522
|
-
furnitureId: string;
|
|
523
522
|
propertyId: string;
|
|
523
|
+
furnitureId: string;
|
|
524
524
|
styleId: string;
|
|
525
525
|
category: string;
|
|
526
526
|
propertySlug: string;
|
|
@@ -1575,8 +1575,8 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn, isDev?: bo
|
|
|
1575
1575
|
}) => void;
|
|
1576
1576
|
trackFurnitureViewed: (payload: {
|
|
1577
1577
|
type: "click" | "hover_on" | "hover_off";
|
|
1578
|
-
furnitureId: string;
|
|
1579
1578
|
propertyId: string;
|
|
1579
|
+
furnitureId: string;
|
|
1580
1580
|
styleId: string;
|
|
1581
1581
|
category: string;
|
|
1582
1582
|
propertySlug: string;
|
|
@@ -1592,8 +1592,8 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn, isDev?: bo
|
|
|
1592
1592
|
}) => void;
|
|
1593
1593
|
trackFurnitureExternalUrlClicked: (payload: {
|
|
1594
1594
|
type: string;
|
|
1595
|
-
furnitureId: string;
|
|
1596
1595
|
propertyId: string;
|
|
1596
|
+
furnitureId: string;
|
|
1597
1597
|
styleId: string;
|
|
1598
1598
|
category: string;
|
|
1599
1599
|
link: string;
|
|
@@ -1610,8 +1610,8 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn, isDev?: bo
|
|
|
1610
1610
|
brandName: string;
|
|
1611
1611
|
}) => void;
|
|
1612
1612
|
trackFurnitureSaved: (payload: {
|
|
1613
|
-
furnitureId: string;
|
|
1614
1613
|
propertyId: string;
|
|
1614
|
+
furnitureId: string;
|
|
1615
1615
|
styleId: string;
|
|
1616
1616
|
category: string;
|
|
1617
1617
|
propertySlug: string;
|
|
@@ -1626,8 +1626,8 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn, isDev?: bo
|
|
|
1626
1626
|
brandName: string;
|
|
1627
1627
|
}) => void;
|
|
1628
1628
|
trackFurnitureModalOpened: (payload: {
|
|
1629
|
-
furnitureId: string;
|
|
1630
1629
|
propertyId: string;
|
|
1630
|
+
furnitureId: string;
|
|
1631
1631
|
styleId: string;
|
|
1632
1632
|
category: string;
|
|
1633
1633
|
propertySlug: string;
|
|
@@ -1642,8 +1642,8 @@ export declare function buildTrackingEvents(trackEvent: TrackEventFn, isDev?: bo
|
|
|
1642
1642
|
brandName: string;
|
|
1643
1643
|
}) => void;
|
|
1644
1644
|
trackFurnitureCarouselToggled: (payload: {
|
|
1645
|
-
furnitureId: string;
|
|
1646
1645
|
propertyId: string;
|
|
1646
|
+
furnitureId: string;
|
|
1647
1647
|
styleId: string;
|
|
1648
1648
|
category: string;
|
|
1649
1649
|
propertySlug: string;
|
|
@@ -2114,8 +2114,8 @@ export declare function useTrackingEvents(): {
|
|
|
2114
2114
|
}) => void;
|
|
2115
2115
|
trackFurnitureViewed: (payload: {
|
|
2116
2116
|
type: "click" | "hover_on" | "hover_off";
|
|
2117
|
-
furnitureId: string;
|
|
2118
2117
|
propertyId: string;
|
|
2118
|
+
furnitureId: string;
|
|
2119
2119
|
styleId: string;
|
|
2120
2120
|
category: string;
|
|
2121
2121
|
propertySlug: string;
|
|
@@ -2131,8 +2131,8 @@ export declare function useTrackingEvents(): {
|
|
|
2131
2131
|
}) => void;
|
|
2132
2132
|
trackFurnitureExternalUrlClicked: (payload: {
|
|
2133
2133
|
type: string;
|
|
2134
|
-
furnitureId: string;
|
|
2135
2134
|
propertyId: string;
|
|
2135
|
+
furnitureId: string;
|
|
2136
2136
|
styleId: string;
|
|
2137
2137
|
category: string;
|
|
2138
2138
|
link: string;
|
|
@@ -2149,8 +2149,8 @@ export declare function useTrackingEvents(): {
|
|
|
2149
2149
|
brandName: string;
|
|
2150
2150
|
}) => void;
|
|
2151
2151
|
trackFurnitureSaved: (payload: {
|
|
2152
|
-
furnitureId: string;
|
|
2153
2152
|
propertyId: string;
|
|
2153
|
+
furnitureId: string;
|
|
2154
2154
|
styleId: string;
|
|
2155
2155
|
category: string;
|
|
2156
2156
|
propertySlug: string;
|
|
@@ -2165,8 +2165,8 @@ export declare function useTrackingEvents(): {
|
|
|
2165
2165
|
brandName: string;
|
|
2166
2166
|
}) => void;
|
|
2167
2167
|
trackFurnitureModalOpened: (payload: {
|
|
2168
|
-
furnitureId: string;
|
|
2169
2168
|
propertyId: string;
|
|
2169
|
+
furnitureId: string;
|
|
2170
2170
|
styleId: string;
|
|
2171
2171
|
category: string;
|
|
2172
2172
|
propertySlug: string;
|
|
@@ -2181,8 +2181,8 @@ export declare function useTrackingEvents(): {
|
|
|
2181
2181
|
brandName: string;
|
|
2182
2182
|
}) => void;
|
|
2183
2183
|
trackFurnitureCarouselToggled: (payload: {
|
|
2184
|
-
furnitureId: string;
|
|
2185
2184
|
propertyId: string;
|
|
2185
|
+
furnitureId: string;
|
|
2186
2186
|
styleId: string;
|
|
2187
2187
|
category: string;
|
|
2188
2188
|
propertySlug: string;
|