Add KanbanFieldMetadataId on View standard object (#4604)
* Add KanbanFieldMetadataId on View standard object * Deprecate Pipeline step * Fix * Use Constants instead of raw ids * Fix * Fix query runner * Fix according to review * Fix tests * Fix tests * Fix tests
This commit is contained in:
@ -1184,220 +1184,6 @@ export const mockedCompaniesMetadata = {
|
||||
},
|
||||
} as ObjectEdge;
|
||||
|
||||
export const mockedPipelineStepsMetadata = {
|
||||
__typename: 'objectEdge',
|
||||
node: {
|
||||
__typename: 'object',
|
||||
id: 'afa12866-0de4-4f97-97fa-cd8a7c953037',
|
||||
dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08',
|
||||
nameSingular: 'pipelineStep',
|
||||
namePlural: 'pipelineSteps',
|
||||
labelSingular: 'Pipeline Step',
|
||||
labelPlural: 'Pipeline Steps',
|
||||
description: 'A pipeline step',
|
||||
icon: 'IconLayoutKanban',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: true,
|
||||
createdAt: '2023-12-15T15:29:39.070Z',
|
||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||
labelIdentifierFieldMetadataId: null,
|
||||
imageIdentifierFieldMetadataId: null,
|
||||
fields: {
|
||||
__typename: 'ObjectFieldsConnection',
|
||||
edges: [
|
||||
{
|
||||
__typename: 'fieldEdge',
|
||||
node: {
|
||||
__typename: 'field',
|
||||
id: '202efca6-9820-4e4a-9a27-f362dc5b46ed',
|
||||
type: FieldMetadataType.Uuid,
|
||||
name: 'id',
|
||||
label: 'Id',
|
||||
description: null,
|
||||
icon: null,
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: true,
|
||||
isNullable: false,
|
||||
createdAt: '2023-12-15T15:29:39.070Z',
|
||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
options: [],
|
||||
defaultValue: {
|
||||
type: FieldMetadataType.Uuid,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
__typename: 'fieldEdge',
|
||||
node: {
|
||||
__typename: 'field',
|
||||
id: 'c9b9d516-10d2-4eca-94ce-a872547f429f',
|
||||
type: FieldMetadataType.Text,
|
||||
name: 'color',
|
||||
label: 'Color',
|
||||
description: 'Pipeline Step color',
|
||||
icon: 'IconColorSwatch',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: true,
|
||||
isNullable: true,
|
||||
createdAt: '2023-12-15T15:29:39.070Z',
|
||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
options: [],
|
||||
defaultValue: {
|
||||
value: '',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
__typename: 'fieldEdge',
|
||||
node: {
|
||||
__typename: 'field',
|
||||
id: '7928241f-6fe9-4ab2-84c6-7e84c5bea05f',
|
||||
type: FieldMetadataType.DateTime,
|
||||
name: 'updatedAt',
|
||||
label: 'Update date',
|
||||
description: null,
|
||||
icon: 'IconCalendar',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: true,
|
||||
isNullable: false,
|
||||
createdAt: '2023-12-15T15:29:39.070Z',
|
||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
options: [],
|
||||
defaultValue: {
|
||||
type: 'now',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
__typename: 'fieldEdge',
|
||||
node: {
|
||||
__typename: 'field',
|
||||
id: 'ad3e919f-4258-4e21-8caf-bf122f17ca5c',
|
||||
type: FieldMetadataType.Relation,
|
||||
name: 'opportunities',
|
||||
label: 'Opportunities',
|
||||
description: 'Opportunities linked to the step.',
|
||||
icon: 'IconTargetArrow',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: true,
|
||||
isNullable: true,
|
||||
createdAt: '2023-12-15T15:29:39.070Z',
|
||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||
fromRelationMetadata: {
|
||||
__typename: 'relation',
|
||||
id: '7b0474c4-d82d-4c1d-96de-c6728b53339a',
|
||||
relationType: RelationMetadataType.OneToMany,
|
||||
toObjectMetadata: {
|
||||
__typename: 'object',
|
||||
id: '941ad274-2d26-4e90-94d9-5e446aa5b91e',
|
||||
dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08',
|
||||
nameSingular: 'opportunity',
|
||||
namePlural: 'opportunities',
|
||||
isSystem: true,
|
||||
},
|
||||
toFieldMetadataId: '4756a816-8a18-433a-9414-c756db4727e8',
|
||||
},
|
||||
toRelationMetadata: null,
|
||||
options: [],
|
||||
defaultValue: null,
|
||||
},
|
||||
},
|
||||
{
|
||||
__typename: 'fieldEdge',
|
||||
node: {
|
||||
__typename: 'field',
|
||||
id: 'c26ba58c-5629-4a6b-ae7f-5c06d3045a9b',
|
||||
type: FieldMetadataType.DateTime,
|
||||
name: 'createdAt',
|
||||
label: 'Creation date',
|
||||
description: null,
|
||||
icon: 'IconCalendar',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: true,
|
||||
isNullable: false,
|
||||
createdAt: '2023-12-15T15:29:39.070Z',
|
||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
options: [],
|
||||
defaultValue: {
|
||||
type: 'now',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
__typename: 'fieldEdge',
|
||||
node: {
|
||||
__typename: 'field',
|
||||
id: '4f383c05-3f9b-433a-8617-20ed3861e490',
|
||||
type: FieldMetadataType.Text,
|
||||
name: 'name',
|
||||
label: 'Name',
|
||||
description: 'Pipeline Step name',
|
||||
icon: 'IconCurrencyDollar',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: true,
|
||||
isNullable: true,
|
||||
createdAt: '2023-12-15T15:29:39.070Z',
|
||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
options: [],
|
||||
defaultValue: {
|
||||
value: '',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
__typename: 'fieldEdge',
|
||||
node: {
|
||||
__typename: 'field',
|
||||
id: '8c712fbc-306f-4534-86c1-caae09b840a2',
|
||||
type: FieldMetadataType.Number,
|
||||
name: 'position',
|
||||
label: 'Position',
|
||||
description: 'Pipeline Step position',
|
||||
icon: 'IconHierarchy2',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: true,
|
||||
isNullable: true,
|
||||
createdAt: '2023-12-15T15:29:39.070Z',
|
||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
options: [],
|
||||
defaultValue: {
|
||||
value: 0,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
pageInfo: {
|
||||
__typename: 'PageInfo',
|
||||
hasNextPage: false,
|
||||
hasPreviousPage: false,
|
||||
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
|
||||
endCursor: 'YXJyYXljb25uZWN0aW9uOjY=',
|
||||
},
|
||||
totalCount: 7,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const mockedCalendarEventsMetadata = {
|
||||
__typename: 'objectEdge',
|
||||
node: {
|
||||
@ -4837,63 +4623,6 @@ export const mockedOpportunitiesMetadata = {
|
||||
defaultValue: null,
|
||||
},
|
||||
},
|
||||
{
|
||||
__typename: 'fieldEdge',
|
||||
node: {
|
||||
__typename: 'field',
|
||||
id: '480e430d-ec7b-4297-93fd-0c6463b9fad3',
|
||||
type: FieldMetadataType.Uuid,
|
||||
name: 'pipelineStepId',
|
||||
label: 'Pipeline Step id (foreign key)',
|
||||
description: 'Opportunity pipeline step id foreign key',
|
||||
icon: 'IconKanban',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: true,
|
||||
isNullable: true,
|
||||
createdAt: '2023-12-15T15:29:39.070Z',
|
||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
options: [],
|
||||
defaultValue: null,
|
||||
},
|
||||
},
|
||||
{
|
||||
__typename: 'fieldEdge',
|
||||
node: {
|
||||
__typename: 'field',
|
||||
id: '4756a816-8a18-433a-9414-c756db4727e8',
|
||||
type: FieldMetadataType.Relation,
|
||||
name: 'pipelineStep',
|
||||
label: 'Pipeline Step',
|
||||
description: 'Opportunity pipeline step',
|
||||
icon: 'IconKanban',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: false,
|
||||
isNullable: true,
|
||||
createdAt: '2023-12-15T15:29:39.070Z',
|
||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||
fromRelationMetadata: null,
|
||||
options: [],
|
||||
toRelationMetadata: {
|
||||
__typename: 'relation',
|
||||
id: '7b0474c4-d82d-4c1d-96de-c6728b53339a',
|
||||
relationType: RelationMetadataType.OneToMany,
|
||||
fromObjectMetadata: {
|
||||
__typename: 'object',
|
||||
id: 'afa12866-0de4-4f97-97fa-cd8a7c953037',
|
||||
dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08',
|
||||
nameSingular: 'pipelineStep',
|
||||
namePlural: 'pipelineSteps',
|
||||
isSystem: true,
|
||||
},
|
||||
fromFieldMetadataId: 'ad3e919f-4258-4e21-8caf-bf122f17ca5c',
|
||||
},
|
||||
defaultValue: null,
|
||||
},
|
||||
},
|
||||
{
|
||||
__typename: 'fieldEdge',
|
||||
node: {
|
||||
@ -7501,7 +7230,6 @@ export const mockedObjectMetadataItems = {
|
||||
mockedWebhooksMetadata,
|
||||
mockedPeopleMetadata,
|
||||
mockedCompaniesMetadata,
|
||||
mockedPipelineStepsMetadata,
|
||||
mockedActivityTargetsMetadata,
|
||||
mockedActivitiesMetadata,
|
||||
mockedFavoritesMetadata,
|
||||
|
||||
Reference in New Issue
Block a user