@picked/shopify 0.0.1-dev.1763596411740 → 0.0.1-dev.1763966324978
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/dist/cjs/index.js +1 -1
- package/dist/esm/index.js +10 -5
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +7 -31
- package/dist/cjs/api/ajax/index.js +0 -1
- package/dist/cjs/api/json/index.js +0 -1
- package/dist/cjs/storefront/index.js +0 -1
- package/dist/cjs/utils/index.js +0 -1
- package/dist/esm/api/ajax/index.js +0 -45
- package/dist/esm/api/json/index.js +0 -13
- package/dist/esm/storefront/index.js +0 -23
- package/dist/esm/utils/index.js +0 -5
- package/dist/request-BDvw_lN_.cjs +0 -1
- package/dist/request-CH-MjU8N.js +0 -27
- package/dist/types/api/ajax/ajax.d.ts +0 -22
- package/dist/types/api/ajax/ajax.d.ts.map +0 -1
- package/dist/types/api/ajax/index.d.ts +0 -2
- package/dist/types/api/ajax/index.d.ts.map +0 -1
- package/dist/types/api/json/index.d.ts +0 -2
- package/dist/types/api/json/index.d.ts.map +0 -1
- package/dist/types/api/json/json.d.ts +0 -8
- package/dist/types/api/json/json.d.ts.map +0 -1
- package/dist/types/storefront/index.d.ts +0 -2
- package/dist/types/storefront/index.d.ts.map +0 -1
- package/dist/types/storefront/storefront.d.ts +0 -8
- package/dist/types/storefront/storefront.d.ts.map +0 -1
- package/dist/types/types.d.ts +0 -317
- package/dist/types/types.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -2
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/request.d.ts +0 -3
- package/dist/types/utils/request.d.ts.map +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@picked/client/plugins/shopify"),n=require("@shopify/storefront-api-client");function i(r){const o=t.getShopify();if(!o)throw new Error("Shopify window object not found. This plugin must be used on a Shopify storefront page");const e=t.getPickedConfigStorefrontApiToken();if(!e)throw new Error("Shopify Storefront API token not found. Ensure the Picked Script is enabled on your Shopify storefront");return n.createStorefrontApiClient({storeDomain:o.shop,apiVersion:r.apiVersion,publicAccessToken:e})}exports.createStorefrontApiClient=i;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { getShopify as r, getPickedConfigStorefrontApiToken as n } from "@picked/client/plugins/shopify";
|
|
2
2
|
import { createStorefrontApiClient as i } from "@shopify/storefront-api-client";
|
|
3
|
-
function s(
|
|
4
|
-
const
|
|
3
|
+
function s(t) {
|
|
4
|
+
const o = r();
|
|
5
5
|
if (!o)
|
|
6
|
+
throw new Error(
|
|
7
|
+
"Shopify window object not found. This plugin must be used on a Shopify storefront page"
|
|
8
|
+
);
|
|
9
|
+
const e = n();
|
|
10
|
+
if (!e)
|
|
6
11
|
throw new Error(
|
|
7
12
|
"Shopify Storefront API token not found. Ensure the Picked Script is enabled on your Shopify storefront"
|
|
8
13
|
);
|
|
9
14
|
return i({
|
|
10
|
-
storeDomain:
|
|
11
|
-
apiVersion:
|
|
12
|
-
publicAccessToken:
|
|
15
|
+
storeDomain: o.shop,
|
|
16
|
+
apiVersion: t.apiVersion,
|
|
17
|
+
publicAccessToken: e
|
|
13
18
|
});
|
|
14
19
|
}
|
|
15
20
|
export {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { createStorefrontApiClient as _createStorefrontApiClient } from '@shopify/storefront-api-client';
|
|
2
2
|
export declare function createStorefrontApiClient(options: Pick<Parameters<typeof _createStorefrontApiClient>[0], 'apiVersion'>): import('@shopify/storefront-api-client').StorefrontApiClient;
|
|
3
|
-
export type * from './types';
|
|
4
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,IAAI,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,IAAI,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;AAExG,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,gEAsB9E"}
|
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.1-dev.
|
|
4
|
+
"version": "0.0.1-dev.1763966324978",
|
|
5
5
|
"dependencies": {},
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@picked/client": "workspace:*",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@shopify/storefront-api-client": "^1.0.9",
|
|
12
12
|
"@types/jsdom": "^21.1.7",
|
|
13
13
|
"@types/node": "^22",
|
|
14
|
-
"@vitest/coverage-v8": "^3.2.
|
|
14
|
+
"@vitest/coverage-v8": "^3.2.3",
|
|
15
15
|
"effector": "^23.3.0",
|
|
16
16
|
"tsup": "^8.5.0",
|
|
17
17
|
"tsx": "^4.20.3",
|
|
@@ -25,30 +25,6 @@
|
|
|
25
25
|
"import": "./dist/esm/index.js",
|
|
26
26
|
"require": "./dist/cjs/index.js",
|
|
27
27
|
"default": "./dist/esm/index.js"
|
|
28
|
-
},
|
|
29
|
-
"./storefront": {
|
|
30
|
-
"types": "./dist/types/storefront/index.d.ts",
|
|
31
|
-
"import": "./dist/esm/storefront/index.js",
|
|
32
|
-
"require": "./dist/cjs/storefront/index.js",
|
|
33
|
-
"default": "./dist/esm/storefront/index.js"
|
|
34
|
-
},
|
|
35
|
-
"./utils": {
|
|
36
|
-
"types": "./dist/types/utils/index.d.ts",
|
|
37
|
-
"import": "./dist/esm/utils/index.js",
|
|
38
|
-
"require": "./dist/cjs/utils/index.js",
|
|
39
|
-
"default": "./dist/esm/utils/index.js"
|
|
40
|
-
},
|
|
41
|
-
"./api/ajax": {
|
|
42
|
-
"types": "./dist/types/api/ajax/index.d.ts",
|
|
43
|
-
"import": "./dist/esm/api/ajax/index.js",
|
|
44
|
-
"require": "./dist/cjs/api/ajax/index.js",
|
|
45
|
-
"default": "./dist/esm/api/ajax/index.js"
|
|
46
|
-
},
|
|
47
|
-
"./api/json": {
|
|
48
|
-
"types": "./dist/types/api/json/index.d.ts",
|
|
49
|
-
"import": "./dist/esm/api/json/index.js",
|
|
50
|
-
"require": "./dist/cjs/api/json/index.js",
|
|
51
|
-
"default": "./dist/esm/api/json/index.js"
|
|
52
28
|
}
|
|
53
29
|
},
|
|
54
30
|
"files": [
|
|
@@ -57,22 +33,22 @@
|
|
|
57
33
|
"main": "./dist/cjs/index.js",
|
|
58
34
|
"module": "./dist/esm/index.js",
|
|
59
35
|
"peerDependencies": {
|
|
60
|
-
"@picked/client": "0.0.1-dev.
|
|
36
|
+
"@picked/client": "0.0.1-dev.1763966324978",
|
|
61
37
|
"@shopify/storefront-api-client": "^1.0.9",
|
|
62
38
|
"effector": "^23.3.0"
|
|
63
39
|
},
|
|
64
40
|
"private": false,
|
|
65
41
|
"scripts": {
|
|
42
|
+
"_test": "vitest run",
|
|
43
|
+
"_test:coverage": "vitest run --coverage",
|
|
44
|
+
"_test:packaged-types": "attw --pack",
|
|
45
|
+
"_test:watch": "vitest",
|
|
66
46
|
"build": "vite build",
|
|
67
47
|
"dev": "vite build --watch",
|
|
68
48
|
"lint": "eslint .",
|
|
69
49
|
"lint-files": "eslint",
|
|
70
50
|
"lint:format": "eslint . --fix",
|
|
71
51
|
"lint:report": "eslint . -o './.reports/eslint.json' -f json || true",
|
|
72
|
-
"test": "vitest run",
|
|
73
|
-
"test:coverage": "vitest run --coverage",
|
|
74
|
-
"test:packaged-types": "attw --pack",
|
|
75
|
-
"test:watch": "vitest",
|
|
76
52
|
"type-check": "tsc -p . --noEmit"
|
|
77
53
|
},
|
|
78
54
|
"type": "module",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../request-BDvw_lN_.cjs");function c(t){return r.get(`products/${t}.js`)}function o(t,e,n){return r.get(`recommendations/products.json?product_id=${t}&limit=${e}&intent=${n}`)}function s(t){return r.get(`search/suggest.json?q=${t}`)}function u(){return r.get("cart.js")}function i(t){const e=Array.isArray(t)?{items:t}:{items:[t]};return r.post("cart/add.js",e)}function d(t){return r.post("cart/update.js",{...t})}function g(t,e,n){return r.post("cart/change.js",{line:t,quantity:e,properties:n})}function p(){return r.post("cart/clear.js",{})}function h(t){const e=new URLSearchParams;return Object.entries(t).forEach(([n,a])=>{e.append(`shipping_address[${n}]`,a)}),r.get(`cart/shipping_rates.json?${e.toString()}`)}exports.addToCart=i;exports.changeCart=g;exports.clearCart=p;exports.getCart=u;exports.getPredictiveSearch=s;exports.getProduct=c;exports.getProductRecommendations=o;exports.getShippingRates=h;exports.updateCart=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../request-BDvw_lN_.cjs");async function n(t){const{collection:o}=await e.get(`collections/${t}.json`);return{collection:o}}async function l(t,o=20){const{products:c}=await e.get(`collections/${t}/products.json?limit=${o}`);return{products:c}}exports.getCollection=n;exports.getCollectionProducts=l;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@picked/client/plugins/shopify"),n=require("@shopify/storefront-api-client");function i(o){const r=e.getShopify(),t=e.getPickedConfigStorefrontApiToken();if(!t)throw new Error("Shopify Storefront API token not found. Ensure the Picked Script is enabled on your Shopify storefront");return n.createStorefrontApiClient({storeDomain:r.shop,apiVersion:o.apiVersion,publicAccessToken:t})}const f=()=>{if(!client)throw new Error("Storefront API client not found");return client};exports.createStorefrontApiClient=i;exports.getStorefrontApiClient=f;
|
package/dist/cjs/utils/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../request-BDvw_lN_.cjs");exports.getRequest=e.get;exports.postRequest=e.post;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { g as e, p as a } from "../../../request-CH-MjU8N.js";
|
|
2
|
-
function s(t) {
|
|
3
|
-
return e(`products/${t}.js`);
|
|
4
|
-
}
|
|
5
|
-
function u(t, r, n) {
|
|
6
|
-
return e(
|
|
7
|
-
`recommendations/products.json?product_id=${t}&limit=${r}&intent=${n}`
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
|
-
function i(t) {
|
|
11
|
-
return e(`search/suggest.json?q=${t}`);
|
|
12
|
-
}
|
|
13
|
-
function d() {
|
|
14
|
-
return e("cart.js");
|
|
15
|
-
}
|
|
16
|
-
function p(t) {
|
|
17
|
-
const r = Array.isArray(t) ? { items: t } : { items: [t] };
|
|
18
|
-
return a("cart/add.js", r);
|
|
19
|
-
}
|
|
20
|
-
function g(t) {
|
|
21
|
-
return a("cart/update.js", { ...t });
|
|
22
|
-
}
|
|
23
|
-
function f(t, r, n) {
|
|
24
|
-
return a("cart/change.js", { line: t, quantity: r, properties: n });
|
|
25
|
-
}
|
|
26
|
-
function j() {
|
|
27
|
-
return a("cart/clear.js", {});
|
|
28
|
-
}
|
|
29
|
-
function h(t) {
|
|
30
|
-
const r = new URLSearchParams();
|
|
31
|
-
return Object.entries(t).forEach(([n, c]) => {
|
|
32
|
-
r.append(`shipping_address[${n}]`, c);
|
|
33
|
-
}), e(`cart/shipping_rates.json?${r.toString()}`);
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
p as addToCart,
|
|
37
|
-
f as changeCart,
|
|
38
|
-
j as clearCart,
|
|
39
|
-
d as getCart,
|
|
40
|
-
i as getPredictiveSearch,
|
|
41
|
-
s as getProduct,
|
|
42
|
-
u as getProductRecommendations,
|
|
43
|
-
h as getShippingRates,
|
|
44
|
-
g as updateCart
|
|
45
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { g as c } from "../../../request-CH-MjU8N.js";
|
|
2
|
-
async function s(o) {
|
|
3
|
-
const { collection: t } = await c(`collections/${o}.json`);
|
|
4
|
-
return { collection: t };
|
|
5
|
-
}
|
|
6
|
-
async function e(o, t = 20) {
|
|
7
|
-
const { products: n } = await c(`collections/${o}/products.json?limit=${t}`);
|
|
8
|
-
return { products: n };
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
s as getCollection,
|
|
12
|
-
e as getCollectionProducts
|
|
13
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { getShopify as r, getPickedConfigStorefrontApiToken as n } from "@picked/client/plugins/shopify";
|
|
2
|
-
import { createStorefrontApiClient as i } from "@shopify/storefront-api-client";
|
|
3
|
-
function c(t) {
|
|
4
|
-
const e = r(), o = n();
|
|
5
|
-
if (!o)
|
|
6
|
-
throw new Error(
|
|
7
|
-
"Shopify Storefront API token not found. Ensure the Picked Script is enabled on your Shopify storefront"
|
|
8
|
-
);
|
|
9
|
-
return i({
|
|
10
|
-
storeDomain: e.shop,
|
|
11
|
-
apiVersion: t.apiVersion,
|
|
12
|
-
publicAccessToken: o
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
const s = () => {
|
|
16
|
-
if (!client)
|
|
17
|
-
throw new Error("Storefront API client not found");
|
|
18
|
-
return client;
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
c as createStorefrontApiClient,
|
|
22
|
-
s as getStorefrontApiClient
|
|
23
|
-
};
|
package/dist/esm/utils/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("@picked/client/plugins/shopify");function s(){const t=r.getShopify();return new URL(`${globalThis.window.location.origin}${t.routes.root}`)}async function i(t){const n=new URL(t,s()),o=await fetch(n.toString());if(!o.ok)throw new Error(o.statusText);return o.json()}async function c(t,n){const o=new URL(t,s()),e=await fetch(o.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!e.ok)throw new Error(e.statusText);return e.json()}exports.get=i;exports.post=c;
|
package/dist/request-CH-MjU8N.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { getShopify as s } from "@picked/client/plugins/shopify";
|
|
2
|
-
function e() {
|
|
3
|
-
const t = s();
|
|
4
|
-
return new URL(`${globalThis.window.location.origin}${t.routes.root}`);
|
|
5
|
-
}
|
|
6
|
-
async function a(t) {
|
|
7
|
-
const n = new URL(t, e()), o = await fetch(n.toString());
|
|
8
|
-
if (!o.ok)
|
|
9
|
-
throw new Error(o.statusText);
|
|
10
|
-
return o.json();
|
|
11
|
-
}
|
|
12
|
-
async function c(t, n) {
|
|
13
|
-
const o = new URL(t, e()), r = await fetch(o.toString(), {
|
|
14
|
-
method: "POST",
|
|
15
|
-
headers: {
|
|
16
|
-
"Content-Type": "application/json"
|
|
17
|
-
},
|
|
18
|
-
body: JSON.stringify(n)
|
|
19
|
-
});
|
|
20
|
-
if (!r.ok)
|
|
21
|
-
throw new Error(r.statusText);
|
|
22
|
-
return r.json();
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
a as g,
|
|
26
|
-
c as p
|
|
27
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ShopifyCart, ShopifyProduct, ShopifyShippingRate, ShopifyProductRecommendations, ShopifyPredictiveSearchResult } from '../../types';
|
|
2
|
-
export declare function getProduct<T = ShopifyProduct>(handle: string): Promise<T>;
|
|
3
|
-
export declare function getProductRecommendations(productId: string, limit: number, intent: 'related' | 'complementary'): Promise<ShopifyProductRecommendations>;
|
|
4
|
-
export declare function getPredictiveSearch(query: string): Promise<ShopifyPredictiveSearchResult>;
|
|
5
|
-
export declare function getCart(): Promise<ShopifyCart>;
|
|
6
|
-
export declare function addToCart<T>(items: T[]): Promise<ShopifyCart>;
|
|
7
|
-
export declare function updateCart(updates: {
|
|
8
|
-
updates?: Record<string, number | string>;
|
|
9
|
-
discount?: string;
|
|
10
|
-
note?: string;
|
|
11
|
-
attributes?: Record<string, string>;
|
|
12
|
-
}): Promise<ShopifyCart>;
|
|
13
|
-
export declare function changeCart(line: number, quantity: number, properties?: Record<string, string>): Promise<ShopifyCart>;
|
|
14
|
-
export declare function clearCart(): Promise<ShopifyCart>;
|
|
15
|
-
export declare function getShippingRates(shippingAddress: {
|
|
16
|
-
zip: string;
|
|
17
|
-
country: string;
|
|
18
|
-
province: string;
|
|
19
|
-
}): Promise<{
|
|
20
|
-
shipping_rates: Array<ShopifyShippingRate>;
|
|
21
|
-
}>;
|
|
22
|
-
//# sourceMappingURL=ajax.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ajax.d.ts","sourceRoot":"","sources":["../../../../src/api/ajax/ajax.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACX,cAAc,EACd,mBAAmB,EACnB,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,aAAa,CAAA;AAKpB,wBAAgB,UAAU,CAAC,CAAC,GAAG,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAEzE;AAKD,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,SAAS,GAAG,eAAe,GAClC,OAAO,CAAC,6BAA6B,CAAC,CAIxC;AAKD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAEzF;AAKD,wBAAgB,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC,CAE9C;AAKD,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAG7D;AAKD,wBAAgB,UAAU,CAAC,OAAO,EAAE;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACpC,GAAG,OAAO,CAAC,WAAW,CAAC,CAEvB;AAKD,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAClC,OAAO,CAAC,WAAW,CAAC,CAEtB;AAKD,wBAAgB,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC,CAEhD;AAKD,wBAAgB,gBAAgB,CAAC,eAAe,EAAE;IAChD,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,OAAO,CAAC;IACV,cAAc,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAA;CAC3C,CAAC,CAQD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/ajax/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,yBAAyB,EACzB,mBAAmB,EACnB,OAAO,EACP,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,EACT,gBAAgB,GACjB,MAAM,QAAQ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ShopifyCollection, ShopifyCollectionProduct } from '../../types';
|
|
2
|
-
export declare function getCollection(handle: string): Promise<{
|
|
3
|
-
collection: ShopifyCollection;
|
|
4
|
-
}>;
|
|
5
|
-
export declare function getCollectionProducts(handle: string, limit?: number): Promise<{
|
|
6
|
-
products: ShopifyCollectionProduct[];
|
|
7
|
-
}>;
|
|
8
|
-
//# sourceMappingURL=json.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/api/json/json.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAE9E,wBAAsB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,UAAU,EAAE,iBAAiB,CAAA;CAAE,CAAC,CAG9F;AAED,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,MAAW,GACjB,OAAO,CAAC;IACT,QAAQ,EAAE,wBAAwB,EAAE,CAAA;CACrC,CAAC,CAGD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storefront/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { createStorefrontApiClient as _createStorefrontApiClient } from '@shopify/storefront-api-client';
|
|
2
|
-
import { StorefrontApiClient } from '../types';
|
|
3
|
-
declare global {
|
|
4
|
-
const client: StorefrontApiClient | undefined;
|
|
5
|
-
}
|
|
6
|
-
export declare function createStorefrontApiClient(options: Pick<Parameters<typeof _createStorefrontApiClient>[0], 'apiVersion'>): import('@shopify/storefront-api-client').StorefrontApiClient;
|
|
7
|
-
export declare const getStorefrontApiClient: () => StorefrontApiClient;
|
|
8
|
-
//# sourceMappingURL=storefront.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storefront.d.ts","sourceRoot":"","sources":["../../../src/storefront/storefront.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,IAAI,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;AACxG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAEnD,OAAO,CAAC,MAAM,CAAC;IACb,MAAM,MAAM,EAAE,mBAAmB,GAAG,SAAS,CAAA;CAC9C;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,gEAiB9E;AAED,eAAO,MAAM,sBAAsB,2BAMlC,CAAA"}
|
package/dist/types/types.d.ts
DELETED
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
export interface ShopifyProduct {
|
|
2
|
-
id: number;
|
|
3
|
-
title: string;
|
|
4
|
-
handle: string;
|
|
5
|
-
description: string | null;
|
|
6
|
-
published_at: string;
|
|
7
|
-
created_at: string;
|
|
8
|
-
vendor: string;
|
|
9
|
-
type: string;
|
|
10
|
-
tags: string[];
|
|
11
|
-
price: number;
|
|
12
|
-
price_min: number;
|
|
13
|
-
price_max: number;
|
|
14
|
-
available: boolean;
|
|
15
|
-
price_varies: boolean;
|
|
16
|
-
compare_at_price: number | null;
|
|
17
|
-
compare_at_price_min: number;
|
|
18
|
-
compare_at_price_max: number;
|
|
19
|
-
compare_at_price_varies: boolean;
|
|
20
|
-
variants: ShopifyProductVariant[];
|
|
21
|
-
images: string[];
|
|
22
|
-
featured_image: string | null;
|
|
23
|
-
options: ShopifyProductOption[];
|
|
24
|
-
url: string;
|
|
25
|
-
media?: ShopifyProductMedia[];
|
|
26
|
-
requires_selling_plan: boolean;
|
|
27
|
-
selling_plan_groups: ShopifySellingPlanGroup[];
|
|
28
|
-
}
|
|
29
|
-
export interface ShopifyProductMedia {
|
|
30
|
-
alt: string | null;
|
|
31
|
-
id: number;
|
|
32
|
-
position: number;
|
|
33
|
-
preview_image: {
|
|
34
|
-
aspect_ratio: number;
|
|
35
|
-
height: number;
|
|
36
|
-
width: number;
|
|
37
|
-
src: string;
|
|
38
|
-
};
|
|
39
|
-
sources?: Array<{
|
|
40
|
-
format: string;
|
|
41
|
-
height: number;
|
|
42
|
-
mime_type: string;
|
|
43
|
-
url: string;
|
|
44
|
-
width: number;
|
|
45
|
-
}>;
|
|
46
|
-
aspect_ratio: number;
|
|
47
|
-
height: number;
|
|
48
|
-
media_type: string;
|
|
49
|
-
src: string;
|
|
50
|
-
width: number;
|
|
51
|
-
}
|
|
52
|
-
export interface ShopifyProductVariant {
|
|
53
|
-
id: number;
|
|
54
|
-
title: string;
|
|
55
|
-
options: string[];
|
|
56
|
-
option1: string | null;
|
|
57
|
-
option2: string | null;
|
|
58
|
-
option3: string | null;
|
|
59
|
-
price: number;
|
|
60
|
-
weight: number;
|
|
61
|
-
compare_at_price: number | null;
|
|
62
|
-
inventory_management: string;
|
|
63
|
-
inventory_quantity: number;
|
|
64
|
-
available: boolean;
|
|
65
|
-
sku: string | null;
|
|
66
|
-
requires_shipping: boolean;
|
|
67
|
-
taxable: boolean;
|
|
68
|
-
barcode: string | null;
|
|
69
|
-
name: string;
|
|
70
|
-
public_title: string | null;
|
|
71
|
-
quantity_rule: ShopifyQuantityRule;
|
|
72
|
-
quantity_price_breaks?: ShopifyProductVariantQuantityPriceBreak[];
|
|
73
|
-
requires_selling_plan: boolean;
|
|
74
|
-
selling_plan_allocations: ShopifySellingPlanAllocation[];
|
|
75
|
-
featured_image: string | null;
|
|
76
|
-
}
|
|
77
|
-
export interface ShopifyProductVariantQuantityPriceBreak {
|
|
78
|
-
quantity: number;
|
|
79
|
-
price: number;
|
|
80
|
-
}
|
|
81
|
-
export interface ShopifySellingPlanAllocation {
|
|
82
|
-
price_adjustments: Array<{
|
|
83
|
-
position: number;
|
|
84
|
-
price: number;
|
|
85
|
-
}>;
|
|
86
|
-
price: number;
|
|
87
|
-
compare_at_price: number;
|
|
88
|
-
per_delivery_price: number;
|
|
89
|
-
selling_plan_id: number;
|
|
90
|
-
selling_plan_group_id: string;
|
|
91
|
-
}
|
|
92
|
-
export interface ShopifyProductOption {
|
|
93
|
-
name: string;
|
|
94
|
-
position: number;
|
|
95
|
-
values: string[];
|
|
96
|
-
}
|
|
97
|
-
export interface ShopifySellingPlanGroup {
|
|
98
|
-
id: string;
|
|
99
|
-
name: string;
|
|
100
|
-
options: Array<{
|
|
101
|
-
name: string;
|
|
102
|
-
position: number;
|
|
103
|
-
values: string[];
|
|
104
|
-
}>;
|
|
105
|
-
selling_plans: ShopifySellingPlan[];
|
|
106
|
-
app_id: string;
|
|
107
|
-
}
|
|
108
|
-
export interface ShopifySellingPlan {
|
|
109
|
-
id: number;
|
|
110
|
-
name: string;
|
|
111
|
-
description: string | null;
|
|
112
|
-
options: Array<{
|
|
113
|
-
name: string;
|
|
114
|
-
position: number;
|
|
115
|
-
value: string;
|
|
116
|
-
}>;
|
|
117
|
-
recurring_deliveries: boolean;
|
|
118
|
-
price_adjustments: Array<{
|
|
119
|
-
order_count: number | null;
|
|
120
|
-
position: number;
|
|
121
|
-
value_type: string;
|
|
122
|
-
value: number;
|
|
123
|
-
}>;
|
|
124
|
-
}
|
|
125
|
-
export interface ShopifyQuantityRule {
|
|
126
|
-
min: number;
|
|
127
|
-
max: number | null;
|
|
128
|
-
increment: number;
|
|
129
|
-
}
|
|
130
|
-
export interface ShopifyShippingRate {
|
|
131
|
-
name: string;
|
|
132
|
-
price: string;
|
|
133
|
-
source: string;
|
|
134
|
-
delivery_range: string[];
|
|
135
|
-
delivery_days: number;
|
|
136
|
-
delivery_date: string | null;
|
|
137
|
-
currency: string;
|
|
138
|
-
}
|
|
139
|
-
export interface ShopifyCart {
|
|
140
|
-
token: string;
|
|
141
|
-
note: string | null;
|
|
142
|
-
attributes: Record<string, string>;
|
|
143
|
-
original_total_price: number;
|
|
144
|
-
total_price: number;
|
|
145
|
-
total_discount: number;
|
|
146
|
-
total_weight: number;
|
|
147
|
-
item_count: number;
|
|
148
|
-
items: ShopifyCartItem[];
|
|
149
|
-
requires_shipping: boolean;
|
|
150
|
-
currency: string;
|
|
151
|
-
items_subtotal_price: number;
|
|
152
|
-
cart_level_discount_applications: Array<ShopifyCartLevelDiscountApplication>;
|
|
153
|
-
}
|
|
154
|
-
export interface ShopifyCartLevelDiscountApplication {
|
|
155
|
-
type: string;
|
|
156
|
-
key?: string;
|
|
157
|
-
value: string;
|
|
158
|
-
value_type: string;
|
|
159
|
-
allocation_method?: string;
|
|
160
|
-
target_selection: string;
|
|
161
|
-
target_type: string;
|
|
162
|
-
title: string;
|
|
163
|
-
total_allocated_amount: number;
|
|
164
|
-
description?: string | null;
|
|
165
|
-
}
|
|
166
|
-
export interface ShopifyCartItem {
|
|
167
|
-
id: number;
|
|
168
|
-
quantity: number;
|
|
169
|
-
properties: Record<string, string> | null;
|
|
170
|
-
variant_id: number;
|
|
171
|
-
key: string;
|
|
172
|
-
title: string;
|
|
173
|
-
price: number;
|
|
174
|
-
original_price: number;
|
|
175
|
-
discounted_price: number;
|
|
176
|
-
line_price: number;
|
|
177
|
-
original_line_price: number;
|
|
178
|
-
total_discount: number;
|
|
179
|
-
discounts: Array<{
|
|
180
|
-
amount: number;
|
|
181
|
-
title: string;
|
|
182
|
-
}>;
|
|
183
|
-
sku: string | null;
|
|
184
|
-
grams: number;
|
|
185
|
-
vendor: string;
|
|
186
|
-
taxable: boolean;
|
|
187
|
-
product_id: number;
|
|
188
|
-
product_has_only_default_variant: boolean;
|
|
189
|
-
gift_card: boolean;
|
|
190
|
-
final_price: number;
|
|
191
|
-
final_line_price: number;
|
|
192
|
-
url: string;
|
|
193
|
-
featured_image: ShopifyImage | null;
|
|
194
|
-
image: string;
|
|
195
|
-
handle: string;
|
|
196
|
-
requires_shipping: boolean;
|
|
197
|
-
product_type: string;
|
|
198
|
-
product_title: string;
|
|
199
|
-
variant_title: string;
|
|
200
|
-
variant_options: string[];
|
|
201
|
-
options_with_values: Array<{
|
|
202
|
-
name: string;
|
|
203
|
-
value: string;
|
|
204
|
-
}>;
|
|
205
|
-
selling_plan_allocation?: Record<string, string>;
|
|
206
|
-
}
|
|
207
|
-
export interface ShopifyProductRecommendations {
|
|
208
|
-
intent: 'related' | 'complementary';
|
|
209
|
-
products: ShopifyProduct[];
|
|
210
|
-
}
|
|
211
|
-
export interface ShopifyPredictiveSearchResult {
|
|
212
|
-
resources: {
|
|
213
|
-
results: {
|
|
214
|
-
products: ShopifyPredictiveSearchProduct[];
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
export interface ShopifyPredictiveSearchProduct {
|
|
219
|
-
available: boolean;
|
|
220
|
-
body: string;
|
|
221
|
-
compare_at_price_max: number;
|
|
222
|
-
compare_at_price_min: number;
|
|
223
|
-
handle: string;
|
|
224
|
-
id: number;
|
|
225
|
-
image: string;
|
|
226
|
-
price: number;
|
|
227
|
-
price_max: number;
|
|
228
|
-
price_min: number;
|
|
229
|
-
tags: string[];
|
|
230
|
-
title: string;
|
|
231
|
-
type: string;
|
|
232
|
-
url: string;
|
|
233
|
-
variants: ShopifyPredictiveSearchVariant[];
|
|
234
|
-
vendor: string;
|
|
235
|
-
featured_image?: ShopifyImage | null;
|
|
236
|
-
}
|
|
237
|
-
export interface ShopifyPredictiveSearchVariant {
|
|
238
|
-
available: boolean;
|
|
239
|
-
compare_at_price: number | null;
|
|
240
|
-
id: number;
|
|
241
|
-
image: string;
|
|
242
|
-
price: number;
|
|
243
|
-
title: string;
|
|
244
|
-
url: string;
|
|
245
|
-
featured_image?: ShopifyImage | null;
|
|
246
|
-
}
|
|
247
|
-
export interface ShopifyImage {
|
|
248
|
-
alt: string;
|
|
249
|
-
aspect_ratio: number;
|
|
250
|
-
height: number;
|
|
251
|
-
url: string;
|
|
252
|
-
width: number;
|
|
253
|
-
}
|
|
254
|
-
export interface ShopifyCollection {
|
|
255
|
-
id: number;
|
|
256
|
-
handle: string;
|
|
257
|
-
title: string;
|
|
258
|
-
updated_at: string;
|
|
259
|
-
published_at: string;
|
|
260
|
-
description: string;
|
|
261
|
-
products_count: number;
|
|
262
|
-
image: {
|
|
263
|
-
id: number;
|
|
264
|
-
created_at: string;
|
|
265
|
-
alt: string | null;
|
|
266
|
-
src: string;
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
export interface ShopifyCollectionProduct {
|
|
270
|
-
id: number;
|
|
271
|
-
title: string;
|
|
272
|
-
body_html?: string;
|
|
273
|
-
vendor: string;
|
|
274
|
-
product_type: string;
|
|
275
|
-
created_at: string;
|
|
276
|
-
handle: string;
|
|
277
|
-
updated_at: string;
|
|
278
|
-
published_at: string;
|
|
279
|
-
tags: string[];
|
|
280
|
-
variants: ShopifyCollectionProductVariant[];
|
|
281
|
-
images: ShopifyCollectionProductImage[];
|
|
282
|
-
options: ShopifyProductOption[];
|
|
283
|
-
}
|
|
284
|
-
export interface ShopifyCollectionProductVariant {
|
|
285
|
-
id: number;
|
|
286
|
-
title: string;
|
|
287
|
-
option1: string;
|
|
288
|
-
option2: string;
|
|
289
|
-
option3: string | null;
|
|
290
|
-
sku: string;
|
|
291
|
-
requires_shipping: boolean;
|
|
292
|
-
taxable: boolean;
|
|
293
|
-
featured_image: string | null;
|
|
294
|
-
available: boolean;
|
|
295
|
-
price: string;
|
|
296
|
-
grams: number;
|
|
297
|
-
compare_at_price: string | null;
|
|
298
|
-
position: number;
|
|
299
|
-
product_id: number;
|
|
300
|
-
created_at: string;
|
|
301
|
-
updated_at: string;
|
|
302
|
-
}
|
|
303
|
-
export interface ShopifyCollectionProductImage {
|
|
304
|
-
id: number;
|
|
305
|
-
position: number;
|
|
306
|
-
product_id: number;
|
|
307
|
-
created_at: string;
|
|
308
|
-
updated_at: string;
|
|
309
|
-
variant_ids: number[];
|
|
310
|
-
width: number;
|
|
311
|
-
height: number;
|
|
312
|
-
src: string;
|
|
313
|
-
}
|
|
314
|
-
export interface StorefrontApiClient {
|
|
315
|
-
request: <T>(query: string, variables?: Record<string, object>, options?: RequestInit) => Promise<T>;
|
|
316
|
-
}
|
|
317
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,OAAO,CAAA;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,uBAAuB,EAAE,OAAO,CAAA;IAChC,QAAQ,EAAE,qBAAqB,EAAE,CAAA;IACjC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,OAAO,EAAE,oBAAoB,EAAE,CAAA;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC7B,qBAAqB,EAAE,OA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ClC,OAAO,CAAC,EAAE,WAAW,KAClB,OAAO,CAAC,CAAC,CAAC,CAAA;CAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/utils/request.ts"],"names":[],"mappings":"AAOA,wBAAsB,GAAG,CAAC,QAAQ,EAAE,MAAM,gBAQzC;AAED,wBAAsB,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,gBAgBzD"}
|