arky-sdk 0.7.44 → 0.7.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { Block, RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, GetMeParams, SearchAccountsParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetSubscriptionPlansParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, OAuthConnectParams, OAuthDisconnectParams, ListIntegrationsParams, CreateIntegrationParams, UpdateIntegrationParams, DeleteIntegrationParams, ListWebhooksParams, CreateWebhookParams, UpdateWebhookParams, DeleteWebhookParams, GetMediaParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, TriggerNotificationParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, Slot, CreateBookingParams, UpdateBookingParams, BookingCheckoutParams, GetBookingParams, SearchBookingsParams, GetBookingQuoteParams, GetAvailabilityParams, AvailabilityResponse, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, CancelBookingItemParams, FindServiceProvidersParams, CreateServiceProviderParams, UpdateServiceProviderParams, DeleteServiceProviderParams, Location, CreateLocationParams, UpdateLocationParams, DeleteLocationParams, Market, CreateMarketParams, UpdateMarketParams, DeleteMarketParams, CreateCustomerParams, GetCustomerParams, ConnectCustomerParams, FindCustomersParams, UpdateCustomerParams, MergeCustomersParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, SubscribeAudienceParams, GetAudienceSubscribersParams, AddAudienceSubscriberParams, RemoveAudienceSubscriberParams, CreateWorkflowParams, UpdateWorkflowParams, DeleteWorkflowParams, GetWorkflowParams, GetWorkflowsParams, TriggerWorkflowParams, GetWorkflowExecutionsParams, GetWorkflowExecutionParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, CreateAgentParams, UpdateAgentParams, DeleteAgentParams, GetAgentParams, GetAgentsParams, RunAgentParams, GetAgentChatsParams, GetAgentChatParams, UpdateAgentChatParams, RateAgentChatParams, GetBusinessChatsParams, CreateEmailTemplateParams, UpdateEmailTemplateParams, DeleteEmailTemplateParams, GetEmailTemplateParams, GetEmailTemplatesParams, CreateFormParams, UpdateFormParams, DeleteFormParams, GetFormParams, GetFormsParams, SubmitFormParams, GetFormSubmissionsParams, GetFormSubmissionParams, UpdateFormSubmissionParams, CreateTaxonomyParams, UpdateTaxonomyParams, DeleteTaxonomyParams, GetTaxonomyParams, GetTaxonomiesParams, GetTaxonomyChildrenParams } from './types.cjs';
2
- export { Access, Address, AgentStatus, ApiResponse, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, AvailabilitySlot, BookingCartItem, BookingStoreState, Business, CustomsDeclaration, CustomsItem, DaySlots, EshopCartItem, EshopStoreState, Event, EventAction, ExecutionStatus, GeoLocation, GeoLocationBlock, Integration, IntegrationProvider, Language, Media, MediaResolution, Node, NodeResult, OrderShipping, PaginatedResponse, Parcel, Payment, PaymentMethod, PaymentMethodType, PaymentRefund, Price, PromoCodeValidation, ProviderAvailability, ProviderWithTimeline, PurchaseLabelResult, Quote, Shipment, ShipmentLine, ShippingAddress, ShippingMethod, ShippingStatus, ShippingWeightTier, SystemTemplateKey, Webhook, WebhookEventSubscription, Workflow, WorkflowConnection, WorkflowExecution, WorkflowHttpMethod, WorkflowHttpNode, WorkflowNode, WorkflowSwitchNode, WorkflowTransformNode, WorkflowTriggerNode, 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-BzBZVueX.cjs';
1
+ import { Block, RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, GetMeParams, SearchAccountsParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetSubscriptionPlansParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, OAuthConnectParams, OAuthDisconnectParams, ListIntegrationsParams, CreateIntegrationParams, UpdateIntegrationParams, DeleteIntegrationParams, ListWebhooksParams, CreateWebhookParams, UpdateWebhookParams, DeleteWebhookParams, GetMediaParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, TriggerNotificationParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, ProcessOrderRefundParams, Slot, CreateBookingParams, UpdateBookingParams, BookingCheckoutParams, GetBookingParams, SearchBookingsParams, GetBookingQuoteParams, ProcessBookingRefundParams, GetAvailabilityParams, AvailabilityResponse, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, CancelBookingItemParams, FindServiceProvidersParams, CreateServiceProviderParams, UpdateServiceProviderParams, DeleteServiceProviderParams, Location, CreateLocationParams, UpdateLocationParams, DeleteLocationParams, Market, CreateMarketParams, UpdateMarketParams, DeleteMarketParams, CreateCustomerParams, GetCustomerParams, ConnectCustomerParams, FindCustomersParams, UpdateCustomerParams, MergeCustomersParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, SubscribeAudienceParams, GetAudienceSubscribersParams, AddAudienceSubscriberParams, RemoveAudienceSubscriberParams, CreateWorkflowParams, UpdateWorkflowParams, DeleteWorkflowParams, GetWorkflowParams, GetWorkflowsParams, TriggerWorkflowParams, GetWorkflowExecutionsParams, GetWorkflowExecutionParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, CreateAgentParams, UpdateAgentParams, DeleteAgentParams, GetAgentParams, GetAgentsParams, RunAgentParams, GetAgentChatsParams, GetAgentChatParams, UpdateAgentChatParams, RateAgentChatParams, GetBusinessChatsParams, CreateEmailTemplateParams, UpdateEmailTemplateParams, DeleteEmailTemplateParams, GetEmailTemplateParams, GetEmailTemplatesParams, CreateFormParams, UpdateFormParams, DeleteFormParams, GetFormParams, GetFormsParams, SubmitFormParams, GetFormSubmissionsParams, GetFormSubmissionParams, UpdateFormSubmissionParams, CreateTaxonomyParams, UpdateTaxonomyParams, DeleteTaxonomyParams, GetTaxonomyParams, GetTaxonomiesParams, GetTaxonomyChildrenParams } from './types.cjs';
2
+ export { Access, Address, AgentChatStatus, AgentStatus, ApiResponse, Audience, AudienceAccessResponse, AudienceStatus, AudienceSubscribeResponse, AudienceSubscriber, AudienceSubscription, AudienceSubscriptionPayment, AudienceSubscriptionProvider, AudienceSubscriptionSource, AudienceSubscriptionStatus, AvailabilitySlot, BookingCartItem, BookingPayment, BookingPaymentPromoCode, BookingPaymentProvider, BookingPaymentRefund, BookingPaymentTax, BookingPaymentTaxLine, BookingProviderStatus, BookingQuote, BookingServiceStatus, BookingStatus, BookingStoreState, Business, BusinessSubscription, BusinessSubscriptionPayment, BusinessSubscriptionProvider, BusinessSubscriptionSource, BusinessSubscriptionStatus, CustomerStatus, CustomsDeclaration, CustomsItem, DaySlots, EmailTemplateStatus, EshopCartItem, EshopStoreState, Event, EventAction, ExecutionStatus, FormStatus, GeoLocation, GeoLocationBlock, Integration, IntegrationProvider, Language, Media, MediaResolution, Node, NodeResult, NodeStatus, OrderPayment, OrderPaymentPromoCode, OrderPaymentProvider, OrderPaymentRefund, OrderPaymentTax, OrderPaymentTaxLine, OrderQuote, OrderShipping, OrderStatus, PaginatedResponse, Parcel, PaymentMethod, PaymentMethodType, Price, ProductStatus, PromoCodeStatus, PromoCodeValidation, ProviderAvailability, ProviderWithTimeline, PurchaseLabelResult, Shipment, ShipmentLine, ShippingAddress, ShippingMethod, ShippingStatus, ShippingWeightTier, SystemTemplateKey, TaxonomyStatus, Webhook, WebhookEventSubscription, Workflow, WorkflowConnection, WorkflowExecution, WorkflowHttpMethod, WorkflowHttpNode, WorkflowNode, WorkflowStatus, WorkflowSwitchNode, WorkflowTransformNode, WorkflowTriggerNode, 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-BCAQZOwm.cjs';
4
4
 
5
5
  interface AuthTokens {
6
6
  accessToken: string;
@@ -147,7 +147,7 @@ declare global {
147
147
  }
148
148
  declare function track(eventName: string, params?: Record<string, any>): void;
149
149
 
150
- declare const SDK_VERSION = "0.7.26";
150
+ declare const SDK_VERSION = "0.7.27";
151
151
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
152
152
  interface ApiConfig {
153
153
  httpClient: any;
@@ -197,7 +197,6 @@ declare function createArkySDK(config: HttpClientConfig & {
197
197
  handleInvitation(params: HandleInvitationParams, options?: RequestOptions): Promise<any>;
198
198
  testWebhook(params: TestWebhookParams, options?: RequestOptions): Promise<any>;
199
199
  getBusinessMedia(params: GetBusinessMediaParams2, options?: RequestOptions): Promise<any>;
200
- processRefund(params: ProcessRefundParams, options?: RequestOptions): Promise<any>;
201
200
  oauthConnect(params: OAuthConnectParams, options?: RequestOptions): Promise<any>;
202
201
  oauthDisconnect(params: OAuthDisconnectParams, options?: RequestOptions): Promise<any>;
203
202
  listIntegrations(params: ListIntegrationsParams, options?: RequestOptions): Promise<any>;
@@ -258,6 +257,7 @@ declare function createArkySDK(config: HttpClientConfig & {
258
257
  getOrders(params: GetOrdersParams, options?: RequestOptions): Promise<any>;
259
258
  getQuote(params: GetQuoteParams, options?: RequestOptions): Promise<any>;
260
259
  checkout(params: OrderCheckoutParams, options?: RequestOptions): Promise<any>;
260
+ processRefund(params: ProcessOrderRefundParams, options?: RequestOptions): Promise<any>;
261
261
  };
262
262
  booking: {
263
263
  addToCart(slot: Slot): void;
@@ -270,6 +270,7 @@ declare function createArkySDK(config: HttpClientConfig & {
270
270
  getBooking(params: GetBookingParams, options?: RequestOptions): Promise<any>;
271
271
  searchBookings(params: SearchBookingsParams, options?: RequestOptions): Promise<any>;
272
272
  getQuote(params: GetBookingQuoteParams, options?: RequestOptions): Promise<any>;
273
+ processRefund(params: ProcessBookingRefundParams, options?: RequestOptions): Promise<any>;
273
274
  getAvailability(params: GetAvailabilityParams, options?: RequestOptions): Promise<AvailabilityResponse>;
274
275
  createService(params: CreateServiceParams, options?: RequestOptions): Promise<any>;
275
276
  updateService(params: UpdateServiceParams, options?: RequestOptions): Promise<any>;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Block, RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, GetMeParams, SearchAccountsParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetSubscriptionPlansParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, OAuthConnectParams, OAuthDisconnectParams, ListIntegrationsParams, CreateIntegrationParams, UpdateIntegrationParams, DeleteIntegrationParams, ListWebhooksParams, CreateWebhookParams, UpdateWebhookParams, DeleteWebhookParams, GetMediaParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, TriggerNotificationParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, Slot, CreateBookingParams, UpdateBookingParams, BookingCheckoutParams, GetBookingParams, SearchBookingsParams, GetBookingQuoteParams, GetAvailabilityParams, AvailabilityResponse, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, CancelBookingItemParams, FindServiceProvidersParams, CreateServiceProviderParams, UpdateServiceProviderParams, DeleteServiceProviderParams, Location, CreateLocationParams, UpdateLocationParams, DeleteLocationParams, Market, CreateMarketParams, UpdateMarketParams, DeleteMarketParams, CreateCustomerParams, GetCustomerParams, ConnectCustomerParams, FindCustomersParams, UpdateCustomerParams, MergeCustomersParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, SubscribeAudienceParams, GetAudienceSubscribersParams, AddAudienceSubscriberParams, RemoveAudienceSubscriberParams, CreateWorkflowParams, UpdateWorkflowParams, DeleteWorkflowParams, GetWorkflowParams, GetWorkflowsParams, TriggerWorkflowParams, GetWorkflowExecutionsParams, GetWorkflowExecutionParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, CreateAgentParams, UpdateAgentParams, DeleteAgentParams, GetAgentParams, GetAgentsParams, RunAgentParams, GetAgentChatsParams, GetAgentChatParams, UpdateAgentChatParams, RateAgentChatParams, GetBusinessChatsParams, CreateEmailTemplateParams, UpdateEmailTemplateParams, DeleteEmailTemplateParams, GetEmailTemplateParams, GetEmailTemplatesParams, CreateFormParams, UpdateFormParams, DeleteFormParams, GetFormParams, GetFormsParams, SubmitFormParams, GetFormSubmissionsParams, GetFormSubmissionParams, UpdateFormSubmissionParams, CreateTaxonomyParams, UpdateTaxonomyParams, DeleteTaxonomyParams, GetTaxonomyParams, GetTaxonomiesParams, GetTaxonomyChildrenParams } from './types.js';
2
- export { Access, Address, AgentStatus, ApiResponse, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, AvailabilitySlot, BookingCartItem, BookingStoreState, Business, CustomsDeclaration, CustomsItem, DaySlots, EshopCartItem, EshopStoreState, Event, EventAction, ExecutionStatus, GeoLocation, GeoLocationBlock, Integration, IntegrationProvider, Language, Media, MediaResolution, Node, NodeResult, OrderShipping, PaginatedResponse, Parcel, Payment, PaymentMethod, PaymentMethodType, PaymentRefund, Price, PromoCodeValidation, ProviderAvailability, ProviderWithTimeline, PurchaseLabelResult, Quote, Shipment, ShipmentLine, ShippingAddress, ShippingMethod, ShippingStatus, ShippingWeightTier, SystemTemplateKey, Webhook, WebhookEventSubscription, Workflow, WorkflowConnection, WorkflowExecution, WorkflowHttpMethod, WorkflowHttpNode, WorkflowNode, WorkflowSwitchNode, WorkflowTransformNode, WorkflowTriggerNode, 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-CkyDsYWA.js';
1
+ import { Block, RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, GetMeParams, SearchAccountsParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetSubscriptionPlansParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, OAuthConnectParams, OAuthDisconnectParams, ListIntegrationsParams, CreateIntegrationParams, UpdateIntegrationParams, DeleteIntegrationParams, ListWebhooksParams, CreateWebhookParams, UpdateWebhookParams, DeleteWebhookParams, GetMediaParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, TriggerNotificationParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, ProcessOrderRefundParams, Slot, CreateBookingParams, UpdateBookingParams, BookingCheckoutParams, GetBookingParams, SearchBookingsParams, GetBookingQuoteParams, ProcessBookingRefundParams, GetAvailabilityParams, AvailabilityResponse, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, CancelBookingItemParams, FindServiceProvidersParams, CreateServiceProviderParams, UpdateServiceProviderParams, DeleteServiceProviderParams, Location, CreateLocationParams, UpdateLocationParams, DeleteLocationParams, Market, CreateMarketParams, UpdateMarketParams, DeleteMarketParams, CreateCustomerParams, GetCustomerParams, ConnectCustomerParams, FindCustomersParams, UpdateCustomerParams, MergeCustomersParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, SubscribeAudienceParams, GetAudienceSubscribersParams, AddAudienceSubscriberParams, RemoveAudienceSubscriberParams, CreateWorkflowParams, UpdateWorkflowParams, DeleteWorkflowParams, GetWorkflowParams, GetWorkflowsParams, TriggerWorkflowParams, GetWorkflowExecutionsParams, GetWorkflowExecutionParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, CreateAgentParams, UpdateAgentParams, DeleteAgentParams, GetAgentParams, GetAgentsParams, RunAgentParams, GetAgentChatsParams, GetAgentChatParams, UpdateAgentChatParams, RateAgentChatParams, GetBusinessChatsParams, CreateEmailTemplateParams, UpdateEmailTemplateParams, DeleteEmailTemplateParams, GetEmailTemplateParams, GetEmailTemplatesParams, CreateFormParams, UpdateFormParams, DeleteFormParams, GetFormParams, GetFormsParams, SubmitFormParams, GetFormSubmissionsParams, GetFormSubmissionParams, UpdateFormSubmissionParams, CreateTaxonomyParams, UpdateTaxonomyParams, DeleteTaxonomyParams, GetTaxonomyParams, GetTaxonomiesParams, GetTaxonomyChildrenParams } from './types.js';
2
+ export { Access, Address, AgentChatStatus, AgentStatus, ApiResponse, Audience, AudienceAccessResponse, AudienceStatus, AudienceSubscribeResponse, AudienceSubscriber, AudienceSubscription, AudienceSubscriptionPayment, AudienceSubscriptionProvider, AudienceSubscriptionSource, AudienceSubscriptionStatus, AvailabilitySlot, BookingCartItem, BookingPayment, BookingPaymentPromoCode, BookingPaymentProvider, BookingPaymentRefund, BookingPaymentTax, BookingPaymentTaxLine, BookingProviderStatus, BookingQuote, BookingServiceStatus, BookingStatus, BookingStoreState, Business, BusinessSubscription, BusinessSubscriptionPayment, BusinessSubscriptionProvider, BusinessSubscriptionSource, BusinessSubscriptionStatus, CustomerStatus, CustomsDeclaration, CustomsItem, DaySlots, EmailTemplateStatus, EshopCartItem, EshopStoreState, Event, EventAction, ExecutionStatus, FormStatus, GeoLocation, GeoLocationBlock, Integration, IntegrationProvider, Language, Media, MediaResolution, Node, NodeResult, NodeStatus, OrderPayment, OrderPaymentPromoCode, OrderPaymentProvider, OrderPaymentRefund, OrderPaymentTax, OrderPaymentTaxLine, OrderQuote, OrderShipping, OrderStatus, PaginatedResponse, Parcel, PaymentMethod, PaymentMethodType, Price, ProductStatus, PromoCodeStatus, PromoCodeValidation, ProviderAvailability, ProviderWithTimeline, PurchaseLabelResult, Shipment, ShipmentLine, ShippingAddress, ShippingMethod, ShippingStatus, ShippingWeightTier, SystemTemplateKey, TaxonomyStatus, Webhook, WebhookEventSubscription, Workflow, WorkflowConnection, WorkflowExecution, WorkflowHttpMethod, WorkflowHttpNode, WorkflowNode, WorkflowStatus, WorkflowSwitchNode, WorkflowTransformNode, WorkflowTriggerNode, 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-DTg5d847.js';
4
4
 
5
5
  interface AuthTokens {
6
6
  accessToken: string;
@@ -147,7 +147,7 @@ declare global {
147
147
  }
148
148
  declare function track(eventName: string, params?: Record<string, any>): void;
149
149
 
150
- declare const SDK_VERSION = "0.7.26";
150
+ declare const SDK_VERSION = "0.7.27";
151
151
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
152
152
  interface ApiConfig {
153
153
  httpClient: any;
@@ -197,7 +197,6 @@ declare function createArkySDK(config: HttpClientConfig & {
197
197
  handleInvitation(params: HandleInvitationParams, options?: RequestOptions): Promise<any>;
198
198
  testWebhook(params: TestWebhookParams, options?: RequestOptions): Promise<any>;
199
199
  getBusinessMedia(params: GetBusinessMediaParams2, options?: RequestOptions): Promise<any>;
200
- processRefund(params: ProcessRefundParams, options?: RequestOptions): Promise<any>;
201
200
  oauthConnect(params: OAuthConnectParams, options?: RequestOptions): Promise<any>;
202
201
  oauthDisconnect(params: OAuthDisconnectParams, options?: RequestOptions): Promise<any>;
203
202
  listIntegrations(params: ListIntegrationsParams, options?: RequestOptions): Promise<any>;
@@ -258,6 +257,7 @@ declare function createArkySDK(config: HttpClientConfig & {
258
257
  getOrders(params: GetOrdersParams, options?: RequestOptions): Promise<any>;
259
258
  getQuote(params: GetQuoteParams, options?: RequestOptions): Promise<any>;
260
259
  checkout(params: OrderCheckoutParams, options?: RequestOptions): Promise<any>;
260
+ processRefund(params: ProcessOrderRefundParams, options?: RequestOptions): Promise<any>;
261
261
  };
262
262
  booking: {
263
263
  addToCart(slot: Slot): void;
@@ -270,6 +270,7 @@ declare function createArkySDK(config: HttpClientConfig & {
270
270
  getBooking(params: GetBookingParams, options?: RequestOptions): Promise<any>;
271
271
  searchBookings(params: SearchBookingsParams, options?: RequestOptions): Promise<any>;
272
272
  getQuote(params: GetBookingQuoteParams, options?: RequestOptions): Promise<any>;
273
+ processRefund(params: ProcessBookingRefundParams, options?: RequestOptions): Promise<any>;
273
274
  getAvailability(params: GetAvailabilityParams, options?: RequestOptions): Promise<AvailabilityResponse>;
274
275
  createService(params: CreateServiceParams, options?: RequestOptions): Promise<any>;
275
276
  updateService(params: UpdateServiceParams, options?: RequestOptions): Promise<any>;
package/dist/index.js CHANGED
@@ -355,14 +355,6 @@ var createBusinessApi = (apiConfig) => {
355
355
  params: queryParams
356
356
  });
357
357
  },
358
- async processRefund(params, options) {
359
- const { id, ...payload } = params;
360
- return apiConfig.httpClient.post(
361
- `/v1/businesses/${id}/refund`,
362
- payload,
363
- options
364
- );
365
- },
366
358
  async oauthConnect(params, options) {
367
359
  return apiConfig.httpClient.post(
368
360
  `/v1/businesses/${params.businessId}/oauth/connect`,
@@ -879,6 +871,13 @@ var createEshopApi = (apiConfig) => {
879
871
  { ...params, businessId: apiConfig.businessId, market: apiConfig.market },
880
872
  options
881
873
  );
874
+ },
875
+ async processRefund(params, options) {
876
+ return apiConfig.httpClient.post(
877
+ `/v1/businesses/${apiConfig.businessId}/orders/${params.id}/refund`,
878
+ { amount: params.amount },
879
+ options
880
+ );
882
881
  }
883
882
  };
884
883
  };
@@ -964,6 +963,13 @@ var createBookingApi = (apiConfig) => {
964
963
  options
965
964
  );
966
965
  },
966
+ async processRefund(params, options) {
967
+ return apiConfig.httpClient.post(
968
+ `/v1/businesses/${apiConfig.businessId}/bookings/${params.id}/refund`,
969
+ { amount: params.amount },
970
+ options
971
+ );
972
+ },
967
973
  async getAvailability(params, options) {
968
974
  const { businessId, ...query } = params;
969
975
  const targetBusinessId = businessId || apiConfig.businessId;
@@ -2223,7 +2229,7 @@ function getFirstAvailableFCId(variant, quantity = 1) {
2223
2229
  }
2224
2230
 
2225
2231
  // src/index.ts
2226
- var SDK_VERSION = "0.7.26";
2232
+ var SDK_VERSION = "0.7.27";
2227
2233
  var SUPPORTED_FRAMEWORKS = [
2228
2234
  "astro",
2229
2235
  "react",