Add missing default values (#2567)
* add missing default values * add missing default values
This commit is contained in:
@ -115,7 +115,7 @@ export const seedViewFilterFieldMetadata = async (
|
|||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
isSystem: false,
|
isSystem: false,
|
||||||
defaultValue: undefined,
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: SeedViewFilterFieldMetadataIds.View,
|
id: SeedViewFilterFieldMetadataIds.View,
|
||||||
@ -151,7 +151,7 @@ export const seedViewFilterFieldMetadata = async (
|
|||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
isSystem: false,
|
isSystem: false,
|
||||||
defaultValue: { value: '' },
|
defaultValue: { value: 'Contains' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: SeedViewFilterFieldMetadataIds.Value,
|
id: SeedViewFilterFieldMetadataIds.Value,
|
||||||
|
|||||||
@ -113,7 +113,7 @@ export const seedViewSortFieldMetadata = async (
|
|||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
isSystem: false,
|
isSystem: false,
|
||||||
defaultValue: undefined,
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: SeedViewSortFieldMetadataIds.View,
|
id: SeedViewSortFieldMetadataIds.View,
|
||||||
@ -149,7 +149,7 @@ export const seedViewSortFieldMetadata = async (
|
|||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
isSystem: false,
|
isSystem: false,
|
||||||
defaultValue: { value: '' },
|
defaultValue: { value: 'asc' },
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
.execute();
|
.execute();
|
||||||
|
|||||||
@ -134,7 +134,7 @@ export const seedViewFieldMetadata = async (
|
|||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
isSystem: false,
|
isSystem: false,
|
||||||
defaultValue: undefined,
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: SeedViewFieldMetadataIds.Type,
|
id: SeedViewFieldMetadataIds.Type,
|
||||||
|
|||||||
@ -3,6 +3,7 @@ import { DataSource } from 'typeorm';
|
|||||||
import { SeedObjectMetadataIds } from 'src/database/typeorm-seeds/metadata/object-metadata';
|
import { SeedObjectMetadataIds } from 'src/database/typeorm-seeds/metadata/object-metadata';
|
||||||
import { SeedWorkspaceId } from 'src/database/seeds/metadata';
|
import { SeedWorkspaceId } from 'src/database/seeds/metadata';
|
||||||
import { FieldMetadataType } from 'src/metadata/field-metadata/field-metadata.entity';
|
import { FieldMetadataType } from 'src/metadata/field-metadata/field-metadata.entity';
|
||||||
|
import { SeedPersonFieldMetadataIds } from 'src/database/typeorm-seeds/metadata/field-metadata/person';
|
||||||
|
|
||||||
const fieldMetadataTableName = 'fieldMetadata';
|
const fieldMetadataTableName = 'fieldMetadata';
|
||||||
|
|
||||||
@ -109,40 +110,23 @@ export const seedWorkspaceMemberFieldMetadata = async (
|
|||||||
},
|
},
|
||||||
// Scalar fields
|
// Scalar fields
|
||||||
{
|
{
|
||||||
id: SeedWorkspaceMemberFieldMetadataIds.FirstName,
|
id: SeedPersonFieldMetadataIds.Name,
|
||||||
objectMetadataId: SeedObjectMetadataIds.WorkspaceMember,
|
objectMetadataId: SeedObjectMetadataIds.WorkspaceMember,
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
workspaceId: SeedWorkspaceId,
|
workspaceId: SeedWorkspaceId,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
type: FieldMetadataType.TEXT,
|
type: FieldMetadataType.FULL_NAME,
|
||||||
name: 'firstName',
|
name: 'name',
|
||||||
label: 'First name',
|
label: 'Name',
|
||||||
targetColumnMap: {
|
targetColumnMap: {
|
||||||
value: 'firstName',
|
firstName: 'nameFirstName',
|
||||||
|
lastName: 'nameLastName',
|
||||||
},
|
},
|
||||||
description: 'Workspace member first name',
|
description: 'Workspace member name',
|
||||||
icon: 'IconCircleUser',
|
icon: 'IconCircleUser',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
isSystem: false,
|
isSystem: false,
|
||||||
defaultValue: { value: '' },
|
defaultValue: { firstName: '', lastName: '' },
|
||||||
},
|
|
||||||
{
|
|
||||||
id: SeedWorkspaceMemberFieldMetadataIds.LastName,
|
|
||||||
objectMetadataId: SeedObjectMetadataIds.WorkspaceMember,
|
|
||||||
isCustom: false,
|
|
||||||
workspaceId: SeedWorkspaceId,
|
|
||||||
isActive: true,
|
|
||||||
type: FieldMetadataType.TEXT,
|
|
||||||
name: 'lastName',
|
|
||||||
label: 'Last name',
|
|
||||||
targetColumnMap: {
|
|
||||||
value: 'lastName',
|
|
||||||
},
|
|
||||||
description: 'Workspace member last name',
|
|
||||||
icon: 'IconCircleUser',
|
|
||||||
isNullable: false,
|
|
||||||
isSystem: false,
|
|
||||||
defaultValue: { value: '' },
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: SeedWorkspaceMemberFieldMetadataIds.AvatarUrl,
|
id: SeedWorkspaceMemberFieldMetadataIds.AvatarUrl,
|
||||||
|
|||||||
@ -23,8 +23,8 @@ export const seedWorkspaceMember = async (
|
|||||||
.insert()
|
.insert()
|
||||||
.into(`${schemaName}.${tableName}`, [
|
.into(`${schemaName}.${tableName}`, [
|
||||||
'id',
|
'id',
|
||||||
'firstName',
|
'nameFirstName',
|
||||||
'lastName',
|
'nameLastName',
|
||||||
'locale',
|
'locale',
|
||||||
'colorScheme',
|
'colorScheme',
|
||||||
'allowImpersonation',
|
'allowImpersonation',
|
||||||
@ -34,8 +34,8 @@ export const seedWorkspaceMember = async (
|
|||||||
.values([
|
.values([
|
||||||
{
|
{
|
||||||
id: WorkspaceMemberIds.Tim,
|
id: WorkspaceMemberIds.Tim,
|
||||||
firstName: 'Tim',
|
nameFirstName: 'Tim',
|
||||||
lastName: 'Apple',
|
nameLastName: 'Apple',
|
||||||
locale: 'en',
|
locale: 'en',
|
||||||
colorScheme: 'Light',
|
colorScheme: 'Light',
|
||||||
allowImpersonation: true,
|
allowImpersonation: true,
|
||||||
@ -43,8 +43,8 @@ export const seedWorkspaceMember = async (
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: WorkspaceMemberIds.Jony,
|
id: WorkspaceMemberIds.Jony,
|
||||||
firstName: 'Jony',
|
nameFirstName: 'Jony',
|
||||||
lastName: 'Ive',
|
nameLastName: 'Ive',
|
||||||
locale: 'en',
|
locale: 'en',
|
||||||
colorScheme: 'Light',
|
colorScheme: 'Light',
|
||||||
allowImpersonation: true,
|
allowImpersonation: true,
|
||||||
@ -52,8 +52,8 @@ export const seedWorkspaceMember = async (
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: WorkspaceMemberIds.Phil,
|
id: WorkspaceMemberIds.Phil,
|
||||||
firstName: 'Phil',
|
nameFirstName: 'Phil',
|
||||||
lastName: 'Shiler',
|
nameLastName: 'Shiler',
|
||||||
locale: 'en',
|
locale: 'en',
|
||||||
colorScheme: 'Light',
|
colorScheme: 'Light',
|
||||||
allowImpersonation: true,
|
allowImpersonation: true,
|
||||||
|
|||||||
@ -16,6 +16,7 @@ export const addCompanyTable: WorkspaceMigrationTableAction[] = [
|
|||||||
columnName: 'name',
|
columnName: 'name',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'domainName',
|
columnName: 'domainName',
|
||||||
|
|||||||
@ -16,16 +16,19 @@ export const addViewTable: WorkspaceMigrationTableAction[] = [
|
|||||||
columnName: 'name',
|
columnName: 'name',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'objectMetadataId',
|
columnName: 'objectMetadataId',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'type',
|
columnName: 'type',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@ -16,21 +16,25 @@ export const addViewFieldTable: WorkspaceMigrationTableAction[] = [
|
|||||||
columnName: 'fieldMetadataId',
|
columnName: 'fieldMetadataId',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'position',
|
columnName: 'position',
|
||||||
columnType: 'integer',
|
columnType: 'integer',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'isVisible',
|
columnName: 'isVisible',
|
||||||
columnType: 'boolean',
|
columnType: 'boolean',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'size',
|
columnName: 'size',
|
||||||
columnType: 'integer',
|
columnType: 'integer',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'viewId',
|
columnName: 'viewId',
|
||||||
|
|||||||
@ -16,21 +16,25 @@ export const addViewFilterTable: WorkspaceMigrationTableAction[] = [
|
|||||||
columnName: 'fieldMetadataId',
|
columnName: 'fieldMetadataId',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'operand',
|
columnName: 'operand',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "'Contains'",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'value',
|
columnName: 'value',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'displayValue',
|
columnName: 'displayValue',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'viewId',
|
columnName: 'viewId',
|
||||||
|
|||||||
@ -16,11 +16,13 @@ export const addViewSortTable: WorkspaceMigrationTableAction[] = [
|
|||||||
columnName: 'fieldMetadataId',
|
columnName: 'fieldMetadataId',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'direction',
|
columnName: 'direction',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "'asc'",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'viewId',
|
columnName: 'viewId',
|
||||||
|
|||||||
@ -16,16 +16,19 @@ export const addAttachmentTable: WorkspaceMigrationTableAction[] = [
|
|||||||
columnName: 'name',
|
columnName: 'name',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'fullPath',
|
columnName: 'fullPath',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'type',
|
columnName: 'type',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'companyId',
|
columnName: 'companyId',
|
||||||
|
|||||||
@ -16,6 +16,7 @@ export const addCommentTable: WorkspaceMigrationTableAction[] = [
|
|||||||
columnName: 'body',
|
columnName: 'body',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'authorId',
|
columnName: 'authorId',
|
||||||
|
|||||||
@ -16,6 +16,7 @@ export const addFavoriteTable: WorkspaceMigrationTableAction[] = [
|
|||||||
columnName: 'position',
|
columnName: 'position',
|
||||||
columnType: 'float',
|
columnType: 'float',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'companyId',
|
columnName: 'companyId',
|
||||||
|
|||||||
@ -16,11 +16,13 @@ export const addPersonTable: WorkspaceMigrationTableAction[] = [
|
|||||||
columnName: 'nameFirstName',
|
columnName: 'nameFirstName',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'nameLastName',
|
columnName: 'nameLastName',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'email',
|
columnName: 'email',
|
||||||
|
|||||||
@ -16,16 +16,19 @@ export const addPipelineStepTable: WorkspaceMigrationTableAction[] = [
|
|||||||
columnName: 'name',
|
columnName: 'name',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'color',
|
columnName: 'color',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'position',
|
columnName: 'position',
|
||||||
columnType: 'float',
|
columnType: 'float',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: 0,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@ -16,11 +16,13 @@ export const addWebhookTable: WorkspaceMigrationTableAction[] = [
|
|||||||
columnName: 'targetUrl',
|
columnName: 'targetUrl',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'operation',
|
columnName: 'operation',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@ -13,14 +13,16 @@ export const addWorkspaceMemberTable: WorkspaceMigrationTableAction[] = [
|
|||||||
action: 'alter',
|
action: 'alter',
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
columnName: 'firstName',
|
columnName: 'nameFirstName',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'lastName',
|
columnName: 'nameLastName',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "''",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'avatarUrl',
|
columnName: 'avatarUrl',
|
||||||
@ -36,6 +38,7 @@ export const addWorkspaceMemberTable: WorkspaceMigrationTableAction[] = [
|
|||||||
columnName: 'locale',
|
columnName: 'locale',
|
||||||
columnType: 'varchar',
|
columnType: 'varchar',
|
||||||
action: WorkspaceMigrationColumnActionType.CREATE,
|
action: WorkspaceMigrationColumnActionType.CREATE,
|
||||||
|
defaultValue: "'fr'",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
columnName: 'allowImpersonation',
|
columnName: 'allowImpersonation',
|
||||||
|
|||||||
@ -23,6 +23,7 @@ const attachmentMetadata = {
|
|||||||
description: 'Attachment name',
|
description: 'Attachment name',
|
||||||
icon: 'IconFileUpload',
|
icon: 'IconFileUpload',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
@ -36,6 +37,7 @@ const attachmentMetadata = {
|
|||||||
description: 'Attachment full path',
|
description: 'Attachment full path',
|
||||||
icon: 'IconLink',
|
icon: 'IconLink',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
@ -49,6 +51,7 @@ const attachmentMetadata = {
|
|||||||
description: 'Attachment type',
|
description: 'Attachment type',
|
||||||
icon: 'IconList',
|
icon: 'IconList',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
// Relations
|
// Relations
|
||||||
{
|
{
|
||||||
|
|||||||
@ -23,6 +23,7 @@ const commentMetadata = {
|
|||||||
description: 'Comment body',
|
description: 'Comment body',
|
||||||
icon: 'IconLink',
|
icon: 'IconLink',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
// Relations
|
// Relations
|
||||||
{
|
{
|
||||||
|
|||||||
@ -23,6 +23,7 @@ const companyMetadata = {
|
|||||||
description: 'The company name',
|
description: 'The company name',
|
||||||
icon: 'IconBuildingSkyscraper',
|
icon: 'IconBuildingSkyscraper',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
|
|||||||
@ -23,6 +23,7 @@ const favoriteMetadata = {
|
|||||||
description: 'Favorite position',
|
description: 'Favorite position',
|
||||||
icon: 'IconList',
|
icon: 'IconList',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: 0 },
|
||||||
},
|
},
|
||||||
// Relations
|
// Relations
|
||||||
{
|
{
|
||||||
|
|||||||
@ -23,6 +23,7 @@ const pipelineStepMetadata = {
|
|||||||
description: 'Pipeline Step name',
|
description: 'Pipeline Step name',
|
||||||
icon: 'IconCurrencyDollar',
|
icon: 'IconCurrencyDollar',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
@ -36,6 +37,7 @@ const pipelineStepMetadata = {
|
|||||||
description: 'Pipeline Step color',
|
description: 'Pipeline Step color',
|
||||||
icon: 'IconColorSwatch',
|
icon: 'IconColorSwatch',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
@ -49,6 +51,7 @@ const pipelineStepMetadata = {
|
|||||||
description: 'Pipeline Step position',
|
description: 'Pipeline Step position',
|
||||||
icon: 'IconHierarchy2',
|
icon: 'IconHierarchy2',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: 0 },
|
||||||
},
|
},
|
||||||
// Relations
|
// Relations
|
||||||
{
|
{
|
||||||
|
|||||||
@ -50,6 +50,7 @@ export const basicFieldsMetadata: Partial<FieldMetadataEntity>[] = [
|
|||||||
// isSystem: true,
|
// isSystem: true,
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
|
defaultValue: { type: 'uuid' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'createdAt',
|
name: 'createdAt',
|
||||||
@ -62,6 +63,7 @@ export const basicFieldsMetadata: Partial<FieldMetadataEntity>[] = [
|
|||||||
isNullable: true,
|
isNullable: true,
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
|
defaultValue: { type: 'now' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'updatedAt',
|
name: 'updatedAt',
|
||||||
@ -74,5 +76,6 @@ export const basicFieldsMetadata: Partial<FieldMetadataEntity>[] = [
|
|||||||
isNullable: true,
|
isNullable: true,
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
|
defaultValue: { type: 'now' },
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@ -23,6 +23,7 @@ const viewFieldMetadata = {
|
|||||||
description: 'View Field target field',
|
description: 'View Field target field',
|
||||||
icon: 'IconTag',
|
icon: 'IconTag',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
@ -36,6 +37,7 @@ const viewFieldMetadata = {
|
|||||||
description: 'View Field visibility',
|
description: 'View Field visibility',
|
||||||
icon: 'IconEye',
|
icon: 'IconEye',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: true },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
@ -49,6 +51,7 @@ const viewFieldMetadata = {
|
|||||||
description: 'View Field size',
|
description: 'View Field size',
|
||||||
icon: 'IconEye',
|
icon: 'IconEye',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: 0 },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
@ -62,6 +65,7 @@ const viewFieldMetadata = {
|
|||||||
description: 'View Field position',
|
description: 'View Field position',
|
||||||
icon: 'IconList',
|
icon: 'IconList',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: 0 },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
|
|||||||
@ -23,6 +23,7 @@ const viewFilterMetadata = {
|
|||||||
description: 'View Filter target field',
|
description: 'View Filter target field',
|
||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
@ -36,6 +37,7 @@ const viewFilterMetadata = {
|
|||||||
description: 'View Filter operand',
|
description: 'View Filter operand',
|
||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: 'Contains' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
@ -49,6 +51,7 @@ const viewFilterMetadata = {
|
|||||||
description: 'View Filter value',
|
description: 'View Filter value',
|
||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
@ -62,6 +65,7 @@ const viewFilterMetadata = {
|
|||||||
description: 'View Filter Display Value',
|
description: 'View Filter Display Value',
|
||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
|
|||||||
@ -23,6 +23,7 @@ const viewSortMetadata = {
|
|||||||
description: 'View Sort target field',
|
description: 'View Sort target field',
|
||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
@ -36,6 +37,7 @@ const viewSortMetadata = {
|
|||||||
description: 'View Sort direction',
|
description: 'View Sort direction',
|
||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: 'asc' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
|
|||||||
@ -21,6 +21,7 @@ const viewMetadata = {
|
|||||||
description: 'View name',
|
description: 'View name',
|
||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: FieldMetadataType.TEXT,
|
type: FieldMetadataType.TEXT,
|
||||||
@ -32,6 +33,7 @@ const viewMetadata = {
|
|||||||
description: 'View target object',
|
description: 'View target object',
|
||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: FieldMetadataType.TEXT,
|
type: FieldMetadataType.TEXT,
|
||||||
@ -43,6 +45,7 @@ const viewMetadata = {
|
|||||||
description: 'View type',
|
description: 'View type',
|
||||||
icon: null,
|
icon: null,
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
|
|||||||
@ -23,6 +23,7 @@ const webhookMetadata = {
|
|||||||
description: 'Webhook target url',
|
description: 'Webhook target url',
|
||||||
icon: 'IconLink',
|
icon: 'IconLink',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
@ -36,6 +37,7 @@ const webhookMetadata = {
|
|||||||
description: 'Webhook operation',
|
description: 'Webhook operation',
|
||||||
icon: 'IconCheckbox',
|
icon: 'IconCheckbox',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: '' },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
@ -27,28 +27,17 @@ const workspaceMemberMetadata = {
|
|||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
type: FieldMetadataType.TEXT,
|
type: FieldMetadataType.FULL_NAME,
|
||||||
name: 'lastName',
|
name: 'name',
|
||||||
label: 'Last name',
|
label: 'Name',
|
||||||
targetColumnMap: {
|
targetColumnMap: {
|
||||||
value: 'lastName',
|
firstName: 'nameFirstName',
|
||||||
|
lastName: 'nameLastName',
|
||||||
},
|
},
|
||||||
description: 'Workspace member last name',
|
description: 'Workspace member name',
|
||||||
icon: 'IconCircleUser',
|
icon: 'IconCircleUser',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
},
|
defaultValue: { firstName: '', lastName: '' },
|
||||||
{
|
|
||||||
isCustom: false,
|
|
||||||
isActive: true,
|
|
||||||
type: FieldMetadataType.UUID,
|
|
||||||
name: 'userId',
|
|
||||||
label: 'User Id',
|
|
||||||
targetColumnMap: {
|
|
||||||
value: 'userId',
|
|
||||||
},
|
|
||||||
description: 'Associated User Id',
|
|
||||||
icon: 'IconCircleUsers',
|
|
||||||
isNullable: false,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
@ -88,6 +77,7 @@ const workspaceMemberMetadata = {
|
|||||||
description: 'Preferred language',
|
description: 'Preferred language',
|
||||||
icon: 'IconLanguage',
|
icon: 'IconLanguage',
|
||||||
isNullable: false,
|
isNullable: false,
|
||||||
|
defaultValue: { value: 'fr' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user