@tallyui/connector-shopify 3.3.0 → 3.5.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/dist/index.js +3 -1
- package/package.json +2 -2
- package/src/traits/product.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -155,7 +155,9 @@ var shopifyProductTraits = {
|
|
|
155
155
|
const names = [];
|
|
156
156
|
if (doc.product_type) names.push(doc.product_type);
|
|
157
157
|
return names;
|
|
158
|
-
}
|
|
158
|
+
},
|
|
159
|
+
// Shopify has no category id, so the product type is its own id.
|
|
160
|
+
getCategories: (doc) => doc.product_type ? [{ id: doc.product_type, name: doc.product_type }] : []
|
|
159
161
|
};
|
|
160
162
|
|
|
161
163
|
// src/sync/products.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tallyui/connector-shopify",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shopify connector for Tally UI",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "connectors/shopify"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@tallyui/core": "^3.
|
|
28
|
+
"@tallyui/core": "^3.5.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"rxdb": "17.5.0"
|
package/src/traits/product.ts
CHANGED
|
@@ -125,4 +125,8 @@ export const shopifyProductTraits: ProductTraits = {
|
|
|
125
125
|
if (doc.product_type) names.push(doc.product_type);
|
|
126
126
|
return names;
|
|
127
127
|
},
|
|
128
|
+
|
|
129
|
+
// Shopify has no category id, so the product type is its own id.
|
|
130
|
+
getCategories: (doc) =>
|
|
131
|
+
doc.product_type ? [{ id: doc.product_type, name: doc.product_type }] : [],
|
|
128
132
|
};
|