@tillhub/schemas 6.136.1 → 6.139.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,3 +1,24 @@
1
+ # [6.139.0](https://github.com/tillhub/schemas/compare/v6.138.0...v6.139.0) (2022-05-17)
2
+
3
+
4
+ ### Features
5
+
6
+ * **configurations:** receipts ([296248d](https://github.com/tillhub/schemas/commit/296248d))
7
+
8
+ # [6.138.0](https://github.com/tillhub/schemas/compare/v6.137.0...v6.138.0) (2022-05-12)
9
+
10
+
11
+ ### Features
12
+
13
+ * **voucher_systems:** Add ?q= search to Voucher Systems ([#702](https://github.com/tillhub/schemas/issues/702)) ([0911a9f](https://github.com/tillhub/schemas/commit/0911a9f))
14
+
15
+ # [6.137.0](https://github.com/tillhub/schemas/compare/v6.136.1...v6.137.0) (2022-05-11)
16
+
17
+
18
+ ### Features
19
+
20
+ * **stocks:** Add type column to stock_book ([57904e3](https://github.com/tillhub/schemas/commit/57904e3))
21
+
1
22
  ## [6.136.1](https://github.com/tillhub/schemas/compare/v6.136.0...v6.136.1) (2022-04-28)
2
23
 
3
24
 
@@ -31,5 +31,25 @@ module.exports = {
31
31
  type: 'null'
32
32
  }
33
33
  ]
34
+ },
35
+ type: {
36
+ anyOf: [
37
+ {
38
+ type: 'string',
39
+ 'enum': [
40
+ 'goods_in',
41
+ 'goods_out',
42
+ 'relocation',
43
+ 'sale',
44
+ 'cancellation',
45
+ 'refund',
46
+ 'delivery_note',
47
+ 'delivery_note_cancellation'
48
+ ]
49
+ },
50
+ {
51
+ type: 'null'
52
+ }
53
+ ]
34
54
  }
35
55
  }
@@ -20,5 +20,10 @@ module.exports = {
20
20
  'true',
21
21
  'false'
22
22
  ]
23
+ },
24
+ q: {
25
+ description: 'Search by voucher system name, with a partial match',
26
+ example: 'abocard',
27
+ type: 'string'
23
28
  }
24
29
  }
@@ -16,6 +16,11 @@ const commonReceipt = {
16
16
  type: 'boolean',
17
17
  default: true
18
18
  }),
19
+ print_branch_footer_image: oneOf({
20
+ description: 'Defines if the branch footer image will be printed (for types that support it)',
21
+ type: 'boolean',
22
+ default: true // false for expenses, balance
23
+ }),
19
24
  print_cashier_policy: oneOf({
20
25
  description: 'Defines if and how the cashier will be printed on the receipt',
21
26
  type: 'string',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.136.1",
3
+ "version": "6.139.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",