arky-sdk 0.5.13 → 0.5.15
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 +6 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +4 -9
- package/dist/types.d.ts +4 -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 { 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, OAuthConnectParams, OAuthDisconnectParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, GetDeliveryStatsParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams,
|
|
1
|
+
import { RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, AddPhoneNumberParams, PhoneNumberConfirmParams, GetMeParams, SearchAccountsParams, AccountSubscribeParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionPlansParams, GetSubscriptionParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, OAuthConnectParams, OAuthDisconnectParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, GetDeliveryStatsParams, 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, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, GetBusinessServiceWorkingTimeParams, CreateWorkflowParams, UpdateWorkflowParams, DeleteWorkflowParams, GetWorkflowParams, GetWorkflowsParams, TriggerWorkflowParams, GetWorkflowExecutionsParams, GetWorkflowExecutionParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, SubscribeAudienceParams, GetAudienceSubscribersParams, AddAudienceSubscriberParams, RemoveAudienceSubscriberParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, GetEventsParams, UpdateEventParams } from './types.cjs';
|
|
2
2
|
export { Access, Address, ApiResponse, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, Block, BookingCartItem, BookingStoreState, Business, BusinessConfig, CustomsDeclaration, CustomsItem, DayAvailability, EshopCartItem, EshopStoreState, Event, EventAction, ExecutionStatus, GeoLocation, GeoLocationBlock, GetAvailabilityParams, GetSlotsForDateParams, Integration, IntegrationProvider, IntegrationStatus, Language, Location, Market, Media, MediaResolution, Node, NodeResult, OrderShipping, PaginatedResponse, Parcel, Payment, PaymentMethod, PaymentMethodType, PaymentRefund, Price, PromoCodeValidation, ProviderWithTimeline, PurchaseLabelResult, Quote, Shipment, ShipmentLine, ShippingAddress, ShippingMethod, ShippingStatus, ShippingWeightTier, SystemTemplateKey, Workflow, WorkflowConnection, WorkflowExecution, WorkflowHttpMethod, WorkflowHttpNode, WorkflowNode, 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, k as getPaymentConfig, l as getAnalyticsConfigs } from './index-Bz8k50In.cjs';
|
|
4
4
|
|
|
@@ -165,6 +165,7 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
165
165
|
subscribe(params: SubscribeParams, options?: RequestOptions): Promise<any>;
|
|
166
166
|
createPortalSession(params: CreatePortalSessionParams, options?: RequestOptions): Promise<any>;
|
|
167
167
|
inviteUser(params: InviteUserParams, options?: RequestOptions): Promise<any>;
|
|
168
|
+
removeMember(params: RemoveMemberParams, options?: RequestOptions): Promise<any>;
|
|
168
169
|
handleInvitation(params: HandleInvitationParams, options?: RequestOptions): Promise<any>;
|
|
169
170
|
testWebhook(params: TestWebhookParams, options?: RequestOptions): Promise<any>;
|
|
170
171
|
getBusinessMedia(params: GetBusinessMediaParams2, options?: RequestOptions): Promise<any>;
|
|
@@ -200,7 +201,6 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
200
201
|
getNode(params: GetNodeParams, options?: RequestOptions): Promise<any>;
|
|
201
202
|
getNodes(params: GetNodesParams, options?: RequestOptions): Promise<any>;
|
|
202
203
|
getNodeChildren(params: GetNodeChildrenParams, options?: RequestOptions): Promise<any>;
|
|
203
|
-
generateBlocks(params: GenerateBlocksParams, options?: RequestOptions): Promise<any>;
|
|
204
204
|
};
|
|
205
205
|
eshop: {
|
|
206
206
|
createProduct(params: CreateProductParams, options?: RequestOptions): Promise<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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, OAuthConnectParams, OAuthDisconnectParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, GetDeliveryStatsParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams,
|
|
1
|
+
import { RequestOptions, MagicLinkVerifyParams, MagicLinkRequestParams, UpdateAccountProfileParams, DeleteAccountParams, AddPhoneNumberParams, PhoneNumberConfirmParams, GetMeParams, SearchAccountsParams, AccountSubscribeParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionPlansParams, GetSubscriptionParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, RemoveMemberParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, OAuthConnectParams, OAuthDisconnectParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, TrackEmailOpenParams, GetDeliveryStatsParams, 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, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, GetBusinessServiceWorkingTimeParams, CreateWorkflowParams, UpdateWorkflowParams, DeleteWorkflowParams, GetWorkflowParams, GetWorkflowsParams, TriggerWorkflowParams, GetWorkflowExecutionsParams, GetWorkflowExecutionParams, CreateAudienceParams, UpdateAudienceParams, GetAudienceParams, GetAudiencesParams, SubscribeAudienceParams, GetAudienceSubscribersParams, AddAudienceSubscriberParams, RemoveAudienceSubscriberParams, GetShippingRatesParams, ShippingRate, ShipParams, ShipResult, GetEventsParams, UpdateEventParams } from './types.js';
|
|
2
2
|
export { Access, Address, ApiResponse, Audience, AudienceAccessResponse, AudienceSubscribeResponse, AudienceSubscriber, Block, BookingCartItem, BookingStoreState, Business, BusinessConfig, CustomsDeclaration, CustomsItem, DayAvailability, EshopCartItem, EshopStoreState, Event, EventAction, ExecutionStatus, GeoLocation, GeoLocationBlock, GetAvailabilityParams, GetSlotsForDateParams, Integration, IntegrationProvider, IntegrationStatus, Language, Location, Market, Media, MediaResolution, Node, NodeResult, OrderShipping, PaginatedResponse, Parcel, Payment, PaymentMethod, PaymentMethodType, PaymentRefund, Price, PromoCodeValidation, ProviderWithTimeline, PurchaseLabelResult, Quote, Shipment, ShipmentLine, ShippingAddress, ShippingMethod, ShippingStatus, ShippingWeightTier, SystemTemplateKey, Workflow, WorkflowConnection, WorkflowExecution, WorkflowHttpMethod, WorkflowHttpNode, WorkflowNode, 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, k as getPaymentConfig, l as getAnalyticsConfigs } from './index-BfZKq1T6.js';
|
|
4
4
|
|
|
@@ -165,6 +165,7 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
165
165
|
subscribe(params: SubscribeParams, options?: RequestOptions): Promise<any>;
|
|
166
166
|
createPortalSession(params: CreatePortalSessionParams, options?: RequestOptions): Promise<any>;
|
|
167
167
|
inviteUser(params: InviteUserParams, options?: RequestOptions): Promise<any>;
|
|
168
|
+
removeMember(params: RemoveMemberParams, options?: RequestOptions): Promise<any>;
|
|
168
169
|
handleInvitation(params: HandleInvitationParams, options?: RequestOptions): Promise<any>;
|
|
169
170
|
testWebhook(params: TestWebhookParams, options?: RequestOptions): Promise<any>;
|
|
170
171
|
getBusinessMedia(params: GetBusinessMediaParams2, options?: RequestOptions): Promise<any>;
|
|
@@ -200,7 +201,6 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
200
201
|
getNode(params: GetNodeParams, options?: RequestOptions): Promise<any>;
|
|
201
202
|
getNodes(params: GetNodesParams, options?: RequestOptions): Promise<any>;
|
|
202
203
|
getNodeChildren(params: GetNodeChildrenParams, options?: RequestOptions): Promise<any>;
|
|
203
|
-
generateBlocks(params: GenerateBlocksParams, options?: RequestOptions): Promise<any>;
|
|
204
204
|
};
|
|
205
205
|
eshop: {
|
|
206
206
|
createProduct(params: CreateProductParams, options?: RequestOptions): Promise<any>;
|
package/dist/index.js
CHANGED
|
@@ -368,6 +368,12 @@ var createBusinessApi = (apiConfig) => {
|
|
|
368
368
|
options
|
|
369
369
|
);
|
|
370
370
|
},
|
|
371
|
+
async removeMember(params, options) {
|
|
372
|
+
return apiConfig.httpClient.delete(
|
|
373
|
+
`/v1/businesses/${apiConfig.businessId}/members/${params.accountId}`,
|
|
374
|
+
options
|
|
375
|
+
);
|
|
376
|
+
},
|
|
371
377
|
async handleInvitation(params, options) {
|
|
372
378
|
return apiConfig.httpClient.put(
|
|
373
379
|
`/v1/businesses/${apiConfig.businessId}/invitation`,
|
|
@@ -755,13 +761,6 @@ var createCmsApi = (apiConfig) => {
|
|
|
755
761
|
params: queryParams
|
|
756
762
|
}
|
|
757
763
|
);
|
|
758
|
-
},
|
|
759
|
-
async generateBlocks(params, options) {
|
|
760
|
-
return apiConfig.httpClient.post(
|
|
761
|
-
`/v1/businesses/${apiConfig.businessId}/nodes/blocks/generate`,
|
|
762
|
-
params,
|
|
763
|
-
options
|
|
764
|
-
);
|
|
765
764
|
}
|
|
766
765
|
};
|
|
767
766
|
};
|