arky-sdk 0.7.30 → 0.7.32
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 +11 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -10
- package/dist/index.d.ts +3 -10
- package/dist/index.js +11 -34
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -34
- package/dist/types.d.ts +1 -34
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Block, RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, GetMeParams, SearchAccountsParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetSubscriptionPlansParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, OAuthConnectParams, OAuthDisconnectParams, ListIntegrationsParams, CreateIntegrationParams, UpdateIntegrationParams, DeleteIntegrationParams, ListWebhooksParams, CreateWebhookParams, UpdateWebhookParams, DeleteWebhookParams, GetMediaParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, TriggerNotificationParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, Slot, CreateBookingParams, UpdateBookingParams, BookingCheckoutParams, GetBookingParams, SearchBookingsParams, GetBookingQuoteParams, GetAvailabilityParams, AvailabilityResponse, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, FindServiceProvidersParams, CreateServiceProviderParams, UpdateServiceProviderParams, DeleteServiceProviderParams, Location, CreateLocationParams, UpdateLocationParams, DeleteLocationParams, Zone, CreateZoneParams, UpdateZoneParams, DeleteZoneParams, CreateCustomerParams, GetCustomerParams, ConnectCustomerParams, FindCustomersParams, UpdateCustomerParams, MergeCustomersParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, SubscribeAudienceParams, GetAudienceSubscribersParams, AddAudienceSubscriberParams, RemoveAudienceSubscriberParams,
|
|
2
|
-
export { Access, Address, AgentStatus, ApiResponse, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, AvailabilitySlot, BookingCartItem, BookingStoreState, Business, BusinessConfig, CustomsDeclaration, CustomsItem, DaySlots, EshopCartItem, EshopStoreState, Event, EventAction, ExecutionStatus, GeoLocation, GeoLocationBlock, Integration, IntegrationProvider, Language, Market, Media, MediaResolution,
|
|
1
|
+
import { Block, RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, GetMeParams, SearchAccountsParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetSubscriptionPlansParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, OAuthConnectParams, OAuthDisconnectParams, ListIntegrationsParams, CreateIntegrationParams, UpdateIntegrationParams, DeleteIntegrationParams, ListWebhooksParams, CreateWebhookParams, UpdateWebhookParams, DeleteWebhookParams, GetMediaParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, TriggerNotificationParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, Slot, CreateBookingParams, UpdateBookingParams, BookingCheckoutParams, GetBookingParams, SearchBookingsParams, GetBookingQuoteParams, GetAvailabilityParams, AvailabilityResponse, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, FindServiceProvidersParams, CreateServiceProviderParams, UpdateServiceProviderParams, DeleteServiceProviderParams, Location, CreateLocationParams, UpdateLocationParams, DeleteLocationParams, Zone, CreateZoneParams, UpdateZoneParams, DeleteZoneParams, CreateCustomerParams, GetCustomerParams, ConnectCustomerParams, FindCustomersParams, UpdateCustomerParams, MergeCustomersParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, SubscribeAudienceParams, GetAudienceSubscribersParams, AddAudienceSubscriberParams, RemoveAudienceSubscriberParams, CreateWorkflowParams, UpdateWorkflowParams, DeleteWorkflowParams, GetWorkflowParams, GetWorkflowsParams, TriggerWorkflowParams, GetWorkflowExecutionsParams, GetWorkflowExecutionParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, CreateAgentParams, UpdateAgentParams, DeleteAgentParams, GetAgentParams, GetAgentsParams, RunAgentParams, GetAgentChatsParams, GetAgentChatParams, UpdateAgentChatParams, RateAgentChatParams, GetBusinessChatsParams, CreateEmailTemplateParams, UpdateEmailTemplateParams, DeleteEmailTemplateParams, GetEmailTemplateParams, GetEmailTemplatesParams, CreateFormParams, UpdateFormParams, DeleteFormParams, GetFormParams, GetFormsParams, SubmitFormParams, GetFormSubmissionsParams, GetFormSubmissionParams, UpdateFormSubmissionParams, CreateTaxonomyParams, UpdateTaxonomyParams, DeleteTaxonomyParams, GetTaxonomyParams, GetTaxonomiesParams, GetTaxonomyChildrenParams } from './types.cjs';
|
|
2
|
+
export { Access, Address, AgentStatus, ApiResponse, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, AvailabilitySlot, BookingCartItem, BookingStoreState, Business, BusinessConfig, CustomsDeclaration, CustomsItem, DaySlots, EshopCartItem, EshopStoreState, Event, EventAction, ExecutionStatus, GeoLocation, GeoLocationBlock, Integration, IntegrationProvider, Language, Market, Media, MediaResolution, Node, NodeResult, OrderShipping, PaginatedResponse, Parcel, Payment, PaymentMethod, PaymentMethodType, PaymentRefund, Price, PromoCodeValidation, ProviderAvailability, ProviderWithTimeline, PurchaseLabelResult, Quote, Shipment, ShipmentLine, ShippingAddress, ShippingMethod, ShippingStatus, ShippingWeightTier, SystemTemplateKey, Webhook, WebhookEventSubscription, Workflow, WorkflowConnection, WorkflowExecution, WorkflowHttpMethod, WorkflowHttpNode, WorkflowNode, WorkflowSwitchNode, WorkflowTransformNode, WorkflowTriggerNode, 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-BzBZVueX.cjs';
|
|
4
4
|
|
|
5
5
|
interface AuthTokens {
|
|
@@ -375,13 +375,6 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
375
375
|
}, options?: RequestOptions): Promise<any>;
|
|
376
376
|
summary(params: EngagementSummaryParams, options?: RequestOptions): Promise<any>;
|
|
377
377
|
};
|
|
378
|
-
network: {
|
|
379
|
-
create(params: CreateNetworkParams, options?: RequestOptions): Promise<any>;
|
|
380
|
-
get(params: GetNetworkParams, options?: RequestOptions): Promise<any>;
|
|
381
|
-
find(params?: FindNetworksParams, options?: RequestOptions): Promise<any>;
|
|
382
|
-
update(params: UpdateNetworkParams, options?: RequestOptions): Promise<any>;
|
|
383
|
-
delete(params: DeleteNetworkParams, options?: RequestOptions): Promise<any>;
|
|
384
|
-
};
|
|
385
378
|
workflow: {
|
|
386
379
|
createWorkflow(params: CreateWorkflowParams, options?: RequestOptions): Promise<any>;
|
|
387
380
|
updateWorkflow(params: UpdateWorkflowParams, options?: RequestOptions): Promise<any>;
|
|
@@ -499,4 +492,4 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
499
492
|
};
|
|
500
493
|
}>;
|
|
501
494
|
|
|
502
|
-
export { type ApiConfig, AvailabilityResponse, Block, CreateAgentParams, CreateLocationParams,
|
|
495
|
+
export { type ApiConfig, AvailabilityResponse, Block, CreateAgentParams, CreateLocationParams, type CreateReactionParams, CreateZoneParams, DEFAULT_REACTION_KINDS, DeleteLocationParams, DeleteZoneParams, type EngagementSummary, type EngagementSummaryParams, type FindReactionsParams, GetAgentParams, GetAgentsParams, GetAvailabilityParams, type GetCountriesResponse, type GetReactionParams, GetShippingRatesParams, type HttpClientConfig, Location, type LocationCountry, type LocationState, 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, UpdateZoneParams, Zone, computeAverageStars, createArkySDK, isValidReactionKind };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Block, RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, GetMeParams, SearchAccountsParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetSubscriptionPlansParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, OAuthConnectParams, OAuthDisconnectParams, ListIntegrationsParams, CreateIntegrationParams, UpdateIntegrationParams, DeleteIntegrationParams, ListWebhooksParams, CreateWebhookParams, UpdateWebhookParams, DeleteWebhookParams, GetMediaParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, TriggerNotificationParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, Slot, CreateBookingParams, UpdateBookingParams, BookingCheckoutParams, GetBookingParams, SearchBookingsParams, GetBookingQuoteParams, GetAvailabilityParams, AvailabilityResponse, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, FindServiceProvidersParams, CreateServiceProviderParams, UpdateServiceProviderParams, DeleteServiceProviderParams, Location, CreateLocationParams, UpdateLocationParams, DeleteLocationParams, Zone, CreateZoneParams, UpdateZoneParams, DeleteZoneParams, CreateCustomerParams, GetCustomerParams, ConnectCustomerParams, FindCustomersParams, UpdateCustomerParams, MergeCustomersParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, SubscribeAudienceParams, GetAudienceSubscribersParams, AddAudienceSubscriberParams, RemoveAudienceSubscriberParams,
|
|
2
|
-
export { Access, Address, AgentStatus, ApiResponse, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, AvailabilitySlot, BookingCartItem, BookingStoreState, Business, BusinessConfig, CustomsDeclaration, CustomsItem, DaySlots, EshopCartItem, EshopStoreState, Event, EventAction, ExecutionStatus, GeoLocation, GeoLocationBlock, Integration, IntegrationProvider, Language, Market, Media, MediaResolution,
|
|
1
|
+
import { Block, RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, GetMeParams, SearchAccountsParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetSubscriptionPlansParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, OAuthConnectParams, OAuthDisconnectParams, ListIntegrationsParams, CreateIntegrationParams, UpdateIntegrationParams, DeleteIntegrationParams, ListWebhooksParams, CreateWebhookParams, UpdateWebhookParams, DeleteWebhookParams, GetMediaParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, TriggerNotificationParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, Slot, CreateBookingParams, UpdateBookingParams, BookingCheckoutParams, GetBookingParams, SearchBookingsParams, GetBookingQuoteParams, GetAvailabilityParams, AvailabilityResponse, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, FindServiceProvidersParams, CreateServiceProviderParams, UpdateServiceProviderParams, DeleteServiceProviderParams, Location, CreateLocationParams, UpdateLocationParams, DeleteLocationParams, Zone, CreateZoneParams, UpdateZoneParams, DeleteZoneParams, CreateCustomerParams, GetCustomerParams, ConnectCustomerParams, FindCustomersParams, UpdateCustomerParams, MergeCustomersParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, SubscribeAudienceParams, GetAudienceSubscribersParams, AddAudienceSubscriberParams, RemoveAudienceSubscriberParams, CreateWorkflowParams, UpdateWorkflowParams, DeleteWorkflowParams, GetWorkflowParams, GetWorkflowsParams, TriggerWorkflowParams, GetWorkflowExecutionsParams, GetWorkflowExecutionParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, CreateAgentParams, UpdateAgentParams, DeleteAgentParams, GetAgentParams, GetAgentsParams, RunAgentParams, GetAgentChatsParams, GetAgentChatParams, UpdateAgentChatParams, RateAgentChatParams, GetBusinessChatsParams, CreateEmailTemplateParams, UpdateEmailTemplateParams, DeleteEmailTemplateParams, GetEmailTemplateParams, GetEmailTemplatesParams, CreateFormParams, UpdateFormParams, DeleteFormParams, GetFormParams, GetFormsParams, SubmitFormParams, GetFormSubmissionsParams, GetFormSubmissionParams, UpdateFormSubmissionParams, CreateTaxonomyParams, UpdateTaxonomyParams, DeleteTaxonomyParams, GetTaxonomyParams, GetTaxonomiesParams, GetTaxonomyChildrenParams } from './types.js';
|
|
2
|
+
export { Access, Address, AgentStatus, ApiResponse, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, AvailabilitySlot, BookingCartItem, BookingStoreState, Business, BusinessConfig, CustomsDeclaration, CustomsItem, DaySlots, EshopCartItem, EshopStoreState, Event, EventAction, ExecutionStatus, GeoLocation, GeoLocationBlock, Integration, IntegrationProvider, Language, Market, Media, MediaResolution, Node, NodeResult, OrderShipping, PaginatedResponse, Parcel, Payment, PaymentMethod, PaymentMethodType, PaymentRefund, Price, PromoCodeValidation, ProviderAvailability, ProviderWithTimeline, PurchaseLabelResult, Quote, Shipment, ShipmentLine, ShippingAddress, ShippingMethod, ShippingStatus, ShippingWeightTier, SystemTemplateKey, Webhook, WebhookEventSubscription, Workflow, WorkflowConnection, WorkflowExecution, WorkflowHttpMethod, WorkflowHttpNode, WorkflowNode, WorkflowSwitchNode, WorkflowTransformNode, WorkflowTriggerNode, 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-CkyDsYWA.js';
|
|
4
4
|
|
|
5
5
|
interface AuthTokens {
|
|
@@ -375,13 +375,6 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
375
375
|
}, options?: RequestOptions): Promise<any>;
|
|
376
376
|
summary(params: EngagementSummaryParams, options?: RequestOptions): Promise<any>;
|
|
377
377
|
};
|
|
378
|
-
network: {
|
|
379
|
-
create(params: CreateNetworkParams, options?: RequestOptions): Promise<any>;
|
|
380
|
-
get(params: GetNetworkParams, options?: RequestOptions): Promise<any>;
|
|
381
|
-
find(params?: FindNetworksParams, options?: RequestOptions): Promise<any>;
|
|
382
|
-
update(params: UpdateNetworkParams, options?: RequestOptions): Promise<any>;
|
|
383
|
-
delete(params: DeleteNetworkParams, options?: RequestOptions): Promise<any>;
|
|
384
|
-
};
|
|
385
378
|
workflow: {
|
|
386
379
|
createWorkflow(params: CreateWorkflowParams, options?: RequestOptions): Promise<any>;
|
|
387
380
|
updateWorkflow(params: UpdateWorkflowParams, options?: RequestOptions): Promise<any>;
|
|
@@ -499,4 +492,4 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
499
492
|
};
|
|
500
493
|
}>;
|
|
501
494
|
|
|
502
|
-
export { type ApiConfig, AvailabilityResponse, Block, CreateAgentParams, CreateLocationParams,
|
|
495
|
+
export { type ApiConfig, AvailabilityResponse, Block, CreateAgentParams, CreateLocationParams, type CreateReactionParams, CreateZoneParams, DEFAULT_REACTION_KINDS, DeleteLocationParams, DeleteZoneParams, type EngagementSummary, type EngagementSummaryParams, type FindReactionsParams, GetAgentParams, GetAgentsParams, GetAvailabilityParams, type GetCountriesResponse, type GetReactionParams, GetShippingRatesParams, type HttpClientConfig, Location, type LocationCountry, type LocationState, 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, UpdateZoneParams, Zone, computeAverageStars, createArkySDK, isValidReactionKind };
|
package/dist/index.js
CHANGED
|
@@ -857,9 +857,19 @@ var createEshopApi = (apiConfig) => {
|
|
|
857
857
|
);
|
|
858
858
|
},
|
|
859
859
|
async getQuote(params, options) {
|
|
860
|
+
const { location, ...rest } = params;
|
|
861
|
+
const shippingAddress = location ? {
|
|
862
|
+
country: location.country || "",
|
|
863
|
+
state: location.state || "",
|
|
864
|
+
city: location.city || "",
|
|
865
|
+
postalCode: location.postalCode || "",
|
|
866
|
+
name: "",
|
|
867
|
+
street1: "",
|
|
868
|
+
street2: null
|
|
869
|
+
} : void 0;
|
|
860
870
|
return apiConfig.httpClient.post(
|
|
861
871
|
`/v1/businesses/${apiConfig.businessId}/orders/quote`,
|
|
862
|
-
{ ...
|
|
872
|
+
{ ...rest, shippingAddress, market: apiConfig.market },
|
|
863
873
|
options
|
|
864
874
|
);
|
|
865
875
|
},
|
|
@@ -1513,38 +1523,6 @@ var createReactionApi = (apiConfig) => {
|
|
|
1513
1523
|
};
|
|
1514
1524
|
};
|
|
1515
1525
|
|
|
1516
|
-
// src/api/network.ts
|
|
1517
|
-
var createNetworkApi = (apiConfig) => {
|
|
1518
|
-
return {
|
|
1519
|
-
async create(params, options) {
|
|
1520
|
-
return apiConfig.httpClient.post(`/v1/networks`, params, options);
|
|
1521
|
-
},
|
|
1522
|
-
async get(params, options) {
|
|
1523
|
-
return apiConfig.httpClient.get(`/v1/networks/${params.id}`, options);
|
|
1524
|
-
},
|
|
1525
|
-
async find(params, options) {
|
|
1526
|
-
const queryParams = {};
|
|
1527
|
-
if (params?.limit !== void 0) queryParams.limit = params.limit;
|
|
1528
|
-
if (params?.cursor) queryParams.cursor = params.cursor;
|
|
1529
|
-
if (params?.query) queryParams.query = params.query;
|
|
1530
|
-
return apiConfig.httpClient.get(`/v1/networks`, {
|
|
1531
|
-
...options,
|
|
1532
|
-
params: queryParams
|
|
1533
|
-
});
|
|
1534
|
-
},
|
|
1535
|
-
async update(params, options) {
|
|
1536
|
-
const { id, ...body } = params;
|
|
1537
|
-
return apiConfig.httpClient.put(`/v1/networks/${id}`, body, options);
|
|
1538
|
-
},
|
|
1539
|
-
async delete(params, options) {
|
|
1540
|
-
return apiConfig.httpClient.delete(
|
|
1541
|
-
`/v1/networks/${params.id}`,
|
|
1542
|
-
options
|
|
1543
|
-
);
|
|
1544
|
-
}
|
|
1545
|
-
};
|
|
1546
|
-
};
|
|
1547
|
-
|
|
1548
1526
|
// src/api/workflow.ts
|
|
1549
1527
|
var createWorkflowApi = (apiConfig) => {
|
|
1550
1528
|
return {
|
|
@@ -2284,7 +2262,6 @@ async function createArkySDK(config) {
|
|
|
2284
2262
|
zone: createZoneApi(apiConfig),
|
|
2285
2263
|
crm: createCustomerApi(apiConfig),
|
|
2286
2264
|
reaction: createReactionApi(apiConfig),
|
|
2287
|
-
network: createNetworkApi(apiConfig),
|
|
2288
2265
|
workflow: createWorkflowApi(apiConfig),
|
|
2289
2266
|
shipping: createShippingApi(apiConfig),
|
|
2290
2267
|
agent: createAgentApi(apiConfig),
|