@aifeatures/admin-react 0.3.0 → 0.4.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 +3 -3
- package/dist/index.d.cts +122 -1
- package/dist/index.d.ts +122 -1
- package/dist/index.js +3 -3
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -833,6 +833,67 @@ interface PersonDetail {
|
|
|
833
833
|
orders: PersonOrder[];
|
|
834
834
|
submissions: PersonSubmission[];
|
|
835
835
|
}
|
|
836
|
+
/**
|
|
837
|
+
* One subscription mirror row from GET /api/v1/subscriptions. Amounts are
|
|
838
|
+
* integers in the currency's minor unit. Read-only in this package: cancel /
|
|
839
|
+
* teardown are org-key-only endpoints proxied through the host app — the
|
|
840
|
+
* dashboard's site token cannot call them.
|
|
841
|
+
*/
|
|
842
|
+
interface Subscription {
|
|
843
|
+
id: string;
|
|
844
|
+
/**
|
|
845
|
+
* Mirrored Stripe status, stored VERBATIM — a full-Dashboard merchant can
|
|
846
|
+
* produce states beyond the modeled set (trialing, paused, unpaid, …).
|
|
847
|
+
* Render unknown values generically ("Managed in Stripe"), never as an
|
|
848
|
+
* error and never by guessing a modeled meaning for them.
|
|
849
|
+
*/
|
|
850
|
+
status: string;
|
|
851
|
+
/** The subscriber (from the durable customer record). */
|
|
852
|
+
customer_email: string | null;
|
|
853
|
+
product_id: string;
|
|
854
|
+
plan_title: string | null;
|
|
855
|
+
/** Stripe recurring interval ("month", "year", …). */
|
|
856
|
+
plan_interval: string;
|
|
857
|
+
plan_interval_count: number;
|
|
858
|
+
/**
|
|
859
|
+
* The LOCKED signup recurring amount (minor units) — the grandfathering
|
|
860
|
+
* record. Never changes; shown as provenance when it differs from
|
|
861
|
+
* `current_amount`.
|
|
862
|
+
*/
|
|
863
|
+
plan_amount: number;
|
|
864
|
+
/**
|
|
865
|
+
* The CURRENT recurring amount mirrored from Stripe (minor units) —
|
|
866
|
+
* Dashboard repricing lands here. This is the display figure.
|
|
867
|
+
*/
|
|
868
|
+
current_amount: number;
|
|
869
|
+
currency: string;
|
|
870
|
+
/** Next renewal (mirrored). Null when Stripe hasn't told us one. */
|
|
871
|
+
current_period_end: string | null;
|
|
872
|
+
/** Scheduled to cancel — the subscriber keeps access until the period lapses. */
|
|
873
|
+
cancel_at_period_end: boolean;
|
|
874
|
+
canceled_at: string | null;
|
|
875
|
+
/** Cancel provenance ('subscriber' | 'merchant'), when known. */
|
|
876
|
+
canceled_by: string | null;
|
|
877
|
+
/** Set only by the org-key teardown endpoint on rows it flipped. */
|
|
878
|
+
teardown_at: string | null;
|
|
879
|
+
/** Simulator/preview data — badge it and exclude it from any aggregate. */
|
|
880
|
+
is_test: boolean;
|
|
881
|
+
created_at: string;
|
|
882
|
+
}
|
|
883
|
+
/** Response from GET /api/v1/subscriptions (server-side total, like orders). */
|
|
884
|
+
interface PaginatedSubscriptions {
|
|
885
|
+
subscriptions: Subscription[];
|
|
886
|
+
total: number;
|
|
887
|
+
limit: number;
|
|
888
|
+
offset: number;
|
|
889
|
+
}
|
|
890
|
+
/** Options for fetching subscriptions. */
|
|
891
|
+
interface GetSubscriptionsOptions {
|
|
892
|
+
/** Exact status filter (verbatim Stripe values, e.g. "active"). */
|
|
893
|
+
status?: string;
|
|
894
|
+
limit?: number;
|
|
895
|
+
offset?: number;
|
|
896
|
+
}
|
|
836
897
|
|
|
837
898
|
declare class AifeaturesApiError extends Error {
|
|
838
899
|
status: number;
|
|
@@ -880,6 +941,7 @@ interface AifeaturesApiClient {
|
|
|
880
941
|
* disputed.
|
|
881
942
|
*/
|
|
882
943
|
setOrderFulfillment(orderId: string, input: SetOrderFulfillmentInput): Promise<Order>;
|
|
944
|
+
getSubscriptions(options?: GetSubscriptionsOptions): Promise<PaginatedSubscriptions>;
|
|
883
945
|
/** One-look business summary: revenue windows, needs-attention list, product counts. */
|
|
884
946
|
getBusinessSummary(options: GetBusinessSummaryOptions): Promise<BusinessSummary>;
|
|
885
947
|
/** Merged people list (customers ∪ form leads, grouped by email). */
|
|
@@ -1298,6 +1360,29 @@ interface LeadsViewProps {
|
|
|
1298
1360
|
*/
|
|
1299
1361
|
declare function LeadsView({ refreshKey, onBackToWebsite, className, }: LeadsViewProps): react_jsx_runtime.JSX.Element;
|
|
1300
1362
|
|
|
1363
|
+
interface SubscriptionsViewProps {
|
|
1364
|
+
/**
|
|
1365
|
+
* Bump to refetch (view data freshness, plan D11) — the host increments it
|
|
1366
|
+
* when a turn's tools changed business data.
|
|
1367
|
+
*/
|
|
1368
|
+
refreshKey?: number;
|
|
1369
|
+
/** Host-app callback that swaps the panel back to the website preview (plan D13). */
|
|
1370
|
+
onBackToWebsite?: () => void;
|
|
1371
|
+
className?: string;
|
|
1372
|
+
}
|
|
1373
|
+
/**
|
|
1374
|
+
* SubscriptionsView — the merchant view the AI swaps in for "show me my
|
|
1375
|
+
* subscriptions" (subscriptions plan Unit 12). A read-only projection of the
|
|
1376
|
+
* mirror rows: no cancel button lives here on purpose — cancel is an
|
|
1377
|
+
* org-key-only endpoint proxied through the host app, and a browser-held site
|
|
1378
|
+
* token must not be able to end a customer's billing. Ephemeral by design
|
|
1379
|
+
* (plan D12): it mounts at first-page state and keeps nothing across swaps.
|
|
1380
|
+
*
|
|
1381
|
+
* No revenue tiles: one site's subscriptions can mix currencies, and a sum
|
|
1382
|
+
* across them would be a guess. Rows only; is_test rows are badged.
|
|
1383
|
+
*/
|
|
1384
|
+
declare function SubscriptionsView({ refreshKey, onBackToWebsite, className, }: SubscriptionsViewProps): react_jsx_runtime.JSX.Element;
|
|
1385
|
+
|
|
1301
1386
|
interface UseFormsReturn {
|
|
1302
1387
|
forms: Form[];
|
|
1303
1388
|
isLoading: boolean;
|
|
@@ -1501,6 +1586,42 @@ interface UsePersonReturn {
|
|
|
1501
1586
|
*/
|
|
1502
1587
|
declare function usePerson(email: string | null, { refreshKey }?: UsePersonOptions): UsePersonReturn;
|
|
1503
1588
|
|
|
1589
|
+
interface UseSubscriptionsReturn {
|
|
1590
|
+
subscriptions: Subscription[];
|
|
1591
|
+
total: number;
|
|
1592
|
+
isLoading: boolean;
|
|
1593
|
+
error: Error | null;
|
|
1594
|
+
page: number;
|
|
1595
|
+
pageSize: number;
|
|
1596
|
+
hasNextPage: boolean;
|
|
1597
|
+
hasPreviousPage: boolean;
|
|
1598
|
+
setPage: (page: number) => void;
|
|
1599
|
+
setPageSize: (size: number) => void;
|
|
1600
|
+
/**
|
|
1601
|
+
* Exact-status filter, sent server-side (verbatim Stripe values — the API
|
|
1602
|
+
* stores whatever Stripe said). Undefined = all statuses. Resets to the
|
|
1603
|
+
* first page.
|
|
1604
|
+
*/
|
|
1605
|
+
status: string | undefined;
|
|
1606
|
+
setStatus: (status: string | undefined) => void;
|
|
1607
|
+
refetch: () => Promise<void>;
|
|
1608
|
+
}
|
|
1609
|
+
interface UseSubscriptionsOptions {
|
|
1610
|
+
initialPageSize?: number;
|
|
1611
|
+
/**
|
|
1612
|
+
* Bump to force a refetch with the current filters (view data freshness,
|
|
1613
|
+
* plan D11) — the host increments it when a turn's tools changed business
|
|
1614
|
+
* data. Optional and additive; leaving it undefined changes nothing.
|
|
1615
|
+
*/
|
|
1616
|
+
refreshKey?: number;
|
|
1617
|
+
}
|
|
1618
|
+
/**
|
|
1619
|
+
* The site's subscription mirror rows, newest first — offset paging against
|
|
1620
|
+
* the server total (same shape as useOrders; the endpoint reports `total`, so
|
|
1621
|
+
* hasNextPage counts against it rather than guessing from page fullness).
|
|
1622
|
+
*/
|
|
1623
|
+
declare function useSubscriptions({ initialPageSize, refreshKey, }?: UseSubscriptionsOptions): UseSubscriptionsReturn;
|
|
1624
|
+
|
|
1504
1625
|
declare function isZeroDecimalCurrency(currency: string): boolean;
|
|
1505
1626
|
/**
|
|
1506
1627
|
* Format a minor-unit amount for display ("$29.00", "¥1,500").
|
|
@@ -1543,4 +1664,4 @@ declare function toMinorUnits(major: string | number, currency: string): number
|
|
|
1543
1664
|
*/
|
|
1544
1665
|
declare function toMajorUnits(minor: number, currency: string): number;
|
|
1545
1666
|
|
|
1546
|
-
export { type AdjustInventoryInput, type AifeaturesApiClient, AifeaturesApiError, type AifeaturesContextValue, AifeaturesProvider, type AifeaturesProviderProps, type ApiError, type Attachment, type BusinessSummary, type CreateFormInput, type CreateOptionInput, type CreateProductInput, type CreateVariantInput, type Customer, type CustomerAddress, CustomerDetail, type CustomerDetail$1 as CustomerDetailData, type CustomerDetailProps, CustomersList, type CustomersListProps, type CustomersListResponse, type EmailSideStatus, type Form, FormSettings, type FormSettingsProps, FormSubmissions, type FormSubmissionsProps, FormsDashboard, type FormsDashboardProps, FormsList, type FormsListProps, type FormsListResponse, type GetBusinessSummaryOptions, type GetCustomersOptions, type GetOrdersOptions, type GetPeopleOptions, type GetProductsOptions, type GetSubmissionsOptions, LeadsView, type LeadsViewProps, type LowStockProduct, type NeedsAttentionItem, type NeedsAttentionType, type Order, OrderDetail, type OrderDetailProps, type OrderStatus, OrderStatusBadge, OrdersList, type OrdersListProps, OrdersView, type OrdersViewProps, type PaginatedOrders, type PaginatedSubmissions, 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 RefundRequest, type RevenueCurrencyTotal, type RevenuePeriod, type SetInventoryInput, type SetOrderFulfillmentInput, type SettledRevenue, type Submission, SubmissionDetail, type SubmissionDetailProps, type SubmissionMetadata, type UpdateFormInput, type UpdateOptionInput, type UpdateProductInput, type UpdateVariantInput, type UseBusinessSummaryOptions, type UseBusinessSummaryReturn, type UseCustomersOptions, type UseCustomersReturn, type UseFormsReturn, type UseOrdersOptions, type UseOrdersReturn, type UsePaymentsStatusReturn, type UsePeopleOptions, type UsePeopleReturn, type UsePersonOptions, type UsePersonReturn, type UseProductsOptions, type UseProductsReturn, type UseSubmissionsOptions, type UseSubmissionsReturn, type VariantInventory, type VariantOptionValue, VariantsEditor, type VariantsEditorProps, ViewShell, type ViewShellProps, chargedTotal, createApiClient, formatPrice, isZeroDecimalCurrency, toMajorUnits, toMinorUnits, useAifeaturesContext as useAifeatures, useAifeaturesContext, useBusinessSummary, useCustomers, useForms, useOrders, usePaymentsStatus, usePeople, usePerson, useProducts, useSubmissions };
|
|
1667
|
+
export { type AdjustInventoryInput, type AifeaturesApiClient, AifeaturesApiError, type AifeaturesContextValue, AifeaturesProvider, type AifeaturesProviderProps, type ApiError, type Attachment, type BusinessSummary, type CreateFormInput, type CreateOptionInput, type CreateProductInput, type CreateVariantInput, type Customer, type CustomerAddress, CustomerDetail, type CustomerDetail$1 as CustomerDetailData, type CustomerDetailProps, CustomersList, type CustomersListProps, type CustomersListResponse, type EmailSideStatus, type Form, FormSettings, type FormSettingsProps, FormSubmissions, type FormSubmissionsProps, FormsDashboard, type FormsDashboardProps, FormsList, type FormsListProps, type FormsListResponse, type GetBusinessSummaryOptions, type GetCustomersOptions, type GetOrdersOptions, type GetPeopleOptions, type GetProductsOptions, type GetSubmissionsOptions, type GetSubscriptionsOptions, LeadsView, type LeadsViewProps, type LowStockProduct, type NeedsAttentionItem, type NeedsAttentionType, type Order, OrderDetail, type OrderDetailProps, type OrderStatus, OrderStatusBadge, OrdersList, type OrdersListProps, OrdersView, type OrdersViewProps, 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 RefundRequest, type RevenueCurrencyTotal, type RevenuePeriod, type SetInventoryInput, type SetOrderFulfillmentInput, type SettledRevenue, type Submission, SubmissionDetail, type SubmissionDetailProps, type SubmissionMetadata, type Subscription, SubscriptionsView, type SubscriptionsViewProps, type UpdateFormInput, type UpdateOptionInput, type UpdateProductInput, type UpdateVariantInput, type UseBusinessSummaryOptions, type UseBusinessSummaryReturn, type UseCustomersOptions, type UseCustomersReturn, type UseFormsReturn, type UseOrdersOptions, type UseOrdersReturn, type UsePaymentsStatusReturn, type UsePeopleOptions, type UsePeopleReturn, type UsePersonOptions, type UsePersonReturn, type UseProductsOptions, type UseProductsReturn, type UseSubmissionsOptions, type UseSubmissionsReturn, type UseSubscriptionsOptions, type UseSubscriptionsReturn, type VariantInventory, type VariantOptionValue, VariantsEditor, type VariantsEditorProps, ViewShell, type ViewShellProps, chargedTotal, createApiClient, formatPrice, isZeroDecimalCurrency, toMajorUnits, toMinorUnits, useAifeaturesContext as useAifeatures, useAifeaturesContext, useBusinessSummary, useCustomers, useForms, useOrders, usePaymentsStatus, usePeople, usePerson, useProducts, useSubmissions, useSubscriptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -833,6 +833,67 @@ interface PersonDetail {
|
|
|
833
833
|
orders: PersonOrder[];
|
|
834
834
|
submissions: PersonSubmission[];
|
|
835
835
|
}
|
|
836
|
+
/**
|
|
837
|
+
* One subscription mirror row from GET /api/v1/subscriptions. Amounts are
|
|
838
|
+
* integers in the currency's minor unit. Read-only in this package: cancel /
|
|
839
|
+
* teardown are org-key-only endpoints proxied through the host app — the
|
|
840
|
+
* dashboard's site token cannot call them.
|
|
841
|
+
*/
|
|
842
|
+
interface Subscription {
|
|
843
|
+
id: string;
|
|
844
|
+
/**
|
|
845
|
+
* Mirrored Stripe status, stored VERBATIM — a full-Dashboard merchant can
|
|
846
|
+
* produce states beyond the modeled set (trialing, paused, unpaid, …).
|
|
847
|
+
* Render unknown values generically ("Managed in Stripe"), never as an
|
|
848
|
+
* error and never by guessing a modeled meaning for them.
|
|
849
|
+
*/
|
|
850
|
+
status: string;
|
|
851
|
+
/** The subscriber (from the durable customer record). */
|
|
852
|
+
customer_email: string | null;
|
|
853
|
+
product_id: string;
|
|
854
|
+
plan_title: string | null;
|
|
855
|
+
/** Stripe recurring interval ("month", "year", …). */
|
|
856
|
+
plan_interval: string;
|
|
857
|
+
plan_interval_count: number;
|
|
858
|
+
/**
|
|
859
|
+
* The LOCKED signup recurring amount (minor units) — the grandfathering
|
|
860
|
+
* record. Never changes; shown as provenance when it differs from
|
|
861
|
+
* `current_amount`.
|
|
862
|
+
*/
|
|
863
|
+
plan_amount: number;
|
|
864
|
+
/**
|
|
865
|
+
* The CURRENT recurring amount mirrored from Stripe (minor units) —
|
|
866
|
+
* Dashboard repricing lands here. This is the display figure.
|
|
867
|
+
*/
|
|
868
|
+
current_amount: number;
|
|
869
|
+
currency: string;
|
|
870
|
+
/** Next renewal (mirrored). Null when Stripe hasn't told us one. */
|
|
871
|
+
current_period_end: string | null;
|
|
872
|
+
/** Scheduled to cancel — the subscriber keeps access until the period lapses. */
|
|
873
|
+
cancel_at_period_end: boolean;
|
|
874
|
+
canceled_at: string | null;
|
|
875
|
+
/** Cancel provenance ('subscriber' | 'merchant'), when known. */
|
|
876
|
+
canceled_by: string | null;
|
|
877
|
+
/** Set only by the org-key teardown endpoint on rows it flipped. */
|
|
878
|
+
teardown_at: string | null;
|
|
879
|
+
/** Simulator/preview data — badge it and exclude it from any aggregate. */
|
|
880
|
+
is_test: boolean;
|
|
881
|
+
created_at: string;
|
|
882
|
+
}
|
|
883
|
+
/** Response from GET /api/v1/subscriptions (server-side total, like orders). */
|
|
884
|
+
interface PaginatedSubscriptions {
|
|
885
|
+
subscriptions: Subscription[];
|
|
886
|
+
total: number;
|
|
887
|
+
limit: number;
|
|
888
|
+
offset: number;
|
|
889
|
+
}
|
|
890
|
+
/** Options for fetching subscriptions. */
|
|
891
|
+
interface GetSubscriptionsOptions {
|
|
892
|
+
/** Exact status filter (verbatim Stripe values, e.g. "active"). */
|
|
893
|
+
status?: string;
|
|
894
|
+
limit?: number;
|
|
895
|
+
offset?: number;
|
|
896
|
+
}
|
|
836
897
|
|
|
837
898
|
declare class AifeaturesApiError extends Error {
|
|
838
899
|
status: number;
|
|
@@ -880,6 +941,7 @@ interface AifeaturesApiClient {
|
|
|
880
941
|
* disputed.
|
|
881
942
|
*/
|
|
882
943
|
setOrderFulfillment(orderId: string, input: SetOrderFulfillmentInput): Promise<Order>;
|
|
944
|
+
getSubscriptions(options?: GetSubscriptionsOptions): Promise<PaginatedSubscriptions>;
|
|
883
945
|
/** One-look business summary: revenue windows, needs-attention list, product counts. */
|
|
884
946
|
getBusinessSummary(options: GetBusinessSummaryOptions): Promise<BusinessSummary>;
|
|
885
947
|
/** Merged people list (customers ∪ form leads, grouped by email). */
|
|
@@ -1298,6 +1360,29 @@ interface LeadsViewProps {
|
|
|
1298
1360
|
*/
|
|
1299
1361
|
declare function LeadsView({ refreshKey, onBackToWebsite, className, }: LeadsViewProps): react_jsx_runtime.JSX.Element;
|
|
1300
1362
|
|
|
1363
|
+
interface SubscriptionsViewProps {
|
|
1364
|
+
/**
|
|
1365
|
+
* Bump to refetch (view data freshness, plan D11) — the host increments it
|
|
1366
|
+
* when a turn's tools changed business data.
|
|
1367
|
+
*/
|
|
1368
|
+
refreshKey?: number;
|
|
1369
|
+
/** Host-app callback that swaps the panel back to the website preview (plan D13). */
|
|
1370
|
+
onBackToWebsite?: () => void;
|
|
1371
|
+
className?: string;
|
|
1372
|
+
}
|
|
1373
|
+
/**
|
|
1374
|
+
* SubscriptionsView — the merchant view the AI swaps in for "show me my
|
|
1375
|
+
* subscriptions" (subscriptions plan Unit 12). A read-only projection of the
|
|
1376
|
+
* mirror rows: no cancel button lives here on purpose — cancel is an
|
|
1377
|
+
* org-key-only endpoint proxied through the host app, and a browser-held site
|
|
1378
|
+
* token must not be able to end a customer's billing. Ephemeral by design
|
|
1379
|
+
* (plan D12): it mounts at first-page state and keeps nothing across swaps.
|
|
1380
|
+
*
|
|
1381
|
+
* No revenue tiles: one site's subscriptions can mix currencies, and a sum
|
|
1382
|
+
* across them would be a guess. Rows only; is_test rows are badged.
|
|
1383
|
+
*/
|
|
1384
|
+
declare function SubscriptionsView({ refreshKey, onBackToWebsite, className, }: SubscriptionsViewProps): react_jsx_runtime.JSX.Element;
|
|
1385
|
+
|
|
1301
1386
|
interface UseFormsReturn {
|
|
1302
1387
|
forms: Form[];
|
|
1303
1388
|
isLoading: boolean;
|
|
@@ -1501,6 +1586,42 @@ interface UsePersonReturn {
|
|
|
1501
1586
|
*/
|
|
1502
1587
|
declare function usePerson(email: string | null, { refreshKey }?: UsePersonOptions): UsePersonReturn;
|
|
1503
1588
|
|
|
1589
|
+
interface UseSubscriptionsReturn {
|
|
1590
|
+
subscriptions: Subscription[];
|
|
1591
|
+
total: number;
|
|
1592
|
+
isLoading: boolean;
|
|
1593
|
+
error: Error | null;
|
|
1594
|
+
page: number;
|
|
1595
|
+
pageSize: number;
|
|
1596
|
+
hasNextPage: boolean;
|
|
1597
|
+
hasPreviousPage: boolean;
|
|
1598
|
+
setPage: (page: number) => void;
|
|
1599
|
+
setPageSize: (size: number) => void;
|
|
1600
|
+
/**
|
|
1601
|
+
* Exact-status filter, sent server-side (verbatim Stripe values — the API
|
|
1602
|
+
* stores whatever Stripe said). Undefined = all statuses. Resets to the
|
|
1603
|
+
* first page.
|
|
1604
|
+
*/
|
|
1605
|
+
status: string | undefined;
|
|
1606
|
+
setStatus: (status: string | undefined) => void;
|
|
1607
|
+
refetch: () => Promise<void>;
|
|
1608
|
+
}
|
|
1609
|
+
interface UseSubscriptionsOptions {
|
|
1610
|
+
initialPageSize?: number;
|
|
1611
|
+
/**
|
|
1612
|
+
* Bump to force a refetch with the current filters (view data freshness,
|
|
1613
|
+
* plan D11) — the host increments it when a turn's tools changed business
|
|
1614
|
+
* data. Optional and additive; leaving it undefined changes nothing.
|
|
1615
|
+
*/
|
|
1616
|
+
refreshKey?: number;
|
|
1617
|
+
}
|
|
1618
|
+
/**
|
|
1619
|
+
* The site's subscription mirror rows, newest first — offset paging against
|
|
1620
|
+
* the server total (same shape as useOrders; the endpoint reports `total`, so
|
|
1621
|
+
* hasNextPage counts against it rather than guessing from page fullness).
|
|
1622
|
+
*/
|
|
1623
|
+
declare function useSubscriptions({ initialPageSize, refreshKey, }?: UseSubscriptionsOptions): UseSubscriptionsReturn;
|
|
1624
|
+
|
|
1504
1625
|
declare function isZeroDecimalCurrency(currency: string): boolean;
|
|
1505
1626
|
/**
|
|
1506
1627
|
* Format a minor-unit amount for display ("$29.00", "¥1,500").
|
|
@@ -1543,4 +1664,4 @@ declare function toMinorUnits(major: string | number, currency: string): number
|
|
|
1543
1664
|
*/
|
|
1544
1665
|
declare function toMajorUnits(minor: number, currency: string): number;
|
|
1545
1666
|
|
|
1546
|
-
export { type AdjustInventoryInput, type AifeaturesApiClient, AifeaturesApiError, type AifeaturesContextValue, AifeaturesProvider, type AifeaturesProviderProps, type ApiError, type Attachment, type BusinessSummary, type CreateFormInput, type CreateOptionInput, type CreateProductInput, type CreateVariantInput, type Customer, type CustomerAddress, CustomerDetail, type CustomerDetail$1 as CustomerDetailData, type CustomerDetailProps, CustomersList, type CustomersListProps, type CustomersListResponse, type EmailSideStatus, type Form, FormSettings, type FormSettingsProps, FormSubmissions, type FormSubmissionsProps, FormsDashboard, type FormsDashboardProps, FormsList, type FormsListProps, type FormsListResponse, type GetBusinessSummaryOptions, type GetCustomersOptions, type GetOrdersOptions, type GetPeopleOptions, type GetProductsOptions, type GetSubmissionsOptions, LeadsView, type LeadsViewProps, type LowStockProduct, type NeedsAttentionItem, type NeedsAttentionType, type Order, OrderDetail, type OrderDetailProps, type OrderStatus, OrderStatusBadge, OrdersList, type OrdersListProps, OrdersView, type OrdersViewProps, type PaginatedOrders, type PaginatedSubmissions, 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 RefundRequest, type RevenueCurrencyTotal, type RevenuePeriod, type SetInventoryInput, type SetOrderFulfillmentInput, type SettledRevenue, type Submission, SubmissionDetail, type SubmissionDetailProps, type SubmissionMetadata, type UpdateFormInput, type UpdateOptionInput, type UpdateProductInput, type UpdateVariantInput, type UseBusinessSummaryOptions, type UseBusinessSummaryReturn, type UseCustomersOptions, type UseCustomersReturn, type UseFormsReturn, type UseOrdersOptions, type UseOrdersReturn, type UsePaymentsStatusReturn, type UsePeopleOptions, type UsePeopleReturn, type UsePersonOptions, type UsePersonReturn, type UseProductsOptions, type UseProductsReturn, type UseSubmissionsOptions, type UseSubmissionsReturn, type VariantInventory, type VariantOptionValue, VariantsEditor, type VariantsEditorProps, ViewShell, type ViewShellProps, chargedTotal, createApiClient, formatPrice, isZeroDecimalCurrency, toMajorUnits, toMinorUnits, useAifeaturesContext as useAifeatures, useAifeaturesContext, useBusinessSummary, useCustomers, useForms, useOrders, usePaymentsStatus, usePeople, usePerson, useProducts, useSubmissions };
|
|
1667
|
+
export { type AdjustInventoryInput, type AifeaturesApiClient, AifeaturesApiError, type AifeaturesContextValue, AifeaturesProvider, type AifeaturesProviderProps, type ApiError, type Attachment, type BusinessSummary, type CreateFormInput, type CreateOptionInput, type CreateProductInput, type CreateVariantInput, type Customer, type CustomerAddress, CustomerDetail, type CustomerDetail$1 as CustomerDetailData, type CustomerDetailProps, CustomersList, type CustomersListProps, type CustomersListResponse, type EmailSideStatus, type Form, FormSettings, type FormSettingsProps, FormSubmissions, type FormSubmissionsProps, FormsDashboard, type FormsDashboardProps, FormsList, type FormsListProps, type FormsListResponse, type GetBusinessSummaryOptions, type GetCustomersOptions, type GetOrdersOptions, type GetPeopleOptions, type GetProductsOptions, type GetSubmissionsOptions, type GetSubscriptionsOptions, LeadsView, type LeadsViewProps, type LowStockProduct, type NeedsAttentionItem, type NeedsAttentionType, type Order, OrderDetail, type OrderDetailProps, type OrderStatus, OrderStatusBadge, OrdersList, type OrdersListProps, OrdersView, type OrdersViewProps, 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 RefundRequest, type RevenueCurrencyTotal, type RevenuePeriod, type SetInventoryInput, type SetOrderFulfillmentInput, type SettledRevenue, type Submission, SubmissionDetail, type SubmissionDetailProps, type SubmissionMetadata, type Subscription, SubscriptionsView, type SubscriptionsViewProps, type UpdateFormInput, type UpdateOptionInput, type UpdateProductInput, type UpdateVariantInput, type UseBusinessSummaryOptions, type UseBusinessSummaryReturn, type UseCustomersOptions, type UseCustomersReturn, type UseFormsReturn, type UseOrdersOptions, type UseOrdersReturn, type UsePaymentsStatusReturn, type UsePeopleOptions, type UsePeopleReturn, type UsePersonOptions, type UsePersonReturn, type UseProductsOptions, type UseProductsReturn, type UseSubmissionsOptions, type UseSubmissionsReturn, type UseSubscriptionsOptions, type UseSubscriptionsReturn, type VariantInventory, type VariantOptionValue, VariantsEditor, type VariantsEditorProps, ViewShell, type ViewShellProps, chargedTotal, createApiClient, formatPrice, isZeroDecimalCurrency, toMajorUnits, toMinorUnits, useAifeaturesContext as useAifeatures, useAifeaturesContext, useBusinessSummary, useCustomers, useForms, useOrders, usePaymentsStatus, usePeople, usePerson, useProducts, useSubmissions, useSubscriptions };
|