diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index cedc2cd1b..fde89b835 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -7,7 +7,6 @@
"ms-vscode.makefile-tools",
"esbenp.prettier-vscode",
"GraphQL.vscode-graphql",
- "prisma.prisma",
"yoavbls.pretty-ts-errors",
"graphql.vscode-graphql-syntax",
"graphql.vscode-graphql",
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 366fb922e..3f4b28eeb 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -25,10 +25,6 @@
"[json]": {
"editor.formatOnSave": true
},
- "[prisma]": {
- "editor.formatOnSave": true,
- "editor.defaultFormatter": "Prisma.prisma"
- },
"javascript.format.enable": false,
"typescript.format.enable": false,
"cSpell.enableFiletypes": [
diff --git a/docs/docs/contributor/local-setup/docker-setup.mdx b/docs/docs/contributor/local-setup/docker-setup.mdx
index 68bc67a92..371439636 100644
--- a/docs/docs/contributor/local-setup/docker-setup.mdx
+++ b/docs/docs/contributor/local-setup/docker-setup.mdx
@@ -94,7 +94,7 @@ Start the containers:
make up
```
-Setup database, generate prisma client, run migrations, and seed:
+Setup database, run migrations, and seed:
```bash
make server-database-init
```
diff --git a/front/src/App.tsx b/front/src/App.tsx
index c0b20d31c..d0c6f2e6d 100644
--- a/front/src/App.tsx
+++ b/front/src/App.tsx
@@ -12,13 +12,9 @@ import { CreateProfile } from '~/pages/auth/CreateProfile';
import { CreateWorkspace } from '~/pages/auth/CreateWorkspace';
import { SignInUp } from '~/pages/auth/SignInUp';
import { VerifyEffect } from '~/pages/auth/VerifyEffect';
-import { Companies } from '~/pages/companies/Companies';
-import { CompanyShow } from '~/pages/companies/CompanyShow';
import { ImpersonateEffect } from '~/pages/impersonate/ImpersonateEffect';
import { NotFound } from '~/pages/not-found/NotFound';
import { Opportunities } from '~/pages/opportunities/Opportunities';
-import { People } from '~/pages/people/People';
-import { PersonShow } from '~/pages/people/PersonShow';
import { SettingsNewObject } from '~/pages/settings/data-model/SettingsNewObject';
import { SettingsObjectDetail } from '~/pages/settings/data-model/SettingsObjectDetail';
import { SettingsObjectEdit } from '~/pages/settings/data-model/SettingsObjectEdit';
@@ -40,7 +36,6 @@ import { SettingsObjectNewFieldStep2 } from './pages/settings/data-model/Setting
export const App = () => {
const { pathname } = useLocation();
const pageTitle = getPageTitleFromPath(pathname);
-
return (
<>
@@ -54,11 +49,7 @@ export const App = () => {
} />
} />
} />
- } />
- } />
- } />
- } />
- } />
+ } />
} />
} />
diff --git a/front/src/AppNavbar.tsx b/front/src/AppNavbar.tsx
index fe95edf66..21c981377 100644
--- a/front/src/AppNavbar.tsx
+++ b/front/src/AppNavbar.tsx
@@ -59,8 +59,8 @@ export const AppNavbar = () => {
diff --git a/front/src/effect-components/GotoHotkeysEffect.tsx b/front/src/effect-components/GotoHotkeysEffect.tsx
index 4b79fc6ba..b6cecf7bd 100644
--- a/front/src/effect-components/GotoHotkeysEffect.tsx
+++ b/front/src/effect-components/GotoHotkeysEffect.tsx
@@ -1,9 +1,9 @@
import { useGoToHotkeys } from '@/ui/utilities/hotkey/hooks/useGoToHotkeys';
export const GotoHotkeysEffect = () => {
- useGoToHotkeys('p', '/people');
- useGoToHotkeys('c', '/companies');
- useGoToHotkeys('o', '/opportunities');
+ useGoToHotkeys('p', '/objects/people');
+ useGoToHotkeys('c', '/objects/companies');
+ useGoToHotkeys('o', '/objects/opportunities');
useGoToHotkeys('s', '/settings/profile');
useGoToHotkeys('t', '/tasks');
diff --git a/front/src/effect-components/PageChangeEffect.tsx b/front/src/effect-components/PageChangeEffect.tsx
index d3e6daa53..244109a4e 100644
--- a/front/src/effect-components/PageChangeEffect.tsx
+++ b/front/src/effect-components/PageChangeEffect.tsx
@@ -2,7 +2,6 @@ import { useEffect, useState } from 'react';
import { matchPath, useLocation, useNavigate } from 'react-router-dom';
import { useOpenCreateActivityDrawer } from '@/activities/hooks/useOpenCreateActivityDrawer';
-import { ActivityTargetableEntityType } from '@/activities/types/ActivityTargetableEntity';
import { useEventTracker } from '@/analytics/hooks/useEventTracker';
import { useOnboardingStatus } from '@/auth/hooks/useOnboardingStatus';
import { OnboardingStatus } from '@/auth/utils/getOnboardingStatus';
@@ -12,14 +11,11 @@ import { AppBasePath } from '@/types/AppBasePath';
import { AppPath } from '@/types/AppPath';
import { PageHotkeyScope } from '@/types/PageHotkeyScope';
import { SettingsPath } from '@/types/SettingsPath';
-import { IconCheckbox, IconNotes } from '@/ui/display/icon';
+import { IconCheckbox } from '@/ui/display/icon';
import { useSnackBar } from '@/ui/feedback/snack-bar/hooks/useSnackBar';
import { TableHotkeyScope } from '@/ui/object/record-table/types/TableHotkeyScope';
import { useSetHotkeyScope } from '@/ui/utilities/hotkey/hooks/useSetHotkeyScope';
-import {
- ActivityType,
- useGetWorkspaceFromInviteHashLazyQuery,
-} from '~/generated/graphql';
+import { useGetWorkspaceFromInviteHashLazyQuery } from '~/generated/graphql';
import { useIsMatchingLocation } from '../hooks/useIsMatchingLocation';
@@ -114,22 +110,14 @@ export const PageChangeEffect = () => {
}
switch (true) {
- case isMatchingLocation(AppPath.CompaniesPage): {
+ case isMatchingLocation(AppPath.RecordTablePage): {
setHotkeyScope(TableHotkeyScope.Table, { goto: true });
break;
}
- case isMatchingLocation(AppPath.PeoplePage): {
- setHotkeyScope(TableHotkeyScope.Table, { goto: true });
- break;
- }
- case isMatchingLocation(AppPath.CompanyShowPage): {
+ case isMatchingLocation(AppPath.RecordShowPage): {
setHotkeyScope(PageHotkeyScope.CompanyShowPage, { goto: true });
break;
}
- case isMatchingLocation(AppPath.PersonShowPage): {
- setHotkeyScope(PageHotkeyScope.PersonShowPage, { goto: true });
- break;
- }
case isMatchingLocation(AppPath.OpportunitiesPage): {
setHotkeyScope(PageHotkeyScope.OpportunitiesPage, { goto: true });
break;
@@ -173,93 +161,16 @@ export const PageChangeEffect = () => {
}
setToIntitialCommandMenu();
- switch (true) {
- case isMatchingLocation(AppPath.CompanyShowPage): {
- const companyId = matchPath(
- { path: '/companies/:id' },
- location.pathname,
- )?.params.id;
- const entity = !!companyId
- ? {
- id: companyId,
- type: 'Company' as ActivityTargetableEntityType,
- }
- : undefined;
-
- addToCommandMenu([
- {
- to: '',
- label: 'Create Task',
- type: CommandType.Create,
- Icon: IconCheckbox,
- onCommandClick: () =>
- openCreateActivity({
- type: 'Task',
- targetableEntities: entity ? [entity] : undefined,
- }),
- },
- {
- to: '',
- label: 'Create Note',
- type: CommandType.Create,
- Icon: IconNotes,
- onCommandClick: () =>
- openCreateActivity({
- type: ActivityType.Note,
- targetableEntities: entity ? [entity] : undefined,
- }),
- },
- ]);
- break;
- }
- case isMatchingLocation(AppPath.PersonShowPage): {
- const personId = matchPath({ path: '/person/:id' }, location.pathname)
- ?.params.id;
-
- const entity = !!personId
- ? { id: personId, type: 'Person' as ActivityTargetableEntityType }
- : undefined;
-
- addToCommandMenu([
- {
- to: '',
- label: 'Create Task',
- type: CommandType.Create,
- Icon: IconCheckbox,
- onCommandClick: () =>
- openCreateActivity({
- type: ActivityType.Task,
- targetableEntities: entity ? [entity] : undefined,
- }),
- },
- {
- to: '',
- label: 'Create Note',
- type: CommandType.Create,
- Icon: IconNotes,
- onCommandClick: () =>
- openCreateActivity({
- type: ActivityType.Note,
- targetableEntities: entity ? [entity] : undefined,
- }),
- },
- ]);
- break;
- }
- default:
- addToCommandMenu([
- {
- to: '',
- label: 'Create Task',
- type: CommandType.Create,
- Icon: IconCheckbox,
- onCommandClick: () =>
- openCreateActivity({ type: ActivityType.Task }),
- },
- ]);
- break;
- }
+ addToCommandMenu([
+ {
+ to: '',
+ label: 'Create Task',
+ type: CommandType.Create,
+ Icon: IconCheckbox,
+ onCommandClick: () => openCreateActivity({ type: 'Task' }),
+ },
+ ]);
setTimeout(() => {
eventTracker('pageview', {
diff --git a/front/src/generated-metadata/graphql.ts b/front/src/generated-metadata/graphql.ts
index 08c7365db..48d3fd79c 100644
--- a/front/src/generated-metadata/graphql.ts
+++ b/front/src/generated-metadata/graphql.ts
@@ -20,92 +20,8 @@ export type Scalars = {
DateTime: { input: any; output: any; }
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
JSON: { input: any; output: any; }
- /** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
- JSONObject: { input: any; output: any; }
};
-export type Activity = {
- __typename?: 'Activity';
- activityTargets?: Maybe>;
- assignee?: Maybe;
- assigneeId?: Maybe;
- attachments?: Maybe>;
- author: User;
- authorId: Scalars['String']['output'];
- body?: Maybe;
- comments?: Maybe>;
- completedAt?: Maybe;
- createdAt: Scalars['DateTime']['output'];
- dueAt?: Maybe;
- id: Scalars['ID']['output'];
- reminderAt?: Maybe;
- title?: Maybe;
- type: ActivityType;
- updatedAt: Scalars['DateTime']['output'];
- workspaceMemberAssignee?: Maybe;
- workspaceMemberAssigneeId?: Maybe;
- workspaceMemberAuthor?: Maybe;
- workspaceMemberAuthorId?: Maybe;
-};
-
-export type ActivityTarget = {
- __typename?: 'ActivityTarget';
- activity: Activity;
- activityId: Scalars['String']['output'];
- company?: Maybe;
- companyId?: Maybe;
- createdAt: Scalars['DateTime']['output'];
- id: Scalars['ID']['output'];
- person?: Maybe;
- personId?: Maybe;
- updatedAt: Scalars['DateTime']['output'];
-};
-
-export enum ActivityType {
- Note = 'Note',
- Task = 'Task'
-}
-
-export type ApiKey = {
- __typename?: 'ApiKey';
- createdAt: Scalars['DateTime']['output'];
- expiresAt?: Maybe;
- id: Scalars['ID']['output'];
- name: Scalars['String']['output'];
- updatedAt: Scalars['DateTime']['output'];
-};
-
-export type Attachment = {
- __typename?: 'Attachment';
- activity?: Maybe;
- activityId?: Maybe;
- author: User;
- authorId: Scalars['String']['output'];
- company?: Maybe;
- companyId?: Maybe;
- createdAt: Scalars['DateTime']['output'];
- fullPath: Scalars['String']['output'];
- id: Scalars['ID']['output'];
- name: Scalars['String']['output'];
- person?: Maybe;
- personId?: Maybe;
- type: AttachmentType;
- updatedAt: Scalars['DateTime']['output'];
- workspace: Workspace;
- workspaceMemberAuthor?: Maybe;
- workspaceMemberAuthorId?: Maybe;
-};
-
-export enum AttachmentType {
- Archive = 'Archive',
- Audio = 'Audio',
- Image = 'Image',
- Other = 'Other',
- Spreadsheet = 'Spreadsheet',
- TextDocument = 'TextDocument',
- Video = 'Video'
-}
-
export type AuthProviders = {
__typename?: 'AuthProviders';
google: Scalars['Boolean']['output'];
@@ -130,53 +46,8 @@ export type BooleanFieldComparison = {
isNot?: InputMaybe;
};
-export enum ColorScheme {
- Dark = 'Dark',
- Light = 'Light',
- System = 'System'
-}
-
-export type Comment = {
- __typename?: 'Comment';
- activity?: Maybe;
- activityId?: Maybe;
- author: User;
- authorId: Scalars['String']['output'];
- body: Scalars['String']['output'];
- commentThreadId?: Maybe;
- createdAt: Scalars['DateTime']['output'];
- id: Scalars['ID']['output'];
- updatedAt: Scalars['DateTime']['output'];
- workspaceMemberAuthor?: Maybe;
- workspaceMemberAuthorId?: Maybe;
-};
-
-export type Company = {
- __typename?: 'Company';
- ActivityTarget?: Maybe>;
- Attachment?: Maybe>;
- Favorite?: Maybe>;
- PipelineProgress?: Maybe>;
- accountOwner?: Maybe;
- accountOwnerId?: Maybe;
- address: Scalars['String']['output'];
- annualRecurringRevenue?: Maybe;
- createdAt: Scalars['DateTime']['output'];
- domainName: Scalars['String']['output'];
- employees?: Maybe;
- id: Scalars['ID']['output'];
- idealCustomerProfile: Scalars['Boolean']['output'];
- linkedinUrl?: Maybe;
- name: Scalars['String']['output'];
- people?: Maybe>;
- updatedAt: Scalars['DateTime']['output'];
- workspaceMemberAccountOwner?: Maybe;
- workspaceMemberAccountOwnerId?: Maybe;
- xUrl?: Maybe;
-};
-
export type CreateFieldInput = {
- defaultValue?: InputMaybe;
+ defaultValue?: InputMaybe;
description?: InputMaybe;
icon?: InputMaybe;
isNullable?: InputMaybe;
@@ -223,177 +94,6 @@ export type CreateRelationInput = {
toObjectMetadataId: Scalars['String']['input'];
};
-export enum CurrencyCode {
- Aed = 'AED',
- Afn = 'AFN',
- All = 'ALL',
- Amd = 'AMD',
- Ang = 'ANG',
- Aoa = 'AOA',
- Ars = 'ARS',
- Aud = 'AUD',
- Awg = 'AWG',
- Azn = 'AZN',
- Bam = 'BAM',
- Bbd = 'BBD',
- Bdt = 'BDT',
- Bgn = 'BGN',
- Bhd = 'BHD',
- Bif = 'BIF',
- Bmd = 'BMD',
- Bnd = 'BND',
- Bob = 'BOB',
- Bov = 'BOV',
- Brl = 'BRL',
- Bsd = 'BSD',
- Btn = 'BTN',
- Bwp = 'BWP',
- Byn = 'BYN',
- Bzd = 'BZD',
- Cad = 'CAD',
- Cdf = 'CDF',
- Chf = 'CHF',
- Clf = 'CLF',
- Clp = 'CLP',
- Cny = 'CNY',
- Cop = 'COP',
- Cou = 'COU',
- Crc = 'CRC',
- Cuc = 'CUC',
- Cup = 'CUP',
- Cve = 'CVE',
- Czk = 'CZK',
- Djf = 'DJF',
- Dkk = 'DKK',
- Dop = 'DOP',
- Dzd = 'DZD',
- Egp = 'EGP',
- Ern = 'ERN',
- Etb = 'ETB',
- Eur = 'EUR',
- Fjd = 'FJD',
- Fkp = 'FKP',
- Gbp = 'GBP',
- Gel = 'GEL',
- Ghs = 'GHS',
- Gip = 'GIP',
- Gmd = 'GMD',
- Gnf = 'GNF',
- Gtq = 'GTQ',
- Gyd = 'GYD',
- Hkd = 'HKD',
- Hnl = 'HNL',
- Hrk = 'HRK',
- Htg = 'HTG',
- Huf = 'HUF',
- Idr = 'IDR',
- Ils = 'ILS',
- Inr = 'INR',
- Iqd = 'IQD',
- Irr = 'IRR',
- Isk = 'ISK',
- Jmd = 'JMD',
- Jod = 'JOD',
- Jpy = 'JPY',
- Kes = 'KES',
- Kgs = 'KGS',
- Khr = 'KHR',
- Kmf = 'KMF',
- Kpw = 'KPW',
- Krw = 'KRW',
- Kwd = 'KWD',
- Kyd = 'KYD',
- Kzt = 'KZT',
- Lak = 'LAK',
- Lbp = 'LBP',
- Lkr = 'LKR',
- Lrd = 'LRD',
- Lsl = 'LSL',
- Lyd = 'LYD',
- Mad = 'MAD',
- Mdl = 'MDL',
- Mga = 'MGA',
- Mkd = 'MKD',
- Mmk = 'MMK',
- Mnt = 'MNT',
- Mop = 'MOP',
- Mro = 'MRO',
- Mru = 'MRU',
- Mur = 'MUR',
- Mvr = 'MVR',
- Mwk = 'MWK',
- Mxn = 'MXN',
- Mxv = 'MXV',
- Myr = 'MYR',
- Mzn = 'MZN',
- Nad = 'NAD',
- Ngn = 'NGN',
- Nio = 'NIO',
- Nok = 'NOK',
- Npr = 'NPR',
- Nzd = 'NZD',
- Omr = 'OMR',
- Pab = 'PAB',
- Pen = 'PEN',
- Pgk = 'PGK',
- Php = 'PHP',
- Pkr = 'PKR',
- Pln = 'PLN',
- Pyg = 'PYG',
- Qar = 'QAR',
- Ron = 'RON',
- Rsd = 'RSD',
- Rub = 'RUB',
- Rwf = 'RWF',
- Sar = 'SAR',
- Sbd = 'SBD',
- Scr = 'SCR',
- Sdd = 'SDD',
- Sdg = 'SDG',
- Sek = 'SEK',
- Sgd = 'SGD',
- Shp = 'SHP',
- Sll = 'SLL',
- Sos = 'SOS',
- Srd = 'SRD',
- Ssp = 'SSP',
- Std = 'STD',
- Stn = 'STN',
- Svc = 'SVC',
- Syp = 'SYP',
- Szl = 'SZL',
- Thb = 'THB',
- Tjs = 'TJS',
- Tmm = 'TMM',
- Tmt = 'TMT',
- Tnd = 'TND',
- Top = 'TOP',
- Try = 'TRY',
- Ttd = 'TTD',
- Twd = 'TWD',
- Tzs = 'TZS',
- Uah = 'UAH',
- Ugx = 'UGX',
- Usd = 'USD',
- Uyu = 'UYU',
- Uzs = 'UZS',
- Vef = 'VEF',
- Ves = 'VES',
- Vnd = 'VND',
- Vuv = 'VUV',
- Wst = 'WST',
- Xaf = 'XAF',
- Xcd = 'XCD',
- Xof = 'XOF',
- Xpf = 'XPF',
- Xsu = 'XSU',
- Xua = 'XUA',
- Yer = 'YER',
- Zar = 'ZAR',
- Zmw = 'ZMW',
- Zwl = 'ZWL'
-}
-
export type CursorPaging = {
/** Paginate after opaque cursor */
after?: InputMaybe;
@@ -420,19 +120,6 @@ export type DeleteOneRelationInput = {
id: Scalars['ID']['input'];
};
-export type Favorite = {
- __typename?: 'Favorite';
- company?: Maybe;
- companyId?: Maybe;
- id: Scalars['ID']['output'];
- person?: Maybe;
- personId?: Maybe;
- position: Scalars['Float']['output'];
- workspaceId?: Maybe;
- workspaceMember?: Maybe;
- workspaceMemberId?: Maybe;
-};
-
export type FieldConnection = {
__typename?: 'FieldConnection';
/** Array of edges. */
@@ -596,81 +283,6 @@ export type PageInfo = {
startCursor?: Maybe;
};
-export type Person = {
- __typename?: 'Person';
- ActivityTarget?: Maybe>;
- Attachment?: Maybe>;
- Favorite?: Maybe>;
- PipelineProgress?: Maybe>;
- avatarUrl?: Maybe;
- city?: Maybe;
- company?: Maybe;
- companyId?: Maybe;
- contactPipelineProgresses?: Maybe>;
- createdAt: Scalars['DateTime']['output'];
- email?: Maybe;
- firstName?: Maybe;
- id: Scalars['ID']['output'];
- jobTitle?: Maybe;
- lastName?: Maybe;
- linkedinUrl?: Maybe;
- phone?: Maybe;
- updatedAt: Scalars['DateTime']['output'];
- xUrl?: Maybe;
-};
-
-export type Pipeline = {
- __typename?: 'Pipeline';
- createdAt: Scalars['DateTime']['output'];
- currency: CurrencyCode;
- icon: Scalars['String']['output'];
- id: Scalars['ID']['output'];
- name: Scalars['String']['output'];
- pipelineProgressableType: PipelineProgressableType;
- pipelineProgresses?: Maybe>;
- pipelineStages?: Maybe>;
- updatedAt: Scalars['DateTime']['output'];
-};
-
-export type PipelineProgress = {
- __typename?: 'PipelineProgress';
- amount?: Maybe;
- closeDate?: Maybe;
- company?: Maybe;
- companyId?: Maybe;
- createdAt: Scalars['DateTime']['output'];
- id: Scalars['ID']['output'];
- person?: Maybe;
- personId?: Maybe;
- pipeline: Pipeline;
- pipelineId: Scalars['String']['output'];
- pipelineStage: PipelineStage;
- pipelineStageId: Scalars['String']['output'];
- pointOfContact?: Maybe;
- pointOfContactId?: Maybe;
- probability?: Maybe;
- updatedAt: Scalars['DateTime']['output'];
-};
-
-export enum PipelineProgressableType {
- Company = 'Company',
- Person = 'Person'
-}
-
-export type PipelineStage = {
- __typename?: 'PipelineStage';
- color: Scalars['String']['output'];
- createdAt: Scalars['DateTime']['output'];
- id: Scalars['ID']['output'];
- name: Scalars['String']['output'];
- pipeline: Pipeline;
- pipelineId: Scalars['String']['output'];
- pipelineProgresses?: Maybe>;
- position?: Maybe;
- type: Scalars['String']['output'];
- updatedAt: Scalars['DateTime']['output'];
-};
-
export type Query = {
__typename?: 'Query';
field: Field;
@@ -713,6 +325,22 @@ export type QueryRelationsArgs = {
paging?: CursorPaging;
};
+export type RefreshToken = {
+ __typename?: 'RefreshToken';
+ createdAt: Scalars['DateTime']['output'];
+ expiresAt: Scalars['DateTime']['output'];
+ id: Scalars['ID']['output'];
+ updatedAt: Scalars['DateTime']['output'];
+};
+
+export type RefreshTokenEdge = {
+ __typename?: 'RefreshTokenEdge';
+ /** Cursor for this node. */
+ cursor: Scalars['ConnectionCursor']['output'];
+ /** The node containing the RefreshToken */
+ node: RefreshToken;
+};
+
export type RelationConnection = {
__typename?: 'RelationConnection';
/** Array of edges. */
@@ -788,86 +416,49 @@ export type UpdateOneObjectInput = {
export type User = {
__typename?: 'User';
- assignedActivities?: Maybe>;
- authoredActivities?: Maybe>;
- authoredAttachments?: Maybe>;
- avatarUrl?: Maybe;
+ avatarUrl: Scalars['String']['output'];
canImpersonate: Scalars['Boolean']['output'];
- comments?: Maybe>;
- companies?: Maybe>;
createdAt: Scalars['DateTime']['output'];
- defaultWorkspaceId?: Maybe;
- disabled: Scalars['Boolean']['output'];
+ deletedAt?: Maybe;
+ disabled?: Maybe;
email: Scalars['String']['output'];
emailVerified: Scalars['Boolean']['output'];
- firstName?: Maybe;
+ firstName: Scalars['String']['output'];
id: Scalars['ID']['output'];
- lastName?: Maybe;
+ lastName: Scalars['String']['output'];
lastSeen?: Maybe;
locale: Scalars['String']['output'];
- metadata?: Maybe;
+ passwordHash?: Maybe;
phoneNumber?: Maybe;
updatedAt: Scalars['DateTime']['output'];
};
-export type UserSettings = {
- __typename?: 'UserSettings';
- WorkspaceMember?: Maybe>;
- colorScheme: ColorScheme;
- createdAt: Scalars['DateTime']['output'];
- id: Scalars['ID']['output'];
- locale: Scalars['String']['output'];
- updatedAt: Scalars['DateTime']['output'];
-};
-
-export type WebHook = {
- __typename?: 'WebHook';
- createdAt: Scalars['DateTime']['output'];
- id: Scalars['ID']['output'];
- operation: Scalars['String']['output'];
- targetUrl: Scalars['String']['output'];
- updatedAt: Scalars['DateTime']['output'];
+export type UserEdge = {
+ __typename?: 'UserEdge';
+ /** Cursor for this node. */
+ cursor: Scalars['ConnectionCursor']['output'];
+ /** The node containing the User */
+ node: User;
};
export type Workspace = {
__typename?: 'Workspace';
- Attachment?: Maybe>;
- activities?: Maybe>;
- activityTargets?: Maybe>;
- apiKeys?: Maybe>;
- comments?: Maybe>;
- companies?: Maybe>;
createdAt: Scalars['DateTime']['output'];
+ deletedAt?: Maybe;
displayName?: Maybe;
domainName?: Maybe;
id: Scalars['ID']['output'];
inviteHash?: Maybe;
logo?: Maybe;
- people?: Maybe>;
- pipelineProgresses?: Maybe>;
- pipelineStages?: Maybe>;
- pipelines?: Maybe>;
updatedAt: Scalars['DateTime']['output'];
- webHooks?: Maybe>;
- workspaceMember?: Maybe>;
};
-export type WorkspaceMember = {
- __typename?: 'WorkspaceMember';
- Favorite?: Maybe>;
- allowImpersonation: Scalars['Boolean']['output'];
- assignedActivities?: Maybe>;
- authoredActivities?: Maybe>;
- authoredAttachments?: Maybe>;
- comments?: Maybe>;
- companies?: Maybe>;
- createdAt: Scalars['DateTime']['output'];
- id: Scalars['ID']['output'];
- settings?: Maybe;
- settingsId?: Maybe;
- updatedAt: Scalars['DateTime']['output'];
- userId: Scalars['String']['output'];
- workspace: Workspace;
+export type WorkspaceEdge = {
+ __typename?: 'WorkspaceEdge';
+ /** Cursor for this node. */
+ cursor: Scalars['ConnectionCursor']['output'];
+ /** The node containing the Workspace */
+ node: Workspace;
};
export type Field = {
@@ -948,22 +539,6 @@ export type ObjectFilter = {
or?: InputMaybe>;
};
-export type RefreshTokenV2 = {
- __typename?: 'refreshTokenV2';
- createdAt: Scalars['DateTime']['output'];
- expiresAt: Scalars['DateTime']['output'];
- id: Scalars['ID']['output'];
- updatedAt: Scalars['DateTime']['output'];
-};
-
-export type RefreshTokenV2Edge = {
- __typename?: 'refreshTokenV2Edge';
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor']['output'];
- /** The node containing the refreshTokenV2 */
- node: RefreshTokenV2;
-};
-
export type Relation = {
__typename?: 'relation';
createdAt: Scalars['DateTime']['output'];
@@ -986,54 +561,6 @@ export type RelationEdge = {
node: Relation;
};
-export type UserV2 = {
- __typename?: 'userV2';
- avatarUrl: Scalars['String']['output'];
- canImpersonate: Scalars['Boolean']['output'];
- createdAt: Scalars['DateTime']['output'];
- deletedAt?: Maybe;
- disabled?: Maybe;
- email: Scalars['String']['output'];
- emailVerified: Scalars['Boolean']['output'];
- firstName: Scalars['String']['output'];
- id: Scalars['ID']['output'];
- lastName: Scalars['String']['output'];
- lastSeen?: Maybe;
- locale: Scalars['String']['output'];
- metadata?: Maybe;
- passwordHash?: Maybe;
- phoneNumber?: Maybe;
- updatedAt: Scalars['DateTime']['output'];
-};
-
-export type UserV2Edge = {
- __typename?: 'userV2Edge';
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor']['output'];
- /** The node containing the userV2 */
- node: UserV2;
-};
-
-export type WorkspaceV2 = {
- __typename?: 'workspaceV2';
- createdAt: Scalars['DateTime']['output'];
- deletedAt?: Maybe;
- displayName?: Maybe;
- domainName?: Maybe;
- id: Scalars['ID']['output'];
- inviteHash?: Maybe;
- logo?: Maybe;
- updatedAt: Scalars['DateTime']['output'];
-};
-
-export type WorkspaceV2Edge = {
- __typename?: 'workspaceV2Edge';
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor']['output'];
- /** The node containing the workspaceV2 */
- node: WorkspaceV2;
-};
-
export type CreateOneObjectMetadataItemMutationVariables = Exact<{
input: CreateOneObjectInput;
}>;
diff --git a/front/src/generated/graphql.tsx b/front/src/generated/graphql.tsx
index cd6980802..2139c4a91 100644
--- a/front/src/generated/graphql.tsx
+++ b/front/src/generated/graphql.tsx
@@ -16,615 +16,18 @@ export type Scalars = {
ConnectionCursor: any;
DateTime: string;
JSON: any;
- JSONObject: any;
Upload: any;
};
-export type Activity = {
- __typename?: 'Activity';
- activityTargets?: Maybe>;
- assignee?: Maybe;
- assigneeId?: Maybe;
- attachments?: Maybe>;
- author: User;
- authorId: Scalars['String'];
- body?: Maybe;
- comments?: Maybe>;
- completedAt?: Maybe;
- createdAt: Scalars['DateTime'];
- dueAt?: Maybe;
- id: Scalars['ID'];
- reminderAt?: Maybe;
- title?: Maybe;
- type: ActivityType;
- updatedAt: Scalars['DateTime'];
- workspaceMemberAssignee?: Maybe;
- workspaceMemberAssigneeId?: Maybe;
- workspaceMemberAuthor?: Maybe;
- workspaceMemberAuthorId?: Maybe;
-};
-
-export type ActivityCreateInput = {
- activityTargets?: InputMaybe;
- assignee?: InputMaybe;
- attachments?: InputMaybe;
- author: UserCreateNestedOneWithoutAuthoredActivitiesInput;
- body?: InputMaybe;
- comments?: InputMaybe;
- completedAt?: InputMaybe;
- createdAt?: InputMaybe;
- dueAt?: InputMaybe;
- id?: InputMaybe;
- reminderAt?: InputMaybe;
- title?: InputMaybe;
- type?: InputMaybe;
- updatedAt?: InputMaybe;
- workspaceMemberAssignee?: InputMaybe;
- workspaceMemberAuthor?: InputMaybe;
-};
-
-export type ActivityCreateNestedOneWithoutActivityTargetsInput = {
- connect?: InputMaybe;
-};
-
-export type ActivityCreateNestedOneWithoutCommentsInput = {
- connect?: InputMaybe;
-};
-
-export type ActivityListRelationFilter = {
- every?: InputMaybe;
- none?: InputMaybe;
- some?: InputMaybe;
-};
-
-export type ActivityOrderByRelationAggregateInput = {
- _count?: InputMaybe;
-};
-
-export type ActivityOrderByWithRelationInput = {
- activityTargets?: InputMaybe;
- assignee?: InputMaybe;
- assigneeId?: InputMaybe;
- attachments?: InputMaybe;
- author?: InputMaybe;
- authorId?: InputMaybe;
- body?: InputMaybe;
- comments?: InputMaybe;
- completedAt?: InputMaybe;
- createdAt?: InputMaybe;
- dueAt?: InputMaybe;
- id?: InputMaybe;
- reminderAt?: InputMaybe;
- title?: InputMaybe;
- type?: InputMaybe;
- updatedAt?: InputMaybe;
- workspaceMemberAssignee?: InputMaybe;
- workspaceMemberAssigneeId?: InputMaybe;
- workspaceMemberAuthor?: InputMaybe;
- workspaceMemberAuthorId?: InputMaybe;
-};
-
-export type ActivityRelationFilter = {
- is?: InputMaybe;
- isNot?: InputMaybe;
-};
-
-export enum ActivityScalarFieldEnum {
- AssigneeId = 'assigneeId',
- AuthorId = 'authorId',
- Body = 'body',
- CompletedAt = 'completedAt',
- CreatedAt = 'createdAt',
- DeletedAt = 'deletedAt',
- DueAt = 'dueAt',
- Id = 'id',
- ReminderAt = 'reminderAt',
- Title = 'title',
- Type = 'type',
- UpdatedAt = 'updatedAt',
- WorkspaceId = 'workspaceId',
- WorkspaceMemberAssigneeId = 'workspaceMemberAssigneeId',
- WorkspaceMemberAuthorId = 'workspaceMemberAuthorId'
-}
-
-export type ActivityTarget = {
- __typename?: 'ActivityTarget';
- activity: Activity;
- activityId: Scalars['String'];
- company?: Maybe;
- companyId?: Maybe;
- createdAt: Scalars['DateTime'];
- id: Scalars['ID'];
- person?: Maybe;
- personId?: Maybe;
- updatedAt: Scalars['DateTime'];
-};
-
-export type ActivityTargetCreateManyActivityInput = {
- companyId?: InputMaybe;
- createdAt?: InputMaybe;
- id?: InputMaybe;
- personId?: InputMaybe;
- updatedAt?: InputMaybe;
-};
-
-export type ActivityTargetCreateManyActivityInputEnvelope = {
- data: Array;
- skipDuplicates?: InputMaybe;
-};
-
-export type ActivityTargetCreateManyCompanyInput = {
- activityId: Scalars['String'];
- createdAt?: InputMaybe;
- id?: InputMaybe;
- personId?: InputMaybe;
- updatedAt?: InputMaybe;
-};
-
-export type ActivityTargetCreateManyCompanyInputEnvelope = {
- data: Array;
- skipDuplicates?: InputMaybe;
-};
-
-export type ActivityTargetCreateManyPersonInput = {
- activityId: Scalars['String'];
- companyId?: InputMaybe;
- createdAt?: InputMaybe;
- id?: InputMaybe;
- updatedAt?: InputMaybe;
-};
-
-export type ActivityTargetCreateManyPersonInputEnvelope = {
- data: Array;
- skipDuplicates?: InputMaybe;
-};
-
-export type ActivityTargetCreateManyWorkspaceInput = {
- activityId: Scalars['String'];
- companyId?: InputMaybe;
- createdAt?: InputMaybe;
- id?: InputMaybe;
- personId?: InputMaybe;
- updatedAt?: InputMaybe;
-};
-
-export type ActivityTargetCreateManyWorkspaceInputEnvelope = {
- data: Array;
- skipDuplicates?: InputMaybe;
-};
-
-export type ActivityTargetCreateNestedManyWithoutActivityInput = {
- connect?: InputMaybe>;
- connectOrCreate?: InputMaybe>;
- create?: InputMaybe>;
- createMany?: InputMaybe;
-};
-
-export type ActivityTargetCreateNestedManyWithoutCompanyInput = {
- connect?: InputMaybe>;
- connectOrCreate?: InputMaybe>;
- create?: InputMaybe>;
- createMany?: InputMaybe;
-};
-
-export type ActivityTargetCreateNestedManyWithoutPersonInput = {
- connect?: InputMaybe>;
- connectOrCreate?: InputMaybe>;
- create?: InputMaybe>;
- createMany?: InputMaybe;
-};
-
-export type ActivityTargetCreateOrConnectWithoutActivityInput = {
- create: ActivityTargetCreateWithoutActivityInput;
- where: ActivityTargetWhereUniqueInput;
-};
-
-export type ActivityTargetCreateOrConnectWithoutCompanyInput = {
- create: ActivityTargetCreateWithoutCompanyInput;
- where: ActivityTargetWhereUniqueInput;
-};
-
-export type ActivityTargetCreateOrConnectWithoutPersonInput = {
- create: ActivityTargetCreateWithoutPersonInput;
- where: ActivityTargetWhereUniqueInput;
-};
-
-export type ActivityTargetCreateOrConnectWithoutWorkspaceInput = {
- create: ActivityTargetCreateWithoutWorkspaceInput;
- where: ActivityTargetWhereUniqueInput;
-};
-
-export type ActivityTargetCreateWithoutActivityInput = {
- company?: InputMaybe;
- createdAt?: InputMaybe;
- id?: InputMaybe;
- person?: InputMaybe;
- updatedAt?: InputMaybe;
-};
-
-export type ActivityTargetCreateWithoutCompanyInput = {
- activity: ActivityCreateNestedOneWithoutActivityTargetsInput;
- createdAt?: InputMaybe;
- id?: InputMaybe;
- person?: InputMaybe;
- updatedAt?: InputMaybe;
-};
-
-export type ActivityTargetCreateWithoutPersonInput = {
- activity: ActivityCreateNestedOneWithoutActivityTargetsInput;
- company?: InputMaybe;
- createdAt?: InputMaybe;
- id?: InputMaybe;
- updatedAt?: InputMaybe;
-};
-
-export type ActivityTargetCreateWithoutWorkspaceInput = {
- activity: ActivityCreateNestedOneWithoutActivityTargetsInput;
- company?: InputMaybe