@tillhub/schemas 6.306.5 → 6.307.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,43 +1,176 @@
1
- ## [6.306.5](https://github.com/tillhub/schemas/compare/v6.306.4...v6.306.5) (2024-05-02)
1
+ # [6.307.0](https://github.com/tillhub/schemas/compare/v6.306.7...v6.307.0) (2024-05-13)
2
+
3
+
4
+ ### Features
5
+
6
+ * **promotion:** add barcode schema to the promotion ([#950](https://github.com/tillhub/schemas/issues/950)) ([b33023a](https://github.com/tillhub/schemas/commit/b33023a))
7
+
8
+ ## [6.306.7](https://github.com/tillhub/schemas/compare/v6.306.6...v6.306.7) (2024-05-02)
2
9
 
3
10
 
4
11
  ### Bug Fixes
5
12
 
6
- * **overview:** fixing example ([b1b02be](https://github.com/tillhub/schemas/commit/b1b02be))
13
+ * **overview:** fixing example ([0bb6309](https://github.com/tillhub/schemas/commit/0bb6309))
7
14
 
8
- # [6.306.4](https://github.com/tillhub/schemas/compare/6.306.3...6.306.4) (2024-05-02)
15
+ ## [6.306.4](https://github.com/tillhub/schemas/compare/v6.306.3...v6.306.4) (2024-05-02)
9
16
 
10
17
 
11
18
  ### Bug Fixes
12
19
 
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))
20
+ * **overview:** fixing example ([f57381e](https://github.com/tillhub/schemas/commit/f57381e))
15
21
 
22
+ ## [6.306.3](https://github.com/tillhub/schemas/compare/v6.306.2...v6.306.3) (2024-04-29)
16
23
 
17
- ### Features
18
24
 
19
- * **configurations:** settings ([6517c36](https://github.com/tillhub/schemas/commit/6517c36))
25
+ ### Bug Fixes
26
+
27
+ * **full-receipts:** add the dynamic footer feature ([#944](https://github.com/tillhub/schemas/issues/944)) ([e028b92](https://github.com/tillhub/schemas/commit/e028b92))
20
28
 
21
- # [6.306.3](https://github.com/tillhub/schemas/compare/v6.288.0...v6.289.0) (2024-05-02)
29
+ ## [6.306.2](https://github.com/tillhub/schemas/compare/v6.306.1...v6.306.2) (2024-04-26)
22
30
 
23
31
 
24
32
  ### Bug Fixes
25
33
 
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))
34
+ * **full-receipts:** add the dynamic footer feature ([#943](https://github.com/tillhub/schemas/issues/943)) ([76bfa38](https://github.com/tillhub/schemas/commit/76bfa38))
35
+
36
+ ## [6.306.1](https://github.com/tillhub/schemas/compare/v6.306.0...v6.306.1) (2024-04-26)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * **full-receipts:** add the dynamic footer feature ([#942](https://github.com/tillhub/schemas/issues/942)) ([5de7c09](https://github.com/tillhub/schemas/commit/5de7c09))
42
+ * **report:** add export_history permission ([#941](https://github.com/tillhub/schemas/issues/941)) ([8ffe02f](https://github.com/tillhub/schemas/commit/8ffe02f))
43
+
44
+ # [6.306.0](https://github.com/tillhub/schemas/compare/v6.305.0...v6.306.0) (2024-04-25)
28
45
 
29
46
 
30
47
  ### Features
31
48
 
32
- * **configurations:** settings ([6517c36](https://github.com/tillhub/schemas/commit/6517c36))
49
+ * **products:** rename list to selection ([#940](https://github.com/tillhub/schemas/issues/940)) ([b40f7f4](https://github.com/tillhub/schemas/commit/b40f7f4))
50
+
51
+ # [6.305.0](https://github.com/tillhub/schemas/compare/v6.304.1...v6.305.0) (2024-04-22)
52
+
53
+
54
+ ### Features
55
+
56
+ * **configurations:** add terms of service url ([#939](https://github.com/tillhub/schemas/issues/939)) ([1482f5d](https://github.com/tillhub/schemas/commit/1482f5d))
33
57
 
34
- # [6.289.0](https://github.com/tillhub/schemas/compare/v6.288.0...v6.289.0) (2024-05-02)
58
+ ## [6.304.1](https://github.com/tillhub/schemas/compare/v6.304.0...v6.304.1) (2024-04-19)
35
59
 
36
60
 
37
61
  ### Bug Fixes
38
62
 
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))
63
+ * **products:** export list schema ([#938](https://github.com/tillhub/schemas/issues/938)) ([18b3087](https://github.com/tillhub/schemas/commit/18b3087))
64
+
65
+ # [6.304.0](https://github.com/tillhub/schemas/compare/v6.303.0...v6.304.0) (2024-04-19)
66
+
67
+
68
+ ### Features
69
+
70
+ * **products:** add list request schema ([#937](https://github.com/tillhub/schemas/issues/937)) ([b1cb23b](https://github.com/tillhub/schemas/commit/b1cb23b))
71
+
72
+ # [6.303.0](https://github.com/tillhub/schemas/compare/v6.302.0...v6.303.0) (2024-04-18)
73
+
74
+
75
+ ### Features
76
+
77
+ * **feature_flags:** add online payments feature flag ([#936](https://github.com/tillhub/schemas/issues/936)) ([a8f36d3](https://github.com/tillhub/schemas/commit/a8f36d3))
78
+
79
+ # [6.302.0](https://github.com/tillhub/schemas/compare/v6.301.0...v6.302.0) (2024-04-17)
80
+
81
+
82
+ ### Features
83
+
84
+ * **branches:** change double backlashes to single ([#935](https://github.com/tillhub/schemas/issues/935)) ([a232a9a](https://github.com/tillhub/schemas/commit/a232a9a))
85
+
86
+ # [6.301.0](https://github.com/tillhub/schemas/compare/v6.300.0...v6.301.0) (2024-04-11)
87
+
88
+
89
+ ### Features
90
+
91
+ * **configurations:** add map address field ([#930](https://github.com/tillhub/schemas/issues/930)) ([a4532a3](https://github.com/tillhub/schemas/commit/a4532a3))
92
+
93
+ # [6.300.0](https://github.com/tillhub/schemas/compare/v6.299.0...v6.300.0) (2024-04-11)
94
+
95
+
96
+ ### Features
97
+
98
+ * **shift_plan:** add shifts for multiple branches ([#934](https://github.com/tillhub/schemas/issues/934)) ([f29c220](https://github.com/tillhub/schemas/commit/f29c220))
99
+
100
+ # [6.299.0](https://github.com/tillhub/schemas/compare/v6.298.0...v6.299.0) (2024-04-09)
101
+
102
+
103
+ ### Features
104
+
105
+ * **staffs:** add branch id to time ranges ([#931](https://github.com/tillhub/schemas/issues/931)) ([78bb4db](https://github.com/tillhub/schemas/commit/78bb4db))
106
+
107
+ # [6.298.0](https://github.com/tillhub/schemas/compare/v6.297.0...v6.298.0) (2024-04-06)
108
+
109
+
110
+ ### Features
111
+
112
+ * **products:** removed min_order_qty as it should be per supplier ([0289ad5](https://github.com/tillhub/schemas/commit/0289ad5))
113
+
114
+ # [6.297.0](https://github.com/tillhub/schemas/compare/v6.296.0...v6.297.0) (2024-03-28)
115
+
116
+
117
+ ### Features
118
+
119
+ * **products:** added min stock and order ([4a90afb](https://github.com/tillhub/schemas/commit/4a90afb))
120
+ * **products:** min_stock and min_order nullable ([22386a9](https://github.com/tillhub/schemas/commit/22386a9))
121
+
122
+ # [6.296.0](https://github.com/tillhub/schemas/compare/v6.295.0...v6.296.0) (2024-03-25)
123
+
124
+
125
+ ### Features
126
+
127
+ * **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))
128
+
129
+ # [6.295.0](https://github.com/tillhub/schemas/compare/v6.294.0...v6.295.0) (2024-03-21)
130
+
131
+
132
+ ### Features
133
+
134
+ * **configurations:** discounts ([a300ddf](https://github.com/tillhub/schemas/commit/a300ddf))
135
+
136
+ # [6.294.0](https://github.com/tillhub/schemas/compare/v6.293.0...v6.294.0) (2024-03-19)
137
+
138
+
139
+ ### Features
140
+
141
+ * **web_view:** icon configuration ([b0314a6](https://github.com/tillhub/schemas/commit/b0314a6))
142
+
143
+ # [6.293.0](https://github.com/tillhub/schemas/compare/v6.292.0...v6.293.0) (2024-03-06)
144
+
145
+
146
+ ### Features
147
+
148
+ * **customers:** make lastname nullable ([275a9e1](https://github.com/tillhub/schemas/commit/275a9e1))
149
+
150
+ # [6.292.0](https://github.com/tillhub/schemas/compare/v6.291.0...v6.292.0) (2024-03-01)
151
+
152
+
153
+ ### Features
154
+
155
+ * **configurations:** fix defaults ([b1538e2](https://github.com/tillhub/schemas/commit/b1538e2))
156
+
157
+ # [6.291.0](https://github.com/tillhub/schemas/compare/v6.290.0...v6.291.0) (2024-02-26)
158
+
159
+
160
+ ### Features
161
+
162
+ * **configurations:** balances ([9053e0c](https://github.com/tillhub/schemas/commit/9053e0c))
163
+ * **configurations:** settings ([514bf1c](https://github.com/tillhub/schemas/commit/514bf1c))
164
+
165
+ # [6.290.0](https://github.com/tillhub/schemas/compare/v6.289.0...v6.290.0) (2024-02-15)
166
+
167
+
168
+ ### Features
169
+
170
+ * **customers:** fix linting issue ([27c4c5c](https://github.com/tillhub/schemas/commit/27c4c5c))
171
+ * **customers:** make customer lastname optional ([dc99d1a](https://github.com/tillhub/schemas/commit/dc99d1a))
172
+
173
+ # [6.289.0](https://github.com/tillhub/schemas/compare/v6.288.0...v6.289.0) (2024-02-13)
41
174
 
42
175
 
43
176
  ### Features
@@ -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
  }
@@ -90,5 +90,9 @@ module.exports = {
90
90
  reservations: {
91
91
  type: 'boolean',
92
92
  default: false
93
+ },
94
+ reservations_online_payments: {
95
+ type: 'boolean',
96
+ default: false
93
97
  }
94
98
  }
@@ -26,8 +26,10 @@ module.exports = {
26
26
  lastname: {
27
27
  example: 'Fett',
28
28
  description: 'Last name',
29
- type: 'string',
30
- maxLength: 128
29
+ ...anyOf({
30
+ type: 'string',
31
+ maxLength: 128
32
+ })
31
33
  },
32
34
  middlename: {
33
35
  description: 'Middle name',
@@ -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',
@@ -86,5 +86,12 @@ module.exports = {
86
86
  description: 'The version number of the promotion. Version 1 is deprecated, current version is 2',
87
87
  example: 2,
88
88
  minimum: 1
89
- })
89
+ }),
90
+ barcode: {
91
+ description: 'The barcode used to trigger the promotion',
92
+ example: '0E9761310XF',
93
+ ...oneOf({
94
+ type: 'string'
95
+ })
96
+ }
90
97
  }
@@ -1,32 +1,42 @@
1
1
  module.exports = {
2
- shift_plan_enabled: {
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
- staff_member_id: {
8
+ branch_id: {
12
9
  type: 'string',
13
10
  format: 'uuid'
14
11
  },
15
- date: {
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
- start: {
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
- end: {
29
- type: 'string'
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
  }
@@ -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: true
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: true
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: true
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: true
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, products will be downloaded to the POS',
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
  },
@@ -12,7 +12,8 @@ module.exports = {
12
12
  enum: [
13
13
  'inclusive',
14
14
  'exclusive'
15
- ]
15
+ ],
16
+ default: 'inclusive'
16
17
  }
17
18
  }
18
19
  }
@@ -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',
@@ -9,6 +9,10 @@ module.exports.search = {
9
9
  request: require('./search')
10
10
  }
11
11
 
12
+ module.exports.selection = {
13
+ request: require('./selection')
14
+ }
15
+
12
16
  module.exports.create = {
13
17
  request: require('./create.request'),
14
18
  response: require('./create.response'),
@@ -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
+ }
@@ -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: 12,
6
+ example: 2,
7
7
  type: ['integer', 'null']
8
8
  },
9
9
  absolute_average_transaction_items_total: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.306.5",
3
+ "version": "6.307.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",