@aifeatures/admin-react 0.23.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 +144 -9
- package/dist/index.d.ts +144 -9
- package/dist/index.js +7 -4
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -117,6 +117,14 @@ interface EmailDraft {
|
|
|
117
117
|
targeting: BroadcastTargeting | null;
|
|
118
118
|
/** Advisory: the send time (ISO) the assistant proposed, for the commit panel to pre-fill. Never schedules anything. */
|
|
119
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;
|
|
120
128
|
created_at: string;
|
|
121
129
|
updated_at: string;
|
|
122
130
|
}
|
|
@@ -126,6 +134,40 @@ interface EmailDraftPreview {
|
|
|
126
134
|
text: string;
|
|
127
135
|
version: number;
|
|
128
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
|
+
}
|
|
129
171
|
interface BroadcastTargeting {
|
|
130
172
|
tag_ids: string[];
|
|
131
173
|
match: 'any' | 'all';
|
|
@@ -228,7 +270,7 @@ interface Form {
|
|
|
228
270
|
redirect_url: string | null;
|
|
229
271
|
turnstile_sitekey: string | null;
|
|
230
272
|
/** Present only while email marketing is enabled for the site (single-form reads). */
|
|
231
|
-
purpose?: 'general' | 'newsletter';
|
|
273
|
+
purpose?: 'general' | 'opt_in' | 'newsletter';
|
|
232
274
|
created_at: string;
|
|
233
275
|
updated_at: string;
|
|
234
276
|
}
|
|
@@ -2155,7 +2197,18 @@ interface AifeaturesApiClient {
|
|
|
2155
2197
|
getMarketingTags(siteId: string): Promise<MarketingTag[]>;
|
|
2156
2198
|
getEmailDrafts(siteId: string, kind?: EmailDraftKind): Promise<EmailDraft[]>;
|
|
2157
2199
|
getEmailDraft(siteId: string, draftId: string): Promise<EmailDraft>;
|
|
2158
|
-
|
|
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>;
|
|
2159
2212
|
getBroadcasts(siteId: string): Promise<Broadcast[]>;
|
|
2160
2213
|
estimateBroadcast(siteId: string, input: {
|
|
2161
2214
|
targeting: BroadcastTargeting;
|
|
@@ -2968,6 +3021,14 @@ declare function RetainersPanel({ retainers, isLoading, error, onRetry, onShowCy
|
|
|
2968
3021
|
/** Shared merchant dashboard surface; all writes use the same API as agent tools. */
|
|
2969
3022
|
declare function PromosPanel(): react_jsx_runtime.JSX.Element;
|
|
2970
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
|
+
|
|
2971
3032
|
/**
|
|
2972
3033
|
* The email view's org-key writes (email marketing plan U10, KTD10, KTD17).
|
|
2973
3034
|
*
|
|
@@ -2992,8 +3053,8 @@ declare function PromosPanel(): react_jsx_runtime.JSX.Element;
|
|
|
2992
3053
|
* it (for example, `GET /forms/{formId}` with that site's token).
|
|
2993
3054
|
* - `exportContacts` answers with CSV text, not JSON; resolve with the text.
|
|
2994
3055
|
* - On an aifeatures error, reject with an Error whose `code` is the
|
|
2995
|
-
* aifeatures error `code` (`version_conflict`, `over_allowance`,
|
|
2996
|
-
* view keys its recovery on it.
|
|
3056
|
+
* aifeatures error `code` (`version_conflict`, `over_allowance`,
|
|
3057
|
+
* `template_changed`, `template_in_use`, …): the view keys its recovery on it.
|
|
2997
3058
|
*/
|
|
2998
3059
|
declare const EMAIL_ORG_ACTIONS: {
|
|
2999
3060
|
readonly commitBroadcast: {
|
|
@@ -3024,6 +3085,41 @@ declare const EMAIL_ORG_ACTIONS: {
|
|
|
3024
3085
|
readonly path: "/sites/{siteId}/marketing/drafts/{draftId}/test";
|
|
3025
3086
|
readonly params: readonly ["draftId"];
|
|
3026
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
|
+
};
|
|
3027
3123
|
readonly importContacts: {
|
|
3028
3124
|
readonly method: "POST";
|
|
3029
3125
|
readonly path: "/sites/{siteId}/contacts/import";
|
|
@@ -3148,13 +3244,39 @@ interface EmailDomainSetupResult {
|
|
|
3148
3244
|
/** The plan's help text for the double opt-in toggle, verbatim. */
|
|
3149
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.";
|
|
3150
3246
|
|
|
3151
|
-
|
|
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 {
|
|
3152
3256
|
siteId: string;
|
|
3153
3257
|
/** The viewer is the site's owner (or an admin): writes are offered. */
|
|
3154
3258
|
isOwnerSide: boolean;
|
|
3155
3259
|
needsPaidPlan: boolean;
|
|
3156
|
-
/**
|
|
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
|
+
*/
|
|
3157
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;
|
|
3158
3280
|
/** The host's org-key relay for every write (see EMAIL_ORG_ACTIONS). */
|
|
3159
3281
|
onOrgAction: (action: EmailOrgAction, input: Record<string, unknown>) => Promise<unknown>;
|
|
3160
3282
|
/** A paused site asks an admin to review it (resume stays admin-only). */
|
|
@@ -3162,6 +3284,16 @@ interface EmailViewProps {
|
|
|
3162
3284
|
/** Create the sending domain (and its DNS when the site's nameservers are ours). */
|
|
3163
3285
|
onStartDomainSetup?: () => Promise<EmailDomainSetupResult>;
|
|
3164
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>;
|
|
3165
3297
|
/** Open the host's Settings → Store, where checkout marketing consent lives. */
|
|
3166
3298
|
onOpenStoreSettings?: () => void;
|
|
3167
3299
|
/**
|
|
@@ -3172,9 +3304,12 @@ interface EmailViewProps {
|
|
|
3172
3304
|
refreshKey?: number;
|
|
3173
3305
|
className?: string;
|
|
3174
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";
|
|
3175
3310
|
/**
|
|
3176
|
-
* EmailView — the merchant's email marketing view (plan U10
|
|
3177
|
-
* broadcasts and settings.
|
|
3311
|
+
* EmailView — the merchant's email marketing view (plan U10; email templates
|
|
3312
|
+
* U15): audience, broadcasts, templates and settings.
|
|
3178
3313
|
* Reads use the site token; every write goes through `onOrgAction`.
|
|
3179
3314
|
*/
|
|
3180
3315
|
/**
|
|
@@ -4074,4 +4209,4 @@ interface DashboardViewProps {
|
|
|
4074
4209
|
*/
|
|
4075
4210
|
declare function DashboardView({ refreshKey, onBackToWebsite, primaryConversion, onChangePrimaryConversion, onOpenSurface, needsPaidPlan, onUpgradePlan, onConnectStripe, }: DashboardViewProps): react_jsx_runtime.JSX.Element;
|
|
4076
4211
|
|
|
4077
|
-
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, EmailView, type EmailViewProps, 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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -117,6 +117,14 @@ interface EmailDraft {
|
|
|
117
117
|
targeting: BroadcastTargeting | null;
|
|
118
118
|
/** Advisory: the send time (ISO) the assistant proposed, for the commit panel to pre-fill. Never schedules anything. */
|
|
119
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;
|
|
120
128
|
created_at: string;
|
|
121
129
|
updated_at: string;
|
|
122
130
|
}
|
|
@@ -126,6 +134,40 @@ interface EmailDraftPreview {
|
|
|
126
134
|
text: string;
|
|
127
135
|
version: number;
|
|
128
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
|
+
}
|
|
129
171
|
interface BroadcastTargeting {
|
|
130
172
|
tag_ids: string[];
|
|
131
173
|
match: 'any' | 'all';
|
|
@@ -228,7 +270,7 @@ interface Form {
|
|
|
228
270
|
redirect_url: string | null;
|
|
229
271
|
turnstile_sitekey: string | null;
|
|
230
272
|
/** Present only while email marketing is enabled for the site (single-form reads). */
|
|
231
|
-
purpose?: 'general' | 'newsletter';
|
|
273
|
+
purpose?: 'general' | 'opt_in' | 'newsletter';
|
|
232
274
|
created_at: string;
|
|
233
275
|
updated_at: string;
|
|
234
276
|
}
|
|
@@ -2155,7 +2197,18 @@ interface AifeaturesApiClient {
|
|
|
2155
2197
|
getMarketingTags(siteId: string): Promise<MarketingTag[]>;
|
|
2156
2198
|
getEmailDrafts(siteId: string, kind?: EmailDraftKind): Promise<EmailDraft[]>;
|
|
2157
2199
|
getEmailDraft(siteId: string, draftId: string): Promise<EmailDraft>;
|
|
2158
|
-
|
|
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>;
|
|
2159
2212
|
getBroadcasts(siteId: string): Promise<Broadcast[]>;
|
|
2160
2213
|
estimateBroadcast(siteId: string, input: {
|
|
2161
2214
|
targeting: BroadcastTargeting;
|
|
@@ -2968,6 +3021,14 @@ declare function RetainersPanel({ retainers, isLoading, error, onRetry, onShowCy
|
|
|
2968
3021
|
/** Shared merchant dashboard surface; all writes use the same API as agent tools. */
|
|
2969
3022
|
declare function PromosPanel(): react_jsx_runtime.JSX.Element;
|
|
2970
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
|
+
|
|
2971
3032
|
/**
|
|
2972
3033
|
* The email view's org-key writes (email marketing plan U10, KTD10, KTD17).
|
|
2973
3034
|
*
|
|
@@ -2992,8 +3053,8 @@ declare function PromosPanel(): react_jsx_runtime.JSX.Element;
|
|
|
2992
3053
|
* it (for example, `GET /forms/{formId}` with that site's token).
|
|
2993
3054
|
* - `exportContacts` answers with CSV text, not JSON; resolve with the text.
|
|
2994
3055
|
* - On an aifeatures error, reject with an Error whose `code` is the
|
|
2995
|
-
* aifeatures error `code` (`version_conflict`, `over_allowance`,
|
|
2996
|
-
* view keys its recovery on it.
|
|
3056
|
+
* aifeatures error `code` (`version_conflict`, `over_allowance`,
|
|
3057
|
+
* `template_changed`, `template_in_use`, …): the view keys its recovery on it.
|
|
2997
3058
|
*/
|
|
2998
3059
|
declare const EMAIL_ORG_ACTIONS: {
|
|
2999
3060
|
readonly commitBroadcast: {
|
|
@@ -3024,6 +3085,41 @@ declare const EMAIL_ORG_ACTIONS: {
|
|
|
3024
3085
|
readonly path: "/sites/{siteId}/marketing/drafts/{draftId}/test";
|
|
3025
3086
|
readonly params: readonly ["draftId"];
|
|
3026
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
|
+
};
|
|
3027
3123
|
readonly importContacts: {
|
|
3028
3124
|
readonly method: "POST";
|
|
3029
3125
|
readonly path: "/sites/{siteId}/contacts/import";
|
|
@@ -3148,13 +3244,39 @@ interface EmailDomainSetupResult {
|
|
|
3148
3244
|
/** The plan's help text for the double opt-in toggle, verbatim. */
|
|
3149
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.";
|
|
3150
3246
|
|
|
3151
|
-
|
|
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 {
|
|
3152
3256
|
siteId: string;
|
|
3153
3257
|
/** The viewer is the site's owner (or an admin): writes are offered. */
|
|
3154
3258
|
isOwnerSide: boolean;
|
|
3155
3259
|
needsPaidPlan: boolean;
|
|
3156
|
-
/**
|
|
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
|
+
*/
|
|
3157
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;
|
|
3158
3280
|
/** The host's org-key relay for every write (see EMAIL_ORG_ACTIONS). */
|
|
3159
3281
|
onOrgAction: (action: EmailOrgAction, input: Record<string, unknown>) => Promise<unknown>;
|
|
3160
3282
|
/** A paused site asks an admin to review it (resume stays admin-only). */
|
|
@@ -3162,6 +3284,16 @@ interface EmailViewProps {
|
|
|
3162
3284
|
/** Create the sending domain (and its DNS when the site's nameservers are ours). */
|
|
3163
3285
|
onStartDomainSetup?: () => Promise<EmailDomainSetupResult>;
|
|
3164
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>;
|
|
3165
3297
|
/** Open the host's Settings → Store, where checkout marketing consent lives. */
|
|
3166
3298
|
onOpenStoreSettings?: () => void;
|
|
3167
3299
|
/**
|
|
@@ -3172,9 +3304,12 @@ interface EmailViewProps {
|
|
|
3172
3304
|
refreshKey?: number;
|
|
3173
3305
|
className?: string;
|
|
3174
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";
|
|
3175
3310
|
/**
|
|
3176
|
-
* EmailView — the merchant's email marketing view (plan U10
|
|
3177
|
-
* broadcasts and settings.
|
|
3311
|
+
* EmailView — the merchant's email marketing view (plan U10; email templates
|
|
3312
|
+
* U15): audience, broadcasts, templates and settings.
|
|
3178
3313
|
* Reads use the site token; every write goes through `onOrgAction`.
|
|
3179
3314
|
*/
|
|
3180
3315
|
/**
|
|
@@ -4074,4 +4209,4 @@ interface DashboardViewProps {
|
|
|
4074
4209
|
*/
|
|
4075
4210
|
declare function DashboardView({ refreshKey, onBackToWebsite, primaryConversion, onChangePrimaryConversion, onOpenSurface, needsPaidPlan, onUpgradePlan, onConnectStripe, }: DashboardViewProps): react_jsx_runtime.JSX.Element;
|
|
4076
4211
|
|
|
4077
|
-
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, EmailView, type EmailViewProps, 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 };
|
|
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 };
|