@@ -112,6 +112,8 @@ public function show(int $id): DataResponse {
112
112
* @param 'progress'|'stars'|null $subtype Subtype for the new column
113
113
* @param string|null $description Description
114
114
* @param list<int>|null $selectedViewIds View IDs where this columns should be added
115
+ * @param array<string, mixed> $customSettings Custom settings for the column
116
+ *
115
117
* @return DataResponse<Http::STATUS_OK, TablesColumn, array{}>|DataResponse<Http::STATUS_FORBIDDEN|Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}>
116
118
*
117
119
* 200: Column created
@@ -123,7 +125,7 @@ public function show(int $id): DataResponse {
123
125
*/
124
126
#[NoAdminRequired]
125
127
#[RequirePermission(permission: Application::PERMISSION_MANAGE , typeParam: 'baseNodeType ' , idParam: 'baseNodeId ' )]
126
- public function createNumberColumn (int $ baseNodeId , string $ title , ?float $ numberDefault , ?int $ numberDecimals , ?string $ numberPrefix , ?string $ numberSuffix , ?float $ numberMin , ?float $ numberMax , ?string $ subtype = null , ?string $ description = null , ?array $ selectedViewIds = [], bool $ mandatory = false , string $ baseNodeType = 'table ' ): DataResponse {
128
+ public function createNumberColumn (int $ baseNodeId , string $ title , ?float $ numberDefault , ?int $ numberDecimals , ?string $ numberPrefix , ?string $ numberSuffix , ?float $ numberMin , ?float $ numberMax , ?string $ subtype = null , ?string $ description = null , ?array $ selectedViewIds = [], bool $ mandatory = false , string $ baseNodeType = 'table ' , array $ customSettings = [] ): DataResponse {
127
129
$ tableId = $ baseNodeType === 'table ' ? $ baseNodeId : null ;
128
130
$ viewId = $ baseNodeType === 'view ' ? $ baseNodeId : null ;
129
131
$ column = $ this ->service ->create (
@@ -141,7 +143,8 @@ public function createNumberColumn(int $baseNodeId, string $title, ?float $numbe
141
143
numberMax: $ numberMax ,
142
144
numberDecimals: $ numberDecimals ,
143
145
numberPrefix: $ numberPrefix ,
144
- numberSuffix: $ numberSuffix
146
+ numberSuffix: $ numberSuffix ,
147
+ customSettings: json_encode ($ customSettings ),
145
148
),
146
149
$ selectedViewIds
147
150
);
@@ -164,6 +167,7 @@ public function createNumberColumn(int $baseNodeId, string $title, ?float $numbe
164
167
* @param list<int>|null $selectedViewIds View IDs where this columns should be added
165
168
* @param boolean $mandatory Is mandatory
166
169
* @param 'table'|'view' $baseNodeType Context type of the column creation
170
+ * @param array<string, mixed> $customSettings Custom settings for the column
167
171
* @return DataResponse<Http::STATUS_OK, TablesColumn, array{}>|DataResponse<Http::STATUS_FORBIDDEN|Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}>
168
172
*
169
173
* 200: Column created
@@ -175,7 +179,7 @@ public function createNumberColumn(int $baseNodeId, string $title, ?float $numbe
175
179
*/
176
180
#[NoAdminRequired]
177
181
#[RequirePermission(permission: Application::PERMISSION_MANAGE , typeParam: 'baseNodeType ' , idParam: 'baseNodeId ' )]
178
- public function createTextColumn (int $ baseNodeId , string $ title , ?string $ textDefault , ?string $ textAllowedPattern , ?int $ textMaxLength , ?bool $ textUnique = false , ?string $ subtype = null , ?string $ description = null , ?array $ selectedViewIds = [], bool $ mandatory = false , string $ baseNodeType = 'table ' ): DataResponse {
182
+ public function createTextColumn (int $ baseNodeId , string $ title , ?string $ textDefault , ?string $ textAllowedPattern , ?int $ textMaxLength , ?bool $ textUnique = false , ?string $ subtype = null , ?string $ description = null , ?array $ selectedViewIds = [], bool $ mandatory = false , string $ baseNodeType = 'table ' , array $ customSettings = [] ): DataResponse {
179
183
$ tableId = $ baseNodeType === 'table ' ? $ baseNodeId : null ;
180
184
$ viewId = $ baseNodeType === 'view ' ? $ baseNodeId : null ;
181
185
$ column = $ this ->service ->create (
@@ -191,7 +195,8 @@ public function createTextColumn(int $baseNodeId, string $title, ?string $textDe
191
195
textDefault: $ textDefault ,
192
196
textAllowedPattern: $ textAllowedPattern ,
193
197
textMaxLength: $ textMaxLength ,
194
- textUnique: $ textUnique
198
+ textUnique: $ textUnique ,
199
+ customSettings: json_encode ($ customSettings ),
195
200
),
196
201
$ selectedViewIds
197
202
);
@@ -212,6 +217,8 @@ public function createTextColumn(int $baseNodeId, string $title, ?string $textDe
212
217
* @param list<int>|null $selectedViewIds View IDs where this columns should be added
213
218
* @param boolean $mandatory Is mandatory
214
219
* @param 'table'|'view' $baseNodeType Context type of the column creation
220
+ * @param array<string, mixed> $customSettings Custom settings for the column
221
+ *
215
222
* @return DataResponse<Http::STATUS_OK, TablesColumn, array{}>|DataResponse<Http::STATUS_FORBIDDEN|Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}>
216
223
*
217
224
* 200: Column created
@@ -223,7 +230,7 @@ public function createTextColumn(int $baseNodeId, string $title, ?string $textDe
223
230
*/
224
231
#[NoAdminRequired]
225
232
#[RequirePermission(permission: Application::PERMISSION_MANAGE , typeParam: 'baseNodeType ' , idParam: 'baseNodeId ' )]
226
- public function createSelectionColumn (int $ baseNodeId , string $ title , string $ selectionOptions , ?string $ selectionDefault , ?string $ subtype = null , ?string $ description = null , ?array $ selectedViewIds = [], bool $ mandatory = false , string $ baseNodeType = 'table ' ): DataResponse {
233
+ public function createSelectionColumn (int $ baseNodeId , string $ title , string $ selectionOptions , ?string $ selectionDefault , ?string $ subtype = null , ?string $ description = null , ?array $ selectedViewIds = [], bool $ mandatory = false , string $ baseNodeType = 'table ' , array $ customSettings = [] ): DataResponse {
227
234
$ tableId = $ baseNodeType === 'table ' ? $ baseNodeId : null ;
228
235
$ viewId = $ baseNodeType === 'view ' ? $ baseNodeId : null ;
229
236
$ column = $ this ->service ->create (
@@ -237,7 +244,8 @@ public function createSelectionColumn(int $baseNodeId, string $title, string $se
237
244
mandatory: $ mandatory ,
238
245
description: $ description ,
239
246
selectionOptions: $ selectionOptions ,
240
- selectionDefault: $ selectionDefault
247
+ selectionDefault: $ selectionDefault ,
248
+ customSettings: json_encode ($ customSettings ),
241
249
),
242
250
$ selectedViewIds
243
251
);
@@ -257,6 +265,8 @@ public function createSelectionColumn(int $baseNodeId, string $title, string $se
257
265
* @param list<int>|null $selectedViewIds View IDs where this columns should be added
258
266
* @param boolean $mandatory Is mandatory
259
267
* @param 'table'|'view' $baseNodeType Context type of the column creation
268
+ * @param array<string, mixed> $customSettings Custom settings for the column
269
+ *
260
270
* @return DataResponse<Http::STATUS_OK, TablesColumn, array{}>|DataResponse<Http::STATUS_FORBIDDEN|Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}>
261
271
*
262
272
* 200: Column created
@@ -268,7 +278,7 @@ public function createSelectionColumn(int $baseNodeId, string $title, string $se
268
278
*/
269
279
#[NoAdminRequired]
270
280
#[RequirePermission(permission: Application::PERMISSION_MANAGE , typeParam: 'baseNodeType ' , idParam: 'baseNodeId ' )]
271
- public function createDatetimeColumn (int $ baseNodeId , string $ title , ?string $ datetimeDefault , ?string $ subtype = null , ?string $ description = null , ?array $ selectedViewIds = [], bool $ mandatory = false , string $ baseNodeType = 'table ' ): DataResponse {
281
+ public function createDatetimeColumn (int $ baseNodeId , string $ title , ?string $ datetimeDefault , ?string $ subtype = null , ?string $ description = null , ?array $ selectedViewIds = [], bool $ mandatory = false , string $ baseNodeType = 'table ' , array $ customSettings = [] ): DataResponse {
272
282
$ tableId = $ baseNodeType === 'table ' ? $ baseNodeId : null ;
273
283
$ viewId = $ baseNodeType === 'view ' ? $ baseNodeId : null ;
274
284
$ column = $ this ->service ->create (
@@ -281,7 +291,8 @@ public function createDatetimeColumn(int $baseNodeId, string $title, ?string $da
281
291
subtype: $ subtype ,
282
292
mandatory: $ mandatory ,
283
293
description: $ description ,
284
- datetimeDefault: $ datetimeDefault
294
+ datetimeDefault: $ datetimeDefault ,
295
+ customSettings: json_encode ($ customSettings ),
285
296
),
286
297
$ selectedViewIds
287
298
);
@@ -303,6 +314,8 @@ public function createDatetimeColumn(int $baseNodeId, string $title, ?string $da
303
314
* @param list<int>|null $selectedViewIds View IDs where this columns should be added
304
315
* @param boolean $mandatory Is mandatory
305
316
* @param 'table'|'view' $baseNodeType Context type of the column creation
317
+ * @param array<string, mixed> $customSettings Custom settings for the column
318
+ *
306
319
* @return DataResponse<Http::STATUS_OK, TablesColumn, array{}>|DataResponse<Http::STATUS_FORBIDDEN|Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}>
307
320
*
308
321
* 200: Column created
@@ -314,7 +327,7 @@ public function createDatetimeColumn(int $baseNodeId, string $title, ?string $da
314
327
*/
315
328
#[NoAdminRequired]
316
329
#[RequirePermission(permission: Application::PERMISSION_MANAGE , typeParam: 'baseNodeType ' , idParam: 'baseNodeId ' )]
317
- public function createUsergroupColumn (int $ baseNodeId , string $ title , ?string $ usergroupDefault , ?bool $ usergroupMultipleItems = null , ?bool $ usergroupSelectUsers = null , ?bool $ usergroupSelectGroups = null , ?bool $ usergroupSelectTeams = null , ?bool $ showUserStatus = null , ?string $ description = null , ?array $ selectedViewIds = [], bool $ mandatory = false , string $ baseNodeType = 'table ' ): DataResponse {
330
+ public function createUsergroupColumn (int $ baseNodeId , string $ title , ?string $ usergroupDefault , ?bool $ usergroupMultipleItems = null , ?bool $ usergroupSelectUsers = null , ?bool $ usergroupSelectGroups = null , ?bool $ usergroupSelectTeams = null , ?bool $ showUserStatus = null , ?string $ description = null , ?array $ selectedViewIds = [], bool $ mandatory = false , string $ baseNodeType = 'table ' , array $ customSettings = [] ): DataResponse {
318
331
$ tableId = $ baseNodeType === 'table ' ? $ baseNodeId : null ;
319
332
$ viewId = $ baseNodeType === 'view ' ? $ baseNodeId : null ;
320
333
$ column = $ this ->service ->create (
@@ -331,7 +344,8 @@ public function createUsergroupColumn(int $baseNodeId, string $title, ?string $u
331
344
usergroupSelectUsers: $ usergroupSelectUsers ,
332
345
usergroupSelectGroups: $ usergroupSelectGroups ,
333
346
usergroupSelectTeams: $ usergroupSelectTeams ,
334
- showUserStatus: $ showUserStatus
347
+ showUserStatus: $ showUserStatus ,
348
+ customSettings: json_encode ($ customSettings ),
335
349
),
336
350
$ selectedViewIds
337
351
);
0 commit comments