Delete unused objects (#7823)
Fixes #7113 --------- Co-authored-by: Weiko <corentin@twenty.com>
This commit is contained in:
@ -17,7 +17,7 @@ export const PERSON_FRAGMENT_WITH_DEPTH_ZERO_RELATIONS = `
|
||||
id
|
||||
intro
|
||||
jobTitle
|
||||
linkedinLink{
|
||||
linkedinLink {
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
@ -49,27 +49,10 @@ export const PERSON_FRAGMENT_WITH_DEPTH_ZERO_RELATIONS = `
|
||||
|
||||
export const PERSON_FRAGMENT_WITH_DEPTH_ONE_RELATIONS = `
|
||||
__typename
|
||||
activityTargets {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
activityId
|
||||
companyId
|
||||
createdAt
|
||||
deletedAt
|
||||
id
|
||||
opportunityId
|
||||
personId
|
||||
rocketId
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
attachments {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
activityId
|
||||
authorId
|
||||
companyId
|
||||
createdAt
|
||||
@ -190,6 +173,8 @@ export const PERSON_FRAGMENT_WITH_DEPTH_ONE_RELATIONS = `
|
||||
updatedAt
|
||||
viewId
|
||||
workflowId
|
||||
workflowRunId
|
||||
workflowVersionId
|
||||
workspaceMemberId
|
||||
}
|
||||
}
|
||||
@ -308,6 +293,9 @@ export const PERSON_FRAGMENT_WITH_DEPTH_ONE_RELATIONS = `
|
||||
rocketId
|
||||
taskId
|
||||
updatedAt
|
||||
workflowId
|
||||
workflowRunId
|
||||
workflowVersionId
|
||||
workspaceMemberId
|
||||
}
|
||||
}
|
||||
|
||||
@ -15,5 +15,7 @@ export const variables = {
|
||||
};
|
||||
|
||||
export const responseData = {
|
||||
__typename: 'Person',
|
||||
deletedAt: '2024-02-14T09:45:00Z',
|
||||
id: 'a7286b9a-c039-4a89-9567-2dfa7953cda9',
|
||||
};
|
||||
|
||||
@ -99,20 +99,6 @@ export const query = gql`
|
||||
}
|
||||
city
|
||||
email
|
||||
activityTargets {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
id
|
||||
updatedAt
|
||||
createdAt
|
||||
personId
|
||||
activityId
|
||||
companyId
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
jobTitle
|
||||
favorites {
|
||||
edges {
|
||||
@ -137,7 +123,6 @@ export const query = gql`
|
||||
createdAt
|
||||
name
|
||||
personId
|
||||
activityId
|
||||
companyId
|
||||
id
|
||||
authorId
|
||||
|
||||
@ -8,8 +8,8 @@ const expectedQueryTemplate = `
|
||||
mutation DeleteOnePerson($idToDelete: ID!) {
|
||||
deletePerson(id: $idToDelete) {
|
||||
__typename
|
||||
deletedAt
|
||||
id
|
||||
deletedAt
|
||||
}
|
||||
}
|
||||
`.replace(/\s/g, '');
|
||||
|
||||
@ -47,22 +47,6 @@ const mocks: MockedResponse[] = [
|
||||
userId
|
||||
}
|
||||
accountOwnerId
|
||||
activityTargets {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
activityId
|
||||
companyId
|
||||
createdAt
|
||||
deletedAt
|
||||
id
|
||||
opportunityId
|
||||
personId
|
||||
rocketId
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
address {
|
||||
addressStreet1
|
||||
addressStreet2
|
||||
@ -81,7 +65,6 @@ const mocks: MockedResponse[] = [
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
activityId
|
||||
authorId
|
||||
companyId
|
||||
createdAt
|
||||
@ -129,6 +112,8 @@ const mocks: MockedResponse[] = [
|
||||
updatedAt
|
||||
viewId
|
||||
workflowId
|
||||
workflowRunId
|
||||
workflowVersionId
|
||||
workspaceMemberId
|
||||
}
|
||||
}
|
||||
@ -278,6 +263,9 @@ const mocks: MockedResponse[] = [
|
||||
rocketId
|
||||
taskId
|
||||
updatedAt
|
||||
workflowId
|
||||
workflowRunId
|
||||
workflowVersionId
|
||||
workspaceMemberId
|
||||
}
|
||||
}
|
||||
|
||||
@ -46,22 +46,6 @@ const companyMocks = [
|
||||
userId
|
||||
}
|
||||
accountOwnerId
|
||||
activityTargets {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
activityId
|
||||
companyId
|
||||
createdAt
|
||||
deletedAt
|
||||
id
|
||||
opportunityId
|
||||
personId
|
||||
rocketId
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
address {
|
||||
addressStreet1
|
||||
addressStreet2
|
||||
@ -80,7 +64,6 @@ const companyMocks = [
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
activityId
|
||||
authorId
|
||||
companyId
|
||||
createdAt
|
||||
|
||||
Reference in New Issue
Block a user