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
@@ -2,7 +2,81 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "properties": {
4
4
  "addresses": {
5
- "items": false,
5
+ "items": {
6
+ "properties": {
7
+ "address1": {
8
+ "type": "string"
9
+ },
10
+ "address2": {
11
+ "type": "string"
12
+ },
13
+ "city": {
14
+ "type": "string"
15
+ },
16
+ "company": {
17
+ "type": "string"
18
+ },
19
+ "country": {
20
+ "type": "string"
21
+ },
22
+ "country_code": {
23
+ "type": "string"
24
+ },
25
+ "country_name": {
26
+ "type": "string"
27
+ },
28
+ "customer_id": {
29
+ "type": "integer"
30
+ },
31
+ "default": {
32
+ "type": "boolean"
33
+ },
34
+ "first_name": {
35
+ "type": "string"
36
+ },
37
+ "id": {
38
+ "type": "integer"
39
+ },
40
+ "last_name": {
41
+ "type": "string"
42
+ },
43
+ "name": {
44
+ "type": "string"
45
+ },
46
+ "phone": {
47
+ "type": "string"
48
+ },
49
+ "province": {
50
+ "type": "string"
51
+ },
52
+ "province_code": {
53
+ "type": "string"
54
+ },
55
+ "zip": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "required": [
60
+ "address1",
61
+ "address2",
62
+ "city",
63
+ "company",
64
+ "country",
65
+ "country_code",
66
+ "country_name",
67
+ "customer_id",
68
+ "default",
69
+ "first_name",
70
+ "id",
71
+ "last_name",
72
+ "name",
73
+ "phone",
74
+ "province",
75
+ "province_code",
76
+ "zip"
77
+ ],
78
+ "type": "object"
79
+ },
6
80
  "type": "array"
7
81
  },
8
82
  "admin_graphql_api_id": {
@@ -22,13 +96,19 @@
22
96
  "type": "string"
23
97
  },
24
98
  "address2": {
25
- "type": "null"
99
+ "type": [
100
+ "null",
101
+ "string"
102
+ ]
26
103
  },
27
104
  "city": {
28
105
  "type": "string"
29
106
  },
30
107
  "company": {
31
- "type": "null"
108
+ "type": [
109
+ "null",
110
+ "string"
111
+ ]
32
112
  },
33
113
  "country": {
34
114
  "type": "string"
@@ -126,7 +206,9 @@
126
206
  "type": "boolean"
127
207
  },
128
208
  "tax_exemptions": {
129
- "items": false,
209
+ "items": {
210
+ "type": "string"
211
+ },
130
212
  "type": "array"
131
213
  },
132
214
  "updated_at": {
@@ -2,7 +2,81 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "properties": {
4
4
  "addresses": {
5
- "items": false,
5
+ "items": {
6
+ "properties": {
7
+ "address1": {
8
+ "type": "string"
9
+ },
10
+ "address2": {
11
+ "type": "string"
12
+ },
13
+ "city": {
14
+ "type": "string"
15
+ },
16
+ "company": {
17
+ "type": "string"
18
+ },
19
+ "country": {
20
+ "type": "string"
21
+ },
22
+ "country_code": {
23
+ "type": "string"
24
+ },
25
+ "country_name": {
26
+ "type": "string"
27
+ },
28
+ "customer_id": {
29
+ "type": "integer"
30
+ },
31
+ "default": {
32
+ "type": "boolean"
33
+ },
34
+ "first_name": {
35
+ "type": "string"
36
+ },
37
+ "id": {
38
+ "type": "integer"
39
+ },
40
+ "last_name": {
41
+ "type": "string"
42
+ },
43
+ "name": {
44
+ "type": "string"
45
+ },
46
+ "phone": {
47
+ "type": "string"
48
+ },
49
+ "province": {
50
+ "type": "string"
51
+ },
52
+ "province_code": {
53
+ "type": "string"
54
+ },
55
+ "zip": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "required": [
60
+ "address1",
61
+ "address2",
62
+ "city",
63
+ "company",
64
+ "country",
65
+ "country_code",
66
+ "country_name",
67
+ "customer_id",
68
+ "default",
69
+ "first_name",
70
+ "id",
71
+ "last_name",
72
+ "name",
73
+ "phone",
74
+ "province",
75
+ "province_code",
76
+ "zip"
77
+ ],
78
+ "type": "object"
79
+ },
6
80
  "type": "array"
7
81
  },
8
82
  "admin_graphql_api_id": {
@@ -19,7 +93,9 @@
19
93
  ]
20
94
  },
21
95
  "tax_exemptions": {
22
- "items": false,
96
+ "items": {
97
+ "type": "string"
98
+ },
23
99
  "type": "array"
24
100
  }
25
101
  },
@@ -2,7 +2,81 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "properties": {
4
4
  "addresses": {
5
- "items": false,
5
+ "items": {
6
+ "properties": {
7
+ "address1": {
8
+ "type": "string"
9
+ },
10
+ "address2": {
11
+ "type": "string"
12
+ },
13
+ "city": {
14
+ "type": "string"
15
+ },
16
+ "company": {
17
+ "type": "string"
18
+ },
19
+ "country": {
20
+ "type": "string"
21
+ },
22
+ "country_code": {
23
+ "type": "string"
24
+ },
25
+ "country_name": {
26
+ "type": "string"
27
+ },
28
+ "customer_id": {
29
+ "type": "integer"
30
+ },
31
+ "default": {
32
+ "type": "boolean"
33
+ },
34
+ "first_name": {
35
+ "type": "string"
36
+ },
37
+ "id": {
38
+ "type": "integer"
39
+ },
40
+ "last_name": {
41
+ "type": "string"
42
+ },
43
+ "name": {
44
+ "type": "string"
45
+ },
46
+ "phone": {
47
+ "type": "string"
48
+ },
49
+ "province": {
50
+ "type": "string"
51
+ },
52
+ "province_code": {
53
+ "type": "string"
54
+ },
55
+ "zip": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "required": [
60
+ "address1",
61
+ "address2",
62
+ "city",
63
+ "company",
64
+ "country",
65
+ "country_code",
66
+ "country_name",
67
+ "customer_id",
68
+ "default",
69
+ "first_name",
70
+ "id",
71
+ "last_name",
72
+ "name",
73
+ "phone",
74
+ "province",
75
+ "province_code",
76
+ "zip"
77
+ ],
78
+ "type": "object"
79
+ },
6
80
  "type": "array"
7
81
  },
8
82
  "admin_graphql_api_id": {
@@ -22,13 +96,19 @@
22
96
  "type": "string"
23
97
  },
24
98
  "address2": {
25
- "type": "null"
99
+ "type": [
100
+ "null",
101
+ "string"
102
+ ]
26
103
  },
27
104
  "city": {
28
105
  "type": "string"
29
106
  },
30
107
  "company": {
31
- "type": "null"
108
+ "type": [
109
+ "null",
110
+ "string"
111
+ ]
32
112
  },
33
113
  "country": {
34
114
  "type": "string"
@@ -126,7 +206,9 @@
126
206
  "type": "boolean"
127
207
  },
128
208
  "tax_exemptions": {
129
- "items": false,
209
+ "items": {
210
+ "type": "string"
211
+ },
130
212
  "type": "array"
131
213
  },
132
214
  "updated_at": {
@@ -2,7 +2,81 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "properties": {
4
4
  "addresses": {
5
- "items": false,
5
+ "items": {
6
+ "properties": {
7
+ "address1": {
8
+ "type": "string"
9
+ },
10
+ "address2": {
11
+ "type": "string"
12
+ },
13
+ "city": {
14
+ "type": "string"
15
+ },
16
+ "company": {
17
+ "type": "string"
18
+ },
19
+ "country": {
20
+ "type": "string"
21
+ },
22
+ "country_code": {
23
+ "type": "string"
24
+ },
25
+ "country_name": {
26
+ "type": "string"
27
+ },
28
+ "customer_id": {
29
+ "type": "integer"
30
+ },
31
+ "default": {
32
+ "type": "boolean"
33
+ },
34
+ "first_name": {
35
+ "type": "string"
36
+ },
37
+ "id": {
38
+ "type": "integer"
39
+ },
40
+ "last_name": {
41
+ "type": "string"
42
+ },
43
+ "name": {
44
+ "type": "string"
45
+ },
46
+ "phone": {
47
+ "type": "string"
48
+ },
49
+ "province": {
50
+ "type": "string"
51
+ },
52
+ "province_code": {
53
+ "type": "string"
54
+ },
55
+ "zip": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "required": [
60
+ "address1",
61
+ "address2",
62
+ "city",
63
+ "company",
64
+ "country",
65
+ "country_code",
66
+ "country_name",
67
+ "customer_id",
68
+ "default",
69
+ "first_name",
70
+ "id",
71
+ "last_name",
72
+ "name",
73
+ "phone",
74
+ "province",
75
+ "province_code",
76
+ "zip"
77
+ ],
78
+ "type": "object"
79
+ },
6
80
  "type": "array"
7
81
  },
8
82
  "admin_graphql_api_id": {
@@ -22,13 +96,19 @@
22
96
  "type": "string"
23
97
  },
24
98
  "address2": {
25
- "type": "null"
99
+ "type": [
100
+ "null",
101
+ "string"
102
+ ]
26
103
  },
27
104
  "city": {
28
105
  "type": "string"
29
106
  },
30
107
  "company": {
31
- "type": "null"
108
+ "type": [
109
+ "null",
110
+ "string"
111
+ ]
32
112
  },
33
113
  "country": {
34
114
  "type": "string"
@@ -126,7 +206,9 @@
126
206
  "type": "boolean"
127
207
  },
128
208
  "tax_exemptions": {
129
- "items": false,
209
+ "items": {
210
+ "type": "string"
211
+ },
130
212
  "type": "array"
131
213
  },
132
214
  "updated_at": {
@@ -2,7 +2,81 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "properties": {
4
4
  "addresses": {
5
- "items": false,
5
+ "items": {
6
+ "properties": {
7
+ "address1": {
8
+ "type": "string"
9
+ },
10
+ "address2": {
11
+ "type": "string"
12
+ },
13
+ "city": {
14
+ "type": "string"
15
+ },
16
+ "company": {
17
+ "type": "string"
18
+ },
19
+ "country": {
20
+ "type": "string"
21
+ },
22
+ "country_code": {
23
+ "type": "string"
24
+ },
25
+ "country_name": {
26
+ "type": "string"
27
+ },
28
+ "customer_id": {
29
+ "type": "integer"
30
+ },
31
+ "default": {
32
+ "type": "boolean"
33
+ },
34
+ "first_name": {
35
+ "type": "string"
36
+ },
37
+ "id": {
38
+ "type": "integer"
39
+ },
40
+ "last_name": {
41
+ "type": "string"
42
+ },
43
+ "name": {
44
+ "type": "string"
45
+ },
46
+ "phone": {
47
+ "type": "string"
48
+ },
49
+ "province": {
50
+ "type": "string"
51
+ },
52
+ "province_code": {
53
+ "type": "string"
54
+ },
55
+ "zip": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "required": [
60
+ "address1",
61
+ "address2",
62
+ "city",
63
+ "company",
64
+ "country",
65
+ "country_code",
66
+ "country_name",
67
+ "customer_id",
68
+ "default",
69
+ "first_name",
70
+ "id",
71
+ "last_name",
72
+ "name",
73
+ "phone",
74
+ "province",
75
+ "province_code",
76
+ "zip"
77
+ ],
78
+ "type": "object"
79
+ },
6
80
  "type": "array"
7
81
  },
8
82
  "admin_graphql_api_id": {
@@ -22,13 +96,19 @@
22
96
  "type": "string"
23
97
  },
24
98
  "address2": {
25
- "type": "null"
99
+ "type": [
100
+ "null",
101
+ "string"
102
+ ]
26
103
  },
27
104
  "city": {
28
105
  "type": "string"
29
106
  },
30
107
  "company": {
31
- "type": "null"
108
+ "type": [
109
+ "null",
110
+ "string"
111
+ ]
32
112
  },
33
113
  "country": {
34
114
  "type": "string"
@@ -126,7 +206,9 @@
126
206
  "type": "boolean"
127
207
  },
128
208
  "tax_exemptions": {
129
- "items": false,
209
+ "items": {
210
+ "type": "string"
211
+ },
130
212
  "type": "array"
131
213
  },
132
214
  "updated_at": {
@@ -14,13 +14,23 @@
14
14
  "email_marketing_consent": {
15
15
  "properties": {
16
16
  "consent_updated_at": {
17
- "type": "null"
17
+ "format": "date-time",
18
+ "type": [
19
+ "null",
20
+ "string"
21
+ ]
18
22
  },
19
23
  "opt_in_level": {
20
- "type": "null"
24
+ "type": [
25
+ "null",
26
+ "string"
27
+ ]
21
28
  },
22
29
  "state": {
23
- "type": "null"
30
+ "type": [
31
+ "null",
32
+ "string"
33
+ ]
24
34
  }
25
35
  },
26
36
  "required": [
@@ -16,13 +16,23 @@
16
16
  "type": "string"
17
17
  },
18
18
  "consent_updated_at": {
19
- "type": "null"
19
+ "format": "date-time",
20
+ "type": [
21
+ "null",
22
+ "string"
23
+ ]
20
24
  },
21
25
  "opt_in_level": {
22
- "type": "null"
26
+ "type": [
27
+ "null",
28
+ "string"
29
+ ]
23
30
  },
24
31
  "state": {
25
- "type": "null"
32
+ "type": [
33
+ "null",
34
+ "string"
35
+ ]
26
36
  }
27
37
  },
28
38
  "required": [
@@ -33,7 +33,6 @@
33
33
  "type": "string"
34
34
  },
35
35
  "network_reason_code": {
36
- "format": "time",
37
36
  "type": "string"
38
37
  },
39
38
  "order_id": {
@@ -33,7 +33,6 @@
33
33
  "type": "string"
34
34
  },
35
35
  "network_reason_code": {
36
- "format": "time",
37
36
  "type": "string"
38
37
  },
39
38
  "order_id": {
@@ -2,7 +2,6 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "properties": {
4
4
  "host": {
5
- "format": "hostname",
6
5
  "type": "string"
7
6
  },
8
7
  "id": {
@@ -26,7 +25,10 @@
26
25
  "country",
27
26
  "default_locale"
28
27
  ],
29
- "type": "object"
28
+ "type": [
29
+ "null",
30
+ "object"
31
+ ]
30
32
  },
31
33
  "ssl_enabled": {
32
34
  "type": "boolean"
@@ -2,7 +2,6 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "properties": {
4
4
  "host": {
5
- "format": "hostname",
6
5
  "type": "string"
7
6
  },
8
7
  "id": {
@@ -26,7 +25,10 @@
26
25
  "country",
27
26
  "default_locale"
28
27
  ],
29
- "type": "object"
28
+ "type": [
29
+ "null",
30
+ "object"
31
+ ]
30
32
  },
31
33
  "ssl_enabled": {
32
34
  "type": "boolean"
@@ -2,7 +2,6 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "properties": {
4
4
  "host": {
5
- "format": "hostname",
6
5
  "type": "string"
7
6
  },
8
7
  "id": {
@@ -26,7 +25,10 @@
26
25
  "country",
27
26
  "default_locale"
28
27
  ],
29
- "type": "object"
28
+ "type": [
29
+ "null",
30
+ "object"
31
+ ]
30
32
  },
31
33
  "ssl_enabled": {
32
34
  "type": "boolean"