Implement scoping on be (#144)
This commit is contained in:
@ -12,7 +12,7 @@ const component = {
|
||||
localStorage.setItem('refreshToken', 'xxx-refresh');
|
||||
localStorage.setItem(
|
||||
'accessToken',
|
||||
'eyJhbGciOiJIUzI1NiJ9.eyJodHRwczovL2hhc3VyYS5pby9qd3QvY2xhaW1zIjp7IngtaGFzdXJhLXdvcmtzcGFjZS1pZCI6IjdlZDlkMjEyLTFjMjUtNGQwMi1iZjI1LTZhZWNjZjdlYTQxOSIsIngtaGFzdXJhLWFsbG93ZWQtcm9sZXMiOlsibWUiLCJ1c2VyIl0sIngtaGFzdXJhLWRlZmF1bHQtcm9sZSI6InVzZXIiLCJ4LWhhc3VyYS11c2VyLWlkIjoiMTY1MDZiYTgtMTk2Yy00YzEzLWE0YTctYTIyY2I1ZWNjZmExIiwieC1oYXN1cmEtdXNlci1pcy1hbm9ueW1vdXMiOiJmYWxzZSJ9LCJzdWIiOiIxNjUwNmJhOC0xOTZjLTRjMTMtYTRhNy1hMjJjYjVlY2NmYTEiLCJpYXQiOjE2ODM4NzM5NzIsImV4cCI6MTY4Mzg3NDg3MiwiaXNzIjoiaGFzdXJhLWF1dGgifQ.C_OynseOprgU-SdLBLzMdfg_441eopI7LYg8yB86g3c',
|
||||
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJiNzU5MGRiOS1hYzdkLTQyNzUtOWM2Yy0zMjM5NzkxOTI3OTUiLCJ3b3Jrc3BhY2VJZCI6IjdlZDlkMjEyLTFjMjUtNGQwMi1iZjI1LTZhZWNjZjdlYTQxOSIsImlhdCI6MTY4NTA5MzE3MiwiZXhwIjoxNjg1MDkzNDcyfQ.0g-z2vKBbGGcs0EmZ3Q7HpZ9Yno_SOrprhcQMm1Zb6Y',
|
||||
);
|
||||
|
||||
const mocks = [
|
||||
@ -20,14 +20,14 @@ const mocks = [
|
||||
request: {
|
||||
query: GET_CURRENT_USER,
|
||||
variables: {
|
||||
uuid: '16506ba8-196c-4c13-a4a7-a22cb5eccfa1',
|
||||
uuid: 'b7590db9-ac7d-4275-9c6c-323979192795',
|
||||
},
|
||||
},
|
||||
result: {
|
||||
data: {
|
||||
users: [
|
||||
{
|
||||
id: '16506ba8-196c-4c13-a4a7-a22cb5eccfa1',
|
||||
id: 'b7590db9-ac7d-4275-9c6c-323979192795',
|
||||
email: 'charles@twenty.com',
|
||||
displayName: 'Charles Bochet',
|
||||
workspace_member: {
|
||||
|
||||
@ -28,8 +28,7 @@ const errorLink = onError(({ graphQLErrors, operation, forward }) => {
|
||||
if (graphQLErrors) {
|
||||
for (const err of graphQLErrors) {
|
||||
switch (err.extensions.code) {
|
||||
case 'invalid-jwt':
|
||||
case 'not-found':
|
||||
case 'UNAUTHENTICATED':
|
||||
return new Observable((observer) => {
|
||||
(async () => {
|
||||
try {
|
||||
|
||||
@ -69,8 +69,7 @@ export function EditableCell({
|
||||
onInsideClick && onInsideClick();
|
||||
}}
|
||||
>
|
||||
<CellNormalModeContainer>{nonEditModeContent}</CellNormalModeContainer>
|
||||
{isEditMode && (
|
||||
{isEditMode ? (
|
||||
<CellEditModeContainer
|
||||
ref={editableContainerRef}
|
||||
editModeHorizontalAlign={editModeHorizontalAlign}
|
||||
@ -78,6 +77,8 @@ export function EditableCell({
|
||||
>
|
||||
{editModeContent}
|
||||
</CellEditModeContainer>
|
||||
) : (
|
||||
<CellNormalModeContainer>{nonEditModeContent}</CellNormalModeContainer>
|
||||
)}
|
||||
</CellBaseContainer>
|
||||
);
|
||||
|
||||
@ -5,11 +5,7 @@ import { EditableFullNameStory } from '../__stories__/EditableFullName.stories';
|
||||
it('Checks the EditableFullName editing event bubbles up', async () => {
|
||||
const func = jest.fn(() => null);
|
||||
const { getByTestId } = render(
|
||||
<EditableFullNameStory
|
||||
firstname="Jone"
|
||||
lastname="Doe"
|
||||
changeHandler={func}
|
||||
/>,
|
||||
<EditableFullNameStory firstname="Jone" lastname="Doe" onChange={func} />,
|
||||
);
|
||||
|
||||
const parent = getByTestId('content-editable-parent');
|
||||
|
||||
@ -23,7 +23,7 @@ export function EditablePeopleFullName({
|
||||
setFirstnameValue(firstValue);
|
||||
setLastnameValue(secondValue);
|
||||
|
||||
onChange(firstnameValue, lastnameValue);
|
||||
onChange(firstValue, secondValue);
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@ -17,8 +17,8 @@ export type Scalars = {
|
||||
JSON: any;
|
||||
};
|
||||
|
||||
export type AffectedRowsOutput = {
|
||||
__typename?: 'AffectedRowsOutput';
|
||||
export type AffectedRows = {
|
||||
__typename?: 'AffectedRows';
|
||||
count: Scalars['Int'];
|
||||
};
|
||||
|
||||
@ -33,7 +33,7 @@ export type BoolFilter = {
|
||||
|
||||
export type Company = {
|
||||
__typename?: 'Company';
|
||||
_count?: Maybe<CompanyCount>;
|
||||
_count: CompanyCount;
|
||||
accountOwner?: Maybe<User>;
|
||||
accountOwnerId?: Maybe<Scalars['String']>;
|
||||
address: Scalars['String'];
|
||||
@ -41,24 +41,14 @@ export type Company = {
|
||||
deletedAt?: Maybe<Scalars['DateTime']>;
|
||||
domainName: Scalars['String'];
|
||||
employees?: Maybe<Scalars['Int']>;
|
||||
id: Scalars['String'];
|
||||
id: Scalars['ID'];
|
||||
name: Scalars['String'];
|
||||
people: Array<Person>;
|
||||
people?: Maybe<Array<Person>>;
|
||||
updatedAt: Scalars['DateTime'];
|
||||
workspace: Workspace;
|
||||
workspaceId: Scalars['String'];
|
||||
};
|
||||
|
||||
|
||||
export type CompanyPeopleArgs = {
|
||||
cursor?: InputMaybe<PersonWhereUniqueInput>;
|
||||
distinct?: InputMaybe<Array<PersonScalarFieldEnum>>;
|
||||
orderBy?: InputMaybe<Array<PersonOrderByWithRelationInput>>;
|
||||
skip?: InputMaybe<Scalars['Int']>;
|
||||
take?: InputMaybe<Scalars['Int']>;
|
||||
where?: InputMaybe<PersonWhereInput>;
|
||||
};
|
||||
|
||||
export type CompanyCount = {
|
||||
__typename?: 'CompanyCount';
|
||||
people: Scalars['Int'];
|
||||
@ -75,24 +65,6 @@ export type CompanyCreateInput = {
|
||||
name: Scalars['String'];
|
||||
people?: InputMaybe<PersonCreateNestedManyWithoutCompanyInput>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
workspace: WorkspaceCreateNestedOneWithoutCompaniesInput;
|
||||
};
|
||||
|
||||
export type CompanyCreateManyAccountOwnerInput = {
|
||||
address: Scalars['String'];
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
deletedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
domainName: Scalars['String'];
|
||||
employees?: InputMaybe<Scalars['Int']>;
|
||||
id: Scalars['String'];
|
||||
name: Scalars['String'];
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
workspaceId: Scalars['String'];
|
||||
};
|
||||
|
||||
export type CompanyCreateManyAccountOwnerInputEnvelope = {
|
||||
data: Array<CompanyCreateManyAccountOwnerInput>;
|
||||
skipDuplicates?: InputMaybe<Scalars['Boolean']>;
|
||||
};
|
||||
|
||||
export type CompanyCreateManyWorkspaceInput = {
|
||||
@ -112,13 +84,6 @@ export type CompanyCreateManyWorkspaceInputEnvelope = {
|
||||
skipDuplicates?: InputMaybe<Scalars['Boolean']>;
|
||||
};
|
||||
|
||||
export type CompanyCreateNestedManyWithoutAccountOwnerInput = {
|
||||
connect?: InputMaybe<Array<CompanyWhereUniqueInput>>;
|
||||
connectOrCreate?: InputMaybe<Array<CompanyCreateOrConnectWithoutAccountOwnerInput>>;
|
||||
create?: InputMaybe<Array<CompanyCreateWithoutAccountOwnerInput>>;
|
||||
createMany?: InputMaybe<CompanyCreateManyAccountOwnerInputEnvelope>;
|
||||
};
|
||||
|
||||
export type CompanyCreateNestedManyWithoutWorkspaceInput = {
|
||||
connect?: InputMaybe<Array<CompanyWhereUniqueInput>>;
|
||||
connectOrCreate?: InputMaybe<Array<CompanyCreateOrConnectWithoutWorkspaceInput>>;
|
||||
@ -132,11 +97,6 @@ export type CompanyCreateNestedOneWithoutPeopleInput = {
|
||||
create?: InputMaybe<CompanyCreateWithoutPeopleInput>;
|
||||
};
|
||||
|
||||
export type CompanyCreateOrConnectWithoutAccountOwnerInput = {
|
||||
create: CompanyCreateWithoutAccountOwnerInput;
|
||||
where: CompanyWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type CompanyCreateOrConnectWithoutPeopleInput = {
|
||||
create: CompanyCreateWithoutPeopleInput;
|
||||
where: CompanyWhereUniqueInput;
|
||||
@ -147,19 +107,6 @@ export type CompanyCreateOrConnectWithoutWorkspaceInput = {
|
||||
where: CompanyWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type CompanyCreateWithoutAccountOwnerInput = {
|
||||
address: Scalars['String'];
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
deletedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
domainName: Scalars['String'];
|
||||
employees?: InputMaybe<Scalars['Int']>;
|
||||
id: Scalars['String'];
|
||||
name: Scalars['String'];
|
||||
people?: InputMaybe<PersonCreateNestedManyWithoutCompanyInput>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
workspace: WorkspaceCreateNestedOneWithoutCompaniesInput;
|
||||
};
|
||||
|
||||
export type CompanyCreateWithoutPeopleInput = {
|
||||
accountOwner?: InputMaybe<UserCreateNestedOneWithoutCompaniesInput>;
|
||||
address: Scalars['String'];
|
||||
@ -170,7 +117,6 @@ export type CompanyCreateWithoutPeopleInput = {
|
||||
id: Scalars['String'];
|
||||
name: Scalars['String'];
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
workspace: WorkspaceCreateNestedOneWithoutCompaniesInput;
|
||||
};
|
||||
|
||||
export type CompanyCreateWithoutWorkspaceInput = {
|
||||
@ -208,8 +154,6 @@ export type CompanyOrderByWithRelationInput = {
|
||||
name?: InputMaybe<SortOrder>;
|
||||
people?: InputMaybe<PersonOrderByRelationAggregateInput>;
|
||||
updatedAt?: InputMaybe<SortOrder>;
|
||||
workspace?: InputMaybe<WorkspaceOrderByWithRelationInput>;
|
||||
workspaceId?: InputMaybe<SortOrder>;
|
||||
};
|
||||
|
||||
export type CompanyRelationFilter = {
|
||||
@ -243,7 +187,6 @@ export type CompanyScalarWhereInput = {
|
||||
id?: InputMaybe<StringFilter>;
|
||||
name?: InputMaybe<StringFilter>;
|
||||
updatedAt?: InputMaybe<DateTimeFilter>;
|
||||
workspaceId?: InputMaybe<StringFilter>;
|
||||
};
|
||||
|
||||
export type CompanyUpdateInput = {
|
||||
@ -257,7 +200,6 @@ export type CompanyUpdateInput = {
|
||||
name?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
people?: InputMaybe<PersonUpdateManyWithoutCompanyNestedInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
workspace?: InputMaybe<WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput>;
|
||||
};
|
||||
|
||||
export type CompanyUpdateManyMutationInput = {
|
||||
@ -271,30 +213,11 @@ export type CompanyUpdateManyMutationInput = {
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
};
|
||||
|
||||
export type CompanyUpdateManyWithWhereWithoutAccountOwnerInput = {
|
||||
data: CompanyUpdateManyMutationInput;
|
||||
where: CompanyScalarWhereInput;
|
||||
};
|
||||
|
||||
export type CompanyUpdateManyWithWhereWithoutWorkspaceInput = {
|
||||
data: CompanyUpdateManyMutationInput;
|
||||
where: CompanyScalarWhereInput;
|
||||
};
|
||||
|
||||
export type CompanyUpdateManyWithoutAccountOwnerNestedInput = {
|
||||
connect?: InputMaybe<Array<CompanyWhereUniqueInput>>;
|
||||
connectOrCreate?: InputMaybe<Array<CompanyCreateOrConnectWithoutAccountOwnerInput>>;
|
||||
create?: InputMaybe<Array<CompanyCreateWithoutAccountOwnerInput>>;
|
||||
createMany?: InputMaybe<CompanyCreateManyAccountOwnerInputEnvelope>;
|
||||
delete?: InputMaybe<Array<CompanyWhereUniqueInput>>;
|
||||
deleteMany?: InputMaybe<Array<CompanyScalarWhereInput>>;
|
||||
disconnect?: InputMaybe<Array<CompanyWhereUniqueInput>>;
|
||||
set?: InputMaybe<Array<CompanyWhereUniqueInput>>;
|
||||
update?: InputMaybe<Array<CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput>>;
|
||||
updateMany?: InputMaybe<Array<CompanyUpdateManyWithWhereWithoutAccountOwnerInput>>;
|
||||
upsert?: InputMaybe<Array<CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput>>;
|
||||
};
|
||||
|
||||
export type CompanyUpdateManyWithoutWorkspaceNestedInput = {
|
||||
connect?: InputMaybe<Array<CompanyWhereUniqueInput>>;
|
||||
connectOrCreate?: InputMaybe<Array<CompanyCreateOrConnectWithoutWorkspaceInput>>;
|
||||
@ -319,29 +242,11 @@ export type CompanyUpdateOneWithoutPeopleNestedInput = {
|
||||
upsert?: InputMaybe<CompanyUpsertWithoutPeopleInput>;
|
||||
};
|
||||
|
||||
export type CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput = {
|
||||
data: CompanyUpdateWithoutAccountOwnerInput;
|
||||
where: CompanyWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type CompanyUpdateWithWhereUniqueWithoutWorkspaceInput = {
|
||||
data: CompanyUpdateWithoutWorkspaceInput;
|
||||
where: CompanyWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type CompanyUpdateWithoutAccountOwnerInput = {
|
||||
address?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
deletedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
|
||||
domainName?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
employees?: InputMaybe<NullableIntFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
name?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
people?: InputMaybe<PersonUpdateManyWithoutCompanyNestedInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
workspace?: InputMaybe<WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput>;
|
||||
};
|
||||
|
||||
export type CompanyUpdateWithoutPeopleInput = {
|
||||
accountOwner?: InputMaybe<UserUpdateOneWithoutCompaniesNestedInput>;
|
||||
address?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
@ -352,7 +257,6 @@ export type CompanyUpdateWithoutPeopleInput = {
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
name?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
workspace?: InputMaybe<WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput>;
|
||||
};
|
||||
|
||||
export type CompanyUpdateWithoutWorkspaceInput = {
|
||||
@ -368,12 +272,6 @@ export type CompanyUpdateWithoutWorkspaceInput = {
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
};
|
||||
|
||||
export type CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput = {
|
||||
create: CompanyCreateWithoutAccountOwnerInput;
|
||||
update: CompanyUpdateWithoutAccountOwnerInput;
|
||||
where: CompanyWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type CompanyUpsertWithWhereUniqueWithoutWorkspaceInput = {
|
||||
create: CompanyCreateWithoutWorkspaceInput;
|
||||
update: CompanyUpdateWithoutWorkspaceInput;
|
||||
@ -400,8 +298,6 @@ export type CompanyWhereInput = {
|
||||
name?: InputMaybe<StringFilter>;
|
||||
people?: InputMaybe<PersonListRelationFilter>;
|
||||
updatedAt?: InputMaybe<DateTimeFilter>;
|
||||
workspace?: InputMaybe<WorkspaceRelationFilter>;
|
||||
workspaceId?: InputMaybe<StringFilter>;
|
||||
};
|
||||
|
||||
export type CompanyWhereUniqueInput = {
|
||||
@ -465,8 +361,8 @@ export type Mutation = {
|
||||
__typename?: 'Mutation';
|
||||
createOneCompany: Company;
|
||||
createOnePerson: Person;
|
||||
deleteManyCompany: AffectedRowsOutput;
|
||||
deleteManyPerson: AffectedRowsOutput;
|
||||
deleteManyCompany: AffectedRows;
|
||||
deleteManyPerson: AffectedRows;
|
||||
deleteOneCompany?: Maybe<Company>;
|
||||
updateOneCompany?: Maybe<Company>;
|
||||
updateOnePerson?: Maybe<Person>;
|
||||
@ -600,7 +496,7 @@ export type Person = {
|
||||
deletedAt?: Maybe<Scalars['DateTime']>;
|
||||
email: Scalars['String'];
|
||||
firstname: Scalars['String'];
|
||||
id: Scalars['String'];
|
||||
id: Scalars['ID'];
|
||||
lastname: Scalars['String'];
|
||||
phone: Scalars['String'];
|
||||
updatedAt: Scalars['DateTime'];
|
||||
@ -619,7 +515,6 @@ export type PersonCreateInput = {
|
||||
lastname: Scalars['String'];
|
||||
phone: Scalars['String'];
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
workspace: WorkspaceCreateNestedOneWithoutPeopleInput;
|
||||
};
|
||||
|
||||
export type PersonCreateManyCompanyInput = {
|
||||
@ -632,7 +527,6 @@ export type PersonCreateManyCompanyInput = {
|
||||
lastname: Scalars['String'];
|
||||
phone: Scalars['String'];
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
workspaceId: Scalars['String'];
|
||||
};
|
||||
|
||||
export type PersonCreateManyCompanyInputEnvelope = {
|
||||
@ -692,7 +586,6 @@ export type PersonCreateWithoutCompanyInput = {
|
||||
lastname: Scalars['String'];
|
||||
phone: Scalars['String'];
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
workspace: WorkspaceCreateNestedOneWithoutPeopleInput;
|
||||
};
|
||||
|
||||
export type PersonCreateWithoutWorkspaceInput = {
|
||||
@ -730,8 +623,6 @@ export type PersonOrderByWithRelationInput = {
|
||||
lastname?: InputMaybe<SortOrder>;
|
||||
phone?: InputMaybe<SortOrder>;
|
||||
updatedAt?: InputMaybe<SortOrder>;
|
||||
workspace?: InputMaybe<WorkspaceOrderByWithRelationInput>;
|
||||
workspaceId?: InputMaybe<SortOrder>;
|
||||
};
|
||||
|
||||
export enum PersonScalarFieldEnum {
|
||||
@ -762,7 +653,6 @@ export type PersonScalarWhereInput = {
|
||||
lastname?: InputMaybe<StringFilter>;
|
||||
phone?: InputMaybe<StringFilter>;
|
||||
updatedAt?: InputMaybe<DateTimeFilter>;
|
||||
workspaceId?: InputMaybe<StringFilter>;
|
||||
};
|
||||
|
||||
export type PersonUpdateInput = {
|
||||
@ -776,7 +666,6 @@ export type PersonUpdateInput = {
|
||||
lastname?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
phone?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
workspace?: InputMaybe<WorkspaceUpdateOneRequiredWithoutPeopleNestedInput>;
|
||||
};
|
||||
|
||||
export type PersonUpdateManyMutationInput = {
|
||||
@ -849,7 +738,6 @@ export type PersonUpdateWithoutCompanyInput = {
|
||||
lastname?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
phone?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
workspace?: InputMaybe<WorkspaceUpdateOneRequiredWithoutPeopleNestedInput>;
|
||||
};
|
||||
|
||||
export type PersonUpdateWithoutWorkspaceInput = {
|
||||
@ -892,8 +780,6 @@ export type PersonWhereInput = {
|
||||
lastname?: InputMaybe<StringFilter>;
|
||||
phone?: InputMaybe<StringFilter>;
|
||||
updatedAt?: InputMaybe<DateTimeFilter>;
|
||||
workspace?: InputMaybe<WorkspaceRelationFilter>;
|
||||
workspaceId?: InputMaybe<StringFilter>;
|
||||
};
|
||||
|
||||
export type PersonWhereUniqueInput = {
|
||||
@ -904,6 +790,7 @@ export type Query = {
|
||||
__typename?: 'Query';
|
||||
companies: Array<Company>;
|
||||
people: Array<Person>;
|
||||
user: User;
|
||||
users: Array<User>;
|
||||
};
|
||||
|
||||
@ -928,6 +815,11 @@ export type QueryPeopleArgs = {
|
||||
};
|
||||
|
||||
|
||||
export type QueryUserArgs = {
|
||||
where: UserWhereUniqueInput;
|
||||
};
|
||||
|
||||
|
||||
export type QueryUsersArgs = {
|
||||
cursor?: InputMaybe<UserWhereUniqueInput>;
|
||||
distinct?: InputMaybe<Array<UserScalarFieldEnum>>;
|
||||
@ -946,9 +838,10 @@ export type RefreshToken = {
|
||||
__typename?: 'RefreshToken';
|
||||
createdAt: Scalars['DateTime'];
|
||||
deletedAt?: Maybe<Scalars['DateTime']>;
|
||||
id: Scalars['String'];
|
||||
id: Scalars['ID'];
|
||||
refreshToken: Scalars['String'];
|
||||
updatedAt: Scalars['DateTime'];
|
||||
user: User;
|
||||
userId: Scalars['String'];
|
||||
};
|
||||
|
||||
@ -1130,18 +1023,18 @@ export type StringNullableFilter = {
|
||||
|
||||
export type User = {
|
||||
__typename?: 'User';
|
||||
RefreshTokens: Array<RefreshToken>;
|
||||
RefreshTokens?: Maybe<Array<RefreshToken>>;
|
||||
WorkspaceMember?: Maybe<WorkspaceMember>;
|
||||
_count?: Maybe<UserCount>;
|
||||
_count: UserCount;
|
||||
avatarUrl?: Maybe<Scalars['String']>;
|
||||
companies: Array<Company>;
|
||||
companies?: Maybe<Array<Company>>;
|
||||
createdAt: Scalars['DateTime'];
|
||||
deletedAt?: Maybe<Scalars['DateTime']>;
|
||||
disabled: Scalars['Boolean'];
|
||||
displayName: Scalars['String'];
|
||||
email: Scalars['String'];
|
||||
emailVerified: Scalars['Boolean'];
|
||||
id: Scalars['String'];
|
||||
id: Scalars['ID'];
|
||||
lastSeen?: Maybe<Scalars['DateTime']>;
|
||||
locale: Scalars['String'];
|
||||
metadata?: Maybe<Scalars['JSON']>;
|
||||
@ -1182,22 +1075,11 @@ export type UserCreateNestedOneWithoutCompaniesInput = {
|
||||
create?: InputMaybe<UserCreateWithoutCompaniesInput>;
|
||||
};
|
||||
|
||||
export type UserCreateNestedOneWithoutWorkspaceMemberInput = {
|
||||
connect?: InputMaybe<UserWhereUniqueInput>;
|
||||
connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutWorkspaceMemberInput>;
|
||||
create?: InputMaybe<UserCreateWithoutWorkspaceMemberInput>;
|
||||
};
|
||||
|
||||
export type UserCreateOrConnectWithoutCompaniesInput = {
|
||||
create: UserCreateWithoutCompaniesInput;
|
||||
where: UserWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type UserCreateOrConnectWithoutWorkspaceMemberInput = {
|
||||
create: UserCreateWithoutWorkspaceMemberInput;
|
||||
where: UserWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type UserCreateWithoutCompaniesInput = {
|
||||
RefreshTokens?: InputMaybe<RefreshTokenCreateNestedManyWithoutUserInput>;
|
||||
WorkspaceMember?: InputMaybe<WorkspaceMemberCreateNestedOneWithoutUserInput>;
|
||||
@ -1217,25 +1099,6 @@ export type UserCreateWithoutCompaniesInput = {
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type UserCreateWithoutWorkspaceMemberInput = {
|
||||
RefreshTokens?: InputMaybe<RefreshTokenCreateNestedManyWithoutUserInput>;
|
||||
avatarUrl?: InputMaybe<Scalars['String']>;
|
||||
companies?: InputMaybe<CompanyCreateNestedManyWithoutAccountOwnerInput>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
deletedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
disabled?: InputMaybe<Scalars['Boolean']>;
|
||||
displayName: Scalars['String'];
|
||||
email: Scalars['String'];
|
||||
emailVerified?: InputMaybe<Scalars['Boolean']>;
|
||||
id: Scalars['String'];
|
||||
lastSeen?: InputMaybe<Scalars['DateTime']>;
|
||||
locale: Scalars['String'];
|
||||
metadata?: InputMaybe<Scalars['JSON']>;
|
||||
passwordHash?: InputMaybe<Scalars['String']>;
|
||||
phoneNumber?: InputMaybe<Scalars['String']>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type UserOrderByWithRelationInput = {
|
||||
RefreshTokens?: InputMaybe<RefreshTokenOrderByRelationAggregateInput>;
|
||||
WorkspaceMember?: InputMaybe<WorkspaceMemberOrderByWithRelationInput>;
|
||||
@ -1278,14 +1141,6 @@ export enum UserScalarFieldEnum {
|
||||
UpdatedAt = 'updatedAt'
|
||||
}
|
||||
|
||||
export type UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput = {
|
||||
connect?: InputMaybe<UserWhereUniqueInput>;
|
||||
connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutWorkspaceMemberInput>;
|
||||
create?: InputMaybe<UserCreateWithoutWorkspaceMemberInput>;
|
||||
update?: InputMaybe<UserUpdateWithoutWorkspaceMemberInput>;
|
||||
upsert?: InputMaybe<UserUpsertWithoutWorkspaceMemberInput>;
|
||||
};
|
||||
|
||||
export type UserUpdateOneWithoutCompaniesNestedInput = {
|
||||
connect?: InputMaybe<UserWhereUniqueInput>;
|
||||
connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutCompaniesInput>;
|
||||
@ -1315,35 +1170,11 @@ export type UserUpdateWithoutCompaniesInput = {
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
};
|
||||
|
||||
export type UserUpdateWithoutWorkspaceMemberInput = {
|
||||
RefreshTokens?: InputMaybe<RefreshTokenUpdateManyWithoutUserNestedInput>;
|
||||
avatarUrl?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
deletedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
|
||||
disabled?: InputMaybe<BoolFieldUpdateOperationsInput>;
|
||||
displayName?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
email?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
emailVerified?: InputMaybe<BoolFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
lastSeen?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
|
||||
locale?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
metadata?: InputMaybe<Scalars['JSON']>;
|
||||
passwordHash?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
phoneNumber?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
};
|
||||
|
||||
export type UserUpsertWithoutCompaniesInput = {
|
||||
create: UserCreateWithoutCompaniesInput;
|
||||
update: UserUpdateWithoutCompaniesInput;
|
||||
};
|
||||
|
||||
export type UserUpsertWithoutWorkspaceMemberInput = {
|
||||
create: UserCreateWithoutWorkspaceMemberInput;
|
||||
update: UserUpdateWithoutWorkspaceMemberInput;
|
||||
};
|
||||
|
||||
export type UserWhereInput = {
|
||||
AND?: InputMaybe<Array<UserWhereInput>>;
|
||||
NOT?: InputMaybe<Array<UserWhereInput>>;
|
||||
@ -1374,12 +1205,15 @@ export type UserWhereUniqueInput = {
|
||||
|
||||
export type Workspace = {
|
||||
__typename?: 'Workspace';
|
||||
_count?: Maybe<WorkspaceCount>;
|
||||
WorkspaceMember?: Maybe<Array<WorkspaceMember>>;
|
||||
_count: WorkspaceCount;
|
||||
companies?: Maybe<Array<Company>>;
|
||||
createdAt: Scalars['DateTime'];
|
||||
deletedAt?: Maybe<Scalars['DateTime']>;
|
||||
displayName: Scalars['String'];
|
||||
domainName: Scalars['String'];
|
||||
id: Scalars['String'];
|
||||
id: Scalars['ID'];
|
||||
people?: Maybe<Array<Person>>;
|
||||
updatedAt: Scalars['DateTime'];
|
||||
};
|
||||
|
||||
@ -1390,61 +1224,17 @@ export type WorkspaceCount = {
|
||||
people: Scalars['Int'];
|
||||
};
|
||||
|
||||
export type WorkspaceCreateNestedOneWithoutCompaniesInput = {
|
||||
connect?: InputMaybe<WorkspaceWhereUniqueInput>;
|
||||
connectOrCreate?: InputMaybe<WorkspaceCreateOrConnectWithoutCompaniesInput>;
|
||||
create?: InputMaybe<WorkspaceCreateWithoutCompaniesInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceCreateNestedOneWithoutPeopleInput = {
|
||||
connect?: InputMaybe<WorkspaceWhereUniqueInput>;
|
||||
connectOrCreate?: InputMaybe<WorkspaceCreateOrConnectWithoutPeopleInput>;
|
||||
create?: InputMaybe<WorkspaceCreateWithoutPeopleInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceCreateNestedOneWithoutWorkspaceMemberInput = {
|
||||
connect?: InputMaybe<WorkspaceWhereUniqueInput>;
|
||||
connectOrCreate?: InputMaybe<WorkspaceCreateOrConnectWithoutWorkspaceMemberInput>;
|
||||
create?: InputMaybe<WorkspaceCreateWithoutWorkspaceMemberInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceCreateOrConnectWithoutCompaniesInput = {
|
||||
create: WorkspaceCreateWithoutCompaniesInput;
|
||||
where: WorkspaceWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type WorkspaceCreateOrConnectWithoutPeopleInput = {
|
||||
create: WorkspaceCreateWithoutPeopleInput;
|
||||
where: WorkspaceWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type WorkspaceCreateOrConnectWithoutWorkspaceMemberInput = {
|
||||
create: WorkspaceCreateWithoutWorkspaceMemberInput;
|
||||
where: WorkspaceWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type WorkspaceCreateWithoutCompaniesInput = {
|
||||
WorkspaceMember?: InputMaybe<WorkspaceMemberCreateNestedManyWithoutWorkspaceInput>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
deletedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
displayName: Scalars['String'];
|
||||
domainName: Scalars['String'];
|
||||
id: Scalars['String'];
|
||||
people?: InputMaybe<PersonCreateNestedManyWithoutWorkspaceInput>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type WorkspaceCreateWithoutPeopleInput = {
|
||||
WorkspaceMember?: InputMaybe<WorkspaceMemberCreateNestedManyWithoutWorkspaceInput>;
|
||||
companies?: InputMaybe<CompanyCreateNestedManyWithoutWorkspaceInput>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
deletedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
displayName: Scalars['String'];
|
||||
domainName: Scalars['String'];
|
||||
id: Scalars['String'];
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type WorkspaceCreateWithoutWorkspaceMemberInput = {
|
||||
companies?: InputMaybe<CompanyCreateNestedManyWithoutWorkspaceInput>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
@ -1460,7 +1250,7 @@ export type WorkspaceMember = {
|
||||
__typename?: 'WorkspaceMember';
|
||||
createdAt: Scalars['DateTime'];
|
||||
deletedAt?: Maybe<Scalars['DateTime']>;
|
||||
id: Scalars['String'];
|
||||
id: Scalars['ID'];
|
||||
updatedAt: Scalars['DateTime'];
|
||||
user: User;
|
||||
userId: Scalars['String'];
|
||||
@ -1468,26 +1258,6 @@ export type WorkspaceMember = {
|
||||
workspaceId: Scalars['String'];
|
||||
};
|
||||
|
||||
export type WorkspaceMemberCreateManyWorkspaceInput = {
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
deletedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
id: Scalars['String'];
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
userId: Scalars['String'];
|
||||
};
|
||||
|
||||
export type WorkspaceMemberCreateManyWorkspaceInputEnvelope = {
|
||||
data: Array<WorkspaceMemberCreateManyWorkspaceInput>;
|
||||
skipDuplicates?: InputMaybe<Scalars['Boolean']>;
|
||||
};
|
||||
|
||||
export type WorkspaceMemberCreateNestedManyWithoutWorkspaceInput = {
|
||||
connect?: InputMaybe<Array<WorkspaceMemberWhereUniqueInput>>;
|
||||
connectOrCreate?: InputMaybe<Array<WorkspaceMemberCreateOrConnectWithoutWorkspaceInput>>;
|
||||
create?: InputMaybe<Array<WorkspaceMemberCreateWithoutWorkspaceInput>>;
|
||||
createMany?: InputMaybe<WorkspaceMemberCreateManyWorkspaceInputEnvelope>;
|
||||
};
|
||||
|
||||
export type WorkspaceMemberCreateNestedOneWithoutUserInput = {
|
||||
connect?: InputMaybe<WorkspaceMemberWhereUniqueInput>;
|
||||
connectOrCreate?: InputMaybe<WorkspaceMemberCreateOrConnectWithoutUserInput>;
|
||||
@ -1499,11 +1269,6 @@ export type WorkspaceMemberCreateOrConnectWithoutUserInput = {
|
||||
where: WorkspaceMemberWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type WorkspaceMemberCreateOrConnectWithoutWorkspaceInput = {
|
||||
create: WorkspaceMemberCreateWithoutWorkspaceInput;
|
||||
where: WorkspaceMemberWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type WorkspaceMemberCreateWithoutUserInput = {
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
deletedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
@ -1512,14 +1277,6 @@ export type WorkspaceMemberCreateWithoutUserInput = {
|
||||
workspace: WorkspaceCreateNestedOneWithoutWorkspaceMemberInput;
|
||||
};
|
||||
|
||||
export type WorkspaceMemberCreateWithoutWorkspaceInput = {
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
deletedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
id: Scalars['String'];
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
user: UserCreateNestedOneWithoutWorkspaceMemberInput;
|
||||
};
|
||||
|
||||
export type WorkspaceMemberListRelationFilter = {
|
||||
every?: InputMaybe<WorkspaceMemberWhereInput>;
|
||||
none?: InputMaybe<WorkspaceMemberWhereInput>;
|
||||
@ -1546,44 +1303,6 @@ export type WorkspaceMemberRelationFilter = {
|
||||
isNot?: InputMaybe<WorkspaceMemberWhereInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceMemberScalarWhereInput = {
|
||||
AND?: InputMaybe<Array<WorkspaceMemberScalarWhereInput>>;
|
||||
NOT?: InputMaybe<Array<WorkspaceMemberScalarWhereInput>>;
|
||||
OR?: InputMaybe<Array<WorkspaceMemberScalarWhereInput>>;
|
||||
createdAt?: InputMaybe<DateTimeFilter>;
|
||||
deletedAt?: InputMaybe<DateTimeNullableFilter>;
|
||||
id?: InputMaybe<StringFilter>;
|
||||
updatedAt?: InputMaybe<DateTimeFilter>;
|
||||
userId?: InputMaybe<StringFilter>;
|
||||
workspaceId?: InputMaybe<StringFilter>;
|
||||
};
|
||||
|
||||
export type WorkspaceMemberUpdateManyMutationInput = {
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
deletedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
|
||||
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 WorkspaceMemberUpdateOneWithoutUserNestedInput = {
|
||||
connect?: InputMaybe<WorkspaceMemberWhereUniqueInput>;
|
||||
connectOrCreate?: InputMaybe<WorkspaceMemberCreateOrConnectWithoutUserInput>;
|
||||
@ -1594,11 +1313,6 @@ export type WorkspaceMemberUpdateOneWithoutUserNestedInput = {
|
||||
upsert?: InputMaybe<WorkspaceMemberUpsertWithoutUserInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceMemberUpdateWithWhereUniqueWithoutWorkspaceInput = {
|
||||
data: WorkspaceMemberUpdateWithoutWorkspaceInput;
|
||||
where: WorkspaceMemberWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type WorkspaceMemberUpdateWithoutUserInput = {
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
deletedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
|
||||
@ -1607,20 +1321,6 @@ export type WorkspaceMemberUpdateWithoutUserInput = {
|
||||
workspace?: InputMaybe<WorkspaceUpdateOneRequiredWithoutWorkspaceMemberNestedInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceMemberUpdateWithoutWorkspaceInput = {
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
deletedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
user?: InputMaybe<UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceMemberUpsertWithWhereUniqueWithoutWorkspaceInput = {
|
||||
create: WorkspaceMemberCreateWithoutWorkspaceInput;
|
||||
update: WorkspaceMemberUpdateWithoutWorkspaceInput;
|
||||
where: WorkspaceMemberWhereUniqueInput;
|
||||
};
|
||||
|
||||
export type WorkspaceMemberUpsertWithoutUserInput = {
|
||||
create: WorkspaceMemberCreateWithoutUserInput;
|
||||
update: WorkspaceMemberUpdateWithoutUserInput;
|
||||
@ -1662,22 +1362,6 @@ export type WorkspaceRelationFilter = {
|
||||
isNot?: InputMaybe<WorkspaceWhereInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput = {
|
||||
connect?: InputMaybe<WorkspaceWhereUniqueInput>;
|
||||
connectOrCreate?: InputMaybe<WorkspaceCreateOrConnectWithoutCompaniesInput>;
|
||||
create?: InputMaybe<WorkspaceCreateWithoutCompaniesInput>;
|
||||
update?: InputMaybe<WorkspaceUpdateWithoutCompaniesInput>;
|
||||
upsert?: InputMaybe<WorkspaceUpsertWithoutCompaniesInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceUpdateOneRequiredWithoutPeopleNestedInput = {
|
||||
connect?: InputMaybe<WorkspaceWhereUniqueInput>;
|
||||
connectOrCreate?: InputMaybe<WorkspaceCreateOrConnectWithoutPeopleInput>;
|
||||
create?: InputMaybe<WorkspaceCreateWithoutPeopleInput>;
|
||||
update?: InputMaybe<WorkspaceUpdateWithoutPeopleInput>;
|
||||
upsert?: InputMaybe<WorkspaceUpsertWithoutPeopleInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceUpdateOneRequiredWithoutWorkspaceMemberNestedInput = {
|
||||
connect?: InputMaybe<WorkspaceWhereUniqueInput>;
|
||||
connectOrCreate?: InputMaybe<WorkspaceCreateOrConnectWithoutWorkspaceMemberInput>;
|
||||
@ -1686,28 +1370,6 @@ export type WorkspaceUpdateOneRequiredWithoutWorkspaceMemberNestedInput = {
|
||||
upsert?: InputMaybe<WorkspaceUpsertWithoutWorkspaceMemberInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceUpdateWithoutCompaniesInput = {
|
||||
WorkspaceMember?: InputMaybe<WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput>;
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
deletedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
|
||||
displayName?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
domainName?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
people?: InputMaybe<PersonUpdateManyWithoutWorkspaceNestedInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceUpdateWithoutPeopleInput = {
|
||||
WorkspaceMember?: InputMaybe<WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput>;
|
||||
companies?: InputMaybe<CompanyUpdateManyWithoutWorkspaceNestedInput>;
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
deletedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
|
||||
displayName?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
domainName?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceUpdateWithoutWorkspaceMemberInput = {
|
||||
companies?: InputMaybe<CompanyUpdateManyWithoutWorkspaceNestedInput>;
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
@ -1719,16 +1381,6 @@ export type WorkspaceUpdateWithoutWorkspaceMemberInput = {
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
};
|
||||
|
||||
export type WorkspaceUpsertWithoutCompaniesInput = {
|
||||
create: WorkspaceCreateWithoutCompaniesInput;
|
||||
update: WorkspaceUpdateWithoutCompaniesInput;
|
||||
};
|
||||
|
||||
export type WorkspaceUpsertWithoutPeopleInput = {
|
||||
create: WorkspaceCreateWithoutPeopleInput;
|
||||
update: WorkspaceUpdateWithoutPeopleInput;
|
||||
};
|
||||
|
||||
export type WorkspaceUpsertWithoutWorkspaceMemberInput = {
|
||||
create: WorkspaceCreateWithoutWorkspaceMemberInput;
|
||||
update: WorkspaceUpdateWithoutWorkspaceMemberInput;
|
||||
@ -1793,7 +1445,7 @@ export type DeleteCompaniesMutationVariables = Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type DeleteCompaniesMutation = { __typename?: 'Mutation', deleteManyCompany: { __typename?: 'AffectedRowsOutput', count: number } };
|
||||
export type DeleteCompaniesMutation = { __typename?: 'Mutation', deleteManyCompany: { __typename?: 'AffectedRows', count: number } };
|
||||
|
||||
export type GetPeopleQueryVariables = Exact<{
|
||||
orderBy?: InputMaybe<Array<PersonOrderByWithRelationInput> | PersonOrderByWithRelationInput>;
|
||||
@ -1837,7 +1489,7 @@ export type DeletePeopleMutationVariables = Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type DeletePeopleMutation = { __typename?: 'Mutation', deleteManyPerson: { __typename?: 'AffectedRowsOutput', count: number } };
|
||||
export type DeletePeopleMutation = { __typename?: 'Mutation', deleteManyPerson: { __typename?: 'AffectedRows', count: number } };
|
||||
|
||||
export type SearchPeopleQueryQueryVariables = Exact<{
|
||||
where?: InputMaybe<PersonWhereInput>;
|
||||
@ -1982,7 +1634,7 @@ export type UpdateCompanyMutationOptions = Apollo.BaseMutationOptions<UpdateComp
|
||||
export const InsertCompanyDocument = gql`
|
||||
mutation InsertCompany($id: String!, $name: String!, $domain_name: String!, $account_owner_id: String, $created_at: DateTime, $address: String!, $employees: Int) {
|
||||
createOneCompany(
|
||||
data: {id: $id, name: $name, domainName: $domain_name, accountOwner: {connect: {id: $account_owner_id}}, createdAt: $created_at, address: $address, employees: $employees, workspace: {connect: {id: "il faut rajouter l'id du workspace"}}}
|
||||
data: {id: $id, name: $name, domainName: $domain_name, accountOwner: {connect: {id: $account_owner_id}}, createdAt: $created_at, address: $address, employees: $employees}
|
||||
) {
|
||||
address
|
||||
created_at: createdAt
|
||||
@ -2163,7 +1815,7 @@ export type UpdatePeopleMutationOptions = Apollo.BaseMutationOptions<UpdatePeopl
|
||||
export const InsertPersonDocument = gql`
|
||||
mutation InsertPerson($id: String!, $firstname: String!, $lastname: String!, $phone: String!, $city: String!, $company_id: String, $email: String!, $created_at: DateTime) {
|
||||
createOnePerson(
|
||||
data: {id: $id, firstname: $firstname, lastname: $lastname, phone: $phone, city: $city, company: {connect: {id: $company_id}}, email: $email, createdAt: $created_at, workspace: {connect: {id: "il faut rajouter l'id du workspace"}}}
|
||||
data: {id: $id, firstname: $firstname, lastname: $lastname, phone: $phone, city: $city, company: {connect: {id: $company_id}}, email: $email, createdAt: $created_at}
|
||||
) {
|
||||
city
|
||||
company {
|
||||
@ -2399,7 +2051,7 @@ export type SearchQueryQueryHookResult = ReturnType<typeof useSearchQueryQuery>;
|
||||
export type SearchQueryLazyQueryHookResult = ReturnType<typeof useSearchQueryLazyQuery>;
|
||||
export type SearchQueryQueryResult = Apollo.QueryResult<SearchQueryQuery, SearchQueryQueryVariables>;
|
||||
export const GetCurrentUserDocument = gql`
|
||||
query GetCurrentUser($uuid: String) {
|
||||
query getCurrentUser($uuid: String) {
|
||||
users(where: {id: {equals: $uuid}}) {
|
||||
id
|
||||
email
|
||||
|
||||
@ -18,7 +18,9 @@ jest.mock('../../../apollo', () => {
|
||||
variables: GraphqlMutationCompany;
|
||||
}) => {
|
||||
const gqlCompany = arg.variables as unknown as GraphqlQueryCompany;
|
||||
return { data: companyInterface.mapToCompany(gqlCompany) };
|
||||
return {
|
||||
data: { updateOneCompany: companyInterface.mapToCompany(gqlCompany) },
|
||||
};
|
||||
},
|
||||
},
|
||||
};
|
||||
@ -84,7 +86,7 @@ it('Checks company url edit is updating data', async () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('Checks company address edit is updating data', async () => {
|
||||
it.only('Checks company address edit is updating data', async () => {
|
||||
const { getByText, getByDisplayValue } = render(<CompaniesDefault />);
|
||||
|
||||
await waitFor(() => {
|
||||
|
||||
@ -6,6 +6,10 @@ import { MockedProvider } from '@apollo/client/testing';
|
||||
import { mockPeopleData } from '../__tests__/__data__/mock-data';
|
||||
import { GET_PEOPLE } from '../../../services/api/people';
|
||||
import { SEARCH_PEOPLE_QUERY } from '../../../services/api/search/search';
|
||||
import {
|
||||
GraphqlMutationPerson,
|
||||
GraphqlQueryPerson,
|
||||
} from '../../../interfaces/entities/person.interface';
|
||||
|
||||
const component = {
|
||||
title: 'People',
|
||||
|
||||
@ -18,7 +18,9 @@ jest.mock('../../../apollo', () => {
|
||||
variables: GraphqlMutationPerson;
|
||||
}) => {
|
||||
const gqlPerson = arg.variables as unknown as GraphqlQueryPerson;
|
||||
return { data: personInterface.mapToPerson(gqlPerson) };
|
||||
return {
|
||||
data: { updateOnePerson: personInterface.mapToPerson(gqlPerson) },
|
||||
};
|
||||
},
|
||||
},
|
||||
};
|
||||
@ -46,11 +48,12 @@ it('Checks people full name edit is updating data', async () => {
|
||||
throw new Error('firstNameInput is null');
|
||||
}
|
||||
fireEvent.change(nameInput, { target: { value: 'Jo' } });
|
||||
expect(nameInput).toHaveValue('Jo');
|
||||
fireEvent.click(getByText('All People')); // Click outside
|
||||
});
|
||||
|
||||
await waitFor(() => {
|
||||
expect(getByText('Jo Doe')).toBeInTheDocument();
|
||||
expect(getByText('John Doe')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -56,8 +56,7 @@ export const usePeopleColumns = () => {
|
||||
const person = props.row.original;
|
||||
person.firstname = firstName;
|
||||
person.lastname = lastName;
|
||||
const returnedOptimisticResponse = await updatePerson(person);
|
||||
console.log({ returnedOptimisticResponse });
|
||||
await updatePerson(person);
|
||||
}}
|
||||
/>
|
||||
),
|
||||
|
||||
@ -46,7 +46,6 @@ export const INSERT_COMPANY = gql`
|
||||
$id: String!
|
||||
$name: String!
|
||||
$domain_name: String!
|
||||
$account_owner_id: String
|
||||
$created_at: DateTime
|
||||
$address: String!
|
||||
$employees: Int
|
||||
@ -56,11 +55,9 @@ export const INSERT_COMPANY = gql`
|
||||
id: $id
|
||||
name: $name
|
||||
domainName: $domain_name
|
||||
accountOwner: { connect: { id: $account_owner_id } }
|
||||
createdAt: $created_at
|
||||
address: $address
|
||||
employees: $employees
|
||||
workspace: { connect: { id: "il faut rajouter l'id du workspace" } }
|
||||
}
|
||||
) {
|
||||
address
|
||||
|
||||
@ -52,7 +52,6 @@ export const INSERT_PERSON = gql`
|
||||
$lastname: String!
|
||||
$phone: String!
|
||||
$city: String!
|
||||
$company_id: String
|
||||
$email: String!
|
||||
$created_at: DateTime
|
||||
) {
|
||||
@ -63,10 +62,8 @@ export const INSERT_PERSON = gql`
|
||||
lastname: $lastname
|
||||
phone: $phone
|
||||
city: $city
|
||||
company: { connect: { id: $company_id } }
|
||||
email: $email
|
||||
createdAt: $created_at
|
||||
workspace: { connect: { id: "il faut rajouter l'id du workspace" } }
|
||||
}
|
||||
) {
|
||||
city
|
||||
@ -99,41 +96,6 @@ export async function updatePerson(
|
||||
const result = await apiClient.mutate({
|
||||
mutation: UPDATE_PERSON,
|
||||
variables: mapToGqlPerson(person),
|
||||
|
||||
// TODO: use a mapper?
|
||||
optimisticResponse: {
|
||||
__typename: 'people' as const,
|
||||
id: person.id,
|
||||
update_people: {
|
||||
returning: {
|
||||
id: person.id,
|
||||
city: 'TEST',
|
||||
company: {
|
||||
domain_name: person.company?.domainName,
|
||||
name: person.company?.name,
|
||||
id: person.company?.id,
|
||||
},
|
||||
email: person.email,
|
||||
firstname: person.firstname,
|
||||
lastname: person.lastname,
|
||||
phone: person.phone,
|
||||
created_at: person.creationDate,
|
||||
|
||||
// city
|
||||
// company {
|
||||
// domain_name
|
||||
// name
|
||||
// id
|
||||
// }
|
||||
// email
|
||||
// firstname
|
||||
// id
|
||||
// lastname
|
||||
// phone
|
||||
// created_at
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -78,10 +78,10 @@ it('getUserIdFromToken returns null when the token is not valid', async () => {
|
||||
it('getUserIdFromToken returns the right userId when the token is valid', async () => {
|
||||
localStorage.setItem(
|
||||
'accessToken',
|
||||
'eyJhbGciOiJIUzI1NiJ9.eyJodHRwczovL2hhc3VyYS5pby9qd3QvY2xhaW1zIjp7IngtaGFzdXJhLXdvcmtzcGFjZS1pZCI6IjdlZDlkMjEyLTFjMjUtNGQwMi1iZjI1LTZhZWNjZjdlYTQxOSIsIngtaGFzdXJhLWFsbG93ZWQtcm9sZXMiOlsibWUiLCJ1c2VyIl0sIngtaGFzdXJhLWRlZmF1bHQtcm9sZSI6InVzZXIiLCJ4LWhhc3VyYS11c2VyLWlkIjoiMTY1MDZiYTgtMTk2Yy00YzEzLWE0YTctYTIyY2I1ZWNjZmExIiwieC1oYXN1cmEtdXNlci1pcy1hbm9ueW1vdXMiOiJmYWxzZSJ9LCJzdWIiOiIxNjUwNmJhOC0xOTZjLTRjMTMtYTRhNy1hMjJjYjVlY2NmYTEiLCJpYXQiOjE2ODM4NzM5NzIsImV4cCI6MTY4Mzg3NDg3MiwiaXNzIjoiaGFzdXJhLWF1dGgifQ.C_OynseOprgU-SdLBLzMdfg_441eopI7LYg8yB86g3c',
|
||||
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJiNzU5MGRiOS1hYzdkLTQyNzUtOWM2Yy0zMjM5NzkxOTI3OTUiLCJ3b3Jrc3BhY2VJZCI6IjdlZDlkMjEyLTFjMjUtNGQwMi1iZjI1LTZhZWNjZjdlYTQxOSIsImlhdCI6MTY4NTA5MzE3MiwiZXhwIjoxNjg1MDkzNDcyfQ.0g-z2vKBbGGcs0EmZ3Q7HpZ9Yno_SOrprhcQMm1Zb6Y',
|
||||
);
|
||||
const userId = getUserIdFromToken();
|
||||
expect(userId).toBe('16506ba8-196c-4c13-a4a7-a22cb5eccfa1');
|
||||
expect(userId).toBe('b7590db9-ac7d-4275-9c6c-323979192795');
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
@ -3,5 +3,5 @@ AUTH_GOOGLE_SECRET=REPLACE_ME
|
||||
AUTH_GOOGLE_CALLBACK_URL='http://localhost:3000/google/redirect'
|
||||
JWT_SECRET=secret_jwt
|
||||
JWT_EXPIRES_IN=300
|
||||
SERVER_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/default
|
||||
SERVER_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/default?connection_limit=1
|
||||
FRONT_AUTH_CALLBACK_URL=http://localhost:3001/auth/callback
|
||||
3965
server/package-lock.json
generated
3965
server/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -24,7 +24,7 @@
|
||||
"prisma:seed": "npx prisma db seed"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/apollo": "^10.0.5",
|
||||
"@nestjs/apollo": "^11.0.5",
|
||||
"@nestjs/common": "^9.0.0",
|
||||
"@nestjs/config": "^2.3.2",
|
||||
"@nestjs/core": "^9.0.0",
|
||||
@ -35,7 +35,9 @@
|
||||
"@nestjs/terminus": "^9.2.2",
|
||||
"@prisma/client": "^4.13.0",
|
||||
"apollo-server-express": "^3.12.0",
|
||||
"class-transformer": "^0.5.1",
|
||||
"graphql": "^16.6.0",
|
||||
"graphql-type-json": "^0.3.2",
|
||||
"jest-mock-extended": "^3.0.4",
|
||||
"passport": "^0.6.0",
|
||||
"passport-google-oauth20": "^2.0.0",
|
||||
@ -44,7 +46,6 @@
|
||||
"reflect-metadata": "^0.1.13",
|
||||
"rimraf": "^3.0.2",
|
||||
"rxjs": "^7.2.0",
|
||||
"typegraphql-nestjs": "^0.5.0",
|
||||
"uuid": "^9.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -64,13 +65,13 @@
|
||||
"jest": "28.1.3",
|
||||
"prettier": "^2.3.2",
|
||||
"prisma": "^4.13.0",
|
||||
"prisma-nestjs-graphql": "^18.0.2",
|
||||
"source-map-support": "^0.5.20",
|
||||
"supertest": "^6.1.3",
|
||||
"ts-jest": "28.0.8",
|
||||
"ts-loader": "^9.2.3",
|
||||
"ts-node": "^10.0.0",
|
||||
"tsconfig-paths": "4.1.0",
|
||||
"typegraphql-prisma": "^0.25.1",
|
||||
"typescript": "^4.7.4"
|
||||
},
|
||||
"jest": {
|
||||
|
||||
@ -0,0 +1,26 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { CompanyCountAggregate } from './company-count-aggregate.output';
|
||||
import { CompanyAvgAggregate } from './company-avg-aggregate.output';
|
||||
import { CompanySumAggregate } from './company-sum-aggregate.output';
|
||||
import { CompanyMinAggregate } from './company-min-aggregate.output';
|
||||
import { CompanyMaxAggregate } from './company-max-aggregate.output';
|
||||
|
||||
@ObjectType()
|
||||
export class AggregateCompany {
|
||||
|
||||
@Field(() => CompanyCountAggregate, {nullable:true})
|
||||
_count?: CompanyCountAggregate;
|
||||
|
||||
@Field(() => CompanyAvgAggregate, {nullable:true})
|
||||
_avg?: CompanyAvgAggregate;
|
||||
|
||||
@Field(() => CompanySumAggregate, {nullable:true})
|
||||
_sum?: CompanySumAggregate;
|
||||
|
||||
@Field(() => CompanyMinAggregate, {nullable:true})
|
||||
_min?: CompanyMinAggregate;
|
||||
|
||||
@Field(() => CompanyMaxAggregate, {nullable:true})
|
||||
_max?: CompanyMaxAggregate;
|
||||
}
|
||||
47
server/src/api/@generated/company/company-aggregate.args.ts
Normal file
47
server/src/api/@generated/company/company-aggregate.args.ts
Normal file
@ -0,0 +1,47 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CompanyWhereInput } from './company-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyOrderByWithRelationInput } from './company-order-by-with-relation.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { CompanyCountAggregateInput } from './company-count-aggregate.input';
|
||||
import { CompanyAvgAggregateInput } from './company-avg-aggregate.input';
|
||||
import { CompanySumAggregateInput } from './company-sum-aggregate.input';
|
||||
import { CompanyMinAggregateInput } from './company-min-aggregate.input';
|
||||
import { CompanyMaxAggregateInput } from './company-max-aggregate.input';
|
||||
|
||||
@ArgsType()
|
||||
export class CompanyAggregateArgs {
|
||||
|
||||
@Field(() => CompanyWhereInput, {nullable:true})
|
||||
@Type(() => CompanyWhereInput)
|
||||
where?: CompanyWhereInput;
|
||||
|
||||
@Field(() => [CompanyOrderByWithRelationInput], {nullable:true})
|
||||
orderBy?: Array<CompanyOrderByWithRelationInput>;
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:true})
|
||||
cursor?: CompanyWhereUniqueInput;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
skip?: number;
|
||||
|
||||
@Field(() => CompanyCountAggregateInput, {nullable:true})
|
||||
_count?: CompanyCountAggregateInput;
|
||||
|
||||
@Field(() => CompanyAvgAggregateInput, {nullable:true})
|
||||
_avg?: CompanyAvgAggregateInput;
|
||||
|
||||
@Field(() => CompanySumAggregateInput, {nullable:true})
|
||||
_sum?: CompanySumAggregateInput;
|
||||
|
||||
@Field(() => CompanyMinAggregateInput, {nullable:true})
|
||||
_min?: CompanyMinAggregateInput;
|
||||
|
||||
@Field(() => CompanyMaxAggregateInput, {nullable:true})
|
||||
_max?: CompanyMaxAggregateInput;
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyAvgAggregateInput {
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
employees?: true;
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Float } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanyAvgAggregate {
|
||||
|
||||
@Field(() => Float, {nullable:true})
|
||||
employees?: number;
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
|
||||
@InputType()
|
||||
export class CompanyAvgOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
employees?: keyof typeof SortOrder;
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCountAggregateInput {
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
createdAt?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
updatedAt?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
deletedAt?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
name?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
domainName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
address?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
employees?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
accountOwnerId?: true;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
_all?: true;
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanyCountAggregate {
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
id!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
createdAt!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
updatedAt!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
deletedAt!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
name!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
domainName!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
address!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
employees!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
accountOwnerId!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
workspaceId!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
_all!: number;
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCountOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
name?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
domainName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
address?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
employees?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
accountOwnerId?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
}
|
||||
10
server/src/api/@generated/company/company-count.output.ts
Normal file
10
server/src/api/@generated/company/company-count.output.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanyCount {
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
people?: number;
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyCreateManyAccountOwnerInput } from './company-create-many-account-owner.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateManyAccountOwnerInputEnvelope {
|
||||
|
||||
@Field(() => [CompanyCreateManyAccountOwnerInput], {nullable:false})
|
||||
@Type(() => CompanyCreateManyAccountOwnerInput)
|
||||
data!: Array<CompanyCreateManyAccountOwnerInput>;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
skipDuplicates?: boolean;
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateManyAccountOwnerInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
name!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
domainName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
address!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyCreateManyWorkspaceInput } from './company-create-many-workspace.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateManyWorkspaceInputEnvelope {
|
||||
|
||||
@Field(() => [CompanyCreateManyWorkspaceInput], {nullable:false})
|
||||
@Type(() => CompanyCreateManyWorkspaceInput)
|
||||
data!: Array<CompanyCreateManyWorkspaceInput>;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
skipDuplicates?: boolean;
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateManyWorkspaceInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
name!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
domainName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
address!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
accountOwnerId?: string;
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateManyInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
name!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
domainName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
address!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
accountOwnerId?: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyCreateWithoutAccountOwnerInput } from './company-create-without-account-owner.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateOrConnectWithoutAccountOwnerInput } from './company-create-or-connect-without-account-owner.input';
|
||||
import { CompanyCreateManyAccountOwnerInputEnvelope } from './company-create-many-account-owner-input-envelope.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateNestedManyWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyCreateWithoutAccountOwnerInput)
|
||||
create?: Array<CompanyCreateWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyCreateOrConnectWithoutAccountOwnerInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => CompanyCreateManyAccountOwnerInputEnvelope, {nullable:true})
|
||||
@Type(() => CompanyCreateManyAccountOwnerInputEnvelope)
|
||||
createMany?: CompanyCreateManyAccountOwnerInputEnvelope;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: Array<CompanyWhereUniqueInput>;
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyCreateWithoutWorkspaceInput } from './company-create-without-workspace.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateOrConnectWithoutWorkspaceInput } from './company-create-or-connect-without-workspace.input';
|
||||
import { CompanyCreateManyWorkspaceInputEnvelope } from './company-create-many-workspace-input-envelope.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateNestedManyWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyCreateWithoutWorkspaceInput)
|
||||
create?: Array<CompanyCreateWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyCreateOrConnectWithoutWorkspaceInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => CompanyCreateManyWorkspaceInputEnvelope, {nullable:true})
|
||||
@Type(() => CompanyCreateManyWorkspaceInputEnvelope)
|
||||
createMany?: CompanyCreateManyWorkspaceInputEnvelope;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: Array<CompanyWhereUniqueInput>;
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyCreateWithoutPeopleInput } from './company-create-without-people.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateOrConnectWithoutPeopleInput } from './company-create-or-connect-without-people.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateNestedOneWithoutPeopleInput {
|
||||
|
||||
@Field(() => CompanyCreateWithoutPeopleInput, {nullable:true})
|
||||
@Type(() => CompanyCreateWithoutPeopleInput)
|
||||
create?: CompanyCreateWithoutPeopleInput;
|
||||
|
||||
@Field(() => CompanyCreateOrConnectWithoutPeopleInput, {nullable:true})
|
||||
@Type(() => CompanyCreateOrConnectWithoutPeopleInput)
|
||||
connectOrCreate?: CompanyCreateOrConnectWithoutPeopleInput;
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: CompanyWhereUniqueInput;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateWithoutAccountOwnerInput } from './company-create-without-account-owner.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateOrConnectWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:false})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@Field(() => CompanyCreateWithoutAccountOwnerInput, {nullable:false})
|
||||
@Type(() => CompanyCreateWithoutAccountOwnerInput)
|
||||
create!: CompanyCreateWithoutAccountOwnerInput;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateWithoutPeopleInput } from './company-create-without-people.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateOrConnectWithoutPeopleInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:false})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@Field(() => CompanyCreateWithoutPeopleInput, {nullable:false})
|
||||
@Type(() => CompanyCreateWithoutPeopleInput)
|
||||
create!: CompanyCreateWithoutPeopleInput;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateWithoutWorkspaceInput } from './company-create-without-workspace.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateOrConnectWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:false})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@Field(() => CompanyCreateWithoutWorkspaceInput, {nullable:false})
|
||||
@Type(() => CompanyCreateWithoutWorkspaceInput)
|
||||
create!: CompanyCreateWithoutWorkspaceInput;
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { PersonCreateNestedManyWithoutCompanyInput } from '../person/person-create-nested-many-without-company.input';
|
||||
import { WorkspaceCreateNestedOneWithoutCompaniesInput } from '../workspace/workspace-create-nested-one-without-companies.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
name!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
domainName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
address!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@Field(() => PersonCreateNestedManyWithoutCompanyInput, {nullable:true})
|
||||
people?: PersonCreateNestedManyWithoutCompanyInput;
|
||||
|
||||
@HideField()
|
||||
workspace!: WorkspaceCreateNestedOneWithoutCompaniesInput;
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { UserCreateNestedOneWithoutCompaniesInput } from '../user/user-create-nested-one-without-companies.input';
|
||||
import { WorkspaceCreateNestedOneWithoutCompaniesInput } from '../workspace/workspace-create-nested-one-without-companies.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateWithoutPeopleInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
name!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
domainName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
address!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@Field(() => UserCreateNestedOneWithoutCompaniesInput, {nullable:true})
|
||||
accountOwner?: UserCreateNestedOneWithoutCompaniesInput;
|
||||
|
||||
@HideField()
|
||||
workspace!: WorkspaceCreateNestedOneWithoutCompaniesInput;
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { UserCreateNestedOneWithoutCompaniesInput } from '../user/user-create-nested-one-without-companies.input';
|
||||
import { PersonCreateNestedManyWithoutCompanyInput } from '../person/person-create-nested-many-without-company.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
name!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
domainName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
address!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@Field(() => UserCreateNestedOneWithoutCompaniesInput, {nullable:true})
|
||||
accountOwner?: UserCreateNestedOneWithoutCompaniesInput;
|
||||
|
||||
@Field(() => PersonCreateNestedManyWithoutCompanyInput, {nullable:true})
|
||||
people?: PersonCreateNestedManyWithoutCompanyInput;
|
||||
}
|
||||
44
server/src/api/@generated/company/company-create.input.ts
Normal file
44
server/src/api/@generated/company/company-create.input.ts
Normal file
@ -0,0 +1,44 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { UserCreateNestedOneWithoutCompaniesInput } from '../user/user-create-nested-one-without-companies.input';
|
||||
import { PersonCreateNestedManyWithoutCompanyInput } from '../person/person-create-nested-many-without-company.input';
|
||||
import { WorkspaceCreateNestedOneWithoutCompaniesInput } from '../workspace/workspace-create-nested-one-without-companies.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
name!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
domainName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
address!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@Field(() => UserCreateNestedOneWithoutCompaniesInput, {nullable:true})
|
||||
accountOwner?: UserCreateNestedOneWithoutCompaniesInput;
|
||||
|
||||
@Field(() => PersonCreateNestedManyWithoutCompanyInput, {nullable:true})
|
||||
people?: PersonCreateNestedManyWithoutCompanyInput;
|
||||
|
||||
@HideField()
|
||||
workspace!: WorkspaceCreateNestedOneWithoutCompaniesInput;
|
||||
}
|
||||
51
server/src/api/@generated/company/company-group-by.args.ts
Normal file
51
server/src/api/@generated/company/company-group-by.args.ts
Normal file
@ -0,0 +1,51 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CompanyWhereInput } from './company-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyOrderByWithAggregationInput } from './company-order-by-with-aggregation.input';
|
||||
import { CompanyScalarFieldEnum } from './company-scalar-field.enum';
|
||||
import { CompanyScalarWhereWithAggregatesInput } from './company-scalar-where-with-aggregates.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { CompanyCountAggregateInput } from './company-count-aggregate.input';
|
||||
import { CompanyAvgAggregateInput } from './company-avg-aggregate.input';
|
||||
import { CompanySumAggregateInput } from './company-sum-aggregate.input';
|
||||
import { CompanyMinAggregateInput } from './company-min-aggregate.input';
|
||||
import { CompanyMaxAggregateInput } from './company-max-aggregate.input';
|
||||
|
||||
@ArgsType()
|
||||
export class CompanyGroupByArgs {
|
||||
|
||||
@Field(() => CompanyWhereInput, {nullable:true})
|
||||
@Type(() => CompanyWhereInput)
|
||||
where?: CompanyWhereInput;
|
||||
|
||||
@Field(() => [CompanyOrderByWithAggregationInput], {nullable:true})
|
||||
orderBy?: Array<CompanyOrderByWithAggregationInput>;
|
||||
|
||||
@Field(() => [CompanyScalarFieldEnum], {nullable:false})
|
||||
by!: Array<keyof typeof CompanyScalarFieldEnum>;
|
||||
|
||||
@Field(() => CompanyScalarWhereWithAggregatesInput, {nullable:true})
|
||||
having?: CompanyScalarWhereWithAggregatesInput;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
skip?: number;
|
||||
|
||||
@Field(() => CompanyCountAggregateInput, {nullable:true})
|
||||
_count?: CompanyCountAggregateInput;
|
||||
|
||||
@Field(() => CompanyAvgAggregateInput, {nullable:true})
|
||||
_avg?: CompanyAvgAggregateInput;
|
||||
|
||||
@Field(() => CompanySumAggregateInput, {nullable:true})
|
||||
_sum?: CompanySumAggregateInput;
|
||||
|
||||
@Field(() => CompanyMinAggregateInput, {nullable:true})
|
||||
_min?: CompanyMinAggregateInput;
|
||||
|
||||
@Field(() => CompanyMaxAggregateInput, {nullable:true})
|
||||
_max?: CompanyMaxAggregateInput;
|
||||
}
|
||||
57
server/src/api/@generated/company/company-group-by.output.ts
Normal file
57
server/src/api/@generated/company/company-group-by.output.ts
Normal file
@ -0,0 +1,57 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { CompanyCountAggregate } from './company-count-aggregate.output';
|
||||
import { CompanyAvgAggregate } from './company-avg-aggregate.output';
|
||||
import { CompanySumAggregate } from './company-sum-aggregate.output';
|
||||
import { CompanyMinAggregate } from './company-min-aggregate.output';
|
||||
import { CompanyMaxAggregate } from './company-max-aggregate.output';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanyGroupBy {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, {nullable:false})
|
||||
createdAt!: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:false})
|
||||
updatedAt!: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
name!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
domainName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
address!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
accountOwnerId?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => CompanyCountAggregate, {nullable:true})
|
||||
_count?: CompanyCountAggregate;
|
||||
|
||||
@Field(() => CompanyAvgAggregate, {nullable:true})
|
||||
_avg?: CompanyAvgAggregate;
|
||||
|
||||
@Field(() => CompanySumAggregate, {nullable:true})
|
||||
_sum?: CompanySumAggregate;
|
||||
|
||||
@Field(() => CompanyMinAggregate, {nullable:true})
|
||||
_min?: CompanyMinAggregate;
|
||||
|
||||
@Field(() => CompanyMaxAggregate, {nullable:true})
|
||||
_max?: CompanyMaxAggregate;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyWhereInput } from './company-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyListRelationFilter {
|
||||
|
||||
@Field(() => CompanyWhereInput, {nullable:true})
|
||||
every?: CompanyWhereInput;
|
||||
|
||||
@Field(() => CompanyWhereInput, {nullable:true})
|
||||
some?: CompanyWhereInput;
|
||||
|
||||
@Field(() => CompanyWhereInput, {nullable:true})
|
||||
none?: CompanyWhereInput;
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyMaxAggregateInput {
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
createdAt?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
updatedAt?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
deletedAt?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
name?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
domainName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
address?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
employees?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
accountOwnerId?: true;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: true;
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanyMaxAggregate {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
name?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
domainName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
address?: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
accountOwnerId?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
workspaceId?: string;
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyMaxOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
name?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
domainName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
address?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
employees?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
accountOwnerId?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyMinAggregateInput {
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
createdAt?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
updatedAt?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
deletedAt?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
name?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
domainName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
address?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
employees?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
accountOwnerId?: true;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: true;
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanyMinAggregate {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
name?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
domainName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
address?: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
accountOwnerId?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
workspaceId?: string;
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyMinOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
name?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
domainName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
address?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
employees?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
accountOwnerId?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
|
||||
@InputType()
|
||||
export class CompanyOrderByRelationAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
_count?: keyof typeof SortOrder;
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CompanyCountOrderByAggregateInput } from './company-count-order-by-aggregate.input';
|
||||
import { CompanyAvgOrderByAggregateInput } from './company-avg-order-by-aggregate.input';
|
||||
import { CompanyMaxOrderByAggregateInput } from './company-max-order-by-aggregate.input';
|
||||
import { CompanyMinOrderByAggregateInput } from './company-min-order-by-aggregate.input';
|
||||
import { CompanySumOrderByAggregateInput } from './company-sum-order-by-aggregate.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyOrderByWithAggregationInput {
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
name?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
domainName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
address?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
employees?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
accountOwnerId?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => CompanyCountOrderByAggregateInput, {nullable:true})
|
||||
_count?: CompanyCountOrderByAggregateInput;
|
||||
|
||||
@Field(() => CompanyAvgOrderByAggregateInput, {nullable:true})
|
||||
_avg?: CompanyAvgOrderByAggregateInput;
|
||||
|
||||
@Field(() => CompanyMaxOrderByAggregateInput, {nullable:true})
|
||||
_max?: CompanyMaxOrderByAggregateInput;
|
||||
|
||||
@Field(() => CompanyMinOrderByAggregateInput, {nullable:true})
|
||||
_min?: CompanyMinOrderByAggregateInput;
|
||||
|
||||
@Field(() => CompanySumOrderByAggregateInput, {nullable:true})
|
||||
_sum?: CompanySumOrderByAggregateInput;
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { UserOrderByWithRelationInput } from '../user/user-order-by-with-relation.input';
|
||||
import { PersonOrderByRelationAggregateInput } from '../person/person-order-by-relation-aggregate.input';
|
||||
import { WorkspaceOrderByWithRelationInput } from '../workspace/workspace-order-by-with-relation.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyOrderByWithRelationInput {
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
name?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
domainName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
address?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
employees?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
accountOwnerId?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => UserOrderByWithRelationInput, {nullable:true})
|
||||
accountOwner?: UserOrderByWithRelationInput;
|
||||
|
||||
@Field(() => PersonOrderByRelationAggregateInput, {nullable:true})
|
||||
people?: PersonOrderByRelationAggregateInput;
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceOrderByWithRelationInput;
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyWhereInput } from './company-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyRelationFilter {
|
||||
|
||||
@Field(() => CompanyWhereInput, {nullable:true})
|
||||
is?: CompanyWhereInput;
|
||||
|
||||
@Field(() => CompanyWhereInput, {nullable:true})
|
||||
isNot?: CompanyWhereInput;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import { registerEnumType } from '@nestjs/graphql';
|
||||
|
||||
export enum CompanyScalarFieldEnum {
|
||||
id = "id",
|
||||
createdAt = "createdAt",
|
||||
updatedAt = "updatedAt",
|
||||
deletedAt = "deletedAt",
|
||||
name = "name",
|
||||
domainName = "domainName",
|
||||
address = "address",
|
||||
employees = "employees",
|
||||
accountOwnerId = "accountOwnerId",
|
||||
workspaceId = "workspaceId"
|
||||
}
|
||||
|
||||
|
||||
registerEnumType(CompanyScalarFieldEnum, { name: 'CompanyScalarFieldEnum', description: undefined })
|
||||
@ -0,0 +1,51 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input';
|
||||
import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input';
|
||||
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
|
||||
import { IntNullableWithAggregatesFilter } from '../prisma/int-nullable-with-aggregates-filter.input';
|
||||
import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyScalarWhereWithAggregatesInput {
|
||||
|
||||
@Field(() => [CompanyScalarWhereWithAggregatesInput], {nullable:true})
|
||||
AND?: Array<CompanyScalarWhereWithAggregatesInput>;
|
||||
|
||||
@Field(() => [CompanyScalarWhereWithAggregatesInput], {nullable:true})
|
||||
OR?: Array<CompanyScalarWhereWithAggregatesInput>;
|
||||
|
||||
@Field(() => [CompanyScalarWhereWithAggregatesInput], {nullable:true})
|
||||
NOT?: Array<CompanyScalarWhereWithAggregatesInput>;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
id?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => DateTimeWithAggregatesFilter, {nullable:true})
|
||||
createdAt?: DateTimeWithAggregatesFilter;
|
||||
|
||||
@Field(() => DateTimeWithAggregatesFilter, {nullable:true})
|
||||
updatedAt?: DateTimeWithAggregatesFilter;
|
||||
|
||||
@Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true})
|
||||
deletedAt?: DateTimeNullableWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
name?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
domainName?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
address?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => IntNullableWithAggregatesFilter, {nullable:true})
|
||||
employees?: IntNullableWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringNullableWithAggregatesFilter, {nullable:true})
|
||||
accountOwnerId?: StringNullableWithAggregatesFilter;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringWithAggregatesFilter;
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFilter } from '../prisma/string-filter.input';
|
||||
import { DateTimeFilter } from '../prisma/date-time-filter.input';
|
||||
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
|
||||
import { IntNullableFilter } from '../prisma/int-nullable-filter.input';
|
||||
import { StringNullableFilter } from '../prisma/string-nullable-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyScalarWhereInput {
|
||||
|
||||
@Field(() => [CompanyScalarWhereInput], {nullable:true})
|
||||
AND?: Array<CompanyScalarWhereInput>;
|
||||
|
||||
@Field(() => [CompanyScalarWhereInput], {nullable:true})
|
||||
OR?: Array<CompanyScalarWhereInput>;
|
||||
|
||||
@Field(() => [CompanyScalarWhereInput], {nullable:true})
|
||||
NOT?: Array<CompanyScalarWhereInput>;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
id?: StringFilter;
|
||||
|
||||
@Field(() => DateTimeFilter, {nullable:true})
|
||||
createdAt?: DateTimeFilter;
|
||||
|
||||
@Field(() => DateTimeFilter, {nullable:true})
|
||||
updatedAt?: DateTimeFilter;
|
||||
|
||||
@Field(() => DateTimeNullableFilter, {nullable:true})
|
||||
deletedAt?: DateTimeNullableFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
name?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
domainName?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
address?: StringFilter;
|
||||
|
||||
@Field(() => IntNullableFilter, {nullable:true})
|
||||
employees?: IntNullableFilter;
|
||||
|
||||
@Field(() => StringNullableFilter, {nullable:true})
|
||||
accountOwnerId?: StringNullableFilter;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFilter;
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanySumAggregateInput {
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
employees?: true;
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanySumAggregate {
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
|
||||
@InputType()
|
||||
export class CompanySumOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
employees?: keyof typeof SortOrder;
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyCreateWithoutAccountOwnerInput } from './company-create-without-account-owner.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateOrConnectWithoutAccountOwnerInput } from './company-create-or-connect-without-account-owner.input';
|
||||
import { CompanyCreateManyAccountOwnerInputEnvelope } from './company-create-many-account-owner-input-envelope.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyCreateWithoutAccountOwnerInput)
|
||||
create?: Array<CompanyCreateWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyCreateOrConnectWithoutAccountOwnerInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => CompanyCreateManyAccountOwnerInputEnvelope, {nullable:true})
|
||||
@Type(() => CompanyCreateManyAccountOwnerInputEnvelope)
|
||||
createMany?: CompanyCreateManyAccountOwnerInputEnvelope;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: Array<CompanyWhereUniqueInput>;
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyCreateWithoutWorkspaceInput } from './company-create-without-workspace.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateOrConnectWithoutWorkspaceInput } from './company-create-or-connect-without-workspace.input';
|
||||
import { CompanyCreateManyWorkspaceInputEnvelope } from './company-create-many-workspace-input-envelope.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedCreateNestedManyWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyCreateWithoutWorkspaceInput)
|
||||
create?: Array<CompanyCreateWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyCreateOrConnectWithoutWorkspaceInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => CompanyCreateManyWorkspaceInputEnvelope, {nullable:true})
|
||||
@Type(() => CompanyCreateManyWorkspaceInputEnvelope)
|
||||
createMany?: CompanyCreateManyWorkspaceInputEnvelope;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: Array<CompanyWhereUniqueInput>;
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/person-unchecked-create-nested-many-without-company.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedCreateWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
name!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
domainName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
address!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {nullable:true})
|
||||
people?: PersonUncheckedCreateNestedManyWithoutCompanyInput;
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedCreateWithoutPeopleInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
name!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
domainName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
address!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
accountOwnerId?: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/person-unchecked-create-nested-many-without-company.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedCreateWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
name!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
domainName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
address!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
accountOwnerId?: string;
|
||||
|
||||
@Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {nullable:true})
|
||||
people?: PersonUncheckedCreateNestedManyWithoutCompanyInput;
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/person-unchecked-create-nested-many-without-company.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedCreateInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
name!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
domainName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
address!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees?: number;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
accountOwnerId?: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {nullable:true})
|
||||
people?: PersonUncheckedCreateNestedManyWithoutCompanyInput;
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyCreateWithoutAccountOwnerInput } from './company-create-without-account-owner.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateOrConnectWithoutAccountOwnerInput } from './company-create-or-connect-without-account-owner.input';
|
||||
import { CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput } from './company-upsert-with-where-unique-without-account-owner.input';
|
||||
import { CompanyCreateManyAccountOwnerInputEnvelope } from './company-create-many-account-owner-input-envelope.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput } from './company-update-with-where-unique-without-account-owner.input';
|
||||
import { CompanyUpdateManyWithWhereWithoutAccountOwnerInput } from './company-update-many-with-where-without-account-owner.input';
|
||||
import { CompanyScalarWhereInput } from './company-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyCreateWithoutAccountOwnerInput)
|
||||
create?: Array<CompanyCreateWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyCreateOrConnectWithoutAccountOwnerInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput)
|
||||
upsert?: Array<CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => CompanyCreateManyAccountOwnerInputEnvelope, {nullable:true})
|
||||
@Type(() => CompanyCreateManyAccountOwnerInputEnvelope)
|
||||
createMany?: CompanyCreateManyAccountOwnerInputEnvelope;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
set?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
disconnect?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
delete?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput)
|
||||
update?: Array<CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateManyWithWhereWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyUpdateManyWithWhereWithoutAccountOwnerInput)
|
||||
updateMany?: Array<CompanyUpdateManyWithWhereWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyScalarWhereInput], {nullable:true})
|
||||
@Type(() => CompanyScalarWhereInput)
|
||||
deleteMany?: Array<CompanyScalarWhereInput>;
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateManyWithoutCompaniesInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
name?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
domainName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
address?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
employees?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyCreateWithoutWorkspaceInput } from './company-create-without-workspace.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateOrConnectWithoutWorkspaceInput } from './company-create-or-connect-without-workspace.input';
|
||||
import { CompanyUpsertWithWhereUniqueWithoutWorkspaceInput } from './company-upsert-with-where-unique-without-workspace.input';
|
||||
import { CompanyCreateManyWorkspaceInputEnvelope } from './company-create-many-workspace-input-envelope.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { CompanyUpdateWithWhereUniqueWithoutWorkspaceInput } from './company-update-with-where-unique-without-workspace.input';
|
||||
import { CompanyUpdateManyWithWhereWithoutWorkspaceInput } from './company-update-many-with-where-without-workspace.input';
|
||||
import { CompanyScalarWhereInput } from './company-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyCreateWithoutWorkspaceInput)
|
||||
create?: Array<CompanyCreateWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyCreateOrConnectWithoutWorkspaceInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyUpsertWithWhereUniqueWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyUpsertWithWhereUniqueWithoutWorkspaceInput)
|
||||
upsert?: Array<CompanyUpsertWithWhereUniqueWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => CompanyCreateManyWorkspaceInputEnvelope, {nullable:true})
|
||||
@Type(() => CompanyCreateManyWorkspaceInputEnvelope)
|
||||
createMany?: CompanyCreateManyWorkspaceInputEnvelope;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
set?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
disconnect?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
delete?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateWithWhereUniqueWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyUpdateWithWhereUniqueWithoutWorkspaceInput)
|
||||
update?: Array<CompanyUpdateWithWhereUniqueWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateManyWithWhereWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyUpdateManyWithWhereWithoutWorkspaceInput)
|
||||
updateMany?: Array<CompanyUpdateManyWithWhereWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyScalarWhereInput], {nullable:true})
|
||||
@Type(() => CompanyScalarWhereInput)
|
||||
deleteMany?: Array<CompanyScalarWhereInput>;
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateManyInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
name?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
domainName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
address?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
employees?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
accountOwnerId?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PersonUncheckedUpdateManyWithoutCompanyNestedInput } from '../person/person-unchecked-update-many-without-company-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
name?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
domainName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
address?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
employees?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {nullable:true})
|
||||
people?: PersonUncheckedUpdateManyWithoutCompanyNestedInput;
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateWithoutPeopleInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
name?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
domainName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
address?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
employees?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
accountOwnerId?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { PersonUncheckedUpdateManyWithoutCompanyNestedInput } from '../person/person-unchecked-update-many-without-company-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
name?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
domainName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
address?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
employees?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
accountOwnerId?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {nullable:true})
|
||||
people?: PersonUncheckedUpdateManyWithoutCompanyNestedInput;
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PersonUncheckedUpdateManyWithoutCompanyNestedInput } from '../person/person-unchecked-update-many-without-company-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
name?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
domainName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
address?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
employees?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
accountOwnerId?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {nullable:true})
|
||||
people?: PersonUncheckedUpdateManyWithoutCompanyNestedInput;
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateManyMutationInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
name?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
domainName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
address?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
employees?: NullableIntFieldUpdateOperationsInput;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyScalarWhereInput } from './company-scalar-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyUpdateManyMutationInput } from './company-update-many-mutation.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateManyWithWhereWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => CompanyScalarWhereInput, {nullable:false})
|
||||
@Type(() => CompanyScalarWhereInput)
|
||||
where!: CompanyScalarWhereInput;
|
||||
|
||||
@Field(() => CompanyUpdateManyMutationInput, {nullable:false})
|
||||
@Type(() => CompanyUpdateManyMutationInput)
|
||||
data!: CompanyUpdateManyMutationInput;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyScalarWhereInput } from './company-scalar-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyUpdateManyMutationInput } from './company-update-many-mutation.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateManyWithWhereWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => CompanyScalarWhereInput, {nullable:false})
|
||||
@Type(() => CompanyScalarWhereInput)
|
||||
where!: CompanyScalarWhereInput;
|
||||
|
||||
@Field(() => CompanyUpdateManyMutationInput, {nullable:false})
|
||||
@Type(() => CompanyUpdateManyMutationInput)
|
||||
data!: CompanyUpdateManyMutationInput;
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyCreateWithoutAccountOwnerInput } from './company-create-without-account-owner.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateOrConnectWithoutAccountOwnerInput } from './company-create-or-connect-without-account-owner.input';
|
||||
import { CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput } from './company-upsert-with-where-unique-without-account-owner.input';
|
||||
import { CompanyCreateManyAccountOwnerInputEnvelope } from './company-create-many-account-owner-input-envelope.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput } from './company-update-with-where-unique-without-account-owner.input';
|
||||
import { CompanyUpdateManyWithWhereWithoutAccountOwnerInput } from './company-update-many-with-where-without-account-owner.input';
|
||||
import { CompanyScalarWhereInput } from './company-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateManyWithoutAccountOwnerNestedInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyCreateWithoutAccountOwnerInput)
|
||||
create?: Array<CompanyCreateWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyCreateOrConnectWithoutAccountOwnerInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput)
|
||||
upsert?: Array<CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => CompanyCreateManyAccountOwnerInputEnvelope, {nullable:true})
|
||||
@Type(() => CompanyCreateManyAccountOwnerInputEnvelope)
|
||||
createMany?: CompanyCreateManyAccountOwnerInputEnvelope;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
set?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
disconnect?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
delete?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput)
|
||||
update?: Array<CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateManyWithWhereWithoutAccountOwnerInput], {nullable:true})
|
||||
@Type(() => CompanyUpdateManyWithWhereWithoutAccountOwnerInput)
|
||||
updateMany?: Array<CompanyUpdateManyWithWhereWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyScalarWhereInput], {nullable:true})
|
||||
@Type(() => CompanyScalarWhereInput)
|
||||
deleteMany?: Array<CompanyScalarWhereInput>;
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyCreateWithoutWorkspaceInput } from './company-create-without-workspace.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateOrConnectWithoutWorkspaceInput } from './company-create-or-connect-without-workspace.input';
|
||||
import { CompanyUpsertWithWhereUniqueWithoutWorkspaceInput } from './company-upsert-with-where-unique-without-workspace.input';
|
||||
import { CompanyCreateManyWorkspaceInputEnvelope } from './company-create-many-workspace-input-envelope.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { CompanyUpdateWithWhereUniqueWithoutWorkspaceInput } from './company-update-with-where-unique-without-workspace.input';
|
||||
import { CompanyUpdateManyWithWhereWithoutWorkspaceInput } from './company-update-many-with-where-without-workspace.input';
|
||||
import { CompanyScalarWhereInput } from './company-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateManyWithoutWorkspaceNestedInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyCreateWithoutWorkspaceInput)
|
||||
create?: Array<CompanyCreateWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyCreateOrConnectWithoutWorkspaceInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyUpsertWithWhereUniqueWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyUpsertWithWhereUniqueWithoutWorkspaceInput)
|
||||
upsert?: Array<CompanyUpsertWithWhereUniqueWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => CompanyCreateManyWorkspaceInputEnvelope, {nullable:true})
|
||||
@Type(() => CompanyCreateManyWorkspaceInputEnvelope)
|
||||
createMany?: CompanyCreateManyWorkspaceInputEnvelope;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
set?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
disconnect?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
delete?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateWithWhereUniqueWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyUpdateWithWhereUniqueWithoutWorkspaceInput)
|
||||
update?: Array<CompanyUpdateWithWhereUniqueWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateManyWithWhereWithoutWorkspaceInput], {nullable:true})
|
||||
@Type(() => CompanyUpdateManyWithWhereWithoutWorkspaceInput)
|
||||
updateMany?: Array<CompanyUpdateManyWithWhereWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyScalarWhereInput], {nullable:true})
|
||||
@Type(() => CompanyScalarWhereInput)
|
||||
deleteMany?: Array<CompanyScalarWhereInput>;
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyCreateWithoutPeopleInput } from './company-create-without-people.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateOrConnectWithoutPeopleInput } from './company-create-or-connect-without-people.input';
|
||||
import { CompanyUpsertWithoutPeopleInput } from './company-upsert-without-people.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { CompanyUpdateWithoutPeopleInput } from './company-update-without-people.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateOneWithoutPeopleNestedInput {
|
||||
|
||||
@Field(() => CompanyCreateWithoutPeopleInput, {nullable:true})
|
||||
@Type(() => CompanyCreateWithoutPeopleInput)
|
||||
create?: CompanyCreateWithoutPeopleInput;
|
||||
|
||||
@Field(() => CompanyCreateOrConnectWithoutPeopleInput, {nullable:true})
|
||||
@Type(() => CompanyCreateOrConnectWithoutPeopleInput)
|
||||
connectOrCreate?: CompanyCreateOrConnectWithoutPeopleInput;
|
||||
|
||||
@Field(() => CompanyUpsertWithoutPeopleInput, {nullable:true})
|
||||
@Type(() => CompanyUpsertWithoutPeopleInput)
|
||||
upsert?: CompanyUpsertWithoutPeopleInput;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
disconnect?: boolean;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
delete?: boolean;
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:true})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: CompanyWhereUniqueInput;
|
||||
|
||||
@Field(() => CompanyUpdateWithoutPeopleInput, {nullable:true})
|
||||
@Type(() => CompanyUpdateWithoutPeopleInput)
|
||||
update?: CompanyUpdateWithoutPeopleInput;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyUpdateWithoutAccountOwnerInput } from './company-update-without-account-owner.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:false})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@Field(() => CompanyUpdateWithoutAccountOwnerInput, {nullable:false})
|
||||
@Type(() => CompanyUpdateWithoutAccountOwnerInput)
|
||||
data!: CompanyUpdateWithoutAccountOwnerInput;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyUpdateWithoutWorkspaceInput } from './company-update-without-workspace.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateWithWhereUniqueWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:false})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@Field(() => CompanyUpdateWithoutWorkspaceInput, {nullable:false})
|
||||
@Type(() => CompanyUpdateWithoutWorkspaceInput)
|
||||
data!: CompanyUpdateWithoutWorkspaceInput;
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { PersonUpdateManyWithoutCompanyNestedInput } from '../person/person-update-many-without-company-nested.input';
|
||||
import { WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput } from '../workspace/workspace-update-one-required-without-companies-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
name?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
domainName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
address?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
employees?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => PersonUpdateManyWithoutCompanyNestedInput, {nullable:true})
|
||||
people?: PersonUpdateManyWithoutCompanyNestedInput;
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput;
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { UserUpdateOneWithoutCompaniesNestedInput } from '../user/user-update-one-without-companies-nested.input';
|
||||
import { WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput } from '../workspace/workspace-update-one-required-without-companies-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateWithoutPeopleInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
name?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
domainName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
address?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
employees?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => UserUpdateOneWithoutCompaniesNestedInput, {nullable:true})
|
||||
accountOwner?: UserUpdateOneWithoutCompaniesNestedInput;
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput;
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { UserUpdateOneWithoutCompaniesNestedInput } from '../user/user-update-one-without-companies-nested.input';
|
||||
import { PersonUpdateManyWithoutCompanyNestedInput } from '../person/person-update-many-without-company-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
name?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
domainName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
address?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
employees?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => UserUpdateOneWithoutCompaniesNestedInput, {nullable:true})
|
||||
accountOwner?: UserUpdateOneWithoutCompaniesNestedInput;
|
||||
|
||||
@Field(() => PersonUpdateManyWithoutCompanyNestedInput, {nullable:true})
|
||||
people?: PersonUpdateManyWithoutCompanyNestedInput;
|
||||
}
|
||||
47
server/src/api/@generated/company/company-update.input.ts
Normal file
47
server/src/api/@generated/company/company-update.input.ts
Normal file
@ -0,0 +1,47 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { UserUpdateOneWithoutCompaniesNestedInput } from '../user/user-update-one-without-companies-nested.input';
|
||||
import { PersonUpdateManyWithoutCompanyNestedInput } from '../person/person-update-many-without-company-nested.input';
|
||||
import { WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput } from '../workspace/workspace-update-one-required-without-companies-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
name?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
domainName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
address?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
employees?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => UserUpdateOneWithoutCompaniesNestedInput, {nullable:true})
|
||||
accountOwner?: UserUpdateOneWithoutCompaniesNestedInput;
|
||||
|
||||
@Field(() => PersonUpdateManyWithoutCompanyNestedInput, {nullable:true})
|
||||
people?: PersonUpdateManyWithoutCompanyNestedInput;
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput;
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyUpdateWithoutAccountOwnerInput } from './company-update-without-account-owner.input';
|
||||
import { CompanyCreateWithoutAccountOwnerInput } from './company-create-without-account-owner.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:false})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@Field(() => CompanyUpdateWithoutAccountOwnerInput, {nullable:false})
|
||||
@Type(() => CompanyUpdateWithoutAccountOwnerInput)
|
||||
update!: CompanyUpdateWithoutAccountOwnerInput;
|
||||
|
||||
@Field(() => CompanyCreateWithoutAccountOwnerInput, {nullable:false})
|
||||
@Type(() => CompanyCreateWithoutAccountOwnerInput)
|
||||
create!: CompanyCreateWithoutAccountOwnerInput;
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyUpdateWithoutWorkspaceInput } from './company-update-without-workspace.input';
|
||||
import { CompanyCreateWithoutWorkspaceInput } from './company-create-without-workspace.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpsertWithWhereUniqueWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:false})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@Field(() => CompanyUpdateWithoutWorkspaceInput, {nullable:false})
|
||||
@Type(() => CompanyUpdateWithoutWorkspaceInput)
|
||||
update!: CompanyUpdateWithoutWorkspaceInput;
|
||||
|
||||
@Field(() => CompanyCreateWithoutWorkspaceInput, {nullable:false})
|
||||
@Type(() => CompanyCreateWithoutWorkspaceInput)
|
||||
create!: CompanyCreateWithoutWorkspaceInput;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CompanyUpdateWithoutPeopleInput } from './company-update-without-people.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyCreateWithoutPeopleInput } from './company-create-without-people.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpsertWithoutPeopleInput {
|
||||
|
||||
@Field(() => CompanyUpdateWithoutPeopleInput, {nullable:false})
|
||||
@Type(() => CompanyUpdateWithoutPeopleInput)
|
||||
update!: CompanyUpdateWithoutPeopleInput;
|
||||
|
||||
@Field(() => CompanyCreateWithoutPeopleInput, {nullable:false})
|
||||
@Type(() => CompanyCreateWithoutPeopleInput)
|
||||
create!: CompanyCreateWithoutPeopleInput;
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyWhereUniqueInput {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
id?: string;
|
||||
}
|
||||
63
server/src/api/@generated/company/company-where.input.ts
Normal file
63
server/src/api/@generated/company/company-where.input.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFilter } from '../prisma/string-filter.input';
|
||||
import { DateTimeFilter } from '../prisma/date-time-filter.input';
|
||||
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
|
||||
import { IntNullableFilter } from '../prisma/int-nullable-filter.input';
|
||||
import { StringNullableFilter } from '../prisma/string-nullable-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { UserRelationFilter } from '../user/user-relation-filter.input';
|
||||
import { PersonListRelationFilter } from '../person/person-list-relation-filter.input';
|
||||
import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyWhereInput {
|
||||
|
||||
@Field(() => [CompanyWhereInput], {nullable:true})
|
||||
AND?: Array<CompanyWhereInput>;
|
||||
|
||||
@Field(() => [CompanyWhereInput], {nullable:true})
|
||||
OR?: Array<CompanyWhereInput>;
|
||||
|
||||
@Field(() => [CompanyWhereInput], {nullable:true})
|
||||
NOT?: Array<CompanyWhereInput>;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
id?: StringFilter;
|
||||
|
||||
@Field(() => DateTimeFilter, {nullable:true})
|
||||
createdAt?: DateTimeFilter;
|
||||
|
||||
@Field(() => DateTimeFilter, {nullable:true})
|
||||
updatedAt?: DateTimeFilter;
|
||||
|
||||
@Field(() => DateTimeNullableFilter, {nullable:true})
|
||||
deletedAt?: DateTimeNullableFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
name?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
domainName?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
address?: StringFilter;
|
||||
|
||||
@Field(() => IntNullableFilter, {nullable:true})
|
||||
employees?: IntNullableFilter;
|
||||
|
||||
@Field(() => StringNullableFilter, {nullable:true})
|
||||
accountOwnerId?: StringNullableFilter;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFilter;
|
||||
|
||||
@Field(() => UserRelationFilter, {nullable:true})
|
||||
accountOwner?: UserRelationFilter;
|
||||
|
||||
@Field(() => PersonListRelationFilter, {nullable:true})
|
||||
people?: PersonListRelationFilter;
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceRelationFilter;
|
||||
}
|
||||
54
server/src/api/@generated/company/company.model.ts
Normal file
54
server/src/api/@generated/company/company.model.ts
Normal file
@ -0,0 +1,54 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { ID } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { User } from '../user/user.model';
|
||||
import { Person } from '../person/person.model';
|
||||
import { Workspace } from '../workspace/workspace.model';
|
||||
import { CompanyCount } from './company-count.output';
|
||||
|
||||
@ObjectType()
|
||||
export class Company {
|
||||
|
||||
@Field(() => ID, {nullable:false})
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, {nullable:false})
|
||||
createdAt!: Date;
|
||||
|
||||
@Field(() => Date, {nullable:false})
|
||||
updatedAt!: Date;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
deletedAt!: Date | null;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
name!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
domainName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
address!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
employees!: number | null;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
accountOwnerId!: string | null;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => User, {nullable:true})
|
||||
accountOwner?: User | null;
|
||||
|
||||
@Field(() => [Person], {nullable:true})
|
||||
people?: Array<Person>;
|
||||
|
||||
@Field(() => Workspace, {nullable:false})
|
||||
workspace?: Workspace;
|
||||
|
||||
@Field(() => CompanyCount, {nullable:false})
|
||||
_count?: CompanyCount;
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CompanyCreateManyInput } from './company-create-many.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class CreateManyCompanyArgs {
|
||||
|
||||
@Field(() => [CompanyCreateManyInput], {nullable:false})
|
||||
@Type(() => CompanyCreateManyInput)
|
||||
data!: Array<CompanyCreateManyInput>;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
skipDuplicates?: boolean;
|
||||
}
|
||||
12
server/src/api/@generated/company/create-one-company.args.ts
Normal file
12
server/src/api/@generated/company/create-one-company.args.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CompanyCreateInput } from './company-create.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class CreateOneCompanyArgs {
|
||||
|
||||
@Field(() => CompanyCreateInput, {nullable:false})
|
||||
@Type(() => CompanyCreateInput)
|
||||
data!: CompanyCreateInput;
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CompanyWhereInput } from './company-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class DeleteManyCompanyArgs {
|
||||
|
||||
@Field(() => CompanyWhereInput, {nullable:true})
|
||||
@Type(() => CompanyWhereInput)
|
||||
where?: CompanyWhereInput;
|
||||
}
|
||||
12
server/src/api/@generated/company/delete-one-company.args.ts
Normal file
12
server/src/api/@generated/company/delete-one-company.args.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class DeleteOneCompanyArgs {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:false})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CompanyWhereInput } from './company-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyOrderByWithRelationInput } from './company-order-by-with-relation.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { CompanyScalarFieldEnum } from './company-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindFirstCompanyOrThrowArgs {
|
||||
|
||||
@Field(() => CompanyWhereInput, {nullable:true})
|
||||
@Type(() => CompanyWhereInput)
|
||||
where?: CompanyWhereInput;
|
||||
|
||||
@Field(() => [CompanyOrderByWithRelationInput], {nullable:true})
|
||||
orderBy?: Array<CompanyOrderByWithRelationInput>;
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:true})
|
||||
cursor?: CompanyWhereUniqueInput;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
skip?: number;
|
||||
|
||||
@Field(() => [CompanyScalarFieldEnum], {nullable:true})
|
||||
distinct?: Array<keyof typeof CompanyScalarFieldEnum>;
|
||||
}
|
||||
31
server/src/api/@generated/company/find-first-company.args.ts
Normal file
31
server/src/api/@generated/company/find-first-company.args.ts
Normal file
@ -0,0 +1,31 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CompanyWhereInput } from './company-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyOrderByWithRelationInput } from './company-order-by-with-relation.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { CompanyScalarFieldEnum } from './company-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindFirstCompanyArgs {
|
||||
|
||||
@Field(() => CompanyWhereInput, {nullable:true})
|
||||
@Type(() => CompanyWhereInput)
|
||||
where?: CompanyWhereInput;
|
||||
|
||||
@Field(() => [CompanyOrderByWithRelationInput], {nullable:true})
|
||||
orderBy?: Array<CompanyOrderByWithRelationInput>;
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:true})
|
||||
cursor?: CompanyWhereUniqueInput;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
skip?: number;
|
||||
|
||||
@Field(() => [CompanyScalarFieldEnum], {nullable:true})
|
||||
distinct?: Array<keyof typeof CompanyScalarFieldEnum>;
|
||||
}
|
||||
31
server/src/api/@generated/company/find-many-company.args.ts
Normal file
31
server/src/api/@generated/company/find-many-company.args.ts
Normal file
@ -0,0 +1,31 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CompanyWhereInput } from './company-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CompanyOrderByWithRelationInput } from './company-order-by-with-relation.input';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { CompanyScalarFieldEnum } from './company-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindManyCompanyArgs {
|
||||
|
||||
@Field(() => CompanyWhereInput, {nullable:true})
|
||||
@Type(() => CompanyWhereInput)
|
||||
where?: CompanyWhereInput;
|
||||
|
||||
@Field(() => [CompanyOrderByWithRelationInput], {nullable:true})
|
||||
orderBy?: Array<CompanyOrderByWithRelationInput>;
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:true})
|
||||
cursor?: CompanyWhereUniqueInput;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
skip?: number;
|
||||
|
||||
@Field(() => [CompanyScalarFieldEnum], {nullable:true})
|
||||
distinct?: Array<keyof typeof CompanyScalarFieldEnum>;
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class FindUniqueCompanyOrThrowArgs {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:false})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class FindUniqueCompanyArgs {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:false})
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user