feat: rename san to subjectAltNames, workflow to workflowId, nodeId to workflowNodeId, output to workflowOutputId, log to logs, succeed to succeeded

This commit is contained in:
Fu Diwei
2025-01-04 16:29:14 +08:00
parent 9246878d0e
commit ae11d5ee3d
26 changed files with 823 additions and 175 deletions

View File

@@ -1,17 +1,21 @@
import { type WorkflowModel } from "./workflow";
export interface CertificateModel extends BaseModel {
san: string;
source: string;
subjectAltNames: string;
certificate: string;
privateKey: string;
issuerCertificate: string;
certUrl: string;
certStableUrl: string;
output: string;
effectAt: ISO8601String;
expireAt: ISO8601String;
workflow: string;
nodeId: string;
workflowId: string;
expand: {
workflow?: WorkflowModel;
workflowId?: WorkflowModel; // TODO: ugly, maybe to use an alias?
};
}
export const CERTIFICATE_SOURCES = Object.freeze({
WORKFLOW: "workflow",
UPLOAD: "upload",
} as const);
export type CertificateSourceType = (typeof CERTIFICATE_SOURCES)[keyof typeof CERTIFICATE_SOURCES];