arky-sdk 0.9.11 → 0.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{admin-CAwQrMOX.d.cts → admin-Q9MBFwCb.d.cts} +115 -15
- package/dist/{admin-BKXmDIVk.d.ts → admin-ZLXD4_en.d.ts} +115 -15
- package/dist/admin.cjs +64 -11
- 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 +64 -11
- package/dist/admin.js.map +1 -1
- package/dist/{api-DJI3S6XA.d.cts → api-DvsFdOaF.d.cts} +144 -19
- package/dist/{api-DJI3S6XA.d.ts → api-DvsFdOaF.d.ts} +144 -19
- package/dist/{index-u-gjHnKs.d.cts → index-BC06yiuv.d.cts} +1 -1
- package/dist/{index-BaSBPLdF.d.ts → index-CQd9b_7n.d.ts} +1 -1
- package/dist/index.cjs +72 -11
- 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 +72 -11
- package/dist/index.js.map +1 -1
- package/dist/storefront.cjs +8 -0
- package/dist/storefront.cjs.map +1 -1
- package/dist/storefront.d.cts +6 -4
- package/dist/storefront.d.ts +6 -4
- package/dist/storefront.js +8 -0
- 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.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/package.json +1 -1
- package/scripts/contract-admin.mjs +2 -19
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as GetCurrentCartParams, R as RequestOptions$1, C as Cart, x as GetCartParams, U as UpdateCartParams, y as AddCartItemParams, z as RemoveCartItemParams, D as ClearCartParams, Q as QuoteCartParams, f as OrderQuote, H as CheckoutCartParams, O as OrderCheckoutResult,
|
|
2
|
-
import { f as formatPayment, a as formatMinor, g as getCurrencySymbol, b as getCurrencyName, i as isValidKey, v as validateKey, t as toKey, n as nameToKey, c as getAvailableStock, d as getReservedStock, h as hasStock, e as getInventoryAt, j as getFirstAvailableFCId } from './index-
|
|
1
|
+
import { w as GetCurrentCartParams, R as RequestOptions$1, C as Cart, x as GetCartParams, U as UpdateCartParams, y as AddCartItemParams, z as RemoveCartItemParams, D as ClearCartParams, Q as QuoteCartParams, f as OrderQuote, H as CheckoutCartParams, O as OrderCheckoutResult, ad as Contact, k as Store, M as Market, ae as UpdateAccountContactParams, af as AccountUpdateResponse, ag as DeleteAccountParams, ah as GetMeParams, ai as Account, aj as SearchAccountsParams, ak as MagicLinkVerifyParams, al as AuthToken, am as CreateStoreParams, an as UpdateStoreParams, ao as DeleteStoreParams, ap as GetStoreParams, aq as GetStoresParams, o as PaginatedResponse, ar as GetSubscriptionPlansParams, as as SubscriptionPlan, at as SubscribeParams, au as CreatePortalSessionParams, av as AddMemberParams, aw as RemoveMemberParams, ax as ListBuildHooksParams, ay as BuildHook, az as CreateBuildHookParams, aA as UpdateBuildHookParams, aB as DeleteBuildHookParams, aC as TestWebhookParams, aD as ListWebhooksParams, aE as Webhook, aF as CreateWebhookParams, aG as UpdateWebhookParams, aH as DeleteWebhookParams, aI as StoreRuntimeConfig, aJ as FindStoreMediaParams, aK as Media, L as Location, aL as CreateLocationParams, aM as UpdateLocationParams, aN as DeleteLocationParams, aO as CreateMarketParams, aP as UpdateMarketParams, aQ as DeleteMarketParams, aR as ListPaymentProvidersParams, aS as PaymentProvider, aT as RefreshPaymentProvidersParams, aU as ConnectStripePaymentProviderParams, aV as StripePaymentProviderConnectResponse, aW as DeletePaymentProviderParams, aX as GetMediaParams, aY as UploadStoreMediaParams, aZ as DeleteStoreMediaParams, a_ as GetStoreMediaParams, a$ as UpdateMediaParams, b0 as TrackEmailOpenParams, b1 as TriggerNotificationParams, b2 as CreateMailboxParams, b3 as Mailbox, b4 as UpdateMailboxParams, b5 as GetMailboxParams, b6 as TestMailboxParams, b7 as TestMailboxResult, b8 as PrepareMailboxParams, b9 as FindMailboxesParams, ba as GetSocialCapabilitiesParams, bb as SocialProviderCapability, bc as ListSocialAccountsParams, bd as SocialAccount, be as ConnectSocialAccountParams, bf as SocialConnectResponse, bg as GetSocialOAuthAttemptParams, bh as SocialOAuthCallbackResponse, bi as SelectSocialDestinationParams, bj as DeleteSocialAccountParams, bk as CreateSocialPublicationParams, bl as SocialPublicationMutationResponse, bm as UpdateSocialPublicationParams, bn as GetSocialPublicationParams, bo as SocialPublication, bp as FindSocialPublicationsParams, bq as ValidateSocialPublicationParams, br as SocialPublicationValidation, bs as ScheduleSocialPublicationParams, bt as CancelSocialPublicationParams, bu as GetSocialPublicationCommentsParams, bv as SocialPublicationComment, bw as SyncSocialPublicationCommentsParams, bx as GetSocialPublicationCommentThreadParams, by as SyncSocialPublicationCommentThreadParams, bz as FindSocialPublicationCommentsParams, bA as ClassifySocialPublicationCommentsParams, bB as SocialPublicationCommentClassificationResult, bC as ReplySocialPublicationCommentParams, bD as SocialPublicationCommentReplyResponse, bE as GetSocialPublicationMetricsParams, bF as SocialPublicationMetricSnapshot, bG as SyncSocialPublicationMetricsParams, bH as SyncSocialEngagementParams, bI as SocialPublicationEngagementSyncResult, bJ as CreateCollectionParams, l as Collection, bK as UpdateCollectionParams, bL as DeleteCollectionParams, G as GetCollectionParams, bM as GetCollectionsParams, bN as CreateEntryParams, a as CollectionEntry, bO as UpdateEntryParams, bP as DeleteEntryParams, m as GetEntryParams, n as GetEntriesParams, bQ as CreateFormParams, b as Form, bR as UpdateFormParams, bS as DeleteFormParams, p as GetFormParams, bT as GetFormsParams, q as SubmitFormParams, r as FormSubmission, bU as GetFormSubmissionsParams, bV as GetFormSubmissionParams, bW as UpdateFormSubmissionParams, bX as CreateTaxonomyParams, T as Taxonomy, bY as UpdateTaxonomyParams, bZ as DeleteTaxonomyParams, s as GetTaxonomyParams, b_ as GetTaxonomiesParams, t as GetTaxonomyChildrenParams, b$ as CreateEmailTemplateParams, c0 as EmailTemplate, c1 as UpdateEmailTemplateParams, c2 as DeleteEmailTemplateParams, c3 as GetEmailTemplateParams, c4 as GetEmailTemplatesParams, c5 as PreviewEmailTemplateParams, c6 as PreviewEmailTemplateResponse, c7 as CreateProductParams, c as Product, c8 as UpdateProductParams, c9 as DeleteProductParams, u as GetProductParams, v as GetProductsParams, ca as UpdateOrderParams, J as Order, I as GetOrderParams, K as GetOrdersParams, cb as GetQuoteParams, cc as ProcessOrderRefundParams, cd as ProcessOrderRefundResponse, N as DownloadDigitalAccessParams, V as DigitalAccessDownloadResponse, ce as GetShippingRatesParams, cf as ShippingRate, cg as ShipParams, ch as ShipResult, ci as RefundShippingLabelParams, cj as ShippingLabelRefund, ck as CreateCartParams, cl as FindCartsParams, cm as CreateServiceParams, S as Service, cn as UpdateServiceParams, co as DeleteServiceParams, W as GetServiceParams, X as GetServicesParams, _ as GetAvailabilityParams, e as AvailabilityResponse, Y as FindServiceProvidersParams, cp as ServiceProvider, cq as CreateServiceProviderParams, cr as UpdateServiceProviderParams, cs as DeleteServiceProviderParams, ct as CreateProviderParams, d as Provider, cu as UpdateProviderParams, cv as DeleteProviderParams, $ as GetProviderParams, a0 as GetProvidersParams, cw as CreatePromoCodeParams, cx as PromoCode, cy as UpdatePromoCodeParams, cz as DeletePromoCodeParams, cA as GetPromoCodeParams, cB as GetPromoCodesParams, cC as CreateContactParams, cD as Contact$1, cE as GetContactParams, j as ContactDetail, cF as FindContactsParams, cG as UpdateContactParams, cH as MergeContactsParams, cI as ImportContactsParams, cJ as ImportContactsResult, cK as CreateContactListParams, a2 as ContactList, cL as UpdateContactListParams, a1 as GetContactListParams, a3 as FindContactListsParams, cM as ImportContactsIntoContactListParams, cN as ImportContactsIntoContactListResult, cO as ImportContactListPreviewParams, cP as ImportContactsPreviewResult, cQ as AddContactListContactParams, cR as ContactListMember, cS as UpdateContactListContactParams, cT as RemoveContactListContactParams, cU as FindContactListContactsParams, cV as Action, cW as FindActionsParams, cX as CreateCampaignParams, cY as Campaign, cZ as UpdateCampaignParams, c_ as GetCampaignParams, c$ as FindCampaignsParams, d0 as LaunchCampaignParams, d1 as DuplicateCampaignParams, d2 as GetCampaignLaunchReadinessParams, d3 as CampaignLaunchReadiness, d4 as ImportCampaignEnrollmentsParams, d5 as CampaignEnrollmentImportResult, d6 as GenerateOutreachPersonalizedDraftsParams, d7 as FindCampaignEnrollmentsParams, d8 as CampaignEnrollment, d9 as GetCampaignEnrollmentConversationParams, da as CampaignEnrollmentConversationResponse, db as UpdateCampaignEnrollmentParams, dc as UpdateCampaignEnrollmentDraftParams, dd as UpdateCampaignEnrollmentStepExecutionParams, de as ReplyCampaignEnrollmentParams, df as StopCampaignEnrollmentParams, dg as FindCampaignMessagesParams, dh as CampaignMessage, di as UpdateCampaignMessageParams, dj as CreateSuppressionParams, dk as Suppression, dl as UpdateSuppressionParams, dm as GetSuppressionParams, dn as FindSuppressionsParams, dp as CreateLeadResearchRunParams, dq as LeadResearchRun, dr as FindLeadResearchRunsParams, ds as GetLeadResearchRunParams, dt as UpdateLeadResearchRunParams, du as CancelLeadResearchRunParams, dv as SendLeadResearchMessageParams, dw as SendLeadResearchMessageResult, dx as FindLeadResearchMessagesParams, dy as LeadResearchMessage, dz as ValidateLeadEmailParams, dA as LeadEmailValidationResult, dB as CreateWorkflowParams, dC as Workflow, dD as UpdateWorkflowParams, dE as DeleteWorkflowParams, dF as GetWorkflowParams, dG as GetWorkflowsParams, dH as TriggerWorkflowParams, dI as WorkflowExecution, dJ as GetWorkflowExecutionsParams, dK as GetWorkflowExecutionParams, dL as GetWorkflowAccountsParams, dM as WorkflowAccount, dN as GetWorkflowAccountConnectUrlParams, dO as WorkflowAccountConnectUrl, dP as DeleteWorkflowAccountParams, a4 as SubscribeContactListParams, a5 as ContactListSubscribeResponse, a6 as ContactListAccessParams, a7 as ContactListAccessResponse, a8 as ContactListContentAccessParams, a9 as ContactListContentAccessResponse } from './api-DvsFdOaF.cjs';
|
|
2
|
+
import { f as formatPayment, a as formatMinor, g as getCurrencySymbol, b as getCurrencyName, i as isValidKey, v as validateKey, t as toKey, n as nameToKey, c as getAvailableStock, d as getReservedStock, h as hasStock, e as getInventoryAt, j as getFirstAvailableFCId } from './index-BC06yiuv.cjs';
|
|
3
3
|
|
|
4
4
|
interface CartApi {
|
|
5
5
|
current(params?: GetCurrentCartParams, options?: RequestOptions$1): Promise<Cart>;
|
|
@@ -355,6 +355,9 @@ interface AnalyticsResponse {
|
|
|
355
355
|
blocks?: AnalyticsBlockResponse[];
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
+
type SupportAgentStatus = "draft" | "active" | "archived";
|
|
359
|
+
type SupportChannelStatus = "draft" | "active" | "disabled" | "archived";
|
|
360
|
+
type SupportChannelType = "web" | "email";
|
|
358
361
|
interface SupportAgentNode {
|
|
359
362
|
type: "message" | "input" | "ai_handoff" | "action";
|
|
360
363
|
text?: string;
|
|
@@ -395,18 +398,53 @@ interface SupportAgent {
|
|
|
395
398
|
key: string;
|
|
396
399
|
store_id: string;
|
|
397
400
|
name: string;
|
|
398
|
-
status:
|
|
401
|
+
status: SupportAgentStatus;
|
|
399
402
|
entry_node_id: string;
|
|
400
403
|
nodes: Record<string, SupportAgentNode>;
|
|
401
404
|
edges: SupportAgentEdge[];
|
|
402
405
|
ai_config?: SupportAgentAiConfig;
|
|
406
|
+
channel_ids: string[];
|
|
407
|
+
notes?: string | null;
|
|
403
408
|
created_at: number;
|
|
404
409
|
updated_at: number;
|
|
405
410
|
}
|
|
411
|
+
type SupportChannelConfig = {
|
|
412
|
+
type: "web";
|
|
413
|
+
widget_key: string;
|
|
414
|
+
allowed_origins?: string[];
|
|
415
|
+
} | {
|
|
416
|
+
type: "email";
|
|
417
|
+
mailbox_id: string;
|
|
418
|
+
};
|
|
419
|
+
interface SupportChannel {
|
|
420
|
+
id: string;
|
|
421
|
+
store_id: string;
|
|
422
|
+
key: string;
|
|
423
|
+
name: string;
|
|
424
|
+
status: SupportChannelStatus;
|
|
425
|
+
channel_type: SupportChannelType;
|
|
426
|
+
config: SupportChannelConfig;
|
|
427
|
+
created_at: number;
|
|
428
|
+
updated_at: number;
|
|
429
|
+
}
|
|
430
|
+
type SupportConversationChannelContext = {
|
|
431
|
+
type: "web";
|
|
432
|
+
visitor_id?: string | null;
|
|
433
|
+
session_id?: string | null;
|
|
434
|
+
} | {
|
|
435
|
+
type: "email";
|
|
436
|
+
thread_id: string;
|
|
437
|
+
reply_to: string;
|
|
438
|
+
message_id?: string | null;
|
|
439
|
+
references: string[];
|
|
440
|
+
};
|
|
406
441
|
interface SupportConversation {
|
|
407
442
|
id: string;
|
|
408
443
|
store_id: string;
|
|
409
444
|
agent_id?: string;
|
|
445
|
+
channel_id?: string | null;
|
|
446
|
+
channel_type: SupportChannelType;
|
|
447
|
+
channel_context: SupportConversationChannelContext;
|
|
410
448
|
current_node_id?: string;
|
|
411
449
|
contact_id?: string;
|
|
412
450
|
assigned_account_id?: string | null;
|
|
@@ -433,6 +471,10 @@ interface SupportConversationResponse {
|
|
|
433
471
|
interface StartSupportConversationParams {
|
|
434
472
|
store_id: string;
|
|
435
473
|
agent_key?: string;
|
|
474
|
+
channel_id?: string;
|
|
475
|
+
visitor_id?: string;
|
|
476
|
+
session_id?: string;
|
|
477
|
+
contact_id?: string;
|
|
436
478
|
metadata?: Record<string, unknown>;
|
|
437
479
|
}
|
|
438
480
|
interface SendSupportMessageParams {
|
|
@@ -446,6 +488,15 @@ interface SendSupportMessageParams {
|
|
|
446
488
|
content: string;
|
|
447
489
|
};
|
|
448
490
|
}
|
|
491
|
+
interface ReceiveSupportChannelMessageParams {
|
|
492
|
+
store_id: string;
|
|
493
|
+
channel_id: string;
|
|
494
|
+
channel_context: SupportConversationChannelContext;
|
|
495
|
+
external_message_id?: string;
|
|
496
|
+
content: string;
|
|
497
|
+
metadata?: Record<string, unknown>;
|
|
498
|
+
received_at?: number;
|
|
499
|
+
}
|
|
449
500
|
interface ReplySupportConversationParams {
|
|
450
501
|
store_id: string;
|
|
451
502
|
conversation_id: string;
|
|
@@ -468,25 +519,63 @@ interface GetSupportConversationParams {
|
|
|
468
519
|
after_created_at?: number;
|
|
469
520
|
after_id?: string;
|
|
470
521
|
}
|
|
522
|
+
interface FindSupportConversationsParams {
|
|
523
|
+
store_id: string;
|
|
524
|
+
status?: string;
|
|
525
|
+
agent_id?: string;
|
|
526
|
+
channel_id?: string;
|
|
527
|
+
channel_type?: SupportChannelType;
|
|
528
|
+
query?: string;
|
|
529
|
+
limit?: number;
|
|
530
|
+
cursor?: string;
|
|
531
|
+
}
|
|
471
532
|
interface CreateSupportAgentParams {
|
|
472
533
|
store_id: string;
|
|
473
534
|
key: string;
|
|
474
535
|
name: string;
|
|
475
|
-
status?:
|
|
536
|
+
status?: SupportAgentStatus;
|
|
476
537
|
entry_node_id: string;
|
|
477
538
|
nodes: Record<string, SupportAgentNode>;
|
|
478
539
|
edges: SupportAgentEdge[];
|
|
479
540
|
ai_config?: SupportAgentAiConfig;
|
|
541
|
+
channel_ids?: string[];
|
|
542
|
+
notes?: string | null;
|
|
480
543
|
}
|
|
481
544
|
interface UpdateSupportAgentParams {
|
|
482
545
|
store_id: string;
|
|
483
546
|
id: string;
|
|
484
547
|
name?: string;
|
|
485
|
-
status?:
|
|
548
|
+
status?: SupportAgentStatus;
|
|
486
549
|
entry_node_id?: string;
|
|
487
550
|
nodes?: Record<string, SupportAgentNode>;
|
|
488
551
|
edges?: SupportAgentEdge[];
|
|
489
552
|
ai_config?: SupportAgentAiConfig;
|
|
553
|
+
channel_ids?: string[];
|
|
554
|
+
notes?: string | null;
|
|
555
|
+
}
|
|
556
|
+
interface CreateSupportChannelParams {
|
|
557
|
+
store_id: string;
|
|
558
|
+
key: string;
|
|
559
|
+
name: string;
|
|
560
|
+
status?: SupportChannelStatus;
|
|
561
|
+
channel_type: SupportChannelType;
|
|
562
|
+
config: SupportChannelConfig;
|
|
563
|
+
}
|
|
564
|
+
interface UpdateSupportChannelParams {
|
|
565
|
+
store_id: string;
|
|
566
|
+
id: string;
|
|
567
|
+
key?: string;
|
|
568
|
+
name?: string;
|
|
569
|
+
status?: SupportChannelStatus;
|
|
570
|
+
channel_type?: SupportChannelType;
|
|
571
|
+
config?: SupportChannelConfig;
|
|
572
|
+
}
|
|
573
|
+
interface FindSupportChannelsParams {
|
|
574
|
+
store_id: string;
|
|
575
|
+
status?: SupportChannelStatus;
|
|
576
|
+
channel_type?: SupportChannelType;
|
|
577
|
+
limit?: number;
|
|
578
|
+
cursor?: string;
|
|
490
579
|
}
|
|
491
580
|
|
|
492
581
|
interface TimelineParams {
|
|
@@ -951,6 +1040,9 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
951
1040
|
rates: ShippingRate[];
|
|
952
1041
|
}>;
|
|
953
1042
|
ship: (params: ShipParams, options?: RequestOptions$1) => Promise<ShipResult>;
|
|
1043
|
+
refundShippingLabel: (params: RefundShippingLabelParams, options?: RequestOptions$1) => Promise<{
|
|
1044
|
+
refund: ShippingLabelRefund;
|
|
1045
|
+
}>;
|
|
954
1046
|
};
|
|
955
1047
|
cart: {
|
|
956
1048
|
create: (params: CreateCartParams, options?: RequestOptions$1) => Promise<Cart>;
|
|
@@ -1098,10 +1190,24 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
1098
1190
|
getExecution: (params: GetWorkflowExecutionParams, options?: RequestOptions$1) => Promise<WorkflowExecution>;
|
|
1099
1191
|
listAccounts: (params?: GetWorkflowAccountsParams, options?: RequestOptions$1) => Promise<WorkflowAccount[]>;
|
|
1100
1192
|
getAccountConnectUrl: (params: GetWorkflowAccountConnectUrlParams, options?: RequestOptions$1) => Promise<WorkflowAccountConnectUrl>;
|
|
1101
|
-
connectAccount: (params: ConnectWorkflowAccountParams, options?: RequestOptions$1) => Promise<WorkflowAccount>;
|
|
1102
1193
|
deleteAccount: (params: DeleteWorkflowAccountParams, options?: RequestOptions$1) => Promise<boolean>;
|
|
1103
1194
|
};
|
|
1104
1195
|
support: {
|
|
1196
|
+
createChannel: (params: CreateSupportChannelParams, opts?: RequestOptions$1) => Promise<SupportChannel>;
|
|
1197
|
+
getChannel: (params: {
|
|
1198
|
+
store_id: string;
|
|
1199
|
+
id: string;
|
|
1200
|
+
}, opts?: RequestOptions$1) => Promise<SupportChannel>;
|
|
1201
|
+
findChannels: (params: FindSupportChannelsParams, opts?: RequestOptions$1) => Promise<{
|
|
1202
|
+
items: SupportChannel[];
|
|
1203
|
+
cursor?: string;
|
|
1204
|
+
}>;
|
|
1205
|
+
updateChannel: (params: UpdateSupportChannelParams, opts?: RequestOptions$1) => Promise<SupportChannel>;
|
|
1206
|
+
deleteChannel: (params: {
|
|
1207
|
+
store_id: string;
|
|
1208
|
+
id: string;
|
|
1209
|
+
}, opts?: RequestOptions$1) => Promise<void>;
|
|
1210
|
+
receiveChannelMessage: (params: ReceiveSupportChannelMessageParams, opts?: RequestOptions$1) => Promise<SupportConversationResponse>;
|
|
1105
1211
|
createAgent: (params: CreateSupportAgentParams, opts?: RequestOptions$1) => Promise<SupportAgent>;
|
|
1106
1212
|
getAgent: (params: {
|
|
1107
1213
|
store_id: string;
|
|
@@ -1121,14 +1227,7 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
1121
1227
|
store_id: string;
|
|
1122
1228
|
id: string;
|
|
1123
1229
|
}, opts?: RequestOptions$1) => Promise<void>;
|
|
1124
|
-
findConversations: (params: {
|
|
1125
|
-
store_id: string;
|
|
1126
|
-
status?: string;
|
|
1127
|
-
agent_id?: string;
|
|
1128
|
-
query?: string;
|
|
1129
|
-
limit?: number;
|
|
1130
|
-
cursor?: string;
|
|
1131
|
-
}, opts?: RequestOptions$1) => Promise<{
|
|
1230
|
+
findConversations: (params: FindSupportConversationsParams, opts?: RequestOptions$1) => Promise<{
|
|
1132
1231
|
items: SupportConversation[];
|
|
1133
1232
|
cursor?: string;
|
|
1134
1233
|
}>;
|
|
@@ -1322,6 +1421,7 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
1322
1421
|
find(params?: FindContactListsParams, options?: RequestOptions$1): Promise<PaginatedResponse<ContactList>>;
|
|
1323
1422
|
subscribe(params: SubscribeContactListParams, options?: RequestOptions$1): Promise<ContactListSubscribeResponse>;
|
|
1324
1423
|
checkAccess(params: ContactListAccessParams, options?: RequestOptions$1): Promise<ContactListAccessResponse>;
|
|
1424
|
+
checkContentAccess(params: ContactListContentAccessParams, options?: RequestOptions$1): Promise<ContactListContentAccessResponse>;
|
|
1325
1425
|
unsubscribe(token: string, options?: RequestOptions$1): Promise<{
|
|
1326
1426
|
success: boolean;
|
|
1327
1427
|
}>;
|
|
@@ -1393,4 +1493,4 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
1393
1493
|
};
|
|
1394
1494
|
};
|
|
1395
1495
|
|
|
1396
|
-
export { type AnalyticsActionReportKey as $, type AuthStateListener as A, type CartControllerListener as B, type CreateStorefrontConfig as C, type CartControllerQuoteParams as D, type ExperimentUseResponse as E, type CartControllerRefreshParams as F, type GetSupportConversationParams as G, type CartControllerRemoveItemParams as H, type IdentifyResponse as I, type CartControllerState as J, type CartControllerUpdateParams as K, type CommonActionKey as L, type HttpClientConfig as M, createCartController as N, createStorefront as O, type ActionFeedCategory as P, type ActionFeedCursor as Q, type ActionFeedData as R, type StartSupportConversationParams as S, type TrackActionParams as T, type UseExperimentParams as U, type VerifyResponse as V, type ActionFeedItem as W, type ActionFeedSummary as X, type AdminSession as Y, type AdminSessionInternal as Z, type AdminSessionUpdater as _, type ContactSession as a, type AnalyticsBlockRequest as a0, type AnalyticsBlockResponse as a1, type AnalyticsBreakdownData as a2, type AnalyticsBreakdownItem as a3, type AnalyticsBreakdownReportKey as a4, type AnalyticsCompositeReportKey as a5, type AnalyticsMetricData as a6, type AnalyticsMetricReportKey as a7, type AnalyticsReport as a8, type AnalyticsReportKey as a9, type
|
|
1496
|
+
export { type AnalyticsActionReportKey as $, type AuthStateListener as A, type CartControllerListener as B, type CreateStorefrontConfig as C, type CartControllerQuoteParams as D, type ExperimentUseResponse as E, type CartControllerRefreshParams as F, type GetSupportConversationParams as G, type CartControllerRemoveItemParams as H, type IdentifyResponse as I, type CartControllerState as J, type CartControllerUpdateParams as K, type CommonActionKey as L, type HttpClientConfig as M, createCartController as N, createStorefront as O, type ActionFeedCategory as P, type ActionFeedCursor as Q, type ActionFeedData as R, type StartSupportConversationParams as S, type TrackActionParams as T, type UseExperimentParams as U, type VerifyResponse as V, type ActionFeedItem as W, type ActionFeedSummary as X, type AdminSession as Y, type AdminSessionInternal as Z, type AdminSessionUpdater as _, type ContactSession as a, type UpdateSupportChannelParams as a$, type AnalyticsBlockRequest as a0, type AnalyticsBlockResponse as a1, type AnalyticsBreakdownData as a2, type AnalyticsBreakdownItem as a3, type AnalyticsBreakdownReportKey as a4, type AnalyticsCompositeReportKey as a5, type AnalyticsMetricData as a6, type AnalyticsMetricReportKey as a7, type AnalyticsReport as a8, type AnalyticsReportKey as a9, type GetExperimentParams as aA, type LocationCountry as aB, type LocationState as aC, type OutreachFunnelData as aD, type OutreachFunnelStage as aE, type OutreachOverviewData as aF, type ReceiveSupportChannelMessageParams as aG, type ReplySupportConversationParams as aH, type ResolveSupportConversationParams as aI, type RevenueByCurrencyData as aJ, SDK_VERSION as aK, SUPPORTED_FRAMEWORKS as aL, type SupportAction as aM, type SupportAgent as aN, type SupportAgentAiConfig as aO, type SupportAgentEdge as aP, type SupportAgentNode as aQ, type SupportAgentStatus as aR, type SupportChannel as aS, type SupportChannelConfig as aT, type SupportChannelStatus as aU, type SupportChannelType as aV, type SupportConversation as aW, type SupportConversationChannelContext as aX, type SupportMessage as aY, type TimelineParams as aZ, type UpdateExperimentParams as a_, type AnalyticsReportRequest as aa, type AnalyticsRequest as ab, type AnalyticsResponse as ac, type AnalyticsTimeRange as ad, type ApiConfig as ae, type AssignSupportConversationParams as af, type BusinessOverviewData as ag, type ContactFunnelData as ah, type ContactFunnelStage as ai, type ContactSessionInternal as aj, type ContactSessionUpdater as ak, type CreateAdminConfig as al, type CreateExperimentParams as am, type CreateSupportChannelParams as an, type DataHealthData as ao, type EdgeTrigger as ap, type EntityStatusOverviewData as aq, type Experiment as ar, type ExperimentResults as as, type ExperimentStatus as at, type ExperimentVariant as au, type ExperimentVariantResult as av, type FindExperimentsParams as aw, type FindSupportChannelsParams as ax, type FindSupportConversationsParams as ay, type GetCountriesResponse as az, type ContactToken as b, type WorkflowTool as b0, type WorkflowToolOperation as b1, type WorkflowToolResource as b2, createAdmin as b3, type CartController as c, type SupportConversationResponse as d, type SendSupportMessageParams as e, formatBlockValue as f, getBlockLabel as g, extractBlockValues as h, findTimeZone as i, humanize as j, categorify as k, formatDate as l, getSvgContentForAstro as m, fetchSvgContent as n, injectSvgIntoElement as o, prepareBlocksForSubmission as p, type StorefrontAction as q, type AuthStorage as r, slugify as s, COMMON_ACTION_KEYS as t, type CartApi as u, validatePhoneNumber as v, type CartControllerAddItemParams as w, type CartControllerCheckoutParams as x, type CartControllerClearParams as y, type CartControllerInitParams as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as GetCurrentCartParams, R as RequestOptions$1, C as Cart, x as GetCartParams, U as UpdateCartParams, y as AddCartItemParams, z as RemoveCartItemParams, D as ClearCartParams, Q as QuoteCartParams, f as OrderQuote, H as CheckoutCartParams, O as OrderCheckoutResult,
|
|
2
|
-
import { f as formatPayment, a as formatMinor, g as getCurrencySymbol, b as getCurrencyName, i as isValidKey, v as validateKey, t as toKey, n as nameToKey, c as getAvailableStock, d as getReservedStock, h as hasStock, e as getInventoryAt, j as getFirstAvailableFCId } from './index-
|
|
1
|
+
import { w as GetCurrentCartParams, R as RequestOptions$1, C as Cart, x as GetCartParams, U as UpdateCartParams, y as AddCartItemParams, z as RemoveCartItemParams, D as ClearCartParams, Q as QuoteCartParams, f as OrderQuote, H as CheckoutCartParams, O as OrderCheckoutResult, ad as Contact, k as Store, M as Market, ae as UpdateAccountContactParams, af as AccountUpdateResponse, ag as DeleteAccountParams, ah as GetMeParams, ai as Account, aj as SearchAccountsParams, ak as MagicLinkVerifyParams, al as AuthToken, am as CreateStoreParams, an as UpdateStoreParams, ao as DeleteStoreParams, ap as GetStoreParams, aq as GetStoresParams, o as PaginatedResponse, ar as GetSubscriptionPlansParams, as as SubscriptionPlan, at as SubscribeParams, au as CreatePortalSessionParams, av as AddMemberParams, aw as RemoveMemberParams, ax as ListBuildHooksParams, ay as BuildHook, az as CreateBuildHookParams, aA as UpdateBuildHookParams, aB as DeleteBuildHookParams, aC as TestWebhookParams, aD as ListWebhooksParams, aE as Webhook, aF as CreateWebhookParams, aG as UpdateWebhookParams, aH as DeleteWebhookParams, aI as StoreRuntimeConfig, aJ as FindStoreMediaParams, aK as Media, L as Location, aL as CreateLocationParams, aM as UpdateLocationParams, aN as DeleteLocationParams, aO as CreateMarketParams, aP as UpdateMarketParams, aQ as DeleteMarketParams, aR as ListPaymentProvidersParams, aS as PaymentProvider, aT as RefreshPaymentProvidersParams, aU as ConnectStripePaymentProviderParams, aV as StripePaymentProviderConnectResponse, aW as DeletePaymentProviderParams, aX as GetMediaParams, aY as UploadStoreMediaParams, aZ as DeleteStoreMediaParams, a_ as GetStoreMediaParams, a$ as UpdateMediaParams, b0 as TrackEmailOpenParams, b1 as TriggerNotificationParams, b2 as CreateMailboxParams, b3 as Mailbox, b4 as UpdateMailboxParams, b5 as GetMailboxParams, b6 as TestMailboxParams, b7 as TestMailboxResult, b8 as PrepareMailboxParams, b9 as FindMailboxesParams, ba as GetSocialCapabilitiesParams, bb as SocialProviderCapability, bc as ListSocialAccountsParams, bd as SocialAccount, be as ConnectSocialAccountParams, bf as SocialConnectResponse, bg as GetSocialOAuthAttemptParams, bh as SocialOAuthCallbackResponse, bi as SelectSocialDestinationParams, bj as DeleteSocialAccountParams, bk as CreateSocialPublicationParams, bl as SocialPublicationMutationResponse, bm as UpdateSocialPublicationParams, bn as GetSocialPublicationParams, bo as SocialPublication, bp as FindSocialPublicationsParams, bq as ValidateSocialPublicationParams, br as SocialPublicationValidation, bs as ScheduleSocialPublicationParams, bt as CancelSocialPublicationParams, bu as GetSocialPublicationCommentsParams, bv as SocialPublicationComment, bw as SyncSocialPublicationCommentsParams, bx as GetSocialPublicationCommentThreadParams, by as SyncSocialPublicationCommentThreadParams, bz as FindSocialPublicationCommentsParams, bA as ClassifySocialPublicationCommentsParams, bB as SocialPublicationCommentClassificationResult, bC as ReplySocialPublicationCommentParams, bD as SocialPublicationCommentReplyResponse, bE as GetSocialPublicationMetricsParams, bF as SocialPublicationMetricSnapshot, bG as SyncSocialPublicationMetricsParams, bH as SyncSocialEngagementParams, bI as SocialPublicationEngagementSyncResult, bJ as CreateCollectionParams, l as Collection, bK as UpdateCollectionParams, bL as DeleteCollectionParams, G as GetCollectionParams, bM as GetCollectionsParams, bN as CreateEntryParams, a as CollectionEntry, bO as UpdateEntryParams, bP as DeleteEntryParams, m as GetEntryParams, n as GetEntriesParams, bQ as CreateFormParams, b as Form, bR as UpdateFormParams, bS as DeleteFormParams, p as GetFormParams, bT as GetFormsParams, q as SubmitFormParams, r as FormSubmission, bU as GetFormSubmissionsParams, bV as GetFormSubmissionParams, bW as UpdateFormSubmissionParams, bX as CreateTaxonomyParams, T as Taxonomy, bY as UpdateTaxonomyParams, bZ as DeleteTaxonomyParams, s as GetTaxonomyParams, b_ as GetTaxonomiesParams, t as GetTaxonomyChildrenParams, b$ as CreateEmailTemplateParams, c0 as EmailTemplate, c1 as UpdateEmailTemplateParams, c2 as DeleteEmailTemplateParams, c3 as GetEmailTemplateParams, c4 as GetEmailTemplatesParams, c5 as PreviewEmailTemplateParams, c6 as PreviewEmailTemplateResponse, c7 as CreateProductParams, c as Product, c8 as UpdateProductParams, c9 as DeleteProductParams, u as GetProductParams, v as GetProductsParams, ca as UpdateOrderParams, J as Order, I as GetOrderParams, K as GetOrdersParams, cb as GetQuoteParams, cc as ProcessOrderRefundParams, cd as ProcessOrderRefundResponse, N as DownloadDigitalAccessParams, V as DigitalAccessDownloadResponse, ce as GetShippingRatesParams, cf as ShippingRate, cg as ShipParams, ch as ShipResult, ci as RefundShippingLabelParams, cj as ShippingLabelRefund, ck as CreateCartParams, cl as FindCartsParams, cm as CreateServiceParams, S as Service, cn as UpdateServiceParams, co as DeleteServiceParams, W as GetServiceParams, X as GetServicesParams, _ as GetAvailabilityParams, e as AvailabilityResponse, Y as FindServiceProvidersParams, cp as ServiceProvider, cq as CreateServiceProviderParams, cr as UpdateServiceProviderParams, cs as DeleteServiceProviderParams, ct as CreateProviderParams, d as Provider, cu as UpdateProviderParams, cv as DeleteProviderParams, $ as GetProviderParams, a0 as GetProvidersParams, cw as CreatePromoCodeParams, cx as PromoCode, cy as UpdatePromoCodeParams, cz as DeletePromoCodeParams, cA as GetPromoCodeParams, cB as GetPromoCodesParams, cC as CreateContactParams, cD as Contact$1, cE as GetContactParams, j as ContactDetail, cF as FindContactsParams, cG as UpdateContactParams, cH as MergeContactsParams, cI as ImportContactsParams, cJ as ImportContactsResult, cK as CreateContactListParams, a2 as ContactList, cL as UpdateContactListParams, a1 as GetContactListParams, a3 as FindContactListsParams, cM as ImportContactsIntoContactListParams, cN as ImportContactsIntoContactListResult, cO as ImportContactListPreviewParams, cP as ImportContactsPreviewResult, cQ as AddContactListContactParams, cR as ContactListMember, cS as UpdateContactListContactParams, cT as RemoveContactListContactParams, cU as FindContactListContactsParams, cV as Action, cW as FindActionsParams, cX as CreateCampaignParams, cY as Campaign, cZ as UpdateCampaignParams, c_ as GetCampaignParams, c$ as FindCampaignsParams, d0 as LaunchCampaignParams, d1 as DuplicateCampaignParams, d2 as GetCampaignLaunchReadinessParams, d3 as CampaignLaunchReadiness, d4 as ImportCampaignEnrollmentsParams, d5 as CampaignEnrollmentImportResult, d6 as GenerateOutreachPersonalizedDraftsParams, d7 as FindCampaignEnrollmentsParams, d8 as CampaignEnrollment, d9 as GetCampaignEnrollmentConversationParams, da as CampaignEnrollmentConversationResponse, db as UpdateCampaignEnrollmentParams, dc as UpdateCampaignEnrollmentDraftParams, dd as UpdateCampaignEnrollmentStepExecutionParams, de as ReplyCampaignEnrollmentParams, df as StopCampaignEnrollmentParams, dg as FindCampaignMessagesParams, dh as CampaignMessage, di as UpdateCampaignMessageParams, dj as CreateSuppressionParams, dk as Suppression, dl as UpdateSuppressionParams, dm as GetSuppressionParams, dn as FindSuppressionsParams, dp as CreateLeadResearchRunParams, dq as LeadResearchRun, dr as FindLeadResearchRunsParams, ds as GetLeadResearchRunParams, dt as UpdateLeadResearchRunParams, du as CancelLeadResearchRunParams, dv as SendLeadResearchMessageParams, dw as SendLeadResearchMessageResult, dx as FindLeadResearchMessagesParams, dy as LeadResearchMessage, dz as ValidateLeadEmailParams, dA as LeadEmailValidationResult, dB as CreateWorkflowParams, dC as Workflow, dD as UpdateWorkflowParams, dE as DeleteWorkflowParams, dF as GetWorkflowParams, dG as GetWorkflowsParams, dH as TriggerWorkflowParams, dI as WorkflowExecution, dJ as GetWorkflowExecutionsParams, dK as GetWorkflowExecutionParams, dL as GetWorkflowAccountsParams, dM as WorkflowAccount, dN as GetWorkflowAccountConnectUrlParams, dO as WorkflowAccountConnectUrl, dP as DeleteWorkflowAccountParams, a4 as SubscribeContactListParams, a5 as ContactListSubscribeResponse, a6 as ContactListAccessParams, a7 as ContactListAccessResponse, a8 as ContactListContentAccessParams, a9 as ContactListContentAccessResponse } from './api-DvsFdOaF.js';
|
|
2
|
+
import { f as formatPayment, a as formatMinor, g as getCurrencySymbol, b as getCurrencyName, i as isValidKey, v as validateKey, t as toKey, n as nameToKey, c as getAvailableStock, d as getReservedStock, h as hasStock, e as getInventoryAt, j as getFirstAvailableFCId } from './index-CQd9b_7n.js';
|
|
3
3
|
|
|
4
4
|
interface CartApi {
|
|
5
5
|
current(params?: GetCurrentCartParams, options?: RequestOptions$1): Promise<Cart>;
|
|
@@ -355,6 +355,9 @@ interface AnalyticsResponse {
|
|
|
355
355
|
blocks?: AnalyticsBlockResponse[];
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
+
type SupportAgentStatus = "draft" | "active" | "archived";
|
|
359
|
+
type SupportChannelStatus = "draft" | "active" | "disabled" | "archived";
|
|
360
|
+
type SupportChannelType = "web" | "email";
|
|
358
361
|
interface SupportAgentNode {
|
|
359
362
|
type: "message" | "input" | "ai_handoff" | "action";
|
|
360
363
|
text?: string;
|
|
@@ -395,18 +398,53 @@ interface SupportAgent {
|
|
|
395
398
|
key: string;
|
|
396
399
|
store_id: string;
|
|
397
400
|
name: string;
|
|
398
|
-
status:
|
|
401
|
+
status: SupportAgentStatus;
|
|
399
402
|
entry_node_id: string;
|
|
400
403
|
nodes: Record<string, SupportAgentNode>;
|
|
401
404
|
edges: SupportAgentEdge[];
|
|
402
405
|
ai_config?: SupportAgentAiConfig;
|
|
406
|
+
channel_ids: string[];
|
|
407
|
+
notes?: string | null;
|
|
403
408
|
created_at: number;
|
|
404
409
|
updated_at: number;
|
|
405
410
|
}
|
|
411
|
+
type SupportChannelConfig = {
|
|
412
|
+
type: "web";
|
|
413
|
+
widget_key: string;
|
|
414
|
+
allowed_origins?: string[];
|
|
415
|
+
} | {
|
|
416
|
+
type: "email";
|
|
417
|
+
mailbox_id: string;
|
|
418
|
+
};
|
|
419
|
+
interface SupportChannel {
|
|
420
|
+
id: string;
|
|
421
|
+
store_id: string;
|
|
422
|
+
key: string;
|
|
423
|
+
name: string;
|
|
424
|
+
status: SupportChannelStatus;
|
|
425
|
+
channel_type: SupportChannelType;
|
|
426
|
+
config: SupportChannelConfig;
|
|
427
|
+
created_at: number;
|
|
428
|
+
updated_at: number;
|
|
429
|
+
}
|
|
430
|
+
type SupportConversationChannelContext = {
|
|
431
|
+
type: "web";
|
|
432
|
+
visitor_id?: string | null;
|
|
433
|
+
session_id?: string | null;
|
|
434
|
+
} | {
|
|
435
|
+
type: "email";
|
|
436
|
+
thread_id: string;
|
|
437
|
+
reply_to: string;
|
|
438
|
+
message_id?: string | null;
|
|
439
|
+
references: string[];
|
|
440
|
+
};
|
|
406
441
|
interface SupportConversation {
|
|
407
442
|
id: string;
|
|
408
443
|
store_id: string;
|
|
409
444
|
agent_id?: string;
|
|
445
|
+
channel_id?: string | null;
|
|
446
|
+
channel_type: SupportChannelType;
|
|
447
|
+
channel_context: SupportConversationChannelContext;
|
|
410
448
|
current_node_id?: string;
|
|
411
449
|
contact_id?: string;
|
|
412
450
|
assigned_account_id?: string | null;
|
|
@@ -433,6 +471,10 @@ interface SupportConversationResponse {
|
|
|
433
471
|
interface StartSupportConversationParams {
|
|
434
472
|
store_id: string;
|
|
435
473
|
agent_key?: string;
|
|
474
|
+
channel_id?: string;
|
|
475
|
+
visitor_id?: string;
|
|
476
|
+
session_id?: string;
|
|
477
|
+
contact_id?: string;
|
|
436
478
|
metadata?: Record<string, unknown>;
|
|
437
479
|
}
|
|
438
480
|
interface SendSupportMessageParams {
|
|
@@ -446,6 +488,15 @@ interface SendSupportMessageParams {
|
|
|
446
488
|
content: string;
|
|
447
489
|
};
|
|
448
490
|
}
|
|
491
|
+
interface ReceiveSupportChannelMessageParams {
|
|
492
|
+
store_id: string;
|
|
493
|
+
channel_id: string;
|
|
494
|
+
channel_context: SupportConversationChannelContext;
|
|
495
|
+
external_message_id?: string;
|
|
496
|
+
content: string;
|
|
497
|
+
metadata?: Record<string, unknown>;
|
|
498
|
+
received_at?: number;
|
|
499
|
+
}
|
|
449
500
|
interface ReplySupportConversationParams {
|
|
450
501
|
store_id: string;
|
|
451
502
|
conversation_id: string;
|
|
@@ -468,25 +519,63 @@ interface GetSupportConversationParams {
|
|
|
468
519
|
after_created_at?: number;
|
|
469
520
|
after_id?: string;
|
|
470
521
|
}
|
|
522
|
+
interface FindSupportConversationsParams {
|
|
523
|
+
store_id: string;
|
|
524
|
+
status?: string;
|
|
525
|
+
agent_id?: string;
|
|
526
|
+
channel_id?: string;
|
|
527
|
+
channel_type?: SupportChannelType;
|
|
528
|
+
query?: string;
|
|
529
|
+
limit?: number;
|
|
530
|
+
cursor?: string;
|
|
531
|
+
}
|
|
471
532
|
interface CreateSupportAgentParams {
|
|
472
533
|
store_id: string;
|
|
473
534
|
key: string;
|
|
474
535
|
name: string;
|
|
475
|
-
status?:
|
|
536
|
+
status?: SupportAgentStatus;
|
|
476
537
|
entry_node_id: string;
|
|
477
538
|
nodes: Record<string, SupportAgentNode>;
|
|
478
539
|
edges: SupportAgentEdge[];
|
|
479
540
|
ai_config?: SupportAgentAiConfig;
|
|
541
|
+
channel_ids?: string[];
|
|
542
|
+
notes?: string | null;
|
|
480
543
|
}
|
|
481
544
|
interface UpdateSupportAgentParams {
|
|
482
545
|
store_id: string;
|
|
483
546
|
id: string;
|
|
484
547
|
name?: string;
|
|
485
|
-
status?:
|
|
548
|
+
status?: SupportAgentStatus;
|
|
486
549
|
entry_node_id?: string;
|
|
487
550
|
nodes?: Record<string, SupportAgentNode>;
|
|
488
551
|
edges?: SupportAgentEdge[];
|
|
489
552
|
ai_config?: SupportAgentAiConfig;
|
|
553
|
+
channel_ids?: string[];
|
|
554
|
+
notes?: string | null;
|
|
555
|
+
}
|
|
556
|
+
interface CreateSupportChannelParams {
|
|
557
|
+
store_id: string;
|
|
558
|
+
key: string;
|
|
559
|
+
name: string;
|
|
560
|
+
status?: SupportChannelStatus;
|
|
561
|
+
channel_type: SupportChannelType;
|
|
562
|
+
config: SupportChannelConfig;
|
|
563
|
+
}
|
|
564
|
+
interface UpdateSupportChannelParams {
|
|
565
|
+
store_id: string;
|
|
566
|
+
id: string;
|
|
567
|
+
key?: string;
|
|
568
|
+
name?: string;
|
|
569
|
+
status?: SupportChannelStatus;
|
|
570
|
+
channel_type?: SupportChannelType;
|
|
571
|
+
config?: SupportChannelConfig;
|
|
572
|
+
}
|
|
573
|
+
interface FindSupportChannelsParams {
|
|
574
|
+
store_id: string;
|
|
575
|
+
status?: SupportChannelStatus;
|
|
576
|
+
channel_type?: SupportChannelType;
|
|
577
|
+
limit?: number;
|
|
578
|
+
cursor?: string;
|
|
490
579
|
}
|
|
491
580
|
|
|
492
581
|
interface TimelineParams {
|
|
@@ -951,6 +1040,9 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
951
1040
|
rates: ShippingRate[];
|
|
952
1041
|
}>;
|
|
953
1042
|
ship: (params: ShipParams, options?: RequestOptions$1) => Promise<ShipResult>;
|
|
1043
|
+
refundShippingLabel: (params: RefundShippingLabelParams, options?: RequestOptions$1) => Promise<{
|
|
1044
|
+
refund: ShippingLabelRefund;
|
|
1045
|
+
}>;
|
|
954
1046
|
};
|
|
955
1047
|
cart: {
|
|
956
1048
|
create: (params: CreateCartParams, options?: RequestOptions$1) => Promise<Cart>;
|
|
@@ -1098,10 +1190,24 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
1098
1190
|
getExecution: (params: GetWorkflowExecutionParams, options?: RequestOptions$1) => Promise<WorkflowExecution>;
|
|
1099
1191
|
listAccounts: (params?: GetWorkflowAccountsParams, options?: RequestOptions$1) => Promise<WorkflowAccount[]>;
|
|
1100
1192
|
getAccountConnectUrl: (params: GetWorkflowAccountConnectUrlParams, options?: RequestOptions$1) => Promise<WorkflowAccountConnectUrl>;
|
|
1101
|
-
connectAccount: (params: ConnectWorkflowAccountParams, options?: RequestOptions$1) => Promise<WorkflowAccount>;
|
|
1102
1193
|
deleteAccount: (params: DeleteWorkflowAccountParams, options?: RequestOptions$1) => Promise<boolean>;
|
|
1103
1194
|
};
|
|
1104
1195
|
support: {
|
|
1196
|
+
createChannel: (params: CreateSupportChannelParams, opts?: RequestOptions$1) => Promise<SupportChannel>;
|
|
1197
|
+
getChannel: (params: {
|
|
1198
|
+
store_id: string;
|
|
1199
|
+
id: string;
|
|
1200
|
+
}, opts?: RequestOptions$1) => Promise<SupportChannel>;
|
|
1201
|
+
findChannels: (params: FindSupportChannelsParams, opts?: RequestOptions$1) => Promise<{
|
|
1202
|
+
items: SupportChannel[];
|
|
1203
|
+
cursor?: string;
|
|
1204
|
+
}>;
|
|
1205
|
+
updateChannel: (params: UpdateSupportChannelParams, opts?: RequestOptions$1) => Promise<SupportChannel>;
|
|
1206
|
+
deleteChannel: (params: {
|
|
1207
|
+
store_id: string;
|
|
1208
|
+
id: string;
|
|
1209
|
+
}, opts?: RequestOptions$1) => Promise<void>;
|
|
1210
|
+
receiveChannelMessage: (params: ReceiveSupportChannelMessageParams, opts?: RequestOptions$1) => Promise<SupportConversationResponse>;
|
|
1105
1211
|
createAgent: (params: CreateSupportAgentParams, opts?: RequestOptions$1) => Promise<SupportAgent>;
|
|
1106
1212
|
getAgent: (params: {
|
|
1107
1213
|
store_id: string;
|
|
@@ -1121,14 +1227,7 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
1121
1227
|
store_id: string;
|
|
1122
1228
|
id: string;
|
|
1123
1229
|
}, opts?: RequestOptions$1) => Promise<void>;
|
|
1124
|
-
findConversations: (params: {
|
|
1125
|
-
store_id: string;
|
|
1126
|
-
status?: string;
|
|
1127
|
-
agent_id?: string;
|
|
1128
|
-
query?: string;
|
|
1129
|
-
limit?: number;
|
|
1130
|
-
cursor?: string;
|
|
1131
|
-
}, opts?: RequestOptions$1) => Promise<{
|
|
1230
|
+
findConversations: (params: FindSupportConversationsParams, opts?: RequestOptions$1) => Promise<{
|
|
1132
1231
|
items: SupportConversation[];
|
|
1133
1232
|
cursor?: string;
|
|
1134
1233
|
}>;
|
|
@@ -1322,6 +1421,7 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
1322
1421
|
find(params?: FindContactListsParams, options?: RequestOptions$1): Promise<PaginatedResponse<ContactList>>;
|
|
1323
1422
|
subscribe(params: SubscribeContactListParams, options?: RequestOptions$1): Promise<ContactListSubscribeResponse>;
|
|
1324
1423
|
checkAccess(params: ContactListAccessParams, options?: RequestOptions$1): Promise<ContactListAccessResponse>;
|
|
1424
|
+
checkContentAccess(params: ContactListContentAccessParams, options?: RequestOptions$1): Promise<ContactListContentAccessResponse>;
|
|
1325
1425
|
unsubscribe(token: string, options?: RequestOptions$1): Promise<{
|
|
1326
1426
|
success: boolean;
|
|
1327
1427
|
}>;
|
|
@@ -1393,4 +1493,4 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
1393
1493
|
};
|
|
1394
1494
|
};
|
|
1395
1495
|
|
|
1396
|
-
export { type AnalyticsActionReportKey as $, type AuthStateListener as A, type CartControllerListener as B, type CreateStorefrontConfig as C, type CartControllerQuoteParams as D, type ExperimentUseResponse as E, type CartControllerRefreshParams as F, type GetSupportConversationParams as G, type CartControllerRemoveItemParams as H, type IdentifyResponse as I, type CartControllerState as J, type CartControllerUpdateParams as K, type CommonActionKey as L, type HttpClientConfig as M, createCartController as N, createStorefront as O, type ActionFeedCategory as P, type ActionFeedCursor as Q, type ActionFeedData as R, type StartSupportConversationParams as S, type TrackActionParams as T, type UseExperimentParams as U, type VerifyResponse as V, type ActionFeedItem as W, type ActionFeedSummary as X, type AdminSession as Y, type AdminSessionInternal as Z, type AdminSessionUpdater as _, type ContactSession as a, type AnalyticsBlockRequest as a0, type AnalyticsBlockResponse as a1, type AnalyticsBreakdownData as a2, type AnalyticsBreakdownItem as a3, type AnalyticsBreakdownReportKey as a4, type AnalyticsCompositeReportKey as a5, type AnalyticsMetricData as a6, type AnalyticsMetricReportKey as a7, type AnalyticsReport as a8, type AnalyticsReportKey as a9, type
|
|
1496
|
+
export { type AnalyticsActionReportKey as $, type AuthStateListener as A, type CartControllerListener as B, type CreateStorefrontConfig as C, type CartControllerQuoteParams as D, type ExperimentUseResponse as E, type CartControllerRefreshParams as F, type GetSupportConversationParams as G, type CartControllerRemoveItemParams as H, type IdentifyResponse as I, type CartControllerState as J, type CartControllerUpdateParams as K, type CommonActionKey as L, type HttpClientConfig as M, createCartController as N, createStorefront as O, type ActionFeedCategory as P, type ActionFeedCursor as Q, type ActionFeedData as R, type StartSupportConversationParams as S, type TrackActionParams as T, type UseExperimentParams as U, type VerifyResponse as V, type ActionFeedItem as W, type ActionFeedSummary as X, type AdminSession as Y, type AdminSessionInternal as Z, type AdminSessionUpdater as _, type ContactSession as a, type UpdateSupportChannelParams as a$, type AnalyticsBlockRequest as a0, type AnalyticsBlockResponse as a1, type AnalyticsBreakdownData as a2, type AnalyticsBreakdownItem as a3, type AnalyticsBreakdownReportKey as a4, type AnalyticsCompositeReportKey as a5, type AnalyticsMetricData as a6, type AnalyticsMetricReportKey as a7, type AnalyticsReport as a8, type AnalyticsReportKey as a9, type GetExperimentParams as aA, type LocationCountry as aB, type LocationState as aC, type OutreachFunnelData as aD, type OutreachFunnelStage as aE, type OutreachOverviewData as aF, type ReceiveSupportChannelMessageParams as aG, type ReplySupportConversationParams as aH, type ResolveSupportConversationParams as aI, type RevenueByCurrencyData as aJ, SDK_VERSION as aK, SUPPORTED_FRAMEWORKS as aL, type SupportAction as aM, type SupportAgent as aN, type SupportAgentAiConfig as aO, type SupportAgentEdge as aP, type SupportAgentNode as aQ, type SupportAgentStatus as aR, type SupportChannel as aS, type SupportChannelConfig as aT, type SupportChannelStatus as aU, type SupportChannelType as aV, type SupportConversation as aW, type SupportConversationChannelContext as aX, type SupportMessage as aY, type TimelineParams as aZ, type UpdateExperimentParams as a_, type AnalyticsReportRequest as aa, type AnalyticsRequest as ab, type AnalyticsResponse as ac, type AnalyticsTimeRange as ad, type ApiConfig as ae, type AssignSupportConversationParams as af, type BusinessOverviewData as ag, type ContactFunnelData as ah, type ContactFunnelStage as ai, type ContactSessionInternal as aj, type ContactSessionUpdater as ak, type CreateAdminConfig as al, type CreateExperimentParams as am, type CreateSupportChannelParams as an, type DataHealthData as ao, type EdgeTrigger as ap, type EntityStatusOverviewData as aq, type Experiment as ar, type ExperimentResults as as, type ExperimentStatus as at, type ExperimentVariant as au, type ExperimentVariantResult as av, type FindExperimentsParams as aw, type FindSupportChannelsParams as ax, type FindSupportConversationsParams as ay, type GetCountriesResponse as az, type ContactToken as b, type WorkflowTool as b0, type WorkflowToolOperation as b1, type WorkflowToolResource as b2, createAdmin as b3, type CartController as c, type SupportConversationResponse as d, type SendSupportMessageParams as e, formatBlockValue as f, getBlockLabel as g, extractBlockValues as h, findTimeZone as i, humanize as j, categorify as k, formatDate as l, getSvgContentForAstro as m, fetchSvgContent as n, injectSvgIntoElement as o, prepareBlocksForSubmission as p, type StorefrontAction as q, type AuthStorage as r, slugify as s, COMMON_ACTION_KEYS as t, type CartApi as u, validatePhoneNumber as v, type CartControllerAddItemParams as w, type CartControllerCheckoutParams as x, type CartControllerClearParams as y, type CartControllerInitParams as z };
|