@tillhub/schemas 6.306.2 → 6.306.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 +14 -119
- package/lib/v0/branches/base.js +0 -19
- package/lib/v0/client_accounts/features/base.js +0 -4
- package/lib/v0/customers/base.js +2 -4
- package/lib/v0/customers/create.js +4 -1
- package/lib/v0/pdfs/templates.full_receipts.create.request.js +5 -0
- package/lib/v0/shift_plan/base.js +14 -24
- package/lib/v0/staff/base.js +0 -5
- package/lib/v1/configurations/items/balances.js +0 -12
- package/lib/v1/configurations/items/discounts.js +0 -13
- package/lib/v1/configurations/items/features.js +0 -9
- package/lib/v1/configurations/items/receipts.js +4 -4
- package/lib/v1/configurations/items/reservations.js +0 -19
- package/lib/v1/configurations/items/settings.js +2 -8
- package/lib/v1/configurations/items/taxes.js +1 -2
- package/lib/v1/products/base.js +0 -26
- package/lib/v1/products/index.js +0 -4
- package/lib/v1/templates/put.js +1 -1
- package/lib/v3/analytics/reports/transactions/overview.js +1 -1
- package/package.json +1 -1
- package/lib/v1/products/selection.js +0 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,148 +1,43 @@
|
|
|
1
|
-
## [6.306.
|
|
1
|
+
## [6.306.5](https://github.com/tillhub/schemas/compare/v6.306.4...v6.306.5) (2024-05-02)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* **
|
|
6
|
+
* **overview:** fixing example ([b1b02be](https://github.com/tillhub/schemas/commit/b1b02be))
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
# [6.306.4](https://github.com/tillhub/schemas/compare/6.306.3...6.306.4) (2024-05-02)
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
### Bug Fixes
|
|
12
12
|
|
|
13
|
-
* **full-receipts:** add the dynamic footer feature ([#
|
|
14
|
-
* **
|
|
15
|
-
|
|
16
|
-
# [6.306.0](https://github.com/tillhub/schemas/compare/v6.305.0...v6.306.0) (2024-04-25)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
### Features
|
|
20
|
-
|
|
21
|
-
* **products:** rename list to selection ([#940](https://github.com/tillhub/schemas/issues/940)) ([b40f7f4](https://github.com/tillhub/schemas/commit/b40f7f4))
|
|
22
|
-
|
|
23
|
-
# [6.305.0](https://github.com/tillhub/schemas/compare/v6.304.1...v6.305.0) (2024-04-22)
|
|
13
|
+
* **full-receipts:** add the dynamic footer feature ([#943](https://github.com/tillhub/schemas/issues/943)) ([9497e3a](https://github.com/tillhub/schemas/commit/9497e3a))
|
|
14
|
+
* **full-receipts:** add the dynamic footer feature ([#944](https://github.com/tillhub/schemas/issues/944)) ([db57b5c](https://github.com/tillhub/schemas/commit/db57b5c))
|
|
24
15
|
|
|
25
16
|
|
|
26
17
|
### Features
|
|
27
18
|
|
|
28
|
-
* **configurations:**
|
|
19
|
+
* **configurations:** settings ([6517c36](https://github.com/tillhub/schemas/commit/6517c36))
|
|
29
20
|
|
|
30
|
-
|
|
21
|
+
# [6.306.3](https://github.com/tillhub/schemas/compare/v6.288.0...v6.289.0) (2024-05-02)
|
|
31
22
|
|
|
32
23
|
|
|
33
24
|
### Bug Fixes
|
|
34
25
|
|
|
35
|
-
* **
|
|
36
|
-
|
|
37
|
-
# [6.304.0](https://github.com/tillhub/schemas/compare/v6.303.0...v6.304.0) (2024-04-19)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
### Features
|
|
41
|
-
|
|
42
|
-
* **products:** add list request schema ([#937](https://github.com/tillhub/schemas/issues/937)) ([b1cb23b](https://github.com/tillhub/schemas/commit/b1cb23b))
|
|
43
|
-
|
|
44
|
-
# [6.303.0](https://github.com/tillhub/schemas/compare/v6.302.0...v6.303.0) (2024-04-18)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
### Features
|
|
48
|
-
|
|
49
|
-
* **feature_flags:** add online payments feature flag ([#936](https://github.com/tillhub/schemas/issues/936)) ([a8f36d3](https://github.com/tillhub/schemas/commit/a8f36d3))
|
|
50
|
-
|
|
51
|
-
# [6.302.0](https://github.com/tillhub/schemas/compare/v6.301.0...v6.302.0) (2024-04-17)
|
|
26
|
+
* **full-receipts:** add the dynamic footer feature ([#943](https://github.com/tillhub/schemas/issues/943)) ([9497e3a](https://github.com/tillhub/schemas/commit/9497e3a))
|
|
27
|
+
* **full-receipts:** add the dynamic footer feature ([#944](https://github.com/tillhub/schemas/issues/944)) ([db57b5c](https://github.com/tillhub/schemas/commit/db57b5c))
|
|
52
28
|
|
|
53
29
|
|
|
54
30
|
### Features
|
|
55
31
|
|
|
56
|
-
* **
|
|
57
|
-
|
|
58
|
-
# [6.301.0](https://github.com/tillhub/schemas/compare/v6.300.0...v6.301.0) (2024-04-11)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
### Features
|
|
62
|
-
|
|
63
|
-
* **configurations:** add map address field ([#930](https://github.com/tillhub/schemas/issues/930)) ([a4532a3](https://github.com/tillhub/schemas/commit/a4532a3))
|
|
64
|
-
|
|
65
|
-
# [6.300.0](https://github.com/tillhub/schemas/compare/v6.299.0...v6.300.0) (2024-04-11)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
### Features
|
|
69
|
-
|
|
70
|
-
* **shift_plan:** add shifts for multiple branches ([#934](https://github.com/tillhub/schemas/issues/934)) ([f29c220](https://github.com/tillhub/schemas/commit/f29c220))
|
|
71
|
-
|
|
72
|
-
# [6.299.0](https://github.com/tillhub/schemas/compare/v6.298.0...v6.299.0) (2024-04-09)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
### Features
|
|
76
|
-
|
|
77
|
-
* **staffs:** add branch id to time ranges ([#931](https://github.com/tillhub/schemas/issues/931)) ([78bb4db](https://github.com/tillhub/schemas/commit/78bb4db))
|
|
78
|
-
|
|
79
|
-
# [6.298.0](https://github.com/tillhub/schemas/compare/v6.297.0...v6.298.0) (2024-04-06)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
### Features
|
|
83
|
-
|
|
84
|
-
* **products:** removed min_order_qty as it should be per supplier ([0289ad5](https://github.com/tillhub/schemas/commit/0289ad5))
|
|
85
|
-
|
|
86
|
-
# [6.297.0](https://github.com/tillhub/schemas/compare/v6.296.0...v6.297.0) (2024-03-28)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
### Features
|
|
90
|
-
|
|
91
|
-
* **products:** added min stock and order ([4a90afb](https://github.com/tillhub/schemas/commit/4a90afb))
|
|
92
|
-
* **products:** min_stock and min_order nullable ([22386a9](https://github.com/tillhub/schemas/commit/22386a9))
|
|
93
|
-
|
|
94
|
-
# [6.296.0](https://github.com/tillhub/schemas/compare/v6.295.0...v6.296.0) (2024-03-25)
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
### Features
|
|
98
|
-
|
|
99
|
-
* **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))
|
|
100
|
-
|
|
101
|
-
# [6.295.0](https://github.com/tillhub/schemas/compare/v6.294.0...v6.295.0) (2024-03-21)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
### Features
|
|
105
|
-
|
|
106
|
-
* **configurations:** discounts ([a300ddf](https://github.com/tillhub/schemas/commit/a300ddf))
|
|
107
|
-
|
|
108
|
-
# [6.294.0](https://github.com/tillhub/schemas/compare/v6.293.0...v6.294.0) (2024-03-19)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
### Features
|
|
112
|
-
|
|
113
|
-
* **web_view:** icon configuration ([b0314a6](https://github.com/tillhub/schemas/commit/b0314a6))
|
|
114
|
-
|
|
115
|
-
# [6.293.0](https://github.com/tillhub/schemas/compare/v6.292.0...v6.293.0) (2024-03-06)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
### Features
|
|
119
|
-
|
|
120
|
-
* **customers:** make lastname nullable ([275a9e1](https://github.com/tillhub/schemas/commit/275a9e1))
|
|
121
|
-
|
|
122
|
-
# [6.292.0](https://github.com/tillhub/schemas/compare/v6.291.0...v6.292.0) (2024-03-01)
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
### Features
|
|
126
|
-
|
|
127
|
-
* **configurations:** fix defaults ([b1538e2](https://github.com/tillhub/schemas/commit/b1538e2))
|
|
128
|
-
|
|
129
|
-
# [6.291.0](https://github.com/tillhub/schemas/compare/v6.290.0...v6.291.0) (2024-02-26)
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
### Features
|
|
133
|
-
|
|
134
|
-
* **configurations:** balances ([9053e0c](https://github.com/tillhub/schemas/commit/9053e0c))
|
|
135
|
-
* **configurations:** settings ([514bf1c](https://github.com/tillhub/schemas/commit/514bf1c))
|
|
136
|
-
|
|
137
|
-
# [6.290.0](https://github.com/tillhub/schemas/compare/v6.289.0...v6.290.0) (2024-02-15)
|
|
32
|
+
* **configurations:** settings ([6517c36](https://github.com/tillhub/schemas/commit/6517c36))
|
|
138
33
|
|
|
34
|
+
# [6.289.0](https://github.com/tillhub/schemas/compare/v6.288.0...v6.289.0) (2024-05-02)
|
|
139
35
|
|
|
140
|
-
### Features
|
|
141
36
|
|
|
142
|
-
|
|
143
|
-
* **customers:** make customer lastname optional ([dc99d1a](https://github.com/tillhub/schemas/commit/dc99d1a))
|
|
37
|
+
### Bug Fixes
|
|
144
38
|
|
|
145
|
-
|
|
39
|
+
* **full-receipts:** add the dynamic footer feature ([#943](https://github.com/tillhub/schemas/issues/943)) ([9497e3a](https://github.com/tillhub/schemas/commit/9497e3a))
|
|
40
|
+
* **full-receipts:** add the dynamic footer feature ([#944](https://github.com/tillhub/schemas/issues/944)) ([db57b5c](https://github.com/tillhub/schemas/commit/db57b5c))
|
|
146
41
|
|
|
147
42
|
|
|
148
43
|
### Features
|
package/lib/v0/branches/base.js
CHANGED
|
@@ -368,19 +368,6 @@ 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
|
-
]
|
|
384
371
|
}
|
|
385
372
|
},
|
|
386
373
|
required: [
|
|
@@ -542,11 +529,5 @@ module.exports = {
|
|
|
542
529
|
type: 'null'
|
|
543
530
|
}
|
|
544
531
|
]
|
|
545
|
-
},
|
|
546
|
-
shift_plan_enabled: {
|
|
547
|
-
description: 'Define if this branch uses a shift plan.',
|
|
548
|
-
example: 'false',
|
|
549
|
-
type: 'boolean',
|
|
550
|
-
default: false
|
|
551
532
|
}
|
|
552
533
|
}
|
package/lib/v0/customers/base.js
CHANGED
|
@@ -11,7 +11,10 @@ module.exports = {
|
|
|
11
11
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
12
12
|
additionalProperties: false,
|
|
13
13
|
type: 'object',
|
|
14
|
-
properties: base
|
|
14
|
+
properties: base,
|
|
15
|
+
required: [
|
|
16
|
+
'lastname'
|
|
17
|
+
]
|
|
15
18
|
},
|
|
16
19
|
response: {
|
|
17
20
|
$id: 'https://schemas.tillhub.com/v0/customers.create.response.schema.json',
|
|
@@ -1,42 +1,32 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
2
|
+
shift_plan_enabled: {
|
|
3
|
+
type: 'boolean'
|
|
4
|
+
},
|
|
5
|
+
shift_plan: {
|
|
3
6
|
type: 'array',
|
|
4
7
|
items: {
|
|
5
8
|
type: 'object',
|
|
6
9
|
additionalProperties: false,
|
|
7
10
|
properties: {
|
|
8
|
-
|
|
11
|
+
staff_member_id: {
|
|
9
12
|
type: 'string',
|
|
10
13
|
format: 'uuid'
|
|
11
14
|
},
|
|
12
|
-
|
|
15
|
+
date: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
format: 'date'
|
|
18
|
+
},
|
|
19
|
+
plan: {
|
|
13
20
|
type: 'array',
|
|
14
21
|
items: {
|
|
15
22
|
type: 'object',
|
|
16
23
|
additionalProperties: false,
|
|
17
24
|
properties: {
|
|
18
|
-
|
|
19
|
-
type: 'string'
|
|
20
|
-
format: 'uuid'
|
|
21
|
-
},
|
|
22
|
-
date: {
|
|
23
|
-
type: 'string',
|
|
24
|
-
format: 'date'
|
|
25
|
+
start: {
|
|
26
|
+
type: 'string'
|
|
25
27
|
},
|
|
26
|
-
|
|
27
|
-
type: '
|
|
28
|
-
items: {
|
|
29
|
-
type: 'object',
|
|
30
|
-
additionalProperties: false,
|
|
31
|
-
properties: {
|
|
32
|
-
start: {
|
|
33
|
-
type: 'string'
|
|
34
|
-
},
|
|
35
|
-
end: {
|
|
36
|
-
type: 'string'
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
28
|
+
end: {
|
|
29
|
+
type: 'string'
|
|
40
30
|
}
|
|
41
31
|
}
|
|
42
32
|
}
|
package/lib/v0/staff/base.js
CHANGED
|
@@ -549,11 +549,6 @@ 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'
|
|
557
552
|
}
|
|
558
553
|
}
|
|
559
554
|
}
|
|
@@ -160,18 +160,6 @@ 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
|
-
}),
|
|
175
163
|
show_account_names: {
|
|
176
164
|
description: 'Defines if account names are shown additionally to the numbers.',
|
|
177
165
|
default: false,
|
|
@@ -94,18 +94,6 @@ 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
|
-
}),
|
|
109
97
|
price_and_quantity_edit_condition: oneOf({
|
|
110
98
|
description: 'In case of discounted items - specifies if quantity and price can still be edited',
|
|
111
99
|
type: 'string',
|
|
@@ -127,7 +115,6 @@ module.exports = {
|
|
|
127
115
|
}
|
|
128
116
|
}),
|
|
129
117
|
stacked_on_product: oneOf({
|
|
130
|
-
description: 'Regulates if cart items can have more than 1 discount.',
|
|
131
118
|
type: 'boolean',
|
|
132
119
|
default: true
|
|
133
120
|
})
|
|
@@ -214,15 +214,6 @@ 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
|
-
}),
|
|
226
217
|
log_level: {
|
|
227
218
|
description: 'defines the granularity of the web api logging.',
|
|
228
219
|
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: true
|
|
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: true
|
|
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: true
|
|
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: true
|
|
317
317
|
}),
|
|
318
318
|
print_account_names: oneOf({
|
|
319
319
|
description: 'Defines if account names are printed additionally to the numbers.',
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
type: 'object',
|
|
3
3
|
properties: {
|
|
4
|
-
use_individual_closing_days: {
|
|
5
|
-
type: 'boolean'
|
|
6
|
-
},
|
|
7
4
|
closing_days: {
|
|
8
5
|
type: 'array',
|
|
9
6
|
items: {
|
|
@@ -87,25 +84,9 @@ module.exports = {
|
|
|
87
84
|
},
|
|
88
85
|
reservation_frequency_minutes: {
|
|
89
86
|
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
|
-
]
|
|
103
87
|
}
|
|
104
88
|
}
|
|
105
89
|
},
|
|
106
|
-
use_individual_opening_hours: {
|
|
107
|
-
type: 'boolean'
|
|
108
|
-
},
|
|
109
90
|
opening_hours: {
|
|
110
91
|
type: 'array',
|
|
111
92
|
items: {
|
|
@@ -132,11 +132,6 @@ 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
|
|
140
135
|
})
|
|
141
136
|
}
|
|
142
137
|
}),
|
|
@@ -346,7 +341,7 @@ module.exports = {
|
|
|
346
341
|
},
|
|
347
342
|
active: {
|
|
348
343
|
// supported on POS, FALSE for e.g. KHG, TRUE by default
|
|
349
|
-
description: 'If true,
|
|
344
|
+
description: 'If true, products will be downloaded to the POS',
|
|
350
345
|
default: true,
|
|
351
346
|
type: 'boolean'
|
|
352
347
|
}
|
|
@@ -591,8 +586,7 @@ module.exports = {
|
|
|
591
586
|
},
|
|
592
587
|
only_self_sustained: {
|
|
593
588
|
description: `Instruct clients to filter for types 'variant_product', 'product' and 'voucher'`,
|
|
594
|
-
type: 'boolean'
|
|
595
|
-
default: true
|
|
589
|
+
type: 'boolean'
|
|
596
590
|
}
|
|
597
591
|
}
|
|
598
592
|
},
|
package/lib/v1/products/base.js
CHANGED
|
@@ -198,32 +198,6 @@ 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
|
-
},
|
|
227
201
|
sellable: {
|
|
228
202
|
description: 'Define whether a product should be sellable (appears in use cases which assume sale)',
|
|
229
203
|
type: 'boolean',
|
package/lib/v1/products/index.js
CHANGED
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 footerItems = require('./footer-items')
|
|
4
3
|
const options = require('./base').options
|
|
4
|
+
const footerItems = require('./footer-items')
|
|
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: 12,
|
|
7
7
|
type: ['integer', 'null']
|
|
8
8
|
},
|
|
9
9
|
absolute_average_transaction_items_total: {
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
}
|