@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.
Files changed (117) hide show
  1. package/es/enum.js +1 -1
  2. package/es/get-is-leaf.js +5 -5
  3. package/es/layers/type-utils.js +2 -2
  4. package/es/migration.js +59 -1
  5. package/es/project-schema/index.js +1 -0
  6. package/es/project-schema/v3.10.0.js +1 -0
  7. package/es/refs.js +19 -19
  8. package/es/schema-util.js +7 -7
  9. package/es/schemas/index.js +15 -15
  10. package/es/schemas/index.ts +26 -25
  11. package/es/schemas/project-schema/v3.10.0.json +2091 -0
  12. package/es/schemas/project-schema/v4.0.0.json +8 -6
  13. package/es/schemas/project-schema.json +2 -1
  14. package/es/types/types.js +1 -1
  15. package/es/types/utils.js +20 -19
  16. package/es/util/detect-cycles.js +1 -1
  17. package/es/validate.js +8 -5
  18. package/examples/latest/blog-schema.json +32 -32
  19. package/examples/latest/brewery-schema.json +53 -53
  20. package/examples/latest/complex-project-schema.json +3278 -3278
  21. package/examples/latest/fabric-ecommerce.json +130 -130
  22. package/examples/latest/frank-and-fred-schema.json +15588 -15588
  23. package/examples/latest/massive-schema.json +5836 -5836
  24. package/examples/latest/mill-components-schema.json +876 -876
  25. package/examples/latest/pet-oneof-array.json +77 -77
  26. package/examples/latest/post-schema.json +23 -23
  27. package/examples/latest/pruned-shopify-product-schema.json +19 -19
  28. package/examples/latest/real-world-schema.json +166 -166
  29. package/examples/latest/recursive-repeater-schema.json +14 -14
  30. package/examples/latest/recursive-schema.json +14 -14
  31. package/examples/latest/rick-and-morty-ast.json +1875 -1896
  32. package/examples/latest/rick-and-morty-graphql.json +1093 -1093
  33. package/examples/latest/rick-and-morty-rest.json +20 -20
  34. package/examples/latest/schema-with-repeater-draftjs.json +9 -9
  35. package/examples/latest/shape-books-v3_2_0.json +218 -218
  36. package/examples/latest/shape-books.json +218 -218
  37. package/examples/latest/shopify-lookbook.json +147 -147
  38. package/examples/latest/shopify-store-with-widget.json +10420 -10420
  39. package/examples/latest/stripe-starter-resolved.json +1018 -1018
  40. package/examples/latest/user-schema-no-required.json +19 -19
  41. package/examples/latest/user-schema-with-defaults.json +20 -20
  42. package/examples/source/rick-and-morty-ast.json +0 -21
  43. package/lib/content-schema-transform.d.ts +13 -13
  44. package/lib/content-schema-transform.d.ts.map +1 -1
  45. package/lib/enum.d.ts +2 -2
  46. package/lib/enum.d.ts.map +1 -1
  47. package/lib/enum.js +2 -2
  48. package/lib/get-is-leaf.d.ts +2 -2
  49. package/lib/get-is-leaf.d.ts.map +1 -1
  50. package/lib/get-is-leaf.js +5 -5
  51. package/lib/layers/type-utils.js +1 -1
  52. package/lib/migration.d.ts +6 -5
  53. package/lib/migration.d.ts.map +1 -1
  54. package/lib/migration.js +60 -0
  55. package/lib/project-schema/index.d.ts +3 -1
  56. package/lib/project-schema/index.d.ts.map +1 -1
  57. package/lib/project-schema/index.js +25 -12
  58. package/lib/project-schema/latest.d.ts +260 -238
  59. package/lib/project-schema/latest.d.ts.map +1 -1
  60. package/lib/project-schema/v1.0.0.d.ts +14 -7
  61. package/lib/project-schema/v1.0.0.d.ts.map +1 -1
  62. package/lib/project-schema/v3.0.0.d.ts +24 -25
  63. package/lib/project-schema/v3.0.0.d.ts.map +1 -1
  64. package/lib/project-schema/v3.1.0.d.ts +42 -43
  65. package/lib/project-schema/v3.1.0.d.ts.map +1 -1
  66. package/lib/project-schema/v3.10.0.d.ts +1202 -0
  67. package/lib/project-schema/v3.10.0.d.ts.map +1 -0
  68. package/lib/project-schema/v3.10.0.js +5 -0
  69. package/lib/project-schema/v3.2.0.d.ts +42 -43
  70. package/lib/project-schema/v3.2.0.d.ts.map +1 -1
  71. package/lib/project-schema/v3.3.0.d.ts +42 -43
  72. package/lib/project-schema/v3.3.0.d.ts.map +1 -1
  73. package/lib/project-schema/v3.4.0.d.ts +42 -43
  74. package/lib/project-schema/v3.4.0.d.ts.map +1 -1
  75. package/lib/project-schema/v3.5.0.d.ts +42 -43
  76. package/lib/project-schema/v3.5.0.d.ts.map +1 -1
  77. package/lib/project-schema/v3.5.1.d.ts +42 -43
  78. package/lib/project-schema/v3.5.1.d.ts.map +1 -1
  79. package/lib/project-schema/v3.6.0.d.ts +42 -43
  80. package/lib/project-schema/v3.6.0.d.ts.map +1 -1
  81. package/lib/project-schema/v3.7.0.d.ts +42 -43
  82. package/lib/project-schema/v3.7.0.d.ts.map +1 -1
  83. package/lib/project-schema/v3.8.0.d.ts +42 -43
  84. package/lib/project-schema/v3.8.0.d.ts.map +1 -1
  85. package/lib/project-schema/v3.9.0.d.ts +42 -43
  86. package/lib/project-schema/v3.9.0.d.ts.map +1 -1
  87. package/lib/project-schema/v4.0.0.d.ts +54 -52
  88. package/lib/project-schema/v4.0.0.d.ts.map +1 -1
  89. package/lib/refs.d.ts +8 -8
  90. package/lib/refs.d.ts.map +1 -1
  91. package/lib/refs.js +19 -19
  92. package/lib/schema-util.d.ts +23 -23
  93. package/lib/schema-util.d.ts.map +1 -1
  94. package/lib/schema-util.js +7 -7
  95. package/lib/schemas/index.d.ts +3421 -3420
  96. package/lib/schemas/index.d.ts.map +1 -1
  97. package/lib/schemas/index.js +26 -30
  98. package/lib/schemas/index.ts +26 -25
  99. package/lib/schemas/project-schema/v3.10.0.json +2091 -0
  100. package/lib/schemas/project-schema/v4.0.0.json +8 -6
  101. package/lib/schemas/project-schema.json +2 -1
  102. package/lib/types/types.d.ts +7 -7
  103. package/lib/types/types.d.ts.map +1 -1
  104. package/lib/types/types.js +1 -1
  105. package/lib/types/utils.d.ts +9 -8
  106. package/lib/types/utils.d.ts.map +1 -1
  107. package/lib/types/utils.js +25 -23
  108. package/lib/unions.d.ts +8 -8
  109. package/lib/unions.d.ts.map +1 -1
  110. package/lib/util/detect-cycles.d.ts +2 -2
  111. package/lib/util/detect-cycles.d.ts.map +1 -1
  112. package/lib/util/detect-cycles.js +1 -1
  113. package/lib/validate.d.ts.map +1 -1
  114. package/lib/validate.js +7 -4
  115. package/lib/workflows.d.ts +2 -2
  116. package/lib/workflows.d.ts.map +1 -1
  117. package/package.json +5 -5
package/es/enum.js CHANGED
@@ -1,4 +1,4 @@
1
- export function isEnumSchema(schema) {
1
+ export function isEnumLikeSchema(schema) {
2
2
  if (schema.enum) {
3
3
  return true;
4
4
  }
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, contentSchema) {
7
- const type = getType(contentSchema);
6
+ function isLeafTypeV3(projectSchema, propertySchema) {
7
+ const type = getType(propertySchema);
8
8
  return Boolean( // Must have key
9
- getKey(contentSchema) && ( // If is not a structure, then is a leaf
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
- contentSchema['@relationship'] || contentSchema['@tag'] && scalarTags.has(contentSchema['@tag']) || // If is array, then should not be a synchronized structure
12
- type === 'array' && !contentSchema['@syncLocaleStructure'] || isBuiltinType(projectSchema, contentSchema)));
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) {
@@ -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 { latestMetaSchemaJson } from '../schemas';
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
- } = latestMetaSchemaJson;
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) {
@@ -1,6 +1,7 @@
1
1
  // This file is generated by "pnpm json2ts"
2
2
  export * from './latest';
3
3
  export * from './v4.0.0';
4
+ export * from './v3.10.0';
4
5
  export * from './v3.9.0';
5
6
  export * from './v3.8.0';
6
7
  export * from './v3.7.0';
@@ -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 content schema and project schema, finds a `@ref` or `$ref` and
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 content schema from the top level
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, contentSchema) {
248
- const refItem = getRef(context, contentSchema);
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(contentSchema, referencedSchema);
254
+ return omitRefAndExtend(schema, referencedSchema);
255
255
  }
256
256
  }
257
257
 
258
- return contentSchema;
258
+ return schema;
259
259
  }
260
260
  /**
261
261
  * Returns whether a schema has refs.
262
262
  */
263
263
 
264
- export function hasRef(contentSchema) {
265
- if (isRefSchema(contentSchema) || isRefSchemaLegacy(contentSchema)) {
264
+ export function hasRef(schema) {
265
+ if (isRefSchema(schema) || isRefSchemaLegacy(schema)) {
266
266
  return true;
267
267
  }
268
268
 
269
- if (isAllOfSchema(contentSchema)) {
270
- return Boolean(contentSchema.allOf.find(hasRef));
269
+ if (isAllOfSchema(schema)) {
270
+ return Boolean(schema.allOf.find(hasRef));
271
271
  }
272
272
 
273
- if (isOneOfSchema(contentSchema)) {
274
- return Boolean(contentSchema.oneOf.find(hasRef));
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, contentSchema) {
284
- if (isRefSchema(contentSchema) || isRefSchemaLegacy(contentSchema)) {
285
- return Boolean(refItemToShapeSchema(context, getRef(context, contentSchema)));
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(contentSchema)) {
289
- return Boolean(contentSchema.allOf.find(s => hasResolvableRef(context, s)));
288
+ if (isAllOfSchema(schema)) {
289
+ return Boolean(schema.allOf.find(s => hasResolvableRef(context, s)));
290
290
  }
291
291
 
292
- if (isOneOfSchema(contentSchema)) {
293
- return Boolean(contentSchema.oneOf.find(s => hasResolvableRef(context, s)));
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, isContentObjectSchema } from './types/utils';
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 createShapeToContentSchema = (projectSchema, definitions, definitionNames, useShapeIdDiscriminator = true) => {
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 shapeToContentSchema(projectSchema, shape) {
620
+ export function shapeToPropertySchema(projectSchema, shape) {
621
621
  const definitions = {};
622
622
  const definitionNames = new Set();
623
- const convert = createShapeToContentSchema(projectSchema, definitions, definitionNames);
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 = createShapeToContentSchema(projectSchema, definitions, definitionNames, false);
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 = isContentObjectSchema(shapeOrFieldSchema) ? dereferenceSchema(context, shapeOrFieldSchema) : shapeOrFieldSchema;
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 = isContentObjectSchema(shapeOrFieldSchema) ? dereferenceSchema(context, shapeOrFieldSchema) : shapeOrFieldSchema;
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 => {
@@ -1,31 +1,31 @@
1
1
  // This file is generated by "pnpm json2ts"
2
- export const CURRENT_SCHEMA_VERSION = '3.9.0';
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.9.0.json';
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, projectSchemaV3_9_0, projectSchemaV3_8_0, projectSchemaV3_7_0, projectSchemaV3_6_0, projectSchemaV3_5_1, projectSchemaV3_5_0, projectSchemaV3_4_0, projectSchemaV3_3_0, projectSchemaV3_2_0, projectSchemaV3_1_0, projectSchemaV3_0_0, projectSchemaV1_0_0, metaSchemaV3_9_0, metaSchemaV3_8_0, metaSchemaV3_7_0, metaSchemaV3_6_0, metaSchemaV3_5_1, metaSchemaV3_5_0, metaSchemaV3_4_0, metaSchemaV3_3_0, metaSchemaV3_2_0, metaSchemaV3_1_0, metaSchemaV3_0_0, metaSchemaV1_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];
@@ -1,57 +1,58 @@
1
1
  // This file is generated by "pnpm json2ts"
2
- export const CURRENT_SCHEMA_VERSION = '3.9.0';
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.9.0.json';
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
  ];