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
@@ -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"
@@ -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"
@@ -2,7 +2,11 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "properties": {
4
4
  "admin_graphql_api_order_id": {
5
- "type": "null"
5
+ "format": "uri",
6
+ "type": [
7
+ "null",
8
+ "string"
9
+ ]
6
10
  },
7
11
  "created_at": {
8
12
  "format": "date-time",
@@ -12,7 +16,10 @@
12
16
  ]
13
17
  },
14
18
  "order_id": {
15
- "type": "null"
19
+ "type": [
20
+ "null",
21
+ "string"
22
+ ]
16
23
  },
17
24
  "provider_id": {
18
25
  "type": [
@@ -13,7 +13,14 @@
13
13
  "type": "object"
14
14
  },
15
15
  "order_id": {
16
- "type": "integer"
16
+ "anyOf": [
17
+ {
18
+ "type": "integer"
19
+ },
20
+ {
21
+ "type": "string"
22
+ }
23
+ ]
17
24
  },
18
25
  "status": {
19
26
  "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"
@@ -30,7 +30,10 @@
30
30
  },
31
31
  "completed_at": {
32
32
  "format": "date-time",
33
- "type": "string"
33
+ "type": [
34
+ "null",
35
+ "string"
36
+ ]
34
37
  },
35
38
  "created_at": {
36
39
  "format": "date-time",
@@ -30,7 +30,10 @@
30
30
  },
31
31
  "completed_at": {
32
32
  "format": "date-time",
33
- "type": "string"
33
+ "type": [
34
+ "null",
35
+ "string"
36
+ ]
34
37
  },
35
38
  "created_at": {
36
39
  "format": "date-time",