@docupace/ihub-config 1.1.12 → 1.1.14
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/dist/model/graphs/config/fields.graphql +367 -367
- package/dist/model/graphs/config/page.graphql +242 -241
- package/dist/model/graphs/config/table.graphql +180 -177
- package/dist/types/graphql.d.ts +6 -0
- package/dist/types/graphql.d.ts.map +1 -1
- package/dist/types/graphql.js.map +1 -1
- package/model/graphs/config/fields.graphql +367 -367
- package/model/graphs/config/page.graphql +242 -241
- package/model/graphs/config/table.graphql +180 -177
- package/package.json +78 -80
|
@@ -1,177 +1,180 @@
|
|
|
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
|
-
deferredLoad: Boolean
|
|
27
|
-
useCardView: Boolean
|
|
28
|
-
whereFilter: WhereFilter
|
|
29
|
-
whereFilterName: String
|
|
30
|
-
emptyStateMessage: String
|
|
31
|
-
unstructuredData: Boolean
|
|
32
|
-
toolbar: Toolbar
|
|
33
|
-
pagination: TablePagination
|
|
34
|
-
expandable: Expandable
|
|
35
|
-
totals: [TotalsItem!]
|
|
36
|
-
config: JSON
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
type TotalsItem {
|
|
40
|
-
path: String!
|
|
41
|
-
label: String!
|
|
42
|
-
component: String
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
type GroupBy {
|
|
46
|
-
path: String
|
|
47
|
-
pathExpression: String
|
|
48
|
-
orderType: OrderType!
|
|
49
|
-
component: String
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
type OrderBy {
|
|
54
|
-
path: String!
|
|
55
|
-
orderType: OrderType!
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
type TableSelection {
|
|
59
|
-
enabled: Boolean
|
|
60
|
-
label: String
|
|
61
|
-
action: String
|
|
62
|
-
disabledCondition: String
|
|
63
|
-
visibilityCondition: String
|
|
64
|
-
position: TablePinnedPosition
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
enum TablePinnedPosition {
|
|
68
|
-
RIGHT
|
|
69
|
-
LEFT
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
type Toolbar {
|
|
73
|
-
columns: ToolbarColumns
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
type ToolbarColumns {
|
|
77
|
-
enabled: Boolean
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
type TablePagination {
|
|
81
|
-
totalCount: TablePaginationTotalCount
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
type TablePaginationTotalCount {
|
|
85
|
-
enabled: Boolean
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
type Table implements ITable
|
|
89
|
-
|
|
90
|
-
type NamedTable implements ITable {
|
|
91
|
-
name: String
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
type TabbedTable {
|
|
95
|
-
tabs: [TableTab!]!
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
union AnyTable = Table | TabbedTable
|
|
99
|
-
|
|
100
|
-
type TableTab {
|
|
101
|
-
name : String!
|
|
102
|
-
label: String!
|
|
103
|
-
table: Table!
|
|
104
|
-
visibilityCondition: String
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
type TableFilter {
|
|
108
|
-
criteria: [TableCriteria!]!
|
|
109
|
-
variant: TableFilterVariant
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
type DateShortcuts {
|
|
113
|
-
enabled: Boolean
|
|
114
|
-
days: [Int!]
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
type TableCriteriaDate {
|
|
118
|
-
calendars: Int
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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
|
+
deferredLoad: Boolean
|
|
27
|
+
useCardView: Boolean
|
|
28
|
+
whereFilter: WhereFilter
|
|
29
|
+
whereFilterName: String
|
|
30
|
+
emptyStateMessage: String
|
|
31
|
+
unstructuredData: Boolean
|
|
32
|
+
toolbar: Toolbar
|
|
33
|
+
pagination: TablePagination
|
|
34
|
+
expandable: Expandable
|
|
35
|
+
totals: [TotalsItem!]
|
|
36
|
+
config: JSON
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
type TotalsItem {
|
|
40
|
+
path: String!
|
|
41
|
+
label: String!
|
|
42
|
+
component: String
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type GroupBy {
|
|
46
|
+
path: String
|
|
47
|
+
pathExpression: String
|
|
48
|
+
orderType: OrderType!
|
|
49
|
+
component: String
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
type OrderBy {
|
|
54
|
+
path: String!
|
|
55
|
+
orderType: OrderType!
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type TableSelection {
|
|
59
|
+
enabled: Boolean
|
|
60
|
+
label: String
|
|
61
|
+
action: String
|
|
62
|
+
disabledCondition: String
|
|
63
|
+
visibilityCondition: String
|
|
64
|
+
position: TablePinnedPosition
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
enum TablePinnedPosition {
|
|
68
|
+
RIGHT
|
|
69
|
+
LEFT
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
type Toolbar {
|
|
73
|
+
columns: ToolbarColumns
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
type ToolbarColumns {
|
|
77
|
+
enabled: Boolean
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type TablePagination {
|
|
81
|
+
totalCount: TablePaginationTotalCount
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
type TablePaginationTotalCount {
|
|
85
|
+
enabled: Boolean
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
type Table implements ITable
|
|
89
|
+
|
|
90
|
+
type NamedTable implements ITable {
|
|
91
|
+
name: String
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
type TabbedTable {
|
|
95
|
+
tabs: [TableTab!]!
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
union AnyTable = Table | TabbedTable
|
|
99
|
+
|
|
100
|
+
type TableTab {
|
|
101
|
+
name : String!
|
|
102
|
+
label: String!
|
|
103
|
+
table: Table!
|
|
104
|
+
visibilityCondition: String
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
type TableFilter {
|
|
108
|
+
criteria: [TableCriteria!]!
|
|
109
|
+
variant: TableFilterVariant
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
type DateShortcuts {
|
|
113
|
+
enabled: Boolean
|
|
114
|
+
days: [Int!]
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
type TableCriteriaDate {
|
|
118
|
+
calendars: Int
|
|
119
|
+
disableFuture: Boolean
|
|
120
|
+
format: String
|
|
121
|
+
shortcuts: DateShortcuts
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
type TableCriteria {
|
|
125
|
+
name: String!
|
|
126
|
+
label: String!
|
|
127
|
+
labelProp: String
|
|
128
|
+
path: String!
|
|
129
|
+
component: String
|
|
130
|
+
config: JSON
|
|
131
|
+
dataType: String
|
|
132
|
+
date: TableCriteriaDate
|
|
133
|
+
defaultValue: String
|
|
134
|
+
multiple: Boolean
|
|
135
|
+
exactMatchEnabled: Boolean
|
|
136
|
+
operator: String
|
|
137
|
+
selectOptions: ISelectOptions
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
enum TableFilterVariant {
|
|
141
|
+
SIDEBAR
|
|
142
|
+
MODAL
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
type Column {
|
|
146
|
+
name: String!
|
|
147
|
+
label: String!
|
|
148
|
+
visible: Boolean
|
|
149
|
+
paths: [String!]
|
|
150
|
+
expression: String
|
|
151
|
+
component: String
|
|
152
|
+
sortable: Boolean
|
|
153
|
+
flex: Float
|
|
154
|
+
pinned: TablePinnedPosition
|
|
155
|
+
config: JSON
|
|
156
|
+
filter: ColumnFilter
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
type ColumnFilter {
|
|
160
|
+
operators: [String]
|
|
161
|
+
path: String
|
|
162
|
+
dataType: String
|
|
163
|
+
selectOptions: ISelectOptions
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
type SimpleSearch {
|
|
167
|
+
filterType: String
|
|
168
|
+
searchBy: String
|
|
169
|
+
placeholder: String
|
|
170
|
+
selectOptions: QuerySelectOptions!
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
type WhereFilter {
|
|
174
|
+
type: String!
|
|
175
|
+
value: JSON!
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
type Expandable {
|
|
179
|
+
component: String
|
|
180
|
+
}
|
package/package.json
CHANGED
|
@@ -1,80 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@docupace/ihub-config",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Reusable config GraphQL extension and standalone server",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"dist",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@docupace/ihub-config",
|
|
3
|
+
"version": "1.1.14",
|
|
4
|
+
"description": "Reusable config GraphQL extension and standalone server",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"graphql",
|
|
9
|
+
"config",
|
|
10
|
+
"extension"
|
|
11
|
+
],
|
|
12
|
+
"author": "",
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@docupace/ihub-cache": "1.0.1",
|
|
16
|
+
"@docupace/ihub-core": "0.0.114-alpha.1",
|
|
17
|
+
"axios": "^1.13.5",
|
|
18
|
+
"cross-env": "^7.0.3",
|
|
19
|
+
"dotenv": "^16.4.1",
|
|
20
|
+
"graphql": "^16.8.1",
|
|
21
|
+
"js-yaml": "^4.1.0",
|
|
22
|
+
"lodash": "^4.17.21",
|
|
23
|
+
"pino": "^10.3.1",
|
|
24
|
+
"simple-git": "^3.22.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@graphql-codegen/cli": "5.0.2",
|
|
28
|
+
"@graphql-codegen/typescript": "4.0.6",
|
|
29
|
+
"@graphql-codegen/typescript-resolvers": "4.0.6",
|
|
30
|
+
"@types/jest": "^30.0.0",
|
|
31
|
+
"@types/js-yaml": "^4.0.9",
|
|
32
|
+
"@types/lodash": "^4.17.7",
|
|
33
|
+
"@types/node": "^20.10.6",
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^7.10.0",
|
|
35
|
+
"@typescript-eslint/parser": "^7.10.0",
|
|
36
|
+
"cpx": "^1.5.0",
|
|
37
|
+
"eslint": "8",
|
|
38
|
+
"eslint-config-prettier": "^8.10.0",
|
|
39
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
40
|
+
"eslint-plugin-import": "^2.29.1",
|
|
41
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
42
|
+
"jest": "^29.7.0",
|
|
43
|
+
"nock": "^13.5.6",
|
|
44
|
+
"pino-pretty": "^13.1.2",
|
|
45
|
+
"prettier": "^3.6.2",
|
|
46
|
+
"sonarqube-scanner": "^4.3.4",
|
|
47
|
+
"ts-jest": "^29.1.1",
|
|
48
|
+
"ts-node": "^10.9.1",
|
|
49
|
+
"tslib": "^2.8.1",
|
|
50
|
+
"tsx": "^4.11.2",
|
|
51
|
+
"typescript": "^5.3.3"
|
|
52
|
+
},
|
|
53
|
+
"types": "dist/index.d.ts",
|
|
54
|
+
"files": [
|
|
55
|
+
"dist",
|
|
56
|
+
"model",
|
|
57
|
+
"README.md",
|
|
58
|
+
".env.example"
|
|
59
|
+
],
|
|
60
|
+
"imports": {
|
|
61
|
+
"#module-format": "./dist/lib/module-format.esm.js"
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"test": "jest",
|
|
65
|
+
"test:coverage": "jest --coverage",
|
|
66
|
+
"start:dev": "cross-env NODE_ENV=development tsx watch --clear-screen --no-cache src/server.ts --log-level debug | pino-pretty",
|
|
67
|
+
"start": "node dist/server.js",
|
|
68
|
+
"build:code": "tsc -p tsconfig.json",
|
|
69
|
+
"build:assets": "cpx \"model/**/*.yaml\" ./dist/model && cpx \"model/**/*.graphql\" ./dist/model",
|
|
70
|
+
"build": "rm -rf dist && pnpm lint && pnpm build:code && pnpm build:assets",
|
|
71
|
+
"watch": "tsc -p tsconfig.json --watch",
|
|
72
|
+
"start:build": "rm -rf dist && pnpm build:esm && pnpm build:assets && node dist/server.js",
|
|
73
|
+
"codegen": "graphql-codegen --config codegen.ts",
|
|
74
|
+
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" \"tests/**/*.{js,jsx,ts,tsx}\"",
|
|
75
|
+
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\" \"tests/**/*.{js,jsx,ts,tsx}\"",
|
|
76
|
+
"sonar": "bash sonar.sh"
|
|
77
|
+
}
|
|
78
|
+
}
|