@hello-bill/node 1.0.0 → 1.0.1

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/LICENSE +21 -0
  3. package/README.md +216 -0
  4. package/dist/express/index.d.cts +34 -0
  5. package/dist/express/index.d.ts +34 -0
  6. package/dist/express/index.js +1019 -0
  7. package/dist/express/index.js.map +1 -0
  8. package/dist/express/index.mjs +1016 -0
  9. package/dist/express/index.mjs.map +1 -0
  10. package/dist/hono/index.d.cts +37 -0
  11. package/dist/hono/index.d.ts +37 -0
  12. package/dist/hono/index.js +1036 -0
  13. package/dist/hono/index.js.map +1 -0
  14. package/dist/hono/index.mjs +1033 -0
  15. package/dist/hono/index.mjs.map +1 -0
  16. package/dist/index-BrfG82zs.d.cts +341 -0
  17. package/dist/index-EXetQn1f.d.ts +341 -0
  18. package/dist/index.d.cts +164 -0
  19. package/dist/index.d.ts +164 -0
  20. package/dist/index.js +1178 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/index.mjs +1164 -0
  23. package/dist/index.mjs.map +1 -0
  24. package/dist/koa/index.d.cts +42 -0
  25. package/dist/koa/index.d.ts +42 -0
  26. package/dist/koa/index.js +1042 -0
  27. package/dist/koa/index.js.map +1 -0
  28. package/dist/koa/index.mjs +1039 -0
  29. package/dist/koa/index.mjs.map +1 -0
  30. package/dist/next/index.d.cts +60 -0
  31. package/dist/next/index.d.ts +60 -0
  32. package/dist/next/index.js +1092 -0
  33. package/dist/next/index.js.map +1 -0
  34. package/dist/next/index.mjs +1090 -0
  35. package/dist/next/index.mjs.map +1 -0
  36. package/dist/types/index.d.cts +51 -0
  37. package/dist/types/index.d.ts +51 -0
  38. package/dist/types/index.js +12 -0
  39. package/dist/types/index.js.map +1 -0
  40. package/dist/types/index.mjs +9 -0
  41. package/dist/types/index.mjs.map +1 -0
  42. package/dist/webhook/index.d.cts +2 -0
  43. package/dist/webhook/index.d.ts +2 -0
  44. package/dist/webhook/index.js +342 -0
  45. package/dist/webhook/index.js.map +1 -0
  46. package/dist/webhook/index.mjs +336 -0
  47. package/dist/webhook/index.mjs.map +1 -0
  48. package/dist/webhooks-DPpqf7d2.d.cts +751 -0
  49. package/dist/webhooks-DPpqf7d2.d.ts +751 -0
  50. package/package.json +164 -7
package/package.json CHANGED
@@ -1,12 +1,169 @@
1
1
  {
2
2
  "name": "@hello-bill/node",
3
- "version": "1.0.0",
4
- "description": "",
5
- "license": "ISC",
6
- "author": "",
7
- "type": "commonjs",
8
- "main": "index.js",
3
+ "version": "1.0.1",
4
+ "description": "Server-side SDK for the HelloBill Partner API. Framework-agnostic core with an Express adapter; ships a webhook verifier and the spec-derived TypeScript types.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.mjs",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.mjs"
15
+ },
16
+ "require": {
17
+ "types": "./dist/index.d.cts",
18
+ "default": "./dist/index.js"
19
+ },
20
+ "development": "./src/index.ts"
21
+ },
22
+ "./express": {
23
+ "import": {
24
+ "types": "./dist/express/index.d.ts",
25
+ "default": "./dist/express/index.mjs"
26
+ },
27
+ "require": {
28
+ "types": "./dist/express/index.d.cts",
29
+ "default": "./dist/express/index.js"
30
+ },
31
+ "development": "./src/express/index.ts"
32
+ },
33
+ "./webhook": {
34
+ "import": {
35
+ "types": "./dist/webhook/index.d.ts",
36
+ "default": "./dist/webhook/index.mjs"
37
+ },
38
+ "require": {
39
+ "types": "./dist/webhook/index.d.cts",
40
+ "default": "./dist/webhook/index.js"
41
+ },
42
+ "development": "./src/webhook/index.ts"
43
+ },
44
+ "./types": {
45
+ "import": {
46
+ "types": "./dist/types/index.d.ts",
47
+ "default": "./dist/types/index.mjs"
48
+ },
49
+ "require": {
50
+ "types": "./dist/types/index.d.cts",
51
+ "default": "./dist/types/index.js"
52
+ },
53
+ "development": "./src/types/index.ts"
54
+ },
55
+ "./hono": {
56
+ "import": {
57
+ "types": "./dist/hono/index.d.ts",
58
+ "default": "./dist/hono/index.mjs"
59
+ },
60
+ "require": {
61
+ "types": "./dist/hono/index.d.cts",
62
+ "default": "./dist/hono/index.js"
63
+ },
64
+ "development": "./src/hono/index.ts"
65
+ },
66
+ "./koa": {
67
+ "import": {
68
+ "types": "./dist/koa/index.d.ts",
69
+ "default": "./dist/koa/index.mjs"
70
+ },
71
+ "require": {
72
+ "types": "./dist/koa/index.d.cts",
73
+ "default": "./dist/koa/index.js"
74
+ },
75
+ "development": "./src/koa/index.ts"
76
+ },
77
+ "./next": {
78
+ "import": {
79
+ "types": "./dist/next/index.d.ts",
80
+ "default": "./dist/next/index.mjs"
81
+ },
82
+ "require": {
83
+ "types": "./dist/next/index.d.cts",
84
+ "default": "./dist/next/index.js"
85
+ },
86
+ "development": "./src/next/index.ts"
87
+ },
88
+ "./package.json": "./package.json"
89
+ },
90
+ "files": [
91
+ "dist",
92
+ "README.md",
93
+ "CHANGELOG.md",
94
+ "LICENSE"
95
+ ],
96
+ "keywords": [
97
+ "hellobill",
98
+ "partner-api",
99
+ "sdk",
100
+ "express",
101
+ "webhook",
102
+ "onboarding",
103
+ "utilities"
104
+ ],
105
+ "repository": {
106
+ "type": "git",
107
+ "url": "git+https://github.com/the-bunch/bunch-apps.git",
108
+ "directory": "packages/hello-bill-node"
109
+ },
110
+ "bugs": {
111
+ "url": "https://github.com/the-bunch/bunch-apps/issues"
112
+ },
113
+ "homepage": "https://hellobill.app/integrations/sdk",
114
+ "engines": {
115
+ "node": ">=20"
116
+ },
9
117
  "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1"
118
+ "typecheck": "tsc --noEmit",
119
+ "test": "vitest run",
120
+ "test:watch": "vitest",
121
+ "test:coverage": "vitest run --coverage",
122
+ "build": "tsup",
123
+ "prepublishOnly": "bun run typecheck && bun run test && bun run build"
124
+ },
125
+ "peerDependencies": {
126
+ "express": "^4.18.0 || ^5.0.0",
127
+ "hono": "^4.0.0",
128
+ "koa": "^2.13.0 || ^3.0.0",
129
+ "@koa/router": "^12.0.0 || ^13.0.0",
130
+ "next": "^14.0.0 || ^15.0.0"
131
+ },
132
+ "peerDependenciesMeta": {
133
+ "express": {
134
+ "optional": true
135
+ },
136
+ "hono": {
137
+ "optional": true
138
+ },
139
+ "koa": {
140
+ "optional": true
141
+ },
142
+ "@koa/router": {
143
+ "optional": true
144
+ },
145
+ "next": {
146
+ "optional": true
147
+ }
148
+ },
149
+ "devDependencies": {
150
+ "@koa/bodyparser": "^6.0.0",
151
+ "@koa/router": "^13.0.0",
152
+ "@types/express": "^4.17.21",
153
+ "@types/koa": "^2.15.0",
154
+ "@types/koa__router": "^12.0.4",
155
+ "@types/node": "^25.0.0",
156
+ "@types/supertest": "^6.0.3",
157
+ "@vitest/coverage-v8": "^4.1.6",
158
+ "express": "^4.19.2",
159
+ "hono": "^4.0.0",
160
+ "koa": "^2.15.0",
161
+ "supertest": "^7.0.0",
162
+ "tsup": "^8.3.0",
163
+ "typescript": "^5.7.0",
164
+ "vitest": "^4.1.6"
165
+ },
166
+ "publishConfig": {
167
+ "access": "public"
11
168
  }
12
169
  }