Fix TypeScript build errors
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Sovereign Identity Fabric (SIF) - Root Sovereign Identity Management
|
||||
|
||||
import { hsmService, HSMService } from '@/integration/hsm/hsm.service';
|
||||
import { hsmService } from '@/integration/hsm/hsm.service';
|
||||
import { IdentityType, SovereignIdentity } from '@/shared/types';
|
||||
import prisma from '@/shared/database/prisma';
|
||||
|
||||
@@ -189,12 +189,18 @@ export class SovereignIdentityFabricService {
|
||||
* Get all identities for a sovereign bank
|
||||
*/
|
||||
async getSovereignIdentities(sovereignBankId: string): Promise<SovereignIdentity[]> {
|
||||
return await prisma.sovereignIdentity.findMany({
|
||||
const identities = await prisma.sovereignIdentity.findMany({
|
||||
where: {
|
||||
sovereignBankId,
|
||||
status: 'active',
|
||||
},
|
||||
});
|
||||
return identities.map(identity => ({
|
||||
...identity,
|
||||
identityType: identity.identityType as IdentityType,
|
||||
hsmKeyId: identity.hsmKeyId ?? undefined,
|
||||
certificate: identity.certificate ?? undefined,
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
// Multi-Tenancy System - Sovereign Isolation
|
||||
|
||||
import prisma from '@/shared/database/prisma';
|
||||
|
||||
export class MultitenancyService {
|
||||
/**
|
||||
* Enforce sovereign isolation
|
||||
*/
|
||||
async enforceIsolation(sovereignBankId: string): Promise<void> {
|
||||
async enforceIsolation(_sovereignBankId: string): Promise<void> {
|
||||
// In production, this would enforce database, network, and identity isolation
|
||||
// For now, simplified implementation
|
||||
}
|
||||
@@ -14,7 +12,7 @@ export class MultitenancyService {
|
||||
/**
|
||||
* Check data sovereignty
|
||||
*/
|
||||
async checkDataSovereignty(sovereignBankId: string, dataId: string): Promise<boolean> {
|
||||
async checkDataSovereignty(_sovereignBankId: string, _dataId: string): Promise<boolean> {
|
||||
// In production, this would verify data belongs to sovereign
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import prisma from '@/shared/database/prisma';
|
||||
import { sovereignIdentityFabric } from '@/sovereign/identity/sovereign-identity-fabric.service';
|
||||
import { SOVEREIGN_CODES } from '@/shared/constants';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { IdentityType } from '@/shared/types';
|
||||
|
||||
export class OmnlService {
|
||||
/**
|
||||
@@ -31,22 +31,22 @@ export class OmnlService {
|
||||
// Create tiered identities
|
||||
await sovereignIdentityFabric.createTieredIdentity(
|
||||
omnlBank.id,
|
||||
'Treasury',
|
||||
IdentityType.TREASURY,
|
||||
SOVEREIGN_CODES.OMNL
|
||||
);
|
||||
await sovereignIdentityFabric.createTieredIdentity(
|
||||
omnlBank.id,
|
||||
'CBDC',
|
||||
IdentityType.CBDC,
|
||||
SOVEREIGN_CODES.OMNL
|
||||
);
|
||||
await sovereignIdentityFabric.createTieredIdentity(
|
||||
omnlBank.id,
|
||||
'Settlement',
|
||||
IdentityType.SETTLEMENT,
|
||||
SOVEREIGN_CODES.OMNL
|
||||
);
|
||||
await sovereignIdentityFabric.createTieredIdentity(
|
||||
omnlBank.id,
|
||||
'API',
|
||||
IdentityType.API,
|
||||
SOVEREIGN_CODES.OMNL
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user