@takeshape/schema 11.110.0 → 11.113.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.
- package/dist/agents.js +4 -1
- package/dist/auth-schemas.d.ts +3 -0
- package/dist/auth-utils.d.ts +5 -0
- package/dist/auth-utils.js +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/migration/index.d.ts +1 -0
- package/dist/migration/index.js +3 -1
- package/dist/migration/to/v3.59.0.d.ts +4 -0
- package/dist/migration/to/v3.59.0.js +10 -0
- package/dist/project-schema/index.d.ts +4 -1
- package/dist/project-schema/index.js +2 -1
- package/dist/project-schema/latest.d.ts +13 -1
- package/dist/project-schema/migrate.js +4 -1
- package/dist/project-schema/v3.59.0.d.ts +2613 -0
- package/dist/project-schema/v3.59.0.js +7 -0
- package/dist/resolvers/ai/agent-chat-response.d.ts +18 -1
- package/dist/resolvers/ai/agent-message-payload.d.ts +12 -2
- package/dist/resolvers/ai/agent-message-payload.js +9 -1
- package/dist/resolvers/ai/agent-session-payload.d.ts +15 -1
- package/dist/resolvers/ai/agent-session-payload.js +18 -1
- package/dist/resolvers/ai/create-agent-session-response.d.ts +17 -0
- package/dist/resolvers/ai/get-agent-message-response.d.ts +19 -1
- package/dist/resolvers/ai/get-agent-message-response.js +1 -1
- package/dist/resolvers/ai/inspect-agent-response.d.ts +14 -0
- package/dist/resolvers/ai/send-agent-message-args.d.ts +9 -0
- package/dist/resolvers/ai/send-agent-message-args.js +4 -0
- package/dist/resolvers/ai/send-agent-message-response.d.ts +15 -1
- package/dist/schemas/auth-schemas.json +9 -0
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.js +4 -2
- package/dist/schemas/project-schema/latest.json +18 -2
- package/dist/schemas/project-schema/v3.59.0.json +4831 -0
- package/dist/schemas/project-schema.json +3 -0
- package/dist/util/expressions.js +0 -3
- package/dist/util/merge.js +0 -2
- package/examples/latest/agent-schema.json +1 -1
- package/examples/latest/all-fields-shapes-inline.json +1 -1
- package/examples/latest/all-fields-shapes.json +1 -1
- package/examples/latest/betzino.json +1 -1
- package/examples/latest/blog-schema.json +1 -1
- package/examples/latest/brewery-schema.json +1 -1
- package/examples/latest/clear-cache-schema.json +1 -1
- package/examples/latest/complex-project-schema.json +1 -1
- package/examples/latest/complex-schema.json +1 -1
- package/examples/latest/edit-schema.json +1 -1
- package/examples/latest/fabric-ecommerce.json +1 -1
- package/examples/latest/frank-and-fred-schema.json +1 -1
- package/examples/latest/klirr-schema.json +1 -1
- package/examples/latest/layers/rick-and-morty-layer.json +1 -1
- package/examples/latest/layers/shopify-layer-2023-01.json +1 -1
- package/examples/latest/layers/shopify-storefront-2023-04.json +1 -1
- package/examples/latest/layers/wordpress-2024-01.json +1 -1
- package/examples/latest/massive-schema.json +1 -1
- package/examples/latest/mill-components-schema.json +1 -1
- package/examples/latest/nested-shape-arrays.json +1 -1
- package/examples/latest/one-earth.json +1 -1
- package/examples/latest/pet-oneof-array.json +1 -1
- package/examples/latest/post-schema.json +1 -1
- package/examples/latest/pruned-shopify-product-schema.json +1 -1
- package/examples/latest/rag-example.json +1 -1
- package/examples/latest/real-world-schema.json +1 -1
- package/examples/latest/recursive-repeater-schema.json +1 -1
- package/examples/latest/recursive-schema.json +1 -1
- package/examples/latest/rick-and-morty-ast.json +1 -1
- package/examples/latest/rick-and-morty-graphql.json +1 -1
- package/examples/latest/rick-and-morty-rest.json +1 -1
- package/examples/latest/rick-and-morty-user-schema.json +1 -1
- package/examples/latest/rick-and-morty-with-indexing.json +1 -1
- package/examples/latest/schema-where-filter.json +1 -1
- package/examples/latest/schema-with-repeater-draftjs.json +1 -1
- package/examples/latest/schema-with-rick-and-morty.json +1 -1
- package/examples/latest/shape-books-v3_2_0.json +1 -1
- package/examples/latest/shape-books.json +1 -1
- package/examples/latest/shape-editor-schema-edited.json +1 -1
- package/examples/latest/shape-editor-schema-initial.json +1 -1
- package/examples/latest/shapedb-crud-every-prop-type.json +1 -1
- package/examples/latest/shopify-lookbook.json +1 -1
- package/examples/latest/shopify-product-2022-07.json +1 -1
- package/examples/latest/shopify-product-2023-04.json +1 -1
- package/examples/latest/shopify-store-with-widget.json +1 -1
- package/examples/latest/stripe-product-runtime-schema.json +1 -1
- package/examples/latest/stripe-starter-resolved.json +1 -1
- package/examples/latest/user-schema-no-required.json +1 -1
- package/examples/latest/user-schema-with-defaults.json +1 -1
- package/examples/latest/valvoline-ai-demo.json +1 -1
- package/examples/latest/vector-search-schema.json +1 -1
- package/package.json +6 -6
package/dist/util/expressions.js
CHANGED
|
@@ -75,7 +75,6 @@ const binops = {
|
|
|
75
75
|
// return a >>> b;
|
|
76
76
|
// },
|
|
77
77
|
'+'(a, b) {
|
|
78
|
-
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
|
79
78
|
return a + b;
|
|
80
79
|
},
|
|
81
80
|
'-'(a, b) {
|
|
@@ -184,7 +183,6 @@ function evaluate(_node, context) {
|
|
|
184
183
|
return evaluateMember(node, context)?.[1];
|
|
185
184
|
case 'ThisExpression':
|
|
186
185
|
return context;
|
|
187
|
-
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
188
186
|
default:
|
|
189
187
|
return undefined;
|
|
190
188
|
}
|
|
@@ -195,7 +193,6 @@ export function parseExpression(expression) {
|
|
|
195
193
|
function validateAST(options, rootNode) {
|
|
196
194
|
const validate = (_node, parent, parentKey) => {
|
|
197
195
|
const node = _node;
|
|
198
|
-
// eslint-disable-next-line default-case
|
|
199
196
|
switch (node.type) {
|
|
200
197
|
case 'ArrayExpression':
|
|
201
198
|
return node.elements.flatMap((v) => (v ? validate(v, node, 'elements') : []));
|
package/dist/util/merge.js
CHANGED
|
@@ -135,7 +135,6 @@ function rebaseShapeProperties(toShape, fromShape, baseShape) {
|
|
|
135
135
|
? rebaseObject(omit(toShape, 'schema'), omit(baseShape, 'schema'), omit(fromShape, 'schema'))
|
|
136
136
|
: { ...toShape, ...fromShape };
|
|
137
137
|
}
|
|
138
|
-
// eslint-disable-next-line complexity
|
|
139
138
|
function attemptToMerge(base, parent, head, change) {
|
|
140
139
|
const toShape = getChangedShape(base, change);
|
|
141
140
|
const fromShape = getChangedShape(head, change);
|
|
@@ -235,7 +234,6 @@ export function mergeProjectSchemas(base, parent, head) {
|
|
|
235
234
|
(potentialConflict.op === 'update' && change.op === 'update')) {
|
|
236
235
|
if (change.section === 'shapes') {
|
|
237
236
|
const mergedValue = attemptToMerge(base, parent, head, change);
|
|
238
|
-
// eslint-disable-next-line max-depth
|
|
239
237
|
if (!mergedValue) {
|
|
240
238
|
return {
|
|
241
239
|
error: `Unable to merge ${change.path.join('.')} schemas conflict`,
|
|
@@ -52781,6 +52781,6 @@
|
|
|
52781
52781
|
}
|
|
52782
52782
|
}
|
|
52783
52783
|
},
|
|
52784
|
-
"schemaVersion": "3.
|
|
52784
|
+
"schemaVersion": "3.59.0",
|
|
52785
52785
|
"services": {}
|
|
52786
52786
|
}
|
|
@@ -10474,5 +10474,5 @@
|
|
|
10474
10474
|
}
|
|
10475
10475
|
}
|
|
10476
10476
|
},
|
|
10477
|
-
"schemaVersion": "3.
|
|
10477
|
+
"schemaVersion": "3.59.0"
|
|
10478
10478
|
}
|
|
@@ -23446,6 +23446,6 @@
|
|
|
23446
23446
|
}
|
|
23447
23447
|
}
|
|
23448
23448
|
},
|
|
23449
|
-
"schemaVersion": "3.
|
|
23449
|
+
"schemaVersion": "3.59.0",
|
|
23450
23450
|
"services": {}
|
|
23451
23451
|
}
|
|
@@ -35163,6 +35163,6 @@
|
|
|
35163
35163
|
}
|
|
35164
35164
|
}
|
|
35165
35165
|
},
|
|
35166
|
-
"schemaVersion": "3.
|
|
35166
|
+
"schemaVersion": "3.59.0",
|
|
35167
35167
|
"services": {}
|
|
35168
35168
|
}
|
|
@@ -86168,5 +86168,5 @@
|
|
|
86168
86168
|
"shape": "Shopify_WebhookSubscriptionUpdatePayload"
|
|
86169
86169
|
}
|
|
86170
86170
|
},
|
|
86171
|
-
"schemaVersion": "3.
|
|
86171
|
+
"schemaVersion": "3.59.0"
|
|
86172
86172
|
}
|
|
@@ -15937,5 +15937,5 @@
|
|
|
15937
15937
|
"shape": "ShopifyStorefront_CustomerUpdatePayload"
|
|
15938
15938
|
}
|
|
15939
15939
|
},
|
|
15940
|
-
"schemaVersion": "3.
|
|
15940
|
+
"schemaVersion": "3.59.0"
|
|
15941
15941
|
}
|
|
@@ -26892,5 +26892,5 @@
|
|
|
26892
26892
|
"shape": "WP_UpdateUserPayload"
|
|
26893
26893
|
}
|
|
26894
26894
|
},
|
|
26895
|
-
"schemaVersion": "3.
|
|
26895
|
+
"schemaVersion": "3.59.0"
|
|
26896
26896
|
}
|
|
@@ -14766,6 +14766,6 @@
|
|
|
14766
14766
|
}
|
|
14767
14767
|
}
|
|
14768
14768
|
},
|
|
14769
|
-
"schemaVersion": "3.
|
|
14769
|
+
"schemaVersion": "3.59.0",
|
|
14770
14770
|
"services": {}
|
|
14771
14771
|
}
|
|
@@ -49144,7 +49144,7 @@
|
|
|
49144
49144
|
}
|
|
49145
49145
|
}
|
|
49146
49146
|
},
|
|
49147
|
-
"schemaVersion": "3.
|
|
49147
|
+
"schemaVersion": "3.59.0",
|
|
49148
49148
|
"apiVersion": "2",
|
|
49149
49149
|
"services": {
|
|
49150
49150
|
"shopify": {
|
|
@@ -12297,5 +12297,5 @@
|
|
|
12297
12297
|
}
|
|
12298
12298
|
}
|
|
12299
12299
|
},
|
|
12300
|
-
"schemaVersion": "3.
|
|
12300
|
+
"schemaVersion": "3.59.0"
|
|
12301
12301
|
}
|
|
@@ -28916,5 +28916,5 @@
|
|
|
28916
28916
|
}
|
|
28917
28917
|
}
|
|
28918
28918
|
},
|
|
28919
|
-
"schemaVersion": "3.
|
|
28919
|
+
"schemaVersion": "3.59.0"
|
|
28920
28920
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.113.3",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"p-reduce": "2.1.0",
|
|
57
57
|
"semver": "7.7.2",
|
|
58
58
|
"tiny-invariant": "1.3.3",
|
|
59
|
-
"@takeshape/errors": "11.
|
|
60
|
-
"@takeshape/json-schema": "11.
|
|
61
|
-
"@takeshape/util": "11.
|
|
59
|
+
"@takeshape/errors": "11.113.3",
|
|
60
|
+
"@takeshape/json-schema": "11.113.3",
|
|
61
|
+
"@takeshape/util": "11.113.3"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@takeshape/json-schema-to-typescript": "11.0.0",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"glob": "7.2.3",
|
|
76
76
|
"json-schema-to-ts": "3.1.1",
|
|
77
77
|
"shortid": "2.2.16",
|
|
78
|
-
"@takeshape/infra": "11.
|
|
79
|
-
"@takeshape/logger": "11.
|
|
78
|
+
"@takeshape/infra": "11.113.3",
|
|
79
|
+
"@takeshape/logger": "11.113.3"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=22"
|