@foxtware/mineral 0.1.15 → 0.1.17
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/.creds.yml.sample +34 -0
- package/AGENTS.md +5 -0
- package/_build_scripts/createNewFunction.js +19 -19
- package/api/_example.js +6 -3
- package/api/_tools/log.js +22 -0
- package/api/algolia/docs.md +7 -0
- package/api/asana/asana.constants.js +7 -0
- package/api/asana/asana.utils.js +37 -0
- package/api/asana/asanaGet.js +150 -0
- package/api/asana/docs.md +5 -0
- package/api/athos/docs.md +9 -0
- package/api/bleckmann/bleckmannAsnsGet.js +3 -1
- package/api/clickup/clickup.constants.js +7 -0
- package/api/clickup/clickup.utils.js +36 -0
- package/api/clickup/clickupGet.js +150 -0
- package/api/clickup/docs.md +6 -0
- package/api/discord/discord.constants.js +7 -0
- package/api/discord/discord.utils.js +36 -0
- package/api/discord/discordGet.js +144 -0
- package/api/discord/docs.md +6 -0
- package/api/etsy/_example.get.js +68 -0
- package/api/etsy/etsy.constants.js +33 -0
- package/api/etsy/etsy.utils.js +208 -0
- package/api/etsy/etsyAccessTokenRefresh.js +106 -0
- package/api/etsy/etsyAccessTokenRequest.js +118 -0
- package/api/etsy/etsyAllListingFilesGet.js +69 -0
- package/api/etsy/etsyAllListingsGetActive.js +88 -0
- package/api/etsy/etsyAuthorizationCodeRequest.js +124 -0
- package/api/etsy/etsyBuyerTaxonomyNodePropertiesGet.js +62 -0
- package/api/etsy/etsyBuyerTaxonomyNodesGet.js +58 -0
- package/api/etsy/etsyDraftListingCreate.js +71 -0
- package/api/etsy/etsyFeaturedListingsByShopGet.js +78 -0
- package/api/etsy/etsyGet.js +150 -0
- package/api/etsy/etsyHolidayPreferencesGet.js +65 -0
- package/api/etsy/etsyHolidayPreferencesUpdate.js +75 -0
- package/api/etsy/etsyListingDelete.js +61 -0
- package/api/etsy/etsyListingFileDelete.js +72 -0
- package/api/etsy/etsyListingFileGet.js +73 -0
- package/api/etsy/etsyListingGet.js +62 -0
- package/api/etsy/etsyListingImageDelete.js +72 -0
- package/api/etsy/etsyListingImageGet.js +66 -0
- package/api/etsy/etsyListingImagesGet.js +62 -0
- package/api/etsy/etsyListingInventoryGet.js +62 -0
- package/api/etsy/etsyListingInventoryUpdate.js +99 -0
- package/api/etsy/etsyListingOfferingGet.js +70 -0
- package/api/etsy/etsyListingPersonalizationDelete.js +68 -0
- package/api/etsy/etsyListingPersonalizationGet.js +62 -0
- package/api/etsy/etsyListingPersonalizationUpdate.js +75 -0
- package/api/etsy/etsyListingProductGet.js +64 -0
- package/api/etsy/etsyListingPropertiesGet.js +69 -0
- package/api/etsy/etsyListingPropertyDelete.js +72 -0
- package/api/etsy/etsyListingPropertyGet.js +66 -0
- package/api/etsy/etsyListingPropertyUpdate.js +79 -0
- package/api/etsy/etsyListingTranslationCreate.js +79 -0
- package/api/etsy/etsyListingTranslationGet.js +73 -0
- package/api/etsy/etsyListingTranslationUpdate.js +79 -0
- package/api/etsy/etsyListingUpdate.js +75 -0
- package/api/etsy/etsyListingVariationImagesGet.js +69 -0
- package/api/etsy/etsyListingVideoDelete.js +72 -0
- package/api/etsy/etsyListingVideoGet.js +66 -0
- package/api/etsy/etsyListingVideosGet.js +62 -0
- package/api/etsy/etsyListingsByListingIdsGet.js +63 -0
- package/api/etsy/etsyListingsByShopReceiptGet.js +82 -0
- package/api/etsy/etsyListingsByShopReturnPolicyGet.js +69 -0
- package/api/etsy/etsyListingsInventoryByListingIdsGet.js +63 -0
- package/api/etsy/etsyListingsShippingByListingIdsGet.js +63 -0
- package/api/etsy/etsyMeGet.js +56 -0
- package/api/etsy/etsyOauthRedirectParse.js +201 -0
- package/api/etsy/etsyPaymentAccountLedgerEntryPaymentsGet.js +65 -0
- package/api/etsy/etsyPaymentsGet.js +65 -0
- package/api/etsy/etsyPing.js +51 -0
- package/api/etsy/etsyReceiptShipmentCreate.js +75 -0
- package/api/etsy/etsyReviewsByListingGet.js +76 -0
- package/api/etsy/etsyReviewsByShopGet.js +80 -0
- package/api/etsy/etsySellerTaxonomyNodePropertiesGet.js +62 -0
- package/api/etsy/etsySellerTaxonomyNodesGet.js +58 -0
- package/api/etsy/etsyShippingCarriersGet.js +63 -0
- package/api/etsy/etsyShopGet.js +65 -0
- package/api/etsy/etsyShopListingsActiveGet.js +82 -0
- package/api/etsy/etsyShopListingsGet.js +87 -0
- package/api/etsy/etsyShopPaymentAccountLedgerEntriesGet.js +80 -0
- package/api/etsy/etsyShopPaymentAccountLedgerEntryGet.js +69 -0
- package/api/etsy/etsyShopPaymentByReceiptIdGet.js +69 -0
- package/api/etsy/etsyShopProductionPartnersGet.js +65 -0
- package/api/etsy/etsyShopReadinessStateDefinitionCreate.js +71 -0
- package/api/etsy/etsyShopReadinessStateDefinitionDelete.js +68 -0
- package/api/etsy/etsyShopReadinessStateDefinitionGet.js +69 -0
- package/api/etsy/etsyShopReadinessStateDefinitionUpdate.js +75 -0
- package/api/etsy/etsyShopReadinessStateDefinitionsGet.js +78 -0
- package/api/etsy/etsyShopReceiptGet.js +67 -0
- package/api/etsy/etsyShopReceiptTransactionGet.js +69 -0
- package/api/etsy/etsyShopReceiptTransactionsByListingGet.js +82 -0
- package/api/etsy/etsyShopReceiptTransactionsByReceiptGet.js +69 -0
- package/api/etsy/etsyShopReceiptTransactionsByShopGet.js +78 -0
- package/api/etsy/etsyShopReceiptUpdate.js +75 -0
- package/api/etsy/etsyShopReceiptsGet.js +70 -0
- package/api/etsy/etsyShopReturnPoliciesConsolidate.js +75 -0
- package/api/etsy/etsyShopReturnPolicyCreate.js +71 -0
- package/api/etsy/etsyShopReturnPolicyDelete.js +68 -0
- package/api/etsy/etsyShopReturnPolicyGet.js +69 -0
- package/api/etsy/etsyShopReturnPolicyUpdate.js +75 -0
- package/api/etsy/etsyShopReturnsPoliciesGet.js +70 -0
- package/api/etsy/etsyShopSectionCreate.js +71 -0
- package/api/etsy/etsyShopSectionDelete.js +68 -0
- package/api/etsy/etsyShopSectionGet.js +69 -0
- package/api/etsy/etsyShopSectionListingsGet.js +86 -0
- package/api/etsy/etsyShopSectionUpdate.js +75 -0
- package/api/etsy/etsyShopSectionsGet.js +65 -0
- package/api/etsy/etsyShopShippingProfileCreate.js +71 -0
- package/api/etsy/etsyShopShippingProfileDelete.js +68 -0
- package/api/etsy/etsyShopShippingProfileDestinationCreate.js +75 -0
- package/api/etsy/etsyShopShippingProfileDestinationDelete.js +72 -0
- package/api/etsy/etsyShopShippingProfileDestinationUpdate.js +79 -0
- package/api/etsy/etsyShopShippingProfileDestinationsByShippingProfileGet.js +82 -0
- package/api/etsy/etsyShopShippingProfileGet.js +69 -0
- package/api/etsy/etsyShopShippingProfileUpdate.js +75 -0
- package/api/etsy/etsyShopShippingProfileUpgradeCreate.js +75 -0
- package/api/etsy/etsyShopShippingProfileUpgradeDelete.js +72 -0
- package/api/etsy/etsyShopShippingProfileUpgradeUpdate.js +79 -0
- package/api/etsy/etsyShopShippingProfileUpgradesGet.js +69 -0
- package/api/etsy/etsyShopShippingProfilesGet.js +65 -0
- package/api/etsy/etsyShopUpdate.js +69 -0
- package/api/etsy/etsyShopsGet.js +70 -0
- package/api/etsy/etsyTokenScopes.js +63 -0
- package/api/etsy/etsyUserAddressDelete.js +61 -0
- package/api/etsy/etsyUserAddressGet.js +62 -0
- package/api/etsy/etsyUserAddressesGet.js +70 -0
- package/api/etsy/etsyUserGet.js +62 -0
- package/api/etsy/etsyUserShopsGet.js +62 -0
- package/api/etsy/etsyVariationImagesUpdate.js +75 -0
- package/api/figma/docs.md +6 -0
- package/api/figma/figma.constants.js +7 -0
- package/api/figma/figma.utils.js +36 -0
- package/api/figma/figmaGet.js +107 -0
- package/api/github/githubReposGet.js +3 -1
- package/api/github/githubUserGet.js +3 -1
- package/api/google/docs.md +7 -0
- package/api/google/google.constants.js +9 -0
- package/api/google/google.utils.js +137 -0
- package/api/google/googlecalendarCalendarsGet.js +54 -0
- package/api/google/googlecalendarEventCreate.js +63 -0
- package/api/google/googlecalendarEventDelete.js +55 -0
- package/api/google/googlecalendarEventGet.js +55 -0
- package/api/google/googlecalendarEventsGet.js +65 -0
- package/api/google/googledriveFileDelete.js +53 -0
- package/api/google/googledriveFileGet.js +57 -0
- package/api/google/googledriveFileUpload.js +127 -0
- package/api/google/googledriveFilesGet.js +72 -0
- package/api/google/googlesheetsSpreadsheetGet.js +57 -0
- package/api/google/googlesheetsSpreadsheetSheetAdd.js +150 -0
- package/api/google/googlesheetsSpreadsheetSheetGetData.js +159 -0
- package/api/google/googlesheetsSpreadsheetTrim.js +239 -0
- package/api/gorgias/docs.md +7 -0
- package/api/logiwa/logiwaAuthGet.js +3 -1
- package/api/logiwa/logiwaInventoriesGet.js +3 -1
- package/api/logiwa/logiwaOrdersGet.js +3 -1
- package/api/logiwa/logiwaProductsGet.js +3 -1
- package/api/logiwa/logiwaReportGetInventorySnapshot.js +3 -1
- package/api/logiwa/logiwaReportGetTotalInventory.js +3 -1
- package/api/logiwa/logiwaWebhooksGet.js +3 -1
- package/api/loop/loopAllowlistItemsGet.js +3 -1
- package/api/loop/loopBlocklistItemsGet.js +3 -1
- package/api/loop/loopDestinationsGet.js +3 -1
- package/api/loop/loopReturnsGet.js +3 -1
- package/api/notion/docs.md +6 -0
- package/api/notion/notion.constants.js +9 -0
- package/api/notion/notion.utils.js +44 -0
- package/api/notion/notionGet.js +146 -0
- package/api/peoplevox/_example.js +4 -1
- package/api/peoplevox/peoplevox.sessions.js +29 -0
- package/api/peoplevox/peoplevox.utils.js +4 -38
- package/api/peoplevox/peoplevoxAuthGet.js +3 -1
- package/api/peoplevox/peoplevoxGetSingle.js +4 -2
- package/api/peoplevox/peoplevoxOrderEdit.js +8 -2
- package/api/peoplevox/peoplevoxOrderGet.js +6 -1
- package/api/peoplevox/peoplevoxReportGet.js +6 -2
- package/api/pipe17/docs.md +8 -0
- package/api/pipe17/pipe17.constants.js +47 -0
- package/api/pipe17/pipe17.utils.js +123 -0
- package/api/pipe17/pipe17ArrivalGet.js +78 -0
- package/api/pipe17/pipe17ArrivalUpdate.js +111 -0
- package/api/pipe17/pipe17ArrivalsGet.js +54 -0
- package/api/pipe17/pipe17FulfillmentGet.js +69 -0
- package/api/pipe17/pipe17FulfillmentsGet.js +54 -0
- package/api/pipe17/pipe17Get.js +151 -0
- package/api/pipe17/pipe17InventoryItemGet.js +57 -0
- package/api/pipe17/pipe17InventoryItemsGet.js +54 -0
- package/api/pipe17/pipe17JobCreate.js +95 -0
- package/api/pipe17/pipe17JobGet.js +70 -0
- package/api/pipe17/pipe17JobResultsGet.js +55 -0
- package/api/pipe17/pipe17LocationGet.js +57 -0
- package/api/pipe17/pipe17LocationsGet.js +54 -0
- package/api/pipe17/pipe17OrderGet.js +71 -0
- package/api/pipe17/pipe17OrdersGet.js +54 -0
- package/api/pipe17/pipe17ProductGet.js +57 -0
- package/api/pipe17/pipe17ProductsGet.js +54 -0
- package/api/pipe17/pipe17PurchaseGet.js +57 -0
- package/api/pipe17/pipe17PurchasesGet.js +54 -0
- package/api/pipe17/pipe17ReceiptGet.js +57 -0
- package/api/pipe17/pipe17ReceiptsGet.js +54 -0
- package/api/pipe17/pipe17ReturnGet.js +57 -0
- package/api/pipe17/pipe17ReturnsGet.js +54 -0
- package/api/printify/_example.get.js +67 -0
- package/api/printify/_example.js +59 -0
- package/api/printify/printify.constants.js +8 -0
- package/api/printify/printify.utils.js +41 -0
- package/api/printify/printifyBlueprintGet.js +60 -0
- package/api/printify/printifyBlueprintPrintProviderVariantsGet.js +77 -0
- package/api/printify/printifyBlueprintPrintProvidersGet.js +60 -0
- package/api/printify/printifyBlueprintsGet.js +38 -0
- package/api/printify/printifyGet.js +154 -0
- package/api/printify/printifyImageUpload.js +74 -0
- package/api/printify/printifyOrderCancel.js +70 -0
- package/api/printify/printifyOrderCreate.js +98 -0
- package/api/printify/printifyOrderGet.js +70 -0
- package/api/printify/printifyOrderSubmit.js +70 -0
- package/api/printify/printifyOrdersGet.js +72 -0
- package/api/printify/printifyProductCreate.js +96 -0
- package/api/printify/printifyProductDelete.js +70 -0
- package/api/printify/printifyProductGet.js +79 -0
- package/api/printify/printifyProductUpdate.js +81 -0
- package/api/printify/printifyProductsGet.js +67 -0
- package/api/printify/printifyShippingGet.js +70 -0
- package/api/printify/printifyShopsGet.js +56 -0
- package/api/printify/printifyWebhookCreate.js +84 -0
- package/api/printify/printifyWebhookDelete.js +70 -0
- package/api/printify/printifyWebhookUpdate.js +81 -0
- package/api/printify/printifyWebhooksGet.js +56 -0
- package/api/salesforce/docs.md +6 -0
- package/api/shopify/_example.create.js +2 -2
- package/api/shopify/_example.get.js +17 -4
- package/api/shopify/_example.getsingle.js +4 -1
- package/api/shopify/_example.js +4 -1
- package/api/shopify/_example.mutation.js +4 -1
- package/api/shopify/shopifyAbandonedCheckoutsGet.js +1 -1
- package/api/shopify/shopifyArticlesGet.js +1 -1
- package/api/shopify/shopifyBlogsGet.js +1 -1
- package/api/shopify/shopifyBulkMutationDo.js +2 -2
- package/api/shopify/shopifyBulkOperationsGet.js +1 -1
- package/api/shopify/shopifyCatalogsGet.js +17 -4
- package/api/shopify/shopifyChannelsGet.js +17 -4
- package/api/shopify/shopifyCheckoutAndAccountsConfigurationsGet.js +17 -4
- package/api/shopify/shopifyCollectionGet.js +4 -1
- package/api/shopify/shopifyCollectionsGet.js +17 -4
- package/api/shopify/shopifyCustomerCreate.js +2 -2
- package/api/shopify/shopifyCustomerGet.js +4 -1
- package/api/shopify/shopifyCustomerMarketingConsentUpdateSms.js +84 -0
- package/api/shopify/shopifyCustomersGet.js +18 -5
- package/api/shopify/shopifyDecodeSessionToken.js +2 -2
- package/api/shopify/shopifyDeliveryCustomizationsGet.js +1 -1
- package/api/shopify/shopifyDeliveryProfilesGet.js +17 -4
- package/api/shopify/shopifyDiscountNodesGet.js +1 -1
- package/api/shopify/shopifyDisputesGet.js +1 -1
- package/api/shopify/shopifyDraftOrdersGet.js +1 -1
- package/api/shopify/shopifyEventsGet.js +1 -1
- package/api/shopify/shopifyFilesGet.js +1 -1
- package/api/shopify/shopifyFulfillmentOrdersGet.js +17 -4
- package/api/shopify/shopifyGet.js +1 -1
- package/api/shopify/shopifyGiftCardCreate.js +4 -1
- package/api/shopify/shopifyGiftCardDeactivate.js +4 -1
- package/api/shopify/shopifyGiftCardsGet.js +17 -4
- package/api/shopify/shopifyInventoryItemsGet.js +17 -4
- package/api/shopify/shopifyLocationsGet.js +1 -1
- package/api/shopify/shopifyMarketingEventsGet.js +1 -1
- package/api/shopify/shopifyMarketsGet.js +1 -1
- package/api/shopify/shopifyMenusGet.js +1 -1
- package/api/shopify/shopifyMetafieldDefinitionCreate.js +111 -0
- package/api/shopify/shopifyMetafieldDefinitionPropagate.js +211 -0
- package/api/shopify/shopifyMetafieldDefinitionsGet.js +18 -4
- package/api/shopify/shopifyMetafieldsDelete.js +78 -0
- package/api/shopify/shopifyMetaobjectDefinitionsGet.js +1 -1
- package/api/shopify/shopifyMetaobjectsGet.js +1 -1
- package/api/shopify/shopifyMutationDo.js +4 -1
- package/api/shopify/shopifyOrderGet.js +4 -1
- package/api/shopify/shopifyOrdersGet.js +3 -1
- package/api/shopify/shopifyPageDelete.js +4 -1
- package/api/shopify/shopifyPageGet.js +4 -1
- package/api/shopify/shopifyPageUpdate.js +5 -1
- package/api/shopify/shopifyPagesGet.js +1 -1
- package/api/shopify/shopifyPaymentCustomizationsGet.js +1 -1
- package/api/shopify/shopifyProductFeedsGet.js +1 -1
- package/api/shopify/shopifyProductGet.js +110 -0
- package/api/shopify/shopifyProductVariantsGet.js +1 -1
- package/api/shopify/shopifyProductsGet.js +17 -4
- package/api/shopify/shopifyPublicationsGet.js +17 -4
- package/api/shopify/shopifySegmentsGet.js +1 -1
- package/api/shopify/shopifyStoreCreditAccountCredit.js +144 -0
- package/api/shopify/shopifyStoreCreditAccountDebit.js +132 -0
- package/api/shopify/shopifyThemeDelete.js +4 -1
- package/api/shopify/shopifyThemeDuplicate.js +4 -1
- package/api/shopify/shopifyThemeGet.js +2 -2
- package/api/shopify/shopifyThemesGet.js +3 -1
- package/api/shopify/shopifyUrlRedirectsGet.js +1 -1
- package/api/shopify/shopifyWebhookSubscriptionsGet.js +17 -4
- package/api/snowflake/docs.md +8 -0
- package/api/starshipit/starshipitAddressesGet.js +3 -1
- package/api/starshipit/starshipitOrdersListShipped.js +3 -1
- package/api/starshipit/starshipitProductsGet.js +3 -1
- package/api/stripe/_example.js +4 -1
- package/api/stripe/stripeChargesGet.js +3 -1
- package/api/stripe/stripeRefundsGet.js +3 -1
- package/api/stylearcade/stylearcadeDataGet.js +14 -6
- package/api/stylearcade/stylearcadeMetadataGet.js +3 -1
- package/api/tagalys/docs.md +7 -0
- package/api/telnyx/docs.md +6 -0
- package/api/telnyx/telnyx.constants.js +7 -0
- package/api/telnyx/telnyx.utils.js +37 -0
- package/api/telnyx/telnyxAvailablePhoneNumbersGet.js +59 -0
- package/api/telnyx/telnyxBalanceGet.js +51 -0
- package/api/telnyx/telnyxGet.js +151 -0
- package/api/telnyx/telnyxMessageGet.js +59 -0
- package/api/telnyx/telnyxMessageSend.js +65 -0
- package/api/telnyx/telnyxMessagesGet.js +53 -0
- package/api/telnyx/telnyxMessagingProfileCreate.js +62 -0
- package/api/telnyx/telnyxMessagingProfileGet.js +59 -0
- package/api/telnyx/telnyxMessagingProfileUpdate.js +68 -0
- package/api/telnyx/telnyxMessagingProfilesGet.js +53 -0
- package/api/telnyx/telnyxNumberLookupGet.js +61 -0
- package/api/telnyx/telnyxNumberOrderCreate.js +64 -0
- package/api/telnyx/telnyxPhoneNumberGet.js +59 -0
- package/api/telnyx/telnyxPhoneNumberUpdate.js +68 -0
- package/api/telnyx/telnyxPhoneNumbersGet.js +53 -0
- package/api/telnyx/telnyxWebhookDeliveriesGet.js +58 -0
- package/api/threeclicks/threeclicksCollectionsGet.js +3 -1
- package/api/threeclicks/threeclicksPurchaseOrderCreate.js +4 -1
- package/api/threeclicks/threeclicksPurchaseOrderCreateBulk.js +4 -1
- package/api/threeclicks/threeclicksPurchaseOrderGet.js +4 -1
- package/api/threeclicks/threeclicksPurchaseOrderQuantitiesGet.js +4 -1
- package/api/threeclicks/threeclicksPurchaseOrderQuantityCreate.js +4 -1
- package/api/threeclicks/threeclicksPurchaseOrderQuantityCreateBulk.js +4 -1
- package/api/threeclicks/threeclicksPurchaseOrderUpdate.js +5 -1
- package/api/threeclicks/threeclicksPurchaseOrdersGet.js +3 -1
- package/api/threeclicks/threeclicksShipmentCreate.js +4 -1
- package/api/threeclicks/threeclicksShipmentGet.js +4 -1
- package/api/threeclicks/threeclicksShipmentOrderAdd.js +5 -1
- package/api/threeclicks/threeclicksShipmentOrderQuantityCreate.js +5 -1
- package/api/threeclicks/threeclicksShipmentQuantityUpdate.js +5 -1
- package/api/threeclicks/threeclicksShipmentStatusUpdate.js +5 -1
- package/api/threeclicks/threeclicksShipmentsGet.js +3 -1
- package/api/threeclicks/threeclicksSignatureCalculate.js +4 -4
- package/api/threeclicks/threeclicksStyleCodesGet.js +4 -1
- package/api/threeclicks/threeclicksStyleColourDelete.js +5 -1
- package/api/threeclicks/threeclicksStyleDelete.js +4 -1
- package/api/threeclicks/threeclicksStylesGet.js +3 -1
- package/api/upstash/upstashDel.js +4 -1
- package/api/upstash/upstashExists.js +4 -1
- package/api/upstash/upstashGet.js +4 -1
- package/api/utils.js +86 -6
- package/api/workable/workableJobsGet.js +3 -1
- package/api/yotpo/yotpoCampaignsGet.js +3 -1
- package/api/yotpo/yotpoCustomersRecentGet.js +3 -1
- package/api/yotpo/yotpoRedemptionOptionsGet.js +3 -1
- package/api/yotpo/yotpoVipTiersGet.js +3 -1
- package/hosting/copyCredsToEnv.js +3 -3
- package/hosting/deployFromHostingYml.js +2 -2
- package/hosting/execCommand.js +19 -2
- package/hosting/handlerPaths.js +3 -3
- package/package.json +2 -1
- package/server.js +8 -6
- package/server.utils.js +1 -1
|
@@ -2,27 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
const { ArgsWarden } = require('../utils');
|
|
4
4
|
const { credsValidator } = require('../validators');
|
|
5
|
-
const { shopifyGet } = require('./shopifyGet');
|
|
5
|
+
const { shopifyGet, shopifyGetter } = require('./shopifyGet');
|
|
6
6
|
|
|
7
7
|
const argsWarden = new ArgsWarden([
|
|
8
8
|
['credsPayload', credsValidator],
|
|
9
9
|
]);
|
|
10
10
|
|
|
11
11
|
const shopifyInventoryItemsGet = async (
|
|
12
|
+
returnGetter, // Always bound
|
|
13
|
+
|
|
12
14
|
credsPayload,
|
|
13
15
|
{
|
|
14
16
|
...getterOptions // e.g. limit
|
|
15
17
|
} = {},
|
|
16
18
|
) => {
|
|
17
19
|
|
|
18
|
-
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
20
|
+
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
19
21
|
credsPayload,
|
|
20
22
|
});
|
|
21
23
|
if (rejectResponse) {
|
|
22
24
|
return rejectResponse;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
const getterArgs = [
|
|
28
|
+
credsPayload,
|
|
29
|
+
'inventoryItem',
|
|
30
|
+
{
|
|
31
|
+
...getterOptions,
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
return returnGetter
|
|
36
|
+
? shopifyGetter(...getterArgs)
|
|
37
|
+
: shopifyGet(...getterArgs);
|
|
26
38
|
};
|
|
27
39
|
|
|
28
40
|
const funcApiConfig = {
|
|
@@ -30,7 +42,8 @@ const funcApiConfig = {
|
|
|
30
42
|
};
|
|
31
43
|
|
|
32
44
|
module.exports = {
|
|
33
|
-
shopifyInventoryItemsGet,
|
|
45
|
+
shopifyInventoryItemsGet: (...args) => shopifyInventoryItemsGet(false, ...args),
|
|
46
|
+
shopifyInventoryItemsGetter: (...args) => shopifyInventoryItemsGet(true, ...args),
|
|
34
47
|
funcApiConfig,
|
|
35
48
|
};
|
|
36
49
|
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// https://shopify.dev/docs/api/admin-graphql/latest/mutations/metafieldDefinitionCreate
|
|
2
|
+
|
|
3
|
+
const { credsValidator } = require('../validators');
|
|
4
|
+
const { ArgsWarden } = require('../utils');
|
|
5
|
+
const { shopifyMutationDo } = require('../shopify/shopifyMutationDo');
|
|
6
|
+
|
|
7
|
+
const argsWarden = new ArgsWarden([
|
|
8
|
+
['credsPayload', credsValidator],
|
|
9
|
+
['ownerType'],
|
|
10
|
+
['namespace'],
|
|
11
|
+
['key'],
|
|
12
|
+
['name'],
|
|
13
|
+
['type'],
|
|
14
|
+
]);
|
|
15
|
+
|
|
16
|
+
const defaultReturnSchema = `
|
|
17
|
+
createdDefinition {
|
|
18
|
+
id
|
|
19
|
+
name
|
|
20
|
+
namespace
|
|
21
|
+
key
|
|
22
|
+
type {
|
|
23
|
+
name
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`.trim();
|
|
27
|
+
|
|
28
|
+
const shopifyMetafieldDefinitionCreate = async (
|
|
29
|
+
credsPayload,
|
|
30
|
+
ownerType,
|
|
31
|
+
namespace,
|
|
32
|
+
key,
|
|
33
|
+
name,
|
|
34
|
+
type,
|
|
35
|
+
{
|
|
36
|
+
apiVersion,
|
|
37
|
+
access,
|
|
38
|
+
description,
|
|
39
|
+
pin,
|
|
40
|
+
useAsCollectionCondition,
|
|
41
|
+
validations,
|
|
42
|
+
returnSchema = defaultReturnSchema,
|
|
43
|
+
} = {},
|
|
44
|
+
) => {
|
|
45
|
+
|
|
46
|
+
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
47
|
+
credsPayload,
|
|
48
|
+
ownerType,
|
|
49
|
+
namespace,
|
|
50
|
+
key,
|
|
51
|
+
name,
|
|
52
|
+
type,
|
|
53
|
+
});
|
|
54
|
+
if (rejectResponse) {
|
|
55
|
+
return rejectResponse;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return shopifyMutationDo(
|
|
59
|
+
credsPayload,
|
|
60
|
+
'metafieldDefinitionCreate',
|
|
61
|
+
{
|
|
62
|
+
mutationVariables: {
|
|
63
|
+
definition: {
|
|
64
|
+
type: 'MetafieldDefinitionInput!',
|
|
65
|
+
value: {
|
|
66
|
+
ownerType,
|
|
67
|
+
namespace,
|
|
68
|
+
key,
|
|
69
|
+
name,
|
|
70
|
+
type,
|
|
71
|
+
...(access && { access }),
|
|
72
|
+
...(description && { description }),
|
|
73
|
+
...(pin && { pin }),
|
|
74
|
+
...(useAsCollectionCondition && { useAsCollectionCondition }),
|
|
75
|
+
...(validations && { validations }),
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
returnSchema,
|
|
80
|
+
apiVersion,
|
|
81
|
+
},
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const funcApiConfig = {
|
|
86
|
+
argsWarden,
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
module.exports = {
|
|
90
|
+
shopifyMetafieldDefinitionCreate,
|
|
91
|
+
funcApiConfig,
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/*
|
|
95
|
+
curl -X POST "http://localhost:8000/shopifyMetafieldDefinitionCreate" \
|
|
96
|
+
-H "Content-Type: application/json" \
|
|
97
|
+
-d '{
|
|
98
|
+
"credsPayload": { "credsPath": "shopify.au" },
|
|
99
|
+
"ownerType": "CUSTOMER",
|
|
100
|
+
"namespace": "migrations",
|
|
101
|
+
"key": "last_migration_data",
|
|
102
|
+
"name": "Last Migration Data",
|
|
103
|
+
"type": "json",
|
|
104
|
+
"options": {
|
|
105
|
+
"description": "Latest customer store migration details for on-site messaging",
|
|
106
|
+
"access": {
|
|
107
|
+
"storefront": "PUBLIC_READ"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}'
|
|
111
|
+
*/
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
// https://shopify.dev/docs/api/admin-graphql/latest/mutations/metafieldDefinitionCreate
|
|
2
|
+
// https://shopify.dev/docs/api/admin-graphql/latest/queries/metafieldDefinition
|
|
3
|
+
|
|
4
|
+
const { credsValidator } = require('../validators');
|
|
5
|
+
const { ArgsWarden, credsFromPayload, objHasAny } = require('../utils');
|
|
6
|
+
const { shopifyClient } = require('./shopify.utils');
|
|
7
|
+
const { shopifyMutationDo } = require('./shopifyMutationDo');
|
|
8
|
+
|
|
9
|
+
const sourceMetafieldDefinitionAttrs = `
|
|
10
|
+
name
|
|
11
|
+
namespace
|
|
12
|
+
key
|
|
13
|
+
description
|
|
14
|
+
ownerType
|
|
15
|
+
pinnedPosition
|
|
16
|
+
type {
|
|
17
|
+
name
|
|
18
|
+
}
|
|
19
|
+
validations {
|
|
20
|
+
name
|
|
21
|
+
value
|
|
22
|
+
}
|
|
23
|
+
capabilities {
|
|
24
|
+
adminFilterable {
|
|
25
|
+
enabled
|
|
26
|
+
}
|
|
27
|
+
smartCollectionCondition {
|
|
28
|
+
enabled
|
|
29
|
+
}
|
|
30
|
+
uniqueValues {
|
|
31
|
+
enabled
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`.trim();
|
|
35
|
+
|
|
36
|
+
const defaultReturnCreatedDefinitionAttrs = 'id name namespace key ownerType type { name }';
|
|
37
|
+
|
|
38
|
+
const metafieldDefinitionIdentifierValidator = (metafieldDefinitionIdentifier) => {
|
|
39
|
+
return objHasAny(metafieldDefinitionIdentifier, [
|
|
40
|
+
'ownerType',
|
|
41
|
+
'namespace',
|
|
42
|
+
'key',
|
|
43
|
+
]);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const argsWarden = new ArgsWarden([
|
|
47
|
+
['fromStoreCredsPayload', credsValidator],
|
|
48
|
+
['toStoreCredsPayload', credsValidator],
|
|
49
|
+
['metafieldDefinitionIdentifier', metafieldDefinitionIdentifierValidator],
|
|
50
|
+
]);
|
|
51
|
+
|
|
52
|
+
const metafieldDefinitionInputFromDefinition = (sourceDefinition) => {
|
|
53
|
+
const {
|
|
54
|
+
name,
|
|
55
|
+
namespace,
|
|
56
|
+
key,
|
|
57
|
+
description,
|
|
58
|
+
ownerType,
|
|
59
|
+
type,
|
|
60
|
+
validations,
|
|
61
|
+
capabilities,
|
|
62
|
+
pinnedPosition,
|
|
63
|
+
} = sourceDefinition;
|
|
64
|
+
|
|
65
|
+
const definitionInput = {
|
|
66
|
+
name,
|
|
67
|
+
namespace,
|
|
68
|
+
key,
|
|
69
|
+
ownerType,
|
|
70
|
+
type: type?.name,
|
|
71
|
+
...(description && { description }),
|
|
72
|
+
...(pinnedPosition != null && { pin: true }),
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
if (Array.isArray(validations) && validations.length) {
|
|
76
|
+
definitionInput.validations = validations.map(({ name: validationName, value }) => ({
|
|
77
|
+
name: validationName,
|
|
78
|
+
value,
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (capabilities) {
|
|
83
|
+
definitionInput.capabilities = {
|
|
84
|
+
...(capabilities.adminFilterable && {
|
|
85
|
+
adminFilterable: { enabled: capabilities.adminFilterable.enabled },
|
|
86
|
+
}),
|
|
87
|
+
...(capabilities.smartCollectionCondition && {
|
|
88
|
+
smartCollectionCondition: { enabled: capabilities.smartCollectionCondition.enabled },
|
|
89
|
+
}),
|
|
90
|
+
...(capabilities.uniqueValues && {
|
|
91
|
+
uniqueValues: { enabled: capabilities.uniqueValues.enabled },
|
|
92
|
+
}),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return definitionInput;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const fetchSourceMetafieldDefinition = async (
|
|
100
|
+
fromStoreCredsPayload,
|
|
101
|
+
metafieldDefinitionIdentifier,
|
|
102
|
+
{
|
|
103
|
+
apiVersion,
|
|
104
|
+
} = {},
|
|
105
|
+
) => {
|
|
106
|
+
const creds = await credsFromPayload(fromStoreCredsPayload);
|
|
107
|
+
|
|
108
|
+
return shopifyClient.fetch({
|
|
109
|
+
method: 'post',
|
|
110
|
+
body: {
|
|
111
|
+
query: `
|
|
112
|
+
query GetMetafieldDefinition($identifier: MetafieldDefinitionIdentifierInput!) {
|
|
113
|
+
metafieldDefinition(identifier: $identifier) {
|
|
114
|
+
${ sourceMetafieldDefinitionAttrs }
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
`,
|
|
118
|
+
variables: {
|
|
119
|
+
identifier: metafieldDefinitionIdentifier,
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
context: {
|
|
123
|
+
creds,
|
|
124
|
+
apiVersion,
|
|
125
|
+
resultPath: 'data.metafieldDefinition',
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const shopifyMetafieldDefinitionPropagate = async (
|
|
131
|
+
fromStoreCredsPayload,
|
|
132
|
+
toStoreCredsPayload,
|
|
133
|
+
metafieldDefinitionIdentifier,
|
|
134
|
+
{
|
|
135
|
+
apiVersion,
|
|
136
|
+
returnCreatedDefinitionAttrs = defaultReturnCreatedDefinitionAttrs,
|
|
137
|
+
} = {},
|
|
138
|
+
) => {
|
|
139
|
+
|
|
140
|
+
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
141
|
+
fromStoreCredsPayload,
|
|
142
|
+
toStoreCredsPayload,
|
|
143
|
+
metafieldDefinitionIdentifier,
|
|
144
|
+
});
|
|
145
|
+
if (rejectResponse) {
|
|
146
|
+
return rejectResponse;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const sourceResponse = await fetchSourceMetafieldDefinition(
|
|
150
|
+
fromStoreCredsPayload,
|
|
151
|
+
metafieldDefinitionIdentifier,
|
|
152
|
+
{ apiVersion },
|
|
153
|
+
);
|
|
154
|
+
|
|
155
|
+
if (!sourceResponse.ok) {
|
|
156
|
+
return sourceResponse;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (!sourceResponse.data) {
|
|
160
|
+
return {
|
|
161
|
+
ok: false,
|
|
162
|
+
error: {
|
|
163
|
+
code: 'NOT_FOUND',
|
|
164
|
+
message: 'Metafield definition not found on source store.',
|
|
165
|
+
details: metafieldDefinitionIdentifier,
|
|
166
|
+
},
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
const definitionInput = metafieldDefinitionInputFromDefinition(sourceResponse.data);
|
|
171
|
+
|
|
172
|
+
return shopifyMutationDo(
|
|
173
|
+
toStoreCredsPayload,
|
|
174
|
+
'metafieldDefinitionCreate',
|
|
175
|
+
{
|
|
176
|
+
mutationVariables: {
|
|
177
|
+
definition: {
|
|
178
|
+
type: 'MetafieldDefinitionInput!',
|
|
179
|
+
value: definitionInput,
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
returnSchema: `
|
|
183
|
+
createdDefinition { ${ returnCreatedDefinitionAttrs } }
|
|
184
|
+
`.trim(),
|
|
185
|
+
apiVersion,
|
|
186
|
+
},
|
|
187
|
+
);
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
const funcApiConfig = {
|
|
191
|
+
argsWarden,
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
module.exports = {
|
|
195
|
+
shopifyMetafieldDefinitionPropagate,
|
|
196
|
+
funcApiConfig,
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/*
|
|
200
|
+
curl -X POST "http://localhost:8000/shopifyMetafieldDefinitionPropagate" \
|
|
201
|
+
-H "Content-Type: application/json" \
|
|
202
|
+
-d '{
|
|
203
|
+
"fromStoreCredsPayload": { "credsPath": "shopify.au" },
|
|
204
|
+
"toStoreCredsPayload": { "credsPath": "shopify.us" },
|
|
205
|
+
"metafieldDefinitionIdentifier": {
|
|
206
|
+
"ownerType": "PRODUCT",
|
|
207
|
+
"namespace": "custom",
|
|
208
|
+
"key": "outfit_builder_image"
|
|
209
|
+
}
|
|
210
|
+
}'
|
|
211
|
+
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const { ArgsWarden } = require('../utils');
|
|
4
4
|
const { credsValidator } = require('../validators');
|
|
5
|
-
const { shopifyGet } = require('./shopifyGet');
|
|
5
|
+
const { shopifyGet, shopifyGetter } = require('./shopifyGet');
|
|
6
6
|
|
|
7
7
|
const argsWarden = new ArgsWarden([
|
|
8
8
|
['credsPayload', credsValidator],
|
|
@@ -10,6 +10,8 @@ const argsWarden = new ArgsWarden([
|
|
|
10
10
|
]);
|
|
11
11
|
|
|
12
12
|
const shopifyMetafieldDefinitionsGet = async (
|
|
13
|
+
returnGetter, // Always bound
|
|
14
|
+
|
|
13
15
|
credsPayload,
|
|
14
16
|
ownerType,
|
|
15
17
|
{
|
|
@@ -17,7 +19,7 @@ const shopifyMetafieldDefinitionsGet = async (
|
|
|
17
19
|
} = {},
|
|
18
20
|
) => {
|
|
19
21
|
|
|
20
|
-
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
22
|
+
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
21
23
|
credsPayload,
|
|
22
24
|
ownerType,
|
|
23
25
|
});
|
|
@@ -25,7 +27,18 @@ const shopifyMetafieldDefinitionsGet = async (
|
|
|
25
27
|
return rejectResponse;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
const getterArgs = [
|
|
31
|
+
credsPayload,
|
|
32
|
+
'metafieldDefinition',
|
|
33
|
+
{
|
|
34
|
+
ownerType,
|
|
35
|
+
...getterOptions,
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
return returnGetter
|
|
40
|
+
? shopifyGetter(...getterArgs)
|
|
41
|
+
: shopifyGet(...getterArgs);
|
|
29
42
|
};
|
|
30
43
|
|
|
31
44
|
const funcApiConfig = {
|
|
@@ -33,7 +46,8 @@ const funcApiConfig = {
|
|
|
33
46
|
};
|
|
34
47
|
|
|
35
48
|
module.exports = {
|
|
36
|
-
shopifyMetafieldDefinitionsGet,
|
|
49
|
+
shopifyMetafieldDefinitionsGet: (...args) => shopifyMetafieldDefinitionsGet(false, ...args),
|
|
50
|
+
shopifyMetafieldDefinitionsGetter: (...args) => shopifyMetafieldDefinitionsGet(true, ...args),
|
|
37
51
|
funcApiConfig,
|
|
38
52
|
};
|
|
39
53
|
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// https://shopify.dev/docs/api/admin-graphql/latest/mutations/metafieldsDelete
|
|
2
|
+
|
|
3
|
+
const { credsValidator } = require('../validators');
|
|
4
|
+
const { ArgsWarden } = require('../utils');
|
|
5
|
+
const { shopifyMutationDo } = require('../shopify/shopifyMutationDo');
|
|
6
|
+
|
|
7
|
+
const metafieldsValidator = (metafields) => {
|
|
8
|
+
return Array.isArray(metafields)
|
|
9
|
+
&& metafields.length > 0
|
|
10
|
+
&& metafields.every((metafield) => {
|
|
11
|
+
return metafield?.ownerId && metafield?.namespace && metafield?.key;
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const argsWarden = new ArgsWarden([
|
|
16
|
+
['credsPayload', credsValidator],
|
|
17
|
+
['metafields', metafieldsValidator],
|
|
18
|
+
]);
|
|
19
|
+
|
|
20
|
+
const shopifyMetafieldsDelete = async (
|
|
21
|
+
credsPayload,
|
|
22
|
+
metafields,
|
|
23
|
+
{
|
|
24
|
+
apiVersion,
|
|
25
|
+
} = {},
|
|
26
|
+
) => {
|
|
27
|
+
|
|
28
|
+
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
29
|
+
credsPayload,
|
|
30
|
+
metafields,
|
|
31
|
+
});
|
|
32
|
+
if (rejectResponse) {
|
|
33
|
+
return rejectResponse;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return shopifyMutationDo(
|
|
37
|
+
credsPayload,
|
|
38
|
+
'metafieldsDelete',
|
|
39
|
+
{
|
|
40
|
+
mutationVariables: {
|
|
41
|
+
metafields: {
|
|
42
|
+
type: '[MetafieldIdentifierInput!]!',
|
|
43
|
+
value: metafields,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
returnSchema: `
|
|
47
|
+
deletedMetafields {
|
|
48
|
+
key
|
|
49
|
+
namespace
|
|
50
|
+
ownerId
|
|
51
|
+
}
|
|
52
|
+
`.trim(),
|
|
53
|
+
apiVersion,
|
|
54
|
+
},
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const funcApiConfig = {
|
|
59
|
+
argsWarden,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
module.exports = {
|
|
63
|
+
shopifyMetafieldsDelete,
|
|
64
|
+
funcApiConfig,
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/*
|
|
68
|
+
curl -X POST "http://localhost:8000/shopifyMetafieldsDelete" \
|
|
69
|
+
-H "Content-Type: application/json" \
|
|
70
|
+
-d '{
|
|
71
|
+
"credsPayload": { "credsPath": "shopify.au" },
|
|
72
|
+
"metafields": [{
|
|
73
|
+
"ownerId": "gid://shopify/Customer/2111702204488",
|
|
74
|
+
"namespace": "aug26_migration",
|
|
75
|
+
"key": "loyalty_points"
|
|
76
|
+
}]
|
|
77
|
+
}'
|
|
78
|
+
*/
|
|
@@ -18,7 +18,10 @@ const shopifyMutationDo = async (
|
|
|
18
18
|
} = {},
|
|
19
19
|
) => {
|
|
20
20
|
|
|
21
|
-
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
21
|
+
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
22
|
+
credsPayload,
|
|
23
|
+
mutationName,
|
|
24
|
+
});
|
|
22
25
|
if (rejectResponse) {
|
|
23
26
|
return rejectResponse;
|
|
24
27
|
}
|
|
@@ -57,7 +57,10 @@ const shopifyOrderGet = async (
|
|
|
57
57
|
} = {},
|
|
58
58
|
) => {
|
|
59
59
|
|
|
60
|
-
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
60
|
+
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
61
|
+
credsPayload,
|
|
62
|
+
orderIdentifier,
|
|
63
|
+
});
|
|
61
64
|
if (rejectResponse) {
|
|
62
65
|
return rejectResponse;
|
|
63
66
|
}
|
|
@@ -16,7 +16,9 @@ const shopifyOrdersGet = async (
|
|
|
16
16
|
} = {},
|
|
17
17
|
) => {
|
|
18
18
|
|
|
19
|
-
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
19
|
+
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
20
|
+
credsPayload,
|
|
21
|
+
});
|
|
20
22
|
if (rejectResponse) {
|
|
21
23
|
return rejectResponse;
|
|
22
24
|
}
|
|
@@ -17,7 +17,10 @@ const shopifyPageDelete = async (
|
|
|
17
17
|
} = {},
|
|
18
18
|
) => {
|
|
19
19
|
|
|
20
|
-
const argsRejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
20
|
+
const argsRejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
21
|
+
credsPayload,
|
|
22
|
+
pageId,
|
|
23
|
+
});
|
|
21
24
|
if (argsRejectResponse) {
|
|
22
25
|
return argsRejectResponse;
|
|
23
26
|
}
|
|
@@ -20,7 +20,10 @@ const shopifyPageGet = async (
|
|
|
20
20
|
} = {},
|
|
21
21
|
) => {
|
|
22
22
|
|
|
23
|
-
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
23
|
+
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
24
|
+
credsPayload,
|
|
25
|
+
pageId,
|
|
26
|
+
});
|
|
24
27
|
if (rejectResponse) {
|
|
25
28
|
return rejectResponse;
|
|
26
29
|
}
|
|
@@ -30,7 +30,11 @@ const shopifyPageUpdate = async (
|
|
|
30
30
|
} = {},
|
|
31
31
|
) => {
|
|
32
32
|
|
|
33
|
-
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
33
|
+
const rejectResponse = await argsWarden.responseIfRejectingArgs({
|
|
34
|
+
credsPayload,
|
|
35
|
+
pageId,
|
|
36
|
+
updatePayload,
|
|
37
|
+
});
|
|
34
38
|
if (rejectResponse) {
|
|
35
39
|
return rejectResponse;
|
|
36
40
|
}
|