@takeshape/schema 10.44.4 → 10.47.3

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 (119) hide show
  1. package/dist/api-version.js +1 -1
  2. package/dist/content-schema-transform.js +1 -1
  3. package/dist/create-input-schema.js +1 -1
  4. package/dist/flatten-templates.js +1 -1
  5. package/dist/interfaces.js +1 -1
  6. package/dist/layers/layers.js +1 -1
  7. package/dist/layers/refs.js +2 -2
  8. package/dist/layers/type-utils.js +1 -1
  9. package/dist/migration/index.d.ts +1 -0
  10. package/dist/migration/index.d.ts.map +1 -1
  11. package/dist/migration/index.js +4 -2
  12. package/dist/migration/to/v3.0.0.js +1 -1
  13. package/dist/migration/to/v3.1.0.js +1 -1
  14. package/dist/migration/to/v3.10.0.js +1 -1
  15. package/dist/migration/to/v3.11.0.js +1 -1
  16. package/dist/migration/to/v3.12.3.js +1 -1
  17. package/dist/migration/to/v3.13.0.js +1 -1
  18. package/dist/migration/to/v3.17.0.js +1 -1
  19. package/dist/migration/to/v3.18.0.js +1 -1
  20. package/dist/migration/to/v3.18.1.js +1 -1
  21. package/dist/migration/to/v3.18.2.js +1 -1
  22. package/dist/migration/to/v3.20.0.js +1 -1
  23. package/dist/migration/to/v3.22.0.js +1 -1
  24. package/dist/migration/to/v3.31.0.js +1 -1
  25. package/dist/migration/to/v3.34.0.js +1 -1
  26. package/dist/migration/to/v3.36.0.js +1 -1
  27. package/dist/migration/to/v3.40.0.js +1 -1
  28. package/dist/migration/to/v3.45.0.d.ts +5 -0
  29. package/dist/migration/to/v3.45.0.d.ts.map +1 -0
  30. package/dist/migration/to/v3.45.0.js +16 -0
  31. package/dist/migration/to/v3.9.0.js +1 -1
  32. package/dist/models/project-schema.js +1 -1
  33. package/dist/project-schema/index.d.ts +4 -1
  34. package/dist/project-schema/index.d.ts.map +1 -1
  35. package/dist/project-schema/index.js +17 -3
  36. package/dist/project-schema/latest.d.ts +31 -2
  37. package/dist/project-schema/latest.d.ts.map +1 -1
  38. package/dist/project-schema/migrate.d.ts.map +1 -1
  39. package/dist/project-schema/migrate.js +3 -0
  40. package/dist/project-schema/v3.45.0.d.ts +1651 -0
  41. package/dist/project-schema/v3.45.0.d.ts.map +1 -0
  42. package/dist/project-schema/v3.45.0.js +5 -0
  43. package/dist/refs.js +1 -1
  44. package/dist/relationships.js +1 -1
  45. package/dist/schema-transform.js +1 -1
  46. package/dist/schema-util.js +1 -1
  47. package/dist/schemas/index.d.ts +2 -2
  48. package/dist/schemas/index.d.ts.map +1 -1
  49. package/dist/schemas/index.js +6 -5
  50. package/dist/schemas/index.ts +4 -2
  51. package/dist/schemas/project-schema/latest.json +65 -3
  52. package/dist/schemas/project-schema/v3.45.0.json +3488 -0
  53. package/dist/schemas/project-schema.json +3 -0
  54. package/dist/services.js +1 -1
  55. package/dist/taxonomies.js +1 -1
  56. package/dist/template-shapes/templates.js +1 -1
  57. package/dist/template-shapes/where.js +1 -1
  58. package/dist/types/utils.js +1 -1
  59. package/dist/unions.js +1 -1
  60. package/dist/util/merge.js +1 -1
  61. package/dist/util/patch-schema.js +1 -1
  62. package/dist/validate.js +1 -1
  63. package/es/layers/refs.js +1 -1
  64. package/es/migration/index.js +3 -1
  65. package/es/migration/to/v3.45.0.js +10 -0
  66. package/es/project-schema/index.js +3 -1
  67. package/es/project-schema/migrate.js +4 -1
  68. package/es/project-schema/v3.45.0.js +1 -0
  69. package/es/schemas/index.js +4 -3
  70. package/es/schemas/index.ts +4 -2
  71. package/es/schemas/project-schema/latest.json +65 -3
  72. package/es/schemas/project-schema/v3.45.0.json +3488 -0
  73. package/es/schemas/project-schema.json +3 -0
  74. package/examples/latest/all-fields-shapes-inline.json +1 -1
  75. package/examples/latest/all-fields-shapes.json +1 -1
  76. package/examples/latest/betzino.json +1 -1
  77. package/examples/latest/blog-schema.json +1 -1
  78. package/examples/latest/brewery-schema.json +1 -1
  79. package/examples/latest/clear-cache-schema.json +1 -1
  80. package/examples/latest/complex-project-schema.json +1 -1
  81. package/examples/latest/complex-schema.json +1 -1
  82. package/examples/latest/edit-schema.json +1 -1
  83. package/examples/latest/fabric-ecommerce.json +1 -1
  84. package/examples/latest/frank-and-fred-schema.json +1 -1
  85. package/examples/latest/klirr-schema.json +1 -1
  86. package/examples/latest/massive-schema.json +1 -1
  87. package/examples/latest/mill-components-schema.json +1 -1
  88. package/examples/latest/nested-shape-arrays.json +1 -1
  89. package/examples/latest/one-earth.json +1 -1
  90. package/examples/latest/pet-oneof-array.json +1 -1
  91. package/examples/latest/post-schema.json +1 -1
  92. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  93. package/examples/latest/rag-example.json +5 -3
  94. package/examples/latest/real-world-schema.json +1 -1
  95. package/examples/latest/recursive-repeater-schema.json +1 -1
  96. package/examples/latest/recursive-schema.json +1 -1
  97. package/examples/latest/rick-and-morty-ast.json +1 -1
  98. package/examples/latest/rick-and-morty-graphql.json +1 -1
  99. package/examples/latest/rick-and-morty-rest.json +1 -1
  100. package/examples/latest/rick-and-morty-with-indexing.json +1 -1
  101. package/examples/latest/schema-where-filter.json +1 -1
  102. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  103. package/examples/latest/schema-with-rick-and-morty.json +1 -1
  104. package/examples/latest/shape-books-v3_2_0.json +1 -1
  105. package/examples/latest/shape-books.json +1 -1
  106. package/examples/latest/shape-editor-schema-edited.json +1 -1
  107. package/examples/latest/shape-editor-schema-initial.json +1 -1
  108. package/examples/latest/shapedb-crud-every-prop-type.json +1 -1
  109. package/examples/latest/shopify-lookbook.json +1 -1
  110. package/examples/latest/shopify-product-2022-07.json +1 -1
  111. package/examples/latest/shopify-product-2023-04.json +1 -1
  112. package/examples/latest/shopify-store-with-widget.json +1 -1
  113. package/examples/latest/stripe-product-runtime-schema.json +1 -1
  114. package/examples/latest/stripe-starter-resolved.json +1 -1
  115. package/examples/latest/user-schema-no-required.json +1 -1
  116. package/examples/latest/user-schema-with-defaults.json +1 -1
  117. package/examples/latest/valvoline-ai-demo.json +691 -173
  118. package/examples/latest/vector-search-schema.json +1 -1
  119. package/package.json +5 -5
@@ -162,6 +162,9 @@
162
162
  {
163
163
  "$ref": "https://schema.takeshape.io/project-schema/v3.44.0#"
164
164
  },
165
+ {
166
+ "$ref": "https://schema.takeshape.io/project-schema/v3.45.0#"
167
+ },
165
168
  {
166
169
  "$ref": "https://schema.takeshape.io/project-schema/v4.0.0#"
167
170
  }
package/dist/services.js CHANGED
@@ -22,7 +22,7 @@ var _utils = require("./types/utils");
22
22
  var _schemaUtil = require("./schema-util");
23
23
  var _schemas = require("./schemas");
24
24
  var _validate = require("./validate");
25
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
26
26
  /**
27
27
  * Decrypt an encrypted authentication JSON string
28
28
  * Throws an error if decryption fails
@@ -7,7 +7,7 @@ exports.getFirstStringFieldV3 = getFirstStringFieldV3;
7
7
  exports.getTaxonomyField = exports.getTaxonomies = void 0;
8
8
  var _memoize = _interopRequireDefault(require("lodash/memoize"));
9
9
  var _schemaUtil = require("./schema-util");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  function weakMemoize(fn) {
12
12
  const memoized = (0, _memoize.default)(fn);
13
13
  memoized.cache = new WeakMap();
@@ -24,7 +24,7 @@ var _util2 = require("../util");
24
24
  var _createInputSchema = require("../create-input-schema");
25
25
  var _where = require("./where");
26
26
  var _types = require("./types");
27
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
28
28
  const TSGetArgs = exports.TSGetArgs = getIDQueryArgs('TSGetArgs');
29
29
  const TSGetSingletonArgs = exports.TSGetSingletonArgs = getIDQueryArgs('TSGetSingletonArgs');
30
30
  const TSListArgs = exports.TSListArgs = getShapeListQueryArgs('TSListArgs', true);
@@ -20,7 +20,7 @@ var _refs = require("../refs");
20
20
  var _unions = require("../unions");
21
21
  var _utils = require("../types/utils");
22
22
  var _relationships = require("../relationships");
23
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
24
24
  const MAX_RELATIONSHIP_DEPTH = exports.MAX_RELATIONSHIP_DEPTH = 1;
25
25
  const exceededRelationshipDepth = (depth = 0) => depth >= MAX_RELATIONSHIP_DEPTH;
26
26
  exports.exceededRelationshipDepth = exceededRelationshipDepth;
@@ -64,7 +64,7 @@ var _isUndefined = _interopRequireDefault(require("lodash/isUndefined"));
64
64
  var _schemas = require("../schemas");
65
65
  var _schemaUtil = require("../schema-util");
66
66
  var _types = require("./types");
67
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
67
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
68
68
  /** Resolver Type Utils **/
69
69
 
70
70
  /**
package/dist/unions.js CHANGED
@@ -17,7 +17,7 @@ var _contentSchemaTransform = require("./content-schema-transform");
17
17
  var _utils = require("./types/utils");
18
18
  var _schemaUtil = require("./schema-util");
19
19
  var _templates = require("./template-shapes/templates");
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
21
21
  function enumerateOneOfKeys(projectSchema, oneOf) {
22
22
  const result = [];
23
23
  for (const child of oneOf) {
@@ -20,7 +20,7 @@ var _last = _interopRequireDefault(require("lodash/last"));
20
20
  var _omit = _interopRequireDefault(require("lodash/omit"));
21
21
  var _pickBy = _interopRequireDefault(require("lodash/pickBy"));
22
22
  var _types = require("../types");
23
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
24
24
  function mergeObjectSchemas(...args) {
25
25
  return args.filter(_util.isDefined).reduce(mergeSchemaProperties, {
26
26
  type: 'object',
@@ -7,7 +7,7 @@ exports.patchSchema = patchSchema;
7
7
  exports.shallowMerge = shallowMerge;
8
8
  var _forIn = _interopRequireDefault(require("lodash/forIn"));
9
9
  var _omit = _interopRequireDefault(require("lodash/omit"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const schemaUpdateMergedKeys = ['queries', 'mutations', 'shapes', 'workflows', 'forms', 'services'];
12
12
  function shallowMerge(original, update) {
13
13
  const result = {
package/dist/validate.js CHANGED
@@ -45,7 +45,7 @@ var _relationships = require("./relationships");
45
45
  var _types = require("./types/types");
46
46
  var _projectSchema = require("./project-schema");
47
47
  var _util2 = require("./util");
48
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
48
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
49
49
  const builtInShapeNames = exports.builtInShapeNames = new Set([...Object.keys(_builtinSchema.builtInShapes), ..._scalars.scalars, 'object']);
50
50
  function findDuplicates(items) {
51
51
  const seen = {};
package/es/layers/refs.js CHANGED
@@ -184,7 +184,7 @@ export function hasResolvableRef(shapes, contentSchema) {
184
184
  return false;
185
185
  }
186
186
  export function getArgsReferenceWithPath(argsSchema, schemaPath = []) {
187
- const isQuery = ('args' in argsSchema);
187
+ const isQuery = 'args' in argsSchema;
188
188
  const args = isQuery ? argsSchema.args : argsSchema['@args'];
189
189
  const refItem = typeof args === 'string' ? refExpressionToRefItem(args) : undefined;
190
190
  if (refItem) {
@@ -50,6 +50,7 @@ import migrateToV3_41_0 from './to/v3.41.0';
50
50
  import migrateToV3_42_0 from './to/v3.42.0';
51
51
  import migrateToV3_43_0 from './to/v3.43.0';
52
52
  import migrateToV3_44_0 from './to/v3.44.0';
53
+ import migrateToV3_45_0 from './to/v3.45.0';
53
54
  export const migrateTo = {
54
55
  'v3.0.0': migrateToV3_0_0,
55
56
  'v3.1.0': migrateToV3_1_0,
@@ -102,7 +103,8 @@ export const migrateTo = {
102
103
  'v3.41.0': migrateToV3_41_0,
103
104
  'v3.42.0': migrateToV3_42_0,
104
105
  'v3.43.0': migrateToV3_43_0,
105
- 'v3.44.0': migrateToV3_44_0
106
+ 'v3.44.0': migrateToV3_44_0,
107
+ 'v3.45.0': migrateToV3_45_0
106
108
  };
107
109
  export * from './utils';
108
110
  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.45.0'
8
+ };
9
+ };
10
+ export default migrate;
@@ -53,6 +53,7 @@ export * from './v3.41.0';
53
53
  export * from './v3.42.0';
54
54
  export * from './v3.43.0';
55
55
  export * from './v3.44.0';
56
+ export * from './v3.45.0';
56
57
  export * from './v4.0.0';
57
58
  // Schema type utilities
58
59
  function createVersionPredicate(expectedVersion) {
@@ -122,5 +123,6 @@ export const isProjectSchemaJSONV3_41_0 = createVersionPredicate('3.41.0');
122
123
  export const isProjectSchemaJSONV3_42_0 = createVersionPredicate('3.42.0');
123
124
  export const isProjectSchemaJSONV3_43_0 = createVersionPredicate('3.43.0');
124
125
  export const isProjectSchemaJSONV3_44_0 = createVersionPredicate('3.44.0');
125
- export const isLatestProjectSchemaJSON = createVersionPredicate('3.44.0');
126
+ export const isProjectSchemaJSONV3_45_0 = createVersionPredicate('3.45.0');
127
+ export const isLatestProjectSchemaJSON = createVersionPredicate('3.45.0');
126
128
  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, isProjectSchemaJSONV3_42_0, isProjectSchemaJSONV3_43_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, isProjectSchemaJSONV3_43_0, isProjectSchemaJSONV3_44_0, isProjectSchemaJSONV4_0_0, isLatestProjectSchemaJSON } from './index';
5
5
 
6
6
  // eslint-disable-next-line complexity
7
7
  export async function migrateToLatestProjectSchema(context, projectSchema) {
@@ -164,6 +164,9 @@ export async function migrateToLatestProjectSchema(context, projectSchema) {
164
164
  if (isProjectSchemaJSONV3_43_0(projectSchema)) {
165
165
  projectSchema = await migrateTo['v3.44.0'](context, projectSchema);
166
166
  }
167
+ if (isProjectSchemaJSONV3_44_0(projectSchema)) {
168
+ projectSchema = await migrateTo['v3.45.0'](context, projectSchema);
169
+ }
167
170
  if (isProjectSchemaJSONV4_0_0(projectSchema)) {
168
171
  throw new Error('You are using an unreleased schema version. Migration is not possible');
169
172
  }
@@ -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.44.0';
2
+ export const CURRENT_SCHEMA_VERSION = '3.45.0';
3
3
  export { default as anyProjectSchema } from './project-schema.json';
4
- export { default as latestSchemaJson } from './project-schema/v3.44.0.json';
4
+ export { default as latestSchemaJson } from './project-schema/v3.45.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';
@@ -67,5 +67,6 @@ 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
68
  import projectSchemaV3_43_0 from './project-schema/v3.43.0.json';
69
69
  import projectSchemaV3_44_0 from './project-schema/v3.44.0.json';
70
+ import projectSchemaV3_45_0 from './project-schema/v3.45.0.json';
70
71
  import projectSchemaV4_0_0 from './project-schema/v4.0.0.json';
71
- 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, projectSchemaV3_44_0, projectSchemaV4_0_0];
72
+ 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, projectSchemaV3_44_0, projectSchemaV3_45_0, projectSchemaV4_0_0];
@@ -1,7 +1,7 @@
1
1
  // This file is generated by "pnpm json2ts"
2
- export const CURRENT_SCHEMA_VERSION = '3.44.0';
2
+ export const CURRENT_SCHEMA_VERSION = '3.45.0';
3
3
  export {default as anyProjectSchema} from './project-schema.json';
4
- export {default as latestSchemaJson} from './project-schema/v3.44.0.json';
4
+ export {default as latestSchemaJson} from './project-schema/v3.45.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';
@@ -67,6 +67,7 @@ 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
68
  import projectSchemaV3_43_0 from './project-schema/v3.43.0.json';
69
69
  import projectSchemaV3_44_0 from './project-schema/v3.44.0.json';
70
+ import projectSchemaV3_45_0 from './project-schema/v3.45.0.json';
70
71
  import projectSchemaV4_0_0 from './project-schema/v4.0.0.json';
71
72
  export const allProjectSchemas = [
72
73
  metaSchemaV1_0_0,
@@ -134,5 +135,6 @@ export const allProjectSchemas = [
134
135
  projectSchemaV3_42_0,
135
136
  projectSchemaV3_43_0,
136
137
  projectSchemaV3_44_0,
138
+ projectSchemaV3_45_0,
137
139
  projectSchemaV4_0_0
138
140
  ];
@@ -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.44.0#",
3
+ "$id": "https://schema.takeshape.io/project-schema/v3.45.0#",
4
4
  "title": "Project Schema JSON",
5
5
  "definitions": {
6
6
  "schemaArray": {
@@ -1042,6 +1042,9 @@
1042
1042
  {
1043
1043
  "$ref": "#/definitions/salsifyResolver"
1044
1044
  },
1045
+ {
1046
+ "$ref": "#/definitions/functionResolver"
1047
+ },
1045
1048
  {
1046
1049
  "$ref": "#/definitions/aiGenerateTextResolver"
1047
1050
  },
@@ -1131,6 +1134,17 @@
1131
1134
  "type": "object",
1132
1135
  "additionalProperties": true
1133
1136
  },
1137
+ "value": {
1138
+ "description": "Optional value to return from the noop resolver.",
1139
+ "type": [
1140
+ "number",
1141
+ "string",
1142
+ "boolean",
1143
+ "object",
1144
+ "array",
1145
+ "null"
1146
+ ]
1147
+ },
1134
1148
  "args": {
1135
1149
  "description": "Mapping and serialization configuration for args.",
1136
1150
  "$ref": "#/definitions/parameterConfigForJson"
@@ -1151,6 +1165,54 @@
1151
1165
  ],
1152
1166
  "additionalProperties": false
1153
1167
  },
1168
+ "functionResolver": {
1169
+ "title": "FunctionResolver",
1170
+ "type": "object",
1171
+ "properties": {
1172
+ "if": {
1173
+ "type": "string"
1174
+ },
1175
+ "id": {
1176
+ "type": "string",
1177
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1178
+ },
1179
+ "name": {
1180
+ "title": "FunctionResolverName",
1181
+ "type": "string",
1182
+ "description": "Name of the resolver function.",
1183
+ "enum": [
1184
+ "function:run"
1185
+ ]
1186
+ },
1187
+ "options": {
1188
+ "title": "FunctionResolverOptions",
1189
+ "type": "object",
1190
+ "additionalProperties": true
1191
+ },
1192
+ "args": {
1193
+ "description": "Mapping and serialization configuration for args.",
1194
+ "$ref": "#/definitions/parameterConfigForJson"
1195
+ },
1196
+ "results": {
1197
+ "description": "Mapping configuration for the results of this resolver step.",
1198
+ "$ref": "#/definitions/parameterConfigForJson"
1199
+ },
1200
+ "argsMapping": {
1201
+ "$ref": "#/definitions/argsMapping"
1202
+ },
1203
+ "resultsMapping": {
1204
+ "$ref": "#/definitions/resultsMapping"
1205
+ },
1206
+ "javascript": {
1207
+ "title": "FunctionResolverJavascript",
1208
+ "type": "string"
1209
+ }
1210
+ },
1211
+ "required": [
1212
+ "name"
1213
+ ],
1214
+ "additionalProperties": false
1215
+ },
1154
1216
  "delegateResolver": {
1155
1217
  "title": "DelegateResolver",
1156
1218
  "type": "object",
@@ -3356,7 +3418,7 @@
3356
3418
  "schemaVersion": {
3357
3419
  "type": "string",
3358
3420
  "enum": [
3359
- "3.44.0"
3421
+ "3.45.0"
3360
3422
  ],
3361
3423
  "description": "The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format."
3362
3424
  },
@@ -3423,4 +3485,4 @@
3423
3485
  "mutations",
3424
3486
  "workflows"
3425
3487
  ]
3426
- }
3488
+ }