targo-backend/prisma/mariadb/generated/prisma/client/mariadb/models/delivery.ts

1628 lines
58 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 `delivery` 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 delivery
*
*/
export type deliveryModel = runtime.Types.Result.DefaultSelection<Prisma.$deliveryPayload>
export type AggregateDelivery = {
_count: DeliveryCountAggregateOutputType | null
_avg: DeliveryAvgAggregateOutputType | null
_sum: DeliverySumAggregateOutputType | null
_min: DeliveryMinAggregateOutputType | null
_max: DeliveryMaxAggregateOutputType | null
}
export type DeliveryAvgAggregateOutputType = {
id: number | null
account_id: number | null
date_orig: number | null
longitude: runtime.Decimal | null
latitude: runtime.Decimal | null
quota_max_day: number | null
quota_max_night: number | null
expanded: number | null
placemarks_id: number | null
epg_subid: number | null
}
export type DeliverySumAggregateOutputType = {
id: number | null
account_id: number | null
date_orig: bigint | null
longitude: runtime.Decimal | null
latitude: runtime.Decimal | null
quota_max_day: bigint | null
quota_max_night: bigint | null
expanded: number | null
placemarks_id: bigint | null
epg_subid: number | null
}
export type DeliveryMinAggregateOutputType = {
id: number | null
account_id: number | null
name: string | null
comment: string | null
date_orig: bigint | null
address1: string | null
address2: string | null
city: string | null
state: string | null
zip: string | null
longitude: runtime.Decimal | null
latitude: runtime.Decimal | null
tel_home: string | null
tel_office: string | null
tel_office_ext: string | null
cell: string | null
fax: string | null
email: string | null
quota_max_day: bigint | null
quota_max_night: bigint | null
contact: string | null
expanded: number | null
placemarks_id: bigint | null
epg_subid: number | null
}
export type DeliveryMaxAggregateOutputType = {
id: number | null
account_id: number | null
name: string | null
comment: string | null
date_orig: bigint | null
address1: string | null
address2: string | null
city: string | null
state: string | null
zip: string | null
longitude: runtime.Decimal | null
latitude: runtime.Decimal | null
tel_home: string | null
tel_office: string | null
tel_office_ext: string | null
cell: string | null
fax: string | null
email: string | null
quota_max_day: bigint | null
quota_max_night: bigint | null
contact: string | null
expanded: number | null
placemarks_id: bigint | null
epg_subid: number | null
}
export type DeliveryCountAggregateOutputType = {
id: number
account_id: number
name: number
comment: number
date_orig: number
address1: number
address2: number
city: number
state: number
zip: number
longitude: number
latitude: number
tel_home: number
tel_office: number
tel_office_ext: number
cell: number
fax: number
email: number
quota_max_day: number
quota_max_night: number
contact: number
expanded: number
placemarks_id: number
epg_subid: number
_all: number
}
export type DeliveryAvgAggregateInputType = {
id?: true
account_id?: true
date_orig?: true
longitude?: true
latitude?: true
quota_max_day?: true
quota_max_night?: true
expanded?: true
placemarks_id?: true
epg_subid?: true
}
export type DeliverySumAggregateInputType = {
id?: true
account_id?: true
date_orig?: true
longitude?: true
latitude?: true
quota_max_day?: true
quota_max_night?: true
expanded?: true
placemarks_id?: true
epg_subid?: true
}
export type DeliveryMinAggregateInputType = {
id?: true
account_id?: true
name?: true
comment?: true
date_orig?: true
address1?: true
address2?: true
city?: true
state?: true
zip?: true
longitude?: true
latitude?: true
tel_home?: true
tel_office?: true
tel_office_ext?: true
cell?: true
fax?: true
email?: true
quota_max_day?: true
quota_max_night?: true
contact?: true
expanded?: true
placemarks_id?: true
epg_subid?: true
}
export type DeliveryMaxAggregateInputType = {
id?: true
account_id?: true
name?: true
comment?: true
date_orig?: true
address1?: true
address2?: true
city?: true
state?: true
zip?: true
longitude?: true
latitude?: true
tel_home?: true
tel_office?: true
tel_office_ext?: true
cell?: true
fax?: true
email?: true
quota_max_day?: true
quota_max_night?: true
contact?: true
expanded?: true
placemarks_id?: true
epg_subid?: true
}
export type DeliveryCountAggregateInputType = {
id?: true
account_id?: true
name?: true
comment?: true
date_orig?: true
address1?: true
address2?: true
city?: true
state?: true
zip?: true
longitude?: true
latitude?: true
tel_home?: true
tel_office?: true
tel_office_ext?: true
cell?: true
fax?: true
email?: true
quota_max_day?: true
quota_max_night?: true
contact?: true
expanded?: true
placemarks_id?: true
epg_subid?: true
_all?: true
}
export type DeliveryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which delivery to aggregate.
*/
where?: Prisma.deliveryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of deliveries to fetch.
*/
orderBy?: Prisma.deliveryOrderByWithRelationInput | Prisma.deliveryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.deliveryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` deliveries 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` deliveries.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned deliveries
**/
_count?: true | DeliveryCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: DeliveryAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: DeliverySumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: DeliveryMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: DeliveryMaxAggregateInputType
}
export type GetDeliveryAggregateType<T extends DeliveryAggregateArgs> = {
[P in keyof T & keyof AggregateDelivery]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateDelivery[P]>
: Prisma.GetScalarType<T[P], AggregateDelivery[P]>
}
export type deliveryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.deliveryWhereInput
orderBy?: Prisma.deliveryOrderByWithAggregationInput | Prisma.deliveryOrderByWithAggregationInput[]
by: Prisma.DeliveryScalarFieldEnum[] | Prisma.DeliveryScalarFieldEnum
having?: Prisma.deliveryScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: DeliveryCountAggregateInputType | true
_avg?: DeliveryAvgAggregateInputType
_sum?: DeliverySumAggregateInputType
_min?: DeliveryMinAggregateInputType
_max?: DeliveryMaxAggregateInputType
}
export type DeliveryGroupByOutputType = {
id: number
account_id: number | null
name: string
comment: string
date_orig: bigint | null
address1: string | null
address2: string | null
city: string | null
state: string | null
zip: string | null
longitude: runtime.Decimal
latitude: runtime.Decimal
tel_home: string | null
tel_office: string | null
tel_office_ext: string | null
cell: string | null
fax: string | null
email: string | null
quota_max_day: bigint
quota_max_night: bigint
contact: string | null
expanded: number | null
placemarks_id: bigint | null
epg_subid: number
_count: DeliveryCountAggregateOutputType | null
_avg: DeliveryAvgAggregateOutputType | null
_sum: DeliverySumAggregateOutputType | null
_min: DeliveryMinAggregateOutputType | null
_max: DeliveryMaxAggregateOutputType | null
}
type GetDeliveryGroupByPayload<T extends deliveryGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<DeliveryGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof DeliveryGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], DeliveryGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], DeliveryGroupByOutputType[P]>
}
>
>
export type deliveryWhereInput = {
AND?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[]
OR?: Prisma.deliveryWhereInput[]
NOT?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[]
id?: Prisma.IntFilter<"delivery"> | number
account_id?: Prisma.IntNullableFilter<"delivery"> | number | null
name?: Prisma.StringFilter<"delivery"> | string
comment?: Prisma.StringFilter<"delivery"> | string
date_orig?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null
address1?: Prisma.StringNullableFilter<"delivery"> | string | null
address2?: Prisma.StringNullableFilter<"delivery"> | string | null
city?: Prisma.StringNullableFilter<"delivery"> | string | null
state?: Prisma.StringNullableFilter<"delivery"> | string | null
zip?: Prisma.StringNullableFilter<"delivery"> | string | null
longitude?: Prisma.DecimalFilter<"delivery"> | runtime.Decimal | runtime.DecimalJsLike | number | string
latitude?: Prisma.DecimalFilter<"delivery"> | runtime.Decimal | runtime.DecimalJsLike | number | string
tel_home?: Prisma.StringNullableFilter<"delivery"> | string | null
tel_office?: Prisma.StringNullableFilter<"delivery"> | string | null
tel_office_ext?: Prisma.StringNullableFilter<"delivery"> | string | null
cell?: Prisma.StringNullableFilter<"delivery"> | string | null
fax?: Prisma.StringNullableFilter<"delivery"> | string | null
email?: Prisma.StringNullableFilter<"delivery"> | string | null
quota_max_day?: Prisma.BigIntFilter<"delivery"> | bigint | number
quota_max_night?: Prisma.BigIntFilter<"delivery"> | bigint | number
contact?: Prisma.StringNullableFilter<"delivery"> | string | null
expanded?: Prisma.IntNullableFilter<"delivery"> | number | null
placemarks_id?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null
epg_subid?: Prisma.IntFilter<"delivery"> | number
}
export type deliveryOrderByWithRelationInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
name?: Prisma.SortOrder
comment?: Prisma.SortOrder
date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
address1?: Prisma.SortOrderInput | Prisma.SortOrder
address2?: Prisma.SortOrderInput | Prisma.SortOrder
city?: Prisma.SortOrderInput | Prisma.SortOrder
state?: Prisma.SortOrderInput | Prisma.SortOrder
zip?: Prisma.SortOrderInput | Prisma.SortOrder
longitude?: Prisma.SortOrder
latitude?: Prisma.SortOrder
tel_home?: Prisma.SortOrderInput | Prisma.SortOrder
tel_office?: Prisma.SortOrderInput | Prisma.SortOrder
tel_office_ext?: Prisma.SortOrderInput | Prisma.SortOrder
cell?: Prisma.SortOrderInput | Prisma.SortOrder
fax?: Prisma.SortOrderInput | Prisma.SortOrder
email?: Prisma.SortOrderInput | Prisma.SortOrder
quota_max_day?: Prisma.SortOrder
quota_max_night?: Prisma.SortOrder
contact?: Prisma.SortOrderInput | Prisma.SortOrder
expanded?: Prisma.SortOrderInput | Prisma.SortOrder
placemarks_id?: Prisma.SortOrderInput | Prisma.SortOrder
epg_subid?: Prisma.SortOrder
_relevance?: Prisma.deliveryOrderByRelevanceInput
}
export type deliveryWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[]
OR?: Prisma.deliveryWhereInput[]
NOT?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[]
account_id?: Prisma.IntNullableFilter<"delivery"> | number | null
name?: Prisma.StringFilter<"delivery"> | string
comment?: Prisma.StringFilter<"delivery"> | string
date_orig?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null
address1?: Prisma.StringNullableFilter<"delivery"> | string | null
address2?: Prisma.StringNullableFilter<"delivery"> | string | null
city?: Prisma.StringNullableFilter<"delivery"> | string | null
state?: Prisma.StringNullableFilter<"delivery"> | string | null
zip?: Prisma.StringNullableFilter<"delivery"> | string | null
longitude?: Prisma.DecimalFilter<"delivery"> | runtime.Decimal | runtime.DecimalJsLike | number | string
latitude?: Prisma.DecimalFilter<"delivery"> | runtime.Decimal | runtime.DecimalJsLike | number | string
tel_home?: Prisma.StringNullableFilter<"delivery"> | string | null
tel_office?: Prisma.StringNullableFilter<"delivery"> | string | null
tel_office_ext?: Prisma.StringNullableFilter<"delivery"> | string | null
cell?: Prisma.StringNullableFilter<"delivery"> | string | null
fax?: Prisma.StringNullableFilter<"delivery"> | string | null
email?: Prisma.StringNullableFilter<"delivery"> | string | null
quota_max_day?: Prisma.BigIntFilter<"delivery"> | bigint | number
quota_max_night?: Prisma.BigIntFilter<"delivery"> | bigint | number
contact?: Prisma.StringNullableFilter<"delivery"> | string | null
expanded?: Prisma.IntNullableFilter<"delivery"> | number | null
placemarks_id?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null
epg_subid?: Prisma.IntFilter<"delivery"> | number
}, "id">
export type deliveryOrderByWithAggregationInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
name?: Prisma.SortOrder
comment?: Prisma.SortOrder
date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
address1?: Prisma.SortOrderInput | Prisma.SortOrder
address2?: Prisma.SortOrderInput | Prisma.SortOrder
city?: Prisma.SortOrderInput | Prisma.SortOrder
state?: Prisma.SortOrderInput | Prisma.SortOrder
zip?: Prisma.SortOrderInput | Prisma.SortOrder
longitude?: Prisma.SortOrder
latitude?: Prisma.SortOrder
tel_home?: Prisma.SortOrderInput | Prisma.SortOrder
tel_office?: Prisma.SortOrderInput | Prisma.SortOrder
tel_office_ext?: Prisma.SortOrderInput | Prisma.SortOrder
cell?: Prisma.SortOrderInput | Prisma.SortOrder
fax?: Prisma.SortOrderInput | Prisma.SortOrder
email?: Prisma.SortOrderInput | Prisma.SortOrder
quota_max_day?: Prisma.SortOrder
quota_max_night?: Prisma.SortOrder
contact?: Prisma.SortOrderInput | Prisma.SortOrder
expanded?: Prisma.SortOrderInput | Prisma.SortOrder
placemarks_id?: Prisma.SortOrderInput | Prisma.SortOrder
epg_subid?: Prisma.SortOrder
_count?: Prisma.deliveryCountOrderByAggregateInput
_avg?: Prisma.deliveryAvgOrderByAggregateInput
_max?: Prisma.deliveryMaxOrderByAggregateInput
_min?: Prisma.deliveryMinOrderByAggregateInput
_sum?: Prisma.deliverySumOrderByAggregateInput
}
export type deliveryScalarWhereWithAggregatesInput = {
AND?: Prisma.deliveryScalarWhereWithAggregatesInput | Prisma.deliveryScalarWhereWithAggregatesInput[]
OR?: Prisma.deliveryScalarWhereWithAggregatesInput[]
NOT?: Prisma.deliveryScalarWhereWithAggregatesInput | Prisma.deliveryScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"delivery"> | number
account_id?: Prisma.IntNullableWithAggregatesFilter<"delivery"> | number | null
name?: Prisma.StringWithAggregatesFilter<"delivery"> | string
comment?: Prisma.StringWithAggregatesFilter<"delivery"> | string
date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"delivery"> | bigint | number | null
address1?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null
address2?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null
city?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null
state?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null
zip?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null
longitude?: Prisma.DecimalWithAggregatesFilter<"delivery"> | runtime.Decimal | runtime.DecimalJsLike | number | string
latitude?: Prisma.DecimalWithAggregatesFilter<"delivery"> | runtime.Decimal | runtime.DecimalJsLike | number | string
tel_home?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null
tel_office?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null
tel_office_ext?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null
cell?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null
fax?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null
email?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null
quota_max_day?: Prisma.BigIntWithAggregatesFilter<"delivery"> | bigint | number
quota_max_night?: Prisma.BigIntWithAggregatesFilter<"delivery"> | bigint | number
contact?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null
expanded?: Prisma.IntNullableWithAggregatesFilter<"delivery"> | number | null
placemarks_id?: Prisma.BigIntNullableWithAggregatesFilter<"delivery"> | bigint | number | null
epg_subid?: Prisma.IntWithAggregatesFilter<"delivery"> | number
}
export type deliveryCreateInput = {
account_id?: number | null
name: string
comment: string
date_orig?: bigint | number | null
address1?: string | null
address2?: string | null
city?: string | null
state?: string | null
zip?: string | null
longitude: runtime.Decimal | runtime.DecimalJsLike | number | string
latitude: runtime.Decimal | runtime.DecimalJsLike | number | string
tel_home?: string | null
tel_office?: string | null
tel_office_ext?: string | null
cell?: string | null
fax?: string | null
email?: string | null
quota_max_day?: bigint | number
quota_max_night?: bigint | number
contact?: string | null
expanded?: number | null
placemarks_id?: bigint | number | null
epg_subid?: number
}
export type deliveryUncheckedCreateInput = {
id?: number
account_id?: number | null
name: string
comment: string
date_orig?: bigint | number | null
address1?: string | null
address2?: string | null
city?: string | null
state?: string | null
zip?: string | null
longitude: runtime.Decimal | runtime.DecimalJsLike | number | string
latitude: runtime.Decimal | runtime.DecimalJsLike | number | string
tel_home?: string | null
tel_office?: string | null
tel_office_ext?: string | null
cell?: string | null
fax?: string | null
email?: string | null
quota_max_day?: bigint | number
quota_max_night?: bigint | number
contact?: string | null
expanded?: number | null
placemarks_id?: bigint | number | null
epg_subid?: number
}
export type deliveryUpdateInput = {
account_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
name?: Prisma.StringFieldUpdateOperationsInput | string
comment?: Prisma.StringFieldUpdateOperationsInput | string
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
address1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
address2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
zip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
longitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
latitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
tel_home?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tel_office?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tel_office_ext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cell?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
quota_max_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
quota_max_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
contact?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
expanded?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
placemarks_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
epg_subid?: Prisma.IntFieldUpdateOperationsInput | number
}
export type deliveryUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
account_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
name?: Prisma.StringFieldUpdateOperationsInput | string
comment?: Prisma.StringFieldUpdateOperationsInput | string
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
address1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
address2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
zip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
longitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
latitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
tel_home?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tel_office?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tel_office_ext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cell?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
quota_max_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
quota_max_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
contact?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
expanded?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
placemarks_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
epg_subid?: Prisma.IntFieldUpdateOperationsInput | number
}
export type deliveryCreateManyInput = {
id?: number
account_id?: number | null
name: string
comment: string
date_orig?: bigint | number | null
address1?: string | null
address2?: string | null
city?: string | null
state?: string | null
zip?: string | null
longitude: runtime.Decimal | runtime.DecimalJsLike | number | string
latitude: runtime.Decimal | runtime.DecimalJsLike | number | string
tel_home?: string | null
tel_office?: string | null
tel_office_ext?: string | null
cell?: string | null
fax?: string | null
email?: string | null
quota_max_day?: bigint | number
quota_max_night?: bigint | number
contact?: string | null
expanded?: number | null
placemarks_id?: bigint | number | null
epg_subid?: number
}
export type deliveryUpdateManyMutationInput = {
account_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
name?: Prisma.StringFieldUpdateOperationsInput | string
comment?: Prisma.StringFieldUpdateOperationsInput | string
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
address1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
address2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
zip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
longitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
latitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
tel_home?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tel_office?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tel_office_ext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cell?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
quota_max_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
quota_max_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
contact?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
expanded?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
placemarks_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
epg_subid?: Prisma.IntFieldUpdateOperationsInput | number
}
export type deliveryUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
account_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
name?: Prisma.StringFieldUpdateOperationsInput | string
comment?: Prisma.StringFieldUpdateOperationsInput | string
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
address1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
address2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
zip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
longitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
latitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
tel_home?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tel_office?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tel_office_ext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cell?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
quota_max_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
quota_max_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
contact?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
expanded?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
placemarks_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
epg_subid?: Prisma.IntFieldUpdateOperationsInput | number
}
export type deliveryOrderByRelevanceInput = {
fields: Prisma.deliveryOrderByRelevanceFieldEnum | Prisma.deliveryOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type deliveryCountOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
name?: Prisma.SortOrder
comment?: Prisma.SortOrder
date_orig?: Prisma.SortOrder
address1?: Prisma.SortOrder
address2?: Prisma.SortOrder
city?: Prisma.SortOrder
state?: Prisma.SortOrder
zip?: Prisma.SortOrder
longitude?: Prisma.SortOrder
latitude?: Prisma.SortOrder
tel_home?: Prisma.SortOrder
tel_office?: Prisma.SortOrder
tel_office_ext?: Prisma.SortOrder
cell?: Prisma.SortOrder
fax?: Prisma.SortOrder
email?: Prisma.SortOrder
quota_max_day?: Prisma.SortOrder
quota_max_night?: Prisma.SortOrder
contact?: Prisma.SortOrder
expanded?: Prisma.SortOrder
placemarks_id?: Prisma.SortOrder
epg_subid?: Prisma.SortOrder
}
export type deliveryAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date_orig?: Prisma.SortOrder
longitude?: Prisma.SortOrder
latitude?: Prisma.SortOrder
quota_max_day?: Prisma.SortOrder
quota_max_night?: Prisma.SortOrder
expanded?: Prisma.SortOrder
placemarks_id?: Prisma.SortOrder
epg_subid?: Prisma.SortOrder
}
export type deliveryMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
name?: Prisma.SortOrder
comment?: Prisma.SortOrder
date_orig?: Prisma.SortOrder
address1?: Prisma.SortOrder
address2?: Prisma.SortOrder
city?: Prisma.SortOrder
state?: Prisma.SortOrder
zip?: Prisma.SortOrder
longitude?: Prisma.SortOrder
latitude?: Prisma.SortOrder
tel_home?: Prisma.SortOrder
tel_office?: Prisma.SortOrder
tel_office_ext?: Prisma.SortOrder
cell?: Prisma.SortOrder
fax?: Prisma.SortOrder
email?: Prisma.SortOrder
quota_max_day?: Prisma.SortOrder
quota_max_night?: Prisma.SortOrder
contact?: Prisma.SortOrder
expanded?: Prisma.SortOrder
placemarks_id?: Prisma.SortOrder
epg_subid?: Prisma.SortOrder
}
export type deliveryMinOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
name?: Prisma.SortOrder
comment?: Prisma.SortOrder
date_orig?: Prisma.SortOrder
address1?: Prisma.SortOrder
address2?: Prisma.SortOrder
city?: Prisma.SortOrder
state?: Prisma.SortOrder
zip?: Prisma.SortOrder
longitude?: Prisma.SortOrder
latitude?: Prisma.SortOrder
tel_home?: Prisma.SortOrder
tel_office?: Prisma.SortOrder
tel_office_ext?: Prisma.SortOrder
cell?: Prisma.SortOrder
fax?: Prisma.SortOrder
email?: Prisma.SortOrder
quota_max_day?: Prisma.SortOrder
quota_max_night?: Prisma.SortOrder
contact?: Prisma.SortOrder
expanded?: Prisma.SortOrder
placemarks_id?: Prisma.SortOrder
epg_subid?: Prisma.SortOrder
}
export type deliverySumOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date_orig?: Prisma.SortOrder
longitude?: Prisma.SortOrder
latitude?: Prisma.SortOrder
quota_max_day?: Prisma.SortOrder
quota_max_night?: Prisma.SortOrder
expanded?: Prisma.SortOrder
placemarks_id?: Prisma.SortOrder
epg_subid?: Prisma.SortOrder
}
export type deliverySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
account_id?: boolean
name?: boolean
comment?: boolean
date_orig?: boolean
address1?: boolean
address2?: boolean
city?: boolean
state?: boolean
zip?: boolean
longitude?: boolean
latitude?: boolean
tel_home?: boolean
tel_office?: boolean
tel_office_ext?: boolean
cell?: boolean
fax?: boolean
email?: boolean
quota_max_day?: boolean
quota_max_night?: boolean
contact?: boolean
expanded?: boolean
placemarks_id?: boolean
epg_subid?: boolean
}, ExtArgs["result"]["delivery"]>
export type deliverySelectScalar = {
id?: boolean
account_id?: boolean
name?: boolean
comment?: boolean
date_orig?: boolean
address1?: boolean
address2?: boolean
city?: boolean
state?: boolean
zip?: boolean
longitude?: boolean
latitude?: boolean
tel_home?: boolean
tel_office?: boolean
tel_office_ext?: boolean
cell?: boolean
fax?: boolean
email?: boolean
quota_max_day?: boolean
quota_max_night?: boolean
contact?: boolean
expanded?: boolean
placemarks_id?: boolean
epg_subid?: boolean
}
export type deliveryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "name" | "comment" | "date_orig" | "address1" | "address2" | "city" | "state" | "zip" | "longitude" | "latitude" | "tel_home" | "tel_office" | "tel_office_ext" | "cell" | "fax" | "email" | "quota_max_day" | "quota_max_night" | "contact" | "expanded" | "placemarks_id" | "epg_subid", ExtArgs["result"]["delivery"]>
export type $deliveryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "delivery"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
account_id: number | null
name: string
comment: string
date_orig: bigint | null
address1: string | null
address2: string | null
city: string | null
state: string | null
zip: string | null
longitude: runtime.Decimal
latitude: runtime.Decimal
tel_home: string | null
tel_office: string | null
tel_office_ext: string | null
cell: string | null
fax: string | null
email: string | null
quota_max_day: bigint
quota_max_night: bigint
contact: string | null
expanded: number | null
placemarks_id: bigint | null
epg_subid: number
}, ExtArgs["result"]["delivery"]>
composites: {}
}
export type deliveryGetPayload<S extends boolean | null | undefined | deliveryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$deliveryPayload, S>
export type deliveryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<deliveryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: DeliveryCountAggregateInputType | true
}
export interface deliveryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['delivery'], meta: { name: 'delivery' } }
/**
* Find zero or one Delivery that matches the filter.
* @param {deliveryFindUniqueArgs} args - Arguments to find a Delivery
* @example
* // Get one Delivery
* const delivery = await prisma.delivery.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends deliveryFindUniqueArgs>(args: Prisma.SelectSubset<T, deliveryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__deliveryClient<runtime.Types.Result.GetResult<Prisma.$deliveryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Delivery that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {deliveryFindUniqueOrThrowArgs} args - Arguments to find a Delivery
* @example
* // Get one Delivery
* const delivery = await prisma.delivery.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends deliveryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, deliveryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__deliveryClient<runtime.Types.Result.GetResult<Prisma.$deliveryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Delivery 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 {deliveryFindFirstArgs} args - Arguments to find a Delivery
* @example
* // Get one Delivery
* const delivery = await prisma.delivery.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends deliveryFindFirstArgs>(args?: Prisma.SelectSubset<T, deliveryFindFirstArgs<ExtArgs>>): Prisma.Prisma__deliveryClient<runtime.Types.Result.GetResult<Prisma.$deliveryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Delivery 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 {deliveryFindFirstOrThrowArgs} args - Arguments to find a Delivery
* @example
* // Get one Delivery
* const delivery = await prisma.delivery.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends deliveryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, deliveryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__deliveryClient<runtime.Types.Result.GetResult<Prisma.$deliveryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Deliveries 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 {deliveryFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Deliveries
* const deliveries = await prisma.delivery.findMany()
*
* // Get first 10 Deliveries
* const deliveries = await prisma.delivery.findMany({ take: 10 })
*
* // Only select the `id`
* const deliveryWithIdOnly = await prisma.delivery.findMany({ select: { id: true } })
*
*/
findMany<T extends deliveryFindManyArgs>(args?: Prisma.SelectSubset<T, deliveryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$deliveryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Delivery.
* @param {deliveryCreateArgs} args - Arguments to create a Delivery.
* @example
* // Create one Delivery
* const Delivery = await prisma.delivery.create({
* data: {
* // ... data to create a Delivery
* }
* })
*
*/
create<T extends deliveryCreateArgs>(args: Prisma.SelectSubset<T, deliveryCreateArgs<ExtArgs>>): Prisma.Prisma__deliveryClient<runtime.Types.Result.GetResult<Prisma.$deliveryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Deliveries.
* @param {deliveryCreateManyArgs} args - Arguments to create many Deliveries.
* @example
* // Create many Deliveries
* const delivery = await prisma.delivery.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends deliveryCreateManyArgs>(args?: Prisma.SelectSubset<T, deliveryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Delivery.
* @param {deliveryDeleteArgs} args - Arguments to delete one Delivery.
* @example
* // Delete one Delivery
* const Delivery = await prisma.delivery.delete({
* where: {
* // ... filter to delete one Delivery
* }
* })
*
*/
delete<T extends deliveryDeleteArgs>(args: Prisma.SelectSubset<T, deliveryDeleteArgs<ExtArgs>>): Prisma.Prisma__deliveryClient<runtime.Types.Result.GetResult<Prisma.$deliveryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Delivery.
* @param {deliveryUpdateArgs} args - Arguments to update one Delivery.
* @example
* // Update one Delivery
* const delivery = await prisma.delivery.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends deliveryUpdateArgs>(args: Prisma.SelectSubset<T, deliveryUpdateArgs<ExtArgs>>): Prisma.Prisma__deliveryClient<runtime.Types.Result.GetResult<Prisma.$deliveryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Deliveries.
* @param {deliveryDeleteManyArgs} args - Arguments to filter Deliveries to delete.
* @example
* // Delete a few Deliveries
* const { count } = await prisma.delivery.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends deliveryDeleteManyArgs>(args?: Prisma.SelectSubset<T, deliveryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Deliveries.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {deliveryUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Deliveries
* const delivery = await prisma.delivery.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends deliveryUpdateManyArgs>(args: Prisma.SelectSubset<T, deliveryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Delivery.
* @param {deliveryUpsertArgs} args - Arguments to update or create a Delivery.
* @example
* // Update or create a Delivery
* const delivery = await prisma.delivery.upsert({
* create: {
* // ... data to create a Delivery
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Delivery we want to update
* }
* })
*/
upsert<T extends deliveryUpsertArgs>(args: Prisma.SelectSubset<T, deliveryUpsertArgs<ExtArgs>>): Prisma.Prisma__deliveryClient<runtime.Types.Result.GetResult<Prisma.$deliveryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Deliveries.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {deliveryCountArgs} args - Arguments to filter Deliveries to count.
* @example
* // Count the number of Deliveries
* const count = await prisma.delivery.count({
* where: {
* // ... the filter for the Deliveries we want to count
* }
* })
**/
count<T extends deliveryCountArgs>(
args?: Prisma.Subset<T, deliveryCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], DeliveryCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Delivery.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {DeliveryAggregateArgs} 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 DeliveryAggregateArgs>(args: Prisma.Subset<T, DeliveryAggregateArgs>): Prisma.PrismaPromise<GetDeliveryAggregateType<T>>
/**
* Group by Delivery.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {deliveryGroupByArgs} 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 deliveryGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: deliveryGroupByArgs['orderBy'] }
: { orderBy?: deliveryGroupByArgs['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, deliveryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDeliveryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the delivery model
*/
readonly fields: deliveryFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for delivery.
* 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__deliveryClient<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 delivery model
*/
export interface deliveryFieldRefs {
readonly id: Prisma.FieldRef<"delivery", 'Int'>
readonly account_id: Prisma.FieldRef<"delivery", 'Int'>
readonly name: Prisma.FieldRef<"delivery", 'String'>
readonly comment: Prisma.FieldRef<"delivery", 'String'>
readonly date_orig: Prisma.FieldRef<"delivery", 'BigInt'>
readonly address1: Prisma.FieldRef<"delivery", 'String'>
readonly address2: Prisma.FieldRef<"delivery", 'String'>
readonly city: Prisma.FieldRef<"delivery", 'String'>
readonly state: Prisma.FieldRef<"delivery", 'String'>
readonly zip: Prisma.FieldRef<"delivery", 'String'>
readonly longitude: Prisma.FieldRef<"delivery", 'Decimal'>
readonly latitude: Prisma.FieldRef<"delivery", 'Decimal'>
readonly tel_home: Prisma.FieldRef<"delivery", 'String'>
readonly tel_office: Prisma.FieldRef<"delivery", 'String'>
readonly tel_office_ext: Prisma.FieldRef<"delivery", 'String'>
readonly cell: Prisma.FieldRef<"delivery", 'String'>
readonly fax: Prisma.FieldRef<"delivery", 'String'>
readonly email: Prisma.FieldRef<"delivery", 'String'>
readonly quota_max_day: Prisma.FieldRef<"delivery", 'BigInt'>
readonly quota_max_night: Prisma.FieldRef<"delivery", 'BigInt'>
readonly contact: Prisma.FieldRef<"delivery", 'String'>
readonly expanded: Prisma.FieldRef<"delivery", 'Int'>
readonly placemarks_id: Prisma.FieldRef<"delivery", 'BigInt'>
readonly epg_subid: Prisma.FieldRef<"delivery", 'Int'>
}
// Custom InputTypes
/**
* delivery findUnique
*/
export type deliveryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the delivery
*/
select?: Prisma.deliverySelect<ExtArgs> | null
/**
* Omit specific fields from the delivery
*/
omit?: Prisma.deliveryOmit<ExtArgs> | null
/**
* Filter, which delivery to fetch.
*/
where: Prisma.deliveryWhereUniqueInput
}
/**
* delivery findUniqueOrThrow
*/
export type deliveryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the delivery
*/
select?: Prisma.deliverySelect<ExtArgs> | null
/**
* Omit specific fields from the delivery
*/
omit?: Prisma.deliveryOmit<ExtArgs> | null
/**
* Filter, which delivery to fetch.
*/
where: Prisma.deliveryWhereUniqueInput
}
/**
* delivery findFirst
*/
export type deliveryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the delivery
*/
select?: Prisma.deliverySelect<ExtArgs> | null
/**
* Omit specific fields from the delivery
*/
omit?: Prisma.deliveryOmit<ExtArgs> | null
/**
* Filter, which delivery to fetch.
*/
where?: Prisma.deliveryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of deliveries to fetch.
*/
orderBy?: Prisma.deliveryOrderByWithRelationInput | Prisma.deliveryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for deliveries.
*/
cursor?: Prisma.deliveryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` deliveries 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` deliveries.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of deliveries.
*/
distinct?: Prisma.DeliveryScalarFieldEnum | Prisma.DeliveryScalarFieldEnum[]
}
/**
* delivery findFirstOrThrow
*/
export type deliveryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the delivery
*/
select?: Prisma.deliverySelect<ExtArgs> | null
/**
* Omit specific fields from the delivery
*/
omit?: Prisma.deliveryOmit<ExtArgs> | null
/**
* Filter, which delivery to fetch.
*/
where?: Prisma.deliveryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of deliveries to fetch.
*/
orderBy?: Prisma.deliveryOrderByWithRelationInput | Prisma.deliveryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for deliveries.
*/
cursor?: Prisma.deliveryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` deliveries 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` deliveries.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of deliveries.
*/
distinct?: Prisma.DeliveryScalarFieldEnum | Prisma.DeliveryScalarFieldEnum[]
}
/**
* delivery findMany
*/
export type deliveryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the delivery
*/
select?: Prisma.deliverySelect<ExtArgs> | null
/**
* Omit specific fields from the delivery
*/
omit?: Prisma.deliveryOmit<ExtArgs> | null
/**
* Filter, which deliveries to fetch.
*/
where?: Prisma.deliveryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of deliveries to fetch.
*/
orderBy?: Prisma.deliveryOrderByWithRelationInput | Prisma.deliveryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing deliveries.
*/
cursor?: Prisma.deliveryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` deliveries 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` deliveries.
*/
skip?: number
distinct?: Prisma.DeliveryScalarFieldEnum | Prisma.DeliveryScalarFieldEnum[]
}
/**
* delivery create
*/
export type deliveryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the delivery
*/
select?: Prisma.deliverySelect<ExtArgs> | null
/**
* Omit specific fields from the delivery
*/
omit?: Prisma.deliveryOmit<ExtArgs> | null
/**
* The data needed to create a delivery.
*/
data: Prisma.XOR<Prisma.deliveryCreateInput, Prisma.deliveryUncheckedCreateInput>
}
/**
* delivery createMany
*/
export type deliveryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many deliveries.
*/
data: Prisma.deliveryCreateManyInput | Prisma.deliveryCreateManyInput[]
skipDuplicates?: boolean
}
/**
* delivery update
*/
export type deliveryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the delivery
*/
select?: Prisma.deliverySelect<ExtArgs> | null
/**
* Omit specific fields from the delivery
*/
omit?: Prisma.deliveryOmit<ExtArgs> | null
/**
* The data needed to update a delivery.
*/
data: Prisma.XOR<Prisma.deliveryUpdateInput, Prisma.deliveryUncheckedUpdateInput>
/**
* Choose, which delivery to update.
*/
where: Prisma.deliveryWhereUniqueInput
}
/**
* delivery updateMany
*/
export type deliveryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update deliveries.
*/
data: Prisma.XOR<Prisma.deliveryUpdateManyMutationInput, Prisma.deliveryUncheckedUpdateManyInput>
/**
* Filter which deliveries to update
*/
where?: Prisma.deliveryWhereInput
/**
* Limit how many deliveries to update.
*/
limit?: number
}
/**
* delivery upsert
*/
export type deliveryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the delivery
*/
select?: Prisma.deliverySelect<ExtArgs> | null
/**
* Omit specific fields from the delivery
*/
omit?: Prisma.deliveryOmit<ExtArgs> | null
/**
* The filter to search for the delivery to update in case it exists.
*/
where: Prisma.deliveryWhereUniqueInput
/**
* In case the delivery found by the `where` argument doesn't exist, create a new delivery with this data.
*/
create: Prisma.XOR<Prisma.deliveryCreateInput, Prisma.deliveryUncheckedCreateInput>
/**
* In case the delivery was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.deliveryUpdateInput, Prisma.deliveryUncheckedUpdateInput>
}
/**
* delivery delete
*/
export type deliveryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the delivery
*/
select?: Prisma.deliverySelect<ExtArgs> | null
/**
* Omit specific fields from the delivery
*/
omit?: Prisma.deliveryOmit<ExtArgs> | null
/**
* Filter which delivery to delete.
*/
where: Prisma.deliveryWhereUniqueInput
}
/**
* delivery deleteMany
*/
export type deliveryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which deliveries to delete
*/
where?: Prisma.deliveryWhereInput
/**
* Limit how many deliveries to delete.
*/
limit?: number
}
/**
* delivery without action
*/
export type deliveryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the delivery
*/
select?: Prisma.deliverySelect<ExtArgs> | null
/**
* Omit specific fields from the delivery
*/
omit?: Prisma.deliveryOmit<ExtArgs> | null
}