/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AutomationCredential` 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 AutomationCredential * */ export type AutomationCredentialModel = runtime.Types.Result.DefaultSelection export type AggregateAutomationCredential = { _count: AutomationCredentialCountAggregateOutputType | null _min: AutomationCredentialMinAggregateOutputType | null _max: AutomationCredentialMaxAggregateOutputType | null } export type AutomationCredentialMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null name: string | null kind: string | null encryptedValue: string | null createdByUserId: string | null archivedAt: Date | null } export type AutomationCredentialMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null name: string | null kind: string | null encryptedValue: string | null createdByUserId: string | null archivedAt: Date | null } export type AutomationCredentialCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number name: number kind: number encryptedValue: number metadata: number createdByUserId: number archivedAt: number _all: number } export type AutomationCredentialMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true name?: true kind?: true encryptedValue?: true createdByUserId?: true archivedAt?: true } export type AutomationCredentialMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true name?: true kind?: true encryptedValue?: true createdByUserId?: true archivedAt?: true } export type AutomationCredentialCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true name?: true kind?: true encryptedValue?: true metadata?: true createdByUserId?: true archivedAt?: true _all?: true } export type AutomationCredentialAggregateArgs = { /** * Filter which AutomationCredential to aggregate. */ where?: Prisma.AutomationCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutomationCredentials to fetch. */ orderBy?: Prisma.AutomationCredentialOrderByWithRelationInput | Prisma.AutomationCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AutomationCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutomationCredentials 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` AutomationCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AutomationCredentials **/ _count?: true | AutomationCredentialCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AutomationCredentialMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AutomationCredentialMaxAggregateInputType } export type GetAutomationCredentialAggregateType = { [P in keyof T & keyof AggregateAutomationCredential]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AutomationCredentialGroupByArgs = { where?: Prisma.AutomationCredentialWhereInput orderBy?: Prisma.AutomationCredentialOrderByWithAggregationInput | Prisma.AutomationCredentialOrderByWithAggregationInput[] by: Prisma.AutomationCredentialScalarFieldEnum[] | Prisma.AutomationCredentialScalarFieldEnum having?: Prisma.AutomationCredentialScalarWhereWithAggregatesInput take?: number skip?: number _count?: AutomationCredentialCountAggregateInputType | true _min?: AutomationCredentialMinAggregateInputType _max?: AutomationCredentialMaxAggregateInputType } export type AutomationCredentialGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string name: string kind: string encryptedValue: string metadata: runtime.JsonValue createdByUserId: string | null archivedAt: Date | null _count: AutomationCredentialCountAggregateOutputType | null _min: AutomationCredentialMinAggregateOutputType | null _max: AutomationCredentialMaxAggregateOutputType | null } export type GetAutomationCredentialGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AutomationCredentialGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AutomationCredentialWhereInput = { AND?: Prisma.AutomationCredentialWhereInput | Prisma.AutomationCredentialWhereInput[] OR?: Prisma.AutomationCredentialWhereInput[] NOT?: Prisma.AutomationCredentialWhereInput | Prisma.AutomationCredentialWhereInput[] id?: Prisma.StringFilter<"AutomationCredential"> | string createdAt?: Prisma.DateTimeFilter<"AutomationCredential"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AutomationCredential"> | Date | string tenantId?: Prisma.StringFilter<"AutomationCredential"> | string name?: Prisma.StringFilter<"AutomationCredential"> | string kind?: Prisma.StringFilter<"AutomationCredential"> | string encryptedValue?: Prisma.StringFilter<"AutomationCredential"> | string metadata?: Prisma.JsonFilter<"AutomationCredential"> createdByUserId?: Prisma.StringNullableFilter<"AutomationCredential"> | string | null archivedAt?: Prisma.DateTimeNullableFilter<"AutomationCredential"> | Date | string | null } export type AutomationCredentialOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder kind?: Prisma.SortOrder encryptedValue?: Prisma.SortOrder metadata?: Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder } export type AutomationCredentialWhereUniqueInput = Prisma.AtLeast<{ id?: string tenantId_name?: Prisma.AutomationCredentialTenantIdNameCompoundUniqueInput AND?: Prisma.AutomationCredentialWhereInput | Prisma.AutomationCredentialWhereInput[] OR?: Prisma.AutomationCredentialWhereInput[] NOT?: Prisma.AutomationCredentialWhereInput | Prisma.AutomationCredentialWhereInput[] createdAt?: Prisma.DateTimeFilter<"AutomationCredential"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AutomationCredential"> | Date | string tenantId?: Prisma.StringFilter<"AutomationCredential"> | string name?: Prisma.StringFilter<"AutomationCredential"> | string kind?: Prisma.StringFilter<"AutomationCredential"> | string encryptedValue?: Prisma.StringFilter<"AutomationCredential"> | string metadata?: Prisma.JsonFilter<"AutomationCredential"> createdByUserId?: Prisma.StringNullableFilter<"AutomationCredential"> | string | null archivedAt?: Prisma.DateTimeNullableFilter<"AutomationCredential"> | Date | string | null }, "id" | "tenantId_name"> export type AutomationCredentialOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder kind?: Prisma.SortOrder encryptedValue?: Prisma.SortOrder metadata?: Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.AutomationCredentialCountOrderByAggregateInput _max?: Prisma.AutomationCredentialMaxOrderByAggregateInput _min?: Prisma.AutomationCredentialMinOrderByAggregateInput } export type AutomationCredentialScalarWhereWithAggregatesInput = { AND?: Prisma.AutomationCredentialScalarWhereWithAggregatesInput | Prisma.AutomationCredentialScalarWhereWithAggregatesInput[] OR?: Prisma.AutomationCredentialScalarWhereWithAggregatesInput[] NOT?: Prisma.AutomationCredentialScalarWhereWithAggregatesInput | Prisma.AutomationCredentialScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"AutomationCredential"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"AutomationCredential"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AutomationCredential"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"AutomationCredential"> | string name?: Prisma.StringWithAggregatesFilter<"AutomationCredential"> | string kind?: Prisma.StringWithAggregatesFilter<"AutomationCredential"> | string encryptedValue?: Prisma.StringWithAggregatesFilter<"AutomationCredential"> | string metadata?: Prisma.JsonWithAggregatesFilter<"AutomationCredential"> createdByUserId?: Prisma.StringNullableWithAggregatesFilter<"AutomationCredential"> | string | null archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AutomationCredential"> | Date | string | null } export type AutomationCredentialCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string name: string kind: string encryptedValue: string metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue createdByUserId?: string | null archivedAt?: Date | string | null } export type AutomationCredentialUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string name: string kind: string encryptedValue: string metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue createdByUserId?: string | null archivedAt?: Date | string | null } export type AutomationCredentialUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string kind?: Prisma.StringFieldUpdateOperationsInput | string encryptedValue?: Prisma.StringFieldUpdateOperationsInput | string metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type AutomationCredentialUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string kind?: Prisma.StringFieldUpdateOperationsInput | string encryptedValue?: Prisma.StringFieldUpdateOperationsInput | string metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type AutomationCredentialCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string name: string kind: string encryptedValue: string metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue createdByUserId?: string | null archivedAt?: Date | string | null } export type AutomationCredentialUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string kind?: Prisma.StringFieldUpdateOperationsInput | string encryptedValue?: Prisma.StringFieldUpdateOperationsInput | string metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type AutomationCredentialUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string kind?: Prisma.StringFieldUpdateOperationsInput | string encryptedValue?: Prisma.StringFieldUpdateOperationsInput | string metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type AutomationCredentialTenantIdNameCompoundUniqueInput = { tenantId: string name: string } export type AutomationCredentialCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder kind?: Prisma.SortOrder encryptedValue?: Prisma.SortOrder metadata?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type AutomationCredentialMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder kind?: Prisma.SortOrder encryptedValue?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type AutomationCredentialMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder kind?: Prisma.SortOrder encryptedValue?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type AutomationCredentialSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean name?: boolean kind?: boolean encryptedValue?: boolean metadata?: boolean createdByUserId?: boolean archivedAt?: boolean }, ExtArgs["result"]["automationCredential"]> export type AutomationCredentialSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean name?: boolean kind?: boolean encryptedValue?: boolean metadata?: boolean createdByUserId?: boolean archivedAt?: boolean }, ExtArgs["result"]["automationCredential"]> export type AutomationCredentialSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean name?: boolean kind?: boolean encryptedValue?: boolean metadata?: boolean createdByUserId?: boolean archivedAt?: boolean }, ExtArgs["result"]["automationCredential"]> export type AutomationCredentialSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean name?: boolean kind?: boolean encryptedValue?: boolean metadata?: boolean createdByUserId?: boolean archivedAt?: boolean } export type AutomationCredentialOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "name" | "kind" | "encryptedValue" | "metadata" | "createdByUserId" | "archivedAt", ExtArgs["result"]["automationCredential"]> export type $AutomationCredentialPayload = { name: "AutomationCredential" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string name: string kind: string encryptedValue: string metadata: runtime.JsonValue createdByUserId: string | null archivedAt: Date | null }, ExtArgs["result"]["automationCredential"]> composites: {} } export type AutomationCredentialGetPayload = runtime.Types.Result.GetResult export type AutomationCredentialCountArgs = Omit & { select?: AutomationCredentialCountAggregateInputType | true } export interface AutomationCredentialDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AutomationCredential'], meta: { name: 'AutomationCredential' } } /** * Find zero or one AutomationCredential that matches the filter. * @param {AutomationCredentialFindUniqueArgs} args - Arguments to find a AutomationCredential * @example * // Get one AutomationCredential * const automationCredential = await prisma.automationCredential.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationCredentialClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AutomationCredential that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AutomationCredentialFindUniqueOrThrowArgs} args - Arguments to find a AutomationCredential * @example * // Get one AutomationCredential * const automationCredential = await prisma.automationCredential.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationCredentialClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AutomationCredential 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 {AutomationCredentialFindFirstArgs} args - Arguments to find a AutomationCredential * @example * // Get one AutomationCredential * const automationCredential = await prisma.automationCredential.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AutomationCredentialClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AutomationCredential 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 {AutomationCredentialFindFirstOrThrowArgs} args - Arguments to find a AutomationCredential * @example * // Get one AutomationCredential * const automationCredential = await prisma.automationCredential.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AutomationCredentialClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AutomationCredentials 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 {AutomationCredentialFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AutomationCredentials * const automationCredentials = await prisma.automationCredential.findMany() * * // Get first 10 AutomationCredentials * const automationCredentials = await prisma.automationCredential.findMany({ take: 10 }) * * // Only select the `id` * const automationCredentialWithIdOnly = await prisma.automationCredential.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AutomationCredential. * @param {AutomationCredentialCreateArgs} args - Arguments to create a AutomationCredential. * @example * // Create one AutomationCredential * const AutomationCredential = await prisma.automationCredential.create({ * data: { * // ... data to create a AutomationCredential * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationCredentialClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AutomationCredentials. * @param {AutomationCredentialCreateManyArgs} args - Arguments to create many AutomationCredentials. * @example * // Create many AutomationCredentials * const automationCredential = await prisma.automationCredential.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AutomationCredentials and returns the data saved in the database. * @param {AutomationCredentialCreateManyAndReturnArgs} args - Arguments to create many AutomationCredentials. * @example * // Create many AutomationCredentials * const automationCredential = await prisma.automationCredential.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AutomationCredentials and only return the `id` * const automationCredentialWithIdOnly = await prisma.automationCredential.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 AutomationCredential. * @param {AutomationCredentialDeleteArgs} args - Arguments to delete one AutomationCredential. * @example * // Delete one AutomationCredential * const AutomationCredential = await prisma.automationCredential.delete({ * where: { * // ... filter to delete one AutomationCredential * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationCredentialClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AutomationCredential. * @param {AutomationCredentialUpdateArgs} args - Arguments to update one AutomationCredential. * @example * // Update one AutomationCredential * const automationCredential = await prisma.automationCredential.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationCredentialClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AutomationCredentials. * @param {AutomationCredentialDeleteManyArgs} args - Arguments to filter AutomationCredentials to delete. * @example * // Delete a few AutomationCredentials * const { count } = await prisma.automationCredential.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AutomationCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutomationCredentialUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AutomationCredentials * const automationCredential = await prisma.automationCredential.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AutomationCredentials and returns the data updated in the database. * @param {AutomationCredentialUpdateManyAndReturnArgs} args - Arguments to update many AutomationCredentials. * @example * // Update many AutomationCredentials * const automationCredential = await prisma.automationCredential.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AutomationCredentials and only return the `id` * const automationCredentialWithIdOnly = await prisma.automationCredential.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 AutomationCredential. * @param {AutomationCredentialUpsertArgs} args - Arguments to update or create a AutomationCredential. * @example * // Update or create a AutomationCredential * const automationCredential = await prisma.automationCredential.upsert({ * create: { * // ... data to create a AutomationCredential * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AutomationCredential we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationCredentialClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AutomationCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutomationCredentialCountArgs} args - Arguments to filter AutomationCredentials to count. * @example * // Count the number of AutomationCredentials * const count = await prisma.automationCredential.count({ * where: { * // ... the filter for the AutomationCredentials 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 AutomationCredential. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutomationCredentialAggregateArgs} 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 AutomationCredential. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutomationCredentialGroupByArgs} 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 AutomationCredentialGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AutomationCredentialGroupByArgs['orderBy'] } : { orderBy?: AutomationCredentialGroupByArgs['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 ? GetAutomationCredentialGroupByPayload : Prisma.PrismaPromise /** * Fields of the AutomationCredential model */ readonly fields: AutomationCredentialFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AutomationCredential. * 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__AutomationCredentialClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * 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 AutomationCredential model */ export interface AutomationCredentialFieldRefs { readonly id: Prisma.FieldRef<"AutomationCredential", 'String'> readonly createdAt: Prisma.FieldRef<"AutomationCredential", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"AutomationCredential", 'DateTime'> readonly tenantId: Prisma.FieldRef<"AutomationCredential", 'String'> readonly name: Prisma.FieldRef<"AutomationCredential", 'String'> readonly kind: Prisma.FieldRef<"AutomationCredential", 'String'> readonly encryptedValue: Prisma.FieldRef<"AutomationCredential", 'String'> readonly metadata: Prisma.FieldRef<"AutomationCredential", 'Json'> readonly createdByUserId: Prisma.FieldRef<"AutomationCredential", 'String'> readonly archivedAt: Prisma.FieldRef<"AutomationCredential", 'DateTime'> } // Custom InputTypes /** * AutomationCredential findUnique */ export type AutomationCredentialFindUniqueArgs = { /** * Select specific fields to fetch from the AutomationCredential */ select?: Prisma.AutomationCredentialSelect | null /** * Omit specific fields from the AutomationCredential */ omit?: Prisma.AutomationCredentialOmit | null /** * Filter, which AutomationCredential to fetch. */ where: Prisma.AutomationCredentialWhereUniqueInput } /** * AutomationCredential findUniqueOrThrow */ export type AutomationCredentialFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AutomationCredential */ select?: Prisma.AutomationCredentialSelect | null /** * Omit specific fields from the AutomationCredential */ omit?: Prisma.AutomationCredentialOmit | null /** * Filter, which AutomationCredential to fetch. */ where: Prisma.AutomationCredentialWhereUniqueInput } /** * AutomationCredential findFirst */ export type AutomationCredentialFindFirstArgs = { /** * Select specific fields to fetch from the AutomationCredential */ select?: Prisma.AutomationCredentialSelect | null /** * Omit specific fields from the AutomationCredential */ omit?: Prisma.AutomationCredentialOmit | null /** * Filter, which AutomationCredential to fetch. */ where?: Prisma.AutomationCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutomationCredentials to fetch. */ orderBy?: Prisma.AutomationCredentialOrderByWithRelationInput | Prisma.AutomationCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AutomationCredentials. */ cursor?: Prisma.AutomationCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutomationCredentials 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` AutomationCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AutomationCredentials. */ distinct?: Prisma.AutomationCredentialScalarFieldEnum | Prisma.AutomationCredentialScalarFieldEnum[] } /** * AutomationCredential findFirstOrThrow */ export type AutomationCredentialFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AutomationCredential */ select?: Prisma.AutomationCredentialSelect | null /** * Omit specific fields from the AutomationCredential */ omit?: Prisma.AutomationCredentialOmit | null /** * Filter, which AutomationCredential to fetch. */ where?: Prisma.AutomationCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutomationCredentials to fetch. */ orderBy?: Prisma.AutomationCredentialOrderByWithRelationInput | Prisma.AutomationCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AutomationCredentials. */ cursor?: Prisma.AutomationCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutomationCredentials 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` AutomationCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AutomationCredentials. */ distinct?: Prisma.AutomationCredentialScalarFieldEnum | Prisma.AutomationCredentialScalarFieldEnum[] } /** * AutomationCredential findMany */ export type AutomationCredentialFindManyArgs = { /** * Select specific fields to fetch from the AutomationCredential */ select?: Prisma.AutomationCredentialSelect | null /** * Omit specific fields from the AutomationCredential */ omit?: Prisma.AutomationCredentialOmit | null /** * Filter, which AutomationCredentials to fetch. */ where?: Prisma.AutomationCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutomationCredentials to fetch. */ orderBy?: Prisma.AutomationCredentialOrderByWithRelationInput | Prisma.AutomationCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AutomationCredentials. */ cursor?: Prisma.AutomationCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutomationCredentials 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` AutomationCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AutomationCredentials. */ distinct?: Prisma.AutomationCredentialScalarFieldEnum | Prisma.AutomationCredentialScalarFieldEnum[] } /** * AutomationCredential create */ export type AutomationCredentialCreateArgs = { /** * Select specific fields to fetch from the AutomationCredential */ select?: Prisma.AutomationCredentialSelect | null /** * Omit specific fields from the AutomationCredential */ omit?: Prisma.AutomationCredentialOmit | null /** * The data needed to create a AutomationCredential. */ data: Prisma.XOR } /** * AutomationCredential createMany */ export type AutomationCredentialCreateManyArgs = { /** * The data used to create many AutomationCredentials. */ data: Prisma.AutomationCredentialCreateManyInput | Prisma.AutomationCredentialCreateManyInput[] skipDuplicates?: boolean } /** * AutomationCredential createManyAndReturn */ export type AutomationCredentialCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AutomationCredential */ select?: Prisma.AutomationCredentialSelectCreateManyAndReturn | null /** * Omit specific fields from the AutomationCredential */ omit?: Prisma.AutomationCredentialOmit | null /** * The data used to create many AutomationCredentials. */ data: Prisma.AutomationCredentialCreateManyInput | Prisma.AutomationCredentialCreateManyInput[] skipDuplicates?: boolean } /** * AutomationCredential update */ export type AutomationCredentialUpdateArgs = { /** * Select specific fields to fetch from the AutomationCredential */ select?: Prisma.AutomationCredentialSelect | null /** * Omit specific fields from the AutomationCredential */ omit?: Prisma.AutomationCredentialOmit | null /** * The data needed to update a AutomationCredential. */ data: Prisma.XOR /** * Choose, which AutomationCredential to update. */ where: Prisma.AutomationCredentialWhereUniqueInput } /** * AutomationCredential updateMany */ export type AutomationCredentialUpdateManyArgs = { /** * The data used to update AutomationCredentials. */ data: Prisma.XOR /** * Filter which AutomationCredentials to update */ where?: Prisma.AutomationCredentialWhereInput /** * Limit how many AutomationCredentials to update. */ limit?: number } /** * AutomationCredential updateManyAndReturn */ export type AutomationCredentialUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AutomationCredential */ select?: Prisma.AutomationCredentialSelectUpdateManyAndReturn | null /** * Omit specific fields from the AutomationCredential */ omit?: Prisma.AutomationCredentialOmit | null /** * The data used to update AutomationCredentials. */ data: Prisma.XOR /** * Filter which AutomationCredentials to update */ where?: Prisma.AutomationCredentialWhereInput /** * Limit how many AutomationCredentials to update. */ limit?: number } /** * AutomationCredential upsert */ export type AutomationCredentialUpsertArgs = { /** * Select specific fields to fetch from the AutomationCredential */ select?: Prisma.AutomationCredentialSelect | null /** * Omit specific fields from the AutomationCredential */ omit?: Prisma.AutomationCredentialOmit | null /** * The filter to search for the AutomationCredential to update in case it exists. */ where: Prisma.AutomationCredentialWhereUniqueInput /** * In case the AutomationCredential found by the `where` argument doesn't exist, create a new AutomationCredential with this data. */ create: Prisma.XOR /** * In case the AutomationCredential was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AutomationCredential delete */ export type AutomationCredentialDeleteArgs = { /** * Select specific fields to fetch from the AutomationCredential */ select?: Prisma.AutomationCredentialSelect | null /** * Omit specific fields from the AutomationCredential */ omit?: Prisma.AutomationCredentialOmit | null /** * Filter which AutomationCredential to delete. */ where: Prisma.AutomationCredentialWhereUniqueInput } /** * AutomationCredential deleteMany */ export type AutomationCredentialDeleteManyArgs = { /** * Filter which AutomationCredentials to delete */ where?: Prisma.AutomationCredentialWhereInput /** * Limit how many AutomationCredentials to delete. */ limit?: number } /** * AutomationCredential without action */ export type AutomationCredentialDefaultArgs = { /** * Select specific fields to fetch from the AutomationCredential */ select?: Prisma.AutomationCredentialSelect | null /** * Omit specific fields from the AutomationCredential */ omit?: Prisma.AutomationCredentialOmit | null }