From 2e804ae01bb3d2bc77e843e95bd3f4dd0cc007bb Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Wed, 4 Feb 2026 15:05:53 -0500 Subject: [PATCH] fix(idaa): resolve type mismatches in delete methods and liveQuery results - Updated 'method' parameter types in IDAA edit components to match the expected union types in the V3 API helpers. - Applied type casting to 'liveQuery' results in the Archives page to ensure 'topic_name' and other convenience fields are recognized by the compiler. - Fixed casting for 'method' variable in delete operations across Archives, Bulletin Board, and Recovery Meetings. --- src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte | 2 +- .../ae_idaa_comp__archive_content_obj_id_edit.svelte | 4 ++-- .../[archive_id]/ae_idaa_comp__archive_obj_id_edit.svelte | 2 +- .../idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte | 2 +- .../recovery_meetings/ae_idaa_comp__event_obj_id_edit.svelte | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte index 507ba719..566b5aab 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte @@ -85,7 +85,7 @@ } } - return results; + return results as Archive; }) ); diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte index b9b9e3dc..eb00bba5 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte @@ -1038,7 +1038,7 @@ archives_func.delete_ae_obj_id__archive_content({ api_cfg: $ae_api, archive_content_id: $idaa_slct.archive_content_id, - method: method, + method: method as any, log_lvl: log_lvl }); @@ -1075,7 +1075,7 @@ archives_func.delete_ae_obj_id__archive_content({ api_cfg: $ae_api, archive_content_id: $idaa_slct.archive_content_id, - method: method, + method: method as any, log_lvl: log_lvl }); diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_obj_id_edit.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_obj_id_edit.svelte index da1a6530..404036d7 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_obj_id_edit.svelte +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_obj_id_edit.svelte @@ -260,7 +260,7 @@ method = 'disable' }: { archive_id: string; - method?: string; + method?: 'delete' | 'soft_delete' | 'disable' | 'hide'; }) { if (log_lvl) { console.log('*** handle_delete_archive_obj() ***'); diff --git a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte index d6140684..9ee6d806 100644 --- a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte +++ b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte @@ -259,7 +259,7 @@ .delete_ae_obj_id__post({ api_cfg: $ae_api, post_id: post_id, - method: method, + method: method as any, log_lvl: log_lvl }) .then(function (post_obj_delete_result) { diff --git a/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_id_edit.svelte b/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_id_edit.svelte index a8ab1b5a..7def517c 100644 --- a/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_id_edit.svelte +++ b/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_id_edit.svelte @@ -708,7 +708,7 @@ .delete_ae_obj_id__event({ api_cfg: $ae_api, event_id: event_id, - method: method, + method: method as any, log_lvl: log_lvl }) .then(function (event_obj_delete_result) {