omni-sync-sdk 0.7.6 → 0.7.8

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/LICENSE ADDED
File without changes
package/dist/index.d.mts CHANGED
@@ -498,6 +498,12 @@ interface CustomerAuthResponse {
498
498
  };
499
499
  token: string;
500
500
  expiresAt: string;
501
+ /** If true, customer needs to verify their email before proceeding */
502
+ requiresVerification?: boolean;
503
+ }
504
+ interface EmailVerificationResponse {
505
+ verified: boolean;
506
+ message: string;
501
507
  }
502
508
  interface RegisterCustomerDto {
503
509
  email: string;
@@ -1662,6 +1668,35 @@ declare class OmniSyncClient {
1662
1668
  forgotPassword(email: string): Promise<{
1663
1669
  message: string;
1664
1670
  }>;
1671
+ /**
1672
+ * Verify customer email with a verification code
1673
+ * Requires a customer token to be set via setCustomerToken()
1674
+ * Only available in vibe-coded mode
1675
+ *
1676
+ * @example
1677
+ * ```typescript
1678
+ * // After registration with requiresVerification: true
1679
+ * omni.setCustomerToken(auth.token);
1680
+ * const result = await omni.verifyEmail('123456');
1681
+ * console.log(result.verified); // true
1682
+ * ```
1683
+ */
1684
+ verifyEmail(code: string): Promise<EmailVerificationResponse>;
1685
+ /**
1686
+ * Resend verification email
1687
+ * Requires a customer token to be set via setCustomerToken()
1688
+ * Only available in vibe-coded mode
1689
+ * Rate limited to 3 requests per hour
1690
+ *
1691
+ * @example
1692
+ * ```typescript
1693
+ * omni.setCustomerToken(auth.token);
1694
+ * await omni.resendVerificationEmail();
1695
+ * ```
1696
+ */
1697
+ resendVerificationEmail(): Promise<{
1698
+ message: string;
1699
+ }>;
1665
1700
  /**
1666
1701
  * Get the current logged-in customer's profile
1667
1702
  * Requires a customer token to be set via setCustomerToken()
@@ -2163,7 +2198,7 @@ declare class OmniSyncClient {
2163
2198
  }): Promise<CustomerProfile>;
2164
2199
  /**
2165
2200
  * Get the current customer's orders (requires customerToken)
2166
- * Only available in storefront mode
2201
+ * Works in vibe-coded and storefront modes
2167
2202
  */
2168
2203
  getMyOrders(params?: {
2169
2204
  page?: number;
@@ -2348,4 +2383,4 @@ declare function isWebhookEventType(event: WebhookEvent, type: WebhookEventType)
2348
2383
  */
2349
2384
  declare function createWebhookHandler(handlers: Partial<Record<WebhookEventType, (event: WebhookEvent) => Promise<void>>>): (payload: unknown) => Promise<void>;
2350
2385
 
2351
- export { type AddToCartDto, type AppliedDiscount, type ApplyCouponDto, type BulkInventoryResponse, type BulkSaveVariantsDto, type BulkSaveVariantsResponse, type BulkVariantInput, type Cart, type CartItem, type CartStatus, type CategorySuggestion, type Checkout, type CheckoutAddress, type CheckoutLineItem, type CheckoutStatus, type CompleteCheckoutResponse, type CompleteDraftDto, type ConnectorPlatform, type Coupon, type CouponCreateResponse, type CouponQueryParams, type CouponStatus, type CouponType, type CouponValidationWarning, type CreateAddressDto, type CreateCheckoutDto, type CreateCouponDto, type CreateCustomApiDto, type CreateCustomerDto, type CreateGuestOrderDto, type CreateOrderDto, type CreateProductDto, type CreateRefundDto, type CreateVariantDto, type CustomApiAuthType, type CustomApiConnectionStatus, type CustomApiCredentials, type CustomApiIntegration, type CustomApiSyncConfig, type CustomApiSyncDirection, type CustomApiTestResult, type Customer, type CustomerAddress, type CustomerAuthResponse, type CustomerProfile, type CustomerQueryParams, type DraftLineItem, type EditInventoryDto, type FulfillOrderDto, type GuestCheckoutStartResponse, type GuestOrderResponse, type InventoryInfo, type InventorySyncStatus, type LocalCart, type LocalCartItem, type MergeCartsDto, type OmniSyncApiError, OmniSyncClient, type OmniSyncClientOptions, OmniSyncError, type Order, type OrderAddress, type OrderCustomer, type OrderItem, type OrderQueryParams, type OrderStatus, type PaginatedResponse, type PlatformCouponCapabilities, type Product, type ProductAttributeInput, type ProductImage, type ProductQueryParams, type ProductSuggestion, type ProductVariant, type PublishProductResponse, type ReconcileInventoryResponse, type Refund, type RefundLineItem, type RefundLineItemResponse, type RefundType, type RegisterCustomerDto, type SearchSuggestions, type SelectShippingMethodDto, type SendInvoiceDto, type SetBillingAddressDto, type SetCheckoutCustomerDto, type SetShippingAddressDto, type SetShippingAddressResponse, type ShippingLine, type ShippingRate, type StoreInfo, type SyncJob, type UpdateAddressDto, type UpdateCartItemDto, type UpdateCouponDto, type UpdateCustomApiDto, type UpdateCustomerDto, type UpdateDraftDto, type UpdateInventoryDto, type UpdateOrderDto, type UpdateOrderShippingDto, type UpdateProductDto, type UpdateVariantDto, type UpdateVariantInventoryDto, type VariantInventoryResponse, type VariantPlatformOverlay, type VariantStatus, type WebhookEvent, type WebhookEventType, createWebhookHandler, isCouponApplicableToProduct, isWebhookEventType, parseWebhookEvent, verifyWebhook };
2386
+ export { type AddToCartDto, type AppliedDiscount, type ApplyCouponDto, type BulkInventoryResponse, type BulkSaveVariantsDto, type BulkSaveVariantsResponse, type BulkVariantInput, type Cart, type CartItem, type CartStatus, type CategorySuggestion, type Checkout, type CheckoutAddress, type CheckoutLineItem, type CheckoutStatus, type CompleteCheckoutResponse, type CompleteDraftDto, type ConnectorPlatform, type Coupon, type CouponCreateResponse, type CouponQueryParams, type CouponStatus, type CouponType, type CouponValidationWarning, type CreateAddressDto, type CreateCheckoutDto, type CreateCouponDto, type CreateCustomApiDto, type CreateCustomerDto, type CreateGuestOrderDto, type CreateOrderDto, type CreateProductDto, type CreateRefundDto, type CreateVariantDto, type CustomApiAuthType, type CustomApiConnectionStatus, type CustomApiCredentials, type CustomApiIntegration, type CustomApiSyncConfig, type CustomApiSyncDirection, type CustomApiTestResult, type Customer, type CustomerAddress, type CustomerAuthResponse, type CustomerProfile, type CustomerQueryParams, type DraftLineItem, type EditInventoryDto, type EmailVerificationResponse, type FulfillOrderDto, type GuestCheckoutStartResponse, type GuestOrderResponse, type InventoryInfo, type InventorySyncStatus, type LocalCart, type LocalCartItem, type MergeCartsDto, type OmniSyncApiError, OmniSyncClient, type OmniSyncClientOptions, OmniSyncError, type Order, type OrderAddress, type OrderCustomer, type OrderItem, type OrderQueryParams, type OrderStatus, type PaginatedResponse, type PlatformCouponCapabilities, type Product, type ProductAttributeInput, type ProductImage, type ProductQueryParams, type ProductSuggestion, type ProductVariant, type PublishProductResponse, type ReconcileInventoryResponse, type Refund, type RefundLineItem, type RefundLineItemResponse, type RefundType, type RegisterCustomerDto, type SearchSuggestions, type SelectShippingMethodDto, type SendInvoiceDto, type SetBillingAddressDto, type SetCheckoutCustomerDto, type SetShippingAddressDto, type SetShippingAddressResponse, type ShippingLine, type ShippingRate, type StoreInfo, type SyncJob, type UpdateAddressDto, type UpdateCartItemDto, type UpdateCouponDto, type UpdateCustomApiDto, type UpdateCustomerDto, type UpdateDraftDto, type UpdateInventoryDto, type UpdateOrderDto, type UpdateOrderShippingDto, type UpdateProductDto, type UpdateVariantDto, type UpdateVariantInventoryDto, type VariantInventoryResponse, type VariantPlatformOverlay, type VariantStatus, type WebhookEvent, type WebhookEventType, createWebhookHandler, isCouponApplicableToProduct, isWebhookEventType, parseWebhookEvent, verifyWebhook };
package/dist/index.d.ts CHANGED
@@ -498,6 +498,12 @@ interface CustomerAuthResponse {
498
498
  };
499
499
  token: string;
500
500
  expiresAt: string;
501
+ /** If true, customer needs to verify their email before proceeding */
502
+ requiresVerification?: boolean;
503
+ }
504
+ interface EmailVerificationResponse {
505
+ verified: boolean;
506
+ message: string;
501
507
  }
502
508
  interface RegisterCustomerDto {
503
509
  email: string;
@@ -1662,6 +1668,35 @@ declare class OmniSyncClient {
1662
1668
  forgotPassword(email: string): Promise<{
1663
1669
  message: string;
1664
1670
  }>;
1671
+ /**
1672
+ * Verify customer email with a verification code
1673
+ * Requires a customer token to be set via setCustomerToken()
1674
+ * Only available in vibe-coded mode
1675
+ *
1676
+ * @example
1677
+ * ```typescript
1678
+ * // After registration with requiresVerification: true
1679
+ * omni.setCustomerToken(auth.token);
1680
+ * const result = await omni.verifyEmail('123456');
1681
+ * console.log(result.verified); // true
1682
+ * ```
1683
+ */
1684
+ verifyEmail(code: string): Promise<EmailVerificationResponse>;
1685
+ /**
1686
+ * Resend verification email
1687
+ * Requires a customer token to be set via setCustomerToken()
1688
+ * Only available in vibe-coded mode
1689
+ * Rate limited to 3 requests per hour
1690
+ *
1691
+ * @example
1692
+ * ```typescript
1693
+ * omni.setCustomerToken(auth.token);
1694
+ * await omni.resendVerificationEmail();
1695
+ * ```
1696
+ */
1697
+ resendVerificationEmail(): Promise<{
1698
+ message: string;
1699
+ }>;
1665
1700
  /**
1666
1701
  * Get the current logged-in customer's profile
1667
1702
  * Requires a customer token to be set via setCustomerToken()
@@ -2163,7 +2198,7 @@ declare class OmniSyncClient {
2163
2198
  }): Promise<CustomerProfile>;
2164
2199
  /**
2165
2200
  * Get the current customer's orders (requires customerToken)
2166
- * Only available in storefront mode
2201
+ * Works in vibe-coded and storefront modes
2167
2202
  */
2168
2203
  getMyOrders(params?: {
2169
2204
  page?: number;
@@ -2348,4 +2383,4 @@ declare function isWebhookEventType(event: WebhookEvent, type: WebhookEventType)
2348
2383
  */
2349
2384
  declare function createWebhookHandler(handlers: Partial<Record<WebhookEventType, (event: WebhookEvent) => Promise<void>>>): (payload: unknown) => Promise<void>;
2350
2385
 
2351
- export { type AddToCartDto, type AppliedDiscount, type ApplyCouponDto, type BulkInventoryResponse, type BulkSaveVariantsDto, type BulkSaveVariantsResponse, type BulkVariantInput, type Cart, type CartItem, type CartStatus, type CategorySuggestion, type Checkout, type CheckoutAddress, type CheckoutLineItem, type CheckoutStatus, type CompleteCheckoutResponse, type CompleteDraftDto, type ConnectorPlatform, type Coupon, type CouponCreateResponse, type CouponQueryParams, type CouponStatus, type CouponType, type CouponValidationWarning, type CreateAddressDto, type CreateCheckoutDto, type CreateCouponDto, type CreateCustomApiDto, type CreateCustomerDto, type CreateGuestOrderDto, type CreateOrderDto, type CreateProductDto, type CreateRefundDto, type CreateVariantDto, type CustomApiAuthType, type CustomApiConnectionStatus, type CustomApiCredentials, type CustomApiIntegration, type CustomApiSyncConfig, type CustomApiSyncDirection, type CustomApiTestResult, type Customer, type CustomerAddress, type CustomerAuthResponse, type CustomerProfile, type CustomerQueryParams, type DraftLineItem, type EditInventoryDto, type FulfillOrderDto, type GuestCheckoutStartResponse, type GuestOrderResponse, type InventoryInfo, type InventorySyncStatus, type LocalCart, type LocalCartItem, type MergeCartsDto, type OmniSyncApiError, OmniSyncClient, type OmniSyncClientOptions, OmniSyncError, type Order, type OrderAddress, type OrderCustomer, type OrderItem, type OrderQueryParams, type OrderStatus, type PaginatedResponse, type PlatformCouponCapabilities, type Product, type ProductAttributeInput, type ProductImage, type ProductQueryParams, type ProductSuggestion, type ProductVariant, type PublishProductResponse, type ReconcileInventoryResponse, type Refund, type RefundLineItem, type RefundLineItemResponse, type RefundType, type RegisterCustomerDto, type SearchSuggestions, type SelectShippingMethodDto, type SendInvoiceDto, type SetBillingAddressDto, type SetCheckoutCustomerDto, type SetShippingAddressDto, type SetShippingAddressResponse, type ShippingLine, type ShippingRate, type StoreInfo, type SyncJob, type UpdateAddressDto, type UpdateCartItemDto, type UpdateCouponDto, type UpdateCustomApiDto, type UpdateCustomerDto, type UpdateDraftDto, type UpdateInventoryDto, type UpdateOrderDto, type UpdateOrderShippingDto, type UpdateProductDto, type UpdateVariantDto, type UpdateVariantInventoryDto, type VariantInventoryResponse, type VariantPlatformOverlay, type VariantStatus, type WebhookEvent, type WebhookEventType, createWebhookHandler, isCouponApplicableToProduct, isWebhookEventType, parseWebhookEvent, verifyWebhook };
2386
+ export { type AddToCartDto, type AppliedDiscount, type ApplyCouponDto, type BulkInventoryResponse, type BulkSaveVariantsDto, type BulkSaveVariantsResponse, type BulkVariantInput, type Cart, type CartItem, type CartStatus, type CategorySuggestion, type Checkout, type CheckoutAddress, type CheckoutLineItem, type CheckoutStatus, type CompleteCheckoutResponse, type CompleteDraftDto, type ConnectorPlatform, type Coupon, type CouponCreateResponse, type CouponQueryParams, type CouponStatus, type CouponType, type CouponValidationWarning, type CreateAddressDto, type CreateCheckoutDto, type CreateCouponDto, type CreateCustomApiDto, type CreateCustomerDto, type CreateGuestOrderDto, type CreateOrderDto, type CreateProductDto, type CreateRefundDto, type CreateVariantDto, type CustomApiAuthType, type CustomApiConnectionStatus, type CustomApiCredentials, type CustomApiIntegration, type CustomApiSyncConfig, type CustomApiSyncDirection, type CustomApiTestResult, type Customer, type CustomerAddress, type CustomerAuthResponse, type CustomerProfile, type CustomerQueryParams, type DraftLineItem, type EditInventoryDto, type EmailVerificationResponse, type FulfillOrderDto, type GuestCheckoutStartResponse, type GuestOrderResponse, type InventoryInfo, type InventorySyncStatus, type LocalCart, type LocalCartItem, type MergeCartsDto, type OmniSyncApiError, OmniSyncClient, type OmniSyncClientOptions, OmniSyncError, type Order, type OrderAddress, type OrderCustomer, type OrderItem, type OrderQueryParams, type OrderStatus, type PaginatedResponse, type PlatformCouponCapabilities, type Product, type ProductAttributeInput, type ProductImage, type ProductQueryParams, type ProductSuggestion, type ProductVariant, type PublishProductResponse, type ReconcileInventoryResponse, type Refund, type RefundLineItem, type RefundLineItemResponse, type RefundType, type RegisterCustomerDto, type SearchSuggestions, type SelectShippingMethodDto, type SendInvoiceDto, type SetBillingAddressDto, type SetCheckoutCustomerDto, type SetShippingAddressDto, type SetShippingAddressResponse, type ShippingLine, type ShippingRate, type StoreInfo, type SyncJob, type UpdateAddressDto, type UpdateCartItemDto, type UpdateCouponDto, type UpdateCustomApiDto, type UpdateCustomerDto, type UpdateDraftDto, type UpdateInventoryDto, type UpdateOrderDto, type UpdateOrderShippingDto, type UpdateProductDto, type UpdateVariantDto, type UpdateVariantInventoryDto, type VariantInventoryResponse, type VariantPlatformOverlay, type VariantStatus, type WebhookEvent, type WebhookEventType, createWebhookHandler, isCouponApplicableToProduct, isWebhookEventType, parseWebhookEvent, verifyWebhook };
package/dist/index.js CHANGED
@@ -1095,6 +1095,51 @@ var OmniSyncClient = class {
1095
1095
  email
1096
1096
  });
1097
1097
  }
1098
+ /**
1099
+ * Verify customer email with a verification code
1100
+ * Requires a customer token to be set via setCustomerToken()
1101
+ * Only available in vibe-coded mode
1102
+ *
1103
+ * @example
1104
+ * ```typescript
1105
+ * // After registration with requiresVerification: true
1106
+ * omni.setCustomerToken(auth.token);
1107
+ * const result = await omni.verifyEmail('123456');
1108
+ * console.log(result.verified); // true
1109
+ * ```
1110
+ */
1111
+ async verifyEmail(code) {
1112
+ if (!this.customerToken) {
1113
+ throw new OmniSyncError("Customer token is required. Call setCustomerToken() first.", 401);
1114
+ }
1115
+ if (this.isVibeCodedMode()) {
1116
+ return this.vibeCodedRequest("POST", "/customers/verify-email", {
1117
+ code
1118
+ });
1119
+ }
1120
+ throw new OmniSyncError("verifyEmail is only available in vibe-coded mode", 400);
1121
+ }
1122
+ /**
1123
+ * Resend verification email
1124
+ * Requires a customer token to be set via setCustomerToken()
1125
+ * Only available in vibe-coded mode
1126
+ * Rate limited to 3 requests per hour
1127
+ *
1128
+ * @example
1129
+ * ```typescript
1130
+ * omni.setCustomerToken(auth.token);
1131
+ * await omni.resendVerificationEmail();
1132
+ * ```
1133
+ */
1134
+ async resendVerificationEmail() {
1135
+ if (!this.customerToken) {
1136
+ throw new OmniSyncError("Customer token is required. Call setCustomerToken() first.", 401);
1137
+ }
1138
+ if (this.isVibeCodedMode()) {
1139
+ return this.vibeCodedRequest("POST", "/customers/resend-verification");
1140
+ }
1141
+ throw new OmniSyncError("resendVerificationEmail is only available in vibe-coded mode", 400);
1142
+ }
1098
1143
  /**
1099
1144
  * Get the current logged-in customer's profile
1100
1145
  * Requires a customer token to be set via setCustomerToken()
@@ -2015,24 +2060,33 @@ var OmniSyncClient = class {
2015
2060
  }
2016
2061
  /**
2017
2062
  * Get the current customer's orders (requires customerToken)
2018
- * Only available in storefront mode
2063
+ * Works in vibe-coded and storefront modes
2019
2064
  */
2020
2065
  async getMyOrders(params) {
2021
- if (!this.storeId) {
2022
- throw new OmniSyncError("getMyOrders is only available in storefront mode", 400);
2023
- }
2024
2066
  if (!this.customerToken) {
2025
2067
  throw new OmniSyncError("Customer token required. Call setCustomerToken() after login.", 401);
2026
2068
  }
2027
- return this.storefrontRequest(
2028
- "GET",
2029
- "/customers/me/orders",
2030
- void 0,
2031
- {
2032
- page: params?.page,
2033
- limit: params?.limit
2034
- }
2035
- );
2069
+ const queryParams = {
2070
+ page: params?.page,
2071
+ limit: params?.limit
2072
+ };
2073
+ if (this.isVibeCodedMode()) {
2074
+ return this.vibeCodedRequest(
2075
+ "GET",
2076
+ "/customers/me/orders",
2077
+ void 0,
2078
+ queryParams
2079
+ );
2080
+ }
2081
+ if (this.storeId && !this.apiKey) {
2082
+ return this.storefrontRequest(
2083
+ "GET",
2084
+ "/customers/me/orders",
2085
+ void 0,
2086
+ queryParams
2087
+ );
2088
+ }
2089
+ throw new OmniSyncError("getMyOrders is only available in vibe-coded or storefront mode", 400);
2036
2090
  }
2037
2091
  /**
2038
2092
  * Get the current customer's addresses (requires customerToken)
package/dist/index.mjs CHANGED
@@ -1070,6 +1070,51 @@ var OmniSyncClient = class {
1070
1070
  email
1071
1071
  });
1072
1072
  }
1073
+ /**
1074
+ * Verify customer email with a verification code
1075
+ * Requires a customer token to be set via setCustomerToken()
1076
+ * Only available in vibe-coded mode
1077
+ *
1078
+ * @example
1079
+ * ```typescript
1080
+ * // After registration with requiresVerification: true
1081
+ * omni.setCustomerToken(auth.token);
1082
+ * const result = await omni.verifyEmail('123456');
1083
+ * console.log(result.verified); // true
1084
+ * ```
1085
+ */
1086
+ async verifyEmail(code) {
1087
+ if (!this.customerToken) {
1088
+ throw new OmniSyncError("Customer token is required. Call setCustomerToken() first.", 401);
1089
+ }
1090
+ if (this.isVibeCodedMode()) {
1091
+ return this.vibeCodedRequest("POST", "/customers/verify-email", {
1092
+ code
1093
+ });
1094
+ }
1095
+ throw new OmniSyncError("verifyEmail is only available in vibe-coded mode", 400);
1096
+ }
1097
+ /**
1098
+ * Resend verification email
1099
+ * Requires a customer token to be set via setCustomerToken()
1100
+ * Only available in vibe-coded mode
1101
+ * Rate limited to 3 requests per hour
1102
+ *
1103
+ * @example
1104
+ * ```typescript
1105
+ * omni.setCustomerToken(auth.token);
1106
+ * await omni.resendVerificationEmail();
1107
+ * ```
1108
+ */
1109
+ async resendVerificationEmail() {
1110
+ if (!this.customerToken) {
1111
+ throw new OmniSyncError("Customer token is required. Call setCustomerToken() first.", 401);
1112
+ }
1113
+ if (this.isVibeCodedMode()) {
1114
+ return this.vibeCodedRequest("POST", "/customers/resend-verification");
1115
+ }
1116
+ throw new OmniSyncError("resendVerificationEmail is only available in vibe-coded mode", 400);
1117
+ }
1073
1118
  /**
1074
1119
  * Get the current logged-in customer's profile
1075
1120
  * Requires a customer token to be set via setCustomerToken()
@@ -1990,24 +2035,33 @@ var OmniSyncClient = class {
1990
2035
  }
1991
2036
  /**
1992
2037
  * Get the current customer's orders (requires customerToken)
1993
- * Only available in storefront mode
2038
+ * Works in vibe-coded and storefront modes
1994
2039
  */
1995
2040
  async getMyOrders(params) {
1996
- if (!this.storeId) {
1997
- throw new OmniSyncError("getMyOrders is only available in storefront mode", 400);
1998
- }
1999
2041
  if (!this.customerToken) {
2000
2042
  throw new OmniSyncError("Customer token required. Call setCustomerToken() after login.", 401);
2001
2043
  }
2002
- return this.storefrontRequest(
2003
- "GET",
2004
- "/customers/me/orders",
2005
- void 0,
2006
- {
2007
- page: params?.page,
2008
- limit: params?.limit
2009
- }
2010
- );
2044
+ const queryParams = {
2045
+ page: params?.page,
2046
+ limit: params?.limit
2047
+ };
2048
+ if (this.isVibeCodedMode()) {
2049
+ return this.vibeCodedRequest(
2050
+ "GET",
2051
+ "/customers/me/orders",
2052
+ void 0,
2053
+ queryParams
2054
+ );
2055
+ }
2056
+ if (this.storeId && !this.apiKey) {
2057
+ return this.storefrontRequest(
2058
+ "GET",
2059
+ "/customers/me/orders",
2060
+ void 0,
2061
+ queryParams
2062
+ );
2063
+ }
2064
+ throw new OmniSyncError("getMyOrders is only available in vibe-coded or storefront mode", 400);
2011
2065
  }
2012
2066
  /**
2013
2067
  * Get the current customer's addresses (requires customerToken)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omni-sync-sdk",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
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",
@@ -16,14 +16,6 @@
16
16
  "dist",
17
17
  "README.md"
18
18
  ],
19
- "scripts": {
20
- "build": "tsup src/index.ts --format cjs,esm --dts",
21
- "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
22
- "lint": "eslint \"src/**/*.ts\"",
23
- "test": "vitest run",
24
- "test:watch": "vitest",
25
- "prepublishOnly": "pnpm build"
26
- },
27
19
  "keywords": [
28
20
  "omni-sync",
29
21
  "e-commerce",
@@ -72,5 +64,12 @@
72
64
  "typescript": {
73
65
  "optional": true
74
66
  }
67
+ },
68
+ "scripts": {
69
+ "build": "tsup src/index.ts --format cjs,esm --dts",
70
+ "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
71
+ "lint": "eslint \"src/**/*.ts\"",
72
+ "test": "vitest run",
73
+ "test:watch": "vitest"
75
74
  }
76
- }
75
+ }