diff --git a/Cli/Helper/Settings.cs b/Cli/Helper/Settings.cs index 961c9a7..5f1ec34 100644 --- a/Cli/Helper/Settings.cs +++ b/Cli/Helper/Settings.cs @@ -19,6 +19,11 @@ namespace FsToolbox.Cli.Helper /// public CredentialsSettings Credentials { get; init; } = new(); + /// + /// Gets settings related to custom tasks. + /// + public CustomTaskSettings CustomTasks { get; init; } = new(); + #endregion } @@ -62,6 +67,36 @@ namespace FsToolbox.Cli.Helper #endregion } + /// + /// Contains configuration for custom task execution. + /// + public class CustomTaskSettings + { + #region Public Properties + + /// + /// Configuration for generating the Rosinen store member report. + /// + public RosinenStoreMemberReportSettings RosinenStoreMemberReport { get; init; } = new(); + + #endregion + } + + /// + /// Contains store IDs used by the Rosinen member report task. + /// + public class RosinenStoreMemberReportSettings + { + #region Public Properties + + /// + /// Store IDs that should be queried for member reports. + /// + public List StoreIds { get; init; } = []; + + #endregion + } + /// /// Provides access to the current application settings loaded from configuration. /// diff --git a/Cli/appsettings.example.json b/Cli/appsettings.example.json index 5977370..8fe5441 100644 --- a/Cli/appsettings.example.json +++ b/Cli/appsettings.example.json @@ -6,5 +6,13 @@ "Email": "demo@example.com", "Password": "demo-password", "TwoFactorEnabled": false + }, + "CustomTasks": { + "RosinenStoreMemberReport": { + "StoreIds": [ + 12345, + 67890 + ] + } } } \ No newline at end of file