@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.
- package/CONTRACT_SHA256 +1 -0
- package/LICENSE +21 -0
- package/README.md +128 -0
- package/dist/browser.cjs +5395 -0
- package/dist/browser.cjs.map +1 -0
- package/dist/browser.d.cts +12 -0
- package/dist/browser.d.ts +12 -0
- package/dist/browser.js +5390 -0
- package/dist/browser.js.map +1 -0
- package/dist/contract.cjs +5534 -0
- package/dist/contract.cjs.map +1 -0
- package/dist/contract.d.cts +17 -0
- package/dist/contract.d.ts +17 -0
- package/dist/contract.js +5483 -0
- package/dist/contract.js.map +1 -0
- package/dist/error-BFzxyQkW.d.ts +78 -0
- package/dist/error-C-cJ6OgX.d.cts +78 -0
- package/dist/index-CIpUb0vL.d.cts +28589 -0
- package/dist/index-CIpUb0vL.d.ts +28589 -0
- package/dist/index.cjs +5778 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +5723 -0
- package/dist/index.js.map +1 -0
- package/dist/openapi.json +38204 -0
- package/dist/server.cjs +5440 -0
- package/dist/server.cjs.map +1 -0
- package/dist/server.d.cts +20 -0
- package/dist/server.d.ts +20 -0
- package/dist/server.js +5434 -0
- package/dist/server.js.map +1 -0
- package/package.json +101 -0
|
@@ -0,0 +1,20 @@
|
|
|
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 SecretProvider = string | (() => string | undefined | Promise<string | undefined>);
|
|
6
|
+
type ShopServerClientOptions = Omit<ShopClientOptions, "headers"> & {
|
|
7
|
+
apiKey?: SecretProvider;
|
|
8
|
+
frontendToken?: SecretProvider;
|
|
9
|
+
cronSecret?: SecretProvider;
|
|
10
|
+
headers?: HeadersInit | HeaderProvider;
|
|
11
|
+
};
|
|
12
|
+
declare function createShopServerClient(options?: ShopServerClientOptions): ShopClient;
|
|
13
|
+
declare function createShopServerClientFromEnv(options?: Omit<ShopServerClientOptions, "baseUrl" | "apiKey" | "cronSecret"> & {
|
|
14
|
+
env?: Record<string, string | undefined>;
|
|
15
|
+
baseUrl?: ShopClientOptions["baseUrl"];
|
|
16
|
+
apiKey?: SecretProvider;
|
|
17
|
+
cronSecret?: SecretProvider;
|
|
18
|
+
}): ShopClient;
|
|
19
|
+
|
|
20
|
+
export { HeaderProvider, ShopClient, ShopClientOptions, type ShopServerClientOptions, createShopServerClient, createShopServerClientFromEnv };
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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 SecretProvider = string | (() => string | undefined | Promise<string | undefined>);
|
|
6
|
+
type ShopServerClientOptions = Omit<ShopClientOptions, "headers"> & {
|
|
7
|
+
apiKey?: SecretProvider;
|
|
8
|
+
frontendToken?: SecretProvider;
|
|
9
|
+
cronSecret?: SecretProvider;
|
|
10
|
+
headers?: HeadersInit | HeaderProvider;
|
|
11
|
+
};
|
|
12
|
+
declare function createShopServerClient(options?: ShopServerClientOptions): ShopClient;
|
|
13
|
+
declare function createShopServerClientFromEnv(options?: Omit<ShopServerClientOptions, "baseUrl" | "apiKey" | "cronSecret"> & {
|
|
14
|
+
env?: Record<string, string | undefined>;
|
|
15
|
+
baseUrl?: ShopClientOptions["baseUrl"];
|
|
16
|
+
apiKey?: SecretProvider;
|
|
17
|
+
cronSecret?: SecretProvider;
|
|
18
|
+
}): ShopClient;
|
|
19
|
+
|
|
20
|
+
export { HeaderProvider, ShopClient, ShopClientOptions, type ShopServerClientOptions, createShopServerClient, createShopServerClientFromEnv };
|