Hide favorites,MessageParticipant and calendareventattendees from datamodel (#4392)

hide favorites, MessageParticipant and calendareventattendees from datamodel
This commit is contained in:
brendanlaschke 2024-03-12 11:47:27 +01:00 committed by GitHub
parent a122a7f01e
commit 1b485c2984
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 13 additions and 6 deletions

View File

@ -819,7 +819,7 @@ export const getObjectMetadataItemsMock = () => {
icon: 'IconHeart',
isCustom: false,
isActive: true,
isSystem: false,
isSystem: true,
isNullable: true,
createdAt: '2023-11-30T11:13:15.331Z',
updatedAt: '2023-11-30T11:13:15.331Z',
@ -1065,7 +1065,7 @@ export const getObjectMetadataItemsMock = () => {
icon: 'IconHeart',
isCustom: false,
isActive: true,
isSystem: false,
isSystem: true,
isNullable: true,
createdAt: '2023-11-30T11:13:15.392Z',
updatedAt: '2023-11-30T11:13:15.392Z',
@ -3011,7 +3011,7 @@ export const getObjectMetadataItemsMock = () => {
icon: 'IconHeart',
isCustom: false,
isActive: true,
isSystem: false,
isSystem: true,
isNullable: true,
createdAt: '2023-11-30T11:13:15.292Z',
updatedAt: '2023-11-30T11:13:15.292Z',

View File

@ -62,7 +62,7 @@ export const mockedPeopleMetadata = {
icon: 'IconHeart',
isCustom: false,
isActive: true,
isSystem: false,
isSystem: true,
isNullable: true,
createdAt: '2023-12-15T15:29:39.070Z',
updatedAt: '2023-12-15T15:29:39.070Z',
@ -687,7 +687,7 @@ export const mockedCompaniesMetadata = {
icon: 'IconHeart',
isCustom: false,
isActive: true,
isSystem: false,
isSystem: true,
isNullable: true,
createdAt: '2023-12-15T15:29:39.070Z',
updatedAt: '2023-12-15T15:29:39.070Z',

View File

@ -362,7 +362,7 @@ export const mockObjectMetadataItem: ObjectMetadataItem = {
icon: 'IconHeart',
isCustom: false,
isActive: true,
isSystem: false,
isSystem: true,
isNullable: true,
createdAt: '2023-12-19T12:15:28.459Z',
updatedAt: '2023-12-19T12:15:28.459Z',

View File

@ -777,6 +777,7 @@ export class ObjectMetadataService extends TypeOrmQueryService<ObjectMetadataEnt
workspaceId: workspaceId,
isCustom: false,
isActive: true,
isSystem: true,
type: FieldMetadataType.RELATION,
name: 'favorites',
label: 'Favorites',

View File

@ -62,6 +62,7 @@ export class CustomObjectMetadata extends BaseObjectMetadata {
onDelete: RelationOnDeleteAction.CASCADE,
})
@IsNullable()
@IsSystem()
favorites: FavoriteObjectMetadata[];
@FieldMetadata({

View File

@ -172,6 +172,7 @@ export class CompanyObjectMetadata extends BaseObjectMetadata {
onDelete: RelationOnDeleteAction.CASCADE,
})
@IsNullable()
@IsSystem()
favorites: FavoriteObjectMetadata[];
@FieldMetadata({

View File

@ -134,6 +134,7 @@ export class OpportunityObjectMetadata extends BaseObjectMetadata {
onDelete: RelationOnDeleteAction.CASCADE,
})
@IsNullable()
@IsSystem()
favorites: FavoriteObjectMetadata[];
@FieldMetadata({

View File

@ -154,6 +154,7 @@ export class PersonObjectMetadata extends BaseObjectMetadata {
inverseSideTarget: () => FavoriteObjectMetadata,
onDelete: RelationOnDeleteAction.CASCADE,
})
@IsSystem()
favorites: FavoriteObjectMetadata[];
@FieldMetadata({
@ -180,6 +181,7 @@ export class PersonObjectMetadata extends BaseObjectMetadata {
inverseSideTarget: () => MessageParticipantObjectMetadata,
inverseSideFieldKey: 'person',
})
@IsSystem()
messageParticipants: MessageParticipantObjectMetadata[];
@FieldMetadata({
@ -195,5 +197,6 @@ export class PersonObjectMetadata extends BaseObjectMetadata {
@Gate({
featureFlag: 'IS_CALENDAR_ENABLED',
})
@IsSystem()
calendarEventAttendees: CalendarEventAttendeeObjectMetadata[];
}