1588 lines
52 KiB
TypeScript
1588 lines
52 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 `pbx` 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 pbx
|
|
* This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
*/
|
|
export type pbxModel = runtime.Types.Result.DefaultSelection<Prisma.$pbxPayload>
|
|
|
|
export type AggregatePbx = {
|
|
_count: PbxCountAggregateOutputType | null
|
|
_avg: PbxAvgAggregateOutputType | null
|
|
_sum: PbxSumAggregateOutputType | null
|
|
_min: PbxMinAggregateOutputType | null
|
|
_max: PbxMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type PbxAvgAggregateOutputType = {
|
|
id: number | null
|
|
account_id: number | null
|
|
delivery_id: number | null
|
|
service_id: number | null
|
|
has_vm: number | null
|
|
keep_msg: number | null
|
|
vm_disk_quota: number | null
|
|
max_calls: number | null
|
|
call_timeout: number | null
|
|
date_origin: number | null
|
|
date_update: number | null
|
|
update_by: number | null
|
|
}
|
|
|
|
export type PbxSumAggregateOutputType = {
|
|
id: number | null
|
|
account_id: number | null
|
|
delivery_id: number | null
|
|
service_id: number | null
|
|
has_vm: number | null
|
|
keep_msg: number | null
|
|
vm_disk_quota: number | null
|
|
max_calls: number | null
|
|
call_timeout: number | null
|
|
date_origin: bigint | null
|
|
date_update: bigint | null
|
|
update_by: number | null
|
|
}
|
|
|
|
export type PbxMinAggregateOutputType = {
|
|
id: number | null
|
|
account_id: number | null
|
|
delivery_id: number | null
|
|
service_id: number | null
|
|
phone: string | null
|
|
name: string | null
|
|
password: string | null
|
|
vm_password: string | null
|
|
has_vm: number | null
|
|
vm_email: string | null
|
|
keep_msg: number | null
|
|
vm_disk_quota: number | null
|
|
int_code: string | null
|
|
language: string | null
|
|
call_911: string | null
|
|
max_calls: number | null
|
|
call_timeout: number | null
|
|
user_context: string | null
|
|
country_whitelist: string | null
|
|
date_origin: bigint | null
|
|
date_update: bigint | null
|
|
update_by: number | null
|
|
}
|
|
|
|
export type PbxMaxAggregateOutputType = {
|
|
id: number | null
|
|
account_id: number | null
|
|
delivery_id: number | null
|
|
service_id: number | null
|
|
phone: string | null
|
|
name: string | null
|
|
password: string | null
|
|
vm_password: string | null
|
|
has_vm: number | null
|
|
vm_email: string | null
|
|
keep_msg: number | null
|
|
vm_disk_quota: number | null
|
|
int_code: string | null
|
|
language: string | null
|
|
call_911: string | null
|
|
max_calls: number | null
|
|
call_timeout: number | null
|
|
user_context: string | null
|
|
country_whitelist: string | null
|
|
date_origin: bigint | null
|
|
date_update: bigint | null
|
|
update_by: number | null
|
|
}
|
|
|
|
export type PbxCountAggregateOutputType = {
|
|
id: number
|
|
account_id: number
|
|
delivery_id: number
|
|
service_id: number
|
|
phone: number
|
|
name: number
|
|
password: number
|
|
vm_password: number
|
|
has_vm: number
|
|
vm_email: number
|
|
keep_msg: number
|
|
vm_disk_quota: number
|
|
int_code: number
|
|
language: number
|
|
call_911: number
|
|
max_calls: number
|
|
call_timeout: number
|
|
user_context: number
|
|
country_whitelist: number
|
|
date_origin: number
|
|
date_update: number
|
|
update_by: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type PbxAvgAggregateInputType = {
|
|
id?: true
|
|
account_id?: true
|
|
delivery_id?: true
|
|
service_id?: true
|
|
has_vm?: true
|
|
keep_msg?: true
|
|
vm_disk_quota?: true
|
|
max_calls?: true
|
|
call_timeout?: true
|
|
date_origin?: true
|
|
date_update?: true
|
|
update_by?: true
|
|
}
|
|
|
|
export type PbxSumAggregateInputType = {
|
|
id?: true
|
|
account_id?: true
|
|
delivery_id?: true
|
|
service_id?: true
|
|
has_vm?: true
|
|
keep_msg?: true
|
|
vm_disk_quota?: true
|
|
max_calls?: true
|
|
call_timeout?: true
|
|
date_origin?: true
|
|
date_update?: true
|
|
update_by?: true
|
|
}
|
|
|
|
export type PbxMinAggregateInputType = {
|
|
id?: true
|
|
account_id?: true
|
|
delivery_id?: true
|
|
service_id?: true
|
|
phone?: true
|
|
name?: true
|
|
password?: true
|
|
vm_password?: true
|
|
has_vm?: true
|
|
vm_email?: true
|
|
keep_msg?: true
|
|
vm_disk_quota?: true
|
|
int_code?: true
|
|
language?: true
|
|
call_911?: true
|
|
max_calls?: true
|
|
call_timeout?: true
|
|
user_context?: true
|
|
country_whitelist?: true
|
|
date_origin?: true
|
|
date_update?: true
|
|
update_by?: true
|
|
}
|
|
|
|
export type PbxMaxAggregateInputType = {
|
|
id?: true
|
|
account_id?: true
|
|
delivery_id?: true
|
|
service_id?: true
|
|
phone?: true
|
|
name?: true
|
|
password?: true
|
|
vm_password?: true
|
|
has_vm?: true
|
|
vm_email?: true
|
|
keep_msg?: true
|
|
vm_disk_quota?: true
|
|
int_code?: true
|
|
language?: true
|
|
call_911?: true
|
|
max_calls?: true
|
|
call_timeout?: true
|
|
user_context?: true
|
|
country_whitelist?: true
|
|
date_origin?: true
|
|
date_update?: true
|
|
update_by?: true
|
|
}
|
|
|
|
export type PbxCountAggregateInputType = {
|
|
id?: true
|
|
account_id?: true
|
|
delivery_id?: true
|
|
service_id?: true
|
|
phone?: true
|
|
name?: true
|
|
password?: true
|
|
vm_password?: true
|
|
has_vm?: true
|
|
vm_email?: true
|
|
keep_msg?: true
|
|
vm_disk_quota?: true
|
|
int_code?: true
|
|
language?: true
|
|
call_911?: true
|
|
max_calls?: true
|
|
call_timeout?: true
|
|
user_context?: true
|
|
country_whitelist?: true
|
|
date_origin?: true
|
|
date_update?: true
|
|
update_by?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type PbxAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which pbx to aggregate.
|
|
*/
|
|
where?: Prisma.pbxWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of pbxes to fetch.
|
|
*/
|
|
orderBy?: Prisma.pbxOrderByWithRelationInput | Prisma.pbxOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.pbxWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` pbxes 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` pbxes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned pbxes
|
|
**/
|
|
_count?: true | PbxCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: PbxAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: PbxSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: PbxMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: PbxMaxAggregateInputType
|
|
}
|
|
|
|
export type GetPbxAggregateType<T extends PbxAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePbx]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregatePbx[P]>
|
|
: Prisma.GetScalarType<T[P], AggregatePbx[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type pbxGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.pbxWhereInput
|
|
orderBy?: Prisma.pbxOrderByWithAggregationInput | Prisma.pbxOrderByWithAggregationInput[]
|
|
by: Prisma.PbxScalarFieldEnum[] | Prisma.PbxScalarFieldEnum
|
|
having?: Prisma.pbxScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: PbxCountAggregateInputType | true
|
|
_avg?: PbxAvgAggregateInputType
|
|
_sum?: PbxSumAggregateInputType
|
|
_min?: PbxMinAggregateInputType
|
|
_max?: PbxMaxAggregateInputType
|
|
}
|
|
|
|
export type PbxGroupByOutputType = {
|
|
id: number
|
|
account_id: number
|
|
delivery_id: number
|
|
service_id: number
|
|
phone: string
|
|
name: string | null
|
|
password: string
|
|
vm_password: string
|
|
has_vm: number
|
|
vm_email: string | null
|
|
keep_msg: number
|
|
vm_disk_quota: number
|
|
int_code: string
|
|
language: string
|
|
call_911: string
|
|
max_calls: number
|
|
call_timeout: number
|
|
user_context: string
|
|
country_whitelist: string
|
|
date_origin: bigint
|
|
date_update: bigint
|
|
update_by: number | null
|
|
_count: PbxCountAggregateOutputType | null
|
|
_avg: PbxAvgAggregateOutputType | null
|
|
_sum: PbxSumAggregateOutputType | null
|
|
_min: PbxMinAggregateOutputType | null
|
|
_max: PbxMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetPbxGroupByPayload<T extends pbxGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<PbxGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof PbxGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], PbxGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], PbxGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type pbxWhereInput = {
|
|
AND?: Prisma.pbxWhereInput | Prisma.pbxWhereInput[]
|
|
OR?: Prisma.pbxWhereInput[]
|
|
NOT?: Prisma.pbxWhereInput | Prisma.pbxWhereInput[]
|
|
id?: Prisma.IntFilter<"pbx"> | number
|
|
account_id?: Prisma.IntFilter<"pbx"> | number
|
|
delivery_id?: Prisma.IntFilter<"pbx"> | number
|
|
service_id?: Prisma.IntFilter<"pbx"> | number
|
|
phone?: Prisma.StringFilter<"pbx"> | string
|
|
name?: Prisma.StringNullableFilter<"pbx"> | string | null
|
|
password?: Prisma.StringFilter<"pbx"> | string
|
|
vm_password?: Prisma.StringFilter<"pbx"> | string
|
|
has_vm?: Prisma.IntFilter<"pbx"> | number
|
|
vm_email?: Prisma.StringNullableFilter<"pbx"> | string | null
|
|
keep_msg?: Prisma.IntFilter<"pbx"> | number
|
|
vm_disk_quota?: Prisma.IntFilter<"pbx"> | number
|
|
int_code?: Prisma.StringFilter<"pbx"> | string
|
|
language?: Prisma.StringFilter<"pbx"> | string
|
|
call_911?: Prisma.StringFilter<"pbx"> | string
|
|
max_calls?: Prisma.IntFilter<"pbx"> | number
|
|
call_timeout?: Prisma.IntFilter<"pbx"> | number
|
|
user_context?: Prisma.StringFilter<"pbx"> | string
|
|
country_whitelist?: Prisma.StringFilter<"pbx"> | string
|
|
date_origin?: Prisma.BigIntFilter<"pbx"> | bigint | number
|
|
date_update?: Prisma.BigIntFilter<"pbx"> | bigint | number
|
|
update_by?: Prisma.IntNullableFilter<"pbx"> | number | null
|
|
}
|
|
|
|
export type pbxOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
delivery_id?: Prisma.SortOrder
|
|
service_id?: Prisma.SortOrder
|
|
phone?: Prisma.SortOrder
|
|
name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
password?: Prisma.SortOrder
|
|
vm_password?: Prisma.SortOrder
|
|
has_vm?: Prisma.SortOrder
|
|
vm_email?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
keep_msg?: Prisma.SortOrder
|
|
vm_disk_quota?: Prisma.SortOrder
|
|
int_code?: Prisma.SortOrder
|
|
language?: Prisma.SortOrder
|
|
call_911?: Prisma.SortOrder
|
|
max_calls?: Prisma.SortOrder
|
|
call_timeout?: Prisma.SortOrder
|
|
user_context?: Prisma.SortOrder
|
|
country_whitelist?: Prisma.SortOrder
|
|
date_origin?: Prisma.SortOrder
|
|
date_update?: Prisma.SortOrder
|
|
update_by?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_relevance?: Prisma.pbxOrderByRelevanceInput
|
|
}
|
|
|
|
export type pbxWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: Prisma.pbxWhereInput | Prisma.pbxWhereInput[]
|
|
OR?: Prisma.pbxWhereInput[]
|
|
NOT?: Prisma.pbxWhereInput | Prisma.pbxWhereInput[]
|
|
account_id?: Prisma.IntFilter<"pbx"> | number
|
|
delivery_id?: Prisma.IntFilter<"pbx"> | number
|
|
service_id?: Prisma.IntFilter<"pbx"> | number
|
|
phone?: Prisma.StringFilter<"pbx"> | string
|
|
name?: Prisma.StringNullableFilter<"pbx"> | string | null
|
|
password?: Prisma.StringFilter<"pbx"> | string
|
|
vm_password?: Prisma.StringFilter<"pbx"> | string
|
|
has_vm?: Prisma.IntFilter<"pbx"> | number
|
|
vm_email?: Prisma.StringNullableFilter<"pbx"> | string | null
|
|
keep_msg?: Prisma.IntFilter<"pbx"> | number
|
|
vm_disk_quota?: Prisma.IntFilter<"pbx"> | number
|
|
int_code?: Prisma.StringFilter<"pbx"> | string
|
|
language?: Prisma.StringFilter<"pbx"> | string
|
|
call_911?: Prisma.StringFilter<"pbx"> | string
|
|
max_calls?: Prisma.IntFilter<"pbx"> | number
|
|
call_timeout?: Prisma.IntFilter<"pbx"> | number
|
|
user_context?: Prisma.StringFilter<"pbx"> | string
|
|
country_whitelist?: Prisma.StringFilter<"pbx"> | string
|
|
date_origin?: Prisma.BigIntFilter<"pbx"> | bigint | number
|
|
date_update?: Prisma.BigIntFilter<"pbx"> | bigint | number
|
|
update_by?: Prisma.IntNullableFilter<"pbx"> | number | null
|
|
}, "id">
|
|
|
|
export type pbxOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
delivery_id?: Prisma.SortOrder
|
|
service_id?: Prisma.SortOrder
|
|
phone?: Prisma.SortOrder
|
|
name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
password?: Prisma.SortOrder
|
|
vm_password?: Prisma.SortOrder
|
|
has_vm?: Prisma.SortOrder
|
|
vm_email?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
keep_msg?: Prisma.SortOrder
|
|
vm_disk_quota?: Prisma.SortOrder
|
|
int_code?: Prisma.SortOrder
|
|
language?: Prisma.SortOrder
|
|
call_911?: Prisma.SortOrder
|
|
max_calls?: Prisma.SortOrder
|
|
call_timeout?: Prisma.SortOrder
|
|
user_context?: Prisma.SortOrder
|
|
country_whitelist?: Prisma.SortOrder
|
|
date_origin?: Prisma.SortOrder
|
|
date_update?: Prisma.SortOrder
|
|
update_by?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.pbxCountOrderByAggregateInput
|
|
_avg?: Prisma.pbxAvgOrderByAggregateInput
|
|
_max?: Prisma.pbxMaxOrderByAggregateInput
|
|
_min?: Prisma.pbxMinOrderByAggregateInput
|
|
_sum?: Prisma.pbxSumOrderByAggregateInput
|
|
}
|
|
|
|
export type pbxScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.pbxScalarWhereWithAggregatesInput | Prisma.pbxScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.pbxScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.pbxScalarWhereWithAggregatesInput | Prisma.pbxScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"pbx"> | number
|
|
account_id?: Prisma.IntWithAggregatesFilter<"pbx"> | number
|
|
delivery_id?: Prisma.IntWithAggregatesFilter<"pbx"> | number
|
|
service_id?: Prisma.IntWithAggregatesFilter<"pbx"> | number
|
|
phone?: Prisma.StringWithAggregatesFilter<"pbx"> | string
|
|
name?: Prisma.StringNullableWithAggregatesFilter<"pbx"> | string | null
|
|
password?: Prisma.StringWithAggregatesFilter<"pbx"> | string
|
|
vm_password?: Prisma.StringWithAggregatesFilter<"pbx"> | string
|
|
has_vm?: Prisma.IntWithAggregatesFilter<"pbx"> | number
|
|
vm_email?: Prisma.StringNullableWithAggregatesFilter<"pbx"> | string | null
|
|
keep_msg?: Prisma.IntWithAggregatesFilter<"pbx"> | number
|
|
vm_disk_quota?: Prisma.IntWithAggregatesFilter<"pbx"> | number
|
|
int_code?: Prisma.StringWithAggregatesFilter<"pbx"> | string
|
|
language?: Prisma.StringWithAggregatesFilter<"pbx"> | string
|
|
call_911?: Prisma.StringWithAggregatesFilter<"pbx"> | string
|
|
max_calls?: Prisma.IntWithAggregatesFilter<"pbx"> | number
|
|
call_timeout?: Prisma.IntWithAggregatesFilter<"pbx"> | number
|
|
user_context?: Prisma.StringWithAggregatesFilter<"pbx"> | string
|
|
country_whitelist?: Prisma.StringWithAggregatesFilter<"pbx"> | string
|
|
date_origin?: Prisma.BigIntWithAggregatesFilter<"pbx"> | bigint | number
|
|
date_update?: Prisma.BigIntWithAggregatesFilter<"pbx"> | bigint | number
|
|
update_by?: Prisma.IntNullableWithAggregatesFilter<"pbx"> | number | null
|
|
}
|
|
|
|
export type pbxCreateInput = {
|
|
account_id: number
|
|
delivery_id: number
|
|
service_id: number
|
|
phone: string
|
|
name?: string | null
|
|
password: string
|
|
vm_password?: string
|
|
has_vm?: number
|
|
vm_email?: string | null
|
|
keep_msg?: number
|
|
vm_disk_quota?: number
|
|
int_code: string
|
|
language?: string
|
|
call_911: string
|
|
max_calls?: number
|
|
call_timeout?: number
|
|
user_context?: string
|
|
country_whitelist: string
|
|
date_origin: bigint | number
|
|
date_update: bigint | number
|
|
update_by?: number | null
|
|
}
|
|
|
|
export type pbxUncheckedCreateInput = {
|
|
id?: number
|
|
account_id: number
|
|
delivery_id: number
|
|
service_id: number
|
|
phone: string
|
|
name?: string | null
|
|
password: string
|
|
vm_password?: string
|
|
has_vm?: number
|
|
vm_email?: string | null
|
|
keep_msg?: number
|
|
vm_disk_quota?: number
|
|
int_code: string
|
|
language?: string
|
|
call_911: string
|
|
max_calls?: number
|
|
call_timeout?: number
|
|
user_context?: string
|
|
country_whitelist: string
|
|
date_origin: bigint | number
|
|
date_update: bigint | number
|
|
update_by?: number | null
|
|
}
|
|
|
|
export type pbxUpdateInput = {
|
|
account_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
service_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
phone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
vm_password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
has_vm?: Prisma.IntFieldUpdateOperationsInput | number
|
|
vm_email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
keep_msg?: Prisma.IntFieldUpdateOperationsInput | number
|
|
vm_disk_quota?: Prisma.IntFieldUpdateOperationsInput | number
|
|
int_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
language?: Prisma.StringFieldUpdateOperationsInput | string
|
|
call_911?: Prisma.StringFieldUpdateOperationsInput | string
|
|
max_calls?: Prisma.IntFieldUpdateOperationsInput | number
|
|
call_timeout?: Prisma.IntFieldUpdateOperationsInput | number
|
|
user_context?: Prisma.StringFieldUpdateOperationsInput | string
|
|
country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string
|
|
date_origin?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
update_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
}
|
|
|
|
export type pbxUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
account_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
service_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
phone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
vm_password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
has_vm?: Prisma.IntFieldUpdateOperationsInput | number
|
|
vm_email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
keep_msg?: Prisma.IntFieldUpdateOperationsInput | number
|
|
vm_disk_quota?: Prisma.IntFieldUpdateOperationsInput | number
|
|
int_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
language?: Prisma.StringFieldUpdateOperationsInput | string
|
|
call_911?: Prisma.StringFieldUpdateOperationsInput | string
|
|
max_calls?: Prisma.IntFieldUpdateOperationsInput | number
|
|
call_timeout?: Prisma.IntFieldUpdateOperationsInput | number
|
|
user_context?: Prisma.StringFieldUpdateOperationsInput | string
|
|
country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string
|
|
date_origin?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
update_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
}
|
|
|
|
export type pbxCreateManyInput = {
|
|
id?: number
|
|
account_id: number
|
|
delivery_id: number
|
|
service_id: number
|
|
phone: string
|
|
name?: string | null
|
|
password: string
|
|
vm_password?: string
|
|
has_vm?: number
|
|
vm_email?: string | null
|
|
keep_msg?: number
|
|
vm_disk_quota?: number
|
|
int_code: string
|
|
language?: string
|
|
call_911: string
|
|
max_calls?: number
|
|
call_timeout?: number
|
|
user_context?: string
|
|
country_whitelist: string
|
|
date_origin: bigint | number
|
|
date_update: bigint | number
|
|
update_by?: number | null
|
|
}
|
|
|
|
export type pbxUpdateManyMutationInput = {
|
|
account_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
service_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
phone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
vm_password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
has_vm?: Prisma.IntFieldUpdateOperationsInput | number
|
|
vm_email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
keep_msg?: Prisma.IntFieldUpdateOperationsInput | number
|
|
vm_disk_quota?: Prisma.IntFieldUpdateOperationsInput | number
|
|
int_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
language?: Prisma.StringFieldUpdateOperationsInput | string
|
|
call_911?: Prisma.StringFieldUpdateOperationsInput | string
|
|
max_calls?: Prisma.IntFieldUpdateOperationsInput | number
|
|
call_timeout?: Prisma.IntFieldUpdateOperationsInput | number
|
|
user_context?: Prisma.StringFieldUpdateOperationsInput | string
|
|
country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string
|
|
date_origin?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
update_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
}
|
|
|
|
export type pbxUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
account_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
service_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
phone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
vm_password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
has_vm?: Prisma.IntFieldUpdateOperationsInput | number
|
|
vm_email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
keep_msg?: Prisma.IntFieldUpdateOperationsInput | number
|
|
vm_disk_quota?: Prisma.IntFieldUpdateOperationsInput | number
|
|
int_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
language?: Prisma.StringFieldUpdateOperationsInput | string
|
|
call_911?: Prisma.StringFieldUpdateOperationsInput | string
|
|
max_calls?: Prisma.IntFieldUpdateOperationsInput | number
|
|
call_timeout?: Prisma.IntFieldUpdateOperationsInput | number
|
|
user_context?: Prisma.StringFieldUpdateOperationsInput | string
|
|
country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string
|
|
date_origin?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
update_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
}
|
|
|
|
export type pbxOrderByRelevanceInput = {
|
|
fields: Prisma.pbxOrderByRelevanceFieldEnum | Prisma.pbxOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type pbxCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
delivery_id?: Prisma.SortOrder
|
|
service_id?: Prisma.SortOrder
|
|
phone?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
password?: Prisma.SortOrder
|
|
vm_password?: Prisma.SortOrder
|
|
has_vm?: Prisma.SortOrder
|
|
vm_email?: Prisma.SortOrder
|
|
keep_msg?: Prisma.SortOrder
|
|
vm_disk_quota?: Prisma.SortOrder
|
|
int_code?: Prisma.SortOrder
|
|
language?: Prisma.SortOrder
|
|
call_911?: Prisma.SortOrder
|
|
max_calls?: Prisma.SortOrder
|
|
call_timeout?: Prisma.SortOrder
|
|
user_context?: Prisma.SortOrder
|
|
country_whitelist?: Prisma.SortOrder
|
|
date_origin?: Prisma.SortOrder
|
|
date_update?: Prisma.SortOrder
|
|
update_by?: Prisma.SortOrder
|
|
}
|
|
|
|
export type pbxAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
delivery_id?: Prisma.SortOrder
|
|
service_id?: Prisma.SortOrder
|
|
has_vm?: Prisma.SortOrder
|
|
keep_msg?: Prisma.SortOrder
|
|
vm_disk_quota?: Prisma.SortOrder
|
|
max_calls?: Prisma.SortOrder
|
|
call_timeout?: Prisma.SortOrder
|
|
date_origin?: Prisma.SortOrder
|
|
date_update?: Prisma.SortOrder
|
|
update_by?: Prisma.SortOrder
|
|
}
|
|
|
|
export type pbxMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
delivery_id?: Prisma.SortOrder
|
|
service_id?: Prisma.SortOrder
|
|
phone?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
password?: Prisma.SortOrder
|
|
vm_password?: Prisma.SortOrder
|
|
has_vm?: Prisma.SortOrder
|
|
vm_email?: Prisma.SortOrder
|
|
keep_msg?: Prisma.SortOrder
|
|
vm_disk_quota?: Prisma.SortOrder
|
|
int_code?: Prisma.SortOrder
|
|
language?: Prisma.SortOrder
|
|
call_911?: Prisma.SortOrder
|
|
max_calls?: Prisma.SortOrder
|
|
call_timeout?: Prisma.SortOrder
|
|
user_context?: Prisma.SortOrder
|
|
country_whitelist?: Prisma.SortOrder
|
|
date_origin?: Prisma.SortOrder
|
|
date_update?: Prisma.SortOrder
|
|
update_by?: Prisma.SortOrder
|
|
}
|
|
|
|
export type pbxMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
delivery_id?: Prisma.SortOrder
|
|
service_id?: Prisma.SortOrder
|
|
phone?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
password?: Prisma.SortOrder
|
|
vm_password?: Prisma.SortOrder
|
|
has_vm?: Prisma.SortOrder
|
|
vm_email?: Prisma.SortOrder
|
|
keep_msg?: Prisma.SortOrder
|
|
vm_disk_quota?: Prisma.SortOrder
|
|
int_code?: Prisma.SortOrder
|
|
language?: Prisma.SortOrder
|
|
call_911?: Prisma.SortOrder
|
|
max_calls?: Prisma.SortOrder
|
|
call_timeout?: Prisma.SortOrder
|
|
user_context?: Prisma.SortOrder
|
|
country_whitelist?: Prisma.SortOrder
|
|
date_origin?: Prisma.SortOrder
|
|
date_update?: Prisma.SortOrder
|
|
update_by?: Prisma.SortOrder
|
|
}
|
|
|
|
export type pbxSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
delivery_id?: Prisma.SortOrder
|
|
service_id?: Prisma.SortOrder
|
|
has_vm?: Prisma.SortOrder
|
|
keep_msg?: Prisma.SortOrder
|
|
vm_disk_quota?: Prisma.SortOrder
|
|
max_calls?: Prisma.SortOrder
|
|
call_timeout?: Prisma.SortOrder
|
|
date_origin?: Prisma.SortOrder
|
|
date_update?: Prisma.SortOrder
|
|
update_by?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type pbxSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
account_id?: boolean
|
|
delivery_id?: boolean
|
|
service_id?: boolean
|
|
phone?: boolean
|
|
name?: boolean
|
|
password?: boolean
|
|
vm_password?: boolean
|
|
has_vm?: boolean
|
|
vm_email?: boolean
|
|
keep_msg?: boolean
|
|
vm_disk_quota?: boolean
|
|
int_code?: boolean
|
|
language?: boolean
|
|
call_911?: boolean
|
|
max_calls?: boolean
|
|
call_timeout?: boolean
|
|
user_context?: boolean
|
|
country_whitelist?: boolean
|
|
date_origin?: boolean
|
|
date_update?: boolean
|
|
update_by?: boolean
|
|
}, ExtArgs["result"]["pbx"]>
|
|
|
|
|
|
|
|
export type pbxSelectScalar = {
|
|
id?: boolean
|
|
account_id?: boolean
|
|
delivery_id?: boolean
|
|
service_id?: boolean
|
|
phone?: boolean
|
|
name?: boolean
|
|
password?: boolean
|
|
vm_password?: boolean
|
|
has_vm?: boolean
|
|
vm_email?: boolean
|
|
keep_msg?: boolean
|
|
vm_disk_quota?: boolean
|
|
int_code?: boolean
|
|
language?: boolean
|
|
call_911?: boolean
|
|
max_calls?: boolean
|
|
call_timeout?: boolean
|
|
user_context?: boolean
|
|
country_whitelist?: boolean
|
|
date_origin?: boolean
|
|
date_update?: boolean
|
|
update_by?: boolean
|
|
}
|
|
|
|
export type pbxOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "delivery_id" | "service_id" | "phone" | "name" | "password" | "vm_password" | "has_vm" | "vm_email" | "keep_msg" | "vm_disk_quota" | "int_code" | "language" | "call_911" | "max_calls" | "call_timeout" | "user_context" | "country_whitelist" | "date_origin" | "date_update" | "update_by", ExtArgs["result"]["pbx"]>
|
|
|
|
export type $pbxPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "pbx"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
account_id: number
|
|
delivery_id: number
|
|
service_id: number
|
|
phone: string
|
|
name: string | null
|
|
password: string
|
|
vm_password: string
|
|
has_vm: number
|
|
vm_email: string | null
|
|
keep_msg: number
|
|
vm_disk_quota: number
|
|
int_code: string
|
|
language: string
|
|
call_911: string
|
|
max_calls: number
|
|
call_timeout: number
|
|
user_context: string
|
|
country_whitelist: string
|
|
date_origin: bigint
|
|
date_update: bigint
|
|
update_by: number | null
|
|
}, ExtArgs["result"]["pbx"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type pbxGetPayload<S extends boolean | null | undefined | pbxDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$pbxPayload, S>
|
|
|
|
export type pbxCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<pbxFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: PbxCountAggregateInputType | true
|
|
}
|
|
|
|
export interface pbxDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['pbx'], meta: { name: 'pbx' } }
|
|
/**
|
|
* Find zero or one Pbx that matches the filter.
|
|
* @param {pbxFindUniqueArgs} args - Arguments to find a Pbx
|
|
* @example
|
|
* // Get one Pbx
|
|
* const pbx = await prisma.pbx.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends pbxFindUniqueArgs>(args: Prisma.SelectSubset<T, pbxFindUniqueArgs<ExtArgs>>): Prisma.Prisma__pbxClient<runtime.Types.Result.GetResult<Prisma.$pbxPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Pbx that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {pbxFindUniqueOrThrowArgs} args - Arguments to find a Pbx
|
|
* @example
|
|
* // Get one Pbx
|
|
* const pbx = await prisma.pbx.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends pbxFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, pbxFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__pbxClient<runtime.Types.Result.GetResult<Prisma.$pbxPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Pbx 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 {pbxFindFirstArgs} args - Arguments to find a Pbx
|
|
* @example
|
|
* // Get one Pbx
|
|
* const pbx = await prisma.pbx.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends pbxFindFirstArgs>(args?: Prisma.SelectSubset<T, pbxFindFirstArgs<ExtArgs>>): Prisma.Prisma__pbxClient<runtime.Types.Result.GetResult<Prisma.$pbxPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Pbx 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 {pbxFindFirstOrThrowArgs} args - Arguments to find a Pbx
|
|
* @example
|
|
* // Get one Pbx
|
|
* const pbx = await prisma.pbx.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends pbxFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, pbxFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__pbxClient<runtime.Types.Result.GetResult<Prisma.$pbxPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Pbxes 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 {pbxFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Pbxes
|
|
* const pbxes = await prisma.pbx.findMany()
|
|
*
|
|
* // Get first 10 Pbxes
|
|
* const pbxes = await prisma.pbx.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const pbxWithIdOnly = await prisma.pbx.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends pbxFindManyArgs>(args?: Prisma.SelectSubset<T, pbxFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$pbxPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Pbx.
|
|
* @param {pbxCreateArgs} args - Arguments to create a Pbx.
|
|
* @example
|
|
* // Create one Pbx
|
|
* const Pbx = await prisma.pbx.create({
|
|
* data: {
|
|
* // ... data to create a Pbx
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends pbxCreateArgs>(args: Prisma.SelectSubset<T, pbxCreateArgs<ExtArgs>>): Prisma.Prisma__pbxClient<runtime.Types.Result.GetResult<Prisma.$pbxPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Pbxes.
|
|
* @param {pbxCreateManyArgs} args - Arguments to create many Pbxes.
|
|
* @example
|
|
* // Create many Pbxes
|
|
* const pbx = await prisma.pbx.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends pbxCreateManyArgs>(args?: Prisma.SelectSubset<T, pbxCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a Pbx.
|
|
* @param {pbxDeleteArgs} args - Arguments to delete one Pbx.
|
|
* @example
|
|
* // Delete one Pbx
|
|
* const Pbx = await prisma.pbx.delete({
|
|
* where: {
|
|
* // ... filter to delete one Pbx
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends pbxDeleteArgs>(args: Prisma.SelectSubset<T, pbxDeleteArgs<ExtArgs>>): Prisma.Prisma__pbxClient<runtime.Types.Result.GetResult<Prisma.$pbxPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Pbx.
|
|
* @param {pbxUpdateArgs} args - Arguments to update one Pbx.
|
|
* @example
|
|
* // Update one Pbx
|
|
* const pbx = await prisma.pbx.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends pbxUpdateArgs>(args: Prisma.SelectSubset<T, pbxUpdateArgs<ExtArgs>>): Prisma.Prisma__pbxClient<runtime.Types.Result.GetResult<Prisma.$pbxPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Pbxes.
|
|
* @param {pbxDeleteManyArgs} args - Arguments to filter Pbxes to delete.
|
|
* @example
|
|
* // Delete a few Pbxes
|
|
* const { count } = await prisma.pbx.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends pbxDeleteManyArgs>(args?: Prisma.SelectSubset<T, pbxDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Pbxes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {pbxUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Pbxes
|
|
* const pbx = await prisma.pbx.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends pbxUpdateManyArgs>(args: Prisma.SelectSubset<T, pbxUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Pbx.
|
|
* @param {pbxUpsertArgs} args - Arguments to update or create a Pbx.
|
|
* @example
|
|
* // Update or create a Pbx
|
|
* const pbx = await prisma.pbx.upsert({
|
|
* create: {
|
|
* // ... data to create a Pbx
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Pbx we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends pbxUpsertArgs>(args: Prisma.SelectSubset<T, pbxUpsertArgs<ExtArgs>>): Prisma.Prisma__pbxClient<runtime.Types.Result.GetResult<Prisma.$pbxPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Pbxes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {pbxCountArgs} args - Arguments to filter Pbxes to count.
|
|
* @example
|
|
* // Count the number of Pbxes
|
|
* const count = await prisma.pbx.count({
|
|
* where: {
|
|
* // ... the filter for the Pbxes we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends pbxCountArgs>(
|
|
args?: Prisma.Subset<T, pbxCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], PbxCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Pbx.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PbxAggregateArgs} 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 PbxAggregateArgs>(args: Prisma.Subset<T, PbxAggregateArgs>): Prisma.PrismaPromise<GetPbxAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Pbx.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {pbxGroupByArgs} 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 pbxGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: pbxGroupByArgs['orderBy'] }
|
|
: { orderBy?: pbxGroupByArgs['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, pbxGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPbxGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the pbx model
|
|
*/
|
|
readonly fields: pbxFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for pbx.
|
|
* 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__pbxClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* 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 pbx model
|
|
*/
|
|
export interface pbxFieldRefs {
|
|
readonly id: Prisma.FieldRef<"pbx", 'Int'>
|
|
readonly account_id: Prisma.FieldRef<"pbx", 'Int'>
|
|
readonly delivery_id: Prisma.FieldRef<"pbx", 'Int'>
|
|
readonly service_id: Prisma.FieldRef<"pbx", 'Int'>
|
|
readonly phone: Prisma.FieldRef<"pbx", 'String'>
|
|
readonly name: Prisma.FieldRef<"pbx", 'String'>
|
|
readonly password: Prisma.FieldRef<"pbx", 'String'>
|
|
readonly vm_password: Prisma.FieldRef<"pbx", 'String'>
|
|
readonly has_vm: Prisma.FieldRef<"pbx", 'Int'>
|
|
readonly vm_email: Prisma.FieldRef<"pbx", 'String'>
|
|
readonly keep_msg: Prisma.FieldRef<"pbx", 'Int'>
|
|
readonly vm_disk_quota: Prisma.FieldRef<"pbx", 'Int'>
|
|
readonly int_code: Prisma.FieldRef<"pbx", 'String'>
|
|
readonly language: Prisma.FieldRef<"pbx", 'String'>
|
|
readonly call_911: Prisma.FieldRef<"pbx", 'String'>
|
|
readonly max_calls: Prisma.FieldRef<"pbx", 'Int'>
|
|
readonly call_timeout: Prisma.FieldRef<"pbx", 'Int'>
|
|
readonly user_context: Prisma.FieldRef<"pbx", 'String'>
|
|
readonly country_whitelist: Prisma.FieldRef<"pbx", 'String'>
|
|
readonly date_origin: Prisma.FieldRef<"pbx", 'BigInt'>
|
|
readonly date_update: Prisma.FieldRef<"pbx", 'BigInt'>
|
|
readonly update_by: Prisma.FieldRef<"pbx", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* pbx findUnique
|
|
*/
|
|
export type pbxFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the pbx
|
|
*/
|
|
select?: Prisma.pbxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the pbx
|
|
*/
|
|
omit?: Prisma.pbxOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which pbx to fetch.
|
|
*/
|
|
where: Prisma.pbxWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* pbx findUniqueOrThrow
|
|
*/
|
|
export type pbxFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the pbx
|
|
*/
|
|
select?: Prisma.pbxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the pbx
|
|
*/
|
|
omit?: Prisma.pbxOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which pbx to fetch.
|
|
*/
|
|
where: Prisma.pbxWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* pbx findFirst
|
|
*/
|
|
export type pbxFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the pbx
|
|
*/
|
|
select?: Prisma.pbxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the pbx
|
|
*/
|
|
omit?: Prisma.pbxOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which pbx to fetch.
|
|
*/
|
|
where?: Prisma.pbxWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of pbxes to fetch.
|
|
*/
|
|
orderBy?: Prisma.pbxOrderByWithRelationInput | Prisma.pbxOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for pbxes.
|
|
*/
|
|
cursor?: Prisma.pbxWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` pbxes 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` pbxes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of pbxes.
|
|
*/
|
|
distinct?: Prisma.PbxScalarFieldEnum | Prisma.PbxScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* pbx findFirstOrThrow
|
|
*/
|
|
export type pbxFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the pbx
|
|
*/
|
|
select?: Prisma.pbxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the pbx
|
|
*/
|
|
omit?: Prisma.pbxOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which pbx to fetch.
|
|
*/
|
|
where?: Prisma.pbxWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of pbxes to fetch.
|
|
*/
|
|
orderBy?: Prisma.pbxOrderByWithRelationInput | Prisma.pbxOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for pbxes.
|
|
*/
|
|
cursor?: Prisma.pbxWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` pbxes 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` pbxes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of pbxes.
|
|
*/
|
|
distinct?: Prisma.PbxScalarFieldEnum | Prisma.PbxScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* pbx findMany
|
|
*/
|
|
export type pbxFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the pbx
|
|
*/
|
|
select?: Prisma.pbxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the pbx
|
|
*/
|
|
omit?: Prisma.pbxOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which pbxes to fetch.
|
|
*/
|
|
where?: Prisma.pbxWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of pbxes to fetch.
|
|
*/
|
|
orderBy?: Prisma.pbxOrderByWithRelationInput | Prisma.pbxOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing pbxes.
|
|
*/
|
|
cursor?: Prisma.pbxWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` pbxes 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` pbxes.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.PbxScalarFieldEnum | Prisma.PbxScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* pbx create
|
|
*/
|
|
export type pbxCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the pbx
|
|
*/
|
|
select?: Prisma.pbxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the pbx
|
|
*/
|
|
omit?: Prisma.pbxOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a pbx.
|
|
*/
|
|
data: Prisma.XOR<Prisma.pbxCreateInput, Prisma.pbxUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* pbx createMany
|
|
*/
|
|
export type pbxCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many pbxes.
|
|
*/
|
|
data: Prisma.pbxCreateManyInput | Prisma.pbxCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* pbx update
|
|
*/
|
|
export type pbxUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the pbx
|
|
*/
|
|
select?: Prisma.pbxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the pbx
|
|
*/
|
|
omit?: Prisma.pbxOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a pbx.
|
|
*/
|
|
data: Prisma.XOR<Prisma.pbxUpdateInput, Prisma.pbxUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which pbx to update.
|
|
*/
|
|
where: Prisma.pbxWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* pbx updateMany
|
|
*/
|
|
export type pbxUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update pbxes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.pbxUpdateManyMutationInput, Prisma.pbxUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which pbxes to update
|
|
*/
|
|
where?: Prisma.pbxWhereInput
|
|
/**
|
|
* Limit how many pbxes to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* pbx upsert
|
|
*/
|
|
export type pbxUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the pbx
|
|
*/
|
|
select?: Prisma.pbxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the pbx
|
|
*/
|
|
omit?: Prisma.pbxOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the pbx to update in case it exists.
|
|
*/
|
|
where: Prisma.pbxWhereUniqueInput
|
|
/**
|
|
* In case the pbx found by the `where` argument doesn't exist, create a new pbx with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.pbxCreateInput, Prisma.pbxUncheckedCreateInput>
|
|
/**
|
|
* In case the pbx was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.pbxUpdateInput, Prisma.pbxUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* pbx delete
|
|
*/
|
|
export type pbxDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the pbx
|
|
*/
|
|
select?: Prisma.pbxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the pbx
|
|
*/
|
|
omit?: Prisma.pbxOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which pbx to delete.
|
|
*/
|
|
where: Prisma.pbxWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* pbx deleteMany
|
|
*/
|
|
export type pbxDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which pbxes to delete
|
|
*/
|
|
where?: Prisma.pbxWhereInput
|
|
/**
|
|
* Limit how many pbxes to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* pbx without action
|
|
*/
|
|
export type pbxDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the pbx
|
|
*/
|
|
select?: Prisma.pbxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the pbx
|
|
*/
|
|
omit?: Prisma.pbxOmit<ExtArgs> | null
|
|
}
|