omni-sync-sdk 0.18.3 → 0.18.4

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/index.d.mts CHANGED
@@ -150,6 +150,10 @@ interface Product {
150
150
  /** Product status (active, draft, archived). Always returned by backend. */
151
151
  status: string;
152
152
  type: 'SIMPLE' | 'VARIABLE';
153
+ /**
154
+ * Whether product is downloadable/digital.
155
+ * @deprecated For read operations, check channels.WOOCOMMERCE.downloadable instead
156
+ */
153
157
  isDownloadable?: boolean;
154
158
  images?: ProductImage[];
155
159
  inventory?: InventoryInfo | null;
@@ -165,6 +169,8 @@ interface Product {
165
169
  name: string;
166
170
  }>;
167
171
  tags?: string[];
172
+ /** Array of attribute option IDs for global assignments (admin mode only) */
173
+ attributes?: string[];
168
174
  metafields?: ProductMetafield[];
169
175
  channels?: Record<string, Record<string, unknown>>;
170
176
  /** Shopify product ID (admin mode only) */
@@ -173,8 +179,8 @@ interface Product {
173
179
  woocommerceProductId?: string | null;
174
180
  /** Meta/Facebook Item Group ID (admin mode only) */
175
181
  metaItemGroupId?: string | null;
176
- /** Whether product needs sync to platforms (admin mode only) */
177
- needsSync?: boolean;
182
+ /** Whether product needs sync to platforms. Always returned by backend. */
183
+ needsSync: boolean;
178
184
  /** Last sync timestamp (admin mode only) */
179
185
  lastSyncedAt?: string | null;
180
186
  /** Menu/display order */
@@ -226,6 +232,8 @@ interface ProductImage {
226
232
  size?: number;
227
233
  /** MIME type (admin mode only) */
228
234
  mimeType?: string;
235
+ /** Creation timestamp (admin mode only) */
236
+ createdAt?: string;
229
237
  }
230
238
  interface ProductVariant {
231
239
  id: string;
@@ -287,6 +295,8 @@ interface InventoryInfo {
287
295
  * false if trackingMode is DISABLED or if out of stock.
288
296
  */
289
297
  canPurchase: boolean;
298
+ /** Last inventory sync timestamp (admin mode only) */
299
+ lastInventorySyncAt?: string | null;
290
300
  }
291
301
  /**
292
302
  * Check if a product description contains HTML and should be rendered with dangerouslySetInnerHTML
package/dist/index.d.ts CHANGED
@@ -150,6 +150,10 @@ interface Product {
150
150
  /** Product status (active, draft, archived). Always returned by backend. */
151
151
  status: string;
152
152
  type: 'SIMPLE' | 'VARIABLE';
153
+ /**
154
+ * Whether product is downloadable/digital.
155
+ * @deprecated For read operations, check channels.WOOCOMMERCE.downloadable instead
156
+ */
153
157
  isDownloadable?: boolean;
154
158
  images?: ProductImage[];
155
159
  inventory?: InventoryInfo | null;
@@ -165,6 +169,8 @@ interface Product {
165
169
  name: string;
166
170
  }>;
167
171
  tags?: string[];
172
+ /** Array of attribute option IDs for global assignments (admin mode only) */
173
+ attributes?: string[];
168
174
  metafields?: ProductMetafield[];
169
175
  channels?: Record<string, Record<string, unknown>>;
170
176
  /** Shopify product ID (admin mode only) */
@@ -173,8 +179,8 @@ interface Product {
173
179
  woocommerceProductId?: string | null;
174
180
  /** Meta/Facebook Item Group ID (admin mode only) */
175
181
  metaItemGroupId?: string | null;
176
- /** Whether product needs sync to platforms (admin mode only) */
177
- needsSync?: boolean;
182
+ /** Whether product needs sync to platforms. Always returned by backend. */
183
+ needsSync: boolean;
178
184
  /** Last sync timestamp (admin mode only) */
179
185
  lastSyncedAt?: string | null;
180
186
  /** Menu/display order */
@@ -226,6 +232,8 @@ interface ProductImage {
226
232
  size?: number;
227
233
  /** MIME type (admin mode only) */
228
234
  mimeType?: string;
235
+ /** Creation timestamp (admin mode only) */
236
+ createdAt?: string;
229
237
  }
230
238
  interface ProductVariant {
231
239
  id: string;
@@ -287,6 +295,8 @@ interface InventoryInfo {
287
295
  * false if trackingMode is DISABLED or if out of stock.
288
296
  */
289
297
  canPurchase: boolean;
298
+ /** Last inventory sync timestamp (admin mode only) */
299
+ lastInventorySyncAt?: string | null;
290
300
  }
291
301
  /**
292
302
  * Check if a product description contains HTML and should be rendered with dangerouslySetInnerHTML
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omni-sync-sdk",
3
- "version": "0.18.3",
3
+ "version": "0.18.4",
4
4
  "description": "Official SDK for building e-commerce storefronts with OmniSync Platform. Perfect for vibe-coded sites, AI-built stores (Cursor, Lovable, v0), and custom storefronts.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",