haystack-contracts 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.
- package/README.md +79 -88
- package/dist/index.d.mts +1371 -144
- package/dist/index.d.ts +1371 -144
- package/dist/index.js +107 -0
- package/dist/index.mjs +96 -0
- package/openapi.json +1380 -0
- package/package.json +51 -34
package/package.json
CHANGED
|
@@ -1,36 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
"name": "haystack-contracts",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Haystack public API — TypeScript types, path constants, and OpenAPI spec for frontend integrations",
|
|
5
|
+
"author": "Haystack Robotics",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/haystackrobotics/haystack-backend",
|
|
11
|
+
"directory": "packages_published/contracts"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"haystack",
|
|
15
|
+
"robotics",
|
|
16
|
+
"api-contracts",
|
|
17
|
+
"openapi",
|
|
18
|
+
"typescript"
|
|
19
|
+
],
|
|
20
|
+
"main": "./dist/index.js",
|
|
21
|
+
"module": "./dist/index.mjs",
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"import": "./dist/index.mjs",
|
|
27
|
+
"require": "./dist/index.js"
|
|
23
28
|
},
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
"./openapi.json": "./openapi.json"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"openapi.json",
|
|
34
|
+
"README.md"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"clean": "rm -rf dist build .turbo tsconfig.tsbuildinfo src/generated",
|
|
38
|
+
"export:openapi": "pnpm --filter @haystack/api export:openapi",
|
|
39
|
+
"generate": "ts-node --transpile-only scripts/generate-from-openapi.ts",
|
|
40
|
+
"build": "pnpm run generate && pnpm run clean:dist && tsup",
|
|
41
|
+
"check": "pnpm run export:openapi && pnpm run generate && node scripts/assert-contracts-sync.js",
|
|
42
|
+
"clean:dist": "rm -rf dist",
|
|
43
|
+
"prepublishOnly": "pnpm run build",
|
|
44
|
+
"typecheck": "tsc --noEmit"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@haystack/typescript-config": "workspace:*",
|
|
48
|
+
"openapi-typescript": "^7.8.0",
|
|
49
|
+
"ts-node": "catalog:",
|
|
50
|
+
"tsup": "catalog:",
|
|
51
|
+
"typescript": "catalog:"
|
|
52
|
+
}
|
|
53
|
+
}
|