@friggframework/core 2.0.0--canary.522.893db5d.0 → 2.0.0--canary.545.35013d9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,6 +96,13 @@ export type AdminProcess = $Result.DefaultSelection<Prisma.$AdminProcessPayload>
96
96
  * Script scheduling configuration for hybrid scheduling (SQS + EventBridge)
97
97
  */
98
98
  export type ScriptSchedule = $Result.DefaultSelection<Prisma.$ScriptSchedulePayload>
99
+ /**
100
+ * Model ScheduledJob
101
+ * One-time scheduled jobs for poll-and-dispatch scheduling pattern.
102
+ * Used by providers without native one-time scheduling APIs (e.g., Netlify).
103
+ * A cron function queries for due jobs and dispatches them to a queue.
104
+ */
105
+ export type ScheduledJob = $Result.DefaultSelection<Prisma.$ScheduledJobPayload>
99
106
 
100
107
  /**
101
108
  * Enums
@@ -437,6 +444,16 @@ export class PrismaClient<
437
444
  * ```
438
445
  */
439
446
  get scriptSchedule(): Prisma.ScriptScheduleDelegate<ExtArgs, ClientOptions>;
447
+
448
+ /**
449
+ * `prisma.scheduledJob`: Exposes CRUD operations for the **ScheduledJob** model.
450
+ * Example usage:
451
+ * ```ts
452
+ * // Fetch zero or more ScheduledJobs
453
+ * const scheduledJobs = await prisma.scheduledJob.findMany()
454
+ * ```
455
+ */
456
+ get scheduledJob(): Prisma.ScheduledJobDelegate<ExtArgs, ClientOptions>;
440
457
  }
441
458
 
442
459
  export namespace Prisma {
@@ -891,7 +908,8 @@ export namespace Prisma {
891
908
  State: 'State',
892
909
  WebsocketConnection: 'WebsocketConnection',
893
910
  AdminProcess: 'AdminProcess',
894
- ScriptSchedule: 'ScriptSchedule'
911
+ ScriptSchedule: 'ScriptSchedule',
912
+ ScheduledJob: 'ScheduledJob'
895
913
  };
896
914
 
897
915
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -910,7 +928,7 @@ export namespace Prisma {
910
928
  omit: GlobalOmitOptions
911
929
  }
912
930
  meta: {
913
- modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminProcess" | "scriptSchedule"
931
+ modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminProcess" | "scriptSchedule" | "scheduledJob"
914
932
  txIsolationLevel: Prisma.TransactionIsolationLevel
915
933
  }
916
934
  model: {
@@ -2024,6 +2042,80 @@ export namespace Prisma {
2024
2042
  }
2025
2043
  }
2026
2044
  }
2045
+ ScheduledJob: {
2046
+ payload: Prisma.$ScheduledJobPayload<ExtArgs>
2047
+ fields: Prisma.ScheduledJobFieldRefs
2048
+ operations: {
2049
+ findUnique: {
2050
+ args: Prisma.ScheduledJobFindUniqueArgs<ExtArgs>
2051
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload> | null
2052
+ }
2053
+ findUniqueOrThrow: {
2054
+ args: Prisma.ScheduledJobFindUniqueOrThrowArgs<ExtArgs>
2055
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2056
+ }
2057
+ findFirst: {
2058
+ args: Prisma.ScheduledJobFindFirstArgs<ExtArgs>
2059
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload> | null
2060
+ }
2061
+ findFirstOrThrow: {
2062
+ args: Prisma.ScheduledJobFindFirstOrThrowArgs<ExtArgs>
2063
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2064
+ }
2065
+ findMany: {
2066
+ args: Prisma.ScheduledJobFindManyArgs<ExtArgs>
2067
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>[]
2068
+ }
2069
+ create: {
2070
+ args: Prisma.ScheduledJobCreateArgs<ExtArgs>
2071
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2072
+ }
2073
+ createMany: {
2074
+ args: Prisma.ScheduledJobCreateManyArgs<ExtArgs>
2075
+ result: BatchPayload
2076
+ }
2077
+ createManyAndReturn: {
2078
+ args: Prisma.ScheduledJobCreateManyAndReturnArgs<ExtArgs>
2079
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>[]
2080
+ }
2081
+ delete: {
2082
+ args: Prisma.ScheduledJobDeleteArgs<ExtArgs>
2083
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2084
+ }
2085
+ update: {
2086
+ args: Prisma.ScheduledJobUpdateArgs<ExtArgs>
2087
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2088
+ }
2089
+ deleteMany: {
2090
+ args: Prisma.ScheduledJobDeleteManyArgs<ExtArgs>
2091
+ result: BatchPayload
2092
+ }
2093
+ updateMany: {
2094
+ args: Prisma.ScheduledJobUpdateManyArgs<ExtArgs>
2095
+ result: BatchPayload
2096
+ }
2097
+ updateManyAndReturn: {
2098
+ args: Prisma.ScheduledJobUpdateManyAndReturnArgs<ExtArgs>
2099
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>[]
2100
+ }
2101
+ upsert: {
2102
+ args: Prisma.ScheduledJobUpsertArgs<ExtArgs>
2103
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2104
+ }
2105
+ aggregate: {
2106
+ args: Prisma.ScheduledJobAggregateArgs<ExtArgs>
2107
+ result: $Utils.Optional<AggregateScheduledJob>
2108
+ }
2109
+ groupBy: {
2110
+ args: Prisma.ScheduledJobGroupByArgs<ExtArgs>
2111
+ result: $Utils.Optional<ScheduledJobGroupByOutputType>[]
2112
+ }
2113
+ count: {
2114
+ args: Prisma.ScheduledJobCountArgs<ExtArgs>
2115
+ result: $Utils.Optional<ScheduledJobCountAggregateOutputType> | number
2116
+ }
2117
+ }
2118
+ }
2027
2119
  }
2028
2120
  } & {
2029
2121
  other: {
@@ -2131,6 +2223,7 @@ export namespace Prisma {
2131
2223
  websocketConnection?: WebsocketConnectionOmit
2132
2224
  adminProcess?: AdminProcessOmit
2133
2225
  scriptSchedule?: ScriptScheduleOmit
2226
+ scheduledJob?: ScheduledJobOmit
2134
2227
  }
2135
2228
 
2136
2229
  /* Types for Logging */
@@ -19967,123 +20060,1187 @@ export namespace Prisma {
19967
20060
 
19968
20061
 
19969
20062
  /**
19970
- * Enums
20063
+ * Model ScheduledJob
19971
20064
  */
19972
20065
 
19973
- export const TransactionIsolationLevel: {
19974
- ReadUncommitted: 'ReadUncommitted',
19975
- ReadCommitted: 'ReadCommitted',
19976
- RepeatableRead: 'RepeatableRead',
19977
- Serializable: 'Serializable'
19978
- };
19979
-
19980
- export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
20066
+ export type AggregateScheduledJob = {
20067
+ _count: ScheduledJobCountAggregateOutputType | null
20068
+ _avg: ScheduledJobAvgAggregateOutputType | null
20069
+ _sum: ScheduledJobSumAggregateOutputType | null
20070
+ _min: ScheduledJobMinAggregateOutputType | null
20071
+ _max: ScheduledJobMaxAggregateOutputType | null
20072
+ }
19981
20073
 
20074
+ export type ScheduledJobAvgAggregateOutputType = {
20075
+ id: number | null
20076
+ }
19982
20077
 
19983
- export const UserScalarFieldEnum: {
19984
- id: 'id',
19985
- type: 'type',
19986
- createdAt: 'createdAt',
19987
- updatedAt: 'updatedAt',
19988
- email: 'email',
19989
- username: 'username',
19990
- hashword: 'hashword',
19991
- appUserId: 'appUserId',
19992
- organizationId: 'organizationId',
19993
- appOrgId: 'appOrgId',
19994
- name: 'name'
19995
- };
20078
+ export type ScheduledJobSumAggregateOutputType = {
20079
+ id: number | null
20080
+ }
19996
20081
 
19997
- export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
20082
+ export type ScheduledJobMinAggregateOutputType = {
20083
+ id: number | null
20084
+ scheduleName: string | null
20085
+ scheduledAt: Date | null
20086
+ queueResourceId: string | null
20087
+ state: string | null
20088
+ createdAt: Date | null
20089
+ updatedAt: Date | null
20090
+ }
19998
20091
 
20092
+ export type ScheduledJobMaxAggregateOutputType = {
20093
+ id: number | null
20094
+ scheduleName: string | null
20095
+ scheduledAt: Date | null
20096
+ queueResourceId: string | null
20097
+ state: string | null
20098
+ createdAt: Date | null
20099
+ updatedAt: Date | null
20100
+ }
19999
20101
 
20000
- export const TokenScalarFieldEnum: {
20001
- id: 'id',
20002
- token: 'token',
20003
- created: 'created',
20004
- expires: 'expires',
20005
- userId: 'userId'
20006
- };
20102
+ export type ScheduledJobCountAggregateOutputType = {
20103
+ id: number
20104
+ scheduleName: number
20105
+ scheduledAt: number
20106
+ queueResourceId: number
20107
+ payload: number
20108
+ state: number
20109
+ createdAt: number
20110
+ updatedAt: number
20111
+ _all: number
20112
+ }
20007
20113
 
20008
- export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
20009
20114
 
20115
+ export type ScheduledJobAvgAggregateInputType = {
20116
+ id?: true
20117
+ }
20010
20118
 
20011
- export const CredentialScalarFieldEnum: {
20012
- id: 'id',
20013
- userId: 'userId',
20014
- authIsValid: 'authIsValid',
20015
- externalId: 'externalId',
20016
- data: 'data',
20017
- createdAt: 'createdAt',
20018
- updatedAt: 'updatedAt'
20019
- };
20119
+ export type ScheduledJobSumAggregateInputType = {
20120
+ id?: true
20121
+ }
20020
20122
 
20021
- export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
20123
+ export type ScheduledJobMinAggregateInputType = {
20124
+ id?: true
20125
+ scheduleName?: true
20126
+ scheduledAt?: true
20127
+ queueResourceId?: true
20128
+ state?: true
20129
+ createdAt?: true
20130
+ updatedAt?: true
20131
+ }
20022
20132
 
20133
+ export type ScheduledJobMaxAggregateInputType = {
20134
+ id?: true
20135
+ scheduleName?: true
20136
+ scheduledAt?: true
20137
+ queueResourceId?: true
20138
+ state?: true
20139
+ createdAt?: true
20140
+ updatedAt?: true
20141
+ }
20023
20142
 
20024
- export const EntityScalarFieldEnum: {
20025
- id: 'id',
20026
- credentialId: 'credentialId',
20027
- userId: 'userId',
20028
- name: 'name',
20029
- moduleName: 'moduleName',
20030
- externalId: 'externalId',
20031
- data: 'data',
20032
- createdAt: 'createdAt',
20033
- updatedAt: 'updatedAt'
20034
- };
20143
+ export type ScheduledJobCountAggregateInputType = {
20144
+ id?: true
20145
+ scheduleName?: true
20146
+ scheduledAt?: true
20147
+ queueResourceId?: true
20148
+ payload?: true
20149
+ state?: true
20150
+ createdAt?: true
20151
+ updatedAt?: true
20152
+ _all?: true
20153
+ }
20035
20154
 
20036
- export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
20155
+ export type ScheduledJobAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20156
+ /**
20157
+ * Filter which ScheduledJob to aggregate.
20158
+ */
20159
+ where?: ScheduledJobWhereInput
20160
+ /**
20161
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20162
+ *
20163
+ * Determine the order of ScheduledJobs to fetch.
20164
+ */
20165
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
20166
+ /**
20167
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20168
+ *
20169
+ * Sets the start position
20170
+ */
20171
+ cursor?: ScheduledJobWhereUniqueInput
20172
+ /**
20173
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20174
+ *
20175
+ * Take `±n` ScheduledJobs from the position of the cursor.
20176
+ */
20177
+ take?: number
20178
+ /**
20179
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20180
+ *
20181
+ * Skip the first `n` ScheduledJobs.
20182
+ */
20183
+ skip?: number
20184
+ /**
20185
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20186
+ *
20187
+ * Count returned ScheduledJobs
20188
+ **/
20189
+ _count?: true | ScheduledJobCountAggregateInputType
20190
+ /**
20191
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20192
+ *
20193
+ * Select which fields to average
20194
+ **/
20195
+ _avg?: ScheduledJobAvgAggregateInputType
20196
+ /**
20197
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20198
+ *
20199
+ * Select which fields to sum
20200
+ **/
20201
+ _sum?: ScheduledJobSumAggregateInputType
20202
+ /**
20203
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20204
+ *
20205
+ * Select which fields to find the minimum value
20206
+ **/
20207
+ _min?: ScheduledJobMinAggregateInputType
20208
+ /**
20209
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20210
+ *
20211
+ * Select which fields to find the maximum value
20212
+ **/
20213
+ _max?: ScheduledJobMaxAggregateInputType
20214
+ }
20037
20215
 
20216
+ export type GetScheduledJobAggregateType<T extends ScheduledJobAggregateArgs> = {
20217
+ [P in keyof T & keyof AggregateScheduledJob]: P extends '_count' | 'count'
20218
+ ? T[P] extends true
20219
+ ? number
20220
+ : GetScalarType<T[P], AggregateScheduledJob[P]>
20221
+ : GetScalarType<T[P], AggregateScheduledJob[P]>
20222
+ }
20038
20223
 
20039
- export const IntegrationScalarFieldEnum: {
20040
- id: 'id',
20041
- userId: 'userId',
20042
- status: 'status',
20043
- config: 'config',
20044
- version: 'version',
20045
- errors: 'errors',
20046
- warnings: 'warnings',
20047
- info: 'info',
20048
- logs: 'logs',
20049
- createdAt: 'createdAt',
20050
- updatedAt: 'updatedAt'
20051
- };
20052
20224
 
20053
- export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
20054
20225
 
20055
20226
 
20056
- export const IntegrationMappingScalarFieldEnum: {
20057
- id: 'id',
20058
- integrationId: 'integrationId',
20059
- sourceId: 'sourceId',
20060
- mapping: 'mapping',
20061
- createdAt: 'createdAt',
20062
- updatedAt: 'updatedAt'
20063
- };
20227
+ export type ScheduledJobGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20228
+ where?: ScheduledJobWhereInput
20229
+ orderBy?: ScheduledJobOrderByWithAggregationInput | ScheduledJobOrderByWithAggregationInput[]
20230
+ by: ScheduledJobScalarFieldEnum[] | ScheduledJobScalarFieldEnum
20231
+ having?: ScheduledJobScalarWhereWithAggregatesInput
20232
+ take?: number
20233
+ skip?: number
20234
+ _count?: ScheduledJobCountAggregateInputType | true
20235
+ _avg?: ScheduledJobAvgAggregateInputType
20236
+ _sum?: ScheduledJobSumAggregateInputType
20237
+ _min?: ScheduledJobMinAggregateInputType
20238
+ _max?: ScheduledJobMaxAggregateInputType
20239
+ }
20064
20240
 
20065
- export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
20241
+ export type ScheduledJobGroupByOutputType = {
20242
+ id: number
20243
+ scheduleName: string
20244
+ scheduledAt: Date
20245
+ queueResourceId: string
20246
+ payload: JsonValue | null
20247
+ state: string
20248
+ createdAt: Date
20249
+ updatedAt: Date
20250
+ _count: ScheduledJobCountAggregateOutputType | null
20251
+ _avg: ScheduledJobAvgAggregateOutputType | null
20252
+ _sum: ScheduledJobSumAggregateOutputType | null
20253
+ _min: ScheduledJobMinAggregateOutputType | null
20254
+ _max: ScheduledJobMaxAggregateOutputType | null
20255
+ }
20066
20256
 
20257
+ type GetScheduledJobGroupByPayload<T extends ScheduledJobGroupByArgs> = Prisma.PrismaPromise<
20258
+ Array<
20259
+ PickEnumerable<ScheduledJobGroupByOutputType, T['by']> &
20260
+ {
20261
+ [P in ((keyof T) & (keyof ScheduledJobGroupByOutputType))]: P extends '_count'
20262
+ ? T[P] extends boolean
20263
+ ? number
20264
+ : GetScalarType<T[P], ScheduledJobGroupByOutputType[P]>
20265
+ : GetScalarType<T[P], ScheduledJobGroupByOutputType[P]>
20266
+ }
20267
+ >
20268
+ >
20067
20269
 
20068
- export const SyncScalarFieldEnum: {
20069
- id: 'id',
20070
- integrationId: 'integrationId',
20071
- hash: 'hash',
20072
- name: 'name'
20073
- };
20074
20270
 
20075
- export type SyncScalarFieldEnum = (typeof SyncScalarFieldEnum)[keyof typeof SyncScalarFieldEnum]
20271
+ export type ScheduledJobSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
20272
+ id?: boolean
20273
+ scheduleName?: boolean
20274
+ scheduledAt?: boolean
20275
+ queueResourceId?: boolean
20276
+ payload?: boolean
20277
+ state?: boolean
20278
+ createdAt?: boolean
20279
+ updatedAt?: boolean
20280
+ }, ExtArgs["result"]["scheduledJob"]>
20076
20281
 
20282
+ export type ScheduledJobSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
20283
+ id?: boolean
20284
+ scheduleName?: boolean
20285
+ scheduledAt?: boolean
20286
+ queueResourceId?: boolean
20287
+ payload?: boolean
20288
+ state?: boolean
20289
+ createdAt?: boolean
20290
+ updatedAt?: boolean
20291
+ }, ExtArgs["result"]["scheduledJob"]>
20077
20292
 
20078
- export const DataIdentifierScalarFieldEnum: {
20079
- id: 'id',
20080
- syncId: 'syncId',
20081
- entityId: 'entityId',
20082
- idData: 'idData',
20083
- hash: 'hash'
20084
- };
20293
+ export type ScheduledJobSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
20294
+ id?: boolean
20295
+ scheduleName?: boolean
20296
+ scheduledAt?: boolean
20297
+ queueResourceId?: boolean
20298
+ payload?: boolean
20299
+ state?: boolean
20300
+ createdAt?: boolean
20301
+ updatedAt?: boolean
20302
+ }, ExtArgs["result"]["scheduledJob"]>
20085
20303
 
20086
- export type DataIdentifierScalarFieldEnum = (typeof DataIdentifierScalarFieldEnum)[keyof typeof DataIdentifierScalarFieldEnum]
20304
+ export type ScheduledJobSelectScalar = {
20305
+ id?: boolean
20306
+ scheduleName?: boolean
20307
+ scheduledAt?: boolean
20308
+ queueResourceId?: boolean
20309
+ payload?: boolean
20310
+ state?: boolean
20311
+ createdAt?: boolean
20312
+ updatedAt?: boolean
20313
+ }
20314
+
20315
+ export type ScheduledJobOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "scheduleName" | "scheduledAt" | "queueResourceId" | "payload" | "state" | "createdAt" | "updatedAt", ExtArgs["result"]["scheduledJob"]>
20316
+
20317
+ export type $ScheduledJobPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20318
+ name: "ScheduledJob"
20319
+ objects: {}
20320
+ scalars: $Extensions.GetPayloadResult<{
20321
+ id: number
20322
+ scheduleName: string
20323
+ scheduledAt: Date
20324
+ queueResourceId: string
20325
+ payload: Prisma.JsonValue | null
20326
+ state: string
20327
+ createdAt: Date
20328
+ updatedAt: Date
20329
+ }, ExtArgs["result"]["scheduledJob"]>
20330
+ composites: {}
20331
+ }
20332
+
20333
+ type ScheduledJobGetPayload<S extends boolean | null | undefined | ScheduledJobDefaultArgs> = $Result.GetResult<Prisma.$ScheduledJobPayload, S>
20334
+
20335
+ type ScheduledJobCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
20336
+ Omit<ScheduledJobFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
20337
+ select?: ScheduledJobCountAggregateInputType | true
20338
+ }
20339
+
20340
+ export interface ScheduledJobDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
20341
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ScheduledJob'], meta: { name: 'ScheduledJob' } }
20342
+ /**
20343
+ * Find zero or one ScheduledJob that matches the filter.
20344
+ * @param {ScheduledJobFindUniqueArgs} args - Arguments to find a ScheduledJob
20345
+ * @example
20346
+ * // Get one ScheduledJob
20347
+ * const scheduledJob = await prisma.scheduledJob.findUnique({
20348
+ * where: {
20349
+ * // ... provide filter here
20350
+ * }
20351
+ * })
20352
+ */
20353
+ findUnique<T extends ScheduledJobFindUniqueArgs>(args: SelectSubset<T, ScheduledJobFindUniqueArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
20354
+
20355
+ /**
20356
+ * Find one ScheduledJob that matches the filter or throw an error with `error.code='P2025'`
20357
+ * if no matches were found.
20358
+ * @param {ScheduledJobFindUniqueOrThrowArgs} args - Arguments to find a ScheduledJob
20359
+ * @example
20360
+ * // Get one ScheduledJob
20361
+ * const scheduledJob = await prisma.scheduledJob.findUniqueOrThrow({
20362
+ * where: {
20363
+ * // ... provide filter here
20364
+ * }
20365
+ * })
20366
+ */
20367
+ findUniqueOrThrow<T extends ScheduledJobFindUniqueOrThrowArgs>(args: SelectSubset<T, ScheduledJobFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20368
+
20369
+ /**
20370
+ * Find the first ScheduledJob that matches the filter.
20371
+ * Note, that providing `undefined` is treated as the value not being there.
20372
+ * Read more here: https://pris.ly/d/null-undefined
20373
+ * @param {ScheduledJobFindFirstArgs} args - Arguments to find a ScheduledJob
20374
+ * @example
20375
+ * // Get one ScheduledJob
20376
+ * const scheduledJob = await prisma.scheduledJob.findFirst({
20377
+ * where: {
20378
+ * // ... provide filter here
20379
+ * }
20380
+ * })
20381
+ */
20382
+ findFirst<T extends ScheduledJobFindFirstArgs>(args?: SelectSubset<T, ScheduledJobFindFirstArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
20383
+
20384
+ /**
20385
+ * Find the first ScheduledJob that matches the filter or
20386
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
20387
+ * Note, that providing `undefined` is treated as the value not being there.
20388
+ * Read more here: https://pris.ly/d/null-undefined
20389
+ * @param {ScheduledJobFindFirstOrThrowArgs} args - Arguments to find a ScheduledJob
20390
+ * @example
20391
+ * // Get one ScheduledJob
20392
+ * const scheduledJob = await prisma.scheduledJob.findFirstOrThrow({
20393
+ * where: {
20394
+ * // ... provide filter here
20395
+ * }
20396
+ * })
20397
+ */
20398
+ findFirstOrThrow<T extends ScheduledJobFindFirstOrThrowArgs>(args?: SelectSubset<T, ScheduledJobFindFirstOrThrowArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20399
+
20400
+ /**
20401
+ * Find zero or more ScheduledJobs that matches the filter.
20402
+ * Note, that providing `undefined` is treated as the value not being there.
20403
+ * Read more here: https://pris.ly/d/null-undefined
20404
+ * @param {ScheduledJobFindManyArgs} args - Arguments to filter and select certain fields only.
20405
+ * @example
20406
+ * // Get all ScheduledJobs
20407
+ * const scheduledJobs = await prisma.scheduledJob.findMany()
20408
+ *
20409
+ * // Get first 10 ScheduledJobs
20410
+ * const scheduledJobs = await prisma.scheduledJob.findMany({ take: 10 })
20411
+ *
20412
+ * // Only select the `id`
20413
+ * const scheduledJobWithIdOnly = await prisma.scheduledJob.findMany({ select: { id: true } })
20414
+ *
20415
+ */
20416
+ findMany<T extends ScheduledJobFindManyArgs>(args?: SelectSubset<T, ScheduledJobFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
20417
+
20418
+ /**
20419
+ * Create a ScheduledJob.
20420
+ * @param {ScheduledJobCreateArgs} args - Arguments to create a ScheduledJob.
20421
+ * @example
20422
+ * // Create one ScheduledJob
20423
+ * const ScheduledJob = await prisma.scheduledJob.create({
20424
+ * data: {
20425
+ * // ... data to create a ScheduledJob
20426
+ * }
20427
+ * })
20428
+ *
20429
+ */
20430
+ create<T extends ScheduledJobCreateArgs>(args: SelectSubset<T, ScheduledJobCreateArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20431
+
20432
+ /**
20433
+ * Create many ScheduledJobs.
20434
+ * @param {ScheduledJobCreateManyArgs} args - Arguments to create many ScheduledJobs.
20435
+ * @example
20436
+ * // Create many ScheduledJobs
20437
+ * const scheduledJob = await prisma.scheduledJob.createMany({
20438
+ * data: [
20439
+ * // ... provide data here
20440
+ * ]
20441
+ * })
20442
+ *
20443
+ */
20444
+ createMany<T extends ScheduledJobCreateManyArgs>(args?: SelectSubset<T, ScheduledJobCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20445
+
20446
+ /**
20447
+ * Create many ScheduledJobs and returns the data saved in the database.
20448
+ * @param {ScheduledJobCreateManyAndReturnArgs} args - Arguments to create many ScheduledJobs.
20449
+ * @example
20450
+ * // Create many ScheduledJobs
20451
+ * const scheduledJob = await prisma.scheduledJob.createManyAndReturn({
20452
+ * data: [
20453
+ * // ... provide data here
20454
+ * ]
20455
+ * })
20456
+ *
20457
+ * // Create many ScheduledJobs and only return the `id`
20458
+ * const scheduledJobWithIdOnly = await prisma.scheduledJob.createManyAndReturn({
20459
+ * select: { id: true },
20460
+ * data: [
20461
+ * // ... provide data here
20462
+ * ]
20463
+ * })
20464
+ * Note, that providing `undefined` is treated as the value not being there.
20465
+ * Read more here: https://pris.ly/d/null-undefined
20466
+ *
20467
+ */
20468
+ createManyAndReturn<T extends ScheduledJobCreateManyAndReturnArgs>(args?: SelectSubset<T, ScheduledJobCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
20469
+
20470
+ /**
20471
+ * Delete a ScheduledJob.
20472
+ * @param {ScheduledJobDeleteArgs} args - Arguments to delete one ScheduledJob.
20473
+ * @example
20474
+ * // Delete one ScheduledJob
20475
+ * const ScheduledJob = await prisma.scheduledJob.delete({
20476
+ * where: {
20477
+ * // ... filter to delete one ScheduledJob
20478
+ * }
20479
+ * })
20480
+ *
20481
+ */
20482
+ delete<T extends ScheduledJobDeleteArgs>(args: SelectSubset<T, ScheduledJobDeleteArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20483
+
20484
+ /**
20485
+ * Update one ScheduledJob.
20486
+ * @param {ScheduledJobUpdateArgs} args - Arguments to update one ScheduledJob.
20487
+ * @example
20488
+ * // Update one ScheduledJob
20489
+ * const scheduledJob = await prisma.scheduledJob.update({
20490
+ * where: {
20491
+ * // ... provide filter here
20492
+ * },
20493
+ * data: {
20494
+ * // ... provide data here
20495
+ * }
20496
+ * })
20497
+ *
20498
+ */
20499
+ update<T extends ScheduledJobUpdateArgs>(args: SelectSubset<T, ScheduledJobUpdateArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20500
+
20501
+ /**
20502
+ * Delete zero or more ScheduledJobs.
20503
+ * @param {ScheduledJobDeleteManyArgs} args - Arguments to filter ScheduledJobs to delete.
20504
+ * @example
20505
+ * // Delete a few ScheduledJobs
20506
+ * const { count } = await prisma.scheduledJob.deleteMany({
20507
+ * where: {
20508
+ * // ... provide filter here
20509
+ * }
20510
+ * })
20511
+ *
20512
+ */
20513
+ deleteMany<T extends ScheduledJobDeleteManyArgs>(args?: SelectSubset<T, ScheduledJobDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20514
+
20515
+ /**
20516
+ * Update zero or more ScheduledJobs.
20517
+ * Note, that providing `undefined` is treated as the value not being there.
20518
+ * Read more here: https://pris.ly/d/null-undefined
20519
+ * @param {ScheduledJobUpdateManyArgs} args - Arguments to update one or more rows.
20520
+ * @example
20521
+ * // Update many ScheduledJobs
20522
+ * const scheduledJob = await prisma.scheduledJob.updateMany({
20523
+ * where: {
20524
+ * // ... provide filter here
20525
+ * },
20526
+ * data: {
20527
+ * // ... provide data here
20528
+ * }
20529
+ * })
20530
+ *
20531
+ */
20532
+ updateMany<T extends ScheduledJobUpdateManyArgs>(args: SelectSubset<T, ScheduledJobUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20533
+
20534
+ /**
20535
+ * Update zero or more ScheduledJobs and returns the data updated in the database.
20536
+ * @param {ScheduledJobUpdateManyAndReturnArgs} args - Arguments to update many ScheduledJobs.
20537
+ * @example
20538
+ * // Update many ScheduledJobs
20539
+ * const scheduledJob = await prisma.scheduledJob.updateManyAndReturn({
20540
+ * where: {
20541
+ * // ... provide filter here
20542
+ * },
20543
+ * data: [
20544
+ * // ... provide data here
20545
+ * ]
20546
+ * })
20547
+ *
20548
+ * // Update zero or more ScheduledJobs and only return the `id`
20549
+ * const scheduledJobWithIdOnly = await prisma.scheduledJob.updateManyAndReturn({
20550
+ * select: { id: true },
20551
+ * where: {
20552
+ * // ... provide filter here
20553
+ * },
20554
+ * data: [
20555
+ * // ... provide data here
20556
+ * ]
20557
+ * })
20558
+ * Note, that providing `undefined` is treated as the value not being there.
20559
+ * Read more here: https://pris.ly/d/null-undefined
20560
+ *
20561
+ */
20562
+ updateManyAndReturn<T extends ScheduledJobUpdateManyAndReturnArgs>(args: SelectSubset<T, ScheduledJobUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
20563
+
20564
+ /**
20565
+ * Create or update one ScheduledJob.
20566
+ * @param {ScheduledJobUpsertArgs} args - Arguments to update or create a ScheduledJob.
20567
+ * @example
20568
+ * // Update or create a ScheduledJob
20569
+ * const scheduledJob = await prisma.scheduledJob.upsert({
20570
+ * create: {
20571
+ * // ... data to create a ScheduledJob
20572
+ * },
20573
+ * update: {
20574
+ * // ... in case it already exists, update
20575
+ * },
20576
+ * where: {
20577
+ * // ... the filter for the ScheduledJob we want to update
20578
+ * }
20579
+ * })
20580
+ */
20581
+ upsert<T extends ScheduledJobUpsertArgs>(args: SelectSubset<T, ScheduledJobUpsertArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20582
+
20583
+
20584
+ /**
20585
+ * Count the number of ScheduledJobs.
20586
+ * Note, that providing `undefined` is treated as the value not being there.
20587
+ * Read more here: https://pris.ly/d/null-undefined
20588
+ * @param {ScheduledJobCountArgs} args - Arguments to filter ScheduledJobs to count.
20589
+ * @example
20590
+ * // Count the number of ScheduledJobs
20591
+ * const count = await prisma.scheduledJob.count({
20592
+ * where: {
20593
+ * // ... the filter for the ScheduledJobs we want to count
20594
+ * }
20595
+ * })
20596
+ **/
20597
+ count<T extends ScheduledJobCountArgs>(
20598
+ args?: Subset<T, ScheduledJobCountArgs>,
20599
+ ): Prisma.PrismaPromise<
20600
+ T extends $Utils.Record<'select', any>
20601
+ ? T['select'] extends true
20602
+ ? number
20603
+ : GetScalarType<T['select'], ScheduledJobCountAggregateOutputType>
20604
+ : number
20605
+ >
20606
+
20607
+ /**
20608
+ * Allows you to perform aggregations operations on a ScheduledJob.
20609
+ * Note, that providing `undefined` is treated as the value not being there.
20610
+ * Read more here: https://pris.ly/d/null-undefined
20611
+ * @param {ScheduledJobAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
20612
+ * @example
20613
+ * // Ordered by age ascending
20614
+ * // Where email contains prisma.io
20615
+ * // Limited to the 10 users
20616
+ * const aggregations = await prisma.user.aggregate({
20617
+ * _avg: {
20618
+ * age: true,
20619
+ * },
20620
+ * where: {
20621
+ * email: {
20622
+ * contains: "prisma.io",
20623
+ * },
20624
+ * },
20625
+ * orderBy: {
20626
+ * age: "asc",
20627
+ * },
20628
+ * take: 10,
20629
+ * })
20630
+ **/
20631
+ aggregate<T extends ScheduledJobAggregateArgs>(args: Subset<T, ScheduledJobAggregateArgs>): Prisma.PrismaPromise<GetScheduledJobAggregateType<T>>
20632
+
20633
+ /**
20634
+ * Group by ScheduledJob.
20635
+ * Note, that providing `undefined` is treated as the value not being there.
20636
+ * Read more here: https://pris.ly/d/null-undefined
20637
+ * @param {ScheduledJobGroupByArgs} args - Group by arguments.
20638
+ * @example
20639
+ * // Group by city, order by createdAt, get count
20640
+ * const result = await prisma.user.groupBy({
20641
+ * by: ['city', 'createdAt'],
20642
+ * orderBy: {
20643
+ * createdAt: true
20644
+ * },
20645
+ * _count: {
20646
+ * _all: true
20647
+ * },
20648
+ * })
20649
+ *
20650
+ **/
20651
+ groupBy<
20652
+ T extends ScheduledJobGroupByArgs,
20653
+ HasSelectOrTake extends Or<
20654
+ Extends<'skip', Keys<T>>,
20655
+ Extends<'take', Keys<T>>
20656
+ >,
20657
+ OrderByArg extends True extends HasSelectOrTake
20658
+ ? { orderBy: ScheduledJobGroupByArgs['orderBy'] }
20659
+ : { orderBy?: ScheduledJobGroupByArgs['orderBy'] },
20660
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
20661
+ ByFields extends MaybeTupleToUnion<T['by']>,
20662
+ ByValid extends Has<ByFields, OrderFields>,
20663
+ HavingFields extends GetHavingFields<T['having']>,
20664
+ HavingValid extends Has<ByFields, HavingFields>,
20665
+ ByEmpty extends T['by'] extends never[] ? True : False,
20666
+ InputErrors extends ByEmpty extends True
20667
+ ? `Error: "by" must not be empty.`
20668
+ : HavingValid extends False
20669
+ ? {
20670
+ [P in HavingFields]: P extends ByFields
20671
+ ? never
20672
+ : P extends string
20673
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
20674
+ : [
20675
+ Error,
20676
+ 'Field ',
20677
+ P,
20678
+ ` in "having" needs to be provided in "by"`,
20679
+ ]
20680
+ }[HavingFields]
20681
+ : 'take' extends Keys<T>
20682
+ ? 'orderBy' extends Keys<T>
20683
+ ? ByValid extends True
20684
+ ? {}
20685
+ : {
20686
+ [P in OrderFields]: P extends ByFields
20687
+ ? never
20688
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20689
+ }[OrderFields]
20690
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
20691
+ : 'skip' extends Keys<T>
20692
+ ? 'orderBy' extends Keys<T>
20693
+ ? ByValid extends True
20694
+ ? {}
20695
+ : {
20696
+ [P in OrderFields]: P extends ByFields
20697
+ ? never
20698
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20699
+ }[OrderFields]
20700
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
20701
+ : ByValid extends True
20702
+ ? {}
20703
+ : {
20704
+ [P in OrderFields]: P extends ByFields
20705
+ ? never
20706
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20707
+ }[OrderFields]
20708
+ >(args: SubsetIntersection<T, ScheduledJobGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetScheduledJobGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
20709
+ /**
20710
+ * Fields of the ScheduledJob model
20711
+ */
20712
+ readonly fields: ScheduledJobFieldRefs;
20713
+ }
20714
+
20715
+ /**
20716
+ * The delegate class that acts as a "Promise-like" for ScheduledJob.
20717
+ * Why is this prefixed with `Prisma__`?
20718
+ * Because we want to prevent naming conflicts as mentioned in
20719
+ * https://github.com/prisma/prisma-client-js/issues/707
20720
+ */
20721
+ export interface Prisma__ScheduledJobClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
20722
+ readonly [Symbol.toStringTag]: "PrismaPromise"
20723
+ /**
20724
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
20725
+ * @param onfulfilled The callback to execute when the Promise is resolved.
20726
+ * @param onrejected The callback to execute when the Promise is rejected.
20727
+ * @returns A Promise for the completion of which ever callback is executed.
20728
+ */
20729
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
20730
+ /**
20731
+ * Attaches a callback for only the rejection of the Promise.
20732
+ * @param onrejected The callback to execute when the Promise is rejected.
20733
+ * @returns A Promise for the completion of the callback.
20734
+ */
20735
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
20736
+ /**
20737
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
20738
+ * resolved value cannot be modified from the callback.
20739
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
20740
+ * @returns A Promise for the completion of the callback.
20741
+ */
20742
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
20743
+ }
20744
+
20745
+
20746
+
20747
+
20748
+ /**
20749
+ * Fields of the ScheduledJob model
20750
+ */
20751
+ interface ScheduledJobFieldRefs {
20752
+ readonly id: FieldRef<"ScheduledJob", 'Int'>
20753
+ readonly scheduleName: FieldRef<"ScheduledJob", 'String'>
20754
+ readonly scheduledAt: FieldRef<"ScheduledJob", 'DateTime'>
20755
+ readonly queueResourceId: FieldRef<"ScheduledJob", 'String'>
20756
+ readonly payload: FieldRef<"ScheduledJob", 'Json'>
20757
+ readonly state: FieldRef<"ScheduledJob", 'String'>
20758
+ readonly createdAt: FieldRef<"ScheduledJob", 'DateTime'>
20759
+ readonly updatedAt: FieldRef<"ScheduledJob", 'DateTime'>
20760
+ }
20761
+
20762
+
20763
+ // Custom InputTypes
20764
+ /**
20765
+ * ScheduledJob findUnique
20766
+ */
20767
+ export type ScheduledJobFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20768
+ /**
20769
+ * Select specific fields to fetch from the ScheduledJob
20770
+ */
20771
+ select?: ScheduledJobSelect<ExtArgs> | null
20772
+ /**
20773
+ * Omit specific fields from the ScheduledJob
20774
+ */
20775
+ omit?: ScheduledJobOmit<ExtArgs> | null
20776
+ /**
20777
+ * Filter, which ScheduledJob to fetch.
20778
+ */
20779
+ where: ScheduledJobWhereUniqueInput
20780
+ }
20781
+
20782
+ /**
20783
+ * ScheduledJob findUniqueOrThrow
20784
+ */
20785
+ export type ScheduledJobFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20786
+ /**
20787
+ * Select specific fields to fetch from the ScheduledJob
20788
+ */
20789
+ select?: ScheduledJobSelect<ExtArgs> | null
20790
+ /**
20791
+ * Omit specific fields from the ScheduledJob
20792
+ */
20793
+ omit?: ScheduledJobOmit<ExtArgs> | null
20794
+ /**
20795
+ * Filter, which ScheduledJob to fetch.
20796
+ */
20797
+ where: ScheduledJobWhereUniqueInput
20798
+ }
20799
+
20800
+ /**
20801
+ * ScheduledJob findFirst
20802
+ */
20803
+ export type ScheduledJobFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20804
+ /**
20805
+ * Select specific fields to fetch from the ScheduledJob
20806
+ */
20807
+ select?: ScheduledJobSelect<ExtArgs> | null
20808
+ /**
20809
+ * Omit specific fields from the ScheduledJob
20810
+ */
20811
+ omit?: ScheduledJobOmit<ExtArgs> | null
20812
+ /**
20813
+ * Filter, which ScheduledJob to fetch.
20814
+ */
20815
+ where?: ScheduledJobWhereInput
20816
+ /**
20817
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20818
+ *
20819
+ * Determine the order of ScheduledJobs to fetch.
20820
+ */
20821
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
20822
+ /**
20823
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20824
+ *
20825
+ * Sets the position for searching for ScheduledJobs.
20826
+ */
20827
+ cursor?: ScheduledJobWhereUniqueInput
20828
+ /**
20829
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20830
+ *
20831
+ * Take `±n` ScheduledJobs from the position of the cursor.
20832
+ */
20833
+ take?: number
20834
+ /**
20835
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20836
+ *
20837
+ * Skip the first `n` ScheduledJobs.
20838
+ */
20839
+ skip?: number
20840
+ /**
20841
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
20842
+ *
20843
+ * Filter by unique combinations of ScheduledJobs.
20844
+ */
20845
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
20846
+ }
20847
+
20848
+ /**
20849
+ * ScheduledJob findFirstOrThrow
20850
+ */
20851
+ export type ScheduledJobFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20852
+ /**
20853
+ * Select specific fields to fetch from the ScheduledJob
20854
+ */
20855
+ select?: ScheduledJobSelect<ExtArgs> | null
20856
+ /**
20857
+ * Omit specific fields from the ScheduledJob
20858
+ */
20859
+ omit?: ScheduledJobOmit<ExtArgs> | null
20860
+ /**
20861
+ * Filter, which ScheduledJob to fetch.
20862
+ */
20863
+ where?: ScheduledJobWhereInput
20864
+ /**
20865
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20866
+ *
20867
+ * Determine the order of ScheduledJobs to fetch.
20868
+ */
20869
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
20870
+ /**
20871
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20872
+ *
20873
+ * Sets the position for searching for ScheduledJobs.
20874
+ */
20875
+ cursor?: ScheduledJobWhereUniqueInput
20876
+ /**
20877
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20878
+ *
20879
+ * Take `±n` ScheduledJobs from the position of the cursor.
20880
+ */
20881
+ take?: number
20882
+ /**
20883
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20884
+ *
20885
+ * Skip the first `n` ScheduledJobs.
20886
+ */
20887
+ skip?: number
20888
+ /**
20889
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
20890
+ *
20891
+ * Filter by unique combinations of ScheduledJobs.
20892
+ */
20893
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
20894
+ }
20895
+
20896
+ /**
20897
+ * ScheduledJob findMany
20898
+ */
20899
+ export type ScheduledJobFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20900
+ /**
20901
+ * Select specific fields to fetch from the ScheduledJob
20902
+ */
20903
+ select?: ScheduledJobSelect<ExtArgs> | null
20904
+ /**
20905
+ * Omit specific fields from the ScheduledJob
20906
+ */
20907
+ omit?: ScheduledJobOmit<ExtArgs> | null
20908
+ /**
20909
+ * Filter, which ScheduledJobs to fetch.
20910
+ */
20911
+ where?: ScheduledJobWhereInput
20912
+ /**
20913
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20914
+ *
20915
+ * Determine the order of ScheduledJobs to fetch.
20916
+ */
20917
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
20918
+ /**
20919
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20920
+ *
20921
+ * Sets the position for listing ScheduledJobs.
20922
+ */
20923
+ cursor?: ScheduledJobWhereUniqueInput
20924
+ /**
20925
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20926
+ *
20927
+ * Take `±n` ScheduledJobs from the position of the cursor.
20928
+ */
20929
+ take?: number
20930
+ /**
20931
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20932
+ *
20933
+ * Skip the first `n` ScheduledJobs.
20934
+ */
20935
+ skip?: number
20936
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
20937
+ }
20938
+
20939
+ /**
20940
+ * ScheduledJob create
20941
+ */
20942
+ export type ScheduledJobCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20943
+ /**
20944
+ * Select specific fields to fetch from the ScheduledJob
20945
+ */
20946
+ select?: ScheduledJobSelect<ExtArgs> | null
20947
+ /**
20948
+ * Omit specific fields from the ScheduledJob
20949
+ */
20950
+ omit?: ScheduledJobOmit<ExtArgs> | null
20951
+ /**
20952
+ * The data needed to create a ScheduledJob.
20953
+ */
20954
+ data: XOR<ScheduledJobCreateInput, ScheduledJobUncheckedCreateInput>
20955
+ }
20956
+
20957
+ /**
20958
+ * ScheduledJob createMany
20959
+ */
20960
+ export type ScheduledJobCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20961
+ /**
20962
+ * The data used to create many ScheduledJobs.
20963
+ */
20964
+ data: ScheduledJobCreateManyInput | ScheduledJobCreateManyInput[]
20965
+ skipDuplicates?: boolean
20966
+ }
20967
+
20968
+ /**
20969
+ * ScheduledJob createManyAndReturn
20970
+ */
20971
+ export type ScheduledJobCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20972
+ /**
20973
+ * Select specific fields to fetch from the ScheduledJob
20974
+ */
20975
+ select?: ScheduledJobSelectCreateManyAndReturn<ExtArgs> | null
20976
+ /**
20977
+ * Omit specific fields from the ScheduledJob
20978
+ */
20979
+ omit?: ScheduledJobOmit<ExtArgs> | null
20980
+ /**
20981
+ * The data used to create many ScheduledJobs.
20982
+ */
20983
+ data: ScheduledJobCreateManyInput | ScheduledJobCreateManyInput[]
20984
+ skipDuplicates?: boolean
20985
+ }
20986
+
20987
+ /**
20988
+ * ScheduledJob update
20989
+ */
20990
+ export type ScheduledJobUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20991
+ /**
20992
+ * Select specific fields to fetch from the ScheduledJob
20993
+ */
20994
+ select?: ScheduledJobSelect<ExtArgs> | null
20995
+ /**
20996
+ * Omit specific fields from the ScheduledJob
20997
+ */
20998
+ omit?: ScheduledJobOmit<ExtArgs> | null
20999
+ /**
21000
+ * The data needed to update a ScheduledJob.
21001
+ */
21002
+ data: XOR<ScheduledJobUpdateInput, ScheduledJobUncheckedUpdateInput>
21003
+ /**
21004
+ * Choose, which ScheduledJob to update.
21005
+ */
21006
+ where: ScheduledJobWhereUniqueInput
21007
+ }
21008
+
21009
+ /**
21010
+ * ScheduledJob updateMany
21011
+ */
21012
+ export type ScheduledJobUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21013
+ /**
21014
+ * The data used to update ScheduledJobs.
21015
+ */
21016
+ data: XOR<ScheduledJobUpdateManyMutationInput, ScheduledJobUncheckedUpdateManyInput>
21017
+ /**
21018
+ * Filter which ScheduledJobs to update
21019
+ */
21020
+ where?: ScheduledJobWhereInput
21021
+ /**
21022
+ * Limit how many ScheduledJobs to update.
21023
+ */
21024
+ limit?: number
21025
+ }
21026
+
21027
+ /**
21028
+ * ScheduledJob updateManyAndReturn
21029
+ */
21030
+ export type ScheduledJobUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21031
+ /**
21032
+ * Select specific fields to fetch from the ScheduledJob
21033
+ */
21034
+ select?: ScheduledJobSelectUpdateManyAndReturn<ExtArgs> | null
21035
+ /**
21036
+ * Omit specific fields from the ScheduledJob
21037
+ */
21038
+ omit?: ScheduledJobOmit<ExtArgs> | null
21039
+ /**
21040
+ * The data used to update ScheduledJobs.
21041
+ */
21042
+ data: XOR<ScheduledJobUpdateManyMutationInput, ScheduledJobUncheckedUpdateManyInput>
21043
+ /**
21044
+ * Filter which ScheduledJobs to update
21045
+ */
21046
+ where?: ScheduledJobWhereInput
21047
+ /**
21048
+ * Limit how many ScheduledJobs to update.
21049
+ */
21050
+ limit?: number
21051
+ }
21052
+
21053
+ /**
21054
+ * ScheduledJob upsert
21055
+ */
21056
+ export type ScheduledJobUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21057
+ /**
21058
+ * Select specific fields to fetch from the ScheduledJob
21059
+ */
21060
+ select?: ScheduledJobSelect<ExtArgs> | null
21061
+ /**
21062
+ * Omit specific fields from the ScheduledJob
21063
+ */
21064
+ omit?: ScheduledJobOmit<ExtArgs> | null
21065
+ /**
21066
+ * The filter to search for the ScheduledJob to update in case it exists.
21067
+ */
21068
+ where: ScheduledJobWhereUniqueInput
21069
+ /**
21070
+ * In case the ScheduledJob found by the `where` argument doesn't exist, create a new ScheduledJob with this data.
21071
+ */
21072
+ create: XOR<ScheduledJobCreateInput, ScheduledJobUncheckedCreateInput>
21073
+ /**
21074
+ * In case the ScheduledJob was found with the provided `where` argument, update it with this data.
21075
+ */
21076
+ update: XOR<ScheduledJobUpdateInput, ScheduledJobUncheckedUpdateInput>
21077
+ }
21078
+
21079
+ /**
21080
+ * ScheduledJob delete
21081
+ */
21082
+ export type ScheduledJobDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21083
+ /**
21084
+ * Select specific fields to fetch from the ScheduledJob
21085
+ */
21086
+ select?: ScheduledJobSelect<ExtArgs> | null
21087
+ /**
21088
+ * Omit specific fields from the ScheduledJob
21089
+ */
21090
+ omit?: ScheduledJobOmit<ExtArgs> | null
21091
+ /**
21092
+ * Filter which ScheduledJob to delete.
21093
+ */
21094
+ where: ScheduledJobWhereUniqueInput
21095
+ }
21096
+
21097
+ /**
21098
+ * ScheduledJob deleteMany
21099
+ */
21100
+ export type ScheduledJobDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21101
+ /**
21102
+ * Filter which ScheduledJobs to delete
21103
+ */
21104
+ where?: ScheduledJobWhereInput
21105
+ /**
21106
+ * Limit how many ScheduledJobs to delete.
21107
+ */
21108
+ limit?: number
21109
+ }
21110
+
21111
+ /**
21112
+ * ScheduledJob without action
21113
+ */
21114
+ export type ScheduledJobDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21115
+ /**
21116
+ * Select specific fields to fetch from the ScheduledJob
21117
+ */
21118
+ select?: ScheduledJobSelect<ExtArgs> | null
21119
+ /**
21120
+ * Omit specific fields from the ScheduledJob
21121
+ */
21122
+ omit?: ScheduledJobOmit<ExtArgs> | null
21123
+ }
21124
+
21125
+
21126
+ /**
21127
+ * Enums
21128
+ */
21129
+
21130
+ export const TransactionIsolationLevel: {
21131
+ ReadUncommitted: 'ReadUncommitted',
21132
+ ReadCommitted: 'ReadCommitted',
21133
+ RepeatableRead: 'RepeatableRead',
21134
+ Serializable: 'Serializable'
21135
+ };
21136
+
21137
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
21138
+
21139
+
21140
+ export const UserScalarFieldEnum: {
21141
+ id: 'id',
21142
+ type: 'type',
21143
+ createdAt: 'createdAt',
21144
+ updatedAt: 'updatedAt',
21145
+ email: 'email',
21146
+ username: 'username',
21147
+ hashword: 'hashword',
21148
+ appUserId: 'appUserId',
21149
+ organizationId: 'organizationId',
21150
+ appOrgId: 'appOrgId',
21151
+ name: 'name'
21152
+ };
21153
+
21154
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
21155
+
21156
+
21157
+ export const TokenScalarFieldEnum: {
21158
+ id: 'id',
21159
+ token: 'token',
21160
+ created: 'created',
21161
+ expires: 'expires',
21162
+ userId: 'userId'
21163
+ };
21164
+
21165
+ export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
21166
+
21167
+
21168
+ export const CredentialScalarFieldEnum: {
21169
+ id: 'id',
21170
+ userId: 'userId',
21171
+ authIsValid: 'authIsValid',
21172
+ externalId: 'externalId',
21173
+ data: 'data',
21174
+ createdAt: 'createdAt',
21175
+ updatedAt: 'updatedAt'
21176
+ };
21177
+
21178
+ export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
21179
+
21180
+
21181
+ export const EntityScalarFieldEnum: {
21182
+ id: 'id',
21183
+ credentialId: 'credentialId',
21184
+ userId: 'userId',
21185
+ name: 'name',
21186
+ moduleName: 'moduleName',
21187
+ externalId: 'externalId',
21188
+ data: 'data',
21189
+ createdAt: 'createdAt',
21190
+ updatedAt: 'updatedAt'
21191
+ };
21192
+
21193
+ export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
21194
+
21195
+
21196
+ export const IntegrationScalarFieldEnum: {
21197
+ id: 'id',
21198
+ userId: 'userId',
21199
+ status: 'status',
21200
+ config: 'config',
21201
+ version: 'version',
21202
+ errors: 'errors',
21203
+ warnings: 'warnings',
21204
+ info: 'info',
21205
+ logs: 'logs',
21206
+ createdAt: 'createdAt',
21207
+ updatedAt: 'updatedAt'
21208
+ };
21209
+
21210
+ export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
21211
+
21212
+
21213
+ export const IntegrationMappingScalarFieldEnum: {
21214
+ id: 'id',
21215
+ integrationId: 'integrationId',
21216
+ sourceId: 'sourceId',
21217
+ mapping: 'mapping',
21218
+ createdAt: 'createdAt',
21219
+ updatedAt: 'updatedAt'
21220
+ };
21221
+
21222
+ export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
21223
+
21224
+
21225
+ export const SyncScalarFieldEnum: {
21226
+ id: 'id',
21227
+ integrationId: 'integrationId',
21228
+ hash: 'hash',
21229
+ name: 'name'
21230
+ };
21231
+
21232
+ export type SyncScalarFieldEnum = (typeof SyncScalarFieldEnum)[keyof typeof SyncScalarFieldEnum]
21233
+
21234
+
21235
+ export const DataIdentifierScalarFieldEnum: {
21236
+ id: 'id',
21237
+ syncId: 'syncId',
21238
+ entityId: 'entityId',
21239
+ idData: 'idData',
21240
+ hash: 'hash'
21241
+ };
21242
+
21243
+ export type DataIdentifierScalarFieldEnum = (typeof DataIdentifierScalarFieldEnum)[keyof typeof DataIdentifierScalarFieldEnum]
20087
21244
 
20088
21245
 
20089
21246
  export const AssociationScalarFieldEnum: {
@@ -20174,6 +21331,20 @@ export namespace Prisma {
20174
21331
  export type ScriptScheduleScalarFieldEnum = (typeof ScriptScheduleScalarFieldEnum)[keyof typeof ScriptScheduleScalarFieldEnum]
20175
21332
 
20176
21333
 
21334
+ export const ScheduledJobScalarFieldEnum: {
21335
+ id: 'id',
21336
+ scheduleName: 'scheduleName',
21337
+ scheduledAt: 'scheduledAt',
21338
+ queueResourceId: 'queueResourceId',
21339
+ payload: 'payload',
21340
+ state: 'state',
21341
+ createdAt: 'createdAt',
21342
+ updatedAt: 'updatedAt'
21343
+ };
21344
+
21345
+ export type ScheduledJobScalarFieldEnum = (typeof ScheduledJobScalarFieldEnum)[keyof typeof ScheduledJobScalarFieldEnum]
21346
+
21347
+
20177
21348
  export const SortOrder: {
20178
21349
  asc: 'asc',
20179
21350
  desc: 'desc'
@@ -21434,6 +22605,75 @@ export namespace Prisma {
21434
22605
  updatedAt?: DateTimeWithAggregatesFilter<"ScriptSchedule"> | Date | string
21435
22606
  }
21436
22607
 
22608
+ export type ScheduledJobWhereInput = {
22609
+ AND?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
22610
+ OR?: ScheduledJobWhereInput[]
22611
+ NOT?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
22612
+ id?: IntFilter<"ScheduledJob"> | number
22613
+ scheduleName?: StringFilter<"ScheduledJob"> | string
22614
+ scheduledAt?: DateTimeFilter<"ScheduledJob"> | Date | string
22615
+ queueResourceId?: StringFilter<"ScheduledJob"> | string
22616
+ payload?: JsonNullableFilter<"ScheduledJob">
22617
+ state?: StringFilter<"ScheduledJob"> | string
22618
+ createdAt?: DateTimeFilter<"ScheduledJob"> | Date | string
22619
+ updatedAt?: DateTimeFilter<"ScheduledJob"> | Date | string
22620
+ }
22621
+
22622
+ export type ScheduledJobOrderByWithRelationInput = {
22623
+ id?: SortOrder
22624
+ scheduleName?: SortOrder
22625
+ scheduledAt?: SortOrder
22626
+ queueResourceId?: SortOrder
22627
+ payload?: SortOrderInput | SortOrder
22628
+ state?: SortOrder
22629
+ createdAt?: SortOrder
22630
+ updatedAt?: SortOrder
22631
+ }
22632
+
22633
+ export type ScheduledJobWhereUniqueInput = Prisma.AtLeast<{
22634
+ id?: number
22635
+ scheduleName?: string
22636
+ AND?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
22637
+ OR?: ScheduledJobWhereInput[]
22638
+ NOT?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
22639
+ scheduledAt?: DateTimeFilter<"ScheduledJob"> | Date | string
22640
+ queueResourceId?: StringFilter<"ScheduledJob"> | string
22641
+ payload?: JsonNullableFilter<"ScheduledJob">
22642
+ state?: StringFilter<"ScheduledJob"> | string
22643
+ createdAt?: DateTimeFilter<"ScheduledJob"> | Date | string
22644
+ updatedAt?: DateTimeFilter<"ScheduledJob"> | Date | string
22645
+ }, "id" | "scheduleName">
22646
+
22647
+ export type ScheduledJobOrderByWithAggregationInput = {
22648
+ id?: SortOrder
22649
+ scheduleName?: SortOrder
22650
+ scheduledAt?: SortOrder
22651
+ queueResourceId?: SortOrder
22652
+ payload?: SortOrderInput | SortOrder
22653
+ state?: SortOrder
22654
+ createdAt?: SortOrder
22655
+ updatedAt?: SortOrder
22656
+ _count?: ScheduledJobCountOrderByAggregateInput
22657
+ _avg?: ScheduledJobAvgOrderByAggregateInput
22658
+ _max?: ScheduledJobMaxOrderByAggregateInput
22659
+ _min?: ScheduledJobMinOrderByAggregateInput
22660
+ _sum?: ScheduledJobSumOrderByAggregateInput
22661
+ }
22662
+
22663
+ export type ScheduledJobScalarWhereWithAggregatesInput = {
22664
+ AND?: ScheduledJobScalarWhereWithAggregatesInput | ScheduledJobScalarWhereWithAggregatesInput[]
22665
+ OR?: ScheduledJobScalarWhereWithAggregatesInput[]
22666
+ NOT?: ScheduledJobScalarWhereWithAggregatesInput | ScheduledJobScalarWhereWithAggregatesInput[]
22667
+ id?: IntWithAggregatesFilter<"ScheduledJob"> | number
22668
+ scheduleName?: StringWithAggregatesFilter<"ScheduledJob"> | string
22669
+ scheduledAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
22670
+ queueResourceId?: StringWithAggregatesFilter<"ScheduledJob"> | string
22671
+ payload?: JsonNullableWithAggregatesFilter<"ScheduledJob">
22672
+ state?: StringWithAggregatesFilter<"ScheduledJob"> | string
22673
+ createdAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
22674
+ updatedAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
22675
+ }
22676
+
21437
22677
  export type UserCreateInput = {
21438
22678
  type: $Enums.UserType
21439
22679
  createdAt?: Date | string
@@ -22499,6 +23739,80 @@ export namespace Prisma {
22499
23739
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
22500
23740
  }
22501
23741
 
23742
+ export type ScheduledJobCreateInput = {
23743
+ scheduleName: string
23744
+ scheduledAt: Date | string
23745
+ queueResourceId: string
23746
+ payload?: NullableJsonNullValueInput | InputJsonValue
23747
+ state?: string
23748
+ createdAt?: Date | string
23749
+ updatedAt?: Date | string
23750
+ }
23751
+
23752
+ export type ScheduledJobUncheckedCreateInput = {
23753
+ id?: number
23754
+ scheduleName: string
23755
+ scheduledAt: Date | string
23756
+ queueResourceId: string
23757
+ payload?: NullableJsonNullValueInput | InputJsonValue
23758
+ state?: string
23759
+ createdAt?: Date | string
23760
+ updatedAt?: Date | string
23761
+ }
23762
+
23763
+ export type ScheduledJobUpdateInput = {
23764
+ scheduleName?: StringFieldUpdateOperationsInput | string
23765
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
23766
+ queueResourceId?: StringFieldUpdateOperationsInput | string
23767
+ payload?: NullableJsonNullValueInput | InputJsonValue
23768
+ state?: StringFieldUpdateOperationsInput | string
23769
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23770
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23771
+ }
23772
+
23773
+ export type ScheduledJobUncheckedUpdateInput = {
23774
+ id?: IntFieldUpdateOperationsInput | number
23775
+ scheduleName?: StringFieldUpdateOperationsInput | string
23776
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
23777
+ queueResourceId?: StringFieldUpdateOperationsInput | string
23778
+ payload?: NullableJsonNullValueInput | InputJsonValue
23779
+ state?: StringFieldUpdateOperationsInput | string
23780
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23781
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23782
+ }
23783
+
23784
+ export type ScheduledJobCreateManyInput = {
23785
+ id?: number
23786
+ scheduleName: string
23787
+ scheduledAt: Date | string
23788
+ queueResourceId: string
23789
+ payload?: NullableJsonNullValueInput | InputJsonValue
23790
+ state?: string
23791
+ createdAt?: Date | string
23792
+ updatedAt?: Date | string
23793
+ }
23794
+
23795
+ export type ScheduledJobUpdateManyMutationInput = {
23796
+ scheduleName?: StringFieldUpdateOperationsInput | string
23797
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
23798
+ queueResourceId?: StringFieldUpdateOperationsInput | string
23799
+ payload?: NullableJsonNullValueInput | InputJsonValue
23800
+ state?: StringFieldUpdateOperationsInput | string
23801
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23802
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23803
+ }
23804
+
23805
+ export type ScheduledJobUncheckedUpdateManyInput = {
23806
+ id?: IntFieldUpdateOperationsInput | number
23807
+ scheduleName?: StringFieldUpdateOperationsInput | string
23808
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
23809
+ queueResourceId?: StringFieldUpdateOperationsInput | string
23810
+ payload?: NullableJsonNullValueInput | InputJsonValue
23811
+ state?: StringFieldUpdateOperationsInput | string
23812
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23813
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23814
+ }
23815
+
22502
23816
  export type IntFilter<$PrismaModel = never> = {
22503
23817
  equals?: number | IntFieldRefInput<$PrismaModel>
22504
23818
  in?: number[] | ListIntFieldRefInput<$PrismaModel>
@@ -23617,6 +24931,45 @@ export namespace Prisma {
23617
24931
  _max?: NestedBoolFilter<$PrismaModel>
23618
24932
  }
23619
24933
 
24934
+ export type ScheduledJobCountOrderByAggregateInput = {
24935
+ id?: SortOrder
24936
+ scheduleName?: SortOrder
24937
+ scheduledAt?: SortOrder
24938
+ queueResourceId?: SortOrder
24939
+ payload?: SortOrder
24940
+ state?: SortOrder
24941
+ createdAt?: SortOrder
24942
+ updatedAt?: SortOrder
24943
+ }
24944
+
24945
+ export type ScheduledJobAvgOrderByAggregateInput = {
24946
+ id?: SortOrder
24947
+ }
24948
+
24949
+ export type ScheduledJobMaxOrderByAggregateInput = {
24950
+ id?: SortOrder
24951
+ scheduleName?: SortOrder
24952
+ scheduledAt?: SortOrder
24953
+ queueResourceId?: SortOrder
24954
+ state?: SortOrder
24955
+ createdAt?: SortOrder
24956
+ updatedAt?: SortOrder
24957
+ }
24958
+
24959
+ export type ScheduledJobMinOrderByAggregateInput = {
24960
+ id?: SortOrder
24961
+ scheduleName?: SortOrder
24962
+ scheduledAt?: SortOrder
24963
+ queueResourceId?: SortOrder
24964
+ state?: SortOrder
24965
+ createdAt?: SortOrder
24966
+ updatedAt?: SortOrder
24967
+ }
24968
+
24969
+ export type ScheduledJobSumOrderByAggregateInput = {
24970
+ id?: SortOrder
24971
+ }
24972
+
23620
24973
  export type UserCreateNestedOneWithoutMembersInput = {
23621
24974
  create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
23622
24975
  connectOrCreate?: UserCreateOrConnectWithoutMembersInput