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.cjs +488 -390
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +279 -217
- package/dist/index.d.ts +279 -217
- package/dist/index.js +488 -390
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,
|
|
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.
|
|
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
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
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
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
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
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
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
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
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
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
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
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
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
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
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
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
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
|
-
|
|
510
|
-
|
|
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
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
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
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
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
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
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;
|