using System; using System.Collections.Generic; using System.Threading.Tasks; using AyaNova.Models; using Newtonsoft.Json.Linq; namespace AyaNova.Biz { /// /// Interface for biz objects that support importing AyaNova 7 data /// internal interface IImportAyaNova7Object { /// /// Import from the JSON data provided /// /// Json object containing source record /// A collection that can be used to match import records to new records, NOT persistent between imports /// JobId for logging or controlling jobs from within processor /// All the items imported to lists of tags with matching id for attribution / tagging imported object /// True if imported, False if not imported due to invalid or other error (logged in job log) Task ImportV7Async(JObject v7ImportData, List importMap, Guid JobId, Dictionary> tagLists); /// /// If true, relaxes validation rules so that incomplete data can be imported /// bool SeedOrImportRelaxedRulesMode { get; set; } } }