shopify-webhook-schemas 0.3.0 → 0.3.2

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 (416) hide show
  1. package/metadatas/2026-01/app/scopes_update.json +24 -0
  2. package/metadatas/2026-01/app/uninstalled.json +70 -0
  3. package/metadatas/2026-01/app_purchases_one_time/update.json +21 -0
  4. package/metadatas/2026-01/app_subscriptions/approaching_capped_amount.json +23 -0
  5. package/metadatas/2026-01/app_subscriptions/update.json +27 -0
  6. package/metadatas/2026-01/audit_events/admin_api_activity.json +67 -0
  7. package/metadatas/2026-01/bulk_operations/finish.json +20 -0
  8. package/metadatas/2026-01/carts/create.json +98 -0
  9. package/metadatas/2026-01/carts/update.json +98 -0
  10. package/metadatas/2026-01/channels/delete.json +18 -0
  11. package/metadatas/2026-01/checkouts/create.json +258 -0
  12. package/metadatas/2026-01/checkouts/delete.json +29 -0
  13. package/metadatas/2026-01/checkouts/update.json +258 -0
  14. package/metadatas/2026-01/collection_listings/add.json +28 -0
  15. package/metadatas/2026-01/collection_listings/remove.json +20 -0
  16. package/metadatas/2026-01/collection_listings/update.json +28 -0
  17. package/metadatas/2026-01/collection_publications/create.json +24 -0
  18. package/metadatas/2026-01/collection_publications/delete.json +18 -0
  19. package/metadatas/2026-01/collection_publications/update.json +24 -0
  20. package/metadatas/2026-01/collections/create.json +27 -0
  21. package/metadatas/2026-01/collections/delete.json +20 -0
  22. package/metadatas/2026-01/collections/update.json +27 -0
  23. package/metadatas/2026-01/companies/create.json +29 -0
  24. package/metadatas/2026-01/companies/delete.json +26 -0
  25. package/metadatas/2026-01/companies/update.json +29 -0
  26. package/metadatas/2026-01/company_contact_roles/assign.json +114 -0
  27. package/metadatas/2026-01/company_contact_roles/revoke.json +114 -0
  28. package/metadatas/2026-01/company_contacts/create.json +37 -0
  29. package/metadatas/2026-01/company_contacts/delete.json +34 -0
  30. package/metadatas/2026-01/company_contacts/update.json +37 -0
  31. package/metadatas/2026-01/company_locations/create.json +91 -0
  32. package/metadatas/2026-01/company_locations/delete.json +88 -0
  33. package/metadatas/2026-01/company_locations/update.json +91 -0
  34. package/metadatas/2026-01/customer.joined_segment.json +18 -0
  35. package/metadatas/2026-01/customer.left_segment.json +18 -0
  36. package/metadatas/2026-01/customer.tags_added.json +25 -0
  37. package/metadatas/2026-01/customer.tags_removed.json +25 -0
  38. package/metadatas/2026-01/customer_account_settings/update.json +17 -0
  39. package/metadatas/2026-01/customer_groups/create.json +25 -0
  40. package/metadatas/2026-01/customer_groups/delete.json +21 -0
  41. package/metadatas/2026-01/customer_groups/update.json +22 -0
  42. package/metadatas/2026-01/customer_payment_methods/create.json +33 -0
  43. package/metadatas/2026-01/customer_payment_methods/revoke.json +33 -0
  44. package/metadatas/2026-01/customer_payment_methods/update.json +33 -0
  45. package/metadatas/2026-01/customers/create.json +55 -0
  46. package/metadatas/2026-01/customers/data_request.json +27 -0
  47. package/metadatas/2026-01/customers/delete.json +20 -0
  48. package/metadatas/2026-01/customers/disable.json +55 -0
  49. package/metadatas/2026-01/customers/enable.json +55 -0
  50. package/metadatas/2026-01/customers/merge.json +30 -0
  51. package/metadatas/2026-01/customers/purchasing_summary.json +27 -0
  52. package/metadatas/2026-01/customers/redact.json +24 -0
  53. package/metadatas/2026-01/customers/update.json +55 -0
  54. package/metadatas/2026-01/customers_email_marketing_consent/update.json +27 -0
  55. package/metadatas/2026-01/customers_marketing_consent/update.json +28 -0
  56. package/metadatas/2026-01/delivery_promise_settings/update.json +19 -0
  57. package/metadatas/2026-01/discounts/create.json +22 -0
  58. package/metadatas/2026-01/discounts/delete.json +19 -0
  59. package/metadatas/2026-01/discounts/redeemcode_added.json +23 -0
  60. package/metadatas/2026-01/discounts/redeemcode_removed.json +23 -0
  61. package/metadatas/2026-01/discounts/update.json +22 -0
  62. package/metadatas/2026-01/disputes/create.json +32 -0
  63. package/metadatas/2026-01/disputes/update.json +32 -0
  64. package/metadatas/2026-01/domains/create.json +22 -0
  65. package/metadatas/2026-01/domains/destroy.json +22 -0
  66. package/metadatas/2026-01/domains/update.json +22 -0
  67. package/metadatas/2026-01/draft_orders/create.json +244 -0
  68. package/metadatas/2026-01/draft_orders/delete.json +18 -0
  69. package/metadatas/2026-01/draft_orders/update.json +244 -0
  70. package/metadatas/2026-01/finance_app_staff_member/delete.json +16 -0
  71. package/metadatas/2026-01/finance_app_staff_member/grant.json +16 -0
  72. package/metadatas/2026-01/finance_app_staff_member/revoke.json +16 -0
  73. package/metadatas/2026-01/finance_app_staff_member/update.json +16 -0
  74. package/metadatas/2026-01/finance_kyc_information/update.json +16 -0
  75. package/metadatas/2026-01/fulfillment_events/create.json +38 -0
  76. package/metadatas/2026-01/fulfillment_events/delete.json +35 -0
  77. package/metadatas/2026-01/fulfillment_holds/added.json +32 -0
  78. package/metadatas/2026-01/fulfillment_holds/released.json +32 -0
  79. package/metadatas/2026-01/fulfillment_orders/cancellation_request_accepted.json +25 -0
  80. package/metadatas/2026-01/fulfillment_orders/cancellation_request_rejected.json +26 -0
  81. package/metadatas/2026-01/fulfillment_orders/cancellation_request_submitted.json +29 -0
  82. package/metadatas/2026-01/fulfillment_orders/cancelled.json +28 -0
  83. package/metadatas/2026-01/fulfillment_orders/fulfillment_request_accepted.json +26 -0
  84. package/metadatas/2026-01/fulfillment_orders/fulfillment_request_rejected.json +26 -0
  85. package/metadatas/2026-01/fulfillment_orders/fulfillment_request_submitted.json +34 -0
  86. package/metadatas/2026-01/fulfillment_orders/fulfillment_service_failed_to_complete.json +25 -0
  87. package/metadatas/2026-01/fulfillment_orders/hold_released.json +24 -0
  88. package/metadatas/2026-01/fulfillment_orders/line_items_prepared_for_local_delivery.json +28 -0
  89. package/metadatas/2026-01/fulfillment_orders/line_items_prepared_for_pickup.json +28 -0
  90. package/metadatas/2026-01/fulfillment_orders/merged.json +45 -0
  91. package/metadatas/2026-01/fulfillment_orders/moved.json +40 -0
  92. package/metadatas/2026-01/fulfillment_orders/order_routing_complete.json +25 -0
  93. package/metadatas/2026-01/fulfillment_orders/placed_on_hold.json +66 -0
  94. package/metadatas/2026-01/fulfillment_orders/rescheduled.json +25 -0
  95. package/metadatas/2026-01/fulfillment_orders/scheduled_fulfillment_order_ready.json +24 -0
  96. package/metadatas/2026-01/fulfillment_orders/split.json +37 -0
  97. package/metadatas/2026-01/fulfillments/create.json +326 -0
  98. package/metadatas/2026-01/fulfillments/update.json +326 -0
  99. package/metadatas/2026-01/inventory_items/create.json +32 -0
  100. package/metadatas/2026-01/inventory_items/delete.json +24 -0
  101. package/metadatas/2026-01/inventory_items/update.json +32 -0
  102. package/metadatas/2026-01/inventory_levels/connect.json +16 -0
  103. package/metadatas/2026-01/inventory_levels/disconnect.json +19 -0
  104. package/metadatas/2026-01/inventory_levels/update.json +16 -0
  105. package/metadatas/2026-01/locales/create.json +19 -0
  106. package/metadatas/2026-01/locales/update.json +19 -0
  107. package/metadatas/2026-01/locations/activate.json +34 -0
  108. package/metadatas/2026-01/locations/create.json +34 -0
  109. package/metadatas/2026-01/locations/deactivate.json +34 -0
  110. package/metadatas/2026-01/locations/delete.json +18 -0
  111. package/metadatas/2026-01/locations/update.json +34 -0
  112. package/metadatas/2026-01/markets/create.json +21 -0
  113. package/metadatas/2026-01/markets/delete.json +18 -0
  114. package/metadatas/2026-01/markets/update.json +21 -0
  115. package/metadatas/2026-01/markets_backup_region/update.json +18 -0
  116. package/metadatas/2026-01/metafield_definitions/create.json +45 -0
  117. package/metadatas/2026-01/metafield_definitions/delete.json +19 -0
  118. package/metadatas/2026-01/metafield_definitions/update.json +45 -0
  119. package/metadatas/2026-01/metaobjects/create.json +33 -0
  120. package/metadatas/2026-01/metaobjects/delete.json +20 -0
  121. package/metadatas/2026-01/metaobjects/update.json +33 -0
  122. package/metadatas/2026-01/order_transactions/create.json +68 -0
  123. package/metadatas/2026-01/orders/cancelled.json +603 -0
  124. package/metadatas/2026-01/orders/create.json +602 -0
  125. package/metadatas/2026-01/orders/delete.json +18 -0
  126. package/metadatas/2026-01/orders/edited.json +56 -0
  127. package/metadatas/2026-01/orders/fulfilled.json +602 -0
  128. package/metadatas/2026-01/orders/paid.json +602 -0
  129. package/metadatas/2026-01/orders/partially_fulfilled.json +602 -0
  130. package/metadatas/2026-01/orders/risk_assessment_changed.json +22 -0
  131. package/metadatas/2026-01/orders/shopify_protect_eligibility_changed.json +22 -0
  132. package/metadatas/2026-01/orders/updated.json +603 -0
  133. package/metadatas/2026-01/payment_schedules/due.json +31 -0
  134. package/metadatas/2026-01/payment_terms/create.json +42 -0
  135. package/metadatas/2026-01/payment_terms/delete.json +18 -0
  136. package/metadatas/2026-01/payment_terms/update.json +42 -0
  137. package/metadatas/2026-01/product_feeds/create.json +21 -0
  138. package/metadatas/2026-01/product_feeds/full_sync.json +112 -0
  139. package/metadatas/2026-01/product_feeds/full_sync_finish.json +37 -0
  140. package/metadatas/2026-01/product_feeds/incremental_sync.json +111 -0
  141. package/metadatas/2026-01/product_feeds/update.json +21 -0
  142. package/metadatas/2026-01/product_listings/add.json +105 -0
  143. package/metadatas/2026-01/product_listings/remove.json +20 -0
  144. package/metadatas/2026-01/product_listings/update.json +105 -0
  145. package/metadatas/2026-01/product_publications/create.json +24 -0
  146. package/metadatas/2026-01/product_publications/delete.json +18 -0
  147. package/metadatas/2026-01/product_publications/update.json +24 -0
  148. package/metadatas/2026-01/products/create.json +93 -0
  149. package/metadatas/2026-01/products/delete.json +18 -0
  150. package/metadatas/2026-01/products/update.json +93 -0
  151. package/metadatas/2026-01/profiles/create.json +17 -0
  152. package/metadatas/2026-01/profiles/delete.json +17 -0
  153. package/metadatas/2026-01/profiles/update.json +17 -0
  154. package/metadatas/2026-01/refunds/create.json +527 -0
  155. package/metadatas/2026-01/returns/approve.json +52 -0
  156. package/metadatas/2026-01/returns/cancel.json +24 -0
  157. package/metadatas/2026-01/returns/close.json +24 -0
  158. package/metadatas/2026-01/returns/decline.json +29 -0
  159. package/metadatas/2026-01/returns/reopen.json +24 -0
  160. package/metadatas/2026-01/returns/request.json +31 -0
  161. package/metadatas/2026-01/returns/update.json +36 -0
  162. package/metadatas/2026-01/reverse_deliveries/attach_deliverable.json +37 -0
  163. package/metadatas/2026-01/reverse_fulfillment_orders/dispose.json +48 -0
  164. package/metadatas/2026-01/scheduled_product_listings/add.json +105 -0
  165. package/metadatas/2026-01/scheduled_product_listings/remove.json +20 -0
  166. package/metadatas/2026-01/scheduled_product_listings/update.json +105 -0
  167. package/metadatas/2026-01/segments/create.json +21 -0
  168. package/metadatas/2026-01/segments/delete.json +17 -0
  169. package/metadatas/2026-01/segments/update.json +21 -0
  170. package/metadatas/2026-01/selling_plan_groups/create.json +55 -0
  171. package/metadatas/2026-01/selling_plan_groups/delete.json +19 -0
  172. package/metadatas/2026-01/selling_plan_groups/update.json +55 -0
  173. package/metadatas/2026-01/shipping_addresses/create.json +16 -0
  174. package/metadatas/2026-01/shipping_addresses/update.json +16 -0
  175. package/metadatas/2026-01/shop/redact.json +14 -0
  176. package/metadatas/2026-01/shop/update.json +70 -0
  177. package/metadatas/2026-01/subscription_billing_attempts/challenged.json +19 -0
  178. package/metadatas/2026-01/subscription_billing_attempts/failure.json +19 -0
  179. package/metadatas/2026-01/subscription_billing_attempts/success.json +19 -0
  180. package/metadatas/2026-01/subscription_billing_cycle_edits/create.json +25 -0
  181. package/metadatas/2026-01/subscription_billing_cycle_edits/delete.json +25 -0
  182. package/metadatas/2026-01/subscription_billing_cycle_edits/update.json +25 -0
  183. package/metadatas/2026-01/subscription_billing_cycles/skip.json +25 -0
  184. package/metadatas/2026-01/subscription_billing_cycles/unskip.json +25 -0
  185. package/metadatas/2026-01/subscription_contracts/activate.json +36 -0
  186. package/metadatas/2026-01/subscription_contracts/cancel.json +36 -0
  187. package/metadatas/2026-01/subscription_contracts/create.json +36 -0
  188. package/metadatas/2026-01/subscription_contracts/expire.json +36 -0
  189. package/metadatas/2026-01/subscription_contracts/fail.json +36 -0
  190. package/metadatas/2026-01/subscription_contracts/pause.json +36 -0
  191. package/metadatas/2026-01/subscription_contracts/update.json +36 -0
  192. package/metadatas/2026-01/tax_services/create.json +21 -0
  193. package/metadatas/2026-01/tax_services/update.json +21 -0
  194. package/metadatas/2026-01/tender_transactions/create.json +30 -0
  195. package/metadatas/2026-01/themes/create.json +26 -0
  196. package/metadatas/2026-01/themes/delete.json +18 -0
  197. package/metadatas/2026-01/themes/publish.json +26 -0
  198. package/metadatas/2026-01/themes/update.json +26 -0
  199. package/metadatas/2026-01/variants/in_stock.json +36 -0
  200. package/metadatas/2026-01/variants/out_of_stock.json +36 -0
  201. package/package.json +1 -1
  202. package/schemas/2025-04/orders/cancelled.json +18 -1
  203. package/schemas/2025-04/orders/create.json +18 -1
  204. package/schemas/2025-04/orders/fulfilled.json +18 -1
  205. package/schemas/2025-04/orders/paid.json +18 -1
  206. package/schemas/2025-04/orders/partially_fulfilled.json +18 -1
  207. package/schemas/2025-04/orders/shopify_protect_eligibility_changed.json +0 -3
  208. package/schemas/2025-04/orders/updated.json +18 -1
  209. package/schemas/2026-01/app/scopes_update.json +36 -0
  210. package/schemas/2026-01/app/uninstalled.json +282 -0
  211. package/schemas/2026-01/app_purchases_one_time/update.json +44 -0
  212. package/schemas/2026-01/app_subscriptions/approaching_capped_amount.json +67 -0
  213. package/schemas/2026-01/app_subscriptions/update.json +64 -0
  214. package/schemas/2026-01/audit_events/admin_api_activity.json +202 -0
  215. package/schemas/2026-01/bulk_operations/finish.json +38 -0
  216. package/schemas/2026-01/carts/create.json +321 -0
  217. package/schemas/2026-01/carts/update.json +321 -0
  218. package/schemas/2026-01/channels/delete.json +12 -0
  219. package/schemas/2026-01/checkouts/create.json +1296 -0
  220. package/schemas/2026-01/checkouts/delete.json +90 -0
  221. package/schemas/2026-01/checkouts/update.json +1296 -0
  222. package/schemas/2026-01/collection_listings/add.json +60 -0
  223. package/schemas/2026-01/collection_listings/remove.json +27 -0
  224. package/schemas/2026-01/collection_listings/update.json +60 -0
  225. package/schemas/2026-01/collection_publications/create.json +45 -0
  226. package/schemas/2026-01/collection_publications/delete.json +12 -0
  227. package/schemas/2026-01/collection_publications/update.json +45 -0
  228. package/schemas/2026-01/collections/create.json +97 -0
  229. package/schemas/2026-01/collections/delete.json +21 -0
  230. package/schemas/2026-01/collections/update.json +97 -0
  231. package/schemas/2026-01/companies/create.json +45 -0
  232. package/schemas/2026-01/companies/delete.json +45 -0
  233. package/schemas/2026-01/companies/update.json +45 -0
  234. package/schemas/2026-01/company_contact_roles/assign.json +387 -0
  235. package/schemas/2026-01/company_contact_roles/revoke.json +387 -0
  236. package/schemas/2026-01/company_contacts/create.json +81 -0
  237. package/schemas/2026-01/company_contacts/delete.json +81 -0
  238. package/schemas/2026-01/company_contacts/update.json +81 -0
  239. package/schemas/2026-01/company_locations/create.json +334 -0
  240. package/schemas/2026-01/company_locations/delete.json +334 -0
  241. package/schemas/2026-01/company_locations/update.json +334 -0
  242. package/schemas/2026-01/customer.joined_segment.json +23 -0
  243. package/schemas/2026-01/customer.left_segment.json +23 -0
  244. package/schemas/2026-01/customer.tags_added.json +25 -0
  245. package/schemas/2026-01/customer.tags_removed.json +25 -0
  246. package/schemas/2026-01/customer_account_settings/update.json +28 -0
  247. package/schemas/2026-01/customer_groups/create.json +30 -0
  248. package/schemas/2026-01/customer_groups/delete.json +12 -0
  249. package/schemas/2026-01/customer_groups/update.json +30 -0
  250. package/schemas/2026-01/customer_payment_methods/create.json +63 -0
  251. package/schemas/2026-01/customer_payment_methods/revoke.json +63 -0
  252. package/schemas/2026-01/customer_payment_methods/update.json +63 -0
  253. package/schemas/2026-01/customers/create.json +242 -0
  254. package/schemas/2026-01/customers/data_request.json +56 -0
  255. package/schemas/2026-01/customers/delete.json +24 -0
  256. package/schemas/2026-01/customers/disable.json +242 -0
  257. package/schemas/2026-01/customers/enable.json +242 -0
  258. package/schemas/2026-01/customers/merge.json +56 -0
  259. package/schemas/2026-01/customers/purchasing_summary.json +43 -0
  260. package/schemas/2026-01/customers/redact.json +44 -0
  261. package/schemas/2026-01/customers/update.json +242 -0
  262. package/schemas/2026-01/customers_email_marketing_consent/update.json +44 -0
  263. package/schemas/2026-01/customers_marketing_consent/update.json +53 -0
  264. package/schemas/2026-01/delivery_promise_settings/update.json +21 -0
  265. package/schemas/2026-01/discounts/create.json +31 -0
  266. package/schemas/2026-01/discounts/delete.json +18 -0
  267. package/schemas/2026-01/discounts/redeemcode_added.json +35 -0
  268. package/schemas/2026-01/discounts/redeemcode_removed.json +35 -0
  269. package/schemas/2026-01/discounts/update.json +31 -0
  270. package/schemas/2026-01/disputes/create.json +66 -0
  271. package/schemas/2026-01/disputes/update.json +66 -0
  272. package/schemas/2026-01/domains/create.json +44 -0
  273. package/schemas/2026-01/domains/destroy.json +44 -0
  274. package/schemas/2026-01/domains/update.json +44 -0
  275. package/schemas/2026-01/draft_orders/create.json +1780 -0
  276. package/schemas/2026-01/draft_orders/delete.json +12 -0
  277. package/schemas/2026-01/draft_orders/update.json +1780 -0
  278. package/schemas/2026-01/finance_app_staff_member/delete.json +4 -0
  279. package/schemas/2026-01/finance_app_staff_member/grant.json +4 -0
  280. package/schemas/2026-01/finance_app_staff_member/revoke.json +4 -0
  281. package/schemas/2026-01/finance_app_staff_member/update.json +4 -0
  282. package/schemas/2026-01/finance_kyc_information/update.json +4 -0
  283. package/schemas/2026-01/fulfillment_events/create.json +106 -0
  284. package/schemas/2026-01/fulfillment_events/delete.json +106 -0
  285. package/schemas/2026-01/fulfillment_holds/added.json +63 -0
  286. package/schemas/2026-01/fulfillment_holds/released.json +63 -0
  287. package/schemas/2026-01/fulfillment_orders/cancellation_request_accepted.json +29 -0
  288. package/schemas/2026-01/fulfillment_orders/cancellation_request_rejected.json +33 -0
  289. package/schemas/2026-01/fulfillment_orders/cancellation_request_submitted.json +46 -0
  290. package/schemas/2026-01/fulfillment_orders/cancelled.json +42 -0
  291. package/schemas/2026-01/fulfillment_orders/fulfillment_request_accepted.json +33 -0
  292. package/schemas/2026-01/fulfillment_orders/fulfillment_request_rejected.json +33 -0
  293. package/schemas/2026-01/fulfillment_orders/fulfillment_request_submitted.json +67 -0
  294. package/schemas/2026-01/fulfillment_orders/fulfillment_service_failed_to_complete.json +29 -0
  295. package/schemas/2026-01/fulfillment_orders/hold_released.json +25 -0
  296. package/schemas/2026-01/fulfillment_orders/line_items_prepared_for_local_delivery.json +41 -0
  297. package/schemas/2026-01/fulfillment_orders/line_items_prepared_for_pickup.json +41 -0
  298. package/schemas/2026-01/fulfillment_orders/merged.json +67 -0
  299. package/schemas/2026-01/fulfillment_orders/moved.json +90 -0
  300. package/schemas/2026-01/fulfillment_orders/order_routing_complete.json +25 -0
  301. package/schemas/2026-01/fulfillment_orders/placed_on_hold.json +396 -0
  302. package/schemas/2026-01/fulfillment_orders/rescheduled.json +30 -0
  303. package/schemas/2026-01/fulfillment_orders/scheduled_fulfillment_order_ready.json +25 -0
  304. package/schemas/2026-01/fulfillment_orders/split.json +326 -0
  305. package/schemas/2026-01/fulfillments/create.json +738 -0
  306. package/schemas/2026-01/fulfillments/update.json +738 -0
  307. package/schemas/2026-01/inventory_items/create.json +84 -0
  308. package/schemas/2026-01/inventory_items/delete.json +43 -0
  309. package/schemas/2026-01/inventory_items/update.json +84 -0
  310. package/schemas/2026-01/inventory_levels/connect.json +33 -0
  311. package/schemas/2026-01/inventory_levels/disconnect.json +16 -0
  312. package/schemas/2026-01/inventory_levels/update.json +33 -0
  313. package/schemas/2026-01/locales/create.json +16 -0
  314. package/schemas/2026-01/locales/update.json +16 -0
  315. package/schemas/2026-01/locations/activate.json +79 -0
  316. package/schemas/2026-01/locations/create.json +79 -0
  317. package/schemas/2026-01/locations/deactivate.json +79 -0
  318. package/schemas/2026-01/locations/delete.json +12 -0
  319. package/schemas/2026-01/locations/update.json +79 -0
  320. package/schemas/2026-01/markets/create.json +24 -0
  321. package/schemas/2026-01/markets/delete.json +12 -0
  322. package/schemas/2026-01/markets/update.json +24 -0
  323. package/schemas/2026-01/markets_backup_region/update.json +17 -0
  324. package/schemas/2026-01/metafield_definitions/create.json +133 -0
  325. package/schemas/2026-01/metafield_definitions/delete.json +21 -0
  326. package/schemas/2026-01/metafield_definitions/update.json +133 -0
  327. package/schemas/2026-01/metaobjects/create.json +82 -0
  328. package/schemas/2026-01/metaobjects/delete.json +26 -0
  329. package/schemas/2026-01/metaobjects/update.json +82 -0
  330. package/schemas/2026-01/order_transactions/create.json +246 -0
  331. package/schemas/2026-01/orders/cancelled.json +2781 -0
  332. package/schemas/2026-01/orders/create.json +2781 -0
  333. package/schemas/2026-01/orders/delete.json +12 -0
  334. package/schemas/2026-01/orders/edited.json +146 -0
  335. package/schemas/2026-01/orders/fulfilled.json +2781 -0
  336. package/schemas/2026-01/orders/paid.json +2781 -0
  337. package/schemas/2026-01/orders/partially_fulfilled.json +2781 -0
  338. package/schemas/2026-01/orders/risk_assessment_changed.json +49 -0
  339. package/schemas/2026-01/orders/shopify_protect_eligibility_changed.json +38 -0
  340. package/schemas/2026-01/orders/updated.json +2781 -0
  341. package/schemas/2026-01/payment_schedules/due.json +70 -0
  342. package/schemas/2026-01/payment_terms/create.json +115 -0
  343. package/schemas/2026-01/payment_terms/delete.json +12 -0
  344. package/schemas/2026-01/payment_terms/update.json +115 -0
  345. package/schemas/2026-01/product_feeds/create.json +25 -0
  346. package/schemas/2026-01/product_feeds/full_sync.json +367 -0
  347. package/schemas/2026-01/product_feeds/full_sync_finish.json +97 -0
  348. package/schemas/2026-01/product_feeds/incremental_sync.json +362 -0
  349. package/schemas/2026-01/product_feeds/update.json +25 -0
  350. package/schemas/2026-01/product_listings/add.json +221 -0
  351. package/schemas/2026-01/product_listings/remove.json +20 -0
  352. package/schemas/2026-01/product_listings/update.json +221 -0
  353. package/schemas/2026-01/product_publications/create.json +45 -0
  354. package/schemas/2026-01/product_publications/delete.json +12 -0
  355. package/schemas/2026-01/product_publications/update.json +45 -0
  356. package/schemas/2026-01/products/create.json +500 -0
  357. package/schemas/2026-01/products/delete.json +12 -0
  358. package/schemas/2026-01/products/update.json +500 -0
  359. package/schemas/2026-01/profiles/create.json +4 -0
  360. package/schemas/2026-01/profiles/delete.json +4 -0
  361. package/schemas/2026-01/profiles/update.json +4 -0
  362. package/schemas/2026-01/refunds/create.json +1386 -0
  363. package/schemas/2026-01/returns/approve.json +139 -0
  364. package/schemas/2026-01/returns/cancel.json +25 -0
  365. package/schemas/2026-01/returns/close.json +25 -0
  366. package/schemas/2026-01/returns/decline.json +54 -0
  367. package/schemas/2026-01/returns/reopen.json +25 -0
  368. package/schemas/2026-01/returns/request.json +65 -0
  369. package/schemas/2026-01/returns/update.json +77 -0
  370. package/schemas/2026-01/reverse_deliveries/attach_deliverable.json +78 -0
  371. package/schemas/2026-01/reverse_fulfillment_orders/dispose.json +78 -0
  372. package/schemas/2026-01/scheduled_product_listings/add.json +220 -0
  373. package/schemas/2026-01/scheduled_product_listings/remove.json +20 -0
  374. package/schemas/2026-01/scheduled_product_listings/update.json +220 -0
  375. package/schemas/2026-01/segments/create.json +30 -0
  376. package/schemas/2026-01/segments/delete.json +12 -0
  377. package/schemas/2026-01/segments/update.json +30 -0
  378. package/schemas/2026-01/selling_plan_groups/create.json +216 -0
  379. package/schemas/2026-01/selling_plan_groups/delete.json +17 -0
  380. package/schemas/2026-01/selling_plan_groups/update.json +216 -0
  381. package/schemas/2026-01/shipping_addresses/create.json +63 -0
  382. package/schemas/2026-01/shipping_addresses/update.json +63 -0
  383. package/schemas/2026-01/shop/redact.json +16 -0
  384. package/schemas/2026-01/shop/update.json +283 -0
  385. package/schemas/2026-01/subscription_billing_attempts/challenged.json +4 -0
  386. package/schemas/2026-01/subscription_billing_attempts/failure.json +4 -0
  387. package/schemas/2026-01/subscription_billing_attempts/success.json +4 -0
  388. package/schemas/2026-01/subscription_billing_cycle_edits/create.json +46 -0
  389. package/schemas/2026-01/subscription_billing_cycle_edits/delete.json +46 -0
  390. package/schemas/2026-01/subscription_billing_cycle_edits/update.json +46 -0
  391. package/schemas/2026-01/subscription_billing_cycles/skip.json +46 -0
  392. package/schemas/2026-01/subscription_billing_cycles/unskip.json +46 -0
  393. package/schemas/2026-01/subscription_contracts/activate.json +93 -0
  394. package/schemas/2026-01/subscription_contracts/cancel.json +93 -0
  395. package/schemas/2026-01/subscription_contracts/create.json +93 -0
  396. package/schemas/2026-01/subscription_contracts/expire.json +93 -0
  397. package/schemas/2026-01/subscription_contracts/fail.json +93 -0
  398. package/schemas/2026-01/subscription_contracts/pause.json +93 -0
  399. package/schemas/2026-01/subscription_contracts/update.json +93 -0
  400. package/schemas/2026-01/tax_services/create.json +25 -0
  401. package/schemas/2026-01/tax_services/update.json +25 -0
  402. package/schemas/2026-01/tender_transactions/create.json +69 -0
  403. package/schemas/2026-01/themes/create.json +50 -0
  404. package/schemas/2026-01/themes/delete.json +12 -0
  405. package/schemas/2026-01/themes/publish.json +50 -0
  406. package/schemas/2026-01/themes/update.json +50 -0
  407. package/schemas/2026-01/variants/in_stock.json +87 -0
  408. package/schemas/2026-01/variants/out_of_stock.json +87 -0
  409. package/dist/src/anonymize-exemplars.d.ts +0 -1
  410. package/dist/src/anonymize-exemplars.js +0 -51
  411. package/dist/src/index.d.ts +0 -9
  412. package/dist/src/index.js +0 -54
  413. package/dist/src/infer-schema.d.ts +0 -19
  414. package/dist/src/infer-schema.js +0 -812
  415. package/dist/src/scrape.d.ts +0 -1
  416. package/dist/src/scrape.js +0 -173
@@ -1,812 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.overrides = exports.manualExamples = exports.inferSchemaFromExamplePayload = exports.getStartVersion = void 0;
4
- const json_schema_walker_1 = require("@cloudflare/json-schema-walker");
5
- const schema_infer_1 = require("@jsonhero/schema-infer");
6
- const lodash_1 = require("lodash");
7
- const safe_stable_stringify_1 = require("safe-stable-stringify");
8
- const stringify = (0, safe_stable_stringify_1.configure)({ deterministic: true });
9
- const getStartVersion = (date = new Date()) => {
10
- const year = date.getUTCFullYear();
11
- const month = date.getUTCMonth() + 1; // 1-12
12
- // Map month to quarter
13
- let quarter;
14
- if (month <= 3)
15
- quarter = 1; // Jan-Mar -> Q1 (01)
16
- else if (month <= 6)
17
- quarter = 2; // Apr-Jun -> Q2 (04)
18
- else if (month <= 9)
19
- quarter = 3; // Jul-Sep -> Q3 (07)
20
- else
21
- quarter = 4; // Oct-Dec -> Q4 (10)
22
- // Go back 3 quarters (4 quarters including current)
23
- let targetYear = year;
24
- let targetQuarter = quarter - 3;
25
- // Handle year wraparound
26
- while (targetQuarter <= 0) {
27
- targetQuarter += 4;
28
- targetYear -= 1;
29
- }
30
- // Map quarter to month string
31
- const quarterToMonth = { 1: "01", 2: "04", 3: "07", 4: "10" };
32
- return `${targetYear}-${quarterToMonth[targetQuarter]}`;
33
- };
34
- exports.getStartVersion = getStartVersion;
35
- const inferSchemaFromExamplePayload = (version, examplePayload, metadata) => {
36
- const inference = (0, schema_infer_1.inferSchema)(examplePayload);
37
- // build a copy of the payload and apply overrides based on the webhook name
38
- for (const [matcher, override] of exports.manualExamples) {
39
- if (matcher.test(metadata.name)) {
40
- const overridesPayload = (0, lodash_1.cloneDeep)(examplePayload);
41
- const maskedOverride = (0, lodash_1.pick)(override, Object.keys(examplePayload));
42
- (0, lodash_1.merge)(overridesPayload, maskedOverride);
43
- inference.infer(overridesPayload);
44
- }
45
- }
46
- const schema = {
47
- $schema: "https://json-schema.org/draft/2020-12/schema",
48
- ...inference.toJSONSchema(),
49
- };
50
- for (const override of exports.overrides) {
51
- if (override.topics.includes(metadata.name) && (!override.versions || override.versions.includes(version))) {
52
- for (const [key, schemaOverride] of Object.entries(override.schema)) {
53
- schema.properties ?? (schema.properties = {});
54
- schema.properties[key] = schemaOverride;
55
- }
56
- if (override.required) {
57
- schema.required = override.required;
58
- }
59
- }
60
- }
61
- const sortedSchema = getDeterministicObject(schema);
62
- let warnings = 0;
63
- const errors = [];
64
- (0, json_schema_walker_1.schemaWalk)(sortedSchema, (subschema, path, _parent, parentPath) => {
65
- if ((0, lodash_1.isEqual)(subschema, { type: "null" })) {
66
- warnings += 1;
67
- const fullPath = [...parentPath, ...path].join(".");
68
- if (unknownPaths.some(([pattern, paths]) => pattern.test(metadata.name) && paths.includes(fullPath))) {
69
- // we know this path is always null, so don't error
70
- }
71
- else {
72
- errors.push({
73
- message: "null type found in final schema",
74
- path: fullPath,
75
- });
76
- }
77
- }
78
- }, () => { }, (0, json_schema_walker_1.getVocabulary)(sortedSchema));
79
- return { schema: sortedSchema, warnings, errors };
80
- };
81
- exports.inferSchemaFromExamplePayload = inferSchemaFromExamplePayload;
82
- const getDeterministicObject = (obj) => {
83
- const stableString = stringify(sortStringArrays(obj));
84
- return JSON.parse(stableString);
85
- };
86
- const sortStringArrays = (obj) => {
87
- return (0, lodash_1.cloneDeepWith)(obj, (value) => {
88
- if (Array.isArray(value) && value.every((item) => typeof item === "string")) {
89
- return value.sort();
90
- }
91
- });
92
- };
93
- // paths that we can't find any source data for at all, so we don't know what type they should be
94
- const unknownPaths = [
95
- [
96
- /checkouts\/.+/,
97
- [
98
- "properties.line_items.items.properties.unit_price_measurement.properties.measured_type",
99
- "properties.line_items.items.properties.unit_price_measurement.properties.quantity_value",
100
- "properties.line_items.items.properties.unit_price_measurement.properties.quantity_unit",
101
- "properties.line_items.items.properties.unit_price_measurement.properties.reference_value",
102
- "properties.line_items.items.properties.unit_price_measurement.properties.reference_unit",
103
- "properties.line_items.items.properties.tax_lines.items.properties.reporting_jurisdiction_name",
104
- "properties.line_items.items.properties.tax_lines.items.properties.reporting_jurisdiction_type",
105
- "properties.line_items.items.properties.tax_lines.items.properties.reporting_jurisdiction_code",
106
- "properties.line_items.items.properties.user_id",
107
- "properties.line_items.items.properties.compare_at_price",
108
- "properties.gateway",
109
- "properties.shipping_lines.items.properties.delivery_category",
110
- "properties.shipping_lines.items.properties.validation_context",
111
- "properties.shipping_lines.items.properties.requested_fulfillment_service_id",
112
- "properties.shipping_lines.items.properties.tax_lines.items.properties.identifier",
113
- "properties.shipping_lines.items.properties.tax_lines.items.properties.reporting_jurisdiction_name",
114
- "properties.shipping_lines.items.properties.tax_lines.items.properties.tax_api_client_id",
115
- "properties.shipping_lines.items.properties.tax_lines.items.properties.reporting_exempt_amount",
116
- "properties.shipping_lines.items.properties.tax_lines.items.properties.jurisdiction_source",
117
- "properties.shipping_lines.items.properties.tax_lines.items.properties.reporting_jurisdiction_code",
118
- "properties.shipping_lines.items.properties.tax_lines.items.properties.reporting_jurisdiction_type",
119
- "properties.shipping_lines.items.properties.tax_lines.items.properties.reporting_taxable_amount",
120
- "properties.shipping_lines.items.properties.tax_lines.items.properties.jurisdiction_type",
121
- "properties.shipping_lines.items.properties.tax_lines.items.properties.tax_type",
122
- "properties.shipping_lines.items.properties.tax_lines.items.properties.jurisdiction_id",
123
- "properties.shipping_lines.items.properties.tax_lines.items.properties.reporting_non_taxable_amount",
124
- "properties.shipping_lines.items.properties.custom_tax_lines",
125
- "properties.shipping_lines.items.properties.estimated_delivery_time_range",
126
- "properties.line_items.items.properties.tax_lines.items.properties.tax_type",
127
- "properties.line_items.items.properties.tax_lines.items.properties.identifier",
128
- "properties.line_items.items.properties.discount_allocations.items.properties.id",
129
- "properties.line_items.items.properties.discount_allocations.items.properties.created_at",
130
- ],
131
- ],
132
- [
133
- /collection_listings\/.+/,
134
- ["properties.collection_listing.properties.default_product_image", "properties.collection_listing.properties.image"],
135
- ],
136
- [/domains\/.+/, ["properties.localization.properties.country"]],
137
- [/orders\/.+/, ["properties.client_details.properties.session_hash"]],
138
- ];
139
- // example data we feed the schema infer-er for each topic to allow it to discover real types
140
- exports.manualExamples = [
141
- [
142
- /.+/,
143
- {
144
- admin_graphql_api_id: "gid://shopify/Something/1234567890",
145
- admin_graphql_api_job_id: "gid://shopify/Job/1234567890",
146
- created_at: "2021-12-30T19:00:00-05:00",
147
- updated_at: "2021-12-30T19:00:00-05:00",
148
- address2: "Apt 123",
149
- latitude: 10.1,
150
- longitude: 10.1,
151
- location_id: 111111,
152
- },
153
- ],
154
- [
155
- /(app|shop)\/.+/,
156
- {
157
- domain: "example.com",
158
- source: "example source",
159
- myshopify_domain: "example.myshopify.com",
160
- google_apps_domain: "example.com",
161
- google_apps_login_enabled: true,
162
- password_enabled: true,
163
- taxes_included: true,
164
- tax_shipping: true,
165
- iana_timezone: "America/New_York",
166
- auto_configure_tax_inclusivity: true,
167
- county_taxes: true,
168
- },
169
- ],
170
- [
171
- /bulk_operations\/.+/,
172
- {
173
- error_code: "SOME_ERROR_ENUM",
174
- },
175
- ],
176
- [
177
- /carts\/.+/,
178
- {
179
- note: "some cart note string",
180
- },
181
- ],
182
- [
183
- /(checkouts|orders)\/.+/,
184
- {
185
- gateway: "shopify_payments",
186
- landing_site: "https://example.com",
187
- note: "some order note",
188
- referring_site: "https://example.com",
189
- completed_at: "2021-12-30T19:00:00-05:00",
190
- closed_at: "2021-12-30T19:00:00-05:00",
191
- user_id: 11111111,
192
- location_id: 22222222,
193
- source_identifier: "some_source_identifier",
194
- source_url: "https://example.com",
195
- device_id: "some_device_id",
196
- phone: "+1 (123) 456 7890",
197
- sms_marketing_phone: "+1 (123) 456 7890",
198
- customer_locale: "en",
199
- source: "some_source",
200
- total_duties: 10.11,
201
- app_id: 12345,
202
- browser_ip: "10.0.0.1",
203
- cart_token: "some_cart_token",
204
- checkout_id: 12345,
205
- client_details: {
206
- accept_language: "en-US,en;q=0.9",
207
- browser_height: 800,
208
- },
209
- confirmation_number: "some_confirmation_number",
210
- current_total_additional_fees_set: {
211
- shop_money: {
212
- amount: "0.00",
213
- currency_code: "USD",
214
- },
215
- presentment_money: {
216
- amount: "0.00",
217
- currency_code: "USD",
218
- },
219
- },
220
- current_total_duties_set: {
221
- shop_money: {
222
- amount: "0.00",
223
- currency_code: "USD",
224
- },
225
- presentment_money: {
226
- amount: "0.00",
227
- currency_code: "USD",
228
- },
229
- },
230
- original_total_additional_fees_set: {
231
- shop_money: {
232
- amount: "0.00",
233
- currency_code: "USD",
234
- },
235
- presentment_money: {
236
- amount: "0.00",
237
- currency_code: "USD",
238
- },
239
- },
240
- original_total_duties_set: {
241
- shop_money: {
242
- amount: "0.00",
243
- currency_code: "USD",
244
- },
245
- presentment_money: {
246
- amount: "0.00",
247
- currency_code: "USD",
248
- },
249
- },
250
- checkout_token: "some_checkout_token",
251
- landing_site_ref: "https://example.com",
252
- merchant_of_record_app_id: 12345,
253
- po_number: "some_po_number",
254
- processed_at: "2021-12-30T19:00:00-05:00",
255
- reference: "some_reference",
256
- payment_terms: "some_payment_terms",
257
- reservation_token: "some_reservation_token",
258
- billing_address: {
259
- address2: "suite 101",
260
- latitude: 34.1,
261
- longitude: 34.1,
262
- },
263
- shipping_address: {
264
- address2: "suite 101",
265
- latitude: 34.1,
266
- longitude: 34.1,
267
- },
268
- customer: {
269
- created_at: "2024-05-05T02:42:32+08:00",
270
- marketing_opt_in_level: "single_opt_in",
271
- note: "some string",
272
- multipass_identifier: "hello",
273
- },
274
- },
275
- ],
276
- [
277
- /checkouts\/.+/,
278
- {
279
- line_items: [
280
- {
281
- presentment_variant_title: "51 x 76 / Blanc / 1",
282
- taxable: true,
283
- variant_price: "69.00",
284
- presentment_title: "Taie d'oreiller Pure Soie de Mûrier",
285
- requires_shipping: true,
286
- unit_price_measurement: {
287
- measured_type: null,
288
- quantity_unit: null,
289
- quantity_value: null,
290
- reference_unit: null,
291
- reference_value: null,
292
- },
293
- variant_title: "51 x 76 / Blanc / 1",
294
- title: "Taie d'oreiller Pure Soie de Mûrier",
295
- gift_card: false,
296
- destination_location_id: 4042942054746,
297
- compare_at_price: null,
298
- key: "e0105d4efb1970501cf831566fa79752",
299
- line_price: "69.00",
300
- vendor: "Emily's pillow",
301
- quantity: 1,
302
- applied_discounts: [],
303
- grams: 110,
304
- properties: [
305
- {
306
- name: "_isJust",
307
- value: "true",
308
- },
309
- ],
310
- tax_lines: [
311
- {
312
- reporting_jurisdiction_type: null,
313
- reporting_non_taxable_amount: "0.00",
314
- zone: null,
315
- compare_at: 0.2,
316
- reporting_taxable_amount: "57.50",
317
- tax_api_client_id: null,
318
- jurisdiction_source: "ActiveTax",
319
- title: "FR TVA",
320
- identifier: null,
321
- jurisdiction_type: "COUNTRY",
322
- reporting_jurisdiction_code: null,
323
- source: "MerchantActiveTax",
324
- reporting_exempt_amount: "0.00",
325
- reporting_jurisdiction_name: null,
326
- jurisdiction_id: "FR",
327
- tax_type: null,
328
- channel_liable: false,
329
- price: "11.50",
330
- rate: 0.2,
331
- position: 1,
332
- tax_calculation_price: "11.50",
333
- },
334
- ],
335
- sku: "EMIL-TO5176-22WH",
336
- rank: 0,
337
- user_id: null,
338
- product_id: 4610455470216,
339
- discount_allocations: [],
340
- origin_location_id: 1743669821576,
341
- fulfillment_service: "manual",
342
- variant_id: 32516187029640,
343
- price: "69.00",
344
- },
345
- ],
346
- },
347
- ],
348
- [
349
- /collections\/.+/,
350
- {
351
- sort_order: "manual",
352
- template_suffix: "some_template_suffix",
353
- },
354
- ],
355
- [
356
- /collection_listings\/.+/,
357
- {
358
- collection_listing: {
359
- updated_at: "2021-12-30T19:00:00-05:00",
360
- sort_order: 1,
361
- },
362
- },
363
- ],
364
- [
365
- /company_locations\/.+/,
366
- {
367
- buyer_experience_configuration: { pay_now_only: true },
368
- billing_address: {
369
- address2: "suite 101",
370
- },
371
- shipping_address: {
372
- address2: "suite 101",
373
- },
374
- },
375
- ],
376
- [
377
- /customers\/.+/,
378
- {
379
- last_order_id: 12345,
380
- multipass_identifier: "some_multipass_identifier",
381
- last_order_name: "Foobar",
382
- phone: "+1 (123) 456 7890",
383
- sms_marketing_consent: false,
384
- email_marketing_consent: false,
385
- accepts_marketing_updated_at: "2021-12-30T19:00:00-05:00",
386
- marketing_opt_in_level: "single_opt_in",
387
- },
388
- ],
389
- [
390
- /customer_account_settings\/.+/,
391
- {
392
- url: "https://example.com",
393
- },
394
- ],
395
- [
396
- /customer.+consent\/.+/,
397
- {
398
- phone: "+1 (123) 456 7890",
399
- email_address: "test@test.com",
400
- },
401
- ],
402
- [
403
- /disputes\/.+/,
404
- {
405
- evidence_sent_on: "2021-12-30T19:00:00-05:00",
406
- finalized_on: "2021-12-30T19:00:00-05:00",
407
- },
408
- ],
409
- [
410
- /draft_orders\/.+/,
411
- {
412
- invoice_sent_at: "2021-12-30T19:00:00-05:00",
413
- order_id: 12345,
414
- },
415
- ],
416
- [
417
- /fulfillment_events\/.+/,
418
- {
419
- city: "Ottawa",
420
- province: "ON",
421
- zip: "K1P1J1",
422
- address1: "150 Elgin St",
423
- estimated_delivery_at: "2021-12-30T19:00:00-05:00",
424
- },
425
- ],
426
- [
427
- /fulfillment_orders\/.+/,
428
- {
429
- remaining_fulfillment_order: {
430
- id: 5859333242902,
431
- shop_id: 20978040854,
432
- order_id: 4804938989590,
433
- assigned_location_id: 67794436118,
434
- request_status: "unsubmitted",
435
- status: "open",
436
- supported_actions: ["request_fulfillment", "hold", "move"],
437
- destination: {
438
- id: 5479404371990,
439
- address1: "23 Hassall Street",
440
- address2: "",
441
- city: "Parramatta",
442
- company: null,
443
- country: "Australia",
444
- email: "",
445
- first_name: "Tyler",
446
- last_name: "Kelleher",
447
- phone: null,
448
- province: "New South Wales",
449
- zip: "2150",
450
- },
451
- line_items: [
452
- {
453
- id: 12675478814742,
454
- shop_id: 20978040854,
455
- fulfillment_order_id: 5859333242902,
456
- quantity: 1,
457
- line_item_id: 12553770336278,
458
- inventory_item_id: 44276125368342,
459
- fulfillable_quantity: 1,
460
- variant_id: 42182036422678,
461
- },
462
- ],
463
- fulfill_at: "2022-10-13T13:00:00-04:00",
464
- fulfill_by: null,
465
- international_duties: {
466
- incoterm: "DAP",
467
- },
468
- fulfillment_holds: [],
469
- delivery_method: {
470
- id: 140816351254,
471
- method_type: "shipping",
472
- min_delivery_date_time: null,
473
- max_delivery_date_time: null,
474
- },
475
- assigned_location: {
476
- address1: null,
477
- address2: null,
478
- city: null,
479
- country_code: "CA",
480
- location_id: 67794436118,
481
- name: "test-created-via-api-2",
482
- phone: null,
483
- province: null,
484
- zip: null,
485
- },
486
- },
487
- },
488
- ],
489
- [
490
- /fulfillments\/.+/,
491
- {
492
- service: "manual",
493
- shipment_status: "confirmed",
494
- origin_address: {
495
- first_name: "Steve",
496
- address1: "123 Shipping Street",
497
- phone: "555-555-SHIP",
498
- city: "Shippington",
499
- zip: "40003",
500
- province: "Kentucky",
501
- country: "United States",
502
- last_name: "Shipper",
503
- address2: null,
504
- company: "Shipping Company",
505
- latitude: null,
506
- longitude: null,
507
- name: "Steve Shipper",
508
- country_code: "US",
509
- province_code: "KY",
510
- },
511
- },
512
- ],
513
- [
514
- /inventory_items\/.+/,
515
- {
516
- cost: 10.11,
517
- country_code_of_origin: "CA",
518
- province_code_of_origin: "CA",
519
- harmonized_system_code: "1234567890",
520
- },
521
- ],
522
- [
523
- /inventory_levels\/.+/,
524
- {
525
- available: 10,
526
- },
527
- ],
528
- [
529
- /order_transactions\/.+/,
530
- {
531
- message: "some message from the gateway",
532
- user_id: 12345,
533
- parent_id: 12345,
534
- processed_at: "2021-12-30T19:00:00-05:00",
535
- device_id: "some_device_id",
536
- error_code: "SOME_ERROR_ENUM",
537
- },
538
- ],
539
- [
540
- /orders\/risk_assessment.+/,
541
- {
542
- provider_id: 12345,
543
- provider_title: "whatever",
544
- },
545
- ],
546
- [
547
- /products\/.+/,
548
- {
549
- template_suffix: "something",
550
- image: "gid://shopify/ProductImage/1234567890",
551
- },
552
- ],
553
- [
554
- /refunds\/.+/,
555
- {
556
- return: "unknown",
557
- },
558
- ],
559
- [
560
- /selling_plan_groups\/.+/,
561
- {
562
- app_id: 12345,
563
- description: "some description",
564
- position: 1,
565
- },
566
- ],
567
- [
568
- /subscription_billing_attempts\/.+/,
569
- {
570
- id: 12345,
571
- error_message: "some error message",
572
- error_code: "some error copde",
573
- },
574
- ],
575
- [
576
- /subscription_billing_cycle.+/,
577
- {
578
- contract_edit: "some contract edit",
579
- },
580
- ],
581
- [
582
- /tender_transactions\/.+/,
583
- {
584
- user_id: 12345,
585
- processed_at: "2021-12-30T19:00:00-05:00",
586
- payment_details: { something: "true" },
587
- },
588
- ],
589
- ];
590
- const shippingAddress = {
591
- type: "object",
592
- properties: {
593
- first_name: {
594
- type: "string",
595
- },
596
- address1: {
597
- type: "string",
598
- },
599
- phone: {
600
- type: "string",
601
- },
602
- city: {
603
- type: "string",
604
- },
605
- zip: {
606
- type: "string",
607
- },
608
- province: {
609
- type: "string",
610
- },
611
- country: {
612
- type: "string",
613
- },
614
- last_name: {
615
- type: "string",
616
- },
617
- address2: {
618
- type: ["string", "null"],
619
- },
620
- company: {
621
- type: ["string", "null"],
622
- },
623
- latitude: {
624
- type: ["number", "null"],
625
- },
626
- longitude: {
627
- type: ["number", "null"],
628
- },
629
- name: {
630
- type: "string",
631
- },
632
- country_code: {
633
- type: "string",
634
- },
635
- province_code: {
636
- type: "string",
637
- },
638
- },
639
- };
640
- exports.overrides = [
641
- {
642
- topics: ["checkouts/create", "checkouts/update"],
643
- schema: {
644
- shipping_address: shippingAddress,
645
- },
646
- },
647
- {
648
- topics: ["order_transactions/create", "order_transactions/update"],
649
- schema: {
650
- receipt: {
651
- type: "object",
652
- additionalProperties: true,
653
- },
654
- },
655
- },
656
- {
657
- topics: ["collections/create", "collections/update"],
658
- schema: {
659
- image: {
660
- type: "object",
661
- properties: {
662
- alt: { type: "string" },
663
- created_at: { type: "string" },
664
- height: { type: "number" },
665
- src: { type: "string" },
666
- width: { type: "number" },
667
- },
668
- },
669
- rules: {
670
- type: "array",
671
- items: {
672
- type: "object",
673
- properties: {
674
- column: { type: "string" },
675
- relation: { type: "string" },
676
- condition: { type: "string" },
677
- },
678
- },
679
- },
680
- disjunctive: { type: "boolean" },
681
- },
682
- },
683
- {
684
- topics: ["fulfillments/create", "fulfillments/update"],
685
- schema: {
686
- origin_address: {
687
- address1: { type: "string" },
688
- city: { type: "string" },
689
- country_code: { type: "string" },
690
- province_code: { type: "string" },
691
- zip: { type: "string" },
692
- },
693
- },
694
- },
695
- {
696
- topics: ["products/create", "products/update"],
697
- schema: {
698
- image: {
699
- properties: {
700
- admin_graphql_api_id: {
701
- format: "uri",
702
- type: "string",
703
- },
704
- alt: {
705
- type: ["string", "null"],
706
- },
707
- created_at: {
708
- format: "date-time",
709
- type: "string",
710
- },
711
- height: {
712
- type: "integer",
713
- },
714
- id: {
715
- type: "integer",
716
- },
717
- position: {
718
- type: "integer",
719
- },
720
- product_id: {
721
- type: "integer",
722
- },
723
- src: {
724
- format: "uri",
725
- type: "string",
726
- },
727
- updated_at: {
728
- format: "date-time",
729
- type: "string",
730
- },
731
- variant_ids: {
732
- items: {
733
- type: "integer",
734
- },
735
- type: "array",
736
- },
737
- width: {
738
- type: "integer",
739
- },
740
- },
741
- required: [
742
- "admin_graphql_api_id",
743
- "alt",
744
- "created_at",
745
- "height",
746
- "id",
747
- "position",
748
- "product_id",
749
- "src",
750
- "updated_at",
751
- "variant_ids",
752
- "width",
753
- ],
754
- type: "object",
755
- },
756
- },
757
- },
758
- {
759
- topics: ["inventory_levels/connect", "inventory_levels/update"],
760
- schema: {
761
- admin_graphql_api_id: {
762
- format: "uri",
763
- type: "string",
764
- },
765
- available: {
766
- type: ["integer", "null"],
767
- },
768
- inventory_item_id: {
769
- type: "integer",
770
- },
771
- location_id: {
772
- type: "integer",
773
- },
774
- updated_at: {
775
- format: "date-time",
776
- type: "string",
777
- },
778
- },
779
- required: ["admin_graphql_api_id", "available", "inventory_item_id", "location_id", "updated_at"],
780
- },
781
- {
782
- topics: ["shipping_addresses/create", "shipping_addresses/update"],
783
- schema: {
784
- ...shippingAddress.properties,
785
- },
786
- },
787
- {
788
- topics: ["refunds/create"],
789
- schema: {
790
- return: {
791
- anyOf: [
792
- {
793
- type: "null",
794
- },
795
- {
796
- properties: {
797
- admin_graphql_api_id: {
798
- format: "uri",
799
- type: "string",
800
- },
801
- id: {
802
- type: "integer",
803
- },
804
- },
805
- required: ["admin_graphql_api_id", "id"],
806
- type: "object",
807
- },
808
- ],
809
- },
810
- },
811
- },
812
- ];