Add missing default values (#2567)
* add missing default values * add missing default values
This commit is contained in:
@ -23,6 +23,7 @@ const attachmentMetadata = {
|
||||
description: 'Attachment name',
|
||||
icon: 'IconFileUpload',
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
@ -36,6 +37,7 @@ const attachmentMetadata = {
|
||||
description: 'Attachment full path',
|
||||
icon: 'IconLink',
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
@ -49,6 +51,7 @@ const attachmentMetadata = {
|
||||
description: 'Attachment type',
|
||||
icon: 'IconList',
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
// Relations
|
||||
{
|
||||
|
||||
@ -23,6 +23,7 @@ const commentMetadata = {
|
||||
description: 'Comment body',
|
||||
icon: 'IconLink',
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
// Relations
|
||||
{
|
||||
|
||||
@ -23,6 +23,7 @@ const companyMetadata = {
|
||||
description: 'The company name',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
|
||||
@ -23,6 +23,7 @@ const favoriteMetadata = {
|
||||
description: 'Favorite position',
|
||||
icon: 'IconList',
|
||||
isNullable: false,
|
||||
defaultValue: { value: 0 },
|
||||
},
|
||||
// Relations
|
||||
{
|
||||
|
||||
@ -23,6 +23,7 @@ const pipelineStepMetadata = {
|
||||
description: 'Pipeline Step name',
|
||||
icon: 'IconCurrencyDollar',
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
@ -36,6 +37,7 @@ const pipelineStepMetadata = {
|
||||
description: 'Pipeline Step color',
|
||||
icon: 'IconColorSwatch',
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
@ -49,6 +51,7 @@ const pipelineStepMetadata = {
|
||||
description: 'Pipeline Step position',
|
||||
icon: 'IconHierarchy2',
|
||||
isNullable: false,
|
||||
defaultValue: { value: 0 },
|
||||
},
|
||||
// Relations
|
||||
{
|
||||
|
||||
@ -50,6 +50,7 @@ export const basicFieldsMetadata: Partial<FieldMetadataEntity>[] = [
|
||||
// isSystem: true,
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
defaultValue: { type: 'uuid' },
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
@ -62,6 +63,7 @@ export const basicFieldsMetadata: Partial<FieldMetadataEntity>[] = [
|
||||
isNullable: true,
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
defaultValue: { type: 'now' },
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
@ -74,5 +76,6 @@ export const basicFieldsMetadata: Partial<FieldMetadataEntity>[] = [
|
||||
isNullable: true,
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
defaultValue: { type: 'now' },
|
||||
},
|
||||
];
|
||||
|
||||
@ -23,6 +23,7 @@ const viewFieldMetadata = {
|
||||
description: 'View Field target field',
|
||||
icon: 'IconTag',
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
@ -36,6 +37,7 @@ const viewFieldMetadata = {
|
||||
description: 'View Field visibility',
|
||||
icon: 'IconEye',
|
||||
isNullable: false,
|
||||
defaultValue: { value: true },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
@ -49,6 +51,7 @@ const viewFieldMetadata = {
|
||||
description: 'View Field size',
|
||||
icon: 'IconEye',
|
||||
isNullable: false,
|
||||
defaultValue: { value: 0 },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
@ -62,6 +65,7 @@ const viewFieldMetadata = {
|
||||
description: 'View Field position',
|
||||
icon: 'IconList',
|
||||
isNullable: false,
|
||||
defaultValue: { value: 0 },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
|
||||
@ -23,6 +23,7 @@ const viewFilterMetadata = {
|
||||
description: 'View Filter target field',
|
||||
icon: null,
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
@ -36,6 +37,7 @@ const viewFilterMetadata = {
|
||||
description: 'View Filter operand',
|
||||
icon: null,
|
||||
isNullable: false,
|
||||
defaultValue: { value: 'Contains' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
@ -49,6 +51,7 @@ const viewFilterMetadata = {
|
||||
description: 'View Filter value',
|
||||
icon: null,
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
@ -62,6 +65,7 @@ const viewFilterMetadata = {
|
||||
description: 'View Filter Display Value',
|
||||
icon: null,
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
|
||||
@ -23,6 +23,7 @@ const viewSortMetadata = {
|
||||
description: 'View Sort target field',
|
||||
icon: null,
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
@ -36,6 +37,7 @@ const viewSortMetadata = {
|
||||
description: 'View Sort direction',
|
||||
icon: null,
|
||||
isNullable: false,
|
||||
defaultValue: { value: 'asc' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
|
||||
@ -21,6 +21,7 @@ const viewMetadata = {
|
||||
description: 'View name',
|
||||
icon: null,
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
type: FieldMetadataType.TEXT,
|
||||
@ -32,6 +33,7 @@ const viewMetadata = {
|
||||
description: 'View target object',
|
||||
icon: null,
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
type: FieldMetadataType.TEXT,
|
||||
@ -43,6 +45,7 @@ const viewMetadata = {
|
||||
description: 'View type',
|
||||
icon: null,
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
|
||||
@ -23,6 +23,7 @@ const webhookMetadata = {
|
||||
description: 'Webhook target url',
|
||||
icon: 'IconLink',
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
@ -36,6 +37,7 @@ const webhookMetadata = {
|
||||
description: 'Webhook operation',
|
||||
icon: 'IconCheckbox',
|
||||
isNullable: false,
|
||||
defaultValue: { value: '' },
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -27,28 +27,17 @@ const workspaceMemberMetadata = {
|
||||
{
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
type: FieldMetadataType.TEXT,
|
||||
name: 'lastName',
|
||||
label: 'Last name',
|
||||
type: FieldMetadataType.FULL_NAME,
|
||||
name: 'name',
|
||||
label: 'Name',
|
||||
targetColumnMap: {
|
||||
value: 'lastName',
|
||||
firstName: 'nameFirstName',
|
||||
lastName: 'nameLastName',
|
||||
},
|
||||
description: 'Workspace member last name',
|
||||
description: 'Workspace member name',
|
||||
icon: 'IconCircleUser',
|
||||
isNullable: false,
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
type: FieldMetadataType.UUID,
|
||||
name: 'userId',
|
||||
label: 'User Id',
|
||||
targetColumnMap: {
|
||||
value: 'userId',
|
||||
},
|
||||
description: 'Associated User Id',
|
||||
icon: 'IconCircleUsers',
|
||||
isNullable: false,
|
||||
defaultValue: { firstName: '', lastName: '' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
@ -88,6 +77,7 @@ const workspaceMemberMetadata = {
|
||||
description: 'Preferred language',
|
||||
icon: 'IconLanguage',
|
||||
isNullable: false,
|
||||
defaultValue: { value: 'fr' },
|
||||
},
|
||||
{
|
||||
isCustom: false,
|
||||
|
||||
Reference in New Issue
Block a user