@shotstack/schemas 1.5.2 → 1.5.4
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/dist/api.bundled.json +87 -20
- package/dist/schema.d.ts +49 -16
- package/dist/zod/zod.gen.cjs +1425 -858
- package/dist/zod/zod.gen.d.ts +11789 -10061
- package/dist/zod/zod.gen.js +1423 -856
- package/dist/zod/zod.gen.ts +448 -377
- package/package.json +2 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shotstack/schemas",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,11 +21,6 @@
|
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
23
|
"test": "tsc --noEmit --skipLibCheck",
|
|
24
|
-
"test:strict": "node --test tests/strict-mode.test.cjs",
|
|
25
|
-
"test:enums": "node --test tests/enum-validation.test.cjs",
|
|
26
|
-
"test:unions": "node --test tests/discriminated-unions.test.cjs",
|
|
27
|
-
"test:e2e": "node --test tests/e2e/",
|
|
28
|
-
"test:all": "node --test tests/",
|
|
29
24
|
"clean": "node -e \"fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true})\"",
|
|
30
25
|
"bundle": "swagger-cli bundle api.oas3.yaml -o dist/api.bundled.json -t json",
|
|
31
26
|
"generate:types": "openapi-typescript dist/api.bundled.json -o dist/schema.d.ts",
|
|
@@ -35,7 +30,7 @@
|
|
|
35
30
|
"compile:zod": "npm run compile:zod:cjs && npm run compile:zod:esm",
|
|
36
31
|
"fix:discriminator": "node scripts/fix-discriminator.cjs",
|
|
37
32
|
"copy:index": "node -e \"require('fs').writeFileSync('dist/index.d.ts','export type * from \\\"./schema\\\";');require('fs').writeFileSync('dist/index.js','// Type-only package\\nexport {};');\"",
|
|
38
|
-
"build": "npm run clean && node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && npm run bundle && npm run generate:types && npm run generate:zod && npm run fix:discriminator && npm run compile:zod && npm run
|
|
33
|
+
"build": "npm run clean && node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && npm run bundle && npm run generate:types && npm run generate:zod && npm run fix:discriminator && npm run compile:zod && npm run copy:index",
|
|
39
34
|
"build:docs": "cross-env ./build-docs.sh",
|
|
40
35
|
"build:sdks": "cross-env ./build-sdks.sh",
|
|
41
36
|
"start": "cross-env ./build-docs.sh && http-server build/docs/ -o -c-1",
|