|
1
|
/** |
|
2
|
* @schema AdminColumn |
|
3
|
* type: object |
|
4
|
* description: The details of a column in a view configuration. |
|
5
|
* x-schemaName: AdminColumn |
|
6
|
* required: |
|
7
|
* - id |
|
8
|
* - name |
|
9
|
* - field |
|
10
|
* - sortable |
|
11
|
* - hideable |
|
12
|
* - default_visible |
|
13
|
* - data_type |
|
14
|
* properties: |
|
15
|
* id: |
|
16
|
* type: string |
|
17
|
* title: id |
|
18
|
* description: The column's ID. |
|
19
|
* name: |
|
20
|
* type: string |
|
21
|
* title: name |
|
22
|
* description: The column's name. This is displayed in the view header. |
|
23
|
* description: |
|
24
|
* type: string |
|
25
|
* title: description |
|
26
|
* description: The column's description. |
|
27
|
* field: |
|
28
|
* type: string |
|
29
|
* title: field |
|
30
|
* description: The column's field in the entity. |
|
31
|
* sortable: |
|
32
|
* type: boolean |
|
33
|
* title: sortable |
|
34
|
* description: Whether the column is sortable. |
|
35
|
* hideable: |
|
36
|
* type: boolean |
|
37
|
* title: hideable |
|
38
|
* description: Whether the column is hideable. |
|
39
|
* default_visible: |
|
40
|
* type: boolean |
|
41
|
* title: default_visible |
|
42
|
* description: Whether the column is visible by default. |
|
43
|
* data_type: |
|
44
|
* type: string |
|
45
|
* description: The data type of the column's value. |
|
46
|
* enum: |
|
47
|
* - string |
|
48
|
* - number |
|
49
|
* - boolean |
|
50
|
* - object |
|
51
|
* - date |
|
52
|
* - currency |
|
53
|
* - enum |
|
54
|
* semantic_type: |
|
55
|
* type: string |
|
56
|
* title: semantic_type |
|
57
|
* description: The column's semantic type. It can be `computed`, or other primitive types. |
|
58
|
* context: |
|
59
|
* type: string |
|
60
|
* title: context |
|
61
|
* description: The column's context. It can be `display` or `generic`. |
|
62
|
* computed: |
|
63
|
* type: object |
|
64
|
* description: A computed column's details. Only available if the column's `semantic_type` is `computed`. |
|
65
|
* required: |
|
66
|
* - type |
|
67
|
* - required_fields |
|
68
|
* - optional_fields |
|
69
|
* properties: |
|
70
|
* type: |
|
71
|
* type: string |
|
72
|
* title: type |
|
73
|
* description: The computed's type for rendering. |
|
74
|
* required_fields: |
|
75
|
* type: array |
|
76
|
* description: The required fields in the computed column. |
|
77
|
* items: |
|
78
|
* type: string |
|
79
|
* title: required_fields |
|
80
|
* description: A required field in the computed column. |
|
81
|
* optional_fields: |
|
82
|
* type: array |
|
83
|
* description: The optional fields in the computed column. |
|
84
|
* items: |
|
85
|
* type: string |
|
86
|
* title: optional_fields |
|
87
|
* description: An optional field in the computed column. |
|
88
|
* relationship: |
|
89
|
* type: object |
|
90
|
* description: The relationship details. Only available for relationship columns. |
|
91
|
* required: |
|
92
|
* - entity |
|
93
|
* - field |
|
94
|
* properties: |
|
95
|
* entity: |
|
96
|
* type: string |
|
97
|
* title: entity |
|
98
|
* description: The related entity. |
|
99
|
* field: |
|
100
|
* type: string |
|
101
|
* title: field |
|
102
|
* description: The field in the related entity. |
|
103
|
* default_order: |
|
104
|
* type: number |
|
105
|
* title: default_order |
|
106
|
* description: The column's sort order in the default view configuration. |
|
107
|
* category: |
|
108
|
* type: string |
|
109
|
* description: The column's category. |
|
110
|
* enum: |
|
111
|
* - status |
|
112
|
* - metadata |
|
113
|
* - identifier |
|
114
|
* - timestamp |
|
115
|
* - metric |
|
116
|
* - relationship |
|
117
|
* render_mode: |
|
118
|
* type: string |
|
119
|
* title: render_mode |
|
120
|
* description: The column's render mode. |
|
121
|
* filter: |
|
122
|
* type: object |
|
123
|
* description: The column's filter. |
|
124
|
* required: |
|
125
|
* - enabled |
|
126
|
* properties: |
|
127
|
* enabled: |
|
128
|
* type: boolean |
|
129
|
* title: enabled |
|
130
|
* description: Whether the column's filter is enabled. |
|
131
|
* operators: |
|
132
|
* type: array |
|
133
|
* description: The filter's operators. |
|
134
|
* items: |
|
135
|
* type: string |
|
136
|
* title: operators |
|
137
|
* description: An operator for the column's filter. |
|
138
|
* enumValues: |
|
139
|
* type: array |
|
140
|
* description: The filter's enum values, if the filter supports enums. |
|
141
|
* items: |
|
142
|
* type: string |
|
143
|
* title: enumValues |
|
144
|
* description: An enum value for the column's filter. |
|
145
|
* relationship: |
|
146
|
* $ref: "#/components/schemas/RelationshipFilterConfig" |
|
147
|
* source: |
|
148
|
* type: object |
|
149
|
* description: The column's source details. Only available if the column is from a source. |
|
150
|
* required: |
|
151
|
* - module |
|
152
|
* - entity |
|
153
|
* properties: |
|
154
|
* module: |
|
155
|
* type: string |
|
156
|
* title: module |
|
157
|
* description: The source's module. |
|
158
|
* entity: |
|
159
|
* type: string |
|
160
|
* title: entity |
|
161
|
* description: The source's entity. |
|
162
|
* custom_label: |
|
163
|
* type: boolean |
|
164
|
* title: custom_label |
|
165
|
* description: Whether the column has a custom label. |
|
166
|
* label_id: |
|
167
|
* type: string |
|
168
|
* title: label_id |
|
169
|
* description: The ID of the column's label, if it has a custom label. |
|
170
|
* metadata: |
|
171
|
* type: object |
|
172
|
* description: The column's metadata. |
|
173
|
* |
|
174
|
*/ |
|
175
|
|