Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Shopify GraphQL templates from file system to DbResource file system #82

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions data/ShopifySetupSeedData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ under the License.
description="Create Update Product Tags System Message"
parentTypeId="ShopifyBulkImport"
sendServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.send#BulkMutationSystemMessage"
sendPath="component://shopify-connector/template/graphQL/BulkUpdateProductTags.ftl"
sendPath="dbresource://shopify/template/graphQL/BulkUpdateProductTags.ftl"
consumeServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.consume#BulkOperationResult"
receivePath="${contentRoot}/shopify/ProductTagsFeed/result/BulkOperationResult-${systemMessageId}-${remoteMessageId}-${nowDate}.jsonl">
<parameters parameterName="consumeSmrId" parameterValue="" systemMessageRemoteId=""/>
Expand Down Expand Up @@ -115,7 +115,7 @@ under the License.
description="Create Update Product Variants System Message"
parentTypeId="ShopifyBulkImport"
sendServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.send#BulkMutationSystemMessage"
sendPath="component://shopify-connector/template/graphQL/BulkUpdateProductVariants.ftl"
sendPath="dbresource://shopify/template/graphQL/BulkUpdateProductVariants.ftl"
consumeServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.consume#BulkOperationResult"
receivePath="${contentRoot}/shopify/ProductVariantsFeed/result/BulkOperationResult-${systemMessageId}-${remoteMessageId}-${nowDate}.jsonl">
<parameters parameterName="consumeSmrId" parameterValue="" systemMessageRemoteId=""/>
Expand Down Expand Up @@ -150,7 +150,7 @@ under the License.
description="Bulk Create Gift Cards System Message"
parentTypeId="ShopifyBulkImport"
sendServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.send#BulkMutationSystemMessage"
sendPath="component://shopify-connector/template/graphQL/BulkCreateGiftCards.ftl"
sendPath="dbresource://shopify/template/graphQL/BulkCreateGiftCards.ftl"
consumeServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.consume#BulkOperationResult"
receivePath="${contentRoot}/shopify/GiftCardActivationFeed/result/BulkOperationResult-${systemMessageId}-${remoteMessageId}-${nowDate}.jsonl">
<parameters parameterName="consumeSmrId" parameterValue="" systemMessageRemoteId=""/>
Expand All @@ -173,7 +173,7 @@ under the License.
description="Bulk Variants Metafield Query System Message"
parentTypeId="ShopifyBulkQuery"
sendServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.send#BulkQuerySystemMessage"
sendPath="component://shopify-connector/template/graphQL/BulkVariantsMetafieldQuery.ftl"
sendPath="dbresource://shopify/template/graphQL/BulkVariantsMetafieldQuery.ftl"
consumeServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.consume#BulkOperationResult"
receivePath="${contentRoot}/shopify/BulkVariantsMetafieldFeed/BulkOperationResult-${systemMessageId}-${remoteMessageId}-${nowDate}.jsonl">
<parameters parameterName="consumeSmrId" parameterValue="" systemMessageRemoteId=""/>
Expand All @@ -194,7 +194,7 @@ under the License.
description="Bulk Order Metafields Query System Message"
parentTypeId="ShopifyBulkQuery"
sendServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.send#BulkQuerySystemMessage"
sendPath="component://shopify-connector/template/graphQL/BulkOrderMetafieldsQuery.ftl"
sendPath="dbresource://shopify/template/graphQL/BulkOrderMetafieldsQuery.ftl"
consumeServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.consume#BulkOperationResult"
receivePath="${contentRoot}/shopify/BulkOrderMetafieldsFeed/BulkOperationResult-${systemMessageId}-${remoteMessageId}-${nowDate}.jsonl">
<parameters parameterName="consumeSmrId" parameterValue="" systemMessageRemoteId=""/>
Expand All @@ -215,7 +215,7 @@ under the License.
description="Bulk Order Headers Query System Message"
parentTypeId="ShopifyBulkQuery"
sendServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.send#BulkQuerySystemMessage"
sendPath="component://shopify-connector/template/graphQL/BulkOrderHeadersQuery.ftl"
sendPath="dbresource://shopify/template/graphQL/BulkOrderHeadersQuery.ftl"
consumeServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.consume#BulkOperationResult"
receivePath="${contentRoot}/shopify/BulkOrderHeadersQuery/BulkOperationResult-${systemMessageId}-${remoteMessageId}-${nowDate}.jsonl">
<parameters parameterName="consumeSmrId" parameterValue="" systemMessageRemoteId=""/>
Expand All @@ -237,7 +237,7 @@ under the License.
description="Bulk Order Items Query System Message"
parentTypeId="ShopifyBulkQuery"
sendServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.send#BulkQuerySystemMessage"
sendPath="component://shopify-connector/template/graphQL/BulkOrderItemsQuery.ftl"
sendPath="dbresource://shopify/template/graphQL/BulkOrderItemsQuery.ftl"
consumeServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.consume#BulkOperationResult"
receivePath="${contentRoot}/shopify/BulkOrderItemsQuery/BulkOperationResult-${systemMessageId}-${remoteMessageId}-${nowDate}.jsonl">
<parameters parameterName="consumeSmrId" parameterValue="" systemMessageRemoteId=""/>
Expand All @@ -259,7 +259,7 @@ under the License.
description="Bulk Order Custom Attributes Query System Message"
parentTypeId="ShopifyBulkQuery"
sendServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.send#BulkQuerySystemMessage"
sendPath="component://shopify-connector/template/graphQL/BulkOrderCustomAttributesQuery.ftl"
sendPath="dbresource://shopify/template/graphQL/BulkOrderCustomAttributesQuery.ftl"
consumeServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.consume#BulkOperationResult"
receivePath="${contentRoot}/shopify/BulkOrderCustomAttributesQuery/BulkOperationResult-${systemMessageId}-${remoteMessageId}-${nowDate}.jsonl">
<parameters parameterName="consumeSmrId" parameterValue="" systemMessageRemoteId=""/>
Expand All @@ -280,7 +280,7 @@ under the License.
<moqui.service.message.SystemMessageType systemMessageTypeId="DeleteWebhookSubscription"
description="Delete Shopify Webhook Subscription"
sendServiceName="co.hotwax.shopify.webhook.ShopifyWebhookServices.send#WebhookSubscriptionDeleteSystemMessage"
sendPath="component://shopify-connector/template/graphQL/WebhookSubscriptionDelete.ftl">
sendPath="dbresource://shopify/template/graphQL/WebhookSubscriptionDelete.ftl">
<parameters parameterName="queryTemplateLocation" parameterValue="component://shopify-connector/template/graphQL/WebhookSubscriptionsQuery.ftl" systemMessageRemoteId=""/>
</moqui.service.message.SystemMessageType>

Expand All @@ -296,7 +296,7 @@ under the License.
description="Shopify Bulk Operations Finish Webhook"
parentTypeId="ShopifyWebhook"
sendServiceName="co.hotwax.shopify.webhook.ShopifyWebhookServices.send#WebhookSubscriptionSystemMessage"
sendPath="component://shopify-connector/template/graphQL/WebhookSubscriptionCreate.ftl"
sendPath="dbresource://shopify/template/graphQL/WebhookSubscriptionCreate.ftl"
consumeServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.consume#BulkOperationsFinishWebhookPayload">
<parameters parameterName="topic" parameterValue="BULK_OPERATIONS_FINISH" systemMessageRemoteId=""/>
<!-- Following parameters if not configured sets to default values configured in service in attributes
Expand Down Expand Up @@ -337,7 +337,7 @@ under the License.
description="Shopify Orders Updated Webhook"
parentTypeId="ShopifyWebhook"
sendServiceName="co.hotwax.shopify.webhook.ShopifyWebhookServices.send#WebhookSubscriptionSystemMessage"
sendPath="component://shopify-connector/template/graphQL/WebhookSubscriptionCreate.ftl"
sendPath="dbresource://shopify/template/graphQL/WebhookSubscriptionCreate.ftl"
consumeServiceName="co.hotwax.shopify.webhook.ShopifyWebhookServices.consume#WebhookPayloadSystemMessage">
<parameters parameterName="topic" parameterValue="ORDERS_UPDATED" systemMessageRemoteId=""/>
<!-- Following parameters if not configured sets to default values configured in service in attributes
Expand Down Expand Up @@ -394,7 +394,7 @@ under the License.
description="Bulk Order Discount Code Application Query System Message"
parentTypeId="ShopifyBulkQuery"
sendServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.send#BulkQuerySystemMessage"
sendPath="component://shopify-connector/template/graphQL/BulkOrderDiscountCodeApplQuery.ftl"
sendPath="dbresource://shopify/template/graphQL/BulkOrderDiscountCodeApplQuery.ftl"
consumeServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.consume#BulkOperationResult"
receivePath="${contentRoot}/shopify/BulkOrderDiscountCodeAppl/BulkOperationResult-${systemMessageId}-${remoteMessageId}-${nowDate}.jsonl">
<parameters parameterName="consumeSmrId" parameterValue="" systemMessageRemoteId=""/>
Expand Down
Loading