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/admin.cjs.map +1 -1
- package/dist/admin.js.map +1 -1
- package/dist/index.cjs +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -55
- package/dist/index.d.ts +55 -55
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/storefront.cjs +2 -4
- package/dist/storefront.cjs.map +1 -1
- package/dist/storefront.js +2 -4
- package/dist/storefront.js.map +1 -1
- package/package.json +1 -1
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, "
|
|
1012
|
-
getChildren(params: Omit<GetTaxonomyChildrenParams, "
|
|
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, "
|
|
1192
|
-
find(params: Omit<GetOrdersParams, "
|
|
1193
|
-
downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "
|
|
1194
|
-
findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "
|
|
1195
|
-
getDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "
|
|
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, "
|
|
2798
|
-
find(params?: Omit<FindStorefrontContactListsParams, "
|
|
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, "
|
|
2800
|
+
find(params: Omit<FindStorefrontContactListPlansParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
|
|
2801
2801
|
};
|
|
2802
2802
|
memberships: {
|
|
2803
|
-
find(params?: Omit<FindStorefrontContactListMembershipsParams, "
|
|
2803
|
+
find(params?: Omit<FindStorefrontContactListMembershipsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
|
|
2804
2804
|
};
|
|
2805
|
-
subscribe(params: Omit<SubscribeContactListParams, "
|
|
2806
|
-
checkAccess(params: Omit<ContactListAccessParams, "
|
|
2807
|
-
checkContentAccess(params: Omit<ContactListContentAccessParams, "
|
|
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.
|
|
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
|
-
}, "
|
|
3624
|
+
}, "store_id" | "market"> | Omit<{
|
|
3625
3625
|
store_id?: string;
|
|
3626
3626
|
} & {
|
|
3627
3627
|
id?: never;
|
|
3628
3628
|
key: string;
|
|
3629
|
-
}, "
|
|
3629
|
+
}, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Collection>>;
|
|
3630
3630
|
};
|
|
3631
3631
|
entry: {
|
|
3632
|
-
get(params: Omit<GetEntryParams, "
|
|
3633
|
-
find(params: Omit<GetEntriesParams, "
|
|
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, "
|
|
3637
|
-
submit(params: Omit<SubmitFormParams, "
|
|
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, "
|
|
3641
|
-
getChildren(params: Omit<GetTaxonomyChildrenParams, "
|
|
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
|
-
}, "
|
|
3651
|
+
}, "store_id" | "market"> | Omit<{
|
|
3652
3652
|
store_id?: string;
|
|
3653
3653
|
} & {
|
|
3654
3654
|
id?: never;
|
|
3655
3655
|
slug: string;
|
|
3656
|
-
}, "
|
|
3657
|
-
find(params: Omit<GetProductsParams, "
|
|
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, "
|
|
3662
|
-
update(params: Omit<UpdateCartParams, "
|
|
3663
|
-
addItem(params: Omit<AddCartItemParams, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
3679
|
-
clear(params: Omit<ClearCartParams, "
|
|
3680
|
-
quote(params: Omit<QuoteCartParams, "
|
|
3681
|
-
checkout(params: Omit<CheckoutCartParams, "
|
|
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, "
|
|
3685
|
-
find(params: Omit<GetOrdersParams, "
|
|
3686
|
-
downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "
|
|
3687
|
-
findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "
|
|
3688
|
-
getDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "
|
|
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
|
-
}, "
|
|
3696
|
+
}, "store_id" | "market"> | Omit<{
|
|
3697
3697
|
store_id?: string;
|
|
3698
3698
|
} & {
|
|
3699
3699
|
id?: never;
|
|
3700
3700
|
slug: string;
|
|
3701
|
-
}, "
|
|
3702
|
-
find(params: Omit<GetServicesParams, "
|
|
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
|
-
}, "
|
|
3708
|
+
}, "store_id" | "market"> | Omit<{
|
|
3709
3709
|
store_id?: string;
|
|
3710
3710
|
} & {
|
|
3711
3711
|
service_id?: string;
|
|
3712
3712
|
provider_id: string;
|
|
3713
|
-
}, "
|
|
3714
|
-
getAvailability(params: Omit<GetAvailabilityParams, "
|
|
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
|
-
}, "
|
|
3722
|
+
}, "store_id" | "market"> | Omit<{
|
|
3723
3723
|
store_id?: string;
|
|
3724
3724
|
} & {
|
|
3725
3725
|
id?: never;
|
|
3726
3726
|
slug: string;
|
|
3727
|
-
}, "
|
|
3728
|
-
find(params: Omit<GetProvidersParams, "
|
|
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, "
|
|
3748
|
-
find(params?: Omit<FindStorefrontContactListsParams, "
|
|
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, "
|
|
3750
|
+
find(params: Omit<FindStorefrontContactListPlansParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
|
|
3751
3751
|
};
|
|
3752
3752
|
memberships: {
|
|
3753
|
-
find(params?: Omit<FindStorefrontContactListMembershipsParams, "
|
|
3753
|
+
find(params?: Omit<FindStorefrontContactListMembershipsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
|
|
3754
3754
|
};
|
|
3755
|
-
subscribe(params: Omit<SubscribeContactListParams, "
|
|
3756
|
-
checkAccess(params: Omit<ContactListAccessParams, "
|
|
3757
|
-
checkContentAccess(params: Omit<ContactListContentAccessParams, "
|
|
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, "
|
|
1012
|
-
getChildren(params: Omit<GetTaxonomyChildrenParams, "
|
|
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, "
|
|
1192
|
-
find(params: Omit<GetOrdersParams, "
|
|
1193
|
-
downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "
|
|
1194
|
-
findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "
|
|
1195
|
-
getDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "
|
|
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, "
|
|
2798
|
-
find(params?: Omit<FindStorefrontContactListsParams, "
|
|
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, "
|
|
2800
|
+
find(params: Omit<FindStorefrontContactListPlansParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
|
|
2801
2801
|
};
|
|
2802
2802
|
memberships: {
|
|
2803
|
-
find(params?: Omit<FindStorefrontContactListMembershipsParams, "
|
|
2803
|
+
find(params?: Omit<FindStorefrontContactListMembershipsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
|
|
2804
2804
|
};
|
|
2805
|
-
subscribe(params: Omit<SubscribeContactListParams, "
|
|
2806
|
-
checkAccess(params: Omit<ContactListAccessParams, "
|
|
2807
|
-
checkContentAccess(params: Omit<ContactListContentAccessParams, "
|
|
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.
|
|
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
|
-
}, "
|
|
3624
|
+
}, "store_id" | "market"> | Omit<{
|
|
3625
3625
|
store_id?: string;
|
|
3626
3626
|
} & {
|
|
3627
3627
|
id?: never;
|
|
3628
3628
|
key: string;
|
|
3629
|
-
}, "
|
|
3629
|
+
}, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Collection>>;
|
|
3630
3630
|
};
|
|
3631
3631
|
entry: {
|
|
3632
|
-
get(params: Omit<GetEntryParams, "
|
|
3633
|
-
find(params: Omit<GetEntriesParams, "
|
|
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, "
|
|
3637
|
-
submit(params: Omit<SubmitFormParams, "
|
|
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, "
|
|
3641
|
-
getChildren(params: Omit<GetTaxonomyChildrenParams, "
|
|
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
|
-
}, "
|
|
3651
|
+
}, "store_id" | "market"> | Omit<{
|
|
3652
3652
|
store_id?: string;
|
|
3653
3653
|
} & {
|
|
3654
3654
|
id?: never;
|
|
3655
3655
|
slug: string;
|
|
3656
|
-
}, "
|
|
3657
|
-
find(params: Omit<GetProductsParams, "
|
|
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, "
|
|
3662
|
-
update(params: Omit<UpdateCartParams, "
|
|
3663
|
-
addItem(params: Omit<AddCartItemParams, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
3679
|
-
clear(params: Omit<ClearCartParams, "
|
|
3680
|
-
quote(params: Omit<QuoteCartParams, "
|
|
3681
|
-
checkout(params: Omit<CheckoutCartParams, "
|
|
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, "
|
|
3685
|
-
find(params: Omit<GetOrdersParams, "
|
|
3686
|
-
downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "
|
|
3687
|
-
findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "
|
|
3688
|
-
getDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "
|
|
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
|
-
}, "
|
|
3696
|
+
}, "store_id" | "market"> | Omit<{
|
|
3697
3697
|
store_id?: string;
|
|
3698
3698
|
} & {
|
|
3699
3699
|
id?: never;
|
|
3700
3700
|
slug: string;
|
|
3701
|
-
}, "
|
|
3702
|
-
find(params: Omit<GetServicesParams, "
|
|
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
|
-
}, "
|
|
3708
|
+
}, "store_id" | "market"> | Omit<{
|
|
3709
3709
|
store_id?: string;
|
|
3710
3710
|
} & {
|
|
3711
3711
|
service_id?: string;
|
|
3712
3712
|
provider_id: string;
|
|
3713
|
-
}, "
|
|
3714
|
-
getAvailability(params: Omit<GetAvailabilityParams, "
|
|
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
|
-
}, "
|
|
3722
|
+
}, "store_id" | "market"> | Omit<{
|
|
3723
3723
|
store_id?: string;
|
|
3724
3724
|
} & {
|
|
3725
3725
|
id?: never;
|
|
3726
3726
|
slug: string;
|
|
3727
|
-
}, "
|
|
3728
|
-
find(params: Omit<GetProvidersParams, "
|
|
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, "
|
|
3748
|
-
find(params?: Omit<FindStorefrontContactListsParams, "
|
|
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, "
|
|
3750
|
+
find(params: Omit<FindStorefrontContactListPlansParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
|
|
3751
3751
|
};
|
|
3752
3752
|
memberships: {
|
|
3753
|
-
find(params?: Omit<FindStorefrontContactListMembershipsParams, "
|
|
3753
|
+
find(params?: Omit<FindStorefrontContactListMembershipsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
|
|
3754
3754
|
};
|
|
3755
|
-
subscribe(params: Omit<SubscribeContactListParams, "
|
|
3756
|
-
checkAccess(params: Omit<ContactListAccessParams, "
|
|
3757
|
-
checkContentAccess(params: Omit<ContactListContentAccessParams, "
|
|
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.
|
|
5829
|
+
var SDK_VERSION = "0.11.1";
|
|
5832
5830
|
var SUPPORTED_FRAMEWORKS = [
|
|
5833
5831
|
"astro",
|
|
5834
5832
|
"react",
|