arky-sdk 0.4.44 → 0.4.48
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 +46 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +46 -59
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +98 -13
- package/dist/types.d.ts +98 -13
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, AddPhoneNumberParams, PhoneNumberConfirmParams, GetMeParams, SearchAccountsParams, AccountSubscribeParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionPlansParams, GetSubscriptionParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams,
|
|
2
|
-
export { Access, Address, AnalyticsConfig, ApiResponse, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, Block, Business, BusinessConfig,
|
|
1
|
+
import { RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, AddPhoneNumberParams, PhoneNumberConfirmParams, GetMeParams, SearchAccountsParams, AccountSubscribeParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionPlansParams, GetSubscriptionParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, ConnectStripeParams, DisconnectStripeParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, GetDeliveryStatsParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, GenerateBlocksParams, GetVariableMetadataParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, Slot, CreateReservationParams, UpdateReservationParams, ReservationCheckoutParams, GetReservationParams, SearchReservationsParams, GetReservationQuoteParams, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, BulkScheduleParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, GetBusinessServiceWorkingTimeParams, CreateWorkflowParams, UpdateWorkflowParams, DeleteWorkflowParams, GetWorkflowParams, GetWorkflowsParams, TriggerWorkflowParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, SubscribeAudienceParams, GetAudienceSubscribersParams, RevokeAudienceSubscriptionParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, GetEventsParams, UpdateEventParams } from './types.cjs';
|
|
2
|
+
export { Access, Address, AnalyticsConfig, ApiResponse, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, Block, Business, BusinessConfig, BusinessShippingProvider, CustomsDeclaration, CustomsItem, DayAvailability, EshopCartItem, EshopStoreState, Event, EventAction, GeoLocation, GeoLocationBlock, GetAvailabilityParams, GetSlotsForDateParams, Language, Location, Market, Media, MediaResolution, Node, OrderShipping, PaginatedResponse, Parcel, Payment, PaymentMethod, PaymentMethodType, PaymentProviderConfig, PaymentRefund, Price, PromoCodeValidation, ProviderWithTimeline, PurchaseLabelResult, Quote, ReservationCartItem, ReservationStoreState, Shipment, ShipmentLine, ShippingAddress, ShippingMethod, ShippingProviderShippo, ShippingProviderStatus, ShippingStatus, ShippingWeightTier, SystemTemplateKey, Workflow, WorkflowEdge, WorkflowHttpMethod, WorkflowHttpNode, WorkflowIfNode, WorkflowLoopNode, WorkflowNode, WorkflowTriggerNode, WorkflowWaitNode, 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-C28uWlRE.cjs';
|
|
4
4
|
|
|
5
5
|
interface AuthTokens {
|
|
@@ -175,8 +175,6 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
175
175
|
testWebhook(params: TestWebhookParams, options?: RequestOptions): Promise<any>;
|
|
176
176
|
getBusinessMedia(params: GetBusinessMediaParams2, options?: RequestOptions): Promise<any>;
|
|
177
177
|
processRefund(params: ProcessRefundParams, options?: RequestOptions): Promise<any>;
|
|
178
|
-
getBusinessEvents(params: GetBusinessEventsParams, options?: RequestOptions): Promise<any>;
|
|
179
|
-
updateBusinessEventPayload(params: UpdateBusinessEventParams, options?: RequestOptions): Promise<any>;
|
|
180
178
|
connectStripe(params: ConnectStripeParams, options?: RequestOptions): Promise<any>;
|
|
181
179
|
disconnectStripe(params: DisconnectStripeParams, options?: RequestOptions): Promise<any>;
|
|
182
180
|
};
|
|
@@ -291,7 +289,11 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
291
289
|
getRates(params: GetShippingRatesParams, options?: RequestOptions): Promise<{
|
|
292
290
|
rates: ShippingRate[];
|
|
293
291
|
}>;
|
|
294
|
-
|
|
292
|
+
ship(params: ShipParams, options?: RequestOptions): Promise<ShipResult>;
|
|
293
|
+
};
|
|
294
|
+
events: {
|
|
295
|
+
getEvents(params: GetEventsParams, options?: RequestOptions): Promise<any>;
|
|
296
|
+
updateEvent(params: UpdateEventParams, options?: RequestOptions): Promise<any>;
|
|
295
297
|
};
|
|
296
298
|
analytics: {
|
|
297
299
|
track: typeof track;
|
|
@@ -355,4 +357,4 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
355
357
|
getStripeConnectClientId: () => string;
|
|
356
358
|
}>;
|
|
357
359
|
|
|
358
|
-
export { type ApiConfig, type GetCountriesResponse, GetShippingRatesParams, type HttpClientConfig, type LocationCountry, type LocationState,
|
|
360
|
+
export { type ApiConfig, type GetCountriesResponse, GetShippingRatesParams, type HttpClientConfig, type LocationCountry, type LocationState, SDK_VERSION, SUPPORTED_FRAMEWORKS, ShipParams, ShipResult, ShippingRate, Slot, createArkySDK };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, AddPhoneNumberParams, PhoneNumberConfirmParams, GetMeParams, SearchAccountsParams, AccountSubscribeParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionPlansParams, GetSubscriptionParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams,
|
|
2
|
-
export { Access, Address, AnalyticsConfig, ApiResponse, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, Block, Business, BusinessConfig,
|
|
1
|
+
import { RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, AddPhoneNumberParams, PhoneNumberConfirmParams, GetMeParams, SearchAccountsParams, AccountSubscribeParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionPlansParams, GetSubscriptionParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, ConnectStripeParams, DisconnectStripeParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, GetDeliveryStatsParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, GenerateBlocksParams, GetVariableMetadataParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, Slot, CreateReservationParams, UpdateReservationParams, ReservationCheckoutParams, GetReservationParams, SearchReservationsParams, GetReservationQuoteParams, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, BulkScheduleParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, GetBusinessServiceWorkingTimeParams, CreateWorkflowParams, UpdateWorkflowParams, DeleteWorkflowParams, GetWorkflowParams, GetWorkflowsParams, TriggerWorkflowParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, SubscribeAudienceParams, GetAudienceSubscribersParams, RevokeAudienceSubscriptionParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, GetEventsParams, UpdateEventParams } from './types.js';
|
|
2
|
+
export { Access, Address, AnalyticsConfig, ApiResponse, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, Block, Business, BusinessConfig, BusinessShippingProvider, CustomsDeclaration, CustomsItem, DayAvailability, EshopCartItem, EshopStoreState, Event, EventAction, GeoLocation, GeoLocationBlock, GetAvailabilityParams, GetSlotsForDateParams, Language, Location, Market, Media, MediaResolution, Node, OrderShipping, PaginatedResponse, Parcel, Payment, PaymentMethod, PaymentMethodType, PaymentProviderConfig, PaymentRefund, Price, PromoCodeValidation, ProviderWithTimeline, PurchaseLabelResult, Quote, ReservationCartItem, ReservationStoreState, Shipment, ShipmentLine, ShippingAddress, ShippingMethod, ShippingProviderShippo, ShippingProviderStatus, ShippingStatus, ShippingWeightTier, SystemTemplateKey, Workflow, WorkflowEdge, WorkflowHttpMethod, WorkflowHttpNode, WorkflowIfNode, WorkflowLoopNode, WorkflowNode, WorkflowTriggerNode, WorkflowWaitNode, 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-GZfY5CmP.js';
|
|
4
4
|
|
|
5
5
|
interface AuthTokens {
|
|
@@ -175,8 +175,6 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
175
175
|
testWebhook(params: TestWebhookParams, options?: RequestOptions): Promise<any>;
|
|
176
176
|
getBusinessMedia(params: GetBusinessMediaParams2, options?: RequestOptions): Promise<any>;
|
|
177
177
|
processRefund(params: ProcessRefundParams, options?: RequestOptions): Promise<any>;
|
|
178
|
-
getBusinessEvents(params: GetBusinessEventsParams, options?: RequestOptions): Promise<any>;
|
|
179
|
-
updateBusinessEventPayload(params: UpdateBusinessEventParams, options?: RequestOptions): Promise<any>;
|
|
180
178
|
connectStripe(params: ConnectStripeParams, options?: RequestOptions): Promise<any>;
|
|
181
179
|
disconnectStripe(params: DisconnectStripeParams, options?: RequestOptions): Promise<any>;
|
|
182
180
|
};
|
|
@@ -291,7 +289,11 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
291
289
|
getRates(params: GetShippingRatesParams, options?: RequestOptions): Promise<{
|
|
292
290
|
rates: ShippingRate[];
|
|
293
291
|
}>;
|
|
294
|
-
|
|
292
|
+
ship(params: ShipParams, options?: RequestOptions): Promise<ShipResult>;
|
|
293
|
+
};
|
|
294
|
+
events: {
|
|
295
|
+
getEvents(params: GetEventsParams, options?: RequestOptions): Promise<any>;
|
|
296
|
+
updateEvent(params: UpdateEventParams, options?: RequestOptions): Promise<any>;
|
|
295
297
|
};
|
|
296
298
|
analytics: {
|
|
297
299
|
track: typeof track;
|
|
@@ -355,4 +357,4 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
355
357
|
getStripeConnectClientId: () => string;
|
|
356
358
|
}>;
|
|
357
359
|
|
|
358
|
-
export { type ApiConfig, type GetCountriesResponse, GetShippingRatesParams, type HttpClientConfig, type LocationCountry, type LocationState,
|
|
360
|
+
export { type ApiConfig, type GetCountriesResponse, GetShippingRatesParams, type HttpClientConfig, type LocationCountry, type LocationState, SDK_VERSION, SUPPORTED_FRAMEWORKS, ShipParams, ShipResult, ShippingRate, Slot, createArkySDK };
|
package/dist/index.js
CHANGED
|
@@ -405,26 +405,6 @@ var createBusinessApi = (apiConfig) => {
|
|
|
405
405
|
options
|
|
406
406
|
);
|
|
407
407
|
},
|
|
408
|
-
async getBusinessEvents(params, options) {
|
|
409
|
-
return apiConfig.httpClient.get(
|
|
410
|
-
`/v1/businesses/${apiConfig.businessId}/events`,
|
|
411
|
-
{
|
|
412
|
-
...options,
|
|
413
|
-
params: {
|
|
414
|
-
entity: params.entity,
|
|
415
|
-
limit: params.limit,
|
|
416
|
-
cursor: params.cursor
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
);
|
|
420
|
-
},
|
|
421
|
-
async updateBusinessEventPayload(params, options) {
|
|
422
|
-
return apiConfig.httpClient.put(
|
|
423
|
-
`/v1/businesses/${apiConfig.businessId}/events/${params.eventId}`,
|
|
424
|
-
{ payload: params.payload },
|
|
425
|
-
options
|
|
426
|
-
);
|
|
427
|
-
},
|
|
428
408
|
async connectStripe(params, options) {
|
|
429
409
|
return apiConfig.httpClient.post(
|
|
430
410
|
`/v1/businesses/${params.businessId}/stripe/connect`,
|
|
@@ -497,11 +477,11 @@ var createMediaApi = (apiConfig) => {
|
|
|
497
477
|
return await response.json();
|
|
498
478
|
},
|
|
499
479
|
async updateMedia(params, options) {
|
|
500
|
-
const { mediaId, businessId, ...
|
|
480
|
+
const { mediaId, businessId, ...payload } = params;
|
|
501
481
|
const targetBusinessId = businessId || apiConfig.businessId;
|
|
502
482
|
return apiConfig.httpClient.put(
|
|
503
483
|
`/v1/businesses/${targetBusinessId}/media/${mediaId}`,
|
|
504
|
-
|
|
484
|
+
payload,
|
|
505
485
|
options
|
|
506
486
|
);
|
|
507
487
|
}
|
|
@@ -907,15 +887,11 @@ var createReservationApi = (apiConfig) => {
|
|
|
907
887
|
cart = [];
|
|
908
888
|
},
|
|
909
889
|
async createReservation(params, options) {
|
|
910
|
-
const { businessId, ...
|
|
890
|
+
const { businessId, ...payload } = params;
|
|
911
891
|
const targetBusinessId = businessId || apiConfig.businessId;
|
|
912
|
-
const payload = {
|
|
913
|
-
market: apiConfig.market,
|
|
914
|
-
...rest
|
|
915
|
-
};
|
|
916
892
|
return apiConfig.httpClient.post(
|
|
917
893
|
`/v1/businesses/${targetBusinessId}/reservations`,
|
|
918
|
-
payload,
|
|
894
|
+
{ market: apiConfig.market, ...payload },
|
|
919
895
|
options
|
|
920
896
|
);
|
|
921
897
|
},
|
|
@@ -928,22 +904,17 @@ var createReservationApi = (apiConfig) => {
|
|
|
928
904
|
);
|
|
929
905
|
},
|
|
930
906
|
async checkout(params, options) {
|
|
931
|
-
const { businessId, ...
|
|
907
|
+
const { businessId, items: paramItems, ...payload } = params || {};
|
|
932
908
|
const targetBusinessId = businessId || apiConfig.businessId;
|
|
933
|
-
const items =
|
|
909
|
+
const items = paramItems || cart.map((s) => ({
|
|
934
910
|
serviceId: s.serviceId,
|
|
935
911
|
providerId: s.providerId,
|
|
936
912
|
from: s.from,
|
|
937
913
|
to: s.to
|
|
938
914
|
}));
|
|
939
|
-
const payload = {
|
|
940
|
-
market: apiConfig.market,
|
|
941
|
-
...rest,
|
|
942
|
-
items
|
|
943
|
-
};
|
|
944
915
|
return apiConfig.httpClient.post(
|
|
945
916
|
`/v1/businesses/${targetBusinessId}/reservations/checkout`,
|
|
946
|
-
payload,
|
|
917
|
+
{ market: apiConfig.market, ...payload, items },
|
|
947
918
|
options
|
|
948
919
|
);
|
|
949
920
|
},
|
|
@@ -966,15 +937,11 @@ var createReservationApi = (apiConfig) => {
|
|
|
966
937
|
);
|
|
967
938
|
},
|
|
968
939
|
async getQuote(params, options) {
|
|
969
|
-
const { businessId, ...
|
|
940
|
+
const { businessId, ...payload } = params;
|
|
970
941
|
const targetBusinessId = businessId || apiConfig.businessId;
|
|
971
|
-
const payload = {
|
|
972
|
-
market: apiConfig.market,
|
|
973
|
-
...rest
|
|
974
|
-
};
|
|
975
942
|
return apiConfig.httpClient.post(
|
|
976
943
|
`/v1/businesses/${targetBusinessId}/reservations/quote`,
|
|
977
|
-
payload,
|
|
944
|
+
{ market: apiConfig.market, ...payload },
|
|
978
945
|
options
|
|
979
946
|
);
|
|
980
947
|
},
|
|
@@ -1276,8 +1243,8 @@ var createWorkflowApi = (apiConfig) => {
|
|
|
1276
1243
|
});
|
|
1277
1244
|
},
|
|
1278
1245
|
async triggerWorkflow(params, options) {
|
|
1279
|
-
const { secret, ...
|
|
1280
|
-
return apiConfig.httpClient.post(`/v1/workflows/trigger/${secret}`,
|
|
1246
|
+
const { secret, ...payload } = params;
|
|
1247
|
+
return apiConfig.httpClient.post(`/v1/workflows/trigger/${secret}`, payload, options);
|
|
1281
1248
|
}
|
|
1282
1249
|
};
|
|
1283
1250
|
};
|
|
@@ -1381,34 +1348,53 @@ var createShippingApi = (apiConfig) => {
|
|
|
1381
1348
|
* Get available shipping rates for a shipment
|
|
1382
1349
|
*/
|
|
1383
1350
|
async getRates(params, options) {
|
|
1351
|
+
const { orderId, ...payload } = params;
|
|
1384
1352
|
return apiConfig.httpClient.post(
|
|
1385
|
-
`/v1/businesses/${apiConfig.businessId}/orders/${
|
|
1386
|
-
|
|
1387
|
-
shippingProviderId: params.shippingProviderId,
|
|
1388
|
-
fromAddress: params.fromAddress,
|
|
1389
|
-
toAddress: params.toAddress,
|
|
1390
|
-
parcel: params.parcel
|
|
1391
|
-
},
|
|
1353
|
+
`/v1/businesses/${apiConfig.businessId}/orders/${orderId}/rates`,
|
|
1354
|
+
payload,
|
|
1392
1355
|
options
|
|
1393
1356
|
);
|
|
1394
1357
|
},
|
|
1395
1358
|
/**
|
|
1396
|
-
*
|
|
1359
|
+
* Ship items: creates shipment + purchases label atomically
|
|
1397
1360
|
*/
|
|
1398
|
-
async
|
|
1361
|
+
async ship(params, options) {
|
|
1362
|
+
const { orderId, ...payload } = params;
|
|
1399
1363
|
return apiConfig.httpClient.post(
|
|
1400
|
-
`/v1/businesses/${apiConfig.businessId}/orders/${
|
|
1364
|
+
`/v1/businesses/${apiConfig.businessId}/orders/${orderId}/ship`,
|
|
1365
|
+
payload,
|
|
1366
|
+
options
|
|
1367
|
+
);
|
|
1368
|
+
}
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
|
|
1372
|
+
// src/api/events.ts
|
|
1373
|
+
function createEventsApi(apiConfig) {
|
|
1374
|
+
return {
|
|
1375
|
+
async getEvents(params, options) {
|
|
1376
|
+
return apiConfig.httpClient.get(`/v1/events`, {
|
|
1377
|
+
...options,
|
|
1378
|
+
params: {
|
|
1379
|
+
businessId: apiConfig.businessId,
|
|
1380
|
+
entity: params.entity,
|
|
1381
|
+
limit: params.limit,
|
|
1382
|
+
cursor: params.cursor
|
|
1383
|
+
}
|
|
1384
|
+
});
|
|
1385
|
+
},
|
|
1386
|
+
async updateEvent(params, options) {
|
|
1387
|
+
return apiConfig.httpClient.put(
|
|
1388
|
+
`/v1/events/${params.eventId}`,
|
|
1401
1389
|
{
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
carrier: params.carrier,
|
|
1405
|
-
service: params.service
|
|
1390
|
+
businessId: apiConfig.businessId,
|
|
1391
|
+
event: params.event
|
|
1406
1392
|
},
|
|
1407
1393
|
options
|
|
1408
1394
|
);
|
|
1409
1395
|
}
|
|
1410
1396
|
};
|
|
1411
|
-
}
|
|
1397
|
+
}
|
|
1412
1398
|
|
|
1413
1399
|
// src/utils/price.ts
|
|
1414
1400
|
function formatCurrency(amount, currencyCode, locale = "en") {
|
|
@@ -1731,6 +1717,7 @@ async function createArkySDK(config) {
|
|
|
1731
1717
|
workflow: createWorkflowApi(apiConfig),
|
|
1732
1718
|
audience: createAudienceApi(apiConfig),
|
|
1733
1719
|
shipping: createShippingApi(apiConfig),
|
|
1720
|
+
events: createEventsApi(apiConfig),
|
|
1734
1721
|
analytics: {
|
|
1735
1722
|
track
|
|
1736
1723
|
},
|