sistema-de-chamados/src/generated/prisma/models/Company.ts
2025-11-19 13:24:08 -03:00

2646 lines
108 KiB
TypeScript

/* !!! 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<Prisma.$CompanyPayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends CompanyAggregateArgs> = {
[P in keyof T & keyof AggregateCompany]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateCompany[P]>
: Prisma.GetScalarType<T[P], AggregateCompany[P]>
}
export type CompanyGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends CompanyGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<CompanyGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof CompanyGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], CompanyGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], CompanyGroupByOutputType[P]>
}
>
>
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<Prisma.CompanyCreateWithoutUsersInput, Prisma.CompanyUncheckedCreateWithoutUsersInput>
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutUsersInput
connect?: Prisma.CompanyWhereUniqueInput
}
export type CompanyUpdateOneWithoutUsersNestedInput = {
create?: Prisma.XOR<Prisma.CompanyCreateWithoutUsersInput, Prisma.CompanyUncheckedCreateWithoutUsersInput>
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutUsersInput
upsert?: Prisma.CompanyUpsertWithoutUsersInput
disconnect?: Prisma.CompanyWhereInput | boolean
delete?: Prisma.CompanyWhereInput | boolean
connect?: Prisma.CompanyWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.CompanyUpdateToOneWithWhereWithoutUsersInput, Prisma.CompanyUpdateWithoutUsersInput>, Prisma.CompanyUncheckedUpdateWithoutUsersInput>
}
export type CompanyCreateNestedOneWithoutTicketsInput = {
create?: Prisma.XOR<Prisma.CompanyCreateWithoutTicketsInput, Prisma.CompanyUncheckedCreateWithoutTicketsInput>
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutTicketsInput
connect?: Prisma.CompanyWhereUniqueInput
}
export type CompanyUpdateOneWithoutTicketsNestedInput = {
create?: Prisma.XOR<Prisma.CompanyCreateWithoutTicketsInput, Prisma.CompanyUncheckedCreateWithoutTicketsInput>
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutTicketsInput
upsert?: Prisma.CompanyUpsertWithoutTicketsInput
disconnect?: Prisma.CompanyWhereInput | boolean
delete?: Prisma.CompanyWhereInput | boolean
connect?: Prisma.CompanyWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.CompanyUpdateToOneWithWhereWithoutTicketsInput, Prisma.CompanyUpdateWithoutTicketsInput>, 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<Prisma.CompanyCreateWithoutUsersInput, Prisma.CompanyUncheckedCreateWithoutUsersInput>
}
export type CompanyUpsertWithoutUsersInput = {
update: Prisma.XOR<Prisma.CompanyUpdateWithoutUsersInput, Prisma.CompanyUncheckedUpdateWithoutUsersInput>
create: Prisma.XOR<Prisma.CompanyCreateWithoutUsersInput, Prisma.CompanyUncheckedCreateWithoutUsersInput>
where?: Prisma.CompanyWhereInput
}
export type CompanyUpdateToOneWithWhereWithoutUsersInput = {
where?: Prisma.CompanyWhereInput
data: Prisma.XOR<Prisma.CompanyUpdateWithoutUsersInput, Prisma.CompanyUncheckedUpdateWithoutUsersInput>
}
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<Prisma.CompanyCreateWithoutTicketsInput, Prisma.CompanyUncheckedCreateWithoutTicketsInput>
}
export type CompanyUpsertWithoutTicketsInput = {
update: Prisma.XOR<Prisma.CompanyUpdateWithoutTicketsInput, Prisma.CompanyUncheckedUpdateWithoutTicketsInput>
create: Prisma.XOR<Prisma.CompanyCreateWithoutTicketsInput, Prisma.CompanyUncheckedCreateWithoutTicketsInput>
where?: Prisma.CompanyWhereInput
}
export type CompanyUpdateToOneWithWhereWithoutTicketsInput = {
where?: Prisma.CompanyWhereInput
data: Prisma.XOR<Prisma.CompanyUpdateWithoutTicketsInput, Prisma.CompanyUncheckedUpdateWithoutTicketsInput>
}
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
users?: boolean | CompanyCountOutputTypeCountUsersArgs
tickets?: boolean | CompanyCountOutputTypeCountTicketsArgs
}
/**
* CompanyCountOutputType without action
*/
export type CompanyCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CompanyCountOutputType
*/
select?: Prisma.CompanyCountOutputTypeSelect<ExtArgs> | null
}
/**
* CompanyCountOutputType without action
*/
export type CompanyCountOutputTypeCountUsersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.UserWhereInput
}
/**
* CompanyCountOutputType without action
*/
export type CompanyCountOutputTypeCountTicketsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.TicketWhereInput
}
export type CompanySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
tickets?: boolean | Prisma.Company$ticketsArgs<ExtArgs>
_count?: boolean | Prisma.CompanyCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["company"]>
export type CompanySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
users?: boolean | Prisma.Company$usersArgs<ExtArgs>
tickets?: boolean | Prisma.Company$ticketsArgs<ExtArgs>
_count?: boolean | Prisma.CompanyCountOutputTypeDefaultArgs<ExtArgs>
}
export type CompanyIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type CompanyIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type $CompanyPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Company"
objects: {
users: Prisma.$UserPayload<ExtArgs>[]
tickets: Prisma.$TicketPayload<ExtArgs>[]
}
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<S extends boolean | null | undefined | CompanyDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CompanyPayload, S>
export type CompanyCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<CompanyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: CompanyCountAggregateInputType | true
}
export interface CompanyDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends CompanyFindUniqueArgs>(args: Prisma.SelectSubset<T, CompanyFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, 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<T extends CompanyFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CompanyFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, 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<T extends CompanyFindFirstArgs>(args?: Prisma.SelectSubset<T, CompanyFindFirstArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, 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<T extends CompanyFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CompanyFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, 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<T extends CompanyFindManyArgs>(args?: Prisma.SelectSubset<T, CompanyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, 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<T extends CompanyCreateArgs>(args: Prisma.SelectSubset<T, CompanyCreateArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, 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<T extends CompanyCreateManyArgs>(args?: Prisma.SelectSubset<T, CompanyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends CompanyCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CompanyCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, 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<T extends CompanyDeleteArgs>(args: Prisma.SelectSubset<T, CompanyDeleteArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, 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<T extends CompanyUpdateArgs>(args: Prisma.SelectSubset<T, CompanyUpdateArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, 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<T extends CompanyDeleteManyArgs>(args?: Prisma.SelectSubset<T, CompanyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends CompanyUpdateManyArgs>(args: Prisma.SelectSubset<T, CompanyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends CompanyUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CompanyUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, 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<T extends CompanyUpsertArgs>(args: Prisma.SelectSubset<T, CompanyUpsertArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, 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<T extends CompanyCountArgs>(
args?: Prisma.Subset<T, CompanyCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], CompanyCountAggregateOutputType>
: 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<T extends CompanyAggregateArgs>(args: Prisma.Subset<T, CompanyAggregateArgs>): Prisma.PrismaPromise<GetCompanyAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: CompanyGroupByArgs['orderBy'] }
: { orderBy?: CompanyGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T, CompanyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCompanyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
users<T extends Prisma.Company$usersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Company$usersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
tickets<T extends Prisma.Company$ticketsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Company$ticketsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TicketPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* 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<T>
}
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelect<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CompanyInclude<ExtArgs> | null
/**
* Filter, which Company to fetch.
*/
where: Prisma.CompanyWhereUniqueInput
}
/**
* Company findUniqueOrThrow
*/
export type CompanyFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelect<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CompanyInclude<ExtArgs> | null
/**
* Filter, which Company to fetch.
*/
where: Prisma.CompanyWhereUniqueInput
}
/**
* Company findFirst
*/
export type CompanyFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelect<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CompanyInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelect<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CompanyInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelect<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CompanyInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelect<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CompanyInclude<ExtArgs> | null
/**
* The data needed to create a Company.
*/
data: Prisma.XOR<Prisma.CompanyCreateInput, Prisma.CompanyUncheckedCreateInput>
}
/**
* Company createMany
*/
export type CompanyCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Companies.
*/
data: Prisma.CompanyCreateManyInput | Prisma.CompanyCreateManyInput[]
}
/**
* Company createManyAndReturn
*/
export type CompanyCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* The data used to create many Companies.
*/
data: Prisma.CompanyCreateManyInput | Prisma.CompanyCreateManyInput[]
}
/**
* Company update
*/
export type CompanyUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelect<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CompanyInclude<ExtArgs> | null
/**
* The data needed to update a Company.
*/
data: Prisma.XOR<Prisma.CompanyUpdateInput, Prisma.CompanyUncheckedUpdateInput>
/**
* Choose, which Company to update.
*/
where: Prisma.CompanyWhereUniqueInput
}
/**
* Company updateMany
*/
export type CompanyUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Companies.
*/
data: Prisma.XOR<Prisma.CompanyUpdateManyMutationInput, Prisma.CompanyUncheckedUpdateManyInput>
/**
* Filter which Companies to update
*/
where?: Prisma.CompanyWhereInput
/**
* Limit how many Companies to update.
*/
limit?: number
}
/**
* Company updateManyAndReturn
*/
export type CompanyUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* The data used to update Companies.
*/
data: Prisma.XOR<Prisma.CompanyUpdateManyMutationInput, Prisma.CompanyUncheckedUpdateManyInput>
/**
* Filter which Companies to update
*/
where?: Prisma.CompanyWhereInput
/**
* Limit how many Companies to update.
*/
limit?: number
}
/**
* Company upsert
*/
export type CompanyUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelect<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CompanyInclude<ExtArgs> | 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<Prisma.CompanyCreateInput, Prisma.CompanyUncheckedCreateInput>
/**
* In case the Company was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.CompanyUpdateInput, Prisma.CompanyUncheckedUpdateInput>
}
/**
* Company delete
*/
export type CompanyDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelect<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CompanyInclude<ExtArgs> | null
/**
* Filter which Company to delete.
*/
where: Prisma.CompanyWhereUniqueInput
}
/**
* Company deleteMany
*/
export type CompanyDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Companies to delete
*/
where?: Prisma.CompanyWhereInput
/**
* Limit how many Companies to delete.
*/
limit?: number
}
/**
* Company.users
*/
export type Company$usersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: Prisma.UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: Prisma.UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UserInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: Prisma.TicketSelect<ExtArgs> | null
/**
* Omit specific fields from the Ticket
*/
omit?: Prisma.TicketOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TicketInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelect<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CompanyInclude<ExtArgs> | null
}