@quicktalog/common 1.26.0 → 1.27.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.
@@ -1 +1 @@
1
- export * from "./migrations/schema";
1
+ export * as schema from "./migrations/schema";
@@ -1 +1 @@
1
- export * from "./migrations/schema";
1
+ export * as schema from "./migrations/schema";
@@ -1,8 +1,8 @@
1
- import { catalogues } from "../drizzle";
1
+ import { schema } from "../drizzle";
2
2
  import { type InferSelectModel } from "drizzle-orm";
3
3
  import { AnimationLevel, ContentLayout, FontFamily, FontSize, ShadowLevel, Source, Status, ThemeType } from "./enums";
4
4
  import { Update } from "./functions";
5
- type RawCatalogue = InferSelectModel<typeof catalogues>;
5
+ type RawCatalogue = InferSelectModel<typeof schema.catalogues>;
6
6
  export type Catalogue = Update<RawCatalogue, {
7
7
  status: Status;
8
8
  source: Source;
@@ -1,4 +1,4 @@
1
- import { users } from "../drizzle";
1
+ import { schema } from "../drizzle";
2
2
  import { layouts, themes } from "../constants";
3
3
  import { InferSelectModel, Update } from "drizzle-orm";
4
4
  export type Usage = {
@@ -69,7 +69,7 @@ export type CookiePreferences = {
69
69
  timestamp: string;
70
70
  version: string;
71
71
  };
72
- type RawUser = InferSelectModel<typeof users>;
72
+ type RawUser = InferSelectModel<typeof schema.users>;
73
73
  export type User = Update<RawUser, {
74
74
  cookiePreferences: CookiePreferences;
75
75
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quicktalog/common",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",