using GB5Shared.DTO.Framework.Login; namespace IceImportSL.Parameters.FtpSource; // POST + body, same "Login as a body property" convention as CommitImportParameters. Mirrors // MICEMAPFTPSOURCE's columns 1:1 (see DB/Migrations/20260708_IceImport_Phase0_Schema.sql) — the // *VaultRef fields are mount-relative Vault KV-v2 paths only, never plaintext secrets, so this // endpoint's request body is safe to log if ever needed for support/debugging. public class SaveIceMapFtpSourceParameters { public LoginDTO? Login { get; set; } public int IceMapId { get; set; } // ConnectionType: 0=FTP, 1=SFTP public byte ConnectionType { get; set; } public string HostVaultRef { get; set; } = string.Empty; public string UsernameVaultRef { get; set; } = string.Empty; public string CredentialVaultRef { get; set; } = string.Empty; public string RemoteFolderPath { get; set; } = string.Empty; public string FileNamePattern { get; set; } = string.Empty; // PostProcessAction: 0=None, 1=Delete, 2=Archive public byte PostProcessAction { get; set; } public string? ArchiveFolderPath { get; set; } }