@takeshape/schema 9.57.1 → 9.58.2
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/dist/util/merge.d.ts.map +1 -1
- package/dist/util/merge.js +17 -7
- 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/es/util/merge.js +17 -7
- 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/dist/util/merge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/util/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,YAAY,EAAE,iBAAiB,EAAY,MAAM,mBAAmB,CAAC;AAazF,wBAAgB,kBAAkB,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,SAAS,CAAC,GAAG,YAAY,CAEzF;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,GAAG,YAAY,CAgBjG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,GAAG,YAAY,CAiBjH;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,GAAG,UAAU,CAezF;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,UAAU,CAgBvG;AAED,wBAAgB,gBAAgB,CAAC,GAAG,OAAO,EAAE,UAAU,EAAE,GAAG,UAAU,CAErE;
|
|
1
|
+
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/util/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,YAAY,EAAE,iBAAiB,EAAY,MAAM,mBAAmB,CAAC;AAazF,wBAAgB,kBAAkB,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,SAAS,CAAC,GAAG,YAAY,CAEzF;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,GAAG,YAAY,CAgBjG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,GAAG,YAAY,CAiBjH;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,GAAG,UAAU,CAezF;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,UAAU,CAgBvG;AAED,wBAAgB,gBAAgB,CAAC,GAAG,OAAO,EAAE,UAAU,EAAE,GAAG,UAAU,CAErE;AAmLD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,iBAAiB,EACvB,MAAM,EAAE,iBAAiB,EACzB,IAAI,EAAE,iBAAiB,GACtB;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,SAAS,CAAA;CAAC,GAAG;IAAC,KAAK,EAAE,SAAS,CAAC;IAAC,YAAY,EAAE,iBAAiB,CAAA;CAAC,CAwChG"}
|
package/dist/util/merge.js
CHANGED
|
@@ -192,6 +192,12 @@ function getChangedShape(schema, change) {
|
|
|
192
192
|
const shape = findChangedShape(schema, change);
|
|
193
193
|
(0, _tinyInvariant.default)(shape, 'Expected shape not found');
|
|
194
194
|
return shape;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function rebaseShapeProperties(toShape, fromShape, baseShape) {
|
|
198
|
+
return baseShape ? (0, _util.rebaseObject)((0, _omit.default)(toShape, 'schema'), (0, _omit.default)(baseShape, 'schema'), (0, _omit.default)(fromShape, 'schema')) : { ...toShape,
|
|
199
|
+
...fromShape
|
|
200
|
+
};
|
|
195
201
|
} // eslint-disable-next-line complexity
|
|
196
202
|
|
|
197
203
|
|
|
@@ -201,12 +207,17 @@ function attemptToMerge(base, parent, head, change) {
|
|
|
201
207
|
const toSchema = toShape.schema;
|
|
202
208
|
const fromSchema = fromShape.schema;
|
|
203
209
|
|
|
210
|
+
if ((0, _isEqual.default)(toSchema, fromSchema)) {
|
|
211
|
+
const baseShape = findChangedShape(parent, change);
|
|
212
|
+
return { ...rebaseShapeProperties(toShape, fromShape, baseShape),
|
|
213
|
+
schema: toSchema
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
|
|
204
217
|
if ((0, _types.isObjectSchema)(toSchema) && (0, _types.isObjectSchema)(fromSchema)) {
|
|
205
218
|
const baseShape = findChangedShape(parent, change);
|
|
206
219
|
const baseSchema = baseShape === null || baseShape === void 0 ? void 0 : baseShape.schema;
|
|
207
|
-
return { ...(
|
|
208
|
-
...fromShape
|
|
209
|
-
}),
|
|
220
|
+
return { ...rebaseShapeProperties(toShape, fromShape, baseShape),
|
|
210
221
|
schema: change.op === 'update' && baseSchema && (0, _types.isObjectSchema)(baseSchema) ? rebaseSchemaProperties(toSchema, baseSchema, fromSchema) : mergeSchemaProperties(toSchema, fromSchema)
|
|
211
222
|
};
|
|
212
223
|
}
|
|
@@ -217,10 +228,9 @@ function attemptToMerge(base, parent, head, change) {
|
|
|
217
228
|
const fromObj = (0, _last.default)(fromSchema.extends);
|
|
218
229
|
|
|
219
230
|
if (toObj && (0, _types.isObjectSchema)(toObj) && fromObj && (0, _types.isObjectSchema)(fromObj) && toSchema.extends.slice(0, toSchema.extends.length - 1).every((item, i) => (0, _isEqual.default)(item, fromExtends[i]))) {
|
|
220
|
-
var _findChangedShape;
|
|
221
|
-
|
|
222
231
|
let mergedObjSchema;
|
|
223
|
-
const
|
|
232
|
+
const baseShape = findChangedShape(parent, change);
|
|
233
|
+
const baseSchema = baseShape === null || baseShape === void 0 ? void 0 : baseShape.schema;
|
|
224
234
|
|
|
225
235
|
if (change.op === 'update' && baseSchema && (0, _types.isExtendsSchema)(baseSchema)) {
|
|
226
236
|
const baseObj = (0, _last.default)(baseSchema.extends);
|
|
@@ -234,7 +244,7 @@ function attemptToMerge(base, parent, head, change) {
|
|
|
234
244
|
mergedObjSchema = mergeSchemaProperties(toObj, fromObj);
|
|
235
245
|
}
|
|
236
246
|
|
|
237
|
-
return { ...fromShape,
|
|
247
|
+
return { ...rebaseShapeProperties(toShape, fromShape, baseShape),
|
|
238
248
|
schema: {
|
|
239
249
|
extends: [...toSchema.extends.slice(0, toSchema.extends.length - 1), mergedObjSchema]
|
|
240
250
|
}
|
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
|
},
|