scripts.shopify.generate_client =============================== .. py:module:: scripts.shopify.generate_client .. autoapi-nested-parse:: Regenerates api/integrations/shopify/generated/ (make shopify-client). Downloads the Admin GraphQL schema of SHOPIFY_API_VERSION from the store in .env, then runs ariadne-codegen on it with the queries of api/integrations/shopify/queries/: a typed client, one method and one Pydantic model per query. Rerun after changing a query or the API version; mypy then reports the code a change breaks. Attributes ---------- .. autoapisummary:: scripts.shopify.generate_client.ROOT scripts.shopify.generate_client.SCHEMA Functions --------- .. autoapisummary:: scripts.shopify.generate_client.download_schema scripts.shopify.generate_client.main Module Contents --------------- .. py:data:: ROOT .. py:data:: SCHEMA .. py:function:: download_schema() -> None .. py:function:: main() -> int