using Nop.Core; using Nop.Core.Domain.Customers; using Nop.Core.Domain.Logging; namespace Nop.Services.Logging; /// /// Customer activity service interface /// public partial interface ICustomerActivityService { /// /// Updates an activity log type item /// /// Activity log type item /// A task that represents the asynchronous operation Task UpdateActivityTypeAsync(ActivityLogType activityLogType); /// /// Gets all activity log type items /// /// /// A task that represents the asynchronous operation /// The task result contains the activity log type items /// Task> GetAllActivityTypesAsync(); /// /// Gets an activity log type item /// /// Activity log type identifier /// /// A task that represents the asynchronous operation /// The task result contains the activity log type item /// Task GetActivityTypeByIdAsync(int activityLogTypeId); /// /// Inserts an activity log item /// /// System keyword /// Comment /// Entity /// /// A task that represents the asynchronous operation /// The task result contains the activity log item /// Task InsertActivityAsync(string systemKeyword, string comment, BaseEntity entity = null); /// /// Inserts an activity log item /// /// Customer /// System keyword /// Comment /// Entity /// /// A task that represents the asynchronous operation /// The task result contains the activity log item /// Task InsertActivityAsync(Customer customer, string systemKeyword, string comment, BaseEntity entity = null); /// /// Deletes an activity log item /// /// Activity log /// A task that represents the asynchronous operation Task DeleteActivityAsync(ActivityLog activityLog); /// /// Gets all activity log items /// /// Log item creation from; pass null to load all records /// Log item creation to; pass null to load all records /// Customer identifier; pass null to load all records /// Activity log type identifier; pass null to load all records /// IP address; pass null or empty to load all records /// Entity name; pass null to load all records /// Entity identifier; pass null to load all records /// Page index /// Page size /// /// A task that represents the asynchronous operation /// The task result contains the activity log items /// Task> GetAllActivitiesAsync(DateTime? createdOnFrom = null, DateTime? createdOnTo = null, int? customerId = null, int? activityLogTypeId = null, string ipAddress = null, string entityName = null, int? entityId = null, int pageIndex = 0, int pageSize = int.MaxValue); /// /// Gets an activity log item /// /// Activity log identifier /// /// A task that represents the asynchronous operation /// The task result contains the activity log item /// Task GetActivityByIdAsync(int activityLogId); /// /// Clears activity log /// /// A task that represents the asynchronous operation Task ClearAllActivitiesAsync(); }