arky-sdk 0.3.40 → 0.3.42
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/README.md +0 -1
- package/dist/index.cjs +34 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -11
- package/dist/index.d.ts +3 -11
- package/dist/index.js +34 -61
- package/dist/index.js.map +1 -1
- package/dist/types.d.cts +4 -20
- package/dist/types.d.ts +4 -20
- package/package.json +1 -1
package/dist/types.d.cts
CHANGED
|
@@ -165,13 +165,13 @@ interface GetRolesParams {
|
|
|
165
165
|
action: string;
|
|
166
166
|
}
|
|
167
167
|
interface Discount {
|
|
168
|
-
type:
|
|
168
|
+
type: "ITEMS_PERCENTAGE" | "ITEMS_FIXED" | "SHIPPING_PERCENTAGE";
|
|
169
169
|
marketId: string;
|
|
170
170
|
bps?: number;
|
|
171
171
|
amount?: number;
|
|
172
172
|
}
|
|
173
173
|
interface Condition {
|
|
174
|
-
type:
|
|
174
|
+
type: "PRODUCTS" | "SERVICES" | "MIN_ORDER_AMOUNT" | "DATE_RANGE" | "MAX_USES" | "MAX_USES_PER_USER";
|
|
175
175
|
value: string[] | number | {
|
|
176
176
|
start?: number;
|
|
177
177
|
end?: number;
|
|
@@ -244,16 +244,11 @@ interface TriggerBuildsParams {
|
|
|
244
244
|
}
|
|
245
245
|
interface GetSubscriptionParams {
|
|
246
246
|
}
|
|
247
|
-
interface
|
|
247
|
+
interface SubscribeParams {
|
|
248
248
|
planId: string;
|
|
249
249
|
successUrl: string;
|
|
250
250
|
cancelUrl: string;
|
|
251
251
|
}
|
|
252
|
-
interface CancelSubscriptionParams {
|
|
253
|
-
immediately?: boolean;
|
|
254
|
-
}
|
|
255
|
-
interface CancelScheduledDowngradeParams {
|
|
256
|
-
}
|
|
257
252
|
interface CreatePortalSessionParams {
|
|
258
253
|
returnUrl: string;
|
|
259
254
|
}
|
|
@@ -339,9 +334,6 @@ interface SubscribeToCollectionParams {
|
|
|
339
334
|
email: string;
|
|
340
335
|
planId: string;
|
|
341
336
|
}
|
|
342
|
-
interface UnsubscribeFromCollectionParams {
|
|
343
|
-
token: string;
|
|
344
|
-
}
|
|
345
337
|
interface CreateProductParams {
|
|
346
338
|
name: string;
|
|
347
339
|
description?: string;
|
|
@@ -542,14 +534,6 @@ interface ResetPasswordParams {
|
|
|
542
534
|
newPassword: string;
|
|
543
535
|
oldPassword?: string;
|
|
544
536
|
}
|
|
545
|
-
interface HandleStripeWebhookParams {
|
|
546
|
-
[key: string]: any;
|
|
547
|
-
}
|
|
548
|
-
interface GetBusinessMarketsParams {
|
|
549
|
-
}
|
|
550
|
-
interface GetBusinessMarketParams {
|
|
551
|
-
marketId: string;
|
|
552
|
-
}
|
|
553
537
|
interface TrackEmailOpenParams {
|
|
554
538
|
trackingPixelId: string;
|
|
555
539
|
}
|
|
@@ -869,4 +853,4 @@ interface ReservationStoreState {
|
|
|
869
853
|
};
|
|
870
854
|
}
|
|
871
855
|
|
|
872
|
-
export { type AddPhoneNumberParams, type ApiResponse, type Block, type Business, type BusinessConfig, type BusinessEmails, type
|
|
856
|
+
export { type AddPhoneNumberParams, type ApiResponse, type Block, type Business, type BusinessConfig, type BusinessEmails, type CheckoutParams, type Condition, type ConfirmUserParams, type CreateBusinessParams, type CreateCollectionEntryParams, type CreateCollectionParams, type CreateEntryParams, type CreateOrderParams, type CreatePortalSessionParams, type CreateProductParams, type CreatePromoCodeParams, type CreateProviderParams, type CreateReservationParams, type CreateRoleParams, type CreateServiceParams, type DeleteBusinessMediaParams, type DeleteBusinessParams, type DeleteCollectionEntryParams, type DeleteCollectionParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteRoleParams, type DeleteServiceParams, type Discount, type EshopCartItem, type EshopItem, type EshopStoreState, type ForgotPasswordParams, type GenerateBlocksParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAvailableSlotsParams, type GetBusinessMediaParams, type GetBusinessMediaParams2, type GetBusinessParams, type GetBusinessParentsParams, type GetBusinessServiceWorkingTimeParams, type GetBusinessesParams, type GetCollectionEntriesParams, type GetCollectionEntryParams, type GetCollectionParams, type GetCollectionSubscribersParams, type GetCollectionsParams, type GetDeliveryStatsParams, type GetEntriesParams, type GetLoginUrlParams, type GetMeParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetReservationParams, type GetReservationPartsParams, type GetReservationQuoteParams, type GetRoleParams, type GetRolesParams, type GetServiceParams, type GetServicesParams, type GetSubscriptionParams, type GetSubscriptionPlansParams, type GetVariableMetadataParams, type HandleInvitationParams, type InviteUserParams, type Language, type Location, type LoginUserParams, type LogoutParams, type Market, type MarketConfigClient, type MarketZone, type Media, type MediaResolution, type PaginatedResponse, type Payment, type PaymentMethod, PaymentMethodType, type PaymentProviderConfig, type PhoneNumberConfirmParams, type Price, type PromoCodeValidation, type Quote, type QuoteLineItem, type RegisterUserParams, type RequestOptions, type ReservationCartPart, type ReservationCheckoutParams, type ReservationStoreState, type ResetForgotPasswordParams, type ResetPasswordParams, type SearchMyReservationsParams, type SearchReservationsParams, type SearchUsersParams, type SendEntryParams, type Seo, type SetProviderScheduleParams, type SetRoleParams, type SetupAnalyticsParams, type ShippingMethod, type SubscribeParams, type SubscribeToCollectionParams, type TestWebhookParams, type TrackEmailOpenParams, type TriggerBuildsParams, type UpdateBusinessParams, type UpdateCollectionParams, type UpdateEntryParams, type UpdateMediaParams, type UpdateNotificationsParams, type UpdateOrderParams, type UpdateOrderPaymentStatusParams, type UpdateOrderStatusParams, type UpdateProductParams, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateReservationParams, type UpdateRoleParams, type UpdateServiceParams, type UpdateUserProfileParams, type UploadBusinessMediaParams, type ZoneDefinition, type ZonePaymentMethod, type ZoneResolvedShippingMethod, type ZoneShippingMethod };
|
package/dist/types.d.ts
CHANGED
|
@@ -165,13 +165,13 @@ interface GetRolesParams {
|
|
|
165
165
|
action: string;
|
|
166
166
|
}
|
|
167
167
|
interface Discount {
|
|
168
|
-
type:
|
|
168
|
+
type: "ITEMS_PERCENTAGE" | "ITEMS_FIXED" | "SHIPPING_PERCENTAGE";
|
|
169
169
|
marketId: string;
|
|
170
170
|
bps?: number;
|
|
171
171
|
amount?: number;
|
|
172
172
|
}
|
|
173
173
|
interface Condition {
|
|
174
|
-
type:
|
|
174
|
+
type: "PRODUCTS" | "SERVICES" | "MIN_ORDER_AMOUNT" | "DATE_RANGE" | "MAX_USES" | "MAX_USES_PER_USER";
|
|
175
175
|
value: string[] | number | {
|
|
176
176
|
start?: number;
|
|
177
177
|
end?: number;
|
|
@@ -244,16 +244,11 @@ interface TriggerBuildsParams {
|
|
|
244
244
|
}
|
|
245
245
|
interface GetSubscriptionParams {
|
|
246
246
|
}
|
|
247
|
-
interface
|
|
247
|
+
interface SubscribeParams {
|
|
248
248
|
planId: string;
|
|
249
249
|
successUrl: string;
|
|
250
250
|
cancelUrl: string;
|
|
251
251
|
}
|
|
252
|
-
interface CancelSubscriptionParams {
|
|
253
|
-
immediately?: boolean;
|
|
254
|
-
}
|
|
255
|
-
interface CancelScheduledDowngradeParams {
|
|
256
|
-
}
|
|
257
252
|
interface CreatePortalSessionParams {
|
|
258
253
|
returnUrl: string;
|
|
259
254
|
}
|
|
@@ -339,9 +334,6 @@ interface SubscribeToCollectionParams {
|
|
|
339
334
|
email: string;
|
|
340
335
|
planId: string;
|
|
341
336
|
}
|
|
342
|
-
interface UnsubscribeFromCollectionParams {
|
|
343
|
-
token: string;
|
|
344
|
-
}
|
|
345
337
|
interface CreateProductParams {
|
|
346
338
|
name: string;
|
|
347
339
|
description?: string;
|
|
@@ -542,14 +534,6 @@ interface ResetPasswordParams {
|
|
|
542
534
|
newPassword: string;
|
|
543
535
|
oldPassword?: string;
|
|
544
536
|
}
|
|
545
|
-
interface HandleStripeWebhookParams {
|
|
546
|
-
[key: string]: any;
|
|
547
|
-
}
|
|
548
|
-
interface GetBusinessMarketsParams {
|
|
549
|
-
}
|
|
550
|
-
interface GetBusinessMarketParams {
|
|
551
|
-
marketId: string;
|
|
552
|
-
}
|
|
553
537
|
interface TrackEmailOpenParams {
|
|
554
538
|
trackingPixelId: string;
|
|
555
539
|
}
|
|
@@ -869,4 +853,4 @@ interface ReservationStoreState {
|
|
|
869
853
|
};
|
|
870
854
|
}
|
|
871
855
|
|
|
872
|
-
export { type AddPhoneNumberParams, type ApiResponse, type Block, type Business, type BusinessConfig, type BusinessEmails, type
|
|
856
|
+
export { type AddPhoneNumberParams, type ApiResponse, type Block, type Business, type BusinessConfig, type BusinessEmails, type CheckoutParams, type Condition, type ConfirmUserParams, type CreateBusinessParams, type CreateCollectionEntryParams, type CreateCollectionParams, type CreateEntryParams, type CreateOrderParams, type CreatePortalSessionParams, type CreateProductParams, type CreatePromoCodeParams, type CreateProviderParams, type CreateReservationParams, type CreateRoleParams, type CreateServiceParams, type DeleteBusinessMediaParams, type DeleteBusinessParams, type DeleteCollectionEntryParams, type DeleteCollectionParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteRoleParams, type DeleteServiceParams, type Discount, type EshopCartItem, type EshopItem, type EshopStoreState, type ForgotPasswordParams, type GenerateBlocksParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAvailableSlotsParams, type GetBusinessMediaParams, type GetBusinessMediaParams2, type GetBusinessParams, type GetBusinessParentsParams, type GetBusinessServiceWorkingTimeParams, type GetBusinessesParams, type GetCollectionEntriesParams, type GetCollectionEntryParams, type GetCollectionParams, type GetCollectionSubscribersParams, type GetCollectionsParams, type GetDeliveryStatsParams, type GetEntriesParams, type GetLoginUrlParams, type GetMeParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetReservationParams, type GetReservationPartsParams, type GetReservationQuoteParams, type GetRoleParams, type GetRolesParams, type GetServiceParams, type GetServicesParams, type GetSubscriptionParams, type GetSubscriptionPlansParams, type GetVariableMetadataParams, type HandleInvitationParams, type InviteUserParams, type Language, type Location, type LoginUserParams, type LogoutParams, type Market, type MarketConfigClient, type MarketZone, type Media, type MediaResolution, type PaginatedResponse, type Payment, type PaymentMethod, PaymentMethodType, type PaymentProviderConfig, type PhoneNumberConfirmParams, type Price, type PromoCodeValidation, type Quote, type QuoteLineItem, type RegisterUserParams, type RequestOptions, type ReservationCartPart, type ReservationCheckoutParams, type ReservationStoreState, type ResetForgotPasswordParams, type ResetPasswordParams, type SearchMyReservationsParams, type SearchReservationsParams, type SearchUsersParams, type SendEntryParams, type Seo, type SetProviderScheduleParams, type SetRoleParams, type SetupAnalyticsParams, type ShippingMethod, type SubscribeParams, type SubscribeToCollectionParams, type TestWebhookParams, type TrackEmailOpenParams, type TriggerBuildsParams, type UpdateBusinessParams, type UpdateCollectionParams, type UpdateEntryParams, type UpdateMediaParams, type UpdateNotificationsParams, type UpdateOrderParams, type UpdateOrderPaymentStatusParams, type UpdateOrderStatusParams, type UpdateProductParams, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateReservationParams, type UpdateRoleParams, type UpdateServiceParams, type UpdateUserProfileParams, type UploadBusinessMediaParams, type ZoneDefinition, type ZonePaymentMethod, type ZoneResolvedShippingMethod, type ZoneShippingMethod };
|