@friggframework/core 2.0.0--canary.685.a13fdab.0 → 2.0.0--canary.686.87e9875.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.
Files changed (49) hide show
  1. package/core/Worker.js +31 -7
  2. package/database/config.js +48 -24
  3. package/database/encryption/encryption-schema-registry.js +80 -12
  4. package/database/prisma.js +4 -2
  5. package/extensions/bootstrap-runner.js +43 -0
  6. package/extensions/extension-loader.js +167 -0
  7. package/extensions/index.js +41 -0
  8. package/extensions/initialize-app.js +123 -0
  9. package/extensions/route-mounter.js +103 -0
  10. package/extensions/schema-composer.js +188 -0
  11. package/generated/prisma-mongodb/edge.js +16 -4
  12. package/generated/prisma-mongodb/index-browser.js +13 -1
  13. package/generated/prisma-mongodb/index.d.ts +1343 -104
  14. package/generated/prisma-mongodb/index.js +16 -4
  15. package/generated/prisma-mongodb/package.json +1 -1
  16. package/generated/prisma-mongodb/schema.prisma +18 -0
  17. package/generated/prisma-mongodb/wasm.js +16 -4
  18. package/generated/prisma-postgresql/edge.js +16 -4
  19. package/generated/prisma-postgresql/index-browser.js +13 -1
  20. package/generated/prisma-postgresql/index.d.ts +1446 -93
  21. package/generated/prisma-postgresql/index.js +16 -4
  22. package/generated/prisma-postgresql/package.json +1 -1
  23. package/generated/prisma-postgresql/schema.prisma +17 -0
  24. package/generated/prisma-postgresql/wasm.js +16 -4
  25. package/handlers/app-definition-loader.js +73 -15
  26. package/handlers/routers/auth.js +40 -12
  27. package/handlers/routers/integration-defined-routers.js +144 -92
  28. package/handlers/routers/integration-webhook-routers.js +102 -64
  29. package/index.js +36 -1
  30. package/infrastructure/scheduler/index.js +19 -6
  31. package/infrastructure/scheduler/netlify-scheduler-adapter.js +185 -0
  32. package/infrastructure/scheduler/scheduler-service-factory.js +36 -7
  33. package/modules/module-factory.js +12 -0
  34. package/modules/module.js +35 -2
  35. package/package.json +5 -5
  36. package/prisma-mongodb/schema.prisma +18 -0
  37. package/prisma-postgresql/migrations/20261017000000_add_scheduled_job/migration.sql +28 -0
  38. package/prisma-postgresql/schema.prisma +17 -0
  39. package/providers/index.js +13 -0
  40. package/providers/resolve-provider.js +93 -0
  41. package/queues/index.js +25 -0
  42. package/queues/providers/index.js +11 -0
  43. package/queues/providers/netlify-background-provider.js +76 -0
  44. package/queues/providers/qstash-queue-provider.js +122 -0
  45. package/queues/providers/sqs-queue-provider.js +61 -0
  46. package/queues/queue-client-interface.js +55 -0
  47. package/queues/queue-provider-factory.js +101 -0
  48. package/queues/queue-provider.js +46 -0
  49. package/queues/sqs-queue-client.js +81 -0
@@ -119,6 +119,13 @@ export type AuthorizationSession = $Result.DefaultSelection<Prisma.$Authorizatio
119
119
  * before the user.
120
120
  */
121
121
  export type OrganizationMembership = $Result.DefaultSelection<Prisma.$OrganizationMembershipPayload>
122
+ /**
123
+ * Model ScheduledJob
124
+ * One-time scheduled jobs for poll-and-dispatch scheduling pattern.
125
+ * Used by providers without native one-time scheduling APIs (e.g., Netlify).
126
+ * A cron function queries for due jobs and dispatches them to a queue.
127
+ */
128
+ export type ScheduledJob = $Result.DefaultSelection<Prisma.$ScheduledJobPayload>
122
129
 
123
130
  /**
124
131
  * Enums
@@ -445,6 +452,16 @@ export class PrismaClient<
445
452
  * ```
446
453
  */
447
454
  get organizationMembership(): Prisma.OrganizationMembershipDelegate<ExtArgs, ClientOptions>;
455
+
456
+ /**
457
+ * `prisma.scheduledJob`: Exposes CRUD operations for the **ScheduledJob** model.
458
+ * Example usage:
459
+ * ```ts
460
+ * // Fetch zero or more ScheduledJobs
461
+ * const scheduledJobs = await prisma.scheduledJob.findMany()
462
+ * ```
463
+ */
464
+ get scheduledJob(): Prisma.ScheduledJobDelegate<ExtArgs, ClientOptions>;
448
465
  }
449
466
 
450
467
  export namespace Prisma {
@@ -903,7 +920,8 @@ export namespace Prisma {
903
920
  ScriptSchedule: 'ScriptSchedule',
904
921
  UsageCounter: 'UsageCounter',
905
922
  AuthorizationSession: 'AuthorizationSession',
906
- OrganizationMembership: 'OrganizationMembership'
923
+ OrganizationMembership: 'OrganizationMembership',
924
+ ScheduledJob: 'ScheduledJob'
907
925
  };
908
926
 
909
927
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -922,7 +940,7 @@ export namespace Prisma {
922
940
  omit: GlobalOmitOptions
923
941
  }
924
942
  meta: {
925
- modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter" | "authorizationSession" | "organizationMembership"
943
+ modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter" | "authorizationSession" | "organizationMembership" | "scheduledJob"
926
944
  txIsolationLevel: never
927
945
  }
928
946
  model: {
@@ -2258,6 +2276,80 @@ export namespace Prisma {
2258
2276
  }
2259
2277
  }
2260
2278
  }
2279
+ ScheduledJob: {
2280
+ payload: Prisma.$ScheduledJobPayload<ExtArgs>
2281
+ fields: Prisma.ScheduledJobFieldRefs
2282
+ operations: {
2283
+ findUnique: {
2284
+ args: Prisma.ScheduledJobFindUniqueArgs<ExtArgs>
2285
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload> | null
2286
+ }
2287
+ findUniqueOrThrow: {
2288
+ args: Prisma.ScheduledJobFindUniqueOrThrowArgs<ExtArgs>
2289
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2290
+ }
2291
+ findFirst: {
2292
+ args: Prisma.ScheduledJobFindFirstArgs<ExtArgs>
2293
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload> | null
2294
+ }
2295
+ findFirstOrThrow: {
2296
+ args: Prisma.ScheduledJobFindFirstOrThrowArgs<ExtArgs>
2297
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2298
+ }
2299
+ findMany: {
2300
+ args: Prisma.ScheduledJobFindManyArgs<ExtArgs>
2301
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>[]
2302
+ }
2303
+ create: {
2304
+ args: Prisma.ScheduledJobCreateArgs<ExtArgs>
2305
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2306
+ }
2307
+ createMany: {
2308
+ args: Prisma.ScheduledJobCreateManyArgs<ExtArgs>
2309
+ result: BatchPayload
2310
+ }
2311
+ delete: {
2312
+ args: Prisma.ScheduledJobDeleteArgs<ExtArgs>
2313
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2314
+ }
2315
+ update: {
2316
+ args: Prisma.ScheduledJobUpdateArgs<ExtArgs>
2317
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2318
+ }
2319
+ deleteMany: {
2320
+ args: Prisma.ScheduledJobDeleteManyArgs<ExtArgs>
2321
+ result: BatchPayload
2322
+ }
2323
+ updateMany: {
2324
+ args: Prisma.ScheduledJobUpdateManyArgs<ExtArgs>
2325
+ result: BatchPayload
2326
+ }
2327
+ upsert: {
2328
+ args: Prisma.ScheduledJobUpsertArgs<ExtArgs>
2329
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2330
+ }
2331
+ aggregate: {
2332
+ args: Prisma.ScheduledJobAggregateArgs<ExtArgs>
2333
+ result: $Utils.Optional<AggregateScheduledJob>
2334
+ }
2335
+ groupBy: {
2336
+ args: Prisma.ScheduledJobGroupByArgs<ExtArgs>
2337
+ result: $Utils.Optional<ScheduledJobGroupByOutputType>[]
2338
+ }
2339
+ findRaw: {
2340
+ args: Prisma.ScheduledJobFindRawArgs<ExtArgs>
2341
+ result: JsonObject
2342
+ }
2343
+ aggregateRaw: {
2344
+ args: Prisma.ScheduledJobAggregateRawArgs<ExtArgs>
2345
+ result: JsonObject
2346
+ }
2347
+ count: {
2348
+ args: Prisma.ScheduledJobCountArgs<ExtArgs>
2349
+ result: $Utils.Optional<ScheduledJobCountAggregateOutputType> | number
2350
+ }
2351
+ }
2352
+ }
2261
2353
  }
2262
2354
  } & {
2263
2355
  other: {
@@ -2355,6 +2447,7 @@ export namespace Prisma {
2355
2447
  usageCounter?: UsageCounterOmit
2356
2448
  authorizationSession?: AuthorizationSessionOmit
2357
2449
  organizationMembership?: OrganizationMembershipOmit
2450
+ scheduledJob?: ScheduledJobOmit
2358
2451
  }
2359
2452
 
2360
2453
  /* Types for Logging */
@@ -21350,134 +21443,1095 @@ export namespace Prisma {
21350
21443
 
21351
21444
 
21352
21445
  /**
21353
- * Enums
21446
+ * Model ScheduledJob
21354
21447
  */
21355
21448
 
21356
- export const UserScalarFieldEnum: {
21357
- id: 'id',
21358
- type: 'type',
21359
- createdAt: 'createdAt',
21360
- updatedAt: 'updatedAt',
21361
- email: 'email',
21362
- username: 'username',
21363
- hashword: 'hashword',
21364
- appUserId: 'appUserId',
21365
- organizationId: 'organizationId',
21366
- appOrgId: 'appOrgId',
21367
- name: 'name'
21368
- };
21449
+ export type AggregateScheduledJob = {
21450
+ _count: ScheduledJobCountAggregateOutputType | null
21451
+ _min: ScheduledJobMinAggregateOutputType | null
21452
+ _max: ScheduledJobMaxAggregateOutputType | null
21453
+ }
21369
21454
 
21370
- export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
21455
+ export type ScheduledJobMinAggregateOutputType = {
21456
+ id: string | null
21457
+ scheduleName: string | null
21458
+ scheduledAt: Date | null
21459
+ queueResourceId: string | null
21460
+ state: string | null
21461
+ createdAt: Date | null
21462
+ updatedAt: Date | null
21463
+ }
21371
21464
 
21465
+ export type ScheduledJobMaxAggregateOutputType = {
21466
+ id: string | null
21467
+ scheduleName: string | null
21468
+ scheduledAt: Date | null
21469
+ queueResourceId: string | null
21470
+ state: string | null
21471
+ createdAt: Date | null
21472
+ updatedAt: Date | null
21473
+ }
21372
21474
 
21373
- export const TokenScalarFieldEnum: {
21374
- id: 'id',
21375
- token: 'token',
21376
- created: 'created',
21377
- expires: 'expires',
21378
- userId: 'userId'
21379
- };
21475
+ export type ScheduledJobCountAggregateOutputType = {
21476
+ id: number
21477
+ scheduleName: number
21478
+ scheduledAt: number
21479
+ queueResourceId: number
21480
+ payload: number
21481
+ state: number
21482
+ createdAt: number
21483
+ updatedAt: number
21484
+ _all: number
21485
+ }
21380
21486
 
21381
- export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
21382
21487
 
21488
+ export type ScheduledJobMinAggregateInputType = {
21489
+ id?: true
21490
+ scheduleName?: true
21491
+ scheduledAt?: true
21492
+ queueResourceId?: true
21493
+ state?: true
21494
+ createdAt?: true
21495
+ updatedAt?: true
21496
+ }
21383
21497
 
21384
- export const CredentialScalarFieldEnum: {
21385
- id: 'id',
21386
- userId: 'userId',
21387
- authIsValid: 'authIsValid',
21388
- externalId: 'externalId',
21389
- data: 'data',
21390
- createdAt: 'createdAt',
21391
- updatedAt: 'updatedAt'
21392
- };
21498
+ export type ScheduledJobMaxAggregateInputType = {
21499
+ id?: true
21500
+ scheduleName?: true
21501
+ scheduledAt?: true
21502
+ queueResourceId?: true
21503
+ state?: true
21504
+ createdAt?: true
21505
+ updatedAt?: true
21506
+ }
21393
21507
 
21394
- export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
21508
+ export type ScheduledJobCountAggregateInputType = {
21509
+ id?: true
21510
+ scheduleName?: true
21511
+ scheduledAt?: true
21512
+ queueResourceId?: true
21513
+ payload?: true
21514
+ state?: true
21515
+ createdAt?: true
21516
+ updatedAt?: true
21517
+ _all?: true
21518
+ }
21395
21519
 
21520
+ export type ScheduledJobAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21521
+ /**
21522
+ * Filter which ScheduledJob to aggregate.
21523
+ */
21524
+ where?: ScheduledJobWhereInput
21525
+ /**
21526
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
21527
+ *
21528
+ * Determine the order of ScheduledJobs to fetch.
21529
+ */
21530
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
21531
+ /**
21532
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
21533
+ *
21534
+ * Sets the start position
21535
+ */
21536
+ cursor?: ScheduledJobWhereUniqueInput
21537
+ /**
21538
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21539
+ *
21540
+ * Take `±n` ScheduledJobs from the position of the cursor.
21541
+ */
21542
+ take?: number
21543
+ /**
21544
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21545
+ *
21546
+ * Skip the first `n` ScheduledJobs.
21547
+ */
21548
+ skip?: number
21549
+ /**
21550
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
21551
+ *
21552
+ * Count returned ScheduledJobs
21553
+ **/
21554
+ _count?: true | ScheduledJobCountAggregateInputType
21555
+ /**
21556
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
21557
+ *
21558
+ * Select which fields to find the minimum value
21559
+ **/
21560
+ _min?: ScheduledJobMinAggregateInputType
21561
+ /**
21562
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
21563
+ *
21564
+ * Select which fields to find the maximum value
21565
+ **/
21566
+ _max?: ScheduledJobMaxAggregateInputType
21567
+ }
21396
21568
 
21397
- export const EntityScalarFieldEnum: {
21398
- id: 'id',
21399
- credentialId: 'credentialId',
21400
- userId: 'userId',
21401
- name: 'name',
21402
- moduleName: 'moduleName',
21403
- externalId: 'externalId',
21404
- organizationId: 'organizationId',
21405
- data: 'data',
21406
- createdAt: 'createdAt',
21407
- updatedAt: 'updatedAt',
21408
- integrationIds: 'integrationIds',
21409
- syncIds: 'syncIds'
21410
- };
21569
+ export type GetScheduledJobAggregateType<T extends ScheduledJobAggregateArgs> = {
21570
+ [P in keyof T & keyof AggregateScheduledJob]: P extends '_count' | 'count'
21571
+ ? T[P] extends true
21572
+ ? number
21573
+ : GetScalarType<T[P], AggregateScheduledJob[P]>
21574
+ : GetScalarType<T[P], AggregateScheduledJob[P]>
21575
+ }
21411
21576
 
21412
- export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
21413
21577
 
21414
21578
 
21415
- export const IntegrationScalarFieldEnum: {
21416
- id: 'id',
21417
- userId: 'userId',
21418
- status: 'status',
21419
- organizationId: 'organizationId',
21420
- config: 'config',
21421
- version: 'version',
21422
- entityIds: 'entityIds',
21423
- errors: 'errors',
21424
- warnings: 'warnings',
21425
- info: 'info',
21426
- logs: 'logs',
21427
- createdAt: 'createdAt',
21428
- updatedAt: 'updatedAt'
21429
- };
21430
21579
 
21431
- export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
21580
+ export type ScheduledJobGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21581
+ where?: ScheduledJobWhereInput
21582
+ orderBy?: ScheduledJobOrderByWithAggregationInput | ScheduledJobOrderByWithAggregationInput[]
21583
+ by: ScheduledJobScalarFieldEnum[] | ScheduledJobScalarFieldEnum
21584
+ having?: ScheduledJobScalarWhereWithAggregatesInput
21585
+ take?: number
21586
+ skip?: number
21587
+ _count?: ScheduledJobCountAggregateInputType | true
21588
+ _min?: ScheduledJobMinAggregateInputType
21589
+ _max?: ScheduledJobMaxAggregateInputType
21590
+ }
21432
21591
 
21592
+ export type ScheduledJobGroupByOutputType = {
21593
+ id: string
21594
+ scheduleName: string
21595
+ scheduledAt: Date
21596
+ queueResourceId: string
21597
+ payload: JsonValue | null
21598
+ state: string
21599
+ createdAt: Date
21600
+ updatedAt: Date
21601
+ _count: ScheduledJobCountAggregateOutputType | null
21602
+ _min: ScheduledJobMinAggregateOutputType | null
21603
+ _max: ScheduledJobMaxAggregateOutputType | null
21604
+ }
21433
21605
 
21434
- export const IntegrationMappingScalarFieldEnum: {
21435
- id: 'id',
21436
- integrationId: 'integrationId',
21437
- sourceId: 'sourceId',
21438
- mapping: 'mapping',
21439
- createdAt: 'createdAt',
21440
- updatedAt: 'updatedAt'
21441
- };
21606
+ type GetScheduledJobGroupByPayload<T extends ScheduledJobGroupByArgs> = Prisma.PrismaPromise<
21607
+ Array<
21608
+ PickEnumerable<ScheduledJobGroupByOutputType, T['by']> &
21609
+ {
21610
+ [P in ((keyof T) & (keyof ScheduledJobGroupByOutputType))]: P extends '_count'
21611
+ ? T[P] extends boolean
21612
+ ? number
21613
+ : GetScalarType<T[P], ScheduledJobGroupByOutputType[P]>
21614
+ : GetScalarType<T[P], ScheduledJobGroupByOutputType[P]>
21615
+ }
21616
+ >
21617
+ >
21442
21618
 
21443
- export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
21444
21619
 
21620
+ export type ScheduledJobSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
21621
+ id?: boolean
21622
+ scheduleName?: boolean
21623
+ scheduledAt?: boolean
21624
+ queueResourceId?: boolean
21625
+ payload?: boolean
21626
+ state?: boolean
21627
+ createdAt?: boolean
21628
+ updatedAt?: boolean
21629
+ }, ExtArgs["result"]["scheduledJob"]>
21445
21630
 
21446
- export const ProcessScalarFieldEnum: {
21447
- id: 'id',
21448
- userId: 'userId',
21449
- integrationId: 'integrationId',
21450
- name: 'name',
21451
- type: 'type',
21452
- state: 'state',
21453
- context: 'context',
21454
- results: 'results',
21455
- childProcesses: 'childProcesses',
21456
- parentProcessId: 'parentProcessId',
21457
- createdAt: 'createdAt',
21458
- updatedAt: 'updatedAt'
21459
- };
21460
21631
 
21461
- export type ProcessScalarFieldEnum = (typeof ProcessScalarFieldEnum)[keyof typeof ProcessScalarFieldEnum]
21462
21632
 
21633
+ export type ScheduledJobSelectScalar = {
21634
+ id?: boolean
21635
+ scheduleName?: boolean
21636
+ scheduledAt?: boolean
21637
+ queueResourceId?: boolean
21638
+ payload?: boolean
21639
+ state?: boolean
21640
+ createdAt?: boolean
21641
+ updatedAt?: boolean
21642
+ }
21463
21643
 
21464
- export const SyncScalarFieldEnum: {
21465
- id: 'id',
21466
- integrationId: 'integrationId',
21467
- entityIds: 'entityIds',
21468
- hash: 'hash',
21469
- name: 'name'
21470
- };
21644
+ export type ScheduledJobOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "scheduleName" | "scheduledAt" | "queueResourceId" | "payload" | "state" | "createdAt" | "updatedAt", ExtArgs["result"]["scheduledJob"]>
21471
21645
 
21472
- export type SyncScalarFieldEnum = (typeof SyncScalarFieldEnum)[keyof typeof SyncScalarFieldEnum]
21646
+ export type $ScheduledJobPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21647
+ name: "ScheduledJob"
21648
+ objects: {}
21649
+ scalars: $Extensions.GetPayloadResult<{
21650
+ id: string
21651
+ scheduleName: string
21652
+ scheduledAt: Date
21653
+ queueResourceId: string
21654
+ payload: Prisma.JsonValue | null
21655
+ state: string
21656
+ createdAt: Date
21657
+ updatedAt: Date
21658
+ }, ExtArgs["result"]["scheduledJob"]>
21659
+ composites: {}
21660
+ }
21473
21661
 
21662
+ type ScheduledJobGetPayload<S extends boolean | null | undefined | ScheduledJobDefaultArgs> = $Result.GetResult<Prisma.$ScheduledJobPayload, S>
21474
21663
 
21475
- export const DataIdentifierScalarFieldEnum: {
21476
- id: 'id',
21477
- syncId: 'syncId',
21478
- entityId: 'entityId',
21479
- idData: 'idData',
21480
- hash: 'hash'
21664
+ type ScheduledJobCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
21665
+ Omit<ScheduledJobFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
21666
+ select?: ScheduledJobCountAggregateInputType | true
21667
+ }
21668
+
21669
+ export interface ScheduledJobDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
21670
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ScheduledJob'], meta: { name: 'ScheduledJob' } }
21671
+ /**
21672
+ * Find zero or one ScheduledJob that matches the filter.
21673
+ * @param {ScheduledJobFindUniqueArgs} args - Arguments to find a ScheduledJob
21674
+ * @example
21675
+ * // Get one ScheduledJob
21676
+ * const scheduledJob = await prisma.scheduledJob.findUnique({
21677
+ * where: {
21678
+ * // ... provide filter here
21679
+ * }
21680
+ * })
21681
+ */
21682
+ findUnique<T extends ScheduledJobFindUniqueArgs>(args: SelectSubset<T, ScheduledJobFindUniqueArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
21683
+
21684
+ /**
21685
+ * Find one ScheduledJob that matches the filter or throw an error with `error.code='P2025'`
21686
+ * if no matches were found.
21687
+ * @param {ScheduledJobFindUniqueOrThrowArgs} args - Arguments to find a ScheduledJob
21688
+ * @example
21689
+ * // Get one ScheduledJob
21690
+ * const scheduledJob = await prisma.scheduledJob.findUniqueOrThrow({
21691
+ * where: {
21692
+ * // ... provide filter here
21693
+ * }
21694
+ * })
21695
+ */
21696
+ findUniqueOrThrow<T extends ScheduledJobFindUniqueOrThrowArgs>(args: SelectSubset<T, ScheduledJobFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
21697
+
21698
+ /**
21699
+ * Find the first ScheduledJob that matches the filter.
21700
+ * Note, that providing `undefined` is treated as the value not being there.
21701
+ * Read more here: https://pris.ly/d/null-undefined
21702
+ * @param {ScheduledJobFindFirstArgs} args - Arguments to find a ScheduledJob
21703
+ * @example
21704
+ * // Get one ScheduledJob
21705
+ * const scheduledJob = await prisma.scheduledJob.findFirst({
21706
+ * where: {
21707
+ * // ... provide filter here
21708
+ * }
21709
+ * })
21710
+ */
21711
+ findFirst<T extends ScheduledJobFindFirstArgs>(args?: SelectSubset<T, ScheduledJobFindFirstArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
21712
+
21713
+ /**
21714
+ * Find the first ScheduledJob that matches the filter or
21715
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
21716
+ * Note, that providing `undefined` is treated as the value not being there.
21717
+ * Read more here: https://pris.ly/d/null-undefined
21718
+ * @param {ScheduledJobFindFirstOrThrowArgs} args - Arguments to find a ScheduledJob
21719
+ * @example
21720
+ * // Get one ScheduledJob
21721
+ * const scheduledJob = await prisma.scheduledJob.findFirstOrThrow({
21722
+ * where: {
21723
+ * // ... provide filter here
21724
+ * }
21725
+ * })
21726
+ */
21727
+ findFirstOrThrow<T extends ScheduledJobFindFirstOrThrowArgs>(args?: SelectSubset<T, ScheduledJobFindFirstOrThrowArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
21728
+
21729
+ /**
21730
+ * Find zero or more ScheduledJobs that matches the filter.
21731
+ * Note, that providing `undefined` is treated as the value not being there.
21732
+ * Read more here: https://pris.ly/d/null-undefined
21733
+ * @param {ScheduledJobFindManyArgs} args - Arguments to filter and select certain fields only.
21734
+ * @example
21735
+ * // Get all ScheduledJobs
21736
+ * const scheduledJobs = await prisma.scheduledJob.findMany()
21737
+ *
21738
+ * // Get first 10 ScheduledJobs
21739
+ * const scheduledJobs = await prisma.scheduledJob.findMany({ take: 10 })
21740
+ *
21741
+ * // Only select the `id`
21742
+ * const scheduledJobWithIdOnly = await prisma.scheduledJob.findMany({ select: { id: true } })
21743
+ *
21744
+ */
21745
+ findMany<T extends ScheduledJobFindManyArgs>(args?: SelectSubset<T, ScheduledJobFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
21746
+
21747
+ /**
21748
+ * Create a ScheduledJob.
21749
+ * @param {ScheduledJobCreateArgs} args - Arguments to create a ScheduledJob.
21750
+ * @example
21751
+ * // Create one ScheduledJob
21752
+ * const ScheduledJob = await prisma.scheduledJob.create({
21753
+ * data: {
21754
+ * // ... data to create a ScheduledJob
21755
+ * }
21756
+ * })
21757
+ *
21758
+ */
21759
+ create<T extends ScheduledJobCreateArgs>(args: SelectSubset<T, ScheduledJobCreateArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
21760
+
21761
+ /**
21762
+ * Create many ScheduledJobs.
21763
+ * @param {ScheduledJobCreateManyArgs} args - Arguments to create many ScheduledJobs.
21764
+ * @example
21765
+ * // Create many ScheduledJobs
21766
+ * const scheduledJob = await prisma.scheduledJob.createMany({
21767
+ * data: [
21768
+ * // ... provide data here
21769
+ * ]
21770
+ * })
21771
+ *
21772
+ */
21773
+ createMany<T extends ScheduledJobCreateManyArgs>(args?: SelectSubset<T, ScheduledJobCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
21774
+
21775
+ /**
21776
+ * Delete a ScheduledJob.
21777
+ * @param {ScheduledJobDeleteArgs} args - Arguments to delete one ScheduledJob.
21778
+ * @example
21779
+ * // Delete one ScheduledJob
21780
+ * const ScheduledJob = await prisma.scheduledJob.delete({
21781
+ * where: {
21782
+ * // ... filter to delete one ScheduledJob
21783
+ * }
21784
+ * })
21785
+ *
21786
+ */
21787
+ delete<T extends ScheduledJobDeleteArgs>(args: SelectSubset<T, ScheduledJobDeleteArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
21788
+
21789
+ /**
21790
+ * Update one ScheduledJob.
21791
+ * @param {ScheduledJobUpdateArgs} args - Arguments to update one ScheduledJob.
21792
+ * @example
21793
+ * // Update one ScheduledJob
21794
+ * const scheduledJob = await prisma.scheduledJob.update({
21795
+ * where: {
21796
+ * // ... provide filter here
21797
+ * },
21798
+ * data: {
21799
+ * // ... provide data here
21800
+ * }
21801
+ * })
21802
+ *
21803
+ */
21804
+ update<T extends ScheduledJobUpdateArgs>(args: SelectSubset<T, ScheduledJobUpdateArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
21805
+
21806
+ /**
21807
+ * Delete zero or more ScheduledJobs.
21808
+ * @param {ScheduledJobDeleteManyArgs} args - Arguments to filter ScheduledJobs to delete.
21809
+ * @example
21810
+ * // Delete a few ScheduledJobs
21811
+ * const { count } = await prisma.scheduledJob.deleteMany({
21812
+ * where: {
21813
+ * // ... provide filter here
21814
+ * }
21815
+ * })
21816
+ *
21817
+ */
21818
+ deleteMany<T extends ScheduledJobDeleteManyArgs>(args?: SelectSubset<T, ScheduledJobDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
21819
+
21820
+ /**
21821
+ * Update zero or more ScheduledJobs.
21822
+ * Note, that providing `undefined` is treated as the value not being there.
21823
+ * Read more here: https://pris.ly/d/null-undefined
21824
+ * @param {ScheduledJobUpdateManyArgs} args - Arguments to update one or more rows.
21825
+ * @example
21826
+ * // Update many ScheduledJobs
21827
+ * const scheduledJob = await prisma.scheduledJob.updateMany({
21828
+ * where: {
21829
+ * // ... provide filter here
21830
+ * },
21831
+ * data: {
21832
+ * // ... provide data here
21833
+ * }
21834
+ * })
21835
+ *
21836
+ */
21837
+ updateMany<T extends ScheduledJobUpdateManyArgs>(args: SelectSubset<T, ScheduledJobUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
21838
+
21839
+ /**
21840
+ * Create or update one ScheduledJob.
21841
+ * @param {ScheduledJobUpsertArgs} args - Arguments to update or create a ScheduledJob.
21842
+ * @example
21843
+ * // Update or create a ScheduledJob
21844
+ * const scheduledJob = await prisma.scheduledJob.upsert({
21845
+ * create: {
21846
+ * // ... data to create a ScheduledJob
21847
+ * },
21848
+ * update: {
21849
+ * // ... in case it already exists, update
21850
+ * },
21851
+ * where: {
21852
+ * // ... the filter for the ScheduledJob we want to update
21853
+ * }
21854
+ * })
21855
+ */
21856
+ upsert<T extends ScheduledJobUpsertArgs>(args: SelectSubset<T, ScheduledJobUpsertArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
21857
+
21858
+ /**
21859
+ * Find zero or more ScheduledJobs that matches the filter.
21860
+ * @param {ScheduledJobFindRawArgs} args - Select which filters you would like to apply.
21861
+ * @example
21862
+ * const scheduledJob = await prisma.scheduledJob.findRaw({
21863
+ * filter: { age: { $gt: 25 } }
21864
+ * })
21865
+ */
21866
+ findRaw(args?: ScheduledJobFindRawArgs): Prisma.PrismaPromise<JsonObject>
21867
+
21868
+ /**
21869
+ * Perform aggregation operations on a ScheduledJob.
21870
+ * @param {ScheduledJobAggregateRawArgs} args - Select which aggregations you would like to apply.
21871
+ * @example
21872
+ * const scheduledJob = await prisma.scheduledJob.aggregateRaw({
21873
+ * pipeline: [
21874
+ * { $match: { status: "registered" } },
21875
+ * { $group: { _id: "$country", total: { $sum: 1 } } }
21876
+ * ]
21877
+ * })
21878
+ */
21879
+ aggregateRaw(args?: ScheduledJobAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
21880
+
21881
+
21882
+ /**
21883
+ * Count the number of ScheduledJobs.
21884
+ * Note, that providing `undefined` is treated as the value not being there.
21885
+ * Read more here: https://pris.ly/d/null-undefined
21886
+ * @param {ScheduledJobCountArgs} args - Arguments to filter ScheduledJobs to count.
21887
+ * @example
21888
+ * // Count the number of ScheduledJobs
21889
+ * const count = await prisma.scheduledJob.count({
21890
+ * where: {
21891
+ * // ... the filter for the ScheduledJobs we want to count
21892
+ * }
21893
+ * })
21894
+ **/
21895
+ count<T extends ScheduledJobCountArgs>(
21896
+ args?: Subset<T, ScheduledJobCountArgs>,
21897
+ ): Prisma.PrismaPromise<
21898
+ T extends $Utils.Record<'select', any>
21899
+ ? T['select'] extends true
21900
+ ? number
21901
+ : GetScalarType<T['select'], ScheduledJobCountAggregateOutputType>
21902
+ : number
21903
+ >
21904
+
21905
+ /**
21906
+ * Allows you to perform aggregations operations on a ScheduledJob.
21907
+ * Note, that providing `undefined` is treated as the value not being there.
21908
+ * Read more here: https://pris.ly/d/null-undefined
21909
+ * @param {ScheduledJobAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
21910
+ * @example
21911
+ * // Ordered by age ascending
21912
+ * // Where email contains prisma.io
21913
+ * // Limited to the 10 users
21914
+ * const aggregations = await prisma.user.aggregate({
21915
+ * _avg: {
21916
+ * age: true,
21917
+ * },
21918
+ * where: {
21919
+ * email: {
21920
+ * contains: "prisma.io",
21921
+ * },
21922
+ * },
21923
+ * orderBy: {
21924
+ * age: "asc",
21925
+ * },
21926
+ * take: 10,
21927
+ * })
21928
+ **/
21929
+ aggregate<T extends ScheduledJobAggregateArgs>(args: Subset<T, ScheduledJobAggregateArgs>): Prisma.PrismaPromise<GetScheduledJobAggregateType<T>>
21930
+
21931
+ /**
21932
+ * Group by ScheduledJob.
21933
+ * Note, that providing `undefined` is treated as the value not being there.
21934
+ * Read more here: https://pris.ly/d/null-undefined
21935
+ * @param {ScheduledJobGroupByArgs} args - Group by arguments.
21936
+ * @example
21937
+ * // Group by city, order by createdAt, get count
21938
+ * const result = await prisma.user.groupBy({
21939
+ * by: ['city', 'createdAt'],
21940
+ * orderBy: {
21941
+ * createdAt: true
21942
+ * },
21943
+ * _count: {
21944
+ * _all: true
21945
+ * },
21946
+ * })
21947
+ *
21948
+ **/
21949
+ groupBy<
21950
+ T extends ScheduledJobGroupByArgs,
21951
+ HasSelectOrTake extends Or<
21952
+ Extends<'skip', Keys<T>>,
21953
+ Extends<'take', Keys<T>>
21954
+ >,
21955
+ OrderByArg extends True extends HasSelectOrTake
21956
+ ? { orderBy: ScheduledJobGroupByArgs['orderBy'] }
21957
+ : { orderBy?: ScheduledJobGroupByArgs['orderBy'] },
21958
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
21959
+ ByFields extends MaybeTupleToUnion<T['by']>,
21960
+ ByValid extends Has<ByFields, OrderFields>,
21961
+ HavingFields extends GetHavingFields<T['having']>,
21962
+ HavingValid extends Has<ByFields, HavingFields>,
21963
+ ByEmpty extends T['by'] extends never[] ? True : False,
21964
+ InputErrors extends ByEmpty extends True
21965
+ ? `Error: "by" must not be empty.`
21966
+ : HavingValid extends False
21967
+ ? {
21968
+ [P in HavingFields]: P extends ByFields
21969
+ ? never
21970
+ : P extends string
21971
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
21972
+ : [
21973
+ Error,
21974
+ 'Field ',
21975
+ P,
21976
+ ` in "having" needs to be provided in "by"`,
21977
+ ]
21978
+ }[HavingFields]
21979
+ : 'take' extends Keys<T>
21980
+ ? 'orderBy' extends Keys<T>
21981
+ ? ByValid extends True
21982
+ ? {}
21983
+ : {
21984
+ [P in OrderFields]: P extends ByFields
21985
+ ? never
21986
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
21987
+ }[OrderFields]
21988
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
21989
+ : 'skip' extends Keys<T>
21990
+ ? 'orderBy' extends Keys<T>
21991
+ ? ByValid extends True
21992
+ ? {}
21993
+ : {
21994
+ [P in OrderFields]: P extends ByFields
21995
+ ? never
21996
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
21997
+ }[OrderFields]
21998
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
21999
+ : ByValid extends True
22000
+ ? {}
22001
+ : {
22002
+ [P in OrderFields]: P extends ByFields
22003
+ ? never
22004
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
22005
+ }[OrderFields]
22006
+ >(args: SubsetIntersection<T, ScheduledJobGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetScheduledJobGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
22007
+ /**
22008
+ * Fields of the ScheduledJob model
22009
+ */
22010
+ readonly fields: ScheduledJobFieldRefs;
22011
+ }
22012
+
22013
+ /**
22014
+ * The delegate class that acts as a "Promise-like" for ScheduledJob.
22015
+ * Why is this prefixed with `Prisma__`?
22016
+ * Because we want to prevent naming conflicts as mentioned in
22017
+ * https://github.com/prisma/prisma-client-js/issues/707
22018
+ */
22019
+ export interface Prisma__ScheduledJobClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
22020
+ readonly [Symbol.toStringTag]: "PrismaPromise"
22021
+ /**
22022
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
22023
+ * @param onfulfilled The callback to execute when the Promise is resolved.
22024
+ * @param onrejected The callback to execute when the Promise is rejected.
22025
+ * @returns A Promise for the completion of which ever callback is executed.
22026
+ */
22027
+ 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>
22028
+ /**
22029
+ * Attaches a callback for only the rejection of the Promise.
22030
+ * @param onrejected The callback to execute when the Promise is rejected.
22031
+ * @returns A Promise for the completion of the callback.
22032
+ */
22033
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
22034
+ /**
22035
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
22036
+ * resolved value cannot be modified from the callback.
22037
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
22038
+ * @returns A Promise for the completion of the callback.
22039
+ */
22040
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
22041
+ }
22042
+
22043
+
22044
+
22045
+
22046
+ /**
22047
+ * Fields of the ScheduledJob model
22048
+ */
22049
+ interface ScheduledJobFieldRefs {
22050
+ readonly id: FieldRef<"ScheduledJob", 'String'>
22051
+ readonly scheduleName: FieldRef<"ScheduledJob", 'String'>
22052
+ readonly scheduledAt: FieldRef<"ScheduledJob", 'DateTime'>
22053
+ readonly queueResourceId: FieldRef<"ScheduledJob", 'String'>
22054
+ readonly payload: FieldRef<"ScheduledJob", 'Json'>
22055
+ readonly state: FieldRef<"ScheduledJob", 'String'>
22056
+ readonly createdAt: FieldRef<"ScheduledJob", 'DateTime'>
22057
+ readonly updatedAt: FieldRef<"ScheduledJob", 'DateTime'>
22058
+ }
22059
+
22060
+
22061
+ // Custom InputTypes
22062
+ /**
22063
+ * ScheduledJob findUnique
22064
+ */
22065
+ export type ScheduledJobFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22066
+ /**
22067
+ * Select specific fields to fetch from the ScheduledJob
22068
+ */
22069
+ select?: ScheduledJobSelect<ExtArgs> | null
22070
+ /**
22071
+ * Omit specific fields from the ScheduledJob
22072
+ */
22073
+ omit?: ScheduledJobOmit<ExtArgs> | null
22074
+ /**
22075
+ * Filter, which ScheduledJob to fetch.
22076
+ */
22077
+ where: ScheduledJobWhereUniqueInput
22078
+ }
22079
+
22080
+ /**
22081
+ * ScheduledJob findUniqueOrThrow
22082
+ */
22083
+ export type ScheduledJobFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22084
+ /**
22085
+ * Select specific fields to fetch from the ScheduledJob
22086
+ */
22087
+ select?: ScheduledJobSelect<ExtArgs> | null
22088
+ /**
22089
+ * Omit specific fields from the ScheduledJob
22090
+ */
22091
+ omit?: ScheduledJobOmit<ExtArgs> | null
22092
+ /**
22093
+ * Filter, which ScheduledJob to fetch.
22094
+ */
22095
+ where: ScheduledJobWhereUniqueInput
22096
+ }
22097
+
22098
+ /**
22099
+ * ScheduledJob findFirst
22100
+ */
22101
+ export type ScheduledJobFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22102
+ /**
22103
+ * Select specific fields to fetch from the ScheduledJob
22104
+ */
22105
+ select?: ScheduledJobSelect<ExtArgs> | null
22106
+ /**
22107
+ * Omit specific fields from the ScheduledJob
22108
+ */
22109
+ omit?: ScheduledJobOmit<ExtArgs> | null
22110
+ /**
22111
+ * Filter, which ScheduledJob to fetch.
22112
+ */
22113
+ where?: ScheduledJobWhereInput
22114
+ /**
22115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
22116
+ *
22117
+ * Determine the order of ScheduledJobs to fetch.
22118
+ */
22119
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
22120
+ /**
22121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
22122
+ *
22123
+ * Sets the position for searching for ScheduledJobs.
22124
+ */
22125
+ cursor?: ScheduledJobWhereUniqueInput
22126
+ /**
22127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
22128
+ *
22129
+ * Take `±n` ScheduledJobs from the position of the cursor.
22130
+ */
22131
+ take?: number
22132
+ /**
22133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
22134
+ *
22135
+ * Skip the first `n` ScheduledJobs.
22136
+ */
22137
+ skip?: number
22138
+ /**
22139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
22140
+ *
22141
+ * Filter by unique combinations of ScheduledJobs.
22142
+ */
22143
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
22144
+ }
22145
+
22146
+ /**
22147
+ * ScheduledJob findFirstOrThrow
22148
+ */
22149
+ export type ScheduledJobFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22150
+ /**
22151
+ * Select specific fields to fetch from the ScheduledJob
22152
+ */
22153
+ select?: ScheduledJobSelect<ExtArgs> | null
22154
+ /**
22155
+ * Omit specific fields from the ScheduledJob
22156
+ */
22157
+ omit?: ScheduledJobOmit<ExtArgs> | null
22158
+ /**
22159
+ * Filter, which ScheduledJob to fetch.
22160
+ */
22161
+ where?: ScheduledJobWhereInput
22162
+ /**
22163
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
22164
+ *
22165
+ * Determine the order of ScheduledJobs to fetch.
22166
+ */
22167
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
22168
+ /**
22169
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
22170
+ *
22171
+ * Sets the position for searching for ScheduledJobs.
22172
+ */
22173
+ cursor?: ScheduledJobWhereUniqueInput
22174
+ /**
22175
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
22176
+ *
22177
+ * Take `±n` ScheduledJobs from the position of the cursor.
22178
+ */
22179
+ take?: number
22180
+ /**
22181
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
22182
+ *
22183
+ * Skip the first `n` ScheduledJobs.
22184
+ */
22185
+ skip?: number
22186
+ /**
22187
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
22188
+ *
22189
+ * Filter by unique combinations of ScheduledJobs.
22190
+ */
22191
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
22192
+ }
22193
+
22194
+ /**
22195
+ * ScheduledJob findMany
22196
+ */
22197
+ export type ScheduledJobFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22198
+ /**
22199
+ * Select specific fields to fetch from the ScheduledJob
22200
+ */
22201
+ select?: ScheduledJobSelect<ExtArgs> | null
22202
+ /**
22203
+ * Omit specific fields from the ScheduledJob
22204
+ */
22205
+ omit?: ScheduledJobOmit<ExtArgs> | null
22206
+ /**
22207
+ * Filter, which ScheduledJobs to fetch.
22208
+ */
22209
+ where?: ScheduledJobWhereInput
22210
+ /**
22211
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
22212
+ *
22213
+ * Determine the order of ScheduledJobs to fetch.
22214
+ */
22215
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
22216
+ /**
22217
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
22218
+ *
22219
+ * Sets the position for listing ScheduledJobs.
22220
+ */
22221
+ cursor?: ScheduledJobWhereUniqueInput
22222
+ /**
22223
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
22224
+ *
22225
+ * Take `±n` ScheduledJobs from the position of the cursor.
22226
+ */
22227
+ take?: number
22228
+ /**
22229
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
22230
+ *
22231
+ * Skip the first `n` ScheduledJobs.
22232
+ */
22233
+ skip?: number
22234
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
22235
+ }
22236
+
22237
+ /**
22238
+ * ScheduledJob create
22239
+ */
22240
+ export type ScheduledJobCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22241
+ /**
22242
+ * Select specific fields to fetch from the ScheduledJob
22243
+ */
22244
+ select?: ScheduledJobSelect<ExtArgs> | null
22245
+ /**
22246
+ * Omit specific fields from the ScheduledJob
22247
+ */
22248
+ omit?: ScheduledJobOmit<ExtArgs> | null
22249
+ /**
22250
+ * The data needed to create a ScheduledJob.
22251
+ */
22252
+ data: XOR<ScheduledJobCreateInput, ScheduledJobUncheckedCreateInput>
22253
+ }
22254
+
22255
+ /**
22256
+ * ScheduledJob createMany
22257
+ */
22258
+ export type ScheduledJobCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22259
+ /**
22260
+ * The data used to create many ScheduledJobs.
22261
+ */
22262
+ data: ScheduledJobCreateManyInput | ScheduledJobCreateManyInput[]
22263
+ }
22264
+
22265
+ /**
22266
+ * ScheduledJob update
22267
+ */
22268
+ export type ScheduledJobUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22269
+ /**
22270
+ * Select specific fields to fetch from the ScheduledJob
22271
+ */
22272
+ select?: ScheduledJobSelect<ExtArgs> | null
22273
+ /**
22274
+ * Omit specific fields from the ScheduledJob
22275
+ */
22276
+ omit?: ScheduledJobOmit<ExtArgs> | null
22277
+ /**
22278
+ * The data needed to update a ScheduledJob.
22279
+ */
22280
+ data: XOR<ScheduledJobUpdateInput, ScheduledJobUncheckedUpdateInput>
22281
+ /**
22282
+ * Choose, which ScheduledJob to update.
22283
+ */
22284
+ where: ScheduledJobWhereUniqueInput
22285
+ }
22286
+
22287
+ /**
22288
+ * ScheduledJob updateMany
22289
+ */
22290
+ export type ScheduledJobUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22291
+ /**
22292
+ * The data used to update ScheduledJobs.
22293
+ */
22294
+ data: XOR<ScheduledJobUpdateManyMutationInput, ScheduledJobUncheckedUpdateManyInput>
22295
+ /**
22296
+ * Filter which ScheduledJobs to update
22297
+ */
22298
+ where?: ScheduledJobWhereInput
22299
+ /**
22300
+ * Limit how many ScheduledJobs to update.
22301
+ */
22302
+ limit?: number
22303
+ }
22304
+
22305
+ /**
22306
+ * ScheduledJob upsert
22307
+ */
22308
+ export type ScheduledJobUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22309
+ /**
22310
+ * Select specific fields to fetch from the ScheduledJob
22311
+ */
22312
+ select?: ScheduledJobSelect<ExtArgs> | null
22313
+ /**
22314
+ * Omit specific fields from the ScheduledJob
22315
+ */
22316
+ omit?: ScheduledJobOmit<ExtArgs> | null
22317
+ /**
22318
+ * The filter to search for the ScheduledJob to update in case it exists.
22319
+ */
22320
+ where: ScheduledJobWhereUniqueInput
22321
+ /**
22322
+ * In case the ScheduledJob found by the `where` argument doesn't exist, create a new ScheduledJob with this data.
22323
+ */
22324
+ create: XOR<ScheduledJobCreateInput, ScheduledJobUncheckedCreateInput>
22325
+ /**
22326
+ * In case the ScheduledJob was found with the provided `where` argument, update it with this data.
22327
+ */
22328
+ update: XOR<ScheduledJobUpdateInput, ScheduledJobUncheckedUpdateInput>
22329
+ }
22330
+
22331
+ /**
22332
+ * ScheduledJob delete
22333
+ */
22334
+ export type ScheduledJobDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22335
+ /**
22336
+ * Select specific fields to fetch from the ScheduledJob
22337
+ */
22338
+ select?: ScheduledJobSelect<ExtArgs> | null
22339
+ /**
22340
+ * Omit specific fields from the ScheduledJob
22341
+ */
22342
+ omit?: ScheduledJobOmit<ExtArgs> | null
22343
+ /**
22344
+ * Filter which ScheduledJob to delete.
22345
+ */
22346
+ where: ScheduledJobWhereUniqueInput
22347
+ }
22348
+
22349
+ /**
22350
+ * ScheduledJob deleteMany
22351
+ */
22352
+ export type ScheduledJobDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22353
+ /**
22354
+ * Filter which ScheduledJobs to delete
22355
+ */
22356
+ where?: ScheduledJobWhereInput
22357
+ /**
22358
+ * Limit how many ScheduledJobs to delete.
22359
+ */
22360
+ limit?: number
22361
+ }
22362
+
22363
+ /**
22364
+ * ScheduledJob findRaw
22365
+ */
22366
+ export type ScheduledJobFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22367
+ /**
22368
+ * The query predicate filter. If unspecified, then all documents in the collection will match the predicate. ${@link https://docs.mongodb.com/manual/reference/operator/query MongoDB Docs}.
22369
+ */
22370
+ filter?: InputJsonValue
22371
+ /**
22372
+ * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
22373
+ */
22374
+ options?: InputJsonValue
22375
+ }
22376
+
22377
+ /**
22378
+ * ScheduledJob aggregateRaw
22379
+ */
22380
+ export type ScheduledJobAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22381
+ /**
22382
+ * An array of aggregation stages to process and transform the document stream via the aggregation pipeline. ${@link https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline MongoDB Docs}.
22383
+ */
22384
+ pipeline?: InputJsonValue[]
22385
+ /**
22386
+ * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
22387
+ */
22388
+ options?: InputJsonValue
22389
+ }
22390
+
22391
+ /**
22392
+ * ScheduledJob without action
22393
+ */
22394
+ export type ScheduledJobDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22395
+ /**
22396
+ * Select specific fields to fetch from the ScheduledJob
22397
+ */
22398
+ select?: ScheduledJobSelect<ExtArgs> | null
22399
+ /**
22400
+ * Omit specific fields from the ScheduledJob
22401
+ */
22402
+ omit?: ScheduledJobOmit<ExtArgs> | null
22403
+ }
22404
+
22405
+
22406
+ /**
22407
+ * Enums
22408
+ */
22409
+
22410
+ export const UserScalarFieldEnum: {
22411
+ id: 'id',
22412
+ type: 'type',
22413
+ createdAt: 'createdAt',
22414
+ updatedAt: 'updatedAt',
22415
+ email: 'email',
22416
+ username: 'username',
22417
+ hashword: 'hashword',
22418
+ appUserId: 'appUserId',
22419
+ organizationId: 'organizationId',
22420
+ appOrgId: 'appOrgId',
22421
+ name: 'name'
22422
+ };
22423
+
22424
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
22425
+
22426
+
22427
+ export const TokenScalarFieldEnum: {
22428
+ id: 'id',
22429
+ token: 'token',
22430
+ created: 'created',
22431
+ expires: 'expires',
22432
+ userId: 'userId'
22433
+ };
22434
+
22435
+ export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
22436
+
22437
+
22438
+ export const CredentialScalarFieldEnum: {
22439
+ id: 'id',
22440
+ userId: 'userId',
22441
+ authIsValid: 'authIsValid',
22442
+ externalId: 'externalId',
22443
+ data: 'data',
22444
+ createdAt: 'createdAt',
22445
+ updatedAt: 'updatedAt'
22446
+ };
22447
+
22448
+ export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
22449
+
22450
+
22451
+ export const EntityScalarFieldEnum: {
22452
+ id: 'id',
22453
+ credentialId: 'credentialId',
22454
+ userId: 'userId',
22455
+ name: 'name',
22456
+ moduleName: 'moduleName',
22457
+ externalId: 'externalId',
22458
+ organizationId: 'organizationId',
22459
+ data: 'data',
22460
+ createdAt: 'createdAt',
22461
+ updatedAt: 'updatedAt',
22462
+ integrationIds: 'integrationIds',
22463
+ syncIds: 'syncIds'
22464
+ };
22465
+
22466
+ export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
22467
+
22468
+
22469
+ export const IntegrationScalarFieldEnum: {
22470
+ id: 'id',
22471
+ userId: 'userId',
22472
+ status: 'status',
22473
+ organizationId: 'organizationId',
22474
+ config: 'config',
22475
+ version: 'version',
22476
+ entityIds: 'entityIds',
22477
+ errors: 'errors',
22478
+ warnings: 'warnings',
22479
+ info: 'info',
22480
+ logs: 'logs',
22481
+ createdAt: 'createdAt',
22482
+ updatedAt: 'updatedAt'
22483
+ };
22484
+
22485
+ export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
22486
+
22487
+
22488
+ export const IntegrationMappingScalarFieldEnum: {
22489
+ id: 'id',
22490
+ integrationId: 'integrationId',
22491
+ sourceId: 'sourceId',
22492
+ mapping: 'mapping',
22493
+ createdAt: 'createdAt',
22494
+ updatedAt: 'updatedAt'
22495
+ };
22496
+
22497
+ export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
22498
+
22499
+
22500
+ export const ProcessScalarFieldEnum: {
22501
+ id: 'id',
22502
+ userId: 'userId',
22503
+ integrationId: 'integrationId',
22504
+ name: 'name',
22505
+ type: 'type',
22506
+ state: 'state',
22507
+ context: 'context',
22508
+ results: 'results',
22509
+ childProcesses: 'childProcesses',
22510
+ parentProcessId: 'parentProcessId',
22511
+ createdAt: 'createdAt',
22512
+ updatedAt: 'updatedAt'
22513
+ };
22514
+
22515
+ export type ProcessScalarFieldEnum = (typeof ProcessScalarFieldEnum)[keyof typeof ProcessScalarFieldEnum]
22516
+
22517
+
22518
+ export const SyncScalarFieldEnum: {
22519
+ id: 'id',
22520
+ integrationId: 'integrationId',
22521
+ entityIds: 'entityIds',
22522
+ hash: 'hash',
22523
+ name: 'name'
22524
+ };
22525
+
22526
+ export type SyncScalarFieldEnum = (typeof SyncScalarFieldEnum)[keyof typeof SyncScalarFieldEnum]
22527
+
22528
+
22529
+ export const DataIdentifierScalarFieldEnum: {
22530
+ id: 'id',
22531
+ syncId: 'syncId',
22532
+ entityId: 'entityId',
22533
+ idData: 'idData',
22534
+ hash: 'hash'
21481
22535
  };
21482
22536
 
21483
22537
  export type DataIdentifierScalarFieldEnum = (typeof DataIdentifierScalarFieldEnum)[keyof typeof DataIdentifierScalarFieldEnum]
@@ -21598,6 +22652,20 @@ export namespace Prisma {
21598
22652
  export type OrganizationMembershipScalarFieldEnum = (typeof OrganizationMembershipScalarFieldEnum)[keyof typeof OrganizationMembershipScalarFieldEnum]
21599
22653
 
21600
22654
 
22655
+ export const ScheduledJobScalarFieldEnum: {
22656
+ id: 'id',
22657
+ scheduleName: 'scheduleName',
22658
+ scheduledAt: 'scheduledAt',
22659
+ queueResourceId: 'queueResourceId',
22660
+ payload: 'payload',
22661
+ state: 'state',
22662
+ createdAt: 'createdAt',
22663
+ updatedAt: 'updatedAt'
22664
+ };
22665
+
22666
+ export type ScheduledJobScalarFieldEnum = (typeof ScheduledJobScalarFieldEnum)[keyof typeof ScheduledJobScalarFieldEnum]
22667
+
22668
+
21601
22669
  export const SortOrder: {
21602
22670
  asc: 'asc',
21603
22671
  desc: 'desc'
@@ -23055,6 +24123,73 @@ export namespace Prisma {
23055
24123
  createdAt?: DateTimeWithAggregatesFilter<"OrganizationMembership"> | Date | string
23056
24124
  }
23057
24125
 
24126
+ export type ScheduledJobWhereInput = {
24127
+ AND?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
24128
+ OR?: ScheduledJobWhereInput[]
24129
+ NOT?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
24130
+ id?: StringFilter<"ScheduledJob"> | string
24131
+ scheduleName?: StringFilter<"ScheduledJob"> | string
24132
+ scheduledAt?: DateTimeFilter<"ScheduledJob"> | Date | string
24133
+ queueResourceId?: StringFilter<"ScheduledJob"> | string
24134
+ payload?: JsonNullableFilter<"ScheduledJob">
24135
+ state?: StringFilter<"ScheduledJob"> | string
24136
+ createdAt?: DateTimeFilter<"ScheduledJob"> | Date | string
24137
+ updatedAt?: DateTimeFilter<"ScheduledJob"> | Date | string
24138
+ }
24139
+
24140
+ export type ScheduledJobOrderByWithRelationInput = {
24141
+ id?: SortOrder
24142
+ scheduleName?: SortOrder
24143
+ scheduledAt?: SortOrder
24144
+ queueResourceId?: SortOrder
24145
+ payload?: SortOrder
24146
+ state?: SortOrder
24147
+ createdAt?: SortOrder
24148
+ updatedAt?: SortOrder
24149
+ }
24150
+
24151
+ export type ScheduledJobWhereUniqueInput = Prisma.AtLeast<{
24152
+ id?: string
24153
+ scheduleName?: string
24154
+ AND?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
24155
+ OR?: ScheduledJobWhereInput[]
24156
+ NOT?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
24157
+ scheduledAt?: DateTimeFilter<"ScheduledJob"> | Date | string
24158
+ queueResourceId?: StringFilter<"ScheduledJob"> | string
24159
+ payload?: JsonNullableFilter<"ScheduledJob">
24160
+ state?: StringFilter<"ScheduledJob"> | string
24161
+ createdAt?: DateTimeFilter<"ScheduledJob"> | Date | string
24162
+ updatedAt?: DateTimeFilter<"ScheduledJob"> | Date | string
24163
+ }, "id" | "scheduleName">
24164
+
24165
+ export type ScheduledJobOrderByWithAggregationInput = {
24166
+ id?: SortOrder
24167
+ scheduleName?: SortOrder
24168
+ scheduledAt?: SortOrder
24169
+ queueResourceId?: SortOrder
24170
+ payload?: SortOrder
24171
+ state?: SortOrder
24172
+ createdAt?: SortOrder
24173
+ updatedAt?: SortOrder
24174
+ _count?: ScheduledJobCountOrderByAggregateInput
24175
+ _max?: ScheduledJobMaxOrderByAggregateInput
24176
+ _min?: ScheduledJobMinOrderByAggregateInput
24177
+ }
24178
+
24179
+ export type ScheduledJobScalarWhereWithAggregatesInput = {
24180
+ AND?: ScheduledJobScalarWhereWithAggregatesInput | ScheduledJobScalarWhereWithAggregatesInput[]
24181
+ OR?: ScheduledJobScalarWhereWithAggregatesInput[]
24182
+ NOT?: ScheduledJobScalarWhereWithAggregatesInput | ScheduledJobScalarWhereWithAggregatesInput[]
24183
+ id?: StringWithAggregatesFilter<"ScheduledJob"> | string
24184
+ scheduleName?: StringWithAggregatesFilter<"ScheduledJob"> | string
24185
+ scheduledAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
24186
+ queueResourceId?: StringWithAggregatesFilter<"ScheduledJob"> | string
24187
+ payload?: JsonNullableWithAggregatesFilter<"ScheduledJob">
24188
+ state?: StringWithAggregatesFilter<"ScheduledJob"> | string
24189
+ createdAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
24190
+ updatedAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
24191
+ }
24192
+
23058
24193
  export type UserCreateInput = {
23059
24194
  id?: string
23060
24195
  type: $Enums.UserType
@@ -24375,6 +25510,79 @@ export namespace Prisma {
24375
25510
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24376
25511
  }
24377
25512
 
25513
+ export type ScheduledJobCreateInput = {
25514
+ id?: string
25515
+ scheduleName: string
25516
+ scheduledAt: Date | string
25517
+ queueResourceId: string
25518
+ payload?: InputJsonValue | null
25519
+ state?: string
25520
+ createdAt?: Date | string
25521
+ updatedAt?: Date | string
25522
+ }
25523
+
25524
+ export type ScheduledJobUncheckedCreateInput = {
25525
+ id?: string
25526
+ scheduleName: string
25527
+ scheduledAt: Date | string
25528
+ queueResourceId: string
25529
+ payload?: InputJsonValue | null
25530
+ state?: string
25531
+ createdAt?: Date | string
25532
+ updatedAt?: Date | string
25533
+ }
25534
+
25535
+ export type ScheduledJobUpdateInput = {
25536
+ scheduleName?: StringFieldUpdateOperationsInput | string
25537
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
25538
+ queueResourceId?: StringFieldUpdateOperationsInput | string
25539
+ payload?: InputJsonValue | InputJsonValue | null
25540
+ state?: StringFieldUpdateOperationsInput | string
25541
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
25542
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
25543
+ }
25544
+
25545
+ export type ScheduledJobUncheckedUpdateInput = {
25546
+ scheduleName?: StringFieldUpdateOperationsInput | string
25547
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
25548
+ queueResourceId?: StringFieldUpdateOperationsInput | string
25549
+ payload?: InputJsonValue | InputJsonValue | null
25550
+ state?: StringFieldUpdateOperationsInput | string
25551
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
25552
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
25553
+ }
25554
+
25555
+ export type ScheduledJobCreateManyInput = {
25556
+ id?: string
25557
+ scheduleName: string
25558
+ scheduledAt: Date | string
25559
+ queueResourceId: string
25560
+ payload?: InputJsonValue | null
25561
+ state?: string
25562
+ createdAt?: Date | string
25563
+ updatedAt?: Date | string
25564
+ }
25565
+
25566
+ export type ScheduledJobUpdateManyMutationInput = {
25567
+ scheduleName?: StringFieldUpdateOperationsInput | string
25568
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
25569
+ queueResourceId?: StringFieldUpdateOperationsInput | string
25570
+ payload?: InputJsonValue | InputJsonValue | null
25571
+ state?: StringFieldUpdateOperationsInput | string
25572
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
25573
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
25574
+ }
25575
+
25576
+ export type ScheduledJobUncheckedUpdateManyInput = {
25577
+ scheduleName?: StringFieldUpdateOperationsInput | string
25578
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
25579
+ queueResourceId?: StringFieldUpdateOperationsInput | string
25580
+ payload?: InputJsonValue | InputJsonValue | null
25581
+ state?: StringFieldUpdateOperationsInput | string
25582
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
25583
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
25584
+ }
25585
+
24378
25586
  export type StringFilter<$PrismaModel = never> = {
24379
25587
  equals?: string | StringFieldRefInput<$PrismaModel>
24380
25588
  in?: string[] | ListStringFieldRefInput<$PrismaModel>
@@ -25434,6 +26642,37 @@ export namespace Prisma {
25434
26642
  createdAt?: SortOrder
25435
26643
  }
25436
26644
 
26645
+ export type ScheduledJobCountOrderByAggregateInput = {
26646
+ id?: SortOrder
26647
+ scheduleName?: SortOrder
26648
+ scheduledAt?: SortOrder
26649
+ queueResourceId?: SortOrder
26650
+ payload?: SortOrder
26651
+ state?: SortOrder
26652
+ createdAt?: SortOrder
26653
+ updatedAt?: SortOrder
26654
+ }
26655
+
26656
+ export type ScheduledJobMaxOrderByAggregateInput = {
26657
+ id?: SortOrder
26658
+ scheduleName?: SortOrder
26659
+ scheduledAt?: SortOrder
26660
+ queueResourceId?: SortOrder
26661
+ state?: SortOrder
26662
+ createdAt?: SortOrder
26663
+ updatedAt?: SortOrder
26664
+ }
26665
+
26666
+ export type ScheduledJobMinOrderByAggregateInput = {
26667
+ id?: SortOrder
26668
+ scheduleName?: SortOrder
26669
+ scheduledAt?: SortOrder
26670
+ queueResourceId?: SortOrder
26671
+ state?: SortOrder
26672
+ createdAt?: SortOrder
26673
+ updatedAt?: SortOrder
26674
+ }
26675
+
25437
26676
  export type UserCreateNestedOneWithoutMembersInput = {
25438
26677
  create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
25439
26678
  connectOrCreate?: UserCreateOrConnectWithoutMembersInput