1538 lines
60 KiB
TypeScript
1538 lines
60 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 `WidgetInstance` 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 WidgetInstance
|
|
*
|
|
*/
|
|
export type WidgetInstanceModel = runtime.Types.Result.DefaultSelection<Prisma.$WidgetInstancePayload>
|
|
|
|
export type AggregateWidgetInstance = {
|
|
_count: WidgetInstanceCountAggregateOutputType | null
|
|
_min: WidgetInstanceMinAggregateOutputType | null
|
|
_max: WidgetInstanceMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type WidgetInstanceMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
dashboardId: string | null
|
|
widgetCatalogKey: string | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type WidgetInstanceMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
dashboardId: string | null
|
|
widgetCatalogKey: string | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type WidgetInstanceCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
tenantId: number
|
|
dashboardId: number
|
|
widgetCatalogKey: number
|
|
config: number
|
|
position: number
|
|
size: number
|
|
isDemoData: number
|
|
archivedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type WidgetInstanceMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
dashboardId?: true
|
|
widgetCatalogKey?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type WidgetInstanceMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
dashboardId?: true
|
|
widgetCatalogKey?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type WidgetInstanceCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
dashboardId?: true
|
|
widgetCatalogKey?: true
|
|
config?: true
|
|
position?: true
|
|
size?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type WidgetInstanceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which WidgetInstance to aggregate.
|
|
*/
|
|
where?: Prisma.WidgetInstanceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of WidgetInstances to fetch.
|
|
*/
|
|
orderBy?: Prisma.WidgetInstanceOrderByWithRelationInput | Prisma.WidgetInstanceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.WidgetInstanceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` WidgetInstances 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` WidgetInstances.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned WidgetInstances
|
|
**/
|
|
_count?: true | WidgetInstanceCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: WidgetInstanceMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: WidgetInstanceMaxAggregateInputType
|
|
}
|
|
|
|
export type GetWidgetInstanceAggregateType<T extends WidgetInstanceAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateWidgetInstance]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateWidgetInstance[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateWidgetInstance[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type WidgetInstanceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.WidgetInstanceWhereInput
|
|
orderBy?: Prisma.WidgetInstanceOrderByWithAggregationInput | Prisma.WidgetInstanceOrderByWithAggregationInput[]
|
|
by: Prisma.WidgetInstanceScalarFieldEnum[] | Prisma.WidgetInstanceScalarFieldEnum
|
|
having?: Prisma.WidgetInstanceScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: WidgetInstanceCountAggregateInputType | true
|
|
_min?: WidgetInstanceMinAggregateInputType
|
|
_max?: WidgetInstanceMaxAggregateInputType
|
|
}
|
|
|
|
export type WidgetInstanceGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
dashboardId: string
|
|
widgetCatalogKey: string
|
|
config: runtime.JsonValue
|
|
position: runtime.JsonValue
|
|
size: runtime.JsonValue
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
_count: WidgetInstanceCountAggregateOutputType | null
|
|
_min: WidgetInstanceMinAggregateOutputType | null
|
|
_max: WidgetInstanceMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetWidgetInstanceGroupByPayload<T extends WidgetInstanceGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<WidgetInstanceGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof WidgetInstanceGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], WidgetInstanceGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], WidgetInstanceGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type WidgetInstanceWhereInput = {
|
|
AND?: Prisma.WidgetInstanceWhereInput | Prisma.WidgetInstanceWhereInput[]
|
|
OR?: Prisma.WidgetInstanceWhereInput[]
|
|
NOT?: Prisma.WidgetInstanceWhereInput | Prisma.WidgetInstanceWhereInput[]
|
|
id?: Prisma.StringFilter<"WidgetInstance"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"WidgetInstance"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"WidgetInstance"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"WidgetInstance"> | string
|
|
dashboardId?: Prisma.StringFilter<"WidgetInstance"> | string
|
|
widgetCatalogKey?: Prisma.StringFilter<"WidgetInstance"> | string
|
|
config?: Prisma.JsonFilter<"WidgetInstance">
|
|
position?: Prisma.JsonFilter<"WidgetInstance">
|
|
size?: Prisma.JsonFilter<"WidgetInstance">
|
|
isDemoData?: Prisma.BoolFilter<"WidgetInstance"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"WidgetInstance"> | Date | string | null
|
|
dashboard?: Prisma.XOR<Prisma.DashboardScalarRelationFilter, Prisma.DashboardWhereInput>
|
|
}
|
|
|
|
export type WidgetInstanceOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
dashboardId?: Prisma.SortOrder
|
|
widgetCatalogKey?: Prisma.SortOrder
|
|
config?: Prisma.SortOrder
|
|
position?: Prisma.SortOrder
|
|
size?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
dashboard?: Prisma.DashboardOrderByWithRelationInput
|
|
}
|
|
|
|
export type WidgetInstanceWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.WidgetInstanceWhereInput | Prisma.WidgetInstanceWhereInput[]
|
|
OR?: Prisma.WidgetInstanceWhereInput[]
|
|
NOT?: Prisma.WidgetInstanceWhereInput | Prisma.WidgetInstanceWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"WidgetInstance"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"WidgetInstance"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"WidgetInstance"> | string
|
|
dashboardId?: Prisma.StringFilter<"WidgetInstance"> | string
|
|
widgetCatalogKey?: Prisma.StringFilter<"WidgetInstance"> | string
|
|
config?: Prisma.JsonFilter<"WidgetInstance">
|
|
position?: Prisma.JsonFilter<"WidgetInstance">
|
|
size?: Prisma.JsonFilter<"WidgetInstance">
|
|
isDemoData?: Prisma.BoolFilter<"WidgetInstance"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"WidgetInstance"> | Date | string | null
|
|
dashboard?: Prisma.XOR<Prisma.DashboardScalarRelationFilter, Prisma.DashboardWhereInput>
|
|
}, "id">
|
|
|
|
export type WidgetInstanceOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
dashboardId?: Prisma.SortOrder
|
|
widgetCatalogKey?: Prisma.SortOrder
|
|
config?: Prisma.SortOrder
|
|
position?: Prisma.SortOrder
|
|
size?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.WidgetInstanceCountOrderByAggregateInput
|
|
_max?: Prisma.WidgetInstanceMaxOrderByAggregateInput
|
|
_min?: Prisma.WidgetInstanceMinOrderByAggregateInput
|
|
}
|
|
|
|
export type WidgetInstanceScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.WidgetInstanceScalarWhereWithAggregatesInput | Prisma.WidgetInstanceScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.WidgetInstanceScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.WidgetInstanceScalarWhereWithAggregatesInput | Prisma.WidgetInstanceScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"WidgetInstance"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"WidgetInstance"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"WidgetInstance"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"WidgetInstance"> | string
|
|
dashboardId?: Prisma.StringWithAggregatesFilter<"WidgetInstance"> | string
|
|
widgetCatalogKey?: Prisma.StringWithAggregatesFilter<"WidgetInstance"> | string
|
|
config?: Prisma.JsonWithAggregatesFilter<"WidgetInstance">
|
|
position?: Prisma.JsonWithAggregatesFilter<"WidgetInstance">
|
|
size?: Prisma.JsonWithAggregatesFilter<"WidgetInstance">
|
|
isDemoData?: Prisma.BoolWithAggregatesFilter<"WidgetInstance"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"WidgetInstance"> | Date | string | null
|
|
}
|
|
|
|
export type WidgetInstanceCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
widgetCatalogKey: string
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
position?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
size?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
dashboard: Prisma.DashboardCreateNestedOneWithoutInstancesInput
|
|
}
|
|
|
|
export type WidgetInstanceUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
dashboardId: string
|
|
widgetCatalogKey: string
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
position?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
size?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type WidgetInstanceUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
widgetCatalogKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
position?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
size?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
dashboard?: Prisma.DashboardUpdateOneRequiredWithoutInstancesNestedInput
|
|
}
|
|
|
|
export type WidgetInstanceUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dashboardId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
widgetCatalogKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
position?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
size?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type WidgetInstanceCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
dashboardId: string
|
|
widgetCatalogKey: string
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
position?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
size?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type WidgetInstanceUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
widgetCatalogKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
position?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
size?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type WidgetInstanceUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dashboardId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
widgetCatalogKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
position?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
size?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type WidgetInstanceListRelationFilter = {
|
|
every?: Prisma.WidgetInstanceWhereInput
|
|
some?: Prisma.WidgetInstanceWhereInput
|
|
none?: Prisma.WidgetInstanceWhereInput
|
|
}
|
|
|
|
export type WidgetInstanceOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type WidgetInstanceCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
dashboardId?: Prisma.SortOrder
|
|
widgetCatalogKey?: Prisma.SortOrder
|
|
config?: Prisma.SortOrder
|
|
position?: Prisma.SortOrder
|
|
size?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type WidgetInstanceMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
dashboardId?: Prisma.SortOrder
|
|
widgetCatalogKey?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type WidgetInstanceMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
dashboardId?: Prisma.SortOrder
|
|
widgetCatalogKey?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type WidgetInstanceCreateNestedManyWithoutDashboardInput = {
|
|
create?: Prisma.XOR<Prisma.WidgetInstanceCreateWithoutDashboardInput, Prisma.WidgetInstanceUncheckedCreateWithoutDashboardInput> | Prisma.WidgetInstanceCreateWithoutDashboardInput[] | Prisma.WidgetInstanceUncheckedCreateWithoutDashboardInput[]
|
|
connectOrCreate?: Prisma.WidgetInstanceCreateOrConnectWithoutDashboardInput | Prisma.WidgetInstanceCreateOrConnectWithoutDashboardInput[]
|
|
createMany?: Prisma.WidgetInstanceCreateManyDashboardInputEnvelope
|
|
connect?: Prisma.WidgetInstanceWhereUniqueInput | Prisma.WidgetInstanceWhereUniqueInput[]
|
|
}
|
|
|
|
export type WidgetInstanceUncheckedCreateNestedManyWithoutDashboardInput = {
|
|
create?: Prisma.XOR<Prisma.WidgetInstanceCreateWithoutDashboardInput, Prisma.WidgetInstanceUncheckedCreateWithoutDashboardInput> | Prisma.WidgetInstanceCreateWithoutDashboardInput[] | Prisma.WidgetInstanceUncheckedCreateWithoutDashboardInput[]
|
|
connectOrCreate?: Prisma.WidgetInstanceCreateOrConnectWithoutDashboardInput | Prisma.WidgetInstanceCreateOrConnectWithoutDashboardInput[]
|
|
createMany?: Prisma.WidgetInstanceCreateManyDashboardInputEnvelope
|
|
connect?: Prisma.WidgetInstanceWhereUniqueInput | Prisma.WidgetInstanceWhereUniqueInput[]
|
|
}
|
|
|
|
export type WidgetInstanceUpdateManyWithoutDashboardNestedInput = {
|
|
create?: Prisma.XOR<Prisma.WidgetInstanceCreateWithoutDashboardInput, Prisma.WidgetInstanceUncheckedCreateWithoutDashboardInput> | Prisma.WidgetInstanceCreateWithoutDashboardInput[] | Prisma.WidgetInstanceUncheckedCreateWithoutDashboardInput[]
|
|
connectOrCreate?: Prisma.WidgetInstanceCreateOrConnectWithoutDashboardInput | Prisma.WidgetInstanceCreateOrConnectWithoutDashboardInput[]
|
|
upsert?: Prisma.WidgetInstanceUpsertWithWhereUniqueWithoutDashboardInput | Prisma.WidgetInstanceUpsertWithWhereUniqueWithoutDashboardInput[]
|
|
createMany?: Prisma.WidgetInstanceCreateManyDashboardInputEnvelope
|
|
set?: Prisma.WidgetInstanceWhereUniqueInput | Prisma.WidgetInstanceWhereUniqueInput[]
|
|
disconnect?: Prisma.WidgetInstanceWhereUniqueInput | Prisma.WidgetInstanceWhereUniqueInput[]
|
|
delete?: Prisma.WidgetInstanceWhereUniqueInput | Prisma.WidgetInstanceWhereUniqueInput[]
|
|
connect?: Prisma.WidgetInstanceWhereUniqueInput | Prisma.WidgetInstanceWhereUniqueInput[]
|
|
update?: Prisma.WidgetInstanceUpdateWithWhereUniqueWithoutDashboardInput | Prisma.WidgetInstanceUpdateWithWhereUniqueWithoutDashboardInput[]
|
|
updateMany?: Prisma.WidgetInstanceUpdateManyWithWhereWithoutDashboardInput | Prisma.WidgetInstanceUpdateManyWithWhereWithoutDashboardInput[]
|
|
deleteMany?: Prisma.WidgetInstanceScalarWhereInput | Prisma.WidgetInstanceScalarWhereInput[]
|
|
}
|
|
|
|
export type WidgetInstanceUncheckedUpdateManyWithoutDashboardNestedInput = {
|
|
create?: Prisma.XOR<Prisma.WidgetInstanceCreateWithoutDashboardInput, Prisma.WidgetInstanceUncheckedCreateWithoutDashboardInput> | Prisma.WidgetInstanceCreateWithoutDashboardInput[] | Prisma.WidgetInstanceUncheckedCreateWithoutDashboardInput[]
|
|
connectOrCreate?: Prisma.WidgetInstanceCreateOrConnectWithoutDashboardInput | Prisma.WidgetInstanceCreateOrConnectWithoutDashboardInput[]
|
|
upsert?: Prisma.WidgetInstanceUpsertWithWhereUniqueWithoutDashboardInput | Prisma.WidgetInstanceUpsertWithWhereUniqueWithoutDashboardInput[]
|
|
createMany?: Prisma.WidgetInstanceCreateManyDashboardInputEnvelope
|
|
set?: Prisma.WidgetInstanceWhereUniqueInput | Prisma.WidgetInstanceWhereUniqueInput[]
|
|
disconnect?: Prisma.WidgetInstanceWhereUniqueInput | Prisma.WidgetInstanceWhereUniqueInput[]
|
|
delete?: Prisma.WidgetInstanceWhereUniqueInput | Prisma.WidgetInstanceWhereUniqueInput[]
|
|
connect?: Prisma.WidgetInstanceWhereUniqueInput | Prisma.WidgetInstanceWhereUniqueInput[]
|
|
update?: Prisma.WidgetInstanceUpdateWithWhereUniqueWithoutDashboardInput | Prisma.WidgetInstanceUpdateWithWhereUniqueWithoutDashboardInput[]
|
|
updateMany?: Prisma.WidgetInstanceUpdateManyWithWhereWithoutDashboardInput | Prisma.WidgetInstanceUpdateManyWithWhereWithoutDashboardInput[]
|
|
deleteMany?: Prisma.WidgetInstanceScalarWhereInput | Prisma.WidgetInstanceScalarWhereInput[]
|
|
}
|
|
|
|
export type WidgetInstanceCreateWithoutDashboardInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
widgetCatalogKey: string
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
position?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
size?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type WidgetInstanceUncheckedCreateWithoutDashboardInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
widgetCatalogKey: string
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
position?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
size?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type WidgetInstanceCreateOrConnectWithoutDashboardInput = {
|
|
where: Prisma.WidgetInstanceWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.WidgetInstanceCreateWithoutDashboardInput, Prisma.WidgetInstanceUncheckedCreateWithoutDashboardInput>
|
|
}
|
|
|
|
export type WidgetInstanceCreateManyDashboardInputEnvelope = {
|
|
data: Prisma.WidgetInstanceCreateManyDashboardInput | Prisma.WidgetInstanceCreateManyDashboardInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type WidgetInstanceUpsertWithWhereUniqueWithoutDashboardInput = {
|
|
where: Prisma.WidgetInstanceWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.WidgetInstanceUpdateWithoutDashboardInput, Prisma.WidgetInstanceUncheckedUpdateWithoutDashboardInput>
|
|
create: Prisma.XOR<Prisma.WidgetInstanceCreateWithoutDashboardInput, Prisma.WidgetInstanceUncheckedCreateWithoutDashboardInput>
|
|
}
|
|
|
|
export type WidgetInstanceUpdateWithWhereUniqueWithoutDashboardInput = {
|
|
where: Prisma.WidgetInstanceWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.WidgetInstanceUpdateWithoutDashboardInput, Prisma.WidgetInstanceUncheckedUpdateWithoutDashboardInput>
|
|
}
|
|
|
|
export type WidgetInstanceUpdateManyWithWhereWithoutDashboardInput = {
|
|
where: Prisma.WidgetInstanceScalarWhereInput
|
|
data: Prisma.XOR<Prisma.WidgetInstanceUpdateManyMutationInput, Prisma.WidgetInstanceUncheckedUpdateManyWithoutDashboardInput>
|
|
}
|
|
|
|
export type WidgetInstanceScalarWhereInput = {
|
|
AND?: Prisma.WidgetInstanceScalarWhereInput | Prisma.WidgetInstanceScalarWhereInput[]
|
|
OR?: Prisma.WidgetInstanceScalarWhereInput[]
|
|
NOT?: Prisma.WidgetInstanceScalarWhereInput | Prisma.WidgetInstanceScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"WidgetInstance"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"WidgetInstance"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"WidgetInstance"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"WidgetInstance"> | string
|
|
dashboardId?: Prisma.StringFilter<"WidgetInstance"> | string
|
|
widgetCatalogKey?: Prisma.StringFilter<"WidgetInstance"> | string
|
|
config?: Prisma.JsonFilter<"WidgetInstance">
|
|
position?: Prisma.JsonFilter<"WidgetInstance">
|
|
size?: Prisma.JsonFilter<"WidgetInstance">
|
|
isDemoData?: Prisma.BoolFilter<"WidgetInstance"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"WidgetInstance"> | Date | string | null
|
|
}
|
|
|
|
export type WidgetInstanceCreateManyDashboardInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
widgetCatalogKey: string
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
position?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
size?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type WidgetInstanceUpdateWithoutDashboardInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
widgetCatalogKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
position?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
size?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type WidgetInstanceUncheckedUpdateWithoutDashboardInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
widgetCatalogKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
position?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
size?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type WidgetInstanceUncheckedUpdateManyWithoutDashboardInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
widgetCatalogKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
position?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
size?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
|
|
|
|
export type WidgetInstanceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
dashboardId?: boolean
|
|
widgetCatalogKey?: boolean
|
|
config?: boolean
|
|
position?: boolean
|
|
size?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
dashboard?: boolean | Prisma.DashboardDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["widgetInstance"]>
|
|
|
|
export type WidgetInstanceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
dashboardId?: boolean
|
|
widgetCatalogKey?: boolean
|
|
config?: boolean
|
|
position?: boolean
|
|
size?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
dashboard?: boolean | Prisma.DashboardDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["widgetInstance"]>
|
|
|
|
export type WidgetInstanceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
dashboardId?: boolean
|
|
widgetCatalogKey?: boolean
|
|
config?: boolean
|
|
position?: boolean
|
|
size?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
dashboard?: boolean | Prisma.DashboardDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["widgetInstance"]>
|
|
|
|
export type WidgetInstanceSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
dashboardId?: boolean
|
|
widgetCatalogKey?: boolean
|
|
config?: boolean
|
|
position?: boolean
|
|
size?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}
|
|
|
|
export type WidgetInstanceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "dashboardId" | "widgetCatalogKey" | "config" | "position" | "size" | "isDemoData" | "archivedAt", ExtArgs["result"]["widgetInstance"]>
|
|
export type WidgetInstanceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
dashboard?: boolean | Prisma.DashboardDefaultArgs<ExtArgs>
|
|
}
|
|
export type WidgetInstanceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
dashboard?: boolean | Prisma.DashboardDefaultArgs<ExtArgs>
|
|
}
|
|
export type WidgetInstanceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
dashboard?: boolean | Prisma.DashboardDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $WidgetInstancePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "WidgetInstance"
|
|
objects: {
|
|
dashboard: Prisma.$DashboardPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
dashboardId: string
|
|
widgetCatalogKey: string
|
|
config: runtime.JsonValue
|
|
position: runtime.JsonValue
|
|
size: runtime.JsonValue
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
}, ExtArgs["result"]["widgetInstance"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type WidgetInstanceGetPayload<S extends boolean | null | undefined | WidgetInstanceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WidgetInstancePayload, S>
|
|
|
|
export type WidgetInstanceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<WidgetInstanceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: WidgetInstanceCountAggregateInputType | true
|
|
}
|
|
|
|
export interface WidgetInstanceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WidgetInstance'], meta: { name: 'WidgetInstance' } }
|
|
/**
|
|
* Find zero or one WidgetInstance that matches the filter.
|
|
* @param {WidgetInstanceFindUniqueArgs} args - Arguments to find a WidgetInstance
|
|
* @example
|
|
* // Get one WidgetInstance
|
|
* const widgetInstance = await prisma.widgetInstance.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends WidgetInstanceFindUniqueArgs>(args: Prisma.SelectSubset<T, WidgetInstanceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WidgetInstanceClient<runtime.Types.Result.GetResult<Prisma.$WidgetInstancePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one WidgetInstance that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {WidgetInstanceFindUniqueOrThrowArgs} args - Arguments to find a WidgetInstance
|
|
* @example
|
|
* // Get one WidgetInstance
|
|
* const widgetInstance = await prisma.widgetInstance.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends WidgetInstanceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WidgetInstanceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WidgetInstanceClient<runtime.Types.Result.GetResult<Prisma.$WidgetInstancePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first WidgetInstance 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 {WidgetInstanceFindFirstArgs} args - Arguments to find a WidgetInstance
|
|
* @example
|
|
* // Get one WidgetInstance
|
|
* const widgetInstance = await prisma.widgetInstance.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends WidgetInstanceFindFirstArgs>(args?: Prisma.SelectSubset<T, WidgetInstanceFindFirstArgs<ExtArgs>>): Prisma.Prisma__WidgetInstanceClient<runtime.Types.Result.GetResult<Prisma.$WidgetInstancePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first WidgetInstance 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 {WidgetInstanceFindFirstOrThrowArgs} args - Arguments to find a WidgetInstance
|
|
* @example
|
|
* // Get one WidgetInstance
|
|
* const widgetInstance = await prisma.widgetInstance.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends WidgetInstanceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WidgetInstanceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WidgetInstanceClient<runtime.Types.Result.GetResult<Prisma.$WidgetInstancePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more WidgetInstances 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 {WidgetInstanceFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all WidgetInstances
|
|
* const widgetInstances = await prisma.widgetInstance.findMany()
|
|
*
|
|
* // Get first 10 WidgetInstances
|
|
* const widgetInstances = await prisma.widgetInstance.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const widgetInstanceWithIdOnly = await prisma.widgetInstance.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends WidgetInstanceFindManyArgs>(args?: Prisma.SelectSubset<T, WidgetInstanceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WidgetInstancePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a WidgetInstance.
|
|
* @param {WidgetInstanceCreateArgs} args - Arguments to create a WidgetInstance.
|
|
* @example
|
|
* // Create one WidgetInstance
|
|
* const WidgetInstance = await prisma.widgetInstance.create({
|
|
* data: {
|
|
* // ... data to create a WidgetInstance
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends WidgetInstanceCreateArgs>(args: Prisma.SelectSubset<T, WidgetInstanceCreateArgs<ExtArgs>>): Prisma.Prisma__WidgetInstanceClient<runtime.Types.Result.GetResult<Prisma.$WidgetInstancePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many WidgetInstances.
|
|
* @param {WidgetInstanceCreateManyArgs} args - Arguments to create many WidgetInstances.
|
|
* @example
|
|
* // Create many WidgetInstances
|
|
* const widgetInstance = await prisma.widgetInstance.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends WidgetInstanceCreateManyArgs>(args?: Prisma.SelectSubset<T, WidgetInstanceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many WidgetInstances and returns the data saved in the database.
|
|
* @param {WidgetInstanceCreateManyAndReturnArgs} args - Arguments to create many WidgetInstances.
|
|
* @example
|
|
* // Create many WidgetInstances
|
|
* const widgetInstance = await prisma.widgetInstance.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many WidgetInstances and only return the `id`
|
|
* const widgetInstanceWithIdOnly = await prisma.widgetInstance.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 WidgetInstanceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, WidgetInstanceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WidgetInstancePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a WidgetInstance.
|
|
* @param {WidgetInstanceDeleteArgs} args - Arguments to delete one WidgetInstance.
|
|
* @example
|
|
* // Delete one WidgetInstance
|
|
* const WidgetInstance = await prisma.widgetInstance.delete({
|
|
* where: {
|
|
* // ... filter to delete one WidgetInstance
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends WidgetInstanceDeleteArgs>(args: Prisma.SelectSubset<T, WidgetInstanceDeleteArgs<ExtArgs>>): Prisma.Prisma__WidgetInstanceClient<runtime.Types.Result.GetResult<Prisma.$WidgetInstancePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one WidgetInstance.
|
|
* @param {WidgetInstanceUpdateArgs} args - Arguments to update one WidgetInstance.
|
|
* @example
|
|
* // Update one WidgetInstance
|
|
* const widgetInstance = await prisma.widgetInstance.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends WidgetInstanceUpdateArgs>(args: Prisma.SelectSubset<T, WidgetInstanceUpdateArgs<ExtArgs>>): Prisma.Prisma__WidgetInstanceClient<runtime.Types.Result.GetResult<Prisma.$WidgetInstancePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more WidgetInstances.
|
|
* @param {WidgetInstanceDeleteManyArgs} args - Arguments to filter WidgetInstances to delete.
|
|
* @example
|
|
* // Delete a few WidgetInstances
|
|
* const { count } = await prisma.widgetInstance.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends WidgetInstanceDeleteManyArgs>(args?: Prisma.SelectSubset<T, WidgetInstanceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more WidgetInstances.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WidgetInstanceUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many WidgetInstances
|
|
* const widgetInstance = await prisma.widgetInstance.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends WidgetInstanceUpdateManyArgs>(args: Prisma.SelectSubset<T, WidgetInstanceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more WidgetInstances and returns the data updated in the database.
|
|
* @param {WidgetInstanceUpdateManyAndReturnArgs} args - Arguments to update many WidgetInstances.
|
|
* @example
|
|
* // Update many WidgetInstances
|
|
* const widgetInstance = await prisma.widgetInstance.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more WidgetInstances and only return the `id`
|
|
* const widgetInstanceWithIdOnly = await prisma.widgetInstance.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 WidgetInstanceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, WidgetInstanceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WidgetInstancePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one WidgetInstance.
|
|
* @param {WidgetInstanceUpsertArgs} args - Arguments to update or create a WidgetInstance.
|
|
* @example
|
|
* // Update or create a WidgetInstance
|
|
* const widgetInstance = await prisma.widgetInstance.upsert({
|
|
* create: {
|
|
* // ... data to create a WidgetInstance
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the WidgetInstance we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends WidgetInstanceUpsertArgs>(args: Prisma.SelectSubset<T, WidgetInstanceUpsertArgs<ExtArgs>>): Prisma.Prisma__WidgetInstanceClient<runtime.Types.Result.GetResult<Prisma.$WidgetInstancePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of WidgetInstances.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WidgetInstanceCountArgs} args - Arguments to filter WidgetInstances to count.
|
|
* @example
|
|
* // Count the number of WidgetInstances
|
|
* const count = await prisma.widgetInstance.count({
|
|
* where: {
|
|
* // ... the filter for the WidgetInstances we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends WidgetInstanceCountArgs>(
|
|
args?: Prisma.Subset<T, WidgetInstanceCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], WidgetInstanceCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a WidgetInstance.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WidgetInstanceAggregateArgs} 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 WidgetInstanceAggregateArgs>(args: Prisma.Subset<T, WidgetInstanceAggregateArgs>): Prisma.PrismaPromise<GetWidgetInstanceAggregateType<T>>
|
|
|
|
/**
|
|
* Group by WidgetInstance.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WidgetInstanceGroupByArgs} 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 WidgetInstanceGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: WidgetInstanceGroupByArgs['orderBy'] }
|
|
: { orderBy?: WidgetInstanceGroupByArgs['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, WidgetInstanceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWidgetInstanceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the WidgetInstance model
|
|
*/
|
|
readonly fields: WidgetInstanceFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for WidgetInstance.
|
|
* 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__WidgetInstanceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
dashboard<T extends Prisma.DashboardDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DashboardDefaultArgs<ExtArgs>>): Prisma.Prisma__DashboardClient<runtime.Types.Result.GetResult<Prisma.$DashboardPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* 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 WidgetInstance model
|
|
*/
|
|
export interface WidgetInstanceFieldRefs {
|
|
readonly id: Prisma.FieldRef<"WidgetInstance", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"WidgetInstance", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"WidgetInstance", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"WidgetInstance", 'String'>
|
|
readonly dashboardId: Prisma.FieldRef<"WidgetInstance", 'String'>
|
|
readonly widgetCatalogKey: Prisma.FieldRef<"WidgetInstance", 'String'>
|
|
readonly config: Prisma.FieldRef<"WidgetInstance", 'Json'>
|
|
readonly position: Prisma.FieldRef<"WidgetInstance", 'Json'>
|
|
readonly size: Prisma.FieldRef<"WidgetInstance", 'Json'>
|
|
readonly isDemoData: Prisma.FieldRef<"WidgetInstance", 'Boolean'>
|
|
readonly archivedAt: Prisma.FieldRef<"WidgetInstance", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* WidgetInstance findUnique
|
|
*/
|
|
export type WidgetInstanceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WidgetInstance
|
|
*/
|
|
select?: Prisma.WidgetInstanceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WidgetInstance
|
|
*/
|
|
omit?: Prisma.WidgetInstanceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WidgetInstanceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WidgetInstance to fetch.
|
|
*/
|
|
where: Prisma.WidgetInstanceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance findUniqueOrThrow
|
|
*/
|
|
export type WidgetInstanceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WidgetInstance
|
|
*/
|
|
select?: Prisma.WidgetInstanceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WidgetInstance
|
|
*/
|
|
omit?: Prisma.WidgetInstanceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WidgetInstanceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WidgetInstance to fetch.
|
|
*/
|
|
where: Prisma.WidgetInstanceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance findFirst
|
|
*/
|
|
export type WidgetInstanceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WidgetInstance
|
|
*/
|
|
select?: Prisma.WidgetInstanceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WidgetInstance
|
|
*/
|
|
omit?: Prisma.WidgetInstanceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WidgetInstanceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WidgetInstance to fetch.
|
|
*/
|
|
where?: Prisma.WidgetInstanceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of WidgetInstances to fetch.
|
|
*/
|
|
orderBy?: Prisma.WidgetInstanceOrderByWithRelationInput | Prisma.WidgetInstanceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for WidgetInstances.
|
|
*/
|
|
cursor?: Prisma.WidgetInstanceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` WidgetInstances 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` WidgetInstances.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of WidgetInstances.
|
|
*/
|
|
distinct?: Prisma.WidgetInstanceScalarFieldEnum | Prisma.WidgetInstanceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance findFirstOrThrow
|
|
*/
|
|
export type WidgetInstanceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WidgetInstance
|
|
*/
|
|
select?: Prisma.WidgetInstanceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WidgetInstance
|
|
*/
|
|
omit?: Prisma.WidgetInstanceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WidgetInstanceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WidgetInstance to fetch.
|
|
*/
|
|
where?: Prisma.WidgetInstanceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of WidgetInstances to fetch.
|
|
*/
|
|
orderBy?: Prisma.WidgetInstanceOrderByWithRelationInput | Prisma.WidgetInstanceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for WidgetInstances.
|
|
*/
|
|
cursor?: Prisma.WidgetInstanceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` WidgetInstances 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` WidgetInstances.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of WidgetInstances.
|
|
*/
|
|
distinct?: Prisma.WidgetInstanceScalarFieldEnum | Prisma.WidgetInstanceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance findMany
|
|
*/
|
|
export type WidgetInstanceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WidgetInstance
|
|
*/
|
|
select?: Prisma.WidgetInstanceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WidgetInstance
|
|
*/
|
|
omit?: Prisma.WidgetInstanceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WidgetInstanceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WidgetInstances to fetch.
|
|
*/
|
|
where?: Prisma.WidgetInstanceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of WidgetInstances to fetch.
|
|
*/
|
|
orderBy?: Prisma.WidgetInstanceOrderByWithRelationInput | Prisma.WidgetInstanceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing WidgetInstances.
|
|
*/
|
|
cursor?: Prisma.WidgetInstanceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` WidgetInstances 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` WidgetInstances.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of WidgetInstances.
|
|
*/
|
|
distinct?: Prisma.WidgetInstanceScalarFieldEnum | Prisma.WidgetInstanceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance create
|
|
*/
|
|
export type WidgetInstanceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WidgetInstance
|
|
*/
|
|
select?: Prisma.WidgetInstanceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WidgetInstance
|
|
*/
|
|
omit?: Prisma.WidgetInstanceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WidgetInstanceInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a WidgetInstance.
|
|
*/
|
|
data: Prisma.XOR<Prisma.WidgetInstanceCreateInput, Prisma.WidgetInstanceUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance createMany
|
|
*/
|
|
export type WidgetInstanceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many WidgetInstances.
|
|
*/
|
|
data: Prisma.WidgetInstanceCreateManyInput | Prisma.WidgetInstanceCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance createManyAndReturn
|
|
*/
|
|
export type WidgetInstanceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WidgetInstance
|
|
*/
|
|
select?: Prisma.WidgetInstanceSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WidgetInstance
|
|
*/
|
|
omit?: Prisma.WidgetInstanceOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many WidgetInstances.
|
|
*/
|
|
data: Prisma.WidgetInstanceCreateManyInput | Prisma.WidgetInstanceCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WidgetInstanceIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance update
|
|
*/
|
|
export type WidgetInstanceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WidgetInstance
|
|
*/
|
|
select?: Prisma.WidgetInstanceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WidgetInstance
|
|
*/
|
|
omit?: Prisma.WidgetInstanceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WidgetInstanceInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a WidgetInstance.
|
|
*/
|
|
data: Prisma.XOR<Prisma.WidgetInstanceUpdateInput, Prisma.WidgetInstanceUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which WidgetInstance to update.
|
|
*/
|
|
where: Prisma.WidgetInstanceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance updateMany
|
|
*/
|
|
export type WidgetInstanceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update WidgetInstances.
|
|
*/
|
|
data: Prisma.XOR<Prisma.WidgetInstanceUpdateManyMutationInput, Prisma.WidgetInstanceUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which WidgetInstances to update
|
|
*/
|
|
where?: Prisma.WidgetInstanceWhereInput
|
|
/**
|
|
* Limit how many WidgetInstances to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance updateManyAndReturn
|
|
*/
|
|
export type WidgetInstanceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WidgetInstance
|
|
*/
|
|
select?: Prisma.WidgetInstanceSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WidgetInstance
|
|
*/
|
|
omit?: Prisma.WidgetInstanceOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update WidgetInstances.
|
|
*/
|
|
data: Prisma.XOR<Prisma.WidgetInstanceUpdateManyMutationInput, Prisma.WidgetInstanceUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which WidgetInstances to update
|
|
*/
|
|
where?: Prisma.WidgetInstanceWhereInput
|
|
/**
|
|
* Limit how many WidgetInstances to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WidgetInstanceIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance upsert
|
|
*/
|
|
export type WidgetInstanceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WidgetInstance
|
|
*/
|
|
select?: Prisma.WidgetInstanceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WidgetInstance
|
|
*/
|
|
omit?: Prisma.WidgetInstanceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WidgetInstanceInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the WidgetInstance to update in case it exists.
|
|
*/
|
|
where: Prisma.WidgetInstanceWhereUniqueInput
|
|
/**
|
|
* In case the WidgetInstance found by the `where` argument doesn't exist, create a new WidgetInstance with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.WidgetInstanceCreateInput, Prisma.WidgetInstanceUncheckedCreateInput>
|
|
/**
|
|
* In case the WidgetInstance was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.WidgetInstanceUpdateInput, Prisma.WidgetInstanceUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance delete
|
|
*/
|
|
export type WidgetInstanceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WidgetInstance
|
|
*/
|
|
select?: Prisma.WidgetInstanceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WidgetInstance
|
|
*/
|
|
omit?: Prisma.WidgetInstanceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WidgetInstanceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which WidgetInstance to delete.
|
|
*/
|
|
where: Prisma.WidgetInstanceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance deleteMany
|
|
*/
|
|
export type WidgetInstanceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which WidgetInstances to delete
|
|
*/
|
|
where?: Prisma.WidgetInstanceWhereInput
|
|
/**
|
|
* Limit how many WidgetInstances to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* WidgetInstance without action
|
|
*/
|
|
export type WidgetInstanceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WidgetInstance
|
|
*/
|
|
select?: Prisma.WidgetInstanceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WidgetInstance
|
|
*/
|
|
omit?: Prisma.WidgetInstanceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WidgetInstanceInclude<ExtArgs> | null
|
|
}
|