using FastEndpoints; namespace IceImportSL.Parameters.Import; // Login travels as a header (not body) — same convention as UploadImportFileParameters in this // same folder, and every other GB5 endpoint: a header literally named "Login" carrying a // JSON-stringified LoginDTO; BaseEndpoint's GetLoginDTOFromRequest handles that transparently. // IceMapId/UploadToken are plain (un-attributed) properties, so FastEndpoints binds them from the // JSON request body. public record CommitImportParameters( [property: FromHeader] string Login, int IceMapId, // Opaque, DataProtection-signed token returned by UploadImportFile — never a raw storage path // (see GB5Shared.Storage.IStorageProvider's doc comment on storagePath being an internal-only // key, and IIceImportUploadStagingService's doc comment for why this replaced a // TATTACHMENT/AttachmentId design). string UploadToken );