arky-sdk 0.10.0 → 0.11.1

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
@@ -725,6 +725,7 @@ interface StripeConfirmationTokenControllerConfig {
725
725
  amount: number;
726
726
  currency: string;
727
727
  appearance?: StripeElementsOptions["appearance"];
728
+ setupFutureUsage?: "off_session" | "on_session";
728
729
  }
729
730
  interface StripeConfirmationTokenOptions {
730
731
  return_url?: string;
@@ -763,7 +764,7 @@ type StorefrontProvider$1 = StorefrontDto<Provider>;
763
764
  type StorefrontService$1 = StorefrontDto<Service>;
764
765
  type StorefrontServiceProvider = StorefrontDto<ServiceProvider>;
765
766
  type ArkyPaymentController = StripeConfirmationTokenController;
766
- type ArkyStripePaymentMountOptions = Partial<Pick<StripeConfirmationTokenControllerConfig, "amount" | "currency" | "appearance">>;
767
+ type ArkyStripePaymentMountOptions = Partial<Pick<StripeConfirmationTokenControllerConfig, "amount" | "currency" | "appearance" | "setupFutureUsage">>;
767
768
  type ArkyStoreConfig = StorefrontOptions;
768
769
  interface ArkyStoreContext {
769
770
  locale?: string;
@@ -1007,8 +1008,8 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
1007
1008
  submitByKey: (params: ArkySubmitFormByKeyParams, options?: RequestOptions) => Promise<StorefrontFormSubmission>;
1008
1009
  };
1009
1010
  taxonomy: {
1010
- get(params: Omit<GetTaxonomyParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Taxonomy>>;
1011
- getChildren(params: Omit<GetTaxonomyChildrenParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Taxonomy>>>;
1011
+ get(params: Omit<GetTaxonomyParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Taxonomy>>;
1012
+ getChildren(params: Omit<GetTaxonomyChildrenParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Taxonomy>>>;
1012
1013
  };
1013
1014
  };
1014
1015
  eshop: {
@@ -1187,11 +1188,11 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
1187
1188
  list: (params?: StorefrontParams<GetProvidersParams>, options?: RequestOptions) => Promise<StorefrontPage<Provider>>;
1188
1189
  };
1189
1190
  order: {
1190
- get(params: Omit<GetOrderParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Order>>;
1191
- find(params: Omit<GetOrdersParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Order>>>;
1192
- downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessDownloadResponse>>;
1193
- findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<DigitalAccessGrant>>>;
1194
- getDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessGrant>>;
1191
+ get(params: Omit<GetOrderParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Order>>;
1192
+ find(params: Omit<GetOrdersParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Order>>>;
1193
+ downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessDownloadResponse>>;
1194
+ findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<DigitalAccessGrant>>>;
1195
+ getDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessGrant>>;
1195
1196
  };
1196
1197
  cart: {
1197
1198
  cart: nanostores.PreinitializedWritableAtom<{
@@ -2200,7 +2201,7 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
2200
2201
  ready: nanostores.ReadableAtom<boolean>;
2201
2202
  setController: (controller: StripeConfirmationTokenController | null) => StripeConfirmationTokenController | null;
2202
2203
  getController: () => StripeConfirmationTokenController | null;
2203
- mountStripe: (target: string | HTMLElement, options?: ArkyStripePaymentMountOptions) => Promise<StripeConfirmationTokenController>;
2204
+ mount: (target: string | HTMLElement, options?: ArkyStripePaymentMountOptions) => Promise<StripeConfirmationTokenController>;
2204
2205
  update: (input: {
2205
2206
  amount?: number;
2206
2207
  currency?: string;
@@ -2793,17 +2794,17 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
2793
2794
  getMe: () => Promise<StorefrontContact>;
2794
2795
  };
2795
2796
  contactList: {
2796
- get(params: Omit<GetContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontContactList>;
2797
- find(params?: Omit<FindStorefrontContactListsParams, "market" | "store_id">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactList>>;
2797
+ get(params: Omit<GetContactListParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontContactList>;
2798
+ find(params?: Omit<FindStorefrontContactListsParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactList>>;
2798
2799
  plans: {
2799
- find(params: Omit<FindStorefrontContactListPlansParams, "market" | "store_id">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
2800
+ find(params: Omit<FindStorefrontContactListPlansParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
2800
2801
  };
2801
2802
  memberships: {
2802
- find(params?: Omit<FindStorefrontContactListMembershipsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
2803
+ find(params?: Omit<FindStorefrontContactListMembershipsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
2803
2804
  };
2804
- subscribe(params: Omit<SubscribeContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListSubscribeResponse>>;
2805
- checkAccess(params: Omit<ContactListAccessParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListAccessResponse>>;
2806
- checkContentAccess(params: Omit<ContactListContentAccessParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListContentAccessResponse>>;
2805
+ subscribe(params: Omit<SubscribeContactListParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ContactListSubscribeResponse>>;
2806
+ checkAccess(params: Omit<ContactListAccessParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ContactListAccessResponse>>;
2807
+ checkContentAccess(params: Omit<ContactListContentAccessParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ContactListContentAccessResponse>>;
2807
2808
  };
2808
2809
  };
2809
2810
  action: {
@@ -2906,7 +2907,7 @@ type ArkyStore = ReturnType<typeof initialize>;
2906
2907
  type ArkyCartStore = ArkyStore["eshop"]["cart"];
2907
2908
  type ArkyServiceStore = ArkyStore["eshop"]["service"];
2908
2909
 
2909
- declare const SDK_VERSION = "0.10.0";
2910
+ declare const SDK_VERSION = "0.11.1";
2910
2911
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
2911
2912
 
2912
2913
  interface ApiConfig {
@@ -3620,24 +3621,24 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3620
3621
  } & {
3621
3622
  id: string;
3622
3623
  key?: never;
3623
- }, "market" | "store_id"> | Omit<{
3624
+ }, "store_id" | "market"> | Omit<{
3624
3625
  store_id?: string;
3625
3626
  } & {
3626
3627
  id?: never;
3627
3628
  key: string;
3628
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Collection>>;
3629
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Collection>>;
3629
3630
  };
3630
3631
  entry: {
3631
- get(params: Omit<GetEntryParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<CollectionEntry>>;
3632
- find(params: Omit<GetEntriesParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<CollectionEntry>>>;
3632
+ get(params: Omit<GetEntryParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<CollectionEntry>>;
3633
+ find(params: Omit<GetEntriesParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<CollectionEntry>>>;
3633
3634
  };
3634
3635
  form: {
3635
- get(params: Omit<GetFormParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Form>>;
3636
- submit(params: Omit<SubmitFormParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<FormSubmission>>;
3636
+ get(params: Omit<GetFormParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Form>>;
3637
+ submit(params: Omit<SubmitFormParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<FormSubmission>>;
3637
3638
  };
3638
3639
  taxonomy: {
3639
- get(params: Omit<GetTaxonomyParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Taxonomy>>;
3640
- getChildren(params: Omit<GetTaxonomyChildrenParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Taxonomy>>>;
3640
+ get(params: Omit<GetTaxonomyParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Taxonomy>>;
3641
+ getChildren(params: Omit<GetTaxonomyChildrenParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Taxonomy>>>;
3641
3642
  };
3642
3643
  };
3643
3644
  eshop: {
@@ -3647,19 +3648,19 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3647
3648
  } & {
3648
3649
  id: string;
3649
3650
  slug?: never;
3650
- }, "market" | "store_id"> | Omit<{
3651
+ }, "store_id" | "market"> | Omit<{
3651
3652
  store_id?: string;
3652
3653
  } & {
3653
3654
  id?: never;
3654
3655
  slug: string;
3655
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Product>>;
3656
- find(params: Omit<GetProductsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Product>>>;
3656
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Product>>;
3657
+ find(params: Omit<GetProductsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Product>>>;
3657
3658
  };
3658
3659
  cart: {
3659
3660
  current(options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3660
- get(params: Omit<GetCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3661
- update(params: Omit<UpdateCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3662
- addItem(params: Omit<AddCartItemParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3661
+ get(params: Omit<GetCartParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3662
+ update(params: Omit<UpdateCartParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3663
+ addItem(params: Omit<AddCartItemParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3663
3664
  removeItem(params: Omit<{
3664
3665
  id: string;
3665
3666
  store_id?: string;
@@ -3667,24 +3668,24 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3667
3668
  item_id: string;
3668
3669
  product_id?: never;
3669
3670
  variant_id?: never;
3670
- }, "market" | "store_id"> | Omit<{
3671
+ }, "store_id" | "market"> | Omit<{
3671
3672
  id: string;
3672
3673
  store_id?: string;
3673
3674
  } & {
3674
3675
  item_id?: never;
3675
3676
  product_id: string;
3676
3677
  variant_id: string;
3677
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3678
- clear(params: Omit<ClearCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3679
- quote(params: Omit<QuoteCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<OrderQuote>>;
3680
- checkout(params: Omit<CheckoutCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<OrderCheckoutResult>>;
3678
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3679
+ clear(params: Omit<ClearCartParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3680
+ quote(params: Omit<QuoteCartParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<OrderQuote>>;
3681
+ checkout(params: Omit<CheckoutCartParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<OrderCheckoutResult>>;
3681
3682
  };
3682
3683
  order: {
3683
- get(params: Omit<GetOrderParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Order>>;
3684
- find(params: Omit<GetOrdersParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Order>>>;
3685
- downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessDownloadResponse>>;
3686
- findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<DigitalAccessGrant>>>;
3687
- getDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessGrant>>;
3684
+ get(params: Omit<GetOrderParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Order>>;
3685
+ find(params: Omit<GetOrdersParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Order>>>;
3686
+ downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessDownloadResponse>>;
3687
+ findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<DigitalAccessGrant>>>;
3688
+ getDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessGrant>>;
3688
3689
  };
3689
3690
  service: {
3690
3691
  get(params: Omit<{
@@ -3692,25 +3693,25 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3692
3693
  } & {
3693
3694
  id: string;
3694
3695
  slug?: never;
3695
- }, "market" | "store_id"> | Omit<{
3696
+ }, "store_id" | "market"> | Omit<{
3696
3697
  store_id?: string;
3697
3698
  } & {
3698
3699
  id?: never;
3699
3700
  slug: string;
3700
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Service>>;
3701
- find(params: Omit<GetServicesParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Service>>>;
3701
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Service>>;
3702
+ find(params: Omit<GetServicesParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Service>>>;
3702
3703
  findProviders(params: Omit<{
3703
3704
  store_id?: string;
3704
3705
  } & {
3705
3706
  service_id: string;
3706
3707
  provider_id?: string;
3707
- }, "market" | "store_id"> | Omit<{
3708
+ }, "store_id" | "market"> | Omit<{
3708
3709
  store_id?: string;
3709
3710
  } & {
3710
3711
  service_id?: string;
3711
3712
  provider_id: string;
3712
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ServiceProvider[]>>;
3713
- getAvailability(params: Omit<GetAvailabilityParams, "market" | "store_id">, options?: RequestOptions): Promise<AvailabilityResponse>;
3713
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ServiceProvider[]>>;
3714
+ getAvailability(params: Omit<GetAvailabilityParams, "store_id" | "market">, options?: RequestOptions): Promise<AvailabilityResponse>;
3714
3715
  };
3715
3716
  provider: {
3716
3717
  get(params: Omit<{
@@ -3718,13 +3719,13 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3718
3719
  } & {
3719
3720
  id: string;
3720
3721
  slug?: never;
3721
- }, "market" | "store_id"> | Omit<{
3722
+ }, "store_id" | "market"> | Omit<{
3722
3723
  store_id?: string;
3723
3724
  } & {
3724
3725
  id?: never;
3725
3726
  slug: string;
3726
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Provider>>;
3727
- find(params: Omit<GetProvidersParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Provider>>>;
3727
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Provider>>;
3728
+ find(params: Omit<GetProvidersParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Provider>>>;
3728
3729
  };
3729
3730
  };
3730
3731
  crm: {
@@ -3743,17 +3744,17 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3743
3744
  getMe: () => Promise<StorefrontContact>;
3744
3745
  };
3745
3746
  contactList: {
3746
- get(params: Omit<GetContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontContactList>;
3747
- find(params?: Omit<FindStorefrontContactListsParams, "market" | "store_id">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactList>>;
3747
+ get(params: Omit<GetContactListParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontContactList>;
3748
+ find(params?: Omit<FindStorefrontContactListsParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactList>>;
3748
3749
  plans: {
3749
- find(params: Omit<FindStorefrontContactListPlansParams, "market" | "store_id">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
3750
+ find(params: Omit<FindStorefrontContactListPlansParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
3750
3751
  };
3751
3752
  memberships: {
3752
- find(params?: Omit<FindStorefrontContactListMembershipsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
3753
+ find(params?: Omit<FindStorefrontContactListMembershipsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
3753
3754
  };
3754
- subscribe(params: Omit<SubscribeContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListSubscribeResponse>>;
3755
- checkAccess(params: Omit<ContactListAccessParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListAccessResponse>>;
3756
- checkContentAccess(params: Omit<ContactListContentAccessParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListContentAccessResponse>>;
3755
+ subscribe(params: Omit<SubscribeContactListParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ContactListSubscribeResponse>>;
3756
+ checkAccess(params: Omit<ContactListAccessParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ContactListAccessResponse>>;
3757
+ checkContentAccess(params: Omit<ContactListContentAccessParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ContactListContentAccessResponse>>;
3757
3758
  };
3758
3759
  };
3759
3760
  action: {
package/dist/index.d.ts CHANGED
@@ -725,6 +725,7 @@ interface StripeConfirmationTokenControllerConfig {
725
725
  amount: number;
726
726
  currency: string;
727
727
  appearance?: StripeElementsOptions["appearance"];
728
+ setupFutureUsage?: "off_session" | "on_session";
728
729
  }
729
730
  interface StripeConfirmationTokenOptions {
730
731
  return_url?: string;
@@ -763,7 +764,7 @@ type StorefrontProvider$1 = StorefrontDto<Provider>;
763
764
  type StorefrontService$1 = StorefrontDto<Service>;
764
765
  type StorefrontServiceProvider = StorefrontDto<ServiceProvider>;
765
766
  type ArkyPaymentController = StripeConfirmationTokenController;
766
- type ArkyStripePaymentMountOptions = Partial<Pick<StripeConfirmationTokenControllerConfig, "amount" | "currency" | "appearance">>;
767
+ type ArkyStripePaymentMountOptions = Partial<Pick<StripeConfirmationTokenControllerConfig, "amount" | "currency" | "appearance" | "setupFutureUsage">>;
767
768
  type ArkyStoreConfig = StorefrontOptions;
768
769
  interface ArkyStoreContext {
769
770
  locale?: string;
@@ -1007,8 +1008,8 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
1007
1008
  submitByKey: (params: ArkySubmitFormByKeyParams, options?: RequestOptions) => Promise<StorefrontFormSubmission>;
1008
1009
  };
1009
1010
  taxonomy: {
1010
- get(params: Omit<GetTaxonomyParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Taxonomy>>;
1011
- getChildren(params: Omit<GetTaxonomyChildrenParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Taxonomy>>>;
1011
+ get(params: Omit<GetTaxonomyParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Taxonomy>>;
1012
+ getChildren(params: Omit<GetTaxonomyChildrenParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Taxonomy>>>;
1012
1013
  };
1013
1014
  };
1014
1015
  eshop: {
@@ -1187,11 +1188,11 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
1187
1188
  list: (params?: StorefrontParams<GetProvidersParams>, options?: RequestOptions) => Promise<StorefrontPage<Provider>>;
1188
1189
  };
1189
1190
  order: {
1190
- get(params: Omit<GetOrderParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Order>>;
1191
- find(params: Omit<GetOrdersParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Order>>>;
1192
- downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessDownloadResponse>>;
1193
- findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<DigitalAccessGrant>>>;
1194
- getDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessGrant>>;
1191
+ get(params: Omit<GetOrderParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Order>>;
1192
+ find(params: Omit<GetOrdersParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Order>>>;
1193
+ downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessDownloadResponse>>;
1194
+ findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<DigitalAccessGrant>>>;
1195
+ getDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessGrant>>;
1195
1196
  };
1196
1197
  cart: {
1197
1198
  cart: nanostores.PreinitializedWritableAtom<{
@@ -2200,7 +2201,7 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
2200
2201
  ready: nanostores.ReadableAtom<boolean>;
2201
2202
  setController: (controller: StripeConfirmationTokenController | null) => StripeConfirmationTokenController | null;
2202
2203
  getController: () => StripeConfirmationTokenController | null;
2203
- mountStripe: (target: string | HTMLElement, options?: ArkyStripePaymentMountOptions) => Promise<StripeConfirmationTokenController>;
2204
+ mount: (target: string | HTMLElement, options?: ArkyStripePaymentMountOptions) => Promise<StripeConfirmationTokenController>;
2204
2205
  update: (input: {
2205
2206
  amount?: number;
2206
2207
  currency?: string;
@@ -2793,17 +2794,17 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
2793
2794
  getMe: () => Promise<StorefrontContact>;
2794
2795
  };
2795
2796
  contactList: {
2796
- get(params: Omit<GetContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontContactList>;
2797
- find(params?: Omit<FindStorefrontContactListsParams, "market" | "store_id">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactList>>;
2797
+ get(params: Omit<GetContactListParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontContactList>;
2798
+ find(params?: Omit<FindStorefrontContactListsParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactList>>;
2798
2799
  plans: {
2799
- find(params: Omit<FindStorefrontContactListPlansParams, "market" | "store_id">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
2800
+ find(params: Omit<FindStorefrontContactListPlansParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
2800
2801
  };
2801
2802
  memberships: {
2802
- find(params?: Omit<FindStorefrontContactListMembershipsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
2803
+ find(params?: Omit<FindStorefrontContactListMembershipsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
2803
2804
  };
2804
- subscribe(params: Omit<SubscribeContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListSubscribeResponse>>;
2805
- checkAccess(params: Omit<ContactListAccessParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListAccessResponse>>;
2806
- checkContentAccess(params: Omit<ContactListContentAccessParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListContentAccessResponse>>;
2805
+ subscribe(params: Omit<SubscribeContactListParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ContactListSubscribeResponse>>;
2806
+ checkAccess(params: Omit<ContactListAccessParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ContactListAccessResponse>>;
2807
+ checkContentAccess(params: Omit<ContactListContentAccessParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ContactListContentAccessResponse>>;
2807
2808
  };
2808
2809
  };
2809
2810
  action: {
@@ -2906,7 +2907,7 @@ type ArkyStore = ReturnType<typeof initialize>;
2906
2907
  type ArkyCartStore = ArkyStore["eshop"]["cart"];
2907
2908
  type ArkyServiceStore = ArkyStore["eshop"]["service"];
2908
2909
 
2909
- declare const SDK_VERSION = "0.10.0";
2910
+ declare const SDK_VERSION = "0.11.1";
2910
2911
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
2911
2912
 
2912
2913
  interface ApiConfig {
@@ -3620,24 +3621,24 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3620
3621
  } & {
3621
3622
  id: string;
3622
3623
  key?: never;
3623
- }, "market" | "store_id"> | Omit<{
3624
+ }, "store_id" | "market"> | Omit<{
3624
3625
  store_id?: string;
3625
3626
  } & {
3626
3627
  id?: never;
3627
3628
  key: string;
3628
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Collection>>;
3629
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Collection>>;
3629
3630
  };
3630
3631
  entry: {
3631
- get(params: Omit<GetEntryParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<CollectionEntry>>;
3632
- find(params: Omit<GetEntriesParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<CollectionEntry>>>;
3632
+ get(params: Omit<GetEntryParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<CollectionEntry>>;
3633
+ find(params: Omit<GetEntriesParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<CollectionEntry>>>;
3633
3634
  };
3634
3635
  form: {
3635
- get(params: Omit<GetFormParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Form>>;
3636
- submit(params: Omit<SubmitFormParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<FormSubmission>>;
3636
+ get(params: Omit<GetFormParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Form>>;
3637
+ submit(params: Omit<SubmitFormParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<FormSubmission>>;
3637
3638
  };
3638
3639
  taxonomy: {
3639
- get(params: Omit<GetTaxonomyParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Taxonomy>>;
3640
- getChildren(params: Omit<GetTaxonomyChildrenParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Taxonomy>>>;
3640
+ get(params: Omit<GetTaxonomyParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Taxonomy>>;
3641
+ getChildren(params: Omit<GetTaxonomyChildrenParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Taxonomy>>>;
3641
3642
  };
3642
3643
  };
3643
3644
  eshop: {
@@ -3647,19 +3648,19 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3647
3648
  } & {
3648
3649
  id: string;
3649
3650
  slug?: never;
3650
- }, "market" | "store_id"> | Omit<{
3651
+ }, "store_id" | "market"> | Omit<{
3651
3652
  store_id?: string;
3652
3653
  } & {
3653
3654
  id?: never;
3654
3655
  slug: string;
3655
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Product>>;
3656
- find(params: Omit<GetProductsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Product>>>;
3656
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Product>>;
3657
+ find(params: Omit<GetProductsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Product>>>;
3657
3658
  };
3658
3659
  cart: {
3659
3660
  current(options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3660
- get(params: Omit<GetCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3661
- update(params: Omit<UpdateCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3662
- addItem(params: Omit<AddCartItemParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3661
+ get(params: Omit<GetCartParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3662
+ update(params: Omit<UpdateCartParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3663
+ addItem(params: Omit<AddCartItemParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3663
3664
  removeItem(params: Omit<{
3664
3665
  id: string;
3665
3666
  store_id?: string;
@@ -3667,24 +3668,24 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3667
3668
  item_id: string;
3668
3669
  product_id?: never;
3669
3670
  variant_id?: never;
3670
- }, "market" | "store_id"> | Omit<{
3671
+ }, "store_id" | "market"> | Omit<{
3671
3672
  id: string;
3672
3673
  store_id?: string;
3673
3674
  } & {
3674
3675
  item_id?: never;
3675
3676
  product_id: string;
3676
3677
  variant_id: string;
3677
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3678
- clear(params: Omit<ClearCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3679
- quote(params: Omit<QuoteCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<OrderQuote>>;
3680
- checkout(params: Omit<CheckoutCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<OrderCheckoutResult>>;
3678
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3679
+ clear(params: Omit<ClearCartParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3680
+ quote(params: Omit<QuoteCartParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<OrderQuote>>;
3681
+ checkout(params: Omit<CheckoutCartParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<OrderCheckoutResult>>;
3681
3682
  };
3682
3683
  order: {
3683
- get(params: Omit<GetOrderParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Order>>;
3684
- find(params: Omit<GetOrdersParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Order>>>;
3685
- downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessDownloadResponse>>;
3686
- findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<DigitalAccessGrant>>>;
3687
- getDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessGrant>>;
3684
+ get(params: Omit<GetOrderParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Order>>;
3685
+ find(params: Omit<GetOrdersParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Order>>>;
3686
+ downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessDownloadResponse>>;
3687
+ findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<DigitalAccessGrant>>>;
3688
+ getDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessGrant>>;
3688
3689
  };
3689
3690
  service: {
3690
3691
  get(params: Omit<{
@@ -3692,25 +3693,25 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3692
3693
  } & {
3693
3694
  id: string;
3694
3695
  slug?: never;
3695
- }, "market" | "store_id"> | Omit<{
3696
+ }, "store_id" | "market"> | Omit<{
3696
3697
  store_id?: string;
3697
3698
  } & {
3698
3699
  id?: never;
3699
3700
  slug: string;
3700
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Service>>;
3701
- find(params: Omit<GetServicesParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Service>>>;
3701
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Service>>;
3702
+ find(params: Omit<GetServicesParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Service>>>;
3702
3703
  findProviders(params: Omit<{
3703
3704
  store_id?: string;
3704
3705
  } & {
3705
3706
  service_id: string;
3706
3707
  provider_id?: string;
3707
- }, "market" | "store_id"> | Omit<{
3708
+ }, "store_id" | "market"> | Omit<{
3708
3709
  store_id?: string;
3709
3710
  } & {
3710
3711
  service_id?: string;
3711
3712
  provider_id: string;
3712
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ServiceProvider[]>>;
3713
- getAvailability(params: Omit<GetAvailabilityParams, "market" | "store_id">, options?: RequestOptions): Promise<AvailabilityResponse>;
3713
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ServiceProvider[]>>;
3714
+ getAvailability(params: Omit<GetAvailabilityParams, "store_id" | "market">, options?: RequestOptions): Promise<AvailabilityResponse>;
3714
3715
  };
3715
3716
  provider: {
3716
3717
  get(params: Omit<{
@@ -3718,13 +3719,13 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3718
3719
  } & {
3719
3720
  id: string;
3720
3721
  slug?: never;
3721
- }, "market" | "store_id"> | Omit<{
3722
+ }, "store_id" | "market"> | Omit<{
3722
3723
  store_id?: string;
3723
3724
  } & {
3724
3725
  id?: never;
3725
3726
  slug: string;
3726
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Provider>>;
3727
- find(params: Omit<GetProvidersParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Provider>>>;
3727
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Provider>>;
3728
+ find(params: Omit<GetProvidersParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Provider>>>;
3728
3729
  };
3729
3730
  };
3730
3731
  crm: {
@@ -3743,17 +3744,17 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3743
3744
  getMe: () => Promise<StorefrontContact>;
3744
3745
  };
3745
3746
  contactList: {
3746
- get(params: Omit<GetContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontContactList>;
3747
- find(params?: Omit<FindStorefrontContactListsParams, "market" | "store_id">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactList>>;
3747
+ get(params: Omit<GetContactListParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontContactList>;
3748
+ find(params?: Omit<FindStorefrontContactListsParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactList>>;
3748
3749
  plans: {
3749
- find(params: Omit<FindStorefrontContactListPlansParams, "market" | "store_id">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
3750
+ find(params: Omit<FindStorefrontContactListPlansParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
3750
3751
  };
3751
3752
  memberships: {
3752
- find(params?: Omit<FindStorefrontContactListMembershipsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
3753
+ find(params?: Omit<FindStorefrontContactListMembershipsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
3753
3754
  };
3754
- subscribe(params: Omit<SubscribeContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListSubscribeResponse>>;
3755
- checkAccess(params: Omit<ContactListAccessParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListAccessResponse>>;
3756
- checkContentAccess(params: Omit<ContactListContentAccessParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListContentAccessResponse>>;
3755
+ subscribe(params: Omit<SubscribeContactListParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ContactListSubscribeResponse>>;
3756
+ checkAccess(params: Omit<ContactListAccessParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ContactListAccessResponse>>;
3757
+ checkContentAccess(params: Omit<ContactListContentAccessParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<ContactListContentAccessResponse>>;
3757
3758
  };
3758
3759
  };
3759
3760
  action: {