@takeshape/schema 11.52.0 → 11.55.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/__tests__/_examples.test.js +77 -0
- package/dist/__tests__/agents.test.js +163 -0
- package/dist/__tests__/api-version.test.js +24 -0
- package/dist/__tests__/builtin-schema.test.js +18 -0
- package/dist/__tests__/content-schema-transform.test.d.ts +1 -0
- package/dist/__tests__/content-schema-transform.test.js +522 -0
- package/dist/__tests__/create-input-schema.test.d.ts +1 -0
- package/dist/__tests__/create-input-schema.test.js +184 -0
- package/dist/__tests__/enum.test.d.ts +1 -0
- package/dist/__tests__/enum.test.js +36 -0
- package/dist/__tests__/flatten-templates.test.d.ts +1 -0
- package/dist/__tests__/flatten-templates.test.js +40 -0
- package/dist/__tests__/get-is-leaf.test.d.ts +1 -0
- package/dist/__tests__/get-is-leaf.test.js +50 -0
- package/dist/__tests__/interfaces.test.d.ts +1 -0
- package/dist/__tests__/interfaces.test.js +219 -0
- package/dist/__tests__/migration.test.d.ts +1 -0
- package/dist/__tests__/migration.test.js +34 -0
- package/dist/__tests__/mocks.test.d.ts +1 -0
- package/dist/__tests__/mocks.test.js +24 -0
- package/dist/__tests__/refs.test.d.ts +1 -0
- package/dist/__tests__/refs.test.js +752 -0
- package/dist/__tests__/relationships.test.d.ts +1 -0
- package/dist/__tests__/relationships.test.js +638 -0
- package/dist/__tests__/schema-transform.test.d.ts +1 -0
- package/dist/__tests__/schema-transform.test.js +205 -0
- package/dist/__tests__/schema-util.test.d.ts +1 -0
- package/dist/__tests__/schema-util.test.js +1731 -0
- package/dist/__tests__/service-dependencies.test.d.ts +1 -0
- package/dist/__tests__/service-dependencies.test.js +360 -0
- package/dist/__tests__/unions.test.d.ts +1 -0
- package/dist/__tests__/unions.test.js +44 -0
- package/dist/__tests__/validate.test.d.ts +1 -0
- package/dist/__tests__/validate.test.js +1926 -0
- package/dist/__tests__/workflows.test.d.ts +3 -0
- package/dist/__tests__/workflows.test.js +149 -0
- package/dist/agents.d.ts +14 -0
- package/dist/auth-schemas.d.ts +125 -0
- package/dist/builtin-schema.d.ts +8 -0
- package/dist/content-schema-transform.d.ts +35 -0
- package/dist/content-schema-transform.js +162 -0
- package/dist/create-input-schema.d.ts +9 -0
- package/dist/enum.d.ts +2 -0
- package/dist/flatten-templates.d.ts +2 -0
- package/dist/flatten-templates.js +20 -0
- package/dist/get-is-leaf.d.ts +3 -0
- package/dist/get-is-leaf.js +56 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +46 -0
- package/dist/interfaces.d.ts +12 -0
- package/dist/interfaces.js +85 -0
- package/dist/layers/__tests__/layers.test.d.ts +1 -0
- package/dist/layers/__tests__/layers.test.js +38 -0
- package/dist/layers/layers.d.ts +26 -0
- package/dist/layers/layers.js +301 -0
- package/dist/layers/refs.d.ts +102 -0
- package/dist/layers/refs.js +220 -0
- package/dist/layers/type-utils.d.ts +59 -0
- package/dist/layers/type-utils.js +118 -0
- package/dist/layers/visitor.d.ts +5 -0
- package/dist/layers/visitor.js +38 -0
- package/dist/migration/index.d.ts +64 -0
- package/dist/migration/index.js +122 -0
- package/dist/migration/to/__tests__/v3.10.0.test.d.ts +1 -0
- package/dist/migration/to/__tests__/v3.10.0.test.js +90 -0
- package/dist/migration/to/__tests__/v3.12.3.test.d.ts +1 -0
- package/dist/migration/to/__tests__/v3.12.3.test.js +103 -0
- package/dist/migration/to/__tests__/v3.17.test.d.ts +1 -0
- package/dist/migration/to/__tests__/v3.17.test.js +71 -0
- package/dist/migration/to/__tests__/v3.34.0.test.d.ts +1 -0
- package/dist/migration/to/__tests__/v3.34.0.test.js +240 -0
- package/dist/migration/to/__tests__/v3.39.0.test.d.ts +1 -0
- package/dist/migration/to/__tests__/v3.39.0.test.js +116 -0
- package/dist/migration/to/__tests__/v3.46.0.test.d.ts +1 -0
- package/dist/migration/to/__tests__/v3.46.0.test.js +59 -0
- package/dist/migration/to/v3.0.0.d.ts +4 -0
- package/dist/migration/to/v3.0.0.js +212 -0
- package/dist/migration/to/v3.1.0.d.ts +4 -0
- package/dist/migration/to/v3.1.0.js +194 -0
- package/dist/migration/to/v3.10.0.d.ts +4 -0
- package/dist/migration/to/v3.11.0.d.ts +4 -0
- package/dist/migration/to/v3.12.0.d.ts +4 -0
- package/dist/migration/to/v3.12.1.d.ts +4 -0
- package/dist/migration/to/v3.12.2.d.ts +4 -0
- package/dist/migration/to/v3.12.3.d.ts +4 -0
- package/dist/migration/to/v3.13.0.d.ts +4 -0
- package/dist/migration/to/v3.14.0.d.ts +4 -0
- package/dist/migration/to/v3.15.0.d.ts +4 -0
- package/dist/migration/to/v3.16.0.d.ts +4 -0
- package/dist/migration/to/v3.17.0.d.ts +4 -0
- package/dist/migration/to/v3.17.1.d.ts +4 -0
- package/dist/migration/to/v3.18.0.d.ts +4 -0
- package/dist/migration/to/v3.18.1.d.ts +4 -0
- package/dist/migration/to/v3.18.2.d.ts +4 -0
- package/dist/migration/to/v3.19.0.d.ts +4 -0
- package/dist/migration/to/v3.2.0.d.ts +4 -0
- package/dist/migration/to/v3.20.0.d.ts +4 -0
- package/dist/migration/to/v3.21.0.d.ts +4 -0
- package/dist/migration/to/v3.22.0.d.ts +4 -0
- package/dist/migration/to/v3.23.0.d.ts +4 -0
- package/dist/migration/to/v3.24.0.d.ts +4 -0
- package/dist/migration/to/v3.25.0.d.ts +4 -0
- package/dist/migration/to/v3.26.0.d.ts +4 -0
- package/dist/migration/to/v3.27.0.d.ts +4 -0
- package/dist/migration/to/v3.28.0.d.ts +4 -0
- package/dist/migration/to/v3.29.0.d.ts +4 -0
- package/dist/migration/to/v3.3.0.d.ts +4 -0
- package/dist/migration/to/v3.30.0.d.ts +4 -0
- package/dist/migration/to/v3.31.0.d.ts +4 -0
- package/dist/migration/to/v3.32.0.d.ts +4 -0
- package/dist/migration/to/v3.32.0.js +59 -0
- package/dist/migration/to/v3.33.0.d.ts +4 -0
- package/dist/migration/to/v3.34.0.d.ts +6 -0
- package/dist/migration/to/v3.34.0.js +116 -0
- package/dist/migration/to/v3.35.0.d.ts +4 -0
- package/dist/migration/to/v3.36.0.d.ts +4 -0
- package/dist/migration/to/v3.37.0.d.ts +4 -0
- package/dist/migration/to/v3.38.0.d.ts +4 -0
- package/dist/migration/to/v3.39.0.d.ts +4 -0
- package/dist/migration/to/v3.39.0.js +45 -0
- package/dist/migration/to/v3.4.0.d.ts +4 -0
- package/dist/migration/to/v3.40.0.d.ts +4 -0
- package/dist/migration/to/v3.41.0.d.ts +4 -0
- package/dist/migration/to/v3.42.0.d.ts +4 -0
- package/dist/migration/to/v3.43.0.d.ts +4 -0
- package/dist/migration/to/v3.44.0.d.ts +4 -0
- package/dist/migration/to/v3.45.0.d.ts +4 -0
- package/dist/migration/to/v3.46.0.d.ts +4 -0
- package/dist/migration/to/v3.47.0.d.ts +4 -0
- package/dist/migration/to/v3.48.0.d.ts +4 -0
- package/dist/migration/to/v3.49.0.d.ts +4 -0
- package/dist/migration/to/v3.5.0.d.ts +4 -0
- package/dist/migration/to/v3.5.1.d.ts +4 -0
- package/dist/migration/to/v3.50.0.d.ts +4 -0
- package/dist/migration/to/v3.51.0.d.ts +4 -0
- package/dist/migration/to/v3.6.0.d.ts +4 -0
- package/dist/migration/to/v3.7.0.d.ts +4 -0
- package/dist/migration/to/v3.8.0.d.ts +4 -0
- package/dist/migration/to/v3.9.0.d.ts +4 -0
- package/dist/migration/types.d.ts +19 -0
- package/dist/migration/types.js +1 -0
- package/dist/mocks.d.ts +13 -0
- package/dist/mocks.js +58 -0
- package/dist/models/__tests__/project-schema.test.d.ts +1 -0
- package/dist/models/__tests__/project-schema.test.js +67 -0
- package/dist/models/__tests__/query.test.d.ts +1 -0
- package/dist/models/__tests__/query.test.js +27 -0
- package/dist/models/__tests__/service.test.d.ts +1 -0
- package/dist/models/__tests__/service.test.js +17 -0
- package/dist/models/__tests__/shape.test.d.ts +1 -0
- package/dist/models/__tests__/shape.test.js +61 -0
- package/dist/models/project-schema.d.ts +35 -0
- package/dist/models/project-schema.js +92 -0
- package/dist/models/query.d.ts +17 -0
- package/dist/models/service.d.ts +12 -0
- package/dist/models/shape.d.ts +41 -0
- package/dist/models/shape.js +85 -0
- package/dist/patterns.js +1 -0
- package/dist/project-schema/index.d.ts +187 -0
- package/dist/project-schema/index.js +75 -0
- package/dist/project-schema/migrate.d.ts +4 -0
- package/dist/project-schema/migrate.js +194 -0
- package/dist/refs.d.ts +226 -0
- package/dist/refs.js +608 -0
- package/dist/relationships.d.ts +40 -0
- package/dist/relationships.js +311 -0
- package/dist/runtime-schema.d.ts +5 -0
- package/dist/runtime-schema.js +80 -0
- package/dist/schema-transform.d.ts +19 -0
- package/dist/schema-transform.js +74 -0
- package/dist/schema-util.d.ts +210 -0
- package/dist/schema-util.js +1077 -0
- package/dist/schemas/auth-schemas.json +365 -0
- package/dist/schemas/index.js +154 -0
- package/dist/service-dependencies.d.ts +13 -0
- package/dist/service-dependencies.js +165 -0
- package/dist/services/__tests__/services.test.d.ts +1 -0
- package/dist/services/__tests__/services.test.js +113 -0
- package/dist/services/services.d.ts +31 -0
- package/dist/services/services.js +145 -0
- package/dist/services/types.js +1 -0
- package/dist/services/util.d.ts +16 -0
- package/dist/taxonomies.d.ts +15 -0
- package/dist/taxonomies.js +24 -0
- package/dist/template-shapes/__tests__/index.test.d.ts +1 -0
- package/dist/template-shapes/__tests__/index.test.js +40 -0
- package/dist/template-shapes/__tests__/names.test.d.ts +1 -0
- package/dist/template-shapes/__tests__/names.test.js +19 -0
- package/dist/template-shapes/__tests__/templates.test.d.ts +1 -0
- package/dist/template-shapes/__tests__/templates.test.js +80 -0
- package/dist/template-shapes/__tests__/where.test.d.ts +1 -0
- package/dist/template-shapes/__tests__/where.test.js +218 -0
- package/dist/template-shapes/index.d.ts +7 -0
- package/dist/template-shapes/names.d.ts +10 -0
- package/dist/template-shapes/templates.d.ts +32 -0
- package/dist/template-shapes/templates.js +319 -0
- package/dist/template-shapes/types.d.ts +15 -0
- package/dist/template-shapes/where.d.ts +37 -0
- package/dist/template-shapes/where.js +402 -0
- package/dist/types/__tests__/utils.test.d.ts +1 -0
- package/dist/types/__tests__/utils.test.js +159 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +2 -0
- package/dist/types/transforms.d.ts +13 -0
- package/dist/types/transforms.js +1 -0
- package/dist/types/types.d.ts +211 -0
- package/dist/types/utils.d.ts +117 -0
- package/dist/types/utils.js +279 -0
- package/dist/unions.d.ts +14 -0
- package/dist/unions.js +77 -0
- package/dist/util/__tests__/api-indexing.test.d.ts +1 -0
- package/dist/util/__tests__/api-indexing.test.js +129 -0
- package/dist/util/__tests__/detect-cycles.test.d.ts +1 -0
- package/dist/util/__tests__/detect-cycles.test.js +193 -0
- package/dist/util/__tests__/find-shape-at-path.test.d.ts +1 -0
- package/dist/util/__tests__/find-shape-at-path.test.js +41 -0
- package/dist/util/__tests__/form-config.test.d.ts +1 -0
- package/dist/util/__tests__/form-config.test.js +196 -0
- package/dist/util/__tests__/get-return-shape.test.d.ts +1 -0
- package/dist/util/__tests__/get-return-shape.test.js +27 -0
- package/dist/util/__tests__/has-args.test.d.ts +1 -0
- package/dist/util/__tests__/has-args.test.js +46 -0
- package/dist/util/__tests__/merge.test.d.ts +1 -0
- package/dist/util/__tests__/merge.test.js +1074 -0
- package/dist/util/__tests__/patch-schema.test.d.ts +1 -0
- package/dist/util/__tests__/patch-schema.test.js +82 -0
- package/dist/util/__tests__/shapes.test.d.ts +1 -0
- package/dist/util/__tests__/shapes.test.js +30 -0
- package/dist/util/ai-tools.d.ts +3 -0
- package/dist/util/api-indexing.d.ts +9 -0
- package/dist/util/api-indexing.js +57 -0
- package/dist/util/detect-cycles.d.ts +7 -0
- package/dist/util/detect-cycles.js +45 -0
- package/dist/util/find-shape-at-path.d.ts +21 -0
- package/dist/util/form-config.d.ts +11 -0
- package/dist/util/form-config.js +62 -0
- package/dist/util/get-conflicting-properties.d.ts +6 -0
- package/dist/util/get-conflicting-properties.js +55 -0
- package/dist/util/get-return-shape.d.ts +4 -0
- package/dist/util/get-return-shape.js +30 -0
- package/dist/util/has-arg.d.ts +4 -0
- package/dist/util/has-arg.js +13 -0
- package/dist/util/merge.d.ts +15 -0
- package/dist/util/merge.js +256 -0
- package/dist/util/patch-schema.d.ts +8 -0
- package/dist/util/shapes.d.ts +5 -0
- package/dist/validate/errors.d.ts +3 -0
- package/dist/validate/errors.js +20 -0
- package/dist/validate/validate.d.ts +73 -0
- package/dist/validate/validate.js +1107 -0
- package/dist/versions.d.ts +4 -0
- package/dist/versions.js +4 -0
- package/dist/workflows.d.ts +14 -0
- package/dist/workflows.js +66 -0
- package/examples/latest/agent-schema.json +12 -4
- package/examples/latest/all-fields-shapes-inline.json +52 -18
- package/examples/latest/all-fields-shapes.json +76 -26
- package/examples/latest/betzino.json +3139 -902
- package/examples/latest/blog-schema.json +28 -8
- package/examples/latest/brewery-schema.json +25 -7
- package/examples/latest/clear-cache-schema.json +7 -3
- package/examples/latest/complex-project-schema.json +359 -98
- package/examples/latest/complex-schema.json +1754 -487
- package/examples/latest/edit-schema.json +11 -4
- package/examples/latest/fabric-ecommerce.json +838 -187
- package/examples/latest/frank-and-fred-schema.json +1753 -486
- package/examples/latest/klirr-schema.json +2411 -682
- package/examples/latest/layers/rick-and-morty-layer.json +32 -11
- package/examples/latest/layers/shopify-layer-2023-01.json +8637 -2206
- package/examples/latest/layers/shopify-storefront-2023-04.json +1714 -404
- package/examples/latest/layers/wordpress-2024-01.json +2746 -691
- package/examples/latest/massive-schema.json +584 -131
- package/examples/latest/mill-components-schema.json +125 -29
- package/examples/latest/nested-shape-arrays.json +19 -7
- package/examples/latest/one-earth.json +1113 -236
- package/examples/latest/pet-oneof-array.json +22 -7
- package/examples/latest/post-schema.json +20 -6
- package/examples/latest/pruned-shopify-product-schema.json +830 -185
- package/examples/latest/rag-example.json +15 -5
- package/examples/latest/real-world-schema.json +56 -14
- package/examples/latest/recursive-repeater-schema.json +11 -4
- package/examples/latest/recursive-schema.json +11 -4
- package/examples/latest/rick-and-morty-ast.json +174 -45
- package/examples/latest/rick-and-morty-graphql.json +100 -25
- package/examples/latest/rick-and-morty-rest.json +7 -3
- package/examples/latest/rick-and-morty-with-indexing.json +13 -5
- package/examples/latest/schema-where-filter.json +40 -11
- package/examples/latest/schema-with-repeater-draftjs.json +8 -3
- package/examples/latest/schema-with-rick-and-morty.json +4 -2
- package/examples/latest/shape-books-v3_2_0.json +71 -17
- package/examples/latest/shape-books.json +71 -17
- package/examples/latest/shape-editor-schema-edited.json +69 -23
- package/examples/latest/shape-editor-schema-initial.json +28 -10
- package/examples/latest/shapedb-crud-every-prop-type.json +22 -8
- package/examples/latest/shopify-lookbook.json +19 -5
- package/examples/latest/shopify-product-2022-07.json +3217 -726
- package/examples/latest/shopify-product-2023-04.json +4496 -1012
- package/examples/latest/shopify-store-with-widget.json +942 -213
- package/examples/latest/stripe-product-runtime-schema.json +277 -81
- package/examples/latest/stripe-starter-resolved.json +1953 -476
- package/examples/latest/user-schema-no-required.json +13 -3
- package/examples/latest/user-schema-with-defaults.json +27 -5
- package/examples/latest/valvoline-ai-demo.json +69 -17
- package/examples/latest/vector-search-schema.json +24 -8
- package/package.json +23 -24
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/src/agents.js +0 -147
- package/dist/cjs/src/api-version.js +0 -24
- package/dist/cjs/src/auth-schemas.js +0 -8
- package/dist/cjs/src/builtin-schema.js +0 -616
- package/dist/cjs/src/constants.js +0 -4
- package/dist/cjs/src/content-schema-transform.js +0 -175
- package/dist/cjs/src/create-input-schema.js +0 -66
- package/dist/cjs/src/enum.js +0 -12
- package/dist/cjs/src/flatten-templates.js +0 -26
- package/dist/cjs/src/get-is-leaf.js +0 -59
- package/dist/cjs/src/index.js +0 -62
- package/dist/cjs/src/interfaces.js +0 -98
- package/dist/cjs/src/layers/layers.js +0 -313
- package/dist/cjs/src/layers/refs.js +0 -243
- package/dist/cjs/src/layers/type-utils.js +0 -145
- package/dist/cjs/src/layers/visitor.js +0 -42
- package/dist/cjs/src/migration/index.js +0 -142
- package/dist/cjs/src/migration/to/v3.0.0.js +0 -217
- package/dist/cjs/src/migration/to/v3.1.0.js +0 -199
- package/dist/cjs/src/migration/to/v3.10.0.js +0 -72
- package/dist/cjs/src/migration/to/v3.11.0.js +0 -90
- package/dist/cjs/src/migration/to/v3.12.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.12.1.js +0 -12
- package/dist/cjs/src/migration/to/v3.12.2.js +0 -12
- package/dist/cjs/src/migration/to/v3.12.3.js +0 -92
- package/dist/cjs/src/migration/to/v3.13.0.js +0 -22
- package/dist/cjs/src/migration/to/v3.14.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.15.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.16.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.17.0.js +0 -27
- package/dist/cjs/src/migration/to/v3.17.1.js +0 -12
- package/dist/cjs/src/migration/to/v3.18.0.js +0 -69
- package/dist/cjs/src/migration/to/v3.18.1.js +0 -20
- package/dist/cjs/src/migration/to/v3.18.2.js +0 -24
- package/dist/cjs/src/migration/to/v3.19.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.2.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.20.0.js +0 -29
- package/dist/cjs/src/migration/to/v3.21.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.22.0.js +0 -30
- package/dist/cjs/src/migration/to/v3.23.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.24.0.js +0 -13
- package/dist/cjs/src/migration/to/v3.25.0.js +0 -13
- package/dist/cjs/src/migration/to/v3.26.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.27.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.28.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.29.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.3.0.js +0 -15
- package/dist/cjs/src/migration/to/v3.30.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.31.0.js +0 -43
- package/dist/cjs/src/migration/to/v3.32.0.js +0 -61
- package/dist/cjs/src/migration/to/v3.33.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.34.0.js +0 -123
- package/dist/cjs/src/migration/to/v3.35.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.36.0.js +0 -27
- package/dist/cjs/src/migration/to/v3.37.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.38.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.39.0.js +0 -47
- package/dist/cjs/src/migration/to/v3.4.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.40.0.js +0 -31
- package/dist/cjs/src/migration/to/v3.41.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.42.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.43.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.44.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.45.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.46.0.js +0 -37
- package/dist/cjs/src/migration/to/v3.47.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.48.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.49.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.5.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.5.1.js +0 -12
- package/dist/cjs/src/migration/to/v3.50.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.51.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.6.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.7.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.8.0.js +0 -12
- package/dist/cjs/src/migration/to/v3.9.0.js +0 -84
- package/dist/cjs/src/migration/types.js +0 -2
- package/dist/cjs/src/migration/utils.js +0 -10
- package/dist/cjs/src/mocks.js +0 -65
- package/dist/cjs/src/models/project-schema.js +0 -99
- package/dist/cjs/src/models/query.js +0 -35
- package/dist/cjs/src/models/service.js +0 -24
- package/dist/cjs/src/models/shape.js +0 -89
- package/dist/cjs/src/patterns.js +0 -2
- package/dist/cjs/src/project-schema/index.js +0 -156
- package/dist/cjs/src/project-schema/latest.js +0 -8
- package/dist/cjs/src/project-schema/migrate.js +0 -198
- package/dist/cjs/src/project-schema/v1.0.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.0.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.1.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.10.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.11.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.12.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.12.1.js +0 -8
- package/dist/cjs/src/project-schema/v3.12.2.js +0 -8
- package/dist/cjs/src/project-schema/v3.12.3.js +0 -8
- package/dist/cjs/src/project-schema/v3.13.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.13.1.js +0 -8
- package/dist/cjs/src/project-schema/v3.14.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.15.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.16.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.17.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.17.1.js +0 -8
- package/dist/cjs/src/project-schema/v3.18.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.18.1.js +0 -8
- package/dist/cjs/src/project-schema/v3.18.2.js +0 -8
- package/dist/cjs/src/project-schema/v3.19.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.2.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.20.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.21.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.22.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.23.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.24.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.25.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.26.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.27.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.28.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.29.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.3.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.30.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.31.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.32.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.33.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.34.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.35.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.36.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.37.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.38.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.39.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.4.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.40.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.41.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.42.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.43.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.44.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.45.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.46.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.47.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.48.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.49.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.5.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.5.1.js +0 -8
- package/dist/cjs/src/project-schema/v3.50.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.51.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.6.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.7.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.8.0.js +0 -8
- package/dist/cjs/src/project-schema/v3.9.0.js +0 -8
- package/dist/cjs/src/project-schema/v4.0.0.js +0 -8
- package/dist/cjs/src/refs.js +0 -671
- package/dist/cjs/src/relationships.js +0 -326
- package/dist/cjs/src/runtime-schema.js +0 -88
- package/dist/cjs/src/scalars.js +0 -8
- package/dist/cjs/src/schema-transform.js +0 -83
- package/dist/cjs/src/schema-util.js +0 -1140
- package/dist/cjs/src/schemas/auth-schemas.json +0 -313
- package/dist/cjs/src/schemas/index.js +0 -162
- package/dist/cjs/src/schemas/user-schema.json +0 -51
- package/dist/cjs/src/service-dependencies.js +0 -172
- package/dist/cjs/src/services/services.js +0 -156
- package/dist/cjs/src/services/types.js +0 -2
- package/dist/cjs/src/services/util.js +0 -45
- package/dist/cjs/src/taxonomies.js +0 -28
- package/dist/cjs/src/template-shapes/index.js +0 -37
- package/dist/cjs/src/template-shapes/names.js +0 -26
- package/dist/cjs/src/template-shapes/templates.js +0 -331
- package/dist/cjs/src/template-shapes/types.js +0 -10
- package/dist/cjs/src/template-shapes/where.js +0 -414
- package/dist/cjs/src/types/index.js +0 -19
- package/dist/cjs/src/types/transforms.js +0 -2
- package/dist/cjs/src/types/types.js +0 -21
- package/dist/cjs/src/types/utils.js +0 -344
- package/dist/cjs/src/unions.js +0 -88
- package/dist/cjs/src/user-schema.js +0 -8
- package/dist/cjs/src/util/ai-tools.js +0 -10
- package/dist/cjs/src/util/api-indexing.js +0 -62
- package/dist/cjs/src/util/detect-cycles.js +0 -48
- package/dist/cjs/src/util/find-shape-at-path.js +0 -57
- package/dist/cjs/src/util/form-config.js +0 -66
- package/dist/cjs/src/util/get-conflicting-properties.js +0 -58
- package/dist/cjs/src/util/get-return-shape.js +0 -34
- package/dist/cjs/src/util/has-arg.js +0 -17
- package/dist/cjs/src/util/merge.js +0 -269
- package/dist/cjs/src/util/patch-schema.js +0 -55
- package/dist/cjs/src/util/shapes.js +0 -31
- package/dist/cjs/src/validate.js +0 -1140
- package/dist/cjs/src/versions.js +0 -8
- package/dist/cjs/src/workflows.js +0 -76
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +0 -1
- package/dist/esm/package.json +0 -1
- package/dist/esm/src/content-schema-transform.js +0 -162
- package/dist/esm/src/flatten-templates.js +0 -20
- package/dist/esm/src/get-is-leaf.js +0 -56
- package/dist/esm/src/index.js +0 -46
- package/dist/esm/src/interfaces.js +0 -85
- package/dist/esm/src/layers/layers.js +0 -301
- package/dist/esm/src/layers/refs.js +0 -220
- package/dist/esm/src/layers/type-utils.js +0 -118
- package/dist/esm/src/layers/visitor.js +0 -38
- package/dist/esm/src/migration/index.js +0 -122
- package/dist/esm/src/migration/to/v3.0.0.js +0 -212
- package/dist/esm/src/migration/to/v3.1.0.js +0 -194
- package/dist/esm/src/migration/to/v3.32.0.js +0 -59
- package/dist/esm/src/migration/to/v3.34.0.js +0 -116
- package/dist/esm/src/migration/to/v3.39.0.js +0 -45
- package/dist/esm/src/mocks.js +0 -58
- package/dist/esm/src/models/project-schema.js +0 -92
- package/dist/esm/src/models/shape.js +0 -85
- package/dist/esm/src/project-schema/index.js +0 -138
- package/dist/esm/src/project-schema/migrate.js +0 -194
- package/dist/esm/src/refs.js +0 -608
- package/dist/esm/src/relationships.js +0 -311
- package/dist/esm/src/runtime-schema.js +0 -80
- package/dist/esm/src/schema-transform.js +0 -74
- package/dist/esm/src/schema-util.js +0 -1077
- package/dist/esm/src/schemas/auth-schemas.json +0 -313
- package/dist/esm/src/schemas/index.js +0 -154
- package/dist/esm/src/schemas/project-schema/experimental.json +0 -1101
- package/dist/esm/src/schemas/project-schema/latest.json +0 -3320
- package/dist/esm/src/schemas/project-schema/meta-schema-v1.0.0.json +0 -193
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.0.0.json +0 -608
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.1.0.json +0 -608
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.2.0.json +0 -612
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.3.0.json +0 -612
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.4.0.json +0 -637
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.5.0.json +0 -626
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.5.1.json +0 -626
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.6.0.json +0 -629
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.7.0.json +0 -1137
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.8.0.json +0 -1137
- package/dist/esm/src/schemas/project-schema/meta-schema-v3.9.0.json +0 -1477
- package/dist/esm/src/schemas/project-schema/v1.0.0.json +0 -321
- package/dist/esm/src/schemas/project-schema/v3.0.0.json +0 -414
- package/dist/esm/src/schemas/project-schema/v3.1.0.json +0 -572
- package/dist/esm/src/schemas/project-schema/v3.10.0.json +0 -2097
- package/dist/esm/src/schemas/project-schema/v3.11.0.json +0 -2141
- package/dist/esm/src/schemas/project-schema/v3.12.0.json +0 -2144
- package/dist/esm/src/schemas/project-schema/v3.12.1.json +0 -2282
- package/dist/esm/src/schemas/project-schema/v3.12.2.json +0 -2304
- package/dist/esm/src/schemas/project-schema/v3.12.3.json +0 -2357
- package/dist/esm/src/schemas/project-schema/v3.13.0.json +0 -2377
- package/dist/esm/src/schemas/project-schema/v3.14.0.json +0 -2385
- package/dist/esm/src/schemas/project-schema/v3.15.0.json +0 -2365
- package/dist/esm/src/schemas/project-schema/v3.16.0.json +0 -2373
- package/dist/esm/src/schemas/project-schema/v3.17.0.json +0 -2378
- package/dist/esm/src/schemas/project-schema/v3.17.1.json +0 -2380
- package/dist/esm/src/schemas/project-schema/v3.18.0.json +0 -2356
- package/dist/esm/src/schemas/project-schema/v3.18.1.json +0 -2357
- package/dist/esm/src/schemas/project-schema/v3.18.2.json +0 -2357
- package/dist/esm/src/schemas/project-schema/v3.19.0.json +0 -2369
- package/dist/esm/src/schemas/project-schema/v3.2.0.json +0 -580
- package/dist/esm/src/schemas/project-schema/v3.20.0.json +0 -2369
- package/dist/esm/src/schemas/project-schema/v3.21.0.json +0 -2376
- package/dist/esm/src/schemas/project-schema/v3.22.0.json +0 -2381
- package/dist/esm/src/schemas/project-schema/v3.23.0.json +0 -2456
- package/dist/esm/src/schemas/project-schema/v3.24.0.json +0 -2556
- package/dist/esm/src/schemas/project-schema/v3.25.0.json +0 -2552
- package/dist/esm/src/schemas/project-schema/v3.26.0.json +0 -2599
- package/dist/esm/src/schemas/project-schema/v3.27.0.json +0 -2611
- package/dist/esm/src/schemas/project-schema/v3.28.0.json +0 -2656
- package/dist/esm/src/schemas/project-schema/v3.29.0.json +0 -2670
- package/dist/esm/src/schemas/project-schema/v3.3.0.json +0 -581
- package/dist/esm/src/schemas/project-schema/v3.30.0.json +0 -2656
- package/dist/esm/src/schemas/project-schema/v3.31.0.json +0 -2714
- package/dist/esm/src/schemas/project-schema/v3.32.0.json +0 -2708
- package/dist/esm/src/schemas/project-schema/v3.33.0.json +0 -2715
- package/dist/esm/src/schemas/project-schema/v3.34.0.json +0 -2715
- package/dist/esm/src/schemas/project-schema/v3.35.0.json +0 -2748
- package/dist/esm/src/schemas/project-schema/v3.36.0.json +0 -2756
- package/dist/esm/src/schemas/project-schema/v3.37.0.json +0 -2821
- package/dist/esm/src/schemas/project-schema/v3.38.0.json +0 -2819
- package/dist/esm/src/schemas/project-schema/v3.39.0.json +0 -2827
- package/dist/esm/src/schemas/project-schema/v3.4.0.json +0 -571
- package/dist/esm/src/schemas/project-schema/v3.40.0.json +0 -2830
- package/dist/esm/src/schemas/project-schema/v3.41.0.json +0 -2830
- package/dist/esm/src/schemas/project-schema/v3.42.0.json +0 -2835
- package/dist/esm/src/schemas/project-schema/v3.43.0.json +0 -2841
- package/dist/esm/src/schemas/project-schema/v3.44.0.json +0 -3013
- package/dist/esm/src/schemas/project-schema/v3.45.0.json +0 -3064
- package/dist/esm/src/schemas/project-schema/v3.46.0.json +0 -3136
- package/dist/esm/src/schemas/project-schema/v3.47.0.json +0 -3189
- package/dist/esm/src/schemas/project-schema/v3.48.0.json +0 -3196
- package/dist/esm/src/schemas/project-schema/v3.49.0.json +0 -3239
- package/dist/esm/src/schemas/project-schema/v3.5.0.json +0 -571
- package/dist/esm/src/schemas/project-schema/v3.5.1.json +0 -571
- package/dist/esm/src/schemas/project-schema/v3.50.0.json +0 -3320
- package/dist/esm/src/schemas/project-schema/v3.51.0.json +0 -3320
- package/dist/esm/src/schemas/project-schema/v3.6.0.json +0 -587
- package/dist/esm/src/schemas/project-schema/v3.7.0.json +0 -587
- package/dist/esm/src/schemas/project-schema/v3.8.0.json +0 -604
- package/dist/esm/src/schemas/project-schema/v3.9.0.json +0 -604
- package/dist/esm/src/schemas/project-schema/v4.0.0.json +0 -2316
- package/dist/esm/src/schemas/project-schema.json +0 -190
- package/dist/esm/src/schemas/user-schema.json +0 -51
- package/dist/esm/src/service-dependencies.js +0 -165
- package/dist/esm/src/services/services.js +0 -145
- package/dist/esm/src/taxonomies.js +0 -24
- package/dist/esm/src/template-shapes/templates.js +0 -319
- package/dist/esm/src/template-shapes/where.js +0 -402
- package/dist/esm/src/types/index.js +0 -3
- package/dist/esm/src/types/utils.js +0 -279
- package/dist/esm/src/unions.js +0 -77
- package/dist/esm/src/user-schema.js +0 -7
- package/dist/esm/src/util/api-indexing.js +0 -57
- package/dist/esm/src/util/detect-cycles.js +0 -45
- package/dist/esm/src/util/form-config.js +0 -62
- package/dist/esm/src/util/get-conflicting-properties.js +0 -55
- package/dist/esm/src/util/get-return-shape.js +0 -30
- package/dist/esm/src/util/has-arg.js +0 -13
- package/dist/esm/src/util/merge.js +0 -256
- package/dist/esm/src/validate.js +0 -1126
- package/dist/esm/src/versions.js +0 -4
- package/dist/esm/src/workflows.js +0 -66
- package/dist/esm/tsconfig.esm.tsbuildinfo +0 -1
- package/dist/types/src/agents.d.ts +0 -14
- package/dist/types/src/auth-schemas.d.ts +0 -104
- package/dist/types/src/builtin-schema.d.ts +0 -8
- package/dist/types/src/content-schema-transform.d.ts +0 -35
- package/dist/types/src/create-input-schema.d.ts +0 -9
- package/dist/types/src/enum.d.ts +0 -2
- package/dist/types/src/flatten-templates.d.ts +0 -2
- package/dist/types/src/get-is-leaf.d.ts +0 -3
- package/dist/types/src/index.d.ts +0 -48
- package/dist/types/src/interfaces.d.ts +0 -12
- package/dist/types/src/layers/layers.d.ts +0 -26
- package/dist/types/src/layers/refs.d.ts +0 -102
- package/dist/types/src/layers/type-utils.d.ts +0 -59
- package/dist/types/src/layers/visitor.d.ts +0 -5
- package/dist/types/src/migration/index.d.ts +0 -64
- package/dist/types/src/migration/to/v3.0.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.1.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.10.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.11.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.12.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.12.1.d.ts +0 -4
- package/dist/types/src/migration/to/v3.12.2.d.ts +0 -4
- package/dist/types/src/migration/to/v3.12.3.d.ts +0 -4
- package/dist/types/src/migration/to/v3.13.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.14.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.15.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.16.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.17.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.17.1.d.ts +0 -4
- package/dist/types/src/migration/to/v3.18.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.18.1.d.ts +0 -4
- package/dist/types/src/migration/to/v3.18.2.d.ts +0 -4
- package/dist/types/src/migration/to/v3.19.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.2.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.20.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.21.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.22.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.23.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.24.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.25.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.26.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.27.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.28.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.29.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.3.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.30.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.31.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.32.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.33.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.34.0.d.ts +0 -6
- package/dist/types/src/migration/to/v3.35.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.36.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.37.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.38.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.39.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.4.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.40.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.41.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.42.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.43.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.44.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.45.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.46.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.47.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.48.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.49.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.5.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.5.1.d.ts +0 -4
- package/dist/types/src/migration/to/v3.50.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.51.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.6.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.7.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.8.0.d.ts +0 -4
- package/dist/types/src/migration/to/v3.9.0.d.ts +0 -4
- package/dist/types/src/migration/types.d.ts +0 -19
- package/dist/types/src/mocks.d.ts +0 -13
- package/dist/types/src/models/project-schema.d.ts +0 -35
- package/dist/types/src/models/query.d.ts +0 -17
- package/dist/types/src/models/service.d.ts +0 -12
- package/dist/types/src/models/shape.d.ts +0 -41
- package/dist/types/src/project-schema/index.d.ts +0 -187
- package/dist/types/src/project-schema/migrate.d.ts +0 -4
- package/dist/types/src/refs.d.ts +0 -226
- package/dist/types/src/relationships.d.ts +0 -40
- package/dist/types/src/runtime-schema.d.ts +0 -5
- package/dist/types/src/schema-transform.d.ts +0 -19
- package/dist/types/src/schema-util.d.ts +0 -210
- package/dist/types/src/service-dependencies.d.ts +0 -13
- package/dist/types/src/services/services.d.ts +0 -31
- package/dist/types/src/services/util.d.ts +0 -16
- package/dist/types/src/taxonomies.d.ts +0 -15
- package/dist/types/src/template-shapes/index.d.ts +0 -7
- package/dist/types/src/template-shapes/names.d.ts +0 -10
- package/dist/types/src/template-shapes/templates.d.ts +0 -32
- package/dist/types/src/template-shapes/types.d.ts +0 -15
- package/dist/types/src/template-shapes/where.d.ts +0 -37
- package/dist/types/src/types/index.d.ts +0 -3
- package/dist/types/src/types/transforms.d.ts +0 -13
- package/dist/types/src/types/types.d.ts +0 -211
- package/dist/types/src/types/utils.d.ts +0 -117
- package/dist/types/src/unions.d.ts +0 -14
- package/dist/types/src/user-schema.d.ts +0 -38
- package/dist/types/src/util/ai-tools.d.ts +0 -3
- package/dist/types/src/util/api-indexing.d.ts +0 -9
- package/dist/types/src/util/detect-cycles.d.ts +0 -7
- package/dist/types/src/util/find-shape-at-path.d.ts +0 -21
- package/dist/types/src/util/form-config.d.ts +0 -11
- package/dist/types/src/util/get-conflicting-properties.d.ts +0 -6
- package/dist/types/src/util/get-return-shape.d.ts +0 -4
- package/dist/types/src/util/has-arg.d.ts +0 -4
- package/dist/types/src/util/merge.d.ts +0 -15
- package/dist/types/src/util/patch-schema.d.ts +0 -8
- package/dist/types/src/util/shapes.d.ts +0 -5
- package/dist/types/src/validate.d.ts +0 -75
- package/dist/types/src/versions.d.ts +0 -4
- package/dist/types/src/workflows.d.ts +0 -14
- package/dist/types/tsconfig.types.tsbuildinfo +0 -1
- /package/dist/{esm/src/migration/types.js → __tests__/_examples.test.d.ts} +0 -0
- /package/dist/{esm/src/patterns.js → __tests__/agents.test.d.ts} +0 -0
- /package/dist/{esm/src/services/types.js → __tests__/api-version.test.d.ts} +0 -0
- /package/dist/{esm/src/types/transforms.js → __tests__/builtin-schema.test.d.ts} +0 -0
- /package/dist/{esm/src/agents.js → agents.js} +0 -0
- /package/dist/{types/src/api-version.d.ts → api-version.d.ts} +0 -0
- /package/dist/{esm/src/api-version.js → api-version.js} +0 -0
- /package/dist/{esm/src/auth-schemas.js → auth-schemas.js} +0 -0
- /package/dist/{esm/src/builtin-schema.js → builtin-schema.js} +0 -0
- /package/dist/{types/src/constants.d.ts → constants.d.ts} +0 -0
- /package/dist/{esm/src/constants.js → constants.js} +0 -0
- /package/dist/{esm/src/create-input-schema.js → create-input-schema.js} +0 -0
- /package/dist/{esm/src/enum.js → enum.js} +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.10.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.11.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.12.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.12.1.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.12.2.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.12.3.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.13.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.14.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.15.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.16.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.17.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.17.1.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.18.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.18.1.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.18.2.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.19.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.2.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.20.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.21.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.22.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.23.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.24.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.25.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.26.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.27.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.28.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.29.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.3.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.30.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.31.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.33.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.35.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.36.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.37.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.38.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.4.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.40.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.41.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.42.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.43.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.44.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.45.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.46.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.47.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.48.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.49.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.5.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.5.1.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.50.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.51.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.6.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.7.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.8.0.js +0 -0
- /package/dist/{esm/src/migration → migration}/to/v3.9.0.js +0 -0
- /package/dist/{types/src/migration → migration}/utils.d.ts +0 -0
- /package/dist/{esm/src/migration → migration}/utils.js +0 -0
- /package/dist/{esm/src/models → models}/query.js +0 -0
- /package/dist/{esm/src/models → models}/service.js +0 -0
- /package/dist/{types/src/patterns.d.ts → patterns.d.ts} +0 -0
- /package/dist/{types/src/project-schema → project-schema}/latest.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/latest.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v1.0.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v1.0.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.0.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.0.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.1.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.1.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.10.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.10.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.11.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.11.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.12.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.12.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.12.1.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.12.1.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.12.2.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.12.2.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.12.3.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.12.3.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.13.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.13.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.13.1.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.13.1.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.14.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.14.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.15.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.15.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.16.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.16.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.17.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.17.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.17.1.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.17.1.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.18.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.18.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.18.1.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.18.1.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.18.2.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.18.2.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.19.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.19.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.2.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.2.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.20.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.20.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.21.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.21.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.22.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.22.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.23.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.23.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.24.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.24.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.25.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.25.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.26.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.26.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.27.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.27.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.28.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.28.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.29.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.29.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.3.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.3.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.30.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.30.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.31.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.31.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.32.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.32.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.33.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.33.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.34.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.34.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.35.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.35.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.36.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.36.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.37.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.37.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.38.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.38.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.39.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.39.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.4.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.4.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.40.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.40.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.41.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.41.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.42.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.42.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.43.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.43.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.44.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.44.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.45.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.45.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.46.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.46.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.47.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.47.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.48.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.48.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.49.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.49.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.5.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.5.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.5.1.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.5.1.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.50.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.50.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.51.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.51.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.6.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.6.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.7.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.7.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.8.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.8.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v3.9.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v3.9.0.js +0 -0
- /package/dist/{types/src/project-schema → project-schema}/v4.0.0.d.ts +0 -0
- /package/dist/{esm/src/project-schema → project-schema}/v4.0.0.js +0 -0
- /package/dist/{types/src/scalars.d.ts → scalars.d.ts} +0 -0
- /package/dist/{esm/src/scalars.js → scalars.js} +0 -0
- /package/dist/{types/src/schemas → schemas}/index.d.ts +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/experimental.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/latest.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v1.0.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.0.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.1.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.2.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.3.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.4.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.5.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.5.1.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.6.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.7.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.8.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.9.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v1.0.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.0.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.1.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.10.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.11.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.12.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.12.1.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.12.2.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.12.3.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.13.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.14.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.15.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.16.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.17.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.17.1.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.18.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.18.1.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.18.2.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.19.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.2.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.20.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.21.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.22.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.23.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.24.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.25.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.26.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.27.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.28.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.29.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.3.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.30.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.31.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.32.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.33.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.34.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.35.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.36.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.37.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.38.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.39.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.4.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.40.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.41.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.42.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.43.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.44.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.45.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.46.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.47.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.48.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.49.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.5.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.5.1.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.50.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.51.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.6.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.7.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.8.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.9.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema/v4.0.0.json +0 -0
- /package/dist/{cjs/src/schemas → schemas}/project-schema.json +0 -0
- /package/dist/{types/src/services → services}/types.d.ts +0 -0
- /package/dist/{esm/src/services → services}/util.js +0 -0
- /package/dist/{esm/src/template-shapes → template-shapes}/index.js +0 -0
- /package/dist/{esm/src/template-shapes → template-shapes}/names.js +0 -0
- /package/dist/{esm/src/template-shapes → template-shapes}/types.js +0 -0
- /package/dist/{esm/src/types → types}/types.js +0 -0
- /package/dist/{esm/src/util → util}/ai-tools.js +0 -0
- /package/dist/{esm/src/util → util}/find-shape-at-path.js +0 -0
- /package/dist/{esm/src/util → util}/patch-schema.js +0 -0
- /package/dist/{esm/src/util → util}/shapes.js +0 -0
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.visitSchemaProperties = visitSchemaProperties;
|
|
4
|
-
exports.visitShapeProperties = visitShapeProperties;
|
|
5
|
-
const type_utils_1 = require("./type-utils");
|
|
6
|
-
function visitSchemaProperties(schema, path, callback) {
|
|
7
|
-
if ((0, type_utils_1.isObjectSchema)(schema)) {
|
|
8
|
-
for (const [name, propSchema] of Object.entries(schema.properties)) {
|
|
9
|
-
const newPath = [...path, 'properties', name];
|
|
10
|
-
callback(propSchema, newPath);
|
|
11
|
-
if ((0, type_utils_1.isObjectSchema)(propSchema) || (0, type_utils_1.isAllOfSchema)(propSchema) || (0, type_utils_1.isOneOfSchema)(propSchema)) {
|
|
12
|
-
visitSchemaProperties(propSchema, newPath, callback);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
else if ((0, type_utils_1.isAllOfSchema)(schema)) {
|
|
17
|
-
for (const [index, propSchema] of Object.entries(schema.allOf)) {
|
|
18
|
-
const newPath = [...path, 'allOf', index];
|
|
19
|
-
callback(propSchema, newPath);
|
|
20
|
-
if ((0, type_utils_1.isObjectSchema)(propSchema) || (0, type_utils_1.isAllOfSchema)(propSchema) || (0, type_utils_1.isOneOfSchema)(propSchema)) {
|
|
21
|
-
visitSchemaProperties(propSchema, newPath, callback);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
else if ((0, type_utils_1.isOneOfSchema)(schema)) {
|
|
26
|
-
for (const [index, propSchema] of Object.entries(schema.oneOf)) {
|
|
27
|
-
const newPath = [...path, 'oneOf', index];
|
|
28
|
-
callback(propSchema, newPath);
|
|
29
|
-
if ((0, type_utils_1.isObjectSchema)(propSchema) || (0, type_utils_1.isAllOfSchema)(propSchema) || (0, type_utils_1.isOneOfSchema)(propSchema)) {
|
|
30
|
-
visitSchemaProperties(propSchema, newPath, callback);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
callback(schema, path);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function visitShapeProperties(shapes, callback) {
|
|
39
|
-
for (const [shapeName, shape] of Object.entries(shapes)) {
|
|
40
|
-
visitSchemaProperties(shape.schema, ['shapes', shapeName, 'schema'], callback);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.listTypePrefix = exports.migrateTo = void 0;
|
|
21
|
-
const v3_0_0_1 = __importDefault(require("./to/v3.0.0"));
|
|
22
|
-
const v3_1_0_1 = __importDefault(require("./to/v3.1.0"));
|
|
23
|
-
const v3_2_0_1 = __importDefault(require("./to/v3.2.0"));
|
|
24
|
-
const v3_3_0_1 = __importDefault(require("./to/v3.3.0"));
|
|
25
|
-
const v3_4_0_1 = __importDefault(require("./to/v3.4.0"));
|
|
26
|
-
const v3_5_0_1 = __importDefault(require("./to/v3.5.0"));
|
|
27
|
-
const v3_5_1_1 = __importDefault(require("./to/v3.5.1"));
|
|
28
|
-
const v3_6_0_1 = __importDefault(require("./to/v3.6.0"));
|
|
29
|
-
const v3_7_0_1 = __importDefault(require("./to/v3.7.0"));
|
|
30
|
-
const v3_8_0_1 = __importDefault(require("./to/v3.8.0"));
|
|
31
|
-
const v3_9_0_1 = __importDefault(require("./to/v3.9.0"));
|
|
32
|
-
const v3_10_0_1 = __importDefault(require("./to/v3.10.0"));
|
|
33
|
-
const v3_11_0_1 = __importDefault(require("./to/v3.11.0"));
|
|
34
|
-
const v3_12_0_1 = __importDefault(require("./to/v3.12.0"));
|
|
35
|
-
const v3_12_1_1 = __importDefault(require("./to/v3.12.1"));
|
|
36
|
-
const v3_12_2_1 = __importDefault(require("./to/v3.12.2"));
|
|
37
|
-
const v3_12_3_1 = __importDefault(require("./to/v3.12.3"));
|
|
38
|
-
const v3_13_0_1 = __importDefault(require("./to/v3.13.0"));
|
|
39
|
-
const v3_14_0_1 = __importDefault(require("./to/v3.14.0"));
|
|
40
|
-
const v3_15_0_1 = __importDefault(require("./to/v3.15.0"));
|
|
41
|
-
const v3_16_0_1 = __importDefault(require("./to/v3.16.0"));
|
|
42
|
-
const v3_17_0_1 = __importDefault(require("./to/v3.17.0"));
|
|
43
|
-
const v3_17_1_1 = __importDefault(require("./to/v3.17.1"));
|
|
44
|
-
const v3_18_0_1 = __importDefault(require("./to/v3.18.0"));
|
|
45
|
-
const v3_18_1_1 = __importDefault(require("./to/v3.18.1"));
|
|
46
|
-
const v3_18_2_1 = __importDefault(require("./to/v3.18.2"));
|
|
47
|
-
const v3_19_0_1 = __importDefault(require("./to/v3.19.0"));
|
|
48
|
-
const v3_20_0_1 = __importDefault(require("./to/v3.20.0"));
|
|
49
|
-
const v3_21_0_1 = __importDefault(require("./to/v3.21.0"));
|
|
50
|
-
const v3_22_0_1 = __importDefault(require("./to/v3.22.0"));
|
|
51
|
-
const v3_23_0_1 = __importDefault(require("./to/v3.23.0"));
|
|
52
|
-
const v3_24_0_1 = __importDefault(require("./to/v3.24.0"));
|
|
53
|
-
const v3_25_0_1 = __importDefault(require("./to/v3.25.0"));
|
|
54
|
-
const v3_26_0_1 = __importDefault(require("./to/v3.26.0"));
|
|
55
|
-
const v3_27_0_1 = __importDefault(require("./to/v3.27.0"));
|
|
56
|
-
const v3_28_0_1 = __importDefault(require("./to/v3.28.0"));
|
|
57
|
-
const v3_29_0_1 = __importDefault(require("./to/v3.29.0"));
|
|
58
|
-
const v3_30_0_1 = __importDefault(require("./to/v3.30.0"));
|
|
59
|
-
const v3_31_0_1 = __importDefault(require("./to/v3.31.0"));
|
|
60
|
-
const v3_32_0_1 = __importDefault(require("./to/v3.32.0"));
|
|
61
|
-
const v3_33_0_1 = __importDefault(require("./to/v3.33.0"));
|
|
62
|
-
const v3_34_0_1 = __importDefault(require("./to/v3.34.0"));
|
|
63
|
-
const v3_35_0_1 = __importDefault(require("./to/v3.35.0"));
|
|
64
|
-
const v3_36_0_1 = __importDefault(require("./to/v3.36.0"));
|
|
65
|
-
const v3_37_0_1 = __importDefault(require("./to/v3.37.0"));
|
|
66
|
-
const v3_38_0_1 = __importDefault(require("./to/v3.38.0"));
|
|
67
|
-
const v3_39_0_1 = __importDefault(require("./to/v3.39.0"));
|
|
68
|
-
const v3_40_0_1 = __importDefault(require("./to/v3.40.0"));
|
|
69
|
-
const v3_41_0_1 = __importDefault(require("./to/v3.41.0"));
|
|
70
|
-
const v3_42_0_1 = __importDefault(require("./to/v3.42.0"));
|
|
71
|
-
const v3_43_0_1 = __importDefault(require("./to/v3.43.0"));
|
|
72
|
-
const v3_44_0_1 = __importDefault(require("./to/v3.44.0"));
|
|
73
|
-
const v3_45_0_1 = __importDefault(require("./to/v3.45.0"));
|
|
74
|
-
const v3_46_0_1 = __importDefault(require("./to/v3.46.0"));
|
|
75
|
-
const v3_47_0_1 = __importDefault(require("./to/v3.47.0"));
|
|
76
|
-
const v3_48_0_1 = __importDefault(require("./to/v3.48.0"));
|
|
77
|
-
const v3_49_0_1 = __importDefault(require("./to/v3.49.0"));
|
|
78
|
-
const v3_50_0_1 = __importDefault(require("./to/v3.50.0"));
|
|
79
|
-
const v3_51_0_1 = __importDefault(require("./to/v3.51.0"));
|
|
80
|
-
exports.migrateTo = {
|
|
81
|
-
'v3.0.0': v3_0_0_1.default,
|
|
82
|
-
'v3.1.0': v3_1_0_1.default,
|
|
83
|
-
'v3.2.0': v3_2_0_1.default,
|
|
84
|
-
'v3.3.0': v3_3_0_1.default,
|
|
85
|
-
'v3.4.0': v3_4_0_1.default,
|
|
86
|
-
'v3.5.0': v3_5_0_1.default,
|
|
87
|
-
'v3.5.1': v3_5_1_1.default,
|
|
88
|
-
'v3.6.0': v3_6_0_1.default,
|
|
89
|
-
'v3.7.0': v3_7_0_1.default,
|
|
90
|
-
'v3.8.0': v3_8_0_1.default,
|
|
91
|
-
'v3.9.0': v3_9_0_1.default,
|
|
92
|
-
'v3.10.0': v3_10_0_1.default,
|
|
93
|
-
'v3.11.0': v3_11_0_1.default,
|
|
94
|
-
'v3.12.0': v3_12_0_1.default,
|
|
95
|
-
'v3.12.1': v3_12_1_1.default,
|
|
96
|
-
'v3.12.2': v3_12_2_1.default,
|
|
97
|
-
'v3.12.3': v3_12_3_1.default,
|
|
98
|
-
'v3.13.0': v3_13_0_1.default,
|
|
99
|
-
'v3.14.0': v3_14_0_1.default,
|
|
100
|
-
'v3.15.0': v3_15_0_1.default,
|
|
101
|
-
'v3.16.0': v3_16_0_1.default,
|
|
102
|
-
'v3.17.0': v3_17_0_1.default,
|
|
103
|
-
'v3.17.1': v3_17_1_1.default,
|
|
104
|
-
'v3.18.0': v3_18_0_1.default,
|
|
105
|
-
'v3.18.1': v3_18_1_1.default,
|
|
106
|
-
'v3.18.2': v3_18_2_1.default,
|
|
107
|
-
'v3.19.0': v3_19_0_1.default,
|
|
108
|
-
'v3.20.0': v3_20_0_1.default,
|
|
109
|
-
'v3.21.0': v3_21_0_1.default,
|
|
110
|
-
'v3.22.0': v3_22_0_1.default,
|
|
111
|
-
'v3.23.0': v3_23_0_1.default,
|
|
112
|
-
'v3.24.0': v3_24_0_1.default,
|
|
113
|
-
'v3.25.0': v3_25_0_1.default,
|
|
114
|
-
'v3.26.0': v3_26_0_1.default,
|
|
115
|
-
'v3.27.0': v3_27_0_1.default,
|
|
116
|
-
'v3.28.0': v3_28_0_1.default,
|
|
117
|
-
'v3.29.0': v3_29_0_1.default,
|
|
118
|
-
'v3.30.0': v3_30_0_1.default,
|
|
119
|
-
'v3.31.0': v3_31_0_1.default,
|
|
120
|
-
'v3.32.0': v3_32_0_1.default,
|
|
121
|
-
'v3.33.0': v3_33_0_1.default,
|
|
122
|
-
'v3.34.0': v3_34_0_1.default,
|
|
123
|
-
'v3.35.0': v3_35_0_1.default,
|
|
124
|
-
'v3.36.0': v3_36_0_1.default,
|
|
125
|
-
'v3.37.0': v3_37_0_1.default,
|
|
126
|
-
'v3.38.0': v3_38_0_1.default,
|
|
127
|
-
'v3.39.0': v3_39_0_1.default,
|
|
128
|
-
'v3.40.0': v3_40_0_1.default,
|
|
129
|
-
'v3.41.0': v3_41_0_1.default,
|
|
130
|
-
'v3.42.0': v3_42_0_1.default,
|
|
131
|
-
'v3.43.0': v3_43_0_1.default,
|
|
132
|
-
'v3.44.0': v3_44_0_1.default,
|
|
133
|
-
'v3.45.0': v3_45_0_1.default,
|
|
134
|
-
'v3.46.0': v3_46_0_1.default,
|
|
135
|
-
'v3.47.0': v3_47_0_1.default,
|
|
136
|
-
'v3.48.0': v3_48_0_1.default,
|
|
137
|
-
'v3.49.0': v3_49_0_1.default,
|
|
138
|
-
'v3.50.0': v3_50_0_1.default,
|
|
139
|
-
'v3.51.0': v3_51_0_1.default
|
|
140
|
-
};
|
|
141
|
-
__exportStar(require("./utils"), exports);
|
|
142
|
-
exports.listTypePrefix = 'PaginatedList';
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const util_1 = require("@takeshape/util");
|
|
7
|
-
const forEach_js_1 = __importDefault(require("lodash/forEach.js"));
|
|
8
|
-
const pick_js_1 = __importDefault(require("lodash/pick.js"));
|
|
9
|
-
const schema_util_1 = require("../../schema-util");
|
|
10
|
-
const utils_1 = require("../utils");
|
|
11
|
-
const annotationMap = {
|
|
12
|
-
l10n: '@l10n',
|
|
13
|
-
sensitive: '@sensitive',
|
|
14
|
-
syncLocaleStructure: '@syncLocaleStructure'
|
|
15
|
-
};
|
|
16
|
-
function isColor(schema) {
|
|
17
|
-
const { type, properties } = schema;
|
|
18
|
-
return Boolean(type === 'object' && properties?.hsl && properties.hsv && properties.rgb && properties.hex);
|
|
19
|
-
}
|
|
20
|
-
function getModelType(contentType) {
|
|
21
|
-
if (contentType.single) {
|
|
22
|
-
return 'single';
|
|
23
|
-
}
|
|
24
|
-
if (contentType.taxonomy) {
|
|
25
|
-
return 'taxonomy';
|
|
26
|
-
}
|
|
27
|
-
return 'multiple';
|
|
28
|
-
}
|
|
29
|
-
function getRelationshipSchema(relationship) {
|
|
30
|
-
const itemSchema = {
|
|
31
|
-
$ref: '#/shapes/TSRelationship/schema'
|
|
32
|
-
};
|
|
33
|
-
if (relationship.type === 'multiple') {
|
|
34
|
-
return {
|
|
35
|
-
type: 'array',
|
|
36
|
-
items: itemSchema,
|
|
37
|
-
'@relationship': relationship
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
...itemSchema,
|
|
42
|
-
'@relationship': relationship
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function migrateToContentSchemaV3(params) {
|
|
46
|
-
const { schema, service, name, key, setSource, omitAllSources } = params;
|
|
47
|
-
const { type } = schema;
|
|
48
|
-
const mapping = !omitAllSources && key && setSource !== false && name !== key ? `${service}.${key}` : undefined;
|
|
49
|
-
(0, forEach_js_1.default)(schema, (value, key) => {
|
|
50
|
-
if (annotationMap[key]) {
|
|
51
|
-
const newAnnotation = annotationMap[key];
|
|
52
|
-
schema[newAnnotation] = value;
|
|
53
|
-
delete schema[key];
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
if (type === 'string' || type === 'boolean' || type === 'number' || type === 'integer') {
|
|
57
|
-
return {
|
|
58
|
-
schema: { ...(0, pick_js_1.default)(schema, schema_util_1.scalarSchemaKeys), '@mapping': mapping }
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
const { relationship } = schema;
|
|
62
|
-
if (relationship) {
|
|
63
|
-
const { contentTypeIds, type: relationshipType, relatedName } = relationship;
|
|
64
|
-
return {
|
|
65
|
-
schema: {
|
|
66
|
-
...(0, pick_js_1.default)(schema, relationshipType === 'multiple' ? schema_util_1.multipleRelationshipSchemaKeys : schema_util_1.schemaMetadataKeys),
|
|
67
|
-
'@mapping': mapping,
|
|
68
|
-
...getRelationshipSchema({
|
|
69
|
-
shapeIds: contentTypeIds,
|
|
70
|
-
type: relationshipType ?? 'single', // Type is optional on assets
|
|
71
|
-
relatedName
|
|
72
|
-
})
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
if (type === 'object' && schema.draftjs) {
|
|
77
|
-
return {
|
|
78
|
-
schema: {
|
|
79
|
-
...(0, pick_js_1.default)(schema, schema_util_1.scalarSchemaKeys),
|
|
80
|
-
'@mapping': mapping,
|
|
81
|
-
'@tag': 'draftjs'
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
if (isColor(schema)) {
|
|
86
|
-
return {
|
|
87
|
-
schema: {
|
|
88
|
-
...(0, pick_js_1.default)(schema, schema_util_1.scalarSchemaKeys),
|
|
89
|
-
$ref: '#/shapes/TSColor/schema',
|
|
90
|
-
'@mapping': mapping
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
if (type === 'object' && schema.properties) {
|
|
95
|
-
const properties = {};
|
|
96
|
-
const shapes = {};
|
|
97
|
-
const shapeTitle = [params.shapeTitle, (0, util_1.pascalCase)(schema.title ?? params.name)].filter(Boolean).join(' ');
|
|
98
|
-
const shapeName = `${params.shapeName}${(0, util_1.pascalCase)(params.name)}`;
|
|
99
|
-
const contentSourceId = `takeshape:local:${shapeName}`;
|
|
100
|
-
(0, forEach_js_1.default)(schema.properties, (propSchema, name) => {
|
|
101
|
-
const { schema: migratedPropSchema, hoistedShapes } = migrateToContentSchemaV3({
|
|
102
|
-
...params,
|
|
103
|
-
shapeName,
|
|
104
|
-
shapeTitle,
|
|
105
|
-
depth: params.depth + 1,
|
|
106
|
-
schema: propSchema,
|
|
107
|
-
parentSchema: schema,
|
|
108
|
-
service: contentSourceId,
|
|
109
|
-
key: propSchema.key ?? name,
|
|
110
|
-
name,
|
|
111
|
-
setSource: true
|
|
112
|
-
});
|
|
113
|
-
properties[name] = migratedPropSchema;
|
|
114
|
-
Object.assign(shapes, hoistedShapes);
|
|
115
|
-
});
|
|
116
|
-
if (params.depth > 0) {
|
|
117
|
-
const { title, description, ...rest } = schema;
|
|
118
|
-
return {
|
|
119
|
-
schema: {
|
|
120
|
-
title,
|
|
121
|
-
description,
|
|
122
|
-
'@mapping': mapping,
|
|
123
|
-
$ref: `#/shapes/${shapeName}/schema`
|
|
124
|
-
},
|
|
125
|
-
hoistedShapes: {
|
|
126
|
-
...shapes,
|
|
127
|
-
[shapeName]: {
|
|
128
|
-
id: name === key ? shapeName : key,
|
|
129
|
-
name: shapeName,
|
|
130
|
-
title: shapeTitle,
|
|
131
|
-
schema: {
|
|
132
|
-
...(0, pick_js_1.default)(rest, schema_util_1.objectSchemaKeys),
|
|
133
|
-
type: 'object',
|
|
134
|
-
properties
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
return {
|
|
141
|
-
schema: {
|
|
142
|
-
...(0, pick_js_1.default)(schema, schema_util_1.objectSchemaKeys),
|
|
143
|
-
properties,
|
|
144
|
-
'@mapping': mapping
|
|
145
|
-
},
|
|
146
|
-
hoistedShapes: shapes
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
if (schema.type === 'array' && schema.items) {
|
|
150
|
-
const { schema: itemSchema, hoistedShapes } = migrateToContentSchemaV3({
|
|
151
|
-
...params,
|
|
152
|
-
schema: schema.items,
|
|
153
|
-
parentSchema: schema,
|
|
154
|
-
service: 'parent',
|
|
155
|
-
setSource: false
|
|
156
|
-
});
|
|
157
|
-
return {
|
|
158
|
-
schema: {
|
|
159
|
-
...(0, pick_js_1.default)(schema, schema_util_1.arraySchemaKeys),
|
|
160
|
-
items: itemSchema,
|
|
161
|
-
'@mapping': mapping
|
|
162
|
-
},
|
|
163
|
-
hoistedShapes
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
throw new Error(`Unknown schema type "${type}"`);
|
|
167
|
-
}
|
|
168
|
-
function contentTypeToShape(contentType, contentTypeId) {
|
|
169
|
-
const title = contentType.title ?? contentType.name;
|
|
170
|
-
const name = (0, util_1.pascalCase)(contentType.name);
|
|
171
|
-
const contentSourceId = `takeshape:local:${name}`;
|
|
172
|
-
const { schema, hoistedShapes } = migrateToContentSchemaV3({
|
|
173
|
-
shapeName: name,
|
|
174
|
-
shapeTitle: title,
|
|
175
|
-
schema: contentType.schema,
|
|
176
|
-
service: contentSourceId,
|
|
177
|
-
name: '',
|
|
178
|
-
key: '',
|
|
179
|
-
depth: 0
|
|
180
|
-
});
|
|
181
|
-
return {
|
|
182
|
-
[name]: {
|
|
183
|
-
id: contentTypeId,
|
|
184
|
-
name,
|
|
185
|
-
title,
|
|
186
|
-
model: {
|
|
187
|
-
type: getModelType(contentType)
|
|
188
|
-
},
|
|
189
|
-
workflow: contentType.workflow,
|
|
190
|
-
schema: schema
|
|
191
|
-
},
|
|
192
|
-
...hoistedShapes
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
const migrate = async (_, projectSchema) => {
|
|
196
|
-
const { contentTypes, created, updated, ...rest } = projectSchema;
|
|
197
|
-
const shapes = {};
|
|
198
|
-
const forms = {};
|
|
199
|
-
for (const contentTypeId of Object.keys(contentTypes)) {
|
|
200
|
-
const contentType = contentTypes[contentTypeId];
|
|
201
|
-
Object.assign(shapes, contentTypeToShape(contentType, contentTypeId));
|
|
202
|
-
forms[(0, util_1.pascalCase)(contentType.name)] = contentType.forms;
|
|
203
|
-
}
|
|
204
|
-
// Use deepClone to drop undefined values, this improves compatibility with validation and testing
|
|
205
|
-
// Schemas are typically saved in Dynamo or JSON files which also remove undefined values
|
|
206
|
-
// Dropping them here is done for consistency's sake
|
|
207
|
-
return (0, util_1.deepClone)({
|
|
208
|
-
...rest,
|
|
209
|
-
...(0, schema_util_1.getShapeQueriesAndMutations)(Object.values(shapes)),
|
|
210
|
-
schemaVersion: '3',
|
|
211
|
-
created: (0, utils_1.formatDate)(created),
|
|
212
|
-
updated: (0, utils_1.formatDate)(updated),
|
|
213
|
-
shapes,
|
|
214
|
-
forms
|
|
215
|
-
});
|
|
216
|
-
};
|
|
217
|
-
exports.default = migrate;
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const util_1 = require("@takeshape/util");
|
|
7
|
-
const isObject_js_1 = __importDefault(require("lodash/isObject.js"));
|
|
8
|
-
const isString_js_1 = __importDefault(require("lodash/isString.js"));
|
|
9
|
-
const isUndefined_js_1 = __importDefault(require("lodash/isUndefined.js"));
|
|
10
|
-
const p_reduce_1 = __importDefault(require("p-reduce"));
|
|
11
|
-
const utils_1 = require("../../types/utils");
|
|
12
|
-
/**
|
|
13
|
-
* `graphql:my-key` `my-key`
|
|
14
|
-
*/
|
|
15
|
-
function parseV3ServiceStr(service) {
|
|
16
|
-
const parts = service.split(':');
|
|
17
|
-
return {
|
|
18
|
-
provider: parts.length > 1 ? parts[0] : undefined,
|
|
19
|
-
id: parts.length > 1 ? parts[1] : parts[0]
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Ensures a consistent service config, inluding updating the service
|
|
24
|
-
* authentication object.
|
|
25
|
-
*/
|
|
26
|
-
function updateServiceConfigV3ToV3_1(serviceConfig, serviceKey) {
|
|
27
|
-
if ((0, utils_1.isAnyServiceConfig)(serviceConfig)) {
|
|
28
|
-
if ((0, isString_js_1.default)(serviceConfig.authentication) || (0, isUndefined_js_1.default)(serviceConfig.authentication)) {
|
|
29
|
-
return serviceConfig;
|
|
30
|
-
}
|
|
31
|
-
return serviceConfig;
|
|
32
|
-
}
|
|
33
|
-
const { auth } = serviceConfig;
|
|
34
|
-
const serviceParams = serviceConfig.params || {};
|
|
35
|
-
let { provider: serviceKeyProvider, id: serviceKeyId } = parseV3ServiceStr(serviceKey);
|
|
36
|
-
const authType = serviceParams.authType || undefined;
|
|
37
|
-
const title = serviceParams.name || serviceKeyId;
|
|
38
|
-
if (serviceKeyId === 'vercel') {
|
|
39
|
-
serviceKeyProvider = 'vercel';
|
|
40
|
-
}
|
|
41
|
-
else if (serviceKeyId === 'netlify') {
|
|
42
|
-
serviceKeyProvider = 'netlify';
|
|
43
|
-
}
|
|
44
|
-
// Example schemas had this in params, which are untyped, so adding here just in case
|
|
45
|
-
if (serviceParams.type === 'rest') {
|
|
46
|
-
serviceKeyProvider = 'rest';
|
|
47
|
-
}
|
|
48
|
-
else if (serviceParams.type === 'graphql' && serviceKeyProvider !== 'shopify') {
|
|
49
|
-
serviceKeyProvider = 'graphql';
|
|
50
|
-
}
|
|
51
|
-
let provider;
|
|
52
|
-
let authenticationType;
|
|
53
|
-
let serviceType;
|
|
54
|
-
let namespace;
|
|
55
|
-
if (serviceKeyProvider === 'shopify') {
|
|
56
|
-
provider = 'shopify';
|
|
57
|
-
authenticationType = 'oauth2Bearer';
|
|
58
|
-
serviceType = 'graphql';
|
|
59
|
-
namespace = serviceParams.namespace ?? 'Shopify';
|
|
60
|
-
}
|
|
61
|
-
else if (serviceKeyProvider === 'takeshape') {
|
|
62
|
-
provider = 'takeshape';
|
|
63
|
-
authenticationType = 'none';
|
|
64
|
-
serviceType = 'takeshape';
|
|
65
|
-
namespace = serviceParams.namespace ?? 'TakeShape';
|
|
66
|
-
}
|
|
67
|
-
else if (serviceKeyProvider === 'bigcommerce') {
|
|
68
|
-
provider = 'bigcommerce';
|
|
69
|
-
authenticationType = 'bearer';
|
|
70
|
-
serviceType = 'graphql';
|
|
71
|
-
namespace = serviceParams.namespace ?? 'BigCommerce';
|
|
72
|
-
}
|
|
73
|
-
else if (serviceKeyProvider === 'rest') {
|
|
74
|
-
provider = 'generic';
|
|
75
|
-
authenticationType = mapAuthType(authType, auth);
|
|
76
|
-
serviceType = 'rest';
|
|
77
|
-
namespace = serviceParams.namespace ?? (0, util_1.pascalCase)(title);
|
|
78
|
-
}
|
|
79
|
-
else if (serviceKeyProvider === 'graphql') {
|
|
80
|
-
provider = 'generic';
|
|
81
|
-
authenticationType = mapAuthType(authType, auth);
|
|
82
|
-
serviceType = 'graphql';
|
|
83
|
-
namespace = serviceParams.namespace ?? (0, util_1.pascalCase)(title);
|
|
84
|
-
}
|
|
85
|
-
else if (serviceKeyProvider === 'vercel') {
|
|
86
|
-
provider = 'vercel';
|
|
87
|
-
authenticationType = 'oauth2Bearer';
|
|
88
|
-
serviceType = 'deployment';
|
|
89
|
-
}
|
|
90
|
-
else if (serviceKeyProvider === 'netlify') {
|
|
91
|
-
provider = 'netlify';
|
|
92
|
-
authenticationType = 'oauth2Bearer';
|
|
93
|
-
serviceType = 'deployment';
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
provider = 'generic';
|
|
97
|
-
authenticationType = mapAuthType(authType, auth);
|
|
98
|
-
serviceType = 'unknown';
|
|
99
|
-
namespace = serviceParams.namespace ?? (0, util_1.pascalCase)(title);
|
|
100
|
-
}
|
|
101
|
-
const updatedServiceConfig = {
|
|
102
|
-
title,
|
|
103
|
-
id: serviceKey,
|
|
104
|
-
provider,
|
|
105
|
-
namespace,
|
|
106
|
-
serviceType,
|
|
107
|
-
authenticationType,
|
|
108
|
-
options: {
|
|
109
|
-
...serviceParams
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
if (serviceConfig.auth && (0, isObject_js_1.default)(serviceConfig.auth)) {
|
|
113
|
-
const authentication = updateServiceAuthentication(updatedServiceConfig.authenticationType, serviceConfig.auth, serviceParams);
|
|
114
|
-
return {
|
|
115
|
-
...updatedServiceConfig,
|
|
116
|
-
authentication
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
return updatedServiceConfig;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* V1/V3 unencrypted `auth` -> V3.1 `authentication
|
|
123
|
-
*/
|
|
124
|
-
function updateServiceAuthentication(authenticationType, legacyAuth, legacyParams) {
|
|
125
|
-
if (authenticationType === 'oauth2Bearer') {
|
|
126
|
-
return {
|
|
127
|
-
token: legacyAuth.accessToken,
|
|
128
|
-
scope: legacyAuth.scope,
|
|
129
|
-
header: legacyParams.authHeader
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
if (authenticationType === 'searchParams' && legacyParams.authProp) {
|
|
133
|
-
return [
|
|
134
|
-
{
|
|
135
|
-
name: legacyParams.authProp,
|
|
136
|
-
value: legacyAuth.accessToken
|
|
137
|
-
}
|
|
138
|
-
];
|
|
139
|
-
}
|
|
140
|
-
if (authenticationType === 'basic') {
|
|
141
|
-
const [username, password] = Buffer.from(legacyAuth.accessToken, 'base64').toString('utf-8').split(':');
|
|
142
|
-
return {
|
|
143
|
-
username,
|
|
144
|
-
password
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
if (authenticationType === 'bearer') {
|
|
148
|
-
return {
|
|
149
|
-
token: legacyAuth.accessToken,
|
|
150
|
-
header: legacyParams.authHeader
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
function mapAuthType(authType, auth) {
|
|
155
|
-
if (authType === 'none') {
|
|
156
|
-
return 'none';
|
|
157
|
-
}
|
|
158
|
-
if (authType === 'searchParams') {
|
|
159
|
-
return 'searchParams';
|
|
160
|
-
}
|
|
161
|
-
if (authType === 'bearer') {
|
|
162
|
-
return 'bearer';
|
|
163
|
-
}
|
|
164
|
-
if (authType === 'bearer') {
|
|
165
|
-
return 'basic';
|
|
166
|
-
}
|
|
167
|
-
if (!auth) {
|
|
168
|
-
return 'none';
|
|
169
|
-
}
|
|
170
|
-
if (auth) {
|
|
171
|
-
return 'bearer';
|
|
172
|
-
}
|
|
173
|
-
return 'unknown';
|
|
174
|
-
}
|
|
175
|
-
const migrate = async (context, projectSchema) => {
|
|
176
|
-
const { encryptFn, decryptFn } = context;
|
|
177
|
-
let services;
|
|
178
|
-
/**
|
|
179
|
-
* Services can only be migrated if a dataKey is present, otherwise they will need to be discarded.
|
|
180
|
-
*/
|
|
181
|
-
if (projectSchema.services) {
|
|
182
|
-
services = await (0, p_reduce_1.default)(Object.entries(projectSchema.services), async (serviceMap, [serviceKey, serviceConfig]) => {
|
|
183
|
-
const auth = serviceConfig.auth && decryptFn(serviceConfig.auth);
|
|
184
|
-
const updatedServiceConfig = updateServiceConfigV3ToV3_1({ ...serviceConfig, auth }, serviceKey);
|
|
185
|
-
const authentication = updatedServiceConfig?.authentication;
|
|
186
|
-
serviceMap[serviceKey] = {
|
|
187
|
-
...updatedServiceConfig,
|
|
188
|
-
authentication: authentication && (0, isObject_js_1.default)(authentication) ? encryptFn(authentication) : authentication
|
|
189
|
-
};
|
|
190
|
-
return serviceMap;
|
|
191
|
-
}, {});
|
|
192
|
-
}
|
|
193
|
-
return (0, util_1.deepClone)({
|
|
194
|
-
...projectSchema,
|
|
195
|
-
services,
|
|
196
|
-
schemaVersion: '3.1.0'
|
|
197
|
-
});
|
|
198
|
-
};
|
|
199
|
-
exports.default = migrate;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const set_js_1 = __importDefault(require("lodash/fp/set.js"));
|
|
7
|
-
const mapValues_js_1 = __importDefault(require("lodash/mapValues.js"));
|
|
8
|
-
function $refToPath(ref) {
|
|
9
|
-
return ref.substr(2).split('/');
|
|
10
|
-
}
|
|
11
|
-
function $refToShapeName(ref) {
|
|
12
|
-
return $refToPath(ref)[1];
|
|
13
|
-
}
|
|
14
|
-
function findServiceIdForNamespace(projectSchema, namespace) {
|
|
15
|
-
if (projectSchema.services) {
|
|
16
|
-
for (const [serviceId, service] of Object.entries(projectSchema.services)) {
|
|
17
|
-
if (service.namespace === namespace) {
|
|
18
|
-
return serviceId;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return 'local';
|
|
23
|
-
}
|
|
24
|
-
function updateRefSyntax(projectSchema, $ref) {
|
|
25
|
-
const shapeName = $refToShapeName($ref);
|
|
26
|
-
const parts = shapeName.split('_');
|
|
27
|
-
const serviceId = parts.length === 1 ? 'local' : findServiceIdForNamespace(projectSchema, parts[0]);
|
|
28
|
-
return `${serviceId}:${parts[parts.length - 1]}`;
|
|
29
|
-
}
|
|
30
|
-
function migrateQueryToV3_10(projectSchema) {
|
|
31
|
-
return (query, queryName) => {
|
|
32
|
-
const { args, shape } = query;
|
|
33
|
-
if (typeof args === 'object' && ('oneOf' in args || 'allOf' in args || '$ref' in args || '@ref' in args)) {
|
|
34
|
-
// As of 11/15/2021 no production schemas contained queries with these args
|
|
35
|
-
throw new Error(`Query "${queryName}" contains an unsupported arg schema ${JSON.stringify(args)}. Please contact support`);
|
|
36
|
-
}
|
|
37
|
-
if (typeof shape === 'object') {
|
|
38
|
-
if (shape.items.$ref) {
|
|
39
|
-
return (0, set_js_1.default)('shape.items', { '@ref': updateRefSyntax(projectSchema, shape.items.$ref) }, query);
|
|
40
|
-
}
|
|
41
|
-
if (!shape.items['@ref']) {
|
|
42
|
-
// As of 11/15/2021 no production schemas contained queries with array return shapes that are not @refs
|
|
43
|
-
throw new Error(`Query "${queryName}" contains an unsupported shape schema ${JSON.stringify(shape)}. Please contact support`);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return query;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function migrateShapeToV3_10(shape) {
|
|
50
|
-
const { schema, ...rest } = shape;
|
|
51
|
-
// As of 11/15/2021 no production schemas contained shapes with array schemas
|
|
52
|
-
if ('type' in schema && schema.type === 'array') {
|
|
53
|
-
throw new Error(`Shape ${shape.name} uses an unsupported array schema. Please contact support`);
|
|
54
|
-
}
|
|
55
|
-
const newSchema = '$ref' in schema || '@ref' in schema ? { allOf: [schema] } : schema;
|
|
56
|
-
return {
|
|
57
|
-
...rest,
|
|
58
|
-
schema: newSchema
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
const migrate = async (_, projectSchema) => {
|
|
62
|
-
const { queries, mutations, shapes, schemaVersion, ...rest } = projectSchema;
|
|
63
|
-
const migrate = migrateQueryToV3_10(projectSchema);
|
|
64
|
-
return {
|
|
65
|
-
...rest,
|
|
66
|
-
queries: (0, mapValues_js_1.default)(queries, migrate),
|
|
67
|
-
mutations: (0, mapValues_js_1.default)(mutations, migrate),
|
|
68
|
-
shapes: (0, mapValues_js_1.default)(shapes, migrateShapeToV3_10),
|
|
69
|
-
schemaVersion: '3.10.0'
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
exports.default = migrate;
|