@tillhub/schemas 6.275.0 → 6.275.2

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,17 @@
1
+ ## [6.275.2](https://github.com/tillhub/schemas/compare/v6.275.1...v6.275.2) (2023-11-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **report:** fix export configuration ([#899](https://github.com/tillhub/schemas/issues/899)) ([d729905](https://github.com/tillhub/schemas/commit/d729905))
7
+
8
+ ## [6.275.1](https://github.com/tillhub/schemas/compare/v6.275.0...v6.275.1) (2023-11-24)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **eslint:** fix export configuration ([a825787](https://github.com/tillhub/schemas/commit/a825787))
14
+
1
15
  # [6.275.0](https://github.com/tillhub/schemas/compare/v6.274.0...v6.275.0) (2023-11-23)
2
16
 
3
17
 
@@ -363,5 +363,6 @@ module.exports = {
363
363
  },
364
364
  warehub: require('./items/warehub'),
365
365
  tenant: require('./items/tenant'),
366
- onboarding: require('./items/onboarding')
366
+ onboarding: require('./items/onboarding'),
367
+ reports: require('./items/reports')
367
368
  }
@@ -0,0 +1,57 @@
1
+ const { anyOf } = require('../../../helpers/payload-or-null')
2
+
3
+ module.exports = {
4
+ type: 'object',
5
+ patternProperties: {
6
+ '^[a-zA-Z0-9_]+$': {
7
+ type: 'object',
8
+ properties: {
9
+ delimiter: anyOf({
10
+ type: 'string',
11
+ description: 'The delimiter used in the CSV file',
12
+ enum: ['comma', 'semicolon']
13
+ }),
14
+ format: anyOf({
15
+ type: 'string',
16
+ description: 'The format of the Report file',
17
+ enum: ['csv', 'excel']
18
+ }),
19
+ enclosure: anyOf({
20
+ type: 'string',
21
+ description: 'The enclosure used in the CSV file',
22
+ enum: ['single', 'double']
23
+ }),
24
+ show_summary: anyOf({
25
+ type: 'boolean'
26
+ }),
27
+ show_column_name: anyOf({
28
+ description: 'The header of the report',
29
+ type: 'boolean'
30
+ }),
31
+ email: anyOf({
32
+ type: 'string'
33
+ }),
34
+ filter: anyOf({
35
+ type: 'object'
36
+ }),
37
+ is_recurring: anyOf({
38
+ type: 'boolean'
39
+ }),
40
+ recurring_cycle: anyOf({
41
+ type: 'string',
42
+ description: 'The recurring cycle of the report',
43
+ enum: ['weekly', 'daily', 'monthly']
44
+ }),
45
+ recurring_on: anyOf({
46
+ type: 'number',
47
+ description: 'The recurring day of the report'
48
+ }),
49
+ column_selection: anyOf({
50
+ type: 'string',
51
+ description: 'The column selection of the report',
52
+ enum: ['current_view', 'all']
53
+ })
54
+ }
55
+ }
56
+ }
57
+ }
@@ -754,62 +754,6 @@ module.exports = {
754
754
  }
755
755
  })
756
756
  }
757
- }),
758
- reports: oneOf({
759
- type: 'object',
760
- patternProperties: {
761
- '^[a-zA-Z0-9_]+$': {
762
- type: 'object',
763
- properties: {
764
- delimiter: oneOf({
765
- type: 'string',
766
- description: 'The delimiter used in the CSV file',
767
- enum: ['comma', 'semicolon']
768
- }),
769
- format: oneOf({
770
- type: 'string',
771
- description: 'The format of the Report file',
772
- enum: ['csv', 'excel']
773
- }),
774
- enclosure: oneOf({
775
- type: 'string',
776
- description: 'The enclosure used in the CSV file',
777
- enum: ['single', 'double']
778
- }),
779
- show_summary: oneOf({
780
- type: 'boolean'
781
- }),
782
- show_column_name: oneOf({
783
- description: 'The header of the report',
784
- type: 'boolean'
785
- }),
786
- date_range: oneOf({
787
- type: 'string'
788
- }),
789
- filter: oneOf({
790
- type: 'object'
791
- }),
792
- is_recurring: oneOf({
793
- type: 'boolean'
794
- }),
795
- recurring_cycle: oneOf({
796
- type: 'string',
797
- description: 'The recurring cycle of the report',
798
- enum: ['weekly', 'daily', 'monthly']
799
- }),
800
- recurring_on: oneOf({
801
- type: 'number',
802
- description: 'The recurring day of the report'
803
- }),
804
- column_selection: oneOf({
805
- type: 'string',
806
- description: 'The column selection of the report',
807
- enum: ['current_view', 'all']
808
- })
809
- },
810
- required: ['delimiter', 'format', 'enclosure', 'show_summary', 'show_column_name', 'date_range', 'filter', 'is_recurring', 'recurring_cycle', 'recurring_on', 'column_selection']
811
- }
812
- }
813
757
  })
814
758
  }
815
759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.275.0",
3
+ "version": "6.275.2",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",