@takeshape/schema 8.20.1 → 8.20.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/es/enum.js +1 -1
- package/es/get-is-leaf.js +5 -5
- package/es/layers/type-utils.js +2 -2
- package/es/migration.js +59 -1
- package/es/project-schema/index.js +1 -0
- package/es/project-schema/v3.10.0.js +1 -0
- package/es/refs.js +19 -19
- package/es/schema-util.js +7 -7
- package/es/schemas/index.js +15 -15
- package/es/schemas/index.ts +26 -25
- package/es/schemas/project-schema/v3.10.0.json +2091 -0
- package/es/schemas/project-schema/v4.0.0.json +8 -6
- package/es/schemas/project-schema.json +2 -1
- package/es/types/types.js +1 -1
- package/es/types/utils.js +20 -19
- package/es/util/detect-cycles.js +1 -1
- package/es/validate.js +8 -5
- package/examples/latest/blog-schema.json +32 -32
- package/examples/latest/brewery-schema.json +53 -53
- package/examples/latest/complex-project-schema.json +3278 -3278
- package/examples/latest/fabric-ecommerce.json +130 -130
- package/examples/latest/frank-and-fred-schema.json +15588 -15588
- package/examples/latest/massive-schema.json +5836 -5836
- package/examples/latest/mill-components-schema.json +876 -876
- package/examples/latest/pet-oneof-array.json +77 -77
- package/examples/latest/post-schema.json +23 -23
- package/examples/latest/pruned-shopify-product-schema.json +19 -19
- package/examples/latest/real-world-schema.json +166 -166
- package/examples/latest/recursive-repeater-schema.json +14 -14
- package/examples/latest/recursive-schema.json +14 -14
- package/examples/latest/rick-and-morty-ast.json +1875 -1896
- package/examples/latest/rick-and-morty-graphql.json +1093 -1093
- package/examples/latest/rick-and-morty-rest.json +20 -20
- package/examples/latest/schema-with-repeater-draftjs.json +9 -9
- package/examples/latest/shape-books-v3_2_0.json +218 -218
- package/examples/latest/shape-books.json +218 -218
- package/examples/latest/shopify-lookbook.json +147 -147
- package/examples/latest/shopify-store-with-widget.json +10420 -10420
- package/examples/latest/stripe-starter-resolved.json +1018 -1018
- package/examples/latest/user-schema-no-required.json +19 -19
- package/examples/latest/user-schema-with-defaults.json +20 -20
- package/examples/source/rick-and-morty-ast.json +0 -21
- package/lib/content-schema-transform.d.ts +13 -13
- package/lib/content-schema-transform.d.ts.map +1 -1
- package/lib/enum.d.ts +2 -2
- package/lib/enum.d.ts.map +1 -1
- package/lib/enum.js +2 -2
- package/lib/get-is-leaf.d.ts +2 -2
- package/lib/get-is-leaf.d.ts.map +1 -1
- package/lib/get-is-leaf.js +5 -5
- package/lib/layers/type-utils.js +1 -1
- package/lib/migration.d.ts +6 -5
- package/lib/migration.d.ts.map +1 -1
- package/lib/migration.js +60 -0
- package/lib/project-schema/index.d.ts +3 -1
- package/lib/project-schema/index.d.ts.map +1 -1
- package/lib/project-schema/index.js +25 -12
- package/lib/project-schema/latest.d.ts +260 -238
- package/lib/project-schema/latest.d.ts.map +1 -1
- package/lib/project-schema/v1.0.0.d.ts +14 -7
- package/lib/project-schema/v1.0.0.d.ts.map +1 -1
- package/lib/project-schema/v3.0.0.d.ts +24 -25
- package/lib/project-schema/v3.0.0.d.ts.map +1 -1
- package/lib/project-schema/v3.1.0.d.ts +42 -43
- package/lib/project-schema/v3.1.0.d.ts.map +1 -1
- package/lib/project-schema/v3.10.0.d.ts +1202 -0
- package/lib/project-schema/v3.10.0.d.ts.map +1 -0
- package/lib/project-schema/v3.10.0.js +5 -0
- package/lib/project-schema/v3.2.0.d.ts +42 -43
- package/lib/project-schema/v3.2.0.d.ts.map +1 -1
- package/lib/project-schema/v3.3.0.d.ts +42 -43
- package/lib/project-schema/v3.3.0.d.ts.map +1 -1
- package/lib/project-schema/v3.4.0.d.ts +42 -43
- package/lib/project-schema/v3.4.0.d.ts.map +1 -1
- package/lib/project-schema/v3.5.0.d.ts +42 -43
- package/lib/project-schema/v3.5.0.d.ts.map +1 -1
- package/lib/project-schema/v3.5.1.d.ts +42 -43
- package/lib/project-schema/v3.5.1.d.ts.map +1 -1
- package/lib/project-schema/v3.6.0.d.ts +42 -43
- package/lib/project-schema/v3.6.0.d.ts.map +1 -1
- package/lib/project-schema/v3.7.0.d.ts +42 -43
- package/lib/project-schema/v3.7.0.d.ts.map +1 -1
- package/lib/project-schema/v3.8.0.d.ts +42 -43
- package/lib/project-schema/v3.8.0.d.ts.map +1 -1
- package/lib/project-schema/v3.9.0.d.ts +42 -43
- package/lib/project-schema/v3.9.0.d.ts.map +1 -1
- package/lib/project-schema/v4.0.0.d.ts +54 -52
- package/lib/project-schema/v4.0.0.d.ts.map +1 -1
- package/lib/refs.d.ts +8 -8
- package/lib/refs.d.ts.map +1 -1
- package/lib/refs.js +19 -19
- package/lib/schema-util.d.ts +23 -23
- package/lib/schema-util.d.ts.map +1 -1
- package/lib/schema-util.js +7 -7
- package/lib/schemas/index.d.ts +3421 -3420
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +26 -30
- package/lib/schemas/index.ts +26 -25
- package/lib/schemas/project-schema/v3.10.0.json +2091 -0
- package/lib/schemas/project-schema/v4.0.0.json +8 -6
- package/lib/schemas/project-schema.json +2 -1
- package/lib/types/types.d.ts +7 -7
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/types.js +1 -1
- package/lib/types/utils.d.ts +9 -8
- package/lib/types/utils.d.ts.map +1 -1
- package/lib/types/utils.js +25 -23
- package/lib/unions.d.ts +8 -8
- package/lib/unions.d.ts.map +1 -1
- package/lib/util/detect-cycles.d.ts +2 -2
- package/lib/util/detect-cycles.d.ts.map +1 -1
- package/lib/util/detect-cycles.js +1 -1
- package/lib/validate.d.ts.map +1 -1
- package/lib/validate.js +7 -4
- package/lib/workflows.d.ts +2 -2
- package/lib/workflows.d.ts.map +1 -1
- package/package.json +5 -5
package/es/enum.js
CHANGED
package/es/get-is-leaf.js
CHANGED
|
@@ -3,13 +3,13 @@ import { getKey, isBuiltinType } from './schema-util';
|
|
|
3
3
|
import { followRef, getRefShapeName } from './refs';
|
|
4
4
|
const scalarTags = new Set(['draftjs']);
|
|
5
5
|
|
|
6
|
-
function isLeafTypeV3(projectSchema,
|
|
7
|
-
const type = getType(
|
|
6
|
+
function isLeafTypeV3(projectSchema, propertySchema) {
|
|
7
|
+
const type = getType(propertySchema);
|
|
8
8
|
return Boolean( // Must have key
|
|
9
|
-
getKey(
|
|
9
|
+
getKey(propertySchema) && ( // If is not a structure, then is a leaf
|
|
10
10
|
!['object', 'array'].includes(type) || // If is relationship, then is a leaf
|
|
11
|
-
|
|
12
|
-
type === 'array' && !
|
|
11
|
+
propertySchema['@relationship'] || propertySchema['@tag'] && scalarTags.has(propertySchema['@tag']) || // If is array, then should not be a synchronized structure
|
|
12
|
+
type === 'array' && !propertySchema['@syncLocaleStructure'] || isBuiltinType(projectSchema, propertySchema)));
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export function getIsLeaf(projectSchema, shapeSchema) {
|
package/es/layers/type-utils.js
CHANGED
|
@@ -2,7 +2,7 @@ import { isObject } from '@takeshape/util';
|
|
|
2
2
|
import isPlainObject from 'lodash/isPlainObject';
|
|
3
3
|
import isString from 'lodash/isString';
|
|
4
4
|
import isArray from 'lodash/isArray';
|
|
5
|
-
import {
|
|
5
|
+
import { latestSchemaJson } from '../schemas';
|
|
6
6
|
|
|
7
7
|
/** Resolver Type Utils **/
|
|
8
8
|
|
|
@@ -23,7 +23,7 @@ const {
|
|
|
23
23
|
restResolver,
|
|
24
24
|
awsLambdaResolver
|
|
25
25
|
}
|
|
26
|
-
} =
|
|
26
|
+
} = latestSchemaJson;
|
|
27
27
|
export function isTakeshapeResolver(resolver) {
|
|
28
28
|
return takeshapeResolver.properties.name.enum.includes(resolver.name);
|
|
29
29
|
}
|
package/es/migration.js
CHANGED
|
@@ -4,7 +4,8 @@ import pick from 'lodash/pick';
|
|
|
4
4
|
import { pascalCase, deepClone, visit } from '@takeshape/util';
|
|
5
5
|
import { arraySchemaKeys, getShapeQueriesAndMutations, multipleRelationshipSchemaKeys, objectSchemaKeys, scalarSchemaKeys, schemaMetadataKeys } from './schema-util';
|
|
6
6
|
import { updateServiceConfigV3ToV3_1 } from './services';
|
|
7
|
-
import { isServiceAuthentication, isProjectSchemaV1, isProjectSchemaV3, isLatestProjectSchema, isProjectSchemaV3_1, isProjectSchemaV3_2, isProjectSchemaV3_3, isProjectSchemaV3_4, isProjectSchemaV3_5, isProjectSchemaV3_5_1, isProjectSchemaV3_6, isProjectSchemaV3_7, isProjectSchemaV3_8 } from './types/utils';
|
|
7
|
+
import { isServiceAuthentication, isProjectSchemaV1, isProjectSchemaV3, isLatestProjectSchema, isProjectSchemaV3_1, isProjectSchemaV3_2, isProjectSchemaV3_3, isProjectSchemaV3_4, isProjectSchemaV3_5, isProjectSchemaV3_5_1, isProjectSchemaV3_6, isProjectSchemaV3_7, isProjectSchemaV3_8, isProjectSchemaV3_9 } from './types/utils';
|
|
8
|
+
import mapValues from 'lodash/mapValues';
|
|
8
9
|
export const listTypePrefix = 'PaginatedList';
|
|
9
10
|
const annotationMap = {
|
|
10
11
|
l10n: '@l10n',
|
|
@@ -443,6 +444,59 @@ export function migrateToV3_9_0(projectSchema) {
|
|
|
443
444
|
schemaVersion: '3.9.0'
|
|
444
445
|
};
|
|
445
446
|
}
|
|
447
|
+
|
|
448
|
+
function migrateQueryToV3_10(query, queryName) {
|
|
449
|
+
const {
|
|
450
|
+
args,
|
|
451
|
+
shape
|
|
452
|
+
} = query;
|
|
453
|
+
|
|
454
|
+
if (typeof args === 'object' && ('oneOf' in args || 'allOf' in args || '$ref' in args || '@ref' in args)) {
|
|
455
|
+
// As of 11/15/2021 no production schemas contained queries with these args
|
|
456
|
+
throw new Error(`Query "${queryName}" contains an unsupported arg schema ${JSON.stringify(args)}. Please contact support`);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
if (typeof shape === 'object' && !shape.items['@ref']) {
|
|
460
|
+
// As of 11/15/2021 no production schemas contained queries with array return shapes that are not @refs
|
|
461
|
+
throw new Error(`Query "${queryName}" contains an unsupported shape schema ${JSON.stringify(shape)}. Please contact support`);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
return query;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
function migrateShapeToV3_10(shape) {
|
|
468
|
+
const {
|
|
469
|
+
schema,
|
|
470
|
+
...rest
|
|
471
|
+
} = shape; // As of 11/15/2021 no production schemas contained shapes with array schemas
|
|
472
|
+
|
|
473
|
+
if ('type' in schema && schema.type === 'array') {
|
|
474
|
+
throw new Error(`Shape ${shape.name} uses an unsupported array schema. Please contact support`);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
const newSchema = '$ref' in schema || '@ref' in schema ? {
|
|
478
|
+
allOf: [schema]
|
|
479
|
+
} : schema;
|
|
480
|
+
return { ...rest,
|
|
481
|
+
schema: newSchema
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export function migrateToV3_10(projectSchema) {
|
|
486
|
+
const {
|
|
487
|
+
queries,
|
|
488
|
+
mutations,
|
|
489
|
+
shapes,
|
|
490
|
+
schemaVersion,
|
|
491
|
+
...rest
|
|
492
|
+
} = projectSchema;
|
|
493
|
+
return { ...rest,
|
|
494
|
+
queries: mapValues(queries, migrateQueryToV3_10),
|
|
495
|
+
mutations: mapValues(mutations, migrateQueryToV3_10),
|
|
496
|
+
shapes: mapValues(shapes, migrateShapeToV3_10),
|
|
497
|
+
schemaVersion: '3.10.0'
|
|
498
|
+
};
|
|
499
|
+
}
|
|
446
500
|
export async function migrateToLatestProjectSchema(context, projectSchema) {
|
|
447
501
|
if (projectSchema.schemaVersion === '4.0.0') {
|
|
448
502
|
throw new Error('You are using an unreleased schema version. Migration is not possible');
|
|
@@ -492,6 +546,10 @@ export async function migrateToLatestProjectSchema(context, projectSchema) {
|
|
|
492
546
|
projectSchema = migrateToV3_9_0(projectSchema);
|
|
493
547
|
}
|
|
494
548
|
|
|
549
|
+
if (isProjectSchemaV3_9(projectSchema)) {
|
|
550
|
+
projectSchema = migrateToV3_10(projectSchema);
|
|
551
|
+
}
|
|
552
|
+
|
|
495
553
|
return projectSchema;
|
|
496
554
|
}
|
|
497
555
|
export function normalizeSchemaVersion(version) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/refs.js
CHANGED
|
@@ -127,7 +127,7 @@ export function refToRefItem(context, $ref, template) {
|
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
|
-
* Given a
|
|
130
|
+
* Given a property schema and project schema, finds a `@ref` or `$ref` and
|
|
131
131
|
* returns a `RefItem` suitable for loading a referenced schema...
|
|
132
132
|
*/
|
|
133
133
|
|
|
@@ -240,38 +240,38 @@ export function anyRefToShapeSchemaPath(context, refSchema) {
|
|
|
240
240
|
|
|
241
241
|
export const omitRefAndExtend = (targetSchema, sourceSchema) => assign(omit(['@ref', '$ref'], targetSchema), sourceSchema);
|
|
242
242
|
/**
|
|
243
|
-
* If there is a $ref, this will insert a
|
|
243
|
+
* If there is a $ref, this will insert a property schema from the top level
|
|
244
244
|
* in place of the reference.
|
|
245
245
|
*/
|
|
246
246
|
|
|
247
|
-
export function followRef(context,
|
|
248
|
-
const refItem = getRef(context,
|
|
247
|
+
export function followRef(context, schema) {
|
|
248
|
+
const refItem = getRef(context, schema);
|
|
249
249
|
|
|
250
250
|
if (refItem) {
|
|
251
251
|
const referencedSchema = refItemToShapeSchema(context, refItem);
|
|
252
252
|
|
|
253
253
|
if (referencedSchema) {
|
|
254
|
-
return omitRefAndExtend(
|
|
254
|
+
return omitRefAndExtend(schema, referencedSchema);
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
return
|
|
258
|
+
return schema;
|
|
259
259
|
}
|
|
260
260
|
/**
|
|
261
261
|
* Returns whether a schema has refs.
|
|
262
262
|
*/
|
|
263
263
|
|
|
264
|
-
export function hasRef(
|
|
265
|
-
if (isRefSchema(
|
|
264
|
+
export function hasRef(schema) {
|
|
265
|
+
if (isRefSchema(schema) || isRefSchemaLegacy(schema)) {
|
|
266
266
|
return true;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
if (isAllOfSchema(
|
|
270
|
-
return Boolean(
|
|
269
|
+
if (isAllOfSchema(schema)) {
|
|
270
|
+
return Boolean(schema.allOf.find(hasRef));
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
if (isOneOfSchema(
|
|
274
|
-
return Boolean(
|
|
273
|
+
if (isOneOfSchema(schema)) {
|
|
274
|
+
return Boolean(schema.oneOf.find(hasRef));
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
return false;
|
|
@@ -280,17 +280,17 @@ export function hasRef(contentSchema) {
|
|
|
280
280
|
* Returns whether a schema has refs which can be followed.
|
|
281
281
|
*/
|
|
282
282
|
|
|
283
|
-
export function hasResolvableRef(context,
|
|
284
|
-
if (isRefSchema(
|
|
285
|
-
return Boolean(refItemToShapeSchema(context, getRef(context,
|
|
283
|
+
export function hasResolvableRef(context, schema) {
|
|
284
|
+
if (isRefSchema(schema) || isRefSchemaLegacy(schema)) {
|
|
285
|
+
return Boolean(refItemToShapeSchema(context, getRef(context, schema)));
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
if (isAllOfSchema(
|
|
289
|
-
return Boolean(
|
|
288
|
+
if (isAllOfSchema(schema)) {
|
|
289
|
+
return Boolean(schema.allOf.find(s => hasResolvableRef(context, s)));
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
if (isOneOfSchema(
|
|
293
|
-
return Boolean(
|
|
292
|
+
if (isOneOfSchema(schema)) {
|
|
293
|
+
return Boolean(schema.oneOf.find(s => hasResolvableRef(context, s)));
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
return false;
|
package/es/schema-util.js
CHANGED
|
@@ -18,7 +18,7 @@ import { CURRENT_API_VERSION, CURRENT_SCHEMA_VERSION } from './versions';
|
|
|
18
18
|
import { workflowsEnabled } from './api-version';
|
|
19
19
|
import { builtInShapes, builtInForms } from './builtin-schema';
|
|
20
20
|
import { createTemplateShapeName, parseReturnShape } from './template-shapes';
|
|
21
|
-
import { getArgsType, isBasicResolver, isObjectSchema, isAllOfSchema, isRefSchema, isOneOfSchema
|
|
21
|
+
import { getArgsType, isBasicResolver, isObjectSchema, isAllOfSchema, isRefSchema, isOneOfSchema } from './types/utils';
|
|
22
22
|
import { getStoredServiceConfig } from './services';
|
|
23
23
|
import { followRef, getRef, getRefOrItemsRef, getRefShapeName, getRefWithPath, omitRefAndExtend, refExpressionToRefItem, refItemToShape, refItemToShapeName, refItemToShapeSchema } from './refs';
|
|
24
24
|
import isEqual from 'lodash/isEqual';
|
|
@@ -545,7 +545,7 @@ export function getArgsShapeSchema(projectSchema, argsSchema) {
|
|
|
545
545
|
|
|
546
546
|
const omitAllOfAndExtend = (targetSchema, sourceSchema) => assign(omit(['allOf'], targetSchema), sourceSchema);
|
|
547
547
|
|
|
548
|
-
const
|
|
548
|
+
const createShapeToPropertySchema = (projectSchema, definitions, definitionNames, useShapeIdDiscriminator = true) => {
|
|
549
549
|
const rewriteRefs = (shape, addDiscriminator = false) => {
|
|
550
550
|
const handleSchema = (propSchema, addDiscriminator = false) => {
|
|
551
551
|
// Unwrap array schema
|
|
@@ -617,10 +617,10 @@ const createShapeToContentSchema = (projectSchema, definitions, definitionNames,
|
|
|
617
617
|
return rewriteRefs;
|
|
618
618
|
};
|
|
619
619
|
|
|
620
|
-
export function
|
|
620
|
+
export function shapeToPropertySchema(projectSchema, shape) {
|
|
621
621
|
const definitions = {};
|
|
622
622
|
const definitionNames = new Set();
|
|
623
|
-
const convert =
|
|
623
|
+
const convert = createShapeToPropertySchema(projectSchema, definitions, definitionNames);
|
|
624
624
|
return { ...convert(shape),
|
|
625
625
|
definitions
|
|
626
626
|
};
|
|
@@ -628,7 +628,7 @@ export function shapeToContentSchema(projectSchema, shape) {
|
|
|
628
628
|
export function projectSchemaToJSONSchema(projectSchema) {
|
|
629
629
|
const definitions = {};
|
|
630
630
|
const definitionNames = new Set();
|
|
631
|
-
const convert =
|
|
631
|
+
const convert = createShapeToPropertySchema(projectSchema, definitions, definitionNames, false);
|
|
632
632
|
|
|
633
633
|
for (const shape of Object.values(projectSchema.shapes)) {
|
|
634
634
|
definitions[shape.name] = convert(shape);
|
|
@@ -1048,7 +1048,7 @@ export function dereferenceObjectSchema(context, shapeOrFieldSchema, schemaPath
|
|
|
1048
1048
|
*/
|
|
1049
1049
|
|
|
1050
1050
|
export const createSchemaPropertyList = curry((context, shapeOrFieldSchema) => {
|
|
1051
|
-
const schema =
|
|
1051
|
+
const schema = dereferenceSchema(context, shapeOrFieldSchema);
|
|
1052
1052
|
const propertyIterator = new Map(isObjectSchema(schema) ? Object.entries(schema.properties) : undefined);
|
|
1053
1053
|
const defaultOrderByIteratees = [n => n[0]];
|
|
1054
1054
|
const defaultOrderByOrders = ['asc'];
|
|
@@ -1124,7 +1124,7 @@ export const createSchemaPropertyList = curry((context, shapeOrFieldSchema) => {
|
|
|
1124
1124
|
*/
|
|
1125
1125
|
|
|
1126
1126
|
export const createSchemaPropertyAccessor = curry((context, shapeOrFieldSchema) => {
|
|
1127
|
-
const schema =
|
|
1127
|
+
const schema = dereferenceSchema(context, shapeOrFieldSchema);
|
|
1128
1128
|
const propertyIterator = new Map(isObjectSchema(schema) ? Object.entries(schema.properties) : undefined);
|
|
1129
1129
|
|
|
1130
1130
|
const _getValue = propertyName => {
|
package/es/schemas/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
// This file is generated by "pnpm json2ts"
|
|
2
|
-
export const CURRENT_SCHEMA_VERSION = '3.
|
|
2
|
+
export const CURRENT_SCHEMA_VERSION = '3.10.0';
|
|
3
3
|
export { default as anyProjectSchema } from './project-schema.json';
|
|
4
|
-
export { default as latestSchemaJson } from './project-schema/v3.
|
|
5
|
-
export { default as latestMetaSchemaJson } from './project-schema/meta-schema-v3.9.0.json';
|
|
4
|
+
export { default as latestSchemaJson } from './project-schema/v3.10.0.json';
|
|
6
5
|
import projectSchemaV4_0_0 from './project-schema/v4.0.0.json';
|
|
6
|
+
import projectSchemaV3_10_0 from './project-schema/v3.10.0.json';
|
|
7
7
|
import projectSchemaV3_9_0 from './project-schema/v3.9.0.json';
|
|
8
|
-
import projectSchemaV3_8_0 from './project-schema/v3.8.0.json';
|
|
9
|
-
import projectSchemaV3_7_0 from './project-schema/v3.7.0.json';
|
|
10
|
-
import projectSchemaV3_6_0 from './project-schema/v3.6.0.json';
|
|
11
|
-
import projectSchemaV3_5_1 from './project-schema/v3.5.1.json';
|
|
12
|
-
import projectSchemaV3_5_0 from './project-schema/v3.5.0.json';
|
|
13
|
-
import projectSchemaV3_4_0 from './project-schema/v3.4.0.json';
|
|
14
|
-
import projectSchemaV3_3_0 from './project-schema/v3.3.0.json';
|
|
15
|
-
import projectSchemaV3_2_0 from './project-schema/v3.2.0.json';
|
|
16
|
-
import projectSchemaV3_1_0 from './project-schema/v3.1.0.json';
|
|
17
|
-
import projectSchemaV3_0_0 from './project-schema/v3.0.0.json';
|
|
18
|
-
import projectSchemaV1_0_0 from './project-schema/v1.0.0.json';
|
|
19
8
|
import metaSchemaV3_9_0 from './project-schema/meta-schema-v3.9.0.json';
|
|
9
|
+
import projectSchemaV3_8_0 from './project-schema/v3.8.0.json';
|
|
20
10
|
import metaSchemaV3_8_0 from './project-schema/meta-schema-v3.8.0.json';
|
|
11
|
+
import projectSchemaV3_7_0 from './project-schema/v3.7.0.json';
|
|
21
12
|
import metaSchemaV3_7_0 from './project-schema/meta-schema-v3.7.0.json';
|
|
13
|
+
import projectSchemaV3_6_0 from './project-schema/v3.6.0.json';
|
|
22
14
|
import metaSchemaV3_6_0 from './project-schema/meta-schema-v3.6.0.json';
|
|
15
|
+
import projectSchemaV3_5_1 from './project-schema/v3.5.1.json';
|
|
23
16
|
import metaSchemaV3_5_1 from './project-schema/meta-schema-v3.5.1.json';
|
|
17
|
+
import projectSchemaV3_5_0 from './project-schema/v3.5.0.json';
|
|
24
18
|
import metaSchemaV3_5_0 from './project-schema/meta-schema-v3.5.0.json';
|
|
19
|
+
import projectSchemaV3_4_0 from './project-schema/v3.4.0.json';
|
|
25
20
|
import metaSchemaV3_4_0 from './project-schema/meta-schema-v3.4.0.json';
|
|
21
|
+
import projectSchemaV3_3_0 from './project-schema/v3.3.0.json';
|
|
26
22
|
import metaSchemaV3_3_0 from './project-schema/meta-schema-v3.3.0.json';
|
|
23
|
+
import projectSchemaV3_2_0 from './project-schema/v3.2.0.json';
|
|
27
24
|
import metaSchemaV3_2_0 from './project-schema/meta-schema-v3.2.0.json';
|
|
25
|
+
import projectSchemaV3_1_0 from './project-schema/v3.1.0.json';
|
|
28
26
|
import metaSchemaV3_1_0 from './project-schema/meta-schema-v3.1.0.json';
|
|
27
|
+
import projectSchemaV3_0_0 from './project-schema/v3.0.0.json';
|
|
29
28
|
import metaSchemaV3_0_0 from './project-schema/meta-schema-v3.0.0.json';
|
|
29
|
+
import projectSchemaV1_0_0 from './project-schema/v1.0.0.json';
|
|
30
30
|
import metaSchemaV1_0_0 from './project-schema/meta-schema-v1.0.0.json';
|
|
31
|
-
export const allProjectSchemas = [projectSchemaV4_0_0,
|
|
31
|
+
export const allProjectSchemas = [projectSchemaV4_0_0, projectSchemaV3_10_0, projectSchemaV3_9_0, metaSchemaV3_9_0, projectSchemaV3_8_0, metaSchemaV3_8_0, projectSchemaV3_7_0, metaSchemaV3_7_0, projectSchemaV3_6_0, metaSchemaV3_6_0, projectSchemaV3_5_1, metaSchemaV3_5_1, projectSchemaV3_5_0, metaSchemaV3_5_0, projectSchemaV3_4_0, metaSchemaV3_4_0, projectSchemaV3_3_0, metaSchemaV3_3_0, projectSchemaV3_2_0, metaSchemaV3_2_0, projectSchemaV3_1_0, metaSchemaV3_1_0, projectSchemaV3_0_0, metaSchemaV3_0_0, projectSchemaV1_0_0, metaSchemaV1_0_0];
|
package/es/schemas/index.ts
CHANGED
|
@@ -1,57 +1,58 @@
|
|
|
1
1
|
// This file is generated by "pnpm json2ts"
|
|
2
|
-
export const CURRENT_SCHEMA_VERSION = '3.
|
|
2
|
+
export const CURRENT_SCHEMA_VERSION = '3.10.0';
|
|
3
3
|
export {default as anyProjectSchema} from './project-schema.json';
|
|
4
|
-
export {default as latestSchemaJson} from './project-schema/v3.
|
|
5
|
-
export {default as latestMetaSchemaJson} from './project-schema/meta-schema-v3.9.0.json';
|
|
4
|
+
export {default as latestSchemaJson} from './project-schema/v3.10.0.json';
|
|
6
5
|
import projectSchemaV4_0_0 from './project-schema/v4.0.0.json';
|
|
6
|
+
import projectSchemaV3_10_0 from './project-schema/v3.10.0.json';
|
|
7
7
|
import projectSchemaV3_9_0 from './project-schema/v3.9.0.json';
|
|
8
|
-
import projectSchemaV3_8_0 from './project-schema/v3.8.0.json';
|
|
9
|
-
import projectSchemaV3_7_0 from './project-schema/v3.7.0.json';
|
|
10
|
-
import projectSchemaV3_6_0 from './project-schema/v3.6.0.json';
|
|
11
|
-
import projectSchemaV3_5_1 from './project-schema/v3.5.1.json';
|
|
12
|
-
import projectSchemaV3_5_0 from './project-schema/v3.5.0.json';
|
|
13
|
-
import projectSchemaV3_4_0 from './project-schema/v3.4.0.json';
|
|
14
|
-
import projectSchemaV3_3_0 from './project-schema/v3.3.0.json';
|
|
15
|
-
import projectSchemaV3_2_0 from './project-schema/v3.2.0.json';
|
|
16
|
-
import projectSchemaV3_1_0 from './project-schema/v3.1.0.json';
|
|
17
|
-
import projectSchemaV3_0_0 from './project-schema/v3.0.0.json';
|
|
18
|
-
import projectSchemaV1_0_0 from './project-schema/v1.0.0.json';
|
|
19
8
|
import metaSchemaV3_9_0 from './project-schema/meta-schema-v3.9.0.json';
|
|
9
|
+
import projectSchemaV3_8_0 from './project-schema/v3.8.0.json';
|
|
20
10
|
import metaSchemaV3_8_0 from './project-schema/meta-schema-v3.8.0.json';
|
|
11
|
+
import projectSchemaV3_7_0 from './project-schema/v3.7.0.json';
|
|
21
12
|
import metaSchemaV3_7_0 from './project-schema/meta-schema-v3.7.0.json';
|
|
13
|
+
import projectSchemaV3_6_0 from './project-schema/v3.6.0.json';
|
|
22
14
|
import metaSchemaV3_6_0 from './project-schema/meta-schema-v3.6.0.json';
|
|
15
|
+
import projectSchemaV3_5_1 from './project-schema/v3.5.1.json';
|
|
23
16
|
import metaSchemaV3_5_1 from './project-schema/meta-schema-v3.5.1.json';
|
|
17
|
+
import projectSchemaV3_5_0 from './project-schema/v3.5.0.json';
|
|
24
18
|
import metaSchemaV3_5_0 from './project-schema/meta-schema-v3.5.0.json';
|
|
19
|
+
import projectSchemaV3_4_0 from './project-schema/v3.4.0.json';
|
|
25
20
|
import metaSchemaV3_4_0 from './project-schema/meta-schema-v3.4.0.json';
|
|
21
|
+
import projectSchemaV3_3_0 from './project-schema/v3.3.0.json';
|
|
26
22
|
import metaSchemaV3_3_0 from './project-schema/meta-schema-v3.3.0.json';
|
|
23
|
+
import projectSchemaV3_2_0 from './project-schema/v3.2.0.json';
|
|
27
24
|
import metaSchemaV3_2_0 from './project-schema/meta-schema-v3.2.0.json';
|
|
25
|
+
import projectSchemaV3_1_0 from './project-schema/v3.1.0.json';
|
|
28
26
|
import metaSchemaV3_1_0 from './project-schema/meta-schema-v3.1.0.json';
|
|
27
|
+
import projectSchemaV3_0_0 from './project-schema/v3.0.0.json';
|
|
29
28
|
import metaSchemaV3_0_0 from './project-schema/meta-schema-v3.0.0.json';
|
|
29
|
+
import projectSchemaV1_0_0 from './project-schema/v1.0.0.json';
|
|
30
30
|
import metaSchemaV1_0_0 from './project-schema/meta-schema-v1.0.0.json';
|
|
31
31
|
export const allProjectSchemas = [
|
|
32
32
|
projectSchemaV4_0_0,
|
|
33
|
+
projectSchemaV3_10_0,
|
|
33
34
|
projectSchemaV3_9_0,
|
|
34
|
-
projectSchemaV3_8_0,
|
|
35
|
-
projectSchemaV3_7_0,
|
|
36
|
-
projectSchemaV3_6_0,
|
|
37
|
-
projectSchemaV3_5_1,
|
|
38
|
-
projectSchemaV3_5_0,
|
|
39
|
-
projectSchemaV3_4_0,
|
|
40
|
-
projectSchemaV3_3_0,
|
|
41
|
-
projectSchemaV3_2_0,
|
|
42
|
-
projectSchemaV3_1_0,
|
|
43
|
-
projectSchemaV3_0_0,
|
|
44
|
-
projectSchemaV1_0_0,
|
|
45
35
|
metaSchemaV3_9_0,
|
|
36
|
+
projectSchemaV3_8_0,
|
|
46
37
|
metaSchemaV3_8_0,
|
|
38
|
+
projectSchemaV3_7_0,
|
|
47
39
|
metaSchemaV3_7_0,
|
|
40
|
+
projectSchemaV3_6_0,
|
|
48
41
|
metaSchemaV3_6_0,
|
|
42
|
+
projectSchemaV3_5_1,
|
|
49
43
|
metaSchemaV3_5_1,
|
|
44
|
+
projectSchemaV3_5_0,
|
|
50
45
|
metaSchemaV3_5_0,
|
|
46
|
+
projectSchemaV3_4_0,
|
|
51
47
|
metaSchemaV3_4_0,
|
|
48
|
+
projectSchemaV3_3_0,
|
|
52
49
|
metaSchemaV3_3_0,
|
|
50
|
+
projectSchemaV3_2_0,
|
|
53
51
|
metaSchemaV3_2_0,
|
|
52
|
+
projectSchemaV3_1_0,
|
|
54
53
|
metaSchemaV3_1_0,
|
|
54
|
+
projectSchemaV3_0_0,
|
|
55
55
|
metaSchemaV3_0_0,
|
|
56
|
+
projectSchemaV1_0_0,
|
|
56
57
|
metaSchemaV1_0_0
|
|
57
58
|
];
|