@cronvello/shop-sdk 0.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.
@@ -0,0 +1,12 @@
1
+ import { S as ShopClientOptions, H as HeaderProvider, a as ShopClient } from './error-C-cJ6OgX.cjs';
2
+ export { B as BaseUrlProvider, M as MaybePromise, b as SHOP_API_URL, c as ShopApiError, d as ShopAuthType, e as ShopConfigurationError, f as ShopRequestContext, g as ShopRequestOptions, h as ShopRoute, i as ShopRouteAuth, j as ShopRouteBody, k as ShopRouteInput, l as ShopRouteKey, m as ShopRouteMethod, n as ShopRouteParams, o as ShopRouteQuery, p as ShopRouteResponse, q as ShopRouteResponseData } from './error-C-cJ6OgX.cjs';
3
+ import './index-CIpUb0vL.cjs';
4
+
5
+ type ShopBrowserClientOptions = Omit<ShopClientOptions, "headers"> & {
6
+ headers?: HeadersInit | HeaderProvider;
7
+ /** Permit authenticated routes when your app provides its own short-lived user headers. */
8
+ allowAuthenticatedRoutes?: boolean;
9
+ };
10
+ declare function createShopBrowserClient(options?: ShopBrowserClientOptions): ShopClient;
11
+
12
+ export { HeaderProvider, type ShopBrowserClientOptions, ShopClient, ShopClientOptions, createShopBrowserClient };
@@ -0,0 +1,12 @@
1
+ import { S as ShopClientOptions, H as HeaderProvider, a as ShopClient } from './error-BFzxyQkW.js';
2
+ export { B as BaseUrlProvider, M as MaybePromise, b as SHOP_API_URL, c as ShopApiError, d as ShopAuthType, e as ShopConfigurationError, f as ShopRequestContext, g as ShopRequestOptions, h as ShopRoute, i as ShopRouteAuth, j as ShopRouteBody, k as ShopRouteInput, l as ShopRouteKey, m as ShopRouteMethod, n as ShopRouteParams, o as ShopRouteQuery, p as ShopRouteResponse, q as ShopRouteResponseData } from './error-BFzxyQkW.js';
3
+ import './index-CIpUb0vL.js';
4
+
5
+ type ShopBrowserClientOptions = Omit<ShopClientOptions, "headers"> & {
6
+ headers?: HeadersInit | HeaderProvider;
7
+ /** Permit authenticated routes when your app provides its own short-lived user headers. */
8
+ allowAuthenticatedRoutes?: boolean;
9
+ };
10
+ declare function createShopBrowserClient(options?: ShopBrowserClientOptions): ShopClient;
11
+
12
+ export { HeaderProvider, type ShopBrowserClientOptions, ShopClient, ShopClientOptions, createShopBrowserClient };