Hide favorites,MessageParticipant and calendareventattendees from datamodel (#4392)
hide favorites, MessageParticipant and calendareventattendees from datamodel
This commit is contained in:
@ -819,7 +819,7 @@ export const getObjectMetadataItemsMock = () => {
|
|||||||
icon: 'IconHeart',
|
icon: 'IconHeart',
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
isSystem: false,
|
isSystem: true,
|
||||||
isNullable: true,
|
isNullable: true,
|
||||||
createdAt: '2023-11-30T11:13:15.331Z',
|
createdAt: '2023-11-30T11:13:15.331Z',
|
||||||
updatedAt: '2023-11-30T11:13:15.331Z',
|
updatedAt: '2023-11-30T11:13:15.331Z',
|
||||||
@ -1065,7 +1065,7 @@ export const getObjectMetadataItemsMock = () => {
|
|||||||
icon: 'IconHeart',
|
icon: 'IconHeart',
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
isSystem: false,
|
isSystem: true,
|
||||||
isNullable: true,
|
isNullable: true,
|
||||||
createdAt: '2023-11-30T11:13:15.392Z',
|
createdAt: '2023-11-30T11:13:15.392Z',
|
||||||
updatedAt: '2023-11-30T11:13:15.392Z',
|
updatedAt: '2023-11-30T11:13:15.392Z',
|
||||||
@ -3011,7 +3011,7 @@ export const getObjectMetadataItemsMock = () => {
|
|||||||
icon: 'IconHeart',
|
icon: 'IconHeart',
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
isSystem: false,
|
isSystem: true,
|
||||||
isNullable: true,
|
isNullable: true,
|
||||||
createdAt: '2023-11-30T11:13:15.292Z',
|
createdAt: '2023-11-30T11:13:15.292Z',
|
||||||
updatedAt: '2023-11-30T11:13:15.292Z',
|
updatedAt: '2023-11-30T11:13:15.292Z',
|
||||||
|
|||||||
@ -62,7 +62,7 @@ export const mockedPeopleMetadata = {
|
|||||||
icon: 'IconHeart',
|
icon: 'IconHeart',
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
isSystem: false,
|
isSystem: true,
|
||||||
isNullable: true,
|
isNullable: true,
|
||||||
createdAt: '2023-12-15T15:29:39.070Z',
|
createdAt: '2023-12-15T15:29:39.070Z',
|
||||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||||
@ -687,7 +687,7 @@ export const mockedCompaniesMetadata = {
|
|||||||
icon: 'IconHeart',
|
icon: 'IconHeart',
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
isSystem: false,
|
isSystem: true,
|
||||||
isNullable: true,
|
isNullable: true,
|
||||||
createdAt: '2023-12-15T15:29:39.070Z',
|
createdAt: '2023-12-15T15:29:39.070Z',
|
||||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||||
|
|||||||
@ -362,7 +362,7 @@ export const mockObjectMetadataItem: ObjectMetadataItem = {
|
|||||||
icon: 'IconHeart',
|
icon: 'IconHeart',
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
isSystem: false,
|
isSystem: true,
|
||||||
isNullable: true,
|
isNullable: true,
|
||||||
createdAt: '2023-12-19T12:15:28.459Z',
|
createdAt: '2023-12-19T12:15:28.459Z',
|
||||||
updatedAt: '2023-12-19T12:15:28.459Z',
|
updatedAt: '2023-12-19T12:15:28.459Z',
|
||||||
|
|||||||
@ -777,6 +777,7 @@ export class ObjectMetadataService extends TypeOrmQueryService<ObjectMetadataEnt
|
|||||||
workspaceId: workspaceId,
|
workspaceId: workspaceId,
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
|
isSystem: true,
|
||||||
type: FieldMetadataType.RELATION,
|
type: FieldMetadataType.RELATION,
|
||||||
name: 'favorites',
|
name: 'favorites',
|
||||||
label: 'Favorites',
|
label: 'Favorites',
|
||||||
|
|||||||
@ -62,6 +62,7 @@ export class CustomObjectMetadata extends BaseObjectMetadata {
|
|||||||
onDelete: RelationOnDeleteAction.CASCADE,
|
onDelete: RelationOnDeleteAction.CASCADE,
|
||||||
})
|
})
|
||||||
@IsNullable()
|
@IsNullable()
|
||||||
|
@IsSystem()
|
||||||
favorites: FavoriteObjectMetadata[];
|
favorites: FavoriteObjectMetadata[];
|
||||||
|
|
||||||
@FieldMetadata({
|
@FieldMetadata({
|
||||||
|
|||||||
@ -172,6 +172,7 @@ export class CompanyObjectMetadata extends BaseObjectMetadata {
|
|||||||
onDelete: RelationOnDeleteAction.CASCADE,
|
onDelete: RelationOnDeleteAction.CASCADE,
|
||||||
})
|
})
|
||||||
@IsNullable()
|
@IsNullable()
|
||||||
|
@IsSystem()
|
||||||
favorites: FavoriteObjectMetadata[];
|
favorites: FavoriteObjectMetadata[];
|
||||||
|
|
||||||
@FieldMetadata({
|
@FieldMetadata({
|
||||||
|
|||||||
@ -134,6 +134,7 @@ export class OpportunityObjectMetadata extends BaseObjectMetadata {
|
|||||||
onDelete: RelationOnDeleteAction.CASCADE,
|
onDelete: RelationOnDeleteAction.CASCADE,
|
||||||
})
|
})
|
||||||
@IsNullable()
|
@IsNullable()
|
||||||
|
@IsSystem()
|
||||||
favorites: FavoriteObjectMetadata[];
|
favorites: FavoriteObjectMetadata[];
|
||||||
|
|
||||||
@FieldMetadata({
|
@FieldMetadata({
|
||||||
|
|||||||
@ -154,6 +154,7 @@ export class PersonObjectMetadata extends BaseObjectMetadata {
|
|||||||
inverseSideTarget: () => FavoriteObjectMetadata,
|
inverseSideTarget: () => FavoriteObjectMetadata,
|
||||||
onDelete: RelationOnDeleteAction.CASCADE,
|
onDelete: RelationOnDeleteAction.CASCADE,
|
||||||
})
|
})
|
||||||
|
@IsSystem()
|
||||||
favorites: FavoriteObjectMetadata[];
|
favorites: FavoriteObjectMetadata[];
|
||||||
|
|
||||||
@FieldMetadata({
|
@FieldMetadata({
|
||||||
@ -180,6 +181,7 @@ export class PersonObjectMetadata extends BaseObjectMetadata {
|
|||||||
inverseSideTarget: () => MessageParticipantObjectMetadata,
|
inverseSideTarget: () => MessageParticipantObjectMetadata,
|
||||||
inverseSideFieldKey: 'person',
|
inverseSideFieldKey: 'person',
|
||||||
})
|
})
|
||||||
|
@IsSystem()
|
||||||
messageParticipants: MessageParticipantObjectMetadata[];
|
messageParticipants: MessageParticipantObjectMetadata[];
|
||||||
|
|
||||||
@FieldMetadata({
|
@FieldMetadata({
|
||||||
@ -195,5 +197,6 @@ export class PersonObjectMetadata extends BaseObjectMetadata {
|
|||||||
@Gate({
|
@Gate({
|
||||||
featureFlag: 'IS_CALENDAR_ENABLED',
|
featureFlag: 'IS_CALENDAR_ENABLED',
|
||||||
})
|
})
|
||||||
|
@IsSystem()
|
||||||
calendarEventAttendees: CalendarEventAttendeeObjectMetadata[];
|
calendarEventAttendees: CalendarEventAttendeeObjectMetadata[];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user