commerce-sdk-isomorphic 4.0.1-preview-shopper-test.0 → 4.1.0
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 +57 -0
- package/lib/clientConfig.cjs.d.ts +4 -2
- package/lib/clientConfig.cjs.js +1 -1
- package/lib/clientConfig.d.ts +4 -2
- package/lib/clientConfig.js +1 -1
- package/lib/helpers.cjs.d.ts +9 -9
- package/lib/helpers.cjs.js +1 -1
- package/lib/helpers.d.ts +9 -9
- package/lib/helpers.js +1 -1
- package/lib/index.cjs.d.ts +57 -24
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +57 -24
- package/lib/index.esm.js +1 -1
- package/lib/shopperBaskets.cjs.d.ts +6 -1
- package/lib/shopperBaskets.cjs.js +1 -1
- package/lib/shopperBaskets.d.ts +6 -1
- package/lib/shopperBaskets.js +1 -1
- package/lib/shopperBasketsv2.cjs.d.ts +6 -1
- package/lib/shopperBasketsv2.cjs.js +1 -1
- package/lib/shopperBasketsv2.d.ts +6 -1
- package/lib/shopperBasketsv2.js +1 -1
- package/lib/shopperConsents.cjs.d.ts +6 -1
- package/lib/shopperConsents.cjs.js +1 -1
- package/lib/shopperConsents.d.ts +6 -1
- package/lib/shopperConsents.js +1 -1
- package/lib/shopperContext.cjs.d.ts +6 -1
- package/lib/shopperContext.cjs.js +1 -1
- package/lib/shopperContext.d.ts +6 -1
- package/lib/shopperContext.js +1 -1
- package/lib/shopperCustomers.cjs.d.ts +6 -1
- package/lib/shopperCustomers.cjs.js +1 -1
- package/lib/shopperCustomers.d.ts +6 -1
- package/lib/shopperCustomers.js +1 -1
- package/lib/shopperExperience.cjs.d.ts +6 -1
- package/lib/shopperExperience.cjs.js +1 -1
- package/lib/shopperExperience.d.ts +6 -1
- package/lib/shopperExperience.js +1 -1
- package/lib/shopperGiftCertificates.cjs.d.ts +6 -1
- package/lib/shopperGiftCertificates.cjs.js +1 -1
- package/lib/shopperGiftCertificates.d.ts +6 -1
- package/lib/shopperGiftCertificates.js +1 -1
- package/lib/shopperLogin.cjs.d.ts +6 -1
- package/lib/shopperLogin.cjs.js +1 -1
- package/lib/shopperLogin.d.ts +6 -1
- package/lib/shopperLogin.js +1 -1
- package/lib/shopperOrders.cjs.d.ts +6 -1
- package/lib/shopperOrders.cjs.js +1 -1
- package/lib/shopperOrders.d.ts +6 -1
- package/lib/shopperOrders.js +1 -1
- package/lib/shopperProducts.cjs.d.ts +6 -1
- package/lib/shopperProducts.cjs.js +1 -1
- package/lib/shopperProducts.d.ts +6 -1
- package/lib/shopperProducts.js +1 -1
- package/lib/shopperPromotions.cjs.d.ts +6 -1
- package/lib/shopperPromotions.cjs.js +1 -1
- package/lib/shopperPromotions.d.ts +6 -1
- package/lib/shopperPromotions.js +1 -1
- package/lib/shopperSearch.cjs.d.ts +6 -1
- package/lib/shopperSearch.cjs.js +1 -1
- package/lib/shopperSearch.d.ts +6 -1
- package/lib/shopperSearch.js +1 -1
- package/lib/shopperSeo.cjs.d.ts +6 -1
- package/lib/shopperSeo.cjs.js +1 -1
- package/lib/shopperSeo.d.ts +6 -1
- package/lib/shopperSeo.js +1 -1
- package/lib/shopperStores.cjs.d.ts +6 -1
- package/lib/shopperStores.cjs.js +1 -1
- package/lib/shopperStores.d.ts +6 -1
- package/lib/shopperStores.js +1 -1
- package/lib/version.cjs.d.ts +1 -1
- package/lib/version.cjs.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
package/lib/shopperBaskets.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ type BrowserRequestInit = RequestInit;
|
|
|
70
70
|
* Using the right properties in the right context is left to the user.
|
|
71
71
|
*/
|
|
72
72
|
type FetchOptions = NodeRequestInit & BrowserRequestInit;
|
|
73
|
+
type FetchFunction = (input: RequestInfo, init?: FetchOptions | undefined) => Promise<Response>;
|
|
73
74
|
/**
|
|
74
75
|
* Base options that can be passed to the `ClientConfig` class.
|
|
75
76
|
*/
|
|
@@ -81,6 +82,7 @@ interface ClientConfigInit<Params extends BaseUriParameters> {
|
|
|
81
82
|
};
|
|
82
83
|
parameters: Params;
|
|
83
84
|
fetchOptions?: FetchOptions;
|
|
85
|
+
fetch?: FetchFunction;
|
|
84
86
|
transformRequest?: (data: unknown, headers: {
|
|
85
87
|
[key: string]: string;
|
|
86
88
|
}) => Required<FetchOptions>["body"];
|
|
@@ -97,6 +99,7 @@ declare class ClientConfig<Params extends BaseUriParameters> implements ClientCo
|
|
|
97
99
|
};
|
|
98
100
|
parameters: Params;
|
|
99
101
|
fetchOptions: FetchOptions;
|
|
102
|
+
fetch?: FetchFunction;
|
|
100
103
|
transformRequest: NonNullable<ClientConfigInit<Params>["transformRequest"]>;
|
|
101
104
|
throwOnBadResponse: boolean;
|
|
102
105
|
constructor(config: ClientConfigInit<Params>);
|
|
@@ -4584,6 +4587,7 @@ declare namespace ShopperBasketsApiTypes {
|
|
|
4584
4587
|
* Using the right properties in the right context is left to the user.
|
|
4585
4588
|
*/
|
|
4586
4589
|
type FetchOptions = NodeRequestInit & BrowserRequestInit;
|
|
4590
|
+
type FetchFunction = (input: RequestInfo, init?: FetchOptions | undefined) => Promise<Response>;
|
|
4587
4591
|
/**
|
|
4588
4592
|
* Base options that can be passed to the `ClientConfig` class.
|
|
4589
4593
|
*/
|
|
@@ -4595,12 +4599,12 @@ declare namespace ShopperBasketsApiTypes {
|
|
|
4595
4599
|
};
|
|
4596
4600
|
parameters: Params;
|
|
4597
4601
|
fetchOptions?: FetchOptions;
|
|
4602
|
+
fetch?: FetchFunction;
|
|
4598
4603
|
transformRequest?: (data: unknown, headers: {
|
|
4599
4604
|
[key: string]: string;
|
|
4600
4605
|
}) => Required<FetchOptions>["body"];
|
|
4601
4606
|
throwOnBadResponse?: boolean;
|
|
4602
4607
|
}
|
|
4603
|
-
type FetchFunction = (input: RequestInfo, init?: FetchOptions | undefined) => Promise<Response>;
|
|
4604
4608
|
/**
|
|
4605
4609
|
* Configuration parameters common to Commerce SDK clients
|
|
4606
4610
|
*/
|
|
@@ -4612,6 +4616,7 @@ declare namespace ShopperBasketsApiTypes {
|
|
|
4612
4616
|
};
|
|
4613
4617
|
parameters: Params;
|
|
4614
4618
|
fetchOptions: FetchOptions;
|
|
4619
|
+
fetch?: FetchFunction;
|
|
4615
4620
|
transformRequest: NonNullable<ClientConfigInit<Params>["transformRequest"]>;
|
|
4616
4621
|
throwOnBadResponse: boolean;
|
|
4617
4622
|
constructor(config: ClientConfigInit<Params>);
|