From f88ca57d9793f12181d1c74a3d51e586676cf351 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 9 Apr 2026 00:25:21 +0000 Subject: [PATCH] Migrate existing ts types from the API into the API module This makes it possible to start hydrating the types into valid data types like Dates which means I can get type safety guarantees when displaying information. --- ts/AppSync.vue | 2 +- ts/components/Avatar.vue | 2 +- ts/components/CommunicationColumnAction.vue | 12 +- ts/components/CommunicationColumnDetail.vue | 3 +- ts/components/CommunicationColumnList.vue | 6 +- ts/components/ImageViewerModal.vue | 2 +- ts/components/MapAggregate.vue | 2 +- ts/components/PlanningColumnDetail.vue | 4 +- ts/components/PlanningColumnDetailEntry.vue | 2 +- ts/components/PlanningColumnList.vue | 2 +- ts/components/PlanningColumnListEntry.vue | 2 +- ts/components/PublicreportCard.vue | 4 +- ts/components/ReviewPoolColumnAction.vue | 3 +- ts/components/ReviewPoolColumnDetail.vue | 11 +- ts/components/ReviewPoolColumnList.vue | 2 +- ts/components/TimeRelative.vue | 5 +- ts/components/UserSelector.vue | 2 +- ts/components/layout/Sidebar.vue | 2 +- ts/components/sudo/UserImpersonation.vue | 2 +- ts/rmo/content/Nuisance.vue | 10 +- ts/rmo/store/district.ts | 2 + ts/rmo/view/ReportSubmitted.vue | 10 +- ts/rmo/view/StatusByID.vue | 16 +- ts/store/communication.ts | 8 +- ts/store/publicreport.ts | 16 +- ts/store/review-task.ts | 2 +- ts/store/session.ts | 2 +- ts/store/signal.ts | 2 +- ts/store/upload.ts | 2 +- ts/store/user.ts | 2 +- ts/type/api.ts | 309 +++++++++++++++++++- ts/types.ts | 224 +------------- ts/view/Communication.vue | 3 +- ts/view/Planning.vue | 4 +- ts/view/configuration/Upload.vue | 2 +- ts/view/configuration/UploadDetail.vue | 2 +- ts/view/configuration/User.vue | 2 +- ts/view/configuration/UserEdit.vue | 2 +- ts/view/review/Pool.vue | 12 +- 39 files changed, 382 insertions(+), 320 deletions(-) diff --git a/ts/AppSync.vue b/ts/AppSync.vue index fa877d66..a1c49121 100644 --- a/ts/AppSync.vue +++ b/ts/AppSync.vue @@ -12,7 +12,7 @@