@artisan-commerce/products 0.7.3 → 0.7.5
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 +93 -93
- package/build/main.bundle.js +2 -2
- package/build/report.json +1 -1
- package/build/src/config/constants.d.ts +23 -23
- package/build/src/errors/api.errors.d.ts +7 -7
- package/build/src/index.d.ts +16 -16
- package/build/src/lib/aritmetics.d.ts +1 -1
- package/build/src/lib/common.d.ts +16 -16
- package/build/src/lib/getCategories/getCategories.d.ts +1 -1
- package/build/src/lib/getCategories/getCategories.test.d.ts +1 -1
- package/build/src/lib/getProductDetails/getProductDetails.d.ts +7 -7
- package/build/src/lib/getProductDetails/getProductDetails.test.d.ts +1 -1
- package/build/src/lib/getProductDetails/getProductDetails.types.d.ts +7 -7
- package/build/src/lib/getProducts/getProducts.d.ts +7 -7
- package/build/src/lib/getProducts/getProducts.test.d.ts +1 -1
- package/build/src/lib/getProducts/getProducts.types.d.ts +3 -3
- package/build/src/lib/getRecommendedProducts/getRecommendedProducts.d.ts +1 -1
- package/build/src/lib/getRecommendedProducts/getRecommendedProducts.test.d.ts +1 -1
- package/build/src/lib/getRelatedProducts/getRelatedProducts.d.ts +1 -1
- package/build/src/lib/getRelatedProducts/getRelatedProducts.test.d.ts +1 -1
- package/build/src/lib/getStoreDetails/getStoreDetails.d.ts +7 -7
- package/build/src/lib/getStoreDetails/getStoreDetails.test.d.ts +1 -1
- package/build/src/lib/getStoreDetails/getStoreDetails.types.d.ts +7 -7
- package/build/src/lib/initProducts/initProducts.d.ts +10 -10
- package/build/src/lib/registerModifiersForm/registerModifiersForm.d.ts +3 -3
- package/build/src/lib/registerModifiersForm/registerModifiersForm.test.d.ts +1 -1
- package/build/src/lib/registerModifiersForm/registerModifiersForm.types.d.ts +35 -34
- package/build/src/lib/validateProduct/validateProduct.d.ts +1 -1
- package/build/src/lib/validateProduct/validateProduct.test.d.ts +1 -1
- package/build/src/lib/validateProduct/validateProduct.types.d.ts +2 -2
- package/build/src/services/fetchProductDetails/fetchProductDetails.service.d.ts +2 -2
- package/build/src/services/fetchProductDetails/fetchProductDetails.service.mock.d.ts +2 -2
- package/build/src/services/fetchProductDetails/fetchProductDetails.service.types.d.ts +1 -1
- package/build/src/services/fetchProducts/fetchPRoducts.service.mock.d.ts +2 -2
- package/build/src/services/fetchProducts/fetchProducts.service.d.ts +2 -2
- package/build/src/services/fetchProducts/fetchProducts.service.types.d.ts +1 -1
- package/build/src/services/fetchStoreDetails/fetchStoreDetails.service.d.ts +2 -2
- package/build/src/services/fetchStoreDetails/fetchStoreDetails.service.types.d.ts +1 -1
- package/build/src/tests/exports.test.d.ts +1 -1
- package/build/src/types/common.types.d.ts +20 -20
- package/build/src/types/http.types.d.ts +66 -66
- package/build/src/types/modifiers.types.d.ts +60 -57
- package/build/src/utils/assertions/assertions.utils.d.ts +8 -8
- package/build/src/utils/bugsnag.d.ts +2 -2
- package/build/src/utils/caculations/calculations.utils.d.ts +17 -17
- package/build/src/utils/caculations/calculations.utils.test.d.ts +1 -1
- package/build/src/utils/caculations/calculations.utils.types.d.ts +6 -6
- package/build/src/utils/common.utils.d.ts +3 -3
- package/build/src/utils/http/cache.utils.d.ts +4 -4
- package/build/src/utils/http/http.utils.d.ts +9 -9
- package/build/src/utils/http/purge.utils.d.ts +38 -38
- package/build/src/utils/http/request.utils.d.ts +7 -7
- package/build/src/utils/modifiers/common.utils.d.ts +15 -12
- package/build/src/utils/modifiers/form.utils.d.ts +17 -3
- package/build/src/utils/modifiers/handleChange.utils.d.ts +1 -1
- package/build/src/utils/modifiers/renderer.utils.d.ts +11 -11
- package/build/src/utils/modifiers/rendererTraversal.utils.d.ts +4 -4
- package/build/src/utils/modifiers/updateRenderer.utils.d.ts +5 -5
- package/build/src/utils/transformers/api.transformer.d.ts +7 -7
- package/build/src/utils/transformers/transformers.utils.d.ts +9 -9
- package/build/src/vendors.d.ts +1 -1
- package/package.json +5 -5
package/build/report.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"label":"main.bundle.js","isAsset":true,"statSize":142352,"parsedSize":58335,"gzipSize":14947,"groups":[{"label":"types/build","path":"./types/build","statSize":5546,"groups":[{"id":0,"label":"index.js","path":"./types/build/index.js","statSize":1432,"parsedSize":532,"gzipSize":291},{"label":"types","path":"./types/build/types","statSize":4114,"groups":[{"id":3,"label":"app.types.js","path":"./types/build/types/app.types.js","statSize":116,"parsedSize":78,"gzipSize":97},{"id":4,"label":"account.types.js","path":"./types/build/types/account.types.js","statSize":153,"parsedSize":78,"gzipSize":97},{"id":5,"label":"artisanDB.types.js","path":"./types/build/types/artisanDB.types.js","statSize":122,"parsedSize":78,"gzipSize":97},{"id":6,"label":"category.types.js","path":"./types/build/types/category.types.js","statSize":121,"parsedSize":78,"gzipSize":97},{"id":7,"label":"channel.types.js","path":"./types/build/types/channel.types.js","statSize":153,"parsedSize":78,"gzipSize":97},{"id":8,"label":"common.types.js","path":"./types/build/types/common.types.js","statSize":165,"parsedSize":78,"gzipSize":97},{"id":9,"label":"coupons.types.js","path":"./types/build/types/coupons.types.js","statSize":120,"parsedSize":78,"gzipSize":97},{"id":10,"label":"image.types.js","path":"./types/build/types/image.types.js","statSize":149,"parsedSize":78,"gzipSize":97},{"id":11,"label":"product.types.js","path":"./types/build/types/product.types.js","statSize":1526,"parsedSize":723,"gzipSize":357},{"id":12,"label":"shippingCost.types.js","path":"./types/build/types/shippingCost.types.js","statSize":163,"parsedSize":78,"gzipSize":97},{"id":13,"label":"shoppingCart.types.js","path":"./types/build/types/shoppingCart.types.js","statSize":125,"parsedSize":78,"gzipSize":97},{"id":14,"label":"store.types.js","path":"./types/build/types/store.types.js","statSize":936,"parsedSize":485,"gzipSize":270},{"id":15,"label":"vendor.types.js","path":"./types/build/types/vendor.types.js","statSize":119,"parsedSize":78,"gzipSize":97},{"id":16,"label":"http.types.js","path":"./types/build/types/http.types.js","statSize":146,"parsedSize":78,"gzipSize":97}],"parsedSize":2144,"gzipSize":460}],"parsedSize":2676,"gzipSize":659},{"label":"node_modules","path":"./node_modules","statSize":60672,"groups":[{"label":"charenc","path":"./node_modules/charenc","statSize":850,"groups":[{"id":1,"label":"charenc.js","path":"./node_modules/charenc/charenc.js","statSize":850,"parsedSize":426,"gzipSize":231}],"parsedSize":426,"gzipSize":231},{"label":"sha1","path":"./node_modules/sha1","statSize":2124,"groups":[{"id":2,"label":"sha1.js","path":"./node_modules/sha1/sha1.js","statSize":2124,"parsedSize":947,"gzipSize":625}],"parsedSize":947,"gzipSize":625},{"label":"buffer","path":"./node_modules/buffer","statSize":48590,"groups":[{"id":17,"label":"index.js","path":"./node_modules/buffer/index.js","statSize":48590,"parsedSize":19827,"gzipSize":5835}],"parsedSize":19827,"gzipSize":5835},{"label":"base64-js","path":"./node_modules/base64-js","statSize":3944,"groups":[{"id":19,"label":"index.js","path":"./node_modules/base64-js/index.js","statSize":3944,"parsedSize":1406,"gzipSize":743}],"parsedSize":1406,"gzipSize":743},{"label":"ieee754","path":"./node_modules/ieee754","statSize":2064,"groups":[{"id":20,"label":"index.js","path":"./node_modules/ieee754/index.js","statSize":2064,"parsedSize":881,"gzipSize":496}],"parsedSize":881,"gzipSize":496},{"label":"isarray","path":"./node_modules/isarray","statSize":132,"groups":[{"id":21,"label":"index.js","path":"./node_modules/isarray/index.js","statSize":132,"parsedSize":104,"gzipSize":109}],"parsedSize":104,"gzipSize":109},{"label":"crypt","path":"./node_modules/crypt","statSize":2968,"groups":[{"id":22,"label":"crypt.js","path":"./node_modules/crypt/crypt.js","statSize":2968,"parsedSize":1273,"gzipSize":646}],"parsedSize":1273,"gzipSize":646}],"parsedSize":24864,"gzipSize":7854},{"label":"buildin","path":"./buildin","statSize":472,"groups":[{"id":18,"label":"global.js","path":"./buildin/global.js","statSize":472,"parsedSize":144,"gzipSize":129}],"parsedSize":144,"gzipSize":129},{"label":"src","path":"./src","statSize":75662,"groups":[{"id":24,"label":"index.ts + 30 modules (concatenated)","path":"./src/index.ts + 30 modules (concatenated)","statSize":75662,"parsedSize":29470,"gzipSize":6431,"concatenated":true,"groups":[{"label":"src","path":"./src/index.ts + 30 modules (concatenated)/src","statSize":75652,"groups":[{"id":null,"label":"index.ts","path":"./src/index.ts + 30 modules (concatenated)/src/index.ts","statSize":958,"parsedSize":373,"gzipSize":81,"inaccurateSizes":true},{"label":"utils","path":"./src/index.ts + 30 modules (concatenated)/src/utils","statSize":45140,"groups":[{"label":"assertions","path":"./src/index.ts + 30 modules (concatenated)/src/utils/assertions","statSize":4095,"groups":[{"id":null,"label":"assertions.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/assertions/assertions.utils.ts","statSize":4095,"parsedSize":1594,"gzipSize":348,"inaccurateSizes":true}],"parsedSize":1594,"gzipSize":348,"inaccurateSizes":true},{"label":"transformers","path":"./src/index.ts + 30 modules (concatenated)/src/utils/transformers","statSize":5671,"groups":[{"id":null,"label":"transformers.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/transformers/transformers.utils.ts","statSize":4722,"parsedSize":1839,"gzipSize":401,"inaccurateSizes":true},{"id":null,"label":"api.transformer.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/transformers/api.transformer.ts","statSize":949,"parsedSize":369,"gzipSize":80,"inaccurateSizes":true}],"parsedSize":2208,"gzipSize":482,"inaccurateSizes":true},{"label":"caculations","path":"./src/index.ts + 30 modules (concatenated)/src/utils/caculations","statSize":2966,"groups":[{"id":null,"label":"calculations.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/caculations/calculations.utils.ts","statSize":2966,"parsedSize":1155,"gzipSize":252,"inaccurateSizes":true}],"parsedSize":1155,"gzipSize":252,"inaccurateSizes":true},{"id":null,"label":"common.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/common.utils.ts","statSize":396,"parsedSize":154,"gzipSize":33,"inaccurateSizes":true},{"label":"modifiers","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers","statSize":15705,"groups":[{"id":null,"label":"common.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/common.utils.ts","statSize":2286,"parsedSize":890,"gzipSize":194,"inaccurateSizes":true},{"id":null,"label":"form.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/form.utils.ts","statSize":626,"parsedSize":243,"gzipSize":53,"inaccurateSizes":true},{"id":null,"label":"renderer.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/renderer.utils.ts","statSize":3862,"parsedSize":1504,"gzipSize":328,"inaccurateSizes":true},{"id":null,"label":"handleChange.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/handleChange.utils.ts","statSize":1667,"parsedSize":649,"gzipSize":141,"inaccurateSizes":true},{"id":null,"label":"rendererTraversal.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/rendererTraversal.utils.ts","statSize":3148,"parsedSize":1226,"gzipSize":267,"inaccurateSizes":true},{"id":null,"label":"updateRenderer.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/updateRenderer.utils.ts","statSize":4116,"parsedSize":1603,"gzipSize":349,"inaccurateSizes":true}],"parsedSize":6117,"gzipSize":1334,"inaccurateSizes":true},{"label":"http","path":"./src/index.ts + 30 modules (concatenated)/src/utils/http","statSize":16307,"groups":[{"id":null,"label":"http.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/http/http.utils.ts","statSize":6246,"parsedSize":2432,"gzipSize":530,"inaccurateSizes":true},{"id":null,"label":"cache.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/http/cache.utils.ts","statSize":1212,"parsedSize":472,"gzipSize":103,"inaccurateSizes":true},{"id":null,"label":"purge.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/http/purge.utils.ts","statSize":5834,"parsedSize":2272,"gzipSize":495,"inaccurateSizes":true},{"id":null,"label":"request.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/http/request.utils.ts","statSize":3015,"parsedSize":1174,"gzipSize":256,"inaccurateSizes":true}],"parsedSize":6351,"gzipSize":1386,"inaccurateSizes":true}],"parsedSize":17581,"gzipSize":3836,"inaccurateSizes":true},{"label":"lib","path":"./src/index.ts + 30 modules (concatenated)/src/lib","statSize":16836,"groups":[{"label":"getCategories","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getCategories","statSize":113,"groups":[{"id":null,"label":"getCategories.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getCategories/getCategories.ts","statSize":113,"parsedSize":44,"gzipSize":9,"inaccurateSizes":true}],"parsedSize":44,"gzipSize":9,"inaccurateSizes":true},{"label":"getProductDetails","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getProductDetails","statSize":3795,"groups":[{"id":null,"label":"getProductDetails.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getProductDetails/getProductDetails.ts","statSize":3795,"parsedSize":1478,"gzipSize":322,"inaccurateSizes":true}],"parsedSize":1478,"gzipSize":322,"inaccurateSizes":true},{"label":"getProducts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getProducts","statSize":3669,"groups":[{"id":null,"label":"getProducts.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getProducts/getProducts.ts","statSize":3669,"parsedSize":1429,"gzipSize":311,"inaccurateSizes":true}],"parsedSize":1429,"gzipSize":311,"inaccurateSizes":true},{"label":"getRecommendedProducts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getRecommendedProducts","statSize":133,"groups":[{"id":null,"label":"getRecommendedProducts.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getRecommendedProducts/getRecommendedProducts.ts","statSize":133,"parsedSize":51,"gzipSize":11,"inaccurateSizes":true}],"parsedSize":51,"gzipSize":11,"inaccurateSizes":true},{"label":"getRelatedProducts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getRelatedProducts","statSize":125,"groups":[{"id":null,"label":"getRelatedProducts.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getRelatedProducts/getRelatedProducts.ts","statSize":125,"parsedSize":48,"gzipSize":10,"inaccurateSizes":true}],"parsedSize":48,"gzipSize":10,"inaccurateSizes":true},{"label":"getStoreDetails","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getStoreDetails","statSize":3699,"groups":[{"id":null,"label":"getStoreDetails.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getStoreDetails/getStoreDetails.ts","statSize":3699,"parsedSize":1440,"gzipSize":314,"inaccurateSizes":true}],"parsedSize":1440,"gzipSize":314,"inaccurateSizes":true},{"label":"registerModifiersForm","path":"./src/index.ts + 30 modules (concatenated)/src/lib/registerModifiersForm","statSize":2745,"groups":[{"id":null,"label":"registerModifiersForm.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/registerModifiersForm/registerModifiersForm.ts","statSize":2745,"parsedSize":1069,"gzipSize":233,"inaccurateSizes":true}],"parsedSize":1069,"gzipSize":233,"inaccurateSizes":true},{"label":"validateProduct","path":"./src/index.ts + 30 modules (concatenated)/src/lib/validateProduct","statSize":77,"groups":[{"id":null,"label":"validateProduct.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/validateProduct/validateProduct.ts","statSize":77,"parsedSize":29,"gzipSize":6,"inaccurateSizes":true}],"parsedSize":29,"gzipSize":6,"inaccurateSizes":true},{"label":"initProducts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/initProducts","statSize":1521,"groups":[{"id":null,"label":"initProducts.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/initProducts/initProducts.ts","statSize":1521,"parsedSize":592,"gzipSize":129,"inaccurateSizes":true}],"parsedSize":592,"gzipSize":129,"inaccurateSizes":true},{"id":null,"label":"common.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/common.ts","statSize":959,"parsedSize":373,"gzipSize":81,"inaccurateSizes":true}],"parsedSize":6557,"gzipSize":1430,"inaccurateSizes":true},{"label":"services","path":"./src/index.ts + 30 modules (concatenated)/src/services","statSize":8701,"groups":[{"label":"fetchProductDetails","path":"./src/index.ts + 30 modules (concatenated)/src/services/fetchProductDetails","statSize":2903,"groups":[{"id":null,"label":"fetchProductDetails.service.tsx","path":"./src/index.ts + 30 modules (concatenated)/src/services/fetchProductDetails/fetchProductDetails.service.tsx","statSize":2903,"parsedSize":1130,"gzipSize":246,"inaccurateSizes":true}],"parsedSize":1130,"gzipSize":246,"inaccurateSizes":true},{"label":"fetchProducts","path":"./src/index.ts + 30 modules (concatenated)/src/services/fetchProducts","statSize":2897,"groups":[{"id":null,"label":"fetchProducts.service.tsx","path":"./src/index.ts + 30 modules (concatenated)/src/services/fetchProducts/fetchProducts.service.tsx","statSize":2897,"parsedSize":1128,"gzipSize":246,"inaccurateSizes":true}],"parsedSize":1128,"gzipSize":246,"inaccurateSizes":true},{"label":"fetchStoreDetails","path":"./src/index.ts + 30 modules (concatenated)/src/services/fetchStoreDetails","statSize":2901,"groups":[{"id":null,"label":"fetchStoreDetails.service.tsx","path":"./src/index.ts + 30 modules (concatenated)/src/services/fetchStoreDetails/fetchStoreDetails.service.tsx","statSize":2901,"parsedSize":1129,"gzipSize":246,"inaccurateSizes":true}],"parsedSize":1129,"gzipSize":246,"inaccurateSizes":true}],"parsedSize":3388,"gzipSize":739,"inaccurateSizes":true},{"label":"config","path":"./src/index.ts + 30 modules (concatenated)/src/config","statSize":1588,"groups":[{"id":null,"label":"constants.ts","path":"./src/index.ts + 30 modules (concatenated)/src/config/constants.ts","statSize":1588,"parsedSize":618,"gzipSize":134,"inaccurateSizes":true}],"parsedSize":618,"gzipSize":134,"inaccurateSizes":true},{"label":"errors","path":"./src/index.ts + 30 modules (concatenated)/src/errors","statSize":2429,"groups":[{"id":null,"label":"api.errors.ts","path":"./src/index.ts + 30 modules (concatenated)/src/errors/api.errors.ts","statSize":2429,"parsedSize":946,"gzipSize":206,"inaccurateSizes":true}],"parsedSize":946,"gzipSize":206,"inaccurateSizes":true}],"parsedSize":29466,"gzipSize":6430,"inaccurateSizes":true}]}],"parsedSize":29470,"gzipSize":6431}]},{"label":"vendors.bundle.js","isAsset":true,"statSize":20,"parsedSize":1175,"gzipSize":529,"groups":[{"label":"src","path":"./src","statSize":20,"groups":[{"id":23,"label":"vendors.ts","path":"./src/vendors.ts","statSize":20,"parsedSize":15,"gzipSize":35}],"parsedSize":15,"gzipSize":35}]}]
|
|
1
|
+
[{"label":"main.bundle.js","isAsset":true,"statSize":149791,"parsedSize":61355,"gzipSize":15755,"groups":[{"label":"types/build","path":"./types/build","statSize":5432,"groups":[{"id":0,"label":"index.js","path":"./types/build/index.js","statSize":1405,"parsedSize":532,"gzipSize":291},{"label":"types","path":"./types/build/types","statSize":4027,"groups":[{"id":3,"label":"app.types.js","path":"./types/build/types/app.types.js","statSize":114,"parsedSize":78,"gzipSize":97},{"id":4,"label":"account.types.js","path":"./types/build/types/account.types.js","statSize":150,"parsedSize":78,"gzipSize":97},{"id":5,"label":"artisanDB.types.js","path":"./types/build/types/artisanDB.types.js","statSize":120,"parsedSize":78,"gzipSize":97},{"id":6,"label":"category.types.js","path":"./types/build/types/category.types.js","statSize":119,"parsedSize":78,"gzipSize":97},{"id":7,"label":"channel.types.js","path":"./types/build/types/channel.types.js","statSize":150,"parsedSize":78,"gzipSize":97},{"id":8,"label":"common.types.js","path":"./types/build/types/common.types.js","statSize":162,"parsedSize":78,"gzipSize":97},{"id":9,"label":"coupons.types.js","path":"./types/build/types/coupons.types.js","statSize":118,"parsedSize":78,"gzipSize":97},{"id":10,"label":"image.types.js","path":"./types/build/types/image.types.js","statSize":146,"parsedSize":78,"gzipSize":97},{"id":11,"label":"product.types.js","path":"./types/build/types/product.types.js","statSize":1492,"parsedSize":723,"gzipSize":357},{"id":12,"label":"shippingCost.types.js","path":"./types/build/types/shippingCost.types.js","statSize":160,"parsedSize":78,"gzipSize":97},{"id":13,"label":"shoppingCart.types.js","path":"./types/build/types/shoppingCart.types.js","statSize":123,"parsedSize":78,"gzipSize":97},{"id":14,"label":"store.types.js","path":"./types/build/types/store.types.js","statSize":913,"parsedSize":485,"gzipSize":270},{"id":15,"label":"vendor.types.js","path":"./types/build/types/vendor.types.js","statSize":117,"parsedSize":78,"gzipSize":97},{"id":16,"label":"http.types.js","path":"./types/build/types/http.types.js","statSize":143,"parsedSize":78,"gzipSize":97}],"parsedSize":2144,"gzipSize":460}],"parsedSize":2676,"gzipSize":659},{"label":"node_modules","path":"./node_modules","statSize":60672,"groups":[{"label":"charenc","path":"./node_modules/charenc","statSize":850,"groups":[{"id":1,"label":"charenc.js","path":"./node_modules/charenc/charenc.js","statSize":850,"parsedSize":426,"gzipSize":231}],"parsedSize":426,"gzipSize":231},{"label":"sha1","path":"./node_modules/sha1","statSize":2124,"groups":[{"id":2,"label":"sha1.js","path":"./node_modules/sha1/sha1.js","statSize":2124,"parsedSize":947,"gzipSize":625}],"parsedSize":947,"gzipSize":625},{"label":"buffer","path":"./node_modules/buffer","statSize":48590,"groups":[{"id":17,"label":"index.js","path":"./node_modules/buffer/index.js","statSize":48590,"parsedSize":19827,"gzipSize":5835}],"parsedSize":19827,"gzipSize":5835},{"label":"base64-js","path":"./node_modules/base64-js","statSize":3944,"groups":[{"id":19,"label":"index.js","path":"./node_modules/base64-js/index.js","statSize":3944,"parsedSize":1406,"gzipSize":743}],"parsedSize":1406,"gzipSize":743},{"label":"ieee754","path":"./node_modules/ieee754","statSize":2064,"groups":[{"id":20,"label":"index.js","path":"./node_modules/ieee754/index.js","statSize":2064,"parsedSize":881,"gzipSize":496}],"parsedSize":881,"gzipSize":496},{"label":"isarray","path":"./node_modules/isarray","statSize":132,"groups":[{"id":21,"label":"index.js","path":"./node_modules/isarray/index.js","statSize":132,"parsedSize":104,"gzipSize":109}],"parsedSize":104,"gzipSize":109},{"label":"crypt","path":"./node_modules/crypt","statSize":2968,"groups":[{"id":22,"label":"crypt.js","path":"./node_modules/crypt/crypt.js","statSize":2968,"parsedSize":1273,"gzipSize":646}],"parsedSize":1273,"gzipSize":646}],"parsedSize":24864,"gzipSize":7855},{"label":"buildin","path":"./buildin","statSize":472,"groups":[{"id":18,"label":"global.js","path":"./buildin/global.js","statSize":472,"parsedSize":144,"gzipSize":129}],"parsedSize":144,"gzipSize":129},{"label":"src","path":"./src","statSize":83215,"groups":[{"id":24,"label":"index.ts + 30 modules (concatenated)","path":"./src/index.ts + 30 modules (concatenated)","statSize":83215,"parsedSize":32490,"gzipSize":7232,"concatenated":true,"groups":[{"label":"src","path":"./src/index.ts + 30 modules (concatenated)/src","statSize":83205,"groups":[{"id":null,"label":"index.ts","path":"./src/index.ts + 30 modules (concatenated)/src/index.ts","statSize":944,"parsedSize":368,"gzipSize":82,"inaccurateSizes":true},{"label":"utils","path":"./src/index.ts + 30 modules (concatenated)/src/utils","statSize":53150,"groups":[{"label":"assertions","path":"./src/index.ts + 30 modules (concatenated)/src/utils/assertions","statSize":3979,"groups":[{"id":null,"label":"assertions.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/assertions/assertions.utils.ts","statSize":3979,"parsedSize":1553,"gzipSize":345,"inaccurateSizes":true}],"parsedSize":1553,"gzipSize":345,"inaccurateSizes":true},{"label":"transformers","path":"./src/index.ts + 30 modules (concatenated)/src/utils/transformers","statSize":5509,"groups":[{"id":null,"label":"transformers.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/transformers/transformers.utils.ts","statSize":4593,"parsedSize":1793,"gzipSize":399,"inaccurateSizes":true},{"id":null,"label":"api.transformer.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/transformers/api.transformer.ts","statSize":916,"parsedSize":357,"gzipSize":79,"inaccurateSizes":true}],"parsedSize":2150,"gzipSize":478,"inaccurateSizes":true},{"label":"caculations","path":"./src/index.ts + 30 modules (concatenated)/src/utils/caculations","statSize":2900,"groups":[{"id":null,"label":"calculations.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/caculations/calculations.utils.ts","statSize":2900,"parsedSize":1132,"gzipSize":252,"inaccurateSizes":true}],"parsedSize":1132,"gzipSize":252,"inaccurateSizes":true},{"id":null,"label":"common.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/common.utils.ts","statSize":383,"parsedSize":149,"gzipSize":33,"inaccurateSizes":true},{"label":"modifiers","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers","statSize":24459,"groups":[{"id":null,"label":"common.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/common.utils.ts","statSize":6937,"parsedSize":2708,"gzipSize":602,"inaccurateSizes":true},{"id":null,"label":"form.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/form.utils.ts","statSize":2319,"parsedSize":905,"gzipSize":201,"inaccurateSizes":true},{"id":null,"label":"renderer.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/renderer.utils.ts","statSize":5227,"parsedSize":2040,"gzipSize":454,"inaccurateSizes":true},{"id":null,"label":"handleChange.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/handleChange.utils.ts","statSize":1867,"parsedSize":728,"gzipSize":162,"inaccurateSizes":true},{"id":null,"label":"rendererTraversal.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/rendererTraversal.utils.ts","statSize":3092,"parsedSize":1207,"gzipSize":268,"inaccurateSizes":true},{"id":null,"label":"updateRenderer.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/updateRenderer.utils.ts","statSize":5017,"parsedSize":1958,"gzipSize":436,"inaccurateSizes":true}],"parsedSize":9549,"gzipSize":2125,"inaccurateSizes":true},{"label":"http","path":"./src/index.ts + 30 modules (concatenated)/src/utils/http","statSize":15920,"groups":[{"id":null,"label":"http.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/http/http.utils.ts","statSize":6121,"parsedSize":2389,"gzipSize":531,"inaccurateSizes":true},{"id":null,"label":"cache.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/http/cache.utils.ts","statSize":1178,"parsedSize":459,"gzipSize":102,"inaccurateSizes":true},{"id":null,"label":"purge.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/http/purge.utils.ts","statSize":5681,"parsedSize":2218,"gzipSize":493,"inaccurateSizes":true},{"id":null,"label":"request.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/http/request.utils.ts","statSize":2940,"parsedSize":1147,"gzipSize":255,"inaccurateSizes":true}],"parsedSize":6215,"gzipSize":1383,"inaccurateSizes":true}],"parsedSize":20751,"gzipSize":4619,"inaccurateSizes":true},{"label":"lib","path":"./src/index.ts + 30 modules (concatenated)/src/lib","statSize":16639,"groups":[{"label":"getCategories","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getCategories","statSize":109,"groups":[{"id":null,"label":"getCategories.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getCategories/getCategories.ts","statSize":109,"parsedSize":42,"gzipSize":9,"inaccurateSizes":true}],"parsedSize":42,"gzipSize":9,"inaccurateSizes":true},{"label":"getProductDetails","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getProductDetails","statSize":3731,"groups":[{"id":null,"label":"getProductDetails.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getProductDetails/getProductDetails.ts","statSize":3731,"parsedSize":1456,"gzipSize":324,"inaccurateSizes":true}],"parsedSize":1456,"gzipSize":324,"inaccurateSizes":true},{"label":"getProducts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getProducts","statSize":3607,"groups":[{"id":null,"label":"getProducts.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getProducts/getProducts.ts","statSize":3607,"parsedSize":1408,"gzipSize":313,"inaccurateSizes":true}],"parsedSize":1408,"gzipSize":313,"inaccurateSizes":true},{"label":"getRecommendedProducts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getRecommendedProducts","statSize":129,"groups":[{"id":null,"label":"getRecommendedProducts.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getRecommendedProducts/getRecommendedProducts.ts","statSize":129,"parsedSize":50,"gzipSize":11,"inaccurateSizes":true}],"parsedSize":50,"gzipSize":11,"inaccurateSizes":true},{"label":"getRelatedProducts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getRelatedProducts","statSize":121,"groups":[{"id":null,"label":"getRelatedProducts.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getRelatedProducts/getRelatedProducts.ts","statSize":121,"parsedSize":47,"gzipSize":10,"inaccurateSizes":true}],"parsedSize":47,"gzipSize":10,"inaccurateSizes":true},{"label":"getStoreDetails","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getStoreDetails","statSize":3637,"groups":[{"id":null,"label":"getStoreDetails.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/getStoreDetails/getStoreDetails.ts","statSize":3637,"parsedSize":1420,"gzipSize":316,"inaccurateSizes":true}],"parsedSize":1420,"gzipSize":316,"inaccurateSizes":true},{"label":"registerModifiersForm","path":"./src/index.ts + 30 modules (concatenated)/src/lib/registerModifiersForm","statSize":2816,"groups":[{"id":null,"label":"registerModifiersForm.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/registerModifiersForm/registerModifiersForm.ts","statSize":2816,"parsedSize":1099,"gzipSize":244,"inaccurateSizes":true}],"parsedSize":1099,"gzipSize":244,"inaccurateSizes":true},{"label":"validateProduct","path":"./src/index.ts + 30 modules (concatenated)/src/lib/validateProduct","statSize":75,"groups":[{"id":null,"label":"validateProduct.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/validateProduct/validateProduct.ts","statSize":75,"parsedSize":29,"gzipSize":6,"inaccurateSizes":true}],"parsedSize":29,"gzipSize":6,"inaccurateSizes":true},{"label":"initProducts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/initProducts","statSize":1484,"groups":[{"id":null,"label":"initProducts.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/initProducts/initProducts.ts","statSize":1484,"parsedSize":579,"gzipSize":128,"inaccurateSizes":true}],"parsedSize":579,"gzipSize":128,"inaccurateSizes":true},{"id":null,"label":"common.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/common.ts","statSize":930,"parsedSize":363,"gzipSize":80,"inaccurateSizes":true}],"parsedSize":6496,"gzipSize":1446,"inaccurateSizes":true},{"label":"services","path":"./src/index.ts + 30 modules (concatenated)/src/services","statSize":8566,"groups":[{"label":"fetchProductDetails","path":"./src/index.ts + 30 modules (concatenated)/src/services/fetchProductDetails","statSize":2858,"groups":[{"id":null,"label":"fetchProductDetails.service.tsx","path":"./src/index.ts + 30 modules (concatenated)/src/services/fetchProductDetails/fetchProductDetails.service.tsx","statSize":2858,"parsedSize":1115,"gzipSize":248,"inaccurateSizes":true}],"parsedSize":1115,"gzipSize":248,"inaccurateSizes":true},{"label":"fetchProducts","path":"./src/index.ts + 30 modules (concatenated)/src/services/fetchProducts","statSize":2852,"groups":[{"id":null,"label":"fetchProducts.service.tsx","path":"./src/index.ts + 30 modules (concatenated)/src/services/fetchProducts/fetchProducts.service.tsx","statSize":2852,"parsedSize":1113,"gzipSize":247,"inaccurateSizes":true}],"parsedSize":1113,"gzipSize":247,"inaccurateSizes":true},{"label":"fetchStoreDetails","path":"./src/index.ts + 30 modules (concatenated)/src/services/fetchStoreDetails","statSize":2856,"groups":[{"id":null,"label":"fetchStoreDetails.service.tsx","path":"./src/index.ts + 30 modules (concatenated)/src/services/fetchStoreDetails/fetchStoreDetails.service.tsx","statSize":2856,"parsedSize":1115,"gzipSize":248,"inaccurateSizes":true}],"parsedSize":1115,"gzipSize":248,"inaccurateSizes":true}],"parsedSize":3344,"gzipSize":744,"inaccurateSizes":true},{"label":"config","path":"./src/index.ts + 30 modules (concatenated)/src/config","statSize":1528,"groups":[{"id":null,"label":"constants.ts","path":"./src/index.ts + 30 modules (concatenated)/src/config/constants.ts","statSize":1528,"parsedSize":596,"gzipSize":132,"inaccurateSizes":true}],"parsedSize":596,"gzipSize":132,"inaccurateSizes":true},{"label":"errors","path":"./src/index.ts + 30 modules (concatenated)/src/errors","statSize":2378,"groups":[{"id":null,"label":"api.errors.ts","path":"./src/index.ts + 30 modules (concatenated)/src/errors/api.errors.ts","statSize":2378,"parsedSize":928,"gzipSize":206,"inaccurateSizes":true}],"parsedSize":928,"gzipSize":206,"inaccurateSizes":true}],"parsedSize":32486,"gzipSize":7231,"inaccurateSizes":true}]}],"parsedSize":32490,"gzipSize":7232}]},{"label":"vendors.bundle.js","isAsset":true,"statSize":19,"parsedSize":1175,"gzipSize":529,"groups":[{"label":"src","path":"./src","statSize":19,"groups":[{"id":23,"label":"vendors.ts","path":"./src/vendors.ts","statSize":19,"parsedSize":15,"gzipSize":35}],"parsedSize":15,"gzipSize":35}]}]
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { GROUPS as Groups } from "../types/http.types";
|
|
2
|
-
declare const CONSTANTS: {
|
|
3
|
-
CLIENT_NAME: string;
|
|
4
|
-
DEFAULT_REQUEST_TIMEOUT: number;
|
|
5
|
-
EXCLUDED_LOGGER_STATUS_CODES: number[];
|
|
6
|
-
INCLUDED_LOGGER_ENVS: string[];
|
|
7
|
-
INCLUDED_INTL_LOG_ENVS: string[];
|
|
8
|
-
COUNTRY: {
|
|
9
|
-
NAME: string;
|
|
10
|
-
CODE: string;
|
|
11
|
-
LANGUAGE: string;
|
|
12
|
-
};
|
|
13
|
-
DEFAULT_API_TIMEOUT: number;
|
|
14
|
-
HEADERS: string[];
|
|
15
|
-
FILTERS: ("productId" | "vendorId" | "storeId" | "catalogueId" | "categoryId")[];
|
|
16
|
-
GROUPS: Groups[];
|
|
17
|
-
ORDER_FIELDS: string[];
|
|
18
|
-
ORDER_TYPES: ("ALPHABETIC" | "PRICE" | "PREDEFINED" | undefined)[];
|
|
19
|
-
ORDER_SORTS: ("ASC" | "DESC" | undefined)[];
|
|
20
|
-
PAGINATION: string[];
|
|
21
|
-
ADDITIONAL_FILTERS: string[];
|
|
22
|
-
};
|
|
23
|
-
export default CONSTANTS;
|
|
1
|
+
import { GROUPS as Groups } from "../types/http.types";
|
|
2
|
+
declare const CONSTANTS: {
|
|
3
|
+
CLIENT_NAME: string;
|
|
4
|
+
DEFAULT_REQUEST_TIMEOUT: number;
|
|
5
|
+
EXCLUDED_LOGGER_STATUS_CODES: number[];
|
|
6
|
+
INCLUDED_LOGGER_ENVS: string[];
|
|
7
|
+
INCLUDED_INTL_LOG_ENVS: string[];
|
|
8
|
+
COUNTRY: {
|
|
9
|
+
NAME: string;
|
|
10
|
+
CODE: string;
|
|
11
|
+
LANGUAGE: string;
|
|
12
|
+
};
|
|
13
|
+
DEFAULT_API_TIMEOUT: number;
|
|
14
|
+
HEADERS: string[];
|
|
15
|
+
FILTERS: ("productId" | "vendorId" | "storeId" | "catalogueId" | "categoryId")[];
|
|
16
|
+
GROUPS: Groups[];
|
|
17
|
+
ORDER_FIELDS: string[];
|
|
18
|
+
ORDER_TYPES: ("ALPHABETIC" | "PRICE" | "PREDEFINED" | undefined)[];
|
|
19
|
+
ORDER_SORTS: ("ASC" | "DESC" | undefined)[];
|
|
20
|
+
PAGINATION: string[];
|
|
21
|
+
ADDITIONAL_FILTERS: string[];
|
|
22
|
+
};
|
|
23
|
+
export default CONSTANTS;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ProductHints } from "../types/common.types";
|
|
2
|
-
import { ID, ProductsHTTPConfig, RequestData } from "../types/http.types";
|
|
3
|
-
export declare const checkAccountId: (accountId: ProductHints["accountId"] | undefined, message?: string) => void;
|
|
4
|
-
export declare const checkVendorId: (vendorId: ID | undefined, message?: string) => void;
|
|
5
|
-
export declare const checkStoreId: (storeId: ID | undefined, message?: string) => void;
|
|
6
|
-
export declare const checkCatalogueId: (catalogueId: ID | undefined, message?: string) => void;
|
|
7
|
-
export declare const checkHTTPMinimumConfig: (config: ProductsHTTPConfig, data: RequestData, message?: string) => void;
|
|
1
|
+
import { ProductHints } from "../types/common.types";
|
|
2
|
+
import { ID, ProductsHTTPConfig, RequestData } from "../types/http.types";
|
|
3
|
+
export declare const checkAccountId: (accountId: ProductHints["accountId"] | undefined, message?: string) => void;
|
|
4
|
+
export declare const checkVendorId: (vendorId: ID | undefined, message?: string) => void;
|
|
5
|
+
export declare const checkStoreId: (storeId: ID | undefined, message?: string) => void;
|
|
6
|
+
export declare const checkCatalogueId: (catalogueId: ID | undefined, message?: string) => void;
|
|
7
|
+
export declare const checkHTTPMinimumConfig: (config: ProductsHTTPConfig, data: RequestData, message?: string) => void;
|
package/build/src/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as transformers from "./utils/transformers/transformers.utils";
|
|
2
|
-
import * as assertions from "./utils/assertions/assertions.utils";
|
|
3
|
-
export { getCategories } from "./lib/getCategories/getCategories";
|
|
4
|
-
export { getProductDetails } from "./lib/getProductDetails/getProductDetails";
|
|
5
|
-
export { getProducts } from "./lib/getProducts/getProducts";
|
|
6
|
-
export { getRecommendedProducts } from "./lib/getRecommendedProducts/getRecommendedProducts";
|
|
7
|
-
export { getRelatedProducts } from "./lib/getRelatedProducts/getRelatedProducts";
|
|
8
|
-
export { getStoreDetails } from "./lib/getStoreDetails/getStoreDetails";
|
|
9
|
-
export { registerModifiersForm } from "./lib/registerModifiersForm/registerModifiersForm";
|
|
10
|
-
export { validateProduct } from "./lib/validateProduct/validateProduct";
|
|
11
|
-
export { initProducts } from "./lib/initProducts/initProducts";
|
|
12
|
-
export { getProductTotals } from "./utils/caculations/calculations.utils";
|
|
13
|
-
export { transformers, assertions };
|
|
14
|
-
export type { ModifierGroupRenderer } from "./types/modifiers.types";
|
|
15
|
-
export type { ModifierRenderer } from "./types/modifiers.types";
|
|
16
|
-
export type { ModifiersForm } from "./lib/registerModifiersForm/registerModifiersForm.types";
|
|
1
|
+
import * as transformers from "./utils/transformers/transformers.utils";
|
|
2
|
+
import * as assertions from "./utils/assertions/assertions.utils";
|
|
3
|
+
export { getCategories } from "./lib/getCategories/getCategories";
|
|
4
|
+
export { getProductDetails } from "./lib/getProductDetails/getProductDetails";
|
|
5
|
+
export { getProducts } from "./lib/getProducts/getProducts";
|
|
6
|
+
export { getRecommendedProducts } from "./lib/getRecommendedProducts/getRecommendedProducts";
|
|
7
|
+
export { getRelatedProducts } from "./lib/getRelatedProducts/getRelatedProducts";
|
|
8
|
+
export { getStoreDetails } from "./lib/getStoreDetails/getStoreDetails";
|
|
9
|
+
export { registerModifiersForm } from "./lib/registerModifiersForm/registerModifiersForm";
|
|
10
|
+
export { validateProduct } from "./lib/validateProduct/validateProduct";
|
|
11
|
+
export { initProducts } from "./lib/initProducts/initProducts";
|
|
12
|
+
export { getProductTotals } from "./utils/caculations/calculations.utils";
|
|
13
|
+
export { transformers, assertions };
|
|
14
|
+
export type { ModifierGroupRenderer } from "./types/modifiers.types";
|
|
15
|
+
export type { ModifierRenderer } from "./types/modifiers.types";
|
|
16
|
+
export type { ModifiersForm } from "./lib/registerModifiersForm/registerModifiersForm.types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const sum: (a: number, b: number) => number;
|
|
1
|
+
export declare const sum: (a: number, b: number) => number;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { GlobalState } from "../types/common.types";
|
|
2
|
-
export declare const initialState: GlobalState;
|
|
3
|
-
export declare const setState: (overrides: Partial<GlobalState>) => void;
|
|
4
|
-
export declare const getState: () => {
|
|
5
|
-
artisanApp: import("../../../types/build").ArtisanApp | undefined;
|
|
6
|
-
apiCache: import("../types/common.types").ApiCache;
|
|
7
|
-
expiresAt: number;
|
|
8
|
-
forms: import("../types/common.types").ModifiersForms;
|
|
9
|
-
timeout?: number | undefined;
|
|
10
|
-
accountId?: string | number | undefined;
|
|
11
|
-
productId?: string | number | undefined;
|
|
12
|
-
vendorId?: string | number | undefined;
|
|
13
|
-
storeId?: number | undefined;
|
|
14
|
-
catalogueId?: string | number | undefined;
|
|
15
|
-
categoryId?: string | number | undefined;
|
|
16
|
-
};
|
|
1
|
+
import { GlobalState } from "../types/common.types";
|
|
2
|
+
export declare const initialState: GlobalState;
|
|
3
|
+
export declare const setState: (overrides: Partial<GlobalState>) => void;
|
|
4
|
+
export declare const getState: () => {
|
|
5
|
+
artisanApp: import("../../../types/build").ArtisanApp | undefined;
|
|
6
|
+
apiCache: import("../types/common.types").ApiCache;
|
|
7
|
+
expiresAt: number;
|
|
8
|
+
forms: import("../types/common.types").ModifiersForms;
|
|
9
|
+
timeout?: number | undefined;
|
|
10
|
+
accountId?: string | number | undefined;
|
|
11
|
+
productId?: string | number | undefined;
|
|
12
|
+
vendorId?: string | number | undefined;
|
|
13
|
+
storeId?: number | undefined;
|
|
14
|
+
catalogueId?: string | number | undefined;
|
|
15
|
+
categoryId?: string | number | undefined;
|
|
16
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getCategories: () => void;
|
|
1
|
+
export declare const getCategories: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FetchProductDetailsConfig } from "./getProductDetails.types";
|
|
2
|
-
export declare const getProductDetails: (productId: number | string, config: FetchProductDetailsConfig) => Promise<import("../../../../types/build").BaseProduct | {
|
|
3
|
-
data: any;
|
|
4
|
-
hints: Partial<import("../../../../types/build").ArtisanHints>;
|
|
5
|
-
config: import("../../../../types/build").ArtisanRequest;
|
|
6
|
-
error: string | undefined;
|
|
7
|
-
} | import("../../../../types/build").Product[]>;
|
|
1
|
+
import { FetchProductDetailsConfig } from "./getProductDetails.types";
|
|
2
|
+
export declare const getProductDetails: (productId: number | string, config: FetchProductDetailsConfig) => Promise<import("../../../../types/build").BaseProduct | {
|
|
3
|
+
data: any;
|
|
4
|
+
hints: Partial<import("../../../../types/build").ArtisanHints>;
|
|
5
|
+
config: import("../../../../types/build").ArtisanRequest;
|
|
6
|
+
error: string | undefined;
|
|
7
|
+
} | import("../../../../types/build").Product[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ProductsHTTPConfig } from "../../types/http.types";
|
|
2
|
-
export interface FetchProductDetailsConfig extends ProductsHTTPConfig {
|
|
3
|
-
groupBy?: undefined;
|
|
4
|
-
orderBy?: undefined;
|
|
5
|
-
pagination?: undefined;
|
|
6
|
-
additionalFilters?: undefined;
|
|
7
|
-
}
|
|
1
|
+
import { ProductsHTTPConfig } from "../../types/http.types";
|
|
2
|
+
export interface FetchProductDetailsConfig extends ProductsHTTPConfig {
|
|
3
|
+
groupBy?: undefined;
|
|
4
|
+
orderBy?: undefined;
|
|
5
|
+
pagination?: undefined;
|
|
6
|
+
additionalFilters?: undefined;
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FetchProductsConfig } from "./getProducts.types";
|
|
2
|
-
export declare const getProducts: (config: FetchProductsConfig) => Promise<import("../../../../types/build").BaseProduct | {
|
|
3
|
-
data: any;
|
|
4
|
-
hints: Partial<import("../../../../types/build").ArtisanHints>;
|
|
5
|
-
config: import("../../../../types/build").ArtisanRequest;
|
|
6
|
-
error: string | undefined;
|
|
7
|
-
} | import("../../../../types/build").Product[]>;
|
|
1
|
+
import { FetchProductsConfig } from "./getProducts.types";
|
|
2
|
+
export declare const getProducts: (config: FetchProductsConfig) => Promise<import("../../../../types/build").BaseProduct | {
|
|
3
|
+
data: any;
|
|
4
|
+
hints: Partial<import("../../../../types/build").ArtisanHints>;
|
|
5
|
+
config: import("../../../../types/build").ArtisanRequest;
|
|
6
|
+
error: string | undefined;
|
|
7
|
+
} | import("../../../../types/build").Product[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ProductsHTTPConfig } from "../../types/http.types";
|
|
2
|
-
export interface FetchProductsConfig extends ProductsHTTPConfig {
|
|
3
|
-
}
|
|
1
|
+
import { ProductsHTTPConfig } from "../../types/http.types";
|
|
2
|
+
export interface FetchProductsConfig extends ProductsHTTPConfig {
|
|
3
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getRecommendedProducts: () => void;
|
|
1
|
+
export declare const getRecommendedProducts: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getRelatedProducts: () => void;
|
|
1
|
+
export declare const getRelatedProducts: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FetchStoreDetailsConfig } from "./getStoreDetails.types";
|
|
2
|
-
export declare const getStoreDetails: (config: FetchStoreDetailsConfig) => Promise<import("../../../../types/build").BaseProduct | {
|
|
3
|
-
data: any;
|
|
4
|
-
hints: Partial<import("../../../../types/build").ArtisanHints>;
|
|
5
|
-
config: import("../../../../types/build").ArtisanRequest;
|
|
6
|
-
error: string | undefined;
|
|
7
|
-
} | import("../../../../types/build").Product[]>;
|
|
1
|
+
import { FetchStoreDetailsConfig } from "./getStoreDetails.types";
|
|
2
|
+
export declare const getStoreDetails: (config: FetchStoreDetailsConfig) => Promise<import("../../../../types/build").BaseProduct | {
|
|
3
|
+
data: any;
|
|
4
|
+
hints: Partial<import("../../../../types/build").ArtisanHints>;
|
|
5
|
+
config: import("../../../../types/build").ArtisanRequest;
|
|
6
|
+
error: string | undefined;
|
|
7
|
+
} | import("../../../../types/build").Product[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ProductsHTTPConfig } from "../../types/http.types";
|
|
2
|
-
export interface FetchStoreDetailsConfig extends ProductsHTTPConfig {
|
|
3
|
-
groupBy?: undefined;
|
|
4
|
-
orderBy?: undefined;
|
|
5
|
-
pagination?: undefined;
|
|
6
|
-
additionalFilters?: undefined;
|
|
7
|
-
}
|
|
1
|
+
import { ProductsHTTPConfig } from "../../types/http.types";
|
|
2
|
+
export interface FetchStoreDetailsConfig extends ProductsHTTPConfig {
|
|
3
|
+
groupBy?: undefined;
|
|
4
|
+
orderBy?: undefined;
|
|
5
|
+
pagination?: undefined;
|
|
6
|
+
additionalFilters?: undefined;
|
|
7
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ArtisanApp } from "@artisan-commerce/types";
|
|
2
|
-
import { InitProductsConfig } from "../../types/common.types";
|
|
3
|
-
/**
|
|
4
|
-
* Initialize products metadata, stores initial global state for future needs.
|
|
5
|
-
* @author Luis Eduardo Andrade
|
|
6
|
-
* @since 1.0
|
|
7
|
-
* @param artisanApp: An artisan initialized app.
|
|
8
|
-
* @param config: Global products state that can be configure at the function call level
|
|
9
|
-
*/
|
|
10
|
-
export declare const initProducts: (artisanApp: ArtisanApp, config?: InitProductsConfig) => void;
|
|
1
|
+
import { ArtisanApp } from "@artisan-commerce/types";
|
|
2
|
+
import { InitProductsConfig } from "../../types/common.types";
|
|
3
|
+
/**
|
|
4
|
+
* Initialize products metadata, stores initial global state for future needs.
|
|
5
|
+
* @author Luis Eduardo Andrade
|
|
6
|
+
* @since 1.0
|
|
7
|
+
* @param artisanApp: An artisan initialized app.
|
|
8
|
+
* @param config: Global products state that can be configure at the function call level
|
|
9
|
+
*/
|
|
10
|
+
export declare const initProducts: (artisanApp: ArtisanApp, config?: InitProductsConfig) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RegisterModifiersForm } from "./registerModifiersForm.types";
|
|
2
|
-
export declare const registerModifiersForm: RegisterModifiersForm;
|
|
3
|
-
export declare const unsuscriber: (productId: string) => void;
|
|
1
|
+
import { RegisterModifiersForm } from "./registerModifiersForm.types";
|
|
2
|
+
export declare const registerModifiersForm: RegisterModifiersForm;
|
|
3
|
+
export declare const unsuscriber: (productId: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { CartProduct, Product } from "@artisan-commerce/types";
|
|
2
|
-
import { ValidateProduct } from "../validateProduct/validateProduct.types";
|
|
3
|
-
import { ModifierTypes } from "../../types/modifiers.types";
|
|
4
|
-
import { ModifierGroupRenderer } from "../../types/modifiers.types";
|
|
5
|
-
export interface ModifiersForm {
|
|
6
|
-
renderer: ModifierGroupRenderer[];
|
|
7
|
-
product: CartProduct;
|
|
8
|
-
validate: ValidateProduct;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare type
|
|
15
|
-
export declare type
|
|
16
|
-
export declare type
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
import { CartProduct, Product } from "@artisan-commerce/types";
|
|
2
|
+
import { ValidateProduct } from "../validateProduct/validateProduct.types";
|
|
3
|
+
import { ModifierTypes, RendererStatus } from "../../types/modifiers.types";
|
|
4
|
+
import { ModifierGroupRenderer } from "../../types/modifiers.types";
|
|
5
|
+
export interface ModifiersForm {
|
|
6
|
+
renderer: ModifierGroupRenderer[];
|
|
7
|
+
product: CartProduct;
|
|
8
|
+
validate: ValidateProduct;
|
|
9
|
+
status: RendererStatus;
|
|
10
|
+
}
|
|
11
|
+
export interface ModifiersFormInternal extends ModifiersForm {
|
|
12
|
+
callback: ModifiersFormCallback;
|
|
13
|
+
}
|
|
14
|
+
export declare type ModifiersFormCallback = (form: ModifiersForm) => void;
|
|
15
|
+
export declare type ModifiersFormUnsuscriber = () => void;
|
|
16
|
+
export declare type HandleChangeFunction = (amount: number) => void;
|
|
17
|
+
export declare type RegisterModifiersForm = (product: Product, callback: ModifiersFormCallback) => ModifiersFormUnsuscriber;
|
|
18
|
+
export interface BuildModifierRendererConfig {
|
|
19
|
+
rootId: string;
|
|
20
|
+
min: number;
|
|
21
|
+
max: number;
|
|
22
|
+
type: ModifierTypes;
|
|
23
|
+
modifiersCount: number;
|
|
24
|
+
amount: number;
|
|
25
|
+
path: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface BuildModifierGroupConfig {
|
|
28
|
+
amount: number;
|
|
29
|
+
rootId: string;
|
|
30
|
+
path: string[];
|
|
31
|
+
}
|
|
32
|
+
export interface BuildRendererConfig {
|
|
33
|
+
rootId: string;
|
|
34
|
+
path: string[];
|
|
35
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const validateProduct: () => void;
|
|
1
|
+
export declare const validateProduct: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CartProduct } from "@artisan-commerce/types";
|
|
2
|
-
export declare type ValidateProduct = (product: CartProduct) => void;
|
|
1
|
+
import { CartProduct } from "@artisan-commerce/types";
|
|
2
|
+
export declare type ValidateProduct = (product: CartProduct) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ArtisanRequest, ProductDetails } from "@artisan-commerce/types";
|
|
2
|
-
export declare const fetchProductDetails: (request: ArtisanRequest) => Promise<ProductDetails>;
|
|
1
|
+
import { ArtisanRequest, ProductDetails } from "@artisan-commerce/types";
|
|
2
|
+
export declare const fetchProductDetails: (request: ArtisanRequest) => Promise<ProductDetails>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ProductDetails, ArtisanRequest } from "@artisan-commerce/types";
|
|
2
|
-
export declare const fetchProductDetails: (request: ArtisanRequest) => Promise<ProductDetails>;
|
|
1
|
+
import { ProductDetails, ArtisanRequest } from "@artisan-commerce/types";
|
|
2
|
+
export declare const fetchProductDetails: (request: ArtisanRequest) => Promise<ProductDetails>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BaseProduct, ArtisanRequest } from "@artisan-commerce/types";
|
|
2
|
-
export declare const fetchProductDetails: (request: ArtisanRequest) => Promise<BaseProduct[]>;
|
|
1
|
+
import { BaseProduct, ArtisanRequest } from "@artisan-commerce/types";
|
|
2
|
+
export declare const fetchProductDetails: (request: ArtisanRequest) => Promise<BaseProduct[]>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ArtisanRequest, BaseProduct } from "@artisan-commerce/types";
|
|
2
|
-
export declare const fetchProducts: (request: ArtisanRequest) => Promise<BaseProduct[]>;
|
|
1
|
+
import { ArtisanRequest, BaseProduct } from "@artisan-commerce/types";
|
|
2
|
+
export declare const fetchProducts: (request: ArtisanRequest) => Promise<BaseProduct[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ArtisanRequest, BaseProduct } from "@artisan-commerce/types";
|
|
2
|
-
export declare const fetchStoreDetails: (request: ArtisanRequest) => Promise<BaseProduct[]>;
|
|
1
|
+
import { ArtisanRequest, BaseProduct } from "@artisan-commerce/types";
|
|
2
|
+
export declare const fetchStoreDetails: (request: ArtisanRequest) => Promise<BaseProduct[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ArtisanApp, ArtisanHints, Product } from "@artisan-commerce/types";
|
|
2
|
-
import { ModifiersFormInternal } from "../lib/registerModifiersForm/registerModifiersForm.types";
|
|
3
|
-
export interface ProductHints extends Omit<ArtisanHints, "accountId"> {
|
|
4
|
-
accountId?: ArtisanHints["accountId"];
|
|
5
|
-
}
|
|
6
|
-
export interface InitProductsConfig extends ProductHints {
|
|
7
|
-
timeout?: number;
|
|
8
|
-
}
|
|
9
|
-
export interface GlobalState extends InitProductsConfig {
|
|
10
|
-
artisanApp: ArtisanApp | undefined;
|
|
11
|
-
apiCache: ApiCache;
|
|
12
|
-
expiresAt: number;
|
|
13
|
-
forms: ModifiersForms;
|
|
14
|
-
}
|
|
15
|
-
export interface ApiCache {
|
|
16
|
-
[key: string]: Product | Product[];
|
|
17
|
-
}
|
|
18
|
-
export interface ModifiersForms {
|
|
19
|
-
[key: string]: ModifiersFormInternal;
|
|
20
|
-
}
|
|
1
|
+
import { ArtisanApp, ArtisanHints, Product } from "@artisan-commerce/types";
|
|
2
|
+
import { ModifiersFormInternal } from "../lib/registerModifiersForm/registerModifiersForm.types";
|
|
3
|
+
export interface ProductHints extends Omit<ArtisanHints, "accountId"> {
|
|
4
|
+
accountId?: ArtisanHints["accountId"];
|
|
5
|
+
}
|
|
6
|
+
export interface InitProductsConfig extends ProductHints {
|
|
7
|
+
timeout?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface GlobalState extends InitProductsConfig {
|
|
10
|
+
artisanApp: ArtisanApp | undefined;
|
|
11
|
+
apiCache: ApiCache;
|
|
12
|
+
expiresAt: number;
|
|
13
|
+
forms: ModifiersForms;
|
|
14
|
+
}
|
|
15
|
+
export interface ApiCache {
|
|
16
|
+
[key: string]: Product | Product[];
|
|
17
|
+
}
|
|
18
|
+
export interface ModifiersForms {
|
|
19
|
+
[key: string]: ModifiersFormInternal;
|
|
20
|
+
}
|