arky-sdk 0.7.60 → 0.7.61

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.ts CHANGED
@@ -1,4 +1,4 @@
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, ProcessOrderRefundParams, Slot, CreateBookingParams, UpdateBookingParams, 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, FindCustomersParams, UpdateCustomerParams, MergeCustomersParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, 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';
1
+ import { Block, RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, GetMeParams, SearchAccountsParams, Location, CreateLocationParams, UpdateLocationParams, DeleteLocationParams, Market, CreateMarketParams, UpdateMarketParams, DeleteMarketParams, 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, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, CreateFormParams, UpdateFormParams, DeleteFormParams, GetFormParams, GetFormsParams, SubmitFormParams, GetFormSubmissionsParams, GetFormSubmissionParams, UpdateFormSubmissionParams, CreateTaxonomyParams, UpdateTaxonomyParams, DeleteTaxonomyParams, GetTaxonomyParams, GetTaxonomiesParams, GetTaxonomyChildrenParams, CreateEmailTemplateParams, UpdateEmailTemplateParams, DeleteEmailTemplateParams, GetEmailTemplateParams, GetEmailTemplatesParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, ProcessOrderRefundParams, Slot, CreateBookingParams, UpdateBookingParams, GetBookingParams, SearchBookingsParams, GetBookingQuoteParams, ProcessBookingRefundParams, GetAvailabilityParams, AvailabilityResponse, CancelBookingItemParams, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, FindServiceProvidersParams, CreateServiceProviderParams, UpdateServiceProviderParams, DeleteServiceProviderParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, CreateCustomerParams, GetCustomerParams, FindCustomersParams, UpdateCustomerParams, MergeCustomersParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, GetAudienceSubscribersParams, AddAudienceSubscriberParams, RemoveAudienceSubscriberParams, CreateAgentParams, UpdateAgentParams, DeleteAgentParams, GetAgentParams, GetAgentsParams, RunAgentParams, GetAgentChatsParams, GetAgentChatParams, UpdateAgentChatParams, RateAgentChatParams, GetBusinessChatsParams, CreateWorkflowParams, UpdateWorkflowParams, DeleteWorkflowParams, GetWorkflowParams, GetWorkflowsParams, TriggerWorkflowParams, GetWorkflowExecutionsParams, GetWorkflowExecutionParams } from './types.js';
2
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, 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, PaginatedResponse, Parcel, PaymentMethod, PaymentMethodType, Price, ProductStatus, PromoCodeStatus, PromoCodeValidation, ProviderAvailability, ProviderWithTimeline, PurchaseLabelResult, Shipment, ShipmentLine, ShippingAddress, ShippingMethod, ShippingStatus, ShippingWeightTier, SystemTemplateKey, TaxonomyStatus, Webhook, WebhookEventSubscription, Workflow, WorkflowEdge, WorkflowExecution, WorkflowHttpMethod, WorkflowHttpNode, WorkflowNode, WorkflowStatus, WorkflowSwitchNode, WorkflowTransformNode, WorkflowTriggerNode, Zone, ZoneLocation } from './types.js';
3
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
 
@@ -148,7 +148,7 @@ declare global {
148
148
  }
149
149
  declare function track(eventName: string, params?: Record<string, any>): void;
150
150
 
151
- declare const SDK_VERSION = "0.7.59";
151
+ declare const SDK_VERSION = "0.7.61";
152
152
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
153
153
  interface ApiConfig {
154
154
  httpClient: any;
@@ -185,6 +185,26 @@ declare function createAdmin(config: HttpClientConfig & {
185
185
  searchAccounts(params: SearchAccountsParams, options?: RequestOptions): Promise<any>;
186
186
  };
187
187
  business: {
188
+ location: {
189
+ getCountries(options?: RequestOptions): Promise<GetCountriesResponse>;
190
+ getCountry(countryCode: string, options?: RequestOptions): Promise<LocationCountry>;
191
+ list(options?: RequestOptions): Promise<Location[]>;
192
+ get(id: string, options?: RequestOptions): Promise<Location>;
193
+ create(params: CreateLocationParams, options?: RequestOptions): Promise<Location>;
194
+ update(params: UpdateLocationParams, options?: RequestOptions): Promise<Location>;
195
+ delete(params: DeleteLocationParams, options?: RequestOptions): Promise<{
196
+ deleted: boolean;
197
+ }>;
198
+ };
199
+ market: {
200
+ list(options?: RequestOptions): Promise<Market[]>;
201
+ get(id: string, options?: RequestOptions): Promise<Market>;
202
+ create(params: CreateMarketParams, options?: RequestOptions): Promise<Market>;
203
+ update(params: UpdateMarketParams, options?: RequestOptions): Promise<Market>;
204
+ delete(params: DeleteMarketParams, options?: RequestOptions): Promise<{
205
+ deleted: boolean;
206
+ }>;
207
+ };
188
208
  createBusiness(params: CreateBusinessParams, options?: RequestOptions): Promise<any>;
189
209
  updateBusiness(params: UpdateBusinessParams, options?: RequestOptions): Promise<any>;
190
210
  deleteBusiness(params: DeleteBusinessParams, options?: RequestOptions): Promise<any>;
@@ -238,91 +258,115 @@ declare function createAdmin(config: HttpClientConfig & {
238
258
  data: string[];
239
259
  }>;
240
260
  };
261
+ shipping: {
262
+ getRates(params: GetShippingRatesParams, options?: RequestOptions): Promise<{
263
+ rates: ShippingRate[];
264
+ }>;
265
+ ship(params: ShipParams, options?: RequestOptions): Promise<ShipResult>;
266
+ };
241
267
  cms: {
242
- createNode(params: CreateNodeParams, options?: RequestOptions): Promise<any>;
243
- updateNode(params: UpdateNodeParams, options?: RequestOptions): Promise<any>;
244
- deleteNode(params: DeleteNodeParams, options?: RequestOptions): Promise<any>;
245
- getNode(params: GetNodeParams, options?: RequestOptions): Promise<any>;
246
- getNodes(params: GetNodesParams, options?: RequestOptions): Promise<any>;
247
- getNodeChildren(params: GetNodeChildrenParams, options?: RequestOptions): Promise<any>;
268
+ node: {
269
+ createNode(params: CreateNodeParams, options?: RequestOptions): Promise<any>;
270
+ updateNode(params: UpdateNodeParams, options?: RequestOptions): Promise<any>;
271
+ deleteNode(params: DeleteNodeParams, options?: RequestOptions): Promise<any>;
272
+ getNode(params: GetNodeParams, options?: RequestOptions): Promise<any>;
273
+ getNodes(params: GetNodesParams, options?: RequestOptions): Promise<any>;
274
+ getNodeChildren(params: GetNodeChildrenParams, options?: RequestOptions): Promise<any>;
275
+ };
276
+ form: {
277
+ createForm(params: CreateFormParams, options?: RequestOptions): Promise<any>;
278
+ updateForm(params: UpdateFormParams, options?: RequestOptions): Promise<any>;
279
+ deleteForm(params: DeleteFormParams, options?: RequestOptions): Promise<any>;
280
+ getForm(params: GetFormParams, options?: RequestOptions): Promise<any>;
281
+ getForms(params: GetFormsParams, options?: RequestOptions): Promise<any>;
282
+ submit(params: SubmitFormParams, options?: RequestOptions): Promise<any>;
283
+ getSubmissions(params: GetFormSubmissionsParams, options?: RequestOptions): Promise<any>;
284
+ getSubmission(params: GetFormSubmissionParams, options?: RequestOptions): Promise<any>;
285
+ updateSubmission(params: UpdateFormSubmissionParams, options?: RequestOptions): Promise<any>;
286
+ };
287
+ taxonomy: {
288
+ createTaxonomy(params: CreateTaxonomyParams, options?: RequestOptions): Promise<any>;
289
+ updateTaxonomy(params: UpdateTaxonomyParams, options?: RequestOptions): Promise<any>;
290
+ deleteTaxonomy(params: DeleteTaxonomyParams, options?: RequestOptions): Promise<any>;
291
+ getTaxonomy(params: GetTaxonomyParams, options?: RequestOptions): Promise<any>;
292
+ getTaxonomies(params: GetTaxonomiesParams, options?: RequestOptions): Promise<any>;
293
+ getTaxonomyChildren(params: GetTaxonomyChildrenParams, options?: RequestOptions): Promise<any>;
294
+ };
295
+ emailTemplate: {
296
+ createEmailTemplate(params: CreateEmailTemplateParams, options?: RequestOptions): Promise<any>;
297
+ updateEmailTemplate(params: UpdateEmailTemplateParams, options?: RequestOptions): Promise<any>;
298
+ deleteEmailTemplate(params: DeleteEmailTemplateParams, options?: RequestOptions): Promise<any>;
299
+ getEmailTemplate(params: GetEmailTemplateParams, options?: RequestOptions): Promise<any>;
300
+ getEmailTemplates(params: GetEmailTemplatesParams, options?: RequestOptions): Promise<any>;
301
+ };
248
302
  };
249
303
  eshop: {
250
- createProduct: (params: CreateProductParams, options?: RequestOptions) => Promise<any>;
251
- updateProduct: (params: UpdateProductParams, options?: RequestOptions) => Promise<any>;
252
- deleteProduct: (params: DeleteProductParams, options?: RequestOptions) => Promise<any>;
253
- getProduct: (params: GetProductParams, options?: RequestOptions) => Promise<any>;
254
- getProducts: (params: GetProductsParams, options?: RequestOptions) => Promise<any>;
255
- createOrder: (params: CreateOrderParams, options?: RequestOptions) => Promise<any>;
256
- updateOrder: (params: UpdateOrderParams, options?: RequestOptions) => Promise<any>;
257
- getOrder: (params: GetOrderParams, options?: RequestOptions) => Promise<any>;
258
- getOrders: (params: GetOrdersParams, options?: RequestOptions) => Promise<any>;
259
- getQuote: (params: GetQuoteParams, options?: RequestOptions) => Promise<any>;
260
- processRefund: (params: ProcessOrderRefundParams, options?: RequestOptions) => Promise<any>;
304
+ product: {
305
+ create: (params: CreateProductParams, options?: RequestOptions) => Promise<any>;
306
+ update: (params: UpdateProductParams, options?: RequestOptions) => Promise<any>;
307
+ delete: (params: DeleteProductParams, options?: RequestOptions) => Promise<any>;
308
+ get: (params: GetProductParams, options?: RequestOptions) => Promise<any>;
309
+ find: (params: GetProductsParams, options?: RequestOptions) => Promise<any>;
310
+ };
311
+ order: {
312
+ create: (params: CreateOrderParams, options?: RequestOptions) => Promise<any>;
313
+ update: (params: UpdateOrderParams, options?: RequestOptions) => Promise<any>;
314
+ get: (params: GetOrderParams, options?: RequestOptions) => Promise<any>;
315
+ find: (params: GetOrdersParams, options?: RequestOptions) => Promise<any>;
316
+ getQuote: (params: GetQuoteParams, options?: RequestOptions) => Promise<any>;
317
+ processRefund: (params: ProcessOrderRefundParams, options?: RequestOptions) => Promise<any>;
318
+ };
261
319
  };
262
320
  booking: {
263
321
  addToCart: (slot: Slot) => void;
264
322
  removeFromCart: (slotId: string) => void;
265
323
  getCart: () => Slot[];
266
324
  clearCart: () => void;
267
- createBooking: (params: CreateBookingParams, options?: RequestOptions) => Promise<any>;
268
- updateBooking: (params: UpdateBookingParams, options?: RequestOptions) => Promise<any>;
269
- getBooking: (params: GetBookingParams, options?: RequestOptions) => Promise<any>;
270
- searchBookings: (params: SearchBookingsParams, options?: RequestOptions) => Promise<any>;
325
+ create: (params: CreateBookingParams, options?: RequestOptions) => Promise<any>;
326
+ update: (params: UpdateBookingParams, options?: RequestOptions) => Promise<any>;
327
+ get: (params: GetBookingParams, options?: RequestOptions) => Promise<any>;
328
+ find: (params: SearchBookingsParams, options?: RequestOptions) => Promise<any>;
271
329
  getQuote: (params: GetBookingQuoteParams, options?: RequestOptions) => Promise<any>;
272
330
  processRefund: (params: ProcessBookingRefundParams, options?: RequestOptions) => Promise<any>;
273
331
  getAvailability: (params: GetAvailabilityParams, options?: RequestOptions) => Promise<AvailabilityResponse>;
274
- createService: (params: CreateServiceParams, options?: RequestOptions) => Promise<any>;
275
- updateService: (params: UpdateServiceParams, options?: RequestOptions) => Promise<any>;
276
- deleteService: (params: DeleteServiceParams, options?: RequestOptions) => Promise<any>;
277
- getService: (params: GetServiceParams, options?: RequestOptions) => Promise<any>;
278
- getServices: (params: GetServicesParams, options?: RequestOptions) => Promise<any>;
279
- createProvider: (params: CreateProviderParams, options?: RequestOptions) => Promise<any>;
280
- updateProvider: (params: UpdateProviderParams, options?: RequestOptions) => Promise<any>;
281
- deleteProvider: (params: DeleteProviderParams, options?: RequestOptions) => Promise<any>;
282
- getProvider: (params: GetProviderParams, options?: RequestOptions) => Promise<any>;
283
- getProviders: (params: GetProvidersParams, options?: RequestOptions) => Promise<any>;
284
- cancelBookingItem: (params: CancelBookingItemParams, options?: RequestOptions) => Promise<any>;
285
- findServiceProviders: (params: FindServiceProvidersParams, options?: RequestOptions) => Promise<any>;
286
- createServiceProvider: (params: CreateServiceProviderParams, options?: RequestOptions) => Promise<any>;
287
- updateServiceProvider: (params: UpdateServiceProviderParams, options?: RequestOptions) => Promise<any>;
288
- deleteServiceProvider: (params: DeleteServiceProviderParams, options?: RequestOptions) => Promise<any>;
289
- };
290
- location: {
291
- getCountries(options?: RequestOptions): Promise<GetCountriesResponse>;
292
- getCountry(countryCode: string, options?: RequestOptions): Promise<LocationCountry>;
293
- list(options?: RequestOptions): Promise<Location[]>;
294
- get(id: string, options?: RequestOptions): Promise<Location>;
295
- create(params: CreateLocationParams, options?: RequestOptions): Promise<Location>;
296
- update(params: UpdateLocationParams, options?: RequestOptions): Promise<Location>;
297
- delete(params: DeleteLocationParams, options?: RequestOptions): Promise<{
298
- deleted: boolean;
299
- }>;
300
- };
301
- market: {
302
- list(options?: RequestOptions): Promise<Market[]>;
303
- get(id: string, options?: RequestOptions): Promise<Market>;
304
- create(params: CreateMarketParams, options?: RequestOptions): Promise<Market>;
305
- update(params: UpdateMarketParams, options?: RequestOptions): Promise<Market>;
306
- delete(params: DeleteMarketParams, options?: RequestOptions): Promise<{
307
- deleted: boolean;
308
- }>;
332
+ cancelItem: (params: CancelBookingItemParams, options?: RequestOptions) => Promise<any>;
333
+ service: {
334
+ create: (params: CreateServiceParams, options?: RequestOptions) => Promise<any>;
335
+ update: (params: UpdateServiceParams, options?: RequestOptions) => Promise<any>;
336
+ delete: (params: DeleteServiceParams, options?: RequestOptions) => Promise<any>;
337
+ get: (params: GetServiceParams, options?: RequestOptions) => Promise<any>;
338
+ find: (params: GetServicesParams, options?: RequestOptions) => Promise<any>;
339
+ findProviders: (params: FindServiceProvidersParams, options?: RequestOptions) => Promise<any>;
340
+ createProvider: (params: CreateServiceProviderParams, options?: RequestOptions) => Promise<any>;
341
+ updateProvider: (params: UpdateServiceProviderParams, options?: RequestOptions) => Promise<any>;
342
+ deleteProvider: (params: DeleteServiceProviderParams, options?: RequestOptions) => Promise<any>;
343
+ };
344
+ provider: {
345
+ create: (params: CreateProviderParams, options?: RequestOptions) => Promise<any>;
346
+ update: (params: UpdateProviderParams, options?: RequestOptions) => Promise<any>;
347
+ delete: (params: DeleteProviderParams, options?: RequestOptions) => Promise<any>;
348
+ get: (params: GetProviderParams, options?: RequestOptions) => Promise<any>;
349
+ find: (params: GetProvidersParams, options?: RequestOptions) => Promise<any>;
350
+ };
309
351
  };
310
352
  crm: {
311
- create: (params: CreateCustomerParams, options?: RequestOptions) => Promise<any>;
312
- get: (params: GetCustomerParams, options?: RequestOptions) => Promise<any>;
313
- find: (params?: FindCustomersParams, options?: RequestOptions) => Promise<any>;
314
- update: (params: UpdateCustomerParams, options?: RequestOptions) => Promise<any>;
315
- merge: (params: MergeCustomersParams, options?: RequestOptions) => Promise<any>;
316
- revokeToken: (params: {
317
- id: string;
318
- tokenId: string;
319
- businessId?: string;
320
- }, options?: RequestOptions) => Promise<any>;
321
- revokeAllTokens: (params: {
322
- id: string;
323
- businessId?: string;
324
- }, options?: RequestOptions) => Promise<any>;
325
- audiences: {
353
+ customer: {
354
+ create: (params: CreateCustomerParams, options?: RequestOptions) => Promise<any>;
355
+ get: (params: GetCustomerParams, options?: RequestOptions) => Promise<any>;
356
+ find: (params?: FindCustomersParams, options?: RequestOptions) => Promise<any>;
357
+ update: (params: UpdateCustomerParams, options?: RequestOptions) => Promise<any>;
358
+ merge: (params: MergeCustomersParams, options?: RequestOptions) => Promise<any>;
359
+ revokeToken: (params: {
360
+ id: string;
361
+ tokenId: string;
362
+ businessId?: string;
363
+ }, options?: RequestOptions) => Promise<any>;
364
+ revokeAllTokens: (params: {
365
+ id: string;
366
+ businessId?: string;
367
+ }, options?: RequestOptions) => Promise<any>;
368
+ };
369
+ audience: {
326
370
  create: (params: CreateAudienceParams, options?: RequestOptions) => Promise<any>;
327
371
  update: (params: UpdateAudienceParams, options?: RequestOptions) => Promise<any>;
328
372
  get: (params: GetAudienceParams, options?: RequestOptions) => Promise<any>;
@@ -331,84 +375,54 @@ declare function createAdmin(config: HttpClientConfig & {
331
375
  addSubscriber: (params: AddAudienceSubscriberParams, options?: RequestOptions) => Promise<any>;
332
376
  removeSubscriber: (params: RemoveAudienceSubscriberParams, options?: RequestOptions) => Promise<any>;
333
377
  };
378
+ reaction: {
379
+ DEFAULT_REACTION_KINDS: readonly ["like", "love", "laugh", "wow", "sad", "insightful", "review", "comment", "star_1", "star_2", "star_3", "star_4", "star_5"];
380
+ isValidReactionKind: typeof isValidReactionKind;
381
+ computeAverageStars: typeof computeAverageStars;
382
+ create(params: CreateReactionParams, options?: RequestOptions): Promise<any>;
383
+ get(params: GetReactionParams, options?: RequestOptions): Promise<any>;
384
+ find(params?: FindReactionsParams, options?: RequestOptions): Promise<any>;
385
+ update(params: UpdateReactionParams, options?: RequestOptions): Promise<any>;
386
+ remove(params: {
387
+ id: string;
388
+ businessId?: string;
389
+ }, options?: RequestOptions): Promise<any>;
390
+ moderate(params: ModerateReactionParams, options?: RequestOptions): Promise<any>;
391
+ listAdmin(params: {
392
+ businessId?: string;
393
+ limit?: number;
394
+ cursor?: string;
395
+ }, options?: RequestOptions): Promise<any>;
396
+ summary(params: EngagementSummaryParams, options?: RequestOptions): Promise<any>;
397
+ };
334
398
  };
335
- reaction: {
336
- DEFAULT_REACTION_KINDS: readonly ["like", "love", "laugh", "wow", "sad", "insightful", "review", "comment", "star_1", "star_2", "star_3", "star_4", "star_5"];
337
- isValidReactionKind: typeof isValidReactionKind;
338
- computeAverageStars: typeof computeAverageStars;
339
- create(params: CreateReactionParams, options?: RequestOptions): Promise<any>;
340
- get(params: GetReactionParams, options?: RequestOptions): Promise<any>;
341
- find(params?: FindReactionsParams, options?: RequestOptions): Promise<any>;
342
- update(params: UpdateReactionParams, options?: RequestOptions): Promise<any>;
343
- remove(params: {
344
- id: string;
345
- businessId?: string;
346
- }, options?: RequestOptions): Promise<any>;
347
- moderate(params: ModerateReactionParams, options?: RequestOptions): Promise<any>;
348
- listAdmin(params: {
349
- businessId?: string;
350
- limit?: number;
351
- cursor?: string;
352
- }, options?: RequestOptions): Promise<any>;
353
- summary(params: EngagementSummaryParams, options?: RequestOptions): Promise<any>;
354
- };
355
- workflow: {
356
- createWorkflow(params: CreateWorkflowParams, options?: RequestOptions): Promise<any>;
357
- updateWorkflow(params: UpdateWorkflowParams, options?: RequestOptions): Promise<any>;
358
- deleteWorkflow(params: DeleteWorkflowParams, options?: RequestOptions): Promise<any>;
359
- getWorkflow(params: GetWorkflowParams, options?: RequestOptions): Promise<any>;
360
- getWorkflows(params?: GetWorkflowsParams, options?: RequestOptions): Promise<any>;
361
- triggerWorkflow(params: TriggerWorkflowParams, options?: RequestOptions): Promise<any>;
362
- getWorkflowExecutions(params: GetWorkflowExecutionsParams, options?: RequestOptions): Promise<any>;
363
- getWorkflowExecution(params: GetWorkflowExecutionParams, options?: RequestOptions): Promise<any>;
364
- };
365
- shipping: {
366
- getRates(params: GetShippingRatesParams, options?: RequestOptions): Promise<{
367
- rates: ShippingRate[];
368
- }>;
369
- ship(params: ShipParams, options?: RequestOptions): Promise<ShipResult>;
370
- };
371
- agent: {
372
- createAgent(params: CreateAgentParams, options?: RequestOptions): Promise<any>;
373
- updateAgent(params: UpdateAgentParams, options?: RequestOptions): Promise<any>;
374
- deleteAgent(params: DeleteAgentParams, options?: RequestOptions): Promise<any>;
375
- getAgent(params: GetAgentParams, options?: RequestOptions): Promise<any>;
376
- getAgents(params?: GetAgentsParams, options?: RequestOptions): Promise<any>;
377
- sendMessage(params: RunAgentParams, options?: RequestOptions): Promise<any>;
378
- getChats(params: GetAgentChatsParams, options?: RequestOptions): Promise<any>;
379
- getChat(params: GetAgentChatParams, options?: RequestOptions): Promise<any>;
380
- updateChat(params: UpdateAgentChatParams, options?: RequestOptions): Promise<any>;
381
- rateChat(params: RateAgentChatParams, options?: RequestOptions): Promise<any>;
382
- getBusinessChats(params: GetBusinessChatsParams, options?: RequestOptions): Promise<any>;
383
- getChatMessages(params: GetAgentChatParams & {
384
- limit?: number;
385
- }, options?: RequestOptions): Promise<any>;
386
- };
387
- emailTemplate: {
388
- createEmailTemplate(params: CreateEmailTemplateParams, options?: RequestOptions): Promise<any>;
389
- updateEmailTemplate(params: UpdateEmailTemplateParams, options?: RequestOptions): Promise<any>;
390
- deleteEmailTemplate(params: DeleteEmailTemplateParams, options?: RequestOptions): Promise<any>;
391
- getEmailTemplate(params: GetEmailTemplateParams, options?: RequestOptions): Promise<any>;
392
- getEmailTemplates(params: GetEmailTemplatesParams, options?: RequestOptions): Promise<any>;
393
- };
394
- form: {
395
- createForm(params: CreateFormParams, options?: RequestOptions): Promise<any>;
396
- updateForm(params: UpdateFormParams, options?: RequestOptions): Promise<any>;
397
- deleteForm(params: DeleteFormParams, options?: RequestOptions): Promise<any>;
398
- getForm(params: GetFormParams, options?: RequestOptions): Promise<any>;
399
- getForms(params: GetFormsParams, options?: RequestOptions): Promise<any>;
400
- submit(params: SubmitFormParams, options?: RequestOptions): Promise<any>;
401
- getSubmissions(params: GetFormSubmissionsParams, options?: RequestOptions): Promise<any>;
402
- getSubmission(params: GetFormSubmissionParams, options?: RequestOptions): Promise<any>;
403
- updateSubmission(params: UpdateFormSubmissionParams, options?: RequestOptions): Promise<any>;
404
- };
405
- taxonomy: {
406
- createTaxonomy(params: CreateTaxonomyParams, options?: RequestOptions): Promise<any>;
407
- updateTaxonomy(params: UpdateTaxonomyParams, options?: RequestOptions): Promise<any>;
408
- deleteTaxonomy(params: DeleteTaxonomyParams, options?: RequestOptions): Promise<any>;
409
- getTaxonomy(params: GetTaxonomyParams, options?: RequestOptions): Promise<any>;
410
- getTaxonomies(params: GetTaxonomiesParams, options?: RequestOptions): Promise<any>;
411
- getTaxonomyChildren(params: GetTaxonomyChildrenParams, options?: RequestOptions): Promise<any>;
399
+ automation: {
400
+ agent: {
401
+ createAgent(params: CreateAgentParams, options?: RequestOptions): Promise<any>;
402
+ updateAgent(params: UpdateAgentParams, options?: RequestOptions): Promise<any>;
403
+ deleteAgent(params: DeleteAgentParams, options?: RequestOptions): Promise<any>;
404
+ getAgent(params: GetAgentParams, options?: RequestOptions): Promise<any>;
405
+ getAgents(params?: GetAgentsParams, options?: RequestOptions): Promise<any>;
406
+ sendMessage(params: RunAgentParams, options?: RequestOptions): Promise<any>;
407
+ getChats(params: GetAgentChatsParams, options?: RequestOptions): Promise<any>;
408
+ getChat(params: GetAgentChatParams, options?: RequestOptions): Promise<any>;
409
+ updateChat(params: UpdateAgentChatParams, options?: RequestOptions): Promise<any>;
410
+ rateChat(params: RateAgentChatParams, options?: RequestOptions): Promise<any>;
411
+ getBusinessChats(params: GetBusinessChatsParams, options?: RequestOptions): Promise<any>;
412
+ getChatMessages(params: GetAgentChatParams & {
413
+ limit?: number;
414
+ }, options?: RequestOptions): Promise<any>;
415
+ };
416
+ workflow: {
417
+ createWorkflow(params: CreateWorkflowParams, options?: RequestOptions): Promise<any>;
418
+ updateWorkflow(params: UpdateWorkflowParams, options?: RequestOptions): Promise<any>;
419
+ deleteWorkflow(params: DeleteWorkflowParams, options?: RequestOptions): Promise<any>;
420
+ getWorkflow(params: GetWorkflowParams, options?: RequestOptions): Promise<any>;
421
+ getWorkflows(params?: GetWorkflowsParams, options?: RequestOptions): Promise<any>;
422
+ triggerWorkflow(params: TriggerWorkflowParams, options?: RequestOptions): Promise<any>;
423
+ getWorkflowExecutions(params: GetWorkflowExecutionsParams, options?: RequestOptions): Promise<any>;
424
+ getWorkflowExecution(params: GetWorkflowExecutionParams, options?: RequestOptions): Promise<any>;
425
+ };
412
426
  };
413
427
  analytics: {
414
428
  track: typeof track;
@@ -478,27 +492,43 @@ declare function createStorefront(config: HttpClientConfig & {
478
492
  businessId?: string;
479
493
  type: "payment" | "shipping" | "analytics";
480
494
  }, options?: RequestOptions): any;
495
+ location: {
496
+ getCountries(options?: RequestOptions): any;
497
+ getCountry(countryCode: string, options?: RequestOptions): any;
498
+ list(options?: RequestOptions): any;
499
+ get(id: string, options?: RequestOptions): any;
500
+ };
501
+ market: {
502
+ list(options?: RequestOptions): any;
503
+ get(id: string, options?: RequestOptions): any;
504
+ };
481
505
  };
482
506
  cms: {
483
- getNode(params: any, options?: RequestOptions): Promise<any>;
484
- getNodes(params: any, options?: RequestOptions): any;
485
- getNodeChildren(params: any, options?: RequestOptions): any;
486
- };
487
- form: {
488
- getForm(params: any, options?: RequestOptions): any;
489
- submit(params: any, options?: RequestOptions): any;
490
- };
491
- taxonomy: {
492
- getTaxonomy(params: any, options?: RequestOptions): any;
493
- getTaxonomyChildren(params: any, options?: RequestOptions): any;
507
+ node: {
508
+ get(params: any, options?: RequestOptions): Promise<any>;
509
+ find(params: any, options?: RequestOptions): any;
510
+ getChildren(params: any, options?: RequestOptions): any;
511
+ };
512
+ form: {
513
+ get(params: any, options?: RequestOptions): any;
514
+ submit(params: any, options?: RequestOptions): any;
515
+ };
516
+ taxonomy: {
517
+ get(params: any, options?: RequestOptions): any;
518
+ getChildren(params: any, options?: RequestOptions): any;
519
+ };
494
520
  };
495
521
  eshop: {
496
- getProduct(params: any, options?: RequestOptions): any;
497
- getProducts(params: any, options?: RequestOptions): any;
498
- getQuote(params: any, options?: RequestOptions): any;
499
- checkout(params: any, options?: RequestOptions): any;
500
- getOrder(params: any, options?: RequestOptions): any;
501
- getOrders(params: any, options?: RequestOptions): any;
522
+ product: {
523
+ get(params: any, options?: RequestOptions): any;
524
+ find(params: any, options?: RequestOptions): any;
525
+ };
526
+ order: {
527
+ getQuote(params: any, options?: RequestOptions): any;
528
+ checkout(params: any, options?: RequestOptions): any;
529
+ get(params: any, options?: RequestOptions): any;
530
+ find(params: any, options?: RequestOptions): any;
531
+ };
502
532
  };
503
533
  booking: {
504
534
  addToCart(slot: Slot): void;
@@ -506,47 +536,46 @@ declare function createStorefront(config: HttpClientConfig & {
506
536
  getCart(): Slot[];
507
537
  clearCart(): void;
508
538
  checkout(params?: any, options?: RequestOptions): any;
509
- getBooking(params: any, options?: RequestOptions): any;
510
- searchBookings(params: any, options?: RequestOptions): any;
539
+ get(params: any, options?: RequestOptions): any;
540
+ find(params: any, options?: RequestOptions): any;
511
541
  getQuote(params: any, options?: RequestOptions): any;
512
542
  getAvailability(params: any, options?: RequestOptions): any;
513
- getService(params: any, options?: RequestOptions): any;
514
- getServices(params: any, options?: RequestOptions): any;
515
- getProvider(params: any, options?: RequestOptions): any;
516
- getProviders(params: any, options?: RequestOptions): any;
517
- cancelBookingItem(params: any, options?: RequestOptions): any;
518
- findServiceProviders(params: any, options?: RequestOptions): any;
519
- };
520
- location: {
521
- getCountries(options?: RequestOptions): any;
522
- getCountry(countryCode: string, options?: RequestOptions): any;
523
- list(options?: RequestOptions): any;
524
- get(id: string, options?: RequestOptions): any;
525
- };
526
- market: {
527
- list(options?: RequestOptions): any;
528
- get(id: string, options?: RequestOptions): any;
543
+ cancelItem(params: any, options?: RequestOptions): any;
544
+ service: {
545
+ get(params: any, options?: RequestOptions): any;
546
+ find(params: any, options?: RequestOptions): any;
547
+ findProviders(params: any, options?: RequestOptions): any;
548
+ };
549
+ provider: {
550
+ get(params: any, options?: RequestOptions): any;
551
+ find(params: any, options?: RequestOptions): any;
552
+ };
529
553
  };
530
554
  crm: {
531
- requestCode(params: {
532
- email: string;
533
- businessId?: string;
534
- }, options?: RequestOptions): any;
535
- verify(params: {
536
- email: string;
537
- code: string;
538
- businessId?: string;
539
- }, options?: RequestOptions): any;
540
- refreshToken(params: {
541
- refreshToken: string;
542
- businessId?: string;
543
- }, options?: RequestOptions): any;
544
- getMe(options?: RequestOptions): any;
545
- initialize(params?: {
546
- businessId?: string;
547
- }, options?: RequestOptions): any;
548
- connect(params: any, options?: RequestOptions): any;
549
- audiences: {
555
+ customer: {
556
+ initialize(params?: {
557
+ businessId?: string;
558
+ }, options?: RequestOptions): any;
559
+ signInAnonymously(params?: {
560
+ businessId?: string;
561
+ }, options?: RequestOptions): any;
562
+ connect(params: any, options?: RequestOptions): any;
563
+ requestCode(params: {
564
+ email: string;
565
+ businessId?: string;
566
+ }, options?: RequestOptions): any;
567
+ verify(params: {
568
+ email: string;
569
+ code: string;
570
+ businessId?: string;
571
+ }, options?: RequestOptions): any;
572
+ refreshToken(params: {
573
+ refreshToken: string;
574
+ businessId?: string;
575
+ }, options?: RequestOptions): any;
576
+ getMe(options?: RequestOptions): any;
577
+ };
578
+ audience: {
550
579
  get(params: any, options?: RequestOptions): any;
551
580
  find(params: any, options?: RequestOptions): any;
552
581
  subscribe(params: any, options?: RequestOptions): any;
@@ -556,20 +585,53 @@ declare function createStorefront(config: HttpClientConfig & {
556
585
  unsubscribe(token: string, options?: RequestOptions): any;
557
586
  confirm(token: string, options?: RequestOptions): any;
558
587
  };
588
+ reaction: {
589
+ DEFAULT_REACTION_KINDS: readonly ["like", "love", "laugh", "wow", "sad", "insightful", "review", "comment", "star_1", "star_2", "star_3", "star_4", "star_5"];
590
+ isValidReactionKind: typeof isValidReactionKind;
591
+ computeAverageStars: typeof computeAverageStars;
592
+ create(params: any, options?: RequestOptions): any;
593
+ get(params: any, options?: RequestOptions): any;
594
+ find(params?: any, options?: RequestOptions): any;
595
+ update(params: any, options?: RequestOptions): any;
596
+ remove(params: {
597
+ id: string;
598
+ businessId?: string;
599
+ }, options?: RequestOptions): any;
600
+ summary(params: any, options?: RequestOptions): any;
601
+ };
559
602
  };
560
- reaction: {
561
- DEFAULT_REACTION_KINDS: readonly ["like", "love", "laugh", "wow", "sad", "insightful", "review", "comment", "star_1", "star_2", "star_3", "star_4", "star_5"];
562
- isValidReactionKind: typeof isValidReactionKind;
563
- computeAverageStars: typeof computeAverageStars;
564
- create(params: any, options?: RequestOptions): any;
565
- get(params: any, options?: RequestOptions): any;
566
- find(params?: any, options?: RequestOptions): any;
567
- update(params: any, options?: RequestOptions): any;
568
- remove(params: {
569
- id: string;
570
- businessId?: string;
571
- }, options?: RequestOptions): any;
572
- summary(params: any, options?: RequestOptions): any;
603
+ automation: {
604
+ agent: {
605
+ getAgents(params?: any, options?: RequestOptions): any;
606
+ getAgent(params: {
607
+ id: string;
608
+ businessId?: string;
609
+ }, options?: RequestOptions): any;
610
+ sendMessage(params: {
611
+ id: string;
612
+ message: string;
613
+ chatId?: string;
614
+ businessId?: string;
615
+ }, options?: RequestOptions): any;
616
+ getChat(params: {
617
+ id: string;
618
+ chatId: string;
619
+ businessId?: string;
620
+ }, options?: RequestOptions): any;
621
+ getChatMessages(params: {
622
+ id: string;
623
+ chatId: string;
624
+ limit?: number;
625
+ businessId?: string;
626
+ }, options?: RequestOptions): any;
627
+ rateChat(params: {
628
+ id: string;
629
+ chatId: string;
630
+ rating: number;
631
+ comment?: string;
632
+ businessId?: string;
633
+ }, options?: RequestOptions): any;
634
+ };
573
635
  };
574
636
  analytics: {
575
637
  track: typeof track;