All Classes and Interfaces
Class
Description
Configuration class to explicitly create the ChatClient bean.
REST controller for handling the audience rules generation.
DTO for the prompt input.
A custom runtime exception thrown when the response from the AI service
cannot be parsed as valid JSON.
Service responsible for interacting with the AI model to generate rules from
natural language prompts.
Represents a single marketing campaign, defined by a set of rules for its
target audience.
REST controller for managing campaigns, including audience preview and
campaign creation.
Data Transfer Object for creating a new Campaign.
A background worker that listens for campaign processing events from RabbitMQ
A dedicated service for publishing campaign-related events to RabbitMQ.
Repository interface for Campaign entities, providing CRUD operations and
custom query methods.
Service layer containing the core business logic for creating and managing
campaigns.
Data Transfer Object representing campaign delivery statistics.
Represents a request payload for OpenAI chat API.
Represents a response from the OpenAI chat API.
Represents a message in the chat response, including its role and content.
Logs each communication attempt to a customer for auditing and tracking
purposes.
Spring Data MongoDB repository for managing CommunicationLog entities.
Service for managing the lifecycle of CommunicationLog entries.
Represents a single condition in a campaign rule.
Represents the valid fields that can be used in a campaign rule condition.
Represents an end-customer in the CRM system.
REST controller for managing campaigns, including audience preview and
campaign creation.
Data Transfer Object for creating a new Customer.
Repository interface for Customer entities, providing CRUD operations and
custom query methods.
Service for managing customers.
A Data Transfer Object representing a delivery receipt message
to be sent through the message queue.
This controller simulates an external vendor API for sending messages.
A global exception handler to catch and process exceptions across the entire
application.
A background worker that listens for data ingestion events from RabbitMQ
and processes them asynchronously.
A dedicated service for publishing data ingestion events to RabbitMQ.
Service responsible for sending messages to the external vendor.
Represents a single transaction/order event from a customer.
REST controller for adding orders, used by the data seeder.
Data Transfer Object for ingesting a new Order.
Repository interface for Order entities, providing CRUD operations.
Service for managing orders and updating customer aggregated data.
Configures the neccessary RabbitMQ exhanges, queues and bindings
A dedicated background worker that consumes delivery receipts from a queue in
batches
and processes them for efficient database updates.
A marker interface for polymorphism, allowing a rule to be either a Condition
or a RuleGroup.
Represents a group of rules combined with a logical operator (AND/OR).
Configures security settings for the application, including OAuth2 login.
Represents the possible delivery statuses for a communication log entry.
Represents a user in the system.
REST controller for retrieving authenticated user details.
Repository interface for User entities.
Controller for handling incoming webhooks from external services.