@takeshape/schema 11.143.2 → 11.154.1
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/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/chat-agent-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/frank-and-fred-schema.json +1 -1
- package/examples/latest/generate-agent-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 +1461 -1421
- package/examples/latest/vector-search-schema.json +1 -1
- package/package.json +10 -9
- package/dist/agents.d.ts +0 -62
- package/dist/agents.js +0 -338
- package/dist/api-version.d.ts +0 -5
- package/dist/api-version.js +0 -17
- package/dist/auth-schemas.d.ts +0 -128
- package/dist/auth-schemas.js +0 -7
- package/dist/auth-utils.d.ts +0 -5
- package/dist/auth-utils.js +0 -6
- package/dist/builtin-schema.d.ts +0 -18
- package/dist/builtin-schema.js +0 -683
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +0 -1
- package/dist/content-schema-transform.d.ts +0 -35
- package/dist/content-schema-transform.js +0 -162
- package/dist/create-input-schema.d.ts +0 -9
- package/dist/create-input-schema.js +0 -68
- package/dist/enum.d.ts +0 -2
- package/dist/enum.js +0 -9
- package/dist/flatten-templates.d.ts +0 -2
- package/dist/flatten-templates.js +0 -20
- package/dist/get-is-leaf.d.ts +0 -3
- package/dist/get-is-leaf.js +0 -56
- package/dist/index.d.ts +0 -62
- package/dist/index.js +0 -59
- package/dist/interfaces.d.ts +0 -14
- package/dist/interfaces.js +0 -86
- package/dist/layers/layers.d.ts +0 -26
- package/dist/layers/layers.js +0 -301
- package/dist/layers/refs.d.ts +0 -102
- package/dist/layers/refs.js +0 -220
- package/dist/layers/type-utils.d.ts +0 -59
- package/dist/layers/type-utils.js +0 -118
- package/dist/layers/visitor.d.ts +0 -5
- package/dist/layers/visitor.js +0 -38
- package/dist/migration/index.d.ts +0 -73
- package/dist/migration/index.js +0 -103
- package/dist/migration/to/v3.0.0.d.ts +0 -4
- package/dist/migration/to/v3.0.0.js +0 -212
- package/dist/migration/to/v3.1.0.d.ts +0 -4
- package/dist/migration/to/v3.1.0.js +0 -194
- package/dist/migration/to/v3.10.0.d.ts +0 -4
- package/dist/migration/to/v3.10.0.js +0 -67
- package/dist/migration/to/v3.11.0.d.ts +0 -4
- package/dist/migration/to/v3.11.0.js +0 -85
- package/dist/migration/to/v3.12.3.d.ts +0 -4
- package/dist/migration/to/v3.12.3.js +0 -87
- package/dist/migration/to/v3.13.0.d.ts +0 -4
- package/dist/migration/to/v3.13.0.js +0 -17
- package/dist/migration/to/v3.17.0.d.ts +0 -4
- package/dist/migration/to/v3.17.0.js +0 -22
- package/dist/migration/to/v3.18.0.d.ts +0 -4
- package/dist/migration/to/v3.18.0.js +0 -64
- package/dist/migration/to/v3.18.1.d.ts +0 -4
- package/dist/migration/to/v3.18.1.js +0 -12
- package/dist/migration/to/v3.18.2.d.ts +0 -4
- package/dist/migration/to/v3.18.2.js +0 -19
- package/dist/migration/to/v3.20.0.d.ts +0 -4
- package/dist/migration/to/v3.20.0.js +0 -24
- package/dist/migration/to/v3.22.0.d.ts +0 -4
- package/dist/migration/to/v3.22.0.js +0 -25
- package/dist/migration/to/v3.24.0.d.ts +0 -4
- package/dist/migration/to/v3.24.0.js +0 -11
- package/dist/migration/to/v3.25.0.d.ts +0 -4
- package/dist/migration/to/v3.25.0.js +0 -11
- package/dist/migration/to/v3.3.0.d.ts +0 -4
- package/dist/migration/to/v3.3.0.js +0 -13
- package/dist/migration/to/v3.31.0.d.ts +0 -4
- package/dist/migration/to/v3.31.0.js +0 -38
- package/dist/migration/to/v3.32.0.d.ts +0 -4
- package/dist/migration/to/v3.32.0.js +0 -59
- package/dist/migration/to/v3.34.0.d.ts +0 -6
- package/dist/migration/to/v3.34.0.js +0 -111
- package/dist/migration/to/v3.36.0.d.ts +0 -4
- package/dist/migration/to/v3.36.0.js +0 -22
- package/dist/migration/to/v3.39.0.d.ts +0 -4
- package/dist/migration/to/v3.39.0.js +0 -45
- package/dist/migration/to/v3.40.0.d.ts +0 -4
- package/dist/migration/to/v3.40.0.js +0 -26
- package/dist/migration/to/v3.46.0.d.ts +0 -4
- package/dist/migration/to/v3.46.0.js +0 -35
- package/dist/migration/to/v3.57.0.d.ts +0 -4
- package/dist/migration/to/v3.57.0.js +0 -18
- package/dist/migration/to/v3.9.0.d.ts +0 -4
- package/dist/migration/to/v3.9.0.js +0 -79
- package/dist/migration/types.d.ts +0 -26
- package/dist/migration/types.js +0 -3
- package/dist/migration/utils.d.ts +0 -2
- package/dist/migration/utils.js +0 -6
- package/dist/mocks.d.ts +0 -14
- package/dist/mocks.js +0 -58
- package/dist/models/agent.d.ts +0 -3
- package/dist/models/agent.js +0 -29
- package/dist/models/project-schema.d.ts +0 -18
- package/dist/models/project-schema.js +0 -119
- package/dist/models/query.d.ts +0 -3
- package/dist/models/query.js +0 -38
- package/dist/models/runtime-schema.d.ts +0 -9
- package/dist/models/runtime-schema.js +0 -20
- package/dist/models/shape.d.ts +0 -4
- package/dist/models/shape.js +0 -36
- package/dist/models/types.d.ts +0 -36
- package/dist/models/types.js +0 -1
- package/dist/models/user-schema.d.ts +0 -7
- package/dist/models/user-schema.js +0 -9
- package/dist/patterns.d.ts +0 -12
- package/dist/patterns.js +0 -1
- package/dist/project-schema/index.d.ts +0 -211
- package/dist/project-schema/index.js +0 -83
- package/dist/project-schema/latest.d.ts +0 -2619
- package/dist/project-schema/latest.js +0 -7
- package/dist/project-schema/migrate.d.ts +0 -4
- package/dist/project-schema/migrate.js +0 -218
- package/dist/project-schema/v1.0.0.d.ts +0 -299
- package/dist/project-schema/v1.0.0.js +0 -7
- package/dist/project-schema/v3.0.0.d.ts +0 -478
- package/dist/project-schema/v3.0.0.js +0 -7
- package/dist/project-schema/v3.1.0.d.ts +0 -621
- package/dist/project-schema/v3.1.0.js +0 -7
- package/dist/project-schema/v3.10.0.d.ts +0 -1201
- package/dist/project-schema/v3.10.0.js +0 -7
- package/dist/project-schema/v3.11.0.d.ts +0 -1210
- package/dist/project-schema/v3.11.0.js +0 -7
- package/dist/project-schema/v3.12.0.d.ts +0 -1214
- package/dist/project-schema/v3.12.0.js +0 -7
- package/dist/project-schema/v3.12.1.d.ts +0 -1273
- package/dist/project-schema/v3.12.1.js +0 -7
- package/dist/project-schema/v3.12.2.d.ts +0 -1283
- package/dist/project-schema/v3.12.2.js +0 -7
- package/dist/project-schema/v3.12.3.d.ts +0 -1306
- package/dist/project-schema/v3.12.3.js +0 -7
- package/dist/project-schema/v3.13.0.d.ts +0 -1317
- package/dist/project-schema/v3.13.0.js +0 -7
- package/dist/project-schema/v3.13.1.d.ts +0 -1412
- package/dist/project-schema/v3.13.1.js +0 -7
- package/dist/project-schema/v3.14.0.d.ts +0 -1436
- package/dist/project-schema/v3.14.0.js +0 -7
- package/dist/project-schema/v3.15.0.d.ts +0 -1458
- package/dist/project-schema/v3.15.0.js +0 -7
- package/dist/project-schema/v3.16.0.d.ts +0 -1470
- package/dist/project-schema/v3.16.0.js +0 -7
- package/dist/project-schema/v3.17.0.d.ts +0 -1467
- package/dist/project-schema/v3.17.0.js +0 -7
- package/dist/project-schema/v3.17.1.d.ts +0 -1468
- package/dist/project-schema/v3.17.1.js +0 -7
- package/dist/project-schema/v3.18.0.d.ts +0 -1333
- package/dist/project-schema/v3.18.0.js +0 -7
- package/dist/project-schema/v3.18.1.d.ts +0 -1332
- package/dist/project-schema/v3.18.1.js +0 -7
- package/dist/project-schema/v3.18.2.d.ts +0 -1332
- package/dist/project-schema/v3.18.2.js +0 -7
- package/dist/project-schema/v3.19.0.d.ts +0 -1336
- package/dist/project-schema/v3.19.0.js +0 -7
- package/dist/project-schema/v3.2.0.d.ts +0 -632
- package/dist/project-schema/v3.2.0.js +0 -7
- package/dist/project-schema/v3.20.0.d.ts +0 -1336
- package/dist/project-schema/v3.20.0.js +0 -7
- package/dist/project-schema/v3.21.0.d.ts +0 -1338
- package/dist/project-schema/v3.21.0.js +0 -7
- package/dist/project-schema/v3.22.0.d.ts +0 -1344
- package/dist/project-schema/v3.22.0.js +0 -7
- package/dist/project-schema/v3.23.0.d.ts +0 -1376
- package/dist/project-schema/v3.23.0.js +0 -7
- package/dist/project-schema/v3.24.0.d.ts +0 -1364
- package/dist/project-schema/v3.24.0.js +0 -7
- package/dist/project-schema/v3.25.0.d.ts +0 -1363
- package/dist/project-schema/v3.25.0.js +0 -7
- package/dist/project-schema/v3.26.0.d.ts +0 -1388
- package/dist/project-schema/v3.26.0.js +0 -7
- package/dist/project-schema/v3.27.0.d.ts +0 -1397
- package/dist/project-schema/v3.27.0.js +0 -7
- package/dist/project-schema/v3.28.0.d.ts +0 -1416
- package/dist/project-schema/v3.28.0.js +0 -7
- package/dist/project-schema/v3.29.0.d.ts +0 -1423
- package/dist/project-schema/v3.29.0.js +0 -7
- package/dist/project-schema/v3.3.0.d.ts +0 -632
- package/dist/project-schema/v3.3.0.js +0 -7
- package/dist/project-schema/v3.30.0.d.ts +0 -1416
- package/dist/project-schema/v3.30.0.js +0 -7
- package/dist/project-schema/v3.31.0.d.ts +0 -1448
- package/dist/project-schema/v3.31.0.js +0 -7
- package/dist/project-schema/v3.32.0.d.ts +0 -1439
- package/dist/project-schema/v3.32.0.js +0 -7
- package/dist/project-schema/v3.33.0.d.ts +0 -1445
- package/dist/project-schema/v3.33.0.js +0 -7
- package/dist/project-schema/v3.34.0.d.ts +0 -1445
- package/dist/project-schema/v3.34.0.js +0 -7
- package/dist/project-schema/v3.35.0.d.ts +0 -1464
- package/dist/project-schema/v3.35.0.js +0 -7
- package/dist/project-schema/v3.36.0.d.ts +0 -1470
- package/dist/project-schema/v3.36.0.js +0 -7
- package/dist/project-schema/v3.37.0.d.ts +0 -1522
- package/dist/project-schema/v3.37.0.js +0 -7
- package/dist/project-schema/v3.38.0.d.ts +0 -1522
- package/dist/project-schema/v3.38.0.js +0 -7
- package/dist/project-schema/v3.39.0.d.ts +0 -1529
- package/dist/project-schema/v3.39.0.js +0 -7
- package/dist/project-schema/v3.4.0.d.ts +0 -624
- package/dist/project-schema/v3.4.0.js +0 -7
- package/dist/project-schema/v3.40.0.d.ts +0 -1530
- package/dist/project-schema/v3.40.0.js +0 -7
- package/dist/project-schema/v3.41.0.d.ts +0 -1530
- package/dist/project-schema/v3.41.0.js +0 -7
- package/dist/project-schema/v3.42.0.d.ts +0 -1534
- package/dist/project-schema/v3.42.0.js +0 -7
- package/dist/project-schema/v3.43.0.d.ts +0 -1536
- package/dist/project-schema/v3.43.0.js +0 -7
- package/dist/project-schema/v3.44.0.d.ts +0 -1621
- package/dist/project-schema/v3.44.0.js +0 -7
- package/dist/project-schema/v3.45.0.d.ts +0 -1650
- package/dist/project-schema/v3.45.0.js +0 -7
- package/dist/project-schema/v3.46.0.d.ts +0 -1703
- package/dist/project-schema/v3.46.0.js +0 -7
- package/dist/project-schema/v3.47.0.d.ts +0 -1736
- package/dist/project-schema/v3.47.0.js +0 -7
- package/dist/project-schema/v3.48.0.d.ts +0 -2208
- package/dist/project-schema/v3.48.0.js +0 -7
- package/dist/project-schema/v3.49.0.d.ts +0 -2217
- package/dist/project-schema/v3.49.0.js +0 -7
- package/dist/project-schema/v3.5.0.d.ts +0 -649
- package/dist/project-schema/v3.5.0.js +0 -7
- package/dist/project-schema/v3.5.1.d.ts +0 -649
- package/dist/project-schema/v3.5.1.js +0 -7
- package/dist/project-schema/v3.50.0.d.ts +0 -2269
- package/dist/project-schema/v3.50.0.js +0 -7
- package/dist/project-schema/v3.51.0.d.ts +0 -2269
- package/dist/project-schema/v3.51.0.js +0 -7
- package/dist/project-schema/v3.52.0.d.ts +0 -2269
- package/dist/project-schema/v3.52.0.js +0 -7
- package/dist/project-schema/v3.53.0.d.ts +0 -2350
- package/dist/project-schema/v3.53.0.js +0 -7
- package/dist/project-schema/v3.54.0.d.ts +0 -2369
- package/dist/project-schema/v3.54.0.js +0 -7
- package/dist/project-schema/v3.55.0.d.ts +0 -2369
- package/dist/project-schema/v3.55.0.js +0 -7
- package/dist/project-schema/v3.56.0.d.ts +0 -2405
- package/dist/project-schema/v3.56.0.js +0 -7
- package/dist/project-schema/v3.57.0.d.ts +0 -2601
- package/dist/project-schema/v3.57.0.js +0 -7
- package/dist/project-schema/v3.58.0.d.ts +0 -2601
- package/dist/project-schema/v3.58.0.js +0 -7
- package/dist/project-schema/v3.59.0.d.ts +0 -2619
- package/dist/project-schema/v3.59.0.js +0 -7
- package/dist/project-schema/v3.6.0.d.ts +0 -658
- package/dist/project-schema/v3.6.0.js +0 -7
- package/dist/project-schema/v3.7.0.d.ts +0 -961
- package/dist/project-schema/v3.7.0.js +0 -7
- package/dist/project-schema/v3.8.0.d.ts +0 -979
- package/dist/project-schema/v3.8.0.js +0 -7
- package/dist/project-schema/v3.9.0.d.ts +0 -1178
- package/dist/project-schema/v3.9.0.js +0 -7
- package/dist/project-schema/v4.0.0.d.ts +0 -1328
- package/dist/project-schema/v4.0.0.js +0 -7
- package/dist/refs.d.ts +0 -218
- package/dist/refs.js +0 -616
- package/dist/relationships.d.ts +0 -40
- package/dist/relationships.js +0 -302
- package/dist/resolvers/ai/abort-agent-message-args.d.ts +0 -16
- package/dist/resolvers/ai/abort-agent-message-args.js +0 -13
- package/dist/resolvers/ai/abort-agent-message-response.d.ts +0 -39
- package/dist/resolvers/ai/abort-agent-message-response.js +0 -19
- package/dist/resolvers/ai/agent-chat-args.d.ts +0 -17
- package/dist/resolvers/ai/agent-chat-args.js +0 -14
- package/dist/resolvers/ai/agent-chat-payload.d.ts +0 -35
- package/dist/resolvers/ai/agent-chat-payload.js +0 -26
- package/dist/resolvers/ai/agent-chat-response.d.ts +0 -289
- package/dist/resolvers/ai/agent-chat-response.js +0 -21
- package/dist/resolvers/ai/agent-generate-args.d.ts +0 -17
- package/dist/resolvers/ai/agent-generate-args.js +0 -14
- package/dist/resolvers/ai/agent-message-input.d.ts +0 -73
- package/dist/resolvers/ai/agent-message-input.js +0 -39
- package/dist/resolvers/ai/agent-message-output.d.ts +0 -169
- package/dist/resolvers/ai/agent-message-output.js +0 -77
- package/dist/resolvers/ai/agent-message-payload.d.ts +0 -507
- package/dist/resolvers/ai/agent-message-payload.js +0 -156
- package/dist/resolvers/ai/agent-run-mode.d.ts +0 -7
- package/dist/resolvers/ai/agent-run-mode.js +0 -9
- package/dist/resolvers/ai/agent-session-payload.d.ts +0 -515
- package/dist/resolvers/ai/agent-session-payload.js +0 -175
- package/dist/resolvers/ai/create-agent-session-response.d.ts +0 -199
- package/dist/resolvers/ai/create-agent-session-response.js +0 -9
- package/dist/resolvers/ai/embedding-search.d.ts +0 -54
- package/dist/resolvers/ai/embedding-search.js +0 -46
- package/dist/resolvers/ai/get-agent-message-args.d.ts +0 -16
- package/dist/resolvers/ai/get-agent-message-args.js +0 -13
- package/dist/resolvers/ai/get-agent-message-response.d.ts +0 -805
- package/dist/resolvers/ai/get-agent-message-response.js +0 -63
- package/dist/resolvers/ai/inspect-agent-args.d.ts +0 -16
- package/dist/resolvers/ai/inspect-agent-args.js +0 -13
- package/dist/resolvers/ai/inspect-agent-response.d.ts +0 -504
- package/dist/resolvers/ai/inspect-agent-response.js +0 -48
- package/dist/resolvers/ai/send-agent-feedback-args.d.ts +0 -52
- package/dist/resolvers/ai/send-agent-feedback-args.js +0 -16
- package/dist/resolvers/ai/send-agent-message-args.d.ts +0 -48
- package/dist/resolvers/ai/send-agent-message-args.js +0 -36
- package/dist/resolvers/ai/send-agent-message-response.d.ts +0 -353
- package/dist/resolvers/ai/send-agent-message-response.js +0 -51
- package/dist/resolvers/ai/types.d.ts +0 -6
- package/dist/resolvers/ai/types.js +0 -1
- package/dist/resolvers/takeshape/assets/asset-image-meta.d.ts +0 -79
- package/dist/resolvers/takeshape/assets/asset-image-meta.js +0 -98
- package/dist/resolvers/takeshape/assets/asset-image-params.d.ts +0 -901
- package/dist/resolvers/takeshape/assets/asset-image-params.js +0 -726
- package/dist/resolvers/takeshape/assets/asset-image.d.ts +0 -17
- package/dist/resolvers/takeshape/assets/asset-image.js +0 -15
- package/dist/resolvers/takeshape/assets/asset.d.ts +0 -125
- package/dist/resolvers/takeshape/assets/asset.js +0 -107
- package/dist/resolvers/takeshape/assets/constants.d.ts +0 -11
- package/dist/resolvers/takeshape/assets/constants.js +0 -11
- package/dist/resolvers/takeshape/builtins/constants.d.ts +0 -1
- package/dist/resolvers/takeshape/builtins/constants.js +0 -1
- package/dist/runtime-schema.d.ts +0 -6
- package/dist/runtime-schema.js +0 -85
- package/dist/scalars.d.ts +0 -2
- package/dist/scalars.js +0 -4
- package/dist/schema-transform.d.ts +0 -19
- package/dist/schema-transform.js +0 -74
- package/dist/schema-util.d.ts +0 -266
- package/dist/schema-util.js +0 -1127
- package/dist/schemas/auth-schemas.json +0 -374
- package/dist/schemas/index.d.ts +0 -4
- package/dist/schemas/index.js +0 -170
- package/dist/schemas/project-schema/experimental-2025-07.json +0 -1297
- package/dist/schemas/project-schema/latest.d.ts +0 -180
- package/dist/schemas/project-schema/latest.js +0 -11
- package/dist/schemas/project-schema/latest.json +0 -4846
- package/dist/schemas/project-schema/meta-schema-v1.0.0.json +0 -193
- package/dist/schemas/project-schema/meta-schema-v3.0.0.json +0 -608
- package/dist/schemas/project-schema/meta-schema-v3.1.0.json +0 -608
- package/dist/schemas/project-schema/meta-schema-v3.2.0.json +0 -612
- package/dist/schemas/project-schema/meta-schema-v3.3.0.json +0 -612
- package/dist/schemas/project-schema/meta-schema-v3.4.0.json +0 -637
- package/dist/schemas/project-schema/meta-schema-v3.5.0.json +0 -626
- package/dist/schemas/project-schema/meta-schema-v3.5.1.json +0 -626
- package/dist/schemas/project-schema/meta-schema-v3.6.0.json +0 -629
- package/dist/schemas/project-schema/meta-schema-v3.7.0.json +0 -1137
- package/dist/schemas/project-schema/meta-schema-v3.8.0.json +0 -1137
- package/dist/schemas/project-schema/meta-schema-v3.9.0.json +0 -1477
- package/dist/schemas/project-schema/v1.0.0.json +0 -321
- package/dist/schemas/project-schema/v3.0.0.json +0 -414
- package/dist/schemas/project-schema/v3.1.0.json +0 -572
- package/dist/schemas/project-schema/v3.10.0.json +0 -2097
- package/dist/schemas/project-schema/v3.11.0.json +0 -2141
- package/dist/schemas/project-schema/v3.12.0.json +0 -2144
- package/dist/schemas/project-schema/v3.12.1.json +0 -2282
- package/dist/schemas/project-schema/v3.12.2.json +0 -2304
- package/dist/schemas/project-schema/v3.12.3.json +0 -2357
- package/dist/schemas/project-schema/v3.13.0.json +0 -2377
- package/dist/schemas/project-schema/v3.14.0.json +0 -2385
- package/dist/schemas/project-schema/v3.15.0.json +0 -2365
- package/dist/schemas/project-schema/v3.16.0.json +0 -2373
- package/dist/schemas/project-schema/v3.17.0.json +0 -2378
- package/dist/schemas/project-schema/v3.17.1.json +0 -2380
- package/dist/schemas/project-schema/v3.18.0.json +0 -2356
- package/dist/schemas/project-schema/v3.18.1.json +0 -2357
- package/dist/schemas/project-schema/v3.18.2.json +0 -2357
- package/dist/schemas/project-schema/v3.19.0.json +0 -2369
- package/dist/schemas/project-schema/v3.2.0.json +0 -580
- package/dist/schemas/project-schema/v3.20.0.json +0 -2369
- package/dist/schemas/project-schema/v3.21.0.json +0 -2376
- package/dist/schemas/project-schema/v3.22.0.json +0 -2381
- package/dist/schemas/project-schema/v3.23.0.json +0 -2456
- package/dist/schemas/project-schema/v3.24.0.json +0 -2556
- package/dist/schemas/project-schema/v3.25.0.json +0 -2552
- package/dist/schemas/project-schema/v3.26.0.json +0 -2599
- package/dist/schemas/project-schema/v3.27.0.json +0 -2611
- package/dist/schemas/project-schema/v3.28.0.json +0 -2656
- package/dist/schemas/project-schema/v3.29.0.json +0 -2670
- package/dist/schemas/project-schema/v3.3.0.json +0 -581
- package/dist/schemas/project-schema/v3.30.0.json +0 -2656
- package/dist/schemas/project-schema/v3.31.0.json +0 -2714
- package/dist/schemas/project-schema/v3.32.0.json +0 -2708
- package/dist/schemas/project-schema/v3.33.0.json +0 -2715
- package/dist/schemas/project-schema/v3.34.0.json +0 -2715
- package/dist/schemas/project-schema/v3.35.0.json +0 -2748
- package/dist/schemas/project-schema/v3.36.0.json +0 -2756
- package/dist/schemas/project-schema/v3.37.0.json +0 -2821
- package/dist/schemas/project-schema/v3.38.0.json +0 -2819
- package/dist/schemas/project-schema/v3.39.0.json +0 -2827
- package/dist/schemas/project-schema/v3.4.0.json +0 -571
- package/dist/schemas/project-schema/v3.40.0.json +0 -2830
- package/dist/schemas/project-schema/v3.41.0.json +0 -2830
- package/dist/schemas/project-schema/v3.42.0.json +0 -2835
- package/dist/schemas/project-schema/v3.43.0.json +0 -2841
- package/dist/schemas/project-schema/v3.44.0.json +0 -3013
- package/dist/schemas/project-schema/v3.45.0.json +0 -3064
- package/dist/schemas/project-schema/v3.46.0.json +0 -3136
- package/dist/schemas/project-schema/v3.47.0.json +0 -3189
- package/dist/schemas/project-schema/v3.48.0.json +0 -3196
- package/dist/schemas/project-schema/v3.49.0.json +0 -3239
- package/dist/schemas/project-schema/v3.5.0.json +0 -571
- package/dist/schemas/project-schema/v3.5.1.json +0 -571
- package/dist/schemas/project-schema/v3.50.0.json +0 -3320
- package/dist/schemas/project-schema/v3.51.0.json +0 -3326
- package/dist/schemas/project-schema/v3.52.0.json +0 -3326
- package/dist/schemas/project-schema/v3.53.0.json +0 -3476
- package/dist/schemas/project-schema/v3.54.0.json +0 -3512
- package/dist/schemas/project-schema/v3.55.0.json +0 -3515
- package/dist/schemas/project-schema/v3.56.0.json +0 -3530
- package/dist/schemas/project-schema/v3.57.0.json +0 -4815
- package/dist/schemas/project-schema/v3.58.0.json +0 -4815
- package/dist/schemas/project-schema/v3.59.0.json +0 -4846
- package/dist/schemas/project-schema/v3.6.0.json +0 -587
- package/dist/schemas/project-schema/v3.7.0.json +0 -587
- package/dist/schemas/project-schema/v3.8.0.json +0 -604
- package/dist/schemas/project-schema/v3.9.0.json +0 -604
- package/dist/schemas/project-schema/v4.0.0.json +0 -2316
- package/dist/schemas/project-schema.json +0 -214
- package/dist/service-dependencies.d.ts +0 -13
- package/dist/service-dependencies.js +0 -165
- package/dist/services/services.d.ts +0 -31
- package/dist/services/services.js +0 -145
- package/dist/services/types.d.ts +0 -11
- package/dist/services/types.js +0 -1
- package/dist/services/util.d.ts +0 -16
- package/dist/services/util.js +0 -36
- package/dist/shape-paths.d.ts +0 -7
- package/dist/shape-paths.js +0 -28
- package/dist/taxonomies.d.ts +0 -15
- package/dist/taxonomies.js +0 -24
- package/dist/template-shapes/index.d.ts +0 -7
- package/dist/template-shapes/index.js +0 -33
- package/dist/template-shapes/names.d.ts +0 -10
- package/dist/template-shapes/names.js +0 -21
- package/dist/template-shapes/templates.d.ts +0 -32
- package/dist/template-shapes/templates.js +0 -316
- package/dist/template-shapes/types.d.ts +0 -15
- package/dist/template-shapes/types.js +0 -7
- package/dist/template-shapes/where.d.ts +0 -37
- package/dist/template-shapes/where.js +0 -400
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.js +0 -2
- package/dist/types/transforms.d.ts +0 -15
- package/dist/types/transforms.js +0 -1
- package/dist/types/types.d.ts +0 -200
- package/dist/types/types.js +0 -10
- package/dist/types/utils.d.ts +0 -112
- package/dist/types/utils.js +0 -269
- package/dist/unions.d.ts +0 -14
- package/dist/unions.js +0 -77
- package/dist/util/ai-tools.d.ts +0 -2
- package/dist/util/ai-tools.js +0 -14
- package/dist/util/api-indexing.d.ts +0 -9
- package/dist/util/api-indexing.js +0 -57
- package/dist/util/coerce-value.d.ts +0 -9
- package/dist/util/coerce-value.js +0 -32
- package/dist/util/detect-cycles.d.ts +0 -7
- package/dist/util/detect-cycles.js +0 -45
- package/dist/util/expressions.d.ts +0 -34
- package/dist/util/expressions.js +0 -350
- package/dist/util/find-shape-at-path.d.ts +0 -21
- package/dist/util/find-shape-at-path.js +0 -53
- package/dist/util/form-config.d.ts +0 -11
- package/dist/util/form-config.js +0 -62
- package/dist/util/get-conflicting-properties.d.ts +0 -6
- package/dist/util/get-conflicting-properties.js +0 -55
- package/dist/util/get-return-shape.d.ts +0 -4
- package/dist/util/get-return-shape.js +0 -30
- package/dist/util/has-arg.d.ts +0 -6
- package/dist/util/has-arg.js +0 -25
- package/dist/util/is-asset-property.d.ts +0 -3
- package/dist/util/is-asset-property.js +0 -11
- package/dist/util/mcp.d.ts +0 -8
- package/dist/util/mcp.js +0 -21
- package/dist/util/merge.d.ts +0 -15
- package/dist/util/merge.js +0 -254
- package/dist/util/patch-schema.d.ts +0 -8
- package/dist/util/patch-schema.js +0 -51
- package/dist/util/query-field-path.d.ts +0 -9
- package/dist/util/query-field-path.js +0 -23
- package/dist/util/shapes.d.ts +0 -5
- package/dist/util/shapes.js +0 -22
- package/dist/validate/ai.d.ts +0 -6
- package/dist/validate/ai.js +0 -183
- package/dist/validate/errors.d.ts +0 -3
- package/dist/validate/errors.js +0 -20
- package/dist/validate/types.d.ts +0 -1
- package/dist/validate/types.js +0 -1
- package/dist/validate/util.d.ts +0 -3
- package/dist/validate/util.js +0 -28
- package/dist/validate/validate.d.ts +0 -80
- package/dist/validate/validate.js +0 -1058
- package/dist/versions.d.ts +0 -4
- package/dist/versions.js +0 -4
- package/dist/workflows.d.ts +0 -14
- package/dist/workflows.js +0 -66
|
@@ -4,1632 +4,1672 @@
|
|
|
4
4
|
"locales": [
|
|
5
5
|
"en-us"
|
|
6
6
|
],
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"options": {
|
|
15
|
-
"indexedShape": "Salsify_Product"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"description": "Fetch Salsify_Product data from the API Index.",
|
|
19
|
-
"args": "TSListArgs<Salsify_Product>"
|
|
20
|
-
},
|
|
21
|
-
"listProducts": {
|
|
22
|
-
"shape": "PaginatedList<Salsify_Product>",
|
|
23
|
-
"resolver": {
|
|
24
|
-
"compose": [
|
|
25
|
-
{
|
|
26
|
-
"id": "embedding",
|
|
27
|
-
"if": "$args.description",
|
|
28
|
-
"name": "ai:createEmbedding",
|
|
29
|
-
"service": "openai",
|
|
30
|
-
"model": "text-embedding-3-small",
|
|
31
|
-
"args": {
|
|
32
|
-
"ops": [
|
|
33
|
-
{
|
|
34
|
-
"path": "input",
|
|
35
|
-
"mapping": "$args.description"
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
}
|
|
7
|
+
"workflows": {},
|
|
8
|
+
"forms": {
|
|
9
|
+
"Engine": {
|
|
10
|
+
"default": {
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"widget": "singleLineText"
|
|
39
14
|
},
|
|
40
|
-
{
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"indexedShape": "Salsify_Product"
|
|
46
|
-
},
|
|
47
|
-
"args": {
|
|
48
|
-
"ops": [
|
|
49
|
-
{
|
|
50
|
-
"path": "where.part.buyersguide.startYear.lte",
|
|
51
|
-
"mapping": "$args.year"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"path": "where.part.buyersguide.endYear.gte",
|
|
55
|
-
"mapping": "$args.year"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"path": "where.part.buyersguide.make.eq",
|
|
59
|
-
"mapping": "$args.make"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"path": "where.part.buyersguide.model.eq",
|
|
63
|
-
"mapping": "$args.model"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"path": "where.part.buyersguide.engine.in",
|
|
67
|
-
"mapping": [
|
|
68
|
-
[
|
|
69
|
-
"expressionEval",
|
|
70
|
-
{
|
|
71
|
-
"expression": "['All', $args.engine]"
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"path": "vector.name",
|
|
78
|
-
"value": "vector"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"path": "vector.value",
|
|
82
|
-
"mapping": "$resolvers.embedding"
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
}
|
|
15
|
+
"data": {
|
|
16
|
+
"widget": "singleLineText"
|
|
17
|
+
},
|
|
18
|
+
"normalizedId": {
|
|
19
|
+
"widget": "singleLineText"
|
|
86
20
|
}
|
|
21
|
+
},
|
|
22
|
+
"order": [
|
|
23
|
+
"id",
|
|
24
|
+
"data",
|
|
25
|
+
"normalizedId"
|
|
87
26
|
]
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"App": {
|
|
30
|
+
"default": {
|
|
92
31
|
"properties": {
|
|
32
|
+
"engine": {
|
|
33
|
+
"widget": "singleLineText"
|
|
34
|
+
},
|
|
93
35
|
"make": {
|
|
94
|
-
"
|
|
95
|
-
"description": "The name of the make in uppercase"
|
|
36
|
+
"widget": "singleLineText"
|
|
96
37
|
},
|
|
97
38
|
"model": {
|
|
98
|
-
"
|
|
99
|
-
"description": "The name of the model in uppercase"
|
|
39
|
+
"widget": "singleLineText"
|
|
100
40
|
},
|
|
101
41
|
"year": {
|
|
102
|
-
"
|
|
103
|
-
"description": "Four digit year as a number"
|
|
42
|
+
"widget": "singleLineText"
|
|
104
43
|
},
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"description": "The number of results to return"
|
|
44
|
+
"startYear": {
|
|
45
|
+
"widget": "number"
|
|
108
46
|
},
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"description": "The normalizedId of the engine"
|
|
47
|
+
"endYear": {
|
|
48
|
+
"widget": "number"
|
|
112
49
|
},
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
|
|
50
|
+
"apptype": {
|
|
51
|
+
"widget": "singleLineText"
|
|
52
|
+
},
|
|
53
|
+
"qty": {
|
|
54
|
+
"widget": "number"
|
|
116
55
|
}
|
|
117
56
|
},
|
|
118
|
-
"
|
|
57
|
+
"order": [
|
|
58
|
+
"engine",
|
|
119
59
|
"make",
|
|
120
60
|
"model",
|
|
121
61
|
"year",
|
|
122
|
-
"
|
|
123
|
-
"
|
|
62
|
+
"startYear",
|
|
63
|
+
"endYear",
|
|
64
|
+
"apptype",
|
|
65
|
+
"qty"
|
|
124
66
|
]
|
|
125
67
|
}
|
|
126
68
|
},
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"args": {
|
|
130
|
-
"type": "object",
|
|
69
|
+
"MockRelatedProduct": {
|
|
70
|
+
"default": {
|
|
131
71
|
"properties": {
|
|
132
|
-
"
|
|
133
|
-
"
|
|
72
|
+
"name": {
|
|
73
|
+
"widget": "singleLineText"
|
|
134
74
|
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"resolver": {
|
|
138
|
-
"service": "parts",
|
|
139
|
-
"name": "rest:get",
|
|
140
|
-
"path": "/bin/ShowMeConnect.exe",
|
|
141
|
-
"searchParams": {
|
|
142
|
-
"ops": [
|
|
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
|
-
}
|
|
159
|
-
]
|
|
160
75
|
},
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
|
|
164
|
-
"path": "$",
|
|
165
|
-
"mapping": "$finalResolver.ShowMeTheParts_PartDetails"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"path": "$.buyersguide",
|
|
169
|
-
"mapping": [
|
|
170
|
-
[
|
|
171
|
-
"get",
|
|
172
|
-
{
|
|
173
|
-
"path": "$finalResolver.ShowMeTheParts_PartDetails.buyersguide[1].app"
|
|
174
|
-
}
|
|
175
|
-
],
|
|
176
|
-
[
|
|
177
|
-
"array",
|
|
178
|
-
{
|
|
179
|
-
"shouldNest": false
|
|
180
|
-
}
|
|
181
|
-
]
|
|
182
|
-
]
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"path": "$.buyersguide[*].startYear",
|
|
186
|
-
"mapping": [
|
|
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
|
-
]
|
|
211
|
-
]
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"path": "$.buyersguide[*].endYear",
|
|
215
|
-
"mapping": [
|
|
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
|
-
]
|
|
240
|
-
]
|
|
241
|
-
}
|
|
242
|
-
]
|
|
243
|
-
},
|
|
244
|
-
"options": {
|
|
245
|
-
"ttl": 172800,
|
|
246
|
-
"timeout": 29000
|
|
247
|
-
}
|
|
76
|
+
"order": [
|
|
77
|
+
"name"
|
|
78
|
+
]
|
|
248
79
|
}
|
|
249
80
|
},
|
|
250
|
-
"
|
|
251
|
-
"
|
|
252
|
-
"
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
"resolver": {
|
|
258
|
-
"service": "parts",
|
|
259
|
-
"name": "rest:get",
|
|
260
|
-
"path": "/bin/ShowMeConnect.exe",
|
|
261
|
-
"options": {
|
|
262
|
-
"timeout": 10000,
|
|
263
|
-
"ttl": 604800
|
|
264
|
-
},
|
|
265
|
-
"searchParams": {
|
|
266
|
-
"ops": [
|
|
267
|
-
{
|
|
268
|
-
"path": "$.lookup",
|
|
269
|
-
"value": "year"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"path": "$.id",
|
|
273
|
-
"value": "69876V2_WEBeCOM"
|
|
274
|
-
}
|
|
275
|
-
]
|
|
81
|
+
"DangerousPrompt": {
|
|
82
|
+
"default": {
|
|
83
|
+
"properties": {
|
|
84
|
+
"prompt": {
|
|
85
|
+
"widget": "singleLineText"
|
|
86
|
+
},
|
|
87
|
+
"promptVector": {}
|
|
276
88
|
},
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
"mapping": [
|
|
282
|
-
[
|
|
283
|
-
"jsonPath",
|
|
284
|
-
{
|
|
285
|
-
"path": "$finalResolver.ShowMeTheParts_Year.year[*].id"
|
|
286
|
-
}
|
|
287
|
-
]
|
|
288
|
-
]
|
|
289
|
-
}
|
|
290
|
-
]
|
|
291
|
-
}
|
|
89
|
+
"order": [
|
|
90
|
+
"prompt",
|
|
91
|
+
"promptVector"
|
|
92
|
+
]
|
|
292
93
|
}
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"services": {
|
|
97
|
+
"parts": {
|
|
98
|
+
"id": "parts",
|
|
99
|
+
"title": "Parts",
|
|
100
|
+
"namespace": "Parts",
|
|
101
|
+
"provider": "rest",
|
|
102
|
+
"serviceType": "rest",
|
|
103
|
+
"authenticationType": "none",
|
|
104
|
+
"options": {
|
|
105
|
+
"endpoint": "https://www.showmethepartsdb3.com/"
|
|
301
106
|
},
|
|
302
|
-
"
|
|
107
|
+
"healthCheck": {
|
|
108
|
+
"checkName": "ping",
|
|
109
|
+
"endpoint": "https://www.showmethepartsdb3.com/bin/ShowMeConnect.exe?lookup=make&id=69876V2_WEBeCOM"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"salsify": {
|
|
113
|
+
"id": "salsify",
|
|
114
|
+
"provider": "salsify",
|
|
115
|
+
"title": "Salsify",
|
|
116
|
+
"namespace": "Salsify",
|
|
117
|
+
"serviceType": "rest",
|
|
118
|
+
"authenticationType": "bearer",
|
|
119
|
+
"options": {
|
|
120
|
+
"organizationId": "s-327cdfb7-40fb-46bc-8d4e-7009b39774f0",
|
|
121
|
+
"channelId": "404027",
|
|
122
|
+
"endpoint": "https://app.salsify.com/api/orgs/s-327cdfb7-40fb-46bc-8d4e-7009b39774f0",
|
|
123
|
+
"introspectedAt": "2023-05-01T20:35:14.201Z"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"shopify": {
|
|
127
|
+
"id": "shopify",
|
|
128
|
+
"provider": "shopify",
|
|
129
|
+
"title": "Shopify",
|
|
130
|
+
"namespace": "Shopify",
|
|
131
|
+
"serviceType": "graphql",
|
|
132
|
+
"authenticationType": "custom",
|
|
133
|
+
"options": {
|
|
134
|
+
"shop": "valvolineglobal",
|
|
135
|
+
"endpoint": "https://valvolineglobal.myshopify.com/admin/api/2022-07/graphql.json"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"openai": {
|
|
139
|
+
"id": "openai",
|
|
140
|
+
"title": "OpenAI",
|
|
141
|
+
"namespace": "OpenAI",
|
|
142
|
+
"provider": "openai",
|
|
143
|
+
"serviceType": "openapi",
|
|
144
|
+
"authenticationType": "bearer",
|
|
145
|
+
"options": {
|
|
146
|
+
"endpoint": "https://api.openai.com/v1/",
|
|
147
|
+
"spec": "https://raw.githubusercontent.com/takeshape/openapi-specs/813784d8fcac5b3fd4e468ce6f715b89c9fcb73f/specs/openai/v2.yml",
|
|
148
|
+
"transformVersion": "2.0.0",
|
|
149
|
+
"introspectedAt": "2024-06-26T19:12:52.473Z"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"anthropic": {
|
|
153
|
+
"id": "anthropic",
|
|
154
|
+
"title": "Anthropic",
|
|
155
|
+
"namespace": "Anthropic",
|
|
156
|
+
"provider": "anthropic",
|
|
157
|
+
"serviceType": "openapi",
|
|
158
|
+
"authenticationType": "custom",
|
|
159
|
+
"options": {
|
|
160
|
+
"endpoint": "https://api.anthropic.com/v1",
|
|
161
|
+
"spec": "https://raw.githubusercontent.com/takeshape/openapi-specs/d1219888103fdd900138589e4e03c0b216c0a5d1/specs/anthropic/2023-06-01.yml",
|
|
162
|
+
"headers": {
|
|
163
|
+
"anthropic-version": "2023-06-01"
|
|
164
|
+
},
|
|
165
|
+
"transformVersion": "2.0.0",
|
|
166
|
+
"introspectedAt": "2024-08-21T16:55:43.579Z"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"schemaVersion": "3.60.0",
|
|
171
|
+
"apiVersion": "2",
|
|
172
|
+
"shapes": {
|
|
173
|
+
"ChatArgs": {
|
|
174
|
+
"id": "ChatArgs",
|
|
175
|
+
"name": "ChatArgs",
|
|
176
|
+
"title": "Chat Args",
|
|
177
|
+
"schema": {
|
|
303
178
|
"type": "object",
|
|
304
179
|
"properties": {
|
|
305
|
-
"
|
|
306
|
-
"type": "string"
|
|
307
|
-
|
|
180
|
+
"input": {
|
|
181
|
+
"type": "string"
|
|
182
|
+
},
|
|
183
|
+
"sessionId": {
|
|
184
|
+
"type": "string"
|
|
308
185
|
}
|
|
309
186
|
},
|
|
310
187
|
"required": [
|
|
311
|
-
"
|
|
188
|
+
"input"
|
|
312
189
|
]
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
{
|
|
329
|
-
"path": "$.year",
|
|
330
|
-
"mapping": "$args.year"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"path": "$.id",
|
|
334
|
-
"value": "69876V2_WEBeCOM"
|
|
335
|
-
}
|
|
336
|
-
]
|
|
337
|
-
},
|
|
338
|
-
"results": {
|
|
339
|
-
"ops": [
|
|
340
|
-
{
|
|
341
|
-
"path": "$",
|
|
342
|
-
"mapping": [
|
|
343
|
-
[
|
|
344
|
-
"get",
|
|
345
|
-
{
|
|
346
|
-
"path": "$finalResolver.ShowMeTheParts_Make.make"
|
|
347
|
-
}
|
|
348
|
-
],
|
|
349
|
-
[
|
|
350
|
-
"cast",
|
|
351
|
-
{
|
|
352
|
-
"to": "array"
|
|
353
|
-
}
|
|
354
|
-
]
|
|
355
|
-
]
|
|
356
|
-
}
|
|
357
|
-
]
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"ChatResponse": {
|
|
193
|
+
"id": "ChatResponse",
|
|
194
|
+
"name": "ChatResponse",
|
|
195
|
+
"title": "ChatResponse",
|
|
196
|
+
"schema": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"properties": {
|
|
199
|
+
"content": {
|
|
200
|
+
"type": "string"
|
|
201
|
+
},
|
|
202
|
+
"sessionId": {
|
|
203
|
+
"type": "string"
|
|
204
|
+
}
|
|
358
205
|
}
|
|
359
206
|
}
|
|
360
207
|
},
|
|
361
|
-
"
|
|
362
|
-
"
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
"ttl": 604800
|
|
375
|
-
},
|
|
376
|
-
"searchParams": {
|
|
377
|
-
"ops": [
|
|
378
|
-
{
|
|
379
|
-
"path": "$.lookup",
|
|
380
|
-
"value": "make"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"path": "$.id",
|
|
384
|
-
"value": "69876V2_WEBeCOM"
|
|
385
|
-
}
|
|
386
|
-
]
|
|
387
|
-
},
|
|
388
|
-
"results": {
|
|
389
|
-
"ops": [
|
|
390
|
-
{
|
|
391
|
-
"path": "$",
|
|
392
|
-
"mapping": [
|
|
393
|
-
[
|
|
394
|
-
"get",
|
|
395
|
-
{
|
|
396
|
-
"path": "$finalResolver.ShowMeTheParts_Make.make"
|
|
397
|
-
}
|
|
398
|
-
],
|
|
399
|
-
[
|
|
400
|
-
"cast",
|
|
401
|
-
{
|
|
402
|
-
"to": "array"
|
|
403
|
-
}
|
|
404
|
-
]
|
|
405
|
-
]
|
|
406
|
-
}
|
|
407
|
-
]
|
|
208
|
+
"Model": {
|
|
209
|
+
"id": "Model",
|
|
210
|
+
"name": "Model",
|
|
211
|
+
"title": "Model",
|
|
212
|
+
"schema": {
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"id": {
|
|
216
|
+
"type": "string"
|
|
217
|
+
},
|
|
218
|
+
"data": {
|
|
219
|
+
"type": "string"
|
|
220
|
+
}
|
|
408
221
|
}
|
|
409
222
|
}
|
|
410
223
|
},
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
"
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
"@ref": "local:Model"
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
"args": {
|
|
224
|
+
"Make": {
|
|
225
|
+
"id": "Make",
|
|
226
|
+
"name": "Make",
|
|
227
|
+
"title": "Make",
|
|
228
|
+
"schema": {
|
|
420
229
|
"type": "object",
|
|
421
230
|
"properties": {
|
|
422
|
-
"
|
|
423
|
-
"type": "string"
|
|
424
|
-
"description": "A four digit year string"
|
|
231
|
+
"id": {
|
|
232
|
+
"type": "string"
|
|
425
233
|
},
|
|
426
|
-
"
|
|
427
|
-
"type": "string"
|
|
428
|
-
"description": "The make id as numerical string"
|
|
234
|
+
"data": {
|
|
235
|
+
"type": "string"
|
|
429
236
|
}
|
|
430
|
-
},
|
|
431
|
-
"required": [
|
|
432
|
-
"year",
|
|
433
|
-
"make"
|
|
434
|
-
]
|
|
435
|
-
},
|
|
436
|
-
"resolver": {
|
|
437
|
-
"service": "parts",
|
|
438
|
-
"name": "rest:get",
|
|
439
|
-
"path": "/bin/ShowMeConnect.exe",
|
|
440
|
-
"options": {
|
|
441
|
-
"timeout": 10000,
|
|
442
|
-
"ttl": 604800
|
|
443
|
-
},
|
|
444
|
-
"searchParams": {
|
|
445
|
-
"ops": [
|
|
446
|
-
{
|
|
447
|
-
"path": "$.lookup",
|
|
448
|
-
"value": "model"
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
"path": "$.year",
|
|
452
|
-
"mapping": "$args.year"
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
"path": "$.make",
|
|
456
|
-
"mapping": [
|
|
457
|
-
[
|
|
458
|
-
"expressionEval",
|
|
459
|
-
{
|
|
460
|
-
"expression": "toString($args.make).padStart(4, '0')"
|
|
461
|
-
}
|
|
462
|
-
]
|
|
463
|
-
]
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"path": "$.id",
|
|
467
|
-
"value": "69876V2_WEBeCOM"
|
|
468
|
-
}
|
|
469
|
-
]
|
|
470
|
-
},
|
|
471
|
-
"results": {
|
|
472
|
-
"ops": [
|
|
473
|
-
{
|
|
474
|
-
"path": "$",
|
|
475
|
-
"mapping": [
|
|
476
|
-
[
|
|
477
|
-
"get",
|
|
478
|
-
{
|
|
479
|
-
"path": "$finalResolver.ShowMeTheParts_Model.model"
|
|
480
|
-
}
|
|
481
|
-
],
|
|
482
|
-
[
|
|
483
|
-
"cast",
|
|
484
|
-
{
|
|
485
|
-
"to": "array"
|
|
486
|
-
}
|
|
487
|
-
]
|
|
488
|
-
]
|
|
489
|
-
}
|
|
490
|
-
]
|
|
491
237
|
}
|
|
492
238
|
}
|
|
493
239
|
},
|
|
494
|
-
"
|
|
495
|
-
"
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
"args": {
|
|
240
|
+
"Engine": {
|
|
241
|
+
"id": "Engine",
|
|
242
|
+
"name": "Engine",
|
|
243
|
+
"title": "Engine",
|
|
244
|
+
"schema": {
|
|
502
245
|
"type": "object",
|
|
503
246
|
"properties": {
|
|
504
|
-
"
|
|
247
|
+
"id": {
|
|
505
248
|
"type": "string",
|
|
506
|
-
"
|
|
249
|
+
"@mapping": "shapedb:Engine.id"
|
|
507
250
|
},
|
|
508
|
-
"
|
|
251
|
+
"data": {
|
|
509
252
|
"type": "string",
|
|
510
|
-
"
|
|
253
|
+
"@mapping": "shapedb:Engine.data"
|
|
511
254
|
},
|
|
512
|
-
"
|
|
255
|
+
"normalizedId": {
|
|
513
256
|
"type": "string",
|
|
514
|
-
"
|
|
257
|
+
"@mapping": "shapedb:Engine.normalizedId"
|
|
515
258
|
}
|
|
516
|
-
},
|
|
517
|
-
"required": [
|
|
518
|
-
"year",
|
|
519
|
-
"make",
|
|
520
|
-
"model"
|
|
521
|
-
]
|
|
522
|
-
},
|
|
523
|
-
"resolver": {
|
|
524
|
-
"service": "parts",
|
|
525
|
-
"name": "rest:get",
|
|
526
|
-
"path": "/bin/ShowMeConnect.exe",
|
|
527
|
-
"options": {
|
|
528
|
-
"timeout": 10000,
|
|
529
|
-
"ttl": 604800
|
|
530
|
-
},
|
|
531
|
-
"searchParams": {
|
|
532
|
-
"ops": [
|
|
533
|
-
{
|
|
534
|
-
"path": "$.lookup",
|
|
535
|
-
"value": "engine"
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
"path": "$.year",
|
|
539
|
-
"mapping": "$args.year"
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
"path": "$.make",
|
|
543
|
-
"mapping": [
|
|
544
|
-
[
|
|
545
|
-
"expressionEval",
|
|
546
|
-
{
|
|
547
|
-
"expression": "toString($args.make).padStart(4, '0')"
|
|
548
|
-
}
|
|
549
|
-
]
|
|
550
|
-
]
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
"path": "$.model",
|
|
554
|
-
"mapping": [
|
|
555
|
-
[
|
|
556
|
-
"expressionEval",
|
|
557
|
-
{
|
|
558
|
-
"expression": "toString($args.model).padStart(4, '0')"
|
|
559
|
-
}
|
|
560
|
-
]
|
|
561
|
-
]
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"path": "$.id",
|
|
565
|
-
"value": "69876V2_WEBeCOM"
|
|
566
|
-
}
|
|
567
|
-
]
|
|
568
|
-
},
|
|
569
|
-
"results": {
|
|
570
|
-
"ops": [
|
|
571
|
-
{
|
|
572
|
-
"path": "$",
|
|
573
|
-
"mapping": [
|
|
574
|
-
[
|
|
575
|
-
"get",
|
|
576
|
-
{
|
|
577
|
-
"path": "$finalResolver.ShowMeTheParts_Engine.engine"
|
|
578
|
-
}
|
|
579
|
-
],
|
|
580
|
-
[
|
|
581
|
-
"cast",
|
|
582
|
-
{
|
|
583
|
-
"to": "array"
|
|
584
|
-
}
|
|
585
|
-
]
|
|
586
|
-
]
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
"path": "$.[*].normalizedId",
|
|
590
|
-
"mapping": [
|
|
591
|
-
[
|
|
592
|
-
"expressionEval",
|
|
593
|
-
{
|
|
594
|
-
"expression": "$loop.item.id.split('~').slice(0,2).join('-')"
|
|
595
|
-
}
|
|
596
|
-
]
|
|
597
|
-
]
|
|
598
|
-
}
|
|
599
|
-
]
|
|
600
259
|
}
|
|
601
260
|
}
|
|
602
261
|
},
|
|
603
|
-
"
|
|
604
|
-
"
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
}
|
|
609
|
-
},
|
|
610
|
-
"args": {
|
|
262
|
+
"PartDetail": {
|
|
263
|
+
"id": "PartDetail",
|
|
264
|
+
"name": "PartDetail",
|
|
265
|
+
"title": "PartDetail",
|
|
266
|
+
"schema": {
|
|
611
267
|
"type": "object",
|
|
612
268
|
"properties": {
|
|
613
|
-
"
|
|
269
|
+
"supplier": {
|
|
614
270
|
"type": "string"
|
|
615
271
|
},
|
|
616
|
-
"
|
|
272
|
+
"app_no": {
|
|
273
|
+
"type": "integer"
|
|
274
|
+
},
|
|
275
|
+
"location": {
|
|
617
276
|
"type": "string"
|
|
618
277
|
},
|
|
619
|
-
"
|
|
278
|
+
"brand": {
|
|
620
279
|
"type": "string"
|
|
621
280
|
},
|
|
622
|
-
"
|
|
281
|
+
"part_no": {
|
|
623
282
|
"type": "string"
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
"
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
283
|
+
},
|
|
284
|
+
"part_type": {
|
|
285
|
+
"type": "string"
|
|
286
|
+
},
|
|
287
|
+
"alt_part_type": {
|
|
288
|
+
"type": "string"
|
|
289
|
+
},
|
|
290
|
+
"part_key": {
|
|
291
|
+
"type": "integer"
|
|
292
|
+
},
|
|
293
|
+
"comment": {
|
|
294
|
+
"type": "string"
|
|
295
|
+
},
|
|
296
|
+
"application": {
|
|
297
|
+
"type": "string"
|
|
298
|
+
},
|
|
299
|
+
"qty": {
|
|
300
|
+
"type": "integer"
|
|
301
|
+
},
|
|
302
|
+
"case_qty": {
|
|
303
|
+
"type": "string"
|
|
304
|
+
},
|
|
305
|
+
"price": {
|
|
306
|
+
"type": "number"
|
|
307
|
+
},
|
|
308
|
+
"storelocator": {
|
|
309
|
+
"type": "integer"
|
|
310
|
+
},
|
|
311
|
+
"doc": {
|
|
312
|
+
"type": "string"
|
|
313
|
+
},
|
|
314
|
+
"udf2": {
|
|
315
|
+
"type": "string"
|
|
316
|
+
},
|
|
317
|
+
"udf1": {
|
|
318
|
+
"type": "integer"
|
|
319
|
+
},
|
|
320
|
+
"displayorder": {
|
|
321
|
+
"type": "integer"
|
|
322
|
+
},
|
|
323
|
+
"supplierid": {
|
|
324
|
+
"type": "integer"
|
|
325
|
+
},
|
|
326
|
+
"image": {
|
|
327
|
+
"type": "string"
|
|
328
|
+
},
|
|
329
|
+
"height": {
|
|
330
|
+
"type": "integer"
|
|
331
|
+
},
|
|
332
|
+
"width": {
|
|
333
|
+
"type": "integer"
|
|
334
|
+
},
|
|
335
|
+
"smtp_brandid": {
|
|
336
|
+
"type": "string"
|
|
337
|
+
},
|
|
338
|
+
"bodystyle": {
|
|
339
|
+
"type": "string"
|
|
340
|
+
},
|
|
341
|
+
"gcommercehostid": {
|
|
342
|
+
"type": "string"
|
|
343
|
+
},
|
|
344
|
+
"aaiabrandid": {
|
|
345
|
+
"type": "string"
|
|
346
|
+
},
|
|
347
|
+
"warehouses": {
|
|
348
|
+
"type": "string"
|
|
349
|
+
},
|
|
350
|
+
"id": {
|
|
351
|
+
"type": "integer"
|
|
352
|
+
},
|
|
353
|
+
"buylinkcnt": {
|
|
354
|
+
"type": "string"
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"App": {
|
|
360
|
+
"id": "App",
|
|
361
|
+
"name": "App",
|
|
362
|
+
"title": "App",
|
|
363
|
+
"schema": {
|
|
364
|
+
"type": "object",
|
|
365
|
+
"properties": {
|
|
366
|
+
"engine": {
|
|
367
|
+
"type": "string",
|
|
368
|
+
"@mapping": "shapedb:App.engine"
|
|
369
|
+
},
|
|
370
|
+
"make": {
|
|
371
|
+
"type": "string",
|
|
372
|
+
"@mapping": "shapedb:App.make"
|
|
373
|
+
},
|
|
374
|
+
"model": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"@mapping": "shapedb:App.model"
|
|
377
|
+
},
|
|
378
|
+
"year": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"@mapping": "shapedb:App.year"
|
|
381
|
+
},
|
|
382
|
+
"startYear": {
|
|
383
|
+
"type": "integer",
|
|
384
|
+
"@mapping": "shapedb:App.startYear"
|
|
385
|
+
},
|
|
386
|
+
"endYear": {
|
|
387
|
+
"type": "integer",
|
|
388
|
+
"@mapping": "shapedb:App.endYear"
|
|
389
|
+
},
|
|
390
|
+
"apptype": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"@mapping": "shapedb:App.apptype"
|
|
393
|
+
},
|
|
394
|
+
"qty": {
|
|
395
|
+
"type": "integer",
|
|
396
|
+
"@mapping": "shapedb:App.qty"
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"Part": {
|
|
402
|
+
"id": "Part",
|
|
403
|
+
"name": "Part",
|
|
404
|
+
"schema": {
|
|
405
|
+
"properties": {
|
|
406
|
+
"buyersguide": {
|
|
407
|
+
"@indexed": {
|
|
408
|
+
"nested": true
|
|
676
409
|
},
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
"
|
|
410
|
+
"type": "array",
|
|
411
|
+
"items": {
|
|
412
|
+
"@ref": "local:App"
|
|
680
413
|
}
|
|
681
|
-
|
|
414
|
+
},
|
|
415
|
+
"part_key": {
|
|
416
|
+
"type": "string"
|
|
417
|
+
},
|
|
418
|
+
"part_no": {
|
|
419
|
+
"type": "string"
|
|
420
|
+
},
|
|
421
|
+
"part_type": {
|
|
422
|
+
"type": "string"
|
|
423
|
+
},
|
|
424
|
+
"udf1": {
|
|
425
|
+
"type": "string"
|
|
426
|
+
}
|
|
682
427
|
},
|
|
683
|
-
"
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
428
|
+
"type": "object"
|
|
429
|
+
},
|
|
430
|
+
"title": "Part"
|
|
431
|
+
},
|
|
432
|
+
"Salsify_Product": {
|
|
433
|
+
"id": "Salsify_Product",
|
|
434
|
+
"name": "Salsify_Product",
|
|
435
|
+
"title": "Salsify_Product",
|
|
436
|
+
"cache": {
|
|
437
|
+
"enabled": true,
|
|
438
|
+
"triggers": [
|
|
439
|
+
{
|
|
440
|
+
"type": "schedule",
|
|
441
|
+
"loader": "list",
|
|
442
|
+
"interval": 1440
|
|
443
|
+
}
|
|
444
|
+
],
|
|
445
|
+
"fragment": {
|
|
446
|
+
"maxDepth": 2,
|
|
447
|
+
"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}}"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"loaders": {
|
|
451
|
+
"list": {
|
|
452
|
+
"query": "salsify:Query.listChannelProducts"
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"schema": {
|
|
456
|
+
"extends": [
|
|
457
|
+
{
|
|
458
|
+
"@ref": "salsify:Product"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"type": "object",
|
|
462
|
+
"properties": {
|
|
463
|
+
"part": {
|
|
464
|
+
"@resolver": {
|
|
465
|
+
"name": "delegate",
|
|
466
|
+
"to": "local:Query.getPart",
|
|
467
|
+
"args": {
|
|
468
|
+
"ops": [
|
|
469
|
+
{
|
|
470
|
+
"path": "$.partNo",
|
|
471
|
+
"mapping": "$source.mpn"
|
|
472
|
+
}
|
|
473
|
+
]
|
|
692
474
|
}
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
475
|
+
},
|
|
476
|
+
"@ref": "local:Part",
|
|
477
|
+
"title": ""
|
|
478
|
+
},
|
|
479
|
+
"shopifyProductVariant": {
|
|
480
|
+
"@resolver": {
|
|
481
|
+
"name": "graphql:query",
|
|
482
|
+
"service": "shopify",
|
|
483
|
+
"fieldName": "productVariants",
|
|
484
|
+
"options": {
|
|
485
|
+
"selectionSet": "{nodes {..._parentFragment}}",
|
|
486
|
+
"ttl": 172800
|
|
487
|
+
},
|
|
488
|
+
"args": {
|
|
489
|
+
"ops": [
|
|
490
|
+
{
|
|
491
|
+
"path": "first",
|
|
492
|
+
"value": "1"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"path": "query",
|
|
496
|
+
"mapping": [
|
|
497
|
+
[
|
|
498
|
+
"get",
|
|
499
|
+
{
|
|
500
|
+
"path": [
|
|
501
|
+
"$source.mpn"
|
|
502
|
+
]
|
|
503
|
+
}
|
|
504
|
+
],
|
|
505
|
+
[
|
|
506
|
+
"format",
|
|
507
|
+
{
|
|
508
|
+
"template": "sku:%s"
|
|
509
|
+
}
|
|
510
|
+
]
|
|
511
|
+
]
|
|
512
|
+
}
|
|
513
|
+
]
|
|
514
|
+
},
|
|
515
|
+
"results": {
|
|
516
|
+
"ops": [
|
|
517
|
+
{
|
|
518
|
+
"path": "$",
|
|
519
|
+
"mapping": "$finalResolver[0]"
|
|
520
|
+
}
|
|
521
|
+
]
|
|
698
522
|
}
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
"
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
523
|
+
},
|
|
524
|
+
"@ref": "shopify:ProductVariant",
|
|
525
|
+
"title": ""
|
|
526
|
+
},
|
|
527
|
+
"vector": {
|
|
528
|
+
"type": "array",
|
|
529
|
+
"@dependencies": "{shopifyProductName diyMarketingCopy}",
|
|
530
|
+
"@resolver": {
|
|
531
|
+
"name": "ai:createEmbedding",
|
|
532
|
+
"service": "openai",
|
|
533
|
+
"model": "text-embedding-3-small",
|
|
534
|
+
"options": {
|
|
535
|
+
"useDependencies": true
|
|
709
536
|
}
|
|
710
|
-
|
|
711
|
-
|
|
537
|
+
},
|
|
538
|
+
"items": {
|
|
539
|
+
"type": "number"
|
|
540
|
+
},
|
|
541
|
+
"title": "Vector",
|
|
542
|
+
"@tag": "vector"
|
|
543
|
+
}
|
|
712
544
|
}
|
|
713
|
-
|
|
714
|
-
|
|
545
|
+
}
|
|
546
|
+
]
|
|
715
547
|
}
|
|
716
548
|
},
|
|
717
|
-
"
|
|
718
|
-
"
|
|
719
|
-
"
|
|
549
|
+
"MockRelatedProduct": {
|
|
550
|
+
"id": "cWMNa7fp5",
|
|
551
|
+
"name": "MockRelatedProduct",
|
|
552
|
+
"title": "Mock Related Product List",
|
|
553
|
+
"model": {
|
|
554
|
+
"type": "multiple"
|
|
555
|
+
},
|
|
556
|
+
"schema": {
|
|
720
557
|
"type": "object",
|
|
721
558
|
"properties": {
|
|
722
|
-
"
|
|
723
|
-
"
|
|
724
|
-
"
|
|
725
|
-
|
|
726
|
-
"size": {
|
|
727
|
-
"type": "integer",
|
|
728
|
-
"default": 10
|
|
559
|
+
"name": {
|
|
560
|
+
"@mapping": "shapedb:MockRelatedProduct.7nsXMIclo",
|
|
561
|
+
"type": "string",
|
|
562
|
+
"title": "Name"
|
|
729
563
|
}
|
|
730
564
|
}
|
|
731
|
-
},
|
|
732
|
-
"resolver": {
|
|
733
|
-
"name": "salsify:listChannelProducts",
|
|
734
|
-
"service": "salsify",
|
|
735
|
-
"results": {
|
|
736
|
-
"ops": [
|
|
737
|
-
{
|
|
738
|
-
"path": "$.items",
|
|
739
|
-
"mapping": [
|
|
740
|
-
[
|
|
741
|
-
"expressionEval",
|
|
742
|
-
{
|
|
743
|
-
"expression": "$finalResolver.slice($args.from, $args.from + $args.size)"
|
|
744
|
-
}
|
|
745
|
-
]
|
|
746
|
-
]
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
"path": "$.total",
|
|
750
|
-
"mapping": [
|
|
751
|
-
[
|
|
752
|
-
"expressionEval",
|
|
753
|
-
{
|
|
754
|
-
"expression": "$finalResolver.length"
|
|
755
|
-
}
|
|
756
|
-
]
|
|
757
|
-
]
|
|
758
|
-
}
|
|
759
|
-
]
|
|
760
|
-
}
|
|
761
565
|
}
|
|
762
566
|
},
|
|
763
|
-
"
|
|
764
|
-
"
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
567
|
+
"DangerousPrompt": {
|
|
568
|
+
"id": "rQTVfBrXi",
|
|
569
|
+
"name": "DangerousPrompt",
|
|
570
|
+
"title": "Dangerous Prompt",
|
|
571
|
+
"model": {
|
|
572
|
+
"type": "multiple"
|
|
768
573
|
},
|
|
769
|
-
"
|
|
574
|
+
"schema": {
|
|
770
575
|
"type": "object",
|
|
771
576
|
"properties": {
|
|
772
|
-
"
|
|
577
|
+
"prompt": {
|
|
578
|
+
"@mapping": "shapedb:DangerousPrompt.JBSfBEWUP",
|
|
773
579
|
"type": "string",
|
|
774
|
-
"
|
|
775
|
-
|
|
580
|
+
"title": "Prompt"
|
|
581
|
+
},
|
|
582
|
+
"promptVector": {
|
|
583
|
+
"type": "array",
|
|
584
|
+
"items": {
|
|
585
|
+
"type": "number"
|
|
586
|
+
},
|
|
587
|
+
"title": "Prompt Vector",
|
|
588
|
+
"@tag": "vector",
|
|
589
|
+
"@dependencies": "{prompt}",
|
|
590
|
+
"@resolver": {
|
|
591
|
+
"name": "ai:createEmbedding",
|
|
592
|
+
"service": "openai",
|
|
593
|
+
"model": "text-embedding-3-small",
|
|
594
|
+
"options": {
|
|
595
|
+
"useDependencies": true
|
|
596
|
+
}
|
|
597
|
+
}
|
|
776
598
|
}
|
|
777
599
|
},
|
|
778
600
|
"required": [
|
|
779
|
-
"
|
|
601
|
+
"prompt"
|
|
780
602
|
]
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
"queries": {
|
|
607
|
+
"getIndexedProductList": {
|
|
608
|
+
"shape": "PaginatedList<Salsify_Product>",
|
|
609
|
+
"resolver": {
|
|
610
|
+
"shapeName": "Salsify_Product",
|
|
611
|
+
"name": "takeshape:queryApiIndex",
|
|
612
|
+
"service": "takeshape",
|
|
613
|
+
"options": {
|
|
614
|
+
"indexedShape": "Salsify_Product"
|
|
615
|
+
}
|
|
781
616
|
},
|
|
782
|
-
"
|
|
617
|
+
"description": "Fetch Salsify_Product data from the API Index.",
|
|
618
|
+
"args": "TSListArgs<Salsify_Product>"
|
|
783
619
|
},
|
|
784
|
-
"
|
|
620
|
+
"listProducts": {
|
|
621
|
+
"shape": "PaginatedList<Salsify_Product>",
|
|
785
622
|
"resolver": {
|
|
786
|
-
"
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
623
|
+
"compose": [
|
|
624
|
+
{
|
|
625
|
+
"id": "embedding",
|
|
626
|
+
"if": "$args.description",
|
|
627
|
+
"name": "ai:createEmbedding",
|
|
628
|
+
"service": "openai",
|
|
629
|
+
"model": "text-embedding-3-small",
|
|
630
|
+
"args": {
|
|
631
|
+
"ops": [
|
|
632
|
+
{
|
|
633
|
+
"path": "input",
|
|
634
|
+
"mapping": "$args.description"
|
|
635
|
+
}
|
|
636
|
+
]
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"shapeName": "Salsify_Product",
|
|
641
|
+
"name": "takeshape:vectorSearch",
|
|
642
|
+
"service": "takeshape",
|
|
643
|
+
"options": {
|
|
644
|
+
"indexedShape": "Salsify_Product"
|
|
645
|
+
},
|
|
646
|
+
"args": {
|
|
647
|
+
"ops": [
|
|
648
|
+
{
|
|
649
|
+
"path": "where.part.buyersguide.startYear.lte",
|
|
650
|
+
"mapping": "$args.year"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"path": "where.part.buyersguide.endYear.gte",
|
|
654
|
+
"mapping": "$args.year"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"path": "where.part.buyersguide.make.eq",
|
|
658
|
+
"mapping": "$args.make"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"path": "where.part.buyersguide.model.eq",
|
|
662
|
+
"mapping": "$args.model"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"path": "where.part.buyersguide.engine.in",
|
|
666
|
+
"mapping": [
|
|
667
|
+
[
|
|
668
|
+
"expressionEval",
|
|
669
|
+
{
|
|
670
|
+
"expression": "['All', $args.engine]"
|
|
671
|
+
}
|
|
672
|
+
]
|
|
673
|
+
]
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"path": "vector.name",
|
|
677
|
+
"value": "vector"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"path": "vector.value",
|
|
681
|
+
"mapping": "$resolvers.embedding"
|
|
682
|
+
}
|
|
683
|
+
]
|
|
684
|
+
}
|
|
796
685
|
}
|
|
797
|
-
},
|
|
798
|
-
"required": [
|
|
799
|
-
"handle"
|
|
800
686
|
]
|
|
801
687
|
},
|
|
802
|
-
"
|
|
803
|
-
},
|
|
804
|
-
"Shopify_collections": {
|
|
805
|
-
"resolver": {
|
|
806
|
-
"name": "graphql:query",
|
|
807
|
-
"service": "shopify",
|
|
808
|
-
"fieldName": "collections"
|
|
809
|
-
},
|
|
688
|
+
"description": "Given make, model and year get a list of the compatible products",
|
|
810
689
|
"args": {
|
|
811
690
|
"type": "object",
|
|
812
691
|
"properties": {
|
|
813
|
-
"
|
|
814
|
-
"type": "integer",
|
|
815
|
-
"description": "Returns up to the first `n` elements from the list."
|
|
816
|
-
},
|
|
817
|
-
"after": {
|
|
692
|
+
"make": {
|
|
818
693
|
"type": "string",
|
|
819
|
-
"description": "
|
|
820
|
-
},
|
|
821
|
-
"last": {
|
|
822
|
-
"type": "integer",
|
|
823
|
-
"description": "Returns up to the last `n` elements from the list."
|
|
694
|
+
"description": "The name of the make in uppercase"
|
|
824
695
|
},
|
|
825
|
-
"
|
|
696
|
+
"model": {
|
|
826
697
|
"type": "string",
|
|
827
|
-
"description": "
|
|
698
|
+
"description": "The name of the model in uppercase"
|
|
828
699
|
},
|
|
829
|
-
"
|
|
830
|
-
"type": "
|
|
831
|
-
"description": "
|
|
832
|
-
"default": false
|
|
700
|
+
"year": {
|
|
701
|
+
"type": "number",
|
|
702
|
+
"description": "Four digit year as a number"
|
|
833
703
|
},
|
|
834
|
-
"
|
|
835
|
-
"
|
|
836
|
-
"description": "
|
|
837
|
-
"default": "ID"
|
|
704
|
+
"size": {
|
|
705
|
+
"type": "number",
|
|
706
|
+
"description": "The number of results to return"
|
|
838
707
|
},
|
|
839
|
-
"
|
|
708
|
+
"engine": {
|
|
840
709
|
"type": "string",
|
|
841
|
-
"description": "
|
|
710
|
+
"description": "The normalizedId of the engine"
|
|
842
711
|
},
|
|
843
|
-
"
|
|
712
|
+
"description": {
|
|
844
713
|
"type": "string",
|
|
845
|
-
"
|
|
846
|
-
"description": "The ID of an existing saved search.\nThe search’s query string is used as the query argument.\nRefer to [SavedSearch](https://shopify.dev/api/admin-graphql/latest/objects/savedsearch)."
|
|
714
|
+
"description": "A short description of the part you are looking for to be used for semantic search."
|
|
847
715
|
}
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
|
|
716
|
+
},
|
|
717
|
+
"required": [
|
|
718
|
+
"make",
|
|
719
|
+
"model",
|
|
720
|
+
"year",
|
|
721
|
+
"engine",
|
|
722
|
+
"description"
|
|
723
|
+
]
|
|
724
|
+
}
|
|
851
725
|
},
|
|
852
|
-
"
|
|
853
|
-
"
|
|
854
|
-
"name": "graphql:query",
|
|
855
|
-
"service": "shopify",
|
|
856
|
-
"fieldName": "product"
|
|
857
|
-
},
|
|
726
|
+
"getPart": {
|
|
727
|
+
"shape": "Part",
|
|
858
728
|
"args": {
|
|
859
729
|
"type": "object",
|
|
860
730
|
"properties": {
|
|
861
|
-
"
|
|
862
|
-
"type": "string"
|
|
863
|
-
"@tag": "id",
|
|
864
|
-
"description": "The ID of the Product to return."
|
|
731
|
+
"partNo": {
|
|
732
|
+
"type": "string"
|
|
865
733
|
}
|
|
866
|
-
},
|
|
867
|
-
"required": [
|
|
868
|
-
"id"
|
|
869
|
-
]
|
|
870
|
-
},
|
|
871
|
-
"shape": "Shopify_Product"
|
|
872
|
-
},
|
|
873
|
-
"getMockRelatedProduct": {
|
|
874
|
-
"shape": "MockRelatedProduct",
|
|
875
|
-
"resolver": {
|
|
876
|
-
"name": "shapedb:get",
|
|
877
|
-
"service": "shapedb",
|
|
878
|
-
"shapeName": "MockRelatedProduct"
|
|
879
|
-
},
|
|
880
|
-
"description": "Get a MockRelatedProduct by ID",
|
|
881
|
-
"args": "TSGetArgs<MockRelatedProduct>"
|
|
882
|
-
},
|
|
883
|
-
"getMockRelatedProductList": {
|
|
884
|
-
"shape": "PaginatedList<MockRelatedProduct>",
|
|
885
|
-
"resolver": {
|
|
886
|
-
"name": "shapedb:list",
|
|
887
|
-
"service": "shapedb",
|
|
888
|
-
"shapeName": "MockRelatedProduct"
|
|
889
|
-
},
|
|
890
|
-
"description": "Returns a list MockRelatedProduct in natural order.",
|
|
891
|
-
"args": "TSListArgs<MockRelatedProduct>"
|
|
892
|
-
},
|
|
893
|
-
"getIndexedSalsifyProductList": {
|
|
894
|
-
"shape": "PaginatedList<Salsify_Product>",
|
|
895
|
-
"resolver": {
|
|
896
|
-
"shapeName": "Salsify_Product",
|
|
897
|
-
"name": "takeshape:queryApiIndex",
|
|
898
|
-
"service": "takeshape",
|
|
899
|
-
"options": {
|
|
900
|
-
"indexedShape": "Salsify_Product"
|
|
901
734
|
}
|
|
902
735
|
},
|
|
903
|
-
"description": "Fetch Salsify_Product data from the API Index.",
|
|
904
|
-
"args": "TSListArgs<Salsify_Product>"
|
|
905
|
-
},
|
|
906
|
-
"getDangerousPrompt": {
|
|
907
|
-
"shape": "DangerousPrompt",
|
|
908
|
-
"resolver": {
|
|
909
|
-
"name": "shapedb:get",
|
|
910
|
-
"service": "shapedb",
|
|
911
|
-
"shapeName": "DangerousPrompt"
|
|
912
|
-
},
|
|
913
|
-
"description": "Get a DangerousPrompt by ID",
|
|
914
|
-
"args": "TSGetArgs<DangerousPrompt>"
|
|
915
|
-
},
|
|
916
|
-
"getDangerousPromptList": {
|
|
917
|
-
"shape": "PaginatedList<DangerousPrompt>",
|
|
918
|
-
"resolver": {
|
|
919
|
-
"name": "shapedb:list",
|
|
920
|
-
"service": "shapedb",
|
|
921
|
-
"shapeName": "DangerousPrompt"
|
|
922
|
-
},
|
|
923
|
-
"description": "Returns a list DangerousPrompt in natural order.",
|
|
924
|
-
"args": "TSListArgs<DangerousPrompt>"
|
|
925
|
-
}
|
|
926
|
-
},
|
|
927
|
-
"mutations": {
|
|
928
|
-
"chat": {
|
|
929
|
-
"description": "Fetch Salsify_Product data from the API Index.",
|
|
930
|
-
"shape": "ChatResponse",
|
|
931
|
-
"args": "ChatArgs",
|
|
932
|
-
"resolver": {
|
|
933
|
-
"name": "ai:chat",
|
|
934
|
-
"service": "openai",
|
|
935
|
-
"model": "gpt-4o",
|
|
936
|
-
"systemPrompt": "You are a very helpful assistant. \n\nFirst you must verify the user's car's \"fitment data\" which is defined as the year, make, model and engine. The year must be between 1918 and 2025. The make must be validated by the getMakes tool. The model must be validated with the getModels tool. The engine must be validated with the getEngines tool. Do not assume any fitment data always present the options available from the appropriate tool call. \n\nAfter verifying the \"fitment data\" you should suggest up to five compatible products using the listProducts tool. Please include product IDs from Shopify only, where appropriate, on their own line, with 2 line breaks before and after, with no markdown or styling, in the format: `gid://shopify/Product/8133116887317`",
|
|
937
|
-
"tools": [
|
|
938
|
-
"getMakes",
|
|
939
|
-
"getModels",
|
|
940
|
-
"getEngines",
|
|
941
|
-
{
|
|
942
|
-
"ref": "listProducts",
|
|
943
|
-
"selectionSet": "{items {shopifyProductName shopifyProductId diyMarketingCopy}}"
|
|
944
|
-
}
|
|
945
|
-
],
|
|
946
|
-
"guardrails": [
|
|
947
|
-
{
|
|
948
|
-
"name": "similarity",
|
|
949
|
-
"shape": "DangerousPrompt",
|
|
950
|
-
"defaultResponse": "Sorry let's talk about Valvoline"
|
|
951
|
-
}
|
|
952
|
-
]
|
|
953
|
-
}
|
|
954
|
-
},
|
|
955
|
-
"updateMockRelatedProduct": {
|
|
956
|
-
"shape": "UpdateResult<MockRelatedProduct>",
|
|
957
|
-
"resolver": {
|
|
958
|
-
"name": "shapedb:update",
|
|
959
|
-
"service": "shapedb",
|
|
960
|
-
"shapeName": "MockRelatedProduct"
|
|
961
|
-
},
|
|
962
|
-
"description": "Update MockRelatedProduct",
|
|
963
|
-
"args": "UpdateArgs<MockRelatedProduct>"
|
|
964
|
-
},
|
|
965
|
-
"createMockRelatedProduct": {
|
|
966
|
-
"shape": "CreateResult<MockRelatedProduct>",
|
|
967
|
-
"resolver": {
|
|
968
|
-
"name": "shapedb:create",
|
|
969
|
-
"service": "shapedb",
|
|
970
|
-
"shapeName": "MockRelatedProduct"
|
|
971
|
-
},
|
|
972
|
-
"description": "Create MockRelatedProduct",
|
|
973
|
-
"args": "CreateArgs<MockRelatedProduct>"
|
|
974
|
-
},
|
|
975
|
-
"duplicateMockRelatedProduct": {
|
|
976
|
-
"shape": "DuplicateResult<MockRelatedProduct>",
|
|
977
|
-
"resolver": {
|
|
978
|
-
"name": "shapedb:duplicate",
|
|
979
|
-
"service": "shapedb",
|
|
980
|
-
"shapeName": "MockRelatedProduct"
|
|
981
|
-
},
|
|
982
|
-
"description": "Duplicate MockRelatedProduct",
|
|
983
|
-
"args": "DuplicateArgs<MockRelatedProduct>"
|
|
984
|
-
},
|
|
985
|
-
"deleteMockRelatedProduct": {
|
|
986
|
-
"shape": "DeleteResult<MockRelatedProduct>",
|
|
987
|
-
"resolver": {
|
|
988
|
-
"name": "shapedb:delete",
|
|
989
|
-
"service": "shapedb",
|
|
990
|
-
"shapeName": "MockRelatedProduct"
|
|
991
|
-
},
|
|
992
|
-
"description": "Delete MockRelatedProduct",
|
|
993
|
-
"args": "DeleteArgs<MockRelatedProduct>"
|
|
994
|
-
},
|
|
995
|
-
"updateDangerousPrompt": {
|
|
996
|
-
"shape": "UpdateResult<DangerousPrompt>",
|
|
997
736
|
"resolver": {
|
|
998
|
-
"
|
|
999
|
-
"
|
|
1000
|
-
"
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
737
|
+
"service": "parts",
|
|
738
|
+
"name": "rest:get",
|
|
739
|
+
"path": "/bin/ShowMeConnect.exe",
|
|
740
|
+
"searchParams": {
|
|
741
|
+
"ops": [
|
|
742
|
+
{
|
|
743
|
+
"path": "$.lookup",
|
|
744
|
+
"value": "partdetailfull"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"path": "$.udf",
|
|
748
|
+
"mapping": "$args.partNo"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"path": "$.id",
|
|
752
|
+
"value": "69876V2_WEBeCOM"
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"path": "$.bust",
|
|
756
|
+
"value": "2"
|
|
757
|
+
}
|
|
758
|
+
]
|
|
759
|
+
},
|
|
760
|
+
"results": {
|
|
761
|
+
"ops": [
|
|
762
|
+
{
|
|
763
|
+
"path": "$",
|
|
764
|
+
"mapping": "$finalResolver.ShowMeTheParts_PartDetails"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"path": "$.buyersguide",
|
|
768
|
+
"mapping": [
|
|
769
|
+
[
|
|
770
|
+
"get",
|
|
771
|
+
{
|
|
772
|
+
"path": "$finalResolver.ShowMeTheParts_PartDetails.buyersguide[1].app"
|
|
773
|
+
}
|
|
774
|
+
],
|
|
775
|
+
[
|
|
776
|
+
"array",
|
|
777
|
+
{
|
|
778
|
+
"shouldNest": false
|
|
779
|
+
}
|
|
780
|
+
]
|
|
781
|
+
]
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"path": "$.buyersguide[*].startYear",
|
|
785
|
+
"mapping": [
|
|
786
|
+
[
|
|
787
|
+
"get",
|
|
788
|
+
{
|
|
789
|
+
"path": "$loop.item.year"
|
|
790
|
+
}
|
|
791
|
+
],
|
|
792
|
+
[
|
|
793
|
+
"cast",
|
|
794
|
+
{
|
|
795
|
+
"to": "string"
|
|
796
|
+
}
|
|
797
|
+
],
|
|
798
|
+
[
|
|
799
|
+
"yearRange",
|
|
800
|
+
{
|
|
801
|
+
"select": "last"
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
[
|
|
805
|
+
"cast",
|
|
806
|
+
{
|
|
807
|
+
"to": "integer"
|
|
808
|
+
}
|
|
809
|
+
]
|
|
810
|
+
]
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"path": "$.buyersguide[*].endYear",
|
|
814
|
+
"mapping": [
|
|
815
|
+
[
|
|
816
|
+
"get",
|
|
817
|
+
{
|
|
818
|
+
"path": "$loop.item.year"
|
|
819
|
+
}
|
|
820
|
+
],
|
|
821
|
+
[
|
|
822
|
+
"cast",
|
|
823
|
+
{
|
|
824
|
+
"to": "string"
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
[
|
|
828
|
+
"yearRange",
|
|
829
|
+
{
|
|
830
|
+
"select": "first"
|
|
831
|
+
}
|
|
832
|
+
],
|
|
833
|
+
[
|
|
834
|
+
"cast",
|
|
835
|
+
{
|
|
836
|
+
"to": "integer"
|
|
837
|
+
}
|
|
838
|
+
]
|
|
839
|
+
]
|
|
840
|
+
}
|
|
841
|
+
]
|
|
842
|
+
},
|
|
843
|
+
"options": {
|
|
844
|
+
"ttl": 172800,
|
|
845
|
+
"timeout": 29000
|
|
846
|
+
}
|
|
847
|
+
}
|
|
1004
848
|
},
|
|
1005
|
-
"
|
|
1006
|
-
"shape":
|
|
1007
|
-
|
|
1008
|
-
"
|
|
1009
|
-
|
|
1010
|
-
|
|
849
|
+
"getYears": {
|
|
850
|
+
"shape": {
|
|
851
|
+
"type": "array",
|
|
852
|
+
"items": {
|
|
853
|
+
"type": "string"
|
|
854
|
+
}
|
|
1011
855
|
},
|
|
1012
|
-
"description": "Create DangerousPrompt",
|
|
1013
|
-
"args": "CreateArgs<DangerousPrompt>"
|
|
1014
|
-
},
|
|
1015
|
-
"duplicateDangerousPrompt": {
|
|
1016
|
-
"shape": "DuplicateResult<DangerousPrompt>",
|
|
1017
856
|
"resolver": {
|
|
1018
|
-
"
|
|
1019
|
-
"
|
|
1020
|
-
"
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
857
|
+
"service": "parts",
|
|
858
|
+
"name": "rest:get",
|
|
859
|
+
"path": "/bin/ShowMeConnect.exe",
|
|
860
|
+
"options": {
|
|
861
|
+
"timeout": 10000,
|
|
862
|
+
"ttl": 604800
|
|
863
|
+
},
|
|
864
|
+
"searchParams": {
|
|
865
|
+
"ops": [
|
|
866
|
+
{
|
|
867
|
+
"path": "$.lookup",
|
|
868
|
+
"value": "year"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"path": "$.id",
|
|
872
|
+
"value": "69876V2_WEBeCOM"
|
|
873
|
+
}
|
|
874
|
+
]
|
|
875
|
+
},
|
|
876
|
+
"results": {
|
|
877
|
+
"ops": [
|
|
878
|
+
{
|
|
879
|
+
"path": "$",
|
|
880
|
+
"mapping": [
|
|
881
|
+
[
|
|
882
|
+
"jsonPath",
|
|
883
|
+
{
|
|
884
|
+
"path": "$finalResolver.ShowMeTheParts_Year.year[*].id"
|
|
885
|
+
}
|
|
886
|
+
]
|
|
887
|
+
]
|
|
888
|
+
}
|
|
889
|
+
]
|
|
890
|
+
}
|
|
891
|
+
}
|
|
1024
892
|
},
|
|
1025
|
-
"
|
|
1026
|
-
"
|
|
1027
|
-
"
|
|
1028
|
-
"
|
|
1029
|
-
"
|
|
1030
|
-
|
|
893
|
+
"getMakes": {
|
|
894
|
+
"description": "Given a four digit year string list the valid makes for that year",
|
|
895
|
+
"shape": {
|
|
896
|
+
"type": "array",
|
|
897
|
+
"items": {
|
|
898
|
+
"@ref": "local:Make"
|
|
899
|
+
}
|
|
1031
900
|
},
|
|
1032
|
-
"
|
|
1033
|
-
"args": "DeleteArgs<DangerousPrompt>"
|
|
1034
|
-
}
|
|
1035
|
-
},
|
|
1036
|
-
"shapes": {
|
|
1037
|
-
"ChatArgs": {
|
|
1038
|
-
"id": "ChatArgs",
|
|
1039
|
-
"name": "ChatArgs",
|
|
1040
|
-
"title": "Chat Args",
|
|
1041
|
-
"schema": {
|
|
901
|
+
"args": {
|
|
1042
902
|
"type": "object",
|
|
1043
903
|
"properties": {
|
|
1044
|
-
"
|
|
1045
|
-
"type": "string"
|
|
1046
|
-
|
|
1047
|
-
"sessionId": {
|
|
1048
|
-
"type": "string"
|
|
904
|
+
"year": {
|
|
905
|
+
"type": "string",
|
|
906
|
+
"description": "A four digit year string"
|
|
1049
907
|
}
|
|
1050
908
|
},
|
|
1051
909
|
"required": [
|
|
1052
|
-
"
|
|
910
|
+
"year"
|
|
1053
911
|
]
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
912
|
+
},
|
|
913
|
+
"resolver": {
|
|
914
|
+
"service": "parts",
|
|
915
|
+
"name": "rest:get",
|
|
916
|
+
"path": "/bin/ShowMeConnect.exe",
|
|
917
|
+
"options": {
|
|
918
|
+
"timeout": 10000,
|
|
919
|
+
"ttl": 604800
|
|
920
|
+
},
|
|
921
|
+
"searchParams": {
|
|
922
|
+
"ops": [
|
|
923
|
+
{
|
|
924
|
+
"path": "$.lookup",
|
|
925
|
+
"value": "make"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"path": "$.year",
|
|
929
|
+
"mapping": "$args.year"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"path": "$.id",
|
|
933
|
+
"value": "69876V2_WEBeCOM"
|
|
934
|
+
}
|
|
935
|
+
]
|
|
936
|
+
},
|
|
937
|
+
"results": {
|
|
938
|
+
"ops": [
|
|
939
|
+
{
|
|
940
|
+
"path": "$",
|
|
941
|
+
"mapping": [
|
|
942
|
+
[
|
|
943
|
+
"get",
|
|
944
|
+
{
|
|
945
|
+
"path": "$finalResolver.ShowMeTheParts_Make.make"
|
|
946
|
+
}
|
|
947
|
+
],
|
|
948
|
+
[
|
|
949
|
+
"cast",
|
|
950
|
+
{
|
|
951
|
+
"to": "array"
|
|
952
|
+
}
|
|
953
|
+
]
|
|
954
|
+
]
|
|
955
|
+
}
|
|
956
|
+
]
|
|
1069
957
|
}
|
|
1070
958
|
}
|
|
1071
959
|
},
|
|
1072
|
-
"
|
|
1073
|
-
"
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
960
|
+
"getAllMakes": {
|
|
961
|
+
"shape": {
|
|
962
|
+
"type": "array",
|
|
963
|
+
"items": {
|
|
964
|
+
"@ref": "local:Make"
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
"resolver": {
|
|
968
|
+
"service": "parts",
|
|
969
|
+
"name": "rest:get",
|
|
970
|
+
"path": "/bin/ShowMeConnect.exe",
|
|
971
|
+
"options": {
|
|
972
|
+
"timeout": 10000,
|
|
973
|
+
"ttl": 604800
|
|
974
|
+
},
|
|
975
|
+
"searchParams": {
|
|
976
|
+
"ops": [
|
|
977
|
+
{
|
|
978
|
+
"path": "$.lookup",
|
|
979
|
+
"value": "make"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"path": "$.id",
|
|
983
|
+
"value": "69876V2_WEBeCOM"
|
|
984
|
+
}
|
|
985
|
+
]
|
|
986
|
+
},
|
|
987
|
+
"results": {
|
|
988
|
+
"ops": [
|
|
989
|
+
{
|
|
990
|
+
"path": "$",
|
|
991
|
+
"mapping": [
|
|
992
|
+
[
|
|
993
|
+
"get",
|
|
994
|
+
{
|
|
995
|
+
"path": "$finalResolver.ShowMeTheParts_Make.make"
|
|
996
|
+
}
|
|
997
|
+
],
|
|
998
|
+
[
|
|
999
|
+
"cast",
|
|
1000
|
+
{
|
|
1001
|
+
"to": "array"
|
|
1002
|
+
}
|
|
1003
|
+
]
|
|
1004
|
+
]
|
|
1005
|
+
}
|
|
1006
|
+
]
|
|
1085
1007
|
}
|
|
1086
1008
|
}
|
|
1087
1009
|
},
|
|
1088
|
-
"
|
|
1089
|
-
"
|
|
1090
|
-
"
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
"properties": {
|
|
1095
|
-
"id": {
|
|
1096
|
-
"type": "string"
|
|
1097
|
-
},
|
|
1098
|
-
"data": {
|
|
1099
|
-
"type": "string"
|
|
1100
|
-
}
|
|
1010
|
+
"getModels": {
|
|
1011
|
+
"description": "Given a year and make id get a list of the valid models",
|
|
1012
|
+
"shape": {
|
|
1013
|
+
"type": "array",
|
|
1014
|
+
"items": {
|
|
1015
|
+
"@ref": "local:Model"
|
|
1101
1016
|
}
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
"Engine": {
|
|
1105
|
-
"id": "Engine",
|
|
1106
|
-
"name": "Engine",
|
|
1107
|
-
"title": "Engine",
|
|
1108
|
-
"schema": {
|
|
1017
|
+
},
|
|
1018
|
+
"args": {
|
|
1109
1019
|
"type": "object",
|
|
1110
1020
|
"properties": {
|
|
1111
|
-
"
|
|
1112
|
-
"type": "string",
|
|
1113
|
-
"@mapping": "shapedb:Engine.id"
|
|
1114
|
-
},
|
|
1115
|
-
"data": {
|
|
1021
|
+
"year": {
|
|
1116
1022
|
"type": "string",
|
|
1117
|
-
"
|
|
1023
|
+
"description": "A four digit year string"
|
|
1118
1024
|
},
|
|
1119
|
-
"
|
|
1025
|
+
"make": {
|
|
1120
1026
|
"type": "string",
|
|
1121
|
-
"
|
|
1027
|
+
"description": "The make id as numerical string"
|
|
1122
1028
|
}
|
|
1029
|
+
},
|
|
1030
|
+
"required": [
|
|
1031
|
+
"year",
|
|
1032
|
+
"make"
|
|
1033
|
+
]
|
|
1034
|
+
},
|
|
1035
|
+
"resolver": {
|
|
1036
|
+
"service": "parts",
|
|
1037
|
+
"name": "rest:get",
|
|
1038
|
+
"path": "/bin/ShowMeConnect.exe",
|
|
1039
|
+
"options": {
|
|
1040
|
+
"timeout": 10000,
|
|
1041
|
+
"ttl": 604800
|
|
1042
|
+
},
|
|
1043
|
+
"searchParams": {
|
|
1044
|
+
"ops": [
|
|
1045
|
+
{
|
|
1046
|
+
"path": "$.lookup",
|
|
1047
|
+
"value": "model"
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
"path": "$.year",
|
|
1051
|
+
"mapping": "$args.year"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"path": "$.make",
|
|
1055
|
+
"mapping": [
|
|
1056
|
+
[
|
|
1057
|
+
"expressionEval",
|
|
1058
|
+
{
|
|
1059
|
+
"expression": "toString($args.make).padStart(4, '0')"
|
|
1060
|
+
}
|
|
1061
|
+
]
|
|
1062
|
+
]
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"path": "$.id",
|
|
1066
|
+
"value": "69876V2_WEBeCOM"
|
|
1067
|
+
}
|
|
1068
|
+
]
|
|
1069
|
+
},
|
|
1070
|
+
"results": {
|
|
1071
|
+
"ops": [
|
|
1072
|
+
{
|
|
1073
|
+
"path": "$",
|
|
1074
|
+
"mapping": [
|
|
1075
|
+
[
|
|
1076
|
+
"get",
|
|
1077
|
+
{
|
|
1078
|
+
"path": "$finalResolver.ShowMeTheParts_Model.model"
|
|
1079
|
+
}
|
|
1080
|
+
],
|
|
1081
|
+
[
|
|
1082
|
+
"cast",
|
|
1083
|
+
{
|
|
1084
|
+
"to": "array"
|
|
1085
|
+
}
|
|
1086
|
+
]
|
|
1087
|
+
]
|
|
1088
|
+
}
|
|
1089
|
+
]
|
|
1123
1090
|
}
|
|
1124
1091
|
}
|
|
1125
1092
|
},
|
|
1126
|
-
"
|
|
1127
|
-
"
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1093
|
+
"getEngines": {
|
|
1094
|
+
"shape": {
|
|
1095
|
+
"type": "array",
|
|
1096
|
+
"items": {
|
|
1097
|
+
"@ref": "local:Engine"
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
"args": {
|
|
1131
1101
|
"type": "object",
|
|
1132
1102
|
"properties": {
|
|
1133
|
-
"
|
|
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"
|
|
1103
|
+
"year": {
|
|
1104
|
+
"type": "string",
|
|
1105
|
+
"description": "A four digit year string"
|
|
1213
1106
|
},
|
|
1214
|
-
"
|
|
1215
|
-
"type": "
|
|
1107
|
+
"make": {
|
|
1108
|
+
"type": "string",
|
|
1109
|
+
"description": "The make id a numerical string"
|
|
1216
1110
|
},
|
|
1217
|
-
"
|
|
1218
|
-
"type": "string"
|
|
1111
|
+
"model": {
|
|
1112
|
+
"type": "string",
|
|
1113
|
+
"description": "The model id a numerical string"
|
|
1219
1114
|
}
|
|
1115
|
+
},
|
|
1116
|
+
"required": [
|
|
1117
|
+
"year",
|
|
1118
|
+
"make",
|
|
1119
|
+
"model"
|
|
1120
|
+
]
|
|
1121
|
+
},
|
|
1122
|
+
"resolver": {
|
|
1123
|
+
"service": "parts",
|
|
1124
|
+
"name": "rest:get",
|
|
1125
|
+
"path": "/bin/ShowMeConnect.exe",
|
|
1126
|
+
"options": {
|
|
1127
|
+
"timeout": 10000,
|
|
1128
|
+
"ttl": 604800
|
|
1129
|
+
},
|
|
1130
|
+
"searchParams": {
|
|
1131
|
+
"ops": [
|
|
1132
|
+
{
|
|
1133
|
+
"path": "$.lookup",
|
|
1134
|
+
"value": "engine"
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"path": "$.year",
|
|
1138
|
+
"mapping": "$args.year"
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"path": "$.make",
|
|
1142
|
+
"mapping": [
|
|
1143
|
+
[
|
|
1144
|
+
"expressionEval",
|
|
1145
|
+
{
|
|
1146
|
+
"expression": "toString($args.make).padStart(4, '0')"
|
|
1147
|
+
}
|
|
1148
|
+
]
|
|
1149
|
+
]
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"path": "$.model",
|
|
1153
|
+
"mapping": [
|
|
1154
|
+
[
|
|
1155
|
+
"expressionEval",
|
|
1156
|
+
{
|
|
1157
|
+
"expression": "toString($args.model).padStart(4, '0')"
|
|
1158
|
+
}
|
|
1159
|
+
]
|
|
1160
|
+
]
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"path": "$.id",
|
|
1164
|
+
"value": "69876V2_WEBeCOM"
|
|
1165
|
+
}
|
|
1166
|
+
]
|
|
1167
|
+
},
|
|
1168
|
+
"results": {
|
|
1169
|
+
"ops": [
|
|
1170
|
+
{
|
|
1171
|
+
"path": "$",
|
|
1172
|
+
"mapping": [
|
|
1173
|
+
[
|
|
1174
|
+
"get",
|
|
1175
|
+
{
|
|
1176
|
+
"path": "$finalResolver.ShowMeTheParts_Engine.engine"
|
|
1177
|
+
}
|
|
1178
|
+
],
|
|
1179
|
+
[
|
|
1180
|
+
"cast",
|
|
1181
|
+
{
|
|
1182
|
+
"to": "array"
|
|
1183
|
+
}
|
|
1184
|
+
]
|
|
1185
|
+
]
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"path": "$.[*].normalizedId",
|
|
1189
|
+
"mapping": [
|
|
1190
|
+
[
|
|
1191
|
+
"expressionEval",
|
|
1192
|
+
{
|
|
1193
|
+
"expression": "$loop.item.id.split('~').slice(0,2).join('-')"
|
|
1194
|
+
}
|
|
1195
|
+
]
|
|
1196
|
+
]
|
|
1197
|
+
}
|
|
1198
|
+
]
|
|
1220
1199
|
}
|
|
1221
1200
|
}
|
|
1222
1201
|
},
|
|
1223
|
-
"
|
|
1224
|
-
"
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1202
|
+
"getPartsDetails": {
|
|
1203
|
+
"shape": {
|
|
1204
|
+
"type": "array",
|
|
1205
|
+
"items": {
|
|
1206
|
+
"@ref": "local:PartDetail"
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
1209
|
+
"args": {
|
|
1228
1210
|
"type": "object",
|
|
1229
1211
|
"properties": {
|
|
1230
1212
|
"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
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
},
|
|
1265
|
-
"Part": {
|
|
1266
|
-
"id": "Part",
|
|
1267
|
-
"name": "Part",
|
|
1268
|
-
"schema": {
|
|
1269
|
-
"properties": {
|
|
1270
|
-
"buyersguide": {
|
|
1271
|
-
"@indexed": {
|
|
1272
|
-
"nested": true
|
|
1273
|
-
},
|
|
1274
|
-
"type": "array",
|
|
1275
|
-
"items": {
|
|
1276
|
-
"@ref": "local:App"
|
|
1277
|
-
}
|
|
1278
|
-
},
|
|
1279
|
-
"part_key": {
|
|
1280
1213
|
"type": "string"
|
|
1281
1214
|
},
|
|
1282
|
-
"
|
|
1215
|
+
"year": {
|
|
1283
1216
|
"type": "string"
|
|
1284
1217
|
},
|
|
1285
|
-
"
|
|
1218
|
+
"make": {
|
|
1286
1219
|
"type": "string"
|
|
1287
1220
|
},
|
|
1288
|
-
"
|
|
1221
|
+
"model": {
|
|
1289
1222
|
"type": "string"
|
|
1290
1223
|
}
|
|
1291
1224
|
},
|
|
1292
|
-
"
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
"name": "Salsify_Product",
|
|
1299
|
-
"title": "Salsify_Product",
|
|
1300
|
-
"cache": {
|
|
1301
|
-
"enabled": true,
|
|
1302
|
-
"triggers": [
|
|
1303
|
-
{
|
|
1304
|
-
"type": "schedule",
|
|
1305
|
-
"loader": "list",
|
|
1306
|
-
"interval": 1440
|
|
1307
|
-
}
|
|
1308
|
-
],
|
|
1309
|
-
"fragment": {
|
|
1310
|
-
"maxDepth": 2,
|
|
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}}"
|
|
1312
|
-
}
|
|
1313
|
-
},
|
|
1314
|
-
"loaders": {
|
|
1315
|
-
"list": {
|
|
1316
|
-
"query": "salsify:Query.listChannelProducts"
|
|
1317
|
-
}
|
|
1225
|
+
"required": [
|
|
1226
|
+
"engine",
|
|
1227
|
+
"year",
|
|
1228
|
+
"make",
|
|
1229
|
+
"model"
|
|
1230
|
+
]
|
|
1318
1231
|
},
|
|
1319
|
-
"
|
|
1320
|
-
"
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1232
|
+
"resolver": {
|
|
1233
|
+
"service": "parts",
|
|
1234
|
+
"name": "rest:get",
|
|
1235
|
+
"path": "/bin/ShowMeConnect.exe",
|
|
1236
|
+
"options": {
|
|
1237
|
+
"timeout": 10000,
|
|
1238
|
+
"ttl": 172800
|
|
1239
|
+
},
|
|
1240
|
+
"searchParams": {
|
|
1241
|
+
"ops": [
|
|
1242
|
+
{
|
|
1243
|
+
"path": "$.lookup",
|
|
1244
|
+
"value": "parts"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"path": "$.year",
|
|
1248
|
+
"mapping": "$args.year"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"path": "$.make",
|
|
1252
|
+
"mapping": [
|
|
1253
|
+
[
|
|
1254
|
+
"expressionEval",
|
|
1255
|
+
{
|
|
1256
|
+
"expression": "toString($args.make).padStart(4, '0')"
|
|
1338
1257
|
}
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
"
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
"
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1258
|
+
]
|
|
1259
|
+
]
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
"path": "$.model",
|
|
1263
|
+
"mapping": [
|
|
1264
|
+
[
|
|
1265
|
+
"expressionEval",
|
|
1266
|
+
{
|
|
1267
|
+
"expression": "toString($args.model).padStart(4, '0')"
|
|
1268
|
+
}
|
|
1269
|
+
]
|
|
1270
|
+
]
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"path": "$.engine",
|
|
1274
|
+
"mapping": "$args.engine"
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"path": "$.id",
|
|
1278
|
+
"value": "69876V2_WEBeCOM"
|
|
1279
|
+
}
|
|
1280
|
+
]
|
|
1281
|
+
},
|
|
1282
|
+
"results": {
|
|
1283
|
+
"ops": [
|
|
1284
|
+
{
|
|
1285
|
+
"path": "$",
|
|
1286
|
+
"mapping": [
|
|
1287
|
+
[
|
|
1288
|
+
"get",
|
|
1289
|
+
{
|
|
1290
|
+
"path": "$finalResolver.ShowMeThePartsDetail.partsdata"
|
|
1291
|
+
}
|
|
1292
|
+
],
|
|
1293
|
+
[
|
|
1294
|
+
"cast",
|
|
1295
|
+
{
|
|
1296
|
+
"to": "array"
|
|
1297
|
+
}
|
|
1298
|
+
]
|
|
1299
|
+
]
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"path": "$.[*].normalizedId",
|
|
1303
|
+
"mapping": [
|
|
1304
|
+
[
|
|
1305
|
+
"expressionEval",
|
|
1306
|
+
{
|
|
1307
|
+
"expression": "$loop.item.id.split('~').slice(0,2).join('-')"
|
|
1386
1308
|
}
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1309
|
+
]
|
|
1310
|
+
]
|
|
1311
|
+
}
|
|
1312
|
+
]
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
},
|
|
1316
|
+
"Salsify_listChannelProducts": {
|
|
1317
|
+
"shape": "PaginatedList<salsify:Product>",
|
|
1318
|
+
"args": {
|
|
1319
|
+
"type": "object",
|
|
1320
|
+
"properties": {
|
|
1321
|
+
"from": {
|
|
1322
|
+
"type": "integer",
|
|
1323
|
+
"default": 0
|
|
1324
|
+
},
|
|
1325
|
+
"size": {
|
|
1326
|
+
"type": "integer",
|
|
1327
|
+
"default": 10
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
},
|
|
1331
|
+
"resolver": {
|
|
1332
|
+
"name": "salsify:listChannelProducts",
|
|
1333
|
+
"service": "salsify",
|
|
1334
|
+
"results": {
|
|
1335
|
+
"ops": [
|
|
1336
|
+
{
|
|
1337
|
+
"path": "$.items",
|
|
1338
|
+
"mapping": [
|
|
1339
|
+
[
|
|
1340
|
+
"expressionEval",
|
|
1341
|
+
{
|
|
1342
|
+
"expression": "$finalResolver.slice($args.from, $args.from + $args.size)"
|
|
1400
1343
|
}
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1344
|
+
]
|
|
1345
|
+
]
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"path": "$.total",
|
|
1349
|
+
"mapping": [
|
|
1350
|
+
[
|
|
1351
|
+
"expressionEval",
|
|
1352
|
+
{
|
|
1353
|
+
"expression": "$finalResolver.length"
|
|
1354
|
+
}
|
|
1355
|
+
]
|
|
1356
|
+
]
|
|
1408
1357
|
}
|
|
1358
|
+
]
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
},
|
|
1362
|
+
"Shopify_collection": {
|
|
1363
|
+
"resolver": {
|
|
1364
|
+
"name": "graphql:query",
|
|
1365
|
+
"service": "shopify",
|
|
1366
|
+
"fieldName": "collection"
|
|
1367
|
+
},
|
|
1368
|
+
"args": {
|
|
1369
|
+
"type": "object",
|
|
1370
|
+
"properties": {
|
|
1371
|
+
"id": {
|
|
1372
|
+
"type": "string",
|
|
1373
|
+
"@tag": "id",
|
|
1374
|
+
"description": "The ID of the Collection to return."
|
|
1409
1375
|
}
|
|
1376
|
+
},
|
|
1377
|
+
"required": [
|
|
1378
|
+
"id"
|
|
1410
1379
|
]
|
|
1411
|
-
}
|
|
1380
|
+
},
|
|
1381
|
+
"shape": "Shopify_Collection"
|
|
1412
1382
|
},
|
|
1413
|
-
"
|
|
1414
|
-
"
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
"type": "multiple"
|
|
1383
|
+
"Shopify_collectionByHandle": {
|
|
1384
|
+
"resolver": {
|
|
1385
|
+
"name": "graphql:query",
|
|
1386
|
+
"service": "shopify",
|
|
1387
|
+
"fieldName": "collectionByHandle"
|
|
1419
1388
|
},
|
|
1420
|
-
"
|
|
1389
|
+
"args": {
|
|
1421
1390
|
"type": "object",
|
|
1422
1391
|
"properties": {
|
|
1423
|
-
"
|
|
1424
|
-
"@mapping": "shapedb:MockRelatedProduct.7nsXMIclo",
|
|
1392
|
+
"handle": {
|
|
1425
1393
|
"type": "string",
|
|
1426
|
-
"
|
|
1394
|
+
"description": "The handle of the collection."
|
|
1427
1395
|
}
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1396
|
+
},
|
|
1397
|
+
"required": [
|
|
1398
|
+
"handle"
|
|
1399
|
+
]
|
|
1400
|
+
},
|
|
1401
|
+
"shape": "Shopify_Collection"
|
|
1430
1402
|
},
|
|
1431
|
-
"
|
|
1432
|
-
"
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
"type": "multiple"
|
|
1403
|
+
"Shopify_collections": {
|
|
1404
|
+
"resolver": {
|
|
1405
|
+
"name": "graphql:query",
|
|
1406
|
+
"service": "shopify",
|
|
1407
|
+
"fieldName": "collections"
|
|
1437
1408
|
},
|
|
1438
|
-
"
|
|
1409
|
+
"args": {
|
|
1439
1410
|
"type": "object",
|
|
1440
1411
|
"properties": {
|
|
1441
|
-
"
|
|
1442
|
-
"
|
|
1412
|
+
"first": {
|
|
1413
|
+
"type": "integer",
|
|
1414
|
+
"description": "Returns up to the first `n` elements from the list."
|
|
1415
|
+
},
|
|
1416
|
+
"after": {
|
|
1443
1417
|
"type": "string",
|
|
1444
|
-
"
|
|
1418
|
+
"description": "Returns the elements that come after the specified cursor."
|
|
1445
1419
|
},
|
|
1446
|
-
"
|
|
1447
|
-
"type": "
|
|
1448
|
-
"
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
"
|
|
1452
|
-
"
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1420
|
+
"last": {
|
|
1421
|
+
"type": "integer",
|
|
1422
|
+
"description": "Returns up to the last `n` elements from the list."
|
|
1423
|
+
},
|
|
1424
|
+
"before": {
|
|
1425
|
+
"type": "string",
|
|
1426
|
+
"description": "Returns the elements that come before the specified cursor."
|
|
1427
|
+
},
|
|
1428
|
+
"reverse": {
|
|
1429
|
+
"type": "boolean",
|
|
1430
|
+
"description": "Reverse the order of the underlying list.",
|
|
1431
|
+
"default": false
|
|
1432
|
+
},
|
|
1433
|
+
"sortKey": {
|
|
1434
|
+
"@ref": "shopify:CollectionSortKeys",
|
|
1435
|
+
"description": "Sort the underlying list by the given key.",
|
|
1436
|
+
"default": "ID"
|
|
1437
|
+
},
|
|
1438
|
+
"query": {
|
|
1439
|
+
"type": "string",
|
|
1440
|
+
"description": "Supported filter parameters:\n - `collection_type`\n - `publishable_status`\n - `published_status`\n - `title`\n - `updated_at`\n\nSee the detailed [search syntax](https://shopify.dev/api/usage/search-syntax)\nfor more information about using filters."
|
|
1441
|
+
},
|
|
1442
|
+
"savedSearchId": {
|
|
1443
|
+
"type": "string",
|
|
1444
|
+
"@tag": "id",
|
|
1445
|
+
"description": "The ID of an existing saved search.\nThe search’s query string is used as the query argument.\nRefer to [SavedSearch](https://shopify.dev/api/admin-graphql/latest/objects/savedsearch)."
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
},
|
|
1449
|
+
"shape": "Shopify_CollectionConnection"
|
|
1450
|
+
},
|
|
1451
|
+
"Shopify_product": {
|
|
1452
|
+
"resolver": {
|
|
1453
|
+
"name": "graphql:query",
|
|
1454
|
+
"service": "shopify",
|
|
1455
|
+
"fieldName": "product"
|
|
1456
|
+
},
|
|
1457
|
+
"args": {
|
|
1458
|
+
"type": "object",
|
|
1459
|
+
"properties": {
|
|
1460
|
+
"id": {
|
|
1461
|
+
"type": "string",
|
|
1462
|
+
"@tag": "id",
|
|
1463
|
+
"description": "The ID of the Product to return."
|
|
1462
1464
|
}
|
|
1463
1465
|
},
|
|
1464
1466
|
"required": [
|
|
1465
|
-
"
|
|
1467
|
+
"id"
|
|
1466
1468
|
]
|
|
1467
|
-
}
|
|
1469
|
+
},
|
|
1470
|
+
"shape": "Shopify_Product"
|
|
1471
|
+
},
|
|
1472
|
+
"getMockRelatedProduct": {
|
|
1473
|
+
"shape": "MockRelatedProduct",
|
|
1474
|
+
"resolver": {
|
|
1475
|
+
"name": "shapedb:get",
|
|
1476
|
+
"service": "shapedb",
|
|
1477
|
+
"shapeName": "MockRelatedProduct"
|
|
1478
|
+
},
|
|
1479
|
+
"description": "Get a MockRelatedProduct by ID",
|
|
1480
|
+
"args": "TSGetArgs<MockRelatedProduct>"
|
|
1481
|
+
},
|
|
1482
|
+
"getMockRelatedProductList": {
|
|
1483
|
+
"shape": "PaginatedList<MockRelatedProduct>",
|
|
1484
|
+
"resolver": {
|
|
1485
|
+
"name": "shapedb:list",
|
|
1486
|
+
"service": "shapedb",
|
|
1487
|
+
"shapeName": "MockRelatedProduct"
|
|
1488
|
+
},
|
|
1489
|
+
"description": "Returns a list MockRelatedProduct in natural order.",
|
|
1490
|
+
"args": "TSListArgs<MockRelatedProduct>"
|
|
1491
|
+
},
|
|
1492
|
+
"getIndexedSalsifyProductList": {
|
|
1493
|
+
"shape": "PaginatedList<Salsify_Product>",
|
|
1494
|
+
"resolver": {
|
|
1495
|
+
"shapeName": "Salsify_Product",
|
|
1496
|
+
"name": "takeshape:queryApiIndex",
|
|
1497
|
+
"service": "takeshape",
|
|
1498
|
+
"options": {
|
|
1499
|
+
"indexedShape": "Salsify_Product"
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
"description": "Fetch Salsify_Product data from the API Index.",
|
|
1503
|
+
"args": "TSListArgs<Salsify_Product>"
|
|
1504
|
+
},
|
|
1505
|
+
"getDangerousPrompt": {
|
|
1506
|
+
"shape": "DangerousPrompt",
|
|
1507
|
+
"resolver": {
|
|
1508
|
+
"name": "shapedb:get",
|
|
1509
|
+
"service": "shapedb",
|
|
1510
|
+
"shapeName": "DangerousPrompt"
|
|
1511
|
+
},
|
|
1512
|
+
"description": "Get a DangerousPrompt by ID",
|
|
1513
|
+
"args": "TSGetArgs<DangerousPrompt>"
|
|
1514
|
+
},
|
|
1515
|
+
"getDangerousPromptList": {
|
|
1516
|
+
"shape": "PaginatedList<DangerousPrompt>",
|
|
1517
|
+
"resolver": {
|
|
1518
|
+
"name": "shapedb:list",
|
|
1519
|
+
"service": "shapedb",
|
|
1520
|
+
"shapeName": "DangerousPrompt"
|
|
1521
|
+
},
|
|
1522
|
+
"description": "Returns a list DangerousPrompt in natural order.",
|
|
1523
|
+
"args": "TSListArgs<DangerousPrompt>"
|
|
1468
1524
|
}
|
|
1469
1525
|
},
|
|
1470
|
-
"
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
"
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
"
|
|
1483
|
-
}
|
|
1484
|
-
},
|
|
1485
|
-
"order": [
|
|
1486
|
-
"id",
|
|
1487
|
-
"data",
|
|
1488
|
-
"normalizedId"
|
|
1489
|
-
]
|
|
1490
|
-
}
|
|
1491
|
-
},
|
|
1492
|
-
"App": {
|
|
1493
|
-
"default": {
|
|
1494
|
-
"properties": {
|
|
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"
|
|
1526
|
+
"mutations": {
|
|
1527
|
+
"chat": {
|
|
1528
|
+
"description": "Fetch Salsify_Product data from the API Index.",
|
|
1529
|
+
"shape": "ChatResponse",
|
|
1530
|
+
"args": "ChatArgs",
|
|
1531
|
+
"resolver": {
|
|
1532
|
+
"name": "ai:chat",
|
|
1533
|
+
"service": "openai",
|
|
1534
|
+
"model": "gpt-4o",
|
|
1535
|
+
"systemPrompt": "You are a very helpful assistant. \n\nFirst you must verify the user's car's \"fitment data\" which is defined as the year, make, model and engine. The year must be between 1918 and 2025. The make must be validated by the getMakes tool. The model must be validated with the getModels tool. The engine must be validated with the getEngines tool. Do not assume any fitment data always present the options available from the appropriate tool call. \n\nAfter verifying the \"fitment data\" you should suggest up to five compatible products using the listProducts tool. Please include product IDs from Shopify only, where appropriate, on their own line, with 2 line breaks before and after, with no markdown or styling, in the format: `gid://shopify/Product/8133116887317`",
|
|
1536
|
+
"tools": [
|
|
1537
|
+
{
|
|
1538
|
+
"tool": "Tool.getMakes"
|
|
1509
1539
|
},
|
|
1510
|
-
|
|
1511
|
-
"
|
|
1540
|
+
{
|
|
1541
|
+
"tool": "Tool.getModels"
|
|
1512
1542
|
},
|
|
1513
|
-
|
|
1514
|
-
"
|
|
1543
|
+
{
|
|
1544
|
+
"tool": "Tool.getEngines"
|
|
1515
1545
|
},
|
|
1516
|
-
|
|
1517
|
-
"
|
|
1546
|
+
{
|
|
1547
|
+
"tool": "Tool.listProducts"
|
|
1518
1548
|
}
|
|
1519
|
-
|
|
1520
|
-
"
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
"startYear",
|
|
1526
|
-
"endYear",
|
|
1527
|
-
"apptype",
|
|
1528
|
-
"qty"
|
|
1529
|
-
]
|
|
1530
|
-
}
|
|
1531
|
-
},
|
|
1532
|
-
"MockRelatedProduct": {
|
|
1533
|
-
"default": {
|
|
1534
|
-
"properties": {
|
|
1535
|
-
"name": {
|
|
1536
|
-
"widget": "singleLineText"
|
|
1549
|
+
],
|
|
1550
|
+
"guardrails": [
|
|
1551
|
+
{
|
|
1552
|
+
"name": "similarity",
|
|
1553
|
+
"shape": "DangerousPrompt",
|
|
1554
|
+
"defaultResponse": "Sorry let's talk about Valvoline"
|
|
1537
1555
|
}
|
|
1538
|
-
},
|
|
1539
|
-
"order": [
|
|
1540
|
-
"name"
|
|
1541
1556
|
]
|
|
1542
1557
|
}
|
|
1543
1558
|
},
|
|
1544
|
-
"
|
|
1545
|
-
"
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
"promptVector": {}
|
|
1551
|
-
},
|
|
1552
|
-
"order": [
|
|
1553
|
-
"prompt",
|
|
1554
|
-
"promptVector"
|
|
1555
|
-
]
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
},
|
|
1559
|
-
"services": {
|
|
1560
|
-
"parts": {
|
|
1561
|
-
"id": "parts",
|
|
1562
|
-
"title": "Parts",
|
|
1563
|
-
"namespace": "Parts",
|
|
1564
|
-
"provider": "rest",
|
|
1565
|
-
"serviceType": "rest",
|
|
1566
|
-
"authenticationType": "none",
|
|
1567
|
-
"options": {
|
|
1568
|
-
"endpoint": "https://www.showmethepartsdb3.com/"
|
|
1559
|
+
"updateMockRelatedProduct": {
|
|
1560
|
+
"shape": "UpdateResult<MockRelatedProduct>",
|
|
1561
|
+
"resolver": {
|
|
1562
|
+
"name": "shapedb:update",
|
|
1563
|
+
"service": "shapedb",
|
|
1564
|
+
"shapeName": "MockRelatedProduct"
|
|
1569
1565
|
},
|
|
1570
|
-
"
|
|
1571
|
-
|
|
1572
|
-
"endpoint": "https://www.showmethepartsdb3.com/bin/ShowMeConnect.exe?lookup=make&id=69876V2_WEBeCOM"
|
|
1573
|
-
}
|
|
1566
|
+
"description": "Update MockRelatedProduct",
|
|
1567
|
+
"args": "UpdateArgs<MockRelatedProduct>"
|
|
1574
1568
|
},
|
|
1575
|
-
"
|
|
1576
|
-
"
|
|
1577
|
-
"
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
"
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1569
|
+
"createMockRelatedProduct": {
|
|
1570
|
+
"shape": "CreateResult<MockRelatedProduct>",
|
|
1571
|
+
"resolver": {
|
|
1572
|
+
"name": "shapedb:create",
|
|
1573
|
+
"service": "shapedb",
|
|
1574
|
+
"shapeName": "MockRelatedProduct"
|
|
1575
|
+
},
|
|
1576
|
+
"description": "Create MockRelatedProduct",
|
|
1577
|
+
"args": "CreateArgs<MockRelatedProduct>"
|
|
1578
|
+
},
|
|
1579
|
+
"duplicateMockRelatedProduct": {
|
|
1580
|
+
"shape": "DuplicateResult<MockRelatedProduct>",
|
|
1581
|
+
"resolver": {
|
|
1582
|
+
"name": "shapedb:duplicate",
|
|
1583
|
+
"service": "shapedb",
|
|
1584
|
+
"shapeName": "MockRelatedProduct"
|
|
1585
|
+
},
|
|
1586
|
+
"description": "Duplicate MockRelatedProduct",
|
|
1587
|
+
"args": "DuplicateArgs<MockRelatedProduct>"
|
|
1588
|
+
},
|
|
1589
|
+
"deleteMockRelatedProduct": {
|
|
1590
|
+
"shape": "DeleteResult<MockRelatedProduct>",
|
|
1591
|
+
"resolver": {
|
|
1592
|
+
"name": "shapedb:delete",
|
|
1593
|
+
"service": "shapedb",
|
|
1594
|
+
"shapeName": "MockRelatedProduct"
|
|
1595
|
+
},
|
|
1596
|
+
"description": "Delete MockRelatedProduct",
|
|
1597
|
+
"args": "DeleteArgs<MockRelatedProduct>"
|
|
1598
|
+
},
|
|
1599
|
+
"updateDangerousPrompt": {
|
|
1600
|
+
"shape": "UpdateResult<DangerousPrompt>",
|
|
1601
|
+
"resolver": {
|
|
1602
|
+
"name": "shapedb:update",
|
|
1603
|
+
"service": "shapedb",
|
|
1604
|
+
"shapeName": "DangerousPrompt"
|
|
1605
|
+
},
|
|
1606
|
+
"description": "Update DangerousPrompt",
|
|
1607
|
+
"args": "UpdateArgs<DangerousPrompt>"
|
|
1608
|
+
},
|
|
1609
|
+
"createDangerousPrompt": {
|
|
1610
|
+
"shape": "CreateResult<DangerousPrompt>",
|
|
1611
|
+
"resolver": {
|
|
1612
|
+
"name": "shapedb:create",
|
|
1613
|
+
"service": "shapedb",
|
|
1614
|
+
"shapeName": "DangerousPrompt"
|
|
1615
|
+
},
|
|
1616
|
+
"description": "Create DangerousPrompt",
|
|
1617
|
+
"args": "CreateArgs<DangerousPrompt>"
|
|
1618
|
+
},
|
|
1619
|
+
"duplicateDangerousPrompt": {
|
|
1620
|
+
"shape": "DuplicateResult<DangerousPrompt>",
|
|
1621
|
+
"resolver": {
|
|
1622
|
+
"name": "shapedb:duplicate",
|
|
1623
|
+
"service": "shapedb",
|
|
1624
|
+
"shapeName": "DangerousPrompt"
|
|
1625
|
+
},
|
|
1626
|
+
"description": "Duplicate DangerousPrompt",
|
|
1627
|
+
"args": "DuplicateArgs<DangerousPrompt>"
|
|
1628
|
+
},
|
|
1629
|
+
"deleteDangerousPrompt": {
|
|
1630
|
+
"shape": "DeleteResult<DangerousPrompt>",
|
|
1631
|
+
"resolver": {
|
|
1632
|
+
"name": "shapedb:delete",
|
|
1633
|
+
"service": "shapedb",
|
|
1634
|
+
"shapeName": "DangerousPrompt"
|
|
1635
|
+
},
|
|
1636
|
+
"description": "Delete DangerousPrompt",
|
|
1637
|
+
"args": "DeleteArgs<DangerousPrompt>"
|
|
1638
|
+
}
|
|
1639
|
+
},
|
|
1640
|
+
"tools": {
|
|
1641
|
+
"getMakes": {
|
|
1642
|
+
"execution": {
|
|
1643
|
+
"type": "graphql",
|
|
1644
|
+
"query": {
|
|
1645
|
+
"ref": "getMakes"
|
|
1646
|
+
}
|
|
1587
1647
|
}
|
|
1588
1648
|
},
|
|
1589
|
-
"
|
|
1590
|
-
"
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
"authenticationType": "custom",
|
|
1596
|
-
"options": {
|
|
1597
|
-
"shop": "valvolineglobal",
|
|
1598
|
-
"endpoint": "https://valvolineglobal.myshopify.com/admin/api/2022-07/graphql.json"
|
|
1649
|
+
"getModels": {
|
|
1650
|
+
"execution": {
|
|
1651
|
+
"type": "graphql",
|
|
1652
|
+
"query": {
|
|
1653
|
+
"ref": "getModels"
|
|
1654
|
+
}
|
|
1599
1655
|
}
|
|
1600
1656
|
},
|
|
1601
|
-
"
|
|
1602
|
-
"
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
"authenticationType": "bearer",
|
|
1608
|
-
"options": {
|
|
1609
|
-
"endpoint": "https://api.openai.com/v1/",
|
|
1610
|
-
"spec": "https://raw.githubusercontent.com/takeshape/openapi-specs/813784d8fcac5b3fd4e468ce6f715b89c9fcb73f/specs/openai/v2.yml",
|
|
1611
|
-
"transformVersion": "2.0.0",
|
|
1612
|
-
"introspectedAt": "2024-06-26T19:12:52.473Z"
|
|
1657
|
+
"getEngines": {
|
|
1658
|
+
"execution": {
|
|
1659
|
+
"type": "graphql",
|
|
1660
|
+
"query": {
|
|
1661
|
+
"ref": "getEngines"
|
|
1662
|
+
}
|
|
1613
1663
|
}
|
|
1614
1664
|
},
|
|
1615
|
-
"
|
|
1616
|
-
"
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
"options": {
|
|
1623
|
-
"endpoint": "https://api.anthropic.com/v1",
|
|
1624
|
-
"spec": "https://raw.githubusercontent.com/takeshape/openapi-specs/d1219888103fdd900138589e4e03c0b216c0a5d1/specs/anthropic/2023-06-01.yml",
|
|
1625
|
-
"headers": {
|
|
1626
|
-
"anthropic-version": "2023-06-01"
|
|
1627
|
-
},
|
|
1628
|
-
"transformVersion": "2.0.0",
|
|
1629
|
-
"introspectedAt": "2024-08-21T16:55:43.579Z"
|
|
1665
|
+
"listProducts": {
|
|
1666
|
+
"execution": {
|
|
1667
|
+
"type": "graphql",
|
|
1668
|
+
"query": {
|
|
1669
|
+
"ref": "listProducts",
|
|
1670
|
+
"selectionSet": "{items {shopifyProductName shopifyProductId diyMarketingCopy}}"
|
|
1671
|
+
}
|
|
1630
1672
|
}
|
|
1631
1673
|
}
|
|
1632
|
-
}
|
|
1633
|
-
"schemaVersion": "3.59.0",
|
|
1634
|
-
"apiVersion": "2"
|
|
1674
|
+
}
|
|
1635
1675
|
}
|