Files
HiveGrid-Wireframes/hivegrid-cloud/packages/db/generated/prisma/client/models/KnowledgeBase.ts
T

2360 lines
92 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `KnowledgeBase` 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.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"
/**
* Model KnowledgeBase
*
*/
export type KnowledgeBaseModel = runtime.Types.Result.DefaultSelection<Prisma.$KnowledgeBasePayload>
export type AggregateKnowledgeBase = {
_count: KnowledgeBaseCountAggregateOutputType | null
_avg: KnowledgeBaseAvgAggregateOutputType | null
_sum: KnowledgeBaseSumAggregateOutputType | null
_min: KnowledgeBaseMinAggregateOutputType | null
_max: KnowledgeBaseMaxAggregateOutputType | null
}
export type KnowledgeBaseAvgAggregateOutputType = {
color: number | null
}
export type KnowledgeBaseSumAggregateOutputType = {
color: number | null
}
export type KnowledgeBaseMinAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
ownerKey: string | null
basePath: string | null
slug: string | null
title: string | null
description: string | null
defaultLanguage: string | null
layout: string | null
color: number | null
enabled: boolean | null
languages: string | null
links: string | null
logo: string | null
seoImage: string | null
}
export type KnowledgeBaseMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
ownerKey: string | null
basePath: string | null
slug: string | null
title: string | null
description: string | null
defaultLanguage: string | null
layout: string | null
color: number | null
enabled: boolean | null
languages: string | null
links: string | null
logo: string | null
seoImage: string | null
}
export type KnowledgeBaseCountAggregateOutputType = {
id: number
createdAt: number
updatedAt: number
tenantId: number
ownerKey: number
basePath: number
slug: number
title: number
description: number
defaultLanguage: number
layout: number
color: number
enabled: number
languages: number
links: number
logo: number
seoImage: number
_all: number
}
export type KnowledgeBaseAvgAggregateInputType = {
color?: true
}
export type KnowledgeBaseSumAggregateInputType = {
color?: true
}
export type KnowledgeBaseMinAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
ownerKey?: true
basePath?: true
slug?: true
title?: true
description?: true
defaultLanguage?: true
layout?: true
color?: true
enabled?: true
languages?: true
links?: true
logo?: true
seoImage?: true
}
export type KnowledgeBaseMaxAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
ownerKey?: true
basePath?: true
slug?: true
title?: true
description?: true
defaultLanguage?: true
layout?: true
color?: true
enabled?: true
languages?: true
links?: true
logo?: true
seoImage?: true
}
export type KnowledgeBaseCountAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
ownerKey?: true
basePath?: true
slug?: true
title?: true
description?: true
defaultLanguage?: true
layout?: true
color?: true
enabled?: true
languages?: true
links?: true
logo?: true
seoImage?: true
_all?: true
}
export type KnowledgeBaseAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which KnowledgeBase to aggregate.
*/
where?: Prisma.KnowledgeBaseWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of KnowledgeBases to fetch.
*/
orderBy?: Prisma.KnowledgeBaseOrderByWithRelationInput | Prisma.KnowledgeBaseOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.KnowledgeBaseWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` KnowledgeBases 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` KnowledgeBases.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned KnowledgeBases
**/
_count?: true | KnowledgeBaseCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: KnowledgeBaseAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: KnowledgeBaseSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: KnowledgeBaseMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: KnowledgeBaseMaxAggregateInputType
}
export type GetKnowledgeBaseAggregateType<T extends KnowledgeBaseAggregateArgs> = {
[P in keyof T & keyof AggregateKnowledgeBase]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateKnowledgeBase[P]>
: Prisma.GetScalarType<T[P], AggregateKnowledgeBase[P]>
}
export type KnowledgeBaseGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.KnowledgeBaseWhereInput
orderBy?: Prisma.KnowledgeBaseOrderByWithAggregationInput | Prisma.KnowledgeBaseOrderByWithAggregationInput[]
by: Prisma.KnowledgeBaseScalarFieldEnum[] | Prisma.KnowledgeBaseScalarFieldEnum
having?: Prisma.KnowledgeBaseScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: KnowledgeBaseCountAggregateInputType | true
_avg?: KnowledgeBaseAvgAggregateInputType
_sum?: KnowledgeBaseSumAggregateInputType
_min?: KnowledgeBaseMinAggregateInputType
_max?: KnowledgeBaseMaxAggregateInputType
}
export type KnowledgeBaseGroupByOutputType = {
id: string
createdAt: Date
updatedAt: Date
tenantId: string | null
ownerKey: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
_count: KnowledgeBaseCountAggregateOutputType | null
_avg: KnowledgeBaseAvgAggregateOutputType | null
_sum: KnowledgeBaseSumAggregateOutputType | null
_min: KnowledgeBaseMinAggregateOutputType | null
_max: KnowledgeBaseMaxAggregateOutputType | null
}
export type GetKnowledgeBaseGroupByPayload<T extends KnowledgeBaseGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<KnowledgeBaseGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof KnowledgeBaseGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], KnowledgeBaseGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], KnowledgeBaseGroupByOutputType[P]>
}
>
>
export type KnowledgeBaseWhereInput = {
AND?: Prisma.KnowledgeBaseWhereInput | Prisma.KnowledgeBaseWhereInput[]
OR?: Prisma.KnowledgeBaseWhereInput[]
NOT?: Prisma.KnowledgeBaseWhereInput | Prisma.KnowledgeBaseWhereInput[]
id?: Prisma.StringFilter<"KnowledgeBase"> | string
createdAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
tenantId?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null
ownerKey?: Prisma.StringFilter<"KnowledgeBase"> | string
basePath?: Prisma.StringFilter<"KnowledgeBase"> | string
slug?: Prisma.StringFilter<"KnowledgeBase"> | string
title?: Prisma.StringFilter<"KnowledgeBase"> | string
description?: Prisma.StringFilter<"KnowledgeBase"> | string
defaultLanguage?: Prisma.StringFilter<"KnowledgeBase"> | string
layout?: Prisma.StringFilter<"KnowledgeBase"> | string
color?: Prisma.IntFilter<"KnowledgeBase"> | number
enabled?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
languages?: Prisma.StringFilter<"KnowledgeBase"> | string
links?: Prisma.StringFilter<"KnowledgeBase"> | string
logo?: Prisma.StringFilter<"KnowledgeBase"> | string
seoImage?: Prisma.StringFilter<"KnowledgeBase"> | string
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
categories?: Prisma.KnowledgeBaseCategoryListRelationFilter
articles?: Prisma.KnowledgeBaseArticleListRelationFilter
views?: Prisma.KnowledgeBaseViewsListRelationFilter
}
export type KnowledgeBaseOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
ownerKey?: Prisma.SortOrder
basePath?: Prisma.SortOrder
slug?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
defaultLanguage?: Prisma.SortOrder
layout?: Prisma.SortOrder
color?: Prisma.SortOrder
enabled?: Prisma.SortOrder
languages?: Prisma.SortOrder
links?: Prisma.SortOrder
logo?: Prisma.SortOrder
seoImage?: Prisma.SortOrder
tenant?: Prisma.TenantOrderByWithRelationInput
categories?: Prisma.KnowledgeBaseCategoryOrderByRelationAggregateInput
articles?: Prisma.KnowledgeBaseArticleOrderByRelationAggregateInput
views?: Prisma.KnowledgeBaseViewsOrderByRelationAggregateInput
}
export type KnowledgeBaseWhereUniqueInput = Prisma.AtLeast<{
id?: string
ownerKey_slug?: Prisma.KnowledgeBaseOwnerKeySlugCompoundUniqueInput
AND?: Prisma.KnowledgeBaseWhereInput | Prisma.KnowledgeBaseWhereInput[]
OR?: Prisma.KnowledgeBaseWhereInput[]
NOT?: Prisma.KnowledgeBaseWhereInput | Prisma.KnowledgeBaseWhereInput[]
createdAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
tenantId?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null
ownerKey?: Prisma.StringFilter<"KnowledgeBase"> | string
basePath?: Prisma.StringFilter<"KnowledgeBase"> | string
slug?: Prisma.StringFilter<"KnowledgeBase"> | string
title?: Prisma.StringFilter<"KnowledgeBase"> | string
description?: Prisma.StringFilter<"KnowledgeBase"> | string
defaultLanguage?: Prisma.StringFilter<"KnowledgeBase"> | string
layout?: Prisma.StringFilter<"KnowledgeBase"> | string
color?: Prisma.IntFilter<"KnowledgeBase"> | number
enabled?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
languages?: Prisma.StringFilter<"KnowledgeBase"> | string
links?: Prisma.StringFilter<"KnowledgeBase"> | string
logo?: Prisma.StringFilter<"KnowledgeBase"> | string
seoImage?: Prisma.StringFilter<"KnowledgeBase"> | string
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
categories?: Prisma.KnowledgeBaseCategoryListRelationFilter
articles?: Prisma.KnowledgeBaseArticleListRelationFilter
views?: Prisma.KnowledgeBaseViewsListRelationFilter
}, "id" | "ownerKey_slug">
export type KnowledgeBaseOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
ownerKey?: Prisma.SortOrder
basePath?: Prisma.SortOrder
slug?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
defaultLanguage?: Prisma.SortOrder
layout?: Prisma.SortOrder
color?: Prisma.SortOrder
enabled?: Prisma.SortOrder
languages?: Prisma.SortOrder
links?: Prisma.SortOrder
logo?: Prisma.SortOrder
seoImage?: Prisma.SortOrder
_count?: Prisma.KnowledgeBaseCountOrderByAggregateInput
_avg?: Prisma.KnowledgeBaseAvgOrderByAggregateInput
_max?: Prisma.KnowledgeBaseMaxOrderByAggregateInput
_min?: Prisma.KnowledgeBaseMinOrderByAggregateInput
_sum?: Prisma.KnowledgeBaseSumOrderByAggregateInput
}
export type KnowledgeBaseScalarWhereWithAggregatesInput = {
AND?: Prisma.KnowledgeBaseScalarWhereWithAggregatesInput | Prisma.KnowledgeBaseScalarWhereWithAggregatesInput[]
OR?: Prisma.KnowledgeBaseScalarWhereWithAggregatesInput[]
NOT?: Prisma.KnowledgeBaseScalarWhereWithAggregatesInput | Prisma.KnowledgeBaseScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeBase"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeBase"> | Date | string
tenantId?: Prisma.StringNullableWithAggregatesFilter<"KnowledgeBase"> | string | null
ownerKey?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
basePath?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
slug?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
title?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
description?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
defaultLanguage?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
layout?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
color?: Prisma.IntWithAggregatesFilter<"KnowledgeBase"> | number
enabled?: Prisma.BoolWithAggregatesFilter<"KnowledgeBase"> | boolean
languages?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
links?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
logo?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
seoImage?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
}
export type KnowledgeBaseCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
ownerKey?: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
tenant?: Prisma.TenantCreateNestedOneWithoutKnowledgeBasesInput
categories?: Prisma.KnowledgeBaseCategoryCreateNestedManyWithoutKnowledgeBaseInput
articles?: Prisma.KnowledgeBaseArticleCreateNestedManyWithoutKnowledgeBaseInput
views?: Prisma.KnowledgeBaseViewsCreateNestedManyWithoutKnowledgeBaseInput
}
export type KnowledgeBaseUncheckedCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId?: string | null
ownerKey?: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
categories?: Prisma.KnowledgeBaseCategoryUncheckedCreateNestedManyWithoutKnowledgeBaseInput
articles?: Prisma.KnowledgeBaseArticleUncheckedCreateNestedManyWithoutKnowledgeBaseInput
views?: Prisma.KnowledgeBaseViewsUncheckedCreateNestedManyWithoutKnowledgeBaseInput
}
export type KnowledgeBaseUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
ownerKey?: Prisma.StringFieldUpdateOperationsInput | string
basePath?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string
layout?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
languages?: Prisma.StringFieldUpdateOperationsInput | string
links?: Prisma.StringFieldUpdateOperationsInput | string
logo?: Prisma.StringFieldUpdateOperationsInput | string
seoImage?: Prisma.StringFieldUpdateOperationsInput | string
tenant?: Prisma.TenantUpdateOneWithoutKnowledgeBasesNestedInput
categories?: Prisma.KnowledgeBaseCategoryUpdateManyWithoutKnowledgeBaseNestedInput
articles?: Prisma.KnowledgeBaseArticleUpdateManyWithoutKnowledgeBaseNestedInput
views?: Prisma.KnowledgeBaseViewsUpdateManyWithoutKnowledgeBaseNestedInput
}
export type KnowledgeBaseUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ownerKey?: Prisma.StringFieldUpdateOperationsInput | string
basePath?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string
layout?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
languages?: Prisma.StringFieldUpdateOperationsInput | string
links?: Prisma.StringFieldUpdateOperationsInput | string
logo?: Prisma.StringFieldUpdateOperationsInput | string
seoImage?: Prisma.StringFieldUpdateOperationsInput | string
categories?: Prisma.KnowledgeBaseCategoryUncheckedUpdateManyWithoutKnowledgeBaseNestedInput
articles?: Prisma.KnowledgeBaseArticleUncheckedUpdateManyWithoutKnowledgeBaseNestedInput
views?: Prisma.KnowledgeBaseViewsUncheckedUpdateManyWithoutKnowledgeBaseNestedInput
}
export type KnowledgeBaseCreateManyInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId?: string | null
ownerKey?: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
}
export type KnowledgeBaseUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
ownerKey?: Prisma.StringFieldUpdateOperationsInput | string
basePath?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string
layout?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
languages?: Prisma.StringFieldUpdateOperationsInput | string
links?: Prisma.StringFieldUpdateOperationsInput | string
logo?: Prisma.StringFieldUpdateOperationsInput | string
seoImage?: Prisma.StringFieldUpdateOperationsInput | string
}
export type KnowledgeBaseUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ownerKey?: Prisma.StringFieldUpdateOperationsInput | string
basePath?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string
layout?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
languages?: Prisma.StringFieldUpdateOperationsInput | string
links?: Prisma.StringFieldUpdateOperationsInput | string
logo?: Prisma.StringFieldUpdateOperationsInput | string
seoImage?: Prisma.StringFieldUpdateOperationsInput | string
}
export type KnowledgeBaseListRelationFilter = {
every?: Prisma.KnowledgeBaseWhereInput
some?: Prisma.KnowledgeBaseWhereInput
none?: Prisma.KnowledgeBaseWhereInput
}
export type KnowledgeBaseOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type KnowledgeBaseOwnerKeySlugCompoundUniqueInput = {
ownerKey: string
slug: string
}
export type KnowledgeBaseCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
ownerKey?: Prisma.SortOrder
basePath?: Prisma.SortOrder
slug?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
defaultLanguage?: Prisma.SortOrder
layout?: Prisma.SortOrder
color?: Prisma.SortOrder
enabled?: Prisma.SortOrder
languages?: Prisma.SortOrder
links?: Prisma.SortOrder
logo?: Prisma.SortOrder
seoImage?: Prisma.SortOrder
}
export type KnowledgeBaseAvgOrderByAggregateInput = {
color?: Prisma.SortOrder
}
export type KnowledgeBaseMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
ownerKey?: Prisma.SortOrder
basePath?: Prisma.SortOrder
slug?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
defaultLanguage?: Prisma.SortOrder
layout?: Prisma.SortOrder
color?: Prisma.SortOrder
enabled?: Prisma.SortOrder
languages?: Prisma.SortOrder
links?: Prisma.SortOrder
logo?: Prisma.SortOrder
seoImage?: Prisma.SortOrder
}
export type KnowledgeBaseMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
ownerKey?: Prisma.SortOrder
basePath?: Prisma.SortOrder
slug?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
defaultLanguage?: Prisma.SortOrder
layout?: Prisma.SortOrder
color?: Prisma.SortOrder
enabled?: Prisma.SortOrder
languages?: Prisma.SortOrder
links?: Prisma.SortOrder
logo?: Prisma.SortOrder
seoImage?: Prisma.SortOrder
}
export type KnowledgeBaseSumOrderByAggregateInput = {
color?: Prisma.SortOrder
}
export type KnowledgeBaseScalarRelationFilter = {
is?: Prisma.KnowledgeBaseWhereInput
isNot?: Prisma.KnowledgeBaseWhereInput
}
export type KnowledgeBaseCreateNestedManyWithoutTenantInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutTenantInput, Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput> | Prisma.KnowledgeBaseCreateWithoutTenantInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput | Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput[]
createMany?: Prisma.KnowledgeBaseCreateManyTenantInputEnvelope
connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
}
export type KnowledgeBaseUncheckedCreateNestedManyWithoutTenantInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutTenantInput, Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput> | Prisma.KnowledgeBaseCreateWithoutTenantInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput | Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput[]
createMany?: Prisma.KnowledgeBaseCreateManyTenantInputEnvelope
connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
}
export type KnowledgeBaseUpdateManyWithoutTenantNestedInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutTenantInput, Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput> | Prisma.KnowledgeBaseCreateWithoutTenantInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput | Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput[]
upsert?: Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutTenantInput | Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutTenantInput[]
createMany?: Prisma.KnowledgeBaseCreateManyTenantInputEnvelope
set?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
disconnect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
delete?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
update?: Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutTenantInput | Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutTenantInput[]
updateMany?: Prisma.KnowledgeBaseUpdateManyWithWhereWithoutTenantInput | Prisma.KnowledgeBaseUpdateManyWithWhereWithoutTenantInput[]
deleteMany?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[]
}
export type KnowledgeBaseUncheckedUpdateManyWithoutTenantNestedInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutTenantInput, Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput> | Prisma.KnowledgeBaseCreateWithoutTenantInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput | Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput[]
upsert?: Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutTenantInput | Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutTenantInput[]
createMany?: Prisma.KnowledgeBaseCreateManyTenantInputEnvelope
set?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
disconnect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
delete?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
update?: Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutTenantInput | Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutTenantInput[]
updateMany?: Prisma.KnowledgeBaseUpdateManyWithWhereWithoutTenantInput | Prisma.KnowledgeBaseUpdateManyWithWhereWithoutTenantInput[]
deleteMany?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[]
}
export type KnowledgeBaseCreateNestedOneWithoutCategoriesInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutCategoriesInput, Prisma.KnowledgeBaseUncheckedCreateWithoutCategoriesInput>
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutCategoriesInput
connect?: Prisma.KnowledgeBaseWhereUniqueInput
}
export type KnowledgeBaseUpdateOneRequiredWithoutCategoriesNestedInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutCategoriesInput, Prisma.KnowledgeBaseUncheckedCreateWithoutCategoriesInput>
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutCategoriesInput
upsert?: Prisma.KnowledgeBaseUpsertWithoutCategoriesInput
connect?: Prisma.KnowledgeBaseWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseUpdateToOneWithWhereWithoutCategoriesInput, Prisma.KnowledgeBaseUpdateWithoutCategoriesInput>, Prisma.KnowledgeBaseUncheckedUpdateWithoutCategoriesInput>
}
export type KnowledgeBaseCreateNestedOneWithoutArticlesInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutArticlesInput, Prisma.KnowledgeBaseUncheckedCreateWithoutArticlesInput>
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutArticlesInput
connect?: Prisma.KnowledgeBaseWhereUniqueInput
}
export type KnowledgeBaseUpdateOneRequiredWithoutArticlesNestedInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutArticlesInput, Prisma.KnowledgeBaseUncheckedCreateWithoutArticlesInput>
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutArticlesInput
upsert?: Prisma.KnowledgeBaseUpsertWithoutArticlesInput
connect?: Prisma.KnowledgeBaseWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseUpdateToOneWithWhereWithoutArticlesInput, Prisma.KnowledgeBaseUpdateWithoutArticlesInput>, Prisma.KnowledgeBaseUncheckedUpdateWithoutArticlesInput>
}
export type KnowledgeBaseCreateNestedOneWithoutViewsInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutViewsInput, Prisma.KnowledgeBaseUncheckedCreateWithoutViewsInput>
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutViewsInput
connect?: Prisma.KnowledgeBaseWhereUniqueInput
}
export type KnowledgeBaseUpdateOneRequiredWithoutViewsNestedInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutViewsInput, Prisma.KnowledgeBaseUncheckedCreateWithoutViewsInput>
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutViewsInput
upsert?: Prisma.KnowledgeBaseUpsertWithoutViewsInput
connect?: Prisma.KnowledgeBaseWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseUpdateToOneWithWhereWithoutViewsInput, Prisma.KnowledgeBaseUpdateWithoutViewsInput>, Prisma.KnowledgeBaseUncheckedUpdateWithoutViewsInput>
}
export type KnowledgeBaseCreateWithoutTenantInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
ownerKey?: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
categories?: Prisma.KnowledgeBaseCategoryCreateNestedManyWithoutKnowledgeBaseInput
articles?: Prisma.KnowledgeBaseArticleCreateNestedManyWithoutKnowledgeBaseInput
views?: Prisma.KnowledgeBaseViewsCreateNestedManyWithoutKnowledgeBaseInput
}
export type KnowledgeBaseUncheckedCreateWithoutTenantInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
ownerKey?: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
categories?: Prisma.KnowledgeBaseCategoryUncheckedCreateNestedManyWithoutKnowledgeBaseInput
articles?: Prisma.KnowledgeBaseArticleUncheckedCreateNestedManyWithoutKnowledgeBaseInput
views?: Prisma.KnowledgeBaseViewsUncheckedCreateNestedManyWithoutKnowledgeBaseInput
}
export type KnowledgeBaseCreateOrConnectWithoutTenantInput = {
where: Prisma.KnowledgeBaseWhereUniqueInput
create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutTenantInput, Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput>
}
export type KnowledgeBaseCreateManyTenantInputEnvelope = {
data: Prisma.KnowledgeBaseCreateManyTenantInput | Prisma.KnowledgeBaseCreateManyTenantInput[]
skipDuplicates?: boolean
}
export type KnowledgeBaseUpsertWithWhereUniqueWithoutTenantInput = {
where: Prisma.KnowledgeBaseWhereUniqueInput
update: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutTenantInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutTenantInput>
create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutTenantInput, Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput>
}
export type KnowledgeBaseUpdateWithWhereUniqueWithoutTenantInput = {
where: Prisma.KnowledgeBaseWhereUniqueInput
data: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutTenantInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutTenantInput>
}
export type KnowledgeBaseUpdateManyWithWhereWithoutTenantInput = {
where: Prisma.KnowledgeBaseScalarWhereInput
data: Prisma.XOR<Prisma.KnowledgeBaseUpdateManyMutationInput, Prisma.KnowledgeBaseUncheckedUpdateManyWithoutTenantInput>
}
export type KnowledgeBaseScalarWhereInput = {
AND?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[]
OR?: Prisma.KnowledgeBaseScalarWhereInput[]
NOT?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[]
id?: Prisma.StringFilter<"KnowledgeBase"> | string
createdAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
tenantId?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null
ownerKey?: Prisma.StringFilter<"KnowledgeBase"> | string
basePath?: Prisma.StringFilter<"KnowledgeBase"> | string
slug?: Prisma.StringFilter<"KnowledgeBase"> | string
title?: Prisma.StringFilter<"KnowledgeBase"> | string
description?: Prisma.StringFilter<"KnowledgeBase"> | string
defaultLanguage?: Prisma.StringFilter<"KnowledgeBase"> | string
layout?: Prisma.StringFilter<"KnowledgeBase"> | string
color?: Prisma.IntFilter<"KnowledgeBase"> | number
enabled?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
languages?: Prisma.StringFilter<"KnowledgeBase"> | string
links?: Prisma.StringFilter<"KnowledgeBase"> | string
logo?: Prisma.StringFilter<"KnowledgeBase"> | string
seoImage?: Prisma.StringFilter<"KnowledgeBase"> | string
}
export type KnowledgeBaseCreateWithoutCategoriesInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
ownerKey?: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
tenant?: Prisma.TenantCreateNestedOneWithoutKnowledgeBasesInput
articles?: Prisma.KnowledgeBaseArticleCreateNestedManyWithoutKnowledgeBaseInput
views?: Prisma.KnowledgeBaseViewsCreateNestedManyWithoutKnowledgeBaseInput
}
export type KnowledgeBaseUncheckedCreateWithoutCategoriesInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId?: string | null
ownerKey?: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
articles?: Prisma.KnowledgeBaseArticleUncheckedCreateNestedManyWithoutKnowledgeBaseInput
views?: Prisma.KnowledgeBaseViewsUncheckedCreateNestedManyWithoutKnowledgeBaseInput
}
export type KnowledgeBaseCreateOrConnectWithoutCategoriesInput = {
where: Prisma.KnowledgeBaseWhereUniqueInput
create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutCategoriesInput, Prisma.KnowledgeBaseUncheckedCreateWithoutCategoriesInput>
}
export type KnowledgeBaseUpsertWithoutCategoriesInput = {
update: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutCategoriesInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutCategoriesInput>
create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutCategoriesInput, Prisma.KnowledgeBaseUncheckedCreateWithoutCategoriesInput>
where?: Prisma.KnowledgeBaseWhereInput
}
export type KnowledgeBaseUpdateToOneWithWhereWithoutCategoriesInput = {
where?: Prisma.KnowledgeBaseWhereInput
data: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutCategoriesInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutCategoriesInput>
}
export type KnowledgeBaseUpdateWithoutCategoriesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
ownerKey?: Prisma.StringFieldUpdateOperationsInput | string
basePath?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string
layout?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
languages?: Prisma.StringFieldUpdateOperationsInput | string
links?: Prisma.StringFieldUpdateOperationsInput | string
logo?: Prisma.StringFieldUpdateOperationsInput | string
seoImage?: Prisma.StringFieldUpdateOperationsInput | string
tenant?: Prisma.TenantUpdateOneWithoutKnowledgeBasesNestedInput
articles?: Prisma.KnowledgeBaseArticleUpdateManyWithoutKnowledgeBaseNestedInput
views?: Prisma.KnowledgeBaseViewsUpdateManyWithoutKnowledgeBaseNestedInput
}
export type KnowledgeBaseUncheckedUpdateWithoutCategoriesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ownerKey?: Prisma.StringFieldUpdateOperationsInput | string
basePath?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string
layout?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
languages?: Prisma.StringFieldUpdateOperationsInput | string
links?: Prisma.StringFieldUpdateOperationsInput | string
logo?: Prisma.StringFieldUpdateOperationsInput | string
seoImage?: Prisma.StringFieldUpdateOperationsInput | string
articles?: Prisma.KnowledgeBaseArticleUncheckedUpdateManyWithoutKnowledgeBaseNestedInput
views?: Prisma.KnowledgeBaseViewsUncheckedUpdateManyWithoutKnowledgeBaseNestedInput
}
export type KnowledgeBaseCreateWithoutArticlesInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
ownerKey?: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
tenant?: Prisma.TenantCreateNestedOneWithoutKnowledgeBasesInput
categories?: Prisma.KnowledgeBaseCategoryCreateNestedManyWithoutKnowledgeBaseInput
views?: Prisma.KnowledgeBaseViewsCreateNestedManyWithoutKnowledgeBaseInput
}
export type KnowledgeBaseUncheckedCreateWithoutArticlesInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId?: string | null
ownerKey?: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
categories?: Prisma.KnowledgeBaseCategoryUncheckedCreateNestedManyWithoutKnowledgeBaseInput
views?: Prisma.KnowledgeBaseViewsUncheckedCreateNestedManyWithoutKnowledgeBaseInput
}
export type KnowledgeBaseCreateOrConnectWithoutArticlesInput = {
where: Prisma.KnowledgeBaseWhereUniqueInput
create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutArticlesInput, Prisma.KnowledgeBaseUncheckedCreateWithoutArticlesInput>
}
export type KnowledgeBaseUpsertWithoutArticlesInput = {
update: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutArticlesInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutArticlesInput>
create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutArticlesInput, Prisma.KnowledgeBaseUncheckedCreateWithoutArticlesInput>
where?: Prisma.KnowledgeBaseWhereInput
}
export type KnowledgeBaseUpdateToOneWithWhereWithoutArticlesInput = {
where?: Prisma.KnowledgeBaseWhereInput
data: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutArticlesInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutArticlesInput>
}
export type KnowledgeBaseUpdateWithoutArticlesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
ownerKey?: Prisma.StringFieldUpdateOperationsInput | string
basePath?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string
layout?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
languages?: Prisma.StringFieldUpdateOperationsInput | string
links?: Prisma.StringFieldUpdateOperationsInput | string
logo?: Prisma.StringFieldUpdateOperationsInput | string
seoImage?: Prisma.StringFieldUpdateOperationsInput | string
tenant?: Prisma.TenantUpdateOneWithoutKnowledgeBasesNestedInput
categories?: Prisma.KnowledgeBaseCategoryUpdateManyWithoutKnowledgeBaseNestedInput
views?: Prisma.KnowledgeBaseViewsUpdateManyWithoutKnowledgeBaseNestedInput
}
export type KnowledgeBaseUncheckedUpdateWithoutArticlesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ownerKey?: Prisma.StringFieldUpdateOperationsInput | string
basePath?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string
layout?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
languages?: Prisma.StringFieldUpdateOperationsInput | string
links?: Prisma.StringFieldUpdateOperationsInput | string
logo?: Prisma.StringFieldUpdateOperationsInput | string
seoImage?: Prisma.StringFieldUpdateOperationsInput | string
categories?: Prisma.KnowledgeBaseCategoryUncheckedUpdateManyWithoutKnowledgeBaseNestedInput
views?: Prisma.KnowledgeBaseViewsUncheckedUpdateManyWithoutKnowledgeBaseNestedInput
}
export type KnowledgeBaseCreateWithoutViewsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
ownerKey?: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
tenant?: Prisma.TenantCreateNestedOneWithoutKnowledgeBasesInput
categories?: Prisma.KnowledgeBaseCategoryCreateNestedManyWithoutKnowledgeBaseInput
articles?: Prisma.KnowledgeBaseArticleCreateNestedManyWithoutKnowledgeBaseInput
}
export type KnowledgeBaseUncheckedCreateWithoutViewsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId?: string | null
ownerKey?: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
categories?: Prisma.KnowledgeBaseCategoryUncheckedCreateNestedManyWithoutKnowledgeBaseInput
articles?: Prisma.KnowledgeBaseArticleUncheckedCreateNestedManyWithoutKnowledgeBaseInput
}
export type KnowledgeBaseCreateOrConnectWithoutViewsInput = {
where: Prisma.KnowledgeBaseWhereUniqueInput
create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutViewsInput, Prisma.KnowledgeBaseUncheckedCreateWithoutViewsInput>
}
export type KnowledgeBaseUpsertWithoutViewsInput = {
update: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutViewsInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutViewsInput>
create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutViewsInput, Prisma.KnowledgeBaseUncheckedCreateWithoutViewsInput>
where?: Prisma.KnowledgeBaseWhereInput
}
export type KnowledgeBaseUpdateToOneWithWhereWithoutViewsInput = {
where?: Prisma.KnowledgeBaseWhereInput
data: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutViewsInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutViewsInput>
}
export type KnowledgeBaseUpdateWithoutViewsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
ownerKey?: Prisma.StringFieldUpdateOperationsInput | string
basePath?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string
layout?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
languages?: Prisma.StringFieldUpdateOperationsInput | string
links?: Prisma.StringFieldUpdateOperationsInput | string
logo?: Prisma.StringFieldUpdateOperationsInput | string
seoImage?: Prisma.StringFieldUpdateOperationsInput | string
tenant?: Prisma.TenantUpdateOneWithoutKnowledgeBasesNestedInput
categories?: Prisma.KnowledgeBaseCategoryUpdateManyWithoutKnowledgeBaseNestedInput
articles?: Prisma.KnowledgeBaseArticleUpdateManyWithoutKnowledgeBaseNestedInput
}
export type KnowledgeBaseUncheckedUpdateWithoutViewsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ownerKey?: Prisma.StringFieldUpdateOperationsInput | string
basePath?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string
layout?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
languages?: Prisma.StringFieldUpdateOperationsInput | string
links?: Prisma.StringFieldUpdateOperationsInput | string
logo?: Prisma.StringFieldUpdateOperationsInput | string
seoImage?: Prisma.StringFieldUpdateOperationsInput | string
categories?: Prisma.KnowledgeBaseCategoryUncheckedUpdateManyWithoutKnowledgeBaseNestedInput
articles?: Prisma.KnowledgeBaseArticleUncheckedUpdateManyWithoutKnowledgeBaseNestedInput
}
export type KnowledgeBaseCreateManyTenantInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
ownerKey?: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
}
export type KnowledgeBaseUpdateWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
ownerKey?: Prisma.StringFieldUpdateOperationsInput | string
basePath?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string
layout?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
languages?: Prisma.StringFieldUpdateOperationsInput | string
links?: Prisma.StringFieldUpdateOperationsInput | string
logo?: Prisma.StringFieldUpdateOperationsInput | string
seoImage?: Prisma.StringFieldUpdateOperationsInput | string
categories?: Prisma.KnowledgeBaseCategoryUpdateManyWithoutKnowledgeBaseNestedInput
articles?: Prisma.KnowledgeBaseArticleUpdateManyWithoutKnowledgeBaseNestedInput
views?: Prisma.KnowledgeBaseViewsUpdateManyWithoutKnowledgeBaseNestedInput
}
export type KnowledgeBaseUncheckedUpdateWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
ownerKey?: Prisma.StringFieldUpdateOperationsInput | string
basePath?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string
layout?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
languages?: Prisma.StringFieldUpdateOperationsInput | string
links?: Prisma.StringFieldUpdateOperationsInput | string
logo?: Prisma.StringFieldUpdateOperationsInput | string
seoImage?: Prisma.StringFieldUpdateOperationsInput | string
categories?: Prisma.KnowledgeBaseCategoryUncheckedUpdateManyWithoutKnowledgeBaseNestedInput
articles?: Prisma.KnowledgeBaseArticleUncheckedUpdateManyWithoutKnowledgeBaseNestedInput
views?: Prisma.KnowledgeBaseViewsUncheckedUpdateManyWithoutKnowledgeBaseNestedInput
}
export type KnowledgeBaseUncheckedUpdateManyWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
ownerKey?: Prisma.StringFieldUpdateOperationsInput | string
basePath?: Prisma.StringFieldUpdateOperationsInput | string
slug?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string
layout?: Prisma.StringFieldUpdateOperationsInput | string
color?: Prisma.IntFieldUpdateOperationsInput | number
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
languages?: Prisma.StringFieldUpdateOperationsInput | string
links?: Prisma.StringFieldUpdateOperationsInput | string
logo?: Prisma.StringFieldUpdateOperationsInput | string
seoImage?: Prisma.StringFieldUpdateOperationsInput | string
}
/**
* Count Type KnowledgeBaseCountOutputType
*/
export type KnowledgeBaseCountOutputType = {
categories: number
articles: number
views: number
}
export type KnowledgeBaseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
categories?: boolean | KnowledgeBaseCountOutputTypeCountCategoriesArgs
articles?: boolean | KnowledgeBaseCountOutputTypeCountArticlesArgs
views?: boolean | KnowledgeBaseCountOutputTypeCountViewsArgs
}
/**
* KnowledgeBaseCountOutputType without action
*/
export type KnowledgeBaseCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseCountOutputType
*/
select?: Prisma.KnowledgeBaseCountOutputTypeSelect<ExtArgs> | null
}
/**
* KnowledgeBaseCountOutputType without action
*/
export type KnowledgeBaseCountOutputTypeCountCategoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.KnowledgeBaseCategoryWhereInput
}
/**
* KnowledgeBaseCountOutputType without action
*/
export type KnowledgeBaseCountOutputTypeCountArticlesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.KnowledgeBaseArticleWhereInput
}
/**
* KnowledgeBaseCountOutputType without action
*/
export type KnowledgeBaseCountOutputTypeCountViewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.KnowledgeBaseViewsWhereInput
}
export type KnowledgeBaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
ownerKey?: boolean
basePath?: boolean
slug?: boolean
title?: boolean
description?: boolean
defaultLanguage?: boolean
layout?: boolean
color?: boolean
enabled?: boolean
languages?: boolean
links?: boolean
logo?: boolean
seoImage?: boolean
tenant?: boolean | Prisma.KnowledgeBase$tenantArgs<ExtArgs>
categories?: boolean | Prisma.KnowledgeBase$categoriesArgs<ExtArgs>
articles?: boolean | Prisma.KnowledgeBase$articlesArgs<ExtArgs>
views?: boolean | Prisma.KnowledgeBase$viewsArgs<ExtArgs>
_count?: boolean | Prisma.KnowledgeBaseCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["knowledgeBase"]>
export type KnowledgeBaseSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
ownerKey?: boolean
basePath?: boolean
slug?: boolean
title?: boolean
description?: boolean
defaultLanguage?: boolean
layout?: boolean
color?: boolean
enabled?: boolean
languages?: boolean
links?: boolean
logo?: boolean
seoImage?: boolean
tenant?: boolean | Prisma.KnowledgeBase$tenantArgs<ExtArgs>
}, ExtArgs["result"]["knowledgeBase"]>
export type KnowledgeBaseSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
ownerKey?: boolean
basePath?: boolean
slug?: boolean
title?: boolean
description?: boolean
defaultLanguage?: boolean
layout?: boolean
color?: boolean
enabled?: boolean
languages?: boolean
links?: boolean
logo?: boolean
seoImage?: boolean
tenant?: boolean | Prisma.KnowledgeBase$tenantArgs<ExtArgs>
}, ExtArgs["result"]["knowledgeBase"]>
export type KnowledgeBaseSelectScalar = {
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
ownerKey?: boolean
basePath?: boolean
slug?: boolean
title?: boolean
description?: boolean
defaultLanguage?: boolean
layout?: boolean
color?: boolean
enabled?: boolean
languages?: boolean
links?: boolean
logo?: boolean
seoImage?: boolean
}
export type KnowledgeBaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "ownerKey" | "basePath" | "slug" | "title" | "description" | "defaultLanguage" | "layout" | "color" | "enabled" | "languages" | "links" | "logo" | "seoImage", ExtArgs["result"]["knowledgeBase"]>
export type KnowledgeBaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.KnowledgeBase$tenantArgs<ExtArgs>
categories?: boolean | Prisma.KnowledgeBase$categoriesArgs<ExtArgs>
articles?: boolean | Prisma.KnowledgeBase$articlesArgs<ExtArgs>
views?: boolean | Prisma.KnowledgeBase$viewsArgs<ExtArgs>
_count?: boolean | Prisma.KnowledgeBaseCountOutputTypeDefaultArgs<ExtArgs>
}
export type KnowledgeBaseIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.KnowledgeBase$tenantArgs<ExtArgs>
}
export type KnowledgeBaseIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.KnowledgeBase$tenantArgs<ExtArgs>
}
export type $KnowledgeBasePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "KnowledgeBase"
objects: {
tenant: Prisma.$TenantPayload<ExtArgs> | null
categories: Prisma.$KnowledgeBaseCategoryPayload<ExtArgs>[]
articles: Prisma.$KnowledgeBaseArticlePayload<ExtArgs>[]
views: Prisma.$KnowledgeBaseViewsPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
updatedAt: Date
tenantId: string | null
ownerKey: string
basePath: string
slug: string
title: string
description: string
defaultLanguage: string
layout: string
color: number
enabled: boolean
languages: string
links: string
logo: string
seoImage: string
}, ExtArgs["result"]["knowledgeBase"]>
composites: {}
}
export type KnowledgeBaseGetPayload<S extends boolean | null | undefined | KnowledgeBaseDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload, S>
export type KnowledgeBaseCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<KnowledgeBaseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: KnowledgeBaseCountAggregateInputType | true
}
export interface KnowledgeBaseDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['KnowledgeBase'], meta: { name: 'KnowledgeBase' } }
/**
* Find zero or one KnowledgeBase that matches the filter.
* @param {KnowledgeBaseFindUniqueArgs} args - Arguments to find a KnowledgeBase
* @example
* // Get one KnowledgeBase
* const knowledgeBase = await prisma.knowledgeBase.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends KnowledgeBaseFindUniqueArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseFindUniqueArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one KnowledgeBase that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {KnowledgeBaseFindUniqueOrThrowArgs} args - Arguments to find a KnowledgeBase
* @example
* // Get one KnowledgeBase
* const knowledgeBase = await prisma.knowledgeBase.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends KnowledgeBaseFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first KnowledgeBase 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 {KnowledgeBaseFindFirstArgs} args - Arguments to find a KnowledgeBase
* @example
* // Get one KnowledgeBase
* const knowledgeBase = await prisma.knowledgeBase.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends KnowledgeBaseFindFirstArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseFindFirstArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first KnowledgeBase 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 {KnowledgeBaseFindFirstOrThrowArgs} args - Arguments to find a KnowledgeBase
* @example
* // Get one KnowledgeBase
* const knowledgeBase = await prisma.knowledgeBase.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends KnowledgeBaseFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more KnowledgeBases 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 {KnowledgeBaseFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all KnowledgeBases
* const knowledgeBases = await prisma.knowledgeBase.findMany()
*
* // Get first 10 KnowledgeBases
* const knowledgeBases = await prisma.knowledgeBase.findMany({ take: 10 })
*
* // Only select the `id`
* const knowledgeBaseWithIdOnly = await prisma.knowledgeBase.findMany({ select: { id: true } })
*
*/
findMany<T extends KnowledgeBaseFindManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a KnowledgeBase.
* @param {KnowledgeBaseCreateArgs} args - Arguments to create a KnowledgeBase.
* @example
* // Create one KnowledgeBase
* const KnowledgeBase = await prisma.knowledgeBase.create({
* data: {
* // ... data to create a KnowledgeBase
* }
* })
*
*/
create<T extends KnowledgeBaseCreateArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseCreateArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many KnowledgeBases.
* @param {KnowledgeBaseCreateManyArgs} args - Arguments to create many KnowledgeBases.
* @example
* // Create many KnowledgeBases
* const knowledgeBase = await prisma.knowledgeBase.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends KnowledgeBaseCreateManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many KnowledgeBases and returns the data saved in the database.
* @param {KnowledgeBaseCreateManyAndReturnArgs} args - Arguments to create many KnowledgeBases.
* @example
* // Create many KnowledgeBases
* const knowledgeBase = await prisma.knowledgeBase.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many KnowledgeBases and only return the `id`
* const knowledgeBaseWithIdOnly = await prisma.knowledgeBase.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends KnowledgeBaseCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a KnowledgeBase.
* @param {KnowledgeBaseDeleteArgs} args - Arguments to delete one KnowledgeBase.
* @example
* // Delete one KnowledgeBase
* const KnowledgeBase = await prisma.knowledgeBase.delete({
* where: {
* // ... filter to delete one KnowledgeBase
* }
* })
*
*/
delete<T extends KnowledgeBaseDeleteArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseDeleteArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one KnowledgeBase.
* @param {KnowledgeBaseUpdateArgs} args - Arguments to update one KnowledgeBase.
* @example
* // Update one KnowledgeBase
* const knowledgeBase = await prisma.knowledgeBase.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends KnowledgeBaseUpdateArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseUpdateArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more KnowledgeBases.
* @param {KnowledgeBaseDeleteManyArgs} args - Arguments to filter KnowledgeBases to delete.
* @example
* // Delete a few KnowledgeBases
* const { count } = await prisma.knowledgeBase.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends KnowledgeBaseDeleteManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more KnowledgeBases.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {KnowledgeBaseUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many KnowledgeBases
* const knowledgeBase = await prisma.knowledgeBase.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends KnowledgeBaseUpdateManyArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more KnowledgeBases and returns the data updated in the database.
* @param {KnowledgeBaseUpdateManyAndReturnArgs} args - Arguments to update many KnowledgeBases.
* @example
* // Update many KnowledgeBases
* const knowledgeBase = await prisma.knowledgeBase.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more KnowledgeBases and only return the `id`
* const knowledgeBaseWithIdOnly = await prisma.knowledgeBase.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends KnowledgeBaseUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one KnowledgeBase.
* @param {KnowledgeBaseUpsertArgs} args - Arguments to update or create a KnowledgeBase.
* @example
* // Update or create a KnowledgeBase
* const knowledgeBase = await prisma.knowledgeBase.upsert({
* create: {
* // ... data to create a KnowledgeBase
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the KnowledgeBase we want to update
* }
* })
*/
upsert<T extends KnowledgeBaseUpsertArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseUpsertArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of KnowledgeBases.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {KnowledgeBaseCountArgs} args - Arguments to filter KnowledgeBases to count.
* @example
* // Count the number of KnowledgeBases
* const count = await prisma.knowledgeBase.count({
* where: {
* // ... the filter for the KnowledgeBases we want to count
* }
* })
**/
count<T extends KnowledgeBaseCountArgs>(
args?: Prisma.Subset<T, KnowledgeBaseCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], KnowledgeBaseCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a KnowledgeBase.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {KnowledgeBaseAggregateArgs} 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 KnowledgeBaseAggregateArgs>(args: Prisma.Subset<T, KnowledgeBaseAggregateArgs>): Prisma.PrismaPromise<GetKnowledgeBaseAggregateType<T>>
/**
* Group by KnowledgeBase.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {KnowledgeBaseGroupByArgs} 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 KnowledgeBaseGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: KnowledgeBaseGroupByArgs['orderBy'] }
: { orderBy?: KnowledgeBaseGroupByArgs['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, KnowledgeBaseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetKnowledgeBaseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the KnowledgeBase model
*/
readonly fields: KnowledgeBaseFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for KnowledgeBase.
* 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__KnowledgeBaseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
tenant<T extends Prisma.KnowledgeBase$tenantArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$tenantArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
categories<T extends Prisma.KnowledgeBase$categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
articles<T extends Prisma.KnowledgeBase$articlesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$articlesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
views<T extends Prisma.KnowledgeBase$viewsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$viewsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseViewsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the KnowledgeBase model
*/
export interface KnowledgeBaseFieldRefs {
readonly id: Prisma.FieldRef<"KnowledgeBase", 'String'>
readonly createdAt: Prisma.FieldRef<"KnowledgeBase", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"KnowledgeBase", 'DateTime'>
readonly tenantId: Prisma.FieldRef<"KnowledgeBase", 'String'>
readonly ownerKey: Prisma.FieldRef<"KnowledgeBase", 'String'>
readonly basePath: Prisma.FieldRef<"KnowledgeBase", 'String'>
readonly slug: Prisma.FieldRef<"KnowledgeBase", 'String'>
readonly title: Prisma.FieldRef<"KnowledgeBase", 'String'>
readonly description: Prisma.FieldRef<"KnowledgeBase", 'String'>
readonly defaultLanguage: Prisma.FieldRef<"KnowledgeBase", 'String'>
readonly layout: Prisma.FieldRef<"KnowledgeBase", 'String'>
readonly color: Prisma.FieldRef<"KnowledgeBase", 'Int'>
readonly enabled: Prisma.FieldRef<"KnowledgeBase", 'Boolean'>
readonly languages: Prisma.FieldRef<"KnowledgeBase", 'String'>
readonly links: Prisma.FieldRef<"KnowledgeBase", 'String'>
readonly logo: Prisma.FieldRef<"KnowledgeBase", 'String'>
readonly seoImage: Prisma.FieldRef<"KnowledgeBase", 'String'>
}
// Custom InputTypes
/**
* KnowledgeBase findUnique
*/
export type KnowledgeBaseFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBase
*/
select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBase
*/
omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
/**
* Filter, which KnowledgeBase to fetch.
*/
where: Prisma.KnowledgeBaseWhereUniqueInput
}
/**
* KnowledgeBase findUniqueOrThrow
*/
export type KnowledgeBaseFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBase
*/
select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBase
*/
omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
/**
* Filter, which KnowledgeBase to fetch.
*/
where: Prisma.KnowledgeBaseWhereUniqueInput
}
/**
* KnowledgeBase findFirst
*/
export type KnowledgeBaseFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBase
*/
select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBase
*/
omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
/**
* Filter, which KnowledgeBase to fetch.
*/
where?: Prisma.KnowledgeBaseWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of KnowledgeBases to fetch.
*/
orderBy?: Prisma.KnowledgeBaseOrderByWithRelationInput | Prisma.KnowledgeBaseOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for KnowledgeBases.
*/
cursor?: Prisma.KnowledgeBaseWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` KnowledgeBases 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` KnowledgeBases.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of KnowledgeBases.
*/
distinct?: Prisma.KnowledgeBaseScalarFieldEnum | Prisma.KnowledgeBaseScalarFieldEnum[]
}
/**
* KnowledgeBase findFirstOrThrow
*/
export type KnowledgeBaseFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBase
*/
select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBase
*/
omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
/**
* Filter, which KnowledgeBase to fetch.
*/
where?: Prisma.KnowledgeBaseWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of KnowledgeBases to fetch.
*/
orderBy?: Prisma.KnowledgeBaseOrderByWithRelationInput | Prisma.KnowledgeBaseOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for KnowledgeBases.
*/
cursor?: Prisma.KnowledgeBaseWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` KnowledgeBases 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` KnowledgeBases.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of KnowledgeBases.
*/
distinct?: Prisma.KnowledgeBaseScalarFieldEnum | Prisma.KnowledgeBaseScalarFieldEnum[]
}
/**
* KnowledgeBase findMany
*/
export type KnowledgeBaseFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBase
*/
select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBase
*/
omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
/**
* Filter, which KnowledgeBases to fetch.
*/
where?: Prisma.KnowledgeBaseWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of KnowledgeBases to fetch.
*/
orderBy?: Prisma.KnowledgeBaseOrderByWithRelationInput | Prisma.KnowledgeBaseOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing KnowledgeBases.
*/
cursor?: Prisma.KnowledgeBaseWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` KnowledgeBases 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` KnowledgeBases.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of KnowledgeBases.
*/
distinct?: Prisma.KnowledgeBaseScalarFieldEnum | Prisma.KnowledgeBaseScalarFieldEnum[]
}
/**
* KnowledgeBase create
*/
export type KnowledgeBaseCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBase
*/
select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBase
*/
omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
/**
* The data needed to create a KnowledgeBase.
*/
data: Prisma.XOR<Prisma.KnowledgeBaseCreateInput, Prisma.KnowledgeBaseUncheckedCreateInput>
}
/**
* KnowledgeBase createMany
*/
export type KnowledgeBaseCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many KnowledgeBases.
*/
data: Prisma.KnowledgeBaseCreateManyInput | Prisma.KnowledgeBaseCreateManyInput[]
skipDuplicates?: boolean
}
/**
* KnowledgeBase createManyAndReturn
*/
export type KnowledgeBaseCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBase
*/
select?: Prisma.KnowledgeBaseSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBase
*/
omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
/**
* The data used to create many KnowledgeBases.
*/
data: Prisma.KnowledgeBaseCreateManyInput | Prisma.KnowledgeBaseCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* KnowledgeBase update
*/
export type KnowledgeBaseUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBase
*/
select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBase
*/
omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
/**
* The data needed to update a KnowledgeBase.
*/
data: Prisma.XOR<Prisma.KnowledgeBaseUpdateInput, Prisma.KnowledgeBaseUncheckedUpdateInput>
/**
* Choose, which KnowledgeBase to update.
*/
where: Prisma.KnowledgeBaseWhereUniqueInput
}
/**
* KnowledgeBase updateMany
*/
export type KnowledgeBaseUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update KnowledgeBases.
*/
data: Prisma.XOR<Prisma.KnowledgeBaseUpdateManyMutationInput, Prisma.KnowledgeBaseUncheckedUpdateManyInput>
/**
* Filter which KnowledgeBases to update
*/
where?: Prisma.KnowledgeBaseWhereInput
/**
* Limit how many KnowledgeBases to update.
*/
limit?: number
}
/**
* KnowledgeBase updateManyAndReturn
*/
export type KnowledgeBaseUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBase
*/
select?: Prisma.KnowledgeBaseSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBase
*/
omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
/**
* The data used to update KnowledgeBases.
*/
data: Prisma.XOR<Prisma.KnowledgeBaseUpdateManyMutationInput, Prisma.KnowledgeBaseUncheckedUpdateManyInput>
/**
* Filter which KnowledgeBases to update
*/
where?: Prisma.KnowledgeBaseWhereInput
/**
* Limit how many KnowledgeBases to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* KnowledgeBase upsert
*/
export type KnowledgeBaseUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBase
*/
select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBase
*/
omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
/**
* The filter to search for the KnowledgeBase to update in case it exists.
*/
where: Prisma.KnowledgeBaseWhereUniqueInput
/**
* In case the KnowledgeBase found by the `where` argument doesn't exist, create a new KnowledgeBase with this data.
*/
create: Prisma.XOR<Prisma.KnowledgeBaseCreateInput, Prisma.KnowledgeBaseUncheckedCreateInput>
/**
* In case the KnowledgeBase was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.KnowledgeBaseUpdateInput, Prisma.KnowledgeBaseUncheckedUpdateInput>
}
/**
* KnowledgeBase delete
*/
export type KnowledgeBaseDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBase
*/
select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBase
*/
omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
/**
* Filter which KnowledgeBase to delete.
*/
where: Prisma.KnowledgeBaseWhereUniqueInput
}
/**
* KnowledgeBase deleteMany
*/
export type KnowledgeBaseDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which KnowledgeBases to delete
*/
where?: Prisma.KnowledgeBaseWhereInput
/**
* Limit how many KnowledgeBases to delete.
*/
limit?: number
}
/**
* KnowledgeBase.tenant
*/
export type KnowledgeBase$tenantArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Tenant
*/
select?: Prisma.TenantSelect<ExtArgs> | null
/**
* Omit specific fields from the Tenant
*/
omit?: Prisma.TenantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TenantInclude<ExtArgs> | null
where?: Prisma.TenantWhereInput
}
/**
* KnowledgeBase.categories
*/
export type KnowledgeBase$categoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseCategory
*/
select?: Prisma.KnowledgeBaseCategorySelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseCategory
*/
omit?: Prisma.KnowledgeBaseCategoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseCategoryInclude<ExtArgs> | null
where?: Prisma.KnowledgeBaseCategoryWhereInput
orderBy?: Prisma.KnowledgeBaseCategoryOrderByWithRelationInput | Prisma.KnowledgeBaseCategoryOrderByWithRelationInput[]
cursor?: Prisma.KnowledgeBaseCategoryWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.KnowledgeBaseCategoryScalarFieldEnum | Prisma.KnowledgeBaseCategoryScalarFieldEnum[]
}
/**
* KnowledgeBase.articles
*/
export type KnowledgeBase$articlesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: Prisma.KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticle
*/
omit?: Prisma.KnowledgeBaseArticleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleInclude<ExtArgs> | null
where?: Prisma.KnowledgeBaseArticleWhereInput
orderBy?: Prisma.KnowledgeBaseArticleOrderByWithRelationInput | Prisma.KnowledgeBaseArticleOrderByWithRelationInput[]
cursor?: Prisma.KnowledgeBaseArticleWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.KnowledgeBaseArticleScalarFieldEnum | Prisma.KnowledgeBaseArticleScalarFieldEnum[]
}
/**
* KnowledgeBase.views
*/
export type KnowledgeBase$viewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseViews
*/
select?: Prisma.KnowledgeBaseViewsSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseViews
*/
omit?: Prisma.KnowledgeBaseViewsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseViewsInclude<ExtArgs> | null
where?: Prisma.KnowledgeBaseViewsWhereInput
orderBy?: Prisma.KnowledgeBaseViewsOrderByWithRelationInput | Prisma.KnowledgeBaseViewsOrderByWithRelationInput[]
cursor?: Prisma.KnowledgeBaseViewsWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.KnowledgeBaseViewsScalarFieldEnum | Prisma.KnowledgeBaseViewsScalarFieldEnum[]
}
/**
* KnowledgeBase without action
*/
export type KnowledgeBaseDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBase
*/
select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBase
*/
omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
}