-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add default values to crudOptions
- Loading branch information
1 parent
852fc1a
commit 3537deb
Showing
5 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import {customFields} from './types'; | ||
|
||
export const GET_LIST_DEFAULT_FILTERABLE_FIELDS: customFields = []; | ||
export const GET_LIST_DEFAULT_SORTABLE_FIELDS: customFields = []; | ||
export const DEFAULT_CREATABLE_FIELDS: customFields = { | ||
exclude: ['id', 'createdAt', 'updatedAt'], | ||
}; | ||
export const DEFAULT_UPDATABLE_FIELDS: customFields = { | ||
exclude: ['id', 'createdAt', 'updatedAt'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters