@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 CHANGED
@@ -1,148 +1,43 @@
1
- ## [6.306.2](https://github.com/tillhub/schemas/compare/v6.306.1...v6.306.2) (2024-04-26)
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
- * **full-receipts:** add the dynamic footer feature ([#943](https://github.com/tillhub/schemas/issues/943)) ([76bfa38](https://github.com/tillhub/schemas/commit/76bfa38))
6
+ * **overview:** fixing example ([b1b02be](https://github.com/tillhub/schemas/commit/b1b02be))
7
7
 
8
- ## [6.306.1](https://github.com/tillhub/schemas/compare/v6.306.0...v6.306.1) (2024-04-26)
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 ([#942](https://github.com/tillhub/schemas/issues/942)) ([5de7c09](https://github.com/tillhub/schemas/commit/5de7c09))
14
- * **report:** add export_history permission ([#941](https://github.com/tillhub/schemas/issues/941)) ([8ffe02f](https://github.com/tillhub/schemas/commit/8ffe02f))
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:** add terms of service url ([#939](https://github.com/tillhub/schemas/issues/939)) ([1482f5d](https://github.com/tillhub/schemas/commit/1482f5d))
19
+ * **configurations:** settings ([6517c36](https://github.com/tillhub/schemas/commit/6517c36))
29
20
 
30
- ## [6.304.1](https://github.com/tillhub/schemas/compare/v6.304.0...v6.304.1) (2024-04-19)
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
- * **products:** export list schema ([#938](https://github.com/tillhub/schemas/issues/938)) ([18b3087](https://github.com/tillhub/schemas/commit/18b3087))
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
- * **branches:** change double backlashes to single ([#935](https://github.com/tillhub/schemas/issues/935)) ([a232a9a](https://github.com/tillhub/schemas/commit/a232a9a))
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
- * **customers:** fix linting issue ([27c4c5c](https://github.com/tillhub/schemas/commit/27c4c5c))
143
- * **customers:** make customer lastname optional ([dc99d1a](https://github.com/tillhub/schemas/commit/dc99d1a))
37
+ ### Bug Fixes
144
38
 
145
- # [6.289.0](https://github.com/tillhub/schemas/compare/v6.288.0...v6.289.0) (2024-02-13)
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
@@ -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
  }
@@ -90,9 +90,5 @@ module.exports = {
90
90
  reservations: {
91
91
  type: 'boolean',
92
92
  default: false
93
- },
94
- reservations_online_payments: {
95
- type: 'boolean',
96
- default: false
97
93
  }
98
94
  }
@@ -26,10 +26,8 @@ module.exports = {
26
26
  lastname: {
27
27
  example: 'Fett',
28
28
  description: 'Last name',
29
- ...anyOf({
30
- type: 'string',
31
- maxLength: 128
32
- })
29
+ type: 'string',
30
+ maxLength: 128
33
31
  },
34
32
  middlename: {
35
33
  description: 'Middle name',
@@ -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',
@@ -22,6 +22,11 @@ module.exports = {
22
22
  type: 'string',
23
23
  format: 'date-time'
24
24
  },
25
+ date: {
26
+ additionalProperties: false,
27
+ type: 'string',
28
+ format: 'date-time'
29
+ },
25
30
  cashier_staff: {
26
31
  anyOf: [
27
32
  {
@@ -1,42 +1,32 @@
1
1
  module.exports = {
2
- shifts: {
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
- branch_id: {
11
+ staff_member_id: {
9
12
  type: 'string',
10
13
  format: 'uuid'
11
14
  },
12
- shift_plan: {
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
- staff_member_id: {
19
- type: 'string',
20
- format: 'uuid'
21
- },
22
- date: {
23
- type: 'string',
24
- format: 'date'
25
+ start: {
26
+ type: 'string'
25
27
  },
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
- }
28
+ end: {
29
+ type: 'string'
40
30
  }
41
31
  }
42
32
  }
@@ -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: false
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: false
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: false
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: false
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, customers will be downloaded to the POS',
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
  },
@@ -12,8 +12,7 @@ module.exports = {
12
12
  enum: [
13
13
  'inclusive',
14
14
  'exclusive'
15
- ],
16
- default: 'inclusive'
15
+ ]
17
16
  }
18
17
  }
19
18
  }
@@ -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',
@@ -9,10 +9,6 @@ module.exports.search = {
9
9
  request: require('./search')
10
10
  }
11
11
 
12
- module.exports.selection = {
13
- request: require('./selection')
14
- }
15
-
16
12
  module.exports.create = {
17
13
  request: require('./create.request'),
18
14
  response: require('./create.response'),
@@ -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: 2,
6
+ example: 12,
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.2",
3
+ "version": "6.306.5",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",
@@ -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
- }