@picked/shopify 0.0.36-next.1 → 0.0.37-next.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../request-BuKr9m4_.cjs");async function a(t){return e.get(`apps/picked/api/products/${t}/metafields`)}exports.getProductMetadata=a;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../request-BuKr9m4_.cjs");async function a(t){return e.get(`apps/picked/api/products/${t}/metafields`)}async function c(t){return e.get(`apps/picked/api/collections/${t}/metafields`)}exports.getCollectionMetadata=c;exports.getProductMetadata=a;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
async function
|
|
3
|
-
return
|
|
1
|
+
import { g as e } from "../../request-DHywK46g.js";
|
|
2
|
+
async function c(t) {
|
|
3
|
+
return e(`apps/picked/api/products/${t}/metafields`);
|
|
4
|
+
}
|
|
5
|
+
async function i(t) {
|
|
6
|
+
return e(`apps/picked/api/collections/${t}/metafields`);
|
|
4
7
|
}
|
|
5
8
|
export {
|
|
6
|
-
|
|
9
|
+
i as getCollectionMetadata,
|
|
10
|
+
c as getProductMetadata
|
|
7
11
|
};
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Fetches product metadata from the Picked Shopify App.
|
|
3
3
|
*
|
|
4
|
-
* @param id product
|
|
4
|
+
* @param id product handle for which to fetch metadata.
|
|
5
5
|
* @returns A promise that resolves to the product metadata.
|
|
6
6
|
*/
|
|
7
|
-
export declare function getProductMetadata(
|
|
7
|
+
export declare function getProductMetadata(handle: string): Promise<Record<string, any>>;
|
|
8
|
+
/**
|
|
9
|
+
* Fetches collection metadata from the Picked Shopify App.
|
|
10
|
+
*
|
|
11
|
+
* @param id collection handle for which to fetch metadata.
|
|
12
|
+
* @returns A promise that resolves to the collection metadata.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getCollectionMetadata(handle: string): Promise<Record<string, any>>;
|
|
8
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/picked-app/index.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/picked-app/index.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAErF;AAED;;;;;GAKG;AAEH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAExF"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@picked/shopify",
|
|
3
3
|
"description": "Shopify plugin for @picked/client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.37-next.1",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@picked/client": "workspace:*",
|
|
7
7
|
"@repo/eslint-config": "workspace:*",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"main": "./dist/cjs/index.js",
|
|
69
69
|
"module": "./dist/esm/index.js",
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@picked/client": "0.0.
|
|
71
|
+
"@picked/client": "0.0.37-next.1",
|
|
72
72
|
"@shopify/storefront-api-client": "^1.0.9",
|
|
73
73
|
"effector": "^23.3.0"
|
|
74
74
|
},
|