@takeshape/schema 9.47.0 → 9.48.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/content-schema-transform.d.ts +6 -6
- package/dist/content-schema-transform.d.ts.map +1 -1
- package/dist/create-input-schema.d.ts +2 -2
- package/dist/create-input-schema.d.ts.map +1 -1
- package/dist/flatten-templates.d.ts +2 -2
- package/dist/flatten-templates.d.ts.map +1 -1
- package/dist/get-is-leaf.d.ts +2 -2
- package/dist/get-is-leaf.d.ts.map +1 -1
- package/dist/interfaces.d.ts +6 -6
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/layers/layers.d.ts +3 -3
- package/dist/layers/layers.d.ts.map +1 -1
- package/dist/layers/refs.d.ts +4 -4
- package/dist/layers/refs.d.ts.map +1 -1
- package/dist/migration/index.d.ts +43 -42
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +4 -1
- package/dist/migration/to/utils/v3.34.0-utils.d.ts +1 -0
- package/dist/migration/to/utils/v3.34.0-utils.d.ts.map +1 -0
- package/dist/migration/to/utils/v3.34.0-utils.js +1 -0
- package/dist/migration/to/v3.0.0.d.ts +2 -2
- package/dist/migration/to/v3.0.0.d.ts.map +1 -1
- package/dist/migration/to/v3.1.0.d.ts +2 -2
- package/dist/migration/to/v3.1.0.d.ts.map +1 -1
- package/dist/migration/to/v3.10.0.d.ts +2 -2
- package/dist/migration/to/v3.10.0.d.ts.map +1 -1
- package/dist/migration/to/v3.11.0.d.ts +2 -2
- package/dist/migration/to/v3.11.0.d.ts.map +1 -1
- package/dist/migration/to/v3.12.0.d.ts +2 -2
- package/dist/migration/to/v3.12.0.d.ts.map +1 -1
- package/dist/migration/to/v3.12.1.d.ts +2 -2
- package/dist/migration/to/v3.12.1.d.ts.map +1 -1
- package/dist/migration/to/v3.12.2.d.ts +2 -2
- package/dist/migration/to/v3.12.2.d.ts.map +1 -1
- package/dist/migration/to/v3.12.3.d.ts +2 -2
- package/dist/migration/to/v3.12.3.d.ts.map +1 -1
- package/dist/migration/to/v3.13.0.d.ts +2 -2
- package/dist/migration/to/v3.13.0.d.ts.map +1 -1
- package/dist/migration/to/v3.14.0.d.ts +2 -2
- package/dist/migration/to/v3.14.0.d.ts.map +1 -1
- package/dist/migration/to/v3.15.0.d.ts +2 -2
- package/dist/migration/to/v3.15.0.d.ts.map +1 -1
- package/dist/migration/to/v3.16.0.d.ts +2 -2
- package/dist/migration/to/v3.16.0.d.ts.map +1 -1
- package/dist/migration/to/v3.17.0.d.ts +2 -2
- package/dist/migration/to/v3.17.0.d.ts.map +1 -1
- package/dist/migration/to/v3.17.1.d.ts +2 -2
- package/dist/migration/to/v3.17.1.d.ts.map +1 -1
- package/dist/migration/to/v3.18.0.d.ts +2 -2
- package/dist/migration/to/v3.18.0.d.ts.map +1 -1
- package/dist/migration/to/v3.18.1.d.ts +2 -2
- package/dist/migration/to/v3.18.1.d.ts.map +1 -1
- package/dist/migration/to/v3.18.2.d.ts +2 -2
- package/dist/migration/to/v3.18.2.d.ts.map +1 -1
- package/dist/migration/to/v3.19.0.d.ts +2 -2
- package/dist/migration/to/v3.19.0.d.ts.map +1 -1
- package/dist/migration/to/v3.2.0.d.ts +2 -2
- package/dist/migration/to/v3.2.0.d.ts.map +1 -1
- package/dist/migration/to/v3.20.0.d.ts +2 -2
- package/dist/migration/to/v3.20.0.d.ts.map +1 -1
- package/dist/migration/to/v3.21.0.d.ts +2 -2
- package/dist/migration/to/v3.21.0.d.ts.map +1 -1
- package/dist/migration/to/v3.22.0.d.ts +2 -2
- package/dist/migration/to/v3.22.0.d.ts.map +1 -1
- package/dist/migration/to/v3.23.0.d.ts +2 -2
- package/dist/migration/to/v3.23.0.d.ts.map +1 -1
- package/dist/migration/to/v3.24.0.d.ts +2 -2
- package/dist/migration/to/v3.24.0.d.ts.map +1 -1
- package/dist/migration/to/v3.25.0.d.ts +2 -2
- package/dist/migration/to/v3.25.0.d.ts.map +1 -1
- package/dist/migration/to/v3.26.0.d.ts +2 -2
- package/dist/migration/to/v3.26.0.d.ts.map +1 -1
- package/dist/migration/to/v3.27.0.d.ts +2 -2
- package/dist/migration/to/v3.27.0.d.ts.map +1 -1
- package/dist/migration/to/v3.28.0.d.ts +2 -2
- package/dist/migration/to/v3.28.0.d.ts.map +1 -1
- package/dist/migration/to/v3.29.0.d.ts +2 -2
- package/dist/migration/to/v3.29.0.d.ts.map +1 -1
- package/dist/migration/to/v3.3.0.d.ts +2 -2
- package/dist/migration/to/v3.3.0.d.ts.map +1 -1
- package/dist/migration/to/v3.30.0.d.ts +2 -2
- package/dist/migration/to/v3.30.0.d.ts.map +1 -1
- package/dist/migration/to/v3.31.0.d.ts +2 -2
- package/dist/migration/to/v3.31.0.d.ts.map +1 -1
- package/dist/migration/to/v3.32.0.d.ts +2 -2
- package/dist/migration/to/v3.32.0.d.ts.map +1 -1
- package/dist/migration/to/v3.33.0.d.ts +2 -2
- package/dist/migration/to/v3.33.0.d.ts.map +1 -1
- package/dist/migration/to/v3.34.0.d.ts +4 -4
- package/dist/migration/to/v3.34.0.d.ts.map +1 -1
- package/dist/migration/to/v3.34.0.js +28 -6
- package/dist/migration/to/v3.35.0.d.ts +5 -0
- package/dist/migration/to/v3.35.0.d.ts.map +1 -0
- package/dist/migration/to/v3.35.0.js +18 -0
- package/dist/migration/to/v3.4.0.d.ts +2 -2
- package/dist/migration/to/v3.4.0.d.ts.map +1 -1
- package/dist/migration/to/v3.5.0.d.ts +2 -2
- package/dist/migration/to/v3.5.0.d.ts.map +1 -1
- package/dist/migration/to/v3.5.1.d.ts +2 -2
- package/dist/migration/to/v3.5.1.d.ts.map +1 -1
- package/dist/migration/to/v3.6.0.d.ts +2 -2
- package/dist/migration/to/v3.6.0.d.ts.map +1 -1
- package/dist/migration/to/v3.7.0.d.ts +2 -2
- package/dist/migration/to/v3.7.0.d.ts.map +1 -1
- package/dist/migration/to/v3.8.0.d.ts +2 -2
- package/dist/migration/to/v3.8.0.d.ts.map +1 -1
- package/dist/migration/to/v3.9.0.d.ts +2 -2
- package/dist/migration/to/v3.9.0.d.ts.map +1 -1
- package/dist/migration/types.d.ts +6 -6
- package/dist/migration/types.d.ts.map +1 -1
- package/dist/mocks.d.ts +5 -5
- package/dist/mocks.d.ts.map +1 -1
- package/dist/models/project-schema.d.ts +36 -0
- package/dist/models/project-schema.d.ts.map +1 -0
- package/dist/models/project-schema.js +132 -0
- package/dist/models/query.d.ts +18 -0
- package/dist/models/query.d.ts.map +1 -0
- package/dist/models/query.js +44 -0
- package/dist/models/service.d.ts +13 -0
- package/dist/models/service.d.ts.map +1 -0
- package/dist/models/service.js +34 -0
- package/dist/models/shape.d.ts +42 -0
- package/dist/models/shape.d.ts.map +1 -0
- package/dist/models/shape.js +116 -0
- package/dist/project-schema/index.d.ts +94 -91
- package/dist/project-schema/index.d.ts.map +1 -1
- package/dist/project-schema/index.js +154 -137
- package/dist/project-schema/latest.d.ts +145 -126
- package/dist/project-schema/latest.d.ts.map +1 -1
- package/dist/project-schema/migrate.d.ts +3 -3
- package/dist/project-schema/migrate.d.ts.map +1 -1
- package/dist/project-schema/migrate.js +49 -45
- package/dist/project-schema/v1.0.0.d.ts +13 -13
- package/dist/project-schema/v1.0.0.d.ts.map +1 -1
- package/dist/project-schema/v3.0.0.d.ts +23 -23
- package/dist/project-schema/v3.0.0.d.ts.map +1 -1
- package/dist/project-schema/v3.1.0.d.ts +35 -35
- package/dist/project-schema/v3.1.0.d.ts.map +1 -1
- package/dist/project-schema/v3.10.0.d.ts +104 -104
- package/dist/project-schema/v3.10.0.d.ts.map +1 -1
- package/dist/project-schema/v3.11.0.d.ts +104 -104
- package/dist/project-schema/v3.11.0.d.ts.map +1 -1
- package/dist/project-schema/v3.12.0.d.ts +104 -104
- package/dist/project-schema/v3.12.0.d.ts.map +1 -1
- package/dist/project-schema/v3.12.1.d.ts +110 -110
- package/dist/project-schema/v3.12.1.d.ts.map +1 -1
- package/dist/project-schema/v3.12.2.d.ts +111 -111
- package/dist/project-schema/v3.12.2.d.ts.map +1 -1
- package/dist/project-schema/v3.12.3.d.ts +114 -114
- package/dist/project-schema/v3.12.3.d.ts.map +1 -1
- package/dist/project-schema/v3.13.0.d.ts +115 -115
- package/dist/project-schema/v3.13.0.d.ts.map +1 -1
- package/dist/project-schema/v3.14.0.d.ts +116 -116
- package/dist/project-schema/v3.14.0.d.ts.map +1 -1
- package/dist/project-schema/v3.15.0.d.ts +119 -119
- package/dist/project-schema/v3.15.0.d.ts.map +1 -1
- package/dist/project-schema/v3.16.0.d.ts +119 -119
- package/dist/project-schema/v3.16.0.d.ts.map +1 -1
- package/dist/project-schema/v3.17.0.d.ts +119 -119
- package/dist/project-schema/v3.17.0.d.ts.map +1 -1
- package/dist/project-schema/v3.17.1.d.ts +119 -119
- package/dist/project-schema/v3.17.1.d.ts.map +1 -1
- package/dist/project-schema/v3.18.0.d.ts +117 -117
- package/dist/project-schema/v3.18.0.d.ts.map +1 -1
- package/dist/project-schema/v3.18.1.d.ts +117 -117
- package/dist/project-schema/v3.18.1.d.ts.map +1 -1
- package/dist/project-schema/v3.18.2.d.ts +117 -117
- package/dist/project-schema/v3.18.2.d.ts.map +1 -1
- package/dist/project-schema/v3.19.0.d.ts +117 -117
- package/dist/project-schema/v3.19.0.d.ts.map +1 -1
- package/dist/project-schema/v3.2.0.d.ts +36 -36
- package/dist/project-schema/v3.2.0.d.ts.map +1 -1
- package/dist/project-schema/v3.20.0.d.ts +117 -117
- package/dist/project-schema/v3.20.0.d.ts.map +1 -1
- package/dist/project-schema/v3.21.0.d.ts +117 -117
- package/dist/project-schema/v3.21.0.d.ts.map +1 -1
- package/dist/project-schema/v3.22.0.d.ts +118 -118
- package/dist/project-schema/v3.22.0.d.ts.map +1 -1
- package/dist/project-schema/v3.23.0.d.ts +120 -120
- package/dist/project-schema/v3.23.0.d.ts.map +1 -1
- package/dist/project-schema/v3.24.0.d.ts +120 -120
- package/dist/project-schema/v3.24.0.d.ts.map +1 -1
- package/dist/project-schema/v3.25.0.d.ts +120 -120
- package/dist/project-schema/v3.25.0.d.ts.map +1 -1
- package/dist/project-schema/v3.26.0.d.ts +121 -121
- package/dist/project-schema/v3.26.0.d.ts.map +1 -1
- package/dist/project-schema/v3.27.0.d.ts +122 -122
- package/dist/project-schema/v3.27.0.d.ts.map +1 -1
- package/dist/project-schema/v3.28.0.d.ts +123 -123
- package/dist/project-schema/v3.28.0.d.ts.map +1 -1
- package/dist/project-schema/v3.29.0.d.ts +124 -124
- package/dist/project-schema/v3.29.0.d.ts.map +1 -1
- package/dist/project-schema/v3.3.0.d.ts +36 -36
- package/dist/project-schema/v3.3.0.d.ts.map +1 -1
- package/dist/project-schema/v3.30.0.d.ts +123 -123
- package/dist/project-schema/v3.30.0.d.ts.map +1 -1
- package/dist/project-schema/v3.31.0.d.ts +125 -125
- package/dist/project-schema/v3.31.0.d.ts.map +1 -1
- package/dist/project-schema/v3.32.0.d.ts +124 -124
- package/dist/project-schema/v3.32.0.d.ts.map +1 -1
- package/dist/project-schema/v3.33.0.d.ts +125 -125
- package/dist/project-schema/v3.33.0.d.ts.map +1 -1
- package/dist/project-schema/v3.34.0.d.ts +125 -125
- package/dist/project-schema/v3.34.0.d.ts.map +1 -1
- package/dist/project-schema/v3.35.0.d.ts +1465 -0
- package/dist/project-schema/v3.35.0.d.ts.map +1 -0
- package/dist/project-schema/v3.35.0.js +5 -0
- package/dist/project-schema/v3.4.0.d.ts +36 -36
- package/dist/project-schema/v3.4.0.d.ts.map +1 -1
- package/dist/project-schema/v3.5.0.d.ts +36 -36
- package/dist/project-schema/v3.5.0.d.ts.map +1 -1
- package/dist/project-schema/v3.5.1.d.ts +36 -36
- package/dist/project-schema/v3.5.1.d.ts.map +1 -1
- package/dist/project-schema/v3.6.0.d.ts +37 -37
- package/dist/project-schema/v3.6.0.d.ts.map +1 -1
- package/dist/project-schema/v3.7.0.d.ts +37 -37
- package/dist/project-schema/v3.7.0.d.ts.map +1 -1
- package/dist/project-schema/v3.8.0.d.ts +39 -39
- package/dist/project-schema/v3.8.0.d.ts.map +1 -1
- package/dist/project-schema/v3.9.0.d.ts +39 -39
- package/dist/project-schema/v3.9.0.d.ts.map +1 -1
- package/dist/project-schema/v4.0.0.d.ts +113 -113
- package/dist/project-schema/v4.0.0.d.ts.map +1 -1
- package/dist/refs.d.ts +16 -13
- package/dist/refs.d.ts.map +1 -1
- package/dist/refs.js +21 -0
- package/dist/relationships.d.ts +5 -5
- package/dist/relationships.d.ts.map +1 -1
- package/dist/schema-util.d.ts +46 -40
- package/dist/schema-util.d.ts.map +1 -1
- package/dist/schema-util.js +34 -29
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +6 -4
- package/dist/schemas/index.ts +4 -2
- package/dist/schemas/project-schema/latest.json +42 -7
- package/dist/schemas/project-schema/meta-schema-v3.0.0.json +1 -1
- package/dist/schemas/project-schema/meta-schema-v3.1.0.json +1 -1
- package/dist/schemas/project-schema/meta-schema-v3.2.0.json +1 -1
- package/dist/schemas/project-schema/meta-schema-v3.3.0.json +1 -1
- package/dist/schemas/project-schema/meta-schema-v3.4.0.json +1 -1
- package/dist/schemas/project-schema/meta-schema-v3.5.0.json +1 -1
- package/dist/schemas/project-schema/meta-schema-v3.5.1.json +1 -1
- package/dist/schemas/project-schema/meta-schema-v3.6.0.json +1 -1
- package/dist/schemas/project-schema/meta-schema-v3.7.0.json +1 -1
- package/dist/schemas/project-schema/meta-schema-v3.8.0.json +1 -1
- package/dist/schemas/project-schema/meta-schema-v3.9.0.json +1 -1
- package/dist/schemas/project-schema/v1.0.0.json +1 -1
- package/dist/schemas/project-schema/v3.0.0.json +2 -2
- package/dist/schemas/project-schema/v3.1.0.json +4 -4
- package/dist/schemas/project-schema/v3.10.0.json +5 -5
- package/dist/schemas/project-schema/v3.11.0.json +5 -5
- package/dist/schemas/project-schema/v3.12.0.json +5 -5
- package/dist/schemas/project-schema/v3.12.1.json +5 -5
- package/dist/schemas/project-schema/v3.12.2.json +5 -5
- package/dist/schemas/project-schema/v3.12.3.json +5 -5
- package/dist/schemas/project-schema/v3.13.0.json +5 -5
- package/dist/schemas/project-schema/v3.14.0.json +5 -5
- package/dist/schemas/project-schema/v3.15.0.json +5 -5
- package/dist/schemas/project-schema/v3.16.0.json +5 -5
- package/dist/schemas/project-schema/v3.17.0.json +5 -5
- package/dist/schemas/project-schema/v3.17.1.json +5 -5
- package/dist/schemas/project-schema/v3.18.0.json +5 -5
- package/dist/schemas/project-schema/v3.18.1.json +5 -5
- package/dist/schemas/project-schema/v3.18.2.json +5 -5
- package/dist/schemas/project-schema/v3.19.0.json +5 -5
- package/dist/schemas/project-schema/v3.2.0.json +4 -4
- package/dist/schemas/project-schema/v3.20.0.json +5 -5
- package/dist/schemas/project-schema/v3.21.0.json +5 -5
- package/dist/schemas/project-schema/v3.22.0.json +5 -5
- package/dist/schemas/project-schema/v3.23.0.json +5 -5
- package/dist/schemas/project-schema/v3.24.0.json +5 -5
- package/dist/schemas/project-schema/v3.25.0.json +5 -5
- package/dist/schemas/project-schema/v3.26.0.json +6 -6
- package/dist/schemas/project-schema/v3.27.0.json +6 -6
- package/dist/schemas/project-schema/v3.28.0.json +5 -5
- package/dist/schemas/project-schema/v3.29.0.json +5 -5
- package/dist/schemas/project-schema/v3.3.0.json +4 -4
- package/dist/schemas/project-schema/v3.30.0.json +5 -5
- package/dist/schemas/project-schema/v3.31.0.json +6 -6
- package/dist/schemas/project-schema/v3.32.0.json +6 -6
- package/dist/schemas/project-schema/v3.33.0.json +6 -6
- package/dist/schemas/project-schema/v3.34.0.json +5 -5
- package/dist/schemas/project-schema/v3.35.0.json +3123 -0
- package/dist/schemas/project-schema/v3.4.0.json +4 -4
- package/dist/schemas/project-schema/v3.5.0.json +4 -4
- package/dist/schemas/project-schema/v3.5.1.json +4 -4
- package/dist/schemas/project-schema/v3.6.0.json +4 -4
- package/dist/schemas/project-schema/v3.7.0.json +4 -4
- package/dist/schemas/project-schema/v3.8.0.json +4 -4
- package/dist/schemas/project-schema/v3.9.0.json +4 -4
- package/dist/schemas/project-schema/v4.0.0.json +5 -5
- package/dist/schemas/project-schema.json +3 -0
- package/dist/services.d.ts +12 -12
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js +3 -3
- package/dist/taxonomies.d.ts +4 -4
- package/dist/taxonomies.d.ts.map +1 -1
- package/dist/template-shapes/index.d.ts +2 -2
- package/dist/template-shapes/index.d.ts.map +1 -1
- package/dist/template-shapes/templates.d.ts +21 -21
- package/dist/template-shapes/templates.d.ts.map +1 -1
- package/dist/template-shapes/types.d.ts +3 -3
- package/dist/template-shapes/types.d.ts.map +1 -1
- package/dist/template-shapes/where.d.ts +6 -6
- package/dist/template-shapes/where.d.ts.map +1 -1
- package/dist/types/types.d.ts +10 -9
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts +5 -4
- package/dist/types/utils.d.ts.map +1 -1
- package/dist/types/utils.js +5 -0
- package/dist/unions.d.ts +8 -8
- package/dist/unions.d.ts.map +1 -1
- package/dist/util/api-indexing.d.ts +4 -4
- package/dist/util/api-indexing.d.ts.map +1 -1
- package/dist/util/detect-cycles.d.ts +3 -3
- package/dist/util/detect-cycles.d.ts.map +1 -1
- package/dist/util/find-shape-at-path.d.ts +3 -3
- package/dist/util/find-shape-at-path.d.ts.map +1 -1
- package/dist/util/form-config.d.ts +3 -3
- package/dist/util/form-config.d.ts.map +1 -1
- package/dist/util/get-conflicting-properties.d.ts +2 -2
- package/dist/util/get-conflicting-properties.d.ts.map +1 -1
- package/dist/util/get-return-shape.d.ts +4 -2
- package/dist/util/get-return-shape.d.ts.map +1 -1
- package/dist/util/get-return-shape.js +5 -0
- package/dist/util/has-arg.d.ts +2 -2
- package/dist/util/has-arg.d.ts.map +1 -1
- package/dist/util/merge.d.ts +3 -3
- package/dist/util/merge.d.ts.map +1 -1
- package/dist/util/patch-schema.d.ts +2 -2
- package/dist/util/patch-schema.d.ts.map +1 -1
- package/dist/validate.d.ts +3 -3
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +84 -5
- package/dist/workflows.d.ts +3 -3
- package/dist/workflows.d.ts.map +1 -1
- package/es/migration/index.js +3 -1
- package/es/migration/to/utils/v3.34.0-utils.js +0 -0
- package/es/migration/to/v3.34.0.js +28 -7
- package/es/migration/to/v3.35.0.js +10 -0
- package/es/models/project-schema.js +116 -0
- package/es/models/query.js +35 -0
- package/es/models/service.js +25 -0
- package/es/models/shape.js +105 -0
- package/es/project-schema/index.js +47 -45
- package/es/project-schema/migrate.js +50 -46
- package/es/project-schema/v3.35.0.js +1 -0
- package/es/refs.js +15 -0
- package/es/schema-util.js +32 -29
- package/es/schemas/index.js +4 -3
- package/es/schemas/index.ts +4 -2
- package/es/schemas/project-schema/latest.json +42 -7
- package/es/schemas/project-schema/meta-schema-v3.0.0.json +1 -1
- package/es/schemas/project-schema/meta-schema-v3.1.0.json +1 -1
- package/es/schemas/project-schema/meta-schema-v3.2.0.json +1 -1
- package/es/schemas/project-schema/meta-schema-v3.3.0.json +1 -1
- package/es/schemas/project-schema/meta-schema-v3.4.0.json +1 -1
- package/es/schemas/project-schema/meta-schema-v3.5.0.json +1 -1
- package/es/schemas/project-schema/meta-schema-v3.5.1.json +1 -1
- package/es/schemas/project-schema/meta-schema-v3.6.0.json +1 -1
- package/es/schemas/project-schema/meta-schema-v3.7.0.json +1 -1
- package/es/schemas/project-schema/meta-schema-v3.8.0.json +1 -1
- package/es/schemas/project-schema/meta-schema-v3.9.0.json +1 -1
- package/es/schemas/project-schema/v1.0.0.json +1 -1
- package/es/schemas/project-schema/v3.0.0.json +2 -2
- package/es/schemas/project-schema/v3.1.0.json +4 -4
- package/es/schemas/project-schema/v3.10.0.json +5 -5
- package/es/schemas/project-schema/v3.11.0.json +5 -5
- package/es/schemas/project-schema/v3.12.0.json +5 -5
- package/es/schemas/project-schema/v3.12.1.json +5 -5
- package/es/schemas/project-schema/v3.12.2.json +5 -5
- package/es/schemas/project-schema/v3.12.3.json +5 -5
- package/es/schemas/project-schema/v3.13.0.json +5 -5
- package/es/schemas/project-schema/v3.14.0.json +5 -5
- package/es/schemas/project-schema/v3.15.0.json +5 -5
- package/es/schemas/project-schema/v3.16.0.json +5 -5
- package/es/schemas/project-schema/v3.17.0.json +5 -5
- package/es/schemas/project-schema/v3.17.1.json +5 -5
- package/es/schemas/project-schema/v3.18.0.json +5 -5
- package/es/schemas/project-schema/v3.18.1.json +5 -5
- package/es/schemas/project-schema/v3.18.2.json +5 -5
- package/es/schemas/project-schema/v3.19.0.json +5 -5
- package/es/schemas/project-schema/v3.2.0.json +4 -4
- package/es/schemas/project-schema/v3.20.0.json +5 -5
- package/es/schemas/project-schema/v3.21.0.json +5 -5
- package/es/schemas/project-schema/v3.22.0.json +5 -5
- package/es/schemas/project-schema/v3.23.0.json +5 -5
- package/es/schemas/project-schema/v3.24.0.json +5 -5
- package/es/schemas/project-schema/v3.25.0.json +5 -5
- package/es/schemas/project-schema/v3.26.0.json +6 -6
- package/es/schemas/project-schema/v3.27.0.json +6 -6
- package/es/schemas/project-schema/v3.28.0.json +5 -5
- package/es/schemas/project-schema/v3.29.0.json +5 -5
- package/es/schemas/project-schema/v3.3.0.json +4 -4
- package/es/schemas/project-schema/v3.30.0.json +5 -5
- package/es/schemas/project-schema/v3.31.0.json +6 -6
- package/es/schemas/project-schema/v3.32.0.json +6 -6
- package/es/schemas/project-schema/v3.33.0.json +6 -6
- package/es/schemas/project-schema/v3.34.0.json +5 -5
- package/es/schemas/project-schema/v3.35.0.json +3123 -0
- package/es/schemas/project-schema/v3.4.0.json +4 -4
- package/es/schemas/project-schema/v3.5.0.json +4 -4
- package/es/schemas/project-schema/v3.5.1.json +4 -4
- package/es/schemas/project-schema/v3.6.0.json +4 -4
- package/es/schemas/project-schema/v3.7.0.json +4 -4
- package/es/schemas/project-schema/v3.8.0.json +4 -4
- package/es/schemas/project-schema/v3.9.0.json +4 -4
- package/es/schemas/project-schema/v4.0.0.json +5 -5
- package/es/schemas/project-schema.json +3 -0
- package/es/services.js +3 -3
- package/es/types/utils.js +3 -0
- package/es/util/get-return-shape.js +3 -0
- package/es/validate.js +85 -6
- package/examples/latest/betzino.json +1 -1
- package/examples/latest/blog-schema.json +1 -1
- package/examples/latest/brewery-schema.json +1 -1
- package/examples/latest/complex-project-schema.json +1 -1
- package/examples/latest/complex-schema.json +1 -1
- package/examples/latest/fabric-ecommerce.json +1 -1
- package/examples/latest/frank-and-fred-schema.json +1 -1
- package/examples/latest/klirr-schema.json +1 -1
- package/examples/latest/massive-schema.json +1 -1
- package/examples/latest/mill-components-schema.json +1 -1
- package/examples/latest/one-earth.json +1 -1
- package/examples/latest/pet-oneof-array.json +1 -1
- package/examples/latest/post-schema.json +1 -1
- package/examples/latest/pruned-shopify-product-schema.json +1 -1
- package/examples/latest/real-world-schema.json +1 -1
- package/examples/latest/recursive-repeater-schema.json +1 -1
- package/examples/latest/recursive-schema.json +1 -1
- package/examples/latest/rick-and-morty-ast.json +1 -1
- package/examples/latest/rick-and-morty-graphql.json +1 -1
- package/examples/latest/rick-and-morty-rest.json +1 -1
- package/examples/latest/schema-with-repeater-draftjs.json +1 -1
- package/examples/latest/shape-books-v3_2_0.json +1 -1
- package/examples/latest/shape-books.json +1 -1
- package/examples/latest/shape-editor-schema-edited.json +2 -2
- package/examples/latest/shape-editor-schema-initial.json +1 -1
- package/examples/latest/shopify-lookbook.json +1 -1
- package/examples/latest/shopify-product-2022-07.json +1 -1
- package/examples/latest/shopify-product-2023-04.json +1 -1
- package/examples/latest/shopify-store-with-widget.json +1 -1
- package/examples/latest/stripe-product-runtime-schema.json +1 -1
- package/examples/latest/stripe-starter-resolved.json +1 -1
- package/examples/latest/user-schema-no-required.json +1 -1
- package/examples/latest/user-schema-with-defaults.json +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSONV3_17_1, ProjectSchemaJSONV3_18_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_17_1, ProjectSchemaJSONV3_18_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.18.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.18.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"v3.18.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EAGzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAM9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAiEhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSONV3_18_0, ProjectSchemaJSONV3_18_1 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_18_0, ProjectSchemaJSONV3_18_1>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.18.1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.18.1.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"v3.18.1.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EAGzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAM9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAUhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSONV3_18_1, ProjectSchemaJSONV3_18_2 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_18_1, ProjectSchemaJSONV3_18_2>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.18.2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.18.2.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.18.2.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAC7F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAiB9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAKhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_18_2, ProjectSchemaJSONV3_19_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_18_2, ProjectSchemaJSONV3_19_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.19.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.19.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.19.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.19.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.19.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSONV3_1_0, ProjectSchemaJSONV3_2_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_1_0, ProjectSchemaJSONV3_2_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.2.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.2.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.2.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.2.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.2.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAQ9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSONV3_19_0, ProjectSchemaJSONV3_20_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_19_0, ProjectSchemaJSONV3_20_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.20.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.20.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.20.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.20.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.20.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAC7F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAmB9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAKhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_20_0, ProjectSchemaJSONV3_21_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_20_0, ProjectSchemaJSONV3_21_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.21.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.21.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.21.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.21.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.21.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_21_0, ProjectSchemaJSONV3_22_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_21_0, ProjectSchemaJSONV3_22_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.22.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.22.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.22.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,
|
|
1
|
+
{"version":3,"file":"v3.22.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.22.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACpG,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAI9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAwBhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_22_0, ProjectSchemaJSONV3_23_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_22_0, ProjectSchemaJSONV3_23_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.23.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.23.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.23.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.23.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.23.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_23_0, ProjectSchemaJSONV3_24_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_23_0, ProjectSchemaJSONV3_24_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.24.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.24.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.24.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.24.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.24.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAUhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_24_0, ProjectSchemaJSONV3_25_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_24_0, ProjectSchemaJSONV3_25_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.25.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.25.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.25.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.25.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.25.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAUhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_25_0, ProjectSchemaJSONV3_26_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_25_0, ProjectSchemaJSONV3_26_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.26.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.26.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.26.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.26.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.26.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_26_0, ProjectSchemaJSONV3_27_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_26_0, ProjectSchemaJSONV3_27_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.27.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.27.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.27.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.27.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.27.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_27_0, ProjectSchemaJSONV3_28_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_27_0, ProjectSchemaJSONV3_28_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.28.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.28.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.28.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.28.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.28.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_28_0, ProjectSchemaJSONV3_29_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_28_0, ProjectSchemaJSONV3_29_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.29.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.29.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.29.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.29.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.29.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSONV3_2_0, ProjectSchemaJSONV3_3_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_2_0, ProjectSchemaJSONV3_3_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.3.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.3.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.3.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.3.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.3.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAY9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_29_0, ProjectSchemaJSONV3_30_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_29_0, ProjectSchemaJSONV3_30_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.30.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.30.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.30.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.30.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.30.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_30_0, ProjectSchemaJSONV3_31_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_30_0, ProjectSchemaJSONV3_31_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.31.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.31.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.31.0.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.31.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.31.0.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAW9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAwBhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_31_0, ProjectSchemaJSONV3_32_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_31_0, ProjectSchemaJSONV3_32_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.32.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.32.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.32.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,
|
|
1
|
+
{"version":3,"file":"v3.32.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.32.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,wBAAwB,EACxB,wBAAwB,EAKzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAoC9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAgChF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectSchemaJSONV3_32_0, ProjectSchemaJSONV3_33_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_32_0, ProjectSchemaJSONV3_33_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.33.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.33.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.33.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.33.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.33.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FormMapV3_33_0,
|
|
1
|
+
import { FormMapV3_33_0, ProjectSchemaJSONV3_33_0, ProjectSchemaJSONV3_34_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
export declare function normalizeForms(projectSchema:
|
|
4
|
-
export declare function migrateInterfaceShapes(projectSchema:
|
|
5
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
export declare function normalizeForms(projectSchema: ProjectSchemaJSONV3_33_0): FormMapV3_33_0;
|
|
4
|
+
export declare function migrateInterfaceShapes(projectSchema: ProjectSchemaJSONV3_33_0): ProjectSchemaJSONV3_33_0;
|
|
5
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_33_0, ProjectSchemaJSONV3_34_0>;
|
|
6
6
|
export default migrate;
|
|
7
7
|
//# sourceMappingURL=v3.34.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.34.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.34.0.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"v3.34.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.34.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAsB9C,wBAAgB,cAAc,CAAC,aAAa,EAAE,wBAAwB,GAAG,cAAc,CAiDtF;AAED,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,wBAAwB,GAAG,wBAAwB,CAoDxG;AAED,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAwBhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -21,6 +21,8 @@ var _unset = _interopRequireDefault(require("lodash/fp/unset"));
|
|
|
21
21
|
|
|
22
22
|
var _services = require("../../services");
|
|
23
23
|
|
|
24
|
+
var _schemas = require("../../schemas");
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
27
|
|
|
26
28
|
// Inline utilities for posterity
|
|
@@ -104,9 +106,12 @@ function migrateInterfaceShapes(projectSchema) {
|
|
|
104
106
|
for (const shape of Object.values(projectSchema.shapes)) {
|
|
105
107
|
if (!shape.model) {
|
|
106
108
|
continue;
|
|
107
|
-
}
|
|
109
|
+
} // Set the schema version to the current to appease type check this line will eventually break as the schema diverges
|
|
108
110
|
|
|
109
|
-
|
|
111
|
+
|
|
112
|
+
const serviceObjectFields = (0, _services.getServiceObjectFields)({ ...projectSchema,
|
|
113
|
+
schemaVersion: _schemas.CURRENT_SCHEMA_VERSION
|
|
114
|
+
}, shape, 'shopify');
|
|
110
115
|
|
|
111
116
|
for (const field of serviceObjectFields) {
|
|
112
117
|
const {
|
|
@@ -150,11 +155,28 @@ function migrateInterfaceShapes(projectSchema) {
|
|
|
150
155
|
}
|
|
151
156
|
|
|
152
157
|
const migrate = async (_, projectSchema) => {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
158
|
+
let normalized = projectSchema;
|
|
159
|
+
|
|
160
|
+
try {
|
|
161
|
+
normalized = { ...projectSchema,
|
|
162
|
+
forms: normalizeForms(projectSchema)
|
|
163
|
+
};
|
|
164
|
+
} catch (e) {
|
|
165
|
+
// TODO remove console.log when a formal warning mechanism is added https://app.shortcut.com/takeshape/story/11533/return-warnings-from-schema-migration
|
|
166
|
+
// eslint-disable-next-line no-console
|
|
167
|
+
console.log(`v3.34.0 migration warning: Failed to normalize forms`, e.message);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
try {
|
|
171
|
+
normalized = migrateInterfaceShapes(normalized);
|
|
172
|
+
} catch (e) {
|
|
173
|
+
// eslint-disable-next-line no-console
|
|
174
|
+
console.log(`v3.34.0 migration warning: Failed to migrate interface shapes`, e.message);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return { ...normalized,
|
|
156
178
|
schemaVersion: '3.34.0'
|
|
157
|
-
}
|
|
179
|
+
};
|
|
158
180
|
};
|
|
159
181
|
|
|
160
182
|
var _default = migrate;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ProjectSchemaJSONV3_34_0, ProjectSchemaJSONV3_35_0 } from '../../project-schema';
|
|
2
|
+
import type { MigrateFunction } from '../types';
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_34_0, ProjectSchemaJSONV3_35_0>;
|
|
4
|
+
export default migrate;
|
|
5
|
+
//# sourceMappingURL=v3.35.0.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3.35.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.35.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
const migrate = async (_, projectSchema) => {
|
|
9
|
+
/**
|
|
10
|
+
* No migration needed all changes are backwards compatible.
|
|
11
|
+
*/
|
|
12
|
+
return { ...projectSchema,
|
|
13
|
+
schemaVersion: '3.35.0'
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var _default = migrate;
|
|
18
|
+
exports.default = _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSONV3_3_0, ProjectSchemaJSONV3_4_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_3_0, ProjectSchemaJSONV3_4_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.4.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.4.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.4.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.4.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.4.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAQ9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSONV3_4_0, ProjectSchemaJSONV3_5_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_4_0, ProjectSchemaJSONV3_5_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.5.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.5.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.5.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.5.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.5.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAQ9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSONV3_5_0, ProjectSchemaJSONV3_5_1 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_5_0, ProjectSchemaJSONV3_5_1>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.5.1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.5.1.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.5.1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.5.1.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.5.1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAQ9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSONV3_5_1, ProjectSchemaJSONV3_6_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_5_1, ProjectSchemaJSONV3_6_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.6.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.6.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.6.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.6.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.6.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAQ9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSONV3_6_0, ProjectSchemaJSONV3_7_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_6_0, ProjectSchemaJSONV3_7_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.7.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.7.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.7.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.7.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.7.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAQ9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSONV3_7_0, ProjectSchemaJSONV3_8_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_7_0, ProjectSchemaJSONV3_8_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.8.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.8.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.8.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"v3.8.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.8.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAQ9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSONV3_8_0, ProjectSchemaJSONV3_9_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
|
-
declare const migrate: MigrateFunction<
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_8_0, ProjectSchemaJSONV3_9_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.9.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.9.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.9.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"v3.9.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.9.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EASxB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAe9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAqE9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSON, FormConfig, Workflow, ShapeJSON, ServiceConfigJSON, QueryJSON } from '../project-schema';
|
|
2
2
|
import type { EncryptFn, SafeDecryptFn } from '../services';
|
|
3
3
|
export interface ProjectSchemaMigrationContext {
|
|
4
4
|
generateDataKeyFn: () => Promise<string>;
|
|
5
5
|
encryptFn: EncryptFn;
|
|
6
6
|
decryptFn: SafeDecryptFn;
|
|
7
7
|
}
|
|
8
|
-
export interface ProjectSchemaUpdate extends Omit<Partial<
|
|
9
|
-
queries?: Record<string,
|
|
10
|
-
mutations?: Record<string,
|
|
11
|
-
shapes?: Record<string,
|
|
8
|
+
export interface ProjectSchemaUpdate extends Omit<Partial<ProjectSchemaJSON>, 'queries' | 'mutations' | 'shapes' | 'forms' | 'workflows' | 'services'> {
|
|
9
|
+
queries?: Record<string, QueryJSON | null>;
|
|
10
|
+
mutations?: Record<string, QueryJSON | null>;
|
|
11
|
+
shapes?: Record<string, ShapeJSON | null>;
|
|
12
12
|
forms?: Record<string, FormConfig | null>;
|
|
13
13
|
workflows?: Record<string, Workflow | null>;
|
|
14
|
-
services?: Record<string,
|
|
14
|
+
services?: Record<string, ServiceConfigJSON | null>;
|
|
15
15
|
deactivated?: number;
|
|
16
16
|
}
|
|
17
17
|
export type MigrateFunction<FromSchema, ToSchema> = (context: ProjectSchemaMigrationContext, fromSchema: FromSchema) => Promise<ToSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/migration/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/migration/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAC,MAAM,mBAAmB,CAAC;AACxH,OAAO,KAAK,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,aAAa,CAAC;AAE1D,MAAM,WAAW,6BAA6B;IAC5C,iBAAiB,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,CAAC;IACjH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC,CAAC;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,eAAe,CAAC,UAAU,EAAE,QAAQ,IAAI,CAClD,OAAO,EAAE,6BAA6B,EACtC,UAAU,EAAE,UAAU,KACnB,OAAO,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/mocks.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProjectSchemaJSON, ServiceConfig, ShapeJSON, ServiceConfigJSON } from './project-schema';
|
|
2
2
|
import type { CachedShape, ServiceKey } from './types/types';
|
|
3
3
|
/**
|
|
4
4
|
* Like emptySchema, but for tests.
|
|
5
5
|
*/
|
|
6
|
-
export declare function createMockSchema(projectId: string, schema?: Partial<
|
|
6
|
+
export declare function createMockSchema(projectId: string, schema?: Partial<ProjectSchemaJSON>): ProjectSchemaJSON;
|
|
7
7
|
/**
|
|
8
8
|
* Capturing a common pattern used in tests. Creates an empty schema, with defaults.
|
|
9
9
|
*/
|
|
10
|
-
export declare function createMockSchemaWithDefaults(projectId: string, schema?: Partial<
|
|
10
|
+
export declare function createMockSchemaWithDefaults(projectId: string, schema?: Partial<ProjectSchemaJSON>): ProjectSchemaJSON;
|
|
11
11
|
export declare function createMockServiceConfig(serviceKey: ServiceKey, serviceConfig?: Partial<ServiceConfig>): ServiceConfig;
|
|
12
|
-
export declare function createMockStoredServiceConfig(serviceKey: ServiceKey, serviceConfig?: Partial<
|
|
13
|
-
export declare function addMockIndexingConfig(shape:
|
|
12
|
+
export declare function createMockStoredServiceConfig(serviceKey: ServiceKey, serviceConfig?: Partial<ServiceConfigJSON>): ServiceConfigJSON;
|
|
13
|
+
export declare function addMockIndexingConfig(shape: ShapeJSON): CachedShape;
|
|
14
14
|
//# sourceMappingURL=mocks.d.ts.map
|