mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
add must_have_pictures parameter to the ezBookkeeping API Tools script
This commit is contained in:
@@ -292,7 +292,7 @@ $API_CONFIGS = @(
|
|||||||
Path = "transactions/list.json"
|
Path = "transactions/list.json"
|
||||||
RequiresTimezone = $true
|
RequiresTimezone = $true
|
||||||
RequiredParams = @("count")
|
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 = @{
|
ParamTypes = @{
|
||||||
"count" = "integer"
|
"count" = "integer"
|
||||||
"type" = "integer"
|
"type" = "integer"
|
||||||
@@ -301,6 +301,7 @@ $API_CONFIGS = @(
|
|||||||
"tag_filter" = "string"
|
"tag_filter" = "string"
|
||||||
"amount_filter" = "string"
|
"amount_filter" = "string"
|
||||||
"keyword" = "string"
|
"keyword" = "string"
|
||||||
|
"must_have_pictures" = "boolean"
|
||||||
"max_time" = "integer"
|
"max_time" = "integer"
|
||||||
"min_time" = "integer"
|
"min_time" = "integer"
|
||||||
"page" = "integer"
|
"page" = "integer"
|
||||||
@@ -318,6 +319,7 @@ $API_CONFIGS = @(
|
|||||||
"tag_filter" = "string (Filter by tags)"
|
"tag_filter" = "string (Filter by tags)"
|
||||||
"amount_filter" = "string (Filter by amount)"
|
"amount_filter" = "string (Filter by amount)"
|
||||||
"keyword" = "string (Filter by keyword)"
|
"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)"
|
"max_time" = "integer (The maximum time sequence ID, Set to 0 for latest)"
|
||||||
"min_time" = "integer (The minimum time sequence ID)"
|
"min_time" = "integer (The minimum time sequence ID)"
|
||||||
"page" = "integer (Specified page integer)"
|
"page" = "integer (Specified page integer)"
|
||||||
@@ -374,7 +376,7 @@ $API_CONFIGS = @(
|
|||||||
Path = "transactions/list/all.json"
|
Path = "transactions/list/all.json"
|
||||||
RequiresTimezone = $true
|
RequiresTimezone = $true
|
||||||
RequiredParams = @()
|
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 = @{
|
ParamTypes = @{
|
||||||
"type" = "integer"
|
"type" = "integer"
|
||||||
"category_ids" = "string"
|
"category_ids" = "string"
|
||||||
@@ -382,6 +384,7 @@ $API_CONFIGS = @(
|
|||||||
"tag_filter" = "string"
|
"tag_filter" = "string"
|
||||||
"amount_filter" = "string"
|
"amount_filter" = "string"
|
||||||
"keyword" = "string"
|
"keyword" = "string"
|
||||||
|
"must_have_pictures" = "boolean"
|
||||||
"start_time" = "integer"
|
"start_time" = "integer"
|
||||||
"end_time" = "integer"
|
"end_time" = "integer"
|
||||||
"with_pictures" = "boolean"
|
"with_pictures" = "boolean"
|
||||||
@@ -396,6 +399,7 @@ $API_CONFIGS = @(
|
|||||||
"tag_filter" = "string (Filter by tags)"
|
"tag_filter" = "string (Filter by tags)"
|
||||||
"amount_filter" = "string (Filter by amount)"
|
"amount_filter" = "string (Filter by amount)"
|
||||||
"keyword" = "string (Filter by keyword)"
|
"keyword" = "string (Filter by keyword)"
|
||||||
|
"must_have_pictures" = "boolean (Whether to only get transactions with pictures)"
|
||||||
"start_time" = "integer (Transaction list start unix time)"
|
"start_time" = "integer (Transaction list start unix time)"
|
||||||
"end_time" = "integer (Transaction list end unix time)"
|
"end_time" = "integer (Transaction list end unix time)"
|
||||||
"with_pictures" = "boolean (Whether to get picture IDs)"
|
"with_pictures" = "boolean (Whether to get picture IDs)"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
API_CONFIGS='[
|
API_CONFIGS='[
|
||||||
{
|
{
|
||||||
"Name": "tokens-list",
|
"Name": "tokens-list",
|
||||||
"Description": "Retrieve all sessions for the current user",
|
"Description": "Retrieve all sessions for the current user",
|
||||||
"Method": "GET",
|
"Method": "GET",
|
||||||
"Path": "tokens/list.json",
|
"Path": "tokens/list.json",
|
||||||
"RequiresTimezone": false,
|
"RequiresTimezone": false,
|
||||||
@@ -272,7 +272,7 @@ API_CONFIGS='[
|
|||||||
"Path": "transactions/list.json",
|
"Path": "transactions/list.json",
|
||||||
"RequiresTimezone": true,
|
"RequiresTimezone": true,
|
||||||
"RequiredParams": ["count"],
|
"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": {
|
"ParamTypes": {
|
||||||
"count": "integer",
|
"count": "integer",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
@@ -281,6 +281,7 @@ API_CONFIGS='[
|
|||||||
"tag_filter": "string",
|
"tag_filter": "string",
|
||||||
"amount_filter": "string",
|
"amount_filter": "string",
|
||||||
"keyword": "string",
|
"keyword": "string",
|
||||||
|
"must_have_pictures": "boolean",
|
||||||
"max_time": "integer",
|
"max_time": "integer",
|
||||||
"min_time": "integer",
|
"min_time": "integer",
|
||||||
"page": "integer",
|
"page": "integer",
|
||||||
@@ -298,6 +299,7 @@ API_CONFIGS='[
|
|||||||
"tag_filter": "string (Filter by tags)",
|
"tag_filter": "string (Filter by tags)",
|
||||||
"amount_filter": "string (Filter by amount)",
|
"amount_filter": "string (Filter by amount)",
|
||||||
"keyword": "string (Filter by keyword)",
|
"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)",
|
"max_time": "integer (The maximum time sequence ID, Set to 0 for latest)",
|
||||||
"min_time": "integer (The minimum time sequence ID)",
|
"min_time": "integer (The minimum time sequence ID)",
|
||||||
"page": "integer (Specified page integer)",
|
"page": "integer (Specified page integer)",
|
||||||
@@ -354,7 +356,7 @@ API_CONFIGS='[
|
|||||||
"Path": "transactions/list/all.json",
|
"Path": "transactions/list/all.json",
|
||||||
"RequiresTimezone": true,
|
"RequiresTimezone": true,
|
||||||
"RequiredParams": [],
|
"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": {
|
"ParamTypes": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"category_ids": "string",
|
"category_ids": "string",
|
||||||
@@ -362,6 +364,7 @@ API_CONFIGS='[
|
|||||||
"tag_filter": "string",
|
"tag_filter": "string",
|
||||||
"amount_filter": "string",
|
"amount_filter": "string",
|
||||||
"keyword": "string",
|
"keyword": "string",
|
||||||
|
"must_have_pictures": "boolean",
|
||||||
"start_time": "integer",
|
"start_time": "integer",
|
||||||
"end_time": "integer",
|
"end_time": "integer",
|
||||||
"with_pictures": "boolean",
|
"with_pictures": "boolean",
|
||||||
@@ -376,6 +379,7 @@ API_CONFIGS='[
|
|||||||
"tag_filter": "string (Filter by tags)",
|
"tag_filter": "string (Filter by tags)",
|
||||||
"amount_filter": "string (Filter by amount)",
|
"amount_filter": "string (Filter by amount)",
|
||||||
"keyword": "string (Filter by keyword)",
|
"keyword": "string (Filter by keyword)",
|
||||||
|
"must_have_pictures": "boolean (Whether to only get transactions with pictures)",
|
||||||
"start_time": "integer (Transaction list start unix time)",
|
"start_time": "integer (Transaction list start unix time)",
|
||||||
"end_time": "integer (Transaction list end unix time)",
|
"end_time": "integer (Transaction list end unix time)",
|
||||||
"with_pictures": "boolean (Whether to get picture IDs)",
|
"with_pictures": "boolean (Whether to get picture IDs)",
|
||||||
|
|||||||
Reference in New Issue
Block a user