shopify-webhook-schemas 0.1.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/src/index.d.ts +2 -0
  2. package/dist/src/index.js +3 -0
  3. package/dist/src/infer-schema.d.ts +18 -0
  4. package/dist/src/infer-schema.js +717 -0
  5. package/dist/src/scrape.js +11 -623
  6. package/metadatas/2025-04/app_purchases_one_time/update.json +1 -1
  7. package/metadatas/2025-04/app_subscriptions/approaching_capped_amount.json +1 -1
  8. package/metadatas/2025-04/app_subscriptions/update.json +5 -2
  9. package/metadatas/2025-04/bulk_operations/finish.json +1 -1
  10. package/metadatas/2025-04/checkouts/create.json +6 -6
  11. package/metadatas/2025-04/checkouts/update.json +6 -6
  12. package/metadatas/2025-04/discounts/create.json +2 -2
  13. package/metadatas/2025-04/discounts/delete.json +1 -1
  14. package/metadatas/2025-04/discounts/redeemcode_added.json +1 -1
  15. package/metadatas/2025-04/discounts/redeemcode_removed.json +1 -1
  16. package/metadatas/2025-04/discounts/update.json +2 -2
  17. package/metadatas/2025-04/draft_orders/create.json +24 -24
  18. package/metadatas/2025-04/draft_orders/update.json +26 -26
  19. package/metadatas/2025-04/fulfillments/create.json +71 -24
  20. package/metadatas/2025-04/fulfillments/update.json +71 -24
  21. package/metadatas/2025-04/inventory_items/create.json +2 -1
  22. package/metadatas/2025-04/inventory_items/delete.json +2 -1
  23. package/metadatas/2025-04/inventory_items/update.json +2 -1
  24. package/metadatas/2025-04/markets_backup_region/update.json +18 -0
  25. package/metadatas/2025-04/order_transactions/create.json +3 -3
  26. package/metadatas/2025-04/orders/cancelled.json +91 -41
  27. package/metadatas/2025-04/orders/create.json +91 -41
  28. package/metadatas/2025-04/orders/edited.json +1 -1
  29. package/metadatas/2025-04/orders/fulfilled.json +91 -41
  30. package/metadatas/2025-04/orders/paid.json +91 -41
  31. package/metadatas/2025-04/orders/partially_fulfilled.json +91 -41
  32. package/metadatas/2025-04/orders/updated.json +91 -41
  33. package/metadatas/2025-04/refunds/create.json +110 -34
  34. package/metadatas/2025-04/selling_plan_groups/create.json +2 -2
  35. package/metadatas/2025-04/selling_plan_groups/delete.json +2 -2
  36. package/metadatas/2025-04/selling_plan_groups/update.json +2 -2
  37. package/metadatas/2025-04/subscription_billing_attempts/challenged.json +2 -2
  38. package/metadatas/2025-04/subscription_billing_attempts/failure.json +2 -2
  39. package/metadatas/2025-04/subscription_billing_attempts/success.json +2 -2
  40. package/metadatas/2025-04/subscription_contracts/activate.json +4 -4
  41. package/metadatas/2025-04/subscription_contracts/cancel.json +4 -4
  42. package/metadatas/2025-04/subscription_contracts/create.json +4 -4
  43. package/metadatas/2025-04/subscription_contracts/expire.json +4 -4
  44. package/metadatas/2025-04/subscription_contracts/fail.json +4 -4
  45. package/metadatas/2025-04/subscription_contracts/pause.json +4 -4
  46. package/metadatas/2025-04/subscription_contracts/update.json +4 -4
  47. package/metadatas/2025-04/tender_transactions/create.json +1 -1
  48. package/package.json +6 -6
  49. package/schemas/2025-04/app_subscriptions/update.json +12 -0
  50. package/schemas/2025-04/carts/create.json +4 -1
  51. package/schemas/2025-04/carts/update.json +4 -1
  52. package/schemas/2025-04/checkouts/create.json +26 -16
  53. package/schemas/2025-04/checkouts/delete.json +3 -0
  54. package/schemas/2025-04/checkouts/update.json +26 -16
  55. package/schemas/2025-04/collections/create.json +20 -0
  56. package/schemas/2025-04/collections/update.json +20 -0
  57. package/schemas/2025-04/company_locations/create.json +37 -6
  58. package/schemas/2025-04/company_locations/delete.json +37 -6
  59. package/schemas/2025-04/company_locations/update.json +37 -6
  60. package/schemas/2025-04/customer_payment_methods/create.json +1 -1
  61. package/schemas/2025-04/customer_payment_methods/revoke.json +1 -1
  62. package/schemas/2025-04/customer_payment_methods/update.json +1 -1
  63. package/schemas/2025-04/customers/create.json +86 -4
  64. package/schemas/2025-04/customers/delete.json +78 -2
  65. package/schemas/2025-04/customers/disable.json +86 -4
  66. package/schemas/2025-04/customers/enable.json +86 -4
  67. package/schemas/2025-04/customers/update.json +86 -4
  68. package/schemas/2025-04/customers_email_marketing_consent/update.json +13 -3
  69. package/schemas/2025-04/customers_marketing_consent/update.json +13 -3
  70. package/schemas/2025-04/disputes/create.json +0 -1
  71. package/schemas/2025-04/disputes/update.json +0 -1
  72. package/schemas/2025-04/domains/create.json +4 -2
  73. package/schemas/2025-04/domains/destroy.json +4 -2
  74. package/schemas/2025-04/domains/update.json +4 -2
  75. package/schemas/2025-04/draft_orders/create.json +138 -4
  76. package/schemas/2025-04/draft_orders/update.json +138 -4
  77. package/schemas/2025-04/fulfillments/create.json +196 -66
  78. package/schemas/2025-04/fulfillments/update.json +196 -66
  79. package/schemas/2025-04/inventory_items/create.json +7 -3
  80. package/schemas/2025-04/inventory_items/update.json +7 -3
  81. package/schemas/2025-04/markets_backup_region/update.json +17 -0
  82. package/schemas/2025-04/order_transactions/create.json +15 -5
  83. package/schemas/2025-04/orders/cancelled.json +76 -4
  84. package/schemas/2025-04/orders/create.json +76 -4
  85. package/schemas/2025-04/orders/edited.json +8 -2
  86. package/schemas/2025-04/orders/fulfilled.json +76 -4
  87. package/schemas/2025-04/orders/paid.json +76 -4
  88. package/schemas/2025-04/orders/partially_fulfilled.json +76 -4
  89. package/schemas/2025-04/orders/risk_assessment_changed.json +9 -2
  90. package/schemas/2025-04/orders/shopify_protect_eligibility_changed.json +8 -1
  91. package/schemas/2025-04/orders/updated.json +76 -4
  92. package/schemas/2025-04/payment_terms/create.json +4 -1
  93. package/schemas/2025-04/payment_terms/update.json +4 -1
  94. package/schemas/2025-04/products/create.json +160 -64
  95. package/schemas/2025-04/products/update.json +160 -64
  96. package/schemas/2025-04/refunds/create.json +764 -17
  97. package/schemas/2025-04/selling_plan_groups/create.json +66 -10
  98. package/schemas/2025-04/selling_plan_groups/update.json +66 -10
  99. package/schemas/2025-04/shop/update.json +4 -3
  100. package/schemas/2025-04/subscription_billing_attempts/challenged.json +0 -1
  101. package/schemas/2025-04/subscription_billing_attempts/failure.json +0 -1
  102. package/schemas/2025-04/subscription_billing_attempts/success.json +0 -1
  103. package/schemas/2025-04/subscription_contracts/activate.json +8 -2
  104. package/schemas/2025-04/subscription_contracts/cancel.json +8 -2
  105. package/schemas/2025-04/subscription_contracts/create.json +8 -2
  106. package/schemas/2025-04/subscription_contracts/expire.json +8 -2
  107. package/schemas/2025-04/subscription_contracts/fail.json +8 -2
  108. package/schemas/2025-04/subscription_contracts/pause.json +8 -2
  109. package/schemas/2025-04/subscription_contracts/update.json +8 -2
  110. package/schemas/2025-04/tender_transactions/create.json +9 -16
  111. package/schemas/2025-04/themes/create.json +4 -1
  112. package/schemas/2025-04/themes/publish.json +4 -1
  113. package/schemas/2025-04/themes/update.json +4 -1
@@ -46,34 +46,34 @@
46
46
  },
47
47
  "line_items": [
48
48
  {
49
- "id": 866550311766439000,
50
- "variant_id": 808950810,
51
- "title": "IPod Nano - 8GB",
49
+ "id": 487817672276298560,
50
+ "variant_id": null,
51
+ "title": "Aviator sunglasses",
52
52
  "quantity": 1,
53
- "sku": "IPOD2008PINK",
53
+ "sku": "SKU2006-001",
54
54
  "variant_title": null,
55
55
  "vendor": null,
56
56
  "fulfillment_service": "manual",
57
- "product_id": 632910392,
57
+ "product_id": 788032119674292900,
58
58
  "requires_shipping": true,
59
59
  "taxable": true,
60
60
  "gift_card": false,
61
- "name": "IPod Nano - 8GB",
62
- "variant_inventory_management": "shopify",
61
+ "name": "Aviator sunglasses",
62
+ "variant_inventory_management": null,
63
63
  "properties": [],
64
64
  "product_exists": true,
65
65
  "fulfillable_quantity": 1,
66
- "grams": 567,
67
- "price": "199.00",
66
+ "grams": 100,
67
+ "price": "89.99",
68
68
  "total_discount": "0.00",
69
69
  "fulfillment_status": null,
70
70
  "price_set": {
71
71
  "shop_money": {
72
- "amount": "199.00",
72
+ "amount": "89.99",
73
73
  "currency_code": "USD"
74
74
  },
75
75
  "presentment_money": {
76
- "amount": "199.00",
76
+ "amount": "89.99",
77
77
  "currency_code": "USD"
78
78
  }
79
79
  },
@@ -89,38 +89,38 @@
89
89
  },
90
90
  "discount_allocations": [],
91
91
  "duties": [],
92
- "admin_graphql_api_id": "gid://shopify/LineItem/866550311766439020",
92
+ "admin_graphql_api_id": "gid://shopify/LineItem/487817672276298554",
93
93
  "tax_lines": []
94
94
  },
95
95
  {
96
- "id": 141249953214522980,
97
- "variant_id": 808950810,
98
- "title": "IPod Nano - 8GB",
96
+ "id": 976318377106520300,
97
+ "variant_id": null,
98
+ "title": "Mid-century lounger",
99
99
  "quantity": 1,
100
- "sku": "IPOD2008PINK",
100
+ "sku": "SKU2006-020",
101
101
  "variant_title": null,
102
102
  "vendor": null,
103
103
  "fulfillment_service": "manual",
104
- "product_id": 632910392,
104
+ "product_id": 788032119674292900,
105
105
  "requires_shipping": true,
106
106
  "taxable": true,
107
107
  "gift_card": false,
108
- "name": "IPod Nano - 8GB",
109
- "variant_inventory_management": "shopify",
108
+ "name": "Mid-century lounger",
109
+ "variant_inventory_management": null,
110
110
  "properties": [],
111
111
  "product_exists": true,
112
112
  "fulfillable_quantity": 1,
113
- "grams": 567,
114
- "price": "199.00",
113
+ "grams": 1000,
114
+ "price": "159.99",
115
115
  "total_discount": "5.00",
116
116
  "fulfillment_status": null,
117
117
  "price_set": {
118
118
  "shop_money": {
119
- "amount": "199.00",
119
+ "amount": "159.99",
120
120
  "currency_code": "USD"
121
121
  },
122
122
  "presentment_money": {
123
- "amount": "199.00",
123
+ "amount": "159.99",
124
124
  "currency_code": "USD"
125
125
  }
126
126
  },
@@ -165,7 +165,54 @@
165
165
  }
166
166
  ],
167
167
  "duties": [],
168
- "admin_graphql_api_id": "gid://shopify/LineItem/141249953214522974",
168
+ "admin_graphql_api_id": "gid://shopify/LineItem/976318377106520349",
169
+ "tax_lines": []
170
+ },
171
+ {
172
+ "id": 315789986012684400,
173
+ "variant_id": null,
174
+ "title": "Coffee table",
175
+ "quantity": 1,
176
+ "sku": "SKU2006-035",
177
+ "variant_title": null,
178
+ "vendor": null,
179
+ "fulfillment_service": "manual",
180
+ "product_id": 788032119674292900,
181
+ "requires_shipping": true,
182
+ "taxable": true,
183
+ "gift_card": false,
184
+ "name": "Coffee table",
185
+ "variant_inventory_management": null,
186
+ "properties": [],
187
+ "product_exists": true,
188
+ "fulfillable_quantity": 1,
189
+ "grams": 500,
190
+ "price": "119.99",
191
+ "total_discount": "0.00",
192
+ "fulfillment_status": null,
193
+ "price_set": {
194
+ "shop_money": {
195
+ "amount": "119.99",
196
+ "currency_code": "USD"
197
+ },
198
+ "presentment_money": {
199
+ "amount": "119.99",
200
+ "currency_code": "USD"
201
+ }
202
+ },
203
+ "total_discount_set": {
204
+ "shop_money": {
205
+ "amount": "0.00",
206
+ "currency_code": "USD"
207
+ },
208
+ "presentment_money": {
209
+ "amount": "0.00",
210
+ "currency_code": "USD"
211
+ }
212
+ },
213
+ "discount_allocations": [],
214
+ "duties": [],
215
+ "admin_graphql_api_id": "gid://shopify/LineItem/315789986012684393",
169
216
  "tax_lines": []
170
217
  }
171
218
  ],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "access_scopes": [
3
- "inventory"
3
+ "inventory",
4
+ "products"
4
5
  ],
5
6
  "available_on": [
6
7
  "graphql",
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "access_scopes": [
3
- "inventory"
3
+ "inventory",
4
+ "products"
4
5
  ],
5
6
  "available_on": [
6
7
  "graphql",
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "access_scopes": [
3
- "inventory"
3
+ "inventory",
4
+ "products"
4
5
  ],
5
6
  "available_on": [
6
7
  "graphql",
@@ -0,0 +1,18 @@
1
+ {
2
+ "access_scopes": [
3
+ "markets"
4
+ ],
5
+ "available_on": [
6
+ "graphql",
7
+ "toml"
8
+ ],
9
+ "deprecated": false,
10
+ "description": "Occurs when a backup region is updated.",
11
+ "name": "markets_backup_region/update",
12
+ "related_resource": "Region",
13
+ "response": {
14
+ "admin_graphql_api_id": "gid://shopify/MarketRegion/238945671234567891",
15
+ "code": "US"
16
+ },
17
+ "shop_feature": false
18
+ }
@@ -47,16 +47,16 @@
47
47
  "payment_method_name": "visa"
48
48
  },
49
49
  "receipt": {},
50
- "amount": "403.00",
50
+ "amount": "374.97",
51
51
  "currency": "USD",
52
52
  "payment_id": "#9999.1",
53
53
  "total_unsettled_set": {
54
54
  "presentment_money": {
55
- "amount": "403.0",
55
+ "amount": "374.97",
56
56
  "currency": "USD"
57
57
  },
58
58
  "shop_money": {
59
- "amount": "403.0",
59
+ "amount": "374.97",
60
60
  "currency": "USD"
61
61
  }
62
62
  },
@@ -44,14 +44,14 @@
44
44
  "currency_code": "USD"
45
45
  }
46
46
  },
47
- "current_subtotal_price": "398.00",
47
+ "current_subtotal_price": "369.97",
48
48
  "current_subtotal_price_set": {
49
49
  "shop_money": {
50
- "amount": "398.00",
50
+ "amount": "369.97",
51
51
  "currency_code": "USD"
52
52
  },
53
53
  "presentment_money": {
54
- "amount": "398.00",
54
+ "amount": "369.97",
55
55
  "currency_code": "USD"
56
56
  }
57
57
  },
@@ -68,14 +68,14 @@
68
68
  }
69
69
  },
70
70
  "current_total_duties_set": null,
71
- "current_total_price": "398.00",
71
+ "current_total_price": "369.97",
72
72
  "current_total_price_set": {
73
73
  "shop_money": {
74
- "amount": "398.00",
74
+ "amount": "369.97",
75
75
  "currency_code": "USD"
76
76
  },
77
77
  "presentment_money": {
78
- "amount": "398.00",
78
+ "amount": "369.97",
79
79
  "currency_code": "USD"
80
80
  }
81
81
  },
@@ -124,14 +124,14 @@
124
124
  "source_identifier": null,
125
125
  "source_name": "web",
126
126
  "source_url": null,
127
- "subtotal_price": "388.00",
127
+ "subtotal_price": "359.97",
128
128
  "subtotal_price_set": {
129
129
  "shop_money": {
130
- "amount": "388.00",
130
+ "amount": "359.97",
131
131
  "currency_code": "USD"
132
132
  },
133
133
  "presentment_money": {
134
- "amount": "388.00",
134
+ "amount": "359.97",
135
135
  "currency_code": "USD"
136
136
  }
137
137
  },
@@ -172,26 +172,26 @@
172
172
  "currency_code": "USD"
173
173
  }
174
174
  },
175
- "total_line_items_price": "398.00",
175
+ "total_line_items_price": "369.97",
176
176
  "total_line_items_price_set": {
177
177
  "shop_money": {
178
- "amount": "398.00",
178
+ "amount": "369.97",
179
179
  "currency_code": "USD"
180
180
  },
181
181
  "presentment_money": {
182
- "amount": "398.00",
182
+ "amount": "369.97",
183
183
  "currency_code": "USD"
184
184
  }
185
185
  },
186
- "total_outstanding": "398.00",
187
- "total_price": "388.00",
186
+ "total_outstanding": "369.97",
187
+ "total_price": "359.97",
188
188
  "total_price_set": {
189
189
  "shop_money": {
190
- "amount": "388.00",
190
+ "amount": "359.97",
191
191
  "currency_code": "USD"
192
192
  },
193
193
  "presentment_money": {
194
- "amount": "388.00",
194
+ "amount": "359.97",
195
195
  "currency_code": "USD"
196
196
  }
197
197
  },
@@ -277,8 +277,8 @@
277
277
  "fulfillments": [],
278
278
  "line_items": [
279
279
  {
280
- "id": 866550311766439000,
281
- "admin_graphql_api_id": "gid://shopify/LineItem/866550311766439020",
280
+ "id": 487817672276298560,
281
+ "admin_graphql_api_id": "gid://shopify/LineItem/487817672276298554",
282
282
  "attributed_staffs": [
283
283
  {
284
284
  "id": "gid://shopify/StaffMember/902541635",
@@ -290,28 +290,28 @@
290
290
  "fulfillment_service": "manual",
291
291
  "fulfillment_status": null,
292
292
  "gift_card": false,
293
- "grams": 567,
294
- "name": "IPod Nano - 8GB",
295
- "price": "199.00",
293
+ "grams": 100,
294
+ "name": "Aviator sunglasses",
295
+ "price": "89.99",
296
296
  "price_set": {
297
297
  "shop_money": {
298
- "amount": "199.00",
298
+ "amount": "89.99",
299
299
  "currency_code": "USD"
300
300
  },
301
301
  "presentment_money": {
302
- "amount": "199.00",
302
+ "amount": "89.99",
303
303
  "currency_code": "USD"
304
304
  }
305
305
  },
306
306
  "product_exists": true,
307
- "product_id": 632910392,
307
+ "product_id": 788032119674292900,
308
308
  "properties": [],
309
309
  "quantity": 1,
310
310
  "requires_shipping": true,
311
311
  "sales_line_item_group_id": null,
312
- "sku": "IPOD2008PINK",
312
+ "sku": "SKU2006-001",
313
313
  "taxable": true,
314
- "title": "IPod Nano - 8GB",
314
+ "title": "Aviator sunglasses",
315
315
  "total_discount": "0.00",
316
316
  "total_discount_set": {
317
317
  "shop_money": {
@@ -323,8 +323,8 @@
323
323
  "currency_code": "USD"
324
324
  }
325
325
  },
326
- "variant_id": 808950810,
327
- "variant_inventory_management": "shopify",
326
+ "variant_id": null,
327
+ "variant_inventory_management": null,
328
328
  "variant_title": null,
329
329
  "vendor": null,
330
330
  "tax_lines": [],
@@ -332,36 +332,86 @@
332
332
  "discount_allocations": []
333
333
  },
334
334
  {
335
- "id": 141249953214522980,
336
- "admin_graphql_api_id": "gid://shopify/LineItem/141249953214522974",
335
+ "id": 976318377106520300,
336
+ "admin_graphql_api_id": "gid://shopify/LineItem/976318377106520349",
337
337
  "attributed_staffs": [],
338
338
  "current_quantity": 1,
339
339
  "fulfillable_quantity": 1,
340
340
  "fulfillment_service": "manual",
341
341
  "fulfillment_status": null,
342
342
  "gift_card": false,
343
- "grams": 567,
344
- "name": "IPod Nano - 8GB",
345
- "price": "199.00",
343
+ "grams": 1000,
344
+ "name": "Mid-century lounger",
345
+ "price": "159.99",
346
346
  "price_set": {
347
347
  "shop_money": {
348
- "amount": "199.00",
348
+ "amount": "159.99",
349
349
  "currency_code": "USD"
350
350
  },
351
351
  "presentment_money": {
352
- "amount": "199.00",
352
+ "amount": "159.99",
353
353
  "currency_code": "USD"
354
354
  }
355
355
  },
356
356
  "product_exists": true,
357
- "product_id": 632910392,
357
+ "product_id": 788032119674292900,
358
358
  "properties": [],
359
359
  "quantity": 1,
360
360
  "requires_shipping": true,
361
- "sales_line_item_group_id": null,
362
- "sku": "IPOD2008PINK",
361
+ "sales_line_item_group_id": 142831562,
362
+ "sku": "SKU2006-020",
363
+ "taxable": true,
364
+ "title": "Mid-century lounger",
365
+ "total_discount": "0.00",
366
+ "total_discount_set": {
367
+ "shop_money": {
368
+ "amount": "0.00",
369
+ "currency_code": "USD"
370
+ },
371
+ "presentment_money": {
372
+ "amount": "0.00",
373
+ "currency_code": "USD"
374
+ }
375
+ },
376
+ "variant_id": null,
377
+ "variant_inventory_management": null,
378
+ "variant_title": null,
379
+ "vendor": null,
380
+ "tax_lines": [],
381
+ "duties": [],
382
+ "discount_allocations": []
383
+ },
384
+ {
385
+ "id": 315789986012684400,
386
+ "admin_graphql_api_id": "gid://shopify/LineItem/315789986012684393",
387
+ "attributed_staffs": [],
388
+ "current_quantity": 1,
389
+ "fulfillable_quantity": 1,
390
+ "fulfillment_service": "manual",
391
+ "fulfillment_status": null,
392
+ "gift_card": false,
393
+ "grams": 500,
394
+ "name": "Coffee table",
395
+ "price": "119.99",
396
+ "price_set": {
397
+ "shop_money": {
398
+ "amount": "119.99",
399
+ "currency_code": "USD"
400
+ },
401
+ "presentment_money": {
402
+ "amount": "119.99",
403
+ "currency_code": "USD"
404
+ }
405
+ },
406
+ "product_exists": true,
407
+ "product_id": 788032119674292900,
408
+ "properties": [],
409
+ "quantity": 1,
410
+ "requires_shipping": true,
411
+ "sales_line_item_group_id": 142831562,
412
+ "sku": "SKU2006-035",
363
413
  "taxable": true,
364
- "title": "IPod Nano - 8GB",
414
+ "title": "Coffee table",
365
415
  "total_discount": "0.00",
366
416
  "total_discount_set": {
367
417
  "shop_money": {
@@ -373,8 +423,8 @@
373
423
  "currency_code": "USD"
374
424
  }
375
425
  },
376
- "variant_id": 808950810,
377
- "variant_inventory_management": "shopify",
426
+ "variant_id": null,
427
+ "variant_inventory_management": null,
378
428
  "variant_title": null,
379
429
  "vendor": null,
380
430
  "tax_lines": [],