@friggframework/core 2.0.0--canary.548.c8ae0ca.0 → 2.0.0--canary.545.c40eca4.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 (237) hide show
  1. package/CHANGELOG.md +66 -67
  2. package/CLAUDE.md +148 -124
  3. package/README.md +165 -130
  4. package/admin-scripts/index.js +52 -0
  5. package/admin-scripts/repositories/admin-api-key-repository-documentdb.js +21 -0
  6. package/admin-scripts/repositories/admin-api-key-repository-factory.js +51 -0
  7. package/admin-scripts/repositories/admin-api-key-repository-interface.js +121 -0
  8. package/admin-scripts/repositories/admin-api-key-repository-mongo.js +155 -0
  9. package/admin-scripts/repositories/admin-api-key-repository-postgres.js +189 -0
  10. package/admin-scripts/repositories/admin-process-repository-documentdb.js +21 -0
  11. package/admin-scripts/repositories/admin-process-repository-factory.js +49 -0
  12. package/admin-scripts/repositories/admin-process-repository-interface.js +150 -0
  13. package/admin-scripts/repositories/admin-process-repository-mongo.js +213 -0
  14. package/admin-scripts/repositories/admin-process-repository-postgres.js +251 -0
  15. package/admin-scripts/repositories/script-execution-repository-documentdb.js +21 -0
  16. package/admin-scripts/repositories/script-execution-repository-factory.js +51 -0
  17. package/admin-scripts/repositories/script-execution-repository-interface.js +193 -0
  18. package/admin-scripts/repositories/script-execution-repository-mongo.js +278 -0
  19. package/admin-scripts/repositories/script-execution-repository-postgres.js +320 -0
  20. package/admin-scripts/repositories/script-schedule-repository-documentdb.js +21 -0
  21. package/admin-scripts/repositories/script-schedule-repository-factory.js +49 -0
  22. package/admin-scripts/repositories/script-schedule-repository-interface.js +108 -0
  23. package/admin-scripts/repositories/script-schedule-repository-mongo.js +179 -0
  24. package/admin-scripts/repositories/script-schedule-repository-postgres.js +210 -0
  25. package/application/commands/admin-script-commands.js +348 -0
  26. package/application/commands/integration-commands.js +12 -6
  27. package/application/index.js +5 -3
  28. package/assertions/get.js +17 -7
  29. package/associations/association.js +59 -57
  30. package/core/CLAUDE.md +222 -156
  31. package/core/Worker.js +33 -12
  32. package/credential/credential-router.js +262 -0
  33. package/credential/repositories/credential-repository-documentdb.js +71 -1
  34. package/credential/repositories/credential-repository-factory.js +4 -6
  35. package/credential/repositories/credential-repository-interface.js +8 -2
  36. package/credential/repositories/credential-repository-mongo.js +45 -4
  37. package/credential/repositories/credential-repository-postgres.js +44 -3
  38. package/credential/repositories/credential-repository.js +3 -1
  39. package/credential/use-cases/delete-credential-for-user.js +50 -0
  40. package/credential/use-cases/get-credential-for-user.js +21 -3
  41. package/credential/use-cases/list-credentials-for-user.js +31 -0
  42. package/credential/use-cases/reauthorize-credential.js +103 -0
  43. package/credential/use-cases/update-authentication-status.js +5 -2
  44. package/database/MONGODB_TRANSACTION_FIX.md +72 -52
  45. package/database/config.js +13 -59
  46. package/database/documentdb-encryption-service.js +29 -13
  47. package/database/documentdb-utils.js +21 -12
  48. package/database/encryption/README.md +53 -36
  49. package/database/encryption/encryption-schema-registry.js +29 -23
  50. package/database/encryption/field-encryption-service.js +15 -4
  51. package/database/encryption/logger.js +3 -2
  52. package/database/encryption/prisma-encryption-extension.js +5 -8
  53. package/database/prisma.js +22 -14
  54. package/database/repositories/health-check-repository-factory.js +7 -5
  55. package/database/repositories/health-check-repository-interface.js +15 -5
  56. package/database/repositories/health-check-repository-postgres.js +1 -1
  57. package/database/use-cases/check-database-health-use-case.js +3 -2
  58. package/database/use-cases/check-database-state-use-case.js +8 -7
  59. package/database/use-cases/get-database-state-via-worker-use-case.js +15 -12
  60. package/database/use-cases/get-migration-status-use-case.js +4 -2
  61. package/database/use-cases/run-database-migration-use-case.js +41 -9
  62. package/database/use-cases/test-encryption-use-case.js +4 -5
  63. package/database/use-cases/trigger-database-migration-use-case.js +9 -8
  64. package/database/utils/mongodb-collection-utils.js +11 -3
  65. package/database/utils/mongodb-schema-init.js +10 -4
  66. package/database/utils/prisma-runner.js +144 -74
  67. package/database/utils/prisma-schema-parser.js +2 -2
  68. package/docs/PROCESS_MANAGEMENT_QUEUE_SPEC.md +135 -80
  69. package/encrypt/Cryptor.js +54 -49
  70. package/encrypt/aes-encryption-key-provider.js +82 -0
  71. package/encrypt/encryption-key-provider-interface.js +50 -0
  72. package/errors/fetch-error.js +1 -1
  73. package/generated/prisma-mongodb/edge.js +59 -4
  74. package/generated/prisma-mongodb/index-browser.js +49 -1
  75. package/generated/prisma-mongodb/index.d.ts +4023 -61
  76. package/generated/prisma-mongodb/index.js +59 -4
  77. package/generated/prisma-mongodb/package.json +1 -1
  78. package/generated/prisma-mongodb/schema.prisma +87 -0
  79. package/generated/prisma-mongodb/wasm.js +59 -4
  80. package/generated/prisma-postgresql/edge.js +58 -4
  81. package/generated/prisma-postgresql/index-browser.js +48 -1
  82. package/generated/prisma-postgresql/index.d.ts +4738 -54
  83. package/generated/prisma-postgresql/index.js +58 -4
  84. package/generated/prisma-postgresql/package.json +1 -1
  85. package/generated/prisma-postgresql/schema.prisma +85 -0
  86. package/generated/prisma-postgresql/wasm.js +58 -4
  87. package/handlers/WEBHOOKS.md +104 -81
  88. package/handlers/app-definition-loader.js +53 -10
  89. package/handlers/app-handler-helpers.js +14 -3
  90. package/handlers/backend-utils.js +0 -1
  91. package/handlers/database-migration-handler.js +64 -45
  92. package/handlers/middleware/admin-auth.js +53 -0
  93. package/handlers/routers/HEALTHCHECK.md +170 -135
  94. package/handlers/routers/admin.js +474 -0
  95. package/handlers/routers/auth.js +51 -9
  96. package/handlers/routers/db-migration.handler.js +2 -3
  97. package/handlers/routers/db-migration.js +102 -66
  98. package/handlers/routers/docs.js +180 -0
  99. package/handlers/routers/health.js +84 -283
  100. package/handlers/routers/integration-defined-routers.js +44 -33
  101. package/handlers/routers/integration-webhook-routers.js +73 -52
  102. package/handlers/routers/middleware/loadUser.js +39 -0
  103. package/handlers/routers/middleware/requireAdmin.js +43 -0
  104. package/handlers/routers/middleware/requireLoggedInUser.js +19 -0
  105. package/handlers/routers/user.js +30 -14
  106. package/handlers/routers/websocket.js +18 -4
  107. package/handlers/use-cases/check-integrations-health-use-case.js +13 -6
  108. package/handlers/workers/db-migration.js +74 -35
  109. package/handlers/workers/integration-defined-workers.js +31 -20
  110. package/index.js +50 -16
  111. package/infrastructure/scheduler/index.js +15 -11
  112. package/infrastructure/scheduler/netlify-scheduler-adapter.js +185 -0
  113. package/infrastructure/scheduler/scheduler-service-factory.js +38 -31
  114. package/integrations/WEBHOOK-QUICKSTART.md +21 -14
  115. package/integrations/index.js +4 -0
  116. package/integrations/integration-base.js +9 -6
  117. package/integrations/integration-router.js +1828 -157
  118. package/integrations/options.js +47 -20
  119. package/integrations/repositories/integration-mapping-repository-factory.js +4 -8
  120. package/integrations/repositories/integration-repository-documentdb.js +53 -24
  121. package/integrations/repositories/integration-repository-factory.js +6 -6
  122. package/integrations/repositories/integration-repository-interface.js +27 -9
  123. package/integrations/repositories/integration-repository-postgres.js +3 -3
  124. package/integrations/repositories/process-repository-factory.js +4 -7
  125. package/integrations/repositories/process-repository-interface.js +9 -5
  126. package/integrations/repositories/process-repository-mongo.js +7 -3
  127. package/integrations/repositories/process-repository-postgres.js +2 -2
  128. package/integrations/tests/doubles/config-capturing-integration.js +9 -8
  129. package/integrations/tests/doubles/dummy-integration-class.js +81 -8
  130. package/integrations/tests/doubles/test-integration-repository.js +51 -11
  131. package/integrations/use-cases/create-integration.js +36 -32
  132. package/integrations/use-cases/create-process.js +20 -9
  133. package/integrations/use-cases/delete-integration-for-user.js +5 -4
  134. package/integrations/use-cases/execute-proxy-request.js +564 -0
  135. package/integrations/use-cases/get-integration-for-user.js +25 -10
  136. package/integrations/use-cases/get-integration-instance-by-definition.js +13 -7
  137. package/integrations/use-cases/get-integrations-for-user.js +4 -1
  138. package/integrations/use-cases/get-possible-integrations.js +1 -1
  139. package/integrations/use-cases/get-process.js +5 -6
  140. package/integrations/use-cases/index.js +3 -1
  141. package/integrations/use-cases/load-integration-context.js +1 -5
  142. package/integrations/use-cases/update-process-state.js +10 -8
  143. package/integrations/utils/map-integration-dto.js +9 -3
  144. package/jest-setup.js +1 -1
  145. package/jest-teardown.js +1 -1
  146. package/lambda/TimeoutCatcher.js +32 -30
  147. package/lambda/index.js +1 -1
  148. package/logs/index.js +3 -3
  149. package/modules/domain/entities/AuthorizationSession.js +131 -0
  150. package/modules/domain/entities/index.js +10 -0
  151. package/modules/module.js +4 -9
  152. package/modules/repositories/authorization-session-repository-factory.js +53 -0
  153. package/modules/repositories/authorization-session-repository-interface.js +75 -0
  154. package/modules/repositories/authorization-session-repository-mongo.js +169 -0
  155. package/modules/repositories/authorization-session-repository-postgres.js +170 -0
  156. package/modules/repositories/module-repository-documentdb.js +89 -41
  157. package/modules/repositories/module-repository-factory.js +4 -6
  158. package/modules/repositories/module-repository-interface.js +13 -0
  159. package/modules/repositories/module-repository-mongo.js +40 -5
  160. package/modules/repositories/module-repository-postgres.js +42 -5
  161. package/modules/repositories/module-repository.js +28 -0
  162. package/modules/requester/api-key.js +0 -2
  163. package/modules/requester/basic.js +0 -1
  164. package/modules/requester/oauth-2.js +3 -14
  165. package/modules/test/mock-api/definition.js +15 -10
  166. package/modules/test/mock-api/mocks/hubspot.js +36 -36
  167. package/modules/tests/doubles/test-module-factory.js +10 -4
  168. package/modules/tests/doubles/test-module-repository.js +1 -1
  169. package/modules/use-cases/delete-module-entity.js +23 -0
  170. package/modules/use-cases/get-authorization-requirements.js +110 -0
  171. package/modules/use-cases/get-entities-for-user.js +1 -1
  172. package/modules/use-cases/get-entity-options-by-id.js +8 -6
  173. package/modules/use-cases/get-module-entity-by-id.js +16 -0
  174. package/modules/use-cases/get-module.js +12 -9
  175. package/modules/use-cases/process-authorization-callback.js +12 -6
  176. package/modules/use-cases/process-authorization-step.js +160 -0
  177. package/modules/use-cases/refresh-entity-options.js +8 -6
  178. package/modules/use-cases/start-authorization-session.js +86 -0
  179. package/modules/use-cases/test-module-auth.js +8 -6
  180. package/modules/use-cases/update-module-entity.js +27 -0
  181. package/modules/utils/map-module-dto.js +2 -2
  182. package/openapi/openapi-spec-generator.js +370 -0
  183. package/openapi/openapi-v1.yaml +1360 -0
  184. package/openapi/openapi-v2.yaml +1535 -0
  185. package/package.json +7 -9
  186. package/prisma-mongodb/schema.prisma +87 -0
  187. package/prisma-postgresql/migrations/20260222000000_add_admin_process_and_script_schedule/migration.sql +55 -0
  188. package/prisma-postgresql/schema.prisma +85 -0
  189. package/providers/index.js +13 -0
  190. package/providers/resolve-provider.js +93 -0
  191. package/queues/index.js +19 -0
  192. package/queues/providers/index.js +7 -0
  193. package/queues/providers/netlify-background-provider.js +76 -0
  194. package/queues/providers/qstash-queue-provider.js +122 -0
  195. package/queues/queue-client-interface.js +55 -0
  196. package/queues/queue-provider-factory.js +93 -0
  197. package/queues/queue-provider.js +46 -0
  198. package/queues/queuer-util.js +33 -25
  199. package/syncs/repositories/sync-repository-documentdb.js +39 -19
  200. package/syncs/repositories/sync-repository-factory.js +4 -4
  201. package/syncs/repositories/sync-repository-interface.js +6 -2
  202. package/syncs/repositories/sync-repository-postgres.js +19 -13
  203. package/syncs/sync.js +104 -100
  204. package/token/repositories/token-repository-factory.js +4 -6
  205. package/types/assertions/index.d.ts +72 -72
  206. package/types/core/index.d.ts +98 -53
  207. package/types/errors/index.d.ts +61 -54
  208. package/types/eslint-config/index.d.ts +40 -40
  209. package/types/lambda/index.d.ts +26 -26
  210. package/types/logs/index.d.ts +4 -4
  211. package/types/prettier-config/index.d.ts +5 -5
  212. package/types/test-environment/index.d.ts +14 -14
  213. package/types/tsconfig.json +95 -93
  214. package/user/repositories/user-repository-factory.js +4 -4
  215. package/user/tests/doubles/test-user-repository.js +5 -2
  216. package/user/use-cases/authenticate-user.js +2 -4
  217. package/user/use-cases/authenticate-with-shared-secret.js +1 -1
  218. package/user/use-cases/create-individual-user.js +8 -7
  219. package/user/use-cases/create-organization-user.js +1 -1
  220. package/user/use-cases/create-token-for-user-id.js +1 -1
  221. package/user/use-cases/delete-user.js +47 -0
  222. package/user/use-cases/get-user-from-adopter-jwt.js +0 -2
  223. package/user/use-cases/get-user-from-bearer-token.js +7 -3
  224. package/user/use-cases/get-user-from-x-frigg-headers.js +14 -11
  225. package/user/use-cases/login-user.js +8 -8
  226. package/user/user.js +18 -4
  227. package/utils/backend-path.js +2 -2
  228. package/utils/index.js +4 -1
  229. package/websocket/repositories/websocket-connection-repository-documentdb.js +46 -21
  230. package/websocket/repositories/websocket-connection-repository-factory.js +4 -8
  231. package/websocket/repositories/websocket-connection-repository-mongo.js +26 -16
  232. package/websocket/repositories/websocket-connection-repository-postgres.js +26 -15
  233. package/websocket/repositories/websocket-connection-repository.js +26 -20
  234. package/websocket/websocket-message-sender-interface.js +38 -0
  235. package/database/adapters/lambda-invoker.js +0 -97
  236. package/database/repositories/migration-status-repository-s3.js +0 -137
  237. package/infrastructure/scheduler/eventbridge-scheduler-adapter.js +0 -184
@@ -85,6 +85,24 @@ 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>
99
+ /**
100
+ * Model ScheduledJob
101
+ * One-time scheduled jobs for poll-and-dispatch scheduling pattern.
102
+ * Used by providers without native one-time scheduling APIs (e.g., Netlify).
103
+ * A cron function queries for due jobs and dispatches them to a queue.
104
+ */
105
+ export type ScheduledJob = $Result.DefaultSelection<Prisma.$ScheduledJobPayload>
88
106
 
89
107
  /**
90
108
  * Enums
@@ -117,6 +135,26 @@ export const AssociationType: {
117
135
 
118
136
  export type AssociationType = (typeof AssociationType)[keyof typeof AssociationType]
119
137
 
138
+
139
+ export const AdminProcessState: {
140
+ PENDING: 'PENDING',
141
+ RUNNING: 'RUNNING',
142
+ COMPLETED: 'COMPLETED',
143
+ FAILED: 'FAILED'
144
+ };
145
+
146
+ export type AdminProcessState = (typeof AdminProcessState)[keyof typeof AdminProcessState]
147
+
148
+
149
+ export const AdminTrigger: {
150
+ MANUAL: 'MANUAL',
151
+ SCHEDULED: 'SCHEDULED',
152
+ QUEUE: 'QUEUE',
153
+ WEBHOOK: 'WEBHOOK'
154
+ };
155
+
156
+ export type AdminTrigger = (typeof AdminTrigger)[keyof typeof AdminTrigger]
157
+
120
158
  }
121
159
 
122
160
  export type UserType = $Enums.UserType
@@ -131,6 +169,14 @@ export type AssociationType = $Enums.AssociationType
131
169
 
132
170
  export const AssociationType: typeof $Enums.AssociationType
133
171
 
172
+ export type AdminProcessState = $Enums.AdminProcessState
173
+
174
+ export const AdminProcessState: typeof $Enums.AdminProcessState
175
+
176
+ export type AdminTrigger = $Enums.AdminTrigger
177
+
178
+ export const AdminTrigger: typeof $Enums.AdminTrigger
179
+
134
180
  /**
135
181
  * ## Prisma Client ʲˢ
136
182
  *
@@ -345,6 +391,36 @@ export class PrismaClient<
345
391
  * ```
346
392
  */
347
393
  get websocketConnection(): Prisma.WebsocketConnectionDelegate<ExtArgs, ClientOptions>;
394
+
395
+ /**
396
+ * `prisma.adminProcess`: Exposes CRUD operations for the **AdminProcess** model.
397
+ * Example usage:
398
+ * ```ts
399
+ * // Fetch zero or more AdminProcesses
400
+ * const adminProcesses = await prisma.adminProcess.findMany()
401
+ * ```
402
+ */
403
+ get adminProcess(): Prisma.AdminProcessDelegate<ExtArgs, ClientOptions>;
404
+
405
+ /**
406
+ * `prisma.scriptSchedule`: Exposes CRUD operations for the **ScriptSchedule** model.
407
+ * Example usage:
408
+ * ```ts
409
+ * // Fetch zero or more ScriptSchedules
410
+ * const scriptSchedules = await prisma.scriptSchedule.findMany()
411
+ * ```
412
+ */
413
+ get scriptSchedule(): Prisma.ScriptScheduleDelegate<ExtArgs, ClientOptions>;
414
+
415
+ /**
416
+ * `prisma.scheduledJob`: Exposes CRUD operations for the **ScheduledJob** model.
417
+ * Example usage:
418
+ * ```ts
419
+ * // Fetch zero or more ScheduledJobs
420
+ * const scheduledJobs = await prisma.scheduledJob.findMany()
421
+ * ```
422
+ */
423
+ get scheduledJob(): Prisma.ScheduledJobDelegate<ExtArgs, ClientOptions>;
348
424
  }
349
425
 
350
426
  export namespace Prisma {
@@ -797,7 +873,10 @@ export namespace Prisma {
797
873
  Association: 'Association',
798
874
  AssociationObject: 'AssociationObject',
799
875
  State: 'State',
800
- WebsocketConnection: 'WebsocketConnection'
876
+ WebsocketConnection: 'WebsocketConnection',
877
+ AdminProcess: 'AdminProcess',
878
+ ScriptSchedule: 'ScriptSchedule',
879
+ ScheduledJob: 'ScheduledJob'
801
880
  };
802
881
 
803
882
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -816,7 +895,7 @@ export namespace Prisma {
816
895
  omit: GlobalOmitOptions
817
896
  }
818
897
  meta: {
819
- modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection"
898
+ modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminProcess" | "scriptSchedule" | "scheduledJob"
820
899
  txIsolationLevel: never
821
900
  }
822
901
  model: {
@@ -1782,6 +1861,228 @@ export namespace Prisma {
1782
1861
  }
1783
1862
  }
1784
1863
  }
1864
+ AdminProcess: {
1865
+ payload: Prisma.$AdminProcessPayload<ExtArgs>
1866
+ fields: Prisma.AdminProcessFieldRefs
1867
+ operations: {
1868
+ findUnique: {
1869
+ args: Prisma.AdminProcessFindUniqueArgs<ExtArgs>
1870
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload> | null
1871
+ }
1872
+ findUniqueOrThrow: {
1873
+ args: Prisma.AdminProcessFindUniqueOrThrowArgs<ExtArgs>
1874
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1875
+ }
1876
+ findFirst: {
1877
+ args: Prisma.AdminProcessFindFirstArgs<ExtArgs>
1878
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload> | null
1879
+ }
1880
+ findFirstOrThrow: {
1881
+ args: Prisma.AdminProcessFindFirstOrThrowArgs<ExtArgs>
1882
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1883
+ }
1884
+ findMany: {
1885
+ args: Prisma.AdminProcessFindManyArgs<ExtArgs>
1886
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>[]
1887
+ }
1888
+ create: {
1889
+ args: Prisma.AdminProcessCreateArgs<ExtArgs>
1890
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1891
+ }
1892
+ createMany: {
1893
+ args: Prisma.AdminProcessCreateManyArgs<ExtArgs>
1894
+ result: BatchPayload
1895
+ }
1896
+ delete: {
1897
+ args: Prisma.AdminProcessDeleteArgs<ExtArgs>
1898
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1899
+ }
1900
+ update: {
1901
+ args: Prisma.AdminProcessUpdateArgs<ExtArgs>
1902
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1903
+ }
1904
+ deleteMany: {
1905
+ args: Prisma.AdminProcessDeleteManyArgs<ExtArgs>
1906
+ result: BatchPayload
1907
+ }
1908
+ updateMany: {
1909
+ args: Prisma.AdminProcessUpdateManyArgs<ExtArgs>
1910
+ result: BatchPayload
1911
+ }
1912
+ upsert: {
1913
+ args: Prisma.AdminProcessUpsertArgs<ExtArgs>
1914
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1915
+ }
1916
+ aggregate: {
1917
+ args: Prisma.AdminProcessAggregateArgs<ExtArgs>
1918
+ result: $Utils.Optional<AggregateAdminProcess>
1919
+ }
1920
+ groupBy: {
1921
+ args: Prisma.AdminProcessGroupByArgs<ExtArgs>
1922
+ result: $Utils.Optional<AdminProcessGroupByOutputType>[]
1923
+ }
1924
+ findRaw: {
1925
+ args: Prisma.AdminProcessFindRawArgs<ExtArgs>
1926
+ result: JsonObject
1927
+ }
1928
+ aggregateRaw: {
1929
+ args: Prisma.AdminProcessAggregateRawArgs<ExtArgs>
1930
+ result: JsonObject
1931
+ }
1932
+ count: {
1933
+ args: Prisma.AdminProcessCountArgs<ExtArgs>
1934
+ result: $Utils.Optional<AdminProcessCountAggregateOutputType> | number
1935
+ }
1936
+ }
1937
+ }
1938
+ ScriptSchedule: {
1939
+ payload: Prisma.$ScriptSchedulePayload<ExtArgs>
1940
+ fields: Prisma.ScriptScheduleFieldRefs
1941
+ operations: {
1942
+ findUnique: {
1943
+ args: Prisma.ScriptScheduleFindUniqueArgs<ExtArgs>
1944
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload> | null
1945
+ }
1946
+ findUniqueOrThrow: {
1947
+ args: Prisma.ScriptScheduleFindUniqueOrThrowArgs<ExtArgs>
1948
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1949
+ }
1950
+ findFirst: {
1951
+ args: Prisma.ScriptScheduleFindFirstArgs<ExtArgs>
1952
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload> | null
1953
+ }
1954
+ findFirstOrThrow: {
1955
+ args: Prisma.ScriptScheduleFindFirstOrThrowArgs<ExtArgs>
1956
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1957
+ }
1958
+ findMany: {
1959
+ args: Prisma.ScriptScheduleFindManyArgs<ExtArgs>
1960
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>[]
1961
+ }
1962
+ create: {
1963
+ args: Prisma.ScriptScheduleCreateArgs<ExtArgs>
1964
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1965
+ }
1966
+ createMany: {
1967
+ args: Prisma.ScriptScheduleCreateManyArgs<ExtArgs>
1968
+ result: BatchPayload
1969
+ }
1970
+ delete: {
1971
+ args: Prisma.ScriptScheduleDeleteArgs<ExtArgs>
1972
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1973
+ }
1974
+ update: {
1975
+ args: Prisma.ScriptScheduleUpdateArgs<ExtArgs>
1976
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1977
+ }
1978
+ deleteMany: {
1979
+ args: Prisma.ScriptScheduleDeleteManyArgs<ExtArgs>
1980
+ result: BatchPayload
1981
+ }
1982
+ updateMany: {
1983
+ args: Prisma.ScriptScheduleUpdateManyArgs<ExtArgs>
1984
+ result: BatchPayload
1985
+ }
1986
+ upsert: {
1987
+ args: Prisma.ScriptScheduleUpsertArgs<ExtArgs>
1988
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1989
+ }
1990
+ aggregate: {
1991
+ args: Prisma.ScriptScheduleAggregateArgs<ExtArgs>
1992
+ result: $Utils.Optional<AggregateScriptSchedule>
1993
+ }
1994
+ groupBy: {
1995
+ args: Prisma.ScriptScheduleGroupByArgs<ExtArgs>
1996
+ result: $Utils.Optional<ScriptScheduleGroupByOutputType>[]
1997
+ }
1998
+ findRaw: {
1999
+ args: Prisma.ScriptScheduleFindRawArgs<ExtArgs>
2000
+ result: JsonObject
2001
+ }
2002
+ aggregateRaw: {
2003
+ args: Prisma.ScriptScheduleAggregateRawArgs<ExtArgs>
2004
+ result: JsonObject
2005
+ }
2006
+ count: {
2007
+ args: Prisma.ScriptScheduleCountArgs<ExtArgs>
2008
+ result: $Utils.Optional<ScriptScheduleCountAggregateOutputType> | number
2009
+ }
2010
+ }
2011
+ }
2012
+ ScheduledJob: {
2013
+ payload: Prisma.$ScheduledJobPayload<ExtArgs>
2014
+ fields: Prisma.ScheduledJobFieldRefs
2015
+ operations: {
2016
+ findUnique: {
2017
+ args: Prisma.ScheduledJobFindUniqueArgs<ExtArgs>
2018
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload> | null
2019
+ }
2020
+ findUniqueOrThrow: {
2021
+ args: Prisma.ScheduledJobFindUniqueOrThrowArgs<ExtArgs>
2022
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2023
+ }
2024
+ findFirst: {
2025
+ args: Prisma.ScheduledJobFindFirstArgs<ExtArgs>
2026
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload> | null
2027
+ }
2028
+ findFirstOrThrow: {
2029
+ args: Prisma.ScheduledJobFindFirstOrThrowArgs<ExtArgs>
2030
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2031
+ }
2032
+ findMany: {
2033
+ args: Prisma.ScheduledJobFindManyArgs<ExtArgs>
2034
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>[]
2035
+ }
2036
+ create: {
2037
+ args: Prisma.ScheduledJobCreateArgs<ExtArgs>
2038
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2039
+ }
2040
+ createMany: {
2041
+ args: Prisma.ScheduledJobCreateManyArgs<ExtArgs>
2042
+ result: BatchPayload
2043
+ }
2044
+ delete: {
2045
+ args: Prisma.ScheduledJobDeleteArgs<ExtArgs>
2046
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2047
+ }
2048
+ update: {
2049
+ args: Prisma.ScheduledJobUpdateArgs<ExtArgs>
2050
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2051
+ }
2052
+ deleteMany: {
2053
+ args: Prisma.ScheduledJobDeleteManyArgs<ExtArgs>
2054
+ result: BatchPayload
2055
+ }
2056
+ updateMany: {
2057
+ args: Prisma.ScheduledJobUpdateManyArgs<ExtArgs>
2058
+ result: BatchPayload
2059
+ }
2060
+ upsert: {
2061
+ args: Prisma.ScheduledJobUpsertArgs<ExtArgs>
2062
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2063
+ }
2064
+ aggregate: {
2065
+ args: Prisma.ScheduledJobAggregateArgs<ExtArgs>
2066
+ result: $Utils.Optional<AggregateScheduledJob>
2067
+ }
2068
+ groupBy: {
2069
+ args: Prisma.ScheduledJobGroupByArgs<ExtArgs>
2070
+ result: $Utils.Optional<ScheduledJobGroupByOutputType>[]
2071
+ }
2072
+ findRaw: {
2073
+ args: Prisma.ScheduledJobFindRawArgs<ExtArgs>
2074
+ result: JsonObject
2075
+ }
2076
+ aggregateRaw: {
2077
+ args: Prisma.ScheduledJobAggregateRawArgs<ExtArgs>
2078
+ result: JsonObject
2079
+ }
2080
+ count: {
2081
+ args: Prisma.ScheduledJobCountArgs<ExtArgs>
2082
+ result: $Utils.Optional<ScheduledJobCountAggregateOutputType> | number
2083
+ }
2084
+ }
2085
+ }
1785
2086
  }
1786
2087
  } & {
1787
2088
  other: {
@@ -1874,6 +2175,9 @@ export namespace Prisma {
1874
2175
  associationObject?: AssociationObjectOmit
1875
2176
  state?: StateOmit
1876
2177
  websocketConnection?: WebsocketConnectionOmit
2178
+ adminProcess?: AdminProcessOmit
2179
+ scriptSchedule?: ScriptScheduleOmit
2180
+ scheduledJob?: ScheduledJobOmit
1877
2181
  }
1878
2182
 
1879
2183
  /* Types for Logging */
@@ -15775,55 +16079,2989 @@ export namespace Prisma {
15775
16079
 
15776
16080
 
15777
16081
  /**
15778
- * Enums
16082
+ * Model AdminProcess
15779
16083
  */
15780
16084
 
15781
- export const UserScalarFieldEnum: {
15782
- id: 'id',
15783
- type: 'type',
15784
- createdAt: 'createdAt',
15785
- updatedAt: 'updatedAt',
15786
- email: 'email',
15787
- username: 'username',
15788
- hashword: 'hashword',
15789
- appUserId: 'appUserId',
15790
- organizationId: 'organizationId',
15791
- appOrgId: 'appOrgId',
15792
- name: 'name'
15793
- };
15794
-
15795
- export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
16085
+ export type AggregateAdminProcess = {
16086
+ _count: AdminProcessCountAggregateOutputType | null
16087
+ _min: AdminProcessMinAggregateOutputType | null
16088
+ _max: AdminProcessMaxAggregateOutputType | null
16089
+ }
15796
16090
 
16091
+ export type AdminProcessMinAggregateOutputType = {
16092
+ id: string | null
16093
+ name: string | null
16094
+ type: string | null
16095
+ state: $Enums.AdminProcessState | null
16096
+ parentProcessId: string | null
16097
+ createdAt: Date | null
16098
+ updatedAt: Date | null
16099
+ }
15797
16100
 
15798
- export const TokenScalarFieldEnum: {
15799
- id: 'id',
15800
- token: 'token',
15801
- created: 'created',
15802
- expires: 'expires',
15803
- userId: 'userId'
15804
- };
16101
+ export type AdminProcessMaxAggregateOutputType = {
16102
+ id: string | null
16103
+ name: string | null
16104
+ type: string | null
16105
+ state: $Enums.AdminProcessState | null
16106
+ parentProcessId: string | null
16107
+ createdAt: Date | null
16108
+ updatedAt: Date | null
16109
+ }
15805
16110
 
15806
- export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
16111
+ export type AdminProcessCountAggregateOutputType = {
16112
+ id: number
16113
+ name: number
16114
+ type: number
16115
+ state: number
16116
+ context: number
16117
+ results: number
16118
+ childProcesses: number
16119
+ parentProcessId: number
16120
+ createdAt: number
16121
+ updatedAt: number
16122
+ _all: number
16123
+ }
15807
16124
 
15808
16125
 
15809
- export const CredentialScalarFieldEnum: {
15810
- id: 'id',
15811
- userId: 'userId',
15812
- authIsValid: 'authIsValid',
15813
- externalId: 'externalId',
15814
- data: 'data',
15815
- createdAt: 'createdAt',
15816
- updatedAt: 'updatedAt'
15817
- };
16126
+ export type AdminProcessMinAggregateInputType = {
16127
+ id?: true
16128
+ name?: true
16129
+ type?: true
16130
+ state?: true
16131
+ parentProcessId?: true
16132
+ createdAt?: true
16133
+ updatedAt?: true
16134
+ }
15818
16135
 
15819
- export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
16136
+ export type AdminProcessMaxAggregateInputType = {
16137
+ id?: true
16138
+ name?: true
16139
+ type?: true
16140
+ state?: true
16141
+ parentProcessId?: true
16142
+ createdAt?: true
16143
+ updatedAt?: true
16144
+ }
15820
16145
 
16146
+ export type AdminProcessCountAggregateInputType = {
16147
+ id?: true
16148
+ name?: true
16149
+ type?: true
16150
+ state?: true
16151
+ context?: true
16152
+ results?: true
16153
+ childProcesses?: true
16154
+ parentProcessId?: true
16155
+ createdAt?: true
16156
+ updatedAt?: true
16157
+ _all?: true
16158
+ }
15821
16159
 
15822
- export const EntityScalarFieldEnum: {
15823
- id: 'id',
15824
- credentialId: 'credentialId',
15825
- userId: 'userId',
15826
- name: 'name',
16160
+ export type AdminProcessAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16161
+ /**
16162
+ * Filter which AdminProcess to aggregate.
16163
+ */
16164
+ where?: AdminProcessWhereInput
16165
+ /**
16166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
16167
+ *
16168
+ * Determine the order of AdminProcesses to fetch.
16169
+ */
16170
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
16171
+ /**
16172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
16173
+ *
16174
+ * Sets the start position
16175
+ */
16176
+ cursor?: AdminProcessWhereUniqueInput
16177
+ /**
16178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16179
+ *
16180
+ * Take `±n` AdminProcesses from the position of the cursor.
16181
+ */
16182
+ take?: number
16183
+ /**
16184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16185
+ *
16186
+ * Skip the first `n` AdminProcesses.
16187
+ */
16188
+ skip?: number
16189
+ /**
16190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
16191
+ *
16192
+ * Count returned AdminProcesses
16193
+ **/
16194
+ _count?: true | AdminProcessCountAggregateInputType
16195
+ /**
16196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
16197
+ *
16198
+ * Select which fields to find the minimum value
16199
+ **/
16200
+ _min?: AdminProcessMinAggregateInputType
16201
+ /**
16202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
16203
+ *
16204
+ * Select which fields to find the maximum value
16205
+ **/
16206
+ _max?: AdminProcessMaxAggregateInputType
16207
+ }
16208
+
16209
+ export type GetAdminProcessAggregateType<T extends AdminProcessAggregateArgs> = {
16210
+ [P in keyof T & keyof AggregateAdminProcess]: P extends '_count' | 'count'
16211
+ ? T[P] extends true
16212
+ ? number
16213
+ : GetScalarType<T[P], AggregateAdminProcess[P]>
16214
+ : GetScalarType<T[P], AggregateAdminProcess[P]>
16215
+ }
16216
+
16217
+
16218
+
16219
+
16220
+ export type AdminProcessGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16221
+ where?: AdminProcessWhereInput
16222
+ orderBy?: AdminProcessOrderByWithAggregationInput | AdminProcessOrderByWithAggregationInput[]
16223
+ by: AdminProcessScalarFieldEnum[] | AdminProcessScalarFieldEnum
16224
+ having?: AdminProcessScalarWhereWithAggregatesInput
16225
+ take?: number
16226
+ skip?: number
16227
+ _count?: AdminProcessCountAggregateInputType | true
16228
+ _min?: AdminProcessMinAggregateInputType
16229
+ _max?: AdminProcessMaxAggregateInputType
16230
+ }
16231
+
16232
+ export type AdminProcessGroupByOutputType = {
16233
+ id: string
16234
+ name: string
16235
+ type: string
16236
+ state: $Enums.AdminProcessState
16237
+ context: JsonValue
16238
+ results: JsonValue
16239
+ childProcesses: string[]
16240
+ parentProcessId: string | null
16241
+ createdAt: Date
16242
+ updatedAt: Date
16243
+ _count: AdminProcessCountAggregateOutputType | null
16244
+ _min: AdminProcessMinAggregateOutputType | null
16245
+ _max: AdminProcessMaxAggregateOutputType | null
16246
+ }
16247
+
16248
+ type GetAdminProcessGroupByPayload<T extends AdminProcessGroupByArgs> = Prisma.PrismaPromise<
16249
+ Array<
16250
+ PickEnumerable<AdminProcessGroupByOutputType, T['by']> &
16251
+ {
16252
+ [P in ((keyof T) & (keyof AdminProcessGroupByOutputType))]: P extends '_count'
16253
+ ? T[P] extends boolean
16254
+ ? number
16255
+ : GetScalarType<T[P], AdminProcessGroupByOutputType[P]>
16256
+ : GetScalarType<T[P], AdminProcessGroupByOutputType[P]>
16257
+ }
16258
+ >
16259
+ >
16260
+
16261
+
16262
+ export type AdminProcessSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
16263
+ id?: boolean
16264
+ name?: boolean
16265
+ type?: boolean
16266
+ state?: boolean
16267
+ context?: boolean
16268
+ results?: boolean
16269
+ childProcesses?: boolean
16270
+ parentProcessId?: boolean
16271
+ createdAt?: boolean
16272
+ updatedAt?: boolean
16273
+ }, ExtArgs["result"]["adminProcess"]>
16274
+
16275
+
16276
+
16277
+ export type AdminProcessSelectScalar = {
16278
+ id?: boolean
16279
+ name?: boolean
16280
+ type?: boolean
16281
+ state?: boolean
16282
+ context?: boolean
16283
+ results?: boolean
16284
+ childProcesses?: boolean
16285
+ parentProcessId?: boolean
16286
+ createdAt?: boolean
16287
+ updatedAt?: boolean
16288
+ }
16289
+
16290
+ export type AdminProcessOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "type" | "state" | "context" | "results" | "childProcesses" | "parentProcessId" | "createdAt" | "updatedAt", ExtArgs["result"]["adminProcess"]>
16291
+
16292
+ export type $AdminProcessPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16293
+ name: "AdminProcess"
16294
+ objects: {}
16295
+ scalars: $Extensions.GetPayloadResult<{
16296
+ id: string
16297
+ name: string
16298
+ type: string
16299
+ state: $Enums.AdminProcessState
16300
+ context: Prisma.JsonValue
16301
+ results: Prisma.JsonValue
16302
+ childProcesses: string[]
16303
+ parentProcessId: string | null
16304
+ createdAt: Date
16305
+ updatedAt: Date
16306
+ }, ExtArgs["result"]["adminProcess"]>
16307
+ composites: {}
16308
+ }
16309
+
16310
+ type AdminProcessGetPayload<S extends boolean | null | undefined | AdminProcessDefaultArgs> = $Result.GetResult<Prisma.$AdminProcessPayload, S>
16311
+
16312
+ type AdminProcessCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
16313
+ Omit<AdminProcessFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
16314
+ select?: AdminProcessCountAggregateInputType | true
16315
+ }
16316
+
16317
+ export interface AdminProcessDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
16318
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminProcess'], meta: { name: 'AdminProcess' } }
16319
+ /**
16320
+ * Find zero or one AdminProcess that matches the filter.
16321
+ * @param {AdminProcessFindUniqueArgs} args - Arguments to find a AdminProcess
16322
+ * @example
16323
+ * // Get one AdminProcess
16324
+ * const adminProcess = await prisma.adminProcess.findUnique({
16325
+ * where: {
16326
+ * // ... provide filter here
16327
+ * }
16328
+ * })
16329
+ */
16330
+ findUnique<T extends AdminProcessFindUniqueArgs>(args: SelectSubset<T, AdminProcessFindUniqueArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
16331
+
16332
+ /**
16333
+ * Find one AdminProcess that matches the filter or throw an error with `error.code='P2025'`
16334
+ * if no matches were found.
16335
+ * @param {AdminProcessFindUniqueOrThrowArgs} args - Arguments to find a AdminProcess
16336
+ * @example
16337
+ * // Get one AdminProcess
16338
+ * const adminProcess = await prisma.adminProcess.findUniqueOrThrow({
16339
+ * where: {
16340
+ * // ... provide filter here
16341
+ * }
16342
+ * })
16343
+ */
16344
+ findUniqueOrThrow<T extends AdminProcessFindUniqueOrThrowArgs>(args: SelectSubset<T, AdminProcessFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
16345
+
16346
+ /**
16347
+ * Find the first AdminProcess that matches the filter.
16348
+ * Note, that providing `undefined` is treated as the value not being there.
16349
+ * Read more here: https://pris.ly/d/null-undefined
16350
+ * @param {AdminProcessFindFirstArgs} args - Arguments to find a AdminProcess
16351
+ * @example
16352
+ * // Get one AdminProcess
16353
+ * const adminProcess = await prisma.adminProcess.findFirst({
16354
+ * where: {
16355
+ * // ... provide filter here
16356
+ * }
16357
+ * })
16358
+ */
16359
+ findFirst<T extends AdminProcessFindFirstArgs>(args?: SelectSubset<T, AdminProcessFindFirstArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
16360
+
16361
+ /**
16362
+ * Find the first AdminProcess that matches the filter or
16363
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
16364
+ * Note, that providing `undefined` is treated as the value not being there.
16365
+ * Read more here: https://pris.ly/d/null-undefined
16366
+ * @param {AdminProcessFindFirstOrThrowArgs} args - Arguments to find a AdminProcess
16367
+ * @example
16368
+ * // Get one AdminProcess
16369
+ * const adminProcess = await prisma.adminProcess.findFirstOrThrow({
16370
+ * where: {
16371
+ * // ... provide filter here
16372
+ * }
16373
+ * })
16374
+ */
16375
+ findFirstOrThrow<T extends AdminProcessFindFirstOrThrowArgs>(args?: SelectSubset<T, AdminProcessFindFirstOrThrowArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
16376
+
16377
+ /**
16378
+ * Find zero or more AdminProcesses that matches the filter.
16379
+ * Note, that providing `undefined` is treated as the value not being there.
16380
+ * Read more here: https://pris.ly/d/null-undefined
16381
+ * @param {AdminProcessFindManyArgs} args - Arguments to filter and select certain fields only.
16382
+ * @example
16383
+ * // Get all AdminProcesses
16384
+ * const adminProcesses = await prisma.adminProcess.findMany()
16385
+ *
16386
+ * // Get first 10 AdminProcesses
16387
+ * const adminProcesses = await prisma.adminProcess.findMany({ take: 10 })
16388
+ *
16389
+ * // Only select the `id`
16390
+ * const adminProcessWithIdOnly = await prisma.adminProcess.findMany({ select: { id: true } })
16391
+ *
16392
+ */
16393
+ findMany<T extends AdminProcessFindManyArgs>(args?: SelectSubset<T, AdminProcessFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
16394
+
16395
+ /**
16396
+ * Create a AdminProcess.
16397
+ * @param {AdminProcessCreateArgs} args - Arguments to create a AdminProcess.
16398
+ * @example
16399
+ * // Create one AdminProcess
16400
+ * const AdminProcess = await prisma.adminProcess.create({
16401
+ * data: {
16402
+ * // ... data to create a AdminProcess
16403
+ * }
16404
+ * })
16405
+ *
16406
+ */
16407
+ create<T extends AdminProcessCreateArgs>(args: SelectSubset<T, AdminProcessCreateArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
16408
+
16409
+ /**
16410
+ * Create many AdminProcesses.
16411
+ * @param {AdminProcessCreateManyArgs} args - Arguments to create many AdminProcesses.
16412
+ * @example
16413
+ * // Create many AdminProcesses
16414
+ * const adminProcess = await prisma.adminProcess.createMany({
16415
+ * data: [
16416
+ * // ... provide data here
16417
+ * ]
16418
+ * })
16419
+ *
16420
+ */
16421
+ createMany<T extends AdminProcessCreateManyArgs>(args?: SelectSubset<T, AdminProcessCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
16422
+
16423
+ /**
16424
+ * Delete a AdminProcess.
16425
+ * @param {AdminProcessDeleteArgs} args - Arguments to delete one AdminProcess.
16426
+ * @example
16427
+ * // Delete one AdminProcess
16428
+ * const AdminProcess = await prisma.adminProcess.delete({
16429
+ * where: {
16430
+ * // ... filter to delete one AdminProcess
16431
+ * }
16432
+ * })
16433
+ *
16434
+ */
16435
+ delete<T extends AdminProcessDeleteArgs>(args: SelectSubset<T, AdminProcessDeleteArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
16436
+
16437
+ /**
16438
+ * Update one AdminProcess.
16439
+ * @param {AdminProcessUpdateArgs} args - Arguments to update one AdminProcess.
16440
+ * @example
16441
+ * // Update one AdminProcess
16442
+ * const adminProcess = await prisma.adminProcess.update({
16443
+ * where: {
16444
+ * // ... provide filter here
16445
+ * },
16446
+ * data: {
16447
+ * // ... provide data here
16448
+ * }
16449
+ * })
16450
+ *
16451
+ */
16452
+ update<T extends AdminProcessUpdateArgs>(args: SelectSubset<T, AdminProcessUpdateArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
16453
+
16454
+ /**
16455
+ * Delete zero or more AdminProcesses.
16456
+ * @param {AdminProcessDeleteManyArgs} args - Arguments to filter AdminProcesses to delete.
16457
+ * @example
16458
+ * // Delete a few AdminProcesses
16459
+ * const { count } = await prisma.adminProcess.deleteMany({
16460
+ * where: {
16461
+ * // ... provide filter here
16462
+ * }
16463
+ * })
16464
+ *
16465
+ */
16466
+ deleteMany<T extends AdminProcessDeleteManyArgs>(args?: SelectSubset<T, AdminProcessDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
16467
+
16468
+ /**
16469
+ * Update zero or more AdminProcesses.
16470
+ * Note, that providing `undefined` is treated as the value not being there.
16471
+ * Read more here: https://pris.ly/d/null-undefined
16472
+ * @param {AdminProcessUpdateManyArgs} args - Arguments to update one or more rows.
16473
+ * @example
16474
+ * // Update many AdminProcesses
16475
+ * const adminProcess = await prisma.adminProcess.updateMany({
16476
+ * where: {
16477
+ * // ... provide filter here
16478
+ * },
16479
+ * data: {
16480
+ * // ... provide data here
16481
+ * }
16482
+ * })
16483
+ *
16484
+ */
16485
+ updateMany<T extends AdminProcessUpdateManyArgs>(args: SelectSubset<T, AdminProcessUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
16486
+
16487
+ /**
16488
+ * Create or update one AdminProcess.
16489
+ * @param {AdminProcessUpsertArgs} args - Arguments to update or create a AdminProcess.
16490
+ * @example
16491
+ * // Update or create a AdminProcess
16492
+ * const adminProcess = await prisma.adminProcess.upsert({
16493
+ * create: {
16494
+ * // ... data to create a AdminProcess
16495
+ * },
16496
+ * update: {
16497
+ * // ... in case it already exists, update
16498
+ * },
16499
+ * where: {
16500
+ * // ... the filter for the AdminProcess we want to update
16501
+ * }
16502
+ * })
16503
+ */
16504
+ upsert<T extends AdminProcessUpsertArgs>(args: SelectSubset<T, AdminProcessUpsertArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
16505
+
16506
+ /**
16507
+ * Find zero or more AdminProcesses that matches the filter.
16508
+ * @param {AdminProcessFindRawArgs} args - Select which filters you would like to apply.
16509
+ * @example
16510
+ * const adminProcess = await prisma.adminProcess.findRaw({
16511
+ * filter: { age: { $gt: 25 } }
16512
+ * })
16513
+ */
16514
+ findRaw(args?: AdminProcessFindRawArgs): Prisma.PrismaPromise<JsonObject>
16515
+
16516
+ /**
16517
+ * Perform aggregation operations on a AdminProcess.
16518
+ * @param {AdminProcessAggregateRawArgs} args - Select which aggregations you would like to apply.
16519
+ * @example
16520
+ * const adminProcess = await prisma.adminProcess.aggregateRaw({
16521
+ * pipeline: [
16522
+ * { $match: { status: "registered" } },
16523
+ * { $group: { _id: "$country", total: { $sum: 1 } } }
16524
+ * ]
16525
+ * })
16526
+ */
16527
+ aggregateRaw(args?: AdminProcessAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
16528
+
16529
+
16530
+ /**
16531
+ * Count the number of AdminProcesses.
16532
+ * Note, that providing `undefined` is treated as the value not being there.
16533
+ * Read more here: https://pris.ly/d/null-undefined
16534
+ * @param {AdminProcessCountArgs} args - Arguments to filter AdminProcesses to count.
16535
+ * @example
16536
+ * // Count the number of AdminProcesses
16537
+ * const count = await prisma.adminProcess.count({
16538
+ * where: {
16539
+ * // ... the filter for the AdminProcesses we want to count
16540
+ * }
16541
+ * })
16542
+ **/
16543
+ count<T extends AdminProcessCountArgs>(
16544
+ args?: Subset<T, AdminProcessCountArgs>,
16545
+ ): Prisma.PrismaPromise<
16546
+ T extends $Utils.Record<'select', any>
16547
+ ? T['select'] extends true
16548
+ ? number
16549
+ : GetScalarType<T['select'], AdminProcessCountAggregateOutputType>
16550
+ : number
16551
+ >
16552
+
16553
+ /**
16554
+ * Allows you to perform aggregations operations on a AdminProcess.
16555
+ * Note, that providing `undefined` is treated as the value not being there.
16556
+ * Read more here: https://pris.ly/d/null-undefined
16557
+ * @param {AdminProcessAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
16558
+ * @example
16559
+ * // Ordered by age ascending
16560
+ * // Where email contains prisma.io
16561
+ * // Limited to the 10 users
16562
+ * const aggregations = await prisma.user.aggregate({
16563
+ * _avg: {
16564
+ * age: true,
16565
+ * },
16566
+ * where: {
16567
+ * email: {
16568
+ * contains: "prisma.io",
16569
+ * },
16570
+ * },
16571
+ * orderBy: {
16572
+ * age: "asc",
16573
+ * },
16574
+ * take: 10,
16575
+ * })
16576
+ **/
16577
+ aggregate<T extends AdminProcessAggregateArgs>(args: Subset<T, AdminProcessAggregateArgs>): Prisma.PrismaPromise<GetAdminProcessAggregateType<T>>
16578
+
16579
+ /**
16580
+ * Group by AdminProcess.
16581
+ * Note, that providing `undefined` is treated as the value not being there.
16582
+ * Read more here: https://pris.ly/d/null-undefined
16583
+ * @param {AdminProcessGroupByArgs} args - Group by arguments.
16584
+ * @example
16585
+ * // Group by city, order by createdAt, get count
16586
+ * const result = await prisma.user.groupBy({
16587
+ * by: ['city', 'createdAt'],
16588
+ * orderBy: {
16589
+ * createdAt: true
16590
+ * },
16591
+ * _count: {
16592
+ * _all: true
16593
+ * },
16594
+ * })
16595
+ *
16596
+ **/
16597
+ groupBy<
16598
+ T extends AdminProcessGroupByArgs,
16599
+ HasSelectOrTake extends Or<
16600
+ Extends<'skip', Keys<T>>,
16601
+ Extends<'take', Keys<T>>
16602
+ >,
16603
+ OrderByArg extends True extends HasSelectOrTake
16604
+ ? { orderBy: AdminProcessGroupByArgs['orderBy'] }
16605
+ : { orderBy?: AdminProcessGroupByArgs['orderBy'] },
16606
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
16607
+ ByFields extends MaybeTupleToUnion<T['by']>,
16608
+ ByValid extends Has<ByFields, OrderFields>,
16609
+ HavingFields extends GetHavingFields<T['having']>,
16610
+ HavingValid extends Has<ByFields, HavingFields>,
16611
+ ByEmpty extends T['by'] extends never[] ? True : False,
16612
+ InputErrors extends ByEmpty extends True
16613
+ ? `Error: "by" must not be empty.`
16614
+ : HavingValid extends False
16615
+ ? {
16616
+ [P in HavingFields]: P extends ByFields
16617
+ ? never
16618
+ : P extends string
16619
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
16620
+ : [
16621
+ Error,
16622
+ 'Field ',
16623
+ P,
16624
+ ` in "having" needs to be provided in "by"`,
16625
+ ]
16626
+ }[HavingFields]
16627
+ : 'take' extends Keys<T>
16628
+ ? 'orderBy' extends Keys<T>
16629
+ ? ByValid extends True
16630
+ ? {}
16631
+ : {
16632
+ [P in OrderFields]: P extends ByFields
16633
+ ? never
16634
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
16635
+ }[OrderFields]
16636
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
16637
+ : 'skip' extends Keys<T>
16638
+ ? 'orderBy' extends Keys<T>
16639
+ ? ByValid extends True
16640
+ ? {}
16641
+ : {
16642
+ [P in OrderFields]: P extends ByFields
16643
+ ? never
16644
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
16645
+ }[OrderFields]
16646
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
16647
+ : ByValid extends True
16648
+ ? {}
16649
+ : {
16650
+ [P in OrderFields]: P extends ByFields
16651
+ ? never
16652
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
16653
+ }[OrderFields]
16654
+ >(args: SubsetIntersection<T, AdminProcessGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminProcessGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
16655
+ /**
16656
+ * Fields of the AdminProcess model
16657
+ */
16658
+ readonly fields: AdminProcessFieldRefs;
16659
+ }
16660
+
16661
+ /**
16662
+ * The delegate class that acts as a "Promise-like" for AdminProcess.
16663
+ * Why is this prefixed with `Prisma__`?
16664
+ * Because we want to prevent naming conflicts as mentioned in
16665
+ * https://github.com/prisma/prisma-client-js/issues/707
16666
+ */
16667
+ export interface Prisma__AdminProcessClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
16668
+ readonly [Symbol.toStringTag]: "PrismaPromise"
16669
+ /**
16670
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
16671
+ * @param onfulfilled The callback to execute when the Promise is resolved.
16672
+ * @param onrejected The callback to execute when the Promise is rejected.
16673
+ * @returns A Promise for the completion of which ever callback is executed.
16674
+ */
16675
+ 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>
16676
+ /**
16677
+ * Attaches a callback for only the rejection of the Promise.
16678
+ * @param onrejected The callback to execute when the Promise is rejected.
16679
+ * @returns A Promise for the completion of the callback.
16680
+ */
16681
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
16682
+ /**
16683
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
16684
+ * resolved value cannot be modified from the callback.
16685
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
16686
+ * @returns A Promise for the completion of the callback.
16687
+ */
16688
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
16689
+ }
16690
+
16691
+
16692
+
16693
+
16694
+ /**
16695
+ * Fields of the AdminProcess model
16696
+ */
16697
+ interface AdminProcessFieldRefs {
16698
+ readonly id: FieldRef<"AdminProcess", 'String'>
16699
+ readonly name: FieldRef<"AdminProcess", 'String'>
16700
+ readonly type: FieldRef<"AdminProcess", 'String'>
16701
+ readonly state: FieldRef<"AdminProcess", 'AdminProcessState'>
16702
+ readonly context: FieldRef<"AdminProcess", 'Json'>
16703
+ readonly results: FieldRef<"AdminProcess", 'Json'>
16704
+ readonly childProcesses: FieldRef<"AdminProcess", 'String[]'>
16705
+ readonly parentProcessId: FieldRef<"AdminProcess", 'String'>
16706
+ readonly createdAt: FieldRef<"AdminProcess", 'DateTime'>
16707
+ readonly updatedAt: FieldRef<"AdminProcess", 'DateTime'>
16708
+ }
16709
+
16710
+
16711
+ // Custom InputTypes
16712
+ /**
16713
+ * AdminProcess findUnique
16714
+ */
16715
+ export type AdminProcessFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16716
+ /**
16717
+ * Select specific fields to fetch from the AdminProcess
16718
+ */
16719
+ select?: AdminProcessSelect<ExtArgs> | null
16720
+ /**
16721
+ * Omit specific fields from the AdminProcess
16722
+ */
16723
+ omit?: AdminProcessOmit<ExtArgs> | null
16724
+ /**
16725
+ * Filter, which AdminProcess to fetch.
16726
+ */
16727
+ where: AdminProcessWhereUniqueInput
16728
+ }
16729
+
16730
+ /**
16731
+ * AdminProcess findUniqueOrThrow
16732
+ */
16733
+ export type AdminProcessFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16734
+ /**
16735
+ * Select specific fields to fetch from the AdminProcess
16736
+ */
16737
+ select?: AdminProcessSelect<ExtArgs> | null
16738
+ /**
16739
+ * Omit specific fields from the AdminProcess
16740
+ */
16741
+ omit?: AdminProcessOmit<ExtArgs> | null
16742
+ /**
16743
+ * Filter, which AdminProcess to fetch.
16744
+ */
16745
+ where: AdminProcessWhereUniqueInput
16746
+ }
16747
+
16748
+ /**
16749
+ * AdminProcess findFirst
16750
+ */
16751
+ export type AdminProcessFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16752
+ /**
16753
+ * Select specific fields to fetch from the AdminProcess
16754
+ */
16755
+ select?: AdminProcessSelect<ExtArgs> | null
16756
+ /**
16757
+ * Omit specific fields from the AdminProcess
16758
+ */
16759
+ omit?: AdminProcessOmit<ExtArgs> | null
16760
+ /**
16761
+ * Filter, which AdminProcess to fetch.
16762
+ */
16763
+ where?: AdminProcessWhereInput
16764
+ /**
16765
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
16766
+ *
16767
+ * Determine the order of AdminProcesses to fetch.
16768
+ */
16769
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
16770
+ /**
16771
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
16772
+ *
16773
+ * Sets the position for searching for AdminProcesses.
16774
+ */
16775
+ cursor?: AdminProcessWhereUniqueInput
16776
+ /**
16777
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16778
+ *
16779
+ * Take `±n` AdminProcesses from the position of the cursor.
16780
+ */
16781
+ take?: number
16782
+ /**
16783
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16784
+ *
16785
+ * Skip the first `n` AdminProcesses.
16786
+ */
16787
+ skip?: number
16788
+ /**
16789
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
16790
+ *
16791
+ * Filter by unique combinations of AdminProcesses.
16792
+ */
16793
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
16794
+ }
16795
+
16796
+ /**
16797
+ * AdminProcess findFirstOrThrow
16798
+ */
16799
+ export type AdminProcessFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16800
+ /**
16801
+ * Select specific fields to fetch from the AdminProcess
16802
+ */
16803
+ select?: AdminProcessSelect<ExtArgs> | null
16804
+ /**
16805
+ * Omit specific fields from the AdminProcess
16806
+ */
16807
+ omit?: AdminProcessOmit<ExtArgs> | null
16808
+ /**
16809
+ * Filter, which AdminProcess to fetch.
16810
+ */
16811
+ where?: AdminProcessWhereInput
16812
+ /**
16813
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
16814
+ *
16815
+ * Determine the order of AdminProcesses to fetch.
16816
+ */
16817
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
16818
+ /**
16819
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
16820
+ *
16821
+ * Sets the position for searching for AdminProcesses.
16822
+ */
16823
+ cursor?: AdminProcessWhereUniqueInput
16824
+ /**
16825
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16826
+ *
16827
+ * Take `±n` AdminProcesses from the position of the cursor.
16828
+ */
16829
+ take?: number
16830
+ /**
16831
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16832
+ *
16833
+ * Skip the first `n` AdminProcesses.
16834
+ */
16835
+ skip?: number
16836
+ /**
16837
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
16838
+ *
16839
+ * Filter by unique combinations of AdminProcesses.
16840
+ */
16841
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
16842
+ }
16843
+
16844
+ /**
16845
+ * AdminProcess findMany
16846
+ */
16847
+ export type AdminProcessFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16848
+ /**
16849
+ * Select specific fields to fetch from the AdminProcess
16850
+ */
16851
+ select?: AdminProcessSelect<ExtArgs> | null
16852
+ /**
16853
+ * Omit specific fields from the AdminProcess
16854
+ */
16855
+ omit?: AdminProcessOmit<ExtArgs> | null
16856
+ /**
16857
+ * Filter, which AdminProcesses to fetch.
16858
+ */
16859
+ where?: AdminProcessWhereInput
16860
+ /**
16861
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
16862
+ *
16863
+ * Determine the order of AdminProcesses to fetch.
16864
+ */
16865
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
16866
+ /**
16867
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
16868
+ *
16869
+ * Sets the position for listing AdminProcesses.
16870
+ */
16871
+ cursor?: AdminProcessWhereUniqueInput
16872
+ /**
16873
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16874
+ *
16875
+ * Take `±n` AdminProcesses from the position of the cursor.
16876
+ */
16877
+ take?: number
16878
+ /**
16879
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16880
+ *
16881
+ * Skip the first `n` AdminProcesses.
16882
+ */
16883
+ skip?: number
16884
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
16885
+ }
16886
+
16887
+ /**
16888
+ * AdminProcess create
16889
+ */
16890
+ export type AdminProcessCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16891
+ /**
16892
+ * Select specific fields to fetch from the AdminProcess
16893
+ */
16894
+ select?: AdminProcessSelect<ExtArgs> | null
16895
+ /**
16896
+ * Omit specific fields from the AdminProcess
16897
+ */
16898
+ omit?: AdminProcessOmit<ExtArgs> | null
16899
+ /**
16900
+ * The data needed to create a AdminProcess.
16901
+ */
16902
+ data: XOR<AdminProcessCreateInput, AdminProcessUncheckedCreateInput>
16903
+ }
16904
+
16905
+ /**
16906
+ * AdminProcess createMany
16907
+ */
16908
+ export type AdminProcessCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16909
+ /**
16910
+ * The data used to create many AdminProcesses.
16911
+ */
16912
+ data: AdminProcessCreateManyInput | AdminProcessCreateManyInput[]
16913
+ }
16914
+
16915
+ /**
16916
+ * AdminProcess update
16917
+ */
16918
+ export type AdminProcessUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16919
+ /**
16920
+ * Select specific fields to fetch from the AdminProcess
16921
+ */
16922
+ select?: AdminProcessSelect<ExtArgs> | null
16923
+ /**
16924
+ * Omit specific fields from the AdminProcess
16925
+ */
16926
+ omit?: AdminProcessOmit<ExtArgs> | null
16927
+ /**
16928
+ * The data needed to update a AdminProcess.
16929
+ */
16930
+ data: XOR<AdminProcessUpdateInput, AdminProcessUncheckedUpdateInput>
16931
+ /**
16932
+ * Choose, which AdminProcess to update.
16933
+ */
16934
+ where: AdminProcessWhereUniqueInput
16935
+ }
16936
+
16937
+ /**
16938
+ * AdminProcess updateMany
16939
+ */
16940
+ export type AdminProcessUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16941
+ /**
16942
+ * The data used to update AdminProcesses.
16943
+ */
16944
+ data: XOR<AdminProcessUpdateManyMutationInput, AdminProcessUncheckedUpdateManyInput>
16945
+ /**
16946
+ * Filter which AdminProcesses to update
16947
+ */
16948
+ where?: AdminProcessWhereInput
16949
+ /**
16950
+ * Limit how many AdminProcesses to update.
16951
+ */
16952
+ limit?: number
16953
+ }
16954
+
16955
+ /**
16956
+ * AdminProcess upsert
16957
+ */
16958
+ export type AdminProcessUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16959
+ /**
16960
+ * Select specific fields to fetch from the AdminProcess
16961
+ */
16962
+ select?: AdminProcessSelect<ExtArgs> | null
16963
+ /**
16964
+ * Omit specific fields from the AdminProcess
16965
+ */
16966
+ omit?: AdminProcessOmit<ExtArgs> | null
16967
+ /**
16968
+ * The filter to search for the AdminProcess to update in case it exists.
16969
+ */
16970
+ where: AdminProcessWhereUniqueInput
16971
+ /**
16972
+ * In case the AdminProcess found by the `where` argument doesn't exist, create a new AdminProcess with this data.
16973
+ */
16974
+ create: XOR<AdminProcessCreateInput, AdminProcessUncheckedCreateInput>
16975
+ /**
16976
+ * In case the AdminProcess was found with the provided `where` argument, update it with this data.
16977
+ */
16978
+ update: XOR<AdminProcessUpdateInput, AdminProcessUncheckedUpdateInput>
16979
+ }
16980
+
16981
+ /**
16982
+ * AdminProcess delete
16983
+ */
16984
+ export type AdminProcessDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16985
+ /**
16986
+ * Select specific fields to fetch from the AdminProcess
16987
+ */
16988
+ select?: AdminProcessSelect<ExtArgs> | null
16989
+ /**
16990
+ * Omit specific fields from the AdminProcess
16991
+ */
16992
+ omit?: AdminProcessOmit<ExtArgs> | null
16993
+ /**
16994
+ * Filter which AdminProcess to delete.
16995
+ */
16996
+ where: AdminProcessWhereUniqueInput
16997
+ }
16998
+
16999
+ /**
17000
+ * AdminProcess deleteMany
17001
+ */
17002
+ export type AdminProcessDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17003
+ /**
17004
+ * Filter which AdminProcesses to delete
17005
+ */
17006
+ where?: AdminProcessWhereInput
17007
+ /**
17008
+ * Limit how many AdminProcesses to delete.
17009
+ */
17010
+ limit?: number
17011
+ }
17012
+
17013
+ /**
17014
+ * AdminProcess findRaw
17015
+ */
17016
+ export type AdminProcessFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17017
+ /**
17018
+ * The query predicate filter. If unspecified, then all documents in the collection will match the predicate. ${@link https://docs.mongodb.com/manual/reference/operator/query MongoDB Docs}.
17019
+ */
17020
+ filter?: InputJsonValue
17021
+ /**
17022
+ * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
17023
+ */
17024
+ options?: InputJsonValue
17025
+ }
17026
+
17027
+ /**
17028
+ * AdminProcess aggregateRaw
17029
+ */
17030
+ export type AdminProcessAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17031
+ /**
17032
+ * An array of aggregation stages to process and transform the document stream via the aggregation pipeline. ${@link https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline MongoDB Docs}.
17033
+ */
17034
+ pipeline?: InputJsonValue[]
17035
+ /**
17036
+ * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
17037
+ */
17038
+ options?: InputJsonValue
17039
+ }
17040
+
17041
+ /**
17042
+ * AdminProcess without action
17043
+ */
17044
+ export type AdminProcessDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17045
+ /**
17046
+ * Select specific fields to fetch from the AdminProcess
17047
+ */
17048
+ select?: AdminProcessSelect<ExtArgs> | null
17049
+ /**
17050
+ * Omit specific fields from the AdminProcess
17051
+ */
17052
+ omit?: AdminProcessOmit<ExtArgs> | null
17053
+ }
17054
+
17055
+
17056
+ /**
17057
+ * Model ScriptSchedule
17058
+ */
17059
+
17060
+ export type AggregateScriptSchedule = {
17061
+ _count: ScriptScheduleCountAggregateOutputType | null
17062
+ _min: ScriptScheduleMinAggregateOutputType | null
17063
+ _max: ScriptScheduleMaxAggregateOutputType | null
17064
+ }
17065
+
17066
+ export type ScriptScheduleMinAggregateOutputType = {
17067
+ id: string | null
17068
+ scriptName: string | null
17069
+ enabled: boolean | null
17070
+ cronExpression: string | null
17071
+ timezone: string | null
17072
+ lastTriggeredAt: Date | null
17073
+ nextTriggerAt: Date | null
17074
+ externalScheduleId: string | null
17075
+ externalScheduleName: string | null
17076
+ createdAt: Date | null
17077
+ updatedAt: Date | null
17078
+ }
17079
+
17080
+ export type ScriptScheduleMaxAggregateOutputType = {
17081
+ id: string | null
17082
+ scriptName: string | null
17083
+ enabled: boolean | null
17084
+ cronExpression: string | null
17085
+ timezone: string | null
17086
+ lastTriggeredAt: Date | null
17087
+ nextTriggerAt: Date | null
17088
+ externalScheduleId: string | null
17089
+ externalScheduleName: string | null
17090
+ createdAt: Date | null
17091
+ updatedAt: Date | null
17092
+ }
17093
+
17094
+ export type ScriptScheduleCountAggregateOutputType = {
17095
+ id: number
17096
+ scriptName: number
17097
+ enabled: number
17098
+ cronExpression: number
17099
+ timezone: number
17100
+ lastTriggeredAt: number
17101
+ nextTriggerAt: number
17102
+ externalScheduleId: number
17103
+ externalScheduleName: number
17104
+ createdAt: number
17105
+ updatedAt: number
17106
+ _all: number
17107
+ }
17108
+
17109
+
17110
+ export type ScriptScheduleMinAggregateInputType = {
17111
+ id?: true
17112
+ scriptName?: true
17113
+ enabled?: true
17114
+ cronExpression?: true
17115
+ timezone?: true
17116
+ lastTriggeredAt?: true
17117
+ nextTriggerAt?: true
17118
+ externalScheduleId?: true
17119
+ externalScheduleName?: true
17120
+ createdAt?: true
17121
+ updatedAt?: true
17122
+ }
17123
+
17124
+ export type ScriptScheduleMaxAggregateInputType = {
17125
+ id?: true
17126
+ scriptName?: true
17127
+ enabled?: true
17128
+ cronExpression?: true
17129
+ timezone?: true
17130
+ lastTriggeredAt?: true
17131
+ nextTriggerAt?: true
17132
+ externalScheduleId?: true
17133
+ externalScheduleName?: true
17134
+ createdAt?: true
17135
+ updatedAt?: true
17136
+ }
17137
+
17138
+ export type ScriptScheduleCountAggregateInputType = {
17139
+ id?: true
17140
+ scriptName?: true
17141
+ enabled?: true
17142
+ cronExpression?: true
17143
+ timezone?: true
17144
+ lastTriggeredAt?: true
17145
+ nextTriggerAt?: true
17146
+ externalScheduleId?: true
17147
+ externalScheduleName?: true
17148
+ createdAt?: true
17149
+ updatedAt?: true
17150
+ _all?: true
17151
+ }
17152
+
17153
+ export type ScriptScheduleAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17154
+ /**
17155
+ * Filter which ScriptSchedule to aggregate.
17156
+ */
17157
+ where?: ScriptScheduleWhereInput
17158
+ /**
17159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17160
+ *
17161
+ * Determine the order of ScriptSchedules to fetch.
17162
+ */
17163
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
17164
+ /**
17165
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17166
+ *
17167
+ * Sets the start position
17168
+ */
17169
+ cursor?: ScriptScheduleWhereUniqueInput
17170
+ /**
17171
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17172
+ *
17173
+ * Take `±n` ScriptSchedules from the position of the cursor.
17174
+ */
17175
+ take?: number
17176
+ /**
17177
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17178
+ *
17179
+ * Skip the first `n` ScriptSchedules.
17180
+ */
17181
+ skip?: number
17182
+ /**
17183
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17184
+ *
17185
+ * Count returned ScriptSchedules
17186
+ **/
17187
+ _count?: true | ScriptScheduleCountAggregateInputType
17188
+ /**
17189
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17190
+ *
17191
+ * Select which fields to find the minimum value
17192
+ **/
17193
+ _min?: ScriptScheduleMinAggregateInputType
17194
+ /**
17195
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17196
+ *
17197
+ * Select which fields to find the maximum value
17198
+ **/
17199
+ _max?: ScriptScheduleMaxAggregateInputType
17200
+ }
17201
+
17202
+ export type GetScriptScheduleAggregateType<T extends ScriptScheduleAggregateArgs> = {
17203
+ [P in keyof T & keyof AggregateScriptSchedule]: P extends '_count' | 'count'
17204
+ ? T[P] extends true
17205
+ ? number
17206
+ : GetScalarType<T[P], AggregateScriptSchedule[P]>
17207
+ : GetScalarType<T[P], AggregateScriptSchedule[P]>
17208
+ }
17209
+
17210
+
17211
+
17212
+
17213
+ export type ScriptScheduleGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17214
+ where?: ScriptScheduleWhereInput
17215
+ orderBy?: ScriptScheduleOrderByWithAggregationInput | ScriptScheduleOrderByWithAggregationInput[]
17216
+ by: ScriptScheduleScalarFieldEnum[] | ScriptScheduleScalarFieldEnum
17217
+ having?: ScriptScheduleScalarWhereWithAggregatesInput
17218
+ take?: number
17219
+ skip?: number
17220
+ _count?: ScriptScheduleCountAggregateInputType | true
17221
+ _min?: ScriptScheduleMinAggregateInputType
17222
+ _max?: ScriptScheduleMaxAggregateInputType
17223
+ }
17224
+
17225
+ export type ScriptScheduleGroupByOutputType = {
17226
+ id: string
17227
+ scriptName: string
17228
+ enabled: boolean
17229
+ cronExpression: string | null
17230
+ timezone: string
17231
+ lastTriggeredAt: Date | null
17232
+ nextTriggerAt: Date | null
17233
+ externalScheduleId: string | null
17234
+ externalScheduleName: string | null
17235
+ createdAt: Date
17236
+ updatedAt: Date
17237
+ _count: ScriptScheduleCountAggregateOutputType | null
17238
+ _min: ScriptScheduleMinAggregateOutputType | null
17239
+ _max: ScriptScheduleMaxAggregateOutputType | null
17240
+ }
17241
+
17242
+ type GetScriptScheduleGroupByPayload<T extends ScriptScheduleGroupByArgs> = Prisma.PrismaPromise<
17243
+ Array<
17244
+ PickEnumerable<ScriptScheduleGroupByOutputType, T['by']> &
17245
+ {
17246
+ [P in ((keyof T) & (keyof ScriptScheduleGroupByOutputType))]: P extends '_count'
17247
+ ? T[P] extends boolean
17248
+ ? number
17249
+ : GetScalarType<T[P], ScriptScheduleGroupByOutputType[P]>
17250
+ : GetScalarType<T[P], ScriptScheduleGroupByOutputType[P]>
17251
+ }
17252
+ >
17253
+ >
17254
+
17255
+
17256
+ export type ScriptScheduleSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
17257
+ id?: boolean
17258
+ scriptName?: boolean
17259
+ enabled?: boolean
17260
+ cronExpression?: boolean
17261
+ timezone?: boolean
17262
+ lastTriggeredAt?: boolean
17263
+ nextTriggerAt?: boolean
17264
+ externalScheduleId?: boolean
17265
+ externalScheduleName?: boolean
17266
+ createdAt?: boolean
17267
+ updatedAt?: boolean
17268
+ }, ExtArgs["result"]["scriptSchedule"]>
17269
+
17270
+
17271
+
17272
+ export type ScriptScheduleSelectScalar = {
17273
+ id?: boolean
17274
+ scriptName?: boolean
17275
+ enabled?: boolean
17276
+ cronExpression?: boolean
17277
+ timezone?: boolean
17278
+ lastTriggeredAt?: boolean
17279
+ nextTriggerAt?: boolean
17280
+ externalScheduleId?: boolean
17281
+ externalScheduleName?: boolean
17282
+ createdAt?: boolean
17283
+ updatedAt?: boolean
17284
+ }
17285
+
17286
+ 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"]>
17287
+
17288
+ export type $ScriptSchedulePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17289
+ name: "ScriptSchedule"
17290
+ objects: {}
17291
+ scalars: $Extensions.GetPayloadResult<{
17292
+ id: string
17293
+ scriptName: string
17294
+ enabled: boolean
17295
+ cronExpression: string | null
17296
+ timezone: string
17297
+ lastTriggeredAt: Date | null
17298
+ nextTriggerAt: Date | null
17299
+ externalScheduleId: string | null
17300
+ externalScheduleName: string | null
17301
+ createdAt: Date
17302
+ updatedAt: Date
17303
+ }, ExtArgs["result"]["scriptSchedule"]>
17304
+ composites: {}
17305
+ }
17306
+
17307
+ type ScriptScheduleGetPayload<S extends boolean | null | undefined | ScriptScheduleDefaultArgs> = $Result.GetResult<Prisma.$ScriptSchedulePayload, S>
17308
+
17309
+ type ScriptScheduleCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
17310
+ Omit<ScriptScheduleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
17311
+ select?: ScriptScheduleCountAggregateInputType | true
17312
+ }
17313
+
17314
+ export interface ScriptScheduleDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
17315
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ScriptSchedule'], meta: { name: 'ScriptSchedule' } }
17316
+ /**
17317
+ * Find zero or one ScriptSchedule that matches the filter.
17318
+ * @param {ScriptScheduleFindUniqueArgs} args - Arguments to find a ScriptSchedule
17319
+ * @example
17320
+ * // Get one ScriptSchedule
17321
+ * const scriptSchedule = await prisma.scriptSchedule.findUnique({
17322
+ * where: {
17323
+ * // ... provide filter here
17324
+ * }
17325
+ * })
17326
+ */
17327
+ findUnique<T extends ScriptScheduleFindUniqueArgs>(args: SelectSubset<T, ScriptScheduleFindUniqueArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
17328
+
17329
+ /**
17330
+ * Find one ScriptSchedule that matches the filter or throw an error with `error.code='P2025'`
17331
+ * if no matches were found.
17332
+ * @param {ScriptScheduleFindUniqueOrThrowArgs} args - Arguments to find a ScriptSchedule
17333
+ * @example
17334
+ * // Get one ScriptSchedule
17335
+ * const scriptSchedule = await prisma.scriptSchedule.findUniqueOrThrow({
17336
+ * where: {
17337
+ * // ... provide filter here
17338
+ * }
17339
+ * })
17340
+ */
17341
+ findUniqueOrThrow<T extends ScriptScheduleFindUniqueOrThrowArgs>(args: SelectSubset<T, ScriptScheduleFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
17342
+
17343
+ /**
17344
+ * Find the first ScriptSchedule that matches the filter.
17345
+ * Note, that providing `undefined` is treated as the value not being there.
17346
+ * Read more here: https://pris.ly/d/null-undefined
17347
+ * @param {ScriptScheduleFindFirstArgs} args - Arguments to find a ScriptSchedule
17348
+ * @example
17349
+ * // Get one ScriptSchedule
17350
+ * const scriptSchedule = await prisma.scriptSchedule.findFirst({
17351
+ * where: {
17352
+ * // ... provide filter here
17353
+ * }
17354
+ * })
17355
+ */
17356
+ findFirst<T extends ScriptScheduleFindFirstArgs>(args?: SelectSubset<T, ScriptScheduleFindFirstArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
17357
+
17358
+ /**
17359
+ * Find the first ScriptSchedule that matches the filter or
17360
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
17361
+ * Note, that providing `undefined` is treated as the value not being there.
17362
+ * Read more here: https://pris.ly/d/null-undefined
17363
+ * @param {ScriptScheduleFindFirstOrThrowArgs} args - Arguments to find a ScriptSchedule
17364
+ * @example
17365
+ * // Get one ScriptSchedule
17366
+ * const scriptSchedule = await prisma.scriptSchedule.findFirstOrThrow({
17367
+ * where: {
17368
+ * // ... provide filter here
17369
+ * }
17370
+ * })
17371
+ */
17372
+ findFirstOrThrow<T extends ScriptScheduleFindFirstOrThrowArgs>(args?: SelectSubset<T, ScriptScheduleFindFirstOrThrowArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
17373
+
17374
+ /**
17375
+ * Find zero or more ScriptSchedules that matches the filter.
17376
+ * Note, that providing `undefined` is treated as the value not being there.
17377
+ * Read more here: https://pris.ly/d/null-undefined
17378
+ * @param {ScriptScheduleFindManyArgs} args - Arguments to filter and select certain fields only.
17379
+ * @example
17380
+ * // Get all ScriptSchedules
17381
+ * const scriptSchedules = await prisma.scriptSchedule.findMany()
17382
+ *
17383
+ * // Get first 10 ScriptSchedules
17384
+ * const scriptSchedules = await prisma.scriptSchedule.findMany({ take: 10 })
17385
+ *
17386
+ * // Only select the `id`
17387
+ * const scriptScheduleWithIdOnly = await prisma.scriptSchedule.findMany({ select: { id: true } })
17388
+ *
17389
+ */
17390
+ findMany<T extends ScriptScheduleFindManyArgs>(args?: SelectSubset<T, ScriptScheduleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
17391
+
17392
+ /**
17393
+ * Create a ScriptSchedule.
17394
+ * @param {ScriptScheduleCreateArgs} args - Arguments to create a ScriptSchedule.
17395
+ * @example
17396
+ * // Create one ScriptSchedule
17397
+ * const ScriptSchedule = await prisma.scriptSchedule.create({
17398
+ * data: {
17399
+ * // ... data to create a ScriptSchedule
17400
+ * }
17401
+ * })
17402
+ *
17403
+ */
17404
+ create<T extends ScriptScheduleCreateArgs>(args: SelectSubset<T, ScriptScheduleCreateArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
17405
+
17406
+ /**
17407
+ * Create many ScriptSchedules.
17408
+ * @param {ScriptScheduleCreateManyArgs} args - Arguments to create many ScriptSchedules.
17409
+ * @example
17410
+ * // Create many ScriptSchedules
17411
+ * const scriptSchedule = await prisma.scriptSchedule.createMany({
17412
+ * data: [
17413
+ * // ... provide data here
17414
+ * ]
17415
+ * })
17416
+ *
17417
+ */
17418
+ createMany<T extends ScriptScheduleCreateManyArgs>(args?: SelectSubset<T, ScriptScheduleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
17419
+
17420
+ /**
17421
+ * Delete a ScriptSchedule.
17422
+ * @param {ScriptScheduleDeleteArgs} args - Arguments to delete one ScriptSchedule.
17423
+ * @example
17424
+ * // Delete one ScriptSchedule
17425
+ * const ScriptSchedule = await prisma.scriptSchedule.delete({
17426
+ * where: {
17427
+ * // ... filter to delete one ScriptSchedule
17428
+ * }
17429
+ * })
17430
+ *
17431
+ */
17432
+ delete<T extends ScriptScheduleDeleteArgs>(args: SelectSubset<T, ScriptScheduleDeleteArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
17433
+
17434
+ /**
17435
+ * Update one ScriptSchedule.
17436
+ * @param {ScriptScheduleUpdateArgs} args - Arguments to update one ScriptSchedule.
17437
+ * @example
17438
+ * // Update one ScriptSchedule
17439
+ * const scriptSchedule = await prisma.scriptSchedule.update({
17440
+ * where: {
17441
+ * // ... provide filter here
17442
+ * },
17443
+ * data: {
17444
+ * // ... provide data here
17445
+ * }
17446
+ * })
17447
+ *
17448
+ */
17449
+ update<T extends ScriptScheduleUpdateArgs>(args: SelectSubset<T, ScriptScheduleUpdateArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
17450
+
17451
+ /**
17452
+ * Delete zero or more ScriptSchedules.
17453
+ * @param {ScriptScheduleDeleteManyArgs} args - Arguments to filter ScriptSchedules to delete.
17454
+ * @example
17455
+ * // Delete a few ScriptSchedules
17456
+ * const { count } = await prisma.scriptSchedule.deleteMany({
17457
+ * where: {
17458
+ * // ... provide filter here
17459
+ * }
17460
+ * })
17461
+ *
17462
+ */
17463
+ deleteMany<T extends ScriptScheduleDeleteManyArgs>(args?: SelectSubset<T, ScriptScheduleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
17464
+
17465
+ /**
17466
+ * Update zero or more ScriptSchedules.
17467
+ * Note, that providing `undefined` is treated as the value not being there.
17468
+ * Read more here: https://pris.ly/d/null-undefined
17469
+ * @param {ScriptScheduleUpdateManyArgs} args - Arguments to update one or more rows.
17470
+ * @example
17471
+ * // Update many ScriptSchedules
17472
+ * const scriptSchedule = await prisma.scriptSchedule.updateMany({
17473
+ * where: {
17474
+ * // ... provide filter here
17475
+ * },
17476
+ * data: {
17477
+ * // ... provide data here
17478
+ * }
17479
+ * })
17480
+ *
17481
+ */
17482
+ updateMany<T extends ScriptScheduleUpdateManyArgs>(args: SelectSubset<T, ScriptScheduleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
17483
+
17484
+ /**
17485
+ * Create or update one ScriptSchedule.
17486
+ * @param {ScriptScheduleUpsertArgs} args - Arguments to update or create a ScriptSchedule.
17487
+ * @example
17488
+ * // Update or create a ScriptSchedule
17489
+ * const scriptSchedule = await prisma.scriptSchedule.upsert({
17490
+ * create: {
17491
+ * // ... data to create a ScriptSchedule
17492
+ * },
17493
+ * update: {
17494
+ * // ... in case it already exists, update
17495
+ * },
17496
+ * where: {
17497
+ * // ... the filter for the ScriptSchedule we want to update
17498
+ * }
17499
+ * })
17500
+ */
17501
+ upsert<T extends ScriptScheduleUpsertArgs>(args: SelectSubset<T, ScriptScheduleUpsertArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
17502
+
17503
+ /**
17504
+ * Find zero or more ScriptSchedules that matches the filter.
17505
+ * @param {ScriptScheduleFindRawArgs} args - Select which filters you would like to apply.
17506
+ * @example
17507
+ * const scriptSchedule = await prisma.scriptSchedule.findRaw({
17508
+ * filter: { age: { $gt: 25 } }
17509
+ * })
17510
+ */
17511
+ findRaw(args?: ScriptScheduleFindRawArgs): Prisma.PrismaPromise<JsonObject>
17512
+
17513
+ /**
17514
+ * Perform aggregation operations on a ScriptSchedule.
17515
+ * @param {ScriptScheduleAggregateRawArgs} args - Select which aggregations you would like to apply.
17516
+ * @example
17517
+ * const scriptSchedule = await prisma.scriptSchedule.aggregateRaw({
17518
+ * pipeline: [
17519
+ * { $match: { status: "registered" } },
17520
+ * { $group: { _id: "$country", total: { $sum: 1 } } }
17521
+ * ]
17522
+ * })
17523
+ */
17524
+ aggregateRaw(args?: ScriptScheduleAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
17525
+
17526
+
17527
+ /**
17528
+ * Count the number of ScriptSchedules.
17529
+ * Note, that providing `undefined` is treated as the value not being there.
17530
+ * Read more here: https://pris.ly/d/null-undefined
17531
+ * @param {ScriptScheduleCountArgs} args - Arguments to filter ScriptSchedules to count.
17532
+ * @example
17533
+ * // Count the number of ScriptSchedules
17534
+ * const count = await prisma.scriptSchedule.count({
17535
+ * where: {
17536
+ * // ... the filter for the ScriptSchedules we want to count
17537
+ * }
17538
+ * })
17539
+ **/
17540
+ count<T extends ScriptScheduleCountArgs>(
17541
+ args?: Subset<T, ScriptScheduleCountArgs>,
17542
+ ): Prisma.PrismaPromise<
17543
+ T extends $Utils.Record<'select', any>
17544
+ ? T['select'] extends true
17545
+ ? number
17546
+ : GetScalarType<T['select'], ScriptScheduleCountAggregateOutputType>
17547
+ : number
17548
+ >
17549
+
17550
+ /**
17551
+ * Allows you to perform aggregations operations on a ScriptSchedule.
17552
+ * Note, that providing `undefined` is treated as the value not being there.
17553
+ * Read more here: https://pris.ly/d/null-undefined
17554
+ * @param {ScriptScheduleAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
17555
+ * @example
17556
+ * // Ordered by age ascending
17557
+ * // Where email contains prisma.io
17558
+ * // Limited to the 10 users
17559
+ * const aggregations = await prisma.user.aggregate({
17560
+ * _avg: {
17561
+ * age: true,
17562
+ * },
17563
+ * where: {
17564
+ * email: {
17565
+ * contains: "prisma.io",
17566
+ * },
17567
+ * },
17568
+ * orderBy: {
17569
+ * age: "asc",
17570
+ * },
17571
+ * take: 10,
17572
+ * })
17573
+ **/
17574
+ aggregate<T extends ScriptScheduleAggregateArgs>(args: Subset<T, ScriptScheduleAggregateArgs>): Prisma.PrismaPromise<GetScriptScheduleAggregateType<T>>
17575
+
17576
+ /**
17577
+ * Group by ScriptSchedule.
17578
+ * Note, that providing `undefined` is treated as the value not being there.
17579
+ * Read more here: https://pris.ly/d/null-undefined
17580
+ * @param {ScriptScheduleGroupByArgs} args - Group by arguments.
17581
+ * @example
17582
+ * // Group by city, order by createdAt, get count
17583
+ * const result = await prisma.user.groupBy({
17584
+ * by: ['city', 'createdAt'],
17585
+ * orderBy: {
17586
+ * createdAt: true
17587
+ * },
17588
+ * _count: {
17589
+ * _all: true
17590
+ * },
17591
+ * })
17592
+ *
17593
+ **/
17594
+ groupBy<
17595
+ T extends ScriptScheduleGroupByArgs,
17596
+ HasSelectOrTake extends Or<
17597
+ Extends<'skip', Keys<T>>,
17598
+ Extends<'take', Keys<T>>
17599
+ >,
17600
+ OrderByArg extends True extends HasSelectOrTake
17601
+ ? { orderBy: ScriptScheduleGroupByArgs['orderBy'] }
17602
+ : { orderBy?: ScriptScheduleGroupByArgs['orderBy'] },
17603
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
17604
+ ByFields extends MaybeTupleToUnion<T['by']>,
17605
+ ByValid extends Has<ByFields, OrderFields>,
17606
+ HavingFields extends GetHavingFields<T['having']>,
17607
+ HavingValid extends Has<ByFields, HavingFields>,
17608
+ ByEmpty extends T['by'] extends never[] ? True : False,
17609
+ InputErrors extends ByEmpty extends True
17610
+ ? `Error: "by" must not be empty.`
17611
+ : HavingValid extends False
17612
+ ? {
17613
+ [P in HavingFields]: P extends ByFields
17614
+ ? never
17615
+ : P extends string
17616
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
17617
+ : [
17618
+ Error,
17619
+ 'Field ',
17620
+ P,
17621
+ ` in "having" needs to be provided in "by"`,
17622
+ ]
17623
+ }[HavingFields]
17624
+ : 'take' extends Keys<T>
17625
+ ? 'orderBy' extends Keys<T>
17626
+ ? ByValid extends True
17627
+ ? {}
17628
+ : {
17629
+ [P in OrderFields]: P extends ByFields
17630
+ ? never
17631
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
17632
+ }[OrderFields]
17633
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
17634
+ : 'skip' extends Keys<T>
17635
+ ? 'orderBy' extends Keys<T>
17636
+ ? ByValid extends True
17637
+ ? {}
17638
+ : {
17639
+ [P in OrderFields]: P extends ByFields
17640
+ ? never
17641
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
17642
+ }[OrderFields]
17643
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
17644
+ : ByValid extends True
17645
+ ? {}
17646
+ : {
17647
+ [P in OrderFields]: P extends ByFields
17648
+ ? never
17649
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
17650
+ }[OrderFields]
17651
+ >(args: SubsetIntersection<T, ScriptScheduleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetScriptScheduleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
17652
+ /**
17653
+ * Fields of the ScriptSchedule model
17654
+ */
17655
+ readonly fields: ScriptScheduleFieldRefs;
17656
+ }
17657
+
17658
+ /**
17659
+ * The delegate class that acts as a "Promise-like" for ScriptSchedule.
17660
+ * Why is this prefixed with `Prisma__`?
17661
+ * Because we want to prevent naming conflicts as mentioned in
17662
+ * https://github.com/prisma/prisma-client-js/issues/707
17663
+ */
17664
+ export interface Prisma__ScriptScheduleClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
17665
+ readonly [Symbol.toStringTag]: "PrismaPromise"
17666
+ /**
17667
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
17668
+ * @param onfulfilled The callback to execute when the Promise is resolved.
17669
+ * @param onrejected The callback to execute when the Promise is rejected.
17670
+ * @returns A Promise for the completion of which ever callback is executed.
17671
+ */
17672
+ 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>
17673
+ /**
17674
+ * Attaches a callback for only the rejection of the Promise.
17675
+ * @param onrejected The callback to execute when the Promise is rejected.
17676
+ * @returns A Promise for the completion of the callback.
17677
+ */
17678
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
17679
+ /**
17680
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
17681
+ * resolved value cannot be modified from the callback.
17682
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
17683
+ * @returns A Promise for the completion of the callback.
17684
+ */
17685
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
17686
+ }
17687
+
17688
+
17689
+
17690
+
17691
+ /**
17692
+ * Fields of the ScriptSchedule model
17693
+ */
17694
+ interface ScriptScheduleFieldRefs {
17695
+ readonly id: FieldRef<"ScriptSchedule", 'String'>
17696
+ readonly scriptName: FieldRef<"ScriptSchedule", 'String'>
17697
+ readonly enabled: FieldRef<"ScriptSchedule", 'Boolean'>
17698
+ readonly cronExpression: FieldRef<"ScriptSchedule", 'String'>
17699
+ readonly timezone: FieldRef<"ScriptSchedule", 'String'>
17700
+ readonly lastTriggeredAt: FieldRef<"ScriptSchedule", 'DateTime'>
17701
+ readonly nextTriggerAt: FieldRef<"ScriptSchedule", 'DateTime'>
17702
+ readonly externalScheduleId: FieldRef<"ScriptSchedule", 'String'>
17703
+ readonly externalScheduleName: FieldRef<"ScriptSchedule", 'String'>
17704
+ readonly createdAt: FieldRef<"ScriptSchedule", 'DateTime'>
17705
+ readonly updatedAt: FieldRef<"ScriptSchedule", 'DateTime'>
17706
+ }
17707
+
17708
+
17709
+ // Custom InputTypes
17710
+ /**
17711
+ * ScriptSchedule findUnique
17712
+ */
17713
+ export type ScriptScheduleFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17714
+ /**
17715
+ * Select specific fields to fetch from the ScriptSchedule
17716
+ */
17717
+ select?: ScriptScheduleSelect<ExtArgs> | null
17718
+ /**
17719
+ * Omit specific fields from the ScriptSchedule
17720
+ */
17721
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17722
+ /**
17723
+ * Filter, which ScriptSchedule to fetch.
17724
+ */
17725
+ where: ScriptScheduleWhereUniqueInput
17726
+ }
17727
+
17728
+ /**
17729
+ * ScriptSchedule findUniqueOrThrow
17730
+ */
17731
+ export type ScriptScheduleFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17732
+ /**
17733
+ * Select specific fields to fetch from the ScriptSchedule
17734
+ */
17735
+ select?: ScriptScheduleSelect<ExtArgs> | null
17736
+ /**
17737
+ * Omit specific fields from the ScriptSchedule
17738
+ */
17739
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17740
+ /**
17741
+ * Filter, which ScriptSchedule to fetch.
17742
+ */
17743
+ where: ScriptScheduleWhereUniqueInput
17744
+ }
17745
+
17746
+ /**
17747
+ * ScriptSchedule findFirst
17748
+ */
17749
+ export type ScriptScheduleFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17750
+ /**
17751
+ * Select specific fields to fetch from the ScriptSchedule
17752
+ */
17753
+ select?: ScriptScheduleSelect<ExtArgs> | null
17754
+ /**
17755
+ * Omit specific fields from the ScriptSchedule
17756
+ */
17757
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17758
+ /**
17759
+ * Filter, which ScriptSchedule to fetch.
17760
+ */
17761
+ where?: ScriptScheduleWhereInput
17762
+ /**
17763
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17764
+ *
17765
+ * Determine the order of ScriptSchedules to fetch.
17766
+ */
17767
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
17768
+ /**
17769
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17770
+ *
17771
+ * Sets the position for searching for ScriptSchedules.
17772
+ */
17773
+ cursor?: ScriptScheduleWhereUniqueInput
17774
+ /**
17775
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17776
+ *
17777
+ * Take `±n` ScriptSchedules from the position of the cursor.
17778
+ */
17779
+ take?: number
17780
+ /**
17781
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17782
+ *
17783
+ * Skip the first `n` ScriptSchedules.
17784
+ */
17785
+ skip?: number
17786
+ /**
17787
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
17788
+ *
17789
+ * Filter by unique combinations of ScriptSchedules.
17790
+ */
17791
+ distinct?: ScriptScheduleScalarFieldEnum | ScriptScheduleScalarFieldEnum[]
17792
+ }
17793
+
17794
+ /**
17795
+ * ScriptSchedule findFirstOrThrow
17796
+ */
17797
+ export type ScriptScheduleFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17798
+ /**
17799
+ * Select specific fields to fetch from the ScriptSchedule
17800
+ */
17801
+ select?: ScriptScheduleSelect<ExtArgs> | null
17802
+ /**
17803
+ * Omit specific fields from the ScriptSchedule
17804
+ */
17805
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17806
+ /**
17807
+ * Filter, which ScriptSchedule to fetch.
17808
+ */
17809
+ where?: ScriptScheduleWhereInput
17810
+ /**
17811
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17812
+ *
17813
+ * Determine the order of ScriptSchedules to fetch.
17814
+ */
17815
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
17816
+ /**
17817
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17818
+ *
17819
+ * Sets the position for searching for ScriptSchedules.
17820
+ */
17821
+ cursor?: ScriptScheduleWhereUniqueInput
17822
+ /**
17823
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17824
+ *
17825
+ * Take `±n` ScriptSchedules from the position of the cursor.
17826
+ */
17827
+ take?: number
17828
+ /**
17829
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17830
+ *
17831
+ * Skip the first `n` ScriptSchedules.
17832
+ */
17833
+ skip?: number
17834
+ /**
17835
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
17836
+ *
17837
+ * Filter by unique combinations of ScriptSchedules.
17838
+ */
17839
+ distinct?: ScriptScheduleScalarFieldEnum | ScriptScheduleScalarFieldEnum[]
17840
+ }
17841
+
17842
+ /**
17843
+ * ScriptSchedule findMany
17844
+ */
17845
+ export type ScriptScheduleFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17846
+ /**
17847
+ * Select specific fields to fetch from the ScriptSchedule
17848
+ */
17849
+ select?: ScriptScheduleSelect<ExtArgs> | null
17850
+ /**
17851
+ * Omit specific fields from the ScriptSchedule
17852
+ */
17853
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17854
+ /**
17855
+ * Filter, which ScriptSchedules to fetch.
17856
+ */
17857
+ where?: ScriptScheduleWhereInput
17858
+ /**
17859
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17860
+ *
17861
+ * Determine the order of ScriptSchedules to fetch.
17862
+ */
17863
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
17864
+ /**
17865
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17866
+ *
17867
+ * Sets the position for listing ScriptSchedules.
17868
+ */
17869
+ cursor?: ScriptScheduleWhereUniqueInput
17870
+ /**
17871
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17872
+ *
17873
+ * Take `±n` ScriptSchedules from the position of the cursor.
17874
+ */
17875
+ take?: number
17876
+ /**
17877
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17878
+ *
17879
+ * Skip the first `n` ScriptSchedules.
17880
+ */
17881
+ skip?: number
17882
+ distinct?: ScriptScheduleScalarFieldEnum | ScriptScheduleScalarFieldEnum[]
17883
+ }
17884
+
17885
+ /**
17886
+ * ScriptSchedule create
17887
+ */
17888
+ export type ScriptScheduleCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17889
+ /**
17890
+ * Select specific fields to fetch from the ScriptSchedule
17891
+ */
17892
+ select?: ScriptScheduleSelect<ExtArgs> | null
17893
+ /**
17894
+ * Omit specific fields from the ScriptSchedule
17895
+ */
17896
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17897
+ /**
17898
+ * The data needed to create a ScriptSchedule.
17899
+ */
17900
+ data: XOR<ScriptScheduleCreateInput, ScriptScheduleUncheckedCreateInput>
17901
+ }
17902
+
17903
+ /**
17904
+ * ScriptSchedule createMany
17905
+ */
17906
+ export type ScriptScheduleCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17907
+ /**
17908
+ * The data used to create many ScriptSchedules.
17909
+ */
17910
+ data: ScriptScheduleCreateManyInput | ScriptScheduleCreateManyInput[]
17911
+ }
17912
+
17913
+ /**
17914
+ * ScriptSchedule update
17915
+ */
17916
+ export type ScriptScheduleUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17917
+ /**
17918
+ * Select specific fields to fetch from the ScriptSchedule
17919
+ */
17920
+ select?: ScriptScheduleSelect<ExtArgs> | null
17921
+ /**
17922
+ * Omit specific fields from the ScriptSchedule
17923
+ */
17924
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17925
+ /**
17926
+ * The data needed to update a ScriptSchedule.
17927
+ */
17928
+ data: XOR<ScriptScheduleUpdateInput, ScriptScheduleUncheckedUpdateInput>
17929
+ /**
17930
+ * Choose, which ScriptSchedule to update.
17931
+ */
17932
+ where: ScriptScheduleWhereUniqueInput
17933
+ }
17934
+
17935
+ /**
17936
+ * ScriptSchedule updateMany
17937
+ */
17938
+ export type ScriptScheduleUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17939
+ /**
17940
+ * The data used to update ScriptSchedules.
17941
+ */
17942
+ data: XOR<ScriptScheduleUpdateManyMutationInput, ScriptScheduleUncheckedUpdateManyInput>
17943
+ /**
17944
+ * Filter which ScriptSchedules to update
17945
+ */
17946
+ where?: ScriptScheduleWhereInput
17947
+ /**
17948
+ * Limit how many ScriptSchedules to update.
17949
+ */
17950
+ limit?: number
17951
+ }
17952
+
17953
+ /**
17954
+ * ScriptSchedule upsert
17955
+ */
17956
+ export type ScriptScheduleUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17957
+ /**
17958
+ * Select specific fields to fetch from the ScriptSchedule
17959
+ */
17960
+ select?: ScriptScheduleSelect<ExtArgs> | null
17961
+ /**
17962
+ * Omit specific fields from the ScriptSchedule
17963
+ */
17964
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17965
+ /**
17966
+ * The filter to search for the ScriptSchedule to update in case it exists.
17967
+ */
17968
+ where: ScriptScheduleWhereUniqueInput
17969
+ /**
17970
+ * In case the ScriptSchedule found by the `where` argument doesn't exist, create a new ScriptSchedule with this data.
17971
+ */
17972
+ create: XOR<ScriptScheduleCreateInput, ScriptScheduleUncheckedCreateInput>
17973
+ /**
17974
+ * In case the ScriptSchedule was found with the provided `where` argument, update it with this data.
17975
+ */
17976
+ update: XOR<ScriptScheduleUpdateInput, ScriptScheduleUncheckedUpdateInput>
17977
+ }
17978
+
17979
+ /**
17980
+ * ScriptSchedule delete
17981
+ */
17982
+ export type ScriptScheduleDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17983
+ /**
17984
+ * Select specific fields to fetch from the ScriptSchedule
17985
+ */
17986
+ select?: ScriptScheduleSelect<ExtArgs> | null
17987
+ /**
17988
+ * Omit specific fields from the ScriptSchedule
17989
+ */
17990
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17991
+ /**
17992
+ * Filter which ScriptSchedule to delete.
17993
+ */
17994
+ where: ScriptScheduleWhereUniqueInput
17995
+ }
17996
+
17997
+ /**
17998
+ * ScriptSchedule deleteMany
17999
+ */
18000
+ export type ScriptScheduleDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18001
+ /**
18002
+ * Filter which ScriptSchedules to delete
18003
+ */
18004
+ where?: ScriptScheduleWhereInput
18005
+ /**
18006
+ * Limit how many ScriptSchedules to delete.
18007
+ */
18008
+ limit?: number
18009
+ }
18010
+
18011
+ /**
18012
+ * ScriptSchedule findRaw
18013
+ */
18014
+ export type ScriptScheduleFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18015
+ /**
18016
+ * The query predicate filter. If unspecified, then all documents in the collection will match the predicate. ${@link https://docs.mongodb.com/manual/reference/operator/query MongoDB Docs}.
18017
+ */
18018
+ filter?: InputJsonValue
18019
+ /**
18020
+ * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
18021
+ */
18022
+ options?: InputJsonValue
18023
+ }
18024
+
18025
+ /**
18026
+ * ScriptSchedule aggregateRaw
18027
+ */
18028
+ export type ScriptScheduleAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18029
+ /**
18030
+ * An array of aggregation stages to process and transform the document stream via the aggregation pipeline. ${@link https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline MongoDB Docs}.
18031
+ */
18032
+ pipeline?: InputJsonValue[]
18033
+ /**
18034
+ * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
18035
+ */
18036
+ options?: InputJsonValue
18037
+ }
18038
+
18039
+ /**
18040
+ * ScriptSchedule without action
18041
+ */
18042
+ export type ScriptScheduleDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18043
+ /**
18044
+ * Select specific fields to fetch from the ScriptSchedule
18045
+ */
18046
+ select?: ScriptScheduleSelect<ExtArgs> | null
18047
+ /**
18048
+ * Omit specific fields from the ScriptSchedule
18049
+ */
18050
+ omit?: ScriptScheduleOmit<ExtArgs> | null
18051
+ }
18052
+
18053
+
18054
+ /**
18055
+ * Model ScheduledJob
18056
+ */
18057
+
18058
+ export type AggregateScheduledJob = {
18059
+ _count: ScheduledJobCountAggregateOutputType | null
18060
+ _min: ScheduledJobMinAggregateOutputType | null
18061
+ _max: ScheduledJobMaxAggregateOutputType | null
18062
+ }
18063
+
18064
+ export type ScheduledJobMinAggregateOutputType = {
18065
+ id: string | null
18066
+ scheduleName: string | null
18067
+ scheduledAt: Date | null
18068
+ queueResourceId: string | null
18069
+ state: string | null
18070
+ createdAt: Date | null
18071
+ updatedAt: Date | null
18072
+ }
18073
+
18074
+ export type ScheduledJobMaxAggregateOutputType = {
18075
+ id: string | null
18076
+ scheduleName: string | null
18077
+ scheduledAt: Date | null
18078
+ queueResourceId: string | null
18079
+ state: string | null
18080
+ createdAt: Date | null
18081
+ updatedAt: Date | null
18082
+ }
18083
+
18084
+ export type ScheduledJobCountAggregateOutputType = {
18085
+ id: number
18086
+ scheduleName: number
18087
+ scheduledAt: number
18088
+ queueResourceId: number
18089
+ payload: number
18090
+ state: number
18091
+ createdAt: number
18092
+ updatedAt: number
18093
+ _all: number
18094
+ }
18095
+
18096
+
18097
+ export type ScheduledJobMinAggregateInputType = {
18098
+ id?: true
18099
+ scheduleName?: true
18100
+ scheduledAt?: true
18101
+ queueResourceId?: true
18102
+ state?: true
18103
+ createdAt?: true
18104
+ updatedAt?: true
18105
+ }
18106
+
18107
+ export type ScheduledJobMaxAggregateInputType = {
18108
+ id?: true
18109
+ scheduleName?: true
18110
+ scheduledAt?: true
18111
+ queueResourceId?: true
18112
+ state?: true
18113
+ createdAt?: true
18114
+ updatedAt?: true
18115
+ }
18116
+
18117
+ export type ScheduledJobCountAggregateInputType = {
18118
+ id?: true
18119
+ scheduleName?: true
18120
+ scheduledAt?: true
18121
+ queueResourceId?: true
18122
+ payload?: true
18123
+ state?: true
18124
+ createdAt?: true
18125
+ updatedAt?: true
18126
+ _all?: true
18127
+ }
18128
+
18129
+ export type ScheduledJobAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18130
+ /**
18131
+ * Filter which ScheduledJob to aggregate.
18132
+ */
18133
+ where?: ScheduledJobWhereInput
18134
+ /**
18135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
18136
+ *
18137
+ * Determine the order of ScheduledJobs to fetch.
18138
+ */
18139
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
18140
+ /**
18141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
18142
+ *
18143
+ * Sets the start position
18144
+ */
18145
+ cursor?: ScheduledJobWhereUniqueInput
18146
+ /**
18147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18148
+ *
18149
+ * Take `±n` ScheduledJobs from the position of the cursor.
18150
+ */
18151
+ take?: number
18152
+ /**
18153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18154
+ *
18155
+ * Skip the first `n` ScheduledJobs.
18156
+ */
18157
+ skip?: number
18158
+ /**
18159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
18160
+ *
18161
+ * Count returned ScheduledJobs
18162
+ **/
18163
+ _count?: true | ScheduledJobCountAggregateInputType
18164
+ /**
18165
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
18166
+ *
18167
+ * Select which fields to find the minimum value
18168
+ **/
18169
+ _min?: ScheduledJobMinAggregateInputType
18170
+ /**
18171
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
18172
+ *
18173
+ * Select which fields to find the maximum value
18174
+ **/
18175
+ _max?: ScheduledJobMaxAggregateInputType
18176
+ }
18177
+
18178
+ export type GetScheduledJobAggregateType<T extends ScheduledJobAggregateArgs> = {
18179
+ [P in keyof T & keyof AggregateScheduledJob]: P extends '_count' | 'count'
18180
+ ? T[P] extends true
18181
+ ? number
18182
+ : GetScalarType<T[P], AggregateScheduledJob[P]>
18183
+ : GetScalarType<T[P], AggregateScheduledJob[P]>
18184
+ }
18185
+
18186
+
18187
+
18188
+
18189
+ export type ScheduledJobGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18190
+ where?: ScheduledJobWhereInput
18191
+ orderBy?: ScheduledJobOrderByWithAggregationInput | ScheduledJobOrderByWithAggregationInput[]
18192
+ by: ScheduledJobScalarFieldEnum[] | ScheduledJobScalarFieldEnum
18193
+ having?: ScheduledJobScalarWhereWithAggregatesInput
18194
+ take?: number
18195
+ skip?: number
18196
+ _count?: ScheduledJobCountAggregateInputType | true
18197
+ _min?: ScheduledJobMinAggregateInputType
18198
+ _max?: ScheduledJobMaxAggregateInputType
18199
+ }
18200
+
18201
+ export type ScheduledJobGroupByOutputType = {
18202
+ id: string
18203
+ scheduleName: string
18204
+ scheduledAt: Date
18205
+ queueResourceId: string
18206
+ payload: JsonValue | null
18207
+ state: string
18208
+ createdAt: Date
18209
+ updatedAt: Date
18210
+ _count: ScheduledJobCountAggregateOutputType | null
18211
+ _min: ScheduledJobMinAggregateOutputType | null
18212
+ _max: ScheduledJobMaxAggregateOutputType | null
18213
+ }
18214
+
18215
+ type GetScheduledJobGroupByPayload<T extends ScheduledJobGroupByArgs> = Prisma.PrismaPromise<
18216
+ Array<
18217
+ PickEnumerable<ScheduledJobGroupByOutputType, T['by']> &
18218
+ {
18219
+ [P in ((keyof T) & (keyof ScheduledJobGroupByOutputType))]: P extends '_count'
18220
+ ? T[P] extends boolean
18221
+ ? number
18222
+ : GetScalarType<T[P], ScheduledJobGroupByOutputType[P]>
18223
+ : GetScalarType<T[P], ScheduledJobGroupByOutputType[P]>
18224
+ }
18225
+ >
18226
+ >
18227
+
18228
+
18229
+ export type ScheduledJobSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
18230
+ id?: boolean
18231
+ scheduleName?: boolean
18232
+ scheduledAt?: boolean
18233
+ queueResourceId?: boolean
18234
+ payload?: boolean
18235
+ state?: boolean
18236
+ createdAt?: boolean
18237
+ updatedAt?: boolean
18238
+ }, ExtArgs["result"]["scheduledJob"]>
18239
+
18240
+
18241
+
18242
+ export type ScheduledJobSelectScalar = {
18243
+ id?: boolean
18244
+ scheduleName?: boolean
18245
+ scheduledAt?: boolean
18246
+ queueResourceId?: boolean
18247
+ payload?: boolean
18248
+ state?: boolean
18249
+ createdAt?: boolean
18250
+ updatedAt?: boolean
18251
+ }
18252
+
18253
+ export type ScheduledJobOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "scheduleName" | "scheduledAt" | "queueResourceId" | "payload" | "state" | "createdAt" | "updatedAt", ExtArgs["result"]["scheduledJob"]>
18254
+
18255
+ export type $ScheduledJobPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18256
+ name: "ScheduledJob"
18257
+ objects: {}
18258
+ scalars: $Extensions.GetPayloadResult<{
18259
+ id: string
18260
+ scheduleName: string
18261
+ scheduledAt: Date
18262
+ queueResourceId: string
18263
+ payload: Prisma.JsonValue | null
18264
+ state: string
18265
+ createdAt: Date
18266
+ updatedAt: Date
18267
+ }, ExtArgs["result"]["scheduledJob"]>
18268
+ composites: {}
18269
+ }
18270
+
18271
+ type ScheduledJobGetPayload<S extends boolean | null | undefined | ScheduledJobDefaultArgs> = $Result.GetResult<Prisma.$ScheduledJobPayload, S>
18272
+
18273
+ type ScheduledJobCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
18274
+ Omit<ScheduledJobFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
18275
+ select?: ScheduledJobCountAggregateInputType | true
18276
+ }
18277
+
18278
+ export interface ScheduledJobDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
18279
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ScheduledJob'], meta: { name: 'ScheduledJob' } }
18280
+ /**
18281
+ * Find zero or one ScheduledJob that matches the filter.
18282
+ * @param {ScheduledJobFindUniqueArgs} args - Arguments to find a ScheduledJob
18283
+ * @example
18284
+ * // Get one ScheduledJob
18285
+ * const scheduledJob = await prisma.scheduledJob.findUnique({
18286
+ * where: {
18287
+ * // ... provide filter here
18288
+ * }
18289
+ * })
18290
+ */
18291
+ findUnique<T extends ScheduledJobFindUniqueArgs>(args: SelectSubset<T, ScheduledJobFindUniqueArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
18292
+
18293
+ /**
18294
+ * Find one ScheduledJob that matches the filter or throw an error with `error.code='P2025'`
18295
+ * if no matches were found.
18296
+ * @param {ScheduledJobFindUniqueOrThrowArgs} args - Arguments to find a ScheduledJob
18297
+ * @example
18298
+ * // Get one ScheduledJob
18299
+ * const scheduledJob = await prisma.scheduledJob.findUniqueOrThrow({
18300
+ * where: {
18301
+ * // ... provide filter here
18302
+ * }
18303
+ * })
18304
+ */
18305
+ findUniqueOrThrow<T extends ScheduledJobFindUniqueOrThrowArgs>(args: SelectSubset<T, ScheduledJobFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18306
+
18307
+ /**
18308
+ * Find the first ScheduledJob that matches the filter.
18309
+ * Note, that providing `undefined` is treated as the value not being there.
18310
+ * Read more here: https://pris.ly/d/null-undefined
18311
+ * @param {ScheduledJobFindFirstArgs} args - Arguments to find a ScheduledJob
18312
+ * @example
18313
+ * // Get one ScheduledJob
18314
+ * const scheduledJob = await prisma.scheduledJob.findFirst({
18315
+ * where: {
18316
+ * // ... provide filter here
18317
+ * }
18318
+ * })
18319
+ */
18320
+ findFirst<T extends ScheduledJobFindFirstArgs>(args?: SelectSubset<T, ScheduledJobFindFirstArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
18321
+
18322
+ /**
18323
+ * Find the first ScheduledJob that matches the filter or
18324
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
18325
+ * Note, that providing `undefined` is treated as the value not being there.
18326
+ * Read more here: https://pris.ly/d/null-undefined
18327
+ * @param {ScheduledJobFindFirstOrThrowArgs} args - Arguments to find a ScheduledJob
18328
+ * @example
18329
+ * // Get one ScheduledJob
18330
+ * const scheduledJob = await prisma.scheduledJob.findFirstOrThrow({
18331
+ * where: {
18332
+ * // ... provide filter here
18333
+ * }
18334
+ * })
18335
+ */
18336
+ findFirstOrThrow<T extends ScheduledJobFindFirstOrThrowArgs>(args?: SelectSubset<T, ScheduledJobFindFirstOrThrowArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18337
+
18338
+ /**
18339
+ * Find zero or more ScheduledJobs that matches the filter.
18340
+ * Note, that providing `undefined` is treated as the value not being there.
18341
+ * Read more here: https://pris.ly/d/null-undefined
18342
+ * @param {ScheduledJobFindManyArgs} args - Arguments to filter and select certain fields only.
18343
+ * @example
18344
+ * // Get all ScheduledJobs
18345
+ * const scheduledJobs = await prisma.scheduledJob.findMany()
18346
+ *
18347
+ * // Get first 10 ScheduledJobs
18348
+ * const scheduledJobs = await prisma.scheduledJob.findMany({ take: 10 })
18349
+ *
18350
+ * // Only select the `id`
18351
+ * const scheduledJobWithIdOnly = await prisma.scheduledJob.findMany({ select: { id: true } })
18352
+ *
18353
+ */
18354
+ findMany<T extends ScheduledJobFindManyArgs>(args?: SelectSubset<T, ScheduledJobFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
18355
+
18356
+ /**
18357
+ * Create a ScheduledJob.
18358
+ * @param {ScheduledJobCreateArgs} args - Arguments to create a ScheduledJob.
18359
+ * @example
18360
+ * // Create one ScheduledJob
18361
+ * const ScheduledJob = await prisma.scheduledJob.create({
18362
+ * data: {
18363
+ * // ... data to create a ScheduledJob
18364
+ * }
18365
+ * })
18366
+ *
18367
+ */
18368
+ create<T extends ScheduledJobCreateArgs>(args: SelectSubset<T, ScheduledJobCreateArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18369
+
18370
+ /**
18371
+ * Create many ScheduledJobs.
18372
+ * @param {ScheduledJobCreateManyArgs} args - Arguments to create many ScheduledJobs.
18373
+ * @example
18374
+ * // Create many ScheduledJobs
18375
+ * const scheduledJob = await prisma.scheduledJob.createMany({
18376
+ * data: [
18377
+ * // ... provide data here
18378
+ * ]
18379
+ * })
18380
+ *
18381
+ */
18382
+ createMany<T extends ScheduledJobCreateManyArgs>(args?: SelectSubset<T, ScheduledJobCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
18383
+
18384
+ /**
18385
+ * Delete a ScheduledJob.
18386
+ * @param {ScheduledJobDeleteArgs} args - Arguments to delete one ScheduledJob.
18387
+ * @example
18388
+ * // Delete one ScheduledJob
18389
+ * const ScheduledJob = await prisma.scheduledJob.delete({
18390
+ * where: {
18391
+ * // ... filter to delete one ScheduledJob
18392
+ * }
18393
+ * })
18394
+ *
18395
+ */
18396
+ delete<T extends ScheduledJobDeleteArgs>(args: SelectSubset<T, ScheduledJobDeleteArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18397
+
18398
+ /**
18399
+ * Update one ScheduledJob.
18400
+ * @param {ScheduledJobUpdateArgs} args - Arguments to update one ScheduledJob.
18401
+ * @example
18402
+ * // Update one ScheduledJob
18403
+ * const scheduledJob = await prisma.scheduledJob.update({
18404
+ * where: {
18405
+ * // ... provide filter here
18406
+ * },
18407
+ * data: {
18408
+ * // ... provide data here
18409
+ * }
18410
+ * })
18411
+ *
18412
+ */
18413
+ update<T extends ScheduledJobUpdateArgs>(args: SelectSubset<T, ScheduledJobUpdateArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18414
+
18415
+ /**
18416
+ * Delete zero or more ScheduledJobs.
18417
+ * @param {ScheduledJobDeleteManyArgs} args - Arguments to filter ScheduledJobs to delete.
18418
+ * @example
18419
+ * // Delete a few ScheduledJobs
18420
+ * const { count } = await prisma.scheduledJob.deleteMany({
18421
+ * where: {
18422
+ * // ... provide filter here
18423
+ * }
18424
+ * })
18425
+ *
18426
+ */
18427
+ deleteMany<T extends ScheduledJobDeleteManyArgs>(args?: SelectSubset<T, ScheduledJobDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
18428
+
18429
+ /**
18430
+ * Update zero or more ScheduledJobs.
18431
+ * Note, that providing `undefined` is treated as the value not being there.
18432
+ * Read more here: https://pris.ly/d/null-undefined
18433
+ * @param {ScheduledJobUpdateManyArgs} args - Arguments to update one or more rows.
18434
+ * @example
18435
+ * // Update many ScheduledJobs
18436
+ * const scheduledJob = await prisma.scheduledJob.updateMany({
18437
+ * where: {
18438
+ * // ... provide filter here
18439
+ * },
18440
+ * data: {
18441
+ * // ... provide data here
18442
+ * }
18443
+ * })
18444
+ *
18445
+ */
18446
+ updateMany<T extends ScheduledJobUpdateManyArgs>(args: SelectSubset<T, ScheduledJobUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
18447
+
18448
+ /**
18449
+ * Create or update one ScheduledJob.
18450
+ * @param {ScheduledJobUpsertArgs} args - Arguments to update or create a ScheduledJob.
18451
+ * @example
18452
+ * // Update or create a ScheduledJob
18453
+ * const scheduledJob = await prisma.scheduledJob.upsert({
18454
+ * create: {
18455
+ * // ... data to create a ScheduledJob
18456
+ * },
18457
+ * update: {
18458
+ * // ... in case it already exists, update
18459
+ * },
18460
+ * where: {
18461
+ * // ... the filter for the ScheduledJob we want to update
18462
+ * }
18463
+ * })
18464
+ */
18465
+ upsert<T extends ScheduledJobUpsertArgs>(args: SelectSubset<T, ScheduledJobUpsertArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18466
+
18467
+ /**
18468
+ * Find zero or more ScheduledJobs that matches the filter.
18469
+ * @param {ScheduledJobFindRawArgs} args - Select which filters you would like to apply.
18470
+ * @example
18471
+ * const scheduledJob = await prisma.scheduledJob.findRaw({
18472
+ * filter: { age: { $gt: 25 } }
18473
+ * })
18474
+ */
18475
+ findRaw(args?: ScheduledJobFindRawArgs): Prisma.PrismaPromise<JsonObject>
18476
+
18477
+ /**
18478
+ * Perform aggregation operations on a ScheduledJob.
18479
+ * @param {ScheduledJobAggregateRawArgs} args - Select which aggregations you would like to apply.
18480
+ * @example
18481
+ * const scheduledJob = await prisma.scheduledJob.aggregateRaw({
18482
+ * pipeline: [
18483
+ * { $match: { status: "registered" } },
18484
+ * { $group: { _id: "$country", total: { $sum: 1 } } }
18485
+ * ]
18486
+ * })
18487
+ */
18488
+ aggregateRaw(args?: ScheduledJobAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
18489
+
18490
+
18491
+ /**
18492
+ * Count the number of ScheduledJobs.
18493
+ * Note, that providing `undefined` is treated as the value not being there.
18494
+ * Read more here: https://pris.ly/d/null-undefined
18495
+ * @param {ScheduledJobCountArgs} args - Arguments to filter ScheduledJobs to count.
18496
+ * @example
18497
+ * // Count the number of ScheduledJobs
18498
+ * const count = await prisma.scheduledJob.count({
18499
+ * where: {
18500
+ * // ... the filter for the ScheduledJobs we want to count
18501
+ * }
18502
+ * })
18503
+ **/
18504
+ count<T extends ScheduledJobCountArgs>(
18505
+ args?: Subset<T, ScheduledJobCountArgs>,
18506
+ ): Prisma.PrismaPromise<
18507
+ T extends $Utils.Record<'select', any>
18508
+ ? T['select'] extends true
18509
+ ? number
18510
+ : GetScalarType<T['select'], ScheduledJobCountAggregateOutputType>
18511
+ : number
18512
+ >
18513
+
18514
+ /**
18515
+ * Allows you to perform aggregations operations on a ScheduledJob.
18516
+ * Note, that providing `undefined` is treated as the value not being there.
18517
+ * Read more here: https://pris.ly/d/null-undefined
18518
+ * @param {ScheduledJobAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
18519
+ * @example
18520
+ * // Ordered by age ascending
18521
+ * // Where email contains prisma.io
18522
+ * // Limited to the 10 users
18523
+ * const aggregations = await prisma.user.aggregate({
18524
+ * _avg: {
18525
+ * age: true,
18526
+ * },
18527
+ * where: {
18528
+ * email: {
18529
+ * contains: "prisma.io",
18530
+ * },
18531
+ * },
18532
+ * orderBy: {
18533
+ * age: "asc",
18534
+ * },
18535
+ * take: 10,
18536
+ * })
18537
+ **/
18538
+ aggregate<T extends ScheduledJobAggregateArgs>(args: Subset<T, ScheduledJobAggregateArgs>): Prisma.PrismaPromise<GetScheduledJobAggregateType<T>>
18539
+
18540
+ /**
18541
+ * Group by ScheduledJob.
18542
+ * Note, that providing `undefined` is treated as the value not being there.
18543
+ * Read more here: https://pris.ly/d/null-undefined
18544
+ * @param {ScheduledJobGroupByArgs} args - Group by arguments.
18545
+ * @example
18546
+ * // Group by city, order by createdAt, get count
18547
+ * const result = await prisma.user.groupBy({
18548
+ * by: ['city', 'createdAt'],
18549
+ * orderBy: {
18550
+ * createdAt: true
18551
+ * },
18552
+ * _count: {
18553
+ * _all: true
18554
+ * },
18555
+ * })
18556
+ *
18557
+ **/
18558
+ groupBy<
18559
+ T extends ScheduledJobGroupByArgs,
18560
+ HasSelectOrTake extends Or<
18561
+ Extends<'skip', Keys<T>>,
18562
+ Extends<'take', Keys<T>>
18563
+ >,
18564
+ OrderByArg extends True extends HasSelectOrTake
18565
+ ? { orderBy: ScheduledJobGroupByArgs['orderBy'] }
18566
+ : { orderBy?: ScheduledJobGroupByArgs['orderBy'] },
18567
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
18568
+ ByFields extends MaybeTupleToUnion<T['by']>,
18569
+ ByValid extends Has<ByFields, OrderFields>,
18570
+ HavingFields extends GetHavingFields<T['having']>,
18571
+ HavingValid extends Has<ByFields, HavingFields>,
18572
+ ByEmpty extends T['by'] extends never[] ? True : False,
18573
+ InputErrors extends ByEmpty extends True
18574
+ ? `Error: "by" must not be empty.`
18575
+ : HavingValid extends False
18576
+ ? {
18577
+ [P in HavingFields]: P extends ByFields
18578
+ ? never
18579
+ : P extends string
18580
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
18581
+ : [
18582
+ Error,
18583
+ 'Field ',
18584
+ P,
18585
+ ` in "having" needs to be provided in "by"`,
18586
+ ]
18587
+ }[HavingFields]
18588
+ : 'take' extends Keys<T>
18589
+ ? 'orderBy' extends Keys<T>
18590
+ ? ByValid extends True
18591
+ ? {}
18592
+ : {
18593
+ [P in OrderFields]: P extends ByFields
18594
+ ? never
18595
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
18596
+ }[OrderFields]
18597
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
18598
+ : 'skip' extends Keys<T>
18599
+ ? 'orderBy' extends Keys<T>
18600
+ ? ByValid extends True
18601
+ ? {}
18602
+ : {
18603
+ [P in OrderFields]: P extends ByFields
18604
+ ? never
18605
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
18606
+ }[OrderFields]
18607
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
18608
+ : ByValid extends True
18609
+ ? {}
18610
+ : {
18611
+ [P in OrderFields]: P extends ByFields
18612
+ ? never
18613
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
18614
+ }[OrderFields]
18615
+ >(args: SubsetIntersection<T, ScheduledJobGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetScheduledJobGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
18616
+ /**
18617
+ * Fields of the ScheduledJob model
18618
+ */
18619
+ readonly fields: ScheduledJobFieldRefs;
18620
+ }
18621
+
18622
+ /**
18623
+ * The delegate class that acts as a "Promise-like" for ScheduledJob.
18624
+ * Why is this prefixed with `Prisma__`?
18625
+ * Because we want to prevent naming conflicts as mentioned in
18626
+ * https://github.com/prisma/prisma-client-js/issues/707
18627
+ */
18628
+ export interface Prisma__ScheduledJobClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
18629
+ readonly [Symbol.toStringTag]: "PrismaPromise"
18630
+ /**
18631
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
18632
+ * @param onfulfilled The callback to execute when the Promise is resolved.
18633
+ * @param onrejected The callback to execute when the Promise is rejected.
18634
+ * @returns A Promise for the completion of which ever callback is executed.
18635
+ */
18636
+ 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>
18637
+ /**
18638
+ * Attaches a callback for only the rejection of the Promise.
18639
+ * @param onrejected The callback to execute when the Promise is rejected.
18640
+ * @returns A Promise for the completion of the callback.
18641
+ */
18642
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
18643
+ /**
18644
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
18645
+ * resolved value cannot be modified from the callback.
18646
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
18647
+ * @returns A Promise for the completion of the callback.
18648
+ */
18649
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
18650
+ }
18651
+
18652
+
18653
+
18654
+
18655
+ /**
18656
+ * Fields of the ScheduledJob model
18657
+ */
18658
+ interface ScheduledJobFieldRefs {
18659
+ readonly id: FieldRef<"ScheduledJob", 'String'>
18660
+ readonly scheduleName: FieldRef<"ScheduledJob", 'String'>
18661
+ readonly scheduledAt: FieldRef<"ScheduledJob", 'DateTime'>
18662
+ readonly queueResourceId: FieldRef<"ScheduledJob", 'String'>
18663
+ readonly payload: FieldRef<"ScheduledJob", 'Json'>
18664
+ readonly state: FieldRef<"ScheduledJob", 'String'>
18665
+ readonly createdAt: FieldRef<"ScheduledJob", 'DateTime'>
18666
+ readonly updatedAt: FieldRef<"ScheduledJob", 'DateTime'>
18667
+ }
18668
+
18669
+
18670
+ // Custom InputTypes
18671
+ /**
18672
+ * ScheduledJob findUnique
18673
+ */
18674
+ export type ScheduledJobFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18675
+ /**
18676
+ * Select specific fields to fetch from the ScheduledJob
18677
+ */
18678
+ select?: ScheduledJobSelect<ExtArgs> | null
18679
+ /**
18680
+ * Omit specific fields from the ScheduledJob
18681
+ */
18682
+ omit?: ScheduledJobOmit<ExtArgs> | null
18683
+ /**
18684
+ * Filter, which ScheduledJob to fetch.
18685
+ */
18686
+ where: ScheduledJobWhereUniqueInput
18687
+ }
18688
+
18689
+ /**
18690
+ * ScheduledJob findUniqueOrThrow
18691
+ */
18692
+ export type ScheduledJobFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18693
+ /**
18694
+ * Select specific fields to fetch from the ScheduledJob
18695
+ */
18696
+ select?: ScheduledJobSelect<ExtArgs> | null
18697
+ /**
18698
+ * Omit specific fields from the ScheduledJob
18699
+ */
18700
+ omit?: ScheduledJobOmit<ExtArgs> | null
18701
+ /**
18702
+ * Filter, which ScheduledJob to fetch.
18703
+ */
18704
+ where: ScheduledJobWhereUniqueInput
18705
+ }
18706
+
18707
+ /**
18708
+ * ScheduledJob findFirst
18709
+ */
18710
+ export type ScheduledJobFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18711
+ /**
18712
+ * Select specific fields to fetch from the ScheduledJob
18713
+ */
18714
+ select?: ScheduledJobSelect<ExtArgs> | null
18715
+ /**
18716
+ * Omit specific fields from the ScheduledJob
18717
+ */
18718
+ omit?: ScheduledJobOmit<ExtArgs> | null
18719
+ /**
18720
+ * Filter, which ScheduledJob to fetch.
18721
+ */
18722
+ where?: ScheduledJobWhereInput
18723
+ /**
18724
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
18725
+ *
18726
+ * Determine the order of ScheduledJobs to fetch.
18727
+ */
18728
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
18729
+ /**
18730
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
18731
+ *
18732
+ * Sets the position for searching for ScheduledJobs.
18733
+ */
18734
+ cursor?: ScheduledJobWhereUniqueInput
18735
+ /**
18736
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18737
+ *
18738
+ * Take `±n` ScheduledJobs from the position of the cursor.
18739
+ */
18740
+ take?: number
18741
+ /**
18742
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18743
+ *
18744
+ * Skip the first `n` ScheduledJobs.
18745
+ */
18746
+ skip?: number
18747
+ /**
18748
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
18749
+ *
18750
+ * Filter by unique combinations of ScheduledJobs.
18751
+ */
18752
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
18753
+ }
18754
+
18755
+ /**
18756
+ * ScheduledJob findFirstOrThrow
18757
+ */
18758
+ export type ScheduledJobFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18759
+ /**
18760
+ * Select specific fields to fetch from the ScheduledJob
18761
+ */
18762
+ select?: ScheduledJobSelect<ExtArgs> | null
18763
+ /**
18764
+ * Omit specific fields from the ScheduledJob
18765
+ */
18766
+ omit?: ScheduledJobOmit<ExtArgs> | null
18767
+ /**
18768
+ * Filter, which ScheduledJob to fetch.
18769
+ */
18770
+ where?: ScheduledJobWhereInput
18771
+ /**
18772
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
18773
+ *
18774
+ * Determine the order of ScheduledJobs to fetch.
18775
+ */
18776
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
18777
+ /**
18778
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
18779
+ *
18780
+ * Sets the position for searching for ScheduledJobs.
18781
+ */
18782
+ cursor?: ScheduledJobWhereUniqueInput
18783
+ /**
18784
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18785
+ *
18786
+ * Take `±n` ScheduledJobs from the position of the cursor.
18787
+ */
18788
+ take?: number
18789
+ /**
18790
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18791
+ *
18792
+ * Skip the first `n` ScheduledJobs.
18793
+ */
18794
+ skip?: number
18795
+ /**
18796
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
18797
+ *
18798
+ * Filter by unique combinations of ScheduledJobs.
18799
+ */
18800
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
18801
+ }
18802
+
18803
+ /**
18804
+ * ScheduledJob findMany
18805
+ */
18806
+ export type ScheduledJobFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18807
+ /**
18808
+ * Select specific fields to fetch from the ScheduledJob
18809
+ */
18810
+ select?: ScheduledJobSelect<ExtArgs> | null
18811
+ /**
18812
+ * Omit specific fields from the ScheduledJob
18813
+ */
18814
+ omit?: ScheduledJobOmit<ExtArgs> | null
18815
+ /**
18816
+ * Filter, which ScheduledJobs to fetch.
18817
+ */
18818
+ where?: ScheduledJobWhereInput
18819
+ /**
18820
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
18821
+ *
18822
+ * Determine the order of ScheduledJobs to fetch.
18823
+ */
18824
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
18825
+ /**
18826
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
18827
+ *
18828
+ * Sets the position for listing ScheduledJobs.
18829
+ */
18830
+ cursor?: ScheduledJobWhereUniqueInput
18831
+ /**
18832
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18833
+ *
18834
+ * Take `±n` ScheduledJobs from the position of the cursor.
18835
+ */
18836
+ take?: number
18837
+ /**
18838
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18839
+ *
18840
+ * Skip the first `n` ScheduledJobs.
18841
+ */
18842
+ skip?: number
18843
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
18844
+ }
18845
+
18846
+ /**
18847
+ * ScheduledJob create
18848
+ */
18849
+ export type ScheduledJobCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18850
+ /**
18851
+ * Select specific fields to fetch from the ScheduledJob
18852
+ */
18853
+ select?: ScheduledJobSelect<ExtArgs> | null
18854
+ /**
18855
+ * Omit specific fields from the ScheduledJob
18856
+ */
18857
+ omit?: ScheduledJobOmit<ExtArgs> | null
18858
+ /**
18859
+ * The data needed to create a ScheduledJob.
18860
+ */
18861
+ data: XOR<ScheduledJobCreateInput, ScheduledJobUncheckedCreateInput>
18862
+ }
18863
+
18864
+ /**
18865
+ * ScheduledJob createMany
18866
+ */
18867
+ export type ScheduledJobCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18868
+ /**
18869
+ * The data used to create many ScheduledJobs.
18870
+ */
18871
+ data: ScheduledJobCreateManyInput | ScheduledJobCreateManyInput[]
18872
+ }
18873
+
18874
+ /**
18875
+ * ScheduledJob update
18876
+ */
18877
+ export type ScheduledJobUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18878
+ /**
18879
+ * Select specific fields to fetch from the ScheduledJob
18880
+ */
18881
+ select?: ScheduledJobSelect<ExtArgs> | null
18882
+ /**
18883
+ * Omit specific fields from the ScheduledJob
18884
+ */
18885
+ omit?: ScheduledJobOmit<ExtArgs> | null
18886
+ /**
18887
+ * The data needed to update a ScheduledJob.
18888
+ */
18889
+ data: XOR<ScheduledJobUpdateInput, ScheduledJobUncheckedUpdateInput>
18890
+ /**
18891
+ * Choose, which ScheduledJob to update.
18892
+ */
18893
+ where: ScheduledJobWhereUniqueInput
18894
+ }
18895
+
18896
+ /**
18897
+ * ScheduledJob updateMany
18898
+ */
18899
+ export type ScheduledJobUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18900
+ /**
18901
+ * The data used to update ScheduledJobs.
18902
+ */
18903
+ data: XOR<ScheduledJobUpdateManyMutationInput, ScheduledJobUncheckedUpdateManyInput>
18904
+ /**
18905
+ * Filter which ScheduledJobs to update
18906
+ */
18907
+ where?: ScheduledJobWhereInput
18908
+ /**
18909
+ * Limit how many ScheduledJobs to update.
18910
+ */
18911
+ limit?: number
18912
+ }
18913
+
18914
+ /**
18915
+ * ScheduledJob upsert
18916
+ */
18917
+ export type ScheduledJobUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18918
+ /**
18919
+ * Select specific fields to fetch from the ScheduledJob
18920
+ */
18921
+ select?: ScheduledJobSelect<ExtArgs> | null
18922
+ /**
18923
+ * Omit specific fields from the ScheduledJob
18924
+ */
18925
+ omit?: ScheduledJobOmit<ExtArgs> | null
18926
+ /**
18927
+ * The filter to search for the ScheduledJob to update in case it exists.
18928
+ */
18929
+ where: ScheduledJobWhereUniqueInput
18930
+ /**
18931
+ * In case the ScheduledJob found by the `where` argument doesn't exist, create a new ScheduledJob with this data.
18932
+ */
18933
+ create: XOR<ScheduledJobCreateInput, ScheduledJobUncheckedCreateInput>
18934
+ /**
18935
+ * In case the ScheduledJob was found with the provided `where` argument, update it with this data.
18936
+ */
18937
+ update: XOR<ScheduledJobUpdateInput, ScheduledJobUncheckedUpdateInput>
18938
+ }
18939
+
18940
+ /**
18941
+ * ScheduledJob delete
18942
+ */
18943
+ export type ScheduledJobDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18944
+ /**
18945
+ * Select specific fields to fetch from the ScheduledJob
18946
+ */
18947
+ select?: ScheduledJobSelect<ExtArgs> | null
18948
+ /**
18949
+ * Omit specific fields from the ScheduledJob
18950
+ */
18951
+ omit?: ScheduledJobOmit<ExtArgs> | null
18952
+ /**
18953
+ * Filter which ScheduledJob to delete.
18954
+ */
18955
+ where: ScheduledJobWhereUniqueInput
18956
+ }
18957
+
18958
+ /**
18959
+ * ScheduledJob deleteMany
18960
+ */
18961
+ export type ScheduledJobDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18962
+ /**
18963
+ * Filter which ScheduledJobs to delete
18964
+ */
18965
+ where?: ScheduledJobWhereInput
18966
+ /**
18967
+ * Limit how many ScheduledJobs to delete.
18968
+ */
18969
+ limit?: number
18970
+ }
18971
+
18972
+ /**
18973
+ * ScheduledJob findRaw
18974
+ */
18975
+ export type ScheduledJobFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18976
+ /**
18977
+ * The query predicate filter. If unspecified, then all documents in the collection will match the predicate. ${@link https://docs.mongodb.com/manual/reference/operator/query MongoDB Docs}.
18978
+ */
18979
+ filter?: InputJsonValue
18980
+ /**
18981
+ * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
18982
+ */
18983
+ options?: InputJsonValue
18984
+ }
18985
+
18986
+ /**
18987
+ * ScheduledJob aggregateRaw
18988
+ */
18989
+ export type ScheduledJobAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18990
+ /**
18991
+ * An array of aggregation stages to process and transform the document stream via the aggregation pipeline. ${@link https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline MongoDB Docs}.
18992
+ */
18993
+ pipeline?: InputJsonValue[]
18994
+ /**
18995
+ * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
18996
+ */
18997
+ options?: InputJsonValue
18998
+ }
18999
+
19000
+ /**
19001
+ * ScheduledJob without action
19002
+ */
19003
+ export type ScheduledJobDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19004
+ /**
19005
+ * Select specific fields to fetch from the ScheduledJob
19006
+ */
19007
+ select?: ScheduledJobSelect<ExtArgs> | null
19008
+ /**
19009
+ * Omit specific fields from the ScheduledJob
19010
+ */
19011
+ omit?: ScheduledJobOmit<ExtArgs> | null
19012
+ }
19013
+
19014
+
19015
+ /**
19016
+ * Enums
19017
+ */
19018
+
19019
+ export const UserScalarFieldEnum: {
19020
+ id: 'id',
19021
+ type: 'type',
19022
+ createdAt: 'createdAt',
19023
+ updatedAt: 'updatedAt',
19024
+ email: 'email',
19025
+ username: 'username',
19026
+ hashword: 'hashword',
19027
+ appUserId: 'appUserId',
19028
+ organizationId: 'organizationId',
19029
+ appOrgId: 'appOrgId',
19030
+ name: 'name'
19031
+ };
19032
+
19033
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
19034
+
19035
+
19036
+ export const TokenScalarFieldEnum: {
19037
+ id: 'id',
19038
+ token: 'token',
19039
+ created: 'created',
19040
+ expires: 'expires',
19041
+ userId: 'userId'
19042
+ };
19043
+
19044
+ export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
19045
+
19046
+
19047
+ export const CredentialScalarFieldEnum: {
19048
+ id: 'id',
19049
+ userId: 'userId',
19050
+ authIsValid: 'authIsValid',
19051
+ externalId: 'externalId',
19052
+ data: 'data',
19053
+ createdAt: 'createdAt',
19054
+ updatedAt: 'updatedAt'
19055
+ };
19056
+
19057
+ export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
19058
+
19059
+
19060
+ export const EntityScalarFieldEnum: {
19061
+ id: 'id',
19062
+ credentialId: 'credentialId',
19063
+ userId: 'userId',
19064
+ name: 'name',
15827
19065
  moduleName: 'moduleName',
15828
19066
  externalId: 'externalId',
15829
19067
  data: 'data',
@@ -15945,6 +19183,53 @@ export namespace Prisma {
15945
19183
  export type WebsocketConnectionScalarFieldEnum = (typeof WebsocketConnectionScalarFieldEnum)[keyof typeof WebsocketConnectionScalarFieldEnum]
15946
19184
 
15947
19185
 
19186
+ export const AdminProcessScalarFieldEnum: {
19187
+ id: 'id',
19188
+ name: 'name',
19189
+ type: 'type',
19190
+ state: 'state',
19191
+ context: 'context',
19192
+ results: 'results',
19193
+ childProcesses: 'childProcesses',
19194
+ parentProcessId: 'parentProcessId',
19195
+ createdAt: 'createdAt',
19196
+ updatedAt: 'updatedAt'
19197
+ };
19198
+
19199
+ export type AdminProcessScalarFieldEnum = (typeof AdminProcessScalarFieldEnum)[keyof typeof AdminProcessScalarFieldEnum]
19200
+
19201
+
19202
+ export const ScriptScheduleScalarFieldEnum: {
19203
+ id: 'id',
19204
+ scriptName: 'scriptName',
19205
+ enabled: 'enabled',
19206
+ cronExpression: 'cronExpression',
19207
+ timezone: 'timezone',
19208
+ lastTriggeredAt: 'lastTriggeredAt',
19209
+ nextTriggerAt: 'nextTriggerAt',
19210
+ externalScheduleId: 'externalScheduleId',
19211
+ externalScheduleName: 'externalScheduleName',
19212
+ createdAt: 'createdAt',
19213
+ updatedAt: 'updatedAt'
19214
+ };
19215
+
19216
+ export type ScriptScheduleScalarFieldEnum = (typeof ScriptScheduleScalarFieldEnum)[keyof typeof ScriptScheduleScalarFieldEnum]
19217
+
19218
+
19219
+ export const ScheduledJobScalarFieldEnum: {
19220
+ id: 'id',
19221
+ scheduleName: 'scheduleName',
19222
+ scheduledAt: 'scheduledAt',
19223
+ queueResourceId: 'queueResourceId',
19224
+ payload: 'payload',
19225
+ state: 'state',
19226
+ createdAt: 'createdAt',
19227
+ updatedAt: 'updatedAt'
19228
+ };
19229
+
19230
+ export type ScheduledJobScalarFieldEnum = (typeof ScheduledJobScalarFieldEnum)[keyof typeof ScheduledJobScalarFieldEnum]
19231
+
19232
+
15948
19233
  export const SortOrder: {
15949
19234
  asc: 'asc',
15950
19235
  desc: 'desc'
@@ -16050,6 +19335,20 @@ export namespace Prisma {
16050
19335
 
16051
19336
 
16052
19337
 
19338
+ /**
19339
+ * Reference to a field of type 'AdminProcessState'
19340
+ */
19341
+ export type EnumAdminProcessStateFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AdminProcessState'>
19342
+
19343
+
19344
+
19345
+ /**
19346
+ * Reference to a field of type 'AdminProcessState[]'
19347
+ */
19348
+ export type ListEnumAdminProcessStateFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AdminProcessState[]'>
19349
+
19350
+
19351
+
16053
19352
  /**
16054
19353
  * Reference to a field of type 'Int'
16055
19354
  */
@@ -16938,33 +20237,259 @@ export namespace Prisma {
16938
20237
  connectionId?: StringNullableFilter<"WebsocketConnection"> | string | null
16939
20238
  }
16940
20239
 
16941
- export type WebsocketConnectionOrderByWithRelationInput = {
20240
+ export type WebsocketConnectionOrderByWithRelationInput = {
20241
+ id?: SortOrder
20242
+ connectionId?: SortOrder
20243
+ }
20244
+
20245
+ export type WebsocketConnectionWhereUniqueInput = Prisma.AtLeast<{
20246
+ id?: string
20247
+ AND?: WebsocketConnectionWhereInput | WebsocketConnectionWhereInput[]
20248
+ OR?: WebsocketConnectionWhereInput[]
20249
+ NOT?: WebsocketConnectionWhereInput | WebsocketConnectionWhereInput[]
20250
+ connectionId?: StringNullableFilter<"WebsocketConnection"> | string | null
20251
+ }, "id">
20252
+
20253
+ export type WebsocketConnectionOrderByWithAggregationInput = {
20254
+ id?: SortOrder
20255
+ connectionId?: SortOrder
20256
+ _count?: WebsocketConnectionCountOrderByAggregateInput
20257
+ _max?: WebsocketConnectionMaxOrderByAggregateInput
20258
+ _min?: WebsocketConnectionMinOrderByAggregateInput
20259
+ }
20260
+
20261
+ export type WebsocketConnectionScalarWhereWithAggregatesInput = {
20262
+ AND?: WebsocketConnectionScalarWhereWithAggregatesInput | WebsocketConnectionScalarWhereWithAggregatesInput[]
20263
+ OR?: WebsocketConnectionScalarWhereWithAggregatesInput[]
20264
+ NOT?: WebsocketConnectionScalarWhereWithAggregatesInput | WebsocketConnectionScalarWhereWithAggregatesInput[]
20265
+ id?: StringWithAggregatesFilter<"WebsocketConnection"> | string
20266
+ connectionId?: StringNullableWithAggregatesFilter<"WebsocketConnection"> | string | null
20267
+ }
20268
+
20269
+ export type AdminProcessWhereInput = {
20270
+ AND?: AdminProcessWhereInput | AdminProcessWhereInput[]
20271
+ OR?: AdminProcessWhereInput[]
20272
+ NOT?: AdminProcessWhereInput | AdminProcessWhereInput[]
20273
+ id?: StringFilter<"AdminProcess"> | string
20274
+ name?: StringFilter<"AdminProcess"> | string
20275
+ type?: StringFilter<"AdminProcess"> | string
20276
+ state?: EnumAdminProcessStateFilter<"AdminProcess"> | $Enums.AdminProcessState
20277
+ context?: JsonFilter<"AdminProcess">
20278
+ results?: JsonFilter<"AdminProcess">
20279
+ childProcesses?: StringNullableListFilter<"AdminProcess">
20280
+ parentProcessId?: StringNullableFilter<"AdminProcess"> | string | null
20281
+ createdAt?: DateTimeFilter<"AdminProcess"> | Date | string
20282
+ updatedAt?: DateTimeFilter<"AdminProcess"> | Date | string
20283
+ }
20284
+
20285
+ export type AdminProcessOrderByWithRelationInput = {
20286
+ id?: SortOrder
20287
+ name?: SortOrder
20288
+ type?: SortOrder
20289
+ state?: SortOrder
20290
+ context?: SortOrder
20291
+ results?: SortOrder
20292
+ childProcesses?: SortOrder
20293
+ parentProcessId?: SortOrder
20294
+ createdAt?: SortOrder
20295
+ updatedAt?: SortOrder
20296
+ }
20297
+
20298
+ export type AdminProcessWhereUniqueInput = Prisma.AtLeast<{
20299
+ id?: string
20300
+ AND?: AdminProcessWhereInput | AdminProcessWhereInput[]
20301
+ OR?: AdminProcessWhereInput[]
20302
+ NOT?: AdminProcessWhereInput | AdminProcessWhereInput[]
20303
+ name?: StringFilter<"AdminProcess"> | string
20304
+ type?: StringFilter<"AdminProcess"> | string
20305
+ state?: EnumAdminProcessStateFilter<"AdminProcess"> | $Enums.AdminProcessState
20306
+ context?: JsonFilter<"AdminProcess">
20307
+ results?: JsonFilter<"AdminProcess">
20308
+ childProcesses?: StringNullableListFilter<"AdminProcess">
20309
+ parentProcessId?: StringNullableFilter<"AdminProcess"> | string | null
20310
+ createdAt?: DateTimeFilter<"AdminProcess"> | Date | string
20311
+ updatedAt?: DateTimeFilter<"AdminProcess"> | Date | string
20312
+ }, "id">
20313
+
20314
+ export type AdminProcessOrderByWithAggregationInput = {
20315
+ id?: SortOrder
20316
+ name?: SortOrder
20317
+ type?: SortOrder
20318
+ state?: SortOrder
20319
+ context?: SortOrder
20320
+ results?: SortOrder
20321
+ childProcesses?: SortOrder
20322
+ parentProcessId?: SortOrder
20323
+ createdAt?: SortOrder
20324
+ updatedAt?: SortOrder
20325
+ _count?: AdminProcessCountOrderByAggregateInput
20326
+ _max?: AdminProcessMaxOrderByAggregateInput
20327
+ _min?: AdminProcessMinOrderByAggregateInput
20328
+ }
20329
+
20330
+ export type AdminProcessScalarWhereWithAggregatesInput = {
20331
+ AND?: AdminProcessScalarWhereWithAggregatesInput | AdminProcessScalarWhereWithAggregatesInput[]
20332
+ OR?: AdminProcessScalarWhereWithAggregatesInput[]
20333
+ NOT?: AdminProcessScalarWhereWithAggregatesInput | AdminProcessScalarWhereWithAggregatesInput[]
20334
+ id?: StringWithAggregatesFilter<"AdminProcess"> | string
20335
+ name?: StringWithAggregatesFilter<"AdminProcess"> | string
20336
+ type?: StringWithAggregatesFilter<"AdminProcess"> | string
20337
+ state?: EnumAdminProcessStateWithAggregatesFilter<"AdminProcess"> | $Enums.AdminProcessState
20338
+ context?: JsonWithAggregatesFilter<"AdminProcess">
20339
+ results?: JsonWithAggregatesFilter<"AdminProcess">
20340
+ childProcesses?: StringNullableListFilter<"AdminProcess">
20341
+ parentProcessId?: StringNullableWithAggregatesFilter<"AdminProcess"> | string | null
20342
+ createdAt?: DateTimeWithAggregatesFilter<"AdminProcess"> | Date | string
20343
+ updatedAt?: DateTimeWithAggregatesFilter<"AdminProcess"> | Date | string
20344
+ }
20345
+
20346
+ export type ScriptScheduleWhereInput = {
20347
+ AND?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
20348
+ OR?: ScriptScheduleWhereInput[]
20349
+ NOT?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
20350
+ id?: StringFilter<"ScriptSchedule"> | string
20351
+ scriptName?: StringFilter<"ScriptSchedule"> | string
20352
+ enabled?: BoolFilter<"ScriptSchedule"> | boolean
20353
+ cronExpression?: StringNullableFilter<"ScriptSchedule"> | string | null
20354
+ timezone?: StringFilter<"ScriptSchedule"> | string
20355
+ lastTriggeredAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
20356
+ nextTriggerAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
20357
+ externalScheduleId?: StringNullableFilter<"ScriptSchedule"> | string | null
20358
+ externalScheduleName?: StringNullableFilter<"ScriptSchedule"> | string | null
20359
+ createdAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
20360
+ updatedAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
20361
+ }
20362
+
20363
+ export type ScriptScheduleOrderByWithRelationInput = {
20364
+ id?: SortOrder
20365
+ scriptName?: SortOrder
20366
+ enabled?: SortOrder
20367
+ cronExpression?: SortOrder
20368
+ timezone?: SortOrder
20369
+ lastTriggeredAt?: SortOrder
20370
+ nextTriggerAt?: SortOrder
20371
+ externalScheduleId?: SortOrder
20372
+ externalScheduleName?: SortOrder
20373
+ createdAt?: SortOrder
20374
+ updatedAt?: SortOrder
20375
+ }
20376
+
20377
+ export type ScriptScheduleWhereUniqueInput = Prisma.AtLeast<{
20378
+ id?: string
20379
+ scriptName?: string
20380
+ AND?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
20381
+ OR?: ScriptScheduleWhereInput[]
20382
+ NOT?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
20383
+ enabled?: BoolFilter<"ScriptSchedule"> | boolean
20384
+ cronExpression?: StringNullableFilter<"ScriptSchedule"> | string | null
20385
+ timezone?: StringFilter<"ScriptSchedule"> | string
20386
+ lastTriggeredAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
20387
+ nextTriggerAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
20388
+ externalScheduleId?: StringNullableFilter<"ScriptSchedule"> | string | null
20389
+ externalScheduleName?: StringNullableFilter<"ScriptSchedule"> | string | null
20390
+ createdAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
20391
+ updatedAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
20392
+ }, "id" | "scriptName">
20393
+
20394
+ export type ScriptScheduleOrderByWithAggregationInput = {
16942
20395
  id?: SortOrder
16943
- connectionId?: SortOrder
20396
+ scriptName?: SortOrder
20397
+ enabled?: SortOrder
20398
+ cronExpression?: SortOrder
20399
+ timezone?: SortOrder
20400
+ lastTriggeredAt?: SortOrder
20401
+ nextTriggerAt?: SortOrder
20402
+ externalScheduleId?: SortOrder
20403
+ externalScheduleName?: SortOrder
20404
+ createdAt?: SortOrder
20405
+ updatedAt?: SortOrder
20406
+ _count?: ScriptScheduleCountOrderByAggregateInput
20407
+ _max?: ScriptScheduleMaxOrderByAggregateInput
20408
+ _min?: ScriptScheduleMinOrderByAggregateInput
20409
+ }
20410
+
20411
+ export type ScriptScheduleScalarWhereWithAggregatesInput = {
20412
+ AND?: ScriptScheduleScalarWhereWithAggregatesInput | ScriptScheduleScalarWhereWithAggregatesInput[]
20413
+ OR?: ScriptScheduleScalarWhereWithAggregatesInput[]
20414
+ NOT?: ScriptScheduleScalarWhereWithAggregatesInput | ScriptScheduleScalarWhereWithAggregatesInput[]
20415
+ id?: StringWithAggregatesFilter<"ScriptSchedule"> | string
20416
+ scriptName?: StringWithAggregatesFilter<"ScriptSchedule"> | string
20417
+ enabled?: BoolWithAggregatesFilter<"ScriptSchedule"> | boolean
20418
+ cronExpression?: StringNullableWithAggregatesFilter<"ScriptSchedule"> | string | null
20419
+ timezone?: StringWithAggregatesFilter<"ScriptSchedule"> | string
20420
+ lastTriggeredAt?: DateTimeNullableWithAggregatesFilter<"ScriptSchedule"> | Date | string | null
20421
+ nextTriggerAt?: DateTimeNullableWithAggregatesFilter<"ScriptSchedule"> | Date | string | null
20422
+ externalScheduleId?: StringNullableWithAggregatesFilter<"ScriptSchedule"> | string | null
20423
+ externalScheduleName?: StringNullableWithAggregatesFilter<"ScriptSchedule"> | string | null
20424
+ createdAt?: DateTimeWithAggregatesFilter<"ScriptSchedule"> | Date | string
20425
+ updatedAt?: DateTimeWithAggregatesFilter<"ScriptSchedule"> | Date | string
20426
+ }
20427
+
20428
+ export type ScheduledJobWhereInput = {
20429
+ AND?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
20430
+ OR?: ScheduledJobWhereInput[]
20431
+ NOT?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
20432
+ id?: StringFilter<"ScheduledJob"> | string
20433
+ scheduleName?: StringFilter<"ScheduledJob"> | string
20434
+ scheduledAt?: DateTimeFilter<"ScheduledJob"> | Date | string
20435
+ queueResourceId?: StringFilter<"ScheduledJob"> | string
20436
+ payload?: JsonNullableFilter<"ScheduledJob">
20437
+ state?: StringFilter<"ScheduledJob"> | string
20438
+ createdAt?: DateTimeFilter<"ScheduledJob"> | Date | string
20439
+ updatedAt?: DateTimeFilter<"ScheduledJob"> | Date | string
20440
+ }
20441
+
20442
+ export type ScheduledJobOrderByWithRelationInput = {
20443
+ id?: SortOrder
20444
+ scheduleName?: SortOrder
20445
+ scheduledAt?: SortOrder
20446
+ queueResourceId?: SortOrder
20447
+ payload?: SortOrder
20448
+ state?: SortOrder
20449
+ createdAt?: SortOrder
20450
+ updatedAt?: SortOrder
16944
20451
  }
16945
20452
 
16946
- export type WebsocketConnectionWhereUniqueInput = Prisma.AtLeast<{
20453
+ export type ScheduledJobWhereUniqueInput = Prisma.AtLeast<{
16947
20454
  id?: string
16948
- AND?: WebsocketConnectionWhereInput | WebsocketConnectionWhereInput[]
16949
- OR?: WebsocketConnectionWhereInput[]
16950
- NOT?: WebsocketConnectionWhereInput | WebsocketConnectionWhereInput[]
16951
- connectionId?: StringNullableFilter<"WebsocketConnection"> | string | null
16952
- }, "id">
16953
-
16954
- export type WebsocketConnectionOrderByWithAggregationInput = {
20455
+ scheduleName?: string
20456
+ AND?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
20457
+ OR?: ScheduledJobWhereInput[]
20458
+ NOT?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
20459
+ scheduledAt?: DateTimeFilter<"ScheduledJob"> | Date | string
20460
+ queueResourceId?: StringFilter<"ScheduledJob"> | string
20461
+ payload?: JsonNullableFilter<"ScheduledJob">
20462
+ state?: StringFilter<"ScheduledJob"> | string
20463
+ createdAt?: DateTimeFilter<"ScheduledJob"> | Date | string
20464
+ updatedAt?: DateTimeFilter<"ScheduledJob"> | Date | string
20465
+ }, "id" | "scheduleName">
20466
+
20467
+ export type ScheduledJobOrderByWithAggregationInput = {
16955
20468
  id?: SortOrder
16956
- connectionId?: SortOrder
16957
- _count?: WebsocketConnectionCountOrderByAggregateInput
16958
- _max?: WebsocketConnectionMaxOrderByAggregateInput
16959
- _min?: WebsocketConnectionMinOrderByAggregateInput
20469
+ scheduleName?: SortOrder
20470
+ scheduledAt?: SortOrder
20471
+ queueResourceId?: SortOrder
20472
+ payload?: SortOrder
20473
+ state?: SortOrder
20474
+ createdAt?: SortOrder
20475
+ updatedAt?: SortOrder
20476
+ _count?: ScheduledJobCountOrderByAggregateInput
20477
+ _max?: ScheduledJobMaxOrderByAggregateInput
20478
+ _min?: ScheduledJobMinOrderByAggregateInput
16960
20479
  }
16961
20480
 
16962
- export type WebsocketConnectionScalarWhereWithAggregatesInput = {
16963
- AND?: WebsocketConnectionScalarWhereWithAggregatesInput | WebsocketConnectionScalarWhereWithAggregatesInput[]
16964
- OR?: WebsocketConnectionScalarWhereWithAggregatesInput[]
16965
- NOT?: WebsocketConnectionScalarWhereWithAggregatesInput | WebsocketConnectionScalarWhereWithAggregatesInput[]
16966
- id?: StringWithAggregatesFilter<"WebsocketConnection"> | string
16967
- connectionId?: StringNullableWithAggregatesFilter<"WebsocketConnection"> | string | null
20481
+ export type ScheduledJobScalarWhereWithAggregatesInput = {
20482
+ AND?: ScheduledJobScalarWhereWithAggregatesInput | ScheduledJobScalarWhereWithAggregatesInput[]
20483
+ OR?: ScheduledJobScalarWhereWithAggregatesInput[]
20484
+ NOT?: ScheduledJobScalarWhereWithAggregatesInput | ScheduledJobScalarWhereWithAggregatesInput[]
20485
+ id?: StringWithAggregatesFilter<"ScheduledJob"> | string
20486
+ scheduleName?: StringWithAggregatesFilter<"ScheduledJob"> | string
20487
+ scheduledAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
20488
+ queueResourceId?: StringWithAggregatesFilter<"ScheduledJob"> | string
20489
+ payload?: JsonNullableWithAggregatesFilter<"ScheduledJob">
20490
+ state?: StringWithAggregatesFilter<"ScheduledJob"> | string
20491
+ createdAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
20492
+ updatedAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
16968
20493
  }
16969
20494
 
16970
20495
  export type UserCreateInput = {
@@ -17860,6 +21385,260 @@ export namespace Prisma {
17860
21385
  connectionId?: NullableStringFieldUpdateOperationsInput | string | null
17861
21386
  }
17862
21387
 
21388
+ export type AdminProcessCreateInput = {
21389
+ id?: string
21390
+ name: string
21391
+ type: string
21392
+ state?: $Enums.AdminProcessState
21393
+ context?: InputJsonValue
21394
+ results?: InputJsonValue
21395
+ childProcesses?: AdminProcessCreatechildProcessesInput | string[]
21396
+ parentProcessId?: string | null
21397
+ createdAt?: Date | string
21398
+ updatedAt?: Date | string
21399
+ }
21400
+
21401
+ export type AdminProcessUncheckedCreateInput = {
21402
+ id?: string
21403
+ name: string
21404
+ type: string
21405
+ state?: $Enums.AdminProcessState
21406
+ context?: InputJsonValue
21407
+ results?: InputJsonValue
21408
+ childProcesses?: AdminProcessCreatechildProcessesInput | string[]
21409
+ parentProcessId?: string | null
21410
+ createdAt?: Date | string
21411
+ updatedAt?: Date | string
21412
+ }
21413
+
21414
+ export type AdminProcessUpdateInput = {
21415
+ name?: StringFieldUpdateOperationsInput | string
21416
+ type?: StringFieldUpdateOperationsInput | string
21417
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
21418
+ context?: InputJsonValue | InputJsonValue
21419
+ results?: InputJsonValue | InputJsonValue
21420
+ childProcesses?: AdminProcessUpdatechildProcessesInput | string[]
21421
+ parentProcessId?: NullableStringFieldUpdateOperationsInput | string | null
21422
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21423
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21424
+ }
21425
+
21426
+ export type AdminProcessUncheckedUpdateInput = {
21427
+ name?: StringFieldUpdateOperationsInput | string
21428
+ type?: StringFieldUpdateOperationsInput | string
21429
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
21430
+ context?: InputJsonValue | InputJsonValue
21431
+ results?: InputJsonValue | InputJsonValue
21432
+ childProcesses?: AdminProcessUpdatechildProcessesInput | string[]
21433
+ parentProcessId?: NullableStringFieldUpdateOperationsInput | string | null
21434
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21435
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21436
+ }
21437
+
21438
+ export type AdminProcessCreateManyInput = {
21439
+ id?: string
21440
+ name: string
21441
+ type: string
21442
+ state?: $Enums.AdminProcessState
21443
+ context?: InputJsonValue
21444
+ results?: InputJsonValue
21445
+ childProcesses?: AdminProcessCreatechildProcessesInput | string[]
21446
+ parentProcessId?: string | null
21447
+ createdAt?: Date | string
21448
+ updatedAt?: Date | string
21449
+ }
21450
+
21451
+ export type AdminProcessUpdateManyMutationInput = {
21452
+ name?: StringFieldUpdateOperationsInput | string
21453
+ type?: StringFieldUpdateOperationsInput | string
21454
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
21455
+ context?: InputJsonValue | InputJsonValue
21456
+ results?: InputJsonValue | InputJsonValue
21457
+ childProcesses?: AdminProcessUpdatechildProcessesInput | string[]
21458
+ parentProcessId?: NullableStringFieldUpdateOperationsInput | string | null
21459
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21460
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21461
+ }
21462
+
21463
+ export type AdminProcessUncheckedUpdateManyInput = {
21464
+ name?: StringFieldUpdateOperationsInput | string
21465
+ type?: StringFieldUpdateOperationsInput | string
21466
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
21467
+ context?: InputJsonValue | InputJsonValue
21468
+ results?: InputJsonValue | InputJsonValue
21469
+ childProcesses?: AdminProcessUpdatechildProcessesInput | string[]
21470
+ parentProcessId?: NullableStringFieldUpdateOperationsInput | string | null
21471
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21472
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21473
+ }
21474
+
21475
+ export type ScriptScheduleCreateInput = {
21476
+ id?: string
21477
+ scriptName: string
21478
+ enabled?: boolean
21479
+ cronExpression?: string | null
21480
+ timezone?: string
21481
+ lastTriggeredAt?: Date | string | null
21482
+ nextTriggerAt?: Date | string | null
21483
+ externalScheduleId?: string | null
21484
+ externalScheduleName?: string | null
21485
+ createdAt?: Date | string
21486
+ updatedAt?: Date | string
21487
+ }
21488
+
21489
+ export type ScriptScheduleUncheckedCreateInput = {
21490
+ id?: string
21491
+ scriptName: string
21492
+ enabled?: boolean
21493
+ cronExpression?: string | null
21494
+ timezone?: string
21495
+ lastTriggeredAt?: Date | string | null
21496
+ nextTriggerAt?: Date | string | null
21497
+ externalScheduleId?: string | null
21498
+ externalScheduleName?: string | null
21499
+ createdAt?: Date | string
21500
+ updatedAt?: Date | string
21501
+ }
21502
+
21503
+ export type ScriptScheduleUpdateInput = {
21504
+ scriptName?: StringFieldUpdateOperationsInput | string
21505
+ enabled?: BoolFieldUpdateOperationsInput | boolean
21506
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
21507
+ timezone?: StringFieldUpdateOperationsInput | string
21508
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21509
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21510
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
21511
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
21512
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21513
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21514
+ }
21515
+
21516
+ export type ScriptScheduleUncheckedUpdateInput = {
21517
+ scriptName?: StringFieldUpdateOperationsInput | string
21518
+ enabled?: BoolFieldUpdateOperationsInput | boolean
21519
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
21520
+ timezone?: StringFieldUpdateOperationsInput | string
21521
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21522
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21523
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
21524
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
21525
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21526
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21527
+ }
21528
+
21529
+ export type ScriptScheduleCreateManyInput = {
21530
+ id?: string
21531
+ scriptName: string
21532
+ enabled?: boolean
21533
+ cronExpression?: string | null
21534
+ timezone?: string
21535
+ lastTriggeredAt?: Date | string | null
21536
+ nextTriggerAt?: Date | string | null
21537
+ externalScheduleId?: string | null
21538
+ externalScheduleName?: string | null
21539
+ createdAt?: Date | string
21540
+ updatedAt?: Date | string
21541
+ }
21542
+
21543
+ export type ScriptScheduleUpdateManyMutationInput = {
21544
+ scriptName?: StringFieldUpdateOperationsInput | string
21545
+ enabled?: BoolFieldUpdateOperationsInput | boolean
21546
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
21547
+ timezone?: StringFieldUpdateOperationsInput | string
21548
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21549
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21550
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
21551
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
21552
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21553
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21554
+ }
21555
+
21556
+ export type ScriptScheduleUncheckedUpdateManyInput = {
21557
+ scriptName?: StringFieldUpdateOperationsInput | string
21558
+ enabled?: BoolFieldUpdateOperationsInput | boolean
21559
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
21560
+ timezone?: StringFieldUpdateOperationsInput | string
21561
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21562
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21563
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
21564
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
21565
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21566
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21567
+ }
21568
+
21569
+ export type ScheduledJobCreateInput = {
21570
+ id?: string
21571
+ scheduleName: string
21572
+ scheduledAt: Date | string
21573
+ queueResourceId: string
21574
+ payload?: InputJsonValue | null
21575
+ state?: string
21576
+ createdAt?: Date | string
21577
+ updatedAt?: Date | string
21578
+ }
21579
+
21580
+ export type ScheduledJobUncheckedCreateInput = {
21581
+ id?: string
21582
+ scheduleName: string
21583
+ scheduledAt: Date | string
21584
+ queueResourceId: string
21585
+ payload?: InputJsonValue | null
21586
+ state?: string
21587
+ createdAt?: Date | string
21588
+ updatedAt?: Date | string
21589
+ }
21590
+
21591
+ export type ScheduledJobUpdateInput = {
21592
+ scheduleName?: StringFieldUpdateOperationsInput | string
21593
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
21594
+ queueResourceId?: StringFieldUpdateOperationsInput | string
21595
+ payload?: InputJsonValue | InputJsonValue | null
21596
+ state?: StringFieldUpdateOperationsInput | string
21597
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21598
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21599
+ }
21600
+
21601
+ export type ScheduledJobUncheckedUpdateInput = {
21602
+ scheduleName?: StringFieldUpdateOperationsInput | string
21603
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
21604
+ queueResourceId?: StringFieldUpdateOperationsInput | string
21605
+ payload?: InputJsonValue | InputJsonValue | null
21606
+ state?: StringFieldUpdateOperationsInput | string
21607
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21608
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21609
+ }
21610
+
21611
+ export type ScheduledJobCreateManyInput = {
21612
+ id?: string
21613
+ scheduleName: string
21614
+ scheduledAt: Date | string
21615
+ queueResourceId: string
21616
+ payload?: InputJsonValue | null
21617
+ state?: string
21618
+ createdAt?: Date | string
21619
+ updatedAt?: Date | string
21620
+ }
21621
+
21622
+ export type ScheduledJobUpdateManyMutationInput = {
21623
+ scheduleName?: StringFieldUpdateOperationsInput | string
21624
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
21625
+ queueResourceId?: StringFieldUpdateOperationsInput | string
21626
+ payload?: InputJsonValue | InputJsonValue | null
21627
+ state?: StringFieldUpdateOperationsInput | string
21628
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21629
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21630
+ }
21631
+
21632
+ export type ScheduledJobUncheckedUpdateManyInput = {
21633
+ scheduleName?: StringFieldUpdateOperationsInput | string
21634
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
21635
+ queueResourceId?: StringFieldUpdateOperationsInput | string
21636
+ payload?: InputJsonValue | InputJsonValue | null
21637
+ state?: StringFieldUpdateOperationsInput | string
21638
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21639
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21640
+ }
21641
+
17863
21642
  export type StringFilter<$PrismaModel = never> = {
17864
21643
  equals?: string | StringFieldRefInput<$PrismaModel>
17865
21644
  in?: string[] | ListStringFieldRefInput<$PrismaModel>
@@ -18614,6 +22393,142 @@ export namespace Prisma {
18614
22393
  connectionId?: SortOrder
18615
22394
  }
18616
22395
 
22396
+ export type EnumAdminProcessStateFilter<$PrismaModel = never> = {
22397
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
22398
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
22399
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
22400
+ not?: NestedEnumAdminProcessStateFilter<$PrismaModel> | $Enums.AdminProcessState
22401
+ }
22402
+
22403
+ export type AdminProcessCountOrderByAggregateInput = {
22404
+ id?: SortOrder
22405
+ name?: SortOrder
22406
+ type?: SortOrder
22407
+ state?: SortOrder
22408
+ context?: SortOrder
22409
+ results?: SortOrder
22410
+ childProcesses?: SortOrder
22411
+ parentProcessId?: SortOrder
22412
+ createdAt?: SortOrder
22413
+ updatedAt?: SortOrder
22414
+ }
22415
+
22416
+ export type AdminProcessMaxOrderByAggregateInput = {
22417
+ id?: SortOrder
22418
+ name?: SortOrder
22419
+ type?: SortOrder
22420
+ state?: SortOrder
22421
+ parentProcessId?: SortOrder
22422
+ createdAt?: SortOrder
22423
+ updatedAt?: SortOrder
22424
+ }
22425
+
22426
+ export type AdminProcessMinOrderByAggregateInput = {
22427
+ id?: SortOrder
22428
+ name?: SortOrder
22429
+ type?: SortOrder
22430
+ state?: SortOrder
22431
+ parentProcessId?: SortOrder
22432
+ createdAt?: SortOrder
22433
+ updatedAt?: SortOrder
22434
+ }
22435
+
22436
+ export type EnumAdminProcessStateWithAggregatesFilter<$PrismaModel = never> = {
22437
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
22438
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
22439
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
22440
+ not?: NestedEnumAdminProcessStateWithAggregatesFilter<$PrismaModel> | $Enums.AdminProcessState
22441
+ _count?: NestedIntFilter<$PrismaModel>
22442
+ _min?: NestedEnumAdminProcessStateFilter<$PrismaModel>
22443
+ _max?: NestedEnumAdminProcessStateFilter<$PrismaModel>
22444
+ }
22445
+
22446
+ export type BoolFilter<$PrismaModel = never> = {
22447
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
22448
+ not?: NestedBoolFilter<$PrismaModel> | boolean
22449
+ }
22450
+
22451
+ export type ScriptScheduleCountOrderByAggregateInput = {
22452
+ id?: SortOrder
22453
+ scriptName?: SortOrder
22454
+ enabled?: SortOrder
22455
+ cronExpression?: SortOrder
22456
+ timezone?: SortOrder
22457
+ lastTriggeredAt?: SortOrder
22458
+ nextTriggerAt?: SortOrder
22459
+ externalScheduleId?: SortOrder
22460
+ externalScheduleName?: SortOrder
22461
+ createdAt?: SortOrder
22462
+ updatedAt?: SortOrder
22463
+ }
22464
+
22465
+ export type ScriptScheduleMaxOrderByAggregateInput = {
22466
+ id?: SortOrder
22467
+ scriptName?: SortOrder
22468
+ enabled?: SortOrder
22469
+ cronExpression?: SortOrder
22470
+ timezone?: SortOrder
22471
+ lastTriggeredAt?: SortOrder
22472
+ nextTriggerAt?: SortOrder
22473
+ externalScheduleId?: SortOrder
22474
+ externalScheduleName?: SortOrder
22475
+ createdAt?: SortOrder
22476
+ updatedAt?: SortOrder
22477
+ }
22478
+
22479
+ export type ScriptScheduleMinOrderByAggregateInput = {
22480
+ id?: SortOrder
22481
+ scriptName?: SortOrder
22482
+ enabled?: SortOrder
22483
+ cronExpression?: SortOrder
22484
+ timezone?: SortOrder
22485
+ lastTriggeredAt?: SortOrder
22486
+ nextTriggerAt?: SortOrder
22487
+ externalScheduleId?: SortOrder
22488
+ externalScheduleName?: SortOrder
22489
+ createdAt?: SortOrder
22490
+ updatedAt?: SortOrder
22491
+ }
22492
+
22493
+ export type BoolWithAggregatesFilter<$PrismaModel = never> = {
22494
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
22495
+ not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
22496
+ _count?: NestedIntFilter<$PrismaModel>
22497
+ _min?: NestedBoolFilter<$PrismaModel>
22498
+ _max?: NestedBoolFilter<$PrismaModel>
22499
+ }
22500
+
22501
+ export type ScheduledJobCountOrderByAggregateInput = {
22502
+ id?: SortOrder
22503
+ scheduleName?: SortOrder
22504
+ scheduledAt?: SortOrder
22505
+ queueResourceId?: SortOrder
22506
+ payload?: SortOrder
22507
+ state?: SortOrder
22508
+ createdAt?: SortOrder
22509
+ updatedAt?: SortOrder
22510
+ }
22511
+
22512
+ export type ScheduledJobMaxOrderByAggregateInput = {
22513
+ id?: SortOrder
22514
+ scheduleName?: SortOrder
22515
+ scheduledAt?: SortOrder
22516
+ queueResourceId?: SortOrder
22517
+ state?: SortOrder
22518
+ createdAt?: SortOrder
22519
+ updatedAt?: SortOrder
22520
+ }
22521
+
22522
+ export type ScheduledJobMinOrderByAggregateInput = {
22523
+ id?: SortOrder
22524
+ scheduleName?: SortOrder
22525
+ scheduledAt?: SortOrder
22526
+ queueResourceId?: SortOrder
22527
+ state?: SortOrder
22528
+ createdAt?: SortOrder
22529
+ updatedAt?: SortOrder
22530
+ }
22531
+
18617
22532
  export type UserCreateNestedOneWithoutMembersInput = {
18618
22533
  create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
18619
22534
  connectOrCreate?: UserCreateOrConnectWithoutMembersInput
@@ -19700,6 +23615,23 @@ export namespace Prisma {
19700
23615
  update?: XOR<XOR<EntityUpdateToOneWithWhereWithoutAssociationObjectsInput, EntityUpdateWithoutAssociationObjectsInput>, EntityUncheckedUpdateWithoutAssociationObjectsInput>
19701
23616
  }
19702
23617
 
23618
+ export type AdminProcessCreatechildProcessesInput = {
23619
+ set: string[]
23620
+ }
23621
+
23622
+ export type EnumAdminProcessStateFieldUpdateOperationsInput = {
23623
+ set?: $Enums.AdminProcessState
23624
+ }
23625
+
23626
+ export type AdminProcessUpdatechildProcessesInput = {
23627
+ set?: string[]
23628
+ push?: string | string[]
23629
+ }
23630
+
23631
+ export type BoolFieldUpdateOperationsInput = {
23632
+ set?: boolean
23633
+ }
23634
+
19703
23635
  export type NestedStringFilter<$PrismaModel = never> = {
19704
23636
  equals?: string | StringFieldRefInput<$PrismaModel>
19705
23637
  in?: string[] | ListStringFieldRefInput<$PrismaModel>
@@ -19928,6 +23860,36 @@ export namespace Prisma {
19928
23860
  _max?: NestedEnumAssociationTypeFilter<$PrismaModel>
19929
23861
  }
19930
23862
 
23863
+ export type NestedEnumAdminProcessStateFilter<$PrismaModel = never> = {
23864
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
23865
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
23866
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
23867
+ not?: NestedEnumAdminProcessStateFilter<$PrismaModel> | $Enums.AdminProcessState
23868
+ }
23869
+
23870
+ export type NestedEnumAdminProcessStateWithAggregatesFilter<$PrismaModel = never> = {
23871
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
23872
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
23873
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
23874
+ not?: NestedEnumAdminProcessStateWithAggregatesFilter<$PrismaModel> | $Enums.AdminProcessState
23875
+ _count?: NestedIntFilter<$PrismaModel>
23876
+ _min?: NestedEnumAdminProcessStateFilter<$PrismaModel>
23877
+ _max?: NestedEnumAdminProcessStateFilter<$PrismaModel>
23878
+ }
23879
+
23880
+ export type NestedBoolFilter<$PrismaModel = never> = {
23881
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
23882
+ not?: NestedBoolFilter<$PrismaModel> | boolean
23883
+ }
23884
+
23885
+ export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
23886
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
23887
+ not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
23888
+ _count?: NestedIntFilter<$PrismaModel>
23889
+ _min?: NestedBoolFilter<$PrismaModel>
23890
+ _max?: NestedBoolFilter<$PrismaModel>
23891
+ }
23892
+
19931
23893
  export type UserCreateWithoutMembersInput = {
19932
23894
  id?: string
19933
23895
  type: $Enums.UserType