Files
Ai/TrafagSalesExporter/Services/ISharePointUploadService.cs
T

12 lines
751 B
C#

namespace TrafagSalesExporter.Services;
public interface ISharePointUploadService
{
Task UploadAsync(string tenantId, string clientId, string clientSecret, string siteUrl, string exportFolder, string land, string localFilePath);
Task<string> DownloadToTempFileAsync(string tenantId, string clientId, string clientSecret, string siteUrl, string fileReference);
Task<SharePointFileReference> ResolveLatestFileInFolderAsync(string tenantId, string clientId, string clientSecret, string siteUrl, string folderReference, string siteTsc);
Task TestConnectionAsync(string tenantId, string clientId, string clientSecret, string siteUrl);
}
public sealed record SharePointFileReference(string FileReference, DateTimeOffset? LastModifiedUtc);