@takeshape/schema 9.13.0 → 9.14.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/dist/api-version.d.ts +1 -1
- package/dist/api-version.d.ts.map +1 -1
- package/dist/auth-schemas.d.ts +1 -1
- package/dist/auth-schemas.d.ts.map +1 -1
- package/dist/content-schema-transform.d.ts +5 -5
- package/dist/content-schema-transform.d.ts.map +1 -1
- package/dist/get-is-leaf.d.ts +1 -1
- package/dist/get-is-leaf.d.ts.map +1 -1
- package/dist/interfaces.d.ts +2 -2
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/layers/layers.d.ts +3 -3
- package/dist/layers/layers.d.ts.map +1 -1
- package/dist/layers/visitor.d.ts +1 -1
- package/dist/layers/visitor.d.ts.map +1 -1
- package/dist/migration/types.d.ts +1 -1
- package/dist/migration/types.d.ts.map +1 -1
- package/dist/project-schema/index.d.ts +1 -1
- package/dist/project-schema/index.d.ts.map +1 -1
- package/dist/project-schema/latest.d.ts +55 -55
- package/dist/project-schema/latest.d.ts.map +1 -1
- package/dist/project-schema/v1.0.0.d.ts +9 -9
- package/dist/project-schema/v1.0.0.d.ts.map +1 -1
- package/dist/project-schema/v3.0.0.d.ts +20 -20
- package/dist/project-schema/v3.0.0.d.ts.map +1 -1
- package/dist/project-schema/v3.1.0.d.ts +23 -23
- package/dist/project-schema/v3.1.0.d.ts.map +1 -1
- package/dist/project-schema/v3.10.0.d.ts +49 -49
- package/dist/project-schema/v3.10.0.d.ts.map +1 -1
- package/dist/project-schema/v3.11.0.d.ts +48 -48
- package/dist/project-schema/v3.11.0.d.ts.map +1 -1
- package/dist/project-schema/v3.12.0.d.ts +48 -48
- package/dist/project-schema/v3.12.0.d.ts.map +1 -1
- package/dist/project-schema/v3.12.1.d.ts +49 -49
- package/dist/project-schema/v3.12.1.d.ts.map +1 -1
- package/dist/project-schema/v3.12.2.d.ts +49 -49
- package/dist/project-schema/v3.12.2.d.ts.map +1 -1
- package/dist/project-schema/v3.12.3.d.ts +50 -50
- package/dist/project-schema/v3.12.3.d.ts.map +1 -1
- package/dist/project-schema/v3.13.0.d.ts +50 -50
- package/dist/project-schema/v3.13.0.d.ts.map +1 -1
- package/dist/project-schema/v3.13.1.d.ts +49 -49
- package/dist/project-schema/v3.13.1.d.ts.map +1 -1
- package/dist/project-schema/v3.14.0.d.ts +50 -50
- package/dist/project-schema/v3.14.0.d.ts.map +1 -1
- package/dist/project-schema/v3.15.0.d.ts +52 -52
- package/dist/project-schema/v3.15.0.d.ts.map +1 -1
- package/dist/project-schema/v3.16.0.d.ts +52 -52
- package/dist/project-schema/v3.16.0.d.ts.map +1 -1
- package/dist/project-schema/v3.17.0.d.ts +52 -52
- package/dist/project-schema/v3.17.0.d.ts.map +1 -1
- package/dist/project-schema/v3.17.1.d.ts +52 -52
- package/dist/project-schema/v3.17.1.d.ts.map +1 -1
- package/dist/project-schema/v3.18.0.d.ts +52 -52
- package/dist/project-schema/v3.18.0.d.ts.map +1 -1
- package/dist/project-schema/v3.18.1.d.ts +52 -52
- package/dist/project-schema/v3.18.1.d.ts.map +1 -1
- package/dist/project-schema/v3.18.2.d.ts +52 -52
- package/dist/project-schema/v3.18.2.d.ts.map +1 -1
- package/dist/project-schema/v3.19.0.d.ts +52 -52
- package/dist/project-schema/v3.19.0.d.ts.map +1 -1
- package/dist/project-schema/v3.2.0.d.ts +24 -24
- package/dist/project-schema/v3.2.0.d.ts.map +1 -1
- package/dist/project-schema/v3.20.0.d.ts +52 -52
- package/dist/project-schema/v3.20.0.d.ts.map +1 -1
- package/dist/project-schema/v3.21.0.d.ts +52 -52
- package/dist/project-schema/v3.21.0.d.ts.map +1 -1
- package/dist/project-schema/v3.22.0.d.ts +52 -52
- package/dist/project-schema/v3.22.0.d.ts.map +1 -1
- package/dist/project-schema/v3.23.0.d.ts +54 -54
- package/dist/project-schema/v3.23.0.d.ts.map +1 -1
- package/dist/project-schema/v3.24.0.d.ts +54 -54
- package/dist/project-schema/v3.24.0.d.ts.map +1 -1
- package/dist/project-schema/v3.25.0.d.ts +54 -54
- package/dist/project-schema/v3.25.0.d.ts.map +1 -1
- package/dist/project-schema/v3.26.0.d.ts +55 -55
- package/dist/project-schema/v3.26.0.d.ts.map +1 -1
- package/dist/project-schema/v3.27.0.d.ts +55 -55
- package/dist/project-schema/v3.27.0.d.ts.map +1 -1
- package/dist/project-schema/v3.28.0.d.ts +55 -55
- package/dist/project-schema/v3.28.0.d.ts.map +1 -1
- package/dist/project-schema/v3.29.0.d.ts +55 -55
- package/dist/project-schema/v3.29.0.d.ts.map +1 -1
- package/dist/project-schema/v3.3.0.d.ts +24 -24
- package/dist/project-schema/v3.3.0.d.ts.map +1 -1
- package/dist/project-schema/v3.30.0.d.ts +55 -55
- package/dist/project-schema/v3.30.0.d.ts.map +1 -1
- package/dist/project-schema/v3.4.0.d.ts +24 -24
- package/dist/project-schema/v3.4.0.d.ts.map +1 -1
- package/dist/project-schema/v3.5.0.d.ts +27 -27
- package/dist/project-schema/v3.5.0.d.ts.map +1 -1
- package/dist/project-schema/v3.5.1.d.ts +27 -27
- package/dist/project-schema/v3.5.1.d.ts.map +1 -1
- package/dist/project-schema/v3.6.0.d.ts +27 -27
- package/dist/project-schema/v3.6.0.d.ts.map +1 -1
- package/dist/project-schema/v3.7.0.d.ts +30 -30
- package/dist/project-schema/v3.7.0.d.ts.map +1 -1
- package/dist/project-schema/v3.8.0.d.ts +30 -30
- package/dist/project-schema/v3.8.0.d.ts.map +1 -1
- package/dist/project-schema/v3.9.0.d.ts +41 -41
- package/dist/project-schema/v3.9.0.d.ts.map +1 -1
- package/dist/project-schema/v4.0.0.d.ts +49 -49
- package/dist/project-schema/v4.0.0.d.ts.map +1 -1
- package/dist/refs.d.ts +3 -3
- package/dist/refs.d.ts.map +1 -1
- package/dist/schema-transform.d.ts +1 -1
- package/dist/schema-transform.d.ts.map +1 -1
- package/dist/schema-util.d.ts +5 -5
- package/dist/schema-util.d.ts.map +1 -1
- package/dist/services.d.ts +4 -4
- package/dist/services.d.ts.map +1 -1
- package/dist/template-shapes/types.d.ts +1 -1
- package/dist/template-shapes/types.d.ts.map +1 -1
- package/dist/template-shapes/where.d.ts +2 -2
- package/dist/template-shapes/where.d.ts.map +1 -1
- package/dist/types/types.d.ts +29 -29
- package/dist/types/types.d.ts.map +1 -1
- package/dist/unions.d.ts +1 -1
- package/dist/unions.d.ts.map +1 -1
- package/dist/util/api-indexing.d.ts +1 -1
- package/dist/util/api-indexing.d.ts.map +1 -1
- package/dist/util/detect-cycles.d.ts +1 -1
- package/dist/util/detect-cycles.d.ts.map +1 -1
- package/dist/validate.d.ts +2 -2
- package/dist/validate.d.ts.map +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.d.ts.map +1 -1
- package/package.json +11 -8
package/dist/workflows.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface StepContext {
|
|
|
8
8
|
export declare function statusFallback(workflow: Workflow, enabled: boolean): WorkflowStep;
|
|
9
9
|
export declare function findWorkflowStep(workflow: Workflow, keyOrName: string): StepContext | undefined;
|
|
10
10
|
export declare function getStatusField(workflows: WorkflowMap, shape: Shape): PropertySchema;
|
|
11
|
-
export
|
|
11
|
+
export type WorkflowComparisonOperatorKey = 'lt' | 'lte' | 'gte' | 'gt' | 'eq' | 'in';
|
|
12
12
|
export declare function getStepRange(steps: WorkflowStep[], index: number, op: WorkflowComparisonOperatorKey): WorkflowStep[];
|
|
13
13
|
export declare function getWorkflowStepKeys(workflow: Workflow, stepKey: string, op: WorkflowComparisonOperatorKey): string[];
|
|
14
14
|
export declare function getLiveStepKeys(workflow: Workflow): string[];
|
package/dist/workflows.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EA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AAM,MAAM,6BAA6B,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtF,wBAAgB,YAAY,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,6BAA6B,GAAG,YAAY,EAAE,CASpH;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,6BAA6B,GAAG,MAAM,EAAE,CAQpH;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,EAAE,CAE5D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.14.0",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"p-reduce": "^2.1.0",
|
|
28
28
|
"semver": "^7.3.2",
|
|
29
29
|
"tiny-invariant": "^1.2.0",
|
|
30
|
-
"@takeshape/errors": "9.
|
|
31
|
-
"@takeshape/util": "9.
|
|
32
|
-
"@takeshape/json-schema": "9.
|
|
30
|
+
"@takeshape/errors": "9.14.0",
|
|
31
|
+
"@takeshape/util": "9.14.0",
|
|
32
|
+
"@takeshape/json-schema": "9.14.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@takeshape/json-schema-to-typescript": "^11.0.0",
|
|
@@ -44,27 +44,30 @@
|
|
|
44
44
|
"glob": "^7.1.6",
|
|
45
45
|
"meow": "^9.0.0",
|
|
46
46
|
"p-map": "^5.0.0",
|
|
47
|
-
"shortid": "^2.2.15"
|
|
47
|
+
"shortid": "^2.2.15",
|
|
48
|
+
"@takeshape/typescript-jest-junit-reporter": "9.14.0"
|
|
48
49
|
},
|
|
49
50
|
"engines": {
|
|
50
51
|
"node": ">=16"
|
|
51
52
|
},
|
|
52
53
|
"scripts": {
|
|
53
|
-
"build": "pnpm build:
|
|
54
|
+
"build": " pnpm build:js && pnpm build:es && pnpm build:types && pnpm build:json && pnpm build:copy",
|
|
55
|
+
"build:ci": "pnpm build:js && pnpm build:es && pnpm build:types:ci && pnpm build:json && pnpm build:copy",
|
|
54
56
|
"build:copy": "cp -rf build/src/* dist/",
|
|
55
57
|
"build:es": "cross-env BABEL_MODULES=es babel src --out-dir es --extensions \".js,.ts\" --ignore '**/__tests__'",
|
|
56
58
|
"build:js": "cross-env BABEL_MODULES=commonjs babel src --out-dir dist --extensions \".js,.ts\" --ignore '**/__tests__'",
|
|
57
59
|
"build:json": "cp -r src/schemas es && cp -r src/schemas dist",
|
|
58
60
|
"build:types": "tsc --emitDeclarationOnly --project tsconfig.build.json",
|
|
61
|
+
"build:types:ci": "mkdir -p \"${GITHUB_WORKSPACE}/typecheck-results/${npm_package_name#*\\/}\" && tsc --emitDeclarationOnly --project tsconfig.build.json --pretty false | typescript-jest-junit-reporter | tee \"${GITHUB_WORKSPACE}/typecheck-results/${npm_package_name#*\\/}/typescript-results.xml\"",
|
|
59
62
|
"clean": "rimraf build dist es *.tsbuildinfo",
|
|
60
63
|
"clean:test": "rimraf .esdata-test && rimraf .dynamo-test",
|
|
61
64
|
"json2ts": "node scripts/json-schema-to-typescript.mjs",
|
|
62
65
|
"lint": "eslint . --ext .js,.ts",
|
|
63
|
-
"lint:
|
|
66
|
+
"lint:ci": "pnpm lint --quiet --format json -o \"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}/eslint-results.json\"",
|
|
64
67
|
"publish-json-schema": "node ./scripts/publish-json-schema.mjs",
|
|
65
68
|
"test": "jest",
|
|
66
69
|
"test-changed": "pnpm run test --changedSince=master",
|
|
67
|
-
"test:ci": "JEST_JUNIT_OUTPUT_DIR=\"${
|
|
70
|
+
"test:ci": "JEST_JUNIT_OUTPUT_DIR=\"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}\" JEST_JUNIT_OUTPUT_NAME=\"jest-results.xml\" jest --silent --ci --coverageDirectory=\"${GITHUB_WORKSPACE}/coverage/${npm_package_name#*\\/}\" --reporters=default --reporters=jest-junit --maxWorkers=4",
|
|
68
71
|
"test:migrate-examples": "jest src/__tests__/_examples.test.ts --updateSnapshot",
|
|
69
72
|
"todo": "leasot 'src/**/*.{js,jsx,ts,tsx}'",
|
|
70
73
|
"typecheck": "tsc --noEmit"
|