omni-sync-sdk 0.7.1 → 0.7.2
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 +0 -0
- package/dist/index.d.mts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +4 -6
- package/dist/index.mjs +4 -6
- package/package.json +9 -10
package/LICENSE
ADDED
|
File without changes
|
package/dist/index.d.mts
CHANGED
|
@@ -2051,9 +2051,7 @@ declare class OmniSyncClient {
|
|
|
2051
2051
|
*/
|
|
2052
2052
|
completeGuestCheckout(checkoutId: string, options?: {
|
|
2053
2053
|
clearCartOnSuccess?: boolean;
|
|
2054
|
-
}): Promise<
|
|
2055
|
-
orderId: string;
|
|
2056
|
-
}>;
|
|
2054
|
+
}): Promise<GuestOrderResponse>;
|
|
2057
2055
|
/**
|
|
2058
2056
|
* Create order from custom data (not from local cart)
|
|
2059
2057
|
* Use this if you manage cart state yourself
|
package/dist/index.d.ts
CHANGED
|
@@ -2051,9 +2051,7 @@ declare class OmniSyncClient {
|
|
|
2051
2051
|
*/
|
|
2052
2052
|
completeGuestCheckout(checkoutId: string, options?: {
|
|
2053
2053
|
clearCartOnSuccess?: boolean;
|
|
2054
|
-
}): Promise<
|
|
2055
|
-
orderId: string;
|
|
2056
|
-
}>;
|
|
2054
|
+
}): Promise<GuestOrderResponse>;
|
|
2057
2055
|
/**
|
|
2058
2056
|
* Create order from custom data (not from local cart)
|
|
2059
2057
|
* Use this if you manage cart state yourself
|
package/dist/index.js
CHANGED
|
@@ -1747,12 +1747,10 @@ var OmniSyncClient = class {
|
|
|
1747
1747
|
});
|
|
1748
1748
|
return {
|
|
1749
1749
|
orderId: orderResult.orderId,
|
|
1750
|
-
orderNumber: orderResult.orderId,
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
// Actual total comes from server
|
|
1755
|
-
message: "Order created successfully (tracked)"
|
|
1750
|
+
orderNumber: orderResult.orderNumber || orderResult.orderId,
|
|
1751
|
+
status: orderResult.status || "pending",
|
|
1752
|
+
total: orderResult.total ?? 0,
|
|
1753
|
+
message: orderResult.message || "Order created successfully"
|
|
1756
1754
|
};
|
|
1757
1755
|
}
|
|
1758
1756
|
} catch {
|
package/dist/index.mjs
CHANGED
|
@@ -1722,12 +1722,10 @@ var OmniSyncClient = class {
|
|
|
1722
1722
|
});
|
|
1723
1723
|
return {
|
|
1724
1724
|
orderId: orderResult.orderId,
|
|
1725
|
-
orderNumber: orderResult.orderId,
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
// Actual total comes from server
|
|
1730
|
-
message: "Order created successfully (tracked)"
|
|
1725
|
+
orderNumber: orderResult.orderNumber || orderResult.orderId,
|
|
1726
|
+
status: orderResult.status || "pending",
|
|
1727
|
+
total: orderResult.total ?? 0,
|
|
1728
|
+
message: orderResult.message || "Order created successfully"
|
|
1731
1729
|
};
|
|
1732
1730
|
}
|
|
1733
1731
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omni-sync-sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
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
|
+
}
|