@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.
@@ -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
- format: String
120
- shortcuts: DateShortcuts
121
- }
122
-
123
- type TableCriteria {
124
- name: String!
125
- label: String!
126
- labelProp: String
127
- path: String!
128
- dataType: String
129
- date: TableCriteriaDate
130
- defaultValue: String
131
- multiple: Boolean
132
- exactMatchEnabled: Boolean
133
- operator: String
134
- selectOptions: ISelectOptions
135
- }
136
-
137
- enum TableFilterVariant {
138
- SIDEBAR
139
- MODAL
140
- }
141
-
142
- type Column {
143
- name: String!
144
- label: String!
145
- visible: Boolean
146
- paths: [String!]
147
- expression: String
148
- component: String
149
- sortable: Boolean
150
- flex: Float
151
- pinned: TablePinnedPosition
152
- config: JSON
153
- filter: ColumnFilter
154
- }
155
-
156
- type ColumnFilter {
157
- operators: [String]
158
- path: String
159
- dataType: String
160
- selectOptions: ISelectOptions
161
- }
162
-
163
- type SimpleSearch {
164
- filterType: String
165
- searchBy: String
166
- placeholder: String
167
- selectOptions: QuerySelectOptions!
168
- }
169
-
170
- type WhereFilter {
171
- type: String!
172
- value: JSON!
173
- }
174
-
175
- type Expandable {
176
- component: String
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.12",
4
- "description": "Reusable config GraphQL extension and standalone server",
5
- "main": "./dist/index.js",
6
- "type": "module",
7
- "scripts": {
8
- "test": "jest",
9
- "test:coverage": "jest --coverage",
10
- "start:dev": "cross-env NODE_ENV=development tsx watch --clear-screen --no-cache src/server.ts --log-level debug | pino-pretty",
11
- "start": "node dist/server.js",
12
- "build:code": "tsc -p tsconfig.json",
13
- "build:assets": "cpx \"model/**/*.yaml\" ./dist/model && cpx \"model/**/*.graphql\" ./dist/model",
14
- "build": "rm -rf dist && pnpm lint && pnpm build:code && pnpm build:assets",
15
- "watch": "tsc -p tsconfig.json --watch",
16
- "start:build": "rm -rf dist && pnpm build:esm && pnpm build:assets && node dist/server.js",
17
- "codegen": "graphql-codegen --config codegen.ts",
18
- "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" \"tests/**/*.{js,jsx,ts,tsx}\"",
19
- "lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\" \"tests/**/*.{js,jsx,ts,tsx}\"",
20
- "prepublishOnly": "pnpm build && pnpm test",
21
- "sonar": "bash sonar.sh"
22
- },
23
- "keywords": [
24
- "graphql",
25
- "config",
26
- "extension"
27
- ],
28
- "author": "",
29
- "license": "ISC",
30
- "dependencies": {
31
- "@docupace/ihub-cache": "1.0.1",
32
- "@docupace/ihub-core": "0.0.114-alpha.1",
33
- "axios": "^1.13.5",
34
- "cross-env": "^7.0.3",
35
- "dotenv": "^16.4.1",
36
- "graphql": "^16.8.1",
37
- "js-yaml": "^4.1.0",
38
- "lodash": "^4.17.21",
39
- "pino": "^10.3.1",
40
- "simple-git": "^3.22.0"
41
- },
42
- "devDependencies": {
43
- "@graphql-codegen/cli": "5.0.2",
44
- "@graphql-codegen/typescript": "4.0.6",
45
- "@graphql-codegen/typescript-resolvers": "4.0.6",
46
- "@types/jest": "^30.0.0",
47
- "@types/js-yaml": "^4.0.9",
48
- "@types/lodash": "^4.17.7",
49
- "@types/node": "^20.10.6",
50
- "@typescript-eslint/eslint-plugin": "^7.10.0",
51
- "@typescript-eslint/parser": "^7.10.0",
52
- "cpx": "^1.5.0",
53
- "eslint": "8",
54
- "eslint-config-prettier": "^8.10.0",
55
- "eslint-import-resolver-typescript": "^3.6.1",
56
- "eslint-plugin-import": "^2.29.1",
57
- "eslint-plugin-prettier": "^5.1.3",
58
- "jest": "^29.7.0",
59
- "nock": "^13.5.6",
60
- "pino-pretty": "^13.1.2",
61
- "prettier": "^3.6.2",
62
- "sonarqube-scanner": "^4.3.4",
63
- "ts-jest": "^29.1.1",
64
- "ts-node": "^10.9.1",
65
- "tslib": "^2.8.1",
66
- "tsx": "^4.11.2",
67
- "typescript": "^5.3.3"
68
- },
69
- "packageManager": "pnpm@10.30.3",
70
- "types": "dist/index.d.ts",
71
- "files": [
72
- "dist",
73
- "model",
74
- "README.md",
75
- ".env.example"
76
- ],
77
- "imports": {
78
- "#module-format": "./dist/lib/module-format.esm.js"
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
+ }