@artisan-commerce/builders 0.7.0-canary.48 → 0.7.0-canary.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +354 -0
- package/build/builders/account.builder.d.ts +17 -0
- package/build/builders/banner.builder.d.ts +35 -0
- package/build/builders/billingData.builder.d.ts +18 -0
- package/build/builders/catalogue.builder.d.ts +18 -0
- package/build/builders/category.builder.d.ts +36 -0
- package/build/builders/common.builder.d.ts +204 -0
- package/build/builders/country.builder.d.ts +51 -0
- package/build/builders/coupon.builder.d.ts +50 -0
- package/build/builders/fulfillment.builder.d.ts +187 -0
- package/build/builders/image.builder.d.ts +34 -0
- package/build/builders/notification.builder.d.ts +19 -0
- package/build/builders/order.builder.d.ts +167 -0
- package/build/builders/payment.builder.d.ts +93 -0
- package/build/builders/product.builder.d.ts +161 -0
- package/build/builders/settings.builder.d.ts +37 -0
- package/build/builders/shippingAddress.builder.d.ts +108 -0
- package/build/builders/shoppingCart.builder.d.ts +76 -0
- package/build/builders/store.builder.d.ts +106 -0
- package/build/builders/user.builder.d.ts +33 -0
- package/build/builders/vendor.builder.d.ts +17 -0
- package/build/config/constants.d.ts +2 -0
- package/build/data/products.data.d.ts +4 -0
- package/build/index.d.ts +23 -0
- package/build/lib/artisn.d.ts +5 -0
- package/build/main.bundle.js +10 -0
- package/build/report.json +1 -0
- package/build/types/artisn.types.d.ts +1 -0
- package/build/types/product.types.d.ts +6 -0
- package/build/utils/artisn.utils.d.ts +2 -0
- package/build/utils/common.utils.d.ts +8 -0
- package/build/vendors.bundle.js +1 -0
- package/build/vendors.d.ts +1 -0
- package/package.json +55 -62
- package/dist/bundle.cjs.js +0 -2635
- package/dist/bundle.cjs.js.map +0 -1
- package/dist/bundle.d.ts +0 -2954
- package/dist/bundle.esm.js +0 -2607
- package/dist/bundle.esm.js.map +0 -1
- package/dist/bundle.umd.js +0 -2638
- package/dist/bundle.umd.js.map +0 -1
- package/dist/noop.cjs.js +0 -332
- package/dist/noop.cjs.js.map +0 -1
- package/dist/noop.esm.js +0 -309
- package/dist/noop.esm.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,354 @@
|
|
|
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.7.0-canary.5](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.4...@artisan-commerce/builders@0.7.0-canary.5) (2021-08-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **global:** add CountryCode type and update user builder ([f94eb5d](https://bitbucket.org/tradesystem/artisn_sdk/commit/f94eb5d38e0725bd157398e3c51b3bb8b2592abc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [0.7.0-canary.4](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.3...@artisan-commerce/builders@0.7.0-canary.4) (2021-08-12)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **image-builders:** make bucket not use undefined ([5f7e95d](https://bitbucket.org/tradesystem/artisn_sdk/commit/5f7e95d6b0b4d4d1e47e38400b126a0ee9aa3478))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## [0.7.0-canary.3](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.2...@artisan-commerce/builders@0.7.0-canary.3) (2021-08-12)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **builders:** improve all image builders with the ability to add a topic and dimensions ([168f638](https://bitbucket.org/tradesystem/artisn_sdk/commit/168f638b439ba3ab4b00c861f1597e23d50d9fe6))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [0.7.0-canary.2](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.1...@artisan-commerce/builders@0.7.0-canary.2) (2021-08-11)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* **global:** rebrand artisan-commerce to artisn ([b2688b1](https://bitbucket.org/tradesystem/artisn_sdk/commit/b2688b107757ed82791c0be49439e9fb28f78b6d))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## [0.7.0-canary.1](https://bitbucket.org/tradesystem/artisan_sdk/compare/@artisan-commerce/builders@0.7.0-canary.0...@artisan-commerce/builders@0.7.0-canary.1) (2021-08-06)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
* **builders:** add missing builders and delete unused type ([361abac](https://bitbucket.org/tradesystem/artisan_sdk/commit/361abac9996fef1b0c308b1bd940f19379f8842a))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## [0.7.0-canary.0](https://bitbucket.org/tradesystem/artisan_sdk/compare/@artisan-commerce/builders@0.6.0...@artisan-commerce/builders@0.7.0-canary.0) (2021-08-04)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Features
|
|
55
|
+
|
|
56
|
+
* **global:** add and export missing builders and types ([67ad6ac](https://bitbucket.org/tradesystem/artisan_sdk/commit/67ad6ac8e563aa53c2c62dac86b65f3435a0b16a))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## [0.6.0](https://bitbucket.org/tradesystem/artisan_sdk/compare/@artisan-commerce/builders@0.6.0-canary.11...@artisan-commerce/builders@0.6.0) (2021-07-30)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### Features
|
|
64
|
+
|
|
65
|
+
* **global:** fix percentage type on country ([b4920f2](https://bitbucket.org/tradesystem/artisan_sdk/commit/b4920f2021d4b3e5e1ea9cfd2423d98c122ae5ea))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Bug Fixes
|
|
69
|
+
|
|
70
|
+
* **global:** reuse shopping cart config and fix builder name ([21f9526](https://bitbucket.org/tradesystem/artisan_sdk/commit/21f952680ca38a8579053d65e5795aa184eafcb2))
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## [0.6.0-canary.11](https://bitbucket.org/tradesystem/artisan_sdk/compare/@artisan-commerce/builders@0.6.0-canary.10...@artisan-commerce/builders@0.6.0-canary.11) (2021-07-26)
|
|
75
|
+
|
|
76
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## [0.6.0-canary.10](https://bitbucket.org/tradesystem/artisan_sdk/compare/@artisan-commerce/builders@0.6.0-canary.9...@artisan-commerce/builders@0.6.0-canary.10) (2021-06-18)
|
|
83
|
+
|
|
84
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## [0.6.0-canary.9](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.8...@artisan-commerce/builders@0.6.0-canary.9) (2021-06-10)
|
|
91
|
+
|
|
92
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## [0.6.0-canary.8](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.7...@artisan-commerce/builders@0.6.0-canary.8) (2021-04-22)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Features
|
|
102
|
+
|
|
103
|
+
* **types:** add country types and interfaces ([f73fabd](https://bitbucket.org/tradesystem/artisan_monorepo/commit/f73fabd5615ae1bb39c9ca59a8b79a5437eca9d1))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
## [0.6.0-canary.7](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.6...@artisan-commerce/builders@0.6.0-canary.7) (2021-04-21)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Features
|
|
111
|
+
|
|
112
|
+
* **global:** update account types and add account builders ([4a6fecd](https://bitbucket.org/tradesystem/artisan_monorepo/commit/4a6fecdc45b363f068a6089eccbf36483f517288))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
## [0.6.0-canary.6](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.5...@artisan-commerce/builders@0.6.0-canary.6) (2021-04-16)
|
|
117
|
+
|
|
118
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
## [0.6.0-canary.5](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.4...@artisan-commerce/builders@0.6.0-canary.5) (2021-04-06)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### Performance Improvements
|
|
128
|
+
|
|
129
|
+
* **global:** move typescript to be a global dependency ([32370e1](https://bitbucket.org/tradesystem/artisan_monorepo/commit/32370e134f1bcc4f79c55e2bae0ee22fee193e77))
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
## [0.6.0-canary.4](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.3...@artisan-commerce/builders@0.6.0-canary.4) (2021-04-01)
|
|
134
|
+
|
|
135
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
## [0.6.0-canary.3](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.2...@artisan-commerce/builders@0.6.0-canary.3) (2021-03-30)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### Performance Improvements
|
|
145
|
+
|
|
146
|
+
* **global:** add esbuild opt-in for dev ([f760449](https://bitbucket.org/tradesystem/artisan_monorepo/commit/f7604492fc17967bad75583a49d91a51cd6241aa))
|
|
147
|
+
* **global:** improve jest performance ([8c36173](https://bitbucket.org/tradesystem/artisan_monorepo/commit/8c36173df7e7cbfad40888499c81fcf7d11a7105))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## [0.6.0-canary.2](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.1...@artisan-commerce/builders@0.6.0-canary.2) (2021-03-19)
|
|
152
|
+
|
|
153
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
## [0.6.0-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.6.0-canary.0...@artisan-commerce/builders@0.6.0-canary.1) (2021-03-19)
|
|
160
|
+
|
|
161
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
## [0.6.0-canary.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.2-canary.2...@artisan-commerce/builders@0.6.0-canary.0) (2021-03-18)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
### Features
|
|
171
|
+
|
|
172
|
+
* **artisa-commerce:** added code documentation for users lib and types refactor ([1d0acf7](https://bitbucket.org/tradesystem/artisan_monorepo/commit/1d0acf703c6a9b6e4c7cb157ef045c49e6579d3a))
|
|
173
|
+
* **artisan-commerce:** merge branch 'canary' into feature/document-users-code ([e18fe40](https://bitbucket.org/tradesystem/artisan_monorepo/commit/e18fe401542d38afd0599bc98b0924d6b44bd74a))
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### [0.5.2-canary.2](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.2-canary.1...@artisan-commerce/builders@0.5.2-canary.2) (2021-03-18)
|
|
178
|
+
|
|
179
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
### [0.5.2-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.2-canary.0...@artisan-commerce/builders@0.5.2-canary.1) (2021-03-18)
|
|
186
|
+
|
|
187
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
### [0.5.2-canary.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.1...@artisan-commerce/builders@0.5.2-canary.0) (2021-03-12)
|
|
194
|
+
|
|
195
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### [0.5.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.1-canary.1...@artisan-commerce/builders@0.5.1) (2021-03-02)
|
|
202
|
+
|
|
203
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
### [0.5.1-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.1-canary.0...@artisan-commerce/builders@0.5.1-canary.1) (2021-02-25)
|
|
210
|
+
|
|
211
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### [0.5.1-canary.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.0...@artisan-commerce/builders@0.5.1-canary.0) (2021-02-25)
|
|
218
|
+
|
|
219
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
## [0.5.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.0-canary.3...@artisan-commerce/builders@0.5.0) (2021-02-25)
|
|
226
|
+
|
|
227
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
## [0.5.0-canary.3](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.0-canary.2...@artisan-commerce/builders@0.5.0-canary.3) (2021-02-25)
|
|
234
|
+
|
|
235
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
## [0.5.0-canary.2](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.0-canary.1...@artisan-commerce/builders@0.5.0-canary.2) (2021-02-23)
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
### Features
|
|
245
|
+
|
|
246
|
+
* added billing data and shipping address builders ([6a9eaa9](https://bitbucket.org/tradesystem/artisan_monorepo/commit/6a9eaa921bab2367171473565de0ce6d662bd7c0))
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
### Bug Fixes
|
|
250
|
+
|
|
251
|
+
* lint fixes ([36c4c71](https://bitbucket.org/tradesystem/artisan_monorepo/commit/36c4c71223fadf55a310145eefa7af81a1e3c50e))
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
## [0.5.0-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.5.0-canary.0...@artisan-commerce/builders@0.5.0-canary.1) (2021-02-12)
|
|
256
|
+
|
|
257
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
## [0.5.0-canary.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.4.12-canary.10...@artisan-commerce/builders@0.5.0-canary.0) (2021-02-08)
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
### Features
|
|
267
|
+
|
|
268
|
+
* **products:** support custome types on modifier groups and normal modifers ([dda6c03](https://bitbucket.org/tradesystem/artisan_monorepo/commit/dda6c03ee8241a5719dcf1745c6a7def83650bda))
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
### [0.4.12-canary.10](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.4.12-canary.9...@artisan-commerce/builders@0.4.12-canary.10) (2021-02-05)
|
|
273
|
+
|
|
274
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
### [0.4.12-canary.9](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.4.12-canary.8...@artisan-commerce/builders@0.4.12-canary.9) (2021-02-05)
|
|
281
|
+
|
|
282
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
### [0.4.12-canary.8](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.4.12-canary.7...@artisan-commerce/builders@0.4.12-canary.8) (2021-02-05)
|
|
289
|
+
|
|
290
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
### [0.4.12-canary.7](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.4.12-canary.6...@artisan-commerce/builders@0.4.12-canary.7) (2021-02-05)
|
|
297
|
+
|
|
298
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
### [0.4.12-canary.6](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.4.12-canary.5...@artisan-commerce/builders@0.4.12-canary.6) (2021-02-04)
|
|
305
|
+
|
|
306
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
### [0.4.12-canary.5](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.4.12-canary.4...@artisan-commerce/builders@0.4.12-canary.5) (2021-02-04)
|
|
313
|
+
|
|
314
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
### [0.4.12-canary.4](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.4.12-canary.3...@artisan-commerce/builders@0.4.12-canary.4) (2021-02-04)
|
|
321
|
+
|
|
322
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
### [0.4.12-canary.3](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.4.12-canary.2...@artisan-commerce/builders@0.4.12-canary.3) (2021-02-04)
|
|
329
|
+
|
|
330
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
### [0.4.12-canary.2](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.4.12-canary.1...@artisan-commerce/builders@0.4.12-canary.2) (2021-02-04)
|
|
337
|
+
|
|
338
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
### [0.4.12-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.4.12-canary.0...@artisan-commerce/builders@0.4.12-canary.1) (2021-02-03)
|
|
345
|
+
|
|
346
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
## [0.4.12-canary.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/builders@0.4.11...@artisan-commerce/builders@0.4.12-canary.0) (2021-02-03)
|
|
353
|
+
|
|
354
|
+
**Note:** Version bump only for package @artisan-commerce/builders
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Account } from "@artisan-commerce/types";
|
|
2
|
+
/**
|
|
3
|
+
* Generates Account object with random data.
|
|
4
|
+
*
|
|
5
|
+
* @since 0.5.14
|
|
6
|
+
* @param {Partial<Account>} overrides Properties to override a {@link Account}
|
|
7
|
+
* @returns {Account} A {@link Account} object
|
|
8
|
+
*/
|
|
9
|
+
export declare const buildAccount: (overrides?: Partial<Account>) => Account;
|
|
10
|
+
/**
|
|
11
|
+
* Generates a list of Account objects with random data.
|
|
12
|
+
*
|
|
13
|
+
* @since 0.5.14
|
|
14
|
+
* @param {number} quantity The number of objects to be generated
|
|
15
|
+
* @returns {Account[]} An array of {@link Account}s objects
|
|
16
|
+
*/
|
|
17
|
+
export declare const genAccounts: (quantity?: number | undefined) => Account[];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BannerImage } from "@artisan-commerce/types";
|
|
2
|
+
import { Banner } from "@artisan-commerce/types";
|
|
3
|
+
/**
|
|
4
|
+
* Generates banner object with random data.
|
|
5
|
+
*
|
|
6
|
+
* @since 0.5.14
|
|
7
|
+
* @param {Partial<Banner>} overrides Properties to override a {@link Banner}
|
|
8
|
+
* @returns {Banner} A {@link Banner} object
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildBanner: (overrides?: Partial<Banner>) => Banner;
|
|
11
|
+
/**
|
|
12
|
+
* Generates a list of Banner objects with random data.
|
|
13
|
+
*
|
|
14
|
+
* @since 0.5.14
|
|
15
|
+
* @param {number} quantity The number of objects to be generated
|
|
16
|
+
* @returns {Banner[]} An array of {@link Banner}s objects
|
|
17
|
+
*/
|
|
18
|
+
export declare const genBanners: (quantity?: number | undefined) => Banner[];
|
|
19
|
+
/**
|
|
20
|
+
* Generates BannerImage object with random data.
|
|
21
|
+
*
|
|
22
|
+
* @since 0.5.14
|
|
23
|
+
* @param {Partial<BannerImage>} overrides Properties to override
|
|
24
|
+
* a {@link BannerImage}
|
|
25
|
+
* @returns {BannerImage} A {@link BannerImage} object
|
|
26
|
+
*/
|
|
27
|
+
export declare const buildBannerImage: (overrides?: Partial<BannerImage>) => BannerImage;
|
|
28
|
+
/**
|
|
29
|
+
* Generates a list of banner image objects with random data.
|
|
30
|
+
*
|
|
31
|
+
* @since 0.5.14
|
|
32
|
+
* @param {number} quantity The number of objects to be generated
|
|
33
|
+
* @returns {BannerImage[]} An array of banner images, see {@link BannerImage}
|
|
34
|
+
*/
|
|
35
|
+
export declare const genBannerImages: (quantity?: number | undefined) => BannerImage[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BillingData } from "@artisan-commerce/types";
|
|
2
|
+
/**
|
|
3
|
+
* Generates BillingData object with random data.
|
|
4
|
+
*
|
|
5
|
+
* @since 0.5.14
|
|
6
|
+
* @param {Partial<BillingData>} overrides Properties to override
|
|
7
|
+
* a {@link BillingData}
|
|
8
|
+
* @returns {BillingData} A {@link BillingData} object
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildBillingData: (overrides?: Partial<BillingData>) => BillingData;
|
|
11
|
+
/**
|
|
12
|
+
* Generates a list of Billing Data objects with random data.
|
|
13
|
+
*
|
|
14
|
+
* @since 0.5.14
|
|
15
|
+
* @param {number} quantity The number of objects to be generated
|
|
16
|
+
* @returns {BillingData[]} An array of {@link BillingData}s objects
|
|
17
|
+
*/
|
|
18
|
+
export declare const genBillingData: (quantity?: number | undefined) => BillingData[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Catalogue } from "@artisan-commerce/types";
|
|
2
|
+
/**
|
|
3
|
+
* Generates Catalogue object with random data.
|
|
4
|
+
*
|
|
5
|
+
* @since 0.5.14
|
|
6
|
+
* @param {Partial<Catalogue>} overrides Properties to override
|
|
7
|
+
* a {@link Catalogue}
|
|
8
|
+
* @returns {Catalogue} A {@link Catalogue} object
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildCatalogue: (overrides?: Partial<Catalogue>) => Catalogue;
|
|
11
|
+
/**
|
|
12
|
+
* Generates a list of Catalogue objects with custom data.
|
|
13
|
+
*
|
|
14
|
+
* @since 0.5.14
|
|
15
|
+
* @param {number} quantity The number of objects to be generated
|
|
16
|
+
* @returns {Catalogue[]} An array of {@link Catalogue}s objects
|
|
17
|
+
*/
|
|
18
|
+
export declare const genCatalogues: (quantity?: number | undefined) => Catalogue[];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Category, CategoryWithProducts } from "@artisan-commerce/types";
|
|
2
|
+
/**
|
|
3
|
+
* Generates Category object with random data.
|
|
4
|
+
*
|
|
5
|
+
* @since 0.5.14
|
|
6
|
+
* @param {Partial<Category>} overrides Properties to override
|
|
7
|
+
* a {@link Category}
|
|
8
|
+
* @returns {Category} A {@link Category} object
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildCategory: (overrides?: Partial<Category>) => Category;
|
|
11
|
+
/**
|
|
12
|
+
* Generates a list of Category objects with random data.
|
|
13
|
+
*
|
|
14
|
+
* @since 0.5.14
|
|
15
|
+
* @param {number} quantity The number of objects to be generated
|
|
16
|
+
* @returns {Category[]} An array of categories objects, see {@link Category}
|
|
17
|
+
*/
|
|
18
|
+
export declare const genCategories: (quantity?: number | undefined) => Category[];
|
|
19
|
+
/**
|
|
20
|
+
* Generates CategoryWithProducts object with random data.
|
|
21
|
+
*
|
|
22
|
+
* @since 0.5.14
|
|
23
|
+
* @param {Partial<CategoryWithProducts>} overrides Properties to override
|
|
24
|
+
* a {@link CategoryWithProducts}
|
|
25
|
+
* @returns {CategoryWithProducts} A {@link CategoryWithProducts} object
|
|
26
|
+
*/
|
|
27
|
+
export declare const buildCategoryWithProducts: (overrides?: Partial<CategoryWithProducts>) => CategoryWithProducts;
|
|
28
|
+
/**
|
|
29
|
+
* Generates a list of CategoryWithProducts objects with random data.
|
|
30
|
+
*
|
|
31
|
+
* @since 0.5.14
|
|
32
|
+
* @param {number} quantity The number of objects to be generated
|
|
33
|
+
* @returns {CategoryWithProducts[]} An array of products by categories,
|
|
34
|
+
* see {@link CategoryWithProducts}
|
|
35
|
+
*/
|
|
36
|
+
export declare const genCategoryWithProducts: (quantity?: number | undefined) => CategoryWithProducts[];
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { DocumentType } from "@artisan-commerce/types";
|
|
2
|
+
import { CountrySummary, RandomImageConfig } from "@artisan-commerce/types";
|
|
3
|
+
/**
|
|
4
|
+
* Generates a random password.
|
|
5
|
+
*
|
|
6
|
+
* @since 0.5.14
|
|
7
|
+
* @param {any[]} args An array of arguments to be passed when
|
|
8
|
+
* generating the password
|
|
9
|
+
* @returns A random password
|
|
10
|
+
*/
|
|
11
|
+
export declare const getPassword: (...args: any[]) => string;
|
|
12
|
+
/**
|
|
13
|
+
* Generates a random username.
|
|
14
|
+
*
|
|
15
|
+
* @since 0.5.14
|
|
16
|
+
*/
|
|
17
|
+
export declare const getUsername: (firstName?: string | undefined, lastName?: string | undefined) => string;
|
|
18
|
+
/**
|
|
19
|
+
* Generates a random unique identifier.
|
|
20
|
+
*
|
|
21
|
+
* @since 0.5.14
|
|
22
|
+
*/
|
|
23
|
+
export declare const genId: () => string;
|
|
24
|
+
/**
|
|
25
|
+
* Generates a random id of type number.
|
|
26
|
+
*
|
|
27
|
+
* @since 0.5.14
|
|
28
|
+
*/
|
|
29
|
+
export declare const genNumericId: () => number;
|
|
30
|
+
/**
|
|
31
|
+
* Generates a random word.
|
|
32
|
+
*
|
|
33
|
+
* @since 0.5.14
|
|
34
|
+
*/
|
|
35
|
+
export declare const genWord: () => string;
|
|
36
|
+
/**
|
|
37
|
+
* Generates a random address.
|
|
38
|
+
*
|
|
39
|
+
* @since 0.5.14
|
|
40
|
+
*/
|
|
41
|
+
export declare const genAddress: (useFullAddress?: boolean | undefined) => string;
|
|
42
|
+
/**
|
|
43
|
+
* Generates a random name.
|
|
44
|
+
*
|
|
45
|
+
* @since 0.5.14
|
|
46
|
+
*/
|
|
47
|
+
export declare const genName: (firstName?: string | undefined, lastName?: string | undefined, gender?: number | undefined) => string;
|
|
48
|
+
/**
|
|
49
|
+
* Generates a random email.
|
|
50
|
+
*
|
|
51
|
+
* @since 0.5.14
|
|
52
|
+
*/
|
|
53
|
+
export declare const genEmail: (firstName?: string | undefined, lastName?: string | undefined, provider?: string | undefined) => string;
|
|
54
|
+
/**
|
|
55
|
+
* Generates a random company name.
|
|
56
|
+
*
|
|
57
|
+
* @since 0.5.14
|
|
58
|
+
*/
|
|
59
|
+
export declare const genCompanyName: (format?: number | undefined) => string;
|
|
60
|
+
/**
|
|
61
|
+
* Generates a random paragraph.
|
|
62
|
+
*
|
|
63
|
+
* @since 0.5.14
|
|
64
|
+
*/
|
|
65
|
+
export declare const genParagraph: (sentenceCount?: number | undefined) => string;
|
|
66
|
+
/**
|
|
67
|
+
* Generates a random title containing 3 words.
|
|
68
|
+
*
|
|
69
|
+
* @since 0.5.14
|
|
70
|
+
*/
|
|
71
|
+
export declare const genTitle: () => string;
|
|
72
|
+
/**
|
|
73
|
+
* Generates a random number.
|
|
74
|
+
*
|
|
75
|
+
* @since 0.5.14
|
|
76
|
+
*/
|
|
77
|
+
export declare const genNumber: {
|
|
78
|
+
(max?: number | undefined): number;
|
|
79
|
+
(options?: {
|
|
80
|
+
min?: number | undefined;
|
|
81
|
+
max?: number | undefined;
|
|
82
|
+
precision?: number | undefined;
|
|
83
|
+
} | undefined): number;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Generates a random boolean value.
|
|
87
|
+
*
|
|
88
|
+
* @since 0.5.14
|
|
89
|
+
*/
|
|
90
|
+
export declare const getBoolean: () => boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Generates a random country name.
|
|
93
|
+
*
|
|
94
|
+
* @since 0.5.14
|
|
95
|
+
*/
|
|
96
|
+
export declare const genCountryName: () => string;
|
|
97
|
+
/**
|
|
98
|
+
* Generates a random image based on custom configuration.
|
|
99
|
+
*
|
|
100
|
+
* @since 0.5.15
|
|
101
|
+
* @param {RandomImageConfig} randomImageConfig Configuration
|
|
102
|
+
* to generate a random image
|
|
103
|
+
* @returns {string} An url of the image generated
|
|
104
|
+
*/
|
|
105
|
+
export declare const genRandomImage: (randomImageConfig?: RandomImageConfig | undefined) => string;
|
|
106
|
+
/** Generates random words.
|
|
107
|
+
*
|
|
108
|
+
* @since 0.5.14
|
|
109
|
+
* @param {number} words The quantity of words to be generated
|
|
110
|
+
*/
|
|
111
|
+
export declare const genWords: (words?: number | undefined) => string;
|
|
112
|
+
/**
|
|
113
|
+
* Generates a random internet url.
|
|
114
|
+
*
|
|
115
|
+
* @since 0.5.14
|
|
116
|
+
*/
|
|
117
|
+
export declare const genURL: () => string;
|
|
118
|
+
/**
|
|
119
|
+
* Generates a random date in ISO format.
|
|
120
|
+
*
|
|
121
|
+
* @since 0.5.14
|
|
122
|
+
*/
|
|
123
|
+
export declare const genDate: () => string;
|
|
124
|
+
/**
|
|
125
|
+
* Generates a random base64 value.
|
|
126
|
+
*
|
|
127
|
+
* @since 0.5.14
|
|
128
|
+
*/
|
|
129
|
+
export declare const genBase64: () => string;
|
|
130
|
+
/**
|
|
131
|
+
* Generates a random boolean value.
|
|
132
|
+
*
|
|
133
|
+
* @since 0.5.14
|
|
134
|
+
* @param {number} bias A number between 0 and 1 which will be used
|
|
135
|
+
* to generate a boolean
|
|
136
|
+
* @throws Error if bias is not between 0 and 1
|
|
137
|
+
* @returns {boolean} A boolean value
|
|
138
|
+
*/
|
|
139
|
+
export declare const genBiasBoolean: (bias: number) => boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Generates a random document.
|
|
142
|
+
*
|
|
143
|
+
* @since 0.5.14
|
|
144
|
+
* @param {number} digits The number of digits with which the document
|
|
145
|
+
* will be generated
|
|
146
|
+
* @returns {string} A random document
|
|
147
|
+
*/
|
|
148
|
+
export declare const genDocument: (digits: number) => string;
|
|
149
|
+
/**
|
|
150
|
+
* Generates a random document type.
|
|
151
|
+
*
|
|
152
|
+
* @since 0.5.14
|
|
153
|
+
*/
|
|
154
|
+
export declare const genDocumentType: () => DocumentType;
|
|
155
|
+
/**
|
|
156
|
+
* Generates a random mobile phone with the country code provided.
|
|
157
|
+
*
|
|
158
|
+
* @since 0.5.14
|
|
159
|
+
* @param {string} countryCode Country calling code
|
|
160
|
+
* @returns {string} A string like a mobile phone
|
|
161
|
+
*/
|
|
162
|
+
export declare const genMobilPhone: (countryCode: string) => string;
|
|
163
|
+
/**
|
|
164
|
+
* Generates a Country Summary object with random data.
|
|
165
|
+
*
|
|
166
|
+
* @since 0.5.14
|
|
167
|
+
* @param {number} id Country specific id
|
|
168
|
+
* @param {string} name Country specific name
|
|
169
|
+
* @returns {CountrySummary} A {@link CountrySummary} object
|
|
170
|
+
*/
|
|
171
|
+
export declare const genCountry: (id?: number | undefined, name?: string | undefined) => CountrySummary;
|
|
172
|
+
/**
|
|
173
|
+
* Fills a number of type string with characters.
|
|
174
|
+
*
|
|
175
|
+
* @since 0.5.14
|
|
176
|
+
* @param {string} num A string, the length of it will
|
|
177
|
+
* be used to fill the number
|
|
178
|
+
* @param {number} max A number, the length of it will
|
|
179
|
+
* be used to fill the number
|
|
180
|
+
* @returns {string} A string filled with the data passed
|
|
181
|
+
*/
|
|
182
|
+
export declare const fillNumber: (num: string, max?: number | undefined) => string;
|
|
183
|
+
/**
|
|
184
|
+
* Chooses a random item inside the array provided.
|
|
185
|
+
*
|
|
186
|
+
* @since 0.5.14
|
|
187
|
+
* @param {T[]} arr An array of generic items
|
|
188
|
+
* @returns {T} A random item of the array passed as param
|
|
189
|
+
*/
|
|
190
|
+
export declare const chooseRandom: <T>(arr: T[]) => T;
|
|
191
|
+
/**
|
|
192
|
+
* Chooses a random enum value of the enum provided.
|
|
193
|
+
*
|
|
194
|
+
* @since 0.5.14
|
|
195
|
+
* @param {T} anEnum An enum
|
|
196
|
+
* @returns {T[keyof T]} A random item of the enum passed as param
|
|
197
|
+
*/
|
|
198
|
+
export declare const chooseRandomEnum: <T>(anEnum: T) => T[keyof T];
|
|
199
|
+
/**
|
|
200
|
+
* Generates a random currency symbol.
|
|
201
|
+
*
|
|
202
|
+
* @since 0.5.14
|
|
203
|
+
*/
|
|
204
|
+
export declare const genSymbol: string;
|