@shopkit/data-layer 1.0.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 +857 -0
- package/dist/adapters/index.d.mts +22 -0
- package/dist/adapters/index.d.ts +22 -0
- package/dist/adapters/index.js +5315 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/adapters/index.mjs +5312 -0
- package/dist/adapters/index.mjs.map +1 -0
- package/dist/index.d.mts +40 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +5387 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +5376 -0
- package/dist/index.mjs.map +1 -0
- package/dist/models/index.d.mts +598 -0
- package/dist/models/index.d.ts +598 -0
- package/dist/models/index.js +67 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/index.mjs +59 -0
- package/dist/models/index.mjs.map +1 -0
- package/dist/service-NPmqCNGb.d.mts +750 -0
- package/dist/service-Q7zlmyFk.d.ts +750 -0
- package/package.json +120 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { I as IShopifyConfig, S as ShopifyCommerceClient, a as ICustomConfig, C as CustomBackendClient } from '../service-NPmqCNGb.mjs';
|
|
2
|
+
import '../models/index.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Shopify adapter for the commerce library
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
declare function createShopifyClient(config: IShopifyConfig): ShopifyCommerceClient;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Custom Backend adapter for the commerce library
|
|
12
|
+
* This adapter connects to a custom backend with multiple microservices built on top of Shopify
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Create a custom backend commerce client
|
|
17
|
+
* @param config Custom backend configuration
|
|
18
|
+
* @returns CustomBackendClient instance
|
|
19
|
+
*/
|
|
20
|
+
declare function createCustomClient(config: ICustomConfig): CustomBackendClient;
|
|
21
|
+
|
|
22
|
+
export { createCustomClient, createShopifyClient };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { I as IShopifyConfig, S as ShopifyCommerceClient, a as ICustomConfig, C as CustomBackendClient } from '../service-Q7zlmyFk.js';
|
|
2
|
+
import '../models/index.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Shopify adapter for the commerce library
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
declare function createShopifyClient(config: IShopifyConfig): ShopifyCommerceClient;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Custom Backend adapter for the commerce library
|
|
12
|
+
* This adapter connects to a custom backend with multiple microservices built on top of Shopify
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Create a custom backend commerce client
|
|
17
|
+
* @param config Custom backend configuration
|
|
18
|
+
* @returns CustomBackendClient instance
|
|
19
|
+
*/
|
|
20
|
+
declare function createCustomClient(config: ICustomConfig): CustomBackendClient;
|
|
21
|
+
|
|
22
|
+
export { createCustomClient, createShopifyClient };
|