@inspirer-dev/crm-dashboard 1.0.88 → 1.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/src/components/StepFlowBuilder/constants.ts +1 -2
- package/admin/src/components/StepFlowBuilder/types.ts +5 -2
- package/admin/src/types/crm.ts +4 -3
- package/dist/_chunks/{index-DitYBTyj.js → index-BkNdfcG0.js} +1 -0
- package/dist/_chunks/{index-P8pE6Zbx.mjs → index-Dekkt5Ph.mjs} +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -93,7 +93,6 @@ export const EDGE_COLORS = {
|
|
|
93
93
|
},
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
|
|
97
96
|
export const STEP_TYPE_LABELS: Record<StepType, string> = {
|
|
98
97
|
entry: 'Entry Point',
|
|
99
98
|
message: 'Send Message',
|
|
@@ -105,6 +104,7 @@ export const STEP_TYPE_LABELS: Record<StepType, string> = {
|
|
|
105
104
|
|
|
106
105
|
export const CHANNEL_OPTIONS: { value: ChannelType; label: string }[] = [
|
|
107
106
|
{ value: 'telegram', label: 'Telegram' },
|
|
107
|
+
{ value: 'whatsapp', label: 'WhatsApp' },
|
|
108
108
|
{ value: 'email', label: 'Email' },
|
|
109
109
|
{ value: 'push', label: 'Push Notification' },
|
|
110
110
|
{ value: 'sms', label: 'SMS' },
|
|
@@ -164,4 +164,3 @@ export const ENTRY_NODE_ID = 'entry';
|
|
|
164
164
|
export const PROXIMITY_THRESHOLD = 350;
|
|
165
165
|
|
|
166
166
|
export const AUTO_DISCONNECT_ENABLED = false;
|
|
167
|
-
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Node, Edge } from 'reactflow';
|
|
2
2
|
|
|
3
3
|
export type StepType = 'entry' | 'message' | 'wait' | 'branch' | 'exit' | 'event_trigger';
|
|
4
|
-
export type ChannelType = 'telegram' | 'email' | 'push' | 'sms';
|
|
4
|
+
export type ChannelType = 'telegram' | 'whatsapp' | 'email' | 'push' | 'sms';
|
|
5
5
|
export type DurationUnit = 'seconds' | 'minutes' | 'hours' | 'days';
|
|
6
6
|
export type EventTriggerLogic = 'and' | 'or';
|
|
7
7
|
|
|
@@ -67,7 +67,10 @@ export interface EventTriggerStepConfig {
|
|
|
67
67
|
eventTrigger?: EventTriggerConfig;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
export type StepConfig = MessageStepConfig &
|
|
70
|
+
export type StepConfig = MessageStepConfig &
|
|
71
|
+
WaitStepConfig &
|
|
72
|
+
BranchStepConfig &
|
|
73
|
+
EventTriggerStepConfig;
|
|
71
74
|
|
|
72
75
|
export interface FlowNodeData {
|
|
73
76
|
stepType: StepType;
|
package/admin/src/types/crm.ts
CHANGED
|
@@ -44,11 +44,12 @@ export interface CrmTemplate {
|
|
|
44
44
|
id: number;
|
|
45
45
|
documentId: string;
|
|
46
46
|
name: string;
|
|
47
|
-
channel: 'telegram' | 'email' | 'push' | 'sms';
|
|
47
|
+
channel: 'telegram' | 'whatsapp' | 'email' | 'push' | 'sms';
|
|
48
48
|
locale?: string;
|
|
49
49
|
title?: string;
|
|
50
50
|
body: string;
|
|
51
51
|
buttons?: TelegramButton[];
|
|
52
|
+
whatsappTemplateName?: string;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
export interface CrmVariant {
|
|
@@ -98,7 +99,7 @@ export interface CampaignStep {
|
|
|
98
99
|
name: string;
|
|
99
100
|
stepType: 'message' | 'wait' | 'branch' | 'exit';
|
|
100
101
|
order: number;
|
|
101
|
-
channel?: 'telegram' | 'email' | 'push' | 'sms';
|
|
102
|
+
channel?: 'telegram' | 'whatsapp' | 'email' | 'push' | 'sms';
|
|
102
103
|
variants?: CrmVariant[];
|
|
103
104
|
duration?: number;
|
|
104
105
|
durationUnit?: 'minutes' | 'hours' | 'days';
|
|
@@ -156,7 +157,7 @@ export type JourneyNodeType = 'entrance' | 'message' | 'wait' | 'branch' | 'exit
|
|
|
156
157
|
export type JourneyBranchType = 'default' | 'yes' | 'no';
|
|
157
158
|
export type JourneyWaitType = 'duration' | 'until_event' | 'until_time';
|
|
158
159
|
export type JourneyConditionType = 'segment' | 'event_attribute' | 'random_split';
|
|
159
|
-
export type JourneyChannel = 'telegram' | 'email' | 'push' | 'sms';
|
|
160
|
+
export type JourneyChannel = 'telegram' | 'whatsapp' | 'email' | 'push' | 'sms';
|
|
160
161
|
|
|
161
162
|
export interface JourneyMessageVariant {
|
|
162
163
|
name: string;
|
|
@@ -100,6 +100,7 @@ const STEP_TYPE_LABELS = {
|
|
|
100
100
|
};
|
|
101
101
|
const CHANNEL_OPTIONS = [
|
|
102
102
|
{ value: "telegram", label: "Telegram" },
|
|
103
|
+
{ value: "whatsapp", label: "WhatsApp" },
|
|
103
104
|
{ value: "email", label: "Email" },
|
|
104
105
|
{ value: "push", label: "Push Notification" },
|
|
105
106
|
{ value: "sms", label: "SMS" }
|
|
@@ -95,6 +95,7 @@ const STEP_TYPE_LABELS = {
|
|
|
95
95
|
};
|
|
96
96
|
const CHANNEL_OPTIONS = [
|
|
97
97
|
{ value: "telegram", label: "Telegram" },
|
|
98
|
+
{ value: "whatsapp", label: "WhatsApp" },
|
|
98
99
|
{ value: "email", label: "Email" },
|
|
99
100
|
{ value: "push", label: "Push Notification" },
|
|
100
101
|
{ value: "sms", label: "SMS" }
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED