Redesign of the SMS automation page

This commit is contained in:
2026-09-14 16:49:43 +03:30
parent 8925c77ae0
commit f176fde1eb
15 changed files with 2089 additions and 226 deletions
+12
View File
@@ -2314,6 +2314,16 @@ export const MESSAGE_AUTOMATION_UNIT_LABELS: Record<
months: "ماه",
};
export const MESSAGE_AUTOMATION_FIELDS = [
{ token: "{نام}", label: "نام مشتری" },
{ token: "{شماره}", label: "شماره موبایل" },
{ token: "{تاریخ}", label: "تاریخ ارسال" },
{ token: "{عنوان}", label: "عنوان رکورد" },
{ token: "{شرکت}", label: "نام شرکت" },
] as const;
export const MESSAGE_AUTOMATION_SMS_SEGMENT = 70;
export const MESSAGE_AUTOMATION_CHANNEL_LABELS: Record<
MessageAutomationChannel,
string
@@ -2345,6 +2355,7 @@ export interface MessageAutomationRuleDto {
notifyTarget: MessageAutomationTarget;
channel: MessageAutomationChannel;
title: string;
description: string | null;
body: string;
createdAt: string;
updatedAt: string;
@@ -2362,6 +2373,7 @@ export interface CreateMessageAutomationRuleRequest {
notifyTarget?: MessageAutomationTarget;
channel?: MessageAutomationChannel;
title: string;
description?: string | null;
body: string;
}