arky-sdk 0.11.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
@@ -1008,8 +1008,8 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
1008
1008
  submitByKey: (params: ArkySubmitFormByKeyParams, options?: RequestOptions) => Promise<StorefrontFormSubmission>;
1009
1009
  };
1010
1010
  taxonomy: {
1011
- get(params: Omit<GetTaxonomyParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Taxonomy>>;
1012
- 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>>>;
1013
1013
  };
1014
1014
  };
1015
1015
  eshop: {
@@ -1188,11 +1188,11 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
1188
1188
  list: (params?: StorefrontParams<GetProvidersParams>, options?: RequestOptions) => Promise<StorefrontPage<Provider>>;
1189
1189
  };
1190
1190
  order: {
1191
- get(params: Omit<GetOrderParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Order>>;
1192
- find(params: Omit<GetOrdersParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Order>>>;
1193
- downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessDownloadResponse>>;
1194
- findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<DigitalAccessGrant>>>;
1195
- 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>>;
1196
1196
  };
1197
1197
  cart: {
1198
1198
  cart: nanostores.PreinitializedWritableAtom<{
@@ -2794,17 +2794,17 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
2794
2794
  getMe: () => Promise<StorefrontContact>;
2795
2795
  };
2796
2796
  contactList: {
2797
- get(params: Omit<GetContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontContactList>;
2798
- 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>>;
2799
2799
  plans: {
2800
- 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>>;
2801
2801
  };
2802
2802
  memberships: {
2803
- 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>>>;
2804
2804
  };
2805
- subscribe(params: Omit<SubscribeContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListSubscribeResponse>>;
2806
- checkAccess(params: Omit<ContactListAccessParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListAccessResponse>>;
2807
- 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>>;
2808
2808
  };
2809
2809
  };
2810
2810
  action: {
@@ -2907,7 +2907,7 @@ type ArkyStore = ReturnType<typeof initialize>;
2907
2907
  type ArkyCartStore = ArkyStore["eshop"]["cart"];
2908
2908
  type ArkyServiceStore = ArkyStore["eshop"]["service"];
2909
2909
 
2910
- declare const SDK_VERSION = "0.11.0";
2910
+ declare const SDK_VERSION = "0.11.1";
2911
2911
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
2912
2912
 
2913
2913
  interface ApiConfig {
@@ -3621,24 +3621,24 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3621
3621
  } & {
3622
3622
  id: string;
3623
3623
  key?: never;
3624
- }, "market" | "store_id"> | Omit<{
3624
+ }, "store_id" | "market"> | Omit<{
3625
3625
  store_id?: string;
3626
3626
  } & {
3627
3627
  id?: never;
3628
3628
  key: string;
3629
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Collection>>;
3629
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Collection>>;
3630
3630
  };
3631
3631
  entry: {
3632
- get(params: Omit<GetEntryParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<CollectionEntry>>;
3633
- 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>>>;
3634
3634
  };
3635
3635
  form: {
3636
- get(params: Omit<GetFormParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Form>>;
3637
- 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>>;
3638
3638
  };
3639
3639
  taxonomy: {
3640
- get(params: Omit<GetTaxonomyParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Taxonomy>>;
3641
- 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>>>;
3642
3642
  };
3643
3643
  };
3644
3644
  eshop: {
@@ -3648,19 +3648,19 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3648
3648
  } & {
3649
3649
  id: string;
3650
3650
  slug?: never;
3651
- }, "market" | "store_id"> | Omit<{
3651
+ }, "store_id" | "market"> | Omit<{
3652
3652
  store_id?: string;
3653
3653
  } & {
3654
3654
  id?: never;
3655
3655
  slug: string;
3656
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Product>>;
3657
- 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>>>;
3658
3658
  };
3659
3659
  cart: {
3660
3660
  current(options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3661
- get(params: Omit<GetCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3662
- update(params: Omit<UpdateCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3663
- 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>>;
3664
3664
  removeItem(params: Omit<{
3665
3665
  id: string;
3666
3666
  store_id?: string;
@@ -3668,24 +3668,24 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3668
3668
  item_id: string;
3669
3669
  product_id?: never;
3670
3670
  variant_id?: never;
3671
- }, "market" | "store_id"> | Omit<{
3671
+ }, "store_id" | "market"> | Omit<{
3672
3672
  id: string;
3673
3673
  store_id?: string;
3674
3674
  } & {
3675
3675
  item_id?: never;
3676
3676
  product_id: string;
3677
3677
  variant_id: string;
3678
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3679
- clear(params: Omit<ClearCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3680
- quote(params: Omit<QuoteCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<OrderQuote>>;
3681
- 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>>;
3682
3682
  };
3683
3683
  order: {
3684
- get(params: Omit<GetOrderParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Order>>;
3685
- find(params: Omit<GetOrdersParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Order>>>;
3686
- downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessDownloadResponse>>;
3687
- findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<DigitalAccessGrant>>>;
3688
- 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>>;
3689
3689
  };
3690
3690
  service: {
3691
3691
  get(params: Omit<{
@@ -3693,25 +3693,25 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3693
3693
  } & {
3694
3694
  id: string;
3695
3695
  slug?: never;
3696
- }, "market" | "store_id"> | Omit<{
3696
+ }, "store_id" | "market"> | Omit<{
3697
3697
  store_id?: string;
3698
3698
  } & {
3699
3699
  id?: never;
3700
3700
  slug: string;
3701
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Service>>;
3702
- 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>>>;
3703
3703
  findProviders(params: Omit<{
3704
3704
  store_id?: string;
3705
3705
  } & {
3706
3706
  service_id: string;
3707
3707
  provider_id?: string;
3708
- }, "market" | "store_id"> | Omit<{
3708
+ }, "store_id" | "market"> | Omit<{
3709
3709
  store_id?: string;
3710
3710
  } & {
3711
3711
  service_id?: string;
3712
3712
  provider_id: string;
3713
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ServiceProvider[]>>;
3714
- 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>;
3715
3715
  };
3716
3716
  provider: {
3717
3717
  get(params: Omit<{
@@ -3719,13 +3719,13 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3719
3719
  } & {
3720
3720
  id: string;
3721
3721
  slug?: never;
3722
- }, "market" | "store_id"> | Omit<{
3722
+ }, "store_id" | "market"> | Omit<{
3723
3723
  store_id?: string;
3724
3724
  } & {
3725
3725
  id?: never;
3726
3726
  slug: string;
3727
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Provider>>;
3728
- 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>>>;
3729
3729
  };
3730
3730
  };
3731
3731
  crm: {
@@ -3744,17 +3744,17 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3744
3744
  getMe: () => Promise<StorefrontContact>;
3745
3745
  };
3746
3746
  contactList: {
3747
- get(params: Omit<GetContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontContactList>;
3748
- 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>>;
3749
3749
  plans: {
3750
- 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>>;
3751
3751
  };
3752
3752
  memberships: {
3753
- 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>>>;
3754
3754
  };
3755
- subscribe(params: Omit<SubscribeContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListSubscribeResponse>>;
3756
- checkAccess(params: Omit<ContactListAccessParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListAccessResponse>>;
3757
- 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>>;
3758
3758
  };
3759
3759
  };
3760
3760
  action: {
package/dist/index.d.ts CHANGED
@@ -1008,8 +1008,8 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
1008
1008
  submitByKey: (params: ArkySubmitFormByKeyParams, options?: RequestOptions) => Promise<StorefrontFormSubmission>;
1009
1009
  };
1010
1010
  taxonomy: {
1011
- get(params: Omit<GetTaxonomyParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Taxonomy>>;
1012
- 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>>>;
1013
1013
  };
1014
1014
  };
1015
1015
  eshop: {
@@ -1188,11 +1188,11 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
1188
1188
  list: (params?: StorefrontParams<GetProvidersParams>, options?: RequestOptions) => Promise<StorefrontPage<Provider>>;
1189
1189
  };
1190
1190
  order: {
1191
- get(params: Omit<GetOrderParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Order>>;
1192
- find(params: Omit<GetOrdersParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Order>>>;
1193
- downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessDownloadResponse>>;
1194
- findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<DigitalAccessGrant>>>;
1195
- 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>>;
1196
1196
  };
1197
1197
  cart: {
1198
1198
  cart: nanostores.PreinitializedWritableAtom<{
@@ -2794,17 +2794,17 @@ declare function initializeStoreCore(publishableKey: string, config: ArkyStoreCo
2794
2794
  getMe: () => Promise<StorefrontContact>;
2795
2795
  };
2796
2796
  contactList: {
2797
- get(params: Omit<GetContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontContactList>;
2798
- 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>>;
2799
2799
  plans: {
2800
- 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>>;
2801
2801
  };
2802
2802
  memberships: {
2803
- 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>>>;
2804
2804
  };
2805
- subscribe(params: Omit<SubscribeContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListSubscribeResponse>>;
2806
- checkAccess(params: Omit<ContactListAccessParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListAccessResponse>>;
2807
- 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>>;
2808
2808
  };
2809
2809
  };
2810
2810
  action: {
@@ -2907,7 +2907,7 @@ type ArkyStore = ReturnType<typeof initialize>;
2907
2907
  type ArkyCartStore = ArkyStore["eshop"]["cart"];
2908
2908
  type ArkyServiceStore = ArkyStore["eshop"]["service"];
2909
2909
 
2910
- declare const SDK_VERSION = "0.11.0";
2910
+ declare const SDK_VERSION = "0.11.1";
2911
2911
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
2912
2912
 
2913
2913
  interface ApiConfig {
@@ -3621,24 +3621,24 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3621
3621
  } & {
3622
3622
  id: string;
3623
3623
  key?: never;
3624
- }, "market" | "store_id"> | Omit<{
3624
+ }, "store_id" | "market"> | Omit<{
3625
3625
  store_id?: string;
3626
3626
  } & {
3627
3627
  id?: never;
3628
3628
  key: string;
3629
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Collection>>;
3629
+ }, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Collection>>;
3630
3630
  };
3631
3631
  entry: {
3632
- get(params: Omit<GetEntryParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<CollectionEntry>>;
3633
- 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>>>;
3634
3634
  };
3635
3635
  form: {
3636
- get(params: Omit<GetFormParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Form>>;
3637
- 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>>;
3638
3638
  };
3639
3639
  taxonomy: {
3640
- get(params: Omit<GetTaxonomyParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Taxonomy>>;
3641
- 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>>>;
3642
3642
  };
3643
3643
  };
3644
3644
  eshop: {
@@ -3648,19 +3648,19 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3648
3648
  } & {
3649
3649
  id: string;
3650
3650
  slug?: never;
3651
- }, "market" | "store_id"> | Omit<{
3651
+ }, "store_id" | "market"> | Omit<{
3652
3652
  store_id?: string;
3653
3653
  } & {
3654
3654
  id?: never;
3655
3655
  slug: string;
3656
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Product>>;
3657
- 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>>>;
3658
3658
  };
3659
3659
  cart: {
3660
3660
  current(options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3661
- get(params: Omit<GetCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3662
- update(params: Omit<UpdateCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3663
- 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>>;
3664
3664
  removeItem(params: Omit<{
3665
3665
  id: string;
3666
3666
  store_id?: string;
@@ -3668,24 +3668,24 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3668
3668
  item_id: string;
3669
3669
  product_id?: never;
3670
3670
  variant_id?: never;
3671
- }, "market" | "store_id"> | Omit<{
3671
+ }, "store_id" | "market"> | Omit<{
3672
3672
  id: string;
3673
3673
  store_id?: string;
3674
3674
  } & {
3675
3675
  item_id?: never;
3676
3676
  product_id: string;
3677
3677
  variant_id: string;
3678
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3679
- clear(params: Omit<ClearCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Cart>>;
3680
- quote(params: Omit<QuoteCartParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<OrderQuote>>;
3681
- 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>>;
3682
3682
  };
3683
3683
  order: {
3684
- get(params: Omit<GetOrderParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Order>>;
3685
- find(params: Omit<GetOrdersParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<Order>>>;
3686
- downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<DigitalAccessDownloadResponse>>;
3687
- findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<DigitalAccessGrant>>>;
3688
- 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>>;
3689
3689
  };
3690
3690
  service: {
3691
3691
  get(params: Omit<{
@@ -3693,25 +3693,25 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3693
3693
  } & {
3694
3694
  id: string;
3695
3695
  slug?: never;
3696
- }, "market" | "store_id"> | Omit<{
3696
+ }, "store_id" | "market"> | Omit<{
3697
3697
  store_id?: string;
3698
3698
  } & {
3699
3699
  id?: never;
3700
3700
  slug: string;
3701
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Service>>;
3702
- 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>>>;
3703
3703
  findProviders(params: Omit<{
3704
3704
  store_id?: string;
3705
3705
  } & {
3706
3706
  service_id: string;
3707
3707
  provider_id?: string;
3708
- }, "market" | "store_id"> | Omit<{
3708
+ }, "store_id" | "market"> | Omit<{
3709
3709
  store_id?: string;
3710
3710
  } & {
3711
3711
  service_id?: string;
3712
3712
  provider_id: string;
3713
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ServiceProvider[]>>;
3714
- 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>;
3715
3715
  };
3716
3716
  provider: {
3717
3717
  get(params: Omit<{
@@ -3719,13 +3719,13 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3719
3719
  } & {
3720
3720
  id: string;
3721
3721
  slug?: never;
3722
- }, "market" | "store_id"> | Omit<{
3722
+ }, "store_id" | "market"> | Omit<{
3723
3723
  store_id?: string;
3724
3724
  } & {
3725
3725
  id?: never;
3726
3726
  slug: string;
3727
- }, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<Provider>>;
3728
- 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>>>;
3729
3729
  };
3730
3730
  };
3731
3731
  crm: {
@@ -3744,17 +3744,17 @@ declare function createStorefrontClientCore(publishableKeyInput: string, options
3744
3744
  getMe: () => Promise<StorefrontContact>;
3745
3745
  };
3746
3746
  contactList: {
3747
- get(params: Omit<GetContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontContactList>;
3748
- 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>>;
3749
3749
  plans: {
3750
- 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>>;
3751
3751
  };
3752
3752
  memberships: {
3753
- 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>>>;
3754
3754
  };
3755
- subscribe(params: Omit<SubscribeContactListParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListSubscribeResponse>>;
3756
- checkAccess(params: Omit<ContactListAccessParams, "market" | "store_id">, options?: RequestOptions): Promise<StorefrontDto<ContactListAccessResponse>>;
3757
- 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>>;
3758
3758
  };
3759
3759
  };
3760
3760
  action: {
package/dist/index.js CHANGED
@@ -63,16 +63,14 @@ var createActionApi = (apiConfig, lifecycle) => ({
63
63
  var createStorefrontApi = (apiConfig, updateContactSession, lifecycle) => {
64
64
  const base = "/v1/storefront";
65
65
  function persistIdentification(result) {
66
- const sessionToken = result.token?.token;
66
+ const sessionToken = result.token?.token ?? apiConfig.authStorage.getTokens()?.access_token;
67
67
  if (sessionToken) {
68
68
  updateContactSession(() => ({
69
69
  sessionToken,
70
70
  contact: result.contact
71
71
  }));
72
72
  } else {
73
- updateContactSession(
74
- (current) => current ? { ...current, contact: result.contact } : null
75
- );
73
+ updateContactSession(() => null);
76
74
  }
77
75
  return result;
78
76
  }
@@ -5828,7 +5826,7 @@ function initialize(publishableKey, options = {}) {
5828
5826
  }
5829
5827
 
5830
5828
  // src/index.ts
5831
- var SDK_VERSION = "0.11.0";
5829
+ var SDK_VERSION = "0.11.1";
5832
5830
  var SUPPORTED_FRAMEWORKS = [
5833
5831
  "astro",
5834
5832
  "react",