From a722ea799d3718bf4dc2a0ec5a2fc53cc00296f2 Mon Sep 17 00:00:00 2001 From: "dev-bot-shopify[bot]" <202039184+dev-bot-shopify[bot]@users.noreply.github.com> Date: Fri, 9 May 2025 18:00:06 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Sync=20Liquid=20Docs=20Schema?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/filters.json | 60 ++++++++++++++++++++++++++++++++++++++++++++- data/objects.json | 62 +++++++++++++++++++++++++++++++++++++++++++++++ data/tags.json | 12 ++++----- 3 files changed, 127 insertions(+), 7 deletions(-) diff --git a/data/filters.json b/data/filters.json index e673d64..33ca636 100644 --- a/data/filters.json +++ b/data/filters.json @@ -4433,7 +4433,35 @@ "deprecated": false, "deprecation_reason": "", "description": "", - "parameters": [], + "parameters": [ + { + "description": "The text for the previous page link.", + "name": "previous", + "positional": false, + "required": false, + "types": [ + "string" + ] + }, + { + "description": "The text for the next page link.", + "name": "next", + "positional": false, + "required": false, + "types": [ + "string" + ] + }, + { + "description": "The anchor to add to the pagination links.", + "name": "anchor", + "positional": false, + "required": false, + "types": [ + "string" + ] + } + ], "return_type": [ { "type": "string", @@ -4452,6 +4480,36 @@ "parameter": false, "display_type": "text", "show_data_tab": true + }, + { + "name": "previous", + "description": "Specify the text for the previous page link.", + "syntax": "paginate | default_pagination: previous: string", + "path": "/collections/sale-potions", + "raw_liquid": "{% paginate collection.products by 2 %}\n {% for product in collection.products %}\n {{- product.title }}\n {% endfor %}\n\n {{- paginate | default_pagination: previous: 'Previous' -}}\n{% endpaginate %}", + "parameter": true, + "display_type": "text", + "show_data_tab": false + }, + { + "name": "next", + "description": "Specify the text for the next page link.", + "syntax": "paginate | default_pagination: next: string", + "path": "/collections/sale-potions", + "raw_liquid": "{% paginate collection.products by 2 %}\n {% for product in collection.products %}\n {{- product.title }}\n {% endfor %}\n\n {{- paginate | default_pagination: next: 'Next' -}}\n{% endpaginate %}", + "parameter": true, + "display_type": "text", + "show_data_tab": false + }, + { + "name": "anchor", + "description": "Specify the anchor to add to the pagination links.", + "syntax": "paginate | default_pagination: anchor: string", + "path": "/collections/sale-potions", + "raw_liquid": "{% paginate collection.products by 2 %}\n {% for product in collection.products %}\n {{- product.title }}\n {% endfor %}\n\n <div id=\"pagination\">\n {{- paginate | default_pagination: anchor: 'pagination' -}}\n </div>\n{% endpaginate %}", + "parameter": true, + "display_type": "text", + "show_data_tab": false } ], "summary": "Generates HTML for a set of links for paginated results. Must be applied to the [`paginate` object](/docs/api/liquid/objects/paginate).", diff --git a/data/objects.json b/data/objects.json index 113234f..510acaf 100644 --- a/data/objects.json +++ b/data/objects.json @@ -4338,6 +4338,22 @@ ], "summary": "Returns `true` if an avatar is associated with a customer. Returns `false` if not.", "name": "has_avatar?" + }, + { + "deprecated": false, + "deprecation_reason": "", + "description": "The account shown will be in the currency associated with the customer’s current context.\nFor example, if a customer is browsing the storefront in the US market, their USD store credit account will be\nreturned. If they do not have a USD store credit account `nil` will be returned.", + "examples": [], + "return_type": [ + { + "type": "store_credit_account", + "name": "", + "description": "", + "array_value": "" + } + ], + "summary": "The store credit account associated with the customer.", + "name": "store_credit_account" } ], "summary": "A [customer](https://help.shopify.com/manual/customers) of the store.", @@ -9583,6 +9599,10 @@ { "object": "metafield", "property": "value" + }, + { + "object": "store_credit_account", + "property": "balance" } ], "template": [] @@ -16047,6 +16067,48 @@ }, "return_type": [] }, + { + "access": { + "global": false, + "parents": [ + { + "object": "customer", + "property": "store_credit_account" + } + ], + "template": [] + }, + "deprecated": false, + "deprecation_reason": "", + "description": "", + "properties": [ + { + "deprecated": false, + "deprecation_reason": "", + "description": "The value is output in the customer's local (presentment) currency.\n\nFor currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.\n\n> Tip:\n> Use [money filters](/docs/api/liquid/filters/money-filters) to output a formatted amount.", + "examples": [], + "return_type": [ + { + "type": "money", + "name": "", + "description": "", + "array_value": "" + } + ], + "summary": "The balance of the store credit account in the currency's subunit.", + "name": "balance" + } + ], + "summary": "A [store_credit_account](https://help.shopify.com/en/manual/customers/store-credit) owned by a [customer](/docs/api/liquid/objects/customer).", + "name": "store_credit_account", + "examples": [], + "json_data": { + "path": "/", + "handle": "customer.store_credit_account", + "data_from_file": "" + }, + "return_type": [] + }, { "access": { "global": false, diff --git a/data/tags.json b/data/tags.json index 5b0c216..ee09be0 100644 --- a/data/tags.json +++ b/data/tags.json @@ -1074,15 +1074,15 @@ "category": "theme", "deprecated": false, "deprecation_reason": "", - "description": "You need to use these tags only if your section or app block is meant to be installed on multiple themes or stores. Otherwise, you should include the JavaScript that your section needs in your theme's [`assets`](/themes/architecture#assets) directory. Each section or app block can have only one `{% javascript %}` tag.\n\nTo learn more about how section-specific JavaScript is loaded and run, refer to the documentation for [sections](/themes/architecture/sections/section-assets#javascript).\n> Caution:\n> Liquid isn't rendered inside of `{% javascript %}` tags. Including Liquid code can cause syntax errors.", + "description": "Each section, block or snippet can have only one `{% javascript %}` tag.\n\nTo learn more about how Javascript that's defined between the `javascript` tags is loaded and run, refer to the documentation for [javascript tags](/storefronts/themes/best-practices/javascript-and-stylesheet-tags#javascript).\n> Caution:\n> Liquid isn't rendered inside of `{% javascript %}` tags. Including Liquid code can cause syntax errors.", "parameters": [], - "summary": "JavaScript code included in a [section](/themes/architecture/sections) file.", + "summary": "JavaScript code included in [section](/storefronts/themes/architecture/sections), [block](/storefronts/themes/architecture/blocks) and [snippet](/storefronts/themes/architecture/snippets) files.", "name": "javascript", "syntax": "{% javascript %}\n javascript_code\n{% endjavascript %}", "syntax_keywords": [ { "keyword": "javascript_code", - "description": "The JavaScript code for the section." + "description": "The JavaScript code for the section, block or snippet." } ], "examples": [] @@ -1119,15 +1119,15 @@ "category": "theme", "deprecated": false, "deprecation_reason": "", - "description": "You need to use these tags only if your section or app block is meant to be installed on multiple themes or stores. Otherwise, you should include the CSS styles that your section needs in your theme's [`assets`](/themes/architecture#assets) directory. Each section or app block can have only one `{% stylesheet %}` tag.\n\nTo learn more about how section-specific CSS is loaded and run, refer to the documentation for [sections](/themes/architecture/sections/section-assets#stylesheet).\n> Caution:\n> Liquid isn't rendered inside of `{% stylesheet %}` tags. Including Liquid code can cause syntax errors.", + "description": "Each section, block or snippet can have only one `{% stylesheet %}` tag.\n\nTo learn more about how CSS that's defined between the `stylesheet` tags is loaded and run, refer to the documentation for [stylesheet tags](/storefronts/themes/best-practices/javascript-and-stylesheet-tags#stylesheet).\n> Caution:\n> Liquid isn't rendered inside of `{% stylesheet %}` tags. Including Liquid code can cause syntax errors.", "parameters": [], - "summary": "CSS styles included in a [section](/themes/architecture/sections) file.", + "summary": "CSS styles included in [section](/storefronts/themes/architecture/sections), [block](/storefronts/themes/architecture/blocks) and [snippet](/storefronts/themes/architecture/snippets) files.", "name": "stylesheet", "syntax": "{% stylesheet %}\n css_styles\n{% endstylesheet %}", "syntax_keywords": [ { "keyword": "css_styles", - "description": "The CSS styles for the section." + "description": "The CSS styles for the section, block or snippet." } ], "examples": []