Fix ID type being used in place of UUID in graphql and metadata queries (#4905)
We have recently discovered that we were using ID type in place of UUID type in many place in the code. We have merged #4895 but this introduced bugs as we forgot to replace it everywhere
This commit is contained in:
@ -22,10 +22,10 @@ const documents = {
|
|||||||
"\n mutation CreateOneObjectMetadataItem($input: CreateOneObjectInput!) {\n createOneObject(input: $input) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n": types.CreateOneObjectMetadataItemDocument,
|
"\n mutation CreateOneObjectMetadataItem($input: CreateOneObjectInput!) {\n createOneObject(input: $input) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n": types.CreateOneObjectMetadataItemDocument,
|
||||||
"\n mutation CreateOneFieldMetadataItem($input: CreateOneFieldMetadataInput!) {\n createOneField(input: $input) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n defaultValue\n options\n }\n }\n": types.CreateOneFieldMetadataItemDocument,
|
"\n mutation CreateOneFieldMetadataItem($input: CreateOneFieldMetadataInput!) {\n createOneField(input: $input) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n defaultValue\n options\n }\n }\n": types.CreateOneFieldMetadataItemDocument,
|
||||||
"\n mutation CreateOneRelationMetadata($input: CreateOneRelationInput!) {\n createOneRelation(input: $input) {\n id\n relationType\n fromObjectMetadataId\n toObjectMetadataId\n fromFieldMetadataId\n toFieldMetadataId\n createdAt\n updatedAt\n }\n }\n": types.CreateOneRelationMetadataDocument,
|
"\n mutation CreateOneRelationMetadata($input: CreateOneRelationInput!) {\n createOneRelation(input: $input) {\n id\n relationType\n fromObjectMetadataId\n toObjectMetadataId\n fromFieldMetadataId\n toFieldMetadataId\n createdAt\n updatedAt\n }\n }\n": types.CreateOneRelationMetadataDocument,
|
||||||
"\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: ID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n }\n }\n": types.UpdateOneFieldMetadataItemDocument,
|
"\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n }\n }\n": types.UpdateOneFieldMetadataItemDocument,
|
||||||
"\n mutation UpdateOneObjectMetadataItem(\n $idToUpdate: ID!\n $updatePayload: UpdateObjectInput!\n ) {\n updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n": types.UpdateOneObjectMetadataItemDocument,
|
"\n mutation UpdateOneObjectMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateObjectInput!\n ) {\n updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n": types.UpdateOneObjectMetadataItemDocument,
|
||||||
"\n mutation DeleteOneObjectMetadataItem($idToDelete: ID!) {\n deleteOneObject(input: { id: $idToDelete }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n": types.DeleteOneObjectMetadataItemDocument,
|
"\n mutation DeleteOneObjectMetadataItem($idToDelete: UUID!) {\n deleteOneObject(input: { id: $idToDelete }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n": types.DeleteOneObjectMetadataItemDocument,
|
||||||
"\n mutation DeleteOneFieldMetadataItem($idToDelete: ID!) {\n deleteOneField(input: { id: $idToDelete }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n }\n }\n": types.DeleteOneFieldMetadataItemDocument,
|
"\n mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) {\n deleteOneField(input: { id: $idToDelete }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n }\n }\n": types.DeleteOneFieldMetadataItemDocument,
|
||||||
"\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n createdAt\n updatedAt\n fromRelationMetadata {\n id\n relationType\n toObjectMetadata {\n id\n dataSourceId\n nameSingular\n namePlural\n isSystem\n }\n toFieldMetadataId\n }\n toRelationMetadata {\n id\n relationType\n fromObjectMetadata {\n id\n dataSourceId\n nameSingular\n namePlural\n isSystem\n }\n fromFieldMetadataId\n }\n defaultValue\n options\n relationDefinition {\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n": types.ObjectMetadataItemsDocument,
|
"\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n createdAt\n updatedAt\n fromRelationMetadata {\n id\n relationType\n toObjectMetadata {\n id\n dataSourceId\n nameSingular\n namePlural\n isSystem\n }\n toFieldMetadataId\n }\n toRelationMetadata {\n id\n relationType\n fromObjectMetadata {\n id\n dataSourceId\n nameSingular\n namePlural\n isSystem\n }\n fromFieldMetadataId\n }\n defaultValue\n options\n relationDefinition {\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n": types.ObjectMetadataItemsDocument,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -82,19 +82,19 @@ export function graphql(source: "\n mutation CreateOneRelationMetadata($input:
|
|||||||
/**
|
/**
|
||||||
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
||||||
*/
|
*/
|
||||||
export function graphql(source: "\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: ID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n }\n }\n"): (typeof documents)["\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: ID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n }\n }\n"];
|
export function graphql(source: "\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n }\n }\n"): (typeof documents)["\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n }\n }\n"];
|
||||||
/**
|
/**
|
||||||
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
||||||
*/
|
*/
|
||||||
export function graphql(source: "\n mutation UpdateOneObjectMetadataItem(\n $idToUpdate: ID!\n $updatePayload: UpdateObjectInput!\n ) {\n updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n"): (typeof documents)["\n mutation UpdateOneObjectMetadataItem(\n $idToUpdate: ID!\n $updatePayload: UpdateObjectInput!\n ) {\n updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n"];
|
export function graphql(source: "\n mutation UpdateOneObjectMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateObjectInput!\n ) {\n updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n"): (typeof documents)["\n mutation UpdateOneObjectMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateObjectInput!\n ) {\n updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n"];
|
||||||
/**
|
/**
|
||||||
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
||||||
*/
|
*/
|
||||||
export function graphql(source: "\n mutation DeleteOneObjectMetadataItem($idToDelete: ID!) {\n deleteOneObject(input: { id: $idToDelete }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n"): (typeof documents)["\n mutation DeleteOneObjectMetadataItem($idToDelete: ID!) {\n deleteOneObject(input: { id: $idToDelete }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n"];
|
export function graphql(source: "\n mutation DeleteOneObjectMetadataItem($idToDelete: UUID!) {\n deleteOneObject(input: { id: $idToDelete }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n"): (typeof documents)["\n mutation DeleteOneObjectMetadataItem($idToDelete: UUID!) {\n deleteOneObject(input: { id: $idToDelete }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n"];
|
||||||
/**
|
/**
|
||||||
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
||||||
*/
|
*/
|
||||||
export function graphql(source: "\n mutation DeleteOneFieldMetadataItem($idToDelete: ID!) {\n deleteOneField(input: { id: $idToDelete }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n }\n }\n"): (typeof documents)["\n mutation DeleteOneFieldMetadataItem($idToDelete: ID!) {\n deleteOneField(input: { id: $idToDelete }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n }\n }\n"];
|
export function graphql(source: "\n mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) {\n deleteOneField(input: { id: $idToDelete }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n }\n }\n"): (typeof documents)["\n mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) {\n deleteOneField(input: { id: $idToDelete }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n }\n }\n"];
|
||||||
/**
|
/**
|
||||||
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
||||||
*/
|
*/
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -39,7 +39,7 @@ export type AppToken = {
|
|||||||
__typename?: 'AppToken';
|
__typename?: 'AppToken';
|
||||||
createdAt: Scalars['DateTime'];
|
createdAt: Scalars['DateTime'];
|
||||||
expiresAt: Scalars['DateTime'];
|
expiresAt: Scalars['DateTime'];
|
||||||
id: Scalars['ID'];
|
id: Scalars['UUID'];
|
||||||
type: Scalars['String'];
|
type: Scalars['String'];
|
||||||
updatedAt: Scalars['DateTime'];
|
updatedAt: Scalars['DateTime'];
|
||||||
};
|
};
|
||||||
@ -90,14 +90,14 @@ export type Billing = {
|
|||||||
|
|
||||||
export type BillingSubscription = {
|
export type BillingSubscription = {
|
||||||
__typename?: 'BillingSubscription';
|
__typename?: 'BillingSubscription';
|
||||||
id: Scalars['ID'];
|
id: Scalars['UUID'];
|
||||||
interval?: Maybe<Scalars['String']>;
|
interval?: Maybe<Scalars['String']>;
|
||||||
status: Scalars['String'];
|
status: Scalars['String'];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type BillingSubscriptionFilter = {
|
export type BillingSubscriptionFilter = {
|
||||||
and?: InputMaybe<Array<BillingSubscriptionFilter>>;
|
and?: InputMaybe<Array<BillingSubscriptionFilter>>;
|
||||||
id?: InputMaybe<IdFilterComparison>;
|
id?: InputMaybe<UuidFilterComparison>;
|
||||||
or?: InputMaybe<Array<BillingSubscriptionFilter>>;
|
or?: InputMaybe<Array<BillingSubscriptionFilter>>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ export type CursorPaging = {
|
|||||||
|
|
||||||
export type DeleteOneObjectInput = {
|
export type DeleteOneObjectInput = {
|
||||||
/** The id of the record to delete. */
|
/** The id of the record to delete. */
|
||||||
id: Scalars['ID'];
|
id: Scalars['UUID'];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EmailPasswordResetLink = {
|
export type EmailPasswordResetLink = {
|
||||||
@ -159,7 +159,7 @@ export type ExchangeAuthCode = {
|
|||||||
|
|
||||||
export type FeatureFlag = {
|
export type FeatureFlag = {
|
||||||
__typename?: 'FeatureFlag';
|
__typename?: 'FeatureFlag';
|
||||||
id: Scalars['ID'];
|
id: Scalars['UUID'];
|
||||||
key: Scalars['String'];
|
key: Scalars['String'];
|
||||||
value: Scalars['Boolean'];
|
value: Scalars['Boolean'];
|
||||||
workspaceId: Scalars['String'];
|
workspaceId: Scalars['String'];
|
||||||
@ -167,7 +167,7 @@ export type FeatureFlag = {
|
|||||||
|
|
||||||
export type FeatureFlagFilter = {
|
export type FeatureFlagFilter = {
|
||||||
and?: InputMaybe<Array<FeatureFlagFilter>>;
|
and?: InputMaybe<Array<FeatureFlagFilter>>;
|
||||||
id?: InputMaybe<IdFilterComparison>;
|
id?: InputMaybe<UuidFilterComparison>;
|
||||||
or?: InputMaybe<Array<FeatureFlagFilter>>;
|
or?: InputMaybe<Array<FeatureFlagFilter>>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -225,23 +225,6 @@ export type FullName = {
|
|||||||
lastName: Scalars['String'];
|
lastName: Scalars['String'];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type IdFilterComparison = {
|
|
||||||
eq?: InputMaybe<Scalars['ID']>;
|
|
||||||
gt?: InputMaybe<Scalars['ID']>;
|
|
||||||
gte?: InputMaybe<Scalars['ID']>;
|
|
||||||
iLike?: InputMaybe<Scalars['ID']>;
|
|
||||||
in?: InputMaybe<Array<Scalars['ID']>>;
|
|
||||||
is?: InputMaybe<Scalars['Boolean']>;
|
|
||||||
isNot?: InputMaybe<Scalars['Boolean']>;
|
|
||||||
like?: InputMaybe<Scalars['ID']>;
|
|
||||||
lt?: InputMaybe<Scalars['ID']>;
|
|
||||||
lte?: InputMaybe<Scalars['ID']>;
|
|
||||||
neq?: InputMaybe<Scalars['ID']>;
|
|
||||||
notILike?: InputMaybe<Scalars['ID']>;
|
|
||||||
notIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
||||||
notLike?: InputMaybe<Scalars['ID']>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type InvalidatePassword = {
|
export type InvalidatePassword = {
|
||||||
__typename?: 'InvalidatePassword';
|
__typename?: 'InvalidatePassword';
|
||||||
/** Boolean that confirms query was dispatched */
|
/** Boolean that confirms query was dispatched */
|
||||||
@ -491,7 +474,7 @@ export type QueryGetProductPricesArgs = {
|
|||||||
|
|
||||||
|
|
||||||
export type QueryGetTimelineCalendarEventsFromCompanyIdArgs = {
|
export type QueryGetTimelineCalendarEventsFromCompanyIdArgs = {
|
||||||
companyId: Scalars['ID'];
|
companyId: Scalars['UUID'];
|
||||||
page: Scalars['Int'];
|
page: Scalars['Int'];
|
||||||
pageSize: Scalars['Int'];
|
pageSize: Scalars['Int'];
|
||||||
};
|
};
|
||||||
@ -500,12 +483,12 @@ export type QueryGetTimelineCalendarEventsFromCompanyIdArgs = {
|
|||||||
export type QueryGetTimelineCalendarEventsFromPersonIdArgs = {
|
export type QueryGetTimelineCalendarEventsFromPersonIdArgs = {
|
||||||
page: Scalars['Int'];
|
page: Scalars['Int'];
|
||||||
pageSize: Scalars['Int'];
|
pageSize: Scalars['Int'];
|
||||||
personId: Scalars['ID'];
|
personId: Scalars['UUID'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type QueryGetTimelineThreadsFromCompanyIdArgs = {
|
export type QueryGetTimelineThreadsFromCompanyIdArgs = {
|
||||||
companyId: Scalars['ID'];
|
companyId: Scalars['UUID'];
|
||||||
page: Scalars['Int'];
|
page: Scalars['Int'];
|
||||||
pageSize: Scalars['Int'];
|
pageSize: Scalars['Int'];
|
||||||
};
|
};
|
||||||
@ -514,7 +497,7 @@ export type QueryGetTimelineThreadsFromCompanyIdArgs = {
|
|||||||
export type QueryGetTimelineThreadsFromPersonIdArgs = {
|
export type QueryGetTimelineThreadsFromPersonIdArgs = {
|
||||||
page: Scalars['Int'];
|
page: Scalars['Int'];
|
||||||
pageSize: Scalars['Int'];
|
pageSize: Scalars['Int'];
|
||||||
personId: Scalars['ID'];
|
personId: Scalars['UUID'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -552,7 +535,7 @@ export type RelationDeleteResponse = {
|
|||||||
createdAt?: Maybe<Scalars['DateTime']>;
|
createdAt?: Maybe<Scalars['DateTime']>;
|
||||||
fromFieldMetadataId?: Maybe<Scalars['String']>;
|
fromFieldMetadataId?: Maybe<Scalars['String']>;
|
||||||
fromObjectMetadataId?: Maybe<Scalars['String']>;
|
fromObjectMetadataId?: Maybe<Scalars['String']>;
|
||||||
id?: Maybe<Scalars['ID']>;
|
id?: Maybe<Scalars['UUID']>;
|
||||||
relationType?: Maybe<RelationMetadataType>;
|
relationType?: Maybe<RelationMetadataType>;
|
||||||
toFieldMetadataId?: Maybe<Scalars['String']>;
|
toFieldMetadataId?: Maybe<Scalars['String']>;
|
||||||
toObjectMetadataId?: Maybe<Scalars['String']>;
|
toObjectMetadataId?: Maybe<Scalars['String']>;
|
||||||
@ -629,7 +612,7 @@ export type TimelineCalendarEvent = {
|
|||||||
conferenceSolution: Scalars['String'];
|
conferenceSolution: Scalars['String'];
|
||||||
description: Scalars['String'];
|
description: Scalars['String'];
|
||||||
endsAt: Scalars['DateTime'];
|
endsAt: Scalars['DateTime'];
|
||||||
id: Scalars['ID'];
|
id: Scalars['UUID'];
|
||||||
isCanceled: Scalars['Boolean'];
|
isCanceled: Scalars['Boolean'];
|
||||||
isFullDay: Scalars['Boolean'];
|
isFullDay: Scalars['Boolean'];
|
||||||
location: Scalars['String'];
|
location: Scalars['String'];
|
||||||
@ -646,8 +629,8 @@ export type TimelineCalendarEventParticipant = {
|
|||||||
firstName: Scalars['String'];
|
firstName: Scalars['String'];
|
||||||
handle: Scalars['String'];
|
handle: Scalars['String'];
|
||||||
lastName: Scalars['String'];
|
lastName: Scalars['String'];
|
||||||
personId?: Maybe<Scalars['ID']>;
|
personId?: Maybe<Scalars['UUID']>;
|
||||||
workspaceMemberId?: Maybe<Scalars['ID']>;
|
workspaceMemberId?: Maybe<Scalars['UUID']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Visibility of the calendar event */
|
/** Visibility of the calendar event */
|
||||||
@ -665,7 +648,7 @@ export type TimelineCalendarEventsWithTotal = {
|
|||||||
export type TimelineThread = {
|
export type TimelineThread = {
|
||||||
__typename?: 'TimelineThread';
|
__typename?: 'TimelineThread';
|
||||||
firstParticipant: TimelineThreadParticipant;
|
firstParticipant: TimelineThreadParticipant;
|
||||||
id: Scalars['ID'];
|
id: Scalars['UUID'];
|
||||||
lastMessageBody: Scalars['String'];
|
lastMessageBody: Scalars['String'];
|
||||||
lastMessageReceivedAt: Scalars['DateTime'];
|
lastMessageReceivedAt: Scalars['DateTime'];
|
||||||
lastTwoParticipants: Array<TimelineThreadParticipant>;
|
lastTwoParticipants: Array<TimelineThreadParticipant>;
|
||||||
@ -683,8 +666,8 @@ export type TimelineThreadParticipant = {
|
|||||||
firstName: Scalars['String'];
|
firstName: Scalars['String'];
|
||||||
handle: Scalars['String'];
|
handle: Scalars['String'];
|
||||||
lastName: Scalars['String'];
|
lastName: Scalars['String'];
|
||||||
personId?: Maybe<Scalars['ID']>;
|
personId?: Maybe<Scalars['UUID']>;
|
||||||
workspaceMemberId?: Maybe<Scalars['ID']>;
|
workspaceMemberId?: Maybe<Scalars['UUID']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TimelineThreadsWithTotal = {
|
export type TimelineThreadsWithTotal = {
|
||||||
@ -698,6 +681,23 @@ export type TransientToken = {
|
|||||||
transientToken: AuthToken;
|
transientToken: AuthToken;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type UuidFilterComparison = {
|
||||||
|
eq?: InputMaybe<Scalars['UUID']>;
|
||||||
|
gt?: InputMaybe<Scalars['UUID']>;
|
||||||
|
gte?: InputMaybe<Scalars['UUID']>;
|
||||||
|
iLike?: InputMaybe<Scalars['UUID']>;
|
||||||
|
in?: InputMaybe<Array<Scalars['UUID']>>;
|
||||||
|
is?: InputMaybe<Scalars['Boolean']>;
|
||||||
|
isNot?: InputMaybe<Scalars['Boolean']>;
|
||||||
|
like?: InputMaybe<Scalars['UUID']>;
|
||||||
|
lt?: InputMaybe<Scalars['UUID']>;
|
||||||
|
lte?: InputMaybe<Scalars['UUID']>;
|
||||||
|
neq?: InputMaybe<Scalars['UUID']>;
|
||||||
|
notILike?: InputMaybe<Scalars['UUID']>;
|
||||||
|
notIn?: InputMaybe<Array<Scalars['UUID']>>;
|
||||||
|
notLike?: InputMaybe<Scalars['UUID']>;
|
||||||
|
};
|
||||||
|
|
||||||
export type UpdateBillingEntity = {
|
export type UpdateBillingEntity = {
|
||||||
__typename?: 'UpdateBillingEntity';
|
__typename?: 'UpdateBillingEntity';
|
||||||
/** Boolean that confirms query was successful */
|
/** Boolean that confirms query was successful */
|
||||||
@ -724,7 +724,7 @@ export type User = {
|
|||||||
email: Scalars['String'];
|
email: Scalars['String'];
|
||||||
emailVerified: Scalars['Boolean'];
|
emailVerified: Scalars['Boolean'];
|
||||||
firstName: Scalars['String'];
|
firstName: Scalars['String'];
|
||||||
id: Scalars['ID'];
|
id: Scalars['UUID'];
|
||||||
lastName: Scalars['String'];
|
lastName: Scalars['String'];
|
||||||
passwordHash?: Maybe<Scalars['String']>;
|
passwordHash?: Maybe<Scalars['String']>;
|
||||||
passwordResetToken?: Maybe<Scalars['String']>;
|
passwordResetToken?: Maybe<Scalars['String']>;
|
||||||
@ -752,7 +752,7 @@ export type UserWorkspace = {
|
|||||||
__typename?: 'UserWorkspace';
|
__typename?: 'UserWorkspace';
|
||||||
createdAt: Scalars['DateTime'];
|
createdAt: Scalars['DateTime'];
|
||||||
deletedAt?: Maybe<Scalars['DateTime']>;
|
deletedAt?: Maybe<Scalars['DateTime']>;
|
||||||
id: Scalars['ID'];
|
id: Scalars['UUID'];
|
||||||
updatedAt: Scalars['DateTime'];
|
updatedAt: Scalars['DateTime'];
|
||||||
user: User;
|
user: User;
|
||||||
userId: Scalars['String'];
|
userId: Scalars['String'];
|
||||||
@ -784,7 +784,7 @@ export type Workspace = {
|
|||||||
displayName?: Maybe<Scalars['String']>;
|
displayName?: Maybe<Scalars['String']>;
|
||||||
domainName?: Maybe<Scalars['String']>;
|
domainName?: Maybe<Scalars['String']>;
|
||||||
featureFlags?: Maybe<Array<FeatureFlag>>;
|
featureFlags?: Maybe<Array<FeatureFlag>>;
|
||||||
id: Scalars['ID'];
|
id: Scalars['UUID'];
|
||||||
inviteHash?: Maybe<Scalars['String']>;
|
inviteHash?: Maybe<Scalars['String']>;
|
||||||
logo?: Maybe<Scalars['String']>;
|
logo?: Maybe<Scalars['String']>;
|
||||||
subscriptionStatus: Scalars['String'];
|
subscriptionStatus: Scalars['String'];
|
||||||
@ -832,7 +832,7 @@ export type Field = {
|
|||||||
description?: Maybe<Scalars['String']>;
|
description?: Maybe<Scalars['String']>;
|
||||||
fromRelationMetadata?: Maybe<Relation>;
|
fromRelationMetadata?: Maybe<Relation>;
|
||||||
icon?: Maybe<Scalars['String']>;
|
icon?: Maybe<Scalars['String']>;
|
||||||
id: Scalars['ID'];
|
id: Scalars['UUID'];
|
||||||
isActive?: Maybe<Scalars['Boolean']>;
|
isActive?: Maybe<Scalars['Boolean']>;
|
||||||
isCustom?: Maybe<Scalars['Boolean']>;
|
isCustom?: Maybe<Scalars['Boolean']>;
|
||||||
isNullable?: Maybe<Scalars['Boolean']>;
|
isNullable?: Maybe<Scalars['Boolean']>;
|
||||||
@ -856,7 +856,7 @@ export type FieldEdge = {
|
|||||||
|
|
||||||
export type FieldFilter = {
|
export type FieldFilter = {
|
||||||
and?: InputMaybe<Array<FieldFilter>>;
|
and?: InputMaybe<Array<FieldFilter>>;
|
||||||
id?: InputMaybe<IdFilterComparison>;
|
id?: InputMaybe<UuidFilterComparison>;
|
||||||
isActive?: InputMaybe<BooleanFieldComparison>;
|
isActive?: InputMaybe<BooleanFieldComparison>;
|
||||||
isCustom?: InputMaybe<BooleanFieldComparison>;
|
isCustom?: InputMaybe<BooleanFieldComparison>;
|
||||||
isSystem?: InputMaybe<BooleanFieldComparison>;
|
isSystem?: InputMaybe<BooleanFieldComparison>;
|
||||||
@ -870,7 +870,7 @@ export type Object = {
|
|||||||
description?: Maybe<Scalars['String']>;
|
description?: Maybe<Scalars['String']>;
|
||||||
fields: ObjectFieldsConnection;
|
fields: ObjectFieldsConnection;
|
||||||
icon?: Maybe<Scalars['String']>;
|
icon?: Maybe<Scalars['String']>;
|
||||||
id: Scalars['ID'];
|
id: Scalars['UUID'];
|
||||||
imageIdentifierFieldMetadataId?: Maybe<Scalars['String']>;
|
imageIdentifierFieldMetadataId?: Maybe<Scalars['String']>;
|
||||||
isActive: Scalars['Boolean'];
|
isActive: Scalars['Boolean'];
|
||||||
isCustom: Scalars['Boolean'];
|
isCustom: Scalars['Boolean'];
|
||||||
@ -904,7 +904,7 @@ export type Relation = {
|
|||||||
fromFieldMetadataId: Scalars['String'];
|
fromFieldMetadataId: Scalars['String'];
|
||||||
fromObjectMetadata: Object;
|
fromObjectMetadata: Object;
|
||||||
fromObjectMetadataId: Scalars['String'];
|
fromObjectMetadataId: Scalars['String'];
|
||||||
id: Scalars['ID'];
|
id: Scalars['UUID'];
|
||||||
relationType: RelationMetadataType;
|
relationType: RelationMetadataType;
|
||||||
toFieldMetadataId: Scalars['String'];
|
toFieldMetadataId: Scalars['String'];
|
||||||
toObjectMetadata: Object;
|
toObjectMetadata: Object;
|
||||||
@ -920,55 +920,55 @@ export type RelationEdge = {
|
|||||||
node: Relation;
|
node: Relation;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TimelineCalendarEventFragmentFragment = { __typename?: 'TimelineCalendarEvent', id: string, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: TimelineCalendarEventVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> };
|
export type TimelineCalendarEventFragmentFragment = { __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: TimelineCalendarEventVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> };
|
||||||
|
|
||||||
export type TimelineCalendarEventParticipantFragmentFragment = { __typename?: 'TimelineCalendarEventParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string };
|
export type TimelineCalendarEventParticipantFragmentFragment = { __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string };
|
||||||
|
|
||||||
export type TimelineCalendarEventsWithTotalFragmentFragment = { __typename?: 'TimelineCalendarEventsWithTotal', totalNumberOfCalendarEvents: number, timelineCalendarEvents: Array<{ __typename?: 'TimelineCalendarEvent', id: string, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: TimelineCalendarEventVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> };
|
export type TimelineCalendarEventsWithTotalFragmentFragment = { __typename?: 'TimelineCalendarEventsWithTotal', totalNumberOfCalendarEvents: number, timelineCalendarEvents: Array<{ __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: TimelineCalendarEventVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> };
|
||||||
|
|
||||||
export type GetTimelineCalendarEventsFromCompanyIdQueryVariables = Exact<{
|
export type GetTimelineCalendarEventsFromCompanyIdQueryVariables = Exact<{
|
||||||
companyId: Scalars['ID'];
|
companyId: Scalars['UUID'];
|
||||||
page: Scalars['Int'];
|
page: Scalars['Int'];
|
||||||
pageSize: Scalars['Int'];
|
pageSize: Scalars['Int'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetTimelineCalendarEventsFromCompanyIdQuery = { __typename?: 'Query', getTimelineCalendarEventsFromCompanyId: { __typename?: 'TimelineCalendarEventsWithTotal', totalNumberOfCalendarEvents: number, timelineCalendarEvents: Array<{ __typename?: 'TimelineCalendarEvent', id: string, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: TimelineCalendarEventVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } };
|
export type GetTimelineCalendarEventsFromCompanyIdQuery = { __typename?: 'Query', getTimelineCalendarEventsFromCompanyId: { __typename?: 'TimelineCalendarEventsWithTotal', totalNumberOfCalendarEvents: number, timelineCalendarEvents: Array<{ __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: TimelineCalendarEventVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } };
|
||||||
|
|
||||||
export type GetTimelineCalendarEventsFromPersonIdQueryVariables = Exact<{
|
export type GetTimelineCalendarEventsFromPersonIdQueryVariables = Exact<{
|
||||||
personId: Scalars['ID'];
|
personId: Scalars['UUID'];
|
||||||
page: Scalars['Int'];
|
page: Scalars['Int'];
|
||||||
pageSize: Scalars['Int'];
|
pageSize: Scalars['Int'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetTimelineCalendarEventsFromPersonIdQuery = { __typename?: 'Query', getTimelineCalendarEventsFromPersonId: { __typename?: 'TimelineCalendarEventsWithTotal', totalNumberOfCalendarEvents: number, timelineCalendarEvents: Array<{ __typename?: 'TimelineCalendarEvent', id: string, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: TimelineCalendarEventVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } };
|
export type GetTimelineCalendarEventsFromPersonIdQuery = { __typename?: 'Query', getTimelineCalendarEventsFromPersonId: { __typename?: 'TimelineCalendarEventsWithTotal', totalNumberOfCalendarEvents: number, timelineCalendarEvents: Array<{ __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: TimelineCalendarEventVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } };
|
||||||
|
|
||||||
export type ParticipantFragmentFragment = { __typename?: 'TimelineThreadParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string };
|
export type ParticipantFragmentFragment = { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string };
|
||||||
|
|
||||||
export type TimelineThreadFragmentFragment = { __typename?: 'TimelineThread', id: string, read: boolean, visibility: string, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> };
|
export type TimelineThreadFragmentFragment = { __typename?: 'TimelineThread', id: any, read: boolean, visibility: string, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> };
|
||||||
|
|
||||||
export type TimelineThreadsWithTotalFragmentFragment = { __typename?: 'TimelineThreadsWithTotal', totalNumberOfThreads: number, timelineThreads: Array<{ __typename?: 'TimelineThread', id: string, read: boolean, visibility: string, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> };
|
export type TimelineThreadsWithTotalFragmentFragment = { __typename?: 'TimelineThreadsWithTotal', totalNumberOfThreads: number, timelineThreads: Array<{ __typename?: 'TimelineThread', id: any, read: boolean, visibility: string, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> };
|
||||||
|
|
||||||
export type GetTimelineThreadsFromCompanyIdQueryVariables = Exact<{
|
export type GetTimelineThreadsFromCompanyIdQueryVariables = Exact<{
|
||||||
companyId: Scalars['ID'];
|
companyId: Scalars['UUID'];
|
||||||
page: Scalars['Int'];
|
page: Scalars['Int'];
|
||||||
pageSize: Scalars['Int'];
|
pageSize: Scalars['Int'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetTimelineThreadsFromCompanyIdQuery = { __typename?: 'Query', getTimelineThreadsFromCompanyId: { __typename?: 'TimelineThreadsWithTotal', totalNumberOfThreads: number, timelineThreads: Array<{ __typename?: 'TimelineThread', id: string, read: boolean, visibility: string, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } };
|
export type GetTimelineThreadsFromCompanyIdQuery = { __typename?: 'Query', getTimelineThreadsFromCompanyId: { __typename?: 'TimelineThreadsWithTotal', totalNumberOfThreads: number, timelineThreads: Array<{ __typename?: 'TimelineThread', id: any, read: boolean, visibility: string, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } };
|
||||||
|
|
||||||
export type GetTimelineThreadsFromPersonIdQueryVariables = Exact<{
|
export type GetTimelineThreadsFromPersonIdQueryVariables = Exact<{
|
||||||
personId: Scalars['ID'];
|
personId: Scalars['UUID'];
|
||||||
page: Scalars['Int'];
|
page: Scalars['Int'];
|
||||||
pageSize: Scalars['Int'];
|
pageSize: Scalars['Int'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetTimelineThreadsFromPersonIdQuery = { __typename?: 'Query', getTimelineThreadsFromPersonId: { __typename?: 'TimelineThreadsWithTotal', totalNumberOfThreads: number, timelineThreads: Array<{ __typename?: 'TimelineThread', id: string, read: boolean, visibility: string, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: string | null, workspaceMemberId?: string | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } };
|
export type GetTimelineThreadsFromPersonIdQuery = { __typename?: 'Query', getTimelineThreadsFromPersonId: { __typename?: 'TimelineThreadsWithTotal', totalNumberOfThreads: number, timelineThreads: Array<{ __typename?: 'TimelineThread', id: any, read: boolean, visibility: string, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } };
|
||||||
|
|
||||||
export type TimelineThreadFragment = { __typename?: 'TimelineThread', id: string, subject: string, lastMessageReceivedAt: string };
|
export type TimelineThreadFragment = { __typename?: 'TimelineThread', id: any, subject: string, lastMessageReceivedAt: string };
|
||||||
|
|
||||||
export type TrackMutationVariables = Exact<{
|
export type TrackMutationVariables = Exact<{
|
||||||
type: Scalars['String'];
|
type: Scalars['String'];
|
||||||
@ -1030,7 +1030,7 @@ export type ImpersonateMutationVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type ImpersonateMutation = { __typename?: 'Mutation', impersonate: { __typename?: 'Verify', user: { __typename?: 'User', id: string, firstName: string, lastName: string, email: string, canImpersonate: boolean, supportUserHash?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale: string, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, defaultWorkspace: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, domainName?: string | null, inviteHash?: string | null, allowImpersonation: boolean, subscriptionStatus: string, activationStatus: string, featureFlags?: Array<{ __typename?: 'FeatureFlag', id: string, key: string, value: boolean, workspaceId: string }> | null }, workspaces: Array<{ __typename?: 'UserWorkspace', workspace?: { __typename?: 'Workspace', id: string, logo?: string | null, displayName?: string | null, domainName?: string | null } | null }> }, tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } };
|
export type ImpersonateMutation = { __typename?: 'Mutation', impersonate: { __typename?: 'Verify', user: { __typename?: 'User', id: any, firstName: string, lastName: string, email: string, canImpersonate: boolean, supportUserHash?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale: string, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, defaultWorkspace: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, domainName?: string | null, inviteHash?: string | null, allowImpersonation: boolean, subscriptionStatus: string, activationStatus: string, featureFlags?: Array<{ __typename?: 'FeatureFlag', id: any, key: string, value: boolean, workspaceId: string }> | null }, workspaces: Array<{ __typename?: 'UserWorkspace', workspace?: { __typename?: 'Workspace', id: any, logo?: string | null, displayName?: string | null, domainName?: string | null } | null }> }, tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } };
|
||||||
|
|
||||||
export type RenewTokenMutationVariables = Exact<{
|
export type RenewTokenMutationVariables = Exact<{
|
||||||
appToken: Scalars['String'];
|
appToken: Scalars['String'];
|
||||||
@ -1061,7 +1061,7 @@ export type VerifyMutationVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type VerifyMutation = { __typename?: 'Mutation', verify: { __typename?: 'Verify', user: { __typename?: 'User', id: string, firstName: string, lastName: string, email: string, canImpersonate: boolean, supportUserHash?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale: string, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, defaultWorkspace: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, domainName?: string | null, inviteHash?: string | null, allowImpersonation: boolean, subscriptionStatus: string, activationStatus: string, featureFlags?: Array<{ __typename?: 'FeatureFlag', id: string, key: string, value: boolean, workspaceId: string }> | null }, workspaces: Array<{ __typename?: 'UserWorkspace', workspace?: { __typename?: 'Workspace', id: string, logo?: string | null, displayName?: string | null, domainName?: string | null } | null }> }, tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } };
|
export type VerifyMutation = { __typename?: 'Mutation', verify: { __typename?: 'Verify', user: { __typename?: 'User', id: any, firstName: string, lastName: string, email: string, canImpersonate: boolean, supportUserHash?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale: string, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, defaultWorkspace: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, domainName?: string | null, inviteHash?: string | null, allowImpersonation: boolean, subscriptionStatus: string, activationStatus: string, featureFlags?: Array<{ __typename?: 'FeatureFlag', id: any, key: string, value: boolean, workspaceId: string }> | null }, workspaces: Array<{ __typename?: 'UserWorkspace', workspace?: { __typename?: 'Workspace', id: any, logo?: string | null, displayName?: string | null, domainName?: string | null } | null }> }, tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } };
|
||||||
|
|
||||||
export type CheckUserExistsQueryVariables = Exact<{
|
export type CheckUserExistsQueryVariables = Exact<{
|
||||||
email: Scalars['String'];
|
email: Scalars['String'];
|
||||||
@ -1125,12 +1125,12 @@ export type UploadImageMutationVariables = Exact<{
|
|||||||
|
|
||||||
export type UploadImageMutation = { __typename?: 'Mutation', uploadImage: string };
|
export type UploadImageMutation = { __typename?: 'Mutation', uploadImage: string };
|
||||||
|
|
||||||
export type UserQueryFragmentFragment = { __typename?: 'User', id: string, firstName: string, lastName: string, email: string, canImpersonate: boolean, supportUserHash?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale: string, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, defaultWorkspace: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, domainName?: string | null, inviteHash?: string | null, allowImpersonation: boolean, subscriptionStatus: string, activationStatus: string, featureFlags?: Array<{ __typename?: 'FeatureFlag', id: string, key: string, value: boolean, workspaceId: string }> | null }, workspaces: Array<{ __typename?: 'UserWorkspace', workspace?: { __typename?: 'Workspace', id: string, logo?: string | null, displayName?: string | null, domainName?: string | null } | null }> };
|
export type UserQueryFragmentFragment = { __typename?: 'User', id: any, firstName: string, lastName: string, email: string, canImpersonate: boolean, supportUserHash?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale: string, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, defaultWorkspace: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, domainName?: string | null, inviteHash?: string | null, allowImpersonation: boolean, subscriptionStatus: string, activationStatus: string, featureFlags?: Array<{ __typename?: 'FeatureFlag', id: any, key: string, value: boolean, workspaceId: string }> | null }, workspaces: Array<{ __typename?: 'UserWorkspace', workspace?: { __typename?: 'Workspace', id: any, logo?: string | null, displayName?: string | null, domainName?: string | null } | null }> };
|
||||||
|
|
||||||
export type DeleteUserAccountMutationVariables = Exact<{ [key: string]: never; }>;
|
export type DeleteUserAccountMutationVariables = Exact<{ [key: string]: never; }>;
|
||||||
|
|
||||||
|
|
||||||
export type DeleteUserAccountMutation = { __typename?: 'Mutation', deleteUser: { __typename?: 'User', id: string } };
|
export type DeleteUserAccountMutation = { __typename?: 'Mutation', deleteUser: { __typename?: 'User', id: any } };
|
||||||
|
|
||||||
export type UploadProfilePictureMutationVariables = Exact<{
|
export type UploadProfilePictureMutationVariables = Exact<{
|
||||||
file: Scalars['Upload'];
|
file: Scalars['Upload'];
|
||||||
@ -1142,26 +1142,26 @@ export type UploadProfilePictureMutation = { __typename?: 'Mutation', uploadProf
|
|||||||
export type GetCurrentUserQueryVariables = Exact<{ [key: string]: never; }>;
|
export type GetCurrentUserQueryVariables = Exact<{ [key: string]: never; }>;
|
||||||
|
|
||||||
|
|
||||||
export type GetCurrentUserQuery = { __typename?: 'Query', currentUser: { __typename?: 'User', id: string, firstName: string, lastName: string, email: string, canImpersonate: boolean, supportUserHash?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale: string, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, defaultWorkspace: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, domainName?: string | null, inviteHash?: string | null, allowImpersonation: boolean, subscriptionStatus: string, activationStatus: string, currentCacheVersion?: string | null, featureFlags?: Array<{ __typename?: 'FeatureFlag', id: string, key: string, value: boolean, workspaceId: string }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', status: string, interval?: string | null } | null }, workspaces: Array<{ __typename?: 'UserWorkspace', workspace?: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, domainName?: string | null } | null }> } };
|
export type GetCurrentUserQuery = { __typename?: 'Query', currentUser: { __typename?: 'User', id: any, firstName: string, lastName: string, email: string, canImpersonate: boolean, supportUserHash?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale: string, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, defaultWorkspace: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, domainName?: string | null, inviteHash?: string | null, allowImpersonation: boolean, subscriptionStatus: string, activationStatus: string, currentCacheVersion?: string | null, featureFlags?: Array<{ __typename?: 'FeatureFlag', id: any, key: string, value: boolean, workspaceId: string }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', status: string, interval?: string | null } | null }, workspaces: Array<{ __typename?: 'UserWorkspace', workspace?: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, domainName?: string | null } | null }> } };
|
||||||
|
|
||||||
export type ActivateWorkspaceMutationVariables = Exact<{
|
export type ActivateWorkspaceMutationVariables = Exact<{
|
||||||
input: ActivateWorkspaceInput;
|
input: ActivateWorkspaceInput;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type ActivateWorkspaceMutation = { __typename?: 'Mutation', activateWorkspace: { __typename?: 'Workspace', id: string } };
|
export type ActivateWorkspaceMutation = { __typename?: 'Mutation', activateWorkspace: { __typename?: 'Workspace', id: any } };
|
||||||
|
|
||||||
export type DeleteCurrentWorkspaceMutationVariables = Exact<{ [key: string]: never; }>;
|
export type DeleteCurrentWorkspaceMutationVariables = Exact<{ [key: string]: never; }>;
|
||||||
|
|
||||||
|
|
||||||
export type DeleteCurrentWorkspaceMutation = { __typename?: 'Mutation', deleteCurrentWorkspace: { __typename?: 'Workspace', id: string } };
|
export type DeleteCurrentWorkspaceMutation = { __typename?: 'Mutation', deleteCurrentWorkspace: { __typename?: 'Workspace', id: any } };
|
||||||
|
|
||||||
export type UpdateWorkspaceMutationVariables = Exact<{
|
export type UpdateWorkspaceMutationVariables = Exact<{
|
||||||
input: UpdateWorkspaceInput;
|
input: UpdateWorkspaceInput;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type UpdateWorkspaceMutation = { __typename?: 'Mutation', updateWorkspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null, allowImpersonation: boolean, subscriptionStatus: string } };
|
export type UpdateWorkspaceMutation = { __typename?: 'Mutation', updateWorkspace: { __typename?: 'Workspace', id: any, domainName?: string | null, displayName?: string | null, logo?: string | null, allowImpersonation: boolean, subscriptionStatus: string } };
|
||||||
|
|
||||||
export type UploadWorkspaceLogoMutationVariables = Exact<{
|
export type UploadWorkspaceLogoMutationVariables = Exact<{
|
||||||
file: Scalars['Upload'];
|
file: Scalars['Upload'];
|
||||||
@ -1175,7 +1175,7 @@ export type GetWorkspaceFromInviteHashQueryVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetWorkspaceFromInviteHashQuery = { __typename?: 'Query', findWorkspaceFromInviteHash: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, allowImpersonation: boolean } };
|
export type GetWorkspaceFromInviteHashQuery = { __typename?: 'Query', findWorkspaceFromInviteHash: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, allowImpersonation: boolean } };
|
||||||
|
|
||||||
export const TimelineCalendarEventParticipantFragmentFragmentDoc = gql`
|
export const TimelineCalendarEventParticipantFragmentFragmentDoc = gql`
|
||||||
fragment TimelineCalendarEventParticipantFragment on TimelineCalendarEventParticipant {
|
fragment TimelineCalendarEventParticipantFragment on TimelineCalendarEventParticipant {
|
||||||
@ -1316,7 +1316,7 @@ export const UserQueryFragmentFragmentDoc = gql`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export const GetTimelineCalendarEventsFromCompanyIdDocument = gql`
|
export const GetTimelineCalendarEventsFromCompanyIdDocument = gql`
|
||||||
query GetTimelineCalendarEventsFromCompanyId($companyId: ID!, $page: Int!, $pageSize: Int!) {
|
query GetTimelineCalendarEventsFromCompanyId($companyId: UUID!, $page: Int!, $pageSize: Int!) {
|
||||||
getTimelineCalendarEventsFromCompanyId(
|
getTimelineCalendarEventsFromCompanyId(
|
||||||
companyId: $companyId
|
companyId: $companyId
|
||||||
page: $page
|
page: $page
|
||||||
@ -1357,7 +1357,7 @@ export type GetTimelineCalendarEventsFromCompanyIdQueryHookResult = ReturnType<t
|
|||||||
export type GetTimelineCalendarEventsFromCompanyIdLazyQueryHookResult = ReturnType<typeof useGetTimelineCalendarEventsFromCompanyIdLazyQuery>;
|
export type GetTimelineCalendarEventsFromCompanyIdLazyQueryHookResult = ReturnType<typeof useGetTimelineCalendarEventsFromCompanyIdLazyQuery>;
|
||||||
export type GetTimelineCalendarEventsFromCompanyIdQueryResult = Apollo.QueryResult<GetTimelineCalendarEventsFromCompanyIdQuery, GetTimelineCalendarEventsFromCompanyIdQueryVariables>;
|
export type GetTimelineCalendarEventsFromCompanyIdQueryResult = Apollo.QueryResult<GetTimelineCalendarEventsFromCompanyIdQuery, GetTimelineCalendarEventsFromCompanyIdQueryVariables>;
|
||||||
export const GetTimelineCalendarEventsFromPersonIdDocument = gql`
|
export const GetTimelineCalendarEventsFromPersonIdDocument = gql`
|
||||||
query GetTimelineCalendarEventsFromPersonId($personId: ID!, $page: Int!, $pageSize: Int!) {
|
query GetTimelineCalendarEventsFromPersonId($personId: UUID!, $page: Int!, $pageSize: Int!) {
|
||||||
getTimelineCalendarEventsFromPersonId(
|
getTimelineCalendarEventsFromPersonId(
|
||||||
personId: $personId
|
personId: $personId
|
||||||
page: $page
|
page: $page
|
||||||
@ -1398,7 +1398,7 @@ export type GetTimelineCalendarEventsFromPersonIdQueryHookResult = ReturnType<ty
|
|||||||
export type GetTimelineCalendarEventsFromPersonIdLazyQueryHookResult = ReturnType<typeof useGetTimelineCalendarEventsFromPersonIdLazyQuery>;
|
export type GetTimelineCalendarEventsFromPersonIdLazyQueryHookResult = ReturnType<typeof useGetTimelineCalendarEventsFromPersonIdLazyQuery>;
|
||||||
export type GetTimelineCalendarEventsFromPersonIdQueryResult = Apollo.QueryResult<GetTimelineCalendarEventsFromPersonIdQuery, GetTimelineCalendarEventsFromPersonIdQueryVariables>;
|
export type GetTimelineCalendarEventsFromPersonIdQueryResult = Apollo.QueryResult<GetTimelineCalendarEventsFromPersonIdQuery, GetTimelineCalendarEventsFromPersonIdQueryVariables>;
|
||||||
export const GetTimelineThreadsFromCompanyIdDocument = gql`
|
export const GetTimelineThreadsFromCompanyIdDocument = gql`
|
||||||
query GetTimelineThreadsFromCompanyId($companyId: ID!, $page: Int!, $pageSize: Int!) {
|
query GetTimelineThreadsFromCompanyId($companyId: UUID!, $page: Int!, $pageSize: Int!) {
|
||||||
getTimelineThreadsFromCompanyId(
|
getTimelineThreadsFromCompanyId(
|
||||||
companyId: $companyId
|
companyId: $companyId
|
||||||
page: $page
|
page: $page
|
||||||
@ -1439,7 +1439,7 @@ export type GetTimelineThreadsFromCompanyIdQueryHookResult = ReturnType<typeof u
|
|||||||
export type GetTimelineThreadsFromCompanyIdLazyQueryHookResult = ReturnType<typeof useGetTimelineThreadsFromCompanyIdLazyQuery>;
|
export type GetTimelineThreadsFromCompanyIdLazyQueryHookResult = ReturnType<typeof useGetTimelineThreadsFromCompanyIdLazyQuery>;
|
||||||
export type GetTimelineThreadsFromCompanyIdQueryResult = Apollo.QueryResult<GetTimelineThreadsFromCompanyIdQuery, GetTimelineThreadsFromCompanyIdQueryVariables>;
|
export type GetTimelineThreadsFromCompanyIdQueryResult = Apollo.QueryResult<GetTimelineThreadsFromCompanyIdQuery, GetTimelineThreadsFromCompanyIdQueryVariables>;
|
||||||
export const GetTimelineThreadsFromPersonIdDocument = gql`
|
export const GetTimelineThreadsFromPersonIdDocument = gql`
|
||||||
query GetTimelineThreadsFromPersonId($personId: ID!, $page: Int!, $pageSize: Int!) {
|
query GetTimelineThreadsFromPersonId($personId: UUID!, $page: Int!, $pageSize: Int!) {
|
||||||
getTimelineThreadsFromPersonId(
|
getTimelineThreadsFromPersonId(
|
||||||
personId: $personId
|
personId: $personId
|
||||||
page: $page
|
page: $page
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { timelineCalendarEventWithTotalFragment } from '@/activities/calendar/qu
|
|||||||
|
|
||||||
export const getTimelineCalendarEventsFromCompanyId = gql`
|
export const getTimelineCalendarEventsFromCompanyId = gql`
|
||||||
query GetTimelineCalendarEventsFromCompanyId(
|
query GetTimelineCalendarEventsFromCompanyId(
|
||||||
$companyId: ID!
|
$companyId: UUID!
|
||||||
$page: Int!
|
$page: Int!
|
||||||
$pageSize: Int!
|
$pageSize: Int!
|
||||||
) {
|
) {
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { timelineCalendarEventWithTotalFragment } from '@/activities/calendar/qu
|
|||||||
|
|
||||||
export const getTimelineCalendarEventsFromPersonId = gql`
|
export const getTimelineCalendarEventsFromPersonId = gql`
|
||||||
query GetTimelineCalendarEventsFromPersonId(
|
query GetTimelineCalendarEventsFromPersonId(
|
||||||
$personId: ID!
|
$personId: UUID!
|
||||||
$page: Int!
|
$page: Int!
|
||||||
$pageSize: Int!
|
$pageSize: Int!
|
||||||
) {
|
) {
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { timelineThreadWithTotalFragment } from '@/activities/emails/queries/fra
|
|||||||
|
|
||||||
export const getTimelineThreadsFromCompanyId = gql`
|
export const getTimelineThreadsFromCompanyId = gql`
|
||||||
query GetTimelineThreadsFromCompanyId(
|
query GetTimelineThreadsFromCompanyId(
|
||||||
$companyId: ID!
|
$companyId: UUID!
|
||||||
$page: Int!
|
$page: Int!
|
||||||
$pageSize: Int!
|
$pageSize: Int!
|
||||||
) {
|
) {
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { timelineThreadWithTotalFragment } from '@/activities/emails/queries/fra
|
|||||||
|
|
||||||
export const getTimelineThreadsFromPersonId = gql`
|
export const getTimelineThreadsFromPersonId = gql`
|
||||||
query GetTimelineThreadsFromPersonId(
|
query GetTimelineThreadsFromPersonId(
|
||||||
$personId: ID!
|
$personId: UUID!
|
||||||
$page: Int!
|
$page: Int!
|
||||||
$pageSize: Int!
|
$pageSize: Int!
|
||||||
) {
|
) {
|
||||||
|
|||||||
@ -17,7 +17,7 @@ const mocks: MockedResponse[] = [
|
|||||||
request: {
|
request: {
|
||||||
query: gql`
|
query: gql`
|
||||||
mutation UpdateOneActivity(
|
mutation UpdateOneActivity(
|
||||||
$idToUpdate: ID!
|
$idToUpdate: UUID!
|
||||||
$input: ActivityUpdateInput!
|
$input: ActivityUpdateInput!
|
||||||
) {
|
) {
|
||||||
updateActivity(id: $idToUpdate, data: $input) {
|
updateActivity(id: $idToUpdate, data: $input) {
|
||||||
|
|||||||
@ -177,7 +177,7 @@ export const mocks = [
|
|||||||
{
|
{
|
||||||
request: {
|
request: {
|
||||||
query: gql`
|
query: gql`
|
||||||
mutation DeleteOneFavorite($idToDelete: ID!) {
|
mutation DeleteOneFavorite($idToDelete: UUID!) {
|
||||||
deleteFavorite(id: $idToDelete) {
|
deleteFavorite(id: $idToDelete) {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
@ -197,7 +197,7 @@ export const mocks = [
|
|||||||
request: {
|
request: {
|
||||||
query: gql`
|
query: gql`
|
||||||
mutation UpdateOneFavorite(
|
mutation UpdateOneFavorite(
|
||||||
$idToUpdate: ID!
|
$idToUpdate: UUID!
|
||||||
$input: FavoriteUpdateInput!
|
$input: FavoriteUpdateInput!
|
||||||
) {
|
) {
|
||||||
updateFavorite(id: $idToUpdate, data: $input) {
|
updateFavorite(id: $idToUpdate, data: $input) {
|
||||||
|
|||||||
@ -58,7 +58,7 @@ export const CREATE_ONE_RELATION_METADATA_ITEM = gql`
|
|||||||
|
|
||||||
export const UPDATE_ONE_FIELD_METADATA_ITEM = gql`
|
export const UPDATE_ONE_FIELD_METADATA_ITEM = gql`
|
||||||
mutation UpdateOneFieldMetadataItem(
|
mutation UpdateOneFieldMetadataItem(
|
||||||
$idToUpdate: ID!
|
$idToUpdate: UUID!
|
||||||
$updatePayload: UpdateFieldInput!
|
$updatePayload: UpdateFieldInput!
|
||||||
) {
|
) {
|
||||||
updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {
|
updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {
|
||||||
@ -79,7 +79,7 @@ export const UPDATE_ONE_FIELD_METADATA_ITEM = gql`
|
|||||||
|
|
||||||
export const UPDATE_ONE_OBJECT_METADATA_ITEM = gql`
|
export const UPDATE_ONE_OBJECT_METADATA_ITEM = gql`
|
||||||
mutation UpdateOneObjectMetadataItem(
|
mutation UpdateOneObjectMetadataItem(
|
||||||
$idToUpdate: ID!
|
$idToUpdate: UUID!
|
||||||
$updatePayload: UpdateObjectInput!
|
$updatePayload: UpdateObjectInput!
|
||||||
) {
|
) {
|
||||||
updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {
|
updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {
|
||||||
@ -102,7 +102,7 @@ export const UPDATE_ONE_OBJECT_METADATA_ITEM = gql`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
export const DELETE_ONE_OBJECT_METADATA_ITEM = gql`
|
export const DELETE_ONE_OBJECT_METADATA_ITEM = gql`
|
||||||
mutation DeleteOneObjectMetadataItem($idToDelete: ID!) {
|
mutation DeleteOneObjectMetadataItem($idToDelete: UUID!) {
|
||||||
deleteOneObject(input: { id: $idToDelete }) {
|
deleteOneObject(input: { id: $idToDelete }) {
|
||||||
id
|
id
|
||||||
dataSourceId
|
dataSourceId
|
||||||
@ -123,7 +123,7 @@ export const DELETE_ONE_OBJECT_METADATA_ITEM = gql`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
export const DELETE_ONE_FIELD_METADATA_ITEM = gql`
|
export const DELETE_ONE_FIELD_METADATA_ITEM = gql`
|
||||||
mutation DeleteOneFieldMetadataItem($idToDelete: ID!) {
|
mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) {
|
||||||
deleteOneField(input: { id: $idToDelete }) {
|
deleteOneField(input: { id: $idToDelete }) {
|
||||||
id
|
id
|
||||||
type
|
type
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { gql } from '@apollo/client';
|
import { gql } from '@apollo/client';
|
||||||
|
|
||||||
export const query = gql`
|
export const query = gql`
|
||||||
mutation DeleteOneObjectMetadataItem($idToDelete: ID!) {
|
mutation DeleteOneObjectMetadataItem($idToDelete: UUID!) {
|
||||||
deleteOneObject(input: { id: $idToDelete }) {
|
deleteOneObject(input: { id: $idToDelete }) {
|
||||||
id
|
id
|
||||||
dataSourceId
|
dataSourceId
|
||||||
|
|||||||
@ -16,7 +16,7 @@ const baseFields = `
|
|||||||
|
|
||||||
export const queries = {
|
export const queries = {
|
||||||
eraseMetadataField: gql`
|
eraseMetadataField: gql`
|
||||||
mutation DeleteOneFieldMetadataItem($idToDelete: ID!) {
|
mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) {
|
||||||
deleteOneField(input: { id: $idToDelete }) {
|
deleteOneField(input: { id: $idToDelete }) {
|
||||||
${baseFields}
|
${baseFields}
|
||||||
}
|
}
|
||||||
@ -24,7 +24,7 @@ export const queries = {
|
|||||||
`,
|
`,
|
||||||
activateMetadataField: gql`
|
activateMetadataField: gql`
|
||||||
mutation UpdateOneFieldMetadataItem(
|
mutation UpdateOneFieldMetadataItem(
|
||||||
$idToUpdate: ID!
|
$idToUpdate: UUID!
|
||||||
$updatePayload: UpdateFieldInput!
|
$updatePayload: UpdateFieldInput!
|
||||||
) {
|
) {
|
||||||
updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {
|
updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { gql } from '@apollo/client';
|
|||||||
|
|
||||||
export const query = gql`
|
export const query = gql`
|
||||||
mutation UpdateOneObjectMetadataItem(
|
mutation UpdateOneObjectMetadataItem(
|
||||||
$idToUpdate: ID!
|
$idToUpdate: UUID!
|
||||||
$updatePayload: UpdateObjectInput!
|
$updatePayload: UpdateObjectInput!
|
||||||
) {
|
) {
|
||||||
updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {
|
updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { gql } from '@apollo/client';
|
import { gql } from '@apollo/client';
|
||||||
|
|
||||||
export const query = gql`
|
export const query = gql`
|
||||||
mutation DeleteOnePerson($idToDelete: ID!) {
|
mutation DeleteOnePerson($idToDelete: UUID!) {
|
||||||
deletePerson(id: $idToDelete) {
|
deletePerson(id: $idToDelete) {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { gql } from '@apollo/client';
|
|||||||
export { responseData } from './useUpdateOneRecord';
|
export { responseData } from './useUpdateOneRecord';
|
||||||
|
|
||||||
export const query = gql`
|
export const query = gql`
|
||||||
mutation ExecuteQuickActionOnOnePerson($idToExecuteQuickActionOn: ID!) {
|
mutation ExecuteQuickActionOnOnePerson($idToExecuteQuickActionOn: UUID!) {
|
||||||
executeQuickActionOnPerson(id: $idToExecuteQuickActionOn) {
|
executeQuickActionOnPerson(id: $idToExecuteQuickActionOn) {
|
||||||
__typename
|
__typename
|
||||||
xLink {
|
xLink {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { gql } from '@apollo/client';
|
import { gql } from '@apollo/client';
|
||||||
|
|
||||||
export const query = gql`
|
export const query = gql`
|
||||||
mutation UpdateOnePerson($idToUpdate: ID!, $input: PersonUpdateInput!) {
|
mutation UpdateOnePerson($idToUpdate: UUID!, $input: PersonUpdateInput!) {
|
||||||
updatePerson(id: $idToUpdate, data: $input) {
|
updatePerson(id: $idToUpdate, data: $input) {
|
||||||
__typename
|
__typename
|
||||||
xLink {
|
xLink {
|
||||||
|
|||||||
@ -26,7 +26,7 @@ export const useDeleteOneRecordMutation = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const deleteOneRecordMutation = gql`
|
const deleteOneRecordMutation = gql`
|
||||||
mutation DeleteOne${capitalizedObjectName}($idToDelete: ID!) {
|
mutation DeleteOne${capitalizedObjectName}($idToDelete: UUID!) {
|
||||||
${mutationResponseField}(id: $idToDelete) {
|
${mutationResponseField}(id: $idToDelete) {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,7 +39,7 @@ export const useExecuteQuickActionOnOneRecordMutation = ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const executeQuickActionOnOneRecordMutation = gql`
|
const executeQuickActionOnOneRecordMutation = gql`
|
||||||
mutation ExecuteQuickActionOnOne${capitalizedObjectName}($idToExecuteQuickActionOn: ID!) {
|
mutation ExecuteQuickActionOnOne${capitalizedObjectName}($idToExecuteQuickActionOn: UUID!) {
|
||||||
${graphQLFieldForExecuteQuickActionOnOneRecordMutation}(id: $idToExecuteQuickActionOn) ${mapObjectMetadataToGraphQLQuery(
|
${graphQLFieldForExecuteQuickActionOnOneRecordMutation}(id: $idToExecuteQuickActionOn) ${mapObjectMetadataToGraphQLQuery(
|
||||||
{
|
{
|
||||||
objectMetadataItems,
|
objectMetadataItems,
|
||||||
|
|||||||
@ -21,7 +21,9 @@ export const useFindDuplicateRecordsQuery = ({
|
|||||||
const objectMetadataItems = useRecoilValue(objectMetadataItemsState);
|
const objectMetadataItems = useRecoilValue(objectMetadataItemsState);
|
||||||
|
|
||||||
const findDuplicateRecordsQuery = gql`
|
const findDuplicateRecordsQuery = gql`
|
||||||
query FindDuplicate${capitalize(objectMetadataItem.nameSingular)}($id: ID) {
|
query FindDuplicate${capitalize(
|
||||||
|
objectMetadataItem.nameSingular,
|
||||||
|
)}($id: UUID) {
|
||||||
${getFindDuplicateRecordsQueryResponseField(
|
${getFindDuplicateRecordsQueryResponseField(
|
||||||
objectMetadataItem.nameSingular,
|
objectMetadataItem.nameSingular,
|
||||||
)}(id: $id) {
|
)}(id: $id) {
|
||||||
|
|||||||
@ -35,7 +35,7 @@ export const useUpdateOneRecordMutation = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const updateOneRecordMutation = gql`
|
const updateOneRecordMutation = gql`
|
||||||
mutation UpdateOne${capitalizedObjectName}($idToUpdate: ID!, $input: ${capitalizedObjectName}UpdateInput!) {
|
mutation UpdateOne${capitalizedObjectName}($idToUpdate: UUID!, $input: ${capitalizedObjectName}UpdateInput!) {
|
||||||
${mutationResponseField}(id: $idToUpdate, data: $input) ${mapObjectMetadataToGraphQLQuery(
|
${mutationResponseField}(id: $idToUpdate, data: $input) ${mapObjectMetadataToGraphQLQuery(
|
||||||
{
|
{
|
||||||
objectMetadataItems,
|
objectMetadataItems,
|
||||||
|
|||||||
@ -21,7 +21,7 @@ import { FieldMetadata } from '@/object-record/record-field/types/FieldMetadata'
|
|||||||
import { recordStoreFamilySelector } from '@/object-record/record-store/states/selectors/recordStoreFamilySelector';
|
import { recordStoreFamilySelector } from '@/object-record/record-store/states/selectors/recordStoreFamilySelector';
|
||||||
|
|
||||||
const query = gql`
|
const query = gql`
|
||||||
mutation UpdateOnePerson($idToUpdate: ID!, $input: PersonUpdateInput!) {
|
mutation UpdateOnePerson($idToUpdate: UUID!, $input: PersonUpdateInput!) {
|
||||||
updatePerson(id: $idToUpdate, data: $input) {
|
updatePerson(id: $idToUpdate, data: $input) {
|
||||||
__typename
|
__typename
|
||||||
xLink {
|
xLink {
|
||||||
|
|||||||
@ -21,7 +21,7 @@ const mocks: MockedResponse[] = [
|
|||||||
request: {
|
request: {
|
||||||
query: gql`
|
query: gql`
|
||||||
mutation UpdateOneCompany(
|
mutation UpdateOneCompany(
|
||||||
$idToUpdate: ID!
|
$idToUpdate: UUID!
|
||||||
$input: CompanyUpdateInput!
|
$input: CompanyUpdateInput!
|
||||||
) {
|
) {
|
||||||
updateCompany(id: $idToUpdate, data: $input) {
|
updateCompany(id: $idToUpdate, data: $input) {
|
||||||
|
|||||||
@ -8,7 +8,7 @@ export class DeleteQueryFactory {
|
|||||||
const objectNameSingular = capitalize(objectMetadataItem.nameSingular);
|
const objectNameSingular = capitalize(objectMetadataItem.nameSingular);
|
||||||
|
|
||||||
return `
|
return `
|
||||||
mutation Delete${objectNameSingular}($id: ID!) {
|
mutation Delete${objectNameSingular}($id: UUID!) {
|
||||||
delete${objectNameSingular}(id: $id) {
|
delete${objectNameSingular}(id: $id) {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,7 +11,7 @@ export class UpdateQueryFactory {
|
|||||||
return `
|
return `
|
||||||
mutation Update${capitalize(
|
mutation Update${capitalize(
|
||||||
objectNameSingular,
|
objectNameSingular,
|
||||||
)}($id: ID!, $data: ${capitalize(objectNameSingular)}UpdateInput!) {
|
)}($id: UUID!, $data: ${capitalize(objectNameSingular)}UpdateInput!) {
|
||||||
update${capitalize(objectNameSingular)}(id: $id, data: $data) {
|
update${capitalize(objectNameSingular)}(id: $id, data: $data) {
|
||||||
id
|
id
|
||||||
${objectMetadata.objectMetadataItem.fields
|
${objectMetadata.objectMetadataItem.fields
|
||||||
|
|||||||
@ -181,7 +181,7 @@ export class ApiRestMetadataService {
|
|||||||
|
|
||||||
return `
|
return `
|
||||||
query FindOne${capitalize(objectNameSingular)}(
|
query FindOne${capitalize(objectNameSingular)}(
|
||||||
$id: ID!,
|
$id: UUID!,
|
||||||
) {
|
) {
|
||||||
${objectNameSingular}(id: $id) {
|
${objectNameSingular}(id: $id) {
|
||||||
id
|
id
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { Field, ID, ObjectType } from '@nestjs/graphql';
|
import { Field, ObjectType } from '@nestjs/graphql';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Entity,
|
Entity,
|
||||||
@ -14,6 +14,7 @@ import { BeforeCreateOne, IDField } from '@ptc-org/nestjs-query-graphql';
|
|||||||
import { BeforeCreateOneAppToken } from 'src/engine/core-modules/app-token/hooks/before-create-one-app-token.hook';
|
import { BeforeCreateOneAppToken } from 'src/engine/core-modules/app-token/hooks/before-create-one-app-token.hook';
|
||||||
import { User } from 'src/engine/core-modules/user/user.entity';
|
import { User } from 'src/engine/core-modules/user/user.entity';
|
||||||
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
export enum AppTokenType {
|
export enum AppTokenType {
|
||||||
RefreshToken = 'REFRESH_TOKEN',
|
RefreshToken = 'REFRESH_TOKEN',
|
||||||
CodeChallenge = 'CODE_CHALLENGE',
|
CodeChallenge = 'CODE_CHALLENGE',
|
||||||
@ -24,7 +25,7 @@ export enum AppTokenType {
|
|||||||
@ObjectType('AppToken')
|
@ObjectType('AppToken')
|
||||||
@BeforeCreateOne(BeforeCreateOneAppToken)
|
@BeforeCreateOne(BeforeCreateOneAppToken)
|
||||||
export class AppToken {
|
export class AppToken {
|
||||||
@IDField(() => ID)
|
@IDField(() => UUIDScalarType)
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn('uuid')
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { Field, ID, ObjectType } from '@nestjs/graphql';
|
import { Field, ObjectType } from '@nestjs/graphql';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Column,
|
Column,
|
||||||
@ -15,11 +15,12 @@ import { IDField } from '@ptc-org/nestjs-query-graphql';
|
|||||||
|
|
||||||
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
||||||
import { BillingSubscriptionItem } from 'src/engine/core-modules/billing/entities/billing-subscription-item.entity';
|
import { BillingSubscriptionItem } from 'src/engine/core-modules/billing/entities/billing-subscription-item.entity';
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
|
|
||||||
@Entity({ name: 'billingSubscription', schema: 'core' })
|
@Entity({ name: 'billingSubscription', schema: 'core' })
|
||||||
@ObjectType('BillingSubscription')
|
@ObjectType('BillingSubscription')
|
||||||
export class BillingSubscription {
|
export class BillingSubscription {
|
||||||
@IDField(() => ID)
|
@IDField(() => UUIDScalarType)
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn('uuid')
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,13 @@
|
|||||||
import { ObjectType, Field, ID } from '@nestjs/graphql';
|
import { ObjectType, Field } from '@nestjs/graphql';
|
||||||
|
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
|
|
||||||
@ObjectType('TimelineCalendarEventParticipant')
|
@ObjectType('TimelineCalendarEventParticipant')
|
||||||
export class TimelineCalendarEventParticipant {
|
export class TimelineCalendarEventParticipant {
|
||||||
@Field(() => ID, { nullable: true })
|
@Field(() => UUIDScalarType, { nullable: true })
|
||||||
personId: string;
|
personId: string;
|
||||||
|
|
||||||
@Field(() => ID, { nullable: true })
|
@Field(() => UUIDScalarType, { nullable: true })
|
||||||
workspaceMemberId: string;
|
workspaceMemberId: string;
|
||||||
|
|
||||||
@Field()
|
@Field()
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
import { ObjectType, ID, Field, registerEnumType } from '@nestjs/graphql';
|
import { ObjectType, Field, registerEnumType } from '@nestjs/graphql';
|
||||||
|
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
import { TimelineCalendarEventParticipant } from 'src/engine/core-modules/calendar/dtos/timeline-calendar-event-participant.dto';
|
import { TimelineCalendarEventParticipant } from 'src/engine/core-modules/calendar/dtos/timeline-calendar-event-participant.dto';
|
||||||
|
|
||||||
export enum TimelineCalendarEventVisibility {
|
export enum TimelineCalendarEventVisibility {
|
||||||
@ -23,7 +24,7 @@ export class LinkMetadata {
|
|||||||
|
|
||||||
@ObjectType('TimelineCalendarEvent')
|
@ObjectType('TimelineCalendarEvent')
|
||||||
export class TimelineCalendarEvent {
|
export class TimelineCalendarEvent {
|
||||||
@Field(() => ID)
|
@Field(() => UUIDScalarType)
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@Field()
|
@Field()
|
||||||
|
|||||||
@ -1,13 +1,5 @@
|
|||||||
import { UseGuards } from '@nestjs/common';
|
import { UseGuards } from '@nestjs/common';
|
||||||
import {
|
import { Query, Args, ArgsType, Field, Int, Resolver } from '@nestjs/graphql';
|
||||||
Query,
|
|
||||||
Args,
|
|
||||||
ArgsType,
|
|
||||||
Field,
|
|
||||||
ID,
|
|
||||||
Int,
|
|
||||||
Resolver,
|
|
||||||
} from '@nestjs/graphql';
|
|
||||||
|
|
||||||
import { Max } from 'class-validator';
|
import { Max } from 'class-validator';
|
||||||
|
|
||||||
@ -21,10 +13,11 @@ import { TimelineCalendarEventService } from 'src/engine/core-modules/calendar/t
|
|||||||
import { UserService } from 'src/engine/core-modules/user/services/user.service';
|
import { UserService } from 'src/engine/core-modules/user/services/user.service';
|
||||||
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
||||||
import { NotFoundError } from 'src/engine/utils/graphql-errors.util';
|
import { NotFoundError } from 'src/engine/utils/graphql-errors.util';
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
|
|
||||||
@ArgsType()
|
@ArgsType()
|
||||||
class GetTimelineCalendarEventsFromPersonIdArgs {
|
class GetTimelineCalendarEventsFromPersonIdArgs {
|
||||||
@Field(() => ID)
|
@Field(() => UUIDScalarType)
|
||||||
personId: string;
|
personId: string;
|
||||||
|
|
||||||
@Field(() => Int)
|
@Field(() => Int)
|
||||||
@ -37,7 +30,7 @@ class GetTimelineCalendarEventsFromPersonIdArgs {
|
|||||||
|
|
||||||
@ArgsType()
|
@ArgsType()
|
||||||
class GetTimelineCalendarEventsFromCompanyIdArgs {
|
class GetTimelineCalendarEventsFromCompanyIdArgs {
|
||||||
@Field(() => ID)
|
@Field(() => UUIDScalarType)
|
||||||
companyId: string;
|
companyId: string;
|
||||||
|
|
||||||
@Field(() => Int)
|
@Field(() => Int)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { Field, ID, ObjectType } from '@nestjs/graphql';
|
import { Field, ObjectType } from '@nestjs/graphql';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Entity,
|
Entity,
|
||||||
@ -12,6 +12,7 @@ import {
|
|||||||
import { IDField } from '@ptc-org/nestjs-query-graphql';
|
import { IDField } from '@ptc-org/nestjs-query-graphql';
|
||||||
|
|
||||||
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
|
|
||||||
export enum FeatureFlagKeys {
|
export enum FeatureFlagKeys {
|
||||||
IsBlocklistEnabled = 'IS_BLOCKLIST_ENABLED',
|
IsBlocklistEnabled = 'IS_BLOCKLIST_ENABLED',
|
||||||
@ -26,7 +27,7 @@ export enum FeatureFlagKeys {
|
|||||||
@ObjectType('FeatureFlag')
|
@ObjectType('FeatureFlag')
|
||||||
@Unique('IndexOnKeyAndWorkspaceIdUnique', ['key', 'workspaceId'])
|
@Unique('IndexOnKeyAndWorkspaceIdUnique', ['key', 'workspaceId'])
|
||||||
export class FeatureFlagEntity {
|
export class FeatureFlagEntity {
|
||||||
@IDField(() => ID)
|
@IDField(() => UUIDScalarType)
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn('uuid')
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,13 @@
|
|||||||
import { ObjectType, Field, ID } from '@nestjs/graphql';
|
import { ObjectType, Field } from '@nestjs/graphql';
|
||||||
|
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
|
|
||||||
@ObjectType('TimelineThreadParticipant')
|
@ObjectType('TimelineThreadParticipant')
|
||||||
export class TimelineThreadParticipant {
|
export class TimelineThreadParticipant {
|
||||||
@Field(() => ID, { nullable: true })
|
@Field(() => UUIDScalarType, { nullable: true })
|
||||||
personId: string;
|
personId: string;
|
||||||
|
|
||||||
@Field(() => ID, { nullable: true })
|
@Field(() => UUIDScalarType, { nullable: true })
|
||||||
workspaceMemberId: string;
|
workspaceMemberId: string;
|
||||||
|
|
||||||
@Field()
|
@Field()
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
import { ObjectType, Field, ID } from '@nestjs/graphql';
|
import { ObjectType, Field } from '@nestjs/graphql';
|
||||||
|
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
import { TimelineThreadParticipant } from 'src/engine/core-modules/messaging/dtos/timeline-thread-participant.dto';
|
import { TimelineThreadParticipant } from 'src/engine/core-modules/messaging/dtos/timeline-thread-participant.dto';
|
||||||
|
|
||||||
@ObjectType('TimelineThread')
|
@ObjectType('TimelineThread')
|
||||||
export class TimelineThread {
|
export class TimelineThread {
|
||||||
@Field(() => ID)
|
@Field(() => UUIDScalarType)
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@Field()
|
@Field()
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
import {
|
import { Args, Query, Resolver, Int, ArgsType, Field } from '@nestjs/graphql';
|
||||||
Args,
|
|
||||||
Query,
|
|
||||||
Resolver,
|
|
||||||
Int,
|
|
||||||
ArgsType,
|
|
||||||
Field,
|
|
||||||
ID,
|
|
||||||
} from '@nestjs/graphql';
|
|
||||||
import { UseGuards } from '@nestjs/common';
|
import { UseGuards } from '@nestjs/common';
|
||||||
|
|
||||||
import { Max } from 'class-validator';
|
import { Max } from 'class-validator';
|
||||||
@ -20,10 +12,11 @@ import { TimelineThreadsWithTotal } from 'src/engine/core-modules/messaging/dtos
|
|||||||
import { AuthUser } from 'src/engine/decorators/auth/auth-user.decorator';
|
import { AuthUser } from 'src/engine/decorators/auth/auth-user.decorator';
|
||||||
import { UserService } from 'src/engine/core-modules/user/services/user.service';
|
import { UserService } from 'src/engine/core-modules/user/services/user.service';
|
||||||
import { User } from 'src/engine/core-modules/user/user.entity';
|
import { User } from 'src/engine/core-modules/user/user.entity';
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
|
|
||||||
@ArgsType()
|
@ArgsType()
|
||||||
class GetTimelineThreadsFromPersonIdArgs {
|
class GetTimelineThreadsFromPersonIdArgs {
|
||||||
@Field(() => ID)
|
@Field(() => UUIDScalarType)
|
||||||
personId: string;
|
personId: string;
|
||||||
|
|
||||||
@Field(() => Int)
|
@Field(() => Int)
|
||||||
@ -36,7 +29,7 @@ class GetTimelineThreadsFromPersonIdArgs {
|
|||||||
|
|
||||||
@ArgsType()
|
@ArgsType()
|
||||||
class GetTimelineThreadsFromCompanyIdArgs {
|
class GetTimelineThreadsFromCompanyIdArgs {
|
||||||
@Field(() => ID)
|
@Field(() => UUIDScalarType)
|
||||||
companyId: string;
|
companyId: string;
|
||||||
|
|
||||||
@Field(() => Int)
|
@Field(() => Int)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { Field, ID, ObjectType } from '@nestjs/graphql';
|
import { Field, ObjectType } from '@nestjs/graphql';
|
||||||
|
|
||||||
import { IDField } from '@ptc-org/nestjs-query-graphql';
|
import { IDField } from '@ptc-org/nestjs-query-graphql';
|
||||||
import {
|
import {
|
||||||
@ -14,12 +14,13 @@ import {
|
|||||||
|
|
||||||
import { User } from 'src/engine/core-modules/user/user.entity';
|
import { User } from 'src/engine/core-modules/user/user.entity';
|
||||||
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
|
|
||||||
@Entity({ name: 'userWorkspace', schema: 'core' })
|
@Entity({ name: 'userWorkspace', schema: 'core' })
|
||||||
@ObjectType('UserWorkspace')
|
@ObjectType('UserWorkspace')
|
||||||
@Unique('IndexOnUserIdAndWorkspaceIdUnique', ['userId', 'workspaceId'])
|
@Unique('IndexOnUserIdAndWorkspaceIdUnique', ['userId', 'workspaceId'])
|
||||||
export class UserWorkspace {
|
export class UserWorkspace {
|
||||||
@IDField(() => ID)
|
@IDField(() => UUIDScalarType)
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn('uuid')
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { ID, Field, ObjectType } from '@nestjs/graphql';
|
import { Field, ObjectType } from '@nestjs/graphql';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Entity,
|
Entity,
|
||||||
@ -15,11 +15,12 @@ import { AppToken } from 'src/engine/core-modules/app-token/app-token.entity';
|
|||||||
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
||||||
import { WorkspaceMember } from 'src/engine/core-modules/user/dtos/workspace-member.dto';
|
import { WorkspaceMember } from 'src/engine/core-modules/user/dtos/workspace-member.dto';
|
||||||
import { UserWorkspace } from 'src/engine/core-modules/user-workspace/user-workspace.entity';
|
import { UserWorkspace } from 'src/engine/core-modules/user-workspace/user-workspace.entity';
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
|
|
||||||
@Entity({ name: 'user', schema: 'core' })
|
@Entity({ name: 'user', schema: 'core' })
|
||||||
@ObjectType('User')
|
@ObjectType('User')
|
||||||
export class User {
|
export class User {
|
||||||
@IDField(() => ID)
|
@IDField(() => UUIDScalarType)
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn('uuid')
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { Field, ID, ObjectType } from '@nestjs/graphql';
|
import { Field, ObjectType } from '@nestjs/graphql';
|
||||||
|
|
||||||
import { IDField, UnPagedRelation } from '@ptc-org/nestjs-query-graphql';
|
import { IDField, UnPagedRelation } from '@ptc-org/nestjs-query-graphql';
|
||||||
import {
|
import {
|
||||||
@ -16,6 +16,7 @@ import { FeatureFlagEntity } from 'src/engine/core-modules/feature-flag/feature-
|
|||||||
import { BillingSubscription } from 'src/engine/core-modules/billing/entities/billing-subscription.entity';
|
import { BillingSubscription } from 'src/engine/core-modules/billing/entities/billing-subscription.entity';
|
||||||
import { UserWorkspace } from 'src/engine/core-modules/user-workspace/user-workspace.entity';
|
import { UserWorkspace } from 'src/engine/core-modules/user-workspace/user-workspace.entity';
|
||||||
import { AppToken } from 'src/engine/core-modules/app-token/app-token.entity';
|
import { AppToken } from 'src/engine/core-modules/app-token/app-token.entity';
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
|
|
||||||
@Entity({ name: 'workspace', schema: 'core' })
|
@Entity({ name: 'workspace', schema: 'core' })
|
||||||
@ObjectType('Workspace')
|
@ObjectType('Workspace')
|
||||||
@ -24,7 +25,7 @@ import { AppToken } from 'src/engine/core-modules/app-token/app-token.entity';
|
|||||||
nullable: true,
|
nullable: true,
|
||||||
})
|
})
|
||||||
export class Workspace {
|
export class Workspace {
|
||||||
@IDField(() => ID)
|
@IDField(() => UUIDScalarType)
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn('uuid')
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,13 @@
|
|||||||
import { InputType, ID } from '@nestjs/graphql';
|
import { InputType } from '@nestjs/graphql';
|
||||||
|
|
||||||
import { IDField } from '@ptc-org/nestjs-query-graphql';
|
import { IDField } from '@ptc-org/nestjs-query-graphql';
|
||||||
|
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
|
|
||||||
@InputType()
|
@InputType()
|
||||||
export class DeleteOneFieldInput {
|
export class DeleteOneFieldInput {
|
||||||
@IDField(() => ID, { description: 'The id of the field to delete.' })
|
@IDField(() => UUIDScalarType, {
|
||||||
|
description: 'The id of the field to delete.',
|
||||||
|
})
|
||||||
id!: string;
|
id!: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
Field,
|
Field,
|
||||||
HideField,
|
HideField,
|
||||||
ID,
|
|
||||||
ObjectType,
|
ObjectType,
|
||||||
registerEnumType,
|
registerEnumType,
|
||||||
} from '@nestjs/graphql';
|
} from '@nestjs/graphql';
|
||||||
@ -33,6 +32,7 @@ import { FieldMetadataType } from 'src/engine/metadata-modules/field-metadata/fi
|
|||||||
import { IsFieldMetadataDefaultValue } from 'src/engine/metadata-modules/field-metadata/validators/is-field-metadata-default-value.validator';
|
import { IsFieldMetadataDefaultValue } from 'src/engine/metadata-modules/field-metadata/validators/is-field-metadata-default-value.validator';
|
||||||
import { IsFieldMetadataOptions } from 'src/engine/metadata-modules/field-metadata/validators/is-field-metadata-options.validator';
|
import { IsFieldMetadataOptions } from 'src/engine/metadata-modules/field-metadata/validators/is-field-metadata-options.validator';
|
||||||
import { IsValidMetadataName } from 'src/engine/decorators/metadata/is-valid-metadata-name.decorator';
|
import { IsValidMetadataName } from 'src/engine/decorators/metadata/is-valid-metadata-name.decorator';
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
|
|
||||||
registerEnumType(FieldMetadataType, {
|
registerEnumType(FieldMetadataType, {
|
||||||
name: 'FieldMetadataType',
|
name: 'FieldMetadataType',
|
||||||
@ -61,7 +61,7 @@ export class FieldMetadataDTO<
|
|||||||
> {
|
> {
|
||||||
@IsUUID()
|
@IsUUID()
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
@IDField(() => ID)
|
@IDField(() => UUIDScalarType)
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@IsEnum(FieldMetadataType)
|
@IsEnum(FieldMetadataType)
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
Field,
|
Field,
|
||||||
HideField,
|
HideField,
|
||||||
ID,
|
|
||||||
InputType,
|
InputType,
|
||||||
OmitType,
|
OmitType,
|
||||||
PartialType,
|
PartialType,
|
||||||
@ -10,6 +9,7 @@ import {
|
|||||||
import { Type } from 'class-transformer';
|
import { Type } from 'class-transformer';
|
||||||
import { IsNotEmpty, IsUUID, ValidateNested } from 'class-validator';
|
import { IsNotEmpty, IsUUID, ValidateNested } from 'class-validator';
|
||||||
|
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
import { FieldMetadataDTO } from 'src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto';
|
import { FieldMetadataDTO } from 'src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto';
|
||||||
|
|
||||||
@InputType()
|
@InputType()
|
||||||
@ -28,7 +28,9 @@ export class UpdateFieldInput extends OmitType(
|
|||||||
export class UpdateOneFieldMetadataInput {
|
export class UpdateOneFieldMetadataInput {
|
||||||
@IsUUID()
|
@IsUUID()
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
@Field(() => ID, { description: 'The id of the record to update' })
|
@Field(() => UUIDScalarType, {
|
||||||
|
description: 'The id of the record to update',
|
||||||
|
})
|
||||||
id!: string;
|
id!: string;
|
||||||
|
|
||||||
@Type(() => UpdateFieldInput)
|
@Type(() => UpdateFieldInput)
|
||||||
|
|||||||
@ -1,12 +1,15 @@
|
|||||||
import { ID, InputType } from '@nestjs/graphql';
|
import { InputType } from '@nestjs/graphql';
|
||||||
|
|
||||||
import { BeforeDeleteOne, IDField } from '@ptc-org/nestjs-query-graphql';
|
import { BeforeDeleteOne, IDField } from '@ptc-org/nestjs-query-graphql';
|
||||||
|
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
import { BeforeDeleteOneObject } from 'src/engine/metadata-modules/object-metadata/hooks/before-delete-one-object.hook';
|
import { BeforeDeleteOneObject } from 'src/engine/metadata-modules/object-metadata/hooks/before-delete-one-object.hook';
|
||||||
|
|
||||||
@InputType()
|
@InputType()
|
||||||
@BeforeDeleteOne(BeforeDeleteOneObject)
|
@BeforeDeleteOne(BeforeDeleteOneObject)
|
||||||
export class DeleteOneObjectInput {
|
export class DeleteOneObjectInput {
|
||||||
@IDField(() => ID, { description: 'The id of the record to delete.' })
|
@IDField(() => UUIDScalarType, {
|
||||||
|
description: 'The id of the record to delete.',
|
||||||
|
})
|
||||||
id!: string;
|
id!: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { ObjectType, ID, Field, HideField } from '@nestjs/graphql';
|
import { ObjectType, Field, HideField } from '@nestjs/graphql';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Authorize,
|
Authorize,
|
||||||
@ -9,6 +9,7 @@ import {
|
|||||||
QueryOptions,
|
QueryOptions,
|
||||||
} from '@ptc-org/nestjs-query-graphql';
|
} from '@ptc-org/nestjs-query-graphql';
|
||||||
|
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
import { FieldMetadataDTO } from 'src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto';
|
import { FieldMetadataDTO } from 'src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto';
|
||||||
import { BeforeDeleteOneObject } from 'src/engine/metadata-modules/object-metadata/hooks/before-delete-one-object.hook';
|
import { BeforeDeleteOneObject } from 'src/engine/metadata-modules/object-metadata/hooks/before-delete-one-object.hook';
|
||||||
|
|
||||||
@ -26,7 +27,7 @@ import { BeforeDeleteOneObject } from 'src/engine/metadata-modules/object-metada
|
|||||||
@BeforeDeleteOne(BeforeDeleteOneObject)
|
@BeforeDeleteOne(BeforeDeleteOneObject)
|
||||||
@CursorConnection('fields', () => FieldMetadataDTO)
|
@CursorConnection('fields', () => FieldMetadataDTO)
|
||||||
export class ObjectMetadataDTO {
|
export class ObjectMetadataDTO {
|
||||||
@IDField(() => ID)
|
@IDField(() => UUIDScalarType)
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@Field()
|
@Field()
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
ObjectType,
|
ObjectType,
|
||||||
ID,
|
|
||||||
Field,
|
Field,
|
||||||
HideField,
|
HideField,
|
||||||
registerEnumType,
|
registerEnumType,
|
||||||
@ -18,6 +17,7 @@ import {
|
|||||||
import { ObjectMetadataDTO } from 'src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto';
|
import { ObjectMetadataDTO } from 'src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto';
|
||||||
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
|
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
|
||||||
import { BeforeDeleteOneRelation } from 'src/engine/metadata-modules/relation-metadata/hooks/before-delete-one-relation.hook';
|
import { BeforeDeleteOneRelation } from 'src/engine/metadata-modules/relation-metadata/hooks/before-delete-one-relation.hook';
|
||||||
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||||
|
|
||||||
registerEnumType(RelationMetadataType, {
|
registerEnumType(RelationMetadataType, {
|
||||||
name: 'RelationMetadataType',
|
name: 'RelationMetadataType',
|
||||||
@ -40,7 +40,7 @@ registerEnumType(RelationMetadataType, {
|
|||||||
@Relation('fromObjectMetadata', () => ObjectMetadataDTO)
|
@Relation('fromObjectMetadata', () => ObjectMetadataDTO)
|
||||||
@Relation('toObjectMetadata', () => ObjectMetadataDTO)
|
@Relation('toObjectMetadata', () => ObjectMetadataDTO)
|
||||||
export class RelationMetadataDTO {
|
export class RelationMetadataDTO {
|
||||||
@IDField(() => ID)
|
@IDField(() => UUIDScalarType)
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@Field(() => RelationMetadataType)
|
@Field(() => RelationMetadataType)
|
||||||
|
|||||||
Reference in New Issue
Block a user