@takeshape/schema 11.45.5 → 11.46.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/cjs/src/agents.js +6 -6
- package/dist/cjs/src/api-version.js +1 -1
- package/dist/cjs/src/content-schema-transform.js +12 -12
- package/dist/cjs/src/create-input-schema.js +1 -1
- package/dist/cjs/src/enum.js +1 -1
- package/dist/cjs/src/flatten-templates.js +4 -4
- package/dist/cjs/src/get-is-leaf.js +1 -1
- package/dist/cjs/src/interfaces.js +11 -9
- package/dist/cjs/src/layers/layers.js +11 -5
- package/dist/cjs/src/layers/refs.js +3 -3
- package/dist/cjs/src/layers/type-utils.js +1 -1
- package/dist/cjs/src/migration/index.js +3 -1
- package/dist/cjs/src/migration/to/v3.0.0.js +20 -8
- package/dist/cjs/src/migration/to/v3.1.0.js +6 -4
- package/dist/cjs/src/migration/to/v3.10.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.13.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.17.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.18.0.js +4 -4
- package/dist/cjs/src/migration/to/v3.18.1.js +1 -1
- package/dist/cjs/src/migration/to/v3.18.2.js +1 -1
- package/dist/cjs/src/migration/to/v3.20.0.js +5 -2
- package/dist/cjs/src/migration/to/v3.22.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.31.0.js +2 -2
- package/dist/cjs/src/migration/to/v3.32.0.js +3 -1
- package/dist/cjs/src/migration/to/v3.34.0.js +6 -9
- package/dist/cjs/src/migration/to/v3.36.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.39.0.js +8 -8
- package/dist/cjs/src/migration/to/v3.40.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.46.0.js +1 -1
- package/dist/cjs/src/migration/to/v3.51.0.js +12 -0
- package/dist/cjs/src/migration/to/v3.9.0.js +3 -3
- package/dist/cjs/src/models/project-schema.js +4 -4
- package/dist/cjs/src/models/shape.js +2 -2
- package/dist/cjs/src/project-schema/index.js +4 -2
- package/dist/cjs/src/project-schema/migrate.js +3 -1
- package/dist/cjs/src/project-schema/v3.51.0.js +8 -0
- package/dist/cjs/src/refs.js +28 -18
- package/dist/cjs/src/relationships.js +25 -20
- package/dist/cjs/src/runtime-schema.js +16 -9
- package/dist/cjs/src/schema-transform.js +3 -3
- package/dist/cjs/src/schema-util.js +38 -30
- package/dist/cjs/src/schemas/auth-schemas.json +18 -78
- package/dist/cjs/src/schemas/index.js +18 -16
- package/dist/cjs/src/schemas/project-schema/experimental.json +7 -20
- package/dist/cjs/src/schemas/project-schema/latest.json +166 -566
- package/dist/cjs/src/schemas/project-schema/meta-schema-v1.0.0.json +3 -17
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.0.0.json +4 -4
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.1.0.json +4 -4
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.2.0.json +5 -5
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.3.0.json +5 -5
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.4.0.json +11 -43
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.5.0.json +7 -7
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.5.1.json +8 -11
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.6.0.json +8 -11
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.7.0.json +11 -9
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.8.0.json +11 -9
- package/dist/cjs/src/schemas/project-schema/meta-schema-v3.9.0.json +24 -22
- package/dist/cjs/src/schemas/project-schema/v1.0.0.json +3 -3
- package/dist/cjs/src/schemas/project-schema/v3.0.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.1.0.json +2 -2
- package/dist/cjs/src/schemas/project-schema/v3.10.0.json +32 -30
- package/dist/cjs/src/schemas/project-schema/v3.11.0.json +32 -30
- package/dist/cjs/src/schemas/project-schema/v3.12.0.json +33 -36
- package/dist/cjs/src/schemas/project-schema/v3.12.1.json +33 -36
- package/dist/cjs/src/schemas/project-schema/v3.12.2.json +2122 -2125
- package/dist/cjs/src/schemas/project-schema/v3.12.3.json +2175 -2178
- package/dist/cjs/src/schemas/project-schema/v3.13.0.json +32 -30
- package/dist/cjs/src/schemas/project-schema/v3.14.0.json +32 -30
- package/dist/cjs/src/schemas/project-schema/v3.15.0.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.16.0.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.17.0.json +47 -39
- package/dist/cjs/src/schemas/project-schema/v3.17.1.json +2204 -2196
- package/dist/cjs/src/schemas/project-schema/v3.18.0.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.18.1.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.18.2.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.19.0.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.2.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.20.0.json +40 -38
- package/dist/cjs/src/schemas/project-schema/v3.21.0.json +41 -39
- package/dist/cjs/src/schemas/project-schema/v3.22.0.json +41 -39
- package/dist/cjs/src/schemas/project-schema/v3.23.0.json +43 -43
- package/dist/cjs/src/schemas/project-schema/v3.24.0.json +105 -458
- package/dist/cjs/src/schemas/project-schema/v3.25.0.json +105 -458
- package/dist/cjs/src/schemas/project-schema/v3.26.0.json +107 -466
- package/dist/cjs/src/schemas/project-schema/v3.27.0.json +107 -466
- package/dist/cjs/src/schemas/project-schema/v3.28.0.json +112 -471
- package/dist/cjs/src/schemas/project-schema/v3.29.0.json +112 -471
- package/dist/cjs/src/schemas/project-schema/v3.3.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.30.0.json +112 -472
- package/dist/cjs/src/schemas/project-schema/v3.31.0.json +112 -486
- package/dist/cjs/src/schemas/project-schema/v3.32.0.json +113 -488
- package/dist/cjs/src/schemas/project-schema/v3.33.0.json +113 -488
- package/dist/cjs/src/schemas/project-schema/v3.34.0.json +113 -488
- package/dist/cjs/src/schemas/project-schema/v3.35.0.json +114 -491
- package/dist/cjs/src/schemas/project-schema/v3.36.0.json +114 -491
- package/dist/cjs/src/schemas/project-schema/v3.37.0.json +118 -511
- package/dist/cjs/src/schemas/project-schema/v3.38.0.json +118 -511
- package/dist/cjs/src/schemas/project-schema/v3.39.0.json +118 -511
- package/dist/cjs/src/schemas/project-schema/v3.4.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.40.0.json +118 -512
- package/dist/cjs/src/schemas/project-schema/v3.41.0.json +118 -512
- package/dist/cjs/src/schemas/project-schema/v3.42.0.json +118 -512
- package/dist/cjs/src/schemas/project-schema/v3.43.0.json +118 -512
- package/dist/cjs/src/schemas/project-schema/v3.44.0.json +125 -540
- package/dist/cjs/src/schemas/project-schema/v3.45.0.json +128 -554
- package/dist/cjs/src/schemas/project-schema/v3.46.0.json +129 -560
- package/dist/cjs/src/schemas/project-schema/v3.47.0.json +131 -568
- package/dist/cjs/src/schemas/project-schema/v3.48.0.json +132 -572
- package/dist/cjs/src/schemas/project-schema/v3.49.0.json +132 -558
- package/dist/cjs/src/schemas/project-schema/v3.5.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.5.1.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.50.0.json +165 -565
- package/dist/cjs/src/schemas/project-schema/v3.51.0.json +3320 -0
- package/dist/cjs/src/schemas/project-schema/v3.6.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.7.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.8.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v3.9.0.json +1 -1
- package/dist/cjs/src/schemas/project-schema/v4.0.0.json +31 -29
- package/dist/cjs/src/schemas/project-schema.json +3 -0
- package/dist/cjs/src/schemas/user-schema.json +2 -9
- package/dist/cjs/src/service-dependencies.js +15 -9
- package/dist/cjs/src/services/services.js +12 -11
- package/dist/cjs/src/services/util.js +4 -4
- package/dist/cjs/src/template-shapes/templates.js +18 -12
- package/dist/cjs/src/template-shapes/where.js +23 -14
- package/dist/cjs/src/types/utils.js +3 -3
- package/dist/cjs/src/unions.js +6 -8
- package/dist/cjs/src/util/api-indexing.js +4 -4
- package/dist/cjs/src/util/detect-cycles.js +2 -2
- package/dist/cjs/src/util/find-shape-at-path.js +1 -1
- package/dist/cjs/src/util/form-config.js +0 -1
- package/dist/cjs/src/util/get-conflicting-properties.js +1 -1
- package/dist/cjs/src/util/merge.js +22 -13
- package/dist/cjs/src/util/patch-schema.js +2 -2
- package/dist/cjs/src/util/shapes.js +2 -2
- package/dist/cjs/src/validate.js +64 -47
- package/dist/cjs/src/workflows.js +4 -4
- package/dist/esm/src/agents.js +6 -6
- package/dist/esm/src/api-version.js +1 -1
- package/dist/esm/src/content-schema-transform.js +12 -12
- package/dist/esm/src/create-input-schema.js +1 -1
- package/dist/esm/src/enum.js +1 -1
- package/dist/esm/src/flatten-templates.js +4 -4
- package/dist/esm/src/get-is-leaf.js +1 -1
- package/dist/esm/src/interfaces.js +12 -10
- package/dist/esm/src/layers/layers.js +12 -6
- package/dist/esm/src/layers/refs.js +3 -3
- package/dist/esm/src/layers/type-utils.js +1 -1
- package/dist/esm/src/migration/index.js +3 -1
- package/dist/esm/src/migration/to/v3.0.0.js +20 -8
- package/dist/esm/src/migration/to/v3.1.0.js +6 -4
- package/dist/esm/src/migration/to/v3.10.0.js +1 -1
- package/dist/esm/src/migration/to/v3.13.0.js +1 -1
- package/dist/esm/src/migration/to/v3.17.0.js +1 -1
- package/dist/esm/src/migration/to/v3.18.0.js +4 -4
- package/dist/esm/src/migration/to/v3.18.1.js +1 -1
- package/dist/esm/src/migration/to/v3.18.2.js +1 -1
- package/dist/esm/src/migration/to/v3.20.0.js +5 -2
- package/dist/esm/src/migration/to/v3.22.0.js +1 -1
- package/dist/esm/src/migration/to/v3.31.0.js +2 -2
- package/dist/esm/src/migration/to/v3.32.0.js +3 -1
- package/dist/esm/src/migration/to/v3.34.0.js +6 -9
- package/dist/esm/src/migration/to/v3.36.0.js +1 -1
- package/dist/esm/src/migration/to/v3.39.0.js +8 -8
- package/dist/esm/src/migration/to/v3.40.0.js +1 -1
- package/dist/esm/src/migration/to/v3.46.0.js +1 -1
- package/dist/esm/src/migration/to/v3.51.0.js +10 -0
- package/dist/esm/src/migration/to/v3.9.0.js +3 -3
- package/dist/esm/src/mocks.js +1 -1
- package/dist/esm/src/models/project-schema.js +4 -4
- package/dist/esm/src/models/shape.js +2 -2
- package/dist/esm/src/project-schema/index.js +3 -1
- package/dist/esm/src/project-schema/migrate.js +4 -2
- package/dist/esm/src/project-schema/v3.51.0.js +7 -0
- package/dist/esm/src/refs.js +29 -19
- package/dist/esm/src/relationships.js +26 -21
- package/dist/esm/src/runtime-schema.js +16 -9
- package/dist/esm/src/schema-transform.js +3 -3
- package/dist/esm/src/schema-util.js +40 -32
- package/dist/esm/src/schemas/auth-schemas.json +18 -78
- package/dist/esm/src/schemas/index.js +15 -13
- package/dist/esm/src/schemas/project-schema/experimental.json +7 -20
- package/dist/esm/src/schemas/project-schema/latest.json +166 -566
- package/dist/esm/src/schemas/project-schema/meta-schema-v1.0.0.json +3 -17
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.0.0.json +4 -4
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.1.0.json +4 -4
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.2.0.json +5 -5
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.3.0.json +5 -5
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.4.0.json +11 -43
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.5.0.json +7 -7
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.5.1.json +8 -11
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.6.0.json +8 -11
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.7.0.json +11 -9
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.8.0.json +11 -9
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.9.0.json +24 -22
- package/dist/esm/src/schemas/project-schema/v1.0.0.json +3 -3
- package/dist/esm/src/schemas/project-schema/v3.0.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.1.0.json +2 -2
- package/dist/esm/src/schemas/project-schema/v3.10.0.json +32 -30
- package/dist/esm/src/schemas/project-schema/v3.11.0.json +32 -30
- package/dist/esm/src/schemas/project-schema/v3.12.0.json +33 -36
- package/dist/esm/src/schemas/project-schema/v3.12.1.json +33 -36
- package/dist/esm/src/schemas/project-schema/v3.12.2.json +2122 -2125
- package/dist/esm/src/schemas/project-schema/v3.12.3.json +2175 -2178
- package/dist/esm/src/schemas/project-schema/v3.13.0.json +32 -30
- package/dist/esm/src/schemas/project-schema/v3.14.0.json +32 -30
- package/dist/esm/src/schemas/project-schema/v3.15.0.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.16.0.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.17.0.json +47 -39
- package/dist/esm/src/schemas/project-schema/v3.17.1.json +2204 -2196
- package/dist/esm/src/schemas/project-schema/v3.18.0.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.18.1.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.18.2.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.19.0.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.2.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.20.0.json +40 -38
- package/dist/esm/src/schemas/project-schema/v3.21.0.json +41 -39
- package/dist/esm/src/schemas/project-schema/v3.22.0.json +41 -39
- package/dist/esm/src/schemas/project-schema/v3.23.0.json +43 -43
- package/dist/esm/src/schemas/project-schema/v3.24.0.json +105 -458
- package/dist/esm/src/schemas/project-schema/v3.25.0.json +105 -458
- package/dist/esm/src/schemas/project-schema/v3.26.0.json +107 -466
- package/dist/esm/src/schemas/project-schema/v3.27.0.json +107 -466
- package/dist/esm/src/schemas/project-schema/v3.28.0.json +112 -471
- package/dist/esm/src/schemas/project-schema/v3.29.0.json +112 -471
- package/dist/esm/src/schemas/project-schema/v3.3.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.30.0.json +112 -472
- package/dist/esm/src/schemas/project-schema/v3.31.0.json +112 -486
- package/dist/esm/src/schemas/project-schema/v3.32.0.json +113 -488
- package/dist/esm/src/schemas/project-schema/v3.33.0.json +113 -488
- package/dist/esm/src/schemas/project-schema/v3.34.0.json +113 -488
- package/dist/esm/src/schemas/project-schema/v3.35.0.json +114 -491
- package/dist/esm/src/schemas/project-schema/v3.36.0.json +114 -491
- package/dist/esm/src/schemas/project-schema/v3.37.0.json +118 -511
- package/dist/esm/src/schemas/project-schema/v3.38.0.json +118 -511
- package/dist/esm/src/schemas/project-schema/v3.39.0.json +118 -511
- package/dist/esm/src/schemas/project-schema/v3.4.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.40.0.json +118 -512
- package/dist/esm/src/schemas/project-schema/v3.41.0.json +118 -512
- package/dist/esm/src/schemas/project-schema/v3.42.0.json +118 -512
- package/dist/esm/src/schemas/project-schema/v3.43.0.json +118 -512
- package/dist/esm/src/schemas/project-schema/v3.44.0.json +125 -540
- package/dist/esm/src/schemas/project-schema/v3.45.0.json +128 -554
- package/dist/esm/src/schemas/project-schema/v3.46.0.json +129 -560
- package/dist/esm/src/schemas/project-schema/v3.47.0.json +131 -568
- package/dist/esm/src/schemas/project-schema/v3.48.0.json +132 -572
- package/dist/esm/src/schemas/project-schema/v3.49.0.json +132 -558
- package/dist/esm/src/schemas/project-schema/v3.5.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.5.1.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.50.0.json +165 -565
- package/dist/esm/src/schemas/project-schema/v3.51.0.json +3320 -0
- package/dist/esm/src/schemas/project-schema/v3.6.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.7.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.8.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v3.9.0.json +1 -1
- package/dist/esm/src/schemas/project-schema/v4.0.0.json +31 -29
- package/dist/esm/src/schemas/project-schema.json +3 -0
- package/dist/esm/src/schemas/user-schema.json +2 -9
- package/dist/esm/src/service-dependencies.js +17 -11
- package/dist/esm/src/services/services.js +12 -11
- package/dist/esm/src/services/util.js +4 -4
- package/dist/esm/src/template-shapes/templates.js +18 -12
- package/dist/esm/src/template-shapes/where.js +24 -15
- package/dist/esm/src/types/utils.js +3 -3
- package/dist/esm/src/unions.js +6 -8
- package/dist/esm/src/util/api-indexing.js +4 -4
- package/dist/esm/src/util/detect-cycles.js +2 -2
- package/dist/esm/src/util/find-shape-at-path.js +1 -1
- package/dist/esm/src/util/form-config.js +0 -1
- package/dist/esm/src/util/get-conflicting-properties.js +1 -1
- package/dist/esm/src/util/merge.js +23 -14
- package/dist/esm/src/util/patch-schema.js +2 -2
- package/dist/esm/src/util/shapes.js +2 -2
- package/dist/esm/src/validate.js +64 -47
- package/dist/esm/src/workflows.js +4 -4
- package/dist/types/src/agents.d.ts +1 -1
- package/dist/types/src/builtin-schema.d.ts +2 -2
- package/dist/types/src/content-schema-transform.d.ts +1 -1
- package/dist/types/src/create-input-schema.d.ts +1 -1
- package/dist/types/src/enum.d.ts +1 -1
- package/dist/types/src/flatten-templates.d.ts +1 -1
- package/dist/types/src/layers/layers.d.ts +1 -1
- package/dist/types/src/layers/refs.d.ts +1 -1
- package/dist/types/src/layers/type-utils.d.ts +1 -1
- package/dist/types/src/layers/visitor.d.ts +2 -2
- package/dist/types/src/migration/index.d.ts +1 -0
- package/dist/types/src/migration/to/v3.17.1.d.ts +1 -1
- package/dist/types/src/migration/to/v3.19.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.21.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.22.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.23.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.24.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.25.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.26.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.27.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.28.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.29.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.30.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.31.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.32.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.33.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.34.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.35.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.36.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.37.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.38.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.39.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.40.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.41.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.42.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.43.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.44.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.45.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.46.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.47.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.48.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.49.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.50.0.d.ts +1 -1
- package/dist/types/src/migration/to/v3.51.0.d.ts +4 -0
- package/dist/types/src/migration/types.d.ts +1 -1
- package/dist/types/src/mocks.d.ts +1 -1
- package/dist/types/src/models/project-schema.d.ts +3 -3
- package/dist/types/src/models/query.d.ts +2 -2
- package/dist/types/src/models/service.d.ts +2 -2
- package/dist/types/src/models/shape.d.ts +2 -2
- package/dist/types/src/project-schema/index.d.ts +4 -1
- package/dist/types/src/project-schema/latest.d.ts +28 -10
- package/dist/types/src/project-schema/v3.50.0.d.ts +27 -9
- package/dist/types/src/project-schema/v3.51.0.d.ts +2189 -0
- package/dist/types/src/refs.d.ts +1 -1
- package/dist/types/src/relationships.d.ts +2 -2
- package/dist/types/src/runtime-schema.d.ts +1 -1
- package/dist/types/src/schema-transform.d.ts +1 -1
- package/dist/types/src/schema-util.d.ts +2 -2
- package/dist/types/src/schemas/index.d.ts +2 -2
- package/dist/types/src/service-dependencies.d.ts +2 -2
- package/dist/types/src/services/services.d.ts +3 -3
- package/dist/types/src/services/util.d.ts +2 -2
- package/dist/types/src/template-shapes/index.d.ts +2 -2
- package/dist/types/src/template-shapes/names.d.ts +1 -1
- package/dist/types/src/template-shapes/types.d.ts +2 -2
- package/dist/types/src/template-shapes/where.d.ts +1 -1
- package/dist/types/src/types/transforms.d.ts +1 -1
- package/dist/types/src/types/types.d.ts +4 -4
- package/dist/types/src/types/utils.d.ts +2 -2
- package/dist/types/src/unions.d.ts +2 -2
- package/dist/types/src/util/ai-tools.d.ts +1 -1
- package/dist/types/src/util/api-indexing.d.ts +1 -1
- package/dist/types/src/util/detect-cycles.d.ts +1 -1
- package/dist/types/src/util/find-shape-at-path.d.ts +1 -1
- package/dist/types/src/util/form-config.d.ts +1 -1
- package/dist/types/src/util/get-conflicting-properties.d.ts +1 -1
- package/dist/types/src/util/get-return-shape.d.ts +1 -1
- package/dist/types/src/util/has-arg.d.ts +2 -2
- package/dist/types/src/util/merge.d.ts +1 -1
- package/dist/types/src/util/patch-schema.d.ts +2 -2
- package/dist/types/src/util/shapes.d.ts +1 -1
- package/dist/types/src/validate.d.ts +4 -4
- package/dist/types/src/workflows.d.ts +1 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/examples/latest/agent-schema.json +5 -13
- package/examples/latest/all-fields-shapes-inline.json +19 -53
- package/examples/latest/all-fields-shapes.json +27 -77
- package/examples/latest/betzino.json +903 -3140
- package/examples/latest/blog-schema.json +9 -29
- package/examples/latest/brewery-schema.json +8 -26
- package/examples/latest/clear-cache-schema.json +4 -8
- package/examples/latest/complex-project-schema.json +99 -360
- package/examples/latest/complex-schema.json +487 -1754
- package/examples/latest/edit-schema.json +5 -12
- package/examples/latest/fabric-ecommerce.json +188 -839
- package/examples/latest/frank-and-fred-schema.json +489 -1756
- package/examples/latest/klirr-schema.json +683 -2412
- package/examples/latest/layers/rick-and-morty-layer.json +12 -33
- package/examples/latest/layers/shopify-layer-2023-01.json +2207 -8638
- package/examples/latest/layers/shopify-storefront-2023-04.json +403 -1713
- package/examples/latest/layers/wordpress-2024-01.json +689 -2744
- package/examples/latest/massive-schema.json +132 -585
- package/examples/latest/mill-components-schema.json +30 -126
- package/examples/latest/nested-shape-arrays.json +8 -20
- package/examples/latest/one-earth.json +237 -1114
- package/examples/latest/pet-oneof-array.json +8 -23
- package/examples/latest/post-schema.json +7 -21
- package/examples/latest/pruned-shopify-product-schema.json +186 -831
- package/examples/latest/rag-example.json +6 -16
- package/examples/latest/real-world-schema.json +15 -57
- package/examples/latest/recursive-repeater-schema.json +5 -12
- package/examples/latest/recursive-schema.json +5 -12
- package/examples/latest/rick-and-morty-ast.json +46 -175
- package/examples/latest/rick-and-morty-graphql.json +26 -101
- package/examples/latest/rick-and-morty-rest.json +4 -8
- package/examples/latest/rick-and-morty-with-indexing.json +6 -14
- package/examples/latest/schema-where-filter.json +12 -41
- package/examples/latest/schema-with-repeater-draftjs.json +4 -9
- package/examples/latest/schema-with-rick-and-morty.json +3 -5
- package/examples/latest/shape-books-v3_2_0.json +18 -72
- package/examples/latest/shape-books.json +18 -72
- package/examples/latest/shape-editor-schema-edited.json +24 -70
- package/examples/latest/shape-editor-schema-initial.json +11 -29
- package/examples/latest/shapedb-crud-every-prop-type.json +9 -23
- package/examples/latest/shopify-lookbook.json +6 -20
- package/examples/latest/shopify-product-2022-07.json +727 -3218
- package/examples/latest/shopify-product-2023-04.json +1013 -4497
- package/examples/latest/shopify-store-with-widget.json +214 -943
- package/examples/latest/stripe-product-runtime-schema.json +82 -278
- package/examples/latest/stripe-starter-resolved.json +477 -1954
- package/examples/latest/user-schema-no-required.json +4 -14
- package/examples/latest/user-schema-with-defaults.json +6 -28
- package/examples/latest/valvoline-ai-demo.json +18 -70
- package/examples/latest/vector-search-schema.json +9 -25
- package/examples/source/agent-schema.json +29 -16
- package/examples/source/all-fields-shapes-inline.json +21 -30
- package/examples/source/all-fields-shapes.json +26 -76
- package/examples/source/betzino.json +1501 -4960
- package/examples/source/blog-schema.json +1 -1
- package/examples/source/brewery-schema.json +1 -1
- package/examples/source/clear-cache-schema.json +4 -4
- package/examples/source/complex-project-schema.json +196 -688
- package/examples/source/edit-schema.json +3 -3
- package/examples/source/fabric-ecommerce.json +186 -837
- package/examples/source/frank-and-fred-schema.json +1136 -3929
- package/examples/source/layers/rick-and-morty-layer.json +10 -31
- package/examples/source/layers/shopify-layer-2023-01.json +2205 -8636
- package/examples/source/layers/shopify-storefront-2023-04.json +401 -1711
- package/examples/source/layers/wordpress-2024-01.json +689 -2743
- package/examples/source/massive-schema.json +386 -1455
- package/examples/source/nested-shape-arrays.json +12 -12
- package/examples/source/pet-oneof-array.json +31 -29
- package/examples/source/post-schema.json +1 -1
- package/examples/source/pruned-shopify-product-schema.json +184 -829
- package/examples/source/rag-example.json +5 -15
- package/examples/source/real-world-schema.json +32 -119
- package/examples/source/recursive-repeater-schema.json +3 -8
- package/examples/source/recursive-schema.json +1 -1
- package/examples/source/rick-and-morty-ast.json +66 -251
- package/examples/source/rick-and-morty-graphql.json +41 -162
- package/examples/source/rick-and-morty-rest.json +24 -6
- package/examples/source/rick-and-morty-with-indexing.json +25 -25
- package/examples/source/schema-where-filter.json +29 -50
- package/examples/source/schema-with-repeater-draftjs.json +9 -31
- package/examples/source/schema-with-rick-and-morty.json +4 -4
- package/examples/source/shape-books.json +49 -181
- package/examples/source/shape-editor-schema-edited.json +22 -68
- package/examples/source/shape-editor-schema-initial.json +9 -27
- package/examples/source/shapedb-crud-every-prop-type.json +20 -29
- package/examples/source/shopify-product-2022-07.json +736 -3261
- package/examples/source/shopify-product-2023-04.json +1022 -4540
- package/examples/source/shopify-store-with-widget.json +212 -941
- package/examples/source/stripe-product-runtime-schema.json +91 -321
- package/examples/source/stripe-starter-resolved.json +475 -1952
- package/examples/source/user-schema-with-defaults.json +1 -9
- package/examples/source/valvoline-ai-demo.json +175 -219
- package/examples/source/vector-search-schema.json +37 -38
- package/examples/v4_0_0/rick-and-morty-notes/flattened-schema.json +15 -49
- package/examples/v4_0_0/rick-and-morty-notes/layers/character-notes.json +8 -8
- package/examples/v4_0_0/rick-and-morty-notes/layers/takeshape-builtins.json +1 -3
- package/examples/v4_0_0/rick-and-morty-notes/layers/takeshape-static-sites.json +19 -79
- package/examples/v4_0_0/rick-and-morty-notes/schema.json +8 -5
- package/examples/v4_0_0/shopify-lookbook/flattened-schema.json +190 -851
- package/examples/v4_0_0/shopify-lookbook/layers/andrews-store.json +1103 -4431
- package/examples/v4_0_0/shopify-lookbook/layers/lookbook.json +64 -56
- package/examples/v4_0_0/shopify-lookbook/layers/takeshape-assets.json +1 -4
- package/examples/v4_0_0/shopify-lookbook/layers/takeshape-builtins.json +1 -3
- package/examples/v4_0_0/shopify-lookbook/schema.json +3 -10
- package/package.json +12 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ensureArray } from "@takeshape/util";
|
|
2
|
-
import { isServiceResolver, isCachedShape } from "../types/index.js";
|
|
3
|
-
import { getResolverServices } from "../services/util.js";
|
|
4
|
-
import { getIdField } from "../schema-util.js";
|
|
5
2
|
import { getQuery } from "../refs.js";
|
|
3
|
+
import { getIdField } from "../schema-util.js";
|
|
4
|
+
import { getResolverServices } from "../services/util.js";
|
|
5
|
+
import { isCachedShape, isServiceResolver } from "../types/index.js";
|
|
6
6
|
export function serviceHasIndexedShapes(schema, serviceId) {
|
|
7
7
|
for (const shape of Object.values(schema.shapes ?? {})) {
|
|
8
8
|
const indexingEnabled = isCachedShape(shape);
|
|
@@ -26,7 +26,7 @@ export function getIndexedServices(projectSchema, configs) {
|
|
|
26
26
|
}
|
|
27
27
|
function flattenListQueryConfigs(base, queryConfig, maybeConfigArray) {
|
|
28
28
|
return (maybeConfigArray &&
|
|
29
|
-
ensureArray(maybeConfigArray).flatMap(config => ensureArray(config.args).map(args => ({
|
|
29
|
+
ensureArray(maybeConfigArray).flatMap((config) => ensureArray(config.args).map((args) => ({
|
|
30
30
|
...base,
|
|
31
31
|
...queryConfig,
|
|
32
32
|
...config,
|
|
@@ -27,14 +27,14 @@ export function hasCycle(projectSchema, schema, predicate = value(true)) {
|
|
|
27
27
|
}
|
|
28
28
|
const combo = schema.oneOf ?? schema.allOf ?? schema.extends;
|
|
29
29
|
if (combo) {
|
|
30
|
-
return combo.some(childSchema => hasCycleHelper(childSchema, shapesSeen, shapeName, propName));
|
|
30
|
+
return combo.some((childSchema) => hasCycleHelper(childSchema, shapesSeen, shapeName, propName));
|
|
31
31
|
}
|
|
32
32
|
if (schema.items) {
|
|
33
33
|
return hasCycleHelper(schema.items, shapesSeen, shapeName, propName);
|
|
34
34
|
}
|
|
35
35
|
const { properties } = schema;
|
|
36
36
|
if (properties) {
|
|
37
|
-
return Object.keys(properties).some(name => {
|
|
37
|
+
return Object.keys(properties).some((name) => {
|
|
38
38
|
const propSchema = properties[name];
|
|
39
39
|
return hasCycleHelper(propSchema, shapesSeen, shapeName, name);
|
|
40
40
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isArraySchema, isObjectSchema, isRefSchema } from "../types/index.js";
|
|
2
1
|
import { getRef, refItemToShape, refItemToShapeSchema } from "../refs.js";
|
|
2
|
+
import { isArraySchema, isObjectSchema, isRefSchema } from "../types/index.js";
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @param projectSchema
|
|
@@ -13,7 +13,6 @@ export function normalizeForms(projectSchema) {
|
|
|
13
13
|
if (!forms[shapeName]) {
|
|
14
14
|
normalizedForms[shapeName] ||= { default: deepClone(formConfig) };
|
|
15
15
|
// Remove prop now that it has been normalized
|
|
16
|
-
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
17
16
|
delete normalizedForms[shapeName].default.properties[propName];
|
|
18
17
|
}
|
|
19
18
|
};
|
|
@@ -8,7 +8,7 @@ function getRefStrings(context, propertySchema) {
|
|
|
8
8
|
const schema = propertySchema.items ?? propertySchema;
|
|
9
9
|
const schemas = schema.oneOf ? schema.oneOf : [schema];
|
|
10
10
|
return schemas
|
|
11
|
-
.map(propertySchema => {
|
|
11
|
+
.map((propertySchema) => {
|
|
12
12
|
const ref = getRef(context, propertySchema);
|
|
13
13
|
return ref ? refItemToAtRef(ref) : undefined;
|
|
14
14
|
})
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { deepClone, isDefined, rebaseArray, rebaseObject
|
|
2
|
-
import
|
|
1
|
+
import { assert, deepClone, isDefined, rebaseArray, rebaseObject } from "@takeshape/util";
|
|
2
|
+
import { assignWith } from "lodash";
|
|
3
3
|
import difference from "lodash/difference.js";
|
|
4
4
|
import isEqual from "lodash/isEqual.js";
|
|
5
|
-
import unset from "lodash/unset.js";
|
|
6
|
-
import set from "lodash/set.js";
|
|
7
5
|
import last from "lodash/last.js";
|
|
8
6
|
import omit from "lodash/omit.js";
|
|
9
7
|
import pickBy from "lodash/pickBy.js";
|
|
10
|
-
import
|
|
8
|
+
import set from "lodash/set.js";
|
|
9
|
+
import union from "lodash/union.js";
|
|
10
|
+
import unset from "lodash/unset.js";
|
|
11
11
|
import { isExtendsSchema, isObjectSchema, isRefSchema } from "../types/index.js";
|
|
12
12
|
export function mergeObjectSchemas(...args) {
|
|
13
|
-
return args
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
return args.filter(isDefined).reduce((parent, schemas) => mergeSchemaProperties(parent, schemas), {
|
|
14
|
+
type: "object",
|
|
15
|
+
properties: {}
|
|
16
|
+
});
|
|
16
17
|
}
|
|
17
18
|
export function mergeDeepObjectSchemas(...args) {
|
|
18
|
-
return args
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
return args.filter(isDefined).reduce((parent, schemas) => mergeSchemaProperties(parent, schemas, true), {
|
|
20
|
+
type: "object",
|
|
21
|
+
properties: {}
|
|
22
|
+
});
|
|
21
23
|
}
|
|
22
24
|
export function mergeSchemaProperties(parent, overrides, deep = false) {
|
|
23
25
|
const result = {
|
|
@@ -26,6 +28,10 @@ export function mergeSchemaProperties(parent, overrides, deep = false) {
|
|
|
26
28
|
? assignWith({}, parent.properties, overrides.properties, (objValue, srcValue) => {
|
|
27
29
|
// merge objects if possible
|
|
28
30
|
if (objValue !== undefined && srcValue !== undefined) {
|
|
31
|
+
// skip merging if they are equal this avoids allOf with duplicate refs
|
|
32
|
+
if (isEqual(objValue, srcValue)) {
|
|
33
|
+
return objValue;
|
|
34
|
+
}
|
|
29
35
|
if (isObjectSchema(objValue) && isObjectSchema(srcValue)) {
|
|
30
36
|
return mergeObjectSchemas(objValue, srcValue);
|
|
31
37
|
}
|
|
@@ -114,7 +120,7 @@ function compareSection(section, original, updated) {
|
|
|
114
120
|
return changes;
|
|
115
121
|
}
|
|
116
122
|
function compareSections(parent, branch) {
|
|
117
|
-
return mergeableSections.flatMap(section => parent[section] ?? branch[section] ? compareSection(section, parent[section] ?? {}, branch[section] ?? {}) : []);
|
|
123
|
+
return mergeableSections.flatMap((section) => (parent[section] ?? branch[section]) ? compareSection(section, parent[section] ?? {}, branch[section] ?? {}) : []);
|
|
118
124
|
}
|
|
119
125
|
function findChangedShape(schema, change) {
|
|
120
126
|
return schema.shapes[change.path[1]];
|
|
@@ -217,7 +223,7 @@ export function mergeProjectSchemas(base, parent, head) {
|
|
|
217
223
|
const changesFrom = compareSections(parent, head);
|
|
218
224
|
const mergedSchema = deepClone(base);
|
|
219
225
|
for (let change of changesFrom) {
|
|
220
|
-
const potentialConflict = changesTo.find(changeTo => isEqual(changeTo.path, change.path));
|
|
226
|
+
const potentialConflict = changesTo.find((changeTo) => isEqual(changeTo.path, change.path));
|
|
221
227
|
if (potentialConflict) {
|
|
222
228
|
if (potentialConflict.op === "remove" && change.op !== "remove") {
|
|
223
229
|
return {
|
|
@@ -231,7 +237,10 @@ export function mergeProjectSchemas(base, parent, head) {
|
|
|
231
237
|
const mergedValue = attemptToMerge(base, parent, head, change);
|
|
232
238
|
// eslint-disable-next-line max-depth
|
|
233
239
|
if (!mergedValue) {
|
|
234
|
-
return {
|
|
240
|
+
return {
|
|
241
|
+
error: `Unable to merge ${change.path.join(".")} schemas conflict`,
|
|
242
|
+
mergedSchema: undefined
|
|
243
|
+
};
|
|
235
244
|
}
|
|
236
245
|
change = { ...change, op: "add", value: mergedValue };
|
|
237
246
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import omit from 'lodash/omit.js';
|
|
2
|
-
import get from 'lodash/get.js';
|
|
3
1
|
import set from 'lodash/fp/set.js';
|
|
2
|
+
import get from 'lodash/get.js';
|
|
3
|
+
import omit from 'lodash/omit.js';
|
|
4
4
|
import unset from 'lodash/unset.js';
|
|
5
5
|
/**
|
|
6
6
|
* Array of lodash.get paths to keys that are merged when applying a schema update.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import find from 'lodash/find.js';
|
|
2
1
|
import { NotFoundError } from '@takeshape/errors';
|
|
2
|
+
import find from 'lodash/find.js';
|
|
3
3
|
export function getShapeById(projectSchema, shapeId) {
|
|
4
|
-
return find(projectSchema.shapes, shape => shape.id === shapeId);
|
|
4
|
+
return find(projectSchema.shapes, (shape) => shape.id === shapeId);
|
|
5
5
|
}
|
|
6
6
|
export function getShape(context, name) {
|
|
7
7
|
return context.shapes[name];
|
package/dist/esm/src/validate.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { JSONPath } from "jsonpath-plus";
|
|
2
|
-
import { createAjv } from "@takeshape/json-schema";
|
|
3
1
|
import { SchemaValidationError } from "@takeshape/errors";
|
|
4
|
-
import
|
|
5
|
-
import neq from "semver/functions/neq.js";
|
|
6
|
-
import lt from "semver/functions/lt.js";
|
|
7
|
-
import gte from "semver/functions/gte.js";
|
|
8
|
-
import isUndefined from "lodash/isUndefined.js";
|
|
2
|
+
import { createAjv } from "@takeshape/json-schema";
|
|
9
3
|
import { DEFAULT_MIN_SCHEDULE_TRIGGER_INTERVAL, ensureArray, isIntegerLike, isRecord, value } from "@takeshape/util";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import last from "lodash/last.js";
|
|
4
|
+
import { JSONPath } from "jsonpath-plus";
|
|
5
|
+
import { flatten } from "lodash";
|
|
13
6
|
import get from "lodash/get.js";
|
|
14
|
-
import
|
|
7
|
+
import initial from "lodash/initial.js";
|
|
15
8
|
import isEqual from "lodash/isEqual.js";
|
|
9
|
+
import isUndefined from "lodash/isUndefined.js";
|
|
10
|
+
import last from "lodash/last.js";
|
|
16
11
|
import pick from "lodash/pick.js";
|
|
12
|
+
import size from "lodash/size.js";
|
|
13
|
+
import uniqBy from "lodash/uniqBy.js";
|
|
17
14
|
import pMap from "p-map";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
15
|
+
import coerce from "semver/functions/coerce.js";
|
|
16
|
+
import gte from "semver/functions/gte.js";
|
|
17
|
+
import lt from "semver/functions/lt.js";
|
|
18
|
+
import neq from "semver/functions/neq.js";
|
|
19
|
+
import { builtInShapes } from "./builtin-schema.js";
|
|
20
|
+
import { isEnumLikeSchema } from "./enum.js";
|
|
21
|
+
import { isLatestProjectSchemaJSON } from "./project-schema/index.js";
|
|
22
|
+
import { atRefToRefItem, createGetNamespace, getRefShapeName, parsePropertyRef, propertyRefItemToPath, propertyRefItemToResolverPath, refItemToAtRef, refItemToNamespacedShapeName, refItemToShape } from "./refs.js";
|
|
23
|
+
import { getRelationship } from "./relationships.js";
|
|
24
|
+
import { scalars } from "./scalars.js";
|
|
25
|
+
import { getAllRefs } from "./schema-util.js";
|
|
21
26
|
import { allProjectSchemas } from "./schemas/index.js";
|
|
22
27
|
import authSchemas from "./schemas/auth-schemas.json";
|
|
23
|
-
import { getAllRefs } from "./schema-util.js";
|
|
24
|
-
import { builtInShapes } from "./builtin-schema.js";
|
|
25
28
|
import { isValidTemplate } from "./template-shapes/index.js";
|
|
29
|
+
import { legacyProjectSchemaImportOptionalProps, projectSchemaImportOptionalProps } from "./types/types.js";
|
|
26
30
|
import { isAIResolver, isBasicResolver, isComposeResolver, isExtendsSchema, isObjectSchema } from "./types/utils.js";
|
|
27
|
-
import { refItemToNamespacedShapeName, getRefShapeName, parsePropertyRef, propertyRefItemToResolverPath, createGetNamespace, propertyRefItemToPath, atRefToRefItem, refItemToShape, refItemToAtRef } from "./refs.js";
|
|
28
|
-
import { scalars } from "./scalars.js";
|
|
29
31
|
import { isUnionSchema } from "./unions.js";
|
|
30
|
-
import { isEnumLikeSchema } from "./enum.js";
|
|
31
|
-
import { getRelationship } from "./relationships.js";
|
|
32
|
-
import { legacyProjectSchemaImportOptionalProps, projectSchemaImportOptionalProps } from "./types/types.js";
|
|
33
|
-
import { isLatestProjectSchemaJSON } from "./project-schema/index.js";
|
|
34
|
-
import { getShape } from "./util/shapes.js";
|
|
35
32
|
import { getToolRef } from "./util/ai-tools.js";
|
|
33
|
+
import { getShape } from "./util/shapes.js";
|
|
34
|
+
import { CURRENT_SCHEMA_VERSION, LEGACY_API_VERSION, LEGACY_SCHEMA_VERSION } from "./versions.js";
|
|
35
|
+
import { defaultWorkflow } from "./workflows.js";
|
|
36
36
|
export const builtInShapeNames = new Set([...Object.keys(builtInShapes), ...scalars, "object"]);
|
|
37
37
|
function findDuplicates(items) {
|
|
38
38
|
const seen = {};
|
|
@@ -45,19 +45,25 @@ function findDuplicates(items) {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
return Object.entries(seen)
|
|
48
|
-
.filter(entry => entry[1].length > 1)
|
|
49
|
-
.flatMap(entry => ({ value: entry[0], paths: entry[1] }));
|
|
48
|
+
.filter((entry) => entry[1].length > 1)
|
|
49
|
+
.flatMap((entry) => ({ value: entry[0], paths: entry[1] }));
|
|
50
50
|
}
|
|
51
51
|
function checkShapeIds(shapes) {
|
|
52
|
-
const items = Object.entries(shapes).map(entry => ({
|
|
53
|
-
|
|
52
|
+
const items = Object.entries(shapes).map((entry) => ({
|
|
53
|
+
path: ["shapes", entry[0], "id"],
|
|
54
|
+
value: entry[1].id
|
|
55
|
+
}));
|
|
56
|
+
return findDuplicates(items).flatMap((dupe) => dupe.paths.map((path) => ({
|
|
54
57
|
path,
|
|
55
58
|
type: "conflict",
|
|
56
59
|
message: `Shapes must have unique ids. "${dupe.value}" is not unique.`
|
|
57
60
|
})));
|
|
58
61
|
}
|
|
59
62
|
function checkShapeNames(shapes) {
|
|
60
|
-
Object.entries(shapes).map(entry => ({
|
|
63
|
+
Object.entries(shapes).map((entry) => ({
|
|
64
|
+
path: ["shapes", entry[0], "id"],
|
|
65
|
+
value: entry[1].id
|
|
66
|
+
}));
|
|
61
67
|
return Object.entries(shapes)
|
|
62
68
|
.filter(([name, shape]) => name !== shape.name)
|
|
63
69
|
.map(([name, shape]) => ({
|
|
@@ -72,7 +78,7 @@ function checkWorkflowStepNames(workflows) {
|
|
|
72
78
|
path: ["workflows", name, "steps", i, "name"],
|
|
73
79
|
value: step.name.toLowerCase()
|
|
74
80
|
}));
|
|
75
|
-
return findDuplicates(items).flatMap(dupe => dupe.paths.map(path => ({
|
|
81
|
+
return findDuplicates(items).flatMap((dupe) => dupe.paths.map((path) => ({
|
|
76
82
|
path,
|
|
77
83
|
type: "conflict",
|
|
78
84
|
message: `Workflow steps must have unique names. "${dupe.value}" is not unique in workflow "${workflow.name}."`
|
|
@@ -80,8 +86,11 @@ function checkWorkflowStepNames(workflows) {
|
|
|
80
86
|
});
|
|
81
87
|
}
|
|
82
88
|
function checkWorkflowStepKeys(workflows) {
|
|
83
|
-
const items = Object.entries(workflows).flatMap(([name, workflow]) => workflow.steps.map((step, i) => ({
|
|
84
|
-
|
|
89
|
+
const items = Object.entries(workflows).flatMap(([name, workflow]) => workflow.steps.map((step, i) => ({
|
|
90
|
+
path: ["workflows", name, "steps", i, "key"],
|
|
91
|
+
value: step.key
|
|
92
|
+
})));
|
|
93
|
+
return findDuplicates(items).flatMap((dupe) => dupe.paths.map((path) => ({
|
|
85
94
|
path,
|
|
86
95
|
type: "conflict",
|
|
87
96
|
message: `Workflow keys must be unique at the schema level. Key "${dupe.value}" is not unique.`
|
|
@@ -157,7 +166,7 @@ const validateAIToolConfig = (projectSchema, getNamespace, tool, basePath) => {
|
|
|
157
166
|
return {
|
|
158
167
|
type: "conflict",
|
|
159
168
|
path,
|
|
160
|
-
message:
|
|
169
|
+
message: "Tools must be a query or mutation"
|
|
161
170
|
};
|
|
162
171
|
}
|
|
163
172
|
const property = get(projectSchema, propertyPath);
|
|
@@ -240,7 +249,7 @@ function validateResolver(projectSchema, basePath, baseResolver) {
|
|
|
240
249
|
else if (toolChoice && toolChoice !== "auto" && toolChoice !== "none") {
|
|
241
250
|
const parsed = parsePropertyRef(toolChoice);
|
|
242
251
|
if (parsed) {
|
|
243
|
-
const matchingTool = resolver.tools?.find(tool => isEqual(parsed, parsePropertyRef(getToolRef(tool))));
|
|
252
|
+
const matchingTool = resolver.tools?.find((tool) => isEqual(parsed, parsePropertyRef(getToolRef(tool))));
|
|
244
253
|
if (!matchingTool) {
|
|
245
254
|
errors.push({
|
|
246
255
|
type: "notFound",
|
|
@@ -292,7 +301,7 @@ function validateResolver(projectSchema, basePath, baseResolver) {
|
|
|
292
301
|
errors.push({
|
|
293
302
|
type: "notFound",
|
|
294
303
|
path,
|
|
295
|
-
message:
|
|
304
|
+
message: "Invalid resolver"
|
|
296
305
|
});
|
|
297
306
|
}
|
|
298
307
|
}
|
|
@@ -405,7 +414,11 @@ function listShapeJoins(projectSchema) {
|
|
|
405
414
|
if (shape.joins) {
|
|
406
415
|
for (const joinRef of Object.keys(shape.joins)) {
|
|
407
416
|
const join = shape.joins[joinRef];
|
|
408
|
-
joins.push({
|
|
417
|
+
joins.push({
|
|
418
|
+
ref: joinRef,
|
|
419
|
+
path: ["shapes", shapeKey, "joins", joinRef],
|
|
420
|
+
join
|
|
421
|
+
});
|
|
409
422
|
}
|
|
410
423
|
}
|
|
411
424
|
}
|
|
@@ -428,7 +441,7 @@ function validateLocalShapeJoinRef(projectSchema, item) {
|
|
|
428
441
|
return [];
|
|
429
442
|
}
|
|
430
443
|
function validateLocalShapeJoins(projectSchema) {
|
|
431
|
-
return listShapeJoins(projectSchema).flatMap(item => validateLocalShapeJoinRef(projectSchema, item).concat(validateResolver(projectSchema, item.path.concat("resolver"), item.join.resolver)));
|
|
444
|
+
return listShapeJoins(projectSchema).flatMap((item) => validateLocalShapeJoinRef(projectSchema, item).concat(validateResolver(projectSchema, item.path.concat("resolver"), item.join.resolver)));
|
|
432
445
|
}
|
|
433
446
|
async function validateShapeJoinRef(context, projectSchema, item) {
|
|
434
447
|
const refItem = atRefToRefItem(projectSchema, item.ref);
|
|
@@ -549,7 +562,7 @@ function isAllOfPath(path) {
|
|
|
549
562
|
function validateLocalRefs(projectSchema) {
|
|
550
563
|
const errors = [];
|
|
551
564
|
const shapeNames = new Set([...builtInShapeNames, ...Object.keys(projectSchema.shapes)]);
|
|
552
|
-
const refs = getAllRefs(projectSchema).filter(item => !item.isForeign);
|
|
565
|
+
const refs = getAllRefs(projectSchema).filter((item) => !item.isForeign);
|
|
553
566
|
for (const item of refs) {
|
|
554
567
|
if (item.template && !isValidTemplate(item.template)) {
|
|
555
568
|
errors.push({
|
|
@@ -574,7 +587,7 @@ function validateLocalRefs(projectSchema) {
|
|
|
574
587
|
errors.push({
|
|
575
588
|
type: "conflict",
|
|
576
589
|
path: item.path,
|
|
577
|
-
message:
|
|
590
|
+
message: "allOf cannot be self-referential"
|
|
578
591
|
});
|
|
579
592
|
}
|
|
580
593
|
const parentPath = initial(item.path);
|
|
@@ -584,7 +597,7 @@ function validateLocalRefs(projectSchema) {
|
|
|
584
597
|
errors.push({
|
|
585
598
|
type: "conflict",
|
|
586
599
|
path: parentPath,
|
|
587
|
-
message:
|
|
600
|
+
message: "Ref cannot have both @ref and $ref"
|
|
588
601
|
});
|
|
589
602
|
}
|
|
590
603
|
}
|
|
@@ -668,15 +681,15 @@ function validateOneOfs(projectSchema) {
|
|
|
668
681
|
errors.push({
|
|
669
682
|
type: "conflict",
|
|
670
683
|
path: propertyPath.concat(oneOfPath),
|
|
671
|
-
message:
|
|
684
|
+
message: "Invalid oneOf must contain only @ref or title + enum/const schemas"
|
|
672
685
|
});
|
|
673
686
|
}
|
|
674
687
|
if (isUnion &&
|
|
675
|
-
schema.oneOf.length !== uniqBy(schema.oneOf, refSchema => getRefShapeName(projectSchema, refSchema)).length) {
|
|
688
|
+
schema.oneOf.length !== uniqBy(schema.oneOf, (refSchema) => getRefShapeName(projectSchema, refSchema)).length) {
|
|
676
689
|
errors.push({
|
|
677
690
|
type: "conflict",
|
|
678
691
|
path: propertyPath.concat(oneOfPath),
|
|
679
|
-
message:
|
|
692
|
+
message: "Invalid oneOf must not contain duplicate references"
|
|
680
693
|
});
|
|
681
694
|
}
|
|
682
695
|
});
|
|
@@ -895,7 +908,7 @@ function validateStructure(schemaVersion, context, schema, ref) {
|
|
|
895
908
|
const coerced = coerce(schemaVersion);
|
|
896
909
|
const versionStr = coerced?.format();
|
|
897
910
|
const hasExperimental = Boolean(coerced && gte(coerced, "3.48.0"));
|
|
898
|
-
const relevantSchemas = allProjectSchemas.filter(metaSchema => (hasExperimental && metaSchema.$id.endsWith("experimental#")) || metaSchema.$id.endsWith(`v${versionStr}#`));
|
|
911
|
+
const relevantSchemas = allProjectSchemas.filter((metaSchema) => (hasExperimental && metaSchema.$id.endsWith("experimental#")) || metaSchema.$id.endsWith(`v${versionStr}#`));
|
|
899
912
|
for (const relevantSchema of relevantSchemas) {
|
|
900
913
|
if (!ajv.getSchema(relevantSchema.$id)) {
|
|
901
914
|
ajv.addSchema(relevantSchema);
|
|
@@ -905,7 +918,7 @@ function validateStructure(schemaVersion, context, schema, ref) {
|
|
|
905
918
|
let errors = ajv.errors?.map(formatError) ?? [];
|
|
906
919
|
const { suppressErrorPaths } = context;
|
|
907
920
|
if (errors.length && suppressErrorPaths) {
|
|
908
|
-
errors = errors.filter(error => {
|
|
921
|
+
errors = errors.filter((error) => {
|
|
909
922
|
return !suppressErrorPaths.includes(error.path.join("."));
|
|
910
923
|
});
|
|
911
924
|
}
|
|
@@ -916,7 +929,11 @@ function validateStructure(schemaVersion, context, schema, ref) {
|
|
|
916
929
|
errors
|
|
917
930
|
};
|
|
918
931
|
}
|
|
919
|
-
return {
|
|
932
|
+
return {
|
|
933
|
+
valid: true,
|
|
934
|
+
schema: schema,
|
|
935
|
+
errors: undefined
|
|
936
|
+
};
|
|
920
937
|
}
|
|
921
938
|
function validateGuards(context, schema) {
|
|
922
939
|
const errors = [];
|
|
@@ -937,7 +954,7 @@ function validateGuards(context, schema) {
|
|
|
937
954
|
function formatValidationResult(context, errors, schema) {
|
|
938
955
|
const { suppressErrorPaths } = context;
|
|
939
956
|
if (suppressErrorPaths) {
|
|
940
|
-
errors = errors.filter(error => {
|
|
957
|
+
errors = errors.filter((error) => {
|
|
941
958
|
return !suppressErrorPaths.includes(error.path.join("."));
|
|
942
959
|
});
|
|
943
960
|
}
|
|
@@ -1032,7 +1049,7 @@ export function ensureValidLatestSchemaSyntax(obj) {
|
|
|
1032
1049
|
throw new Error(`Invalid Schema "${errors[0].path.join(",")}": "${errors[0].message}"`);
|
|
1033
1050
|
}
|
|
1034
1051
|
if (isUndefined(schema)) {
|
|
1035
|
-
throw new Error(
|
|
1052
|
+
throw new Error("Invalid schema: schema is undefined");
|
|
1036
1053
|
}
|
|
1037
1054
|
if (neq(CURRENT_SCHEMA_VERSION, coerce(schema.schemaVersion) ?? LEGACY_SCHEMA_VERSION)) {
|
|
1038
1055
|
throw new Error(`Expected schemaVersion: "${CURRENT_SCHEMA_VERSION}", got "${schema.schemaVersion}"`);
|
|
@@ -27,10 +27,10 @@ export function getWorkflow(projectSchema, shapeId) {
|
|
|
27
27
|
return defaultWorkflow;
|
|
28
28
|
}
|
|
29
29
|
export function statusFallback(workflow, enabled) {
|
|
30
|
-
return workflow.steps.find(workflow => workflow.live === enabled) ?? workflow.steps[0];
|
|
30
|
+
return workflow.steps.find((workflow) => workflow.live === enabled) ?? workflow.steps[0];
|
|
31
31
|
}
|
|
32
32
|
export function findWorkflowStep(workflow, keyOrName) {
|
|
33
|
-
const index = workflow.steps.findIndex(workflow => workflow.key === keyOrName || workflow.name === keyOrName);
|
|
33
|
+
const index = workflow.steps.findIndex((workflow) => workflow.key === keyOrName || workflow.name === keyOrName);
|
|
34
34
|
return index === -1 ? undefined : { index, step: workflow.steps[index] };
|
|
35
35
|
}
|
|
36
36
|
export function getStatusField(workflows, shape) {
|
|
@@ -59,8 +59,8 @@ export function getWorkflowStepKeys(workflow, stepKey, op) {
|
|
|
59
59
|
throw new Error(`Cannot find step "${stepKey}" in workflow "${workflow.title}"`);
|
|
60
60
|
}
|
|
61
61
|
const { index } = context;
|
|
62
|
-
return getStepRange(workflow.steps, index, op).map(step => step.key);
|
|
62
|
+
return getStepRange(workflow.steps, index, op).map((step) => step.key);
|
|
63
63
|
}
|
|
64
64
|
export function getLiveStepKeys(workflow) {
|
|
65
|
-
return workflow.steps.filter(step => step.live).map(step => step.key);
|
|
65
|
+
return workflow.steps.filter((step) => step.live).map((step) => step.key);
|
|
66
66
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AgentAPIArgument, AgentJSON, Args, ProjectSchemaJSON } from './project-schema';
|
|
2
2
|
export declare const END_AGENT_EXECUTION = "endAgentExecution";
|
|
3
3
|
export declare const BUILT_IN_CHAT_ARGS: AgentAPIArgument[];
|
|
4
4
|
export declare const BUILT_IN_CHAT_ARG_NAMES: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { FormMap, ShapeJSON, ShapeMap } from './project-schema';
|
|
2
|
+
import type { Content } from './types/types';
|
|
3
3
|
export declare function isAsset(content: Content): boolean;
|
|
4
4
|
export declare function getAssetS3Path(content: Content): string | undefined;
|
|
5
5
|
export declare function setAssetS3Path(content: Content, path: string): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ProjectSchemaJSON, PropertySchema, ShapeJSON } from './project-schema';
|
|
2
|
-
import
|
|
2
|
+
import type { ContentTransform, KeyTransform, PropertyTransform, PropertyTransformMap, SchemaType, SourceKeyTransform } from './types';
|
|
3
3
|
export declare function getType(schema: Pick<PropertySchema, 'type'>): SchemaType;
|
|
4
4
|
export declare function preferKey(name: string, schema: PropertySchema): string;
|
|
5
5
|
/**
|
package/dist/types/src/enum.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PropertySchema } from './project-schema';
|
|
2
2
|
export declare function isEnumLikeSchema(schema: PropertySchema): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaJSON } from './project-schema';
|
|
2
2
|
export declare function flattenTemplates<T extends ProjectSchemaJSON>(projectSchema: T): T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FlattenedSchemaV4_0_0, LayerSchemaV4_0_0, ObjectSchemaV4_0_0, ProjectSchemaJSONV4_0_0, PropertySchemaV4_0_0, QueryJSONV4_0_0, ShapeMapV4_0_0 } from '../project-schema';
|
|
2
2
|
import { type RefItemWithPath } from './refs';
|
|
3
3
|
export type GetLayer = (layerId: string) => LayerSchemaV4_0_0 | undefined;
|
|
4
4
|
export declare function isObjectSchemaV4_0_0(maybeObjectSchema: PropertySchemaV4_0_0): maybeObjectSchema is ObjectSchemaV4_0_0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
2
|
import type { Maybe } from '@takeshape/util';
|
|
3
|
+
import type { PropertySchemaV4_0_0, QueryJSONV4_0_0, ReturnShapeV4_0_0, ShapeJSONV4_0_0, ShapeMapV4_0_0 } from '../project-schema';
|
|
3
4
|
import type { SchemaPath } from '../types';
|
|
4
|
-
import type { PropertySchemaV4_0_0, QueryJSONV4_0_0, ShapeMapV4_0_0, ShapeJSONV4_0_0, ReturnShapeV4_0_0 } from '../project-schema';
|
|
5
5
|
/**
|
|
6
6
|
* This interface describes a parsed `@ref` or `$ref`.
|
|
7
7
|
* The intended usage is to convert a schema with a ref to a RefItem which can then
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { AllOfSchemaV4_0_0, AwsLambdaResolverV4_0_0, BasicResolverV4_0_0, ComposeResolverV4_0_0, DirectiveConfigV4_0_0, DirectiveMappingArrayV4_0_0, DirectiveMappingMapV4_0_0, GraphqlResolverV4_0_0, ObjectSchemaV4_0_0, OneOfSchemaV4_0_0, ParameterOpMappingV4_0_0, ParameterOpNestedV4_0_0, ParameterOpOpV4_0_0, ParameterOpV4_0_0, ParameterOpValueV4_0_0, ParameterSerializeContentOptionsV4_0_0, ParameterSerializeOptionsV4_0_0, ParameterSerializeStyleOptionsV4_0_0, PropertySchemaV4_0_0, RefSchemaLegacyV4_0_0, RefSchemaV4_0_0, RestResolverV4_0_0, ReturnShapeArraySchemaV4_0_0, TakeshapeResolverV4_0_0, UtilResolverV4_0_0 } from '../project-schema';
|
|
2
2
|
/** Resolver Type Utils **/
|
|
3
3
|
/**
|
|
4
4
|
* Only tests that the shape is right, not that the name is correct. That's a job for the validator.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { PropertySchemaV4_0_0, ShapeMapV4_0_0 } from '../project-schema';
|
|
2
|
+
import type { SchemaPath } from '../types';
|
|
3
3
|
export type PropertyVisitorCallback = (schema: PropertySchemaV4_0_0, path: SchemaPath) => void;
|
|
4
4
|
export declare function visitSchemaProperties(schema: PropertySchemaV4_0_0, path: Array<string | number>, callback: PropertyVisitorCallback): void;
|
|
5
5
|
export declare function visitShapeProperties(shapes: ShapeMapV4_0_0, callback: PropertyVisitorCallback): void;
|
|
@@ -57,6 +57,7 @@ export declare const migrateTo: {
|
|
|
57
57
|
'v3.48.0': import("./types").MigrateFunction<import("..").ProjectSchemaJSONV3_47_0, import("..").ProjectSchemaJSONV3_48_0>;
|
|
58
58
|
'v3.49.0': import("./types").MigrateFunction<import("..").ProjectSchemaJSONV3_48_0, import("..").ProjectSchemaJSONV3_49_0>;
|
|
59
59
|
'v3.50.0': import("./types").MigrateFunction<import("..").ProjectSchemaJSONV3_49_0, import("..").ProjectSchemaJSONV3_50_0>;
|
|
60
|
+
'v3.51.0': import("./types").MigrateFunction<import("..").ProjectSchemaJSONV3_50_0, import("..").ProjectSchemaJSONV3_51_0>;
|
|
60
61
|
};
|
|
61
62
|
export * from './utils';
|
|
62
63
|
export declare const listTypePrefix = "PaginatedList";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaJSONV3_17_0, ProjectSchemaJSONV3_17_1 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_17_0, ProjectSchemaJSONV3_17_1>;
|
|
4
4
|
export default migrate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaJSONV3_18_2, ProjectSchemaJSONV3_19_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_18_2, ProjectSchemaJSONV3_19_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaJSONV3_20_0, ProjectSchemaJSONV3_21_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_20_0, ProjectSchemaJSONV3_21_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaJSONV3_21_0, ProjectSchemaJSONV3_22_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_21_0, ProjectSchemaJSONV3_22_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaJSONV3_22_0, ProjectSchemaJSONV3_23_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_22_0, ProjectSchemaJSONV3_23_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaJSONV3_23_0, ProjectSchemaJSONV3_24_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_23_0, ProjectSchemaJSONV3_24_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaJSONV3_24_0, ProjectSchemaJSONV3_25_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_24_0, ProjectSchemaJSONV3_25_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaJSONV3_25_0, ProjectSchemaJSONV3_26_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_25_0, ProjectSchemaJSONV3_26_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaJSONV3_26_0, ProjectSchemaJSONV3_27_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_26_0, ProjectSchemaJSONV3_27_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaJSONV3_27_0, ProjectSchemaJSONV3_28_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_27_0, ProjectSchemaJSONV3_28_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaJSONV3_28_0, ProjectSchemaJSONV3_29_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_28_0, ProjectSchemaJSONV3_29_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaJSONV3_29_0, ProjectSchemaJSONV3_30_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_29_0, ProjectSchemaJSONV3_30_0>;
|
|
4
4
|
export default migrate;
|