From 3d28ef5b89114abf165d4b362245b50d8a0f423a Mon Sep 17 00:00:00 2001 From: Greg Smith Date: Tue, 3 Sep 2024 12:40:53 -0700 Subject: [PATCH] Update schemas to apiVersion 3 --- auth0/schema.json | 2 +- city-guide/schema.json | 2 +- magic-trick/schema.json | 2 +- shape-blog/schema.json | 2 +- shape-books/schema.json | 2 +- shape-job-board/schema.json | 2 +- shape-portfolio/schema.json | 2 +- shape-shop/schema.json | 2 +- shape-startup/schema.json | 2 +- shopify-lookbook/schema.json | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/auth0/schema.json b/auth0/schema.json index 860448a..4101460 100644 --- a/auth0/schema.json +++ b/auth0/schema.json @@ -1,6 +1,6 @@ { "dataKey": "", - "apiVersion": "2", + "apiVersion": "3", "projectId": "05dac105-60f5-4b2f-baa9-040ac0f6400e", "version": 1, "created": "2021-06-08T13:12:26.923Z", diff --git a/city-guide/schema.json b/city-guide/schema.json index cbe40dd..87fb842 100644 --- a/city-guide/schema.json +++ b/city-guide/schema.json @@ -1,5 +1,5 @@ { - "apiVersion": "2", + "apiVersion": "3", "projectId": "", "version": 1, "created": "2021-05-04T20:34:20.820Z", diff --git a/magic-trick/schema.json b/magic-trick/schema.json index 6c205cd..f70177e 100644 --- a/magic-trick/schema.json +++ b/magic-trick/schema.json @@ -1,6 +1,6 @@ { "projectId": "", - "apiVersion": "2", + "apiVersion": "3", "version": 3, "created": "2021-05-04T18:28:04.662Z", "updated": "2021-05-04T18:50:27.746Z", diff --git a/shape-blog/schema.json b/shape-blog/schema.json index 39d822e..f286054 100644 --- a/shape-blog/schema.json +++ b/shape-blog/schema.json @@ -1,6 +1,6 @@ { "workflows": {}, - "apiVersion": "2", + "apiVersion": "3", "defaultLocale": "en", "locales": ["en"], "projectId": "f648dd4c-0faf-429f-a837-cd3b3a9016cc", diff --git a/shape-books/schema.json b/shape-books/schema.json index c274630..79bfd8f 100644 --- a/shape-books/schema.json +++ b/shape-books/schema.json @@ -1,6 +1,6 @@ { "workflows": {}, - "apiVersion": "2", + "apiVersion": "3", "defaultLocale": "en", "locales": ["en"], "projectId": "735f4000-1ff3-4c3f-8095-17b30765c9d5", diff --git a/shape-job-board/schema.json b/shape-job-board/schema.json index a5feb0d..3d06f5e 100644 --- a/shape-job-board/schema.json +++ b/shape-job-board/schema.json @@ -1,6 +1,6 @@ { "workflows": {}, - "apiVersion": "2", + "apiVersion": "3", "defaultLocale": "en", "locales": ["en"], "projectId": "2c0b22e1-c6da-43d7-baf6-dd967861bb79", diff --git a/shape-portfolio/schema.json b/shape-portfolio/schema.json index d4e562f..bb4cc9b 100644 --- a/shape-portfolio/schema.json +++ b/shape-portfolio/schema.json @@ -1,6 +1,6 @@ { "workflows": {}, - "apiVersion": "2", + "apiVersion": "3", "defaultLocale": "en", "locales": ["en"], "projectId": "b489676a-9065-4c95-a89e-2f34a4ba6101", diff --git a/shape-shop/schema.json b/shape-shop/schema.json index cd72c61..b4415d8 100644 --- a/shape-shop/schema.json +++ b/shape-shop/schema.json @@ -1,6 +1,6 @@ { "workflows": {}, - "apiVersion": "2", + "apiVersion": "3", "defaultLocale": "en", "locales": ["en"], "projectId": "e843b365-55bd-4269-b24e-08895b6920b0", diff --git a/shape-startup/schema.json b/shape-startup/schema.json index 6cd22a9..916dfae 100644 --- a/shape-startup/schema.json +++ b/shape-startup/schema.json @@ -1,6 +1,6 @@ { "workflows": {}, - "apiVersion": "2", + "apiVersion": "3", "defaultLocale": "en", "locales": ["en"], "projectId": "5641116a-b73b-47eb-943d-90c3f6019d2d", diff --git a/shopify-lookbook/schema.json b/shopify-lookbook/schema.json index 4e0cc49..a8d4793 100644 --- a/shopify-lookbook/schema.json +++ b/shopify-lookbook/schema.json @@ -1 +1 @@ -{"apiVersion":"2","projectId":"fc50424f-6421-4023-a52f-f95dd900a069","version":21,"created":"2021-02-04T15:45:32.300Z","updated":"2021-03-05T16:11:41.972Z","defaultLocale":"en-us","locales":["en-us"],"schemaVersion":"3","queries":{"getProduct":{"shape":"Product","resolver":{"name":"takeshape:get","service":"takeshape:local","options":{"model":"Product"}},"description":"Get a Product by ID","args":"TSGetArgs"},"getProductList":{"shape":"PaginatedList","resolver":{"name":"takeshape:list","service":"takeshape:local","options":{"model":"Product"}},"description":"Returns a list Product in natural order.","args":"TSListArgs"},"getLook":{"shape":"Look","resolver":{"name":"takeshape:get","service":"takeshape:local","options":{"model":"Look"}},"description":"Get a Look by ID","args":"TSGetArgs"},"getLookList":{"shape":"PaginatedList","resolver":{"name":"takeshape:list","service":"takeshape:local","options":{"model":"Look"}},"description":"Returns a list Look in natural order.","args":"TSListArgs"}},"mutations":{"updateProduct":{"shape":"UpdateResult","resolver":{"compose":[{"id":"createNewShopifyObject","if":"isEmpty(args.input.takeshapeIoShopId) && !isEmpty(args.input.takeshapeIoShop)","argsMapping":{"input.descriptionHtml":[["get",{"path":"args.input.takeshapeIoShop.descriptionHtml"}]],"input.handle":[["get",{"path":"args.input.takeshapeIoShop.handle"}]],"input.redirectNewHandle":[["get",{"path":"args.input.takeshapeIoShop.redirectNewHandle"}]],"input.productType":[["get",{"path":"args.input.takeshapeIoShop.productType"}]],"input.tags":[["get",{"path":"args.input.takeshapeIoShop.tags"}]],"input.templateSuffix":[["get",{"path":"args.input.takeshapeIoShop.templateSuffix"}]],"input.giftCard":[["get",{"path":"args.input.takeshapeIoShop.giftCard"}]],"input.giftCardTemplateSuffix":[["get",{"path":"args.input.takeshapeIoShop.giftCardTemplateSuffix"}]],"input.title":[["get",{"path":"args.input.takeshapeIoShop.title"}]],"input.vendor":[["get",{"path":"args.input.takeshapeIoShop.vendor"}]],"input.bodyHtml":[["get",{"path":"args.input.takeshapeIoShop.bodyHtml"}]]},"name":"graphql:mutation","service":"shopify:takeshape-io-shop","options":{"fieldName":"productCreate","selectionSet":"{ product { id } }"}},{"id":"editTakeshape","argsMapping":{"input":[["get",{"path":"args.input"}]],"input.takeshapeIoShopId":[["get",{"path":"steps.createNewShopifyObject.product.id"}],["get",{"path":"args.input.takeshapeIoShopId"}]]},"name":"takeshape:update","service":"takeshape:local","options":{"model":"Product"}},{"id":"updateExistingShopifyObject","if":"!isEmpty(args.input.takeshapeIoShopId) && !isEmpty(args.input.takeshapeIoShop)","argsMapping":{"input.descriptionHtml":[["get",{"path":"args.input.takeshapeIoShop.descriptionHtml"}]],"input.handle":[["get",{"path":"args.input.takeshapeIoShop.handle"}]],"input.redirectNewHandle":[["get",{"path":"args.input.takeshapeIoShop.redirectNewHandle"}]],"input.productType":[["get",{"path":"args.input.takeshapeIoShop.productType"}]],"input.tags":[["get",{"path":"args.input.takeshapeIoShop.tags"}]],"input.templateSuffix":[["get",{"path":"args.input.takeshapeIoShop.templateSuffix"}]],"input.giftCard":[["get",{"path":"args.input.takeshapeIoShop.giftCard"}]],"input.giftCardTemplateSuffix":[["get",{"path":"args.input.takeshapeIoShop.giftCardTemplateSuffix"}]],"input.title":[["get",{"path":"args.input.takeshapeIoShop.title"}]],"input.vendor":[["get",{"path":"args.input.takeshapeIoShop.vendor"}]],"input.bodyHtml":[["get",{"path":"args.input.takeshapeIoShop.bodyHtml"}]],"input.id":[["get",{"path":"args.input.takeshapeIoShopId"}]]},"name":"graphql:mutation","service":"shopify:takeshape-io-shop","options":{"fieldName":"productUpdate","selectionSet":"{ product { id } }"}}],"resultsMapping":{"result":[["get",{"path":"steps.editTakeshape.result"}]]}},"description":"Update Product. If the input has Shopify values and a Shopify ID, the Shopify product with that ID is updated.\nIf the input has Shopify values and no Shopify ID, a Shopify product is created.","args":"UpdateArgs"},"createProduct":{"shape":"CreateResult","resolver":{"compose":[{"id":"shopifyCreate","if":"!isEmpty(args.input.takeshapeIoShop)","argsMapping":{"input.descriptionHtml":[["get",{"path":"args.input.takeshapeIoShop.descriptionHtml"}]],"input.handle":[["get",{"path":"args.input.takeshapeIoShop.handle"}]],"input.redirectNewHandle":[["get",{"path":"args.input.takeshapeIoShop.redirectNewHandle"}]],"input.productType":[["get",{"path":"args.input.takeshapeIoShop.productType"}]],"input.tags":[["get",{"path":"args.input.takeshapeIoShop.tags"}]],"input.templateSuffix":[["get",{"path":"args.input.takeshapeIoShop.templateSuffix"}]],"input.giftCard":[["get",{"path":"args.input.takeshapeIoShop.giftCard"}]],"input.giftCardTemplateSuffix":[["get",{"path":"args.input.takeshapeIoShop.giftCardTemplateSuffix"}]],"input.title":[["get",{"path":"args.input.takeshapeIoShop.title"}]],"input.vendor":[["get",{"path":"args.input.takeshapeIoShop.vendor"}]],"input.bodyHtml":[["get",{"path":"args.input.takeshapeIoShop.bodyHtml"}]]},"name":"graphql:mutation","service":"shopify:takeshape-io-shop","options":{"fieldName":"productCreate","selectionSet":"{ product { id } }"}},{"id":"creatingShopifyObject","if":"!isEmpty(args.input.takeshapeIoShop)","argsMapping":{"input":[["get",{"path":"args.input"}]],"input.takeshapeIoShopId":[["get",{"path":"steps.shopifyCreate.product.id"}]]},"name":"takeshape:create","service":"takeshape:local","options":{"model":"Product"}},{"id":"notCreatingShopifyObject","if":"isEmpty(args.input.takeshapeIoShop)","argsMapping":{"input":[["get",{"path":"args.input"}]]},"name":"takeshape:create","service":"takeshape:local","options":{"model":"Product"}}],"resultsMapping":{"result":[["get",{"path":"steps.creatingShopifyObject.result"}],["get",{"path":"steps.notCreatingShopifyObject.result"}]]}},"description":"Create Product. If Shopify values are provided, a Shopify product is also created and the new product ID is saved.","args":"CreateArgs"},"duplicateProduct":{"shape":"DuplicateResult","resolver":{"name":"takeshape:duplicate","service":"takeshape:local","options":{"model":"Product"}},"description":"Duplicate Product","args":"DuplicateArgs"},"deleteProduct":{"shape":"DeleteResult","resolver":{"name":"takeshape:delete","service":"takeshape:local","options":{"model":"Product"}},"description":"Delete Product","args":"DeleteArgs"},"createProductAndServiceObject":{"shape":"CreateResult","resolver":{"compose":[{"argsMapping":{"input.descriptionHtml":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.descriptionHtml"}]],"input.handle":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.handle"}]],"input.redirectNewHandle":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.redirectNewHandle"}]],"input.productType":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.productType"}]],"input.tags":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.tags"}]],"input.templateSuffix":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.templateSuffix"}]],"input.giftCard":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.giftCard"}]],"input.giftCardTemplateSuffix":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.giftCardTemplateSuffix"}]],"input.title":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.title"}]],"input.vendor":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.vendor"}]],"input.bodyHtml":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.bodyHtml"}]]},"name":"graphql:mutation","service":"shopify:takeshape-io-shop","options":{"fieldName":"productCreate","selectionSet":"{ product { id } }"}},{"argsMapping":{"input":[["jsonPath",{"path":"$.args.input"}]],"input.takeshapeIoShopId":[["jsonPath",{"path":"$.results[0].product.id"}]]},"name":"takeshape:create","service":"takeshape:local","options":{"model":"Product"}}],"resultsMapping":[["jsonPath",{"path":"$.results[1]"}]]},"description":"Create Product","args":"CreateArgs"},"updateProductAndCreateServiceObject":{"shape":"UpdateResult","resolver":{"compose":[{"argsMapping":{"input.descriptionHtml":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.descriptionHtml"}]],"input.handle":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.handle"}]],"input.redirectNewHandle":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.redirectNewHandle"}]],"input.productType":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.productType"}]],"input.tags":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.tags"}]],"input.templateSuffix":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.templateSuffix"}]],"input.giftCard":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.giftCard"}]],"input.giftCardTemplateSuffix":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.giftCardTemplateSuffix"}]],"input.title":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.title"}]],"input.vendor":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.vendor"}]],"input.bodyHtml":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.bodyHtml"}]]},"name":"graphql:mutation","service":"shopify:takeshape-io-shop","options":{"fieldName":"productCreate","selectionSet":"{ product { id } }"}},{"argsMapping":{"input":[["jsonPath",{"path":"$.args.input"}]],"input.takeshapeIoShopId":[["jsonPath",{"path":"$.results[0].product.id"}]]},"name":"takeshape:update","service":"takeshape:local","options":{"model":"Product"}}],"resultsMapping":[["jsonPath",{"path":"$.results[1]"}]]},"description":"Update Product","args":"UpdateArgs"},"updateLook":{"shape":"UpdateResult","resolver":{"name":"takeshape:update","service":"takeshape:local","options":{"model":"Look"}},"description":"Update Look","args":"UpdateArgs"},"createLook":{"shape":"CreateResult","resolver":{"name":"takeshape:create","service":"takeshape:local","options":{"model":"Look"}},"description":"Create Look","args":"CreateArgs"},"duplicateLook":{"shape":"DuplicateResult","resolver":{"name":"takeshape:duplicate","service":"takeshape:local","options":{"model":"Look"}},"description":"Duplicate Look","args":"DuplicateArgs"},"deleteLook":{"shape":"DeleteResult","resolver":{"name":"takeshape:delete","service":"takeshape:local","options":{"model":"Look"}},"description":"Delete Look","args":"DeleteArgs"}},"shapes":{"ProductInterface":{"id":"ProductInterface","name":"ProductInterface","title":"ProductInterface","description":"ProductInterface","schema":{"type":"object","properties":{"_id":{"type":"string"},"_version":{"type":"number"},"_status":{"type":"string","@workflow":"default"},"name":{"type":"string","title":"Name"},"takeshapeIoShopId":{"title":"Service ID","type":"string"},"takeshapeIoShop":{"$ref":"#/shapes/Shopify_ProductInput/schema"}},"required":[]}},"Product":{"id":"0DeHE3eJn","name":"Product","title":"Product","workflow":"default","model":{"type":"multiple"},"schema":{"type":"object","properties":{"name":{"minLength":0,"type":"string","description":"","title":"Name","@mapping":"takeshape:local:Product.Fv5HIHo4_"},"takeshapeIoShopId":{"type":"string","@mapping":"takeshape:local:Product.WOK1Xvcb5","title":"takeshape-io-shop","minLength":1,"pattern":"(^gid://shopify/Product/\\d+$)"},"takeshapeIoShop":{"$ref":"#/shapes/Shopify_Product/schema","@resolver":{"name":"graphql:query","service":"shopify:takeshape-io-shop","options":{"fieldName":"product"},"argsMapping":{"id":[["get",{"path":"source.takeshapeIoShopId"}]]}},"@tag":"pattern:service-object:1"}}}},"Look":{"id":"0qzGxgSCJ","name":"Look","title":"Look","description":"Each look features a photograph, the products being shown off, and optional accompanying text.","workflow":"default","model":{"type":"multiple"},"schema":{"type":"object","properties":{"name":{"minLength":1,"type":"string","description":"","title":"Name","@mapping":"takeshape:local:Look.LDCYL9XU5"},"photo":{"description":"","$ref":"#/shapes/TSRelationship/schema","@relationship":{"shapeIds":["ASSET"]},"title":"Photo","@mapping":"takeshape:local:Look.4WzSq3aHx"},"text":{"type":"object","@tag":"draftjs","description":"","title":"Text","@mapping":"takeshape:local:Look._qzcnRoKD"},"products":{"description":"","type":"array","items":{"$ref":"#/shapes/TSRelationship/schema"},"@relationship":{"shapeIds":["0DeHE3eJn"],"type":"multiple","relatedName":"looks"},"title":"Products","@mapping":"takeshape:local:Look.dGVaGVDct"}},"required":["name","photo"]}},"ProductVariantInterface":{"id":"ProductVariantInterface","name":"ProductVariantInterface","title":"ProductVariantInterface","description":"ProductVariantInterface","schema":{"type":"object","properties":{"_id":{"type":"string"},"_version":{"type":"number"},"_status":{"type":"string"},"singleLine":{"type":"string","title":"Single Line"},"takeshapeIoShopId":{"title":"Service ID","type":"string"},"takeshapeIoShop":{"$ref":"#/shapes/Shopify_ProductVariantInput/schema"}},"required":[]}}},"workflows":{},"forms":{"Product":{"default":{"properties":{"name":{"widget":"singleLineText"},"takeshapeIoShop":{"properties":{"descriptionHtml":{"widget":"serviceObjectProperty","provider":"shopify"},"handle":{"widget":"serviceObjectProperty","provider":"shopify"},"redirectNewHandle":{"widget":"serviceObjectProperty","provider":"shopify"},"productType":{"widget":"serviceObjectProperty","provider":"shopify"},"tags":{"widget":"serviceObjectProperty","provider":"shopify"},"templateSuffix":{"widget":"serviceObjectProperty","provider":"shopify"},"giftCard":{"widget":"serviceObjectProperty","provider":"shopify"},"giftCardTemplateSuffix":{"widget":"serviceObjectProperty","provider":"shopify"},"title":{"widget":"serviceObjectProperty","provider":"shopify"},"vendor":{"widget":"serviceObjectProperty","provider":"shopify"},"bodyHtml":{"widget":"serviceObjectProperty","provider":"shopify"},"images":{"widget":"shopifyProductImages","provider":"shopify"},"publishedAt":{"widget":"serviceObjectProperty","provider":"shopify"},"variants":{"widget":"shopifyRelationshipSummary","provider":"shopify"}},"widget":"shopify","wrapper":"shopifyServiceWrapper","order":["title","handle","descriptionHtml","bodyHtml","tags","vendor","publishedAt","variants","images","redirectNewHandle","productType","templateSuffix","giftCard","giftCardTemplateSuffix"]},"takeshapeIoShopId":{"instructions":"Format: gid://shopify/Product/1111111111111","label":"product ID","widget":"serviceObjectId","provider":"shopify","serviceObjectType":"product","service":"shopify:takeshape-io-shop"}},"order":["name","takeshapeIoShopId","takeshapeIoShop"]}},"Look":{"default":{"properties":{"name":{"widget":"singleLineText"},"photo":{"widget":"image"},"text":{"widget":"wysiwygText"},"products":{"widget":"relationship"}},"order":["name","photo","text","products"]}}},"services":{"shopify:takeshape-io-shop":{"params":{"type":"graphql","namespace":"Shopify","shop":"takeshape-io-shop","authHeader":"X-Shopify-Access-Token","endpoint":"https://takeshape-io-shop.myshopify.com/admin/api/2020-07/graphql.json","name":"Shopify Lookbook"}}}} +{"apiVersion":"3","projectId":"fc50424f-6421-4023-a52f-f95dd900a069","version":21,"created":"2021-02-04T15:45:32.300Z","updated":"2021-03-05T16:11:41.972Z","defaultLocale":"en-us","locales":["en-us"],"schemaVersion":"3","queries":{"getProduct":{"shape":"Product","resolver":{"name":"takeshape:get","service":"takeshape:local","options":{"model":"Product"}},"description":"Get a Product by ID","args":"TSGetArgs"},"getProductList":{"shape":"PaginatedList","resolver":{"name":"takeshape:list","service":"takeshape:local","options":{"model":"Product"}},"description":"Returns a list Product in natural order.","args":"TSListArgs"},"getLook":{"shape":"Look","resolver":{"name":"takeshape:get","service":"takeshape:local","options":{"model":"Look"}},"description":"Get a Look by ID","args":"TSGetArgs"},"getLookList":{"shape":"PaginatedList","resolver":{"name":"takeshape:list","service":"takeshape:local","options":{"model":"Look"}},"description":"Returns a list Look in natural order.","args":"TSListArgs"}},"mutations":{"updateProduct":{"shape":"UpdateResult","resolver":{"compose":[{"id":"createNewShopifyObject","if":"isEmpty(args.input.takeshapeIoShopId) && !isEmpty(args.input.takeshapeIoShop)","argsMapping":{"input.descriptionHtml":[["get",{"path":"args.input.takeshapeIoShop.descriptionHtml"}]],"input.handle":[["get",{"path":"args.input.takeshapeIoShop.handle"}]],"input.redirectNewHandle":[["get",{"path":"args.input.takeshapeIoShop.redirectNewHandle"}]],"input.productType":[["get",{"path":"args.input.takeshapeIoShop.productType"}]],"input.tags":[["get",{"path":"args.input.takeshapeIoShop.tags"}]],"input.templateSuffix":[["get",{"path":"args.input.takeshapeIoShop.templateSuffix"}]],"input.giftCard":[["get",{"path":"args.input.takeshapeIoShop.giftCard"}]],"input.giftCardTemplateSuffix":[["get",{"path":"args.input.takeshapeIoShop.giftCardTemplateSuffix"}]],"input.title":[["get",{"path":"args.input.takeshapeIoShop.title"}]],"input.vendor":[["get",{"path":"args.input.takeshapeIoShop.vendor"}]],"input.bodyHtml":[["get",{"path":"args.input.takeshapeIoShop.bodyHtml"}]]},"name":"graphql:mutation","service":"shopify:takeshape-io-shop","options":{"fieldName":"productCreate","selectionSet":"{ product { id } }"}},{"id":"editTakeshape","argsMapping":{"input":[["get",{"path":"args.input"}]],"input.takeshapeIoShopId":[["get",{"path":"steps.createNewShopifyObject.product.id"}],["get",{"path":"args.input.takeshapeIoShopId"}]]},"name":"takeshape:update","service":"takeshape:local","options":{"model":"Product"}},{"id":"updateExistingShopifyObject","if":"!isEmpty(args.input.takeshapeIoShopId) && !isEmpty(args.input.takeshapeIoShop)","argsMapping":{"input.descriptionHtml":[["get",{"path":"args.input.takeshapeIoShop.descriptionHtml"}]],"input.handle":[["get",{"path":"args.input.takeshapeIoShop.handle"}]],"input.redirectNewHandle":[["get",{"path":"args.input.takeshapeIoShop.redirectNewHandle"}]],"input.productType":[["get",{"path":"args.input.takeshapeIoShop.productType"}]],"input.tags":[["get",{"path":"args.input.takeshapeIoShop.tags"}]],"input.templateSuffix":[["get",{"path":"args.input.takeshapeIoShop.templateSuffix"}]],"input.giftCard":[["get",{"path":"args.input.takeshapeIoShop.giftCard"}]],"input.giftCardTemplateSuffix":[["get",{"path":"args.input.takeshapeIoShop.giftCardTemplateSuffix"}]],"input.title":[["get",{"path":"args.input.takeshapeIoShop.title"}]],"input.vendor":[["get",{"path":"args.input.takeshapeIoShop.vendor"}]],"input.bodyHtml":[["get",{"path":"args.input.takeshapeIoShop.bodyHtml"}]],"input.id":[["get",{"path":"args.input.takeshapeIoShopId"}]]},"name":"graphql:mutation","service":"shopify:takeshape-io-shop","options":{"fieldName":"productUpdate","selectionSet":"{ product { id } }"}}],"resultsMapping":{"result":[["get",{"path":"steps.editTakeshape.result"}]]}},"description":"Update Product. If the input has Shopify values and a Shopify ID, the Shopify product with that ID is updated.\nIf the input has Shopify values and no Shopify ID, a Shopify product is created.","args":"UpdateArgs"},"createProduct":{"shape":"CreateResult","resolver":{"compose":[{"id":"shopifyCreate","if":"!isEmpty(args.input.takeshapeIoShop)","argsMapping":{"input.descriptionHtml":[["get",{"path":"args.input.takeshapeIoShop.descriptionHtml"}]],"input.handle":[["get",{"path":"args.input.takeshapeIoShop.handle"}]],"input.redirectNewHandle":[["get",{"path":"args.input.takeshapeIoShop.redirectNewHandle"}]],"input.productType":[["get",{"path":"args.input.takeshapeIoShop.productType"}]],"input.tags":[["get",{"path":"args.input.takeshapeIoShop.tags"}]],"input.templateSuffix":[["get",{"path":"args.input.takeshapeIoShop.templateSuffix"}]],"input.giftCard":[["get",{"path":"args.input.takeshapeIoShop.giftCard"}]],"input.giftCardTemplateSuffix":[["get",{"path":"args.input.takeshapeIoShop.giftCardTemplateSuffix"}]],"input.title":[["get",{"path":"args.input.takeshapeIoShop.title"}]],"input.vendor":[["get",{"path":"args.input.takeshapeIoShop.vendor"}]],"input.bodyHtml":[["get",{"path":"args.input.takeshapeIoShop.bodyHtml"}]]},"name":"graphql:mutation","service":"shopify:takeshape-io-shop","options":{"fieldName":"productCreate","selectionSet":"{ product { id } }"}},{"id":"creatingShopifyObject","if":"!isEmpty(args.input.takeshapeIoShop)","argsMapping":{"input":[["get",{"path":"args.input"}]],"input.takeshapeIoShopId":[["get",{"path":"steps.shopifyCreate.product.id"}]]},"name":"takeshape:create","service":"takeshape:local","options":{"model":"Product"}},{"id":"notCreatingShopifyObject","if":"isEmpty(args.input.takeshapeIoShop)","argsMapping":{"input":[["get",{"path":"args.input"}]]},"name":"takeshape:create","service":"takeshape:local","options":{"model":"Product"}}],"resultsMapping":{"result":[["get",{"path":"steps.creatingShopifyObject.result"}],["get",{"path":"steps.notCreatingShopifyObject.result"}]]}},"description":"Create Product. If Shopify values are provided, a Shopify product is also created and the new product ID is saved.","args":"CreateArgs"},"duplicateProduct":{"shape":"DuplicateResult","resolver":{"name":"takeshape:duplicate","service":"takeshape:local","options":{"model":"Product"}},"description":"Duplicate Product","args":"DuplicateArgs"},"deleteProduct":{"shape":"DeleteResult","resolver":{"name":"takeshape:delete","service":"takeshape:local","options":{"model":"Product"}},"description":"Delete Product","args":"DeleteArgs"},"createProductAndServiceObject":{"shape":"CreateResult","resolver":{"compose":[{"argsMapping":{"input.descriptionHtml":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.descriptionHtml"}]],"input.handle":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.handle"}]],"input.redirectNewHandle":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.redirectNewHandle"}]],"input.productType":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.productType"}]],"input.tags":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.tags"}]],"input.templateSuffix":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.templateSuffix"}]],"input.giftCard":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.giftCard"}]],"input.giftCardTemplateSuffix":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.giftCardTemplateSuffix"}]],"input.title":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.title"}]],"input.vendor":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.vendor"}]],"input.bodyHtml":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.bodyHtml"}]]},"name":"graphql:mutation","service":"shopify:takeshape-io-shop","options":{"fieldName":"productCreate","selectionSet":"{ product { id } }"}},{"argsMapping":{"input":[["jsonPath",{"path":"$.args.input"}]],"input.takeshapeIoShopId":[["jsonPath",{"path":"$.results[0].product.id"}]]},"name":"takeshape:create","service":"takeshape:local","options":{"model":"Product"}}],"resultsMapping":[["jsonPath",{"path":"$.results[1]"}]]},"description":"Create Product","args":"CreateArgs"},"updateProductAndCreateServiceObject":{"shape":"UpdateResult","resolver":{"compose":[{"argsMapping":{"input.descriptionHtml":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.descriptionHtml"}]],"input.handle":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.handle"}]],"input.redirectNewHandle":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.redirectNewHandle"}]],"input.productType":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.productType"}]],"input.tags":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.tags"}]],"input.templateSuffix":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.templateSuffix"}]],"input.giftCard":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.giftCard"}]],"input.giftCardTemplateSuffix":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.giftCardTemplateSuffix"}]],"input.title":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.title"}]],"input.vendor":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.vendor"}]],"input.bodyHtml":[["jsonPath",{"path":"$.args.input.takeshapeIoShop.bodyHtml"}]]},"name":"graphql:mutation","service":"shopify:takeshape-io-shop","options":{"fieldName":"productCreate","selectionSet":"{ product { id } }"}},{"argsMapping":{"input":[["jsonPath",{"path":"$.args.input"}]],"input.takeshapeIoShopId":[["jsonPath",{"path":"$.results[0].product.id"}]]},"name":"takeshape:update","service":"takeshape:local","options":{"model":"Product"}}],"resultsMapping":[["jsonPath",{"path":"$.results[1]"}]]},"description":"Update Product","args":"UpdateArgs"},"updateLook":{"shape":"UpdateResult","resolver":{"name":"takeshape:update","service":"takeshape:local","options":{"model":"Look"}},"description":"Update Look","args":"UpdateArgs"},"createLook":{"shape":"CreateResult","resolver":{"name":"takeshape:create","service":"takeshape:local","options":{"model":"Look"}},"description":"Create Look","args":"CreateArgs"},"duplicateLook":{"shape":"DuplicateResult","resolver":{"name":"takeshape:duplicate","service":"takeshape:local","options":{"model":"Look"}},"description":"Duplicate Look","args":"DuplicateArgs"},"deleteLook":{"shape":"DeleteResult","resolver":{"name":"takeshape:delete","service":"takeshape:local","options":{"model":"Look"}},"description":"Delete Look","args":"DeleteArgs"}},"shapes":{"ProductInterface":{"id":"ProductInterface","name":"ProductInterface","title":"ProductInterface","description":"ProductInterface","schema":{"type":"object","properties":{"_id":{"type":"string"},"_version":{"type":"number"},"_status":{"type":"string","@workflow":"default"},"name":{"type":"string","title":"Name"},"takeshapeIoShopId":{"title":"Service ID","type":"string"},"takeshapeIoShop":{"$ref":"#/shapes/Shopify_ProductInput/schema"}},"required":[]}},"Product":{"id":"0DeHE3eJn","name":"Product","title":"Product","workflow":"default","model":{"type":"multiple"},"schema":{"type":"object","properties":{"name":{"minLength":0,"type":"string","description":"","title":"Name","@mapping":"takeshape:local:Product.Fv5HIHo4_"},"takeshapeIoShopId":{"type":"string","@mapping":"takeshape:local:Product.WOK1Xvcb5","title":"takeshape-io-shop","minLength":1,"pattern":"(^gid://shopify/Product/\\d+$)"},"takeshapeIoShop":{"$ref":"#/shapes/Shopify_Product/schema","@resolver":{"name":"graphql:query","service":"shopify:takeshape-io-shop","options":{"fieldName":"product"},"argsMapping":{"id":[["get",{"path":"source.takeshapeIoShopId"}]]}},"@tag":"pattern:service-object:1"}}}},"Look":{"id":"0qzGxgSCJ","name":"Look","title":"Look","description":"Each look features a photograph, the products being shown off, and optional accompanying text.","workflow":"default","model":{"type":"multiple"},"schema":{"type":"object","properties":{"name":{"minLength":1,"type":"string","description":"","title":"Name","@mapping":"takeshape:local:Look.LDCYL9XU5"},"photo":{"description":"","$ref":"#/shapes/TSRelationship/schema","@relationship":{"shapeIds":["ASSET"]},"title":"Photo","@mapping":"takeshape:local:Look.4WzSq3aHx"},"text":{"type":"object","@tag":"draftjs","description":"","title":"Text","@mapping":"takeshape:local:Look._qzcnRoKD"},"products":{"description":"","type":"array","items":{"$ref":"#/shapes/TSRelationship/schema"},"@relationship":{"shapeIds":["0DeHE3eJn"],"type":"multiple","relatedName":"looks"},"title":"Products","@mapping":"takeshape:local:Look.dGVaGVDct"}},"required":["name","photo"]}},"ProductVariantInterface":{"id":"ProductVariantInterface","name":"ProductVariantInterface","title":"ProductVariantInterface","description":"ProductVariantInterface","schema":{"type":"object","properties":{"_id":{"type":"string"},"_version":{"type":"number"},"_status":{"type":"string"},"singleLine":{"type":"string","title":"Single Line"},"takeshapeIoShopId":{"title":"Service ID","type":"string"},"takeshapeIoShop":{"$ref":"#/shapes/Shopify_ProductVariantInput/schema"}},"required":[]}}},"workflows":{},"forms":{"Product":{"default":{"properties":{"name":{"widget":"singleLineText"},"takeshapeIoShop":{"properties":{"descriptionHtml":{"widget":"serviceObjectProperty","provider":"shopify"},"handle":{"widget":"serviceObjectProperty","provider":"shopify"},"redirectNewHandle":{"widget":"serviceObjectProperty","provider":"shopify"},"productType":{"widget":"serviceObjectProperty","provider":"shopify"},"tags":{"widget":"serviceObjectProperty","provider":"shopify"},"templateSuffix":{"widget":"serviceObjectProperty","provider":"shopify"},"giftCard":{"widget":"serviceObjectProperty","provider":"shopify"},"giftCardTemplateSuffix":{"widget":"serviceObjectProperty","provider":"shopify"},"title":{"widget":"serviceObjectProperty","provider":"shopify"},"vendor":{"widget":"serviceObjectProperty","provider":"shopify"},"bodyHtml":{"widget":"serviceObjectProperty","provider":"shopify"},"images":{"widget":"shopifyProductImages","provider":"shopify"},"publishedAt":{"widget":"serviceObjectProperty","provider":"shopify"},"variants":{"widget":"shopifyRelationshipSummary","provider":"shopify"}},"widget":"shopify","wrapper":"shopifyServiceWrapper","order":["title","handle","descriptionHtml","bodyHtml","tags","vendor","publishedAt","variants","images","redirectNewHandle","productType","templateSuffix","giftCard","giftCardTemplateSuffix"]},"takeshapeIoShopId":{"instructions":"Format: gid://shopify/Product/1111111111111","label":"product ID","widget":"serviceObjectId","provider":"shopify","serviceObjectType":"product","service":"shopify:takeshape-io-shop"}},"order":["name","takeshapeIoShopId","takeshapeIoShop"]}},"Look":{"default":{"properties":{"name":{"widget":"singleLineText"},"photo":{"widget":"image"},"text":{"widget":"wysiwygText"},"products":{"widget":"relationship"}},"order":["name","photo","text","products"]}}},"services":{"shopify:takeshape-io-shop":{"params":{"type":"graphql","namespace":"Shopify","shop":"takeshape-io-shop","authHeader":"X-Shopify-Access-Token","endpoint":"https://takeshape-io-shop.myshopify.com/admin/api/2020-07/graphql.json","name":"Shopify Lookbook"}}}}