@takeshape/schema 10.36.29 → 10.37.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 +3 -1
- package/dist/migration/to/v3.43.0.d.ts +5 -0
- package/dist/migration/to/v3.43.0.d.ts.map +1 -0
- package/dist/migration/to/v3.43.0.js +16 -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 +17 -3
- package/dist/project-schema/latest.d.ts +3 -1
- 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 +3 -0
- package/dist/project-schema/v3.42.0.d.ts +2 -0
- package/dist/project-schema/v3.42.0.d.ts.map +1 -1
- package/dist/project-schema/v3.43.0.d.ts +1537 -0
- package/dist/project-schema/v3.43.0.d.ts.map +1 -0
- package/dist/project-schema/v3.43.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 +5 -4
- package/dist/schemas/index.ts +4 -2
- package/dist/schemas/project-schema/latest.json +8 -2
- package/dist/schemas/project-schema/v3.43.0.json +3233 -0
- package/dist/schemas/project-schema.json +3 -0
- package/es/migration/index.js +3 -1
- package/es/migration/to/v3.43.0.js +10 -0
- package/es/project-schema/index.js +3 -1
- package/es/project-schema/migrate.js +4 -1
- package/es/project-schema/v3.43.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 +8 -2
- package/es/schemas/project-schema/v3.43.0.json +3233 -0
- package/es/schemas/project-schema.json +3 -0
- package/examples/latest/all-fields-shapes-inline.json +1 -1
- package/examples/latest/all-fields-shapes.json +1 -1
- 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/clear-cache-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/nested-shape-arrays.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/rick-and-morty-with-indexing.json +1 -1
- package/examples/latest/schema-where-filter.json +1 -1
- package/examples/latest/schema-with-repeater-draftjs.json +1 -1
- package/examples/latest/schema-with-rick-and-morty.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/shapedb-crud-every-prop-type.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/examples/latest/vector-search-schema.json +1 -1
- package/package.json +5 -5
package/es/migration/index.js
CHANGED
|
@@ -48,6 +48,7 @@ import migrateToV3_39_0 from './to/v3.39.0';
|
|
|
48
48
|
import migrateToV3_40_0 from './to/v3.40.0';
|
|
49
49
|
import migrateToV3_41_0 from './to/v3.41.0';
|
|
50
50
|
import migrateToV3_42_0 from './to/v3.42.0';
|
|
51
|
+
import migrateToV3_43_0 from './to/v3.43.0';
|
|
51
52
|
export const migrateTo = {
|
|
52
53
|
'v3.0.0': migrateToV3_0_0,
|
|
53
54
|
'v3.1.0': migrateToV3_1_0,
|
|
@@ -98,7 +99,8 @@ export const migrateTo = {
|
|
|
98
99
|
'v3.39.0': migrateToV3_39_0,
|
|
99
100
|
'v3.40.0': migrateToV3_40_0,
|
|
100
101
|
'v3.41.0': migrateToV3_41_0,
|
|
101
|
-
'v3.42.0': migrateToV3_42_0
|
|
102
|
+
'v3.42.0': migrateToV3_42_0,
|
|
103
|
+
'v3.43.0': migrateToV3_43_0
|
|
102
104
|
};
|
|
103
105
|
export * from './utils';
|
|
104
106
|
export const listTypePrefix = 'PaginatedList';
|
|
@@ -51,6 +51,7 @@ export * from './v3.39.0';
|
|
|
51
51
|
export * from './v3.40.0';
|
|
52
52
|
export * from './v3.41.0';
|
|
53
53
|
export * from './v3.42.0';
|
|
54
|
+
export * from './v3.43.0';
|
|
54
55
|
export * from './v4.0.0';
|
|
55
56
|
// Schema type utilities
|
|
56
57
|
function createVersionPredicate(expectedVersion) {
|
|
@@ -118,5 +119,6 @@ export const isProjectSchemaJSONV3_39_0 = createVersionPredicate('3.39.0');
|
|
|
118
119
|
export const isProjectSchemaJSONV3_40_0 = createVersionPredicate('3.40.0');
|
|
119
120
|
export const isProjectSchemaJSONV3_41_0 = createVersionPredicate('3.41.0');
|
|
120
121
|
export const isProjectSchemaJSONV3_42_0 = createVersionPredicate('3.42.0');
|
|
121
|
-
export const
|
|
122
|
+
export const isProjectSchemaJSONV3_43_0 = createVersionPredicate('3.43.0');
|
|
123
|
+
export const isLatestProjectSchemaJSON = createVersionPredicate('3.43.0');
|
|
122
124
|
export const isProjectSchemaJSONV4_0_0 = createVersionPredicate('4.0.0');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is generated by "pnpm json2ts"
|
|
2
2
|
|
|
3
3
|
import { migrateTo } from '../migration';
|
|
4
|
-
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, isProjectSchemaJSONV3_38_0, isProjectSchemaJSONV3_39_0, isProjectSchemaJSONV3_40_0, isProjectSchemaJSONV3_41_0, isProjectSchemaJSONV4_0_0, isLatestProjectSchemaJSON } from './index';
|
|
4
|
+
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, isProjectSchemaJSONV3_38_0, isProjectSchemaJSONV3_39_0, isProjectSchemaJSONV3_40_0, isProjectSchemaJSONV3_41_0, isProjectSchemaJSONV3_42_0, isProjectSchemaJSONV4_0_0, isLatestProjectSchemaJSON } from './index';
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line complexity
|
|
7
7
|
export async function migrateToLatestProjectSchema(context, projectSchema) {
|
|
@@ -158,6 +158,9 @@ export async function migrateToLatestProjectSchema(context, projectSchema) {
|
|
|
158
158
|
if (isProjectSchemaJSONV3_41_0(projectSchema)) {
|
|
159
159
|
projectSchema = await migrateTo['v3.42.0'](context, projectSchema);
|
|
160
160
|
}
|
|
161
|
+
if (isProjectSchemaJSONV3_42_0(projectSchema)) {
|
|
162
|
+
projectSchema = await migrateTo['v3.43.0'](context, projectSchema);
|
|
163
|
+
}
|
|
161
164
|
if (isProjectSchemaJSONV4_0_0(projectSchema)) {
|
|
162
165
|
throw new Error('You are using an unreleased schema version. Migration is not possible');
|
|
163
166
|
}
|
|
@@ -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.43.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.43.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';
|
|
@@ -65,5 +65,6 @@ import projectSchemaV3_39_0 from './project-schema/v3.39.0.json';
|
|
|
65
65
|
import projectSchemaV3_40_0 from './project-schema/v3.40.0.json';
|
|
66
66
|
import projectSchemaV3_41_0 from './project-schema/v3.41.0.json';
|
|
67
67
|
import projectSchemaV3_42_0 from './project-schema/v3.42.0.json';
|
|
68
|
+
import projectSchemaV3_43_0 from './project-schema/v3.43.0.json';
|
|
68
69
|
import projectSchemaV4_0_0 from './project-schema/v4.0.0.json';
|
|
69
|
-
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, projectSchemaV3_39_0, projectSchemaV3_40_0, projectSchemaV3_41_0, projectSchemaV3_42_0, projectSchemaV4_0_0];
|
|
70
|
+
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, projectSchemaV3_39_0, projectSchemaV3_40_0, projectSchemaV3_41_0, projectSchemaV3_42_0, projectSchemaV3_43_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.43.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.43.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';
|
|
@@ -65,6 +65,7 @@ import projectSchemaV3_39_0 from './project-schema/v3.39.0.json';
|
|
|
65
65
|
import projectSchemaV3_40_0 from './project-schema/v3.40.0.json';
|
|
66
66
|
import projectSchemaV3_41_0 from './project-schema/v3.41.0.json';
|
|
67
67
|
import projectSchemaV3_42_0 from './project-schema/v3.42.0.json';
|
|
68
|
+
import projectSchemaV3_43_0 from './project-schema/v3.43.0.json';
|
|
68
69
|
import projectSchemaV4_0_0 from './project-schema/v4.0.0.json';
|
|
69
70
|
export const allProjectSchemas = [
|
|
70
71
|
metaSchemaV1_0_0,
|
|
@@ -130,5 +131,6 @@ export const allProjectSchemas = [
|
|
|
130
131
|
projectSchemaV3_40_0,
|
|
131
132
|
projectSchemaV3_41_0,
|
|
132
133
|
projectSchemaV3_42_0,
|
|
134
|
+
projectSchemaV3_43_0,
|
|
133
135
|
projectSchemaV4_0_0
|
|
134
136
|
];
|
|
@@ -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.43.0#",
|
|
4
4
|
"title": "Project Schema JSON",
|
|
5
5
|
"definitions": {
|
|
6
6
|
"schemaArray": {
|
|
@@ -1479,6 +1479,9 @@
|
|
|
1479
1479
|
"timeout": {
|
|
1480
1480
|
"type": "number"
|
|
1481
1481
|
},
|
|
1482
|
+
"allowStream": {
|
|
1483
|
+
"type": "boolean"
|
|
1484
|
+
},
|
|
1482
1485
|
"retry": {
|
|
1483
1486
|
"oneOf": [
|
|
1484
1487
|
{
|
|
@@ -1564,6 +1567,9 @@
|
|
|
1564
1567
|
"trailingSlash": {
|
|
1565
1568
|
"type": "boolean"
|
|
1566
1569
|
},
|
|
1570
|
+
"allowStream": {
|
|
1571
|
+
"type": "boolean"
|
|
1572
|
+
},
|
|
1567
1573
|
"ttl": {
|
|
1568
1574
|
"type": "number"
|
|
1569
1575
|
},
|
|
@@ -3157,7 +3163,7 @@
|
|
|
3157
3163
|
"schemaVersion": {
|
|
3158
3164
|
"type": "string",
|
|
3159
3165
|
"enum": [
|
|
3160
|
-
"3.
|
|
3166
|
+
"3.43.0"
|
|
3161
3167
|
],
|
|
3162
3168
|
"description": "The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format."
|
|
3163
3169
|
},
|