@foxtware/mineral 0.1.15 → 0.1.16

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.
Files changed (357) hide show
  1. package/.creds.yml.sample +34 -0
  2. package/AGENTS.md +5 -0
  3. package/_build_scripts/createNewFunction.js +19 -19
  4. package/api/_example.js +6 -3
  5. package/api/_tools/log.js +22 -0
  6. package/api/algolia/docs.md +7 -0
  7. package/api/asana/asana.constants.js +7 -0
  8. package/api/asana/asana.utils.js +37 -0
  9. package/api/asana/asanaGet.js +150 -0
  10. package/api/asana/docs.md +5 -0
  11. package/api/athos/docs.md +9 -0
  12. package/api/bleckmann/bleckmannAsnsGet.js +3 -1
  13. package/api/clickup/clickup.constants.js +7 -0
  14. package/api/clickup/clickup.utils.js +36 -0
  15. package/api/clickup/clickupGet.js +150 -0
  16. package/api/clickup/docs.md +6 -0
  17. package/api/discord/discord.constants.js +7 -0
  18. package/api/discord/discord.utils.js +36 -0
  19. package/api/discord/discordGet.js +144 -0
  20. package/api/discord/docs.md +6 -0
  21. package/api/etsy/_example.get.js +68 -0
  22. package/api/etsy/etsy.constants.js +33 -0
  23. package/api/etsy/etsy.utils.js +208 -0
  24. package/api/etsy/etsyAccessTokenRefresh.js +106 -0
  25. package/api/etsy/etsyAccessTokenRequest.js +118 -0
  26. package/api/etsy/etsyAllListingFilesGet.js +69 -0
  27. package/api/etsy/etsyAllListingsGetActive.js +88 -0
  28. package/api/etsy/etsyAuthorizationCodeRequest.js +124 -0
  29. package/api/etsy/etsyBuyerTaxonomyNodePropertiesGet.js +62 -0
  30. package/api/etsy/etsyBuyerTaxonomyNodesGet.js +58 -0
  31. package/api/etsy/etsyDraftListingCreate.js +71 -0
  32. package/api/etsy/etsyFeaturedListingsByShopGet.js +78 -0
  33. package/api/etsy/etsyGet.js +150 -0
  34. package/api/etsy/etsyHolidayPreferencesGet.js +65 -0
  35. package/api/etsy/etsyHolidayPreferencesUpdate.js +75 -0
  36. package/api/etsy/etsyListingDelete.js +61 -0
  37. package/api/etsy/etsyListingFileDelete.js +72 -0
  38. package/api/etsy/etsyListingFileGet.js +73 -0
  39. package/api/etsy/etsyListingGet.js +62 -0
  40. package/api/etsy/etsyListingImageDelete.js +72 -0
  41. package/api/etsy/etsyListingImageGet.js +66 -0
  42. package/api/etsy/etsyListingImagesGet.js +62 -0
  43. package/api/etsy/etsyListingInventoryGet.js +62 -0
  44. package/api/etsy/etsyListingInventoryUpdate.js +99 -0
  45. package/api/etsy/etsyListingOfferingGet.js +70 -0
  46. package/api/etsy/etsyListingPersonalizationDelete.js +68 -0
  47. package/api/etsy/etsyListingPersonalizationGet.js +62 -0
  48. package/api/etsy/etsyListingPersonalizationUpdate.js +75 -0
  49. package/api/etsy/etsyListingProductGet.js +64 -0
  50. package/api/etsy/etsyListingPropertiesGet.js +69 -0
  51. package/api/etsy/etsyListingPropertyDelete.js +72 -0
  52. package/api/etsy/etsyListingPropertyGet.js +66 -0
  53. package/api/etsy/etsyListingPropertyUpdate.js +79 -0
  54. package/api/etsy/etsyListingTranslationCreate.js +79 -0
  55. package/api/etsy/etsyListingTranslationGet.js +73 -0
  56. package/api/etsy/etsyListingTranslationUpdate.js +79 -0
  57. package/api/etsy/etsyListingUpdate.js +75 -0
  58. package/api/etsy/etsyListingVariationImagesGet.js +69 -0
  59. package/api/etsy/etsyListingVideoDelete.js +72 -0
  60. package/api/etsy/etsyListingVideoGet.js +66 -0
  61. package/api/etsy/etsyListingVideosGet.js +62 -0
  62. package/api/etsy/etsyListingsByListingIdsGet.js +63 -0
  63. package/api/etsy/etsyListingsByShopReceiptGet.js +82 -0
  64. package/api/etsy/etsyListingsByShopReturnPolicyGet.js +69 -0
  65. package/api/etsy/etsyListingsInventoryByListingIdsGet.js +63 -0
  66. package/api/etsy/etsyListingsShippingByListingIdsGet.js +63 -0
  67. package/api/etsy/etsyMeGet.js +56 -0
  68. package/api/etsy/etsyOauthRedirectParse.js +201 -0
  69. package/api/etsy/etsyPaymentAccountLedgerEntryPaymentsGet.js +65 -0
  70. package/api/etsy/etsyPaymentsGet.js +65 -0
  71. package/api/etsy/etsyPing.js +51 -0
  72. package/api/etsy/etsyReceiptShipmentCreate.js +75 -0
  73. package/api/etsy/etsyReviewsByListingGet.js +76 -0
  74. package/api/etsy/etsyReviewsByShopGet.js +80 -0
  75. package/api/etsy/etsySellerTaxonomyNodePropertiesGet.js +62 -0
  76. package/api/etsy/etsySellerTaxonomyNodesGet.js +58 -0
  77. package/api/etsy/etsyShippingCarriersGet.js +63 -0
  78. package/api/etsy/etsyShopGet.js +65 -0
  79. package/api/etsy/etsyShopListingsActiveGet.js +82 -0
  80. package/api/etsy/etsyShopListingsGet.js +87 -0
  81. package/api/etsy/etsyShopPaymentAccountLedgerEntriesGet.js +80 -0
  82. package/api/etsy/etsyShopPaymentAccountLedgerEntryGet.js +69 -0
  83. package/api/etsy/etsyShopPaymentByReceiptIdGet.js +69 -0
  84. package/api/etsy/etsyShopProductionPartnersGet.js +65 -0
  85. package/api/etsy/etsyShopReadinessStateDefinitionCreate.js +71 -0
  86. package/api/etsy/etsyShopReadinessStateDefinitionDelete.js +68 -0
  87. package/api/etsy/etsyShopReadinessStateDefinitionGet.js +69 -0
  88. package/api/etsy/etsyShopReadinessStateDefinitionUpdate.js +75 -0
  89. package/api/etsy/etsyShopReadinessStateDefinitionsGet.js +78 -0
  90. package/api/etsy/etsyShopReceiptGet.js +67 -0
  91. package/api/etsy/etsyShopReceiptTransactionGet.js +69 -0
  92. package/api/etsy/etsyShopReceiptTransactionsByListingGet.js +82 -0
  93. package/api/etsy/etsyShopReceiptTransactionsByReceiptGet.js +69 -0
  94. package/api/etsy/etsyShopReceiptTransactionsByShopGet.js +78 -0
  95. package/api/etsy/etsyShopReceiptUpdate.js +75 -0
  96. package/api/etsy/etsyShopReceiptsGet.js +70 -0
  97. package/api/etsy/etsyShopReturnPoliciesConsolidate.js +75 -0
  98. package/api/etsy/etsyShopReturnPolicyCreate.js +71 -0
  99. package/api/etsy/etsyShopReturnPolicyDelete.js +68 -0
  100. package/api/etsy/etsyShopReturnPolicyGet.js +69 -0
  101. package/api/etsy/etsyShopReturnPolicyUpdate.js +75 -0
  102. package/api/etsy/etsyShopReturnsPoliciesGet.js +70 -0
  103. package/api/etsy/etsyShopSectionCreate.js +71 -0
  104. package/api/etsy/etsyShopSectionDelete.js +68 -0
  105. package/api/etsy/etsyShopSectionGet.js +69 -0
  106. package/api/etsy/etsyShopSectionListingsGet.js +86 -0
  107. package/api/etsy/etsyShopSectionUpdate.js +75 -0
  108. package/api/etsy/etsyShopSectionsGet.js +65 -0
  109. package/api/etsy/etsyShopShippingProfileCreate.js +71 -0
  110. package/api/etsy/etsyShopShippingProfileDelete.js +68 -0
  111. package/api/etsy/etsyShopShippingProfileDestinationCreate.js +75 -0
  112. package/api/etsy/etsyShopShippingProfileDestinationDelete.js +72 -0
  113. package/api/etsy/etsyShopShippingProfileDestinationUpdate.js +79 -0
  114. package/api/etsy/etsyShopShippingProfileDestinationsByShippingProfileGet.js +82 -0
  115. package/api/etsy/etsyShopShippingProfileGet.js +69 -0
  116. package/api/etsy/etsyShopShippingProfileUpdate.js +75 -0
  117. package/api/etsy/etsyShopShippingProfileUpgradeCreate.js +75 -0
  118. package/api/etsy/etsyShopShippingProfileUpgradeDelete.js +72 -0
  119. package/api/etsy/etsyShopShippingProfileUpgradeUpdate.js +79 -0
  120. package/api/etsy/etsyShopShippingProfileUpgradesGet.js +69 -0
  121. package/api/etsy/etsyShopShippingProfilesGet.js +65 -0
  122. package/api/etsy/etsyShopUpdate.js +69 -0
  123. package/api/etsy/etsyShopsGet.js +70 -0
  124. package/api/etsy/etsyTokenScopes.js +63 -0
  125. package/api/etsy/etsyUserAddressDelete.js +61 -0
  126. package/api/etsy/etsyUserAddressGet.js +62 -0
  127. package/api/etsy/etsyUserAddressesGet.js +70 -0
  128. package/api/etsy/etsyUserGet.js +62 -0
  129. package/api/etsy/etsyUserShopsGet.js +62 -0
  130. package/api/etsy/etsyVariationImagesUpdate.js +75 -0
  131. package/api/figma/docs.md +6 -0
  132. package/api/figma/figma.constants.js +7 -0
  133. package/api/figma/figma.utils.js +36 -0
  134. package/api/figma/figmaGet.js +107 -0
  135. package/api/github/githubReposGet.js +3 -1
  136. package/api/github/githubUserGet.js +3 -1
  137. package/api/google/docs.md +7 -0
  138. package/api/google/google.constants.js +9 -0
  139. package/api/google/google.utils.js +137 -0
  140. package/api/google/googlecalendarCalendarsGet.js +54 -0
  141. package/api/google/googlecalendarEventCreate.js +63 -0
  142. package/api/google/googlecalendarEventDelete.js +55 -0
  143. package/api/google/googlecalendarEventGet.js +55 -0
  144. package/api/google/googlecalendarEventsGet.js +65 -0
  145. package/api/google/googledriveFileDelete.js +53 -0
  146. package/api/google/googledriveFileGet.js +57 -0
  147. package/api/google/googledriveFileUpload.js +127 -0
  148. package/api/google/googledriveFilesGet.js +72 -0
  149. package/api/google/googlesheetsSpreadsheetGet.js +57 -0
  150. package/api/google/googlesheetsSpreadsheetSheetAdd.js +150 -0
  151. package/api/google/googlesheetsSpreadsheetSheetGetData.js +159 -0
  152. package/api/google/googlesheetsSpreadsheetTrim.js +239 -0
  153. package/api/gorgias/docs.md +7 -0
  154. package/api/logiwa/logiwaAuthGet.js +3 -1
  155. package/api/logiwa/logiwaInventoriesGet.js +3 -1
  156. package/api/logiwa/logiwaOrdersGet.js +3 -1
  157. package/api/logiwa/logiwaProductsGet.js +3 -1
  158. package/api/logiwa/logiwaReportGetInventorySnapshot.js +3 -1
  159. package/api/logiwa/logiwaReportGetTotalInventory.js +3 -1
  160. package/api/logiwa/logiwaWebhooksGet.js +3 -1
  161. package/api/loop/loopAllowlistItemsGet.js +3 -1
  162. package/api/loop/loopBlocklistItemsGet.js +3 -1
  163. package/api/loop/loopDestinationsGet.js +3 -1
  164. package/api/loop/loopReturnsGet.js +3 -1
  165. package/api/notion/docs.md +6 -0
  166. package/api/notion/notion.constants.js +9 -0
  167. package/api/notion/notion.utils.js +44 -0
  168. package/api/notion/notionGet.js +146 -0
  169. package/api/peoplevox/_example.js +4 -1
  170. package/api/peoplevox/peoplevox.sessions.js +29 -0
  171. package/api/peoplevox/peoplevox.utils.js +4 -38
  172. package/api/peoplevox/peoplevoxAuthGet.js +3 -1
  173. package/api/peoplevox/peoplevoxGetSingle.js +4 -2
  174. package/api/peoplevox/peoplevoxOrderEdit.js +8 -2
  175. package/api/peoplevox/peoplevoxOrderGet.js +6 -1
  176. package/api/peoplevox/peoplevoxReportGet.js +6 -2
  177. package/api/pipe17/docs.md +8 -0
  178. package/api/pipe17/pipe17.constants.js +47 -0
  179. package/api/pipe17/pipe17.utils.js +123 -0
  180. package/api/pipe17/pipe17ArrivalGet.js +78 -0
  181. package/api/pipe17/pipe17ArrivalUpdate.js +111 -0
  182. package/api/pipe17/pipe17ArrivalsGet.js +54 -0
  183. package/api/pipe17/pipe17FulfillmentGet.js +69 -0
  184. package/api/pipe17/pipe17FulfillmentsGet.js +54 -0
  185. package/api/pipe17/pipe17Get.js +151 -0
  186. package/api/pipe17/pipe17InventoryItemGet.js +57 -0
  187. package/api/pipe17/pipe17InventoryItemsGet.js +54 -0
  188. package/api/pipe17/pipe17JobCreate.js +95 -0
  189. package/api/pipe17/pipe17JobGet.js +70 -0
  190. package/api/pipe17/pipe17JobResultsGet.js +55 -0
  191. package/api/pipe17/pipe17LocationGet.js +57 -0
  192. package/api/pipe17/pipe17LocationsGet.js +54 -0
  193. package/api/pipe17/pipe17OrderGet.js +71 -0
  194. package/api/pipe17/pipe17OrdersGet.js +54 -0
  195. package/api/pipe17/pipe17ProductGet.js +57 -0
  196. package/api/pipe17/pipe17ProductsGet.js +54 -0
  197. package/api/pipe17/pipe17PurchaseGet.js +57 -0
  198. package/api/pipe17/pipe17PurchasesGet.js +54 -0
  199. package/api/pipe17/pipe17ReceiptGet.js +57 -0
  200. package/api/pipe17/pipe17ReceiptsGet.js +54 -0
  201. package/api/pipe17/pipe17ReturnGet.js +57 -0
  202. package/api/pipe17/pipe17ReturnsGet.js +54 -0
  203. package/api/printify/_example.get.js +67 -0
  204. package/api/printify/_example.js +59 -0
  205. package/api/printify/printify.constants.js +8 -0
  206. package/api/printify/printify.utils.js +41 -0
  207. package/api/printify/printifyBlueprintGet.js +60 -0
  208. package/api/printify/printifyBlueprintPrintProviderVariantsGet.js +77 -0
  209. package/api/printify/printifyBlueprintPrintProvidersGet.js +60 -0
  210. package/api/printify/printifyBlueprintsGet.js +38 -0
  211. package/api/printify/printifyGet.js +154 -0
  212. package/api/printify/printifyImageUpload.js +74 -0
  213. package/api/printify/printifyOrderCancel.js +70 -0
  214. package/api/printify/printifyOrderCreate.js +98 -0
  215. package/api/printify/printifyOrderGet.js +70 -0
  216. package/api/printify/printifyOrderSubmit.js +70 -0
  217. package/api/printify/printifyOrdersGet.js +72 -0
  218. package/api/printify/printifyProductCreate.js +96 -0
  219. package/api/printify/printifyProductDelete.js +70 -0
  220. package/api/printify/printifyProductGet.js +79 -0
  221. package/api/printify/printifyProductUpdate.js +81 -0
  222. package/api/printify/printifyProductsGet.js +67 -0
  223. package/api/printify/printifyShippingGet.js +70 -0
  224. package/api/printify/printifyShopsGet.js +56 -0
  225. package/api/printify/printifyWebhookCreate.js +84 -0
  226. package/api/printify/printifyWebhookDelete.js +70 -0
  227. package/api/printify/printifyWebhookUpdate.js +81 -0
  228. package/api/printify/printifyWebhooksGet.js +56 -0
  229. package/api/salesforce/docs.md +6 -0
  230. package/api/shopify/_example.create.js +2 -2
  231. package/api/shopify/_example.get.js +17 -4
  232. package/api/shopify/_example.getsingle.js +4 -1
  233. package/api/shopify/_example.js +4 -1
  234. package/api/shopify/_example.mutation.js +4 -1
  235. package/api/shopify/shopifyAbandonedCheckoutsGet.js +1 -1
  236. package/api/shopify/shopifyArticlesGet.js +1 -1
  237. package/api/shopify/shopifyBlogsGet.js +1 -1
  238. package/api/shopify/shopifyBulkMutationDo.js +2 -2
  239. package/api/shopify/shopifyBulkOperationsGet.js +1 -1
  240. package/api/shopify/shopifyCatalogsGet.js +17 -4
  241. package/api/shopify/shopifyChannelsGet.js +17 -4
  242. package/api/shopify/shopifyCheckoutAndAccountsConfigurationsGet.js +17 -4
  243. package/api/shopify/shopifyCollectionGet.js +4 -1
  244. package/api/shopify/shopifyCollectionsGet.js +17 -4
  245. package/api/shopify/shopifyCustomerCreate.js +2 -2
  246. package/api/shopify/shopifyCustomerGet.js +4 -1
  247. package/api/shopify/shopifyCustomerMarketingConsentUpdateSms.js +84 -0
  248. package/api/shopify/shopifyCustomersGet.js +18 -5
  249. package/api/shopify/shopifyDecodeSessionToken.js +2 -2
  250. package/api/shopify/shopifyDeliveryCustomizationsGet.js +1 -1
  251. package/api/shopify/shopifyDeliveryProfilesGet.js +17 -4
  252. package/api/shopify/shopifyDiscountNodesGet.js +1 -1
  253. package/api/shopify/shopifyDisputesGet.js +1 -1
  254. package/api/shopify/shopifyDraftOrdersGet.js +1 -1
  255. package/api/shopify/shopifyEventsGet.js +1 -1
  256. package/api/shopify/shopifyFilesGet.js +1 -1
  257. package/api/shopify/shopifyFulfillmentOrdersGet.js +17 -4
  258. package/api/shopify/shopifyGet.js +1 -1
  259. package/api/shopify/shopifyGiftCardCreate.js +4 -1
  260. package/api/shopify/shopifyGiftCardDeactivate.js +4 -1
  261. package/api/shopify/shopifyGiftCardsGet.js +17 -4
  262. package/api/shopify/shopifyInventoryItemsGet.js +17 -4
  263. package/api/shopify/shopifyLocationsGet.js +1 -1
  264. package/api/shopify/shopifyMarketingEventsGet.js +1 -1
  265. package/api/shopify/shopifyMarketsGet.js +1 -1
  266. package/api/shopify/shopifyMenusGet.js +1 -1
  267. package/api/shopify/shopifyMetafieldDefinitionCreate.js +111 -0
  268. package/api/shopify/shopifyMetafieldDefinitionsGet.js +18 -4
  269. package/api/shopify/shopifyMetafieldsDelete.js +78 -0
  270. package/api/shopify/shopifyMetaobjectDefinitionsGet.js +1 -1
  271. package/api/shopify/shopifyMetaobjectsGet.js +1 -1
  272. package/api/shopify/shopifyMutationDo.js +4 -1
  273. package/api/shopify/shopifyOrderGet.js +4 -1
  274. package/api/shopify/shopifyOrdersGet.js +3 -1
  275. package/api/shopify/shopifyPageDelete.js +4 -1
  276. package/api/shopify/shopifyPageGet.js +4 -1
  277. package/api/shopify/shopifyPageUpdate.js +5 -1
  278. package/api/shopify/shopifyPagesGet.js +1 -1
  279. package/api/shopify/shopifyPaymentCustomizationsGet.js +1 -1
  280. package/api/shopify/shopifyProductFeedsGet.js +1 -1
  281. package/api/shopify/shopifyProductGet.js +110 -0
  282. package/api/shopify/shopifyProductVariantsGet.js +1 -1
  283. package/api/shopify/shopifyProductsGet.js +17 -4
  284. package/api/shopify/shopifyPublicationsGet.js +17 -4
  285. package/api/shopify/shopifySegmentsGet.js +1 -1
  286. package/api/shopify/shopifyStoreCreditAccountCredit.js +144 -0
  287. package/api/shopify/shopifyStoreCreditAccountDebit.js +132 -0
  288. package/api/shopify/shopifyThemeDelete.js +4 -1
  289. package/api/shopify/shopifyThemeDuplicate.js +4 -1
  290. package/api/shopify/shopifyThemeGet.js +2 -2
  291. package/api/shopify/shopifyThemesGet.js +3 -1
  292. package/api/shopify/shopifyUrlRedirectsGet.js +1 -1
  293. package/api/shopify/shopifyWebhookSubscriptionsGet.js +17 -4
  294. package/api/snowflake/docs.md +8 -0
  295. package/api/starshipit/starshipitAddressesGet.js +3 -1
  296. package/api/starshipit/starshipitOrdersListShipped.js +3 -1
  297. package/api/starshipit/starshipitProductsGet.js +3 -1
  298. package/api/stripe/_example.js +4 -1
  299. package/api/stripe/stripeChargesGet.js +3 -1
  300. package/api/stripe/stripeRefundsGet.js +3 -1
  301. package/api/stylearcade/stylearcadeDataGet.js +14 -6
  302. package/api/stylearcade/stylearcadeMetadataGet.js +3 -1
  303. package/api/tagalys/docs.md +7 -0
  304. package/api/telnyx/docs.md +6 -0
  305. package/api/telnyx/telnyx.constants.js +7 -0
  306. package/api/telnyx/telnyx.utils.js +37 -0
  307. package/api/telnyx/telnyxAvailablePhoneNumbersGet.js +59 -0
  308. package/api/telnyx/telnyxBalanceGet.js +51 -0
  309. package/api/telnyx/telnyxGet.js +151 -0
  310. package/api/telnyx/telnyxMessageGet.js +59 -0
  311. package/api/telnyx/telnyxMessageSend.js +65 -0
  312. package/api/telnyx/telnyxMessagesGet.js +53 -0
  313. package/api/telnyx/telnyxMessagingProfileCreate.js +62 -0
  314. package/api/telnyx/telnyxMessagingProfileGet.js +59 -0
  315. package/api/telnyx/telnyxMessagingProfileUpdate.js +68 -0
  316. package/api/telnyx/telnyxMessagingProfilesGet.js +53 -0
  317. package/api/telnyx/telnyxNumberLookupGet.js +61 -0
  318. package/api/telnyx/telnyxNumberOrderCreate.js +64 -0
  319. package/api/telnyx/telnyxPhoneNumberGet.js +59 -0
  320. package/api/telnyx/telnyxPhoneNumberUpdate.js +68 -0
  321. package/api/telnyx/telnyxPhoneNumbersGet.js +53 -0
  322. package/api/telnyx/telnyxWebhookDeliveriesGet.js +58 -0
  323. package/api/threeclicks/threeclicksCollectionsGet.js +3 -1
  324. package/api/threeclicks/threeclicksPurchaseOrderCreate.js +4 -1
  325. package/api/threeclicks/threeclicksPurchaseOrderCreateBulk.js +4 -1
  326. package/api/threeclicks/threeclicksPurchaseOrderGet.js +4 -1
  327. package/api/threeclicks/threeclicksPurchaseOrderQuantitiesGet.js +4 -1
  328. package/api/threeclicks/threeclicksPurchaseOrderQuantityCreate.js +4 -1
  329. package/api/threeclicks/threeclicksPurchaseOrderQuantityCreateBulk.js +4 -1
  330. package/api/threeclicks/threeclicksPurchaseOrderUpdate.js +5 -1
  331. package/api/threeclicks/threeclicksPurchaseOrdersGet.js +3 -1
  332. package/api/threeclicks/threeclicksShipmentCreate.js +4 -1
  333. package/api/threeclicks/threeclicksShipmentGet.js +4 -1
  334. package/api/threeclicks/threeclicksShipmentOrderAdd.js +5 -1
  335. package/api/threeclicks/threeclicksShipmentOrderQuantityCreate.js +5 -1
  336. package/api/threeclicks/threeclicksShipmentQuantityUpdate.js +5 -1
  337. package/api/threeclicks/threeclicksShipmentStatusUpdate.js +5 -1
  338. package/api/threeclicks/threeclicksShipmentsGet.js +3 -1
  339. package/api/threeclicks/threeclicksSignatureCalculate.js +4 -4
  340. package/api/threeclicks/threeclicksStyleCodesGet.js +4 -1
  341. package/api/threeclicks/threeclicksStyleColourDelete.js +5 -1
  342. package/api/threeclicks/threeclicksStyleDelete.js +4 -1
  343. package/api/threeclicks/threeclicksStylesGet.js +3 -1
  344. package/api/upstash/upstashDel.js +4 -1
  345. package/api/upstash/upstashExists.js +4 -1
  346. package/api/upstash/upstashGet.js +4 -1
  347. package/api/utils.js +86 -6
  348. package/api/workable/workableJobsGet.js +3 -1
  349. package/api/yotpo/yotpoCampaignsGet.js +3 -1
  350. package/api/yotpo/yotpoCustomersRecentGet.js +3 -1
  351. package/api/yotpo/yotpoRedemptionOptionsGet.js +3 -1
  352. package/api/yotpo/yotpoVipTiersGet.js +3 -1
  353. package/hosting/copyCredsToEnv.js +3 -3
  354. package/hosting/handlerPaths.js +3 -3
  355. package/package.json +2 -1
  356. package/server.js +8 -6
  357. 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 shopifyCatalogsGet = 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
- return await shopifyGet(credsPayload, 'catalog', { ...getterOptions });
27
+ const getterArgs = [
28
+ credsPayload,
29
+ 'catalog',
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
- shopifyCatalogsGet,
45
+ shopifyCatalogsGet: (...args) => shopifyCatalogsGet(false, ...args),
46
+ shopifyCatalogsGetter: (...args) => shopifyCatalogsGet(true, ...args),
34
47
  funcApiConfig,
35
48
  };
36
49
 
@@ -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 shopifyChannelsGet = 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
- return await shopifyGet(credsPayload, 'channel', { ...getterOptions });
27
+ const getterArgs = [
28
+ credsPayload,
29
+ 'channel',
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
- shopifyChannelsGet,
45
+ shopifyChannelsGet: (...args) => shopifyChannelsGet(false, ...args),
46
+ shopifyChannelsGetter: (...args) => shopifyChannelsGet(true, ...args),
34
47
  funcApiConfig,
35
48
  };
36
49
 
@@ -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 shopifyCheckoutAndAccountsConfigurationsGet = 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
- return await shopifyGet(credsPayload, 'checkoutAndAccountsConfiguration', { ...getterOptions });
27
+ const getterArgs = [
28
+ credsPayload,
29
+ 'checkoutAndAccountsConfiguration',
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
- shopifyCheckoutAndAccountsConfigurationsGet,
45
+ shopifyCheckoutAndAccountsConfigurationsGet: (...args) => shopifyCheckoutAndAccountsConfigurationsGet(false, ...args),
46
+ shopifyCheckoutAndAccountsConfigurationsGetter: (...args) => shopifyCheckoutAndAccountsConfigurationsGet(true, ...args),
34
47
  funcApiConfig,
35
48
  };
36
49
 
@@ -29,7 +29,10 @@ const shopifyCollectionGet = async (
29
29
  } = {},
30
30
  ) => {
31
31
 
32
- const rejectResponse = await argsWarden.responseIfRejectingArgs({ credsPayload, collectionIdentifier });
32
+ const rejectResponse = await argsWarden.responseIfRejectingArgs({
33
+ credsPayload,
34
+ collectionIdentifier,
35
+ });
33
36
  if (rejectResponse) {
34
37
  return rejectResponse;
35
38
  }
@@ -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 shopifyCollectionsGet = 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
- return await shopifyGet(credsPayload, 'collection', { ...getterOptions });
27
+ const getterArgs = [
28
+ credsPayload,
29
+ 'collection',
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
- shopifyCollectionsGet,
45
+ shopifyCollectionsGet: (...args) => shopifyCollectionsGet(false, ...args),
46
+ shopifyCollectionsGetter: (...args) => shopifyCollectionsGet(true, ...args),
34
47
  funcApiConfig,
35
48
  };
36
49
 
@@ -22,8 +22,8 @@ const shopifyCustomerCreate = async (
22
22
  } = {},
23
23
  ) => {
24
24
 
25
- const rejectResponse = await argsWarden.responseIfRejectingArgs({
26
- credsPayload,
25
+ const rejectResponse = await argsWarden.responseIfRejectingArgs({
26
+ credsPayload,
27
27
  customerInput,
28
28
  });
29
29
  if (rejectResponse) {
@@ -30,7 +30,10 @@ const shopifyCustomerGet = async (
30
30
  } = {},
31
31
  ) => {
32
32
 
33
- const rejectResponse = await argsWarden.responseIfRejectingArgs({ credsPayload, customerIdentifier });
33
+ const rejectResponse = await argsWarden.responseIfRejectingArgs({
34
+ credsPayload,
35
+ customerIdentifier,
36
+ });
34
37
  if (rejectResponse) {
35
38
  return rejectResponse;
36
39
  }
@@ -0,0 +1,84 @@
1
+ // https://shopify.dev/docs/api/admin-graphql/latest/mutations/customerSmsMarketingConsentUpdate
2
+
3
+ const { credsValidator } = require('../validators');
4
+ const { objHasAny, ArgsWarden } = require('../utils');
5
+ const { shopifyMutationDo } = require('../shopify/shopifyMutationDo');
6
+
7
+ const consentPayloadValidator = (consentPayload) => {
8
+ return objHasAny(consentPayload, [
9
+ 'consentUpdatedAt',
10
+ 'marketingOptInLevel',
11
+ 'marketingState',
12
+ 'sourceLocationId',
13
+ ]);
14
+ };
15
+
16
+ const argsWarden = new ArgsWarden([
17
+ ['credsPayload', credsValidator],
18
+ ['customerId'],
19
+ ['consentPayload', consentPayloadValidator],
20
+ ]);
21
+
22
+ const defaultReturnCustomerAttrs = 'phone smsMarketingConsent { marketingState consentUpdatedAt marketingOptInLevel }';
23
+
24
+ const shopifyCustomerMarketingConsentUpdateSms = async (
25
+ credsPayload,
26
+ customerId,
27
+ consentPayload,
28
+ {
29
+ apiVersion,
30
+ returnCustomerAttrs = defaultReturnCustomerAttrs,
31
+ } = {},
32
+ ) => {
33
+
34
+ const rejectResponse = await argsWarden.responseIfRejectingArgs({
35
+ credsPayload,
36
+ customerId,
37
+ consentPayload,
38
+ });
39
+ if (rejectResponse) {
40
+ return rejectResponse;
41
+ }
42
+
43
+ return shopifyMutationDo(
44
+ credsPayload,
45
+ 'customerSmsMarketingConsentUpdate',
46
+ {
47
+ mutationVariables: {
48
+ input: {
49
+ type: 'CustomerSmsMarketingConsentUpdateInput!',
50
+ value: {
51
+ customerId: `gid://shopify/Customer/${ customerId }`,
52
+ smsMarketingConsent: consentPayload,
53
+ },
54
+ },
55
+ },
56
+ returnSchema: `
57
+ customer { ${ returnCustomerAttrs } }
58
+ `.trim(),
59
+ apiVersion,
60
+ },
61
+ );
62
+ };
63
+
64
+ const funcApiConfig = {
65
+ argsWarden,
66
+ };
67
+
68
+ module.exports = {
69
+ shopifyCustomerMarketingConsentUpdateSms,
70
+ funcApiConfig,
71
+ };
72
+
73
+ /*
74
+ curl -X POST "http://localhost:8000/shopifyCustomerMarketingConsentUpdateSms" \
75
+ -H "Content-Type: application/json" \
76
+ -d '{
77
+ "credsPayload": { "credsPath": "shopify.au" },
78
+ "customerId": "8575963103304",
79
+ "consentPayload": {
80
+ "marketingState": "UNSUBSCRIBED",
81
+ "marketingOptInLevel": "SINGLE_OPT_IN"
82
+ }
83
+ }'
84
+ */
@@ -1,28 +1,40 @@
1
1
  // https://shopify.dev/docs/api/admin-graphql/latest/queries/customers
2
2
 
3
- const { credsFromPayload, Getter, ArgsWarden } = require('../utils');
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 shopifyCustomersGet = 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
- return await shopifyGet(credsPayload, 'customer', { ...getterOptions });
27
+ const getterArgs = [
28
+ credsPayload,
29
+ 'customer',
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
- shopifyCustomersGet,
45
+ shopifyCustomersGet: (...args) => shopifyCustomersGet(false, ...args),
46
+ shopifyCustomersGetter: (...args) => shopifyCustomersGet(true, ...args),
34
47
  funcApiConfig,
35
48
  };
36
49
 
@@ -20,7 +20,7 @@ const base64UrlDecodeJson = (input) => {
20
20
  return JSON.parse(Buffer.from(`${ base64 }${ padding }`, 'base64').toString('utf8'));
21
21
  };
22
22
 
23
- const normalizeSessionToken = (sessionToken) => {
23
+ const normaliseSessionToken = (sessionToken) => {
24
24
  const trimmedToken = sessionToken.trim();
25
25
 
26
26
  if (trimmedToken.toLowerCase().startsWith('bearer ')) {
@@ -116,7 +116,7 @@ const shopifyDecodeSessionToken = async (
116
116
  };
117
117
  }
118
118
 
119
- const token = normalizeSessionToken(sessionToken);
119
+ const token = normaliseSessionToken(sessionToken);
120
120
  const decoded = decodeSessionTokenPayload(token);
121
121
 
122
122
  if (!decoded) {
@@ -15,7 +15,7 @@ const shopifyDeliveryCustomizationsGet = async (
15
15
  } = {},
16
16
  ) => {
17
17
 
18
- const rejectResponse = await argsWarden.responseIfRejectingArgs({
18
+ const rejectResponse = await argsWarden.responseIfRejectingArgs({
19
19
  credsPayload,
20
20
  });
21
21
  if (rejectResponse) {
@@ -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 shopifyDeliveryProfilesGet = 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
- return await shopifyGet(credsPayload, 'deliveryProfile', { ...getterOptions });
27
+ const getterArgs = [
28
+ credsPayload,
29
+ 'deliveryProfile',
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
- shopifyDeliveryProfilesGet,
45
+ shopifyDeliveryProfilesGet: (...args) => shopifyDeliveryProfilesGet(false, ...args),
46
+ shopifyDeliveryProfilesGetter: (...args) => shopifyDeliveryProfilesGet(true, ...args),
34
47
  funcApiConfig,
35
48
  };
36
49
 
@@ -15,7 +15,7 @@ const shopifyDiscountNodesGet = async (
15
15
  } = {},
16
16
  ) => {
17
17
 
18
- const rejectResponse = await argsWarden.responseIfRejectingArgs({
18
+ const rejectResponse = await argsWarden.responseIfRejectingArgs({
19
19
  credsPayload,
20
20
  });
21
21
  if (rejectResponse) {
@@ -15,7 +15,7 @@ const shopifyDisputesGet = async (
15
15
  } = {},
16
16
  ) => {
17
17
 
18
- const rejectResponse = await argsWarden.responseIfRejectingArgs({
18
+ const rejectResponse = await argsWarden.responseIfRejectingArgs({
19
19
  credsPayload,
20
20
  });
21
21
  if (rejectResponse) {
@@ -15,7 +15,7 @@ const shopifyDraftOrdersGet = async (
15
15
  } = {},
16
16
  ) => {
17
17
 
18
- const rejectResponse = await argsWarden.responseIfRejectingArgs({
18
+ const rejectResponse = await argsWarden.responseIfRejectingArgs({
19
19
  credsPayload,
20
20
  });
21
21
  if (rejectResponse) {
@@ -15,7 +15,7 @@ const shopifyEventsGet = async (
15
15
  } = {},
16
16
  ) => {
17
17
 
18
- const rejectResponse = await argsWarden.responseIfRejectingArgs({
18
+ const rejectResponse = await argsWarden.responseIfRejectingArgs({
19
19
  credsPayload,
20
20
  });
21
21
  if (rejectResponse) {
@@ -15,7 +15,7 @@ const shopifyFilesGet = async (
15
15
  } = {},
16
16
  ) => {
17
17
 
18
- const rejectResponse = await argsWarden.responseIfRejectingArgs({
18
+ const rejectResponse = await argsWarden.responseIfRejectingArgs({
19
19
  credsPayload,
20
20
  });
21
21
  if (rejectResponse) {
@@ -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 shopifyFulfillmentOrdersGet = 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
- return await shopifyGet(credsPayload, 'fulfillmentOrder', { ...getterOptions });
27
+ const getterArgs = [
28
+ credsPayload,
29
+ 'fulfillmentOrder',
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
- shopifyFulfillmentOrdersGet,
45
+ shopifyFulfillmentOrdersGet: (...args) => shopifyFulfillmentOrdersGet(false, ...args),
46
+ shopifyFulfillmentOrdersGetter: (...args) => shopifyFulfillmentOrdersGet(true, ...args),
34
47
  funcApiConfig,
35
48
  };
36
49
 
@@ -225,7 +225,7 @@ const shopifyGet = async (
225
225
  } = {},
226
226
  ) => {
227
227
 
228
- const rejectResponse = await argsWarden.responseIfRejectingArgs({
228
+ const rejectResponse = await argsWarden.responseIfRejectingArgs({
229
229
  credsPayload,
230
230
  resource,
231
231
  });
@@ -29,7 +29,10 @@ const shopifyGiftCardCreate = async (
29
29
  } = {},
30
30
  ) => {
31
31
 
32
- const rejectResponse = await argsWarden.responseIfRejectingArgs({ credsPayload, giftCardInput });
32
+ const rejectResponse = await argsWarden.responseIfRejectingArgs({
33
+ credsPayload,
34
+ giftCardInput,
35
+ });
33
36
  if (rejectResponse) {
34
37
  return rejectResponse;
35
38
  }
@@ -18,7 +18,10 @@ const shopifyGiftCardDeactivate = async (
18
18
  } = {},
19
19
  ) => {
20
20
 
21
- const rejectResponse = await argsWarden.responseIfRejectingArgs({ credsPayload, giftCardId });
21
+ const rejectResponse = await argsWarden.responseIfRejectingArgs({
22
+ credsPayload,
23
+ giftCardId,
24
+ });
22
25
  if (rejectResponse) {
23
26
  return rejectResponse;
24
27
  }
@@ -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 shopifyGiftCardsGet = 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
- return await shopifyGet(credsPayload, 'giftCard', { ...getterOptions });
27
+ const getterArgs = [
28
+ credsPayload,
29
+ 'giftCard',
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
- shopifyGiftCardsGet,
45
+ shopifyGiftCardsGet: (...args) => shopifyGiftCardsGet(false, ...args),
46
+ shopifyGiftCardsGetter: (...args) => shopifyGiftCardsGet(true, ...args),
34
47
  funcApiConfig,
35
48
  };
36
49