@shopify/shopify-api 3.0.0-rc.1 → 3.0.0

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 (592) hide show
  1. package/CHANGELOG.md +10 -4
  2. package/dist/base-rest-resource.d.ts.map +1 -1
  3. package/dist/base-rest-resource.js +38 -59
  4. package/dist/base-types.d.ts +0 -1
  5. package/dist/base-types.d.ts.map +1 -1
  6. package/dist/base-types.js +0 -1
  7. package/dist/clients/http_client/http_client.d.ts.map +1 -1
  8. package/dist/clients/http_client/http_client.js +28 -6
  9. package/dist/error.d.ts +46 -30
  10. package/dist/error.d.ts.map +1 -1
  11. package/dist/error.js +14 -16
  12. package/dist/rest-resources/2021-07/abandoned_checkout.js +6 -6
  13. package/dist/rest-resources/2021-07/access_scope.js +1 -1
  14. package/dist/rest-resources/2021-07/android_pay_key.js +5 -5
  15. package/dist/rest-resources/2021-07/apple_pay_certificate.js +8 -8
  16. package/dist/rest-resources/2021-07/application_charge.js +6 -6
  17. package/dist/rest-resources/2021-07/application_credit.js +6 -6
  18. package/dist/rest-resources/2021-07/article.d.ts +6 -9
  19. package/dist/rest-resources/2021-07/article.d.ts.map +1 -1
  20. package/dist/rest-resources/2021-07/article.js +36 -37
  21. package/dist/rest-resources/2021-07/asset.js +8 -8
  22. package/dist/rest-resources/2021-07/assigned_fulfillment_order.js +2 -2
  23. package/dist/rest-resources/2021-07/balance.js +1 -1
  24. package/dist/rest-resources/2021-07/blog.js +11 -11
  25. package/dist/rest-resources/2021-07/cancellation_request.js +7 -7
  26. package/dist/rest-resources/2021-07/carrier_service.js +7 -7
  27. package/dist/rest-resources/2021-07/checkout.d.ts +3 -4
  28. package/dist/rest-resources/2021-07/checkout.d.ts.map +1 -1
  29. package/dist/rest-resources/2021-07/checkout.js +11 -13
  30. package/dist/rest-resources/2021-07/collect.js +9 -9
  31. package/dist/rest-resources/2021-07/collection.js +7 -7
  32. package/dist/rest-resources/2021-07/collection_listing.js +11 -11
  33. package/dist/rest-resources/2021-07/comment.d.ts +6 -6
  34. package/dist/rest-resources/2021-07/comment.d.ts.map +1 -1
  35. package/dist/rest-resources/2021-07/comment.js +27 -27
  36. package/dist/rest-resources/2021-07/country.js +11 -11
  37. package/dist/rest-resources/2021-07/currency.js +1 -1
  38. package/dist/rest-resources/2021-07/custom_collection.js +11 -11
  39. package/dist/rest-resources/2021-07/customer.d.ts +12 -19
  40. package/dist/rest-resources/2021-07/customer.d.ts.map +1 -1
  41. package/dist/rest-resources/2021-07/customer.js +38 -61
  42. package/dist/rest-resources/2021-07/customer_address.d.ts +5 -5
  43. package/dist/rest-resources/2021-07/customer_address.d.ts.map +1 -1
  44. package/dist/rest-resources/2021-07/customer_address.js +26 -26
  45. package/dist/rest-resources/2021-07/customer_saved_search.js +14 -14
  46. package/dist/rest-resources/2021-07/deprecated_api_call.js +1 -1
  47. package/dist/rest-resources/2021-07/discount_code.d.ts +6 -6
  48. package/dist/rest-resources/2021-07/discount_code.d.ts.map +1 -1
  49. package/dist/rest-resources/2021-07/discount_code.js +37 -37
  50. package/dist/rest-resources/2021-07/dispute.d.ts +1 -4
  51. package/dist/rest-resources/2021-07/dispute.d.ts.map +1 -1
  52. package/dist/rest-resources/2021-07/dispute.js +5 -8
  53. package/dist/rest-resources/2021-07/draft_order.d.ts +2 -4
  54. package/dist/rest-resources/2021-07/draft_order.d.ts.map +1 -1
  55. package/dist/rest-resources/2021-07/draft_order.js +17 -19
  56. package/dist/rest-resources/2021-07/event.js +10 -10
  57. package/dist/rest-resources/2021-07/fulfillment.d.ts +2 -23
  58. package/dist/rest-resources/2021-07/fulfillment.d.ts.map +1 -1
  59. package/dist/rest-resources/2021-07/fulfillment.js +13 -86
  60. package/dist/rest-resources/2021-07/fulfillment_event.js +10 -10
  61. package/dist/rest-resources/2021-07/fulfillment_order.js +16 -16
  62. package/dist/rest-resources/2021-07/fulfillment_request.js +7 -7
  63. package/dist/rest-resources/2021-07/fulfillment_service.js +8 -8
  64. package/dist/rest-resources/2021-07/gift_card.d.ts +2 -8
  65. package/dist/rest-resources/2021-07/gift_card.d.ts.map +1 -1
  66. package/dist/rest-resources/2021-07/gift_card.js +13 -18
  67. package/dist/rest-resources/2021-07/gift_card_adjustment.js +5 -5
  68. package/dist/rest-resources/2021-07/image.js +13 -13
  69. package/dist/rest-resources/2021-07/inventory_item.js +5 -5
  70. package/dist/rest-resources/2021-07/inventory_level.js +10 -10
  71. package/dist/rest-resources/2021-07/location.d.ts +2 -8
  72. package/dist/rest-resources/2021-07/location.d.ts.map +1 -1
  73. package/dist/rest-resources/2021-07/location.js +7 -12
  74. package/dist/rest-resources/2021-07/locations_for_move.js +2 -2
  75. package/dist/rest-resources/2021-07/marketing_event.js +12 -12
  76. package/dist/rest-resources/2021-07/metafield.d.ts +54 -5
  77. package/dist/rest-resources/2021-07/metafield.d.ts.map +1 -1
  78. package/dist/rest-resources/2021-07/metafield.js +89 -29
  79. package/dist/rest-resources/2021-07/mobile_platform_application.js +7 -7
  80. package/dist/rest-resources/2021-07/order.d.ts +12 -10
  81. package/dist/rest-resources/2021-07/order.d.ts.map +1 -1
  82. package/dist/rest-resources/2021-07/order.js +37 -37
  83. package/dist/rest-resources/2021-07/order_risk.js +8 -8
  84. package/dist/rest-resources/2021-07/page.js +12 -12
  85. package/dist/rest-resources/2021-07/payment.js +9 -9
  86. package/dist/rest-resources/2021-07/payment_gateway.js +7 -7
  87. package/dist/rest-resources/2021-07/payment_transaction.js +3 -3
  88. package/dist/rest-resources/2021-07/payout.d.ts +1 -4
  89. package/dist/rest-resources/2021-07/payout.d.ts.map +1 -1
  90. package/dist/rest-resources/2021-07/payout.js +5 -8
  91. package/dist/rest-resources/2021-07/policy.js +1 -1
  92. package/dist/rest-resources/2021-07/price_rule.js +9 -9
  93. package/dist/rest-resources/2021-07/product.js +13 -13
  94. package/dist/rest-resources/2021-07/product_listing.d.ts +4 -4
  95. package/dist/rest-resources/2021-07/product_listing.d.ts.map +1 -1
  96. package/dist/rest-resources/2021-07/product_listing.js +25 -25
  97. package/dist/rest-resources/2021-07/product_resource_feedback.js +3 -3
  98. package/dist/rest-resources/2021-07/province.js +9 -9
  99. package/dist/rest-resources/2021-07/recurring_application_charge.js +10 -10
  100. package/dist/rest-resources/2021-07/redirect.js +11 -11
  101. package/dist/rest-resources/2021-07/refund.js +11 -11
  102. package/dist/rest-resources/2021-07/report.js +9 -9
  103. package/dist/rest-resources/2021-07/resource_feedback.js +2 -2
  104. package/dist/rest-resources/2021-07/script_tag.js +11 -11
  105. package/dist/rest-resources/2021-07/shipping_zone.js +4 -4
  106. package/dist/rest-resources/2021-07/shop.d.ts +4 -12
  107. package/dist/rest-resources/2021-07/shop.d.ts.map +1 -1
  108. package/dist/rest-resources/2021-07/shop.js +3 -10
  109. package/dist/rest-resources/2021-07/smart_collection.js +14 -14
  110. package/dist/rest-resources/2021-07/storefront_access_token.d.ts +1 -4
  111. package/dist/rest-resources/2021-07/storefront_access_token.d.ts.map +1 -1
  112. package/dist/rest-resources/2021-07/storefront_access_token.js +5 -8
  113. package/dist/rest-resources/2021-07/tender_transaction.d.ts +1 -4
  114. package/dist/rest-resources/2021-07/tender_transaction.d.ts.map +1 -1
  115. package/dist/rest-resources/2021-07/tender_transaction.js +3 -6
  116. package/dist/rest-resources/2021-07/theme.js +9 -9
  117. package/dist/rest-resources/2021-07/transaction.js +9 -9
  118. package/dist/rest-resources/2021-07/usage_charge.js +7 -7
  119. package/dist/rest-resources/2021-07/user.js +5 -5
  120. package/dist/rest-resources/2021-07/variant.js +12 -12
  121. package/dist/rest-resources/2021-07/webhook.js +11 -11
  122. package/dist/rest-resources/2021-10/abandoned_checkout.js +6 -6
  123. package/dist/rest-resources/2021-10/access_scope.js +1 -1
  124. package/dist/rest-resources/2021-10/android_pay_key.js +5 -5
  125. package/dist/rest-resources/2021-10/apple_pay_certificate.js +8 -8
  126. package/dist/rest-resources/2021-10/application_charge.js +6 -6
  127. package/dist/rest-resources/2021-10/application_credit.js +6 -6
  128. package/dist/rest-resources/2021-10/article.d.ts +6 -9
  129. package/dist/rest-resources/2021-10/article.d.ts.map +1 -1
  130. package/dist/rest-resources/2021-10/article.js +36 -37
  131. package/dist/rest-resources/2021-10/asset.js +8 -8
  132. package/dist/rest-resources/2021-10/assigned_fulfillment_order.js +2 -2
  133. package/dist/rest-resources/2021-10/balance.js +1 -1
  134. package/dist/rest-resources/2021-10/blog.js +11 -11
  135. package/dist/rest-resources/2021-10/cancellation_request.js +7 -7
  136. package/dist/rest-resources/2021-10/carrier_service.js +7 -7
  137. package/dist/rest-resources/2021-10/checkout.d.ts +3 -4
  138. package/dist/rest-resources/2021-10/checkout.d.ts.map +1 -1
  139. package/dist/rest-resources/2021-10/checkout.js +11 -13
  140. package/dist/rest-resources/2021-10/collect.js +9 -9
  141. package/dist/rest-resources/2021-10/collection.js +7 -7
  142. package/dist/rest-resources/2021-10/collection_listing.js +11 -11
  143. package/dist/rest-resources/2021-10/comment.d.ts +6 -6
  144. package/dist/rest-resources/2021-10/comment.d.ts.map +1 -1
  145. package/dist/rest-resources/2021-10/comment.js +27 -27
  146. package/dist/rest-resources/2021-10/country.js +11 -11
  147. package/dist/rest-resources/2021-10/currency.js +1 -1
  148. package/dist/rest-resources/2021-10/custom_collection.js +11 -11
  149. package/dist/rest-resources/2021-10/customer.d.ts +12 -19
  150. package/dist/rest-resources/2021-10/customer.d.ts.map +1 -1
  151. package/dist/rest-resources/2021-10/customer.js +38 -61
  152. package/dist/rest-resources/2021-10/customer_address.d.ts +5 -5
  153. package/dist/rest-resources/2021-10/customer_address.d.ts.map +1 -1
  154. package/dist/rest-resources/2021-10/customer_address.js +26 -26
  155. package/dist/rest-resources/2021-10/customer_saved_search.js +14 -14
  156. package/dist/rest-resources/2021-10/deprecated_api_call.js +1 -1
  157. package/dist/rest-resources/2021-10/discount_code.d.ts +6 -6
  158. package/dist/rest-resources/2021-10/discount_code.d.ts.map +1 -1
  159. package/dist/rest-resources/2021-10/discount_code.js +37 -37
  160. package/dist/rest-resources/2021-10/dispute.d.ts +1 -4
  161. package/dist/rest-resources/2021-10/dispute.d.ts.map +1 -1
  162. package/dist/rest-resources/2021-10/dispute.js +5 -8
  163. package/dist/rest-resources/2021-10/draft_order.d.ts +2 -4
  164. package/dist/rest-resources/2021-10/draft_order.d.ts.map +1 -1
  165. package/dist/rest-resources/2021-10/draft_order.js +17 -19
  166. package/dist/rest-resources/2021-10/event.js +10 -10
  167. package/dist/rest-resources/2021-10/fulfillment.d.ts +2 -23
  168. package/dist/rest-resources/2021-10/fulfillment.d.ts.map +1 -1
  169. package/dist/rest-resources/2021-10/fulfillment.js +13 -86
  170. package/dist/rest-resources/2021-10/fulfillment_event.js +10 -10
  171. package/dist/rest-resources/2021-10/fulfillment_order.d.ts +11 -11
  172. package/dist/rest-resources/2021-10/fulfillment_order.d.ts.map +1 -1
  173. package/dist/rest-resources/2021-10/fulfillment_order.js +44 -44
  174. package/dist/rest-resources/2021-10/fulfillment_request.js +7 -7
  175. package/dist/rest-resources/2021-10/fulfillment_service.js +8 -8
  176. package/dist/rest-resources/2021-10/gift_card.d.ts +2 -8
  177. package/dist/rest-resources/2021-10/gift_card.d.ts.map +1 -1
  178. package/dist/rest-resources/2021-10/gift_card.js +13 -18
  179. package/dist/rest-resources/2021-10/gift_card_adjustment.js +5 -5
  180. package/dist/rest-resources/2021-10/image.js +13 -13
  181. package/dist/rest-resources/2021-10/inventory_item.js +5 -5
  182. package/dist/rest-resources/2021-10/inventory_level.js +10 -10
  183. package/dist/rest-resources/2021-10/location.d.ts +2 -8
  184. package/dist/rest-resources/2021-10/location.d.ts.map +1 -1
  185. package/dist/rest-resources/2021-10/location.js +7 -12
  186. package/dist/rest-resources/2021-10/locations_for_move.js +2 -2
  187. package/dist/rest-resources/2021-10/marketing_event.js +12 -12
  188. package/dist/rest-resources/2021-10/metafield.d.ts +54 -5
  189. package/dist/rest-resources/2021-10/metafield.d.ts.map +1 -1
  190. package/dist/rest-resources/2021-10/metafield.js +89 -29
  191. package/dist/rest-resources/2021-10/mobile_platform_application.js +7 -7
  192. package/dist/rest-resources/2021-10/order.d.ts +12 -10
  193. package/dist/rest-resources/2021-10/order.d.ts.map +1 -1
  194. package/dist/rest-resources/2021-10/order.js +37 -37
  195. package/dist/rest-resources/2021-10/order_risk.js +8 -8
  196. package/dist/rest-resources/2021-10/page.js +12 -12
  197. package/dist/rest-resources/2021-10/payment.js +9 -9
  198. package/dist/rest-resources/2021-10/payment_gateway.js +7 -7
  199. package/dist/rest-resources/2021-10/payment_transaction.js +3 -3
  200. package/dist/rest-resources/2021-10/payout.d.ts +1 -4
  201. package/dist/rest-resources/2021-10/payout.d.ts.map +1 -1
  202. package/dist/rest-resources/2021-10/payout.js +5 -8
  203. package/dist/rest-resources/2021-10/policy.js +1 -1
  204. package/dist/rest-resources/2021-10/price_rule.js +9 -9
  205. package/dist/rest-resources/2021-10/product.js +13 -13
  206. package/dist/rest-resources/2021-10/product_listing.d.ts +4 -4
  207. package/dist/rest-resources/2021-10/product_listing.d.ts.map +1 -1
  208. package/dist/rest-resources/2021-10/product_listing.js +25 -25
  209. package/dist/rest-resources/2021-10/product_resource_feedback.js +3 -3
  210. package/dist/rest-resources/2021-10/province.js +9 -9
  211. package/dist/rest-resources/2021-10/recurring_application_charge.js +10 -10
  212. package/dist/rest-resources/2021-10/redirect.js +11 -11
  213. package/dist/rest-resources/2021-10/refund.js +11 -11
  214. package/dist/rest-resources/2021-10/report.js +9 -9
  215. package/dist/rest-resources/2021-10/resource_feedback.js +2 -2
  216. package/dist/rest-resources/2021-10/script_tag.js +11 -11
  217. package/dist/rest-resources/2021-10/shipping_zone.js +4 -4
  218. package/dist/rest-resources/2021-10/shop.d.ts +4 -12
  219. package/dist/rest-resources/2021-10/shop.d.ts.map +1 -1
  220. package/dist/rest-resources/2021-10/shop.js +3 -10
  221. package/dist/rest-resources/2021-10/smart_collection.js +14 -14
  222. package/dist/rest-resources/2021-10/storefront_access_token.d.ts +1 -4
  223. package/dist/rest-resources/2021-10/storefront_access_token.d.ts.map +1 -1
  224. package/dist/rest-resources/2021-10/storefront_access_token.js +5 -8
  225. package/dist/rest-resources/2021-10/tender_transaction.d.ts +1 -4
  226. package/dist/rest-resources/2021-10/tender_transaction.d.ts.map +1 -1
  227. package/dist/rest-resources/2021-10/tender_transaction.js +3 -6
  228. package/dist/rest-resources/2021-10/theme.js +9 -9
  229. package/dist/rest-resources/2021-10/transaction.js +9 -9
  230. package/dist/rest-resources/2021-10/usage_charge.js +7 -7
  231. package/dist/rest-resources/2021-10/user.js +5 -5
  232. package/dist/rest-resources/2021-10/variant.js +12 -12
  233. package/dist/rest-resources/2021-10/webhook.js +11 -11
  234. package/dist/rest-resources/2022-01/abandoned_checkout.js +6 -6
  235. package/dist/rest-resources/2022-01/access_scope.js +1 -1
  236. package/dist/rest-resources/2022-01/android_pay_key.js +5 -5
  237. package/dist/rest-resources/2022-01/apple_pay_certificate.js +8 -8
  238. package/dist/rest-resources/2022-01/application_charge.js +6 -6
  239. package/dist/rest-resources/2022-01/application_credit.js +6 -6
  240. package/dist/rest-resources/2022-01/article.d.ts +6 -9
  241. package/dist/rest-resources/2022-01/article.d.ts.map +1 -1
  242. package/dist/rest-resources/2022-01/article.js +36 -37
  243. package/dist/rest-resources/2022-01/asset.js +8 -8
  244. package/dist/rest-resources/2022-01/assigned_fulfillment_order.js +2 -2
  245. package/dist/rest-resources/2022-01/balance.js +1 -1
  246. package/dist/rest-resources/2022-01/blog.js +11 -11
  247. package/dist/rest-resources/2022-01/cancellation_request.js +7 -7
  248. package/dist/rest-resources/2022-01/carrier_service.js +7 -7
  249. package/dist/rest-resources/2022-01/checkout.d.ts +3 -4
  250. package/dist/rest-resources/2022-01/checkout.d.ts.map +1 -1
  251. package/dist/rest-resources/2022-01/checkout.js +11 -13
  252. package/dist/rest-resources/2022-01/collect.js +9 -9
  253. package/dist/rest-resources/2022-01/collection.js +7 -7
  254. package/dist/rest-resources/2022-01/collection_listing.js +11 -11
  255. package/dist/rest-resources/2022-01/comment.d.ts +6 -6
  256. package/dist/rest-resources/2022-01/comment.d.ts.map +1 -1
  257. package/dist/rest-resources/2022-01/comment.js +27 -27
  258. package/dist/rest-resources/2022-01/country.js +11 -11
  259. package/dist/rest-resources/2022-01/currency.js +1 -1
  260. package/dist/rest-resources/2022-01/custom_collection.js +11 -11
  261. package/dist/rest-resources/2022-01/customer.d.ts +12 -19
  262. package/dist/rest-resources/2022-01/customer.d.ts.map +1 -1
  263. package/dist/rest-resources/2022-01/customer.js +38 -61
  264. package/dist/rest-resources/2022-01/customer_address.d.ts +5 -5
  265. package/dist/rest-resources/2022-01/customer_address.d.ts.map +1 -1
  266. package/dist/rest-resources/2022-01/customer_address.js +26 -26
  267. package/dist/rest-resources/2022-01/customer_saved_search.js +14 -14
  268. package/dist/rest-resources/2022-01/deprecated_api_call.js +1 -1
  269. package/dist/rest-resources/2022-01/discount_code.d.ts +6 -6
  270. package/dist/rest-resources/2022-01/discount_code.d.ts.map +1 -1
  271. package/dist/rest-resources/2022-01/discount_code.js +37 -37
  272. package/dist/rest-resources/2022-01/dispute.d.ts +1 -4
  273. package/dist/rest-resources/2022-01/dispute.d.ts.map +1 -1
  274. package/dist/rest-resources/2022-01/dispute.js +5 -8
  275. package/dist/rest-resources/2022-01/draft_order.d.ts +2 -4
  276. package/dist/rest-resources/2022-01/draft_order.d.ts.map +1 -1
  277. package/dist/rest-resources/2022-01/draft_order.js +17 -19
  278. package/dist/rest-resources/2022-01/event.js +10 -10
  279. package/dist/rest-resources/2022-01/fulfillment.d.ts +2 -23
  280. package/dist/rest-resources/2022-01/fulfillment.d.ts.map +1 -1
  281. package/dist/rest-resources/2022-01/fulfillment.js +13 -86
  282. package/dist/rest-resources/2022-01/fulfillment_event.js +10 -10
  283. package/dist/rest-resources/2022-01/fulfillment_order.d.ts +11 -11
  284. package/dist/rest-resources/2022-01/fulfillment_order.d.ts.map +1 -1
  285. package/dist/rest-resources/2022-01/fulfillment_order.js +44 -44
  286. package/dist/rest-resources/2022-01/fulfillment_request.js +7 -7
  287. package/dist/rest-resources/2022-01/fulfillment_service.js +8 -8
  288. package/dist/rest-resources/2022-01/gift_card.d.ts +2 -8
  289. package/dist/rest-resources/2022-01/gift_card.d.ts.map +1 -1
  290. package/dist/rest-resources/2022-01/gift_card.js +13 -18
  291. package/dist/rest-resources/2022-01/gift_card_adjustment.js +5 -5
  292. package/dist/rest-resources/2022-01/image.js +13 -13
  293. package/dist/rest-resources/2022-01/inventory_item.js +5 -5
  294. package/dist/rest-resources/2022-01/inventory_level.js +10 -10
  295. package/dist/rest-resources/2022-01/location.d.ts +2 -8
  296. package/dist/rest-resources/2022-01/location.d.ts.map +1 -1
  297. package/dist/rest-resources/2022-01/location.js +7 -12
  298. package/dist/rest-resources/2022-01/locations_for_move.js +2 -2
  299. package/dist/rest-resources/2022-01/marketing_event.js +12 -12
  300. package/dist/rest-resources/2022-01/metafield.d.ts +54 -5
  301. package/dist/rest-resources/2022-01/metafield.d.ts.map +1 -1
  302. package/dist/rest-resources/2022-01/metafield.js +89 -29
  303. package/dist/rest-resources/2022-01/mobile_platform_application.js +7 -7
  304. package/dist/rest-resources/2022-01/order.d.ts +12 -10
  305. package/dist/rest-resources/2022-01/order.d.ts.map +1 -1
  306. package/dist/rest-resources/2022-01/order.js +37 -37
  307. package/dist/rest-resources/2022-01/order_risk.js +8 -8
  308. package/dist/rest-resources/2022-01/page.js +12 -12
  309. package/dist/rest-resources/2022-01/payment.js +9 -9
  310. package/dist/rest-resources/2022-01/payment_gateway.js +7 -7
  311. package/dist/rest-resources/2022-01/payment_transaction.js +3 -3
  312. package/dist/rest-resources/2022-01/payout.d.ts +1 -4
  313. package/dist/rest-resources/2022-01/payout.d.ts.map +1 -1
  314. package/dist/rest-resources/2022-01/payout.js +5 -8
  315. package/dist/rest-resources/2022-01/policy.js +1 -1
  316. package/dist/rest-resources/2022-01/price_rule.js +9 -9
  317. package/dist/rest-resources/2022-01/product.js +13 -13
  318. package/dist/rest-resources/2022-01/product_listing.d.ts +4 -4
  319. package/dist/rest-resources/2022-01/product_listing.d.ts.map +1 -1
  320. package/dist/rest-resources/2022-01/product_listing.js +25 -25
  321. package/dist/rest-resources/2022-01/product_resource_feedback.js +3 -3
  322. package/dist/rest-resources/2022-01/province.js +9 -9
  323. package/dist/rest-resources/2022-01/recurring_application_charge.js +10 -10
  324. package/dist/rest-resources/2022-01/redirect.js +11 -11
  325. package/dist/rest-resources/2022-01/refund.js +11 -11
  326. package/dist/rest-resources/2022-01/report.js +9 -9
  327. package/dist/rest-resources/2022-01/resource_feedback.js +2 -2
  328. package/dist/rest-resources/2022-01/script_tag.js +11 -11
  329. package/dist/rest-resources/2022-01/shipping_zone.js +4 -4
  330. package/dist/rest-resources/2022-01/shop.d.ts +4 -12
  331. package/dist/rest-resources/2022-01/shop.d.ts.map +1 -1
  332. package/dist/rest-resources/2022-01/shop.js +3 -10
  333. package/dist/rest-resources/2022-01/smart_collection.js +14 -14
  334. package/dist/rest-resources/2022-01/storefront_access_token.d.ts +1 -4
  335. package/dist/rest-resources/2022-01/storefront_access_token.d.ts.map +1 -1
  336. package/dist/rest-resources/2022-01/storefront_access_token.js +5 -8
  337. package/dist/rest-resources/2022-01/tender_transaction.d.ts +1 -4
  338. package/dist/rest-resources/2022-01/tender_transaction.d.ts.map +1 -1
  339. package/dist/rest-resources/2022-01/tender_transaction.js +3 -6
  340. package/dist/rest-resources/2022-01/theme.js +9 -9
  341. package/dist/rest-resources/2022-01/transaction.js +9 -9
  342. package/dist/rest-resources/2022-01/usage_charge.js +7 -7
  343. package/dist/rest-resources/2022-01/user.js +5 -5
  344. package/dist/rest-resources/2022-01/variant.js +12 -12
  345. package/dist/rest-resources/2022-01/webhook.js +11 -11
  346. package/dist/rest-resources/{2021-04 → 2022-04}/abandoned_checkout.d.ts +0 -0
  347. package/dist/rest-resources/{2021-04 → 2022-04}/abandoned_checkout.d.ts.map +1 -1
  348. package/dist/rest-resources/{2021-04 → 2022-04}/abandoned_checkout.js +7 -7
  349. package/dist/rest-resources/{2021-04 → 2022-04}/access_scope.d.ts +0 -0
  350. package/dist/rest-resources/{2021-04 → 2022-04}/access_scope.d.ts.map +1 -1
  351. package/dist/rest-resources/{2021-04 → 2022-04}/access_scope.js +2 -2
  352. package/dist/rest-resources/{2021-04 → 2022-04}/android_pay_key.d.ts +0 -0
  353. package/dist/rest-resources/{2021-04 → 2022-04}/android_pay_key.d.ts.map +1 -1
  354. package/dist/rest-resources/{2021-04 → 2022-04}/android_pay_key.js +6 -6
  355. package/dist/rest-resources/{2021-04 → 2022-04}/apple_pay_certificate.d.ts +0 -0
  356. package/dist/rest-resources/{2021-04 → 2022-04}/apple_pay_certificate.d.ts.map +1 -1
  357. package/dist/rest-resources/{2021-04 → 2022-04}/apple_pay_certificate.js +9 -9
  358. package/dist/rest-resources/{2021-04 → 2022-04}/application_charge.d.ts +0 -0
  359. package/dist/rest-resources/{2021-04 → 2022-04}/application_charge.d.ts.map +1 -1
  360. package/dist/rest-resources/{2021-04 → 2022-04}/application_charge.js +7 -7
  361. package/dist/rest-resources/{2021-04 → 2022-04}/application_credit.d.ts +0 -0
  362. package/dist/rest-resources/{2021-04 → 2022-04}/application_credit.d.ts.map +1 -1
  363. package/dist/rest-resources/{2021-04 → 2022-04}/application_credit.js +7 -7
  364. package/dist/rest-resources/{2021-04 → 2022-04}/article.d.ts +6 -9
  365. package/dist/rest-resources/2022-04/article.d.ts.map +1 -0
  366. package/dist/rest-resources/{2021-04 → 2022-04}/article.js +37 -38
  367. package/dist/rest-resources/{2021-04 → 2022-04}/asset.d.ts +0 -0
  368. package/dist/rest-resources/{2021-04 → 2022-04}/asset.d.ts.map +1 -1
  369. package/dist/rest-resources/{2021-04 → 2022-04}/asset.js +9 -9
  370. package/dist/rest-resources/{2021-04 → 2022-04}/assigned_fulfillment_order.d.ts +0 -0
  371. package/dist/rest-resources/{2021-04 → 2022-04}/assigned_fulfillment_order.d.ts.map +1 -1
  372. package/dist/rest-resources/{2021-04 → 2022-04}/assigned_fulfillment_order.js +3 -3
  373. package/dist/rest-resources/{2021-04 → 2022-04}/balance.d.ts +0 -0
  374. package/dist/rest-resources/{2021-04 → 2022-04}/balance.d.ts.map +1 -1
  375. package/dist/rest-resources/{2021-04 → 2022-04}/balance.js +2 -2
  376. package/dist/rest-resources/{2021-04 → 2022-04}/blog.d.ts +0 -0
  377. package/dist/rest-resources/{2021-04 → 2022-04}/blog.d.ts.map +1 -1
  378. package/dist/rest-resources/{2021-04 → 2022-04}/blog.js +12 -12
  379. package/dist/rest-resources/{2021-04 → 2022-04}/cancellation_request.d.ts +0 -0
  380. package/dist/rest-resources/{2021-04 → 2022-04}/cancellation_request.d.ts.map +1 -1
  381. package/dist/rest-resources/{2021-04 → 2022-04}/cancellation_request.js +8 -8
  382. package/dist/rest-resources/{2021-04 → 2022-04}/carrier_service.d.ts +0 -0
  383. package/dist/rest-resources/{2021-04 → 2022-04}/carrier_service.d.ts.map +1 -1
  384. package/dist/rest-resources/{2021-04 → 2022-04}/carrier_service.js +8 -8
  385. package/dist/rest-resources/{2021-04 → 2022-04}/checkout.d.ts +3 -4
  386. package/dist/rest-resources/2022-04/checkout.d.ts.map +1 -0
  387. package/dist/rest-resources/{2021-04 → 2022-04}/checkout.js +12 -14
  388. package/dist/rest-resources/{2021-04 → 2022-04}/collect.d.ts +0 -0
  389. package/dist/rest-resources/{2021-04 → 2022-04}/collect.d.ts.map +1 -1
  390. package/dist/rest-resources/{2021-04 → 2022-04}/collect.js +10 -10
  391. package/dist/rest-resources/{2021-04 → 2022-04}/collection.d.ts +0 -0
  392. package/dist/rest-resources/{2021-04 → 2022-04}/collection.d.ts.map +1 -1
  393. package/dist/rest-resources/{2021-04 → 2022-04}/collection.js +8 -8
  394. package/dist/rest-resources/{2021-04 → 2022-04}/collection_listing.d.ts +0 -0
  395. package/dist/rest-resources/{2021-04 → 2022-04}/collection_listing.d.ts.map +1 -1
  396. package/dist/rest-resources/{2021-04 → 2022-04}/collection_listing.js +12 -12
  397. package/dist/rest-resources/{2021-04 → 2022-04}/comment.d.ts +6 -6
  398. package/dist/rest-resources/{2021-04 → 2022-04}/comment.d.ts.map +1 -1
  399. package/dist/rest-resources/{2021-04 → 2022-04}/comment.js +28 -28
  400. package/dist/rest-resources/{2021-04 → 2022-04}/country.d.ts +0 -0
  401. package/dist/rest-resources/{2021-04 → 2022-04}/country.d.ts.map +1 -1
  402. package/dist/rest-resources/{2021-04 → 2022-04}/country.js +12 -12
  403. package/dist/rest-resources/{2021-04 → 2022-04}/currency.d.ts +0 -0
  404. package/dist/rest-resources/{2021-04 → 2022-04}/currency.d.ts.map +1 -1
  405. package/dist/rest-resources/{2021-04 → 2022-04}/currency.js +2 -2
  406. package/dist/rest-resources/{2021-04 → 2022-04}/custom_collection.d.ts +0 -0
  407. package/dist/rest-resources/{2021-04 → 2022-04}/custom_collection.d.ts.map +1 -1
  408. package/dist/rest-resources/{2021-04 → 2022-04}/custom_collection.js +12 -12
  409. package/dist/rest-resources/{2021-04 → 2022-04}/customer.d.ts +18 -19
  410. package/dist/rest-resources/2022-04/customer.d.ts.map +1 -0
  411. package/dist/rest-resources/{2021-04 → 2022-04}/customer.js +39 -62
  412. package/dist/rest-resources/{2021-04 → 2022-04}/customer_address.d.ts +5 -5
  413. package/dist/rest-resources/{2021-04 → 2022-04}/customer_address.d.ts.map +1 -1
  414. package/dist/rest-resources/{2021-04 → 2022-04}/customer_address.js +27 -27
  415. package/dist/rest-resources/{2021-04 → 2022-04}/customer_saved_search.d.ts +0 -0
  416. package/dist/rest-resources/{2021-04 → 2022-04}/customer_saved_search.d.ts.map +1 -1
  417. package/dist/rest-resources/{2021-04 → 2022-04}/customer_saved_search.js +15 -15
  418. package/dist/rest-resources/{2021-04 → 2022-04}/deprecated_api_call.d.ts +0 -0
  419. package/dist/rest-resources/{2021-04 → 2022-04}/deprecated_api_call.d.ts.map +1 -1
  420. package/dist/rest-resources/{2021-04 → 2022-04}/deprecated_api_call.js +2 -2
  421. package/dist/rest-resources/{2021-04 → 2022-04}/discount_code.d.ts +6 -6
  422. package/dist/rest-resources/{2021-04 → 2022-04}/discount_code.d.ts.map +1 -1
  423. package/dist/rest-resources/{2021-04 → 2022-04}/discount_code.js +38 -38
  424. package/dist/rest-resources/{2021-04 → 2022-04}/dispute.d.ts +1 -4
  425. package/dist/rest-resources/2022-04/dispute.d.ts.map +1 -0
  426. package/dist/rest-resources/{2021-04 → 2022-04}/dispute.js +6 -9
  427. package/dist/rest-resources/{2021-04 → 2022-04}/draft_order.d.ts +5 -4
  428. package/dist/rest-resources/2022-04/draft_order.d.ts.map +1 -0
  429. package/dist/rest-resources/{2021-04 → 2022-04}/draft_order.js +18 -20
  430. package/dist/rest-resources/{2021-04 → 2022-04}/event.d.ts +0 -0
  431. package/dist/rest-resources/{2021-04 → 2022-04}/event.d.ts.map +1 -1
  432. package/dist/rest-resources/{2021-04 → 2022-04}/event.js +11 -11
  433. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment.d.ts +5 -23
  434. package/dist/rest-resources/2022-04/fulfillment.d.ts.map +1 -0
  435. package/dist/rest-resources/2022-04/fulfillment.js +106 -0
  436. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_event.d.ts +0 -0
  437. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_event.d.ts.map +1 -1
  438. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_event.js +11 -11
  439. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_order.d.ts +23 -0
  440. package/dist/rest-resources/2022-04/fulfillment_order.d.ts.map +1 -0
  441. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_order.js +63 -17
  442. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_request.d.ts +0 -0
  443. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_request.d.ts.map +1 -1
  444. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_request.js +8 -8
  445. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_service.d.ts +0 -0
  446. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_service.d.ts.map +1 -1
  447. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_service.js +9 -9
  448. package/dist/rest-resources/{2021-04 → 2022-04}/gift_card.d.ts +2 -8
  449. package/dist/rest-resources/2022-04/gift_card.d.ts.map +1 -0
  450. package/dist/rest-resources/{2021-04 → 2022-04}/gift_card.js +14 -19
  451. package/dist/rest-resources/{2021-04 → 2022-04}/gift_card_adjustment.d.ts +0 -0
  452. package/dist/rest-resources/{2021-04 → 2022-04}/gift_card_adjustment.d.ts.map +1 -1
  453. package/dist/rest-resources/{2021-04 → 2022-04}/gift_card_adjustment.js +6 -6
  454. package/dist/rest-resources/{2021-04 → 2022-04}/image.d.ts +0 -0
  455. package/dist/rest-resources/{2021-04 → 2022-04}/image.d.ts.map +1 -1
  456. package/dist/rest-resources/{2021-04 → 2022-04}/image.js +14 -14
  457. package/dist/rest-resources/{2021-04 → 2022-04}/index.d.ts +0 -0
  458. package/dist/rest-resources/{2021-04 → 2022-04}/index.d.ts.map +1 -1
  459. package/dist/rest-resources/{2021-04 → 2022-04}/index.js +0 -0
  460. package/dist/rest-resources/{2021-04 → 2022-04}/inventory_item.d.ts +0 -0
  461. package/dist/rest-resources/{2021-04 → 2022-04}/inventory_item.d.ts.map +1 -1
  462. package/dist/rest-resources/{2021-04 → 2022-04}/inventory_item.js +6 -6
  463. package/dist/rest-resources/{2021-04 → 2022-04}/inventory_level.d.ts +0 -0
  464. package/dist/rest-resources/{2021-04 → 2022-04}/inventory_level.d.ts.map +1 -1
  465. package/dist/rest-resources/{2021-04 → 2022-04}/inventory_level.js +11 -11
  466. package/dist/rest-resources/{2021-04 → 2022-04}/location.d.ts +2 -8
  467. package/dist/rest-resources/2022-04/location.d.ts.map +1 -0
  468. package/dist/rest-resources/{2021-04 → 2022-04}/location.js +8 -13
  469. package/dist/rest-resources/{2021-04 → 2022-04}/locations_for_move.d.ts +0 -0
  470. package/dist/rest-resources/{2021-04 → 2022-04}/locations_for_move.d.ts.map +1 -1
  471. package/dist/rest-resources/{2021-04 → 2022-04}/locations_for_move.js +3 -3
  472. package/dist/rest-resources/{2021-04 → 2022-04}/marketing_event.d.ts +0 -0
  473. package/dist/rest-resources/{2021-04 → 2022-04}/marketing_event.d.ts.map +1 -1
  474. package/dist/rest-resources/{2021-04 → 2022-04}/marketing_event.js +13 -13
  475. package/dist/rest-resources/2022-04/metafield.d.ts +112 -0
  476. package/dist/rest-resources/2022-04/metafield.d.ts.map +1 -0
  477. package/dist/rest-resources/2022-04/metafield.js +166 -0
  478. package/dist/rest-resources/{2021-04 → 2022-04}/mobile_platform_application.d.ts +0 -0
  479. package/dist/rest-resources/{2021-04 → 2022-04}/mobile_platform_application.d.ts.map +1 -1
  480. package/dist/rest-resources/{2021-04 → 2022-04}/mobile_platform_application.js +8 -8
  481. package/dist/rest-resources/{2021-04 → 2022-04}/order.d.ts +16 -10
  482. package/dist/rest-resources/{2021-04 → 2022-04}/order.d.ts.map +1 -1
  483. package/dist/rest-resources/{2021-04 → 2022-04}/order.js +38 -38
  484. package/dist/rest-resources/{2021-04 → 2022-04}/order_risk.d.ts +0 -0
  485. package/dist/rest-resources/{2021-04 → 2022-04}/order_risk.d.ts.map +1 -1
  486. package/dist/rest-resources/{2021-04 → 2022-04}/order_risk.js +9 -9
  487. package/dist/rest-resources/{2021-04 → 2022-04}/page.d.ts +0 -0
  488. package/dist/rest-resources/{2021-04 → 2022-04}/page.d.ts.map +1 -1
  489. package/dist/rest-resources/{2021-04 → 2022-04}/page.js +13 -13
  490. package/dist/rest-resources/{2021-04 → 2022-04}/payment.d.ts +0 -0
  491. package/dist/rest-resources/{2021-04 → 2022-04}/payment.d.ts.map +1 -1
  492. package/dist/rest-resources/{2021-04 → 2022-04}/payment.js +10 -10
  493. package/dist/rest-resources/{2021-04 → 2022-04}/payment_gateway.d.ts +0 -0
  494. package/dist/rest-resources/{2021-04 → 2022-04}/payment_gateway.d.ts.map +1 -1
  495. package/dist/rest-resources/{2021-04 → 2022-04}/payment_gateway.js +8 -8
  496. package/dist/rest-resources/{2021-04 → 2022-04}/payment_transaction.d.ts +0 -0
  497. package/dist/rest-resources/{2021-04 → 2022-04}/payment_transaction.d.ts.map +1 -1
  498. package/dist/rest-resources/{2021-04 → 2022-04}/payment_transaction.js +4 -4
  499. package/dist/rest-resources/{2021-04 → 2022-04}/payout.d.ts +1 -4
  500. package/dist/rest-resources/2022-04/payout.d.ts.map +1 -0
  501. package/dist/rest-resources/{2021-04 → 2022-04}/payout.js +6 -9
  502. package/dist/rest-resources/{2021-04 → 2022-04}/policy.d.ts +0 -0
  503. package/dist/rest-resources/{2021-04 → 2022-04}/policy.d.ts.map +1 -1
  504. package/dist/rest-resources/{2021-04 → 2022-04}/policy.js +2 -2
  505. package/dist/rest-resources/{2021-04 → 2022-04}/price_rule.d.ts +1 -1
  506. package/dist/rest-resources/{2021-04 → 2022-04}/price_rule.d.ts.map +1 -1
  507. package/dist/rest-resources/{2021-04 → 2022-04}/price_rule.js +10 -10
  508. package/dist/rest-resources/{2021-04 → 2022-04}/product.d.ts +0 -0
  509. package/dist/rest-resources/{2021-04 → 2022-04}/product.d.ts.map +1 -1
  510. package/dist/rest-resources/{2021-04 → 2022-04}/product.js +14 -14
  511. package/dist/rest-resources/{2021-04 → 2022-04}/product_listing.d.ts +4 -4
  512. package/dist/rest-resources/{2021-04 → 2022-04}/product_listing.d.ts.map +1 -1
  513. package/dist/rest-resources/{2021-04 → 2022-04}/product_listing.js +26 -26
  514. package/dist/rest-resources/{2021-04 → 2022-04}/product_resource_feedback.d.ts +0 -0
  515. package/dist/rest-resources/{2021-04 → 2022-04}/product_resource_feedback.d.ts.map +1 -1
  516. package/dist/rest-resources/{2021-04 → 2022-04}/product_resource_feedback.js +4 -4
  517. package/dist/rest-resources/{2021-04 → 2022-04}/province.d.ts +0 -0
  518. package/dist/rest-resources/{2021-04 → 2022-04}/province.d.ts.map +1 -1
  519. package/dist/rest-resources/{2021-04 → 2022-04}/province.js +10 -10
  520. package/dist/rest-resources/{2021-04 → 2022-04}/recurring_application_charge.d.ts +0 -0
  521. package/dist/rest-resources/{2021-04 → 2022-04}/recurring_application_charge.d.ts.map +1 -1
  522. package/dist/rest-resources/{2021-04 → 2022-04}/recurring_application_charge.js +11 -11
  523. package/dist/rest-resources/{2021-04 → 2022-04}/redirect.d.ts +0 -0
  524. package/dist/rest-resources/{2021-04 → 2022-04}/redirect.d.ts.map +1 -1
  525. package/dist/rest-resources/{2021-04 → 2022-04}/redirect.js +12 -12
  526. package/dist/rest-resources/{2021-04 → 2022-04}/refund.d.ts +0 -0
  527. package/dist/rest-resources/{2021-04 → 2022-04}/refund.d.ts.map +1 -1
  528. package/dist/rest-resources/{2021-04 → 2022-04}/refund.js +12 -12
  529. package/dist/rest-resources/{2021-04 → 2022-04}/report.d.ts +0 -0
  530. package/dist/rest-resources/{2021-04 → 2022-04}/report.d.ts.map +1 -1
  531. package/dist/rest-resources/{2021-04 → 2022-04}/report.js +10 -10
  532. package/dist/rest-resources/{2021-04 → 2022-04}/resource_feedback.d.ts +0 -0
  533. package/dist/rest-resources/{2021-04 → 2022-04}/resource_feedback.d.ts.map +1 -1
  534. package/dist/rest-resources/{2021-04 → 2022-04}/resource_feedback.js +3 -3
  535. package/dist/rest-resources/{2021-04 → 2022-04}/script_tag.d.ts +0 -0
  536. package/dist/rest-resources/{2021-04 → 2022-04}/script_tag.d.ts.map +1 -1
  537. package/dist/rest-resources/{2021-04 → 2022-04}/script_tag.js +12 -12
  538. package/dist/rest-resources/{2021-04 → 2022-04}/shipping_zone.d.ts +0 -0
  539. package/dist/rest-resources/{2021-04 → 2022-04}/shipping_zone.d.ts.map +1 -1
  540. package/dist/rest-resources/{2021-04 → 2022-04}/shipping_zone.js +5 -5
  541. package/dist/rest-resources/{2021-04 → 2022-04}/shop.d.ts +4 -12
  542. package/dist/rest-resources/2022-04/shop.d.ts.map +1 -0
  543. package/dist/rest-resources/{2021-04 → 2022-04}/shop.js +4 -11
  544. package/dist/rest-resources/{2021-04 → 2022-04}/smart_collection.d.ts +0 -0
  545. package/dist/rest-resources/{2021-04 → 2022-04}/smart_collection.d.ts.map +1 -1
  546. package/dist/rest-resources/{2021-04 → 2022-04}/smart_collection.js +15 -15
  547. package/dist/rest-resources/{2021-04 → 2022-04}/storefront_access_token.d.ts +1 -4
  548. package/dist/rest-resources/2022-04/storefront_access_token.d.ts.map +1 -0
  549. package/dist/rest-resources/{2021-04 → 2022-04}/storefront_access_token.js +6 -9
  550. package/dist/rest-resources/{2021-04 → 2022-04}/tender_transaction.d.ts +1 -4
  551. package/dist/rest-resources/2022-04/tender_transaction.d.ts.map +1 -0
  552. package/dist/rest-resources/{2021-04 → 2022-04}/tender_transaction.js +4 -7
  553. package/dist/rest-resources/{2021-04 → 2022-04}/theme.d.ts +0 -0
  554. package/dist/rest-resources/{2021-04 → 2022-04}/theme.d.ts.map +1 -1
  555. package/dist/rest-resources/{2021-04 → 2022-04}/theme.js +10 -10
  556. package/dist/rest-resources/{2021-04 → 2022-04}/transaction.d.ts +3 -0
  557. package/dist/rest-resources/{2021-04 → 2022-04}/transaction.d.ts.map +1 -1
  558. package/dist/rest-resources/{2021-04 → 2022-04}/transaction.js +10 -10
  559. package/dist/rest-resources/{2021-04 → 2022-04}/usage_charge.d.ts +0 -0
  560. package/dist/rest-resources/{2021-04 → 2022-04}/usage_charge.d.ts.map +1 -1
  561. package/dist/rest-resources/{2021-04 → 2022-04}/usage_charge.js +8 -8
  562. package/dist/rest-resources/{2021-04 → 2022-04}/user.d.ts +0 -0
  563. package/dist/rest-resources/{2021-04 → 2022-04}/user.d.ts.map +1 -1
  564. package/dist/rest-resources/{2021-04 → 2022-04}/user.js +6 -6
  565. package/dist/rest-resources/{2021-04 → 2022-04}/variant.d.ts +0 -0
  566. package/dist/rest-resources/{2021-04 → 2022-04}/variant.d.ts.map +1 -1
  567. package/dist/rest-resources/{2021-04 → 2022-04}/variant.js +13 -13
  568. package/dist/rest-resources/{2021-04 → 2022-04}/webhook.d.ts +0 -0
  569. package/dist/rest-resources/{2021-04 → 2022-04}/webhook.d.ts.map +1 -1
  570. package/dist/rest-resources/{2021-04 → 2022-04}/webhook.js +12 -12
  571. package/dist/version.d.ts +1 -1
  572. package/dist/version.js +1 -1
  573. package/dist/webhooks/registry.d.ts.map +1 -1
  574. package/dist/webhooks/registry.js +3 -13
  575. package/package.json +1 -1
  576. package/dist/rest-resources/2021-04/article.d.ts.map +0 -1
  577. package/dist/rest-resources/2021-04/checkout.d.ts.map +0 -1
  578. package/dist/rest-resources/2021-04/customer.d.ts.map +0 -1
  579. package/dist/rest-resources/2021-04/dispute.d.ts.map +0 -1
  580. package/dist/rest-resources/2021-04/draft_order.d.ts.map +0 -1
  581. package/dist/rest-resources/2021-04/fulfillment.d.ts.map +0 -1
  582. package/dist/rest-resources/2021-04/fulfillment.js +0 -179
  583. package/dist/rest-resources/2021-04/fulfillment_order.d.ts.map +0 -1
  584. package/dist/rest-resources/2021-04/gift_card.d.ts.map +0 -1
  585. package/dist/rest-resources/2021-04/location.d.ts.map +0 -1
  586. package/dist/rest-resources/2021-04/metafield.d.ts +0 -61
  587. package/dist/rest-resources/2021-04/metafield.d.ts.map +0 -1
  588. package/dist/rest-resources/2021-04/metafield.js +0 -106
  589. package/dist/rest-resources/2021-04/payout.d.ts.map +0 -1
  590. package/dist/rest-resources/2021-04/shop.d.ts.map +0 -1
  591. package/dist/rest-resources/2021-04/storefront_access_token.d.ts.map +0 -1
  592. package/dist/rest-resources/2021-04/tender_transaction.d.ts.map +0 -1
@@ -17,8 +17,8 @@ var CustomCollection = /** @class */ (function (_super) {
17
17
  switch (_c.label) {
18
18
  case 0: return [4 /*yield*/, CustomCollection.baseFind({
19
19
  session: session,
20
- urlIds: { id: id },
21
- params: { fields: fields },
20
+ urlIds: { "id": id },
21
+ params: { "fields": fields },
22
22
  })];
23
23
  case 1:
24
24
  result = _c.sent();
@@ -37,7 +37,7 @@ var CustomCollection = /** @class */ (function (_super) {
37
37
  http_method: "delete",
38
38
  operation: "delete",
39
39
  session: session,
40
- urlIds: { id: id },
40
+ urlIds: { "id": id },
41
41
  params: {},
42
42
  })];
43
43
  case 1:
@@ -56,7 +56,7 @@ var CustomCollection = /** @class */ (function (_super) {
56
56
  case 0: return [4 /*yield*/, CustomCollection.baseFind({
57
57
  session: session,
58
58
  urlIds: {},
59
- params: tslib_1.__assign({ limit: limit, ids: ids, since_id: since_id, title: title, product_id: product_id, handle: handle, updated_at_min: updated_at_min, updated_at_max: updated_at_max, published_at_min: published_at_min, published_at_max: published_at_max, published_status: published_status, fields: fields }, otherArgs),
59
+ params: tslib_1.__assign({ "limit": limit, "ids": ids, "since_id": since_id, "title": title, "product_id": product_id, "handle": handle, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "published_at_min": published_at_min, "published_at_max": published_at_max, "published_status": published_status, "fields": fields }, otherArgs),
60
60
  })];
61
61
  case 1:
62
62
  response = _p.sent();
@@ -76,7 +76,7 @@ var CustomCollection = /** @class */ (function (_super) {
76
76
  operation: "count",
77
77
  session: session,
78
78
  urlIds: {},
79
- params: tslib_1.__assign({ title: title, product_id: product_id, updated_at_min: updated_at_min, updated_at_max: updated_at_max, published_at_min: published_at_min, published_at_max: published_at_max, published_status: published_status }, otherArgs),
79
+ params: tslib_1.__assign({ "title": title, "product_id": product_id, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "published_at_min": published_at_min, "published_at_max": published_at_max, "published_status": published_status }, otherArgs),
80
80
  body: {},
81
81
  entity: null,
82
82
  })];
@@ -93,12 +93,12 @@ var CustomCollection = /** @class */ (function (_super) {
93
93
  CustomCollection.HAS_ONE = {};
94
94
  CustomCollection.HAS_MANY = {};
95
95
  CustomCollection.PATHS = [
96
- { http_method: "get", operation: "get", ids: [], path: "custom_collections.json" },
97
- { http_method: "post", operation: "post", ids: [], path: "custom_collections.json" },
98
- { http_method: "get", operation: "count", ids: [], path: "custom_collections/count.json" },
99
- { http_method: "get", operation: "get", ids: ["id"], path: "custom_collections/<id>.json" },
100
- { http_method: "put", operation: "put", ids: ["id"], path: "custom_collections/<id>.json" },
101
- { http_method: "delete", operation: "delete", ids: ["id"], path: "custom_collections/<id>.json" }
96
+ { "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "custom_collections/<id>.json" },
97
+ { "http_method": "get", "operation": "count", "ids": [], "path": "custom_collections/count.json" },
98
+ { "http_method": "get", "operation": "get", "ids": [], "path": "custom_collections.json" },
99
+ { "http_method": "get", "operation": "get", "ids": ["id"], "path": "custom_collections/<id>.json" },
100
+ { "http_method": "post", "operation": "post", "ids": [], "path": "custom_collections.json" },
101
+ { "http_method": "put", "operation": "put", "ids": ["id"], "path": "custom_collections/<id>.json" }
102
102
  ];
103
103
  return CustomCollection;
104
104
  }(base_rest_resource_1.default));
@@ -1,17 +1,12 @@
1
1
  import Base, { ResourcePath } from '../../base-rest-resource';
2
2
  import { SessionInterface } from '../../auth/session/types';
3
3
  import { ApiVersion } from '../../base-types';
4
- import { Currency } from './currency';
5
4
  import { Metafield } from './metafield';
6
5
  interface FindArgs {
7
6
  session: SessionInterface;
8
7
  id: number | string;
9
8
  fields?: unknown;
10
9
  }
11
- interface DeleteArgs {
12
- session: SessionInterface;
13
- id: number | string;
14
- }
15
10
  interface AllArgs {
16
11
  [key: string]: unknown;
17
12
  session: SessionInterface;
@@ -24,14 +19,6 @@ interface AllArgs {
24
19
  limit?: unknown;
25
20
  fields?: unknown;
26
21
  }
27
- interface SearchArgs {
28
- [key: string]: unknown;
29
- session: SessionInterface;
30
- order?: unknown;
31
- query?: unknown;
32
- limit?: unknown;
33
- fields?: unknown;
34
- }
35
22
  interface CountArgs {
36
23
  [key: string]: unknown;
37
24
  session: SessionInterface;
@@ -40,6 +27,15 @@ interface OrdersArgs {
40
27
  [key: string]: unknown;
41
28
  session: SessionInterface;
42
29
  id: number | string;
30
+ status?: unknown;
31
+ }
32
+ interface SearchArgs {
33
+ [key: string]: unknown;
34
+ session: SessionInterface;
35
+ order?: unknown;
36
+ query?: unknown;
37
+ limit?: unknown;
38
+ fields?: unknown;
43
39
  }
44
40
  interface AccountActivationUrlArgs {
45
41
  [key: string]: unknown;
@@ -65,11 +61,10 @@ export declare class Customer extends Base {
65
61
  };
66
62
  protected static PATHS: ResourcePath[];
67
63
  static find({ session, id, fields }: FindArgs): Promise<Customer | null>;
68
- static delete({ session, id }: DeleteArgs): Promise<unknown>;
69
64
  static all({ session, ids, since_id, created_at_min, created_at_max, updated_at_min, updated_at_max, limit, fields, ...otherArgs }: AllArgs): Promise<Customer[]>;
70
- static search({ session, order, query, limit, fields, ...otherArgs }: SearchArgs): Promise<unknown>;
71
65
  static count({ session, ...otherArgs }: CountArgs): Promise<unknown>;
72
- static orders({ session, id, ...otherArgs }: OrdersArgs): Promise<unknown>;
66
+ static orders({ session, id, status, ...otherArgs }: OrdersArgs): Promise<unknown>;
67
+ static search({ session, order, query, limit, fields, ...otherArgs }: SearchArgs): Promise<unknown>;
73
68
  account_activation_url({ body, ...otherArgs }: AccountActivationUrlArgs): Promise<unknown>;
74
69
  send_invite({ body, ...otherArgs }: SendInviteArgs): Promise<unknown>;
75
70
  accepts_marketing: boolean | null;
@@ -78,9 +73,7 @@ export declare class Customer extends Base {
78
73
  [key: string]: unknown;
79
74
  }[] | null;
80
75
  created_at: string | null;
81
- currency: Currency | null | {
82
- [key: string]: any;
83
- };
76
+ currency: string | null;
84
77
  default_address: {
85
78
  [key: string]: unknown;
86
79
  } | null;
@@ -1 +1 @@
1
- {"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-10/customer.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,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
4
  var tslib_1 = require("tslib");
5
5
  var base_rest_resource_1 = tslib_1.__importDefault(require("../../base-rest-resource"));
6
6
  var base_types_1 = require("../../base-types");
7
- var currency_1 = require("./currency");
8
7
  var metafield_1 = require("./metafield");
9
8
  var Customer = /** @class */ (function (_super) {
10
9
  tslib_1.__extends(Customer, _super);
@@ -19,8 +18,8 @@ var Customer = /** @class */ (function (_super) {
19
18
  switch (_c.label) {
20
19
  case 0: return [4 /*yield*/, Customer.baseFind({
21
20
  session: session,
22
- urlIds: { id: id },
23
- params: { fields: fields },
21
+ urlIds: { "id": id },
22
+ params: { "fields": fields },
24
23
  })];
25
24
  case 1:
26
25
  result = _c.sent();
@@ -29,26 +28,6 @@ var Customer = /** @class */ (function (_super) {
29
28
  });
30
29
  });
31
30
  };
32
- Customer.delete = function (_a) {
33
- var session = _a.session, id = _a.id;
34
- return tslib_1.__awaiter(this, void 0, void 0, function () {
35
- var response;
36
- return tslib_1.__generator(this, function (_b) {
37
- switch (_b.label) {
38
- case 0: return [4 /*yield*/, Customer.request({
39
- http_method: "delete",
40
- operation: "delete",
41
- session: session,
42
- urlIds: { id: id },
43
- params: {},
44
- })];
45
- case 1:
46
- response = _b.sent();
47
- return [2 /*return*/, response ? response.body : null];
48
- }
49
- });
50
- });
51
- };
52
31
  Customer.all = function (_a) {
53
32
  var session = _a.session, _b = _a.ids, ids = _b === void 0 ? null : _b, _c = _a.since_id, since_id = _c === void 0 ? null : _c, _d = _a.created_at_min, created_at_min = _d === void 0 ? null : _d, _e = _a.created_at_max, created_at_max = _e === void 0 ? null : _e, _f = _a.updated_at_min, updated_at_min = _f === void 0 ? null : _f, _g = _a.updated_at_max, updated_at_max = _g === void 0 ? null : _g, _h = _a.limit, limit = _h === void 0 ? null : _h, _j = _a.fields, fields = _j === void 0 ? null : _j, otherArgs = tslib_1.__rest(_a, ["session", "ids", "since_id", "created_at_min", "created_at_max", "updated_at_min", "updated_at_max", "limit", "fields"]);
54
33
  return tslib_1.__awaiter(this, void 0, void 0, function () {
@@ -58,7 +37,7 @@ var Customer = /** @class */ (function (_super) {
58
37
  case 0: return [4 /*yield*/, Customer.baseFind({
59
38
  session: session,
60
39
  urlIds: {},
61
- params: tslib_1.__assign({ ids: ids, since_id: since_id, created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max, limit: limit, fields: fields }, otherArgs),
40
+ params: tslib_1.__assign({ "ids": ids, "since_id": since_id, "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "limit": limit, "fields": fields }, otherArgs),
62
41
  })];
63
42
  case 1:
64
43
  response = _k.sent();
@@ -67,67 +46,67 @@ var Customer = /** @class */ (function (_super) {
67
46
  });
68
47
  });
69
48
  };
70
- Customer.search = function (_a) {
71
- var session = _a.session, _b = _a.order, order = _b === void 0 ? null : _b, _c = _a.query, query = _c === void 0 ? null : _c, _d = _a.limit, limit = _d === void 0 ? null : _d, _e = _a.fields, fields = _e === void 0 ? null : _e, otherArgs = tslib_1.__rest(_a, ["session", "order", "query", "limit", "fields"]);
49
+ Customer.count = function (_a) {
50
+ var session = _a.session, otherArgs = tslib_1.__rest(_a, ["session"]);
72
51
  return tslib_1.__awaiter(this, void 0, void 0, function () {
73
52
  var response;
74
- return tslib_1.__generator(this, function (_f) {
75
- switch (_f.label) {
53
+ return tslib_1.__generator(this, function (_b) {
54
+ switch (_b.label) {
76
55
  case 0: return [4 /*yield*/, Customer.request({
77
56
  http_method: "get",
78
- operation: "search",
57
+ operation: "count",
79
58
  session: session,
80
59
  urlIds: {},
81
- params: tslib_1.__assign({ order: order, query: query, limit: limit, fields: fields }, otherArgs),
60
+ params: tslib_1.__assign({}, otherArgs),
82
61
  body: {},
83
62
  entity: null,
84
63
  })];
85
64
  case 1:
86
- response = _f.sent();
65
+ response = _b.sent();
87
66
  return [2 /*return*/, response ? response.body : null];
88
67
  }
89
68
  });
90
69
  });
91
70
  };
92
- Customer.count = function (_a) {
93
- var session = _a.session, otherArgs = tslib_1.__rest(_a, ["session"]);
71
+ Customer.orders = function (_a) {
72
+ var session = _a.session, id = _a.id, _b = _a.status, status = _b === void 0 ? null : _b, otherArgs = tslib_1.__rest(_a, ["session", "id", "status"]);
94
73
  return tslib_1.__awaiter(this, void 0, void 0, function () {
95
74
  var response;
96
- return tslib_1.__generator(this, function (_b) {
97
- switch (_b.label) {
75
+ return tslib_1.__generator(this, function (_c) {
76
+ switch (_c.label) {
98
77
  case 0: return [4 /*yield*/, Customer.request({
99
78
  http_method: "get",
100
- operation: "count",
79
+ operation: "orders",
101
80
  session: session,
102
- urlIds: {},
103
- params: tslib_1.__assign({}, otherArgs),
81
+ urlIds: { "id": id },
82
+ params: tslib_1.__assign({ "status": status }, otherArgs),
104
83
  body: {},
105
84
  entity: null,
106
85
  })];
107
86
  case 1:
108
- response = _b.sent();
87
+ response = _c.sent();
109
88
  return [2 /*return*/, response ? response.body : null];
110
89
  }
111
90
  });
112
91
  });
113
92
  };
114
- Customer.orders = function (_a) {
115
- var session = _a.session, id = _a.id, otherArgs = tslib_1.__rest(_a, ["session", "id"]);
93
+ Customer.search = function (_a) {
94
+ var session = _a.session, _b = _a.order, order = _b === void 0 ? null : _b, _c = _a.query, query = _c === void 0 ? null : _c, _d = _a.limit, limit = _d === void 0 ? null : _d, _e = _a.fields, fields = _e === void 0 ? null : _e, otherArgs = tslib_1.__rest(_a, ["session", "order", "query", "limit", "fields"]);
116
95
  return tslib_1.__awaiter(this, void 0, void 0, function () {
117
96
  var response;
118
- return tslib_1.__generator(this, function (_b) {
119
- switch (_b.label) {
97
+ return tslib_1.__generator(this, function (_f) {
98
+ switch (_f.label) {
120
99
  case 0: return [4 /*yield*/, Customer.request({
121
100
  http_method: "get",
122
- operation: "orders",
101
+ operation: "search",
123
102
  session: session,
124
- urlIds: { id: id },
125
- params: tslib_1.__assign({}, otherArgs),
103
+ urlIds: {},
104
+ params: tslib_1.__assign({ "order": order, "query": query, "limit": limit, "fields": fields }, otherArgs),
126
105
  body: {},
127
106
  entity: null,
128
107
  })];
129
108
  case 1:
130
- response = _b.sent();
109
+ response = _f.sent();
131
110
  return [2 /*return*/, response ? response.body : null];
132
111
  }
133
112
  });
@@ -143,7 +122,7 @@ var Customer = /** @class */ (function (_super) {
143
122
  http_method: "post",
144
123
  operation: "account_activation_url",
145
124
  session: this.session,
146
- urlIds: { id: this.id },
125
+ urlIds: { "id": this.id },
147
126
  params: tslib_1.__assign({}, otherArgs),
148
127
  body: body,
149
128
  entity: this,
@@ -165,7 +144,7 @@ var Customer = /** @class */ (function (_super) {
165
144
  http_method: "post",
166
145
  operation: "send_invite",
167
146
  session: this.session,
168
- urlIds: { id: this.id },
147
+ urlIds: { "id": this.id },
169
148
  params: tslib_1.__assign({}, otherArgs),
170
149
  body: body,
171
150
  entity: this,
@@ -181,21 +160,19 @@ var Customer = /** @class */ (function (_super) {
181
160
  Customer.NAME = 'customer';
182
161
  Customer.PLURAL_NAME = 'customers';
183
162
  Customer.HAS_ONE = {
184
- currency: currency_1.Currency,
185
- metafield: metafield_1.Metafield
163
+ "metafield": metafield_1.Metafield
186
164
  };
187
165
  Customer.HAS_MANY = {};
188
166
  Customer.PATHS = [
189
- { http_method: "get", operation: "get", ids: [], path: "customers.json" },
190
- { http_method: "post", operation: "post", ids: [], path: "customers.json" },
191
- { http_method: "get", operation: "search", ids: [], path: "customers/search.json" },
192
- { http_method: "get", operation: "get", ids: ["id"], path: "customers/<id>.json" },
193
- { http_method: "put", operation: "put", ids: ["id"], path: "customers/<id>.json" },
194
- { http_method: "delete", operation: "delete", ids: ["id"], path: "customers/<id>.json" },
195
- { http_method: "post", operation: "account_activation_url", ids: ["id"], path: "customers/<id>/account_activation_url.json" },
196
- { http_method: "post", operation: "send_invite", ids: ["id"], path: "customers/<id>/send_invite.json" },
197
- { http_method: "get", operation: "count", ids: [], path: "customers/count.json" },
198
- { http_method: "get", operation: "orders", ids: ["id"], path: "customers/<id>/orders.json" }
167
+ { "http_method": "get", "operation": "count", "ids": [], "path": "customers/count.json" },
168
+ { "http_method": "get", "operation": "get", "ids": [], "path": "customers.json" },
169
+ { "http_method": "get", "operation": "get", "ids": ["id"], "path": "customers/<id>.json" },
170
+ { "http_method": "get", "operation": "orders", "ids": ["id"], "path": "customers/<id>/orders.json" },
171
+ { "http_method": "get", "operation": "search", "ids": [], "path": "customers/search.json" },
172
+ { "http_method": "post", "operation": "account_activation_url", "ids": ["id"], "path": "customers/<id>/account_activation_url.json" },
173
+ { "http_method": "post", "operation": "post", "ids": [], "path": "customers.json" },
174
+ { "http_method": "post", "operation": "send_invite", "ids": ["id"], "path": "customers/<id>/send_invite.json" },
175
+ { "http_method": "put", "operation": "put", "ids": ["id"], "path": "customers/<id>.json" }
199
176
  ];
200
177
  return Customer;
201
178
  }(base_rest_resource_1.default));
@@ -16,16 +16,16 @@ interface AllArgs {
16
16
  session: SessionInterface;
17
17
  customer_id?: number | string | null;
18
18
  }
19
- interface SetArgs {
19
+ interface DefaultArgs {
20
20
  [key: string]: unknown;
21
- address_ids?: unknown[] | number | string | null;
22
- operation?: unknown;
23
21
  body?: {
24
22
  [key: string]: unknown;
25
23
  } | null;
26
24
  }
27
- interface DefaultArgs {
25
+ interface SetArgs {
28
26
  [key: string]: unknown;
27
+ address_ids?: unknown[] | number | string | null;
28
+ operation?: unknown;
29
29
  body?: {
30
30
  [key: string]: unknown;
31
31
  } | null;
@@ -45,8 +45,8 @@ export declare class CustomerAddress extends Base {
45
45
  static find({ session, id, customer_id }: FindArgs): Promise<CustomerAddress | null>;
46
46
  static delete({ session, id, customer_id }: DeleteArgs): Promise<unknown>;
47
47
  static all({ session, customer_id, ...otherArgs }: AllArgs): Promise<CustomerAddress[]>;
48
- set({ address_ids, operation, body, ...otherArgs }: SetArgs): Promise<unknown>;
49
48
  default({ body, ...otherArgs }: DefaultArgs): Promise<unknown>;
49
+ set({ address_ids, operation, body, ...otherArgs }: SetArgs): Promise<unknown>;
50
50
  address1: string | null;
51
51
  address2: string | null;
52
52
  city: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"customer_address.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-10/customer_address.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,UAAU,QAAQ;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACtC;AACD,UAAU,UAAU;IAClB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACtC;AACD,UAAU,OAAO;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACtC;AACD,UAAU,OAAO;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC;CACxC;AACD,UAAU,WAAW;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC;CACxC;AAED,qBAA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ClB,EACE,IAAW,EACX,GAAG,SAAS,EACb,EAAE,WAAW,GACb,OAAO,CAAC,OAAO,CAAC;IAcN,GAAG,CACd,EACE,WAAkB,EAClB,SAAgB,EAChB,IAAW,EACX,GAAG,SAAS,EACb,EAAE,OAAO,GACT,OAAO,CAAC,OAAO,CAAC;IAcZ,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B"}
@@ -20,7 +20,7 @@ var CustomerAddress = /** @class */ (function (_super) {
20
20
  switch (_c.label) {
21
21
  case 0: return [4 /*yield*/, CustomerAddress.baseFind({
22
22
  session: session,
23
- urlIds: { id: id, customer_id: customer_id },
23
+ urlIds: { "id": id, "customer_id": customer_id },
24
24
  params: {},
25
25
  })];
26
26
  case 1:
@@ -40,7 +40,7 @@ var CustomerAddress = /** @class */ (function (_super) {
40
40
  http_method: "delete",
41
41
  operation: "delete",
42
42
  session: session,
43
- urlIds: { id: id, customer_id: customer_id },
43
+ urlIds: { "id": id, "customer_id": customer_id },
44
44
  params: {},
45
45
  })];
46
46
  case 1:
@@ -58,7 +58,7 @@ var CustomerAddress = /** @class */ (function (_super) {
58
58
  switch (_c.label) {
59
59
  case 0: return [4 /*yield*/, CustomerAddress.baseFind({
60
60
  session: session,
61
- urlIds: { customer_id: customer_id },
61
+ urlIds: { "customer_id": customer_id },
62
62
  params: tslib_1.__assign({}, otherArgs),
63
63
  })];
64
64
  case 1:
@@ -68,45 +68,45 @@ var CustomerAddress = /** @class */ (function (_super) {
68
68
  });
69
69
  });
70
70
  };
71
- CustomerAddress.prototype.set = function (_a) {
72
- var _b = _a.address_ids, address_ids = _b === void 0 ? null : _b, _c = _a.operation, operation = _c === void 0 ? null : _c, _d = _a.body, body = _d === void 0 ? null : _d, otherArgs = tslib_1.__rest(_a, ["address_ids", "operation", "body"]);
71
+ CustomerAddress.prototype.default = function (_a) {
72
+ var _b = _a.body, body = _b === void 0 ? null : _b, otherArgs = tslib_1.__rest(_a, ["body"]);
73
73
  return tslib_1.__awaiter(this, void 0, void 0, function () {
74
74
  var response;
75
- return tslib_1.__generator(this, function (_e) {
76
- switch (_e.label) {
75
+ return tslib_1.__generator(this, function (_c) {
76
+ switch (_c.label) {
77
77
  case 0: return [4 /*yield*/, CustomerAddress.request({
78
78
  http_method: "put",
79
- operation: "set",
79
+ operation: "default",
80
80
  session: this.session,
81
- urlIds: { customer_id: this.customer_id },
82
- params: tslib_1.__assign({ address_ids: address_ids, operation: operation }, otherArgs),
81
+ urlIds: { "id": this.id, "customer_id": this.customer_id },
82
+ params: tslib_1.__assign({}, otherArgs),
83
83
  body: body,
84
84
  entity: this,
85
85
  })];
86
86
  case 1:
87
- response = _e.sent();
87
+ response = _c.sent();
88
88
  return [2 /*return*/, response ? response.body : null];
89
89
  }
90
90
  });
91
91
  });
92
92
  };
93
- CustomerAddress.prototype.default = function (_a) {
94
- var _b = _a.body, body = _b === void 0 ? null : _b, otherArgs = tslib_1.__rest(_a, ["body"]);
93
+ CustomerAddress.prototype.set = function (_a) {
94
+ var _b = _a.address_ids, address_ids = _b === void 0 ? null : _b, _c = _a.operation, operation = _c === void 0 ? null : _c, _d = _a.body, body = _d === void 0 ? null : _d, otherArgs = tslib_1.__rest(_a, ["address_ids", "operation", "body"]);
95
95
  return tslib_1.__awaiter(this, void 0, void 0, function () {
96
96
  var response;
97
- return tslib_1.__generator(this, function (_c) {
98
- switch (_c.label) {
97
+ return tslib_1.__generator(this, function (_e) {
98
+ switch (_e.label) {
99
99
  case 0: return [4 /*yield*/, CustomerAddress.request({
100
100
  http_method: "put",
101
- operation: "default",
101
+ operation: "set",
102
102
  session: this.session,
103
- urlIds: { id: this.id, customer_id: this.customer_id },
104
- params: tslib_1.__assign({}, otherArgs),
103
+ urlIds: { "customer_id": this.customer_id },
104
+ params: tslib_1.__assign({ "address_ids": address_ids, "operation": operation }, otherArgs),
105
105
  body: body,
106
106
  entity: this,
107
107
  })];
108
108
  case 1:
109
- response = _c.sent();
109
+ response = _e.sent();
110
110
  return [2 /*return*/, response ? response.body : null];
111
111
  }
112
112
  });
@@ -118,13 +118,13 @@ var CustomerAddress = /** @class */ (function (_super) {
118
118
  CustomerAddress.HAS_ONE = {};
119
119
  CustomerAddress.HAS_MANY = {};
120
120
  CustomerAddress.PATHS = [
121
- { http_method: "get", operation: "get", ids: ["customer_id"], path: "customers/<customer_id>/addresses.json" },
122
- { http_method: "post", operation: "post", ids: ["customer_id"], path: "customers/<customer_id>/addresses.json" },
123
- { http_method: "get", operation: "get", ids: ["customer_id", "id"], path: "customers/<customer_id>/addresses/<id>.json" },
124
- { http_method: "put", operation: "put", ids: ["customer_id", "id"], path: "customers/<customer_id>/addresses/<id>.json" },
125
- { http_method: "delete", operation: "delete", ids: ["customer_id", "id"], path: "customers/<customer_id>/addresses/<id>.json" },
126
- { http_method: "put", operation: "set", ids: ["customer_id"], path: "customers/<customer_id>/addresses/set.json" },
127
- { http_method: "put", operation: "default", ids: ["customer_id", "id"], path: "customers/<customer_id>/addresses/<id>/default.json" }
121
+ { "http_method": "delete", "operation": "delete", "ids": ["customer_id", "id"], "path": "customers/<customer_id>/addresses/<id>.json" },
122
+ { "http_method": "get", "operation": "get", "ids": ["customer_id"], "path": "customers/<customer_id>/addresses.json" },
123
+ { "http_method": "get", "operation": "get", "ids": ["customer_id", "id"], "path": "customers/<customer_id>/addresses/<id>.json" },
124
+ { "http_method": "post", "operation": "post", "ids": ["customer_id"], "path": "customers/<customer_id>/addresses.json" },
125
+ { "http_method": "put", "operation": "default", "ids": ["customer_id", "id"], "path": "customers/<customer_id>/addresses/<id>/default.json" },
126
+ { "http_method": "put", "operation": "put", "ids": ["customer_id", "id"], "path": "customers/<customer_id>/addresses/<id>.json" },
127
+ { "http_method": "put", "operation": "set", "ids": ["customer_id"], "path": "customers/<customer_id>/addresses/set.json" }
128
128
  ];
129
129
  return CustomerAddress;
130
130
  }(base_rest_resource_1.default));
@@ -17,8 +17,8 @@ var CustomerSavedSearch = /** @class */ (function (_super) {
17
17
  switch (_c.label) {
18
18
  case 0: return [4 /*yield*/, CustomerSavedSearch.baseFind({
19
19
  session: session,
20
- urlIds: { id: id },
21
- params: { fields: fields },
20
+ urlIds: { "id": id },
21
+ params: { "fields": fields },
22
22
  })];
23
23
  case 1:
24
24
  result = _c.sent();
@@ -37,7 +37,7 @@ var CustomerSavedSearch = /** @class */ (function (_super) {
37
37
  http_method: "delete",
38
38
  operation: "delete",
39
39
  session: session,
40
- urlIds: { id: id },
40
+ urlIds: { "id": id },
41
41
  params: {},
42
42
  })];
43
43
  case 1:
@@ -56,7 +56,7 @@ var CustomerSavedSearch = /** @class */ (function (_super) {
56
56
  case 0: return [4 /*yield*/, CustomerSavedSearch.baseFind({
57
57
  session: session,
58
58
  urlIds: {},
59
- params: tslib_1.__assign({ limit: limit, since_id: since_id, fields: fields }, otherArgs),
59
+ params: tslib_1.__assign({ "limit": limit, "since_id": since_id, "fields": fields }, otherArgs),
60
60
  })];
61
61
  case 1:
62
62
  response = _e.sent();
@@ -76,7 +76,7 @@ var CustomerSavedSearch = /** @class */ (function (_super) {
76
76
  operation: "count",
77
77
  session: session,
78
78
  urlIds: {},
79
- params: tslib_1.__assign({ since_id: since_id }, otherArgs),
79
+ params: tslib_1.__assign({ "since_id": since_id }, otherArgs),
80
80
  body: {},
81
81
  entity: null,
82
82
  })];
@@ -97,8 +97,8 @@ var CustomerSavedSearch = /** @class */ (function (_super) {
97
97
  http_method: "get",
98
98
  operation: "customers",
99
99
  session: session,
100
- urlIds: { id: id },
101
- params: tslib_1.__assign({ order: order, limit: limit, fields: fields }, otherArgs),
100
+ urlIds: { "id": id },
101
+ params: tslib_1.__assign({ "order": order, "limit": limit, "fields": fields }, otherArgs),
102
102
  body: {},
103
103
  entity: null,
104
104
  })];
@@ -115,13 +115,13 @@ var CustomerSavedSearch = /** @class */ (function (_super) {
115
115
  CustomerSavedSearch.HAS_ONE = {};
116
116
  CustomerSavedSearch.HAS_MANY = {};
117
117
  CustomerSavedSearch.PATHS = [
118
- { http_method: "get", operation: "get", ids: [], path: "customer_saved_searches.json" },
119
- { http_method: "post", operation: "post", ids: [], path: "customer_saved_searches.json" },
120
- { http_method: "get", operation: "count", ids: [], path: "customer_saved_searches/count.json" },
121
- { http_method: "get", operation: "get", ids: ["id"], path: "customer_saved_searches/<id>.json" },
122
- { http_method: "put", operation: "put", ids: ["id"], path: "customer_saved_searches/<id>.json" },
123
- { http_method: "delete", operation: "delete", ids: ["id"], path: "customer_saved_searches/<id>.json" },
124
- { http_method: "get", operation: "customers", ids: ["id"], path: "customer_saved_searches/<id>/customers.json" }
118
+ { "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "customer_saved_searches/<id>.json" },
119
+ { "http_method": "get", "operation": "count", "ids": [], "path": "customer_saved_searches/count.json" },
120
+ { "http_method": "get", "operation": "customers", "ids": ["id"], "path": "customer_saved_searches/<id>/customers.json" },
121
+ { "http_method": "get", "operation": "get", "ids": [], "path": "customer_saved_searches.json" },
122
+ { "http_method": "get", "operation": "get", "ids": ["id"], "path": "customer_saved_searches/<id>.json" },
123
+ { "http_method": "post", "operation": "post", "ids": [], "path": "customer_saved_searches.json" },
124
+ { "http_method": "put", "operation": "put", "ids": ["id"], "path": "customer_saved_searches/<id>.json" }
125
125
  ];
126
126
  return CustomerSavedSearch;
127
127
  }(base_rest_resource_1.default));
@@ -33,7 +33,7 @@ var DeprecatedApiCall = /** @class */ (function (_super) {
33
33
  DeprecatedApiCall.HAS_ONE = {};
34
34
  DeprecatedApiCall.HAS_MANY = {};
35
35
  DeprecatedApiCall.PATHS = [
36
- { http_method: "get", operation: "get", ids: [], path: "deprecated_api_calls.json" }
36
+ { "http_method": "get", "operation": "get", "ids": [], "path": "deprecated_api_calls.json" }
37
37
  ];
38
38
  return DeprecatedApiCall;
39
39
  }(base_rest_resource_1.default));