freshyo/apps/backend/src/lib/const-strings.ts
2026-01-24 00:13:15 +05:30

28 lines
No EOL
1.1 KiB
TypeScript
Executable file

/**
* This file contains constants that are used throughout the application
* to avoid hardcoding strings in multiple places
*/
// User role and designation constants
export const READABLE_ORDER_ID_KEY = 'readableOrderId';
// Queue constants
export const NOTIFS_QUEUE = 'notifications';
export const OTP_COMMENT_NAME='otp-comment'
// Notification message constants
export const ORDER_PLACED_MESSAGE = 'Your order has been placed successfully!';
export const PAYMENT_FAILED_MESSAGE = 'Payment failed. Please try again.';
export const ORDER_PACKAGED_MESSAGE = 'Your order has been packaged and is ready for delivery.';
export const ORDER_OUT_FOR_DELIVERY_MESSAGE = 'Your order is out for delivery.';
export const ORDER_DELIVERED_MESSAGE = 'Your order has been delivered.';
export const ORDER_CANCELLED_MESSAGE = 'Your order has been cancelled.';
export const REFUND_INITIATED_MESSAGE = 'Refund has been initiated for your order.';
export const WELCOME_MESSAGE = 'Welcome to Farm2Door! Thank you for joining us.';
export const REFUND_STATUS = {
PENDING: 'none',
NOT_APPLICABLE: 'na',
PROCESSING: 'initiated',
SUCCESS: 'success',
};