@docupace/ihub-config 1.1.4 → 1.1.5

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.
Files changed (36) hide show
  1. package/README.md +182 -182
  2. package/dist/model/graphs/config/common.graphql +7 -7
  3. package/dist/model/graphs/config/fields.graphql +338 -338
  4. package/dist/model/graphs/config/menu.graphql +48 -48
  5. package/dist/model/graphs/config/mutation.graphql +30 -30
  6. package/dist/model/graphs/config/page.graphql +241 -241
  7. package/dist/model/graphs/config/panel.graphql +30 -30
  8. package/dist/model/graphs/config/query.graphql +55 -55
  9. package/dist/model/graphs/config/selectOptions.graphql +47 -47
  10. package/dist/model/graphs/config/table.graphql +159 -157
  11. package/dist/model/graphs/config/tests.graphql +16 -16
  12. package/dist/model/graphs/config/theme.graphql +41 -41
  13. package/dist/model/graphs/config/ui-components.graphql +10 -10
  14. package/dist/model/graphs/domains/scalars.graphql +3 -3
  15. package/dist/model/graphs/filter.graphql +5 -5
  16. package/dist/model/graphs/schema.graphql +7 -7
  17. package/dist/types/graphql.d.ts +15 -0
  18. package/dist/types/graphql.d.ts.map +1 -1
  19. package/dist/types/graphql.js +5 -0
  20. package/dist/types/graphql.js.map +1 -1
  21. package/model/graphs/config/common.graphql +7 -7
  22. package/model/graphs/config/fields.graphql +338 -338
  23. package/model/graphs/config/menu.graphql +48 -48
  24. package/model/graphs/config/mutation.graphql +30 -30
  25. package/model/graphs/config/page.graphql +241 -241
  26. package/model/graphs/config/panel.graphql +30 -30
  27. package/model/graphs/config/query.graphql +55 -55
  28. package/model/graphs/config/selectOptions.graphql +47 -47
  29. package/model/graphs/config/table.graphql +159 -157
  30. package/model/graphs/config/tests.graphql +16 -16
  31. package/model/graphs/config/theme.graphql +41 -41
  32. package/model/graphs/config/ui-components.graphql +10 -10
  33. package/model/graphs/domains/scalars.graphql +3 -3
  34. package/model/graphs/filter.graphql +5 -5
  35. package/model/graphs/schema.graphql +7 -7
  36. package/package.json +80 -78
@@ -1,55 +1,55 @@
1
-
2
- type PageQuery {
3
- getPageConfig(path : String) : Page
4
- }
5
-
6
- type WidgetQuery {
7
- list(search: String) : [Widget!]
8
- get(path : String) : Widget
9
- }
10
-
11
- type ThemeQuery {
12
- get(path: String): Theme
13
- }
14
-
15
- type ConfigQuery {
16
- pages : PageQuery
17
- widgets : WidgetQuery
18
- tests: TestQuery
19
- themes: ThemeQuery
20
- data : DataQuery
21
- }
22
-
23
- type DataQuery {
24
- get(path : String) : [DataResult!]
25
- list(path : String) : [String]
26
- getSeedConfig(path: String): SeedConfigResult
27
- }
28
-
29
- type DataResult {
30
- config: DataConfig
31
- data: JSON!
32
- }
33
-
34
- type DataConfig {
35
- severity: String
36
- }
37
-
38
- type SeedConfigResult {
39
- typeName: String!
40
- updateMethod: String
41
- updateInputType: String
42
- createMethod: String
43
- createInputType: String
44
- referenceByIdPaths: [String]
45
- referencePaths: [String]
46
- doNotUpdate: Boolean
47
- doNotDelete: Boolean
48
- uniqueColumns: [String]
49
- }
50
-
51
- type GQLQuery {
52
- queryName: String
53
- operationName: String
54
- variableDefinitions: JSON
55
- }
1
+
2
+ type PageQuery {
3
+ getPageConfig(path : String) : Page
4
+ }
5
+
6
+ type WidgetQuery {
7
+ list(search: String) : [Widget!]
8
+ get(path : String) : Widget
9
+ }
10
+
11
+ type ThemeQuery {
12
+ get(path: String): Theme
13
+ }
14
+
15
+ type ConfigQuery {
16
+ pages : PageQuery
17
+ widgets : WidgetQuery
18
+ tests: TestQuery
19
+ themes: ThemeQuery
20
+ data : DataQuery
21
+ }
22
+
23
+ type DataQuery {
24
+ get(path : String) : [DataResult!]
25
+ list(path : String) : [String]
26
+ getSeedConfig(path: String): SeedConfigResult
27
+ }
28
+
29
+ type DataResult {
30
+ config: DataConfig
31
+ data: JSON!
32
+ }
33
+
34
+ type DataConfig {
35
+ severity: String
36
+ }
37
+
38
+ type SeedConfigResult {
39
+ typeName: String!
40
+ updateMethod: String
41
+ updateInputType: String
42
+ createMethod: String
43
+ createInputType: String
44
+ referenceByIdPaths: [String]
45
+ referencePaths: [String]
46
+ doNotUpdate: Boolean
47
+ doNotDelete: Boolean
48
+ uniqueColumns: [String]
49
+ }
50
+
51
+ type GQLQuery {
52
+ queryName: String
53
+ operationName: String
54
+ variableDefinitions: JSON
55
+ }
@@ -1,47 +1,47 @@
1
- interface ISelectOptions {
2
- type: String
3
- }
4
-
5
- type SelectOptionsFilter {
6
- path: String
7
- }
8
-
9
- type QuerySelectOptions implements ISelectOptions {
10
- type: String
11
- labelProp: String # defaults to "name" in ui
12
- valueProp: String # defaults to "id" in ui
13
- queryName: String!
14
- variableDefinitions: JSON
15
- variables: JSON
16
- paths: [String!]!
17
- operationName: String
18
- expression: String
19
- maxRows: Int
20
- variablesExpressions: JSON
21
- responsePathPrefix: String
22
- where: WhereFilterConfig
23
- filter: SelectOptionsFilter
24
- excludeId: Boolean
25
- queryOnTyping: Boolean # if true, query will be triggered on typing
26
- minLength: Int # minimum length of input to trigger query
27
- }
28
-
29
- type ValueSelectOptions implements ISelectOptions {
30
- type: String
31
- values: [SelectValue!]!
32
- }
33
-
34
- type SelectValue {
35
- label: String!
36
- value: JSON!
37
- }
38
-
39
- type DropdownSelectOptions implements ISelectOptions {
40
- type: String
41
- dropdownName: String!
42
- }
43
-
44
- type WhereFilterConfig {
45
- type: String!
46
- value: JSON
47
- }
1
+ interface ISelectOptions {
2
+ type: String
3
+ }
4
+
5
+ type SelectOptionsFilter {
6
+ path: String
7
+ }
8
+
9
+ type QuerySelectOptions implements ISelectOptions {
10
+ type: String
11
+ labelProp: String # defaults to "name" in ui
12
+ valueProp: String # defaults to "id" in ui
13
+ queryName: String!
14
+ variableDefinitions: JSON
15
+ variables: JSON
16
+ paths: [String!]!
17
+ operationName: String
18
+ expression: String
19
+ maxRows: Int
20
+ variablesExpressions: JSON
21
+ responsePathPrefix: String
22
+ where: WhereFilterConfig
23
+ filter: SelectOptionsFilter
24
+ excludeId: Boolean
25
+ queryOnTyping: Boolean # if true, query will be triggered on typing
26
+ minLength: Int # minimum length of input to trigger query
27
+ }
28
+
29
+ type ValueSelectOptions implements ISelectOptions {
30
+ type: String
31
+ values: [SelectValue!]!
32
+ }
33
+
34
+ type SelectValue {
35
+ label: String!
36
+ value: JSON!
37
+ }
38
+
39
+ type DropdownSelectOptions implements ISelectOptions {
40
+ type: String
41
+ dropdownName: String!
42
+ }
43
+
44
+ type WhereFilterConfig {
45
+ type: String!
46
+ value: JSON
47
+ }
@@ -1,157 +1,159 @@
1
-
2
- interface ITable {
3
- dataType: String
4
- selection: TableSelection
5
- disableColumnSorting: Boolean
6
- disableRowClick: Boolean
7
- queryName: String!
8
- operationName: String
9
- variableDefinitions: JSON
10
- variablesExpressions: JSON
11
- filter: TableFilter
12
- search: SimpleSearch
13
- menuItems: [MenuItem!]
14
- columns: [Column!]!
15
- rowMenuItems: [MenuItem!]
16
- preview: Preview
17
- cardView: CardView
18
- groupBy: GroupBy
19
- orderBy: [OrderBy!]
20
- flattenDataKey: String
21
- actionButton: ActionButton
22
- pagingMode: String
23
- maxRows: Int
24
- pageSizeOptions: [Int!]
25
- defaultPageSize: Int
26
- useCardView: Boolean
27
- whereFilter: WhereFilter
28
- whereFilterName: String
29
- emptyStateMessage: String
30
- unstructuredData: Boolean
31
- toolbar: Toolbar
32
- pagination: TablePagination
33
- expandable: Expandable
34
- totals: [TotalsItem!]
35
- }
36
-
37
- type TotalsItem {
38
- path: String!
39
- label: String!
40
- component: String
41
- }
42
-
43
- type GroupBy {
44
- path: String!
45
- orderType: OrderType!
46
- component: String
47
- }
48
-
49
-
50
- type OrderBy {
51
- path: String!
52
- orderType: OrderType!
53
- }
54
-
55
- type TableSelection {
56
- enabled: Boolean
57
- label: String
58
- action: String
59
- visibilityCondition: String
60
- position: TableSelectionPosition
61
- }
62
-
63
- enum TableSelectionPosition {
64
- RIGHT
65
- LEFT
66
- }
67
-
68
- type Toolbar {
69
- columns: ToolbarColumns
70
- }
71
-
72
- type ToolbarColumns {
73
- enabled: Boolean
74
- }
75
-
76
- type TablePagination {
77
- totalCount: TablePaginationTotalCount
78
- }
79
-
80
- type TablePaginationTotalCount {
81
- enabled: Boolean
82
- }
83
-
84
- type Table implements ITable
85
-
86
- type NamedTable implements ITable {
87
- name: String
88
- }
89
-
90
- type TabbedTable {
91
- tabs: [TableTab!]!
92
- }
93
-
94
- union AnyTable = Table | TabbedTable
95
-
96
- type TableTab {
97
- name : String!
98
- label: String!
99
- table: Table!
100
- visibilityCondition: String
101
- }
102
-
103
- type TableFilter {
104
- criteria: [TableCriteria!]!
105
- variant: TableFilterVariant
106
- }
107
-
108
- type DateShortcuts {
109
- enabled: Boolean
110
- days: [Int!]
111
- }
112
-
113
- type TableCriteria {
114
- name: String!
115
- label: String!
116
- labelProp: String
117
- path: String!
118
- dataType: String
119
- defaultValue: String
120
- multiple: Boolean
121
- exactMatchEnabled: Boolean
122
- operator: String
123
- dateShortcuts: DateShortcuts
124
- selectOptions: ISelectOptions
125
- }
126
-
127
- enum TableFilterVariant {
128
- SIDEBAR
129
- MODAL
130
- }
131
-
132
- type Column {
133
- name: String!
134
- label: String!
135
- visible: Boolean
136
- paths: [String!]
137
- expression: String
138
- component: String
139
- sortable: Boolean
140
- flex: Float
141
- }
142
-
143
- type SimpleSearch {
144
- filterType: String
145
- searchBy: String
146
- placeholder: String
147
- selectOptions: QuerySelectOptions!
148
- }
149
-
150
- type WhereFilter {
151
- type: String!
152
- value: JSON!
153
- }
154
-
155
- type Expandable {
156
- component: String
157
- }
1
+
2
+ interface ITable {
3
+ dataType: String
4
+ selection: TableSelection
5
+ disableColumnSorting: Boolean
6
+ disableRowClick: Boolean
7
+ queryName: String!
8
+ operationName: String
9
+ variableDefinitions: JSON
10
+ variablesExpressions: JSON
11
+ filter: TableFilter
12
+ search: SimpleSearch
13
+ menuItems: [MenuItem!]
14
+ columns: [Column!]!
15
+ rowMenuItems: [MenuItem!]
16
+ preview: Preview
17
+ cardView: CardView
18
+ groupBy: GroupBy
19
+ orderBy: [OrderBy!]
20
+ flattenDataKey: String
21
+ actionButton: ActionButton
22
+ pagingMode: String
23
+ maxRows: Int
24
+ pageSizeOptions: [Int!]
25
+ defaultPageSize: Int
26
+ useCardView: Boolean
27
+ whereFilter: WhereFilter
28
+ whereFilterName: String
29
+ emptyStateMessage: String
30
+ unstructuredData: Boolean
31
+ toolbar: Toolbar
32
+ pagination: TablePagination
33
+ expandable: Expandable
34
+ totals: [TotalsItem!]
35
+ config: JSON
36
+ }
37
+
38
+ type TotalsItem {
39
+ path: String!
40
+ label: String!
41
+ component: String
42
+ }
43
+
44
+ type GroupBy {
45
+ path: String!
46
+ orderType: OrderType!
47
+ component: String
48
+ }
49
+
50
+
51
+ type OrderBy {
52
+ path: String!
53
+ orderType: OrderType!
54
+ }
55
+
56
+ type TableSelection {
57
+ enabled: Boolean
58
+ label: String
59
+ action: String
60
+ disabledCondition: String
61
+ visibilityCondition: String
62
+ position: TableSelectionPosition
63
+ }
64
+
65
+ enum TableSelectionPosition {
66
+ RIGHT
67
+ LEFT
68
+ }
69
+
70
+ type Toolbar {
71
+ columns: ToolbarColumns
72
+ }
73
+
74
+ type ToolbarColumns {
75
+ enabled: Boolean
76
+ }
77
+
78
+ type TablePagination {
79
+ totalCount: TablePaginationTotalCount
80
+ }
81
+
82
+ type TablePaginationTotalCount {
83
+ enabled: Boolean
84
+ }
85
+
86
+ type Table implements ITable
87
+
88
+ type NamedTable implements ITable {
89
+ name: String
90
+ }
91
+
92
+ type TabbedTable {
93
+ tabs: [TableTab!]!
94
+ }
95
+
96
+ union AnyTable = Table | TabbedTable
97
+
98
+ type TableTab {
99
+ name : String!
100
+ label: String!
101
+ table: Table!
102
+ visibilityCondition: String
103
+ }
104
+
105
+ type TableFilter {
106
+ criteria: [TableCriteria!]!
107
+ variant: TableFilterVariant
108
+ }
109
+
110
+ type DateShortcuts {
111
+ enabled: Boolean
112
+ days: [Int!]
113
+ }
114
+
115
+ type TableCriteria {
116
+ name: String!
117
+ label: String!
118
+ labelProp: String
119
+ path: String!
120
+ dataType: String
121
+ defaultValue: String
122
+ multiple: Boolean
123
+ exactMatchEnabled: Boolean
124
+ operator: String
125
+ dateShortcuts: DateShortcuts
126
+ selectOptions: ISelectOptions
127
+ }
128
+
129
+ enum TableFilterVariant {
130
+ SIDEBAR
131
+ MODAL
132
+ }
133
+
134
+ type Column {
135
+ name: String!
136
+ label: String!
137
+ visible: Boolean
138
+ paths: [String!]
139
+ expression: String
140
+ component: String
141
+ sortable: Boolean
142
+ flex: Float
143
+ }
144
+
145
+ type SimpleSearch {
146
+ filterType: String
147
+ searchBy: String
148
+ placeholder: String
149
+ selectOptions: QuerySelectOptions!
150
+ }
151
+
152
+ type WhereFilter {
153
+ type: String!
154
+ value: JSON!
155
+ }
156
+
157
+ type Expandable {
158
+ component: String
159
+ }
@@ -1,16 +1,16 @@
1
-
2
- type Test {
3
- name : String!
4
- description: String
5
- configPath : String!
6
- }
7
-
8
- type TestResults {
9
- items : [Test!]!
10
- }
11
-
12
- type TestQuery {
13
- list(path : String!, search: String) : TestResults
14
- getConfig(path : String) : JSON!
15
- }
16
-
1
+
2
+ type Test {
3
+ name : String!
4
+ description: String
5
+ configPath : String!
6
+ }
7
+
8
+ type TestResults {
9
+ items : [Test!]!
10
+ }
11
+
12
+ type TestQuery {
13
+ list(path : String!, search: String) : TestResults
14
+ getConfig(path : String) : JSON!
15
+ }
16
+
@@ -1,41 +1,41 @@
1
- type Base64Image {
2
- "Base64 encoded image data"
3
- data: String!
4
- "MIME type of the image (e.g. 'image/png', 'image/jpeg')"
5
- mimeType: String!
6
- "Unique hash of the image data for caching purposes"
7
- hash: String!
8
- }
9
-
10
- type Theme {
11
- name: String
12
- "Base64 encoded logo image data"
13
- logoImage: Base64Image
14
- """
15
- @deprecated Use logoImage instead
16
- SVG logo image data in string format
17
- """
18
- logoSvg: String
19
- "Base64 encoded sidebar logo image data"
20
- sidebarLogoImage: Base64Image
21
- """
22
- @deprecated Use sidebarLogoImage instead
23
- SVG sidebar logo image data in string format
24
- """
25
- sidebarLogoSvg: String
26
- "Base64 encoded login logo image data"
27
- loginLogoImage: Base64Image
28
- """
29
- @deprecated Use loginLogoImage instead
30
- SVG login logo image data in string format
31
- """
32
- loginLogoSvg: String
33
- "Base64 encoded login background image data"
34
- loginBackgroundImage: Base64Image
35
- """
36
- @deprecated Use loginBackgroundImage instead
37
- SVG login background image data in string format
38
- """
39
- loginBackgroundSvg: String
40
- colors: JSON
41
- }
1
+ type Base64Image {
2
+ "Base64 encoded image data"
3
+ data: String!
4
+ "MIME type of the image (e.g. 'image/png', 'image/jpeg')"
5
+ mimeType: String!
6
+ "Unique hash of the image data for caching purposes"
7
+ hash: String!
8
+ }
9
+
10
+ type Theme {
11
+ name: String
12
+ "Base64 encoded logo image data"
13
+ logoImage: Base64Image
14
+ """
15
+ @deprecated Use logoImage instead
16
+ SVG logo image data in string format
17
+ """
18
+ logoSvg: String
19
+ "Base64 encoded sidebar logo image data"
20
+ sidebarLogoImage: Base64Image
21
+ """
22
+ @deprecated Use sidebarLogoImage instead
23
+ SVG sidebar logo image data in string format
24
+ """
25
+ sidebarLogoSvg: String
26
+ "Base64 encoded login logo image data"
27
+ loginLogoImage: Base64Image
28
+ """
29
+ @deprecated Use loginLogoImage instead
30
+ SVG login logo image data in string format
31
+ """
32
+ loginLogoSvg: String
33
+ "Base64 encoded login background image data"
34
+ loginBackgroundImage: Base64Image
35
+ """
36
+ @deprecated Use loginBackgroundImage instead
37
+ SVG login background image data in string format
38
+ """
39
+ loginBackgroundSvg: String
40
+ colors: JSON
41
+ }
@@ -1,11 +1,11 @@
1
- type TextElement implements IRowElement & IElement {
2
- color: String
3
- cols: Int
4
- fontSize: String
5
- name: String
6
- sx: JSON
7
- value: String
8
- valueExpression: String
9
- variant: String
10
- visibilityCondition: String
1
+ type TextElement implements IRowElement & IElement {
2
+ color: String
3
+ cols: Int
4
+ fontSize: String
5
+ name: String
6
+ sx: JSON
7
+ value: String
8
+ valueExpression: String
9
+ variant: String
10
+ visibilityCondition: String
11
11
  }
@@ -1,3 +1,3 @@
1
- scalar Number
2
-
3
- scalar JSON
1
+ scalar Number
2
+
3
+ scalar JSON
@@ -1,5 +1,5 @@
1
-
2
- enum OrderType {
3
- ASC
4
- DESC
5
- }
1
+
2
+ enum OrderType {
3
+ ASC
4
+ DESC
5
+ }