@aifeatures/admin-react 0.14.0 → 0.16.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.d.ts CHANGED
@@ -842,6 +842,16 @@ interface BusinessVisitors {
842
842
  from: string;
843
843
  to: string;
844
844
  };
845
+ /**
846
+ * The zone those local days were bucketed in.
847
+ *
848
+ * On the payload for the same reason every analytics report carries it: this
849
+ * client asks for a zone per request, and the server may not use the one it
850
+ * asked for — it falls back to the site's stored zone for a value it cannot
851
+ * read. The `date`s above are local days, so nothing can label them without
852
+ * this.
853
+ */
854
+ timezone: string;
845
855
  }
846
856
  /**
847
857
  * Response from GET /api/v1/summary — the merchant's one-look business
@@ -863,6 +873,25 @@ interface BusinessSummary {
863
873
  count: number;
864
874
  low_stock: LowStockProduct[];
865
875
  };
876
+ /**
877
+ * Durable commerce capabilities, unbounded in time. Neither is derivable
878
+ * from the fields above:
879
+ *
880
+ * invoicing an unpaid invoice is `pending`, outside the revenue
881
+ * family, and a service business has no catalogue — so
882
+ * nothing else here sees it.
883
+ * storefront_orders `revenue.*.orders` counts invoice-sourced rows too,
884
+ * while GET /orders excludes them by default, so a site
885
+ * whose only sale is a paid invoice reads as selling
886
+ * while the orders list it opens is empty.
887
+ *
888
+ * Optional: an older API omits it, and absent means "unknown", which callers
889
+ * must treat as no rather than yes.
890
+ */
891
+ commerce?: {
892
+ invoicing: boolean;
893
+ storefront_orders: boolean;
894
+ };
866
895
  visitors: BusinessVisitors | null;
867
896
  }
868
897
  /** Options for fetching the business summary. */
@@ -1336,6 +1365,17 @@ type AnalyticsSourced<T> = {
1336
1365
  from: string;
1337
1366
  to: string;
1338
1367
  };
1368
+ /**
1369
+ * The IANA zone this report's local days were bucketed in.
1370
+ *
1371
+ * ON THE ENVELOPE, so every report has it and none has to be paired with
1372
+ * /status — they are separate requests that fail separately, and pairing
1373
+ * them lets a status failure silently relabel a loaded report. It is also
1374
+ * not guaranteed to be the zone that was ASKED for: the server falls back
1375
+ * to the site's stored zone for an unusable value. This field, never the
1376
+ * request, is what the numbers are in.
1377
+ */
1378
+ timezone: string;
1339
1379
  } | {
1340
1380
  status: 'unreachable';
1341
1381
  };
@@ -1444,14 +1484,7 @@ interface AnalyticsChannelRow {
1444
1484
  */
1445
1485
  type AnalyticsBreakdownRow = Record<string, string | number | null | string[]>;
1446
1486
  type AnalyticsSummary = AnalyticsSourced<AnalyticsSummaryData>;
1447
- type AnalyticsTimeseries = AnalyticsSourced<AnalyticsTimeseriesRow[]> & {
1448
- /**
1449
- * The zone the dates are bucketed in, present on the OK branch. Read it from
1450
- * here rather than from /status: the two are separate requests, and pairing
1451
- * them means a status failure silently reburies the chart in UTC.
1452
- */
1453
- timezone?: string;
1454
- };
1487
+ type AnalyticsTimeseries = AnalyticsSourced<AnalyticsTimeseriesRow[]>;
1455
1488
  /**
1456
1489
  * One goal's conversions for the window.
1457
1490
  *
@@ -1503,6 +1536,7 @@ type AnalyticsConversions = {
1503
1536
  from: string;
1504
1537
  to: string;
1505
1538
  };
1539
+ timezone: string;
1506
1540
  denominator: number;
1507
1541
  first_seen: string | null;
1508
1542
  first_seen_unavailable: boolean;
@@ -1872,8 +1906,44 @@ interface OrdersListProps {
1872
1906
  * two stacked back buttons taught nobody anything.
1873
1907
  */
1874
1908
  onDetailOpenChange?: (open: boolean) => void;
1909
+ /**
1910
+ * COMPACT MODE: cap the rows and drop this list's own chrome, so it can sit
1911
+ * inside a summary surface instead of owning a page.
1912
+ *
1913
+ * The point is that the EMPTY, LOADING and ERROR states come along
1914
+ * unchanged. A dashboard that hand-rolled its own "no orders yet" would be a
1915
+ * second copy of copy that already exists here, drifting from it — so the
1916
+ * summary borrows this list rather than imitating it.
1917
+ *
1918
+ * Suppressed while set: the saved-view tabs, search, filters, abandoned
1919
+ * toggle, CSV export and pagination. All of those are ways of ASKING a
1920
+ * question, and a summary is not where questions get asked.
1921
+ */
1922
+ maxRows?: number;
1923
+ /**
1924
+ * Where "view all" goes, and what a row click does in compact mode. Rows do
1925
+ * not open a detail inside a summary card: the card is a pointer at the
1926
+ * full surface, and swapping it for an order detail in place would strand
1927
+ * the reader somewhere they did not ask to be.
1928
+ */
1929
+ onViewAll?: () => void;
1875
1930
  }
1876
- declare function OrdersList({ onRefund, className, refreshKey, initialOrderId, showFulfillment, emptyMessage, onDetailOpenChange, }: OrdersListProps): react_jsx_runtime.JSX.Element;
1931
+ /**
1932
+ * A MODE CHANGE REMOUNTS, rather than being reconciled state by state.
1933
+ *
1934
+ * Compact and standalone are different views sharing an implementation:
1935
+ * different scope, different chrome, different navigation. Reconciling them
1936
+ * meant every piece of state the standalone view owns had to answer to the
1937
+ * mode, and that list is not enumerable from outside — two members were found
1938
+ * only by review, a one-time fallback LATCH in a ref and a scope owned by an
1939
+ * effect keyed on something else.
1940
+ *
1941
+ * Keying the implementation on the mode makes all of them correct by
1942
+ * construction, including the ones nobody has named, and deletes the reset
1943
+ * effects that were guessing at them. In-flight requests are cancelled by the
1944
+ * ordinary unmount cleanup.
1945
+ */
1946
+ declare function OrdersList(props: OrdersListProps): react_jsx_runtime.JSX.Element;
1877
1947
 
1878
1948
  interface PaymentsDashboardProps {
1879
1949
  /** Optional className */
@@ -2030,9 +2100,16 @@ interface ViewShellProps {
2030
2100
  }
2031
2101
  /**
2032
2102
  * The view strip + content wrapper every merchant view mounts inside
2033
- * (plan D13). The strip is the sole view indicator: title on the left,
2034
- * "Back to website" on the right, pinned to the top on small screens (D9) so
2035
- * the way out is always reachable.
2103
+ * (plan D13). The strip is the sole view indicator, pinned to the top on
2104
+ * small screens (D9) so the way out is always reachable.
2105
+ *
2106
+ * THE WAY OUT SITS LEFT OF THE TITLE — the back arrow points left, so it
2107
+ * belongs left of the thing it goes back from, and it reads as one phrase
2108
+ * with the view it is leaving. It was on the far right, which put the two
2109
+ * halves of the same sentence at opposite ends of the strip and left the
2110
+ * button's distance from the title depending on how wide the panel happened
2111
+ * to be. It is placed there with flex `order`, for the keyboard reason
2112
+ * written at the button itself.
2036
2113
  *
2037
2114
  * Accessibility: the panel's content is replaced out from under screen-reader
2038
2115
  * users when a view opens, so the heading is an `aria-live="polite"` region
@@ -2109,16 +2186,31 @@ interface LeadsViewProps {
2109
2186
  /** Host-app callback that swaps the panel back to the website preview (plan D13). */
2110
2187
  onBackToWebsite?: () => void;
2111
2188
  className?: string;
2189
+ /**
2190
+ * COMPACT MODE: cap the rows and render WITHOUT this view's shell, for a
2191
+ * summary surface. See the note in `OrdersList` — the point is that the
2192
+ * empty, loading and failure states are reused rather than reimplemented.
2193
+ */
2194
+ maxRows?: number;
2195
+ /** Where "view all" goes. */
2196
+ onViewAll?: () => void;
2112
2197
  }
2113
2198
  /**
2114
- * LeadsView — the merged people list (customers ∪ form leads) with in-view
2115
- * detail navigation (plan Unit 5). All lead-authored content renders as plain
2116
- * text and is labeled unverified (plan D7/D15). Ephemeral (plan D12).
2199
+ * A MODE CHANGE REMOUNTS, rather than being reconciled state by state.
2117
2200
  *
2118
- * The one thing it does beyond looking: hand a reply to the merchant's own mail
2119
- * client. Nothing is ever sent from here.
2201
+ * Compact and standalone are different views sharing an implementation:
2202
+ * different scope, different chrome, different navigation. Reconciling them
2203
+ * meant every piece of state the standalone view owns had to answer to the
2204
+ * mode, and that list is not enumerable from outside — two members were found
2205
+ * only by review, a one-time fallback LATCH in a ref and a scope owned by an
2206
+ * effect keyed on something else.
2207
+ *
2208
+ * Keying the implementation on the mode makes all of them correct by
2209
+ * construction, including the ones nobody has named, and deletes the reset
2210
+ * effects that were guessing at them. In-flight requests are cancelled by the
2211
+ * ordinary unmount cleanup.
2120
2212
  */
2121
- declare function LeadsView({ refreshKey, onBackToWebsite, className, }: LeadsViewProps): react_jsx_runtime.JSX.Element;
2213
+ declare function LeadsView(props: LeadsViewProps): react_jsx_runtime.JSX.Element;
2122
2214
 
2123
2215
  interface SubscriptionsViewProps {
2124
2216
  /**
@@ -2240,8 +2332,35 @@ interface InvoicesListProps {
2240
2332
  label: string;
2241
2333
  } | null;
2242
2334
  onClearRetainerFilter?: () => void;
2335
+ /**
2336
+ * COMPACT MODE: cap the rows and drop this list's chrome for a summary
2337
+ * surface. Same contract as `OrdersList` — the empty, loading and failure
2338
+ * states are reused rather than reimplemented alongside.
2339
+ */
2340
+ maxRows?: number;
2341
+ /** Where "view all" goes, and what a row click does in compact mode. */
2342
+ onViewAll?: () => void;
2243
2343
  }
2244
- declare function InvoicesList({ className, refreshKey, initialInvoiceId, onDetailOpenChange, onConnectStripe, onUpgradePlan, needsPaidPlan, retainerFilter, onClearRetainerFilter }: InvoicesListProps): react_jsx_runtime.JSX.Element;
2344
+ /**
2345
+ * A MODE CHANGE REMOUNTS, rather than being reconciled state by state.
2346
+ *
2347
+ * Compact and standalone are different views that happen to share an
2348
+ * implementation: different scope, different chrome, different navigation.
2349
+ * Reconciling them meant every piece of state the standalone view owns had to
2350
+ * answer to the mode — and that list is not enumerable from the outside. Two
2351
+ * of its members were found only by review: a one-time fallback LATCH held in
2352
+ * a ref, and a retainer scope owned by an effect keyed on something else
2353
+ * entirely. Neither could a mode-change effect have known about.
2354
+ *
2355
+ * Keying the implementation on the mode makes every one of them correct by
2356
+ * construction, including the ones nobody has named, and deletes the reset
2357
+ * effects that were trying to guess at them. In-flight requests are cancelled
2358
+ * by the ordinary unmount cleanup.
2359
+ *
2360
+ * No host switches today — all three remount already — so this costs nothing
2361
+ * live and makes the published contract honest.
2362
+ */
2363
+ declare function InvoicesList(props: InvoicesListProps): react_jsx_runtime.JSX.Element;
2245
2364
  interface InvoiceDetailProps {
2246
2365
  invoice: Invoice;
2247
2366
  onBack: () => void;
@@ -2675,6 +2794,21 @@ interface UseAnalyticsReturn {
2675
2794
  */
2676
2795
  conversions: ReportSlot<AnalyticsConversions>;
2677
2796
  breakdowns: Record<string, ReportSlot<AnalyticsBreakdown>>;
2797
+ /**
2798
+ * The zone the server actually answered in, from whichever report has
2799
+ * loaded, or undefined before any has.
2800
+ *
2801
+ * COMPUTED HERE because this is where every response lands. A consumer that
2802
+ * picked its own subset of the slots would be wrong the moment a report was
2803
+ * added — which is exactly what happened: a list naming three of the five
2804
+ * ignored Channels and the breakdowns, so with only one of those loaded the
2805
+ * picker named a zone nothing on screen was counted in.
2806
+ *
2807
+ * It is not guaranteed to be the zone that was ASKED for: the server falls
2808
+ * back to the site's stored zone, and then UTC, for a value it cannot use.
2809
+ * Only the response says which.
2810
+ */
2811
+ reportedZone: string | undefined;
2678
2812
  /** True until every report has settled, for the initial skeleton only. */
2679
2813
  isLoading: boolean;
2680
2814
  refetch: () => Promise<void>;
@@ -2873,4 +3007,80 @@ interface AnalyticsViewProps {
2873
3007
  */
2874
3008
  declare function AnalyticsView({ filters: filtersProp, onFiltersChange, refreshKey, onBackToWebsite, className, published, lastPublishedAt, }: AnalyticsViewProps): react_jsx_runtime.JSX.Element;
2875
3009
 
2876
- 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 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 Customer, type CustomerAddress, CustomerDetail, type CustomerDetail$1 as CustomerDetailData, type CustomerDetailProps, CustomersList, type CustomersListProps, type CustomersListResponse, type EmailDelivery, type EmailSideStatus, type EventDeliveriesListResponse, type EventDelivery, type EventDestination, type EventDestinationSecretResponse, type EventDestinationsListResponse, type Form, FormSettings, type FormSettingsProps, FormSubmissions, type FormSubmissionsProps, FormsDashboard, type FormsDashboardProps, FormsList, type FormsListProps, type FormsListResponse, 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, InvoicesList, type InvoicesListProps, InvoicesView, type InvoicesViewProps, LeadsView, type LeadsViewProps, type LowStockProduct, MAX_ANALYTICS_FILTERS, MAX_ANALYTICS_FILTER_VALUES, type NeedsAttentionItem, type NeedsAttentionType, 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 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 Submission, SubmissionDetail, type SubmissionDetailProps, type SubmissionMetadata, type Subscription, SubscriptionsView, type SubscriptionsViewProps, type UpdateEventDestinationInput, type UpdateFormInput, type UpdateOptionInput, type UpdateProductInput, type UpdateVariantInput, type UseAnalyticsOptions, type UseAnalyticsReturn, type UseBusinessSummaryOptions, type UseBusinessSummaryReturn, 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 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, useCustomers, useEventDestinations, useForms, useInvoices, useOrders, usePaymentsStatus, usePeople, usePerson, useProducts, useRealtimeVisitors, useRetainers, useSubmissions, useSubscriptions };
3010
+ /**
3011
+ * What this site is trying to get its visitors to do, said in one line.
3012
+ *
3013
+ * The site builder already decides this: picking a conversion mechanism is a
3014
+ * gated first step of every build — form, external link, phone-first, or
3015
+ * native payments — and the CTA it writes is the artifact of that decision.
3016
+ * This names it back to the owner.
3017
+ *
3018
+ * The vocabulary deliberately matches the conversion goals that already
3019
+ * report on these events, so the headline and the numbers under it describe
3020
+ * the same thing in the same words rather than two vocabularies for one site.
3021
+ *
3022
+ * WHATSAPP IS ITS OWN GOAL, not a kind of `outbound`, because the fleet says
3023
+ * so: measured over the 30 days to 2026-10-11, a WhatsApp link is the
3024
+ * dominant conversion for 179 sites — 11.7% of every site with any
3025
+ * conversion at all, and more sites than every named booking platform
3026
+ * combined (Fresha, Square, SkyTab, Toast, HotDoc, Clover and SpotOn are 1-5
3027
+ * sites each). Folding it into `outbound` would tell 179 merchants their site
3028
+ * is "set up to send visitors on to book with you", which is not what a
3029
+ * message thread is. It is not generalised to "messaging" either: Telegram is
3030
+ * 2 sites and Messenger, Signal and `sms:` are none, so a broader word would
3031
+ * only make the line vaguer for the ones it actually describes.
3032
+ *
3033
+ * `unknown` renders NOTHING. The derivation is lazy and improvable, so a site
3034
+ * it cannot settle yet is normal rather than broken — and naming the wrong
3035
+ * goal on a merchant's own dashboard is worse than naming none. An
3036
+ * undetermined goal costs this line, never the screen.
3037
+ */
3038
+ type SiteGoal = "calls" | "enquiries" | "sales" | "whatsapp" | "outbound" | "unknown";
3039
+
3040
+ interface DashboardViewProps {
3041
+ /** Bumped by the host after any turn that touched business data. */
3042
+ refreshKey?: number;
3043
+ /** Host owns the panel swap; this view only asks. */
3044
+ onBackToWebsite?: () => void;
3045
+ /**
3046
+ * Facts the package cannot know, supplied by the host — the same contract
3047
+ * the analytics view already uses.
3048
+ */
3049
+ /** What the site is for. `unknown` until the derivation ships; renders nothing. */
3050
+ goal?: SiteGoal;
3051
+ /**
3052
+ * Host callback to change the active surface. Without it the storefront
3053
+ * entries render nothing, because a panel that claims to lead somewhere and
3054
+ * cannot is worse than one that does not claim it.
3055
+ */
3056
+ onOpenSurface?: (surface: "analytics" | "leads" | "orders" | "invoices") => void;
3057
+ /**
3058
+ * INVOICE ELIGIBILITY, forwarded verbatim to the compact list.
3059
+ *
3060
+ * The host already computes these for the full view, and the list already
3061
+ * renders the three teaching empties that depend on them. Without them the
3062
+ * compact list defaults to `needsPaidPlan: false` and tells a free-plan
3063
+ * merchant to send an invoice from the chat — advice their plan cannot act
3064
+ * on, in the one place meant to tell them what to do next.
3065
+ */
3066
+ needsPaidPlan?: boolean;
3067
+ onUpgradePlan?: () => void;
3068
+ onConnectStripe?: () => void;
3069
+ }
3070
+ /**
3071
+ * The post-publish Dashboard: what the site is for, and how it is doing
3072
+ * against that.
3073
+ *
3074
+ * Two panels every published site gets. A site that actually sells also gets
3075
+ * orders and the way into products and invoices — not built yet, and the
3076
+ * absence is deliberate: a brochure site must not be shown an empty
3077
+ * storefront, and most published sites are brochure sites.
3078
+ *
3079
+ * The two data sources fail independently and say so. Visitors, orders and
3080
+ * products all come from one summary call, so they share a fate; leads has its
3081
+ * own call and fails alone. Nothing here claims per-panel isolation it does
3082
+ * not have.
3083
+ */
3084
+ declare function DashboardView({ refreshKey, onBackToWebsite, goal, onOpenSurface, needsPaidPlan, onUpgradePlan, onConnectStripe, }: DashboardViewProps): react_jsx_runtime.JSX.Element;
3085
+
3086
+ 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 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 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, type Form, FormSettings, type FormSettingsProps, FormSubmissions, type FormSubmissionsProps, FormsDashboard, type FormsDashboardProps, FormsList, type FormsListProps, type FormsListResponse, 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, InvoicesList, type InvoicesListProps, InvoicesView, type InvoicesViewProps, LeadsView, type LeadsViewProps, type LowStockProduct, MAX_ANALYTICS_FILTERS, MAX_ANALYTICS_FILTER_VALUES, type NeedsAttentionItem, type NeedsAttentionType, 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 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 SiteGoal, type Submission, SubmissionDetail, type SubmissionDetailProps, type SubmissionMetadata, type Subscription, SubscriptionsView, type SubscriptionsViewProps, type UpdateEventDestinationInput, type UpdateFormInput, type UpdateOptionInput, type UpdateProductInput, type UpdateVariantInput, type UseAnalyticsOptions, type UseAnalyticsReturn, type UseBusinessSummaryOptions, type UseBusinessSummaryReturn, 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 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, useCustomers, useEventDestinations, useForms, useInvoices, useOrders, usePaymentsStatus, usePeople, usePerson, useProducts, useRealtimeVisitors, useRetainers, useSubmissions, useSubscriptions };