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/README.md +11 -3
- package/dist/admin.cjs.map +1 -1
- package/dist/admin.js.map +1 -1
- package/dist/index.cjs +45 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +58 -57
- package/dist/index.d.ts +58 -57
- package/dist/index.js +45 -13
- package/dist/index.js.map +1 -1
- package/dist/storefront.cjs +44 -12
- package/dist/storefront.cjs.map +1 -1
- package/dist/storefront.js +44 -12
- package/dist/storefront.js.map +1 -1
- package/package.json +1 -1
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, "
|
|
1011
|
-
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>>>;
|
|
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, "
|
|
1191
|
-
find(params: Omit<GetOrdersParams, "
|
|
1192
|
-
downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "
|
|
1193
|
-
findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "
|
|
1194
|
-
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>>;
|
|
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
|
-
|
|
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, "
|
|
2797
|
-
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>>;
|
|
2798
2799
|
plans: {
|
|
2799
|
-
find(params: Omit<FindStorefrontContactListPlansParams, "
|
|
2800
|
+
find(params: Omit<FindStorefrontContactListPlansParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
|
|
2800
2801
|
};
|
|
2801
2802
|
memberships: {
|
|
2802
|
-
find(params?: Omit<FindStorefrontContactListMembershipsParams, "
|
|
2803
|
+
find(params?: Omit<FindStorefrontContactListMembershipsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
|
|
2803
2804
|
};
|
|
2804
|
-
subscribe(params: Omit<SubscribeContactListParams, "
|
|
2805
|
-
checkAccess(params: Omit<ContactListAccessParams, "
|
|
2806
|
-
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>>;
|
|
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.
|
|
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
|
-
}, "
|
|
3624
|
+
}, "store_id" | "market"> | Omit<{
|
|
3624
3625
|
store_id?: string;
|
|
3625
3626
|
} & {
|
|
3626
3627
|
id?: never;
|
|
3627
3628
|
key: string;
|
|
3628
|
-
}, "
|
|
3629
|
+
}, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Collection>>;
|
|
3629
3630
|
};
|
|
3630
3631
|
entry: {
|
|
3631
|
-
get(params: Omit<GetEntryParams, "
|
|
3632
|
-
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>>>;
|
|
3633
3634
|
};
|
|
3634
3635
|
form: {
|
|
3635
|
-
get(params: Omit<GetFormParams, "
|
|
3636
|
-
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>>;
|
|
3637
3638
|
};
|
|
3638
3639
|
taxonomy: {
|
|
3639
|
-
get(params: Omit<GetTaxonomyParams, "
|
|
3640
|
-
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>>>;
|
|
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
|
-
}, "
|
|
3651
|
+
}, "store_id" | "market"> | Omit<{
|
|
3651
3652
|
store_id?: string;
|
|
3652
3653
|
} & {
|
|
3653
3654
|
id?: never;
|
|
3654
3655
|
slug: string;
|
|
3655
|
-
}, "
|
|
3656
|
-
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>>>;
|
|
3657
3658
|
};
|
|
3658
3659
|
cart: {
|
|
3659
3660
|
current(options?: RequestOptions): Promise<StorefrontDto<Cart>>;
|
|
3660
|
-
get(params: Omit<GetCartParams, "
|
|
3661
|
-
update(params: Omit<UpdateCartParams, "
|
|
3662
|
-
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>>;
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
3678
|
-
clear(params: Omit<ClearCartParams, "
|
|
3679
|
-
quote(params: Omit<QuoteCartParams, "
|
|
3680
|
-
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>>;
|
|
3681
3682
|
};
|
|
3682
3683
|
order: {
|
|
3683
|
-
get(params: Omit<GetOrderParams, "
|
|
3684
|
-
find(params: Omit<GetOrdersParams, "
|
|
3685
|
-
downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "
|
|
3686
|
-
findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "
|
|
3687
|
-
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>>;
|
|
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
|
-
}, "
|
|
3696
|
+
}, "store_id" | "market"> | Omit<{
|
|
3696
3697
|
store_id?: string;
|
|
3697
3698
|
} & {
|
|
3698
3699
|
id?: never;
|
|
3699
3700
|
slug: string;
|
|
3700
|
-
}, "
|
|
3701
|
-
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>>>;
|
|
3702
3703
|
findProviders(params: Omit<{
|
|
3703
3704
|
store_id?: string;
|
|
3704
3705
|
} & {
|
|
3705
3706
|
service_id: string;
|
|
3706
3707
|
provider_id?: string;
|
|
3707
|
-
}, "
|
|
3708
|
+
}, "store_id" | "market"> | Omit<{
|
|
3708
3709
|
store_id?: string;
|
|
3709
3710
|
} & {
|
|
3710
3711
|
service_id?: string;
|
|
3711
3712
|
provider_id: string;
|
|
3712
|
-
}, "
|
|
3713
|
-
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>;
|
|
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
|
-
}, "
|
|
3722
|
+
}, "store_id" | "market"> | Omit<{
|
|
3722
3723
|
store_id?: string;
|
|
3723
3724
|
} & {
|
|
3724
3725
|
id?: never;
|
|
3725
3726
|
slug: string;
|
|
3726
|
-
}, "
|
|
3727
|
-
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>>>;
|
|
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, "
|
|
3747
|
-
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>>;
|
|
3748
3749
|
plans: {
|
|
3749
|
-
find(params: Omit<FindStorefrontContactListPlansParams, "
|
|
3750
|
+
find(params: Omit<FindStorefrontContactListPlansParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
|
|
3750
3751
|
};
|
|
3751
3752
|
memberships: {
|
|
3752
|
-
find(params?: Omit<FindStorefrontContactListMembershipsParams, "
|
|
3753
|
+
find(params?: Omit<FindStorefrontContactListMembershipsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
|
|
3753
3754
|
};
|
|
3754
|
-
subscribe(params: Omit<SubscribeContactListParams, "
|
|
3755
|
-
checkAccess(params: Omit<ContactListAccessParams, "
|
|
3756
|
-
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>>;
|
|
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, "
|
|
1011
|
-
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>>>;
|
|
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, "
|
|
1191
|
-
find(params: Omit<GetOrdersParams, "
|
|
1192
|
-
downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "
|
|
1193
|
-
findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "
|
|
1194
|
-
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>>;
|
|
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
|
-
|
|
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, "
|
|
2797
|
-
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>>;
|
|
2798
2799
|
plans: {
|
|
2799
|
-
find(params: Omit<FindStorefrontContactListPlansParams, "
|
|
2800
|
+
find(params: Omit<FindStorefrontContactListPlansParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
|
|
2800
2801
|
};
|
|
2801
2802
|
memberships: {
|
|
2802
|
-
find(params?: Omit<FindStorefrontContactListMembershipsParams, "
|
|
2803
|
+
find(params?: Omit<FindStorefrontContactListMembershipsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
|
|
2803
2804
|
};
|
|
2804
|
-
subscribe(params: Omit<SubscribeContactListParams, "
|
|
2805
|
-
checkAccess(params: Omit<ContactListAccessParams, "
|
|
2806
|
-
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>>;
|
|
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.
|
|
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
|
-
}, "
|
|
3624
|
+
}, "store_id" | "market"> | Omit<{
|
|
3624
3625
|
store_id?: string;
|
|
3625
3626
|
} & {
|
|
3626
3627
|
id?: never;
|
|
3627
3628
|
key: string;
|
|
3628
|
-
}, "
|
|
3629
|
+
}, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<Collection>>;
|
|
3629
3630
|
};
|
|
3630
3631
|
entry: {
|
|
3631
|
-
get(params: Omit<GetEntryParams, "
|
|
3632
|
-
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>>>;
|
|
3633
3634
|
};
|
|
3634
3635
|
form: {
|
|
3635
|
-
get(params: Omit<GetFormParams, "
|
|
3636
|
-
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>>;
|
|
3637
3638
|
};
|
|
3638
3639
|
taxonomy: {
|
|
3639
|
-
get(params: Omit<GetTaxonomyParams, "
|
|
3640
|
-
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>>>;
|
|
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
|
-
}, "
|
|
3651
|
+
}, "store_id" | "market"> | Omit<{
|
|
3651
3652
|
store_id?: string;
|
|
3652
3653
|
} & {
|
|
3653
3654
|
id?: never;
|
|
3654
3655
|
slug: string;
|
|
3655
|
-
}, "
|
|
3656
|
-
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>>>;
|
|
3657
3658
|
};
|
|
3658
3659
|
cart: {
|
|
3659
3660
|
current(options?: RequestOptions): Promise<StorefrontDto<Cart>>;
|
|
3660
|
-
get(params: Omit<GetCartParams, "
|
|
3661
|
-
update(params: Omit<UpdateCartParams, "
|
|
3662
|
-
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>>;
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
3678
|
-
clear(params: Omit<ClearCartParams, "
|
|
3679
|
-
quote(params: Omit<QuoteCartParams, "
|
|
3680
|
-
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>>;
|
|
3681
3682
|
};
|
|
3682
3683
|
order: {
|
|
3683
|
-
get(params: Omit<GetOrderParams, "
|
|
3684
|
-
find(params: Omit<GetOrdersParams, "
|
|
3685
|
-
downloadDigitalAccess(params: Omit<GetDigitalAccessGrantParams, "
|
|
3686
|
-
findDigitalAccess(params: Omit<FindDigitalAccessGrantsParams, "
|
|
3687
|
-
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>>;
|
|
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
|
-
}, "
|
|
3696
|
+
}, "store_id" | "market"> | Omit<{
|
|
3696
3697
|
store_id?: string;
|
|
3697
3698
|
} & {
|
|
3698
3699
|
id?: never;
|
|
3699
3700
|
slug: string;
|
|
3700
|
-
}, "
|
|
3701
|
-
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>>>;
|
|
3702
3703
|
findProviders(params: Omit<{
|
|
3703
3704
|
store_id?: string;
|
|
3704
3705
|
} & {
|
|
3705
3706
|
service_id: string;
|
|
3706
3707
|
provider_id?: string;
|
|
3707
|
-
}, "
|
|
3708
|
+
}, "store_id" | "market"> | Omit<{
|
|
3708
3709
|
store_id?: string;
|
|
3709
3710
|
} & {
|
|
3710
3711
|
service_id?: string;
|
|
3711
3712
|
provider_id: string;
|
|
3712
|
-
}, "
|
|
3713
|
-
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>;
|
|
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
|
-
}, "
|
|
3722
|
+
}, "store_id" | "market"> | Omit<{
|
|
3722
3723
|
store_id?: string;
|
|
3723
3724
|
} & {
|
|
3724
3725
|
id?: never;
|
|
3725
3726
|
slug: string;
|
|
3726
|
-
}, "
|
|
3727
|
-
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>>>;
|
|
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, "
|
|
3747
|
-
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>>;
|
|
3748
3749
|
plans: {
|
|
3749
|
-
find(params: Omit<FindStorefrontContactListPlansParams, "
|
|
3750
|
+
find(params: Omit<FindStorefrontContactListPlansParams, "store_id" | "market">, options?: RequestOptions): Promise<PaginatedResponse<StorefrontContactListPlan>>;
|
|
3750
3751
|
};
|
|
3751
3752
|
memberships: {
|
|
3752
|
-
find(params?: Omit<FindStorefrontContactListMembershipsParams, "
|
|
3753
|
+
find(params?: Omit<FindStorefrontContactListMembershipsParams, "store_id" | "market">, options?: RequestOptions): Promise<StorefrontDto<PaginatedResponse<StorefrontContactListMembership>>>;
|
|
3753
3754
|
};
|
|
3754
|
-
subscribe(params: Omit<SubscribeContactListParams, "
|
|
3755
|
-
checkAccess(params: Omit<ContactListAccessParams, "
|
|
3756
|
-
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>>;
|
|
3757
3758
|
};
|
|
3758
3759
|
};
|
|
3759
3760
|
action: {
|