@friggframework/core 2.0.0--canary.531.eb2e0bb.0 → 2.0.0--canary.517.f738cdd.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 (42) hide show
  1. package/admin-scripts/index.js +52 -0
  2. package/admin-scripts/repositories/admin-process-repository-documentdb.js +21 -0
  3. package/admin-scripts/repositories/admin-process-repository-factory.js +51 -0
  4. package/admin-scripts/repositories/admin-process-repository-interface.js +150 -0
  5. package/admin-scripts/repositories/admin-process-repository-mongo.js +213 -0
  6. package/admin-scripts/repositories/admin-process-repository-postgres.js +251 -0
  7. package/admin-scripts/repositories/script-schedule-repository-documentdb.js +21 -0
  8. package/admin-scripts/repositories/script-schedule-repository-factory.js +51 -0
  9. package/admin-scripts/repositories/script-schedule-repository-interface.js +108 -0
  10. package/admin-scripts/repositories/script-schedule-repository-mongo.js +179 -0
  11. package/admin-scripts/repositories/script-schedule-repository-postgres.js +210 -0
  12. package/application/commands/admin-script-commands.js +344 -0
  13. package/application/index.js +0 -4
  14. package/database/use-cases/check-database-state-use-case.js +2 -2
  15. package/database/use-cases/trigger-database-migration-use-case.js +1 -1
  16. package/generated/prisma-mongodb/edge.js +47 -4
  17. package/generated/prisma-mongodb/index-browser.js +37 -1
  18. package/generated/prisma-mongodb/index.d.ts +2775 -52
  19. package/generated/prisma-mongodb/index.js +47 -4
  20. package/generated/prisma-mongodb/package.json +1 -1
  21. package/generated/prisma-mongodb/schema.prisma +69 -0
  22. package/generated/prisma-mongodb/wasm.js +47 -4
  23. package/generated/prisma-postgresql/edge.js +46 -4
  24. package/generated/prisma-postgresql/index-browser.js +36 -1
  25. package/generated/prisma-postgresql/index.d.ts +3414 -83
  26. package/generated/prisma-postgresql/index.js +46 -4
  27. package/generated/prisma-postgresql/package.json +1 -1
  28. package/generated/prisma-postgresql/schema.prisma +68 -0
  29. package/generated/prisma-postgresql/wasm.js +46 -4
  30. package/handlers/middleware/admin-auth.js +53 -0
  31. package/handlers/routers/db-migration.handler.js +1 -1
  32. package/handlers/routers/db-migration.js +18 -33
  33. package/index.js +0 -1
  34. package/package.json +5 -5
  35. package/prisma-mongodb/schema.prisma +69 -0
  36. package/prisma-postgresql/schema.prisma +68 -0
  37. package/application/commands/scheduler-commands.js +0 -263
  38. package/infrastructure/scheduler/eventbridge-scheduler-adapter.js +0 -185
  39. package/infrastructure/scheduler/index.js +0 -34
  40. package/infrastructure/scheduler/mock-scheduler-adapter.js +0 -143
  41. package/infrastructure/scheduler/scheduler-service-factory.js +0 -73
  42. package/infrastructure/scheduler/scheduler-service-interface.js +0 -47
@@ -85,6 +85,17 @@ export type State = $Result.DefaultSelection<Prisma.$StatePayload>
85
85
  * AWS API Gateway WebSocket connection tracking
86
86
  */
87
87
  export type WebsocketConnection = $Result.DefaultSelection<Prisma.$WebsocketConnectionPayload>
88
+ /**
89
+ * Model AdminProcess
90
+ * Admin process tracking (like Process but without user/integration FK)
91
+ * Used for: admin scripts, db migrations, system maintenance tasks
92
+ */
93
+ export type AdminProcess = $Result.DefaultSelection<Prisma.$AdminProcessPayload>
94
+ /**
95
+ * Model ScriptSchedule
96
+ * Script scheduling configuration for hybrid scheduling (SQS + EventBridge)
97
+ */
98
+ export type ScriptSchedule = $Result.DefaultSelection<Prisma.$ScriptSchedulePayload>
88
99
 
89
100
  /**
90
101
  * Enums
@@ -117,6 +128,26 @@ export const AssociationType: {
117
128
 
118
129
  export type AssociationType = (typeof AssociationType)[keyof typeof AssociationType]
119
130
 
131
+
132
+ export const AdminProcessState: {
133
+ PENDING: 'PENDING',
134
+ RUNNING: 'RUNNING',
135
+ COMPLETED: 'COMPLETED',
136
+ FAILED: 'FAILED'
137
+ };
138
+
139
+ export type AdminProcessState = (typeof AdminProcessState)[keyof typeof AdminProcessState]
140
+
141
+
142
+ export const AdminTrigger: {
143
+ MANUAL: 'MANUAL',
144
+ SCHEDULED: 'SCHEDULED',
145
+ QUEUE: 'QUEUE',
146
+ WEBHOOK: 'WEBHOOK'
147
+ };
148
+
149
+ export type AdminTrigger = (typeof AdminTrigger)[keyof typeof AdminTrigger]
150
+
120
151
  }
121
152
 
122
153
  export type UserType = $Enums.UserType
@@ -131,6 +162,14 @@ export type AssociationType = $Enums.AssociationType
131
162
 
132
163
  export const AssociationType: typeof $Enums.AssociationType
133
164
 
165
+ export type AdminProcessState = $Enums.AdminProcessState
166
+
167
+ export const AdminProcessState: typeof $Enums.AdminProcessState
168
+
169
+ export type AdminTrigger = $Enums.AdminTrigger
170
+
171
+ export const AdminTrigger: typeof $Enums.AdminTrigger
172
+
134
173
  /**
135
174
  * ## Prisma Client ʲˢ
136
175
  *
@@ -378,6 +417,26 @@ export class PrismaClient<
378
417
  * ```
379
418
  */
380
419
  get websocketConnection(): Prisma.WebsocketConnectionDelegate<ExtArgs, ClientOptions>;
420
+
421
+ /**
422
+ * `prisma.adminProcess`: Exposes CRUD operations for the **AdminProcess** model.
423
+ * Example usage:
424
+ * ```ts
425
+ * // Fetch zero or more AdminProcesses
426
+ * const adminProcesses = await prisma.adminProcess.findMany()
427
+ * ```
428
+ */
429
+ get adminProcess(): Prisma.AdminProcessDelegate<ExtArgs, ClientOptions>;
430
+
431
+ /**
432
+ * `prisma.scriptSchedule`: Exposes CRUD operations for the **ScriptSchedule** model.
433
+ * Example usage:
434
+ * ```ts
435
+ * // Fetch zero or more ScriptSchedules
436
+ * const scriptSchedules = await prisma.scriptSchedule.findMany()
437
+ * ```
438
+ */
439
+ get scriptSchedule(): Prisma.ScriptScheduleDelegate<ExtArgs, ClientOptions>;
381
440
  }
382
441
 
383
442
  export namespace Prisma {
@@ -830,7 +889,9 @@ export namespace Prisma {
830
889
  AssociationObject: 'AssociationObject',
831
890
  Process: 'Process',
832
891
  State: 'State',
833
- WebsocketConnection: 'WebsocketConnection'
892
+ WebsocketConnection: 'WebsocketConnection',
893
+ AdminProcess: 'AdminProcess',
894
+ ScriptSchedule: 'ScriptSchedule'
834
895
  };
835
896
 
836
897
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -849,7 +910,7 @@ export namespace Prisma {
849
910
  omit: GlobalOmitOptions
850
911
  }
851
912
  meta: {
852
- modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection"
913
+ modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminProcess" | "scriptSchedule"
853
914
  txIsolationLevel: Prisma.TransactionIsolationLevel
854
915
  }
855
916
  model: {
@@ -1815,6 +1876,154 @@ export namespace Prisma {
1815
1876
  }
1816
1877
  }
1817
1878
  }
1879
+ AdminProcess: {
1880
+ payload: Prisma.$AdminProcessPayload<ExtArgs>
1881
+ fields: Prisma.AdminProcessFieldRefs
1882
+ operations: {
1883
+ findUnique: {
1884
+ args: Prisma.AdminProcessFindUniqueArgs<ExtArgs>
1885
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload> | null
1886
+ }
1887
+ findUniqueOrThrow: {
1888
+ args: Prisma.AdminProcessFindUniqueOrThrowArgs<ExtArgs>
1889
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1890
+ }
1891
+ findFirst: {
1892
+ args: Prisma.AdminProcessFindFirstArgs<ExtArgs>
1893
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload> | null
1894
+ }
1895
+ findFirstOrThrow: {
1896
+ args: Prisma.AdminProcessFindFirstOrThrowArgs<ExtArgs>
1897
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1898
+ }
1899
+ findMany: {
1900
+ args: Prisma.AdminProcessFindManyArgs<ExtArgs>
1901
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>[]
1902
+ }
1903
+ create: {
1904
+ args: Prisma.AdminProcessCreateArgs<ExtArgs>
1905
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1906
+ }
1907
+ createMany: {
1908
+ args: Prisma.AdminProcessCreateManyArgs<ExtArgs>
1909
+ result: BatchPayload
1910
+ }
1911
+ createManyAndReturn: {
1912
+ args: Prisma.AdminProcessCreateManyAndReturnArgs<ExtArgs>
1913
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>[]
1914
+ }
1915
+ delete: {
1916
+ args: Prisma.AdminProcessDeleteArgs<ExtArgs>
1917
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1918
+ }
1919
+ update: {
1920
+ args: Prisma.AdminProcessUpdateArgs<ExtArgs>
1921
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1922
+ }
1923
+ deleteMany: {
1924
+ args: Prisma.AdminProcessDeleteManyArgs<ExtArgs>
1925
+ result: BatchPayload
1926
+ }
1927
+ updateMany: {
1928
+ args: Prisma.AdminProcessUpdateManyArgs<ExtArgs>
1929
+ result: BatchPayload
1930
+ }
1931
+ updateManyAndReturn: {
1932
+ args: Prisma.AdminProcessUpdateManyAndReturnArgs<ExtArgs>
1933
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>[]
1934
+ }
1935
+ upsert: {
1936
+ args: Prisma.AdminProcessUpsertArgs<ExtArgs>
1937
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1938
+ }
1939
+ aggregate: {
1940
+ args: Prisma.AdminProcessAggregateArgs<ExtArgs>
1941
+ result: $Utils.Optional<AggregateAdminProcess>
1942
+ }
1943
+ groupBy: {
1944
+ args: Prisma.AdminProcessGroupByArgs<ExtArgs>
1945
+ result: $Utils.Optional<AdminProcessGroupByOutputType>[]
1946
+ }
1947
+ count: {
1948
+ args: Prisma.AdminProcessCountArgs<ExtArgs>
1949
+ result: $Utils.Optional<AdminProcessCountAggregateOutputType> | number
1950
+ }
1951
+ }
1952
+ }
1953
+ ScriptSchedule: {
1954
+ payload: Prisma.$ScriptSchedulePayload<ExtArgs>
1955
+ fields: Prisma.ScriptScheduleFieldRefs
1956
+ operations: {
1957
+ findUnique: {
1958
+ args: Prisma.ScriptScheduleFindUniqueArgs<ExtArgs>
1959
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload> | null
1960
+ }
1961
+ findUniqueOrThrow: {
1962
+ args: Prisma.ScriptScheduleFindUniqueOrThrowArgs<ExtArgs>
1963
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1964
+ }
1965
+ findFirst: {
1966
+ args: Prisma.ScriptScheduleFindFirstArgs<ExtArgs>
1967
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload> | null
1968
+ }
1969
+ findFirstOrThrow: {
1970
+ args: Prisma.ScriptScheduleFindFirstOrThrowArgs<ExtArgs>
1971
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1972
+ }
1973
+ findMany: {
1974
+ args: Prisma.ScriptScheduleFindManyArgs<ExtArgs>
1975
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>[]
1976
+ }
1977
+ create: {
1978
+ args: Prisma.ScriptScheduleCreateArgs<ExtArgs>
1979
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1980
+ }
1981
+ createMany: {
1982
+ args: Prisma.ScriptScheduleCreateManyArgs<ExtArgs>
1983
+ result: BatchPayload
1984
+ }
1985
+ createManyAndReturn: {
1986
+ args: Prisma.ScriptScheduleCreateManyAndReturnArgs<ExtArgs>
1987
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>[]
1988
+ }
1989
+ delete: {
1990
+ args: Prisma.ScriptScheduleDeleteArgs<ExtArgs>
1991
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1992
+ }
1993
+ update: {
1994
+ args: Prisma.ScriptScheduleUpdateArgs<ExtArgs>
1995
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1996
+ }
1997
+ deleteMany: {
1998
+ args: Prisma.ScriptScheduleDeleteManyArgs<ExtArgs>
1999
+ result: BatchPayload
2000
+ }
2001
+ updateMany: {
2002
+ args: Prisma.ScriptScheduleUpdateManyArgs<ExtArgs>
2003
+ result: BatchPayload
2004
+ }
2005
+ updateManyAndReturn: {
2006
+ args: Prisma.ScriptScheduleUpdateManyAndReturnArgs<ExtArgs>
2007
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>[]
2008
+ }
2009
+ upsert: {
2010
+ args: Prisma.ScriptScheduleUpsertArgs<ExtArgs>
2011
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
2012
+ }
2013
+ aggregate: {
2014
+ args: Prisma.ScriptScheduleAggregateArgs<ExtArgs>
2015
+ result: $Utils.Optional<AggregateScriptSchedule>
2016
+ }
2017
+ groupBy: {
2018
+ args: Prisma.ScriptScheduleGroupByArgs<ExtArgs>
2019
+ result: $Utils.Optional<ScriptScheduleGroupByOutputType>[]
2020
+ }
2021
+ count: {
2022
+ args: Prisma.ScriptScheduleCountArgs<ExtArgs>
2023
+ result: $Utils.Optional<ScriptScheduleCountAggregateOutputType> | number
2024
+ }
2025
+ }
2026
+ }
1818
2027
  }
1819
2028
  } & {
1820
2029
  other: {
@@ -1920,6 +2129,8 @@ export namespace Prisma {
1920
2129
  process?: ProcessOmit
1921
2130
  state?: StateOmit
1922
2131
  websocketConnection?: WebsocketConnectionOmit
2132
+ adminProcess?: AdminProcessOmit
2133
+ scriptSchedule?: ScriptScheduleOmit
1923
2134
  }
1924
2135
 
1925
2136
  /* Types for Logging */
@@ -2329,6 +2540,37 @@ export namespace Prisma {
2329
2540
  }
2330
2541
 
2331
2542
 
2543
+ /**
2544
+ * Count Type AdminProcessCountOutputType
2545
+ */
2546
+
2547
+ export type AdminProcessCountOutputType = {
2548
+ childProcesses: number
2549
+ }
2550
+
2551
+ export type AdminProcessCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2552
+ childProcesses?: boolean | AdminProcessCountOutputTypeCountChildProcessesArgs
2553
+ }
2554
+
2555
+ // Custom InputTypes
2556
+ /**
2557
+ * AdminProcessCountOutputType without action
2558
+ */
2559
+ export type AdminProcessCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2560
+ /**
2561
+ * Select specific fields to fetch from the AdminProcessCountOutputType
2562
+ */
2563
+ select?: AdminProcessCountOutputTypeSelect<ExtArgs> | null
2564
+ }
2565
+
2566
+ /**
2567
+ * AdminProcessCountOutputType without action
2568
+ */
2569
+ export type AdminProcessCountOutputTypeCountChildProcessesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2570
+ where?: AdminProcessWhereInput
2571
+ }
2572
+
2573
+
2332
2574
  /**
2333
2575
  * Models
2334
2576
  */
@@ -17429,83 +17671,2379 @@ export namespace Prisma {
17429
17671
 
17430
17672
 
17431
17673
  /**
17432
- * Enums
17674
+ * Model AdminProcess
17433
17675
  */
17434
17676
 
17435
- export const TransactionIsolationLevel: {
17436
- ReadUncommitted: 'ReadUncommitted',
17437
- ReadCommitted: 'ReadCommitted',
17438
- RepeatableRead: 'RepeatableRead',
17439
- Serializable: 'Serializable'
17440
- };
17441
-
17442
- export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
17443
-
17444
-
17445
- export const UserScalarFieldEnum: {
17446
- id: 'id',
17447
- type: 'type',
17448
- createdAt: 'createdAt',
17449
- updatedAt: 'updatedAt',
17450
- email: 'email',
17451
- username: 'username',
17452
- hashword: 'hashword',
17453
- appUserId: 'appUserId',
17454
- organizationId: 'organizationId',
17455
- appOrgId: 'appOrgId',
17456
- name: 'name'
17457
- };
17677
+ export type AggregateAdminProcess = {
17678
+ _count: AdminProcessCountAggregateOutputType | null
17679
+ _avg: AdminProcessAvgAggregateOutputType | null
17680
+ _sum: AdminProcessSumAggregateOutputType | null
17681
+ _min: AdminProcessMinAggregateOutputType | null
17682
+ _max: AdminProcessMaxAggregateOutputType | null
17683
+ }
17458
17684
 
17459
- export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
17685
+ export type AdminProcessAvgAggregateOutputType = {
17686
+ id: number | null
17687
+ parentProcessId: number | null
17688
+ }
17460
17689
 
17690
+ export type AdminProcessSumAggregateOutputType = {
17691
+ id: number | null
17692
+ parentProcessId: number | null
17693
+ }
17461
17694
 
17462
- export const TokenScalarFieldEnum: {
17463
- id: 'id',
17464
- token: 'token',
17465
- created: 'created',
17466
- expires: 'expires',
17467
- userId: 'userId'
17468
- };
17695
+ export type AdminProcessMinAggregateOutputType = {
17696
+ id: number | null
17697
+ name: string | null
17698
+ type: string | null
17699
+ state: $Enums.AdminProcessState | null
17700
+ parentProcessId: number | null
17701
+ createdAt: Date | null
17702
+ updatedAt: Date | null
17703
+ }
17469
17704
 
17470
- export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
17705
+ export type AdminProcessMaxAggregateOutputType = {
17706
+ id: number | null
17707
+ name: string | null
17708
+ type: string | null
17709
+ state: $Enums.AdminProcessState | null
17710
+ parentProcessId: number | null
17711
+ createdAt: Date | null
17712
+ updatedAt: Date | null
17713
+ }
17471
17714
 
17715
+ export type AdminProcessCountAggregateOutputType = {
17716
+ id: number
17717
+ name: number
17718
+ type: number
17719
+ state: number
17720
+ context: number
17721
+ results: number
17722
+ parentProcessId: number
17723
+ createdAt: number
17724
+ updatedAt: number
17725
+ _all: number
17726
+ }
17472
17727
 
17473
- export const CredentialScalarFieldEnum: {
17474
- id: 'id',
17475
- userId: 'userId',
17476
- authIsValid: 'authIsValid',
17477
- externalId: 'externalId',
17478
- data: 'data',
17479
- createdAt: 'createdAt',
17480
- updatedAt: 'updatedAt'
17481
- };
17482
17728
 
17483
- export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
17729
+ export type AdminProcessAvgAggregateInputType = {
17730
+ id?: true
17731
+ parentProcessId?: true
17732
+ }
17484
17733
 
17734
+ export type AdminProcessSumAggregateInputType = {
17735
+ id?: true
17736
+ parentProcessId?: true
17737
+ }
17485
17738
 
17486
- export const EntityScalarFieldEnum: {
17487
- id: 'id',
17488
- credentialId: 'credentialId',
17489
- userId: 'userId',
17490
- name: 'name',
17491
- moduleName: 'moduleName',
17492
- externalId: 'externalId',
17493
- data: 'data',
17494
- createdAt: 'createdAt',
17495
- updatedAt: 'updatedAt'
17496
- };
17739
+ export type AdminProcessMinAggregateInputType = {
17740
+ id?: true
17741
+ name?: true
17742
+ type?: true
17743
+ state?: true
17744
+ parentProcessId?: true
17745
+ createdAt?: true
17746
+ updatedAt?: true
17747
+ }
17497
17748
 
17498
- export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
17749
+ export type AdminProcessMaxAggregateInputType = {
17750
+ id?: true
17751
+ name?: true
17752
+ type?: true
17753
+ state?: true
17754
+ parentProcessId?: true
17755
+ createdAt?: true
17756
+ updatedAt?: true
17757
+ }
17499
17758
 
17759
+ export type AdminProcessCountAggregateInputType = {
17760
+ id?: true
17761
+ name?: true
17762
+ type?: true
17763
+ state?: true
17764
+ context?: true
17765
+ results?: true
17766
+ parentProcessId?: true
17767
+ createdAt?: true
17768
+ updatedAt?: true
17769
+ _all?: true
17770
+ }
17500
17771
 
17501
- export const IntegrationScalarFieldEnum: {
17502
- id: 'id',
17503
- userId: 'userId',
17504
- status: 'status',
17505
- config: 'config',
17506
- version: 'version',
17507
- errors: 'errors',
17508
- warnings: 'warnings',
17772
+ export type AdminProcessAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17773
+ /**
17774
+ * Filter which AdminProcess to aggregate.
17775
+ */
17776
+ where?: AdminProcessWhereInput
17777
+ /**
17778
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17779
+ *
17780
+ * Determine the order of AdminProcesses to fetch.
17781
+ */
17782
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
17783
+ /**
17784
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17785
+ *
17786
+ * Sets the start position
17787
+ */
17788
+ cursor?: AdminProcessWhereUniqueInput
17789
+ /**
17790
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17791
+ *
17792
+ * Take `±n` AdminProcesses from the position of the cursor.
17793
+ */
17794
+ take?: number
17795
+ /**
17796
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17797
+ *
17798
+ * Skip the first `n` AdminProcesses.
17799
+ */
17800
+ skip?: number
17801
+ /**
17802
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17803
+ *
17804
+ * Count returned AdminProcesses
17805
+ **/
17806
+ _count?: true | AdminProcessCountAggregateInputType
17807
+ /**
17808
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17809
+ *
17810
+ * Select which fields to average
17811
+ **/
17812
+ _avg?: AdminProcessAvgAggregateInputType
17813
+ /**
17814
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17815
+ *
17816
+ * Select which fields to sum
17817
+ **/
17818
+ _sum?: AdminProcessSumAggregateInputType
17819
+ /**
17820
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17821
+ *
17822
+ * Select which fields to find the minimum value
17823
+ **/
17824
+ _min?: AdminProcessMinAggregateInputType
17825
+ /**
17826
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17827
+ *
17828
+ * Select which fields to find the maximum value
17829
+ **/
17830
+ _max?: AdminProcessMaxAggregateInputType
17831
+ }
17832
+
17833
+ export type GetAdminProcessAggregateType<T extends AdminProcessAggregateArgs> = {
17834
+ [P in keyof T & keyof AggregateAdminProcess]: P extends '_count' | 'count'
17835
+ ? T[P] extends true
17836
+ ? number
17837
+ : GetScalarType<T[P], AggregateAdminProcess[P]>
17838
+ : GetScalarType<T[P], AggregateAdminProcess[P]>
17839
+ }
17840
+
17841
+
17842
+
17843
+
17844
+ export type AdminProcessGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17845
+ where?: AdminProcessWhereInput
17846
+ orderBy?: AdminProcessOrderByWithAggregationInput | AdminProcessOrderByWithAggregationInput[]
17847
+ by: AdminProcessScalarFieldEnum[] | AdminProcessScalarFieldEnum
17848
+ having?: AdminProcessScalarWhereWithAggregatesInput
17849
+ take?: number
17850
+ skip?: number
17851
+ _count?: AdminProcessCountAggregateInputType | true
17852
+ _avg?: AdminProcessAvgAggregateInputType
17853
+ _sum?: AdminProcessSumAggregateInputType
17854
+ _min?: AdminProcessMinAggregateInputType
17855
+ _max?: AdminProcessMaxAggregateInputType
17856
+ }
17857
+
17858
+ export type AdminProcessGroupByOutputType = {
17859
+ id: number
17860
+ name: string
17861
+ type: string
17862
+ state: $Enums.AdminProcessState
17863
+ context: JsonValue
17864
+ results: JsonValue
17865
+ parentProcessId: number | null
17866
+ createdAt: Date
17867
+ updatedAt: Date
17868
+ _count: AdminProcessCountAggregateOutputType | null
17869
+ _avg: AdminProcessAvgAggregateOutputType | null
17870
+ _sum: AdminProcessSumAggregateOutputType | null
17871
+ _min: AdminProcessMinAggregateOutputType | null
17872
+ _max: AdminProcessMaxAggregateOutputType | null
17873
+ }
17874
+
17875
+ type GetAdminProcessGroupByPayload<T extends AdminProcessGroupByArgs> = Prisma.PrismaPromise<
17876
+ Array<
17877
+ PickEnumerable<AdminProcessGroupByOutputType, T['by']> &
17878
+ {
17879
+ [P in ((keyof T) & (keyof AdminProcessGroupByOutputType))]: P extends '_count'
17880
+ ? T[P] extends boolean
17881
+ ? number
17882
+ : GetScalarType<T[P], AdminProcessGroupByOutputType[P]>
17883
+ : GetScalarType<T[P], AdminProcessGroupByOutputType[P]>
17884
+ }
17885
+ >
17886
+ >
17887
+
17888
+
17889
+ export type AdminProcessSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
17890
+ id?: boolean
17891
+ name?: boolean
17892
+ type?: boolean
17893
+ state?: boolean
17894
+ context?: boolean
17895
+ results?: boolean
17896
+ parentProcessId?: boolean
17897
+ createdAt?: boolean
17898
+ updatedAt?: boolean
17899
+ parentProcess?: boolean | AdminProcess$parentProcessArgs<ExtArgs>
17900
+ childProcesses?: boolean | AdminProcess$childProcessesArgs<ExtArgs>
17901
+ _count?: boolean | AdminProcessCountOutputTypeDefaultArgs<ExtArgs>
17902
+ }, ExtArgs["result"]["adminProcess"]>
17903
+
17904
+ export type AdminProcessSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
17905
+ id?: boolean
17906
+ name?: boolean
17907
+ type?: boolean
17908
+ state?: boolean
17909
+ context?: boolean
17910
+ results?: boolean
17911
+ parentProcessId?: boolean
17912
+ createdAt?: boolean
17913
+ updatedAt?: boolean
17914
+ parentProcess?: boolean | AdminProcess$parentProcessArgs<ExtArgs>
17915
+ }, ExtArgs["result"]["adminProcess"]>
17916
+
17917
+ export type AdminProcessSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
17918
+ id?: boolean
17919
+ name?: boolean
17920
+ type?: boolean
17921
+ state?: boolean
17922
+ context?: boolean
17923
+ results?: boolean
17924
+ parentProcessId?: boolean
17925
+ createdAt?: boolean
17926
+ updatedAt?: boolean
17927
+ parentProcess?: boolean | AdminProcess$parentProcessArgs<ExtArgs>
17928
+ }, ExtArgs["result"]["adminProcess"]>
17929
+
17930
+ export type AdminProcessSelectScalar = {
17931
+ id?: boolean
17932
+ name?: boolean
17933
+ type?: boolean
17934
+ state?: boolean
17935
+ context?: boolean
17936
+ results?: boolean
17937
+ parentProcessId?: boolean
17938
+ createdAt?: boolean
17939
+ updatedAt?: boolean
17940
+ }
17941
+
17942
+ export type AdminProcessOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "type" | "state" | "context" | "results" | "parentProcessId" | "createdAt" | "updatedAt", ExtArgs["result"]["adminProcess"]>
17943
+ export type AdminProcessInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17944
+ parentProcess?: boolean | AdminProcess$parentProcessArgs<ExtArgs>
17945
+ childProcesses?: boolean | AdminProcess$childProcessesArgs<ExtArgs>
17946
+ _count?: boolean | AdminProcessCountOutputTypeDefaultArgs<ExtArgs>
17947
+ }
17948
+ export type AdminProcessIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17949
+ parentProcess?: boolean | AdminProcess$parentProcessArgs<ExtArgs>
17950
+ }
17951
+ export type AdminProcessIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17952
+ parentProcess?: boolean | AdminProcess$parentProcessArgs<ExtArgs>
17953
+ }
17954
+
17955
+ export type $AdminProcessPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17956
+ name: "AdminProcess"
17957
+ objects: {
17958
+ parentProcess: Prisma.$AdminProcessPayload<ExtArgs> | null
17959
+ childProcesses: Prisma.$AdminProcessPayload<ExtArgs>[]
17960
+ }
17961
+ scalars: $Extensions.GetPayloadResult<{
17962
+ id: number
17963
+ name: string
17964
+ type: string
17965
+ state: $Enums.AdminProcessState
17966
+ context: Prisma.JsonValue
17967
+ results: Prisma.JsonValue
17968
+ parentProcessId: number | null
17969
+ createdAt: Date
17970
+ updatedAt: Date
17971
+ }, ExtArgs["result"]["adminProcess"]>
17972
+ composites: {}
17973
+ }
17974
+
17975
+ type AdminProcessGetPayload<S extends boolean | null | undefined | AdminProcessDefaultArgs> = $Result.GetResult<Prisma.$AdminProcessPayload, S>
17976
+
17977
+ type AdminProcessCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
17978
+ Omit<AdminProcessFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
17979
+ select?: AdminProcessCountAggregateInputType | true
17980
+ }
17981
+
17982
+ export interface AdminProcessDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
17983
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminProcess'], meta: { name: 'AdminProcess' } }
17984
+ /**
17985
+ * Find zero or one AdminProcess that matches the filter.
17986
+ * @param {AdminProcessFindUniqueArgs} args - Arguments to find a AdminProcess
17987
+ * @example
17988
+ * // Get one AdminProcess
17989
+ * const adminProcess = await prisma.adminProcess.findUnique({
17990
+ * where: {
17991
+ * // ... provide filter here
17992
+ * }
17993
+ * })
17994
+ */
17995
+ findUnique<T extends AdminProcessFindUniqueArgs>(args: SelectSubset<T, AdminProcessFindUniqueArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
17996
+
17997
+ /**
17998
+ * Find one AdminProcess that matches the filter or throw an error with `error.code='P2025'`
17999
+ * if no matches were found.
18000
+ * @param {AdminProcessFindUniqueOrThrowArgs} args - Arguments to find a AdminProcess
18001
+ * @example
18002
+ * // Get one AdminProcess
18003
+ * const adminProcess = await prisma.adminProcess.findUniqueOrThrow({
18004
+ * where: {
18005
+ * // ... provide filter here
18006
+ * }
18007
+ * })
18008
+ */
18009
+ findUniqueOrThrow<T extends AdminProcessFindUniqueOrThrowArgs>(args: SelectSubset<T, AdminProcessFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18010
+
18011
+ /**
18012
+ * Find the first AdminProcess that matches the filter.
18013
+ * Note, that providing `undefined` is treated as the value not being there.
18014
+ * Read more here: https://pris.ly/d/null-undefined
18015
+ * @param {AdminProcessFindFirstArgs} args - Arguments to find a AdminProcess
18016
+ * @example
18017
+ * // Get one AdminProcess
18018
+ * const adminProcess = await prisma.adminProcess.findFirst({
18019
+ * where: {
18020
+ * // ... provide filter here
18021
+ * }
18022
+ * })
18023
+ */
18024
+ findFirst<T extends AdminProcessFindFirstArgs>(args?: SelectSubset<T, AdminProcessFindFirstArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
18025
+
18026
+ /**
18027
+ * Find the first AdminProcess that matches the filter or
18028
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
18029
+ * Note, that providing `undefined` is treated as the value not being there.
18030
+ * Read more here: https://pris.ly/d/null-undefined
18031
+ * @param {AdminProcessFindFirstOrThrowArgs} args - Arguments to find a AdminProcess
18032
+ * @example
18033
+ * // Get one AdminProcess
18034
+ * const adminProcess = await prisma.adminProcess.findFirstOrThrow({
18035
+ * where: {
18036
+ * // ... provide filter here
18037
+ * }
18038
+ * })
18039
+ */
18040
+ findFirstOrThrow<T extends AdminProcessFindFirstOrThrowArgs>(args?: SelectSubset<T, AdminProcessFindFirstOrThrowArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18041
+
18042
+ /**
18043
+ * Find zero or more AdminProcesses that matches the filter.
18044
+ * Note, that providing `undefined` is treated as the value not being there.
18045
+ * Read more here: https://pris.ly/d/null-undefined
18046
+ * @param {AdminProcessFindManyArgs} args - Arguments to filter and select certain fields only.
18047
+ * @example
18048
+ * // Get all AdminProcesses
18049
+ * const adminProcesses = await prisma.adminProcess.findMany()
18050
+ *
18051
+ * // Get first 10 AdminProcesses
18052
+ * const adminProcesses = await prisma.adminProcess.findMany({ take: 10 })
18053
+ *
18054
+ * // Only select the `id`
18055
+ * const adminProcessWithIdOnly = await prisma.adminProcess.findMany({ select: { id: true } })
18056
+ *
18057
+ */
18058
+ findMany<T extends AdminProcessFindManyArgs>(args?: SelectSubset<T, AdminProcessFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
18059
+
18060
+ /**
18061
+ * Create a AdminProcess.
18062
+ * @param {AdminProcessCreateArgs} args - Arguments to create a AdminProcess.
18063
+ * @example
18064
+ * // Create one AdminProcess
18065
+ * const AdminProcess = await prisma.adminProcess.create({
18066
+ * data: {
18067
+ * // ... data to create a AdminProcess
18068
+ * }
18069
+ * })
18070
+ *
18071
+ */
18072
+ create<T extends AdminProcessCreateArgs>(args: SelectSubset<T, AdminProcessCreateArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18073
+
18074
+ /**
18075
+ * Create many AdminProcesses.
18076
+ * @param {AdminProcessCreateManyArgs} args - Arguments to create many AdminProcesses.
18077
+ * @example
18078
+ * // Create many AdminProcesses
18079
+ * const adminProcess = await prisma.adminProcess.createMany({
18080
+ * data: [
18081
+ * // ... provide data here
18082
+ * ]
18083
+ * })
18084
+ *
18085
+ */
18086
+ createMany<T extends AdminProcessCreateManyArgs>(args?: SelectSubset<T, AdminProcessCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
18087
+
18088
+ /**
18089
+ * Create many AdminProcesses and returns the data saved in the database.
18090
+ * @param {AdminProcessCreateManyAndReturnArgs} args - Arguments to create many AdminProcesses.
18091
+ * @example
18092
+ * // Create many AdminProcesses
18093
+ * const adminProcess = await prisma.adminProcess.createManyAndReturn({
18094
+ * data: [
18095
+ * // ... provide data here
18096
+ * ]
18097
+ * })
18098
+ *
18099
+ * // Create many AdminProcesses and only return the `id`
18100
+ * const adminProcessWithIdOnly = await prisma.adminProcess.createManyAndReturn({
18101
+ * select: { id: true },
18102
+ * data: [
18103
+ * // ... provide data here
18104
+ * ]
18105
+ * })
18106
+ * Note, that providing `undefined` is treated as the value not being there.
18107
+ * Read more here: https://pris.ly/d/null-undefined
18108
+ *
18109
+ */
18110
+ createManyAndReturn<T extends AdminProcessCreateManyAndReturnArgs>(args?: SelectSubset<T, AdminProcessCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
18111
+
18112
+ /**
18113
+ * Delete a AdminProcess.
18114
+ * @param {AdminProcessDeleteArgs} args - Arguments to delete one AdminProcess.
18115
+ * @example
18116
+ * // Delete one AdminProcess
18117
+ * const AdminProcess = await prisma.adminProcess.delete({
18118
+ * where: {
18119
+ * // ... filter to delete one AdminProcess
18120
+ * }
18121
+ * })
18122
+ *
18123
+ */
18124
+ delete<T extends AdminProcessDeleteArgs>(args: SelectSubset<T, AdminProcessDeleteArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18125
+
18126
+ /**
18127
+ * Update one AdminProcess.
18128
+ * @param {AdminProcessUpdateArgs} args - Arguments to update one AdminProcess.
18129
+ * @example
18130
+ * // Update one AdminProcess
18131
+ * const adminProcess = await prisma.adminProcess.update({
18132
+ * where: {
18133
+ * // ... provide filter here
18134
+ * },
18135
+ * data: {
18136
+ * // ... provide data here
18137
+ * }
18138
+ * })
18139
+ *
18140
+ */
18141
+ update<T extends AdminProcessUpdateArgs>(args: SelectSubset<T, AdminProcessUpdateArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18142
+
18143
+ /**
18144
+ * Delete zero or more AdminProcesses.
18145
+ * @param {AdminProcessDeleteManyArgs} args - Arguments to filter AdminProcesses to delete.
18146
+ * @example
18147
+ * // Delete a few AdminProcesses
18148
+ * const { count } = await prisma.adminProcess.deleteMany({
18149
+ * where: {
18150
+ * // ... provide filter here
18151
+ * }
18152
+ * })
18153
+ *
18154
+ */
18155
+ deleteMany<T extends AdminProcessDeleteManyArgs>(args?: SelectSubset<T, AdminProcessDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
18156
+
18157
+ /**
18158
+ * Update zero or more AdminProcesses.
18159
+ * Note, that providing `undefined` is treated as the value not being there.
18160
+ * Read more here: https://pris.ly/d/null-undefined
18161
+ * @param {AdminProcessUpdateManyArgs} args - Arguments to update one or more rows.
18162
+ * @example
18163
+ * // Update many AdminProcesses
18164
+ * const adminProcess = await prisma.adminProcess.updateMany({
18165
+ * where: {
18166
+ * // ... provide filter here
18167
+ * },
18168
+ * data: {
18169
+ * // ... provide data here
18170
+ * }
18171
+ * })
18172
+ *
18173
+ */
18174
+ updateMany<T extends AdminProcessUpdateManyArgs>(args: SelectSubset<T, AdminProcessUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
18175
+
18176
+ /**
18177
+ * Update zero or more AdminProcesses and returns the data updated in the database.
18178
+ * @param {AdminProcessUpdateManyAndReturnArgs} args - Arguments to update many AdminProcesses.
18179
+ * @example
18180
+ * // Update many AdminProcesses
18181
+ * const adminProcess = await prisma.adminProcess.updateManyAndReturn({
18182
+ * where: {
18183
+ * // ... provide filter here
18184
+ * },
18185
+ * data: [
18186
+ * // ... provide data here
18187
+ * ]
18188
+ * })
18189
+ *
18190
+ * // Update zero or more AdminProcesses and only return the `id`
18191
+ * const adminProcessWithIdOnly = await prisma.adminProcess.updateManyAndReturn({
18192
+ * select: { id: true },
18193
+ * where: {
18194
+ * // ... provide filter here
18195
+ * },
18196
+ * data: [
18197
+ * // ... provide data here
18198
+ * ]
18199
+ * })
18200
+ * Note, that providing `undefined` is treated as the value not being there.
18201
+ * Read more here: https://pris.ly/d/null-undefined
18202
+ *
18203
+ */
18204
+ updateManyAndReturn<T extends AdminProcessUpdateManyAndReturnArgs>(args: SelectSubset<T, AdminProcessUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
18205
+
18206
+ /**
18207
+ * Create or update one AdminProcess.
18208
+ * @param {AdminProcessUpsertArgs} args - Arguments to update or create a AdminProcess.
18209
+ * @example
18210
+ * // Update or create a AdminProcess
18211
+ * const adminProcess = await prisma.adminProcess.upsert({
18212
+ * create: {
18213
+ * // ... data to create a AdminProcess
18214
+ * },
18215
+ * update: {
18216
+ * // ... in case it already exists, update
18217
+ * },
18218
+ * where: {
18219
+ * // ... the filter for the AdminProcess we want to update
18220
+ * }
18221
+ * })
18222
+ */
18223
+ upsert<T extends AdminProcessUpsertArgs>(args: SelectSubset<T, AdminProcessUpsertArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18224
+
18225
+
18226
+ /**
18227
+ * Count the number of AdminProcesses.
18228
+ * Note, that providing `undefined` is treated as the value not being there.
18229
+ * Read more here: https://pris.ly/d/null-undefined
18230
+ * @param {AdminProcessCountArgs} args - Arguments to filter AdminProcesses to count.
18231
+ * @example
18232
+ * // Count the number of AdminProcesses
18233
+ * const count = await prisma.adminProcess.count({
18234
+ * where: {
18235
+ * // ... the filter for the AdminProcesses we want to count
18236
+ * }
18237
+ * })
18238
+ **/
18239
+ count<T extends AdminProcessCountArgs>(
18240
+ args?: Subset<T, AdminProcessCountArgs>,
18241
+ ): Prisma.PrismaPromise<
18242
+ T extends $Utils.Record<'select', any>
18243
+ ? T['select'] extends true
18244
+ ? number
18245
+ : GetScalarType<T['select'], AdminProcessCountAggregateOutputType>
18246
+ : number
18247
+ >
18248
+
18249
+ /**
18250
+ * Allows you to perform aggregations operations on a AdminProcess.
18251
+ * Note, that providing `undefined` is treated as the value not being there.
18252
+ * Read more here: https://pris.ly/d/null-undefined
18253
+ * @param {AdminProcessAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
18254
+ * @example
18255
+ * // Ordered by age ascending
18256
+ * // Where email contains prisma.io
18257
+ * // Limited to the 10 users
18258
+ * const aggregations = await prisma.user.aggregate({
18259
+ * _avg: {
18260
+ * age: true,
18261
+ * },
18262
+ * where: {
18263
+ * email: {
18264
+ * contains: "prisma.io",
18265
+ * },
18266
+ * },
18267
+ * orderBy: {
18268
+ * age: "asc",
18269
+ * },
18270
+ * take: 10,
18271
+ * })
18272
+ **/
18273
+ aggregate<T extends AdminProcessAggregateArgs>(args: Subset<T, AdminProcessAggregateArgs>): Prisma.PrismaPromise<GetAdminProcessAggregateType<T>>
18274
+
18275
+ /**
18276
+ * Group by AdminProcess.
18277
+ * Note, that providing `undefined` is treated as the value not being there.
18278
+ * Read more here: https://pris.ly/d/null-undefined
18279
+ * @param {AdminProcessGroupByArgs} args - Group by arguments.
18280
+ * @example
18281
+ * // Group by city, order by createdAt, get count
18282
+ * const result = await prisma.user.groupBy({
18283
+ * by: ['city', 'createdAt'],
18284
+ * orderBy: {
18285
+ * createdAt: true
18286
+ * },
18287
+ * _count: {
18288
+ * _all: true
18289
+ * },
18290
+ * })
18291
+ *
18292
+ **/
18293
+ groupBy<
18294
+ T extends AdminProcessGroupByArgs,
18295
+ HasSelectOrTake extends Or<
18296
+ Extends<'skip', Keys<T>>,
18297
+ Extends<'take', Keys<T>>
18298
+ >,
18299
+ OrderByArg extends True extends HasSelectOrTake
18300
+ ? { orderBy: AdminProcessGroupByArgs['orderBy'] }
18301
+ : { orderBy?: AdminProcessGroupByArgs['orderBy'] },
18302
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
18303
+ ByFields extends MaybeTupleToUnion<T['by']>,
18304
+ ByValid extends Has<ByFields, OrderFields>,
18305
+ HavingFields extends GetHavingFields<T['having']>,
18306
+ HavingValid extends Has<ByFields, HavingFields>,
18307
+ ByEmpty extends T['by'] extends never[] ? True : False,
18308
+ InputErrors extends ByEmpty extends True
18309
+ ? `Error: "by" must not be empty.`
18310
+ : HavingValid extends False
18311
+ ? {
18312
+ [P in HavingFields]: P extends ByFields
18313
+ ? never
18314
+ : P extends string
18315
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
18316
+ : [
18317
+ Error,
18318
+ 'Field ',
18319
+ P,
18320
+ ` in "having" needs to be provided in "by"`,
18321
+ ]
18322
+ }[HavingFields]
18323
+ : 'take' extends Keys<T>
18324
+ ? 'orderBy' extends Keys<T>
18325
+ ? ByValid extends True
18326
+ ? {}
18327
+ : {
18328
+ [P in OrderFields]: P extends ByFields
18329
+ ? never
18330
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
18331
+ }[OrderFields]
18332
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
18333
+ : 'skip' extends Keys<T>
18334
+ ? 'orderBy' extends Keys<T>
18335
+ ? ByValid extends True
18336
+ ? {}
18337
+ : {
18338
+ [P in OrderFields]: P extends ByFields
18339
+ ? never
18340
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
18341
+ }[OrderFields]
18342
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
18343
+ : ByValid extends True
18344
+ ? {}
18345
+ : {
18346
+ [P in OrderFields]: P extends ByFields
18347
+ ? never
18348
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
18349
+ }[OrderFields]
18350
+ >(args: SubsetIntersection<T, AdminProcessGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminProcessGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
18351
+ /**
18352
+ * Fields of the AdminProcess model
18353
+ */
18354
+ readonly fields: AdminProcessFieldRefs;
18355
+ }
18356
+
18357
+ /**
18358
+ * The delegate class that acts as a "Promise-like" for AdminProcess.
18359
+ * Why is this prefixed with `Prisma__`?
18360
+ * Because we want to prevent naming conflicts as mentioned in
18361
+ * https://github.com/prisma/prisma-client-js/issues/707
18362
+ */
18363
+ export interface Prisma__AdminProcessClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
18364
+ readonly [Symbol.toStringTag]: "PrismaPromise"
18365
+ parentProcess<T extends AdminProcess$parentProcessArgs<ExtArgs> = {}>(args?: Subset<T, AdminProcess$parentProcessArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
18366
+ childProcesses<T extends AdminProcess$childProcessesArgs<ExtArgs> = {}>(args?: Subset<T, AdminProcess$childProcessesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
18367
+ /**
18368
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
18369
+ * @param onfulfilled The callback to execute when the Promise is resolved.
18370
+ * @param onrejected The callback to execute when the Promise is rejected.
18371
+ * @returns A Promise for the completion of which ever callback is executed.
18372
+ */
18373
+ 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>
18374
+ /**
18375
+ * Attaches a callback for only the rejection of the Promise.
18376
+ * @param onrejected The callback to execute when the Promise is rejected.
18377
+ * @returns A Promise for the completion of the callback.
18378
+ */
18379
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
18380
+ /**
18381
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
18382
+ * resolved value cannot be modified from the callback.
18383
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
18384
+ * @returns A Promise for the completion of the callback.
18385
+ */
18386
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
18387
+ }
18388
+
18389
+
18390
+
18391
+
18392
+ /**
18393
+ * Fields of the AdminProcess model
18394
+ */
18395
+ interface AdminProcessFieldRefs {
18396
+ readonly id: FieldRef<"AdminProcess", 'Int'>
18397
+ readonly name: FieldRef<"AdminProcess", 'String'>
18398
+ readonly type: FieldRef<"AdminProcess", 'String'>
18399
+ readonly state: FieldRef<"AdminProcess", 'AdminProcessState'>
18400
+ readonly context: FieldRef<"AdminProcess", 'Json'>
18401
+ readonly results: FieldRef<"AdminProcess", 'Json'>
18402
+ readonly parentProcessId: FieldRef<"AdminProcess", 'Int'>
18403
+ readonly createdAt: FieldRef<"AdminProcess", 'DateTime'>
18404
+ readonly updatedAt: FieldRef<"AdminProcess", 'DateTime'>
18405
+ }
18406
+
18407
+
18408
+ // Custom InputTypes
18409
+ /**
18410
+ * AdminProcess findUnique
18411
+ */
18412
+ export type AdminProcessFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18413
+ /**
18414
+ * Select specific fields to fetch from the AdminProcess
18415
+ */
18416
+ select?: AdminProcessSelect<ExtArgs> | null
18417
+ /**
18418
+ * Omit specific fields from the AdminProcess
18419
+ */
18420
+ omit?: AdminProcessOmit<ExtArgs> | null
18421
+ /**
18422
+ * Choose, which related nodes to fetch as well
18423
+ */
18424
+ include?: AdminProcessInclude<ExtArgs> | null
18425
+ /**
18426
+ * Filter, which AdminProcess to fetch.
18427
+ */
18428
+ where: AdminProcessWhereUniqueInput
18429
+ }
18430
+
18431
+ /**
18432
+ * AdminProcess findUniqueOrThrow
18433
+ */
18434
+ export type AdminProcessFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18435
+ /**
18436
+ * Select specific fields to fetch from the AdminProcess
18437
+ */
18438
+ select?: AdminProcessSelect<ExtArgs> | null
18439
+ /**
18440
+ * Omit specific fields from the AdminProcess
18441
+ */
18442
+ omit?: AdminProcessOmit<ExtArgs> | null
18443
+ /**
18444
+ * Choose, which related nodes to fetch as well
18445
+ */
18446
+ include?: AdminProcessInclude<ExtArgs> | null
18447
+ /**
18448
+ * Filter, which AdminProcess to fetch.
18449
+ */
18450
+ where: AdminProcessWhereUniqueInput
18451
+ }
18452
+
18453
+ /**
18454
+ * AdminProcess findFirst
18455
+ */
18456
+ export type AdminProcessFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18457
+ /**
18458
+ * Select specific fields to fetch from the AdminProcess
18459
+ */
18460
+ select?: AdminProcessSelect<ExtArgs> | null
18461
+ /**
18462
+ * Omit specific fields from the AdminProcess
18463
+ */
18464
+ omit?: AdminProcessOmit<ExtArgs> | null
18465
+ /**
18466
+ * Choose, which related nodes to fetch as well
18467
+ */
18468
+ include?: AdminProcessInclude<ExtArgs> | null
18469
+ /**
18470
+ * Filter, which AdminProcess to fetch.
18471
+ */
18472
+ where?: AdminProcessWhereInput
18473
+ /**
18474
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
18475
+ *
18476
+ * Determine the order of AdminProcesses to fetch.
18477
+ */
18478
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
18479
+ /**
18480
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
18481
+ *
18482
+ * Sets the position for searching for AdminProcesses.
18483
+ */
18484
+ cursor?: AdminProcessWhereUniqueInput
18485
+ /**
18486
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18487
+ *
18488
+ * Take `±n` AdminProcesses from the position of the cursor.
18489
+ */
18490
+ take?: number
18491
+ /**
18492
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18493
+ *
18494
+ * Skip the first `n` AdminProcesses.
18495
+ */
18496
+ skip?: number
18497
+ /**
18498
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
18499
+ *
18500
+ * Filter by unique combinations of AdminProcesses.
18501
+ */
18502
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
18503
+ }
18504
+
18505
+ /**
18506
+ * AdminProcess findFirstOrThrow
18507
+ */
18508
+ export type AdminProcessFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18509
+ /**
18510
+ * Select specific fields to fetch from the AdminProcess
18511
+ */
18512
+ select?: AdminProcessSelect<ExtArgs> | null
18513
+ /**
18514
+ * Omit specific fields from the AdminProcess
18515
+ */
18516
+ omit?: AdminProcessOmit<ExtArgs> | null
18517
+ /**
18518
+ * Choose, which related nodes to fetch as well
18519
+ */
18520
+ include?: AdminProcessInclude<ExtArgs> | null
18521
+ /**
18522
+ * Filter, which AdminProcess to fetch.
18523
+ */
18524
+ where?: AdminProcessWhereInput
18525
+ /**
18526
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
18527
+ *
18528
+ * Determine the order of AdminProcesses to fetch.
18529
+ */
18530
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
18531
+ /**
18532
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
18533
+ *
18534
+ * Sets the position for searching for AdminProcesses.
18535
+ */
18536
+ cursor?: AdminProcessWhereUniqueInput
18537
+ /**
18538
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18539
+ *
18540
+ * Take `±n` AdminProcesses from the position of the cursor.
18541
+ */
18542
+ take?: number
18543
+ /**
18544
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18545
+ *
18546
+ * Skip the first `n` AdminProcesses.
18547
+ */
18548
+ skip?: number
18549
+ /**
18550
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
18551
+ *
18552
+ * Filter by unique combinations of AdminProcesses.
18553
+ */
18554
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
18555
+ }
18556
+
18557
+ /**
18558
+ * AdminProcess findMany
18559
+ */
18560
+ export type AdminProcessFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18561
+ /**
18562
+ * Select specific fields to fetch from the AdminProcess
18563
+ */
18564
+ select?: AdminProcessSelect<ExtArgs> | null
18565
+ /**
18566
+ * Omit specific fields from the AdminProcess
18567
+ */
18568
+ omit?: AdminProcessOmit<ExtArgs> | null
18569
+ /**
18570
+ * Choose, which related nodes to fetch as well
18571
+ */
18572
+ include?: AdminProcessInclude<ExtArgs> | null
18573
+ /**
18574
+ * Filter, which AdminProcesses to fetch.
18575
+ */
18576
+ where?: AdminProcessWhereInput
18577
+ /**
18578
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
18579
+ *
18580
+ * Determine the order of AdminProcesses to fetch.
18581
+ */
18582
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
18583
+ /**
18584
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
18585
+ *
18586
+ * Sets the position for listing AdminProcesses.
18587
+ */
18588
+ cursor?: AdminProcessWhereUniqueInput
18589
+ /**
18590
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18591
+ *
18592
+ * Take `±n` AdminProcesses from the position of the cursor.
18593
+ */
18594
+ take?: number
18595
+ /**
18596
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18597
+ *
18598
+ * Skip the first `n` AdminProcesses.
18599
+ */
18600
+ skip?: number
18601
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
18602
+ }
18603
+
18604
+ /**
18605
+ * AdminProcess create
18606
+ */
18607
+ export type AdminProcessCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18608
+ /**
18609
+ * Select specific fields to fetch from the AdminProcess
18610
+ */
18611
+ select?: AdminProcessSelect<ExtArgs> | null
18612
+ /**
18613
+ * Omit specific fields from the AdminProcess
18614
+ */
18615
+ omit?: AdminProcessOmit<ExtArgs> | null
18616
+ /**
18617
+ * Choose, which related nodes to fetch as well
18618
+ */
18619
+ include?: AdminProcessInclude<ExtArgs> | null
18620
+ /**
18621
+ * The data needed to create a AdminProcess.
18622
+ */
18623
+ data: XOR<AdminProcessCreateInput, AdminProcessUncheckedCreateInput>
18624
+ }
18625
+
18626
+ /**
18627
+ * AdminProcess createMany
18628
+ */
18629
+ export type AdminProcessCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18630
+ /**
18631
+ * The data used to create many AdminProcesses.
18632
+ */
18633
+ data: AdminProcessCreateManyInput | AdminProcessCreateManyInput[]
18634
+ skipDuplicates?: boolean
18635
+ }
18636
+
18637
+ /**
18638
+ * AdminProcess createManyAndReturn
18639
+ */
18640
+ export type AdminProcessCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18641
+ /**
18642
+ * Select specific fields to fetch from the AdminProcess
18643
+ */
18644
+ select?: AdminProcessSelectCreateManyAndReturn<ExtArgs> | null
18645
+ /**
18646
+ * Omit specific fields from the AdminProcess
18647
+ */
18648
+ omit?: AdminProcessOmit<ExtArgs> | null
18649
+ /**
18650
+ * The data used to create many AdminProcesses.
18651
+ */
18652
+ data: AdminProcessCreateManyInput | AdminProcessCreateManyInput[]
18653
+ skipDuplicates?: boolean
18654
+ /**
18655
+ * Choose, which related nodes to fetch as well
18656
+ */
18657
+ include?: AdminProcessIncludeCreateManyAndReturn<ExtArgs> | null
18658
+ }
18659
+
18660
+ /**
18661
+ * AdminProcess update
18662
+ */
18663
+ export type AdminProcessUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18664
+ /**
18665
+ * Select specific fields to fetch from the AdminProcess
18666
+ */
18667
+ select?: AdminProcessSelect<ExtArgs> | null
18668
+ /**
18669
+ * Omit specific fields from the AdminProcess
18670
+ */
18671
+ omit?: AdminProcessOmit<ExtArgs> | null
18672
+ /**
18673
+ * Choose, which related nodes to fetch as well
18674
+ */
18675
+ include?: AdminProcessInclude<ExtArgs> | null
18676
+ /**
18677
+ * The data needed to update a AdminProcess.
18678
+ */
18679
+ data: XOR<AdminProcessUpdateInput, AdminProcessUncheckedUpdateInput>
18680
+ /**
18681
+ * Choose, which AdminProcess to update.
18682
+ */
18683
+ where: AdminProcessWhereUniqueInput
18684
+ }
18685
+
18686
+ /**
18687
+ * AdminProcess updateMany
18688
+ */
18689
+ export type AdminProcessUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18690
+ /**
18691
+ * The data used to update AdminProcesses.
18692
+ */
18693
+ data: XOR<AdminProcessUpdateManyMutationInput, AdminProcessUncheckedUpdateManyInput>
18694
+ /**
18695
+ * Filter which AdminProcesses to update
18696
+ */
18697
+ where?: AdminProcessWhereInput
18698
+ /**
18699
+ * Limit how many AdminProcesses to update.
18700
+ */
18701
+ limit?: number
18702
+ }
18703
+
18704
+ /**
18705
+ * AdminProcess updateManyAndReturn
18706
+ */
18707
+ export type AdminProcessUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18708
+ /**
18709
+ * Select specific fields to fetch from the AdminProcess
18710
+ */
18711
+ select?: AdminProcessSelectUpdateManyAndReturn<ExtArgs> | null
18712
+ /**
18713
+ * Omit specific fields from the AdminProcess
18714
+ */
18715
+ omit?: AdminProcessOmit<ExtArgs> | null
18716
+ /**
18717
+ * The data used to update AdminProcesses.
18718
+ */
18719
+ data: XOR<AdminProcessUpdateManyMutationInput, AdminProcessUncheckedUpdateManyInput>
18720
+ /**
18721
+ * Filter which AdminProcesses to update
18722
+ */
18723
+ where?: AdminProcessWhereInput
18724
+ /**
18725
+ * Limit how many AdminProcesses to update.
18726
+ */
18727
+ limit?: number
18728
+ /**
18729
+ * Choose, which related nodes to fetch as well
18730
+ */
18731
+ include?: AdminProcessIncludeUpdateManyAndReturn<ExtArgs> | null
18732
+ }
18733
+
18734
+ /**
18735
+ * AdminProcess upsert
18736
+ */
18737
+ export type AdminProcessUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18738
+ /**
18739
+ * Select specific fields to fetch from the AdminProcess
18740
+ */
18741
+ select?: AdminProcessSelect<ExtArgs> | null
18742
+ /**
18743
+ * Omit specific fields from the AdminProcess
18744
+ */
18745
+ omit?: AdminProcessOmit<ExtArgs> | null
18746
+ /**
18747
+ * Choose, which related nodes to fetch as well
18748
+ */
18749
+ include?: AdminProcessInclude<ExtArgs> | null
18750
+ /**
18751
+ * The filter to search for the AdminProcess to update in case it exists.
18752
+ */
18753
+ where: AdminProcessWhereUniqueInput
18754
+ /**
18755
+ * In case the AdminProcess found by the `where` argument doesn't exist, create a new AdminProcess with this data.
18756
+ */
18757
+ create: XOR<AdminProcessCreateInput, AdminProcessUncheckedCreateInput>
18758
+ /**
18759
+ * In case the AdminProcess was found with the provided `where` argument, update it with this data.
18760
+ */
18761
+ update: XOR<AdminProcessUpdateInput, AdminProcessUncheckedUpdateInput>
18762
+ }
18763
+
18764
+ /**
18765
+ * AdminProcess delete
18766
+ */
18767
+ export type AdminProcessDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18768
+ /**
18769
+ * Select specific fields to fetch from the AdminProcess
18770
+ */
18771
+ select?: AdminProcessSelect<ExtArgs> | null
18772
+ /**
18773
+ * Omit specific fields from the AdminProcess
18774
+ */
18775
+ omit?: AdminProcessOmit<ExtArgs> | null
18776
+ /**
18777
+ * Choose, which related nodes to fetch as well
18778
+ */
18779
+ include?: AdminProcessInclude<ExtArgs> | null
18780
+ /**
18781
+ * Filter which AdminProcess to delete.
18782
+ */
18783
+ where: AdminProcessWhereUniqueInput
18784
+ }
18785
+
18786
+ /**
18787
+ * AdminProcess deleteMany
18788
+ */
18789
+ export type AdminProcessDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18790
+ /**
18791
+ * Filter which AdminProcesses to delete
18792
+ */
18793
+ where?: AdminProcessWhereInput
18794
+ /**
18795
+ * Limit how many AdminProcesses to delete.
18796
+ */
18797
+ limit?: number
18798
+ }
18799
+
18800
+ /**
18801
+ * AdminProcess.parentProcess
18802
+ */
18803
+ export type AdminProcess$parentProcessArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18804
+ /**
18805
+ * Select specific fields to fetch from the AdminProcess
18806
+ */
18807
+ select?: AdminProcessSelect<ExtArgs> | null
18808
+ /**
18809
+ * Omit specific fields from the AdminProcess
18810
+ */
18811
+ omit?: AdminProcessOmit<ExtArgs> | null
18812
+ /**
18813
+ * Choose, which related nodes to fetch as well
18814
+ */
18815
+ include?: AdminProcessInclude<ExtArgs> | null
18816
+ where?: AdminProcessWhereInput
18817
+ }
18818
+
18819
+ /**
18820
+ * AdminProcess.childProcesses
18821
+ */
18822
+ export type AdminProcess$childProcessesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18823
+ /**
18824
+ * Select specific fields to fetch from the AdminProcess
18825
+ */
18826
+ select?: AdminProcessSelect<ExtArgs> | null
18827
+ /**
18828
+ * Omit specific fields from the AdminProcess
18829
+ */
18830
+ omit?: AdminProcessOmit<ExtArgs> | null
18831
+ /**
18832
+ * Choose, which related nodes to fetch as well
18833
+ */
18834
+ include?: AdminProcessInclude<ExtArgs> | null
18835
+ where?: AdminProcessWhereInput
18836
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
18837
+ cursor?: AdminProcessWhereUniqueInput
18838
+ take?: number
18839
+ skip?: number
18840
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
18841
+ }
18842
+
18843
+ /**
18844
+ * AdminProcess without action
18845
+ */
18846
+ export type AdminProcessDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18847
+ /**
18848
+ * Select specific fields to fetch from the AdminProcess
18849
+ */
18850
+ select?: AdminProcessSelect<ExtArgs> | null
18851
+ /**
18852
+ * Omit specific fields from the AdminProcess
18853
+ */
18854
+ omit?: AdminProcessOmit<ExtArgs> | null
18855
+ /**
18856
+ * Choose, which related nodes to fetch as well
18857
+ */
18858
+ include?: AdminProcessInclude<ExtArgs> | null
18859
+ }
18860
+
18861
+
18862
+ /**
18863
+ * Model ScriptSchedule
18864
+ */
18865
+
18866
+ export type AggregateScriptSchedule = {
18867
+ _count: ScriptScheduleCountAggregateOutputType | null
18868
+ _avg: ScriptScheduleAvgAggregateOutputType | null
18869
+ _sum: ScriptScheduleSumAggregateOutputType | null
18870
+ _min: ScriptScheduleMinAggregateOutputType | null
18871
+ _max: ScriptScheduleMaxAggregateOutputType | null
18872
+ }
18873
+
18874
+ export type ScriptScheduleAvgAggregateOutputType = {
18875
+ id: number | null
18876
+ }
18877
+
18878
+ export type ScriptScheduleSumAggregateOutputType = {
18879
+ id: number | null
18880
+ }
18881
+
18882
+ export type ScriptScheduleMinAggregateOutputType = {
18883
+ id: number | null
18884
+ scriptName: string | null
18885
+ enabled: boolean | null
18886
+ cronExpression: string | null
18887
+ timezone: string | null
18888
+ lastTriggeredAt: Date | null
18889
+ nextTriggerAt: Date | null
18890
+ externalScheduleId: string | null
18891
+ externalScheduleName: string | null
18892
+ createdAt: Date | null
18893
+ updatedAt: Date | null
18894
+ }
18895
+
18896
+ export type ScriptScheduleMaxAggregateOutputType = {
18897
+ id: number | null
18898
+ scriptName: string | null
18899
+ enabled: boolean | null
18900
+ cronExpression: string | null
18901
+ timezone: string | null
18902
+ lastTriggeredAt: Date | null
18903
+ nextTriggerAt: Date | null
18904
+ externalScheduleId: string | null
18905
+ externalScheduleName: string | null
18906
+ createdAt: Date | null
18907
+ updatedAt: Date | null
18908
+ }
18909
+
18910
+ export type ScriptScheduleCountAggregateOutputType = {
18911
+ id: number
18912
+ scriptName: number
18913
+ enabled: number
18914
+ cronExpression: number
18915
+ timezone: number
18916
+ lastTriggeredAt: number
18917
+ nextTriggerAt: number
18918
+ externalScheduleId: number
18919
+ externalScheduleName: number
18920
+ createdAt: number
18921
+ updatedAt: number
18922
+ _all: number
18923
+ }
18924
+
18925
+
18926
+ export type ScriptScheduleAvgAggregateInputType = {
18927
+ id?: true
18928
+ }
18929
+
18930
+ export type ScriptScheduleSumAggregateInputType = {
18931
+ id?: true
18932
+ }
18933
+
18934
+ export type ScriptScheduleMinAggregateInputType = {
18935
+ id?: true
18936
+ scriptName?: true
18937
+ enabled?: true
18938
+ cronExpression?: true
18939
+ timezone?: true
18940
+ lastTriggeredAt?: true
18941
+ nextTriggerAt?: true
18942
+ externalScheduleId?: true
18943
+ externalScheduleName?: true
18944
+ createdAt?: true
18945
+ updatedAt?: true
18946
+ }
18947
+
18948
+ export type ScriptScheduleMaxAggregateInputType = {
18949
+ id?: true
18950
+ scriptName?: true
18951
+ enabled?: true
18952
+ cronExpression?: true
18953
+ timezone?: true
18954
+ lastTriggeredAt?: true
18955
+ nextTriggerAt?: true
18956
+ externalScheduleId?: true
18957
+ externalScheduleName?: true
18958
+ createdAt?: true
18959
+ updatedAt?: true
18960
+ }
18961
+
18962
+ export type ScriptScheduleCountAggregateInputType = {
18963
+ id?: true
18964
+ scriptName?: true
18965
+ enabled?: true
18966
+ cronExpression?: true
18967
+ timezone?: true
18968
+ lastTriggeredAt?: true
18969
+ nextTriggerAt?: true
18970
+ externalScheduleId?: true
18971
+ externalScheduleName?: true
18972
+ createdAt?: true
18973
+ updatedAt?: true
18974
+ _all?: true
18975
+ }
18976
+
18977
+ export type ScriptScheduleAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18978
+ /**
18979
+ * Filter which ScriptSchedule to aggregate.
18980
+ */
18981
+ where?: ScriptScheduleWhereInput
18982
+ /**
18983
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
18984
+ *
18985
+ * Determine the order of ScriptSchedules to fetch.
18986
+ */
18987
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
18988
+ /**
18989
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
18990
+ *
18991
+ * Sets the start position
18992
+ */
18993
+ cursor?: ScriptScheduleWhereUniqueInput
18994
+ /**
18995
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18996
+ *
18997
+ * Take `±n` ScriptSchedules from the position of the cursor.
18998
+ */
18999
+ take?: number
19000
+ /**
19001
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19002
+ *
19003
+ * Skip the first `n` ScriptSchedules.
19004
+ */
19005
+ skip?: number
19006
+ /**
19007
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19008
+ *
19009
+ * Count returned ScriptSchedules
19010
+ **/
19011
+ _count?: true | ScriptScheduleCountAggregateInputType
19012
+ /**
19013
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19014
+ *
19015
+ * Select which fields to average
19016
+ **/
19017
+ _avg?: ScriptScheduleAvgAggregateInputType
19018
+ /**
19019
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19020
+ *
19021
+ * Select which fields to sum
19022
+ **/
19023
+ _sum?: ScriptScheduleSumAggregateInputType
19024
+ /**
19025
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19026
+ *
19027
+ * Select which fields to find the minimum value
19028
+ **/
19029
+ _min?: ScriptScheduleMinAggregateInputType
19030
+ /**
19031
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19032
+ *
19033
+ * Select which fields to find the maximum value
19034
+ **/
19035
+ _max?: ScriptScheduleMaxAggregateInputType
19036
+ }
19037
+
19038
+ export type GetScriptScheduleAggregateType<T extends ScriptScheduleAggregateArgs> = {
19039
+ [P in keyof T & keyof AggregateScriptSchedule]: P extends '_count' | 'count'
19040
+ ? T[P] extends true
19041
+ ? number
19042
+ : GetScalarType<T[P], AggregateScriptSchedule[P]>
19043
+ : GetScalarType<T[P], AggregateScriptSchedule[P]>
19044
+ }
19045
+
19046
+
19047
+
19048
+
19049
+ export type ScriptScheduleGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19050
+ where?: ScriptScheduleWhereInput
19051
+ orderBy?: ScriptScheduleOrderByWithAggregationInput | ScriptScheduleOrderByWithAggregationInput[]
19052
+ by: ScriptScheduleScalarFieldEnum[] | ScriptScheduleScalarFieldEnum
19053
+ having?: ScriptScheduleScalarWhereWithAggregatesInput
19054
+ take?: number
19055
+ skip?: number
19056
+ _count?: ScriptScheduleCountAggregateInputType | true
19057
+ _avg?: ScriptScheduleAvgAggregateInputType
19058
+ _sum?: ScriptScheduleSumAggregateInputType
19059
+ _min?: ScriptScheduleMinAggregateInputType
19060
+ _max?: ScriptScheduleMaxAggregateInputType
19061
+ }
19062
+
19063
+ export type ScriptScheduleGroupByOutputType = {
19064
+ id: number
19065
+ scriptName: string
19066
+ enabled: boolean
19067
+ cronExpression: string | null
19068
+ timezone: string
19069
+ lastTriggeredAt: Date | null
19070
+ nextTriggerAt: Date | null
19071
+ externalScheduleId: string | null
19072
+ externalScheduleName: string | null
19073
+ createdAt: Date
19074
+ updatedAt: Date
19075
+ _count: ScriptScheduleCountAggregateOutputType | null
19076
+ _avg: ScriptScheduleAvgAggregateOutputType | null
19077
+ _sum: ScriptScheduleSumAggregateOutputType | null
19078
+ _min: ScriptScheduleMinAggregateOutputType | null
19079
+ _max: ScriptScheduleMaxAggregateOutputType | null
19080
+ }
19081
+
19082
+ type GetScriptScheduleGroupByPayload<T extends ScriptScheduleGroupByArgs> = Prisma.PrismaPromise<
19083
+ Array<
19084
+ PickEnumerable<ScriptScheduleGroupByOutputType, T['by']> &
19085
+ {
19086
+ [P in ((keyof T) & (keyof ScriptScheduleGroupByOutputType))]: P extends '_count'
19087
+ ? T[P] extends boolean
19088
+ ? number
19089
+ : GetScalarType<T[P], ScriptScheduleGroupByOutputType[P]>
19090
+ : GetScalarType<T[P], ScriptScheduleGroupByOutputType[P]>
19091
+ }
19092
+ >
19093
+ >
19094
+
19095
+
19096
+ export type ScriptScheduleSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
19097
+ id?: boolean
19098
+ scriptName?: boolean
19099
+ enabled?: boolean
19100
+ cronExpression?: boolean
19101
+ timezone?: boolean
19102
+ lastTriggeredAt?: boolean
19103
+ nextTriggerAt?: boolean
19104
+ externalScheduleId?: boolean
19105
+ externalScheduleName?: boolean
19106
+ createdAt?: boolean
19107
+ updatedAt?: boolean
19108
+ }, ExtArgs["result"]["scriptSchedule"]>
19109
+
19110
+ export type ScriptScheduleSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
19111
+ id?: boolean
19112
+ scriptName?: boolean
19113
+ enabled?: boolean
19114
+ cronExpression?: boolean
19115
+ timezone?: boolean
19116
+ lastTriggeredAt?: boolean
19117
+ nextTriggerAt?: boolean
19118
+ externalScheduleId?: boolean
19119
+ externalScheduleName?: boolean
19120
+ createdAt?: boolean
19121
+ updatedAt?: boolean
19122
+ }, ExtArgs["result"]["scriptSchedule"]>
19123
+
19124
+ export type ScriptScheduleSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
19125
+ id?: boolean
19126
+ scriptName?: boolean
19127
+ enabled?: boolean
19128
+ cronExpression?: boolean
19129
+ timezone?: boolean
19130
+ lastTriggeredAt?: boolean
19131
+ nextTriggerAt?: boolean
19132
+ externalScheduleId?: boolean
19133
+ externalScheduleName?: boolean
19134
+ createdAt?: boolean
19135
+ updatedAt?: boolean
19136
+ }, ExtArgs["result"]["scriptSchedule"]>
19137
+
19138
+ export type ScriptScheduleSelectScalar = {
19139
+ id?: boolean
19140
+ scriptName?: boolean
19141
+ enabled?: boolean
19142
+ cronExpression?: boolean
19143
+ timezone?: boolean
19144
+ lastTriggeredAt?: boolean
19145
+ nextTriggerAt?: boolean
19146
+ externalScheduleId?: boolean
19147
+ externalScheduleName?: boolean
19148
+ createdAt?: boolean
19149
+ updatedAt?: boolean
19150
+ }
19151
+
19152
+ export type ScriptScheduleOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "scriptName" | "enabled" | "cronExpression" | "timezone" | "lastTriggeredAt" | "nextTriggerAt" | "externalScheduleId" | "externalScheduleName" | "createdAt" | "updatedAt", ExtArgs["result"]["scriptSchedule"]>
19153
+
19154
+ export type $ScriptSchedulePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19155
+ name: "ScriptSchedule"
19156
+ objects: {}
19157
+ scalars: $Extensions.GetPayloadResult<{
19158
+ id: number
19159
+ scriptName: string
19160
+ enabled: boolean
19161
+ cronExpression: string | null
19162
+ timezone: string
19163
+ lastTriggeredAt: Date | null
19164
+ nextTriggerAt: Date | null
19165
+ externalScheduleId: string | null
19166
+ externalScheduleName: string | null
19167
+ createdAt: Date
19168
+ updatedAt: Date
19169
+ }, ExtArgs["result"]["scriptSchedule"]>
19170
+ composites: {}
19171
+ }
19172
+
19173
+ type ScriptScheduleGetPayload<S extends boolean | null | undefined | ScriptScheduleDefaultArgs> = $Result.GetResult<Prisma.$ScriptSchedulePayload, S>
19174
+
19175
+ type ScriptScheduleCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
19176
+ Omit<ScriptScheduleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
19177
+ select?: ScriptScheduleCountAggregateInputType | true
19178
+ }
19179
+
19180
+ export interface ScriptScheduleDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
19181
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ScriptSchedule'], meta: { name: 'ScriptSchedule' } }
19182
+ /**
19183
+ * Find zero or one ScriptSchedule that matches the filter.
19184
+ * @param {ScriptScheduleFindUniqueArgs} args - Arguments to find a ScriptSchedule
19185
+ * @example
19186
+ * // Get one ScriptSchedule
19187
+ * const scriptSchedule = await prisma.scriptSchedule.findUnique({
19188
+ * where: {
19189
+ * // ... provide filter here
19190
+ * }
19191
+ * })
19192
+ */
19193
+ findUnique<T extends ScriptScheduleFindUniqueArgs>(args: SelectSubset<T, ScriptScheduleFindUniqueArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
19194
+
19195
+ /**
19196
+ * Find one ScriptSchedule that matches the filter or throw an error with `error.code='P2025'`
19197
+ * if no matches were found.
19198
+ * @param {ScriptScheduleFindUniqueOrThrowArgs} args - Arguments to find a ScriptSchedule
19199
+ * @example
19200
+ * // Get one ScriptSchedule
19201
+ * const scriptSchedule = await prisma.scriptSchedule.findUniqueOrThrow({
19202
+ * where: {
19203
+ * // ... provide filter here
19204
+ * }
19205
+ * })
19206
+ */
19207
+ findUniqueOrThrow<T extends ScriptScheduleFindUniqueOrThrowArgs>(args: SelectSubset<T, ScriptScheduleFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19208
+
19209
+ /**
19210
+ * Find the first ScriptSchedule that matches the filter.
19211
+ * Note, that providing `undefined` is treated as the value not being there.
19212
+ * Read more here: https://pris.ly/d/null-undefined
19213
+ * @param {ScriptScheduleFindFirstArgs} args - Arguments to find a ScriptSchedule
19214
+ * @example
19215
+ * // Get one ScriptSchedule
19216
+ * const scriptSchedule = await prisma.scriptSchedule.findFirst({
19217
+ * where: {
19218
+ * // ... provide filter here
19219
+ * }
19220
+ * })
19221
+ */
19222
+ findFirst<T extends ScriptScheduleFindFirstArgs>(args?: SelectSubset<T, ScriptScheduleFindFirstArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
19223
+
19224
+ /**
19225
+ * Find the first ScriptSchedule that matches the filter or
19226
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
19227
+ * Note, that providing `undefined` is treated as the value not being there.
19228
+ * Read more here: https://pris.ly/d/null-undefined
19229
+ * @param {ScriptScheduleFindFirstOrThrowArgs} args - Arguments to find a ScriptSchedule
19230
+ * @example
19231
+ * // Get one ScriptSchedule
19232
+ * const scriptSchedule = await prisma.scriptSchedule.findFirstOrThrow({
19233
+ * where: {
19234
+ * // ... provide filter here
19235
+ * }
19236
+ * })
19237
+ */
19238
+ findFirstOrThrow<T extends ScriptScheduleFindFirstOrThrowArgs>(args?: SelectSubset<T, ScriptScheduleFindFirstOrThrowArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19239
+
19240
+ /**
19241
+ * Find zero or more ScriptSchedules that matches the filter.
19242
+ * Note, that providing `undefined` is treated as the value not being there.
19243
+ * Read more here: https://pris.ly/d/null-undefined
19244
+ * @param {ScriptScheduleFindManyArgs} args - Arguments to filter and select certain fields only.
19245
+ * @example
19246
+ * // Get all ScriptSchedules
19247
+ * const scriptSchedules = await prisma.scriptSchedule.findMany()
19248
+ *
19249
+ * // Get first 10 ScriptSchedules
19250
+ * const scriptSchedules = await prisma.scriptSchedule.findMany({ take: 10 })
19251
+ *
19252
+ * // Only select the `id`
19253
+ * const scriptScheduleWithIdOnly = await prisma.scriptSchedule.findMany({ select: { id: true } })
19254
+ *
19255
+ */
19256
+ findMany<T extends ScriptScheduleFindManyArgs>(args?: SelectSubset<T, ScriptScheduleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
19257
+
19258
+ /**
19259
+ * Create a ScriptSchedule.
19260
+ * @param {ScriptScheduleCreateArgs} args - Arguments to create a ScriptSchedule.
19261
+ * @example
19262
+ * // Create one ScriptSchedule
19263
+ * const ScriptSchedule = await prisma.scriptSchedule.create({
19264
+ * data: {
19265
+ * // ... data to create a ScriptSchedule
19266
+ * }
19267
+ * })
19268
+ *
19269
+ */
19270
+ create<T extends ScriptScheduleCreateArgs>(args: SelectSubset<T, ScriptScheduleCreateArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19271
+
19272
+ /**
19273
+ * Create many ScriptSchedules.
19274
+ * @param {ScriptScheduleCreateManyArgs} args - Arguments to create many ScriptSchedules.
19275
+ * @example
19276
+ * // Create many ScriptSchedules
19277
+ * const scriptSchedule = await prisma.scriptSchedule.createMany({
19278
+ * data: [
19279
+ * // ... provide data here
19280
+ * ]
19281
+ * })
19282
+ *
19283
+ */
19284
+ createMany<T extends ScriptScheduleCreateManyArgs>(args?: SelectSubset<T, ScriptScheduleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
19285
+
19286
+ /**
19287
+ * Create many ScriptSchedules and returns the data saved in the database.
19288
+ * @param {ScriptScheduleCreateManyAndReturnArgs} args - Arguments to create many ScriptSchedules.
19289
+ * @example
19290
+ * // Create many ScriptSchedules
19291
+ * const scriptSchedule = await prisma.scriptSchedule.createManyAndReturn({
19292
+ * data: [
19293
+ * // ... provide data here
19294
+ * ]
19295
+ * })
19296
+ *
19297
+ * // Create many ScriptSchedules and only return the `id`
19298
+ * const scriptScheduleWithIdOnly = await prisma.scriptSchedule.createManyAndReturn({
19299
+ * select: { id: true },
19300
+ * data: [
19301
+ * // ... provide data here
19302
+ * ]
19303
+ * })
19304
+ * Note, that providing `undefined` is treated as the value not being there.
19305
+ * Read more here: https://pris.ly/d/null-undefined
19306
+ *
19307
+ */
19308
+ createManyAndReturn<T extends ScriptScheduleCreateManyAndReturnArgs>(args?: SelectSubset<T, ScriptScheduleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
19309
+
19310
+ /**
19311
+ * Delete a ScriptSchedule.
19312
+ * @param {ScriptScheduleDeleteArgs} args - Arguments to delete one ScriptSchedule.
19313
+ * @example
19314
+ * // Delete one ScriptSchedule
19315
+ * const ScriptSchedule = await prisma.scriptSchedule.delete({
19316
+ * where: {
19317
+ * // ... filter to delete one ScriptSchedule
19318
+ * }
19319
+ * })
19320
+ *
19321
+ */
19322
+ delete<T extends ScriptScheduleDeleteArgs>(args: SelectSubset<T, ScriptScheduleDeleteArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19323
+
19324
+ /**
19325
+ * Update one ScriptSchedule.
19326
+ * @param {ScriptScheduleUpdateArgs} args - Arguments to update one ScriptSchedule.
19327
+ * @example
19328
+ * // Update one ScriptSchedule
19329
+ * const scriptSchedule = await prisma.scriptSchedule.update({
19330
+ * where: {
19331
+ * // ... provide filter here
19332
+ * },
19333
+ * data: {
19334
+ * // ... provide data here
19335
+ * }
19336
+ * })
19337
+ *
19338
+ */
19339
+ update<T extends ScriptScheduleUpdateArgs>(args: SelectSubset<T, ScriptScheduleUpdateArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19340
+
19341
+ /**
19342
+ * Delete zero or more ScriptSchedules.
19343
+ * @param {ScriptScheduleDeleteManyArgs} args - Arguments to filter ScriptSchedules to delete.
19344
+ * @example
19345
+ * // Delete a few ScriptSchedules
19346
+ * const { count } = await prisma.scriptSchedule.deleteMany({
19347
+ * where: {
19348
+ * // ... provide filter here
19349
+ * }
19350
+ * })
19351
+ *
19352
+ */
19353
+ deleteMany<T extends ScriptScheduleDeleteManyArgs>(args?: SelectSubset<T, ScriptScheduleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
19354
+
19355
+ /**
19356
+ * Update zero or more ScriptSchedules.
19357
+ * Note, that providing `undefined` is treated as the value not being there.
19358
+ * Read more here: https://pris.ly/d/null-undefined
19359
+ * @param {ScriptScheduleUpdateManyArgs} args - Arguments to update one or more rows.
19360
+ * @example
19361
+ * // Update many ScriptSchedules
19362
+ * const scriptSchedule = await prisma.scriptSchedule.updateMany({
19363
+ * where: {
19364
+ * // ... provide filter here
19365
+ * },
19366
+ * data: {
19367
+ * // ... provide data here
19368
+ * }
19369
+ * })
19370
+ *
19371
+ */
19372
+ updateMany<T extends ScriptScheduleUpdateManyArgs>(args: SelectSubset<T, ScriptScheduleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
19373
+
19374
+ /**
19375
+ * Update zero or more ScriptSchedules and returns the data updated in the database.
19376
+ * @param {ScriptScheduleUpdateManyAndReturnArgs} args - Arguments to update many ScriptSchedules.
19377
+ * @example
19378
+ * // Update many ScriptSchedules
19379
+ * const scriptSchedule = await prisma.scriptSchedule.updateManyAndReturn({
19380
+ * where: {
19381
+ * // ... provide filter here
19382
+ * },
19383
+ * data: [
19384
+ * // ... provide data here
19385
+ * ]
19386
+ * })
19387
+ *
19388
+ * // Update zero or more ScriptSchedules and only return the `id`
19389
+ * const scriptScheduleWithIdOnly = await prisma.scriptSchedule.updateManyAndReturn({
19390
+ * select: { id: true },
19391
+ * where: {
19392
+ * // ... provide filter here
19393
+ * },
19394
+ * data: [
19395
+ * // ... provide data here
19396
+ * ]
19397
+ * })
19398
+ * Note, that providing `undefined` is treated as the value not being there.
19399
+ * Read more here: https://pris.ly/d/null-undefined
19400
+ *
19401
+ */
19402
+ updateManyAndReturn<T extends ScriptScheduleUpdateManyAndReturnArgs>(args: SelectSubset<T, ScriptScheduleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
19403
+
19404
+ /**
19405
+ * Create or update one ScriptSchedule.
19406
+ * @param {ScriptScheduleUpsertArgs} args - Arguments to update or create a ScriptSchedule.
19407
+ * @example
19408
+ * // Update or create a ScriptSchedule
19409
+ * const scriptSchedule = await prisma.scriptSchedule.upsert({
19410
+ * create: {
19411
+ * // ... data to create a ScriptSchedule
19412
+ * },
19413
+ * update: {
19414
+ * // ... in case it already exists, update
19415
+ * },
19416
+ * where: {
19417
+ * // ... the filter for the ScriptSchedule we want to update
19418
+ * }
19419
+ * })
19420
+ */
19421
+ upsert<T extends ScriptScheduleUpsertArgs>(args: SelectSubset<T, ScriptScheduleUpsertArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19422
+
19423
+
19424
+ /**
19425
+ * Count the number of ScriptSchedules.
19426
+ * Note, that providing `undefined` is treated as the value not being there.
19427
+ * Read more here: https://pris.ly/d/null-undefined
19428
+ * @param {ScriptScheduleCountArgs} args - Arguments to filter ScriptSchedules to count.
19429
+ * @example
19430
+ * // Count the number of ScriptSchedules
19431
+ * const count = await prisma.scriptSchedule.count({
19432
+ * where: {
19433
+ * // ... the filter for the ScriptSchedules we want to count
19434
+ * }
19435
+ * })
19436
+ **/
19437
+ count<T extends ScriptScheduleCountArgs>(
19438
+ args?: Subset<T, ScriptScheduleCountArgs>,
19439
+ ): Prisma.PrismaPromise<
19440
+ T extends $Utils.Record<'select', any>
19441
+ ? T['select'] extends true
19442
+ ? number
19443
+ : GetScalarType<T['select'], ScriptScheduleCountAggregateOutputType>
19444
+ : number
19445
+ >
19446
+
19447
+ /**
19448
+ * Allows you to perform aggregations operations on a ScriptSchedule.
19449
+ * Note, that providing `undefined` is treated as the value not being there.
19450
+ * Read more here: https://pris.ly/d/null-undefined
19451
+ * @param {ScriptScheduleAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
19452
+ * @example
19453
+ * // Ordered by age ascending
19454
+ * // Where email contains prisma.io
19455
+ * // Limited to the 10 users
19456
+ * const aggregations = await prisma.user.aggregate({
19457
+ * _avg: {
19458
+ * age: true,
19459
+ * },
19460
+ * where: {
19461
+ * email: {
19462
+ * contains: "prisma.io",
19463
+ * },
19464
+ * },
19465
+ * orderBy: {
19466
+ * age: "asc",
19467
+ * },
19468
+ * take: 10,
19469
+ * })
19470
+ **/
19471
+ aggregate<T extends ScriptScheduleAggregateArgs>(args: Subset<T, ScriptScheduleAggregateArgs>): Prisma.PrismaPromise<GetScriptScheduleAggregateType<T>>
19472
+
19473
+ /**
19474
+ * Group by ScriptSchedule.
19475
+ * Note, that providing `undefined` is treated as the value not being there.
19476
+ * Read more here: https://pris.ly/d/null-undefined
19477
+ * @param {ScriptScheduleGroupByArgs} args - Group by arguments.
19478
+ * @example
19479
+ * // Group by city, order by createdAt, get count
19480
+ * const result = await prisma.user.groupBy({
19481
+ * by: ['city', 'createdAt'],
19482
+ * orderBy: {
19483
+ * createdAt: true
19484
+ * },
19485
+ * _count: {
19486
+ * _all: true
19487
+ * },
19488
+ * })
19489
+ *
19490
+ **/
19491
+ groupBy<
19492
+ T extends ScriptScheduleGroupByArgs,
19493
+ HasSelectOrTake extends Or<
19494
+ Extends<'skip', Keys<T>>,
19495
+ Extends<'take', Keys<T>>
19496
+ >,
19497
+ OrderByArg extends True extends HasSelectOrTake
19498
+ ? { orderBy: ScriptScheduleGroupByArgs['orderBy'] }
19499
+ : { orderBy?: ScriptScheduleGroupByArgs['orderBy'] },
19500
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
19501
+ ByFields extends MaybeTupleToUnion<T['by']>,
19502
+ ByValid extends Has<ByFields, OrderFields>,
19503
+ HavingFields extends GetHavingFields<T['having']>,
19504
+ HavingValid extends Has<ByFields, HavingFields>,
19505
+ ByEmpty extends T['by'] extends never[] ? True : False,
19506
+ InputErrors extends ByEmpty extends True
19507
+ ? `Error: "by" must not be empty.`
19508
+ : HavingValid extends False
19509
+ ? {
19510
+ [P in HavingFields]: P extends ByFields
19511
+ ? never
19512
+ : P extends string
19513
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
19514
+ : [
19515
+ Error,
19516
+ 'Field ',
19517
+ P,
19518
+ ` in "having" needs to be provided in "by"`,
19519
+ ]
19520
+ }[HavingFields]
19521
+ : 'take' extends Keys<T>
19522
+ ? 'orderBy' extends Keys<T>
19523
+ ? ByValid extends True
19524
+ ? {}
19525
+ : {
19526
+ [P in OrderFields]: P extends ByFields
19527
+ ? never
19528
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
19529
+ }[OrderFields]
19530
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
19531
+ : 'skip' extends Keys<T>
19532
+ ? 'orderBy' extends Keys<T>
19533
+ ? ByValid extends True
19534
+ ? {}
19535
+ : {
19536
+ [P in OrderFields]: P extends ByFields
19537
+ ? never
19538
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
19539
+ }[OrderFields]
19540
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
19541
+ : ByValid extends True
19542
+ ? {}
19543
+ : {
19544
+ [P in OrderFields]: P extends ByFields
19545
+ ? never
19546
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
19547
+ }[OrderFields]
19548
+ >(args: SubsetIntersection<T, ScriptScheduleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetScriptScheduleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
19549
+ /**
19550
+ * Fields of the ScriptSchedule model
19551
+ */
19552
+ readonly fields: ScriptScheduleFieldRefs;
19553
+ }
19554
+
19555
+ /**
19556
+ * The delegate class that acts as a "Promise-like" for ScriptSchedule.
19557
+ * Why is this prefixed with `Prisma__`?
19558
+ * Because we want to prevent naming conflicts as mentioned in
19559
+ * https://github.com/prisma/prisma-client-js/issues/707
19560
+ */
19561
+ export interface Prisma__ScriptScheduleClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
19562
+ readonly [Symbol.toStringTag]: "PrismaPromise"
19563
+ /**
19564
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
19565
+ * @param onfulfilled The callback to execute when the Promise is resolved.
19566
+ * @param onrejected The callback to execute when the Promise is rejected.
19567
+ * @returns A Promise for the completion of which ever callback is executed.
19568
+ */
19569
+ 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>
19570
+ /**
19571
+ * Attaches a callback for only the rejection of the Promise.
19572
+ * @param onrejected The callback to execute when the Promise is rejected.
19573
+ * @returns A Promise for the completion of the callback.
19574
+ */
19575
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
19576
+ /**
19577
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
19578
+ * resolved value cannot be modified from the callback.
19579
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
19580
+ * @returns A Promise for the completion of the callback.
19581
+ */
19582
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
19583
+ }
19584
+
19585
+
19586
+
19587
+
19588
+ /**
19589
+ * Fields of the ScriptSchedule model
19590
+ */
19591
+ interface ScriptScheduleFieldRefs {
19592
+ readonly id: FieldRef<"ScriptSchedule", 'Int'>
19593
+ readonly scriptName: FieldRef<"ScriptSchedule", 'String'>
19594
+ readonly enabled: FieldRef<"ScriptSchedule", 'Boolean'>
19595
+ readonly cronExpression: FieldRef<"ScriptSchedule", 'String'>
19596
+ readonly timezone: FieldRef<"ScriptSchedule", 'String'>
19597
+ readonly lastTriggeredAt: FieldRef<"ScriptSchedule", 'DateTime'>
19598
+ readonly nextTriggerAt: FieldRef<"ScriptSchedule", 'DateTime'>
19599
+ readonly externalScheduleId: FieldRef<"ScriptSchedule", 'String'>
19600
+ readonly externalScheduleName: FieldRef<"ScriptSchedule", 'String'>
19601
+ readonly createdAt: FieldRef<"ScriptSchedule", 'DateTime'>
19602
+ readonly updatedAt: FieldRef<"ScriptSchedule", 'DateTime'>
19603
+ }
19604
+
19605
+
19606
+ // Custom InputTypes
19607
+ /**
19608
+ * ScriptSchedule findUnique
19609
+ */
19610
+ export type ScriptScheduleFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19611
+ /**
19612
+ * Select specific fields to fetch from the ScriptSchedule
19613
+ */
19614
+ select?: ScriptScheduleSelect<ExtArgs> | null
19615
+ /**
19616
+ * Omit specific fields from the ScriptSchedule
19617
+ */
19618
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19619
+ /**
19620
+ * Filter, which ScriptSchedule to fetch.
19621
+ */
19622
+ where: ScriptScheduleWhereUniqueInput
19623
+ }
19624
+
19625
+ /**
19626
+ * ScriptSchedule findUniqueOrThrow
19627
+ */
19628
+ export type ScriptScheduleFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19629
+ /**
19630
+ * Select specific fields to fetch from the ScriptSchedule
19631
+ */
19632
+ select?: ScriptScheduleSelect<ExtArgs> | null
19633
+ /**
19634
+ * Omit specific fields from the ScriptSchedule
19635
+ */
19636
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19637
+ /**
19638
+ * Filter, which ScriptSchedule to fetch.
19639
+ */
19640
+ where: ScriptScheduleWhereUniqueInput
19641
+ }
19642
+
19643
+ /**
19644
+ * ScriptSchedule findFirst
19645
+ */
19646
+ export type ScriptScheduleFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19647
+ /**
19648
+ * Select specific fields to fetch from the ScriptSchedule
19649
+ */
19650
+ select?: ScriptScheduleSelect<ExtArgs> | null
19651
+ /**
19652
+ * Omit specific fields from the ScriptSchedule
19653
+ */
19654
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19655
+ /**
19656
+ * Filter, which ScriptSchedule to fetch.
19657
+ */
19658
+ where?: ScriptScheduleWhereInput
19659
+ /**
19660
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
19661
+ *
19662
+ * Determine the order of ScriptSchedules to fetch.
19663
+ */
19664
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
19665
+ /**
19666
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
19667
+ *
19668
+ * Sets the position for searching for ScriptSchedules.
19669
+ */
19670
+ cursor?: ScriptScheduleWhereUniqueInput
19671
+ /**
19672
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19673
+ *
19674
+ * Take `±n` ScriptSchedules from the position of the cursor.
19675
+ */
19676
+ take?: number
19677
+ /**
19678
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19679
+ *
19680
+ * Skip the first `n` ScriptSchedules.
19681
+ */
19682
+ skip?: number
19683
+ /**
19684
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
19685
+ *
19686
+ * Filter by unique combinations of ScriptSchedules.
19687
+ */
19688
+ distinct?: ScriptScheduleScalarFieldEnum | ScriptScheduleScalarFieldEnum[]
19689
+ }
19690
+
19691
+ /**
19692
+ * ScriptSchedule findFirstOrThrow
19693
+ */
19694
+ export type ScriptScheduleFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19695
+ /**
19696
+ * Select specific fields to fetch from the ScriptSchedule
19697
+ */
19698
+ select?: ScriptScheduleSelect<ExtArgs> | null
19699
+ /**
19700
+ * Omit specific fields from the ScriptSchedule
19701
+ */
19702
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19703
+ /**
19704
+ * Filter, which ScriptSchedule to fetch.
19705
+ */
19706
+ where?: ScriptScheduleWhereInput
19707
+ /**
19708
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
19709
+ *
19710
+ * Determine the order of ScriptSchedules to fetch.
19711
+ */
19712
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
19713
+ /**
19714
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
19715
+ *
19716
+ * Sets the position for searching for ScriptSchedules.
19717
+ */
19718
+ cursor?: ScriptScheduleWhereUniqueInput
19719
+ /**
19720
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19721
+ *
19722
+ * Take `±n` ScriptSchedules from the position of the cursor.
19723
+ */
19724
+ take?: number
19725
+ /**
19726
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19727
+ *
19728
+ * Skip the first `n` ScriptSchedules.
19729
+ */
19730
+ skip?: number
19731
+ /**
19732
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
19733
+ *
19734
+ * Filter by unique combinations of ScriptSchedules.
19735
+ */
19736
+ distinct?: ScriptScheduleScalarFieldEnum | ScriptScheduleScalarFieldEnum[]
19737
+ }
19738
+
19739
+ /**
19740
+ * ScriptSchedule findMany
19741
+ */
19742
+ export type ScriptScheduleFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19743
+ /**
19744
+ * Select specific fields to fetch from the ScriptSchedule
19745
+ */
19746
+ select?: ScriptScheduleSelect<ExtArgs> | null
19747
+ /**
19748
+ * Omit specific fields from the ScriptSchedule
19749
+ */
19750
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19751
+ /**
19752
+ * Filter, which ScriptSchedules to fetch.
19753
+ */
19754
+ where?: ScriptScheduleWhereInput
19755
+ /**
19756
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
19757
+ *
19758
+ * Determine the order of ScriptSchedules to fetch.
19759
+ */
19760
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
19761
+ /**
19762
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
19763
+ *
19764
+ * Sets the position for listing ScriptSchedules.
19765
+ */
19766
+ cursor?: ScriptScheduleWhereUniqueInput
19767
+ /**
19768
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19769
+ *
19770
+ * Take `±n` ScriptSchedules from the position of the cursor.
19771
+ */
19772
+ take?: number
19773
+ /**
19774
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19775
+ *
19776
+ * Skip the first `n` ScriptSchedules.
19777
+ */
19778
+ skip?: number
19779
+ distinct?: ScriptScheduleScalarFieldEnum | ScriptScheduleScalarFieldEnum[]
19780
+ }
19781
+
19782
+ /**
19783
+ * ScriptSchedule create
19784
+ */
19785
+ export type ScriptScheduleCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19786
+ /**
19787
+ * Select specific fields to fetch from the ScriptSchedule
19788
+ */
19789
+ select?: ScriptScheduleSelect<ExtArgs> | null
19790
+ /**
19791
+ * Omit specific fields from the ScriptSchedule
19792
+ */
19793
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19794
+ /**
19795
+ * The data needed to create a ScriptSchedule.
19796
+ */
19797
+ data: XOR<ScriptScheduleCreateInput, ScriptScheduleUncheckedCreateInput>
19798
+ }
19799
+
19800
+ /**
19801
+ * ScriptSchedule createMany
19802
+ */
19803
+ export type ScriptScheduleCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19804
+ /**
19805
+ * The data used to create many ScriptSchedules.
19806
+ */
19807
+ data: ScriptScheduleCreateManyInput | ScriptScheduleCreateManyInput[]
19808
+ skipDuplicates?: boolean
19809
+ }
19810
+
19811
+ /**
19812
+ * ScriptSchedule createManyAndReturn
19813
+ */
19814
+ export type ScriptScheduleCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19815
+ /**
19816
+ * Select specific fields to fetch from the ScriptSchedule
19817
+ */
19818
+ select?: ScriptScheduleSelectCreateManyAndReturn<ExtArgs> | null
19819
+ /**
19820
+ * Omit specific fields from the ScriptSchedule
19821
+ */
19822
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19823
+ /**
19824
+ * The data used to create many ScriptSchedules.
19825
+ */
19826
+ data: ScriptScheduleCreateManyInput | ScriptScheduleCreateManyInput[]
19827
+ skipDuplicates?: boolean
19828
+ }
19829
+
19830
+ /**
19831
+ * ScriptSchedule update
19832
+ */
19833
+ export type ScriptScheduleUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19834
+ /**
19835
+ * Select specific fields to fetch from the ScriptSchedule
19836
+ */
19837
+ select?: ScriptScheduleSelect<ExtArgs> | null
19838
+ /**
19839
+ * Omit specific fields from the ScriptSchedule
19840
+ */
19841
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19842
+ /**
19843
+ * The data needed to update a ScriptSchedule.
19844
+ */
19845
+ data: XOR<ScriptScheduleUpdateInput, ScriptScheduleUncheckedUpdateInput>
19846
+ /**
19847
+ * Choose, which ScriptSchedule to update.
19848
+ */
19849
+ where: ScriptScheduleWhereUniqueInput
19850
+ }
19851
+
19852
+ /**
19853
+ * ScriptSchedule updateMany
19854
+ */
19855
+ export type ScriptScheduleUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19856
+ /**
19857
+ * The data used to update ScriptSchedules.
19858
+ */
19859
+ data: XOR<ScriptScheduleUpdateManyMutationInput, ScriptScheduleUncheckedUpdateManyInput>
19860
+ /**
19861
+ * Filter which ScriptSchedules to update
19862
+ */
19863
+ where?: ScriptScheduleWhereInput
19864
+ /**
19865
+ * Limit how many ScriptSchedules to update.
19866
+ */
19867
+ limit?: number
19868
+ }
19869
+
19870
+ /**
19871
+ * ScriptSchedule updateManyAndReturn
19872
+ */
19873
+ export type ScriptScheduleUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19874
+ /**
19875
+ * Select specific fields to fetch from the ScriptSchedule
19876
+ */
19877
+ select?: ScriptScheduleSelectUpdateManyAndReturn<ExtArgs> | null
19878
+ /**
19879
+ * Omit specific fields from the ScriptSchedule
19880
+ */
19881
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19882
+ /**
19883
+ * The data used to update ScriptSchedules.
19884
+ */
19885
+ data: XOR<ScriptScheduleUpdateManyMutationInput, ScriptScheduleUncheckedUpdateManyInput>
19886
+ /**
19887
+ * Filter which ScriptSchedules to update
19888
+ */
19889
+ where?: ScriptScheduleWhereInput
19890
+ /**
19891
+ * Limit how many ScriptSchedules to update.
19892
+ */
19893
+ limit?: number
19894
+ }
19895
+
19896
+ /**
19897
+ * ScriptSchedule upsert
19898
+ */
19899
+ export type ScriptScheduleUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19900
+ /**
19901
+ * Select specific fields to fetch from the ScriptSchedule
19902
+ */
19903
+ select?: ScriptScheduleSelect<ExtArgs> | null
19904
+ /**
19905
+ * Omit specific fields from the ScriptSchedule
19906
+ */
19907
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19908
+ /**
19909
+ * The filter to search for the ScriptSchedule to update in case it exists.
19910
+ */
19911
+ where: ScriptScheduleWhereUniqueInput
19912
+ /**
19913
+ * In case the ScriptSchedule found by the `where` argument doesn't exist, create a new ScriptSchedule with this data.
19914
+ */
19915
+ create: XOR<ScriptScheduleCreateInput, ScriptScheduleUncheckedCreateInput>
19916
+ /**
19917
+ * In case the ScriptSchedule was found with the provided `where` argument, update it with this data.
19918
+ */
19919
+ update: XOR<ScriptScheduleUpdateInput, ScriptScheduleUncheckedUpdateInput>
19920
+ }
19921
+
19922
+ /**
19923
+ * ScriptSchedule delete
19924
+ */
19925
+ export type ScriptScheduleDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19926
+ /**
19927
+ * Select specific fields to fetch from the ScriptSchedule
19928
+ */
19929
+ select?: ScriptScheduleSelect<ExtArgs> | null
19930
+ /**
19931
+ * Omit specific fields from the ScriptSchedule
19932
+ */
19933
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19934
+ /**
19935
+ * Filter which ScriptSchedule to delete.
19936
+ */
19937
+ where: ScriptScheduleWhereUniqueInput
19938
+ }
19939
+
19940
+ /**
19941
+ * ScriptSchedule deleteMany
19942
+ */
19943
+ export type ScriptScheduleDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19944
+ /**
19945
+ * Filter which ScriptSchedules to delete
19946
+ */
19947
+ where?: ScriptScheduleWhereInput
19948
+ /**
19949
+ * Limit how many ScriptSchedules to delete.
19950
+ */
19951
+ limit?: number
19952
+ }
19953
+
19954
+ /**
19955
+ * ScriptSchedule without action
19956
+ */
19957
+ export type ScriptScheduleDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19958
+ /**
19959
+ * Select specific fields to fetch from the ScriptSchedule
19960
+ */
19961
+ select?: ScriptScheduleSelect<ExtArgs> | null
19962
+ /**
19963
+ * Omit specific fields from the ScriptSchedule
19964
+ */
19965
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19966
+ }
19967
+
19968
+
19969
+ /**
19970
+ * Enums
19971
+ */
19972
+
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]
19981
+
19982
+
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
+ };
19996
+
19997
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
19998
+
19999
+
20000
+ export const TokenScalarFieldEnum: {
20001
+ id: 'id',
20002
+ token: 'token',
20003
+ created: 'created',
20004
+ expires: 'expires',
20005
+ userId: 'userId'
20006
+ };
20007
+
20008
+ export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
20009
+
20010
+
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
+ };
20020
+
20021
+ export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
20022
+
20023
+
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
+ };
20035
+
20036
+ export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
20037
+
20038
+
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',
17509
20047
  info: 'info',
17510
20048
  logs: 'logs',
17511
20049
  createdAt: 'createdAt',
@@ -17604,6 +20142,38 @@ export namespace Prisma {
17604
20142
  export type WebsocketConnectionScalarFieldEnum = (typeof WebsocketConnectionScalarFieldEnum)[keyof typeof WebsocketConnectionScalarFieldEnum]
17605
20143
 
17606
20144
 
20145
+ export const AdminProcessScalarFieldEnum: {
20146
+ id: 'id',
20147
+ name: 'name',
20148
+ type: 'type',
20149
+ state: 'state',
20150
+ context: 'context',
20151
+ results: 'results',
20152
+ parentProcessId: 'parentProcessId',
20153
+ createdAt: 'createdAt',
20154
+ updatedAt: 'updatedAt'
20155
+ };
20156
+
20157
+ export type AdminProcessScalarFieldEnum = (typeof AdminProcessScalarFieldEnum)[keyof typeof AdminProcessScalarFieldEnum]
20158
+
20159
+
20160
+ export const ScriptScheduleScalarFieldEnum: {
20161
+ id: 'id',
20162
+ scriptName: 'scriptName',
20163
+ enabled: 'enabled',
20164
+ cronExpression: 'cronExpression',
20165
+ timezone: 'timezone',
20166
+ lastTriggeredAt: 'lastTriggeredAt',
20167
+ nextTriggerAt: 'nextTriggerAt',
20168
+ externalScheduleId: 'externalScheduleId',
20169
+ externalScheduleName: 'externalScheduleName',
20170
+ createdAt: 'createdAt',
20171
+ updatedAt: 'updatedAt'
20172
+ };
20173
+
20174
+ export type ScriptScheduleScalarFieldEnum = (typeof ScriptScheduleScalarFieldEnum)[keyof typeof ScriptScheduleScalarFieldEnum]
20175
+
20176
+
17607
20177
  export const SortOrder: {
17608
20178
  asc: 'asc',
17609
20179
  desc: 'desc'
@@ -17762,6 +20332,20 @@ export namespace Prisma {
17762
20332
 
17763
20333
 
17764
20334
 
20335
+ /**
20336
+ * Reference to a field of type 'AdminProcessState'
20337
+ */
20338
+ export type EnumAdminProcessStateFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AdminProcessState'>
20339
+
20340
+
20341
+
20342
+ /**
20343
+ * Reference to a field of type 'AdminProcessState[]'
20344
+ */
20345
+ export type ListEnumAdminProcessStateFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AdminProcessState[]'>
20346
+
20347
+
20348
+
17765
20349
  /**
17766
20350
  * Reference to a field of type 'Float'
17767
20351
  */
@@ -18686,6 +21270,170 @@ export namespace Prisma {
18686
21270
  connectionId?: StringNullableWithAggregatesFilter<"WebsocketConnection"> | string | null
18687
21271
  }
18688
21272
 
21273
+ export type AdminProcessWhereInput = {
21274
+ AND?: AdminProcessWhereInput | AdminProcessWhereInput[]
21275
+ OR?: AdminProcessWhereInput[]
21276
+ NOT?: AdminProcessWhereInput | AdminProcessWhereInput[]
21277
+ id?: IntFilter<"AdminProcess"> | number
21278
+ name?: StringFilter<"AdminProcess"> | string
21279
+ type?: StringFilter<"AdminProcess"> | string
21280
+ state?: EnumAdminProcessStateFilter<"AdminProcess"> | $Enums.AdminProcessState
21281
+ context?: JsonFilter<"AdminProcess">
21282
+ results?: JsonFilter<"AdminProcess">
21283
+ parentProcessId?: IntNullableFilter<"AdminProcess"> | number | null
21284
+ createdAt?: DateTimeFilter<"AdminProcess"> | Date | string
21285
+ updatedAt?: DateTimeFilter<"AdminProcess"> | Date | string
21286
+ parentProcess?: XOR<AdminProcessNullableScalarRelationFilter, AdminProcessWhereInput> | null
21287
+ childProcesses?: AdminProcessListRelationFilter
21288
+ }
21289
+
21290
+ export type AdminProcessOrderByWithRelationInput = {
21291
+ id?: SortOrder
21292
+ name?: SortOrder
21293
+ type?: SortOrder
21294
+ state?: SortOrder
21295
+ context?: SortOrder
21296
+ results?: SortOrder
21297
+ parentProcessId?: SortOrderInput | SortOrder
21298
+ createdAt?: SortOrder
21299
+ updatedAt?: SortOrder
21300
+ parentProcess?: AdminProcessOrderByWithRelationInput
21301
+ childProcesses?: AdminProcessOrderByRelationAggregateInput
21302
+ }
21303
+
21304
+ export type AdminProcessWhereUniqueInput = Prisma.AtLeast<{
21305
+ id?: number
21306
+ AND?: AdminProcessWhereInput | AdminProcessWhereInput[]
21307
+ OR?: AdminProcessWhereInput[]
21308
+ NOT?: AdminProcessWhereInput | AdminProcessWhereInput[]
21309
+ name?: StringFilter<"AdminProcess"> | string
21310
+ type?: StringFilter<"AdminProcess"> | string
21311
+ state?: EnumAdminProcessStateFilter<"AdminProcess"> | $Enums.AdminProcessState
21312
+ context?: JsonFilter<"AdminProcess">
21313
+ results?: JsonFilter<"AdminProcess">
21314
+ parentProcessId?: IntNullableFilter<"AdminProcess"> | number | null
21315
+ createdAt?: DateTimeFilter<"AdminProcess"> | Date | string
21316
+ updatedAt?: DateTimeFilter<"AdminProcess"> | Date | string
21317
+ parentProcess?: XOR<AdminProcessNullableScalarRelationFilter, AdminProcessWhereInput> | null
21318
+ childProcesses?: AdminProcessListRelationFilter
21319
+ }, "id">
21320
+
21321
+ export type AdminProcessOrderByWithAggregationInput = {
21322
+ id?: SortOrder
21323
+ name?: SortOrder
21324
+ type?: SortOrder
21325
+ state?: SortOrder
21326
+ context?: SortOrder
21327
+ results?: SortOrder
21328
+ parentProcessId?: SortOrderInput | SortOrder
21329
+ createdAt?: SortOrder
21330
+ updatedAt?: SortOrder
21331
+ _count?: AdminProcessCountOrderByAggregateInput
21332
+ _avg?: AdminProcessAvgOrderByAggregateInput
21333
+ _max?: AdminProcessMaxOrderByAggregateInput
21334
+ _min?: AdminProcessMinOrderByAggregateInput
21335
+ _sum?: AdminProcessSumOrderByAggregateInput
21336
+ }
21337
+
21338
+ export type AdminProcessScalarWhereWithAggregatesInput = {
21339
+ AND?: AdminProcessScalarWhereWithAggregatesInput | AdminProcessScalarWhereWithAggregatesInput[]
21340
+ OR?: AdminProcessScalarWhereWithAggregatesInput[]
21341
+ NOT?: AdminProcessScalarWhereWithAggregatesInput | AdminProcessScalarWhereWithAggregatesInput[]
21342
+ id?: IntWithAggregatesFilter<"AdminProcess"> | number
21343
+ name?: StringWithAggregatesFilter<"AdminProcess"> | string
21344
+ type?: StringWithAggregatesFilter<"AdminProcess"> | string
21345
+ state?: EnumAdminProcessStateWithAggregatesFilter<"AdminProcess"> | $Enums.AdminProcessState
21346
+ context?: JsonWithAggregatesFilter<"AdminProcess">
21347
+ results?: JsonWithAggregatesFilter<"AdminProcess">
21348
+ parentProcessId?: IntNullableWithAggregatesFilter<"AdminProcess"> | number | null
21349
+ createdAt?: DateTimeWithAggregatesFilter<"AdminProcess"> | Date | string
21350
+ updatedAt?: DateTimeWithAggregatesFilter<"AdminProcess"> | Date | string
21351
+ }
21352
+
21353
+ export type ScriptScheduleWhereInput = {
21354
+ AND?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
21355
+ OR?: ScriptScheduleWhereInput[]
21356
+ NOT?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
21357
+ id?: IntFilter<"ScriptSchedule"> | number
21358
+ scriptName?: StringFilter<"ScriptSchedule"> | string
21359
+ enabled?: BoolFilter<"ScriptSchedule"> | boolean
21360
+ cronExpression?: StringNullableFilter<"ScriptSchedule"> | string | null
21361
+ timezone?: StringFilter<"ScriptSchedule"> | string
21362
+ lastTriggeredAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
21363
+ nextTriggerAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
21364
+ externalScheduleId?: StringNullableFilter<"ScriptSchedule"> | string | null
21365
+ externalScheduleName?: StringNullableFilter<"ScriptSchedule"> | string | null
21366
+ createdAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
21367
+ updatedAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
21368
+ }
21369
+
21370
+ export type ScriptScheduleOrderByWithRelationInput = {
21371
+ id?: SortOrder
21372
+ scriptName?: SortOrder
21373
+ enabled?: SortOrder
21374
+ cronExpression?: SortOrderInput | SortOrder
21375
+ timezone?: SortOrder
21376
+ lastTriggeredAt?: SortOrderInput | SortOrder
21377
+ nextTriggerAt?: SortOrderInput | SortOrder
21378
+ externalScheduleId?: SortOrderInput | SortOrder
21379
+ externalScheduleName?: SortOrderInput | SortOrder
21380
+ createdAt?: SortOrder
21381
+ updatedAt?: SortOrder
21382
+ }
21383
+
21384
+ export type ScriptScheduleWhereUniqueInput = Prisma.AtLeast<{
21385
+ id?: number
21386
+ scriptName?: string
21387
+ AND?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
21388
+ OR?: ScriptScheduleWhereInput[]
21389
+ NOT?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
21390
+ enabled?: BoolFilter<"ScriptSchedule"> | boolean
21391
+ cronExpression?: StringNullableFilter<"ScriptSchedule"> | string | null
21392
+ timezone?: StringFilter<"ScriptSchedule"> | string
21393
+ lastTriggeredAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
21394
+ nextTriggerAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
21395
+ externalScheduleId?: StringNullableFilter<"ScriptSchedule"> | string | null
21396
+ externalScheduleName?: StringNullableFilter<"ScriptSchedule"> | string | null
21397
+ createdAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
21398
+ updatedAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
21399
+ }, "id" | "scriptName">
21400
+
21401
+ export type ScriptScheduleOrderByWithAggregationInput = {
21402
+ id?: SortOrder
21403
+ scriptName?: SortOrder
21404
+ enabled?: SortOrder
21405
+ cronExpression?: SortOrderInput | SortOrder
21406
+ timezone?: SortOrder
21407
+ lastTriggeredAt?: SortOrderInput | SortOrder
21408
+ nextTriggerAt?: SortOrderInput | SortOrder
21409
+ externalScheduleId?: SortOrderInput | SortOrder
21410
+ externalScheduleName?: SortOrderInput | SortOrder
21411
+ createdAt?: SortOrder
21412
+ updatedAt?: SortOrder
21413
+ _count?: ScriptScheduleCountOrderByAggregateInput
21414
+ _avg?: ScriptScheduleAvgOrderByAggregateInput
21415
+ _max?: ScriptScheduleMaxOrderByAggregateInput
21416
+ _min?: ScriptScheduleMinOrderByAggregateInput
21417
+ _sum?: ScriptScheduleSumOrderByAggregateInput
21418
+ }
21419
+
21420
+ export type ScriptScheduleScalarWhereWithAggregatesInput = {
21421
+ AND?: ScriptScheduleScalarWhereWithAggregatesInput | ScriptScheduleScalarWhereWithAggregatesInput[]
21422
+ OR?: ScriptScheduleScalarWhereWithAggregatesInput[]
21423
+ NOT?: ScriptScheduleScalarWhereWithAggregatesInput | ScriptScheduleScalarWhereWithAggregatesInput[]
21424
+ id?: IntWithAggregatesFilter<"ScriptSchedule"> | number
21425
+ scriptName?: StringWithAggregatesFilter<"ScriptSchedule"> | string
21426
+ enabled?: BoolWithAggregatesFilter<"ScriptSchedule"> | boolean
21427
+ cronExpression?: StringNullableWithAggregatesFilter<"ScriptSchedule"> | string | null
21428
+ timezone?: StringWithAggregatesFilter<"ScriptSchedule"> | string
21429
+ lastTriggeredAt?: DateTimeNullableWithAggregatesFilter<"ScriptSchedule"> | Date | string | null
21430
+ nextTriggerAt?: DateTimeNullableWithAggregatesFilter<"ScriptSchedule"> | Date | string | null
21431
+ externalScheduleId?: StringNullableWithAggregatesFilter<"ScriptSchedule"> | string | null
21432
+ externalScheduleName?: StringNullableWithAggregatesFilter<"ScriptSchedule"> | string | null
21433
+ createdAt?: DateTimeWithAggregatesFilter<"ScriptSchedule"> | Date | string
21434
+ updatedAt?: DateTimeWithAggregatesFilter<"ScriptSchedule"> | Date | string
21435
+ }
21436
+
18689
21437
  export type UserCreateInput = {
18690
21438
  type: $Enums.UserType
18691
21439
  createdAt?: Date | string
@@ -19531,45 +22279,224 @@ export namespace Prisma {
19531
22279
  state?: NullableJsonNullValueInput | InputJsonValue
19532
22280
  }
19533
22281
 
19534
- export type StateUpdateManyMutationInput = {
19535
- state?: NullableJsonNullValueInput | InputJsonValue
22282
+ export type StateUpdateManyMutationInput = {
22283
+ state?: NullableJsonNullValueInput | InputJsonValue
22284
+ }
22285
+
22286
+ export type StateUncheckedUpdateManyInput = {
22287
+ id?: IntFieldUpdateOperationsInput | number
22288
+ state?: NullableJsonNullValueInput | InputJsonValue
22289
+ }
22290
+
22291
+ export type WebsocketConnectionCreateInput = {
22292
+ connectionId?: string | null
22293
+ }
22294
+
22295
+ export type WebsocketConnectionUncheckedCreateInput = {
22296
+ id?: number
22297
+ connectionId?: string | null
22298
+ }
22299
+
22300
+ export type WebsocketConnectionUpdateInput = {
22301
+ connectionId?: NullableStringFieldUpdateOperationsInput | string | null
22302
+ }
22303
+
22304
+ export type WebsocketConnectionUncheckedUpdateInput = {
22305
+ id?: IntFieldUpdateOperationsInput | number
22306
+ connectionId?: NullableStringFieldUpdateOperationsInput | string | null
22307
+ }
22308
+
22309
+ export type WebsocketConnectionCreateManyInput = {
22310
+ id?: number
22311
+ connectionId?: string | null
22312
+ }
22313
+
22314
+ export type WebsocketConnectionUpdateManyMutationInput = {
22315
+ connectionId?: NullableStringFieldUpdateOperationsInput | string | null
22316
+ }
22317
+
22318
+ export type WebsocketConnectionUncheckedUpdateManyInput = {
22319
+ id?: IntFieldUpdateOperationsInput | number
22320
+ connectionId?: NullableStringFieldUpdateOperationsInput | string | null
22321
+ }
22322
+
22323
+ export type AdminProcessCreateInput = {
22324
+ name: string
22325
+ type: string
22326
+ state?: $Enums.AdminProcessState
22327
+ context?: JsonNullValueInput | InputJsonValue
22328
+ results?: JsonNullValueInput | InputJsonValue
22329
+ createdAt?: Date | string
22330
+ updatedAt?: Date | string
22331
+ parentProcess?: AdminProcessCreateNestedOneWithoutChildProcessesInput
22332
+ childProcesses?: AdminProcessCreateNestedManyWithoutParentProcessInput
22333
+ }
22334
+
22335
+ export type AdminProcessUncheckedCreateInput = {
22336
+ id?: number
22337
+ name: string
22338
+ type: string
22339
+ state?: $Enums.AdminProcessState
22340
+ context?: JsonNullValueInput | InputJsonValue
22341
+ results?: JsonNullValueInput | InputJsonValue
22342
+ parentProcessId?: number | null
22343
+ createdAt?: Date | string
22344
+ updatedAt?: Date | string
22345
+ childProcesses?: AdminProcessUncheckedCreateNestedManyWithoutParentProcessInput
22346
+ }
22347
+
22348
+ export type AdminProcessUpdateInput = {
22349
+ name?: StringFieldUpdateOperationsInput | string
22350
+ type?: StringFieldUpdateOperationsInput | string
22351
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
22352
+ context?: JsonNullValueInput | InputJsonValue
22353
+ results?: JsonNullValueInput | InputJsonValue
22354
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22355
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
22356
+ parentProcess?: AdminProcessUpdateOneWithoutChildProcessesNestedInput
22357
+ childProcesses?: AdminProcessUpdateManyWithoutParentProcessNestedInput
22358
+ }
22359
+
22360
+ export type AdminProcessUncheckedUpdateInput = {
22361
+ id?: IntFieldUpdateOperationsInput | number
22362
+ name?: StringFieldUpdateOperationsInput | string
22363
+ type?: StringFieldUpdateOperationsInput | string
22364
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
22365
+ context?: JsonNullValueInput | InputJsonValue
22366
+ results?: JsonNullValueInput | InputJsonValue
22367
+ parentProcessId?: NullableIntFieldUpdateOperationsInput | number | null
22368
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22369
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
22370
+ childProcesses?: AdminProcessUncheckedUpdateManyWithoutParentProcessNestedInput
22371
+ }
22372
+
22373
+ export type AdminProcessCreateManyInput = {
22374
+ id?: number
22375
+ name: string
22376
+ type: string
22377
+ state?: $Enums.AdminProcessState
22378
+ context?: JsonNullValueInput | InputJsonValue
22379
+ results?: JsonNullValueInput | InputJsonValue
22380
+ parentProcessId?: number | null
22381
+ createdAt?: Date | string
22382
+ updatedAt?: Date | string
22383
+ }
22384
+
22385
+ export type AdminProcessUpdateManyMutationInput = {
22386
+ name?: StringFieldUpdateOperationsInput | string
22387
+ type?: StringFieldUpdateOperationsInput | string
22388
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
22389
+ context?: JsonNullValueInput | InputJsonValue
22390
+ results?: JsonNullValueInput | InputJsonValue
22391
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22392
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19536
22393
  }
19537
22394
 
19538
- export type StateUncheckedUpdateManyInput = {
22395
+ export type AdminProcessUncheckedUpdateManyInput = {
19539
22396
  id?: IntFieldUpdateOperationsInput | number
19540
- state?: NullableJsonNullValueInput | InputJsonValue
22397
+ name?: StringFieldUpdateOperationsInput | string
22398
+ type?: StringFieldUpdateOperationsInput | string
22399
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
22400
+ context?: JsonNullValueInput | InputJsonValue
22401
+ results?: JsonNullValueInput | InputJsonValue
22402
+ parentProcessId?: NullableIntFieldUpdateOperationsInput | number | null
22403
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22404
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19541
22405
  }
19542
22406
 
19543
- export type WebsocketConnectionCreateInput = {
19544
- connectionId?: string | null
22407
+ export type ScriptScheduleCreateInput = {
22408
+ scriptName: string
22409
+ enabled?: boolean
22410
+ cronExpression?: string | null
22411
+ timezone?: string
22412
+ lastTriggeredAt?: Date | string | null
22413
+ nextTriggerAt?: Date | string | null
22414
+ externalScheduleId?: string | null
22415
+ externalScheduleName?: string | null
22416
+ createdAt?: Date | string
22417
+ updatedAt?: Date | string
19545
22418
  }
19546
22419
 
19547
- export type WebsocketConnectionUncheckedCreateInput = {
22420
+ export type ScriptScheduleUncheckedCreateInput = {
19548
22421
  id?: number
19549
- connectionId?: string | null
22422
+ scriptName: string
22423
+ enabled?: boolean
22424
+ cronExpression?: string | null
22425
+ timezone?: string
22426
+ lastTriggeredAt?: Date | string | null
22427
+ nextTriggerAt?: Date | string | null
22428
+ externalScheduleId?: string | null
22429
+ externalScheduleName?: string | null
22430
+ createdAt?: Date | string
22431
+ updatedAt?: Date | string
19550
22432
  }
19551
22433
 
19552
- export type WebsocketConnectionUpdateInput = {
19553
- connectionId?: NullableStringFieldUpdateOperationsInput | string | null
22434
+ export type ScriptScheduleUpdateInput = {
22435
+ scriptName?: StringFieldUpdateOperationsInput | string
22436
+ enabled?: BoolFieldUpdateOperationsInput | boolean
22437
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
22438
+ timezone?: StringFieldUpdateOperationsInput | string
22439
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22440
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22441
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
22442
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
22443
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22444
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19554
22445
  }
19555
22446
 
19556
- export type WebsocketConnectionUncheckedUpdateInput = {
22447
+ export type ScriptScheduleUncheckedUpdateInput = {
19557
22448
  id?: IntFieldUpdateOperationsInput | number
19558
- connectionId?: NullableStringFieldUpdateOperationsInput | string | null
22449
+ scriptName?: StringFieldUpdateOperationsInput | string
22450
+ enabled?: BoolFieldUpdateOperationsInput | boolean
22451
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
22452
+ timezone?: StringFieldUpdateOperationsInput | string
22453
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22454
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22455
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
22456
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
22457
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22458
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19559
22459
  }
19560
22460
 
19561
- export type WebsocketConnectionCreateManyInput = {
22461
+ export type ScriptScheduleCreateManyInput = {
19562
22462
  id?: number
19563
- connectionId?: string | null
22463
+ scriptName: string
22464
+ enabled?: boolean
22465
+ cronExpression?: string | null
22466
+ timezone?: string
22467
+ lastTriggeredAt?: Date | string | null
22468
+ nextTriggerAt?: Date | string | null
22469
+ externalScheduleId?: string | null
22470
+ externalScheduleName?: string | null
22471
+ createdAt?: Date | string
22472
+ updatedAt?: Date | string
19564
22473
  }
19565
22474
 
19566
- export type WebsocketConnectionUpdateManyMutationInput = {
19567
- connectionId?: NullableStringFieldUpdateOperationsInput | string | null
22475
+ export type ScriptScheduleUpdateManyMutationInput = {
22476
+ scriptName?: StringFieldUpdateOperationsInput | string
22477
+ enabled?: BoolFieldUpdateOperationsInput | boolean
22478
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
22479
+ timezone?: StringFieldUpdateOperationsInput | string
22480
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22481
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22482
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
22483
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
22484
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22485
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19568
22486
  }
19569
22487
 
19570
- export type WebsocketConnectionUncheckedUpdateManyInput = {
22488
+ export type ScriptScheduleUncheckedUpdateManyInput = {
19571
22489
  id?: IntFieldUpdateOperationsInput | number
19572
- connectionId?: NullableStringFieldUpdateOperationsInput | string | null
22490
+ scriptName?: StringFieldUpdateOperationsInput | string
22491
+ enabled?: BoolFieldUpdateOperationsInput | boolean
22492
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
22493
+ timezone?: StringFieldUpdateOperationsInput | string
22494
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22495
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22496
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
22497
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
22498
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22499
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19573
22500
  }
19574
22501
 
19575
22502
  export type IntFilter<$PrismaModel = never> = {
@@ -20553,6 +23480,143 @@ export namespace Prisma {
20553
23480
  id?: SortOrder
20554
23481
  }
20555
23482
 
23483
+ export type EnumAdminProcessStateFilter<$PrismaModel = never> = {
23484
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
23485
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
23486
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
23487
+ not?: NestedEnumAdminProcessStateFilter<$PrismaModel> | $Enums.AdminProcessState
23488
+ }
23489
+
23490
+ export type AdminProcessNullableScalarRelationFilter = {
23491
+ is?: AdminProcessWhereInput | null
23492
+ isNot?: AdminProcessWhereInput | null
23493
+ }
23494
+
23495
+ export type AdminProcessListRelationFilter = {
23496
+ every?: AdminProcessWhereInput
23497
+ some?: AdminProcessWhereInput
23498
+ none?: AdminProcessWhereInput
23499
+ }
23500
+
23501
+ export type AdminProcessOrderByRelationAggregateInput = {
23502
+ _count?: SortOrder
23503
+ }
23504
+
23505
+ export type AdminProcessCountOrderByAggregateInput = {
23506
+ id?: SortOrder
23507
+ name?: SortOrder
23508
+ type?: SortOrder
23509
+ state?: SortOrder
23510
+ context?: SortOrder
23511
+ results?: SortOrder
23512
+ parentProcessId?: SortOrder
23513
+ createdAt?: SortOrder
23514
+ updatedAt?: SortOrder
23515
+ }
23516
+
23517
+ export type AdminProcessAvgOrderByAggregateInput = {
23518
+ id?: SortOrder
23519
+ parentProcessId?: SortOrder
23520
+ }
23521
+
23522
+ export type AdminProcessMaxOrderByAggregateInput = {
23523
+ id?: SortOrder
23524
+ name?: SortOrder
23525
+ type?: SortOrder
23526
+ state?: SortOrder
23527
+ parentProcessId?: SortOrder
23528
+ createdAt?: SortOrder
23529
+ updatedAt?: SortOrder
23530
+ }
23531
+
23532
+ export type AdminProcessMinOrderByAggregateInput = {
23533
+ id?: SortOrder
23534
+ name?: SortOrder
23535
+ type?: SortOrder
23536
+ state?: SortOrder
23537
+ parentProcessId?: SortOrder
23538
+ createdAt?: SortOrder
23539
+ updatedAt?: SortOrder
23540
+ }
23541
+
23542
+ export type AdminProcessSumOrderByAggregateInput = {
23543
+ id?: SortOrder
23544
+ parentProcessId?: SortOrder
23545
+ }
23546
+
23547
+ export type EnumAdminProcessStateWithAggregatesFilter<$PrismaModel = never> = {
23548
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
23549
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
23550
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
23551
+ not?: NestedEnumAdminProcessStateWithAggregatesFilter<$PrismaModel> | $Enums.AdminProcessState
23552
+ _count?: NestedIntFilter<$PrismaModel>
23553
+ _min?: NestedEnumAdminProcessStateFilter<$PrismaModel>
23554
+ _max?: NestedEnumAdminProcessStateFilter<$PrismaModel>
23555
+ }
23556
+
23557
+ export type BoolFilter<$PrismaModel = never> = {
23558
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
23559
+ not?: NestedBoolFilter<$PrismaModel> | boolean
23560
+ }
23561
+
23562
+ export type ScriptScheduleCountOrderByAggregateInput = {
23563
+ id?: SortOrder
23564
+ scriptName?: SortOrder
23565
+ enabled?: SortOrder
23566
+ cronExpression?: SortOrder
23567
+ timezone?: SortOrder
23568
+ lastTriggeredAt?: SortOrder
23569
+ nextTriggerAt?: SortOrder
23570
+ externalScheduleId?: SortOrder
23571
+ externalScheduleName?: SortOrder
23572
+ createdAt?: SortOrder
23573
+ updatedAt?: SortOrder
23574
+ }
23575
+
23576
+ export type ScriptScheduleAvgOrderByAggregateInput = {
23577
+ id?: SortOrder
23578
+ }
23579
+
23580
+ export type ScriptScheduleMaxOrderByAggregateInput = {
23581
+ id?: SortOrder
23582
+ scriptName?: SortOrder
23583
+ enabled?: SortOrder
23584
+ cronExpression?: SortOrder
23585
+ timezone?: SortOrder
23586
+ lastTriggeredAt?: SortOrder
23587
+ nextTriggerAt?: SortOrder
23588
+ externalScheduleId?: SortOrder
23589
+ externalScheduleName?: SortOrder
23590
+ createdAt?: SortOrder
23591
+ updatedAt?: SortOrder
23592
+ }
23593
+
23594
+ export type ScriptScheduleMinOrderByAggregateInput = {
23595
+ id?: SortOrder
23596
+ scriptName?: SortOrder
23597
+ enabled?: SortOrder
23598
+ cronExpression?: SortOrder
23599
+ timezone?: SortOrder
23600
+ lastTriggeredAt?: SortOrder
23601
+ nextTriggerAt?: SortOrder
23602
+ externalScheduleId?: SortOrder
23603
+ externalScheduleName?: SortOrder
23604
+ createdAt?: SortOrder
23605
+ updatedAt?: SortOrder
23606
+ }
23607
+
23608
+ export type ScriptScheduleSumOrderByAggregateInput = {
23609
+ id?: SortOrder
23610
+ }
23611
+
23612
+ export type BoolWithAggregatesFilter<$PrismaModel = never> = {
23613
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
23614
+ not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
23615
+ _count?: NestedIntFilter<$PrismaModel>
23616
+ _min?: NestedBoolFilter<$PrismaModel>
23617
+ _max?: NestedBoolFilter<$PrismaModel>
23618
+ }
23619
+
20556
23620
  export type UserCreateNestedOneWithoutMembersInput = {
20557
23621
  create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
20558
23622
  connectOrCreate?: UserCreateOrConnectWithoutMembersInput
@@ -21665,6 +24729,72 @@ export namespace Prisma {
21665
24729
  deleteMany?: ProcessScalarWhereInput | ProcessScalarWhereInput[]
21666
24730
  }
21667
24731
 
24732
+ export type AdminProcessCreateNestedOneWithoutChildProcessesInput = {
24733
+ create?: XOR<AdminProcessCreateWithoutChildProcessesInput, AdminProcessUncheckedCreateWithoutChildProcessesInput>
24734
+ connectOrCreate?: AdminProcessCreateOrConnectWithoutChildProcessesInput
24735
+ connect?: AdminProcessWhereUniqueInput
24736
+ }
24737
+
24738
+ export type AdminProcessCreateNestedManyWithoutParentProcessInput = {
24739
+ create?: XOR<AdminProcessCreateWithoutParentProcessInput, AdminProcessUncheckedCreateWithoutParentProcessInput> | AdminProcessCreateWithoutParentProcessInput[] | AdminProcessUncheckedCreateWithoutParentProcessInput[]
24740
+ connectOrCreate?: AdminProcessCreateOrConnectWithoutParentProcessInput | AdminProcessCreateOrConnectWithoutParentProcessInput[]
24741
+ createMany?: AdminProcessCreateManyParentProcessInputEnvelope
24742
+ connect?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
24743
+ }
24744
+
24745
+ export type AdminProcessUncheckedCreateNestedManyWithoutParentProcessInput = {
24746
+ create?: XOR<AdminProcessCreateWithoutParentProcessInput, AdminProcessUncheckedCreateWithoutParentProcessInput> | AdminProcessCreateWithoutParentProcessInput[] | AdminProcessUncheckedCreateWithoutParentProcessInput[]
24747
+ connectOrCreate?: AdminProcessCreateOrConnectWithoutParentProcessInput | AdminProcessCreateOrConnectWithoutParentProcessInput[]
24748
+ createMany?: AdminProcessCreateManyParentProcessInputEnvelope
24749
+ connect?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
24750
+ }
24751
+
24752
+ export type EnumAdminProcessStateFieldUpdateOperationsInput = {
24753
+ set?: $Enums.AdminProcessState
24754
+ }
24755
+
24756
+ export type AdminProcessUpdateOneWithoutChildProcessesNestedInput = {
24757
+ create?: XOR<AdminProcessCreateWithoutChildProcessesInput, AdminProcessUncheckedCreateWithoutChildProcessesInput>
24758
+ connectOrCreate?: AdminProcessCreateOrConnectWithoutChildProcessesInput
24759
+ upsert?: AdminProcessUpsertWithoutChildProcessesInput
24760
+ disconnect?: AdminProcessWhereInput | boolean
24761
+ delete?: AdminProcessWhereInput | boolean
24762
+ connect?: AdminProcessWhereUniqueInput
24763
+ update?: XOR<XOR<AdminProcessUpdateToOneWithWhereWithoutChildProcessesInput, AdminProcessUpdateWithoutChildProcessesInput>, AdminProcessUncheckedUpdateWithoutChildProcessesInput>
24764
+ }
24765
+
24766
+ export type AdminProcessUpdateManyWithoutParentProcessNestedInput = {
24767
+ create?: XOR<AdminProcessCreateWithoutParentProcessInput, AdminProcessUncheckedCreateWithoutParentProcessInput> | AdminProcessCreateWithoutParentProcessInput[] | AdminProcessUncheckedCreateWithoutParentProcessInput[]
24768
+ connectOrCreate?: AdminProcessCreateOrConnectWithoutParentProcessInput | AdminProcessCreateOrConnectWithoutParentProcessInput[]
24769
+ upsert?: AdminProcessUpsertWithWhereUniqueWithoutParentProcessInput | AdminProcessUpsertWithWhereUniqueWithoutParentProcessInput[]
24770
+ createMany?: AdminProcessCreateManyParentProcessInputEnvelope
24771
+ set?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
24772
+ disconnect?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
24773
+ delete?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
24774
+ connect?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
24775
+ update?: AdminProcessUpdateWithWhereUniqueWithoutParentProcessInput | AdminProcessUpdateWithWhereUniqueWithoutParentProcessInput[]
24776
+ updateMany?: AdminProcessUpdateManyWithWhereWithoutParentProcessInput | AdminProcessUpdateManyWithWhereWithoutParentProcessInput[]
24777
+ deleteMany?: AdminProcessScalarWhereInput | AdminProcessScalarWhereInput[]
24778
+ }
24779
+
24780
+ export type AdminProcessUncheckedUpdateManyWithoutParentProcessNestedInput = {
24781
+ create?: XOR<AdminProcessCreateWithoutParentProcessInput, AdminProcessUncheckedCreateWithoutParentProcessInput> | AdminProcessCreateWithoutParentProcessInput[] | AdminProcessUncheckedCreateWithoutParentProcessInput[]
24782
+ connectOrCreate?: AdminProcessCreateOrConnectWithoutParentProcessInput | AdminProcessCreateOrConnectWithoutParentProcessInput[]
24783
+ upsert?: AdminProcessUpsertWithWhereUniqueWithoutParentProcessInput | AdminProcessUpsertWithWhereUniqueWithoutParentProcessInput[]
24784
+ createMany?: AdminProcessCreateManyParentProcessInputEnvelope
24785
+ set?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
24786
+ disconnect?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
24787
+ delete?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
24788
+ connect?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
24789
+ update?: AdminProcessUpdateWithWhereUniqueWithoutParentProcessInput | AdminProcessUpdateWithWhereUniqueWithoutParentProcessInput[]
24790
+ updateMany?: AdminProcessUpdateManyWithWhereWithoutParentProcessInput | AdminProcessUpdateManyWithWhereWithoutParentProcessInput[]
24791
+ deleteMany?: AdminProcessScalarWhereInput | AdminProcessScalarWhereInput[]
24792
+ }
24793
+
24794
+ export type BoolFieldUpdateOperationsInput = {
24795
+ set?: boolean
24796
+ }
24797
+
21668
24798
  export type NestedIntFilter<$PrismaModel = never> = {
21669
24799
  equals?: number | IntFieldRefInput<$PrismaModel>
21670
24800
  in?: number[] | ListIntFieldRefInput<$PrismaModel>
@@ -21963,6 +25093,36 @@ export namespace Prisma {
21963
25093
  _max?: NestedEnumAssociationTypeFilter<$PrismaModel>
21964
25094
  }
21965
25095
 
25096
+ export type NestedEnumAdminProcessStateFilter<$PrismaModel = never> = {
25097
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
25098
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
25099
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
25100
+ not?: NestedEnumAdminProcessStateFilter<$PrismaModel> | $Enums.AdminProcessState
25101
+ }
25102
+
25103
+ export type NestedEnumAdminProcessStateWithAggregatesFilter<$PrismaModel = never> = {
25104
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
25105
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
25106
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
25107
+ not?: NestedEnumAdminProcessStateWithAggregatesFilter<$PrismaModel> | $Enums.AdminProcessState
25108
+ _count?: NestedIntFilter<$PrismaModel>
25109
+ _min?: NestedEnumAdminProcessStateFilter<$PrismaModel>
25110
+ _max?: NestedEnumAdminProcessStateFilter<$PrismaModel>
25111
+ }
25112
+
25113
+ export type NestedBoolFilter<$PrismaModel = never> = {
25114
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
25115
+ not?: NestedBoolFilter<$PrismaModel> | boolean
25116
+ }
25117
+
25118
+ export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
25119
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
25120
+ not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
25121
+ _count?: NestedIntFilter<$PrismaModel>
25122
+ _min?: NestedBoolFilter<$PrismaModel>
25123
+ _max?: NestedBoolFilter<$PrismaModel>
25124
+ }
25125
+
21966
25126
  export type UserCreateWithoutMembersInput = {
21967
25127
  type: $Enums.UserType
21968
25128
  createdAt?: Date | string
@@ -24309,6 +27469,132 @@ export namespace Prisma {
24309
27469
  data: XOR<ProcessUpdateManyMutationInput, ProcessUncheckedUpdateManyWithoutParentProcessInput>
24310
27470
  }
24311
27471
 
27472
+ export type AdminProcessCreateWithoutChildProcessesInput = {
27473
+ name: string
27474
+ type: string
27475
+ state?: $Enums.AdminProcessState
27476
+ context?: JsonNullValueInput | InputJsonValue
27477
+ results?: JsonNullValueInput | InputJsonValue
27478
+ createdAt?: Date | string
27479
+ updatedAt?: Date | string
27480
+ parentProcess?: AdminProcessCreateNestedOneWithoutChildProcessesInput
27481
+ }
27482
+
27483
+ export type AdminProcessUncheckedCreateWithoutChildProcessesInput = {
27484
+ id?: number
27485
+ name: string
27486
+ type: string
27487
+ state?: $Enums.AdminProcessState
27488
+ context?: JsonNullValueInput | InputJsonValue
27489
+ results?: JsonNullValueInput | InputJsonValue
27490
+ parentProcessId?: number | null
27491
+ createdAt?: Date | string
27492
+ updatedAt?: Date | string
27493
+ }
27494
+
27495
+ export type AdminProcessCreateOrConnectWithoutChildProcessesInput = {
27496
+ where: AdminProcessWhereUniqueInput
27497
+ create: XOR<AdminProcessCreateWithoutChildProcessesInput, AdminProcessUncheckedCreateWithoutChildProcessesInput>
27498
+ }
27499
+
27500
+ export type AdminProcessCreateWithoutParentProcessInput = {
27501
+ name: string
27502
+ type: string
27503
+ state?: $Enums.AdminProcessState
27504
+ context?: JsonNullValueInput | InputJsonValue
27505
+ results?: JsonNullValueInput | InputJsonValue
27506
+ createdAt?: Date | string
27507
+ updatedAt?: Date | string
27508
+ childProcesses?: AdminProcessCreateNestedManyWithoutParentProcessInput
27509
+ }
27510
+
27511
+ export type AdminProcessUncheckedCreateWithoutParentProcessInput = {
27512
+ id?: number
27513
+ name: string
27514
+ type: string
27515
+ state?: $Enums.AdminProcessState
27516
+ context?: JsonNullValueInput | InputJsonValue
27517
+ results?: JsonNullValueInput | InputJsonValue
27518
+ createdAt?: Date | string
27519
+ updatedAt?: Date | string
27520
+ childProcesses?: AdminProcessUncheckedCreateNestedManyWithoutParentProcessInput
27521
+ }
27522
+
27523
+ export type AdminProcessCreateOrConnectWithoutParentProcessInput = {
27524
+ where: AdminProcessWhereUniqueInput
27525
+ create: XOR<AdminProcessCreateWithoutParentProcessInput, AdminProcessUncheckedCreateWithoutParentProcessInput>
27526
+ }
27527
+
27528
+ export type AdminProcessCreateManyParentProcessInputEnvelope = {
27529
+ data: AdminProcessCreateManyParentProcessInput | AdminProcessCreateManyParentProcessInput[]
27530
+ skipDuplicates?: boolean
27531
+ }
27532
+
27533
+ export type AdminProcessUpsertWithoutChildProcessesInput = {
27534
+ update: XOR<AdminProcessUpdateWithoutChildProcessesInput, AdminProcessUncheckedUpdateWithoutChildProcessesInput>
27535
+ create: XOR<AdminProcessCreateWithoutChildProcessesInput, AdminProcessUncheckedCreateWithoutChildProcessesInput>
27536
+ where?: AdminProcessWhereInput
27537
+ }
27538
+
27539
+ export type AdminProcessUpdateToOneWithWhereWithoutChildProcessesInput = {
27540
+ where?: AdminProcessWhereInput
27541
+ data: XOR<AdminProcessUpdateWithoutChildProcessesInput, AdminProcessUncheckedUpdateWithoutChildProcessesInput>
27542
+ }
27543
+
27544
+ export type AdminProcessUpdateWithoutChildProcessesInput = {
27545
+ name?: StringFieldUpdateOperationsInput | string
27546
+ type?: StringFieldUpdateOperationsInput | string
27547
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
27548
+ context?: JsonNullValueInput | InputJsonValue
27549
+ results?: JsonNullValueInput | InputJsonValue
27550
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
27551
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
27552
+ parentProcess?: AdminProcessUpdateOneWithoutChildProcessesNestedInput
27553
+ }
27554
+
27555
+ export type AdminProcessUncheckedUpdateWithoutChildProcessesInput = {
27556
+ id?: IntFieldUpdateOperationsInput | number
27557
+ name?: StringFieldUpdateOperationsInput | string
27558
+ type?: StringFieldUpdateOperationsInput | string
27559
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
27560
+ context?: JsonNullValueInput | InputJsonValue
27561
+ results?: JsonNullValueInput | InputJsonValue
27562
+ parentProcessId?: NullableIntFieldUpdateOperationsInput | number | null
27563
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
27564
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
27565
+ }
27566
+
27567
+ export type AdminProcessUpsertWithWhereUniqueWithoutParentProcessInput = {
27568
+ where: AdminProcessWhereUniqueInput
27569
+ update: XOR<AdminProcessUpdateWithoutParentProcessInput, AdminProcessUncheckedUpdateWithoutParentProcessInput>
27570
+ create: XOR<AdminProcessCreateWithoutParentProcessInput, AdminProcessUncheckedCreateWithoutParentProcessInput>
27571
+ }
27572
+
27573
+ export type AdminProcessUpdateWithWhereUniqueWithoutParentProcessInput = {
27574
+ where: AdminProcessWhereUniqueInput
27575
+ data: XOR<AdminProcessUpdateWithoutParentProcessInput, AdminProcessUncheckedUpdateWithoutParentProcessInput>
27576
+ }
27577
+
27578
+ export type AdminProcessUpdateManyWithWhereWithoutParentProcessInput = {
27579
+ where: AdminProcessScalarWhereInput
27580
+ data: XOR<AdminProcessUpdateManyMutationInput, AdminProcessUncheckedUpdateManyWithoutParentProcessInput>
27581
+ }
27582
+
27583
+ export type AdminProcessScalarWhereInput = {
27584
+ AND?: AdminProcessScalarWhereInput | AdminProcessScalarWhereInput[]
27585
+ OR?: AdminProcessScalarWhereInput[]
27586
+ NOT?: AdminProcessScalarWhereInput | AdminProcessScalarWhereInput[]
27587
+ id?: IntFilter<"AdminProcess"> | number
27588
+ name?: StringFilter<"AdminProcess"> | string
27589
+ type?: StringFilter<"AdminProcess"> | string
27590
+ state?: EnumAdminProcessStateFilter<"AdminProcess"> | $Enums.AdminProcessState
27591
+ context?: JsonFilter<"AdminProcess">
27592
+ results?: JsonFilter<"AdminProcess">
27593
+ parentProcessId?: IntNullableFilter<"AdminProcess"> | number | null
27594
+ createdAt?: DateTimeFilter<"AdminProcess"> | Date | string
27595
+ updatedAt?: DateTimeFilter<"AdminProcess"> | Date | string
27596
+ }
27597
+
24312
27598
  export type UserCreateManyOrganizationInput = {
24313
27599
  id?: number
24314
27600
  type: $Enums.UserType
@@ -25114,6 +28400,51 @@ export namespace Prisma {
25114
28400
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
25115
28401
  }
25116
28402
 
28403
+ export type AdminProcessCreateManyParentProcessInput = {
28404
+ id?: number
28405
+ name: string
28406
+ type: string
28407
+ state?: $Enums.AdminProcessState
28408
+ context?: JsonNullValueInput | InputJsonValue
28409
+ results?: JsonNullValueInput | InputJsonValue
28410
+ createdAt?: Date | string
28411
+ updatedAt?: Date | string
28412
+ }
28413
+
28414
+ export type AdminProcessUpdateWithoutParentProcessInput = {
28415
+ name?: StringFieldUpdateOperationsInput | string
28416
+ type?: StringFieldUpdateOperationsInput | string
28417
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
28418
+ context?: JsonNullValueInput | InputJsonValue
28419
+ results?: JsonNullValueInput | InputJsonValue
28420
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
28421
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
28422
+ childProcesses?: AdminProcessUpdateManyWithoutParentProcessNestedInput
28423
+ }
28424
+
28425
+ export type AdminProcessUncheckedUpdateWithoutParentProcessInput = {
28426
+ id?: IntFieldUpdateOperationsInput | number
28427
+ name?: StringFieldUpdateOperationsInput | string
28428
+ type?: StringFieldUpdateOperationsInput | string
28429
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
28430
+ context?: JsonNullValueInput | InputJsonValue
28431
+ results?: JsonNullValueInput | InputJsonValue
28432
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
28433
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
28434
+ childProcesses?: AdminProcessUncheckedUpdateManyWithoutParentProcessNestedInput
28435
+ }
28436
+
28437
+ export type AdminProcessUncheckedUpdateManyWithoutParentProcessInput = {
28438
+ id?: IntFieldUpdateOperationsInput | number
28439
+ name?: StringFieldUpdateOperationsInput | string
28440
+ type?: StringFieldUpdateOperationsInput | string
28441
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
28442
+ context?: JsonNullValueInput | InputJsonValue
28443
+ results?: JsonNullValueInput | InputJsonValue
28444
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
28445
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
28446
+ }
28447
+
25117
28448
 
25118
28449
 
25119
28450
  /**