@@ -112,6 +112,8 @@ public function show(int $id): DataResponse {
112112 * @param 'progress'|'stars'|null $subtype Subtype for the new column
113113 * @param string|null $description Description
114114 * @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+ *
115117 * @return DataResponse<Http::STATUS_OK, TablesColumn, array{}>|DataResponse<Http::STATUS_FORBIDDEN|Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}>
116118 *
117119 * 200: Column created
@@ -123,7 +125,7 @@ public function show(int $id): DataResponse {
123125 */
124126 #[NoAdminRequired]
125127 #[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 {
127129 $ tableId = $ baseNodeType === 'table ' ? $ baseNodeId : null ;
128130 $ viewId = $ baseNodeType === 'view ' ? $ baseNodeId : null ;
129131 $ column = $ this ->service ->create (
@@ -141,7 +143,8 @@ public function createNumberColumn(int $baseNodeId, string $title, ?float $numbe
141143 numberMax: $ numberMax ,
142144 numberDecimals: $ numberDecimals ,
143145 numberPrefix: $ numberPrefix ,
144- numberSuffix: $ numberSuffix
146+ numberSuffix: $ numberSuffix ,
147+ customSettings: json_encode ($ customSettings ),
145148 ),
146149 $ selectedViewIds
147150 );
@@ -164,6 +167,7 @@ public function createNumberColumn(int $baseNodeId, string $title, ?float $numbe
164167 * @param list<int>|null $selectedViewIds View IDs where this columns should be added
165168 * @param boolean $mandatory Is mandatory
166169 * @param 'table'|'view' $baseNodeType Context type of the column creation
170+ * @param array<string, mixed> $customSettings Custom settings for the column
167171 * @return DataResponse<Http::STATUS_OK, TablesColumn, array{}>|DataResponse<Http::STATUS_FORBIDDEN|Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}>
168172 *
169173 * 200: Column created
@@ -175,7 +179,7 @@ public function createNumberColumn(int $baseNodeId, string $title, ?float $numbe
175179 */
176180 #[NoAdminRequired]
177181 #[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 {
179183 $ tableId = $ baseNodeType === 'table ' ? $ baseNodeId : null ;
180184 $ viewId = $ baseNodeType === 'view ' ? $ baseNodeId : null ;
181185 $ column = $ this ->service ->create (
@@ -191,7 +195,8 @@ public function createTextColumn(int $baseNodeId, string $title, ?string $textDe
191195 textDefault: $ textDefault ,
192196 textAllowedPattern: $ textAllowedPattern ,
193197 textMaxLength: $ textMaxLength ,
194- textUnique: $ textUnique
198+ textUnique: $ textUnique ,
199+ customSettings: json_encode ($ customSettings ),
195200 ),
196201 $ selectedViewIds
197202 );
@@ -212,6 +217,8 @@ public function createTextColumn(int $baseNodeId, string $title, ?string $textDe
212217 * @param list<int>|null $selectedViewIds View IDs where this columns should be added
213218 * @param boolean $mandatory Is mandatory
214219 * @param 'table'|'view' $baseNodeType Context type of the column creation
220+ * @param array<string, mixed> $customSettings Custom settings for the column
221+ *
215222 * @return DataResponse<Http::STATUS_OK, TablesColumn, array{}>|DataResponse<Http::STATUS_FORBIDDEN|Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}>
216223 *
217224 * 200: Column created
@@ -223,7 +230,7 @@ public function createTextColumn(int $baseNodeId, string $title, ?string $textDe
223230 */
224231 #[NoAdminRequired]
225232 #[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 {
227234 $ tableId = $ baseNodeType === 'table ' ? $ baseNodeId : null ;
228235 $ viewId = $ baseNodeType === 'view ' ? $ baseNodeId : null ;
229236 $ column = $ this ->service ->create (
@@ -237,7 +244,8 @@ public function createSelectionColumn(int $baseNodeId, string $title, string $se
237244 mandatory: $ mandatory ,
238245 description: $ description ,
239246 selectionOptions: $ selectionOptions ,
240- selectionDefault: $ selectionDefault
247+ selectionDefault: $ selectionDefault ,
248+ customSettings: json_encode ($ customSettings ),
241249 ),
242250 $ selectedViewIds
243251 );
@@ -257,6 +265,8 @@ public function createSelectionColumn(int $baseNodeId, string $title, string $se
257265 * @param list<int>|null $selectedViewIds View IDs where this columns should be added
258266 * @param boolean $mandatory Is mandatory
259267 * @param 'table'|'view' $baseNodeType Context type of the column creation
268+ * @param array<string, mixed> $customSettings Custom settings for the column
269+ *
260270 * @return DataResponse<Http::STATUS_OK, TablesColumn, array{}>|DataResponse<Http::STATUS_FORBIDDEN|Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}>
261271 *
262272 * 200: Column created
@@ -268,7 +278,7 @@ public function createSelectionColumn(int $baseNodeId, string $title, string $se
268278 */
269279 #[NoAdminRequired]
270280 #[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 {
272282 $ tableId = $ baseNodeType === 'table ' ? $ baseNodeId : null ;
273283 $ viewId = $ baseNodeType === 'view ' ? $ baseNodeId : null ;
274284 $ column = $ this ->service ->create (
@@ -281,7 +291,8 @@ public function createDatetimeColumn(int $baseNodeId, string $title, ?string $da
281291 subtype: $ subtype ,
282292 mandatory: $ mandatory ,
283293 description: $ description ,
284- datetimeDefault: $ datetimeDefault
294+ datetimeDefault: $ datetimeDefault ,
295+ customSettings: json_encode ($ customSettings ),
285296 ),
286297 $ selectedViewIds
287298 );
@@ -303,6 +314,8 @@ public function createDatetimeColumn(int $baseNodeId, string $title, ?string $da
303314 * @param list<int>|null $selectedViewIds View IDs where this columns should be added
304315 * @param boolean $mandatory Is mandatory
305316 * @param 'table'|'view' $baseNodeType Context type of the column creation
317+ * @param array<string, mixed> $customSettings Custom settings for the column
318+ *
306319 * @return DataResponse<Http::STATUS_OK, TablesColumn, array{}>|DataResponse<Http::STATUS_FORBIDDEN|Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}>
307320 *
308321 * 200: Column created
@@ -314,7 +327,7 @@ public function createDatetimeColumn(int $baseNodeId, string $title, ?string $da
314327 */
315328 #[NoAdminRequired]
316329 #[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 {
318331 $ tableId = $ baseNodeType === 'table ' ? $ baseNodeId : null ;
319332 $ viewId = $ baseNodeType === 'view ' ? $ baseNodeId : null ;
320333 $ column = $ this ->service ->create (
@@ -331,7 +344,8 @@ public function createUsergroupColumn(int $baseNodeId, string $title, ?string $u
331344 usergroupSelectUsers: $ usergroupSelectUsers ,
332345 usergroupSelectGroups: $ usergroupSelectGroups ,
333346 usergroupSelectTeams: $ usergroupSelectTeams ,
334- showUserStatus: $ showUserStatus
347+ showUserStatus: $ showUserStatus ,
348+ customSettings: json_encode ($ customSettings ),
335349 ),
336350 $ selectedViewIds
337351 );
0 commit comments