@letsbot/sdk 0.0.0-stage → 0.5.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/LICENSE +21 -0
- package/README.md +303 -2
- package/dist/index.cjs +1260 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +19910 -0
- package/dist/index.d.ts +19910 -0
- package/dist/index.js +1227 -0
- package/dist/index.js.map +1 -0
- package/openapi/erp-v1.yaml +3090 -0
- package/openapi/openapi.yaml +16516 -0
- package/package.json +66 -4
package/package.json
CHANGED
|
@@ -1,6 +1,68 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letsbot/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Official TypeScript/Node SDK for the LetsBot developer API (/api/v1).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=18"
|
|
9
|
+
},
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"main": "./dist/index.cjs",
|
|
12
|
+
"module": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./dist/index.d.cts",
|
|
22
|
+
"default": "./dist/index.cjs"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"./package.json": "./package.json"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"openapi",
|
|
30
|
+
"README.md",
|
|
31
|
+
"LICENSE"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsup",
|
|
35
|
+
"prepare": "tsup",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"test": "vitest run",
|
|
38
|
+
"spec:sync": "node scripts/sync-spec.mjs",
|
|
39
|
+
"spec:json": "node scripts/spec-to-json.mjs",
|
|
40
|
+
"generate": "openapi-typescript openapi/openapi.yaml -o src/generated/types.ts && openapi-typescript openapi/erp-v1.yaml -o src/generated/erp-types.ts && node scripts/gen-operations.mjs",
|
|
41
|
+
"check:drift": "node scripts/check-drift.mjs",
|
|
42
|
+
"prepublishOnly": "npm run build && npm test"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/node": "^20.14.0",
|
|
46
|
+
"openapi-typescript": "^7.13.0",
|
|
47
|
+
"tsup": "^8.5.1",
|
|
48
|
+
"typescript": "^5.6.0",
|
|
49
|
+
"vitest": "^3.2.0",
|
|
50
|
+
"yaml": "^2.6.0"
|
|
51
|
+
},
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://letsbot.net",
|
|
56
|
+
"keywords": [
|
|
57
|
+
"letsbot",
|
|
58
|
+
"whatsapp",
|
|
59
|
+
"crm",
|
|
60
|
+
"erp",
|
|
61
|
+
"sdk",
|
|
62
|
+
"api"
|
|
63
|
+
],
|
|
64
|
+
"author": {
|
|
65
|
+
"name": "LetsBot",
|
|
66
|
+
"email": "support@letsbot.net"
|
|
67
|
+
}
|
|
68
|
+
}
|