@artisan-commerce/products 0.5.10 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -93
- package/build/main.bundle.js +2 -2
- package/build/report.html +2 -2
- 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 +13 -16
- package/build/src/lib/aritmetics.d.ts +1 -1
- package/build/src/lib/common.d.ts +15 -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 +1 -3
- package/build/src/lib/registerModifiersForm/registerModifiersForm.test.d.ts +1 -1
- package/build/src/lib/validateProduct/validateProduct.d.ts +1 -1
- package/build/src/lib/validateProduct/validateProduct.test.d.ts +1 -1
- 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 +15 -20
- package/build/src/types/http.types.d.ts +66 -66
- package/build/src/utils/assertions/assertions.utils.d.ts +6 -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 +2 -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/transformers/api.transformer.d.ts +7 -7
- package/build/src/utils/transformers/transformers.utils.d.ts +2 -9
- package/build/src/vendors.d.ts +1 -1
- package/package.json +4 -4
- package/build/src/lib/registerModifiersForm/registerModifiersForm.types.d.ts +0 -34
- package/build/src/lib/validateProduct/validateProduct.types.d.ts +0 -2
- package/build/src/types/modifiers.types.d.ts +0 -57
- package/build/src/utils/modifiers/common.utils.d.ts +0 -12
- package/build/src/utils/modifiers/form.utils.d.ts +0 -3
- package/build/src/utils/modifiers/handleChange.utils.d.ts +0 -1
- package/build/src/utils/modifiers/renderer.utils.d.ts +0 -11
- package/build/src/utils/modifiers/rendererTraversal.utils.d.ts +0 -4
- package/build/src/utils/modifiers/updateRenderer.utils.d.ts +0 -5
package/build/report.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8"/>
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
6
|
-
<title>@artisan-commerce/products [
|
|
6
|
+
<title>@artisan-commerce/products [10 Dec 2020 at 16:22]</title>
|
|
7
7
|
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlSml+czWkg3D0l1nNjGNjz3myOQOa1KM/jOS6ebdbAVTCi4gljHSFrviza7tOgRWcS0MOUX9zdNgag5w7rRqA44Lzw0hr1WqES36dFliSJFlh2rXIae3FFcDDgKdxrUIDePr8jGcSClV1u7A9xeN0ModY/pHMxmR1EzRh8TJiwqsHmKW0l4FCEZI+jHio+JdPPE9qwQtTRxku2D8sIeRL2LnxWSllANCQGOIiqVHAz2ye2JR0DcH+HoxDkaADLjgxjKQ+AwCX/g0+DNgdG0ukYCONAe+dbc2IAc6fwt1ARoDSezNHxV2Cmzwv3O6lDMV55edBGwGK9n1+x2F8EDfAGCxug8MhpsMEcTEAWf3rx2vZhe/LAmtIn/6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
|
|
8
8
|
|
|
9
9
|
<script>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<body>
|
|
47
47
|
<div id="app"></div>
|
|
48
48
|
<script>
|
|
49
|
-
window.chartData = [{"label":"main.bundle.js","isAsset":true,"statSize":140381,"parsedSize":58245,"gzipSize":14943,"groups":[{"label":"types/build","path":"./types/build","statSize":5253,"groups":[{"id":0,"label":"index.js","path":"./types/build/index.js","statSize":1346,"parsedSize":521,"gzipSize":287},{"label":"types","path":"./types/build/types","statSize":3907,"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":"category.types.js","path":"./types/build/types/category.types.js","statSize":119,"parsedSize":78,"gzipSize":97},{"id":6,"label":"channel.types.js","path":"./types/build/types/channel.types.js","statSize":150,"parsedSize":78,"gzipSize":97},{"id":7,"label":"common.types.js","path":"./types/build/types/common.types.js","statSize":162,"parsedSize":78,"gzipSize":97},{"id":8,"label":"coupons.types.js","path":"./types/build/types/coupons.types.js","statSize":118,"parsedSize":78,"gzipSize":97},{"id":9,"label":"image.types.js","path":"./types/build/types/image.types.js","statSize":146,"parsedSize":78,"gzipSize":97},{"id":10,"label":"product.types.js","path":"./types/build/types/product.types.js","statSize":1492,"parsedSize":723,"gzipSize":357},{"id":11,"label":"shippingCost.types.js","path":"./types/build/types/shippingCost.types.js","statSize":160,"parsedSize":78,"gzipSize":97},{"id":12,"label":"shoppingCart.types.js","path":"./types/build/types/shoppingCart.types.js","statSize":123,"parsedSize":78,"gzipSize":97},{"id":13,"label":"store.types.js","path":"./types/build/types/store.types.js","statSize":913,"parsedSize":485,"gzipSize":270},{"id":14,"label":"vendor.types.js","path":"./types/build/types/vendor.types.js","statSize":117,"parsedSize":78,"gzipSize":97},{"id":15,"label":"http.types.js","path":"./types/build/types/http.types.js","statSize":143,"parsedSize":78,"gzipSize":97}],"parsedSize":2066,"gzipSize":459}],"parsedSize":2587,"gzipSize":655},{"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":16,"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":18,"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":19,"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":20,"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":21,"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":17,"label":"global.js","path":"./buildin/global.js","statSize":472,"parsedSize":144,"gzipSize":129}],"parsedSize":144,"gzipSize":129},{"label":"src","path":"./src","statSize":73984,"groups":[{"id":23,"label":"index.ts + 30 modules (concatenated)","path":"./src/index.ts + 30 modules (concatenated)","statSize":73984,"parsedSize":29470,"gzipSize":6433,"concatenated":true,"groups":[{"label":"src","path":"./src/index.ts + 30 modules (concatenated)/src","statSize":73974,"groups":[{"id":null,"label":"index.ts","path":"./src/index.ts + 30 modules (concatenated)/src/index.ts","statSize":944,"parsedSize":376,"gzipSize":82,"inaccurateSizes":true},{"label":"utils","path":"./src/index.ts + 30 modules (concatenated)/src/utils","statSize":44044,"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":1584,"gzipSize":345,"inaccurateSizes":true}],"parsedSize":1584,"gzipSize":345,"inaccurateSizes":true},{"label":"transformers","path":"./src/index.ts + 30 modules (concatenated)/src/utils/transformers","statSize":5545,"groups":[{"id":null,"label":"transformers.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/transformers/transformers.utils.ts","statSize":4629,"parsedSize":1843,"gzipSize":402,"inaccurateSizes":true},{"id":null,"label":"api.transformer.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/transformers/api.transformer.ts","statSize":916,"parsedSize":364,"gzipSize":79,"inaccurateSizes":true}],"parsedSize":2208,"gzipSize":482,"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":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":383,"parsedSize":152,"gzipSize":33,"inaccurateSizes":true},{"label":"modifiers","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers","statSize":15317,"groups":[{"id":null,"label":"common.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/common.utils.ts","statSize":2209,"parsedSize":879,"gzipSize":192,"inaccurateSizes":true},{"id":null,"label":"form.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/form.utils.ts","statSize":611,"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":3772,"parsedSize":1502,"gzipSize":327,"inaccurateSizes":true},{"id":null,"label":"handleChange.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/handleChange.utils.ts","statSize":1630,"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":3060,"parsedSize":1218,"gzipSize":266,"inaccurateSizes":true},{"id":null,"label":"updateRenderer.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/modifiers/updateRenderer.utils.ts","statSize":4035,"parsedSize":1607,"gzipSize":350,"inaccurateSizes":true}],"parsedSize":6101,"gzipSize":1331,"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":2438,"gzipSize":532,"inaccurateSizes":true},{"id":null,"label":"cache.utils.ts","path":"./src/index.ts + 30 modules (concatenated)/src/utils/http/cache.utils.ts","statSize":1178,"parsedSize":469,"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":2262,"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":1171,"gzipSize":255,"inaccurateSizes":true}],"parsedSize":6341,"gzipSize":1384,"inaccurateSizes":true}],"parsedSize":17544,"gzipSize":3829,"inaccurateSizes":true},{"label":"lib","path":"./src/index.ts + 30 modules (concatenated)/src/lib","statSize":16514,"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":43,"gzipSize":9,"inaccurateSizes":true}],"parsedSize":43,"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":1486,"gzipSize":324,"inaccurateSizes":true}],"parsedSize":1486,"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":1436,"gzipSize":313,"inaccurateSizes":true}],"parsedSize":1436,"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":51,"gzipSize":11,"inaccurateSizes":true}],"parsedSize":51,"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":48,"gzipSize":10,"inaccurateSizes":true}],"parsedSize":48,"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":1448,"gzipSize":316,"inaccurateSizes":true}],"parsedSize":1448,"gzipSize":316,"inaccurateSizes":true},{"label":"registerModifiersForm","path":"./src/index.ts + 30 modules (concatenated)/src/lib/registerModifiersForm","statSize":2691,"groups":[{"id":null,"label":"registerModifiersForm.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/registerModifiersForm/registerModifiersForm.ts","statSize":2691,"parsedSize":1071,"gzipSize":233,"inaccurateSizes":true}],"parsedSize":1071,"gzipSize":233,"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":591,"gzipSize":129,"inaccurateSizes":true}],"parsedSize":591,"gzipSize":129,"inaccurateSizes":true},{"id":null,"label":"common.ts","path":"./src/index.ts + 30 modules (concatenated)/src/lib/common.ts","statSize":930,"parsedSize":370,"gzipSize":80,"inaccurateSizes":true}],"parsedSize":6578,"gzipSize":1435,"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":1138,"gzipSize":248,"inaccurateSizes":true}],"parsedSize":1138,"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":1136,"gzipSize":247,"inaccurateSizes":true}],"parsedSize":1136,"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":1137,"gzipSize":248,"inaccurateSizes":true}],"parsedSize":1137,"gzipSize":248,"inaccurateSizes":true}],"parsedSize":3412,"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":608,"gzipSize":132,"inaccurateSizes":true}],"parsedSize":608,"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":947,"gzipSize":206,"inaccurateSizes":true}],"parsedSize":947,"gzipSize":206,"inaccurateSizes":true}],"parsedSize":29466,"gzipSize":6432,"inaccurateSizes":true}]}],"parsedSize":29470,"gzipSize":6433}]},{"label":"vendors.bundle.js","isAsset":true,"statSize":19,"parsedSize":1175,"gzipSize":528,"groups":[{"label":"src","path":"./src","statSize":19,"groups":[{"id":22,"label":"vendors.ts","path":"./src/vendors.ts","statSize":19,"parsedSize":15,"gzipSize":35}],"parsedSize":15,"gzipSize":35}]}];
|
|
49
|
+
window.chartData = [{"label":"main.bundle.js","isAsset":true,"statSize":121980,"parsedSize":51215,"gzipSize":13154,"groups":[{"label":"types/build","path":"./types/build","statSize":5366,"groups":[{"id":0,"label":"index.js","path":"./types/build/index.js","statSize":1372,"parsedSize":521,"gzipSize":287},{"label":"types","path":"./types/build/types","statSize":3994,"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":"category.types.js","path":"./types/build/types/category.types.js","statSize":121,"parsedSize":78,"gzipSize":97},{"id":6,"label":"channel.types.js","path":"./types/build/types/channel.types.js","statSize":153,"parsedSize":78,"gzipSize":97},{"id":7,"label":"common.types.js","path":"./types/build/types/common.types.js","statSize":165,"parsedSize":78,"gzipSize":97},{"id":8,"label":"coupons.types.js","path":"./types/build/types/coupons.types.js","statSize":120,"parsedSize":78,"gzipSize":97},{"id":9,"label":"image.types.js","path":"./types/build/types/image.types.js","statSize":149,"parsedSize":78,"gzipSize":97},{"id":10,"label":"product.types.js","path":"./types/build/types/product.types.js","statSize":1528,"parsedSize":725,"gzipSize":358},{"id":11,"label":"shippingCost.types.js","path":"./types/build/types/shippingCost.types.js","statSize":163,"parsedSize":78,"gzipSize":97},{"id":12,"label":"shoppingCart.types.js","path":"./types/build/types/shoppingCart.types.js","statSize":125,"parsedSize":78,"gzipSize":97},{"id":13,"label":"store.types.js","path":"./types/build/types/store.types.js","statSize":936,"parsedSize":485,"gzipSize":270},{"id":14,"label":"vendor.types.js","path":"./types/build/types/vendor.types.js","statSize":119,"parsedSize":78,"gzipSize":97},{"id":15,"label":"http.types.js","path":"./types/build/types/http.types.js","statSize":146,"parsedSize":78,"gzipSize":97}],"parsedSize":2068,"gzipSize":457}],"parsedSize":2589,"gzipSize":658},{"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":16,"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":18,"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":19,"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":20,"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":21,"label":"crypt.js","path":"./node_modules/crypt/crypt.js","statSize":2968,"parsedSize":1273,"gzipSize":646}],"parsedSize":1273,"gzipSize":646}],"parsedSize":24864,"gzipSize":7856},{"label":"buildin","path":"./buildin","statSize":472,"groups":[{"id":17,"label":"global.js","path":"./buildin/global.js","statSize":472,"parsedSize":144,"gzipSize":129}],"parsedSize":144,"gzipSize":129},{"label":"src","path":"./src","statSize":55470,"groups":[{"id":23,"label":"index.ts + 24 modules (concatenated)","path":"./src/index.ts + 24 modules (concatenated)","statSize":55470,"parsedSize":22438,"gzipSize":4614,"concatenated":true,"groups":[{"label":"src","path":"./src/index.ts + 24 modules (concatenated)/src","statSize":55460,"groups":[{"id":null,"label":"index.ts","path":"./src/index.ts + 24 modules (concatenated)/src/index.ts","statSize":958,"parsedSize":387,"gzipSize":79,"inaccurateSizes":true},{"label":"utils","path":"./src/index.ts + 24 modules (concatenated)/src/utils","statSize":25732,"groups":[{"label":"assertions","path":"./src/index.ts + 24 modules (concatenated)/src/utils/assertions","statSize":3492,"groups":[{"id":null,"label":"assertions.utils.ts","path":"./src/index.ts + 24 modules (concatenated)/src/utils/assertions/assertions.utils.ts","statSize":3492,"parsedSize":1412,"gzipSize":290,"inaccurateSizes":true}],"parsedSize":1412,"gzipSize":290,"inaccurateSizes":true},{"label":"transformers","path":"./src/index.ts + 24 modules (concatenated)/src/utils/transformers","statSize":2763,"groups":[{"id":null,"label":"transformers.utils.ts","path":"./src/index.ts + 24 modules (concatenated)/src/utils/transformers/transformers.utils.ts","statSize":1814,"parsedSize":733,"gzipSize":150,"inaccurateSizes":true},{"id":null,"label":"api.transformer.ts","path":"./src/index.ts + 24 modules (concatenated)/src/utils/transformers/api.transformer.ts","statSize":949,"parsedSize":383,"gzipSize":78,"inaccurateSizes":true}],"parsedSize":1117,"gzipSize":229,"inaccurateSizes":true},{"label":"caculations","path":"./src/index.ts + 24 modules (concatenated)/src/utils/caculations","statSize":2966,"groups":[{"id":null,"label":"calculations.utils.ts","path":"./src/index.ts + 24 modules (concatenated)/src/utils/caculations/calculations.utils.ts","statSize":2966,"parsedSize":1199,"gzipSize":246,"inaccurateSizes":true}],"parsedSize":1199,"gzipSize":246,"inaccurateSizes":true},{"id":null,"label":"common.utils.ts","path":"./src/index.ts + 24 modules (concatenated)/src/utils/common.utils.ts","statSize":204,"parsedSize":82,"gzipSize":16,"inaccurateSizes":true},{"label":"http","path":"./src/index.ts + 24 modules (concatenated)/src/utils/http","statSize":16307,"groups":[{"id":null,"label":"http.utils.ts","path":"./src/index.ts + 24 modules (concatenated)/src/utils/http/http.utils.ts","statSize":6246,"parsedSize":2526,"gzipSize":519,"inaccurateSizes":true},{"id":null,"label":"cache.utils.ts","path":"./src/index.ts + 24 modules (concatenated)/src/utils/http/cache.utils.ts","statSize":1212,"parsedSize":490,"gzipSize":100,"inaccurateSizes":true},{"id":null,"label":"purge.utils.ts","path":"./src/index.ts + 24 modules (concatenated)/src/utils/http/purge.utils.ts","statSize":5834,"parsedSize":2359,"gzipSize":485,"inaccurateSizes":true},{"id":null,"label":"request.utils.ts","path":"./src/index.ts + 24 modules (concatenated)/src/utils/http/request.utils.ts","statSize":3015,"parsedSize":1219,"gzipSize":250,"inaccurateSizes":true}],"parsedSize":6596,"gzipSize":1356,"inaccurateSizes":true}],"parsedSize":10408,"gzipSize":2140,"inaccurateSizes":true},{"label":"lib","path":"./src/index.ts + 24 modules (concatenated)/src/lib","statSize":16052,"groups":[{"label":"getCategories","path":"./src/index.ts + 24 modules (concatenated)/src/lib/getCategories","statSize":113,"groups":[{"id":null,"label":"getCategories.ts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/getCategories/getCategories.ts","statSize":113,"parsedSize":45,"gzipSize":9,"inaccurateSizes":true}],"parsedSize":45,"gzipSize":9,"inaccurateSizes":true},{"label":"getProductDetails","path":"./src/index.ts + 24 modules (concatenated)/src/lib/getProductDetails","statSize":3795,"groups":[{"id":null,"label":"getProductDetails.ts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/getProductDetails/getProductDetails.ts","statSize":3795,"parsedSize":1535,"gzipSize":315,"inaccurateSizes":true}],"parsedSize":1535,"gzipSize":315,"inaccurateSizes":true},{"label":"getProducts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/getProducts","statSize":3669,"groups":[{"id":null,"label":"getProducts.ts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/getProducts/getProducts.ts","statSize":3669,"parsedSize":1484,"gzipSize":305,"inaccurateSizes":true}],"parsedSize":1484,"gzipSize":305,"inaccurateSizes":true},{"label":"getRecommendedProducts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/getRecommendedProducts","statSize":133,"groups":[{"id":null,"label":"getRecommendedProducts.ts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/getRecommendedProducts/getRecommendedProducts.ts","statSize":133,"parsedSize":53,"gzipSize":11,"inaccurateSizes":true}],"parsedSize":53,"gzipSize":11,"inaccurateSizes":true},{"label":"getRelatedProducts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/getRelatedProducts","statSize":125,"groups":[{"id":null,"label":"getRelatedProducts.ts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/getRelatedProducts/getRelatedProducts.ts","statSize":125,"parsedSize":50,"gzipSize":10,"inaccurateSizes":true}],"parsedSize":50,"gzipSize":10,"inaccurateSizes":true},{"label":"getStoreDetails","path":"./src/index.ts + 24 modules (concatenated)/src/lib/getStoreDetails","statSize":3699,"groups":[{"id":null,"label":"getStoreDetails.ts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/getStoreDetails/getStoreDetails.ts","statSize":3699,"parsedSize":1496,"gzipSize":307,"inaccurateSizes":true}],"parsedSize":1496,"gzipSize":307,"inaccurateSizes":true},{"label":"registerModifiersForm","path":"./src/index.ts + 24 modules (concatenated)/src/lib/registerModifiersForm","statSize":1977,"groups":[{"id":null,"label":"registerModifiersForm.ts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/registerModifiersForm/registerModifiersForm.ts","statSize":1977,"parsedSize":799,"gzipSize":164,"inaccurateSizes":true}],"parsedSize":799,"gzipSize":164,"inaccurateSizes":true},{"label":"validateProduct","path":"./src/index.ts + 24 modules (concatenated)/src/lib/validateProduct","statSize":77,"groups":[{"id":null,"label":"validateProduct.ts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/validateProduct/validateProduct.ts","statSize":77,"parsedSize":31,"gzipSize":6,"inaccurateSizes":true}],"parsedSize":31,"gzipSize":6,"inaccurateSizes":true},{"label":"initProducts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/initProducts","statSize":1521,"groups":[{"id":null,"label":"initProducts.ts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/initProducts/initProducts.ts","statSize":1521,"parsedSize":615,"gzipSize":126,"inaccurateSizes":true}],"parsedSize":615,"gzipSize":126,"inaccurateSizes":true},{"id":null,"label":"common.ts","path":"./src/index.ts + 24 modules (concatenated)/src/lib/common.ts","statSize":943,"parsedSize":381,"gzipSize":78,"inaccurateSizes":true}],"parsedSize":6493,"gzipSize":1335,"inaccurateSizes":true},{"label":"services","path":"./src/index.ts + 24 modules (concatenated)/src/services","statSize":8701,"groups":[{"label":"fetchProductDetails","path":"./src/index.ts + 24 modules (concatenated)/src/services/fetchProductDetails","statSize":2903,"groups":[{"id":null,"label":"fetchProductDetails.service.tsx","path":"./src/index.ts + 24 modules (concatenated)/src/services/fetchProductDetails/fetchProductDetails.service.tsx","statSize":2903,"parsedSize":1174,"gzipSize":241,"inaccurateSizes":true}],"parsedSize":1174,"gzipSize":241,"inaccurateSizes":true},{"label":"fetchProducts","path":"./src/index.ts + 24 modules (concatenated)/src/services/fetchProducts","statSize":2897,"groups":[{"id":null,"label":"fetchProducts.service.tsx","path":"./src/index.ts + 24 modules (concatenated)/src/services/fetchProducts/fetchProducts.service.tsx","statSize":2897,"parsedSize":1171,"gzipSize":240,"inaccurateSizes":true}],"parsedSize":1171,"gzipSize":240,"inaccurateSizes":true},{"label":"fetchStoreDetails","path":"./src/index.ts + 24 modules (concatenated)/src/services/fetchStoreDetails","statSize":2901,"groups":[{"id":null,"label":"fetchStoreDetails.service.tsx","path":"./src/index.ts + 24 modules (concatenated)/src/services/fetchStoreDetails/fetchStoreDetails.service.tsx","statSize":2901,"parsedSize":1173,"gzipSize":241,"inaccurateSizes":true}],"parsedSize":1173,"gzipSize":241,"inaccurateSizes":true}],"parsedSize":3519,"gzipSize":723,"inaccurateSizes":true},{"label":"config","path":"./src/index.ts + 24 modules (concatenated)/src/config","statSize":1588,"groups":[{"id":null,"label":"constants.ts","path":"./src/index.ts + 24 modules (concatenated)/src/config/constants.ts","statSize":1588,"parsedSize":642,"gzipSize":132,"inaccurateSizes":true}],"parsedSize":642,"gzipSize":132,"inaccurateSizes":true},{"label":"errors","path":"./src/index.ts + 24 modules (concatenated)/src/errors","statSize":2429,"groups":[{"id":null,"label":"api.errors.ts","path":"./src/index.ts + 24 modules (concatenated)/src/errors/api.errors.ts","statSize":2429,"parsedSize":982,"gzipSize":202,"inaccurateSizes":true}],"parsedSize":982,"gzipSize":202,"inaccurateSizes":true}],"parsedSize":22433,"gzipSize":4613,"inaccurateSizes":true}]}],"parsedSize":22438,"gzipSize":4614}]},{"label":"vendors.bundle.js","isAsset":true,"statSize":20,"parsedSize":1175,"gzipSize":528,"groups":[{"label":"src","path":"./src","statSize":20,"groups":[{"id":22,"label":"vendors.ts","path":"./src/vendors.ts","statSize":20,"parsedSize":15,"gzipSize":35}],"parsedSize":15,"gzipSize":35}]}];
|
|
50
50
|
window.defaultSizes = "parsed";
|
|
51
51
|
</script>
|
|
52
52
|
</body>
|
|
@@ -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,13 @@
|
|
|
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 };
|
|
@@ -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,15 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
timeout?: number | undefined;
|
|
9
|
+
accountId?: string | number | undefined;
|
|
10
|
+
productId?: string | number | undefined;
|
|
11
|
+
vendorId?: string | number | undefined;
|
|
12
|
+
storeId?: number | undefined;
|
|
13
|
+
catalogueId?: string | number | undefined;
|
|
14
|
+
categoryId?: string | number | undefined;
|
|
15
|
+
};
|
|
@@ -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 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -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 { 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,15 @@
|
|
|
1
|
-
import { ArtisanApp, ArtisanHints, Product } from "@artisan-commerce/types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
export interface ProductHints extends Omit<ArtisanHints, "accountId"> {
|
|
3
|
+
accountId?: ArtisanHints["accountId"];
|
|
4
|
+
}
|
|
5
|
+
export interface InitProductsConfig extends ProductHints {
|
|
6
|
+
timeout?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface GlobalState extends InitProductsConfig {
|
|
9
|
+
artisanApp: ArtisanApp | undefined;
|
|
10
|
+
apiCache: ApiCache;
|
|
11
|
+
expiresAt: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ApiCache {
|
|
14
|
+
[key: string]: Product | Product[];
|
|
15
|
+
}
|