@tillhub/schemas 6.376.0 → 6.384.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,60 @@
|
|
|
1
|
+
# [6.384.0](https://github.com/tillhub/schemas/compare/v6.383.0...v6.384.0) (2025-05-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **carts:** release trigger ([a9c29f2](https://github.com/tillhub/schemas/commit/a9c29f2))
|
|
7
|
+
|
|
8
|
+
# [6.383.0](https://github.com/tillhub/schemas/compare/v6.382.0...v6.383.0) (2025-05-07)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **imports:** id-s are mandatory for product imports ([#1060](https://github.com/tillhub/schemas/issues/1060)) ([d7fa547](https://github.com/tillhub/schemas/commit/d7fa547))
|
|
14
|
+
|
|
15
|
+
# [6.382.0](https://github.com/tillhub/schemas/compare/v6.381.0...v6.382.0) (2025-05-06)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **carts:** release trigger ([361dbf3](https://github.com/tillhub/schemas/commit/361dbf3))
|
|
21
|
+
|
|
22
|
+
# [6.381.0](https://github.com/tillhub/schemas/compare/v6.380.0...v6.381.0) (2025-05-06)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **carts:** release trigger ([d81f433](https://github.com/tillhub/schemas/commit/d81f433))
|
|
28
|
+
|
|
29
|
+
# [6.380.0](https://github.com/tillhub/schemas/compare/v6.379.0...v6.380.0) (2025-05-06)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
* **carts:** release trigger ([5bb8c18](https://github.com/tillhub/schemas/commit/5bb8c18))
|
|
35
|
+
|
|
36
|
+
# [6.379.0](https://github.com/tillhub/schemas/compare/v6.378.0...v6.379.0) (2025-05-05)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* **carts:** release trigger ([#1059](https://github.com/tillhub/schemas/issues/1059)) ([f2ac789](https://github.com/tillhub/schemas/commit/f2ac789))
|
|
42
|
+
|
|
43
|
+
# [6.378.0](https://github.com/tillhub/schemas/compare/v6.377.0...v6.378.0) (2025-05-05)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
* **carts:** release trigger ([#1058](https://github.com/tillhub/schemas/issues/1058)) ([3432299](https://github.com/tillhub/schemas/commit/3432299))
|
|
49
|
+
|
|
50
|
+
# [6.377.0](https://github.com/tillhub/schemas/compare/v6.376.0...v6.377.0) (2025-05-05)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
* **carts:** support type ([#1057](https://github.com/tillhub/schemas/issues/1057)) ([409efe3](https://github.com/tillhub/schemas/commit/409efe3))
|
|
56
|
+
* **imports:** chunk index should start with 1 ([#1056](https://github.com/tillhub/schemas/issues/1056)) ([faae808](https://github.com/tillhub/schemas/commit/faae808))
|
|
57
|
+
|
|
1
58
|
# [6.376.0](https://github.com/tillhub/schemas/compare/v6.375.0...v6.376.0) (2025-04-28)
|
|
2
59
|
|
|
3
60
|
|
package/lib/v1/carts/base.js
CHANGED
|
@@ -2,6 +2,14 @@ const { oneOf } = require('../../helpers/payload-or-null')
|
|
|
2
2
|
const items = require('./items').create
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
5
|
+
type: {
|
|
6
|
+
description: 'Type of this cart',
|
|
7
|
+
example: 'cart',
|
|
8
|
+
...oneOf({
|
|
9
|
+
type: 'string',
|
|
10
|
+
enum: ['cart', 'order']
|
|
11
|
+
})
|
|
12
|
+
},
|
|
5
13
|
date: {
|
|
6
14
|
description: 'Date of this cart',
|
|
7
15
|
example: '2022-02-20T19:41:07.736Z',
|
package/lib/v1/imports/index.js
CHANGED
|
@@ -7,17 +7,18 @@ const productImportChunkItem = {
|
|
|
7
7
|
type: 'object',
|
|
8
8
|
additionalProperties: false,
|
|
9
9
|
required: [
|
|
10
|
+
'id',
|
|
10
11
|
'name',
|
|
11
12
|
'account',
|
|
12
13
|
'tax',
|
|
13
14
|
'type'
|
|
14
15
|
],
|
|
15
16
|
properties: {
|
|
17
|
+
...base,
|
|
16
18
|
id: {
|
|
17
19
|
type: 'string',
|
|
18
20
|
format: 'uuid'
|
|
19
21
|
},
|
|
20
|
-
...base,
|
|
21
22
|
business_partners: oneOf({
|
|
22
23
|
type: 'array',
|
|
23
24
|
items: {
|