This commit is contained in:
8
server/models/dto/AddressRecord.cs
Normal file
8
server/models/dto/AddressRecord.cs
Normal 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);
|
||||
}
|
||||
19
server/models/dto/AyImportData.cs
Normal file
19
server/models/dto/AyImportData.cs
Normal 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;}
|
||||
}
|
||||
|
||||
}
|
||||
40
server/models/dto/JobOperationsFetchInfo.cs
Normal file
40
server/models/dto/JobOperationsFetchInfo.cs
Normal 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; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
16
server/models/dto/JobOperationsLogInfoItem.cs
Normal file
16
server/models/dto/JobOperationsLogInfoItem.cs
Normal 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; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
26
server/models/dto/JobProgress.cs
Normal file
26
server/models/dto/JobProgress.cs
Normal 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; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
13
server/models/dto/NameIdActiveChargeCostItem.cs
Normal file
13
server/models/dto/NameIdActiveChargeCostItem.cs
Normal 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; }
|
||||
}
|
||||
|
||||
}
|
||||
12
server/models/dto/NameIdActiveItem.cs
Normal file
12
server/models/dto/NameIdActiveItem.cs
Normal 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; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
4
server/models/dto/NameIdDefaultItem.cs
Normal file
4
server/models/dto/NameIdDefaultItem.cs
Normal file
@@ -0,0 +1,4 @@
|
||||
namespace Sockeye.Models
|
||||
{
|
||||
public record NameIdDefaultItem(long Id, string Name, bool Default);
|
||||
}
|
||||
10
server/models/dto/NameIdItem.cs
Normal file
10
server/models/dto/NameIdItem.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Sockeye.Models
|
||||
{
|
||||
|
||||
public class NameIdItem
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
12
server/models/dto/NameItem.cs
Normal file
12
server/models/dto/NameItem.cs
Normal 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; }
|
||||
}
|
||||
|
||||
}
|
||||
11
server/models/dto/NewTextIdConcurrencyTokenItem.cs
Normal file
11
server/models/dto/NewTextIdConcurrencyTokenItem.cs
Normal 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; }
|
||||
}
|
||||
|
||||
}
|
||||
8
server/models/dto/ParentAndChildItemId.cs
Normal file
8
server/models/dto/ParentAndChildItemId.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Sockeye.Models
|
||||
{
|
||||
public class ParentAndChildItemId
|
||||
{
|
||||
public long ParentId { get; set; }
|
||||
public long ChildItemId { get; set; }
|
||||
}
|
||||
}
|
||||
14
server/models/dto/ScheduleItemAdjustParams.cs
Normal file
14
server/models/dto/ScheduleItemAdjustParams.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
8
server/models/dto/UploadFileData.cs
Normal file
8
server/models/dto/UploadFileData.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Sockeye.Models
|
||||
{
|
||||
public class UploadFileData
|
||||
{
|
||||
public string name { get; set; }
|
||||
public long lastModified { get; set; }
|
||||
}
|
||||
}
|
||||
16
server/models/dto/UploadedFileInfo.cs
Normal file
16
server/models/dto/UploadedFileInfo.cs
Normal 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;}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user