shopify-webhook-schemas 0.2.3 → 0.2.5

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 (275) hide show
  1. package/dist/src/infer-schema.d.ts +2 -1
  2. package/dist/src/infer-schema.js +35 -3
  3. package/dist/src/scrape.js +1 -1
  4. package/metadatas/2024-10/app/scopes_update.json +1 -0
  5. package/metadatas/2024-10/app_purchases_one_time/update.json +1 -1
  6. package/metadatas/2024-10/app_subscriptions/approaching_capped_amount.json +1 -1
  7. package/metadatas/2024-10/app_subscriptions/update.json +1 -1
  8. package/metadatas/2024-10/bulk_operations/finish.json +1 -1
  9. package/metadatas/2024-10/checkouts/create.json +10 -10
  10. package/metadatas/2024-10/checkouts/update.json +10 -10
  11. package/metadatas/2024-10/customer.tags_added.json +1 -1
  12. package/metadatas/2024-10/customer.tags_removed.json +1 -1
  13. package/metadatas/2024-10/customers/create.json +7 -3
  14. package/metadatas/2024-10/customers/delete.json +5 -1
  15. package/metadatas/2024-10/customers/disable.json +7 -3
  16. package/metadatas/2024-10/customers/enable.json +7 -3
  17. package/metadatas/2024-10/customers/update.json +7 -3
  18. package/metadatas/2024-10/customers_email_marketing_consent/update.json +1 -1
  19. package/metadatas/2024-10/discounts/create.json +2 -2
  20. package/metadatas/2024-10/discounts/delete.json +1 -1
  21. package/metadatas/2024-10/discounts/redeemcode_added.json +1 -1
  22. package/metadatas/2024-10/discounts/redeemcode_removed.json +1 -1
  23. package/metadatas/2024-10/discounts/update.json +2 -2
  24. package/metadatas/2024-10/draft_orders/create.json +31 -31
  25. package/metadatas/2024-10/draft_orders/update.json +30 -30
  26. package/metadatas/2024-10/orders/cancelled.json +3 -3
  27. package/metadatas/2024-10/orders/create.json +3 -3
  28. package/metadatas/2024-10/orders/fulfilled.json +3 -3
  29. package/metadatas/2024-10/orders/paid.json +3 -3
  30. package/metadatas/2024-10/orders/partially_fulfilled.json +3 -3
  31. package/metadatas/2024-10/orders/updated.json +3 -3
  32. package/metadatas/2024-10/segments/update.json +1 -1
  33. package/metadatas/2024-10/selling_plan_groups/create.json +2 -2
  34. package/metadatas/2024-10/selling_plan_groups/delete.json +2 -2
  35. package/metadatas/2024-10/selling_plan_groups/update.json +2 -2
  36. package/metadatas/2024-10/subscription_billing_attempts/challenged.json +2 -2
  37. package/metadatas/2024-10/subscription_billing_attempts/failure.json +2 -2
  38. package/metadatas/2024-10/subscription_billing_attempts/success.json +2 -2
  39. package/metadatas/2024-10/subscription_billing_cycle_edits/create.json +1 -1
  40. package/metadatas/2024-10/subscription_billing_cycle_edits/delete.json +1 -1
  41. package/metadatas/2024-10/subscription_billing_cycle_edits/update.json +1 -1
  42. package/metadatas/2024-10/subscription_billing_cycles/skip.json +1 -1
  43. package/metadatas/2024-10/subscription_billing_cycles/unskip.json +1 -1
  44. package/metadatas/2024-10/subscription_contracts/activate.json +3 -3
  45. package/metadatas/2024-10/subscription_contracts/cancel.json +3 -3
  46. package/metadatas/2024-10/subscription_contracts/create.json +3 -3
  47. package/metadatas/2024-10/subscription_contracts/expire.json +3 -3
  48. package/metadatas/2024-10/subscription_contracts/fail.json +3 -3
  49. package/metadatas/2024-10/subscription_contracts/pause.json +3 -3
  50. package/metadatas/2024-10/subscription_contracts/update.json +3 -3
  51. package/metadatas/2025-01/app/scopes_update.json +1 -0
  52. package/metadatas/2025-01/app_purchases_one_time/update.json +1 -1
  53. package/metadatas/2025-01/app_subscriptions/approaching_capped_amount.json +1 -1
  54. package/metadatas/2025-01/app_subscriptions/update.json +1 -1
  55. package/metadatas/2025-01/bulk_operations/finish.json +1 -1
  56. package/metadatas/2025-01/checkouts/create.json +10 -10
  57. package/metadatas/2025-01/checkouts/update.json +10 -10
  58. package/metadatas/2025-01/customer.tags_added.json +1 -1
  59. package/metadatas/2025-01/customer.tags_removed.json +1 -1
  60. package/metadatas/2025-01/customers/create.json +2 -2
  61. package/metadatas/2025-01/customers/disable.json +2 -2
  62. package/metadatas/2025-01/customers/enable.json +2 -2
  63. package/metadatas/2025-01/customers/purchasing_summary.json +1 -1
  64. package/metadatas/2025-01/customers/update.json +2 -2
  65. package/metadatas/2025-01/customers_email_marketing_consent/update.json +1 -1
  66. package/metadatas/2025-01/discounts/create.json +2 -2
  67. package/metadatas/2025-01/discounts/delete.json +1 -1
  68. package/metadatas/2025-01/discounts/redeemcode_added.json +1 -1
  69. package/metadatas/2025-01/discounts/redeemcode_removed.json +1 -1
  70. package/metadatas/2025-01/discounts/update.json +2 -2
  71. package/metadatas/2025-01/draft_orders/create.json +29 -29
  72. package/metadatas/2025-01/draft_orders/update.json +30 -30
  73. package/metadatas/2025-01/orders/cancelled.json +3 -3
  74. package/metadatas/2025-01/orders/create.json +3 -3
  75. package/metadatas/2025-01/orders/fulfilled.json +3 -3
  76. package/metadatas/2025-01/orders/paid.json +3 -3
  77. package/metadatas/2025-01/orders/partially_fulfilled.json +3 -3
  78. package/metadatas/2025-01/orders/updated.json +3 -3
  79. package/metadatas/2025-01/segments/update.json +1 -1
  80. package/metadatas/2025-01/selling_plan_groups/create.json +2 -2
  81. package/metadatas/2025-01/selling_plan_groups/delete.json +2 -2
  82. package/metadatas/2025-01/selling_plan_groups/update.json +2 -2
  83. package/metadatas/2025-01/subscription_billing_attempts/challenged.json +2 -2
  84. package/metadatas/2025-01/subscription_billing_attempts/failure.json +2 -2
  85. package/metadatas/2025-01/subscription_billing_attempts/success.json +2 -2
  86. package/metadatas/2025-01/subscription_billing_cycle_edits/create.json +1 -1
  87. package/metadatas/2025-01/subscription_billing_cycle_edits/delete.json +1 -1
  88. package/metadatas/2025-01/subscription_billing_cycle_edits/update.json +1 -1
  89. package/metadatas/2025-01/subscription_billing_cycles/skip.json +1 -1
  90. package/metadatas/2025-01/subscription_billing_cycles/unskip.json +1 -1
  91. package/metadatas/2025-01/subscription_contracts/activate.json +3 -3
  92. package/metadatas/2025-01/subscription_contracts/cancel.json +3 -3
  93. package/metadatas/2025-01/subscription_contracts/create.json +3 -3
  94. package/metadatas/2025-01/subscription_contracts/expire.json +3 -3
  95. package/metadatas/2025-01/subscription_contracts/fail.json +3 -3
  96. package/metadatas/2025-01/subscription_contracts/pause.json +3 -3
  97. package/metadatas/2025-01/subscription_contracts/update.json +3 -3
  98. package/metadatas/2025-04/app/scopes_update.json +1 -0
  99. package/metadatas/2025-04/app_purchases_one_time/update.json +1 -1
  100. package/metadatas/2025-04/app_subscriptions/approaching_capped_amount.json +1 -1
  101. package/metadatas/2025-04/app_subscriptions/update.json +1 -1
  102. package/metadatas/2025-04/bulk_operations/finish.json +1 -1
  103. package/metadatas/2025-04/checkouts/create.json +10 -10
  104. package/metadatas/2025-04/checkouts/update.json +10 -10
  105. package/metadatas/2025-04/customer.tags_added.json +1 -1
  106. package/metadatas/2025-04/customer.tags_removed.json +1 -1
  107. package/metadatas/2025-04/customers/create.json +2 -2
  108. package/metadatas/2025-04/customers/disable.json +2 -2
  109. package/metadatas/2025-04/customers/enable.json +2 -2
  110. package/metadatas/2025-04/customers/purchasing_summary.json +1 -1
  111. package/metadatas/2025-04/customers/update.json +2 -2
  112. package/metadatas/2025-04/customers_email_marketing_consent/update.json +1 -1
  113. package/metadatas/2025-04/discounts/create.json +2 -2
  114. package/metadatas/2025-04/discounts/delete.json +1 -1
  115. package/metadatas/2025-04/discounts/redeemcode_added.json +1 -1
  116. package/metadatas/2025-04/discounts/redeemcode_removed.json +1 -1
  117. package/metadatas/2025-04/discounts/update.json +2 -2
  118. package/metadatas/2025-04/draft_orders/create.json +29 -29
  119. package/metadatas/2025-04/draft_orders/update.json +31 -31
  120. package/metadatas/2025-04/orders/cancelled.json +3 -3
  121. package/metadatas/2025-04/orders/create.json +3 -3
  122. package/metadatas/2025-04/orders/fulfilled.json +3 -3
  123. package/metadatas/2025-04/orders/paid.json +3 -3
  124. package/metadatas/2025-04/orders/partially_fulfilled.json +3 -3
  125. package/metadatas/2025-04/orders/updated.json +3 -3
  126. package/metadatas/2025-04/segments/update.json +1 -1
  127. package/metadatas/2025-04/selling_plan_groups/create.json +2 -2
  128. package/metadatas/2025-04/selling_plan_groups/delete.json +2 -2
  129. package/metadatas/2025-04/selling_plan_groups/update.json +2 -2
  130. package/metadatas/2025-04/subscription_billing_attempts/challenged.json +2 -2
  131. package/metadatas/2025-04/subscription_billing_attempts/failure.json +2 -2
  132. package/metadatas/2025-04/subscription_billing_attempts/success.json +2 -2
  133. package/metadatas/2025-04/subscription_billing_cycle_edits/create.json +1 -1
  134. package/metadatas/2025-04/subscription_billing_cycle_edits/delete.json +1 -1
  135. package/metadatas/2025-04/subscription_billing_cycle_edits/update.json +1 -1
  136. package/metadatas/2025-04/subscription_billing_cycles/skip.json +1 -1
  137. package/metadatas/2025-04/subscription_billing_cycles/unskip.json +1 -1
  138. package/metadatas/2025-04/subscription_contracts/activate.json +3 -3
  139. package/metadatas/2025-04/subscription_contracts/cancel.json +3 -3
  140. package/metadatas/2025-04/subscription_contracts/create.json +3 -3
  141. package/metadatas/2025-04/subscription_contracts/expire.json +3 -3
  142. package/metadatas/2025-04/subscription_contracts/fail.json +3 -3
  143. package/metadatas/2025-04/subscription_contracts/pause.json +3 -3
  144. package/metadatas/2025-04/subscription_contracts/update.json +3 -3
  145. package/metadatas/2025-07/app/scopes_update.json +1 -0
  146. package/metadatas/2025-07/app_purchases_one_time/update.json +1 -1
  147. package/metadatas/2025-07/app_subscriptions/approaching_capped_amount.json +1 -1
  148. package/metadatas/2025-07/app_subscriptions/update.json +1 -1
  149. package/metadatas/2025-07/bulk_operations/finish.json +1 -1
  150. package/metadatas/2025-07/checkouts/create.json +10 -10
  151. package/metadatas/2025-07/checkouts/update.json +4 -4
  152. package/metadatas/2025-07/customer.tags_added.json +1 -1
  153. package/metadatas/2025-07/customer.tags_removed.json +1 -1
  154. package/metadatas/2025-07/customers/create.json +2 -2
  155. package/metadatas/2025-07/customers/disable.json +2 -2
  156. package/metadatas/2025-07/customers/enable.json +2 -2
  157. package/metadatas/2025-07/customers/purchasing_summary.json +1 -1
  158. package/metadatas/2025-07/customers/update.json +2 -2
  159. package/metadatas/2025-07/customers_email_marketing_consent/update.json +1 -1
  160. package/metadatas/2025-07/discounts/create.json +2 -2
  161. package/metadatas/2025-07/discounts/delete.json +1 -1
  162. package/metadatas/2025-07/discounts/redeemcode_added.json +1 -1
  163. package/metadatas/2025-07/discounts/redeemcode_removed.json +1 -1
  164. package/metadatas/2025-07/discounts/update.json +2 -2
  165. package/metadatas/2025-07/draft_orders/create.json +31 -31
  166. package/metadatas/2025-07/draft_orders/update.json +31 -31
  167. package/metadatas/2025-07/orders/cancelled.json +3 -3
  168. package/metadatas/2025-07/orders/create.json +3 -3
  169. package/metadatas/2025-07/orders/fulfilled.json +3 -3
  170. package/metadatas/2025-07/orders/paid.json +3 -3
  171. package/metadatas/2025-07/orders/partially_fulfilled.json +3 -3
  172. package/metadatas/2025-07/orders/updated.json +3 -3
  173. package/metadatas/2025-07/returns/process.json +1 -16
  174. package/metadatas/2025-07/segments/update.json +1 -1
  175. package/metadatas/2025-07/selling_plan_groups/create.json +2 -2
  176. package/metadatas/2025-07/selling_plan_groups/delete.json +2 -2
  177. package/metadatas/2025-07/selling_plan_groups/update.json +2 -2
  178. package/metadatas/2025-07/subscription_billing_attempts/challenged.json +2 -2
  179. package/metadatas/2025-07/subscription_billing_attempts/failure.json +2 -2
  180. package/metadatas/2025-07/subscription_billing_attempts/success.json +2 -2
  181. package/metadatas/2025-07/subscription_billing_cycle_edits/create.json +1 -1
  182. package/metadatas/2025-07/subscription_billing_cycle_edits/delete.json +1 -1
  183. package/metadatas/2025-07/subscription_billing_cycle_edits/update.json +1 -1
  184. package/metadatas/2025-07/subscription_billing_cycles/skip.json +1 -1
  185. package/metadatas/2025-07/subscription_billing_cycles/unskip.json +1 -1
  186. package/metadatas/2025-07/subscription_contracts/activate.json +3 -3
  187. package/metadatas/2025-07/subscription_contracts/cancel.json +3 -3
  188. package/metadatas/2025-07/subscription_contracts/create.json +3 -3
  189. package/metadatas/2025-07/subscription_contracts/expire.json +3 -3
  190. package/metadatas/2025-07/subscription_contracts/fail.json +3 -3
  191. package/metadatas/2025-07/subscription_contracts/pause.json +3 -3
  192. package/metadatas/2025-07/subscription_contracts/update.json +3 -3
  193. package/package.json +1 -1
  194. package/schemas/2024-10/app/scopes_update.json +5 -0
  195. package/schemas/2024-10/checkouts/create.json +6 -9
  196. package/schemas/2024-10/checkouts/update.json +6 -9
  197. package/schemas/2024-10/customers/create.json +46 -4
  198. package/schemas/2024-10/customers/delete.json +42 -3
  199. package/schemas/2024-10/customers/disable.json +46 -4
  200. package/schemas/2024-10/customers/enable.json +46 -4
  201. package/schemas/2024-10/customers/update.json +46 -4
  202. package/schemas/2024-10/customers_email_marketing_consent/update.json +1 -4
  203. package/schemas/2024-10/draft_orders/create.json +6 -9
  204. package/schemas/2024-10/draft_orders/update.json +6 -9
  205. package/schemas/2024-10/inventory_levels/connect.json +29 -0
  206. package/schemas/2024-10/inventory_levels/update.json +29 -0
  207. package/schemas/2024-10/orders/cancelled.json +2 -8
  208. package/schemas/2024-10/orders/create.json +2 -8
  209. package/schemas/2024-10/orders/fulfilled.json +2 -8
  210. package/schemas/2024-10/orders/paid.json +2 -8
  211. package/schemas/2024-10/orders/partially_fulfilled.json +2 -8
  212. package/schemas/2024-10/orders/updated.json +2 -8
  213. package/schemas/2024-10/shipping_addresses/create.json +59 -0
  214. package/schemas/2024-10/shipping_addresses/update.json +59 -0
  215. package/schemas/2025-01/app/scopes_update.json +5 -0
  216. package/schemas/2025-01/checkouts/create.json +6 -9
  217. package/schemas/2025-01/checkouts/update.json +6 -9
  218. package/schemas/2025-01/customers/create.json +4 -1
  219. package/schemas/2025-01/customers/disable.json +4 -1
  220. package/schemas/2025-01/customers/enable.json +4 -1
  221. package/schemas/2025-01/customers/update.json +4 -1
  222. package/schemas/2025-01/customers_email_marketing_consent/update.json +1 -4
  223. package/schemas/2025-01/draft_orders/create.json +6 -9
  224. package/schemas/2025-01/draft_orders/update.json +6 -9
  225. package/schemas/2025-01/inventory_levels/connect.json +29 -0
  226. package/schemas/2025-01/inventory_levels/update.json +29 -0
  227. package/schemas/2025-01/orders/cancelled.json +2 -8
  228. package/schemas/2025-01/orders/create.json +2 -8
  229. package/schemas/2025-01/orders/fulfilled.json +2 -8
  230. package/schemas/2025-01/orders/paid.json +2 -8
  231. package/schemas/2025-01/orders/partially_fulfilled.json +2 -8
  232. package/schemas/2025-01/orders/updated.json +2 -8
  233. package/schemas/2025-01/shipping_addresses/create.json +59 -0
  234. package/schemas/2025-01/shipping_addresses/update.json +59 -0
  235. package/schemas/2025-04/app/scopes_update.json +5 -0
  236. package/schemas/2025-04/checkouts/create.json +6 -9
  237. package/schemas/2025-04/checkouts/update.json +6 -9
  238. package/schemas/2025-04/customers/create.json +4 -1
  239. package/schemas/2025-04/customers/disable.json +4 -1
  240. package/schemas/2025-04/customers/enable.json +4 -1
  241. package/schemas/2025-04/customers/update.json +4 -1
  242. package/schemas/2025-04/customers_email_marketing_consent/update.json +1 -4
  243. package/schemas/2025-04/draft_orders/create.json +6 -9
  244. package/schemas/2025-04/draft_orders/update.json +6 -9
  245. package/schemas/2025-04/inventory_levels/connect.json +29 -0
  246. package/schemas/2025-04/inventory_levels/update.json +29 -0
  247. package/schemas/2025-04/orders/cancelled.json +2 -8
  248. package/schemas/2025-04/orders/create.json +2 -8
  249. package/schemas/2025-04/orders/fulfilled.json +2 -8
  250. package/schemas/2025-04/orders/paid.json +2 -8
  251. package/schemas/2025-04/orders/partially_fulfilled.json +2 -8
  252. package/schemas/2025-04/orders/updated.json +2 -8
  253. package/schemas/2025-04/shipping_addresses/create.json +59 -0
  254. package/schemas/2025-04/shipping_addresses/update.json +59 -0
  255. package/schemas/2025-07/app/scopes_update.json +5 -0
  256. package/schemas/2025-07/checkouts/create.json +6 -9
  257. package/schemas/2025-07/checkouts/update.json +6 -9
  258. package/schemas/2025-07/customers/create.json +4 -1
  259. package/schemas/2025-07/customers/disable.json +4 -1
  260. package/schemas/2025-07/customers/enable.json +4 -1
  261. package/schemas/2025-07/customers/update.json +4 -1
  262. package/schemas/2025-07/customers_email_marketing_consent/update.json +1 -4
  263. package/schemas/2025-07/draft_orders/create.json +6 -9
  264. package/schemas/2025-07/draft_orders/update.json +6 -9
  265. package/schemas/2025-07/inventory_levels/connect.json +29 -0
  266. package/schemas/2025-07/inventory_levels/update.json +29 -0
  267. package/schemas/2025-07/orders/cancelled.json +2 -8
  268. package/schemas/2025-07/orders/create.json +2 -8
  269. package/schemas/2025-07/orders/fulfilled.json +2 -8
  270. package/schemas/2025-07/orders/paid.json +2 -8
  271. package/schemas/2025-07/orders/partially_fulfilled.json +2 -8
  272. package/schemas/2025-07/orders/updated.json +2 -8
  273. package/schemas/2025-07/returns/process.json +0 -59
  274. package/schemas/2025-07/shipping_addresses/create.json +59 -0
  275. package/schemas/2025-07/shipping_addresses/update.json +59 -0
@@ -12,8 +12,8 @@
12
12
  "name": "subscription_contracts/cancel",
13
13
  "related_resource": "SubscriptionContract",
14
14
  "response": {
15
- "admin_graphql_api_id": "gid://shopify/SubscriptionContract/1974038462",
16
- "id": 1974038462,
15
+ "admin_graphql_api_id": "gid://shopify/SubscriptionContract/8686621329",
16
+ "id": 8686621329,
17
17
  "billing_policy": {
18
18
  "interval": "week",
19
19
  "interval_count": 4,
@@ -30,7 +30,7 @@
30
30
  "status": "cancelled",
31
31
  "admin_graphql_api_origin_order_id": "gid://shopify/Order/1",
32
32
  "origin_order_id": 1,
33
- "revision_id": "4785661354"
33
+ "revision_id": "8438931546"
34
34
  },
35
35
  "shop_feature": false
36
36
  }
@@ -12,8 +12,8 @@
12
12
  "name": "subscription_contracts/create",
13
13
  "related_resource": "SubscriptionContract",
14
14
  "response": {
15
- "admin_graphql_api_id": "gid://shopify/SubscriptionContract/6039223955",
16
- "id": 6039223955,
15
+ "admin_graphql_api_id": "gid://shopify/SubscriptionContract/1748202334",
16
+ "id": 1748202334,
17
17
  "billing_policy": {
18
18
  "interval": "week",
19
19
  "interval_count": 4,
@@ -30,7 +30,7 @@
30
30
  "status": "active",
31
31
  "admin_graphql_api_origin_order_id": "gid://shopify/Order/1",
32
32
  "origin_order_id": 1,
33
- "revision_id": "9359341390"
33
+ "revision_id": "5343769079"
34
34
  },
35
35
  "shop_feature": false
36
36
  }
@@ -12,8 +12,8 @@
12
12
  "name": "subscription_contracts/expire",
13
13
  "related_resource": "SubscriptionContract",
14
14
  "response": {
15
- "admin_graphql_api_id": "gid://shopify/SubscriptionContract/4924470822",
16
- "id": 4924470822,
15
+ "admin_graphql_api_id": "gid://shopify/SubscriptionContract/9946951049",
16
+ "id": 9946951049,
17
17
  "billing_policy": {
18
18
  "interval": "week",
19
19
  "interval_count": 4,
@@ -30,7 +30,7 @@
30
30
  "status": "expired",
31
31
  "admin_graphql_api_origin_order_id": "gid://shopify/Order/1",
32
32
  "origin_order_id": 1,
33
- "revision_id": "8154267034"
33
+ "revision_id": "6187947111"
34
34
  },
35
35
  "shop_feature": false
36
36
  }
@@ -12,8 +12,8 @@
12
12
  "name": "subscription_contracts/fail",
13
13
  "related_resource": "SubscriptionContract",
14
14
  "response": {
15
- "admin_graphql_api_id": "gid://shopify/SubscriptionContract/1851566447",
16
- "id": 1851566447,
15
+ "admin_graphql_api_id": "gid://shopify/SubscriptionContract/4405994203",
16
+ "id": 4405994203,
17
17
  "billing_policy": {
18
18
  "interval": "week",
19
19
  "interval_count": 4,
@@ -30,7 +30,7 @@
30
30
  "status": "failed",
31
31
  "admin_graphql_api_origin_order_id": "gid://shopify/Order/1",
32
32
  "origin_order_id": 1,
33
- "revision_id": "2564232840"
33
+ "revision_id": "9500485237"
34
34
  },
35
35
  "shop_feature": false
36
36
  }
@@ -12,8 +12,8 @@
12
12
  "name": "subscription_contracts/pause",
13
13
  "related_resource": "SubscriptionContract",
14
14
  "response": {
15
- "admin_graphql_api_id": "gid://shopify/SubscriptionContract/7879683180",
16
- "id": 7879683180,
15
+ "admin_graphql_api_id": "gid://shopify/SubscriptionContract/4582560015",
16
+ "id": 4582560015,
17
17
  "billing_policy": {
18
18
  "interval": "week",
19
19
  "interval_count": 4,
@@ -30,7 +30,7 @@
30
30
  "status": "paused",
31
31
  "admin_graphql_api_origin_order_id": "gid://shopify/Order/1",
32
32
  "origin_order_id": 1,
33
- "revision_id": "5205351211"
33
+ "revision_id": "6982262743"
34
34
  },
35
35
  "shop_feature": false
36
36
  }
@@ -12,8 +12,8 @@
12
12
  "name": "subscription_contracts/update",
13
13
  "related_resource": "SubscriptionContract",
14
14
  "response": {
15
- "admin_graphql_api_id": "gid://shopify/SubscriptionContract/4040667560",
16
- "id": 4040667560,
15
+ "admin_graphql_api_id": "gid://shopify/SubscriptionContract/6932483147",
16
+ "id": 6932483147,
17
17
  "billing_policy": {
18
18
  "interval": "week",
19
19
  "interval_count": 4,
@@ -30,7 +30,7 @@
30
30
  "status": "active",
31
31
  "admin_graphql_api_origin_order_id": "gid://shopify/Order/1",
32
32
  "origin_order_id": 1,
33
- "revision_id": "4365931266"
33
+ "revision_id": "7542016263"
34
34
  },
35
35
  "shop_feature": false
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopify-webhook-schemas",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "",
5
5
  "main": "dist/src/index.js",
6
6
  "type": "commonjs",
@@ -16,6 +16,10 @@
16
16
  },
17
17
  "type": "array"
18
18
  },
19
+ "shop_id": {
20
+ "format": "uri",
21
+ "type": "string"
22
+ },
19
23
  "updated_at": {
20
24
  "format": "date-time",
21
25
  "type": "string"
@@ -25,6 +29,7 @@
25
29
  "current",
26
30
  "id",
27
31
  "previous",
32
+ "shop_id",
28
33
  "updated_at"
29
34
  ],
30
35
  "type": "object"
@@ -184,10 +184,7 @@
184
184
  "type": "boolean"
185
185
  },
186
186
  "first_name": {
187
- "type": [
188
- "null",
189
- "string"
190
- ]
187
+ "type": "string"
191
188
  },
192
189
  "id": {
193
190
  "type": [
@@ -196,10 +193,7 @@
196
193
  ]
197
194
  },
198
195
  "last_name": {
199
- "type": [
200
- "null",
201
- "string"
202
- ]
196
+ "type": "string"
203
197
  },
204
198
  "name": {
205
199
  "type": "string"
@@ -248,7 +242,10 @@
248
242
  "type": "object"
249
243
  },
250
244
  "email": {
251
- "type": "string"
245
+ "type": [
246
+ "null",
247
+ "string"
248
+ ]
252
249
  },
253
250
  "email_marketing_consent": {
254
251
  "properties": {
@@ -184,10 +184,7 @@
184
184
  "type": "boolean"
185
185
  },
186
186
  "first_name": {
187
- "type": [
188
- "null",
189
- "string"
190
- ]
187
+ "type": "string"
191
188
  },
192
189
  "id": {
193
190
  "type": [
@@ -196,10 +193,7 @@
196
193
  ]
197
194
  },
198
195
  "last_name": {
199
- "type": [
200
- "null",
201
- "string"
202
- ]
196
+ "type": "string"
203
197
  },
204
198
  "name": {
205
199
  "type": "string"
@@ -248,7 +242,10 @@
248
242
  "type": "object"
249
243
  },
250
244
  "email": {
251
- "type": "string"
245
+ "type": [
246
+ "null",
247
+ "string"
248
+ ]
252
249
  },
253
250
  "email_marketing_consent": {
254
251
  "properties": {
@@ -173,12 +173,54 @@
173
173
  },
174
174
  "email": {
175
175
  "format": "email",
176
- "type": "string"
176
+ "type": [
177
+ "null",
178
+ "string"
179
+ ]
177
180
  },
178
181
  "email_marketing_consent": {
179
- "type": [
180
- "boolean",
181
- "null"
182
+ "anyOf": [
183
+ {
184
+ "properties": {
185
+ "consent_updated_at": {
186
+ "type": "null"
187
+ },
188
+ "opt_in_level": {
189
+ "type": "null"
190
+ },
191
+ "state": {
192
+ "type": "string"
193
+ }
194
+ },
195
+ "required": [
196
+ "consent_updated_at",
197
+ "opt_in_level",
198
+ "state"
199
+ ],
200
+ "type": "object"
201
+ },
202
+ {
203
+ "type": "boolean"
204
+ },
205
+ {
206
+ "properties": {
207
+ "consent_updated_at": {
208
+ "type": "null"
209
+ },
210
+ "opt_in_level": {
211
+ "type": "null"
212
+ },
213
+ "state": {
214
+ "type": "string"
215
+ }
216
+ },
217
+ "required": [
218
+ "consent_updated_at",
219
+ "opt_in_level",
220
+ "state"
221
+ ],
222
+ "type": "object"
223
+ }
182
224
  ]
183
225
  },
184
226
  "first_name": {
@@ -84,9 +84,48 @@
84
84
  "type": "string"
85
85
  },
86
86
  "email_marketing_consent": {
87
- "type": [
88
- "boolean",
89
- "null"
87
+ "anyOf": [
88
+ {
89
+ "properties": {
90
+ "consent_updated_at": {
91
+ "type": "null"
92
+ },
93
+ "opt_in_level": {
94
+ "type": "null"
95
+ },
96
+ "state": {
97
+ "type": "string"
98
+ }
99
+ },
100
+ "required": [
101
+ "consent_updated_at",
102
+ "opt_in_level",
103
+ "state"
104
+ ],
105
+ "type": "object"
106
+ },
107
+ {
108
+ "type": "boolean"
109
+ },
110
+ {
111
+ "properties": {
112
+ "consent_updated_at": {
113
+ "type": "null"
114
+ },
115
+ "opt_in_level": {
116
+ "type": "null"
117
+ },
118
+ "state": {
119
+ "type": "string"
120
+ }
121
+ },
122
+ "required": [
123
+ "consent_updated_at",
124
+ "opt_in_level",
125
+ "state"
126
+ ],
127
+ "type": "object"
128
+ }
90
129
  ]
91
130
  },
92
131
  "id": {
@@ -173,12 +173,54 @@
173
173
  },
174
174
  "email": {
175
175
  "format": "email",
176
- "type": "string"
176
+ "type": [
177
+ "null",
178
+ "string"
179
+ ]
177
180
  },
178
181
  "email_marketing_consent": {
179
- "type": [
180
- "boolean",
181
- "null"
182
+ "anyOf": [
183
+ {
184
+ "properties": {
185
+ "consent_updated_at": {
186
+ "type": "null"
187
+ },
188
+ "opt_in_level": {
189
+ "type": "null"
190
+ },
191
+ "state": {
192
+ "type": "string"
193
+ }
194
+ },
195
+ "required": [
196
+ "consent_updated_at",
197
+ "opt_in_level",
198
+ "state"
199
+ ],
200
+ "type": "object"
201
+ },
202
+ {
203
+ "type": "boolean"
204
+ },
205
+ {
206
+ "properties": {
207
+ "consent_updated_at": {
208
+ "type": "null"
209
+ },
210
+ "opt_in_level": {
211
+ "type": "null"
212
+ },
213
+ "state": {
214
+ "type": "string"
215
+ }
216
+ },
217
+ "required": [
218
+ "consent_updated_at",
219
+ "opt_in_level",
220
+ "state"
221
+ ],
222
+ "type": "object"
223
+ }
182
224
  ]
183
225
  },
184
226
  "first_name": {
@@ -173,12 +173,54 @@
173
173
  },
174
174
  "email": {
175
175
  "format": "email",
176
- "type": "string"
176
+ "type": [
177
+ "null",
178
+ "string"
179
+ ]
177
180
  },
178
181
  "email_marketing_consent": {
179
- "type": [
180
- "boolean",
181
- "null"
182
+ "anyOf": [
183
+ {
184
+ "properties": {
185
+ "consent_updated_at": {
186
+ "type": "null"
187
+ },
188
+ "opt_in_level": {
189
+ "type": "null"
190
+ },
191
+ "state": {
192
+ "type": "string"
193
+ }
194
+ },
195
+ "required": [
196
+ "consent_updated_at",
197
+ "opt_in_level",
198
+ "state"
199
+ ],
200
+ "type": "object"
201
+ },
202
+ {
203
+ "type": "boolean"
204
+ },
205
+ {
206
+ "properties": {
207
+ "consent_updated_at": {
208
+ "type": "null"
209
+ },
210
+ "opt_in_level": {
211
+ "type": "null"
212
+ },
213
+ "state": {
214
+ "type": "string"
215
+ }
216
+ },
217
+ "required": [
218
+ "consent_updated_at",
219
+ "opt_in_level",
220
+ "state"
221
+ ],
222
+ "type": "object"
223
+ }
182
224
  ]
183
225
  },
184
226
  "first_name": {
@@ -173,12 +173,54 @@
173
173
  },
174
174
  "email": {
175
175
  "format": "email",
176
- "type": "string"
176
+ "type": [
177
+ "null",
178
+ "string"
179
+ ]
177
180
  },
178
181
  "email_marketing_consent": {
179
- "type": [
180
- "boolean",
181
- "null"
182
+ "anyOf": [
183
+ {
184
+ "properties": {
185
+ "consent_updated_at": {
186
+ "type": "null"
187
+ },
188
+ "opt_in_level": {
189
+ "type": "null"
190
+ },
191
+ "state": {
192
+ "type": "string"
193
+ }
194
+ },
195
+ "required": [
196
+ "consent_updated_at",
197
+ "opt_in_level",
198
+ "state"
199
+ ],
200
+ "type": "object"
201
+ },
202
+ {
203
+ "type": "boolean"
204
+ },
205
+ {
206
+ "properties": {
207
+ "consent_updated_at": {
208
+ "type": "null"
209
+ },
210
+ "opt_in_level": {
211
+ "type": "null"
212
+ },
213
+ "state": {
214
+ "type": "string"
215
+ }
216
+ },
217
+ "required": [
218
+ "consent_updated_at",
219
+ "opt_in_level",
220
+ "state"
221
+ ],
222
+ "type": "object"
223
+ }
182
224
  ]
183
225
  },
184
226
  "first_name": {
@@ -6,10 +6,7 @@
6
6
  },
7
7
  "email_address": {
8
8
  "format": "email",
9
- "type": [
10
- "null",
11
- "string"
12
- ]
9
+ "type": "string"
13
10
  },
14
11
  "email_marketing_consent": {
15
12
  "properties": {
@@ -218,10 +218,7 @@
218
218
  "type": "boolean"
219
219
  },
220
220
  "first_name": {
221
- "type": [
222
- "null",
223
- "string"
224
- ]
221
+ "type": "string"
225
222
  },
226
223
  "id": {
227
224
  "type": [
@@ -230,10 +227,7 @@
230
227
  ]
231
228
  },
232
229
  "last_name": {
233
- "type": [
234
- "null",
235
- "string"
236
- ]
230
+ "type": "string"
237
231
  },
238
232
  "name": {
239
233
  "type": "string"
@@ -282,7 +276,10 @@
282
276
  "type": "object"
283
277
  },
284
278
  "email": {
285
- "type": "string"
279
+ "type": [
280
+ "null",
281
+ "string"
282
+ ]
286
283
  },
287
284
  "email_marketing_consent": {
288
285
  "properties": {
@@ -218,10 +218,7 @@
218
218
  "type": "boolean"
219
219
  },
220
220
  "first_name": {
221
- "type": [
222
- "null",
223
- "string"
224
- ]
221
+ "type": "string"
225
222
  },
226
223
  "id": {
227
224
  "type": [
@@ -230,10 +227,7 @@
230
227
  ]
231
228
  },
232
229
  "last_name": {
233
- "type": [
234
- "null",
235
- "string"
236
- ]
230
+ "type": "string"
237
231
  },
238
232
  "name": {
239
233
  "type": "string"
@@ -282,7 +276,10 @@
282
276
  "type": "object"
283
277
  },
284
278
  "email": {
285
- "type": "string"
279
+ "type": [
280
+ "null",
281
+ "string"
282
+ ]
286
283
  },
287
284
  "email_marketing_consent": {
288
285
  "properties": {
@@ -1,4 +1,33 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "properties": {
4
+ "admin_graphql_api_id": {
5
+ "format": "uri",
6
+ "type": "string"
7
+ },
8
+ "available": {
9
+ "type": [
10
+ "integer",
11
+ "null"
12
+ ]
13
+ },
14
+ "inventory_item_id": {
15
+ "type": "integer"
16
+ },
17
+ "location_id": {
18
+ "type": "integer"
19
+ },
20
+ "updated_at": {
21
+ "format": "date-time",
22
+ "type": "string"
23
+ }
24
+ },
25
+ "required": [
26
+ "admin_graphql_api_id",
27
+ "available",
28
+ "inventory_item_id",
29
+ "location_id",
30
+ "updated_at"
31
+ ],
3
32
  "type": "object"
4
33
  }
@@ -1,4 +1,33 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "properties": {
4
+ "admin_graphql_api_id": {
5
+ "format": "uri",
6
+ "type": "string"
7
+ },
8
+ "available": {
9
+ "type": [
10
+ "integer",
11
+ "null"
12
+ ]
13
+ },
14
+ "inventory_item_id": {
15
+ "type": "integer"
16
+ },
17
+ "location_id": {
18
+ "type": "integer"
19
+ },
20
+ "updated_at": {
21
+ "format": "date-time",
22
+ "type": "string"
23
+ }
24
+ },
25
+ "required": [
26
+ "admin_graphql_api_id",
27
+ "available",
28
+ "inventory_item_id",
29
+ "location_id",
30
+ "updated_at"
31
+ ],
3
32
  "type": "object"
4
33
  }