@takeshape/schema 11.87.0 → 11.88.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 (84) hide show
  1. package/dist/builtin-schema.js +29 -68
  2. package/dist/create-input-schema.js +13 -5
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +1 -0
  5. package/dist/migration/index.d.ts +1 -0
  6. package/dist/migration/index.js +3 -1
  7. package/dist/migration/to/v3.55.0.d.ts +4 -0
  8. package/dist/migration/to/v3.55.0.js +10 -0
  9. package/dist/project-schema/index.d.ts +4 -1
  10. package/dist/project-schema/index.js +2 -1
  11. package/dist/project-schema/latest.d.ts +2 -2
  12. package/dist/project-schema/migrate.js +4 -1
  13. package/dist/project-schema/v3.55.0.d.ts +2344 -0
  14. package/dist/project-schema/v3.55.0.js +7 -0
  15. package/dist/refs.js +12 -6
  16. package/dist/resolvers/takeshape/assets/asset-image-meta.d.ts +77 -0
  17. package/dist/resolvers/takeshape/assets/asset-image-meta.js +95 -0
  18. package/dist/resolvers/takeshape/assets/asset-image-params.d.ts +899 -0
  19. package/dist/resolvers/takeshape/assets/asset-image-params.js +723 -0
  20. package/dist/resolvers/takeshape/assets/asset-image.d.ts +15 -0
  21. package/dist/resolvers/takeshape/assets/asset-image.js +12 -0
  22. package/dist/resolvers/takeshape/assets/asset.d.ts +123 -0
  23. package/dist/resolvers/takeshape/assets/asset.js +105 -0
  24. package/dist/resolvers/takeshape/assets/constants.d.ts +11 -0
  25. package/dist/resolvers/takeshape/assets/constants.js +11 -0
  26. package/dist/runtime-schema.js +2 -1
  27. package/dist/schema-util.js +9 -2
  28. package/dist/schemas/index.d.ts +2 -2
  29. package/dist/schemas/index.js +4 -2
  30. package/dist/schemas/project-schema/latest.json +6 -3
  31. package/dist/schemas/project-schema/v3.55.0.json +3515 -0
  32. package/dist/schemas/project-schema.json +3 -0
  33. package/examples/latest/agent-schema.json +1 -1
  34. package/examples/latest/all-fields-shapes-inline.json +1 -1
  35. package/examples/latest/all-fields-shapes.json +1 -1
  36. package/examples/latest/betzino.json +1 -1
  37. package/examples/latest/blog-schema.json +1 -1
  38. package/examples/latest/brewery-schema.json +1 -1
  39. package/examples/latest/clear-cache-schema.json +1 -1
  40. package/examples/latest/complex-project-schema.json +1 -1
  41. package/examples/latest/complex-schema.json +1 -1
  42. package/examples/latest/edit-schema.json +1 -1
  43. package/examples/latest/fabric-ecommerce.json +1 -1
  44. package/examples/latest/frank-and-fred-schema.json +1 -1
  45. package/examples/latest/klirr-schema.json +1 -1
  46. package/examples/latest/layers/rick-and-morty-layer.json +1 -1
  47. package/examples/latest/layers/shopify-layer-2023-01.json +1 -1
  48. package/examples/latest/layers/shopify-storefront-2023-04.json +1 -1
  49. package/examples/latest/layers/wordpress-2024-01.json +1 -1
  50. package/examples/latest/massive-schema.json +1 -1
  51. package/examples/latest/mill-components-schema.json +1 -1
  52. package/examples/latest/nested-shape-arrays.json +1 -1
  53. package/examples/latest/one-earth.json +1 -1
  54. package/examples/latest/pet-oneof-array.json +1 -1
  55. package/examples/latest/post-schema.json +1 -1
  56. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  57. package/examples/latest/rag-example.json +1 -1
  58. package/examples/latest/real-world-schema.json +1 -1
  59. package/examples/latest/recursive-repeater-schema.json +1 -1
  60. package/examples/latest/recursive-schema.json +1 -1
  61. package/examples/latest/rick-and-morty-ast.json +1 -1
  62. package/examples/latest/rick-and-morty-graphql.json +1 -1
  63. package/examples/latest/rick-and-morty-rest.json +1 -1
  64. package/examples/latest/rick-and-morty-user-schema.json +1 -1
  65. package/examples/latest/rick-and-morty-with-indexing.json +1 -1
  66. package/examples/latest/schema-where-filter.json +1 -1
  67. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  68. package/examples/latest/schema-with-rick-and-morty.json +1 -1
  69. package/examples/latest/shape-books-v3_2_0.json +1 -1
  70. package/examples/latest/shape-books.json +1 -1
  71. package/examples/latest/shape-editor-schema-edited.json +1 -1
  72. package/examples/latest/shape-editor-schema-initial.json +1 -1
  73. package/examples/latest/shapedb-crud-every-prop-type.json +1 -1
  74. package/examples/latest/shopify-lookbook.json +1 -1
  75. package/examples/latest/shopify-product-2022-07.json +1 -1
  76. package/examples/latest/shopify-product-2023-04.json +1 -1
  77. package/examples/latest/shopify-store-with-widget.json +1 -1
  78. package/examples/latest/stripe-product-runtime-schema.json +1 -1
  79. package/examples/latest/stripe-starter-resolved.json +1 -1
  80. package/examples/latest/user-schema-no-required.json +1 -1
  81. package/examples/latest/user-schema-with-defaults.json +1 -1
  82. package/examples/latest/valvoline-ai-demo.json +1 -1
  83. package/examples/latest/vector-search-schema.json +1 -1
  84. package/package.json +5 -5
@@ -1,6 +1,11 @@
1
1
  import { embeddingSearchArgsSchema } from "./resolvers/ai/embedding-search.js";
2
+ import { schema as assetSchema } from "./resolvers/takeshape/assets/asset.js";
3
+ import { schema as assetImageSchema } from "./resolvers/takeshape/assets/asset-image.js";
4
+ import { schema as assetImageMetaSchema } from "./resolvers/takeshape/assets/asset-image-meta.js";
5
+ import { schema as assetImageParamsSchema } from "./resolvers/takeshape/assets/asset-image-params.js";
6
+ import { ASSET_IMAGE_META_SHAPE_ID, ASSET_IMAGE_META_SHAPE_NAME, ASSET_IMAGE_PARAMS_SHAPE_ID, ASSET_IMAGE_PARAMS_SHAPE_NAME, ASSET_IMAGE_SHAPE_ID, ASSET_IMAGE_SHAPE_NAME, ASSET_SHAPE_ID, ASSET_SHAPE_NAME } from "./resolvers/takeshape/assets/constants.js";
2
7
  export function isAsset(content) {
3
- return content._contentTypeId === 'ASSET' || content._shapeId === 'ASSET';
8
+ return content._contentTypeId === ASSET_SHAPE_ID || content._shapeId === ASSET_SHAPE_ID;
4
9
  }
5
10
  const ASSET_PATH = 'Hk6FQuz5';
6
11
  export function getAssetS3Path(content) {
@@ -127,77 +132,33 @@ export const builtInShapes = {
127
132
  required: ['id', 'email', 'fullName']
128
133
  }
129
134
  },
130
- Asset: {
131
- id: 'ASSET',
132
- name: 'Asset',
135
+ [ASSET_SHAPE_NAME]: {
136
+ id: ASSET_SHAPE_ID,
137
+ name: ASSET_SHAPE_NAME,
133
138
  title: 'Asset',
134
139
  model: {
135
140
  type: 'multiple'
136
141
  },
137
- schema: {
138
- type: 'object',
139
- properties: {
140
- title: {
141
- type: 'string',
142
- title: 'Title',
143
- '@mapping': 'shapedb:Asset.By5tQOMc',
144
- '@l10n': true
145
- },
146
- description: {
147
- type: 'string',
148
- title: 'Description',
149
- '@mapping': 'shapedb:Asset.B1Zsra3fx',
150
- '@l10n': true
151
- },
152
- filename: {
153
- type: 'string',
154
- title: 'Filename',
155
- '@l10n': false,
156
- minLength: 1,
157
- '@mapping': 'shapedb:Asset.H1oYQOM9'
158
- },
159
- caption: {
160
- type: 'object',
161
- title: 'Caption',
162
- '@mapping': 'shapedb:Asset.SyWVsd98x',
163
- '@tag': 'draftjs',
164
- '@l10n': true
165
- },
166
- credit: {
167
- type: 'object',
168
- title: 'Credit',
169
- '@mapping': 'shapedb:Asset.Skn_i_5Ll',
170
- '@tag': 'draftjs',
171
- '@l10n': true
172
- },
173
- path: {
174
- type: 'string',
175
- title: 'Path',
176
- '@l10n': false,
177
- minLength: 1,
178
- '@mapping': 'shapedb:Asset.Hk6FQuz5'
179
- },
180
- mimeType: {
181
- type: 'string',
182
- title: 'MIME type',
183
- '@l10n': false,
184
- '@mapping': 'shapedb:Asset.SyCYX_Gq'
185
- },
186
- sourceUrl: {
187
- type: 'string',
188
- title: 'Source URL',
189
- '@l10n': false,
190
- '@mapping': 'shapedb:Asset.SJXSidnXE'
191
- },
192
- uploadStatus: {
193
- type: 'string',
194
- title: 'Upload status',
195
- '@l10n': false,
196
- '@mapping': 'shapedb:Asset.ByeAYXdG9'
197
- }
198
- },
199
- required: ['filename', 'path']
200
- }
142
+ schema: assetSchema
143
+ },
144
+ [ASSET_IMAGE_PARAMS_SHAPE_NAME]: {
145
+ id: ASSET_IMAGE_PARAMS_SHAPE_ID,
146
+ name: ASSET_IMAGE_PARAMS_SHAPE_NAME,
147
+ title: 'Asset Image Params',
148
+ type: 'input',
149
+ schema: assetImageParamsSchema
150
+ },
151
+ [ASSET_IMAGE_SHAPE_NAME]: {
152
+ id: ASSET_IMAGE_SHAPE_ID,
153
+ name: ASSET_IMAGE_SHAPE_NAME,
154
+ title: 'Asset Image',
155
+ schema: assetImageSchema
156
+ },
157
+ [ASSET_IMAGE_META_SHAPE_NAME]: {
158
+ id: ASSET_IMAGE_META_SHAPE_ID,
159
+ name: ASSET_IMAGE_META_SHAPE_NAME,
160
+ title: 'Asset Image Meta',
161
+ schema: assetImageMetaSchema
201
162
  },
202
163
  TSStaticSite: {
203
164
  id: 'SITE',
@@ -34,14 +34,22 @@ export function createInputSchema(schema, options = {}) {
34
34
  parent.type !== undefined) {
35
35
  return REMOVE;
36
36
  }
37
- if (key === 'properties' && isIterableObject(value) && isIterableObject(parent) && parent.type === 'object') {
38
- const newProperties = {};
39
- for (const [key, prop] of Object.entries(value)) {
37
+ if (isIterableObject(value) && value.type === 'object' && isIterableObject(value.properties)) {
38
+ const properties = {};
39
+ for (const [key, prop] of Object.entries(value.properties)) {
40
40
  if (isIterableObject(prop) && (!prop['@resolver'] || prop['@input'])) {
41
- newProperties[key] = clone(prop, key, value);
41
+ properties[key] = clone(prop, key, value);
42
42
  }
43
43
  }
44
- return newProperties;
44
+ let required;
45
+ if (!options.isUpdate && Array.isArray(value.required)) {
46
+ required = value.required.filter((key) => Boolean(properties[key]));
47
+ }
48
+ return {
49
+ ...value,
50
+ properties,
51
+ required
52
+ };
45
53
  }
46
54
  if (isIterableObject(value) && isIterableObject(value['@input'])) {
47
55
  const { '@input': input, '@l10n': l10n, '@syncLocaleStructure': syncLocaleStructure, '@mapping': mapping, title, ...output } = value;
package/dist/index.d.ts CHANGED
@@ -18,6 +18,7 @@ export * from './project-schema/index.ts';
18
18
  export * from './project-schema/migrate.ts';
19
19
  export * from './refs.ts';
20
20
  export * from './relationships.ts';
21
+ export * from './resolvers/takeshape/assets/constants.ts';
21
22
  export * from './runtime-schema.ts';
22
23
  export * from './scalars.ts';
23
24
  export * from './schema-transform.ts';
package/dist/index.js CHANGED
@@ -16,6 +16,7 @@ export * from "./project-schema/index.js";
16
16
  export * from "./project-schema/migrate.js";
17
17
  export * from "./refs.js";
18
18
  export * from "./relationships.js";
19
+ export * from "./resolvers/takeshape/assets/constants.js";
19
20
  export * from "./runtime-schema.js";
20
21
  export * from "./scalars.js";
21
22
  export * from "./schema-transform.js";
@@ -61,6 +61,7 @@ export declare const migrateTo: {
61
61
  'v3.52.0': import("./types.ts").MigrateFunction<import("../index.ts").ProjectSchemaJSONV3_51_0, import("../index.ts").ProjectSchemaJSONV3_52_0>;
62
62
  'v3.53.0': import("./types.ts").MigrateFunction<import("../index.ts").ProjectSchemaJSONV3_52_0, import("../index.ts").ProjectSchemaJSONV3_53_0>;
63
63
  'v3.54.0': import("./types.ts").MigrateFunction<import("../index.ts").ProjectSchemaJSONV3_53_0, import("../index.ts").ProjectSchemaJSONV3_54_0>;
64
+ 'v3.55.0': import("./types.ts").MigrateFunction<import("../index.ts").ProjectSchemaJSONV3_54_0, import("../index.ts").ProjectSchemaJSONV3_55_0>;
64
65
  };
65
66
  export * from './utils.ts';
66
67
  export declare const listTypePrefix = "PaginatedList";
@@ -60,6 +60,7 @@ import migrateToV3_51_0 from "./to/v3.51.0.js";
60
60
  import migrateToV3_52_0 from "./to/v3.52.0.js";
61
61
  import migrateToV3_53_0 from "./to/v3.53.0.js";
62
62
  import migrateToV3_54_0 from "./to/v3.54.0.js";
63
+ import migrateToV3_55_0 from "./to/v3.55.0.js";
63
64
  export const migrateTo = {
64
65
  'v3.0.0': migrateToV3_0_0,
65
66
  'v3.1.0': migrateToV3_1_0,
@@ -122,7 +123,8 @@ export const migrateTo = {
122
123
  'v3.51.0': migrateToV3_51_0,
123
124
  'v3.52.0': migrateToV3_52_0,
124
125
  'v3.53.0': migrateToV3_53_0,
125
- 'v3.54.0': migrateToV3_54_0
126
+ 'v3.54.0': migrateToV3_54_0,
127
+ 'v3.55.0': migrateToV3_55_0
126
128
  };
127
129
  export * from "./utils.js";
128
130
  export const listTypePrefix = 'PaginatedList';
@@ -0,0 +1,4 @@
1
+ import type { ProjectSchemaJSONV3_54_0, ProjectSchemaJSONV3_55_0 } from '../../project-schema/index.ts';
2
+ import type { MigrateFunction } from '../types.ts';
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_54_0, ProjectSchemaJSONV3_55_0>;
4
+ export default migrate;
@@ -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.55.0'
8
+ };
9
+ };
10
+ export default migrate;
@@ -62,6 +62,7 @@ export type * from './v3.51.0.ts';
62
62
  export type * from './v3.52.0.ts';
63
63
  export type * from './v3.53.0.ts';
64
64
  export type * from './v3.54.0.ts';
65
+ export type * from './v3.55.0.ts';
65
66
  export type * from './v4.0.0.ts';
66
67
  import { ProjectSchemaJSONV1_0_0 } from './v1.0.0.ts';
67
68
  import { ProjectSchemaJSONV3_0_0 } from './v3.0.0.ts';
@@ -126,9 +127,10 @@ import { ProjectSchemaJSONV3_51_0 } from './v3.51.0.ts';
126
127
  import { ProjectSchemaJSONV3_52_0 } from './v3.52.0.ts';
127
128
  import { ProjectSchemaJSONV3_53_0 } from './v3.53.0.ts';
128
129
  import { ProjectSchemaJSONV3_54_0 } from './v3.54.0.ts';
130
+ import { ProjectSchemaJSONV3_55_0 } from './v3.55.0.ts';
129
131
  import { ProjectSchemaJSONV4_0_0 } from './v4.0.0.ts';
130
132
  import { ProjectSchemaJSON } from './latest.ts';
131
- export type AnyProjectSchemaJSON = ProjectSchemaJSONV1_0_0 | ProjectSchemaJSONV3_0_0 | ProjectSchemaJSONV3_1_0 | ProjectSchemaJSONV3_2_0 | ProjectSchemaJSONV3_3_0 | ProjectSchemaJSONV3_4_0 | ProjectSchemaJSONV3_5_0 | ProjectSchemaJSONV3_5_1 | ProjectSchemaJSONV3_6_0 | ProjectSchemaJSONV3_7_0 | ProjectSchemaJSONV3_8_0 | ProjectSchemaJSONV3_9_0 | ProjectSchemaJSONV3_10_0 | ProjectSchemaJSONV3_11_0 | ProjectSchemaJSONV3_12_0 | ProjectSchemaJSONV3_12_1 | ProjectSchemaJSONV3_12_2 | ProjectSchemaJSONV3_12_3 | ProjectSchemaJSONV3_13_0 | ProjectSchemaJSONV3_14_0 | ProjectSchemaJSONV3_15_0 | ProjectSchemaJSONV3_16_0 | ProjectSchemaJSONV3_17_0 | ProjectSchemaJSONV3_17_1 | ProjectSchemaJSONV3_18_0 | ProjectSchemaJSONV3_18_1 | ProjectSchemaJSONV3_18_2 | ProjectSchemaJSONV3_19_0 | ProjectSchemaJSONV3_20_0 | ProjectSchemaJSONV3_21_0 | ProjectSchemaJSONV3_22_0 | ProjectSchemaJSONV3_23_0 | ProjectSchemaJSONV3_24_0 | ProjectSchemaJSONV3_25_0 | ProjectSchemaJSONV3_26_0 | ProjectSchemaJSONV3_27_0 | ProjectSchemaJSONV3_28_0 | ProjectSchemaJSONV3_29_0 | ProjectSchemaJSONV3_30_0 | ProjectSchemaJSONV3_31_0 | ProjectSchemaJSONV3_32_0 | ProjectSchemaJSONV3_33_0 | ProjectSchemaJSONV3_34_0 | ProjectSchemaJSONV3_35_0 | ProjectSchemaJSONV3_36_0 | ProjectSchemaJSONV3_37_0 | ProjectSchemaJSONV3_38_0 | ProjectSchemaJSONV3_39_0 | ProjectSchemaJSONV3_40_0 | ProjectSchemaJSONV3_41_0 | ProjectSchemaJSONV3_42_0 | ProjectSchemaJSONV3_43_0 | ProjectSchemaJSONV3_44_0 | ProjectSchemaJSONV3_45_0 | ProjectSchemaJSONV3_46_0 | ProjectSchemaJSONV3_47_0 | ProjectSchemaJSONV3_48_0 | ProjectSchemaJSONV3_49_0 | ProjectSchemaJSONV3_50_0 | ProjectSchemaJSONV3_51_0 | ProjectSchemaJSONV3_52_0 | ProjectSchemaJSONV3_53_0 | ProjectSchemaJSONV3_54_0 | ProjectSchemaJSONV4_0_0 | ProjectSchemaJSON;
133
+ export type AnyProjectSchemaJSON = ProjectSchemaJSONV1_0_0 | ProjectSchemaJSONV3_0_0 | ProjectSchemaJSONV3_1_0 | ProjectSchemaJSONV3_2_0 | ProjectSchemaJSONV3_3_0 | ProjectSchemaJSONV3_4_0 | ProjectSchemaJSONV3_5_0 | ProjectSchemaJSONV3_5_1 | ProjectSchemaJSONV3_6_0 | ProjectSchemaJSONV3_7_0 | ProjectSchemaJSONV3_8_0 | ProjectSchemaJSONV3_9_0 | ProjectSchemaJSONV3_10_0 | ProjectSchemaJSONV3_11_0 | ProjectSchemaJSONV3_12_0 | ProjectSchemaJSONV3_12_1 | ProjectSchemaJSONV3_12_2 | ProjectSchemaJSONV3_12_3 | ProjectSchemaJSONV3_13_0 | ProjectSchemaJSONV3_14_0 | ProjectSchemaJSONV3_15_0 | ProjectSchemaJSONV3_16_0 | ProjectSchemaJSONV3_17_0 | ProjectSchemaJSONV3_17_1 | ProjectSchemaJSONV3_18_0 | ProjectSchemaJSONV3_18_1 | ProjectSchemaJSONV3_18_2 | ProjectSchemaJSONV3_19_0 | ProjectSchemaJSONV3_20_0 | ProjectSchemaJSONV3_21_0 | ProjectSchemaJSONV3_22_0 | ProjectSchemaJSONV3_23_0 | ProjectSchemaJSONV3_24_0 | ProjectSchemaJSONV3_25_0 | ProjectSchemaJSONV3_26_0 | ProjectSchemaJSONV3_27_0 | ProjectSchemaJSONV3_28_0 | ProjectSchemaJSONV3_29_0 | ProjectSchemaJSONV3_30_0 | ProjectSchemaJSONV3_31_0 | ProjectSchemaJSONV3_32_0 | ProjectSchemaJSONV3_33_0 | ProjectSchemaJSONV3_34_0 | ProjectSchemaJSONV3_35_0 | ProjectSchemaJSONV3_36_0 | ProjectSchemaJSONV3_37_0 | ProjectSchemaJSONV3_38_0 | ProjectSchemaJSONV3_39_0 | ProjectSchemaJSONV3_40_0 | ProjectSchemaJSONV3_41_0 | ProjectSchemaJSONV3_42_0 | ProjectSchemaJSONV3_43_0 | ProjectSchemaJSONV3_44_0 | ProjectSchemaJSONV3_45_0 | ProjectSchemaJSONV3_46_0 | ProjectSchemaJSONV3_47_0 | ProjectSchemaJSONV3_48_0 | ProjectSchemaJSONV3_49_0 | ProjectSchemaJSONV3_50_0 | ProjectSchemaJSONV3_51_0 | ProjectSchemaJSONV3_52_0 | ProjectSchemaJSONV3_53_0 | ProjectSchemaJSONV3_54_0 | ProjectSchemaJSONV3_55_0 | ProjectSchemaJSONV4_0_0 | ProjectSchemaJSON;
132
134
  export declare const isProjectSchemaJSONV1_0_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV1_0_0;
133
135
  export declare const isProjectSchemaJSONV3_0_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_0_0;
134
136
  export declare const isProjectSchemaJSONV3_1_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_1_0;
@@ -192,5 +194,6 @@ export declare const isProjectSchemaJSONV3_51_0: (projectSchema: AnyProjectSchem
192
194
  export declare const isProjectSchemaJSONV3_52_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_52_0;
193
195
  export declare const isProjectSchemaJSONV3_53_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_53_0;
194
196
  export declare const isProjectSchemaJSONV3_54_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_54_0;
197
+ export declare const isProjectSchemaJSONV3_55_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_55_0;
195
198
  export declare const isLatestProjectSchemaJSON: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSON;
196
199
  export declare const isProjectSchemaJSONV4_0_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV4_0_0;
@@ -74,5 +74,6 @@ export const isProjectSchemaJSONV3_51_0 = createVersionPredicate('3.51.0');
74
74
  export const isProjectSchemaJSONV3_52_0 = createVersionPredicate('3.52.0');
75
75
  export const isProjectSchemaJSONV3_53_0 = createVersionPredicate('3.53.0');
76
76
  export const isProjectSchemaJSONV3_54_0 = createVersionPredicate('3.54.0');
77
- export const isLatestProjectSchemaJSON = createVersionPredicate('3.54.0');
77
+ export const isProjectSchemaJSONV3_55_0 = createVersionPredicate('3.55.0');
78
+ export const isLatestProjectSchemaJSON = createVersionPredicate('3.55.0');
78
79
  export const isProjectSchemaJSONV4_0_0 = createVersionPredicate('4.0.0');
@@ -130,7 +130,7 @@ export type DelegateResolverName = 'delegate';
130
130
  /**
131
131
  * Name of the resolver function.
132
132
  */
133
- export type TakeshapeResolverName = 'takeshape:get' | 'takeshape:getUser' | 'takeshape:search' | 'takeshape:vectorSearch' | 'takeshape:queryApiIndex';
133
+ export type TakeshapeResolverName = 'takeshape:get' | 'takeshape:getUser' | 'takeshape:search' | 'takeshape:vectorSearch' | 'takeshape:queryApiIndex' | 'takeshape:assetUrl' | 'takeshape:assetImage' | 'takeshape:assetImageMeta';
134
134
  /**
135
135
  * Name of the resolver function.
136
136
  */
@@ -611,7 +611,7 @@ export interface ProjectSchemaJSON {
611
611
  /**
612
612
  * The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format.
613
613
  */
614
- schemaVersion: '3.54.0';
614
+ schemaVersion: '3.55.0';
615
615
  /**
616
616
  * The ID of the TakeShape project this schema belongs to.
617
617
  */
@@ -1,5 +1,5 @@
1
1
  import { migrateTo } from "../migration/index.js";
2
- 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, isProjectSchemaJSONV3_45_0, isProjectSchemaJSONV3_46_0, isProjectSchemaJSONV3_47_0, isProjectSchemaJSONV3_48_0, isProjectSchemaJSONV3_49_0, isProjectSchemaJSONV3_50_0, isProjectSchemaJSONV3_51_0, isProjectSchemaJSONV3_52_0, isProjectSchemaJSONV3_53_0, isProjectSchemaJSONV4_0_0, isLatestProjectSchemaJSON } from "./index.js";
2
+ 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, isProjectSchemaJSONV3_45_0, isProjectSchemaJSONV3_46_0, isProjectSchemaJSONV3_47_0, isProjectSchemaJSONV3_48_0, isProjectSchemaJSONV3_49_0, isProjectSchemaJSONV3_50_0, isProjectSchemaJSONV3_51_0, isProjectSchemaJSONV3_52_0, isProjectSchemaJSONV3_53_0, isProjectSchemaJSONV3_54_0, isProjectSchemaJSONV4_0_0, isLatestProjectSchemaJSON } from "./index.js";
3
3
  export async function migrateToLatestProjectSchema(context, projectSchema) {
4
4
  if (isLatestProjectSchemaJSON(projectSchema)) {
5
5
  return projectSchema;
@@ -190,6 +190,9 @@ export async function migrateToLatestProjectSchema(context, projectSchema) {
190
190
  if (isProjectSchemaJSONV3_53_0(projectSchema)) {
191
191
  projectSchema = await migrateTo['v3.54.0'](context, projectSchema);
192
192
  }
193
+ if (isProjectSchemaJSONV3_54_0(projectSchema)) {
194
+ projectSchema = await migrateTo['v3.55.0'](context, projectSchema);
195
+ }
193
196
  if (isProjectSchemaJSONV4_0_0(projectSchema)) {
194
197
  throw new Error('You are using an unreleased schema version. Migration is not possible');
195
198
  }