@forgecart/sdk 0.1.0 → 1.2.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.
@@ -0,0 +1 @@
1
+ export {};
package/dist/shop.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @forgecart/sdk - Shop API
3
+ *
4
+ * Shop namespace and types
5
+ */
6
+ export { ShopNamespace } from './shop-namespace.js';
7
+ export type { SDKConfig as ShopSDKConfig } from './shop-namespace.js';
8
+ export * from './shop-types.js';
package/dist/shop.js ADDED
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @forgecart/sdk - Shop API
3
+ *
4
+ * Shop namespace and types
5
+ */
6
+ export { ShopNamespace } from './shop-namespace.js';
7
+ export * from './shop-types.js';
package/package.json CHANGED
@@ -1,61 +1,52 @@
1
1
  {
2
2
  "name": "@forgecart/sdk",
3
- "version": "0.1.0",
4
- "description": "TypeScript SDK for ForgeCart GraphQL API",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
3
+ "version": "1.2.0",
4
+ "description": "TypeScript SDK for ForgeCart API - Auto-generated GraphQL client",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
8
9
  "exports": {
9
10
  ".": {
10
- "import": "./dist/index.mjs",
11
- "require": "./dist/index.js",
11
+ "import": "./dist/index.js",
12
12
  "types": "./dist/index.d.ts"
13
+ },
14
+ "./admin": {
15
+ "import": "./dist/admin.js",
16
+ "types": "./dist/admin.d.ts"
17
+ },
18
+ "./shop": {
19
+ "import": "./dist/shop.js",
20
+ "types": "./dist/shop.d.ts"
13
21
  }
14
22
  },
15
23
  "files": [
16
24
  "dist",
17
- "src"
25
+ "src",
26
+ "README.md"
27
+ ],
28
+ "keywords": [
29
+ "forgecart",
30
+ "sdk",
31
+ "graphql",
32
+ "ecommerce",
33
+ "api-client"
18
34
  ],
19
35
  "dependencies": {
20
36
  "graphql": "^16.8.1",
21
37
  "graphql-request": "^6.1.0",
22
- "graphql-tag": "^2.12.6",
23
- "graphql-ws": "^6.0.6"
24
- },
25
- "optionalDependencies": {
26
- "ws": "^8.18.0"
38
+ "graphql-ws": "^5.14.3",
39
+ "ws": "^8.16.0"
27
40
  },
28
41
  "devDependencies": {
29
- "@types/node": "^20.11.5",
30
- "@types/jest": "^29.5.11",
31
- "jest": "^29.7.0",
32
- "ts-jest": "^29.1.2",
33
- "tsup": "^8.0.1",
42
+ "@types/node": "^20.10.0",
43
+ "@types/ws": "^8.5.10",
34
44
  "typescript": "^5.3.3"
35
45
  },
36
- "publishConfig": {
37
- "access": "public",
38
- "registry": "https://registry.npmjs.org/"
46
+ "peerDependencies": {
47
+ "graphql": "^16.0.0"
39
48
  },
40
- "repository": {
41
- "type": "git",
42
- "url": "https://github.com/forgecart/sdk"
43
- },
44
- "keywords": [
45
- "forgecart",
46
- "graphql",
47
- "sdk",
48
- "typescript",
49
- "ecommerce",
50
- "api"
51
- ],
52
- "author": "ForgeCart",
53
- "license": "MIT",
54
49
  "scripts": {
55
- "build": "tsup",
56
- "dev": "tsup --watch",
57
- "test": "jest",
58
- "typecheck": "tsc --noEmit",
59
- "lint": "eslint src --ext .ts,.tsx"
50
+ "build": "tsc"
60
51
  }
61
52
  }