@tillhub/schemas 6.136.0 → 6.138.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,9 +1,134 @@
1
+ # [6.138.0](https://github.com/tillhub/schemas/compare/v6.137.0...v6.138.0) (2022-05-12)
2
+
3
+
4
+ ### Features
5
+
6
+ * **voucher_systems:** Add ?q= search to Voucher Systems ([#702](https://github.com/tillhub/schemas/issues/702)) ([0911a9f](https://github.com/tillhub/schemas/commit/0911a9f))
7
+
8
+ # [6.137.0](https://github.com/tillhub/schemas/compare/v6.136.1...v6.137.0) (2022-05-11)
9
+
10
+
11
+ ### Features
12
+
13
+ * **stocks:** Add type column to stock_book ([57904e3](https://github.com/tillhub/schemas/commit/57904e3))
14
+
15
+ ## [6.136.1](https://github.com/tillhub/schemas/compare/v6.136.0...v6.136.1) (2022-04-28)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **core:** check next tag generation ([11b8e9f](https://github.com/tillhub/schemas/commit/11b8e9f))
21
+
22
+ # [6.136.0](https://github.com/tillhub/schemas/compare/v6.135.1...v6.136.0) (2022-04-28)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **analytics:** Staff sales report import ([#699](https://github.com/tillhub/schemas/issues/699)) ([1ece38d](https://github.com/tillhub/schemas/commit/1ece38d))
28
+ * **chore:** Version bump ([#700](https://github.com/tillhub/schemas/issues/700)) ([a3719a0](https://github.com/tillhub/schemas/commit/a3719a0))
29
+ * **core:** remove version disturbance ([8f49e30](https://github.com/tillhub/schemas/commit/8f49e30))
30
+ * **core:** remove version disturbance ([aa6c5c2](https://github.com/tillhub/schemas/commit/aa6c5c2))
31
+ * **core:** remove version disturbance v1 ([516e326](https://github.com/tillhub/schemas/commit/516e326))
32
+
33
+
34
+ ### Features
35
+
36
+ * **analytics:** Staff sales report ([#695](https://github.com/tillhub/schemas/issues/695)) ([2202904](https://github.com/tillhub/schemas/commit/2202904))
37
+ * **analytics:** Staff sales report fixed ([#697](https://github.com/tillhub/schemas/issues/697)) ([4b55077](https://github.com/tillhub/schemas/commit/4b55077))
38
+ * **analytics:** Staff sales report import fixed ([#698](https://github.com/tillhub/schemas/issues/698)) ([8ae1f80](https://github.com/tillhub/schemas/commit/8ae1f80))
39
+
40
+ # [6.136.0](https://github.com/tillhub/schemas/compare/v6.135.1...v6.136.0) (2022-04-28)
41
+
42
+
43
+ ### Bug Fixes
44
+
45
+ * **analytics:** Staff sales report import ([#699](https://github.com/tillhub/schemas/issues/699)) ([1ece38d](https://github.com/tillhub/schemas/commit/1ece38d))
46
+ * **chore:** Version bump ([#700](https://github.com/tillhub/schemas/issues/700)) ([a3719a0](https://github.com/tillhub/schemas/commit/a3719a0))
47
+ * **core:** remove version disturbance ([8f49e30](https://github.com/tillhub/schemas/commit/8f49e30))
48
+ * **core:** remove version disturbance ([aa6c5c2](https://github.com/tillhub/schemas/commit/aa6c5c2))
49
+
50
+
51
+ ### Features
52
+
53
+ * **analytics:** Staff sales report ([#695](https://github.com/tillhub/schemas/issues/695)) ([2202904](https://github.com/tillhub/schemas/commit/2202904))
54
+ * **analytics:** Staff sales report fixed ([#697](https://github.com/tillhub/schemas/issues/697)) ([4b55077](https://github.com/tillhub/schemas/commit/4b55077))
55
+ * **analytics:** Staff sales report import fixed ([#698](https://github.com/tillhub/schemas/issues/698)) ([8ae1f80](https://github.com/tillhub/schemas/commit/8ae1f80))
56
+
57
+ # [6.136.0](https://github.com/tillhub/schemas/compare/v6.135.1...v6.136.0) (2022-04-28)
58
+
59
+
60
+ ### Bug Fixes
61
+
62
+ * **analytics:** Staff sales report import ([#699](https://github.com/tillhub/schemas/issues/699)) ([1ece38d](https://github.com/tillhub/schemas/commit/1ece38d))
63
+ * **chore:** Version bump ([#700](https://github.com/tillhub/schemas/issues/700)) ([a3719a0](https://github.com/tillhub/schemas/commit/a3719a0))
64
+ * **core:** remove version disturbance ([aa6c5c2](https://github.com/tillhub/schemas/commit/aa6c5c2))
65
+
66
+
67
+ ### Features
68
+
69
+ * **analytics:** Staff sales report ([#695](https://github.com/tillhub/schemas/issues/695)) ([2202904](https://github.com/tillhub/schemas/commit/2202904))
70
+ * **analytics:** Staff sales report fixed ([#697](https://github.com/tillhub/schemas/issues/697)) ([4b55077](https://github.com/tillhub/schemas/commit/4b55077))
71
+ * **analytics:** Staff sales report import fixed ([#698](https://github.com/tillhub/schemas/issues/698)) ([8ae1f80](https://github.com/tillhub/schemas/commit/8ae1f80))
72
+
73
+ # [6.136.0](https://github.com/tillhub/schemas/compare/v6.135.1...v6.136.0) (2022-04-27)
74
+
75
+
76
+ ### Bug Fixes
77
+
78
+ * **analytics:** Staff sales report import ([#699](https://github.com/tillhub/schemas/issues/699)) ([1ece38d](https://github.com/tillhub/schemas/commit/1ece38d))
79
+ * **chore:** Version bump ([#700](https://github.com/tillhub/schemas/issues/700)) ([a3719a0](https://github.com/tillhub/schemas/commit/a3719a0))
80
+
81
+
82
+ ### Features
83
+
84
+ * **analytics:** Staff sales report ([#695](https://github.com/tillhub/schemas/issues/695)) ([2202904](https://github.com/tillhub/schemas/commit/2202904))
85
+ * **analytics:** Staff sales report fixed ([#697](https://github.com/tillhub/schemas/issues/697)) ([4b55077](https://github.com/tillhub/schemas/commit/4b55077))
86
+ * **analytics:** Staff sales report import fixed ([#698](https://github.com/tillhub/schemas/issues/698)) ([8ae1f80](https://github.com/tillhub/schemas/commit/8ae1f80))
87
+
88
+ # [6.136.0](https://github.com/tillhub/schemas/compare/v6.135.1...v6.136.0) (2022-04-27)
89
+
90
+
91
+ ### Bug Fixes
92
+
93
+ * **analytics:** Staff sales report import ([#699](https://github.com/tillhub/schemas/issues/699)) ([1ece38d](https://github.com/tillhub/schemas/commit/1ece38d))
94
+
95
+
96
+ ### Features
97
+
98
+ * **analytics:** Staff sales report ([#695](https://github.com/tillhub/schemas/issues/695)) ([2202904](https://github.com/tillhub/schemas/commit/2202904))
99
+ * **analytics:** Staff sales report fixed ([#697](https://github.com/tillhub/schemas/issues/697)) ([4b55077](https://github.com/tillhub/schemas/commit/4b55077))
100
+ * **analytics:** Staff sales report import fixed ([#698](https://github.com/tillhub/schemas/issues/698)) ([8ae1f80](https://github.com/tillhub/schemas/commit/8ae1f80))
101
+
102
+ # [6.136.0](https://github.com/tillhub/schemas/compare/v6.135.1...v6.136.0) (2022-04-27)
103
+
104
+
105
+ ### Features
106
+
107
+ * **analytics:** Staff sales report ([#695](https://github.com/tillhub/schemas/issues/695)) ([2202904](https://github.com/tillhub/schemas/commit/2202904))
108
+ * **analytics:** Staff sales report fixed ([#697](https://github.com/tillhub/schemas/issues/697)) ([4b55077](https://github.com/tillhub/schemas/commit/4b55077))
109
+ * **analytics:** Staff sales report import fixed ([#698](https://github.com/tillhub/schemas/issues/698)) ([8ae1f80](https://github.com/tillhub/schemas/commit/8ae1f80))
110
+
111
+ # [6.136.0](https://github.com/tillhub/schemas/compare/v6.135.1...v6.136.0) (2022-04-27)
112
+
113
+
114
+ ### Features
115
+
116
+ * **analytics:** Staff sales report ([#695](https://github.com/tillhub/schemas/issues/695)) ([2202904](https://github.com/tillhub/schemas/commit/2202904))
117
+ * **analytics:** Staff sales report fixed ([#697](https://github.com/tillhub/schemas/issues/697)) ([4b55077](https://github.com/tillhub/schemas/commit/4b55077))
118
+
119
+ # [6.136.0](https://github.com/tillhub/schemas/compare/v6.135.1...v6.136.0) (2022-04-27)
120
+
121
+
122
+ ### Features
123
+
124
+ * **analytics:** Staff sales report ([#695](https://github.com/tillhub/schemas/issues/695)) ([2202904](https://github.com/tillhub/schemas/commit/2202904))
125
+
1
126
  # [6.136.0](https://github.com/tillhub/schemas/compare/v6.135.1...v6.136.0) (2022-04-27)
2
127
 
3
128
 
4
129
  ### Features
5
130
 
6
- * **analytics:** Staff sales report ([#694](https://github.com/tillhub/schemas/issues/694)) ([f1efabe](https://github.com/tillhub/schemas/commit/f1efabe))
131
+ * **analytics:** Staff sales report ([#695](https://github.com/tillhub/schemas/issues/695)) ([2202904](https://github.com/tillhub/schemas/commit/2202904))
7
132
 
8
133
  ## [6.135.1](https://github.com/tillhub/schemas/compare/v6.135.0...v6.135.1) (2022-04-21)
9
134
 
@@ -1,4 +1,5 @@
1
1
  module.exports = {
2
2
  discounts: require('./discounts'),
3
+ staff: require('./staff'),
3
4
  snapshots: require('./snapshots')
4
5
  }
@@ -1,18 +1,18 @@
1
1
  module.exports.request = {
2
- $id: 'https://schemas.tillhub.com/v0/analytics.staff.sales.request.schema.json',
2
+ $id: 'https://schemas.tillhub.com/v0/analytics.staff.request.schema.json',
3
3
  $schema: 'http://json-schema.org/draft-07/schema#',
4
4
  type: 'object',
5
5
  'additionalProperties': true,
6
6
  'properties': {
7
- 'branch': {
8
- 'type': 'string',
9
- 'format': 'uuid'
10
- },
11
7
  'start': {
12
8
  'type': 'string'
13
9
  },
14
10
  'end': {
15
11
  'type': 'string'
12
+ },
13
+ 'branch': {
14
+ 'type': 'string',
15
+ 'format': 'uuid'
16
16
  }
17
17
  },
18
18
  'required': []
@@ -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
  }
@@ -7,6 +7,7 @@ const customProperties = require('../../../common/custom_properties')
7
7
  const masterData = {
8
8
  salesman_staff: {
9
9
  description: 'Staff person ID',
10
+ example: '68722313-4077-42eb-8cc2-bf3359940efc',
10
11
  ...oneOf({
11
12
  type: 'string',
12
13
  format: 'uuid'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.136.0",
3
+ "version": "6.138.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",