feat(tickets): implemented a function to GET the list of tickets according to sorting and filter args
This commit is contained in:
parent
a32d636b6e
commit
f3753ec53e
|
|
@ -14,15 +14,15 @@ import * as $Enums from "./enums"
|
||||||
import type * as Prisma from "./internal/prismaNamespace"
|
import type * as Prisma from "./internal/prismaNamespace"
|
||||||
|
|
||||||
|
|
||||||
export type BigIntFilter<$PrismaModel = never> = {
|
export type IntFilter<$PrismaModel = never> = {
|
||||||
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
in?: bigint[] | number[]
|
in?: number[]
|
||||||
notIn?: bigint[] | number[]
|
notIn?: number[]
|
||||||
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number
|
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type StringNullableFilter<$PrismaModel = never> = {
|
export type StringNullableFilter<$PrismaModel = never> = {
|
||||||
|
|
@ -66,17 +66,6 @@ export type StringFilter<$PrismaModel = never> = {
|
||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IntFilter<$PrismaModel = never> = {
|
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
in?: number[]
|
|
||||||
notIn?: number[]
|
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
|
||||||
}
|
|
||||||
|
|
||||||
export type IntNullableFilter<$PrismaModel = never> = {
|
export type IntNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | null
|
||||||
|
|
@ -120,20 +109,20 @@ export type SortOrderInput = {
|
||||||
nulls?: Prisma.NullsOrder
|
nulls?: Prisma.NullsOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BigIntWithAggregatesFilter<$PrismaModel = never> = {
|
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
in?: bigint[] | number[]
|
in?: number[]
|
||||||
notIn?: bigint[] | number[]
|
notIn?: number[]
|
||||||
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||||
_sum?: Prisma.NestedBigIntFilter<$PrismaModel>
|
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedBigIntFilter<$PrismaModel>
|
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_max?: Prisma.NestedBigIntFilter<$PrismaModel>
|
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
|
@ -188,22 +177,6 @@ export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
in?: number[]
|
|
||||||
notIn?: number[]
|
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
|
||||||
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | null
|
||||||
|
|
@ -260,6 +233,33 @@ export type FloatWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
_max?: Prisma.NestedFloatFilter<$PrismaModel>
|
_max?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type BigIntFilter<$PrismaModel = never> = {
|
||||||
|
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
in?: bigint[] | number[]
|
||||||
|
notIn?: bigint[] | number[]
|
||||||
|
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BigIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
in?: bigint[] | number[]
|
||||||
|
notIn?: bigint[] | number[]
|
||||||
|
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||||
|
_sum?: Prisma.NestedBigIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedBigIntFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedBigIntFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type FloatNullableFilter<$PrismaModel = never> = {
|
export type FloatNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | null
|
||||||
|
|
@ -369,15 +369,15 @@ export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
_max?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedBigIntFilter<$PrismaModel = never> = {
|
export type NestedIntFilter<$PrismaModel = never> = {
|
||||||
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
in?: bigint[] | number[]
|
in?: number[]
|
||||||
notIn?: bigint[] | number[]
|
notIn?: number[]
|
||||||
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number
|
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
||||||
|
|
@ -421,17 +421,6 @@ export type NestedStringFilter<$PrismaModel = never> = {
|
||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedIntFilter<$PrismaModel = never> = {
|
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
in?: number[]
|
|
||||||
notIn?: number[]
|
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | null
|
||||||
|
|
@ -470,20 +459,20 @@ export type NestedFloatFilter<$PrismaModel = never> = {
|
||||||
not?: Prisma.NestedFloatFilter<$PrismaModel> | number
|
not?: Prisma.NestedFloatFilter<$PrismaModel> | number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
in?: bigint[] | number[]
|
in?: number[]
|
||||||
notIn?: bigint[] | number[]
|
notIn?: number[]
|
||||||
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||||
_sum?: Prisma.NestedBigIntFilter<$PrismaModel>
|
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedBigIntFilter<$PrismaModel>
|
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_max?: Prisma.NestedBigIntFilter<$PrismaModel>
|
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
|
@ -549,22 +538,6 @@ export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
in?: number[]
|
|
||||||
notIn?: number[]
|
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
|
||||||
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | null
|
||||||
|
|
@ -621,6 +594,33 @@ export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
_max?: Prisma.NestedFloatFilter<$PrismaModel>
|
_max?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedBigIntFilter<$PrismaModel = never> = {
|
||||||
|
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
in?: bigint[] | number[]
|
||||||
|
notIn?: bigint[] | number[]
|
||||||
|
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
in?: bigint[] | number[]
|
||||||
|
notIn?: bigint[] | number[]
|
||||||
|
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||||
|
_sum?: Prisma.NestedBigIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedBigIntFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedBigIntFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | null
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -14713,9 +14713,9 @@ export type account_suspensionOrderByRelevanceFieldEnum = (typeof account_suspen
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reference to a field of type 'BigInt'
|
* Reference to a field of type 'Int'
|
||||||
*/
|
*/
|
||||||
export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
|
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -14727,9 +14727,9 @@ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel,
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reference to a field of type 'Int'
|
* Reference to a field of type 'BigInt'
|
||||||
*/
|
*/
|
||||||
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
|
export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ export type AccountAvgAggregateOutputType = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AccountSumAggregateOutputType = {
|
export type AccountSumAggregateOutputType = {
|
||||||
id: bigint | null
|
id: number | null
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
date_last: bigint | null
|
date_last: bigint | null
|
||||||
date_expire: bigint | null
|
date_expire: bigint | null
|
||||||
|
|
@ -65,7 +65,7 @@ export type AccountSumAggregateOutputType = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AccountMinAggregateOutputType = {
|
export type AccountMinAggregateOutputType = {
|
||||||
id: bigint | null
|
id: number | null
|
||||||
customer_id: string | null
|
customer_id: string | null
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
date_last: bigint | null
|
date_last: bigint | null
|
||||||
|
|
@ -131,7 +131,7 @@ export type AccountMinAggregateOutputType = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AccountMaxAggregateOutputType = {
|
export type AccountMaxAggregateOutputType = {
|
||||||
id: bigint | null
|
id: number | null
|
||||||
customer_id: string | null
|
customer_id: string | null
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
date_last: bigint | null
|
date_last: bigint | null
|
||||||
|
|
@ -588,7 +588,7 @@ export type accountGroupByArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AccountGroupByOutputType = {
|
export type AccountGroupByOutputType = {
|
||||||
id: bigint
|
id: number
|
||||||
customer_id: string | null
|
customer_id: string | null
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
date_last: bigint | null
|
date_last: bigint | null
|
||||||
|
|
@ -677,7 +677,7 @@ export type accountWhereInput = {
|
||||||
AND?: Prisma.accountWhereInput | Prisma.accountWhereInput[]
|
AND?: Prisma.accountWhereInput | Prisma.accountWhereInput[]
|
||||||
OR?: Prisma.accountWhereInput[]
|
OR?: Prisma.accountWhereInput[]
|
||||||
NOT?: Prisma.accountWhereInput | Prisma.accountWhereInput[]
|
NOT?: Prisma.accountWhereInput | Prisma.accountWhereInput[]
|
||||||
id?: Prisma.BigIntFilter<"account"> | bigint | number
|
id?: Prisma.IntFilter<"account"> | number
|
||||||
customer_id?: Prisma.StringNullableFilter<"account"> | string | null
|
customer_id?: Prisma.StringNullableFilter<"account"> | string | null
|
||||||
date_orig?: Prisma.BigIntNullableFilter<"account"> | bigint | number | null
|
date_orig?: Prisma.BigIntNullableFilter<"account"> | bigint | number | null
|
||||||
date_last?: Prisma.BigIntNullableFilter<"account"> | bigint | number | null
|
date_last?: Prisma.BigIntNullableFilter<"account"> | bigint | number | null
|
||||||
|
|
@ -810,7 +810,7 @@ export type accountOrderByWithRelationInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type accountWhereUniqueInput = Prisma.AtLeast<{
|
export type accountWhereUniqueInput = Prisma.AtLeast<{
|
||||||
id?: bigint | number
|
id?: number
|
||||||
AND?: Prisma.accountWhereInput | Prisma.accountWhereInput[]
|
AND?: Prisma.accountWhereInput | Prisma.accountWhereInput[]
|
||||||
OR?: Prisma.accountWhereInput[]
|
OR?: Prisma.accountWhereInput[]
|
||||||
NOT?: Prisma.accountWhereInput | Prisma.accountWhereInput[]
|
NOT?: Prisma.accountWhereInput | Prisma.accountWhereInput[]
|
||||||
|
|
@ -953,7 +953,7 @@ export type accountScalarWhereWithAggregatesInput = {
|
||||||
AND?: Prisma.accountScalarWhereWithAggregatesInput | Prisma.accountScalarWhereWithAggregatesInput[]
|
AND?: Prisma.accountScalarWhereWithAggregatesInput | Prisma.accountScalarWhereWithAggregatesInput[]
|
||||||
OR?: Prisma.accountScalarWhereWithAggregatesInput[]
|
OR?: Prisma.accountScalarWhereWithAggregatesInput[]
|
||||||
NOT?: Prisma.accountScalarWhereWithAggregatesInput | Prisma.accountScalarWhereWithAggregatesInput[]
|
NOT?: Prisma.accountScalarWhereWithAggregatesInput | Prisma.accountScalarWhereWithAggregatesInput[]
|
||||||
id?: Prisma.BigIntWithAggregatesFilter<"account"> | bigint | number
|
id?: Prisma.IntWithAggregatesFilter<"account"> | number
|
||||||
customer_id?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null
|
customer_id?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null
|
||||||
date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"account"> | bigint | number | null
|
date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"account"> | bigint | number | null
|
||||||
date_last?: Prisma.BigIntNullableWithAggregatesFilter<"account"> | bigint | number | null
|
date_last?: Prisma.BigIntNullableWithAggregatesFilter<"account"> | bigint | number | null
|
||||||
|
|
@ -1019,7 +1019,6 @@ export type accountScalarWhereWithAggregatesInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type accountCreateInput = {
|
export type accountCreateInput = {
|
||||||
id?: bigint | number
|
|
||||||
customer_id?: string | null
|
customer_id?: string | null
|
||||||
date_orig?: bigint | number | null
|
date_orig?: bigint | number | null
|
||||||
date_last?: bigint | number | null
|
date_last?: bigint | number | null
|
||||||
|
|
@ -1085,7 +1084,7 @@ export type accountCreateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type accountUncheckedCreateInput = {
|
export type accountUncheckedCreateInput = {
|
||||||
id?: bigint | number
|
id?: number
|
||||||
customer_id?: string | null
|
customer_id?: string | null
|
||||||
date_orig?: bigint | number | null
|
date_orig?: bigint | number | null
|
||||||
date_last?: bigint | number | null
|
date_last?: bigint | number | null
|
||||||
|
|
@ -1151,7 +1150,6 @@ export type accountUncheckedCreateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type accountUpdateInput = {
|
export type accountUpdateInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
||||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
|
|
@ -1217,7 +1215,7 @@ export type accountUpdateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type accountUncheckedUpdateInput = {
|
export type accountUncheckedUpdateInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
|
|
@ -1283,7 +1281,7 @@ export type accountUncheckedUpdateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type accountCreateManyInput = {
|
export type accountCreateManyInput = {
|
||||||
id?: bigint | number
|
id?: number
|
||||||
customer_id?: string | null
|
customer_id?: string | null
|
||||||
date_orig?: bigint | number | null
|
date_orig?: bigint | number | null
|
||||||
date_last?: bigint | number | null
|
date_last?: bigint | number | null
|
||||||
|
|
@ -1349,7 +1347,6 @@ export type accountCreateManyInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type accountUpdateManyMutationInput = {
|
export type accountUpdateManyMutationInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
||||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
|
|
@ -1415,7 +1412,7 @@ export type accountUpdateManyMutationInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type accountUncheckedUpdateManyInput = {
|
export type accountUncheckedUpdateManyInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
|
|
@ -1722,14 +1719,6 @@ export type accountSumOrderByAggregateInput = {
|
||||||
ppa_cc?: Prisma.SortOrder
|
ppa_cc?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BigIntFieldUpdateOperationsInput = {
|
|
||||||
set?: bigint | number
|
|
||||||
increment?: bigint | number
|
|
||||||
decrement?: bigint | number
|
|
||||||
multiply?: bigint | number
|
|
||||||
divide?: bigint | number
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NullableStringFieldUpdateOperationsInput = {
|
export type NullableStringFieldUpdateOperationsInput = {
|
||||||
set?: string | null
|
set?: string | null
|
||||||
}
|
}
|
||||||
|
|
@ -1924,7 +1913,7 @@ export type $accountPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||||
name: "account"
|
name: "account"
|
||||||
objects: {}
|
objects: {}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: bigint
|
id: number
|
||||||
customer_id: string | null
|
customer_id: string | null
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
date_last: bigint | null
|
date_last: bigint | null
|
||||||
|
|
@ -2356,7 +2345,7 @@ export interface Prisma__accountClient<T, Null = never, ExtArgs extends runtime.
|
||||||
* Fields of the account model
|
* Fields of the account model
|
||||||
*/
|
*/
|
||||||
export interface accountFieldRefs {
|
export interface accountFieldRefs {
|
||||||
readonly id: Prisma.FieldRef<"account", 'BigInt'>
|
readonly id: Prisma.FieldRef<"account", 'Int'>
|
||||||
readonly customer_id: Prisma.FieldRef<"account", 'String'>
|
readonly customer_id: Prisma.FieldRef<"account", 'String'>
|
||||||
readonly date_orig: Prisma.FieldRef<"account", 'BigInt'>
|
readonly date_orig: Prisma.FieldRef<"account", 'BigInt'>
|
||||||
readonly date_last: Prisma.FieldRef<"account", 'BigInt'>
|
readonly date_last: Prisma.FieldRef<"account", 'BigInt'>
|
||||||
|
|
|
||||||
|
|
@ -468,6 +468,14 @@ export type account_memoSumOrderByAggregateInput = {
|
||||||
account_id?: Prisma.SortOrder
|
account_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type BigIntFieldUpdateOperationsInput = {
|
||||||
|
set?: bigint | number
|
||||||
|
increment?: bigint | number
|
||||||
|
decrement?: bigint | number
|
||||||
|
multiply?: bigint | number
|
||||||
|
divide?: bigint | number
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export type account_memoSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
export type account_memoSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,8 @@ export type DeliveryAvgAggregateOutputType = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DeliverySumAggregateOutputType = {
|
export type DeliverySumAggregateOutputType = {
|
||||||
id: bigint | null
|
id: number | null
|
||||||
account_id: bigint | null
|
account_id: number | null
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
longitude: runtime.Decimal | null
|
longitude: runtime.Decimal | null
|
||||||
latitude: runtime.Decimal | null
|
latitude: runtime.Decimal | null
|
||||||
|
|
@ -53,8 +53,8 @@ export type DeliverySumAggregateOutputType = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DeliveryMinAggregateOutputType = {
|
export type DeliveryMinAggregateOutputType = {
|
||||||
id: bigint | null
|
id: number | null
|
||||||
account_id: bigint | null
|
account_id: number | null
|
||||||
name: string | null
|
name: string | null
|
||||||
comment: string | null
|
comment: string | null
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
|
|
@ -80,8 +80,8 @@ export type DeliveryMinAggregateOutputType = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DeliveryMaxAggregateOutputType = {
|
export type DeliveryMaxAggregateOutputType = {
|
||||||
id: bigint | null
|
id: number | null
|
||||||
account_id: bigint | null
|
account_id: number | null
|
||||||
name: string | null
|
name: string | null
|
||||||
comment: string | null
|
comment: string | null
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
|
|
@ -330,8 +330,8 @@ export type deliveryGroupByArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DeliveryGroupByOutputType = {
|
export type DeliveryGroupByOutputType = {
|
||||||
id: bigint
|
id: number
|
||||||
account_id: bigint | null
|
account_id: number | null
|
||||||
name: string
|
name: string
|
||||||
comment: string
|
comment: string
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
|
|
@ -380,8 +380,8 @@ export type deliveryWhereInput = {
|
||||||
AND?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[]
|
AND?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[]
|
||||||
OR?: Prisma.deliveryWhereInput[]
|
OR?: Prisma.deliveryWhereInput[]
|
||||||
NOT?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[]
|
NOT?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[]
|
||||||
id?: Prisma.BigIntFilter<"delivery"> | bigint | number
|
id?: Prisma.IntFilter<"delivery"> | number
|
||||||
account_id?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null
|
account_id?: Prisma.IntNullableFilter<"delivery"> | number | null
|
||||||
name?: Prisma.StringFilter<"delivery"> | string
|
name?: Prisma.StringFilter<"delivery"> | string
|
||||||
comment?: Prisma.StringFilter<"delivery"> | string
|
comment?: Prisma.StringFilter<"delivery"> | string
|
||||||
date_orig?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null
|
date_orig?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null
|
||||||
|
|
@ -435,11 +435,11 @@ export type deliveryOrderByWithRelationInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type deliveryWhereUniqueInput = Prisma.AtLeast<{
|
export type deliveryWhereUniqueInput = Prisma.AtLeast<{
|
||||||
id?: bigint | number
|
id?: number
|
||||||
AND?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[]
|
AND?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[]
|
||||||
OR?: Prisma.deliveryWhereInput[]
|
OR?: Prisma.deliveryWhereInput[]
|
||||||
NOT?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[]
|
NOT?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[]
|
||||||
account_id?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null
|
account_id?: Prisma.IntNullableFilter<"delivery"> | number | null
|
||||||
name?: Prisma.StringFilter<"delivery"> | string
|
name?: Prisma.StringFilter<"delivery"> | string
|
||||||
comment?: Prisma.StringFilter<"delivery"> | string
|
comment?: Prisma.StringFilter<"delivery"> | string
|
||||||
date_orig?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null
|
date_orig?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null
|
||||||
|
|
@ -500,8 +500,8 @@ export type deliveryScalarWhereWithAggregatesInput = {
|
||||||
AND?: Prisma.deliveryScalarWhereWithAggregatesInput | Prisma.deliveryScalarWhereWithAggregatesInput[]
|
AND?: Prisma.deliveryScalarWhereWithAggregatesInput | Prisma.deliveryScalarWhereWithAggregatesInput[]
|
||||||
OR?: Prisma.deliveryScalarWhereWithAggregatesInput[]
|
OR?: Prisma.deliveryScalarWhereWithAggregatesInput[]
|
||||||
NOT?: Prisma.deliveryScalarWhereWithAggregatesInput | Prisma.deliveryScalarWhereWithAggregatesInput[]
|
NOT?: Prisma.deliveryScalarWhereWithAggregatesInput | Prisma.deliveryScalarWhereWithAggregatesInput[]
|
||||||
id?: Prisma.BigIntWithAggregatesFilter<"delivery"> | bigint | number
|
id?: Prisma.IntWithAggregatesFilter<"delivery"> | number
|
||||||
account_id?: Prisma.BigIntNullableWithAggregatesFilter<"delivery"> | bigint | number | null
|
account_id?: Prisma.IntNullableWithAggregatesFilter<"delivery"> | number | null
|
||||||
name?: Prisma.StringWithAggregatesFilter<"delivery"> | string
|
name?: Prisma.StringWithAggregatesFilter<"delivery"> | string
|
||||||
comment?: Prisma.StringWithAggregatesFilter<"delivery"> | string
|
comment?: Prisma.StringWithAggregatesFilter<"delivery"> | string
|
||||||
date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"delivery"> | bigint | number | null
|
date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"delivery"> | bigint | number | null
|
||||||
|
|
@ -527,8 +527,7 @@ export type deliveryScalarWhereWithAggregatesInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type deliveryCreateInput = {
|
export type deliveryCreateInput = {
|
||||||
id?: bigint | number
|
account_id?: number | null
|
||||||
account_id?: bigint | number | null
|
|
||||||
name: string
|
name: string
|
||||||
comment: string
|
comment: string
|
||||||
date_orig?: bigint | number | null
|
date_orig?: bigint | number | null
|
||||||
|
|
@ -554,8 +553,8 @@ export type deliveryCreateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type deliveryUncheckedCreateInput = {
|
export type deliveryUncheckedCreateInput = {
|
||||||
id?: bigint | number
|
id?: number
|
||||||
account_id?: bigint | number | null
|
account_id?: number | null
|
||||||
name: string
|
name: string
|
||||||
comment: string
|
comment: string
|
||||||
date_orig?: bigint | number | null
|
date_orig?: bigint | number | null
|
||||||
|
|
@ -581,8 +580,7 @@ export type deliveryUncheckedCreateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type deliveryUpdateInput = {
|
export type deliveryUpdateInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
account_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
|
|
@ -608,8 +606,8 @@ export type deliveryUpdateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type deliveryUncheckedUpdateInput = {
|
export type deliveryUncheckedUpdateInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
account_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
|
|
@ -635,8 +633,8 @@ export type deliveryUncheckedUpdateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type deliveryCreateManyInput = {
|
export type deliveryCreateManyInput = {
|
||||||
id?: bigint | number
|
id?: number
|
||||||
account_id?: bigint | number | null
|
account_id?: number | null
|
||||||
name: string
|
name: string
|
||||||
comment: string
|
comment: string
|
||||||
date_orig?: bigint | number | null
|
date_orig?: bigint | number | null
|
||||||
|
|
@ -662,8 +660,7 @@ export type deliveryCreateManyInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type deliveryUpdateManyMutationInput = {
|
export type deliveryUpdateManyMutationInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
account_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
|
|
@ -689,8 +686,8 @@ export type deliveryUpdateManyMutationInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type deliveryUncheckedUpdateManyInput = {
|
export type deliveryUncheckedUpdateManyInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
account_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
|
|
@ -892,8 +889,8 @@ export type $deliveryPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||||
name: "delivery"
|
name: "delivery"
|
||||||
objects: {}
|
objects: {}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: bigint
|
id: number
|
||||||
account_id: bigint | null
|
account_id: number | null
|
||||||
name: string
|
name: string
|
||||||
comment: string
|
comment: string
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
|
|
@ -1285,8 +1282,8 @@ export interface Prisma__deliveryClient<T, Null = never, ExtArgs extends runtime
|
||||||
* Fields of the delivery model
|
* Fields of the delivery model
|
||||||
*/
|
*/
|
||||||
export interface deliveryFieldRefs {
|
export interface deliveryFieldRefs {
|
||||||
readonly id: Prisma.FieldRef<"delivery", 'BigInt'>
|
readonly id: Prisma.FieldRef<"delivery", 'Int'>
|
||||||
readonly account_id: Prisma.FieldRef<"delivery", 'BigInt'>
|
readonly account_id: Prisma.FieldRef<"delivery", 'Int'>
|
||||||
readonly name: Prisma.FieldRef<"delivery", 'String'>
|
readonly name: Prisma.FieldRef<"delivery", 'String'>
|
||||||
readonly comment: Prisma.FieldRef<"delivery", 'String'>
|
readonly comment: Prisma.FieldRef<"delivery", 'String'>
|
||||||
readonly date_orig: Prisma.FieldRef<"delivery", 'BigInt'>
|
readonly date_orig: Prisma.FieldRef<"delivery", 'BigInt'>
|
||||||
|
|
|
||||||
|
|
@ -48,11 +48,11 @@ export type TicketAvgAggregateOutputType = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TicketSumAggregateOutputType = {
|
export type TicketSumAggregateOutputType = {
|
||||||
id: bigint | null
|
id: number | null
|
||||||
ost_id: number | null
|
ost_id: number | null
|
||||||
parent: bigint | null
|
parent: bigint | null
|
||||||
account_id: bigint | null
|
account_id: number | null
|
||||||
delivery_id: bigint | null
|
delivery_id: number | null
|
||||||
bon_id: number | null
|
bon_id: number | null
|
||||||
dept_id: number | null
|
dept_id: number | null
|
||||||
open_by: number | null
|
open_by: number | null
|
||||||
|
|
@ -69,11 +69,11 @@ export type TicketSumAggregateOutputType = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TicketMinAggregateOutputType = {
|
export type TicketMinAggregateOutputType = {
|
||||||
id: bigint | null
|
id: number | null
|
||||||
ost_id: number | null
|
ost_id: number | null
|
||||||
parent: bigint | null
|
parent: bigint | null
|
||||||
account_id: bigint | null
|
account_id: number | null
|
||||||
delivery_id: bigint | null
|
delivery_id: number | null
|
||||||
bon_id: number | null
|
bon_id: number | null
|
||||||
subject: string | null
|
subject: string | null
|
||||||
dept_id: number | null
|
dept_id: number | null
|
||||||
|
|
@ -102,11 +102,11 @@ export type TicketMinAggregateOutputType = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TicketMaxAggregateOutputType = {
|
export type TicketMaxAggregateOutputType = {
|
||||||
id: bigint | null
|
id: number | null
|
||||||
ost_id: number | null
|
ost_id: number | null
|
||||||
parent: bigint | null
|
parent: bigint | null
|
||||||
account_id: bigint | null
|
account_id: number | null
|
||||||
delivery_id: bigint | null
|
delivery_id: number | null
|
||||||
bon_id: number | null
|
bon_id: number | null
|
||||||
subject: string | null
|
subject: string | null
|
||||||
dept_id: number | null
|
dept_id: number | null
|
||||||
|
|
@ -398,11 +398,11 @@ export type ticketGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TicketGroupByOutputType = {
|
export type TicketGroupByOutputType = {
|
||||||
id: bigint
|
id: number
|
||||||
ost_id: number | null
|
ost_id: number | null
|
||||||
parent: bigint
|
parent: bigint
|
||||||
account_id: bigint | null
|
account_id: number | null
|
||||||
delivery_id: bigint
|
delivery_id: number
|
||||||
bon_id: number | null
|
bon_id: number | null
|
||||||
subject: string | null
|
subject: string | null
|
||||||
dept_id: number | null
|
dept_id: number | null
|
||||||
|
|
@ -454,11 +454,11 @@ export type ticketWhereInput = {
|
||||||
AND?: Prisma.ticketWhereInput | Prisma.ticketWhereInput[]
|
AND?: Prisma.ticketWhereInput | Prisma.ticketWhereInput[]
|
||||||
OR?: Prisma.ticketWhereInput[]
|
OR?: Prisma.ticketWhereInput[]
|
||||||
NOT?: Prisma.ticketWhereInput | Prisma.ticketWhereInput[]
|
NOT?: Prisma.ticketWhereInput | Prisma.ticketWhereInput[]
|
||||||
id?: Prisma.BigIntFilter<"ticket"> | bigint | number
|
id?: Prisma.IntFilter<"ticket"> | number
|
||||||
ost_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
ost_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
||||||
parent?: Prisma.BigIntFilter<"ticket"> | bigint | number
|
parent?: Prisma.BigIntFilter<"ticket"> | bigint | number
|
||||||
account_id?: Prisma.BigIntNullableFilter<"ticket"> | bigint | number | null
|
account_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
||||||
delivery_id?: Prisma.BigIntFilter<"ticket"> | bigint | number
|
delivery_id?: Prisma.IntFilter<"ticket"> | number
|
||||||
bon_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
bon_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
||||||
subject?: Prisma.StringNullableFilter<"ticket"> | string | null
|
subject?: Prisma.StringNullableFilter<"ticket"> | string | null
|
||||||
dept_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
dept_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
||||||
|
|
@ -521,14 +521,14 @@ export type ticketOrderByWithRelationInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticketWhereUniqueInput = Prisma.AtLeast<{
|
export type ticketWhereUniqueInput = Prisma.AtLeast<{
|
||||||
id?: bigint | number
|
id?: number
|
||||||
AND?: Prisma.ticketWhereInput | Prisma.ticketWhereInput[]
|
AND?: Prisma.ticketWhereInput | Prisma.ticketWhereInput[]
|
||||||
OR?: Prisma.ticketWhereInput[]
|
OR?: Prisma.ticketWhereInput[]
|
||||||
NOT?: Prisma.ticketWhereInput | Prisma.ticketWhereInput[]
|
NOT?: Prisma.ticketWhereInput | Prisma.ticketWhereInput[]
|
||||||
ost_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
ost_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
||||||
parent?: Prisma.BigIntFilter<"ticket"> | bigint | number
|
parent?: Prisma.BigIntFilter<"ticket"> | bigint | number
|
||||||
account_id?: Prisma.BigIntNullableFilter<"ticket"> | bigint | number | null
|
account_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
||||||
delivery_id?: Prisma.BigIntFilter<"ticket"> | bigint | number
|
delivery_id?: Prisma.IntFilter<"ticket"> | number
|
||||||
bon_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
bon_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
||||||
subject?: Prisma.StringNullableFilter<"ticket"> | string | null
|
subject?: Prisma.StringNullableFilter<"ticket"> | string | null
|
||||||
dept_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
dept_id?: Prisma.IntNullableFilter<"ticket"> | number | null
|
||||||
|
|
@ -598,11 +598,11 @@ export type ticketScalarWhereWithAggregatesInput = {
|
||||||
AND?: Prisma.ticketScalarWhereWithAggregatesInput | Prisma.ticketScalarWhereWithAggregatesInput[]
|
AND?: Prisma.ticketScalarWhereWithAggregatesInput | Prisma.ticketScalarWhereWithAggregatesInput[]
|
||||||
OR?: Prisma.ticketScalarWhereWithAggregatesInput[]
|
OR?: Prisma.ticketScalarWhereWithAggregatesInput[]
|
||||||
NOT?: Prisma.ticketScalarWhereWithAggregatesInput | Prisma.ticketScalarWhereWithAggregatesInput[]
|
NOT?: Prisma.ticketScalarWhereWithAggregatesInput | Prisma.ticketScalarWhereWithAggregatesInput[]
|
||||||
id?: Prisma.BigIntWithAggregatesFilter<"ticket"> | bigint | number
|
id?: Prisma.IntWithAggregatesFilter<"ticket"> | number
|
||||||
ost_id?: Prisma.IntNullableWithAggregatesFilter<"ticket"> | number | null
|
ost_id?: Prisma.IntNullableWithAggregatesFilter<"ticket"> | number | null
|
||||||
parent?: Prisma.BigIntWithAggregatesFilter<"ticket"> | bigint | number
|
parent?: Prisma.BigIntWithAggregatesFilter<"ticket"> | bigint | number
|
||||||
account_id?: Prisma.BigIntNullableWithAggregatesFilter<"ticket"> | bigint | number | null
|
account_id?: Prisma.IntNullableWithAggregatesFilter<"ticket"> | number | null
|
||||||
delivery_id?: Prisma.BigIntWithAggregatesFilter<"ticket"> | bigint | number
|
delivery_id?: Prisma.IntWithAggregatesFilter<"ticket"> | number
|
||||||
bon_id?: Prisma.IntNullableWithAggregatesFilter<"ticket"> | number | null
|
bon_id?: Prisma.IntNullableWithAggregatesFilter<"ticket"> | number | null
|
||||||
subject?: Prisma.StringNullableWithAggregatesFilter<"ticket"> | string | null
|
subject?: Prisma.StringNullableWithAggregatesFilter<"ticket"> | string | null
|
||||||
dept_id?: Prisma.IntNullableWithAggregatesFilter<"ticket"> | number | null
|
dept_id?: Prisma.IntNullableWithAggregatesFilter<"ticket"> | number | null
|
||||||
|
|
@ -631,11 +631,10 @@ export type ticketScalarWhereWithAggregatesInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticketCreateInput = {
|
export type ticketCreateInput = {
|
||||||
id?: bigint | number
|
|
||||||
ost_id?: number | null
|
ost_id?: number | null
|
||||||
parent?: bigint | number
|
parent?: bigint | number
|
||||||
account_id?: bigint | number | null
|
account_id?: number | null
|
||||||
delivery_id?: bigint | number
|
delivery_id?: number
|
||||||
bon_id?: number | null
|
bon_id?: number | null
|
||||||
subject?: string | null
|
subject?: string | null
|
||||||
dept_id?: number | null
|
dept_id?: number | null
|
||||||
|
|
@ -664,11 +663,11 @@ export type ticketCreateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticketUncheckedCreateInput = {
|
export type ticketUncheckedCreateInput = {
|
||||||
id?: bigint | number
|
id?: number
|
||||||
ost_id?: number | null
|
ost_id?: number | null
|
||||||
parent?: bigint | number
|
parent?: bigint | number
|
||||||
account_id?: bigint | number | null
|
account_id?: number | null
|
||||||
delivery_id?: bigint | number
|
delivery_id?: number
|
||||||
bon_id?: number | null
|
bon_id?: number | null
|
||||||
subject?: string | null
|
subject?: string | null
|
||||||
dept_id?: number | null
|
dept_id?: number | null
|
||||||
|
|
@ -697,11 +696,10 @@ export type ticketUncheckedCreateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticketUpdateInput = {
|
export type ticketUpdateInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
||||||
ost_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
ost_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
parent?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
parent?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||||
account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
account_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
delivery_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
bon_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
bon_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
dept_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
dept_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
|
|
@ -730,11 +728,11 @@ export type ticketUpdateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticketUncheckedUpdateInput = {
|
export type ticketUncheckedUpdateInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
ost_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
ost_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
parent?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
parent?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||||
account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
account_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
delivery_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
bon_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
bon_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
dept_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
dept_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
|
|
@ -763,11 +761,11 @@ export type ticketUncheckedUpdateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticketCreateManyInput = {
|
export type ticketCreateManyInput = {
|
||||||
id?: bigint | number
|
id?: number
|
||||||
ost_id?: number | null
|
ost_id?: number | null
|
||||||
parent?: bigint | number
|
parent?: bigint | number
|
||||||
account_id?: bigint | number | null
|
account_id?: number | null
|
||||||
delivery_id?: bigint | number
|
delivery_id?: number
|
||||||
bon_id?: number | null
|
bon_id?: number | null
|
||||||
subject?: string | null
|
subject?: string | null
|
||||||
dept_id?: number | null
|
dept_id?: number | null
|
||||||
|
|
@ -796,11 +794,10 @@ export type ticketCreateManyInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticketUpdateManyMutationInput = {
|
export type ticketUpdateManyMutationInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
||||||
ost_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
ost_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
parent?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
parent?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||||
account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
account_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
delivery_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
bon_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
bon_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
dept_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
dept_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
|
|
@ -829,11 +826,11 @@ export type ticketUpdateManyMutationInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticketUncheckedUpdateManyInput = {
|
export type ticketUncheckedUpdateManyInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
ost_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
ost_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
parent?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
parent?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
||||||
account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
account_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
delivery_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
bon_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
bon_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
dept_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
dept_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
|
|
@ -1088,11 +1085,11 @@ export type $ticketPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||||
name: "ticket"
|
name: "ticket"
|
||||||
objects: {}
|
objects: {}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: bigint
|
id: number
|
||||||
ost_id: number | null
|
ost_id: number | null
|
||||||
parent: bigint
|
parent: bigint
|
||||||
account_id: bigint | null
|
account_id: number | null
|
||||||
delivery_id: bigint
|
delivery_id: number
|
||||||
bon_id: number | null
|
bon_id: number | null
|
||||||
subject: string | null
|
subject: string | null
|
||||||
dept_id: number | null
|
dept_id: number | null
|
||||||
|
|
@ -1487,11 +1484,11 @@ export interface Prisma__ticketClient<T, Null = never, ExtArgs extends runtime.T
|
||||||
* Fields of the ticket model
|
* Fields of the ticket model
|
||||||
*/
|
*/
|
||||||
export interface ticketFieldRefs {
|
export interface ticketFieldRefs {
|
||||||
readonly id: Prisma.FieldRef<"ticket", 'BigInt'>
|
readonly id: Prisma.FieldRef<"ticket", 'Int'>
|
||||||
readonly ost_id: Prisma.FieldRef<"ticket", 'Int'>
|
readonly ost_id: Prisma.FieldRef<"ticket", 'Int'>
|
||||||
readonly parent: Prisma.FieldRef<"ticket", 'BigInt'>
|
readonly parent: Prisma.FieldRef<"ticket", 'BigInt'>
|
||||||
readonly account_id: Prisma.FieldRef<"ticket", 'BigInt'>
|
readonly account_id: Prisma.FieldRef<"ticket", 'Int'>
|
||||||
readonly delivery_id: Prisma.FieldRef<"ticket", 'BigInt'>
|
readonly delivery_id: Prisma.FieldRef<"ticket", 'Int'>
|
||||||
readonly bon_id: Prisma.FieldRef<"ticket", 'Int'>
|
readonly bon_id: Prisma.FieldRef<"ticket", 'Int'>
|
||||||
readonly subject: Prisma.FieldRef<"ticket", 'String'>
|
readonly subject: Prisma.FieldRef<"ticket", 'String'>
|
||||||
readonly dept_id: Prisma.FieldRef<"ticket", 'Int'>
|
readonly dept_id: Prisma.FieldRef<"ticket", 'Int'>
|
||||||
|
|
|
||||||
|
|
@ -35,17 +35,17 @@ export type Ticket_msgAvgAggregateOutputType = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Ticket_msgSumAggregateOutputType = {
|
export type Ticket_msgSumAggregateOutputType = {
|
||||||
id: bigint | null
|
id: number | null
|
||||||
ticket_id: bigint | null
|
ticket_id: number | null
|
||||||
staff_id: bigint | null
|
staff_id: number | null
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
important: number | null
|
important: number | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Ticket_msgMinAggregateOutputType = {
|
export type Ticket_msgMinAggregateOutputType = {
|
||||||
id: bigint | null
|
id: number | null
|
||||||
ticket_id: bigint | null
|
ticket_id: number | null
|
||||||
staff_id: bigint | null
|
staff_id: number | null
|
||||||
msg: string | null
|
msg: string | null
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
unread_csv: string | null
|
unread_csv: string | null
|
||||||
|
|
@ -55,9 +55,9 @@ export type Ticket_msgMinAggregateOutputType = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Ticket_msgMaxAggregateOutputType = {
|
export type Ticket_msgMaxAggregateOutputType = {
|
||||||
id: bigint | null
|
id: number | null
|
||||||
ticket_id: bigint | null
|
ticket_id: number | null
|
||||||
staff_id: bigint | null
|
staff_id: number | null
|
||||||
msg: string | null
|
msg: string | null
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
unread_csv: string | null
|
unread_csv: string | null
|
||||||
|
|
@ -220,9 +220,9 @@ export type ticket_msgGroupByArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Ticket_msgGroupByOutputType = {
|
export type Ticket_msgGroupByOutputType = {
|
||||||
id: bigint
|
id: number
|
||||||
ticket_id: bigint
|
ticket_id: number
|
||||||
staff_id: bigint
|
staff_id: number
|
||||||
msg: string | null
|
msg: string | null
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
unread_csv: string
|
unread_csv: string
|
||||||
|
|
@ -255,9 +255,9 @@ export type ticket_msgWhereInput = {
|
||||||
AND?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[]
|
AND?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[]
|
||||||
OR?: Prisma.ticket_msgWhereInput[]
|
OR?: Prisma.ticket_msgWhereInput[]
|
||||||
NOT?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[]
|
NOT?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[]
|
||||||
id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number
|
id?: Prisma.IntFilter<"ticket_msg"> | number
|
||||||
ticket_id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number
|
ticket_id?: Prisma.IntFilter<"ticket_msg"> | number
|
||||||
staff_id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number
|
staff_id?: Prisma.IntFilter<"ticket_msg"> | number
|
||||||
msg?: Prisma.StringNullableFilter<"ticket_msg"> | string | null
|
msg?: Prisma.StringNullableFilter<"ticket_msg"> | string | null
|
||||||
date_orig?: Prisma.BigIntNullableFilter<"ticket_msg"> | bigint | number | null
|
date_orig?: Prisma.BigIntNullableFilter<"ticket_msg"> | bigint | number | null
|
||||||
unread_csv?: Prisma.StringFilter<"ticket_msg"> | string
|
unread_csv?: Prisma.StringFilter<"ticket_msg"> | string
|
||||||
|
|
@ -280,12 +280,12 @@ export type ticket_msgOrderByWithRelationInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticket_msgWhereUniqueInput = Prisma.AtLeast<{
|
export type ticket_msgWhereUniqueInput = Prisma.AtLeast<{
|
||||||
id?: bigint | number
|
id?: number
|
||||||
AND?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[]
|
AND?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[]
|
||||||
OR?: Prisma.ticket_msgWhereInput[]
|
OR?: Prisma.ticket_msgWhereInput[]
|
||||||
NOT?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[]
|
NOT?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[]
|
||||||
ticket_id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number
|
ticket_id?: Prisma.IntFilter<"ticket_msg"> | number
|
||||||
staff_id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number
|
staff_id?: Prisma.IntFilter<"ticket_msg"> | number
|
||||||
msg?: Prisma.StringNullableFilter<"ticket_msg"> | string | null
|
msg?: Prisma.StringNullableFilter<"ticket_msg"> | string | null
|
||||||
date_orig?: Prisma.BigIntNullableFilter<"ticket_msg"> | bigint | number | null
|
date_orig?: Prisma.BigIntNullableFilter<"ticket_msg"> | bigint | number | null
|
||||||
unread_csv?: Prisma.StringFilter<"ticket_msg"> | string
|
unread_csv?: Prisma.StringFilter<"ticket_msg"> | string
|
||||||
|
|
@ -315,9 +315,9 @@ export type ticket_msgScalarWhereWithAggregatesInput = {
|
||||||
AND?: Prisma.ticket_msgScalarWhereWithAggregatesInput | Prisma.ticket_msgScalarWhereWithAggregatesInput[]
|
AND?: Prisma.ticket_msgScalarWhereWithAggregatesInput | Prisma.ticket_msgScalarWhereWithAggregatesInput[]
|
||||||
OR?: Prisma.ticket_msgScalarWhereWithAggregatesInput[]
|
OR?: Prisma.ticket_msgScalarWhereWithAggregatesInput[]
|
||||||
NOT?: Prisma.ticket_msgScalarWhereWithAggregatesInput | Prisma.ticket_msgScalarWhereWithAggregatesInput[]
|
NOT?: Prisma.ticket_msgScalarWhereWithAggregatesInput | Prisma.ticket_msgScalarWhereWithAggregatesInput[]
|
||||||
id?: Prisma.BigIntWithAggregatesFilter<"ticket_msg"> | bigint | number
|
id?: Prisma.IntWithAggregatesFilter<"ticket_msg"> | number
|
||||||
ticket_id?: Prisma.BigIntWithAggregatesFilter<"ticket_msg"> | bigint | number
|
ticket_id?: Prisma.IntWithAggregatesFilter<"ticket_msg"> | number
|
||||||
staff_id?: Prisma.BigIntWithAggregatesFilter<"ticket_msg"> | bigint | number
|
staff_id?: Prisma.IntWithAggregatesFilter<"ticket_msg"> | number
|
||||||
msg?: Prisma.StringNullableWithAggregatesFilter<"ticket_msg"> | string | null
|
msg?: Prisma.StringNullableWithAggregatesFilter<"ticket_msg"> | string | null
|
||||||
date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"ticket_msg"> | bigint | number | null
|
date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"ticket_msg"> | bigint | number | null
|
||||||
unread_csv?: Prisma.StringWithAggregatesFilter<"ticket_msg"> | string
|
unread_csv?: Prisma.StringWithAggregatesFilter<"ticket_msg"> | string
|
||||||
|
|
@ -327,9 +327,8 @@ export type ticket_msgScalarWhereWithAggregatesInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticket_msgCreateInput = {
|
export type ticket_msgCreateInput = {
|
||||||
id?: bigint | number
|
ticket_id: number
|
||||||
ticket_id: bigint | number
|
staff_id?: number
|
||||||
staff_id?: bigint | number
|
|
||||||
msg?: string | null
|
msg?: string | null
|
||||||
date_orig?: bigint | number | null
|
date_orig?: bigint | number | null
|
||||||
unread_csv: string
|
unread_csv: string
|
||||||
|
|
@ -339,9 +338,9 @@ export type ticket_msgCreateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticket_msgUncheckedCreateInput = {
|
export type ticket_msgUncheckedCreateInput = {
|
||||||
id?: bigint | number
|
id?: number
|
||||||
ticket_id: bigint | number
|
ticket_id: number
|
||||||
staff_id?: bigint | number
|
staff_id?: number
|
||||||
msg?: string | null
|
msg?: string | null
|
||||||
date_orig?: bigint | number | null
|
date_orig?: bigint | number | null
|
||||||
unread_csv: string
|
unread_csv: string
|
||||||
|
|
@ -351,9 +350,8 @@ export type ticket_msgUncheckedCreateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticket_msgUpdateInput = {
|
export type ticket_msgUpdateInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
ticket_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
ticket_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
staff_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
||||||
msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
unread_csv?: Prisma.StringFieldUpdateOperationsInput | string
|
unread_csv?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
|
@ -363,9 +361,9 @@ export type ticket_msgUpdateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticket_msgUncheckedUpdateInput = {
|
export type ticket_msgUncheckedUpdateInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
ticket_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
ticket_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
staff_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
unread_csv?: Prisma.StringFieldUpdateOperationsInput | string
|
unread_csv?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
|
@ -375,9 +373,9 @@ export type ticket_msgUncheckedUpdateInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticket_msgCreateManyInput = {
|
export type ticket_msgCreateManyInput = {
|
||||||
id?: bigint | number
|
id?: number
|
||||||
ticket_id: bigint | number
|
ticket_id: number
|
||||||
staff_id?: bigint | number
|
staff_id?: number
|
||||||
msg?: string | null
|
msg?: string | null
|
||||||
date_orig?: bigint | number | null
|
date_orig?: bigint | number | null
|
||||||
unread_csv: string
|
unread_csv: string
|
||||||
|
|
@ -387,9 +385,8 @@ export type ticket_msgCreateManyInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticket_msgUpdateManyMutationInput = {
|
export type ticket_msgUpdateManyMutationInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
ticket_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
ticket_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
staff_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
||||||
msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
unread_csv?: Prisma.StringFieldUpdateOperationsInput | string
|
unread_csv?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
|
@ -399,9 +396,9 @@ export type ticket_msgUpdateManyMutationInput = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ticket_msgUncheckedUpdateManyInput = {
|
export type ticket_msgUncheckedUpdateManyInput = {
|
||||||
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
ticket_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
ticket_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
staff_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
||||||
unread_csv?: Prisma.StringFieldUpdateOperationsInput | string
|
unread_csv?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
|
@ -502,9 +499,9 @@ export type $ticket_msgPayload<ExtArgs extends runtime.Types.Extensions.Internal
|
||||||
name: "ticket_msg"
|
name: "ticket_msg"
|
||||||
objects: {}
|
objects: {}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: bigint
|
id: number
|
||||||
ticket_id: bigint
|
ticket_id: number
|
||||||
staff_id: bigint
|
staff_id: number
|
||||||
msg: string | null
|
msg: string | null
|
||||||
date_orig: bigint | null
|
date_orig: bigint | null
|
||||||
unread_csv: string
|
unread_csv: string
|
||||||
|
|
@ -880,9 +877,9 @@ export interface Prisma__ticket_msgClient<T, Null = never, ExtArgs extends runti
|
||||||
* Fields of the ticket_msg model
|
* Fields of the ticket_msg model
|
||||||
*/
|
*/
|
||||||
export interface ticket_msgFieldRefs {
|
export interface ticket_msgFieldRefs {
|
||||||
readonly id: Prisma.FieldRef<"ticket_msg", 'BigInt'>
|
readonly id: Prisma.FieldRef<"ticket_msg", 'Int'>
|
||||||
readonly ticket_id: Prisma.FieldRef<"ticket_msg", 'BigInt'>
|
readonly ticket_id: Prisma.FieldRef<"ticket_msg", 'Int'>
|
||||||
readonly staff_id: Prisma.FieldRef<"ticket_msg", 'BigInt'>
|
readonly staff_id: Prisma.FieldRef<"ticket_msg", 'Int'>
|
||||||
readonly msg: Prisma.FieldRef<"ticket_msg", 'String'>
|
readonly msg: Prisma.FieldRef<"ticket_msg", 'String'>
|
||||||
readonly date_orig: Prisma.FieldRef<"ticket_msg", 'BigInt'>
|
readonly date_orig: Prisma.FieldRef<"ticket_msg", 'BigInt'>
|
||||||
readonly unread_csv: Prisma.FieldRef<"ticket_msg", 'String'>
|
readonly unread_csv: Prisma.FieldRef<"ticket_msg", 'String'>
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ datasource db {
|
||||||
}
|
}
|
||||||
|
|
||||||
model account {
|
model account {
|
||||||
id BigInt @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
customer_id String? @db.VarChar(32) //variable string, composition varies a lot, used by customers to identify their account
|
customer_id String? @db.VarChar(32) //variable string, composition varies a lot, used by customers to identify their account
|
||||||
date_orig BigInt? //timestamp
|
date_orig BigInt? //timestamp
|
||||||
date_last BigInt? //timestamp
|
date_last BigInt? //timestamp
|
||||||
|
|
@ -351,8 +351,8 @@ model conso_radius_monthly2 {
|
||||||
|
|
||||||
|
|
||||||
model delivery {
|
model delivery {
|
||||||
id BigInt @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
account_id BigInt?
|
account_id Int?
|
||||||
name String @db.VarChar(32)
|
name String @db.VarChar(32)
|
||||||
comment String @db.VarChar(512)
|
comment String @db.VarChar(512)
|
||||||
date_orig BigInt?
|
date_orig BigInt?
|
||||||
|
|
@ -1650,11 +1650,11 @@ model tv_mac {
|
||||||
}
|
}
|
||||||
|
|
||||||
model ticket {
|
model ticket {
|
||||||
id BigInt @id @default(autoincrement()) @db.UnsignedBigInt
|
id Int @id @default(autoincrement())
|
||||||
ost_id Int? @db.UnsignedInt
|
ost_id Int? @db.UnsignedInt
|
||||||
parent BigInt @default(0)
|
parent BigInt @default(0)
|
||||||
account_id BigInt?
|
account_id Int?
|
||||||
delivery_id BigInt @default(0)
|
delivery_id Int @default(0)
|
||||||
bon_id Int? @db.UnsignedInt
|
bon_id Int? @db.UnsignedInt
|
||||||
subject String? @db.VarChar(256)
|
subject String? @db.VarChar(256)
|
||||||
dept_id Int?
|
dept_id Int?
|
||||||
|
|
@ -1729,9 +1729,9 @@ model ticket_dept {
|
||||||
}
|
}
|
||||||
|
|
||||||
model ticket_msg {
|
model ticket_msg {
|
||||||
id BigInt @id @default(autoincrement()) @db.UnsignedBigInt
|
id Int @id @default(autoincrement())
|
||||||
ticket_id BigInt
|
ticket_id Int
|
||||||
staff_id BigInt @default(0)
|
staff_id Int @default(0)
|
||||||
msg String? @db.MediumText
|
msg String? @db.MediumText
|
||||||
date_orig BigInt?
|
date_orig BigInt?
|
||||||
unread_csv String @db.MediumText
|
unread_csv String @db.MediumText
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { IsInt, IsOptional, IsString } from "class-validator";
|
import { IsInt, IsOptional, IsString } from "class-validator";
|
||||||
|
|
||||||
export class TicketListItem {
|
export class TicketList {
|
||||||
@IsInt() id: number;
|
@IsInt() id: number;
|
||||||
@IsString() status: string;
|
@IsString() status: string;
|
||||||
@IsString() @IsOptional() assignedTo: string;
|
@IsString() @IsOptional() assignedTo: string;
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,6 @@
|
||||||
import { Type } from "class-transformer";
|
import { Type } from "class-transformer";
|
||||||
import { IsBoolean, IsInt, IsOptional, IsString } from "class-validator";
|
import { IsBoolean, IsInt, IsOptional, IsString } from "class-validator";
|
||||||
|
|
||||||
export class Ticket {
|
|
||||||
@IsInt() id: number;
|
|
||||||
@IsString() createdAt: string;
|
|
||||||
@Type(() => DeliveryAddress) deliveryAddress: DeliveryAddress;
|
|
||||||
@Type(() => Message) message: Message[];
|
|
||||||
@Type(() => Service) service: Service[];
|
|
||||||
@Type(() => Device) device: Device[];
|
|
||||||
@Type(() => Contact) contact: Contact[];
|
|
||||||
@Type(() => TicketHistory) TicketHistory: TicketHistory;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class DeliveryAddress {
|
export class DeliveryAddress {
|
||||||
@IsString() address: string;
|
@IsString() address: string;
|
||||||
@IsString() department: string;
|
@IsString() department: string;
|
||||||
|
|
@ -19,6 +8,10 @@ export class DeliveryAddress {
|
||||||
@IsString() description: string;
|
@IsString() description: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class TicketHistory {
|
||||||
|
@Type(() => Ticket) ticket: Ticket[];
|
||||||
|
}
|
||||||
|
|
||||||
export class Message {
|
export class Message {
|
||||||
@IsString() attachment: string;
|
@IsString() attachment: string;
|
||||||
@IsString() comment: string;
|
@IsString() comment: string;
|
||||||
|
|
@ -60,6 +53,17 @@ export class Contact {
|
||||||
@IsString() email: string;
|
@IsString() email: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class TicketHistory {
|
export class Ticket {
|
||||||
@Type(() => Ticket) ticket: Ticket[];
|
@IsInt() id: number;
|
||||||
|
@IsString() createdAt: string;
|
||||||
|
@Type(() => DeliveryAddress) deliveryAddress: DeliveryAddress;
|
||||||
|
@Type(() => Message) message: Message[];
|
||||||
|
@Type(() => Service) service: Service[];
|
||||||
|
@Type(() => Device) device: Device[];
|
||||||
|
@Type(() => Contact) contact: Contact[];
|
||||||
|
@Type(() => TicketHistory) TicketHistory: TicketHistory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const sortOrders: string[] = ['id', 'status', 'assign_to', 'address1', 'subject', 'dept_id', 'parent', 'due_date', 'last_update', 'date_closed'];
|
||||||
|
export const sortTypes: string[] = ['ASC', 'DESC'];
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
import { Controller, Get, Param } from "@nestjs/common";
|
import { Controller, Get, Param, Query } from "@nestjs/common";
|
||||||
import { Access } from "src/common/decorators/module-access.decorators";
|
import { Access } from "src/common/decorators/module-access.decorators";
|
||||||
import { ModuleAccessAllowed } from "src/common/decorators/modules-guard.decorators";
|
|
||||||
import { Result } from "src/common/errors/result-error.factory";
|
import { Result } from "src/common/errors/result-error.factory";
|
||||||
import { TicketListItem } from "src/customer-support/tickets/dtos/ticket-list.dto";
|
import { TicketList } from "src/customer-support/tickets/dtos/ticket-list.dto";
|
||||||
import { TicketService } from "src/customer-support/tickets/ticket.service";
|
import { TicketService } from "src/customer-support/tickets/ticket.service";
|
||||||
|
|
||||||
@Controller('tickets')
|
@Controller('tickets')
|
||||||
|
|
@ -11,16 +10,21 @@ export class TicketController {
|
||||||
constructor(private readonly getService: TicketService) { }
|
constructor(private readonly getService: TicketService) { }
|
||||||
|
|
||||||
@Get(':status/:email')
|
@Get(':status/:email')
|
||||||
@ModuleAccessAllowed()
|
|
||||||
async findTicketByFilters(
|
async findTicketByFilters(
|
||||||
@Access('email') email: string,
|
@Access('email') email: string,
|
||||||
@Param('status') status: string,
|
@Param('status') status: string,
|
||||||
@Param('email') filter_email?: string,
|
@Param('email') filterEmail?: string,
|
||||||
): Promise<Result<TicketListItem[], string>> {
|
@Query('sortOrder') sortOrder?: string,
|
||||||
if (!filter_email) {
|
@Query('sortTypes') sortTypes?: 'DESC' | 'ASC',
|
||||||
return await this.getService.getListOfAllTicketByFilters(status, email)
|
@Query('offset') offset?: number,
|
||||||
|
@Query('limit') limit?: number,
|
||||||
|
): Promise<Result<TicketList[], string>> {
|
||||||
|
const statusFliters = status.split(',');
|
||||||
|
if (!filterEmail) {
|
||||||
|
filterEmail = email;
|
||||||
|
return await this.getService.getListOfAllTicketByFilters(statusFliters, offset, limit, sortOrder, sortTypes, filterEmail);
|
||||||
} else {
|
} else {
|
||||||
return await this.getService.getListOfAllTicketByFilters(status, filter_email);
|
return await this.getService.getListOfAllTicketByFilters(statusFliters, offset, limit, sortOrder, sortTypes, filterEmail);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,85 +1,58 @@
|
||||||
import { Injectable } from "@nestjs/common";
|
import { Injectable } from "@nestjs/common";
|
||||||
import { Result } from "src/common/errors/result-error.factory";
|
import { Result } from "src/common/errors/result-error.factory";
|
||||||
import { PrismaMariaDbService } from "prisma/mariadb/prisma-mariadb.service";
|
import { PrismaMariaDbService } from "prisma/mariadb/prisma-mariadb.service";
|
||||||
import { TicketListItem } from "src/customer-support/tickets/dtos/ticket-list.dto";
|
import { TicketList } from "src/customer-support/tickets/dtos/ticket-list.dto";
|
||||||
import { timestampToStringDate } from "src/common/utils/date-utils";
|
import { sortOrders, sortTypes } from "src/customer-support/tickets/dtos/ticket.dto";
|
||||||
|
import { Prisma } from "prisma/mariadb/generated/prisma/client/mariadb/client";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class TicketService {
|
export class TicketService {
|
||||||
|
constructor(private readonly prisma: PrismaMariaDbService) { }
|
||||||
|
|
||||||
constructor(
|
getListOfAllTicketByFilters = async (
|
||||||
private readonly prisma: PrismaMariaDbService,
|
status: string[],
|
||||||
) { }
|
offset: number = 1,
|
||||||
|
limit: number = 25,
|
||||||
|
sortOrder: string = 'last_update' as const,
|
||||||
|
sortType: 'DESC' | 'ASC' = 'DESC' as const,
|
||||||
|
email?: string
|
||||||
|
): Promise<Result<TicketList[], string>> => {
|
||||||
|
|
||||||
getListOfAllTicketByFilters = async (status: string, email?: string): Promise<Result<TicketListItem[], string>> => {
|
try {
|
||||||
//fetch
|
const staff = await this.prisma.staff.findFirst({
|
||||||
const staffId = await this.prisma.staff.findFirst({
|
|
||||||
where: { email },
|
where: { email },
|
||||||
select: {
|
});
|
||||||
id: true,
|
if (!staff) return { success: false, error: 'EMPLOYEE_NOT_FOUND' }
|
||||||
first_name: true,
|
if (!sortOrders.includes(sortOrder) || !sortTypes.includes(sortType)) return { success: false, error: 'INVALID_FILTER' }
|
||||||
last_name: true,
|
|
||||||
email: true,
|
const statusList = Prisma.join(status);
|
||||||
|
|
||||||
|
const rawticketList = await this.prisma.$queryRaw<TicketList[]>(
|
||||||
|
Prisma.sql`
|
||||||
|
SELECT
|
||||||
|
t.id AS id,
|
||||||
|
t.status AS status,
|
||||||
|
CONCAT(s.first_name,' ',s.last_name) AS assignTo,
|
||||||
|
a.address1 AS deliveryAddress,
|
||||||
|
t.subject AS subject,
|
||||||
|
d.name AS department,
|
||||||
|
t.parent AS parentTicketId,
|
||||||
|
t.due_date AS dueDate,
|
||||||
|
t.last_update AS updatedAt,
|
||||||
|
t.date_closed AS completedAt
|
||||||
|
FROM staff s
|
||||||
|
LEFT JOIN ticket t ON t.assign_to = s.id
|
||||||
|
LEFT JOIN account a ON t.account_id = a.id
|
||||||
|
LEFT JOIN ticket_dept d ON t.dept_id = d.id
|
||||||
|
WHERE s.email = ${email}
|
||||||
|
AND t.status IN (${statusList})
|
||||||
|
ORDER BY ${Prisma.raw(sortOrder)} ${Prisma.raw(sortType)}
|
||||||
|
LIMIT ${limit} OFFSET ${offset};
|
||||||
|
`);
|
||||||
|
|
||||||
|
return { success: true, data: rawticketList }
|
||||||
|
} catch (error) {
|
||||||
|
return { success: false, error: 'TICKET_LIST_NOT_FOUND, ' + error };
|
||||||
}
|
}
|
||||||
});
|
|
||||||
if (!staffId) return { success: false, error: 'EMPLOYEE_NOT_FOUND' }
|
|
||||||
|
|
||||||
//fetch the data for the following columns : ID, SUBJECT, STATUS, DÉPEND DU TICKET, DATE ASSIGNÉE, DERNIÈRE MISE À JOUR, DATE COMPLÉTÉE
|
|
||||||
const assignedTickets = await this.prisma.ticket.findMany({
|
|
||||||
where: { assign_to: staffId.id, status },
|
|
||||||
select: {
|
|
||||||
id: true,
|
|
||||||
delivery_id: true, // to fetch the address in the delivery table
|
|
||||||
status: true, // status column
|
|
||||||
dept_id: true, // to fetch the name of the department in the ticket_dept table
|
|
||||||
parent: true, // dépend du ticket column
|
|
||||||
due_date: true, // date assignée column
|
|
||||||
last_update: true, // dernière mise à jour column
|
|
||||||
date_closed: true, // date complétée column
|
|
||||||
subject: true, // type column
|
|
||||||
},
|
|
||||||
});
|
|
||||||
if (!assignedTickets) return { success: false, error: 'TICKETS_NOT_FOUND' };
|
|
||||||
|
|
||||||
let ticketListItem: TicketListItem[] = [];
|
|
||||||
|
|
||||||
//fetch the data for the remaining columns: ADRESSE, DEPARTMENT
|
|
||||||
for (const ticket of assignedTickets) {
|
|
||||||
|
|
||||||
//Address column
|
|
||||||
const delivery = await this.prisma.delivery.findUnique({
|
|
||||||
where: { id: ticket.delivery_id },
|
|
||||||
select: { address1: true, id: true, },
|
|
||||||
});
|
|
||||||
if (!delivery) return { success: false, error: 'ADDRESS_NOT_FOUND' };
|
|
||||||
|
|
||||||
//department column
|
|
||||||
const department = await this.prisma.ticket_dept.findUnique({
|
|
||||||
where: { id: ticket.dept_id! },
|
|
||||||
select: { name: true },
|
|
||||||
});
|
|
||||||
if (!department) return { success: false, error: 'DEPARTMENT_NOT_FOUND' };
|
|
||||||
|
|
||||||
//translate timestamp to Date string format
|
|
||||||
const dueDate = timestampToStringDate(Number(ticket.due_date));
|
|
||||||
const updatedAt = timestampToStringDate(Number(ticket.last_update))
|
|
||||||
const completedAt = timestampToStringDate(Number(ticket.date_closed));
|
|
||||||
|
|
||||||
//build a ticket for the ticket list
|
|
||||||
ticketListItem.push({
|
|
||||||
id: Number(ticket.id),
|
|
||||||
subject: ticket.subject ? ticket.subject : '',
|
|
||||||
status: ticket.status,
|
|
||||||
assignedTo: '',
|
|
||||||
deliveryAddress: delivery.address1!,
|
|
||||||
department: department.name,
|
|
||||||
parentTicketId: Number(ticket.parent) ? Number(ticket.parent) : 0,
|
|
||||||
dueDate: dueDate,
|
|
||||||
updatedAt: updatedAt,
|
|
||||||
completedAt: completedAt,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return { success: true, data: ticketListItem }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
1
src/customer-support/tickets/ticket.test.http
Normal file
1
src/customer-support/tickets/ticket.test.http
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
GET http://localhost:3000/tickets/open/gilles@targointernet.com?offset=1&limit=10
|
||||||
|
|
@ -14,6 +14,7 @@ import { PrismaPostgresService } from 'prisma/postgres/prisma-postgres.service';
|
||||||
const SESSION_TOKEN_DURATION_MINUTES = 180
|
const SESSION_TOKEN_DURATION_MINUTES = 180
|
||||||
|
|
||||||
async function bootstrap() {
|
async function bootstrap() {
|
||||||
|
(BigInt.prototype as any).toJSON = function () { return Number(this) };
|
||||||
const app = await NestFactory.create(AppModule);
|
const app = await NestFactory.create(AppModule);
|
||||||
const prisma_postgres = app.get(PrismaPostgresService);
|
const prisma_postgres = app.get(PrismaPostgresService);
|
||||||
|
|
||||||
|
|
@ -45,7 +46,7 @@ async function bootstrap() {
|
||||||
|
|
||||||
// Enable CORS
|
// Enable CORS
|
||||||
app.enableCors({
|
app.enableCors({
|
||||||
origin: ['http://10.100.251.2:9011', 'http://10.100.251.2:9012', 'http://10.100.251.2:9013', 'http://localhost:9000', 'https://app.targo.ca', 'https://portail.targo.ca','https://staging.app.targo.ca'],
|
origin: ['http://10.100.251.2:9011', 'http://10.100.251.2:9012', 'http://10.100.251.2:9013', 'http://localhost:9000', 'https://app.targo.ca', 'https://portail.targo.ca', 'https://staging.app.targo.ca'],
|
||||||
credentials: true,
|
credentials: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user