shopify-webhook-schemas 0.2.7 → 0.2.8
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/scrape.js +108 -62
- package/metadatas/2025-10/app/scopes_update.json +24 -0
- package/metadatas/2025-10/app/uninstalled.json +70 -0
- package/metadatas/2025-10/app_purchases_one_time/update.json +21 -0
- package/metadatas/2025-10/app_subscriptions/approaching_capped_amount.json +23 -0
- package/metadatas/2025-10/app_subscriptions/update.json +27 -0
- package/metadatas/2025-10/audit_events/admin_api_activity.json +67 -0
- package/metadatas/2025-10/bulk_operations/finish.json +20 -0
- package/metadatas/2025-10/carts/create.json +98 -0
- package/metadatas/2025-10/carts/update.json +98 -0
- package/metadatas/2025-10/channels/delete.json +18 -0
- package/metadatas/2025-10/checkouts/create.json +258 -0
- package/metadatas/2025-10/checkouts/delete.json +29 -0
- package/metadatas/2025-10/checkouts/update.json +258 -0
- package/metadatas/2025-10/collection_listings/add.json +28 -0
- package/metadatas/2025-10/collection_listings/remove.json +20 -0
- package/metadatas/2025-10/collection_listings/update.json +28 -0
- package/metadatas/2025-10/collection_publications/create.json +24 -0
- package/metadatas/2025-10/collection_publications/delete.json +18 -0
- package/metadatas/2025-10/collection_publications/update.json +24 -0
- package/metadatas/2025-10/collections/create.json +27 -0
- package/metadatas/2025-10/collections/delete.json +20 -0
- package/metadatas/2025-10/collections/update.json +27 -0
- package/metadatas/2025-10/companies/create.json +29 -0
- package/metadatas/2025-10/companies/delete.json +26 -0
- package/metadatas/2025-10/companies/update.json +29 -0
- package/metadatas/2025-10/company_contact_roles/assign.json +114 -0
- package/metadatas/2025-10/company_contact_roles/revoke.json +114 -0
- package/metadatas/2025-10/company_contacts/create.json +37 -0
- package/metadatas/2025-10/company_contacts/delete.json +34 -0
- package/metadatas/2025-10/company_contacts/update.json +37 -0
- package/metadatas/2025-10/company_locations/create.json +91 -0
- package/metadatas/2025-10/company_locations/delete.json +88 -0
- package/metadatas/2025-10/company_locations/update.json +91 -0
- package/metadatas/2025-10/customer.joined_segment.json +18 -0
- package/metadatas/2025-10/customer.left_segment.json +18 -0
- package/metadatas/2025-10/customer.tags_added.json +25 -0
- package/metadatas/2025-10/customer.tags_removed.json +25 -0
- package/metadatas/2025-10/customer_account_settings/update.json +17 -0
- package/metadatas/2025-10/customer_groups/create.json +25 -0
- package/metadatas/2025-10/customer_groups/delete.json +21 -0
- package/metadatas/2025-10/customer_groups/update.json +22 -0
- package/metadatas/2025-10/customer_payment_methods/create.json +32 -0
- package/metadatas/2025-10/customer_payment_methods/revoke.json +32 -0
- package/metadatas/2025-10/customer_payment_methods/update.json +32 -0
- package/metadatas/2025-10/customers/create.json +55 -0
- package/metadatas/2025-10/customers/data_request.json +27 -0
- package/metadatas/2025-10/customers/delete.json +20 -0
- package/metadatas/2025-10/customers/disable.json +55 -0
- package/metadatas/2025-10/customers/enable.json +55 -0
- package/metadatas/2025-10/customers/merge.json +30 -0
- package/metadatas/2025-10/customers/purchasing_summary.json +27 -0
- package/metadatas/2025-10/customers/redact.json +24 -0
- package/metadatas/2025-10/customers/update.json +55 -0
- package/metadatas/2025-10/customers_email_marketing_consent/update.json +27 -0
- package/metadatas/2025-10/customers_marketing_consent/update.json +28 -0
- package/metadatas/2025-10/delivery_promise_settings/update.json +19 -0
- package/metadatas/2025-10/discounts/create.json +22 -0
- package/metadatas/2025-10/discounts/delete.json +19 -0
- package/metadatas/2025-10/discounts/redeemcode_added.json +23 -0
- package/metadatas/2025-10/discounts/redeemcode_removed.json +23 -0
- package/metadatas/2025-10/discounts/update.json +22 -0
- package/metadatas/2025-10/disputes/create.json +32 -0
- package/metadatas/2025-10/disputes/update.json +32 -0
- package/metadatas/2025-10/domains/create.json +22 -0
- package/metadatas/2025-10/domains/destroy.json +22 -0
- package/metadatas/2025-10/domains/update.json +22 -0
- package/metadatas/2025-10/draft_orders/create.json +244 -0
- package/metadatas/2025-10/draft_orders/delete.json +18 -0
- package/metadatas/2025-10/draft_orders/update.json +244 -0
- package/metadatas/2025-10/finance_app_staff_member/delete.json +16 -0
- package/metadatas/2025-10/finance_app_staff_member/grant.json +16 -0
- package/metadatas/2025-10/finance_app_staff_member/revoke.json +16 -0
- package/metadatas/2025-10/finance_app_staff_member/update.json +16 -0
- package/metadatas/2025-10/finance_kyc_information/update.json +16 -0
- package/metadatas/2025-10/fulfillment_events/create.json +38 -0
- package/metadatas/2025-10/fulfillment_events/delete.json +35 -0
- package/metadatas/2025-10/fulfillment_holds/added.json +32 -0
- package/metadatas/2025-10/fulfillment_holds/released.json +32 -0
- package/metadatas/2025-10/fulfillment_orders/cancellation_request_accepted.json +25 -0
- package/metadatas/2025-10/fulfillment_orders/cancellation_request_rejected.json +26 -0
- package/metadatas/2025-10/fulfillment_orders/cancellation_request_submitted.json +29 -0
- package/metadatas/2025-10/fulfillment_orders/cancelled.json +28 -0
- package/metadatas/2025-10/fulfillment_orders/fulfillment_request_accepted.json +26 -0
- package/metadatas/2025-10/fulfillment_orders/fulfillment_request_rejected.json +26 -0
- package/metadatas/2025-10/fulfillment_orders/fulfillment_request_submitted.json +34 -0
- package/metadatas/2025-10/fulfillment_orders/fulfillment_service_failed_to_complete.json +25 -0
- package/metadatas/2025-10/fulfillment_orders/hold_released.json +24 -0
- package/metadatas/2025-10/fulfillment_orders/line_items_prepared_for_local_delivery.json +28 -0
- package/metadatas/2025-10/fulfillment_orders/line_items_prepared_for_pickup.json +28 -0
- package/metadatas/2025-10/fulfillment_orders/merged.json +45 -0
- package/metadatas/2025-10/fulfillment_orders/moved.json +40 -0
- package/metadatas/2025-10/fulfillment_orders/order_routing_complete.json +25 -0
- package/metadatas/2025-10/fulfillment_orders/placed_on_hold.json +66 -0
- package/metadatas/2025-10/fulfillment_orders/rescheduled.json +25 -0
- package/metadatas/2025-10/fulfillment_orders/scheduled_fulfillment_order_ready.json +24 -0
- package/metadatas/2025-10/fulfillment_orders/split.json +37 -0
- package/metadatas/2025-10/fulfillments/create.json +232 -0
- package/metadatas/2025-10/fulfillments/update.json +232 -0
- package/metadatas/2025-10/inventory_items/create.json +32 -0
- package/metadatas/2025-10/inventory_items/delete.json +24 -0
- package/metadatas/2025-10/inventory_items/update.json +32 -0
- package/metadatas/2025-10/inventory_levels/connect.json +16 -0
- package/metadatas/2025-10/inventory_levels/disconnect.json +19 -0
- package/metadatas/2025-10/inventory_levels/update.json +16 -0
- package/metadatas/2025-10/inventory_shipments/add_items.json +28 -0
- package/metadatas/2025-10/inventory_shipments/create.json +35 -0
- package/metadatas/2025-10/inventory_shipments/delete.json +18 -0
- package/metadatas/2025-10/inventory_shipments/mark_in_transit.json +19 -0
- package/metadatas/2025-10/inventory_shipments/receive_items.json +37 -0
- package/metadatas/2025-10/inventory_shipments/remove_items.json +26 -0
- package/metadatas/2025-10/inventory_shipments/update_item_quantities.json +30 -0
- package/metadatas/2025-10/inventory_shipments/update_tracking.json +24 -0
- package/metadatas/2025-10/inventory_transfers/add_items.json +28 -0
- package/metadatas/2025-10/inventory_transfers/cancel.json +19 -0
- package/metadatas/2025-10/inventory_transfers/complete.json +19 -0
- package/metadatas/2025-10/inventory_transfers/ready_to_ship.json +29 -0
- package/metadatas/2025-10/inventory_transfers/remove_items.json +26 -0
- package/metadatas/2025-10/inventory_transfers/update_item_quantities.json +31 -0
- package/metadatas/2025-10/locales/create.json +19 -0
- package/metadatas/2025-10/locales/destroy.json +19 -0
- package/metadatas/2025-10/locales/update.json +19 -0
- package/metadatas/2025-10/locations/activate.json +34 -0
- package/metadatas/2025-10/locations/create.json +34 -0
- package/metadatas/2025-10/locations/deactivate.json +34 -0
- package/metadatas/2025-10/locations/delete.json +18 -0
- package/metadatas/2025-10/locations/update.json +34 -0
- package/metadatas/2025-10/markets/create.json +21 -0
- package/metadatas/2025-10/markets/delete.json +18 -0
- package/metadatas/2025-10/markets/update.json +21 -0
- package/metadatas/2025-10/markets_backup_region/update.json +18 -0
- package/metadatas/2025-10/metafield_definitions/create.json +45 -0
- package/metadatas/2025-10/metafield_definitions/delete.json +19 -0
- package/metadatas/2025-10/metafield_definitions/update.json +45 -0
- package/metadatas/2025-10/metaobjects/create.json +33 -0
- package/metadatas/2025-10/metaobjects/delete.json +20 -0
- package/metadatas/2025-10/metaobjects/update.json +33 -0
- package/metadatas/2025-10/order_transactions/create.json +68 -0
- package/metadatas/2025-10/orders/cancelled.json +504 -0
- package/metadatas/2025-10/orders/create.json +503 -0
- package/metadatas/2025-10/orders/delete.json +18 -0
- package/metadatas/2025-10/orders/edited.json +56 -0
- package/metadatas/2025-10/orders/fulfilled.json +503 -0
- package/metadatas/2025-10/orders/paid.json +503 -0
- package/metadatas/2025-10/orders/partially_fulfilled.json +503 -0
- package/metadatas/2025-10/orders/risk_assessment_changed.json +22 -0
- package/metadatas/2025-10/orders/shopify_protect_eligibility_changed.json +22 -0
- package/metadatas/2025-10/orders/updated.json +504 -0
- package/metadatas/2025-10/payment_schedules/due.json +31 -0
- package/metadatas/2025-10/payment_terms/create.json +42 -0
- package/metadatas/2025-10/payment_terms/delete.json +18 -0
- package/metadatas/2025-10/payment_terms/update.json +42 -0
- package/metadatas/2025-10/product_feeds/create.json +21 -0
- package/metadatas/2025-10/product_feeds/full_sync.json +111 -0
- package/metadatas/2025-10/product_feeds/full_sync_finish.json +37 -0
- package/metadatas/2025-10/product_feeds/incremental_sync.json +110 -0
- package/metadatas/2025-10/product_feeds/update.json +21 -0
- package/metadatas/2025-10/product_listings/add.json +105 -0
- package/metadatas/2025-10/product_listings/remove.json +20 -0
- package/metadatas/2025-10/product_listings/update.json +105 -0
- package/metadatas/2025-10/product_publications/create.json +24 -0
- package/metadatas/2025-10/product_publications/delete.json +18 -0
- package/metadatas/2025-10/product_publications/update.json +24 -0
- package/metadatas/2025-10/products/create.json +93 -0
- package/metadatas/2025-10/products/delete.json +18 -0
- package/metadatas/2025-10/products/update.json +93 -0
- package/metadatas/2025-10/profiles/create.json +20 -0
- package/metadatas/2025-10/profiles/delete.json +17 -0
- package/metadatas/2025-10/profiles/update.json +20 -0
- package/metadatas/2025-10/refunds/create.json +375 -0
- package/metadatas/2025-10/returns/approve.json +52 -0
- package/metadatas/2025-10/returns/cancel.json +24 -0
- package/metadatas/2025-10/returns/close.json +24 -0
- package/metadatas/2025-10/returns/decline.json +29 -0
- package/metadatas/2025-10/returns/process.json +17 -0
- package/metadatas/2025-10/returns/reopen.json +24 -0
- package/metadatas/2025-10/returns/request.json +31 -0
- package/metadatas/2025-10/returns/update.json +36 -0
- package/metadatas/2025-10/reverse_deliveries/attach_deliverable.json +37 -0
- package/metadatas/2025-10/reverse_fulfillment_orders/dispose.json +48 -0
- package/metadatas/2025-10/scheduled_product_listings/add.json +105 -0
- package/metadatas/2025-10/scheduled_product_listings/remove.json +20 -0
- package/metadatas/2025-10/scheduled_product_listings/update.json +105 -0
- package/metadatas/2025-10/segments/create.json +21 -0
- package/metadatas/2025-10/segments/delete.json +17 -0
- package/metadatas/2025-10/segments/update.json +21 -0
- package/metadatas/2025-10/selling_plan_groups/create.json +55 -0
- package/metadatas/2025-10/selling_plan_groups/delete.json +19 -0
- package/metadatas/2025-10/selling_plan_groups/update.json +55 -0
- package/metadatas/2025-10/shipping_addresses/create.json +16 -0
- package/metadatas/2025-10/shipping_addresses/update.json +16 -0
- package/metadatas/2025-10/shop/redact.json +14 -0
- package/metadatas/2025-10/shop/update.json +70 -0
- package/metadatas/2025-10/subscription_billing_attempts/challenged.json +30 -0
- package/metadatas/2025-10/subscription_billing_attempts/failure.json +30 -0
- package/metadatas/2025-10/subscription_billing_attempts/success.json +30 -0
- package/metadatas/2025-10/subscription_billing_cycle_edits/create.json +25 -0
- package/metadatas/2025-10/subscription_billing_cycle_edits/delete.json +25 -0
- package/metadatas/2025-10/subscription_billing_cycle_edits/update.json +25 -0
- package/metadatas/2025-10/subscription_billing_cycles/skip.json +25 -0
- package/metadatas/2025-10/subscription_billing_cycles/unskip.json +25 -0
- package/metadatas/2025-10/subscription_contracts/activate.json +36 -0
- package/metadatas/2025-10/subscription_contracts/cancel.json +36 -0
- package/metadatas/2025-10/subscription_contracts/create.json +36 -0
- package/metadatas/2025-10/subscription_contracts/expire.json +36 -0
- package/metadatas/2025-10/subscription_contracts/fail.json +36 -0
- package/metadatas/2025-10/subscription_contracts/pause.json +36 -0
- package/metadatas/2025-10/subscription_contracts/update.json +36 -0
- package/metadatas/2025-10/tax_services/create.json +21 -0
- package/metadatas/2025-10/tax_services/update.json +21 -0
- package/metadatas/2025-10/tender_transactions/create.json +30 -0
- package/metadatas/2025-10/themes/create.json +26 -0
- package/metadatas/2025-10/themes/delete.json +18 -0
- package/metadatas/2025-10/themes/publish.json +26 -0
- package/metadatas/2025-10/themes/update.json +26 -0
- package/metadatas/2025-10/variants/in_stock.json +36 -0
- package/metadatas/2025-10/variants/out_of_stock.json +36 -0
- package/package.json +1 -1
- package/schemas/2025-10/app/scopes_update.json +36 -0
- package/schemas/2025-10/app/uninstalled.json +282 -0
- package/schemas/2025-10/app_purchases_one_time/update.json +44 -0
- package/schemas/2025-10/app_subscriptions/approaching_capped_amount.json +67 -0
- package/schemas/2025-10/app_subscriptions/update.json +64 -0
- package/schemas/2025-10/audit_events/admin_api_activity.json +202 -0
- package/schemas/2025-10/bulk_operations/finish.json +38 -0
- package/schemas/2025-10/carts/create.json +321 -0
- package/schemas/2025-10/carts/update.json +321 -0
- package/schemas/2025-10/channels/delete.json +12 -0
- package/schemas/2025-10/checkouts/create.json +1296 -0
- package/schemas/2025-10/checkouts/delete.json +90 -0
- package/schemas/2025-10/checkouts/update.json +1296 -0
- package/schemas/2025-10/collection_listings/add.json +60 -0
- package/schemas/2025-10/collection_listings/remove.json +27 -0
- package/schemas/2025-10/collection_listings/update.json +60 -0
- package/schemas/2025-10/collection_publications/create.json +45 -0
- package/schemas/2025-10/collection_publications/delete.json +12 -0
- package/schemas/2025-10/collection_publications/update.json +45 -0
- package/schemas/2025-10/collections/create.json +77 -0
- package/schemas/2025-10/collections/delete.json +21 -0
- package/schemas/2025-10/collections/update.json +77 -0
- package/schemas/2025-10/companies/create.json +45 -0
- package/schemas/2025-10/companies/delete.json +45 -0
- package/schemas/2025-10/companies/update.json +45 -0
- package/schemas/2025-10/company_contact_roles/assign.json +387 -0
- package/schemas/2025-10/company_contact_roles/revoke.json +387 -0
- package/schemas/2025-10/company_contacts/create.json +81 -0
- package/schemas/2025-10/company_contacts/delete.json +81 -0
- package/schemas/2025-10/company_contacts/update.json +81 -0
- package/schemas/2025-10/company_locations/create.json +334 -0
- package/schemas/2025-10/company_locations/delete.json +334 -0
- package/schemas/2025-10/company_locations/update.json +334 -0
- package/schemas/2025-10/customer.joined_segment.json +23 -0
- package/schemas/2025-10/customer.left_segment.json +23 -0
- package/schemas/2025-10/customer.tags_added.json +25 -0
- package/schemas/2025-10/customer.tags_removed.json +25 -0
- package/schemas/2025-10/customer_account_settings/update.json +28 -0
- package/schemas/2025-10/customer_groups/create.json +30 -0
- package/schemas/2025-10/customer_groups/delete.json +12 -0
- package/schemas/2025-10/customer_groups/update.json +30 -0
- package/schemas/2025-10/customer_payment_methods/create.json +59 -0
- package/schemas/2025-10/customer_payment_methods/revoke.json +59 -0
- package/schemas/2025-10/customer_payment_methods/update.json +59 -0
- package/schemas/2025-10/customers/create.json +242 -0
- package/schemas/2025-10/customers/data_request.json +56 -0
- package/schemas/2025-10/customers/delete.json +24 -0
- package/schemas/2025-10/customers/disable.json +242 -0
- package/schemas/2025-10/customers/enable.json +242 -0
- package/schemas/2025-10/customers/merge.json +56 -0
- package/schemas/2025-10/customers/purchasing_summary.json +43 -0
- package/schemas/2025-10/customers/redact.json +44 -0
- package/schemas/2025-10/customers/update.json +242 -0
- package/schemas/2025-10/customers_email_marketing_consent/update.json +47 -0
- package/schemas/2025-10/customers_marketing_consent/update.json +53 -0
- package/schemas/2025-10/delivery_promise_settings/update.json +21 -0
- package/schemas/2025-10/discounts/create.json +31 -0
- package/schemas/2025-10/discounts/delete.json +18 -0
- package/schemas/2025-10/discounts/redeemcode_added.json +35 -0
- package/schemas/2025-10/discounts/redeemcode_removed.json +35 -0
- package/schemas/2025-10/discounts/update.json +31 -0
- package/schemas/2025-10/disputes/create.json +66 -0
- package/schemas/2025-10/disputes/update.json +66 -0
- package/schemas/2025-10/domains/create.json +44 -0
- package/schemas/2025-10/domains/destroy.json +44 -0
- package/schemas/2025-10/domains/update.json +44 -0
- package/schemas/2025-10/draft_orders/create.json +1780 -0
- package/schemas/2025-10/draft_orders/delete.json +12 -0
- package/schemas/2025-10/draft_orders/update.json +1780 -0
- package/schemas/2025-10/finance_app_staff_member/delete.json +4 -0
- package/schemas/2025-10/finance_app_staff_member/grant.json +4 -0
- package/schemas/2025-10/finance_app_staff_member/revoke.json +4 -0
- package/schemas/2025-10/finance_app_staff_member/update.json +4 -0
- package/schemas/2025-10/finance_kyc_information/update.json +4 -0
- package/schemas/2025-10/fulfillment_events/create.json +106 -0
- package/schemas/2025-10/fulfillment_events/delete.json +106 -0
- package/schemas/2025-10/fulfillment_holds/added.json +63 -0
- package/schemas/2025-10/fulfillment_holds/released.json +63 -0
- package/schemas/2025-10/fulfillment_orders/cancellation_request_accepted.json +29 -0
- package/schemas/2025-10/fulfillment_orders/cancellation_request_rejected.json +33 -0
- package/schemas/2025-10/fulfillment_orders/cancellation_request_submitted.json +46 -0
- package/schemas/2025-10/fulfillment_orders/cancelled.json +42 -0
- package/schemas/2025-10/fulfillment_orders/fulfillment_request_accepted.json +33 -0
- package/schemas/2025-10/fulfillment_orders/fulfillment_request_rejected.json +33 -0
- package/schemas/2025-10/fulfillment_orders/fulfillment_request_submitted.json +67 -0
- package/schemas/2025-10/fulfillment_orders/fulfillment_service_failed_to_complete.json +29 -0
- package/schemas/2025-10/fulfillment_orders/hold_released.json +25 -0
- package/schemas/2025-10/fulfillment_orders/line_items_prepared_for_local_delivery.json +41 -0
- package/schemas/2025-10/fulfillment_orders/line_items_prepared_for_pickup.json +41 -0
- package/schemas/2025-10/fulfillment_orders/merged.json +67 -0
- package/schemas/2025-10/fulfillment_orders/moved.json +90 -0
- package/schemas/2025-10/fulfillment_orders/order_routing_complete.json +25 -0
- package/schemas/2025-10/fulfillment_orders/placed_on_hold.json +396 -0
- package/schemas/2025-10/fulfillment_orders/rescheduled.json +30 -0
- package/schemas/2025-10/fulfillment_orders/scheduled_fulfillment_order_ready.json +25 -0
- package/schemas/2025-10/fulfillment_orders/split.json +326 -0
- package/schemas/2025-10/fulfillments/create.json +735 -0
- package/schemas/2025-10/fulfillments/update.json +735 -0
- package/schemas/2025-10/inventory_items/create.json +84 -0
- package/schemas/2025-10/inventory_items/delete.json +43 -0
- package/schemas/2025-10/inventory_items/update.json +84 -0
- package/schemas/2025-10/inventory_levels/connect.json +33 -0
- package/schemas/2025-10/inventory_levels/disconnect.json +16 -0
- package/schemas/2025-10/inventory_levels/update.json +33 -0
- package/schemas/2025-10/inventory_shipments/add_items.json +38 -0
- package/schemas/2025-10/inventory_shipments/create.json +68 -0
- package/schemas/2025-10/inventory_shipments/delete.json +18 -0
- package/schemas/2025-10/inventory_shipments/mark_in_transit.json +22 -0
- package/schemas/2025-10/inventory_shipments/receive_items.json +58 -0
- package/schemas/2025-10/inventory_shipments/remove_items.json +34 -0
- package/schemas/2025-10/inventory_shipments/update_item_quantities.json +42 -0
- package/schemas/2025-10/inventory_shipments/update_tracking.json +44 -0
- package/schemas/2025-10/inventory_transfers/add_items.json +38 -0
- package/schemas/2025-10/inventory_transfers/cancel.json +22 -0
- package/schemas/2025-10/inventory_transfers/complete.json +22 -0
- package/schemas/2025-10/inventory_transfers/ready_to_ship.json +42 -0
- package/schemas/2025-10/inventory_transfers/remove_items.json +34 -0
- package/schemas/2025-10/inventory_transfers/update_item_quantities.json +46 -0
- package/schemas/2025-10/locales/create.json +16 -0
- package/schemas/2025-10/locales/destroy.json +16 -0
- package/schemas/2025-10/locales/update.json +16 -0
- package/schemas/2025-10/locations/activate.json +79 -0
- package/schemas/2025-10/locations/create.json +79 -0
- package/schemas/2025-10/locations/deactivate.json +79 -0
- package/schemas/2025-10/locations/delete.json +12 -0
- package/schemas/2025-10/locations/update.json +79 -0
- package/schemas/2025-10/markets/create.json +24 -0
- package/schemas/2025-10/markets/delete.json +12 -0
- package/schemas/2025-10/markets/update.json +24 -0
- package/schemas/2025-10/markets_backup_region/update.json +17 -0
- package/schemas/2025-10/metafield_definitions/create.json +133 -0
- package/schemas/2025-10/metafield_definitions/delete.json +21 -0
- package/schemas/2025-10/metafield_definitions/update.json +133 -0
- package/schemas/2025-10/metaobjects/create.json +82 -0
- package/schemas/2025-10/metaobjects/delete.json +26 -0
- package/schemas/2025-10/metaobjects/update.json +82 -0
- package/schemas/2025-10/order_transactions/create.json +246 -0
- package/schemas/2025-10/orders/cancelled.json +2783 -0
- package/schemas/2025-10/orders/create.json +2783 -0
- package/schemas/2025-10/orders/delete.json +12 -0
- package/schemas/2025-10/orders/edited.json +146 -0
- package/schemas/2025-10/orders/fulfilled.json +2783 -0
- package/schemas/2025-10/orders/paid.json +2783 -0
- package/schemas/2025-10/orders/partially_fulfilled.json +2783 -0
- package/schemas/2025-10/orders/risk_assessment_changed.json +49 -0
- package/schemas/2025-10/orders/shopify_protect_eligibility_changed.json +38 -0
- package/schemas/2025-10/orders/updated.json +2783 -0
- package/schemas/2025-10/payment_schedules/due.json +70 -0
- package/schemas/2025-10/payment_terms/create.json +115 -0
- package/schemas/2025-10/payment_terms/delete.json +12 -0
- package/schemas/2025-10/payment_terms/update.json +115 -0
- package/schemas/2025-10/product_feeds/create.json +25 -0
- package/schemas/2025-10/product_feeds/full_sync.json +363 -0
- package/schemas/2025-10/product_feeds/full_sync_finish.json +97 -0
- package/schemas/2025-10/product_feeds/incremental_sync.json +358 -0
- package/schemas/2025-10/product_feeds/update.json +25 -0
- package/schemas/2025-10/product_listings/add.json +221 -0
- package/schemas/2025-10/product_listings/remove.json +20 -0
- package/schemas/2025-10/product_listings/update.json +221 -0
- package/schemas/2025-10/product_publications/create.json +45 -0
- package/schemas/2025-10/product_publications/delete.json +12 -0
- package/schemas/2025-10/product_publications/update.json +45 -0
- package/schemas/2025-10/products/create.json +500 -0
- package/schemas/2025-10/products/delete.json +12 -0
- package/schemas/2025-10/products/update.json +500 -0
- package/schemas/2025-10/profiles/create.json +4 -0
- package/schemas/2025-10/profiles/delete.json +4 -0
- package/schemas/2025-10/profiles/update.json +4 -0
- package/schemas/2025-10/returns/approve.json +139 -0
- package/schemas/2025-10/returns/cancel.json +25 -0
- package/schemas/2025-10/returns/close.json +25 -0
- package/schemas/2025-10/returns/decline.json +54 -0
- package/schemas/2025-10/returns/process.json +4 -0
- package/schemas/2025-10/returns/reopen.json +25 -0
- package/schemas/2025-10/returns/request.json +65 -0
- package/schemas/2025-10/returns/update.json +77 -0
- package/schemas/2025-10/reverse_deliveries/attach_deliverable.json +78 -0
- package/schemas/2025-10/reverse_fulfillment_orders/dispose.json +78 -0
- package/schemas/2025-10/scheduled_product_listings/add.json +220 -0
- package/schemas/2025-10/scheduled_product_listings/remove.json +20 -0
- package/schemas/2025-10/scheduled_product_listings/update.json +220 -0
- package/schemas/2025-10/segments/create.json +30 -0
- package/schemas/2025-10/segments/delete.json +12 -0
- package/schemas/2025-10/segments/update.json +30 -0
- package/schemas/2025-10/selling_plan_groups/create.json +216 -0
- package/schemas/2025-10/selling_plan_groups/delete.json +17 -0
- package/schemas/2025-10/selling_plan_groups/update.json +216 -0
- package/schemas/2025-10/shipping_addresses/create.json +63 -0
- package/schemas/2025-10/shipping_addresses/update.json +63 -0
- package/schemas/2025-10/shop/redact.json +16 -0
- package/schemas/2025-10/shop/update.json +283 -0
- package/schemas/2025-10/subscription_billing_attempts/challenged.json +63 -0
- package/schemas/2025-10/subscription_billing_attempts/failure.json +63 -0
- package/schemas/2025-10/subscription_billing_attempts/success.json +63 -0
- package/schemas/2025-10/subscription_billing_cycle_edits/create.json +46 -0
- package/schemas/2025-10/subscription_billing_cycle_edits/delete.json +46 -0
- package/schemas/2025-10/subscription_billing_cycle_edits/update.json +46 -0
- package/schemas/2025-10/subscription_billing_cycles/skip.json +46 -0
- package/schemas/2025-10/subscription_billing_cycles/unskip.json +46 -0
- package/schemas/2025-10/subscription_contracts/activate.json +93 -0
- package/schemas/2025-10/subscription_contracts/cancel.json +93 -0
- package/schemas/2025-10/subscription_contracts/create.json +93 -0
- package/schemas/2025-10/subscription_contracts/expire.json +93 -0
- package/schemas/2025-10/subscription_contracts/fail.json +93 -0
- package/schemas/2025-10/subscription_contracts/pause.json +93 -0
- package/schemas/2025-10/subscription_contracts/update.json +93 -0
- package/schemas/2025-10/tax_services/create.json +25 -0
- package/schemas/2025-10/tax_services/update.json +25 -0
- package/schemas/2025-10/tender_transactions/create.json +69 -0
- package/schemas/2025-10/themes/create.json +50 -0
- package/schemas/2025-10/themes/delete.json +12 -0
- package/schemas/2025-10/themes/publish.json +50 -0
- package/schemas/2025-10/themes/update.json +50 -0
- package/schemas/2025-10/variants/in_stock.json +87 -0
- package/schemas/2025-10/variants/out_of_stock.json +87 -0
package/dist/src/scrape.js
CHANGED
|
@@ -3,15 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const cheerio_1 = __importDefault(require("cheerio"));
|
|
7
6
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
8
7
|
const globby_1 = require("globby");
|
|
9
|
-
const got_1 = __importDefault(require("got"));
|
|
10
|
-
const lodash_1 = require("lodash");
|
|
11
8
|
const chalk_1 = __importDefault(require("chalk"));
|
|
12
9
|
const path_1 = __importDefault(require("path"));
|
|
13
10
|
const src_1 = require("src");
|
|
14
|
-
const shopify_js_1 = require("./shopify.js");
|
|
15
11
|
const infer_schema_1 = require("./infer-schema");
|
|
16
12
|
function assert(value, message) {
|
|
17
13
|
if (!value) {
|
|
@@ -19,48 +15,8 @@ function assert(value, message) {
|
|
|
19
15
|
}
|
|
20
16
|
return value;
|
|
21
17
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*/
|
|
25
|
-
const loadRailsData = async (url) => {
|
|
26
|
-
const shopifyDocsSource = await (0, got_1.default)(url);
|
|
27
|
-
const $ = cheerio_1.default.load(shopifyDocsSource.body);
|
|
28
|
-
const jsonScriptTag = $("script")
|
|
29
|
-
.toArray()
|
|
30
|
-
.find((script) => $(script).html()?.includes("window.RailsData"));
|
|
31
|
-
const compressedScriptTag = $("script")
|
|
32
|
-
.toArray()
|
|
33
|
-
.find((script) => $(script).html()?.includes("rails_data"));
|
|
34
|
-
if (jsonScriptTag) {
|
|
35
|
-
const scriptText = $(jsonScriptTag).html();
|
|
36
|
-
const jsonMatch = scriptText.match(/window\.RailsData = (\{[\s\S]*?\}\s*)\/\/\]\]/m);
|
|
37
|
-
if (!jsonMatch) {
|
|
38
|
-
throw new Error("RailsData object literal is in an unexpected format");
|
|
39
|
-
}
|
|
40
|
-
return JSON.parse(jsonMatch[1]);
|
|
41
|
-
}
|
|
42
|
-
else if (compressedScriptTag) {
|
|
43
|
-
const scriptText = $(compressedScriptTag).html();
|
|
44
|
-
const jsonMatch = scriptText.match(/window.__reactRouterContext.streamController.enqueue\(([\s\S]*)\)/);
|
|
45
|
-
if (!jsonMatch) {
|
|
46
|
-
throw new Error("RailsData object literal not found in script tag or is in an unexpected format");
|
|
47
|
-
}
|
|
48
|
-
const data = jsonMatch[1].replace("\\\n", "");
|
|
49
|
-
const encoder = new TextEncoderStream();
|
|
50
|
-
const readableStream = new ReadableStream({
|
|
51
|
-
start(c) {
|
|
52
|
-
c.enqueue(JSON.parse(data));
|
|
53
|
-
c.close();
|
|
54
|
-
},
|
|
55
|
-
}).pipeThrough(encoder);
|
|
56
|
-
const result = await (0, shopify_js_1.startDecoding)(readableStream);
|
|
57
|
-
return result.value.loaderData["./routes/rest"].rails_data;
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
throw new Error("expected to find rails_data or window.RailsData script in shopify source but couldn't");
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
const docsWebhooksPageForVersion = (version) => `https://shopify.dev/docs/api/admin-rest/${version}/resources/webhook#event-topics`;
|
|
18
|
+
const dataUrl = "https://shopify.dev/docs/api/webhooks.data";
|
|
19
|
+
const dataUrlForVersion = (version) => `https://shopify.dev/docs/api/webhooks/${version}.data`;
|
|
64
20
|
let warnings = 0;
|
|
65
21
|
let errors = 0;
|
|
66
22
|
const loadExemplars = async () => {
|
|
@@ -75,33 +31,123 @@ const loadExemplars = async () => {
|
|
|
75
31
|
}
|
|
76
32
|
console.log(`loaded ${files.length} exemplars`);
|
|
77
33
|
};
|
|
34
|
+
const loadDataFromUrl = async (url) => {
|
|
35
|
+
const res = await fetch(url, { headers: { accept: "application/json" } });
|
|
36
|
+
if (!res.ok) {
|
|
37
|
+
console.error(`Failed to fetch ${url}: ${res.status} ${res.statusText}`);
|
|
38
|
+
process.exit(1);
|
|
39
|
+
}
|
|
40
|
+
const flat = await res.json();
|
|
41
|
+
return inflateShopifyData(flat);
|
|
42
|
+
};
|
|
43
|
+
const inflateShopifyData = (flat) => {
|
|
44
|
+
const cache = new Map();
|
|
45
|
+
const fromIndex = (i) => {
|
|
46
|
+
if (!Number.isInteger(i)) {
|
|
47
|
+
return i;
|
|
48
|
+
}
|
|
49
|
+
if (cache.has(i))
|
|
50
|
+
return cache.get(i);
|
|
51
|
+
const val = flat[i];
|
|
52
|
+
const out = deref(val);
|
|
53
|
+
cache.set(i, out);
|
|
54
|
+
return out;
|
|
55
|
+
};
|
|
56
|
+
const deref = (x) => {
|
|
57
|
+
if (typeof x === "number") {
|
|
58
|
+
return fromIndex(x);
|
|
59
|
+
}
|
|
60
|
+
if (Array.isArray(x)) {
|
|
61
|
+
return x.map(deref);
|
|
62
|
+
}
|
|
63
|
+
if (x && typeof x === "object") {
|
|
64
|
+
const out = {};
|
|
65
|
+
for (const [k, v] of Object.entries(x)) {
|
|
66
|
+
if (k.startsWith("_")) {
|
|
67
|
+
const keyIdx = Number(k.slice(1));
|
|
68
|
+
const key = fromIndex(keyIdx);
|
|
69
|
+
out[key] = deref(v);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
out[k] = deref(v);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return out;
|
|
76
|
+
}
|
|
77
|
+
return x;
|
|
78
|
+
};
|
|
79
|
+
return fromIndex(0);
|
|
80
|
+
};
|
|
81
|
+
const findFirstByPredicate = (node, predicate) => {
|
|
82
|
+
if (node && typeof node === "object") {
|
|
83
|
+
if (Array.isArray(node)) {
|
|
84
|
+
for (const child of node) {
|
|
85
|
+
const result = findFirstByPredicate(child, predicate);
|
|
86
|
+
if (result !== null)
|
|
87
|
+
return result;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
if (predicate(node)) {
|
|
92
|
+
return node;
|
|
93
|
+
}
|
|
94
|
+
for (const value of Object.values(node)) {
|
|
95
|
+
const result = findFirstByPredicate(value, predicate);
|
|
96
|
+
if (result !== null)
|
|
97
|
+
return result;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return null;
|
|
102
|
+
};
|
|
103
|
+
const findFirstByKey = (node, keyName) => {
|
|
104
|
+
return findFirstByPredicate(node, (node) => Object.prototype.hasOwnProperty.call(node, keyName))?.[keyName];
|
|
105
|
+
};
|
|
78
106
|
const getAllVersions = async () => {
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
|
|
107
|
+
const data = await loadDataFromUrl(dataUrl);
|
|
108
|
+
const selectableVersions = findFirstByKey(data, "selectableVersions");
|
|
109
|
+
if (!selectableVersions || !Array.isArray(selectableVersions.default.values)) {
|
|
110
|
+
throw new Error("selectableVersions not found or is not an array");
|
|
111
|
+
}
|
|
112
|
+
return selectableVersions.default.values.filter((v) => v != "unstable");
|
|
82
113
|
};
|
|
83
114
|
const main = async () => {
|
|
84
115
|
await loadExemplars();
|
|
85
116
|
const rootDir = (0, src_1.getPackageRootDir)();
|
|
86
117
|
const versions = process.env.VERSION ? [process.env.VERSION] : await getAllVersions();
|
|
87
118
|
for (const version of versions) {
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
119
|
+
console.log(`Loading webhooks for version ${version}`);
|
|
120
|
+
const data = await loadDataFromUrl(dataUrlForVersion(version));
|
|
121
|
+
const webhooksAccordian = findFirstByPredicate(data, (node) => node.type === "WebhooksAccordion" && node.anchorLink === "list-of-topics");
|
|
122
|
+
const webhookContent = assert(webhooksAccordian.accordionContent);
|
|
123
|
+
for (const webhookNode of webhookContent) {
|
|
124
|
+
const examplePayload = webhookNode.codeblock?.tabs?.[0]?.code;
|
|
125
|
+
let response = {};
|
|
126
|
+
if (!examplePayload) {
|
|
127
|
+
console.warn(`${webhookNode.title} has no payload`);
|
|
94
128
|
warnings += 1;
|
|
95
|
-
webhook.response = {};
|
|
96
129
|
}
|
|
97
130
|
else {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
131
|
+
const parsedPayload = JSON.parse(examplePayload);
|
|
132
|
+
if (!parsedPayload) {
|
|
133
|
+
console.warn(`${webhookNode.title} has a null payload`);
|
|
134
|
+
warnings += 1;
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
response = parsedPayload;
|
|
138
|
+
}
|
|
104
139
|
}
|
|
140
|
+
const webhook = {
|
|
141
|
+
access_scopes: webhookNode.accessScopes,
|
|
142
|
+
available_on: webhookNode.availableOn,
|
|
143
|
+
deprecated: !!webhookNode.webhookNotices?.find((notice) => notice.type === "deprecated"),
|
|
144
|
+
description: webhookNode.description,
|
|
145
|
+
name: webhookNode.title,
|
|
146
|
+
pii: webhookNode.pii,
|
|
147
|
+
related_resource: webhookNode.relatedResource,
|
|
148
|
+
response,
|
|
149
|
+
shop_feature: !!webhookNode.webhookNotices?.find((notice) => notice.type === "shop_feature"),
|
|
150
|
+
};
|
|
105
151
|
const metadataFile = path_1.default.join(rootDir, "metadatas", version, webhook.name + ".json");
|
|
106
152
|
await fs_extra_1.default.mkdir(path_1.default.dirname(metadataFile), { recursive: true });
|
|
107
153
|
await fs_extra_1.default.writeFile(metadataFile, JSON.stringify(webhook, null, 2), "utf-8");
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"available_on": [
|
|
3
|
+
"graphql",
|
|
4
|
+
"rest",
|
|
5
|
+
"toml"
|
|
6
|
+
],
|
|
7
|
+
"deprecated": false,
|
|
8
|
+
"description": "Occurs whenever the access scopes of any installation are modified. Allows apps to keep track of the granted access scopes of their installations.",
|
|
9
|
+
"name": "app/scopes_update",
|
|
10
|
+
"related_resource": "Shop",
|
|
11
|
+
"response": {
|
|
12
|
+
"id": 1,
|
|
13
|
+
"shop_id": "gid://shopify/Shop/548380009",
|
|
14
|
+
"previous": [
|
|
15
|
+
"read_products"
|
|
16
|
+
],
|
|
17
|
+
"current": [
|
|
18
|
+
"read_products",
|
|
19
|
+
"write_products"
|
|
20
|
+
],
|
|
21
|
+
"updated_at": "2024-06-25T00:00:00.000Z"
|
|
22
|
+
},
|
|
23
|
+
"shop_feature": false
|
|
24
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"available_on": [
|
|
3
|
+
"graphql",
|
|
4
|
+
"rest",
|
|
5
|
+
"toml"
|
|
6
|
+
],
|
|
7
|
+
"deprecated": false,
|
|
8
|
+
"description": "Occurs whenever a shop has uninstalled the app.",
|
|
9
|
+
"name": "app/uninstalled",
|
|
10
|
+
"related_resource": "Shop",
|
|
11
|
+
"response": {
|
|
12
|
+
"id": 548380009,
|
|
13
|
+
"name": "Super Toys",
|
|
14
|
+
"email": "super@supertoys.com",
|
|
15
|
+
"domain": null,
|
|
16
|
+
"province": "Tennessee",
|
|
17
|
+
"country": "US",
|
|
18
|
+
"address1": "190 MacLaren Street",
|
|
19
|
+
"zip": "37178",
|
|
20
|
+
"city": "Houston",
|
|
21
|
+
"source": null,
|
|
22
|
+
"phone": "3213213210",
|
|
23
|
+
"latitude": null,
|
|
24
|
+
"longitude": null,
|
|
25
|
+
"primary_locale": "en",
|
|
26
|
+
"address2": null,
|
|
27
|
+
"created_at": null,
|
|
28
|
+
"updated_at": null,
|
|
29
|
+
"country_code": "US",
|
|
30
|
+
"country_name": "United States",
|
|
31
|
+
"currency": "USD",
|
|
32
|
+
"customer_email": "super@supertoys.com",
|
|
33
|
+
"timezone": "(GMT-05:00) Eastern Time (US & Canada)",
|
|
34
|
+
"iana_timezone": null,
|
|
35
|
+
"shop_owner": "John Smith",
|
|
36
|
+
"money_format": "${{amount}}",
|
|
37
|
+
"money_with_currency_format": "${{amount}} USD",
|
|
38
|
+
"weight_unit": "kg",
|
|
39
|
+
"province_code": "TN",
|
|
40
|
+
"taxes_included": null,
|
|
41
|
+
"auto_configure_tax_inclusivity": null,
|
|
42
|
+
"tax_shipping": null,
|
|
43
|
+
"county_taxes": null,
|
|
44
|
+
"plan_display_name": "Shopify Plus",
|
|
45
|
+
"plan_name": "enterprise",
|
|
46
|
+
"has_discounts": false,
|
|
47
|
+
"has_gift_cards": true,
|
|
48
|
+
"myshopify_domain": null,
|
|
49
|
+
"google_apps_domain": null,
|
|
50
|
+
"google_apps_login_enabled": null,
|
|
51
|
+
"money_in_emails_format": "${{amount}}",
|
|
52
|
+
"money_with_currency_in_emails_format": "${{amount}} USD",
|
|
53
|
+
"eligible_for_payments": true,
|
|
54
|
+
"requires_extra_payments_agreement": false,
|
|
55
|
+
"password_enabled": null,
|
|
56
|
+
"has_storefront": true,
|
|
57
|
+
"finances": true,
|
|
58
|
+
"primary_location_id": 655441491,
|
|
59
|
+
"checkout_api_supported": true,
|
|
60
|
+
"multi_location_enabled": true,
|
|
61
|
+
"setup_required": false,
|
|
62
|
+
"pre_launch_enabled": false,
|
|
63
|
+
"enabled_presentment_currencies": [
|
|
64
|
+
"USD"
|
|
65
|
+
],
|
|
66
|
+
"marketing_sms_consent_enabled_at_checkout": false,
|
|
67
|
+
"transactional_sms_disabled": false
|
|
68
|
+
},
|
|
69
|
+
"shop_feature": false
|
|
70
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"available_on": [
|
|
3
|
+
"graphql",
|
|
4
|
+
"toml"
|
|
5
|
+
],
|
|
6
|
+
"deprecated": false,
|
|
7
|
+
"description": "Occurs whenever a one-time app charge is updated.",
|
|
8
|
+
"name": "app_purchases_one_time/update",
|
|
9
|
+
"related_resource": "ApplicationCharge",
|
|
10
|
+
"response": {
|
|
11
|
+
"app_purchase_one_time": {
|
|
12
|
+
"admin_graphql_api_id": "gid://shopify/AppPurchaseOneTime/1017262353",
|
|
13
|
+
"name": "Webhook Test",
|
|
14
|
+
"status": "PENDING",
|
|
15
|
+
"admin_graphql_api_shop_id": "gid://shopify/Shop/548380009",
|
|
16
|
+
"created_at": "2021-12-31T19:00:00-05:00",
|
|
17
|
+
"updated_at": "2021-12-31T19:00:00-05:00"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"shop_feature": false
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"available_on": [
|
|
3
|
+
"graphql",
|
|
4
|
+
"toml"
|
|
5
|
+
],
|
|
6
|
+
"deprecated": false,
|
|
7
|
+
"description": "Occurs when the balance used on an app subscription crosses 90% of the capped amount.",
|
|
8
|
+
"name": "app_subscriptions/approaching_capped_amount",
|
|
9
|
+
"related_resource": "RecurringApplicationCharge",
|
|
10
|
+
"response": {
|
|
11
|
+
"app_subscription": {
|
|
12
|
+
"admin_graphql_api_id": "gid://shopify/AppSubscription/1029266968",
|
|
13
|
+
"name": "Webhook Test",
|
|
14
|
+
"balance_used": 0,
|
|
15
|
+
"capped_amount": "20.0",
|
|
16
|
+
"currency_code": "USD",
|
|
17
|
+
"admin_graphql_api_shop_id": "gid://shopify/Shop/548380009",
|
|
18
|
+
"created_at": "2021-12-31T19:00:00-05:00",
|
|
19
|
+
"updated_at": "2021-12-31T19:00:00-05:00"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"shop_feature": false
|
|
23
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"available_on": [
|
|
3
|
+
"graphql",
|
|
4
|
+
"rest",
|
|
5
|
+
"toml"
|
|
6
|
+
],
|
|
7
|
+
"deprecated": false,
|
|
8
|
+
"description": "Occurs whenever an app subscription is updated.",
|
|
9
|
+
"name": "app_subscriptions/update",
|
|
10
|
+
"related_resource": "RecurringApplicationCharge",
|
|
11
|
+
"response": {
|
|
12
|
+
"app_subscription": {
|
|
13
|
+
"admin_graphql_api_id": "gid://shopify/AppSubscription/1029266962",
|
|
14
|
+
"name": "Webhook Test",
|
|
15
|
+
"status": "PENDING",
|
|
16
|
+
"admin_graphql_api_shop_id": "gid://shopify/Shop/548380009",
|
|
17
|
+
"created_at": "2021-12-31T19:00:00-05:00",
|
|
18
|
+
"updated_at": "2021-12-31T19:00:00-05:00",
|
|
19
|
+
"currency": "USD",
|
|
20
|
+
"capped_amount": "20.0",
|
|
21
|
+
"price": "10.00",
|
|
22
|
+
"interval": "every_30_days",
|
|
23
|
+
"plan_handle": "plan-123"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"shop_feature": false
|
|
27
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"access_scopes": [
|
|
3
|
+
"audit_events"
|
|
4
|
+
],
|
|
5
|
+
"available_on": [
|
|
6
|
+
"graphql",
|
|
7
|
+
"toml"
|
|
8
|
+
],
|
|
9
|
+
"deprecated": false,
|
|
10
|
+
"description": "Triggers for each auditable Admin API request. This topic is limited to one active subscription per Plus store and requires the use of Google Cloud Pub/Sub or AWS EventBridge.",
|
|
11
|
+
"name": "audit_events/admin_api_activity",
|
|
12
|
+
"pii": [
|
|
13
|
+
"customer"
|
|
14
|
+
],
|
|
15
|
+
"related_resource": "AuditEvent",
|
|
16
|
+
"response": {
|
|
17
|
+
"events": [
|
|
18
|
+
{
|
|
19
|
+
"time": 1634678724,
|
|
20
|
+
"event": {
|
|
21
|
+
"context": {
|
|
22
|
+
"context_type": "network_request",
|
|
23
|
+
"context_identifier": "13493be9-24f2-4eea-b71d-a8acd7af7917",
|
|
24
|
+
"context_metadata": {
|
|
25
|
+
"client_ip": "192.168.64.1",
|
|
26
|
+
"content_type": "json",
|
|
27
|
+
"response_time_ms": 116.47000000812113,
|
|
28
|
+
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36",
|
|
29
|
+
"api_request_failed": false,
|
|
30
|
+
"response_code": 200
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"action": "api_request",
|
|
34
|
+
"actor": {
|
|
35
|
+
"actor_type": "app",
|
|
36
|
+
"actor_identifier": 4,
|
|
37
|
+
"actor_metadata": {
|
|
38
|
+
"app_name": "Private app",
|
|
39
|
+
"api_version_requested": "unstable",
|
|
40
|
+
"api_version_served": "unstable",
|
|
41
|
+
"ecosystem_category": "private"
|
|
42
|
+
},
|
|
43
|
+
"on_behalf_of": {
|
|
44
|
+
"user_email": "dev@example.com"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"subject": {
|
|
48
|
+
"subject_type": "shop",
|
|
49
|
+
"subject_identifier": "shop1.myshopify.io",
|
|
50
|
+
"subject_metadata": {}
|
|
51
|
+
},
|
|
52
|
+
"timestamp": "2021-10-19T21:25:24Z",
|
|
53
|
+
"additional_metadata": {
|
|
54
|
+
"request_type": "GraphQL",
|
|
55
|
+
"mutation_names": [],
|
|
56
|
+
"query": "query orders {\n orders(first: $first) {\n edges {\n node {\n id\n }\n }\n }\n}",
|
|
57
|
+
"variables": {
|
|
58
|
+
"first": 10
|
|
59
|
+
},
|
|
60
|
+
"error_codes": []
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"shop_feature": false
|
|
67
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"available_on": [
|
|
3
|
+
"graphql",
|
|
4
|
+
"rest",
|
|
5
|
+
"toml"
|
|
6
|
+
],
|
|
7
|
+
"deprecated": false,
|
|
8
|
+
"description": "Notifies when a Bulk Operation finishes.",
|
|
9
|
+
"name": "bulk_operations/finish",
|
|
10
|
+
"related_resource": "BulkOperation",
|
|
11
|
+
"response": {
|
|
12
|
+
"admin_graphql_api_id": "gid://shopify/BulkOperation/147595010",
|
|
13
|
+
"completed_at": "2024-01-01T07:34:56-05:00",
|
|
14
|
+
"created_at": "2025-09-10T14:39:08-04:00",
|
|
15
|
+
"error_code": null,
|
|
16
|
+
"status": "completed",
|
|
17
|
+
"type": "query"
|
|
18
|
+
},
|
|
19
|
+
"shop_feature": false
|
|
20
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"access_scopes": [
|
|
3
|
+
"orders"
|
|
4
|
+
],
|
|
5
|
+
"available_on": [
|
|
6
|
+
"graphql",
|
|
7
|
+
"rest",
|
|
8
|
+
"toml"
|
|
9
|
+
],
|
|
10
|
+
"deprecated": false,
|
|
11
|
+
"description": "Occurs when a cart is created in the online store. Other types of carts aren't supported. For example, the webhook doesn't support carts that are created in a custom storefront.",
|
|
12
|
+
"name": "carts/create",
|
|
13
|
+
"pii": [
|
|
14
|
+
"customer"
|
|
15
|
+
],
|
|
16
|
+
"related_resource": "CartNext",
|
|
17
|
+
"response": {
|
|
18
|
+
"id": "exampleCartId",
|
|
19
|
+
"token": "exampleCartId",
|
|
20
|
+
"line_items": [
|
|
21
|
+
{
|
|
22
|
+
"id": 704912205188288500,
|
|
23
|
+
"properties": null,
|
|
24
|
+
"quantity": 3,
|
|
25
|
+
"variant_id": 704912205188288500,
|
|
26
|
+
"key": "704912205188288575:3abdf474dce81d0025dd15b9a02ef6bf",
|
|
27
|
+
"discounted_price": "19.99",
|
|
28
|
+
"discounts": [],
|
|
29
|
+
"gift_card": false,
|
|
30
|
+
"grams": 200,
|
|
31
|
+
"line_price": "59.97",
|
|
32
|
+
"original_line_price": "59.97",
|
|
33
|
+
"original_price": "19.99",
|
|
34
|
+
"price": "19.99",
|
|
35
|
+
"product_id": 788032119674292900,
|
|
36
|
+
"sku": "example-shirt-s",
|
|
37
|
+
"taxable": true,
|
|
38
|
+
"title": "Example T-Shirt - Small",
|
|
39
|
+
"total_discount": "39.98",
|
|
40
|
+
"vendor": "Acme",
|
|
41
|
+
"discounted_price_set": {
|
|
42
|
+
"shop_money": {
|
|
43
|
+
"amount": "19.99",
|
|
44
|
+
"currency_code": "USD"
|
|
45
|
+
},
|
|
46
|
+
"presentment_money": {
|
|
47
|
+
"amount": "19.99",
|
|
48
|
+
"currency_code": "USD"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"line_price_set": {
|
|
52
|
+
"shop_money": {
|
|
53
|
+
"amount": "59.97",
|
|
54
|
+
"currency_code": "USD"
|
|
55
|
+
},
|
|
56
|
+
"presentment_money": {
|
|
57
|
+
"amount": "59.97",
|
|
58
|
+
"currency_code": "USD"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"original_line_price_set": {
|
|
62
|
+
"shop_money": {
|
|
63
|
+
"amount": "59.97",
|
|
64
|
+
"currency_code": "USD"
|
|
65
|
+
},
|
|
66
|
+
"presentment_money": {
|
|
67
|
+
"amount": "59.97",
|
|
68
|
+
"currency_code": "USD"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"price_set": {
|
|
72
|
+
"shop_money": {
|
|
73
|
+
"amount": "19.99",
|
|
74
|
+
"currency_code": "USD"
|
|
75
|
+
},
|
|
76
|
+
"presentment_money": {
|
|
77
|
+
"amount": "19.99",
|
|
78
|
+
"currency_code": "USD"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"total_discount_set": {
|
|
82
|
+
"shop_money": {
|
|
83
|
+
"amount": "39.98",
|
|
84
|
+
"currency_code": "USD"
|
|
85
|
+
},
|
|
86
|
+
"presentment_money": {
|
|
87
|
+
"amount": "39.98",
|
|
88
|
+
"currency_code": "USD"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"note": null,
|
|
94
|
+
"updated_at": "2022-01-01T00:00:00.000Z",
|
|
95
|
+
"created_at": "2022-01-01T00:00:00.000Z"
|
|
96
|
+
},
|
|
97
|
+
"shop_feature": false
|
|
98
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"access_scopes": [
|
|
3
|
+
"orders"
|
|
4
|
+
],
|
|
5
|
+
"available_on": [
|
|
6
|
+
"graphql",
|
|
7
|
+
"rest",
|
|
8
|
+
"toml"
|
|
9
|
+
],
|
|
10
|
+
"deprecated": false,
|
|
11
|
+
"description": "Occurs when a cart is updated in the online store. Other types of carts aren't supported. For example, the webhook doesn't support carts that are updated in a custom storefront.",
|
|
12
|
+
"name": "carts/update",
|
|
13
|
+
"pii": [
|
|
14
|
+
"customer"
|
|
15
|
+
],
|
|
16
|
+
"related_resource": "CartNext",
|
|
17
|
+
"response": {
|
|
18
|
+
"id": "exampleCartId",
|
|
19
|
+
"token": "exampleCartId",
|
|
20
|
+
"line_items": [
|
|
21
|
+
{
|
|
22
|
+
"id": 704912205188288500,
|
|
23
|
+
"properties": null,
|
|
24
|
+
"quantity": 3,
|
|
25
|
+
"variant_id": 704912205188288500,
|
|
26
|
+
"key": "704912205188288575:3abdf474dce81d0025dd15b9a02ef6bf",
|
|
27
|
+
"discounted_price": "19.99",
|
|
28
|
+
"discounts": [],
|
|
29
|
+
"gift_card": false,
|
|
30
|
+
"grams": 200,
|
|
31
|
+
"line_price": "59.97",
|
|
32
|
+
"original_line_price": "59.97",
|
|
33
|
+
"original_price": "19.99",
|
|
34
|
+
"price": "19.99",
|
|
35
|
+
"product_id": 788032119674292900,
|
|
36
|
+
"sku": "example-shirt-s",
|
|
37
|
+
"taxable": true,
|
|
38
|
+
"title": "Example T-Shirt - Small",
|
|
39
|
+
"total_discount": "39.98",
|
|
40
|
+
"vendor": "Acme",
|
|
41
|
+
"discounted_price_set": {
|
|
42
|
+
"shop_money": {
|
|
43
|
+
"amount": "19.99",
|
|
44
|
+
"currency_code": "USD"
|
|
45
|
+
},
|
|
46
|
+
"presentment_money": {
|
|
47
|
+
"amount": "19.99",
|
|
48
|
+
"currency_code": "USD"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"line_price_set": {
|
|
52
|
+
"shop_money": {
|
|
53
|
+
"amount": "59.97",
|
|
54
|
+
"currency_code": "USD"
|
|
55
|
+
},
|
|
56
|
+
"presentment_money": {
|
|
57
|
+
"amount": "59.97",
|
|
58
|
+
"currency_code": "USD"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"original_line_price_set": {
|
|
62
|
+
"shop_money": {
|
|
63
|
+
"amount": "59.97",
|
|
64
|
+
"currency_code": "USD"
|
|
65
|
+
},
|
|
66
|
+
"presentment_money": {
|
|
67
|
+
"amount": "59.97",
|
|
68
|
+
"currency_code": "USD"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"price_set": {
|
|
72
|
+
"shop_money": {
|
|
73
|
+
"amount": "19.99",
|
|
74
|
+
"currency_code": "USD"
|
|
75
|
+
},
|
|
76
|
+
"presentment_money": {
|
|
77
|
+
"amount": "19.99",
|
|
78
|
+
"currency_code": "USD"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"total_discount_set": {
|
|
82
|
+
"shop_money": {
|
|
83
|
+
"amount": "39.98",
|
|
84
|
+
"currency_code": "USD"
|
|
85
|
+
},
|
|
86
|
+
"presentment_money": {
|
|
87
|
+
"amount": "39.98",
|
|
88
|
+
"currency_code": "USD"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"note": null,
|
|
94
|
+
"updated_at": "2022-01-01T00:00:00.000Z",
|
|
95
|
+
"created_at": "2022-01-01T00:00:00.000Z"
|
|
96
|
+
},
|
|
97
|
+
"shop_feature": false
|
|
98
|
+
}
|