@rovela-ai/sdk 0.3.12 → 0.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"AdminBarBanner.d.ts","sourceRoot":"","sources":["../../../src/admin/components/AdminBarBanner.tsx"],"names":[],"mappings":"AAqDA,wBAAgB,cAAc,uCAyH7B"}
1
+ {"version":3,"file":"AdminBarBanner.d.ts","sourceRoot":"","sources":["../../../src/admin/components/AdminBarBanner.tsx"],"names":[],"mappings":"AAoDA,wBAAgB,cAAc,uCAyI7B"}
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  /**
4
4
  * @rovela/sdk/admin/components/AdminBarBanner
5
5
  *
@@ -34,7 +34,6 @@ import { createPortal } from 'react-dom';
34
34
  import { usePathname } from 'next/navigation';
35
35
  import { LayoutDashboard } from 'lucide-react';
36
36
  import { useAdminAuth } from '../hooks/useAdminAuth';
37
- import { roleLabel } from '../permissions';
38
37
  // =============================================================================
39
38
  // Constants
40
39
  // =============================================================================
@@ -98,7 +97,6 @@ export function AdminBarBanner() {
98
97
  }, [visible]);
99
98
  if (!visible || !portalRoot || !admin)
100
99
  return null;
101
- const role = roleLabel(admin.role).toLowerCase();
102
100
  // Deep-link to Rovela platform. Only shown when the project ID env var is
103
101
  // present — which is the case for every store that has redeployed since
104
102
  // the env var was added to buildStoreEnvVars(). Older stores see only the
@@ -106,7 +104,11 @@ export function AdminBarBanner() {
106
104
  const projectId = getEnv('NEXT_PUBLIC_ROVELA_PROJECT_ID');
107
105
  const rovelaBase = getEnv('NEXT_PUBLIC_ROVELA_URL') || DEFAULT_ROVELA_URL;
108
106
  const editUrl = projectId ? `${rovelaBase.replace(/\/$/, '')}/generate/${projectId}` : null;
109
- return createPortal(_jsx("div", { "data-rovela-admin-bar": "", style: wrapStyle, children: _jsxs("div", { style: innerStyle, children: [_jsxs("div", { style: leftGroupStyle, children: [_jsx("span", { "aria-hidden": "true", style: dotStyle }), _jsx("span", { "data-rovela-tablet-only": "", style: labelStyle, children: "Admin session" }), _jsx("span", { "aria-hidden": "true", "data-rovela-desktop-only": "", style: dividerStyle, children: "\u00B7" }), _jsx("span", { "data-rovela-desktop-only": "", style: roleStyle, children: role })] }), _jsxs("div", { style: actionsStyle, children: [editUrl && (_jsxs("a", { href: editUrl, target: "_blank", rel: "noopener noreferrer", "data-rovela-action": "", "aria-label": "Edit store in Rovela", style: buttonStyle, children: [_jsx("img", { src: ROVELA_LOGO_SRC, alt: "", "aria-hidden": "true", style: rovelaIconStyle }), _jsx("span", { "data-rovela-desktop-only": "", children: "Edit store" })] })), _jsxs("a", { href: "/admin", target: "_blank", rel: "noopener noreferrer", "data-rovela-action": "", "aria-label": "Open the admin dashboard", style: buttonStyle, children: [_jsx(LayoutDashboard, { "aria-hidden": "true", style: lucideIconStyle, strokeWidth: 1.8 }), _jsx("span", { "data-rovela-desktop-only": "", children: "Manage store" })] })] })] }) }), portalRoot);
107
+ // Store name surfaces in the left group so a merchant managing multiple
108
+ // stores instantly knows which storefront they're viewing. Falls back to
109
+ // hiding the name (just "Live store") when the env var isn't set.
110
+ const storeName = (getEnv('STORE_NAME') || '').trim() || null;
111
+ return createPortal(_jsx("div", { "data-rovela-admin-bar": "", role: "region", "aria-label": "Admin view \u2014 only you see this bar", style: wrapStyle, children: _jsxs("div", { style: innerStyle, children: [_jsxs("div", { style: leftGroupStyle, children: [_jsx("span", { "aria-hidden": "true", style: dotStyle }), _jsx("span", { "data-rovela-desktop-only": "", style: disclosureStyle, children: "Admin view \u2014 only you see this bar" }), storeName && (_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": "true", "data-rovela-desktop-only": "", style: dividerStyle, children: "\u00B7" }), _jsx("span", { "data-rovela-tablet-only": "", style: storeNameStyle, children: storeName })] }))] }), _jsxs("div", { style: actionsStyle, children: [editUrl && (_jsxs("a", { href: editUrl, target: "_blank", rel: "noopener noreferrer", "data-rovela-action": "", "aria-label": "Edit store in Rovela", style: buttonStyle, children: [_jsx("img", { src: ROVELA_LOGO_SRC, alt: "", "aria-hidden": "true", style: rovelaIconStyle }), _jsx("span", { "data-rovela-desktop-only": "", children: "Edit store" })] })), _jsxs("a", { href: "/admin", target: "_blank", rel: "noopener noreferrer", "data-rovela-action": "", "aria-label": "Open the admin dashboard", style: buttonStyle, children: [_jsx(LayoutDashboard, { "aria-hidden": "true", style: lucideIconStyle, strokeWidth: 1.8 }), _jsx("span", { "data-rovela-desktop-only": "", children: "Manage store" })] })] })] }) }), portalRoot);
110
112
  }
111
113
  // =============================================================================
112
114
  // Helpers
@@ -122,6 +124,8 @@ function getEnv(key) {
122
124
  return process.env.NEXT_PUBLIC_ROVELA_PROJECT_ID;
123
125
  if (key === 'NEXT_PUBLIC_ROVELA_URL')
124
126
  return process.env.NEXT_PUBLIC_ROVELA_URL;
127
+ if (key === 'STORE_NAME')
128
+ return process.env.STORE_NAME;
125
129
  return undefined;
126
130
  }
127
131
  // =============================================================================
@@ -172,17 +176,21 @@ const dotStyle = {
172
176
  animation: 'rab-pulse 2.4s infinite',
173
177
  flexShrink: 0,
174
178
  };
175
- const labelStyle = {
176
- color: 'rgba(255, 255, 255, 0.92)',
177
- fontWeight: 500,
179
+ const disclosureStyle = {
180
+ color: 'rgba(255, 255, 255, 0.7)',
181
+ fontWeight: 400,
178
182
  whiteSpace: 'nowrap',
179
183
  };
180
184
  const dividerStyle = {
181
185
  color: 'rgba(255, 255, 255, 0.3)',
182
186
  };
183
- const roleStyle = {
184
- color: 'rgba(255, 255, 255, 0.55)',
187
+ const storeNameStyle = {
188
+ color: 'rgba(255, 255, 255, 0.75)',
189
+ fontWeight: 500,
185
190
  whiteSpace: 'nowrap',
191
+ overflow: 'hidden',
192
+ textOverflow: 'ellipsis',
193
+ minWidth: 0,
186
194
  };
187
195
  const actionsStyle = {
188
196
  display: 'inline-flex',
@@ -1 +1 @@
1
- {"version":3,"file":"AdminBarBanner.js","sourceRoot":"","sources":["../../../src/admin/components/AdminBarBanner.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,gFAAgF;AAChF,YAAY;AACZ,gFAAgF;AAEhF,MAAM,aAAa,GAAG,EAAE,CAAA;AACxB,MAAM,cAAc,GAAG,uBAAuB,CAAA;AAC9C,MAAM,YAAY,GAAG,wBAAwB,CAAA;AAC7C,MAAM,kBAAkB,GAAG,mBAAmB,CAAA;AAC9C,MAAM,eAAe,GAAG,4BAA4B,CAAA;AAEpD,gFAAgF;AAChF,YAAY;AACZ,gFAAgF;AAEhF,MAAM,UAAU,cAAc;IAC5B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAC9B,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,YAAY,EAAE,CAAA;IAC5D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAqB,IAAI,CAAC,CAAA;IAEtE,MAAM,OAAO,GACX,CAAC,SAAS;QACV,eAAe;QACf,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC;QACpB,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAA;IAEjC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,QAAQ,KAAK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pB,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,QAAQ;IACjB,YAAY,EAAE,KAAK;IACnB,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE,GAAG;IACf,KAAK,EAAE,SAAS;IAChB,UAAU,EAAE,0BAA0B;IACtC,MAAM,EAAE,qCAAqC;IAC7C,cAAc,EAAE,MAAM;IACtB,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,CAAC;IACb,UAAU,EAAE,gDAAgD;CAC7D,CAAA;AAED,MAAM,eAAe,GAAwB;IAC3C,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,SAAS;IACpB,4EAA4E;IAC5E,MAAM,EAAE,yBAAyB;IACjC,UAAU,EAAE,CAAC;CACd,CAAA;AAED,MAAM,eAAe,GAAwB;IAC3C,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,CAAC;CACd,CAAA;AAED,uEAAuE;AACvE,qDAAqD;AACrD,EAAE;AACF,yBAAyB;AACzB,gFAAgF;AAChF,8EAA8E;AAC9E,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;CAwBlB,CAAA"}
@@ -56,6 +56,6 @@ export function AdminLoginForm({ redirectTo = '/admin', onSuccess, className = '
56
56
  }
57
57
  }, [email, password, redirectTo, rememberMe, signIn, onSuccess]);
58
58
  const isLoading = isSubmitting || authLoading;
59
- return (_jsxs("div", { className: `w-full max-w-sm admin-animate-in ${className}`, children: [_jsxs("div", { className: "mb-8 text-center", children: [_jsx("div", { className: "admin-icon-container-sm mx-auto mb-4", children: _jsx(Lock, { className: "h-6 w-6 admin-icon-primary" }) }), _jsx("h1", { className: "admin-heading-2", children: "Admin Sign In" }), _jsx("p", { className: "mt-2 text-sm admin-text-muted", children: "Enter your credentials to access the admin panel" })] }), _jsxs("form", { onSubmit: handleSubmit, className: "space-y-4", children: [error && (_jsx("div", { className: "admin-alert admin-alert-error", children: _jsx("div", { className: "admin-alert-description", children: error }) })), _jsxs("div", { children: [_jsx("label", { htmlFor: "email", className: "admin-label", children: "Email" }), _jsx("input", { id: "email", type: "email", value: email, onChange: (e) => setEmail(e.target.value), required: true, autoComplete: "email", disabled: isLoading, className: "admin-input w-full", placeholder: "admin@example.com" })] }), _jsxs("div", { children: [_jsx("label", { htmlFor: "password", className: "admin-label", children: "Password" }), _jsx("input", { id: "password", type: "password", value: password, onChange: (e) => setPassword(e.target.value), required: true, autoComplete: "current-password", disabled: isLoading, className: "admin-input w-full", placeholder: "Enter your password" })] }), showRememberMe && (_jsxs("label", { className: "flex items-center gap-2 cursor-pointer select-none", children: [_jsx("input", { id: "admin-remember-me", type: "checkbox", checked: rememberMe, onChange: (e) => setRememberMe(e.target.checked), disabled: isLoading, className: "admin-checkbox" }), _jsx("span", { className: "text-sm admin-text-muted", children: "Keep me signed in for 30 days" })] })), _jsx("button", { type: "submit", disabled: isLoading, className: "admin-btn admin-btn-primary w-full", children: isLoading ? (_jsxs("span", { className: "flex items-center justify-center gap-2", children: [_jsx("span", { className: "admin-spinner admin-spinner-sm" }), "Signing in..."] })) : ('Sign In') })] })] }));
59
+ return (_jsxs("div", { className: `w-full max-w-sm admin-animate-in ${className}`, children: [_jsxs("div", { className: "mb-8 text-center", children: [_jsx("div", { className: "admin-icon-container-sm mx-auto mb-4", children: _jsx(Lock, { className: "h-6 w-6 admin-icon-primary" }) }), _jsx("h1", { className: "admin-heading-2", children: "Admin Sign In" }), _jsx("p", { className: "mt-2 text-sm admin-text-muted", children: "Enter your credentials to access the admin panel" })] }), _jsxs("form", { onSubmit: handleSubmit, className: "space-y-4", autoComplete: "off", children: [error && (_jsx("div", { className: "admin-alert admin-alert-error", children: _jsx("div", { className: "admin-alert-description", children: error }) })), _jsxs("div", { children: [_jsx("label", { htmlFor: "email", className: "admin-label", children: "Email" }), _jsx("input", { id: "email", type: "email", value: email, onChange: (e) => setEmail(e.target.value), required: true, autoComplete: "off", disabled: isLoading, className: "admin-input w-full", placeholder: "admin@example.com" })] }), _jsxs("div", { children: [_jsx("label", { htmlFor: "password", className: "admin-label", children: "Password" }), _jsx("input", { id: "password", type: "password", value: password, onChange: (e) => setPassword(e.target.value), required: true, autoComplete: "off", disabled: isLoading, className: "admin-input w-full", placeholder: "Enter your password" })] }), showRememberMe && (_jsxs("label", { className: "flex items-center gap-2 cursor-pointer select-none", children: [_jsx("input", { id: "admin-remember-me", type: "checkbox", checked: rememberMe, onChange: (e) => setRememberMe(e.target.checked), disabled: isLoading, className: "admin-checkbox" }), _jsx("span", { className: "text-sm admin-text-muted", children: "Keep me signed in for 30 days" })] })), _jsx("button", { type: "submit", disabled: isLoading, className: "admin-btn admin-btn-primary w-full", children: isLoading ? (_jsxs("span", { className: "flex items-center justify-center gap-2", children: [_jsx("span", { className: "admin-spinner admin-spinner-sm" }), "Signing in..."] })) : ('Sign In') })] })] }));
60
60
  }
61
61
  //# sourceMappingURL=AdminLoginForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AdminLoginForm.js","sourceRoot":"","sources":["../../../src/admin/components/AdminLoginForm.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGpD,gFAAgF;AAChF,YAAY;AACZ,gFAAgF;AAEhF;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,cAAc,CAAC,EAC7B,UAAU,GAAG,QAAQ,EACrB,SAAS,EACT,SAAS,GAAG,EAAE,EACd,cAAc,GAAG,IAAI,GACD;IACpB,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,YAAY,EAAE,CAAA;IACzD,MAAM,CAAC,KAAK,EAAE,QAA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E,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,EAChD,QAAQ,EAAE,SAAS,EACnB,SAAS,EAAC,gBAAgB,GAC1B,EACF,eAAM,SAAS,EAAC,0BAA0B,8CAEnC,IACD,CACT,EAED,iBACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,SAAS,EACnB,SAAS,EAAC,oCAAoC,YAE7C,SAAS,CAAC,CAAC,CAAC,CACX,gBAAM,SAAS,EAAC,wCAAwC,aACtD,eAAM,SAAS,EAAC,gCAAgC,GAAG,qBAE9C,CACR,CAAC,CAAC,CAAC,CACF,SAAS,CACV,GACM,IACJ,IACH,CACP,CAAA;AACH,CAAC"}
@@ -24,7 +24,7 @@ export declare function findProducts(options?: FindProductsOptions): Promise<{
24
24
  price: string;
25
25
  comparePrice: string | null;
26
26
  images: string[];
27
- status: "active" | "draft" | "archived";
27
+ status: "draft" | "active" | "archived";
28
28
  categoryId: string | null;
29
29
  hasVariants: boolean;
30
30
  sku: string | null;
@@ -51,7 +51,7 @@ export declare function findProductBySlug(slug: string): Promise<{
51
51
  price: string;
52
52
  comparePrice: string | null;
53
53
  images: string[];
54
- status: "active" | "draft" | "archived";
54
+ status: "draft" | "active" | "archived";
55
55
  categoryId: string | null;
56
56
  hasVariants: boolean;
57
57
  sku: string | null;
@@ -78,7 +78,7 @@ export declare function findProductById(id: string): Promise<{
78
78
  price: string;
79
79
  comparePrice: string | null;
80
80
  images: string[];
81
- status: "active" | "draft" | "archived";
81
+ status: "draft" | "active" | "archived";
82
82
  categoryId: string | null;
83
83
  hasVariants: boolean;
84
84
  sku: string | null;
@@ -350,7 +350,7 @@ export declare function getLowStockProducts(threshold?: number): Promise<{
350
350
  price: string;
351
351
  comparePrice: string | null;
352
352
  images: string[];
353
- status: "active" | "draft" | "archived";
353
+ status: "draft" | "active" | "archived";
354
354
  categoryId: string | null;
355
355
  hasVariants: boolean;
356
356
  sku: string | null;
@@ -434,10 +434,12 @@ export declare function getRecentOrders(limit?: number): Promise<{
434
434
  */
435
435
  export declare function createOrder(data: schema.NewOrder): Promise<{
436
436
  status: "pending" | "paid" | "shipped" | "delivered" | "cancelled" | "refunded" | "return_requested";
437
+ carrier: string | null;
437
438
  email: string;
438
439
  id: string;
439
- createdAt: Date;
440
440
  total: string;
441
+ createdAt: Date;
442
+ updatedAt: Date;
441
443
  customerId: string | null;
442
444
  subtotal: string;
443
445
  tax: string;
@@ -474,11 +476,9 @@ export declare function createOrder(data: schema.NewOrder): Promise<{
474
476
  receiptUrl: string | null;
475
477
  trackingNumber: string | null;
476
478
  trackingUrl: string | null;
477
- carrier: string | null;
478
479
  labelUrl: string | null;
479
480
  shippoRateId: string | null;
480
481
  shippingMethod: string | null;
481
- updatedAt: Date;
482
482
  }>;
483
483
  /**
484
484
  * Create order items for an order
@@ -486,13 +486,13 @@ export declare function createOrder(data: schema.NewOrder): Promise<{
486
486
  export declare function createOrderItems(items: schema.NewOrderItem[]): Promise<{
487
487
  name: string;
488
488
  id: string;
489
- createdAt: Date;
490
- orderId: string;
489
+ attributes: Record<string, string> | null;
490
+ quantity: number;
491
491
  price: string;
492
+ createdAt: Date;
492
493
  productId: string;
494
+ orderId: string;
493
495
  variantId: string | null;
494
- quantity: number;
495
- attributes: Record<string, string> | null;
496
496
  }[]>;
497
497
  /**
498
498
  * Update order status
@@ -142,7 +142,7 @@ export declare const products: import("drizzle-orm/pg-core").PgTableWithColumns<
142
142
  tableName: "products";
143
143
  dataType: "string";
144
144
  columnType: "PgEnumColumn";
145
- data: "active" | "draft" | "archived";
145
+ data: "draft" | "active" | "archived";
146
146
  driverParam: string;
147
147
  notNull: true;
148
148
  hasDefault: true;
@@ -2014,6 +2014,7 @@ export declare const storeSettings: import("drizzle-orm/pg-core").PgTableWithCol
2014
2014
  identity: undefined;
2015
2015
  generated: undefined;
2016
2016
  }, {}, {
2017
+ size: undefined;
2017
2018
  baseBuilder: import("drizzle-orm/pg-core").PgColumnBuilder<{
2018
2019
  name: "shipping_countries";
2019
2020
  dataType: "string";
@@ -2022,7 +2023,6 @@ export declare const storeSettings: import("drizzle-orm/pg-core").PgTableWithCol
2022
2023
  enumValues: [string, ...string[]];
2023
2024
  driverParam: string;
2024
2025
  }, {}, {}, import("drizzle-orm").ColumnBuilderExtraConfig>;
2025
- size: undefined;
2026
2026
  }>;
2027
2027
  shippingMode: import("drizzle-orm/pg-core").PgColumn<{
2028
2028
  name: "shipping_mode";
@@ -2411,6 +2411,7 @@ export declare const shippingZones: import("drizzle-orm/pg-core").PgTableWithCol
2411
2411
  identity: undefined;
2412
2412
  generated: undefined;
2413
2413
  }, {}, {
2414
+ size: undefined;
2414
2415
  baseBuilder: import("drizzle-orm/pg-core").PgColumnBuilder<{
2415
2416
  name: "countries";
2416
2417
  dataType: "string";
@@ -2419,7 +2420,6 @@ export declare const shippingZones: import("drizzle-orm/pg-core").PgTableWithCol
2419
2420
  enumValues: [string, ...string[]];
2420
2421
  driverParam: string;
2421
2422
  }, {}, {}, import("drizzle-orm").ColumnBuilderExtraConfig>;
2422
- size: undefined;
2423
2423
  }>;
2424
2424
  isActive: import("drizzle-orm/pg-core").PgColumn<{
2425
2425
  name: "is_active";
@@ -2772,6 +2772,7 @@ export declare const taxZones: import("drizzle-orm/pg-core").PgTableWithColumns<
2772
2772
  identity: undefined;
2773
2773
  generated: undefined;
2774
2774
  }, {}, {
2775
+ size: undefined;
2775
2776
  baseBuilder: import("drizzle-orm/pg-core").PgColumnBuilder<{
2776
2777
  name: "countries";
2777
2778
  dataType: "string";
@@ -2780,7 +2781,6 @@ export declare const taxZones: import("drizzle-orm/pg-core").PgTableWithColumns<
2780
2781
  enumValues: [string, ...string[]];
2781
2782
  driverParam: string;
2782
2783
  }, {}, {}, import("drizzle-orm").ColumnBuilderExtraConfig>;
2783
- size: undefined;
2784
2784
  }>;
2785
2785
  states: import("drizzle-orm/pg-core").PgColumn<{
2786
2786
  name: "states";
@@ -2815,6 +2815,7 @@ export declare const taxZones: import("drizzle-orm/pg-core").PgTableWithColumns<
2815
2815
  identity: undefined;
2816
2816
  generated: undefined;
2817
2817
  }, {}, {
2818
+ size: undefined;
2818
2819
  baseBuilder: import("drizzle-orm/pg-core").PgColumnBuilder<{
2819
2820
  name: "states";
2820
2821
  dataType: "string";
@@ -2823,7 +2824,6 @@ export declare const taxZones: import("drizzle-orm/pg-core").PgTableWithColumns<
2823
2824
  enumValues: [string, ...string[]];
2824
2825
  driverParam: string;
2825
2826
  }, {}, {}, import("drizzle-orm").ColumnBuilderExtraConfig>;
2826
- size: undefined;
2827
2827
  }>;
2828
2828
  taxRate: import("drizzle-orm/pg-core").PgColumn<{
2829
2829
  name: "tax_rate";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rovela-ai/sdk",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "description": "Rovela SDK - Pre-built e-commerce components for AI-powered store generation",
5
5
  "type": "module",
6
6
  "license": "MIT",