arky-sdk 0.7.111 → 0.7.113
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.cjs +112 -127
- package/dist/admin.cjs.map +1 -1
- package/dist/admin.d.cts +1 -1
- package/dist/admin.d.ts +1 -1
- package/dist/admin.js +112 -127
- package/dist/admin.js.map +1 -1
- package/dist/{index-DTg5d847.d.ts → index-C5gikdBg.d.cts} +2 -2
- package/dist/{index-BCAQZOwm.d.cts → index-MFMjlIfS.d.ts} +2 -2
- package/dist/index.cjs +137 -215
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -36
- package/dist/index.d.ts +22 -36
- package/dist/index.js +137 -215
- package/dist/index.js.map +1 -1
- package/dist/storefront.cjs +48 -87
- package/dist/storefront.cjs.map +1 -1
- package/dist/storefront.d.cts +1 -1
- package/dist/storefront.d.ts +1 -1
- package/dist/storefront.js +48 -87
- package/dist/storefront.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +152 -324
- package/dist/types.d.ts +152 -324
- package/dist/types.js.map +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Customer, Store, Market, AuthToken, RequestOptions as RequestOptions$1, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, GetMeParams, SearchAccountsParams, Location, CreateLocationParams, UpdateLocationParams, DeleteLocationParams, CreateMarketParams, UpdateMarketParams, DeleteMarketParams, CreateStoreParams, UpdateStoreParams, DeleteStoreParams, GetStoreParams, GetStoresParams, PaginatedResponse, GetSubscriptionPlansParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetStoreMediaParams2, Media, OAuthConnectParams, Integration, OAuthDisconnectParams, ListIntegrationsParams, CreateIntegrationParams, UpdateIntegrationParams, DeleteIntegrationParams, ListWebhooksParams, Webhook, CreateWebhookParams, UpdateWebhookParams, DeleteWebhookParams, GetMediaParams, UploadStoreMediaParams, DeleteStoreMediaParams, GetStoreMediaParams, UpdateMediaParams, TrackEmailOpenParams, TriggerNotificationParams, CreatePromoCodeParams, PromoCode, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, CreateNodeParams, Node, UpdateNodeParams, DeleteNodeParams, GetNodeParams, Block, TaxonomyEntry, NodeStatus, GetNodesParams, GetNodeChildrenParams, CreateFormParams, Form, UpdateFormParams, DeleteFormParams, GetFormParams, GetFormsParams, SubmitFormParams, FormSubmission, GetFormSubmissionsParams, GetFormSubmissionParams, UpdateFormSubmissionParams, CreateTaxonomyParams, Taxonomy, UpdateTaxonomyParams, DeleteTaxonomyParams, GetTaxonomyParams, GetTaxonomiesParams, GetTaxonomyChildrenParams, CreateEmailTemplateParams, EmailTemplate, UpdateEmailTemplateParams, DeleteEmailTemplateParams, GetEmailTemplateParams, GetEmailTemplatesParams, CreateProductParams, Product, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, Order, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderQuote,
|
|
2
|
-
export { Access, Address, AgentChatStatus, AgentStatus, ApiResponse, AudienceStatus, AudienceSubscription, AudienceSubscriptionPayment, AudienceSubscriptionProvider, AudienceSubscriptionSource, AudienceSubscriptionStatus, AudienceType, AvailabilitySlot,
|
|
3
|
-
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 { Customer, Store, Market, AuthToken, RequestOptions as RequestOptions$1, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, GetMeParams, SearchAccountsParams, Location, CreateLocationParams, UpdateLocationParams, DeleteLocationParams, CreateMarketParams, UpdateMarketParams, DeleteMarketParams, CreateStoreParams, UpdateStoreParams, DeleteStoreParams, GetStoreParams, GetStoresParams, PaginatedResponse, GetSubscriptionPlansParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetStoreMediaParams2, Media, OAuthConnectParams, Integration, OAuthDisconnectParams, ListIntegrationsParams, CreateIntegrationParams, UpdateIntegrationParams, DeleteIntegrationParams, ListWebhooksParams, Webhook, CreateWebhookParams, UpdateWebhookParams, DeleteWebhookParams, GetMediaParams, UploadStoreMediaParams, DeleteStoreMediaParams, GetStoreMediaParams, UpdateMediaParams, TrackEmailOpenParams, TriggerNotificationParams, CreatePromoCodeParams, PromoCode, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, CreateNodeParams, Node, UpdateNodeParams, DeleteNodeParams, GetNodeParams, Block, TaxonomyEntry, NodeStatus, GetNodesParams, GetNodeChildrenParams, CreateFormParams, Form, UpdateFormParams, DeleteFormParams, GetFormParams, GetFormsParams, SubmitFormParams, FormSubmission, GetFormSubmissionsParams, GetFormSubmissionParams, UpdateFormSubmissionParams, CreateTaxonomyParams, Taxonomy, UpdateTaxonomyParams, DeleteTaxonomyParams, GetTaxonomyParams, GetTaxonomiesParams, GetTaxonomyChildrenParams, CreateEmailTemplateParams, EmailTemplate, UpdateEmailTemplateParams, DeleteEmailTemplateParams, GetEmailTemplateParams, GetEmailTemplatesParams, CreateProductParams, Product, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, Order, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderQuote, OrderCheckoutParams, OrderCheckoutResult, GetAvailabilityParams, AvailabilityResponse, ProcessOrderRefundParams, CreateServiceParams, Service, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, FindServiceProvidersParams, ServiceProvider, CreateServiceProviderParams, UpdateServiceProviderParams, DeleteServiceProviderParams, CreateProviderParams, Provider, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, CreateCustomerParams, GetCustomerParams, CustomerDetail, FindCustomersParams, UpdateCustomerParams, MergeCustomersParams, CreateAudienceParams, Audience, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, GetAudienceSubscribersParams, AudienceSubscriber, AddAudienceSubscriberParams, AddAudienceSubscriberResponse, RemoveAudienceSubscriberParams, FindActivitiesParams, CreateAgentParams, Agent, UpdateAgentParams, DeleteAgentParams, GetAgentParams, GetAgentsParams, RunAgentParams, AgentChatMessage, GetAgentChatsParams, AgentChat, GetAgentChatParams, UpdateAgentChatParams, RateAgentChatParams, GetStoreChatsParams, CreateWorkflowParams, Workflow, UpdateWorkflowParams, DeleteWorkflowParams, GetWorkflowParams, GetWorkflowsParams, TriggerWorkflowParams, WorkflowExecution, GetWorkflowExecutionsParams, GetWorkflowExecutionParams, SubscribeAudienceParams, AudienceSubscribeResponse, AudienceAccessResponse } from './types.cjs';
|
|
2
|
+
export { Access, Address, AgentChatStatus, AgentStatus, ApiResponse, AudienceStatus, AudienceSubscription, AudienceSubscriptionPayment, AudienceSubscriptionProvider, AudienceSubscriptionSource, AudienceSubscriptionStatus, AudienceType, AvailabilitySlot, CheckoutItemInput, Condition, CustomerStatus, CustomsDeclaration, CustomsItem, DaySlots, Discount, EmailTemplateStatus, EshopCartItem, EshopItem, EshopQuoteItem, EshopStoreState, Event, EventAction, ExecutionStatus, FormEntry, FormField, FormFieldType, FormSchema, FormSchemaType, FormStatus, GalleryItem, GeoLocation, GeoLocationBlock, HistoryEntry, IntegrationProvider, InventoryLevel, Language, MediaResolution, NodeResult, OrderCancellationReason, OrderCheckoutCompatibleItemInput, OrderCheckoutItemInput, OrderItem, OrderItemSnapshot, OrderItemStatus, OrderPayment, OrderPaymentPromoCode, OrderPaymentProvider, OrderPaymentRefund, OrderPaymentStatus, OrderPaymentTax, OrderPaymentTaxLine, OrderQuoteCompatibleItemInput, OrderQuoteItemInput, OrderShipping, Parcel, PaymentMethod, PaymentMethodType, Price, ProductCheckoutItemInput, ProductInventory, ProductOrderItem, ProductOrderItemSnapshot, ProductQuoteItemInput, ProductQuoteLine, ProductQuoteLineAvailability, ProductStatus, ProductVariant, PromoCodeStatus, PromoCodeValidation, ProviderAvailability, ProviderStatus, ProviderTimelinePoint, ProviderWithTimeline, PurchaseLabelResult, QuoteItemInput, QuoteLine, ServiceCheckoutItemInput, ServiceCheckoutPart, ServiceDuration, ServiceOrderItem, ServiceOrderItemSnapshot, ServiceQuoteItem, ServiceQuoteItemInput, ServiceQuoteLine, ServiceQuoteLineAvailability, ServiceStatus, Shipment, ShipmentLine, ShippingAddress, ShippingMethod, ShippingStatus, ShippingWeightTier, Slot, SlotRange, SpecificDate, StoreSubscription, StoreSubscriptionPayment, StoreSubscriptionProvider, StoreSubscriptionSource, StoreSubscriptionStatus, SystemTemplateKey, TaxonomyField, TaxonomyFieldQuery, TaxonomyQuery, TaxonomySchema, TaxonomySchemaType, TaxonomyStatus, TimelinePoint, WebhookEventSubscription, WorkflowEdge, WorkflowHttpMethod, WorkflowHttpNode, WorkflowLoopNode, WorkflowNode, WorkflowStatus, WorkflowSwitchNode, WorkflowSwitchRule, WorkflowTransformNode, WorkflowTriggerNode, WorkingDay, WorkingHour, Zone, ZoneLocation } from './types.cjs';
|
|
3
|
+
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-C5gikdBg.cjs';
|
|
4
4
|
|
|
5
5
|
type CustomerToken = {
|
|
6
6
|
id: string;
|
|
@@ -26,14 +26,14 @@ interface TrackParams {
|
|
|
26
26
|
type: string;
|
|
27
27
|
payload?: Record<string, unknown>;
|
|
28
28
|
}
|
|
29
|
-
declare const COMMON_ACTIVITY_TYPES: readonly ["page_view", "product_view", "service_view", "provider_view", "cart_added", "cart_removed", "checkout_started", "purchase", "
|
|
29
|
+
declare const COMMON_ACTIVITY_TYPES: readonly ["page_view", "product_view", "service_view", "provider_view", "cart_added", "cart_removed", "checkout_started", "purchase", "order_created", "signin", "signup", "verified_email", "search", "share", "wishlist_added"];
|
|
30
30
|
type CommonActivityType = (typeof COMMON_ACTIVITY_TYPES)[number];
|
|
31
31
|
|
|
32
|
-
type EntityKind = "product" | "service" | "provider" | "node" | "customer" | "audience" | "agent" | "workflow" | "promo_code" | "email_template" | "form" | "taxonomy" | "media" | "order"
|
|
32
|
+
type EntityKind = "product" | "service" | "provider" | "node" | "customer" | "audience" | "agent" | "workflow" | "promo_code" | "email_template" | "form" | "taxonomy" | "media" | "order";
|
|
33
33
|
type Granularity = "hour" | "day" | "week" | "month" | {
|
|
34
34
|
minutes: 5 | 10 | 15 | 30;
|
|
35
35
|
};
|
|
36
|
-
type Measure = "count" | "uniq_customers" | "orders_created" | "
|
|
36
|
+
type Measure = "count" | "uniq_customers" | "orders_created" | "new_customers" | "form_submissions" | {
|
|
37
37
|
entity_state: {
|
|
38
38
|
entity: EntityKind;
|
|
39
39
|
status: string;
|
|
@@ -214,7 +214,7 @@ declare function fetchSvgContent(mediaObject: any): Promise<string | null>;
|
|
|
214
214
|
declare function getSvgContentForAstro(mediaObject: any): Promise<string>;
|
|
215
215
|
declare function injectSvgIntoElement(mediaObject: any, targetElement: HTMLElement, className?: string): Promise<void>;
|
|
216
216
|
|
|
217
|
-
declare const SDK_VERSION = "0.7.
|
|
217
|
+
declare const SDK_VERSION = "0.7.112";
|
|
218
218
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
219
219
|
|
|
220
220
|
interface ApiConfig {
|
|
@@ -497,22 +497,10 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
497
497
|
get: (params: GetOrderParams, options?: RequestOptions$1) => Promise<Order>;
|
|
498
498
|
find: (params: GetOrdersParams, options?: RequestOptions$1) => Promise<PaginatedResponse<Order>>;
|
|
499
499
|
getQuote: (params: GetQuoteParams, options?: RequestOptions$1) => Promise<OrderQuote>;
|
|
500
|
+
checkout: (params: OrderCheckoutParams, options?: RequestOptions$1) => Promise<OrderCheckoutResult>;
|
|
501
|
+
getAvailability: (params: GetAvailabilityParams, options?: RequestOptions$1) => Promise<AvailabilityResponse>;
|
|
500
502
|
processRefund: (params: ProcessOrderRefundParams, options?: RequestOptions$1) => Promise<Order>;
|
|
501
503
|
};
|
|
502
|
-
};
|
|
503
|
-
booking: {
|
|
504
|
-
addToCart: (slot: Slot) => void;
|
|
505
|
-
removeFromCart: (slotId: string) => void;
|
|
506
|
-
getCart: () => Slot[];
|
|
507
|
-
clearCart: () => void;
|
|
508
|
-
create: (params: CreateBookingParams, options?: RequestOptions$1) => Promise<Booking>;
|
|
509
|
-
update: (params: UpdateBookingParams, options?: RequestOptions$1) => Promise<Booking>;
|
|
510
|
-
get: (params: GetBookingParams, options?: RequestOptions$1) => Promise<Booking>;
|
|
511
|
-
find: (params: SearchBookingsParams, options?: RequestOptions$1) => Promise<PaginatedResponse<Booking>>;
|
|
512
|
-
getQuote: (params: GetBookingQuoteParams, options?: RequestOptions$1) => Promise<BookingQuote>;
|
|
513
|
-
processRefund: (params: ProcessBookingRefundParams, options?: RequestOptions$1) => Promise<Booking>;
|
|
514
|
-
getAvailability: (params: GetAvailabilityParams, options?: RequestOptions$1) => Promise<AvailabilityResponse>;
|
|
515
|
-
cancelItem: (params: CancelBookingItemParams, options?: RequestOptions$1) => Promise<Booking>;
|
|
516
504
|
service: {
|
|
517
505
|
create: (params: CreateServiceParams, options?: RequestOptions$1) => Promise<Service>;
|
|
518
506
|
update: (params: UpdateServiceParams, options?: RequestOptions$1) => Promise<Service>;
|
|
@@ -531,6 +519,15 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
531
519
|
get: (params: GetProviderParams, options?: RequestOptions$1) => Promise<Provider>;
|
|
532
520
|
find: (params: GetProvidersParams, options?: RequestOptions$1) => Promise<PaginatedResponse<Provider>>;
|
|
533
521
|
};
|
|
522
|
+
promoCode: {
|
|
523
|
+
createPromoCode(params: CreatePromoCodeParams, options?: RequestOptions$1): Promise<PromoCode>;
|
|
524
|
+
updatePromoCode(params: UpdatePromoCodeParams, options?: RequestOptions$1): Promise<PromoCode>;
|
|
525
|
+
deletePromoCode(params: DeletePromoCodeParams, options?: RequestOptions$1): Promise<{
|
|
526
|
+
deleted: boolean;
|
|
527
|
+
}>;
|
|
528
|
+
getPromoCode(params: GetPromoCodeParams, options?: RequestOptions$1): Promise<PromoCode>;
|
|
529
|
+
getPromoCodes(params: GetPromoCodesParams, options?: RequestOptions$1): Promise<PaginatedResponse<PromoCode>>;
|
|
530
|
+
};
|
|
534
531
|
};
|
|
535
532
|
crm: {
|
|
536
533
|
customer: {
|
|
@@ -764,22 +761,11 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
764
761
|
}, options?: RequestOptions$1): Promise<OrderQuote>;
|
|
765
762
|
checkout(params: OrderCheckoutParams & {
|
|
766
763
|
store_id?: string;
|
|
767
|
-
}, options?: RequestOptions$1): Promise<
|
|
764
|
+
}, options?: RequestOptions$1): Promise<OrderCheckoutResult>;
|
|
768
765
|
get(params: GetOrderParams, options?: RequestOptions$1): Promise<Order>;
|
|
769
766
|
find(params: GetOrdersParams, options?: RequestOptions$1): Promise<PaginatedResponse<Order>>;
|
|
767
|
+
getAvailability(params: GetAvailabilityParams, options?: RequestOptions$1): Promise<AvailabilityResponse>;
|
|
770
768
|
};
|
|
771
|
-
};
|
|
772
|
-
booking: {
|
|
773
|
-
addToCart(slot: Slot): void;
|
|
774
|
-
removeFromCart(slotId: string): void;
|
|
775
|
-
getCart(): Slot[];
|
|
776
|
-
clearCart(): void;
|
|
777
|
-
checkout(params?: Partial<BookingCheckoutParams>, options?: RequestOptions$1): Promise<Booking>;
|
|
778
|
-
get(params: GetBookingParams, options?: RequestOptions$1): Promise<Booking>;
|
|
779
|
-
find(params: SearchBookingsParams, options?: RequestOptions$1): Promise<PaginatedResponse<Booking>>;
|
|
780
|
-
getQuote(params: GetBookingQuoteParams, options?: RequestOptions$1): Promise<BookingQuote>;
|
|
781
|
-
getAvailability(params: GetAvailabilityParams, options?: RequestOptions$1): Promise<AvailabilityResponse>;
|
|
782
|
-
cancelItem(params: CancelBookingItemParams, options?: RequestOptions$1): Promise<Booking>;
|
|
783
769
|
service: {
|
|
784
770
|
get(params: GetServiceParams, options?: RequestOptions$1): Promise<Service>;
|
|
785
771
|
find(params: GetServicesParams, options?: RequestOptions$1): Promise<PaginatedResponse<Service>>;
|
|
@@ -819,7 +805,7 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
819
805
|
};
|
|
820
806
|
};
|
|
821
807
|
activity: {
|
|
822
|
-
COMMON_ACTIVITY_TYPES: readonly ["page_view", "product_view", "service_view", "provider_view", "cart_added", "cart_removed", "checkout_started", "purchase", "
|
|
808
|
+
COMMON_ACTIVITY_TYPES: readonly ["page_view", "product_view", "service_view", "provider_view", "cart_added", "cart_removed", "checkout_started", "purchase", "order_created", "signin", "signup", "verified_email", "search", "share", "wishlist_added"];
|
|
823
809
|
track(params: TrackParams): Promise<void>;
|
|
824
810
|
};
|
|
825
811
|
automation: {
|
|
@@ -907,4 +893,4 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
907
893
|
};
|
|
908
894
|
};
|
|
909
895
|
|
|
910
|
-
export { type AuthStorage as A, type Activity$1 as Activity, type AdminSession, type AdminSessionInternal, type AdminSessionUpdater, Agent, AgentChat, AgentChatMessage, type AnalyticsQuery, type AnalyticsQueryResponse, type AnalyticsRow, type ApiConfig, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, type AuthStateListener, AvailabilityResponse, Block,
|
|
896
|
+
export { type AuthStorage as A, type Activity$1 as Activity, type AdminSession, type AdminSessionInternal, type AdminSessionUpdater, Agent, AgentChat, AgentChatMessage, type AnalyticsQuery, type AnalyticsQueryResponse, type AnalyticsRow, type ApiConfig, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, type AuthStateListener, AvailabilityResponse, Block, COMMON_ACTIVITY_TYPES, type CommonActivityType, type CreateAdminConfig, CreateAgentParams, CreateLocationParams, type CreateStorefrontConfig, Customer, type CustomerSession, type CustomerSessionInternal, type CustomerSessionUpdater, DeleteLocationParams, type Dimension, EmailTemplate, type EntityKind, type Filter, type FilterField, type FilterOp, Form, FormSubmission, GetAgentParams, GetAgentsParams, GetAvailabilityParams, type GetCountriesResponse, GetShippingRatesParams, type Granularity, type HttpClientConfig, Integration, Location, type LocationCountry, type LocationState, Market, type Measure, Media, Node, NodeStatus, Order, type OrderBy, OrderQuote, PaginatedResponse, Product, PromoCode, Provider, SDK_VERSION, SUPPORTED_FRAMEWORKS, Service, ServiceProvider, ShipParams, ShipResult, ShippingRate, Store, Taxonomy, TaxonomyEntry, type TimeRange, type TimeUnit, type TimelineParams, type TrackParams, UpdateAgentParams, UpdateLocationParams, Webhook, Workflow, WorkflowExecution, createAdmin, createStorefront };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Customer, Store, Market, AuthToken, RequestOptions as RequestOptions$1, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, GetMeParams, SearchAccountsParams, Location, CreateLocationParams, UpdateLocationParams, DeleteLocationParams, CreateMarketParams, UpdateMarketParams, DeleteMarketParams, CreateStoreParams, UpdateStoreParams, DeleteStoreParams, GetStoreParams, GetStoresParams, PaginatedResponse, GetSubscriptionPlansParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetStoreMediaParams2, Media, OAuthConnectParams, Integration, OAuthDisconnectParams, ListIntegrationsParams, CreateIntegrationParams, UpdateIntegrationParams, DeleteIntegrationParams, ListWebhooksParams, Webhook, CreateWebhookParams, UpdateWebhookParams, DeleteWebhookParams, GetMediaParams, UploadStoreMediaParams, DeleteStoreMediaParams, GetStoreMediaParams, UpdateMediaParams, TrackEmailOpenParams, TriggerNotificationParams, CreatePromoCodeParams, PromoCode, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, CreateNodeParams, Node, UpdateNodeParams, DeleteNodeParams, GetNodeParams, Block, TaxonomyEntry, NodeStatus, GetNodesParams, GetNodeChildrenParams, CreateFormParams, Form, UpdateFormParams, DeleteFormParams, GetFormParams, GetFormsParams, SubmitFormParams, FormSubmission, GetFormSubmissionsParams, GetFormSubmissionParams, UpdateFormSubmissionParams, CreateTaxonomyParams, Taxonomy, UpdateTaxonomyParams, DeleteTaxonomyParams, GetTaxonomyParams, GetTaxonomiesParams, GetTaxonomyChildrenParams, CreateEmailTemplateParams, EmailTemplate, UpdateEmailTemplateParams, DeleteEmailTemplateParams, GetEmailTemplateParams, GetEmailTemplatesParams, CreateProductParams, Product, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, Order, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderQuote,
|
|
2
|
-
export { Access, Address, AgentChatStatus, AgentStatus, ApiResponse, AudienceStatus, AudienceSubscription, AudienceSubscriptionPayment, AudienceSubscriptionProvider, AudienceSubscriptionSource, AudienceSubscriptionStatus, AudienceType, AvailabilitySlot,
|
|
3
|
-
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 { Customer, Store, Market, AuthToken, RequestOptions as RequestOptions$1, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, GetMeParams, SearchAccountsParams, Location, CreateLocationParams, UpdateLocationParams, DeleteLocationParams, CreateMarketParams, UpdateMarketParams, DeleteMarketParams, CreateStoreParams, UpdateStoreParams, DeleteStoreParams, GetStoreParams, GetStoresParams, PaginatedResponse, GetSubscriptionPlansParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetStoreMediaParams2, Media, OAuthConnectParams, Integration, OAuthDisconnectParams, ListIntegrationsParams, CreateIntegrationParams, UpdateIntegrationParams, DeleteIntegrationParams, ListWebhooksParams, Webhook, CreateWebhookParams, UpdateWebhookParams, DeleteWebhookParams, GetMediaParams, UploadStoreMediaParams, DeleteStoreMediaParams, GetStoreMediaParams, UpdateMediaParams, TrackEmailOpenParams, TriggerNotificationParams, CreatePromoCodeParams, PromoCode, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, CreateNodeParams, Node, UpdateNodeParams, DeleteNodeParams, GetNodeParams, Block, TaxonomyEntry, NodeStatus, GetNodesParams, GetNodeChildrenParams, CreateFormParams, Form, UpdateFormParams, DeleteFormParams, GetFormParams, GetFormsParams, SubmitFormParams, FormSubmission, GetFormSubmissionsParams, GetFormSubmissionParams, UpdateFormSubmissionParams, CreateTaxonomyParams, Taxonomy, UpdateTaxonomyParams, DeleteTaxonomyParams, GetTaxonomyParams, GetTaxonomiesParams, GetTaxonomyChildrenParams, CreateEmailTemplateParams, EmailTemplate, UpdateEmailTemplateParams, DeleteEmailTemplateParams, GetEmailTemplateParams, GetEmailTemplatesParams, CreateProductParams, Product, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, Order, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderQuote, OrderCheckoutParams, OrderCheckoutResult, GetAvailabilityParams, AvailabilityResponse, ProcessOrderRefundParams, CreateServiceParams, Service, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, FindServiceProvidersParams, ServiceProvider, CreateServiceProviderParams, UpdateServiceProviderParams, DeleteServiceProviderParams, CreateProviderParams, Provider, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, CreateCustomerParams, GetCustomerParams, CustomerDetail, FindCustomersParams, UpdateCustomerParams, MergeCustomersParams, CreateAudienceParams, Audience, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, GetAudienceSubscribersParams, AudienceSubscriber, AddAudienceSubscriberParams, AddAudienceSubscriberResponse, RemoveAudienceSubscriberParams, FindActivitiesParams, CreateAgentParams, Agent, UpdateAgentParams, DeleteAgentParams, GetAgentParams, GetAgentsParams, RunAgentParams, AgentChatMessage, GetAgentChatsParams, AgentChat, GetAgentChatParams, UpdateAgentChatParams, RateAgentChatParams, GetStoreChatsParams, CreateWorkflowParams, Workflow, UpdateWorkflowParams, DeleteWorkflowParams, GetWorkflowParams, GetWorkflowsParams, TriggerWorkflowParams, WorkflowExecution, GetWorkflowExecutionsParams, GetWorkflowExecutionParams, SubscribeAudienceParams, AudienceSubscribeResponse, AudienceAccessResponse } from './types.js';
|
|
2
|
+
export { Access, Address, AgentChatStatus, AgentStatus, ApiResponse, AudienceStatus, AudienceSubscription, AudienceSubscriptionPayment, AudienceSubscriptionProvider, AudienceSubscriptionSource, AudienceSubscriptionStatus, AudienceType, AvailabilitySlot, CheckoutItemInput, Condition, CustomerStatus, CustomsDeclaration, CustomsItem, DaySlots, Discount, EmailTemplateStatus, EshopCartItem, EshopItem, EshopQuoteItem, EshopStoreState, Event, EventAction, ExecutionStatus, FormEntry, FormField, FormFieldType, FormSchema, FormSchemaType, FormStatus, GalleryItem, GeoLocation, GeoLocationBlock, HistoryEntry, IntegrationProvider, InventoryLevel, Language, MediaResolution, NodeResult, OrderCancellationReason, OrderCheckoutCompatibleItemInput, OrderCheckoutItemInput, OrderItem, OrderItemSnapshot, OrderItemStatus, OrderPayment, OrderPaymentPromoCode, OrderPaymentProvider, OrderPaymentRefund, OrderPaymentStatus, OrderPaymentTax, OrderPaymentTaxLine, OrderQuoteCompatibleItemInput, OrderQuoteItemInput, OrderShipping, Parcel, PaymentMethod, PaymentMethodType, Price, ProductCheckoutItemInput, ProductInventory, ProductOrderItem, ProductOrderItemSnapshot, ProductQuoteItemInput, ProductQuoteLine, ProductQuoteLineAvailability, ProductStatus, ProductVariant, PromoCodeStatus, PromoCodeValidation, ProviderAvailability, ProviderStatus, ProviderTimelinePoint, ProviderWithTimeline, PurchaseLabelResult, QuoteItemInput, QuoteLine, ServiceCheckoutItemInput, ServiceCheckoutPart, ServiceDuration, ServiceOrderItem, ServiceOrderItemSnapshot, ServiceQuoteItem, ServiceQuoteItemInput, ServiceQuoteLine, ServiceQuoteLineAvailability, ServiceStatus, Shipment, ShipmentLine, ShippingAddress, ShippingMethod, ShippingStatus, ShippingWeightTier, Slot, SlotRange, SpecificDate, StoreSubscription, StoreSubscriptionPayment, StoreSubscriptionProvider, StoreSubscriptionSource, StoreSubscriptionStatus, SystemTemplateKey, TaxonomyField, TaxonomyFieldQuery, TaxonomyQuery, TaxonomySchema, TaxonomySchemaType, TaxonomyStatus, TimelinePoint, WebhookEventSubscription, WorkflowEdge, WorkflowHttpMethod, WorkflowHttpNode, WorkflowLoopNode, WorkflowNode, WorkflowStatus, WorkflowSwitchNode, WorkflowSwitchRule, WorkflowTransformNode, WorkflowTriggerNode, WorkingDay, WorkingHour, Zone, ZoneLocation } from './types.js';
|
|
3
|
+
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-MFMjlIfS.js';
|
|
4
4
|
|
|
5
5
|
type CustomerToken = {
|
|
6
6
|
id: string;
|
|
@@ -26,14 +26,14 @@ interface TrackParams {
|
|
|
26
26
|
type: string;
|
|
27
27
|
payload?: Record<string, unknown>;
|
|
28
28
|
}
|
|
29
|
-
declare const COMMON_ACTIVITY_TYPES: readonly ["page_view", "product_view", "service_view", "provider_view", "cart_added", "cart_removed", "checkout_started", "purchase", "
|
|
29
|
+
declare const COMMON_ACTIVITY_TYPES: readonly ["page_view", "product_view", "service_view", "provider_view", "cart_added", "cart_removed", "checkout_started", "purchase", "order_created", "signin", "signup", "verified_email", "search", "share", "wishlist_added"];
|
|
30
30
|
type CommonActivityType = (typeof COMMON_ACTIVITY_TYPES)[number];
|
|
31
31
|
|
|
32
|
-
type EntityKind = "product" | "service" | "provider" | "node" | "customer" | "audience" | "agent" | "workflow" | "promo_code" | "email_template" | "form" | "taxonomy" | "media" | "order"
|
|
32
|
+
type EntityKind = "product" | "service" | "provider" | "node" | "customer" | "audience" | "agent" | "workflow" | "promo_code" | "email_template" | "form" | "taxonomy" | "media" | "order";
|
|
33
33
|
type Granularity = "hour" | "day" | "week" | "month" | {
|
|
34
34
|
minutes: 5 | 10 | 15 | 30;
|
|
35
35
|
};
|
|
36
|
-
type Measure = "count" | "uniq_customers" | "orders_created" | "
|
|
36
|
+
type Measure = "count" | "uniq_customers" | "orders_created" | "new_customers" | "form_submissions" | {
|
|
37
37
|
entity_state: {
|
|
38
38
|
entity: EntityKind;
|
|
39
39
|
status: string;
|
|
@@ -214,7 +214,7 @@ declare function fetchSvgContent(mediaObject: any): Promise<string | null>;
|
|
|
214
214
|
declare function getSvgContentForAstro(mediaObject: any): Promise<string>;
|
|
215
215
|
declare function injectSvgIntoElement(mediaObject: any, targetElement: HTMLElement, className?: string): Promise<void>;
|
|
216
216
|
|
|
217
|
-
declare const SDK_VERSION = "0.7.
|
|
217
|
+
declare const SDK_VERSION = "0.7.112";
|
|
218
218
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
219
219
|
|
|
220
220
|
interface ApiConfig {
|
|
@@ -497,22 +497,10 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
497
497
|
get: (params: GetOrderParams, options?: RequestOptions$1) => Promise<Order>;
|
|
498
498
|
find: (params: GetOrdersParams, options?: RequestOptions$1) => Promise<PaginatedResponse<Order>>;
|
|
499
499
|
getQuote: (params: GetQuoteParams, options?: RequestOptions$1) => Promise<OrderQuote>;
|
|
500
|
+
checkout: (params: OrderCheckoutParams, options?: RequestOptions$1) => Promise<OrderCheckoutResult>;
|
|
501
|
+
getAvailability: (params: GetAvailabilityParams, options?: RequestOptions$1) => Promise<AvailabilityResponse>;
|
|
500
502
|
processRefund: (params: ProcessOrderRefundParams, options?: RequestOptions$1) => Promise<Order>;
|
|
501
503
|
};
|
|
502
|
-
};
|
|
503
|
-
booking: {
|
|
504
|
-
addToCart: (slot: Slot) => void;
|
|
505
|
-
removeFromCart: (slotId: string) => void;
|
|
506
|
-
getCart: () => Slot[];
|
|
507
|
-
clearCart: () => void;
|
|
508
|
-
create: (params: CreateBookingParams, options?: RequestOptions$1) => Promise<Booking>;
|
|
509
|
-
update: (params: UpdateBookingParams, options?: RequestOptions$1) => Promise<Booking>;
|
|
510
|
-
get: (params: GetBookingParams, options?: RequestOptions$1) => Promise<Booking>;
|
|
511
|
-
find: (params: SearchBookingsParams, options?: RequestOptions$1) => Promise<PaginatedResponse<Booking>>;
|
|
512
|
-
getQuote: (params: GetBookingQuoteParams, options?: RequestOptions$1) => Promise<BookingQuote>;
|
|
513
|
-
processRefund: (params: ProcessBookingRefundParams, options?: RequestOptions$1) => Promise<Booking>;
|
|
514
|
-
getAvailability: (params: GetAvailabilityParams, options?: RequestOptions$1) => Promise<AvailabilityResponse>;
|
|
515
|
-
cancelItem: (params: CancelBookingItemParams, options?: RequestOptions$1) => Promise<Booking>;
|
|
516
504
|
service: {
|
|
517
505
|
create: (params: CreateServiceParams, options?: RequestOptions$1) => Promise<Service>;
|
|
518
506
|
update: (params: UpdateServiceParams, options?: RequestOptions$1) => Promise<Service>;
|
|
@@ -531,6 +519,15 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
531
519
|
get: (params: GetProviderParams, options?: RequestOptions$1) => Promise<Provider>;
|
|
532
520
|
find: (params: GetProvidersParams, options?: RequestOptions$1) => Promise<PaginatedResponse<Provider>>;
|
|
533
521
|
};
|
|
522
|
+
promoCode: {
|
|
523
|
+
createPromoCode(params: CreatePromoCodeParams, options?: RequestOptions$1): Promise<PromoCode>;
|
|
524
|
+
updatePromoCode(params: UpdatePromoCodeParams, options?: RequestOptions$1): Promise<PromoCode>;
|
|
525
|
+
deletePromoCode(params: DeletePromoCodeParams, options?: RequestOptions$1): Promise<{
|
|
526
|
+
deleted: boolean;
|
|
527
|
+
}>;
|
|
528
|
+
getPromoCode(params: GetPromoCodeParams, options?: RequestOptions$1): Promise<PromoCode>;
|
|
529
|
+
getPromoCodes(params: GetPromoCodesParams, options?: RequestOptions$1): Promise<PaginatedResponse<PromoCode>>;
|
|
530
|
+
};
|
|
534
531
|
};
|
|
535
532
|
crm: {
|
|
536
533
|
customer: {
|
|
@@ -764,22 +761,11 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
764
761
|
}, options?: RequestOptions$1): Promise<OrderQuote>;
|
|
765
762
|
checkout(params: OrderCheckoutParams & {
|
|
766
763
|
store_id?: string;
|
|
767
|
-
}, options?: RequestOptions$1): Promise<
|
|
764
|
+
}, options?: RequestOptions$1): Promise<OrderCheckoutResult>;
|
|
768
765
|
get(params: GetOrderParams, options?: RequestOptions$1): Promise<Order>;
|
|
769
766
|
find(params: GetOrdersParams, options?: RequestOptions$1): Promise<PaginatedResponse<Order>>;
|
|
767
|
+
getAvailability(params: GetAvailabilityParams, options?: RequestOptions$1): Promise<AvailabilityResponse>;
|
|
770
768
|
};
|
|
771
|
-
};
|
|
772
|
-
booking: {
|
|
773
|
-
addToCart(slot: Slot): void;
|
|
774
|
-
removeFromCart(slotId: string): void;
|
|
775
|
-
getCart(): Slot[];
|
|
776
|
-
clearCart(): void;
|
|
777
|
-
checkout(params?: Partial<BookingCheckoutParams>, options?: RequestOptions$1): Promise<Booking>;
|
|
778
|
-
get(params: GetBookingParams, options?: RequestOptions$1): Promise<Booking>;
|
|
779
|
-
find(params: SearchBookingsParams, options?: RequestOptions$1): Promise<PaginatedResponse<Booking>>;
|
|
780
|
-
getQuote(params: GetBookingQuoteParams, options?: RequestOptions$1): Promise<BookingQuote>;
|
|
781
|
-
getAvailability(params: GetAvailabilityParams, options?: RequestOptions$1): Promise<AvailabilityResponse>;
|
|
782
|
-
cancelItem(params: CancelBookingItemParams, options?: RequestOptions$1): Promise<Booking>;
|
|
783
769
|
service: {
|
|
784
770
|
get(params: GetServiceParams, options?: RequestOptions$1): Promise<Service>;
|
|
785
771
|
find(params: GetServicesParams, options?: RequestOptions$1): Promise<PaginatedResponse<Service>>;
|
|
@@ -819,7 +805,7 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
819
805
|
};
|
|
820
806
|
};
|
|
821
807
|
activity: {
|
|
822
|
-
COMMON_ACTIVITY_TYPES: readonly ["page_view", "product_view", "service_view", "provider_view", "cart_added", "cart_removed", "checkout_started", "purchase", "
|
|
808
|
+
COMMON_ACTIVITY_TYPES: readonly ["page_view", "product_view", "service_view", "provider_view", "cart_added", "cart_removed", "checkout_started", "purchase", "order_created", "signin", "signup", "verified_email", "search", "share", "wishlist_added"];
|
|
823
809
|
track(params: TrackParams): Promise<void>;
|
|
824
810
|
};
|
|
825
811
|
automation: {
|
|
@@ -907,4 +893,4 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
907
893
|
};
|
|
908
894
|
};
|
|
909
895
|
|
|
910
|
-
export { type AuthStorage as A, type Activity$1 as Activity, type AdminSession, type AdminSessionInternal, type AdminSessionUpdater, Agent, AgentChat, AgentChatMessage, type AnalyticsQuery, type AnalyticsQueryResponse, type AnalyticsRow, type ApiConfig, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, type AuthStateListener, AvailabilityResponse, Block,
|
|
896
|
+
export { type AuthStorage as A, type Activity$1 as Activity, type AdminSession, type AdminSessionInternal, type AdminSessionUpdater, Agent, AgentChat, AgentChatMessage, type AnalyticsQuery, type AnalyticsQueryResponse, type AnalyticsRow, type ApiConfig, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, type AuthStateListener, AvailabilityResponse, Block, COMMON_ACTIVITY_TYPES, type CommonActivityType, type CreateAdminConfig, CreateAgentParams, CreateLocationParams, type CreateStorefrontConfig, Customer, type CustomerSession, type CustomerSessionInternal, type CustomerSessionUpdater, DeleteLocationParams, type Dimension, EmailTemplate, type EntityKind, type Filter, type FilterField, type FilterOp, Form, FormSubmission, GetAgentParams, GetAgentsParams, GetAvailabilityParams, type GetCountriesResponse, GetShippingRatesParams, type Granularity, type HttpClientConfig, Integration, Location, type LocationCountry, type LocationState, Market, type Measure, Media, Node, NodeStatus, Order, type OrderBy, OrderQuote, PaginatedResponse, Product, PromoCode, Provider, SDK_VERSION, SUPPORTED_FRAMEWORKS, Service, ServiceProvider, ShipParams, ShipResult, ShippingRate, Store, Taxonomy, TaxonomyEntry, type TimeRange, type TimeUnit, type TimelineParams, type TrackParams, UpdateAgentParams, UpdateLocationParams, Webhook, Workflow, WorkflowExecution, createAdmin, createStorefront };
|