@aifeatures/admin-react 0.22.0 → 0.24.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/index.cjs +7 -4
- package/dist/index.d.cts +641 -1
- package/dist/index.d.ts +641 -1
- package/dist/index.js +7 -4
- package/dist/styles.css +1 -1
- package/package.json +14 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,253 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Email marketing wire types (plan U10), mirroring the aifeatures routes:
|
|
6
|
+
* marketing-settings-api, audience-api, marketing-drafts-api, broadcasts-api,
|
|
7
|
+
* welcome-api and recovery-api.
|
|
8
|
+
*/
|
|
9
|
+
interface MarketingSettings {
|
|
10
|
+
business_name: string | null;
|
|
11
|
+
postal_address: string | null;
|
|
12
|
+
reply_to: string | null;
|
|
13
|
+
double_opt_in: boolean;
|
|
14
|
+
checkout_marketing_consent: boolean;
|
|
15
|
+
/** The connected Stripe account's country; null until the app has synced it. */
|
|
16
|
+
stripe_account_country: string | null;
|
|
17
|
+
brand: {
|
|
18
|
+
color: string;
|
|
19
|
+
logo_url: string | null;
|
|
20
|
+
};
|
|
21
|
+
domain: {
|
|
22
|
+
sending_domain: string | null;
|
|
23
|
+
status: string;
|
|
24
|
+
dmarc_status: 'unknown' | 'ok' | 'missing' | 'error';
|
|
25
|
+
};
|
|
26
|
+
paused: {
|
|
27
|
+
paused_at: string | null;
|
|
28
|
+
reason: string | null;
|
|
29
|
+
};
|
|
30
|
+
allowance: {
|
|
31
|
+
month: string;
|
|
32
|
+
monthly: number;
|
|
33
|
+
sent: number;
|
|
34
|
+
reserved: number;
|
|
35
|
+
};
|
|
36
|
+
readiness: {
|
|
37
|
+
can_send: boolean;
|
|
38
|
+
reason: string | null;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
type ContactConsentStatus = 'none' | 'pending' | 'subscribed' | 'unsubscribed';
|
|
42
|
+
interface ContactTagRef {
|
|
43
|
+
id: string;
|
|
44
|
+
label: string;
|
|
45
|
+
system: boolean;
|
|
46
|
+
}
|
|
47
|
+
interface MarketingContact {
|
|
48
|
+
id: string;
|
|
49
|
+
email: string;
|
|
50
|
+
name: string | null;
|
|
51
|
+
status: ContactConsentStatus;
|
|
52
|
+
mailable: boolean;
|
|
53
|
+
consent_at: string | null;
|
|
54
|
+
tags: ContactTagRef[];
|
|
55
|
+
created_at: string;
|
|
56
|
+
}
|
|
57
|
+
interface MarketingContactsPage {
|
|
58
|
+
contacts: MarketingContact[];
|
|
59
|
+
total: number;
|
|
60
|
+
limit: number;
|
|
61
|
+
offset: number;
|
|
62
|
+
}
|
|
63
|
+
interface MarketingContactStats {
|
|
64
|
+
total: number;
|
|
65
|
+
mailable: number;
|
|
66
|
+
by_status: Record<ContactConsentStatus, number>;
|
|
67
|
+
growth: Array<{
|
|
68
|
+
week_start: string;
|
|
69
|
+
new_contacts: number;
|
|
70
|
+
new_subscribers: number;
|
|
71
|
+
}>;
|
|
72
|
+
}
|
|
73
|
+
interface MarketingTag extends ContactTagRef {
|
|
74
|
+
total: number;
|
|
75
|
+
mailable: number;
|
|
76
|
+
}
|
|
77
|
+
type ImportSkipReason = 'invalid_email' | 'duplicate' | 'inactive_in_source' | 'previously_unsubscribed' | 'suppressed' | 'pending';
|
|
78
|
+
interface ContactImportReport {
|
|
79
|
+
import_id: string;
|
|
80
|
+
rows: number;
|
|
81
|
+
created: number;
|
|
82
|
+
updated: number;
|
|
83
|
+
skipped: number;
|
|
84
|
+
skipped_rows: Array<{
|
|
85
|
+
row: number;
|
|
86
|
+
email: string;
|
|
87
|
+
reason: ImportSkipReason;
|
|
88
|
+
}>;
|
|
89
|
+
}
|
|
90
|
+
type EmailDraftKind = 'broadcast' | 'welcome' | 'recovery';
|
|
91
|
+
type EmailDraftBlock = {
|
|
92
|
+
type: 'heading';
|
|
93
|
+
text: string;
|
|
94
|
+
} | {
|
|
95
|
+
type: 'text';
|
|
96
|
+
text: string;
|
|
97
|
+
} | {
|
|
98
|
+
type: 'image';
|
|
99
|
+
url: string;
|
|
100
|
+
alt?: string;
|
|
101
|
+
} | {
|
|
102
|
+
type: 'button';
|
|
103
|
+
label: string;
|
|
104
|
+
url: string;
|
|
105
|
+
} | {
|
|
106
|
+
type: 'cart';
|
|
107
|
+
label: string;
|
|
108
|
+
};
|
|
109
|
+
interface EmailDraft {
|
|
110
|
+
id: string;
|
|
111
|
+
kind: EmailDraftKind;
|
|
112
|
+
subject: string;
|
|
113
|
+
preheader: string | null;
|
|
114
|
+
blocks: EmailDraftBlock[];
|
|
115
|
+
version: number;
|
|
116
|
+
/** Advisory: the audience the assistant proposed, for the commit panel to pre-fill. A commit sends its own targeting. */
|
|
117
|
+
targeting: BroadcastTargeting | null;
|
|
118
|
+
/** Advisory: the send time (ISO) the assistant proposed, for the commit panel to pre-fill. Never schedules anything. */
|
|
119
|
+
proposed_send_at: string | null;
|
|
120
|
+
/** Its template; null is the built-in Standard template. Changed only through `setDraftTemplate`. */
|
|
121
|
+
template: EmailTemplateRef | null;
|
|
122
|
+
/**
|
|
123
|
+
* Read-only: a broadcast sent from it has gone out (sending or sent, or
|
|
124
|
+
* ended after some mail went out), however long ago. Its content and
|
|
125
|
+
* template can't change; it is duplicated to send again (KTD27).
|
|
126
|
+
*/
|
|
127
|
+
sent: boolean;
|
|
128
|
+
created_at: string;
|
|
129
|
+
updated_at: string;
|
|
130
|
+
}
|
|
131
|
+
interface EmailDraftPreview {
|
|
132
|
+
subject: string;
|
|
133
|
+
html: string;
|
|
134
|
+
text: string;
|
|
135
|
+
version: number;
|
|
136
|
+
}
|
|
137
|
+
type EmailTemplateStatus = 'draft' | 'published' | 'archived';
|
|
138
|
+
/** The template an email renders and sends in; `null` on a draft is the built-in Standard template. */
|
|
139
|
+
interface EmailTemplateRef {
|
|
140
|
+
id: string;
|
|
141
|
+
name: string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* One of the site's email templates (email templates KTD3, KTD26): a draft
|
|
145
|
+
* the agent edits, published (locked, choosable for an email), or archived
|
|
146
|
+
* (kept for emails already sent). Standard has no entry.
|
|
147
|
+
*/
|
|
148
|
+
interface EmailTemplateSummary extends EmailTemplateRef {
|
|
149
|
+
status: EmailTemplateStatus;
|
|
150
|
+
/** The version Publish must carry (KTD28). */
|
|
151
|
+
updated_at: string;
|
|
152
|
+
created_at: string;
|
|
153
|
+
published_at: string | null;
|
|
154
|
+
archived_at: string | null;
|
|
155
|
+
/** Test sends never count. */
|
|
156
|
+
usage: {
|
|
157
|
+
drafts: number;
|
|
158
|
+
scheduled: number;
|
|
159
|
+
sent: number;
|
|
160
|
+
};
|
|
161
|
+
/** No email has ever used it (R35). */
|
|
162
|
+
can_delete: boolean;
|
|
163
|
+
/** Published, and every use is an already-sent email (R36). */
|
|
164
|
+
can_archive: boolean;
|
|
165
|
+
}
|
|
166
|
+
/** A sample email (or a given draft) rendered through one template. */
|
|
167
|
+
interface EmailTemplatePreview {
|
|
168
|
+
html: string;
|
|
169
|
+
text: string;
|
|
170
|
+
}
|
|
171
|
+
interface BroadcastTargeting {
|
|
172
|
+
tag_ids: string[];
|
|
173
|
+
match: 'any' | 'all';
|
|
174
|
+
}
|
|
175
|
+
interface BroadcastPlan {
|
|
176
|
+
recipients: number;
|
|
177
|
+
month: string;
|
|
178
|
+
allowance: {
|
|
179
|
+
monthly: number;
|
|
180
|
+
sent: number;
|
|
181
|
+
reserved: number;
|
|
182
|
+
remaining: number;
|
|
183
|
+
};
|
|
184
|
+
fits: boolean;
|
|
185
|
+
sample_size: number | null;
|
|
186
|
+
ramp_days: Array<{
|
|
187
|
+
date: string;
|
|
188
|
+
recipients: number;
|
|
189
|
+
}>;
|
|
190
|
+
}
|
|
191
|
+
type BroadcastStatus = 'scheduled' | 'unscheduled' | 'sending' | 'sent' | 'cancelled' | 'failed';
|
|
192
|
+
interface Broadcast {
|
|
193
|
+
id: string;
|
|
194
|
+
draft_id: string | null;
|
|
195
|
+
status: BroadcastStatus;
|
|
196
|
+
status_reason: string | null;
|
|
197
|
+
subject: string;
|
|
198
|
+
targeting: BroadcastTargeting;
|
|
199
|
+
scheduled_at: string | null;
|
|
200
|
+
committed_at: string | null;
|
|
201
|
+
month: string | null;
|
|
202
|
+
reserved: number;
|
|
203
|
+
recipients: {
|
|
204
|
+
planned: number;
|
|
205
|
+
consumed: number;
|
|
206
|
+
by_state: Record<string, number>;
|
|
207
|
+
};
|
|
208
|
+
stats: {
|
|
209
|
+
delivered: number;
|
|
210
|
+
opened: number;
|
|
211
|
+
clicked: number;
|
|
212
|
+
bounced: number;
|
|
213
|
+
complained: number;
|
|
214
|
+
unsubscribed: number;
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
interface WelcomeStep {
|
|
218
|
+
id: string;
|
|
219
|
+
position: number;
|
|
220
|
+
delay_days: number;
|
|
221
|
+
draft_id: string | null;
|
|
222
|
+
published: boolean;
|
|
223
|
+
published_version: number | null;
|
|
224
|
+
published_at: string | null;
|
|
225
|
+
}
|
|
226
|
+
interface WelcomeSequence {
|
|
227
|
+
active: boolean;
|
|
228
|
+
tag_id: string | null;
|
|
229
|
+
steps: WelcomeStep[];
|
|
230
|
+
}
|
|
231
|
+
interface RecoveryStep {
|
|
232
|
+
step: number;
|
|
233
|
+
draft_id: string;
|
|
234
|
+
published: boolean;
|
|
235
|
+
published_version: number | null;
|
|
236
|
+
published_at: string | null;
|
|
237
|
+
}
|
|
238
|
+
interface RecoveryFlow {
|
|
239
|
+
active: boolean;
|
|
240
|
+
offsets_hours: number[];
|
|
241
|
+
steps: RecoveryStep[];
|
|
242
|
+
blocked_by: string[];
|
|
243
|
+
counts: {
|
|
244
|
+
abandoned: number;
|
|
245
|
+
emailed: number;
|
|
246
|
+
recovered: number;
|
|
247
|
+
skipped: number;
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
|
|
4
251
|
/** Latest send attempt per kind; delivered means accepted by the recipient's mail server. */
|
|
5
252
|
interface EmailDelivery {
|
|
6
253
|
id: string;
|
|
@@ -22,6 +269,8 @@ interface Form {
|
|
|
22
269
|
email_notifications: boolean;
|
|
23
270
|
redirect_url: string | null;
|
|
24
271
|
turnstile_sitekey: string | null;
|
|
272
|
+
/** Present only while email marketing is enabled for the site (single-form reads). */
|
|
273
|
+
purpose?: 'general' | 'opt_in' | 'newsletter';
|
|
25
274
|
created_at: string;
|
|
26
275
|
updated_at: string;
|
|
27
276
|
}
|
|
@@ -1704,6 +1953,7 @@ interface PromosListResponse {
|
|
|
1704
1953
|
next_cursor: string | null;
|
|
1705
1954
|
checkout_enabled: boolean;
|
|
1706
1955
|
}
|
|
1956
|
+
|
|
1707
1957
|
interface ShippingRate {
|
|
1708
1958
|
label: string;
|
|
1709
1959
|
/** Minor units of the site's currency. */
|
|
@@ -1727,6 +1977,10 @@ interface SiteSettings {
|
|
|
1727
1977
|
tax_label: string | null;
|
|
1728
1978
|
stripe_tax_enabled: boolean;
|
|
1729
1979
|
collect_phone_at_checkout: boolean;
|
|
1980
|
+
/** Present only while email marketing is on for the site. Takes effect on US Stripe accounts only. */
|
|
1981
|
+
checkout_marketing_consent?: boolean;
|
|
1982
|
+
/** The connected Stripe account's country, present alongside checkout_marketing_consent. */
|
|
1983
|
+
stripe_account_country?: string | null;
|
|
1730
1984
|
/** Payments active, a Stripe account set, and checkout not paused. */
|
|
1731
1985
|
payments_active: boolean;
|
|
1732
1986
|
/** Owner-only: read here, written through the host's callback. */
|
|
@@ -1753,6 +2007,8 @@ interface UpdateSiteSettingsInput {
|
|
|
1753
2007
|
tax_label?: string | null;
|
|
1754
2008
|
stripe_tax_enabled?: boolean;
|
|
1755
2009
|
collect_phone_at_checkout?: boolean;
|
|
2010
|
+
/** Only while email marketing is on for the site (400 `marketing_not_enabled` otherwise). */
|
|
2011
|
+
checkout_marketing_consent?: boolean;
|
|
1756
2012
|
/** Restates every stored amount in the new currency (no FX conversion). */
|
|
1757
2013
|
currency?: string;
|
|
1758
2014
|
/**
|
|
@@ -1931,6 +2187,35 @@ interface AifeaturesApiClient {
|
|
|
1931
2187
|
getEventDestinationSecret(destinationId: string): Promise<string>;
|
|
1932
2188
|
getEventDeliveries(destinationId: string, limit?: number): Promise<EventDelivery[]>;
|
|
1933
2189
|
retryEventDelivery(destinationId: string, deliveryId: string): Promise<EventDelivery>;
|
|
2190
|
+
getMarketingSettings(siteId: string): Promise<MarketingSettings>;
|
|
2191
|
+
getMarketingContacts(siteId: string, options?: {
|
|
2192
|
+
q?: string;
|
|
2193
|
+
limit?: number;
|
|
2194
|
+
offset?: number;
|
|
2195
|
+
}): Promise<MarketingContactsPage>;
|
|
2196
|
+
getMarketingContactStats(siteId: string): Promise<MarketingContactStats>;
|
|
2197
|
+
getMarketingTags(siteId: string): Promise<MarketingTag[]>;
|
|
2198
|
+
getEmailDrafts(siteId: string, kind?: EmailDraftKind): Promise<EmailDraft[]>;
|
|
2199
|
+
getEmailDraft(siteId: string, draftId: string): Promise<EmailDraft>;
|
|
2200
|
+
/**
|
|
2201
|
+
* The draft as it sends. `editable` is the inline editor's preview (KTD30):
|
|
2202
|
+
* section markers and a bridge script, for an iframe with
|
|
2203
|
+
* `sandbox="allow-scripts"` only; never show it anywhere else.
|
|
2204
|
+
*/
|
|
2205
|
+
previewEmailDraft(siteId: string, draftId: string, opts?: {
|
|
2206
|
+
editable?: boolean;
|
|
2207
|
+
}): Promise<EmailDraftPreview>;
|
|
2208
|
+
/** The site's templates, newest first, without source. Standard has no entry. */
|
|
2209
|
+
getEmailTemplates(siteId: string): Promise<EmailTemplateSummary[]>;
|
|
2210
|
+
/** A sample email, or `draftId`'s content, through one template; `templateId` `standard` is the built-in one. */
|
|
2211
|
+
previewEmailTemplate(siteId: string, templateId: string, draftId?: string): Promise<EmailTemplatePreview>;
|
|
2212
|
+
getBroadcasts(siteId: string): Promise<Broadcast[]>;
|
|
2213
|
+
estimateBroadcast(siteId: string, input: {
|
|
2214
|
+
targeting: BroadcastTargeting;
|
|
2215
|
+
scheduled_at?: string | null;
|
|
2216
|
+
}): Promise<BroadcastPlan>;
|
|
2217
|
+
getWelcomeSequence(siteId: string): Promise<WelcomeSequence>;
|
|
2218
|
+
getRecoveryFlow(siteId: string): Promise<RecoveryFlow>;
|
|
1934
2219
|
}
|
|
1935
2220
|
declare function createApiClient(siteToken: string, apiUrl?: string): AifeaturesApiClient;
|
|
1936
2221
|
|
|
@@ -2736,6 +3021,316 @@ declare function RetainersPanel({ retainers, isLoading, error, onRetry, onShowCy
|
|
|
2736
3021
|
/** Shared merchant dashboard surface; all writes use the same API as agent tools. */
|
|
2737
3022
|
declare function PromosPanel(): react_jsx_runtime.JSX.Element;
|
|
2738
3023
|
|
|
3024
|
+
/** An image the host's site-image picker returns (U18 passes the site's media). */
|
|
3025
|
+
interface PickedImage {
|
|
3026
|
+
url: string;
|
|
3027
|
+
alt?: string;
|
|
3028
|
+
}
|
|
3029
|
+
/** Opens the host's picker of the site's images; resolves null when the merchant cancels. */
|
|
3030
|
+
type PickImage = () => Promise<PickedImage | null>;
|
|
3031
|
+
|
|
3032
|
+
/**
|
|
3033
|
+
* The email view's org-key writes (email marketing plan U10, KTD10, KTD17).
|
|
3034
|
+
*
|
|
3035
|
+
* The view reads with the site token, but every write below needs the
|
|
3036
|
+
* organization key, which only the host app holds. The view calls
|
|
3037
|
+
* `onOrgAction(action, input)`; the app's relay checks the viewer owns the
|
|
3038
|
+
* site, then calls the aifeatures endpoint this table names. Both sides import
|
|
3039
|
+
* this one table, so the action names and endpoints cannot drift apart.
|
|
3040
|
+
*
|
|
3041
|
+
* No React here: the app's API imports this module.
|
|
3042
|
+
*
|
|
3043
|
+
* Request shape: `path` is relative to the aifeatures `/api/v1` base. Each
|
|
3044
|
+
* `{param}` in `params` is read from `input` and removed from the body; the
|
|
3045
|
+
* rest of `input` is the JSON body (GET and DELETE send none). `{siteId}` is
|
|
3046
|
+
* NEVER taken from `input`: the relay fills it from the site it authorized.
|
|
3047
|
+
*
|
|
3048
|
+
* Relay duties the table cannot express:
|
|
3049
|
+
* - `importContacts`: the relay adds `attested_by` (the app user id). The view
|
|
3050
|
+
* sends `attested: true` only after the merchant ticks the attestation.
|
|
3051
|
+
* - `setFormPurpose`: the aifeatures form route is not site-scoped, so the
|
|
3052
|
+
* relay must confirm the form belongs to the authorized site before calling
|
|
3053
|
+
* it (for example, `GET /forms/{formId}` with that site's token).
|
|
3054
|
+
* - `exportContacts` answers with CSV text, not JSON; resolve with the text.
|
|
3055
|
+
* - On an aifeatures error, reject with an Error whose `code` is the
|
|
3056
|
+
* aifeatures error `code` (`version_conflict`, `over_allowance`,
|
|
3057
|
+
* `template_changed`, `template_in_use`, …): the view keys its recovery on it.
|
|
3058
|
+
*/
|
|
3059
|
+
declare const EMAIL_ORG_ACTIONS: {
|
|
3060
|
+
readonly commitBroadcast: {
|
|
3061
|
+
readonly method: "POST";
|
|
3062
|
+
readonly path: "/sites/{siteId}/marketing/broadcasts";
|
|
3063
|
+
};
|
|
3064
|
+
readonly cancelBroadcast: {
|
|
3065
|
+
readonly method: "POST";
|
|
3066
|
+
readonly path: "/sites/{siteId}/marketing/broadcasts/{sendId}/cancel";
|
|
3067
|
+
readonly params: readonly ["sendId"];
|
|
3068
|
+
};
|
|
3069
|
+
readonly createDraft: {
|
|
3070
|
+
readonly method: "POST";
|
|
3071
|
+
readonly path: "/sites/{siteId}/marketing/drafts";
|
|
3072
|
+
};
|
|
3073
|
+
readonly updateDraft: {
|
|
3074
|
+
readonly method: "PUT";
|
|
3075
|
+
readonly path: "/sites/{siteId}/marketing/drafts/{draftId}";
|
|
3076
|
+
readonly params: readonly ["draftId"];
|
|
3077
|
+
};
|
|
3078
|
+
readonly deleteDraft: {
|
|
3079
|
+
readonly method: "DELETE";
|
|
3080
|
+
readonly path: "/sites/{siteId}/marketing/drafts/{draftId}";
|
|
3081
|
+
readonly params: readonly ["draftId"];
|
|
3082
|
+
};
|
|
3083
|
+
readonly testSendDraft: {
|
|
3084
|
+
readonly method: "POST";
|
|
3085
|
+
readonly path: "/sites/{siteId}/marketing/drafts/{draftId}/test";
|
|
3086
|
+
readonly params: readonly ["draftId"];
|
|
3087
|
+
};
|
|
3088
|
+
readonly setDraftTemplate: {
|
|
3089
|
+
readonly method: "PUT";
|
|
3090
|
+
readonly path: "/sites/{siteId}/marketing/drafts/{draftId}/template";
|
|
3091
|
+
readonly params: readonly ["draftId"];
|
|
3092
|
+
};
|
|
3093
|
+
readonly duplicateDraft: {
|
|
3094
|
+
readonly method: "POST";
|
|
3095
|
+
readonly path: "/sites/{siteId}/marketing/drafts/{draftId}/duplicate";
|
|
3096
|
+
readonly params: readonly ["draftId"];
|
|
3097
|
+
};
|
|
3098
|
+
readonly copyEmailTemplate: {
|
|
3099
|
+
readonly method: "POST";
|
|
3100
|
+
readonly path: "/sites/{siteId}/marketing/templates/{templateId}/copy";
|
|
3101
|
+
readonly params: readonly ["templateId"];
|
|
3102
|
+
};
|
|
3103
|
+
readonly publishEmailTemplate: {
|
|
3104
|
+
readonly method: "POST";
|
|
3105
|
+
readonly path: "/sites/{siteId}/marketing/templates/{templateId}/publish";
|
|
3106
|
+
readonly params: readonly ["templateId"];
|
|
3107
|
+
};
|
|
3108
|
+
readonly archiveEmailTemplate: {
|
|
3109
|
+
readonly method: "POST";
|
|
3110
|
+
readonly path: "/sites/{siteId}/marketing/templates/{templateId}/archive";
|
|
3111
|
+
readonly params: readonly ["templateId"];
|
|
3112
|
+
};
|
|
3113
|
+
readonly unarchiveEmailTemplate: {
|
|
3114
|
+
readonly method: "POST";
|
|
3115
|
+
readonly path: "/sites/{siteId}/marketing/templates/{templateId}/unarchive";
|
|
3116
|
+
readonly params: readonly ["templateId"];
|
|
3117
|
+
};
|
|
3118
|
+
readonly deleteEmailTemplate: {
|
|
3119
|
+
readonly method: "DELETE";
|
|
3120
|
+
readonly path: "/sites/{siteId}/marketing/templates/{templateId}";
|
|
3121
|
+
readonly params: readonly ["templateId"];
|
|
3122
|
+
};
|
|
3123
|
+
readonly importContacts: {
|
|
3124
|
+
readonly method: "POST";
|
|
3125
|
+
readonly path: "/sites/{siteId}/contacts/import";
|
|
3126
|
+
};
|
|
3127
|
+
readonly exportContacts: {
|
|
3128
|
+
readonly method: "GET";
|
|
3129
|
+
readonly path: "/sites/{siteId}/contacts/export";
|
|
3130
|
+
};
|
|
3131
|
+
readonly createTag: {
|
|
3132
|
+
readonly method: "POST";
|
|
3133
|
+
readonly path: "/sites/{siteId}/contact-tags";
|
|
3134
|
+
};
|
|
3135
|
+
readonly updateTag: {
|
|
3136
|
+
readonly method: "PATCH";
|
|
3137
|
+
readonly path: "/sites/{siteId}/contact-tags/{tagId}";
|
|
3138
|
+
readonly params: readonly ["tagId"];
|
|
3139
|
+
};
|
|
3140
|
+
readonly bulkTagContacts: {
|
|
3141
|
+
readonly method: "POST";
|
|
3142
|
+
readonly path: "/sites/{siteId}/contacts/tags";
|
|
3143
|
+
};
|
|
3144
|
+
readonly unsubscribeContact: {
|
|
3145
|
+
readonly method: "POST";
|
|
3146
|
+
readonly path: "/sites/{siteId}/contacts/{contactId}/unsubscribe";
|
|
3147
|
+
readonly params: readonly ["contactId"];
|
|
3148
|
+
};
|
|
3149
|
+
readonly updateSettings: {
|
|
3150
|
+
readonly method: "PUT";
|
|
3151
|
+
readonly path: "/sites/{siteId}/marketing";
|
|
3152
|
+
};
|
|
3153
|
+
readonly setFormPurpose: {
|
|
3154
|
+
readonly method: "PATCH";
|
|
3155
|
+
readonly path: "/forms/{formId}";
|
|
3156
|
+
readonly params: readonly ["formId"];
|
|
3157
|
+
};
|
|
3158
|
+
readonly createWelcomeStep: {
|
|
3159
|
+
readonly method: "POST";
|
|
3160
|
+
readonly path: "/sites/{siteId}/marketing/welcome/steps";
|
|
3161
|
+
};
|
|
3162
|
+
readonly updateWelcomeStep: {
|
|
3163
|
+
readonly method: "PATCH";
|
|
3164
|
+
readonly path: "/sites/{siteId}/marketing/welcome/steps/{stepId}";
|
|
3165
|
+
readonly params: readonly ["stepId"];
|
|
3166
|
+
};
|
|
3167
|
+
readonly deleteWelcomeStep: {
|
|
3168
|
+
readonly method: "DELETE";
|
|
3169
|
+
readonly path: "/sites/{siteId}/marketing/welcome/steps/{stepId}";
|
|
3170
|
+
readonly params: readonly ["stepId"];
|
|
3171
|
+
};
|
|
3172
|
+
readonly publishWelcomeStep: {
|
|
3173
|
+
readonly method: "POST";
|
|
3174
|
+
readonly path: "/sites/{siteId}/marketing/welcome/steps/{stepId}/publish";
|
|
3175
|
+
readonly params: readonly ["stepId"];
|
|
3176
|
+
};
|
|
3177
|
+
readonly activateWelcome: {
|
|
3178
|
+
readonly method: "POST";
|
|
3179
|
+
readonly path: "/sites/{siteId}/marketing/welcome/activate";
|
|
3180
|
+
};
|
|
3181
|
+
readonly pauseWelcome: {
|
|
3182
|
+
readonly method: "POST";
|
|
3183
|
+
readonly path: "/sites/{siteId}/marketing/welcome/pause";
|
|
3184
|
+
};
|
|
3185
|
+
readonly updateWelcome: {
|
|
3186
|
+
readonly method: "PATCH";
|
|
3187
|
+
readonly path: "/sites/{siteId}/marketing/welcome";
|
|
3188
|
+
};
|
|
3189
|
+
readonly setRecoveryStep: {
|
|
3190
|
+
readonly method: "PUT";
|
|
3191
|
+
readonly path: "/sites/{siteId}/marketing/recovery/steps/{step}";
|
|
3192
|
+
readonly params: readonly ["step"];
|
|
3193
|
+
};
|
|
3194
|
+
readonly publishRecoveryStep: {
|
|
3195
|
+
readonly method: "POST";
|
|
3196
|
+
readonly path: "/sites/{siteId}/marketing/recovery/steps/{step}/publish";
|
|
3197
|
+
readonly params: readonly ["step"];
|
|
3198
|
+
};
|
|
3199
|
+
readonly deleteRecoveryStep: {
|
|
3200
|
+
readonly method: "DELETE";
|
|
3201
|
+
readonly path: "/sites/{siteId}/marketing/recovery/steps/{step}";
|
|
3202
|
+
readonly params: readonly ["step"];
|
|
3203
|
+
};
|
|
3204
|
+
readonly activateRecovery: {
|
|
3205
|
+
readonly method: "POST";
|
|
3206
|
+
readonly path: "/sites/{siteId}/marketing/recovery/activate";
|
|
3207
|
+
};
|
|
3208
|
+
readonly pauseRecovery: {
|
|
3209
|
+
readonly method: "POST";
|
|
3210
|
+
readonly path: "/sites/{siteId}/marketing/recovery/pause";
|
|
3211
|
+
};
|
|
3212
|
+
};
|
|
3213
|
+
type EmailOrgAction = keyof typeof EMAIL_ORG_ACTIONS;
|
|
3214
|
+
interface EmailOrgRequest {
|
|
3215
|
+
method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
3216
|
+
/** Relative to the aifeatures `/api/v1` base. */
|
|
3217
|
+
path: string;
|
|
3218
|
+
/** JSON body; undefined for GET and DELETE. */
|
|
3219
|
+
body: Record<string, unknown> | undefined;
|
|
3220
|
+
}
|
|
3221
|
+
declare function isEmailOrgAction(value: unknown): value is EmailOrgAction;
|
|
3222
|
+
/**
|
|
3223
|
+
* The aifeatures request for one action: path params from `input`, the rest
|
|
3224
|
+
* as the body. `siteId` comes from the relay's authorized site, never from
|
|
3225
|
+
* `input`. Throws when a path param is missing.
|
|
3226
|
+
*/
|
|
3227
|
+
declare function buildEmailOrgRequest(action: EmailOrgAction, siteId: string, input: Record<string, unknown>): EmailOrgRequest;
|
|
3228
|
+
/**
|
|
3229
|
+
* Plain words for the send readiness codes (U4's `siteMaySendMarketing`
|
|
3230
|
+
* reasons). One table for the email view and anything else that explains them.
|
|
3231
|
+
*/
|
|
3232
|
+
declare const EMAIL_READINESS_TEXT: Record<string, string>;
|
|
3233
|
+
declare function emailReadinessText(reason: string | null | undefined): string | null;
|
|
3234
|
+
|
|
3235
|
+
interface EmailDomainSetupResult {
|
|
3236
|
+
status: string;
|
|
3237
|
+
records?: Array<{
|
|
3238
|
+
type: string;
|
|
3239
|
+
name: string;
|
|
3240
|
+
value: string;
|
|
3241
|
+
priority?: number;
|
|
3242
|
+
}>;
|
|
3243
|
+
}
|
|
3244
|
+
/** The plan's help text for the double opt-in toggle, verbatim. */
|
|
3245
|
+
declare const DOUBLE_OPT_IN_HELP = "Subscribers confirm by email before they receive anything. Useful if many subscribers are in the EU (especially Germany), or if your forms attract fake or mistyped signups. Some signups need confirming even with this off: bursts of signups, and people re-subscribing after they unsubscribed.";
|
|
3246
|
+
|
|
3247
|
+
/** What the host knows about the site that the email API doesn't. All optional. */
|
|
3248
|
+
interface EmailSiteInfo {
|
|
3249
|
+
/** The site's custom domain (`woodwagon.co`); null when it has none. Unknown when omitted. */
|
|
3250
|
+
siteDomain?: string | null;
|
|
3251
|
+
/** The site's business name, for before the owner has set a sender name. */
|
|
3252
|
+
businessName?: string | null;
|
|
3253
|
+
}
|
|
3254
|
+
|
|
3255
|
+
interface EmailViewProps extends EmailSiteInfo {
|
|
3256
|
+
siteId: string;
|
|
3257
|
+
/** The viewer is the site's owner (or an admin): writes are offered. */
|
|
3258
|
+
isOwnerSide: boolean;
|
|
3259
|
+
needsPaidPlan: boolean;
|
|
3260
|
+
/**
|
|
3261
|
+
* Deep link (`show_view('email', {draft_id})`): open this draft. Nothing
|
|
3262
|
+
* sends until the merchant clicks. Wins over `templateId` and `initialTab`.
|
|
3263
|
+
*/
|
|
3264
|
+
initialDraftId?: string;
|
|
3265
|
+
/** Deep link (`show_view('email', {tab})`): open this tab. The old `template` opens Templates. */
|
|
3266
|
+
initialTab?: EmailViewInitialTab;
|
|
3267
|
+
/**
|
|
3268
|
+
* Deep link (`show_view('email', {template_id})`): open this template;
|
|
3269
|
+
* `standard` is the built-in one, and an id the site no longer has opens the
|
|
3270
|
+
* Templates list. Wins over `initialTab`.
|
|
3271
|
+
*/
|
|
3272
|
+
templateId?: string;
|
|
3273
|
+
/**
|
|
3274
|
+
* The host's show_view counter. The view is never remounted for a link
|
|
3275
|
+
* (KTD32): a new nonce applies the link props again, even when they are
|
|
3276
|
+
* unchanged, and a link that arrives while an inline edit is open applies
|
|
3277
|
+
* once it closes.
|
|
3278
|
+
*/
|
|
3279
|
+
showViewNonce?: number;
|
|
3280
|
+
/** The host's org-key relay for every write (see EMAIL_ORG_ACTIONS). */
|
|
3281
|
+
onOrgAction: (action: EmailOrgAction, input: Record<string, unknown>) => Promise<unknown>;
|
|
3282
|
+
/** A paused site asks an admin to review it (resume stays admin-only). */
|
|
3283
|
+
onRequestReview?: () => Promise<void>;
|
|
3284
|
+
/** Create the sending domain (and its DNS when the site's nameservers are ours). */
|
|
3285
|
+
onStartDomainSetup?: () => Promise<EmailDomainSetupResult>;
|
|
3286
|
+
onBackToWebsite?: () => void;
|
|
3287
|
+
/** Open the host's plan page; a plan without email shows it as Upgrade to Pro. */
|
|
3288
|
+
onUpgradePlan?: () => void;
|
|
3289
|
+
/** Open the host's domain settings, for a site with no custom domain. */
|
|
3290
|
+
onConnectDomain?: () => void;
|
|
3291
|
+
/** Put a prompt in the host's chat composer, unsent ("Add a newsletter signup to my footer"). */
|
|
3292
|
+
onAskAssistant?: (prompt: string) => void;
|
|
3293
|
+
/** Pick one of the site's images for an email image section; resolve null on cancel. Without it the editor asks for an https URL. */
|
|
3294
|
+
onPickImage?: PickImage;
|
|
3295
|
+
/** Get started: turn email marketing on for the site. Without it, a site with email off shows the intro and no button. */
|
|
3296
|
+
onTurnOn?: () => Promise<void>;
|
|
3297
|
+
/** Open the host's Settings → Store, where checkout marketing consent lives. */
|
|
3298
|
+
onOpenStoreSettings?: () => void;
|
|
3299
|
+
/**
|
|
3300
|
+
* Bump to refetch everything the view shows in place (an agent turn changed
|
|
3301
|
+
* email data). Keeps the open tab and never overwrites a draft edit the
|
|
3302
|
+
* merchant hasn't saved.
|
|
3303
|
+
*/
|
|
3304
|
+
refreshKey?: number;
|
|
3305
|
+
className?: string;
|
|
3306
|
+
}
|
|
3307
|
+
/** The Email view's tabs (KTD35), the same list as the app's `EMAIL_VIEW_TABS` and the modal's `show_view`. */
|
|
3308
|
+
type EmailViewTab = "audience" | "broadcasts" | "automations" | "templates" | "settings";
|
|
3309
|
+
type EmailViewInitialTab = EmailViewTab | "template";
|
|
3310
|
+
/**
|
|
3311
|
+
* EmailView — the merchant's email marketing view (plan U10; email templates
|
|
3312
|
+
* U15): audience, broadcasts, templates and settings.
|
|
3313
|
+
* Reads use the site token; every write goes through `onOrgAction`.
|
|
3314
|
+
*/
|
|
3315
|
+
/**
|
|
3316
|
+
* Keyed by site: every panel, open draft, editor and preview starts fresh on
|
|
3317
|
+
* another site, so no state loaded or typed for one site can be rendered, or
|
|
3318
|
+
* saved, against another.
|
|
3319
|
+
*/
|
|
3320
|
+
declare function EmailView(props: EmailViewProps): react_jsx_runtime.JSX.Element;
|
|
3321
|
+
|
|
3322
|
+
interface ContactImportProps {
|
|
3323
|
+
/** Called with the report after a completed import. */
|
|
3324
|
+
onImported?: (report: ContactImportReport) => void;
|
|
3325
|
+
}
|
|
3326
|
+
/** The consent statement the merchant attests to before any import (R5). */
|
|
3327
|
+
declare const IMPORT_ATTESTATION = "I confirm that everyone in this file agreed to receive marketing email from my business.";
|
|
3328
|
+
/**
|
|
3329
|
+
* CSV import with tags. Nothing is sent until the merchant ticks the consent
|
|
3330
|
+
* attestation; the result shows what was added and why rows were skipped.
|
|
3331
|
+
*/
|
|
3332
|
+
declare function ContactImport({ onImported }: ContactImportProps): react_jsx_runtime.JSX.Element;
|
|
3333
|
+
|
|
2739
3334
|
interface UseFormsReturn {
|
|
2740
3335
|
forms: Form[];
|
|
2741
3336
|
isLoading: boolean;
|
|
@@ -3271,6 +3866,51 @@ declare function useRealtimeVisitors(options?: {
|
|
|
3271
3866
|
identity?: string | null;
|
|
3272
3867
|
}): UseRealtimeVisitorsReturn;
|
|
3273
3868
|
|
|
3869
|
+
/**
|
|
3870
|
+
* One read for the email view: loads on mount and whenever `key` changes,
|
|
3871
|
+
* drops stale responses, and exposes a refetch. Internal to the email hooks.
|
|
3872
|
+
*/
|
|
3873
|
+
interface EmailResource<T> {
|
|
3874
|
+
data: T | null;
|
|
3875
|
+
isLoading: boolean;
|
|
3876
|
+
error: Error | null;
|
|
3877
|
+
refetch: () => Promise<void>;
|
|
3878
|
+
}
|
|
3879
|
+
|
|
3880
|
+
/** The site token's page cap for contact reads (KTD17). */
|
|
3881
|
+
declare const AUDIENCE_PAGE_SIZE = 50;
|
|
3882
|
+
interface UseAudienceOptions {
|
|
3883
|
+
siteId: string;
|
|
3884
|
+
/** Search the email address or name. */
|
|
3885
|
+
q?: string;
|
|
3886
|
+
offset?: number;
|
|
3887
|
+
/** Bump to refetch everything. */
|
|
3888
|
+
refreshKey?: number;
|
|
3889
|
+
}
|
|
3890
|
+
interface UseAudienceReturn {
|
|
3891
|
+
contacts: EmailResource<MarketingContactsPage>;
|
|
3892
|
+
stats: EmailResource<MarketingContactStats>;
|
|
3893
|
+
tags: EmailResource<MarketingTag[]>;
|
|
3894
|
+
refetchAll: () => Promise<void>;
|
|
3895
|
+
}
|
|
3896
|
+
/** Contacts (one page, searched), counts with growth, and tags with counts. */
|
|
3897
|
+
declare function useAudience({ siteId, q, offset, refreshKey }: UseAudienceOptions): UseAudienceReturn;
|
|
3898
|
+
|
|
3899
|
+
interface UseEmailDraftsOptions {
|
|
3900
|
+
siteId: string;
|
|
3901
|
+
kind?: EmailDraftKind;
|
|
3902
|
+
refreshKey?: number;
|
|
3903
|
+
}
|
|
3904
|
+
/** The site's email drafts, most recently edited first. */
|
|
3905
|
+
declare function useEmailDrafts({ siteId, kind, refreshKey }: UseEmailDraftsOptions): EmailResource<EmailDraft[]>;
|
|
3906
|
+
|
|
3907
|
+
interface UseBroadcastsOptions {
|
|
3908
|
+
siteId: string;
|
|
3909
|
+
refreshKey?: number;
|
|
3910
|
+
}
|
|
3911
|
+
/** The site's broadcasts with their delivery stats, newest first. */
|
|
3912
|
+
declare function useBroadcasts({ siteId, refreshKey }: UseBroadcastsOptions): EmailResource<Broadcast[]>;
|
|
3913
|
+
|
|
3274
3914
|
interface UseSiteSettingsOptions {
|
|
3275
3915
|
/** The aifeatures site id. Must be the site the provider's token belongs to. */
|
|
3276
3916
|
siteId: string;
|
|
@@ -3569,4 +4209,4 @@ interface DashboardViewProps {
|
|
|
3569
4209
|
*/
|
|
3570
4210
|
declare function DashboardView({ refreshKey, onBackToWebsite, primaryConversion, onChangePrimaryConversion, onOpenSurface, needsPaidPlan, onUpgradePlan, onConnectStripe, }: DashboardViewProps): react_jsx_runtime.JSX.Element;
|
|
3571
4211
|
|
|
3572
|
-
export { type AdjustInventoryInput, type AifeaturesApiClient, AifeaturesApiError, type AifeaturesContextValue, AifeaturesProvider, type AifeaturesProviderProps, type AnalyticsBreakdown, type AnalyticsBreakdownName, type AnalyticsBreakdownRow, type AnalyticsChannelRow, type AnalyticsChannels, type AnalyticsConversionRow, type AnalyticsConversions, type AnalyticsFilter, type AnalyticsFilterDimension, type AnalyticsGoalTargetRow, type AnalyticsGoalTargets, type AnalyticsPeriod, type AnalyticsRealtime, type AnalyticsSourced, type AnalyticsStatus, type AnalyticsSummary, type AnalyticsSummaryData, type AnalyticsSummaryMetrics, type AnalyticsTimeseries, type AnalyticsTimeseriesRow, AnalyticsView, type AnalyticsViewProps, type ApiError, type Attachment, type BusinessSummary, type BusinessVisitors, type CreateEventDestinationInput, type CreateFormInput, type CreateOptionInput, type CreateProductInput, type CreatePromoInput, type CreateVariantInput, type CurrencyRestatement, type Customer, type CustomerAddress, CustomerDetail, type CustomerDetail$1 as CustomerDetailData, type CustomerDetailProps, CustomersList, type CustomersListProps, type CustomersListResponse, DashboardView, type DashboardViewProps, type EmailDelivery, type EmailSideStatus, type EventDeliveriesListResponse, type EventDelivery, type EventDestination, type EventDestinationSecretResponse, type EventDestinationsListResponse, ExportCsvButton, type ExportCsvButtonProps, type ExportOrdersOptions, type ExportPeopleOptions, type ExportRetainersOptions, type ExportSubscriptionsOptions, type Form, FormSettings, type FormSettingsProps, FormSubmissions, type FormSubmissionsProps, FormsDashboard, type FormsDashboardProps, FormsList, type FormsListProps, type FormsListResponse, type FormsLocation, type FormsTab, type GetBusinessSummaryOptions, type GetCustomersOptions, type GetInvoicesOptions, type GetOrdersOptions, type GetPeopleOptions, type GetProductsOptions, type GetSubmissionsOptions, type GetSubscriptionsOptions, type Invoice, type InvoiceAggregates, type InvoiceBillTo, type InvoiceDeliveryState, InvoiceDetail, type InvoiceDetailProps, type InvoiceLabel, InvoiceLabelBadge, type InvoiceLineItem, type InvoicePreview, type InvoiceSettings, InvoiceSettingsPanel, type InvoiceSettingsPanelProps, InvoicesList, type InvoicesListProps, InvoicesView, type InvoicesViewProps, LeadsView, type LeadsViewProps, type LowStockProduct, MAX_ANALYTICS_FILTERS, MAX_ANALYTICS_FILTER_VALUES, type NeedsAttentionItem, type NeedsAttentionType, NotificationRecipientsSettings, type NotificationRecipientsSettingsProps, type Order, OrderDetail, type OrderDetailProps, type OrderStatus, OrderStatusBadge, OrdersList, type OrdersListProps, OrdersView, type OrdersViewProps, type PaginatedInvoices, type PaginatedOrders, type PaginatedSubmissions, type PaginatedSubscriptions, PaymentsDashboard, type PaymentsDashboardProps, PaymentsSetup, type PaymentsSetupProps, type PaymentsStatus, type PaymentsStatusReason, type PaymentsStatusResponse, type PeopleListResponse, type Person, type PersonDetail, type PersonOrder, type PersonSource, type PersonSubmission, type PrimaryConversion, type Product, type ProductDetail, type ProductFulfillment, type ProductFulfillmentType, type ProductOption, ProductSettings, type ProductSettingsProps, type ProductStats, type ProductVariant, ProductsList, type ProductsListProps, type ProductsListResponse, ProductsView, type ProductsViewProps, type Promo, type PromosListResponse, PromosPanel, REALTIME_FAILURES_BEFORE_ERROR, REALTIME_POLL_MS, type RefundRequest, type ReportSlot, RetainerStatusBadge, RetainersPanel, type RetainersPanelProps, type RevenueCurrencyTotal, type RevenuePeriod, type SetInventoryInput, type SetOrderFulfillmentInput, type SettledRevenue, type ShippingRate, type SiteSettings, type StoreInvoiceSettingsInput, StoreSettings, type StoreSettingsProps, type StoreSettingsSection, type Submission, SubmissionDetail, type SubmissionDetailProps, type SubmissionMetadata, type Subscription, SubscriptionsView, type SubscriptionsViewProps, type UpdateEventDestinationInput, type UpdateFormInput, type UpdateOptionInput, type UpdateProductInput, type UpdateSiteSettingsInput, type UpdateSiteSettingsResult, type UpdateVariantInput, type UseAnalyticsOptions, type UseAnalyticsReturn, type UseBusinessSummaryOptions, type UseBusinessSummaryReturn, type UseCsvExportOptions, type UseCsvExportReturn, type UseCustomersOptions, type UseCustomersReturn, type UseEventDestinationsReturn, type UseFormsReturn, type UseInvoicesOptions, type UseInvoicesReturn, type UseOrdersOptions, type UseOrdersReturn, type UsePaymentsStatusReturn, type UsePeopleOptions, type UsePeopleReturn, type UsePersonOptions, type UsePersonReturn, type UseProductsOptions, type UseProductsReturn, type UseRealtimeVisitorsReturn, type UseSiteSettingsOptions, type UseSiteSettingsReturn, type UseSubmissionsOptions, type UseSubmissionsReturn, type UseSubscriptionsOptions, type UseSubscriptionsReturn, type VariantInventory, type VariantOptionValue, VariantsEditor, type VariantsEditorProps, ViewShell, type ViewShellProps, WebhookDeliveries, type WebhookDeliveriesProps, WebhookSettings, type WebhookSettingsProps, chargedTotal, createApiClient, formatPrice, isZeroDecimalCurrency, toMajorUnits, toMinorUnits, useAifeaturesContext as useAifeatures, useAifeaturesContext, useAnalytics, useBusinessSummary, useCsvExport, useCustomers, useEventDestinations, useForms, useInvoices, useOrders, usePaymentsStatus, usePeople, usePerson, useProducts, useRealtimeVisitors, useRetainers, useSiteSettings, useSubmissions, useSubscriptions };
|
|
4212
|
+
export { AUDIENCE_PAGE_SIZE, type AdjustInventoryInput, type AifeaturesApiClient, AifeaturesApiError, type AifeaturesContextValue, AifeaturesProvider, type AifeaturesProviderProps, type AnalyticsBreakdown, type AnalyticsBreakdownName, type AnalyticsBreakdownRow, type AnalyticsChannelRow, type AnalyticsChannels, type AnalyticsConversionRow, type AnalyticsConversions, type AnalyticsFilter, type AnalyticsFilterDimension, type AnalyticsGoalTargetRow, type AnalyticsGoalTargets, type AnalyticsPeriod, type AnalyticsRealtime, type AnalyticsSourced, type AnalyticsStatus, type AnalyticsSummary, type AnalyticsSummaryData, type AnalyticsSummaryMetrics, type AnalyticsTimeseries, type AnalyticsTimeseriesRow, AnalyticsView, type AnalyticsViewProps, type ApiError, type Attachment, type Broadcast, type BroadcastPlan, type BroadcastStatus, type BroadcastTargeting, type BusinessSummary, type BusinessVisitors, type ContactConsentStatus, ContactImport, type ContactImportProps, type ContactImportReport, type ContactTagRef, type CreateEventDestinationInput, type CreateFormInput, type CreateOptionInput, type CreateProductInput, type CreatePromoInput, type CreateVariantInput, type CurrencyRestatement, type Customer, type CustomerAddress, CustomerDetail, type CustomerDetail$1 as CustomerDetailData, type CustomerDetailProps, CustomersList, type CustomersListProps, type CustomersListResponse, DOUBLE_OPT_IN_HELP, DashboardView, type DashboardViewProps, EMAIL_ORG_ACTIONS, EMAIL_READINESS_TEXT, type EmailDelivery, type EmailDomainSetupResult, type EmailDraft, type EmailDraftBlock, type EmailDraftKind, type EmailDraftPreview, type EmailOrgAction, type EmailOrgRequest, type EmailResource, type EmailSideStatus, type EmailTemplatePreview, type EmailTemplateRef, type EmailTemplateStatus, type EmailTemplateSummary, EmailView, type EmailViewInitialTab, type EmailViewProps, type EmailViewTab, type EventDeliveriesListResponse, type EventDelivery, type EventDestination, type EventDestinationSecretResponse, type EventDestinationsListResponse, ExportCsvButton, type ExportCsvButtonProps, type ExportOrdersOptions, type ExportPeopleOptions, type ExportRetainersOptions, type ExportSubscriptionsOptions, type Form, FormSettings, type FormSettingsProps, FormSubmissions, type FormSubmissionsProps, FormsDashboard, type FormsDashboardProps, FormsList, type FormsListProps, type FormsListResponse, type FormsLocation, type FormsTab, type GetBusinessSummaryOptions, type GetCustomersOptions, type GetInvoicesOptions, type GetOrdersOptions, type GetPeopleOptions, type GetProductsOptions, type GetSubmissionsOptions, type GetSubscriptionsOptions, IMPORT_ATTESTATION, type ImportSkipReason, type Invoice, type InvoiceAggregates, type InvoiceBillTo, type InvoiceDeliveryState, InvoiceDetail, type InvoiceDetailProps, type InvoiceLabel, InvoiceLabelBadge, type InvoiceLineItem, type InvoicePreview, type InvoiceSettings, InvoiceSettingsPanel, type InvoiceSettingsPanelProps, InvoicesList, type InvoicesListProps, InvoicesView, type InvoicesViewProps, LeadsView, type LeadsViewProps, type LowStockProduct, MAX_ANALYTICS_FILTERS, MAX_ANALYTICS_FILTER_VALUES, type MarketingContact, type MarketingContactStats, type MarketingContactsPage, type MarketingSettings, type MarketingTag, type NeedsAttentionItem, type NeedsAttentionType, NotificationRecipientsSettings, type NotificationRecipientsSettingsProps, type Order, OrderDetail, type OrderDetailProps, type OrderStatus, OrderStatusBadge, OrdersList, type OrdersListProps, OrdersView, type OrdersViewProps, type PaginatedInvoices, type PaginatedOrders, type PaginatedSubmissions, type PaginatedSubscriptions, PaymentsDashboard, type PaymentsDashboardProps, PaymentsSetup, type PaymentsSetupProps, type PaymentsStatus, type PaymentsStatusReason, type PaymentsStatusResponse, type PeopleListResponse, type Person, type PersonDetail, type PersonOrder, type PersonSource, type PersonSubmission, type PrimaryConversion, type Product, type ProductDetail, type ProductFulfillment, type ProductFulfillmentType, type ProductOption, ProductSettings, type ProductSettingsProps, type ProductStats, type ProductVariant, ProductsList, type ProductsListProps, type ProductsListResponse, ProductsView, type ProductsViewProps, type Promo, type PromosListResponse, PromosPanel, REALTIME_FAILURES_BEFORE_ERROR, REALTIME_POLL_MS, type RecoveryFlow, type RecoveryStep, type RefundRequest, type ReportSlot, RetainerStatusBadge, RetainersPanel, type RetainersPanelProps, type RevenueCurrencyTotal, type RevenuePeriod, type SetInventoryInput, type SetOrderFulfillmentInput, type SettledRevenue, type ShippingRate, type SiteSettings, type StoreInvoiceSettingsInput, StoreSettings, type StoreSettingsProps, type StoreSettingsSection, type Submission, SubmissionDetail, type SubmissionDetailProps, type SubmissionMetadata, type Subscription, SubscriptionsView, type SubscriptionsViewProps, type UpdateEventDestinationInput, type UpdateFormInput, type UpdateOptionInput, type UpdateProductInput, type UpdateSiteSettingsInput, type UpdateSiteSettingsResult, type UpdateVariantInput, type UseAnalyticsOptions, type UseAnalyticsReturn, type UseAudienceOptions, type UseAudienceReturn, type UseBroadcastsOptions, type UseBusinessSummaryOptions, type UseBusinessSummaryReturn, type UseCsvExportOptions, type UseCsvExportReturn, type UseCustomersOptions, type UseCustomersReturn, type UseEmailDraftsOptions, type UseEventDestinationsReturn, type UseFormsReturn, type UseInvoicesOptions, type UseInvoicesReturn, type UseOrdersOptions, type UseOrdersReturn, type UsePaymentsStatusReturn, type UsePeopleOptions, type UsePeopleReturn, type UsePersonOptions, type UsePersonReturn, type UseProductsOptions, type UseProductsReturn, type UseRealtimeVisitorsReturn, type UseSiteSettingsOptions, type UseSiteSettingsReturn, type UseSubmissionsOptions, type UseSubmissionsReturn, type UseSubscriptionsOptions, type UseSubscriptionsReturn, type VariantInventory, type VariantOptionValue, VariantsEditor, type VariantsEditorProps, ViewShell, type ViewShellProps, WebhookDeliveries, type WebhookDeliveriesProps, WebhookSettings, type WebhookSettingsProps, type WelcomeSequence, type WelcomeStep, buildEmailOrgRequest, chargedTotal, createApiClient, emailReadinessText, formatPrice, isEmailOrgAction, isZeroDecimalCurrency, toMajorUnits, toMinorUnits, useAifeaturesContext as useAifeatures, useAifeaturesContext, useAnalytics, useAudience, useBroadcasts, useBusinessSummary, useCsvExport, useCustomers, useEmailDrafts, useEventDestinations, useForms, useInvoices, useOrders, usePaymentsStatus, usePeople, usePerson, useProducts, useRealtimeVisitors, useRetainers, useSiteSettings, useSubmissions, useSubscriptions };
|