@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.
Files changed (79) hide show
  1. package/dist/migration/index.d.ts +1 -0
  2. package/dist/migration/index.d.ts.map +1 -1
  3. package/dist/migration/index.js +3 -1
  4. package/dist/migration/to/v3.43.0.d.ts +5 -0
  5. package/dist/migration/to/v3.43.0.d.ts.map +1 -0
  6. package/dist/migration/to/v3.43.0.js +16 -0
  7. package/dist/project-schema/index.d.ts +4 -1
  8. package/dist/project-schema/index.d.ts.map +1 -1
  9. package/dist/project-schema/index.js +17 -3
  10. package/dist/project-schema/latest.d.ts +3 -1
  11. package/dist/project-schema/latest.d.ts.map +1 -1
  12. package/dist/project-schema/migrate.d.ts.map +1 -1
  13. package/dist/project-schema/migrate.js +3 -0
  14. package/dist/project-schema/v3.42.0.d.ts +2 -0
  15. package/dist/project-schema/v3.42.0.d.ts.map +1 -1
  16. package/dist/project-schema/v3.43.0.d.ts +1537 -0
  17. package/dist/project-schema/v3.43.0.d.ts.map +1 -0
  18. package/dist/project-schema/v3.43.0.js +5 -0
  19. package/dist/schemas/index.d.ts +2 -2
  20. package/dist/schemas/index.d.ts.map +1 -1
  21. package/dist/schemas/index.js +5 -4
  22. package/dist/schemas/index.ts +4 -2
  23. package/dist/schemas/project-schema/latest.json +8 -2
  24. package/dist/schemas/project-schema/v3.43.0.json +3233 -0
  25. package/dist/schemas/project-schema.json +3 -0
  26. package/es/migration/index.js +3 -1
  27. package/es/migration/to/v3.43.0.js +10 -0
  28. package/es/project-schema/index.js +3 -1
  29. package/es/project-schema/migrate.js +4 -1
  30. package/es/project-schema/v3.43.0.js +1 -0
  31. package/es/schemas/index.js +4 -3
  32. package/es/schemas/index.ts +4 -2
  33. package/es/schemas/project-schema/latest.json +8 -2
  34. package/es/schemas/project-schema/v3.43.0.json +3233 -0
  35. package/es/schemas/project-schema.json +3 -0
  36. package/examples/latest/all-fields-shapes-inline.json +1 -1
  37. package/examples/latest/all-fields-shapes.json +1 -1
  38. package/examples/latest/betzino.json +1 -1
  39. package/examples/latest/blog-schema.json +1 -1
  40. package/examples/latest/brewery-schema.json +1 -1
  41. package/examples/latest/clear-cache-schema.json +1 -1
  42. package/examples/latest/complex-project-schema.json +1 -1
  43. package/examples/latest/complex-schema.json +1 -1
  44. package/examples/latest/edit-schema.json +1 -1
  45. package/examples/latest/fabric-ecommerce.json +1 -1
  46. package/examples/latest/frank-and-fred-schema.json +1 -1
  47. package/examples/latest/klirr-schema.json +1 -1
  48. package/examples/latest/massive-schema.json +1 -1
  49. package/examples/latest/mill-components-schema.json +1 -1
  50. package/examples/latest/nested-shape-arrays.json +1 -1
  51. package/examples/latest/one-earth.json +1 -1
  52. package/examples/latest/pet-oneof-array.json +1 -1
  53. package/examples/latest/post-schema.json +1 -1
  54. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  55. package/examples/latest/real-world-schema.json +1 -1
  56. package/examples/latest/recursive-repeater-schema.json +1 -1
  57. package/examples/latest/recursive-schema.json +1 -1
  58. package/examples/latest/rick-and-morty-ast.json +1 -1
  59. package/examples/latest/rick-and-morty-graphql.json +1 -1
  60. package/examples/latest/rick-and-morty-rest.json +1 -1
  61. package/examples/latest/rick-and-morty-with-indexing.json +1 -1
  62. package/examples/latest/schema-where-filter.json +1 -1
  63. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  64. package/examples/latest/schema-with-rick-and-morty.json +1 -1
  65. package/examples/latest/shape-books-v3_2_0.json +1 -1
  66. package/examples/latest/shape-books.json +1 -1
  67. package/examples/latest/shape-editor-schema-edited.json +1 -1
  68. package/examples/latest/shape-editor-schema-initial.json +1 -1
  69. package/examples/latest/shapedb-crud-every-prop-type.json +1 -1
  70. package/examples/latest/shopify-lookbook.json +1 -1
  71. package/examples/latest/shopify-product-2022-07.json +1 -1
  72. package/examples/latest/shopify-product-2023-04.json +1 -1
  73. package/examples/latest/shopify-store-with-widget.json +1 -1
  74. package/examples/latest/stripe-product-runtime-schema.json +1 -1
  75. package/examples/latest/stripe-starter-resolved.json +1 -1
  76. package/examples/latest/user-schema-no-required.json +1 -1
  77. package/examples/latest/user-schema-with-defaults.json +1 -1
  78. package/examples/latest/vector-search-schema.json +1 -1
  79. package/package.json +5 -5
@@ -156,6 +156,9 @@
156
156
  {
157
157
  "$ref": "https://schema.takeshape.io/project-schema/v3.42.0#"
158
158
  },
159
+ {
160
+ "$ref": "https://schema.takeshape.io/project-schema/v3.43.0#"
161
+ },
159
162
  {
160
163
  "$ref": "https://schema.takeshape.io/project-schema/v4.0.0#"
161
164
  }
@@ -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';
@@ -0,0 +1,10 @@
1
+ const migrate = async (_, projectSchema) => {
2
+ /**
3
+ * No migration needed all changes are backwards compatible.
4
+ */
5
+ return {
6
+ ...projectSchema,
7
+ schemaVersion: '3.43.0'
8
+ };
9
+ };
10
+ export default migrate;
@@ -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 isLatestProjectSchemaJSON = createVersionPredicate('3.42.0');
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 {};
@@ -1,7 +1,7 @@
1
1
  // This file is generated by "pnpm json2ts"
2
- export const CURRENT_SCHEMA_VERSION = '3.42.0';
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.42.0.json';
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];
@@ -1,7 +1,7 @@
1
1
  // This file is generated by "pnpm json2ts"
2
- export const CURRENT_SCHEMA_VERSION = '3.42.0';
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.42.0.json';
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.42.0#",
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.42.0"
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
  },