#region ========================================================================= USING =====================================================================================
using Lumina.Domain.Common.Primitives;
using System;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Application.Common.DataAccess.Seed;
///
/// Interface for the service for seeding initial data in the persistence medium.
///
public interface IDataSeedService
{
///
/// Sets up default authorization permissions in the system.
///
/// The unique identifier of the admin admin user who will own these permissions.
/// Cancellation token that can be used to stop the execution.
/// An representing either a successful operation, or an error.
Task> SetDefaultAuthorizationPermissionsAsync(Guid adminId, CancellationToken cancellationToken);
///
/// Sets up default authorization roles in the system.
///
/// The unique identifier of the admin user for whom roles will be set.
/// Cancellation token that can be used to stop the execution.
/// An representing either a successful operation, or an error.
Task> SetDefaultAuthorizationRolesAsync(Guid userId, CancellationToken cancellationToken);
///
/// Assigns admin role permissions to the admin user.
///
/// The unique identifier of the admin user to receive admin role permissions.
/// Cancellation token that can be used to stop the execution.
/// An representing either a successful operation, or an error.
Task> SetAdminRolePermissionsAsync(Guid userId, CancellationToken cancellationToken);
///
/// Assigns admin role to the admin user.
///
/// The unique identifier of the admin user to receive the admin role.
/// Cancellation token that can be used to stop the execution.
/// An representing either a successful operation, or an error.
Task> SetAdminRoleToAdministratorAccount(Guid userId, CancellationToken cancellationToken);
}