-
-
Notifications
You must be signed in to change notification settings - Fork 18
restore fields in common table settings #1513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
36fe5f0
e1f8b49
4cf5dac
3ba33f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,4 +65,16 @@ export class CreateTableSettingsDs { | |
|
|
||
| @ApiProperty() | ||
| allow_csv_import: boolean; | ||
|
|
||
| @ApiProperty({ required: false}) | ||
| list_per_page?: number; | ||
|
|
||
| @ApiProperty({ isArray: true, type: 'string', required: false }) | ||
|
||
| list_fields?: Array<string>; | ||
|
|
||
| @ApiProperty({ required: false }) | ||
| ordering?: string; | ||
|
|
||
| @ApiProperty({ required: false }) | ||
| ordering_field?: string; | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,69 +4,81 @@ import { TableActionEntity } from '../../../table-actions/table-actions-module/t | |||||
| import { TableWidgetEntity } from '../../../widget/table-widget.entity.js'; | ||||||
|
|
||||||
| export class FoundTableSettingsDs { | ||||||
| @ApiProperty() | ||||||
| id: string; | ||||||
| @ApiProperty() | ||||||
| id: string; | ||||||
|
|
||||||
| @ApiProperty() | ||||||
| table_name: string; | ||||||
| @ApiProperty() | ||||||
| table_name: string; | ||||||
|
|
||||||
| @ApiProperty() | ||||||
| display_name: string; | ||||||
| @ApiProperty() | ||||||
| display_name: string; | ||||||
|
|
||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| search_fields: Array<string>; | ||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| search_fields: Array<string>; | ||||||
|
|
||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| excluded_fields: Array<string>; | ||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| excluded_fields: Array<string>; | ||||||
|
|
||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| identification_fields: Array<string>; | ||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| identification_fields: Array<string>; | ||||||
|
|
||||||
| @ApiProperty() | ||||||
| identity_column: string; | ||||||
| @ApiProperty() | ||||||
| identity_column: string; | ||||||
|
|
||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| readonly_fields: Array<string>; | ||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| readonly_fields: Array<string>; | ||||||
|
|
||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| sensitive_fields: Array<string>; | ||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| sensitive_fields: Array<string>; | ||||||
|
|
||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| sortable_by: Array<string>; | ||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| sortable_by: Array<string>; | ||||||
|
|
||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| autocomplete_columns: Array<string>; | ||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| autocomplete_columns: Array<string>; | ||||||
|
|
||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| columns_view: Array<string>; | ||||||
| @ApiProperty({ isArray: true, type: String }) | ||||||
| columns_view: Array<string>; | ||||||
|
|
||||||
| @ApiProperty() | ||||||
| connection_id: string; | ||||||
| @ApiProperty() | ||||||
| connection_id: string; | ||||||
|
|
||||||
| @ApiProperty({ isArray: true, type: CustomFieldsEntity }) | ||||||
| custom_fields: Array<CustomFieldsEntity>; | ||||||
| @ApiProperty({ isArray: true, type: CustomFieldsEntity }) | ||||||
| custom_fields: Array<CustomFieldsEntity>; | ||||||
|
|
||||||
| @ApiProperty({ isArray: true, type: TableWidgetEntity }) | ||||||
| table_widgets: Array<TableWidgetEntity>; | ||||||
| @ApiProperty({ isArray: true, type: TableWidgetEntity }) | ||||||
| table_widgets: Array<TableWidgetEntity>; | ||||||
|
|
||||||
| @ApiProperty({ isArray: true, type: TableActionEntity }) | ||||||
| table_actions: Array<TableActionEntity>; | ||||||
| @ApiProperty({ isArray: true, type: TableActionEntity }) | ||||||
| table_actions: Array<TableActionEntity>; | ||||||
|
|
||||||
| @ApiProperty() | ||||||
| can_add: boolean; | ||||||
| @ApiProperty() | ||||||
| can_add: boolean; | ||||||
|
|
||||||
| @ApiProperty() | ||||||
| can_delete: boolean; | ||||||
| @ApiProperty() | ||||||
| can_delete: boolean; | ||||||
|
|
||||||
| @ApiProperty() | ||||||
| can_update: boolean; | ||||||
| @ApiProperty() | ||||||
| can_update: boolean; | ||||||
|
|
||||||
| @ApiProperty() | ||||||
| icon: string; | ||||||
| @ApiProperty() | ||||||
| icon: string; | ||||||
|
|
||||||
| @ApiProperty() | ||||||
| allow_csv_export: boolean; | ||||||
| @ApiProperty() | ||||||
| allow_csv_export: boolean; | ||||||
|
|
||||||
| @ApiProperty() | ||||||
| allow_csv_import: boolean; | ||||||
| @ApiProperty() | ||||||
| allow_csv_import: boolean; | ||||||
|
|
||||||
| @ApiProperty({ isArray: true, type: 'string' }) | ||||||
|
||||||
| @ApiProperty({ isArray: true, type: 'string' }) | |
| @ApiProperty({ isArray: true, type: String }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a spacing inconsistency in the ApiProperty decorator. It should be
required: false(with a space after the colon) to match the formatting style of the other decorators in this file.