@tillhub/schemas 6.157.2 → 6.158.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 +8 -0
- package/lib/v0/accounts/base.js +4 -2
- package/lib/v0/clients/base.js +4 -2
- package/lib/v0/customers/base.js +4 -2
- package/lib/v0/discounts/base.js +4 -2
- package/lib/v0/expense_accounts/base.js +4 -2
- package/lib/v0/functions/base.js +4 -2
- package/lib/v0/invoices/base.js +4 -2
- package/lib/v0/loyalty_abocard_cards/base.js +4 -2
- package/lib/v0/loyalty_accounts/base.js +2 -1
- package/lib/v0/loyalty_cards/base.js +2 -1
- package/lib/v0/loyalty_systems/base.js +4 -2
- package/lib/v0/messages/base.js +2 -1
- package/lib/v0/orders/create.request.js +2 -8
- package/lib/v0/orders/items/base.js +2 -8
- package/lib/v0/payment_options/base.js +2 -1
- package/lib/v0/product_addons/base.js +4 -2
- package/lib/v0/product_groups/base.js +4 -3
- package/lib/v0/product_service_question_groups/base.js +4 -2
- package/lib/v0/product_service_questions/base.js +4 -2
- package/lib/v0/promotions/base.js +4 -2
- package/lib/v0/reasons/base.js +4 -2
- package/lib/v0/safes/base.js +4 -6
- package/lib/v0/staff/base.js +4 -2
- package/lib/v0/staff_permission_templates/base.js +4 -2
- package/lib/v0/stock/base.js +4 -1
- package/lib/v0/taxes/base.js +4 -2
- package/lib/v0/voucher_systems/base.js +4 -2
- package/lib/v0/vouchers/base.js +2 -1
- package/lib/v0/warehouses/base.js +4 -2
- package/lib/v1/products/base.js +4 -2
- package/lib/v1/products/customizations/base.js +4 -2
- package/lib/v1/products/prices/book/base.js +4 -2
- package/lib/v1/products/prices/book/entry/base.js +4 -2
- package/lib/v1/registers/base.js +4 -2
- package/lib/v1/templates/base.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [6.158.0](https://github.com/tillhub/schemas/compare/v6.157.2...v6.158.0) (2022-09-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **chore:** Get rid of 3-state booleans in 'active' and 'deleted' fields ([5efeead](https://github.com/tillhub/schemas/commit/5efeead))
|
|
7
|
+
* **chore:** lint fix ([0734f1b](https://github.com/tillhub/schemas/commit/0734f1b))
|
|
8
|
+
|
|
1
9
|
## [6.157.2](https://github.com/tillhub/schemas/compare/v6.157.1...v6.157.2) (2022-09-02)
|
|
2
10
|
|
|
3
11
|
|
package/lib/v0/accounts/base.js
CHANGED
package/lib/v0/clients/base.js
CHANGED
package/lib/v0/customers/base.js
CHANGED
|
@@ -7,11 +7,13 @@ module.exports = {
|
|
|
7
7
|
active: {
|
|
8
8
|
description: 'Customer active',
|
|
9
9
|
example: 'true',
|
|
10
|
-
type: 'boolean'
|
|
10
|
+
type: 'boolean',
|
|
11
|
+
default: true
|
|
11
12
|
},
|
|
12
13
|
deleted: {
|
|
13
14
|
description: 'Customer deleted',
|
|
14
|
-
type: 'boolean'
|
|
15
|
+
type: 'boolean',
|
|
16
|
+
default: false
|
|
15
17
|
},
|
|
16
18
|
firstname: {
|
|
17
19
|
description: 'First name',
|
package/lib/v0/discounts/base.js
CHANGED
package/lib/v0/functions/base.js
CHANGED
|
@@ -361,10 +361,12 @@ module.exports = {
|
|
|
361
361
|
maxLength: 128
|
|
362
362
|
},
|
|
363
363
|
active: {
|
|
364
|
-
type: 'boolean'
|
|
364
|
+
type: 'boolean',
|
|
365
|
+
default: true
|
|
365
366
|
},
|
|
366
367
|
deleted: {
|
|
367
|
-
type: 'boolean'
|
|
368
|
+
type: 'boolean',
|
|
369
|
+
default: false
|
|
368
370
|
},
|
|
369
371
|
configuration: {
|
|
370
372
|
description: 'Function configuration that e.g. drives specific local client behaviour',
|
package/lib/v0/invoices/base.js
CHANGED
|
@@ -23,12 +23,14 @@ const response = {
|
|
|
23
23
|
active: {
|
|
24
24
|
description: 'The abocard is active',
|
|
25
25
|
example: true,
|
|
26
|
-
type: 'boolean'
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
default: false
|
|
27
28
|
},
|
|
28
29
|
deleted: {
|
|
29
30
|
description: 'The abocard is deleted',
|
|
30
31
|
example: true,
|
|
31
|
-
type: 'boolean'
|
|
32
|
+
type: 'boolean',
|
|
33
|
+
default: false
|
|
32
34
|
},
|
|
33
35
|
valid_until: oneOf({
|
|
34
36
|
description: 'When the abocard expires',
|
|
@@ -78,10 +78,12 @@ module.exports = {
|
|
|
78
78
|
maxLength: 4096
|
|
79
79
|
}),
|
|
80
80
|
deleted: {
|
|
81
|
-
type: 'boolean'
|
|
81
|
+
type: 'boolean',
|
|
82
|
+
default: false
|
|
82
83
|
},
|
|
83
84
|
active: {
|
|
84
|
-
type: 'boolean'
|
|
85
|
+
type: 'boolean',
|
|
86
|
+
default: true
|
|
85
87
|
},
|
|
86
88
|
value_configurations: oneOf({
|
|
87
89
|
type: 'array',
|
package/lib/v0/messages/base.js
CHANGED
|
@@ -31,14 +31,8 @@ module.exports = {
|
|
|
31
31
|
},
|
|
32
32
|
deleted: {
|
|
33
33
|
description: 'the string representation of boolean values as `false` or `true`',
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
type: 'boolean'
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
type: 'null'
|
|
40
|
-
}
|
|
41
|
-
]
|
|
34
|
+
type: 'boolean',
|
|
35
|
+
default: false
|
|
42
36
|
},
|
|
43
37
|
ordered_at: {
|
|
44
38
|
description: 'ISO string (UTC) with timezone',
|
|
@@ -51,14 +51,8 @@ module.exports = {
|
|
|
51
51
|
description: 'the string representation of boolean values as `false` or `true`. Set to \'true\' if the order item is supposed to be a suggestion (as opposed to an actual item in the order)'
|
|
52
52
|
},
|
|
53
53
|
deleted: {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
type: 'boolean'
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
type: 'null'
|
|
60
|
-
}
|
|
61
|
-
],
|
|
54
|
+
type: 'boolean',
|
|
55
|
+
default: false,
|
|
62
56
|
description: 'the string representation of boolean values as `false` or `true`'
|
|
63
57
|
},
|
|
64
58
|
order: {
|
|
@@ -19,10 +19,11 @@ const request = {
|
|
|
19
19
|
type: 'string',
|
|
20
20
|
example: 'f5cf4198-ae26-463f-aa2b-014bd2fed8e5'
|
|
21
21
|
}),
|
|
22
|
-
active:
|
|
22
|
+
active: {
|
|
23
23
|
description: 'Product group is active',
|
|
24
|
-
type: 'boolean'
|
|
25
|
-
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
default: true
|
|
26
|
+
},
|
|
26
27
|
account: oneOf({
|
|
27
28
|
description: 'Product group revenue account reference',
|
|
28
29
|
type: 'string',
|
package/lib/v0/reasons/base.js
CHANGED
|
@@ -57,11 +57,13 @@ module.exports = {
|
|
|
57
57
|
])
|
|
58
58
|
},
|
|
59
59
|
deleted: {
|
|
60
|
-
type: 'boolean'
|
|
60
|
+
type: 'boolean',
|
|
61
|
+
default: false
|
|
61
62
|
},
|
|
62
63
|
active: {
|
|
63
64
|
description: 'The reason is active',
|
|
64
|
-
type: 'boolean'
|
|
65
|
+
type: 'boolean',
|
|
66
|
+
default: true
|
|
65
67
|
},
|
|
66
68
|
type: {
|
|
67
69
|
description: 'The reason type',
|
package/lib/v0/safes/base.js
CHANGED
package/lib/v0/staff/base.js
CHANGED
|
@@ -204,10 +204,12 @@ module.exports = {
|
|
|
204
204
|
type: 'string'
|
|
205
205
|
}),
|
|
206
206
|
active: {
|
|
207
|
-
type: 'boolean'
|
|
207
|
+
type: 'boolean',
|
|
208
|
+
default: true
|
|
208
209
|
},
|
|
209
210
|
deleted: {
|
|
210
|
-
type: 'boolean'
|
|
211
|
+
type: 'boolean',
|
|
212
|
+
default: false
|
|
211
213
|
},
|
|
212
214
|
metadata: {
|
|
213
215
|
type: 'object'
|
package/lib/v0/stock/base.js
CHANGED
|
@@ -7,7 +7,8 @@ module.exports = {
|
|
|
7
7
|
type: 'null'
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
|
-
type: 'number'
|
|
10
|
+
type: 'number',
|
|
11
|
+
description: 'The quantity of this item/product.'
|
|
11
12
|
}
|
|
12
13
|
]
|
|
13
14
|
},
|
|
@@ -27,6 +28,7 @@ module.exports = {
|
|
|
27
28
|
anyOf: [
|
|
28
29
|
{
|
|
29
30
|
type: 'string',
|
|
31
|
+
description: 'Alphanumerical uuid of the location, e.g. branch or warehouse',
|
|
30
32
|
minLength: 1,
|
|
31
33
|
maxLength: 64
|
|
32
34
|
},
|
|
@@ -39,6 +41,7 @@ module.exports = {
|
|
|
39
41
|
anyOf: [
|
|
40
42
|
{
|
|
41
43
|
type: 'string',
|
|
44
|
+
description: 'Location type of stock',
|
|
42
45
|
'enum': [
|
|
43
46
|
'client',
|
|
44
47
|
'branch',
|
package/lib/v0/taxes/base.js
CHANGED
package/lib/v0/vouchers/base.js
CHANGED
|
@@ -193,7 +193,8 @@ module.exports = {
|
|
|
193
193
|
},
|
|
194
194
|
active: {
|
|
195
195
|
description: 'Define whether this voucher is currently active.',
|
|
196
|
-
type: 'boolean'
|
|
196
|
+
type: 'boolean',
|
|
197
|
+
default: true
|
|
197
198
|
},
|
|
198
199
|
deleted: {
|
|
199
200
|
description: 'Define whether this voucher is "soft" deleted. This is different than a "hard" delete where the resource is eliminated from the database.',
|
package/lib/v1/products/base.js
CHANGED
|
@@ -461,10 +461,12 @@ const request = {
|
|
|
461
461
|
example: '921ec83d-c08b-411a-96d8-355f354d790d'
|
|
462
462
|
}),
|
|
463
463
|
active: {
|
|
464
|
-
type: 'boolean'
|
|
464
|
+
type: 'boolean',
|
|
465
|
+
default: true
|
|
465
466
|
},
|
|
466
467
|
deleted: {
|
|
467
|
-
type: 'boolean'
|
|
468
|
+
type: 'boolean',
|
|
469
|
+
default: false
|
|
468
470
|
},
|
|
469
471
|
type: {
|
|
470
472
|
type: 'string',
|
|
@@ -35,10 +35,12 @@ module.exports = {
|
|
|
35
35
|
})
|
|
36
36
|
},
|
|
37
37
|
active: {
|
|
38
|
-
type: 'boolean'
|
|
38
|
+
type: 'boolean',
|
|
39
|
+
default: true
|
|
39
40
|
},
|
|
40
41
|
deleted: {
|
|
41
|
-
type: 'boolean'
|
|
42
|
+
type: 'boolean',
|
|
43
|
+
default: false
|
|
42
44
|
},
|
|
43
45
|
clients: oneOf({
|
|
44
46
|
description: 'The reference to the clients',
|
package/lib/v1/registers/base.js
CHANGED
|
@@ -121,10 +121,12 @@ module.exports = {
|
|
|
121
121
|
]
|
|
122
122
|
},
|
|
123
123
|
active: {
|
|
124
|
-
type: 'boolean'
|
|
124
|
+
type: 'boolean',
|
|
125
|
+
default: true
|
|
125
126
|
},
|
|
126
127
|
deleted: {
|
|
127
|
-
type: 'boolean'
|
|
128
|
+
type: 'boolean',
|
|
129
|
+
default: false
|
|
128
130
|
},
|
|
129
131
|
device_configuration: {
|
|
130
132
|
anyOf: [
|
package/lib/v1/templates/base.js
CHANGED