From aee8757ad5a061c04541edf137fb5f69cd321615 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Tue, 12 May 2026 00:34:38 +0800 Subject: [PATCH] add must_have_pictures parameter to the ezBookkeeping API Tools script --- skills/ezbookkeeping/scripts/ebktools.ps1 | 8 ++++++-- skills/ezbookkeeping/scripts/ebktools.sh | 10 +++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/skills/ezbookkeeping/scripts/ebktools.ps1 b/skills/ezbookkeeping/scripts/ebktools.ps1 index af64e38b..7cbcea10 100755 --- a/skills/ezbookkeeping/scripts/ebktools.ps1 +++ b/skills/ezbookkeeping/scripts/ebktools.ps1 @@ -292,7 +292,7 @@ $API_CONFIGS = @( Path = "transactions/list.json" RequiresTimezone = $true RequiredParams = @("count") - OptionalParams = @("type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "max_time", "min_time", "page", "with_count", "with_pictures", "trim_account", "trim_category", "trim_tag") + OptionalParams = @("type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "must_have_pictures", "max_time", "min_time", "page", "with_count", "with_pictures", "trim_account", "trim_category", "trim_tag") ParamTypes = @{ "count" = "integer" "type" = "integer" @@ -301,6 +301,7 @@ $API_CONFIGS = @( "tag_filter" = "string" "amount_filter" = "string" "keyword" = "string" + "must_have_pictures" = "boolean" "max_time" = "integer" "min_time" = "integer" "page" = "integer" @@ -318,6 +319,7 @@ $API_CONFIGS = @( "tag_filter" = "string (Filter by tags)" "amount_filter" = "string (Filter by amount)" "keyword" = "string (Filter by keyword)" + "must_have_pictures" = "boolean (Whether to only get transactions with pictures)" "max_time" = "integer (The maximum time sequence ID, Set to 0 for latest)" "min_time" = "integer (The minimum time sequence ID)" "page" = "integer (Specified page integer)" @@ -374,7 +376,7 @@ $API_CONFIGS = @( Path = "transactions/list/all.json" RequiresTimezone = $true RequiredParams = @() - OptionalParams = @("type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "start_time", "end_time", "with_pictures", "trim_account", "trim_category", "trim_tag") + OptionalParams = @("type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "must_have_pictures", "start_time", "end_time", "with_pictures", "trim_account", "trim_category", "trim_tag") ParamTypes = @{ "type" = "integer" "category_ids" = "string" @@ -382,6 +384,7 @@ $API_CONFIGS = @( "tag_filter" = "string" "amount_filter" = "string" "keyword" = "string" + "must_have_pictures" = "boolean" "start_time" = "integer" "end_time" = "integer" "with_pictures" = "boolean" @@ -396,6 +399,7 @@ $API_CONFIGS = @( "tag_filter" = "string (Filter by tags)" "amount_filter" = "string (Filter by amount)" "keyword" = "string (Filter by keyword)" + "must_have_pictures" = "boolean (Whether to only get transactions with pictures)" "start_time" = "integer (Transaction list start unix time)" "end_time" = "integer (Transaction list end unix time)" "with_pictures" = "boolean (Whether to get picture IDs)" diff --git a/skills/ezbookkeeping/scripts/ebktools.sh b/skills/ezbookkeeping/scripts/ebktools.sh index f2bf51d6..365e9826 100755 --- a/skills/ezbookkeeping/scripts/ebktools.sh +++ b/skills/ezbookkeeping/scripts/ebktools.sh @@ -7,7 +7,7 @@ API_CONFIGS='[ { "Name": "tokens-list", - "Description": "Retrieve all sessions for the current user", + "Description": "Retrieve all sessions for the current user", "Method": "GET", "Path": "tokens/list.json", "RequiresTimezone": false, @@ -272,7 +272,7 @@ API_CONFIGS='[ "Path": "transactions/list.json", "RequiresTimezone": true, "RequiredParams": ["count"], - "OptionalParams": ["type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "max_time", "min_time", "page", "with_count", "with_pictures", "trim_account", "trim_category", "trim_tag"], + "OptionalParams": ["type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "must_have_pictures", "max_time", "min_time", "page", "with_count", "with_pictures", "trim_account", "trim_category", "trim_tag"], "ParamTypes": { "count": "integer", "type": "integer", @@ -281,6 +281,7 @@ API_CONFIGS='[ "tag_filter": "string", "amount_filter": "string", "keyword": "string", + "must_have_pictures": "boolean", "max_time": "integer", "min_time": "integer", "page": "integer", @@ -298,6 +299,7 @@ API_CONFIGS='[ "tag_filter": "string (Filter by tags)", "amount_filter": "string (Filter by amount)", "keyword": "string (Filter by keyword)", + "must_have_pictures": "boolean (Whether to only get transactions with pictures)", "max_time": "integer (The maximum time sequence ID, Set to 0 for latest)", "min_time": "integer (The minimum time sequence ID)", "page": "integer (Specified page integer)", @@ -354,7 +356,7 @@ API_CONFIGS='[ "Path": "transactions/list/all.json", "RequiresTimezone": true, "RequiredParams": [], - "OptionalParams": ["type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "start_time", "end_time", "with_pictures", "trim_account", "trim_category", "trim_tag"], + "OptionalParams": ["type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "must_have_pictures", "start_time", "end_time", "with_pictures", "trim_account", "trim_category", "trim_tag"], "ParamTypes": { "type": "integer", "category_ids": "string", @@ -362,6 +364,7 @@ API_CONFIGS='[ "tag_filter": "string", "amount_filter": "string", "keyword": "string", + "must_have_pictures": "boolean", "start_time": "integer", "end_time": "integer", "with_pictures": "boolean", @@ -376,6 +379,7 @@ API_CONFIGS='[ "tag_filter": "string (Filter by tags)", "amount_filter": "string (Filter by amount)", "keyword": "string (Filter by keyword)", + "must_have_pictures": "boolean (Whether to only get transactions with pictures)", "start_time": "integer (Transaction list start unix time)", "end_time": "integer (Transaction list end unix time)", "with_pictures": "boolean (Whether to get picture IDs)",