Update graphql schema and upgrade yarn lock files (#296)

* Update graphql schema
This commit is contained in:
Charles Bochet
2023-06-14 18:30:24 +02:00
committed by GitHub
parent d5817608a7
commit 2a1804c153
99 changed files with 75 additions and 2802 deletions

View File

@ -29,21 +29,22 @@ export const useBoard = () => {
colorCode: pipelineStage.color,
itemKeys:
pipelineStage.pipelineProgresses?.map(
(item) => `item-${item.associableId}` as BoardItemKey,
(item) => `item-${item.progressableId}` as BoardItemKey,
) || [],
})) || [];
const pipelineEntityIds = pipelineStages?.reduce(
(acc, pipelineStage) => [
...acc,
...(pipelineStage.pipelineProgresses?.map((item) => item.associableId) ||
[]),
...(pipelineStage.pipelineProgresses?.map(
(item) => item.progressableId,
) || []),
],
[] as string[],
);
const pipelineEntityType: 'Person' | 'Company' | undefined =
pipelineStages?.[0].pipelineProgresses?.[0].associableType;
pipelineStages?.[0].pipelineProgresses?.[0].progressableType;
console.log(pipelineEntityType);
const query =

View File

@ -10,8 +10,8 @@ export const GET_PIPELINES = gql`
color
pipelineProgresses {
id
associableType
associableId
progressableType
progressableId
}
}
}