@superbright/indexeddb-orm 1.0.25 → 1.0.26
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/index.d.ts +1 -0
- package/dist/base/propertylink.cjs +2 -0
- package/dist/base/propertylink.cjs.map +1 -0
- package/dist/base/propertylink.d.ts +23 -0
- package/dist/base/propertylink.mjs +13 -0
- package/dist/base/propertylink.mjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +39 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/base/index.d.ts
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.cjs"),t=e.object({id:e.number().int(),createdAt:e.date(),updatedAt:e.date(),propertyId:e.number().int(),linkedPropertyId:e.number().int(),order:e.number().int()});exports.PropertyLinkModel=t;
|
|
2
|
+
//# sourceMappingURL=propertylink.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertylink.cjs","sources":["../../src/base/propertylink.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const PropertyLinkModel = z.object({\n id: z.number().int(),\n createdAt: z.date(),\n updatedAt: z.date(),\n propertyId: z.number().int(),\n linkedPropertyId: z.number().int(),\n order: z.number().int(),\n});\n"],"names":["PropertyLinkModel","z.object","z.number","z.date"],"mappings":"mKAEaA,EAAoBC,EAAAA,OAAS,CACxC,GAAIC,EAAAA,OAAE,EAAS,IAAA,EACf,UAAWC,EAAAA,KAAE,EACb,UAAWA,EAAAA,KAAE,EACb,WAAYD,EAAAA,OAAE,EAAS,IAAA,EACvB,iBAAkBA,EAAAA,OAAE,EAAS,IAAA,EAC7B,MAAOA,EAAAA,OAAE,EAAS,IAAA,CACpB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PropertyLinkModel: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
createdAt: z.ZodDate;
|
|
5
|
+
updatedAt: z.ZodDate;
|
|
6
|
+
propertyId: z.ZodNumber;
|
|
7
|
+
linkedPropertyId: z.ZodNumber;
|
|
8
|
+
order: z.ZodNumber;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
id: number;
|
|
12
|
+
propertyId: number;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
order: number;
|
|
15
|
+
linkedPropertyId: number;
|
|
16
|
+
}, {
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
id: number;
|
|
19
|
+
propertyId: number;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
order: number;
|
|
22
|
+
linkedPropertyId: number;
|
|
23
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { object as r, number as e, date as t } from "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.mjs";
|
|
2
|
+
const o = r({
|
|
3
|
+
id: e().int(),
|
|
4
|
+
createdAt: t(),
|
|
5
|
+
updatedAt: t(),
|
|
6
|
+
propertyId: e().int(),
|
|
7
|
+
linkedPropertyId: e().int(),
|
|
8
|
+
order: e().int()
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
o as PropertyLinkModel
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=propertylink.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertylink.mjs","sources":["../../src/base/propertylink.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const PropertyLinkModel = z.object({\n id: z.number().int(),\n createdAt: z.date(),\n updatedAt: z.date(),\n propertyId: z.number().int(),\n linkedPropertyId: z.number().int(),\n order: z.number().int(),\n});\n"],"names":["PropertyLinkModel","z.object","z.number","z.date"],"mappings":";AAEO,MAAMA,IAAoBC,EAAS;AAAA,EACxC,IAAIC,EAAE,EAAS,IAAA;AAAA,EACf,WAAWC,EAAE;AAAA,EACb,WAAWA,EAAE;AAAA,EACb,YAAYD,EAAE,EAAS,IAAA;AAAA,EACvB,kBAAkBA,EAAE,EAAS,IAAA;AAAA,EAC7B,OAAOA,EAAE,EAAS,IAAA;AACpB,CAAC;"}
|
package/dist/index.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 l=require("./errors.cjs"),e=require("./schema.cjs"),m=require("./db.cjs"),s=require("./api/users.cjs"),S=require("./debug.cjs"),a=require("./storage.cjs"),n=require("./api/favorites.cjs"),d=require("./api/properties.cjs"),u=require("./stores/store.cjs"),p=require("./adapters/zustand-store.cjs"),U=require("./adapters/structured-store.cjs"),h=require("./units/favorites.cjs"),t=require("./features/units/transformers.cjs"),c=require("./features/filters/transformers.cjs"),o=require("./utils/dimensions.cjs"),M=require("./validation.cjs"),v=require("./base/overviewimagesonproperty.cjs"),g=require("./base/amenityimagesonproperty.cjs"),E=require("./base/floorplan.cjs"),P=require("./base/media.cjs"),D=require("./base/property.cjs"),f=require("./base/propertyhighlight.cjs"),q=require("./base/room.cjs"),F=require("./base/style.cjs"),T=require("./base/unit.cjs"),r=require("./base/enums.cjs"),A=require("./base/renderedstyle.cjs"),I=require("./base/propertyamenity.cjs"),R=require("./base/favoriteunit.cjs"),O=require("./base/user.cjs"),b=require("./base/propertylink.cjs"),y=require("./features/analytics/MixpanelProvider.cjs"),k=require("./features/analytics/generateUserUUID.cjs"),i=require("./features/analytics/analytics.cjs");exports.OpenDBError=l.OpenDBError;exports.SchemaMismatchError=l.SchemaMismatchError;exports.ApiUserSchema=e.ApiUserSchema;exports.AppStoreDataSchema=e.AppStoreDataSchema;exports.FavoritesSchema=e.FavoritesSchema;exports.FiltersSchema=e.FiltersSchema;exports.PropertySchema=e.PropertySchema;exports.PropertyStoreDataSchema=e.PropertyStoreDataSchema;exports.QueryParamsSchema=e.QueryParamsSchema;exports.ResultsModeEnum=e.ResultsModeEnum;exports.SCHEMA_VERSION=e.SCHEMA_VERSION;exports.SortByEnum=e.SortByEnum;exports.TourContactDataSchema=e.TourContactDataSchema;exports.UnifiedStoreDataSchema=e.UnifiedStoreDataSchema;exports.UnitDataSchema=e.UnitDataSchema;exports.UnitFavoriteSchema=e.UnitFavoriteSchema;exports.UnitSchema=e.UnitSchema;exports.UserPropertyStateSchema=e.UserPropertyStateSchema;exports.UserSchema=e.UserSchema;exports.UserUnitDataSchema=e.UserUnitDataSchema;exports.ViewedUnitSchema=e.ViewedUnitSchema;exports.getDB=m.getDB;exports.resetDB=m.resetDB;exports.defaultIdGenerator=s.defaultIdGenerator;exports.ensureUser=s.ensureUser;exports.getUserUUID=s.getUserUUID;exports.debugDump=S.debugDump;exports.exportJSON=S.exportJSON;exports.createORMStringStorage=a.createORMStringStorage;exports.kvGet=a.kvGet;exports.kvRemove=a.kvRemove;exports.kvSet=a.kvSet;exports.getFavoritedUnitsForProperty=n.getFavoritedUnitsForProperty;exports.isUnitFavorited=n.isUnitFavorited;exports.setFavoriteUnit=n.setFavoriteUnit;exports.toggleFavoriteUnit=n.toggleFavoriteUnit;exports.PropertyStore=d.PropertyStore;exports.propertyStore=d.propertyStore;exports.Store=u.UnifiedStore;exports.UnifiedStore=u.UnifiedStore;exports.store=u.store;exports.createUseUnitState=p.createUseUnitState;exports.createZustandUnifiedStore=p.createZustandUnifiedStore;exports.createStructuredStore=U.createStructuredStore;exports.createStructuredStoreActions=U.createStructuredStoreActions;exports.favorites=h.favorites;exports.DEFAULT_PLACEHOLDER_IMAGE=t.DEFAULT_PLACEHOLDER_IMAGE;exports.DEFAULT_WEB_ORIGIN=t.DEFAULT_WEB_ORIGIN;exports.buildExploreUrl=t.buildExploreUrl;exports.buildImageUrl=t.buildImageUrl;exports.transformUnitsApiResponse=t.transformUnitsApiResponse;exports.transformUnitsApiResponseToClient=t.transformUnitsApiResponseToClient;exports.transformUnitsApiResponseToClientFilters=t.transformUnitsApiResponseToClientFilters;exports.defaultSortParamMap=c.defaultSortParamMap;exports.transformFiltersToPreferences=c.transformFiltersToPreferences;exports.transformFiltersToUnitsSearchParams=c.transformFiltersToUnitsSearchParams;exports.dimensionToMmNumber=o.dimensionToMmNumber;exports.formatDimensions=o.formatDimensions;exports.imperialToMm=o.imperialToMm;exports.inchesToMm=o.inchesToMm;exports.mmToInches=o.mmToInches;exports.toInchesDisplay=o.toInchesDisplay;exports.configureValidation=M.configureValidation;exports.OverviewImagesOnPropertyModel=v.OverviewImagesOnPropertyModel;exports.AmenityImagesOnPropertyModel=g.AmenityImagesOnPropertyModel;exports.FloorPlanModel=E.FloorPlanModel;exports.MediaModel=P.MediaModel;exports.PropertyModel=D.PropertyModel;exports.PropertyHighlightModel=f.PropertyHighlightModel;exports.RoomModel=q.RoomModel;exports.StyleModel=F.StyleModel;exports.UnitModel=T.UnitModel;exports.Currency=r.Currency;exports.DeliveryStatus=r.DeliveryStatus;exports.ExternalService=r.ExternalService;exports.FurnitureAvailability=r.FurnitureAvailability;exports.Highlights=r.Highlights;exports.MediaType=r.MediaType;exports.QueueJobStatus=r.QueueJobStatus;exports.RenderStatus=r.RenderStatus;exports.Status=r.Status;exports.UserRole=r.UserRole;exports.RenderedStyleModel=A.RenderedStyleModel;exports.PropertyAmenityModel=I.PropertyAmenityModel;exports.FavoriteUnitModel=R.FavoriteUnitModel;exports.UserModel=O.UserModel;exports.PropertyLinkModel=b.PropertyLinkModel;exports.MixpanelProvider=y.MixpanelProvider;exports.useMixpanel=y.useMixpanel;exports.generateUserUUID=k.generateUserUUID;exports.QuestionEnumValues=i.QuestionEnumValues;exports.QuestionnaireInteractionValues=i.QuestionnaireInteractionValues;exports.SortEnumValues=i.SortEnumValues;exports.buildTrackingEvents=i.buildTrackingEvents;exports.useTrackEvent=i.useTrackEvent;exports.useTrackingEvents=i.useTrackingEvents;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { OpenDBError as t, SchemaMismatchError as o } from "./errors.mjs";
|
|
2
|
-
import { ApiUserSchema as i, AppStoreDataSchema as m, FavoritesSchema as n, FiltersSchema as s, PropertySchema as p, PropertyStoreDataSchema as
|
|
2
|
+
import { ApiUserSchema as i, AppStoreDataSchema as m, FavoritesSchema as n, FiltersSchema as s, PropertySchema as p, PropertyStoreDataSchema as f, QueryParamsSchema as l, ResultsModeEnum as S, SCHEMA_VERSION as d, SortByEnum as c, TourContactDataSchema as u, UnifiedStoreDataSchema as x, UnitDataSchema as U, UnitFavoriteSchema as M, UnitSchema as h, UserPropertyStateSchema as y, UserSchema as v, UserUnitDataSchema as g, ViewedUnitSchema as E } from "./schema.mjs";
|
|
3
3
|
import { getDB as P, resetDB as F } from "./db.mjs";
|
|
4
4
|
import { defaultIdGenerator as A, ensureUser as I, getUserUUID as R } from "./api/users.mjs";
|
|
5
5
|
import { debugDump as b, exportJSON as k } from "./debug.mjs";
|
|
6
|
-
import { createORMStringStorage as V, kvGet as B, kvRemove as
|
|
7
|
-
import { getFavoritedUnitsForProperty as
|
|
6
|
+
import { createORMStringStorage as V, kvGet as B, kvRemove as L, kvSet as _ } from "./storage.mjs";
|
|
7
|
+
import { getFavoritedUnitsForProperty as H, isUnitFavorited as N, setFavoriteUnit as Q, toggleFavoriteUnit as w } from "./api/favorites.mjs";
|
|
8
8
|
import { PropertyStore as W, propertyStore as Z } from "./api/properties.mjs";
|
|
9
9
|
import { UnifiedStore as q, UnifiedStore as z, store as K } from "./stores/store.mjs";
|
|
10
10
|
import { createUseUnitState as Y, createZustandUnifiedStore as $ } from "./adapters/zustand-store.mjs";
|
|
11
11
|
import { createStructuredStore as re, createStructuredStoreActions as te } from "./adapters/structured-store.mjs";
|
|
12
12
|
import { favorites as ae } from "./units/favorites.mjs";
|
|
13
|
-
import { DEFAULT_PLACEHOLDER_IMAGE as me, DEFAULT_WEB_ORIGIN as ne, buildExploreUrl as se, buildImageUrl as pe, transformUnitsApiResponse as
|
|
14
|
-
import { defaultSortParamMap as
|
|
15
|
-
import { dimensionToMmNumber as
|
|
13
|
+
import { DEFAULT_PLACEHOLDER_IMAGE as me, DEFAULT_WEB_ORIGIN as ne, buildExploreUrl as se, buildImageUrl as pe, transformUnitsApiResponse as fe, transformUnitsApiResponseToClient as le, transformUnitsApiResponseToClientFilters as Se } from "./features/units/transformers.mjs";
|
|
14
|
+
import { defaultSortParamMap as ce, transformFiltersToPreferences as ue, transformFiltersToUnitsSearchParams as xe } from "./features/filters/transformers.mjs";
|
|
15
|
+
import { dimensionToMmNumber as Me, formatDimensions as he, imperialToMm as ye, inchesToMm as ve, mmToInches as ge, toInchesDisplay as Ee } from "./utils/dimensions.mjs";
|
|
16
16
|
import { configureValidation as Pe } from "./validation.mjs";
|
|
17
17
|
import { OverviewImagesOnPropertyModel as Te } from "./base/overviewimagesonproperty.mjs";
|
|
18
18
|
import { AmenityImagesOnPropertyModel as Ie } from "./base/amenityimagesonproperty.mjs";
|
|
19
19
|
import { FloorPlanModel as Oe } from "./base/floorplan.mjs";
|
|
20
20
|
import { MediaModel as ke } from "./base/media.mjs";
|
|
21
21
|
import { PropertyModel as Ve } from "./base/property.mjs";
|
|
22
|
-
import { PropertyHighlightModel as
|
|
23
|
-
import { RoomModel as
|
|
22
|
+
import { PropertyHighlightModel as Le } from "./base/propertyhighlight.mjs";
|
|
23
|
+
import { RoomModel as Ge } from "./base/room.mjs";
|
|
24
24
|
import { StyleModel as Ne } from "./base/style.mjs";
|
|
25
25
|
import { UnitModel as we } from "./base/unit.mjs";
|
|
26
26
|
import { Currency as We, DeliveryStatus as Ze, ExternalService as je, FurnitureAvailability as qe, Highlights as ze, MediaType as Ke, QueueJobStatus as Xe, RenderStatus as Ye, Status as $e, UserRole as er } from "./base/enums.mjs";
|
|
@@ -28,9 +28,10 @@ import { RenderedStyleModel as tr } from "./base/renderedstyle.mjs";
|
|
|
28
28
|
import { PropertyAmenityModel as ar } from "./base/propertyamenity.mjs";
|
|
29
29
|
import { FavoriteUnitModel as mr } from "./base/favoriteunit.mjs";
|
|
30
30
|
import { UserModel as sr } from "./base/user.mjs";
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
31
|
+
import { PropertyLinkModel as fr } from "./base/propertylink.mjs";
|
|
32
|
+
import { MixpanelProvider as Sr, useMixpanel as dr } from "./features/analytics/MixpanelProvider.mjs";
|
|
33
|
+
import { generateUserUUID as ur } from "./features/analytics/generateUserUUID.mjs";
|
|
34
|
+
import { QuestionEnumValues as Ur, QuestionnaireInteractionValues as Mr, SortEnumValues as hr, buildTrackingEvents as yr, useTrackEvent as vr, useTrackingEvents as gr } from "./features/analytics/analytics.mjs";
|
|
34
35
|
export {
|
|
35
36
|
Ie as AmenityImagesOnPropertyModel,
|
|
36
37
|
i as ApiUserSchema,
|
|
@@ -52,23 +53,24 @@ export {
|
|
|
52
53
|
t as OpenDBError,
|
|
53
54
|
Te as OverviewImagesOnPropertyModel,
|
|
54
55
|
ar as PropertyAmenityModel,
|
|
55
|
-
|
|
56
|
+
Le as PropertyHighlightModel,
|
|
57
|
+
fr as PropertyLinkModel,
|
|
56
58
|
Ve as PropertyModel,
|
|
57
59
|
p as PropertySchema,
|
|
58
60
|
W as PropertyStore,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
f as PropertyStoreDataSchema,
|
|
62
|
+
l as QueryParamsSchema,
|
|
63
|
+
Ur as QuestionEnumValues,
|
|
64
|
+
Mr as QuestionnaireInteractionValues,
|
|
63
65
|
Xe as QueueJobStatus,
|
|
64
66
|
Ye as RenderStatus,
|
|
65
67
|
tr as RenderedStyleModel,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
S as ResultsModeEnum,
|
|
69
|
+
Ge as RoomModel,
|
|
70
|
+
d as SCHEMA_VERSION,
|
|
69
71
|
o as SchemaMismatchError,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
c as SortByEnum,
|
|
73
|
+
hr as SortEnumValues,
|
|
72
74
|
$e as Status,
|
|
73
75
|
q as Store,
|
|
74
76
|
Ne as StyleModel,
|
|
@@ -76,9 +78,9 @@ export {
|
|
|
76
78
|
z as UnifiedStore,
|
|
77
79
|
x as UnifiedStoreDataSchema,
|
|
78
80
|
U as UnitDataSchema,
|
|
79
|
-
|
|
81
|
+
M as UnitFavoriteSchema,
|
|
80
82
|
we as UnitModel,
|
|
81
|
-
|
|
83
|
+
h as UnitSchema,
|
|
82
84
|
sr as UserModel,
|
|
83
85
|
y as UserPropertyStateSchema,
|
|
84
86
|
er as UserRole,
|
|
@@ -87,7 +89,7 @@ export {
|
|
|
87
89
|
E as ViewedUnitSchema,
|
|
88
90
|
se as buildExploreUrl,
|
|
89
91
|
pe as buildImageUrl,
|
|
90
|
-
|
|
92
|
+
yr as buildTrackingEvents,
|
|
91
93
|
Pe as configureValidation,
|
|
92
94
|
V as createORMStringStorage,
|
|
93
95
|
re as createStructuredStore,
|
|
@@ -96,22 +98,22 @@ export {
|
|
|
96
98
|
$ as createZustandUnifiedStore,
|
|
97
99
|
b as debugDump,
|
|
98
100
|
A as defaultIdGenerator,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
ce as defaultSortParamMap,
|
|
102
|
+
Me as dimensionToMmNumber,
|
|
101
103
|
I as ensureUser,
|
|
102
104
|
k as exportJSON,
|
|
103
105
|
ae as favorites,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
+
he as formatDimensions,
|
|
107
|
+
ur as generateUserUUID,
|
|
106
108
|
P as getDB,
|
|
107
|
-
|
|
109
|
+
H as getFavoritedUnitsForProperty,
|
|
108
110
|
R as getUserUUID,
|
|
109
111
|
ye as imperialToMm,
|
|
110
112
|
ve as inchesToMm,
|
|
111
113
|
N as isUnitFavorited,
|
|
112
114
|
B as kvGet,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
+
L as kvRemove,
|
|
116
|
+
_ as kvSet,
|
|
115
117
|
ge as mmToInches,
|
|
116
118
|
Z as propertyStore,
|
|
117
119
|
F as resetDB,
|
|
@@ -121,11 +123,11 @@ export {
|
|
|
121
123
|
w as toggleFavoriteUnit,
|
|
122
124
|
ue as transformFiltersToPreferences,
|
|
123
125
|
xe as transformFiltersToUnitsSearchParams,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
fe as transformUnitsApiResponse,
|
|
127
|
+
le as transformUnitsApiResponseToClient,
|
|
128
|
+
Se as transformUnitsApiResponseToClientFilters,
|
|
129
|
+
dr as useMixpanel,
|
|
130
|
+
vr as useTrackEvent,
|
|
131
|
+
gr as useTrackingEvents
|
|
130
132
|
};
|
|
131
133
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|