@docupace/ihub-config 1.0.3 → 1.0.4

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 (35) hide show
  1. package/README.md +82 -82
  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 +41 -41
  5. package/dist/model/graphs/config/mutation.graphql +30 -30
  6. package/dist/model/graphs/config/page.graphql +227 -227
  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 +121 -116
  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 +17 -0
  18. package/dist/types/graphql.d.ts.map +1 -1
  19. package/dist/types/graphql.js.map +1 -1
  20. package/model/graphs/config/common.graphql +7 -7
  21. package/model/graphs/config/fields.graphql +338 -338
  22. package/model/graphs/config/menu.graphql +41 -41
  23. package/model/graphs/config/mutation.graphql +30 -30
  24. package/model/graphs/config/page.graphql +227 -227
  25. package/model/graphs/config/panel.graphql +30 -30
  26. package/model/graphs/config/query.graphql +55 -55
  27. package/model/graphs/config/selectOptions.graphql +47 -47
  28. package/model/graphs/config/table.graphql +121 -116
  29. package/model/graphs/config/tests.graphql +16 -16
  30. package/model/graphs/config/theme.graphql +41 -41
  31. package/model/graphs/config/ui-components.graphql +10 -10
  32. package/model/graphs/domains/scalars.graphql +3 -3
  33. package/model/graphs/filter.graphql +5 -5
  34. package/model/graphs/schema.graphql +7 -7
  35. package/package.json +1 -1
@@ -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,116 +1,121 @@
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
- orderBy: [OrderBy!]
19
- flattenDataKey: String
20
- actionButton: ActionButton
21
- pagingMode: String
22
- maxRows: Int
23
- pageSizeOptions: [Int!]
24
- defaultPageSize: Int
25
- useCardView: Boolean
26
- whereFilter: WhereFilter
27
- whereFilterName: String
28
- emptyStateMessage: String
29
- unstructuredData: Boolean
30
- toolbar: Toolbar
31
- pagination: TablePagination
32
- }
33
-
34
- type OrderBy {
35
- path: String!
36
- orderType: OrderType!
37
- }
38
-
39
- type TableSelection {
40
- enabled: Boolean
41
- label: String
42
- action: String
43
- visibilityCondition: String
44
- }
45
-
46
- type Toolbar {
47
- columns: ToolbarColumns
48
- }
49
-
50
- type ToolbarColumns {
51
- enabled: Boolean
52
- }
53
-
54
- type TablePagination {
55
- totalCount: TablePaginationTotalCount
56
- }
57
-
58
- type TablePaginationTotalCount {
59
- enabled: Boolean
60
- }
61
-
62
- type Table implements ITable
63
-
64
- type NamedTable implements ITable {
65
- name: String
66
- }
67
-
68
- type TabbedTable {
69
- tabs: [TableTab!]!
70
- }
71
-
72
- union AnyTable = Table | TabbedTable
73
-
74
- type TableTab {
75
- name : String!
76
- label: String!
77
- table: Table!
78
- visibilityCondition: String
79
- }
80
-
81
- type TableFilter {
82
- criteria: [TableCriteria!]!
83
- variant: String
84
- }
85
-
86
- type TableCriteria {
87
- name: String!
88
- label: String!
89
- labelProp: String
90
- path: String!
91
- dataType: String
92
- selectOptions: QuerySelectOptions
93
- }
94
-
95
- type Column {
96
- name: String!
97
- label: String!
98
- visible: Boolean
99
- paths: [String!]
100
- expression: String
101
- component: String
102
- sortable: Boolean
103
- flex: Float
104
- }
105
-
106
- type SimpleSearch {
107
- filterType: String
108
- searchBy: String
109
- placeholder: String
110
- selectOptions: QuerySelectOptions!
111
- }
112
-
113
- type WhereFilter {
114
- type: String!
115
- value: JSON!
116
- }
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
+ orderBy: [OrderBy!]
19
+ flattenDataKey: String
20
+ actionButton: ActionButton
21
+ pagingMode: String
22
+ maxRows: Int
23
+ pageSizeOptions: [Int!]
24
+ defaultPageSize: Int
25
+ useCardView: Boolean
26
+ whereFilter: WhereFilter
27
+ whereFilterName: String
28
+ emptyStateMessage: String
29
+ unstructuredData: Boolean
30
+ toolbar: Toolbar
31
+ pagination: TablePagination
32
+ expandable: Expandable
33
+ }
34
+
35
+ type OrderBy {
36
+ path: String!
37
+ orderType: OrderType!
38
+ }
39
+
40
+ type TableSelection {
41
+ enabled: Boolean
42
+ label: String
43
+ action: String
44
+ visibilityCondition: String
45
+ }
46
+
47
+ type Toolbar {
48
+ columns: ToolbarColumns
49
+ }
50
+
51
+ type ToolbarColumns {
52
+ enabled: Boolean
53
+ }
54
+
55
+ type TablePagination {
56
+ totalCount: TablePaginationTotalCount
57
+ }
58
+
59
+ type TablePaginationTotalCount {
60
+ enabled: Boolean
61
+ }
62
+
63
+ type Table implements ITable
64
+
65
+ type NamedTable implements ITable {
66
+ name: String
67
+ }
68
+
69
+ type TabbedTable {
70
+ tabs: [TableTab!]!
71
+ }
72
+
73
+ union AnyTable = Table | TabbedTable
74
+
75
+ type TableTab {
76
+ name : String!
77
+ label: String!
78
+ table: Table!
79
+ visibilityCondition: String
80
+ }
81
+
82
+ type TableFilter {
83
+ criteria: [TableCriteria!]!
84
+ variant: String
85
+ }
86
+
87
+ type TableCriteria {
88
+ name: String!
89
+ label: String!
90
+ labelProp: String
91
+ path: String!
92
+ dataType: String
93
+ selectOptions: QuerySelectOptions
94
+ }
95
+
96
+ type Column {
97
+ name: String!
98
+ label: String!
99
+ visible: Boolean
100
+ paths: [String!]
101
+ expression: String
102
+ component: String
103
+ sortable: Boolean
104
+ flex: Float
105
+ }
106
+
107
+ type SimpleSearch {
108
+ filterType: String
109
+ searchBy: String
110
+ placeholder: String
111
+ selectOptions: QuerySelectOptions!
112
+ }
113
+
114
+ type WhereFilter {
115
+ type: String!
116
+ value: JSON!
117
+ }
118
+
119
+ type Expandable {
120
+ component: String
121
+ }
@@ -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
+ }
@@ -1,7 +1,7 @@
1
- type Query {
2
- config: ConfigQuery
3
- }
4
-
5
- type Mutation {
6
- config: ConfigMutation
7
- }
1
+ type Query {
2
+ config: ConfigQuery
3
+ }
4
+
5
+ type Mutation {
6
+ config: ConfigMutation
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/ihub-config",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Reusable config GraphQL extension and standalone server",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",