/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Company` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums" import type * as Prisma from "../internal/prismaNamespace" /** * Model Company * */ export type CompanyModel = runtime.Types.Result.DefaultSelection export type AggregateCompany = { _count: CompanyCountAggregateOutputType | null _avg: CompanyAvgAggregateOutputType | null _sum: CompanySumAggregateOutputType | null _min: CompanyMinAggregateOutputType | null _max: CompanyMaxAggregateOutputType | null } export type CompanyAvgAggregateOutputType = { contractedHoursPerMonth: number | null } export type CompanySumAggregateOutputType = { contractedHoursPerMonth: number | null } export type CompanyMinAggregateOutputType = { id: string | null tenantId: string | null name: string | null slug: string | null provisioningCode: string | null isAvulso: boolean | null contractedHoursPerMonth: number | null cnpj: string | null domain: string | null phone: string | null description: string | null address: string | null legalName: string | null tradeName: string | null stateRegistration: string | null stateRegistrationType: $Enums.CompanyStateRegistrationType | null primaryCnae: string | null timezone: string | null supportEmail: string | null billingEmail: string | null hasBranches: boolean | null privacyPolicyAccepted: boolean | null privacyPolicyReference: string | null notes: string | null createdAt: Date | null updatedAt: Date | null } export type CompanyMaxAggregateOutputType = { id: string | null tenantId: string | null name: string | null slug: string | null provisioningCode: string | null isAvulso: boolean | null contractedHoursPerMonth: number | null cnpj: string | null domain: string | null phone: string | null description: string | null address: string | null legalName: string | null tradeName: string | null stateRegistration: string | null stateRegistrationType: $Enums.CompanyStateRegistrationType | null primaryCnae: string | null timezone: string | null supportEmail: string | null billingEmail: string | null hasBranches: boolean | null privacyPolicyAccepted: boolean | null privacyPolicyReference: string | null notes: string | null createdAt: Date | null updatedAt: Date | null } export type CompanyCountAggregateOutputType = { id: number tenantId: number name: number slug: number provisioningCode: number isAvulso: number contractedHoursPerMonth: number cnpj: number domain: number phone: number description: number address: number legalName: number tradeName: number stateRegistration: number stateRegistrationType: number primaryCnae: number timezone: number businessHours: number supportEmail: number billingEmail: number contactPreferences: number clientDomains: number communicationChannels: number fiscalAddress: number hasBranches: number regulatedEnvironments: number privacyPolicyAccepted: number privacyPolicyReference: number privacyPolicyMetadata: number contacts: number locations: number contracts: number sla: number tags: number customFields: number notes: number createdAt: number updatedAt: number _all: number } export type CompanyAvgAggregateInputType = { contractedHoursPerMonth?: true } export type CompanySumAggregateInputType = { contractedHoursPerMonth?: true } export type CompanyMinAggregateInputType = { id?: true tenantId?: true name?: true slug?: true provisioningCode?: true isAvulso?: true contractedHoursPerMonth?: true cnpj?: true domain?: true phone?: true description?: true address?: true legalName?: true tradeName?: true stateRegistration?: true stateRegistrationType?: true primaryCnae?: true timezone?: true supportEmail?: true billingEmail?: true hasBranches?: true privacyPolicyAccepted?: true privacyPolicyReference?: true notes?: true createdAt?: true updatedAt?: true } export type CompanyMaxAggregateInputType = { id?: true tenantId?: true name?: true slug?: true provisioningCode?: true isAvulso?: true contractedHoursPerMonth?: true cnpj?: true domain?: true phone?: true description?: true address?: true legalName?: true tradeName?: true stateRegistration?: true stateRegistrationType?: true primaryCnae?: true timezone?: true supportEmail?: true billingEmail?: true hasBranches?: true privacyPolicyAccepted?: true privacyPolicyReference?: true notes?: true createdAt?: true updatedAt?: true } export type CompanyCountAggregateInputType = { id?: true tenantId?: true name?: true slug?: true provisioningCode?: true isAvulso?: true contractedHoursPerMonth?: true cnpj?: true domain?: true phone?: true description?: true address?: true legalName?: true tradeName?: true stateRegistration?: true stateRegistrationType?: true primaryCnae?: true timezone?: true businessHours?: true supportEmail?: true billingEmail?: true contactPreferences?: true clientDomains?: true communicationChannels?: true fiscalAddress?: true hasBranches?: true regulatedEnvironments?: true privacyPolicyAccepted?: true privacyPolicyReference?: true privacyPolicyMetadata?: true contacts?: true locations?: true contracts?: true sla?: true tags?: true customFields?: true notes?: true createdAt?: true updatedAt?: true _all?: true } export type CompanyAggregateArgs = { /** * Filter which Company to aggregate. */ where?: Prisma.CompanyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Companies to fetch. */ orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.CompanyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Companies from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Companies. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Companies **/ _count?: true | CompanyCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CompanyAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CompanySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CompanyMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CompanyMaxAggregateInputType } export type GetCompanyAggregateType = { [P in keyof T & keyof AggregateCompany]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type CompanyGroupByArgs = { where?: Prisma.CompanyWhereInput orderBy?: Prisma.CompanyOrderByWithAggregationInput | Prisma.CompanyOrderByWithAggregationInput[] by: Prisma.CompanyScalarFieldEnum[] | Prisma.CompanyScalarFieldEnum having?: Prisma.CompanyScalarWhereWithAggregatesInput take?: number skip?: number _count?: CompanyCountAggregateInputType | true _avg?: CompanyAvgAggregateInputType _sum?: CompanySumAggregateInputType _min?: CompanyMinAggregateInputType _max?: CompanyMaxAggregateInputType } export type CompanyGroupByOutputType = { id: string tenantId: string name: string slug: string provisioningCode: string isAvulso: boolean contractedHoursPerMonth: number | null cnpj: string | null domain: string | null phone: string | null description: string | null address: string | null legalName: string | null tradeName: string | null stateRegistration: string | null stateRegistrationType: $Enums.CompanyStateRegistrationType | null primaryCnae: string | null timezone: string | null businessHours: runtime.JsonValue | null supportEmail: string | null billingEmail: string | null contactPreferences: runtime.JsonValue | null clientDomains: runtime.JsonValue | null communicationChannels: runtime.JsonValue | null fiscalAddress: runtime.JsonValue | null hasBranches: boolean regulatedEnvironments: runtime.JsonValue | null privacyPolicyAccepted: boolean privacyPolicyReference: string | null privacyPolicyMetadata: runtime.JsonValue | null contacts: runtime.JsonValue | null locations: runtime.JsonValue | null contracts: runtime.JsonValue | null sla: runtime.JsonValue | null tags: runtime.JsonValue | null customFields: runtime.JsonValue | null notes: string | null createdAt: Date updatedAt: Date _count: CompanyCountAggregateOutputType | null _avg: CompanyAvgAggregateOutputType | null _sum: CompanySumAggregateOutputType | null _min: CompanyMinAggregateOutputType | null _max: CompanyMaxAggregateOutputType | null } type GetCompanyGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof CompanyGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type CompanyWhereInput = { AND?: Prisma.CompanyWhereInput | Prisma.CompanyWhereInput[] OR?: Prisma.CompanyWhereInput[] NOT?: Prisma.CompanyWhereInput | Prisma.CompanyWhereInput[] id?: Prisma.StringFilter<"Company"> | string tenantId?: Prisma.StringFilter<"Company"> | string name?: Prisma.StringFilter<"Company"> | string slug?: Prisma.StringFilter<"Company"> | string provisioningCode?: Prisma.StringFilter<"Company"> | string isAvulso?: Prisma.BoolFilter<"Company"> | boolean contractedHoursPerMonth?: Prisma.FloatNullableFilter<"Company"> | number | null cnpj?: Prisma.StringNullableFilter<"Company"> | string | null domain?: Prisma.StringNullableFilter<"Company"> | string | null phone?: Prisma.StringNullableFilter<"Company"> | string | null description?: Prisma.StringNullableFilter<"Company"> | string | null address?: Prisma.StringNullableFilter<"Company"> | string | null legalName?: Prisma.StringNullableFilter<"Company"> | string | null tradeName?: Prisma.StringNullableFilter<"Company"> | string | null stateRegistration?: Prisma.StringNullableFilter<"Company"> | string | null stateRegistrationType?: Prisma.EnumCompanyStateRegistrationTypeNullableFilter<"Company"> | $Enums.CompanyStateRegistrationType | null primaryCnae?: Prisma.StringNullableFilter<"Company"> | string | null timezone?: Prisma.StringNullableFilter<"Company"> | string | null businessHours?: Prisma.JsonNullableFilter<"Company"> supportEmail?: Prisma.StringNullableFilter<"Company"> | string | null billingEmail?: Prisma.StringNullableFilter<"Company"> | string | null contactPreferences?: Prisma.JsonNullableFilter<"Company"> clientDomains?: Prisma.JsonNullableFilter<"Company"> communicationChannels?: Prisma.JsonNullableFilter<"Company"> fiscalAddress?: Prisma.JsonNullableFilter<"Company"> hasBranches?: Prisma.BoolFilter<"Company"> | boolean regulatedEnvironments?: Prisma.JsonNullableFilter<"Company"> privacyPolicyAccepted?: Prisma.BoolFilter<"Company"> | boolean privacyPolicyReference?: Prisma.StringNullableFilter<"Company"> | string | null privacyPolicyMetadata?: Prisma.JsonNullableFilter<"Company"> contacts?: Prisma.JsonNullableFilter<"Company"> locations?: Prisma.JsonNullableFilter<"Company"> contracts?: Prisma.JsonNullableFilter<"Company"> sla?: Prisma.JsonNullableFilter<"Company"> tags?: Prisma.JsonNullableFilter<"Company"> customFields?: Prisma.JsonNullableFilter<"Company"> notes?: Prisma.StringNullableFilter<"Company"> | string | null createdAt?: Prisma.DateTimeFilter<"Company"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Company"> | Date | string users?: Prisma.UserListRelationFilter tickets?: Prisma.TicketListRelationFilter } export type CompanyOrderByWithRelationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder provisioningCode?: Prisma.SortOrder isAvulso?: Prisma.SortOrder contractedHoursPerMonth?: Prisma.SortOrderInput | Prisma.SortOrder cnpj?: Prisma.SortOrderInput | Prisma.SortOrder domain?: Prisma.SortOrderInput | Prisma.SortOrder phone?: Prisma.SortOrderInput | Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder address?: Prisma.SortOrderInput | Prisma.SortOrder legalName?: Prisma.SortOrderInput | Prisma.SortOrder tradeName?: Prisma.SortOrderInput | Prisma.SortOrder stateRegistration?: Prisma.SortOrderInput | Prisma.SortOrder stateRegistrationType?: Prisma.SortOrderInput | Prisma.SortOrder primaryCnae?: Prisma.SortOrderInput | Prisma.SortOrder timezone?: Prisma.SortOrderInput | Prisma.SortOrder businessHours?: Prisma.SortOrderInput | Prisma.SortOrder supportEmail?: Prisma.SortOrderInput | Prisma.SortOrder billingEmail?: Prisma.SortOrderInput | Prisma.SortOrder contactPreferences?: Prisma.SortOrderInput | Prisma.SortOrder clientDomains?: Prisma.SortOrderInput | Prisma.SortOrder communicationChannels?: Prisma.SortOrderInput | Prisma.SortOrder fiscalAddress?: Prisma.SortOrderInput | Prisma.SortOrder hasBranches?: Prisma.SortOrder regulatedEnvironments?: Prisma.SortOrderInput | Prisma.SortOrder privacyPolicyAccepted?: Prisma.SortOrder privacyPolicyReference?: Prisma.SortOrderInput | Prisma.SortOrder privacyPolicyMetadata?: Prisma.SortOrderInput | Prisma.SortOrder contacts?: Prisma.SortOrderInput | Prisma.SortOrder locations?: Prisma.SortOrderInput | Prisma.SortOrder contracts?: Prisma.SortOrderInput | Prisma.SortOrder sla?: Prisma.SortOrderInput | Prisma.SortOrder tags?: Prisma.SortOrderInput | Prisma.SortOrder customFields?: Prisma.SortOrderInput | Prisma.SortOrder notes?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder users?: Prisma.UserOrderByRelationAggregateInput tickets?: Prisma.TicketOrderByRelationAggregateInput } export type CompanyWhereUniqueInput = Prisma.AtLeast<{ id?: string provisioningCode?: string tenantId_slug?: Prisma.CompanyTenantIdSlugCompoundUniqueInput AND?: Prisma.CompanyWhereInput | Prisma.CompanyWhereInput[] OR?: Prisma.CompanyWhereInput[] NOT?: Prisma.CompanyWhereInput | Prisma.CompanyWhereInput[] tenantId?: Prisma.StringFilter<"Company"> | string name?: Prisma.StringFilter<"Company"> | string slug?: Prisma.StringFilter<"Company"> | string isAvulso?: Prisma.BoolFilter<"Company"> | boolean contractedHoursPerMonth?: Prisma.FloatNullableFilter<"Company"> | number | null cnpj?: Prisma.StringNullableFilter<"Company"> | string | null domain?: Prisma.StringNullableFilter<"Company"> | string | null phone?: Prisma.StringNullableFilter<"Company"> | string | null description?: Prisma.StringNullableFilter<"Company"> | string | null address?: Prisma.StringNullableFilter<"Company"> | string | null legalName?: Prisma.StringNullableFilter<"Company"> | string | null tradeName?: Prisma.StringNullableFilter<"Company"> | string | null stateRegistration?: Prisma.StringNullableFilter<"Company"> | string | null stateRegistrationType?: Prisma.EnumCompanyStateRegistrationTypeNullableFilter<"Company"> | $Enums.CompanyStateRegistrationType | null primaryCnae?: Prisma.StringNullableFilter<"Company"> | string | null timezone?: Prisma.StringNullableFilter<"Company"> | string | null businessHours?: Prisma.JsonNullableFilter<"Company"> supportEmail?: Prisma.StringNullableFilter<"Company"> | string | null billingEmail?: Prisma.StringNullableFilter<"Company"> | string | null contactPreferences?: Prisma.JsonNullableFilter<"Company"> clientDomains?: Prisma.JsonNullableFilter<"Company"> communicationChannels?: Prisma.JsonNullableFilter<"Company"> fiscalAddress?: Prisma.JsonNullableFilter<"Company"> hasBranches?: Prisma.BoolFilter<"Company"> | boolean regulatedEnvironments?: Prisma.JsonNullableFilter<"Company"> privacyPolicyAccepted?: Prisma.BoolFilter<"Company"> | boolean privacyPolicyReference?: Prisma.StringNullableFilter<"Company"> | string | null privacyPolicyMetadata?: Prisma.JsonNullableFilter<"Company"> contacts?: Prisma.JsonNullableFilter<"Company"> locations?: Prisma.JsonNullableFilter<"Company"> contracts?: Prisma.JsonNullableFilter<"Company"> sla?: Prisma.JsonNullableFilter<"Company"> tags?: Prisma.JsonNullableFilter<"Company"> customFields?: Prisma.JsonNullableFilter<"Company"> notes?: Prisma.StringNullableFilter<"Company"> | string | null createdAt?: Prisma.DateTimeFilter<"Company"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Company"> | Date | string users?: Prisma.UserListRelationFilter tickets?: Prisma.TicketListRelationFilter }, "id" | "provisioningCode" | "tenantId_slug"> export type CompanyOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder provisioningCode?: Prisma.SortOrder isAvulso?: Prisma.SortOrder contractedHoursPerMonth?: Prisma.SortOrderInput | Prisma.SortOrder cnpj?: Prisma.SortOrderInput | Prisma.SortOrder domain?: Prisma.SortOrderInput | Prisma.SortOrder phone?: Prisma.SortOrderInput | Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder address?: Prisma.SortOrderInput | Prisma.SortOrder legalName?: Prisma.SortOrderInput | Prisma.SortOrder tradeName?: Prisma.SortOrderInput | Prisma.SortOrder stateRegistration?: Prisma.SortOrderInput | Prisma.SortOrder stateRegistrationType?: Prisma.SortOrderInput | Prisma.SortOrder primaryCnae?: Prisma.SortOrderInput | Prisma.SortOrder timezone?: Prisma.SortOrderInput | Prisma.SortOrder businessHours?: Prisma.SortOrderInput | Prisma.SortOrder supportEmail?: Prisma.SortOrderInput | Prisma.SortOrder billingEmail?: Prisma.SortOrderInput | Prisma.SortOrder contactPreferences?: Prisma.SortOrderInput | Prisma.SortOrder clientDomains?: Prisma.SortOrderInput | Prisma.SortOrder communicationChannels?: Prisma.SortOrderInput | Prisma.SortOrder fiscalAddress?: Prisma.SortOrderInput | Prisma.SortOrder hasBranches?: Prisma.SortOrder regulatedEnvironments?: Prisma.SortOrderInput | Prisma.SortOrder privacyPolicyAccepted?: Prisma.SortOrder privacyPolicyReference?: Prisma.SortOrderInput | Prisma.SortOrder privacyPolicyMetadata?: Prisma.SortOrderInput | Prisma.SortOrder contacts?: Prisma.SortOrderInput | Prisma.SortOrder locations?: Prisma.SortOrderInput | Prisma.SortOrder contracts?: Prisma.SortOrderInput | Prisma.SortOrder sla?: Prisma.SortOrderInput | Prisma.SortOrder tags?: Prisma.SortOrderInput | Prisma.SortOrder customFields?: Prisma.SortOrderInput | Prisma.SortOrder notes?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.CompanyCountOrderByAggregateInput _avg?: Prisma.CompanyAvgOrderByAggregateInput _max?: Prisma.CompanyMaxOrderByAggregateInput _min?: Prisma.CompanyMinOrderByAggregateInput _sum?: Prisma.CompanySumOrderByAggregateInput } export type CompanyScalarWhereWithAggregatesInput = { AND?: Prisma.CompanyScalarWhereWithAggregatesInput | Prisma.CompanyScalarWhereWithAggregatesInput[] OR?: Prisma.CompanyScalarWhereWithAggregatesInput[] NOT?: Prisma.CompanyScalarWhereWithAggregatesInput | Prisma.CompanyScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Company"> | string tenantId?: Prisma.StringWithAggregatesFilter<"Company"> | string name?: Prisma.StringWithAggregatesFilter<"Company"> | string slug?: Prisma.StringWithAggregatesFilter<"Company"> | string provisioningCode?: Prisma.StringWithAggregatesFilter<"Company"> | string isAvulso?: Prisma.BoolWithAggregatesFilter<"Company"> | boolean contractedHoursPerMonth?: Prisma.FloatNullableWithAggregatesFilter<"Company"> | number | null cnpj?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null domain?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null phone?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null description?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null address?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null legalName?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null tradeName?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null stateRegistration?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null stateRegistrationType?: Prisma.EnumCompanyStateRegistrationTypeNullableWithAggregatesFilter<"Company"> | $Enums.CompanyStateRegistrationType | null primaryCnae?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null timezone?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null businessHours?: Prisma.JsonNullableWithAggregatesFilter<"Company"> supportEmail?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null billingEmail?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null contactPreferences?: Prisma.JsonNullableWithAggregatesFilter<"Company"> clientDomains?: Prisma.JsonNullableWithAggregatesFilter<"Company"> communicationChannels?: Prisma.JsonNullableWithAggregatesFilter<"Company"> fiscalAddress?: Prisma.JsonNullableWithAggregatesFilter<"Company"> hasBranches?: Prisma.BoolWithAggregatesFilter<"Company"> | boolean regulatedEnvironments?: Prisma.JsonNullableWithAggregatesFilter<"Company"> privacyPolicyAccepted?: Prisma.BoolWithAggregatesFilter<"Company"> | boolean privacyPolicyReference?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null privacyPolicyMetadata?: Prisma.JsonNullableWithAggregatesFilter<"Company"> contacts?: Prisma.JsonNullableWithAggregatesFilter<"Company"> locations?: Prisma.JsonNullableWithAggregatesFilter<"Company"> contracts?: Prisma.JsonNullableWithAggregatesFilter<"Company"> sla?: Prisma.JsonNullableWithAggregatesFilter<"Company"> tags?: Prisma.JsonNullableWithAggregatesFilter<"Company"> customFields?: Prisma.JsonNullableWithAggregatesFilter<"Company"> notes?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null createdAt?: Prisma.DateTimeWithAggregatesFilter<"Company"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Company"> | Date | string } export type CompanyCreateInput = { id?: string tenantId: string name: string slug: string provisioningCode: string isAvulso?: boolean contractedHoursPerMonth?: number | null cnpj?: string | null domain?: string | null phone?: string | null description?: string | null address?: string | null legalName?: string | null tradeName?: string | null stateRegistration?: string | null stateRegistrationType?: $Enums.CompanyStateRegistrationType | null primaryCnae?: string | null timezone?: string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: string | null billingEmail?: string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: boolean privacyPolicyReference?: string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: string | null createdAt?: Date | string updatedAt?: Date | string users?: Prisma.UserCreateNestedManyWithoutCompanyInput tickets?: Prisma.TicketCreateNestedManyWithoutCompanyInput } export type CompanyUncheckedCreateInput = { id?: string tenantId: string name: string slug: string provisioningCode: string isAvulso?: boolean contractedHoursPerMonth?: number | null cnpj?: string | null domain?: string | null phone?: string | null description?: string | null address?: string | null legalName?: string | null tradeName?: string | null stateRegistration?: string | null stateRegistrationType?: $Enums.CompanyStateRegistrationType | null primaryCnae?: string | null timezone?: string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: string | null billingEmail?: string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: boolean privacyPolicyReference?: string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: string | null createdAt?: Date | string updatedAt?: Date | string users?: Prisma.UserUncheckedCreateNestedManyWithoutCompanyInput tickets?: Prisma.TicketUncheckedCreateNestedManyWithoutCompanyInput } export type CompanyUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string users?: Prisma.UserUpdateManyWithoutCompanyNestedInput tickets?: Prisma.TicketUpdateManyWithoutCompanyNestedInput } export type CompanyUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string users?: Prisma.UserUncheckedUpdateManyWithoutCompanyNestedInput tickets?: Prisma.TicketUncheckedUpdateManyWithoutCompanyNestedInput } export type CompanyCreateManyInput = { id?: string tenantId: string name: string slug: string provisioningCode: string isAvulso?: boolean contractedHoursPerMonth?: number | null cnpj?: string | null domain?: string | null phone?: string | null description?: string | null address?: string | null legalName?: string | null tradeName?: string | null stateRegistration?: string | null stateRegistrationType?: $Enums.CompanyStateRegistrationType | null primaryCnae?: string | null timezone?: string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: string | null billingEmail?: string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: boolean privacyPolicyReference?: string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type CompanyUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CompanyUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CompanyTenantIdSlugCompoundUniqueInput = { tenantId: string slug: string } export type CompanyCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder provisioningCode?: Prisma.SortOrder isAvulso?: Prisma.SortOrder contractedHoursPerMonth?: Prisma.SortOrder cnpj?: Prisma.SortOrder domain?: Prisma.SortOrder phone?: Prisma.SortOrder description?: Prisma.SortOrder address?: Prisma.SortOrder legalName?: Prisma.SortOrder tradeName?: Prisma.SortOrder stateRegistration?: Prisma.SortOrder stateRegistrationType?: Prisma.SortOrder primaryCnae?: Prisma.SortOrder timezone?: Prisma.SortOrder businessHours?: Prisma.SortOrder supportEmail?: Prisma.SortOrder billingEmail?: Prisma.SortOrder contactPreferences?: Prisma.SortOrder clientDomains?: Prisma.SortOrder communicationChannels?: Prisma.SortOrder fiscalAddress?: Prisma.SortOrder hasBranches?: Prisma.SortOrder regulatedEnvironments?: Prisma.SortOrder privacyPolicyAccepted?: Prisma.SortOrder privacyPolicyReference?: Prisma.SortOrder privacyPolicyMetadata?: Prisma.SortOrder contacts?: Prisma.SortOrder locations?: Prisma.SortOrder contracts?: Prisma.SortOrder sla?: Prisma.SortOrder tags?: Prisma.SortOrder customFields?: Prisma.SortOrder notes?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type CompanyAvgOrderByAggregateInput = { contractedHoursPerMonth?: Prisma.SortOrder } export type CompanyMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder provisioningCode?: Prisma.SortOrder isAvulso?: Prisma.SortOrder contractedHoursPerMonth?: Prisma.SortOrder cnpj?: Prisma.SortOrder domain?: Prisma.SortOrder phone?: Prisma.SortOrder description?: Prisma.SortOrder address?: Prisma.SortOrder legalName?: Prisma.SortOrder tradeName?: Prisma.SortOrder stateRegistration?: Prisma.SortOrder stateRegistrationType?: Prisma.SortOrder primaryCnae?: Prisma.SortOrder timezone?: Prisma.SortOrder supportEmail?: Prisma.SortOrder billingEmail?: Prisma.SortOrder hasBranches?: Prisma.SortOrder privacyPolicyAccepted?: Prisma.SortOrder privacyPolicyReference?: Prisma.SortOrder notes?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type CompanyMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder provisioningCode?: Prisma.SortOrder isAvulso?: Prisma.SortOrder contractedHoursPerMonth?: Prisma.SortOrder cnpj?: Prisma.SortOrder domain?: Prisma.SortOrder phone?: Prisma.SortOrder description?: Prisma.SortOrder address?: Prisma.SortOrder legalName?: Prisma.SortOrder tradeName?: Prisma.SortOrder stateRegistration?: Prisma.SortOrder stateRegistrationType?: Prisma.SortOrder primaryCnae?: Prisma.SortOrder timezone?: Prisma.SortOrder supportEmail?: Prisma.SortOrder billingEmail?: Prisma.SortOrder hasBranches?: Prisma.SortOrder privacyPolicyAccepted?: Prisma.SortOrder privacyPolicyReference?: Prisma.SortOrder notes?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type CompanySumOrderByAggregateInput = { contractedHoursPerMonth?: Prisma.SortOrder } export type CompanyNullableScalarRelationFilter = { is?: Prisma.CompanyWhereInput | null isNot?: Prisma.CompanyWhereInput | null } export type NullableFloatFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput = { set?: $Enums.CompanyStateRegistrationType | null } export type CompanyCreateNestedOneWithoutUsersInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutUsersInput connect?: Prisma.CompanyWhereUniqueInput } export type CompanyUpdateOneWithoutUsersNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutUsersInput upsert?: Prisma.CompanyUpsertWithoutUsersInput disconnect?: Prisma.CompanyWhereInput | boolean delete?: Prisma.CompanyWhereInput | boolean connect?: Prisma.CompanyWhereUniqueInput update?: Prisma.XOR, Prisma.CompanyUncheckedUpdateWithoutUsersInput> } export type CompanyCreateNestedOneWithoutTicketsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutTicketsInput connect?: Prisma.CompanyWhereUniqueInput } export type CompanyUpdateOneWithoutTicketsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutTicketsInput upsert?: Prisma.CompanyUpsertWithoutTicketsInput disconnect?: Prisma.CompanyWhereInput | boolean delete?: Prisma.CompanyWhereInput | boolean connect?: Prisma.CompanyWhereUniqueInput update?: Prisma.XOR, Prisma.CompanyUncheckedUpdateWithoutTicketsInput> } export type CompanyCreateWithoutUsersInput = { id?: string tenantId: string name: string slug: string provisioningCode: string isAvulso?: boolean contractedHoursPerMonth?: number | null cnpj?: string | null domain?: string | null phone?: string | null description?: string | null address?: string | null legalName?: string | null tradeName?: string | null stateRegistration?: string | null stateRegistrationType?: $Enums.CompanyStateRegistrationType | null primaryCnae?: string | null timezone?: string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: string | null billingEmail?: string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: boolean privacyPolicyReference?: string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: string | null createdAt?: Date | string updatedAt?: Date | string tickets?: Prisma.TicketCreateNestedManyWithoutCompanyInput } export type CompanyUncheckedCreateWithoutUsersInput = { id?: string tenantId: string name: string slug: string provisioningCode: string isAvulso?: boolean contractedHoursPerMonth?: number | null cnpj?: string | null domain?: string | null phone?: string | null description?: string | null address?: string | null legalName?: string | null tradeName?: string | null stateRegistration?: string | null stateRegistrationType?: $Enums.CompanyStateRegistrationType | null primaryCnae?: string | null timezone?: string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: string | null billingEmail?: string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: boolean privacyPolicyReference?: string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: string | null createdAt?: Date | string updatedAt?: Date | string tickets?: Prisma.TicketUncheckedCreateNestedManyWithoutCompanyInput } export type CompanyCreateOrConnectWithoutUsersInput = { where: Prisma.CompanyWhereUniqueInput create: Prisma.XOR } export type CompanyUpsertWithoutUsersInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CompanyWhereInput } export type CompanyUpdateToOneWithWhereWithoutUsersInput = { where?: Prisma.CompanyWhereInput data: Prisma.XOR } export type CompanyUpdateWithoutUsersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tickets?: Prisma.TicketUpdateManyWithoutCompanyNestedInput } export type CompanyUncheckedUpdateWithoutUsersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tickets?: Prisma.TicketUncheckedUpdateManyWithoutCompanyNestedInput } export type CompanyCreateWithoutTicketsInput = { id?: string tenantId: string name: string slug: string provisioningCode: string isAvulso?: boolean contractedHoursPerMonth?: number | null cnpj?: string | null domain?: string | null phone?: string | null description?: string | null address?: string | null legalName?: string | null tradeName?: string | null stateRegistration?: string | null stateRegistrationType?: $Enums.CompanyStateRegistrationType | null primaryCnae?: string | null timezone?: string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: string | null billingEmail?: string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: boolean privacyPolicyReference?: string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: string | null createdAt?: Date | string updatedAt?: Date | string users?: Prisma.UserCreateNestedManyWithoutCompanyInput } export type CompanyUncheckedCreateWithoutTicketsInput = { id?: string tenantId: string name: string slug: string provisioningCode: string isAvulso?: boolean contractedHoursPerMonth?: number | null cnpj?: string | null domain?: string | null phone?: string | null description?: string | null address?: string | null legalName?: string | null tradeName?: string | null stateRegistration?: string | null stateRegistrationType?: $Enums.CompanyStateRegistrationType | null primaryCnae?: string | null timezone?: string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: string | null billingEmail?: string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: boolean privacyPolicyReference?: string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: string | null createdAt?: Date | string updatedAt?: Date | string users?: Prisma.UserUncheckedCreateNestedManyWithoutCompanyInput } export type CompanyCreateOrConnectWithoutTicketsInput = { where: Prisma.CompanyWhereUniqueInput create: Prisma.XOR } export type CompanyUpsertWithoutTicketsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CompanyWhereInput } export type CompanyUpdateToOneWithWhereWithoutTicketsInput = { where?: Prisma.CompanyWhereInput data: Prisma.XOR } export type CompanyUpdateWithoutTicketsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string users?: Prisma.UserUpdateManyWithoutCompanyNestedInput } export type CompanyUncheckedUpdateWithoutTicketsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string users?: Prisma.UserUncheckedUpdateManyWithoutCompanyNestedInput } /** * Count Type CompanyCountOutputType */ export type CompanyCountOutputType = { users: number tickets: number } export type CompanyCountOutputTypeSelect = { users?: boolean | CompanyCountOutputTypeCountUsersArgs tickets?: boolean | CompanyCountOutputTypeCountTicketsArgs } /** * CompanyCountOutputType without action */ export type CompanyCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CompanyCountOutputType */ select?: Prisma.CompanyCountOutputTypeSelect | null } /** * CompanyCountOutputType without action */ export type CompanyCountOutputTypeCountUsersArgs = { where?: Prisma.UserWhereInput } /** * CompanyCountOutputType without action */ export type CompanyCountOutputTypeCountTicketsArgs = { where?: Prisma.TicketWhereInput } export type CompanySelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean name?: boolean slug?: boolean provisioningCode?: boolean isAvulso?: boolean contractedHoursPerMonth?: boolean cnpj?: boolean domain?: boolean phone?: boolean description?: boolean address?: boolean legalName?: boolean tradeName?: boolean stateRegistration?: boolean stateRegistrationType?: boolean primaryCnae?: boolean timezone?: boolean businessHours?: boolean supportEmail?: boolean billingEmail?: boolean contactPreferences?: boolean clientDomains?: boolean communicationChannels?: boolean fiscalAddress?: boolean hasBranches?: boolean regulatedEnvironments?: boolean privacyPolicyAccepted?: boolean privacyPolicyReference?: boolean privacyPolicyMetadata?: boolean contacts?: boolean locations?: boolean contracts?: boolean sla?: boolean tags?: boolean customFields?: boolean notes?: boolean createdAt?: boolean updatedAt?: boolean users?: boolean | Prisma.Company$usersArgs tickets?: boolean | Prisma.Company$ticketsArgs _count?: boolean | Prisma.CompanyCountOutputTypeDefaultArgs }, ExtArgs["result"]["company"]> export type CompanySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean name?: boolean slug?: boolean provisioningCode?: boolean isAvulso?: boolean contractedHoursPerMonth?: boolean cnpj?: boolean domain?: boolean phone?: boolean description?: boolean address?: boolean legalName?: boolean tradeName?: boolean stateRegistration?: boolean stateRegistrationType?: boolean primaryCnae?: boolean timezone?: boolean businessHours?: boolean supportEmail?: boolean billingEmail?: boolean contactPreferences?: boolean clientDomains?: boolean communicationChannels?: boolean fiscalAddress?: boolean hasBranches?: boolean regulatedEnvironments?: boolean privacyPolicyAccepted?: boolean privacyPolicyReference?: boolean privacyPolicyMetadata?: boolean contacts?: boolean locations?: boolean contracts?: boolean sla?: boolean tags?: boolean customFields?: boolean notes?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["company"]> export type CompanySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean name?: boolean slug?: boolean provisioningCode?: boolean isAvulso?: boolean contractedHoursPerMonth?: boolean cnpj?: boolean domain?: boolean phone?: boolean description?: boolean address?: boolean legalName?: boolean tradeName?: boolean stateRegistration?: boolean stateRegistrationType?: boolean primaryCnae?: boolean timezone?: boolean businessHours?: boolean supportEmail?: boolean billingEmail?: boolean contactPreferences?: boolean clientDomains?: boolean communicationChannels?: boolean fiscalAddress?: boolean hasBranches?: boolean regulatedEnvironments?: boolean privacyPolicyAccepted?: boolean privacyPolicyReference?: boolean privacyPolicyMetadata?: boolean contacts?: boolean locations?: boolean contracts?: boolean sla?: boolean tags?: boolean customFields?: boolean notes?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["company"]> export type CompanySelectScalar = { id?: boolean tenantId?: boolean name?: boolean slug?: boolean provisioningCode?: boolean isAvulso?: boolean contractedHoursPerMonth?: boolean cnpj?: boolean domain?: boolean phone?: boolean description?: boolean address?: boolean legalName?: boolean tradeName?: boolean stateRegistration?: boolean stateRegistrationType?: boolean primaryCnae?: boolean timezone?: boolean businessHours?: boolean supportEmail?: boolean billingEmail?: boolean contactPreferences?: boolean clientDomains?: boolean communicationChannels?: boolean fiscalAddress?: boolean hasBranches?: boolean regulatedEnvironments?: boolean privacyPolicyAccepted?: boolean privacyPolicyReference?: boolean privacyPolicyMetadata?: boolean contacts?: boolean locations?: boolean contracts?: boolean sla?: boolean tags?: boolean customFields?: boolean notes?: boolean createdAt?: boolean updatedAt?: boolean } export type CompanyOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "name" | "slug" | "provisioningCode" | "isAvulso" | "contractedHoursPerMonth" | "cnpj" | "domain" | "phone" | "description" | "address" | "legalName" | "tradeName" | "stateRegistration" | "stateRegistrationType" | "primaryCnae" | "timezone" | "businessHours" | "supportEmail" | "billingEmail" | "contactPreferences" | "clientDomains" | "communicationChannels" | "fiscalAddress" | "hasBranches" | "regulatedEnvironments" | "privacyPolicyAccepted" | "privacyPolicyReference" | "privacyPolicyMetadata" | "contacts" | "locations" | "contracts" | "sla" | "tags" | "customFields" | "notes" | "createdAt" | "updatedAt", ExtArgs["result"]["company"]> export type CompanyInclude = { users?: boolean | Prisma.Company$usersArgs tickets?: boolean | Prisma.Company$ticketsArgs _count?: boolean | Prisma.CompanyCountOutputTypeDefaultArgs } export type CompanyIncludeCreateManyAndReturn = {} export type CompanyIncludeUpdateManyAndReturn = {} export type $CompanyPayload = { name: "Company" objects: { users: Prisma.$UserPayload[] tickets: Prisma.$TicketPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string name: string slug: string provisioningCode: string isAvulso: boolean contractedHoursPerMonth: number | null cnpj: string | null domain: string | null phone: string | null description: string | null address: string | null legalName: string | null tradeName: string | null stateRegistration: string | null stateRegistrationType: $Enums.CompanyStateRegistrationType | null primaryCnae: string | null timezone: string | null businessHours: runtime.JsonValue | null supportEmail: string | null billingEmail: string | null contactPreferences: runtime.JsonValue | null clientDomains: runtime.JsonValue | null communicationChannels: runtime.JsonValue | null fiscalAddress: runtime.JsonValue | null hasBranches: boolean regulatedEnvironments: runtime.JsonValue | null privacyPolicyAccepted: boolean privacyPolicyReference: string | null privacyPolicyMetadata: runtime.JsonValue | null contacts: runtime.JsonValue | null locations: runtime.JsonValue | null contracts: runtime.JsonValue | null sla: runtime.JsonValue | null tags: runtime.JsonValue | null customFields: runtime.JsonValue | null notes: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["company"]> composites: {} } export type CompanyGetPayload = runtime.Types.Result.GetResult export type CompanyCountArgs = Omit & { select?: CompanyCountAggregateInputType | true } export interface CompanyDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Company'], meta: { name: 'Company' } } /** * Find zero or one Company that matches the filter. * @param {CompanyFindUniqueArgs} args - Arguments to find a Company * @example * // Get one Company * const company = await prisma.company.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Company that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CompanyFindUniqueOrThrowArgs} args - Arguments to find a Company * @example * // Get one Company * const company = await prisma.company.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Company that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CompanyFindFirstArgs} args - Arguments to find a Company * @example * // Get one Company * const company = await prisma.company.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Company that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CompanyFindFirstOrThrowArgs} args - Arguments to find a Company * @example * // Get one Company * const company = await prisma.company.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Companies that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CompanyFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Companies * const companies = await prisma.company.findMany() * * // Get first 10 Companies * const companies = await prisma.company.findMany({ take: 10 }) * * // Only select the `id` * const companyWithIdOnly = await prisma.company.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Company. * @param {CompanyCreateArgs} args - Arguments to create a Company. * @example * // Create one Company * const Company = await prisma.company.create({ * data: { * // ... data to create a Company * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Companies. * @param {CompanyCreateManyArgs} args - Arguments to create many Companies. * @example * // Create many Companies * const company = await prisma.company.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Companies and returns the data saved in the database. * @param {CompanyCreateManyAndReturnArgs} args - Arguments to create many Companies. * @example * // Create many Companies * const company = await prisma.company.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Companies and only return the `id` * const companyWithIdOnly = await prisma.company.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Company. * @param {CompanyDeleteArgs} args - Arguments to delete one Company. * @example * // Delete one Company * const Company = await prisma.company.delete({ * where: { * // ... filter to delete one Company * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Company. * @param {CompanyUpdateArgs} args - Arguments to update one Company. * @example * // Update one Company * const company = await prisma.company.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Companies. * @param {CompanyDeleteManyArgs} args - Arguments to filter Companies to delete. * @example * // Delete a few Companies * const { count } = await prisma.company.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Companies. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CompanyUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Companies * const company = await prisma.company.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Companies and returns the data updated in the database. * @param {CompanyUpdateManyAndReturnArgs} args - Arguments to update many Companies. * @example * // Update many Companies * const company = await prisma.company.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Companies and only return the `id` * const companyWithIdOnly = await prisma.company.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Company. * @param {CompanyUpsertArgs} args - Arguments to update or create a Company. * @example * // Update or create a Company * const company = await prisma.company.upsert({ * create: { * // ... data to create a Company * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Company we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Companies. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CompanyCountArgs} args - Arguments to filter Companies to count. * @example * // Count the number of Companies * const count = await prisma.company.count({ * where: { * // ... the filter for the Companies we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Company. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CompanyAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Company. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CompanyGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends CompanyGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: CompanyGroupByArgs['orderBy'] } : { orderBy?: CompanyGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetCompanyGroupByPayload : Prisma.PrismaPromise /** * Fields of the Company model */ readonly fields: CompanyFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Company. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__CompanyClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" users = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> tickets = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the Company model */ export interface CompanyFieldRefs { readonly id: Prisma.FieldRef<"Company", 'String'> readonly tenantId: Prisma.FieldRef<"Company", 'String'> readonly name: Prisma.FieldRef<"Company", 'String'> readonly slug: Prisma.FieldRef<"Company", 'String'> readonly provisioningCode: Prisma.FieldRef<"Company", 'String'> readonly isAvulso: Prisma.FieldRef<"Company", 'Boolean'> readonly contractedHoursPerMonth: Prisma.FieldRef<"Company", 'Float'> readonly cnpj: Prisma.FieldRef<"Company", 'String'> readonly domain: Prisma.FieldRef<"Company", 'String'> readonly phone: Prisma.FieldRef<"Company", 'String'> readonly description: Prisma.FieldRef<"Company", 'String'> readonly address: Prisma.FieldRef<"Company", 'String'> readonly legalName: Prisma.FieldRef<"Company", 'String'> readonly tradeName: Prisma.FieldRef<"Company", 'String'> readonly stateRegistration: Prisma.FieldRef<"Company", 'String'> readonly stateRegistrationType: Prisma.FieldRef<"Company", 'CompanyStateRegistrationType'> readonly primaryCnae: Prisma.FieldRef<"Company", 'String'> readonly timezone: Prisma.FieldRef<"Company", 'String'> readonly businessHours: Prisma.FieldRef<"Company", 'Json'> readonly supportEmail: Prisma.FieldRef<"Company", 'String'> readonly billingEmail: Prisma.FieldRef<"Company", 'String'> readonly contactPreferences: Prisma.FieldRef<"Company", 'Json'> readonly clientDomains: Prisma.FieldRef<"Company", 'Json'> readonly communicationChannels: Prisma.FieldRef<"Company", 'Json'> readonly fiscalAddress: Prisma.FieldRef<"Company", 'Json'> readonly hasBranches: Prisma.FieldRef<"Company", 'Boolean'> readonly regulatedEnvironments: Prisma.FieldRef<"Company", 'Json'> readonly privacyPolicyAccepted: Prisma.FieldRef<"Company", 'Boolean'> readonly privacyPolicyReference: Prisma.FieldRef<"Company", 'String'> readonly privacyPolicyMetadata: Prisma.FieldRef<"Company", 'Json'> readonly contacts: Prisma.FieldRef<"Company", 'Json'> readonly locations: Prisma.FieldRef<"Company", 'Json'> readonly contracts: Prisma.FieldRef<"Company", 'Json'> readonly sla: Prisma.FieldRef<"Company", 'Json'> readonly tags: Prisma.FieldRef<"Company", 'Json'> readonly customFields: Prisma.FieldRef<"Company", 'Json'> readonly notes: Prisma.FieldRef<"Company", 'String'> readonly createdAt: Prisma.FieldRef<"Company", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Company", 'DateTime'> } // Custom InputTypes /** * Company findUnique */ export type CompanyFindUniqueArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | null /** * Filter, which Company to fetch. */ where: Prisma.CompanyWhereUniqueInput } /** * Company findUniqueOrThrow */ export type CompanyFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | null /** * Filter, which Company to fetch. */ where: Prisma.CompanyWhereUniqueInput } /** * Company findFirst */ export type CompanyFindFirstArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | null /** * Filter, which Company to fetch. */ where?: Prisma.CompanyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Companies to fetch. */ orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Companies. */ cursor?: Prisma.CompanyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Companies from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Companies. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Companies. */ distinct?: Prisma.CompanyScalarFieldEnum | Prisma.CompanyScalarFieldEnum[] } /** * Company findFirstOrThrow */ export type CompanyFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | null /** * Filter, which Company to fetch. */ where?: Prisma.CompanyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Companies to fetch. */ orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Companies. */ cursor?: Prisma.CompanyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Companies from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Companies. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Companies. */ distinct?: Prisma.CompanyScalarFieldEnum | Prisma.CompanyScalarFieldEnum[] } /** * Company findMany */ export type CompanyFindManyArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | null /** * Filter, which Companies to fetch. */ where?: Prisma.CompanyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Companies to fetch. */ orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Companies. */ cursor?: Prisma.CompanyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Companies from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Companies. */ skip?: number distinct?: Prisma.CompanyScalarFieldEnum | Prisma.CompanyScalarFieldEnum[] } /** * Company create */ export type CompanyCreateArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | null /** * The data needed to create a Company. */ data: Prisma.XOR } /** * Company createMany */ export type CompanyCreateManyArgs = { /** * The data used to create many Companies. */ data: Prisma.CompanyCreateManyInput | Prisma.CompanyCreateManyInput[] } /** * Company createManyAndReturn */ export type CompanyCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelectCreateManyAndReturn | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * The data used to create many Companies. */ data: Prisma.CompanyCreateManyInput | Prisma.CompanyCreateManyInput[] } /** * Company update */ export type CompanyUpdateArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | null /** * The data needed to update a Company. */ data: Prisma.XOR /** * Choose, which Company to update. */ where: Prisma.CompanyWhereUniqueInput } /** * Company updateMany */ export type CompanyUpdateManyArgs = { /** * The data used to update Companies. */ data: Prisma.XOR /** * Filter which Companies to update */ where?: Prisma.CompanyWhereInput /** * Limit how many Companies to update. */ limit?: number } /** * Company updateManyAndReturn */ export type CompanyUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelectUpdateManyAndReturn | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * The data used to update Companies. */ data: Prisma.XOR /** * Filter which Companies to update */ where?: Prisma.CompanyWhereInput /** * Limit how many Companies to update. */ limit?: number } /** * Company upsert */ export type CompanyUpsertArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | null /** * The filter to search for the Company to update in case it exists. */ where: Prisma.CompanyWhereUniqueInput /** * In case the Company found by the `where` argument doesn't exist, create a new Company with this data. */ create: Prisma.XOR /** * In case the Company was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Company delete */ export type CompanyDeleteArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | null /** * Filter which Company to delete. */ where: Prisma.CompanyWhereUniqueInput } /** * Company deleteMany */ export type CompanyDeleteManyArgs = { /** * Filter which Companies to delete */ where?: Prisma.CompanyWhereInput /** * Limit how many Companies to delete. */ limit?: number } /** * Company.users */ export type Company$usersArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null where?: Prisma.UserWhereInput orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] cursor?: Prisma.UserWhereUniqueInput take?: number skip?: number distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] } /** * Company.tickets */ export type Company$ticketsArgs = { /** * Select specific fields to fetch from the Ticket */ select?: Prisma.TicketSelect | null /** * Omit specific fields from the Ticket */ omit?: Prisma.TicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TicketInclude | null where?: Prisma.TicketWhereInput orderBy?: Prisma.TicketOrderByWithRelationInput | Prisma.TicketOrderByWithRelationInput[] cursor?: Prisma.TicketWhereUniqueInput take?: number skip?: number distinct?: Prisma.TicketScalarFieldEnum | Prisma.TicketScalarFieldEnum[] } /** * Company without action */ export type CompanyDefaultArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | null }