watchfor 0.1.0 → 0.4.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/README.md +2 -1
- package/dist/cli.js +17 -1
- package/dist/client.d.ts +24 -1
- package/dist/client.js +30 -0
- package/dist/schema.d.ts +760 -219
- package/package.json +4 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "watchfor",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Official TypeScript SDK + CLI for WatchFor
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "Official TypeScript SDK + CLI for WatchFor \u2014 uptime & infrastructure monitoring (monitors, alert rules, incidents, maintenance windows) over the REST API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"watchfor",
|
|
7
7
|
"monitoring",
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsc -p tsconfig.json && cp src/schema.d.ts dist/schema.d.ts",
|
|
42
42
|
"prepublishOnly": "npm run build",
|
|
43
|
-
"regen-types": "openapi-typescript https://watchfor.io/openapi.json -o src/schema.d.ts"
|
|
43
|
+
"regen-types": "openapi-typescript ${SPEC:-https://watchfor.io/openapi.json} -o src/schema.d.ts",
|
|
44
|
+
"regen-types:local": "node scripts/dump-spec.mjs > /tmp/watchfor-openapi.json && openapi-typescript /tmp/watchfor-openapi.json -o src/schema.d.ts"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@types/node": "^22.0.0",
|