arky-sdk 0.3.17 → 0.3.18

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.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, 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';
1
+ import { UpdateUserProfileParams, RequestOptions, UpdateProfilePhoneParams, VerifyPhoneCodeParams, GetMeParams, SearchUsersParams, SetRoleParams, LoginUserParams, RegisterUserParams, LogoutParams, ConfirmUserParams, GetLoginUrlParams, ForgotPasswordParams, ResetForgotPasswordParams, ResetPasswordParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionPlansParams, GetSubscriptionParams, CreateSubscriptionParams, UpdateSubscriptionParams, CancelSubscriptionParams, ReactivateSubscriptionParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, SetProviderScheduleParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, CreateRoleParams, UpdateRoleParams, DeleteRoleParams, GetRoleParams, GetRolesParams, GetNotificationsParams, UpdateNotificationsParams, 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.17";
29
+ declare const SDK_VERSION = "0.3.18";
30
30
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
31
31
  interface ApiConfig {
32
32
  httpClient: any;
@@ -45,12 +45,12 @@ 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
- getMe(params: {}, options?: RequestOptions): Promise<any>;
48
+ getMe(params: GetMeParams, options?: RequestOptions): Promise<any>;
49
49
  searchUsers(params: SearchUsersParams, options?: RequestOptions): Promise<any>;
50
50
  setUserRole(params: SetRoleParams, options?: RequestOptions): Promise<any>;
51
51
  loginUser(params: LoginUserParams, options?: RequestOptions): Promise<any>;
52
52
  registerUser(params: RegisterUserParams, options?: RequestOptions): Promise<any>;
53
- logout(params: {}, options?: RequestOptions): Promise<any>;
53
+ logout(params: LogoutParams, options?: RequestOptions): Promise<any>;
54
54
  confirmUser(params: ConfirmUserParams, options?: RequestOptions): Promise<any>;
55
55
  getLoginUrl(params: GetLoginUrlParams, options?: RequestOptions): Promise<any>;
56
56
  forgotPassword(params: ForgotPasswordParams, options?: RequestOptions): Promise<any>;
@@ -62,10 +62,10 @@ declare function createArkySDK(config: HttpClientConfig & {
62
62
  updateBusiness(params: UpdateBusinessParams, options?: RequestOptions): Promise<any>;
63
63
  deleteBusiness(params: DeleteBusinessParams, options?: RequestOptions): Promise<any>;
64
64
  getBusiness(params: GetBusinessParams, options?: RequestOptions): Promise<any>;
65
- getBusinesses(params: {}, options?: RequestOptions): Promise<any>;
65
+ getBusinesses(params: GetBusinessesParams, options?: RequestOptions): Promise<any>;
66
66
  getBusinessParents(params: GetBusinessParentsParams, options?: RequestOptions): Promise<any>;
67
67
  triggerBuilds(params: TriggerBuildsParams, options?: RequestOptions): Promise<any>;
68
- getSubscriptionPlans(params: {}, options?: RequestOptions): Promise<any>;
68
+ getSubscriptionPlans(params: GetSubscriptionPlansParams, options?: RequestOptions): Promise<any>;
69
69
  getSubscription(params: GetSubscriptionParams, options?: RequestOptions): Promise<any>;
70
70
  createSubscription(params: CreateSubscriptionParams, options?: RequestOptions): Promise<any>;
71
71
  updateSubscription(params: UpdateSubscriptionParams, options?: RequestOptions): Promise<any>;
@@ -92,7 +92,7 @@ declare function createArkySDK(config: HttpClientConfig & {
92
92
  };
93
93
  notification: {
94
94
  getNotifications(params: GetNotificationsParams, options?: RequestOptions): Promise<any>;
95
- updateNotifications(params: {}, options?: RequestOptions): Promise<any>;
95
+ updateNotifications(params: UpdateNotificationsParams, options?: RequestOptions): Promise<any>;
96
96
  trackEmailOpen(params: TrackEmailOpenParams, options?: RequestOptions): Promise<any>;
97
97
  getDeliveryStats(params: GetDeliveryStatsParams, options?: RequestOptions): Promise<any>;
98
98
  };
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, 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';
1
+ import { UpdateUserProfileParams, RequestOptions, UpdateProfilePhoneParams, VerifyPhoneCodeParams, GetMeParams, SearchUsersParams, SetRoleParams, LoginUserParams, RegisterUserParams, LogoutParams, ConfirmUserParams, GetLoginUrlParams, ForgotPasswordParams, ResetForgotPasswordParams, ResetPasswordParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionPlansParams, GetSubscriptionParams, CreateSubscriptionParams, UpdateSubscriptionParams, CancelSubscriptionParams, ReactivateSubscriptionParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, SetProviderScheduleParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, CreateRoleParams, UpdateRoleParams, DeleteRoleParams, GetRoleParams, GetRolesParams, GetNotificationsParams, UpdateNotificationsParams, 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.17";
29
+ declare const SDK_VERSION = "0.3.18";
30
30
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
31
31
  interface ApiConfig {
32
32
  httpClient: any;
@@ -45,12 +45,12 @@ 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
- getMe(params: {}, options?: RequestOptions): Promise<any>;
48
+ getMe(params: GetMeParams, options?: RequestOptions): Promise<any>;
49
49
  searchUsers(params: SearchUsersParams, options?: RequestOptions): Promise<any>;
50
50
  setUserRole(params: SetRoleParams, options?: RequestOptions): Promise<any>;
51
51
  loginUser(params: LoginUserParams, options?: RequestOptions): Promise<any>;
52
52
  registerUser(params: RegisterUserParams, options?: RequestOptions): Promise<any>;
53
- logout(params: {}, options?: RequestOptions): Promise<any>;
53
+ logout(params: LogoutParams, options?: RequestOptions): Promise<any>;
54
54
  confirmUser(params: ConfirmUserParams, options?: RequestOptions): Promise<any>;
55
55
  getLoginUrl(params: GetLoginUrlParams, options?: RequestOptions): Promise<any>;
56
56
  forgotPassword(params: ForgotPasswordParams, options?: RequestOptions): Promise<any>;
@@ -62,10 +62,10 @@ declare function createArkySDK(config: HttpClientConfig & {
62
62
  updateBusiness(params: UpdateBusinessParams, options?: RequestOptions): Promise<any>;
63
63
  deleteBusiness(params: DeleteBusinessParams, options?: RequestOptions): Promise<any>;
64
64
  getBusiness(params: GetBusinessParams, options?: RequestOptions): Promise<any>;
65
- getBusinesses(params: {}, options?: RequestOptions): Promise<any>;
65
+ getBusinesses(params: GetBusinessesParams, options?: RequestOptions): Promise<any>;
66
66
  getBusinessParents(params: GetBusinessParentsParams, options?: RequestOptions): Promise<any>;
67
67
  triggerBuilds(params: TriggerBuildsParams, options?: RequestOptions): Promise<any>;
68
- getSubscriptionPlans(params: {}, options?: RequestOptions): Promise<any>;
68
+ getSubscriptionPlans(params: GetSubscriptionPlansParams, options?: RequestOptions): Promise<any>;
69
69
  getSubscription(params: GetSubscriptionParams, options?: RequestOptions): Promise<any>;
70
70
  createSubscription(params: CreateSubscriptionParams, options?: RequestOptions): Promise<any>;
71
71
  updateSubscription(params: UpdateSubscriptionParams, options?: RequestOptions): Promise<any>;
@@ -92,7 +92,7 @@ declare function createArkySDK(config: HttpClientConfig & {
92
92
  };
93
93
  notification: {
94
94
  getNotifications(params: GetNotificationsParams, options?: RequestOptions): Promise<any>;
95
- updateNotifications(params: {}, options?: RequestOptions): Promise<any>;
95
+ updateNotifications(params: UpdateNotificationsParams, options?: RequestOptions): Promise<any>;
96
96
  trackEmailOpen(params: TrackEmailOpenParams, options?: RequestOptions): Promise<any>;
97
97
  getDeliveryStats(params: GetDeliveryStatsParams, options?: RequestOptions): Promise<any>;
98
98
  };
package/dist/index.js CHANGED
@@ -1510,7 +1510,7 @@ async function injectSvgIntoElement(mediaObject, targetElement, className) {
1510
1510
  }
1511
1511
 
1512
1512
  // src/index.ts
1513
- var SDK_VERSION = "0.3.17";
1513
+ var SDK_VERSION = "0.3.18";
1514
1514
  var SUPPORTED_FRAMEWORKS = [
1515
1515
  "astro",
1516
1516
  "react",