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