@artisan-commerce/products 0.9.0-canary.53 → 0.9.0-canary.6
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/CHANGELOG.md +395 -0
- package/build/config/constants.d.ts +12 -0
- package/build/errors/api.errors.d.ts +7 -0
- package/build/index.d.ts +17 -0
- package/build/lib/getCategories/getCategories.d.ts +1 -0
- package/build/lib/getCategories/getCategories.test.d.ts +1 -0
- package/build/lib/getProductDetails/getProductDetails.d.ts +10 -0
- package/build/lib/getProductDetails/getProductDetails.test.d.ts +1 -0
- package/build/lib/getProductDetails/getProductDetails.types.d.ts +7 -0
- package/build/lib/getProducts/getProducts.d.ts +11 -0
- package/build/lib/getProducts/getProducts.test.d.ts +1 -0
- package/build/lib/getProducts/getProducts.types.d.ts +3 -0
- package/build/lib/getRecommendedProducts/getRecommendedProducts.d.ts +1 -0
- package/build/lib/getRecommendedProducts/getRecommendedProducts.test.d.ts +1 -0
- package/build/lib/getRelatedProducts/getRelatedProducts.d.ts +1 -0
- package/build/lib/getRelatedProducts/getRelatedProducts.test.d.ts +1 -0
- package/build/lib/getStoreDetails/getStoreDetails.d.ts +16 -0
- package/build/lib/getStoreDetails/getStoreDetails.test.d.ts +1 -0
- package/build/lib/getStoreDetails/getStoreDetails.types.d.ts +7 -0
- package/build/lib/initProducts/initProducts.d.ts +14 -0
- package/build/lib/registerModifiersForm/registerModifiersForm.d.ts +21 -0
- package/build/lib/registerModifiersForm/registerModifiersForm.test.d.ts +1 -0
- package/build/lib/registerModifiersForm/registerModifiersForm.types.d.ts +34 -0
- package/build/lib/validateProduct/validateProduct.d.ts +7 -0
- package/build/lib/validateProduct/validateProduct.test.d.ts +1 -0
- package/build/lib/validateProduct/validateProduct.types.d.ts +2 -0
- package/build/main.bundle.js +19 -0
- package/build/report.json +1 -0
- package/build/services/fetchProductDetails/fetchProductDetails.service.d.ts +3 -0
- package/build/services/fetchProductDetails/fetchProductDetails.service.mock.d.ts +2 -0
- package/build/services/fetchProductDetails/fetchProductDetails.service.types.d.ts +9 -0
- package/build/services/fetchProducts/fetchPRoducts.service.mock.d.ts +2 -0
- package/build/services/fetchProducts/fetchProducts.service.d.ts +2 -0
- package/build/services/fetchProducts/fetchProducts.service.types.d.ts +1 -0
- package/build/services/fetchStoreDetails/fetchStoreDetails.service.d.ts +2 -0
- package/build/services/fetchStoreDetails/fetchStoreDetails.service.types.d.ts +1 -0
- package/build/tests/exports.test.d.ts +1 -0
- package/build/types/common.types.d.ts +23 -0
- package/build/types/http.types.d.ts +96 -0
- package/build/types/modifiers.types.d.ts +62 -0
- package/build/utils/assertions/assertions.utils.d.ts +8 -0
- package/build/utils/calculations/calculations.utils.d.ts +20 -0
- package/build/utils/calculations/calculations.utils.test.d.ts +1 -0
- package/build/utils/calculations/calculations.utils.types.d.ts +11 -0
- package/build/utils/common.utils.d.ts +3 -0
- package/build/utils/http/http.utils.d.ts +5 -0
- package/build/utils/http/purge.utils.d.ts +38 -0
- package/build/utils/http/request.utils.d.ts +12 -0
- package/build/utils/modifiers/common.utils.d.ts +17 -0
- package/build/utils/modifiers/form.utils.d.ts +17 -0
- package/build/utils/modifiers/handleChange.utils.d.ts +1 -0
- package/build/utils/modifiers/renderer.utils.d.ts +11 -0
- package/build/utils/modifiers/rendererTraversal.utils.d.ts +4 -0
- package/build/utils/modifiers/updateRenderer.utils.d.ts +5 -0
- package/build/utils/questionsAndAnswers/questionsAndAnswers.utils.d.ts +5 -0
- package/build/utils/questionsAndAnswers/questionsAndAnswers.utils.test.d.ts +1 -0
- package/build/utils/services.utils.d.ts +6 -0
- package/build/utils/state/state.utils.d.ts +2 -0
- package/build/utils/transformers/api.transformer.d.ts +12 -0
- package/build/utils/transformers/transformers.utils.d.ts +10 -0
- package/build/vendors.bundle.js +1 -0
- package/build/vendors.d.ts +1 -0
- package/package.json +60 -39
- package/dist/bundle.cjs.js +0 -1129
- package/dist/bundle.cjs.js.map +0 -1
- package/dist/bundle.d.ts +0 -164
- package/dist/bundle.esm.js +0 -1120
- package/dist/bundle.esm.js.map +0 -1
- package/dist/bundle.umd.js +0 -1135
- package/dist/bundle.umd.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [0.9.0-canary.6](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/products@0.9.0-canary.5...@artisan-commerce/products@0.9.0-canary.6) (2021-08-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.9.0-canary.5](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/products@0.9.0-canary.4...@artisan-commerce/products@0.9.0-canary.5) (2021-08-12)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.9.0-canary.4](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/products@0.9.0-canary.3...@artisan-commerce/products@0.9.0-canary.4) (2021-08-12)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [0.9.0-canary.3](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/products@0.9.0-canary.2...@artisan-commerce/products@0.9.0-canary.3) (2021-08-12)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* **modifiers:** fix modifiers images typing to CDNImage ([04de8b6](https://bitbucket.org/tradesystem/artisn_sdk/commit/04de8b6ecc3551a3610e4e4220fcbd507e7d40c1))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## [0.9.0-canary.2](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/products@0.9.0-canary.1...@artisan-commerce/products@0.9.0-canary.2) (2021-08-11)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* **global:** rebrand artisan-commerce to artisn ([b2688b1](https://bitbucket.org/tradesystem/artisn_sdk/commit/b2688b107757ed82791c0be49439e9fb28f78b6d))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## [0.9.0-canary.1](https://bitbucket.org/tradesystem/artisan_sdk/compare/@artisan-commerce/products@0.9.0-canary.0...@artisan-commerce/products@0.9.0-canary.1) (2021-08-06)
|
|
49
|
+
|
|
50
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## [0.9.0-canary.0](https://bitbucket.org/tradesystem/artisan_sdk/compare/@artisan-commerce/products@0.8.3-canary.0...@artisan-commerce/products@0.9.0-canary.0) (2021-08-04)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Features
|
|
60
|
+
|
|
61
|
+
* **global:** add and export missing builders and types ([67ad6ac](https://bitbucket.org/tradesystem/artisan_sdk/commit/67ad6ac8e563aa53c2c62dac86b65f3435a0b16a))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### [0.8.3-canary.0](https://bitbucket.org/tradesystem/artisan_sdk/compare/@artisan-commerce/products@0.8.2...@artisan-commerce/products@0.8.3-canary.0) (2021-07-30)
|
|
66
|
+
|
|
67
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### [0.8.2](https://bitbucket.org/tradesystem/artisan_sdk/compare/@artisan-commerce/products@0.8.2-canary.18...@artisan-commerce/products@0.8.2) (2021-07-30)
|
|
74
|
+
|
|
75
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### [0.8.2-canary.18](https://bitbucket.org/tradesystem/artisan_sdk/compare/@artisan-commerce/products@0.8.2-canary.17...@artisan-commerce/products@0.8.2-canary.18) (2021-07-26)
|
|
82
|
+
|
|
83
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### [0.8.2-canary.17](https://bitbucket.org/tradesystem/artisan_sdk/compare/@artisan-commerce/products@0.8.2-canary.16...@artisan-commerce/products@0.8.2-canary.17) (2021-06-18)
|
|
90
|
+
|
|
91
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### [0.8.2-canary.16](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.15...@artisan-commerce/products@0.8.2-canary.16) (2021-06-10)
|
|
98
|
+
|
|
99
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### [0.8.2-canary.15](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.14...@artisan-commerce/products@0.8.2-canary.15) (2021-06-09)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Bug Fixes
|
|
109
|
+
|
|
110
|
+
* **global:** update cache in users and products ([524255d](https://bitbucket.org/tradesystem/artisan_monorepo/commit/524255d905b242abc52405574beee5886c2977d7))
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### [0.8.2-canary.14](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.13...@artisan-commerce/products@0.8.2-canary.14) (2021-05-12)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Bug Fixes
|
|
118
|
+
|
|
119
|
+
* **global:** fix every package that used the buildServiceHeaders function ([23fa078](https://bitbucket.org/tradesystem/artisan_monorepo/commit/23fa0780942d431e6a7006cadfc5aa423be85ac5))
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### [0.8.2-canary.13](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.12...@artisan-commerce/products@0.8.2-canary.13) (2021-05-07)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Bug Fixes
|
|
127
|
+
|
|
128
|
+
* **products:** add control when the answers of a product come with no questionsAndAnswers ([1dc684f](https://bitbucket.org/tradesystem/artisan_monorepo/commit/1dc684fe0b62de8fdbeb829a5ce96c4f4f838825))
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### [0.8.2-canary.12](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.11...@artisan-commerce/products@0.8.2-canary.12) (2021-04-27)
|
|
133
|
+
|
|
134
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### [0.8.2-canary.11](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.10...@artisan-commerce/products@0.8.2-canary.11) (2021-04-22)
|
|
141
|
+
|
|
142
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
### [0.8.2-canary.10](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.9...@artisan-commerce/products@0.8.2-canary.10) (2021-04-21)
|
|
149
|
+
|
|
150
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
### [0.8.2-canary.9](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.8...@artisan-commerce/products@0.8.2-canary.9) (2021-04-16)
|
|
157
|
+
|
|
158
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### [0.8.2-canary.8](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.7...@artisan-commerce/products@0.8.2-canary.8) (2021-04-06)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### Performance Improvements
|
|
168
|
+
|
|
169
|
+
* **global:** move typescript to be a global dependency ([32370e1](https://bitbucket.org/tradesystem/artisan_monorepo/commit/32370e134f1bcc4f79c55e2bae0ee22fee193e77))
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### [0.8.2-canary.7](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.6...@artisan-commerce/products@0.8.2-canary.7) (2021-04-01)
|
|
174
|
+
|
|
175
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
### [0.8.2-canary.6](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.5...@artisan-commerce/products@0.8.2-canary.6) (2021-03-30)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### Performance Improvements
|
|
185
|
+
|
|
186
|
+
* **global:** add esbuild opt-in for dev ([f760449](https://bitbucket.org/tradesystem/artisan_monorepo/commit/f7604492fc17967bad75583a49d91a51cd6241aa))
|
|
187
|
+
* **global:** improve jest performance ([8c36173](https://bitbucket.org/tradesystem/artisan_monorepo/commit/8c36173df7e7cbfad40888499c81fcf7d11a7105))
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
### [0.8.2-canary.5](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.4...@artisan-commerce/products@0.8.2-canary.5) (2021-03-19)
|
|
192
|
+
|
|
193
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
### [0.8.2-canary.4](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.3...@artisan-commerce/products@0.8.2-canary.4) (2021-03-19)
|
|
200
|
+
|
|
201
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
### [0.8.2-canary.3](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.2...@artisan-commerce/products@0.8.2-canary.3) (2021-03-18)
|
|
208
|
+
|
|
209
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### [0.8.2-canary.2](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.1...@artisan-commerce/products@0.8.2-canary.2) (2021-03-18)
|
|
216
|
+
|
|
217
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
### [0.8.2-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.2-canary.0...@artisan-commerce/products@0.8.2-canary.1) (2021-03-18)
|
|
224
|
+
|
|
225
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### [0.8.2-canary.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.1...@artisan-commerce/products@0.8.2-canary.0) (2021-03-12)
|
|
232
|
+
|
|
233
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
### [0.8.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.1-canary.1...@artisan-commerce/products@0.8.1) (2021-03-02)
|
|
240
|
+
|
|
241
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
### [0.8.1-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.1-canary.0...@artisan-commerce/products@0.8.1-canary.1) (2021-02-25)
|
|
248
|
+
|
|
249
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
### [0.8.1-canary.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.0...@artisan-commerce/products@0.8.1-canary.0) (2021-02-25)
|
|
256
|
+
|
|
257
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
## [0.8.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.0-canary.4...@artisan-commerce/products@0.8.0) (2021-02-25)
|
|
264
|
+
|
|
265
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
## [0.8.0-canary.4](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.0-canary.3...@artisan-commerce/products@0.8.0-canary.4) (2021-02-25)
|
|
272
|
+
|
|
273
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
## [0.8.0-canary.3](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.0-canary.2...@artisan-commerce/products@0.8.0-canary.3) (2021-02-25)
|
|
280
|
+
|
|
281
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
## [0.8.0-canary.2](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.0-canary.1...@artisan-commerce/products@0.8.0-canary.2) (2021-02-23)
|
|
288
|
+
|
|
289
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
## [0.8.0-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.8.0-canary.0...@artisan-commerce/products@0.8.0-canary.1) (2021-02-12)
|
|
296
|
+
|
|
297
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
## [0.8.0-canary.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.7.11-canary.10...@artisan-commerce/products@0.8.0-canary.0) (2021-02-08)
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
### Features
|
|
307
|
+
|
|
308
|
+
* **products:** support custome types on modifier groups and normal modifers ([dda6c03](https://bitbucket.org/tradesystem/artisan_monorepo/commit/dda6c03ee8241a5719dcf1745c6a7def83650bda))
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
### [0.7.11-canary.10](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.7.11-canary.9...@artisan-commerce/products@0.7.11-canary.10) (2021-02-05)
|
|
313
|
+
|
|
314
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
### [0.7.11-canary.9](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.7.11-canary.8...@artisan-commerce/products@0.7.11-canary.9) (2021-02-05)
|
|
321
|
+
|
|
322
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
### [0.7.11-canary.8](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.7.11-canary.7...@artisan-commerce/products@0.7.11-canary.8) (2021-02-05)
|
|
329
|
+
|
|
330
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
### [0.7.11-canary.7](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.7.11-canary.6...@artisan-commerce/products@0.7.11-canary.7) (2021-02-05)
|
|
337
|
+
|
|
338
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
### [0.7.11-canary.6](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.7.11-canary.5...@artisan-commerce/products@0.7.11-canary.6) (2021-02-04)
|
|
345
|
+
|
|
346
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
### [0.7.11-canary.5](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.7.11-canary.4...@artisan-commerce/products@0.7.11-canary.5) (2021-02-04)
|
|
353
|
+
|
|
354
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
### [0.7.11-canary.4](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.7.11-canary.3...@artisan-commerce/products@0.7.11-canary.4) (2021-02-04)
|
|
361
|
+
|
|
362
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
### [0.7.11-canary.3](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.7.11-canary.2...@artisan-commerce/products@0.7.11-canary.3) (2021-02-04)
|
|
369
|
+
|
|
370
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
### [0.7.11-canary.2](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.7.11-canary.1...@artisan-commerce/products@0.7.11-canary.2) (2021-02-04)
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
### Bug Fixes
|
|
380
|
+
|
|
381
|
+
* **products:** fix ProductsHTTPConfig import that was referencing the build folder ([e4e94e1](https://bitbucket.org/tradesystem/artisan_monorepo/commit/e4e94e12cd140ac9b67b7b347536a454e860529f))
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
### [0.7.11-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.7.11-canary.0...@artisan-commerce/products@0.7.11-canary.1) (2021-02-03)
|
|
386
|
+
|
|
387
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
## [0.7.11-canary.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/products@0.7.10...@artisan-commerce/products@0.7.11-canary.0) (2021-02-03)
|
|
394
|
+
|
|
395
|
+
**Note:** Version bump only for package @artisan-commerce/products
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Filters } from "../types/http.types";
|
|
2
|
+
declare const CONSTANTS: {
|
|
3
|
+
HEADERS: string[];
|
|
4
|
+
FILTERS: (keyof Filters)[];
|
|
5
|
+
GROUPS: "category"[];
|
|
6
|
+
ORDER_FIELDS: string[];
|
|
7
|
+
ORDER_TYPES: (import("../types/http.types").ORDER_TYPES | undefined)[];
|
|
8
|
+
ORDER_METHODS: ("asc" | "desc" | undefined)[];
|
|
9
|
+
PAGINATION: string[];
|
|
10
|
+
ADDITIONAL_FILTERS: string[];
|
|
11
|
+
};
|
|
12
|
+
export default CONSTANTS;
|
|
@@ -0,0 +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;
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as transformers from "./utils/transformers/transformers.utils";
|
|
2
|
+
import * as assertions from "./utils/assertions/assertions.utils";
|
|
3
|
+
import * as modifierUtils from "./utils/questionsAndAnswers/questionsAndAnswers.utils";
|
|
4
|
+
export { getCategories } from "./lib/getCategories/getCategories";
|
|
5
|
+
export { getProductDetails } from "./lib/getProductDetails/getProductDetails";
|
|
6
|
+
export { getProducts } from "./lib/getProducts/getProducts";
|
|
7
|
+
export { getRecommendedProducts } from "./lib/getRecommendedProducts/getRecommendedProducts";
|
|
8
|
+
export { getRelatedProducts } from "./lib/getRelatedProducts/getRelatedProducts";
|
|
9
|
+
export { getStoreDetails } from "./lib/getStoreDetails/getStoreDetails";
|
|
10
|
+
export { registerModifiersForm } from "./lib/registerModifiersForm/registerModifiersForm";
|
|
11
|
+
export { validateProduct } from "./lib/validateProduct/validateProduct";
|
|
12
|
+
export { initProducts, closeProducts } from "./lib/initProducts/initProducts";
|
|
13
|
+
export { getProductTotals } from "./utils/calculations/calculations.utils";
|
|
14
|
+
export { transformers, assertions, modifierUtils };
|
|
15
|
+
export type { ModifierGroupRenderer } from "./types/modifiers.types";
|
|
16
|
+
export type { ModifierRenderer } from "./types/modifiers.types";
|
|
17
|
+
export type { ModifiersForm } from "./lib/registerModifiersForm/registerModifiersForm.types";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCategories: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FetchProductDetailsConfig } from "./getProductDetails.types";
|
|
2
|
+
export declare const getProductDetails: (productId: number | string, config: FetchProductDetailsConfig) => Promise<{
|
|
3
|
+
pagination: import("../../types/http.types").PaginationResponse;
|
|
4
|
+
data: unknown;
|
|
5
|
+
error: string | import("@artisan-commerce/cache/build/types/http.types").ResponseError | undefined;
|
|
6
|
+
hints: {
|
|
7
|
+
[key: string]: string | number | undefined;
|
|
8
|
+
};
|
|
9
|
+
config: import("@artisan-commerce/types").ArtisnRequest;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FetchProductsConfig } from "./getProducts.types";
|
|
2
|
+
import { BaseProduct, CategoryWithProducts } from "@artisan-commerce/types";
|
|
3
|
+
export declare const getProducts: <R extends BaseProduct[] | CategoryWithProducts[] = BaseProduct[]>(config: FetchProductsConfig) => Promise<{
|
|
4
|
+
pagination: import("../../types/http.types").PaginationResponse;
|
|
5
|
+
data: unknown;
|
|
6
|
+
error: string | import("@artisan-commerce/cache/build/types/http.types").ResponseError | undefined;
|
|
7
|
+
hints: {
|
|
8
|
+
[key: string]: string | number | undefined;
|
|
9
|
+
};
|
|
10
|
+
config: import("@artisan-commerce/types").ArtisnRequest;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getRecommendedProducts: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getRelatedProducts: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FetchStoreDetailsConfig } from "./getStoreDetails.types";
|
|
2
|
+
/**
|
|
3
|
+
* Fetches all categories and products from the given store
|
|
4
|
+
*
|
|
5
|
+
* @param config config to fetch the store details
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
8
|
+
export declare const getStoreDetails: (config: FetchStoreDetailsConfig) => Promise<{
|
|
9
|
+
pagination: import("../../types/http.types").PaginationResponse;
|
|
10
|
+
data: unknown;
|
|
11
|
+
error: string | import("@artisan-commerce/cache/build/types/http.types").ResponseError | undefined;
|
|
12
|
+
hints: {
|
|
13
|
+
[key: string]: string | number | undefined;
|
|
14
|
+
};
|
|
15
|
+
config: import("@artisan-commerce/types").ArtisnRequest;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ArtisnApp } from "@artisan-commerce/types";
|
|
2
|
+
import { InitProductsConfig } from "../../types/common.types";
|
|
3
|
+
/**
|
|
4
|
+
* Initialize products metadata, stores initial global state for future needs.
|
|
5
|
+
* @since 1.0
|
|
6
|
+
* @param artisnApp: An artisn initialized app.
|
|
7
|
+
* @param config: Global products state that can be configure at the function call level
|
|
8
|
+
*/
|
|
9
|
+
export declare const initProducts: (artisnApp: ArtisnApp, config?: InitProductsConfig) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Closes all conections and resets the library to its default state
|
|
12
|
+
* @since 1.0
|
|
13
|
+
*/
|
|
14
|
+
export declare const closeProducts: () => void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Product } from "@artisan-commerce/types";
|
|
2
|
+
import { ModifiersFormCallback } from "./registerModifiersForm.types";
|
|
3
|
+
import { ModifiersFormUnsuscriber } from "./registerModifiersForm.types";
|
|
4
|
+
/**
|
|
5
|
+
* Creates a product modifiers form listener that handles the input change
|
|
6
|
+
* events automatically.
|
|
7
|
+
*
|
|
8
|
+
* @param {Product} product The product that will be listened
|
|
9
|
+
* @param {ModifiersFormCallback} callback Returns a snapshot of the current
|
|
10
|
+
* state of the form
|
|
11
|
+
* @returns {ModifiersFormUnsuscriber} Returns a function that when called it
|
|
12
|
+
* stops listening to the form
|
|
13
|
+
*/
|
|
14
|
+
export declare const registerModifiersForm: (product: Product, callback: ModifiersFormCallback) => ModifiersFormUnsuscriber;
|
|
15
|
+
/**
|
|
16
|
+
* Function that when called it stops listening to the form.
|
|
17
|
+
*
|
|
18
|
+
* @param {string} productId The id of the product that will be deleted from the
|
|
19
|
+
* form
|
|
20
|
+
*/
|
|
21
|
+
export declare const unsuscriber: (productId: Product["productId"]) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CartProduct } from "@artisan-commerce/types";
|
|
2
|
+
import { ValidateRenderer } from "../validateProduct/validateProduct.types";
|
|
3
|
+
import { ModifierTypes, RendererStatus } from "../../types/modifiers.types";
|
|
4
|
+
import { ModifierGroupRenderer } from "../../types/modifiers.types";
|
|
5
|
+
export interface ModifiersForm {
|
|
6
|
+
renderer: ModifierGroupRenderer[];
|
|
7
|
+
product: CartProduct;
|
|
8
|
+
validate: ValidateRenderer;
|
|
9
|
+
status: RendererStatus;
|
|
10
|
+
}
|
|
11
|
+
export interface ModifiersFormInternal extends ModifiersForm {
|
|
12
|
+
callback: ModifiersFormCallback;
|
|
13
|
+
}
|
|
14
|
+
export declare type ModifiersFormCallback = (form: ModifiersForm) => void;
|
|
15
|
+
export declare type ModifiersFormUnsuscriber = () => void;
|
|
16
|
+
export declare type HandleChangeFunction = (amount: number) => void;
|
|
17
|
+
export interface BuildModifierRendererConfig {
|
|
18
|
+
rootId: string;
|
|
19
|
+
min: number;
|
|
20
|
+
max: number;
|
|
21
|
+
type: ModifierTypes;
|
|
22
|
+
modifiersCount: number;
|
|
23
|
+
amount: number;
|
|
24
|
+
path: string[];
|
|
25
|
+
}
|
|
26
|
+
export interface BuildModifierGroupConfig {
|
|
27
|
+
amount: number;
|
|
28
|
+
rootId: string;
|
|
29
|
+
path: string[];
|
|
30
|
+
}
|
|
31
|
+
export interface BuildRendererConfig {
|
|
32
|
+
rootId: string;
|
|
33
|
+
path: string[];
|
|
34
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Product } from "@artisan-commerce/types";
|
|
2
|
+
import { RendererStatus } from "../../types/modifiers.types";
|
|
3
|
+
import { ModifierGroupRenderer } from "../../types/modifiers.types";
|
|
4
|
+
import { ModifierRenderer } from "../../types/modifiers.types";
|
|
5
|
+
export declare const validateProduct: (productId: Product["productId"]) => RendererStatus;
|
|
6
|
+
export declare const validateChildModifiers: (group: ModifierGroupRenderer, renderer: ModifierGroupRenderer[], productId: Product["productId"], path: string[]) => ModifierGroupRenderer[];
|
|
7
|
+
export declare const validateChildGroups: (modifier: ModifierRenderer, renderer: ModifierGroupRenderer[], productId: Product["productId"], path: string[]) => ModifierGroupRenderer[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|