@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
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
},
|
|
155
155
|
"items": {
|
|
156
156
|
"oneOf": [
|
|
157
|
-
{"$ref": "#/definitions/refSchema"},
|
|
157
|
+
{ "$ref": "#/definitions/refSchema" },
|
|
158
158
|
{
|
|
159
159
|
"type": "object",
|
|
160
160
|
"properties": {
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
"allOfSchema": {
|
|
200
200
|
"title": "AllOfSchema",
|
|
201
201
|
"allOf": [
|
|
202
|
-
{"$ref": "#/definitions/propertySchema"},
|
|
202
|
+
{ "$ref": "#/definitions/propertySchema" },
|
|
203
203
|
{
|
|
204
204
|
"type": "object",
|
|
205
205
|
"properties": {
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
"oneOfSchema": {
|
|
254
254
|
"title": "OneOfSchema",
|
|
255
255
|
"allOf": [
|
|
256
|
-
{"$ref": "#/definitions/propertySchema"},
|
|
256
|
+
{ "$ref": "#/definitions/propertySchema" },
|
|
257
257
|
{
|
|
258
258
|
"type": "object",
|
|
259
259
|
"properties": {
|
|
@@ -284,10 +284,10 @@
|
|
|
284
284
|
"title": "Shape Schema",
|
|
285
285
|
"type": "object",
|
|
286
286
|
"oneOf": [
|
|
287
|
-
{"$ref": "#/definitions/shapeSchemaAllOf"},
|
|
288
|
-
{"$ref": "#/definitions/shapeSchemaOneOf"},
|
|
289
|
-
{"$ref": "#/definitions/shapeSchemaEnum"},
|
|
290
|
-
{"$ref": "#/definitions/objectSchema"}
|
|
287
|
+
{ "$ref": "#/definitions/shapeSchemaAllOf" },
|
|
288
|
+
{ "$ref": "#/definitions/shapeSchemaOneOf" },
|
|
289
|
+
{ "$ref": "#/definitions/shapeSchemaEnum" },
|
|
290
|
+
{ "$ref": "#/definitions/objectSchema" }
|
|
291
291
|
]
|
|
292
292
|
},
|
|
293
293
|
"queryMap": {
|
|
@@ -302,11 +302,11 @@
|
|
|
302
302
|
},
|
|
303
303
|
"args": {
|
|
304
304
|
"title": "Args",
|
|
305
|
-
"oneOf": [{"type": "string"}, {"$ref": "#/definitions/objectSchema"}]
|
|
305
|
+
"oneOf": [{ "type": "string" }, { "$ref": "#/definitions/objectSchema" }]
|
|
306
306
|
},
|
|
307
307
|
"returnShape": {
|
|
308
308
|
"title": "Return Shape",
|
|
309
|
-
"oneOf": [{"type": "string"}, {"$ref": "#/definitions/returnShapeArraySchema"}]
|
|
309
|
+
"oneOf": [{ "type": "string" }, { "$ref": "#/definitions/returnShapeArraySchema" }]
|
|
310
310
|
},
|
|
311
311
|
"directiveConfigItem": {
|
|
312
312
|
"title": "Directive Config Item",
|
|
@@ -471,7 +471,9 @@
|
|
|
471
471
|
"paths": {
|
|
472
472
|
"type": "object",
|
|
473
473
|
"patternProperties": {
|
|
474
|
-
"^[^\\n\\r]*$": {
|
|
474
|
+
"^[^\\n\\r]*$": {
|
|
475
|
+
"$ref": "#/definitions/parameterSerializeOptions"
|
|
476
|
+
}
|
|
475
477
|
}
|
|
476
478
|
}
|
|
477
479
|
},
|
|
@@ -837,13 +839,13 @@
|
|
|
837
839
|
"title": "Directive Mapping Array Item",
|
|
838
840
|
"description": "A tuple with a string key and a directive config to evaluate",
|
|
839
841
|
"type": "array",
|
|
840
|
-
"items": [{"type": "string"}, {"$ref": "#/definitions/directiveConfig"}]
|
|
842
|
+
"items": [{ "type": "string" }, { "$ref": "#/definitions/directiveConfig" }]
|
|
841
843
|
},
|
|
842
844
|
"directiveMappingArray": {
|
|
843
845
|
"title": "Directive Mapping Array",
|
|
844
846
|
"description": "An array of key / value or directive config tuples",
|
|
845
847
|
"type": "array",
|
|
846
|
-
"items": {"$ref": "#/definitions/directiveMappingArrayItem"}
|
|
848
|
+
"items": { "$ref": "#/definitions/directiveMappingArrayItem" }
|
|
847
849
|
},
|
|
848
850
|
"basicResolver": {
|
|
849
851
|
"title": "BasicResolver",
|
|
@@ -946,7 +948,7 @@
|
|
|
946
948
|
"title": "TakeshapeResolver",
|
|
947
949
|
"type": "object",
|
|
948
950
|
"properties": {
|
|
949
|
-
"if": {"type": "string"},
|
|
951
|
+
"if": { "type": "string" },
|
|
950
952
|
"id": {
|
|
951
953
|
"type": "string",
|
|
952
954
|
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
@@ -1046,7 +1048,7 @@
|
|
|
1046
1048
|
"title": "GraphqlResolver",
|
|
1047
1049
|
"type": "object",
|
|
1048
1050
|
"properties": {
|
|
1049
|
-
"if": {"type": "string"},
|
|
1051
|
+
"if": { "type": "string" },
|
|
1050
1052
|
"id": {
|
|
1051
1053
|
"type": "string",
|
|
1052
1054
|
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
@@ -1071,13 +1073,13 @@
|
|
|
1071
1073
|
"title": "GraphqlResolverOptions",
|
|
1072
1074
|
"type": "object",
|
|
1073
1075
|
"properties": {
|
|
1074
|
-
"selectionSet": {"type": "string"},
|
|
1075
|
-
"unboxParentSelectionSet": {"type": "boolean"},
|
|
1076
|
-
"ignoreErrors": {"type": "boolean"},
|
|
1077
|
-
"skipWhenMissingArgs": {"type": "boolean"},
|
|
1078
|
-
"ttl": {"type": "number"},
|
|
1079
|
-
"timeout": {"type": "number"},
|
|
1080
|
-
"retry": {"oneOf": [{"type": "number"}, {"type": "object"}]}
|
|
1076
|
+
"selectionSet": { "type": "string" },
|
|
1077
|
+
"unboxParentSelectionSet": { "type": "boolean" },
|
|
1078
|
+
"ignoreErrors": { "type": "boolean" },
|
|
1079
|
+
"skipWhenMissingArgs": { "type": "boolean" },
|
|
1080
|
+
"ttl": { "type": "number" },
|
|
1081
|
+
"timeout": { "type": "number" },
|
|
1082
|
+
"retry": { "oneOf": [{ "type": "number" }, { "type": "object" }] }
|
|
1081
1083
|
},
|
|
1082
1084
|
"additionalProperties": true
|
|
1083
1085
|
},
|
|
@@ -1109,7 +1111,7 @@
|
|
|
1109
1111
|
"title": "RestResolver",
|
|
1110
1112
|
"type": "object",
|
|
1111
1113
|
"properties": {
|
|
1112
|
-
"if": {"type": "string"},
|
|
1114
|
+
"if": { "type": "string" },
|
|
1113
1115
|
"id": {
|
|
1114
1116
|
"type": "string",
|
|
1115
1117
|
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
@@ -1137,10 +1139,10 @@
|
|
|
1137
1139
|
"title": "RestResolverOptions",
|
|
1138
1140
|
"type": "object",
|
|
1139
1141
|
"properties": {
|
|
1140
|
-
"trailingSlash": {"type": "boolean"},
|
|
1141
|
-
"ttl": {"type": "number"},
|
|
1142
|
-
"timeout": {"type": "number"},
|
|
1143
|
-
"retry": {"oneOf": [{"type": "number"}, {"type": "object"}]}
|
|
1142
|
+
"trailingSlash": { "type": "boolean" },
|
|
1143
|
+
"ttl": { "type": "number" },
|
|
1144
|
+
"timeout": { "type": "number" },
|
|
1145
|
+
"retry": { "oneOf": [{ "type": "number" }, { "type": "object" }] }
|
|
1144
1146
|
},
|
|
1145
1147
|
"additionalProperties": true
|
|
1146
1148
|
},
|
|
@@ -1191,7 +1193,7 @@
|
|
|
1191
1193
|
"title": "AwsLambdaResolver",
|
|
1192
1194
|
"type": "object",
|
|
1193
1195
|
"properties": {
|
|
1194
|
-
"if": {"type": "string"},
|
|
1196
|
+
"if": { "type": "string" },
|
|
1195
1197
|
"id": {
|
|
1196
1198
|
"type": "string",
|
|
1197
1199
|
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
@@ -1282,7 +1284,7 @@
|
|
|
1282
1284
|
},
|
|
1283
1285
|
"resolver": {
|
|
1284
1286
|
"title": "Resolver",
|
|
1285
|
-
"oneOf": [{"$ref": "#/definitions/basicResolver"}, {"$ref": "#/definitions/composeResolver"}]
|
|
1287
|
+
"oneOf": [{ "$ref": "#/definitions/basicResolver" }, { "$ref": "#/definitions/composeResolver" }]
|
|
1286
1288
|
},
|
|
1287
1289
|
"query": {
|
|
1288
1290
|
"title": "Query JSON",
|
|
@@ -2287,7 +2289,7 @@
|
|
|
2287
2289
|
"layers": {
|
|
2288
2290
|
"type": "array",
|
|
2289
2291
|
"items": {
|
|
2290
|
-
"oneOf": [{"type": "string"}, {"$ref": "#/definitions/layerConfig"}]
|
|
2292
|
+
"oneOf": [{ "type": "string" }, { "$ref": "#/definitions/layerConfig" }]
|
|
2291
2293
|
}
|
|
2292
2294
|
},
|
|
2293
2295
|
"dataKey": {
|
|
@@ -6,15 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.resolveSchemaShapeDependencies = exports.collectReferencedShapeNames = void 0;
|
|
7
7
|
const util_1 = require("@takeshape/util");
|
|
8
8
|
const get_js_1 = __importDefault(require("lodash/get.js"));
|
|
9
|
-
const set_js_1 = __importDefault(require("lodash/set.js"));
|
|
10
9
|
const isObject_js_1 = __importDefault(require("lodash/isObject.js"));
|
|
11
10
|
const pick_js_1 = __importDefault(require("lodash/pick.js"));
|
|
12
|
-
const
|
|
13
|
-
const refs_1 = require("./refs");
|
|
11
|
+
const set_js_1 = __importDefault(require("lodash/set.js"));
|
|
14
12
|
const interfaces_1 = require("./interfaces");
|
|
13
|
+
const refs_1 = require("./refs");
|
|
15
14
|
const schema_util_1 = require("./schema-util");
|
|
15
|
+
const types_1 = require("./types");
|
|
16
16
|
function getGraphQLServiceShapeMap(layers) {
|
|
17
|
-
return Object.assign({}, ...Object.values(layers).map(layer => layer.schema?.shapes ?? {}));
|
|
17
|
+
return Object.assign({}, ...Object.values(layers).map((layer) => layer.schema?.shapes ?? {}));
|
|
18
18
|
}
|
|
19
19
|
function schemaExtendsShape(context, shapeName, schema) {
|
|
20
20
|
return ((0, types_1.isExtendsSchema)(schema) &&
|
|
@@ -22,7 +22,7 @@ function schemaExtendsShape(context, shapeName, schema) {
|
|
|
22
22
|
}
|
|
23
23
|
function getMissingPropertyRefs(projectSchema, getNamespace) {
|
|
24
24
|
const propertyRefs = (0, refs_1.getAllPropertyRefs)(projectSchema);
|
|
25
|
-
return propertyRefs.filter(ref => {
|
|
25
|
+
return propertyRefs.filter((ref) => {
|
|
26
26
|
const path = (0, refs_1.propertyRefItemToPath)(getNamespace, ref);
|
|
27
27
|
return !(0, get_js_1.default)(projectSchema, path);
|
|
28
28
|
});
|
|
@@ -52,7 +52,7 @@ function getShapeRefs(services, serviceSchemas, propertyRefs) {
|
|
|
52
52
|
return results;
|
|
53
53
|
}
|
|
54
54
|
function interfacesToShapeNames(projectSchema, shapeRefArray) {
|
|
55
|
-
return shapeRefArray.map(shapeRef => (0, refs_1.refItemToNamespacedShapeName)((0, refs_1.refExpressionToRefItem)(projectSchema, shapeRef)));
|
|
55
|
+
return shapeRefArray.map((shapeRef) => (0, refs_1.refItemToNamespacedShapeName)((0, refs_1.refExpressionToRefItem)(projectSchema, shapeRef)));
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* Add all referenced shape names to the refSet meant to be used as a callback to visitSchemaProperties
|
|
@@ -122,7 +122,7 @@ function resolveSchemaShapeDependencies(projectSchema, serviceLayers) {
|
|
|
122
122
|
collectDependencies(requiredShapeNames);
|
|
123
123
|
// Collect interfaces that requiredShapeNames implement
|
|
124
124
|
const interfaceNames = new Set();
|
|
125
|
-
const requiredShapes = (0, util_1.mapSet)(requiredShapeNames, shapeName => newSchema.shapes[shapeName] ?? remoteShapeMap[shapeName]);
|
|
125
|
+
const requiredShapes = (0, util_1.mapSet)(requiredShapeNames, (shapeName) => newSchema.shapes[shapeName] ?? remoteShapeMap[shapeName]);
|
|
126
126
|
for (const shape of requiredShapes) {
|
|
127
127
|
if (shape?.interfaces) {
|
|
128
128
|
(0, util_1.addAll)(interfaceNames, interfacesToShapeNames(projectSchema, shape.interfaces));
|
|
@@ -130,7 +130,10 @@ function resolveSchemaShapeDependencies(projectSchema, serviceLayers) {
|
|
|
130
130
|
}
|
|
131
131
|
// Collect implementations for interfaces in requiredShapeNames
|
|
132
132
|
const implementationNames = new Set();
|
|
133
|
-
const implementations = (0, interfaces_1.getImplementationShapeNameMap)({
|
|
133
|
+
const implementations = (0, interfaces_1.getImplementationShapeNameMap)({
|
|
134
|
+
...newSchema.shapes,
|
|
135
|
+
...remoteShapeMap
|
|
136
|
+
});
|
|
134
137
|
for (const shape of requiredShapes) {
|
|
135
138
|
if ((0, interfaces_1.isInterfaceShape)(shape) && implementations[shape.name]) {
|
|
136
139
|
(0, util_1.addAll)(implementationNames, implementations[shape.name]);
|
|
@@ -143,7 +146,10 @@ function resolveSchemaShapeDependencies(projectSchema, serviceLayers) {
|
|
|
143
146
|
(0, util_1.addAll)(requiredShapeNames, implementationNames);
|
|
144
147
|
// Populate a ShapeMap with the remote shapes we've gathered
|
|
145
148
|
// A combined context which prefers remote shapes for use when merging/inlining
|
|
146
|
-
const mergingContext = {
|
|
149
|
+
const mergingContext = {
|
|
150
|
+
services: newSchema.services,
|
|
151
|
+
shapes: { ...newSchema.shapes, ...remoteShapeMap }
|
|
152
|
+
};
|
|
147
153
|
for (const name of requiredShapeNames) {
|
|
148
154
|
const localShape = newSchema.shapes[name];
|
|
149
155
|
const remoteShape = remoteShapeMap[name];
|
|
@@ -4,15 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getServiceInfo = exports.getServiceObjectFields = exports.prepareServiceUpdate = exports.validateServiceConfig = exports.decryptServiceMap = exports.decryptServiceConfig = void 0;
|
|
7
|
-
const util_1 = require("@takeshape/util");
|
|
8
|
-
const json_schema_1 = require("@takeshape/json-schema");
|
|
9
7
|
const errors_1 = require("@takeshape/errors");
|
|
10
|
-
const
|
|
8
|
+
const json_schema_1 = require("@takeshape/json-schema");
|
|
9
|
+
const util_1 = require("@takeshape/util");
|
|
11
10
|
const isEqual_js_1 = __importDefault(require("lodash/isEqual.js"));
|
|
12
|
-
const
|
|
13
|
-
const schema_util_1 = require("../schema-util");
|
|
11
|
+
const isNull_js_1 = __importDefault(require("lodash/isNull.js"));
|
|
14
12
|
const constants_1 = require("../constants");
|
|
13
|
+
const schema_util_1 = require("../schema-util");
|
|
15
14
|
const schemas_1 = require("../schemas");
|
|
15
|
+
const utils_1 = require("../types/utils");
|
|
16
16
|
const validate_1 = require("../validate");
|
|
17
17
|
const util_2 = require("./util");
|
|
18
18
|
/**
|
|
@@ -67,7 +67,6 @@ exports.validateServiceConfig = validateServiceConfig;
|
|
|
67
67
|
* Prepare a `ServiceConfig` object update, validating the overall structure
|
|
68
68
|
* and encrypting the `ServiceAuthentication` object.
|
|
69
69
|
*/
|
|
70
|
-
// eslint-disable-next-line max-params
|
|
71
70
|
function prepareServiceUpdate(encryptFn, decryptFn, projectSchema, serviceConfigUpdate, serviceKey) {
|
|
72
71
|
const storedServiceConfig = (0, util_2.getStoredServiceConfig)(projectSchema, serviceKey);
|
|
73
72
|
let newServiceConfig = serviceConfigUpdate;
|
|
@@ -77,6 +76,7 @@ function prepareServiceUpdate(encryptFn, decryptFn, projectSchema, serviceConfig
|
|
|
77
76
|
}
|
|
78
77
|
const { authentication, authenticationType } = newServiceConfig;
|
|
79
78
|
if (authenticationType === 'none' || (0, isNull_js_1.default)(authentication)) {
|
|
79
|
+
// biome-ignore lint/performance/noDelete: Property presence may matter here
|
|
80
80
|
delete newServiceConfig.authentication;
|
|
81
81
|
}
|
|
82
82
|
else if (authentication !== undefined) {
|
|
@@ -102,16 +102,17 @@ function prepareServiceUpdate(encryptFn, decryptFn, projectSchema, serviceConfig
|
|
|
102
102
|
}
|
|
103
103
|
exports.prepareServiceUpdate = prepareServiceUpdate;
|
|
104
104
|
function getServiceObjectFields(projectSchema, shape, provider) {
|
|
105
|
-
return (getServiceInfo(projectSchema, shape)[provider] ?? []).filter(serviceInfo => serviceInfo.generators[constants_1.SERVICE_OBJECT_PATTERN_NAME]);
|
|
105
|
+
return (getServiceInfo(projectSchema, shape)[provider] ?? []).filter((serviceInfo) => serviceInfo.generators[constants_1.SERVICE_OBJECT_PATTERN_NAME]);
|
|
106
106
|
}
|
|
107
107
|
exports.getServiceObjectFields = getServiceObjectFields;
|
|
108
108
|
// Returns info for all services found in shape, keyed by provider
|
|
109
109
|
function getServiceInfo(projectSchema, shape) {
|
|
110
110
|
const result = {};
|
|
111
111
|
// Get inline dependencies by not following refs with @resolver
|
|
112
|
-
const inlineDepShapes = (0, schema_util_1.getShapeDependencies)(projectSchema, shape, prop => !prop['@resolver']).map(name => projectSchema.shapes[name]);
|
|
112
|
+
const inlineDepShapes = (0, schema_util_1.getShapeDependencies)(projectSchema, shape, (prop) => !prop['@resolver']).map((name) => projectSchema.shapes[name]);
|
|
113
113
|
const shapesToCheck = [shape, ...inlineDepShapes];
|
|
114
|
-
|
|
114
|
+
for (const thisShape of shapesToCheck) {
|
|
115
|
+
// biome-ignore lint/complexity/noForEach: Types for createSchemaPropertyList do not include the iterator
|
|
115
116
|
(0, schema_util_1.createSchemaPropertyList)(projectSchema, thisShape).forEach(([key, value]) => {
|
|
116
117
|
const resolver = value['@resolver'];
|
|
117
118
|
if (!(0, utils_1.isServiceResolver)(resolver)) {
|
|
@@ -142,7 +143,7 @@ function getServiceInfo(projectSchema, shape) {
|
|
|
142
143
|
};
|
|
143
144
|
if (Array.isArray(result[provider])) {
|
|
144
145
|
// Dedupe service info
|
|
145
|
-
if (!result[provider].find(existingServiceInfo => (0, isEqual_js_1.default)(existingServiceInfo, serviceInfo))) {
|
|
146
|
+
if (!result[provider].find((existingServiceInfo) => (0, isEqual_js_1.default)(existingServiceInfo, serviceInfo))) {
|
|
146
147
|
result[provider].push(serviceInfo);
|
|
147
148
|
}
|
|
148
149
|
}
|
|
@@ -150,7 +151,7 @@ function getServiceInfo(projectSchema, shape) {
|
|
|
150
151
|
result[provider] = [serviceInfo];
|
|
151
152
|
}
|
|
152
153
|
});
|
|
153
|
-
}
|
|
154
|
+
}
|
|
154
155
|
return result;
|
|
155
156
|
}
|
|
156
157
|
exports.getServiceInfo = getServiceInfo;
|
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getResolverServices = exports.isMissingAuth = exports.getServiceNamespaces = exports.getStoredServiceConfig = void 0;
|
|
7
|
+
const util_1 = require("@takeshape/util");
|
|
7
8
|
const isEmpty_js_1 = __importDefault(require("lodash/isEmpty.js"));
|
|
8
9
|
const uniq_js_1 = __importDefault(require("lodash/uniq.js"));
|
|
9
|
-
const util_1 = require("@takeshape/util");
|
|
10
10
|
/**
|
|
11
11
|
* Get a service config from a project schema.
|
|
12
12
|
*/
|
|
@@ -25,12 +25,12 @@ function getServiceNamespaces(context) {
|
|
|
25
25
|
const namespaces = new Map();
|
|
26
26
|
const { services } = context;
|
|
27
27
|
if (services) {
|
|
28
|
-
Object.keys(services)
|
|
28
|
+
for (const serviceKey of Object.keys(services)) {
|
|
29
29
|
const namespace = services[serviceKey]?.namespace;
|
|
30
30
|
if (namespace) {
|
|
31
31
|
namespaces.set(namespace, serviceKey);
|
|
32
32
|
}
|
|
33
|
-
}
|
|
33
|
+
}
|
|
34
34
|
}
|
|
35
35
|
return namespaces;
|
|
36
36
|
}
|
|
@@ -41,6 +41,6 @@ function isMissingAuth(service) {
|
|
|
41
41
|
exports.isMissingAuth = isMissingAuth;
|
|
42
42
|
function getResolverServices(resolver) {
|
|
43
43
|
const resolverArray = 'compose' in resolver ? resolver.compose : [resolver];
|
|
44
|
-
return (0, uniq_js_1.default)(resolverArray.map(resolver => ('service' in resolver ? resolver.service : undefined)).filter(util_1.isDefined));
|
|
44
|
+
return (0, uniq_js_1.default)(resolverArray.map((resolver) => ('service' in resolver ? resolver.service : undefined)).filter(util_1.isDefined));
|
|
45
45
|
}
|
|
46
46
|
exports.getResolverServices = getResolverServices;
|
|
@@ -5,17 +5,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getShapeListQueryArgs = exports.commonSearchArgs = exports.getMutationResultType = exports.getMutationArgs = exports.getIDQueryArgs = exports.getSearchResultsShape = exports.getPaginatedListShape = exports.TSContentStructureInput = exports.termsProps = exports.localeProps = exports.commonSearchProps = exports.TSSearchSortInput = exports.DeleteResult = exports.DuplicateResult = exports.UpdateResult = exports.CreateResult = exports.SearchResults = exports.PaginatedList = exports.DeleteArgs = exports.DuplicateArgs = exports.UpdateArgs = exports.CreateArgs = exports.TSSearchArgs = exports.TSListArgs = exports.TSGetSingletonArgs = exports.TSGetArgs = void 0;
|
|
7
7
|
const util_1 = require("@takeshape/util");
|
|
8
|
-
const keyBy_js_1 = __importDefault(require("lodash/keyBy.js"));
|
|
9
8
|
const get_js_1 = __importDefault(require("lodash/get.js"));
|
|
10
|
-
const
|
|
11
|
-
const refs_1 = require("../refs");
|
|
12
|
-
const migration_1 = require("../migration");
|
|
13
|
-
const merge_1 = require("../util/merge");
|
|
9
|
+
const keyBy_js_1 = __importDefault(require("lodash/keyBy.js"));
|
|
14
10
|
const create_input_schema_1 = require("../create-input-schema");
|
|
11
|
+
const migration_1 = require("../migration");
|
|
12
|
+
const refs_1 = require("../refs");
|
|
13
|
+
const schema_util_1 = require("../schema-util");
|
|
15
14
|
const types_1 = require("../types");
|
|
16
|
-
const
|
|
17
|
-
const types_2 = require("./types");
|
|
15
|
+
const merge_1 = require("../util/merge");
|
|
18
16
|
const names_1 = require("./names");
|
|
17
|
+
const types_2 = require("./types");
|
|
18
|
+
const where_1 = require("./where");
|
|
19
19
|
exports.TSGetArgs = getIDQueryArgs('TSGetArgs');
|
|
20
20
|
exports.TSGetSingletonArgs = getIDQueryArgs('TSGetSingletonArgs');
|
|
21
21
|
exports.TSListArgs = getShapeListQueryArgs('TSListArgs', true);
|
|
@@ -119,7 +119,10 @@ function getSearchResultsShape(context, shape) {
|
|
|
119
119
|
[shapeName]: (0, schema_util_1.createShape)(shapeName, {
|
|
120
120
|
type: 'object',
|
|
121
121
|
properties: {
|
|
122
|
-
results: {
|
|
122
|
+
results: {
|
|
123
|
+
type: 'array',
|
|
124
|
+
items: { '@ref': `local:${shape.name}` }
|
|
125
|
+
},
|
|
123
126
|
total: { type: 'integer' }
|
|
124
127
|
},
|
|
125
128
|
required: ['results', 'total']
|
|
@@ -171,6 +174,7 @@ function rewriteRefs(context, shapeSchema, rewriteShapeName) {
|
|
|
171
174
|
? (0, refs_1.refItemToAtRef)(refItem)
|
|
172
175
|
: `local:${rewriteShapeName((0, refs_1.refItemToNamespacedShapeName)(refItem))}`;
|
|
173
176
|
if (value.$ref) {
|
|
177
|
+
// biome-ignore lint/performance/noDelete: Property presence may matter here
|
|
174
178
|
delete value.$ref;
|
|
175
179
|
}
|
|
176
180
|
}
|
|
@@ -215,7 +219,7 @@ function getMutationArgs(templateName, verb) {
|
|
|
215
219
|
...(verb !== types_2.TemplateVerbs.Delete &&
|
|
216
220
|
(0, keyBy_js_1.default)((0, schema_util_1.getShapeDependencies)(projectSchema,
|
|
217
221
|
// get the shape dependencies of the shape with the @input swapped
|
|
218
|
-
(0, schema_util_1.createShape)(inputShape.name, rewrittenSchema), propSchema => {
|
|
222
|
+
(0, schema_util_1.createShape)(inputShape.name, rewrittenSchema), (propSchema) => {
|
|
219
223
|
if (propSchema['@resolver']) {
|
|
220
224
|
return false;
|
|
221
225
|
}
|
|
@@ -225,7 +229,7 @@ function getMutationArgs(templateName, verb) {
|
|
|
225
229
|
}
|
|
226
230
|
return true;
|
|
227
231
|
})
|
|
228
|
-
.map(shapeName => {
|
|
232
|
+
.map((shapeName) => {
|
|
229
233
|
const shape = projectSchema.shapes[shapeName];
|
|
230
234
|
if (!shape) {
|
|
231
235
|
return;
|
|
@@ -242,7 +246,9 @@ function getMutationArgs(templateName, verb) {
|
|
|
242
246
|
exports.getMutationArgs = getMutationArgs;
|
|
243
247
|
function getMutationResultType(verb) {
|
|
244
248
|
return (context, shape) => {
|
|
245
|
-
const shapeName = (0, util_1.formatShapeName)([verb, shape.name, 'result'], {
|
|
249
|
+
const shapeName = (0, util_1.formatShapeName)([verb, shape.name, 'result'], {
|
|
250
|
+
shapeNameIndex: 1
|
|
251
|
+
});
|
|
246
252
|
const result = verb === types_2.TemplateVerbs.Delete ? { type: 'boolean' } : { '@ref': `local:${shape.name}` };
|
|
247
253
|
return {
|
|
248
254
|
shapeName,
|
|
@@ -309,7 +315,7 @@ function getShapeListQueryArgs(templateName, legacyArgs) {
|
|
|
309
315
|
const isAllShapes = shape.name === 'TSSearchable';
|
|
310
316
|
const shapeName = isAllShapes ? templateName : (0, refs_1.getFlattenedTemplateShapeName)(shape.name, templateName);
|
|
311
317
|
const shapes = isAllShapes
|
|
312
|
-
? Object.values(projectSchema.shapes).filter(s => s.model !== undefined || (0, types_1.isCachedShape)(s))
|
|
318
|
+
? Object.values(projectSchema.shapes).filter((s) => s.model !== undefined || (0, types_1.isCachedShape)(s))
|
|
313
319
|
: [shape];
|
|
314
320
|
const { schema, dependencies } = (0, where_1.getWhereSearchArg)(projectSchema, shapes);
|
|
315
321
|
return {
|
|
@@ -4,17 +4,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getWhereSearchArg = exports.getWhereShape = exports.getPropertyComparisonType = exports.getFields = exports.getFieldTypeComparison = exports.boolOpDescriptionMap = exports.booleanOperators = exports.comparatorDescriptions = exports.fieldTypeComparison = exports.exceededRelationshipDepth = exports.MAX_RELATIONSHIP_DEPTH = void 0;
|
|
7
|
-
const
|
|
7
|
+
const util_1 = require("@takeshape/util");
|
|
8
|
+
const blueimp_md5_1 = __importDefault(require("blueimp-md5"));
|
|
8
9
|
const isFunction_js_1 = __importDefault(require("lodash/isFunction.js"));
|
|
9
10
|
const uniqBy_js_1 = __importDefault(require("lodash/uniqBy.js"));
|
|
10
|
-
const
|
|
11
|
-
const util_1 = require("@takeshape/util");
|
|
12
|
-
const schema_util_1 = require("../schema-util");
|
|
11
|
+
const unset_js_1 = __importDefault(require("lodash/unset.js"));
|
|
13
12
|
const api_version_1 = require("../api-version");
|
|
14
13
|
const refs_1 = require("../refs");
|
|
15
|
-
const unions_1 = require("../unions");
|
|
16
|
-
const utils_1 = require("../types/utils");
|
|
17
14
|
const relationships_1 = require("../relationships");
|
|
15
|
+
const schema_util_1 = require("../schema-util");
|
|
16
|
+
const utils_1 = require("../types/utils");
|
|
17
|
+
const unions_1 = require("../unions");
|
|
18
18
|
exports.MAX_RELATIONSHIP_DEPTH = 1;
|
|
19
19
|
const exceededRelationshipDepth = (depth = 0) => depth >= exports.MAX_RELATIONSHIP_DEPTH;
|
|
20
20
|
exports.exceededRelationshipDepth = exceededRelationshipDepth;
|
|
@@ -51,9 +51,18 @@ exports.fieldTypeComparison = {
|
|
|
51
51
|
boolean: { comparators: ['eq'], type: 'boolean' },
|
|
52
52
|
string: { comparators: ['eq', 'in', 'match', 'regexp'], type: 'string' },
|
|
53
53
|
date: { comparators: ['eq', 'lt', 'lte', 'gt', 'gte'], type: 'string' },
|
|
54
|
-
number: {
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
number: {
|
|
55
|
+
comparators: ['eq', 'lt', 'lte', 'gt', 'gte', 'in'],
|
|
56
|
+
type: 'number'
|
|
57
|
+
},
|
|
58
|
+
integer: {
|
|
59
|
+
comparators: ['eq', 'lt', 'lte', 'gt', 'gte', 'in'],
|
|
60
|
+
type: 'integer'
|
|
61
|
+
},
|
|
62
|
+
workflow: {
|
|
63
|
+
comparators: ['eq', 'lt', 'lte', 'gt', 'gte', 'in'],
|
|
64
|
+
type: 'string'
|
|
65
|
+
},
|
|
57
66
|
draftjs: { comparators: ['match'], type: 'string' },
|
|
58
67
|
mdx: { comparators: ['match'], type: 'string' }
|
|
59
68
|
};
|
|
@@ -143,7 +152,7 @@ function truncateNames(names) {
|
|
|
143
152
|
*/
|
|
144
153
|
function getRelationshipShapeName(refs) {
|
|
145
154
|
return refs
|
|
146
|
-
.map(ref => {
|
|
155
|
+
.map((ref) => {
|
|
147
156
|
const shapeName = ref.split(':')[1];
|
|
148
157
|
return (0, util_1.formatShapeName)(shapeName);
|
|
149
158
|
})
|
|
@@ -157,7 +166,7 @@ function getTypeName(name, prop, shapeName, context) {
|
|
|
157
166
|
const { projectSchema, relationshipDepth, conflictingProperties } = context;
|
|
158
167
|
let type = getPropType(projectSchema, name, prop);
|
|
159
168
|
if (isId(name)) {
|
|
160
|
-
return
|
|
169
|
+
return 'TSWhereID';
|
|
161
170
|
}
|
|
162
171
|
const relationship = (0, relationships_1.getRelationship)(prop);
|
|
163
172
|
if (relationship) {
|
|
@@ -170,7 +179,7 @@ function getTypeName(name, prop, shapeName, context) {
|
|
|
170
179
|
}
|
|
171
180
|
if ((0, unions_1.isUnionSchema)(prop)) {
|
|
172
181
|
if (prop.oneOf.length > 1) {
|
|
173
|
-
const shapeNames = truncateNames(joinShapeNames((0, unions_1.enumerateOneOfKeys)(projectSchema, prop.oneOf).map(child => child.shapeName)));
|
|
182
|
+
const shapeNames = truncateNames(joinShapeNames((0, unions_1.enumerateOneOfKeys)(projectSchema, prop.oneOf).map((child) => child.shapeName)));
|
|
174
183
|
return `TSWhere${shapeNames}Union`;
|
|
175
184
|
}
|
|
176
185
|
type = 'object';
|
|
@@ -263,7 +272,7 @@ function getPropertyComparisonType(name, prop, shapeName, context) {
|
|
|
263
272
|
});
|
|
264
273
|
}
|
|
265
274
|
else if ((0, unions_1.isUnionSchema)(propOrItems)) {
|
|
266
|
-
const shapes = (0, unions_1.enumerateOneOfKeys)(projectSchema, propOrItems.oneOf).map(option => projectSchema.shapes[option.shapeName]);
|
|
275
|
+
const shapes = (0, unions_1.enumerateOneOfKeys)(projectSchema, propOrItems.oneOf).map((option) => projectSchema.shapes[option.shapeName]);
|
|
267
276
|
props = getFields(typeName, shapes, {
|
|
268
277
|
...context,
|
|
269
278
|
booleanOperators: false
|
|
@@ -357,7 +366,7 @@ function getReferencedShape(context) {
|
|
|
357
366
|
* Expand union shapes
|
|
358
367
|
*/
|
|
359
368
|
function expandUnionShapes(projectSchema, shapes) {
|
|
360
|
-
return (0, uniqBy_js_1.default)(shapes.flatMap(shape => (0, unions_1.isUnionSchema)(shape.schema) ? shape.schema.oneOf.map(getReferencedShape(projectSchema)).filter(util_1.isDefined) : shape), 'name');
|
|
369
|
+
return (0, uniqBy_js_1.default)(shapes.flatMap((shape) => (0, unions_1.isUnionSchema)(shape.schema) ? shape.schema.oneOf.map(getReferencedShape(projectSchema)).filter(util_1.isDefined) : shape), 'name');
|
|
361
370
|
}
|
|
362
371
|
function getWhereShape(projectSchema, selectedShapes) {
|
|
363
372
|
const shapeName = selectedShapes.length === 1 ? `TSWhere${(0, util_1.pascalCase)(selectedShapes[0].name)}Input` : 'TSWhereInput';
|
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.isOAuth2BearerAuthentication = exports.isOAuth2Authentication = exports.isSearchParamsAuthentication = exports.isBasicAuthentication = exports.isBearerAuthentication = exports.isServiceAuthentication = exports.isServiceConfigWithCustomAuthentication = exports.isServiceConfigWithOAuth2Authentication = exports.isEncryptedServiceConfig = exports.isShopifyServiceConfig = exports.isOpenAPIServiceConfig = exports.isRESTServiceConfig = exports.isGraphQLServiceConfig = exports.isAnyServiceConfig = exports.isObjectSchema = exports.isReturnShapeArraySchema = exports.isArraySchema = exports.isEnumSchema = exports.isOneOfSchema = exports.isExtendsSchema = exports.isAllOfSchema = exports.isRefSchemaLegacy = exports.isRefSchema = exports.isParameterSerializeStyleOptions = exports.isParameterSerializeStyleForPathParams = exports.isParameterSerializeStyleForSearchParams = exports.isParameterOpOp = exports.isParameterOpValue = exports.isParameterOpMapping = exports.isParameterOpNested = exports.isParameterOp = exports.isParameterSerializeContentOptions = exports.isDirectiveConfig = exports.isDirectiveMappingArray = exports.isDirectiveMappingMap = exports.containsResolver = exports.isProjectSchemaWithServices = exports.isAIAgentStateExecution = exports.isAIResolver = exports.isAIResolverName = exports.aiResolverNames = exports.isUtilResolver = exports.isAwsLambdaResolver = exports.isRestResolver = exports.isGraphqlResolver = exports.isShapedbResolver = exports.isTakeshapeResolver = exports.isComposeResolver = exports.isServiceResolver = exports.isBasicResolver = void 0;
|
|
7
7
|
exports.isMeshShape = exports.getCachedShapeMap = exports.listCachedShapes = exports.isCachedShape = exports.isModelShape = exports.isPropertySchemaWithRelationship = exports.getRefType = exports.getArgsType = exports.isCustomAuthentication = exports.isGoogleAuthentication = void 0;
|
|
8
8
|
const util_1 = require("@takeshape/util");
|
|
9
|
+
const has_js_1 = __importDefault(require("lodash/has.js"));
|
|
10
|
+
const isArray_js_1 = __importDefault(require("lodash/isArray.js"));
|
|
9
11
|
const isPlainObject_js_1 = __importDefault(require("lodash/isPlainObject.js"));
|
|
10
12
|
const isString_js_1 = __importDefault(require("lodash/isString.js"));
|
|
11
|
-
const isArray_js_1 = __importDefault(require("lodash/isArray.js"));
|
|
12
|
-
const has_js_1 = __importDefault(require("lodash/has.js"));
|
|
13
13
|
const isUndefined_js_1 = __importDefault(require("lodash/isUndefined.js"));
|
|
14
14
|
const schemas_1 = require("../schemas");
|
|
15
15
|
const types_1 = require("./types");
|
|
@@ -77,7 +77,7 @@ function containsResolver(resolver, predicate) {
|
|
|
77
77
|
if (isBasicResolver(resolver)) {
|
|
78
78
|
return predicate(resolver);
|
|
79
79
|
}
|
|
80
|
-
return Boolean(resolver.compose.find(resolver => containsResolver(resolver, predicate)));
|
|
80
|
+
return Boolean(resolver.compose.find((resolver) => containsResolver(resolver, predicate)));
|
|
81
81
|
}
|
|
82
82
|
exports.containsResolver = containsResolver;
|
|
83
83
|
/** Directive Mapping Utils **/
|