shopify-webhook-schemas 0.1.9 → 0.2.1

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 (106) hide show
  1. package/dist/src/infer-schema.js +90 -0
  2. package/metadatas/2025-04/app_purchases_one_time/update.json +1 -1
  3. package/metadatas/2025-04/app_subscriptions/approaching_capped_amount.json +1 -1
  4. package/metadatas/2025-04/app_subscriptions/update.json +5 -2
  5. package/metadatas/2025-04/bulk_operations/finish.json +1 -1
  6. package/metadatas/2025-04/checkouts/create.json +6 -6
  7. package/metadatas/2025-04/checkouts/update.json +6 -6
  8. package/metadatas/2025-04/discounts/create.json +2 -2
  9. package/metadatas/2025-04/discounts/delete.json +1 -1
  10. package/metadatas/2025-04/discounts/redeemcode_added.json +1 -1
  11. package/metadatas/2025-04/discounts/redeemcode_removed.json +1 -1
  12. package/metadatas/2025-04/discounts/update.json +2 -2
  13. package/metadatas/2025-04/draft_orders/create.json +24 -24
  14. package/metadatas/2025-04/draft_orders/update.json +26 -26
  15. package/metadatas/2025-04/fulfillments/create.json +71 -24
  16. package/metadatas/2025-04/fulfillments/update.json +71 -24
  17. package/metadatas/2025-04/markets_backup_region/update.json +18 -0
  18. package/metadatas/2025-04/order_transactions/create.json +3 -3
  19. package/metadatas/2025-04/orders/cancelled.json +91 -41
  20. package/metadatas/2025-04/orders/create.json +91 -41
  21. package/metadatas/2025-04/orders/edited.json +1 -1
  22. package/metadatas/2025-04/orders/fulfilled.json +91 -41
  23. package/metadatas/2025-04/orders/paid.json +91 -41
  24. package/metadatas/2025-04/orders/partially_fulfilled.json +91 -41
  25. package/metadatas/2025-04/orders/updated.json +91 -41
  26. package/metadatas/2025-04/refunds/create.json +110 -34
  27. package/metadatas/2025-04/selling_plan_groups/create.json +2 -2
  28. package/metadatas/2025-04/selling_plan_groups/delete.json +2 -2
  29. package/metadatas/2025-04/selling_plan_groups/update.json +2 -2
  30. package/metadatas/2025-04/subscription_billing_attempts/challenged.json +2 -2
  31. package/metadatas/2025-04/subscription_billing_attempts/failure.json +2 -2
  32. package/metadatas/2025-04/subscription_billing_attempts/success.json +2 -2
  33. package/metadatas/2025-04/subscription_contracts/activate.json +4 -4
  34. package/metadatas/2025-04/subscription_contracts/cancel.json +4 -4
  35. package/metadatas/2025-04/subscription_contracts/create.json +4 -4
  36. package/metadatas/2025-04/subscription_contracts/expire.json +4 -4
  37. package/metadatas/2025-04/subscription_contracts/fail.json +4 -4
  38. package/metadatas/2025-04/subscription_contracts/pause.json +4 -4
  39. package/metadatas/2025-04/subscription_contracts/update.json +4 -4
  40. package/metadatas/2025-04/tender_transactions/create.json +1 -1
  41. package/package.json +1 -1
  42. package/schemas/2025-04/app_subscriptions/update.json +12 -0
  43. package/schemas/2025-04/carts/create.json +4 -1
  44. package/schemas/2025-04/carts/update.json +4 -1
  45. package/schemas/2025-04/checkouts/create.json +26 -16
  46. package/schemas/2025-04/checkouts/delete.json +3 -0
  47. package/schemas/2025-04/checkouts/update.json +26 -16
  48. package/schemas/2025-04/collections/create.json +20 -0
  49. package/schemas/2025-04/collections/update.json +20 -0
  50. package/schemas/2025-04/company_locations/create.json +37 -6
  51. package/schemas/2025-04/company_locations/delete.json +37 -6
  52. package/schemas/2025-04/company_locations/update.json +37 -6
  53. package/schemas/2025-04/customer_payment_methods/create.json +1 -1
  54. package/schemas/2025-04/customer_payment_methods/revoke.json +1 -1
  55. package/schemas/2025-04/customer_payment_methods/update.json +1 -1
  56. package/schemas/2025-04/customers/create.json +86 -4
  57. package/schemas/2025-04/customers/delete.json +78 -2
  58. package/schemas/2025-04/customers/disable.json +86 -4
  59. package/schemas/2025-04/customers/enable.json +86 -4
  60. package/schemas/2025-04/customers/update.json +86 -4
  61. package/schemas/2025-04/customers_email_marketing_consent/update.json +13 -3
  62. package/schemas/2025-04/customers_marketing_consent/update.json +13 -3
  63. package/schemas/2025-04/disputes/create.json +0 -1
  64. package/schemas/2025-04/disputes/update.json +0 -1
  65. package/schemas/2025-04/domains/create.json +4 -2
  66. package/schemas/2025-04/domains/destroy.json +4 -2
  67. package/schemas/2025-04/domains/update.json +4 -2
  68. package/schemas/2025-04/draft_orders/create.json +138 -4
  69. package/schemas/2025-04/draft_orders/update.json +138 -4
  70. package/schemas/2025-04/fulfillments/create.json +196 -66
  71. package/schemas/2025-04/fulfillments/update.json +196 -66
  72. package/schemas/2025-04/inventory_items/create.json +7 -3
  73. package/schemas/2025-04/inventory_items/update.json +7 -3
  74. package/schemas/2025-04/markets_backup_region/update.json +17 -0
  75. package/schemas/2025-04/order_transactions/create.json +15 -5
  76. package/schemas/2025-04/orders/cancelled.json +76 -4
  77. package/schemas/2025-04/orders/create.json +76 -4
  78. package/schemas/2025-04/orders/edited.json +8 -2
  79. package/schemas/2025-04/orders/fulfilled.json +76 -4
  80. package/schemas/2025-04/orders/paid.json +76 -4
  81. package/schemas/2025-04/orders/partially_fulfilled.json +76 -4
  82. package/schemas/2025-04/orders/risk_assessment_changed.json +9 -2
  83. package/schemas/2025-04/orders/shopify_protect_eligibility_changed.json +8 -1
  84. package/schemas/2025-04/orders/updated.json +76 -4
  85. package/schemas/2025-04/payment_terms/create.json +4 -1
  86. package/schemas/2025-04/payment_terms/update.json +4 -1
  87. package/schemas/2025-04/products/create.json +160 -64
  88. package/schemas/2025-04/products/update.json +160 -64
  89. package/schemas/2025-04/refunds/create.json +764 -17
  90. package/schemas/2025-04/selling_plan_groups/create.json +66 -10
  91. package/schemas/2025-04/selling_plan_groups/update.json +66 -10
  92. package/schemas/2025-04/shop/update.json +4 -3
  93. package/schemas/2025-04/subscription_billing_attempts/challenged.json +0 -1
  94. package/schemas/2025-04/subscription_billing_attempts/failure.json +0 -1
  95. package/schemas/2025-04/subscription_billing_attempts/success.json +0 -1
  96. package/schemas/2025-04/subscription_contracts/activate.json +8 -2
  97. package/schemas/2025-04/subscription_contracts/cancel.json +8 -2
  98. package/schemas/2025-04/subscription_contracts/create.json +8 -2
  99. package/schemas/2025-04/subscription_contracts/expire.json +8 -2
  100. package/schemas/2025-04/subscription_contracts/fail.json +8 -2
  101. package/schemas/2025-04/subscription_contracts/pause.json +8 -2
  102. package/schemas/2025-04/subscription_contracts/update.json +8 -2
  103. package/schemas/2025-04/tender_transactions/create.json +9 -16
  104. package/schemas/2025-04/themes/create.json +4 -1
  105. package/schemas/2025-04/themes/publish.json +4 -1
  106. package/schemas/2025-04/themes/update.json +4 -1
@@ -9,7 +9,27 @@
9
9
  "type": "string"
10
10
  },
11
11
  "category": {
12
- "type": "null"
12
+ "properties": {
13
+ "admin_graphql_api_id": {
14
+ "format": "uri",
15
+ "type": "string"
16
+ },
17
+ "full_name": {
18
+ "type": "string"
19
+ },
20
+ "name": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "required": [
25
+ "admin_graphql_api_id",
26
+ "full_name",
27
+ "name"
28
+ ],
29
+ "type": [
30
+ "null",
31
+ "object"
32
+ ]
13
33
  },
14
34
  "created_at": {
15
35
  "format": "date-time",
@@ -28,70 +48,65 @@
28
48
  "type": "integer"
29
49
  },
30
50
  "image": {
31
- "anyOf": [
32
- {
51
+ "properties": {
52
+ "admin_graphql_api_id": {
33
53
  "format": "uri",
34
54
  "type": "string"
35
55
  },
36
- {
37
- "properties": {
38
- "admin_graphql_api_id": {
39
- "format": "uri",
40
- "type": "string"
41
- },
42
- "alt": {
43
- "type": "null"
44
- },
45
- "created_at": {
46
- "format": "date-time",
47
- "type": "string"
48
- },
49
- "height": {
50
- "type": "integer"
51
- },
52
- "id": {
53
- "type": "integer"
54
- },
55
- "position": {
56
- "type": "integer"
57
- },
58
- "product_id": {
59
- "type": "integer"
60
- },
61
- "src": {
62
- "format": "uri",
63
- "type": "string"
64
- },
65
- "updated_at": {
66
- "format": "date-time",
67
- "type": "string"
68
- },
69
- "variant_ids": {
70
- "items": {
71
- "type": "integer"
72
- },
73
- "type": "array"
74
- },
75
- "width": {
76
- "type": "integer"
77
- }
78
- },
79
- "required": [
80
- "admin_graphql_api_id",
81
- "alt",
82
- "created_at",
83
- "height",
84
- "id",
85
- "position",
86
- "product_id",
87
- "src",
88
- "updated_at",
89
- "variant_ids",
90
- "width"
91
- ],
92
- "type": "object"
56
+ "alt": {
57
+ "type": [
58
+ "null",
59
+ "string"
60
+ ]
61
+ },
62
+ "created_at": {
63
+ "format": "date-time",
64
+ "type": "string"
65
+ },
66
+ "height": {
67
+ "type": "integer"
68
+ },
69
+ "id": {
70
+ "type": "integer"
71
+ },
72
+ "position": {
73
+ "type": "integer"
74
+ },
75
+ "product_id": {
76
+ "type": "integer"
77
+ },
78
+ "src": {
79
+ "format": "uri",
80
+ "type": "string"
81
+ },
82
+ "updated_at": {
83
+ "format": "date-time",
84
+ "type": "string"
85
+ },
86
+ "variant_ids": {
87
+ "items": {
88
+ "type": "integer"
89
+ },
90
+ "type": "array"
91
+ },
92
+ "width": {
93
+ "type": "integer"
93
94
  }
94
- ]
95
+ },
96
+ "required": [
97
+ "admin_graphql_api_id",
98
+ "alt",
99
+ "created_at",
100
+ "height",
101
+ "id",
102
+ "position",
103
+ "product_id",
104
+ "src",
105
+ "updated_at",
106
+ "variant_ids",
107
+ "width"
108
+ ],
109
+ "type": "object"
95
110
  },
96
111
  "images": {
97
112
  "items": {
@@ -101,7 +116,10 @@
101
116
  "type": "string"
102
117
  },
103
118
  "alt": {
104
- "type": "null"
119
+ "type": [
120
+ "null",
121
+ "string"
122
+ ]
105
123
  },
106
124
  "created_at": {
107
125
  "format": "date-time",
@@ -155,7 +173,82 @@
155
173
  "type": "array"
156
174
  },
157
175
  "media": {
158
- "items": false,
176
+ "items": {
177
+ "properties": {
178
+ "admin_graphql_api_id": {
179
+ "format": "uri",
180
+ "type": "string"
181
+ },
182
+ "alt": {
183
+ "type": "string"
184
+ },
185
+ "created_at": {
186
+ "format": "date-time",
187
+ "type": "string"
188
+ },
189
+ "id": {
190
+ "type": "integer"
191
+ },
192
+ "media_content_type": {
193
+ "type": "string"
194
+ },
195
+ "position": {
196
+ "type": "integer"
197
+ },
198
+ "preview_image": {
199
+ "properties": {
200
+ "height": {
201
+ "type": "integer"
202
+ },
203
+ "src": {
204
+ "format": "uri",
205
+ "type": "string"
206
+ },
207
+ "status": {
208
+ "type": "string"
209
+ },
210
+ "width": {
211
+ "type": "integer"
212
+ }
213
+ },
214
+ "required": [
215
+ "height",
216
+ "src",
217
+ "status",
218
+ "width"
219
+ ],
220
+ "type": "object"
221
+ },
222
+ "product_id": {
223
+ "type": "integer"
224
+ },
225
+ "status": {
226
+ "type": "string"
227
+ },
228
+ "updated_at": {
229
+ "format": "date-time",
230
+ "type": "string"
231
+ },
232
+ "variant_ids": {
233
+ "items": false,
234
+ "type": "array"
235
+ }
236
+ },
237
+ "required": [
238
+ "admin_graphql_api_id",
239
+ "alt",
240
+ "created_at",
241
+ "id",
242
+ "media_content_type",
243
+ "position",
244
+ "preview_image",
245
+ "product_id",
246
+ "status",
247
+ "updated_at",
248
+ "variant_ids"
249
+ ],
250
+ "type": "object"
251
+ },
159
252
  "type": "array"
160
253
  },
161
254
  "options": {
@@ -196,7 +289,10 @@
196
289
  },
197
290
  "published_at": {
198
291
  "format": "date-time",
199
- "type": "string"
292
+ "type": [
293
+ "null",
294
+ "string"
295
+ ]
200
296
  },
201
297
  "published_scope": {
202
298
  "type": "string"
@@ -9,7 +9,27 @@
9
9
  "type": "string"
10
10
  },
11
11
  "category": {
12
- "type": "null"
12
+ "properties": {
13
+ "admin_graphql_api_id": {
14
+ "format": "uri",
15
+ "type": "string"
16
+ },
17
+ "full_name": {
18
+ "type": "string"
19
+ },
20
+ "name": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "required": [
25
+ "admin_graphql_api_id",
26
+ "full_name",
27
+ "name"
28
+ ],
29
+ "type": [
30
+ "null",
31
+ "object"
32
+ ]
13
33
  },
14
34
  "created_at": {
15
35
  "format": "date-time",
@@ -28,70 +48,65 @@
28
48
  "type": "integer"
29
49
  },
30
50
  "image": {
31
- "anyOf": [
32
- {
51
+ "properties": {
52
+ "admin_graphql_api_id": {
33
53
  "format": "uri",
34
54
  "type": "string"
35
55
  },
36
- {
37
- "properties": {
38
- "admin_graphql_api_id": {
39
- "format": "uri",
40
- "type": "string"
41
- },
42
- "alt": {
43
- "type": "null"
44
- },
45
- "created_at": {
46
- "format": "date-time",
47
- "type": "string"
48
- },
49
- "height": {
50
- "type": "integer"
51
- },
52
- "id": {
53
- "type": "integer"
54
- },
55
- "position": {
56
- "type": "integer"
57
- },
58
- "product_id": {
59
- "type": "integer"
60
- },
61
- "src": {
62
- "format": "uri",
63
- "type": "string"
64
- },
65
- "updated_at": {
66
- "format": "date-time",
67
- "type": "string"
68
- },
69
- "variant_ids": {
70
- "items": {
71
- "type": "integer"
72
- },
73
- "type": "array"
74
- },
75
- "width": {
76
- "type": "integer"
77
- }
78
- },
79
- "required": [
80
- "admin_graphql_api_id",
81
- "alt",
82
- "created_at",
83
- "height",
84
- "id",
85
- "position",
86
- "product_id",
87
- "src",
88
- "updated_at",
89
- "variant_ids",
90
- "width"
91
- ],
92
- "type": "object"
56
+ "alt": {
57
+ "type": [
58
+ "null",
59
+ "string"
60
+ ]
61
+ },
62
+ "created_at": {
63
+ "format": "date-time",
64
+ "type": "string"
65
+ },
66
+ "height": {
67
+ "type": "integer"
68
+ },
69
+ "id": {
70
+ "type": "integer"
71
+ },
72
+ "position": {
73
+ "type": "integer"
74
+ },
75
+ "product_id": {
76
+ "type": "integer"
77
+ },
78
+ "src": {
79
+ "format": "uri",
80
+ "type": "string"
81
+ },
82
+ "updated_at": {
83
+ "format": "date-time",
84
+ "type": "string"
85
+ },
86
+ "variant_ids": {
87
+ "items": {
88
+ "type": "integer"
89
+ },
90
+ "type": "array"
91
+ },
92
+ "width": {
93
+ "type": "integer"
93
94
  }
94
- ]
95
+ },
96
+ "required": [
97
+ "admin_graphql_api_id",
98
+ "alt",
99
+ "created_at",
100
+ "height",
101
+ "id",
102
+ "position",
103
+ "product_id",
104
+ "src",
105
+ "updated_at",
106
+ "variant_ids",
107
+ "width"
108
+ ],
109
+ "type": "object"
95
110
  },
96
111
  "images": {
97
112
  "items": {
@@ -101,7 +116,10 @@
101
116
  "type": "string"
102
117
  },
103
118
  "alt": {
104
- "type": "null"
119
+ "type": [
120
+ "null",
121
+ "string"
122
+ ]
105
123
  },
106
124
  "created_at": {
107
125
  "format": "date-time",
@@ -155,7 +173,82 @@
155
173
  "type": "array"
156
174
  },
157
175
  "media": {
158
- "items": false,
176
+ "items": {
177
+ "properties": {
178
+ "admin_graphql_api_id": {
179
+ "format": "uri",
180
+ "type": "string"
181
+ },
182
+ "alt": {
183
+ "type": "string"
184
+ },
185
+ "created_at": {
186
+ "format": "date-time",
187
+ "type": "string"
188
+ },
189
+ "id": {
190
+ "type": "integer"
191
+ },
192
+ "media_content_type": {
193
+ "type": "string"
194
+ },
195
+ "position": {
196
+ "type": "integer"
197
+ },
198
+ "preview_image": {
199
+ "properties": {
200
+ "height": {
201
+ "type": "integer"
202
+ },
203
+ "src": {
204
+ "format": "uri",
205
+ "type": "string"
206
+ },
207
+ "status": {
208
+ "type": "string"
209
+ },
210
+ "width": {
211
+ "type": "integer"
212
+ }
213
+ },
214
+ "required": [
215
+ "height",
216
+ "src",
217
+ "status",
218
+ "width"
219
+ ],
220
+ "type": "object"
221
+ },
222
+ "product_id": {
223
+ "type": "integer"
224
+ },
225
+ "status": {
226
+ "type": "string"
227
+ },
228
+ "updated_at": {
229
+ "format": "date-time",
230
+ "type": "string"
231
+ },
232
+ "variant_ids": {
233
+ "items": false,
234
+ "type": "array"
235
+ }
236
+ },
237
+ "required": [
238
+ "admin_graphql_api_id",
239
+ "alt",
240
+ "created_at",
241
+ "id",
242
+ "media_content_type",
243
+ "position",
244
+ "preview_image",
245
+ "product_id",
246
+ "status",
247
+ "updated_at",
248
+ "variant_ids"
249
+ ],
250
+ "type": "object"
251
+ },
159
252
  "type": "array"
160
253
  },
161
254
  "options": {
@@ -196,7 +289,10 @@
196
289
  },
197
290
  "published_at": {
198
291
  "format": "date-time",
199
- "type": "string"
292
+ "type": [
293
+ "null",
294
+ "string"
295
+ ]
200
296
  },
201
297
  "published_scope": {
202
298
  "type": "string"