feat: Implement repositories for authentication, certificates, metrics, and platform services
- Added AuthRepository for user and settings management with CRUD operations. - Introduced CertificateRepository to handle domains, certificates, and requirements. - Created MetricsRepository for managing metrics and logs. - Developed PlatformRepository for platform services and resources management. - Established RegistryRepository for registry and token operations. - Implemented ServiceRepository for CRUD operations on services. - Defined types and interfaces in types.ts for database interactions.
This commit is contained in:
14
ts/types.ts
14
ts/types.ts
@@ -153,9 +153,9 @@ export interface ICertificate {
|
||||
domainId: number;
|
||||
certDomain: string;
|
||||
isWildcard: boolean;
|
||||
certPath: string;
|
||||
keyPath: string;
|
||||
fullChainPath: string;
|
||||
certPem: string; // Certificate PEM content
|
||||
keyPem: string; // Private key PEM content
|
||||
fullchainPem: string; // Full chain PEM content (cert + intermediates)
|
||||
expiryDate: number;
|
||||
issuer: string;
|
||||
isValid: boolean;
|
||||
@@ -183,13 +183,13 @@ export interface IDomainView {
|
||||
daysRemaining: number | null;
|
||||
}
|
||||
|
||||
// Legacy SSL certificate type (for backward compatibility)
|
||||
// SSL certificate type - stores certificate content directly in database
|
||||
export interface ISslCertificate {
|
||||
id?: number;
|
||||
domain: string;
|
||||
certPath: string;
|
||||
keyPath: string;
|
||||
fullChainPath: string;
|
||||
certPem: string; // Certificate PEM content
|
||||
keyPem: string; // Private key PEM content
|
||||
fullchainPem: string; // Full chain PEM content (cert + intermediates)
|
||||
expiryDate: number;
|
||||
issuer: string;
|
||||
createdAt: number;
|
||||
|
||||
Reference in New Issue
Block a user