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
@@ -15,7 +15,10 @@
15
15
  "type": "string"
16
16
  },
17
17
  "address2": {
18
- "type": "null"
18
+ "type": [
19
+ "null",
20
+ "string"
21
+ ]
19
22
  },
20
23
  "city": {
21
24
  "type": "string"
@@ -158,7 +161,137 @@
158
161
  "type": "array"
159
162
  },
160
163
  "duties": {
161
- "items": false,
164
+ "items": {
165
+ "properties": {
166
+ "admin_graphql_api_id": {
167
+ "format": "uri",
168
+ "type": "string"
169
+ },
170
+ "country_code_of_origin": {
171
+ "type": "string"
172
+ },
173
+ "harmonized_system_code": {
174
+ "type": "string"
175
+ },
176
+ "id": {
177
+ "type": "integer"
178
+ },
179
+ "price_set": {
180
+ "properties": {
181
+ "presentment_money": {
182
+ "properties": {
183
+ "amount": {
184
+ "type": "string"
185
+ },
186
+ "currency_code": {
187
+ "type": "string"
188
+ }
189
+ },
190
+ "required": [
191
+ "amount",
192
+ "currency_code"
193
+ ],
194
+ "type": "object"
195
+ },
196
+ "shop_money": {
197
+ "properties": {
198
+ "amount": {
199
+ "type": "string"
200
+ },
201
+ "currency_code": {
202
+ "type": "string"
203
+ }
204
+ },
205
+ "required": [
206
+ "amount",
207
+ "currency_code"
208
+ ],
209
+ "type": "object"
210
+ }
211
+ },
212
+ "required": [
213
+ "presentment_money",
214
+ "shop_money"
215
+ ],
216
+ "type": "object"
217
+ },
218
+ "tax_lines": {
219
+ "items": {
220
+ "properties": {
221
+ "channel_liable": {
222
+ "type": "boolean"
223
+ },
224
+ "price": {
225
+ "type": "string"
226
+ },
227
+ "price_set": {
228
+ "properties": {
229
+ "presentment_money": {
230
+ "properties": {
231
+ "amount": {
232
+ "type": "string"
233
+ },
234
+ "currency_code": {
235
+ "type": "string"
236
+ }
237
+ },
238
+ "required": [
239
+ "amount",
240
+ "currency_code"
241
+ ],
242
+ "type": "object"
243
+ },
244
+ "shop_money": {
245
+ "properties": {
246
+ "amount": {
247
+ "type": "string"
248
+ },
249
+ "currency_code": {
250
+ "type": "string"
251
+ }
252
+ },
253
+ "required": [
254
+ "amount",
255
+ "currency_code"
256
+ ],
257
+ "type": "object"
258
+ }
259
+ },
260
+ "required": [
261
+ "presentment_money",
262
+ "shop_money"
263
+ ],
264
+ "type": "object"
265
+ },
266
+ "rate": {
267
+ "type": "number"
268
+ },
269
+ "title": {
270
+ "type": "string"
271
+ }
272
+ },
273
+ "required": [
274
+ "channel_liable",
275
+ "price",
276
+ "price_set",
277
+ "rate",
278
+ "title"
279
+ ],
280
+ "type": "object"
281
+ },
282
+ "type": "array"
283
+ }
284
+ },
285
+ "required": [
286
+ "admin_graphql_api_id",
287
+ "country_code_of_origin",
288
+ "harmonized_system_code",
289
+ "id",
290
+ "price_set",
291
+ "tax_lines"
292
+ ],
293
+ "type": "object"
294
+ },
162
295
  "type": "array"
163
296
  },
164
297
  "fulfillable_quantity": {
@@ -276,7 +409,21 @@
276
409
  "type": "integer"
277
410
  },
278
411
  "properties": {
279
- "items": false,
412
+ "items": {
413
+ "properties": {
414
+ "name": {
415
+ "type": "string"
416
+ },
417
+ "value": {
418
+ "type": "string"
419
+ }
420
+ },
421
+ "required": [
422
+ "name",
423
+ "value"
424
+ ],
425
+ "type": "object"
426
+ },
280
427
  "type": "array"
281
428
  },
282
429
  "quantity": {
@@ -406,10 +553,16 @@
406
553
  "type": "object"
407
554
  },
408
555
  "variant_id": {
409
- "type": "integer"
556
+ "type": [
557
+ "integer",
558
+ "null"
559
+ ]
410
560
  },
411
561
  "variant_inventory_management": {
412
- "type": "string"
562
+ "type": [
563
+ "null",
564
+ "string"
565
+ ]
413
566
  },
414
567
  "variant_title": {
415
568
  "type": [
@@ -470,70 +623,47 @@
470
623
  "type": "integer"
471
624
  },
472
625
  "origin_address": {
473
- "properties": {
474
- "address1": {
475
- "type": "string"
476
- },
477
- "address2": {
478
- "type": [
479
- "null",
480
- "string"
481
- ]
482
- },
483
- "city": {
484
- "type": "string"
485
- },
486
- "company": {
487
- "type": "string"
488
- },
489
- "country": {
490
- "type": "string"
491
- },
492
- "country_code": {
493
- "type": "string"
494
- },
495
- "first_name": {
496
- "type": "string"
497
- },
498
- "last_name": {
499
- "type": "string"
500
- },
501
- "latitude": {
502
- "type": "null"
503
- },
504
- "longitude": {
505
- "type": "null"
506
- },
507
- "name": {
508
- "type": "string"
509
- },
510
- "phone": {
511
- "type": "string"
512
- },
513
- "province": {
514
- "type": "string"
515
- },
516
- "province_code": {
517
- "type": "string"
518
- },
519
- "zip": {
520
- "type": "string"
521
- }
626
+ "address1": {
627
+ "type": "string"
522
628
  },
523
- "required": [
524
- "address1",
525
- "address2",
526
- "city",
527
- "country_code",
528
- "province_code",
529
- "zip"
530
- ],
531
- "type": [
532
- "null",
533
- "object"
534
- ]
629
+ "city": {
630
+ "type": "string"
631
+ },
632
+ "country_code": {
633
+ "type": "string"
634
+ },
635
+ "province_code": {
636
+ "type": "string"
637
+ },
638
+ "zip": {
639
+ "type": "string"
640
+ }
535
641
  },
536
642
  "receipt": {
643
+ "properties": {
644
+ "gift_cards": {
645
+ "items": {
646
+ "properties": {
647
+ "id": {
648
+ "type": "integer"
649
+ },
650
+ "line_item_id": {
651
+ "type": "integer"
652
+ },
653
+ "masked_code": {
654
+ "type": "string"
655
+ }
656
+ },
657
+ "required": [
658
+ "id",
659
+ "line_item_id",
660
+ "masked_code"
661
+ ],
662
+ "type": "object"
663
+ },
664
+ "type": "array"
665
+ }
666
+ },
537
667
  "type": "object"
538
668
  },
539
669
  "service": {
@@ -6,9 +6,13 @@
6
6
  "type": "string"
7
7
  },
8
8
  "cost": {
9
- "type": [
10
- "null",
11
- "number"
9
+ "anyOf": [
10
+ {
11
+ "type": "number"
12
+ },
13
+ {
14
+ "type": "string"
15
+ }
12
16
  ]
13
17
  },
14
18
  "country_code_of_origin": {
@@ -6,9 +6,13 @@
6
6
  "type": "string"
7
7
  },
8
8
  "cost": {
9
- "type": [
10
- "null",
11
- "number"
9
+ "anyOf": [
10
+ {
11
+ "type": "number"
12
+ },
13
+ {
14
+ "type": "string"
15
+ }
12
16
  ]
13
17
  },
14
18
  "country_code_of_origin": {
@@ -0,0 +1,17 @@
1
+ {
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
+ "code": {
9
+ "type": "string"
10
+ }
11
+ },
12
+ "required": [
13
+ "admin_graphql_api_id",
14
+ "code"
15
+ ],
16
+ "type": "object"
17
+ }
@@ -9,7 +9,10 @@
9
9
  "type": "string"
10
10
  },
11
11
  "amount_rounding": {
12
- "type": "null"
12
+ "type": [
13
+ "null",
14
+ "string"
15
+ ]
13
16
  },
14
17
  "authorization": {
15
18
  "type": "string"
@@ -22,9 +25,13 @@
22
25
  "type": "string"
23
26
  },
24
27
  "device_id": {
25
- "type": [
26
- "null",
27
- "string"
28
+ "anyOf": [
29
+ {
30
+ "type": "string"
31
+ },
32
+ {
33
+ "type": "integer"
34
+ }
28
35
  ]
29
36
  },
30
37
  "error_code": {
@@ -109,7 +116,10 @@
109
116
  "type": "string"
110
117
  },
111
118
  "credit_card_wallet": {
112
- "type": "null"
119
+ "type": [
120
+ "null",
121
+ "string"
122
+ ]
113
123
  },
114
124
  "cvv_result_code": {
115
125
  "type": [
@@ -1040,7 +1040,69 @@
1040
1040
  "type": "string"
1041
1041
  },
1042
1042
  "tax_lines": {
1043
- "items": false,
1043
+ "items": {
1044
+ "properties": {
1045
+ "channel_liable": {
1046
+ "type": "boolean"
1047
+ },
1048
+ "price": {
1049
+ "type": "string"
1050
+ },
1051
+ "price_set": {
1052
+ "properties": {
1053
+ "presentment_money": {
1054
+ "properties": {
1055
+ "amount": {
1056
+ "type": "string"
1057
+ },
1058
+ "currency_code": {
1059
+ "type": "string"
1060
+ }
1061
+ },
1062
+ "required": [
1063
+ "amount",
1064
+ "currency_code"
1065
+ ],
1066
+ "type": "object"
1067
+ },
1068
+ "shop_money": {
1069
+ "properties": {
1070
+ "amount": {
1071
+ "type": "string"
1072
+ },
1073
+ "currency_code": {
1074
+ "type": "string"
1075
+ }
1076
+ },
1077
+ "required": [
1078
+ "amount",
1079
+ "currency_code"
1080
+ ],
1081
+ "type": "object"
1082
+ }
1083
+ },
1084
+ "required": [
1085
+ "presentment_money",
1086
+ "shop_money"
1087
+ ],
1088
+ "type": "object"
1089
+ },
1090
+ "rate": {
1091
+ "type": "integer"
1092
+ },
1093
+ "title": {
1094
+ "type": "string"
1095
+ }
1096
+ },
1097
+ "required": [
1098
+ "channel_liable",
1099
+ "price",
1100
+ "price_set",
1101
+ "rate",
1102
+ "title"
1103
+ ],
1104
+ "type": "object"
1105
+ },
1044
1106
  "type": "array"
1045
1107
  },
1046
1108
  "taxable": {
@@ -1477,7 +1539,10 @@
1477
1539
  "type": "boolean"
1478
1540
  },
1479
1541
  "sales_line_item_group_id": {
1480
- "type": "null"
1542
+ "type": [
1543
+ "integer",
1544
+ "null"
1545
+ ]
1481
1546
  },
1482
1547
  "sku": {
1483
1548
  "type": "string"
@@ -1597,7 +1662,10 @@
1597
1662
  "type": "object"
1598
1663
  },
1599
1664
  "variant_id": {
1600
- "type": "integer"
1665
+ "type": [
1666
+ "integer",
1667
+ "null"
1668
+ ]
1601
1669
  },
1602
1670
  "variant_inventory_management": {
1603
1671
  "type": [
@@ -1621,6 +1689,7 @@
1621
1689
  "required": [
1622
1690
  "admin_graphql_api_id",
1623
1691
  "attributed_staffs",
1692
+ "current_quantity",
1624
1693
  "discount_allocations",
1625
1694
  "duties",
1626
1695
  "fulfillable_quantity",
@@ -2025,7 +2094,10 @@
2025
2094
  "type": "boolean"
2026
2095
  },
2027
2096
  "phone": {
2028
- "type": "null"
2097
+ "type": [
2098
+ "null",
2099
+ "string"
2100
+ ]
2029
2101
  },
2030
2102
  "price": {
2031
2103
  "type": "string"
@@ -1040,7 +1040,69 @@
1040
1040
  "type": "string"
1041
1041
  },
1042
1042
  "tax_lines": {
1043
- "items": false,
1043
+ "items": {
1044
+ "properties": {
1045
+ "channel_liable": {
1046
+ "type": "boolean"
1047
+ },
1048
+ "price": {
1049
+ "type": "string"
1050
+ },
1051
+ "price_set": {
1052
+ "properties": {
1053
+ "presentment_money": {
1054
+ "properties": {
1055
+ "amount": {
1056
+ "type": "string"
1057
+ },
1058
+ "currency_code": {
1059
+ "type": "string"
1060
+ }
1061
+ },
1062
+ "required": [
1063
+ "amount",
1064
+ "currency_code"
1065
+ ],
1066
+ "type": "object"
1067
+ },
1068
+ "shop_money": {
1069
+ "properties": {
1070
+ "amount": {
1071
+ "type": "string"
1072
+ },
1073
+ "currency_code": {
1074
+ "type": "string"
1075
+ }
1076
+ },
1077
+ "required": [
1078
+ "amount",
1079
+ "currency_code"
1080
+ ],
1081
+ "type": "object"
1082
+ }
1083
+ },
1084
+ "required": [
1085
+ "presentment_money",
1086
+ "shop_money"
1087
+ ],
1088
+ "type": "object"
1089
+ },
1090
+ "rate": {
1091
+ "type": "integer"
1092
+ },
1093
+ "title": {
1094
+ "type": "string"
1095
+ }
1096
+ },
1097
+ "required": [
1098
+ "channel_liable",
1099
+ "price",
1100
+ "price_set",
1101
+ "rate",
1102
+ "title"
1103
+ ],
1104
+ "type": "object"
1105
+ },
1044
1106
  "type": "array"
1045
1107
  },
1046
1108
  "taxable": {
@@ -1477,7 +1539,10 @@
1477
1539
  "type": "boolean"
1478
1540
  },
1479
1541
  "sales_line_item_group_id": {
1480
- "type": "null"
1542
+ "type": [
1543
+ "integer",
1544
+ "null"
1545
+ ]
1481
1546
  },
1482
1547
  "sku": {
1483
1548
  "type": "string"
@@ -1597,7 +1662,10 @@
1597
1662
  "type": "object"
1598
1663
  },
1599
1664
  "variant_id": {
1600
- "type": "integer"
1665
+ "type": [
1666
+ "integer",
1667
+ "null"
1668
+ ]
1601
1669
  },
1602
1670
  "variant_inventory_management": {
1603
1671
  "type": [
@@ -1621,6 +1689,7 @@
1621
1689
  "required": [
1622
1690
  "admin_graphql_api_id",
1623
1691
  "attributed_staffs",
1692
+ "current_quantity",
1624
1693
  "discount_allocations",
1625
1694
  "duties",
1626
1695
  "fulfillable_quantity",
@@ -2025,7 +2094,10 @@
2025
2094
  "type": "boolean"
2026
2095
  },
2027
2096
  "phone": {
2028
- "type": "null"
2097
+ "type": [
2098
+ "null",
2099
+ "string"
2100
+ ]
2029
2101
  },
2030
2102
  "price": {
2031
2103
  "type": "string"
@@ -4,7 +4,10 @@
4
4
  "order_edit": {
5
5
  "properties": {
6
6
  "app_id": {
7
- "type": "null"
7
+ "type": [
8
+ "integer",
9
+ "null"
10
+ ]
8
11
  },
9
12
  "committed_at": {
10
13
  "format": "date-time",
@@ -114,7 +117,10 @@
114
117
  "type": "string"
115
118
  },
116
119
  "user_id": {
117
- "type": "null"
120
+ "type": [
121
+ "integer",
122
+ "null"
123
+ ]
118
124
  }
119
125
  },
120
126
  "required": [