@takeshape/schema 9.56.0 → 9.58.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/migration/index.d.ts +1 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +4 -1
- package/dist/migration/to/v3.38.0.d.ts +5 -0
- package/dist/migration/to/v3.38.0.d.ts.map +1 -0
- package/dist/migration/to/v3.38.0.js +18 -0
- package/dist/project-schema/index.d.ts +4 -1
- package/dist/project-schema/index.d.ts.map +1 -1
- package/dist/project-schema/index.js +20 -3
- package/dist/project-schema/latest.d.ts +2 -2
- package/dist/project-schema/latest.d.ts.map +1 -1
- package/dist/project-schema/migrate.d.ts.map +1 -1
- package/dist/project-schema/migrate.js +4 -0
- package/dist/project-schema/v3.38.0.d.ts +1523 -0
- package/dist/project-schema/v3.38.0.d.ts.map +1 -0
- package/dist/project-schema/v3.38.0.js +5 -0
- 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 +4 -6
- package/dist/schemas/project-schema/v3.38.0.json +3209 -0
- package/dist/schemas/project-schema.json +3 -0
- package/es/migration/index.js +3 -1
- package/es/migration/to/v3.38.0.js +10 -0
- package/es/project-schema/index.js +3 -1
- package/es/project-schema/migrate.js +5 -1
- package/es/project-schema/v3.38.0.js +1 -0
- package/es/schemas/index.js +4 -3
- package/es/schemas/index.ts +4 -2
- package/es/schemas/project-schema/latest.json +4 -6
- package/es/schemas/project-schema/v3.38.0.json +3209 -0
- package/es/schemas/project-schema.json +3 -0
- 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/edit-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 +1 -1
- 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
package/es/migration/index.js
CHANGED
|
@@ -43,6 +43,7 @@ import migrateToV3_34_0 from './to/v3.34.0';
|
|
|
43
43
|
import migrateToV3_35_0 from './to/v3.35.0';
|
|
44
44
|
import migrateToV3_36_0 from './to/v3.36.0';
|
|
45
45
|
import migrateToV3_37_0 from './to/v3.37.0';
|
|
46
|
+
import migrateToV3_38_0 from './to/v3.38.0';
|
|
46
47
|
export const migrateTo = {
|
|
47
48
|
'v3.0.0': migrateToV3_0_0,
|
|
48
49
|
'v3.1.0': migrateToV3_1_0,
|
|
@@ -88,7 +89,8 @@ export const migrateTo = {
|
|
|
88
89
|
'v3.34.0': migrateToV3_34_0,
|
|
89
90
|
'v3.35.0': migrateToV3_35_0,
|
|
90
91
|
'v3.36.0': migrateToV3_36_0,
|
|
91
|
-
'v3.37.0': migrateToV3_37_0
|
|
92
|
+
'v3.37.0': migrateToV3_37_0,
|
|
93
|
+
'v3.38.0': migrateToV3_38_0
|
|
92
94
|
};
|
|
93
95
|
export * from './utils';
|
|
94
96
|
export const listTypePrefix = 'PaginatedList';
|
|
@@ -46,6 +46,7 @@ export * from './v3.34.0';
|
|
|
46
46
|
export * from './v3.35.0';
|
|
47
47
|
export * from './v3.36.0';
|
|
48
48
|
export * from './v3.37.0';
|
|
49
|
+
export * from './v3.38.0';
|
|
49
50
|
export * from './v4.0.0';
|
|
50
51
|
|
|
51
52
|
// Schema type utilities
|
|
@@ -113,5 +114,6 @@ export const isProjectSchemaJSONV3_34_0 = createVersionPredicate('3.34.0');
|
|
|
113
114
|
export const isProjectSchemaJSONV3_35_0 = createVersionPredicate('3.35.0');
|
|
114
115
|
export const isProjectSchemaJSONV3_36_0 = createVersionPredicate('3.36.0');
|
|
115
116
|
export const isProjectSchemaJSONV3_37_0 = createVersionPredicate('3.37.0');
|
|
116
|
-
export const
|
|
117
|
+
export const isProjectSchemaJSONV3_38_0 = createVersionPredicate('3.38.0');
|
|
118
|
+
export const isLatestProjectSchemaJSON = createVersionPredicate('3.38.0');
|
|
117
119
|
export const isProjectSchemaJSONV4_0_0 = createVersionPredicate('4.0.0');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// This file is generated by "pnpm json2ts"
|
|
2
2
|
import { migrateTo } from '../migration';
|
|
3
|
-
import { isProjectSchemaJSONV1_0_0, isProjectSchemaJSONV3_0_0, isProjectSchemaJSONV3_1_0, isProjectSchemaJSONV3_2_0, isProjectSchemaJSONV3_3_0, isProjectSchemaJSONV3_4_0, isProjectSchemaJSONV3_5_0, isProjectSchemaJSONV3_5_1, isProjectSchemaJSONV3_6_0, isProjectSchemaJSONV3_7_0, isProjectSchemaJSONV3_8_0, isProjectSchemaJSONV3_9_0, isProjectSchemaJSONV3_10_0, isProjectSchemaJSONV3_11_0, isProjectSchemaJSONV3_12_0, isProjectSchemaJSONV3_12_1, isProjectSchemaJSONV3_12_2, isProjectSchemaJSONV3_12_3, isProjectSchemaJSONV3_13_0, isProjectSchemaJSONV3_14_0, isProjectSchemaJSONV3_15_0, isProjectSchemaJSONV3_16_0, isProjectSchemaJSONV3_17_0, isProjectSchemaJSONV3_17_1, isProjectSchemaJSONV3_18_0, isProjectSchemaJSONV3_18_1, isProjectSchemaJSONV3_18_2, isProjectSchemaJSONV3_19_0, isProjectSchemaJSONV3_20_0, isProjectSchemaJSONV3_21_0, isProjectSchemaJSONV3_22_0, isProjectSchemaJSONV3_23_0, isProjectSchemaJSONV3_24_0, isProjectSchemaJSONV3_25_0, isProjectSchemaJSONV3_26_0, isProjectSchemaJSONV3_27_0, isProjectSchemaJSONV3_28_0, isProjectSchemaJSONV3_29_0, isProjectSchemaJSONV3_30_0, isProjectSchemaJSONV3_31_0, isProjectSchemaJSONV3_32_0, isProjectSchemaJSONV3_33_0, isProjectSchemaJSONV3_34_0, isProjectSchemaJSONV3_35_0, isProjectSchemaJSONV3_36_0, isProjectSchemaJSONV4_0_0, isLatestProjectSchemaJSON } from './index'; // eslint-disable-next-line complexity
|
|
3
|
+
import { isProjectSchemaJSONV1_0_0, isProjectSchemaJSONV3_0_0, isProjectSchemaJSONV3_1_0, isProjectSchemaJSONV3_2_0, isProjectSchemaJSONV3_3_0, isProjectSchemaJSONV3_4_0, isProjectSchemaJSONV3_5_0, isProjectSchemaJSONV3_5_1, isProjectSchemaJSONV3_6_0, isProjectSchemaJSONV3_7_0, isProjectSchemaJSONV3_8_0, isProjectSchemaJSONV3_9_0, isProjectSchemaJSONV3_10_0, isProjectSchemaJSONV3_11_0, isProjectSchemaJSONV3_12_0, isProjectSchemaJSONV3_12_1, isProjectSchemaJSONV3_12_2, isProjectSchemaJSONV3_12_3, isProjectSchemaJSONV3_13_0, isProjectSchemaJSONV3_14_0, isProjectSchemaJSONV3_15_0, isProjectSchemaJSONV3_16_0, isProjectSchemaJSONV3_17_0, isProjectSchemaJSONV3_17_1, isProjectSchemaJSONV3_18_0, isProjectSchemaJSONV3_18_1, isProjectSchemaJSONV3_18_2, isProjectSchemaJSONV3_19_0, isProjectSchemaJSONV3_20_0, isProjectSchemaJSONV3_21_0, isProjectSchemaJSONV3_22_0, isProjectSchemaJSONV3_23_0, isProjectSchemaJSONV3_24_0, isProjectSchemaJSONV3_25_0, isProjectSchemaJSONV3_26_0, isProjectSchemaJSONV3_27_0, isProjectSchemaJSONV3_28_0, isProjectSchemaJSONV3_29_0, isProjectSchemaJSONV3_30_0, isProjectSchemaJSONV3_31_0, isProjectSchemaJSONV3_32_0, isProjectSchemaJSONV3_33_0, isProjectSchemaJSONV3_34_0, isProjectSchemaJSONV3_35_0, isProjectSchemaJSONV3_36_0, isProjectSchemaJSONV3_37_0, isProjectSchemaJSONV4_0_0, isLatestProjectSchemaJSON } from './index'; // eslint-disable-next-line complexity
|
|
4
4
|
|
|
5
5
|
export async function migrateToLatestProjectSchema(context, projectSchema) {
|
|
6
6
|
if (isLatestProjectSchemaJSON(projectSchema)) {
|
|
@@ -187,6 +187,10 @@ export async function migrateToLatestProjectSchema(context, projectSchema) {
|
|
|
187
187
|
projectSchema = await migrateTo['v3.37.0'](context, projectSchema);
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
if (isProjectSchemaJSONV3_37_0(projectSchema)) {
|
|
191
|
+
projectSchema = await migrateTo['v3.38.0'](context, projectSchema);
|
|
192
|
+
}
|
|
193
|
+
|
|
190
194
|
if (isProjectSchemaJSONV4_0_0(projectSchema)) {
|
|
191
195
|
throw new Error('You are using an unreleased schema version. Migration is not possible');
|
|
192
196
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/schemas/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is generated by "pnpm json2ts"
|
|
2
|
-
export const CURRENT_SCHEMA_VERSION = '3.
|
|
2
|
+
export const CURRENT_SCHEMA_VERSION = '3.38.0';
|
|
3
3
|
export { default as anyProjectSchema } from './project-schema.json';
|
|
4
|
-
export { default as latestSchemaJson } from './project-schema/v3.
|
|
4
|
+
export { default as latestSchemaJson } from './project-schema/v3.38.0.json';
|
|
5
5
|
import metaSchemaV1_0_0 from './project-schema/meta-schema-v1.0.0.json';
|
|
6
6
|
import projectSchemaV1_0_0 from './project-schema/v1.0.0.json';
|
|
7
7
|
import metaSchemaV3_0_0 from './project-schema/meta-schema-v3.0.0.json';
|
|
@@ -60,5 +60,6 @@ import projectSchemaV3_34_0 from './project-schema/v3.34.0.json';
|
|
|
60
60
|
import projectSchemaV3_35_0 from './project-schema/v3.35.0.json';
|
|
61
61
|
import projectSchemaV3_36_0 from './project-schema/v3.36.0.json';
|
|
62
62
|
import projectSchemaV3_37_0 from './project-schema/v3.37.0.json';
|
|
63
|
+
import projectSchemaV3_38_0 from './project-schema/v3.38.0.json';
|
|
63
64
|
import projectSchemaV4_0_0 from './project-schema/v4.0.0.json';
|
|
64
|
-
export const allProjectSchemas = [metaSchemaV1_0_0, projectSchemaV1_0_0, metaSchemaV3_0_0, projectSchemaV3_0_0, metaSchemaV3_1_0, projectSchemaV3_1_0, metaSchemaV3_2_0, projectSchemaV3_2_0, metaSchemaV3_3_0, projectSchemaV3_3_0, metaSchemaV3_4_0, projectSchemaV3_4_0, metaSchemaV3_5_0, projectSchemaV3_5_0, metaSchemaV3_5_1, projectSchemaV3_5_1, metaSchemaV3_6_0, projectSchemaV3_6_0, metaSchemaV3_7_0, projectSchemaV3_7_0, metaSchemaV3_8_0, projectSchemaV3_8_0, metaSchemaV3_9_0, projectSchemaV3_9_0, projectSchemaV3_10_0, projectSchemaV3_11_0, projectSchemaV3_12_0, projectSchemaV3_12_1, projectSchemaV3_12_2, projectSchemaV3_12_3, projectSchemaV3_13_0, projectSchemaV3_14_0, projectSchemaV3_15_0, projectSchemaV3_16_0, projectSchemaV3_17_0, projectSchemaV3_17_1, projectSchemaV3_18_0, projectSchemaV3_18_1, projectSchemaV3_18_2, projectSchemaV3_19_0, projectSchemaV3_20_0, projectSchemaV3_21_0, projectSchemaV3_22_0, projectSchemaV3_23_0, projectSchemaV3_24_0, projectSchemaV3_25_0, projectSchemaV3_26_0, projectSchemaV3_27_0, projectSchemaV3_28_0, projectSchemaV3_29_0, projectSchemaV3_30_0, projectSchemaV3_31_0, projectSchemaV3_32_0, projectSchemaV3_33_0, projectSchemaV3_34_0, projectSchemaV3_35_0, projectSchemaV3_36_0, projectSchemaV3_37_0, projectSchemaV4_0_0];
|
|
65
|
+
export const allProjectSchemas = [metaSchemaV1_0_0, projectSchemaV1_0_0, metaSchemaV3_0_0, projectSchemaV3_0_0, metaSchemaV3_1_0, projectSchemaV3_1_0, metaSchemaV3_2_0, projectSchemaV3_2_0, metaSchemaV3_3_0, projectSchemaV3_3_0, metaSchemaV3_4_0, projectSchemaV3_4_0, metaSchemaV3_5_0, projectSchemaV3_5_0, metaSchemaV3_5_1, projectSchemaV3_5_1, metaSchemaV3_6_0, projectSchemaV3_6_0, metaSchemaV3_7_0, projectSchemaV3_7_0, metaSchemaV3_8_0, projectSchemaV3_8_0, metaSchemaV3_9_0, projectSchemaV3_9_0, projectSchemaV3_10_0, projectSchemaV3_11_0, projectSchemaV3_12_0, projectSchemaV3_12_1, projectSchemaV3_12_2, projectSchemaV3_12_3, projectSchemaV3_13_0, projectSchemaV3_14_0, projectSchemaV3_15_0, projectSchemaV3_16_0, projectSchemaV3_17_0, projectSchemaV3_17_1, projectSchemaV3_18_0, projectSchemaV3_18_1, projectSchemaV3_18_2, projectSchemaV3_19_0, projectSchemaV3_20_0, projectSchemaV3_21_0, projectSchemaV3_22_0, projectSchemaV3_23_0, projectSchemaV3_24_0, projectSchemaV3_25_0, projectSchemaV3_26_0, projectSchemaV3_27_0, projectSchemaV3_28_0, projectSchemaV3_29_0, projectSchemaV3_30_0, projectSchemaV3_31_0, projectSchemaV3_32_0, projectSchemaV3_33_0, projectSchemaV3_34_0, projectSchemaV3_35_0, projectSchemaV3_36_0, projectSchemaV3_37_0, projectSchemaV3_38_0, projectSchemaV4_0_0];
|
package/es/schemas/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is generated by "pnpm json2ts"
|
|
2
|
-
export const CURRENT_SCHEMA_VERSION = '3.
|
|
2
|
+
export const CURRENT_SCHEMA_VERSION = '3.38.0';
|
|
3
3
|
export {default as anyProjectSchema} from './project-schema.json';
|
|
4
|
-
export {default as latestSchemaJson} from './project-schema/v3.
|
|
4
|
+
export {default as latestSchemaJson} from './project-schema/v3.38.0.json';
|
|
5
5
|
import metaSchemaV1_0_0 from './project-schema/meta-schema-v1.0.0.json';
|
|
6
6
|
import projectSchemaV1_0_0 from './project-schema/v1.0.0.json';
|
|
7
7
|
import metaSchemaV3_0_0 from './project-schema/meta-schema-v3.0.0.json';
|
|
@@ -60,6 +60,7 @@ import projectSchemaV3_34_0 from './project-schema/v3.34.0.json';
|
|
|
60
60
|
import projectSchemaV3_35_0 from './project-schema/v3.35.0.json';
|
|
61
61
|
import projectSchemaV3_36_0 from './project-schema/v3.36.0.json';
|
|
62
62
|
import projectSchemaV3_37_0 from './project-schema/v3.37.0.json';
|
|
63
|
+
import projectSchemaV3_38_0 from './project-schema/v3.38.0.json';
|
|
63
64
|
import projectSchemaV4_0_0 from './project-schema/v4.0.0.json';
|
|
64
65
|
export const allProjectSchemas = [
|
|
65
66
|
metaSchemaV1_0_0,
|
|
@@ -120,5 +121,6 @@ export const allProjectSchemas = [
|
|
|
120
121
|
projectSchemaV3_35_0,
|
|
121
122
|
projectSchemaV3_36_0,
|
|
122
123
|
projectSchemaV3_37_0,
|
|
124
|
+
projectSchemaV3_38_0,
|
|
123
125
|
projectSchemaV4_0_0
|
|
124
126
|
];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://schema.takeshape.io/project-schema/v3.
|
|
3
|
+
"$id": "https://schema.takeshape.io/project-schema/v3.38.0#",
|
|
4
4
|
"title": "Project Schema JSON",
|
|
5
5
|
"definitions": {
|
|
6
6
|
"schemaArray": {
|
|
@@ -115,10 +115,8 @@
|
|
|
115
115
|
"properties": {
|
|
116
116
|
"enum": {
|
|
117
117
|
"type": "array",
|
|
118
|
-
"
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
"minItems": 1
|
|
118
|
+
"minItems": 1,
|
|
119
|
+
"uniqueItems": true
|
|
122
120
|
}
|
|
123
121
|
},
|
|
124
122
|
"additionalProperties": false,
|
|
@@ -3141,7 +3139,7 @@
|
|
|
3141
3139
|
"schemaVersion": {
|
|
3142
3140
|
"type": "string",
|
|
3143
3141
|
"enum": [
|
|
3144
|
-
"3.
|
|
3142
|
+
"3.38.0"
|
|
3145
3143
|
],
|
|
3146
3144
|
"description": "The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format."
|
|
3147
3145
|
},
|