mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Address greptile comments
This commit is contained in:
@@ -8,7 +8,7 @@ export const AzureKeyVaultPkiSyncDestinationSchema = BasePkiSyncSchema().merge(
|
||||
z.object({
|
||||
destination: z.literal(PkiSync.AzureKeyVault),
|
||||
destinationConfig: z.object({
|
||||
vaultBaseUrl: z.string().url("Valid URL is required")
|
||||
vaultBaseUrl: z.string().min(1, "Vault base URL is required").url("Valid URL is required")
|
||||
})
|
||||
})
|
||||
);
|
||||
@@ -24,7 +24,10 @@ export const UpdateAzureKeyVaultPkiSyncDestinationSchema =
|
||||
destination: z.literal(PkiSync.AzureKeyVault),
|
||||
connection: z.object({
|
||||
id: z.string().uuid("Invalid connection ID format"),
|
||||
name: z.string().max(255, "Connection name must be less than 255 characters")
|
||||
name: z
|
||||
.string()
|
||||
.min(1, "Connection name is required")
|
||||
.max(255, "Connection name must be less than 255 characters")
|
||||
})
|
||||
})
|
||||
);
|
||||
|
||||
@@ -22,7 +22,7 @@ export type TListPkiSyncs = { pkiSyncs: TPkiSync[] };
|
||||
|
||||
export type TListPkiSyncOptions = { pkiSyncOptions: TPkiSyncOption[] };
|
||||
|
||||
export type TCreatePkiSyncDTO = {
|
||||
type TCreatePkiSyncDTOBase = {
|
||||
name: string;
|
||||
description?: string;
|
||||
connectionId: string;
|
||||
@@ -32,11 +32,17 @@ export type TCreatePkiSyncDTO = {
|
||||
certificateNamePrefix?: string;
|
||||
certificateNameSchema?: string;
|
||||
};
|
||||
destination: PkiSync;
|
||||
isAutoSyncEnabled: boolean;
|
||||
subscriberId?: string;
|
||||
projectId: string;
|
||||
destinationConfig: Record<string, any>;
|
||||
};
|
||||
|
||||
export type TCreatePkiSyncDTO = TCreatePkiSyncDTOBase & {
|
||||
destination: PkiSync;
|
||||
destinationConfig: {
|
||||
vaultBaseUrl?: string;
|
||||
region?: string;
|
||||
};
|
||||
};
|
||||
|
||||
export type TUpdatePkiSyncDTO = Partial<Omit<TCreatePkiSyncDTO, "projectId">> & {
|
||||
|
||||
Reference in New Issue
Block a user