refactor: migrate interfaces to dedicated directory

Reorganizes TypeScript interfaces into a modular structure:
- Create dedicated interfaces directory with specialized files
- Split interfaces by domain (claims, common, limits, records, user)
- Update imports in endorserServer.ts to use new interface locations
- Replace 'any' types with 'unknown' for better type safety
- Add proper type imports and exports

This improves code organization and maintainability by:
- Centralizing interface definitions
- Reducing file size of endorserServer.ts
- Making interface relationships more explicit
- Improving type safety with stricter types
This commit is contained in:
Matthew Raymer
2025-02-24 11:21:08 +00:00
parent 90d688dba1
commit 79ef59c5a9
69 changed files with 663 additions and 645 deletions

View File

@@ -40,7 +40,7 @@
<div
class="flex items-center justify-center w-12 bg-slate-600 text-slate-100"
>
<fa icon="circle-info" class="fa-fw fa-xl"></fa>
<font-awesome icon="circle-info" class="fa-fw fa-xl"></font-awesome>
</div>
<div class="relative w-full pl-4 pr-8 py-2 text-slate-900">
@@ -51,7 +51,7 @@
@click="close(notification.id)"
class="absolute top-2 right-2 px-0.5 py-0 rounded-full bg-slate-200 text-slate-600"
>
<fa icon="xmark" class="fa-fw"></fa>
<font-awesome icon="xmark" class="fa-fw"></font-awesome>
</button>
</div>
</div>
@@ -63,7 +63,7 @@
<div
class="flex items-center justify-center w-12 bg-emerald-600 text-emerald-100"
>
<fa icon="circle-info" class="fa-fw fa-xl"></fa>
<font-awesome icon="circle-info" class="fa-fw fa-xl"></font-awesome>
</div>
<div class="relative w-full pl-4 pr-8 py-2 text-emerald-900">
@@ -74,7 +74,7 @@
@click="close(notification.id)"
class="absolute top-2 right-2 px-0.5 py-0 rounded-full bg-emerald-200 text-emerald-600"
>
<fa icon="xmark" class="fa-fw"></fa>
<font-awesome icon="xmark" class="fa-fw"></font-awesome>
</button>
</div>
</div>
@@ -86,7 +86,7 @@
<div
class="flex items-center justify-center w-12 bg-amber-600 text-amber-100"
>
<fa icon="triangle-exclamation" class="fa-fw fa-xl"></fa>
<font-awesome icon="triangle-exclamation" class="fa-fw fa-xl"></font-awesome>
</div>
<div class="relative w-full pl-4 pr-8 py-2 text-amber-900">
@@ -97,7 +97,7 @@
@click="close(notification.id)"
class="absolute top-2 right-2 px-0.5 py-0 rounded-full bg-amber-200 text-amber-600"
>
<fa icon="xmark" class="fa-fw"></fa>
<font-awesome icon="xmark" class="fa-fw"></font-awesome>
</button>
</div>
</div>
@@ -109,7 +109,7 @@
<div
class="flex items-center justify-center w-12 bg-rose-600 text-rose-100"
>
<fa icon="triangle-exclamation" class="fa-fw fa-xl"></fa>
<font-awesome icon="triangle-exclamation" class="fa-fw fa-xl"></font-awesome>
</div>
<div class="relative w-full pl-4 pr-8 py-2 text-rose-900">
@@ -120,7 +120,7 @@
@click="close(notification.id)"
class="absolute top-2 right-2 px-0.5 py-0 rounded-full bg-rose-200 text-rose-600"
>
<fa icon="xmark" class="fa-fw"></fa>
<font-awesome icon="xmark" class="fa-fw"></font-awesome>
</button>
</div>
</div>