arky-sdk 0.9.13 → 0.9.16
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/README.md +16 -12
- package/dist/admin-C-ZTxvz3.d.ts +1544 -0
- package/dist/admin-Dm2WRN6q.d.cts +1544 -0
- package/dist/admin.cjs +982 -425
- package/dist/admin.cjs.map +1 -1
- package/dist/admin.d.cts +3 -3
- package/dist/admin.d.ts +3 -3
- package/dist/admin.js +982 -425
- package/dist/admin.js.map +1 -1
- package/dist/{api-DvsFdOaF.d.cts → api-D37IpMSq.d.cts} +1417 -665
- package/dist/{api-DvsFdOaF.d.ts → api-D37IpMSq.d.ts} +1417 -665
- package/dist/index.cjs +1317 -539
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1317 -539
- package/dist/index.js.map +1 -1
- package/dist/{index-CQd9b_7n.d.ts → inventory-DdN96PX3.d.cts} +6 -4
- package/dist/{index-BC06yiuv.d.cts → inventory-Dh1RevEb.d.ts} +6 -4
- package/dist/storefront.cjs +1210 -658
- package/dist/storefront.cjs.map +1 -1
- package/dist/storefront.d.cts +88 -285
- package/dist/storefront.d.ts +88 -285
- package/dist/storefront.js +1207 -659
- package/dist/storefront.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils.cjs +198 -16
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +18 -2
- package/dist/utils.d.ts +18 -2
- package/dist/utils.js +191 -17
- package/dist/utils.js.map +1 -1
- package/package.json +4 -5
- package/dist/admin-Q9MBFwCb.d.cts +0 -1496
- package/dist/admin-ZLXD4_en.d.ts +0 -1496
- package/scripts/contract-admin.mjs +0 -120
- package/scripts/contract-storefront.mjs +0 -296
|
@@ -0,0 +1,1544 @@
|
|
|
1
|
+
import { r as Contact, an as ContactSessionIssued, ai as Store, M as Market, ao as VerificationChallengeResponse, ap as GetCurrentCartParams, R as RequestOptions, l as Cart, aq as GetCartParams, ar as UpdateCartParams, as as AddCartItemParams, at as RemoveCartItemParams, au as ClearCartParams, av as QuoteCartParams, d as OrderQuote, aw as CheckoutCartParams, j as OrderCheckoutResult, B as Block, ax as HttpClient, am as AuthStorage, al as HttpClientConfig, ay as UpdateAccountContactParams, az as AccountUpdateResponse, aA as DeleteAccountParams, aB as GetMeParams, aC as Account, aD as SearchAccountsParams, u as PaginatedResponse, aE as AccountApiToken, aF as CreateAccountApiTokenParams, aG as AccountApiTokenCreated, aH as UpdateAccountApiTokenParams, aI as AccountSession, aJ as AuthCodeVerifyParams, aK as AuthToken, aL as CreateStoreParams, aM as UpdateStoreParams, aN as GetStoreParams, aO as GetStoresParams, aP as GetStoreSubscriptionParams, aQ as StoreSubscription, aR as GetSubscriptionPlansParams, aS as SubscriptionPlan, aT as CreateStoreSubscriptionActionParams, aU as StoreSubscriptionAction, aV as FindStoreSubscriptionActionsParams, aW as GetStoreSubscriptionActionParams, aX as RetryStoreSubscriptionActionParams, aY as FindStoreSubscriptionActionEffectsParams, aZ as StoreSubscriptionEffect, a_ as GetStoreSubscriptionActionEffectParams, a$ as CreatePortalSessionParams, b0 as AddMemberParams, b1 as FindStoreMembersParams, b2 as StoreMember, b3 as StoreMembership, b4 as RemoveMemberParams, b5 as ListBuildHooksParams, b6 as BuildHook, b7 as CreateBuildHookParams, b8 as UpdateBuildHookParams, b9 as DeleteBuildHookParams, ba as TestWebhookParams, bb as TestWebhookResponse, bc as ListWebhooksParams, bd as Webhook, be as CreateWebhookParams, bf as UpdateWebhookParams, bg as DeleteWebhookParams, q as PaymentStoreConfig, aj as Location, bh as CreateLocationParams, bi as UpdateLocationParams, bj as DeleteLocationParams, bk as CreateMarketParams, bl as UpdateMarketParams, bm as DeleteMarketParams, bn as ListPaymentProvidersParams, bo as PaymentProvider, bp as RefreshPaymentProvidersParams, bq as ConnectStripePaymentProviderParams, br as StripePaymentProviderConnectResponse, bs as DeletePaymentProviderParams, bt as GetMediaParams, bu as Media, bv as UploadStoreMediaParams, bw as DeleteStoreMediaParams, bx as GetStoreMediaParams, by as UpdateMediaParams, bz as EmailSendRequest, bA as EmailSendResult, bB as GetEmailDeliveryParams, bC as EmailDelivery, bD as RetryEmailDeliveryParams, bE as ConnectGoogleMailboxParams, bF as GoogleMailboxConnectUrl, bG as CreateMailboxParams, bH as Mailbox, bI as UpdateMailboxParams, bJ as GetMailboxParams, bK as TestMailboxParams, bL as TestMailboxResult, bM as PrepareMailboxParams, bN as FindMailboxesParams, bO as GetSocialCapabilitiesParams, bP as SocialProviderCapability, bQ as ListSocialConnectionsParams, bR as SocialConnection, bS as ConnectSocialConnectionParams, bT as SocialConnectResponse, bU as GetSocialOAuthAttemptParams, bV as SocialOAuthCallbackResponse, bW as SelectSocialDestinationParams, bX as DeleteSocialConnectionParams, bY as CreateSocialPublicationParams, bZ as SocialPublicationMutationResponse, b_ as UpdateSocialPublicationParams, b$ as GetSocialPublicationParams, c0 as SocialPublication, c1 as FindSocialPublicationsParams, c2 as ValidateSocialPublicationParams, c3 as SocialPublicationValidation, c4 as ScheduleSocialPublicationParams, c5 as CancelSocialPublicationParams, c6 as GetSocialPublicationCommentsParams, c7 as SocialPublicationComment, c8 as SyncSocialPublicationCommentsParams, c9 as GetSocialPublicationCommentThreadParams, ca as SyncSocialPublicationCommentThreadParams, cb as FindSocialPublicationCommentsParams, cc as ClassifySocialPublicationCommentsParams, cd as SocialPublicationCommentClassificationResult, ce as CreateSocialCommentReplyParams, cf as SocialPublicationCommentReplyResponse, cg as ListSocialCommentRepliesParams, ch as SocialCommentReply, ci as GetSocialCommentReplyParams, cj as RetrySocialCommentReplyParams, ck as ListSocialPublicationEffectsParams, cl as SocialPublicationEffect, cm as GetSocialPublicationEffectParams, cn as GetSocialPublicationMetricsParams, co as SocialPublicationMetricSnapshot, cp as SyncSocialPublicationMetricsParams, cq as SyncSocialEngagementParams, cr as SocialPublicationEngagementSyncResult, cs as CreateCollectionParams, s as Collection, ct as UpdateCollectionParams, cu as DeleteCollectionParams, G as GetCollectionParams, cv as GetCollectionsParams, cw as CreateEntryParams, C as CollectionEntry, cx as UpdateEntryParams, cy as DeleteEntryParams, cz as GetEntryParams, t as GetEntriesParams, cA as CreateFormParams, F as Form, cB as UpdateFormParams, cC as DeleteFormParams, v as GetFormParams, cD as GetFormsParams, w as SubmitFormParams, x as FormSubmission, cE as GetFormSubmissionsParams, cF as GetFormSubmissionParams, cG as UpdateFormSubmissionParams, cH as CreateTaxonomyParams, T as Taxonomy, cI as UpdateTaxonomyParams, cJ as DeleteTaxonomyParams, y as GetTaxonomyParams, cK as GetTaxonomiesParams, z as GetTaxonomyChildrenParams, cL as CreateEmailTemplateParams, cM as EmailTemplate, cN as UpdateEmailTemplateParams, cO as DeleteEmailTemplateParams, cP as GetEmailTemplateParams, cQ as GetEmailTemplatesParams, cR as PreviewEmailTemplateParams, cS as PreviewEmailTemplateResponse, cT as CreateProductParams, P as Product, cU as UpdateProductParams, cV as DeleteProductParams, D as GetProductParams, H as GetProductsParams, cW as UpdateOrderParams, W as Order, V as GetOrderParams, X as GetOrdersParams, cX as GetQuoteParams, cY as CreateOrderRefundParams, cZ as CreateOrderRefundResponse, c_ as GetOrderRefundParams, c$ as OrderRefund, d0 as FindOrderRefundsParams, d1 as RetryOrderRefundParams, d2 as GetOrderPaymentParams, d3 as OrderPayment, d4 as RetryPaymentTransactionParams, d5 as PaymentTransaction, d6 as FindPaymentTransactionsParams, d7 as GetPaymentTransactionParams, $ as FindDigitalAccessGrantsParams, a0 as DigitalAccessGrant, a1 as GetDigitalAccessGrantParams, Y as DownloadDigitalAccessParams, _ as DigitalAccessDownloadResponse, d8 as ActivateDigitalAccessGrantParams, d9 as RevokeDigitalAccessGrantParams, da as GetShippingRatesParams, db as ShippingRate, dc as CreateShipmentParams, dd as CreateShipmentResponse, de as GetShipmentParams, df as Shipment, dg as FindShipmentsParams, dh as RetryShipmentParams, di as FindFulfillmentOrdersParams, dj as FulfillmentOrder, dk as GetFulfillmentOrderParams, dl as RequestShippingLabelRefundParams, dm as ShippingLabelRefund, dn as GetShippingLabelRefundParams, dp as FindShippingLabelRefundsParams, dq as RetryShippingLabelRefundParams, dr as FindShippingLabelAdjustmentsParams, ds as ShippingLabelAdjustment, dt as FindShippingLabelSettlementsParams, du as ShippingLabelSettlement, dv as RetryShippingLabelSettlementParams, dw as CreateCartParams, dx as FindCartsParams, dy as CreateServiceParams, S as Service, dz as UpdateServiceParams, dA as DeleteServiceParams, J as GetServiceParams, K as GetServicesParams, N as GetAvailabilityParams, A as AvailabilityResponse, L as FindServiceProvidersParams, c as ServiceProvider, dB as CreateServiceProviderParams, dC as UpdateServiceProviderParams, dD as DeleteServiceProviderParams, dE as CreateProviderParams, b as Provider, dF as UpdateProviderParams, dG as DeleteProviderParams, Q as GetProviderParams, U as GetProvidersParams, dH as CreatePromoCodeParams, dI as PromoCode, dJ as UpdatePromoCodeParams, dK as DeletePromoCodeParams, dL as GetPromoCodeParams, dM as GetPromoCodesParams, dN as CreateContactParams, dO as Contact$1, dP as GetContactParams, dQ as FindContactsParams, dR as UpdateContactParams, dS as MergeContactsParams, dT as ImportContactsParams, dU as ImportContactsResult, dV as FindContactSessionsParams, dW as ContactSessionRecord, dX as RevokeContactSessionParams, dY as RevokeAllContactSessionsParams, dZ as CreateContactListParams, d_ as ContactList, d$ as UpdateContactListParams, a4 as GetContactListParams, e0 as FindContactListsParams, e1 as ImportContactsIntoContactListParams, e2 as ImportContactsIntoContactListResult, e3 as ImportContactListPreviewParams, e4 as ImportContactsPreviewResult, e5 as AddContactListContactParams, e6 as ContactListMember, e7 as UpdateContactListContactParams, e8 as RemoveContactListContactParams, e9 as FindContactListContactsParams, ea as CreateContactListPlanParams, eb as ContactListPlan, ec as UpdateContactListPlanParams, ed as GetContactListPlanParams, ee as FindContactListPlansParams, ef as RetryContactListPlanCatalogParams, eg as RefundContactListMembershipParams, eh as RefundContactListMembershipResult, ei as FindContactListMembershipPaymentAttemptsParams, ej as ContactListMembershipPaymentAttempt, ek as GetContactListMembershipPaymentAttemptParams, el as FindContactListMembershipRefundsParams, em as ContactListMembershipRefund, en as GetContactListMembershipRefundParams, eo as RetryContactListMembershipRefundParams, ep as FindContactListMembershipCancellationsParams, eq as ContactListMembershipCancellation, er as GetContactListMembershipCancellationParams, es as RetryContactListMembershipCancellationParams, et as Action, eu as FindActionsParams, ev as CreateCampaignParams, ew as Campaign, ex as UpdateCampaignParams, ey as GetCampaignParams, ez as FindCampaignsParams, eA as LaunchCampaignParams, eB as DuplicateCampaignParams, eC as GetCampaignLaunchReadinessParams, eD as CampaignLaunchReadiness, eE as ImportCampaignEnrollmentsParams, eF as CampaignEnrollmentImportResult, eG as GenerateOutreachPersonalizedDraftsParams, eH as FindCampaignEnrollmentsParams, eI as CampaignEnrollment, eJ as GetCampaignEnrollmentConversationParams, eK as CampaignEnrollmentConversationResponse, eL as UpdateCampaignEnrollmentParams, eM as UpdateCampaignEnrollmentDraftParams, eN as UpdateCampaignEnrollmentStepExecutionParams, eO as ReplyCampaignEnrollmentParams, eP as StopCampaignEnrollmentParams, eQ as FindCampaignMessagesParams, eR as CampaignMessage, eS as UpdateCampaignMessageParams, eT as CreateSuppressionParams, eU as Suppression, eV as UpdateSuppressionParams, eW as GetSuppressionParams, eX as FindSuppressionsParams, eY as CreateLeadResearchRunParams, eZ as LeadResearchRun, e_ as FindLeadResearchRunsParams, e$ as GetLeadResearchRunParams, f0 as UpdateLeadResearchRunParams, f1 as CancelLeadResearchRunParams, f2 as SendLeadResearchMessageParams, f3 as SendLeadResearchMessageResult, f4 as FindLeadResearchMessagesParams, f5 as LeadResearchMessage, f6 as ValidateLeadEmailParams, f7 as LeadEmailValidationResult, f8 as CreateWorkflowParams, f9 as Workflow, fa as UpdateWorkflowParams, fb as DeleteWorkflowParams, fc as GetWorkflowParams, fd as GetWorkflowsParams, fe as TriggerWorkflowParams, ff as WorkflowExecution, fg as GetWorkflowExecutionsParams, fh as GetWorkflowExecutionParams, fi as GetWorkflowEffectsParams, fj as WorkflowEffect, fk as GetWorkflowEffectParams, fl as GetWorkflowConnectionsParams, fm as WorkflowConnection, fn as GetWorkflowConnectionConnectUrlParams, fo as WorkflowConnectionConnectUrl, fp as DeleteWorkflowConnectionParams, i as Price, a5 as StorefrontContactList, a6 as FindStorefrontContactListsParams, a7 as FindStorefrontContactListPlansParams, a8 as StorefrontContactListPlan, a9 as FindStorefrontContactListMembershipsParams, aa as StorefrontContactListMembership, ab as SubscribeContactListParams, ac as ContactListSubscribeResponse, ad as ContactListAccessParams, ae as ContactListAccessResponse, af as ContactListContentAccessParams, ag as ContactListContentAccessResponse, ah as ContactListManagementResponse } from './api-D37IpMSq.js';
|
|
2
|
+
import { m as formatPayment, f as formatMinor, g as getCurrencySymbol, a as getCurrencyName, i as isValidKey, v as validateKey, t as toKey, n as nameToKey, e as getAvailableStock, h as getReservedStock, j as hasStock, k as getInventoryAt, l as getFirstAvailableFCId } from './inventory-Dh1RevEb.js';
|
|
3
|
+
|
|
4
|
+
type IdentifyResponse = {
|
|
5
|
+
contact: Contact;
|
|
6
|
+
token: ContactSessionIssued | null;
|
|
7
|
+
store: Store;
|
|
8
|
+
market: Market | null;
|
|
9
|
+
verification_challenge: VerificationChallengeResponse | null;
|
|
10
|
+
};
|
|
11
|
+
type VerifyResponse = {
|
|
12
|
+
contact: Contact;
|
|
13
|
+
token: ContactSessionIssued;
|
|
14
|
+
};
|
|
15
|
+
interface StorefrontAction {
|
|
16
|
+
store_id: string;
|
|
17
|
+
contact_id: string;
|
|
18
|
+
key: string;
|
|
19
|
+
payload: Record<string, unknown>;
|
|
20
|
+
created_at: number;
|
|
21
|
+
}
|
|
22
|
+
interface TrackActionParams {
|
|
23
|
+
key: string;
|
|
24
|
+
payload?: Record<string, unknown>;
|
|
25
|
+
}
|
|
26
|
+
declare const COMMON_ACTION_KEYS: readonly ["page.view", "product.view", "service.view", "provider.view", "cart.added", "cart.removed", "checkout.started", "order.created", "signin", "signup", "verified.email", "search", "share", "wishlist.added"];
|
|
27
|
+
type CommonActionKey = (typeof COMMON_ACTION_KEYS)[number];
|
|
28
|
+
interface UseExperimentParams {
|
|
29
|
+
key: string;
|
|
30
|
+
store_id?: string;
|
|
31
|
+
}
|
|
32
|
+
interface ExperimentUseResponse {
|
|
33
|
+
experiment_key: string;
|
|
34
|
+
experiment_version: number;
|
|
35
|
+
variant_key: string;
|
|
36
|
+
goal_action_key: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
type ExperimentStatus = "draft" | "running" | "paused" | "completed";
|
|
40
|
+
interface ExperimentVariant {
|
|
41
|
+
key: string;
|
|
42
|
+
weight: number;
|
|
43
|
+
}
|
|
44
|
+
interface Experiment {
|
|
45
|
+
id: string;
|
|
46
|
+
store_id: string;
|
|
47
|
+
key: string;
|
|
48
|
+
status: ExperimentStatus;
|
|
49
|
+
version: number;
|
|
50
|
+
goal_action_key: string;
|
|
51
|
+
variants: ExperimentVariant[];
|
|
52
|
+
created_at: number;
|
|
53
|
+
updated_at: number;
|
|
54
|
+
}
|
|
55
|
+
interface CreateExperimentParams {
|
|
56
|
+
store_id?: string;
|
|
57
|
+
key: string;
|
|
58
|
+
goal_action_key: string;
|
|
59
|
+
variants: ExperimentVariant[];
|
|
60
|
+
status?: ExperimentStatus;
|
|
61
|
+
}
|
|
62
|
+
interface UpdateExperimentParams {
|
|
63
|
+
store_id?: string;
|
|
64
|
+
key: string;
|
|
65
|
+
goal_action_key?: string;
|
|
66
|
+
variants?: ExperimentVariant[];
|
|
67
|
+
status?: ExperimentStatus;
|
|
68
|
+
}
|
|
69
|
+
interface GetExperimentParams {
|
|
70
|
+
store_id?: string;
|
|
71
|
+
key: string;
|
|
72
|
+
}
|
|
73
|
+
interface FindExperimentsParams {
|
|
74
|
+
store_id?: string;
|
|
75
|
+
limit?: number;
|
|
76
|
+
cursor?: string;
|
|
77
|
+
}
|
|
78
|
+
interface ExperimentVariantResult {
|
|
79
|
+
variant_key: string;
|
|
80
|
+
weight: number;
|
|
81
|
+
shown: number;
|
|
82
|
+
wins: number;
|
|
83
|
+
conversion_rate: number;
|
|
84
|
+
}
|
|
85
|
+
interface ExperimentResults {
|
|
86
|
+
experiment: Experiment;
|
|
87
|
+
variants: ExperimentVariantResult[];
|
|
88
|
+
winning_variant_key?: string | null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
interface AnalyticsTimeRange {
|
|
92
|
+
from: number;
|
|
93
|
+
to: number;
|
|
94
|
+
}
|
|
95
|
+
type AnalyticsReportKey = "business_overview" | "contact_funnel" | "outreach_overview" | "outreach_funnel" | "action_by_country" | "top_action_pages" | "entity_status_overview" | "data_health" | "orders_created" | "contacts_created" | "form_submissions_created" | "carts_abandoned" | "campaign_messages_sent" | "campaign_messages_received" | "suppressions_created" | "media_count" | "products_by_status" | "services_by_status" | "providers_by_status" | "collections_by_status" | "entries_by_status" | "contacts_by_status" | "contact_lists_by_status" | "mailboxes_by_status" | "campaigns_by_status" | "campaign_enrollments_by_status" | "campaign_messages_by_status" | "support_conversations_by_status" | "lead_research_runs_by_status" | "suppressions_by_status" | "workflows_by_status" | "promo_codes_by_status" | "email_templates_by_status" | "forms_by_status" | "taxonomies_by_status" | "carts_by_status" | "orders_by_status" | "order_items_by_status" | "recent_action";
|
|
96
|
+
type ActionFeedCategory = "orders" | "carts" | "promo_codes" | "submissions" | "contacts" | "contact_lists" | "products" | "services" | "providers" | "cms" | "workflows" | "actions";
|
|
97
|
+
interface AnalyticsReportRequest {
|
|
98
|
+
key: AnalyticsReportKey;
|
|
99
|
+
limit?: number;
|
|
100
|
+
category?: ActionFeedCategory;
|
|
101
|
+
cursor_created_at?: number;
|
|
102
|
+
cursor_id?: string;
|
|
103
|
+
}
|
|
104
|
+
interface AnalyticsRequest {
|
|
105
|
+
time?: AnalyticsTimeRange;
|
|
106
|
+
reports?: AnalyticsReportRequest[];
|
|
107
|
+
blocks?: AnalyticsBlockRequest[];
|
|
108
|
+
}
|
|
109
|
+
interface AnalyticsBlockRequest {
|
|
110
|
+
id: string;
|
|
111
|
+
time: AnalyticsTimeRange;
|
|
112
|
+
reports: AnalyticsReportRequest[];
|
|
113
|
+
}
|
|
114
|
+
interface AnalyticsMetricData {
|
|
115
|
+
value: number;
|
|
116
|
+
execution_ms?: number;
|
|
117
|
+
}
|
|
118
|
+
interface AnalyticsBreakdownItem {
|
|
119
|
+
key: string;
|
|
120
|
+
label: string;
|
|
121
|
+
value: number;
|
|
122
|
+
unique_contacts?: number;
|
|
123
|
+
unique_visitors?: number;
|
|
124
|
+
}
|
|
125
|
+
interface AnalyticsBreakdownData {
|
|
126
|
+
items: AnalyticsBreakdownItem[];
|
|
127
|
+
}
|
|
128
|
+
interface BusinessOverviewData {
|
|
129
|
+
visitors: number;
|
|
130
|
+
new_visitors: number;
|
|
131
|
+
known_contacts: number;
|
|
132
|
+
new_known_contacts: number;
|
|
133
|
+
email_known_contacts: number;
|
|
134
|
+
verified_contacts: number;
|
|
135
|
+
new_verified_contacts: number;
|
|
136
|
+
buyers: number;
|
|
137
|
+
orders: number;
|
|
138
|
+
revenue: number;
|
|
139
|
+
revenue_by_currency: RevenueByCurrencyData[];
|
|
140
|
+
average_order_value: number;
|
|
141
|
+
carts: number;
|
|
142
|
+
abandoned_carts: number;
|
|
143
|
+
visitor_to_known_rate: number;
|
|
144
|
+
visitor_to_buyer_rate: number;
|
|
145
|
+
cart_abandonment_rate: number;
|
|
146
|
+
}
|
|
147
|
+
interface RevenueByCurrencyData {
|
|
148
|
+
currency: string;
|
|
149
|
+
orders: number;
|
|
150
|
+
revenue: number;
|
|
151
|
+
average_order_value: number;
|
|
152
|
+
}
|
|
153
|
+
interface ContactFunnelStage {
|
|
154
|
+
key: "visitors" | "email_known_contacts" | "verified_contacts" | "buyers" | string;
|
|
155
|
+
label: string;
|
|
156
|
+
value: number;
|
|
157
|
+
}
|
|
158
|
+
interface ContactFunnelData {
|
|
159
|
+
stages: ContactFunnelStage[];
|
|
160
|
+
visitor_to_known_rate?: number;
|
|
161
|
+
visitor_to_buyer_rate?: number;
|
|
162
|
+
}
|
|
163
|
+
interface OutreachOverviewData {
|
|
164
|
+
contact_lists: number;
|
|
165
|
+
active_contact_lists: number;
|
|
166
|
+
mailboxes: number;
|
|
167
|
+
active_mailboxes: number;
|
|
168
|
+
campaigns: number;
|
|
169
|
+
active_campaigns: number;
|
|
170
|
+
campaign_enrollments: number;
|
|
171
|
+
new_campaign_enrollments: number;
|
|
172
|
+
active_campaign_enrollments: number;
|
|
173
|
+
completed_campaign_enrollments: number;
|
|
174
|
+
replied_campaign_enrollments: number;
|
|
175
|
+
suppressed_campaign_enrollments: number;
|
|
176
|
+
failed_campaign_enrollments: number;
|
|
177
|
+
campaign_messages_sent: number;
|
|
178
|
+
outreach_bounces: number;
|
|
179
|
+
campaign_messages_received: number;
|
|
180
|
+
suppressions: number;
|
|
181
|
+
active_suppressions: number;
|
|
182
|
+
new_suppressions: number;
|
|
183
|
+
reply_rate: number;
|
|
184
|
+
bounce_rate: number;
|
|
185
|
+
suppression_rate: number;
|
|
186
|
+
}
|
|
187
|
+
interface OutreachFunnelStage {
|
|
188
|
+
key: "contact_lists" | "campaigns" | "campaign_enrollments" | "campaign_messages_sent" | "outreach_bounces" | "campaign_messages_received" | string;
|
|
189
|
+
label: string;
|
|
190
|
+
value: number;
|
|
191
|
+
}
|
|
192
|
+
interface OutreachFunnelData {
|
|
193
|
+
stages: OutreachFunnelStage[];
|
|
194
|
+
reply_rate?: number;
|
|
195
|
+
bounce_rate?: number;
|
|
196
|
+
suppression_rate?: number;
|
|
197
|
+
}
|
|
198
|
+
interface EntityStatusOverviewData {
|
|
199
|
+
entities: Record<string, AnalyticsBreakdownItem[]>;
|
|
200
|
+
}
|
|
201
|
+
interface DataHealthData {
|
|
202
|
+
anonymous_contacts: number;
|
|
203
|
+
known_contacts: number;
|
|
204
|
+
duplicate_emails: number;
|
|
205
|
+
unknown_country_events: number;
|
|
206
|
+
unknown_device_events: number;
|
|
207
|
+
}
|
|
208
|
+
interface ActionFeedItem {
|
|
209
|
+
id: string;
|
|
210
|
+
entity: string;
|
|
211
|
+
entity_id: string;
|
|
212
|
+
action: string;
|
|
213
|
+
event_type: string;
|
|
214
|
+
status: string;
|
|
215
|
+
contact_id: string;
|
|
216
|
+
category: string;
|
|
217
|
+
title: string;
|
|
218
|
+
description: string;
|
|
219
|
+
href?: string | null;
|
|
220
|
+
data: unknown;
|
|
221
|
+
payload: unknown;
|
|
222
|
+
created_at: number;
|
|
223
|
+
}
|
|
224
|
+
interface ActionFeedSummary {
|
|
225
|
+
total: number;
|
|
226
|
+
orders: number;
|
|
227
|
+
submissions: number;
|
|
228
|
+
contacts: number;
|
|
229
|
+
contact_lists: number;
|
|
230
|
+
abandoned_carts: number;
|
|
231
|
+
carts: number;
|
|
232
|
+
promo_codes: number;
|
|
233
|
+
products: number;
|
|
234
|
+
services: number;
|
|
235
|
+
providers: number;
|
|
236
|
+
cms: number;
|
|
237
|
+
workflows: number;
|
|
238
|
+
actions: number;
|
|
239
|
+
window_start: number;
|
|
240
|
+
}
|
|
241
|
+
interface ActionFeedCursor {
|
|
242
|
+
created_at: number;
|
|
243
|
+
id: string;
|
|
244
|
+
}
|
|
245
|
+
interface ActionFeedData {
|
|
246
|
+
items: ActionFeedItem[];
|
|
247
|
+
summary: ActionFeedSummary;
|
|
248
|
+
next_cursor?: ActionFeedCursor | null;
|
|
249
|
+
meta: {
|
|
250
|
+
row_count: number;
|
|
251
|
+
execution_ms: number;
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
type AnalyticsMetricReportKey = "orders_created" | "contacts_created" | "form_submissions_created" | "carts_abandoned" | "campaign_messages_sent" | "campaign_messages_received" | "suppressions_created" | "media_count";
|
|
255
|
+
type AnalyticsBreakdownReportKey = "action_by_country" | "top_action_pages" | "products_by_status" | "services_by_status" | "providers_by_status" | "collections_by_status" | "entries_by_status" | "contacts_by_status" | "contact_lists_by_status" | "mailboxes_by_status" | "campaigns_by_status" | "campaign_enrollments_by_status" | "campaign_messages_by_status" | "support_conversations_by_status" | "lead_research_runs_by_status" | "suppressions_by_status" | "workflows_by_status" | "promo_codes_by_status" | "email_templates_by_status" | "forms_by_status" | "taxonomies_by_status" | "carts_by_status" | "orders_by_status" | "order_items_by_status";
|
|
256
|
+
type AnalyticsActionReportKey = "recent_action";
|
|
257
|
+
type AnalyticsCompositeReportKey = "business_overview" | "contact_funnel" | "outreach_overview" | "outreach_funnel" | "entity_status_overview" | "data_health";
|
|
258
|
+
type AnalyticsReport = {
|
|
259
|
+
key: AnalyticsMetricReportKey;
|
|
260
|
+
data: AnalyticsMetricData;
|
|
261
|
+
} | {
|
|
262
|
+
key: AnalyticsBreakdownReportKey;
|
|
263
|
+
data: AnalyticsBreakdownData;
|
|
264
|
+
} | {
|
|
265
|
+
key: "business_overview";
|
|
266
|
+
data: BusinessOverviewData;
|
|
267
|
+
} | {
|
|
268
|
+
key: "contact_funnel";
|
|
269
|
+
data: ContactFunnelData;
|
|
270
|
+
} | {
|
|
271
|
+
key: "outreach_overview";
|
|
272
|
+
data: OutreachOverviewData;
|
|
273
|
+
} | {
|
|
274
|
+
key: "outreach_funnel";
|
|
275
|
+
data: OutreachFunnelData;
|
|
276
|
+
} | {
|
|
277
|
+
key: "entity_status_overview";
|
|
278
|
+
data: EntityStatusOverviewData;
|
|
279
|
+
} | {
|
|
280
|
+
key: "data_health";
|
|
281
|
+
data: DataHealthData;
|
|
282
|
+
} | {
|
|
283
|
+
key: AnalyticsActionReportKey;
|
|
284
|
+
data: ActionFeedData;
|
|
285
|
+
};
|
|
286
|
+
interface AnalyticsBlockResponse {
|
|
287
|
+
id: string;
|
|
288
|
+
time: AnalyticsTimeRange;
|
|
289
|
+
reports: AnalyticsReport[];
|
|
290
|
+
}
|
|
291
|
+
interface AnalyticsResponse {
|
|
292
|
+
time?: AnalyticsTimeRange;
|
|
293
|
+
reports?: AnalyticsReport[];
|
|
294
|
+
blocks?: AnalyticsBlockResponse[];
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
type SupportAgentStatus = "draft" | "active" | "archived";
|
|
298
|
+
type SupportChannelStatus = "draft" | "active" | "disabled" | "archived";
|
|
299
|
+
type SupportChannelType = "web" | "email";
|
|
300
|
+
interface SupportAgentNode {
|
|
301
|
+
type: "message" | "input" | "ai_handoff" | "action";
|
|
302
|
+
text?: string;
|
|
303
|
+
buttons?: string[];
|
|
304
|
+
prompt?: string;
|
|
305
|
+
field?: string;
|
|
306
|
+
input_type?: "text" | "email" | "phone";
|
|
307
|
+
validation?: string;
|
|
308
|
+
system_prompt_override?: string;
|
|
309
|
+
tools?: string[];
|
|
310
|
+
action?: SupportAction;
|
|
311
|
+
}
|
|
312
|
+
interface SupportAction {
|
|
313
|
+
type: "end_conversation" | "human_handoff";
|
|
314
|
+
message?: string;
|
|
315
|
+
}
|
|
316
|
+
interface SupportAgentEdge {
|
|
317
|
+
source: string;
|
|
318
|
+
target: string;
|
|
319
|
+
trigger: EdgeTrigger;
|
|
320
|
+
}
|
|
321
|
+
type EdgeTrigger = {
|
|
322
|
+
type: "button";
|
|
323
|
+
label: string;
|
|
324
|
+
} | {
|
|
325
|
+
type: "input";
|
|
326
|
+
field: string;
|
|
327
|
+
} | {
|
|
328
|
+
type: "default";
|
|
329
|
+
};
|
|
330
|
+
interface SupportAgentAiConfig {
|
|
331
|
+
system_prompt: string;
|
|
332
|
+
tools: string[];
|
|
333
|
+
max_context_messages: number;
|
|
334
|
+
}
|
|
335
|
+
interface SupportAgent {
|
|
336
|
+
id: string;
|
|
337
|
+
key: string;
|
|
338
|
+
store_id: string;
|
|
339
|
+
name: string;
|
|
340
|
+
status: SupportAgentStatus;
|
|
341
|
+
entry_node_id: string;
|
|
342
|
+
nodes: Record<string, SupportAgentNode>;
|
|
343
|
+
edges: SupportAgentEdge[];
|
|
344
|
+
ai_config?: SupportAgentAiConfig;
|
|
345
|
+
channel_ids: string[];
|
|
346
|
+
notes?: string | null;
|
|
347
|
+
created_at: number;
|
|
348
|
+
updated_at: number;
|
|
349
|
+
}
|
|
350
|
+
type SupportChannelConfig = {
|
|
351
|
+
type: "web";
|
|
352
|
+
widget_key: string;
|
|
353
|
+
allowed_origins?: string[];
|
|
354
|
+
} | {
|
|
355
|
+
type: "email";
|
|
356
|
+
mailbox_id: string;
|
|
357
|
+
};
|
|
358
|
+
interface SupportChannel {
|
|
359
|
+
id: string;
|
|
360
|
+
store_id: string;
|
|
361
|
+
key: string;
|
|
362
|
+
name: string;
|
|
363
|
+
status: SupportChannelStatus;
|
|
364
|
+
channel_type: SupportChannelType;
|
|
365
|
+
config: SupportChannelConfig;
|
|
366
|
+
created_at: number;
|
|
367
|
+
updated_at: number;
|
|
368
|
+
}
|
|
369
|
+
type SupportConversationChannelContext = {
|
|
370
|
+
type: "web";
|
|
371
|
+
visitor_id?: string | null;
|
|
372
|
+
session_id?: string | null;
|
|
373
|
+
} | {
|
|
374
|
+
type: "email";
|
|
375
|
+
thread_id: string;
|
|
376
|
+
reply_to: string;
|
|
377
|
+
message_id?: string | null;
|
|
378
|
+
references: string[];
|
|
379
|
+
};
|
|
380
|
+
interface SupportConversation {
|
|
381
|
+
id: string;
|
|
382
|
+
store_id: string;
|
|
383
|
+
agent_id?: string;
|
|
384
|
+
channel_id?: string | null;
|
|
385
|
+
channel_type: SupportChannelType;
|
|
386
|
+
channel_context: SupportConversationChannelContext;
|
|
387
|
+
current_node_id?: string;
|
|
388
|
+
contact_id?: string;
|
|
389
|
+
assigned_account_id?: string | null;
|
|
390
|
+
status: "active" | "ai_mode" | "escalated" | "resolved";
|
|
391
|
+
data: Record<string, unknown>;
|
|
392
|
+
metadata: Record<string, unknown>;
|
|
393
|
+
created_at: number;
|
|
394
|
+
updated_at: number;
|
|
395
|
+
}
|
|
396
|
+
interface SupportMessage {
|
|
397
|
+
id: string;
|
|
398
|
+
store_id: string;
|
|
399
|
+
conversation_id: string;
|
|
400
|
+
role: "system" | "user" | "assistant" | "staff" | "action";
|
|
401
|
+
content: string;
|
|
402
|
+
buttons?: string[];
|
|
403
|
+
metadata: Record<string, unknown>;
|
|
404
|
+
created_at: number;
|
|
405
|
+
}
|
|
406
|
+
interface SupportConversationResponse {
|
|
407
|
+
conversation: SupportConversation;
|
|
408
|
+
messages: SupportMessage[];
|
|
409
|
+
}
|
|
410
|
+
interface SupportConversationStartResponse extends SupportConversationResponse {
|
|
411
|
+
support_token: string;
|
|
412
|
+
}
|
|
413
|
+
interface StartSupportConversationParams {
|
|
414
|
+
store_id: string;
|
|
415
|
+
agent_key?: string;
|
|
416
|
+
channel_id?: string;
|
|
417
|
+
visitor_id?: string;
|
|
418
|
+
session_id?: string;
|
|
419
|
+
contact_id?: string;
|
|
420
|
+
metadata?: Record<string, unknown>;
|
|
421
|
+
}
|
|
422
|
+
interface SendSupportMessageParams {
|
|
423
|
+
message_id: string;
|
|
424
|
+
store_id: string;
|
|
425
|
+
conversation_id: string;
|
|
426
|
+
input: {
|
|
427
|
+
type: "button";
|
|
428
|
+
label: string;
|
|
429
|
+
} | {
|
|
430
|
+
type: "text";
|
|
431
|
+
content: string;
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
interface ReceiveSupportChannelMessageParams {
|
|
435
|
+
store_id: string;
|
|
436
|
+
channel_id: string;
|
|
437
|
+
channel_context: SupportConversationChannelContext;
|
|
438
|
+
external_message_id?: string;
|
|
439
|
+
content: string;
|
|
440
|
+
metadata?: Record<string, unknown>;
|
|
441
|
+
received_at?: number;
|
|
442
|
+
}
|
|
443
|
+
interface ReplySupportConversationParams {
|
|
444
|
+
message_id: string;
|
|
445
|
+
store_id: string;
|
|
446
|
+
conversation_id: string;
|
|
447
|
+
content: string;
|
|
448
|
+
resolve?: boolean;
|
|
449
|
+
}
|
|
450
|
+
interface ResolveSupportConversationParams {
|
|
451
|
+
store_id: string;
|
|
452
|
+
conversation_id: string;
|
|
453
|
+
}
|
|
454
|
+
interface AssignSupportConversationParams {
|
|
455
|
+
store_id: string;
|
|
456
|
+
conversation_id: string;
|
|
457
|
+
account_id?: string | null;
|
|
458
|
+
}
|
|
459
|
+
interface GetSupportConversationParams {
|
|
460
|
+
store_id: string;
|
|
461
|
+
conversation_id: string;
|
|
462
|
+
message_limit?: number;
|
|
463
|
+
after_created_at?: number;
|
|
464
|
+
after_id?: string;
|
|
465
|
+
}
|
|
466
|
+
type StorefrontSendSupportMessageParams = Omit<SendSupportMessageParams, "store_id"> & {
|
|
467
|
+
support_token: string;
|
|
468
|
+
};
|
|
469
|
+
type StorefrontGetSupportConversationParams = Omit<GetSupportConversationParams, "store_id"> & {
|
|
470
|
+
support_token: string;
|
|
471
|
+
};
|
|
472
|
+
interface FindSupportConversationsParams {
|
|
473
|
+
store_id: string;
|
|
474
|
+
status?: string;
|
|
475
|
+
agent_id?: string;
|
|
476
|
+
channel_id?: string;
|
|
477
|
+
channel_type?: SupportChannelType;
|
|
478
|
+
query?: string;
|
|
479
|
+
limit?: number;
|
|
480
|
+
cursor?: string;
|
|
481
|
+
}
|
|
482
|
+
interface CreateSupportAgentParams {
|
|
483
|
+
store_id: string;
|
|
484
|
+
key: string;
|
|
485
|
+
name: string;
|
|
486
|
+
status?: SupportAgentStatus;
|
|
487
|
+
entry_node_id: string;
|
|
488
|
+
nodes: Record<string, SupportAgentNode>;
|
|
489
|
+
edges: SupportAgentEdge[];
|
|
490
|
+
ai_config?: SupportAgentAiConfig;
|
|
491
|
+
channel_ids?: string[];
|
|
492
|
+
notes?: string | null;
|
|
493
|
+
}
|
|
494
|
+
interface UpdateSupportAgentParams {
|
|
495
|
+
store_id: string;
|
|
496
|
+
id: string;
|
|
497
|
+
name?: string;
|
|
498
|
+
status?: SupportAgentStatus;
|
|
499
|
+
entry_node_id?: string;
|
|
500
|
+
nodes?: Record<string, SupportAgentNode>;
|
|
501
|
+
edges?: SupportAgentEdge[];
|
|
502
|
+
ai_config?: SupportAgentAiConfig;
|
|
503
|
+
channel_ids?: string[];
|
|
504
|
+
notes?: string | null;
|
|
505
|
+
}
|
|
506
|
+
interface CreateSupportChannelParams {
|
|
507
|
+
store_id: string;
|
|
508
|
+
key: string;
|
|
509
|
+
name: string;
|
|
510
|
+
status?: SupportChannelStatus;
|
|
511
|
+
channel_type: SupportChannelType;
|
|
512
|
+
config: SupportChannelConfig;
|
|
513
|
+
}
|
|
514
|
+
interface UpdateSupportChannelParams {
|
|
515
|
+
store_id: string;
|
|
516
|
+
id: string;
|
|
517
|
+
key?: string;
|
|
518
|
+
name?: string;
|
|
519
|
+
status?: SupportChannelStatus;
|
|
520
|
+
channel_type?: SupportChannelType;
|
|
521
|
+
config?: SupportChannelConfig;
|
|
522
|
+
}
|
|
523
|
+
interface FindSupportChannelsParams {
|
|
524
|
+
store_id: string;
|
|
525
|
+
status?: SupportChannelStatus;
|
|
526
|
+
channel_type?: SupportChannelType;
|
|
527
|
+
limit?: number;
|
|
528
|
+
cursor?: string;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
interface TimelineParams {
|
|
532
|
+
contact_id: string;
|
|
533
|
+
store_id?: string;
|
|
534
|
+
limit?: number;
|
|
535
|
+
cursor?: string;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
interface WorkflowToolOperation {
|
|
539
|
+
name: string;
|
|
540
|
+
value: string;
|
|
541
|
+
description?: string;
|
|
542
|
+
method: 'get' | 'post' | 'put' | 'patch' | 'delete';
|
|
543
|
+
url: string;
|
|
544
|
+
body?: Record<string, unknown> | string;
|
|
545
|
+
headers?: Record<string, string>;
|
|
546
|
+
}
|
|
547
|
+
interface WorkflowToolResource {
|
|
548
|
+
name: string;
|
|
549
|
+
value: string;
|
|
550
|
+
description: string;
|
|
551
|
+
operations: WorkflowToolOperation[];
|
|
552
|
+
}
|
|
553
|
+
interface WorkflowTool {
|
|
554
|
+
id: string;
|
|
555
|
+
name: string;
|
|
556
|
+
description: string;
|
|
557
|
+
icon: string;
|
|
558
|
+
color: string;
|
|
559
|
+
category: 'ai' | 'communication' | 'email' | 'productivity' | 'database' | 'payments' | 'crm' | 'ecommerce' | 'developer' | 'storage' | 'analytics' | 'core';
|
|
560
|
+
configuration_required: boolean;
|
|
561
|
+
website?: string;
|
|
562
|
+
url_patterns: string[];
|
|
563
|
+
resources: WorkflowToolResource[];
|
|
564
|
+
triggers?: Array<{
|
|
565
|
+
name: string;
|
|
566
|
+
value: string;
|
|
567
|
+
description: string;
|
|
568
|
+
webhook_type: 'incoming' | 'polling';
|
|
569
|
+
}>;
|
|
570
|
+
}
|
|
571
|
+
interface EventScopeField {
|
|
572
|
+
field: string;
|
|
573
|
+
label: string;
|
|
574
|
+
placeholder: string;
|
|
575
|
+
}
|
|
576
|
+
interface EventMetadata {
|
|
577
|
+
event: string;
|
|
578
|
+
scopes: EventScopeField[];
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
interface LocationState {
|
|
582
|
+
code: string;
|
|
583
|
+
name: string;
|
|
584
|
+
}
|
|
585
|
+
interface LocationCountry {
|
|
586
|
+
code: string;
|
|
587
|
+
name: string;
|
|
588
|
+
states: LocationState[];
|
|
589
|
+
}
|
|
590
|
+
interface GetCountriesResponse {
|
|
591
|
+
items: LocationCountry[];
|
|
592
|
+
cursor: string | null;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
interface CartApi {
|
|
596
|
+
current(params?: GetCurrentCartParams, options?: RequestOptions): Promise<Cart>;
|
|
597
|
+
get(params: GetCartParams, options?: RequestOptions): Promise<Cart>;
|
|
598
|
+
update(params: UpdateCartParams, options?: RequestOptions): Promise<Cart>;
|
|
599
|
+
addItem(params: AddCartItemParams, options?: RequestOptions): Promise<Cart>;
|
|
600
|
+
removeItem(params: RemoveCartItemParams, options?: RequestOptions): Promise<Cart>;
|
|
601
|
+
clear(params: ClearCartParams, options?: RequestOptions): Promise<Cart>;
|
|
602
|
+
quote(params: QuoteCartParams, options?: RequestOptions): Promise<OrderQuote>;
|
|
603
|
+
checkout(params: CheckoutCartParams, options?: RequestOptions): Promise<OrderCheckoutResult>;
|
|
604
|
+
}
|
|
605
|
+
interface CartControllerState {
|
|
606
|
+
cart: Cart | null;
|
|
607
|
+
quote: OrderQuote | null;
|
|
608
|
+
checkoutResult: OrderCheckoutResult | null;
|
|
609
|
+
loading: boolean;
|
|
610
|
+
initialized: boolean;
|
|
611
|
+
error: unknown;
|
|
612
|
+
}
|
|
613
|
+
type CartControllerListener = (state: CartControllerState) => void;
|
|
614
|
+
type CartControllerInitParams = GetCurrentCartParams | GetCartParams;
|
|
615
|
+
type CartControllerRefreshParams = GetCurrentCartParams | GetCartParams;
|
|
616
|
+
type CartControllerUpdateParams = Omit<UpdateCartParams, "id"> & {
|
|
617
|
+
id?: string;
|
|
618
|
+
};
|
|
619
|
+
type CartControllerAddItemParams = Omit<AddCartItemParams, "id"> & {
|
|
620
|
+
id?: string;
|
|
621
|
+
};
|
|
622
|
+
type CartControllerRemoveItemParams = RemoveCartItemParams extends infer Params ? Params extends {
|
|
623
|
+
id: string;
|
|
624
|
+
} ? Omit<Params, "id"> & {
|
|
625
|
+
id?: string;
|
|
626
|
+
} : never : never;
|
|
627
|
+
type CartControllerClearParams = Omit<ClearCartParams, "id"> & {
|
|
628
|
+
id?: string;
|
|
629
|
+
};
|
|
630
|
+
type CartControllerQuoteParams = Omit<QuoteCartParams, "id"> & {
|
|
631
|
+
id?: string;
|
|
632
|
+
};
|
|
633
|
+
type CartControllerCheckoutParams = Omit<CheckoutCartParams, "id"> & {
|
|
634
|
+
id?: string;
|
|
635
|
+
};
|
|
636
|
+
interface CartController {
|
|
637
|
+
subscribe(listener: CartControllerListener): () => void;
|
|
638
|
+
getState(): CartControllerState;
|
|
639
|
+
init(params?: CartControllerInitParams, options?: RequestOptions): Promise<Cart>;
|
|
640
|
+
refresh(params?: CartControllerRefreshParams, options?: RequestOptions): Promise<Cart>;
|
|
641
|
+
addItem(params: CartControllerAddItemParams, options?: RequestOptions): Promise<Cart>;
|
|
642
|
+
update(params: CartControllerUpdateParams, options?: RequestOptions): Promise<Cart>;
|
|
643
|
+
removeItem(params: CartControllerRemoveItemParams, options?: RequestOptions): Promise<Cart>;
|
|
644
|
+
clear(params?: CartControllerClearParams, options?: RequestOptions): Promise<Cart>;
|
|
645
|
+
quote(params?: CartControllerQuoteParams, options?: RequestOptions): Promise<OrderQuote>;
|
|
646
|
+
checkout(params?: CartControllerCheckoutParams, options?: RequestOptions): Promise<OrderCheckoutResult>;
|
|
647
|
+
}
|
|
648
|
+
declare function createCartController(cartApi: CartApi): CartController;
|
|
649
|
+
|
|
650
|
+
type BlockContainer = {
|
|
651
|
+
blocks?: readonly Block[] | null;
|
|
652
|
+
};
|
|
653
|
+
type UnknownRecord = Record<string, unknown>;
|
|
654
|
+
declare function getBlockLabel(block: Pick<Block, "key"> | null | undefined): string;
|
|
655
|
+
declare function formatBlockValue(block: Block | null | undefined): string;
|
|
656
|
+
declare function prepareBlocksForSubmission(formData: Readonly<Record<string, unknown>>, blockTypes?: Readonly<Record<string, string>>): Array<{
|
|
657
|
+
key: string;
|
|
658
|
+
value: unknown;
|
|
659
|
+
}>;
|
|
660
|
+
declare function extractBlockValues(blocks: readonly Block[]): Record<string, unknown>;
|
|
661
|
+
declare function getBlockValue<T = unknown>(entry: BlockContainer | null | undefined, key: string): T | null;
|
|
662
|
+
declare function getBlockTextValue(block: Block | null | undefined, locale?: string): string;
|
|
663
|
+
declare function getBlockContentValue(entry: BlockContainer | null | undefined, key: string, locale?: string): unknown;
|
|
664
|
+
declare function getBlockValues<T = unknown>(entry: BlockContainer | null | undefined, key: string): T[];
|
|
665
|
+
declare function getBlockObjectValues(entry: BlockContainer | null | undefined, key: string, locale?: string): UnknownRecord[];
|
|
666
|
+
declare function getBlockFromArray(entry: BlockContainer | null | undefined, key: string, locale?: string): UnknownRecord;
|
|
667
|
+
|
|
668
|
+
interface ValidationResult {
|
|
669
|
+
isValid: boolean;
|
|
670
|
+
error?: string;
|
|
671
|
+
}
|
|
672
|
+
declare function validatePhoneNumber(phone: string): ValidationResult;
|
|
673
|
+
|
|
674
|
+
declare const tzGroups: {
|
|
675
|
+
label: string;
|
|
676
|
+
zones: {
|
|
677
|
+
label: string;
|
|
678
|
+
value: string;
|
|
679
|
+
}[];
|
|
680
|
+
}[];
|
|
681
|
+
declare function findTimeZone(groups: typeof tzGroups): string;
|
|
682
|
+
|
|
683
|
+
declare const locales: readonly ["en", "sr-latn"];
|
|
684
|
+
declare function slugify(text: string): string;
|
|
685
|
+
declare function humanize(text: string): string;
|
|
686
|
+
declare function categorify(text: string): string;
|
|
687
|
+
declare function formatDate(date: string | number | Date, locale: (typeof locales)[number]): string;
|
|
688
|
+
|
|
689
|
+
declare function fetchSvgContent(mediaObject: unknown): Promise<string | null>;
|
|
690
|
+
declare function getSvgContentForAstro(mediaObject: unknown): Promise<string>;
|
|
691
|
+
declare function injectSvgIntoElement(mediaObject: unknown, targetElement: HTMLElement, className?: string): Promise<void>;
|
|
692
|
+
|
|
693
|
+
declare const SDK_VERSION = "0.9.16";
|
|
694
|
+
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
695
|
+
|
|
696
|
+
interface ApiConfig {
|
|
697
|
+
httpClient: HttpClient;
|
|
698
|
+
storeId: string;
|
|
699
|
+
baseUrl: string;
|
|
700
|
+
market: string;
|
|
701
|
+
locale: string;
|
|
702
|
+
authStorage: AuthStorage;
|
|
703
|
+
}
|
|
704
|
+
interface AdminSessionInternal {
|
|
705
|
+
access_token: string;
|
|
706
|
+
refresh_token: string;
|
|
707
|
+
access_expires_at?: number;
|
|
708
|
+
email?: string;
|
|
709
|
+
}
|
|
710
|
+
interface ContactSessionInternal {
|
|
711
|
+
access_token: string;
|
|
712
|
+
contact: Contact;
|
|
713
|
+
store: Store;
|
|
714
|
+
market: Market | null;
|
|
715
|
+
}
|
|
716
|
+
interface AdminSession {
|
|
717
|
+
email?: string;
|
|
718
|
+
}
|
|
719
|
+
interface ContactSession {
|
|
720
|
+
contact: Contact;
|
|
721
|
+
store: Store;
|
|
722
|
+
market: Market | null;
|
|
723
|
+
}
|
|
724
|
+
interface StorefrontIdentifyResult extends ContactSession {
|
|
725
|
+
verification_challenge: VerificationChallengeResponse | null;
|
|
726
|
+
}
|
|
727
|
+
type AdminSessionUpdater = (updater: (prev: AdminSessionInternal | null) => AdminSessionInternal | null) => void;
|
|
728
|
+
type ContactSessionUpdater = (updater: (prev: ContactSessionInternal | null) => ContactSessionInternal | null) => void;
|
|
729
|
+
type AuthStateListener<T> = (session: T | null) => void;
|
|
730
|
+
|
|
731
|
+
type CreateAdminConfig = Omit<HttpClientConfig, "authStorage" | "storeId"> & {
|
|
732
|
+
storeId: string;
|
|
733
|
+
market: string;
|
|
734
|
+
locale?: string;
|
|
735
|
+
apiToken?: string;
|
|
736
|
+
};
|
|
737
|
+
declare function createAdmin(config: CreateAdminConfig): {
|
|
738
|
+
account: {
|
|
739
|
+
update: (_params: UpdateAccountContactParams, options?: RequestOptions) => Promise<AccountUpdateResponse>;
|
|
740
|
+
delete: (_params: DeleteAccountParams, options?: RequestOptions) => Promise<{
|
|
741
|
+
success: boolean;
|
|
742
|
+
message: string;
|
|
743
|
+
}>;
|
|
744
|
+
getMe: (_params: GetMeParams, options?: RequestOptions) => Promise<Account>;
|
|
745
|
+
search: (params: SearchAccountsParams, options?: RequestOptions) => Promise<PaginatedResponse<Account>>;
|
|
746
|
+
apiToken: {
|
|
747
|
+
list: (options?: RequestOptions) => Promise<PaginatedResponse<AccountApiToken>>;
|
|
748
|
+
create: (params: CreateAccountApiTokenParams, options?: RequestOptions) => Promise<AccountApiTokenCreated>;
|
|
749
|
+
update: (params: UpdateAccountApiTokenParams, options?: RequestOptions) => Promise<AccountApiToken>;
|
|
750
|
+
revoke: (id: string, options?: RequestOptions) => Promise<boolean>;
|
|
751
|
+
};
|
|
752
|
+
session: {
|
|
753
|
+
list: (options?: RequestOptions) => Promise<PaginatedResponse<AccountSession>>;
|
|
754
|
+
revoke: (id: string, options?: RequestOptions) => Promise<boolean>;
|
|
755
|
+
};
|
|
756
|
+
auth: {
|
|
757
|
+
code(params: {
|
|
758
|
+
email: string;
|
|
759
|
+
}, options?: RequestOptions): Promise<VerificationChallengeResponse>;
|
|
760
|
+
verify(params: AuthCodeVerifyParams, options?: RequestOptions): Promise<AuthToken>;
|
|
761
|
+
refresh(params: {
|
|
762
|
+
refresh_token: string;
|
|
763
|
+
}, options?: RequestOptions): Promise<AuthToken>;
|
|
764
|
+
storeCode(storeId: string, params: {
|
|
765
|
+
email: string;
|
|
766
|
+
}, options?: RequestOptions): Promise<VerificationChallengeResponse>;
|
|
767
|
+
storeVerify(storeId: string, params: AuthCodeVerifyParams, options?: RequestOptions): Promise<AuthToken>;
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
store: {
|
|
771
|
+
create: (params: CreateStoreParams, options?: RequestOptions) => Promise<Store>;
|
|
772
|
+
update: (params: UpdateStoreParams, options?: RequestOptions) => Promise<Store>;
|
|
773
|
+
get: (_params: GetStoreParams, options?: RequestOptions) => Promise<Store>;
|
|
774
|
+
find: (params?: GetStoresParams, options?: RequestOptions) => Promise<PaginatedResponse<Store>>;
|
|
775
|
+
subscription: {
|
|
776
|
+
get: (params?: GetStoreSubscriptionParams, options?: RequestOptions) => Promise<StoreSubscription>;
|
|
777
|
+
getPlans: (_params: GetSubscriptionPlansParams, options?: RequestOptions) => Promise<PaginatedResponse<SubscriptionPlan>>;
|
|
778
|
+
action: {
|
|
779
|
+
create: (params: CreateStoreSubscriptionActionParams, options?: RequestOptions) => Promise<StoreSubscriptionAction>;
|
|
780
|
+
find: (params?: FindStoreSubscriptionActionsParams, options?: RequestOptions) => Promise<PaginatedResponse<StoreSubscriptionAction>>;
|
|
781
|
+
get: (params: GetStoreSubscriptionActionParams, options?: RequestOptions) => Promise<StoreSubscriptionAction>;
|
|
782
|
+
retry: (params: RetryStoreSubscriptionActionParams, options?: RequestOptions) => Promise<StoreSubscriptionAction>;
|
|
783
|
+
effect: {
|
|
784
|
+
find: (params: FindStoreSubscriptionActionEffectsParams, options?: RequestOptions) => Promise<PaginatedResponse<StoreSubscriptionEffect>>;
|
|
785
|
+
get: (params: GetStoreSubscriptionActionEffectParams, options?: RequestOptions) => Promise<StoreSubscriptionEffect>;
|
|
786
|
+
};
|
|
787
|
+
};
|
|
788
|
+
createPortalSession: (params: CreatePortalSessionParams, options?: RequestOptions) => Promise<{
|
|
789
|
+
portal_url: string;
|
|
790
|
+
}>;
|
|
791
|
+
};
|
|
792
|
+
member: {
|
|
793
|
+
add: (params: AddMemberParams, options?: RequestOptions) => Promise<boolean>;
|
|
794
|
+
invite: (params: AddMemberParams, options?: RequestOptions) => Promise<boolean>;
|
|
795
|
+
find: (params?: FindStoreMembersParams, options?: RequestOptions) => Promise<PaginatedResponse<StoreMember>>;
|
|
796
|
+
findOwn: (options?: RequestOptions) => Promise<PaginatedResponse<StoreMembership>>;
|
|
797
|
+
remove: (params: RemoveMemberParams, options?: RequestOptions) => Promise<boolean>;
|
|
798
|
+
};
|
|
799
|
+
buildHook: {
|
|
800
|
+
list: (params: ListBuildHooksParams, options?: RequestOptions) => Promise<BuildHook[]>;
|
|
801
|
+
create: (params: CreateBuildHookParams, options?: RequestOptions) => Promise<BuildHook>;
|
|
802
|
+
update: (params: UpdateBuildHookParams, options?: RequestOptions) => Promise<BuildHook>;
|
|
803
|
+
delete: (params: DeleteBuildHookParams, options?: RequestOptions) => Promise<{
|
|
804
|
+
deleted: boolean;
|
|
805
|
+
}>;
|
|
806
|
+
};
|
|
807
|
+
webhook: {
|
|
808
|
+
test: (params: TestWebhookParams, options?: RequestOptions) => Promise<TestWebhookResponse>;
|
|
809
|
+
list: (params: ListWebhooksParams, options?: RequestOptions) => Promise<Webhook[]>;
|
|
810
|
+
create: (params: CreateWebhookParams, options?: RequestOptions) => Promise<Webhook>;
|
|
811
|
+
update: (params: UpdateWebhookParams, options?: RequestOptions) => Promise<Webhook>;
|
|
812
|
+
delete: (params: DeleteWebhookParams, options?: RequestOptions) => Promise<{
|
|
813
|
+
deleted: boolean;
|
|
814
|
+
}>;
|
|
815
|
+
};
|
|
816
|
+
config: {
|
|
817
|
+
getPayment: (params: {
|
|
818
|
+
store_id: string;
|
|
819
|
+
}, options?: RequestOptions) => Promise<PaymentStoreConfig | null>;
|
|
820
|
+
};
|
|
821
|
+
location: {
|
|
822
|
+
getCountries(options?: RequestOptions): Promise<GetCountriesResponse>;
|
|
823
|
+
getCountry(countryCode: string, options?: RequestOptions): Promise<LocationCountry>;
|
|
824
|
+
list(options?: RequestOptions): Promise<Location[]>;
|
|
825
|
+
get(id: string, options?: RequestOptions): Promise<Location>;
|
|
826
|
+
create(params: CreateLocationParams, options?: RequestOptions): Promise<Location>;
|
|
827
|
+
update(params: UpdateLocationParams, options?: RequestOptions): Promise<Location>;
|
|
828
|
+
delete(params: DeleteLocationParams, options?: RequestOptions): Promise<{
|
|
829
|
+
deleted: boolean;
|
|
830
|
+
}>;
|
|
831
|
+
};
|
|
832
|
+
market: {
|
|
833
|
+
list(options?: RequestOptions): Promise<Market[]>;
|
|
834
|
+
get(id: string, options?: RequestOptions): Promise<Market>;
|
|
835
|
+
create(params: CreateMarketParams, options?: RequestOptions): Promise<Market>;
|
|
836
|
+
update(params: UpdateMarketParams, options?: RequestOptions): Promise<Market>;
|
|
837
|
+
delete(params: DeleteMarketParams, options?: RequestOptions): Promise<{
|
|
838
|
+
deleted: boolean;
|
|
839
|
+
}>;
|
|
840
|
+
};
|
|
841
|
+
paymentProvider: {
|
|
842
|
+
list: (params?: ListPaymentProvidersParams, options?: RequestOptions) => Promise<PaymentProvider[]>;
|
|
843
|
+
refresh: (params?: RefreshPaymentProvidersParams, options?: RequestOptions) => Promise<PaymentProvider[]>;
|
|
844
|
+
connectStripe: (params: ConnectStripePaymentProviderParams, options?: RequestOptions) => Promise<StripePaymentProviderConnectResponse>;
|
|
845
|
+
delete: (params: DeletePaymentProviderParams, options?: RequestOptions) => Promise<{
|
|
846
|
+
deleted: boolean;
|
|
847
|
+
}>;
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
media: {
|
|
851
|
+
getMedia(params: GetMediaParams, options?: RequestOptions): Promise<Media>;
|
|
852
|
+
uploadStoreMedia(params: UploadStoreMediaParams, options?: RequestOptions): Promise<Media[]>;
|
|
853
|
+
deleteStoreMedia(params: DeleteStoreMediaParams, options?: RequestOptions): Promise<boolean>;
|
|
854
|
+
getStoreMedia(params: GetStoreMediaParams, options?: RequestOptions): Promise<PaginatedResponse<Media>>;
|
|
855
|
+
updateMedia(params: UpdateMediaParams, options?: RequestOptions): Promise<Media>;
|
|
856
|
+
};
|
|
857
|
+
notification: {
|
|
858
|
+
email: {
|
|
859
|
+
send: (request: EmailSendRequest, options?: RequestOptions) => Promise<EmailSendResult>;
|
|
860
|
+
getDelivery: (params: GetEmailDeliveryParams, options?: RequestOptions) => Promise<EmailDelivery>;
|
|
861
|
+
retryDelivery: (params: RetryEmailDeliveryParams, options?: RequestOptions) => Promise<EmailDelivery>;
|
|
862
|
+
};
|
|
863
|
+
mailbox: {
|
|
864
|
+
connectGoogle(params: ConnectGoogleMailboxParams, options?: RequestOptions): Promise<GoogleMailboxConnectUrl>;
|
|
865
|
+
create(params: CreateMailboxParams, options?: RequestOptions): Promise<Mailbox>;
|
|
866
|
+
update(params: UpdateMailboxParams, options?: RequestOptions): Promise<Mailbox>;
|
|
867
|
+
get(params: GetMailboxParams, options?: RequestOptions): Promise<Mailbox>;
|
|
868
|
+
test(params: TestMailboxParams, options?: RequestOptions): Promise<TestMailboxResult>;
|
|
869
|
+
prepare(params: PrepareMailboxParams, options?: RequestOptions): Promise<Mailbox>;
|
|
870
|
+
find(params?: FindMailboxesParams, options?: RequestOptions): Promise<PaginatedResponse<Mailbox>>;
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
platform: {
|
|
874
|
+
getCurrencies(options?: RequestOptions): Promise<string[]>;
|
|
875
|
+
getWorkflowTools(options?: RequestOptions): Promise<WorkflowTool[]>;
|
|
876
|
+
getWebhookEvents(options?: RequestOptions): Promise<EventMetadata[]>;
|
|
877
|
+
data: {
|
|
878
|
+
scan(params: {
|
|
879
|
+
key: string;
|
|
880
|
+
limit?: number;
|
|
881
|
+
}, options?: RequestOptions): Promise<{
|
|
882
|
+
value: Array<{
|
|
883
|
+
key: string;
|
|
884
|
+
value: unknown;
|
|
885
|
+
}>;
|
|
886
|
+
}>;
|
|
887
|
+
put(params: {
|
|
888
|
+
key: string;
|
|
889
|
+
value: unknown;
|
|
890
|
+
previous_key?: string;
|
|
891
|
+
}, options?: RequestOptions): Promise<{
|
|
892
|
+
ok: boolean;
|
|
893
|
+
}>;
|
|
894
|
+
delete(params: {
|
|
895
|
+
key: string;
|
|
896
|
+
}, options?: RequestOptions): Promise<{
|
|
897
|
+
ok: boolean;
|
|
898
|
+
}>;
|
|
899
|
+
};
|
|
900
|
+
runScript(params: {
|
|
901
|
+
name: string;
|
|
902
|
+
value?: string;
|
|
903
|
+
username?: string;
|
|
904
|
+
password?: string;
|
|
905
|
+
}, options?: RequestOptions): Promise<{
|
|
906
|
+
success: boolean;
|
|
907
|
+
message: string;
|
|
908
|
+
}>;
|
|
909
|
+
};
|
|
910
|
+
social: {
|
|
911
|
+
connection: {
|
|
912
|
+
getCapabilities: (params?: GetSocialCapabilitiesParams, options?: RequestOptions) => Promise<SocialProviderCapability[]>;
|
|
913
|
+
list: (params?: ListSocialConnectionsParams, options?: RequestOptions) => Promise<SocialConnection[]>;
|
|
914
|
+
connect: (params: ConnectSocialConnectionParams, options?: RequestOptions) => Promise<SocialConnectResponse>;
|
|
915
|
+
getOAuthAttempt: (params: GetSocialOAuthAttemptParams, options?: RequestOptions) => Promise<SocialOAuthCallbackResponse>;
|
|
916
|
+
selectDestination: (params: SelectSocialDestinationParams, options?: RequestOptions) => Promise<SocialOAuthCallbackResponse>;
|
|
917
|
+
delete: (params: DeleteSocialConnectionParams, options?: RequestOptions) => Promise<{
|
|
918
|
+
deleted: boolean;
|
|
919
|
+
}>;
|
|
920
|
+
};
|
|
921
|
+
publication: {
|
|
922
|
+
create: (params: CreateSocialPublicationParams, options?: RequestOptions) => Promise<SocialPublicationMutationResponse>;
|
|
923
|
+
update: (params: UpdateSocialPublicationParams, options?: RequestOptions) => Promise<SocialPublicationMutationResponse>;
|
|
924
|
+
get: (params: GetSocialPublicationParams, options?: RequestOptions) => Promise<SocialPublication>;
|
|
925
|
+
find: (params?: FindSocialPublicationsParams, options?: RequestOptions) => Promise<PaginatedResponse<SocialPublication>>;
|
|
926
|
+
validate: (params: ValidateSocialPublicationParams, options?: RequestOptions) => Promise<SocialPublicationValidation>;
|
|
927
|
+
schedule: (params: ScheduleSocialPublicationParams, options?: RequestOptions) => Promise<SocialPublicationMutationResponse>;
|
|
928
|
+
cancel: (params: CancelSocialPublicationParams, options?: RequestOptions) => Promise<SocialPublication>;
|
|
929
|
+
getComments: (params: GetSocialPublicationCommentsParams, options?: RequestOptions) => Promise<PaginatedResponse<SocialPublicationComment>>;
|
|
930
|
+
syncComments: (params: SyncSocialPublicationCommentsParams, options?: RequestOptions) => Promise<PaginatedResponse<SocialPublicationComment>>;
|
|
931
|
+
getCommentThread: (params: GetSocialPublicationCommentThreadParams, options?: RequestOptions) => Promise<PaginatedResponse<SocialPublicationComment>>;
|
|
932
|
+
syncCommentThread: (params: SyncSocialPublicationCommentThreadParams, options?: RequestOptions) => Promise<PaginatedResponse<SocialPublicationComment>>;
|
|
933
|
+
findComments: (params?: FindSocialPublicationCommentsParams, options?: RequestOptions) => Promise<PaginatedResponse<SocialPublicationComment>>;
|
|
934
|
+
classifyComments: (params?: ClassifySocialPublicationCommentsParams, options?: RequestOptions) => Promise<SocialPublicationCommentClassificationResult>;
|
|
935
|
+
commentReply: {
|
|
936
|
+
create: (params: CreateSocialCommentReplyParams, options?: RequestOptions) => Promise<SocialPublicationCommentReplyResponse>;
|
|
937
|
+
list: (params: ListSocialCommentRepliesParams, options?: RequestOptions) => Promise<PaginatedResponse<SocialCommentReply>>;
|
|
938
|
+
get: (params: GetSocialCommentReplyParams, options?: RequestOptions) => Promise<SocialCommentReply>;
|
|
939
|
+
retry: (params: RetrySocialCommentReplyParams, options?: RequestOptions) => Promise<SocialCommentReply>;
|
|
940
|
+
};
|
|
941
|
+
effect: {
|
|
942
|
+
list: (params: ListSocialPublicationEffectsParams, options?: RequestOptions) => Promise<PaginatedResponse<SocialPublicationEffect>>;
|
|
943
|
+
get: (params: GetSocialPublicationEffectParams, options?: RequestOptions) => Promise<SocialPublicationEffect>;
|
|
944
|
+
};
|
|
945
|
+
getMetrics: (params: GetSocialPublicationMetricsParams, options?: RequestOptions) => Promise<SocialPublicationMetricSnapshot>;
|
|
946
|
+
syncMetrics: (params: SyncSocialPublicationMetricsParams, options?: RequestOptions) => Promise<SocialPublicationMetricSnapshot>;
|
|
947
|
+
syncEngagement: (params?: SyncSocialEngagementParams, options?: RequestOptions) => Promise<SocialPublicationEngagementSyncResult>;
|
|
948
|
+
};
|
|
949
|
+
};
|
|
950
|
+
cms: {
|
|
951
|
+
collection: {
|
|
952
|
+
create: (params: CreateCollectionParams, options?: RequestOptions) => Promise<Collection>;
|
|
953
|
+
update: (params: UpdateCollectionParams, options?: RequestOptions) => Promise<Collection>;
|
|
954
|
+
delete: (params: DeleteCollectionParams, options?: RequestOptions) => Promise<boolean>;
|
|
955
|
+
get: (params: GetCollectionParams, options?: RequestOptions) => Promise<Collection>;
|
|
956
|
+
find: (params?: GetCollectionsParams, options?: RequestOptions) => Promise<PaginatedResponse<Collection>>;
|
|
957
|
+
};
|
|
958
|
+
entry: {
|
|
959
|
+
create: (params: CreateEntryParams, options?: RequestOptions) => Promise<CollectionEntry>;
|
|
960
|
+
update: (params: UpdateEntryParams, options?: RequestOptions) => Promise<CollectionEntry>;
|
|
961
|
+
delete: (params: DeleteEntryParams, options?: RequestOptions) => Promise<boolean>;
|
|
962
|
+
get: (params: GetEntryParams, options?: RequestOptions) => Promise<CollectionEntry>;
|
|
963
|
+
find: (params: GetEntriesParams, options?: RequestOptions) => Promise<PaginatedResponse<CollectionEntry>>;
|
|
964
|
+
};
|
|
965
|
+
form: {
|
|
966
|
+
create: (params: CreateFormParams, options?: RequestOptions) => Promise<Form>;
|
|
967
|
+
update: (params: UpdateFormParams, options?: RequestOptions) => Promise<Form>;
|
|
968
|
+
delete: (params: DeleteFormParams, options?: RequestOptions) => Promise<{
|
|
969
|
+
deleted: boolean;
|
|
970
|
+
}>;
|
|
971
|
+
get: (params: GetFormParams, options?: RequestOptions) => Promise<Form>;
|
|
972
|
+
find: (params: GetFormsParams, options?: RequestOptions) => Promise<PaginatedResponse<Form>>;
|
|
973
|
+
submit: (params: SubmitFormParams, options?: RequestOptions) => Promise<FormSubmission>;
|
|
974
|
+
getSubmissions: (params: GetFormSubmissionsParams, options?: RequestOptions) => Promise<PaginatedResponse<FormSubmission>>;
|
|
975
|
+
getSubmission: (params: GetFormSubmissionParams, options?: RequestOptions) => Promise<FormSubmission>;
|
|
976
|
+
updateSubmission: (params: UpdateFormSubmissionParams, options?: RequestOptions) => Promise<FormSubmission>;
|
|
977
|
+
};
|
|
978
|
+
taxonomy: {
|
|
979
|
+
create: (params: CreateTaxonomyParams, options?: RequestOptions) => Promise<Taxonomy>;
|
|
980
|
+
update: (params: UpdateTaxonomyParams, options?: RequestOptions) => Promise<Taxonomy>;
|
|
981
|
+
delete: (params: DeleteTaxonomyParams, options?: RequestOptions) => Promise<{
|
|
982
|
+
deleted: boolean;
|
|
983
|
+
}>;
|
|
984
|
+
get: (params: GetTaxonomyParams, options?: RequestOptions) => Promise<Taxonomy>;
|
|
985
|
+
find: (params: GetTaxonomiesParams, options?: RequestOptions) => Promise<PaginatedResponse<Taxonomy>>;
|
|
986
|
+
getChildren: (params: GetTaxonomyChildrenParams, options?: RequestOptions) => Promise<PaginatedResponse<Taxonomy>>;
|
|
987
|
+
};
|
|
988
|
+
emailTemplate: {
|
|
989
|
+
create: (params: CreateEmailTemplateParams, options?: RequestOptions) => Promise<EmailTemplate>;
|
|
990
|
+
update: (params: UpdateEmailTemplateParams, options?: RequestOptions) => Promise<EmailTemplate>;
|
|
991
|
+
delete: (params: DeleteEmailTemplateParams, options?: RequestOptions) => Promise<{
|
|
992
|
+
deleted: boolean;
|
|
993
|
+
}>;
|
|
994
|
+
get: (params: GetEmailTemplateParams, options?: RequestOptions) => Promise<EmailTemplate>;
|
|
995
|
+
find: (params: GetEmailTemplatesParams, options?: RequestOptions) => Promise<PaginatedResponse<EmailTemplate>>;
|
|
996
|
+
preview: (params: PreviewEmailTemplateParams, options?: RequestOptions) => Promise<PreviewEmailTemplateResponse>;
|
|
997
|
+
};
|
|
998
|
+
};
|
|
999
|
+
eshop: {
|
|
1000
|
+
product: {
|
|
1001
|
+
create: (params: CreateProductParams, options?: RequestOptions) => Promise<Product>;
|
|
1002
|
+
update: (params: UpdateProductParams, options?: RequestOptions) => Promise<Product>;
|
|
1003
|
+
delete: (params: DeleteProductParams, options?: RequestOptions) => Promise<{
|
|
1004
|
+
deleted: boolean;
|
|
1005
|
+
}>;
|
|
1006
|
+
get: (params: GetProductParams, options?: RequestOptions) => Promise<Product>;
|
|
1007
|
+
find: (params: GetProductsParams, options?: RequestOptions) => Promise<PaginatedResponse<Product>>;
|
|
1008
|
+
};
|
|
1009
|
+
order: {
|
|
1010
|
+
update: (params: UpdateOrderParams, options?: RequestOptions) => Promise<Order>;
|
|
1011
|
+
get: (params: GetOrderParams, options?: RequestOptions) => Promise<Order>;
|
|
1012
|
+
find: (params: GetOrdersParams, options?: RequestOptions) => Promise<PaginatedResponse<Order>>;
|
|
1013
|
+
getQuote: (params: GetQuoteParams, options?: RequestOptions) => Promise<OrderQuote>;
|
|
1014
|
+
createRefund: (params: CreateOrderRefundParams, options?: RequestOptions) => Promise<CreateOrderRefundResponse>;
|
|
1015
|
+
getRefund: (params: GetOrderRefundParams, options?: RequestOptions) => Promise<OrderRefund>;
|
|
1016
|
+
getRefunds: (params: FindOrderRefundsParams, options?: RequestOptions) => Promise<PaginatedResponse<OrderRefund>>;
|
|
1017
|
+
retryRefund: (params: RetryOrderRefundParams, options?: RequestOptions) => Promise<OrderRefund>;
|
|
1018
|
+
getPayment: (params: GetOrderPaymentParams, options?: RequestOptions) => Promise<OrderPayment>;
|
|
1019
|
+
retryPaymentTransaction: (params: RetryPaymentTransactionParams, options?: RequestOptions) => Promise<PaymentTransaction>;
|
|
1020
|
+
getPaymentTransactions: (params: FindPaymentTransactionsParams, options?: RequestOptions) => Promise<PaginatedResponse<PaymentTransaction>>;
|
|
1021
|
+
getPaymentTransaction: (params: GetPaymentTransactionParams, options?: RequestOptions) => Promise<PaymentTransaction>;
|
|
1022
|
+
findDigitalAccess: (params: FindDigitalAccessGrantsParams, options?: RequestOptions) => Promise<PaginatedResponse<DigitalAccessGrant>>;
|
|
1023
|
+
getDigitalAccess: (params: GetDigitalAccessGrantParams, options?: RequestOptions) => Promise<DigitalAccessGrant>;
|
|
1024
|
+
downloadDigitalAccess: (params: DownloadDigitalAccessParams, options?: RequestOptions) => Promise<DigitalAccessDownloadResponse>;
|
|
1025
|
+
activateDigitalAccess: (params: ActivateDigitalAccessGrantParams, options?: RequestOptions) => Promise<DigitalAccessGrant>;
|
|
1026
|
+
revokeDigitalAccess: (params: RevokeDigitalAccessGrantParams, options?: RequestOptions) => Promise<DigitalAccessGrant>;
|
|
1027
|
+
};
|
|
1028
|
+
shipment: {
|
|
1029
|
+
getRates: (params: GetShippingRatesParams, options?: RequestOptions) => Promise<ShippingRate[]>;
|
|
1030
|
+
create: (params: CreateShipmentParams, options?: RequestOptions) => Promise<CreateShipmentResponse>;
|
|
1031
|
+
get: (params: GetShipmentParams, options?: RequestOptions) => Promise<Shipment>;
|
|
1032
|
+
find: (params: FindShipmentsParams, options?: RequestOptions) => Promise<PaginatedResponse<Shipment>>;
|
|
1033
|
+
retry: (params: RetryShipmentParams, options?: RequestOptions) => Promise<Shipment>;
|
|
1034
|
+
fulfillment: {
|
|
1035
|
+
find: (params: FindFulfillmentOrdersParams, options?: RequestOptions) => Promise<PaginatedResponse<FulfillmentOrder>>;
|
|
1036
|
+
get: (params: GetFulfillmentOrderParams, options?: RequestOptions) => Promise<FulfillmentOrder>;
|
|
1037
|
+
};
|
|
1038
|
+
refund: {
|
|
1039
|
+
request: (params: RequestShippingLabelRefundParams, options?: RequestOptions) => Promise<ShippingLabelRefund>;
|
|
1040
|
+
get: (params: GetShippingLabelRefundParams, options?: RequestOptions) => Promise<ShippingLabelRefund>;
|
|
1041
|
+
find: (params: FindShippingLabelRefundsParams, options?: RequestOptions) => Promise<PaginatedResponse<ShippingLabelRefund>>;
|
|
1042
|
+
retry: (params: RetryShippingLabelRefundParams, options?: RequestOptions) => Promise<ShippingLabelRefund>;
|
|
1043
|
+
};
|
|
1044
|
+
adjustment: {
|
|
1045
|
+
find: (params: FindShippingLabelAdjustmentsParams, options?: RequestOptions) => Promise<PaginatedResponse<ShippingLabelAdjustment>>;
|
|
1046
|
+
};
|
|
1047
|
+
settlement: {
|
|
1048
|
+
find: (params: FindShippingLabelSettlementsParams, options?: RequestOptions) => Promise<PaginatedResponse<ShippingLabelSettlement>>;
|
|
1049
|
+
retry: (params: RetryShippingLabelSettlementParams, options?: RequestOptions) => Promise<ShippingLabelSettlement>;
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
cart: {
|
|
1053
|
+
create: (params: CreateCartParams, options?: RequestOptions) => Promise<Cart>;
|
|
1054
|
+
update: (params: UpdateCartParams, options?: RequestOptions) => Promise<Cart>;
|
|
1055
|
+
get: (params: GetCartParams, options?: RequestOptions) => Promise<Cart>;
|
|
1056
|
+
find: (params?: FindCartsParams, options?: RequestOptions) => Promise<PaginatedResponse<Cart>>;
|
|
1057
|
+
addItem: (params: AddCartItemParams, options?: RequestOptions) => Promise<Cart>;
|
|
1058
|
+
removeItem: (params: RemoveCartItemParams, options?: RequestOptions) => Promise<Cart>;
|
|
1059
|
+
clear: (params: ClearCartParams, options?: RequestOptions) => Promise<Cart>;
|
|
1060
|
+
quote: (params: QuoteCartParams, options?: RequestOptions) => Promise<OrderQuote>;
|
|
1061
|
+
checkout: (params: CheckoutCartParams, options?: RequestOptions) => Promise<OrderCheckoutResult>;
|
|
1062
|
+
};
|
|
1063
|
+
service: {
|
|
1064
|
+
create: (params: CreateServiceParams, options?: RequestOptions) => Promise<Service>;
|
|
1065
|
+
update: (params: UpdateServiceParams, options?: RequestOptions) => Promise<Service>;
|
|
1066
|
+
delete: (params: DeleteServiceParams, options?: RequestOptions) => Promise<void>;
|
|
1067
|
+
get: (params: GetServiceParams, options?: RequestOptions) => Promise<Service>;
|
|
1068
|
+
find: (params: GetServicesParams, options?: RequestOptions) => Promise<PaginatedResponse<Service>>;
|
|
1069
|
+
getAvailability: (params: GetAvailabilityParams, options?: RequestOptions) => Promise<AvailabilityResponse>;
|
|
1070
|
+
findProviders: (params: FindServiceProvidersParams, options?: RequestOptions) => Promise<ServiceProvider[]>;
|
|
1071
|
+
createProvider: (params: CreateServiceProviderParams, options?: RequestOptions) => Promise<ServiceProvider>;
|
|
1072
|
+
updateProvider: (params: UpdateServiceProviderParams, options?: RequestOptions) => Promise<ServiceProvider>;
|
|
1073
|
+
deleteProvider: (params: DeleteServiceProviderParams, options?: RequestOptions) => Promise<void>;
|
|
1074
|
+
};
|
|
1075
|
+
provider: {
|
|
1076
|
+
create: (params: CreateProviderParams, options?: RequestOptions) => Promise<Provider>;
|
|
1077
|
+
update: (params: UpdateProviderParams, options?: RequestOptions) => Promise<Provider>;
|
|
1078
|
+
delete: (params: DeleteProviderParams, options?: RequestOptions) => Promise<void>;
|
|
1079
|
+
get: (params: GetProviderParams, options?: RequestOptions) => Promise<Provider>;
|
|
1080
|
+
find: (params: GetProvidersParams, options?: RequestOptions) => Promise<PaginatedResponse<Provider>>;
|
|
1081
|
+
};
|
|
1082
|
+
promoCode: {
|
|
1083
|
+
createPromoCode(params: CreatePromoCodeParams, options?: RequestOptions): Promise<PromoCode>;
|
|
1084
|
+
updatePromoCode(params: UpdatePromoCodeParams, options?: RequestOptions): Promise<PromoCode>;
|
|
1085
|
+
deletePromoCode(params: DeletePromoCodeParams, options?: RequestOptions): Promise<{
|
|
1086
|
+
deleted: boolean;
|
|
1087
|
+
}>;
|
|
1088
|
+
getPromoCode(params: GetPromoCodeParams, options?: RequestOptions): Promise<PromoCode>;
|
|
1089
|
+
getPromoCodes(params: GetPromoCodesParams, options?: RequestOptions): Promise<PaginatedResponse<PromoCode>>;
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
1092
|
+
crm: {
|
|
1093
|
+
contact: {
|
|
1094
|
+
create: (params: CreateContactParams, options?: RequestOptions) => Promise<Contact$1>;
|
|
1095
|
+
get: (params: GetContactParams, options?: RequestOptions) => Promise<Contact$1>;
|
|
1096
|
+
find: (params?: FindContactsParams, options?: RequestOptions) => Promise<{
|
|
1097
|
+
items: Contact$1[];
|
|
1098
|
+
cursor?: string;
|
|
1099
|
+
}>;
|
|
1100
|
+
update: (params: UpdateContactParams, options?: RequestOptions) => Promise<Contact$1>;
|
|
1101
|
+
merge: (params: MergeContactsParams, options?: RequestOptions) => Promise<Contact$1>;
|
|
1102
|
+
import: (params: ImportContactsParams, options?: RequestOptions) => Promise<ImportContactsResult>;
|
|
1103
|
+
findSessions: (params: FindContactSessionsParams, options?: RequestOptions) => Promise<PaginatedResponse<ContactSessionRecord>>;
|
|
1104
|
+
revokeSession: (params: RevokeContactSessionParams, options?: RequestOptions) => Promise<{
|
|
1105
|
+
success: boolean;
|
|
1106
|
+
}>;
|
|
1107
|
+
revokeAllSessions: (params: RevokeAllContactSessionsParams, options?: RequestOptions) => Promise<{
|
|
1108
|
+
success: boolean;
|
|
1109
|
+
}>;
|
|
1110
|
+
};
|
|
1111
|
+
contactList: {
|
|
1112
|
+
create: (params: CreateContactListParams, options?: RequestOptions) => Promise<ContactList>;
|
|
1113
|
+
update: (params: UpdateContactListParams, options?: RequestOptions) => Promise<ContactList>;
|
|
1114
|
+
get: (params: GetContactListParams, options?: RequestOptions) => Promise<ContactList>;
|
|
1115
|
+
find: (params?: FindContactListsParams, options?: RequestOptions) => Promise<PaginatedResponse<ContactList>>;
|
|
1116
|
+
importContacts: (params: ImportContactsIntoContactListParams, options?: RequestOptions) => Promise<ImportContactsIntoContactListResult>;
|
|
1117
|
+
previewImportContacts: (params: ImportContactListPreviewParams, options?: RequestOptions) => Promise<ImportContactsPreviewResult>;
|
|
1118
|
+
addMember: (params: AddContactListContactParams, options?: RequestOptions) => Promise<ContactListMember>;
|
|
1119
|
+
updateMember: (params: UpdateContactListContactParams, options?: RequestOptions) => Promise<ContactListMember>;
|
|
1120
|
+
removeMember: (params: RemoveContactListContactParams, options?: RequestOptions) => Promise<{
|
|
1121
|
+
deleted: boolean;
|
|
1122
|
+
}>;
|
|
1123
|
+
findMembers: (params: FindContactListContactsParams, options?: RequestOptions) => Promise<PaginatedResponse<ContactListMember>>;
|
|
1124
|
+
plans: {
|
|
1125
|
+
create(params: CreateContactListPlanParams, options?: RequestOptions): Promise<ContactListPlan>;
|
|
1126
|
+
update(params: UpdateContactListPlanParams, options?: RequestOptions): Promise<ContactListPlan>;
|
|
1127
|
+
get(params: GetContactListPlanParams, options?: RequestOptions): Promise<ContactListPlan>;
|
|
1128
|
+
find(params: FindContactListPlansParams, options?: RequestOptions): Promise<PaginatedResponse<ContactListPlan>>;
|
|
1129
|
+
retryCatalog(params: RetryContactListPlanCatalogParams, options?: RequestOptions): Promise<ContactListPlan>;
|
|
1130
|
+
};
|
|
1131
|
+
memberships: {
|
|
1132
|
+
refund: (params: RefundContactListMembershipParams, options?: RequestOptions) => Promise<RefundContactListMembershipResult>;
|
|
1133
|
+
paymentAttempts: {
|
|
1134
|
+
find(params: FindContactListMembershipPaymentAttemptsParams, options?: RequestOptions): Promise<PaginatedResponse<ContactListMembershipPaymentAttempt>>;
|
|
1135
|
+
get(params: GetContactListMembershipPaymentAttemptParams, options?: RequestOptions): Promise<ContactListMembershipPaymentAttempt>;
|
|
1136
|
+
};
|
|
1137
|
+
refunds: {
|
|
1138
|
+
find(params: FindContactListMembershipRefundsParams, options?: RequestOptions): Promise<PaginatedResponse<ContactListMembershipRefund>>;
|
|
1139
|
+
get(params: GetContactListMembershipRefundParams, options?: RequestOptions): Promise<ContactListMembershipRefund>;
|
|
1140
|
+
retry(params: RetryContactListMembershipRefundParams, options?: RequestOptions): Promise<ContactListMembershipRefund>;
|
|
1141
|
+
};
|
|
1142
|
+
cancellations: {
|
|
1143
|
+
find(params: FindContactListMembershipCancellationsParams, options?: RequestOptions): Promise<PaginatedResponse<ContactListMembershipCancellation>>;
|
|
1144
|
+
get(params: GetContactListMembershipCancellationParams, options?: RequestOptions): Promise<ContactListMembershipCancellation>;
|
|
1145
|
+
retry(params: RetryContactListMembershipCancellationParams, options?: RequestOptions): Promise<ContactListMembershipCancellation>;
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1148
|
+
};
|
|
1149
|
+
action: {
|
|
1150
|
+
timeline(params: TimelineParams, options?: RequestOptions): Promise<{
|
|
1151
|
+
items: Action[];
|
|
1152
|
+
cursor: string | null;
|
|
1153
|
+
}>;
|
|
1154
|
+
find(params: FindActionsParams, options?: RequestOptions): Promise<{
|
|
1155
|
+
items: Action[];
|
|
1156
|
+
cursor: string | null;
|
|
1157
|
+
}>;
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
1160
|
+
outreach: {
|
|
1161
|
+
campaign: {
|
|
1162
|
+
create(params: CreateCampaignParams, options?: RequestOptions): Promise<Campaign>;
|
|
1163
|
+
update(params: UpdateCampaignParams, options?: RequestOptions): Promise<Campaign>;
|
|
1164
|
+
get(params: GetCampaignParams, options?: RequestOptions): Promise<Campaign>;
|
|
1165
|
+
find(params?: FindCampaignsParams, options?: RequestOptions): Promise<PaginatedResponse<Campaign>>;
|
|
1166
|
+
launch(params: LaunchCampaignParams, options?: RequestOptions): Promise<Campaign>;
|
|
1167
|
+
duplicate(params: DuplicateCampaignParams, options?: RequestOptions): Promise<Campaign>;
|
|
1168
|
+
launchReadiness(params: GetCampaignLaunchReadinessParams, options?: RequestOptions): Promise<CampaignLaunchReadiness>;
|
|
1169
|
+
importEnrollments(params: ImportCampaignEnrollmentsParams, options?: RequestOptions): Promise<CampaignEnrollmentImportResult>;
|
|
1170
|
+
generatePersonalizedDrafts(params: GenerateOutreachPersonalizedDraftsParams, options?: RequestOptions): Promise<Campaign>;
|
|
1171
|
+
};
|
|
1172
|
+
campaignEnrollment: {
|
|
1173
|
+
find(params?: FindCampaignEnrollmentsParams, options?: RequestOptions): Promise<PaginatedResponse<CampaignEnrollment>>;
|
|
1174
|
+
get(params: GetCampaignEnrollmentConversationParams, options?: RequestOptions): Promise<CampaignEnrollmentConversationResponse>;
|
|
1175
|
+
update(params: UpdateCampaignEnrollmentParams, options?: RequestOptions): Promise<CampaignEnrollment>;
|
|
1176
|
+
updateDraft(params: UpdateCampaignEnrollmentDraftParams, options?: RequestOptions): Promise<CampaignEnrollment>;
|
|
1177
|
+
updateStepExecution(params: UpdateCampaignEnrollmentStepExecutionParams, options?: RequestOptions): Promise<CampaignEnrollmentConversationResponse>;
|
|
1178
|
+
reply(params: ReplyCampaignEnrollmentParams, options?: RequestOptions): Promise<CampaignEnrollmentConversationResponse>;
|
|
1179
|
+
stop(params: StopCampaignEnrollmentParams, options?: RequestOptions): Promise<CampaignEnrollmentConversationResponse>;
|
|
1180
|
+
};
|
|
1181
|
+
campaignMessage: {
|
|
1182
|
+
find(params?: FindCampaignMessagesParams, options?: RequestOptions): Promise<PaginatedResponse<CampaignMessage>>;
|
|
1183
|
+
update(params: UpdateCampaignMessageParams, options?: RequestOptions): Promise<CampaignMessage>;
|
|
1184
|
+
};
|
|
1185
|
+
suppression: {
|
|
1186
|
+
create(params: CreateSuppressionParams, options?: RequestOptions): Promise<Suppression>;
|
|
1187
|
+
update(params: UpdateSuppressionParams, options?: RequestOptions): Promise<Suppression>;
|
|
1188
|
+
get(params: GetSuppressionParams, options?: RequestOptions): Promise<Suppression>;
|
|
1189
|
+
find(params?: FindSuppressionsParams, options?: RequestOptions): Promise<PaginatedResponse<Suppression>>;
|
|
1190
|
+
};
|
|
1191
|
+
leadResearch: {
|
|
1192
|
+
createRun(params: CreateLeadResearchRunParams, options?: RequestOptions): Promise<LeadResearchRun>;
|
|
1193
|
+
findRuns(params?: FindLeadResearchRunsParams, options?: RequestOptions): Promise<PaginatedResponse<LeadResearchRun>>;
|
|
1194
|
+
getRun(params: GetLeadResearchRunParams, options?: RequestOptions): Promise<LeadResearchRun>;
|
|
1195
|
+
updateRun(params: UpdateLeadResearchRunParams, options?: RequestOptions): Promise<LeadResearchRun>;
|
|
1196
|
+
cancelRun(params: CancelLeadResearchRunParams, options?: RequestOptions): Promise<LeadResearchRun>;
|
|
1197
|
+
sendMessage(params: SendLeadResearchMessageParams, options?: RequestOptions): Promise<SendLeadResearchMessageResult>;
|
|
1198
|
+
findMessages(params: FindLeadResearchMessagesParams, options?: RequestOptions): Promise<LeadResearchMessage[]>;
|
|
1199
|
+
validateEmail(params: ValidateLeadEmailParams, options?: RequestOptions): Promise<LeadEmailValidationResult>;
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
automation: {
|
|
1203
|
+
workflow: {
|
|
1204
|
+
create: (params: CreateWorkflowParams, options?: RequestOptions) => Promise<Workflow>;
|
|
1205
|
+
update: (params: UpdateWorkflowParams, options?: RequestOptions) => Promise<Workflow>;
|
|
1206
|
+
delete: (params: DeleteWorkflowParams, options?: RequestOptions) => Promise<boolean>;
|
|
1207
|
+
get: (params: GetWorkflowParams, options?: RequestOptions) => Promise<Workflow>;
|
|
1208
|
+
find: (params?: GetWorkflowsParams, options?: RequestOptions) => Promise<PaginatedResponse<Workflow>>;
|
|
1209
|
+
trigger: (params: TriggerWorkflowParams, options?: RequestOptions) => Promise<WorkflowExecution>;
|
|
1210
|
+
getExecutions: (params: GetWorkflowExecutionsParams, options?: RequestOptions) => Promise<PaginatedResponse<WorkflowExecution>>;
|
|
1211
|
+
getExecution: (params: GetWorkflowExecutionParams, options?: RequestOptions) => Promise<WorkflowExecution>;
|
|
1212
|
+
listEffects: (params: GetWorkflowEffectsParams, options?: RequestOptions) => Promise<PaginatedResponse<WorkflowEffect>>;
|
|
1213
|
+
getEffect: (params: GetWorkflowEffectParams, options?: RequestOptions) => Promise<WorkflowEffect>;
|
|
1214
|
+
listConnections: (params?: GetWorkflowConnectionsParams, options?: RequestOptions) => Promise<WorkflowConnection[]>;
|
|
1215
|
+
getConnectionConnectUrl: (params: GetWorkflowConnectionConnectUrlParams, options?: RequestOptions) => Promise<WorkflowConnectionConnectUrl>;
|
|
1216
|
+
deleteConnection: (params: DeleteWorkflowConnectionParams, options?: RequestOptions) => Promise<boolean>;
|
|
1217
|
+
};
|
|
1218
|
+
support: {
|
|
1219
|
+
createChannel: (params: CreateSupportChannelParams, opts?: RequestOptions) => Promise<SupportChannel>;
|
|
1220
|
+
getChannel: (params: {
|
|
1221
|
+
store_id: string;
|
|
1222
|
+
id: string;
|
|
1223
|
+
}, opts?: RequestOptions) => Promise<SupportChannel>;
|
|
1224
|
+
findChannels: (params: FindSupportChannelsParams, opts?: RequestOptions) => Promise<{
|
|
1225
|
+
items: SupportChannel[];
|
|
1226
|
+
cursor?: string;
|
|
1227
|
+
}>;
|
|
1228
|
+
updateChannel: (params: UpdateSupportChannelParams, opts?: RequestOptions) => Promise<SupportChannel>;
|
|
1229
|
+
deleteChannel: (params: {
|
|
1230
|
+
store_id: string;
|
|
1231
|
+
id: string;
|
|
1232
|
+
}, opts?: RequestOptions) => Promise<void>;
|
|
1233
|
+
receiveChannelMessage: (params: ReceiveSupportChannelMessageParams, opts?: RequestOptions) => Promise<SupportConversationResponse>;
|
|
1234
|
+
createAgent: (params: CreateSupportAgentParams, opts?: RequestOptions) => Promise<SupportAgent>;
|
|
1235
|
+
getAgent: (params: {
|
|
1236
|
+
store_id: string;
|
|
1237
|
+
id: string;
|
|
1238
|
+
}, opts?: RequestOptions) => Promise<SupportAgent>;
|
|
1239
|
+
findAgents: (params: {
|
|
1240
|
+
store_id: string;
|
|
1241
|
+
status?: string;
|
|
1242
|
+
limit?: number;
|
|
1243
|
+
cursor?: string;
|
|
1244
|
+
}, opts?: RequestOptions) => Promise<{
|
|
1245
|
+
items: SupportAgent[];
|
|
1246
|
+
cursor?: string;
|
|
1247
|
+
}>;
|
|
1248
|
+
updateAgent: (params: UpdateSupportAgentParams, opts?: RequestOptions) => Promise<SupportAgent>;
|
|
1249
|
+
deleteAgent: (params: {
|
|
1250
|
+
store_id: string;
|
|
1251
|
+
id: string;
|
|
1252
|
+
}, opts?: RequestOptions) => Promise<void>;
|
|
1253
|
+
findConversations: (params: FindSupportConversationsParams, opts?: RequestOptions) => Promise<{
|
|
1254
|
+
items: SupportConversation[];
|
|
1255
|
+
cursor?: string;
|
|
1256
|
+
}>;
|
|
1257
|
+
getConversation: (params: GetSupportConversationParams, opts?: RequestOptions) => Promise<SupportConversationResponse>;
|
|
1258
|
+
sendConversationMessage: (params: SendSupportMessageParams, opts?: RequestOptions) => Promise<SupportConversationResponse>;
|
|
1259
|
+
replyToConversation: (params: ReplySupportConversationParams, opts?: RequestOptions) => Promise<SupportConversationResponse>;
|
|
1260
|
+
resolveConversation: (params: ResolveSupportConversationParams, opts?: RequestOptions) => Promise<SupportConversation>;
|
|
1261
|
+
assignConversation: (params: AssignSupportConversationParams, opts?: RequestOptions) => Promise<SupportConversation>;
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
1264
|
+
analytics: {
|
|
1265
|
+
get(request: AnalyticsRequest, options?: RequestOptions & {
|
|
1266
|
+
store_id?: string;
|
|
1267
|
+
}): Promise<AnalyticsResponse>;
|
|
1268
|
+
};
|
|
1269
|
+
experiments: {
|
|
1270
|
+
create(params: CreateExperimentParams, options?: RequestOptions): Promise<Experiment>;
|
|
1271
|
+
update(params: UpdateExperimentParams, options?: RequestOptions): Promise<Experiment>;
|
|
1272
|
+
get(params: GetExperimentParams, options?: RequestOptions): Promise<Experiment>;
|
|
1273
|
+
find(params?: FindExperimentsParams, options?: RequestOptions): Promise<PaginatedResponse<Experiment>>;
|
|
1274
|
+
results(params: GetExperimentParams, options?: RequestOptions): Promise<ExperimentResults>;
|
|
1275
|
+
};
|
|
1276
|
+
setStoreId: (storeId: string) => void;
|
|
1277
|
+
getStoreId: () => string;
|
|
1278
|
+
setMarket: (market: string) => void;
|
|
1279
|
+
getMarket: () => string;
|
|
1280
|
+
setLocale: (locale: string) => void;
|
|
1281
|
+
getLocale: () => string;
|
|
1282
|
+
readonly session: AdminSession | null;
|
|
1283
|
+
readonly isAuthenticated: boolean;
|
|
1284
|
+
onAuthStateChanged(listener: AuthStateListener<AdminSession>): () => void;
|
|
1285
|
+
logout(): Promise<void>;
|
|
1286
|
+
utils: {
|
|
1287
|
+
getImageUrl: (imageBlock: unknown, isBlock?: boolean) => string | null;
|
|
1288
|
+
getBlockValue: typeof getBlockValue;
|
|
1289
|
+
getBlockTextValue: typeof getBlockTextValue;
|
|
1290
|
+
getBlockContentValue: typeof getBlockContentValue;
|
|
1291
|
+
getBlockValues: typeof getBlockValues;
|
|
1292
|
+
getBlockLabel: typeof getBlockLabel;
|
|
1293
|
+
getBlockObjectValues: typeof getBlockObjectValues;
|
|
1294
|
+
getBlockFromArray: typeof getBlockFromArray;
|
|
1295
|
+
formatBlockValue: typeof formatBlockValue;
|
|
1296
|
+
prepareBlocksForSubmission: typeof prepareBlocksForSubmission;
|
|
1297
|
+
extractBlockValues: typeof extractBlockValues;
|
|
1298
|
+
formatPrice: (prices: Price[]) => string;
|
|
1299
|
+
getPriceAmount: (prices: Price[]) => number | null;
|
|
1300
|
+
formatPayment: typeof formatPayment;
|
|
1301
|
+
formatMinor: typeof formatMinor;
|
|
1302
|
+
getCurrencySymbol: typeof getCurrencySymbol;
|
|
1303
|
+
getCurrencyName: typeof getCurrencyName;
|
|
1304
|
+
validatePhoneNumber: typeof validatePhoneNumber;
|
|
1305
|
+
tzGroups: {
|
|
1306
|
+
label: string;
|
|
1307
|
+
zones: {
|
|
1308
|
+
label: string;
|
|
1309
|
+
value: string;
|
|
1310
|
+
}[];
|
|
1311
|
+
}[];
|
|
1312
|
+
findTimeZone: typeof findTimeZone;
|
|
1313
|
+
slugify: typeof slugify;
|
|
1314
|
+
humanize: typeof humanize;
|
|
1315
|
+
categorify: typeof categorify;
|
|
1316
|
+
formatDate: typeof formatDate;
|
|
1317
|
+
getSvgContentForAstro: typeof getSvgContentForAstro;
|
|
1318
|
+
fetchSvgContent: typeof fetchSvgContent;
|
|
1319
|
+
injectSvgIntoElement: typeof injectSvgIntoElement;
|
|
1320
|
+
isValidKey: typeof isValidKey;
|
|
1321
|
+
validateKey: typeof validateKey;
|
|
1322
|
+
toKey: typeof toKey;
|
|
1323
|
+
nameToKey: typeof nameToKey;
|
|
1324
|
+
getAvailableStock: typeof getAvailableStock;
|
|
1325
|
+
getReservedStock: typeof getReservedStock;
|
|
1326
|
+
hasStock: typeof hasStock;
|
|
1327
|
+
getInventoryAt: typeof getInventoryAt;
|
|
1328
|
+
getFirstAvailableFCId: typeof getFirstAvailableFCId;
|
|
1329
|
+
};
|
|
1330
|
+
};
|
|
1331
|
+
interface StorefrontSessionStorage {
|
|
1332
|
+
getItem(key: string): string | null;
|
|
1333
|
+
setItem(key: string, value: string): void;
|
|
1334
|
+
removeItem(key: string): void;
|
|
1335
|
+
}
|
|
1336
|
+
type CreateStorefrontConfig = Omit<HttpClientConfig, "authStorage" | "storeId"> & {
|
|
1337
|
+
storeId: string;
|
|
1338
|
+
market?: string;
|
|
1339
|
+
locale?: string;
|
|
1340
|
+
apiToken?: string;
|
|
1341
|
+
sessionStorage?: StorefrontSessionStorage;
|
|
1342
|
+
};
|
|
1343
|
+
declare function createStorefrontClient(config: CreateStorefrontConfig): {
|
|
1344
|
+
identify: (params?: {
|
|
1345
|
+
email?: string;
|
|
1346
|
+
verify?: boolean;
|
|
1347
|
+
market?: string;
|
|
1348
|
+
}) => Promise<StorefrontIdentifyResult>;
|
|
1349
|
+
verify: (params: {
|
|
1350
|
+
challenge_id: string;
|
|
1351
|
+
code: string;
|
|
1352
|
+
}) => Promise<VerifyResponse>;
|
|
1353
|
+
logout: () => Promise<void>;
|
|
1354
|
+
me: () => Promise<Contact>;
|
|
1355
|
+
readonly session: ContactSession | null;
|
|
1356
|
+
readonly isAuthenticated: boolean;
|
|
1357
|
+
onAuthStateChanged(listener: AuthStateListener<ContactSession>): () => void;
|
|
1358
|
+
store: {
|
|
1359
|
+
getStore(options?: RequestOptions): Promise<Store>;
|
|
1360
|
+
location: {
|
|
1361
|
+
getCountries(options?: RequestOptions): Promise<{
|
|
1362
|
+
items: {
|
|
1363
|
+
code: string;
|
|
1364
|
+
name: string;
|
|
1365
|
+
states: {
|
|
1366
|
+
code: string;
|
|
1367
|
+
name: string;
|
|
1368
|
+
}[];
|
|
1369
|
+
}[];
|
|
1370
|
+
cursor: string | null;
|
|
1371
|
+
}>;
|
|
1372
|
+
getCountry(countryCode: string, options?: RequestOptions): Promise<{
|
|
1373
|
+
code: string;
|
|
1374
|
+
name: string;
|
|
1375
|
+
states: {
|
|
1376
|
+
code: string;
|
|
1377
|
+
name: string;
|
|
1378
|
+
}[];
|
|
1379
|
+
}>;
|
|
1380
|
+
list(options?: RequestOptions): Promise<Location[]>;
|
|
1381
|
+
get(id: string, options?: RequestOptions): Promise<Location>;
|
|
1382
|
+
};
|
|
1383
|
+
market: {
|
|
1384
|
+
list(options?: RequestOptions): Promise<Market[]>;
|
|
1385
|
+
get(id: string, options?: RequestOptions): Promise<Market>;
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
cms: {
|
|
1389
|
+
collection: {
|
|
1390
|
+
get(params: GetCollectionParams, options?: RequestOptions): Promise<Collection>;
|
|
1391
|
+
};
|
|
1392
|
+
entry: {
|
|
1393
|
+
get(params: GetEntryParams, options?: RequestOptions): Promise<CollectionEntry>;
|
|
1394
|
+
find(params: GetEntriesParams, options?: RequestOptions): Promise<PaginatedResponse<CollectionEntry>>;
|
|
1395
|
+
};
|
|
1396
|
+
form: {
|
|
1397
|
+
get(params: GetFormParams, options?: RequestOptions): Promise<Form>;
|
|
1398
|
+
submit(params: SubmitFormParams, options?: RequestOptions): Promise<FormSubmission>;
|
|
1399
|
+
};
|
|
1400
|
+
taxonomy: {
|
|
1401
|
+
get(params: GetTaxonomyParams, options?: RequestOptions): Promise<Taxonomy>;
|
|
1402
|
+
getChildren(params: GetTaxonomyChildrenParams, options?: RequestOptions): Promise<PaginatedResponse<Taxonomy>>;
|
|
1403
|
+
};
|
|
1404
|
+
};
|
|
1405
|
+
eshop: {
|
|
1406
|
+
product: {
|
|
1407
|
+
get(params: GetProductParams, options?: RequestOptions): Promise<Product>;
|
|
1408
|
+
find(params: GetProductsParams, options?: RequestOptions): Promise<PaginatedResponse<Product>>;
|
|
1409
|
+
};
|
|
1410
|
+
cart: {
|
|
1411
|
+
current(params?: GetCurrentCartParams, options?: RequestOptions): Promise<Cart>;
|
|
1412
|
+
get(params: GetCartParams, options?: RequestOptions): Promise<Cart>;
|
|
1413
|
+
update(params: UpdateCartParams, options?: RequestOptions): Promise<Cart>;
|
|
1414
|
+
addItem(params: AddCartItemParams, options?: RequestOptions): Promise<Cart>;
|
|
1415
|
+
removeItem(params: RemoveCartItemParams, options?: RequestOptions): Promise<Cart>;
|
|
1416
|
+
clear(params: ClearCartParams, options?: RequestOptions): Promise<Cart>;
|
|
1417
|
+
quote(params: QuoteCartParams, options?: RequestOptions): Promise<OrderQuote>;
|
|
1418
|
+
checkout(params: CheckoutCartParams, options?: RequestOptions): Promise<OrderCheckoutResult>;
|
|
1419
|
+
};
|
|
1420
|
+
order: {
|
|
1421
|
+
get(params: GetOrderParams, options?: RequestOptions): Promise<Order>;
|
|
1422
|
+
find(params: GetOrdersParams, options?: RequestOptions): Promise<PaginatedResponse<Order>>;
|
|
1423
|
+
downloadDigitalAccess(params: DownloadDigitalAccessParams, options?: RequestOptions): Promise<DigitalAccessDownloadResponse>;
|
|
1424
|
+
findDigitalAccess(params: FindDigitalAccessGrantsParams, options?: RequestOptions): Promise<PaginatedResponse<DigitalAccessGrant>>;
|
|
1425
|
+
getDigitalAccess(params: GetDigitalAccessGrantParams, options?: RequestOptions): Promise<DigitalAccessGrant>;
|
|
1426
|
+
};
|
|
1427
|
+
service: {
|
|
1428
|
+
get(params: GetServiceParams, options?: RequestOptions): Promise<Service>;
|
|
1429
|
+
find(params: GetServicesParams, options?: RequestOptions): Promise<PaginatedResponse<Service>>;
|
|
1430
|
+
findProviders(params: FindServiceProvidersParams, options?: RequestOptions): Promise<ServiceProvider[]>;
|
|
1431
|
+
getAvailability(params: GetAvailabilityParams, options?: RequestOptions): Promise<AvailabilityResponse>;
|
|
1432
|
+
};
|
|
1433
|
+
provider: {
|
|
1434
|
+
get(params: GetProviderParams, options?: RequestOptions): Promise<Provider>;
|
|
1435
|
+
find(params: GetProvidersParams, options?: RequestOptions): Promise<PaginatedResponse<Provider>>;
|
|
1436
|
+
};
|
|
1437
|
+
};
|
|
1438
|
+
crm: {
|
|
1439
|
+
contact: {
|
|
1440
|
+
identify(params?: {
|
|
1441
|
+
email?: string;
|
|
1442
|
+
market?: string;
|
|
1443
|
+
}, options?: RequestOptions): Promise<IdentifyResponse>;
|
|
1444
|
+
requestCode(params?: {
|
|
1445
|
+
email?: string;
|
|
1446
|
+
market?: string;
|
|
1447
|
+
}, options?: RequestOptions): Promise<IdentifyResponse>;
|
|
1448
|
+
verify(params: {
|
|
1449
|
+
challenge_id: string;
|
|
1450
|
+
code: string;
|
|
1451
|
+
}, options?: RequestOptions): Promise<VerifyResponse>;
|
|
1452
|
+
logout(options?: RequestOptions): Promise<void>;
|
|
1453
|
+
getMe(options?: RequestOptions): Promise<Contact>;
|
|
1454
|
+
};
|
|
1455
|
+
contactList: {
|
|
1456
|
+
get(params: GetContactListParams, options?: RequestOptions): Promise<StorefrontContactList>;
|
|
1457
|
+
find(params?: FindStorefrontContactListsParams, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactList>>;
|
|
1458
|
+
plans: {
|
|
1459
|
+
find(params: FindStorefrontContactListPlansParams, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
|
|
1460
|
+
};
|
|
1461
|
+
memberships: {
|
|
1462
|
+
find(params?: FindStorefrontContactListMembershipsParams, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListMembership>>;
|
|
1463
|
+
};
|
|
1464
|
+
subscribe(params: SubscribeContactListParams, options?: RequestOptions): Promise<ContactListSubscribeResponse>;
|
|
1465
|
+
checkAccess(params: ContactListAccessParams, options?: RequestOptions): Promise<ContactListAccessResponse>;
|
|
1466
|
+
checkContentAccess(params: ContactListContentAccessParams, options?: RequestOptions): Promise<ContactListContentAccessResponse>;
|
|
1467
|
+
manage(token: string, options?: RequestOptions): Promise<ContactListManagementResponse>;
|
|
1468
|
+
unsubscribe(token: string, options?: RequestOptions): Promise<{
|
|
1469
|
+
success: boolean;
|
|
1470
|
+
}>;
|
|
1471
|
+
confirm(token: string, options?: RequestOptions): Promise<{
|
|
1472
|
+
success: boolean;
|
|
1473
|
+
}>;
|
|
1474
|
+
};
|
|
1475
|
+
};
|
|
1476
|
+
action: {
|
|
1477
|
+
COMMON_ACTION_KEYS: readonly ["page.view", "product.view", "service.view", "provider.view", "cart.added", "cart.removed", "checkout.started", "order.created", "signin", "signup", "verified.email", "search", "share", "wishlist.added"];
|
|
1478
|
+
track(params: TrackActionParams): Promise<void>;
|
|
1479
|
+
};
|
|
1480
|
+
experiments: {
|
|
1481
|
+
use(params: UseExperimentParams, options?: RequestOptions): Promise<ExperimentUseResponse>;
|
|
1482
|
+
};
|
|
1483
|
+
support: {
|
|
1484
|
+
startConversation(params?: Omit<StartSupportConversationParams, "store_id">, opts?: RequestOptions): Promise<SupportConversationStartResponse>;
|
|
1485
|
+
sendMessage(params: StorefrontSendSupportMessageParams, opts?: RequestOptions): Promise<SupportConversationResponse>;
|
|
1486
|
+
getConversation(params: StorefrontGetSupportConversationParams, opts?: RequestOptions): Promise<SupportConversationResponse>;
|
|
1487
|
+
};
|
|
1488
|
+
getStoreId: () => string;
|
|
1489
|
+
setMarket: (key: string) => void;
|
|
1490
|
+
getMarket: () => string;
|
|
1491
|
+
setLocale: (l: string) => void;
|
|
1492
|
+
getLocale: () => string;
|
|
1493
|
+
utils: {
|
|
1494
|
+
getImageUrl: (imageBlock: unknown, isBlock?: boolean) => string | null;
|
|
1495
|
+
getBlockValue: typeof getBlockValue;
|
|
1496
|
+
getBlockTextValue: typeof getBlockTextValue;
|
|
1497
|
+
getBlockContentValue: typeof getBlockContentValue;
|
|
1498
|
+
getBlockValues: typeof getBlockValues;
|
|
1499
|
+
getBlockLabel: typeof getBlockLabel;
|
|
1500
|
+
getBlockObjectValues: typeof getBlockObjectValues;
|
|
1501
|
+
getBlockFromArray: typeof getBlockFromArray;
|
|
1502
|
+
formatBlockValue: typeof formatBlockValue;
|
|
1503
|
+
prepareBlocksForSubmission: typeof prepareBlocksForSubmission;
|
|
1504
|
+
extractBlockValues: typeof extractBlockValues;
|
|
1505
|
+
formatPrice: (prices: Price[]) => string;
|
|
1506
|
+
getPriceAmount: (prices: Price[]) => number | null;
|
|
1507
|
+
formatPayment: typeof formatPayment;
|
|
1508
|
+
formatMinor: typeof formatMinor;
|
|
1509
|
+
getCurrencySymbol: typeof getCurrencySymbol;
|
|
1510
|
+
getCurrencyName: typeof getCurrencyName;
|
|
1511
|
+
validatePhoneNumber: typeof validatePhoneNumber;
|
|
1512
|
+
tzGroups: {
|
|
1513
|
+
label: string;
|
|
1514
|
+
zones: {
|
|
1515
|
+
label: string;
|
|
1516
|
+
value: string;
|
|
1517
|
+
}[];
|
|
1518
|
+
}[];
|
|
1519
|
+
findTimeZone: typeof findTimeZone;
|
|
1520
|
+
slugify: typeof slugify;
|
|
1521
|
+
humanize: typeof humanize;
|
|
1522
|
+
categorify: typeof categorify;
|
|
1523
|
+
formatDate: typeof formatDate;
|
|
1524
|
+
getSvgContentForAstro: typeof getSvgContentForAstro;
|
|
1525
|
+
fetchSvgContent: typeof fetchSvgContent;
|
|
1526
|
+
injectSvgIntoElement: typeof injectSvgIntoElement;
|
|
1527
|
+
isValidKey: typeof isValidKey;
|
|
1528
|
+
validateKey: typeof validateKey;
|
|
1529
|
+
toKey: typeof toKey;
|
|
1530
|
+
nameToKey: typeof nameToKey;
|
|
1531
|
+
getAvailableStock: typeof getAvailableStock;
|
|
1532
|
+
getReservedStock: typeof getReservedStock;
|
|
1533
|
+
hasStock: typeof hasStock;
|
|
1534
|
+
getInventoryAt: typeof getInventoryAt;
|
|
1535
|
+
getFirstAvailableFCId: typeof getFirstAvailableFCId;
|
|
1536
|
+
};
|
|
1537
|
+
};
|
|
1538
|
+
type StorefrontClientBase = ReturnType<typeof createStorefrontClient>;
|
|
1539
|
+
type StorefrontClient = StorefrontClientBase & {
|
|
1540
|
+
forStore(storeId: string): StorefrontClient;
|
|
1541
|
+
};
|
|
1542
|
+
declare function createStorefront(config: CreateStorefrontConfig): StorefrontClient;
|
|
1543
|
+
|
|
1544
|
+
export { SUPPORTED_FRAMEWORKS as $, type AuthStateListener as A, injectSvgIntoElement as B, type CreateStorefrontConfig as C, COMMON_ACTION_KEYS as D, type ExperimentUseResponse as E, createStorefront as F, createCartController as G, type CommonActionKey as H, type IdentifyResponse as I, type CartApi as J, type CartController as K, type CartControllerAddItemParams as L, type CartControllerCheckoutParams as M, type CartControllerClearParams as N, type CartControllerInitParams as O, type CartControllerListener as P, type CartControllerQuoteParams as Q, type CartControllerRefreshParams as R, type StorefrontClient as S, type TrackActionParams as T, type UseExperimentParams as U, type VerifyResponse as V, type CartControllerRemoveItemParams as W, type CartControllerState as X, type CartControllerUpdateParams as Y, type StorefrontSessionStorage as Z, SDK_VERSION as _, type ContactSession as a, type EdgeTrigger as a$, type ApiConfig as a0, type AdminSessionInternal as a1, type ContactSessionInternal as a2, type AdminSession as a3, type AdminSessionUpdater as a4, type ContactSessionUpdater as a5, type CreateAdminConfig as a6, createAdmin as a7, type LocationState as a8, type LocationCountry as a9, type ActionFeedItem as aA, type ActionFeedSummary as aB, type ActionFeedCursor as aC, type ActionFeedData as aD, type CreateExperimentParams as aE, type Experiment as aF, type ExperimentResults as aG, type ExperimentStatus as aH, type ExperimentVariant as aI, type ExperimentVariantResult as aJ, type FindExperimentsParams as aK, type GetExperimentParams as aL, type UpdateExperimentParams as aM, type TimelineParams as aN, type SupportAgent as aO, type SupportAgentStatus as aP, type SupportChannel as aQ, type SupportChannelConfig as aR, type SupportChannelStatus as aS, type SupportChannelType as aT, type SupportConversation as aU, type SupportConversationChannelContext as aV, type SupportMessage as aW, type SendSupportMessageParams as aX, type SupportAgentNode as aY, type SupportAgentEdge as aZ, type SupportAgentAiConfig as a_, type GetCountriesResponse as aa, type AnalyticsTimeRange as ab, type AnalyticsReportKey as ac, type AnalyticsMetricReportKey as ad, type AnalyticsBreakdownReportKey as ae, type AnalyticsActionReportKey as af, type AnalyticsCompositeReportKey as ag, type AnalyticsReportRequest as ah, type AnalyticsBlockRequest as ai, type AnalyticsRequest as aj, type AnalyticsMetricData as ak, type AnalyticsBreakdownItem as al, type AnalyticsBreakdownData as am, type BusinessOverviewData as an, type RevenueByCurrencyData as ao, type ContactFunnelStage as ap, type ContactFunnelData as aq, type OutreachOverviewData as ar, type OutreachFunnelStage as as, type OutreachFunnelData as at, type EntityStatusOverviewData as au, type DataHealthData as av, type AnalyticsReport as aw, type AnalyticsBlockResponse as ax, type AnalyticsResponse as ay, type ActionFeedCategory as az, type StorefrontIdentifyResult as b, type SupportAction as b0, type AssignSupportConversationParams as b1, type GetSupportConversationParams as b2, type ReplySupportConversationParams as b3, type ResolveSupportConversationParams as b4, type CreateSupportChannelParams as b5, type UpdateSupportChannelParams as b6, type FindSupportChannelsParams as b7, type FindSupportConversationsParams as b8, type ReceiveSupportChannelMessageParams as b9, type WorkflowToolOperation as ba, type WorkflowToolResource as bb, type WorkflowTool as bc, type EventMetadata as bd, type EventScopeField as be, type StorefrontAction as c, type StartSupportConversationParams as d, type SupportConversationStartResponse as e, type StorefrontSendSupportMessageParams as f, type SupportConversationResponse as g, type StorefrontGetSupportConversationParams as h, getBlockValue as i, getBlockTextValue as j, getBlockContentValue as k, getBlockValues as l, getBlockLabel as m, getBlockObjectValues as n, getBlockFromArray as o, formatBlockValue as p, prepareBlocksForSubmission as q, extractBlockValues as r, findTimeZone as s, slugify as t, humanize as u, validatePhoneNumber as v, categorify as w, formatDate as x, getSvgContentForAstro as y, fetchSvgContent as z };
|