@tillhub/schemas 6.306.5 → 6.306.7
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 +140 -14
- package/lib/v0/branches/base.js +19 -0
- package/lib/v0/client_accounts/features/base.js +4 -0
- package/lib/v0/customers/base.js +4 -2
- package/lib/v0/customers/create.js +1 -4
- package/lib/v0/shift_plan/base.js +24 -14
- package/lib/v0/staff/base.js +5 -0
- package/lib/v1/configurations/items/balances.js +12 -0
- package/lib/v1/configurations/items/discounts.js +13 -0
- package/lib/v1/configurations/items/features.js +9 -0
- package/lib/v1/configurations/items/receipts.js +4 -4
- package/lib/v1/configurations/items/reservations.js +19 -0
- package/lib/v1/configurations/items/settings.js +8 -2
- package/lib/v1/configurations/items/taxes.js +2 -1
- package/lib/v1/products/base.js +26 -0
- package/lib/v1/products/index.js +4 -0
- package/lib/v1/products/selection.js +20 -0
- package/lib/v1/templates/put.js +1 -1
- package/lib/v3/analytics/reports/transactions/overview.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,43 +1,169 @@
|
|
|
1
|
-
## [6.306.
|
|
1
|
+
## [6.306.7](https://github.com/tillhub/schemas/compare/v6.306.6...v6.306.7) (2024-05-02)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* **overview:** fixing example ([
|
|
6
|
+
* **overview:** fixing example ([0bb6309](https://github.com/tillhub/schemas/commit/0bb6309))
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## [6.306.4](https://github.com/tillhub/schemas/compare/v6.306.3...v6.306.4) (2024-05-02)
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
### Bug Fixes
|
|
12
12
|
|
|
13
|
-
* **
|
|
14
|
-
* **full-receipts:** add the dynamic footer feature ([#944](https://github.com/tillhub/schemas/issues/944)) ([db57b5c](https://github.com/tillhub/schemas/commit/db57b5c))
|
|
13
|
+
* **overview:** fixing example ([f57381e](https://github.com/tillhub/schemas/commit/f57381e))
|
|
15
14
|
|
|
15
|
+
## [6.306.3](https://github.com/tillhub/schemas/compare/v6.306.2...v6.306.3) (2024-04-29)
|
|
16
16
|
|
|
17
|
-
### Features
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **full-receipts:** add the dynamic footer feature ([#944](https://github.com/tillhub/schemas/issues/944)) ([e028b92](https://github.com/tillhub/schemas/commit/e028b92))
|
|
21
|
+
|
|
22
|
+
## [6.306.2](https://github.com/tillhub/schemas/compare/v6.306.1...v6.306.2) (2024-04-26)
|
|
23
|
+
|
|
20
24
|
|
|
21
|
-
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **full-receipts:** add the dynamic footer feature ([#943](https://github.com/tillhub/schemas/issues/943)) ([76bfa38](https://github.com/tillhub/schemas/commit/76bfa38))
|
|
28
|
+
|
|
29
|
+
## [6.306.1](https://github.com/tillhub/schemas/compare/v6.306.0...v6.306.1) (2024-04-26)
|
|
22
30
|
|
|
23
31
|
|
|
24
32
|
### Bug Fixes
|
|
25
33
|
|
|
26
|
-
* **full-receipts:** add the dynamic footer feature ([#
|
|
27
|
-
* **
|
|
34
|
+
* **full-receipts:** add the dynamic footer feature ([#942](https://github.com/tillhub/schemas/issues/942)) ([5de7c09](https://github.com/tillhub/schemas/commit/5de7c09))
|
|
35
|
+
* **report:** add export_history permission ([#941](https://github.com/tillhub/schemas/issues/941)) ([8ffe02f](https://github.com/tillhub/schemas/commit/8ffe02f))
|
|
36
|
+
|
|
37
|
+
# [6.306.0](https://github.com/tillhub/schemas/compare/v6.305.0...v6.306.0) (2024-04-25)
|
|
28
38
|
|
|
29
39
|
|
|
30
40
|
### Features
|
|
31
41
|
|
|
32
|
-
* **
|
|
42
|
+
* **products:** rename list to selection ([#940](https://github.com/tillhub/schemas/issues/940)) ([b40f7f4](https://github.com/tillhub/schemas/commit/b40f7f4))
|
|
33
43
|
|
|
34
|
-
# [6.
|
|
44
|
+
# [6.305.0](https://github.com/tillhub/schemas/compare/v6.304.1...v6.305.0) (2024-04-22)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Features
|
|
48
|
+
|
|
49
|
+
* **configurations:** add terms of service url ([#939](https://github.com/tillhub/schemas/issues/939)) ([1482f5d](https://github.com/tillhub/schemas/commit/1482f5d))
|
|
50
|
+
|
|
51
|
+
## [6.304.1](https://github.com/tillhub/schemas/compare/v6.304.0...v6.304.1) (2024-04-19)
|
|
35
52
|
|
|
36
53
|
|
|
37
54
|
### Bug Fixes
|
|
38
55
|
|
|
39
|
-
* **
|
|
40
|
-
|
|
56
|
+
* **products:** export list schema ([#938](https://github.com/tillhub/schemas/issues/938)) ([18b3087](https://github.com/tillhub/schemas/commit/18b3087))
|
|
57
|
+
|
|
58
|
+
# [6.304.0](https://github.com/tillhub/schemas/compare/v6.303.0...v6.304.0) (2024-04-19)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Features
|
|
62
|
+
|
|
63
|
+
* **products:** add list request schema ([#937](https://github.com/tillhub/schemas/issues/937)) ([b1cb23b](https://github.com/tillhub/schemas/commit/b1cb23b))
|
|
64
|
+
|
|
65
|
+
# [6.303.0](https://github.com/tillhub/schemas/compare/v6.302.0...v6.303.0) (2024-04-18)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Features
|
|
69
|
+
|
|
70
|
+
* **feature_flags:** add online payments feature flag ([#936](https://github.com/tillhub/schemas/issues/936)) ([a8f36d3](https://github.com/tillhub/schemas/commit/a8f36d3))
|
|
71
|
+
|
|
72
|
+
# [6.302.0](https://github.com/tillhub/schemas/compare/v6.301.0...v6.302.0) (2024-04-17)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Features
|
|
76
|
+
|
|
77
|
+
* **branches:** change double backlashes to single ([#935](https://github.com/tillhub/schemas/issues/935)) ([a232a9a](https://github.com/tillhub/schemas/commit/a232a9a))
|
|
78
|
+
|
|
79
|
+
# [6.301.0](https://github.com/tillhub/schemas/compare/v6.300.0...v6.301.0) (2024-04-11)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Features
|
|
83
|
+
|
|
84
|
+
* **configurations:** add map address field ([#930](https://github.com/tillhub/schemas/issues/930)) ([a4532a3](https://github.com/tillhub/schemas/commit/a4532a3))
|
|
85
|
+
|
|
86
|
+
# [6.300.0](https://github.com/tillhub/schemas/compare/v6.299.0...v6.300.0) (2024-04-11)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Features
|
|
90
|
+
|
|
91
|
+
* **shift_plan:** add shifts for multiple branches ([#934](https://github.com/tillhub/schemas/issues/934)) ([f29c220](https://github.com/tillhub/schemas/commit/f29c220))
|
|
92
|
+
|
|
93
|
+
# [6.299.0](https://github.com/tillhub/schemas/compare/v6.298.0...v6.299.0) (2024-04-09)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Features
|
|
97
|
+
|
|
98
|
+
* **staffs:** add branch id to time ranges ([#931](https://github.com/tillhub/schemas/issues/931)) ([78bb4db](https://github.com/tillhub/schemas/commit/78bb4db))
|
|
99
|
+
|
|
100
|
+
# [6.298.0](https://github.com/tillhub/schemas/compare/v6.297.0...v6.298.0) (2024-04-06)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Features
|
|
104
|
+
|
|
105
|
+
* **products:** removed min_order_qty as it should be per supplier ([0289ad5](https://github.com/tillhub/schemas/commit/0289ad5))
|
|
106
|
+
|
|
107
|
+
# [6.297.0](https://github.com/tillhub/schemas/compare/v6.296.0...v6.297.0) (2024-03-28)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Features
|
|
111
|
+
|
|
112
|
+
* **products:** added min stock and order ([4a90afb](https://github.com/tillhub/schemas/commit/4a90afb))
|
|
113
|
+
* **products:** min_stock and min_order nullable ([22386a9](https://github.com/tillhub/schemas/commit/22386a9))
|
|
114
|
+
|
|
115
|
+
# [6.296.0](https://github.com/tillhub/schemas/compare/v6.295.0...v6.296.0) (2024-03-25)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### Features
|
|
119
|
+
|
|
120
|
+
* **configurations:** add toggle for individual opening hours and closing days ([#926](https://github.com/tillhub/schemas/issues/926)) ([ed11944](https://github.com/tillhub/schemas/commit/ed11944))
|
|
121
|
+
|
|
122
|
+
# [6.295.0](https://github.com/tillhub/schemas/compare/v6.294.0...v6.295.0) (2024-03-21)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### Features
|
|
126
|
+
|
|
127
|
+
* **configurations:** discounts ([a300ddf](https://github.com/tillhub/schemas/commit/a300ddf))
|
|
128
|
+
|
|
129
|
+
# [6.294.0](https://github.com/tillhub/schemas/compare/v6.293.0...v6.294.0) (2024-03-19)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### Features
|
|
133
|
+
|
|
134
|
+
* **web_view:** icon configuration ([b0314a6](https://github.com/tillhub/schemas/commit/b0314a6))
|
|
135
|
+
|
|
136
|
+
# [6.293.0](https://github.com/tillhub/schemas/compare/v6.292.0...v6.293.0) (2024-03-06)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
### Features
|
|
140
|
+
|
|
141
|
+
* **customers:** make lastname nullable ([275a9e1](https://github.com/tillhub/schemas/commit/275a9e1))
|
|
142
|
+
|
|
143
|
+
# [6.292.0](https://github.com/tillhub/schemas/compare/v6.291.0...v6.292.0) (2024-03-01)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Features
|
|
147
|
+
|
|
148
|
+
* **configurations:** fix defaults ([b1538e2](https://github.com/tillhub/schemas/commit/b1538e2))
|
|
149
|
+
|
|
150
|
+
# [6.291.0](https://github.com/tillhub/schemas/compare/v6.290.0...v6.291.0) (2024-02-26)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Features
|
|
154
|
+
|
|
155
|
+
* **configurations:** balances ([9053e0c](https://github.com/tillhub/schemas/commit/9053e0c))
|
|
156
|
+
* **configurations:** settings ([514bf1c](https://github.com/tillhub/schemas/commit/514bf1c))
|
|
157
|
+
|
|
158
|
+
# [6.290.0](https://github.com/tillhub/schemas/compare/v6.289.0...v6.290.0) (2024-02-15)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Features
|
|
162
|
+
|
|
163
|
+
* **customers:** fix linting issue ([27c4c5c](https://github.com/tillhub/schemas/commit/27c4c5c))
|
|
164
|
+
* **customers:** make customer lastname optional ([dc99d1a](https://github.com/tillhub/schemas/commit/dc99d1a))
|
|
165
|
+
|
|
166
|
+
# [6.289.0](https://github.com/tillhub/schemas/compare/v6.288.0...v6.289.0) (2024-02-13)
|
|
41
167
|
|
|
42
168
|
|
|
43
169
|
### Features
|
package/lib/v0/branches/base.js
CHANGED
|
@@ -368,6 +368,19 @@ module.exports = {
|
|
|
368
368
|
type: 'null'
|
|
369
369
|
}
|
|
370
370
|
]
|
|
371
|
+
},
|
|
372
|
+
reservations_google_maps_address: {
|
|
373
|
+
description: 'The location of the branch on Google Maps',
|
|
374
|
+
example: 'https://maps.app.goo.gl/tpF7EMsEC7Wy5hmd6',
|
|
375
|
+
pattern: '^https:\\/\\/maps\\.app\\.goo\\.gl\\/[A-Za-z0-9]*$',
|
|
376
|
+
oneOf: [
|
|
377
|
+
{
|
|
378
|
+
type: 'string'
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
type: 'null'
|
|
382
|
+
}
|
|
383
|
+
]
|
|
371
384
|
}
|
|
372
385
|
},
|
|
373
386
|
required: [
|
|
@@ -529,5 +542,11 @@ module.exports = {
|
|
|
529
542
|
type: 'null'
|
|
530
543
|
}
|
|
531
544
|
]
|
|
545
|
+
},
|
|
546
|
+
shift_plan_enabled: {
|
|
547
|
+
description: 'Define if this branch uses a shift plan.',
|
|
548
|
+
example: 'false',
|
|
549
|
+
type: 'boolean',
|
|
550
|
+
default: false
|
|
532
551
|
}
|
|
533
552
|
}
|
package/lib/v0/customers/base.js
CHANGED
|
@@ -11,10 +11,7 @@ module.exports = {
|
|
|
11
11
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
12
12
|
additionalProperties: false,
|
|
13
13
|
type: 'object',
|
|
14
|
-
properties: base
|
|
15
|
-
required: [
|
|
16
|
-
'lastname'
|
|
17
|
-
]
|
|
14
|
+
properties: base
|
|
18
15
|
},
|
|
19
16
|
response: {
|
|
20
17
|
$id: 'https://schemas.tillhub.com/v0/customers.create.response.schema.json',
|
|
@@ -1,32 +1,42 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
type: 'boolean'
|
|
4
|
-
},
|
|
5
|
-
shift_plan: {
|
|
2
|
+
shifts: {
|
|
6
3
|
type: 'array',
|
|
7
4
|
items: {
|
|
8
5
|
type: 'object',
|
|
9
6
|
additionalProperties: false,
|
|
10
7
|
properties: {
|
|
11
|
-
|
|
8
|
+
branch_id: {
|
|
12
9
|
type: 'string',
|
|
13
10
|
format: 'uuid'
|
|
14
11
|
},
|
|
15
|
-
|
|
16
|
-
type: 'string',
|
|
17
|
-
format: 'date'
|
|
18
|
-
},
|
|
19
|
-
plan: {
|
|
12
|
+
shift_plan: {
|
|
20
13
|
type: 'array',
|
|
21
14
|
items: {
|
|
22
15
|
type: 'object',
|
|
23
16
|
additionalProperties: false,
|
|
24
17
|
properties: {
|
|
25
|
-
|
|
26
|
-
type: 'string'
|
|
18
|
+
staff_member_id: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
format: 'uuid'
|
|
21
|
+
},
|
|
22
|
+
date: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
format: 'date'
|
|
27
25
|
},
|
|
28
|
-
|
|
29
|
-
type: '
|
|
26
|
+
plan: {
|
|
27
|
+
type: 'array',
|
|
28
|
+
items: {
|
|
29
|
+
type: 'object',
|
|
30
|
+
additionalProperties: false,
|
|
31
|
+
properties: {
|
|
32
|
+
start: {
|
|
33
|
+
type: 'string'
|
|
34
|
+
},
|
|
35
|
+
end: {
|
|
36
|
+
type: 'string'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
30
40
|
}
|
|
31
41
|
}
|
|
32
42
|
}
|
package/lib/v0/staff/base.js
CHANGED
|
@@ -549,6 +549,11 @@ module.exports = {
|
|
|
549
549
|
end: {
|
|
550
550
|
description: 'The end time of this range.',
|
|
551
551
|
type: 'string'
|
|
552
|
+
},
|
|
553
|
+
branch_id: {
|
|
554
|
+
description: 'The branch at which the staff member will be during this range.',
|
|
555
|
+
type: 'string',
|
|
556
|
+
format: 'uuid'
|
|
552
557
|
}
|
|
553
558
|
}
|
|
554
559
|
}
|
|
@@ -160,6 +160,18 @@ module.exports = {
|
|
|
160
160
|
],
|
|
161
161
|
default: 'optional'
|
|
162
162
|
},
|
|
163
|
+
signing_data_exports: oneOf({
|
|
164
|
+
type: 'object',
|
|
165
|
+
additionalProperties: false,
|
|
166
|
+
description: 'Defines if and how signing data should be exported alongside conducting a balance.',
|
|
167
|
+
properties: {
|
|
168
|
+
enabled: {
|
|
169
|
+
description: 'If true AND the signing type supports exports from the POS (tse_epson), the export dialog will be triggered.',
|
|
170
|
+
type: 'boolean',
|
|
171
|
+
default: true // clients using an Epson TSE will have this enabled when the POS application starts supporting the technology (iOS 4.30.0)
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}),
|
|
163
175
|
show_account_names: {
|
|
164
176
|
description: 'Defines if account names are shown additionally to the numbers.',
|
|
165
177
|
default: false,
|
|
@@ -94,6 +94,18 @@ module.exports = {
|
|
|
94
94
|
})
|
|
95
95
|
}
|
|
96
96
|
}),
|
|
97
|
+
automatic: oneOf({
|
|
98
|
+
type: 'object',
|
|
99
|
+
description: 'Rules for automatic discounts when adding a product to the cart',
|
|
100
|
+
additionalProperties: false,
|
|
101
|
+
properties: {
|
|
102
|
+
override_stacked_on_product: oneOf({
|
|
103
|
+
description: 'If true, overrides generic limits.stacked_on_product.',
|
|
104
|
+
type: 'boolean',
|
|
105
|
+
default: false
|
|
106
|
+
})
|
|
107
|
+
}
|
|
108
|
+
}),
|
|
97
109
|
price_and_quantity_edit_condition: oneOf({
|
|
98
110
|
description: 'In case of discounted items - specifies if quantity and price can still be edited',
|
|
99
111
|
type: 'string',
|
|
@@ -115,6 +127,7 @@ module.exports = {
|
|
|
115
127
|
}
|
|
116
128
|
}),
|
|
117
129
|
stacked_on_product: oneOf({
|
|
130
|
+
description: 'Regulates if cart items can have more than 1 discount.',
|
|
118
131
|
type: 'boolean',
|
|
119
132
|
default: true
|
|
120
133
|
})
|
|
@@ -214,6 +214,15 @@ module.exports = oneOf({
|
|
|
214
214
|
minLength: 2,
|
|
215
215
|
maxLength: 24
|
|
216
216
|
},
|
|
217
|
+
type: oneOf({
|
|
218
|
+
description: 'Web view icon type',
|
|
219
|
+
type: 'string',
|
|
220
|
+
enum: [
|
|
221
|
+
'none',
|
|
222
|
+
'calendar'
|
|
223
|
+
],
|
|
224
|
+
default: 'none'
|
|
225
|
+
}),
|
|
217
226
|
log_level: {
|
|
218
227
|
description: 'defines the granularity of the web api logging.',
|
|
219
228
|
type: 'string',
|
|
@@ -298,22 +298,22 @@ const balanceReceipt = {
|
|
|
298
298
|
print_total_sales: oneOf({
|
|
299
299
|
description: 'Defines if the total number of sales will be printed.',
|
|
300
300
|
type: 'boolean',
|
|
301
|
-
default:
|
|
301
|
+
default: false
|
|
302
302
|
}),
|
|
303
303
|
print_tips_section: oneOf({
|
|
304
304
|
description: 'Defines if the extended tips-section will be printed.',
|
|
305
305
|
type: 'boolean',
|
|
306
|
-
default:
|
|
306
|
+
default: false
|
|
307
307
|
}),
|
|
308
308
|
print_cash_units_section: oneOf({
|
|
309
309
|
description: 'Defines if the counted cash units will be printed.',
|
|
310
310
|
type: 'boolean',
|
|
311
|
-
default:
|
|
311
|
+
default: false
|
|
312
312
|
}),
|
|
313
313
|
print_extended_stats: oneOf({
|
|
314
314
|
description: 'Defines if the extended balance stats will be printed. Requires configurations.balances.extended_report and related data.',
|
|
315
315
|
type: 'boolean',
|
|
316
|
-
default:
|
|
316
|
+
default: false
|
|
317
317
|
}),
|
|
318
318
|
print_account_names: oneOf({
|
|
319
319
|
description: 'Defines if account names are printed additionally to the numbers.',
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
type: 'object',
|
|
3
3
|
properties: {
|
|
4
|
+
use_individual_closing_days: {
|
|
5
|
+
type: 'boolean'
|
|
6
|
+
},
|
|
4
7
|
closing_days: {
|
|
5
8
|
type: 'array',
|
|
6
9
|
items: {
|
|
@@ -84,9 +87,25 @@ module.exports = {
|
|
|
84
87
|
},
|
|
85
88
|
reservation_frequency_minutes: {
|
|
86
89
|
type: 'number'
|
|
90
|
+
},
|
|
91
|
+
payment_options: {
|
|
92
|
+
type: 'array',
|
|
93
|
+
items: {
|
|
94
|
+
enum: ['in-store', 'online']
|
|
95
|
+
},
|
|
96
|
+
default: ['in-store']
|
|
97
|
+
},
|
|
98
|
+
terms_of_service_url: {
|
|
99
|
+
oneOf: [
|
|
100
|
+
{ type: 'null' },
|
|
101
|
+
{ type: 'string' }
|
|
102
|
+
]
|
|
87
103
|
}
|
|
88
104
|
}
|
|
89
105
|
},
|
|
106
|
+
use_individual_opening_hours: {
|
|
107
|
+
type: 'boolean'
|
|
108
|
+
},
|
|
90
109
|
opening_hours: {
|
|
91
110
|
type: 'array',
|
|
92
111
|
items: {
|
|
@@ -132,6 +132,11 @@ module.exports = {
|
|
|
132
132
|
maximum: 120
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
+
}),
|
|
136
|
+
allow_time_adjustment_for_archiving: oneOf({
|
|
137
|
+
description: 'defines if exports (archives only) should be tried for expired certificates, HANDLE WITH CARE',
|
|
138
|
+
type: 'boolean',
|
|
139
|
+
default: false
|
|
135
140
|
})
|
|
136
141
|
}
|
|
137
142
|
}),
|
|
@@ -341,7 +346,7 @@ module.exports = {
|
|
|
341
346
|
},
|
|
342
347
|
active: {
|
|
343
348
|
// supported on POS, FALSE for e.g. KHG, TRUE by default
|
|
344
|
-
description: 'If true,
|
|
349
|
+
description: 'If true, customers will be downloaded to the POS',
|
|
345
350
|
default: true,
|
|
346
351
|
type: 'boolean'
|
|
347
352
|
}
|
|
@@ -586,7 +591,8 @@ module.exports = {
|
|
|
586
591
|
},
|
|
587
592
|
only_self_sustained: {
|
|
588
593
|
description: `Instruct clients to filter for types 'variant_product', 'product' and 'voucher'`,
|
|
589
|
-
type: 'boolean'
|
|
594
|
+
type: 'boolean',
|
|
595
|
+
default: true
|
|
590
596
|
}
|
|
591
597
|
}
|
|
592
598
|
},
|
package/lib/v1/products/base.js
CHANGED
|
@@ -198,6 +198,32 @@ const request = {
|
|
|
198
198
|
}
|
|
199
199
|
]
|
|
200
200
|
},
|
|
201
|
+
min_stock: {
|
|
202
|
+
description: 'The minimum stock',
|
|
203
|
+
oneOf: [
|
|
204
|
+
{
|
|
205
|
+
type: 'array',
|
|
206
|
+
items: {
|
|
207
|
+
type: 'object',
|
|
208
|
+
additionalProperties: false,
|
|
209
|
+
properties: {
|
|
210
|
+
location: {
|
|
211
|
+
description: 'Alphanumerical uuid of the location, e.g. branch or warehouse',
|
|
212
|
+
type: 'string',
|
|
213
|
+
format: 'uuid'
|
|
214
|
+
},
|
|
215
|
+
qty: {
|
|
216
|
+
description: 'The min stock qty',
|
|
217
|
+
type: 'number'
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
type: 'null'
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
},
|
|
201
227
|
sellable: {
|
|
202
228
|
description: 'Define whether a product should be sellable (appears in use cases which assume sale)',
|
|
203
229
|
type: 'boolean',
|
package/lib/v1/products/index.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
$id: 'https://schemas.tillhub.com/v1/products.selection.request.schema.json',
|
|
3
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
type: 'object',
|
|
6
|
+
required: ['product_ids'],
|
|
7
|
+
properties: {
|
|
8
|
+
product_ids: {
|
|
9
|
+
type: 'array',
|
|
10
|
+
minItems: 1,
|
|
11
|
+
maxItems: 100,
|
|
12
|
+
items: {
|
|
13
|
+
description: 'Product UUID',
|
|
14
|
+
type: 'string',
|
|
15
|
+
format: 'uuid',
|
|
16
|
+
example: '05297f58-3408-44d0-8bf4-125d4e86c08a'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
package/lib/v1/templates/put.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const base = require('./base').base
|
|
2
2
|
const map = require('./map')
|
|
3
|
-
const options = require('./base').options
|
|
4
3
|
const footerItems = require('./footer-items')
|
|
4
|
+
const options = require('./base').options
|
|
5
5
|
|
|
6
6
|
module.exports.request = {
|
|
7
7
|
$id: 'https://schemas.tillhub.com/v1/templates.put.request.schema.json',
|
|
@@ -3,7 +3,7 @@ const analyticsResponse = require('../../../../common/analytics_response')
|
|
|
3
3
|
const summary = {
|
|
4
4
|
absolute_average_transaction_cancellation_items_total: {
|
|
5
5
|
description: 'Absolute average total of transactions with type "sale_cancel"',
|
|
6
|
-
example:
|
|
6
|
+
example: 2,
|
|
7
7
|
type: ['integer', 'null']
|
|
8
8
|
},
|
|
9
9
|
absolute_average_transaction_items_total: {
|