From 36c4aaef582a4e13e9adb6a123b2be443ee6a708 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 20 Nov 2025 17:39:02 +0300 Subject: [PATCH] 173 instance_data.vault moved up, filter became array and supports multiple field entries --- v1/Application.cfc | 2 +- v1/lib/filter_build.cfm | 8 +-- v1/lib/rest_api_helper.cfc | 70 +++++++++++++------------- v1/resources/instance.cfc | 1 + v1/resources/instance_ls.cfc | 6 +-- v1/resources/instance_operation_ls.cfc | 11 ++-- v1/resources/svc_ls.cfc | 4 +- 7 files changed, 54 insertions(+), 48 deletions(-) diff --git a/v1/Application.cfc b/v1/Application.cfc index 6ee8077..bda289e 100644 --- a/v1/Application.cfc +++ b/v1/Application.cfc @@ -51,7 +51,7 @@ //variables.framework.docs={}; variables.framework.docs.APIName="svc-api"; - variables.framework.docs.APIVersion="0.172"; /*$ git config --global --unset user.password*/ + variables.framework.docs.APIVersion="0.173"; /*$ git config --global --unset user.password*/ variables.framework.globalHeaders = structNew(); variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location"; diff --git a/v1/lib/filter_build.cfm b/v1/lib/filter_build.cfm index 2fa7744..f2cb4ab 100644 --- a/v1/lib/filter_build.cfm +++ b/v1/lib/filter_build.cfm @@ -2,12 +2,14 @@ + + - - + + - + diff --git a/v1/lib/rest_api_helper.cfc b/v1/lib/rest_api_helper.cfc index a909b6a..0e2a6bc 100644 --- a/v1/lib/rest_api_helper.cfc +++ b/v1/lib/rest_api_helper.cfc @@ -5,7 +5,7 @@ - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/v1/resources/instance.cfc b/v1/resources/instance.cfc index 90576fa..a8a18ed 100644 --- a/v1/resources/instance.cfc +++ b/v1/resources/instance.cfc @@ -116,6 +116,7 @@ st.instance_data::text as instance_data st.instance_data->>'out' as out st.instance_data->>'params' as params + st.instance_data->>'vault' as vault (st.instance_data->>'isDeleted')::boolean as is_deleted (st.instance_data->>'isSuspended')::boolean as is_suspended diff --git a/v1/resources/instance_ls.cfc b/v1/resources/instance_ls.cfc index 3bdf6b1..48a17f6 100644 --- a/v1/resources/instance_ls.cfc +++ b/v1/resources/instance_ls.cfc @@ -85,8 +85,8 @@ - - + + @@ -202,7 +202,7 @@ from ( select - + '' as placeholder #preserveSingleQuotes(definedQueryFields)# diff --git a/v1/resources/instance_operation_ls.cfc b/v1/resources/instance_operation_ls.cfc index 1bbd847..3b785ae 100644 --- a/v1/resources/instance_operation_ls.cfc +++ b/v1/resources/instance_operation_ls.cfc @@ -12,11 +12,11 @@ "dt_created"={prefix="o", type="date"}, "dt_updated"={prefix="o", type="date"}, "creator_id"={prefix="o", type="integer"}, - "creator_email"={prefix="c", column="email", type="string"}, - "creator_shortname"={prefix="c", column="shortname", type="string"}, + "creator_email"={prefix="c", expression="email", type="string"}, + "creator_shortname"={prefix="c", expression="shortname", type="string"}, "updater_id"={prefix="o", type="integer"}, - "updater_email"={prefix="u", column="email", type="string"}, - "updater_shortname"={prefix="u", column="shortname", type="string"}, + "updater_email"={prefix="u", expression="email", type="string"}, + "updater_shortname"={prefix="u", expression="shortname", type="string"}, "dt_submit"={prefix="o", type="date"}, "submit_result"={prefix="o", type="string"}, "dt_start"={prefix="o", type="date"}, @@ -26,7 +26,8 @@ "contract_id"={prefix="inr", type="integer"}, "display_name"={prefix="e", type="string"}, "service_id"={prefix="e", type="integer"}, - "svc"={prefix="v", type="string"} + "svc"={prefix="v", type="string"}, + "duration"={expression="extract('epoch' from coalesce(o.dt_finish,CURRENT_TIMESTAMP)- o.dt_start)", type="numeric"} } /> diff --git a/v1/resources/svc_ls.cfc b/v1/resources/svc_ls.cfc index 08249ae..7113e4d 100644 --- a/v1/resources/svc_ls.cfc +++ b/v1/resources/svc_ls.cfc @@ -65,8 +65,8 @@ - - + +