@artisan-commerce/products 0.7.3 → 0.7.4

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.
Files changed (61) hide show
  1. package/README.md +93 -93
  2. package/build/report.json +1 -1
  3. package/build/src/config/constants.d.ts +23 -23
  4. package/build/src/errors/api.errors.d.ts +7 -7
  5. package/build/src/index.d.ts +16 -16
  6. package/build/src/lib/aritmetics.d.ts +1 -1
  7. package/build/src/lib/common.d.ts +16 -16
  8. package/build/src/lib/getCategories/getCategories.d.ts +1 -1
  9. package/build/src/lib/getCategories/getCategories.test.d.ts +1 -1
  10. package/build/src/lib/getProductDetails/getProductDetails.d.ts +7 -7
  11. package/build/src/lib/getProductDetails/getProductDetails.test.d.ts +1 -1
  12. package/build/src/lib/getProductDetails/getProductDetails.types.d.ts +7 -7
  13. package/build/src/lib/getProducts/getProducts.d.ts +7 -7
  14. package/build/src/lib/getProducts/getProducts.test.d.ts +1 -1
  15. package/build/src/lib/getProducts/getProducts.types.d.ts +3 -3
  16. package/build/src/lib/getRecommendedProducts/getRecommendedProducts.d.ts +1 -1
  17. package/build/src/lib/getRecommendedProducts/getRecommendedProducts.test.d.ts +1 -1
  18. package/build/src/lib/getRelatedProducts/getRelatedProducts.d.ts +1 -1
  19. package/build/src/lib/getRelatedProducts/getRelatedProducts.test.d.ts +1 -1
  20. package/build/src/lib/getStoreDetails/getStoreDetails.d.ts +7 -7
  21. package/build/src/lib/getStoreDetails/getStoreDetails.test.d.ts +1 -1
  22. package/build/src/lib/getStoreDetails/getStoreDetails.types.d.ts +7 -7
  23. package/build/src/lib/initProducts/initProducts.d.ts +10 -10
  24. package/build/src/lib/registerModifiersForm/registerModifiersForm.d.ts +3 -3
  25. package/build/src/lib/registerModifiersForm/registerModifiersForm.test.d.ts +1 -1
  26. package/build/src/lib/registerModifiersForm/registerModifiersForm.types.d.ts +34 -34
  27. package/build/src/lib/validateProduct/validateProduct.d.ts +1 -1
  28. package/build/src/lib/validateProduct/validateProduct.test.d.ts +1 -1
  29. package/build/src/lib/validateProduct/validateProduct.types.d.ts +2 -2
  30. package/build/src/services/fetchProductDetails/fetchProductDetails.service.d.ts +2 -2
  31. package/build/src/services/fetchProductDetails/fetchProductDetails.service.mock.d.ts +2 -2
  32. package/build/src/services/fetchProductDetails/fetchProductDetails.service.types.d.ts +1 -1
  33. package/build/src/services/fetchProducts/fetchPRoducts.service.mock.d.ts +2 -2
  34. package/build/src/services/fetchProducts/fetchProducts.service.d.ts +2 -2
  35. package/build/src/services/fetchProducts/fetchProducts.service.types.d.ts +1 -1
  36. package/build/src/services/fetchStoreDetails/fetchStoreDetails.service.d.ts +2 -2
  37. package/build/src/services/fetchStoreDetails/fetchStoreDetails.service.types.d.ts +1 -1
  38. package/build/src/tests/exports.test.d.ts +1 -1
  39. package/build/src/types/common.types.d.ts +20 -20
  40. package/build/src/types/http.types.d.ts +66 -66
  41. package/build/src/types/modifiers.types.d.ts +57 -57
  42. package/build/src/utils/assertions/assertions.utils.d.ts +8 -8
  43. package/build/src/utils/bugsnag.d.ts +2 -2
  44. package/build/src/utils/caculations/calculations.utils.d.ts +17 -17
  45. package/build/src/utils/caculations/calculations.utils.test.d.ts +1 -1
  46. package/build/src/utils/caculations/calculations.utils.types.d.ts +6 -6
  47. package/build/src/utils/common.utils.d.ts +3 -3
  48. package/build/src/utils/http/cache.utils.d.ts +4 -4
  49. package/build/src/utils/http/http.utils.d.ts +9 -9
  50. package/build/src/utils/http/purge.utils.d.ts +38 -38
  51. package/build/src/utils/http/request.utils.d.ts +7 -7
  52. package/build/src/utils/modifiers/common.utils.d.ts +12 -12
  53. package/build/src/utils/modifiers/form.utils.d.ts +3 -3
  54. package/build/src/utils/modifiers/handleChange.utils.d.ts +1 -1
  55. package/build/src/utils/modifiers/renderer.utils.d.ts +11 -11
  56. package/build/src/utils/modifiers/rendererTraversal.utils.d.ts +4 -4
  57. package/build/src/utils/modifiers/updateRenderer.utils.d.ts +5 -5
  58. package/build/src/utils/transformers/api.transformer.d.ts +7 -7
  59. package/build/src/utils/transformers/transformers.utils.d.ts +9 -9
  60. package/build/src/vendors.d.ts +1 -1
  61. package/package.json +3 -3
package/README.md CHANGED
@@ -1,93 +1,93 @@
1
- ## Node Library Boilerplate
2
-
3
- This boilerplate was made to facilitate the creation of server-side or client-side node application. It comes with a powerful webpack & typescript configuration out of the box.
4
-
5
- ## New Project Configuration steps:
6
-
7
- 1. Change your project name and description in package.json.
8
- 1. Change default constants value in `src/config/constants.ts`.
9
- 1. In .env.[ENV] change the ENV variable to the environment you are currently developing for.
10
- 1. If you want to support the require syntax instead of import, change the module field in the tsconfig.json file to commonjs
11
- 1. Update the readme.md file
12
-
13
- ## File Structure
14
-
15
- General representation of the building pieces
16
-
17
- ## Available Scripts
18
-
19
- In the project directory, you can run:
20
-
21
- ### `npm start`
22
-
23
- Runs the app in the development mode.<br>
24
-
25
- ### `npm dev`
26
-
27
- Alias of npm start, for some developers convinience.
28
-
29
- ### `npm test`
30
-
31
- Launches the test runner in the interactive watch mode.<br>
32
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
33
-
34
- ### `npm run test:all`
35
-
36
- Run every test in a none interactive mode and create a coverage report.
37
-
38
- This command is perfect for pre push hooks.
39
-
40
- ### `npm run test:ci`
41
-
42
- Simulates a CI environment before running all tests
43
-
44
- ### `npm run check-types`
45
-
46
- Will attempt to compile the whole project including test files that are normally excluded.
47
-
48
- This command is perfect for verifing the project's integrity before commiting changes
49
-
50
- ### `npm run lint`
51
-
52
- Runs the configured linter to check for any lints in your code before deploying, developers must clean any lint before commiting or commints will not go through.
53
-
54
- ### `npm run prettier`
55
-
56
- Configure prettier, the files that should be included and excluded. This command should not be used by itself.
57
-
58
- ### `npm run format`
59
-
60
- Uses the prettier configuration to run prettier in write mode to all selected files. It will fix all format errors.
61
-
62
- ### `npm run check-format`
63
-
64
- Uses the prettier configuration to run prettier in read mode to all selected files. If any is bad formated, it will display a warning.
65
-
66
- ### `npm run build`
67
-
68
- Builds the app for production to the `build` folder.<br>
69
- It correctly bundles the project in production mode and optimizes the build for the best performance.
70
-
71
- ### `npm run validate`
72
-
73
- It validates the integrity of the project by running many of the static testing, unit/integration testing and e2e testing commands.
74
-
75
- ### `npm run validate:ci`
76
-
77
- Run a different series of commands than validate, the selected commands that are run are the ones appropiate to be run on CI. This command is not met to be run locally.
78
-
79
- ## Publishing your library
80
-
81
- To publish your library you will only need to run `npm publish`. We will take care of the rest. Things like creating a new build of your code will be done automatically. Just take into consideration to bump the project version following the semver methodology.
82
-
83
- ## Previewing your library
84
-
85
- When you are in the middle of the development of your new library, you find your self needing to test the current features you are developing. We recommend using `npm link` and a separte project for those purposes.
86
-
87
- If you want to test your app on a real app, then we recommend using `npm publish`. This method should be avoided during development.
88
-
89
- > ### Hope you are enjoying this boilerplate
90
- >
91
- > We are happy to add/update any additional request you may have. For intering ideas, please submit a new issue and we will take care of it.
92
- >
93
- > Happy coding! 🚀
1
+ ## Node Library Boilerplate
2
+
3
+ This boilerplate was made to facilitate the creation of server-side or client-side node application. It comes with a powerful webpack & typescript configuration out of the box.
4
+
5
+ ## New Project Configuration steps:
6
+
7
+ 1. Change your project name and description in package.json.
8
+ 1. Change default constants value in `src/config/constants.ts`.
9
+ 1. In .env.[ENV] change the ENV variable to the environment you are currently developing for.
10
+ 1. If you want to support the require syntax instead of import, change the module field in the tsconfig.json file to commonjs
11
+ 1. Update the readme.md file
12
+
13
+ ## File Structure
14
+
15
+ General representation of the building pieces
16
+
17
+ ## Available Scripts
18
+
19
+ In the project directory, you can run:
20
+
21
+ ### `npm start`
22
+
23
+ Runs the app in the development mode.<br>
24
+
25
+ ### `npm dev`
26
+
27
+ Alias of npm start, for some developers convinience.
28
+
29
+ ### `npm test`
30
+
31
+ Launches the test runner in the interactive watch mode.<br>
32
+ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
33
+
34
+ ### `npm run test:all`
35
+
36
+ Run every test in a none interactive mode and create a coverage report.
37
+
38
+ This command is perfect for pre push hooks.
39
+
40
+ ### `npm run test:ci`
41
+
42
+ Simulates a CI environment before running all tests
43
+
44
+ ### `npm run check-types`
45
+
46
+ Will attempt to compile the whole project including test files that are normally excluded.
47
+
48
+ This command is perfect for verifing the project's integrity before commiting changes
49
+
50
+ ### `npm run lint`
51
+
52
+ Runs the configured linter to check for any lints in your code before deploying, developers must clean any lint before commiting or commints will not go through.
53
+
54
+ ### `npm run prettier`
55
+
56
+ Configure prettier, the files that should be included and excluded. This command should not be used by itself.
57
+
58
+ ### `npm run format`
59
+
60
+ Uses the prettier configuration to run prettier in write mode to all selected files. It will fix all format errors.
61
+
62
+ ### `npm run check-format`
63
+
64
+ Uses the prettier configuration to run prettier in read mode to all selected files. If any is bad formated, it will display a warning.
65
+
66
+ ### `npm run build`
67
+
68
+ Builds the app for production to the `build` folder.<br>
69
+ It correctly bundles the project in production mode and optimizes the build for the best performance.
70
+
71
+ ### `npm run validate`
72
+
73
+ It validates the integrity of the project by running many of the static testing, unit/integration testing and e2e testing commands.
74
+
75
+ ### `npm run validate:ci`
76
+
77
+ Run a different series of commands than validate, the selected commands that are run are the ones appropiate to be run on CI. This command is not met to be run locally.
78
+
79
+ ## Publishing your library
80
+
81
+ To publish your library you will only need to run `npm publish`. We will take care of the rest. Things like creating a new build of your code will be done automatically. Just take into consideration to bump the project version following the semver methodology.
82
+
83
+ ## Previewing your library
84
+
85
+ When you are in the middle of the development of your new library, you find your self needing to test the current features you are developing. We recommend using `npm link` and a separte project for those purposes.
86
+
87
+ If you want to test your app on a real app, then we recommend using `npm publish`. This method should be avoided during development.
88
+
89
+ > ### Hope you are enjoying this boilerplate
90
+ >
91
+ > We are happy to add/update any additional request you may have. For intering ideas, please submit a new issue and we will take care of it.
92
+ >
93
+ > Happy coding! 🚀
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":140560,"parsedSize":58335,"gzipSize":14947,"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":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":73984,"groups":[{"id":24,"label":"index.ts + 30 modules (concatenated)","path":"./src/index.ts + 30 modules (concatenated)","statSize":73984,"parsedSize":29470,"gzipSize":6431,"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":481,"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":265,"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":1383,"inaccurateSizes":true}],"parsedSize":17544,"gzipSize":3828,"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":128,"inaccurateSizes":true}],"parsedSize":591,"gzipSize":128,"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":6430,"inaccurateSizes":true}]}],"parsedSize":29470,"gzipSize":6431}]},{"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;
@@ -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 {};