@classytic/arc 1.0.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.
Files changed (56) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +900 -0
  3. package/bin/arc.js +344 -0
  4. package/dist/adapters/index.d.ts +237 -0
  5. package/dist/adapters/index.js +668 -0
  6. package/dist/arcCorePlugin-DTPWXcZN.d.ts +273 -0
  7. package/dist/audit/index.d.ts +195 -0
  8. package/dist/audit/index.js +319 -0
  9. package/dist/auth/index.d.ts +47 -0
  10. package/dist/auth/index.js +174 -0
  11. package/dist/cli/commands/docs.d.ts +11 -0
  12. package/dist/cli/commands/docs.js +474 -0
  13. package/dist/cli/commands/introspect.d.ts +8 -0
  14. package/dist/cli/commands/introspect.js +338 -0
  15. package/dist/cli/index.d.ts +43 -0
  16. package/dist/cli/index.js +520 -0
  17. package/dist/createApp-pzUAkzbz.d.ts +77 -0
  18. package/dist/docs/index.d.ts +166 -0
  19. package/dist/docs/index.js +650 -0
  20. package/dist/errors-8WIxGS_6.d.ts +122 -0
  21. package/dist/events/index.d.ts +117 -0
  22. package/dist/events/index.js +89 -0
  23. package/dist/factory/index.d.ts +38 -0
  24. package/dist/factory/index.js +1664 -0
  25. package/dist/hooks/index.d.ts +4 -0
  26. package/dist/hooks/index.js +199 -0
  27. package/dist/idempotency/index.d.ts +323 -0
  28. package/dist/idempotency/index.js +500 -0
  29. package/dist/index-DkAW8BXh.d.ts +1302 -0
  30. package/dist/index.d.ts +331 -0
  31. package/dist/index.js +4734 -0
  32. package/dist/migrations/index.d.ts +185 -0
  33. package/dist/migrations/index.js +274 -0
  34. package/dist/org/index.d.ts +129 -0
  35. package/dist/org/index.js +220 -0
  36. package/dist/permissions/index.d.ts +144 -0
  37. package/dist/permissions/index.js +100 -0
  38. package/dist/plugins/index.d.ts +46 -0
  39. package/dist/plugins/index.js +1069 -0
  40. package/dist/policies/index.d.ts +398 -0
  41. package/dist/policies/index.js +196 -0
  42. package/dist/presets/index.d.ts +336 -0
  43. package/dist/presets/index.js +382 -0
  44. package/dist/presets/multiTenant.d.ts +39 -0
  45. package/dist/presets/multiTenant.js +112 -0
  46. package/dist/registry/index.d.ts +16 -0
  47. package/dist/registry/index.js +253 -0
  48. package/dist/testing/index.d.ts +618 -0
  49. package/dist/testing/index.js +48032 -0
  50. package/dist/types/index.d.ts +4 -0
  51. package/dist/types/index.js +8 -0
  52. package/dist/types-0IPhH_NR.d.ts +143 -0
  53. package/dist/types-B99TBmFV.d.ts +76 -0
  54. package/dist/utils/index.d.ts +655 -0
  55. package/dist/utils/index.js +905 -0
  56. package/package.json +227 -0
package/package.json ADDED
@@ -0,0 +1,227 @@
1
+ {
2
+ "name": "@classytic/arc",
3
+ "version": "1.0.0",
4
+ "description": "Resource-oriented backend framework for Fastify + MongoDB",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "default": "./dist/index.js"
10
+ },
11
+ "./permissions": {
12
+ "types": "./dist/permissions/index.d.ts",
13
+ "default": "./dist/permissions/index.js"
14
+ },
15
+ "./types": {
16
+ "types": "./dist/types/index.d.ts",
17
+ "default": "./dist/types/index.js"
18
+ },
19
+ "./adapters": {
20
+ "types": "./dist/adapters/index.d.ts",
21
+ "default": "./dist/adapters/index.js"
22
+ },
23
+ "./core": {
24
+ "types": "./dist/core/index.d.ts",
25
+ "default": "./dist/core/index.js"
26
+ },
27
+ "./presets": {
28
+ "types": "./dist/presets/index.d.ts",
29
+ "default": "./dist/presets/index.js"
30
+ },
31
+ "./presets/tenant": {
32
+ "types": "./dist/presets/multiTenant.d.ts",
33
+ "default": "./dist/presets/multiTenant.js"
34
+ },
35
+ "./auth": {
36
+ "types": "./dist/auth/index.d.ts",
37
+ "default": "./dist/auth/index.js"
38
+ },
39
+ "./org": {
40
+ "types": "./dist/org/index.d.ts",
41
+ "default": "./dist/org/index.js"
42
+ },
43
+ "./hooks": {
44
+ "types": "./dist/hooks/index.d.ts",
45
+ "default": "./dist/hooks/index.js"
46
+ },
47
+ "./registry": {
48
+ "types": "./dist/registry/index.d.ts",
49
+ "default": "./dist/registry/index.js"
50
+ },
51
+ "./utils": {
52
+ "types": "./dist/utils/index.d.ts",
53
+ "default": "./dist/utils/index.js"
54
+ },
55
+ "./cli": {
56
+ "types": "./dist/cli/index.d.ts",
57
+ "default": "./dist/cli/index.js"
58
+ },
59
+ "./plugins": {
60
+ "types": "./dist/plugins/index.d.ts",
61
+ "default": "./dist/plugins/index.js"
62
+ },
63
+ "./audit": {
64
+ "types": "./dist/audit/index.d.ts",
65
+ "default": "./dist/audit/index.js"
66
+ },
67
+ "./docs": {
68
+ "types": "./dist/docs/index.d.ts",
69
+ "default": "./dist/docs/index.js"
70
+ },
71
+ "./idempotency": {
72
+ "types": "./dist/idempotency/index.d.ts",
73
+ "default": "./dist/idempotency/index.js"
74
+ },
75
+ "./events": {
76
+ "types": "./dist/events/index.d.ts",
77
+ "default": "./dist/events/index.js"
78
+ },
79
+ "./testing": {
80
+ "types": "./dist/testing/index.d.ts",
81
+ "default": "./dist/testing/index.js"
82
+ },
83
+ "./policies": {
84
+ "types": "./dist/policies/index.d.ts",
85
+ "default": "./dist/policies/index.js"
86
+ },
87
+ "./factory": {
88
+ "types": "./dist/factory/index.d.ts",
89
+ "default": "./dist/factory/index.js"
90
+ },
91
+ "./migrations": {
92
+ "types": "./dist/migrations/index.d.ts",
93
+ "default": "./dist/migrations/index.js"
94
+ }
95
+ },
96
+ "main": "./dist/index.js",
97
+ "types": "./dist/index.d.ts",
98
+ "bin": {
99
+ "arc": "./bin/arc.js"
100
+ },
101
+ "sideEffects": false,
102
+ "files": [
103
+ "dist",
104
+ "bin"
105
+ ],
106
+ "scripts": {
107
+ "build": "tsup",
108
+ "dev": "tsup --watch",
109
+ "typecheck": "tsc --noEmit",
110
+ "test": "vitest run",
111
+ "test:watch": "vitest",
112
+ "test:ui": "vitest --ui",
113
+ "test:coverage": "vitest run --coverage",
114
+ "test:e2e": "vitest run tests/e2e",
115
+ "test:unit": "vitest run tests/core tests/hooks tests/utils tests/plugins",
116
+ "prepublishOnly": "npm run typecheck && npm test && npm run build"
117
+ },
118
+ "engines": {
119
+ "node": ">=20"
120
+ },
121
+ "peerDependencies": {
122
+ "@classytic/mongokit": "^3.0.0",
123
+ "@fastify/cors": "^11.0.0",
124
+ "@fastify/helmet": "^13.0.0",
125
+ "@fastify/multipart": "^9.0.0",
126
+ "@fastify/rate-limit": "^10.0.0",
127
+ "@fastify/sensible": "^6.0.0",
128
+ "@fastify/under-pressure": "^9.0.0",
129
+ "fastify": "^5.0.0",
130
+ "fastify-raw-body": "^5.0.0",
131
+ "mongoose": "^8.0.0 || ^9.0.0",
132
+ "pino-pretty": "^13.0.0"
133
+ },
134
+ "peerDependenciesMeta": {
135
+ "@fastify/compress": {
136
+ "optional": true
137
+ },
138
+ "@fastify/cors": {
139
+ "optional": true
140
+ },
141
+ "@fastify/helmet": {
142
+ "optional": true
143
+ },
144
+ "@fastify/rate-limit": {
145
+ "optional": true
146
+ },
147
+ "@fastify/sensible": {
148
+ "optional": true
149
+ },
150
+ "@fastify/under-pressure": {
151
+ "optional": true
152
+ },
153
+ "@fastify/multipart": {
154
+ "optional": true
155
+ },
156
+ "fastify-raw-body": {
157
+ "optional": true
158
+ },
159
+ "pino-pretty": {
160
+ "optional": true
161
+ },
162
+ "mongodb-memory-server": {
163
+ "optional": true
164
+ },
165
+ "@fastify/aws-lambda": {
166
+ "optional": true
167
+ },
168
+ "@opentelemetry/api": {
169
+ "optional": true
170
+ },
171
+ "@opentelemetry/sdk-node": {
172
+ "optional": true
173
+ },
174
+ "@opentelemetry/exporter-trace-otlp-http": {
175
+ "optional": true
176
+ },
177
+ "@opentelemetry/instrumentation-http": {
178
+ "optional": true
179
+ },
180
+ "@opentelemetry/instrumentation-mongodb": {
181
+ "optional": true
182
+ },
183
+ "@opentelemetry/auto-instrumentations-node": {
184
+ "optional": true
185
+ }
186
+ },
187
+ "dependencies": {
188
+ "fastify-plugin": "^5.0.1"
189
+ },
190
+ "devDependencies": {
191
+ "@classytic/mongokit": "^3.1.0",
192
+ "@fastify/cors": "^11.2.0",
193
+ "@fastify/helmet": "^13.0.2",
194
+ "@fastify/jwt": "^9.0.0",
195
+ "@fastify/multipart": "^9.4.0",
196
+ "@fastify/rate-limit": "^10.3.0",
197
+ "@fastify/sensible": "^6.0.4",
198
+ "@fastify/under-pressure": "^9.0.3",
199
+ "@types/jsonwebtoken": "^9.0.10",
200
+ "@types/node": "^22.10.0",
201
+ "fastify": "^5.7.1",
202
+ "fastify-raw-body": "^5.0.0",
203
+ "jsonwebtoken": "^9.0.3",
204
+ "mongodb-memory-server": "^11.0.1",
205
+ "tsup": "^8.3.5",
206
+ "typescript": "^5.7.2",
207
+ "vitest": "^3.0.0"
208
+ },
209
+ "keywords": [
210
+ "fastify",
211
+ "mongodb",
212
+ "mongoose",
213
+ "crud",
214
+ "rest",
215
+ "api",
216
+ "framework",
217
+ "resource",
218
+ "multi-tenant",
219
+ "typescript"
220
+ ],
221
+ "author": "Classytic",
222
+ "license": "MIT",
223
+ "repository": {
224
+ "type": "git",
225
+ "url": "https://github.com/classytic/arc.git"
226
+ }
227
+ }