Skip to content

The open alternative to Salesforce, designed for AI.

feat: onboarding & profile edition (#507)

Jérémy M1144bd13ed08
diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml
index 48003607639..aa933a0a4a8 100644
--- a/.github/workflows/ci-front.yaml
+++ b/.github/workflows/ci-front.yaml
@@ -36,12 +36,12 @@ jobs:
- name: Front / Run linter
run: cd front && yarn lint
- name: Front / Build Storybook
- run: cd front && yarn build-storybook --quiet
+ run: cd front && yarn storybook:build --quiet
- name: Front / Run storybook tests
run: |
cd front && npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --silent --port 6006" \
- "yarn coverage-storybook"
+ "yarn storybook:coverage"
- name: Front / Run jest tests
run: |
cd front && yarn test
diff --git a/front/package.json b/front/package.json
index c49c90d42ed..3c27b8d5431 100644
--- a/front/package.json
+++ b/front/package.json
@@ -25,6 +25,7 @@
"js-cookie": "^3.0.5",
"jwt-decode": "^3.1.2",
"libphonenumber-js": "^1.10.26",
+ "lodash.debounce": "^4.0.8",
"luxon": "^3.3.0",
"react": "^18.2.0",
"react-datepicker": "^4.11.0",
@@ -46,10 +47,12 @@
"test": "craco test",
"coverage": "craco test --coverage .",
"lint": "eslint src --max-warnings=0",
- "storybook": "storybook dev -p 6006 -s ../public",
- "test-storybook": "test-storybook",
- "build-storybook": "storybook build -s public",
- "coverage-storybook": "test-storybook --coverage && npx nyc report --reporter=lcov -t coverage/storybook --report-dir coverage/storybook --check-coverage",
+ "storybook:dev": "storybook dev -p 6006 -s ../public",
+ "storybook:test": "test-storybook",
+ "storybook:build": "storybook build -s public",
+ "storybook:coverage": "test-storybook --coverage && npx nyc report --reporter=lcov -t coverage/storybook --report-dir coverage/storybook --check-coverage",
+ "build-storybook": "yarn storybook:build",
+ "coverage-storybook": "yarn storybook:coverage",
"graphql:generate": "dotenv cross-var graphql-codegen --config codegen.js",
"chromatic": "dotenv cross-var npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN"
},
@@ -115,6 +118,7 @@
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/js-cookie": "^3.0.3",
+ "@types/lodash.debounce": "^4.0.7",
"@types/luxon": "^3.3.0",
"@types/react-datepicker": "^4.11.2",
"@types/scroll-into-view": "^1.16.0",
diff --git a/front/src/App.tsx b/front/src/App.tsx
index 3d8dd82dd2c..b6c052c8ebb 100644
--- a/front/src/App.tsx
+++ b/front/src/App.tsx
@@ -2,8 +2,8 @@ import { Navigate, Route, Routes, useLocation } from 'react-router-dom';
import { AnimatePresence, LayoutGroup } from 'framer-motion';
import { useTrackPageView } from '@/analytics/hooks/useTrackPageView';
-import { RequireAuth } from '@/auth/components/RequireAuth';
-import { RequireNotAuth } from '@/auth/components/RequireNotAuth';
+import { RequireOnboarded } from '@/auth/components/RequireOnboarded';
+import { RequireOnboarding } from '@/auth/components/RequireOnboarding';
import { AuthModal } from '@/auth/components/ui/Modal';
import { useGoToHotkeys } from '@/hotkeys/hooks/useGoToHotkeys';
import { AuthLayout } from '@/ui/layout/AuthLayout';
@@ -52,10 +52,20 @@ export function App() {
return (
<DefaultLayout>
<Routes>
+ <Route
+ path="auth/*"
+ element={
+ <RequireOnboarding>
+ <AuthLayout>
+ <AuthRoutes />
+ </AuthLayout>
+ </RequireOnboarding>
+ }
+ />
<Route
path="*"
element={
- <RequireAuth>
+ <RequireOnboarded>
<Routes>
<Route path="" element={<Navigate to="/people" replace />} />
<Route path="people" element={<People />} />
@@ -70,17 +80,7 @@ export function App() {
}
/>
</Routes>
- </RequireAuth>
- }
- />
- <Route
- path="auth/*"
- element={
- <RequireNotAuth>
- <AuthLayout>
- <AuthRoutes />
- </AuthLayout>
- </RequireNotAuth>
+ </RequireOnboarded>
}
/>
</Routes>
diff --git a/front/src/generated/graphql.tsx b/front/src/generated/graphql.tsx
index 7ed07e6fd8b..3e9ef86c112 100644
--- a/front/src/generated/graphql.tsx
+++ b/front/src/generated/graphql.tsx
@@ -15,6 +15,7 @@ export type Scalars = {
Float: number;
DateTime: string;
JSON: any;
+ Upload: any;
};
export type AffectedRows = {
@@ -54,6 +55,12 @@ export type BoolFilter = {
not?: InputMaybe<NestedBoolFilter>;
};
+export type ClientConfig = {
+ __typename?: 'ClientConfig';
+ display_google_login: Scalars['Boolean'];
+ prefill_login_with_seed: Scalars['Boolean'];
+};
+
export type Comment = {
__typename?: 'Comment';
author: User;
@@ -75,6 +82,19 @@ export type CommentCreateInput = {
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
+export type CommentCreateManyAuthorInput = {
+ body: Scalars['String'];
+ commentThreadId: Scalars['String'];
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type CommentCreateManyAuthorInputEnvelope = {
+ data: Array<CommentCreateManyAuthorInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
+};
+
export type CommentCreateManyCommentThreadInput = {
authorId: Scalars['String'];
body: Scalars['String'];
@@ -88,15 +108,54 @@ export type CommentCreateManyCommentThreadInputEnvelope = {
skipDuplicates?: InputMaybe<Scalars['Boolean']>;
};
+export type CommentCreateManyWorkspaceInput = {
+ authorId: Scalars['String'];
+ body: Scalars['String'];
+ commentThreadId: Scalars['String'];
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type CommentCreateManyWorkspaceInputEnvelope = {
+ data: Array<CommentCreateManyWorkspaceInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
+};
+
+export type CommentCreateNestedManyWithoutAuthorInput = {
+ connect?: InputMaybe<Array<CommentWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<CommentCreateOrConnectWithoutAuthorInput>>;
+ create?: InputMaybe<Array<CommentCreateWithoutAuthorInput>>;
+ createMany?: InputMaybe<CommentCreateManyAuthorInputEnvelope>;
+};
+
export type CommentCreateNestedManyWithoutCommentThreadInput = {
createMany?: InputMaybe<CommentCreateManyCommentThreadInputEnvelope>;
};
+export type CommentCreateOrConnectWithoutAuthorInput = {
+ create: CommentCreateWithoutAuthorInput;
+ where: CommentWhereUniqueInput;
+};
+
export type CommentCreateOrConnectWithoutCommentThreadInput = {
create: CommentCreateWithoutCommentThreadInput;
where: CommentWhereUniqueInput;
};
+export type CommentCreateOrConnectWithoutWorkspaceInput = {
+ create: CommentCreateWithoutWorkspaceInput;
+ where: CommentWhereUniqueInput;
+};
+
+export type CommentCreateWithoutAuthorInput = {
+ body: Scalars['String'];
+ commentThread: CommentThreadCreateNestedOneWithoutCommentsInput;
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
export type CommentCreateWithoutCommentThreadInput = {
author: UserCreateNestedOneWithoutCommentsInput;
body: Scalars['String'];
@@ -105,6 +164,15 @@ export type CommentCreateWithoutCommentThreadInput = {
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
+export type CommentCreateWithoutWorkspaceInput = {
+ author: UserCreateNestedOneWithoutCommentsInput;
+ body: Scalars['String'];
+ commentThread: CommentThreadCreateNestedOneWithoutCommentsInput;
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
export type CommentListRelationFilter = {
every?: InputMaybe<CommentWhereInput>;
none?: InputMaybe<CommentWhereInput>;
@@ -144,10 +212,46 @@ export type CommentThreadCreateInput = {
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
+export type CommentThreadCreateManyWorkspaceInput = {
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type CommentThreadCreateManyWorkspaceInputEnvelope = {
+ data: Array<CommentThreadCreateManyWorkspaceInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
+};
+
export type CommentThreadCreateNestedOneWithoutCommentsInput = {
connect?: InputMaybe<CommentThreadWhereUniqueInput>;
};
+export type CommentThreadCreateOrConnectWithoutCommentsInput = {
+ create: CommentThreadCreateWithoutCommentsInput;
+ where: CommentThreadWhereUniqueInput;
+};
+
+export type CommentThreadCreateOrConnectWithoutWorkspaceInput = {
+ create: CommentThreadCreateWithoutWorkspaceInput;
+ where: CommentThreadWhereUniqueInput;
+};
+
+export type CommentThreadCreateWithoutCommentsInput = {
+ commentThreadTargets?: InputMaybe<CommentThreadTargetCreateNestedManyWithoutCommentThreadInput>;
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type CommentThreadCreateWithoutWorkspaceInput = {
+ commentThreadTargets?: InputMaybe<CommentThreadTargetCreateNestedManyWithoutCommentThreadInput>;
+ comments?: InputMaybe<CommentCreateNestedManyWithoutCommentThreadInput>;
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
export type CommentThreadOrderByWithRelationInput = {
commentThreadTargets?: InputMaybe<CommentThreadTargetOrderByRelationAggregateInput>;
comments?: InputMaybe<CommentOrderByRelationAggregateInput>;
@@ -169,6 +273,15 @@ export enum CommentThreadScalarFieldEnum {
WorkspaceId = 'workspaceId'
}
+export type CommentThreadScalarWhereInput = {
+ AND?: InputMaybe<Array<CommentThreadScalarWhereInput>>;
+ NOT?: InputMaybe<Array<CommentThreadScalarWhereInput>>;
+ OR?: InputMaybe<Array<CommentThreadScalarWhereInput>>;
+ createdAt?: InputMaybe<DateTimeFilter>;
+ id?: InputMaybe<StringFilter>;
+ updatedAt?: InputMaybe<DateTimeFilter>;
+};
+
export type CommentThreadTarget = {
__typename?: 'CommentThreadTarget';
commentThread: CommentThread;
@@ -303,6 +416,70 @@ export type CommentThreadUpdateInput = {
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
+export type CommentThreadUpdateManyMutationInput = {
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type CommentThreadUpdateManyWithWhereWithoutWorkspaceInput = {
+ data: CommentThreadUpdateManyMutationInput;
+ where: CommentThreadScalarWhereInput;
+};
+
+export type CommentThreadUpdateManyWithoutWorkspaceNestedInput = {
+ connect?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<CommentThreadCreateOrConnectWithoutWorkspaceInput>>;
+ create?: InputMaybe<Array<CommentThreadCreateWithoutWorkspaceInput>>;
+ createMany?: InputMaybe<CommentThreadCreateManyWorkspaceInputEnvelope>;
+ delete?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<CommentThreadScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ set?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ update?: InputMaybe<Array<CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput>>;
+ updateMany?: InputMaybe<Array<CommentThreadUpdateManyWithWhereWithoutWorkspaceInput>>;
+ upsert?: InputMaybe<Array<CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput>>;
+};
+
+export type CommentThreadUpdateOneRequiredWithoutCommentsNestedInput = {
+ connect?: InputMaybe<CommentThreadWhereUniqueInput>;
+ connectOrCreate?: InputMaybe<CommentThreadCreateOrConnectWithoutCommentsInput>;
+ create?: InputMaybe<CommentThreadCreateWithoutCommentsInput>;
+ update?: InputMaybe<CommentThreadUpdateWithoutCommentsInput>;
+ upsert?: InputMaybe<CommentThreadUpsertWithoutCommentsInput>;
+};
+
+export type CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput = {
+ data: CommentThreadUpdateWithoutWorkspaceInput;
+ where: CommentThreadWhereUniqueInput;
+};
+
+export type CommentThreadUpdateWithoutCommentsInput = {
+ commentThreadTargets?: InputMaybe<CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type CommentThreadUpdateWithoutWorkspaceInput = {
+ commentThreadTargets?: InputMaybe<CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput>;
+ comments?: InputMaybe<CommentUpdateManyWithoutCommentThreadNestedInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput = {
+ create: CommentThreadCreateWithoutWorkspaceInput;
+ update: CommentThreadUpdateWithoutWorkspaceInput;
+ where: CommentThreadWhereUniqueInput;
+};
+
+export type CommentThreadUpsertWithoutCommentsInput = {
+ create: CommentThreadCreateWithoutCommentsInput;
+ update: CommentThreadUpdateWithoutCommentsInput;
+};
+
export type CommentThreadWhereInput = {
AND?: InputMaybe<Array<CommentThreadWhereInput>>;
NOT?: InputMaybe<Array<CommentThreadWhereInput>>;
@@ -325,11 +502,35 @@ export type CommentUpdateManyMutationInput = {
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
+export type CommentUpdateManyWithWhereWithoutAuthorInput = {
+ data: CommentUpdateManyMutationInput;
+ where: CommentScalarWhereInput;
+};
+
export type CommentUpdateManyWithWhereWithoutCommentThreadInput = {
data: CommentUpdateManyMutationInput;
where: CommentScalarWhereInput;
};
+export type CommentUpdateManyWithWhereWithoutWorkspaceInput = {
+ data: CommentUpdateManyMutationInput;
+ where: CommentScalarWhereInput;
+};
+
+export type CommentUpdateManyWithoutAuthorNestedInput = {
+ connect?: InputMaybe<Array<CommentWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<CommentCreateOrConnectWithoutAuthorInput>>;
+ create?: InputMaybe<Array<CommentCreateWithoutAuthorInput>>;
+ createMany?: InputMaybe<CommentCreateManyAuthorInputEnvelope>;
+ delete?: InputMaybe<Array<CommentWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<CommentScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<CommentWhereUniqueInput>>;
+ set?: InputMaybe<Array<CommentWhereUniqueInput>>;
+ update?: InputMaybe<Array<CommentUpdateWithWhereUniqueWithoutAuthorInput>>;
+ updateMany?: InputMaybe<Array<CommentUpdateManyWithWhereWithoutAuthorInput>>;
+ upsert?: InputMaybe<Array<CommentUpsertWithWhereUniqueWithoutAuthorInput>>;
+};
+
export type CommentUpdateManyWithoutCommentThreadNestedInput = {
connect?: InputMaybe<Array<CommentWhereUniqueInput>>;
connectOrCreate?: InputMaybe<Array<CommentCreateOrConnectWithoutCommentThreadInput>>;
@@ -344,11 +545,43 @@ export type CommentUpdateManyWithoutCommentThreadNestedInput = {
upsert?: InputMaybe<Array<CommentUpsertWithWhereUniqueWithoutCommentThreadInput>>;
};
+export type CommentUpdateManyWithoutWorkspaceNestedInput = {
+ connect?: InputMaybe<Array<CommentWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<CommentCreateOrConnectWithoutWorkspaceInput>>;
+ create?: InputMaybe<Array<CommentCreateWithoutWorkspaceInput>>;
+ createMany?: InputMaybe<CommentCreateManyWorkspaceInputEnvelope>;
+ delete?: InputMaybe<Array<CommentWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<CommentScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<CommentWhereUniqueInput>>;
+ set?: InputMaybe<Array<CommentWhereUniqueInput>>;
+ update?: InputMaybe<Array<CommentUpdateWithWhereUniqueWithoutWorkspaceInput>>;
+ updateMany?: InputMaybe<Array<CommentUpdateManyWithWhereWithoutWorkspaceInput>>;
+ upsert?: InputMaybe<Array<CommentUpsertWithWhereUniqueWithoutWorkspaceInput>>;
+};
+
+export type CommentUpdateWithWhereUniqueWithoutAuthorInput = {
+ data: CommentUpdateWithoutAuthorInput;
+ where: CommentWhereUniqueInput;
+};
+
export type CommentUpdateWithWhereUniqueWithoutCommentThreadInput = {
data: CommentUpdateWithoutCommentThreadInput;
where: CommentWhereUniqueInput;
};
+export type CommentUpdateWithWhereUniqueWithoutWorkspaceInput = {
+ data: CommentUpdateWithoutWorkspaceInput;
+ where: CommentWhereUniqueInput;
+};
+
+export type CommentUpdateWithoutAuthorInput = {
+ body?: InputMaybe<StringFieldUpdateOperationsInput>;
+ commentThread?: InputMaybe<CommentThreadUpdateOneRequiredWithoutCommentsNestedInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
export type CommentUpdateWithoutCommentThreadInput = {
author?: InputMaybe<UserUpdateOneRequiredWithoutCommentsNestedInput>;
body?: InputMaybe<StringFieldUpdateOperationsInput>;
@@ -357,12 +590,33 @@ export type CommentUpdateWithoutCommentThreadInput = {
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
+export type CommentUpdateWithoutWorkspaceInput = {
+ author?: InputMaybe<UserUpdateOneRequiredWithoutCommentsNestedInput>;
+ body?: InputMaybe<StringFieldUpdateOperationsInput>;
+ commentThread?: InputMaybe<CommentThreadUpdateOneRequiredWithoutCommentsNestedInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type CommentUpsertWithWhereUniqueWithoutAuthorInput = {
+ create: CommentCreateWithoutAuthorInput;
+ update: CommentUpdateWithoutAuthorInput;
+ where: CommentWhereUniqueInput;
+};
+
export type CommentUpsertWithWhereUniqueWithoutCommentThreadInput = {
create: CommentCreateWithoutCommentThreadInput;
update: CommentUpdateWithoutCommentThreadInput;
where: CommentWhereUniqueInput;
};
+export type CommentUpsertWithWhereUniqueWithoutWorkspaceInput = {
+ create: CommentCreateWithoutWorkspaceInput;
+ update: CommentUpdateWithoutWorkspaceInput;
+ where: CommentWhereUniqueInput;
+};
+
export type CommentWhereInput = {
AND?: InputMaybe<Array<CommentWhereInput>>;
NOT?: InputMaybe<Array<CommentWhereInput>>;
@@ -430,6 +684,22 @@ export type CompanyCreateManyAccountOwnerInputEnvelope = {
skipDuplicates?: InputMaybe<Scalars['Boolean']>;
};
+export type CompanyCreateManyWorkspaceInput = {
+ accountOwnerId?: InputMaybe<Scalars['String']>;
+ address: Scalars['String'];
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ domainName: Scalars['String'];
+ employees?: InputMaybe<Scalars['Int']>;
+ id?: InputMaybe<Scalars['String']>;
+ name: Scalars['String'];
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type CompanyCreateManyWorkspaceInputEnvelope = {
+ data: Array<CompanyCreateManyWorkspaceInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
+};
+
export type CompanyCreateNestedManyWithoutAccountOwnerInput = {
connect?: InputMaybe<Array<CompanyWhereUniqueInput>>;
connectOrCreate?: InputMaybe<Array<CompanyCreateOrConnectWithoutAccountOwnerInput>>;
@@ -446,6 +716,11 @@ export type CompanyCreateOrConnectWithoutAccountOwnerInput = {
where: CompanyWhereUniqueInput;
};
+export type CompanyCreateOrConnectWithoutWorkspaceInput = {
+ create: CompanyCreateWithoutWorkspaceInput;
+ where: CompanyWhereUniqueInput;
+};
+
export type CompanyCreateWithoutAccountOwnerInput = {
address: Scalars['String'];
createdAt?: InputMaybe<Scalars['DateTime']>;
@@ -457,6 +732,18 @@ export type CompanyCreateWithoutAccountOwnerInput = {
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
+export type CompanyCreateWithoutWorkspaceInput = {
+ accountOwner?: InputMaybe<UserCreateNestedOneWithoutCompaniesInput>;
+ address: Scalars['String'];
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ domainName: Scalars['String'];
+ employees?: InputMaybe<Scalars['Int']>;
+ id?: InputMaybe<Scalars['String']>;
+ name: Scalars['String'];
+ people?: InputMaybe<PersonCreateNestedManyWithoutCompanyInput>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
export type CompanyListRelationFilter = {
every?: InputMaybe<CompanyWhereInput>;
none?: InputMaybe<CompanyWhereInput>;
@@ -539,6 +826,11 @@ export type CompanyUpdateManyWithWhereWithoutAccountOwnerInput = {
where: CompanyScalarWhereInput;
};
+export type CompanyUpdateManyWithWhereWithoutWorkspaceInput = {
+ data: CompanyUpdateManyMutationInput;
+ where: CompanyScalarWhereInput;
+};
+
export type CompanyUpdateManyWithoutAccountOwnerNestedInput = {
connect?: InputMaybe<Array<CompanyWhereUniqueInput>>;
connectOrCreate?: InputMaybe<Array<CompanyCreateOrConnectWithoutAccountOwnerInput>>;
@@ -553,6 +845,20 @@ export type CompanyUpdateManyWithoutAccountOwnerNestedInput = {
upsert?: InputMaybe<Array<CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput>>;
};
+export type CompanyUpdateManyWithoutWorkspaceNestedInput = {
+ connect?: InputMaybe<Array<CompanyWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<CompanyCreateOrConnectWithoutWorkspaceInput>>;
+ create?: InputMaybe<Array<CompanyCreateWithoutWorkspaceInput>>;
+ createMany?: InputMaybe<CompanyCreateManyWorkspaceInputEnvelope>;
+ delete?: InputMaybe<Array<CompanyWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<CompanyScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<CompanyWhereUniqueInput>>;
+ set?: InputMaybe<Array<CompanyWhereUniqueInput>>;
+ update?: InputMaybe<Array<CompanyUpdateWithWhereUniqueWithoutWorkspaceInput>>;
+ updateMany?: InputMaybe<Array<CompanyUpdateManyWithWhereWithoutWorkspaceInput>>;
+ upsert?: InputMaybe<Array<CompanyUpsertWithWhereUniqueWithoutWorkspaceInput>>;
+};
+
export type CompanyUpdateOneWithoutPeopleNestedInput = {
connect?: InputMaybe<CompanyWhereUniqueInput>;
};
@@ -562,6 +868,11 @@ export type CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput = {
where: CompanyWhereUniqueInput;
};
+export type CompanyUpdateWithWhereUniqueWithoutWorkspaceInput = {
+ data: CompanyUpdateWithoutWorkspaceInput;
+ where: CompanyWhereUniqueInput;
+};
+
export type CompanyUpdateWithoutAccountOwnerInput = {
address?: InputMaybe<StringFieldUpdateOperationsInput>;
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
@@ -573,12 +884,30 @@ export type CompanyUpdateWithoutAccountOwnerInput = {
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
+export type CompanyUpdateWithoutWorkspaceInput = {
+ accountOwner?: InputMaybe<UserUpdateOneWithoutCompaniesNestedInput>;
+ address?: InputMaybe<StringFieldUpdateOperationsInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ domainName?: InputMaybe<StringFieldUpdateOperationsInput>;
+ employees?: InputMaybe<NullableIntFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ name?: InputMaybe<StringFieldUpdateOperationsInput>;
+ people?: InputMaybe<PersonUpdateManyWithoutCompanyNestedInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
export type CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput = {
create: CompanyCreateWithoutAccountOwnerInput;
update: CompanyUpdateWithoutAccountOwnerInput;
where: CompanyWhereUniqueInput;
};
+export type CompanyUpsertWithWhereUniqueWithoutWorkspaceInput = {
+ create: CompanyCreateWithoutWorkspaceInput;
+ update: CompanyUpdateWithoutWorkspaceInput;
+ where: CompanyWhereUniqueInput;
+};
+
export type CompanyWhereInput = {
AND?: InputMaybe<Array<CompanyWhereInput>>;
NOT?: InputMaybe<Array<CompanyWhereInput>>;
@@ -647,6 +976,10 @@ export type EnumPipelineProgressableTypeFilter = {
notIn?: InputMaybe<Array<PipelineProgressableType>>;
};
+export enum FileFolder {
+ ProfilePicture = 'ProfilePicture'
+}
+
export type IntNullableFilter = {
equals?: InputMaybe<Scalars['Int']>;
gt?: InputMaybe<Scalars['Int']>;
@@ -697,6 +1030,10 @@ export type Mutation = {
updateOneCompany?: Maybe<Company>;
updateOnePerson?: Maybe<Person>;
updateOnePipelineProgress?: Maybe<PipelineProgress>;
+ updateUser: User;
+ updateWorkspace: Workspace;
+ uploadFile: Scalars['String'];
+ uploadImage: Scalars['String'];
verify: Verify;
};
@@ -787,6 +1124,29 @@ export type MutationUpdateOnePipelineProgressArgs = {
};
+export type MutationUpdateUserArgs = {
+ data: UserUpdateInput;
+ where: UserWhereUniqueInput;
+};
+
+
+export type MutationUpdateWorkspaceArgs = {
+ data: WorkspaceUpdateInput;
+};
+
+
+export type MutationUploadFileArgs = {
+ file: Scalars['Upload'];
+ fileFolder?: InputMaybe<FileFolder>;
+};
+
+
+export type MutationUploadImageArgs = {
+ file: Scalars['Upload'];
+ fileFolder?: InputMaybe<FileFolder>;
+};
+
+
export type MutationVerifyArgs = {
loginToken: Scalars['String'];
};
@@ -916,27 +1276,61 @@ export type PersonCreateInput = {
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
-export type PersonCreateNestedManyWithoutCompanyInput = {
- connect?: InputMaybe<Array<PersonWhereUniqueInput>>;
+export type PersonCreateManyWorkspaceInput = {
+ city: Scalars['String'];
+ companyId?: InputMaybe<Scalars['String']>;
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ email: Scalars['String'];
+ firstName: Scalars['String'];
+ id?: InputMaybe<Scalars['String']>;
+ lastName: Scalars['String'];
+ phone: Scalars['String'];
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
};
-export type PersonListRelationFilter = {
- every?: InputMaybe<PersonWhereInput>;
- none?: InputMaybe<PersonWhereInput>;
- some?: InputMaybe<PersonWhereInput>;
+export type PersonCreateManyWorkspaceInputEnvelope = {
+ data: Array<PersonCreateManyWorkspaceInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
};
-export type PersonOrderByRelationAggregateInput = {
- _count?: InputMaybe<SortOrder>;
+export type PersonCreateNestedManyWithoutCompanyInput = {
+ connect?: InputMaybe<Array<PersonWhereUniqueInput>>;
};
-export type PersonOrderByWithRelationInput = {
- city?: InputMaybe<SortOrder>;
- company?: InputMaybe<CompanyOrderByWithRelationInput>;
- companyId?: InputMaybe<SortOrder>;
- createdAt?: InputMaybe<SortOrder>;
- email?: InputMaybe<SortOrder>;
- firstName?: InputMaybe<SortOrder>;
+export type PersonCreateOrConnectWithoutWorkspaceInput = {
+ create: PersonCreateWithoutWorkspaceInput;
+ where: PersonWhereUniqueInput;
+};
+
+export type PersonCreateWithoutWorkspaceInput = {
+ city: Scalars['String'];
+ company?: InputMaybe<CompanyCreateNestedOneWithoutPeopleInput>;
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ email: Scalars['String'];
+ firstName: Scalars['String'];
+ id?: InputMaybe<Scalars['String']>;
+ lastName: Scalars['String'];
+ phone: Scalars['String'];
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type PersonListRelationFilter = {
+ every?: InputMaybe<PersonWhereInput>;
+ none?: InputMaybe<PersonWhereInput>;
+ some?: InputMaybe<PersonWhereInput>;
+};
+
+export type PersonOrderByRelationAggregateInput = {
+ _count?: InputMaybe<SortOrder>;
+};
+
+export type PersonOrderByWithRelationInput = {
+ city?: InputMaybe<SortOrder>;
+ company?: InputMaybe<CompanyOrderByWithRelationInput>;
+ companyId?: InputMaybe<SortOrder>;
+ createdAt?: InputMaybe<SortOrder>;
+ email?: InputMaybe<SortOrder>;
+ firstName?: InputMaybe<SortOrder>;
id?: InputMaybe<SortOrder>;
lastName?: InputMaybe<SortOrder>;
phone?: InputMaybe<SortOrder>;
@@ -957,6 +1351,21 @@ export enum PersonScalarFieldEnum {
WorkspaceId = 'workspaceId'
}
+export type PersonScalarWhereInput = {
+ AND?: InputMaybe<Array<PersonScalarWhereInput>>;
+ NOT?: InputMaybe<Array<PersonScalarWhereInput>>;
+ OR?: InputMaybe<Array<PersonScalarWhereInput>>;
+ city?: InputMaybe<StringFilter>;
+ companyId?: InputMaybe<StringNullableFilter>;
+ createdAt?: InputMaybe<DateTimeFilter>;
+ email?: InputMaybe<StringFilter>;
+ firstName?: InputMaybe<StringFilter>;
+ id?: InputMaybe<StringFilter>;
+ lastName?: InputMaybe<StringFilter>;
+ phone?: InputMaybe<StringFilter>;
+ updatedAt?: InputMaybe<DateTimeFilter>;
+};
+
export type PersonUpdateInput = {
city?: InputMaybe<StringFieldUpdateOperationsInput>;
company?: InputMaybe<CompanyUpdateOneWithoutPeopleNestedInput>;
@@ -969,10 +1378,63 @@ export type PersonUpdateInput = {
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
+export type PersonUpdateManyMutationInput = {
+ city?: InputMaybe<StringFieldUpdateOperationsInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ email?: InputMaybe<StringFieldUpdateOperationsInput>;
+ firstName?: InputMaybe<StringFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ lastName?: InputMaybe<StringFieldUpdateOperationsInput>;
+ phone?: InputMaybe<StringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type PersonUpdateManyWithWhereWithoutWorkspaceInput = {
+ data: PersonUpdateManyMutationInput;
+ where: PersonScalarWhereInput;
+};
+
export type PersonUpdateManyWithoutCompanyNestedInput = {
connect?: InputMaybe<Array<PersonWhereUniqueInput>>;
};
+export type PersonUpdateManyWithoutWorkspaceNestedInput = {
+ connect?: InputMaybe<Array<PersonWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<PersonCreateOrConnectWithoutWorkspaceInput>>;
+ create?: InputMaybe<Array<PersonCreateWithoutWorkspaceInput>>;
+ createMany?: InputMaybe<PersonCreateManyWorkspaceInputEnvelope>;
+ delete?: InputMaybe<Array<PersonWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<PersonScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<PersonWhereUniqueInput>>;
+ set?: InputMaybe<Array<PersonWhereUniqueInput>>;
+ update?: InputMaybe<Array<PersonUpdateWithWhereUniqueWithoutWorkspaceInput>>;
+ updateMany?: InputMaybe<Array<PersonUpdateManyWithWhereWithoutWorkspaceInput>>;
+ upsert?: InputMaybe<Array<PersonUpsertWithWhereUniqueWithoutWorkspaceInput>>;
+};
+
+export type PersonUpdateWithWhereUniqueWithoutWorkspaceInput = {
+ data: PersonUpdateWithoutWorkspaceInput;
+ where: PersonWhereUniqueInput;
+};
+
+export type PersonUpdateWithoutWorkspaceInput = {
+ city?: InputMaybe<StringFieldUpdateOperationsInput>;
+ company?: InputMaybe<CompanyUpdateOneWithoutPeopleNestedInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ email?: InputMaybe<StringFieldUpdateOperationsInput>;
+ firstName?: InputMaybe<StringFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ lastName?: InputMaybe<StringFieldUpdateOperationsInput>;
+ phone?: InputMaybe<StringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type PersonUpsertWithWhereUniqueWithoutWorkspaceInput = {
+ create: PersonCreateWithoutWorkspaceInput;
+ update: PersonUpdateWithoutWorkspaceInput;
+ where: PersonWhereUniqueInput;
+};
+
export type PersonWhereInput = {
AND?: InputMaybe<Array<PersonWhereInput>>;
NOT?: InputMaybe<Array<PersonWhereInput>>;
@@ -1005,10 +1467,61 @@ export type Pipeline = {
updatedAt: Scalars['DateTime'];
};
+export type PipelineCreateManyWorkspaceInput = {
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ icon: Scalars['String'];
+ id?: InputMaybe<Scalars['String']>;
+ name: Scalars['String'];
+ pipelineProgressableType?: InputMaybe<PipelineProgressableType>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type PipelineCreateManyWorkspaceInputEnvelope = {
+ data: Array<PipelineCreateManyWorkspaceInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
+};
+
export type PipelineCreateNestedOneWithoutPipelineProgressesInput = {
connect?: InputMaybe<PipelineWhereUniqueInput>;
};
+export type PipelineCreateNestedOneWithoutPipelineStagesInput = {
+ connect?: InputMaybe<PipelineWhereUniqueInput>;
+ connectOrCreate?: InputMaybe<PipelineCreateOrConnectWithoutPipelineStagesInput>;
+ create?: InputMaybe<PipelineCreateWithoutPipelineStagesInput>;
+};
+
+export type PipelineCreateOrConnectWithoutPipelineStagesInput = {
+ create: PipelineCreateWithoutPipelineStagesInput;
+ where: PipelineWhereUniqueInput;
+};
+
+export type PipelineCreateOrConnectWithoutWorkspaceInput = {
+ create: PipelineCreateWithoutWorkspaceInput;
+ where: PipelineWhereUniqueInput;
+};
+
+export type PipelineCreateWithoutPipelineStagesInput = {
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ icon: Scalars['String'];
+ id?: InputMaybe<Scalars['String']>;
+ name: Scalars['String'];
+ pipelineProgressableType?: InputMaybe<PipelineProgressableType>;
+ pipelineProgresses?: InputMaybe<PipelineProgressCreateNestedManyWithoutPipelineInput>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type PipelineCreateWithoutWorkspaceInput = {
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ icon: Scalars['String'];
+ id?: InputMaybe<Scalars['String']>;
+ name: Scalars['String'];
+ pipelineProgressableType?: InputMaybe<PipelineProgressableType>;
+ pipelineProgresses?: InputMaybe<PipelineProgressCreateNestedManyWithoutPipelineInput>;
+ pipelineStages?: InputMaybe<PipelineStageCreateNestedManyWithoutPipelineInput>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
export type PipelineOrderByWithRelationInput = {
createdAt?: InputMaybe<SortOrder>;
icon?: InputMaybe<SortOrder>;
@@ -1043,6 +1556,106 @@ export type PipelineProgressCreateInput = {
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
+export type PipelineProgressCreateManyPipelineInput = {
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ pipelineStageId: Scalars['String'];
+ progressableId: Scalars['String'];
+ progressableType: PipelineProgressableType;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type PipelineProgressCreateManyPipelineInputEnvelope = {
+ data: Array<PipelineProgressCreateManyPipelineInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
+};
+
+export type PipelineProgressCreateManyPipelineStageInput = {
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ pipelineId: Scalars['String'];
+ progressableId: Scalars['String'];
+ progressableType: PipelineProgressableType;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type PipelineProgressCreateManyPipelineStageInputEnvelope = {
+ data: Array<PipelineProgressCreateManyPipelineStageInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
+};
+
+export type PipelineProgressCreateManyWorkspaceInput = {
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ pipelineId: Scalars['String'];
+ pipelineStageId: Scalars['String'];
+ progressableId: Scalars['String'];
+ progressableType: PipelineProgressableType;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type PipelineProgressCreateManyWorkspaceInputEnvelope = {
+ data: Array<PipelineProgressCreateManyWorkspaceInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
+};
+
+export type PipelineProgressCreateNestedManyWithoutPipelineInput = {
+ connect?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<PipelineProgressCreateOrConnectWithoutPipelineInput>>;
+ create?: InputMaybe<Array<PipelineProgressCreateWithoutPipelineInput>>;
+ createMany?: InputMaybe<PipelineProgressCreateManyPipelineInputEnvelope>;
+};
+
+export type PipelineProgressCreateNestedManyWithoutPipelineStageInput = {
+ connect?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<PipelineProgressCreateOrConnectWithoutPipelineStageInput>>;
+ create?: InputMaybe<Array<PipelineProgressCreateWithoutPipelineStageInput>>;
+ createMany?: InputMaybe<PipelineProgressCreateManyPipelineStageInputEnvelope>;
+};
+
+export type PipelineProgressCreateOrConnectWithoutPipelineInput = {
+ create: PipelineProgressCreateWithoutPipelineInput;
+ where: PipelineProgressWhereUniqueInput;
+};
+
+export type PipelineProgressCreateOrConnectWithoutPipelineStageInput = {
+ create: PipelineProgressCreateWithoutPipelineStageInput;
+ where: PipelineProgressWhereUniqueInput;
+};
+
+export type PipelineProgressCreateOrConnectWithoutWorkspaceInput = {
+ create: PipelineProgressCreateWithoutWorkspaceInput;
+ where: PipelineProgressWhereUniqueInput;
+};
+
+export type PipelineProgressCreateWithoutPipelineInput = {
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ pipelineStage: PipelineStageCreateNestedOneWithoutPipelineProgressesInput;
+ progressableId: Scalars['String'];
+ progressableType: PipelineProgressableType;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type PipelineProgressCreateWithoutPipelineStageInput = {
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ pipeline: PipelineCreateNestedOneWithoutPipelineProgressesInput;
+ progressableId: Scalars['String'];
+ progressableType: PipelineProgressableType;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type PipelineProgressCreateWithoutWorkspaceInput = {
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ pipeline: PipelineCreateNestedOneWithoutPipelineProgressesInput;
+ pipelineStage: PipelineStageCreateNestedOneWithoutPipelineProgressesInput;
+ progressableId: Scalars['String'];
+ progressableType: PipelineProgressableType;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
export type PipelineProgressListRelationFilter = {
every?: InputMaybe<PipelineProgressWhereInput>;
none?: InputMaybe<PipelineProgressWhereInput>;
@@ -1077,6 +1690,19 @@ export enum PipelineProgressScalarFieldEnum {
WorkspaceId = 'workspaceId'
}
+export type PipelineProgressScalarWhereInput = {
+ AND?: InputMaybe<Array<PipelineProgressScalarWhereInput>>;
+ NOT?: InputMaybe<Array<PipelineProgressScalarWhereInput>>;
+ OR?: InputMaybe<Array<PipelineProgressScalarWhereInput>>;
+ createdAt?: InputMaybe<DateTimeFilter>;
+ id?: InputMaybe<StringFilter>;
+ pipelineId?: InputMaybe<StringFilter>;
+ pipelineStageId?: InputMaybe<StringFilter>;
+ progressableId?: InputMaybe<StringFilter>;
+ progressableType?: InputMaybe<EnumPipelineProgressableTypeFilter>;
+ updatedAt?: InputMaybe<DateTimeFilter>;
+};
+
export type PipelineProgressUpdateInput = {
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
id?: InputMaybe<StringFieldUpdateOperationsInput>;
@@ -1087,6 +1713,132 @@ export type PipelineProgressUpdateInput = {
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
+export type PipelineProgressUpdateManyMutationInput = {
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ progressableId?: InputMaybe<StringFieldUpdateOperationsInput>;
+ progressableType?: InputMaybe<EnumPipelineProgressableTypeFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type PipelineProgressUpdateManyWithWhereWithoutPipelineInput = {
+ data: PipelineProgressUpdateManyMutationInput;
+ where: PipelineProgressScalarWhereInput;
+};
+
+export type PipelineProgressUpdateManyWithWhereWithoutPipelineStageInput = {
+ data: PipelineProgressUpdateManyMutationInput;
+ where: PipelineProgressScalarWhereInput;
+};
+
+export type PipelineProgressUpdateManyWithWhereWithoutWorkspaceInput = {
+ data: PipelineProgressUpdateManyMutationInput;
+ where: PipelineProgressScalarWhereInput;
+};
+
+export type PipelineProgressUpdateManyWithoutPipelineNestedInput = {
+ connect?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<PipelineProgressCreateOrConnectWithoutPipelineInput>>;
+ create?: InputMaybe<Array<PipelineProgressCreateWithoutPipelineInput>>;
+ createMany?: InputMaybe<PipelineProgressCreateManyPipelineInputEnvelope>;
+ delete?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<PipelineProgressScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ set?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ update?: InputMaybe<Array<PipelineProgressUpdateWithWhereUniqueWithoutPipelineInput>>;
+ updateMany?: InputMaybe<Array<PipelineProgressUpdateManyWithWhereWithoutPipelineInput>>;
+ upsert?: InputMaybe<Array<PipelineProgressUpsertWithWhereUniqueWithoutPipelineInput>>;
+};
+
+export type PipelineProgressUpdateManyWithoutPipelineStageNestedInput = {
+ connect?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<PipelineProgressCreateOrConnectWithoutPipelineStageInput>>;
+ create?: InputMaybe<Array<PipelineProgressCreateWithoutPipelineStageInput>>;
+ createMany?: InputMaybe<PipelineProgressCreateManyPipelineStageInputEnvelope>;
+ delete?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<PipelineProgressScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ set?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ update?: InputMaybe<Array<PipelineProgressUpdateWithWhereUniqueWithoutPipelineStageInput>>;
+ updateMany?: InputMaybe<Array<PipelineProgressUpdateManyWithWhereWithoutPipelineStageInput>>;
+ upsert?: InputMaybe<Array<PipelineProgressUpsertWithWhereUniqueWithoutPipelineStageInput>>;
+};
+
+export type PipelineProgressUpdateManyWithoutWorkspaceNestedInput = {
+ connect?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<PipelineProgressCreateOrConnectWithoutWorkspaceInput>>;
+ create?: InputMaybe<Array<PipelineProgressCreateWithoutWorkspaceInput>>;
+ createMany?: InputMaybe<PipelineProgressCreateManyWorkspaceInputEnvelope>;
+ delete?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<PipelineProgressScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ set?: InputMaybe<Array<PipelineProgressWhereUniqueInput>>;
+ update?: InputMaybe<Array<PipelineProgressUpdateWithWhereUniqueWithoutWorkspaceInput>>;
+ updateMany?: InputMaybe<Array<PipelineProgressUpdateManyWithWhereWithoutWorkspaceInput>>;
+ upsert?: InputMaybe<Array<PipelineProgressUpsertWithWhereUniqueWithoutWorkspaceInput>>;
+};
+
+export type PipelineProgressUpdateWithWhereUniqueWithoutPipelineInput = {
+ data: PipelineProgressUpdateWithoutPipelineInput;
+ where: PipelineProgressWhereUniqueInput;
+};
+
+export type PipelineProgressUpdateWithWhereUniqueWithoutPipelineStageInput = {
+ data: PipelineProgressUpdateWithoutPipelineStageInput;
+ where: PipelineProgressWhereUniqueInput;
+};
+
+export type PipelineProgressUpdateWithWhereUniqueWithoutWorkspaceInput = {
+ data: PipelineProgressUpdateWithoutWorkspaceInput;
+ where: PipelineProgressWhereUniqueInput;
+};
+
+export type PipelineProgressUpdateWithoutPipelineInput = {
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ pipelineStage?: InputMaybe<PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput>;
+ progressableId?: InputMaybe<StringFieldUpdateOperationsInput>;
+ progressableType?: InputMaybe<EnumPipelineProgressableTypeFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type PipelineProgressUpdateWithoutPipelineStageInput = {
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ pipeline?: InputMaybe<PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput>;
+ progressableId?: InputMaybe<StringFieldUpdateOperationsInput>;
+ progressableType?: InputMaybe<EnumPipelineProgressableTypeFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type PipelineProgressUpdateWithoutWorkspaceInput = {
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ pipeline?: InputMaybe<PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput>;
+ pipelineStage?: InputMaybe<PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput>;
+ progressableId?: InputMaybe<StringFieldUpdateOperationsInput>;
+ progressableType?: InputMaybe<EnumPipelineProgressableTypeFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type PipelineProgressUpsertWithWhereUniqueWithoutPipelineInput = {
+ create: PipelineProgressCreateWithoutPipelineInput;
+ update: PipelineProgressUpdateWithoutPipelineInput;
+ where: PipelineProgressWhereUniqueInput;
+};
+
+export type PipelineProgressUpsertWithWhereUniqueWithoutPipelineStageInput = {
+ create: PipelineProgressCreateWithoutPipelineStageInput;
+ update: PipelineProgressUpdateWithoutPipelineStageInput;
+ where: PipelineProgressWhereUniqueInput;
+};
+
+export type PipelineProgressUpsertWithWhereUniqueWithoutWorkspaceInput = {
+ create: PipelineProgressCreateWithoutWorkspaceInput;
+ update: PipelineProgressUpdateWithoutWorkspaceInput;
+ where: PipelineProgressWhereUniqueInput;
+};
+
export type PipelineProgressWhereInput = {
AND?: InputMaybe<Array<PipelineProgressWhereInput>>;
NOT?: InputMaybe<Array<PipelineProgressWhereInput>>;
@@ -1127,6 +1879,18 @@ export enum PipelineScalarFieldEnum {
WorkspaceId = 'workspaceId'
}
+export type PipelineScalarWhereInput = {
+ AND?: InputMaybe<Array<PipelineScalarWhereInput>>;
+ NOT?: InputMaybe<Array<PipelineScalarWhereInput>>;
+ OR?: InputMaybe<Array<PipelineScalarWhereInput>>;
+ createdAt?: InputMaybe<DateTimeFilter>;
+ icon?: InputMaybe<StringFilter>;
+ id?: InputMaybe<StringFilter>;
+ name?: InputMaybe<StringFilter>;
+ pipelineProgressableType?: InputMaybe<EnumPipelineProgressableTypeFilter>;
+ updatedAt?: InputMaybe<DateTimeFilter>;
+};
+
export type PipelineStage = {
__typename?: 'PipelineStage';
color: Scalars['String'];
@@ -1140,10 +1904,77 @@ export type PipelineStage = {
updatedAt: Scalars['DateTime'];
};
+export type PipelineStageCreateManyPipelineInput = {
+ color: Scalars['String'];
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ name: Scalars['String'];
+ type: Scalars['String'];
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type PipelineStageCreateManyPipelineInputEnvelope = {
+ data: Array<PipelineStageCreateManyPipelineInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
+};
+
+export type PipelineStageCreateManyWorkspaceInput = {
+ color: Scalars['String'];
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ name: Scalars['String'];
+ pipelineId: Scalars['String'];
+ type: Scalars['String'];
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type PipelineStageCreateManyWorkspaceInputEnvelope = {
+ data: Array<PipelineStageCreateManyWorkspaceInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
+};
+
+export type PipelineStageCreateNestedManyWithoutPipelineInput = {
+ connect?: InputMaybe<Array<PipelineStageWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<PipelineStageCreateOrConnectWithoutPipelineInput>>;
+ create?: InputMaybe<Array<PipelineStageCreateWithoutPipelineInput>>;
+ createMany?: InputMaybe<PipelineStageCreateManyPipelineInputEnvelope>;
+};
+
export type PipelineStageCreateNestedOneWithoutPipelineProgressesInput = {
connect?: InputMaybe<PipelineStageWhereUniqueInput>;
};
+export type PipelineStageCreateOrConnectWithoutPipelineInput = {
+ create: PipelineStageCreateWithoutPipelineInput;
+ where: PipelineStageWhereUniqueInput;
+};
+
+export type PipelineStageCreateOrConnectWithoutWorkspaceInput = {
+ create: PipelineStageCreateWithoutWorkspaceInput;
+ where: PipelineStageWhereUniqueInput;
+};
+
+export type PipelineStageCreateWithoutPipelineInput = {
+ color: Scalars['String'];
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ name: Scalars['String'];
+ pipelineProgresses?: InputMaybe<PipelineProgressCreateNestedManyWithoutPipelineStageInput>;
+ type: Scalars['String'];
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type PipelineStageCreateWithoutWorkspaceInput = {
+ color: Scalars['String'];
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ name: Scalars['String'];
+ pipeline: PipelineCreateNestedOneWithoutPipelineStagesInput;
+ pipelineProgresses?: InputMaybe<PipelineProgressCreateNestedManyWithoutPipelineStageInput>;
+ type: Scalars['String'];
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
export type PipelineStageListRelationFilter = {
every?: InputMaybe<PipelineStageWhereInput>;
none?: InputMaybe<PipelineStageWhereInput>;
@@ -1183,10 +2014,113 @@ export enum PipelineStageScalarFieldEnum {
WorkspaceId = 'workspaceId'
}
+export type PipelineStageScalarWhereInput = {
+ AND?: InputMaybe<Array<PipelineStageScalarWhereInput>>;
+ NOT?: InputMaybe<Array<PipelineStageScalarWhereInput>>;
+ OR?: InputMaybe<Array<PipelineStageScalarWhereInput>>;
+ color?: InputMaybe<StringFilter>;
+ createdAt?: InputMaybe<DateTimeFilter>;
+ id?: InputMaybe<StringFilter>;
+ name?: InputMaybe<StringFilter>;
+ pipelineId?: InputMaybe<StringFilter>;
+ type?: InputMaybe<StringFilter>;
+ updatedAt?: InputMaybe<DateTimeFilter>;
+};
+
+export type PipelineStageUpdateManyMutationInput = {
+ color?: InputMaybe<StringFieldUpdateOperationsInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ name?: InputMaybe<StringFieldUpdateOperationsInput>;
+ type?: InputMaybe<StringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type PipelineStageUpdateManyWithWhereWithoutPipelineInput = {
+ data: PipelineStageUpdateManyMutationInput;
+ where: PipelineStageScalarWhereInput;
+};
+
+export type PipelineStageUpdateManyWithWhereWithoutWorkspaceInput = {
+ data: PipelineStageUpdateManyMutationInput;
+ where: PipelineStageScalarWhereInput;
+};
+
+export type PipelineStageUpdateManyWithoutPipelineNestedInput = {
+ connect?: InputMaybe<Array<PipelineStageWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<PipelineStageCreateOrConnectWithoutPipelineInput>>;
+ create?: InputMaybe<Array<PipelineStageCreateWithoutPipelineInput>>;
+ createMany?: InputMaybe<PipelineStageCreateManyPipelineInputEnvelope>;
+ delete?: InputMaybe<Array<PipelineStageWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<PipelineStageScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<PipelineStageWhereUniqueInput>>;
+ set?: InputMaybe<Array<PipelineStageWhereUniqueInput>>;
+ update?: InputMaybe<Array<PipelineStageUpdateWithWhereUniqueWithoutPipelineInput>>;
+ updateMany?: InputMaybe<Array<PipelineStageUpdateManyWithWhereWithoutPipelineInput>>;
+ upsert?: InputMaybe<Array<PipelineStageUpsertWithWhereUniqueWithoutPipelineInput>>;
+};
+
+export type PipelineStageUpdateManyWithoutWorkspaceNestedInput = {
+ connect?: InputMaybe<Array<PipelineStageWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<PipelineStageCreateOrConnectWithoutWorkspaceInput>>;
+ create?: InputMaybe<Array<PipelineStageCreateWithoutWorkspaceInput>>;
+ createMany?: InputMaybe<PipelineStageCreateManyWorkspaceInputEnvelope>;
+ delete?: InputMaybe<Array<PipelineStageWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<PipelineStageScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<PipelineStageWhereUniqueInput>>;
+ set?: InputMaybe<Array<PipelineStageWhereUniqueInput>>;
+ update?: InputMaybe<Array<PipelineStageUpdateWithWhereUniqueWithoutWorkspaceInput>>;
+ updateMany?: InputMaybe<Array<PipelineStageUpdateManyWithWhereWithoutWorkspaceInput>>;
+ upsert?: InputMaybe<Array<PipelineStageUpsertWithWhereUniqueWithoutWorkspaceInput>>;
+};
+
export type PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput = {
connect?: InputMaybe<PipelineStageWhereUniqueInput>;
};
+export type PipelineStageUpdateWithWhereUniqueWithoutPipelineInput = {
+ data: PipelineStageUpdateWithoutPipelineInput;
+ where: PipelineStageWhereUniqueInput;
+};
+
+export type PipelineStageUpdateWithWhereUniqueWithoutWorkspaceInput = {
+ data: PipelineStageUpdateWithoutWorkspaceInput;
+ where: PipelineStageWhereUniqueInput;
+};
+
+export type PipelineStageUpdateWithoutPipelineInput = {
+ color?: InputMaybe<StringFieldUpdateOperationsInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ name?: InputMaybe<StringFieldUpdateOperationsInput>;
+ pipelineProgresses?: InputMaybe<PipelineProgressUpdateManyWithoutPipelineStageNestedInput>;
+ type?: InputMaybe<StringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type PipelineStageUpdateWithoutWorkspaceInput = {
+ color?: InputMaybe<StringFieldUpdateOperationsInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ name?: InputMaybe<StringFieldUpdateOperationsInput>;
+ pipeline?: InputMaybe<PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput>;
+ pipelineProgresses?: InputMaybe<PipelineProgressUpdateManyWithoutPipelineStageNestedInput>;
+ type?: InputMaybe<StringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type PipelineStageUpsertWithWhereUniqueWithoutPipelineInput = {
+ create: PipelineStageCreateWithoutPipelineInput;
+ update: PipelineStageUpdateWithoutPipelineInput;
+ where: PipelineStageWhereUniqueInput;
+};
+
+export type PipelineStageUpsertWithWhereUniqueWithoutWorkspaceInput = {
+ create: PipelineStageCreateWithoutWorkspaceInput;
+ update: PipelineStageUpdateWithoutWorkspaceInput;
+ where: PipelineStageWhereUniqueInput;
+};
+
export type PipelineStageWhereInput = {
AND?: InputMaybe<Array<PipelineStageWhereInput>>;
NOT?: InputMaybe<Array<PipelineStageWhereInput>>;
@@ -1206,10 +2140,83 @@ export type PipelineStageWhereUniqueInput = {
id?: InputMaybe<Scalars['String']>;
};
+export type PipelineUpdateManyMutationInput = {
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ icon?: InputMaybe<StringFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ name?: InputMaybe<StringFieldUpdateOperationsInput>;
+ pipelineProgressableType?: InputMaybe<EnumPipelineProgressableTypeFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type PipelineUpdateManyWithWhereWithoutWorkspaceInput = {
+ data: PipelineUpdateManyMutationInput;
+ where: PipelineScalarWhereInput;
+};
+
+export type PipelineUpdateManyWithoutWorkspaceNestedInput = {
+ connect?: InputMaybe<Array<PipelineWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<PipelineCreateOrConnectWithoutWorkspaceInput>>;
+ create?: InputMaybe<Array<PipelineCreateWithoutWorkspaceInput>>;
+ createMany?: InputMaybe<PipelineCreateManyWorkspaceInputEnvelope>;
+ delete?: InputMaybe<Array<PipelineWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<PipelineScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<PipelineWhereUniqueInput>>;
+ set?: InputMaybe<Array<PipelineWhereUniqueInput>>;
+ update?: InputMaybe<Array<PipelineUpdateWithWhereUniqueWithoutWorkspaceInput>>;
+ updateMany?: InputMaybe<Array<PipelineUpdateManyWithWhereWithoutWorkspaceInput>>;
+ upsert?: InputMaybe<Array<PipelineUpsertWithWhereUniqueWithoutWorkspaceInput>>;
+};
+
export type PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput = {
connect?: InputMaybe<PipelineWhereUniqueInput>;
};
+export type PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput = {
+ connect?: InputMaybe<PipelineWhereUniqueInput>;
+ connectOrCreate?: InputMaybe<PipelineCreateOrConnectWithoutPipelineStagesInput>;
+ create?: InputMaybe<PipelineCreateWithoutPipelineStagesInput>;
+ update?: InputMaybe<PipelineUpdateWithoutPipelineStagesInput>;
+ upsert?: InputMaybe<PipelineUpsertWithoutPipelineStagesInput>;
+};
+
+export type PipelineUpdateWithWhereUniqueWithoutWorkspaceInput = {
+ data: PipelineUpdateWithoutWorkspaceInput;
+ where: PipelineWhereUniqueInput;
+};
+
+export type PipelineUpdateWithoutPipelineStagesInput = {
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ icon?: InputMaybe<StringFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ name?: InputMaybe<StringFieldUpdateOperationsInput>;
+ pipelineProgressableType?: InputMaybe<EnumPipelineProgressableTypeFieldUpdateOperationsInput>;
+ pipelineProgresses?: InputMaybe<PipelineProgressUpdateManyWithoutPipelineNestedInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type PipelineUpdateWithoutWorkspaceInput = {
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ icon?: InputMaybe<StringFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ name?: InputMaybe<StringFieldUpdateOperationsInput>;
+ pipelineProgressableType?: InputMaybe<EnumPipelineProgressableTypeFieldUpdateOperationsInput>;
+ pipelineProgresses?: InputMaybe<PipelineProgressUpdateManyWithoutPipelineNestedInput>;
+ pipelineStages?: InputMaybe<PipelineStageUpdateManyWithoutPipelineNestedInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type PipelineUpsertWithWhereUniqueWithoutWorkspaceInput = {
+ create: PipelineCreateWithoutWorkspaceInput;
+ update: PipelineUpdateWithoutWorkspaceInput;
+ where: PipelineWhereUniqueInput;
+};
+
+export type PipelineUpsertWithoutPipelineStagesInput = {
+ create: PipelineCreateWithoutPipelineStagesInput;
+ update: PipelineUpdateWithoutPipelineStagesInput;
+};
+
export type PipelineWhereInput = {
AND?: InputMaybe<Array<PipelineWhereInput>>;
NOT?: InputMaybe<Array<PipelineWhereInput>>;
@@ -1230,6 +2237,8 @@ export type PipelineWhereUniqueInput = {
export type Query = {
__typename?: 'Query';
+ clientConfig: ClientConfig;
+ currentUser: User;
findManyCommentThreads: Array<CommentThread>;
findManyCompany: Array<Company>;
findManyPerson: Array<Person>;
@@ -1363,9 +2372,9 @@ export type User = {
displayName: Scalars['String'];
email: Scalars['String'];
emailVerified: Scalars['Boolean'];
- firstName: Scalars['String'];
+ firstName?: Maybe<Scalars['String']>;
id: Scalars['ID'];
- lastName: Scalars['String'];
+ lastName?: Maybe<Scalars['String']>;
lastSeen?: Maybe<Scalars['DateTime']>;
locale: Scalars['String'];
metadata?: Maybe<Scalars['JSON']>;
@@ -1382,22 +2391,50 @@ export type UserCreateNestedOneWithoutCompaniesInput = {
connect?: InputMaybe<UserWhereUniqueInput>;
};
+export type UserCreateNestedOneWithoutWorkspaceMemberInput = {
+ connect?: InputMaybe<UserWhereUniqueInput>;
+ connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutWorkspaceMemberInput>;
+ create?: InputMaybe<UserCreateWithoutWorkspaceMemberInput>;
+};
+
export type UserCreateOrConnectWithoutCommentsInput = {
create: UserCreateWithoutCommentsInput;
where: UserWhereUniqueInput;
};
+export type UserCreateOrConnectWithoutWorkspaceMemberInput = {
+ create: UserCreateWithoutWorkspaceMemberInput;
+ where: UserWhereUniqueInput;
+};
+
export type UserCreateWithoutCommentsInput = {
avatarUrl?: InputMaybe<Scalars['String']>;
companies?: InputMaybe<CompanyCreateNestedManyWithoutAccountOwnerInput>;
createdAt?: InputMaybe<Scalars['DateTime']>;
disabled?: InputMaybe<Scalars['Boolean']>;
- displayName?: InputMaybe<Scalars['String']>;
email: Scalars['String'];
emailVerified?: InputMaybe<Scalars['Boolean']>;
- firstName: Scalars['String'];
+ firstName?: InputMaybe<Scalars['String']>;
id?: InputMaybe<Scalars['String']>;
- lastName: Scalars['String'];
+ lastName?: InputMaybe<Scalars['String']>;
+ lastSeen?: InputMaybe<Scalars['DateTime']>;
+ locale: Scalars['String'];
+ metadata?: InputMaybe<Scalars['JSON']>;
+ phoneNumber?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type UserCreateWithoutWorkspaceMemberInput = {
+ avatarUrl?: InputMaybe<Scalars['String']>;
+ comments?: InputMaybe<CommentCreateNestedManyWithoutAuthorInput>;
+ companies?: InputMaybe<CompanyCreateNestedManyWithoutAccountOwnerInput>;
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ disabled?: InputMaybe<Scalars['Boolean']>;
+ email: Scalars['String'];
+ emailVerified?: InputMaybe<Scalars['Boolean']>;
+ firstName?: InputMaybe<Scalars['String']>;
+ id?: InputMaybe<Scalars['String']>;
+ lastName?: InputMaybe<Scalars['String']>;
lastSeen?: InputMaybe<Scalars['DateTime']>;
locale: Scalars['String'];
metadata?: InputMaybe<Scalars['JSON']>;
@@ -1411,7 +2448,6 @@ export type UserOrderByWithRelationInput = {
companies?: InputMaybe<CompanyOrderByRelationAggregateInput>;
createdAt?: InputMaybe<SortOrder>;
disabled?: InputMaybe<SortOrder>;
- displayName?: InputMaybe<SortOrder>;
email?: InputMaybe<SortOrder>;
emailVerified?: InputMaybe<SortOrder>;
firstName?: InputMaybe<SortOrder>;
@@ -1434,7 +2470,6 @@ export enum UserScalarFieldEnum {
CreatedAt = 'createdAt',
DeletedAt = 'deletedAt',
Disabled = 'disabled',
- DisplayName = 'displayName',
Email = 'email',
EmailVerified = 'emailVerified',
FirstName = 'firstName',
@@ -1448,6 +2483,24 @@ export enum UserScalarFieldEnum {
UpdatedAt = 'updatedAt'
}
+export type UserUpdateInput = {
+ avatarUrl?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ comments?: InputMaybe<CommentUpdateManyWithoutAuthorNestedInput>;
+ companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ disabled?: InputMaybe<BoolFieldUpdateOperationsInput>;
+ email?: InputMaybe<StringFieldUpdateOperationsInput>;
+ emailVerified?: InputMaybe<BoolFieldUpdateOperationsInput>;
+ firstName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ lastName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ lastSeen?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
+ locale?: InputMaybe<StringFieldUpdateOperationsInput>;
+ metadata?: InputMaybe<Scalars['JSON']>;
+ phoneNumber?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
export type UserUpdateOneRequiredWithoutCommentsNestedInput = {
connect?: InputMaybe<UserWhereUniqueInput>;
connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutCommentsInput>;
@@ -1456,6 +2509,14 @@ export type UserUpdateOneRequiredWithoutCommentsNestedInput = {
upsert?: InputMaybe<UserUpsertWithoutCommentsInput>;
};
+export type UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput = {
+ connect?: InputMaybe<UserWhereUniqueInput>;
+ connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutWorkspaceMemberInput>;
+ create?: InputMaybe<UserCreateWithoutWorkspaceMemberInput>;
+ update?: InputMaybe<UserUpdateWithoutWorkspaceMemberInput>;
+ upsert?: InputMaybe<UserUpsertWithoutWorkspaceMemberInput>;
+};
+
export type UserUpdateOneWithoutCompaniesNestedInput = {
connect?: InputMaybe<UserWhereUniqueInput>;
};
@@ -1465,12 +2526,29 @@ export type UserUpdateWithoutCommentsInput = {
companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
disabled?: InputMaybe<BoolFieldUpdateOperationsInput>;
- displayName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
email?: InputMaybe<StringFieldUpdateOperationsInput>;
emailVerified?: InputMaybe<BoolFieldUpdateOperationsInput>;
- firstName?: InputMaybe<StringFieldUpdateOperationsInput>;
+ firstName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
id?: InputMaybe<StringFieldUpdateOperationsInput>;
- lastName?: InputMaybe<StringFieldUpdateOperationsInput>;
+ lastName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ lastSeen?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
+ locale?: InputMaybe<StringFieldUpdateOperationsInput>;
+ metadata?: InputMaybe<Scalars['JSON']>;
+ phoneNumber?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type UserUpdateWithoutWorkspaceMemberInput = {
+ avatarUrl?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ comments?: InputMaybe<CommentUpdateManyWithoutAuthorNestedInput>;
+ companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ disabled?: InputMaybe<BoolFieldUpdateOperationsInput>;
+ email?: InputMaybe<StringFieldUpdateOperationsInput>;
+ emailVerified?: InputMaybe<BoolFieldUpdateOperationsInput>;
+ firstName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ lastName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
lastSeen?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
locale?: InputMaybe<StringFieldUpdateOperationsInput>;
metadata?: InputMaybe<Scalars['JSON']>;
@@ -1483,6 +2561,11 @@ export type UserUpsertWithoutCommentsInput = {
update: UserUpdateWithoutCommentsInput;
};
+export type UserUpsertWithoutWorkspaceMemberInput = {
+ create: UserCreateWithoutWorkspaceMemberInput;
+ update: UserUpdateWithoutWorkspaceMemberInput;
+};
+
export type UserWhereInput = {
AND?: InputMaybe<Array<UserWhereInput>>;
NOT?: InputMaybe<Array<UserWhereInput>>;
@@ -1492,12 +2575,11 @@ export type UserWhereInput = {
companies?: InputMaybe<CompanyListRelationFilter>;
createdAt?: InputMaybe<DateTimeFilter>;
disabled?: InputMaybe<BoolFilter>;
- displayName?: InputMaybe<StringNullableFilter>;
email?: InputMaybe<StringFilter>;
emailVerified?: InputMaybe<BoolFilter>;
- firstName?: InputMaybe<StringFilter>;
+ firstName?: InputMaybe<StringNullableFilter>;
id?: InputMaybe<StringFilter>;
- lastName?: InputMaybe<StringFilter>;
+ lastName?: InputMaybe<StringNullableFilter>;
lastSeen?: InputMaybe<DateTimeNullableFilter>;
locale?: InputMaybe<StringFilter>;
metadata?: InputMaybe<JsonNullableFilter>;
@@ -1522,8 +2604,8 @@ export type Workspace = {
comments?: Maybe<Array<Comment>>;
companies?: Maybe<Array<Company>>;
createdAt: Scalars['DateTime'];
- displayName: Scalars['String'];
- domainName: Scalars['String'];
+ displayName?: Maybe<Scalars['String']>;
+ domainName?: Maybe<Scalars['String']>;
id: Scalars['ID'];
logo?: Maybe<Scalars['String']>;
people?: Maybe<Array<Person>>;
@@ -1544,6 +2626,105 @@ export type WorkspaceMember = {
workspace: Workspace;
};
+export type WorkspaceMemberCreateManyWorkspaceInput = {
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+ userId: Scalars['String'];
+};
+
+export type WorkspaceMemberCreateManyWorkspaceInputEnvelope = {
+ data: Array<WorkspaceMemberCreateManyWorkspaceInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
+};
+
+export type WorkspaceMemberCreateOrConnectWithoutWorkspaceInput = {
+ create: WorkspaceMemberCreateWithoutWorkspaceInput;
+ where: WorkspaceMemberWhereUniqueInput;
+};
+
+export type WorkspaceMemberCreateWithoutWorkspaceInput = {
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+ user: UserCreateNestedOneWithoutWorkspaceMemberInput;
+};
+
+export type WorkspaceMemberScalarWhereInput = {
+ AND?: InputMaybe<Array<WorkspaceMemberScalarWhereInput>>;
+ NOT?: InputMaybe<Array<WorkspaceMemberScalarWhereInput>>;
+ OR?: InputMaybe<Array<WorkspaceMemberScalarWhereInput>>;
+ createdAt?: InputMaybe<DateTimeFilter>;
+ id?: InputMaybe<StringFilter>;
+ updatedAt?: InputMaybe<DateTimeFilter>;
+ userId?: InputMaybe<StringFilter>;
+};
+
+export type WorkspaceMemberUpdateManyMutationInput = {
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type WorkspaceMemberUpdateManyWithWhereWithoutWorkspaceInput = {
+ data: WorkspaceMemberUpdateManyMutationInput;
+ where: WorkspaceMemberScalarWhereInput;
+};
+
+export type WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput = {
+ connect?: InputMaybe<Array<WorkspaceMemberWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<WorkspaceMemberCreateOrConnectWithoutWorkspaceInput>>;
+ create?: InputMaybe<Array<WorkspaceMemberCreateWithoutWorkspaceInput>>;
+ createMany?: InputMaybe<WorkspaceMemberCreateManyWorkspaceInputEnvelope>;
+ delete?: InputMaybe<Array<WorkspaceMemberWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<WorkspaceMemberScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<WorkspaceMemberWhereUniqueInput>>;
+ set?: InputMaybe<Array<WorkspaceMemberWhereUniqueInput>>;
+ update?: InputMaybe<Array<WorkspaceMemberUpdateWithWhereUniqueWithoutWorkspaceInput>>;
+ updateMany?: InputMaybe<Array<WorkspaceMemberUpdateManyWithWhereWithoutWorkspaceInput>>;
+ upsert?: InputMaybe<Array<WorkspaceMemberUpsertWithWhereUniqueWithoutWorkspaceInput>>;
+};
+
+export type WorkspaceMemberUpdateWithWhereUniqueWithoutWorkspaceInput = {
+ data: WorkspaceMemberUpdateWithoutWorkspaceInput;
+ where: WorkspaceMemberWhereUniqueInput;
+};
+
+export type WorkspaceMemberUpdateWithoutWorkspaceInput = {
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ user?: InputMaybe<UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput>;
+};
+
+export type WorkspaceMemberUpsertWithWhereUniqueWithoutWorkspaceInput = {
+ create: WorkspaceMemberCreateWithoutWorkspaceInput;
+ update: WorkspaceMemberUpdateWithoutWorkspaceInput;
+ where: WorkspaceMemberWhereUniqueInput;
+};
+
+export type WorkspaceMemberWhereUniqueInput = {
+ id?: InputMaybe<Scalars['String']>;
+ userId?: InputMaybe<Scalars['String']>;
+};
+
+export type WorkspaceUpdateInput = {
+ commentThreads?: InputMaybe<CommentThreadUpdateManyWithoutWorkspaceNestedInput>;
+ comments?: InputMaybe<CommentUpdateManyWithoutWorkspaceNestedInput>;
+ companies?: InputMaybe<CompanyUpdateManyWithoutWorkspaceNestedInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ displayName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ domainName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ logo?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ people?: InputMaybe<PersonUpdateManyWithoutWorkspaceNestedInput>;
+ pipelineProgresses?: InputMaybe<PipelineProgressUpdateManyWithoutWorkspaceNestedInput>;
+ pipelineStages?: InputMaybe<PipelineStageUpdateManyWithoutWorkspaceNestedInput>;
+ pipelines?: InputMaybe<PipelineUpdateManyWithoutWorkspaceNestedInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ workspaceMember?: InputMaybe<WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput>;
+};
+
export type CreateEventMutationVariables = Exact<{
type: Scalars['String'];
data: Scalars['JSON'];
@@ -1552,6 +2733,11 @@ export type CreateEventMutationVariables = Exact<{
export type CreateEventMutation = { __typename?: 'Mutation', createEvent: { __typename?: 'Analytics', success: boolean } };
+export type GetClientConfigQueryVariables = Exact<{ [key: string]: never; }>;
+
+
+export type GetClientConfigQuery = { __typename?: 'Query', clientConfig: { __typename?: 'ClientConfig', display_google_login: boolean, prefill_login_with_seed: boolean } };
+
export type ChallengeMutationVariables = Exact<{
email: Scalars['String'];
password: Scalars['String'];
@@ -1565,7 +2751,7 @@ export type VerifyMutationVariables = Exact<{
}>;
-export type VerifyMutation = { __typename?: 'Mutation', verify: { __typename?: 'Verify', user: { __typename?: 'User', id: string, email: string, displayName: string, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, workspace: { __typename?: 'Workspace', id: string, domainName: string, displayName: string, logo?: 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: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, workspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null } } | null }, tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } };
export type RenewTokenMutationVariables = Exact<{
refreshToken: Scalars['String'];
@@ -1583,7 +2769,7 @@ export type CreateCommentMutationVariables = Exact<{
}>;
-export type CreateCommentMutation = { __typename?: 'Mutation', createOneComment: { __typename?: 'Comment', id: string, createdAt: string, body: string, commentThreadId: string, author: { __typename?: 'User', id: string, displayName: string, firstName: string, lastName: string, avatarUrl?: string | null } } };
+export type CreateCommentMutation = { __typename?: 'Mutation', createOneComment: { __typename?: 'Comment', id: string, createdAt: string, body: string, commentThreadId: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } } };
export type CreateCommentThreadWithCommentMutationVariables = Exact<{
commentThreadId: Scalars['String'];
@@ -1603,14 +2789,14 @@ export type GetCommentThreadsByTargetsQueryVariables = Exact<{
}>;
-export type GetCommentThreadsByTargetsQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName: string, lastName: string, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, commentableId: string, commentableType: CommentableType }> | null }> };
+export type GetCommentThreadsByTargetsQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, commentableId: string, commentableType: CommentableType }> | null }> };
export type GetCommentThreadQueryVariables = Exact<{
commentThreadId: Scalars['String'];
}>;
-export type GetCommentThreadQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName: string, lastName: string, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', commentableId: string, commentableType: CommentableType }> | null }> };
+export type GetCommentThreadQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', commentableId: string, commentableType: CommentableType }> | null }> };
export type AddCommentThreadTargetOnCommentThreadMutationVariables = Exact<{
commentThreadId: Scalars['String'];
@@ -1644,7 +2830,7 @@ export type GetCompaniesQueryVariables = Exact<{
}>;
-export type GetCompaniesQuery = { __typename?: 'Query', companies: Array<{ __typename?: 'Company', id: string, domainName: string, name: string, createdAt: string, address: string, employees?: number | null, _commentCount: number, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, firstName: string, lastName: string } | null }> };
+export type GetCompaniesQuery = { __typename?: 'Query', companies: Array<{ __typename?: 'Company', id: string, domainName: string, name: string, createdAt: string, address: string, employees?: number | null, _commentCount: number, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null } | null }> };
export type UpdateCompanyMutationVariables = Exact<{
id?: InputMaybe<Scalars['String']>;
@@ -1657,7 +2843,7 @@ export type UpdateCompanyMutationVariables = Exact<{
}>;
-export type UpdateCompanyMutation = { __typename?: 'Mutation', updateOneCompany?: { __typename?: 'Company', address: string, createdAt: string, domainName: string, employees?: number | null, id: string, name: string, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, firstName: string, lastName: string } | null } | null };
+export type UpdateCompanyMutation = { __typename?: 'Mutation', updateOneCompany?: { __typename?: 'Company', address: string, createdAt: string, domainName: string, employees?: number | null, id: string, name: string, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null } | null } | null };
export type InsertCompanyMutationVariables = Exact<{
id: Scalars['String'];
@@ -1678,39 +2864,6 @@ export type DeleteCompaniesMutationVariables = Exact<{
export type DeleteCompaniesMutation = { __typename?: 'Mutation', deleteManyCompany: { __typename?: 'AffectedRows', count: number } };
-export type GetPipelinesQueryVariables = Exact<{
- where?: InputMaybe<PipelineWhereInput>;
-}>;
-
-
-export type GetPipelinesQuery = { __typename?: 'Query', findManyPipeline: Array<{ __typename?: 'Pipeline', id: string, name: string, pipelineProgressableType: PipelineProgressableType, pipelineStages?: Array<{ __typename?: 'PipelineStage', id: string, name: string, color: string, pipelineProgresses?: Array<{ __typename?: 'PipelineProgress', id: string, progressableType: PipelineProgressableType, progressableId: string }> | null }> | null }> };
-
-export type UpdateOnePipelineProgressMutationVariables = Exact<{
- id?: InputMaybe<Scalars['String']>;
- pipelineStageId?: InputMaybe<Scalars['String']>;
-}>;
-
-
-export type UpdateOnePipelineProgressMutation = { __typename?: 'Mutation', updateOnePipelineProgress?: { __typename?: 'PipelineProgress', id: string } | null };
-
-export type CreateOnePipelineProgressMutationVariables = Exact<{
- uuid: Scalars['String'];
- entityType: PipelineProgressableType;
- entityId: Scalars['String'];
- pipelineId: Scalars['String'];
- pipelineStageId: Scalars['String'];
-}>;
-
-
-export type CreateOnePipelineProgressMutation = { __typename?: 'Mutation', createOnePipelineProgress: { __typename?: 'PipelineProgress', id: string } };
-
-export type DeleteManyPipelineProgressMutationVariables = Exact<{
- ids?: InputMaybe<Array<Scalars['String']> | Scalars['String']>;
-}>;
-
-
-export type DeleteManyPipelineProgressMutation = { __typename?: 'Mutation', deleteManyPipelineProgress: { __typename?: 'AffectedRows', count: number } };
-
export type GetPeopleQueryVariables = Exact<{
orderBy?: InputMaybe<Array<PersonOrderByWithRelationInput> | PersonOrderByWithRelationInput>;
where?: InputMaybe<PersonWhereInput>;
@@ -1754,6 +2907,39 @@ export type DeletePeopleMutationVariables = Exact<{
export type DeletePeopleMutation = { __typename?: 'Mutation', deleteManyPerson: { __typename?: 'AffectedRows', count: number } };
+export type GetPipelinesQueryVariables = Exact<{
+ where?: InputMaybe<PipelineWhereInput>;
+}>;
+
+
+export type GetPipelinesQuery = { __typename?: 'Query', findManyPipeline: Array<{ __typename?: 'Pipeline', id: string, name: string, pipelineProgressableType: PipelineProgressableType, pipelineStages?: Array<{ __typename?: 'PipelineStage', id: string, name: string, color: string, pipelineProgresses?: Array<{ __typename?: 'PipelineProgress', id: string, progressableType: PipelineProgressableType, progressableId: string }> | null }> | null }> };
+
+export type UpdateOnePipelineProgressMutationVariables = Exact<{
+ id?: InputMaybe<Scalars['String']>;
+ pipelineStageId?: InputMaybe<Scalars['String']>;
+}>;
+
+
+export type UpdateOnePipelineProgressMutation = { __typename?: 'Mutation', updateOnePipelineProgress?: { __typename?: 'PipelineProgress', id: string } | null };
+
+export type CreateOnePipelineProgressMutationVariables = Exact<{
+ uuid: Scalars['String'];
+ entityType: PipelineProgressableType;
+ entityId: Scalars['String'];
+ pipelineId: Scalars['String'];
+ pipelineStageId: Scalars['String'];
+}>;
+
+
+export type CreateOnePipelineProgressMutation = { __typename?: 'Mutation', createOnePipelineProgress: { __typename?: 'PipelineProgress', id: string } };
+
+export type DeleteManyPipelineProgressMutationVariables = Exact<{
+ ids?: InputMaybe<Array<Scalars['String']> | Scalars['String']>;
+}>;
+
+
+export type DeleteManyPipelineProgressMutation = { __typename?: 'Mutation', deleteManyPipelineProgress: { __typename?: 'AffectedRows', count: number } };
+
export type SearchPeopleQueryVariables = Exact<{
where?: InputMaybe<PersonWhereInput>;
limit?: InputMaybe<Scalars['Int']>;
@@ -1770,7 +2956,7 @@ export type SearchUserQueryVariables = Exact<{
}>;
-export type SearchUserQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'User', id: string, email: string, displayName: string, firstName: string, lastName: string }> };
+export type SearchUserQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null }> };
export type EmptyQueryQueryVariables = Exact<{ [key: string]: never; }>;
@@ -1786,27 +2972,31 @@ export type SearchCompanyQueryVariables = Exact<{
export type SearchCompanyQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'Company', id: string, name: string, domainName: string }> };
-export type GetCurrentUserQueryVariables = Exact<{
- uuid?: InputMaybe<Scalars['String']>;
-}>;
+export type GetCurrentUserQueryVariables = Exact<{ [key: string]: never; }>;
-export type GetCurrentUserQuery = { __typename?: 'Query', users: Array<{ __typename?: 'User', id: string, email: string, displayName: string, firstName: string, lastName: string, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, workspace: { __typename?: 'Workspace', id: string, domainName: string, displayName: string, logo?: string | null } } | null }> };
+export type GetCurrentUserQuery = { __typename?: 'Query', currentUser: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, workspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null } } | null } };
export type GetUsersQueryVariables = Exact<{ [key: string]: never; }>;
-export type GetUsersQuery = { __typename?: 'Query', findManyUser: Array<{ __typename?: 'User', id: string, email: string, displayName: string, firstName: string, lastName: string }> };
+export type GetUsersQuery = { __typename?: 'Query', findManyUser: Array<{ __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null }> };
+
+export type UpdateUserMutationVariables = Exact<{
+ data: UserUpdateInput;
+ where: UserWhereUniqueInput;
+}>;
+
+
+export type UpdateUserMutation = { __typename?: 'Mutation', updateUser: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } };
+
+export type UpdateWorkspaceMutationVariables = Exact<{
+ data: WorkspaceUpdateInput;
+}>;
+
+
+export type UpdateWorkspaceMutation = { __typename?: 'Mutation', updateWorkspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null } };
-export type GetClientConfigQuery = {
- __typename?: 'Query';
- clientConfig: {
- __typename?: 'ClientConfig';
- display_google_login: boolean;
- prefill_login_with_seed: boolean;
- };
-};
-export type GetClientConfigQueryVariables = {};
export const CreateEventDocument = gql`
mutation CreateEvent($type: String!, $data: JSON!) {
@@ -1842,6 +3032,41 @@ export function useCreateEventMutation(baseOptions?: Apollo.MutationHookOptions<
export type CreateEventMutationHookResult = ReturnType<typeof useCreateEventMutation>;
export type CreateEventMutationResult = Apollo.MutationResult<CreateEventMutation>;
export type CreateEventMutationOptions = Apollo.BaseMutationOptions<CreateEventMutation, CreateEventMutationVariables>;
+export const GetClientConfigDocument = gql`
+ query GetClientConfig {
+ clientConfig {
+ display_google_login
+ prefill_login_with_seed
+ }
+}
+ `;
+
+/**
+ * __useGetClientConfigQuery__
+ *
+ * To run a query within a React component, call `useGetClientConfigQuery` and pass it any options that fit your needs.
+ * When your component renders, `useGetClientConfigQuery` returns an object from Apollo Client that contains loading, error, and data properties
+ * you can use to render your UI.
+ *
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
+ *
+ * @example
+ * const { data, loading, error } = useGetClientConfigQuery({
+ * variables: {
+ * },
+ * });
+ */
+export function useGetClientConfigQuery(baseOptions?: Apollo.QueryHookOptions<GetClientConfigQuery, GetClientConfigQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetClientConfigQuery, GetClientConfigQueryVariables>(GetClientConfigDocument, options);
+ }
+export function useGetClientConfigLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetClientConfigQuery, GetClientConfigQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetClientConfigQuery, GetClientConfigQueryVariables>(GetClientConfigDocument, options);
+ }
+export type GetClientConfigQueryHookResult = ReturnType<typeof useGetClientConfigQuery>;
+export type GetClientConfigLazyQueryHookResult = ReturnType<typeof useGetClientConfigLazyQuery>;
+export type GetClientConfigQueryResult = Apollo.QueryResult<GetClientConfigQuery, GetClientConfigQueryVariables>;
export const ChallengeDocument = gql`
mutation Challenge($email: String!, $password: String!) {
challenge(email: $email, password: $password) {
@@ -1886,6 +3111,8 @@ export const VerifyDocument = gql`
id
email
displayName
+ firstName
+ lastName
workspaceMember {
id
workspace {
@@ -2442,223 +3669,67 @@ export const InsertCompanyDocument = gql`
export type InsertCompanyMutationFn = Apollo.MutationFunction<InsertCompanyMutation, InsertCompanyMutationVariables>;
/**
- * __useInsertCompanyMutation__
- *
- * To run a mutation, you first call `useInsertCompanyMutation` within a React component and pass it any options that fit your needs.
- * When your component renders, `useInsertCompanyMutation` returns a tuple that includes:
- * - A mutate function that you can call at any time to execute the mutation
- * - An object with fields that represent the current status of the mutation's execution
- *
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
- *
- * @example
- * const [insertCompanyMutation, { data, loading, error }] = useInsertCompanyMutation({
- * variables: {
- * id: // value for 'id'
- * name: // value for 'name'
- * domainName: // value for 'domainName'
- * createdAt: // value for 'createdAt'
- * address: // value for 'address'
- * employees: // value for 'employees'
- * },
- * });
- */
-export function useInsertCompanyMutation(baseOptions?: Apollo.MutationHookOptions<InsertCompanyMutation, InsertCompanyMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<InsertCompanyMutation, InsertCompanyMutationVariables>(InsertCompanyDocument, options);
- }
-export type InsertCompanyMutationHookResult = ReturnType<typeof useInsertCompanyMutation>;
-export type InsertCompanyMutationResult = Apollo.MutationResult<InsertCompanyMutation>;
-export type InsertCompanyMutationOptions = Apollo.BaseMutationOptions<InsertCompanyMutation, InsertCompanyMutationVariables>;
-export const DeleteCompaniesDocument = gql`
- mutation DeleteCompanies($ids: [String!]) {
- deleteManyCompany(where: {id: {in: $ids}}) {
- count
- }
-}
- `;
-export type DeleteCompaniesMutationFn = Apollo.MutationFunction<DeleteCompaniesMutation, DeleteCompaniesMutationVariables>;
-
-/**
- * __useDeleteCompaniesMutation__
- *
- * To run a mutation, you first call `useDeleteCompaniesMutation` within a React component and pass it any options that fit your needs.
- * When your component renders, `useDeleteCompaniesMutation` returns a tuple that includes:
- * - A mutate function that you can call at any time to execute the mutation
- * - An object with fields that represent the current status of the mutation's execution
- *
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
- *
- * @example
- * const [deleteCompaniesMutation, { data, loading, error }] = useDeleteCompaniesMutation({
- * variables: {
- * ids: // value for 'ids'
- * },
- * });
- */
-export function useDeleteCompaniesMutation(baseOptions?: Apollo.MutationHookOptions<DeleteCompaniesMutation, DeleteCompaniesMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<DeleteCompaniesMutation, DeleteCompaniesMutationVariables>(DeleteCompaniesDocument, options);
- }
-export type DeleteCompaniesMutationHookResult = ReturnType<typeof useDeleteCompaniesMutation>;
-export type DeleteCompaniesMutationResult = Apollo.MutationResult<DeleteCompaniesMutation>;
-export type DeleteCompaniesMutationOptions = Apollo.BaseMutationOptions<DeleteCompaniesMutation, DeleteCompaniesMutationVariables>;
-export const GetPipelinesDocument = gql`
- query GetPipelines($where: PipelineWhereInput) {
- findManyPipeline(where: $where) {
- id
- name
- pipelineProgressableType
- pipelineStages {
- id
- name
- color
- pipelineProgresses {
- id
- progressableType
- progressableId
- }
- }
- }
-}
- `;
-
-/**
- * __useGetPipelinesQuery__
- *
- * To run a query within a React component, call `useGetPipelinesQuery` and pass it any options that fit your needs.
- * When your component renders, `useGetPipelinesQuery` returns an object from Apollo Client that contains loading, error, and data properties
- * you can use to render your UI.
- *
- * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
- *
- * @example
- * const { data, loading, error } = useGetPipelinesQuery({
- * variables: {
- * where: // value for 'where'
- * },
- * });
- */
-export function useGetPipelinesQuery(baseOptions?: Apollo.QueryHookOptions<GetPipelinesQuery, GetPipelinesQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetPipelinesQuery, GetPipelinesQueryVariables>(GetPipelinesDocument, options);
- }
-export function useGetPipelinesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetPipelinesQuery, GetPipelinesQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetPipelinesQuery, GetPipelinesQueryVariables>(GetPipelinesDocument, options);
- }
-export type GetPipelinesQueryHookResult = ReturnType<typeof useGetPipelinesQuery>;
-export type GetPipelinesLazyQueryHookResult = ReturnType<typeof useGetPipelinesLazyQuery>;
-export type GetPipelinesQueryResult = Apollo.QueryResult<GetPipelinesQuery, GetPipelinesQueryVariables>;
-export const UpdateOnePipelineProgressDocument = gql`
- mutation UpdateOnePipelineProgress($id: String, $pipelineStageId: String) {
- updateOnePipelineProgress(
- where: {id: $id}
- data: {pipelineStage: {connect: {id: $pipelineStageId}}}
- ) {
- id
- }
-}
- `;
-export type UpdateOnePipelineProgressMutationFn = Apollo.MutationFunction<UpdateOnePipelineProgressMutation, UpdateOnePipelineProgressMutationVariables>;
-
-/**
- * __useUpdateOnePipelineProgressMutation__
- *
- * To run a mutation, you first call `useUpdateOnePipelineProgressMutation` within a React component and pass it any options that fit your needs.
- * When your component renders, `useUpdateOnePipelineProgressMutation` returns a tuple that includes:
- * - A mutate function that you can call at any time to execute the mutation
- * - An object with fields that represent the current status of the mutation's execution
- *
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
- *
- * @example
- * const [updateOnePipelineProgressMutation, { data, loading, error }] = useUpdateOnePipelineProgressMutation({
- * variables: {
- * id: // value for 'id'
- * pipelineStageId: // value for 'pipelineStageId'
- * },
- * });
- */
-export function useUpdateOnePipelineProgressMutation(baseOptions?: Apollo.MutationHookOptions<UpdateOnePipelineProgressMutation, UpdateOnePipelineProgressMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpdateOnePipelineProgressMutation, UpdateOnePipelineProgressMutationVariables>(UpdateOnePipelineProgressDocument, options);
- }
-export type UpdateOnePipelineProgressMutationHookResult = ReturnType<typeof useUpdateOnePipelineProgressMutation>;
-export type UpdateOnePipelineProgressMutationResult = Apollo.MutationResult<UpdateOnePipelineProgressMutation>;
-export type UpdateOnePipelineProgressMutationOptions = Apollo.BaseMutationOptions<UpdateOnePipelineProgressMutation, UpdateOnePipelineProgressMutationVariables>;
-export const CreateOnePipelineProgressDocument = gql`
- mutation CreateOnePipelineProgress($uuid: String!, $entityType: PipelineProgressableType!, $entityId: String!, $pipelineId: String!, $pipelineStageId: String!) {
- createOnePipelineProgress(
- data: {id: $uuid, progressableType: $entityType, progressableId: $entityId, pipeline: {connect: {id: $pipelineId}}, pipelineStage: {connect: {id: $pipelineStageId}}}
- ) {
- id
- }
-}
- `;
-export type CreateOnePipelineProgressMutationFn = Apollo.MutationFunction<CreateOnePipelineProgressMutation, CreateOnePipelineProgressMutationVariables>;
-
-/**
- * __useCreateOnePipelineProgressMutation__
+ * __useInsertCompanyMutation__
*
- * To run a mutation, you first call `useCreateOnePipelineProgressMutation` within a React component and pass it any options that fit your needs.
- * When your component renders, `useCreateOnePipelineProgressMutation` returns a tuple that includes:
+ * To run a mutation, you first call `useInsertCompanyMutation` within a React component and pass it any options that fit your needs.
+ * When your component renders, `useInsertCompanyMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
*
* @example
- * const [createOnePipelineProgressMutation, { data, loading, error }] = useCreateOnePipelineProgressMutation({
+ * const [insertCompanyMutation, { data, loading, error }] = useInsertCompanyMutation({
* variables: {
- * uuid: // value for 'uuid'
- * entityType: // value for 'entityType'
- * entityId: // value for 'entityId'
- * pipelineId: // value for 'pipelineId'
- * pipelineStageId: // value for 'pipelineStageId'
+ * id: // value for 'id'
+ * name: // value for 'name'
+ * domainName: // value for 'domainName'
+ * createdAt: // value for 'createdAt'
+ * address: // value for 'address'
+ * employees: // value for 'employees'
* },
* });
*/
-export function useCreateOnePipelineProgressMutation(baseOptions?: Apollo.MutationHookOptions<CreateOnePipelineProgressMutation, CreateOnePipelineProgressMutationVariables>) {
+export function useInsertCompanyMutation(baseOptions?: Apollo.MutationHookOptions<InsertCompanyMutation, InsertCompanyMutationVariables>) {
const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<CreateOnePipelineProgressMutation, CreateOnePipelineProgressMutationVariables>(CreateOnePipelineProgressDocument, options);
+ return Apollo.useMutation<InsertCompanyMutation, InsertCompanyMutationVariables>(InsertCompanyDocument, options);
}
-export type CreateOnePipelineProgressMutationHookResult = ReturnType<typeof useCreateOnePipelineProgressMutation>;
-export type CreateOnePipelineProgressMutationResult = Apollo.MutationResult<CreateOnePipelineProgressMutation>;
-export type CreateOnePipelineProgressMutationOptions = Apollo.BaseMutationOptions<CreateOnePipelineProgressMutation, CreateOnePipelineProgressMutationVariables>;
-export const DeleteManyPipelineProgressDocument = gql`
- mutation DeleteManyPipelineProgress($ids: [String!]) {
- deleteManyPipelineProgress(where: {id: {in: $ids}}) {
+export type InsertCompanyMutationHookResult = ReturnType<typeof useInsertCompanyMutation>;
+export type InsertCompanyMutationResult = Apollo.MutationResult<InsertCompanyMutation>;
+export type InsertCompanyMutationOptions = Apollo.BaseMutationOptions<InsertCompanyMutation, InsertCompanyMutationVariables>;
+export const DeleteCompaniesDocument = gql`
+ mutation DeleteCompanies($ids: [String!]) {
+ deleteManyCompany(where: {id: {in: $ids}}) {
count
}
}
`;
-export type DeleteManyPipelineProgressMutationFn = Apollo.MutationFunction<DeleteManyPipelineProgressMutation, DeleteManyPipelineProgressMutationVariables>;
+export type DeleteCompaniesMutationFn = Apollo.MutationFunction<DeleteCompaniesMutation, DeleteCompaniesMutationVariables>;
/**
- * __useDeleteManyPipelineProgressMutation__
+ * __useDeleteCompaniesMutation__
*
- * To run a mutation, you first call `useDeleteManyPipelineProgressMutation` within a React component and pass it any options that fit your needs.
- * When your component renders, `useDeleteManyPipelineProgressMutation` returns a tuple that includes:
+ * To run a mutation, you first call `useDeleteCompaniesMutation` within a React component and pass it any options that fit your needs.
+ * When your component renders, `useDeleteCompaniesMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
*
* @example
- * const [deleteManyPipelineProgressMutation, { data, loading, error }] = useDeleteManyPipelineProgressMutation({
+ * const [deleteCompaniesMutation, { data, loading, error }] = useDeleteCompaniesMutation({
* variables: {
* ids: // value for 'ids'
* },
* });
*/
-export function useDeleteManyPipelineProgressMutation(baseOptions?: Apollo.MutationHookOptions<DeleteManyPipelineProgressMutation, DeleteManyPipelineProgressMutationVariables>) {
+export function useDeleteCompaniesMutation(baseOptions?: Apollo.MutationHookOptions<DeleteCompaniesMutation, DeleteCompaniesMutationVariables>) {
const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<DeleteManyPipelineProgressMutation, DeleteManyPipelineProgressMutationVariables>(DeleteManyPipelineProgressDocument, options);
+ return Apollo.useMutation<DeleteCompaniesMutation, DeleteCompaniesMutationVariables>(DeleteCompaniesDocument, options);
}
-export type DeleteManyPipelineProgressMutationHookResult = ReturnType<typeof useDeleteManyPipelineProgressMutation>;
-export type DeleteManyPipelineProgressMutationResult = Apollo.MutationResult<DeleteManyPipelineProgressMutation>;
-export type DeleteManyPipelineProgressMutationOptions = Apollo.BaseMutationOptions<DeleteManyPipelineProgressMutation, DeleteManyPipelineProgressMutationVariables>;
+export type DeleteCompaniesMutationHookResult = ReturnType<typeof useDeleteCompaniesMutation>;
+export type DeleteCompaniesMutationResult = Apollo.MutationResult<DeleteCompaniesMutation>;
+export type DeleteCompaniesMutationOptions = Apollo.BaseMutationOptions<DeleteCompaniesMutation, DeleteCompaniesMutationVariables>;
export const GetPeopleDocument = gql`
query GetPeople($orderBy: [PersonOrderByWithRelationInput!], $where: PersonWhereInput, $limit: Int) {
people: findManyPerson(orderBy: $orderBy, where: $where, take: $limit) {
@@ -2847,6 +3918,162 @@ export function useDeletePeopleMutation(baseOptions?: Apollo.MutationHookOptions
export type DeletePeopleMutationHookResult = ReturnType<typeof useDeletePeopleMutation>;
export type DeletePeopleMutationResult = Apollo.MutationResult<DeletePeopleMutation>;
export type DeletePeopleMutationOptions = Apollo.BaseMutationOptions<DeletePeopleMutation, DeletePeopleMutationVariables>;
+export const GetPipelinesDocument = gql`
+ query GetPipelines($where: PipelineWhereInput) {
+ findManyPipeline(where: $where) {
+ id
+ name
+ pipelineProgressableType
+ pipelineStages {
+ id
+ name
+ color
+ pipelineProgresses {
+ id
+ progressableType
+ progressableId
+ }
+ }
+ }
+}
+ `;
+
+/**
+ * __useGetPipelinesQuery__
+ *
+ * To run a query within a React component, call `useGetPipelinesQuery` and pass it any options that fit your needs.
+ * When your component renders, `useGetPipelinesQuery` returns an object from Apollo Client that contains loading, error, and data properties
+ * you can use to render your UI.
+ *
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
+ *
+ * @example
+ * const { data, loading, error } = useGetPipelinesQuery({
+ * variables: {
+ * where: // value for 'where'
+ * },
+ * });
+ */
+export function useGetPipelinesQuery(baseOptions?: Apollo.QueryHookOptions<GetPipelinesQuery, GetPipelinesQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetPipelinesQuery, GetPipelinesQueryVariables>(GetPipelinesDocument, options);
+ }
+export function useGetPipelinesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetPipelinesQuery, GetPipelinesQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetPipelinesQuery, GetPipelinesQueryVariables>(GetPipelinesDocument, options);
+ }
+export type GetPipelinesQueryHookResult = ReturnType<typeof useGetPipelinesQuery>;
+export type GetPipelinesLazyQueryHookResult = ReturnType<typeof useGetPipelinesLazyQuery>;
+export type GetPipelinesQueryResult = Apollo.QueryResult<GetPipelinesQuery, GetPipelinesQueryVariables>;
+export const UpdateOnePipelineProgressDocument = gql`
+ mutation UpdateOnePipelineProgress($id: String, $pipelineStageId: String) {
+ updateOnePipelineProgress(
+ where: {id: $id}
+ data: {pipelineStage: {connect: {id: $pipelineStageId}}}
+ ) {
+ id
+ }
+}
+ `;
+export type UpdateOnePipelineProgressMutationFn = Apollo.MutationFunction<UpdateOnePipelineProgressMutation, UpdateOnePipelineProgressMutationVariables>;
+
+/**
+ * __useUpdateOnePipelineProgressMutation__
+ *
+ * To run a mutation, you first call `useUpdateOnePipelineProgressMutation` within a React component and pass it any options that fit your needs.
+ * When your component renders, `useUpdateOnePipelineProgressMutation` returns a tuple that includes:
+ * - A mutate function that you can call at any time to execute the mutation
+ * - An object with fields that represent the current status of the mutation's execution
+ *
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
+ *
+ * @example
+ * const [updateOnePipelineProgressMutation, { data, loading, error }] = useUpdateOnePipelineProgressMutation({
+ * variables: {
+ * id: // value for 'id'
+ * pipelineStageId: // value for 'pipelineStageId'
+ * },
+ * });
+ */
+export function useUpdateOnePipelineProgressMutation(baseOptions?: Apollo.MutationHookOptions<UpdateOnePipelineProgressMutation, UpdateOnePipelineProgressMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateOnePipelineProgressMutation, UpdateOnePipelineProgressMutationVariables>(UpdateOnePipelineProgressDocument, options);
+ }
+export type UpdateOnePipelineProgressMutationHookResult = ReturnType<typeof useUpdateOnePipelineProgressMutation>;
+export type UpdateOnePipelineProgressMutationResult = Apollo.MutationResult<UpdateOnePipelineProgressMutation>;
+export type UpdateOnePipelineProgressMutationOptions = Apollo.BaseMutationOptions<UpdateOnePipelineProgressMutation, UpdateOnePipelineProgressMutationVariables>;
+export const CreateOnePipelineProgressDocument = gql`
+ mutation CreateOnePipelineProgress($uuid: String!, $entityType: PipelineProgressableType!, $entityId: String!, $pipelineId: String!, $pipelineStageId: String!) {
+ createOnePipelineProgress(
+ data: {id: $uuid, progressableType: $entityType, progressableId: $entityId, pipeline: {connect: {id: $pipelineId}}, pipelineStage: {connect: {id: $pipelineStageId}}}
+ ) {
+ id
+ }
+}
+ `;
+export type CreateOnePipelineProgressMutationFn = Apollo.MutationFunction<CreateOnePipelineProgressMutation, CreateOnePipelineProgressMutationVariables>;
+
+/**
+ * __useCreateOnePipelineProgressMutation__
+ *
+ * To run a mutation, you first call `useCreateOnePipelineProgressMutation` within a React component and pass it any options that fit your needs.
+ * When your component renders, `useCreateOnePipelineProgressMutation` returns a tuple that includes:
+ * - A mutate function that you can call at any time to execute the mutation
+ * - An object with fields that represent the current status of the mutation's execution
+ *
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
+ *
+ * @example
+ * const [createOnePipelineProgressMutation, { data, loading, error }] = useCreateOnePipelineProgressMutation({
+ * variables: {
+ * uuid: // value for 'uuid'
+ * entityType: // value for 'entityType'
+ * entityId: // value for 'entityId'
+ * pipelineId: // value for 'pipelineId'
+ * pipelineStageId: // value for 'pipelineStageId'
+ * },
+ * });
+ */
+export function useCreateOnePipelineProgressMutation(baseOptions?: Apollo.MutationHookOptions<CreateOnePipelineProgressMutation, CreateOnePipelineProgressMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CreateOnePipelineProgressMutation, CreateOnePipelineProgressMutationVariables>(CreateOnePipelineProgressDocument, options);
+ }
+export type CreateOnePipelineProgressMutationHookResult = ReturnType<typeof useCreateOnePipelineProgressMutation>;
+export type CreateOnePipelineProgressMutationResult = Apollo.MutationResult<CreateOnePipelineProgressMutation>;
+export type CreateOnePipelineProgressMutationOptions = Apollo.BaseMutationOptions<CreateOnePipelineProgressMutation, CreateOnePipelineProgressMutationVariables>;
+export const DeleteManyPipelineProgressDocument = gql`
+ mutation DeleteManyPipelineProgress($ids: [String!]) {
+ deleteManyPipelineProgress(where: {id: {in: $ids}}) {
+ count
+ }
+}
+ `;
+export type DeleteManyPipelineProgressMutationFn = Apollo.MutationFunction<DeleteManyPipelineProgressMutation, DeleteManyPipelineProgressMutationVariables>;
+
+/**
+ * __useDeleteManyPipelineProgressMutation__
+ *
+ * To run a mutation, you first call `useDeleteManyPipelineProgressMutation` within a React component and pass it any options that fit your needs.
+ * When your component renders, `useDeleteManyPipelineProgressMutation` returns a tuple that includes:
+ * - A mutate function that you can call at any time to execute the mutation
+ * - An object with fields that represent the current status of the mutation's execution
+ *
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
+ *
+ * @example
+ * const [deleteManyPipelineProgressMutation, { data, loading, error }] = useDeleteManyPipelineProgressMutation({
+ * variables: {
+ * ids: // value for 'ids'
+ * },
+ * });
+ */
+export function useDeleteManyPipelineProgressMutation(baseOptions?: Apollo.MutationHookOptions<DeleteManyPipelineProgressMutation, DeleteManyPipelineProgressMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeleteManyPipelineProgressMutation, DeleteManyPipelineProgressMutationVariables>(DeleteManyPipelineProgressDocument, options);
+ }
+export type DeleteManyPipelineProgressMutationHookResult = ReturnType<typeof useDeleteManyPipelineProgressMutation>;
+export type DeleteManyPipelineProgressMutationResult = Apollo.MutationResult<DeleteManyPipelineProgressMutation>;
+export type DeleteManyPipelineProgressMutationOptions = Apollo.BaseMutationOptions<DeleteManyPipelineProgressMutation, DeleteManyPipelineProgressMutationVariables>;
export const SearchPeopleDocument = gql`
query SearchPeople($where: PersonWhereInput, $limit: Int, $orderBy: [PersonOrderByWithRelationInput!]) {
searchResults: findManyPerson(where: $where, take: $limit, orderBy: $orderBy) {
@@ -3005,13 +4232,14 @@ export type SearchCompanyQueryHookResult = ReturnType<typeof useSearchCompanyQue
export type SearchCompanyLazyQueryHookResult = ReturnType<typeof useSearchCompanyLazyQuery>;
export type SearchCompanyQueryResult = Apollo.QueryResult<SearchCompanyQuery, SearchCompanyQueryVariables>;
export const GetCurrentUserDocument = gql`
- query GetCurrentUser($uuid: String) {
- users: findManyUser(where: {id: {equals: $uuid}}) {
+ query GetCurrentUser {
+ currentUser {
id
email
displayName
firstName
lastName
+ avatarUrl
workspaceMember {
id
workspace {
@@ -3037,7 +4265,6 @@ export const GetCurrentUserDocument = gql`
* @example
* const { data, loading, error } = useGetCurrentUserQuery({
* variables: {
- * uuid: // value for 'uuid'
* },
* });
*/
@@ -3090,38 +4317,78 @@ export function useGetUsersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<G
export type GetUsersQueryHookResult = ReturnType<typeof useGetUsersQuery>;
export type GetUsersLazyQueryHookResult = ReturnType<typeof useGetUsersLazyQuery>;
export type GetUsersQueryResult = Apollo.QueryResult<GetUsersQuery, GetUsersQueryVariables>;
+export const UpdateUserDocument = gql`
+ mutation UpdateUser($data: UserUpdateInput!, $where: UserWhereUniqueInput!) {
+ updateUser(data: $data, where: $where) {
+ id
+ email
+ displayName
+ firstName
+ lastName
+ avatarUrl
+ }
+}
+ `;
+export type UpdateUserMutationFn = Apollo.MutationFunction<UpdateUserMutation, UpdateUserMutationVariables>;
-export const GET_CLIENT_CONFIG = gql`
- query GetClientConfig {
- clientConfig {
- display_google_login
- prefill_login_with_seed
- }
+/**
+ * __useUpdateUserMutation__
+ *
+ * To run a mutation, you first call `useUpdateUserMutation` within a React component and pass it any options that fit your needs.
+ * When your component renders, `useUpdateUserMutation` returns a tuple that includes:
+ * - A mutate function that you can call at any time to execute the mutation
+ * - An object with fields that represent the current status of the mutation's execution
+ *
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
+ *
+ * @example
+ * const [updateUserMutation, { data, loading, error }] = useUpdateUserMutation({
+ * variables: {
+ * data: // value for 'data'
+ * where: // value for 'where'
+ * },
+ * });
+ */
+export function useUpdateUserMutation(baseOptions?: Apollo.MutationHookOptions<UpdateUserMutation, UpdateUserMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateUserMutation, UpdateUserMutationVariables>(UpdateUserDocument, options);
+ }
+export type UpdateUserMutationHookResult = ReturnType<typeof useUpdateUserMutation>;
+export type UpdateUserMutationResult = Apollo.MutationResult<UpdateUserMutation>;
+export type UpdateUserMutationOptions = Apollo.BaseMutationOptions<UpdateUserMutation, UpdateUserMutationVariables>;
+export const UpdateWorkspaceDocument = gql`
+ mutation UpdateWorkspace($data: WorkspaceUpdateInput!) {
+ updateWorkspace(data: $data) {
+ id
+ domainName
+ displayName
+ logo
}
-`;
-
-export function useGetClientConfigQuery(
- baseOptions?: Apollo.QueryHookOptions<
- GetClientConfigQuery,
- GetClientConfigQueryVariables
- >,
-) {
- const options = { ...defaultOptions, ...baseOptions };
- return Apollo.useQuery<GetClientConfigQuery, GetClientConfigQueryVariables>(
- GET_CLIENT_CONFIG,
- options,
- );
}
+ `;
+export type UpdateWorkspaceMutationFn = Apollo.MutationFunction<UpdateWorkspaceMutation, UpdateWorkspaceMutationVariables>;
-export function useGetClientConfigLazyQuery(
- baseOptions?: Apollo.LazyQueryHookOptions<
- GetClientConfigQuery,
- GetClientConfigQueryVariables
- >,
-) {
- const options = { ...defaultOptions, ...baseOptions };
- return Apollo.useLazyQuery<
- GetClientConfigQuery,
- GetClientConfigQueryVariables
- >(GET_CLIENT_CONFIG, options);
-}
\ No newline at end of file
+/**
+ * __useUpdateWorkspaceMutation__
+ *
+ * To run a mutation, you first call `useUpdateWorkspaceMutation` within a React component and pass it any options that fit your needs.
+ * When your component renders, `useUpdateWorkspaceMutation` returns a tuple that includes:
+ * - A mutate function that you can call at any time to execute the mutation
+ * - An object with fields that represent the current status of the mutation's execution
+ *
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
+ *
+ * @example
+ * const [updateWorkspaceMutation, { data, loading, error }] = useUpdateWorkspaceMutation({
+ * variables: {
+ * data: // value for 'data'
+ * },
+ * });
+ */
+export function useUpdateWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions<UpdateWorkspaceMutation, UpdateWorkspaceMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateWorkspaceMutation, UpdateWorkspaceMutationVariables>(UpdateWorkspaceDocument, options);
+ }
+export type UpdateWorkspaceMutationHookResult = ReturnType<typeof useUpdateWorkspaceMutation>;
+export type UpdateWorkspaceMutationResult = Apollo.MutationResult<UpdateWorkspaceMutation>;
+export type UpdateWorkspaceMutationOptions = Apollo.BaseMutationOptions<UpdateWorkspaceMutation, UpdateWorkspaceMutationVariables>;
\ No newline at end of file
diff --git a/front/src/modules/apollo/hooks/useApolloFactory.ts b/front/src/modules/apollo/hooks/useApolloFactory.ts
index 793145ec4d6..f1670f05197 100644
--- a/front/src/modules/apollo/hooks/useApolloFactory.ts
+++ b/front/src/modules/apollo/hooks/useApolloFactory.ts
@@ -1,9 +1,16 @@
import { useEffect, useMemo, useRef } from 'react';
-import { InMemoryCache, NormalizedCacheObject } from '@apollo/client';
+import {
+ ApolloLink,
+ InMemoryCache,
+ NormalizedCacheObject,
+} from '@apollo/client';
import { useRecoilState } from 'recoil';
+import { isMockModeState } from '@/auth/states/isMockModeState';
import { tokenPairState } from '@/auth/states/tokenPairState';
import { CommentThreadTarget } from '~/generated/graphql';
+import { mockedCompaniesData } from '~/testing/mock-data/companies';
+import { mockedUsersData } from '~/testing/mock-data/users';
import { ApolloFactory } from '../services/apollo.factory';
@@ -11,8 +18,22 @@ export function useApolloFactory() {
const apolloRef = useRef<ApolloFactory<NormalizedCacheObject> | null>(null);
const [tokenPair, setTokenPair] = useRecoilState(tokenPairState);
+ const [isMockMode] = useRecoilState(isMockModeState);
const apolloClient = useMemo(() => {
+ const mockLink = new ApolloLink((operation, forward) => {
+ return forward(operation).map((response) => {
+ if (operation.operationName === 'GetCompanies') {
+ return { data: { companies: mockedCompaniesData } };
+ }
+ if (operation.operationName === 'GetCurrentUser') {
+ return { data: { currentUser: mockedUsersData[0] } };
+ }
+
+ return response;
+ });
+ });
+
apolloRef.current = new ApolloFactory({
uri: `${process.env.REACT_APP_API_URL}`,
cache: new InMemoryCache({
@@ -42,10 +63,11 @@ export function useApolloFactory() {
onUnauthenticatedError() {
setTokenPair(null);
},
+ extraLinks: isMockMode ? [mockLink] : [],
});
return apolloRef.current.getClient();
- }, [setTokenPair]);
+ }, [isMockMode, setTokenPair]);
useEffect(() => {
if (apolloRef.current) {
diff --git a/front/src/modules/apollo/hooks/useApolloMocked.ts b/front/src/modules/apollo/hooks/useApolloMocked.ts
deleted file mode 100644
index 91b706db4c1..00000000000
--- a/front/src/modules/apollo/hooks/useApolloMocked.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import { useMemo } from 'react';
-import {
- ApolloClient,
- ApolloLink,
- createHttpLink,
- from,
- InMemoryCache,
-} from '@apollo/client';
-
-import { mockedCompaniesData } from '~/testing/mock-data/companies';
-import { mockedUsersData } from '~/testing/mock-data/users';
-
-export default function useApolloMocked() {
- const mockedClient = useMemo(() => {
- const apiLink = createHttpLink({
- uri: `${process.env.REACT_APP_API_URL}`,
- });
-
- const mockLink = new ApolloLink((operation, forward) => {
- return forward(operation).map((response) => {
- if (operation.operationName === 'GetCompanies') {
- return { data: { companies: mockedCompaniesData } };
- }
- if (operation.operationName === 'GetCurrentUser') {
- return { data: { users: [mockedUsersData[0]] } };
- }
-
- return response;
- });
- });
-
- return new ApolloClient({
- link: from([mockLink, apiLink]),
- cache: new InMemoryCache(),
- defaultOptions: {
- query: {
- fetchPolicy: 'cache-first',
- },
- },
- });
- }, []);
-
- return mockedClient;
-}
diff --git a/front/src/modules/apollo/services/apollo.factory.ts b/front/src/modules/apollo/services/apollo.factory.ts
index f89543b561f..3ff9a8bfcd1 100644
--- a/front/src/modules/apollo/services/apollo.factory.ts
+++ b/front/src/modules/apollo/services/apollo.factory.ts
@@ -11,31 +11,24 @@ import { GraphQLErrors } from '@apollo/client/errors';
import { setContext } from '@apollo/client/link/context';
import { onError } from '@apollo/client/link/error';
import { RetryLink } from '@apollo/client/link/retry';
-import { Observable } from '@apollo/client/utilities';
import { renewToken } from '@/auth/services/AuthService';
import { AuthTokenPair } from '~/generated/graphql';
import { loggerLink } from '../../utils/apollo-logger';
import { assertNotNull } from '../../utils/assert';
-import { promiseToObservable } from '../../utils/promise-to-observable';
import { ApolloManager } from '../interfaces/apolloManager.interface';
const logger = loggerLink(() => 'Twenty');
let isRefreshing = false;
-let pendingRequests: (() => void)[] = [];
-
-const resolvePendingRequests = () => {
- pendingRequests.map((callback) => callback());
- pendingRequests = [];
-};
export interface Options<TCacheShape> extends ApolloClientOptions<TCacheShape> {
onError?: (err: GraphQLErrors | undefined) => void;
onNetworkError?: (err: Error | ServerParseError | ServerError) => void;
onTokenPairChange?: (tokenPair: AuthTokenPair) => void;
onUnauthenticatedError?: () => void;
+ extraLinks?: ApolloLink[];
}
export class ApolloFactory<TCacheShape> implements ApolloManager<TCacheShape> {
@@ -49,6 +42,7 @@ export class ApolloFactory<TCacheShape> implements ApolloManager<TCacheShape> {
onNetworkError,
onTokenPairChange,
onUnauthenticatedError,
+ extraLinks,
...options
} = opts;
@@ -86,38 +80,22 @@ export class ApolloFactory<TCacheShape> implements ApolloManager<TCacheShape> {
for (const graphQLError of graphQLErrors) {
switch (graphQLError?.extensions?.code) {
case 'UNAUTHENTICATED': {
- // error code is set to UNAUTHENTICATED
- // when AuthenticationError thrown in resolver
- let forward$: Observable<boolean>;
-
if (!isRefreshing) {
isRefreshing = true;
- forward$ = promiseToObservable(
- renewToken(uri, this.tokenPair)
- .then((tokens) => {
- onTokenPairChange?.(tokens);
- resolvePendingRequests();
- return true;
- })
- .catch(() => {
- pendingRequests = [];
- onUnauthenticatedError?.();
- return false;
- })
- .finally(() => {
- isRefreshing = false;
- }),
- ).filter((value) => Boolean(value));
- } else {
- // Will only emit once the Promise is resolved
- forward$ = promiseToObservable(
- new Promise<boolean>((resolve) => {
- pendingRequests.push(() => resolve(true));
- }),
- );
+ renewToken(uri, this.tokenPair)
+ .then((tokens) => {
+ onTokenPairChange?.(tokens);
+ return true;
+ })
+ .catch(() => {
+ onUnauthenticatedError?.();
+ return false;
+ })
+ .finally(() => {
+ isRefreshing = false;
+ });
}
-
- return forward$.flatMap(() => forward(operation));
+ return forward(operation);
}
default:
if (process.env.NODE_ENV === 'development') {
@@ -148,6 +126,7 @@ export class ApolloFactory<TCacheShape> implements ApolloManager<TCacheShape> {
[
errorLink,
authLink,
+ ...(extraLinks ? extraLinks : []),
// Only show logger in dev mode
process.env.NODE_ENV !== 'production' ? logger : null,
retryLink,
diff --git a/front/src/modules/auth/components/RequireAuth.tsx b/front/src/modules/auth/components/RequireAuth.tsx
deleted file mode 100644
index 7c4692b25ae..00000000000
--- a/front/src/modules/auth/components/RequireAuth.tsx
+++ /dev/null
@@ -1,56 +0,0 @@
-import { useEffect } from 'react';
-import { useNavigate } from 'react-router-dom';
-import { keyframes } from '@emotion/react';
-import styled from '@emotion/styled';
-
-import { useIsLogged } from '../hooks/useIsLogged';
-
-const EmptyContainer = styled.div`
- align-items: center;
- display: flex;
- height: 100%;
- justify-content: center;
- width: 100%;
-`;
-
-const fadeIn = keyframes`
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-`;
-
-const FadeInStyle = styled.div`
- animation: ${fadeIn} 1s forwards;
- opacity: 0;
-`;
-
-export function RequireAuth({
- children,
-}: {
- children: JSX.Element;
-}): JSX.Element {
- const navigate = useNavigate();
-
- const isLogged = useIsLogged();
-
- useEffect(() => {
- if (!isLogged) {
- navigate('/auth');
- }
- }, [isLogged, navigate]);
-
- if (!isLogged) {
- return (
- <EmptyContainer>
- <FadeInStyle>
- Please hold on a moment, we're directing you to our login page...
- </FadeInStyle>
- </EmptyContainer>
- );
- }
-
- return children;
-}
diff --git a/front/src/modules/auth/components/RequireOnboarded.tsx b/front/src/modules/auth/components/RequireOnboarded.tsx
new file mode 100644
index 00000000000..8b05ec357db
--- /dev/null
+++ b/front/src/modules/auth/components/RequireOnboarded.tsx
@@ -0,0 +1,83 @@
+import { useEffect } from 'react';
+import { useNavigate } from 'react-router-dom';
+import { keyframes } from '@emotion/react';
+import styled from '@emotion/styled';
+import { useRecoilState } from 'recoil';
+
+import { captureHotkeyTypeInFocusState } from '@/hotkeys/states/captureHotkeyTypeInFocusState';
+
+import { useOnboardingStatus } from '../hooks/useOnboardingStatus';
+import { OnboardingStatus } from '../utils/getOnboardingStatus';
+
+const EmptyContainer = styled.div`
+ align-items: center;
+ display: flex;
+ height: 100%;
+ justify-content: center;
+ width: 100%;
+`;
+
+const fadeIn = keyframes`
+ from {
+ opacity: 0;
+ }
+ to {
+ opacity: 1;
+ }
+`;
+
+const FadeInStyle = styled.div`
+ animation: ${fadeIn} 1s forwards;
+ opacity: 0;
+`;
+
+export function RequireOnboarded({
+ children,
+}: {
+ children: JSX.Element;
+}): JSX.Element {
+ const navigate = useNavigate();
+
+ const [, setCaptureHotkeyTypeInFocus] = useRecoilState(
+ captureHotkeyTypeInFocusState,
+ );
+ const onboardingStatus = useOnboardingStatus();
+
+ useEffect(() => {
+ if (onboardingStatus === OnboardingStatus.OngoingUserCreation) {
+ navigate('/auth');
+ } else if (onboardingStatus === OnboardingStatus.OngoingWorkspaceCreation) {
+ navigate('/auth/create/workspace');
+ } else if (onboardingStatus === OnboardingStatus.OngoingProfileCreation) {
+ navigate('/auth/create/profile');
+ }
+ }, [onboardingStatus, navigate]);
+
+ useEffect(() => {
+ if (onboardingStatus === OnboardingStatus.Completed) {
+ setCaptureHotkeyTypeInFocus(false);
+ }
+ }, [setCaptureHotkeyTypeInFocus, onboardingStatus]);
+
+ if (onboardingStatus !== OnboardingStatus.Completed) {
+ return (
+ <EmptyContainer>
+ <FadeInStyle>
+ {onboardingStatus === OnboardingStatus.OngoingUserCreation && (
+ <div>
+ Please hold on a moment, we're directing you to our login page...
+ </div>
+ )}
+ {onboardingStatus !== OnboardingStatus.OngoingUserCreation && (
+ <div>
+ Please hold on a moment, we're directing you to our onboarding
+ flow...
+ </div>
+ )}
+ </FadeInStyle>
+ </EmptyContainer>
+ );
+ }
+
+ return children;
+}
diff --git a/front/src/modules/auth/components/RequireNotAuth.tsx b/front/src/modules/auth/components/RequireOnboarding.tsx
similarity index 69%
rename from front/src/modules/auth/components/RequireNotAuth.tsx
rename to front/src/modules/auth/components/RequireOnboarding.tsx
index 494bd296fcf..93aa215a138 100644
--- a/front/src/modules/auth/components/RequireNotAuth.tsx
+++ b/front/src/modules/auth/components/RequireOnboarding.tsx
@@ -3,7 +3,8 @@ import { useNavigate } from 'react-router-dom';
import { keyframes } from '@emotion/react';
import styled from '@emotion/styled';
-import { useIsLogged } from '../hooks/useIsLogged';
+import { useOnboardingStatus } from '../hooks/useOnboardingStatus';
+import { OnboardingStatus } from '../utils/getOnboardingStatus';
const EmptyContainer = styled.div`
align-items: center;
@@ -27,22 +28,22 @@ const FadeInStyle = styled.div`
opacity: 0;
`;
-export function RequireNotAuth({
+export function RequireOnboarding({
children,
}: {
children: JSX.Element;
}): JSX.Element {
const navigate = useNavigate();
- const isLogged = useIsLogged();
+ const onboardingStatus = useOnboardingStatus();
useEffect(() => {
- if (isLogged) {
+ if (onboardingStatus === OnboardingStatus.Completed) {
navigate('/');
}
- }, [isLogged, navigate]);
+ }, [navigate, onboardingStatus]);
- if (isLogged) {
+ if (onboardingStatus === OnboardingStatus.Completed) {
return (
<EmptyContainer>
<FadeInStyle>
diff --git a/front/src/modules/auth/hooks/useFetchCurrentUser.ts b/front/src/modules/auth/hooks/useFetchCurrentUser.ts
deleted file mode 100644
index 30a2de89ca6..00000000000
--- a/front/src/modules/auth/hooks/useFetchCurrentUser.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import jwt from 'jwt-decode';
-
-import { AuthTokenPair, useGetCurrentUserQuery } from '~/generated/graphql';
-
-export function useFetchCurrentUser(tokenPair: AuthTokenPair | null) {
- const userId = tokenPair?.accessToken.token
- ? jwt<{ sub: string }>(tokenPair.accessToken.token).sub
- : null;
- const { data } = useGetCurrentUserQuery({
- variables: { uuid: userId },
- });
- return data?.users?.[0];
-}
diff --git a/front/src/modules/auth/hooks/useOnboardingStatus.ts b/front/src/modules/auth/hooks/useOnboardingStatus.ts
new file mode 100644
index 00000000000..5b9d8499f69
--- /dev/null
+++ b/front/src/modules/auth/hooks/useOnboardingStatus.ts
@@ -0,0 +1,20 @@
+import { useMemo } from 'react';
+import { useRecoilState } from 'recoil';
+
+import { useIsLogged } from '../hooks/useIsLogged';
+import { currentUserState } from '../states/currentUserState';
+import {
+ getOnboardingStatus,
+ OnboardingStatus,
+} from '../utils/getOnboardingStatus';
+
+export function useOnboardingStatus(): OnboardingStatus {
+ const [currentUser] = useRecoilState(currentUserState);
+ const isLoggedIn = useIsLogged();
+ const onboardingStatus = useMemo(
+ () => getOnboardingStatus(isLoggedIn, currentUser),
+ [currentUser, isLoggedIn],
+ );
+
+ return onboardingStatus;
+}
diff --git a/front/src/modules/auth/states/currentUserState.ts b/front/src/modules/auth/states/currentUserState.ts
index 4402a67d330..54aeceb25cd 100644
--- a/front/src/modules/auth/states/currentUserState.ts
+++ b/front/src/modules/auth/states/currentUserState.ts
@@ -1,14 +1,8 @@
import { atom } from 'recoil';
-import { User, Workspace, WorkspaceMember } from '~/generated/graphql';
+import { GetCurrentUserQuery } from '~/generated/graphql';
-type CurrentUser = Pick<User, 'id' | 'email' | 'displayName'> & {
- workspaceMember?:
- | (Pick<WorkspaceMember, 'id'> & {
- workspace: Pick<Workspace, 'id' | 'displayName' | 'logo'>;
- })
- | null;
-};
+export type CurrentUser = GetCurrentUserQuery['currentUser'];
export const currentUserState = atom<CurrentUser | null>({
key: 'currentUserState',
diff --git a/front/src/modules/auth/utils/getOnboardingStatus.ts b/front/src/modules/auth/utils/getOnboardingStatus.ts
new file mode 100644
index 00000000000..deb2d7dc7e5
--- /dev/null
+++ b/front/src/modules/auth/utils/getOnboardingStatus.ts
@@ -0,0 +1,25 @@
+import { CurrentUser } from '../states/currentUserState';
+
+export enum OnboardingStatus {
+ OngoingUserCreation = 'ongoing_user_creation',
+ OngoingWorkspaceCreation = 'ongoing_workspace_creation',
+ OngoingProfileCreation = 'ongoing_profile_creation',
+ Completed = 'completed',
+}
+
+export function getOnboardingStatus(
+ isLoggedIn: boolean,
+ currentUser: CurrentUser | null,
+) {
+ if (!isLoggedIn || !currentUser) {
+ return OnboardingStatus.OngoingUserCreation;
+ }
+ if (!currentUser.workspaceMember?.workspace.displayName) {
+ return OnboardingStatus.OngoingWorkspaceCreation;
+ }
+ if (!currentUser.firstName || !currentUser.lastName) {
+ return OnboardingStatus.OngoingProfileCreation;
+ }
+
+ return OnboardingStatus.Completed;
+}
diff --git a/front/src/modules/pipeline-progress/components/BoardActionBarButtonDeletePipelineProgress.tsx b/front/src/modules/pipeline-progress/components/BoardActionBarButtonDeletePipelineProgress.tsx
index eba747e5553..86aabd26f16 100644
--- a/front/src/modules/pipeline-progress/components/BoardActionBarButtonDeletePipelineProgress.tsx
+++ b/front/src/modules/pipeline-progress/components/BoardActionBarButtonDeletePipelineProgress.tsx
@@ -26,8 +26,6 @@ export function BoardActionBarButtonDeletePipelineProgress() {
},
});
- console.log('boardItems', boardItems);
-
setBoardItems(
Object.fromEntries(
Object.entries(boardItems).filter(
diff --git a/front/src/modules/relation-picker/components/MultipleEntitySelect.tsx b/front/src/modules/relation-picker/components/MultipleEntitySelect.tsx
index ef8bf5fa584..53b47d4f94d 100644
--- a/front/src/modules/relation-picker/components/MultipleEntitySelect.tsx
+++ b/front/src/modules/relation-picker/components/MultipleEntitySelect.tsx
@@ -1,4 +1,4 @@
-import { debounce } from 'lodash';
+import debounce from 'lodash.debounce';
import { EntityForSelect } from '@/relation-picker/types/EntityForSelect';
import { DropdownMenu } from '@/ui/components/menu/DropdownMenu';
diff --git a/front/src/modules/relation-picker/hooks/useEntitySelectSearch.ts b/front/src/modules/relation-picker/hooks/useEntitySelectSearch.ts
index 299d3820618..512c4e22330 100644
--- a/front/src/modules/relation-picker/hooks/useEntitySelectSearch.ts
+++ b/front/src/modules/relation-picker/hooks/useEntitySelectSearch.ts
@@ -1,4 +1,4 @@
-import { debounce } from 'lodash';
+import debounce from 'lodash.debounce';
import { useRecoilScopedState } from '@/recoil-scope/hooks/useRecoilScopedState';
diff --git a/front/src/modules/relation-picker/hooks/useFilteredSearchEntityQuery.ts b/front/src/modules/relation-picker/hooks/useFilteredSearchEntityQuery.ts
index 13c0986fcf8..9f62ec8b6ba 100644
--- a/front/src/modules/relation-picker/hooks/useFilteredSearchEntityQuery.ts
+++ b/front/src/modules/relation-picker/hooks/useFilteredSearchEntityQuery.ts
@@ -12,7 +12,11 @@ import {
type SelectStringKeys<T> = NonNullable<
{
- [K in keyof T]: T[K] extends string ? K : never;
+ [K in keyof T]: K extends '__typename'
+ ? never
+ : T[K] extends string | undefined | null
+ ? K
+ : never;
}[keyof T]
>;
diff --git a/front/src/modules/users/services/index.ts b/front/src/modules/users/services/index.ts
index b26cf691803..d0d8e2c850c 100644
--- a/front/src/modules/users/services/index.ts
+++ b/front/src/modules/users/services/index.ts
@@ -1,13 +1,15 @@
import { gql } from '@apollo/client';
+export * from './update';
export const GET_CURRENT_USER = gql`
- query GetCurrentUser($uuid: String) {
- users: findManyUser(where: { id: { equals: $uuid } }) {
+ query GetCurrentUser {
+ currentUser {
id
email
displayName
firstName
lastName
+ avatarUrl
workspaceMember {
id
workspace {
diff --git a/front/src/modules/users/services/update.ts b/front/src/modules/users/services/update.ts
new file mode 100644
index 00000000000..9dbae1a9cb4
--- /dev/null
+++ b/front/src/modules/users/services/update.ts
@@ -0,0 +1,14 @@
+import { gql } from '@apollo/client';
+
+export const UPDATE_USER = gql`
+ mutation UpdateUser($data: UserUpdateInput!, $where: UserWhereUniqueInput!) {
+ updateUser(data: $data, where: $where) {
+ id
+ email
+ displayName
+ firstName
+ lastName
+ avatarUrl
+ }
+ }
+`;
diff --git a/front/src/modules/workspace/services/index.ts b/front/src/modules/workspace/services/index.ts
new file mode 100644
index 00000000000..c37c258c7c1
--- /dev/null
+++ b/front/src/modules/workspace/services/index.ts
@@ -0,0 +1 @@
+export * from './update';
diff --git a/front/src/modules/workspace/services/update.ts b/front/src/modules/workspace/services/update.ts
new file mode 100644
index 00000000000..8ed42c7a25e
--- /dev/null
+++ b/front/src/modules/workspace/services/update.ts
@@ -0,0 +1,12 @@
+import { gql } from '@apollo/client';
+
+export const UPDATE_WORKSPACE = gql`
+ mutation UpdateWorkspace($data: WorkspaceUpdateInput!) {
+ updateWorkspace(data: $data) {
+ id
+ domainName
+ displayName
+ logo
+ }
+ }
+`;
diff --git a/front/src/pages/auth/CreateProfile.tsx b/front/src/pages/auth/CreateProfile.tsx
index fe6fe33b6b5..873000f2f70 100644
--- a/front/src/pages/auth/CreateProfile.tsx
+++ b/front/src/pages/auth/CreateProfile.tsx
@@ -1,14 +1,22 @@
-import { useCallback } from 'react';
+import { useCallback, useEffect, useState } from 'react';
import { useHotkeys } from 'react-hotkeys-hook';
import { useNavigate } from 'react-router-dom';
+import { getOperationName } from '@apollo/client/utilities';
import styled from '@emotion/styled';
+import { useRecoilState } from 'recoil';
import { SubTitle } from '@/auth/components/ui/SubTitle';
import { Title } from '@/auth/components/ui/Title';
+import { useOnboardingStatus } from '@/auth/hooks/useOnboardingStatus';
+import { currentUserState } from '@/auth/states/currentUserState';
+import { OnboardingStatus } from '@/auth/utils/getOnboardingStatus';
+import { captureHotkeyTypeInFocusState } from '@/hotkeys/states/captureHotkeyTypeInFocusState';
import { MainButton } from '@/ui/components/buttons/MainButton';
import { ImageInput } from '@/ui/components/inputs/ImageInput';
import { TextInput } from '@/ui/components/inputs/TextInput';
import { SubSectionTitle } from '@/ui/components/section-titles/SubSectionTitle';
+import { GET_CURRENT_USER } from '@/users/services';
+import { useUpdateUserMutation } from '~/generated/graphql';
const StyledContentContainer = styled.div`
width: 100%;
@@ -37,10 +45,58 @@ const StyledComboInputContainer = styled.div`
export function CreateProfile() {
const navigate = useNavigate();
+ const onboardingStatus = useOnboardingStatus();
+
+ const [currentUser] = useRecoilState(currentUserState);
+ const [, setCaptureHotkeyTypeInFocus] = useRecoilState(
+ captureHotkeyTypeInFocusState,
+ );
+
+ const [updateUser] = useUpdateUserMutation();
+
+ const [firstName, setFirstName] = useState('');
+ const [lastName, setLastName] = useState('');
const handleCreate = useCallback(async () => {
- navigate('/');
- }, [navigate]);
+ try {
+ if (!currentUser?.id) {
+ throw new Error('User is not logged in');
+ }
+
+ const { data, errors } = await updateUser({
+ variables: {
+ where: {
+ id: currentUser?.id,
+ },
+ data: {
+ firstName: {
+ set: firstName,
+ },
+ lastName: {
+ set: lastName,
+ },
+ },
+ },
+ refetchQueries: [getOperationName(GET_CURRENT_USER) ?? ''],
+ });
+
+ if (errors || !data?.updateUser) {
+ throw errors;
+ }
+
+ setCaptureHotkeyTypeInFocus(false);
+ navigate('/');
+ } catch (error) {
+ console.error(error);
+ }
+ }, [
+ currentUser?.id,
+ firstName,
+ lastName,
+ navigate,
+ setCaptureHotkeyTypeInFocus,
+ updateUser,
+ ]);
useHotkeys(
'enter',
@@ -54,10 +110,20 @@ export function CreateProfile() {
[handleCreate],
);
+ useEffect(() => {
+ if (onboardingStatus !== OnboardingStatus.OngoingProfileCreation) {
+ navigate('/');
+ }
+ }, [onboardingStatus, navigate]);
+
+ useEffect(() => {
+ setCaptureHotkeyTypeInFocus(true);
+ }, [setCaptureHotkeyTypeInFocus]);
+
return (
<>
<Title>Create profile</Title>
- <SubTitle>How you'll be identify on the app.</SubTitle>
+ <SubTitle>How you'll be identified on the app.</SubTitle>
<StyledContentContainer>
<StyledSectionContainer>
<SubSectionTitle title="Picture" />
@@ -71,21 +137,28 @@ export function CreateProfile() {
<StyledComboInputContainer>
<TextInput
label="First Name"
- value=""
+ value={firstName}
placeholder="Tim"
+ onChange={setFirstName}
fullWidth
/>
<TextInput
label="Last Name"
- value=""
+ value={lastName}
placeholder="Cook"
+ onChange={setLastName}
fullWidth
/>
</StyledComboInputContainer>
</StyledSectionContainer>
</StyledContentContainer>
<StyledButtonContainer>
- <MainButton title="Continue" onClick={handleCreate} fullWidth />
+ <MainButton
+ title="Continue"
+ onClick={handleCreate}
+ disabled={!firstName || !lastName}
+ fullWidth
+ />
</StyledButtonContainer>
</>
);
diff --git a/front/src/pages/auth/CreateWorkspace.tsx b/front/src/pages/auth/CreateWorkspace.tsx
index 93a6f447153..6bcea161f6b 100644
--- a/front/src/pages/auth/CreateWorkspace.tsx
+++ b/front/src/pages/auth/CreateWorkspace.tsx
@@ -1,14 +1,19 @@
-import { useCallback } from 'react';
+import { useCallback, useEffect, useState } from 'react';
import { useHotkeys } from 'react-hotkeys-hook';
import { useNavigate } from 'react-router-dom';
+import { getOperationName } from '@apollo/client/utilities';
import styled from '@emotion/styled';
import { SubTitle } from '@/auth/components/ui/SubTitle';
import { Title } from '@/auth/components/ui/Title';
+import { useOnboardingStatus } from '@/auth/hooks/useOnboardingStatus';
+import { OnboardingStatus } from '@/auth/utils/getOnboardingStatus';
import { MainButton } from '@/ui/components/buttons/MainButton';
import { ImageInput } from '@/ui/components/inputs/ImageInput';
import { TextInput } from '@/ui/components/inputs/TextInput';
import { SubSectionTitle } from '@/ui/components/section-titles/SubSectionTitle';
+import { GET_CURRENT_USER } from '@/users/services';
+import { useUpdateWorkspaceMutation } from '~/generated/graphql';
const StyledContentContainer = styled.div`
width: 100%;
@@ -29,10 +34,38 @@ const StyledButtonContainer = styled.div`
export function CreateWorkspace() {
const navigate = useNavigate();
+ const onboardingStatus = useOnboardingStatus();
+
+ const [workspaceName, setWorkspaceName] = useState('');
+
+ const [updateWorkspace] = useUpdateWorkspaceMutation();
const handleCreate = useCallback(async () => {
- navigate('/auth/create/profile');
- }, [navigate]);
+ try {
+ if (!workspaceName) {
+ throw new Error('Workspace name is required');
+ }
+
+ const { data, errors } = await updateWorkspace({
+ variables: {
+ data: {
+ displayName: {
+ set: workspaceName,
+ },
+ },
+ },
+ refetchQueries: [getOperationName(GET_CURRENT_USER) ?? ''],
+ });
+
+ if (errors || !data?.updateWorkspace) {
+ throw errors;
+ }
+
+ navigate('/auth/create/profile');
+ } catch (error) {
+ console.error(error);
+ }
+ }, [navigate, updateWorkspace, workspaceName]);
useHotkeys(
'enter',
@@ -46,6 +79,12 @@ export function CreateWorkspace() {
[handleCreate],
);
+ useEffect(() => {
+ if (onboardingStatus !== OnboardingStatus.OngoingWorkspaceCreation) {
+ navigate('/auth/create/profile');
+ }
+ }, [onboardingStatus, navigate]);
+
return (
<>
<Title>Create your workspace</Title>
@@ -63,11 +102,21 @@ export function CreateWorkspace() {
title="Workspace name"
description="The name of your organization"
/>
- <TextInput value="" placeholder="Apple" fullWidth />
+ <TextInput
+ value={workspaceName}
+ placeholder="Apple"
+ onChange={setWorkspaceName}
+ fullWidth
+ />
</StyledSectionContainer>
</StyledContentContainer>
<StyledButtonContainer>
- <MainButton title="Continue" onClick={handleCreate} fullWidth />
+ <MainButton
+ title="Continue"
+ onClick={handleCreate}
+ disabled={!workspaceName}
+ fullWidth
+ />
</StyledButtonContainer>
</>
);
diff --git a/front/src/pages/auth/PasswordLogin.tsx b/front/src/pages/auth/PasswordLogin.tsx
index 397aa0fef0d..661ee61cf8f 100644
--- a/front/src/pages/auth/PasswordLogin.tsx
+++ b/front/src/pages/auth/PasswordLogin.tsx
@@ -1,5 +1,6 @@
import { useCallback, useState } from 'react';
import { useHotkeys } from 'react-hotkeys-hook';
+import { useNavigate } from 'react-router-dom';
import styled from '@emotion/styled';
import { motion } from 'framer-motion';
import { useRecoilState } from 'recoil';
@@ -10,7 +11,6 @@ import { Title } from '@/auth/components/ui/Title';
import { useAuth } from '@/auth/hooks/useAuth';
import { authFlowUserEmailState } from '@/auth/states/authFlowUserEmailState';
import { isMockModeState } from '@/auth/states/isMockModeState';
-import { captureHotkeyTypeInFocusState } from '@/hotkeys/states/captureHotkeyTypeInFocusState';
import { MainButton } from '@/ui/components/buttons/MainButton';
import { TextInput } from '@/ui/components/inputs/TextInput';
import { SubSectionTitle } from '@/ui/components/section-titles/SubSectionTitle';
@@ -47,17 +47,15 @@ const StyledErrorContainer = styled.div`
`;
export function PasswordLogin() {
- const [, setMockMode] = useRecoilState(isMockModeState);
- const [, setCaptureHotkeyTypeInFocus] = useRecoilState(
- captureHotkeyTypeInFocusState,
- );
+ const navigate = useNavigate();
const prefillPassword =
- process.env.NODE_ENV === 'development' ? 'applecar2025' : '';
+ process.env.NODE_ENV === 'development' ? 'Applecar2025' : '';
const [authFlowUserEmail, setAuthFlowUserEmail] = useRecoilState(
authFlowUserEmailState,
);
+ const [, setMockMode] = useRecoilState(isMockModeState);
const [internalPassword, setInternalPassword] = useState(prefillPassword);
const [formError, setFormError] = useState('');
@@ -65,21 +63,15 @@ export function PasswordLogin() {
const handleLogin = useCallback(async () => {
try {
- await login(authFlowUserEmail, internalPassword);
setMockMode(false);
- setCaptureHotkeyTypeInFocus(false);
- // TODO: Navigate to the workspace selection page when it's ready
- // navigate('/auth/create/workspace');
+
+ await login(authFlowUserEmail, internalPassword);
+
+ navigate('/auth/create/workspace');
} catch (err: any) {
setFormError(err.message);
}
- }, [
- authFlowUserEmail,
- internalPassword,
- login,
- setMockMode,
- setCaptureHotkeyTypeInFocus,
- ]);
+ }, [login, authFlowUserEmail, internalPassword, setMockMode, navigate]);
useHotkeys(
'enter',
diff --git a/front/src/pages/companies/__stories__/Companies.filterBy.stories.tsx b/front/src/pages/companies/__stories__/Companies.filterBy.stories.tsx
index b2061d98896..9d518309489 100644
--- a/front/src/pages/companies/__stories__/Companies.filterBy.stories.tsx
+++ b/front/src/pages/companies/__stories__/Companies.filterBy.stories.tsx
@@ -23,7 +23,7 @@ export const FilterByName: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
- const filterButton = canvas.getByText('Filter');
+ const filterButton = await canvas.findByText('Filter');
await userEvent.click(filterButton);
const nameFilterButton = canvas
@@ -60,7 +60,7 @@ export const FilterByAccountOwner: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
- const filterButton = canvas.getByText('Filter');
+ const filterButton = await canvas.findByText('Filter');
await userEvent.click(filterButton);
const accountOwnerFilterButton = (
@@ -83,7 +83,6 @@ export const FilterByAccountOwner: Story = {
const charlesChip = canvas
.getAllByTestId('dropdown-menu-item')
.find((item) => {
- console.log({ item });
return item.textContent?.includes('Charles Test');
});
diff --git a/front/src/pages/companies/__stories__/Companies.sortBy.stories.tsx b/front/src/pages/companies/__stories__/Companies.sortBy.stories.tsx
index d8f911538da..1fc2bba2c89 100644
--- a/front/src/pages/companies/__stories__/Companies.sortBy.stories.tsx
+++ b/front/src/pages/companies/__stories__/Companies.sortBy.stories.tsx
@@ -21,7 +21,7 @@ export const SortByName: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
- const sortButton = canvas.getByText('Sort');
+ const sortButton = await canvas.findByText('Sort');
await userEvent.click(sortButton);
const nameSortButton = canvas.getByText('Name', { selector: 'li' });
diff --git a/front/src/pages/people/__stories__/People.filterBy.stories.tsx b/front/src/pages/people/__stories__/People.filterBy.stories.tsx
index 727c3b01170..d95107b93b4 100644
--- a/front/src/pages/people/__stories__/People.filterBy.stories.tsx
+++ b/front/src/pages/people/__stories__/People.filterBy.stories.tsx
@@ -23,7 +23,7 @@ export const Email: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
- const filterButton = canvas.getByText('Filter');
+ const filterButton = await canvas.findByText('Filter');
await userEvent.click(filterButton);
const emailFilterButton = canvas
@@ -59,7 +59,7 @@ export const CompanyName: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
- const filterButton = canvas.getByText('Filter');
+ const filterButton = await canvas.findByText('Filter');
await userEvent.click(filterButton);
const companyFilterButton = canvas
diff --git a/front/src/pages/people/__stories__/People.sortBy.stories.tsx b/front/src/pages/people/__stories__/People.sortBy.stories.tsx
index c600c05ee7b..6769d10e999 100644
--- a/front/src/pages/people/__stories__/People.sortBy.stories.tsx
+++ b/front/src/pages/people/__stories__/People.sortBy.stories.tsx
@@ -22,7 +22,7 @@ export const Email: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
- const sortButton = canvas.getByText('Sort');
+ const sortButton = await canvas.findByText('Sort');
await userEvent.click(sortButton);
const emailSortButton = canvas.getByText('Email', { selector: 'li' });
@@ -48,7 +48,7 @@ export const Cancel: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
- const sortButton = canvas.getByText('Sort');
+ const sortButton = await canvas.findByText('Sort');
await userEvent.click(sortButton);
const emailSortButton = canvas.getByText('Email', { selector: 'li' });
diff --git a/front/src/pages/settings/SettingsProfile.tsx b/front/src/pages/settings/SettingsProfile.tsx
index 863127c0fc9..ccb332dd602 100644
--- a/front/src/pages/settings/SettingsProfile.tsx
+++ b/front/src/pages/settings/SettingsProfile.tsx
@@ -1,4 +1,7 @@
+import { useEffect, useState } from 'react';
+import { getOperationName } from '@apollo/client/utilities';
import styled from '@emotion/styled';
+import debounce from 'lodash.debounce';
import { useRecoilValue } from 'recoil';
import { currentUserState } from '@/auth/states/currentUserState';
@@ -7,6 +10,8 @@ import { TextInput } from '@/ui/components/inputs/TextInput';
import { MainSectionTitle } from '@/ui/components/section-titles/MainSectionTitle';
import { SubSectionTitle } from '@/ui/components/section-titles/SubSectionTitle';
import { NoTopBarContainer } from '@/ui/layout/containers/NoTopBarContainer';
+import { GET_CURRENT_USER } from '@/users/services';
+import { useUpdateUserMutation } from '~/generated/graphql';
const StyledContainer = styled.div`
display: flex;
@@ -34,6 +39,57 @@ const StyledComboInputContainer = styled.div`
export function SettingsProfile() {
const currentUser = useRecoilValue(currentUserState);
+
+ const [firstName, setFirstName] = useState(currentUser?.firstName ?? '');
+ const [lastName, setLastName] = useState(currentUser?.lastName ?? '');
+
+ const [updateUser] = useUpdateUserMutation();
+
+ // TODO: Enhance this with react-hook-form (https://www.react-hook-form.com)
+ const debouncedUpdate = debounce(async () => {
+ try {
+ if (!currentUser?.id) {
+ throw new Error('User is not logged in');
+ }
+
+ const { data, errors } = await updateUser({
+ variables: {
+ where: {
+ id: currentUser?.id,
+ },
+ data: {
+ firstName: {
+ set: firstName,
+ },
+ lastName: {
+ set: lastName,
+ },
+ },
+ },
+ refetchQueries: [getOperationName(GET_CURRENT_USER) ?? ''],
+ });
+
+ if (errors || !data?.updateUser) {
+ throw errors;
+ }
+ } catch (error) {
+ console.error(error);
+ }
+ }, 500);
+
+ useEffect(() => {
+ if (
+ currentUser?.firstName !== firstName ||
+ currentUser?.lastName !== lastName
+ ) {
+ debouncedUpdate();
+ }
+
+ return () => {
+ debouncedUpdate.cancel();
+ };
+ }, [firstName, lastName, currentUser, debouncedUpdate]);
+
return (
<NoTopBarContainer>
<StyledContainer>
@@ -50,13 +106,15 @@ export function SettingsProfile() {
<StyledComboInputContainer>
<TextInput
label="First Name"
- value={currentUser?.displayName}
+ value={firstName}
+ onChange={setFirstName}
placeholder="Tim"
fullWidth
/>
<TextInput
label="Last Name"
- value=""
+ value={lastName}
+ onChange={setLastName}
placeholder="Cook"
fullWidth
/>
diff --git a/front/src/providers/apollo/ApolloProvider.tsx b/front/src/providers/apollo/ApolloProvider.tsx
index f6fef0b052e..dded3a368f6 100644
--- a/front/src/providers/apollo/ApolloProvider.tsx
+++ b/front/src/providers/apollo/ApolloProvider.tsx
@@ -1,19 +1,11 @@
import { ApolloProvider as ApolloProviderBase } from '@apollo/client';
-import { useRecoilState } from 'recoil';
import { useApolloFactory } from '@/apollo/hooks/useApolloFactory';
-import useApolloMocked from '@/apollo/hooks/useApolloMocked';
-import { isMockModeState } from '@/auth/states/isMockModeState';
export function ApolloProvider({ children }: React.PropsWithChildren) {
const apolloClient = useApolloFactory();
- const mockedClient = useApolloMocked();
-
- const [isMockMode] = useRecoilState(isMockModeState);
return (
- <ApolloProviderBase client={isMockMode ? mockedClient : apolloClient}>
- {children}
- </ApolloProviderBase>
+ <ApolloProviderBase client={apolloClient}>{children}</ApolloProviderBase>
);
}
diff --git a/front/src/providers/user/UserProvider.tsx b/front/src/providers/user/UserProvider.tsx
index eaa7faddc56..6811ef4cdbc 100644
--- a/front/src/providers/user/UserProvider.tsx
+++ b/front/src/providers/user/UserProvider.tsx
@@ -1,20 +1,18 @@
import { useEffect } from 'react';
import { useRecoilState } from 'recoil';
-import { useFetchCurrentUser } from '@/auth/hooks/useFetchCurrentUser';
import { currentUserState } from '@/auth/states/currentUserState';
-import { tokenPairState } from '@/auth/states/tokenPairState';
+import { useGetCurrentUserQuery } from '~/generated/graphql';
export function UserProvider({ children }: React.PropsWithChildren) {
const [, setCurrentUser] = useRecoilState(currentUserState);
- const [tokenPair] = useRecoilState(tokenPairState);
- const user = useFetchCurrentUser(tokenPair);
+ const { data, loading } = useGetCurrentUserQuery();
useEffect(() => {
- if (user) {
- setCurrentUser(user);
+ if (data?.currentUser) {
+ setCurrentUser(data?.currentUser);
}
- }, [setCurrentUser, user]);
+ }, [setCurrentUser, data]);
- return <>{children}</>;
+ return loading ? <></> : <>{children}</>;
}
diff --git a/front/src/testing/graphqlMocks.ts b/front/src/testing/graphqlMocks.ts
index 7eec4590802..9b1451eff55 100644
--- a/front/src/testing/graphqlMocks.ts
+++ b/front/src/testing/graphqlMocks.ts
@@ -75,7 +75,7 @@ export const graphqlMocks = [
graphql.query(getOperationName(GET_CURRENT_USER) ?? '', (req, res, ctx) => {
return res(
ctx.data({
- users: [mockedUsersData[0]],
+ currentUser: mockedUsersData[0],
}),
);
}),
diff --git a/front/src/testing/mock-data/users.ts b/front/src/testing/mock-data/users.ts
index fccfbfd39f5..079b75ae85e 100644
--- a/front/src/testing/mock-data/users.ts
+++ b/front/src/testing/mock-data/users.ts
@@ -20,7 +20,7 @@ type MockedUser = Pick<
export const mockedUsersData: Array<MockedUser> = [
{
- id: '374fe3a5-df1e-4119-afe0-2a62a2ba481e',
+ id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6d',
__typename: 'User',
displayName: 'Charles Test',
diff --git a/front/yarn.lock b/front/yarn.lock
index ad6acc968ab..a886ad4e7b3 100644
--- a/front/yarn.lock
+++ b/front/yarn.lock
@@ -4963,7 +4963,14 @@
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==
-"@types/lodash@^4.14.167":
+"@types/lodash.debounce@^4.0.7":
+ version "4.0.7"
+ resolved "https://registry.yarnpkg.com/@types/lodash.debounce/-/lodash.debounce-4.0.7.tgz#0285879defb7cdb156ae633cecd62d5680eded9f"
+ integrity sha512-X1T4wMZ+gT000M2/91SYj0d/7JfeNZ9PeeOldSNoE/lunLeQXKvkmIumI29IaKMotU/ln/McOIvgzZcQ/3TrSA==
+ dependencies:
+ "@types/lodash" "*"
+
+"@types/lodash@*", "@types/lodash@^4.14.167":
version "4.14.195"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.195.tgz#bafc975b252eb6cea78882ce8a7b6bf22a6de632"
integrity sha512-Hwx9EUgdwf2GLarOjQp5ZH8ZmblzcbTBC2wtQWNKARBSxM9ezRIAUpeDTgoQRAFB0+8CNWXVA9+MaSOzOF3nPg==
diff --git a/server/.env.example b/server/.env.example
index f01f16cbc65..855f6800543 100644
--- a/server/.env.example
+++ b/server/.env.example
@@ -1,3 +1,5 @@
+DEBUG_MODE=false
+AUTH_GOOGLE_ENABLED=false
ACCESS_TOKEN_SECRET=secret_jwt
ACCESS_TOKEN_EXPIRES_IN=5m
LOGIN_TOKEN_SECRET=secret_login_token
diff --git a/server/package.json b/server/package.json
index fd556def070..0f2457982bc 100644
--- a/server/package.json
+++ b/server/package.json
@@ -22,9 +22,10 @@
"prisma:generate-client": "npx prisma generate --generator client && yarn prisma:generate-gql-select",
"prisma:generate-gql-select": "node scripts/generate-model-select-map.js",
"prisma:generate-nest-graphql": "npx prisma generate --generator nestgraphql",
+ "prisma:generate": "yarn prisma:generate-client && yarn prisma:generate-gql-select && yarn prisma:generate-nest-graphql",
"prisma:migrate": "npx prisma migrate deploy",
"prisma:seed": "npx prisma db seed",
- "prisma:reset": "npx prisma migrate reset"
+ "prisma:reset": "npx prisma migrate reset && yarn prisma:generate"
},
"dependencies": {
"@apollo/server": "^4.7.3",
@@ -101,6 +102,7 @@
"prettier": "^2.3.2",
"prisma": "^4.13.0",
"prisma-nestjs-graphql": "^18.0.2",
+ "prisma-query-log": "^3.2.0",
"source-map-support": "^0.5.20",
"supertest": "^6.1.3",
"ts-jest": "28.0.8",
diff --git a/server/src/core/@generated/user/user-create-many.input.ts b/server/src/core/@generated/user/user-create-many.input.ts
index b66f5263c6d..de3890076f7 100644
--- a/server/src/core/@generated/user/user-create-many.input.ts
+++ b/server/src/core/@generated/user/user-create-many.input.ts
@@ -12,13 +12,15 @@ export class UserCreateManyInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- firstName!: string;
+ @Validator.IsOptional()
+ firstName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- lastName!: string;
+ @Validator.IsOptional()
+ lastName?: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
diff --git a/server/src/core/@generated/user/user-create-without-comments.input.ts b/server/src/core/@generated/user/user-create-without-comments.input.ts
index 2820973bce6..092db27445b 100644
--- a/server/src/core/@generated/user/user-create-without-comments.input.ts
+++ b/server/src/core/@generated/user/user-create-without-comments.input.ts
@@ -15,13 +15,15 @@ export class UserCreateWithoutCommentsInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- firstName!: string;
+ @Validator.IsOptional()
+ firstName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- lastName!: string;
+ @Validator.IsOptional()
+ lastName?: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
diff --git a/server/src/core/@generated/user/user-create-without-companies.input.ts b/server/src/core/@generated/user/user-create-without-companies.input.ts
index 05725e78be6..a03de953935 100644
--- a/server/src/core/@generated/user/user-create-without-companies.input.ts
+++ b/server/src/core/@generated/user/user-create-without-companies.input.ts
@@ -15,13 +15,15 @@ export class UserCreateWithoutCompaniesInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- firstName!: string;
+ @Validator.IsOptional()
+ firstName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- lastName!: string;
+ @Validator.IsOptional()
+ lastName?: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
diff --git a/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts
index 2de51bc820b..0224711f09b 100644
--- a/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts
+++ b/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts
@@ -15,13 +15,15 @@ export class UserCreateWithoutRefreshTokensInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- firstName!: string;
+ @Validator.IsOptional()
+ firstName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- lastName!: string;
+ @Validator.IsOptional()
+ lastName?: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
diff --git a/server/src/core/@generated/user/user-create-without-workspace-member.input.ts b/server/src/core/@generated/user/user-create-without-workspace-member.input.ts
index 53bbbe4cbed..267c3aec399 100644
--- a/server/src/core/@generated/user/user-create-without-workspace-member.input.ts
+++ b/server/src/core/@generated/user/user-create-without-workspace-member.input.ts
@@ -15,13 +15,15 @@ export class UserCreateWithoutWorkspaceMemberInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- firstName!: string;
+ @Validator.IsOptional()
+ firstName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- lastName!: string;
+ @Validator.IsOptional()
+ lastName?: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
diff --git a/server/src/core/@generated/user/user-create.input.ts b/server/src/core/@generated/user/user-create.input.ts
index ffd550aa2e6..16910b68157 100644
--- a/server/src/core/@generated/user/user-create.input.ts
+++ b/server/src/core/@generated/user/user-create.input.ts
@@ -16,13 +16,15 @@ export class UserCreateInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- firstName!: string;
+ @Validator.IsOptional()
+ firstName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- lastName!: string;
+ @Validator.IsOptional()
+ lastName?: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
diff --git a/server/src/core/@generated/user/user-group-by.output.ts b/server/src/core/@generated/user/user-group-by.output.ts
index e0d02f67844..a54fabddc5f 100644
--- a/server/src/core/@generated/user/user-group-by.output.ts
+++ b/server/src/core/@generated/user/user-group-by.output.ts
@@ -15,13 +15,15 @@ export class UserGroupBy {
@Validator.IsOptional()
id!: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- firstName!: string;
+ @Validator.IsOptional()
+ firstName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- lastName!: string;
+ @Validator.IsOptional()
+ lastName?: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
diff --git a/server/src/core/@generated/user/user-max-aggregate.output.ts b/server/src/core/@generated/user/user-max-aggregate.output.ts
index be1ba0367ac..521b757429a 100644
--- a/server/src/core/@generated/user/user-max-aggregate.output.ts
+++ b/server/src/core/@generated/user/user-max-aggregate.output.ts
@@ -13,10 +13,12 @@ export class UserMaxAggregate {
@Field(() => String, {nullable:true})
@Validator.IsString()
+ @Validator.IsOptional()
firstName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
+ @Validator.IsOptional()
lastName?: string;
@Field(() => String, {nullable:true})
diff --git a/server/src/core/@generated/user/user-min-aggregate.output.ts b/server/src/core/@generated/user/user-min-aggregate.output.ts
index 7b5e32b3d6b..0b9073efa75 100644
--- a/server/src/core/@generated/user/user-min-aggregate.output.ts
+++ b/server/src/core/@generated/user/user-min-aggregate.output.ts
@@ -13,10 +13,12 @@ export class UserMinAggregate {
@Field(() => String, {nullable:true})
@Validator.IsString()
+ @Validator.IsOptional()
firstName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
+ @Validator.IsOptional()
lastName?: string;
@Field(() => String, {nullable:true})
diff --git a/server/src/core/@generated/user/user-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/user/user-scalar-where-with-aggregates.input.ts
index 829bfefbb54..070acb21485 100644
--- a/server/src/core/@generated/user/user-scalar-where-with-aggregates.input.ts
+++ b/server/src/core/@generated/user/user-scalar-where-with-aggregates.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input';
-import { BoolWithAggregatesFilter } from '../prisma/bool-with-aggregates-filter.input';
import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input';
+import { BoolWithAggregatesFilter } from '../prisma/bool-with-aggregates-filter.input';
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
import { HideField } from '@nestjs/graphql';
import { JsonNullableWithAggregatesFilter } from '../prisma/json-nullable-with-aggregates-filter.input';
@@ -23,11 +23,11 @@ export class UserScalarWhereWithAggregatesInput {
@Field(() => StringWithAggregatesFilter, {nullable:true})
id?: StringWithAggregatesFilter;
- @Field(() => StringWithAggregatesFilter, {nullable:true})
- firstName?: StringWithAggregatesFilter;
+ @Field(() => StringNullableWithAggregatesFilter, {nullable:true})
+ firstName?: StringNullableWithAggregatesFilter;
- @Field(() => StringWithAggregatesFilter, {nullable:true})
- lastName?: StringWithAggregatesFilter;
+ @Field(() => StringNullableWithAggregatesFilter, {nullable:true})
+ lastName?: StringNullableWithAggregatesFilter;
@Field(() => StringWithAggregatesFilter, {nullable:true})
email?: StringWithAggregatesFilter;
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts
index 6a3ff5d9f63..eaa0600da4c 100644
--- a/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts
@@ -15,13 +15,15 @@ export class UserUncheckedCreateWithoutCommentsInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- firstName!: string;
+ @Validator.IsOptional()
+ firstName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- lastName!: string;
+ @Validator.IsOptional()
+ lastName?: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts
index fb40c877588..20e868db1e6 100644
--- a/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts
@@ -15,13 +15,15 @@ export class UserUncheckedCreateWithoutCompaniesInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- firstName!: string;
+ @Validator.IsOptional()
+ firstName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- lastName!: string;
+ @Validator.IsOptional()
+ lastName?: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts
index 2a258119fe7..5410fed9ea7 100644
--- a/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts
@@ -15,13 +15,15 @@ export class UserUncheckedCreateWithoutRefreshTokensInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- firstName!: string;
+ @Validator.IsOptional()
+ firstName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- lastName!: string;
+ @Validator.IsOptional()
+ lastName?: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts
index 12c65db6bb2..83f674541f1 100644
--- a/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts
@@ -15,13 +15,15 @@ export class UserUncheckedCreateWithoutWorkspaceMemberInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- firstName!: string;
+ @Validator.IsOptional()
+ firstName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- lastName!: string;
+ @Validator.IsOptional()
+ lastName?: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
diff --git a/server/src/core/@generated/user/user-unchecked-create.input.ts b/server/src/core/@generated/user/user-unchecked-create.input.ts
index e9b43a57689..70fd59b9ec7 100644
--- a/server/src/core/@generated/user/user-unchecked-create.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create.input.ts
@@ -16,13 +16,15 @@ export class UserUncheckedCreateInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- firstName!: string;
+ @Validator.IsOptional()
+ firstName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- lastName!: string;
+ @Validator.IsOptional()
+ lastName?: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
diff --git a/server/src/core/@generated/user/user-unchecked-update-many.input.ts b/server/src/core/@generated/user/user-unchecked-update-many.input.ts
index fc0db60e6e6..232edaa2558 100644
--- a/server/src/core/@generated/user/user-unchecked-update-many.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update-many.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
-import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { GraphQLJSON } from 'graphql-type-json';
@@ -15,11 +15,11 @@ export class UserUncheckedUpdateManyInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- firstName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- lastName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
email?: StringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts
index 57678cd5c97..6e6ba6f8489 100644
--- a/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
-import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { GraphQLJSON } from 'graphql-type-json';
@@ -18,11 +18,11 @@ export class UserUncheckedUpdateWithoutCommentsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- firstName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- lastName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
email?: StringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts
index 984f85a67b2..a6494ab941b 100644
--- a/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
-import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { GraphQLJSON } from 'graphql-type-json';
@@ -18,11 +18,11 @@ export class UserUncheckedUpdateWithoutCompaniesInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- firstName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- lastName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
email?: StringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts
index 1153e2c0a5c..30f68b5cf02 100644
--- a/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
-import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { GraphQLJSON } from 'graphql-type-json';
@@ -18,11 +18,11 @@ export class UserUncheckedUpdateWithoutRefreshTokensInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- firstName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- lastName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
email?: StringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts
index 9d30bd8b69f..13b4db3703f 100644
--- a/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
-import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { GraphQLJSON } from 'graphql-type-json';
@@ -18,11 +18,11 @@ export class UserUncheckedUpdateWithoutWorkspaceMemberInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- firstName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- lastName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
email?: StringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/user/user-unchecked-update.input.ts b/server/src/core/@generated/user/user-unchecked-update.input.ts
index 20818ebf854..f7480885915 100644
--- a/server/src/core/@generated/user/user-unchecked-update.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
-import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { GraphQLJSON } from 'graphql-type-json';
@@ -19,11 +19,11 @@ export class UserUncheckedUpdateInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- firstName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- lastName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
email?: StringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/user/user-update-many-mutation.input.ts b/server/src/core/@generated/user/user-update-many-mutation.input.ts
index 509f91de50b..160080960b9 100644
--- a/server/src/core/@generated/user/user-update-many-mutation.input.ts
+++ b/server/src/core/@generated/user/user-update-many-mutation.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
-import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { GraphQLJSON } from 'graphql-type-json';
@@ -15,11 +15,11 @@ export class UserUpdateManyMutationInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- firstName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- lastName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
email?: StringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/user/user-update-without-comments.input.ts b/server/src/core/@generated/user/user-update-without-comments.input.ts
index 57c4cc819cb..c2fda043877 100644
--- a/server/src/core/@generated/user/user-update-without-comments.input.ts
+++ b/server/src/core/@generated/user/user-update-without-comments.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
-import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { GraphQLJSON } from 'graphql-type-json';
@@ -18,11 +18,11 @@ export class UserUpdateWithoutCommentsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- firstName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- lastName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
email?: StringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/user/user-update-without-companies.input.ts b/server/src/core/@generated/user/user-update-without-companies.input.ts
index d6746471ec0..12bbd0ec19e 100644
--- a/server/src/core/@generated/user/user-update-without-companies.input.ts
+++ b/server/src/core/@generated/user/user-update-without-companies.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
-import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { GraphQLJSON } from 'graphql-type-json';
@@ -18,11 +18,11 @@ export class UserUpdateWithoutCompaniesInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- firstName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- lastName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
email?: StringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts
index 94d8938ceda..b3d03f25a9f 100644
--- a/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts
+++ b/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
-import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { GraphQLJSON } from 'graphql-type-json';
@@ -18,11 +18,11 @@ export class UserUpdateWithoutRefreshTokensInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- firstName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- lastName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
email?: StringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/user/user-update-without-workspace-member.input.ts b/server/src/core/@generated/user/user-update-without-workspace-member.input.ts
index 6b24e0df758..21f241cbe54 100644
--- a/server/src/core/@generated/user/user-update-without-workspace-member.input.ts
+++ b/server/src/core/@generated/user/user-update-without-workspace-member.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
-import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { GraphQLJSON } from 'graphql-type-json';
@@ -18,11 +18,11 @@ export class UserUpdateWithoutWorkspaceMemberInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- firstName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- lastName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
email?: StringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/user/user-update.input.ts b/server/src/core/@generated/user/user-update.input.ts
index 8892a70e2d0..f2f7897920f 100644
--- a/server/src/core/@generated/user/user-update.input.ts
+++ b/server/src/core/@generated/user/user-update.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
-import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { GraphQLJSON } from 'graphql-type-json';
@@ -19,11 +19,11 @@ export class UserUpdateInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- firstName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- lastName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
email?: StringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/user/user-where.input.ts b/server/src/core/@generated/user/user-where.input.ts
index 2e1cd9434d2..c7eae991f44 100644
--- a/server/src/core/@generated/user/user-where.input.ts
+++ b/server/src/core/@generated/user/user-where.input.ts
@@ -1,8 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFilter } from '../prisma/string-filter.input';
-import { BoolFilter } from '../prisma/bool-filter.input';
import { StringNullableFilter } from '../prisma/string-nullable-filter.input';
+import { BoolFilter } from '../prisma/bool-filter.input';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { HideField } from '@nestjs/graphql';
import { JsonNullableFilter } from '../prisma/json-nullable-filter.input';
@@ -27,11 +27,11 @@ export class UserWhereInput {
@Field(() => StringFilter, {nullable:true})
id?: StringFilter;
- @Field(() => StringFilter, {nullable:true})
- firstName?: StringFilter;
+ @Field(() => StringNullableFilter, {nullable:true})
+ firstName?: StringNullableFilter;
- @Field(() => StringFilter, {nullable:true})
- lastName?: StringFilter;
+ @Field(() => StringNullableFilter, {nullable:true})
+ lastName?: StringNullableFilter;
@Field(() => StringFilter, {nullable:true})
email?: StringFilter;
diff --git a/server/src/core/@generated/user/user.model.ts b/server/src/core/@generated/user/user.model.ts
index 0a053ce3f00..9441f85ed4d 100644
--- a/server/src/core/@generated/user/user.model.ts
+++ b/server/src/core/@generated/user/user.model.ts
@@ -15,11 +15,11 @@ export class User {
@Field(() => ID, {nullable:false})
id!: string;
- @Field(() => String, {nullable:false})
- firstName!: string;
+ @Field(() => String, {nullable:true})
+ firstName!: string | null;
- @Field(() => String, {nullable:false})
- lastName!: string;
+ @Field(() => String, {nullable:true})
+ lastName!: string | null;
@Field(() => String, {nullable:false})
email!: string;
diff --git a/server/src/core/@generated/workspace/workspace-create-many.input.ts b/server/src/core/@generated/workspace/workspace-create-many.input.ts
index 0a15f1dede1..1059d52aa5d 100644
--- a/server/src/core/@generated/workspace/workspace-create-many.input.ts
+++ b/server/src/core/@generated/workspace/workspace-create-many.input.ts
@@ -11,13 +11,15 @@ export class WorkspaceCreateManyInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-create-without-comment-threads.input.ts b/server/src/core/@generated/workspace/workspace-create-without-comment-threads.input.ts
index 4c95327a68e..87b098ca170 100644
--- a/server/src/core/@generated/workspace/workspace-create-without-comment-threads.input.ts
+++ b/server/src/core/@generated/workspace/workspace-create-without-comment-threads.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceCreateWithoutCommentThreadsInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-create-without-comments.input.ts b/server/src/core/@generated/workspace/workspace-create-without-comments.input.ts
index 87c853a6e1d..9edda069486 100644
--- a/server/src/core/@generated/workspace/workspace-create-without-comments.input.ts
+++ b/server/src/core/@generated/workspace/workspace-create-without-comments.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceCreateWithoutCommentsInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-create-without-companies.input.ts b/server/src/core/@generated/workspace/workspace-create-without-companies.input.ts
index 3c18a17c30d..04fda1215c1 100644
--- a/server/src/core/@generated/workspace/workspace-create-without-companies.input.ts
+++ b/server/src/core/@generated/workspace/workspace-create-without-companies.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceCreateWithoutCompaniesInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-create-without-people.input.ts b/server/src/core/@generated/workspace/workspace-create-without-people.input.ts
index d78bd07321d..9930dd13326 100644
--- a/server/src/core/@generated/workspace/workspace-create-without-people.input.ts
+++ b/server/src/core/@generated/workspace/workspace-create-without-people.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceCreateWithoutPeopleInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/workspace/workspace-create-without-pipeline-progresses.input.ts
index ae49df118f6..e96a710c7d2 100644
--- a/server/src/core/@generated/workspace/workspace-create-without-pipeline-progresses.input.ts
+++ b/server/src/core/@generated/workspace/workspace-create-without-pipeline-progresses.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceCreateWithoutPipelineProgressesInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-create-without-pipeline-stages.input.ts b/server/src/core/@generated/workspace/workspace-create-without-pipeline-stages.input.ts
index 5b604153955..9bdb786e3ba 100644
--- a/server/src/core/@generated/workspace/workspace-create-without-pipeline-stages.input.ts
+++ b/server/src/core/@generated/workspace/workspace-create-without-pipeline-stages.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceCreateWithoutPipelineStagesInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-create-without-pipelines.input.ts b/server/src/core/@generated/workspace/workspace-create-without-pipelines.input.ts
index 3136284df8d..61a433f2ce5 100644
--- a/server/src/core/@generated/workspace/workspace-create-without-pipelines.input.ts
+++ b/server/src/core/@generated/workspace/workspace-create-without-pipelines.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceCreateWithoutPipelinesInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-create-without-workspace-member.input.ts b/server/src/core/@generated/workspace/workspace-create-without-workspace-member.input.ts
index 4f60d70fd80..3687f938e7f 100644
--- a/server/src/core/@generated/workspace/workspace-create-without-workspace-member.input.ts
+++ b/server/src/core/@generated/workspace/workspace-create-without-workspace-member.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceCreateWithoutWorkspaceMemberInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-create.input.ts b/server/src/core/@generated/workspace/workspace-create.input.ts
index 6137eb6e6a5..c700fcb0f7d 100644
--- a/server/src/core/@generated/workspace/workspace-create.input.ts
+++ b/server/src/core/@generated/workspace/workspace-create.input.ts
@@ -19,13 +19,15 @@ export class WorkspaceCreateInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-group-by.output.ts b/server/src/core/@generated/workspace/workspace-group-by.output.ts
index 2d382882035..0acfc669c1e 100644
--- a/server/src/core/@generated/workspace/workspace-group-by.output.ts
+++ b/server/src/core/@generated/workspace/workspace-group-by.output.ts
@@ -14,13 +14,15 @@ export class WorkspaceGroupBy {
@Validator.IsOptional()
id!: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-max-aggregate.output.ts b/server/src/core/@generated/workspace/workspace-max-aggregate.output.ts
index ba8f25ec2e5..df11a248b7b 100644
--- a/server/src/core/@generated/workspace/workspace-max-aggregate.output.ts
+++ b/server/src/core/@generated/workspace/workspace-max-aggregate.output.ts
@@ -13,10 +13,12 @@ export class WorkspaceMaxAggregate {
@Field(() => String, {nullable:true})
@Validator.IsString()
+ @Validator.IsOptional()
domainName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
+ @Validator.IsOptional()
displayName?: string;
@Field(() => String, {nullable:true})
diff --git a/server/src/core/@generated/workspace/workspace-min-aggregate.output.ts b/server/src/core/@generated/workspace/workspace-min-aggregate.output.ts
index e1ca5e49628..c761b7d104d 100644
--- a/server/src/core/@generated/workspace/workspace-min-aggregate.output.ts
+++ b/server/src/core/@generated/workspace/workspace-min-aggregate.output.ts
@@ -13,10 +13,12 @@ export class WorkspaceMinAggregate {
@Field(() => String, {nullable:true})
@Validator.IsString()
+ @Validator.IsOptional()
domainName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
+ @Validator.IsOptional()
displayName?: string;
@Field(() => String, {nullable:true})
diff --git a/server/src/core/@generated/workspace/workspace-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/workspace/workspace-scalar-where-with-aggregates.input.ts
index bafa10616bf..7a8b4f7d15a 100644
--- a/server/src/core/@generated/workspace/workspace-scalar-where-with-aggregates.input.ts
+++ b/server/src/core/@generated/workspace/workspace-scalar-where-with-aggregates.input.ts
@@ -21,11 +21,11 @@ export class WorkspaceScalarWhereWithAggregatesInput {
@Field(() => StringWithAggregatesFilter, {nullable:true})
id?: StringWithAggregatesFilter;
- @Field(() => StringWithAggregatesFilter, {nullable:true})
- domainName?: StringWithAggregatesFilter;
+ @Field(() => StringNullableWithAggregatesFilter, {nullable:true})
+ domainName?: StringNullableWithAggregatesFilter;
- @Field(() => StringWithAggregatesFilter, {nullable:true})
- displayName?: StringWithAggregatesFilter;
+ @Field(() => StringNullableWithAggregatesFilter, {nullable:true})
+ displayName?: StringNullableWithAggregatesFilter;
@Field(() => StringNullableWithAggregatesFilter, {nullable:true})
logo?: StringNullableWithAggregatesFilter;
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts
index 46cf3451a28..c88813d0bf2 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceUncheckedCreateWithoutCommentThreadsInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-comments.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-comments.input.ts
index 9c395cad99e..12b5fad6116 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-comments.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-comments.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceUncheckedCreateWithoutCommentsInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-companies.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-companies.input.ts
index c0837717e56..bab9da2b75c 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-companies.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-companies.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceUncheckedCreateWithoutCompaniesInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-people.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-people.input.ts
index 6685a812f37..34bf078afaa 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-people.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-people.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceUncheckedCreateWithoutPeopleInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-progresses.input.ts
index 50f851ed785..f1f4a0df765 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-progresses.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-progresses.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceUncheckedCreateWithoutPipelineProgressesInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-stages.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-stages.input.ts
index a47af91008c..7d004620b6b 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-stages.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-stages.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceUncheckedCreateWithoutPipelineStagesInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipelines.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipelines.input.ts
index fd910fc7903..afa376a4b42 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipelines.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipelines.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceUncheckedCreateWithoutPipelinesInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts
index be6c04d3464..89ab96a85aa 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts
@@ -18,13 +18,15 @@ export class WorkspaceUncheckedCreateWithoutWorkspaceMemberInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create.input.ts
index 193bd4daa9d..737c3b918c1 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-create.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-create.input.ts
@@ -19,13 +19,15 @@ export class WorkspaceUncheckedCreateInput {
@Validator.IsOptional()
id?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- domainName!: string;
+ @Validator.IsOptional()
+ domainName?: string;
- @Field(() => String, {nullable:false})
+ @Field(() => String, {nullable:true})
@Validator.IsString()
- displayName!: string;
+ @Validator.IsOptional()
+ displayName?: string;
@Field(() => String, {nullable:true})
@Validator.IsString()
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-many.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-many.input.ts
index 3eff5eeb0a3..396e39d8812 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-update-many.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-update-many.input.ts
@@ -12,11 +12,11 @@ export class WorkspaceUncheckedUpdateManyInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts
index c3b8b3eb595..eff6cb2a9c1 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUncheckedUpdateWithoutCommentThreadsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-comments.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-comments.input.ts
index 5a9a01fbe4f..8859f50251d 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-comments.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-comments.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUncheckedUpdateWithoutCommentsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-companies.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-companies.input.ts
index 3f288a1d8e8..87c8ff33b92 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-companies.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-companies.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUncheckedUpdateWithoutCompaniesInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-people.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-people.input.ts
index 4e731a4c22f..92fff10aab7 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-people.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-people.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUncheckedUpdateWithoutPeopleInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-progresses.input.ts
index 2dbc07b8ad6..e8d6bcdf110 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-progresses.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-progresses.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUncheckedUpdateWithoutPipelineProgressesInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-stages.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-stages.input.ts
index 9b3239c35dc..fee46c1c3e9 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-stages.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-stages.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUncheckedUpdateWithoutPipelineStagesInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipelines.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipelines.input.ts
index 6903cc4f189..06f45c274fb 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipelines.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipelines.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUncheckedUpdateWithoutPipelinesInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts
index 56699a7ff9c..55096ed40d9 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUncheckedUpdateWithoutWorkspaceMemberInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update.input.ts
index 7ef4bc27125..c7d8a0dd884 100644
--- a/server/src/core/@generated/workspace/workspace-unchecked-update.input.ts
+++ b/server/src/core/@generated/workspace/workspace-unchecked-update.input.ts
@@ -20,11 +20,11 @@ export class WorkspaceUncheckedUpdateInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-update-many-mutation.input.ts b/server/src/core/@generated/workspace/workspace-update-many-mutation.input.ts
index e1ebe3656ad..bd659d9f23d 100644
--- a/server/src/core/@generated/workspace/workspace-update-many-mutation.input.ts
+++ b/server/src/core/@generated/workspace/workspace-update-many-mutation.input.ts
@@ -12,11 +12,11 @@ export class WorkspaceUpdateManyMutationInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-update-without-comment-threads.input.ts b/server/src/core/@generated/workspace/workspace-update-without-comment-threads.input.ts
index 8786d58546e..6e903e8fce5 100644
--- a/server/src/core/@generated/workspace/workspace-update-without-comment-threads.input.ts
+++ b/server/src/core/@generated/workspace/workspace-update-without-comment-threads.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUpdateWithoutCommentThreadsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-update-without-comments.input.ts b/server/src/core/@generated/workspace/workspace-update-without-comments.input.ts
index 705166c9973..e36bafc48d5 100644
--- a/server/src/core/@generated/workspace/workspace-update-without-comments.input.ts
+++ b/server/src/core/@generated/workspace/workspace-update-without-comments.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUpdateWithoutCommentsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-update-without-companies.input.ts b/server/src/core/@generated/workspace/workspace-update-without-companies.input.ts
index ed610ff6b0d..ee0e8e29957 100644
--- a/server/src/core/@generated/workspace/workspace-update-without-companies.input.ts
+++ b/server/src/core/@generated/workspace/workspace-update-without-companies.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUpdateWithoutCompaniesInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-update-without-people.input.ts b/server/src/core/@generated/workspace/workspace-update-without-people.input.ts
index 7862c070435..457b83ae386 100644
--- a/server/src/core/@generated/workspace/workspace-update-without-people.input.ts
+++ b/server/src/core/@generated/workspace/workspace-update-without-people.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUpdateWithoutPeopleInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/workspace/workspace-update-without-pipeline-progresses.input.ts
index 4e9cdd407c8..8ccddaeb117 100644
--- a/server/src/core/@generated/workspace/workspace-update-without-pipeline-progresses.input.ts
+++ b/server/src/core/@generated/workspace/workspace-update-without-pipeline-progresses.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUpdateWithoutPipelineProgressesInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-update-without-pipeline-stages.input.ts b/server/src/core/@generated/workspace/workspace-update-without-pipeline-stages.input.ts
index 86a6d79eb82..12dba58516a 100644
--- a/server/src/core/@generated/workspace/workspace-update-without-pipeline-stages.input.ts
+++ b/server/src/core/@generated/workspace/workspace-update-without-pipeline-stages.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUpdateWithoutPipelineStagesInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-update-without-pipelines.input.ts b/server/src/core/@generated/workspace/workspace-update-without-pipelines.input.ts
index d1ffa3512e6..d618622828d 100644
--- a/server/src/core/@generated/workspace/workspace-update-without-pipelines.input.ts
+++ b/server/src/core/@generated/workspace/workspace-update-without-pipelines.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUpdateWithoutPipelinesInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-update-without-workspace-member.input.ts b/server/src/core/@generated/workspace/workspace-update-without-workspace-member.input.ts
index 1b50891b0b6..446fdcd6c0c 100644
--- a/server/src/core/@generated/workspace/workspace-update-without-workspace-member.input.ts
+++ b/server/src/core/@generated/workspace/workspace-update-without-workspace-member.input.ts
@@ -19,11 +19,11 @@ export class WorkspaceUpdateWithoutWorkspaceMemberInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-update.input.ts b/server/src/core/@generated/workspace/workspace-update.input.ts
index c69952539a3..7276fb9ffc1 100644
--- a/server/src/core/@generated/workspace/workspace-update.input.ts
+++ b/server/src/core/@generated/workspace/workspace-update.input.ts
@@ -20,11 +20,11 @@ export class WorkspaceUpdateInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- domainName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ domainName?: NullableStringFieldUpdateOperationsInput;
- @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
- displayName?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ displayName?: NullableStringFieldUpdateOperationsInput;
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
logo?: NullableStringFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/workspace/workspace-where-unique.input.ts b/server/src/core/@generated/workspace/workspace-where-unique.input.ts
index 1cc87e8a4b4..77b6c95b978 100644
--- a/server/src/core/@generated/workspace/workspace-where-unique.input.ts
+++ b/server/src/core/@generated/workspace/workspace-where-unique.input.ts
@@ -9,8 +9,4 @@ export class WorkspaceWhereUniqueInput {
@Validator.IsString()
@Validator.IsOptional()
id?: string;
-
- @Field(() => String, {nullable:true})
- @Validator.IsString()
- domainName?: string;
}
diff --git a/server/src/core/@generated/workspace/workspace-where.input.ts b/server/src/core/@generated/workspace/workspace-where.input.ts
index 24c7da0d7ff..af23573724e 100644
--- a/server/src/core/@generated/workspace/workspace-where.input.ts
+++ b/server/src/core/@generated/workspace/workspace-where.input.ts
@@ -29,11 +29,11 @@ export class WorkspaceWhereInput {
@Field(() => StringFilter, {nullable:true})
id?: StringFilter;
- @Field(() => StringFilter, {nullable:true})
- domainName?: StringFilter;
+ @Field(() => StringNullableFilter, {nullable:true})
+ domainName?: StringNullableFilter;
- @Field(() => StringFilter, {nullable:true})
- displayName?: StringFilter;
+ @Field(() => StringNullableFilter, {nullable:true})
+ displayName?: StringNullableFilter;
@Field(() => StringNullableFilter, {nullable:true})
logo?: StringNullableFilter;
diff --git a/server/src/core/@generated/workspace/workspace.model.ts b/server/src/core/@generated/workspace/workspace.model.ts
index b709c0cfb86..9cf4eb6bec7 100644
--- a/server/src/core/@generated/workspace/workspace.model.ts
+++ b/server/src/core/@generated/workspace/workspace.model.ts
@@ -18,11 +18,11 @@ export class Workspace {
@Field(() => ID, {nullable:false})
id!: string;
- @Field(() => String, {nullable:false})
- domainName!: string;
+ @Field(() => String, {nullable:true})
+ domainName!: string | null;
- @Field(() => String, {nullable:false})
- displayName!: string;
+ @Field(() => String, {nullable:true})
+ displayName!: string | null;
@Field(() => String, {nullable:true})
logo!: string | null;
diff --git a/server/src/core/auth/auth.resolver.ts b/server/src/core/auth/auth.resolver.ts
index fad6a05dcf3..a09c2ef462d 100644
--- a/server/src/core/auth/auth.resolver.ts
+++ b/server/src/core/auth/auth.resolver.ts
@@ -1,5 +1,5 @@
-import { Args, Mutation, Resolver, Query} from '@nestjs/graphql';
-import { AuthTokens, ClientConfig} from './dto/token.entity';
+import { Args, Mutation, Resolver, Query } from '@nestjs/graphql';
+import { AuthTokens, ClientConfig } from './dto/token.entity';
import { TokenService } from './services/token.service';
import { RefreshTokenInput } from './dto/refresh-token.input';
import { BadRequestException } from '@nestjs/common';
@@ -74,4 +74,4 @@ export class AuthResolver {
return Promise.resolve(clientConfig);
}
-}
\ No newline at end of file
+}
diff --git a/server/src/core/auth/dto/challenge.input.ts b/server/src/core/auth/dto/challenge.input.ts
index 8c6dc82f0f5..6a00b2eb61b 100644
--- a/server/src/core/auth/dto/challenge.input.ts
+++ b/server/src/core/auth/dto/challenge.input.ts
@@ -1,5 +1,12 @@
import { ArgsType, Field } from '@nestjs/graphql';
-import { IsEmail, IsNotEmpty, IsString } from 'class-validator';
+import {
+ IsEmail,
+ IsNotEmpty,
+ IsString,
+ Matches,
+ MinLength,
+} from 'class-validator';
+import { PASSWORD_REGEX } from '../auth.util';
@ArgsType()
export class ChallengeInput {
@@ -11,5 +18,7 @@ export class ChallengeInput {
@Field(() => String)
@IsNotEmpty()
@IsString()
+ @MinLength(8)
+ @Matches(PASSWORD_REGEX, { message: 'password too weak' })
password: string;
}
diff --git a/server/src/core/auth/dto/register.input.ts b/server/src/core/auth/dto/register.input.ts
deleted file mode 100644
index afb9b8983a9..00000000000
--- a/server/src/core/auth/dto/register.input.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-import {
- IsEmail,
- IsNotEmpty,
- IsOptional,
- IsString,
- Matches,
- MinLength,
-} from 'class-validator';
-import { PASSWORD_REGEX } from '../auth.util';
-import { ArgsType, Field } from '@nestjs/graphql';
-
-@ArgsType()
-export class RegisterInput {
- @Field(() => String)
- @IsNotEmpty()
- @IsEmail()
- email: string;
-
- @Field(() => String)
- @IsNotEmpty()
- @IsString()
- @MinLength(8)
- @Matches(PASSWORD_REGEX, { message: 'password too weak' })
- password: string;
-
- @Field(() => String, {
- deprecationReason: 'Deprecated, please use firstName and lastName instead',
- nullable: true,
- })
- @IsOptional()
- @IsString()
- displayName?: string;
-
- @Field(() => String)
- @IsNotEmpty()
- @IsString()
- firstName: string;
-
- @Field(() => String)
- @IsNotEmpty()
- @IsString()
- lastName: string;
-}
diff --git a/server/src/core/auth/dto/token.entity.ts b/server/src/core/auth/dto/token.entity.ts
index 3bae3169d35..2f7156e1c6b 100644
--- a/server/src/core/auth/dto/token.entity.ts
+++ b/server/src/core/auth/dto/token.entity.ts
@@ -31,4 +31,4 @@ export class ClientConfig {
@Field(() => Boolean)
prefill_login_with_seed: boolean;
-}
\ No newline at end of file
+}
diff --git a/server/src/core/auth/services/auth.service.ts b/server/src/core/auth/services/auth.service.ts
index c5a2114b587..e2a7abfdbae 100644
--- a/server/src/core/auth/services/auth.service.ts
+++ b/server/src/core/auth/services/auth.service.ts
@@ -7,7 +7,6 @@ import {
import { ChallengeInput } from '../dto/challenge.input';
import { UserService } from 'src/core/user/user.service';
import { assert } from 'src/utils/assert';
-import { RegisterInput } from '../dto/register.input';
import { PASSWORD_REGEX, compareHash, hashPassword } from '../auth.util';
import { Verify } from '../dto/verify.entity';
import { TokenService } from './token.service';
@@ -26,42 +25,31 @@ export class AuthService {
private readonly userService: UserService,
) {}
- async register(registerInput: RegisterInput) {
- const existingUser = await this.userService.findUnique({
- where: {
- email: registerInput.email,
- },
- });
-
- assert(!existingUser, 'This user already exist', NotFoundException);
+ async challenge(challengeInput: ChallengeInput) {
assert(
- PASSWORD_REGEX.test(registerInput.password),
+ PASSWORD_REGEX.test(challengeInput.password),
'Password too weak',
BadRequestException,
);
- const passwordHash = await hashPassword(registerInput.password);
-
- const user = await this.userService.createUser({
- data: {
- firstName: registerInput.firstName,
- lastName: registerInput.lastName,
- email: registerInput.email,
- passwordHash,
- locale: 'en',
- },
- });
-
- return user;
- }
-
- async challenge(challengeInput: ChallengeInput) {
- const user = await this.userService.findUnique({
+ let user = await this.userService.findUnique({
where: {
email: challengeInput.email,
},
});
+ if (!user) {
+ const passwordHash = await hashPassword(challengeInput.password);
+
+ user = await this.userService.createUser({
+ data: {
+ email: challengeInput.email,
+ passwordHash,
+ locale: 'en',
+ },
+ } as Prisma.UserCreateArgs);
+ }
+
assert(user, "This user doesn't exist", NotFoundException);
assert(user.passwordHash, 'Incorrect login method', ForbiddenException);
diff --git a/server/src/core/comment/resolvers/comment-thread.resolver.ts b/server/src/core/comment/resolvers/comment-thread.resolver.ts
index 53b982eb1d9..5c36029d276 100644
--- a/server/src/core/comment/resolvers/comment-thread.resolver.ts
+++ b/server/src/core/comment/resolvers/comment-thread.resolver.ts
@@ -9,7 +9,6 @@ import { CreateOneCommentThreadGuard } from '../../../guards/create-one-comment-
import { FindManyCommentThreadArgs } from '../../../core/@generated/comment-thread/find-many-comment-thread.args';
import { CommentThreadService } from '../services/comment-thread.service';
import { UpdateOneCommentThreadArgs } from 'src/core/@generated/comment-thread/update-one-comment-thread.args';
-import { Prisma } from '@prisma/client';
import {
PrismaSelector,
PrismaSelect,
@@ -27,6 +26,7 @@ import { AppAbility } from 'src/ability/ability.factory';
import { accessibleBy } from '@casl/prisma';
import { AffectedRows } from 'src/core/@generated/prisma/affected-rows.output';
import { DeleteManyCommentThreadArgs } from 'src/core/@generated/comment-thread/delete-many-comment-thread.args';
+import { Prisma } from '@prisma/client';
@UseGuards(JwtAuthGuard)
@Resolver(() => CommentThread)
@@ -75,7 +75,8 @@ export class CommentThreadResolver {
prismaSelect: PrismaSelect<'CommentThread'>,
): Promise<Partial<CommentThread>> {
const updatedCommentThread = await this.commentThreadService.update({
- ...args,
+ where: args.where,
+ data: args.data,
select: prismaSelect.value,
} as Prisma.CommentThreadUpdateArgs);
@@ -92,11 +93,15 @@ export class CommentThreadResolver {
prismaSelect: PrismaSelect<'CommentThread'>,
): Promise<Partial<CommentThread>[]> {
const result = await this.commentThreadService.findMany({
- ...args,
where: {
...args.where,
AND: [accessibleBy(ability).CommentThread],
},
+ orderBy: args.orderBy,
+ cursor: args.cursor,
+ take: args.take,
+ skip: args.skip,
+ distinct: args.distinct,
select: prismaSelect.value,
});
@@ -112,7 +117,7 @@ export class CommentThreadResolver {
@Args() args: DeleteManyCommentThreadArgs,
): Promise<AffectedRows> {
return this.commentThreadService.deleteMany({
- ...args,
+ where: args.where,
});
}
}
diff --git a/server/src/core/comment/resolvers/comment.resolver.ts b/server/src/core/comment/resolvers/comment.resolver.ts
index 385fb83dd06..6db68b5a943 100644
--- a/server/src/core/comment/resolvers/comment.resolver.ts
+++ b/server/src/core/comment/resolvers/comment.resolver.ts
@@ -6,7 +6,6 @@ import { AuthWorkspace } from '../../../decorators/auth-workspace.decorator';
import { CreateOneCommentArgs } from '../../../core/@generated/comment/create-one-comment.args';
import { Comment } from '../../../core/@generated/comment/comment.model';
import { CreateOneCommentGuard } from '../../../guards/create-one-comment.guard';
-import { Prisma } from '@prisma/client';
import { CommentService } from '../services/comment.service';
import {
PrismaSelector,
@@ -17,6 +16,7 @@ import { CheckAbilities } from 'src/decorators/check-abilities.decorator';
import { CreateCommentAbilityHandler } from 'src/ability/handlers/comment.ability-handler';
import { AuthUser } from 'src/decorators/auth-user.decorator';
import { User } from 'src/core/@generated/user/user.model';
+import { Prisma } from '@prisma/client';
@UseGuards(JwtAuthGuard)
@Resolver(() => Comment)
diff --git a/server/src/core/company/company.resolver.ts b/server/src/core/company/company.resolver.ts
index 2c9474a2e2d..b000a6c571c 100644
--- a/server/src/core/company/company.resolver.ts
+++ b/server/src/core/company/company.resolver.ts
@@ -8,8 +8,7 @@ import { UpdateOneCompanyArgs } from '../../core/@generated/company/update-one-c
import { CreateOneCompanyArgs } from '../../core/@generated/company/create-one-company.args';
import { AffectedRows } from '../../core/@generated/prisma/affected-rows.output';
import { DeleteManyCompanyArgs } from '../../core/@generated/company/delete-many-company.args';
-import { Workspace } from '@prisma/client';
-import { Prisma } from '@prisma/client';
+import { Prisma, Workspace } from '@prisma/client';
import { UpdateOneGuard } from '../../guards/update-one.guard';
import { DeleteManyGuard } from '../../guards/delete-many.guard';
import { CreateOneGuard } from '../../guards/create-one.guard';
@@ -45,12 +44,16 @@ export class CompanyResolver {
prismaSelect: PrismaSelect<'Company'>,
): Promise<Partial<Company>[]> {
return this.companyService.findMany({
- ...args,
where: args.where
? {
AND: [args.where, accessibleBy(ability).Company],
}
: accessibleBy(ability).Company,
+ orderBy: args.orderBy,
+ cursor: args.cursor,
+ take: args.take,
+ skip: args.skip,
+ distinct: args.distinct,
select: prismaSelect.value,
});
}
@@ -71,7 +74,8 @@ export class CompanyResolver {
}
return this.companyService.update({
- ...args,
+ where: args.where,
+ data: args.data,
select: prismaSelect.value,
} as Prisma.CompanyUpdateArgs);
}
@@ -86,7 +90,7 @@ export class CompanyResolver {
@Args() args: DeleteManyCompanyArgs,
): Promise<AffectedRows> {
return this.companyService.deleteMany({
- ...args,
+ where: args.where,
});
}
diff --git a/server/src/core/person/person.resolver.ts b/server/src/core/person/person.resolver.ts
index c812bf44f6f..94e8cff2542 100644
--- a/server/src/core/person/person.resolver.ts
+++ b/server/src/core/person/person.resolver.ts
@@ -9,7 +9,6 @@ import { AffectedRows } from '../../core/@generated/prisma/affected-rows.output'
import { DeleteManyPersonArgs } from '../../core/@generated/person/delete-many-person.args';
import { Workspace } from '../../core/@generated/workspace/workspace.model';
import { AuthWorkspace } from '../../decorators/auth-workspace.decorator';
-import { Prisma } from '@prisma/client';
import { UpdateOneGuard } from '../../guards/update-one.guard';
import { DeleteManyGuard } from '../../guards/delete-many.guard';
import { CreateOneGuard } from '../../guards/create-one.guard';
@@ -29,6 +28,7 @@ import {
import { UserAbility } from 'src/decorators/user-ability.decorator';
import { AppAbility } from 'src/ability/ability.factory';
import { accessibleBy } from '@casl/prisma';
+import { Prisma } from '@prisma/client';
@UseGuards(JwtAuthGuard)
@Resolver(() => Person)
@@ -47,12 +47,16 @@ export class PersonResolver {
prismaSelect: PrismaSelect<'Person'>,
): Promise<Partial<Person>[]> {
return this.personService.findMany({
- ...args,
where: args.where
? {
AND: [args.where, accessibleBy(ability).Person],
}
: accessibleBy(ability).Person,
+ orderBy: args.orderBy,
+ cursor: args.cursor,
+ take: args.take,
+ skip: args.skip,
+ distinct: args.distinct,
select: prismaSelect.value,
});
}
@@ -73,7 +77,8 @@ export class PersonResolver {
}
return this.personService.update({
- ...args,
+ where: args.where,
+ data: args.data,
select: prismaSelect.value,
} as Prisma.PersonUpdateArgs);
}
@@ -88,7 +93,7 @@ export class PersonResolver {
@Args() args: DeleteManyPersonArgs,
): Promise<AffectedRows> {
return this.personService.deleteMany({
- ...args,
+ where: args.where,
});
}
diff --git a/server/src/core/pipeline/resolvers/pipeline-progress.resolver.ts b/server/src/core/pipeline/resolvers/pipeline-progress.resolver.ts
index fc01b4b4d8c..8e6ddf19cd0 100644
--- a/server/src/core/pipeline/resolvers/pipeline-progress.resolver.ts
+++ b/server/src/core/pipeline/resolvers/pipeline-progress.resolver.ts
@@ -7,7 +7,6 @@ import { AuthWorkspace } from '../../../decorators/auth-workspace.decorator';
import { FindManyPipelineProgressArgs } from '../../@generated/pipeline-progress/find-many-pipeline-progress.args';
import { PipelineProgress } from '../../@generated/pipeline-progress/pipeline-progress.model';
import { UpdateOnePipelineProgressArgs } from '../../@generated/pipeline-progress/update-one-pipeline-progress.args';
-import { Prisma } from '@prisma/client';
import { AffectedRows } from '../../@generated/prisma/affected-rows.output';
import { DeleteManyPipelineProgressArgs } from '../../@generated/pipeline-progress/delete-many-pipeline-progress.args';
import { CreateOnePipelineProgressArgs } from '../../@generated/pipeline-progress/create-one-pipeline-progress.args';
@@ -26,6 +25,7 @@ import {
PrismaSelector,
PrismaSelect,
} from 'src/decorators/prisma-select.decorator';
+import { Prisma } from '@prisma/client';
@UseGuards(JwtAuthGuard)
@Resolver(() => PipelineProgress)
@@ -40,14 +40,21 @@ export class PipelineProgressResolver {
async findManyPipelineProgress(
@Args() args: FindManyPipelineProgressArgs,
@UserAbility() ability: AppAbility,
+ @PrismaSelector({ modelName: 'PipelineProgress' })
+ prismaSelect: PrismaSelect<'PipelineProgress'>,
): Promise<Partial<PipelineProgress>[]> {
return this.pipelineProgressService.findMany({
- ...args,
where: args.where
? {
AND: [args.where, accessibleBy(ability).PipelineProgress],
}
: accessibleBy(ability).PipelineProgress,
+ orderBy: args.orderBy,
+ cursor: args.cursor,
+ take: args.take,
+ skip: args.skip,
+ distinct: args.distinct,
+ select: prismaSelect.value,
});
}
@@ -62,7 +69,8 @@ export class PipelineProgressResolver {
prismaSelect: PrismaSelect<'PipelineProgress'>,
): Promise<Partial<PipelineProgress> | null> {
return this.pipelineProgressService.update({
- ...args,
+ where: args.where,
+ data: args.data,
select: prismaSelect.value,
} as Prisma.PipelineProgressUpdateArgs);
}
@@ -76,7 +84,7 @@ export class PipelineProgressResolver {
@Args() args: DeleteManyPipelineProgressArgs,
): Promise<AffectedRows> {
return this.pipelineProgressService.deleteMany({
- ...args,
+ where: args.where,
});
}
diff --git a/server/src/core/pipeline/resolvers/pipeline-stage.resolver.ts b/server/src/core/pipeline/resolvers/pipeline-stage.resolver.ts
index 8b34b576348..88bde1b2013 100644
--- a/server/src/core/pipeline/resolvers/pipeline-stage.resolver.ts
+++ b/server/src/core/pipeline/resolvers/pipeline-stage.resolver.ts
@@ -30,12 +30,16 @@ export class PipelineStageResolver {
prismaSelect: PrismaSelect<'PipelineStage'>,
): Promise<Partial<PipelineStage>[]> {
return this.pipelineStageService.findMany({
- ...args,
where: args.where
? {
AND: [args.where, accessibleBy(ability).PipelineStage],
}
: accessibleBy(ability).PipelineStage,
+ orderBy: args.orderBy,
+ cursor: args.cursor,
+ take: args.take,
+ skip: args.skip,
+ distinct: args.distinct,
select: prismaSelect.value,
});
}
diff --git a/server/src/core/user/user.module.ts b/server/src/core/user/user.module.ts
index ff2d92b5035..d804a712cfa 100644
--- a/server/src/core/user/user.module.ts
+++ b/server/src/core/user/user.module.ts
@@ -1,10 +1,9 @@
import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserResolver } from './user.resolver';
-import { WorkspaceModule } from '../workspace/workspace.module';
@Module({
- imports: [WorkspaceModule],
+ imports: [],
providers: [UserService, UserResolver],
exports: [UserService],
})
diff --git a/server/src/core/user/user.resolver.ts b/server/src/core/user/user.resolver.ts
index 097f749d18c..823794506a8 100644
--- a/server/src/core/user/user.resolver.ts
+++ b/server/src/core/user/user.resolver.ts
@@ -1,4 +1,11 @@
-import { Args, Resolver, Query, ResolveField, Parent } from '@nestjs/graphql';
+import {
+ Args,
+ Resolver,
+ Query,
+ ResolveField,
+ Parent,
+ Mutation,
+} from '@nestjs/graphql';
import { UserService } from './user.service';
import { FindManyUserArgs } from 'src/core/@generated/user/find-many-user.args';
import { User } from 'src/core/@generated/user/user.model';
@@ -11,16 +18,40 @@ import {
} from 'src/decorators/prisma-select.decorator';
import { AbilityGuard } from 'src/guards/ability.guard';
import { CheckAbilities } from 'src/decorators/check-abilities.decorator';
-import { ReadUserAbilityHandler } from 'src/ability/handlers/user.ability-handler';
+import {
+ ReadUserAbilityHandler,
+ UpdateUserAbilityHandler,
+} from 'src/ability/handlers/user.ability-handler';
import { UserAbility } from 'src/decorators/user-ability.decorator';
import { AppAbility } from 'src/ability/ability.factory';
import { accessibleBy } from '@casl/prisma';
+import { AuthUser } from 'src/decorators/auth-user.decorator';
+import { assert } from 'src/utils/assert';
+import { UpdateOneUserArgs } from '../@generated/user/update-one-user.args';
+import { Prisma } from '@prisma/client';
@UseGuards(JwtAuthGuard)
@Resolver(() => User)
export class UserResolver {
constructor(private readonly userService: UserService) {}
+ @Query(() => User)
+ async currentUser(
+ @AuthUser() { id }: User,
+ @PrismaSelector({ modelName: 'User' })
+ prismaSelect: PrismaSelect<'User'>,
+ ) {
+ const user = await this.userService.findUnique({
+ where: {
+ id,
+ },
+ select: prismaSelect.value,
+ });
+ assert(user, 'User not found');
+
+ return user;
+ }
+
@UseFilters(ExceptionFilter)
@Query(() => [User], {
nullable: false,
@@ -34,16 +65,44 @@ export class UserResolver {
prismaSelect: PrismaSelect<'User'>,
): Promise<Partial<User>[]> {
return await this.userService.findMany({
- ...args,
where: args.where
? {
AND: [args.where, accessibleBy(ability).User],
}
: accessibleBy(ability).User,
+ orderBy: args.orderBy,
+ cursor: args.cursor,
+ take: args.take,
+ skip: args.skip,
+ distinct: args.distinct,
select: prismaSelect.value,
});
}
+ @Mutation(() => User)
+ @UseGuards(AbilityGuard)
+ @CheckAbilities(UpdateUserAbilityHandler)
+ async updateUser(
+ @Args() args: UpdateOneUserArgs,
+ @AuthUser() { id }: User,
+ @PrismaSelector({ modelName: 'User' })
+ prismaSelect: PrismaSelect<'User'>,
+ ) {
+ const user = await this.userService.findUnique({
+ where: {
+ id,
+ },
+ select: prismaSelect.value,
+ });
+ assert(user, 'User not found');
+
+ return this.userService.update({
+ where: args.where,
+ data: args.data,
+ select: prismaSelect.value,
+ } as Prisma.UserUpdateArgs);
+ }
+
@ResolveField(() => String, {
nullable: false,
})
diff --git a/server/src/core/user/user.service.spec.ts b/server/src/core/user/user.service.spec.ts
index 9be9bf74f85..94fa79a486a 100644
--- a/server/src/core/user/user.service.spec.ts
+++ b/server/src/core/user/user.service.spec.ts
@@ -2,8 +2,6 @@ import { Test, TestingModule } from '@nestjs/testing';
import { UserService } from './user.service';
import { PrismaService } from 'src/database/prisma.service';
import { prismaMock } from 'src/database/client-mock/jest-prisma-singleton';
-import { WorkspaceService } from '../workspace/services/workspace.service';
-import { WorkspaceMemberService } from '../workspace/services/workspace-member.service';
describe('UserService', () => {
let service: UserService;
@@ -16,14 +14,6 @@ describe('UserService', () => {
provide: PrismaService,
useValue: prismaMock,
},
- {
- provide: WorkspaceService,
- useValue: {},
- },
- {
- provide: WorkspaceMemberService,
- useValue: {},
- },
],
}).compile();
diff --git a/server/src/core/user/user.service.ts b/server/src/core/user/user.service.ts
index b2e315a055d..ddc60951578 100644
--- a/server/src/core/user/user.service.ts
+++ b/server/src/core/user/user.service.ts
@@ -1,10 +1,5 @@
-import {
- BadRequestException,
- ForbiddenException,
- Injectable,
-} from '@nestjs/common';
+import { BadRequestException, Injectable } from '@nestjs/common';
import { PrismaService } from 'src/database/prisma.service';
-import { WorkspaceService } from 'src/core/workspace/services/workspace.service';
import { Prisma } from '@prisma/client';
import { assert } from 'src/utils/assert';
@@ -15,10 +10,7 @@ export type UserPayload = {
@Injectable()
export class UserService {
- constructor(
- private readonly prismaService: PrismaService,
- private readonly workspaceService: WorkspaceService,
- ) {}
+ constructor(private readonly prismaService: PrismaService) {}
// Find
findFirst = this.prismaService.user.findFirst;
@@ -56,22 +48,6 @@ export class UserService {
args: Prisma.SelectSubset<T, Prisma.UserCreateArgs>,
): Promise<Prisma.UserGetPayload<T>> {
assert(args.data.email, 'email is missing', BadRequestException);
- assert(args.data.firstName, 'firstName is missing', BadRequestException);
- assert(args.data.lastName, 'lastName is missing', BadRequestException);
-
- const emailDomain = args.data.email.split('@')[1];
-
- assert(emailDomain, 'Email is malformed', BadRequestException);
-
- const workspace = await this.workspaceService.findUnique({
- where: { domainName: emailDomain },
- });
-
- assert(
- workspace,
- 'User email domain does not match an existing workspace',
- ForbiddenException,
- );
const user = await this.prismaService.user.upsert({
where: {
@@ -79,10 +55,12 @@ export class UserService {
},
create: {
...(args.data as Prisma.UserCreateInput),
+ // Assign the user to a new workspace by default
workspaceMember: {
- connectOrCreate: {
- where: { id: workspace.id },
- create: { workspaceId: workspace.id },
+ create: {
+ workspace: {
+ create: {},
+ },
},
},
locale: 'en',
@@ -90,7 +68,7 @@ export class UserService {
update: {},
...(args.select ? { select: args.select } : {}),
...(args.include ? { include: args.include } : {}),
- });
+ } as Prisma.UserUpsertArgs);
return user as Prisma.UserGetPayload<T>;
}
diff --git a/server/src/core/workspace/resolvers/workspace.resolver.spec.ts b/server/src/core/workspace/resolvers/workspace.resolver.spec.ts
new file mode 100644
index 00000000000..1c72f7d6e22
--- /dev/null
+++ b/server/src/core/workspace/resolvers/workspace.resolver.spec.ts
@@ -0,0 +1,22 @@
+import { Test, TestingModule } from '@nestjs/testing';
+import { WorkspaceResolver } from './workspace.resolver';
+import { WorkspaceService } from '../services/workspace.service';
+
+describe('WorkspaceMemberResolver', () => {
+ let resolver: WorkspaceResolver;
+
+ beforeEach(async () => {
+ const module: TestingModule = await Test.createTestingModule({
+ providers: [
+ WorkspaceResolver,
+ { provide: WorkspaceService, useValue: {} },
+ ],
+ }).compile();
+
+ resolver = module.get<WorkspaceResolver>(WorkspaceResolver);
+ });
+
+ it('should be defined', () => {
+ expect(resolver).toBeDefined();
+ });
+});
diff --git a/server/src/core/workspace/resolvers/workspace.resolver.ts b/server/src/core/workspace/resolvers/workspace.resolver.ts
new file mode 100644
index 00000000000..fcc480e691f
--- /dev/null
+++ b/server/src/core/workspace/resolvers/workspace.resolver.ts
@@ -0,0 +1,36 @@
+import { Args, Mutation, Resolver } from '@nestjs/graphql';
+import { UseGuards } from '@nestjs/common';
+import { Workspace } from 'src/core/@generated/workspace/workspace.model';
+import { WorkspaceService } from '../services/workspace.service';
+import {
+ PrismaSelect,
+ PrismaSelector,
+} from 'src/decorators/prisma-select.decorator';
+import { AuthWorkspace } from 'src/decorators/auth-workspace.decorator';
+import { WorkspaceUpdateInput } from 'src/core/@generated/workspace/workspace-update.input';
+import { JwtAuthGuard } from 'src/guards/jwt.auth.guard';
+import { Prisma } from '@prisma/client';
+
+@UseGuards(JwtAuthGuard)
+@Resolver(() => Workspace)
+export class WorkspaceResolver {
+ constructor(private readonly workspaceService: WorkspaceService) {}
+
+ @Mutation(() => Workspace)
+ async updateWorkspace(
+ @Args('data') data: WorkspaceUpdateInput,
+ @AuthWorkspace() workspace: Workspace,
+ @PrismaSelector({ modelName: 'Workspace' })
+ prismaSelect: PrismaSelect<'Workspace'>,
+ ) {
+ return this.workspaceService.update({
+ where: {
+ id: workspace.id,
+ },
+ data: {
+ ...data,
+ },
+ select: prismaSelect.value,
+ } as Prisma.WorkspaceUpdateArgs);
+ }
+}
diff --git a/server/src/core/workspace/workspace.module.ts b/server/src/core/workspace/workspace.module.ts
index fd60a4b9c6c..423004b0a4b 100644
--- a/server/src/core/workspace/workspace.module.ts
+++ b/server/src/core/workspace/workspace.module.ts
@@ -1,9 +1,16 @@
import { Module } from '@nestjs/common';
import { WorkspaceService } from './services/workspace.service';
import { WorkspaceMemberService } from './services/workspace-member.service';
+import { WorkspaceMemberResolver } from './resolvers/workspace-member.resolver';
+import { WorkspaceResolver } from './resolvers/workspace.resolver';
@Module({
- providers: [WorkspaceService, WorkspaceMemberService],
+ providers: [
+ WorkspaceService,
+ WorkspaceMemberService,
+ WorkspaceMemberResolver,
+ WorkspaceResolver,
+ ],
exports: [WorkspaceService, WorkspaceMemberService],
})
export class WorkspaceModule {}
diff --git a/server/src/database/migrations/20230706073120_alter_table_workspace_remove_unique_domain_name_all_fields_optional/migration.sql b/server/src/database/migrations/20230706073120_alter_table_workspace_remove_unique_domain_name_all_fields_optional/migration.sql
new file mode 100644
index 00000000000..2402ca54a8b
--- /dev/null
+++ b/server/src/database/migrations/20230706073120_alter_table_workspace_remove_unique_domain_name_all_fields_optional/migration.sql
@@ -0,0 +1,6 @@
+-- DropIndex
+DROP INDEX "workspaces_domainName_key";
+
+-- AlterTable
+ALTER TABLE "workspaces" ALTER COLUMN "domainName" DROP NOT NULL,
+ALTER COLUMN "displayName" DROP NOT NULL;
diff --git a/server/src/database/migrations/20230706073151_alter_table_user_first_name_last_name_optional/migration.sql b/server/src/database/migrations/20230706073151_alter_table_user_first_name_last_name_optional/migration.sql
new file mode 100644
index 00000000000..e943e42095d
--- /dev/null
+++ b/server/src/database/migrations/20230706073151_alter_table_user_first_name_last_name_optional/migration.sql
@@ -0,0 +1,3 @@
+-- AlterTable
+ALTER TABLE "users" ALTER COLUMN "firstName" DROP NOT NULL,
+ALTER COLUMN "lastName" DROP NOT NULL;
diff --git a/server/src/database/prisma.service.ts b/server/src/database/prisma.service.ts
index 14280c605ef..401f75736fa 100644
--- a/server/src/database/prisma.service.ts
+++ b/server/src/database/prisma.service.ts
@@ -1,6 +1,14 @@
-import { INestApplication, Injectable, OnModuleInit } from '@nestjs/common';
+import {
+ INestApplication,
+ Injectable,
+ Logger,
+ OnModuleInit,
+} from '@nestjs/common';
import { PrismaClient } from '@prisma/client';
+import { createPrismaQueryEventHandler } from 'prisma-query-log';
+import { EnvironmentService } from 'src/integrations/environment/environment.service';
+// TODO: Check if this is still needed
if (!global.prisma) {
global.prisma = new PrismaClient();
}
@@ -8,6 +16,36 @@ export default global.prisma;
@Injectable()
export class PrismaService extends PrismaClient implements OnModuleInit {
+ private readonly logger = new Logger(PrismaService.name);
+
+ constructor(private readonly environmentService: EnvironmentService) {
+ const debugMode = environmentService.getDebugMode();
+ super({
+ errorFormat: 'minimal',
+ log: debugMode
+ ? [
+ {
+ level: 'query',
+ emit: 'event',
+ },
+ ]
+ : undefined,
+ });
+
+ if (debugMode) {
+ const logHandler = createPrismaQueryEventHandler({
+ logger: (query: string) => {
+ this.logger.log(query, 'PrismaClient');
+ },
+ format: false,
+ colorQuery: '\u001B[96m',
+ colorParameter: '\u001B[90m',
+ });
+
+ this.$on('query' as any, logHandler);
+ }
+ }
+
async onModuleInit() {
await this.$connect();
}
diff --git a/server/src/database/schema.prisma b/server/src/database/schema.prisma
index 32d5aab92b8..e77532d4cd1 100644
--- a/server/src/database/schema.prisma
+++ b/server/src/database/schema.prisma
@@ -135,9 +135,11 @@ model User {
/// @Validator.IsOptional()
id String @id @default(uuid())
/// @Validator.IsString()
- firstName String
+ /// @Validator.IsOptional()
+ firstName String?
/// @Validator.IsString()
- lastName String
+ /// @Validator.IsOptional()
+ lastName String?
/// @Validator.IsEmail()
email String @unique
/// @Validator.IsBoolean()
@@ -185,9 +187,11 @@ model Workspace {
/// @Validator.IsOptional()
id String @id @default(uuid())
/// @Validator.IsString()
- domainName String @unique
+ /// @Validator.IsOptional()
+ domainName String?
/// @Validator.IsString()
- displayName String
+ /// @Validator.IsOptional()
+ displayName String?
/// @Validator.IsString()
/// @Validator.IsOptional()
logo String?
diff --git a/server/src/database/seeds/users.ts b/server/src/database/seeds/users.ts
index 205e81c6606..818bcc93ca8 100644
--- a/server/src/database/seeds/users.ts
+++ b/server/src/database/seeds/users.ts
@@ -9,7 +9,7 @@ export const seedUsers = async (prisma: PrismaClient) => {
lastName: 'Apple',
passwordHash:
- '$2a$10$p2Pqc80JZX6bx/PkZJkC9OA/AasSHM7PMBk7mR3PCM0XSeKwDtwNa', // applecar2025
+ '$2b$10$66d.6DuQExxnrfI9rMqOg.U1XIYpagr6Lv05uoWLYbYmtK0HDIvS6', // Applecar2025
locale: 'en',
avatarUrl:
'data:image/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eJWJJIZOa9ClGYG3IgFI4DXxiYi8ZjU4F9Ho9xwU05D3KobR/w3EoeuPmd260wAAAABJRU5ErkJggg==',
diff --git a/server/src/database/seeds/workspaces.ts b/server/src/database/seeds/workspaces.ts
index 2582838499d..7f3caf637aa 100644
--- a/server/src/database/seeds/workspaces.ts
+++ b/server/src/database/seeds/workspaces.ts
@@ -1,7 +1,7 @@
import { PrismaClient } from '@prisma/client';
export const seedWorkspaces = async (prisma: PrismaClient) => {
await prisma.workspace.upsert({
- where: { domainName: 'twenty.com' },
+ where: { id: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419' },
update: {},
create: {
id: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
@@ -10,8 +10,9 @@ export const seedWorkspaces = async (prisma: PrismaClient) => {
logo: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAELpJREFUeF7tnXnwr3MVx1+WS5Hthoss1R0lNSTUKGQdt6EscVVCKVPKUqmUKcu0WJI2ppJUt0kNwmRN0dBCtolKpqIVIdl3qXnX8xs/1+937/d5vp/lnOc5n3++/zyfzznnfc77+zyf7ZxFiBYIBALTIrBIYBMIBALTIxAEiegIBBaAQBAkwiMQCIJEDIyJgP5IlwRmAreOOZar7vEGceWuYsrOBg4E5gKzgMlxMqiYGZSxxcLLnyDFwU7AF4A1FqL+osB//JnYTeMgSDfc+tLrhcBZwHotDFoMeLLF864fDYK4dl9n5XcBTm3mFW0HWRz4d9tOXp8Pgnj1XDe9d2+Ioc+kri3eIF2Ri35mEdgAuLzjG2N+o2IOYtbNoVhbBGYA1wPrtO24gOcH9dUxKGMTBomHofYE5iVWVKtX43yeJVYn/3BBkPwY15BwXcuVqVF1fBB4zqgP9+G5IEgfvPiUDSsAdwBaacrRrgY2zjGw1TGDIFY9016vjYCr2ndr1eMQ4NhWPZw/HARx7sBG/Z2BMwuY8nzgLwXkmBERBDHjis6KaG/je517t+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3AyuPZXl0tobA7k2uNFN6eSWIzuWo7JZX/U0FgQFlTM07JuPhOcBif8RAZCdQQSlDlTrUZPNMEAGquYjmJNF8IqAbpEs2XwMmLfBOEIGqG4i6iRjNHwKzrRd27QNBFBbXAev5i49Ba7wr8H3rCPSFIML5TmBF64CHfv9D4CjgUA9Y9IkgskX1sU1tNHkIgsI6ng7MLSyzs7g+EUQgKFfrQ83ErzMo0TEbAlXulY9jTd8IMkGS++NNMk5YZOn7Q2BOlpEzDtpHgggu2XUrsEpG7HIMraQE+kzUfEqnlx9shCwLzGpOM6sWuDe/nQzsmwOw3GN6A7otHio3rbLTFpvyf50JnARcCzzaUkltru0AvBfYuEQpgJb6TTx+EPDFjn2rd+s7QQTw5wE5qXbT2+Ec4CPAjRmU0YabNk4/Yeic2vrA9RlsLTbkEAgiMF8FXFEM1acLOq/5vCiZEVCLFfs0fw6qv1K6/QlYu0ndVFp2UnlDIYhAU9Dok+vlSRGcerC7AJUHU/3u2k2fYvOaz7HcuujoyG4eNgBHBWJIBJnARK/9ywFNdlM23Z/+UrMB9kjKgROOtQ3wdWDNhGNODHUscEiGcasOOUSCTAC+aTMnWH4MD2hirYD7GHD3GOOU7iq/K8/tcc0Rna5xoIWG/WplPSwBWldgSuhWSoZ23j8EHAjMXIhQXQm9DDi+qVFRPetGIpA0T9EexdsA1R3XZ9lUsaFN2Csb+y+wkHUkkf3TDhMEeSY0izcBoqDRypM2HfVPqVzBQ2yKkcEWNgqCDDHkw+aREQiCjAxVPDhEBIIgQ/R62DwyAkGQkaGKB4eIwH8BiW3y2J/F45oAAAAASUVORK5CYII=',
},
});
+
await prisma.workspace.upsert({
- where: { domainName: 'dev.twenty.com' },
+ where: { id: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420' },
update: {},
create: {
id: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420',
diff --git a/server/src/integrations/environment/environment.module-definition.ts b/server/src/integrations/environment/environment.module-definition.ts
index 242e2ef3cdd..58855649940 100644
--- a/server/src/integrations/environment/environment.module-definition.ts
+++ b/server/src/integrations/environment/environment.module-definition.ts
@@ -2,7 +2,7 @@ import { ConfigurableModuleBuilder } from '@nestjs/common';
export const { ConfigurableModuleClass, MODULE_OPTIONS_TOKEN } =
new ConfigurableModuleBuilder({
- moduleName: 'Environment',
+ moduleName: 'Prisma',
})
.setClassMethodName('forRoot')
.build();
diff --git a/server/src/integrations/environment/environment.service.ts b/server/src/integrations/environment/environment.service.ts
index 57be8a7b855..0e4f84003da 100644
--- a/server/src/integrations/environment/environment.service.ts
+++ b/server/src/integrations/environment/environment.service.ts
@@ -8,6 +8,10 @@ import { StorageType } from './interfaces/storage.interface';
export class EnvironmentService {
constructor(private configService: ConfigService) {}
+ getDebugMode(): boolean | undefined {
+ return this.configService.get<boolean>('DEBUG_MODE')!;
+ }
+
getPGDatabaseUrl(): string {
return this.configService.get<string>('PG_DATABASE_URL')!;
}
diff --git a/server/src/integrations/environment/environment.validation.ts b/server/src/integrations/environment/environment.validation.ts
index 1ef2f5e4e30..18740e499f3 100644
--- a/server/src/integrations/environment/environment.validation.ts
+++ b/server/src/integrations/environment/environment.validation.ts
@@ -1,4 +1,4 @@
-import { plainToClass, Transform } from 'class-transformer';
+import { plainToClass } from 'class-transformer';
import {
IsEnum,
IsOptional,
@@ -16,6 +16,12 @@ import { IsAWSRegion } from './decorators/is-aws-region.decorator';
import { CastToBoolean } from './decorators/cast-to-boolean.decorator';
export class EnvironmentVariables {
+ // Stage
+ @CastToBoolean()
+ @IsOptional()
+ @IsBoolean()
+ DEBUG_MODE?: boolean;
+
// Database
@IsUrl({ protocols: ['postgres'], require_tld: false })
PG_DATABASE_URL: string;
diff --git a/server/src/integrations/integrations.module.ts b/server/src/integrations/integrations.module.ts
index d6b2604356e..30809754e08 100644
--- a/server/src/integrations/integrations.module.ts
+++ b/server/src/integrations/integrations.module.ts
@@ -1,4 +1,4 @@
-import { Module } from '@nestjs/common';
+import { Global, Module } from '@nestjs/common';
import { fromNodeProviderChain } from '@aws-sdk/credential-providers';
import { EnvironmentModule } from './environment/environment.module';
import { EnvironmentService } from './environment/environment.service';
diff --git a/server/yarn.lock b/server/yarn.lock
index 69a62222e97..a6c2295f950 100644
--- a/server/yarn.lock
+++ b/server/yarn.lock
@@ -2554,6 +2554,11 @@
"@smithy/types" "^1.1.0"
tslib "^2.5.0"
+"@sqltools/formatter@^1.2.3":
+ version "1.2.5"
+ resolved "https://registry.yarnpkg.com/@sqltools/formatter/-/formatter-1.2.5.tgz#3abc203c79b8c3e90fd6c156a0c62d5403520e12"
+ integrity sha512-Uy0+khmZqUrUGm5dmMqVlnvufZRSK0FbYzVgp0UMstm+F5+W2/jnEEQyc9vo1ZR/E5ZI/B1WjjoTqBqwJL6Krw==
+
"@ts-morph/common@~0.17.0":
version "0.17.0"
resolved "https://registry.npmjs.org/@ts-morph/common/-/common-0.17.0.tgz"
@@ -7037,6 +7042,13 @@ prisma-nestjs-graphql@^18.0.2:
pupa "2.X"
ts-morph ">=11 <=16"
+prisma-query-log@^3.2.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/prisma-query-log/-/prisma-query-log-3.2.0.tgz#6e620a7196456075b1eaddb7cb10b86cb7be2ab4"
+ integrity sha512-Em7u3eedHZR6JJSzEMDEwoyS9zy2MsdQLrKxkfTbLdJF2LwfMetRVDBtkGQdcxM4ntT3wFWGBi/zNR5Q107Jgw==
+ dependencies:
+ "@sqltools/formatter" "^1.2.3"
+
prisma@^4.13.0:
version "4.15.0"
resolved "https://registry.npmjs.org/prisma/-/prisma-4.15.0.tgz"