@commercengine/storefront-sdk 0.1.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.
- package/README.md +111 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.js +75 -0
- package/dist/lib/auth.d.ts +261 -0
- package/dist/lib/auth.js +679 -0
- package/dist/lib/cart.d.ts +114 -0
- package/dist/lib/cart.js +209 -0
- package/dist/lib/catalog.d.ts +130 -0
- package/dist/lib/catalog.js +176 -0
- package/dist/lib/client.d.ts +146 -0
- package/dist/lib/client.js +239 -0
- package/dist/types/storefront.d.ts +7588 -0
- package/package.json +44 -0
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@commercengine/storefront-sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "TypeScript SDK for the Storefront API",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"keywords": [
|
|
12
|
+
"commerce engine",
|
|
13
|
+
"storefront",
|
|
14
|
+
"api",
|
|
15
|
+
"sdk"
|
|
16
|
+
],
|
|
17
|
+
"author": "Commerce Engine",
|
|
18
|
+
"license": "All rights reserved",
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/jest": "^29.5.0",
|
|
21
|
+
"@types/node": "^18.15.11",
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "^5.57.1",
|
|
23
|
+
"@typescript-eslint/parser": "^5.57.1",
|
|
24
|
+
"eslint": "^8.38.0",
|
|
25
|
+
"jest": "^29.5.0",
|
|
26
|
+
"openapi-typescript": "^7.6.1",
|
|
27
|
+
"rimraf": "^5.0.0",
|
|
28
|
+
"ts-jest": "^29.1.0",
|
|
29
|
+
"typescript": "^5.7.3"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"openapi-fetch": "^0.13.4"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc && mkdir -p dist/types && cp src/types/storefront.d.ts dist/types/",
|
|
39
|
+
"generate-types": "openapi-typescript https://openapi.commercengine.io/ce-storefront.json --output src/types/storefront.d.ts",
|
|
40
|
+
"test": "jest",
|
|
41
|
+
"lint": "eslint . --ext .ts",
|
|
42
|
+
"clean": "rimraf dist"
|
|
43
|
+
}
|
|
44
|
+
}
|