Retructured solution

This commit is contained in:
Khwezi Mngoma
2026-05-13 20:06:24 +02:00
parent 26075cd9a7
commit a42c51d7b2
231 changed files with 1618 additions and 1408 deletions
@@ -1,8 +0,0 @@
namespace LiteCharms.Models.Configuraton.Email;
public class Account
{
public string? Username { get; set; }
public string? Password { get; set; }
}
@@ -1,12 +0,0 @@
namespace LiteCharms.Models.Configuraton.Email;
public class SmtpSettings
{
public Account? Credentials { get; set; }
public int Port { get; set; }
public string? Host { get; set; }
public bool UseSsl { get; set; }
}
-44
View File
@@ -1,44 +0,0 @@
namespace LiteCharms.Models;
public class Customer
{
public Guid Id { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset? UpdatedAt { get; set; }
public string? Company { get; set; }
public string? Name { get; set; }
public string? LastName { get; set; }
public string? Tax { get; set; }
public string? Email { get; set; }
public string? Discord { get; set; }
public string? Slack { get; set; }
public string? LinkedIn { get; set; }
public string? Whatsapp { get; set; }
public string? Website { get; set; }
public string? Phone { get; set; }
public string? Address { get; set; }
public string? City { get; set; }
public string? Region { get; set; }
public string? Country { get; set; }
public string? PostalCode { get; set; }
public bool Active { get; set; }
}
-29
View File
@@ -1,29 +0,0 @@
namespace LiteCharms.Models;
public sealed class EmailEnquiry
{
[Required]
[MinLength(2)]
[MaxLength(255)]
[Display(Name = "Full Name")]
public string? FullName { get; set; }
[Required]
[EmailAddress]
[MinLength(5)]
[MaxLength(255)]
[Display(Name = "Email Address")]
public string? EmailAddress { get; set; }
[Required]
[MinLength(2)]
[MaxLength(255)]
[Display(Name = "Subject")]
public string? EmailSubject { get; set; }
[Required]
[MinLength(2)]
[MaxLength(2000)]
[Display(Name = "Message")]
public string? Message { get; set; }
}
-68
View File
@@ -1,68 +0,0 @@
namespace LiteCharms.Models;
public enum CorrelationIdTypes : int
{
None = 0,
Email = 1,
Discord = 2,
Slack = 3,
Whatsapp = 4,
Customer = 5,
Order = 6,
Refund = 7,
Lead = 8,
Quote = 9,
LinkedIn = 10
}
public enum Priorities : int
{
Low = 0,
Medium = 1,
High = 2,
}
public enum NotificationPlatforms : int
{
Email = 1,
Discord = 2,
Slack = 3,
WhatsApp = 4,
System = 5
}
public enum QuoteStatus : int
{
Draft = 0,
Sent = 1,
Accepted = 2,
Rejected = 3,
Expired = 4
}
public enum OrderStatus : int
{
Pending = 0,
Completed = 1,
Cancelled = 2,
Failed = 3,
Refunded = 4,
Error = 5
}
public enum LeadStatus : int
{
New = 0,
Contacted = 1,
Qualified = 2,
Unqualified = 3,
Converted = 4,
Lost = 5
}
public enum NotificationDirection : int
{
Incoming = 0,
Outgoing = 1,
Neutral = 2
}
-36
View File
@@ -1,36 +0,0 @@
namespace LiteCharms.Models;
public class Lead
{
public Guid Id { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset? UpdatedAt { get; set; }
public Guid? CustomerId { get; set; }
public string? Source { get; set; }
public string? ClickId { get; set; }
public string? WebClickId { get; set; }
public string? AppClickId { get; set; }
public long? CampaignId { get; set; }
public long? AdGroupId { get; set; }
public long? AdName { get; set; }
public long? TargetId { get; set; }
public long? FeedItemId { get; set; }
public string? ClickLocation { get; set; }
public string? AttributionHash { get; set; }
public LeadStatus Status { get; set; }
}
@@ -1,35 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\LiteCharms.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<!-- Nuget Package Details -->
<PropertyGroup>
<PackageId>LiteCharms.Models</PackageId>
<Version>1.0.20</Version>
<Authors>Khwezi Mngoma</Authors>
<Company>Lite Charms (PTY) Ltd</Company>
<Description>Shared models for Lite Charms applications.</Description>
<PackageProjectUrl>https://gitea.khongisa.co.za/litecharms/components</PackageProjectUrl>
<RepositoryUrl>https://gitea.khongisa.co.za/litecharms/components.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageTags>utility;dotnet</PackageTags>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>
<!-- Global Usings -->
<ItemGroup>
<Using Include="System.ComponentModel.DataAnnotations"/>
</ItemGroup>
<ItemGroup>
<None Include="..\LICENSE" Pack="true" PackagePath="\" />
<None Include="..\icon.png" Pack="true" PackagePath="\" />
</ItemGroup>
</Project>
-42
View File
@@ -1,42 +0,0 @@
namespace LiteCharms.Models;
public class Notification
{
public Guid Id { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset? UpdatedAt { get; set; }
public NotificationDirection Direction { get; set; }
public NotificationPlatforms Platform { get; set; }
public Priorities Priority { get; set; }
public CorrelationIdTypes CorrelationIdType { get; set; }
public string? Sender { get; set; }
public string? SenderName { get; set; }
public string? Subject { get; set; }
public string? Message { get; set; }
public string? Recipient { get; set; }
public string? RecipientAddress { get; set; }
public string? CorrelationId { get; set; }
public bool IsHtml { get; set; }
public bool IsInternal { get; set; }
public bool Processed { get; set; }
public bool HasError { get; set; }
public string[]? Errors { get; set; }
}
-28
View File
@@ -1,28 +0,0 @@
namespace LiteCharms.Models;
public class Order
{
public Guid Id { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset? UpdatedAt { get; set; }
public Guid CustomerId { get; set; }
public Guid? QuoteId { get; set; }
public Guid ShoppingCartId { get; set; }
public Guid? RefundId { get; set; }
public OrderStatus Status { get; set; }
public string[]? Requirements { get; set; }
public string[]? Notes { get; set; }
public string[]? Terms { get; set; }
public bool DepositRequired { get; set; }
}
-14
View File
@@ -1,14 +0,0 @@
namespace LiteCharms.Models;
public class OrderRefund
{
public Guid Id { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public Guid OrderId { get; set; }
public string? Reason { get; set; }
public decimal Amount { get; set; }
}
-16
View File
@@ -1,16 +0,0 @@
namespace LiteCharms.Models;
public class Package
{
public Guid Id { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset? UpdatedAt { get; set; }
public string? Name { get; set; }
public string? Description { get; set; }
public bool Active { get; set; }
}
-14
View File
@@ -1,14 +0,0 @@
namespace LiteCharms.Models;
public class PackageItem
{
public Guid Id { get; set; }
public Guid PackageId { get; set; }
public Guid ProductPriceId { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public bool Active { get; set; }
}
-12
View File
@@ -1,12 +0,0 @@
namespace LiteCharms.Models;
public class Product
{
public Guid Id { get; set; }
public string? Name { get; set; }
public string? Description { get; set; }
public bool Active { get; set; }
}
-18
View File
@@ -1,18 +0,0 @@
namespace LiteCharms.Models;
public class ProductPrice
{
public Guid Id { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset? UpdatedAt { get; set; }
public Guid ProductId { get; set; }
public decimal Price { get; set; }
public decimal Discount { get; set; }
public bool Active { get; set; }
}
-20
View File
@@ -1,20 +0,0 @@
namespace LiteCharms.Models;
public class Quote
{
public Guid Id { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset? UpdatedAt { get; set; }
public DateTimeOffset? ExpiredAt { get; set; }
public Guid CustomerId { get; set; }
public Guid ShoppingCartId { get; set; }
public QuoteStatus Status { get; set; }
public string? Reason { get; set; }
}
-16
View File
@@ -1,16 +0,0 @@
namespace LiteCharms.Models;
public class ShoppingCart
{
public Guid Id { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset? UpdatedAt { get; set; }
public Guid? CustomerId { get; set; }
public Guid? OrderId { get; set; }
public Guid? QuoteId { get; set; }
}
-16
View File
@@ -1,16 +0,0 @@
namespace LiteCharms.Models;
public class ShoppingCartItem
{
public Guid Id { get; set; }
public Guid ShoppingCartId { get; set; }
public Guid ProductPriceId { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset UpdatedAt { get; set; }
public int Quantity { get; set; }
}
-12
View File
@@ -1,12 +0,0 @@
namespace LiteCharms.Models;
public class ShoppingCartPackage
{
public Guid Id { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public Guid ShoppingCartId { get; set; }
public Guid PackageId { get; set; }
}