arky-sdk 0.7.57 → 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 +775 -148
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +382 -182
- package/dist/index.d.ts +382 -182
- package/dist/index.js +774 -148
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -9
- package/dist/types.d.ts +1 -9
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
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,
|
|
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.cjs';
|
|
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.cjs';
|
|
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-BCAQZOwm.cjs';
|
|
4
4
|
|
|
@@ -11,6 +11,7 @@ interface AuthTokens {
|
|
|
11
11
|
interface HttpClientConfig {
|
|
12
12
|
baseUrl: string;
|
|
13
13
|
businessId: string;
|
|
14
|
+
refreshPath?: string;
|
|
14
15
|
getToken: () => Promise<AuthTokens> | AuthTokens;
|
|
15
16
|
setToken: (tokens: AuthTokens) => void;
|
|
16
17
|
logout: () => void;
|
|
@@ -147,7 +148,7 @@ declare global {
|
|
|
147
148
|
}
|
|
148
149
|
declare function track(eventName: string, params?: Record<string, any>): void;
|
|
149
150
|
|
|
150
|
-
declare const SDK_VERSION = "0.7.
|
|
151
|
+
declare const SDK_VERSION = "0.7.61";
|
|
151
152
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
152
153
|
interface ApiConfig {
|
|
153
154
|
httpClient: any;
|
|
@@ -159,7 +160,7 @@ interface ApiConfig {
|
|
|
159
160
|
getToken: () => Promise<any> | any;
|
|
160
161
|
}
|
|
161
162
|
|
|
162
|
-
declare function
|
|
163
|
+
declare function createAdmin(config: HttpClientConfig & {
|
|
163
164
|
market: string;
|
|
164
165
|
locale?: string;
|
|
165
166
|
}): Promise<{
|
|
@@ -184,6 +185,26 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
184
185
|
searchAccounts(params: SearchAccountsParams, options?: RequestOptions): Promise<any>;
|
|
185
186
|
};
|
|
186
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
|
+
};
|
|
187
208
|
createBusiness(params: CreateBusinessParams, options?: RequestOptions): Promise<any>;
|
|
188
209
|
updateBusiness(params: UpdateBusinessParams, options?: RequestOptions): Promise<any>;
|
|
189
210
|
deleteBusiness(params: DeleteBusinessParams, options?: RequestOptions): Promise<any>;
|
|
@@ -237,201 +258,380 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
237
258
|
data: string[];
|
|
238
259
|
}>;
|
|
239
260
|
};
|
|
261
|
+
shipping: {
|
|
262
|
+
getRates(params: GetShippingRatesParams, options?: RequestOptions): Promise<{
|
|
263
|
+
rates: ShippingRate[];
|
|
264
|
+
}>;
|
|
265
|
+
ship(params: ShipParams, options?: RequestOptions): Promise<ShipResult>;
|
|
266
|
+
};
|
|
240
267
|
cms: {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
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
|
+
};
|
|
247
302
|
};
|
|
248
303
|
eshop: {
|
|
249
|
-
|
|
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
|
-
addToCart(slot: Slot)
|
|
264
|
-
removeFromCart(slotId: string)
|
|
265
|
-
getCart()
|
|
266
|
-
clearCart()
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
getCountry(countryCode: string, options?: RequestOptions): Promise<LocationCountry>;
|
|
294
|
-
list(options?: RequestOptions): Promise<Location[]>;
|
|
295
|
-
get(id: string, options?: RequestOptions): Promise<Location>;
|
|
296
|
-
create(params: CreateLocationParams, options?: RequestOptions): Promise<Location>;
|
|
297
|
-
update(params: UpdateLocationParams, options?: RequestOptions): Promise<Location>;
|
|
298
|
-
delete(params: DeleteLocationParams, options?: RequestOptions): Promise<{
|
|
299
|
-
deleted: boolean;
|
|
300
|
-
}>;
|
|
301
|
-
};
|
|
302
|
-
market: {
|
|
303
|
-
list(options?: RequestOptions): Promise<Market[]>;
|
|
304
|
-
get(id: string, options?: RequestOptions): Promise<Market>;
|
|
305
|
-
create(params: CreateMarketParams, options?: RequestOptions): Promise<Market>;
|
|
306
|
-
update(params: UpdateMarketParams, options?: RequestOptions): Promise<Market>;
|
|
307
|
-
delete(params: DeleteMarketParams, options?: RequestOptions): Promise<{
|
|
308
|
-
deleted: boolean;
|
|
309
|
-
}>;
|
|
321
|
+
addToCart: (slot: Slot) => void;
|
|
322
|
+
removeFromCart: (slotId: string) => void;
|
|
323
|
+
getCart: () => Slot[];
|
|
324
|
+
clearCart: () => void;
|
|
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>;
|
|
329
|
+
getQuote: (params: GetBookingQuoteParams, options?: RequestOptions) => Promise<any>;
|
|
330
|
+
processRefund: (params: ProcessBookingRefundParams, options?: RequestOptions) => Promise<any>;
|
|
331
|
+
getAvailability: (params: GetAvailabilityParams, options?: RequestOptions) => Promise<AvailabilityResponse>;
|
|
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
|
+
};
|
|
310
351
|
};
|
|
311
352
|
crm: {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
update(params: UpdateAudienceParams, options?: RequestOptions): Promise<any>;
|
|
347
|
-
get(params: GetAudienceParams, options?: RequestOptions): Promise<any>;
|
|
348
|
-
find(params: GetAudiencesParams, options?: RequestOptions): Promise<any>;
|
|
349
|
-
subscribe(params: SubscribeAudienceParams, options?: RequestOptions): Promise<any>;
|
|
350
|
-
checkAccess(params: {
|
|
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: {
|
|
370
|
+
create: (params: CreateAudienceParams, options?: RequestOptions) => Promise<any>;
|
|
371
|
+
update: (params: UpdateAudienceParams, options?: RequestOptions) => Promise<any>;
|
|
372
|
+
get: (params: GetAudienceParams, options?: RequestOptions) => Promise<any>;
|
|
373
|
+
find: (params: GetAudiencesParams, options?: RequestOptions) => Promise<any>;
|
|
374
|
+
getSubscribers: (params: GetAudienceSubscribersParams, options?: RequestOptions) => Promise<any>;
|
|
375
|
+
addSubscriber: (params: AddAudienceSubscriberParams, options?: RequestOptions) => Promise<any>;
|
|
376
|
+
removeSubscriber: (params: RemoveAudienceSubscriberParams, options?: RequestOptions) => Promise<any>;
|
|
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: {
|
|
351
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;
|
|
352
395
|
}, options?: RequestOptions): Promise<any>;
|
|
353
|
-
|
|
354
|
-
addSubscriber(params: AddAudienceSubscriberParams, options?: RequestOptions): Promise<any>;
|
|
355
|
-
removeSubscriber(params: RemoveAudienceSubscriberParams, options?: RequestOptions): Promise<any>;
|
|
396
|
+
summary(params: EngagementSummaryParams, options?: RequestOptions): Promise<any>;
|
|
356
397
|
};
|
|
357
398
|
};
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
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
|
+
};
|
|
377
426
|
};
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
updateWorkflow(params: UpdateWorkflowParams, options?: RequestOptions): Promise<any>;
|
|
381
|
-
deleteWorkflow(params: DeleteWorkflowParams, options?: RequestOptions): Promise<any>;
|
|
382
|
-
getWorkflow(params: GetWorkflowParams, options?: RequestOptions): Promise<any>;
|
|
383
|
-
getWorkflows(params?: GetWorkflowsParams, options?: RequestOptions): Promise<any>;
|
|
384
|
-
triggerWorkflow(params: TriggerWorkflowParams, options?: RequestOptions): Promise<any>;
|
|
385
|
-
getWorkflowExecutions(params: GetWorkflowExecutionsParams, options?: RequestOptions): Promise<any>;
|
|
386
|
-
getWorkflowExecution(params: GetWorkflowExecutionParams, options?: RequestOptions): Promise<any>;
|
|
427
|
+
analytics: {
|
|
428
|
+
track: typeof track;
|
|
387
429
|
};
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
430
|
+
setBusinessId: (businessId: string) => void;
|
|
431
|
+
getBusinessId: () => string;
|
|
432
|
+
setMarket: (market: string) => void;
|
|
433
|
+
getMarket: () => string;
|
|
434
|
+
setLocale: (locale: string) => void;
|
|
435
|
+
getLocale: () => string;
|
|
436
|
+
isAuthenticated: () => boolean;
|
|
437
|
+
logout: () => void;
|
|
438
|
+
setToken: (tokens: AuthTokens) => void;
|
|
439
|
+
extractBlockValues: typeof extractBlockValues;
|
|
440
|
+
utils: {
|
|
441
|
+
getImageUrl: (imageBlock: any, isBlock?: boolean) => any;
|
|
442
|
+
getBlockValue: (entry: any, blockKey: string) => any;
|
|
443
|
+
getBlockTextValue: (block: any, locale?: string) => string;
|
|
444
|
+
getBlockValues: (entry: any, blockKey: string) => any;
|
|
445
|
+
getBlockLabel: typeof getBlockLabel;
|
|
446
|
+
getBlockObjectValues: (entry: any, blockKey: string, locale?: string) => any;
|
|
447
|
+
getBlockFromArray: (entry: any, blockKey: string, locale?: string) => any;
|
|
448
|
+
formatBlockValue: typeof formatBlockValue;
|
|
449
|
+
prepareBlocksForSubmission: typeof prepareBlocksForSubmission;
|
|
450
|
+
extractBlockValues: typeof extractBlockValues;
|
|
451
|
+
formatPrice: (prices: any[]) => string;
|
|
452
|
+
getPriceAmount: (prices: any[]) => number;
|
|
453
|
+
formatPayment: typeof formatPayment;
|
|
454
|
+
formatMinor: typeof formatMinor;
|
|
455
|
+
getCurrencySymbol: typeof getCurrencySymbol;
|
|
456
|
+
getCurrencyName: typeof getCurrencyName;
|
|
457
|
+
validatePhoneNumber: typeof validatePhoneNumber;
|
|
458
|
+
tzGroups: {
|
|
459
|
+
label: string;
|
|
460
|
+
zones: {
|
|
461
|
+
label: string;
|
|
462
|
+
value: string;
|
|
463
|
+
}[];
|
|
464
|
+
}[];
|
|
465
|
+
findTimeZone: typeof findTimeZone;
|
|
466
|
+
slugify: typeof slugify;
|
|
467
|
+
humanize: typeof humanize;
|
|
468
|
+
categorify: typeof categorify;
|
|
469
|
+
formatDate: typeof formatDate;
|
|
470
|
+
getSvgContentForAstro: typeof getSvgContentForAstro;
|
|
471
|
+
fetchSvgContent: typeof fetchSvgContent;
|
|
472
|
+
injectSvgIntoElement: typeof injectSvgIntoElement;
|
|
473
|
+
isValidKey: typeof isValidKey;
|
|
474
|
+
validateKey: typeof validateKey;
|
|
475
|
+
toKey: typeof toKey;
|
|
476
|
+
nameToKey: typeof nameToKey;
|
|
477
|
+
track: typeof track;
|
|
478
|
+
getAvailableStock: typeof getAvailableStock;
|
|
479
|
+
getReservedStock: typeof getReservedStock;
|
|
480
|
+
hasStock: typeof hasStock;
|
|
481
|
+
getInventoryAt: typeof getInventoryAt;
|
|
482
|
+
getFirstAvailableFCId: typeof getFirstAvailableFCId;
|
|
393
483
|
};
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
484
|
+
}>;
|
|
485
|
+
declare function createStorefront(config: HttpClientConfig & {
|
|
486
|
+
market: string;
|
|
487
|
+
locale?: string;
|
|
488
|
+
}): Promise<{
|
|
489
|
+
business: {
|
|
490
|
+
getBusiness(options?: RequestOptions): any;
|
|
491
|
+
getIntegrationConfig(params: {
|
|
492
|
+
businessId?: string;
|
|
493
|
+
type: "payment" | "shipping" | "analytics";
|
|
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
|
+
};
|
|
409
505
|
};
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
506
|
+
cms: {
|
|
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
|
+
};
|
|
520
|
+
};
|
|
521
|
+
eshop: {
|
|
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
|
+
};
|
|
532
|
+
};
|
|
533
|
+
booking: {
|
|
534
|
+
addToCart(slot: Slot): void;
|
|
535
|
+
removeFromCart(slotId: string): void;
|
|
536
|
+
getCart(): Slot[];
|
|
537
|
+
clearCart(): void;
|
|
538
|
+
checkout(params?: any, options?: RequestOptions): any;
|
|
539
|
+
get(params: any, options?: RequestOptions): any;
|
|
540
|
+
find(params: any, options?: RequestOptions): any;
|
|
541
|
+
getQuote(params: any, options?: RequestOptions): any;
|
|
542
|
+
getAvailability(params: any, 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
|
+
};
|
|
416
553
|
};
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
554
|
+
crm: {
|
|
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: {
|
|
579
|
+
get(params: any, options?: RequestOptions): any;
|
|
580
|
+
find(params: any, options?: RequestOptions): any;
|
|
581
|
+
subscribe(params: any, options?: RequestOptions): any;
|
|
582
|
+
checkAccess(params: {
|
|
583
|
+
id: string;
|
|
584
|
+
}, options?: RequestOptions): any;
|
|
585
|
+
unsubscribe(token: string, options?: RequestOptions): any;
|
|
586
|
+
confirm(token: string, options?: RequestOptions): any;
|
|
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
|
+
};
|
|
427
602
|
};
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
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
|
+
};
|
|
435
635
|
};
|
|
436
636
|
analytics: {
|
|
437
637
|
track: typeof track;
|
|
@@ -492,4 +692,4 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
492
692
|
};
|
|
493
693
|
}>;
|
|
494
694
|
|
|
495
|
-
export { type ApiConfig, AvailabilityResponse, Block, CreateAgentParams, CreateLocationParams, type CreateReactionParams, DEFAULT_REACTION_KINDS, DeleteLocationParams, type EngagementSummary, type EngagementSummaryParams, type FindReactionsParams, GetAgentParams, GetAgentsParams, GetAvailabilityParams, type GetCountriesResponse, type GetReactionParams, GetShippingRatesParams, type HttpClientConfig, Location, type LocationCountry, type LocationState, Market, type ModerateReactionParams, REACTION_KIND_REGEX, type Reaction, type ReactionStatus, type ReactionTarget, type ReactionTargetType, SDK_VERSION, SUPPORTED_FRAMEWORKS, ShipParams, ShipResult, ShippingRate, Slot, UpdateAgentParams, UpdateLocationParams, type UpdateReactionParams, computeAverageStars,
|
|
695
|
+
export { type ApiConfig, AvailabilityResponse, Block, CreateAgentParams, CreateLocationParams, type CreateReactionParams, DEFAULT_REACTION_KINDS, DeleteLocationParams, type EngagementSummary, type EngagementSummaryParams, type FindReactionsParams, GetAgentParams, GetAgentsParams, GetAvailabilityParams, type GetCountriesResponse, type GetReactionParams, GetShippingRatesParams, type HttpClientConfig, Location, type LocationCountry, type LocationState, Market, type ModerateReactionParams, REACTION_KIND_REGEX, type Reaction, type ReactionStatus, type ReactionTarget, type ReactionTargetType, SDK_VERSION, SUPPORTED_FRAMEWORKS, ShipParams, ShipResult, ShippingRate, Slot, UpdateAgentParams, UpdateLocationParams, type UpdateReactionParams, computeAverageStars, createAdmin, createStorefront, isValidReactionKind };
|