@takeshape/schema 10.44.2 → 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.
- package/dist/api-version.js +1 -1
- package/dist/content-schema-transform.js +1 -1
- package/dist/create-input-schema.js +1 -1
- package/dist/flatten-templates.js +1 -1
- package/dist/interfaces.js +1 -1
- package/dist/layers/layers.js +1 -1
- package/dist/layers/refs.js +2 -2
- package/dist/layers/type-utils.js +1 -1
- package/dist/migration/index.d.ts +1 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +4 -2
- package/dist/migration/to/v3.0.0.js +1 -1
- package/dist/migration/to/v3.1.0.js +1 -1
- package/dist/migration/to/v3.10.0.js +1 -1
- package/dist/migration/to/v3.11.0.js +1 -1
- package/dist/migration/to/v3.12.3.js +1 -1
- package/dist/migration/to/v3.13.0.js +1 -1
- package/dist/migration/to/v3.17.0.js +1 -1
- package/dist/migration/to/v3.18.0.js +1 -1
- package/dist/migration/to/v3.18.1.js +1 -1
- package/dist/migration/to/v3.18.2.js +1 -1
- package/dist/migration/to/v3.20.0.js +1 -1
- package/dist/migration/to/v3.22.0.js +1 -1
- package/dist/migration/to/v3.31.0.js +1 -1
- package/dist/migration/to/v3.34.0.js +1 -1
- package/dist/migration/to/v3.36.0.js +1 -1
- package/dist/migration/to/v3.40.0.js +1 -1
- package/dist/migration/to/v3.45.0.d.ts +5 -0
- package/dist/migration/to/v3.45.0.d.ts.map +1 -0
- package/dist/migration/to/v3.45.0.js +16 -0
- package/dist/migration/to/v3.9.0.js +1 -1
- package/dist/models/project-schema.js +1 -1
- package/dist/project-schema/index.d.ts +4 -1
- package/dist/project-schema/index.d.ts.map +1 -1
- package/dist/project-schema/index.js +17 -3
- package/dist/project-schema/latest.d.ts +31 -2
- package/dist/project-schema/latest.d.ts.map +1 -1
- package/dist/project-schema/migrate.d.ts.map +1 -1
- package/dist/project-schema/migrate.js +3 -0
- package/dist/project-schema/v3.45.0.d.ts +1651 -0
- package/dist/project-schema/v3.45.0.d.ts.map +1 -0
- package/dist/project-schema/v3.45.0.js +5 -0
- package/dist/refs.js +1 -1
- package/dist/relationships.js +1 -1
- package/dist/schema-transform.js +1 -1
- package/dist/schema-util.js +1 -1
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +6 -5
- package/dist/schemas/index.ts +4 -2
- package/dist/schemas/project-schema/latest.json +65 -3
- package/dist/schemas/project-schema/v3.45.0.json +3488 -0
- package/dist/schemas/project-schema.json +3 -0
- package/dist/services.js +1 -1
- package/dist/taxonomies.js +1 -1
- package/dist/template-shapes/templates.js +1 -1
- package/dist/template-shapes/where.js +1 -1
- package/dist/types/utils.js +1 -1
- package/dist/unions.js +1 -1
- package/dist/util/merge.js +1 -1
- package/dist/util/patch-schema.js +1 -1
- package/dist/validate.js +1 -1
- package/es/layers/refs.js +1 -1
- package/es/migration/index.js +3 -1
- package/es/migration/to/v3.45.0.js +10 -0
- package/es/project-schema/index.js +3 -1
- package/es/project-schema/migrate.js +4 -1
- package/es/project-schema/v3.45.0.js +1 -0
- package/es/schemas/index.js +4 -3
- package/es/schemas/index.ts +4 -2
- package/es/schemas/project-schema/latest.json +65 -3
- package/es/schemas/project-schema/v3.45.0.json +3488 -0
- package/es/schemas/project-schema.json +3 -0
- 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/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 +5 -3
- 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-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 +691 -173
- package/examples/latest/vector-search-schema.json +1 -1
- package/package.json +5 -5
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"projectId": "add3306a-dd46-470b-b9d3-b5356553a01f",
|
|
3
3
|
"defaultLocale": "en-us",
|
|
4
|
-
"locales": [
|
|
4
|
+
"locales": [
|
|
5
|
+
"en-us"
|
|
6
|
+
],
|
|
5
7
|
"queries": {
|
|
6
8
|
"getIndexedProductList": {
|
|
7
9
|
"shape": "PaginatedList<Salsify_Product>",
|
|
@@ -9,7 +11,9 @@
|
|
|
9
11
|
"shapeName": "Salsify_Product",
|
|
10
12
|
"name": "takeshape:queryApiIndex",
|
|
11
13
|
"service": "takeshape",
|
|
12
|
-
"options": {
|
|
14
|
+
"options": {
|
|
15
|
+
"indexedShape": "Salsify_Product"
|
|
16
|
+
}
|
|
13
17
|
},
|
|
14
18
|
"description": "Fetch Salsify_Product data from the API Index.",
|
|
15
19
|
"args": "TSListArgs<Salsify_Product>"
|
|
@@ -24,13 +28,22 @@
|
|
|
24
28
|
"name": "ai:createEmbedding",
|
|
25
29
|
"service": "openai",
|
|
26
30
|
"model": "text-embedding-3-small",
|
|
27
|
-
"args": {
|
|
31
|
+
"args": {
|
|
32
|
+
"ops": [
|
|
33
|
+
{
|
|
34
|
+
"path": "input",
|
|
35
|
+
"mapping": "$args.description"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
28
39
|
},
|
|
29
40
|
{
|
|
30
41
|
"shapeName": "Salsify_Product",
|
|
31
42
|
"name": "takeshape:vectorSearch",
|
|
32
43
|
"service": "takeshape",
|
|
33
|
-
"options": {
|
|
44
|
+
"options": {
|
|
45
|
+
"indexedShape": "Salsify_Product"
|
|
46
|
+
},
|
|
34
47
|
"args": {
|
|
35
48
|
"ops": [
|
|
36
49
|
{
|
|
@@ -52,11 +65,22 @@
|
|
|
52
65
|
{
|
|
53
66
|
"path": "where.part.buyersguide.engine.in",
|
|
54
67
|
"mapping": [
|
|
55
|
-
[
|
|
68
|
+
[
|
|
69
|
+
"expressionEval",
|
|
70
|
+
{
|
|
71
|
+
"expression": "['All', $args.engine]"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
56
74
|
]
|
|
57
75
|
},
|
|
58
|
-
{
|
|
59
|
-
|
|
76
|
+
{
|
|
77
|
+
"path": "vector.name",
|
|
78
|
+
"value": "vector"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"path": "vector.value",
|
|
82
|
+
"mapping": "$resolvers.embedding"
|
|
83
|
+
}
|
|
60
84
|
]
|
|
61
85
|
}
|
|
62
86
|
}
|
|
@@ -91,22 +115,47 @@
|
|
|
91
115
|
"description": "A short description of the part you are looking for to be used for semantic search."
|
|
92
116
|
}
|
|
93
117
|
},
|
|
94
|
-
"required": [
|
|
118
|
+
"required": [
|
|
119
|
+
"make",
|
|
120
|
+
"model",
|
|
121
|
+
"year",
|
|
122
|
+
"engine",
|
|
123
|
+
"description"
|
|
124
|
+
]
|
|
95
125
|
}
|
|
96
126
|
},
|
|
97
127
|
"getPart": {
|
|
98
128
|
"shape": "Part",
|
|
99
|
-
"args": {
|
|
129
|
+
"args": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"properties": {
|
|
132
|
+
"partNo": {
|
|
133
|
+
"type": "string"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
100
137
|
"resolver": {
|
|
101
138
|
"service": "parts",
|
|
102
139
|
"name": "rest:get",
|
|
103
140
|
"path": "/bin/ShowMeConnect.exe",
|
|
104
141
|
"searchParams": {
|
|
105
142
|
"ops": [
|
|
106
|
-
{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
143
|
+
{
|
|
144
|
+
"path": "$.lookup",
|
|
145
|
+
"value": "partdetailfull"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"path": "$.udf",
|
|
149
|
+
"mapping": "$args.partNo"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"path": "$.id",
|
|
153
|
+
"value": "69876V2_WEBeCOM"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"path": "$.bust",
|
|
157
|
+
"value": "2"
|
|
158
|
+
}
|
|
110
159
|
]
|
|
111
160
|
},
|
|
112
161
|
"results": {
|
|
@@ -124,43 +173,105 @@
|
|
|
124
173
|
"path": "$finalResolver.ShowMeTheParts_PartDetails.buyersguide[1].app"
|
|
125
174
|
}
|
|
126
175
|
],
|
|
127
|
-
[
|
|
176
|
+
[
|
|
177
|
+
"array",
|
|
178
|
+
{
|
|
179
|
+
"shouldNest": false
|
|
180
|
+
}
|
|
181
|
+
]
|
|
128
182
|
]
|
|
129
183
|
},
|
|
130
184
|
{
|
|
131
185
|
"path": "$.buyersguide[*].startYear",
|
|
132
186
|
"mapping": [
|
|
133
|
-
[
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
187
|
+
[
|
|
188
|
+
"get",
|
|
189
|
+
{
|
|
190
|
+
"path": "$loop.item.year"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
[
|
|
194
|
+
"cast",
|
|
195
|
+
{
|
|
196
|
+
"to": "string"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
[
|
|
200
|
+
"yearRange",
|
|
201
|
+
{
|
|
202
|
+
"select": "last"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
[
|
|
206
|
+
"cast",
|
|
207
|
+
{
|
|
208
|
+
"to": "integer"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
137
211
|
]
|
|
138
212
|
},
|
|
139
213
|
{
|
|
140
214
|
"path": "$.buyersguide[*].endYear",
|
|
141
215
|
"mapping": [
|
|
142
|
-
[
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
216
|
+
[
|
|
217
|
+
"get",
|
|
218
|
+
{
|
|
219
|
+
"path": "$loop.item.year"
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
[
|
|
223
|
+
"cast",
|
|
224
|
+
{
|
|
225
|
+
"to": "string"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
[
|
|
229
|
+
"yearRange",
|
|
230
|
+
{
|
|
231
|
+
"select": "first"
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
[
|
|
235
|
+
"cast",
|
|
236
|
+
{
|
|
237
|
+
"to": "integer"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
146
240
|
]
|
|
147
241
|
}
|
|
148
242
|
]
|
|
149
243
|
},
|
|
150
|
-
"options": {
|
|
244
|
+
"options": {
|
|
245
|
+
"ttl": 172800,
|
|
246
|
+
"timeout": 29000
|
|
247
|
+
}
|
|
151
248
|
}
|
|
152
249
|
},
|
|
153
250
|
"getYears": {
|
|
154
|
-
"shape": {
|
|
251
|
+
"shape": {
|
|
252
|
+
"type": "array",
|
|
253
|
+
"items": {
|
|
254
|
+
"type": "string"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
155
257
|
"resolver": {
|
|
156
258
|
"service": "parts",
|
|
157
259
|
"name": "rest:get",
|
|
158
260
|
"path": "/bin/ShowMeConnect.exe",
|
|
159
|
-
"options": {
|
|
261
|
+
"options": {
|
|
262
|
+
"timeout": 10000,
|
|
263
|
+
"ttl": 604800
|
|
264
|
+
},
|
|
160
265
|
"searchParams": {
|
|
161
266
|
"ops": [
|
|
162
|
-
{
|
|
163
|
-
|
|
267
|
+
{
|
|
268
|
+
"path": "$.lookup",
|
|
269
|
+
"value": "year"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"path": "$.id",
|
|
273
|
+
"value": "69876V2_WEBeCOM"
|
|
274
|
+
}
|
|
164
275
|
]
|
|
165
276
|
},
|
|
166
277
|
"results": {
|
|
@@ -170,7 +281,9 @@
|
|
|
170
281
|
"mapping": [
|
|
171
282
|
[
|
|
172
283
|
"jsonPath",
|
|
173
|
-
{
|
|
284
|
+
{
|
|
285
|
+
"path": "$finalResolver.ShowMeTheParts_Year.year[*].id"
|
|
286
|
+
}
|
|
174
287
|
]
|
|
175
288
|
]
|
|
176
289
|
}
|
|
@@ -180,24 +293,46 @@
|
|
|
180
293
|
},
|
|
181
294
|
"getMakes": {
|
|
182
295
|
"description": "Given a four digit year string list the valid makes for that year",
|
|
183
|
-
"shape": {
|
|
296
|
+
"shape": {
|
|
297
|
+
"type": "array",
|
|
298
|
+
"items": {
|
|
299
|
+
"@ref": "local:Make"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
184
302
|
"args": {
|
|
185
303
|
"type": "object",
|
|
186
304
|
"properties": {
|
|
187
|
-
"year": {
|
|
305
|
+
"year": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"description": "A four digit year string"
|
|
308
|
+
}
|
|
188
309
|
},
|
|
189
|
-
"required": [
|
|
310
|
+
"required": [
|
|
311
|
+
"year"
|
|
312
|
+
]
|
|
190
313
|
},
|
|
191
314
|
"resolver": {
|
|
192
315
|
"service": "parts",
|
|
193
316
|
"name": "rest:get",
|
|
194
317
|
"path": "/bin/ShowMeConnect.exe",
|
|
195
|
-
"options": {
|
|
318
|
+
"options": {
|
|
319
|
+
"timeout": 10000,
|
|
320
|
+
"ttl": 604800
|
|
321
|
+
},
|
|
196
322
|
"searchParams": {
|
|
197
323
|
"ops": [
|
|
198
|
-
{
|
|
199
|
-
|
|
200
|
-
|
|
324
|
+
{
|
|
325
|
+
"path": "$.lookup",
|
|
326
|
+
"value": "make"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"path": "$.year",
|
|
330
|
+
"mapping": "$args.year"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"path": "$.id",
|
|
334
|
+
"value": "69876V2_WEBeCOM"
|
|
335
|
+
}
|
|
201
336
|
]
|
|
202
337
|
},
|
|
203
338
|
"results": {
|
|
@@ -205,8 +340,18 @@
|
|
|
205
340
|
{
|
|
206
341
|
"path": "$",
|
|
207
342
|
"mapping": [
|
|
208
|
-
[
|
|
209
|
-
|
|
343
|
+
[
|
|
344
|
+
"get",
|
|
345
|
+
{
|
|
346
|
+
"path": "$finalResolver.ShowMeTheParts_Make.make"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
[
|
|
350
|
+
"cast",
|
|
351
|
+
{
|
|
352
|
+
"to": "array"
|
|
353
|
+
}
|
|
354
|
+
]
|
|
210
355
|
]
|
|
211
356
|
}
|
|
212
357
|
]
|
|
@@ -214,16 +359,30 @@
|
|
|
214
359
|
}
|
|
215
360
|
},
|
|
216
361
|
"getAllMakes": {
|
|
217
|
-
"shape": {
|
|
362
|
+
"shape": {
|
|
363
|
+
"type": "array",
|
|
364
|
+
"items": {
|
|
365
|
+
"@ref": "local:Make"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
218
368
|
"resolver": {
|
|
219
369
|
"service": "parts",
|
|
220
370
|
"name": "rest:get",
|
|
221
371
|
"path": "/bin/ShowMeConnect.exe",
|
|
222
|
-
"options": {
|
|
372
|
+
"options": {
|
|
373
|
+
"timeout": 10000,
|
|
374
|
+
"ttl": 604800
|
|
375
|
+
},
|
|
223
376
|
"searchParams": {
|
|
224
377
|
"ops": [
|
|
225
|
-
{
|
|
226
|
-
|
|
378
|
+
{
|
|
379
|
+
"path": "$.lookup",
|
|
380
|
+
"value": "make"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"path": "$.id",
|
|
384
|
+
"value": "69876V2_WEBeCOM"
|
|
385
|
+
}
|
|
227
386
|
]
|
|
228
387
|
},
|
|
229
388
|
"results": {
|
|
@@ -231,8 +390,18 @@
|
|
|
231
390
|
{
|
|
232
391
|
"path": "$",
|
|
233
392
|
"mapping": [
|
|
234
|
-
[
|
|
235
|
-
|
|
393
|
+
[
|
|
394
|
+
"get",
|
|
395
|
+
{
|
|
396
|
+
"path": "$finalResolver.ShowMeTheParts_Make.make"
|
|
397
|
+
}
|
|
398
|
+
],
|
|
399
|
+
[
|
|
400
|
+
"cast",
|
|
401
|
+
{
|
|
402
|
+
"to": "array"
|
|
403
|
+
}
|
|
404
|
+
]
|
|
236
405
|
]
|
|
237
406
|
}
|
|
238
407
|
]
|
|
@@ -241,37 +410,62 @@
|
|
|
241
410
|
},
|
|
242
411
|
"getModels": {
|
|
243
412
|
"description": "Given a year and make id get a list of the valid models",
|
|
244
|
-
"shape": {
|
|
413
|
+
"shape": {
|
|
414
|
+
"type": "array",
|
|
415
|
+
"items": {
|
|
416
|
+
"@ref": "local:Model"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
245
419
|
"args": {
|
|
246
420
|
"type": "object",
|
|
247
421
|
"properties": {
|
|
248
|
-
"year": {
|
|
422
|
+
"year": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"description": "A four digit year string"
|
|
425
|
+
},
|
|
249
426
|
"make": {
|
|
250
427
|
"type": "string",
|
|
251
428
|
"description": "The make id as numerical string"
|
|
252
429
|
}
|
|
253
430
|
},
|
|
254
|
-
"required": [
|
|
431
|
+
"required": [
|
|
432
|
+
"year",
|
|
433
|
+
"make"
|
|
434
|
+
]
|
|
255
435
|
},
|
|
256
436
|
"resolver": {
|
|
257
437
|
"service": "parts",
|
|
258
438
|
"name": "rest:get",
|
|
259
439
|
"path": "/bin/ShowMeConnect.exe",
|
|
260
|
-
"options": {
|
|
440
|
+
"options": {
|
|
441
|
+
"timeout": 10000,
|
|
442
|
+
"ttl": 604800
|
|
443
|
+
},
|
|
261
444
|
"searchParams": {
|
|
262
445
|
"ops": [
|
|
263
|
-
{
|
|
264
|
-
|
|
446
|
+
{
|
|
447
|
+
"path": "$.lookup",
|
|
448
|
+
"value": "model"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"path": "$.year",
|
|
452
|
+
"mapping": "$args.year"
|
|
453
|
+
},
|
|
265
454
|
{
|
|
266
455
|
"path": "$.make",
|
|
267
456
|
"mapping": [
|
|
268
457
|
[
|
|
269
458
|
"expressionEval",
|
|
270
|
-
{
|
|
459
|
+
{
|
|
460
|
+
"expression": "toString($args.make).padStart(4, '0')"
|
|
461
|
+
}
|
|
271
462
|
]
|
|
272
463
|
]
|
|
273
464
|
},
|
|
274
|
-
{
|
|
465
|
+
{
|
|
466
|
+
"path": "$.id",
|
|
467
|
+
"value": "69876V2_WEBeCOM"
|
|
468
|
+
}
|
|
275
469
|
]
|
|
276
470
|
},
|
|
277
471
|
"results": {
|
|
@@ -279,8 +473,18 @@
|
|
|
279
473
|
{
|
|
280
474
|
"path": "$",
|
|
281
475
|
"mapping": [
|
|
282
|
-
[
|
|
283
|
-
|
|
476
|
+
[
|
|
477
|
+
"get",
|
|
478
|
+
{
|
|
479
|
+
"path": "$finalResolver.ShowMeTheParts_Model.model"
|
|
480
|
+
}
|
|
481
|
+
],
|
|
482
|
+
[
|
|
483
|
+
"cast",
|
|
484
|
+
{
|
|
485
|
+
"to": "array"
|
|
486
|
+
}
|
|
487
|
+
]
|
|
284
488
|
]
|
|
285
489
|
}
|
|
286
490
|
]
|
|
@@ -288,11 +492,19 @@
|
|
|
288
492
|
}
|
|
289
493
|
},
|
|
290
494
|
"getEngines": {
|
|
291
|
-
"shape": {
|
|
495
|
+
"shape": {
|
|
496
|
+
"type": "array",
|
|
497
|
+
"items": {
|
|
498
|
+
"@ref": "local:Engine"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
292
501
|
"args": {
|
|
293
502
|
"type": "object",
|
|
294
503
|
"properties": {
|
|
295
|
-
"year": {
|
|
504
|
+
"year": {
|
|
505
|
+
"type": "string",
|
|
506
|
+
"description": "A four digit year string"
|
|
507
|
+
},
|
|
296
508
|
"make": {
|
|
297
509
|
"type": "string",
|
|
298
510
|
"description": "The make id a numerical string"
|
|
@@ -302,23 +514,38 @@
|
|
|
302
514
|
"description": "The model id a numerical string"
|
|
303
515
|
}
|
|
304
516
|
},
|
|
305
|
-
"required": [
|
|
517
|
+
"required": [
|
|
518
|
+
"year",
|
|
519
|
+
"make",
|
|
520
|
+
"model"
|
|
521
|
+
]
|
|
306
522
|
},
|
|
307
523
|
"resolver": {
|
|
308
524
|
"service": "parts",
|
|
309
525
|
"name": "rest:get",
|
|
310
526
|
"path": "/bin/ShowMeConnect.exe",
|
|
311
|
-
"options": {
|
|
527
|
+
"options": {
|
|
528
|
+
"timeout": 10000,
|
|
529
|
+
"ttl": 604800
|
|
530
|
+
},
|
|
312
531
|
"searchParams": {
|
|
313
532
|
"ops": [
|
|
314
|
-
{
|
|
315
|
-
|
|
533
|
+
{
|
|
534
|
+
"path": "$.lookup",
|
|
535
|
+
"value": "engine"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"path": "$.year",
|
|
539
|
+
"mapping": "$args.year"
|
|
540
|
+
},
|
|
316
541
|
{
|
|
317
542
|
"path": "$.make",
|
|
318
543
|
"mapping": [
|
|
319
544
|
[
|
|
320
545
|
"expressionEval",
|
|
321
|
-
{
|
|
546
|
+
{
|
|
547
|
+
"expression": "toString($args.make).padStart(4, '0')"
|
|
548
|
+
}
|
|
322
549
|
]
|
|
323
550
|
]
|
|
324
551
|
},
|
|
@@ -327,11 +554,16 @@
|
|
|
327
554
|
"mapping": [
|
|
328
555
|
[
|
|
329
556
|
"expressionEval",
|
|
330
|
-
{
|
|
557
|
+
{
|
|
558
|
+
"expression": "toString($args.model).padStart(4, '0')"
|
|
559
|
+
}
|
|
331
560
|
]
|
|
332
561
|
]
|
|
333
562
|
},
|
|
334
|
-
{
|
|
563
|
+
{
|
|
564
|
+
"path": "$.id",
|
|
565
|
+
"value": "69876V2_WEBeCOM"
|
|
566
|
+
}
|
|
335
567
|
]
|
|
336
568
|
},
|
|
337
569
|
"results": {
|
|
@@ -341,9 +573,16 @@
|
|
|
341
573
|
"mapping": [
|
|
342
574
|
[
|
|
343
575
|
"get",
|
|
344
|
-
{
|
|
576
|
+
{
|
|
577
|
+
"path": "$finalResolver.ShowMeTheParts_Engine.engine"
|
|
578
|
+
}
|
|
345
579
|
],
|
|
346
|
-
[
|
|
580
|
+
[
|
|
581
|
+
"cast",
|
|
582
|
+
{
|
|
583
|
+
"to": "array"
|
|
584
|
+
}
|
|
585
|
+
]
|
|
347
586
|
]
|
|
348
587
|
},
|
|
349
588
|
{
|
|
@@ -362,32 +601,61 @@
|
|
|
362
601
|
}
|
|
363
602
|
},
|
|
364
603
|
"getPartsDetails": {
|
|
365
|
-
"shape": {
|
|
604
|
+
"shape": {
|
|
605
|
+
"type": "array",
|
|
606
|
+
"items": {
|
|
607
|
+
"@ref": "local:PartDetail"
|
|
608
|
+
}
|
|
609
|
+
},
|
|
366
610
|
"args": {
|
|
367
611
|
"type": "object",
|
|
368
612
|
"properties": {
|
|
369
|
-
"engine": {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
"
|
|
613
|
+
"engine": {
|
|
614
|
+
"type": "string"
|
|
615
|
+
},
|
|
616
|
+
"year": {
|
|
617
|
+
"type": "string"
|
|
618
|
+
},
|
|
619
|
+
"make": {
|
|
620
|
+
"type": "string"
|
|
621
|
+
},
|
|
622
|
+
"model": {
|
|
623
|
+
"type": "string"
|
|
624
|
+
}
|
|
373
625
|
},
|
|
374
|
-
"required": [
|
|
626
|
+
"required": [
|
|
627
|
+
"engine",
|
|
628
|
+
"year",
|
|
629
|
+
"make",
|
|
630
|
+
"model"
|
|
631
|
+
]
|
|
375
632
|
},
|
|
376
633
|
"resolver": {
|
|
377
634
|
"service": "parts",
|
|
378
635
|
"name": "rest:get",
|
|
379
636
|
"path": "/bin/ShowMeConnect.exe",
|
|
380
|
-
"options": {
|
|
637
|
+
"options": {
|
|
638
|
+
"timeout": 10000,
|
|
639
|
+
"ttl": 172800
|
|
640
|
+
},
|
|
381
641
|
"searchParams": {
|
|
382
642
|
"ops": [
|
|
383
|
-
{
|
|
384
|
-
|
|
643
|
+
{
|
|
644
|
+
"path": "$.lookup",
|
|
645
|
+
"value": "parts"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"path": "$.year",
|
|
649
|
+
"mapping": "$args.year"
|
|
650
|
+
},
|
|
385
651
|
{
|
|
386
652
|
"path": "$.make",
|
|
387
653
|
"mapping": [
|
|
388
654
|
[
|
|
389
655
|
"expressionEval",
|
|
390
|
-
{
|
|
656
|
+
{
|
|
657
|
+
"expression": "toString($args.make).padStart(4, '0')"
|
|
658
|
+
}
|
|
391
659
|
]
|
|
392
660
|
]
|
|
393
661
|
},
|
|
@@ -396,12 +664,20 @@
|
|
|
396
664
|
"mapping": [
|
|
397
665
|
[
|
|
398
666
|
"expressionEval",
|
|
399
|
-
{
|
|
667
|
+
{
|
|
668
|
+
"expression": "toString($args.model).padStart(4, '0')"
|
|
669
|
+
}
|
|
400
670
|
]
|
|
401
671
|
]
|
|
402
672
|
},
|
|
403
|
-
{
|
|
404
|
-
|
|
673
|
+
{
|
|
674
|
+
"path": "$.engine",
|
|
675
|
+
"mapping": "$args.engine"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"path": "$.id",
|
|
679
|
+
"value": "69876V2_WEBeCOM"
|
|
680
|
+
}
|
|
405
681
|
]
|
|
406
682
|
},
|
|
407
683
|
"results": {
|
|
@@ -411,9 +687,16 @@
|
|
|
411
687
|
"mapping": [
|
|
412
688
|
[
|
|
413
689
|
"get",
|
|
414
|
-
{
|
|
690
|
+
{
|
|
691
|
+
"path": "$finalResolver.ShowMeThePartsDetail.partsdata"
|
|
692
|
+
}
|
|
415
693
|
],
|
|
416
|
-
[
|
|
694
|
+
[
|
|
695
|
+
"cast",
|
|
696
|
+
{
|
|
697
|
+
"to": "array"
|
|
698
|
+
}
|
|
699
|
+
]
|
|
417
700
|
]
|
|
418
701
|
},
|
|
419
702
|
{
|
|
@@ -436,8 +719,14 @@
|
|
|
436
719
|
"args": {
|
|
437
720
|
"type": "object",
|
|
438
721
|
"properties": {
|
|
439
|
-
"from": {
|
|
440
|
-
|
|
722
|
+
"from": {
|
|
723
|
+
"type": "integer",
|
|
724
|
+
"default": 0
|
|
725
|
+
},
|
|
726
|
+
"size": {
|
|
727
|
+
"type": "integer",
|
|
728
|
+
"default": 10
|
|
729
|
+
}
|
|
441
730
|
}
|
|
442
731
|
},
|
|
443
732
|
"resolver": {
|
|
@@ -459,7 +748,12 @@
|
|
|
459
748
|
{
|
|
460
749
|
"path": "$.total",
|
|
461
750
|
"mapping": [
|
|
462
|
-
[
|
|
751
|
+
[
|
|
752
|
+
"expressionEval",
|
|
753
|
+
{
|
|
754
|
+
"expression": "$finalResolver.length"
|
|
755
|
+
}
|
|
756
|
+
]
|
|
463
757
|
]
|
|
464
758
|
}
|
|
465
759
|
]
|
|
@@ -481,7 +775,9 @@
|
|
|
481
775
|
"description": "The ID of the Collection to return."
|
|
482
776
|
}
|
|
483
777
|
},
|
|
484
|
-
"required": [
|
|
778
|
+
"required": [
|
|
779
|
+
"id"
|
|
780
|
+
]
|
|
485
781
|
},
|
|
486
782
|
"shape": "Shopify_Collection"
|
|
487
783
|
},
|
|
@@ -499,7 +795,9 @@
|
|
|
499
795
|
"description": "The handle of the collection."
|
|
500
796
|
}
|
|
501
797
|
},
|
|
502
|
-
"required": [
|
|
798
|
+
"required": [
|
|
799
|
+
"handle"
|
|
800
|
+
]
|
|
503
801
|
},
|
|
504
802
|
"shape": "Shopify_Collection"
|
|
505
803
|
},
|
|
@@ -566,7 +864,9 @@
|
|
|
566
864
|
"description": "The ID of the Product to return."
|
|
567
865
|
}
|
|
568
866
|
},
|
|
569
|
-
"required": [
|
|
867
|
+
"required": [
|
|
868
|
+
"id"
|
|
869
|
+
]
|
|
570
870
|
},
|
|
571
871
|
"shape": "Shopify_Product"
|
|
572
872
|
},
|
|
@@ -596,7 +896,9 @@
|
|
|
596
896
|
"shapeName": "Salsify_Product",
|
|
597
897
|
"name": "takeshape:queryApiIndex",
|
|
598
898
|
"service": "takeshape",
|
|
599
|
-
"options": {
|
|
899
|
+
"options": {
|
|
900
|
+
"indexedShape": "Salsify_Product"
|
|
901
|
+
}
|
|
600
902
|
},
|
|
601
903
|
"description": "Fetch Salsify_Product data from the API Index.",
|
|
602
904
|
"args": "TSListArgs<Salsify_Product>"
|
|
@@ -739,10 +1041,16 @@
|
|
|
739
1041
|
"schema": {
|
|
740
1042
|
"type": "object",
|
|
741
1043
|
"properties": {
|
|
742
|
-
"input": {
|
|
743
|
-
|
|
1044
|
+
"input": {
|
|
1045
|
+
"type": "string"
|
|
1046
|
+
},
|
|
1047
|
+
"sessionId": {
|
|
1048
|
+
"type": "string"
|
|
1049
|
+
}
|
|
744
1050
|
},
|
|
745
|
-
"required": [
|
|
1051
|
+
"required": [
|
|
1052
|
+
"input"
|
|
1053
|
+
]
|
|
746
1054
|
}
|
|
747
1055
|
},
|
|
748
1056
|
"ChatResponse": {
|
|
@@ -752,8 +1060,12 @@
|
|
|
752
1060
|
"schema": {
|
|
753
1061
|
"type": "object",
|
|
754
1062
|
"properties": {
|
|
755
|
-
"content": {
|
|
756
|
-
|
|
1063
|
+
"content": {
|
|
1064
|
+
"type": "string"
|
|
1065
|
+
},
|
|
1066
|
+
"sessionId": {
|
|
1067
|
+
"type": "string"
|
|
1068
|
+
}
|
|
757
1069
|
}
|
|
758
1070
|
}
|
|
759
1071
|
},
|
|
@@ -763,7 +1075,14 @@
|
|
|
763
1075
|
"title": "Model",
|
|
764
1076
|
"schema": {
|
|
765
1077
|
"type": "object",
|
|
766
|
-
"properties": {
|
|
1078
|
+
"properties": {
|
|
1079
|
+
"id": {
|
|
1080
|
+
"type": "string"
|
|
1081
|
+
},
|
|
1082
|
+
"data": {
|
|
1083
|
+
"type": "string"
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
767
1086
|
}
|
|
768
1087
|
},
|
|
769
1088
|
"Make": {
|
|
@@ -772,7 +1091,14 @@
|
|
|
772
1091
|
"title": "Make",
|
|
773
1092
|
"schema": {
|
|
774
1093
|
"type": "object",
|
|
775
|
-
"properties": {
|
|
1094
|
+
"properties": {
|
|
1095
|
+
"id": {
|
|
1096
|
+
"type": "string"
|
|
1097
|
+
},
|
|
1098
|
+
"data": {
|
|
1099
|
+
"type": "string"
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
776
1102
|
}
|
|
777
1103
|
},
|
|
778
1104
|
"Engine": {
|
|
@@ -782,8 +1108,14 @@
|
|
|
782
1108
|
"schema": {
|
|
783
1109
|
"type": "object",
|
|
784
1110
|
"properties": {
|
|
785
|
-
"id": {
|
|
786
|
-
|
|
1111
|
+
"id": {
|
|
1112
|
+
"type": "string",
|
|
1113
|
+
"@mapping": "shapedb:Engine.id"
|
|
1114
|
+
},
|
|
1115
|
+
"data": {
|
|
1116
|
+
"type": "string",
|
|
1117
|
+
"@mapping": "shapedb:Engine.data"
|
|
1118
|
+
},
|
|
787
1119
|
"normalizedId": {
|
|
788
1120
|
"type": "string",
|
|
789
1121
|
"@mapping": "shapedb:Engine.normalizedId"
|
|
@@ -798,35 +1130,93 @@
|
|
|
798
1130
|
"schema": {
|
|
799
1131
|
"type": "object",
|
|
800
1132
|
"properties": {
|
|
801
|
-
"supplier": {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
"
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
"
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
"
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
"
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
"
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
"
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
"
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
"
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
"
|
|
829
|
-
|
|
1133
|
+
"supplier": {
|
|
1134
|
+
"type": "string"
|
|
1135
|
+
},
|
|
1136
|
+
"app_no": {
|
|
1137
|
+
"type": "integer"
|
|
1138
|
+
},
|
|
1139
|
+
"location": {
|
|
1140
|
+
"type": "string"
|
|
1141
|
+
},
|
|
1142
|
+
"brand": {
|
|
1143
|
+
"type": "string"
|
|
1144
|
+
},
|
|
1145
|
+
"part_no": {
|
|
1146
|
+
"type": "string"
|
|
1147
|
+
},
|
|
1148
|
+
"part_type": {
|
|
1149
|
+
"type": "string"
|
|
1150
|
+
},
|
|
1151
|
+
"alt_part_type": {
|
|
1152
|
+
"type": "string"
|
|
1153
|
+
},
|
|
1154
|
+
"part_key": {
|
|
1155
|
+
"type": "integer"
|
|
1156
|
+
},
|
|
1157
|
+
"comment": {
|
|
1158
|
+
"type": "string"
|
|
1159
|
+
},
|
|
1160
|
+
"application": {
|
|
1161
|
+
"type": "string"
|
|
1162
|
+
},
|
|
1163
|
+
"qty": {
|
|
1164
|
+
"type": "integer"
|
|
1165
|
+
},
|
|
1166
|
+
"case_qty": {
|
|
1167
|
+
"type": "string"
|
|
1168
|
+
},
|
|
1169
|
+
"price": {
|
|
1170
|
+
"type": "number"
|
|
1171
|
+
},
|
|
1172
|
+
"storelocator": {
|
|
1173
|
+
"type": "integer"
|
|
1174
|
+
},
|
|
1175
|
+
"doc": {
|
|
1176
|
+
"type": "string"
|
|
1177
|
+
},
|
|
1178
|
+
"udf2": {
|
|
1179
|
+
"type": "string"
|
|
1180
|
+
},
|
|
1181
|
+
"udf1": {
|
|
1182
|
+
"type": "integer"
|
|
1183
|
+
},
|
|
1184
|
+
"displayorder": {
|
|
1185
|
+
"type": "integer"
|
|
1186
|
+
},
|
|
1187
|
+
"supplierid": {
|
|
1188
|
+
"type": "integer"
|
|
1189
|
+
},
|
|
1190
|
+
"image": {
|
|
1191
|
+
"type": "string"
|
|
1192
|
+
},
|
|
1193
|
+
"height": {
|
|
1194
|
+
"type": "integer"
|
|
1195
|
+
},
|
|
1196
|
+
"width": {
|
|
1197
|
+
"type": "integer"
|
|
1198
|
+
},
|
|
1199
|
+
"smtp_brandid": {
|
|
1200
|
+
"type": "string"
|
|
1201
|
+
},
|
|
1202
|
+
"bodystyle": {
|
|
1203
|
+
"type": "string"
|
|
1204
|
+
},
|
|
1205
|
+
"gcommercehostid": {
|
|
1206
|
+
"type": "string"
|
|
1207
|
+
},
|
|
1208
|
+
"aaiabrandid": {
|
|
1209
|
+
"type": "string"
|
|
1210
|
+
},
|
|
1211
|
+
"warehouses": {
|
|
1212
|
+
"type": "string"
|
|
1213
|
+
},
|
|
1214
|
+
"id": {
|
|
1215
|
+
"type": "integer"
|
|
1216
|
+
},
|
|
1217
|
+
"buylinkcnt": {
|
|
1218
|
+
"type": "string"
|
|
1219
|
+
}
|
|
830
1220
|
}
|
|
831
1221
|
}
|
|
832
1222
|
},
|
|
@@ -837,14 +1227,38 @@
|
|
|
837
1227
|
"schema": {
|
|
838
1228
|
"type": "object",
|
|
839
1229
|
"properties": {
|
|
840
|
-
"engine": {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
"
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
1230
|
+
"engine": {
|
|
1231
|
+
"type": "string",
|
|
1232
|
+
"@mapping": "shapedb:App.engine"
|
|
1233
|
+
},
|
|
1234
|
+
"make": {
|
|
1235
|
+
"type": "string",
|
|
1236
|
+
"@mapping": "shapedb:App.make"
|
|
1237
|
+
},
|
|
1238
|
+
"model": {
|
|
1239
|
+
"type": "string",
|
|
1240
|
+
"@mapping": "shapedb:App.model"
|
|
1241
|
+
},
|
|
1242
|
+
"year": {
|
|
1243
|
+
"type": "string",
|
|
1244
|
+
"@mapping": "shapedb:App.year"
|
|
1245
|
+
},
|
|
1246
|
+
"startYear": {
|
|
1247
|
+
"type": "integer",
|
|
1248
|
+
"@mapping": "shapedb:App.startYear"
|
|
1249
|
+
},
|
|
1250
|
+
"endYear": {
|
|
1251
|
+
"type": "integer",
|
|
1252
|
+
"@mapping": "shapedb:App.endYear"
|
|
1253
|
+
},
|
|
1254
|
+
"apptype": {
|
|
1255
|
+
"type": "string",
|
|
1256
|
+
"@mapping": "shapedb:App.apptype"
|
|
1257
|
+
},
|
|
1258
|
+
"qty": {
|
|
1259
|
+
"type": "integer",
|
|
1260
|
+
"@mapping": "shapedb:App.qty"
|
|
1261
|
+
}
|
|
848
1262
|
}
|
|
849
1263
|
}
|
|
850
1264
|
},
|
|
@@ -854,14 +1268,26 @@
|
|
|
854
1268
|
"schema": {
|
|
855
1269
|
"properties": {
|
|
856
1270
|
"buyersguide": {
|
|
857
|
-
"@indexed": {
|
|
1271
|
+
"@indexed": {
|
|
1272
|
+
"nested": true
|
|
1273
|
+
},
|
|
858
1274
|
"type": "array",
|
|
859
|
-
"items": {
|
|
1275
|
+
"items": {
|
|
1276
|
+
"@ref": "local:App"
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
"part_key": {
|
|
1280
|
+
"type": "string"
|
|
1281
|
+
},
|
|
1282
|
+
"part_no": {
|
|
1283
|
+
"type": "string"
|
|
860
1284
|
},
|
|
861
|
-
"
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
"udf1": {
|
|
1285
|
+
"part_type": {
|
|
1286
|
+
"type": "string"
|
|
1287
|
+
},
|
|
1288
|
+
"udf1": {
|
|
1289
|
+
"type": "string"
|
|
1290
|
+
}
|
|
865
1291
|
},
|
|
866
1292
|
"type": "object"
|
|
867
1293
|
},
|
|
@@ -873,16 +1299,28 @@
|
|
|
873
1299
|
"title": "Salsify_Product",
|
|
874
1300
|
"cache": {
|
|
875
1301
|
"enabled": true,
|
|
876
|
-
"triggers": [
|
|
1302
|
+
"triggers": [
|
|
1303
|
+
{
|
|
1304
|
+
"type": "schedule",
|
|
1305
|
+
"loader": "list",
|
|
1306
|
+
"interval": 1440
|
|
1307
|
+
}
|
|
1308
|
+
],
|
|
877
1309
|
"fragment": {
|
|
878
1310
|
"maxDepth": 2,
|
|
879
1311
|
"selectionSet": "{shopifyProductVariant{availableForSale barcode compareAtPrice createdAt defaultCursor displayName harmonizedSystemCode id image{altText height id originalSrc src transformedSrc url width}inventoryItem{countryCodeOfOrigin createdAt duplicateSkuCount harmonizedSystemCode id inventoryHistoryUrl legacyResourceId locationsCount provinceCodeOfOrigin requiresShipping sku tracked updatedAt}product{tags productType title}inventoryManagement inventoryPolicy inventoryQuantity legacyResourceId position price requiresShipping selectedOptions{name value}sellableOnlineQuantity sellingPlanGroupCount sku storefrontId taxCode taxable title updatedAt weight weightUnit}part{buyersguide{endYear engine make model startYear year apptype qty}part_key part_no part_type udf1}}"
|
|
880
1312
|
}
|
|
881
1313
|
},
|
|
882
|
-
"loaders": {
|
|
1314
|
+
"loaders": {
|
|
1315
|
+
"list": {
|
|
1316
|
+
"query": "salsify:Query.listChannelProducts"
|
|
1317
|
+
}
|
|
1318
|
+
},
|
|
883
1319
|
"schema": {
|
|
884
1320
|
"extends": [
|
|
885
|
-
{
|
|
1321
|
+
{
|
|
1322
|
+
"@ref": "salsify:Product"
|
|
1323
|
+
},
|
|
886
1324
|
{
|
|
887
1325
|
"type": "object",
|
|
888
1326
|
"properties": {
|
|
@@ -891,7 +1329,12 @@
|
|
|
891
1329
|
"name": "delegate",
|
|
892
1330
|
"to": "local:Query.getPart",
|
|
893
1331
|
"args": {
|
|
894
|
-
"ops": [
|
|
1332
|
+
"ops": [
|
|
1333
|
+
{
|
|
1334
|
+
"path": "$.partNo",
|
|
1335
|
+
"mapping": "$source.mpn"
|
|
1336
|
+
}
|
|
1337
|
+
]
|
|
895
1338
|
}
|
|
896
1339
|
},
|
|
897
1340
|
"@ref": "local:Part",
|
|
@@ -908,18 +1351,38 @@
|
|
|
908
1351
|
},
|
|
909
1352
|
"args": {
|
|
910
1353
|
"ops": [
|
|
911
|
-
{
|
|
1354
|
+
{
|
|
1355
|
+
"path": "first",
|
|
1356
|
+
"value": "1"
|
|
1357
|
+
},
|
|
912
1358
|
{
|
|
913
1359
|
"path": "query",
|
|
914
1360
|
"mapping": [
|
|
915
|
-
[
|
|
916
|
-
|
|
1361
|
+
[
|
|
1362
|
+
"get",
|
|
1363
|
+
{
|
|
1364
|
+
"path": [
|
|
1365
|
+
"$source.mpn"
|
|
1366
|
+
]
|
|
1367
|
+
}
|
|
1368
|
+
],
|
|
1369
|
+
[
|
|
1370
|
+
"format",
|
|
1371
|
+
{
|
|
1372
|
+
"template": "sku:%s"
|
|
1373
|
+
}
|
|
1374
|
+
]
|
|
917
1375
|
]
|
|
918
1376
|
}
|
|
919
1377
|
]
|
|
920
1378
|
},
|
|
921
1379
|
"results": {
|
|
922
|
-
"ops": [
|
|
1380
|
+
"ops": [
|
|
1381
|
+
{
|
|
1382
|
+
"path": "$",
|
|
1383
|
+
"mapping": "$finalResolver[0]"
|
|
1384
|
+
}
|
|
1385
|
+
]
|
|
923
1386
|
}
|
|
924
1387
|
},
|
|
925
1388
|
"@ref": "shopify:ProductVariant",
|
|
@@ -932,9 +1395,13 @@
|
|
|
932
1395
|
"name": "ai:createEmbedding",
|
|
933
1396
|
"service": "openai",
|
|
934
1397
|
"model": "text-embedding-3-small",
|
|
935
|
-
"options": {
|
|
1398
|
+
"options": {
|
|
1399
|
+
"useDependencies": true
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
"items": {
|
|
1403
|
+
"type": "number"
|
|
936
1404
|
},
|
|
937
|
-
"items": {"type": "number"},
|
|
938
1405
|
"title": "Vector",
|
|
939
1406
|
"@tag": "vector"
|
|
940
1407
|
}
|
|
@@ -947,7 +1414,9 @@
|
|
|
947
1414
|
"id": "cWMNa7fp5",
|
|
948
1415
|
"name": "MockRelatedProduct",
|
|
949
1416
|
"title": "Mock Related Product List",
|
|
950
|
-
"model": {
|
|
1417
|
+
"model": {
|
|
1418
|
+
"type": "multiple"
|
|
1419
|
+
},
|
|
951
1420
|
"schema": {
|
|
952
1421
|
"type": "object",
|
|
953
1422
|
"properties": {
|
|
@@ -963,7 +1432,9 @@
|
|
|
963
1432
|
"id": "rQTVfBrXi",
|
|
964
1433
|
"name": "DangerousPrompt",
|
|
965
1434
|
"title": "Dangerous Prompt",
|
|
966
|
-
"model": {
|
|
1435
|
+
"model": {
|
|
1436
|
+
"type": "multiple"
|
|
1437
|
+
},
|
|
967
1438
|
"schema": {
|
|
968
1439
|
"type": "object",
|
|
969
1440
|
"properties": {
|
|
@@ -974,7 +1445,9 @@
|
|
|
974
1445
|
},
|
|
975
1446
|
"promptVector": {
|
|
976
1447
|
"type": "array",
|
|
977
|
-
"items": {
|
|
1448
|
+
"items": {
|
|
1449
|
+
"type": "number"
|
|
1450
|
+
},
|
|
978
1451
|
"title": "Prompt Vector",
|
|
979
1452
|
"@tag": "vector",
|
|
980
1453
|
"@dependencies": "{prompt}",
|
|
@@ -982,11 +1455,15 @@
|
|
|
982
1455
|
"name": "ai:createEmbedding",
|
|
983
1456
|
"service": "openai",
|
|
984
1457
|
"model": "text-embedding-3-small",
|
|
985
|
-
"options": {
|
|
1458
|
+
"options": {
|
|
1459
|
+
"useDependencies": true
|
|
1460
|
+
}
|
|
986
1461
|
}
|
|
987
1462
|
}
|
|
988
1463
|
},
|
|
989
|
-
"required": [
|
|
1464
|
+
"required": [
|
|
1465
|
+
"prompt"
|
|
1466
|
+
]
|
|
990
1467
|
}
|
|
991
1468
|
}
|
|
992
1469
|
},
|
|
@@ -995,24 +1472,50 @@
|
|
|
995
1472
|
"Engine": {
|
|
996
1473
|
"default": {
|
|
997
1474
|
"properties": {
|
|
998
|
-
"id": {
|
|
999
|
-
|
|
1000
|
-
|
|
1475
|
+
"id": {
|
|
1476
|
+
"widget": "singleLineText"
|
|
1477
|
+
},
|
|
1478
|
+
"data": {
|
|
1479
|
+
"widget": "singleLineText"
|
|
1480
|
+
},
|
|
1481
|
+
"normalizedId": {
|
|
1482
|
+
"widget": "singleLineText"
|
|
1483
|
+
}
|
|
1001
1484
|
},
|
|
1002
|
-
"order": [
|
|
1485
|
+
"order": [
|
|
1486
|
+
"id",
|
|
1487
|
+
"data",
|
|
1488
|
+
"normalizedId"
|
|
1489
|
+
]
|
|
1003
1490
|
}
|
|
1004
1491
|
},
|
|
1005
1492
|
"App": {
|
|
1006
1493
|
"default": {
|
|
1007
1494
|
"properties": {
|
|
1008
|
-
"engine": {
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
"
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
"
|
|
1015
|
-
|
|
1495
|
+
"engine": {
|
|
1496
|
+
"widget": "singleLineText"
|
|
1497
|
+
},
|
|
1498
|
+
"make": {
|
|
1499
|
+
"widget": "singleLineText"
|
|
1500
|
+
},
|
|
1501
|
+
"model": {
|
|
1502
|
+
"widget": "singleLineText"
|
|
1503
|
+
},
|
|
1504
|
+
"year": {
|
|
1505
|
+
"widget": "singleLineText"
|
|
1506
|
+
},
|
|
1507
|
+
"startYear": {
|
|
1508
|
+
"widget": "number"
|
|
1509
|
+
},
|
|
1510
|
+
"endYear": {
|
|
1511
|
+
"widget": "number"
|
|
1512
|
+
},
|
|
1513
|
+
"apptype": {
|
|
1514
|
+
"widget": "singleLineText"
|
|
1515
|
+
},
|
|
1516
|
+
"qty": {
|
|
1517
|
+
"widget": "number"
|
|
1518
|
+
}
|
|
1016
1519
|
},
|
|
1017
1520
|
"order": [
|
|
1018
1521
|
"engine",
|
|
@@ -1028,17 +1531,28 @@
|
|
|
1028
1531
|
},
|
|
1029
1532
|
"MockRelatedProduct": {
|
|
1030
1533
|
"default": {
|
|
1031
|
-
"properties": {
|
|
1032
|
-
|
|
1534
|
+
"properties": {
|
|
1535
|
+
"name": {
|
|
1536
|
+
"widget": "singleLineText"
|
|
1537
|
+
}
|
|
1538
|
+
},
|
|
1539
|
+
"order": [
|
|
1540
|
+
"name"
|
|
1541
|
+
]
|
|
1033
1542
|
}
|
|
1034
1543
|
},
|
|
1035
1544
|
"DangerousPrompt": {
|
|
1036
1545
|
"default": {
|
|
1037
1546
|
"properties": {
|
|
1038
|
-
"prompt": {
|
|
1547
|
+
"prompt": {
|
|
1548
|
+
"widget": "singleLineText"
|
|
1549
|
+
},
|
|
1039
1550
|
"promptVector": {}
|
|
1040
1551
|
},
|
|
1041
|
-
"order": [
|
|
1552
|
+
"order": [
|
|
1553
|
+
"prompt",
|
|
1554
|
+
"promptVector"
|
|
1555
|
+
]
|
|
1042
1556
|
}
|
|
1043
1557
|
}
|
|
1044
1558
|
},
|
|
@@ -1050,7 +1564,9 @@
|
|
|
1050
1564
|
"provider": "rest",
|
|
1051
1565
|
"serviceType": "rest",
|
|
1052
1566
|
"authenticationType": "none",
|
|
1053
|
-
"options": {
|
|
1567
|
+
"options": {
|
|
1568
|
+
"endpoint": "https://www.showmethepartsdb3.com/"
|
|
1569
|
+
},
|
|
1054
1570
|
"healthCheck": {
|
|
1055
1571
|
"checkName": "ping",
|
|
1056
1572
|
"endpoint": "https://www.showmethepartsdb3.com/bin/ShowMeConnect.exe?lookup=make&id=69876V2_WEBeCOM"
|
|
@@ -1106,12 +1622,14 @@
|
|
|
1106
1622
|
"options": {
|
|
1107
1623
|
"endpoint": "https://api.anthropic.com/v1",
|
|
1108
1624
|
"spec": "https://raw.githubusercontent.com/takeshape/openapi-specs/d1219888103fdd900138589e4e03c0b216c0a5d1/specs/anthropic/2023-06-01.yml",
|
|
1109
|
-
"headers": {
|
|
1625
|
+
"headers": {
|
|
1626
|
+
"anthropic-version": "2023-06-01"
|
|
1627
|
+
},
|
|
1110
1628
|
"transformVersion": "2.0.0",
|
|
1111
1629
|
"introspectedAt": "2024-08-21T16:55:43.579Z"
|
|
1112
1630
|
}
|
|
1113
1631
|
}
|
|
1114
1632
|
},
|
|
1115
|
-
"schemaVersion": "3.
|
|
1633
|
+
"schemaVersion": "3.45.0",
|
|
1116
1634
|
"apiVersion": "2"
|
|
1117
|
-
}
|
|
1635
|
+
}
|