init commit

This commit is contained in:
2026-04-16 14:20:58 -05:00
commit cc973cc11c
51 changed files with 2447 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
defmodule WorkloadService.Commands.QuoteTask do
@moduledoc """
Quote task commands.
"""
defmodule CreateTask do
@moduledoc """
Command to create a new quote task.
"""
@derive Jason.Encoder
defstruct [:id, :application_id, :provider_id, :provider_name, :task_info, :attachments]
def new(attrs) do
struct(__MODULE__, attrs)
end
end
defmodule SubmitResponse do
@moduledoc """
Command to submit response for a quote task.
"""
@derive Jason.Encoder
defstruct [:id, :submission, :attachments]
def new(attrs) do
struct(__MODULE__, attrs)
end
end
defmodule ApproveSubmission do
@moduledoc """
Command to approve submission for a quote task.
"""
@derive Jason.Encoder
defstruct [:id]
def new(attrs) do
struct(__MODULE__, attrs)
end
end
defmodule CompleteTask do
@moduledoc """
Command to complete a quote task.
"""
@derive Jason.Encoder
defstruct [:id, :completed_by]
def new(attrs) do
struct(__MODULE__, attrs)
end
end
end

View File

@@ -0,0 +1,53 @@
defmodule WorkloadService.Commands.SolicitationTask do
@moduledoc """
Solicitation task commands.
"""
defmodule CreateTask do
@moduledoc """
Command to create a new solicitation task.
"""
@derive Jason.Encoder
defstruct [:id, :application_id, :provider_id, :provider_name, :task_info, :attachments]
def new(attrs) do
struct(__MODULE__, attrs)
end
end
defmodule SubmitResponse do
@moduledoc """
Command to submit response for a solicitation task.
"""
@derive Jason.Encoder
defstruct [:id, :submission, :attachments]
def new(attrs) do
struct(__MODULE__, attrs)
end
end
defmodule ApproveSubmission do
@moduledoc """
Command to approve submission for a solicitation task.
"""
@derive Jason.Encoder
defstruct [:id]
def new(attrs) do
struct(__MODULE__, attrs)
end
end
defmodule CompleteTask do
@moduledoc """
Command to complete a solicitation task.
"""
@derive Jason.Encoder
defstruct [:id, :completed_by]
def new(attrs) do
struct(__MODULE__, attrs)
end
end
end