arky-sdk 0.3.15 → 0.3.16
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 +44 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -36
- package/dist/index.d.ts +23 -36
- package/dist/index.js +44 -103
- package/dist/index.js.map +1 -1
- package/dist/types.d.cts +18 -102
- package/dist/types.d.ts +18 -102
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UpdateUserProfileParams, RequestOptions, UpdateProfilePhoneParams, VerifyPhoneCodeParams, SearchUsersParams, SetRoleParams, LoginUserParams, RegisterUserParams, ConfirmUserParams, GetLoginUrlParams, ForgotPasswordParams, ResetForgotPasswordParams, ResetPasswordParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionParams, CreateSubscriptionParams, UpdateSubscriptionParams, CancelSubscriptionParams, ReactivateSubscriptionParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, CreateRoleParams, UpdateRoleParams, DeleteRoleParams, GetRoleParams, GetRolesParams, GetNotificationsParams, TrackEmailOpenParams, GetDeliveryStatsParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, GetAnalyticsParams, GetAnalyticsHealthParams, SetupAnalyticsParams, CreateCollectionParams, UpdateCollectionParams, DeleteCollectionParams, GetCollectionParams, GetCollectionsParams, GetEntriesParams, CreateEntryParams, UpdateEntryParams, DeleteCollectionEntryParams, GetCollectionEntryParams, SendEntryParams, GetVariableMetadataParams, CreateProductParams, UpdateProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, UpdateOrderStatusParams, UpdateOrderPaymentStatusParams, GetQuoteParams, CheckoutParams, CreateReservationParams, UpdateReservationParams, ReservationCheckoutParams, GetReservationParams, GetReservationPartsParams, SearchReservationsParams, SearchMyReservationsParams, GetReservationQuoteParams, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, GetAvailableSlotsParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, GetBusinessServiceWorkingTimeParams, NewsletterFindParams, NewsletterGetParams, CreateNewsletterParams, UpdateNewsletterParams, DeleteNewsletterParams, GetSubscribersParams, NewsletterSubscribeParams, UnsubscribeParams, HandleStripeWebhookParams, GetBusinessMarketsParams, GetBusinessMarketParams } from './types.cjs';
|
|
1
|
+
import { UpdateUserProfileParams, RequestOptions, UpdateProfilePhoneParams, VerifyPhoneCodeParams, SearchUsersParams, SetRoleParams, LoginUserParams, RegisterUserParams, ConfirmUserParams, GetLoginUrlParams, ForgotPasswordParams, ResetForgotPasswordParams, ResetPasswordParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionParams, CreateSubscriptionParams, UpdateSubscriptionParams, CancelSubscriptionParams, ReactivateSubscriptionParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, SetProviderScheduleParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, CreateRoleParams, UpdateRoleParams, DeleteRoleParams, GetRoleParams, GetRolesParams, GetNotificationsParams, TrackEmailOpenParams, GetDeliveryStatsParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, GetAnalyticsParams, GetAnalyticsHealthParams, SetupAnalyticsParams, CreateCollectionParams, UpdateCollectionParams, DeleteCollectionParams, GetCollectionParams, GetCollectionsParams, GenerateBlocksParams, GetEntriesParams, CreateEntryParams, UpdateEntryParams, DeleteCollectionEntryParams, GetCollectionEntryParams, SendEntryParams, GetVariableMetadataParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, UpdateOrderStatusParams, UpdateOrderPaymentStatusParams, GetQuoteParams, CheckoutParams, CreateReservationParams, UpdateReservationParams, ReservationCheckoutParams, GetReservationParams, GetReservationPartsParams, SearchReservationsParams, SearchMyReservationsParams, GetReservationQuoteParams, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, GetAvailableSlotsParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, GetBusinessServiceWorkingTimeParams, NewsletterFindParams, NewsletterGetParams, CreateNewsletterParams, UpdateNewsletterParams, DeleteNewsletterParams, GetSubscribersParams, NewsletterSubscribeParams, UnsubscribeParams, HandleStripeWebhookParams, GetBusinessMarketsParams, GetBusinessMarketParams } from './types.cjs';
|
|
2
2
|
export { ApiResponse, Block, Business, EshopCartItem, EshopStoreState, Price, ReservationCartPart, ReservationStoreState } from './types.cjs';
|
|
3
3
|
import { g as getGalleryThumbnail, a as getBlockLabel, b as getBlockTextValue, f as formatBlockValue, p as prepareBlocksForSubmission, e as extractBlockValues, c as getMarketPrice, d as getPriceAmount, h as formatPayment, i as formatMinor, j as createPaymentForCheckout, k as getCurrencySymbol, v as validatePhoneNumber, l as findTimeZone, s as slugify, m as humanize, n as categorify, o as formatDate, q as getSvgContentForAstro, r as fetchSvgContent, t as injectSvgIntoElement } from './svg-CFjyTGXu.cjs';
|
|
4
4
|
|
|
@@ -26,7 +26,7 @@ interface HttpClientConfig {
|
|
|
26
26
|
isAuthenticated?: () => boolean;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
declare const SDK_VERSION = "0.3.
|
|
29
|
+
declare const SDK_VERSION = "0.3.16";
|
|
30
30
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
31
31
|
interface ApiConfig {
|
|
32
32
|
httpClient: any;
|
|
@@ -34,8 +34,8 @@ interface ApiConfig {
|
|
|
34
34
|
storageUrl: string;
|
|
35
35
|
baseUrl: string;
|
|
36
36
|
market: string;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
setToken: (tokens: any) => void;
|
|
38
|
+
getToken: () => Promise<any> | any;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
declare function createArkySDK(config: HttpClientConfig & {
|
|
@@ -45,18 +45,14 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
45
45
|
updateUser(params: UpdateUserProfileParams, options?: RequestOptions): Promise<any>;
|
|
46
46
|
updateProfilePhone(params: UpdateProfilePhoneParams, options?: RequestOptions): Promise<any>;
|
|
47
47
|
verifyPhoneCode(params: VerifyPhoneCodeParams, options?: RequestOptions): Promise<any>;
|
|
48
|
-
|
|
49
|
-
getMe(options?: RequestOptions): Promise<any>;
|
|
48
|
+
getMe(params: {}, options?: RequestOptions): Promise<any>;
|
|
50
49
|
searchUsers(params: SearchUsersParams, options?: RequestOptions): Promise<any>;
|
|
51
50
|
setUserRole(params: SetRoleParams, options?: RequestOptions): Promise<any>;
|
|
52
51
|
loginUser(params: LoginUserParams, options?: RequestOptions): Promise<any>;
|
|
53
52
|
registerUser(params: RegisterUserParams, options?: RequestOptions): Promise<any>;
|
|
54
|
-
logout(options?: RequestOptions): Promise<any>;
|
|
53
|
+
logout(params: {}, options?: RequestOptions): Promise<any>;
|
|
55
54
|
confirmUser(params: ConfirmUserParams, options?: RequestOptions): Promise<any>;
|
|
56
55
|
getLoginUrl(params: GetLoginUrlParams, options?: RequestOptions): Promise<any>;
|
|
57
|
-
getGuestToken(params: {
|
|
58
|
-
existingToken?: string;
|
|
59
|
-
}, options?: RequestOptions): Promise<string>;
|
|
60
56
|
forgotPassword(params: ForgotPasswordParams, options?: RequestOptions): Promise<any>;
|
|
61
57
|
resetForgotPassword(params: ResetForgotPasswordParams, options?: RequestOptions): Promise<any>;
|
|
62
58
|
resetPassword(params: ResetPasswordParams, options?: RequestOptions): Promise<any>;
|
|
@@ -66,10 +62,10 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
66
62
|
updateBusiness(params: UpdateBusinessParams, options?: RequestOptions): Promise<any>;
|
|
67
63
|
deleteBusiness(params: DeleteBusinessParams, options?: RequestOptions): Promise<any>;
|
|
68
64
|
getBusiness(params: GetBusinessParams, options?: RequestOptions): Promise<any>;
|
|
69
|
-
getBusinesses(options?: RequestOptions): Promise<any>;
|
|
65
|
+
getBusinesses(params: {}, options?: RequestOptions): Promise<any>;
|
|
70
66
|
getBusinessParents(params: GetBusinessParentsParams, options?: RequestOptions): Promise<any>;
|
|
71
67
|
triggerBuilds(params: TriggerBuildsParams, options?: RequestOptions): Promise<any>;
|
|
72
|
-
getSubscriptionPlans(options?: RequestOptions): Promise<any>;
|
|
68
|
+
getSubscriptionPlans(params: {}, options?: RequestOptions): Promise<any>;
|
|
73
69
|
getSubscription(params: GetSubscriptionParams, options?: RequestOptions): Promise<any>;
|
|
74
70
|
createSubscription(params: CreateSubscriptionParams, options?: RequestOptions): Promise<any>;
|
|
75
71
|
updateSubscription(params: UpdateSubscriptionParams, options?: RequestOptions): Promise<any>;
|
|
@@ -79,33 +75,24 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
79
75
|
inviteUser(params: InviteUserParams, options?: RequestOptions): Promise<any>;
|
|
80
76
|
handleInvitation(params: HandleInvitationParams, options?: RequestOptions): Promise<any>;
|
|
81
77
|
testWebhook(params: TestWebhookParams, options?: RequestOptions): Promise<any>;
|
|
82
|
-
getBusinessMedia(params:
|
|
83
|
-
|
|
84
|
-
cursor?: string | null;
|
|
85
|
-
limit?: number;
|
|
86
|
-
}, options?: RequestOptions): Promise<any>;
|
|
87
|
-
setProviderSchedule(params: {
|
|
88
|
-
id: string;
|
|
89
|
-
workingTime: any;
|
|
90
|
-
serviceIds: string[];
|
|
91
|
-
providerIds: string[];
|
|
92
|
-
}, options?: RequestOptions): Promise<any>;
|
|
78
|
+
getBusinessMedia(params: GetBusinessMediaParams2, options?: RequestOptions): Promise<any>;
|
|
79
|
+
setProviderSchedule(params: SetProviderScheduleParams, options?: RequestOptions): Promise<any>;
|
|
93
80
|
};
|
|
94
81
|
media: {
|
|
95
|
-
uploadBusinessMedia(params: UploadBusinessMediaParams): Promise<any>;
|
|
82
|
+
uploadBusinessMedia(params: UploadBusinessMediaParams, options?: RequestOptions): Promise<any>;
|
|
96
83
|
deleteBusinessMedia(params: DeleteBusinessMediaParams, options?: RequestOptions): Promise<any>;
|
|
97
|
-
getBusinessMedia(params: GetBusinessMediaParams): Promise<any>;
|
|
84
|
+
getBusinessMedia(params: GetBusinessMediaParams, options?: RequestOptions): Promise<any>;
|
|
98
85
|
};
|
|
99
86
|
role: {
|
|
100
87
|
createRole(params: CreateRoleParams, options?: RequestOptions): Promise<void>;
|
|
101
88
|
updateRole(params: UpdateRoleParams, options?: RequestOptions): Promise<any>;
|
|
102
89
|
deleteRole(params: DeleteRoleParams, options?: RequestOptions): Promise<any>;
|
|
103
90
|
getRole(params: GetRoleParams, options?: RequestOptions): Promise<any>;
|
|
104
|
-
getRoles(params
|
|
91
|
+
getRoles(params: GetRolesParams, options?: RequestOptions): Promise<any>;
|
|
105
92
|
};
|
|
106
93
|
notification: {
|
|
107
94
|
getNotifications(params: GetNotificationsParams, options?: RequestOptions): Promise<any>;
|
|
108
|
-
updateNotifications(options?: RequestOptions): Promise<any>;
|
|
95
|
+
updateNotifications(params: {}, options?: RequestOptions): Promise<any>;
|
|
109
96
|
trackEmailOpen(params: TrackEmailOpenParams, options?: RequestOptions): Promise<any>;
|
|
110
97
|
getDeliveryStats(params: GetDeliveryStatsParams, options?: RequestOptions): Promise<any>;
|
|
111
98
|
};
|
|
@@ -126,9 +113,9 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
126
113
|
updateCollection(params: UpdateCollectionParams, options?: RequestOptions): Promise<any>;
|
|
127
114
|
deleteCollection(params: DeleteCollectionParams, options?: RequestOptions): Promise<any>;
|
|
128
115
|
getCollection(params: GetCollectionParams, options?: RequestOptions): Promise<any>;
|
|
129
|
-
getCollections(params
|
|
130
|
-
generateBlocks(params:
|
|
131
|
-
getCollectionEntries(params
|
|
116
|
+
getCollections(params: GetCollectionsParams, options?: RequestOptions): Promise<any>;
|
|
117
|
+
generateBlocks(params: GenerateBlocksParams, options?: RequestOptions): Promise<any>;
|
|
118
|
+
getCollectionEntries(params: GetEntriesParams, options?: RequestOptions): Promise<any>;
|
|
132
119
|
createCollectionEntry(params: CreateEntryParams, options?: RequestOptions): Promise<any>;
|
|
133
120
|
updateCollectionEntry(params: UpdateEntryParams, options?: RequestOptions): Promise<any>;
|
|
134
121
|
deleteCollectionEntry(params: DeleteCollectionEntryParams, options?: RequestOptions): Promise<any>;
|
|
@@ -139,13 +126,13 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
139
126
|
eshop: {
|
|
140
127
|
createProduct(params: CreateProductParams, options?: RequestOptions): Promise<any>;
|
|
141
128
|
updateProduct(params: UpdateProductParams, options?: RequestOptions): Promise<any>;
|
|
142
|
-
deleteProduct(
|
|
129
|
+
deleteProduct(params: DeleteProductParams, options?: RequestOptions): Promise<any>;
|
|
143
130
|
getProduct(params: GetProductParams, options?: RequestOptions): Promise<any>;
|
|
144
|
-
getProducts(params
|
|
131
|
+
getProducts(params: GetProductsParams, options?: RequestOptions): Promise<any>;
|
|
145
132
|
createOrder(params: CreateOrderParams, options?: RequestOptions): Promise<any>;
|
|
146
133
|
updateOrder(params: UpdateOrderParams, options?: RequestOptions): Promise<any>;
|
|
147
134
|
getOrder(params: GetOrderParams, options?: RequestOptions): Promise<any>;
|
|
148
|
-
getOrders(params
|
|
135
|
+
getOrders(params: GetOrdersParams, options?: RequestOptions): Promise<any>;
|
|
149
136
|
updateOrderStatus(params: UpdateOrderStatusParams, options?: RequestOptions): Promise<any>;
|
|
150
137
|
updateOrderPaymentStatus(params: UpdateOrderPaymentStatusParams, options?: RequestOptions): Promise<any>;
|
|
151
138
|
getQuote(params: GetQuoteParams, options?: RequestOptions): Promise<any>;
|
|
@@ -156,15 +143,15 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
156
143
|
updateReservation(params: UpdateReservationParams, options?: RequestOptions): Promise<any>;
|
|
157
144
|
checkout(params: ReservationCheckoutParams, options?: RequestOptions): Promise<any>;
|
|
158
145
|
getReservation(params: GetReservationParams, options?: RequestOptions): Promise<any>;
|
|
159
|
-
getReservationParts(params
|
|
146
|
+
getReservationParts(params: GetReservationPartsParams, options?: RequestOptions): Promise<any>;
|
|
160
147
|
searchReservations(params: SearchReservationsParams, options?: RequestOptions): Promise<any>;
|
|
161
|
-
searchMyReservations(params
|
|
148
|
+
searchMyReservations(params: SearchMyReservationsParams, options?: RequestOptions): Promise<any>;
|
|
162
149
|
getQuote(params: GetReservationQuoteParams, options?: RequestOptions): Promise<any>;
|
|
163
150
|
createService(params: CreateServiceParams, options?: RequestOptions): Promise<any>;
|
|
164
151
|
updateService(params: UpdateServiceParams, options?: RequestOptions): Promise<any>;
|
|
165
152
|
deleteService(params: DeleteServiceParams, options?: RequestOptions): Promise<any>;
|
|
166
153
|
getService(params: GetServiceParams, options?: RequestOptions): Promise<any>;
|
|
167
|
-
getServices(params
|
|
154
|
+
getServices(params: GetServicesParams, options?: RequestOptions): Promise<any>;
|
|
168
155
|
getAvailableSlots(params: GetAvailableSlotsParams, options?: RequestOptions): Promise<any>;
|
|
169
156
|
createProvider(params: CreateProviderParams, options?: RequestOptions): Promise<any>;
|
|
170
157
|
updateProvider(params: UpdateProviderParams, options?: RequestOptions): Promise<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UpdateUserProfileParams, RequestOptions, UpdateProfilePhoneParams, VerifyPhoneCodeParams, SearchUsersParams, SetRoleParams, LoginUserParams, RegisterUserParams, ConfirmUserParams, GetLoginUrlParams, ForgotPasswordParams, ResetForgotPasswordParams, ResetPasswordParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionParams, CreateSubscriptionParams, UpdateSubscriptionParams, CancelSubscriptionParams, ReactivateSubscriptionParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, CreateRoleParams, UpdateRoleParams, DeleteRoleParams, GetRoleParams, GetRolesParams, GetNotificationsParams, TrackEmailOpenParams, GetDeliveryStatsParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, GetAnalyticsParams, GetAnalyticsHealthParams, SetupAnalyticsParams, CreateCollectionParams, UpdateCollectionParams, DeleteCollectionParams, GetCollectionParams, GetCollectionsParams, GetEntriesParams, CreateEntryParams, UpdateEntryParams, DeleteCollectionEntryParams, GetCollectionEntryParams, SendEntryParams, GetVariableMetadataParams, CreateProductParams, UpdateProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, UpdateOrderStatusParams, UpdateOrderPaymentStatusParams, GetQuoteParams, CheckoutParams, CreateReservationParams, UpdateReservationParams, ReservationCheckoutParams, GetReservationParams, GetReservationPartsParams, SearchReservationsParams, SearchMyReservationsParams, GetReservationQuoteParams, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, GetAvailableSlotsParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, GetBusinessServiceWorkingTimeParams, NewsletterFindParams, NewsletterGetParams, CreateNewsletterParams, UpdateNewsletterParams, DeleteNewsletterParams, GetSubscribersParams, NewsletterSubscribeParams, UnsubscribeParams, HandleStripeWebhookParams, GetBusinessMarketsParams, GetBusinessMarketParams } from './types.js';
|
|
1
|
+
import { UpdateUserProfileParams, RequestOptions, UpdateProfilePhoneParams, VerifyPhoneCodeParams, SearchUsersParams, SetRoleParams, LoginUserParams, RegisterUserParams, ConfirmUserParams, GetLoginUrlParams, ForgotPasswordParams, ResetForgotPasswordParams, ResetPasswordParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionParams, CreateSubscriptionParams, UpdateSubscriptionParams, CancelSubscriptionParams, ReactivateSubscriptionParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, SetProviderScheduleParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, CreateRoleParams, UpdateRoleParams, DeleteRoleParams, GetRoleParams, GetRolesParams, GetNotificationsParams, TrackEmailOpenParams, GetDeliveryStatsParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, GetAnalyticsParams, GetAnalyticsHealthParams, SetupAnalyticsParams, CreateCollectionParams, UpdateCollectionParams, DeleteCollectionParams, GetCollectionParams, GetCollectionsParams, GenerateBlocksParams, GetEntriesParams, CreateEntryParams, UpdateEntryParams, DeleteCollectionEntryParams, GetCollectionEntryParams, SendEntryParams, GetVariableMetadataParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, UpdateOrderStatusParams, UpdateOrderPaymentStatusParams, GetQuoteParams, CheckoutParams, CreateReservationParams, UpdateReservationParams, ReservationCheckoutParams, GetReservationParams, GetReservationPartsParams, SearchReservationsParams, SearchMyReservationsParams, GetReservationQuoteParams, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, GetServiceParams, GetServicesParams, GetAvailableSlotsParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, GetBusinessServiceWorkingTimeParams, NewsletterFindParams, NewsletterGetParams, CreateNewsletterParams, UpdateNewsletterParams, DeleteNewsletterParams, GetSubscribersParams, NewsletterSubscribeParams, UnsubscribeParams, HandleStripeWebhookParams, GetBusinessMarketsParams, GetBusinessMarketParams } from './types.js';
|
|
2
2
|
export { ApiResponse, Block, Business, EshopCartItem, EshopStoreState, Price, ReservationCartPart, ReservationStoreState } from './types.js';
|
|
3
3
|
import { g as getGalleryThumbnail, a as getBlockLabel, b as getBlockTextValue, f as formatBlockValue, p as prepareBlocksForSubmission, e as extractBlockValues, c as getMarketPrice, d as getPriceAmount, h as formatPayment, i as formatMinor, j as createPaymentForCheckout, k as getCurrencySymbol, v as validatePhoneNumber, l as findTimeZone, s as slugify, m as humanize, n as categorify, o as formatDate, q as getSvgContentForAstro, r as fetchSvgContent, t as injectSvgIntoElement } from './svg-BhIM4HZW.js';
|
|
4
4
|
|
|
@@ -26,7 +26,7 @@ interface HttpClientConfig {
|
|
|
26
26
|
isAuthenticated?: () => boolean;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
declare const SDK_VERSION = "0.3.
|
|
29
|
+
declare const SDK_VERSION = "0.3.16";
|
|
30
30
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
31
31
|
interface ApiConfig {
|
|
32
32
|
httpClient: any;
|
|
@@ -34,8 +34,8 @@ interface ApiConfig {
|
|
|
34
34
|
storageUrl: string;
|
|
35
35
|
baseUrl: string;
|
|
36
36
|
market: string;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
setToken: (tokens: any) => void;
|
|
38
|
+
getToken: () => Promise<any> | any;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
declare function createArkySDK(config: HttpClientConfig & {
|
|
@@ -45,18 +45,14 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
45
45
|
updateUser(params: UpdateUserProfileParams, options?: RequestOptions): Promise<any>;
|
|
46
46
|
updateProfilePhone(params: UpdateProfilePhoneParams, options?: RequestOptions): Promise<any>;
|
|
47
47
|
verifyPhoneCode(params: VerifyPhoneCodeParams, options?: RequestOptions): Promise<any>;
|
|
48
|
-
|
|
49
|
-
getMe(options?: RequestOptions): Promise<any>;
|
|
48
|
+
getMe(params: {}, options?: RequestOptions): Promise<any>;
|
|
50
49
|
searchUsers(params: SearchUsersParams, options?: RequestOptions): Promise<any>;
|
|
51
50
|
setUserRole(params: SetRoleParams, options?: RequestOptions): Promise<any>;
|
|
52
51
|
loginUser(params: LoginUserParams, options?: RequestOptions): Promise<any>;
|
|
53
52
|
registerUser(params: RegisterUserParams, options?: RequestOptions): Promise<any>;
|
|
54
|
-
logout(options?: RequestOptions): Promise<any>;
|
|
53
|
+
logout(params: {}, options?: RequestOptions): Promise<any>;
|
|
55
54
|
confirmUser(params: ConfirmUserParams, options?: RequestOptions): Promise<any>;
|
|
56
55
|
getLoginUrl(params: GetLoginUrlParams, options?: RequestOptions): Promise<any>;
|
|
57
|
-
getGuestToken(params: {
|
|
58
|
-
existingToken?: string;
|
|
59
|
-
}, options?: RequestOptions): Promise<string>;
|
|
60
56
|
forgotPassword(params: ForgotPasswordParams, options?: RequestOptions): Promise<any>;
|
|
61
57
|
resetForgotPassword(params: ResetForgotPasswordParams, options?: RequestOptions): Promise<any>;
|
|
62
58
|
resetPassword(params: ResetPasswordParams, options?: RequestOptions): Promise<any>;
|
|
@@ -66,10 +62,10 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
66
62
|
updateBusiness(params: UpdateBusinessParams, options?: RequestOptions): Promise<any>;
|
|
67
63
|
deleteBusiness(params: DeleteBusinessParams, options?: RequestOptions): Promise<any>;
|
|
68
64
|
getBusiness(params: GetBusinessParams, options?: RequestOptions): Promise<any>;
|
|
69
|
-
getBusinesses(options?: RequestOptions): Promise<any>;
|
|
65
|
+
getBusinesses(params: {}, options?: RequestOptions): Promise<any>;
|
|
70
66
|
getBusinessParents(params: GetBusinessParentsParams, options?: RequestOptions): Promise<any>;
|
|
71
67
|
triggerBuilds(params: TriggerBuildsParams, options?: RequestOptions): Promise<any>;
|
|
72
|
-
getSubscriptionPlans(options?: RequestOptions): Promise<any>;
|
|
68
|
+
getSubscriptionPlans(params: {}, options?: RequestOptions): Promise<any>;
|
|
73
69
|
getSubscription(params: GetSubscriptionParams, options?: RequestOptions): Promise<any>;
|
|
74
70
|
createSubscription(params: CreateSubscriptionParams, options?: RequestOptions): Promise<any>;
|
|
75
71
|
updateSubscription(params: UpdateSubscriptionParams, options?: RequestOptions): Promise<any>;
|
|
@@ -79,33 +75,24 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
79
75
|
inviteUser(params: InviteUserParams, options?: RequestOptions): Promise<any>;
|
|
80
76
|
handleInvitation(params: HandleInvitationParams, options?: RequestOptions): Promise<any>;
|
|
81
77
|
testWebhook(params: TestWebhookParams, options?: RequestOptions): Promise<any>;
|
|
82
|
-
getBusinessMedia(params:
|
|
83
|
-
|
|
84
|
-
cursor?: string | null;
|
|
85
|
-
limit?: number;
|
|
86
|
-
}, options?: RequestOptions): Promise<any>;
|
|
87
|
-
setProviderSchedule(params: {
|
|
88
|
-
id: string;
|
|
89
|
-
workingTime: any;
|
|
90
|
-
serviceIds: string[];
|
|
91
|
-
providerIds: string[];
|
|
92
|
-
}, options?: RequestOptions): Promise<any>;
|
|
78
|
+
getBusinessMedia(params: GetBusinessMediaParams2, options?: RequestOptions): Promise<any>;
|
|
79
|
+
setProviderSchedule(params: SetProviderScheduleParams, options?: RequestOptions): Promise<any>;
|
|
93
80
|
};
|
|
94
81
|
media: {
|
|
95
|
-
uploadBusinessMedia(params: UploadBusinessMediaParams): Promise<any>;
|
|
82
|
+
uploadBusinessMedia(params: UploadBusinessMediaParams, options?: RequestOptions): Promise<any>;
|
|
96
83
|
deleteBusinessMedia(params: DeleteBusinessMediaParams, options?: RequestOptions): Promise<any>;
|
|
97
|
-
getBusinessMedia(params: GetBusinessMediaParams): Promise<any>;
|
|
84
|
+
getBusinessMedia(params: GetBusinessMediaParams, options?: RequestOptions): Promise<any>;
|
|
98
85
|
};
|
|
99
86
|
role: {
|
|
100
87
|
createRole(params: CreateRoleParams, options?: RequestOptions): Promise<void>;
|
|
101
88
|
updateRole(params: UpdateRoleParams, options?: RequestOptions): Promise<any>;
|
|
102
89
|
deleteRole(params: DeleteRoleParams, options?: RequestOptions): Promise<any>;
|
|
103
90
|
getRole(params: GetRoleParams, options?: RequestOptions): Promise<any>;
|
|
104
|
-
getRoles(params
|
|
91
|
+
getRoles(params: GetRolesParams, options?: RequestOptions): Promise<any>;
|
|
105
92
|
};
|
|
106
93
|
notification: {
|
|
107
94
|
getNotifications(params: GetNotificationsParams, options?: RequestOptions): Promise<any>;
|
|
108
|
-
updateNotifications(options?: RequestOptions): Promise<any>;
|
|
95
|
+
updateNotifications(params: {}, options?: RequestOptions): Promise<any>;
|
|
109
96
|
trackEmailOpen(params: TrackEmailOpenParams, options?: RequestOptions): Promise<any>;
|
|
110
97
|
getDeliveryStats(params: GetDeliveryStatsParams, options?: RequestOptions): Promise<any>;
|
|
111
98
|
};
|
|
@@ -126,9 +113,9 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
126
113
|
updateCollection(params: UpdateCollectionParams, options?: RequestOptions): Promise<any>;
|
|
127
114
|
deleteCollection(params: DeleteCollectionParams, options?: RequestOptions): Promise<any>;
|
|
128
115
|
getCollection(params: GetCollectionParams, options?: RequestOptions): Promise<any>;
|
|
129
|
-
getCollections(params
|
|
130
|
-
generateBlocks(params:
|
|
131
|
-
getCollectionEntries(params
|
|
116
|
+
getCollections(params: GetCollectionsParams, options?: RequestOptions): Promise<any>;
|
|
117
|
+
generateBlocks(params: GenerateBlocksParams, options?: RequestOptions): Promise<any>;
|
|
118
|
+
getCollectionEntries(params: GetEntriesParams, options?: RequestOptions): Promise<any>;
|
|
132
119
|
createCollectionEntry(params: CreateEntryParams, options?: RequestOptions): Promise<any>;
|
|
133
120
|
updateCollectionEntry(params: UpdateEntryParams, options?: RequestOptions): Promise<any>;
|
|
134
121
|
deleteCollectionEntry(params: DeleteCollectionEntryParams, options?: RequestOptions): Promise<any>;
|
|
@@ -139,13 +126,13 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
139
126
|
eshop: {
|
|
140
127
|
createProduct(params: CreateProductParams, options?: RequestOptions): Promise<any>;
|
|
141
128
|
updateProduct(params: UpdateProductParams, options?: RequestOptions): Promise<any>;
|
|
142
|
-
deleteProduct(
|
|
129
|
+
deleteProduct(params: DeleteProductParams, options?: RequestOptions): Promise<any>;
|
|
143
130
|
getProduct(params: GetProductParams, options?: RequestOptions): Promise<any>;
|
|
144
|
-
getProducts(params
|
|
131
|
+
getProducts(params: GetProductsParams, options?: RequestOptions): Promise<any>;
|
|
145
132
|
createOrder(params: CreateOrderParams, options?: RequestOptions): Promise<any>;
|
|
146
133
|
updateOrder(params: UpdateOrderParams, options?: RequestOptions): Promise<any>;
|
|
147
134
|
getOrder(params: GetOrderParams, options?: RequestOptions): Promise<any>;
|
|
148
|
-
getOrders(params
|
|
135
|
+
getOrders(params: GetOrdersParams, options?: RequestOptions): Promise<any>;
|
|
149
136
|
updateOrderStatus(params: UpdateOrderStatusParams, options?: RequestOptions): Promise<any>;
|
|
150
137
|
updateOrderPaymentStatus(params: UpdateOrderPaymentStatusParams, options?: RequestOptions): Promise<any>;
|
|
151
138
|
getQuote(params: GetQuoteParams, options?: RequestOptions): Promise<any>;
|
|
@@ -156,15 +143,15 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
156
143
|
updateReservation(params: UpdateReservationParams, options?: RequestOptions): Promise<any>;
|
|
157
144
|
checkout(params: ReservationCheckoutParams, options?: RequestOptions): Promise<any>;
|
|
158
145
|
getReservation(params: GetReservationParams, options?: RequestOptions): Promise<any>;
|
|
159
|
-
getReservationParts(params
|
|
146
|
+
getReservationParts(params: GetReservationPartsParams, options?: RequestOptions): Promise<any>;
|
|
160
147
|
searchReservations(params: SearchReservationsParams, options?: RequestOptions): Promise<any>;
|
|
161
|
-
searchMyReservations(params
|
|
148
|
+
searchMyReservations(params: SearchMyReservationsParams, options?: RequestOptions): Promise<any>;
|
|
162
149
|
getQuote(params: GetReservationQuoteParams, options?: RequestOptions): Promise<any>;
|
|
163
150
|
createService(params: CreateServiceParams, options?: RequestOptions): Promise<any>;
|
|
164
151
|
updateService(params: UpdateServiceParams, options?: RequestOptions): Promise<any>;
|
|
165
152
|
deleteService(params: DeleteServiceParams, options?: RequestOptions): Promise<any>;
|
|
166
153
|
getService(params: GetServiceParams, options?: RequestOptions): Promise<any>;
|
|
167
|
-
getServices(params
|
|
154
|
+
getServices(params: GetServicesParams, options?: RequestOptions): Promise<any>;
|
|
168
155
|
getAvailableSlots(params: GetAvailableSlotsParams, options?: RequestOptions): Promise<any>;
|
|
169
156
|
createProvider(params: CreateProviderParams, options?: RequestOptions): Promise<any>;
|
|
170
157
|
updateProvider(params: UpdateProviderParams, options?: RequestOptions): Promise<any>;
|