@fayz-ai/plugin-conversations 0.26.0 → 0.27.0
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/dist/CampaignsSurface-75POQIRI.js +860 -0
- package/dist/CampaignsSurface-75POQIRI.js.map +1 -0
- package/dist/{ConversationsPage-7W7LDH2H.js → ConversationsPage-6WOZYAD4.js} +4 -3
- package/dist/ConversationsPage-6WOZYAD4.js.map +1 -0
- package/dist/TemplatesSurface-QNTRYYTX.js +281 -0
- package/dist/TemplatesSurface-QNTRYYTX.js.map +1 -0
- package/dist/chunk-4OWC3V53.js +323 -0
- package/dist/chunk-4OWC3V53.js.map +1 -0
- package/dist/chunk-HMWUU5O7.js +75 -0
- package/dist/chunk-HMWUU5O7.js.map +1 -0
- package/dist/{chunk-6EZLUC62.js → chunk-VZLFELO6.js} +4 -74
- package/dist/chunk-VZLFELO6.js.map +1 -0
- package/dist/data/journeys.d.ts +198 -0
- package/dist/data/journeys.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/migrations/index.d.ts +2 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/main.browser.js +3 -1
- package/dist/migrations/main.browser.js.map +1 -1
- package/dist/migrations/main.js +260 -2
- package/dist/migrations/main.js.map +1 -1
- package/dist/views/campaigns/CampaignWizard.d.ts +8 -0
- package/dist/views/campaigns/CampaignWizard.d.ts.map +1 -0
- package/dist/views/campaigns/CampaignsSurface.d.ts +4 -0
- package/dist/views/campaigns/CampaignsSurface.d.ts.map +1 -0
- package/dist/views/campaigns/NumberProtection.d.ts +5 -0
- package/dist/views/campaigns/NumberProtection.d.ts.map +1 -0
- package/dist/views/campaigns/TemplatesSurface.d.ts +3 -0
- package/dist/views/campaigns/TemplatesSurface.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/ConversationsPage-7W7LDH2H.js.map +0 -1
- package/dist/chunk-6EZLUC62.js.map +0 -1
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
export type StepChannel = 'whatsapp' | 'email' | 'task';
|
|
2
|
+
export type CampaignStatus = 'draft' | 'scheduled' | 'running' | 'paused' | 'done' | 'cancelled';
|
|
3
|
+
export interface MessageTemplate {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
channel: 'whatsapp' | 'email';
|
|
7
|
+
subject: string | null;
|
|
8
|
+
body: string;
|
|
9
|
+
variants: string[];
|
|
10
|
+
/** Positional names for {{1}}, {{2}} (official provider templates). */
|
|
11
|
+
variables: string[];
|
|
12
|
+
language: string;
|
|
13
|
+
category: string;
|
|
14
|
+
provider: string | null;
|
|
15
|
+
status: string;
|
|
16
|
+
statusDetail: string | null;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
}
|
|
19
|
+
export interface JourneyStep {
|
|
20
|
+
id?: string;
|
|
21
|
+
position: number;
|
|
22
|
+
waitMinutes: number;
|
|
23
|
+
channel: StepChannel;
|
|
24
|
+
templateId: string | null;
|
|
25
|
+
taskTitle: string | null;
|
|
26
|
+
contactRoute: 'same' | 'next';
|
|
27
|
+
}
|
|
28
|
+
export interface Pacing {
|
|
29
|
+
per_minute?: number | null;
|
|
30
|
+
per_hour?: number | null;
|
|
31
|
+
per_day?: number | null;
|
|
32
|
+
delay_seconds?: [number, number];
|
|
33
|
+
typing_seconds?: [number, number];
|
|
34
|
+
batch_size?: number;
|
|
35
|
+
batch_cooldown_minutes?: number;
|
|
36
|
+
hours?: {
|
|
37
|
+
start: string;
|
|
38
|
+
end: string;
|
|
39
|
+
weekdays_only?: boolean;
|
|
40
|
+
} | null;
|
|
41
|
+
}
|
|
42
|
+
export interface CampaignSettings {
|
|
43
|
+
pause_after_failures?: number;
|
|
44
|
+
min_reply_rate_after?: number;
|
|
45
|
+
min_reply_rate?: number;
|
|
46
|
+
max_optout_rate?: number;
|
|
47
|
+
enrolled_at?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface Campaign {
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
description: string | null;
|
|
53
|
+
status: CampaignStatus;
|
|
54
|
+
provider: 'evolution' | 'tyxter' | string;
|
|
55
|
+
segmentId: string | null;
|
|
56
|
+
audience: 'people' | 'deals';
|
|
57
|
+
unitId: string | null;
|
|
58
|
+
stopOnReply: boolean;
|
|
59
|
+
pacing: Pacing;
|
|
60
|
+
settings: CampaignSettings;
|
|
61
|
+
pausedReason: string | null;
|
|
62
|
+
startedAt: string | null;
|
|
63
|
+
finishedAt: string | null;
|
|
64
|
+
createdAt: string;
|
|
65
|
+
steps: JourneyStep[];
|
|
66
|
+
}
|
|
67
|
+
export interface CampaignStats {
|
|
68
|
+
enrolled: number;
|
|
69
|
+
active: number;
|
|
70
|
+
replied: number;
|
|
71
|
+
optedOut: number;
|
|
72
|
+
completed: number;
|
|
73
|
+
noRoute: number;
|
|
74
|
+
stopped: number;
|
|
75
|
+
sent: number;
|
|
76
|
+
delivered: number;
|
|
77
|
+
read: number;
|
|
78
|
+
failed: number;
|
|
79
|
+
pending: number;
|
|
80
|
+
}
|
|
81
|
+
export interface StepStats {
|
|
82
|
+
stepPosition: number;
|
|
83
|
+
total: number;
|
|
84
|
+
pending: number;
|
|
85
|
+
sent: number;
|
|
86
|
+
delivered: number;
|
|
87
|
+
read: number;
|
|
88
|
+
replied: number;
|
|
89
|
+
failed: number;
|
|
90
|
+
skipped: number;
|
|
91
|
+
}
|
|
92
|
+
export interface Enrollment {
|
|
93
|
+
id: string;
|
|
94
|
+
dealId: string | null;
|
|
95
|
+
personId: string | null;
|
|
96
|
+
ownerId: string | null;
|
|
97
|
+
routes: Array<{
|
|
98
|
+
route: number;
|
|
99
|
+
person_id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
phone_e164: string | null;
|
|
102
|
+
email: string | null;
|
|
103
|
+
via: string;
|
|
104
|
+
}>;
|
|
105
|
+
routeIndex: number;
|
|
106
|
+
nextStep: number;
|
|
107
|
+
nextRunAt: string | null;
|
|
108
|
+
state: string;
|
|
109
|
+
stateReason: string | null;
|
|
110
|
+
repliedAt: string | null;
|
|
111
|
+
enrolledAt: string;
|
|
112
|
+
}
|
|
113
|
+
export interface TargetRow {
|
|
114
|
+
id: string;
|
|
115
|
+
enrollmentId: string | null;
|
|
116
|
+
stepPosition: number | null;
|
|
117
|
+
channel: string;
|
|
118
|
+
phone: string | null;
|
|
119
|
+
email: string | null;
|
|
120
|
+
state: string;
|
|
121
|
+
body: string | null;
|
|
122
|
+
queuedAt: string;
|
|
123
|
+
sentAt: string | null;
|
|
124
|
+
deliveredAt: string | null;
|
|
125
|
+
readAt: string | null;
|
|
126
|
+
repliedAt: string | null;
|
|
127
|
+
failureDetail: string | null;
|
|
128
|
+
}
|
|
129
|
+
export interface SegmentOption {
|
|
130
|
+
id: string;
|
|
131
|
+
name: string;
|
|
132
|
+
audience: 'people' | 'deals';
|
|
133
|
+
description: string | null;
|
|
134
|
+
}
|
|
135
|
+
export declare const journeysApi: {
|
|
136
|
+
templates(): Promise<MessageTemplate[]>;
|
|
137
|
+
saveTemplate(t: Partial<MessageTemplate> & {
|
|
138
|
+
name: string;
|
|
139
|
+
body: string;
|
|
140
|
+
}): Promise<MessageTemplate>;
|
|
141
|
+
deleteTemplate(id: string): Promise<void>;
|
|
142
|
+
/** AI rewrites of a body, same meaning and variables (service `variants`). */
|
|
143
|
+
suggestVariants(body: string, count?: number): Promise<string[]>;
|
|
144
|
+
campaigns(): Promise<Campaign[]>;
|
|
145
|
+
campaign(id: string): Promise<Campaign | null>;
|
|
146
|
+
/** Saves the draft and replaces its steps. Only a draft's journey changes:
|
|
147
|
+
* rewriting the steps of a running campaign would move people mid-way. */
|
|
148
|
+
saveCampaign(c: Omit<Campaign, "id" | "status" | "pausedReason" | "startedAt" | "finishedAt" | "createdAt"> & {
|
|
149
|
+
id?: string;
|
|
150
|
+
}): Promise<Campaign>;
|
|
151
|
+
setStatus(id: string, status: CampaignStatus): Promise<void>;
|
|
152
|
+
deleteCampaign(id: string): Promise<void>;
|
|
153
|
+
stats(ids: string[]): Promise<Record<string, CampaignStats>>;
|
|
154
|
+
stepStats(id: string): Promise<StepStats[]>;
|
|
155
|
+
enrollments(id: string): Promise<Enrollment[]>;
|
|
156
|
+
targets(opts?: {
|
|
157
|
+
campaignId?: string;
|
|
158
|
+
limit?: number;
|
|
159
|
+
}): Promise<Array<TargetRow & {
|
|
160
|
+
campaignId: string;
|
|
161
|
+
}>>;
|
|
162
|
+
segments(): Promise<SegmentOption[]>;
|
|
163
|
+
/** Who a segment reaches right now, and a sample of contact routes. */
|
|
164
|
+
audience(segmentId: string, audience: "people" | "deals"): Promise<{
|
|
165
|
+
count: number;
|
|
166
|
+
withRoute: number;
|
|
167
|
+
sample: Array<{
|
|
168
|
+
title: string;
|
|
169
|
+
company: string | null;
|
|
170
|
+
owner: string | null;
|
|
171
|
+
routes: Enrollment["routes"];
|
|
172
|
+
}>;
|
|
173
|
+
}>;
|
|
174
|
+
/** Default pace of a provider (conversations_default_pacing). */
|
|
175
|
+
defaultPacing(provider: string): Promise<Pacing>;
|
|
176
|
+
};
|
|
177
|
+
export declare const VARIABLES: readonly [{
|
|
178
|
+
readonly key: "nome";
|
|
179
|
+
readonly label: "Primeiro nome";
|
|
180
|
+
readonly sample: "Ana";
|
|
181
|
+
}, {
|
|
182
|
+
readonly key: "nome_completo";
|
|
183
|
+
readonly label: "Nome completo";
|
|
184
|
+
readonly sample: "Ana Souza";
|
|
185
|
+
}, {
|
|
186
|
+
readonly key: "empresa";
|
|
187
|
+
readonly label: "Empresa / grupo";
|
|
188
|
+
readonly sample: "Sarumon Pizzaria";
|
|
189
|
+
}, {
|
|
190
|
+
readonly key: "vendedor";
|
|
191
|
+
readonly label: "Vendedor do negócio";
|
|
192
|
+
readonly sample: "Julio";
|
|
193
|
+
}];
|
|
194
|
+
/** Same rules as the engine's renderBody: {{name}}, {{n}}, {a|b} spintax. */
|
|
195
|
+
export declare function previewBody(body: string, vars: Record<string, string>, seed?: number): string;
|
|
196
|
+
/** What a reviewer should know before a template goes out on WhatsApp. */
|
|
197
|
+
export declare function templateWarnings(body: string): string[];
|
|
198
|
+
//# sourceMappingURL=journeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"journeys.d.ts","sourceRoot":"","sources":["../../src/data/journeys.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,CAAA;AACvD,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAA;AAEhG,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,UAAU,GAAG,OAAO,CAAA;IAC7B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,uEAAuE;IACvE,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,WAAW,CAAA;IACpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,YAAY,EAAE,MAAM,GAAG,MAAM,CAAA;CAC9B;AAED,MAA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CAAA;KAC7G,CAAC;IAyBF,iEAAiE;4BACnC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAIvD,CAAA;AAID,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;EAKZ,CAAA;AAEV,6EAA6E;AAC7E,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,IAAI,SAAI,GAAG,MAAM,CAWxF;AAED,0EAA0E;AAC1E,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAQvD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { EntityDef, PluginManifest, PluginScope, VerticalId } from '@fayz-ai/core';
|
|
2
3
|
import type { EntityLookup } from '@fayz-ai/admin';
|
|
3
4
|
import type { ConversationsProvider } from './data/types';
|
|
@@ -36,4 +37,9 @@ export type { CampaignProgress, CampaignTemplate, DispatchResult } from './data/
|
|
|
36
37
|
export { providersApi } from './data/providers';
|
|
37
38
|
export type { ProviderId, ProviderRow, ProviderNumber, ProviderTemplate, ProviderCapabilities } from './data/providers';
|
|
38
39
|
export { WhatsAppProviders } from './settings/WhatsAppProviders';
|
|
40
|
+
export declare const CampaignsSurface: React.LazyExoticComponent<typeof import("./views/campaigns/CampaignsSurface").CampaignsSurface>;
|
|
41
|
+
export declare const SendHistorySurface: React.LazyExoticComponent<typeof import("./views/campaigns/CampaignsSurface").SendHistorySurface>;
|
|
42
|
+
export declare const TemplatesSurface: React.LazyExoticComponent<typeof import("./views/campaigns/TemplatesSurface").TemplatesSurface>;
|
|
43
|
+
export { journeysApi, previewBody, templateWarnings } from './data/journeys';
|
|
44
|
+
export type { Campaign, JourneyStep, MessageTemplate, CampaignStats, Pacing } from './data/journeys';
|
|
39
45
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAsBzD,MAAM,WAAW,0BAA0B;IACzC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,UAAU,CAAA;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,YAAY,CAAC,EAAE,qBAAqB,CAAA;IAEpC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oFAAoF;IACpF,aAAa,CAAC,EAAE,YAAY,CAAA;IAC5B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B;AA2BD,wBAAgB,yBAAyB,CAAC,OAAO,CAAC,EAAE,0BAA0B,GAAG,cAAc,CA+P9F;AAED,YAAY,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AACzD,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AACxG,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,+BAA+B,EAAE,KAAK,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAC3F,OAAO,EACL,mCAAmC,EACnC,KAAK,2BAA2B,GACjC,MAAM,iBAAiB,CAAA;AAGxB,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,0BAA0B,EAC1B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,qBAAqB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,GAClC,MAAM,iBAAiB,CAAA;AAGxB,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,oCAAoC,CAAA;AAc3C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AACvH,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAKhE,eAAO,MAAM,gBAAgB,iGAAgH,CAAA;AAC7I,eAAO,MAAM,kBAAkB,mGAAkH,CAAA;AACjJ,eAAO,MAAM,gBAAgB,iGAAgH,CAAA;AAC7I,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAC5E,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { isWaitingOnUs
|
|
1
|
+
import { isWaitingOnUs, assinarChegada, ConversationsContextProvider, MessagePreview, useConversationsStore } from './chunk-VZLFELO6.js';
|
|
2
|
+
export { isWaitingOnUs } from './chunk-VZLFELO6.js';
|
|
3
3
|
import { T, listMessagingChannels, findDedicatedChannel, findFallbackChannel, isPendingChannelStatus, canClaimDedicated, CHANNEL_CLAIM_TIMELINE } from './chunk-W5VV6G35.js';
|
|
4
4
|
export { listMessagingChannels } from './chunk-W5VV6G35.js';
|
|
5
|
+
import { providersApi } from './chunk-HMWUU5O7.js';
|
|
6
|
+
export { providersApi } from './chunk-HMWUU5O7.js';
|
|
7
|
+
export { journeysApi, previewBody, templateWarnings } from './chunk-4OWC3V53.js';
|
|
5
8
|
import * as React from 'react';
|
|
6
9
|
import React__default, { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
7
10
|
import { Loader2, Check, ShieldCheck, ShieldAlert, RefreshCw, QrCode, Zap, ExternalLink } from 'lucide-react';
|
|
@@ -2282,10 +2285,13 @@ function createConversationsPlugin(options) {
|
|
|
2282
2285
|
locales: conversationsLocales
|
|
2283
2286
|
};
|
|
2284
2287
|
}
|
|
2285
|
-
var ConversationsPage = React__default.lazy(() => import('./ConversationsPage-
|
|
2288
|
+
var ConversationsPage = React__default.lazy(() => import('./ConversationsPage-6WOZYAD4.js').then((m) => ({ default: m.ConversationsPage })));
|
|
2286
2289
|
var AtendeAIPage = React__default.lazy(() => import('./AtendeAIPage-PBBMWIDW.js').then((m) => ({ default: m.AtendeAIPage })));
|
|
2287
2290
|
var ConversationsSettingsTab = lazyComponent(() => import('./ConversationsSettings-GORCWUHD.js').then((m) => m.ConversationsSettingsTab));
|
|
2291
|
+
var CampaignsSurface = React__default.lazy(() => import('./CampaignsSurface-75POQIRI.js').then((m) => ({ default: m.CampaignsSurface })));
|
|
2292
|
+
var SendHistorySurface = React__default.lazy(() => import('./CampaignsSurface-75POQIRI.js').then((m) => ({ default: m.SendHistorySurface })));
|
|
2293
|
+
var TemplatesSurface = React__default.lazy(() => import('./TemplatesSurface-QNTRYYTX.js').then((m) => ({ default: m.TemplatesSurface })));
|
|
2288
2294
|
|
|
2289
|
-
export { PAYMENT_PREFLIGHT_FUNCTION, TYXTER_CONNECTOR_ID, TYXTER_LATENCY_BUDGET_MS, WhatsAppProviders, campaignsApi, canOfferPayment, createConversationsPlugin, createMockConversationsProvider, createSupabaseConversationsProvider, openPaymentSetupSession, readPaymentReadiness, tyxterConnectorDef };
|
|
2295
|
+
export { CampaignsSurface, PAYMENT_PREFLIGHT_FUNCTION, SendHistorySurface, TYXTER_CONNECTOR_ID, TYXTER_LATENCY_BUDGET_MS, TemplatesSurface, WhatsAppProviders, campaignsApi, canOfferPayment, createConversationsPlugin, createMockConversationsProvider, createSupabaseConversationsProvider, openPaymentSetupSession, readPaymentReadiness, tyxterConnectorDef };
|
|
2290
2296
|
//# sourceMappingURL=index.js.map
|
|
2291
2297
|
//# sourceMappingURL=index.js.map
|