@shopify/shopify-api 3.0.0-rc.2 → 3.0.1

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 (520) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/__tests__/fake-resource.d.ts +1 -0
  3. package/dist/__tests__/fake-resource.d.ts.map +1 -1
  4. package/dist/__tests__/fake-resource.js +1 -0
  5. package/dist/auth/oauth/oauth.d.ts.map +1 -1
  6. package/dist/auth/oauth/oauth.js +2 -5
  7. package/dist/base-rest-resource.d.ts +1 -0
  8. package/dist/base-rest-resource.d.ts.map +1 -1
  9. package/dist/base-rest-resource.js +4 -2
  10. package/dist/base-types.d.ts +0 -1
  11. package/dist/base-types.d.ts.map +1 -1
  12. package/dist/base-types.js +0 -1
  13. package/dist/clients/http_client/http_client.d.ts.map +1 -1
  14. package/dist/clients/http_client/http_client.js +0 -4
  15. package/dist/rest-resources/2021-07/abandoned_checkout.d.ts +2 -2
  16. package/dist/rest-resources/2021-07/abandoned_checkout.d.ts.map +1 -1
  17. package/dist/rest-resources/2021-07/abandoned_checkout.js +2 -3
  18. package/dist/rest-resources/2021-07/android_pay_key.js +2 -2
  19. package/dist/rest-resources/2021-07/apple_pay_certificate.js +4 -4
  20. package/dist/rest-resources/2021-07/application_charge.js +2 -2
  21. package/dist/rest-resources/2021-07/application_credit.js +2 -2
  22. package/dist/rest-resources/2021-07/article.d.ts +5 -5
  23. package/dist/rest-resources/2021-07/article.d.ts.map +1 -1
  24. package/dist/rest-resources/2021-07/article.js +22 -22
  25. package/dist/rest-resources/2021-07/asset.js +2 -2
  26. package/dist/rest-resources/2021-07/blog.js +4 -4
  27. package/dist/rest-resources/2021-07/cancellation_request.js +1 -1
  28. package/dist/rest-resources/2021-07/carrier_service.js +3 -3
  29. package/dist/rest-resources/2021-07/checkout.d.ts +2 -0
  30. package/dist/rest-resources/2021-07/checkout.d.ts.map +1 -1
  31. package/dist/rest-resources/2021-07/checkout.js +4 -4
  32. package/dist/rest-resources/2021-07/collect.js +3 -3
  33. package/dist/rest-resources/2021-07/collection_listing.js +3 -3
  34. package/dist/rest-resources/2021-07/comment.d.ts +6 -6
  35. package/dist/rest-resources/2021-07/comment.d.ts.map +1 -1
  36. package/dist/rest-resources/2021-07/comment.js +14 -14
  37. package/dist/rest-resources/2021-07/country.js +4 -4
  38. package/dist/rest-resources/2021-07/custom_collection.js +4 -4
  39. package/dist/rest-resources/2021-07/customer.d.ts +11 -10
  40. package/dist/rest-resources/2021-07/customer.d.ts.map +1 -1
  41. package/dist/rest-resources/2021-07/customer.js +28 -28
  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 +20 -20
  45. package/dist/rest-resources/2021-07/customer_saved_search.js +5 -5
  46. package/dist/rest-resources/2021-07/discount_code.d.ts +6 -6
  47. package/dist/rest-resources/2021-07/discount_code.d.ts.map +1 -1
  48. package/dist/rest-resources/2021-07/discount_code.js +28 -28
  49. package/dist/rest-resources/2021-07/draft_order.d.ts +1 -0
  50. package/dist/rest-resources/2021-07/draft_order.d.ts.map +1 -1
  51. package/dist/rest-resources/2021-07/draft_order.js +5 -5
  52. package/dist/rest-resources/2021-07/event.js +1 -1
  53. package/dist/rest-resources/2021-07/fulfillment.d.ts +2 -23
  54. package/dist/rest-resources/2021-07/fulfillment.d.ts.map +1 -1
  55. package/dist/rest-resources/2021-07/fulfillment.js +5 -78
  56. package/dist/rest-resources/2021-07/fulfillment_event.js +2 -2
  57. package/dist/rest-resources/2021-07/fulfillment_order.js +1 -1
  58. package/dist/rest-resources/2021-07/fulfillment_request.js +1 -1
  59. package/dist/rest-resources/2021-07/fulfillment_service.js +3 -3
  60. package/dist/rest-resources/2021-07/gift_card.js +4 -4
  61. package/dist/rest-resources/2021-07/gift_card_adjustment.js +2 -2
  62. package/dist/rest-resources/2021-07/image.js +4 -4
  63. package/dist/rest-resources/2021-07/inventory_level.js +1 -1
  64. package/dist/rest-resources/2021-07/location.js +1 -1
  65. package/dist/rest-resources/2021-07/marketing_event.js +5 -5
  66. package/dist/rest-resources/2021-07/metafield.d.ts +54 -5
  67. package/dist/rest-resources/2021-07/metafield.d.ts.map +1 -1
  68. package/dist/rest-resources/2021-07/metafield.js +84 -24
  69. package/dist/rest-resources/2021-07/mobile_platform_application.js +3 -3
  70. package/dist/rest-resources/2021-07/order.d.ts +12 -10
  71. package/dist/rest-resources/2021-07/order.d.ts.map +1 -1
  72. package/dist/rest-resources/2021-07/order.js +21 -21
  73. package/dist/rest-resources/2021-07/order_risk.js +3 -3
  74. package/dist/rest-resources/2021-07/page.js +4 -4
  75. package/dist/rest-resources/2021-07/payment.js +2 -2
  76. package/dist/rest-resources/2021-07/payment_gateway.js +3 -3
  77. package/dist/rest-resources/2021-07/price_rule.js +4 -4
  78. package/dist/rest-resources/2021-07/product.js +4 -4
  79. package/dist/rest-resources/2021-07/product_listing.d.ts +4 -4
  80. package/dist/rest-resources/2021-07/product_listing.d.ts.map +1 -1
  81. package/dist/rest-resources/2021-07/product_listing.js +18 -18
  82. package/dist/rest-resources/2021-07/product_resource_feedback.js +2 -2
  83. package/dist/rest-resources/2021-07/province.js +1 -1
  84. package/dist/rest-resources/2021-07/recurring_application_charge.js +2 -2
  85. package/dist/rest-resources/2021-07/redirect.js +4 -4
  86. package/dist/rest-resources/2021-07/refund.js +2 -2
  87. package/dist/rest-resources/2021-07/report.js +3 -3
  88. package/dist/rest-resources/2021-07/resource_feedback.js +2 -2
  89. package/dist/rest-resources/2021-07/script_tag.js +4 -4
  90. package/dist/rest-resources/2021-07/shop.d.ts +1 -0
  91. package/dist/rest-resources/2021-07/shop.d.ts.map +1 -1
  92. package/dist/rest-resources/2021-07/smart_collection.js +5 -5
  93. package/dist/rest-resources/2021-07/storefront_access_token.js +2 -2
  94. package/dist/rest-resources/2021-07/theme.js +3 -3
  95. package/dist/rest-resources/2021-07/transaction.js +3 -3
  96. package/dist/rest-resources/2021-07/usage_charge.js +2 -2
  97. package/dist/rest-resources/2021-07/user.js +2 -2
  98. package/dist/rest-resources/2021-07/variant.d.ts +1 -0
  99. package/dist/rest-resources/2021-07/variant.d.ts.map +1 -1
  100. package/dist/rest-resources/2021-07/variant.js +7 -3
  101. package/dist/rest-resources/2021-07/webhook.js +4 -4
  102. package/dist/rest-resources/2021-10/abandoned_checkout.d.ts +2 -2
  103. package/dist/rest-resources/2021-10/abandoned_checkout.d.ts.map +1 -1
  104. package/dist/rest-resources/2021-10/abandoned_checkout.js +2 -3
  105. package/dist/rest-resources/2021-10/android_pay_key.js +2 -2
  106. package/dist/rest-resources/2021-10/apple_pay_certificate.js +4 -4
  107. package/dist/rest-resources/2021-10/application_charge.js +2 -2
  108. package/dist/rest-resources/2021-10/application_credit.js +2 -2
  109. package/dist/rest-resources/2021-10/article.d.ts +5 -5
  110. package/dist/rest-resources/2021-10/article.d.ts.map +1 -1
  111. package/dist/rest-resources/2021-10/article.js +22 -22
  112. package/dist/rest-resources/2021-10/asset.js +2 -2
  113. package/dist/rest-resources/2021-10/blog.js +4 -4
  114. package/dist/rest-resources/2021-10/cancellation_request.js +1 -1
  115. package/dist/rest-resources/2021-10/carrier_service.js +3 -3
  116. package/dist/rest-resources/2021-10/checkout.d.ts +2 -0
  117. package/dist/rest-resources/2021-10/checkout.d.ts.map +1 -1
  118. package/dist/rest-resources/2021-10/checkout.js +4 -4
  119. package/dist/rest-resources/2021-10/collect.js +3 -3
  120. package/dist/rest-resources/2021-10/collection_listing.js +3 -3
  121. package/dist/rest-resources/2021-10/comment.d.ts +6 -6
  122. package/dist/rest-resources/2021-10/comment.d.ts.map +1 -1
  123. package/dist/rest-resources/2021-10/comment.js +14 -14
  124. package/dist/rest-resources/2021-10/country.js +4 -4
  125. package/dist/rest-resources/2021-10/custom_collection.js +4 -4
  126. package/dist/rest-resources/2021-10/customer.d.ts +11 -10
  127. package/dist/rest-resources/2021-10/customer.d.ts.map +1 -1
  128. package/dist/rest-resources/2021-10/customer.js +28 -28
  129. package/dist/rest-resources/2021-10/customer_address.d.ts +5 -5
  130. package/dist/rest-resources/2021-10/customer_address.d.ts.map +1 -1
  131. package/dist/rest-resources/2021-10/customer_address.js +20 -20
  132. package/dist/rest-resources/2021-10/customer_saved_search.js +5 -5
  133. package/dist/rest-resources/2021-10/discount_code.d.ts +6 -6
  134. package/dist/rest-resources/2021-10/discount_code.d.ts.map +1 -1
  135. package/dist/rest-resources/2021-10/discount_code.js +28 -28
  136. package/dist/rest-resources/2021-10/draft_order.d.ts +1 -0
  137. package/dist/rest-resources/2021-10/draft_order.d.ts.map +1 -1
  138. package/dist/rest-resources/2021-10/draft_order.js +5 -5
  139. package/dist/rest-resources/2021-10/event.js +1 -1
  140. package/dist/rest-resources/2021-10/fulfillment.d.ts +2 -23
  141. package/dist/rest-resources/2021-10/fulfillment.d.ts.map +1 -1
  142. package/dist/rest-resources/2021-10/fulfillment.js +5 -78
  143. package/dist/rest-resources/2021-10/fulfillment_event.js +2 -2
  144. package/dist/rest-resources/2021-10/fulfillment_order.d.ts +11 -11
  145. package/dist/rest-resources/2021-10/fulfillment_order.d.ts.map +1 -1
  146. package/dist/rest-resources/2021-10/fulfillment_order.js +29 -29
  147. package/dist/rest-resources/2021-10/fulfillment_request.js +1 -1
  148. package/dist/rest-resources/2021-10/fulfillment_service.js +3 -3
  149. package/dist/rest-resources/2021-10/gift_card.js +4 -4
  150. package/dist/rest-resources/2021-10/gift_card_adjustment.js +2 -2
  151. package/dist/rest-resources/2021-10/image.js +4 -4
  152. package/dist/rest-resources/2021-10/inventory_level.js +1 -1
  153. package/dist/rest-resources/2021-10/location.js +1 -1
  154. package/dist/rest-resources/2021-10/marketing_event.js +5 -5
  155. package/dist/rest-resources/2021-10/metafield.d.ts +54 -5
  156. package/dist/rest-resources/2021-10/metafield.d.ts.map +1 -1
  157. package/dist/rest-resources/2021-10/metafield.js +84 -24
  158. package/dist/rest-resources/2021-10/mobile_platform_application.js +3 -3
  159. package/dist/rest-resources/2021-10/order.d.ts +12 -10
  160. package/dist/rest-resources/2021-10/order.d.ts.map +1 -1
  161. package/dist/rest-resources/2021-10/order.js +21 -21
  162. package/dist/rest-resources/2021-10/order_risk.js +3 -3
  163. package/dist/rest-resources/2021-10/page.js +4 -4
  164. package/dist/rest-resources/2021-10/payment.js +2 -2
  165. package/dist/rest-resources/2021-10/payment_gateway.js +3 -3
  166. package/dist/rest-resources/2021-10/price_rule.js +4 -4
  167. package/dist/rest-resources/2021-10/product.js +4 -4
  168. package/dist/rest-resources/2021-10/product_listing.d.ts +4 -4
  169. package/dist/rest-resources/2021-10/product_listing.d.ts.map +1 -1
  170. package/dist/rest-resources/2021-10/product_listing.js +18 -18
  171. package/dist/rest-resources/2021-10/product_resource_feedback.js +2 -2
  172. package/dist/rest-resources/2021-10/province.js +1 -1
  173. package/dist/rest-resources/2021-10/recurring_application_charge.js +2 -2
  174. package/dist/rest-resources/2021-10/redirect.js +4 -4
  175. package/dist/rest-resources/2021-10/refund.js +2 -2
  176. package/dist/rest-resources/2021-10/report.js +3 -3
  177. package/dist/rest-resources/2021-10/resource_feedback.js +2 -2
  178. package/dist/rest-resources/2021-10/script_tag.js +4 -4
  179. package/dist/rest-resources/2021-10/shop.d.ts +1 -0
  180. package/dist/rest-resources/2021-10/shop.d.ts.map +1 -1
  181. package/dist/rest-resources/2021-10/smart_collection.js +5 -5
  182. package/dist/rest-resources/2021-10/storefront_access_token.js +2 -2
  183. package/dist/rest-resources/2021-10/theme.js +3 -3
  184. package/dist/rest-resources/2021-10/transaction.js +3 -3
  185. package/dist/rest-resources/2021-10/usage_charge.js +2 -2
  186. package/dist/rest-resources/2021-10/user.js +2 -2
  187. package/dist/rest-resources/2021-10/variant.d.ts +1 -0
  188. package/dist/rest-resources/2021-10/variant.d.ts.map +1 -1
  189. package/dist/rest-resources/2021-10/variant.js +7 -3
  190. package/dist/rest-resources/2021-10/webhook.js +4 -4
  191. package/dist/rest-resources/2022-01/abandoned_checkout.d.ts +2 -2
  192. package/dist/rest-resources/2022-01/abandoned_checkout.d.ts.map +1 -1
  193. package/dist/rest-resources/2022-01/abandoned_checkout.js +2 -3
  194. package/dist/rest-resources/2022-01/android_pay_key.js +2 -2
  195. package/dist/rest-resources/2022-01/apple_pay_certificate.js +4 -4
  196. package/dist/rest-resources/2022-01/application_charge.js +2 -2
  197. package/dist/rest-resources/2022-01/application_credit.js +2 -2
  198. package/dist/rest-resources/2022-01/article.d.ts +5 -5
  199. package/dist/rest-resources/2022-01/article.d.ts.map +1 -1
  200. package/dist/rest-resources/2022-01/article.js +22 -22
  201. package/dist/rest-resources/2022-01/asset.js +2 -2
  202. package/dist/rest-resources/2022-01/blog.js +4 -4
  203. package/dist/rest-resources/2022-01/cancellation_request.js +1 -1
  204. package/dist/rest-resources/2022-01/carrier_service.js +3 -3
  205. package/dist/rest-resources/2022-01/checkout.d.ts +2 -0
  206. package/dist/rest-resources/2022-01/checkout.d.ts.map +1 -1
  207. package/dist/rest-resources/2022-01/checkout.js +4 -4
  208. package/dist/rest-resources/2022-01/collect.js +3 -3
  209. package/dist/rest-resources/2022-01/collection_listing.js +3 -3
  210. package/dist/rest-resources/2022-01/comment.d.ts +6 -6
  211. package/dist/rest-resources/2022-01/comment.d.ts.map +1 -1
  212. package/dist/rest-resources/2022-01/comment.js +14 -14
  213. package/dist/rest-resources/2022-01/country.js +4 -4
  214. package/dist/rest-resources/2022-01/custom_collection.js +4 -4
  215. package/dist/rest-resources/2022-01/customer.d.ts +11 -10
  216. package/dist/rest-resources/2022-01/customer.d.ts.map +1 -1
  217. package/dist/rest-resources/2022-01/customer.js +28 -28
  218. package/dist/rest-resources/2022-01/customer_address.d.ts +5 -5
  219. package/dist/rest-resources/2022-01/customer_address.d.ts.map +1 -1
  220. package/dist/rest-resources/2022-01/customer_address.js +20 -20
  221. package/dist/rest-resources/2022-01/customer_saved_search.js +5 -5
  222. package/dist/rest-resources/2022-01/discount_code.d.ts +6 -6
  223. package/dist/rest-resources/2022-01/discount_code.d.ts.map +1 -1
  224. package/dist/rest-resources/2022-01/discount_code.js +28 -28
  225. package/dist/rest-resources/2022-01/draft_order.d.ts +1 -0
  226. package/dist/rest-resources/2022-01/draft_order.d.ts.map +1 -1
  227. package/dist/rest-resources/2022-01/draft_order.js +5 -5
  228. package/dist/rest-resources/2022-01/event.js +1 -1
  229. package/dist/rest-resources/2022-01/fulfillment.d.ts +2 -23
  230. package/dist/rest-resources/2022-01/fulfillment.d.ts.map +1 -1
  231. package/dist/rest-resources/2022-01/fulfillment.js +5 -78
  232. package/dist/rest-resources/2022-01/fulfillment_event.js +2 -2
  233. package/dist/rest-resources/2022-01/fulfillment_order.d.ts +11 -11
  234. package/dist/rest-resources/2022-01/fulfillment_order.d.ts.map +1 -1
  235. package/dist/rest-resources/2022-01/fulfillment_order.js +29 -29
  236. package/dist/rest-resources/2022-01/fulfillment_request.js +1 -1
  237. package/dist/rest-resources/2022-01/fulfillment_service.js +3 -3
  238. package/dist/rest-resources/2022-01/gift_card.js +4 -4
  239. package/dist/rest-resources/2022-01/gift_card_adjustment.js +2 -2
  240. package/dist/rest-resources/2022-01/image.js +4 -4
  241. package/dist/rest-resources/2022-01/inventory_level.js +1 -1
  242. package/dist/rest-resources/2022-01/location.js +1 -1
  243. package/dist/rest-resources/2022-01/marketing_event.js +5 -5
  244. package/dist/rest-resources/2022-01/metafield.d.ts +54 -5
  245. package/dist/rest-resources/2022-01/metafield.d.ts.map +1 -1
  246. package/dist/rest-resources/2022-01/metafield.js +84 -24
  247. package/dist/rest-resources/2022-01/mobile_platform_application.js +3 -3
  248. package/dist/rest-resources/2022-01/order.d.ts +12 -10
  249. package/dist/rest-resources/2022-01/order.d.ts.map +1 -1
  250. package/dist/rest-resources/2022-01/order.js +21 -21
  251. package/dist/rest-resources/2022-01/order_risk.js +3 -3
  252. package/dist/rest-resources/2022-01/page.js +4 -4
  253. package/dist/rest-resources/2022-01/payment.js +2 -2
  254. package/dist/rest-resources/2022-01/payment_gateway.js +3 -3
  255. package/dist/rest-resources/2022-01/price_rule.js +4 -4
  256. package/dist/rest-resources/2022-01/product.js +4 -4
  257. package/dist/rest-resources/2022-01/product_listing.d.ts +4 -4
  258. package/dist/rest-resources/2022-01/product_listing.d.ts.map +1 -1
  259. package/dist/rest-resources/2022-01/product_listing.js +18 -18
  260. package/dist/rest-resources/2022-01/product_resource_feedback.js +2 -2
  261. package/dist/rest-resources/2022-01/province.js +1 -1
  262. package/dist/rest-resources/2022-01/recurring_application_charge.js +2 -2
  263. package/dist/rest-resources/2022-01/redirect.js +4 -4
  264. package/dist/rest-resources/2022-01/refund.js +2 -2
  265. package/dist/rest-resources/2022-01/report.js +3 -3
  266. package/dist/rest-resources/2022-01/resource_feedback.js +2 -2
  267. package/dist/rest-resources/2022-01/script_tag.js +4 -4
  268. package/dist/rest-resources/2022-01/shop.d.ts +1 -0
  269. package/dist/rest-resources/2022-01/shop.d.ts.map +1 -1
  270. package/dist/rest-resources/2022-01/smart_collection.js +5 -5
  271. package/dist/rest-resources/2022-01/storefront_access_token.js +2 -2
  272. package/dist/rest-resources/2022-01/theme.js +3 -3
  273. package/dist/rest-resources/2022-01/transaction.js +3 -3
  274. package/dist/rest-resources/2022-01/usage_charge.js +2 -2
  275. package/dist/rest-resources/2022-01/user.js +2 -2
  276. package/dist/rest-resources/2022-01/variant.d.ts +1 -0
  277. package/dist/rest-resources/2022-01/variant.d.ts.map +1 -1
  278. package/dist/rest-resources/2022-01/variant.js +7 -3
  279. package/dist/rest-resources/2022-01/webhook.js +4 -4
  280. package/dist/rest-resources/{2021-04 → 2022-04}/abandoned_checkout.d.ts +2 -2
  281. package/dist/rest-resources/{2021-04 → 2022-04}/abandoned_checkout.d.ts.map +1 -1
  282. package/dist/rest-resources/{2021-04 → 2022-04}/abandoned_checkout.js +3 -4
  283. package/dist/rest-resources/{2021-04 → 2022-04}/access_scope.d.ts +0 -0
  284. package/dist/rest-resources/{2021-04 → 2022-04}/access_scope.d.ts.map +1 -1
  285. package/dist/rest-resources/{2021-04 → 2022-04}/access_scope.js +1 -1
  286. package/dist/rest-resources/{2021-04 → 2022-04}/android_pay_key.d.ts +0 -0
  287. package/dist/rest-resources/{2021-04 → 2022-04}/android_pay_key.d.ts.map +1 -1
  288. package/dist/rest-resources/{2021-04 → 2022-04}/android_pay_key.js +3 -3
  289. package/dist/rest-resources/{2021-04 → 2022-04}/apple_pay_certificate.d.ts +0 -0
  290. package/dist/rest-resources/{2021-04 → 2022-04}/apple_pay_certificate.d.ts.map +1 -1
  291. package/dist/rest-resources/{2021-04 → 2022-04}/apple_pay_certificate.js +5 -5
  292. package/dist/rest-resources/{2021-04 → 2022-04}/application_charge.d.ts +0 -0
  293. package/dist/rest-resources/{2021-04 → 2022-04}/application_charge.d.ts.map +1 -1
  294. package/dist/rest-resources/{2021-04 → 2022-04}/application_charge.js +3 -3
  295. package/dist/rest-resources/{2021-04 → 2022-04}/application_credit.d.ts +0 -0
  296. package/dist/rest-resources/{2021-04 → 2022-04}/application_credit.d.ts.map +1 -1
  297. package/dist/rest-resources/{2021-04 → 2022-04}/application_credit.js +3 -3
  298. package/dist/rest-resources/{2021-04 → 2022-04}/article.d.ts +5 -5
  299. package/dist/rest-resources/{2021-04 → 2022-04}/article.d.ts.map +1 -1
  300. package/dist/rest-resources/{2021-04 → 2022-04}/article.js +23 -23
  301. package/dist/rest-resources/{2021-04 → 2022-04}/asset.d.ts +0 -0
  302. package/dist/rest-resources/{2021-04 → 2022-04}/asset.d.ts.map +1 -1
  303. package/dist/rest-resources/{2021-04 → 2022-04}/asset.js +3 -3
  304. package/dist/rest-resources/{2021-04 → 2022-04}/assigned_fulfillment_order.d.ts +0 -0
  305. package/dist/rest-resources/{2021-04 → 2022-04}/assigned_fulfillment_order.d.ts.map +1 -1
  306. package/dist/rest-resources/{2021-04 → 2022-04}/assigned_fulfillment_order.js +1 -1
  307. package/dist/rest-resources/{2021-04 → 2022-04}/balance.d.ts +0 -0
  308. package/dist/rest-resources/{2021-04 → 2022-04}/balance.d.ts.map +1 -1
  309. package/dist/rest-resources/{2021-04 → 2022-04}/balance.js +1 -1
  310. package/dist/rest-resources/{2021-04 → 2022-04}/blog.d.ts +0 -0
  311. package/dist/rest-resources/{2021-04 → 2022-04}/blog.d.ts.map +1 -1
  312. package/dist/rest-resources/{2021-04 → 2022-04}/blog.js +5 -5
  313. package/dist/rest-resources/{2021-04 → 2022-04}/cancellation_request.d.ts +0 -0
  314. package/dist/rest-resources/{2021-04 → 2022-04}/cancellation_request.d.ts.map +1 -1
  315. package/dist/rest-resources/{2021-04 → 2022-04}/cancellation_request.js +2 -2
  316. package/dist/rest-resources/{2021-04 → 2022-04}/carrier_service.d.ts +0 -0
  317. package/dist/rest-resources/{2021-04 → 2022-04}/carrier_service.d.ts.map +1 -1
  318. package/dist/rest-resources/{2021-04 → 2022-04}/carrier_service.js +4 -4
  319. package/dist/rest-resources/{2021-04 → 2022-04}/checkout.d.ts +2 -0
  320. package/dist/rest-resources/{2021-04 → 2022-04}/checkout.d.ts.map +1 -1
  321. package/dist/rest-resources/{2021-04 → 2022-04}/checkout.js +5 -5
  322. package/dist/rest-resources/{2021-04 → 2022-04}/collect.d.ts +0 -0
  323. package/dist/rest-resources/{2021-04 → 2022-04}/collect.d.ts.map +1 -1
  324. package/dist/rest-resources/{2021-04 → 2022-04}/collect.js +4 -4
  325. package/dist/rest-resources/{2021-04 → 2022-04}/collection.d.ts +0 -0
  326. package/dist/rest-resources/{2021-04 → 2022-04}/collection.d.ts.map +1 -1
  327. package/dist/rest-resources/{2021-04 → 2022-04}/collection.js +1 -1
  328. package/dist/rest-resources/{2021-04 → 2022-04}/collection_listing.d.ts +0 -0
  329. package/dist/rest-resources/{2021-04 → 2022-04}/collection_listing.d.ts.map +1 -1
  330. package/dist/rest-resources/{2021-04 → 2022-04}/collection_listing.js +4 -4
  331. package/dist/rest-resources/{2021-04 → 2022-04}/comment.d.ts +6 -6
  332. package/dist/rest-resources/{2021-04 → 2022-04}/comment.d.ts.map +1 -1
  333. package/dist/rest-resources/{2021-04 → 2022-04}/comment.js +15 -15
  334. package/dist/rest-resources/{2021-04 → 2022-04}/country.d.ts +0 -0
  335. package/dist/rest-resources/{2021-04 → 2022-04}/country.d.ts.map +1 -1
  336. package/dist/rest-resources/{2021-04 → 2022-04}/country.js +5 -5
  337. package/dist/rest-resources/{2021-04 → 2022-04}/currency.d.ts +0 -0
  338. package/dist/rest-resources/{2021-04 → 2022-04}/currency.d.ts.map +1 -1
  339. package/dist/rest-resources/{2021-04 → 2022-04}/currency.js +1 -1
  340. package/dist/rest-resources/{2021-04 → 2022-04}/custom_collection.d.ts +0 -0
  341. package/dist/rest-resources/{2021-04 → 2022-04}/custom_collection.d.ts.map +1 -1
  342. package/dist/rest-resources/{2021-04 → 2022-04}/custom_collection.js +5 -5
  343. package/dist/rest-resources/{2021-04 → 2022-04}/customer.d.ts +17 -10
  344. package/dist/rest-resources/2022-04/customer.d.ts.map +1 -0
  345. package/dist/rest-resources/{2021-04 → 2022-04}/customer.js +29 -29
  346. package/dist/rest-resources/{2021-04 → 2022-04}/customer_address.d.ts +5 -5
  347. package/dist/rest-resources/{2021-04 → 2022-04}/customer_address.d.ts.map +1 -1
  348. package/dist/rest-resources/{2021-04 → 2022-04}/customer_address.js +21 -21
  349. package/dist/rest-resources/{2021-04 → 2022-04}/customer_saved_search.d.ts +0 -0
  350. package/dist/rest-resources/{2021-04 → 2022-04}/customer_saved_search.d.ts.map +1 -1
  351. package/dist/rest-resources/{2021-04 → 2022-04}/customer_saved_search.js +6 -6
  352. package/dist/rest-resources/{2021-04 → 2022-04}/deprecated_api_call.d.ts +0 -0
  353. package/dist/rest-resources/{2021-04 → 2022-04}/deprecated_api_call.d.ts.map +1 -1
  354. package/dist/rest-resources/{2021-04 → 2022-04}/deprecated_api_call.js +1 -1
  355. package/dist/rest-resources/{2021-04 → 2022-04}/discount_code.d.ts +6 -6
  356. package/dist/rest-resources/{2021-04 → 2022-04}/discount_code.d.ts.map +1 -1
  357. package/dist/rest-resources/{2021-04 → 2022-04}/discount_code.js +29 -29
  358. package/dist/rest-resources/{2021-04 → 2022-04}/dispute.d.ts +0 -0
  359. package/dist/rest-resources/{2021-04 → 2022-04}/dispute.d.ts.map +1 -1
  360. package/dist/rest-resources/{2021-04 → 2022-04}/dispute.js +1 -1
  361. package/dist/rest-resources/{2021-04 → 2022-04}/draft_order.d.ts +4 -0
  362. package/dist/rest-resources/{2021-04 → 2022-04}/draft_order.d.ts.map +1 -1
  363. package/dist/rest-resources/{2021-04 → 2022-04}/draft_order.js +6 -6
  364. package/dist/rest-resources/{2021-04 → 2022-04}/event.d.ts +0 -0
  365. package/dist/rest-resources/{2021-04 → 2022-04}/event.d.ts.map +1 -1
  366. package/dist/rest-resources/{2021-04 → 2022-04}/event.js +2 -2
  367. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment.d.ts +5 -23
  368. package/dist/rest-resources/2022-04/fulfillment.d.ts.map +1 -0
  369. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment.js +6 -79
  370. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_event.d.ts +0 -0
  371. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_event.d.ts.map +1 -1
  372. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_event.js +3 -3
  373. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_order.d.ts +23 -0
  374. package/dist/rest-resources/2022-04/fulfillment_order.d.ts.map +1 -0
  375. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_order.js +48 -2
  376. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_request.d.ts +0 -0
  377. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_request.d.ts.map +1 -1
  378. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_request.js +2 -2
  379. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_service.d.ts +0 -0
  380. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_service.d.ts.map +1 -1
  381. package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_service.js +4 -4
  382. package/dist/rest-resources/{2021-04 → 2022-04}/gift_card.d.ts +0 -0
  383. package/dist/rest-resources/{2021-04 → 2022-04}/gift_card.d.ts.map +1 -1
  384. package/dist/rest-resources/{2021-04 → 2022-04}/gift_card.js +5 -5
  385. package/dist/rest-resources/{2021-04 → 2022-04}/gift_card_adjustment.d.ts +0 -0
  386. package/dist/rest-resources/{2021-04 → 2022-04}/gift_card_adjustment.d.ts.map +1 -1
  387. package/dist/rest-resources/{2021-04 → 2022-04}/gift_card_adjustment.js +3 -3
  388. package/dist/rest-resources/{2021-04 → 2022-04}/image.d.ts +0 -0
  389. package/dist/rest-resources/{2021-04 → 2022-04}/image.d.ts.map +1 -1
  390. package/dist/rest-resources/{2021-04 → 2022-04}/image.js +5 -5
  391. package/dist/rest-resources/{2021-04 → 2022-04}/index.d.ts +0 -0
  392. package/dist/rest-resources/{2021-04 → 2022-04}/index.d.ts.map +1 -1
  393. package/dist/rest-resources/{2021-04 → 2022-04}/index.js +0 -0
  394. package/dist/rest-resources/{2021-04 → 2022-04}/inventory_item.d.ts +0 -0
  395. package/dist/rest-resources/{2021-04 → 2022-04}/inventory_item.d.ts.map +1 -1
  396. package/dist/rest-resources/{2021-04 → 2022-04}/inventory_item.js +1 -1
  397. package/dist/rest-resources/{2021-04 → 2022-04}/inventory_level.d.ts +0 -0
  398. package/dist/rest-resources/{2021-04 → 2022-04}/inventory_level.d.ts.map +1 -1
  399. package/dist/rest-resources/{2021-04 → 2022-04}/inventory_level.js +2 -2
  400. package/dist/rest-resources/{2021-04 → 2022-04}/location.d.ts +0 -0
  401. package/dist/rest-resources/{2021-04 → 2022-04}/location.d.ts.map +1 -1
  402. package/dist/rest-resources/{2021-04 → 2022-04}/location.js +2 -2
  403. package/dist/rest-resources/{2021-04 → 2022-04}/locations_for_move.d.ts +0 -0
  404. package/dist/rest-resources/{2021-04 → 2022-04}/locations_for_move.d.ts.map +1 -1
  405. package/dist/rest-resources/{2021-04 → 2022-04}/locations_for_move.js +1 -1
  406. package/dist/rest-resources/{2021-04 → 2022-04}/marketing_event.d.ts +0 -0
  407. package/dist/rest-resources/{2021-04 → 2022-04}/marketing_event.d.ts.map +1 -1
  408. package/dist/rest-resources/{2021-04 → 2022-04}/marketing_event.js +6 -6
  409. package/dist/rest-resources/2022-04/metafield.d.ts +112 -0
  410. package/dist/rest-resources/2022-04/metafield.d.ts.map +1 -0
  411. package/dist/rest-resources/2022-04/metafield.js +166 -0
  412. package/dist/rest-resources/{2021-04 → 2022-04}/mobile_platform_application.d.ts +0 -0
  413. package/dist/rest-resources/{2021-04 → 2022-04}/mobile_platform_application.d.ts.map +1 -1
  414. package/dist/rest-resources/{2021-04 → 2022-04}/mobile_platform_application.js +4 -4
  415. package/dist/rest-resources/{2021-04 → 2022-04}/order.d.ts +16 -10
  416. package/dist/rest-resources/{2021-04 → 2022-04}/order.d.ts.map +1 -1
  417. package/dist/rest-resources/{2021-04 → 2022-04}/order.js +22 -22
  418. package/dist/rest-resources/{2021-04 → 2022-04}/order_risk.d.ts +0 -0
  419. package/dist/rest-resources/{2021-04 → 2022-04}/order_risk.d.ts.map +1 -1
  420. package/dist/rest-resources/{2021-04 → 2022-04}/order_risk.js +4 -4
  421. package/dist/rest-resources/{2021-04 → 2022-04}/page.d.ts +0 -0
  422. package/dist/rest-resources/{2021-04 → 2022-04}/page.d.ts.map +1 -1
  423. package/dist/rest-resources/{2021-04 → 2022-04}/page.js +5 -5
  424. package/dist/rest-resources/{2021-04 → 2022-04}/payment.d.ts +0 -0
  425. package/dist/rest-resources/{2021-04 → 2022-04}/payment.d.ts.map +1 -1
  426. package/dist/rest-resources/{2021-04 → 2022-04}/payment.js +3 -3
  427. package/dist/rest-resources/{2021-04 → 2022-04}/payment_gateway.d.ts +0 -0
  428. package/dist/rest-resources/{2021-04 → 2022-04}/payment_gateway.d.ts.map +1 -1
  429. package/dist/rest-resources/{2021-04 → 2022-04}/payment_gateway.js +4 -4
  430. package/dist/rest-resources/{2021-04 → 2022-04}/payment_transaction.d.ts +0 -0
  431. package/dist/rest-resources/{2021-04 → 2022-04}/payment_transaction.d.ts.map +1 -1
  432. package/dist/rest-resources/{2021-04 → 2022-04}/payment_transaction.js +1 -1
  433. package/dist/rest-resources/{2021-04 → 2022-04}/payout.d.ts +0 -0
  434. package/dist/rest-resources/{2021-04 → 2022-04}/payout.d.ts.map +1 -1
  435. package/dist/rest-resources/{2021-04 → 2022-04}/payout.js +1 -1
  436. package/dist/rest-resources/{2021-04 → 2022-04}/policy.d.ts +0 -0
  437. package/dist/rest-resources/{2021-04 → 2022-04}/policy.d.ts.map +1 -1
  438. package/dist/rest-resources/{2021-04 → 2022-04}/policy.js +1 -1
  439. package/dist/rest-resources/{2021-04 → 2022-04}/price_rule.d.ts +1 -1
  440. package/dist/rest-resources/{2021-04 → 2022-04}/price_rule.d.ts.map +1 -1
  441. package/dist/rest-resources/{2021-04 → 2022-04}/price_rule.js +5 -5
  442. package/dist/rest-resources/{2021-04 → 2022-04}/product.d.ts +0 -0
  443. package/dist/rest-resources/{2021-04 → 2022-04}/product.d.ts.map +1 -1
  444. package/dist/rest-resources/{2021-04 → 2022-04}/product.js +5 -5
  445. package/dist/rest-resources/{2021-04 → 2022-04}/product_listing.d.ts +4 -4
  446. package/dist/rest-resources/{2021-04 → 2022-04}/product_listing.d.ts.map +1 -1
  447. package/dist/rest-resources/{2021-04 → 2022-04}/product_listing.js +19 -19
  448. package/dist/rest-resources/{2021-04 → 2022-04}/product_resource_feedback.d.ts +0 -0
  449. package/dist/rest-resources/{2021-04 → 2022-04}/product_resource_feedback.d.ts.map +1 -1
  450. package/dist/rest-resources/{2021-04 → 2022-04}/product_resource_feedback.js +3 -3
  451. package/dist/rest-resources/{2021-04 → 2022-04}/province.d.ts +0 -0
  452. package/dist/rest-resources/{2021-04 → 2022-04}/province.d.ts.map +1 -1
  453. package/dist/rest-resources/{2021-04 → 2022-04}/province.js +2 -2
  454. package/dist/rest-resources/{2021-04 → 2022-04}/recurring_application_charge.d.ts +0 -0
  455. package/dist/rest-resources/{2021-04 → 2022-04}/recurring_application_charge.d.ts.map +1 -1
  456. package/dist/rest-resources/{2021-04 → 2022-04}/recurring_application_charge.js +3 -3
  457. package/dist/rest-resources/{2021-04 → 2022-04}/redirect.d.ts +0 -0
  458. package/dist/rest-resources/{2021-04 → 2022-04}/redirect.d.ts.map +1 -1
  459. package/dist/rest-resources/{2021-04 → 2022-04}/redirect.js +5 -5
  460. package/dist/rest-resources/{2021-04 → 2022-04}/refund.d.ts +0 -0
  461. package/dist/rest-resources/{2021-04 → 2022-04}/refund.d.ts.map +1 -1
  462. package/dist/rest-resources/{2021-04 → 2022-04}/refund.js +3 -3
  463. package/dist/rest-resources/{2021-04 → 2022-04}/report.d.ts +0 -0
  464. package/dist/rest-resources/{2021-04 → 2022-04}/report.d.ts.map +1 -1
  465. package/dist/rest-resources/{2021-04 → 2022-04}/report.js +4 -4
  466. package/dist/rest-resources/{2021-04 → 2022-04}/resource_feedback.d.ts +0 -0
  467. package/dist/rest-resources/{2021-04 → 2022-04}/resource_feedback.d.ts.map +1 -1
  468. package/dist/rest-resources/{2021-04 → 2022-04}/resource_feedback.js +3 -3
  469. package/dist/rest-resources/{2021-04 → 2022-04}/script_tag.d.ts +0 -0
  470. package/dist/rest-resources/{2021-04 → 2022-04}/script_tag.d.ts.map +1 -1
  471. package/dist/rest-resources/{2021-04 → 2022-04}/script_tag.js +5 -5
  472. package/dist/rest-resources/{2021-04 → 2022-04}/shipping_zone.d.ts +0 -0
  473. package/dist/rest-resources/{2021-04 → 2022-04}/shipping_zone.d.ts.map +1 -1
  474. package/dist/rest-resources/{2021-04 → 2022-04}/shipping_zone.js +1 -1
  475. package/dist/rest-resources/{2021-04 → 2022-04}/shop.d.ts +1 -0
  476. package/dist/rest-resources/{2021-04 → 2022-04}/shop.d.ts.map +1 -1
  477. package/dist/rest-resources/{2021-04 → 2022-04}/shop.js +1 -1
  478. package/dist/rest-resources/{2021-04 → 2022-04}/smart_collection.d.ts +0 -0
  479. package/dist/rest-resources/{2021-04 → 2022-04}/smart_collection.d.ts.map +1 -1
  480. package/dist/rest-resources/{2021-04 → 2022-04}/smart_collection.js +6 -6
  481. package/dist/rest-resources/{2021-04 → 2022-04}/storefront_access_token.d.ts +0 -0
  482. package/dist/rest-resources/{2021-04 → 2022-04}/storefront_access_token.d.ts.map +1 -1
  483. package/dist/rest-resources/{2021-04 → 2022-04}/storefront_access_token.js +3 -3
  484. package/dist/rest-resources/{2021-04 → 2022-04}/tender_transaction.d.ts +0 -0
  485. package/dist/rest-resources/{2021-04 → 2022-04}/tender_transaction.d.ts.map +1 -1
  486. package/dist/rest-resources/{2021-04 → 2022-04}/tender_transaction.js +1 -1
  487. package/dist/rest-resources/{2021-04 → 2022-04}/theme.d.ts +0 -0
  488. package/dist/rest-resources/{2021-04 → 2022-04}/theme.d.ts.map +1 -1
  489. package/dist/rest-resources/{2021-04 → 2022-04}/theme.js +4 -4
  490. package/dist/rest-resources/{2021-04 → 2022-04}/transaction.d.ts +3 -0
  491. package/dist/rest-resources/{2021-04 → 2022-04}/transaction.d.ts.map +1 -1
  492. package/dist/rest-resources/{2021-04 → 2022-04}/transaction.js +4 -4
  493. package/dist/rest-resources/{2021-04 → 2022-04}/usage_charge.d.ts +0 -0
  494. package/dist/rest-resources/{2021-04 → 2022-04}/usage_charge.d.ts.map +1 -1
  495. package/dist/rest-resources/{2021-04 → 2022-04}/usage_charge.js +3 -3
  496. package/dist/rest-resources/{2021-04 → 2022-04}/user.d.ts +0 -0
  497. package/dist/rest-resources/{2021-04 → 2022-04}/user.d.ts.map +1 -1
  498. package/dist/rest-resources/{2021-04 → 2022-04}/user.js +3 -3
  499. package/dist/rest-resources/{2021-04 → 2022-04}/variant.d.ts +1 -0
  500. package/dist/rest-resources/2022-04/variant.d.ts.map +1 -0
  501. package/dist/rest-resources/{2021-04 → 2022-04}/variant.js +8 -4
  502. package/dist/rest-resources/{2021-04 → 2022-04}/webhook.d.ts +0 -0
  503. package/dist/rest-resources/{2021-04 → 2022-04}/webhook.d.ts.map +1 -1
  504. package/dist/rest-resources/{2021-04 → 2022-04}/webhook.js +5 -5
  505. package/dist/utils/decode-session-token.d.ts.map +1 -1
  506. package/dist/utils/decode-session-token.js +0 -4
  507. package/dist/utils/shop-validator.d.ts.map +1 -1
  508. package/dist/utils/shop-validator.js +1 -0
  509. package/dist/version.d.ts +1 -1
  510. package/dist/version.js +1 -1
  511. package/dist/webhooks/registry.d.ts.map +1 -1
  512. package/dist/webhooks/registry.js +3 -13
  513. package/package.json +1 -1
  514. package/dist/rest-resources/2021-04/customer.d.ts.map +0 -1
  515. package/dist/rest-resources/2021-04/fulfillment.d.ts.map +0 -1
  516. package/dist/rest-resources/2021-04/fulfillment_order.d.ts.map +0 -1
  517. package/dist/rest-resources/2021-04/metafield.d.ts +0 -61
  518. package/dist/rest-resources/2021-04/metafield.d.ts.map +0 -1
  519. package/dist/rest-resources/2021-04/metafield.js +0 -106
  520. package/dist/rest-resources/2021-04/variant.d.ts.map +0 -1
@@ -66,45 +66,45 @@ var Article = /** @class */ (function (_super) {
66
66
  });
67
67
  });
68
68
  };
69
- Article.count = function (_a) {
70
- var session = _a.session, _b = _a.blog_id, blog_id = _b === void 0 ? null : _b, _c = _a.created_at_min, created_at_min = _c === void 0 ? null : _c, _d = _a.created_at_max, created_at_max = _d === void 0 ? null : _d, _e = _a.updated_at_min, updated_at_min = _e === void 0 ? null : _e, _f = _a.updated_at_max, updated_at_max = _f === void 0 ? null : _f, _g = _a.published_at_min, published_at_min = _g === void 0 ? null : _g, _h = _a.published_at_max, published_at_max = _h === void 0 ? null : _h, _j = _a.published_status, published_status = _j === void 0 ? null : _j, otherArgs = tslib_1.__rest(_a, ["session", "blog_id", "created_at_min", "created_at_max", "updated_at_min", "updated_at_max", "published_at_min", "published_at_max", "published_status"]);
69
+ Article.authors = function (_a) {
70
+ var session = _a.session, otherArgs = tslib_1.__rest(_a, ["session"]);
71
71
  return tslib_1.__awaiter(this, void 0, void 0, function () {
72
72
  var response;
73
- return tslib_1.__generator(this, function (_k) {
74
- switch (_k.label) {
73
+ return tslib_1.__generator(this, function (_b) {
74
+ switch (_b.label) {
75
75
  case 0: return [4 /*yield*/, Article.request({
76
76
  http_method: "get",
77
- operation: "count",
77
+ operation: "authors",
78
78
  session: session,
79
- urlIds: { "blog_id": blog_id },
80
- params: tslib_1.__assign({ "created_at_min": created_at_min, "created_at_max": created_at_max, "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
+ urlIds: {},
80
+ params: tslib_1.__assign({}, otherArgs),
81
81
  body: {},
82
82
  entity: null,
83
83
  })];
84
84
  case 1:
85
- response = _k.sent();
85
+ response = _b.sent();
86
86
  return [2 /*return*/, response ? response.body : null];
87
87
  }
88
88
  });
89
89
  });
90
90
  };
91
- Article.authors = function (_a) {
92
- var session = _a.session, otherArgs = tslib_1.__rest(_a, ["session"]);
91
+ Article.count = function (_a) {
92
+ var session = _a.session, _b = _a.blog_id, blog_id = _b === void 0 ? null : _b, _c = _a.created_at_min, created_at_min = _c === void 0 ? null : _c, _d = _a.created_at_max, created_at_max = _d === void 0 ? null : _d, _e = _a.updated_at_min, updated_at_min = _e === void 0 ? null : _e, _f = _a.updated_at_max, updated_at_max = _f === void 0 ? null : _f, _g = _a.published_at_min, published_at_min = _g === void 0 ? null : _g, _h = _a.published_at_max, published_at_max = _h === void 0 ? null : _h, _j = _a.published_status, published_status = _j === void 0 ? null : _j, otherArgs = tslib_1.__rest(_a, ["session", "blog_id", "created_at_min", "created_at_max", "updated_at_min", "updated_at_max", "published_at_min", "published_at_max", "published_status"]);
93
93
  return tslib_1.__awaiter(this, void 0, void 0, function () {
94
94
  var response;
95
- return tslib_1.__generator(this, function (_b) {
96
- switch (_b.label) {
95
+ return tslib_1.__generator(this, function (_k) {
96
+ switch (_k.label) {
97
97
  case 0: return [4 /*yield*/, Article.request({
98
98
  http_method: "get",
99
- operation: "authors",
99
+ operation: "count",
100
100
  session: session,
101
- urlIds: {},
102
- params: tslib_1.__assign({}, otherArgs),
101
+ urlIds: { "blog_id": blog_id },
102
+ params: tslib_1.__assign({ "created_at_min": created_at_min, "created_at_max": created_at_max, "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),
103
103
  body: {},
104
104
  entity: null,
105
105
  })];
106
106
  case 1:
107
- response = _b.sent();
107
+ response = _k.sent();
108
108
  return [2 /*return*/, response ? response.body : null];
109
109
  }
110
110
  });
@@ -140,15 +140,15 @@ var Article = /** @class */ (function (_super) {
140
140
  "metafields": metafield_1.Metafield
141
141
  };
142
142
  Article.PATHS = [
143
- { "http_method": "get", "operation": "get", "ids": ["blog_id"], "path": "blogs/<blog_id>/articles.json" },
144
- { "http_method": "post", "operation": "post", "ids": ["blog_id"], "path": "blogs/<blog_id>/articles.json" },
145
- { "http_method": "get", "operation": "count", "ids": ["blog_id"], "path": "blogs/<blog_id>/articles/count.json" },
146
- { "http_method": "get", "operation": "get", "ids": ["blog_id", "id"], "path": "blogs/<blog_id>/articles/<id>.json" },
147
- { "http_method": "put", "operation": "put", "ids": ["blog_id", "id"], "path": "blogs/<blog_id>/articles/<id>.json" },
148
143
  { "http_method": "delete", "operation": "delete", "ids": ["blog_id", "id"], "path": "blogs/<blog_id>/articles/<id>.json" },
149
144
  { "http_method": "get", "operation": "authors", "ids": [], "path": "articles/authors.json" },
145
+ { "http_method": "get", "operation": "count", "ids": ["blog_id"], "path": "blogs/<blog_id>/articles/count.json" },
146
+ { "http_method": "get", "operation": "get", "ids": ["blog_id"], "path": "blogs/<blog_id>/articles.json" },
147
+ { "http_method": "get", "operation": "get", "ids": ["blog_id", "id"], "path": "blogs/<blog_id>/articles/<id>.json" },
148
+ { "http_method": "get", "operation": "tags", "ids": [], "path": "articles/tags.json" },
150
149
  { "http_method": "get", "operation": "tags", "ids": ["blog_id"], "path": "blogs/<blog_id>/articles/tags.json" },
151
- { "http_method": "get", "operation": "tags", "ids": [], "path": "articles/tags.json" }
150
+ { "http_method": "post", "operation": "post", "ids": ["blog_id"], "path": "blogs/<blog_id>/articles.json" },
151
+ { "http_method": "put", "operation": "put", "ids": ["blog_id", "id"], "path": "blogs/<blog_id>/articles/<id>.json" }
152
152
  ];
153
153
  return Article;
154
154
  }(base_rest_resource_1.default));
@@ -53,10 +53,10 @@ var Asset = /** @class */ (function (_super) {
53
53
  Asset.HAS_ONE = {};
54
54
  Asset.HAS_MANY = {};
55
55
  Asset.PATHS = [
56
+ { "http_method": "delete", "operation": "delete", "ids": ["theme_id"], "path": "themes/<theme_id>/assets.json" },
56
57
  { "http_method": "get", "operation": "get", "ids": ["theme_id"], "path": "themes/<theme_id>/assets.json" },
57
- { "http_method": "put", "operation": "put", "ids": ["theme_id"], "path": "themes/<theme_id>/assets.json" },
58
58
  { "http_method": "get", "operation": "get", "ids": ["theme_id"], "path": "themes/<theme_id>/assets.json" },
59
- { "http_method": "delete", "operation": "delete", "ids": ["theme_id"], "path": "themes/<theme_id>/assets.json" }
59
+ { "http_method": "put", "operation": "put", "ids": ["theme_id"], "path": "themes/<theme_id>/assets.json" }
60
60
  ];
61
61
  Asset.PRIMARY_KEY = "key";
62
62
  return Asset;
@@ -96,12 +96,12 @@ var Blog = /** @class */ (function (_super) {
96
96
  "metafields": metafield_1.Metafield
97
97
  };
98
98
  Blog.PATHS = [
99
- { "http_method": "get", "operation": "get", "ids": [], "path": "blogs.json" },
100
- { "http_method": "post", "operation": "post", "ids": [], "path": "blogs.json" },
99
+ { "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "blogs/<id>.json" },
101
100
  { "http_method": "get", "operation": "count", "ids": [], "path": "blogs/count.json" },
101
+ { "http_method": "get", "operation": "get", "ids": [], "path": "blogs.json" },
102
102
  { "http_method": "get", "operation": "get", "ids": ["id"], "path": "blogs/<id>.json" },
103
- { "http_method": "put", "operation": "put", "ids": ["id"], "path": "blogs/<id>.json" },
104
- { "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "blogs/<id>.json" }
103
+ { "http_method": "post", "operation": "post", "ids": [], "path": "blogs.json" },
104
+ { "http_method": "put", "operation": "put", "ids": ["id"], "path": "blogs/<id>.json" }
105
105
  ];
106
106
  return Blog;
107
107
  }(base_rest_resource_1.default));
@@ -59,8 +59,8 @@ var CancellationRequest = /** @class */ (function (_super) {
59
59
  CancellationRequest.HAS_ONE = {};
60
60
  CancellationRequest.HAS_MANY = {};
61
61
  CancellationRequest.PATHS = [
62
- { "http_method": "post", "operation": "post", "ids": ["fulfillment_order_id"], "path": "fulfillment_orders/<fulfillment_order_id>/cancellation_request.json" },
63
62
  { "http_method": "post", "operation": "accept", "ids": ["fulfillment_order_id"], "path": "fulfillment_orders/<fulfillment_order_id>/cancellation_request/accept.json" },
63
+ { "http_method": "post", "operation": "post", "ids": ["fulfillment_order_id"], "path": "fulfillment_orders/<fulfillment_order_id>/cancellation_request.json" },
64
64
  { "http_method": "post", "operation": "reject", "ids": ["fulfillment_order_id"], "path": "fulfillment_orders/<fulfillment_order_id>/cancellation_request/reject.json" }
65
65
  ];
66
66
  return CancellationRequest;
@@ -71,11 +71,11 @@ var CarrierService = /** @class */ (function (_super) {
71
71
  CarrierService.HAS_ONE = {};
72
72
  CarrierService.HAS_MANY = {};
73
73
  CarrierService.PATHS = [
74
- { "http_method": "post", "operation": "post", "ids": [], "path": "carrier_services.json" },
74
+ { "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "carrier_services/<id>.json" },
75
75
  { "http_method": "get", "operation": "get", "ids": [], "path": "carrier_services.json" },
76
- { "http_method": "put", "operation": "put", "ids": ["id"], "path": "carrier_services/<id>.json" },
77
76
  { "http_method": "get", "operation": "get", "ids": ["id"], "path": "carrier_services/<id>.json" },
78
- { "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "carrier_services/<id>.json" }
77
+ { "http_method": "post", "operation": "post", "ids": [], "path": "carrier_services.json" },
78
+ { "http_method": "put", "operation": "put", "ids": ["id"], "path": "carrier_services/<id>.json" }
79
79
  ];
80
80
  return CarrierService;
81
81
  }(base_rest_resource_1.default));
@@ -73,7 +73,9 @@ export declare class Checkout extends Base {
73
73
  shipping_rate: {
74
74
  [key: string]: unknown;
75
75
  } | null;
76
+ source_identifier: string | null;
76
77
  source_name: string | null;
78
+ source_url: string | null;
77
79
  subtotal_price: string | null;
78
80
  tax_lines: {
79
81
  [key: string]: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-10/checkout.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,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AAErC,UAAU,QAAQ;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AACD,UAAU,iBAAiB;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AACD,UAAU,YAAY;IACpB,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,qBAAa,QAAS,SAAQ,IAAI;IAChC,OAAc,WA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GAAG,IAAI,CAAC;CAC/B"}
@@ -85,11 +85,11 @@ var Checkout = /** @class */ (function (_super) {
85
85
  "gift_cards": gift_card_1.GiftCard
86
86
  };
87
87
  Checkout.PATHS = [
88
- { "http_method": "post", "operation": "post", "ids": [], "path": "checkouts.json" },
89
- { "http_method": "post", "operation": "complete", "ids": ["token"], "path": "checkouts/<token>/complete.json" },
90
88
  { "http_method": "get", "operation": "get", "ids": ["token"], "path": "checkouts/<token>.json" },
91
- { "http_method": "put", "operation": "put", "ids": ["token"], "path": "checkouts/<token>.json" },
92
- { "http_method": "get", "operation": "shipping_rates", "ids": ["token"], "path": "checkouts/<token>/shipping_rates.json" }
89
+ { "http_method": "get", "operation": "shipping_rates", "ids": ["token"], "path": "checkouts/<token>/shipping_rates.json" },
90
+ { "http_method": "post", "operation": "complete", "ids": ["token"], "path": "checkouts/<token>/complete.json" },
91
+ { "http_method": "post", "operation": "post", "ids": [], "path": "checkouts.json" },
92
+ { "http_method": "put", "operation": "put", "ids": ["token"], "path": "checkouts/<token>.json" }
93
93
  ];
94
94
  Checkout.PRIMARY_KEY = "token";
95
95
  return Checkout;
@@ -93,11 +93,11 @@ var Collect = /** @class */ (function (_super) {
93
93
  Collect.HAS_ONE = {};
94
94
  Collect.HAS_MANY = {};
95
95
  Collect.PATHS = [
96
- { "http_method": "post", "operation": "post", "ids": [], "path": "collects.json" },
97
- { "http_method": "get", "operation": "get", "ids": [], "path": "collects.json" },
98
96
  { "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "collects/<id>.json" },
97
+ { "http_method": "get", "operation": "count", "ids": [], "path": "collects/count.json" },
98
+ { "http_method": "get", "operation": "get", "ids": [], "path": "collects.json" },
99
99
  { "http_method": "get", "operation": "get", "ids": ["id"], "path": "collects/<id>.json" },
100
- { "http_method": "get", "operation": "count", "ids": [], "path": "collects/count.json" }
100
+ { "http_method": "post", "operation": "post", "ids": [], "path": "collects.json" }
101
101
  ];
102
102
  return Collect;
103
103
  }(base_rest_resource_1.default));
@@ -96,11 +96,11 @@ var CollectionListing = /** @class */ (function (_super) {
96
96
  };
97
97
  CollectionListing.HAS_MANY = {};
98
98
  CollectionListing.PATHS = [
99
+ { "http_method": "delete", "operation": "delete", "ids": ["collection_id"], "path": "collection_listings/<collection_id>.json" },
99
100
  { "http_method": "get", "operation": "get", "ids": [], "path": "collection_listings.json" },
100
- { "http_method": "get", "operation": "product_ids", "ids": ["collection_id"], "path": "collection_listings/<collection_id>/product_ids.json" },
101
101
  { "http_method": "get", "operation": "get", "ids": ["collection_id"], "path": "collection_listings/<collection_id>.json" },
102
- { "http_method": "put", "operation": "put", "ids": ["collection_id"], "path": "collection_listings/<collection_id>.json" },
103
- { "http_method": "delete", "operation": "delete", "ids": ["collection_id"], "path": "collection_listings/<collection_id>.json" }
102
+ { "http_method": "get", "operation": "product_ids", "ids": ["collection_id"], "path": "collection_listings/<collection_id>/product_ids.json" },
103
+ { "http_method": "put", "operation": "put", "ids": ["collection_id"], "path": "collection_listings/<collection_id>.json" }
104
104
  ];
105
105
  CollectionListing.PRIMARY_KEY = "collection_id";
106
106
  return CollectionListing;
@@ -33,7 +33,7 @@ interface CountArgs {
33
33
  published_status?: unknown;
34
34
  status?: unknown;
35
35
  }
36
- interface SpamArgs {
36
+ interface ApproveArgs {
37
37
  [key: string]: unknown;
38
38
  body?: {
39
39
  [key: string]: unknown;
@@ -45,19 +45,19 @@ interface NotSpamArgs {
45
45
  [key: string]: unknown;
46
46
  } | null;
47
47
  }
48
- interface ApproveArgs {
48
+ interface RemoveArgs {
49
49
  [key: string]: unknown;
50
50
  body?: {
51
51
  [key: string]: unknown;
52
52
  } | null;
53
53
  }
54
- interface RemoveArgs {
54
+ interface RestoreArgs {
55
55
  [key: string]: unknown;
56
56
  body?: {
57
57
  [key: string]: unknown;
58
58
  } | null;
59
59
  }
60
- interface RestoreArgs {
60
+ interface SpamArgs {
61
61
  [key: string]: unknown;
62
62
  body?: {
63
63
  [key: string]: unknown;
@@ -77,11 +77,11 @@ export declare class Comment extends Base {
77
77
  static find({ session, id, fields }: FindArgs): Promise<Comment | null>;
78
78
  static all({ session, limit, since_id, created_at_min, created_at_max, updated_at_min, updated_at_max, published_at_min, published_at_max, fields, published_status, status, ...otherArgs }: AllArgs): Promise<Comment[]>;
79
79
  static count({ session, created_at_min, created_at_max, updated_at_min, updated_at_max, published_at_min, published_at_max, published_status, status, ...otherArgs }: CountArgs): Promise<unknown>;
80
- spam({ body, ...otherArgs }: SpamArgs): Promise<unknown>;
81
- not_spam({ body, ...otherArgs }: NotSpamArgs): Promise<unknown>;
82
80
  approve({ body, ...otherArgs }: ApproveArgs): Promise<unknown>;
81
+ not_spam({ body, ...otherArgs }: NotSpamArgs): Promise<unknown>;
83
82
  remove({ body, ...otherArgs }: RemoveArgs): Promise<unknown>;
84
83
  restore({ body, ...otherArgs }: RestoreArgs): Promise<unknown>;
84
+ spam({ body, ...otherArgs }: SpamArgs): Promise<unknown>;
85
85
  article_id: number | null;
86
86
  author: string | null;
87
87
  blog_id: number | null;
@@ -1 +1 @@
1
- {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-10/comment.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,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AACD,UAAU,OAAO;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,O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AAa,EACb,GAAG,SAAS,EACb,EAAE,SAAS,GACX,OAAO,CAAC,OAAO,CAAC;IAcN,IAAI,CACf,EACE,IAAW,EACX,GAAG,SAAS,EACb,EAAE,QAAQ,GACV,OAAO,CAAC,OAAO,CAAC;IAcN,QAAQ,CACnB,EACE,IAAW,EACX,GAAG,SAAS,EACb,EAAE,WAAW,GACb,OAAO,CAAC,OAAO,CAAC;IAcN,OAAO,CAClB,EACE,IAAW,EACX,GAAG,SAAS,EACb,EAAE,WAAW,GACb,OAAO,CAAC,OAAO,CAAC;IAcN,MAAM,CACjB,EACE,IAAW,EACX,GAAG,SAAS,EACb,EAAE,UAAU,GACZ,OAAO,CAAC,OAAO,CAAC;IAcN,OAAO,CAClB,EACE,IAAW,EACX,GAAG,SAAS,EACb,EAAE,WAAW,GACb,OAAO,CAAC,OAAO,CAAC;IAcZ,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC"}
1
+ {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-10/comment.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAA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KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC"}
@@ -67,7 +67,7 @@ var Comment = /** @class */ (function (_super) {
67
67
  });
68
68
  });
69
69
  };
70
- Comment.prototype.spam = function (_a) {
70
+ Comment.prototype.approve = function (_a) {
71
71
  var _b = _a.body, body = _b === void 0 ? null : _b, otherArgs = tslib_1.__rest(_a, ["body"]);
72
72
  return tslib_1.__awaiter(this, void 0, void 0, function () {
73
73
  var response;
@@ -75,7 +75,7 @@ var Comment = /** @class */ (function (_super) {
75
75
  switch (_c.label) {
76
76
  case 0: return [4 /*yield*/, Comment.request({
77
77
  http_method: "post",
78
- operation: "spam",
78
+ operation: "approve",
79
79
  session: this.session,
80
80
  urlIds: { "id": this.id },
81
81
  params: tslib_1.__assign({}, otherArgs),
@@ -111,7 +111,7 @@ var Comment = /** @class */ (function (_super) {
111
111
  });
112
112
  });
113
113
  };
114
- Comment.prototype.approve = function (_a) {
114
+ Comment.prototype.remove = function (_a) {
115
115
  var _b = _a.body, body = _b === void 0 ? null : _b, otherArgs = tslib_1.__rest(_a, ["body"]);
116
116
  return tslib_1.__awaiter(this, void 0, void 0, function () {
117
117
  var response;
@@ -119,7 +119,7 @@ var Comment = /** @class */ (function (_super) {
119
119
  switch (_c.label) {
120
120
  case 0: return [4 /*yield*/, Comment.request({
121
121
  http_method: "post",
122
- operation: "approve",
122
+ operation: "remove",
123
123
  session: this.session,
124
124
  urlIds: { "id": this.id },
125
125
  params: tslib_1.__assign({}, otherArgs),
@@ -133,7 +133,7 @@ var Comment = /** @class */ (function (_super) {
133
133
  });
134
134
  });
135
135
  };
136
- Comment.prototype.remove = function (_a) {
136
+ Comment.prototype.restore = function (_a) {
137
137
  var _b = _a.body, body = _b === void 0 ? null : _b, otherArgs = tslib_1.__rest(_a, ["body"]);
138
138
  return tslib_1.__awaiter(this, void 0, void 0, function () {
139
139
  var response;
@@ -141,7 +141,7 @@ var Comment = /** @class */ (function (_super) {
141
141
  switch (_c.label) {
142
142
  case 0: return [4 /*yield*/, Comment.request({
143
143
  http_method: "post",
144
- operation: "remove",
144
+ operation: "restore",
145
145
  session: this.session,
146
146
  urlIds: { "id": this.id },
147
147
  params: tslib_1.__assign({}, otherArgs),
@@ -155,7 +155,7 @@ var Comment = /** @class */ (function (_super) {
155
155
  });
156
156
  });
157
157
  };
158
- Comment.prototype.restore = function (_a) {
158
+ Comment.prototype.spam = function (_a) {
159
159
  var _b = _a.body, body = _b === void 0 ? null : _b, otherArgs = tslib_1.__rest(_a, ["body"]);
160
160
  return tslib_1.__awaiter(this, void 0, void 0, function () {
161
161
  var response;
@@ -163,7 +163,7 @@ var Comment = /** @class */ (function (_super) {
163
163
  switch (_c.label) {
164
164
  case 0: return [4 /*yield*/, Comment.request({
165
165
  http_method: "post",
166
- operation: "restore",
166
+ operation: "spam",
167
167
  session: this.session,
168
168
  urlIds: { "id": this.id },
169
169
  params: tslib_1.__assign({}, otherArgs),
@@ -183,16 +183,16 @@ var Comment = /** @class */ (function (_super) {
183
183
  Comment.HAS_ONE = {};
184
184
  Comment.HAS_MANY = {};
185
185
  Comment.PATHS = [
186
- { "http_method": "get", "operation": "get", "ids": [], "path": "comments.json" },
187
186
  { "http_method": "get", "operation": "count", "ids": [], "path": "comments/count.json" },
187
+ { "http_method": "get", "operation": "get", "ids": [], "path": "comments.json" },
188
188
  { "http_method": "get", "operation": "get", "ids": ["id"], "path": "comments/<id>.json" },
189
- { "http_method": "put", "operation": "put", "ids": ["id"], "path": "comments/<id>.json" },
190
- { "http_method": "post", "operation": "post", "ids": [], "path": "comments.json" },
191
- { "http_method": "post", "operation": "spam", "ids": ["id"], "path": "comments/<id>/spam.json" },
192
- { "http_method": "post", "operation": "not_spam", "ids": ["id"], "path": "comments/<id>/not_spam.json" },
193
189
  { "http_method": "post", "operation": "approve", "ids": ["id"], "path": "comments/<id>/approve.json" },
190
+ { "http_method": "post", "operation": "not_spam", "ids": ["id"], "path": "comments/<id>/not_spam.json" },
191
+ { "http_method": "post", "operation": "post", "ids": [], "path": "comments.json" },
194
192
  { "http_method": "post", "operation": "remove", "ids": ["id"], "path": "comments/<id>/remove.json" },
195
- { "http_method": "post", "operation": "restore", "ids": ["id"], "path": "comments/<id>/restore.json" }
193
+ { "http_method": "post", "operation": "restore", "ids": ["id"], "path": "comments/<id>/restore.json" },
194
+ { "http_method": "post", "operation": "spam", "ids": ["id"], "path": "comments/<id>/spam.json" },
195
+ { "http_method": "put", "operation": "put", "ids": ["id"], "path": "comments/<id>.json" }
196
196
  ];
197
197
  return Comment;
198
198
  }(base_rest_resource_1.default));
@@ -96,12 +96,12 @@ var Country = /** @class */ (function (_super) {
96
96
  "provinces": province_1.Province
97
97
  };
98
98
  Country.PATHS = [
99
- { "http_method": "get", "operation": "get", "ids": [], "path": "countries.json" },
100
- { "http_method": "post", "operation": "post", "ids": [], "path": "countries.json" },
99
+ { "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "countries/<id>.json" },
101
100
  { "http_method": "get", "operation": "count", "ids": [], "path": "countries/count.json" },
101
+ { "http_method": "get", "operation": "get", "ids": [], "path": "countries.json" },
102
102
  { "http_method": "get", "operation": "get", "ids": ["id"], "path": "countries/<id>.json" },
103
- { "http_method": "put", "operation": "put", "ids": ["id"], "path": "countries/<id>.json" },
104
- { "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "countries/<id>.json" }
103
+ { "http_method": "post", "operation": "post", "ids": [], "path": "countries.json" },
104
+ { "http_method": "put", "operation": "put", "ids": ["id"], "path": "countries/<id>.json" }
105
105
  ];
106
106
  return Country;
107
107
  }(base_rest_resource_1.default));
@@ -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" },
96
+ { "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "custom_collections/<id>.json" },
98
97
  { "http_method": "get", "operation": "count", "ids": [], "path": "custom_collections/count.json" },
98
+ { "http_method": "get", "operation": "get", "ids": [], "path": "custom_collections.json" },
99
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" }
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));
@@ -19,14 +19,6 @@ interface AllArgs {
19
19
  limit?: unknown;
20
20
  fields?: unknown;
21
21
  }
22
- interface SearchArgs {
23
- [key: string]: unknown;
24
- session: SessionInterface;
25
- order?: unknown;
26
- query?: unknown;
27
- limit?: unknown;
28
- fields?: unknown;
29
- }
30
22
  interface CountArgs {
31
23
  [key: string]: unknown;
32
24
  session: SessionInterface;
@@ -35,6 +27,15 @@ interface OrdersArgs {
35
27
  [key: string]: unknown;
36
28
  session: SessionInterface;
37
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;
38
39
  }
39
40
  interface AccountActivationUrlArgs {
40
41
  [key: string]: unknown;
@@ -61,9 +62,9 @@ export declare class Customer extends Base {
61
62
  protected static PATHS: ResourcePath[];
62
63
  static find({ session, id, fields }: FindArgs): Promise<Customer | null>;
63
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[]>;
64
- static search({ session, order, query, limit, fields, ...otherArgs }: SearchArgs): Promise<unknown>;
65
65
  static count({ session, ...otherArgs }: CountArgs): Promise<unknown>;
66
- 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>;
67
68
  account_activation_url({ body, ...otherArgs }: AccountActivationUrlArgs): Promise<unknown>;
68
69
  send_invite({ body, ...otherArgs }: SendInviteArgs): Promise<unknown>;
69
70
  accepts_marketing: boolean | 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,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,UAAU,QAAQ;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AACD,UAAU,OAAO;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EA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