2026-03-16 00:33:40 +03:30
|
|
|
|
|
|
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
|
|
|
/* eslint-disable */
|
|
|
|
|
// biome-ignore-all lint: generated file
|
|
|
|
|
// @ts-nocheck
|
|
|
|
|
/*
|
|
|
|
|
* This file exports the `PermissionConsumer` 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.js"
|
|
|
|
|
import type * as Prisma from "../internal/prismaNamespace.js"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Model PermissionConsumer
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerModel = runtime.Types.Result.DefaultSelection<Prisma.$PermissionConsumerPayload>
|
|
|
|
|
|
|
|
|
|
export type AggregatePermissionConsumer = {
|
|
|
|
|
_count: PermissionConsumerCountAggregateOutputType | null
|
|
|
|
|
_min: PermissionConsumerMinAggregateOutputType | null
|
|
|
|
|
_max: PermissionConsumerMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerMinAggregateOutputType = {
|
|
|
|
|
id: string | null
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id: string | null
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerMaxAggregateOutputType = {
|
|
|
|
|
id: string | null
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id: string | null
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerCountAggregateOutputType = {
|
|
|
|
|
id: number
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id: number
|
2026-03-16 00:33:40 +03:30
|
|
|
_all: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerMinAggregateInputType = {
|
|
|
|
|
id?: true
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: true
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerMaxAggregateInputType = {
|
|
|
|
|
id?: true
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: true
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerCountAggregateInputType = {
|
|
|
|
|
id?: true
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: true
|
2026-03-16 00:33:40 +03:30
|
|
|
_all?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which PermissionConsumer to aggregate.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of PermissionConsumers to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.PermissionConsumerOrderByWithRelationInput | Prisma.PermissionConsumerOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the start position
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` PermissionConsumers 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` PermissionConsumers.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Count returned PermissionConsumers
|
|
|
|
|
**/
|
|
|
|
|
_count?: true | PermissionConsumerCountAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the minimum value
|
|
|
|
|
**/
|
|
|
|
|
_min?: PermissionConsumerMinAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the maximum value
|
|
|
|
|
**/
|
|
|
|
|
_max?: PermissionConsumerMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GetPermissionConsumerAggregateType<T extends PermissionConsumerAggregateArgs> = {
|
|
|
|
|
[P in keyof T & keyof AggregatePermissionConsumer]: P extends '_count' | 'count'
|
|
|
|
|
? T[P] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregatePermissionConsumer[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregatePermissionConsumer[P]>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
orderBy?: Prisma.PermissionConsumerOrderByWithAggregationInput | Prisma.PermissionConsumerOrderByWithAggregationInput[]
|
|
|
|
|
by: Prisma.PermissionConsumerScalarFieldEnum[] | Prisma.PermissionConsumerScalarFieldEnum
|
|
|
|
|
having?: Prisma.PermissionConsumerScalarWhereWithAggregatesInput
|
|
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
|
|
|
|
_count?: PermissionConsumerCountAggregateInputType | true
|
|
|
|
|
_min?: PermissionConsumerMinAggregateInputType
|
|
|
|
|
_max?: PermissionConsumerMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerGroupByOutputType = {
|
|
|
|
|
id: string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id: string
|
2026-03-16 00:33:40 +03:30
|
|
|
_count: PermissionConsumerCountAggregateOutputType | null
|
|
|
|
|
_min: PermissionConsumerMinAggregateOutputType | null
|
|
|
|
|
_max: PermissionConsumerMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetPermissionConsumerGroupByPayload<T extends PermissionConsumerGroupByArgs> = Prisma.PrismaPromise<
|
|
|
|
|
Array<
|
|
|
|
|
Prisma.PickEnumerable<PermissionConsumerGroupByOutputType, T['by']> &
|
|
|
|
|
{
|
|
|
|
|
[P in ((keyof T) & (keyof PermissionConsumerGroupByOutputType))]: P extends '_count'
|
|
|
|
|
? T[P] extends boolean
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], PermissionConsumerGroupByOutputType[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], PermissionConsumerGroupByOutputType[P]>
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerWhereInput = {
|
|
|
|
|
AND?: Prisma.PermissionConsumerWhereInput | Prisma.PermissionConsumerWhereInput[]
|
|
|
|
|
OR?: Prisma.PermissionConsumerWhereInput[]
|
|
|
|
|
NOT?: Prisma.PermissionConsumerWhereInput | Prisma.PermissionConsumerWhereInput[]
|
|
|
|
|
id?: Prisma.StringFilter<"PermissionConsumer"> | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: Prisma.StringFilter<"PermissionConsumer"> | string
|
|
|
|
|
consumer_account?: Prisma.XOR<Prisma.ConsumerAccountScalarRelationFilter, Prisma.ConsumerAccountWhereInput>
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosListRelationFilter
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexListRelationFilter
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessListRelationFilter
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerOrderByWithRelationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: Prisma.SortOrder
|
|
|
|
|
consumer_account?: Prisma.ConsumerAccountOrderByWithRelationInput
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosOrderByRelationAggregateInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexOrderByRelationAggregateInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessOrderByRelationAggregateInput
|
2026-03-16 00:33:40 +03:30
|
|
|
_relevance?: Prisma.PermissionConsumerOrderByRelevanceInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerWhereUniqueInput = Prisma.AtLeast<{
|
|
|
|
|
id?: string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: string
|
2026-03-16 00:33:40 +03:30
|
|
|
AND?: Prisma.PermissionConsumerWhereInput | Prisma.PermissionConsumerWhereInput[]
|
|
|
|
|
OR?: Prisma.PermissionConsumerWhereInput[]
|
|
|
|
|
NOT?: Prisma.PermissionConsumerWhereInput | Prisma.PermissionConsumerWhereInput[]
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account?: Prisma.XOR<Prisma.ConsumerAccountScalarRelationFilter, Prisma.ConsumerAccountWhereInput>
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosListRelationFilter
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexListRelationFilter
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessListRelationFilter
|
|
|
|
|
}, "id" | "consumer_account_id">
|
2026-03-16 00:33:40 +03:30
|
|
|
|
|
|
|
|
export type PermissionConsumerOrderByWithAggregationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: Prisma.SortOrder
|
2026-03-16 00:33:40 +03:30
|
|
|
_count?: Prisma.PermissionConsumerCountOrderByAggregateInput
|
|
|
|
|
_max?: Prisma.PermissionConsumerMaxOrderByAggregateInput
|
|
|
|
|
_min?: Prisma.PermissionConsumerMinOrderByAggregateInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerScalarWhereWithAggregatesInput = {
|
|
|
|
|
AND?: Prisma.PermissionConsumerScalarWhereWithAggregatesInput | Prisma.PermissionConsumerScalarWhereWithAggregatesInput[]
|
|
|
|
|
OR?: Prisma.PermissionConsumerScalarWhereWithAggregatesInput[]
|
|
|
|
|
NOT?: Prisma.PermissionConsumerScalarWhereWithAggregatesInput | Prisma.PermissionConsumerScalarWhereWithAggregatesInput[]
|
|
|
|
|
id?: Prisma.StringWithAggregatesFilter<"PermissionConsumer"> | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: Prisma.StringWithAggregatesFilter<"PermissionConsumer"> | string
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerCreateInput = {
|
|
|
|
|
id?: string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account: Prisma.ConsumerAccountCreateNestedOneWithoutPermissionInput
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosCreateNestedManyWithoutPermissionInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexCreateNestedManyWithoutPermissionInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessCreateNestedManyWithoutPermissionInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerUncheckedCreateInput = {
|
|
|
|
|
id?: string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id: string
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPermissionInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutPermissionInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessUncheckedCreateNestedManyWithoutPermissionInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerUpdateInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutPermissionNestedInput
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessUpdateManyWithoutPermissionNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerUncheckedUpdateInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosUncheckedUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexUncheckedUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessUncheckedUpdateManyWithoutPermissionNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerCreateManyInput = {
|
|
|
|
|
id?: string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id: string
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerUpdateManyMutationInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerUncheckedUpdateManyInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerNullableScalarRelationFilter = {
|
|
|
|
|
is?: Prisma.PermissionConsumerWhereInput | null
|
|
|
|
|
isNot?: Prisma.PermissionConsumerWhereInput | null
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerOrderByRelevanceInput = {
|
|
|
|
|
fields: Prisma.PermissionConsumerOrderByRelevanceFieldEnum | Prisma.PermissionConsumerOrderByRelevanceFieldEnum[]
|
|
|
|
|
sort: Prisma.SortOrder
|
|
|
|
|
search: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerCountOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: Prisma.SortOrder
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerMaxOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: Prisma.SortOrder
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerMinOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: Prisma.SortOrder
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerScalarRelationFilter = {
|
|
|
|
|
is?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
isNot?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCreateNestedOneWithoutConsumer_accountInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
|
|
|
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
2026-03-16 00:33:40 +03:30
|
|
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
|
|
|
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
2026-03-16 00:33:40 +03:30
|
|
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
|
|
|
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
|
|
|
|
upsert?: Prisma.PermissionConsumerUpsertWithoutConsumer_accountInput
|
|
|
|
|
disconnect?: Prisma.PermissionConsumerWhereInput | boolean
|
|
|
|
|
delete?: Prisma.PermissionConsumerWhereInput | boolean
|
2026-03-16 00:33:40 +03:30
|
|
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PermissionConsumerUpdateToOneWithWhereWithoutConsumer_accountInput, Prisma.PermissionConsumerUpdateWithoutConsumer_accountInput>, Prisma.PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
|
|
|
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
|
|
|
|
upsert?: Prisma.PermissionConsumerUpsertWithoutConsumer_accountInput
|
|
|
|
|
disconnect?: Prisma.PermissionConsumerWhereInput | boolean
|
|
|
|
|
delete?: Prisma.PermissionConsumerWhereInput | boolean
|
2026-03-16 00:33:40 +03:30
|
|
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PermissionConsumerUpdateToOneWithWhereWithoutConsumer_accountInput, Prisma.PermissionConsumerUpdateWithoutConsumer_accountInput>, Prisma.PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCreateNestedOneWithoutPos_permissionsInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutPos_permissionsInput, Prisma.PermissionConsumerUncheckedCreateWithoutPos_permissionsInput>
|
|
|
|
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutPos_permissionsInput
|
2026-03-16 00:33:40 +03:30
|
|
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpdateOneRequiredWithoutPos_permissionsNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutPos_permissionsInput, Prisma.PermissionConsumerUncheckedCreateWithoutPos_permissionsInput>
|
|
|
|
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutPos_permissionsInput
|
|
|
|
|
upsert?: Prisma.PermissionConsumerUpsertWithoutPos_permissionsInput
|
2026-03-16 00:33:40 +03:30
|
|
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PermissionConsumerUpdateToOneWithWhereWithoutPos_permissionsInput, Prisma.PermissionConsumerUpdateWithoutPos_permissionsInput>, Prisma.PermissionConsumerUncheckedUpdateWithoutPos_permissionsInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCreateNestedOneWithoutComplex_permissionsInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutComplex_permissionsInput, Prisma.PermissionConsumerUncheckedCreateWithoutComplex_permissionsInput>
|
|
|
|
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutComplex_permissionsInput
|
|
|
|
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpdateOneRequiredWithoutComplex_permissionsNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutComplex_permissionsInput, Prisma.PermissionConsumerUncheckedCreateWithoutComplex_permissionsInput>
|
|
|
|
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutComplex_permissionsInput
|
|
|
|
|
upsert?: Prisma.PermissionConsumerUpsertWithoutComplex_permissionsInput
|
|
|
|
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PermissionConsumerUpdateToOneWithWhereWithoutComplex_permissionsInput, Prisma.PermissionConsumerUpdateWithoutComplex_permissionsInput>, Prisma.PermissionConsumerUncheckedUpdateWithoutComplex_permissionsInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCreateNestedOneWithoutBusiness_permissionsInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutBusiness_permissionsInput, Prisma.PermissionConsumerUncheckedCreateWithoutBusiness_permissionsInput>
|
|
|
|
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutBusiness_permissionsInput
|
|
|
|
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpdateOneRequiredWithoutBusiness_permissionsNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutBusiness_permissionsInput, Prisma.PermissionConsumerUncheckedCreateWithoutBusiness_permissionsInput>
|
|
|
|
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutBusiness_permissionsInput
|
|
|
|
|
upsert?: Prisma.PermissionConsumerUpsertWithoutBusiness_permissionsInput
|
|
|
|
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PermissionConsumerUpdateToOneWithWhereWithoutBusiness_permissionsInput, Prisma.PermissionConsumerUpdateWithoutBusiness_permissionsInput>, Prisma.PermissionConsumerUncheckedUpdateWithoutBusiness_permissionsInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCreateWithoutConsumer_accountInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
2026-04-11 14:47:05 +03:30
|
|
|
pos_permissions?: Prisma.PermissionPosCreateNestedManyWithoutPermissionInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexCreateNestedManyWithoutPermissionInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessCreateNestedManyWithoutPermissionInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUncheckedCreateWithoutConsumer_accountInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
2026-04-11 14:47:05 +03:30
|
|
|
pos_permissions?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPermissionInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutPermissionInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessUncheckedCreateNestedManyWithoutPermissionInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCreateOrConnectWithoutConsumer_accountInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.PermissionConsumerWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
create: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpsertWithoutConsumer_accountInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.PermissionConsumerUpdateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpdateToOneWithWhereWithoutConsumer_accountInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
2026-04-11 14:47:05 +03:30
|
|
|
data: Prisma.XOR<Prisma.PermissionConsumerUpdateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpdateWithoutConsumer_accountInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-11 14:47:05 +03:30
|
|
|
pos_permissions?: Prisma.PermissionPosUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessUpdateManyWithoutPermissionNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-11 14:47:05 +03:30
|
|
|
pos_permissions?: Prisma.PermissionPosUncheckedUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexUncheckedUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessUncheckedUpdateManyWithoutPermissionNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCreateWithoutPos_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account: Prisma.ConsumerAccountCreateNestedOneWithoutPermissionInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexCreateNestedManyWithoutPermissionInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessCreateNestedManyWithoutPermissionInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUncheckedCreateWithoutPos_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id: string
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutPermissionInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessUncheckedCreateNestedManyWithoutPermissionInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCreateOrConnectWithoutPos_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.PermissionConsumerWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
create: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutPos_permissionsInput, Prisma.PermissionConsumerUncheckedCreateWithoutPos_permissionsInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpsertWithoutPos_permissionsInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.PermissionConsumerUpdateWithoutPos_permissionsInput, Prisma.PermissionConsumerUncheckedUpdateWithoutPos_permissionsInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutPos_permissionsInput, Prisma.PermissionConsumerUncheckedCreateWithoutPos_permissionsInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpdateToOneWithWhereWithoutPos_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
2026-04-11 14:47:05 +03:30
|
|
|
data: Prisma.XOR<Prisma.PermissionConsumerUpdateWithoutPos_permissionsInput, Prisma.PermissionConsumerUncheckedUpdateWithoutPos_permissionsInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpdateWithoutPos_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutPermissionNestedInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessUpdateManyWithoutPermissionNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUncheckedUpdateWithoutPos_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexUncheckedUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessUncheckedUpdateManyWithoutPermissionNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCreateWithoutComplex_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account: Prisma.ConsumerAccountCreateNestedOneWithoutPermissionInput
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosCreateNestedManyWithoutPermissionInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessCreateNestedManyWithoutPermissionInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUncheckedCreateWithoutComplex_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id: string
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPermissionInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessUncheckedCreateNestedManyWithoutPermissionInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCreateOrConnectWithoutComplex_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.PermissionConsumerWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
create: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutComplex_permissionsInput, Prisma.PermissionConsumerUncheckedCreateWithoutComplex_permissionsInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpsertWithoutComplex_permissionsInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.PermissionConsumerUpdateWithoutComplex_permissionsInput, Prisma.PermissionConsumerUncheckedUpdateWithoutComplex_permissionsInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutComplex_permissionsInput, Prisma.PermissionConsumerUncheckedCreateWithoutComplex_permissionsInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpdateToOneWithWhereWithoutComplex_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
2026-04-11 14:47:05 +03:30
|
|
|
data: Prisma.XOR<Prisma.PermissionConsumerUpdateWithoutComplex_permissionsInput, Prisma.PermissionConsumerUncheckedUpdateWithoutComplex_permissionsInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpdateWithoutComplex_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutPermissionNestedInput
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessUpdateManyWithoutPermissionNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUncheckedUpdateWithoutComplex_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosUncheckedUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
business_permissions?: Prisma.PermissionBusinessUncheckedUpdateManyWithoutPermissionNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCreateWithoutBusiness_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account: Prisma.ConsumerAccountCreateNestedOneWithoutPermissionInput
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosCreateNestedManyWithoutPermissionInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexCreateNestedManyWithoutPermissionInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUncheckedCreateWithoutBusiness_permissionsInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
consumer_account_id: string
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPermissionInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutPermissionInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerCreateOrConnectWithoutBusiness_permissionsInput = {
|
|
|
|
|
where: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
create: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutBusiness_permissionsInput, Prisma.PermissionConsumerUncheckedCreateWithoutBusiness_permissionsInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerUpsertWithoutBusiness_permissionsInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.PermissionConsumerUpdateWithoutBusiness_permissionsInput, Prisma.PermissionConsumerUncheckedUpdateWithoutBusiness_permissionsInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutBusiness_permissionsInput, Prisma.PermissionConsumerUncheckedCreateWithoutBusiness_permissionsInput>
|
|
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerUpdateToOneWithWhereWithoutBusiness_permissionsInput = {
|
|
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
data: Prisma.XOR<Prisma.PermissionConsumerUpdateWithoutBusiness_permissionsInput, Prisma.PermissionConsumerUncheckedUpdateWithoutBusiness_permissionsInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUpdateWithoutBusiness_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutPermissionNestedInput
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexUpdateManyWithoutPermissionNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerUncheckedUpdateWithoutBusiness_permissionsInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
pos_permissions?: Prisma.PermissionPosUncheckedUpdateManyWithoutPermissionNestedInput
|
|
|
|
|
complex_permissions?: Prisma.PermissionComplexUncheckedUpdateManyWithoutPermissionNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Count Type PermissionConsumerCountOutputType
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerCountOutputType = {
|
2026-04-11 14:47:05 +03:30
|
|
|
pos_permissions: number
|
|
|
|
|
complex_permissions: number
|
|
|
|
|
business_permissions: number
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-04-11 14:47:05 +03:30
|
|
|
pos_permissions?: boolean | PermissionConsumerCountOutputTypeCountPos_permissionsArgs
|
|
|
|
|
complex_permissions?: boolean | PermissionConsumerCountOutputTypeCountComplex_permissionsArgs
|
|
|
|
|
business_permissions?: boolean | PermissionConsumerCountOutputTypeCountBusiness_permissionsArgs
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumerCountOutputType without action
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionConsumerCountOutputType
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionConsumerCountOutputTypeSelect<ExtArgs> | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumerCountOutputType without action
|
|
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCountOutputTypeCountPos_permissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where?: Prisma.PermissionPosWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumerCountOutputType without action
|
|
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCountOutputTypeCountComplex_permissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where?: Prisma.PermissionComplexWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumerCountOutputType without action
|
|
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerCountOutputTypeCountBusiness_permissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where?: Prisma.PermissionBusinessWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
|
|
|
id?: boolean
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: boolean
|
|
|
|
|
consumer_account?: boolean | Prisma.ConsumerAccountDefaultArgs<ExtArgs>
|
|
|
|
|
pos_permissions?: boolean | Prisma.PermissionConsumer$pos_permissionsArgs<ExtArgs>
|
|
|
|
|
complex_permissions?: boolean | Prisma.PermissionConsumer$complex_permissionsArgs<ExtArgs>
|
|
|
|
|
business_permissions?: boolean | Prisma.PermissionConsumer$business_permissionsArgs<ExtArgs>
|
2026-03-16 00:33:40 +03:30
|
|
|
_count?: boolean | Prisma.PermissionConsumerCountOutputTypeDefaultArgs<ExtArgs>
|
|
|
|
|
}, ExtArgs["result"]["permissionConsumer"]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerSelectScalar = {
|
|
|
|
|
id?: boolean
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id?: boolean
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "consumer_account_id", ExtArgs["result"]["permissionConsumer"]>
|
2026-03-16 00:33:40 +03:30
|
|
|
export type PermissionConsumerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account?: boolean | Prisma.ConsumerAccountDefaultArgs<ExtArgs>
|
|
|
|
|
pos_permissions?: boolean | Prisma.PermissionConsumer$pos_permissionsArgs<ExtArgs>
|
|
|
|
|
complex_permissions?: boolean | Prisma.PermissionConsumer$complex_permissionsArgs<ExtArgs>
|
|
|
|
|
business_permissions?: boolean | Prisma.PermissionConsumer$business_permissionsArgs<ExtArgs>
|
2026-03-16 00:33:40 +03:30
|
|
|
_count?: boolean | Prisma.PermissionConsumerCountOutputTypeDefaultArgs<ExtArgs>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type $PermissionConsumerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
name: "PermissionConsumer"
|
|
|
|
|
objects: {
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account: Prisma.$ConsumerAccountPayload<ExtArgs>
|
|
|
|
|
pos_permissions: Prisma.$PermissionPosPayload<ExtArgs>[]
|
|
|
|
|
complex_permissions: Prisma.$PermissionComplexPayload<ExtArgs>[]
|
|
|
|
|
business_permissions: Prisma.$PermissionBusinessPayload<ExtArgs>[]
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
|
|
|
id: string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account_id: string
|
2026-03-16 00:33:40 +03:30
|
|
|
}, ExtArgs["result"]["permissionConsumer"]>
|
|
|
|
|
composites: {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerGetPayload<S extends boolean | null | undefined | PermissionConsumerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PermissionConsumerPayload, S>
|
|
|
|
|
|
|
|
|
|
export type PermissionConsumerCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
|
|
|
Omit<PermissionConsumerFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
|
|
|
select?: PermissionConsumerCountAggregateInputType | true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PermissionConsumerDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
|
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PermissionConsumer'], meta: { name: 'PermissionConsumer' } }
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or one PermissionConsumer that matches the filter.
|
|
|
|
|
* @param {PermissionConsumerFindUniqueArgs} args - Arguments to find a PermissionConsumer
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one PermissionConsumer
|
|
|
|
|
* const permissionConsumer = await prisma.permissionConsumer.findUnique({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUnique<T extends PermissionConsumerFindUniqueArgs>(args: Prisma.SelectSubset<T, PermissionConsumerFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PermissionConsumerClient<runtime.Types.Result.GetResult<Prisma.$PermissionConsumerPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find one PermissionConsumer that matches the filter or throw an error with `error.code='P2025'`
|
|
|
|
|
* if no matches were found.
|
|
|
|
|
* @param {PermissionConsumerFindUniqueOrThrowArgs} args - Arguments to find a PermissionConsumer
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one PermissionConsumer
|
|
|
|
|
* const permissionConsumer = await prisma.permissionConsumer.findUniqueOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUniqueOrThrow<T extends PermissionConsumerFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PermissionConsumerFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PermissionConsumerClient<runtime.Types.Result.GetResult<Prisma.$PermissionConsumerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first PermissionConsumer 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 {PermissionConsumerFindFirstArgs} args - Arguments to find a PermissionConsumer
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one PermissionConsumer
|
|
|
|
|
* const permissionConsumer = await prisma.permissionConsumer.findFirst({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirst<T extends PermissionConsumerFindFirstArgs>(args?: Prisma.SelectSubset<T, PermissionConsumerFindFirstArgs<ExtArgs>>): Prisma.Prisma__PermissionConsumerClient<runtime.Types.Result.GetResult<Prisma.$PermissionConsumerPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first PermissionConsumer 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 {PermissionConsumerFindFirstOrThrowArgs} args - Arguments to find a PermissionConsumer
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one PermissionConsumer
|
|
|
|
|
* const permissionConsumer = await prisma.permissionConsumer.findFirstOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirstOrThrow<T extends PermissionConsumerFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PermissionConsumerFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PermissionConsumerClient<runtime.Types.Result.GetResult<Prisma.$PermissionConsumerPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or more PermissionConsumers 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 {PermissionConsumerFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
|
|
|
* @example
|
|
|
|
|
* // Get all PermissionConsumers
|
|
|
|
|
* const permissionConsumers = await prisma.permissionConsumer.findMany()
|
|
|
|
|
*
|
|
|
|
|
* // Get first 10 PermissionConsumers
|
|
|
|
|
* const permissionConsumers = await prisma.permissionConsumer.findMany({ take: 10 })
|
|
|
|
|
*
|
|
|
|
|
* // Only select the `id`
|
|
|
|
|
* const permissionConsumerWithIdOnly = await prisma.permissionConsumer.findMany({ select: { id: true } })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
findMany<T extends PermissionConsumerFindManyArgs>(args?: Prisma.SelectSubset<T, PermissionConsumerFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionConsumerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a PermissionConsumer.
|
|
|
|
|
* @param {PermissionConsumerCreateArgs} args - Arguments to create a PermissionConsumer.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create one PermissionConsumer
|
|
|
|
|
* const PermissionConsumer = await prisma.permissionConsumer.create({
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... data to create a PermissionConsumer
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
create<T extends PermissionConsumerCreateArgs>(args: Prisma.SelectSubset<T, PermissionConsumerCreateArgs<ExtArgs>>): Prisma.Prisma__PermissionConsumerClient<runtime.Types.Result.GetResult<Prisma.$PermissionConsumerPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create many PermissionConsumers.
|
|
|
|
|
* @param {PermissionConsumerCreateManyArgs} args - Arguments to create many PermissionConsumers.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create many PermissionConsumers
|
|
|
|
|
* const permissionConsumer = await prisma.permissionConsumer.createMany({
|
|
|
|
|
* data: [
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* ]
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
createMany<T extends PermissionConsumerCreateManyArgs>(args?: Prisma.SelectSubset<T, PermissionConsumerCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete a PermissionConsumer.
|
|
|
|
|
* @param {PermissionConsumerDeleteArgs} args - Arguments to delete one PermissionConsumer.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete one PermissionConsumer
|
|
|
|
|
* const PermissionConsumer = await prisma.permissionConsumer.delete({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... filter to delete one PermissionConsumer
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
delete<T extends PermissionConsumerDeleteArgs>(args: Prisma.SelectSubset<T, PermissionConsumerDeleteArgs<ExtArgs>>): Prisma.Prisma__PermissionConsumerClient<runtime.Types.Result.GetResult<Prisma.$PermissionConsumerPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update one PermissionConsumer.
|
|
|
|
|
* @param {PermissionConsumerUpdateArgs} args - Arguments to update one PermissionConsumer.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update one PermissionConsumer
|
|
|
|
|
* const permissionConsumer = await prisma.permissionConsumer.update({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
update<T extends PermissionConsumerUpdateArgs>(args: Prisma.SelectSubset<T, PermissionConsumerUpdateArgs<ExtArgs>>): Prisma.Prisma__PermissionConsumerClient<runtime.Types.Result.GetResult<Prisma.$PermissionConsumerPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete zero or more PermissionConsumers.
|
|
|
|
|
* @param {PermissionConsumerDeleteManyArgs} args - Arguments to filter PermissionConsumers to delete.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete a few PermissionConsumers
|
|
|
|
|
* const { count } = await prisma.permissionConsumer.deleteMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
deleteMany<T extends PermissionConsumerDeleteManyArgs>(args?: Prisma.SelectSubset<T, PermissionConsumerDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update zero or more PermissionConsumers.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {PermissionConsumerUpdateManyArgs} args - Arguments to update one or more rows.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update many PermissionConsumers
|
|
|
|
|
* const permissionConsumer = await prisma.permissionConsumer.updateMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
updateMany<T extends PermissionConsumerUpdateManyArgs>(args: Prisma.SelectSubset<T, PermissionConsumerUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create or update one PermissionConsumer.
|
|
|
|
|
* @param {PermissionConsumerUpsertArgs} args - Arguments to update or create a PermissionConsumer.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update or create a PermissionConsumer
|
|
|
|
|
* const permissionConsumer = await prisma.permissionConsumer.upsert({
|
|
|
|
|
* create: {
|
|
|
|
|
* // ... data to create a PermissionConsumer
|
|
|
|
|
* },
|
|
|
|
|
* update: {
|
|
|
|
|
* // ... in case it already exists, update
|
|
|
|
|
* },
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the PermissionConsumer we want to update
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
upsert<T extends PermissionConsumerUpsertArgs>(args: Prisma.SelectSubset<T, PermissionConsumerUpsertArgs<ExtArgs>>): Prisma.Prisma__PermissionConsumerClient<runtime.Types.Result.GetResult<Prisma.$PermissionConsumerPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Count the number of PermissionConsumers.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {PermissionConsumerCountArgs} args - Arguments to filter PermissionConsumers to count.
|
|
|
|
|
* @example
|
|
|
|
|
* // Count the number of PermissionConsumers
|
|
|
|
|
* const count = await prisma.permissionConsumer.count({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the PermissionConsumers we want to count
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
**/
|
|
|
|
|
count<T extends PermissionConsumerCountArgs>(
|
|
|
|
|
args?: Prisma.Subset<T, PermissionConsumerCountArgs>,
|
|
|
|
|
): Prisma.PrismaPromise<
|
|
|
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
|
|
|
? T['select'] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T['select'], PermissionConsumerCountAggregateOutputType>
|
|
|
|
|
: number
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Allows you to perform aggregations operations on a PermissionConsumer.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {PermissionConsumerAggregateArgs} 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 PermissionConsumerAggregateArgs>(args: Prisma.Subset<T, PermissionConsumerAggregateArgs>): Prisma.PrismaPromise<GetPermissionConsumerAggregateType<T>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Group by PermissionConsumer.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {PermissionConsumerGroupByArgs} 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 PermissionConsumerGroupByArgs,
|
|
|
|
|
HasSelectOrTake extends Prisma.Or<
|
|
|
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
|
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
|
|
|
>,
|
|
|
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
|
|
|
? { orderBy: PermissionConsumerGroupByArgs['orderBy'] }
|
|
|
|
|
: { orderBy?: PermissionConsumerGroupByArgs['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, PermissionConsumerGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPermissionConsumerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
|
|
|
/**
|
|
|
|
|
* Fields of the PermissionConsumer model
|
|
|
|
|
*/
|
|
|
|
|
readonly fields: PermissionConsumerFieldRefs;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The delegate class that acts as a "Promise-like" for PermissionConsumer.
|
|
|
|
|
* 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__PermissionConsumerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
|
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_account<T extends Prisma.ConsumerAccountDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsumerAccountDefaultArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
pos_permissions<T extends Prisma.PermissionConsumer$pos_permissionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PermissionConsumer$pos_permissionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
|
|
|
complex_permissions<T extends Prisma.PermissionConsumer$complex_permissionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PermissionConsumer$complex_permissionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionComplexPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
|
|
|
business_permissions<T extends Prisma.PermissionConsumer$business_permissionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PermissionConsumer$business_permissionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionBusinessPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
2026-03-16 00:33:40 +03:30
|
|
|
/**
|
|
|
|
|
* 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 PermissionConsumer model
|
|
|
|
|
*/
|
|
|
|
|
export interface PermissionConsumerFieldRefs {
|
|
|
|
|
readonly id: Prisma.FieldRef<"PermissionConsumer", 'String'>
|
2026-04-11 14:47:05 +03:30
|
|
|
readonly consumer_account_id: Prisma.FieldRef<"PermissionConsumer", 'String'>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Custom InputTypes
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumer findUnique
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionConsumerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionConsumerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionConsumerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which PermissionConsumer to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumer findUniqueOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionConsumerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionConsumerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionConsumerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which PermissionConsumer to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumer findFirst
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionConsumerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionConsumerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionConsumerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which PermissionConsumer to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of PermissionConsumers to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.PermissionConsumerOrderByWithRelationInput | Prisma.PermissionConsumerOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for PermissionConsumers.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` PermissionConsumers 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` PermissionConsumers.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of PermissionConsumers.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.PermissionConsumerScalarFieldEnum | Prisma.PermissionConsumerScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumer findFirstOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionConsumerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionConsumerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionConsumerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which PermissionConsumer to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of PermissionConsumers to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.PermissionConsumerOrderByWithRelationInput | Prisma.PermissionConsumerOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for PermissionConsumers.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` PermissionConsumers 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` PermissionConsumers.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of PermissionConsumers.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.PermissionConsumerScalarFieldEnum | Prisma.PermissionConsumerScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumer findMany
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionConsumerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionConsumerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionConsumerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which PermissionConsumers to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of PermissionConsumers to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.PermissionConsumerOrderByWithRelationInput | Prisma.PermissionConsumerOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for listing PermissionConsumers.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` PermissionConsumers 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` PermissionConsumers.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
distinct?: Prisma.PermissionConsumerScalarFieldEnum | Prisma.PermissionConsumerScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumer create
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionConsumerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionConsumerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionConsumerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to create a PermissionConsumer.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.PermissionConsumerCreateInput, Prisma.PermissionConsumerUncheckedCreateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumer createMany
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to create many PermissionConsumers.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.PermissionConsumerCreateManyInput | Prisma.PermissionConsumerCreateManyInput[]
|
|
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumer update
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionConsumerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionConsumerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionConsumerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to update a PermissionConsumer.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.PermissionConsumerUpdateInput, Prisma.PermissionConsumerUncheckedUpdateInput>
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which PermissionConsumer to update.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumer updateMany
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to update PermissionConsumers.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.PermissionConsumerUpdateManyMutationInput, Prisma.PermissionConsumerUncheckedUpdateManyInput>
|
|
|
|
|
/**
|
|
|
|
|
* Filter which PermissionConsumers to update
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many PermissionConsumers to update.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumer upsert
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionConsumerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionConsumerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionConsumerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The filter to search for the PermissionConsumer to update in case it exists.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* In case the PermissionConsumer found by the `where` argument doesn't exist, create a new PermissionConsumer with this data.
|
|
|
|
|
*/
|
|
|
|
|
create: Prisma.XOR<Prisma.PermissionConsumerCreateInput, Prisma.PermissionConsumerUncheckedCreateInput>
|
|
|
|
|
/**
|
|
|
|
|
* In case the PermissionConsumer was found with the provided `where` argument, update it with this data.
|
|
|
|
|
*/
|
|
|
|
|
update: Prisma.XOR<Prisma.PermissionConsumerUpdateInput, Prisma.PermissionConsumerUncheckedUpdateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumer delete
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionConsumerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionConsumerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionConsumerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter which PermissionConsumer to delete.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PermissionConsumerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumer deleteMany
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which PermissionConsumers to delete
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many PermissionConsumers to delete.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-11 14:47:05 +03:30
|
|
|
* PermissionConsumer.pos_permissions
|
2026-03-16 00:33:40 +03:30
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumer$pos_permissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-03-16 00:33:40 +03:30
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionPosSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionPos
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionPosOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionPosInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.PermissionPosWhereInput
|
|
|
|
|
orderBy?: Prisma.PermissionPosOrderByWithRelationInput | Prisma.PermissionPosOrderByWithRelationInput[]
|
|
|
|
|
cursor?: Prisma.PermissionPosWhereUniqueInput
|
|
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
|
|
|
|
distinct?: Prisma.PermissionPosScalarFieldEnum | Prisma.PermissionPosScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-11 14:47:05 +03:30
|
|
|
* PermissionConsumer.complex_permissions
|
2026-03-16 00:33:40 +03:30
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumer$complex_permissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-03-16 00:33:40 +03:30
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionComplex
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionComplexSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionComplex
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionComplexOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionComplexInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.PermissionComplexWhereInput
|
|
|
|
|
orderBy?: Prisma.PermissionComplexOrderByWithRelationInput | Prisma.PermissionComplexOrderByWithRelationInput[]
|
|
|
|
|
cursor?: Prisma.PermissionComplexWhereUniqueInput
|
|
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
|
|
|
|
distinct?: Prisma.PermissionComplexScalarFieldEnum | Prisma.PermissionComplexScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-11 14:47:05 +03:30
|
|
|
* PermissionConsumer.business_permissions
|
2026-03-16 00:33:40 +03:30
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PermissionConsumer$business_permissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-03-16 00:33:40 +03:30
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionBusiness
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionBusinessSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionBusiness
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionBusinessOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionBusinessInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.PermissionBusinessWhereInput
|
|
|
|
|
orderBy?: Prisma.PermissionBusinessOrderByWithRelationInput | Prisma.PermissionBusinessOrderByWithRelationInput[]
|
|
|
|
|
cursor?: Prisma.PermissionBusinessWhereUniqueInput
|
|
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
|
|
|
|
distinct?: Prisma.PermissionBusinessScalarFieldEnum | Prisma.PermissionBusinessScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PermissionConsumer without action
|
|
|
|
|
*/
|
|
|
|
|
export type PermissionConsumerDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionConsumerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionConsumerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionConsumerInclude<ExtArgs> | null
|
|
|
|
|
}
|