@tillhub/schemas 6.271.0 → 6.273.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 +15 -0
- package/lib/v1/registers/base.js +38 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [6.273.0](https://github.com/tillhub/schemas/compare/v6.272.0...v6.273.0) (2023-11-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **fiskaly:** add branch signing_configuration ([8f1e7ad](https://github.com/tillhub/schemas/commit/8f1e7ad))
|
|
7
|
+
* **fiskaly:** rollback the last change ([1994f22](https://github.com/tillhub/schemas/commit/1994f22))
|
|
8
|
+
|
|
9
|
+
# [6.272.0](https://github.com/tillhub/schemas/compare/v6.271.0...v6.272.0) (2023-11-02)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **fiskaly:** schema validation to update fiskaly information in the register ([#892](https://github.com/tillhub/schemas/issues/892)) ([a2da4e3](https://github.com/tillhub/schemas/commit/a2da4e3))
|
|
15
|
+
|
|
1
16
|
# [6.271.0](https://github.com/tillhub/schemas/compare/v6.270.0...v6.271.0) (2023-10-31)
|
|
2
17
|
|
|
3
18
|
|
package/lib/v1/registers/base.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const { stripIndents } = require('common-tags')
|
|
2
|
-
const { oneOf } = require('../../helpers/payload-or-null')
|
|
2
|
+
const { oneOf, anyOf } = require('../../helpers/payload-or-null')
|
|
3
3
|
|
|
4
4
|
const countingDecision = require('../../common/counting_decision')
|
|
5
5
|
|
|
@@ -167,6 +167,43 @@ module.exports = {
|
|
|
167
167
|
type: 'boolean',
|
|
168
168
|
default: false
|
|
169
169
|
},
|
|
170
|
+
fiscal_signing_admin_config: anyOf({
|
|
171
|
+
type: 'object',
|
|
172
|
+
additionalProperties: false,
|
|
173
|
+
properties: {
|
|
174
|
+
resource: {
|
|
175
|
+
type: 'string',
|
|
176
|
+
description: 'fiskaly cash register id',
|
|
177
|
+
example: 'uuid'
|
|
178
|
+
},
|
|
179
|
+
signature_type: {
|
|
180
|
+
type: 'string',
|
|
181
|
+
description: 'type of the signature',
|
|
182
|
+
example: 'at_fiskaly'
|
|
183
|
+
},
|
|
184
|
+
fiskaly: {
|
|
185
|
+
type: 'object',
|
|
186
|
+
description: 'fiskaly meta data',
|
|
187
|
+
properties: {
|
|
188
|
+
state: {
|
|
189
|
+
type: 'string',
|
|
190
|
+
description: 'state of the fiskaly cash register',
|
|
191
|
+
example: 'CREATED'
|
|
192
|
+
},
|
|
193
|
+
serial_number: {
|
|
194
|
+
type: 'string',
|
|
195
|
+
description: 'serial number of the fiskaly cash register',
|
|
196
|
+
example: 'serial-number'
|
|
197
|
+
},
|
|
198
|
+
turnover_counter: {
|
|
199
|
+
type: 'string',
|
|
200
|
+
description: 'turnover counter of the fiskaly cash register',
|
|
201
|
+
example: '12.311'
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}),
|
|
170
207
|
device_configuration: {
|
|
171
208
|
anyOf: [
|
|
172
209
|
{
|