@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.
@@ -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 & WaitStepConfig & BranchStepConfig & EventTriggerStepConfig;
70
+ export type StepConfig = MessageStepConfig &
71
+ WaitStepConfig &
72
+ BranchStepConfig &
73
+ EventTriggerStepConfig;
71
74
 
72
75
  export interface FlowNodeData {
73
76
  stepType: StepType;
@@ -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" }
@@ -131,7 +131,7 @@ const index = {
131
131
  components: {
132
132
  Input: async () => Promise.resolve().then(() => require(
133
133
  /* webpackChunkName: "crm-step-flow-builder" */
134
- "../_chunks/index-DitYBTyj.js"
134
+ "../_chunks/index-BkNdfcG0.js"
135
135
  ))
136
136
  },
137
137
  options: {
@@ -130,7 +130,7 @@ const index = {
130
130
  components: {
131
131
  Input: async () => import(
132
132
  /* webpackChunkName: "crm-step-flow-builder" */
133
- "../_chunks/index-P8pE6Zbx.mjs"
133
+ "../_chunks/index-Dekkt5Ph.mjs"
134
134
  )
135
135
  },
136
136
  options: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inspirer-dev/crm-dashboard",
3
- "version": "1.0.88",
3
+ "version": "1.0.89",
4
4
  "description": "CRM Dashboard and Tools",
5
5
  "strapi": {
6
6
  "name": "crm-dashboard",