This commit is contained in:
2022-12-16 06:01:23 +00:00
parent 26c2ae5cc9
commit effd96143f
310 changed files with 48715 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
namespace Sockeye.Models
{
//physical
public record AddressRecord(string Name, string Address, string City, string Region, string Country, string AddressPostal, decimal? Latitude, decimal? Longitude);
//postal
public record PostalAddressRecord(string Name, string PostAddress, string PostCity, string PostRegion, string PostCountry, string PostCode);
}

View File

@@ -0,0 +1,19 @@
using System;
using Sockeye.Biz;
using Newtonsoft.Json.Linq;
namespace Sockeye.Models
{
/// <summary>
/// Import data object used by admin->import feature
/// </summary>
public class AyImportData
{
public SockType SockType { get; set; }
public JArray Data { get; set; }
public bool DoImport {get;set;}
public bool DoUpdate {get;set;}
}
}

View File

@@ -0,0 +1,40 @@
using Sockeye.Biz;
using System;
namespace Sockeye.Models
{
/// <summary>
/// Job info fetch data
/// </summary>
public class JobOperationsFetchInfo
{
/// <summary>
/// Identity of the job
/// </summary>
/// <returns> id value of job, can be used to fetch logs</returns>
public Guid GId { get; set; }
/// <summary>
/// Date job was submitted
/// </summary>
/// <returns>UTC date/time</returns>
public DateTime Created { get; set; }
/// <summary>
/// Date of the most recent operation for this job
/// </summary>
/// <returns>UTC date/time</returns>
public DateTime LastAction { get; set; }
/// <summary>
/// Descriptive name of the job
/// </summary>
/// <returns>string</returns>
public string Name { get; set; }
/// <summary>
/// Status of the job
/// </summary>
/// <returns>Job status as string</returns>
public string JobStatus { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
namespace Sockeye.Models
{
/// <summary>
/// Job log item
/// </summary>
public class JobOperationsLogInfoItem
{
public DateTime Created { get; set; }
public string StatusText { get; set; }
public Guid JobId { get; set; }
}
}

View File

@@ -0,0 +1,26 @@
using Sockeye.Biz;
using System;
namespace Sockeye.Models
{
/// <summary>
/// Job Progress
/// </summary>
public class JobProgress
{
/// <summary>
/// Progress string
/// </summary>
/// <returns>string</returns>
public string Progress { get; set; }
/// <summary>
/// Status of the job
/// </summary>
/// <returns>Job status</returns>
public JobStatus JobStatus { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace Sockeye.Models
{
//Used by QBI for part and service /travel rate lists for caching and mapping
public class NameIdActiveChargeCostItem
{
public long Id { get; set; }
public string Name { get; set; }
public bool Active { get; set; }
public decimal Cost { get; set; }
public decimal Charge { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
namespace Sockeye.Models
{
public class NameIdActiveItem
{
public long Id { get; set; }
public string Name { get; set; }
public bool? Active { get; set; }
}
}

View File

@@ -0,0 +1,4 @@
namespace Sockeye.Models
{
public record NameIdDefaultItem(long Id, string Name, bool Default);
}

View File

@@ -0,0 +1,10 @@
namespace Sockeye.Models
{
public class NameIdItem
{
public long Id { get; set; }
public string Name { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
namespace Sockeye.Models
{
/// <summary>
/// Dto object for name only parameters in routes
/// </summary>
public class NameItem
{
public string Name { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
namespace Sockeye.Models
{
public class NewTextIdConcurrencyTokenItem
{
public long Id { get; set; }
public string NewText { get; set; }
public uint Concurrency { get; set; }
}
}

View File

@@ -0,0 +1,8 @@
namespace Sockeye.Models
{
public class ParentAndChildItemId
{
public long ParentId { get; set; }
public long ChildItemId { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
using System;
using Sockeye.Biz;
namespace Sockeye.Models
{
public class ScheduleItemAdjustParams
{
public SockType Type { get; set; }
public long Id { get; set; }
public long? UserId { get; set; }
public DateTime Start { get; set; }
public DateTime End { get; set; }
}
}

View File

@@ -0,0 +1,8 @@
namespace Sockeye.Models
{
public class UploadFileData
{
public string name { get; set; }
public long lastModified { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
namespace Sockeye.Models
{
/// <summary>
/// Uploaded file info in it's temporary state
/// </summary>
public class UploadedFileInfo
{
public string InitialUploadedPathName { get; set; }
public string OriginalFileName { get; set; }
public string MimeType { get; set; }
public DateTime LastModified {get;set;}
}
}