Update graphql schema and upgrade yarn lock files (#296)
* Update graphql schema
This commit is contained in:
@ -677,8 +677,6 @@ export type PipelineOrderByWithRelationInput = {
|
||||
|
||||
export type PipelineProgress = {
|
||||
__typename?: 'PipelineProgress';
|
||||
associableId: Scalars['String'];
|
||||
associableType: PipelineProgressableType;
|
||||
createdAt: Scalars['DateTime'];
|
||||
deletedAt?: Maybe<Scalars['DateTime']>;
|
||||
id: Scalars['ID'];
|
||||
@ -686,6 +684,8 @@ export type PipelineProgress = {
|
||||
pipelineId: Scalars['String'];
|
||||
pipelineStage: PipelineStage;
|
||||
pipelineStageId: Scalars['String'];
|
||||
progressableId: Scalars['String'];
|
||||
progressableType: PipelineProgressableType;
|
||||
updatedAt: Scalars['DateTime'];
|
||||
};
|
||||
|
||||
@ -699,12 +699,35 @@ export type PipelineProgressOrderByRelationAggregateInput = {
|
||||
_count?: InputMaybe<SortOrder>;
|
||||
};
|
||||
|
||||
export type PipelineProgressOrderByWithRelationInput = {
|
||||
createdAt?: InputMaybe<SortOrder>;
|
||||
deletedAt?: InputMaybe<SortOrder>;
|
||||
id?: InputMaybe<SortOrder>;
|
||||
pipeline?: InputMaybe<PipelineOrderByWithRelationInput>;
|
||||
pipelineId?: InputMaybe<SortOrder>;
|
||||
pipelineStage?: InputMaybe<PipelineStageOrderByWithRelationInput>;
|
||||
pipelineStageId?: InputMaybe<SortOrder>;
|
||||
progressableId?: InputMaybe<SortOrder>;
|
||||
progressableType?: InputMaybe<SortOrder>;
|
||||
updatedAt?: InputMaybe<SortOrder>;
|
||||
};
|
||||
|
||||
export enum PipelineProgressScalarFieldEnum {
|
||||
CreatedAt = 'createdAt',
|
||||
DeletedAt = 'deletedAt',
|
||||
Id = 'id',
|
||||
PipelineId = 'pipelineId',
|
||||
PipelineStageId = 'pipelineStageId',
|
||||
ProgressableId = 'progressableId',
|
||||
ProgressableType = 'progressableType',
|
||||
UpdatedAt = 'updatedAt',
|
||||
WorkspaceId = 'workspaceId'
|
||||
}
|
||||
|
||||
export type PipelineProgressWhereInput = {
|
||||
AND?: InputMaybe<Array<PipelineProgressWhereInput>>;
|
||||
NOT?: InputMaybe<Array<PipelineProgressWhereInput>>;
|
||||
OR?: InputMaybe<Array<PipelineProgressWhereInput>>;
|
||||
associableId?: InputMaybe<StringFilter>;
|
||||
associableType?: InputMaybe<EnumPipelineProgressableTypeFilter>;
|
||||
createdAt?: InputMaybe<DateTimeFilter>;
|
||||
deletedAt?: InputMaybe<DateTimeNullableFilter>;
|
||||
id?: InputMaybe<StringFilter>;
|
||||
@ -712,9 +735,15 @@ export type PipelineProgressWhereInput = {
|
||||
pipelineId?: InputMaybe<StringFilter>;
|
||||
pipelineStage?: InputMaybe<PipelineStageRelationFilter>;
|
||||
pipelineStageId?: InputMaybe<StringFilter>;
|
||||
progressableId?: InputMaybe<StringFilter>;
|
||||
progressableType?: InputMaybe<EnumPipelineProgressableTypeFilter>;
|
||||
updatedAt?: InputMaybe<DateTimeFilter>;
|
||||
};
|
||||
|
||||
export type PipelineProgressWhereUniqueInput = {
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
};
|
||||
|
||||
export enum PipelineProgressableType {
|
||||
Company = 'Company',
|
||||
Person = 'Person'
|
||||
@ -833,6 +862,7 @@ export type Query = {
|
||||
findManyCompany: Array<Company>;
|
||||
findManyPerson: Array<Person>;
|
||||
findManyPipeline: Array<Pipeline>;
|
||||
findManyPipelineProgress: Array<PipelineProgress>;
|
||||
findManyPipelineStage: Array<PipelineStage>;
|
||||
findManyUser: Array<User>;
|
||||
};
|
||||
@ -878,6 +908,16 @@ export type QueryFindManyPipelineArgs = {
|
||||
};
|
||||
|
||||
|
||||
export type QueryFindManyPipelineProgressArgs = {
|
||||
cursor?: InputMaybe<PipelineProgressWhereUniqueInput>;
|
||||
distinct?: InputMaybe<Array<PipelineProgressScalarFieldEnum>>;
|
||||
orderBy?: InputMaybe<Array<PipelineProgressOrderByWithRelationInput>>;
|
||||
skip?: InputMaybe<Scalars['Int']>;
|
||||
take?: InputMaybe<Scalars['Int']>;
|
||||
where?: InputMaybe<PipelineProgressWhereInput>;
|
||||
};
|
||||
|
||||
|
||||
export type QueryFindManyPipelineStageArgs = {
|
||||
cursor?: InputMaybe<PipelineStageWhereUniqueInput>;
|
||||
distinct?: InputMaybe<Array<PipelineStageScalarFieldEnum>>;
|
||||
@ -1064,6 +1104,7 @@ export type Workspace = {
|
||||
id: Scalars['ID'];
|
||||
logo?: Maybe<Scalars['String']>;
|
||||
people?: Maybe<Array<Person>>;
|
||||
pipelineProgresses?: Maybe<Array<PipelineProgress>>;
|
||||
pipelineStages?: Maybe<Array<PipelineStage>>;
|
||||
pipelines?: Maybe<Array<Pipeline>>;
|
||||
updatedAt: Scalars['DateTime'];
|
||||
@ -1162,7 +1203,7 @@ export type DeleteCompaniesMutation = { __typename?: 'Mutation', deleteManyCompa
|
||||
export type GetPipelinesQueryVariables = Exact<{ [key: string]: never; }>;
|
||||
|
||||
|
||||
export type GetPipelinesQuery = { __typename?: 'Query', findManyPipeline: Array<{ __typename?: 'Pipeline', id: string, name: string, pipelineStages?: Array<{ __typename?: 'PipelineStage', name: string, color: string, pipelineProgresses?: Array<{ __typename?: 'PipelineProgress', id: string, associableType: PipelineProgressableType, associableId: string }> | null }> | null }> };
|
||||
export type GetPipelinesQuery = { __typename?: 'Query', findManyPipeline: Array<{ __typename?: 'Pipeline', id: string, name: string, pipelineStages?: Array<{ __typename?: 'PipelineStage', name: string, color: string, pipelineProgresses?: Array<{ __typename?: 'PipelineProgress', id: string, progressableType: PipelineProgressableType, progressableId: string }> | null }> | null }> };
|
||||
|
||||
export type GetPeopleQueryVariables = Exact<{
|
||||
orderBy?: InputMaybe<Array<PersonOrderByWithRelationInput> | PersonOrderByWithRelationInput>;
|
||||
@ -1638,8 +1679,8 @@ export const GetPipelinesDocument = gql`
|
||||
color
|
||||
pipelineProgresses {
|
||||
id
|
||||
associableType
|
||||
associableId
|
||||
progressableType
|
||||
progressableId
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 =
|
||||
|
||||
@ -10,8 +10,8 @@ export const GET_PIPELINES = gql`
|
||||
color
|
||||
pipelineProgresses {
|
||||
id
|
||||
associableType
|
||||
associableId
|
||||
progressableType
|
||||
progressableId
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -7065,9 +7065,9 @@ chownr@^2.0.0:
|
||||
integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==
|
||||
|
||||
chromatic@^6.18.0:
|
||||
version "6.19.5"
|
||||
resolved "https://registry.yarnpkg.com/chromatic/-/chromatic-6.19.5.tgz#608835d6dfb359604bea0d222dbf961fc86adaad"
|
||||
integrity sha512-IjBWI7PYQpDWoAs5hjVR/af1sgl+sH+zMV1u9wyiO6MORUhehoibS15J1Amh3Rg6nCOc0VA0DnWPn/lEeiOeTw==
|
||||
version "6.19.6"
|
||||
resolved "https://registry.yarnpkg.com/chromatic/-/chromatic-6.19.6.tgz#c94e761d32ff95cdcf17ca34e1db229bccdb42a6"
|
||||
integrity sha512-QbnrfIO4dJt7L3XEW+4s4vhZAzMGsnirNXWxcHwAwOLZGy/PTteGzuVpFKE8N+dT1AhF7VL6fgZz/1FyZ1sE6w==
|
||||
|
||||
chrome-trace-event@^1.0.2:
|
||||
version "1.0.3"
|
||||
@ -14090,17 +14090,17 @@ react-remove-scroll@2.5.4:
|
||||
use-sidecar "^1.1.2"
|
||||
|
||||
react-router-dom@^6.4.4:
|
||||
version "6.12.1"
|
||||
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.12.1.tgz#601fe7eb493071a33dc7573a20b920324a834606"
|
||||
integrity sha512-POIZN9UDKWwEDga054LvYr2KnK8V+0HR4Ny4Bwv8V7/FZCPxJgsCjYxXGxqxzHs7VBxMKZfgvtKhafuJkJSPGA==
|
||||
version "6.13.0"
|
||||
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.13.0.tgz#6651f456bb2af42ef14f6880123b1f575539e81f"
|
||||
integrity sha512-6Nqoqd7fgwxxVGdbiMHTpDHCYPq62d7Wk1Of7B82vH7ZPwwsRaIa22zRZKPPg413R5REVNiyuQPKDG1bubcOFA==
|
||||
dependencies:
|
||||
"@remix-run/router" "1.6.3"
|
||||
react-router "6.12.1"
|
||||
react-router "6.13.0"
|
||||
|
||||
react-router@6.12.1:
|
||||
version "6.12.1"
|
||||
resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.12.1.tgz#9e4126aa1139ec6b5d347e19576d5e940cd46362"
|
||||
integrity sha512-evd/GrKJOeOypD0JB9e1r7pQh2gWCsTbUfq059Wm1AFT/K2MNZuDo19lFtAgIhlBrp0MmpgpqtvZC7LPAs7vSw==
|
||||
react-router@6.13.0:
|
||||
version "6.13.0"
|
||||
resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.13.0.tgz#7e4427a271dae0cafbdb88c56ccbd9b1434ee93f"
|
||||
integrity sha512-Si6KnfEnJw7gUQkNa70dlpI1bul46FuSxX5t5WwlUBxE25DAz2BjVkwaK8Y2s242bQrZPXCpmwLPtIO5pv4tXg==
|
||||
dependencies:
|
||||
"@remix-run/router" "1.6.3"
|
||||
|
||||
@ -14759,18 +14759,18 @@ schema-utils@^2.6.5:
|
||||
ajv-keywords "^3.5.2"
|
||||
|
||||
schema-utils@^3.0.0, schema-utils@^3.1.1, schema-utils@^3.1.2:
|
||||
version "3.2.0"
|
||||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.2.0.tgz#7dff4881064a4f22c09f0c6a1457feb820fd0636"
|
||||
integrity sha512-0zTyLGyDJYd/MBxG1AhJkKa6fpEBds4OQO2ut0w7OYG+ZGhGea09lijvzsqegYSik88zc7cUtIlnnO+/BvD6gQ==
|
||||
version "3.3.0"
|
||||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.3.0.tgz#f50a88877c3c01652a15b622ae9e9795df7a60fe"
|
||||
integrity sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==
|
||||
dependencies:
|
||||
"@types/json-schema" "^7.0.8"
|
||||
ajv "^6.12.5"
|
||||
ajv-keywords "^3.5.2"
|
||||
|
||||
schema-utils@^4.0.0:
|
||||
version "4.1.0"
|
||||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.1.0.tgz#4cff1e434c12ed39502378b9a3e24787b37df41d"
|
||||
integrity sha512-Jw+GZVbP5IggB2WAn6UHI02LBwGmsIeYN/lNbSMZyDziQ7jmtAUrqKqDja+W89YHVs+KL/3IkIMltAklqB1vAw==
|
||||
version "4.2.0"
|
||||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.2.0.tgz#70d7c93e153a273a805801882ebd3bff20d89c8b"
|
||||
integrity sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==
|
||||
dependencies:
|
||||
"@types/json-schema" "^7.0.9"
|
||||
ajv "^8.9.0"
|
||||
|
||||
Reference in New Issue
Block a user