/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Workflow` 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 Workflow * */ export type WorkflowModel = runtime.Types.Result.DefaultSelection export type AggregateWorkflow = { _count: WorkflowCountAggregateOutputType | null _min: WorkflowMinAggregateOutputType | null _max: WorkflowMaxAggregateOutputType | null } export type WorkflowMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null name: string | null description: string | null status: string | null tenantId: string | null createdByUserId: string | null appliesToAllTenants: boolean | null } export type WorkflowMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null name: string | null description: string | null status: string | null tenantId: string | null createdByUserId: string | null appliesToAllTenants: boolean | null } export type WorkflowCountAggregateOutputType = { id: number createdAt: number updatedAt: number name: number description: number status: number tenantId: number createdByUserId: number appliesToAllTenants: number _all: number } export type WorkflowMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true name?: true description?: true status?: true tenantId?: true createdByUserId?: true appliesToAllTenants?: true } export type WorkflowMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true name?: true description?: true status?: true tenantId?: true createdByUserId?: true appliesToAllTenants?: true } export type WorkflowCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true name?: true description?: true status?: true tenantId?: true createdByUserId?: true appliesToAllTenants?: true _all?: true } export type WorkflowAggregateArgs = { /** * Filter which Workflow to aggregate. */ where?: Prisma.WorkflowWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Workflows to fetch. */ orderBy?: Prisma.WorkflowOrderByWithRelationInput | Prisma.WorkflowOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.WorkflowWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Workflows 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` Workflows. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Workflows **/ _count?: true | WorkflowCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: WorkflowMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: WorkflowMaxAggregateInputType } export type GetWorkflowAggregateType = { [P in keyof T & keyof AggregateWorkflow]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type WorkflowGroupByArgs = { where?: Prisma.WorkflowWhereInput orderBy?: Prisma.WorkflowOrderByWithAggregationInput | Prisma.WorkflowOrderByWithAggregationInput[] by: Prisma.WorkflowScalarFieldEnum[] | Prisma.WorkflowScalarFieldEnum having?: Prisma.WorkflowScalarWhereWithAggregatesInput take?: number skip?: number _count?: WorkflowCountAggregateInputType | true _min?: WorkflowMinAggregateInputType _max?: WorkflowMaxAggregateInputType } export type WorkflowGroupByOutputType = { id: string createdAt: Date updatedAt: Date name: string description: string status: string tenantId: string | null createdByUserId: string | null appliesToAllTenants: boolean _count: WorkflowCountAggregateOutputType | null _min: WorkflowMinAggregateOutputType | null _max: WorkflowMaxAggregateOutputType | null } export type GetWorkflowGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof WorkflowGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type WorkflowWhereInput = { AND?: Prisma.WorkflowWhereInput | Prisma.WorkflowWhereInput[] OR?: Prisma.WorkflowWhereInput[] NOT?: Prisma.WorkflowWhereInput | Prisma.WorkflowWhereInput[] id?: Prisma.StringFilter<"Workflow"> | string createdAt?: Prisma.DateTimeFilter<"Workflow"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Workflow"> | Date | string name?: Prisma.StringFilter<"Workflow"> | string description?: Prisma.StringFilter<"Workflow"> | string status?: Prisma.StringFilter<"Workflow"> | string tenantId?: Prisma.StringNullableFilter<"Workflow"> | string | null createdByUserId?: Prisma.StringNullableFilter<"Workflow"> | string | null appliesToAllTenants?: Prisma.BoolFilter<"Workflow"> | boolean tenant?: Prisma.XOR | null createdByUser?: Prisma.XOR | null blocks?: Prisma.WorkflowBlockListRelationFilter inputExamples?: Prisma.WorkflowInputExampleListRelationFilter executions?: Prisma.WorkflowExecutionListRelationFilter } export type WorkflowOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder status?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder appliesToAllTenants?: Prisma.SortOrder tenant?: Prisma.TenantOrderByWithRelationInput createdByUser?: Prisma.UserOrderByWithRelationInput blocks?: Prisma.WorkflowBlockOrderByRelationAggregateInput inputExamples?: Prisma.WorkflowInputExampleOrderByRelationAggregateInput executions?: Prisma.WorkflowExecutionOrderByRelationAggregateInput } export type WorkflowWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.WorkflowWhereInput | Prisma.WorkflowWhereInput[] OR?: Prisma.WorkflowWhereInput[] NOT?: Prisma.WorkflowWhereInput | Prisma.WorkflowWhereInput[] createdAt?: Prisma.DateTimeFilter<"Workflow"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Workflow"> | Date | string name?: Prisma.StringFilter<"Workflow"> | string description?: Prisma.StringFilter<"Workflow"> | string status?: Prisma.StringFilter<"Workflow"> | string tenantId?: Prisma.StringNullableFilter<"Workflow"> | string | null createdByUserId?: Prisma.StringNullableFilter<"Workflow"> | string | null appliesToAllTenants?: Prisma.BoolFilter<"Workflow"> | boolean tenant?: Prisma.XOR | null createdByUser?: Prisma.XOR | null blocks?: Prisma.WorkflowBlockListRelationFilter inputExamples?: Prisma.WorkflowInputExampleListRelationFilter executions?: Prisma.WorkflowExecutionListRelationFilter }, "id"> export type WorkflowOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder status?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder appliesToAllTenants?: Prisma.SortOrder _count?: Prisma.WorkflowCountOrderByAggregateInput _max?: Prisma.WorkflowMaxOrderByAggregateInput _min?: Prisma.WorkflowMinOrderByAggregateInput } export type WorkflowScalarWhereWithAggregatesInput = { AND?: Prisma.WorkflowScalarWhereWithAggregatesInput | Prisma.WorkflowScalarWhereWithAggregatesInput[] OR?: Prisma.WorkflowScalarWhereWithAggregatesInput[] NOT?: Prisma.WorkflowScalarWhereWithAggregatesInput | Prisma.WorkflowScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Workflow"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Workflow"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Workflow"> | Date | string name?: Prisma.StringWithAggregatesFilter<"Workflow"> | string description?: Prisma.StringWithAggregatesFilter<"Workflow"> | string status?: Prisma.StringWithAggregatesFilter<"Workflow"> | string tenantId?: Prisma.StringNullableWithAggregatesFilter<"Workflow"> | string | null createdByUserId?: Prisma.StringNullableWithAggregatesFilter<"Workflow"> | string | null appliesToAllTenants?: Prisma.BoolWithAggregatesFilter<"Workflow"> | boolean } export type WorkflowCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string appliesToAllTenants?: boolean tenant?: Prisma.TenantCreateNestedOneWithoutWorkflowsInput createdByUser?: Prisma.UserCreateNestedOneWithoutWorkflowsCreatedInput blocks?: Prisma.WorkflowBlockCreateNestedManyWithoutWorkflowInput inputExamples?: Prisma.WorkflowInputExampleCreateNestedManyWithoutWorkflowInput executions?: Prisma.WorkflowExecutionCreateNestedManyWithoutWorkflowInput } export type WorkflowUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string tenantId?: string | null createdByUserId?: string | null appliesToAllTenants?: boolean blocks?: Prisma.WorkflowBlockUncheckedCreateNestedManyWithoutWorkflowInput inputExamples?: Prisma.WorkflowInputExampleUncheckedCreateNestedManyWithoutWorkflowInput executions?: Prisma.WorkflowExecutionUncheckedCreateNestedManyWithoutWorkflowInput } export type WorkflowUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean tenant?: Prisma.TenantUpdateOneWithoutWorkflowsNestedInput createdByUser?: Prisma.UserUpdateOneWithoutWorkflowsCreatedNestedInput blocks?: Prisma.WorkflowBlockUpdateManyWithoutWorkflowNestedInput inputExamples?: Prisma.WorkflowInputExampleUpdateManyWithoutWorkflowNestedInput executions?: Prisma.WorkflowExecutionUpdateManyWithoutWorkflowNestedInput } export type WorkflowUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean blocks?: Prisma.WorkflowBlockUncheckedUpdateManyWithoutWorkflowNestedInput inputExamples?: Prisma.WorkflowInputExampleUncheckedUpdateManyWithoutWorkflowNestedInput executions?: Prisma.WorkflowExecutionUncheckedUpdateManyWithoutWorkflowNestedInput } export type WorkflowCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string tenantId?: string | null createdByUserId?: string | null appliesToAllTenants?: boolean } export type WorkflowUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type WorkflowUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type WorkflowListRelationFilter = { every?: Prisma.WorkflowWhereInput some?: Prisma.WorkflowWhereInput none?: Prisma.WorkflowWhereInput } export type WorkflowOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type WorkflowCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder status?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder appliesToAllTenants?: Prisma.SortOrder } export type WorkflowMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder status?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder appliesToAllTenants?: Prisma.SortOrder } export type WorkflowMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder status?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder appliesToAllTenants?: Prisma.SortOrder } export type WorkflowScalarRelationFilter = { is?: Prisma.WorkflowWhereInput isNot?: Prisma.WorkflowWhereInput } export type WorkflowCreateNestedManyWithoutCreatedByUserInput = { create?: Prisma.XOR | Prisma.WorkflowCreateWithoutCreatedByUserInput[] | Prisma.WorkflowUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutCreatedByUserInput | Prisma.WorkflowCreateOrConnectWithoutCreatedByUserInput[] createMany?: Prisma.WorkflowCreateManyCreatedByUserInputEnvelope connect?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] } export type WorkflowUncheckedCreateNestedManyWithoutCreatedByUserInput = { create?: Prisma.XOR | Prisma.WorkflowCreateWithoutCreatedByUserInput[] | Prisma.WorkflowUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutCreatedByUserInput | Prisma.WorkflowCreateOrConnectWithoutCreatedByUserInput[] createMany?: Prisma.WorkflowCreateManyCreatedByUserInputEnvelope connect?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] } export type WorkflowUpdateManyWithoutCreatedByUserNestedInput = { create?: Prisma.XOR | Prisma.WorkflowCreateWithoutCreatedByUserInput[] | Prisma.WorkflowUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutCreatedByUserInput | Prisma.WorkflowCreateOrConnectWithoutCreatedByUserInput[] upsert?: Prisma.WorkflowUpsertWithWhereUniqueWithoutCreatedByUserInput | Prisma.WorkflowUpsertWithWhereUniqueWithoutCreatedByUserInput[] createMany?: Prisma.WorkflowCreateManyCreatedByUserInputEnvelope set?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] disconnect?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] delete?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] connect?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] update?: Prisma.WorkflowUpdateWithWhereUniqueWithoutCreatedByUserInput | Prisma.WorkflowUpdateWithWhereUniqueWithoutCreatedByUserInput[] updateMany?: Prisma.WorkflowUpdateManyWithWhereWithoutCreatedByUserInput | Prisma.WorkflowUpdateManyWithWhereWithoutCreatedByUserInput[] deleteMany?: Prisma.WorkflowScalarWhereInput | Prisma.WorkflowScalarWhereInput[] } export type WorkflowUncheckedUpdateManyWithoutCreatedByUserNestedInput = { create?: Prisma.XOR | Prisma.WorkflowCreateWithoutCreatedByUserInput[] | Prisma.WorkflowUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutCreatedByUserInput | Prisma.WorkflowCreateOrConnectWithoutCreatedByUserInput[] upsert?: Prisma.WorkflowUpsertWithWhereUniqueWithoutCreatedByUserInput | Prisma.WorkflowUpsertWithWhereUniqueWithoutCreatedByUserInput[] createMany?: Prisma.WorkflowCreateManyCreatedByUserInputEnvelope set?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] disconnect?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] delete?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] connect?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] update?: Prisma.WorkflowUpdateWithWhereUniqueWithoutCreatedByUserInput | Prisma.WorkflowUpdateWithWhereUniqueWithoutCreatedByUserInput[] updateMany?: Prisma.WorkflowUpdateManyWithWhereWithoutCreatedByUserInput | Prisma.WorkflowUpdateManyWithWhereWithoutCreatedByUserInput[] deleteMany?: Prisma.WorkflowScalarWhereInput | Prisma.WorkflowScalarWhereInput[] } export type WorkflowCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.WorkflowCreateWithoutTenantInput[] | Prisma.WorkflowUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutTenantInput | Prisma.WorkflowCreateOrConnectWithoutTenantInput[] createMany?: Prisma.WorkflowCreateManyTenantInputEnvelope connect?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] } export type WorkflowUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.WorkflowCreateWithoutTenantInput[] | Prisma.WorkflowUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutTenantInput | Prisma.WorkflowCreateOrConnectWithoutTenantInput[] createMany?: Prisma.WorkflowCreateManyTenantInputEnvelope connect?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] } export type WorkflowUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.WorkflowCreateWithoutTenantInput[] | Prisma.WorkflowUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutTenantInput | Prisma.WorkflowCreateOrConnectWithoutTenantInput[] upsert?: Prisma.WorkflowUpsertWithWhereUniqueWithoutTenantInput | Prisma.WorkflowUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.WorkflowCreateManyTenantInputEnvelope set?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] disconnect?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] delete?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] connect?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] update?: Prisma.WorkflowUpdateWithWhereUniqueWithoutTenantInput | Prisma.WorkflowUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.WorkflowUpdateManyWithWhereWithoutTenantInput | Prisma.WorkflowUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.WorkflowScalarWhereInput | Prisma.WorkflowScalarWhereInput[] } export type WorkflowUncheckedUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.WorkflowCreateWithoutTenantInput[] | Prisma.WorkflowUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutTenantInput | Prisma.WorkflowCreateOrConnectWithoutTenantInput[] upsert?: Prisma.WorkflowUpsertWithWhereUniqueWithoutTenantInput | Prisma.WorkflowUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.WorkflowCreateManyTenantInputEnvelope set?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] disconnect?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] delete?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] connect?: Prisma.WorkflowWhereUniqueInput | Prisma.WorkflowWhereUniqueInput[] update?: Prisma.WorkflowUpdateWithWhereUniqueWithoutTenantInput | Prisma.WorkflowUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.WorkflowUpdateManyWithWhereWithoutTenantInput | Prisma.WorkflowUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.WorkflowScalarWhereInput | Prisma.WorkflowScalarWhereInput[] } export type WorkflowCreateNestedOneWithoutBlocksInput = { create?: Prisma.XOR connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutBlocksInput connect?: Prisma.WorkflowWhereUniqueInput } export type WorkflowUpdateOneRequiredWithoutBlocksNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutBlocksInput upsert?: Prisma.WorkflowUpsertWithoutBlocksInput connect?: Prisma.WorkflowWhereUniqueInput update?: Prisma.XOR, Prisma.WorkflowUncheckedUpdateWithoutBlocksInput> } export type WorkflowCreateNestedOneWithoutExecutionsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutExecutionsInput connect?: Prisma.WorkflowWhereUniqueInput } export type WorkflowUpdateOneRequiredWithoutExecutionsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutExecutionsInput upsert?: Prisma.WorkflowUpsertWithoutExecutionsInput connect?: Prisma.WorkflowWhereUniqueInput update?: Prisma.XOR, Prisma.WorkflowUncheckedUpdateWithoutExecutionsInput> } export type WorkflowCreateNestedOneWithoutInputExamplesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutInputExamplesInput connect?: Prisma.WorkflowWhereUniqueInput } export type WorkflowUpdateOneRequiredWithoutInputExamplesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.WorkflowCreateOrConnectWithoutInputExamplesInput upsert?: Prisma.WorkflowUpsertWithoutInputExamplesInput connect?: Prisma.WorkflowWhereUniqueInput update?: Prisma.XOR, Prisma.WorkflowUncheckedUpdateWithoutInputExamplesInput> } export type WorkflowCreateWithoutCreatedByUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string appliesToAllTenants?: boolean tenant?: Prisma.TenantCreateNestedOneWithoutWorkflowsInput blocks?: Prisma.WorkflowBlockCreateNestedManyWithoutWorkflowInput inputExamples?: Prisma.WorkflowInputExampleCreateNestedManyWithoutWorkflowInput executions?: Prisma.WorkflowExecutionCreateNestedManyWithoutWorkflowInput } export type WorkflowUncheckedCreateWithoutCreatedByUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string tenantId?: string | null appliesToAllTenants?: boolean blocks?: Prisma.WorkflowBlockUncheckedCreateNestedManyWithoutWorkflowInput inputExamples?: Prisma.WorkflowInputExampleUncheckedCreateNestedManyWithoutWorkflowInput executions?: Prisma.WorkflowExecutionUncheckedCreateNestedManyWithoutWorkflowInput } export type WorkflowCreateOrConnectWithoutCreatedByUserInput = { where: Prisma.WorkflowWhereUniqueInput create: Prisma.XOR } export type WorkflowCreateManyCreatedByUserInputEnvelope = { data: Prisma.WorkflowCreateManyCreatedByUserInput | Prisma.WorkflowCreateManyCreatedByUserInput[] skipDuplicates?: boolean } export type WorkflowUpsertWithWhereUniqueWithoutCreatedByUserInput = { where: Prisma.WorkflowWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type WorkflowUpdateWithWhereUniqueWithoutCreatedByUserInput = { where: Prisma.WorkflowWhereUniqueInput data: Prisma.XOR } export type WorkflowUpdateManyWithWhereWithoutCreatedByUserInput = { where: Prisma.WorkflowScalarWhereInput data: Prisma.XOR } export type WorkflowScalarWhereInput = { AND?: Prisma.WorkflowScalarWhereInput | Prisma.WorkflowScalarWhereInput[] OR?: Prisma.WorkflowScalarWhereInput[] NOT?: Prisma.WorkflowScalarWhereInput | Prisma.WorkflowScalarWhereInput[] id?: Prisma.StringFilter<"Workflow"> | string createdAt?: Prisma.DateTimeFilter<"Workflow"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Workflow"> | Date | string name?: Prisma.StringFilter<"Workflow"> | string description?: Prisma.StringFilter<"Workflow"> | string status?: Prisma.StringFilter<"Workflow"> | string tenantId?: Prisma.StringNullableFilter<"Workflow"> | string | null createdByUserId?: Prisma.StringNullableFilter<"Workflow"> | string | null appliesToAllTenants?: Prisma.BoolFilter<"Workflow"> | boolean } export type WorkflowCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string appliesToAllTenants?: boolean createdByUser?: Prisma.UserCreateNestedOneWithoutWorkflowsCreatedInput blocks?: Prisma.WorkflowBlockCreateNestedManyWithoutWorkflowInput inputExamples?: Prisma.WorkflowInputExampleCreateNestedManyWithoutWorkflowInput executions?: Prisma.WorkflowExecutionCreateNestedManyWithoutWorkflowInput } export type WorkflowUncheckedCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string createdByUserId?: string | null appliesToAllTenants?: boolean blocks?: Prisma.WorkflowBlockUncheckedCreateNestedManyWithoutWorkflowInput inputExamples?: Prisma.WorkflowInputExampleUncheckedCreateNestedManyWithoutWorkflowInput executions?: Prisma.WorkflowExecutionUncheckedCreateNestedManyWithoutWorkflowInput } export type WorkflowCreateOrConnectWithoutTenantInput = { where: Prisma.WorkflowWhereUniqueInput create: Prisma.XOR } export type WorkflowCreateManyTenantInputEnvelope = { data: Prisma.WorkflowCreateManyTenantInput | Prisma.WorkflowCreateManyTenantInput[] skipDuplicates?: boolean } export type WorkflowUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.WorkflowWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type WorkflowUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.WorkflowWhereUniqueInput data: Prisma.XOR } export type WorkflowUpdateManyWithWhereWithoutTenantInput = { where: Prisma.WorkflowScalarWhereInput data: Prisma.XOR } export type WorkflowCreateWithoutBlocksInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string appliesToAllTenants?: boolean tenant?: Prisma.TenantCreateNestedOneWithoutWorkflowsInput createdByUser?: Prisma.UserCreateNestedOneWithoutWorkflowsCreatedInput inputExamples?: Prisma.WorkflowInputExampleCreateNestedManyWithoutWorkflowInput executions?: Prisma.WorkflowExecutionCreateNestedManyWithoutWorkflowInput } export type WorkflowUncheckedCreateWithoutBlocksInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string tenantId?: string | null createdByUserId?: string | null appliesToAllTenants?: boolean inputExamples?: Prisma.WorkflowInputExampleUncheckedCreateNestedManyWithoutWorkflowInput executions?: Prisma.WorkflowExecutionUncheckedCreateNestedManyWithoutWorkflowInput } export type WorkflowCreateOrConnectWithoutBlocksInput = { where: Prisma.WorkflowWhereUniqueInput create: Prisma.XOR } export type WorkflowUpsertWithoutBlocksInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.WorkflowWhereInput } export type WorkflowUpdateToOneWithWhereWithoutBlocksInput = { where?: Prisma.WorkflowWhereInput data: Prisma.XOR } export type WorkflowUpdateWithoutBlocksInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean tenant?: Prisma.TenantUpdateOneWithoutWorkflowsNestedInput createdByUser?: Prisma.UserUpdateOneWithoutWorkflowsCreatedNestedInput inputExamples?: Prisma.WorkflowInputExampleUpdateManyWithoutWorkflowNestedInput executions?: Prisma.WorkflowExecutionUpdateManyWithoutWorkflowNestedInput } export type WorkflowUncheckedUpdateWithoutBlocksInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean inputExamples?: Prisma.WorkflowInputExampleUncheckedUpdateManyWithoutWorkflowNestedInput executions?: Prisma.WorkflowExecutionUncheckedUpdateManyWithoutWorkflowNestedInput } export type WorkflowCreateWithoutExecutionsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string appliesToAllTenants?: boolean tenant?: Prisma.TenantCreateNestedOneWithoutWorkflowsInput createdByUser?: Prisma.UserCreateNestedOneWithoutWorkflowsCreatedInput blocks?: Prisma.WorkflowBlockCreateNestedManyWithoutWorkflowInput inputExamples?: Prisma.WorkflowInputExampleCreateNestedManyWithoutWorkflowInput } export type WorkflowUncheckedCreateWithoutExecutionsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string tenantId?: string | null createdByUserId?: string | null appliesToAllTenants?: boolean blocks?: Prisma.WorkflowBlockUncheckedCreateNestedManyWithoutWorkflowInput inputExamples?: Prisma.WorkflowInputExampleUncheckedCreateNestedManyWithoutWorkflowInput } export type WorkflowCreateOrConnectWithoutExecutionsInput = { where: Prisma.WorkflowWhereUniqueInput create: Prisma.XOR } export type WorkflowUpsertWithoutExecutionsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.WorkflowWhereInput } export type WorkflowUpdateToOneWithWhereWithoutExecutionsInput = { where?: Prisma.WorkflowWhereInput data: Prisma.XOR } export type WorkflowUpdateWithoutExecutionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean tenant?: Prisma.TenantUpdateOneWithoutWorkflowsNestedInput createdByUser?: Prisma.UserUpdateOneWithoutWorkflowsCreatedNestedInput blocks?: Prisma.WorkflowBlockUpdateManyWithoutWorkflowNestedInput inputExamples?: Prisma.WorkflowInputExampleUpdateManyWithoutWorkflowNestedInput } export type WorkflowUncheckedUpdateWithoutExecutionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean blocks?: Prisma.WorkflowBlockUncheckedUpdateManyWithoutWorkflowNestedInput inputExamples?: Prisma.WorkflowInputExampleUncheckedUpdateManyWithoutWorkflowNestedInput } export type WorkflowCreateWithoutInputExamplesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string appliesToAllTenants?: boolean tenant?: Prisma.TenantCreateNestedOneWithoutWorkflowsInput createdByUser?: Prisma.UserCreateNestedOneWithoutWorkflowsCreatedInput blocks?: Prisma.WorkflowBlockCreateNestedManyWithoutWorkflowInput executions?: Prisma.WorkflowExecutionCreateNestedManyWithoutWorkflowInput } export type WorkflowUncheckedCreateWithoutInputExamplesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string tenantId?: string | null createdByUserId?: string | null appliesToAllTenants?: boolean blocks?: Prisma.WorkflowBlockUncheckedCreateNestedManyWithoutWorkflowInput executions?: Prisma.WorkflowExecutionUncheckedCreateNestedManyWithoutWorkflowInput } export type WorkflowCreateOrConnectWithoutInputExamplesInput = { where: Prisma.WorkflowWhereUniqueInput create: Prisma.XOR } export type WorkflowUpsertWithoutInputExamplesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.WorkflowWhereInput } export type WorkflowUpdateToOneWithWhereWithoutInputExamplesInput = { where?: Prisma.WorkflowWhereInput data: Prisma.XOR } export type WorkflowUpdateWithoutInputExamplesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean tenant?: Prisma.TenantUpdateOneWithoutWorkflowsNestedInput createdByUser?: Prisma.UserUpdateOneWithoutWorkflowsCreatedNestedInput blocks?: Prisma.WorkflowBlockUpdateManyWithoutWorkflowNestedInput executions?: Prisma.WorkflowExecutionUpdateManyWithoutWorkflowNestedInput } export type WorkflowUncheckedUpdateWithoutInputExamplesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean blocks?: Prisma.WorkflowBlockUncheckedUpdateManyWithoutWorkflowNestedInput executions?: Prisma.WorkflowExecutionUncheckedUpdateManyWithoutWorkflowNestedInput } export type WorkflowCreateManyCreatedByUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string tenantId?: string | null appliesToAllTenants?: boolean } export type WorkflowUpdateWithoutCreatedByUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean tenant?: Prisma.TenantUpdateOneWithoutWorkflowsNestedInput blocks?: Prisma.WorkflowBlockUpdateManyWithoutWorkflowNestedInput inputExamples?: Prisma.WorkflowInputExampleUpdateManyWithoutWorkflowNestedInput executions?: Prisma.WorkflowExecutionUpdateManyWithoutWorkflowNestedInput } export type WorkflowUncheckedUpdateWithoutCreatedByUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean blocks?: Prisma.WorkflowBlockUncheckedUpdateManyWithoutWorkflowNestedInput inputExamples?: Prisma.WorkflowInputExampleUncheckedUpdateManyWithoutWorkflowNestedInput executions?: Prisma.WorkflowExecutionUncheckedUpdateManyWithoutWorkflowNestedInput } export type WorkflowUncheckedUpdateManyWithoutCreatedByUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type WorkflowCreateManyTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string description: string status?: string createdByUserId?: string | null appliesToAllTenants?: boolean } export type WorkflowUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean createdByUser?: Prisma.UserUpdateOneWithoutWorkflowsCreatedNestedInput blocks?: Prisma.WorkflowBlockUpdateManyWithoutWorkflowNestedInput inputExamples?: Prisma.WorkflowInputExampleUpdateManyWithoutWorkflowNestedInput executions?: Prisma.WorkflowExecutionUpdateManyWithoutWorkflowNestedInput } export type WorkflowUncheckedUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean blocks?: Prisma.WorkflowBlockUncheckedUpdateManyWithoutWorkflowNestedInput inputExamples?: Prisma.WorkflowInputExampleUncheckedUpdateManyWithoutWorkflowNestedInput executions?: Prisma.WorkflowExecutionUncheckedUpdateManyWithoutWorkflowNestedInput } export type WorkflowUncheckedUpdateManyWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appliesToAllTenants?: Prisma.BoolFieldUpdateOperationsInput | boolean } /** * Count Type WorkflowCountOutputType */ export type WorkflowCountOutputType = { blocks: number inputExamples: number executions: number } export type WorkflowCountOutputTypeSelect = { blocks?: boolean | WorkflowCountOutputTypeCountBlocksArgs inputExamples?: boolean | WorkflowCountOutputTypeCountInputExamplesArgs executions?: boolean | WorkflowCountOutputTypeCountExecutionsArgs } /** * WorkflowCountOutputType without action */ export type WorkflowCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the WorkflowCountOutputType */ select?: Prisma.WorkflowCountOutputTypeSelect | null } /** * WorkflowCountOutputType without action */ export type WorkflowCountOutputTypeCountBlocksArgs = { where?: Prisma.WorkflowBlockWhereInput } /** * WorkflowCountOutputType without action */ export type WorkflowCountOutputTypeCountInputExamplesArgs = { where?: Prisma.WorkflowInputExampleWhereInput } /** * WorkflowCountOutputType without action */ export type WorkflowCountOutputTypeCountExecutionsArgs = { where?: Prisma.WorkflowExecutionWhereInput } export type WorkflowSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean description?: boolean status?: boolean tenantId?: boolean createdByUserId?: boolean appliesToAllTenants?: boolean tenant?: boolean | Prisma.Workflow$tenantArgs createdByUser?: boolean | Prisma.Workflow$createdByUserArgs blocks?: boolean | Prisma.Workflow$blocksArgs inputExamples?: boolean | Prisma.Workflow$inputExamplesArgs executions?: boolean | Prisma.Workflow$executionsArgs _count?: boolean | Prisma.WorkflowCountOutputTypeDefaultArgs }, ExtArgs["result"]["workflow"]> export type WorkflowSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean description?: boolean status?: boolean tenantId?: boolean createdByUserId?: boolean appliesToAllTenants?: boolean tenant?: boolean | Prisma.Workflow$tenantArgs createdByUser?: boolean | Prisma.Workflow$createdByUserArgs }, ExtArgs["result"]["workflow"]> export type WorkflowSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean description?: boolean status?: boolean tenantId?: boolean createdByUserId?: boolean appliesToAllTenants?: boolean tenant?: boolean | Prisma.Workflow$tenantArgs createdByUser?: boolean | Prisma.Workflow$createdByUserArgs }, ExtArgs["result"]["workflow"]> export type WorkflowSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean description?: boolean status?: boolean tenantId?: boolean createdByUserId?: boolean appliesToAllTenants?: boolean } export type WorkflowOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "name" | "description" | "status" | "tenantId" | "createdByUserId" | "appliesToAllTenants", ExtArgs["result"]["workflow"]> export type WorkflowInclude = { tenant?: boolean | Prisma.Workflow$tenantArgs createdByUser?: boolean | Prisma.Workflow$createdByUserArgs blocks?: boolean | Prisma.Workflow$blocksArgs inputExamples?: boolean | Prisma.Workflow$inputExamplesArgs executions?: boolean | Prisma.Workflow$executionsArgs _count?: boolean | Prisma.WorkflowCountOutputTypeDefaultArgs } export type WorkflowIncludeCreateManyAndReturn = { tenant?: boolean | Prisma.Workflow$tenantArgs createdByUser?: boolean | Prisma.Workflow$createdByUserArgs } export type WorkflowIncludeUpdateManyAndReturn = { tenant?: boolean | Prisma.Workflow$tenantArgs createdByUser?: boolean | Prisma.Workflow$createdByUserArgs } export type $WorkflowPayload = { name: "Workflow" objects: { tenant: Prisma.$TenantPayload | null createdByUser: Prisma.$UserPayload | null blocks: Prisma.$WorkflowBlockPayload[] inputExamples: Prisma.$WorkflowInputExamplePayload[] executions: Prisma.$WorkflowExecutionPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date name: string description: string status: string tenantId: string | null createdByUserId: string | null appliesToAllTenants: boolean }, ExtArgs["result"]["workflow"]> composites: {} } export type WorkflowGetPayload = runtime.Types.Result.GetResult export type WorkflowCountArgs = Omit & { select?: WorkflowCountAggregateInputType | true } export interface WorkflowDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Workflow'], meta: { name: 'Workflow' } } /** * Find zero or one Workflow that matches the filter. * @param {WorkflowFindUniqueArgs} args - Arguments to find a Workflow * @example * // Get one Workflow * const workflow = await prisma.workflow.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__WorkflowClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Workflow that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {WorkflowFindUniqueOrThrowArgs} args - Arguments to find a Workflow * @example * // Get one Workflow * const workflow = await prisma.workflow.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__WorkflowClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Workflow 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 {WorkflowFindFirstArgs} args - Arguments to find a Workflow * @example * // Get one Workflow * const workflow = await prisma.workflow.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__WorkflowClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Workflow 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 {WorkflowFindFirstOrThrowArgs} args - Arguments to find a Workflow * @example * // Get one Workflow * const workflow = await prisma.workflow.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__WorkflowClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Workflows 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 {WorkflowFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Workflows * const workflows = await prisma.workflow.findMany() * * // Get first 10 Workflows * const workflows = await prisma.workflow.findMany({ take: 10 }) * * // Only select the `id` * const workflowWithIdOnly = await prisma.workflow.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Workflow. * @param {WorkflowCreateArgs} args - Arguments to create a Workflow. * @example * // Create one Workflow * const Workflow = await prisma.workflow.create({ * data: { * // ... data to create a Workflow * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__WorkflowClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Workflows. * @param {WorkflowCreateManyArgs} args - Arguments to create many Workflows. * @example * // Create many Workflows * const workflow = await prisma.workflow.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Workflows and returns the data saved in the database. * @param {WorkflowCreateManyAndReturnArgs} args - Arguments to create many Workflows. * @example * // Create many Workflows * const workflow = await prisma.workflow.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Workflows and only return the `id` * const workflowWithIdOnly = await prisma.workflow.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Workflow. * @param {WorkflowDeleteArgs} args - Arguments to delete one Workflow. * @example * // Delete one Workflow * const Workflow = await prisma.workflow.delete({ * where: { * // ... filter to delete one Workflow * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__WorkflowClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Workflow. * @param {WorkflowUpdateArgs} args - Arguments to update one Workflow. * @example * // Update one Workflow * const workflow = await prisma.workflow.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__WorkflowClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Workflows. * @param {WorkflowDeleteManyArgs} args - Arguments to filter Workflows to delete. * @example * // Delete a few Workflows * const { count } = await prisma.workflow.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Workflows. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WorkflowUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Workflows * const workflow = await prisma.workflow.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Workflows and returns the data updated in the database. * @param {WorkflowUpdateManyAndReturnArgs} args - Arguments to update many Workflows. * @example * // Update many Workflows * const workflow = await prisma.workflow.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Workflows and only return the `id` * const workflowWithIdOnly = await prisma.workflow.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Workflow. * @param {WorkflowUpsertArgs} args - Arguments to update or create a Workflow. * @example * // Update or create a Workflow * const workflow = await prisma.workflow.upsert({ * create: { * // ... data to create a Workflow * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Workflow we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__WorkflowClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Workflows. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WorkflowCountArgs} args - Arguments to filter Workflows to count. * @example * // Count the number of Workflows * const count = await prisma.workflow.count({ * where: { * // ... the filter for the Workflows we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Workflow. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WorkflowAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Workflow. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WorkflowGroupByArgs} 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 WorkflowGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: WorkflowGroupByArgs['orderBy'] } : { orderBy?: WorkflowGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetWorkflowGroupByPayload : Prisma.PrismaPromise /** * Fields of the Workflow model */ readonly fields: WorkflowFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Workflow. * 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__WorkflowClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> createdByUser = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> blocks = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> inputExamples = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> executions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the Workflow model */ export interface WorkflowFieldRefs { readonly id: Prisma.FieldRef<"Workflow", 'String'> readonly createdAt: Prisma.FieldRef<"Workflow", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Workflow", 'DateTime'> readonly name: Prisma.FieldRef<"Workflow", 'String'> readonly description: Prisma.FieldRef<"Workflow", 'String'> readonly status: Prisma.FieldRef<"Workflow", 'String'> readonly tenantId: Prisma.FieldRef<"Workflow", 'String'> readonly createdByUserId: Prisma.FieldRef<"Workflow", 'String'> readonly appliesToAllTenants: Prisma.FieldRef<"Workflow", 'Boolean'> } // Custom InputTypes /** * Workflow findUnique */ export type WorkflowFindUniqueArgs = { /** * Select specific fields to fetch from the Workflow */ select?: Prisma.WorkflowSelect | null /** * Omit specific fields from the Workflow */ omit?: Prisma.WorkflowOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowInclude | null /** * Filter, which Workflow to fetch. */ where: Prisma.WorkflowWhereUniqueInput } /** * Workflow findUniqueOrThrow */ export type WorkflowFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Workflow */ select?: Prisma.WorkflowSelect | null /** * Omit specific fields from the Workflow */ omit?: Prisma.WorkflowOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowInclude | null /** * Filter, which Workflow to fetch. */ where: Prisma.WorkflowWhereUniqueInput } /** * Workflow findFirst */ export type WorkflowFindFirstArgs = { /** * Select specific fields to fetch from the Workflow */ select?: Prisma.WorkflowSelect | null /** * Omit specific fields from the Workflow */ omit?: Prisma.WorkflowOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowInclude | null /** * Filter, which Workflow to fetch. */ where?: Prisma.WorkflowWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Workflows to fetch. */ orderBy?: Prisma.WorkflowOrderByWithRelationInput | Prisma.WorkflowOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Workflows. */ cursor?: Prisma.WorkflowWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Workflows 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` Workflows. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Workflows. */ distinct?: Prisma.WorkflowScalarFieldEnum | Prisma.WorkflowScalarFieldEnum[] } /** * Workflow findFirstOrThrow */ export type WorkflowFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Workflow */ select?: Prisma.WorkflowSelect | null /** * Omit specific fields from the Workflow */ omit?: Prisma.WorkflowOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowInclude | null /** * Filter, which Workflow to fetch. */ where?: Prisma.WorkflowWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Workflows to fetch. */ orderBy?: Prisma.WorkflowOrderByWithRelationInput | Prisma.WorkflowOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Workflows. */ cursor?: Prisma.WorkflowWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Workflows 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` Workflows. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Workflows. */ distinct?: Prisma.WorkflowScalarFieldEnum | Prisma.WorkflowScalarFieldEnum[] } /** * Workflow findMany */ export type WorkflowFindManyArgs = { /** * Select specific fields to fetch from the Workflow */ select?: Prisma.WorkflowSelect | null /** * Omit specific fields from the Workflow */ omit?: Prisma.WorkflowOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowInclude | null /** * Filter, which Workflows to fetch. */ where?: Prisma.WorkflowWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Workflows to fetch. */ orderBy?: Prisma.WorkflowOrderByWithRelationInput | Prisma.WorkflowOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Workflows. */ cursor?: Prisma.WorkflowWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Workflows 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` Workflows. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Workflows. */ distinct?: Prisma.WorkflowScalarFieldEnum | Prisma.WorkflowScalarFieldEnum[] } /** * Workflow create */ export type WorkflowCreateArgs = { /** * Select specific fields to fetch from the Workflow */ select?: Prisma.WorkflowSelect | null /** * Omit specific fields from the Workflow */ omit?: Prisma.WorkflowOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowInclude | null /** * The data needed to create a Workflow. */ data: Prisma.XOR } /** * Workflow createMany */ export type WorkflowCreateManyArgs = { /** * The data used to create many Workflows. */ data: Prisma.WorkflowCreateManyInput | Prisma.WorkflowCreateManyInput[] skipDuplicates?: boolean } /** * Workflow createManyAndReturn */ export type WorkflowCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Workflow */ select?: Prisma.WorkflowSelectCreateManyAndReturn | null /** * Omit specific fields from the Workflow */ omit?: Prisma.WorkflowOmit | null /** * The data used to create many Workflows. */ data: Prisma.WorkflowCreateManyInput | Prisma.WorkflowCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowIncludeCreateManyAndReturn | null } /** * Workflow update */ export type WorkflowUpdateArgs = { /** * Select specific fields to fetch from the Workflow */ select?: Prisma.WorkflowSelect | null /** * Omit specific fields from the Workflow */ omit?: Prisma.WorkflowOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowInclude | null /** * The data needed to update a Workflow. */ data: Prisma.XOR /** * Choose, which Workflow to update. */ where: Prisma.WorkflowWhereUniqueInput } /** * Workflow updateMany */ export type WorkflowUpdateManyArgs = { /** * The data used to update Workflows. */ data: Prisma.XOR /** * Filter which Workflows to update */ where?: Prisma.WorkflowWhereInput /** * Limit how many Workflows to update. */ limit?: number } /** * Workflow updateManyAndReturn */ export type WorkflowUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Workflow */ select?: Prisma.WorkflowSelectUpdateManyAndReturn | null /** * Omit specific fields from the Workflow */ omit?: Prisma.WorkflowOmit | null /** * The data used to update Workflows. */ data: Prisma.XOR /** * Filter which Workflows to update */ where?: Prisma.WorkflowWhereInput /** * Limit how many Workflows to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowIncludeUpdateManyAndReturn | null } /** * Workflow upsert */ export type WorkflowUpsertArgs = { /** * Select specific fields to fetch from the Workflow */ select?: Prisma.WorkflowSelect | null /** * Omit specific fields from the Workflow */ omit?: Prisma.WorkflowOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowInclude | null /** * The filter to search for the Workflow to update in case it exists. */ where: Prisma.WorkflowWhereUniqueInput /** * In case the Workflow found by the `where` argument doesn't exist, create a new Workflow with this data. */ create: Prisma.XOR /** * In case the Workflow was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Workflow delete */ export type WorkflowDeleteArgs = { /** * Select specific fields to fetch from the Workflow */ select?: Prisma.WorkflowSelect | null /** * Omit specific fields from the Workflow */ omit?: Prisma.WorkflowOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowInclude | null /** * Filter which Workflow to delete. */ where: Prisma.WorkflowWhereUniqueInput } /** * Workflow deleteMany */ export type WorkflowDeleteManyArgs = { /** * Filter which Workflows to delete */ where?: Prisma.WorkflowWhereInput /** * Limit how many Workflows to delete. */ limit?: number } /** * Workflow.tenant */ export type Workflow$tenantArgs = { /** * Select specific fields to fetch from the Tenant */ select?: Prisma.TenantSelect | null /** * Omit specific fields from the Tenant */ omit?: Prisma.TenantOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantInclude | null where?: Prisma.TenantWhereInput } /** * Workflow.createdByUser */ export type Workflow$createdByUserArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null where?: Prisma.UserWhereInput } /** * Workflow.blocks */ export type Workflow$blocksArgs = { /** * Select specific fields to fetch from the WorkflowBlock */ select?: Prisma.WorkflowBlockSelect | null /** * Omit specific fields from the WorkflowBlock */ omit?: Prisma.WorkflowBlockOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowBlockInclude | null where?: Prisma.WorkflowBlockWhereInput orderBy?: Prisma.WorkflowBlockOrderByWithRelationInput | Prisma.WorkflowBlockOrderByWithRelationInput[] cursor?: Prisma.WorkflowBlockWhereUniqueInput take?: number skip?: number distinct?: Prisma.WorkflowBlockScalarFieldEnum | Prisma.WorkflowBlockScalarFieldEnum[] } /** * Workflow.inputExamples */ export type Workflow$inputExamplesArgs = { /** * Select specific fields to fetch from the WorkflowInputExample */ select?: Prisma.WorkflowInputExampleSelect | null /** * Omit specific fields from the WorkflowInputExample */ omit?: Prisma.WorkflowInputExampleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowInputExampleInclude | null where?: Prisma.WorkflowInputExampleWhereInput orderBy?: Prisma.WorkflowInputExampleOrderByWithRelationInput | Prisma.WorkflowInputExampleOrderByWithRelationInput[] cursor?: Prisma.WorkflowInputExampleWhereUniqueInput take?: number skip?: number distinct?: Prisma.WorkflowInputExampleScalarFieldEnum | Prisma.WorkflowInputExampleScalarFieldEnum[] } /** * Workflow.executions */ export type Workflow$executionsArgs = { /** * Select specific fields to fetch from the WorkflowExecution */ select?: Prisma.WorkflowExecutionSelect | null /** * Omit specific fields from the WorkflowExecution */ omit?: Prisma.WorkflowExecutionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowExecutionInclude | null where?: Prisma.WorkflowExecutionWhereInput orderBy?: Prisma.WorkflowExecutionOrderByWithRelationInput | Prisma.WorkflowExecutionOrderByWithRelationInput[] cursor?: Prisma.WorkflowExecutionWhereUniqueInput take?: number skip?: number distinct?: Prisma.WorkflowExecutionScalarFieldEnum | Prisma.WorkflowExecutionScalarFieldEnum[] } /** * Workflow without action */ export type WorkflowDefaultArgs = { /** * Select specific fields to fetch from the Workflow */ select?: Prisma.WorkflowSelect | null /** * Omit specific fields from the Workflow */ omit?: Prisma.WorkflowOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkflowInclude | null }