diff --git a/source/backend/api/Areas/Documents/SearchController.cs b/source/backend/api/Areas/Documents/SearchController.cs index 914d7b8e69..ba26be7d62 100644 --- a/source/backend/api/Areas/Documents/SearchController.cs +++ b/source/backend/api/Areas/Documents/SearchController.cs @@ -13,6 +13,7 @@ using Pims.Core.Extensions; using Pims.Core.Json; using Pims.Core.Security; +using Pims.Dal.Entities; using Swashbuckle.AspNetCore.Annotations; namespace Pims.Api.Areas.Documents @@ -29,12 +30,14 @@ namespace Pims.Api.Areas.Documents public class SearchController : ControllerBase { private readonly IDocumentService _documentService; + private readonly IPropertyService _propertyService; private readonly IMapper _mapper; private readonly ILogger _logger; - public SearchController(IDocumentService documentService, IMapper mapper, ILogger logger) + public SearchController(IDocumentService documentService, IPropertyService propertyService, IMapper mapper, ILogger logger) { _documentService = documentService; + _propertyService = propertyService; _mapper = mapper; _logger = logger; } @@ -70,7 +73,36 @@ public IActionResult GetDocuments([FromQuery] DocumentSearchFilterModel filter) _logger.LogInformation("Dispatching to service: {Service}", _documentService.GetType()); var documents = _documentService.GetPage(filter); + // Transform all properties to lat/long for returned documents that have properties, this is required for the front end to properly display the property locations. + foreach (var document in documents.Items) + { + var propertyDocuments = document.PimsPropertyDocuments ?? new List(); + document.PimsPropertyDocuments = TransformAllPropertiesToLatLong(propertyDocuments); + } + return new JsonResult(_mapper.Map>(documents)); } + + /// + /// Returns the spatial location and boundary polygons in lat/long (4326) for a list of document properties. + /// The spatial values will be modified in-place. + /// + /// The document properties to re-project. + /// The document properties with transformed spatial locations. + private ICollection TransformAllPropertiesToLatLong(ICollection propertyDocuments) + { + if (propertyDocuments == null) + { + return propertyDocuments; + } + + foreach (var propertyDocument in propertyDocuments) + { + propertyDocument.Property = _propertyService.TransformPropertyToLatLong(propertyDocument.Property); + } + + return propertyDocuments; + } + } } diff --git a/source/backend/api/Areas/Reports/Controllers/ManagementActivityController.cs b/source/backend/api/Areas/Reports/Controllers/ManagementActivityController.cs index 920f2328e5..c1abc8b3f1 100644 --- a/source/backend/api/Areas/Reports/Controllers/ManagementActivityController.cs +++ b/source/backend/api/Areas/Reports/Controllers/ManagementActivityController.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; @@ -13,6 +14,7 @@ using Pims.Core.Api.Policies; using Pims.Core.Extensions; using Pims.Core.Security; +using Pims.Dal.Entities; using Pims.Dal.Entities.Models; using Swashbuckle.AspNetCore.Annotations; @@ -30,11 +32,13 @@ namespace Pims.Api.Areas.Reports.Controllers public class ManagementActivityController : ControllerBase { private readonly IManagementActivityService _managementActivityService; + private readonly IPropertyService _propertyService; private readonly ILogger _logger; - public ManagementActivityController(IManagementActivityService managementActivityService, ILogger logger) + public ManagementActivityController(IManagementActivityService managementActivityService, IPropertyService propertyService, ILogger logger) { _managementActivityService = managementActivityService; + _propertyService = propertyService; _logger = logger; } @@ -78,6 +82,13 @@ public IActionResult ExportManagementActivitiesOverview([FromBody] ManagementAct return NoContent(); } + // Transform all properties to lat/long for returned activities that have properties, this is required for the front end to properly display the property locations. + foreach (var activity in allManagementActivities) + { + var activityProperties = activity.PimsManagementActivityProperties ?? new List(); + activity.PimsManagementActivityProperties = TransformAllPropertiesToLatLong(activityProperties); + } + var reportActivities = allManagementActivities.Select(a => new ManagementActivityOverviewReportModel(a)); return ReportHelper.GenerateExcel(reportActivities, "Management Activities Overview"); @@ -123,9 +134,38 @@ public IActionResult ExportManagementActivityInvoices([FromBody] ManagementActiv return NoContent(); } + // Transform all properties to lat/long for returned invoices that have properties, this is required for the front end to properly display the property locations. + foreach (var invoice in allInvoices) + { + var activityProperties = invoice.ManagementActivity.PimsManagementActivityProperties ?? new List(); + invoice.ManagementActivity.PimsManagementActivityProperties = TransformAllPropertiesToLatLong(activityProperties); + } + var reportInvoices = allInvoices.Select(i => new ManagementActivityInvoicesReportModel(i)); return ReportHelper.GenerateExcel(reportInvoices, "Management Activity Invoices"); } + + /// + /// Returns the spatial location and boundary polygons in lat/long (4326) for a list of activity properties. + /// The spatial values will be modified in-place. + /// + /// The activity properties to re-project. + /// The activity properties with transformed spatial locations. + private ICollection TransformAllPropertiesToLatLong(ICollection activityProperties) + { + if (activityProperties == null) + { + return activityProperties; + } + + foreach (var activityProperty in activityProperties) + { + activityProperty.Property = _propertyService.TransformPropertyToLatLong(activityProperty.Property); + } + + return activityProperties; + } + } } diff --git a/source/backend/api/Areas/Reports/Controllers/PropertyController.cs b/source/backend/api/Areas/Reports/Controllers/PropertyController.cs index 43c39f1174..44848455d2 100644 --- a/source/backend/api/Areas/Reports/Controllers/PropertyController.cs +++ b/source/backend/api/Areas/Reports/Controllers/PropertyController.cs @@ -7,6 +7,7 @@ using Pims.Api.Helpers.Extensions; using Pims.Api.Helpers.Reporting; using Pims.Api.Models.Base; +using Pims.Api.Services; using Pims.Core.Api.Exceptions; using Pims.Core.Api.Policies; using Pims.Core.Security; @@ -29,6 +30,8 @@ public class PropertyController : ControllerBase { #region Variables private readonly IPropertyRepository _propertyRepository; + private readonly IPropertyService _propertyService; + private readonly IMapper _mapper; #endregion @@ -38,10 +41,12 @@ public class PropertyController : ControllerBase /// Creates a new instance of a ReportController class, initializes it with the specified arguments. /// /// + /// /// - public PropertyController(IPropertyRepository propertyRepository, IMapper mapper) + public PropertyController(IPropertyRepository propertyRepository, IPropertyService propertyService, IMapper mapper) { _propertyRepository = propertyRepository; + _propertyService = propertyService; _mapper = mapper; } #endregion @@ -98,6 +103,13 @@ public IActionResult ExportProperties([FromBody] Property.Models.Search.Property filter.Quantity = all ? _propertyRepository.Count() : filter.Quantity; var page = _propertyRepository.GetPage((PropertyFilter)filter); + + // Transform all properties to lat/long for returned invoices that have properties, this is required for the front end to properly display the property locations. + foreach (var propertyVw in page.Items) + { + _propertyService.TransformPropertyVwToLatLong(propertyVw); + } + var report = _mapper.Map>(page); return acceptHeader.ToString() switch diff --git a/source/backend/api/Areas/Reports/Mapping/Lease/LeaseMap.cs b/source/backend/api/Areas/Reports/Mapping/Lease/LeaseMap.cs index a9b6833601..58a6b66d19 100644 --- a/source/backend/api/Areas/Reports/Mapping/Lease/LeaseMap.cs +++ b/source/backend/api/Areas/Reports/Mapping/Lease/LeaseMap.cs @@ -32,8 +32,8 @@ private static void MapLease((Entity.PimsLeasePeriod period, Entity.PimsLease le dest.AgreementCommencementDate = src.lease.OrigStartDate?.FilterSqlMinDate().ToNullableDateOnly(); dest.AgreementExpiryDate = src.lease.OrigExpiryDate?.FilterSqlMinDate().ToNullableDateOnly(); dest.LeaseAmount = src.period?.PaymentAmount; - dest.Pid = src.property?.Property?.Pid; - dest.Pin = src.property?.Property?.Pin; + dest.Pid = src.property?.Property?.PidFormatted ?? string.Empty; + dest.Pin = src.property?.Property?.Pin.ToString() ?? string.Empty; dest.TenantName = src.stakeholder?.GetStakeholderName(); } } diff --git a/source/backend/api/Areas/Reports/Mapping/Property/PropertyMap.cs b/source/backend/api/Areas/Reports/Mapping/Property/PropertyMap.cs index b8982af807..b1188104e5 100644 --- a/source/backend/api/Areas/Reports/Mapping/Property/PropertyMap.cs +++ b/source/backend/api/Areas/Reports/Mapping/Property/PropertyMap.cs @@ -1,4 +1,5 @@ using Mapster; +using Pims.Core.Helpers; using Entity = Pims.Dal.Entities; using Model = Pims.Api.Areas.Reports.Models.Property; @@ -16,7 +17,7 @@ public void Register(TypeAdapterConfig config) .Map(dest => dest.Latitude, src => src.Location.Coordinate.Y) .Map(dest => dest.Longitude, src => src.Location.Coordinate.X) - .Map(dest => dest.PID, src => src.ParcelIdentity) + .Map(dest => dest.PID, src => src.PidFormatted) .Map(dest => dest.PIN, src => src.Pin) .Map(dest => dest.LandArea, src => src.LandArea) .Map(dest => dest.LandLegalDescription, src => src.LandLegalDescription); @@ -29,7 +30,7 @@ public void Register(TypeAdapterConfig config) .Map(dest => dest.Latitude, src => src.Location.Coordinate.Y) .Map(dest => dest.Longitude, src => src.Location.Coordinate.X) - .Map(dest => dest.PID, src => src.PidPadded) + .Map(dest => dest.PID, src => src.PidPadded != null ? PidTranslator.ConvertPIDToDash(src.PidPadded) : string.Empty) .Map(dest => dest.PIN, src => src.Pin) .Map(dest => dest.LandArea, src => src.LandArea) .Map(dest => dest.LandLegalDescription, src => src.LandLegalDescription); diff --git a/source/backend/api/Areas/Reports/Models/Lease/LeaseModel.cs b/source/backend/api/Areas/Reports/Models/Lease/LeaseModel.cs index 0e4fa4541b..eaecd29674 100644 --- a/source/backend/api/Areas/Reports/Models/Lease/LeaseModel.cs +++ b/source/backend/api/Areas/Reports/Models/Lease/LeaseModel.cs @@ -31,11 +31,11 @@ public class LeaseModel [DisplayName("PID")] [CsvHelper.Configuration.Attributes.Name("PID")] - public int? Pid { get; set; } + public string Pid { get; set; } [DisplayName("PIN")] [CsvHelper.Configuration.Attributes.Name("PIN")] - public int? Pin { get; set; } + public string Pin { get; set; } [DisplayName("Lease Amount")] [CsvHelper.Configuration.Attributes.Name("Lease Amount")] diff --git a/source/backend/api/Models/Report/LeasePaymentReportModel.cs b/source/backend/api/Models/Report/LeasePaymentReportModel.cs index 60720fb26f..241588c860 100644 --- a/source/backend/api/Models/Report/LeasePaymentReportModel.cs +++ b/source/backend/api/Models/Report/LeasePaymentReportModel.cs @@ -3,7 +3,6 @@ using System.ComponentModel; using System.Linq; using Pims.Api.Services; -using Pims.Core.Helpers; using Pims.Dal.Entities; using Pims.Dal.Helpers.Extensions; @@ -190,8 +189,8 @@ public static LeasePaymentReportModel MapFrom(PimsLeasePayment src) dest.LFileNumber = src.LeasePeriod.Lease?.LFileNo ?? string.Empty; dest.HistoricalFiles = GetHistoricalFileNumbers(src.LeasePeriod.Lease); dest.LeaseStatus = src.LeasePeriod.Lease?.LeaseStatusTypeCodeNavigation?.Description ?? string.Empty; - dest.PropertyList = string.Join(",", leaseProperties.Select(lp => GetFallbackPropertyIdentifier(lp))); - dest.TenantList = string.Join(",", leaseTenants.Select(t => GetStakeholderName(t))); + dest.PropertyList = GetPropertiesAsString(leaseProperties); + dest.TenantList = string.Join("|", leaseTenants.Select(t => GetStakeholderName(t))); dest.PayableOrReceivable = src.LeasePeriod.Lease.LeasePayRvblTypeCodeNavigation?.Description ?? string.Empty; dest.Program = GetLeaseProgramName(src.LeasePeriod.Lease); dest.PeriodStart = src.LeasePeriod.PeriodStartDate.ToString("MMMM dd, yyyy"); @@ -219,6 +218,15 @@ private static string GetLastPaymentDate(PimsLease lease) return lastPayment != null ? lastPayment.PaymentReceivedDate.ToString("MMMM dd, yyyy") : string.Empty; } + private static string GetPropertiesAsString(ICollection leaseProperties) + { + return string.Join("|", leaseProperties + .Where(lp => lp?.Property != null) + .Select(lp => lp.Property.GetPropertyName()) + .Where(s => !string.IsNullOrWhiteSpace(s)) + .Distinct()); + } + private static string GetStakeholderName(PimsLeaseStakeholder stakeholder) { if (stakeholder is null) @@ -258,39 +266,6 @@ private static string GetLeaseProgramName(PimsLease lease) } } - private static string GetFallbackPropertyIdentifier(PimsPropertyLease propertyLease) - { - PimsProperty property = propertyLease?.Property; - if (property?.Pid != null) - { - return PidTranslator.ConvertPIDToDash(property.Pid.ToString()); - } - - if (property?.Pin != null) - { - return property.Pin.ToString(); - } - - if (property?.Address != null && !string.IsNullOrEmpty(property.Address.StreetAddress1)) - { - string[] addressStrings = new string[2] { property.Address.StreetAddress1, property.Address.MunicipalityName }; - return $"({string.Join(" ", addressStrings.Where(s => s != null))})"; - } - - if (!string.IsNullOrEmpty(propertyLease?.Name)) - { - return $"({propertyLease.Name})"; - } - - if (property?.Location != null) - { - return $"({property.Location.Coordinate.X}, {property.Location.Coordinate.Y})"; - } - - // Fallback if no identifier is available. - return "No Property Identifier"; - } - private static string GetHistoricalFileNumbers(PimsLease lease) { var properties = lease.PimsPropertyLeases.Select(pl => pl.Property).Where(p => p != null); diff --git a/source/backend/api/Services/AcquisitionFileService.cs b/source/backend/api/Services/AcquisitionFileService.cs index eb87d6781f..58223d3821 100644 --- a/source/backend/api/Services/AcquisitionFileService.cs +++ b/source/backend/api/Services/AcquisitionFileService.cs @@ -123,7 +123,7 @@ public List GetAcquisitionFileExport(AcquisitionFilt MinistryProject = fileProperty.file.Project is not null ? $"{fileProperty.file.Project.Code} {fileProperty.file.Project.Description}" : string.Empty, CivicAddress = (fileProperty.fp?.Property is not null && fileProperty.fp.Property.Address is not null) ? fileProperty.fp.Property.Address.FormatFullAddressString() : string.Empty, GeneralLocation = (fileProperty.fp?.Property is not null) ? fileProperty.fp.Property.GeneralLocation : string.Empty, - Pid = fileProperty.fp is not null && fileProperty.fp.Property.Pid.HasValue ? fileProperty.fp.Property.Pid.ToString() : string.Empty, + Pid = fileProperty.fp is not null && fileProperty.fp.Property.PidFormatted != null ? fileProperty.fp.Property.PidFormatted : string.Empty, Pin = fileProperty.fp is not null && fileProperty.fp.Property.Pin.HasValue ? fileProperty.fp.Property.Pin.ToString() : string.Empty, AcquisitionFileStatusTypeCode = fileProperty.file.AcquisitionFileStatusTypeCodeNavigation is not null ? fileProperty.file.AcquisitionFileStatusTypeCodeNavigation.Description : string.Empty, FileFunding = fileProperty.file.AcquisitionFundingTypeCodeNavigation is not null ? fileProperty.file.AcquisitionFundingTypeCodeNavigation.Description : string.Empty, diff --git a/source/backend/api/Services/DispositionFileService.cs b/source/backend/api/Services/DispositionFileService.cs index b99e6b6cc5..2d93854072 100644 --- a/source/backend/api/Services/DispositionFileService.cs +++ b/source/backend/api/Services/DispositionFileService.cs @@ -474,7 +474,7 @@ public List GetDispositionFileExport(DispositionFilt MotiRegion = file.RegionCodeNavigation?.Description ?? string.Empty, TeamMembers = string.Join("|", file.PimsDispositionFileTeams.Select(x => (x.PersonId.HasValue ? x.Person.GetFullName(true) + $" ({x.DspFlTeamProfileTypeCodeNavigation?.Description})" : x.Organization.Name + $" (Role: {x.DspFlTeamProfileTypeCodeNavigation?.Description}, Primary: {x.PrimaryContact?.GetFullName(true) ?? "N/A"})")) ?? Array.Empty()), CivicAddress = string.Join("|", file.PimsDispositionFileProperties.Select(x => x.Property?.Address?.FormatFullAddressString()).Where(x => x != null)), - Pid = string.Join("|", file.PimsDispositionFileProperties.Select(x => x.Property?.Pid).Where(x => x != null)), + Pid = string.Join("|", file.PimsDispositionFileProperties.Select(x => x.Property?.PidFormatted).Where(x => x != null)), Pin = string.Join("|", file.PimsDispositionFileProperties.Select(x => x.Property?.Pin).Where(x => x != null)), GeneralLocation = string.Join("|", file.PimsDispositionFileProperties.Select(x => x.Property?.GeneralLocation).Where(x => x != null)), DispositionStatusTypeCode = file.DispositionStatusTypeCodeNavigation?.Description ?? string.Empty, diff --git a/source/backend/api/Services/DocumentService.cs b/source/backend/api/Services/DocumentService.cs index 14017a5650..931acc6ddd 100644 --- a/source/backend/api/Services/DocumentService.cs +++ b/source/backend/api/Services/DocumentService.cs @@ -88,8 +88,7 @@ public DocumentService( IAvService avService, IMapper mapper, IOptionsMonitor options, - IOptionsMonitor mayanOptions, - IDocumentQueueRepository queueRepository) + IOptionsMonitor mayanOptions) : base(user, logger) { this.documentRepository = documentRepository; diff --git a/source/backend/api/Services/IPropertyService.cs b/source/backend/api/Services/IPropertyService.cs index bd37935252..e79c90e363 100644 --- a/source/backend/api/Services/IPropertyService.cs +++ b/source/backend/api/Services/IPropertyService.cs @@ -86,6 +86,14 @@ void UpdateFilePropertyBoundary(T incomingFileProperty, T filePropertyToUpdat /// The property with transformed spatial locations. PimsProperty TransformPropertyToLatLong(PimsProperty property); + /// + /// Returns the spatial location and boundary polygons in lat/long (4326) for a given PimsPropertyVw instance. + /// The spatial values will be modified in-place. + /// + /// The property to re-project. + /// The property with transformed spatial locations. + PimsPropertyVw TransformPropertyVwToLatLong(PimsPropertyVw propertyVw); + /// /// Returns the spatial location and boundary polygons in lat/long (4326) for a list of file properties. /// The spatial values will be modified in-place. diff --git a/source/backend/api/Services/LeaseService.cs b/source/backend/api/Services/LeaseService.cs index 9de85968f6..82c3bc8dbb 100644 --- a/source/backend/api/Services/LeaseService.cs +++ b/source/backend/api/Services/LeaseService.cs @@ -104,6 +104,14 @@ public IEnumerable GetAllByIds(IEnumerable leaseIds) long? contractorPersonId = pimsUser.IsContractor ? pimsUser.PersonId : null; var leases = _leaseRepository.GetAllByIds(leaseIds, pimsUser.PimsRegionUsers.Select(u => u.RegionCode).ToHashSet(), contractorPersonId).ToList(); + + // Ensure we return property information with lat/long coordinates for any properties associated to the returned leases. + foreach (var lease in leases) + { + var propertyLeases = lease.PimsPropertyLeases ?? new List(); + lease.PimsPropertyLeases = _propertyService.TransformAllPropertiesToLatLong(propertyLeases.ToList()); + } + return leases; } @@ -540,7 +548,7 @@ private static void ValidateRenewalDates(PimsLease lease, PimsLease currentLease if (renewal.IsExercised == true) { - if(!renewal.CommencementDt.HasValue) + if (!renewal.CommencementDt.HasValue) { throw new BusinessRuleViolationException("Exercised renewals must have a commencement date"); } diff --git a/source/backend/api/Services/PropertyService.cs b/source/backend/api/Services/PropertyService.cs index 7134e024fd..11dd4fca97 100644 --- a/source/backend/api/Services/PropertyService.cs +++ b/source/backend/api/Services/PropertyService.cs @@ -615,6 +615,24 @@ public PimsProperty TransformPropertyToLatLong(PimsProperty property) return property; } + /// + public PimsPropertyVw TransformPropertyVwToLatLong(PimsPropertyVw propertyVw) + { + // transform property location (map pin) + if (propertyVw?.Location != null) + { + propertyVw.Location = TransformCoordinates(propertyVw.Location); + } + + // transform property boundary in-place (polygon/multipolygon) + if (propertyVw?.Geometry != null) + { + _coordinateService.TransformGeometry(SpatialReference.BCALBERS, SpatialReference.WGS84, propertyVw.Geometry); + } + + return propertyVw; + } + private static void PropertyHasActiveLease(IEnumerable propertyLeases, out bool hasActiveLease, out bool hasActiveExpiryDate) { hasActiveLease = false; diff --git a/source/backend/apimodels/Models/Concepts/Document/DocumentRelationshipMap.cs b/source/backend/apimodels/Models/Concepts/Document/DocumentRelationshipMap.cs index ae7a6e6550..e93b3482fe 100644 --- a/source/backend/apimodels/Models/Concepts/Document/DocumentRelationshipMap.cs +++ b/source/backend/apimodels/Models/Concepts/Document/DocumentRelationshipMap.cs @@ -1,8 +1,8 @@ using Mapster; using Pims.Api.Models.Base; using Pims.Api.Models.CodeTypes; -using Entity = Pims.Dal.Entities; using Pims.Dal.Helpers.Extensions; +using Entity = Pims.Dal.Entities; namespace Pims.Api.Models.Concepts.Document.Document { diff --git a/source/backend/entities/Extensions/PropertyExtensions.cs b/source/backend/entities/Extensions/PropertyExtensions.cs index cbe609c5aa..d94b0fe15c 100644 --- a/source/backend/entities/Extensions/PropertyExtensions.cs +++ b/source/backend/entities/Extensions/PropertyExtensions.cs @@ -1,5 +1,7 @@ using System.Collections.Generic; using System.Linq; +using NetTopologySuite.Geometries; +using Pims.Core.Helpers; using Pims.Dal.Entities; namespace Pims.Dal.Helpers.Extensions @@ -35,26 +37,92 @@ public static string GetPropertyName(this PimsProperty property) return string.Empty; } - if (property.Pid.HasValue && property?.Pid.Value.ToString().Length > 0 && property?.Pid != '0') + return new PropertyIdentifiers(property).GetAsString(); + } + + public static string GetPropertyName(this IFilePropertyEntity fileProperty) + { + if (fileProperty == null) + { + return string.Empty; + } + + return new PropertyIdentifiers(fileProperty).GetAsString(); + } + } + + // Helper class to aggregate property identifiers into a single object. + public class PropertyIdentifiers + { + public string Pid { get; set; } + + public string Pin { get; set; } + + public string SurveyPlanNumber { get; set; } + + public Geometry Location { get; set; } + + public PimsAddress Address { get; set; } + + public string DisplayName { get; set; } + + public PropertyIdentifiers() + { + } + + public PropertyIdentifiers(PimsProperty property) + { + Pid = property?.Pid != null ? property.Pid.ToString() : null; + Pin = property?.Pin != null ? property.Pin.ToString() : null; + SurveyPlanNumber = !string.IsNullOrEmpty(property?.SurveyPlanNumber) ? property?.SurveyPlanNumber : null; + Location = property?.Location; + Address = property?.Address; + } + + public PropertyIdentifiers(IFilePropertyEntity fileProperty) + : this(fileProperty?.Property) + { + DisplayName = fileProperty?.PropertyName; + } + + public string GetAsString() + { + if (!string.IsNullOrEmpty(Pid)) { - return $"{property.Pid:000-000-000}"; + return PidTranslator.ConvertPIDToDash(Pid); } - else if (property.Pin.HasValue && property?.Pin.Value.ToString()?.Length > 0 && property?.Pin != '0') + + if (!string.IsNullOrEmpty(Pin)) { - return property.Pin.ToString(); + return Pin; } - else if (property?.SurveyPlanNumber != null && property?.SurveyPlanNumber.Length > 0) + + if (Address is not null) { - return property.SurveyPlanNumber; + return Address.FormatFullAddressString(); } - else if (property?.Location != null) + + if (!string.IsNullOrEmpty(SurveyPlanNumber)) { - return $"{property.Location.Coordinate.X}, {property.Location.Coordinate.Y}"; + return SurveyPlanNumber; } - else if (property?.Address != null) + + if (!string.IsNullOrEmpty(DisplayName)) { - return property.Address.FormatAddress(); + return DisplayName; } + + if (Location is not null) + { + var latitude = Location.Coordinate?.Y; + var longitude = Location.Coordinate?.X; + if (latitude is not null && longitude is not null) + { + return $"({latitude}, {longitude})"; + } + } + + // Fallback return string.Empty; } } diff --git a/source/backend/entities/Partials/Property.cs b/source/backend/entities/Partials/Property.cs index 6e86c90a00..a1ac4b85e0 100644 --- a/source/backend/entities/Partials/Property.cs +++ b/source/backend/entities/Partials/Property.cs @@ -3,6 +3,7 @@ using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using NetTopologySuite.Geometries; +using Pims.Core.Helpers; namespace Pims.Dal.Entities { @@ -19,9 +20,9 @@ public partial class PimsProperty : StandardIdentityBaseAppEntity, IBaseAp /// get - The friendly formated Parcel Id. /// [NotMapped] - public string ParcelIdentity + public string PidFormatted { - get { return this.Pid > 0 ? $"{this.Pid:000-000-000}" : null; } + get { return this.Pid != null ? PidTranslator.ConvertPIDToDash(this.Pid.ToString()) : null; } } public ICollection GetOrganizations() => PimsPropertyOrganizations?.Select(o => o.Organization).ToArray(); diff --git a/source/backend/entities/Partials/PropertyLease.cs b/source/backend/entities/Partials/PropertyLease.cs index d6b3c643ef..341797994a 100644 --- a/source/backend/entities/Partials/PropertyLease.cs +++ b/source/backend/entities/Partials/PropertyLease.cs @@ -11,6 +11,9 @@ public partial class PimsPropertyLease : StandardIdentityBaseAppEntity, IB #region Properties [NotMapped] public override long Internal_Id { get => this.PropertyLeaseId; set => this.PropertyLeaseId = value; } + + [NotMapped] + public string PropertyName { get => this.Name; set => this.Name = value; } #endregion #region Constructors diff --git a/source/backend/entities/Partials/base/IFilePropertyEntity.cs b/source/backend/entities/Partials/base/IFilePropertyEntity.cs index 5dcefccac5..d7e394ef5e 100644 --- a/source/backend/entities/Partials/base/IFilePropertyEntity.cs +++ b/source/backend/entities/Partials/base/IFilePropertyEntity.cs @@ -17,6 +17,11 @@ public interface IFilePropertyEntity /// long PropertyId { get; set; } + /// + /// Descriptive reference for the property associated with the file. + /// + public string PropertyName { get; set; } + /// /// Geo-spatial location (pin) of property. /// diff --git a/source/backend/tests/api/Controllers/Reports/LeaseControllerTest.cs b/source/backend/tests/api/Controllers/Reports/LeaseControllerTest.cs index 23c0ac2849..4eb78d4d5a 100644 --- a/source/backend/tests/api/Controllers/Reports/LeaseControllerTest.cs +++ b/source/backend/tests/api/Controllers/Reports/LeaseControllerTest.cs @@ -295,8 +295,8 @@ public void ExportLeases_LeaseProperty_Mapping() // Assert this._leaseService.Verify(m => m.GetPage(It.IsAny(), false), Times.Once()); - result.Pid.Should().Be(1); - result.Pin.Should().Be(2); + result.Pid.Should().Be("000-000-001"); + result.Pin.Should().Be("2"); } [Fact] diff --git a/source/backend/tests/api/Services/AcquisitionFileServiceTest.cs b/source/backend/tests/api/Services/AcquisitionFileServiceTest.cs index 018350d34a..8d6b4330d6 100644 --- a/source/backend/tests/api/Services/AcquisitionFileServiceTest.cs +++ b/source/backend/tests/api/Services/AcquisitionFileServiceTest.cs @@ -184,7 +184,7 @@ public void Add_Duplicate_OverrideFileNumber_Error() var repository = this._helper.GetService>(); repository.Setup(x => x.Add(It.IsAny())).Returns(acqFile); repository.Setup(x => x.LegacyFileNumberExists(It.IsAny())).Returns(true); - repository.Setup(x => x.CheckDuplicateFile(It.IsAny(),It.IsAny(), 1)).Returns(true); + repository.Setup(x => x.CheckDuplicateFile(It.IsAny(), It.IsAny(), 1)).Returns(true); var lookupRepository = this._helper.GetService>(); lookupRepository.Setup(x => x.GetAllRegions()).Returns(new List() { new PimsRegion() { Code = 4, RegionName = "Cannot determine" } }); @@ -3581,8 +3581,8 @@ public void GetAcquisitionFileExport_Success_FlatProperties() Assert.Equal(2, result.Count()); Assert.Equal("01-2023-01", result[0].FileNumber); Assert.Equal("01-2023-01", result[1].FileNumber); - Assert.Equal("8000", result[0].Pid); - Assert.Equal("9000", result[1].Pid); + Assert.Equal("000-008-000", result[0].Pid); + Assert.Equal("000-009-000", result[1].Pid); acqFilerepository.Verify(x => x.GetAcquisitionFileExportDeep(It.IsAny(), It.IsAny>(), It.IsAny()), Times.Once); } diff --git a/source/backend/tests/api/Services/DispositionFileServiceTest.cs b/source/backend/tests/api/Services/DispositionFileServiceTest.cs index b928e77419..9a1b9587e2 100644 --- a/source/backend/tests/api/Services/DispositionFileServiceTest.cs +++ b/source/backend/tests/api/Services/DispositionFileServiceTest.cs @@ -2801,7 +2801,7 @@ public void GetDispositionFileExport_Success_Properties() Assert.Equal(1, result.Count()); Assert.Equal("1234 St BC desc V9V9V9", result[0].CivicAddress); Assert.Equal("D-10-25-2023", result[0].FileNumber); - Assert.Equal("8000|9000", result[0].Pid); + Assert.Equal("000-008-000|000-009-000", result[0].Pid); dispFilerepository.Verify(x => x.GetDispositionFileExportDeep(It.IsAny()), Times.Once); } diff --git a/source/frontend/src/components/filePropertiesTable/FilePropertiesTable.tsx b/source/frontend/src/components/filePropertiesTable/FilePropertiesTable.tsx index 4a5f276822..09abe5b8c9 100644 --- a/source/frontend/src/components/filePropertiesTable/FilePropertiesTable.tsx +++ b/source/frontend/src/components/filePropertiesTable/FilePropertiesTable.tsx @@ -34,20 +34,18 @@ const FilePropertiesTable: React.FunctionComponent = disabledSelection, }) => { return ( - <> - - name="selectableFileProperties" - hideHeaders - hideToolbar - manualPagination - showSelectedRowCount - columns={columns} - data={fileProperties} - setSelectedRows={setSelectedFileProperties} - selectedRows={selectedFileProperties} - disableSelection={disabledSelection} - /> - + + name="selectableFileProperties" + hideHeaders + hideToolbar + manualPagination + showSelectedRowCount + columns={columns} + data={fileProperties} + setSelectedRows={setSelectedFileProperties} + selectedRows={selectedFileProperties} + disableSelection={disabledSelection} + /> ); }; diff --git a/source/frontend/src/components/propertySelector/selectedPropertyList/SelectedPropertyRow.test.tsx b/source/frontend/src/components/propertySelector/selectedPropertyList/SelectedPropertyRow.test.tsx index 2e39d3e5ac..3123bc0151 100644 --- a/source/frontend/src/components/propertySelector/selectedPropertyList/SelectedPropertyRow.test.tsx +++ b/source/frontend/src/components/propertySelector/selectedPropertyList/SelectedPropertyRow.test.tsx @@ -176,7 +176,7 @@ describe('SelectedPropertyRow component', () => { mockFeatureSet.location = { lat: 4, lng: 5 }; await setup({ props: { property: PropertyForm.fromFeatureDataset(mockFeatureSet) } }); - expect(screen.getByText('5.000000, 4.000000')).toBeVisible(); + expect(screen.getByText('4.000000, 5.000000')).toBeVisible(); }); it('falls back to address', async () => { diff --git a/source/frontend/src/features/documents/documentDetail/DocumentDetailContainer.test.tsx b/source/frontend/src/features/documents/documentDetail/DocumentDetailContainer.test.tsx index 33b768cc91..e8889a06f6 100644 --- a/source/frontend/src/features/documents/documentDetail/DocumentDetailContainer.test.tsx +++ b/source/frontend/src/features/documents/documentDetail/DocumentDetailContainer.test.tsx @@ -6,16 +6,16 @@ import { mockDocumentTypeMetadataBcAssessment, mockDocumentTypesAcquisition, mockDocumentTypesAll, -} from '@/mocks/documents.mock'; +} from '@/mocks/documentTypes.mock'; import { mockLookups } from '@/mocks/lookups.mock'; import { ApiGen_CodeTypes_DocumentRelationType } from '@/models/api/generated/ApiGen_CodeTypes_DocumentRelationType'; import { ApiGen_CodeTypes_ExternalResponseStatus } from '@/models/api/generated/ApiGen_CodeTypes_ExternalResponseStatus'; +import { ApiGen_Concepts_DocumentRelationship } from '@/models/api/generated/ApiGen_Concepts_DocumentRelationship'; import { ApiGen_System_HttpStatusCode } from '@/models/api/generated/ApiGen_System_HttpStatusCode'; import { lookupCodesSlice } from '@/store/slices/lookupCodes'; import { act, getByName, render, RenderOptions, screen, userEvent } from '@/utils/test-utils'; import { DocumentDetailContainer, IDocumentDetailContainerProps } from './DocumentDetailContainer'; -import { ApiGen_Concepts_DocumentRelationship } from '@/models/api/generated/ApiGen_Concepts_DocumentRelationship'; const history = createMemoryHistory(); const storeState = { diff --git a/source/frontend/src/features/documents/documentDetail/DocumentDetailForm.test.tsx b/source/frontend/src/features/documents/documentDetail/DocumentDetailForm.test.tsx index 08085603bf..d427542fbb 100644 --- a/source/frontend/src/features/documents/documentDetail/DocumentDetailForm.test.tsx +++ b/source/frontend/src/features/documents/documentDetail/DocumentDetailForm.test.tsx @@ -3,7 +3,7 @@ import { createMemoryHistory } from 'history'; import { createRef } from 'react'; import { Claims } from '@/constants/claims'; -import { mockDocumentTypesAcquisition } from '@/mocks/documents.mock'; +import { mockDocumentTypesAcquisition } from '@/mocks/documentTypes.mock'; import { mockLookups } from '@/mocks/lookups.mock'; import { ApiGen_CodeTypes_DocumentRelationType } from '@/models/api/generated/ApiGen_CodeTypes_DocumentRelationType'; import { ApiGen_Mayan_DocumentMetadata } from '@/models/api/generated/ApiGen_Mayan_DocumentMetadata'; @@ -15,8 +15,8 @@ import { lookupCodesSlice } from '@/store/slices/lookupCodes'; import { mockKeycloak, render, RenderOptions } from '@/utils/test-utils'; import { DocumentUpdateFormData } from '../models'; -import { DocumentDetailForm, IDocumentDetailFormProps } from './DocumentDetailForm'; import { ComposedDocument } from '../models/ComposedDocument'; +import { DocumentDetailForm, IDocumentDetailFormProps } from './DocumentDetailForm'; // mock auth library diff --git a/source/frontend/src/features/documents/documentDetail/DocumentDetailView.test.tsx b/source/frontend/src/features/documents/documentDetail/DocumentDetailView.test.tsx index c46f33217b..4f80d721b0 100644 --- a/source/frontend/src/features/documents/documentDetail/DocumentDetailView.test.tsx +++ b/source/frontend/src/features/documents/documentDetail/DocumentDetailView.test.tsx @@ -1,7 +1,7 @@ import { createMemoryHistory } from 'history'; import { Claims } from '@/constants/claims'; -import { mockDocumentTypesResponse } from '@/mocks/documents.mock'; +import { mockDocumentTypesResponse } from '@/mocks/documentTypes.mock'; import { mockLookups } from '@/mocks/lookups.mock'; import { ApiGen_CodeTypes_DocumentRelationType } from '@/models/api/generated/ApiGen_CodeTypes_DocumentRelationType'; import { ApiGen_Mayan_DocumentMetadata } from '@/models/api/generated/ApiGen_Mayan_DocumentMetadata'; @@ -10,8 +10,8 @@ import { EpochIsoDateTime } from '@/models/api/UtcIsoDateTime'; import { lookupCodesSlice } from '@/store/slices/lookupCodes'; import { mockKeycloak, render, RenderOptions } from '@/utils/test-utils'; -import { DocumentDetailView, IDocumentDetailsViewProps } from './DocumentDetailView'; import { ComposedDocument } from '../models/ComposedDocument'; +import { DocumentDetailView, IDocumentDetailsViewProps } from './DocumentDetailView'; // mock auth library diff --git a/source/frontend/src/features/documents/documentGlobalSearch/DocumentSearchResults/DocumentSearchResults.test.tsx b/source/frontend/src/features/documents/documentGlobalSearch/DocumentSearchResults/DocumentSearchResults.test.tsx index 7769d02504..08a1a7acc6 100644 --- a/source/frontend/src/features/documents/documentGlobalSearch/DocumentSearchResults/DocumentSearchResults.test.tsx +++ b/source/frontend/src/features/documents/documentGlobalSearch/DocumentSearchResults/DocumentSearchResults.test.tsx @@ -1,7 +1,13 @@ import { Claims } from '@/constants/claims'; -import { mockDocumentSearchResultsResponse } from '@/mocks/documents.mock'; +import { getMockApiPropertyDocumentRelationship } from '@/mocks/documents.mock'; +import { + getMockApiDocumentSearchResult, + mockDocumentSearchResultsResponse, +} from '@/mocks/documentSearchResults.mock'; import { ApiGen_CodeTypes_DocumentRelationType } from '@/models/api/generated/ApiGen_CodeTypes_DocumentRelationType'; -import { render, RenderOptions } from '@/utils/test-utils'; +import { render, RenderOptions, screen } from '@/utils/test-utils'; + +import { getMockApiProperty } from '@/mocks/properties.mock'; import { DocumentSearchResults, IDocumentSearchResultsProps } from './DocumentSearchResults'; // render component under test @@ -292,4 +298,65 @@ describe('Documents Search Results Table', () => { expect(propertyIdentifier).toBeInTheDocument(); expect(tableRows.length).toBe(1); }); + + it('displays PID for properties when available', () => { + setup({ + results: [ + { + ...getMockApiDocumentSearchResult(), + propertiesDocuments: [ + getMockApiPropertyDocumentRelationship(1, { + ...getMockApiProperty(), + id: 37, + pid: 15937551, + }), + ], + }, + ], + }); + + expect(screen.getByText('PID: 015-937-551')).toBeInTheDocument(); + }); + + it('displays PIN for properties when available', () => { + setup({ + results: [ + { + ...getMockApiDocumentSearchResult(), + propertiesDocuments: [ + getMockApiPropertyDocumentRelationship(1, { + ...getMockApiProperty(), + id: 37, + pid: null, + pin: 90072652, + }), + ], + }, + ], + }); + + expect(screen.getByText('PIN: 90072652')).toBeInTheDocument(); + }); + + it('displays Lat/Long for properties when no other identifier is available', () => { + setup({ + results: [ + { + ...getMockApiDocumentSearchResult(), + propertiesDocuments: [ + getMockApiPropertyDocumentRelationship(1, { + ...getMockApiProperty(), + id: 37, + pid: null, + pin: null, + latitude: 48.43, + longitude: -123.49, + }), + ], + }, + ], + }); + + expect(screen.getByText('Location: 48.430000, -123.490000')).toBeInTheDocument(); + }); }); diff --git a/source/frontend/src/features/documents/documentGlobalSearch/list/DocumentSearchFilter/DocumentSearchFilter.test.tsx b/source/frontend/src/features/documents/documentGlobalSearch/list/DocumentSearchFilter/DocumentSearchFilter.test.tsx index 49794a2ded..49577fa4b7 100644 --- a/source/frontend/src/features/documents/documentGlobalSearch/list/DocumentSearchFilter/DocumentSearchFilter.test.tsx +++ b/source/frontend/src/features/documents/documentGlobalSearch/list/DocumentSearchFilter/DocumentSearchFilter.test.tsx @@ -1,9 +1,10 @@ -import { render, RenderOptions, waitFor } from '@/utils/test-utils'; -import DocumentSearchFilter from './DocumentSearchFilter'; +import { SelectOption } from '@/components/common/form/Select'; +import { mockDocumentTypesResponse } from '@/mocks/documentTypes.mock'; import { mockLookups } from '@/mocks/lookups.mock'; import { lookupCodesSlice } from '@/store/slices/lookupCodes'; -import { mockDocumentTypesResponse } from '@/mocks/documents.mock'; -import { SelectOption } from '@/components/common/form/Select'; +import { render, RenderOptions, waitFor } from '@/utils/test-utils'; + +import DocumentSearchFilter from './DocumentSearchFilter'; const setFilter = vi.fn(); const docTypeOptions: SelectOption[] = mockDocumentTypesResponse().map(dt => { diff --git a/source/frontend/src/features/documents/documentUpload/DocumentUploadContainer.test.tsx b/source/frontend/src/features/documents/documentUpload/DocumentUploadContainer.test.tsx index 9e40bb1b07..4d3971de4b 100644 --- a/source/frontend/src/features/documents/documentUpload/DocumentUploadContainer.test.tsx +++ b/source/frontend/src/features/documents/documentUpload/DocumentUploadContainer.test.tsx @@ -3,22 +3,19 @@ import React, { createRef } from 'react'; import { useDocumentProvider } from '@/features/documents/hooks/useDocumentProvider'; import { useDocumentRelationshipProvider } from '@/features/documents/hooks/useDocumentRelationshipProvider'; -import { - mockDocumentBatchUploadResponse, - mockDocumentTypesAcquisition, - mockDocumentTypesAll, -} from '@/mocks/documents.mock'; import { mockLookups } from '@/mocks/lookups.mock'; import { ApiGen_CodeTypes_DocumentRelationType } from '@/models/api/generated/ApiGen_CodeTypes_DocumentRelationType'; import { lookupCodesSlice } from '@/store/slices/lookupCodes'; import { act, render, RenderOptions, screen } from '@/utils/test-utils'; +import { mockDocumentTypesAcquisition, mockDocumentTypesAll } from '@/mocks/documentTypes.mock'; +import { mockDocumentBatchUploadResponse } from '@/mocks/documents.mock'; +import { BatchUploadFormModel, DocumentUploadFormData } from '../models'; import DocumentUploadContainer, { IDocumentUploadContainerProps, IDocumentUploadContainerRef, } from './DocumentUploadContainer'; import { IDocumentUploadFormProps } from './DocumentUploadForm'; -import { BatchUploadFormModel, DocumentUploadFormData } from '../models'; const history = createMemoryHistory(); const storeState = { diff --git a/source/frontend/src/features/documents/documentUpload/DocumentUploadForm.test.tsx b/source/frontend/src/features/documents/documentUpload/DocumentUploadForm.test.tsx index 36b42f482f..a7b5feb975 100644 --- a/source/frontend/src/features/documents/documentUpload/DocumentUploadForm.test.tsx +++ b/source/frontend/src/features/documents/documentUpload/DocumentUploadForm.test.tsx @@ -3,12 +3,12 @@ import { createMemoryHistory } from 'history'; import React from 'react'; import { SelectOption } from '@/components/common/form'; -import { mockDocumentTypesResponse } from '@/mocks/documents.mock'; import { mockLookups } from '@/mocks/lookups.mock'; import { ApiGen_Mayan_DocumentTypeMetadataType } from '@/models/api/generated/ApiGen_Mayan_DocumentTypeMetadataType'; import { lookupCodesSlice } from '@/store/slices/lookupCodes'; import { act, fireEvent, render, RenderOptions, screen } from '@/utils/test-utils'; +import { mockDocumentTypesResponse } from '@/mocks/documentTypes.mock'; import { BatchUploadFormModel, DocumentUploadFormData } from '../models'; import DocumentUploadForm from './DocumentUploadForm'; diff --git a/source/frontend/src/features/documents/documentUpload/DocumentUploadModal.test.tsx b/source/frontend/src/features/documents/documentUpload/DocumentUploadModal.test.tsx index 82da2b0551..f0c92a938b 100644 --- a/source/frontend/src/features/documents/documentUpload/DocumentUploadModal.test.tsx +++ b/source/frontend/src/features/documents/documentUpload/DocumentUploadModal.test.tsx @@ -1,7 +1,5 @@ -import { - mockDocumentBatchUploadResponse, - mockDocumentTypesAcquisition, -} from '@/mocks/documents.mock'; +import { mockDocumentBatchUploadResponse } from '@/mocks/documents.mock'; +import { mockDocumentTypesAcquisition } from '@/mocks/documentTypes.mock'; import { mockLookups } from '@/mocks/lookups.mock'; import { ApiGen_CodeTypes_DocumentRelationType } from '@/models/api/generated/ApiGen_CodeTypes_DocumentRelationType'; import { lookupCodesSlice } from '@/store/slices/lookupCodes'; diff --git a/source/frontend/src/features/documents/list/DocumentFilter/DocumentFilterForm.test.tsx b/source/frontend/src/features/documents/list/DocumentFilter/DocumentFilterForm.test.tsx index 366f3c4feb..492ef8ecf2 100644 --- a/source/frontend/src/features/documents/list/DocumentFilter/DocumentFilterForm.test.tsx +++ b/source/frontend/src/features/documents/list/DocumentFilter/DocumentFilterForm.test.tsx @@ -5,7 +5,7 @@ import { createMemoryHistory } from 'history'; import noop from 'lodash/noop'; import { defaultDocumentFilter } from '@/interfaces/IDocumentResults'; -import { mockDocumentTypesResponse } from '@/mocks/documents.mock'; +import { mockDocumentTypesResponse } from '@/mocks/documentTypes.mock'; import { mockLookups } from '@/mocks/index.mock'; import { lookupCodesSlice } from '@/store/slices/lookupCodes'; import { act, fillInput, renderAsync, RenderOptions } from '@/utils/test-utils'; diff --git a/source/frontend/src/features/documents/list/DocumentListView.test.tsx b/source/frontend/src/features/documents/list/DocumentListView.test.tsx index eb16cc87c9..6940ea8a83 100644 --- a/source/frontend/src/features/documents/list/DocumentListView.test.tsx +++ b/source/frontend/src/features/documents/list/DocumentListView.test.tsx @@ -2,11 +2,8 @@ import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; import Claims from '@/constants/claims'; -import { - mockDocumentBatchUploadResponse, - mockDocumentsResponse, - mockDocumentTypesResponse, -} from '@/mocks/documents.mock'; +import { mockDocumentBatchUploadResponse, mockDocumentsResponse } from '@/mocks/documents.mock'; +import { mockDocumentTypesResponse } from '@/mocks/documentTypes.mock'; import { mockLookups } from '@/mocks/index.mock'; import { ApiGen_CodeTypes_DocumentRelationType } from '@/models/api/generated/ApiGen_CodeTypes_DocumentRelationType'; import { lookupCodesSlice } from '@/store/slices/lookupCodes'; @@ -20,8 +17,8 @@ import { userEvent, } from '@/utils/test-utils'; -import { DocumentListView, IDocumentListViewProps } from './DocumentListView'; import { DocumentRow } from '../models/DocumentRow'; +import { DocumentListView, IDocumentListViewProps } from './DocumentListView'; const mockAxios = new MockAdapter(axios); const storeState = { diff --git a/source/frontend/src/features/documents/list/DocumentResults/DocumentResults.test.tsx b/source/frontend/src/features/documents/list/DocumentResults/DocumentResults.test.tsx index 8f7bebc5c3..fac185a5ad 100644 --- a/source/frontend/src/features/documents/list/DocumentResults/DocumentResults.test.tsx +++ b/source/frontend/src/features/documents/list/DocumentResults/DocumentResults.test.tsx @@ -1,11 +1,10 @@ import { Claims } from '@/constants/claims'; -import { mockDocumentResponse, mockDocumentsResponse } from '@/mocks/documents.mock'; +import { getMockApiDocumentRelationship, mockDocumentsResponse } from '@/mocks/documents.mock'; import { cleanup, mockKeycloak, render, RenderOptions, userEvent } from '@/utils/test-utils'; -import { DocumentResults, IDocumentResultProps } from './DocumentResults'; -import { get } from 'lodash'; import { ApiGen_CodeTypes_DocumentRelationType } from '@/models/api/generated/ApiGen_CodeTypes_DocumentRelationType'; import { DocumentRow } from '../../models/DocumentRow'; +import { DocumentResults, IDocumentResultProps } from './DocumentResults'; const setSort = vi.fn(); @@ -177,7 +176,10 @@ describe('Document Results Table', () => { it('displays default number of entries of 10', async () => { const largeDataset = Array.from({ length: 15 }, (id: number) => - DocumentRow.fromApi(mockDocumentResponse(id), ApiGen_CodeTypes_DocumentRelationType.Leases), + DocumentRow.fromApi( + getMockApiDocumentRelationship(id, ApiGen_CodeTypes_DocumentRelationType.Leases), + ApiGen_CodeTypes_DocumentRelationType.Leases, + ), ); const { findByText } = setup({ results: largeDataset, claims: [Claims.DOCUMENT_VIEW] }); expect(await findByText('1 - 10 of 15')).toBeVisible(); diff --git a/source/frontend/src/features/leases/detail/LeaseHeaderAddresses.test.tsx b/source/frontend/src/features/leases/detail/LeaseHeaderAddresses.test.tsx index b069a1562a..ed4ab64db4 100644 --- a/source/frontend/src/features/leases/detail/LeaseHeaderAddresses.test.tsx +++ b/source/frontend/src/features/leases/detail/LeaseHeaderAddresses.test.tsx @@ -51,6 +51,7 @@ describe('LeaseHeaderAddresses component', () => { expect(text).toHaveLength(2); expect(getByText('[+1 more...]')).toBeVisible(); }); + it('formats addresses as expected', async () => { const { getByText, getAllByText } = setup({ propertyLeases: [ diff --git a/source/frontend/src/features/leases/shared/propertyPicker/selectedPropertyList/SelectedPropertyRow.test.tsx b/source/frontend/src/features/leases/shared/propertyPicker/selectedPropertyList/SelectedPropertyRow.test.tsx index f0b97ae531..f239057073 100644 --- a/source/frontend/src/features/leases/shared/propertyPicker/selectedPropertyList/SelectedPropertyRow.test.tsx +++ b/source/frontend/src/features/leases/shared/propertyPicker/selectedPropertyList/SelectedPropertyRow.test.tsx @@ -133,7 +133,7 @@ describe('SelectedPropertyRow component', () => { mockFeatureSet.location = { lat: 4, lng: 5 }; await setup({ props: { property: PropertyForm.fromFeatureDataset(mockFeatureSet) } }); - expect(screen.getByText('5.000000, 4.000000')).toBeVisible(); + expect(screen.getByText('4.000000, 5.000000')).toBeVisible(); }); it('falls back to address', async () => { diff --git a/source/frontend/src/features/mapSideBar/acquisition/common/GenerateForm/hooks/useGenerateResearchNotice.ts b/source/frontend/src/features/mapSideBar/acquisition/common/GenerateForm/hooks/useGenerateResearchNotice.ts index 5a62941d86..43e0a22e8a 100644 --- a/source/frontend/src/features/mapSideBar/acquisition/common/GenerateForm/hooks/useGenerateResearchNotice.ts +++ b/source/frontend/src/features/mapSideBar/acquisition/common/GenerateForm/hooks/useGenerateResearchNotice.ts @@ -43,12 +43,12 @@ export const useGenerateResearchNotice = () => { } }); - const fulltyAttributedResults: FeatureCollection< + const fullyAttributedResults: FeatureCollection< Geometry, PMBC_FullyAttributed_Feature_Properties >[] = await Promise.all(fullyAttributedTasks); - const flatFA = fulltyAttributedResults.flatMap(x => x.features).map(x => x.properties); + const flatFA = fullyAttributedResults.flatMap(x => x.features).map(x => x.properties); const composedProperties = pimsProperties.map(pimsResearchProperty => { const pimsProperty = pimsResearchProperty.property; diff --git a/source/frontend/src/features/mapSideBar/compensation/detail/CompensationRequisitionDetailView.test.tsx b/source/frontend/src/features/mapSideBar/compensation/detail/CompensationRequisitionDetailView.test.tsx index 592fc69be3..4adb3552f0 100644 --- a/source/frontend/src/features/mapSideBar/compensation/detail/CompensationRequisitionDetailView.test.tsx +++ b/source/frontend/src/features/mapSideBar/compensation/detail/CompensationRequisitionDetailView.test.tsx @@ -17,11 +17,13 @@ import { getMockCompReqAcqPayee, getMockCompReqLeasePayee, } from '@/mocks/compensations.mock'; +import { getMockApiFileProperty } from '@/mocks/fileProperty.mock'; import { getMockApiInterestHolderOrganization, getMockApiInterestHolderPerson, } from '@/mocks/interestHolders.mock'; import { getMockLeaseStakeholders } from '@/mocks/lease.mock'; +import { getMockApiProperty } from '@/mocks/properties.mock'; import { ApiGen_CodeTypes_FileTypes } from '@/models/api/generated/ApiGen_CodeTypes_FileTypes'; import { ApiGen_Concepts_CompensationRequisition } from '@/models/api/generated/ApiGen_Concepts_CompensationRequisition'; import { ApiGen_Concepts_CompReqAcqPayee } from '@/models/api/generated/ApiGen_Concepts_CompReqAcqPayee'; @@ -238,6 +240,30 @@ describe('Compensation Detail View Component', () => { expect(await findByText(/Property Test Name 2/)).toBeVisible(); }); + it('displays Lat/Long for properties when no other identifier is available', async () => { + const { findByText } = await setup({ + claims: [Claims.COMPENSATION_REQUISITION_EDIT], + props: { + compensation: getMockApiCompensationWithProperty(), + compensationProperties: [ + { + ...getMockApiFileProperty(1, { + ...getMockApiProperty(), + id: 1, + pid: null, + pin: null, + latitude: 48.43, + longitude: -123.49, + }), + propertyName: null, + }, + ], + }, + }); + + expect(await findByText('48.430000, -123.490000')).toBeVisible(); + }); + it('displays the compensation finalized date', async () => { const mockFinalCompensation: ApiGen_Concepts_CompensationRequisition = { ...getMockApiDefaultCompensation(), diff --git a/source/frontend/src/features/mapSideBar/property/tabs/propertyDetails/detail/__snapshots__/OperationSectionView.test.tsx.snap b/source/frontend/src/features/mapSideBar/property/tabs/propertyDetails/detail/__snapshots__/OperationSectionView.test.tsx.snap index 0118f6ba58..0b2d1c43f0 100644 --- a/source/frontend/src/features/mapSideBar/property/tabs/propertyDetails/detail/__snapshots__/OperationSectionView.test.tsx.snap +++ b/source/frontend/src/features/mapSideBar/property/tabs/propertyDetails/detail/__snapshots__/OperationSectionView.test.tsx.snap @@ -283,7 +283,7 @@ exports[`Operation section view > matches snapshot 1`] = ` rel="noopener noreferrer" target="_blank" > - Location: 123.000000, 48.000000 + Location: 48.000000, 123.000000 matches snapshot 1`] = ` rel="noopener noreferrer" target="_blank" > - Location: 123.000000, 48.000000 + Location: 48.000000, 123.000000 { expect(asFragment()).toMatchSnapshot(); }); - it('Displays the correct number of entries', async () => { + it('displays the correct number of entries', async () => { const sourceProperties: ApiGen_Concepts_Property[] = [ { ...getEmptyProperty(), id: 1, pid: 1111 }, ]; @@ -61,14 +61,38 @@ describe('Subdivision detail view', () => { expect(await findAllByText(/PID:/i)).toHaveLength(3); }); - it('Displays the checkmark on sources', async () => { + it('displays Lat/Long for properties with no other identifier', async () => { + const sourceProperties: ApiGen_Concepts_Property[] = [ + { + ...getEmptyProperty(), + id: 1, + pid: null, + pin: null, + latitude: 48.43, + longitude: -123.49, + }, + ]; + const destinationProperties: ApiGen_Concepts_Property[] = [ + { ...getEmptyProperty(), id: 2, pid: 2222 }, + { ...getEmptyProperty(), id: 3, pid: 333 }, + ]; + + const { findAllByText, findByText } = setup({ + props: { sourceProperties, destinationProperties }, + }); + + expect(await findAllByText(/PID:/i)).toHaveLength(2); + expect(await findByText(/Location: 48.430000, -123.490000/i)).toBeInTheDocument(); + }); + + it('displays the checkmark on sources', async () => { const sourceProperties = [{ ...getEmptyProperty(), id: 1 }]; const { queryByTestId } = setup({ props: { sourceProperties } }); expect(queryByTestId('isSource')).toBeVisible(); }); - it('Does not display the checkmark on destinations', async () => { + it('does not display the checkmark on destinations', async () => { const destinationProperties = [{ ...getEmptyProperty(), id: 1 }]; const { queryByTestId } = setup({ props: { destinationProperties } }); diff --git a/source/frontend/src/features/mapSideBar/property/tabs/takes/detail/TakesDetailView.test.tsx b/source/frontend/src/features/mapSideBar/property/tabs/takes/detail/TakesDetailView.test.tsx index f81cf01ecb..d0c5731896 100644 --- a/source/frontend/src/features/mapSideBar/property/tabs/takes/detail/TakesDetailView.test.tsx +++ b/source/frontend/src/features/mapSideBar/property/tabs/takes/detail/TakesDetailView.test.tsx @@ -1,19 +1,23 @@ import { createMemoryHistory } from 'history'; import { Claims } from '@/constants/claims'; +import Roles from '@/constants/roles'; import { mockLookups } from '@/mocks/lookups.mock'; -import { getMockApiPropertyFiles } from '@/mocks/properties.mock'; +import { + getMockApiProperty, + getMockApiPropertyFile, + getMockApiPropertyFiles, +} from '@/mocks/properties.mock'; import { getMockApiTakes } from '@/mocks/takes.mock'; +import { ApiGen_CodeTypes_AcquisitionStatusTypes } from '@/models/api/generated/ApiGen_CodeTypes_AcquisitionStatusTypes'; +import { ApiGen_CodeTypes_AcquisitionTakeStatusTypes } from '@/models/api/generated/ApiGen_CodeTypes_AcquisitionTakeStatusTypes'; import { ApiGen_Concepts_File } from '@/models/api/generated/ApiGen_Concepts_File'; +import { getEmptyAcquisitionFile } from '@/models/defaultInitializers'; import { lookupCodesSlice } from '@/store/slices/lookupCodes'; import { toTypeCodeNullable } from '@/utils/formUtils'; import { act, render, RenderOptions, screen, userEvent, within } from '@/utils/test-utils'; import TakesDetailView, { ITakesDetailViewProps } from './TakesDetailView'; -import { ApiGen_CodeTypes_AcquisitionStatusTypes } from '@/models/api/generated/ApiGen_CodeTypes_AcquisitionStatusTypes'; -import { ApiGen_CodeTypes_AcquisitionTakeStatusTypes } from '@/models/api/generated/ApiGen_CodeTypes_AcquisitionTakeStatusTypes'; -import Roles from '@/constants/roles'; -import { getEmptyAcquisitionFile } from '@/models/defaultInitializers'; const history = createMemoryHistory(); const storeState = { @@ -474,4 +478,22 @@ describe('TakesDetailView component', () => { }); expect(code).toBeVisible(); }); + + it('displays Lat/Long for properties when no other identifier is available', () => { + const { getByText } = setup({ + props: { + takes: [{ ...getMockApiTakes()[0] }], + fileProperty: { + ...getMockApiPropertyFile(), + property: { + ...getMockApiProperty(), + latitude: 48.43, + longitude: -123.49, + }, + }, + }, + }); + const latLong = getByText(/Takes for 48.430000, -123.490000/); + expect(latLong).toBeVisible(); + }); }); diff --git a/source/frontend/src/features/mapSideBar/research/ResearchContainer.test.tsx b/source/frontend/src/features/mapSideBar/research/ResearchContainer.test.tsx index 51a498bc71..101acdad8e 100644 --- a/source/frontend/src/features/mapSideBar/research/ResearchContainer.test.tsx +++ b/source/frontend/src/features/mapSideBar/research/ResearchContainer.test.tsx @@ -3,14 +3,17 @@ import MockAdapter from 'axios-mock-adapter'; import { createMemoryHistory } from 'history'; import { Claims } from '@/constants/claims'; +import { useHistoricalNumberRepository } from '@/hooks/repositories/useHistoricalNumberRepository'; +import { useResearchRepository } from '@/hooks/repositories/useResearchRepository'; import { mockAcquisitionFileResponse } from '@/mocks/acquisitionFiles.mock'; +import { mockLastUpdatedBy } from '@/mocks/lastUpdatedBy.mock'; import { mockLookups } from '@/mocks/lookups.mock'; import { getMockResearchFile } from '@/mocks/researchFile.mock'; +import { ApiGen_CodeTypes_FileTypes } from '@/models/api/generated/ApiGen_CodeTypes_FileTypes'; import { ApiGen_Concepts_ResearchFile } from '@/models/api/generated/ApiGen_Concepts_ResearchFile'; import { lookupCodesSlice } from '@/store/slices/lookupCodes'; -import { act, render, RenderOptions, waitForElementToBeRemoved } from '@/utils/test-utils'; +import { act, getMockRepositoryObj, render, RenderOptions } from '@/utils/test-utils'; -import { ApiGen_CodeTypes_FileTypes } from '@/models/api/generated/ApiGen_CodeTypes_FileTypes'; import { SideBarContextProvider, TypedFile } from '../context/sidebarContext'; import ResearchContainer, { IResearchContainerProps } from './ResearchContainer'; import ResearchView from './ResearchView'; @@ -18,35 +21,17 @@ import ResearchView from './ResearchView'; const history = createMemoryHistory(); const mockAxios = new MockAdapter(axios); -const mockGetPropertyHistoricalNumbers = { - error: undefined, - response: undefined, - execute: vi.fn().mockResolvedValue([]), - loading: false, - status: undefined, -}; - -vi.mock('@/hooks/epositories/useHistoricalNumberRepository', () => ({ - useInterestHolderRepository: () => { - return { - getPropertyHistoricalNumbers: mockGetPropertyHistoricalNumbers, - }; - }, -})); +const onClose = vi.fn(); -// Need to mock this library for unit tests -vi.mock('react-visibility-sensor', () => { - return { - default: vi.fn().mockImplementation(({ children }) => { - if (children instanceof Function) { - return children({ isVisible: true }); - } - return children; - }), - }; +vi.mock('@/hooks/repositories/useResearchRepository'); +vi.mocked(useResearchRepository, { partial: true }).mockReturnValue({ + getLastUpdatedBy: getMockRepositoryObj(mockLastUpdatedBy(1)), }); -const onClose = vi.fn(); +vi.mock('@/hooks/repositories/useHistoricalNumberRepository'); +vi.mocked(useHistoricalNumberRepository, { partial: true }).mockReturnValue({ + getPropertyHistoricalNumbers: getMockRepositoryObj([]), +}); // Mock ConfirmNavigation to avoid Prompt issues in jsdom vi.mock('@/components/common/ConfirmNavigation', () => { @@ -57,7 +42,7 @@ vi.mock('@/components/common/ConfirmNavigation', () => { describe('ResearchContainer component', () => { // render component under test - const setup = ( + const setup = async ( renderOptions: RenderOptions & { props?: Partial } & { context?: { file?: TypedFile }; } = {}, @@ -80,6 +65,9 @@ describe('ResearchContainer component', () => { }, ); + // wait for any useEffects to resolve and component to update with mocked data + await act(async () => {}); + return { ...utils, }; @@ -106,24 +94,16 @@ describe('ResearchContainer component', () => { }); it('renders as expected', async () => { - const { getByTestId } = setup(); - await waitForElementToBeRemoved(getByTestId('filter-backdrop-loading')); + await setup(); expect(document.body).toMatchSnapshot(); }); - it('renders a spinner while loading', async () => { - const { findByTestId, getByTestId } = setup(); - const spinner = await findByTestId('filter-backdrop-loading'); - expect(spinner).toBeVisible(); - await waitForElementToBeRemoved(getByTestId('filter-backdrop-loading')); - }); - it('renders research details when file is in context', async () => { const typedFile: TypedFile = { ...getMockResearchFile(), fileType: ApiGen_CodeTypes_FileTypes.Research, }; - const { findByText } = setup({ context: { file: typedFile } }); + const { findByText } = await setup({ context: { file: typedFile } }); await act(async () => {}); expect(await findByText('File Summary')).toBeVisible(); }); @@ -133,13 +113,11 @@ describe('ResearchContainer component', () => { ...mockAcquisitionFileResponse(), fileType: ApiGen_CodeTypes_FileTypes.Acquisition, }; - const { getByTestId } = setup({ context: { file: typedFile } }); - await waitForElementToBeRemoved(getByTestId('filter-backdrop-loading')); + await setup({ context: { file: typedFile } }); }); it('displays a properties pid if that is the only valid identifier', async () => { - const { getByTestId, findByText } = setup(); - await waitForElementToBeRemoved(getByTestId('filter-backdrop-loading')); + const { findByText } = await setup(); expect(await findByText('123-456-789')).toBeVisible(); }); @@ -148,8 +126,7 @@ describe('ResearchContainer component', () => { .onGet(`/researchFiles/${mockResearchFile?.id}/properties`) .reply(200, [{ id: 1, property: { pin: 123456 } }]); - const { getByTestId, findByText } = setup(); - await waitForElementToBeRemoved(getByTestId('filter-backdrop-loading')); + const { findByText } = await setup(); expect(await findByText('123456')).toBeVisible(); }); @@ -158,8 +135,7 @@ describe('ResearchContainer component', () => { .onGet(`/researchFiles/${mockResearchFile?.id}/properties`) .reply(200, [{ id: 1, property: { planNumber: 'EPP92028' } }]); - const { getByTestId, findByText } = setup(); - await waitForElementToBeRemoved(getByTestId('filter-backdrop-loading')); + const { findByText } = await setup(); expect(await findByText('EPP92028')).toBeVisible(); }); @@ -168,8 +144,7 @@ describe('ResearchContainer component', () => { .onGet(`/researchFiles/${mockResearchFile?.id}/properties`) .reply(200, [{ id: 1, property: { latitude: 1, longitude: 2 } }]); - const { getByTestId, findByText } = setup(); - await waitForElementToBeRemoved(getByTestId('filter-backdrop-loading')); - expect(await findByText('2.000000, 1.000000')).toBeVisible(); + const { findByText } = await setup(); + expect(await findByText('1.000000, 2.000000')).toBeVisible(); }); }); diff --git a/source/frontend/src/features/mapSideBar/research/__snapshots__/ResearchContainer.test.tsx.snap b/source/frontend/src/features/mapSideBar/research/__snapshots__/ResearchContainer.test.tsx.snap index 4e10a34548..9c4a5c7ef7 100644 --- a/source/frontend/src/features/mapSideBar/research/__snapshots__/ResearchContainer.test.tsx.snap +++ b/source/frontend/src/features/mapSideBar/research/__snapshots__/ResearchContainer.test.tsx.snap @@ -886,7 +886,7 @@ exports[`ResearchContainer component > renders as expected 1`] = ` Updated: - Sep 2, 2022 + Oct 6, 2023 by @@ -896,7 +896,7 @@ exports[`ResearchContainer component > renders as expected 1`] = ` id="userNameTooltip" > - admin + MARODRIG diff --git a/source/frontend/src/features/mapSideBar/shared/FileMenuView.test.tsx b/source/frontend/src/features/mapSideBar/shared/FileMenuView.test.tsx index 8b6be51131..9e5bf96af8 100644 --- a/source/frontend/src/features/mapSideBar/shared/FileMenuView.test.tsx +++ b/source/frontend/src/features/mapSideBar/shared/FileMenuView.test.tsx @@ -1,10 +1,12 @@ import { Claims } from '@/constants/index'; -import { act, render, RenderOptions, screen, userEvent } from '@/utils/test-utils'; - import { mockAcquisitionFileResponse } from '@/mocks/acquisitionFiles.mock'; +import { mapMachineBaseMock } from '@/mocks/mapFSM.mock'; +import { getMockApiProperty } from '@/mocks/properties.mock'; +import { ApiGen_Concepts_AcquisitionFile } from '@/models/api/generated/ApiGen_Concepts_AcquisitionFile'; import { ApiGen_Concepts_FileProperty } from '@/models/api/generated/ApiGen_Concepts_FileProperty'; +import { act, render, RenderOptions, screen, userEvent } from '@/utils/test-utils'; + import FileMenuView, { IFileMenuProps } from './FileMenuView'; -import { mapMachineBaseMock } from '@/mocks/mapFSM.mock'; const onSelectFileSummary = vi.fn(); const onSelectProperty = vi.fn(); @@ -50,6 +52,36 @@ describe('FileMenuView component', () => { expect(screen.getByText('024-996-777')).toBeVisible(); }); + it('renders Lat/Long for properties when no other identifier is available ', () => { + const mockFile: ApiGen_Concepts_AcquisitionFile = { + ...mockAcquisitionFileResponse(), + fileProperties: [ + { + id: 1, + location: { coordinate: { x: -123.49, y: 48.43 } }, + property: { + ...getMockApiProperty(), + id: 37, + pid: null, + pin: null, + latitude: 48.43, + longitude: -123.49, + }, + isActive: true, + propertyName: null, + file: null, + fileId: 1, + boundary: null, + displayOrder: 1, + propertyId: 37, + rowVersion: 1, + }, + ], + }; + setup({ props: { file: mockFile } }); + expect(screen.getByText('48.430000, -123.490000')).toBeVisible(); + }); + it('renders the currently selected property with different style', () => { setup({ props: { currentFilePropertyId: 2 } }); diff --git a/source/frontend/src/features/mapSideBar/shared/improvements/FilePropertiesImprovements/FilePropertiesImprovementsView.test.tsx b/source/frontend/src/features/mapSideBar/shared/improvements/FilePropertiesImprovements/FilePropertiesImprovementsView.test.tsx index b5d51776ef..cb75cf6d7d 100644 --- a/source/frontend/src/features/mapSideBar/shared/improvements/FilePropertiesImprovements/FilePropertiesImprovementsView.test.tsx +++ b/source/frontend/src/features/mapSideBar/shared/improvements/FilePropertiesImprovements/FilePropertiesImprovementsView.test.tsx @@ -1,11 +1,12 @@ +import { getMockApiProperty } from '@/mocks/properties.mock'; +import { getMockPropertyImprovementsApi } from '@/mocks/propertyImprovements.mock'; import { render, RenderOptions, waitFor } from '@/utils/test-utils'; + +import { IFilePropertyImprovements } from '../models/FilePropertyImprovements'; import { FilePropertiesImprovementsView, IFilePropertiesImprovementsViewProps, } from './FilePropertiesImprovementsView'; -import { IFilePropertyImprovements } from '../models/FilePropertyImprovements'; -import { getMockApiProperty } from '@/mocks/properties.mock'; -import { getMockPropertyImprovementsApi } from '@/mocks/propertyImprovements.mock'; const mockFilePropertiesImprovements: IFilePropertyImprovements[] = [ { property: getMockApiProperty(), improvements: getMockPropertyImprovementsApi(1) }, @@ -69,4 +70,22 @@ describe('File properties improvements list view', () => { getByText(/There are no commercial, residential, or other improvements indicated with this/i), ).toBeInTheDocument(); }); + + it('displays Lat/Long for properties when no other identifier is available', async () => { + const propertyWithoutIdentifier = { + ...getMockApiProperty(), + pid: null, + pin: null, + latitude: 48.43, + longitude: -123.49, + }; + const { getByText } = await setup({ + props: { + filePropertiesImprovements: [ + { property: propertyWithoutIdentifier, improvements: getMockPropertyImprovementsApi(1) }, + ], + }, + }); + expect(getByText(/Location: 48.430000, -123.490000/i)).toBeInTheDocument(); + }); }); diff --git a/source/frontend/src/features/mapSideBar/shared/improvements/FilePropertiesImprovements/__snapshots__/FilePropertiesImprovementsView.test.tsx.snap b/source/frontend/src/features/mapSideBar/shared/improvements/FilePropertiesImprovements/__snapshots__/FilePropertiesImprovementsView.test.tsx.snap index 3250a46ec4..060e283285 100644 --- a/source/frontend/src/features/mapSideBar/shared/improvements/FilePropertiesImprovements/__snapshots__/FilePropertiesImprovementsView.test.tsx.snap +++ b/source/frontend/src/features/mapSideBar/shared/improvements/FilePropertiesImprovements/__snapshots__/FilePropertiesImprovementsView.test.tsx.snap @@ -220,7 +220,7 @@ exports[`File properties improvements list view > renders as expected 1`] = `
- Location: 123.000000, 48.000000 + Location: 48.000000, 123.000000 { ], [ NameSourceType.LOCATION, - '-123.100000, 49.250000', + '49.250000, -123.100000', getMockWorklistParcel('parcel-1', {}, { lat: 49.25, lng: -123.1 }), - '-123.100000, 49.250000', + '49.250000, -123.100000', ], // no prefix ])('renders %s as "%s"', (_, __, mockParcel, expected) => { setup({ props: { parcel: mockParcel } }); diff --git a/source/frontend/src/mocks/documentSearchResults.mock.ts b/source/frontend/src/mocks/documentSearchResults.mock.ts new file mode 100644 index 0000000000..46384a3297 --- /dev/null +++ b/source/frontend/src/mocks/documentSearchResults.mock.ts @@ -0,0 +1,451 @@ +import { ApiGen_CodeTypes_DocumentRelationType } from '@/models/api/generated/ApiGen_CodeTypes_DocumentRelationType'; +import { ApiGen_Concepts_DocumentSearchResult } from '@/models/api/generated/ApiGen_Concepts_DocumentSearchResult'; + +export const getMockApiDocumentSearchResult = (): ApiGen_Concepts_DocumentSearchResult => ({ + acquisitionDocuments: [], + dispositionDocuments: [], + leaseDocuments: [], + managementDocuments: [], + mgmtActivitiesDocuments: [], + projectDocuments: [], + propertiesDocuments: [], + researchDocuments: [], + documentRelationships: [], + id: 1, + fileName: 'mock-file-name.pdf', + documentType: { + id: 0, + documentType: 'mock-document-type', + documentTypeDescription: 'Mock Document Type Description', + documentTypePurpose: null, + mayanId: 0, + isDisabled: false, + appCreateTimestamp: '2024-01-01T00:00:00', + appLastUpdateTimestamp: '2024-01-01T00:00:00', + appLastUpdateUserid: 'mock-user', + appCreateUserid: 'mock-user', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 1, + }, + statusTypeCode: { + id: 'DRAFT', + description: 'Draft', + isDisabled: false, + displayOrder: 1, + }, + documentQueueStatusTypeCode: { + id: 'PENDING', + description: 'Pending', + isDisabled: false, + displayOrder: 1, + }, + mayanDocumentId: 0, + appCreateTimestamp: '2024-01-01T00:00:00', + appLastUpdateTimestamp: '2024-01-01T00:00:00', + appLastUpdateUserid: 'mock-user', + appCreateUserid: 'mock-user', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 1, +}); + +export const mockDocumentSearchResultsResponse = (): ApiGen_Concepts_DocumentSearchResult[] => [ + { + acquisitionDocuments: [ + { + id: 26, + parentId: '64', + parentNameOrNumber: '01-1-01', + document: { + id: 22, + fileName: 'Form12_Carbone_Template.docx', + documentType: { + id: 41, + documentType: 'BCASSE', + documentTypeDescription: 'BC assessment search', + documentTypePurpose: null, + mayanId: 84, + isDisabled: false, + appCreateTimestamp: '2025-10-27T22:09:06.29', + appLastUpdateTimestamp: '2025-10-27T22:12:24.617', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + }, + statusTypeCode: { + id: 'FINAL', + description: 'Final', + isDisabled: false, + displayOrder: 5, + }, + documentQueueStatusTypeCode: { + id: 'SUCCESS', + description: 'Success', + isDisabled: false, + displayOrder: 5, + }, + mayanDocumentId: 3, + appCreateTimestamp: '2025-10-27T22:16:45.133', + appLastUpdateTimestamp: '2025-10-27T22:17:00.783', + appLastUpdateUserid: 'service', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + }, + relationshipType: ApiGen_CodeTypes_DocumentRelationType.AcquisitionFiles, + appCreateTimestamp: '2025-10-27T22:16:45.2', + appLastUpdateTimestamp: '2025-10-27T22:16:45.2', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 1, + }, + ], + dispositionDocuments: [], + leaseDocuments: [], + managementDocuments: [], + mgmtActivitiesDocuments: [], + projectDocuments: [], + propertiesDocuments: [], + researchDocuments: [], + documentRelationships: [ + { + id: 26, + parentId: '64', + parentNameOrNumber: '01-1-01', + document: { + id: 22, + fileName: 'Form12_Carbone_Template.docx', + documentType: { + id: 41, + documentType: 'BCASSE', + documentTypeDescription: 'BC assessment search', + documentTypePurpose: null, + mayanId: 84, + isDisabled: false, + appCreateTimestamp: '2025-10-27T22:09:06.29', + appLastUpdateTimestamp: '2025-10-27T22:12:24.617', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + }, + statusTypeCode: { + id: 'FINAL', + description: 'Final', + isDisabled: false, + displayOrder: 5, + }, + documentQueueStatusTypeCode: { + id: 'SUCCESS', + description: 'Success', + isDisabled: false, + displayOrder: 5, + }, + mayanDocumentId: 3, + appCreateTimestamp: '2025-10-27T22:16:45.133', + appLastUpdateTimestamp: '2025-10-27T22:17:00.783', + appLastUpdateUserid: 'service', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + }, + relationshipType: ApiGen_CodeTypes_DocumentRelationType.AcquisitionFiles, + appCreateTimestamp: '2025-10-27T22:16:45.2', + appLastUpdateTimestamp: '2025-10-27T22:16:45.2', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 1, + }, + ], + id: 22, + fileName: 'Form12_Carbone_Template.docx', + documentType: { + id: 41, + documentType: 'BCASSE', + documentTypeDescription: 'BC assessment search', + documentTypePurpose: null, + mayanId: 84, + isDisabled: false, + appCreateTimestamp: '2025-10-27T22:09:06.29', + appLastUpdateTimestamp: '2025-10-27T22:12:24.617', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + }, + statusTypeCode: { + id: 'FINAL', + description: 'Final', + isDisabled: false, + displayOrder: 5, + }, + documentQueueStatusTypeCode: { + id: 'SUCCESS', + description: 'Success', + isDisabled: false, + displayOrder: 5, + }, + mayanDocumentId: 3, + appCreateTimestamp: '2025-10-27T22:16:45.133', + appLastUpdateTimestamp: '2025-10-27T22:17:00.783', + appLastUpdateUserid: 'service', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + }, + { + acquisitionDocuments: [], + dispositionDocuments: [], + leaseDocuments: [], + managementDocuments: [], + mgmtActivitiesDocuments: [], + projectDocuments: [], + propertiesDocuments: [ + { + property: { + id: 37, + propertyType: null, + anomalies: [], + tenures: [], + roadTypes: [], + status: null, + dataSource: null, + region: null, + district: null, + dataSourceEffectiveDateOnly: '2021-08-31', + latitude: 992594.3513207644, + longitude: 1213247.77464335, + isRetired: false, + pphStatusUpdateUserid: null, + pphStatusUpdateTimestamp: null, + pphStatusUpdateUserGuid: null, + isRwyBeltDomPatent: false, + pphStatusTypeCode: null, + address: { + id: 1, + streetAddress1: '45 - 904 Hollywood Crescent', + streetAddress2: 'Living in a van', + streetAddress3: 'Down by the River', + municipality: 'Hollywood North', + provinceStateId: 1, + province: null, + countryId: 1, + country: { + id: 1, + code: 'CA', + description: 'Canada', + displayOrder: 1, + }, + districtCode: null, + district: null, + region: null, + regionCode: null, + countryOther: null, + postal: 'V6Z 5G7', + latitude: null, + longitude: null, + comment: null, + rowVersion: 2, + }, + pid: 15937551, + pin: null, + planNumber: null, + isOwned: false, + areaUnit: null, + landArea: 1, + isVolumetricParcel: false, + volumetricMeasurement: null, + volumetricUnit: null, + volumetricType: null, + landLegalDescription: null, + municipalZoning: null, + location: { + coordinate: { + x: 1213247.77464335, + y: 992594.3513207644, + }, + }, + boundary: { + type: 'Polygon', + coordinates: [ + [ + [1213242.4695999988, 992600.2574000051], + [1213243.7601999992, 992600.5253999997], + [1213242.576600001, 992597.9130000025], + [1213243.576, 992575.8795999978], + [1213253.3860000002, 992580.7179999985], + [1213252.4069999997, 992602.3270000033], + [1213251.9290000002, 992612.8686000016], + [1213242.113199999, 992608.0316000003], + [1213242.4695999988, 992600.2574000051], + ], + ], + }, + generalLocation: null, + historicalFileNumbers: [], + tenureCleanups: [], + surplusDeclarationType: null, + surplusDeclarationComment: null, + surplusDeclarationDate: '0001-01-01', + netBookAmount: null, + netBookNote: null, + rowVersion: 3, + }, + id: 1, + parentId: '37', + parentNameOrNumber: '015-937-551', + document: { + id: 23, + fileName: 'Form12_Carbone_Template.docx', + documentType: { + id: 67, + documentType: 'BRIENOTE', + documentTypeDescription: 'Briefing notes', + documentTypePurpose: null, + mayanId: 85, + isDisabled: false, + appCreateTimestamp: '2025-10-27T22:09:06.29', + appLastUpdateTimestamp: '2025-10-27T22:12:24.617', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + }, + statusTypeCode: { + id: 'DRAFT', + description: 'Draft', + isDisabled: false, + displayOrder: 2, + }, + documentQueueStatusTypeCode: { + id: 'SUCCESS', + description: 'Success', + isDisabled: false, + displayOrder: 5, + }, + mayanDocumentId: 4, + appCreateTimestamp: '2025-10-27T22:31:17.967', + appLastUpdateTimestamp: '2025-10-27T22:31:32.39', + appLastUpdateUserid: 'service', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + }, + relationshipType: ApiGen_CodeTypes_DocumentRelationType.Properties, + appCreateTimestamp: '2025-10-27T22:31:18.087', + appLastUpdateTimestamp: '2025-10-27T22:31:18.087', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 1, + }, + ], + researchDocuments: [], + documentRelationships: [ + { + id: 1, + parentId: '37', + parentNameOrNumber: '015-937-551', + document: { + id: 23, + fileName: 'Form12_Carbone_Template.docx', + documentType: { + id: 67, + documentType: 'BRIENOTE', + documentTypeDescription: 'Briefing notes', + documentTypePurpose: null, + mayanId: 85, + isDisabled: false, + appCreateTimestamp: '2025-10-27T22:09:06.29', + appLastUpdateTimestamp: '2025-10-27T22:12:24.617', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + }, + statusTypeCode: { + id: 'DRAFT', + description: 'Draft', + isDisabled: false, + displayOrder: 2, + }, + documentQueueStatusTypeCode: { + id: 'SUCCESS', + description: 'Success', + isDisabled: false, + displayOrder: 5, + }, + mayanDocumentId: 4, + appCreateTimestamp: '2025-10-27T22:31:17.967', + appLastUpdateTimestamp: '2025-10-27T22:31:32.39', + appLastUpdateUserid: 'service', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + }, + relationshipType: ApiGen_CodeTypes_DocumentRelationType.Properties, + appCreateTimestamp: '2025-10-27T22:31:18.087', + appLastUpdateTimestamp: '2025-10-27T22:31:18.087', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 1, + }, + ], + id: 23, + fileName: 'Form12_Carbone_Template.docx', + documentType: { + id: 67, + documentType: 'BRIENOTE', + documentTypeDescription: 'Briefing notes', + documentTypePurpose: null, + mayanId: 85, + isDisabled: false, + appCreateTimestamp: '2025-10-27T22:09:06.29', + appLastUpdateTimestamp: '2025-10-27T22:12:24.617', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + }, + statusTypeCode: { + id: 'DRAFT', + description: 'Draft', + isDisabled: false, + displayOrder: 2, + }, + documentQueueStatusTypeCode: { + id: 'SUCCESS', + description: 'Success', + isDisabled: false, + displayOrder: 5, + }, + mayanDocumentId: 4, + appCreateTimestamp: '2025-10-27T22:31:17.967', + appLastUpdateTimestamp: '2025-10-27T22:31:32.39', + appLastUpdateUserid: 'service', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + }, +]; diff --git a/source/frontend/src/mocks/documentTypes.mock.ts b/source/frontend/src/mocks/documentTypes.mock.ts new file mode 100644 index 0000000000..2ff27344c2 --- /dev/null +++ b/source/frontend/src/mocks/documentTypes.mock.ts @@ -0,0 +1,1780 @@ +import { ApiGen_Concepts_DocumentType } from '@/models/api/generated/ApiGen_Concepts_DocumentType'; +import { ApiGen_Mayan_DocumentMetadata } from '@/models/api/generated/ApiGen_Mayan_DocumentMetadata'; +import { ApiGen_Mayan_DocumentTypeMetadataType } from '@/models/api/generated/ApiGen_Mayan_DocumentTypeMetadataType'; + +export const mockDocumentTypesResponse = (): ApiGen_Concepts_DocumentType[] => [ + { + documentType: 'SURV', + documentTypeDescription: 'Survey', + id: 1, + mayanId: 8, + + isDisabled: false, + + rowVersion: 1, + + appCreateTimestamp: '10-Jan-2022', + appLastUpdateTimestamp: '10-Jan-2022', + appLastUpdateUserid: null, + appCreateUserid: 'JAMESBOND', + appLastUpdateUserGuid: null, + appCreateUserGuid: null, + documentTypePurpose: '', + }, + { + id: 2, + documentType: 'PRIVCOUN', + documentTypeDescription: 'Privy Council', + mayanId: 7, + isDisabled: false, + + rowVersion: 1, + + appCreateTimestamp: '10-Jan-2022', + appLastUpdateTimestamp: '10-Jan-2022', + appLastUpdateUserid: null, + appCreateUserid: 'JAMESBOND', + appLastUpdateUserGuid: null, + appCreateUserGuid: null, + documentTypePurpose: '', + }, +]; + +export const mockDocumentTypesAcquisition = (): ApiGen_Concepts_DocumentType[] => [ + { + id: 36, + documentType: 'AFFISERV', + documentTypeDescription: 'Affidavit of service', + mayanId: 272, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.25', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 34, + documentType: 'APPREXPR', + documentTypeDescription: 'Approval of expropriation (Form 5)', + mayanId: 273, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.25', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 24, + documentType: 'APPRREVI', + documentTypeDescription: 'Appraisals/Reviews', + mayanId: 274, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.25', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 17, + documentType: 'BCASSE', + documentTypeDescription: 'BC assessment search', + mayanId: 275, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.25', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 43, + documentType: 'BRIENOTE', + documentTypeDescription: 'Briefing notes', + mayanId: 276, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.25', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 14, + documentType: 'CANALAND', + documentTypeDescription: 'Canada lands survey', + mayanId: 277, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.25', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 41, + documentType: 'CERTINSU', + documentTypeDescription: 'Certificate of Insurance (H0111)', + mayanId: 278, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.25', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 29, + documentType: 'COMPCHEQ', + documentTypeDescription: 'Compensation cheque', + mayanId: 280, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.25', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 10, + documentType: 'CORR', + documentTypeDescription: 'Correspondence', + mayanId: 281, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.25', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 28, + documentType: 'COMPREQU', + documentTypeDescription: 'Compensation requisition (H-120)', + mayanId: 282, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.25', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 22, + documentType: 'COMPSEAR', + documentTypeDescription: 'Company search', + mayanId: 283, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.25', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 30, + documentType: 'CONDENTR', + documentTypeDescription: 'Condition of entry (H0443)', + mayanId: 285, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.25', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 8, + documentType: 'CROWGRAN', + documentTypeDescription: 'Crown grant', + mayanId: 286, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 18, + documentType: 'DISTREGI', + documentTypeDescription: 'District road register', + mayanId: 287, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 19, + documentType: 'FIELNOTE', + documentTypeDescription: 'Field notes', + mayanId: 288, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 38, + documentType: 'FIRSNTAI', + documentTypeDescription: 'First nations consultation', + mayanId: 289, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 3, + documentType: 'GAZE', + documentTypeDescription: 'Gazette', + mayanId: 290, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 9, + documentType: 'HISTFILE', + documentTypeDescription: 'Historical file', + mayanId: 291, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 21, + documentType: 'LEASLICE', + documentTypeDescription: 'Lease / License (H1005/H1005A)', + mayanId: 292, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 47, + documentType: 'LEGACORR', + documentTypeDescription: 'Legal correspondence (ex: to AG/external lawyers)', + mayanId: 293, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 5, + documentType: 'LEGASURV', + documentTypeDescription: 'Legal survey plan', + mayanId: 294, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 23, + documentType: 'LTSADOCU', + documentTypeDescription: 'LTSA documents and plans (except title search)', + mayanId: 296, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 15, + documentType: 'MINIORDE', + documentTypeDescription: 'Ministerial order', + mayanId: 297, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 12, + documentType: 'MISCNOTE', + documentTypeDescription: 'Miscellaneous notes (LTSA)', + mayanId: 298, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 4, + documentType: 'MOTIPLAN', + documentTypeDescription: 'MOTI plan', + mayanId: 299, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 31, + documentType: 'NOTIADVA', + documentTypeDescription: 'Notice of advanced payment (Form 8)', + mayanId: 300, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 40, + documentType: 'NOTICLAI', + documentTypeDescription: 'Notice of claims/Litigation documents', + mayanId: 301, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 33, + documentType: 'NOTIEXPR', + documentTypeDescription: 'Notice of expropriation (Form 1)', + mayanId: 302, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 37, + documentType: 'NOTIPOSS', + documentTypeDescription: 'Notice of possible entry (H0224)', + mayanId: 303, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 6, + documentType: 'OIC', + documentTypeDescription: 'Order in Council (OIC)', + mayanId: 304, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 20, + documentType: 'OTHER', + documentTypeDescription: 'Other', + mayanId: 305, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 27, + documentType: 'OWNEAGRE', + documentTypeDescription: 'Owner agreement/offer', + mayanId: 306, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 2, + documentType: 'PAPLAN', + documentTypeDescription: 'PA plans / Design drawings', + mayanId: 307, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.71', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 13, + documentType: 'PHOTIMAG', + documentTypeDescription: 'Photos / Images / Video', + mayanId: 308, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 7, + documentType: 'PRIVCOUN', + documentTypeDescription: 'Privy council', + mayanId: 309, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 25, + documentType: 'PROFREPO', + documentTypeDescription: 'Professional reports (ex: engineering/environmental etc.)', + mayanId: 310, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 48, + documentType: 'RECONEGO', + documentTypeDescription: 'Record of negotiation', + mayanId: 311, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 32, + documentType: 'RELECLAI', + documentTypeDescription: 'Release of claims', + mayanId: 312, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 26, + documentType: 'SPENAUTH', + documentTypeDescription: 'Spending authority approval (SAA)', + mayanId: 313, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 44, + documentType: 'SURPPROP', + documentTypeDescription: 'Surplus property declaration', + mayanId: 314, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 39, + documentType: 'TAXNOTI', + documentTypeDescription: 'Tax notices and assessments', + mayanId: 315, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 45, + documentType: 'TEMPLICE', + documentTypeDescription: 'Temporary license for construction access (H0074)', + mayanId: 316, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 11, + documentType: 'TITLSEAR', + documentTypeDescription: 'Title search / Historical title', + mayanId: 317, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 16, + documentType: 'TRANADMI', + documentTypeDescription: 'Transfer of administration', + mayanId: 318, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 35, + documentType: 'VESTNOTI', + documentTypeDescription: 'Vesting notice (Form 9)', + mayanId: 319, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 50, + documentType: 'FINRECRD', + documentTypeDescription: 'Financial records (invoices, journal vouchers etc.)', + mayanId: 320, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, + { + id: 49, + documentType: 'OTHERLANDAGREEMENT', + documentTypeDescription: + 'Other Land Agreement (Indemnity Letter, Letter of Intended Use, Assumption Agreement, etc)', + mayanId: 321, + isDisabled: false, + appCreateTimestamp: '2024-10-15T19:44:11.713', + appLastUpdateTimestamp: '2024-10-15T19:46:55.253', + appLastUpdateUserid: 'EHERRERA', + appCreateUserid: 'EHERRERA', + appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', + rowVersion: 2, + documentTypePurpose: '', + }, +]; + +export const mockDocumentTypesAll = (): ApiGen_Concepts_DocumentType[] => [ + { + id: 11, + documentType: 'AFFISERV', + documentTypeDescription: 'Affidavit of service', + documentTypePurpose: null, + mayanId: 143, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 28, + }, + { + id: 55, + documentType: 'ALC', + documentTypeDescription: 'Agricultural Land Commission (ALC)', + documentTypePurpose: null, + mayanId: 205, + isDisabled: false, + appCreateTimestamp: '2024-09-20T23:18:12.197', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'MARODRIG', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '5d661d1e-14f0-477c-a7fb-31f21e8b4fda', + rowVersion: 34, + }, + { + id: 25, + documentType: 'APPRREVI', + documentTypeDescription: 'Appraisals/Reviews', + documentTypePurpose: null, + mayanId: 145, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 27, + }, + { + id: 9, + documentType: 'APPREXPR', + documentTypeDescription: 'Approval of expropriation (Form 5)', + documentTypePurpose: null, + mayanId: 146, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 42, + documentType: 'BCASSE', + documentTypeDescription: 'BC assessment search', + documentTypePurpose: null, + mayanId: 144, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 27, + }, + { + id: 18, + documentType: 'BRIENOTE', + documentTypeDescription: 'Briefing notes', + documentTypePurpose: null, + mayanId: 155, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 27, + }, + { + id: 50, + documentType: 'CDOGTEMP', + documentTypeDescription: 'CDOGS template', + documentTypePurpose: null, + mayanId: 148, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 27, + }, + { + id: 39, + documentType: 'CANALAND', + documentTypeDescription: 'Canada lands survey', + documentTypePurpose: null, + mayanId: 151, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 51, + documentType: 'CERTCOMPL', + documentTypeDescription: 'Certificate of Compliance', + documentTypePurpose: null, + mayanId: 201, + isDisabled: false, + appCreateTimestamp: '2024-04-09T17:08:53.417', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 16, + documentType: 'CERTINSU', + documentTypeDescription: 'Certificate of Insurance (H0111)', + documentTypePurpose: null, + mayanId: 160, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 27, + }, + { + id: 48, + documentType: 'COMPSEAR', + documentTypeDescription: 'Company search', + documentTypePurpose: null, + mayanId: 156, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 4, + documentType: 'COMPCHEQ', + documentTypeDescription: 'Compensation cheque', + documentTypePurpose: null, + mayanId: 159, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 3, + documentType: 'COMPREQU', + documentTypeDescription: 'Compensation requisition (H-120)', + documentTypePurpose: null, + mayanId: 158, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 28, + }, + { + id: 5, + documentType: 'CONDENTR', + documentTypeDescription: 'Condition of entry (H0443)', + documentTypePurpose: null, + mayanId: 147, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 21, + documentType: 'CONVCLOS', + documentTypeDescription: 'Conveyance closing documents (ex: PTT forms, Form A transfer etc.)', + documentTypePurpose: null, + mayanId: 157, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 35, + documentType: 'CORR', + documentTypeDescription: 'Correspondence', + documentTypePurpose: null, + mayanId: 149, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 33, + documentType: 'CROWGRAN', + documentTypeDescription: 'Crown grant', + documentTypePurpose: null, + mayanId: 154, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 43, + documentType: 'DISTREGI', + documentTypeDescription: 'District road register', + documentTypePurpose: null, + mayanId: 152, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 28, + }, + { + id: 52, + documentType: 'ENHREFREC', + documentTypeDescription: 'Enhanced Referral Records', + documentTypePurpose: null, + mayanId: 202, + isDisabled: false, + appCreateTimestamp: '2024-04-09T17:08:53.42', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 44, + documentType: 'FIELNOTE', + documentTypeDescription: 'Field notes', + documentTypePurpose: null, + mayanId: 150, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 28, + }, + { + id: 45, + documentType: 'FINRECRD', + documentTypeDescription: 'Financial records (invoices, journal vouchers etc.)', + documentTypePurpose: null, + mayanId: 153, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 53, + documentType: 'FNSCR', + documentTypeDescription: 'First Nations Strength of Claim Report', + documentTypePurpose: null, + mayanId: 203, + isDisabled: false, + appCreateTimestamp: '2024-04-09T17:08:53.42', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 13, + documentType: 'FIRSNTAI', + documentTypeDescription: 'First nations consultation', + documentTypePurpose: null, + mayanId: 161, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 56, + documentType: 'FORM12', + documentTypeDescription: 'Form 12', + documentTypePurpose: null, + mayanId: 207, + isDisabled: false, + appCreateTimestamp: '2024-09-20T23:18:12.197', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'MARODRIG', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '5d661d1e-14f0-477c-a7fb-31f21e8b4fda', + rowVersion: 33, + }, + { + id: 28, + documentType: 'GAZE', + documentTypeDescription: 'Gazette', + documentTypePurpose: null, + mayanId: 170, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 34, + documentType: 'HISTFILE', + documentTypeDescription: 'Historical file', + documentTypePurpose: null, + mayanId: 171, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 26, + documentType: 'LTSADOCU', + documentTypeDescription: 'LTSA documents and plans (except title search)', + documentTypePurpose: null, + mayanId: 172, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 57, + documentType: 'LANDACTTENRES', + documentTypeDescription: 'Land Act Tenure/Reserves', + documentTypePurpose: null, + mayanId: 206, + isDisabled: false, + appCreateTimestamp: '2024-09-20T23:18:12.197', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'MARODRIG', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '5d661d1e-14f0-477c-a7fb-31f21e8b4fda', + rowVersion: 34, + }, + { + id: 27, + documentType: 'LEASLICE', + documentTypeDescription: 'Lease / License (H1005/H1005A)', + documentTypePurpose: null, + mayanId: 169, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 22, + documentType: 'LEGACORR', + documentTypeDescription: 'Legal correspondence (ex: to AG/external lawyers)', + documentTypePurpose: null, + mayanId: 166, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 30, + documentType: 'LEGASURV', + documentTypeDescription: 'Legal survey plan', + documentTypePurpose: null, + mayanId: 164, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 17, + documentType: 'LICEAPPR', + documentTypeDescription: 'Licensing approval/sign-off', + documentTypePurpose: null, + mayanId: 168, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 40, + documentType: 'MINIORDE', + documentTypeDescription: 'Ministerial order', + documentTypePurpose: null, + mayanId: 167, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 38, + documentType: 'MISCNOTE', + documentTypeDescription: 'Miscellaneous notes (LTSA)', + documentTypePurpose: null, + mayanId: 165, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 29, + documentType: 'MOTIPLAN', + documentTypeDescription: 'MOTI plan', + documentTypePurpose: null, + mayanId: 162, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 6, + documentType: 'NOTIADVA', + documentTypeDescription: 'Notice of advanced payment (Form 8)', + documentTypePurpose: null, + mayanId: 163, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 15, + documentType: 'NOTICLAI', + documentTypeDescription: 'Notice of claims/Litigation documents', + documentTypePurpose: null, + mayanId: 173, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 8, + documentType: 'NOTIEXPR', + documentTypeDescription: 'Notice of expropriation (Form 1)', + documentTypePurpose: null, + mayanId: 174, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 12, + documentType: 'NOTIPOSS', + documentTypeDescription: 'Notice of possible entry (H0224)', + documentTypePurpose: null, + mayanId: 178, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 31, + documentType: 'OIC', + documentTypeDescription: 'Order in Council (OIC)', + documentTypePurpose: null, + mayanId: 175, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 47, + documentType: 'OTHER', + documentTypeDescription: 'Other', + documentTypePurpose: null, + mayanId: 185, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 46, + documentType: 'OTHERLANDAGREEMENT', + documentTypeDescription: + 'Other Land Agreement (Indemnity Letter, Letter of Intended Use, Assumption Agreement, etc)', + documentTypePurpose: null, + mayanId: 181, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 2, + documentType: 'OWNEAGRE', + documentTypeDescription: 'Owner agreement/offer', + documentTypePurpose: null, + mayanId: 176, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 34, + }, + { + id: 1, + documentType: 'PAPLAN', + documentTypeDescription: 'PA plans / Design drawings', + documentTypePurpose: null, + mayanId: 182, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 34, + }, + { + id: 49, + documentType: 'PHOTIMAG', + documentTypeDescription: 'Photos / Images / Video', + documentTypePurpose: null, + mayanId: 184, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 32, + documentType: 'PRIVCOUN', + documentTypeDescription: 'Privy council', + documentTypePurpose: null, + mayanId: 180, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 24, + documentType: 'PROFREPO', + documentTypeDescription: 'Professional reports (ex: engineering/environmental etc.)', + documentTypePurpose: null, + mayanId: 177, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 54, + documentType: 'PURSALEAGRE', + documentTypeDescription: 'Purchase and Sale Agreement', + documentTypePurpose: null, + mayanId: 204, + isDisabled: false, + appCreateTimestamp: '2024-04-09T17:08:53.42', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 37, + documentType: 'RECONEGO', + documentTypeDescription: 'Record of negotiation', + documentTypePurpose: null, + mayanId: 179, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 7, + documentType: 'RELECLAI', + documentTypeDescription: 'Release of claims', + documentTypePurpose: null, + mayanId: 183, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 34, + }, + { + id: 23, + documentType: 'SPENAUTH', + documentTypeDescription: 'Spending authority approval (SAA)', + documentTypePurpose: null, + mayanId: 188, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 19, + documentType: 'SURPPROP', + documentTypeDescription: 'Surplus property declaration', + documentTypePurpose: null, + mayanId: 189, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 14, + documentType: 'TAXNOTI', + documentTypeDescription: 'Tax notices and assessments', + documentTypePurpose: null, + mayanId: 191, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 20, + documentType: 'TEMPLICE', + documentTypeDescription: 'Temporary license for construction access (H0074)', + documentTypePurpose: null, + mayanId: 186, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 36, + documentType: 'TITLSEAR', + documentTypeDescription: 'Title search / Historical title', + documentTypePurpose: null, + mayanId: 190, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 32, + }, + { + id: 41, + documentType: 'TRANADMI', + documentTypeDescription: 'Transfer of administration', + documentTypePurpose: null, + mayanId: 187, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, + { + id: 10, + documentType: 'VESTNOTI', + documentTypeDescription: 'Vesting notice (Form 9)', + documentTypePurpose: null, + mayanId: 192, + isDisabled: false, + appCreateTimestamp: '2023-11-03T20:51:08.747', + appLastUpdateTimestamp: '2024-10-25T18:48:12.55', + appLastUpdateUserid: 'service', + appCreateUserid: 'service', + appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', + appCreateUserGuid: '00000000-0000-0000-0000-000000000000', + rowVersion: 33, + }, +]; + +export const mockDocumentTypeMetadataBcAssessment = (): ApiGen_Mayan_DocumentTypeMetadataType[] => [ + { + id: 73, + document_type: { + id: 4, + label: 'BC assessment search', + delete_time_period: 30, + delete_time_unit: 'days', + document_stub_expiration_interval: 86400, + document_stub_pruning_enabled: true, + trash_time_period: null, + trash_time_unit: null, + filename_generator_backend: 'uuid', + filename_generator_backend_arguments: '', + }, + metadata_type: { + default: null, + id: 23, + label: 'Civic address', + lookup: null, + name: 'CIVIC_ADDRESS', + parser: '', + parser_arguments: '', + url: 'http://localhost:7080/api/v4/metadata_types/23/', + validation: '', + validation_arguments: '', + }, + required: false, + url: 'http://localhost:7080/api/v4/document_types/4/metadata_types/73/', + }, + { + id: 40, + document_type: { + id: 4, + label: 'BC assessment search', + delete_time_period: 30, + delete_time_unit: 'days', + document_stub_expiration_interval: 86400, + document_stub_pruning_enabled: true, + trash_time_period: null, + trash_time_unit: null, + filename_generator_backend: 'uuid', + filename_generator_backend_arguments: '', + }, + metadata_type: { + default: null, + id: 33, + label: 'Jurisdiction', + lookup: null, + name: 'JURISDICTION', + parser: '', + parser_arguments: '', + url: 'http://localhost:7080/api/v4/metadata_types/33/', + validation: '', + validation_arguments: '', + }, + required: false, + url: 'http://localhost:7080/api/v4/document_types/4/metadata_types/40/', + }, + { + id: 42, + document_type: { + id: 4, + label: 'BC assessment search', + delete_time_period: 30, + delete_time_unit: 'days', + document_stub_expiration_interval: 86400, + document_stub_pruning_enabled: true, + trash_time_period: null, + trash_time_unit: null, + filename_generator_backend: 'uuid', + filename_generator_backend_arguments: '', + }, + metadata_type: { + default: null, + id: 40, + label: 'Roll #', + lookup: null, + name: 'ROLL_NUMBER', + parser: '', + parser_arguments: '', + url: 'http://localhost:7080/api/v4/metadata_types/40/', + validation: '', + validation_arguments: '', + }, + required: false, + url: 'http://localhost:7080/api/v4/document_types/4/metadata_types/42/', + }, + { + id: 58, + document_type: { + id: 4, + label: 'BC assessment search', + delete_time_period: 30, + delete_time_unit: 'days', + document_stub_expiration_interval: 86400, + document_stub_pruning_enabled: true, + trash_time_period: null, + trash_time_unit: null, + filename_generator_backend: 'uuid', + filename_generator_backend_arguments: '', + }, + metadata_type: { + default: null, + id: 14, + label: 'Year', + lookup: null, + name: 'YEAR', + parser: '', + parser_arguments: '', + url: 'http://localhost:7080/api/v4/metadata_types/14/', + validation: '', + validation_arguments: '', + }, + required: false, + url: 'http://localhost:7080/api/v4/document_types/4/metadata_types/58/', + }, +]; + +export const mockDocumentMetadata = (): ApiGen_Mayan_DocumentMetadata[] => [ + { + document: { + language: '', + uuid: '', + label: '', + datetime_created: '2022-07-27T16:06:42.42', + description: '', + file_latest: { + id: 2, + comment: '', + encoding: '', + filename: '', + mimetype: '', + size: 12, + timestamp: '', + file: '', + checksum: '', + document_id: 99, + }, + id: 1, + document_type: { + id: 1, + label: 'Survey', + delete_time_period: null, + delete_time_unit: null, + trash_time_period: null, + trash_time_unit: null, + document_stub_expiration_interval: null, + document_stub_pruning_enabled: null, + filename_generator_backend: '', + filename_generator_backend_arguments: '', + }, + }, + id: 1, + metadata_type: { + id: 1, + label: 'Tag', + default: null, + lookup: null, + name: null, + parser: null, + parser_arguments: null, + url: null, + validation: null, + validation_arguments: null, + }, + url: '', + value: 'Tag1234', + }, +]; diff --git a/source/frontend/src/mocks/documents.mock.ts b/source/frontend/src/mocks/documents.mock.ts index c4dd276db5..4498e82b2c 100644 --- a/source/frontend/src/mocks/documents.mock.ts +++ b/source/frontend/src/mocks/documents.mock.ts @@ -1,14 +1,57 @@ import { ApiGen_CodeTypes_DocumentRelationType } from '@/models/api/generated/ApiGen_CodeTypes_DocumentRelationType'; import { ApiGen_CodeTypes_ExternalResponseStatus } from '@/models/api/generated/ApiGen_CodeTypes_ExternalResponseStatus'; +import { ApiGen_Concepts_Document } from '@/models/api/generated/ApiGen_Concepts_Document'; import { ApiGen_Concepts_DocumentRelationship } from '@/models/api/generated/ApiGen_Concepts_DocumentRelationship'; -import { ApiGen_Concepts_DocumentSearchResult } from '@/models/api/generated/ApiGen_Concepts_DocumentSearchResult'; -import { ApiGen_Concepts_DocumentType } from '@/models/api/generated/ApiGen_Concepts_DocumentType'; -import { ApiGen_Mayan_DocumentMetadata } from '@/models/api/generated/ApiGen_Mayan_DocumentMetadata'; -import { ApiGen_Mayan_DocumentTypeMetadataType } from '@/models/api/generated/ApiGen_Mayan_DocumentTypeMetadataType'; +import { ApiGen_Concepts_PropertyDocumentRelationship } from '@/models/api/generated/ApiGen_Concepts_PropertyDocumentRelationship'; import { ApiGen_Requests_DocumentUploadRelationshipResponse } from '@/models/api/generated/ApiGen_Requests_DocumentUploadRelationshipResponse'; import { ApiGen_System_HttpStatusCode } from '@/models/api/generated/ApiGen_System_HttpStatusCode'; -export const mockDocumentResponse = (id = 1): ApiGen_Concepts_DocumentRelationship => ({ +import { getMockApiProperty } from './properties.mock'; + +export const getMockApiDocument = (id = 1): ApiGen_Concepts_Document => ({ + id, + mayanDocumentId: 1, + fileName: 'DocTest.docx', + documentType: { + id: 1, + documentType: 'SURV', + documentTypeDescription: 'Survey', + mayanId: 8, + isDisabled: false, + rowVersion: 1, + appCreateTimestamp: '2022-09-08T21:18:09.01', + appLastUpdateTimestamp: '2022-09-08T21:18:09.01', + appLastUpdateUserid: 'JAMESBOND', + appCreateUserid: 'JAMESBOND', + appLastUpdateUserGuid: '14c9a273-6f4a-4859-8d59-9264d3cee53f', + appCreateUserGuid: '14c9a273-6f4a-4859-8d59-9264d3cee53f', + documentTypePurpose: '', + }, + statusTypeCode: { + id: 'SIGND', + description: 'Signed', + isDisabled: false, + displayOrder: null, + }, + documentQueueStatusTypeCode: { + id: 'SUCCESS', + description: 'Success', + isDisabled: false, + displayOrder: 5, + }, + appCreateTimestamp: '2022-09-08T21:18:09.01', + appLastUpdateTimestamp: '2022-09-08T21:18:09.01', + rowVersion: 1, + appLastUpdateUserid: 'JAMESBOND', + appCreateUserid: 'JAMESBOND', + appLastUpdateUserGuid: '14c9a273-6f4a-4859-8d59-9264d3cee53f', + appCreateUserGuid: '14c9a273-6f4a-4859-8d59-9264d3cee53f', +}); + +export const getMockApiDocumentRelationship = ( + id = 1, + relationshipType = ApiGen_CodeTypes_DocumentRelationType.AcquisitionFiles, +): ApiGen_Concepts_DocumentRelationship => ({ id, parentId: '1', parentNameOrNumber: '04-9383-00', @@ -46,7 +89,7 @@ export const mockDocumentResponse = (id = 1): ApiGen_Concepts_DocumentRelationsh appCreateUserGuid: '14c9a273-6f4a-4859-8d59-9264d3cee53f', rowVersion: 1, }, - relationshipType: ApiGen_CodeTypes_DocumentRelationType.AcquisitionFiles, + relationshipType, appCreateTimestamp: '2022-09-08T21:18:54.057', appLastUpdateTimestamp: '2022-09-08T21:18:54.057', appLastUpdateUserid: 'admin', @@ -56,6 +99,14 @@ export const mockDocumentResponse = (id = 1): ApiGen_Concepts_DocumentRelationsh rowVersion: 1, }); +export const getMockApiPropertyDocumentRelationship = ( + id = 1, + property = getMockApiProperty(), +): ApiGen_Concepts_PropertyDocumentRelationship => ({ + ...getMockApiDocumentRelationship(id, ApiGen_CodeTypes_DocumentRelationType.Properties), + property, +}); + export const mockDocumentsResponse = (): ApiGen_Concepts_DocumentRelationship[] => [ { id: 1, @@ -91,7 +142,7 @@ export const mockDocumentsResponse = (): ApiGen_Concepts_DocumentRelationship[] appLastUpdateTimestamp: '0001-01-01T00:00:00', rowVersion: 1, appLastUpdateUserid: null, - appCreateUserid: 'James Bond', + appCreateUserid: 'JAMESBOND', appLastUpdateUserGuid: null, appCreateUserGuid: null, }, @@ -315,1783 +366,6 @@ export const mockDocumentsResponse = (): ApiGen_Concepts_DocumentRelationship[] }, ]; -export const mockDocumentTypesResponse = (): ApiGen_Concepts_DocumentType[] => [ - { - documentType: 'SURV', - documentTypeDescription: 'Survey', - id: 1, - mayanId: 8, - - isDisabled: false, - - rowVersion: 1, - - appCreateTimestamp: '10-Jan-2022', - appLastUpdateTimestamp: '10-Jan-2022', - appLastUpdateUserid: null, - appCreateUserid: 'James Bond', - appLastUpdateUserGuid: null, - appCreateUserGuid: null, - documentTypePurpose: '', - }, - { - id: 2, - documentType: 'PRIVCOUN', - documentTypeDescription: 'Privy Council', - mayanId: 7, - isDisabled: false, - - rowVersion: 1, - - appCreateTimestamp: '10-Jan-2022', - appLastUpdateTimestamp: '10-Jan-2022', - appLastUpdateUserid: null, - appCreateUserid: 'James Bond', - appLastUpdateUserGuid: null, - appCreateUserGuid: null, - documentTypePurpose: '', - }, -]; - -export const mockDocumentTypesAcquisition = (): ApiGen_Concepts_DocumentType[] => [ - { - id: 36, - documentType: 'AFFISERV', - documentTypeDescription: 'Affidavit of service', - mayanId: 272, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.25', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 34, - documentType: 'APPREXPR', - documentTypeDescription: 'Approval of expropriation (Form 5)', - mayanId: 273, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.25', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 24, - documentType: 'APPRREVI', - documentTypeDescription: 'Appraisals/Reviews', - mayanId: 274, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.25', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 17, - documentType: 'BCASSE', - documentTypeDescription: 'BC assessment search', - mayanId: 275, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.25', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 43, - documentType: 'BRIENOTE', - documentTypeDescription: 'Briefing notes', - mayanId: 276, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.25', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 14, - documentType: 'CANALAND', - documentTypeDescription: 'Canada lands survey', - mayanId: 277, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.25', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 41, - documentType: 'CERTINSU', - documentTypeDescription: 'Certificate of Insurance (H0111)', - mayanId: 278, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.25', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 29, - documentType: 'COMPCHEQ', - documentTypeDescription: 'Compensation cheque', - mayanId: 280, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.25', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 10, - documentType: 'CORR', - documentTypeDescription: 'Correspondence', - mayanId: 281, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.25', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 28, - documentType: 'COMPREQU', - documentTypeDescription: 'Compensation requisition (H-120)', - mayanId: 282, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.25', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 22, - documentType: 'COMPSEAR', - documentTypeDescription: 'Company search', - mayanId: 283, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.25', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 30, - documentType: 'CONDENTR', - documentTypeDescription: 'Condition of entry (H0443)', - mayanId: 285, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.25', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 8, - documentType: 'CROWGRAN', - documentTypeDescription: 'Crown grant', - mayanId: 286, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 18, - documentType: 'DISTREGI', - documentTypeDescription: 'District road register', - mayanId: 287, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 19, - documentType: 'FIELNOTE', - documentTypeDescription: 'Field notes', - mayanId: 288, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 38, - documentType: 'FIRSNTAI', - documentTypeDescription: 'First nations consultation', - mayanId: 289, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 3, - documentType: 'GAZE', - documentTypeDescription: 'Gazette', - mayanId: 290, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 9, - documentType: 'HISTFILE', - documentTypeDescription: 'Historical file', - mayanId: 291, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 21, - documentType: 'LEASLICE', - documentTypeDescription: 'Lease / License (H1005/H1005A)', - mayanId: 292, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 47, - documentType: 'LEGACORR', - documentTypeDescription: 'Legal correspondence (ex: to AG/external lawyers)', - mayanId: 293, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 5, - documentType: 'LEGASURV', - documentTypeDescription: 'Legal survey plan', - mayanId: 294, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 23, - documentType: 'LTSADOCU', - documentTypeDescription: 'LTSA documents and plans (except title search)', - mayanId: 296, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 15, - documentType: 'MINIORDE', - documentTypeDescription: 'Ministerial order', - mayanId: 297, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 12, - documentType: 'MISCNOTE', - documentTypeDescription: 'Miscellaneous notes (LTSA)', - mayanId: 298, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 4, - documentType: 'MOTIPLAN', - documentTypeDescription: 'MOTI plan', - mayanId: 299, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 31, - documentType: 'NOTIADVA', - documentTypeDescription: 'Notice of advanced payment (Form 8)', - mayanId: 300, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 40, - documentType: 'NOTICLAI', - documentTypeDescription: 'Notice of claims/Litigation documents', - mayanId: 301, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 33, - documentType: 'NOTIEXPR', - documentTypeDescription: 'Notice of expropriation (Form 1)', - mayanId: 302, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 37, - documentType: 'NOTIPOSS', - documentTypeDescription: 'Notice of possible entry (H0224)', - mayanId: 303, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 6, - documentType: 'OIC', - documentTypeDescription: 'Order in Council (OIC)', - mayanId: 304, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 20, - documentType: 'OTHER', - documentTypeDescription: 'Other', - mayanId: 305, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 27, - documentType: 'OWNEAGRE', - documentTypeDescription: 'Owner agreement/offer', - mayanId: 306, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 2, - documentType: 'PAPLAN', - documentTypeDescription: 'PA plans / Design drawings', - mayanId: 307, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.71', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 13, - documentType: 'PHOTIMAG', - documentTypeDescription: 'Photos / Images / Video', - mayanId: 308, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 7, - documentType: 'PRIVCOUN', - documentTypeDescription: 'Privy council', - mayanId: 309, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 25, - documentType: 'PROFREPO', - documentTypeDescription: 'Professional reports (ex: engineering/environmental etc.)', - mayanId: 310, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 48, - documentType: 'RECONEGO', - documentTypeDescription: 'Record of negotiation', - mayanId: 311, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 32, - documentType: 'RELECLAI', - documentTypeDescription: 'Release of claims', - mayanId: 312, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 26, - documentType: 'SPENAUTH', - documentTypeDescription: 'Spending authority approval (SAA)', - mayanId: 313, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 44, - documentType: 'SURPPROP', - documentTypeDescription: 'Surplus property declaration', - mayanId: 314, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 39, - documentType: 'TAXNOTI', - documentTypeDescription: 'Tax notices and assessments', - mayanId: 315, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 45, - documentType: 'TEMPLICE', - documentTypeDescription: 'Temporary license for construction access (H0074)', - mayanId: 316, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 11, - documentType: 'TITLSEAR', - documentTypeDescription: 'Title search / Historical title', - mayanId: 317, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 16, - documentType: 'TRANADMI', - documentTypeDescription: 'Transfer of administration', - mayanId: 318, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 35, - documentType: 'VESTNOTI', - documentTypeDescription: 'Vesting notice (Form 9)', - mayanId: 319, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 50, - documentType: 'FINRECRD', - documentTypeDescription: 'Financial records (invoices, journal vouchers etc.)', - mayanId: 320, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, - { - id: 49, - documentType: 'OTHERLANDAGREEMENT', - documentTypeDescription: - 'Other Land Agreement (Indemnity Letter, Letter of Intended Use, Assumption Agreement, etc)', - mayanId: 321, - isDisabled: false, - appCreateTimestamp: '2024-10-15T19:44:11.713', - appLastUpdateTimestamp: '2024-10-15T19:46:55.253', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - documentTypePurpose: '', - }, -]; - -export const mockDocumentTypesAll = (): ApiGen_Concepts_DocumentType[] => [ - { - id: 11, - documentType: 'AFFISERV', - documentTypeDescription: 'Affidavit of service', - documentTypePurpose: null, - mayanId: 143, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 28, - }, - { - id: 55, - documentType: 'ALC', - documentTypeDescription: 'Agricultural Land Commission (ALC)', - documentTypePurpose: null, - mayanId: 205, - isDisabled: false, - appCreateTimestamp: '2024-09-20T23:18:12.197', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'MARODRIG', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '5d661d1e-14f0-477c-a7fb-31f21e8b4fda', - rowVersion: 34, - }, - { - id: 25, - documentType: 'APPRREVI', - documentTypeDescription: 'Appraisals/Reviews', - documentTypePurpose: null, - mayanId: 145, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 27, - }, - { - id: 9, - documentType: 'APPREXPR', - documentTypeDescription: 'Approval of expropriation (Form 5)', - documentTypePurpose: null, - mayanId: 146, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 42, - documentType: 'BCASSE', - documentTypeDescription: 'BC assessment search', - documentTypePurpose: null, - mayanId: 144, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 27, - }, - { - id: 18, - documentType: 'BRIENOTE', - documentTypeDescription: 'Briefing notes', - documentTypePurpose: null, - mayanId: 155, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 27, - }, - { - id: 50, - documentType: 'CDOGTEMP', - documentTypeDescription: 'CDOGS template', - documentTypePurpose: null, - mayanId: 148, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 27, - }, - { - id: 39, - documentType: 'CANALAND', - documentTypeDescription: 'Canada lands survey', - documentTypePurpose: null, - mayanId: 151, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 51, - documentType: 'CERTCOMPL', - documentTypeDescription: 'Certificate of Compliance', - documentTypePurpose: null, - mayanId: 201, - isDisabled: false, - appCreateTimestamp: '2024-04-09T17:08:53.417', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 16, - documentType: 'CERTINSU', - documentTypeDescription: 'Certificate of Insurance (H0111)', - documentTypePurpose: null, - mayanId: 160, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 27, - }, - { - id: 48, - documentType: 'COMPSEAR', - documentTypeDescription: 'Company search', - documentTypePurpose: null, - mayanId: 156, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 4, - documentType: 'COMPCHEQ', - documentTypeDescription: 'Compensation cheque', - documentTypePurpose: null, - mayanId: 159, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 3, - documentType: 'COMPREQU', - documentTypeDescription: 'Compensation requisition (H-120)', - documentTypePurpose: null, - mayanId: 158, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 28, - }, - { - id: 5, - documentType: 'CONDENTR', - documentTypeDescription: 'Condition of entry (H0443)', - documentTypePurpose: null, - mayanId: 147, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 21, - documentType: 'CONVCLOS', - documentTypeDescription: 'Conveyance closing documents (ex: PTT forms, Form A transfer etc.)', - documentTypePurpose: null, - mayanId: 157, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 35, - documentType: 'CORR', - documentTypeDescription: 'Correspondence', - documentTypePurpose: null, - mayanId: 149, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 33, - documentType: 'CROWGRAN', - documentTypeDescription: 'Crown grant', - documentTypePurpose: null, - mayanId: 154, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 43, - documentType: 'DISTREGI', - documentTypeDescription: 'District road register', - documentTypePurpose: null, - mayanId: 152, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 28, - }, - { - id: 52, - documentType: 'ENHREFREC', - documentTypeDescription: 'Enhanced Referral Records', - documentTypePurpose: null, - mayanId: 202, - isDisabled: false, - appCreateTimestamp: '2024-04-09T17:08:53.42', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 44, - documentType: 'FIELNOTE', - documentTypeDescription: 'Field notes', - documentTypePurpose: null, - mayanId: 150, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 28, - }, - { - id: 45, - documentType: 'FINRECRD', - documentTypeDescription: 'Financial records (invoices, journal vouchers etc.)', - documentTypePurpose: null, - mayanId: 153, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 53, - documentType: 'FNSCR', - documentTypeDescription: 'First Nations Strength of Claim Report', - documentTypePurpose: null, - mayanId: 203, - isDisabled: false, - appCreateTimestamp: '2024-04-09T17:08:53.42', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 13, - documentType: 'FIRSNTAI', - documentTypeDescription: 'First nations consultation', - documentTypePurpose: null, - mayanId: 161, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 56, - documentType: 'FORM12', - documentTypeDescription: 'Form 12', - documentTypePurpose: null, - mayanId: 207, - isDisabled: false, - appCreateTimestamp: '2024-09-20T23:18:12.197', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'MARODRIG', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '5d661d1e-14f0-477c-a7fb-31f21e8b4fda', - rowVersion: 33, - }, - { - id: 28, - documentType: 'GAZE', - documentTypeDescription: 'Gazette', - documentTypePurpose: null, - mayanId: 170, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 34, - documentType: 'HISTFILE', - documentTypeDescription: 'Historical file', - documentTypePurpose: null, - mayanId: 171, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 26, - documentType: 'LTSADOCU', - documentTypeDescription: 'LTSA documents and plans (except title search)', - documentTypePurpose: null, - mayanId: 172, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 57, - documentType: 'LANDACTTENRES', - documentTypeDescription: 'Land Act Tenure/Reserves', - documentTypePurpose: null, - mayanId: 206, - isDisabled: false, - appCreateTimestamp: '2024-09-20T23:18:12.197', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'MARODRIG', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '5d661d1e-14f0-477c-a7fb-31f21e8b4fda', - rowVersion: 34, - }, - { - id: 27, - documentType: 'LEASLICE', - documentTypeDescription: 'Lease / License (H1005/H1005A)', - documentTypePurpose: null, - mayanId: 169, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 22, - documentType: 'LEGACORR', - documentTypeDescription: 'Legal correspondence (ex: to AG/external lawyers)', - documentTypePurpose: null, - mayanId: 166, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 30, - documentType: 'LEGASURV', - documentTypeDescription: 'Legal survey plan', - documentTypePurpose: null, - mayanId: 164, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 17, - documentType: 'LICEAPPR', - documentTypeDescription: 'Licensing approval/sign-off', - documentTypePurpose: null, - mayanId: 168, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 40, - documentType: 'MINIORDE', - documentTypeDescription: 'Ministerial order', - documentTypePurpose: null, - mayanId: 167, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 38, - documentType: 'MISCNOTE', - documentTypeDescription: 'Miscellaneous notes (LTSA)', - documentTypePurpose: null, - mayanId: 165, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 29, - documentType: 'MOTIPLAN', - documentTypeDescription: 'MOTI plan', - documentTypePurpose: null, - mayanId: 162, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 6, - documentType: 'NOTIADVA', - documentTypeDescription: 'Notice of advanced payment (Form 8)', - documentTypePurpose: null, - mayanId: 163, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 15, - documentType: 'NOTICLAI', - documentTypeDescription: 'Notice of claims/Litigation documents', - documentTypePurpose: null, - mayanId: 173, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 8, - documentType: 'NOTIEXPR', - documentTypeDescription: 'Notice of expropriation (Form 1)', - documentTypePurpose: null, - mayanId: 174, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 12, - documentType: 'NOTIPOSS', - documentTypeDescription: 'Notice of possible entry (H0224)', - documentTypePurpose: null, - mayanId: 178, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 31, - documentType: 'OIC', - documentTypeDescription: 'Order in Council (OIC)', - documentTypePurpose: null, - mayanId: 175, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 47, - documentType: 'OTHER', - documentTypeDescription: 'Other', - documentTypePurpose: null, - mayanId: 185, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 46, - documentType: 'OTHERLANDAGREEMENT', - documentTypeDescription: - 'Other Land Agreement (Indemnity Letter, Letter of Intended Use, Assumption Agreement, etc)', - documentTypePurpose: null, - mayanId: 181, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 2, - documentType: 'OWNEAGRE', - documentTypeDescription: 'Owner agreement/offer', - documentTypePurpose: null, - mayanId: 176, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 34, - }, - { - id: 1, - documentType: 'PAPLAN', - documentTypeDescription: 'PA plans / Design drawings', - documentTypePurpose: null, - mayanId: 182, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 34, - }, - { - id: 49, - documentType: 'PHOTIMAG', - documentTypeDescription: 'Photos / Images / Video', - documentTypePurpose: null, - mayanId: 184, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 32, - documentType: 'PRIVCOUN', - documentTypeDescription: 'Privy council', - documentTypePurpose: null, - mayanId: 180, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 24, - documentType: 'PROFREPO', - documentTypeDescription: 'Professional reports (ex: engineering/environmental etc.)', - documentTypePurpose: null, - mayanId: 177, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 54, - documentType: 'PURSALEAGRE', - documentTypeDescription: 'Purchase and Sale Agreement', - documentTypePurpose: null, - mayanId: 204, - isDisabled: false, - appCreateTimestamp: '2024-04-09T17:08:53.42', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 37, - documentType: 'RECONEGO', - documentTypeDescription: 'Record of negotiation', - documentTypePurpose: null, - mayanId: 179, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 7, - documentType: 'RELECLAI', - documentTypeDescription: 'Release of claims', - documentTypePurpose: null, - mayanId: 183, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 34, - }, - { - id: 23, - documentType: 'SPENAUTH', - documentTypeDescription: 'Spending authority approval (SAA)', - documentTypePurpose: null, - mayanId: 188, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 19, - documentType: 'SURPPROP', - documentTypeDescription: 'Surplus property declaration', - documentTypePurpose: null, - mayanId: 189, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 14, - documentType: 'TAXNOTI', - documentTypeDescription: 'Tax notices and assessments', - documentTypePurpose: null, - mayanId: 191, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 20, - documentType: 'TEMPLICE', - documentTypeDescription: 'Temporary license for construction access (H0074)', - documentTypePurpose: null, - mayanId: 186, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 36, - documentType: 'TITLSEAR', - documentTypeDescription: 'Title search / Historical title', - documentTypePurpose: null, - mayanId: 190, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 32, - }, - { - id: 41, - documentType: 'TRANADMI', - documentTypeDescription: 'Transfer of administration', - documentTypePurpose: null, - mayanId: 187, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, - { - id: 10, - documentType: 'VESTNOTI', - documentTypeDescription: 'Vesting notice (Form 9)', - documentTypePurpose: null, - mayanId: 192, - isDisabled: false, - appCreateTimestamp: '2023-11-03T20:51:08.747', - appLastUpdateTimestamp: '2024-10-25T18:48:12.55', - appLastUpdateUserid: 'service', - appCreateUserid: 'service', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '00000000-0000-0000-0000-000000000000', - rowVersion: 33, - }, -]; - -export const mockDocumentTypeMetadataBcAssessment = (): ApiGen_Mayan_DocumentTypeMetadataType[] => [ - { - id: 73, - document_type: { - id: 4, - label: 'BC assessment search', - delete_time_period: 30, - delete_time_unit: 'days', - document_stub_expiration_interval: 86400, - document_stub_pruning_enabled: true, - trash_time_period: null, - trash_time_unit: null, - filename_generator_backend: 'uuid', - filename_generator_backend_arguments: '', - }, - metadata_type: { - default: null, - id: 23, - label: 'Civic address', - lookup: null, - name: 'CIVIC_ADDRESS', - parser: '', - parser_arguments: '', - url: 'http://localhost:7080/api/v4/metadata_types/23/', - validation: '', - validation_arguments: '', - }, - required: false, - url: 'http://localhost:7080/api/v4/document_types/4/metadata_types/73/', - }, - { - id: 40, - document_type: { - id: 4, - label: 'BC assessment search', - delete_time_period: 30, - delete_time_unit: 'days', - document_stub_expiration_interval: 86400, - document_stub_pruning_enabled: true, - trash_time_period: null, - trash_time_unit: null, - filename_generator_backend: 'uuid', - filename_generator_backend_arguments: '', - }, - metadata_type: { - default: null, - id: 33, - label: 'Jurisdiction', - lookup: null, - name: 'JURISDICTION', - parser: '', - parser_arguments: '', - url: 'http://localhost:7080/api/v4/metadata_types/33/', - validation: '', - validation_arguments: '', - }, - required: false, - url: 'http://localhost:7080/api/v4/document_types/4/metadata_types/40/', - }, - { - id: 42, - document_type: { - id: 4, - label: 'BC assessment search', - delete_time_period: 30, - delete_time_unit: 'days', - document_stub_expiration_interval: 86400, - document_stub_pruning_enabled: true, - trash_time_period: null, - trash_time_unit: null, - filename_generator_backend: 'uuid', - filename_generator_backend_arguments: '', - }, - metadata_type: { - default: null, - id: 40, - label: 'Roll #', - lookup: null, - name: 'ROLL_NUMBER', - parser: '', - parser_arguments: '', - url: 'http://localhost:7080/api/v4/metadata_types/40/', - validation: '', - validation_arguments: '', - }, - required: false, - url: 'http://localhost:7080/api/v4/document_types/4/metadata_types/42/', - }, - { - id: 58, - document_type: { - id: 4, - label: 'BC assessment search', - delete_time_period: 30, - delete_time_unit: 'days', - document_stub_expiration_interval: 86400, - document_stub_pruning_enabled: true, - trash_time_period: null, - trash_time_unit: null, - filename_generator_backend: 'uuid', - filename_generator_backend_arguments: '', - }, - metadata_type: { - default: null, - id: 14, - label: 'Year', - lookup: null, - name: 'YEAR', - parser: '', - parser_arguments: '', - url: 'http://localhost:7080/api/v4/metadata_types/14/', - validation: '', - validation_arguments: '', - }, - required: false, - url: 'http://localhost:7080/api/v4/document_types/4/metadata_types/58/', - }, -]; - -export const mockDocumentMetadata = (): ApiGen_Mayan_DocumentMetadata[] => [ - { - document: { - language: '', - uuid: '', - label: '', - datetime_created: '2022-07-27T16:06:42.42', - description: '', - file_latest: { - id: 2, - comment: '', - encoding: '', - filename: '', - mimetype: '', - size: 12, - timestamp: '', - file: '', - checksum: '', - document_id: 99, - }, - id: 1, - document_type: { - id: 1, - label: 'Survey', - delete_time_period: null, - delete_time_unit: null, - trash_time_period: null, - trash_time_unit: null, - document_stub_expiration_interval: null, - document_stub_pruning_enabled: null, - filename_generator_backend: '', - filename_generator_backend_arguments: '', - }, - }, - id: 1, - metadata_type: { - id: 1, - label: 'Tag', - default: null, - lookup: null, - name: null, - parser: null, - parser_arguments: null, - url: null, - validation: null, - validation_arguments: null, - }, - url: '', - value: 'Tag1234', - }, -]; - export const mockDocumentBatchUploadResponse = (): ApiGen_Requests_DocumentUploadRelationshipResponse[] => [ { @@ -2169,403 +443,3 @@ export const mockDocumentBatchUploadResponse = }, }, ]; - -export const mockDocumentSearchResultsResponse = (): ApiGen_Concepts_DocumentSearchResult[] => [ - { - acquisitionDocuments: [ - { - id: 26, - parentId: '64', - parentNameOrNumber: '01-1-01', - document: { - id: 22, - fileName: 'Form12_Carbone_Template.docx', - documentType: { - id: 41, - documentType: 'BCASSE', - documentTypeDescription: 'BC assessment search', - documentTypePurpose: null, - mayanId: 84, - isDisabled: false, - appCreateTimestamp: '2025-10-27T22:09:06.29', - appLastUpdateTimestamp: '2025-10-27T22:12:24.617', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - }, - statusTypeCode: { - id: 'FINAL', - description: 'Final', - isDisabled: false, - displayOrder: 5, - }, - documentQueueStatusTypeCode: { - id: 'SUCCESS', - description: 'Success', - isDisabled: false, - displayOrder: 5, - }, - mayanDocumentId: 3, - appCreateTimestamp: '2025-10-27T22:16:45.133', - appLastUpdateTimestamp: '2025-10-27T22:17:00.783', - appLastUpdateUserid: 'service', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - }, - relationshipType: ApiGen_CodeTypes_DocumentRelationType.AcquisitionFiles, - appCreateTimestamp: '2025-10-27T22:16:45.2', - appLastUpdateTimestamp: '2025-10-27T22:16:45.2', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 1, - }, - ], - dispositionDocuments: [], - leaseDocuments: [], - managementDocuments: [], - mgmtActivitiesDocuments: [], - projectDocuments: [], - propertiesDocuments: [], - researchDocuments: [], - documentRelationships: [ - { - id: 26, - parentId: '64', - parentNameOrNumber: '01-1-01', - document: { - id: 22, - fileName: 'Form12_Carbone_Template.docx', - documentType: { - id: 41, - documentType: 'BCASSE', - documentTypeDescription: 'BC assessment search', - documentTypePurpose: null, - mayanId: 84, - isDisabled: false, - appCreateTimestamp: '2025-10-27T22:09:06.29', - appLastUpdateTimestamp: '2025-10-27T22:12:24.617', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - }, - statusTypeCode: { - id: 'FINAL', - description: 'Final', - isDisabled: false, - displayOrder: 5, - }, - documentQueueStatusTypeCode: { - id: 'SUCCESS', - description: 'Success', - isDisabled: false, - displayOrder: 5, - }, - mayanDocumentId: 3, - appCreateTimestamp: '2025-10-27T22:16:45.133', - appLastUpdateTimestamp: '2025-10-27T22:17:00.783', - appLastUpdateUserid: 'service', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - }, - relationshipType: ApiGen_CodeTypes_DocumentRelationType.AcquisitionFiles, - appCreateTimestamp: '2025-10-27T22:16:45.2', - appLastUpdateTimestamp: '2025-10-27T22:16:45.2', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 1, - }, - ], - id: 22, - fileName: 'Form12_Carbone_Template.docx', - documentType: { - id: 41, - documentType: 'BCASSE', - documentTypeDescription: 'BC assessment search', - documentTypePurpose: null, - mayanId: 84, - isDisabled: false, - appCreateTimestamp: '2025-10-27T22:09:06.29', - appLastUpdateTimestamp: '2025-10-27T22:12:24.617', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - }, - statusTypeCode: { - id: 'FINAL', - description: 'Final', - isDisabled: false, - displayOrder: 5, - }, - documentQueueStatusTypeCode: { - id: 'SUCCESS', - description: 'Success', - isDisabled: false, - displayOrder: 5, - }, - mayanDocumentId: 3, - appCreateTimestamp: '2025-10-27T22:16:45.133', - appLastUpdateTimestamp: '2025-10-27T22:17:00.783', - appLastUpdateUserid: 'service', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - }, - { - acquisitionDocuments: [], - dispositionDocuments: [], - leaseDocuments: [], - managementDocuments: [], - mgmtActivitiesDocuments: [], - projectDocuments: [], - propertiesDocuments: [ - { - property: { - id: 37, - propertyType: null, - anomalies: [], - tenures: [], - roadTypes: [], - status: null, - dataSource: null, - region: null, - district: null, - dataSourceEffectiveDateOnly: '2021-08-31', - latitude: 992594.3513207644, - longitude: 1213247.77464335, - isRetired: false, - pphStatusUpdateUserid: null, - pphStatusUpdateTimestamp: null, - pphStatusUpdateUserGuid: null, - isRwyBeltDomPatent: false, - pphStatusTypeCode: null, - address: { - id: 1, - streetAddress1: '45 - 904 Hollywood Crescent', - streetAddress2: 'Living in a van', - streetAddress3: 'Down by the River', - municipality: 'Hollywood North', - provinceStateId: 1, - province: null, - countryId: 1, - country: { - id: 1, - code: 'CA', - description: 'Canada', - displayOrder: 1, - }, - districtCode: null, - district: null, - region: null, - regionCode: null, - countryOther: null, - postal: 'V6Z 5G7', - latitude: null, - longitude: null, - comment: null, - rowVersion: 2, - }, - pid: 15937551, - pin: null, - planNumber: null, - isOwned: false, - areaUnit: null, - landArea: 1, - isVolumetricParcel: false, - volumetricMeasurement: null, - volumetricUnit: null, - volumetricType: null, - landLegalDescription: null, - municipalZoning: null, - location: { - coordinate: { - x: 1213247.77464335, - y: 992594.3513207644, - }, - }, - boundary: { - type: 'Polygon', - coordinates: [ - [ - [1213242.4695999988, 992600.2574000051], - [1213243.7601999992, 992600.5253999997], - [1213242.576600001, 992597.9130000025], - [1213243.576, 992575.8795999978], - [1213253.3860000002, 992580.7179999985], - [1213252.4069999997, 992602.3270000033], - [1213251.9290000002, 992612.8686000016], - [1213242.113199999, 992608.0316000003], - [1213242.4695999988, 992600.2574000051], - ], - ], - }, - generalLocation: null, - historicalFileNumbers: [], - tenureCleanups: [], - surplusDeclarationType: null, - surplusDeclarationComment: null, - surplusDeclarationDate: '0001-01-01', - netBookAmount: null, - netBookNote: null, - rowVersion: 3, - }, - id: 1, - parentId: '37', - parentNameOrNumber: '015-937-551', - document: { - id: 23, - fileName: 'Form12_Carbone_Template.docx', - documentType: { - id: 67, - documentType: 'BRIENOTE', - documentTypeDescription: 'Briefing notes', - documentTypePurpose: null, - mayanId: 85, - isDisabled: false, - appCreateTimestamp: '2025-10-27T22:09:06.29', - appLastUpdateTimestamp: '2025-10-27T22:12:24.617', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - }, - statusTypeCode: { - id: 'DRAFT', - description: 'Draft', - isDisabled: false, - displayOrder: 2, - }, - documentQueueStatusTypeCode: { - id: 'SUCCESS', - description: 'Success', - isDisabled: false, - displayOrder: 5, - }, - mayanDocumentId: 4, - appCreateTimestamp: '2025-10-27T22:31:17.967', - appLastUpdateTimestamp: '2025-10-27T22:31:32.39', - appLastUpdateUserid: 'service', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - }, - relationshipType: ApiGen_CodeTypes_DocumentRelationType.Properties, - appCreateTimestamp: '2025-10-27T22:31:18.087', - appLastUpdateTimestamp: '2025-10-27T22:31:18.087', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 1, - }, - ], - researchDocuments: [], - documentRelationships: [ - { - id: 1, - parentId: '37', - parentNameOrNumber: '015-937-551', - document: { - id: 23, - fileName: 'Form12_Carbone_Template.docx', - documentType: { - id: 67, - documentType: 'BRIENOTE', - documentTypeDescription: 'Briefing notes', - documentTypePurpose: null, - mayanId: 85, - isDisabled: false, - appCreateTimestamp: '2025-10-27T22:09:06.29', - appLastUpdateTimestamp: '2025-10-27T22:12:24.617', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - }, - statusTypeCode: { - id: 'DRAFT', - description: 'Draft', - isDisabled: false, - displayOrder: 2, - }, - documentQueueStatusTypeCode: { - id: 'SUCCESS', - description: 'Success', - isDisabled: false, - displayOrder: 5, - }, - mayanDocumentId: 4, - appCreateTimestamp: '2025-10-27T22:31:17.967', - appLastUpdateTimestamp: '2025-10-27T22:31:32.39', - appLastUpdateUserid: 'service', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - }, - relationshipType: ApiGen_CodeTypes_DocumentRelationType.Properties, - appCreateTimestamp: '2025-10-27T22:31:18.087', - appLastUpdateTimestamp: '2025-10-27T22:31:18.087', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 1, - }, - ], - id: 23, - fileName: 'Form12_Carbone_Template.docx', - documentType: { - id: 67, - documentType: 'BRIENOTE', - documentTypeDescription: 'Briefing notes', - documentTypePurpose: null, - mayanId: 85, - isDisabled: false, - appCreateTimestamp: '2025-10-27T22:09:06.29', - appLastUpdateTimestamp: '2025-10-27T22:12:24.617', - appLastUpdateUserid: 'EHERRERA', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - }, - statusTypeCode: { - id: 'DRAFT', - description: 'Draft', - isDisabled: false, - displayOrder: 2, - }, - documentQueueStatusTypeCode: { - id: 'SUCCESS', - description: 'Success', - isDisabled: false, - displayOrder: 5, - }, - mayanDocumentId: 4, - appCreateTimestamp: '2025-10-27T22:31:17.967', - appLastUpdateTimestamp: '2025-10-27T22:31:32.39', - appLastUpdateUserid: 'service', - appCreateUserid: 'EHERRERA', - appLastUpdateUserGuid: '00000000-0000-0000-0000-000000000000', - appCreateUserGuid: '939a27d0-76cd-49b0-b474-53166adb73da', - rowVersion: 2, - }, -]; diff --git a/source/frontend/src/utils/mapPropertyUtils.test.tsx b/source/frontend/src/utils/mapPropertyUtils.test.tsx index 191b18158a..5a94a58066 100644 --- a/source/frontend/src/utils/mapPropertyUtils.test.tsx +++ b/source/frontend/src/utils/mapPropertyUtils.test.tsx @@ -7,14 +7,17 @@ import { SelectedFeatureDataset } from '@/components/common/mapFSM/useLocationFe import { getMockSelectedFeatureDataset } from '@/mocks/featureset.mock'; import { getEmptyFileProperty } from '@/mocks/fileProperty.mock'; import { getMockLatLng, getMockLocation, getMockPolygon } from '@/mocks/geometries.mock'; +import { getMockApiProperty } from '@/mocks/properties.mock'; import { ApiGen_Concepts_FileProperty } from '@/models/api/generated/ApiGen_Concepts_FileProperty'; import { ApiGen_Concepts_Geometry } from '@/models/api/generated/ApiGen_Concepts_Geometry'; +import { ApiGen_Concepts_Property } from '@/models/api/generated/ApiGen_Concepts_Property'; import { getEmptyProperty } from '@/models/defaultInitializers'; import { PMBC_FullyAttributed_Feature_Properties } from '@/models/layers/parcelMapBC'; import { PIMS_Property_View } from '@/models/layers/pimsPropertyView'; import { filePropertyToLocationBoundaryDataset, + getApiPropertyName, getFilePropertyName, getLatLng, getPrettyLatLng, @@ -152,7 +155,7 @@ describe('mapPropertyUtils', () => { pimsFeature: {} as any, parcelFeature: {} as any, }, - { label: NameSourceType.LOCATION, value: '2.000000, 1.000000' }, + { label: NameSourceType.LOCATION, value: '1.000000, 2.000000' }, ], [ { @@ -248,6 +251,40 @@ describe('mapPropertyUtils', () => { }, ); + it.each([ + ['PID', { ...getMockApiProperty(), pid: 123456789 }, 'PID: 123-456-789'], + ['PIN', { ...getMockApiProperty(), pid: null, pin: 90072652 }, 'PIN: 90072652'], + [ + 'Location', + { ...getMockApiProperty(), pid: null, pin: null, latitude: 48.43, longitude: -123.49 }, + 'Location: 48.430000, -123.490000', + ], + ])( + 'getFilePropertyName - %s', + (_: string, property?: ApiGen_Concepts_Property, expected?: string) => { + const propName = getFilePropertyName({ ...getEmptyFileProperty(), property }); + const actual = propName ? `${propName.label}: ${propName.value}` : undefined; + expect(actual).toEqual(expected); + }, + ); + + it.each([ + ['PID', { ...getMockApiProperty(), pid: 123456789 }, 'PID: 123-456-789'], + ['PIN', { ...getMockApiProperty(), pid: null, pin: 90072652 }, 'PIN: 90072652'], + [ + 'Location', + { ...getMockApiProperty(), pid: null, pin: null, latitude: 48.43, longitude: -123.49 }, + 'Location: 48.430000, -123.490000', + ], + ])( + 'getApiPropertyName - %s', + (_: string, property?: ApiGen_Concepts_Property, expected?: string) => { + const propName = getApiPropertyName(property); + const actual = propName ? `${propName.label}: ${propName.value}` : undefined; + expect(actual).toEqual(expected); + }, + ); + it.each([ [ { diff --git a/source/frontend/src/utils/mapPropertyUtils.ts b/source/frontend/src/utils/mapPropertyUtils.ts index 8c96bce96c..97a6d0e825 100644 --- a/source/frontend/src/utils/mapPropertyUtils.ts +++ b/source/frontend/src/utils/mapPropertyUtils.ts @@ -82,6 +82,8 @@ export const getPropertyNameFromSelectedFeatureSet = ( const planNumber = planFromFeatureSet(selectedFeature); const address = addressFromFeatureSet(selectedFeature); const location = selectedFeature.location; + const latitude = location?.lat ?? 0; + const longitude = location?.lng ?? 0; if (exists(pid) && pid?.toString()?.length > 0 && pid !== '0') { return { label: NameSourceType.PID, value: pidFormatter(pid.toString()) }; @@ -92,7 +94,7 @@ export const getPropertyNameFromSelectedFeatureSet = ( } else if (exists(location?.lat) && exists(location?.lng)) { return { label: NameSourceType.LOCATION, - value: compact([location.lng?.toFixed(6), location.lat?.toFixed(6)]).join(', '), + value: compact([latitude.toFixed(6), longitude.toFixed(6)]).join(', '), }; } else if (exists(address) && address?.length > 0) { return { label: NameSourceType.ADDRESS, value: address ?? '' }; @@ -167,7 +169,7 @@ export const getApiPropertyName = ( } else if (exists(latitude) && exists(longitude)) { return { label: NameSourceType.LOCATION, - value: compact([longitude.toFixed(6), latitude.toFixed(6)]).join(', '), + value: compact([latitude.toFixed(6), longitude.toFixed(6)]).join(', '), }; } else if (exists(address) && address?.length > 0) { return { label: NameSourceType.ADDRESS, value: address ?? '' };