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.
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +3 -0
- package/dist/src/infer-schema.d.ts +18 -0
- package/dist/src/infer-schema.js +717 -0
- package/dist/src/scrape.js +11 -623
- package/metadatas/2025-04/app_purchases_one_time/update.json +1 -1
- package/metadatas/2025-04/app_subscriptions/approaching_capped_amount.json +1 -1
- package/metadatas/2025-04/app_subscriptions/update.json +5 -2
- package/metadatas/2025-04/bulk_operations/finish.json +1 -1
- package/metadatas/2025-04/checkouts/create.json +6 -6
- package/metadatas/2025-04/checkouts/update.json +6 -6
- package/metadatas/2025-04/discounts/create.json +2 -2
- package/metadatas/2025-04/discounts/delete.json +1 -1
- package/metadatas/2025-04/discounts/redeemcode_added.json +1 -1
- package/metadatas/2025-04/discounts/redeemcode_removed.json +1 -1
- package/metadatas/2025-04/discounts/update.json +2 -2
- package/metadatas/2025-04/draft_orders/create.json +24 -24
- package/metadatas/2025-04/draft_orders/update.json +26 -26
- package/metadatas/2025-04/fulfillments/create.json +71 -24
- package/metadatas/2025-04/fulfillments/update.json +71 -24
- package/metadatas/2025-04/inventory_items/create.json +2 -1
- package/metadatas/2025-04/inventory_items/delete.json +2 -1
- package/metadatas/2025-04/inventory_items/update.json +2 -1
- package/metadatas/2025-04/markets_backup_region/update.json +18 -0
- package/metadatas/2025-04/order_transactions/create.json +3 -3
- package/metadatas/2025-04/orders/cancelled.json +91 -41
- package/metadatas/2025-04/orders/create.json +91 -41
- package/metadatas/2025-04/orders/edited.json +1 -1
- package/metadatas/2025-04/orders/fulfilled.json +91 -41
- package/metadatas/2025-04/orders/paid.json +91 -41
- package/metadatas/2025-04/orders/partially_fulfilled.json +91 -41
- package/metadatas/2025-04/orders/updated.json +91 -41
- package/metadatas/2025-04/refunds/create.json +110 -34
- package/metadatas/2025-04/selling_plan_groups/create.json +2 -2
- package/metadatas/2025-04/selling_plan_groups/delete.json +2 -2
- package/metadatas/2025-04/selling_plan_groups/update.json +2 -2
- package/metadatas/2025-04/subscription_billing_attempts/challenged.json +2 -2
- package/metadatas/2025-04/subscription_billing_attempts/failure.json +2 -2
- package/metadatas/2025-04/subscription_billing_attempts/success.json +2 -2
- package/metadatas/2025-04/subscription_contracts/activate.json +4 -4
- package/metadatas/2025-04/subscription_contracts/cancel.json +4 -4
- package/metadatas/2025-04/subscription_contracts/create.json +4 -4
- package/metadatas/2025-04/subscription_contracts/expire.json +4 -4
- package/metadatas/2025-04/subscription_contracts/fail.json +4 -4
- package/metadatas/2025-04/subscription_contracts/pause.json +4 -4
- package/metadatas/2025-04/subscription_contracts/update.json +4 -4
- package/metadatas/2025-04/tender_transactions/create.json +1 -1
- package/package.json +6 -6
- package/schemas/2025-04/app_subscriptions/update.json +12 -0
- package/schemas/2025-04/carts/create.json +4 -1
- package/schemas/2025-04/carts/update.json +4 -1
- package/schemas/2025-04/checkouts/create.json +26 -16
- package/schemas/2025-04/checkouts/delete.json +3 -0
- package/schemas/2025-04/checkouts/update.json +26 -16
- package/schemas/2025-04/collections/create.json +20 -0
- package/schemas/2025-04/collections/update.json +20 -0
- package/schemas/2025-04/company_locations/create.json +37 -6
- package/schemas/2025-04/company_locations/delete.json +37 -6
- package/schemas/2025-04/company_locations/update.json +37 -6
- package/schemas/2025-04/customer_payment_methods/create.json +1 -1
- package/schemas/2025-04/customer_payment_methods/revoke.json +1 -1
- package/schemas/2025-04/customer_payment_methods/update.json +1 -1
- package/schemas/2025-04/customers/create.json +86 -4
- package/schemas/2025-04/customers/delete.json +78 -2
- package/schemas/2025-04/customers/disable.json +86 -4
- package/schemas/2025-04/customers/enable.json +86 -4
- package/schemas/2025-04/customers/update.json +86 -4
- package/schemas/2025-04/customers_email_marketing_consent/update.json +13 -3
- package/schemas/2025-04/customers_marketing_consent/update.json +13 -3
- package/schemas/2025-04/disputes/create.json +0 -1
- package/schemas/2025-04/disputes/update.json +0 -1
- package/schemas/2025-04/domains/create.json +4 -2
- package/schemas/2025-04/domains/destroy.json +4 -2
- package/schemas/2025-04/domains/update.json +4 -2
- package/schemas/2025-04/draft_orders/create.json +138 -4
- package/schemas/2025-04/draft_orders/update.json +138 -4
- package/schemas/2025-04/fulfillments/create.json +196 -66
- package/schemas/2025-04/fulfillments/update.json +196 -66
- package/schemas/2025-04/inventory_items/create.json +7 -3
- package/schemas/2025-04/inventory_items/update.json +7 -3
- package/schemas/2025-04/markets_backup_region/update.json +17 -0
- package/schemas/2025-04/order_transactions/create.json +15 -5
- package/schemas/2025-04/orders/cancelled.json +76 -4
- package/schemas/2025-04/orders/create.json +76 -4
- package/schemas/2025-04/orders/edited.json +8 -2
- package/schemas/2025-04/orders/fulfilled.json +76 -4
- package/schemas/2025-04/orders/paid.json +76 -4
- package/schemas/2025-04/orders/partially_fulfilled.json +76 -4
- package/schemas/2025-04/orders/risk_assessment_changed.json +9 -2
- package/schemas/2025-04/orders/shopify_protect_eligibility_changed.json +8 -1
- package/schemas/2025-04/orders/updated.json +76 -4
- package/schemas/2025-04/payment_terms/create.json +4 -1
- package/schemas/2025-04/payment_terms/update.json +4 -1
- package/schemas/2025-04/products/create.json +160 -64
- package/schemas/2025-04/products/update.json +160 -64
- package/schemas/2025-04/refunds/create.json +764 -17
- package/schemas/2025-04/selling_plan_groups/create.json +66 -10
- package/schemas/2025-04/selling_plan_groups/update.json +66 -10
- package/schemas/2025-04/shop/update.json +4 -3
- package/schemas/2025-04/subscription_billing_attempts/challenged.json +0 -1
- package/schemas/2025-04/subscription_billing_attempts/failure.json +0 -1
- package/schemas/2025-04/subscription_billing_attempts/success.json +0 -1
- package/schemas/2025-04/subscription_contracts/activate.json +8 -2
- package/schemas/2025-04/subscription_contracts/cancel.json +8 -2
- package/schemas/2025-04/subscription_contracts/create.json +8 -2
- package/schemas/2025-04/subscription_contracts/expire.json +8 -2
- package/schemas/2025-04/subscription_contracts/fail.json +8 -2
- package/schemas/2025-04/subscription_contracts/pause.json +8 -2
- package/schemas/2025-04/subscription_contracts/update.json +8 -2
- package/schemas/2025-04/tender_transactions/create.json +9 -16
- package/schemas/2025-04/themes/create.json +4 -1
- package/schemas/2025-04/themes/publish.json +4 -1
- package/schemas/2025-04/themes/update.json +4 -1
|
@@ -10,9 +10,13 @@
|
|
|
10
10
|
"type": "string"
|
|
11
11
|
},
|
|
12
12
|
"app_id": {
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
"anyOf": [
|
|
14
|
+
{
|
|
15
|
+
"type": "integer"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
16
20
|
]
|
|
17
21
|
},
|
|
18
22
|
"description": {
|
|
@@ -47,7 +51,26 @@
|
|
|
47
51
|
"type": "array"
|
|
48
52
|
},
|
|
49
53
|
"products": {
|
|
50
|
-
"items":
|
|
54
|
+
"items": {
|
|
55
|
+
"properties": {
|
|
56
|
+
"id": {
|
|
57
|
+
"type": "integer"
|
|
58
|
+
},
|
|
59
|
+
"storefront_graphql_api_id": {
|
|
60
|
+
"format": "uri",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"title": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": [
|
|
68
|
+
"id",
|
|
69
|
+
"storefront_graphql_api_id",
|
|
70
|
+
"title"
|
|
71
|
+
],
|
|
72
|
+
"type": "object"
|
|
73
|
+
},
|
|
51
74
|
"type": "array"
|
|
52
75
|
},
|
|
53
76
|
"selling_plans": {
|
|
@@ -62,10 +85,16 @@
|
|
|
62
85
|
"type": "integer"
|
|
63
86
|
},
|
|
64
87
|
"max_cycles": {
|
|
65
|
-
"type":
|
|
88
|
+
"type": [
|
|
89
|
+
"integer",
|
|
90
|
+
"null"
|
|
91
|
+
]
|
|
66
92
|
},
|
|
67
93
|
"min_cycles": {
|
|
68
|
-
"type":
|
|
94
|
+
"type": [
|
|
95
|
+
"integer",
|
|
96
|
+
"null"
|
|
97
|
+
]
|
|
69
98
|
}
|
|
70
99
|
},
|
|
71
100
|
"required": [
|
|
@@ -83,7 +112,10 @@
|
|
|
83
112
|
"type": "array"
|
|
84
113
|
},
|
|
85
114
|
"cutoff": {
|
|
86
|
-
"type":
|
|
115
|
+
"type": [
|
|
116
|
+
"integer",
|
|
117
|
+
"null"
|
|
118
|
+
]
|
|
87
119
|
},
|
|
88
120
|
"interval": {
|
|
89
121
|
"type": "string"
|
|
@@ -105,7 +137,10 @@
|
|
|
105
137
|
"type": "object"
|
|
106
138
|
},
|
|
107
139
|
"description": {
|
|
108
|
-
"type":
|
|
140
|
+
"type": [
|
|
141
|
+
"null",
|
|
142
|
+
"string"
|
|
143
|
+
]
|
|
109
144
|
},
|
|
110
145
|
"name": {
|
|
111
146
|
"type": "string"
|
|
@@ -117,10 +152,31 @@
|
|
|
117
152
|
"type": "array"
|
|
118
153
|
},
|
|
119
154
|
"position": {
|
|
120
|
-
"type":
|
|
155
|
+
"type": [
|
|
156
|
+
"integer",
|
|
157
|
+
"null"
|
|
158
|
+
]
|
|
121
159
|
},
|
|
122
160
|
"pricing_policies": {
|
|
123
|
-
"items":
|
|
161
|
+
"items": {
|
|
162
|
+
"properties": {
|
|
163
|
+
"adjustment_type": {
|
|
164
|
+
"type": "string"
|
|
165
|
+
},
|
|
166
|
+
"adjustment_value": {
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
"after_cycle": {
|
|
170
|
+
"type": "integer"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"required": [
|
|
174
|
+
"adjustment_type",
|
|
175
|
+
"adjustment_value",
|
|
176
|
+
"after_cycle"
|
|
177
|
+
],
|
|
178
|
+
"type": "object"
|
|
179
|
+
},
|
|
124
180
|
"type": "array"
|
|
125
181
|
}
|
|
126
182
|
},
|
|
@@ -10,9 +10,13 @@
|
|
|
10
10
|
"type": "string"
|
|
11
11
|
},
|
|
12
12
|
"app_id": {
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
"anyOf": [
|
|
14
|
+
{
|
|
15
|
+
"type": "integer"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
16
20
|
]
|
|
17
21
|
},
|
|
18
22
|
"description": {
|
|
@@ -47,7 +51,26 @@
|
|
|
47
51
|
"type": "array"
|
|
48
52
|
},
|
|
49
53
|
"products": {
|
|
50
|
-
"items":
|
|
54
|
+
"items": {
|
|
55
|
+
"properties": {
|
|
56
|
+
"id": {
|
|
57
|
+
"type": "integer"
|
|
58
|
+
},
|
|
59
|
+
"storefront_graphql_api_id": {
|
|
60
|
+
"format": "uri",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"title": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": [
|
|
68
|
+
"id",
|
|
69
|
+
"storefront_graphql_api_id",
|
|
70
|
+
"title"
|
|
71
|
+
],
|
|
72
|
+
"type": "object"
|
|
73
|
+
},
|
|
51
74
|
"type": "array"
|
|
52
75
|
},
|
|
53
76
|
"selling_plans": {
|
|
@@ -62,10 +85,16 @@
|
|
|
62
85
|
"type": "integer"
|
|
63
86
|
},
|
|
64
87
|
"max_cycles": {
|
|
65
|
-
"type":
|
|
88
|
+
"type": [
|
|
89
|
+
"integer",
|
|
90
|
+
"null"
|
|
91
|
+
]
|
|
66
92
|
},
|
|
67
93
|
"min_cycles": {
|
|
68
|
-
"type":
|
|
94
|
+
"type": [
|
|
95
|
+
"integer",
|
|
96
|
+
"null"
|
|
97
|
+
]
|
|
69
98
|
}
|
|
70
99
|
},
|
|
71
100
|
"required": [
|
|
@@ -83,7 +112,10 @@
|
|
|
83
112
|
"type": "array"
|
|
84
113
|
},
|
|
85
114
|
"cutoff": {
|
|
86
|
-
"type":
|
|
115
|
+
"type": [
|
|
116
|
+
"integer",
|
|
117
|
+
"null"
|
|
118
|
+
]
|
|
87
119
|
},
|
|
88
120
|
"interval": {
|
|
89
121
|
"type": "string"
|
|
@@ -105,7 +137,10 @@
|
|
|
105
137
|
"type": "object"
|
|
106
138
|
},
|
|
107
139
|
"description": {
|
|
108
|
-
"type":
|
|
140
|
+
"type": [
|
|
141
|
+
"null",
|
|
142
|
+
"string"
|
|
143
|
+
]
|
|
109
144
|
},
|
|
110
145
|
"name": {
|
|
111
146
|
"type": "string"
|
|
@@ -117,10 +152,31 @@
|
|
|
117
152
|
"type": "array"
|
|
118
153
|
},
|
|
119
154
|
"position": {
|
|
120
|
-
"type":
|
|
155
|
+
"type": [
|
|
156
|
+
"integer",
|
|
157
|
+
"null"
|
|
158
|
+
]
|
|
121
159
|
},
|
|
122
160
|
"pricing_policies": {
|
|
123
|
-
"items":
|
|
161
|
+
"items": {
|
|
162
|
+
"properties": {
|
|
163
|
+
"adjustment_type": {
|
|
164
|
+
"type": "string"
|
|
165
|
+
},
|
|
166
|
+
"adjustment_value": {
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
"after_cycle": {
|
|
170
|
+
"type": "integer"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"required": [
|
|
174
|
+
"adjustment_type",
|
|
175
|
+
"adjustment_value",
|
|
176
|
+
"after_cycle"
|
|
177
|
+
],
|
|
178
|
+
"type": "object"
|
|
179
|
+
},
|
|
124
180
|
"type": "array"
|
|
125
181
|
}
|
|
126
182
|
},
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"type": "string"
|
|
53
53
|
},
|
|
54
54
|
"domain": {
|
|
55
|
-
"format": "hostname",
|
|
56
55
|
"type": [
|
|
57
56
|
"null",
|
|
58
57
|
"string"
|
|
@@ -136,7 +135,6 @@
|
|
|
136
135
|
"type": "boolean"
|
|
137
136
|
},
|
|
138
137
|
"myshopify_domain": {
|
|
139
|
-
"format": "hostname",
|
|
140
138
|
"type": [
|
|
141
139
|
"null",
|
|
142
140
|
"string"
|
|
@@ -173,7 +171,10 @@
|
|
|
173
171
|
"type": "string"
|
|
174
172
|
},
|
|
175
173
|
"province_code": {
|
|
176
|
-
"type":
|
|
174
|
+
"type": [
|
|
175
|
+
"null",
|
|
176
|
+
"string"
|
|
177
|
+
]
|
|
177
178
|
},
|
|
178
179
|
"requires_extra_payments_agreement": {
|
|
179
180
|
"type": "boolean"
|
|
@@ -15,40 +15,33 @@
|
|
|
15
15
|
},
|
|
16
16
|
"payment_details": {
|
|
17
17
|
"properties": {
|
|
18
|
+
"credit_card_company": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"credit_card_number": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
18
24
|
"something": {
|
|
19
25
|
"type": "string"
|
|
20
26
|
}
|
|
21
27
|
},
|
|
22
|
-
"
|
|
23
|
-
"something"
|
|
24
|
-
],
|
|
25
|
-
"type": [
|
|
26
|
-
"null",
|
|
27
|
-
"object"
|
|
28
|
-
]
|
|
28
|
+
"type": ["null", "object"]
|
|
29
29
|
},
|
|
30
30
|
"payment_method": {
|
|
31
31
|
"type": "string"
|
|
32
32
|
},
|
|
33
33
|
"processed_at": {
|
|
34
34
|
"format": "date-time",
|
|
35
|
-
"type": [
|
|
36
|
-
"null",
|
|
37
|
-
"string"
|
|
38
|
-
]
|
|
35
|
+
"type": ["null", "string"]
|
|
39
36
|
},
|
|
40
37
|
"remote_reference": {
|
|
41
|
-
"format": "time",
|
|
42
38
|
"type": "string"
|
|
43
39
|
},
|
|
44
40
|
"test": {
|
|
45
41
|
"type": "boolean"
|
|
46
42
|
},
|
|
47
43
|
"user_id": {
|
|
48
|
-
"type": [
|
|
49
|
-
"integer",
|
|
50
|
-
"null"
|
|
51
|
-
]
|
|
44
|
+
"type": ["integer", "null"]
|
|
52
45
|
}
|
|
53
46
|
},
|
|
54
47
|
"required": [
|