@aeolus-fleet/core 0.31.0 → 0.32.1

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 (268) hide show
  1. package/README.md +1 -1
  2. package/dist/adapters/prisma/defined-scopes.d.ts +4 -0
  3. package/dist/adapters/prisma/defined-scopes.js +23 -0
  4. package/dist/adapters/prisma/defined-scopes.js.map +1 -0
  5. package/dist/adapters/prisma/delivery-notices.d.ts +3 -0
  6. package/dist/adapters/prisma/delivery-notices.js +7 -2
  7. package/dist/adapters/prisma/delivery-notices.js.map +1 -1
  8. package/dist/adapters/prisma/fleet-limit-settings.d.ts +6 -0
  9. package/dist/adapters/prisma/fleet-limit-settings.js +17 -0
  10. package/dist/adapters/prisma/fleet-limit-settings.js.map +1 -0
  11. package/dist/adapters/prisma/generated/browser.d.ts +17 -3
  12. package/dist/adapters/prisma/generated/client.d.ts +17 -3
  13. package/dist/adapters/prisma/generated/commonInputTypes.d.ts +196 -46
  14. package/dist/adapters/prisma/generated/enums.d.ts +32 -0
  15. package/dist/adapters/prisma/generated/enums.js +28 -1
  16. package/dist/adapters/prisma/generated/enums.js.map +1 -1
  17. package/dist/adapters/prisma/generated/internal/class.d.ts +22 -0
  18. package/dist/adapters/prisma/generated/internal/class.js +4 -4
  19. package/dist/adapters/prisma/generated/internal/class.js.map +1 -1
  20. package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +254 -1
  21. package/dist/adapters/prisma/generated/internal/prismaNamespace.js +62 -1
  22. package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -1
  23. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +63 -0
  24. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +62 -1
  25. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -1
  26. package/dist/adapters/prisma/generated/models/DefinedScope.d.ts +1110 -0
  27. package/dist/adapters/prisma/generated/models/DefinedScope.js +2 -0
  28. package/dist/adapters/prisma/generated/models/DefinedScope.js.map +1 -0
  29. package/dist/adapters/prisma/generated/models/Fleet.d.ts +2128 -2
  30. package/dist/adapters/prisma/generated/models/InstallationSettings.d.ts +108 -4
  31. package/dist/adapters/prisma/generated/models/Message.d.ts +557 -516
  32. package/dist/adapters/prisma/generated/models/Schedule.d.ts +3925 -0
  33. package/dist/adapters/prisma/generated/models/Schedule.js +2 -0
  34. package/dist/adapters/prisma/generated/models/Schedule.js.map +1 -0
  35. package/dist/adapters/prisma/generated/models/Ship.d.ts +736 -3
  36. package/dist/adapters/prisma/generated/models.d.ts +2 -0
  37. package/dist/adapters/prisma/history-pruner.d.ts +3 -0
  38. package/dist/adapters/prisma/history-pruner.js +232 -0
  39. package/dist/adapters/prisma/history-pruner.js.map +1 -0
  40. package/dist/adapters/prisma/history.js +67 -14
  41. package/dist/adapters/prisma/history.js.map +1 -1
  42. package/dist/adapters/prisma/installation.js +27 -8
  43. package/dist/adapters/prisma/installation.js.map +1 -1
  44. package/dist/adapters/prisma/messaging.js +7 -3
  45. package/dist/adapters/prisma/messaging.js.map +1 -1
  46. package/dist/adapters/prisma/registry.js +28 -9
  47. package/dist/adapters/prisma/registry.js.map +1 -1
  48. package/dist/adapters/prisma/rows.js +10 -1
  49. package/dist/adapters/prisma/rows.js.map +1 -1
  50. package/dist/adapters/prisma/schedules.d.ts +12 -0
  51. package/dist/adapters/prisma/schedules.js +255 -0
  52. package/dist/adapters/prisma/schedules.js.map +1 -0
  53. package/dist/adapters/prisma/unit-of-work.d.ts +7 -2
  54. package/dist/adapters/prisma/unit-of-work.js +7 -0
  55. package/dist/adapters/prisma/unit-of-work.js.map +1 -1
  56. package/dist/adapters/trpc/console.d.ts +1 -1
  57. package/dist/adapters/trpc/console.js +3 -6
  58. package/dist/adapters/trpc/console.js.map +1 -1
  59. package/dist/adapters/trpc/context.d.ts +20 -0
  60. package/dist/adapters/trpc/fleet.d.ts +210 -8
  61. package/dist/adapters/trpc/fleet.js +111 -11
  62. package/dist/adapters/trpc/fleet.js.map +1 -1
  63. package/dist/adapters/trpc/installation.d.ts +139 -4
  64. package/dist/adapters/trpc/installation.js +4 -4
  65. package/dist/adapters/trpc/installation.js.map +1 -1
  66. package/dist/adapters/trpc/router.d.ts +508 -8
  67. package/dist/adapters/trpc/schedule-output.d.ts +74 -0
  68. package/dist/adapters/trpc/schedule-output.js +71 -0
  69. package/dist/adapters/trpc/schedule-output.js.map +1 -0
  70. package/dist/adapters/trpc/ship-contract.js +7 -0
  71. package/dist/adapters/trpc/ship-contract.js.map +1 -1
  72. package/dist/adapters/trpc/ship.d.ts +188 -3
  73. package/dist/adapters/trpc/ship.js +105 -11
  74. package/dist/adapters/trpc/ship.js.map +1 -1
  75. package/dist/adapters/trpc/starting-prompt-text.js +5 -5
  76. package/dist/adapters/trpc/starting-prompt-text.js.map +1 -1
  77. package/dist/adapters/trpc/trpc.d.ts +8 -0
  78. package/dist/adapters/trpc/trpc.js +19 -2
  79. package/dist/adapters/trpc/trpc.js.map +1 -1
  80. package/dist/app.d.ts +5 -3
  81. package/dist/app.js +30 -4
  82. package/dist/app.js.map +1 -1
  83. package/dist/domain/messaging/add-to-meeting.js +1 -1
  84. package/dist/domain/messaging/add-to-meeting.js.map +1 -1
  85. package/dist/domain/messaging/cancel-schedule.d.ts +35 -0
  86. package/dist/domain/messaging/cancel-schedule.js +45 -0
  87. package/dist/domain/messaging/cancel-schedule.js.map +1 -0
  88. package/dist/domain/messaging/check-reach-to-each.d.ts +25 -0
  89. package/dist/domain/messaging/check-reach-to-each.js +21 -0
  90. package/dist/domain/messaging/check-reach-to-each.js.map +1 -0
  91. package/dist/domain/messaging/cron.d.ts +46 -0
  92. package/dist/domain/messaging/cron.js +164 -0
  93. package/dist/domain/messaging/cron.js.map +1 -0
  94. package/dist/domain/messaging/daily-message-limit.d.ts +7 -5
  95. package/dist/domain/messaging/daily-message-limit.js +8 -7
  96. package/dist/domain/messaging/daily-message-limit.js.map +1 -1
  97. package/dist/domain/messaging/list-schedules.d.ts +38 -0
  98. package/dist/domain/messaging/list-schedules.js +33 -0
  99. package/dist/domain/messaging/list-schedules.js.map +1 -0
  100. package/dist/domain/messaging/message.d.ts +43 -4
  101. package/dist/domain/messaging/message.js +82 -4
  102. package/dist/domain/messaging/message.js.map +1 -1
  103. package/dist/domain/messaging/open-meeting.js +1 -1
  104. package/dist/domain/messaging/open-meeting.js.map +1 -1
  105. package/dist/domain/messaging/pause-schedule.d.ts +34 -0
  106. package/dist/domain/messaging/pause-schedule.js +44 -0
  107. package/dist/domain/messaging/pause-schedule.js.map +1 -0
  108. package/dist/domain/messaging/ports.d.ts +77 -3
  109. package/dist/domain/messaging/public.d.ts +1 -0
  110. package/dist/domain/messaging/public.js +1 -0
  111. package/dist/domain/messaging/public.js.map +1 -1
  112. package/dist/domain/messaging/push-receive-deliveries.d.ts +4 -1
  113. package/dist/domain/messaging/push-receive-deliveries.js +5 -2
  114. package/dist/domain/messaging/push-receive-deliveries.js.map +1 -1
  115. package/dist/domain/messaging/receive-deliveries.d.ts +4 -1
  116. package/dist/domain/messaging/receive-deliveries.js +2 -0
  117. package/dist/domain/messaging/receive-deliveries.js.map +1 -1
  118. package/dist/domain/messaging/resend-delivery.js +2 -2
  119. package/dist/domain/messaging/resend-delivery.js.map +1 -1
  120. package/dist/domain/messaging/resume-schedule.d.ts +34 -0
  121. package/dist/domain/messaging/resume-schedule.js +37 -0
  122. package/dist/domain/messaging/resume-schedule.js.map +1 -0
  123. package/dist/domain/messaging/retired-scheduler.d.ts +31 -0
  124. package/dist/domain/messaging/retired-scheduler.js +30 -0
  125. package/dist/domain/messaging/retired-scheduler.js.map +1 -0
  126. package/dist/domain/messaging/schedule-access.d.ts +20 -0
  127. package/dist/domain/messaging/schedule-access.js +21 -0
  128. package/dist/domain/messaging/schedule-access.js.map +1 -0
  129. package/dist/domain/messaging/schedule-limits.d.ts +25 -0
  130. package/dist/domain/messaging/schedule-limits.js +51 -0
  131. package/dist/domain/messaging/schedule-limits.js.map +1 -0
  132. package/dist/domain/messaging/schedule-message.d.ts +65 -0
  133. package/dist/domain/messaging/schedule-message.js +151 -0
  134. package/dist/domain/messaging/schedule-message.js.map +1 -0
  135. package/dist/domain/messaging/schedule.d.ts +238 -0
  136. package/dist/domain/messaging/schedule.js +316 -0
  137. package/dist/domain/messaging/schedule.js.map +1 -0
  138. package/dist/domain/messaging/send-due-schedules.d.ts +40 -0
  139. package/dist/domain/messaging/send-due-schedules.js +141 -0
  140. package/dist/domain/messaging/send-due-schedules.js.map +1 -0
  141. package/dist/domain/messaging/send-message.d.ts +10 -3
  142. package/dist/domain/messaging/send-message.js +78 -4
  143. package/dist/domain/messaging/send-message.js.map +1 -1
  144. package/dist/domain/messaging/send-request.d.ts +3 -2
  145. package/dist/domain/messaging/send-request.js +5 -2
  146. package/dist/domain/messaging/send-request.js.map +1 -1
  147. package/dist/domain/registry/applied-limits.d.ts +5 -7
  148. package/dist/domain/registry/applied-limits.js +5 -9
  149. package/dist/domain/registry/applied-limits.js.map +1 -1
  150. package/dist/domain/registry/check-manage.d.ts +23 -0
  151. package/dist/domain/registry/check-manage.js +19 -0
  152. package/dist/domain/registry/check-manage.js.map +1 -0
  153. package/dist/domain/registry/commission-ship.js +3 -3
  154. package/dist/domain/registry/commission-ship.js.map +1 -1
  155. package/dist/domain/registry/declare-scopes.d.ts +5 -3
  156. package/dist/domain/registry/declare-scopes.js +4 -2
  157. package/dist/domain/registry/declare-scopes.js.map +1 -1
  158. package/dist/domain/registry/define-scope.d.ts +33 -0
  159. package/dist/domain/registry/define-scope.js +30 -0
  160. package/dist/domain/registry/define-scope.js.map +1 -0
  161. package/dist/domain/registry/defined-scope.d.ts +68 -0
  162. package/dist/domain/registry/defined-scope.js +83 -0
  163. package/dist/domain/registry/defined-scope.js.map +1 -0
  164. package/dist/domain/registry/describe-scope.d.ts +31 -0
  165. package/dist/domain/registry/describe-scope.js +28 -0
  166. package/dist/domain/registry/describe-scope.js.map +1 -0
  167. package/dist/domain/registry/get-fleet-limits.d.ts +1 -1
  168. package/dist/domain/registry/get-fleet-limits.js +1 -1
  169. package/dist/domain/registry/get-fleet-limits.js.map +1 -1
  170. package/dist/domain/registry/grant-scopes.d.ts +4 -3
  171. package/dist/domain/registry/grant-scopes.js +4 -4
  172. package/dist/domain/registry/grant-scopes.js.map +1 -1
  173. package/dist/domain/registry/installation-fleet.d.ts +4 -1
  174. package/dist/domain/registry/installation-fleet.js +9 -2
  175. package/dist/domain/registry/installation-fleet.js.map +1 -1
  176. package/dist/domain/registry/label-value-texts.d.ts +16 -0
  177. package/dist/domain/registry/label-value-texts.js +15 -0
  178. package/dist/domain/registry/label-value-texts.js.map +1 -0
  179. package/dist/domain/registry/limits.d.ts +42 -7
  180. package/dist/domain/registry/limits.js +41 -6
  181. package/dist/domain/registry/limits.js.map +1 -1
  182. package/dist/domain/registry/list-scopes.d.ts +13 -6
  183. package/dist/domain/registry/list-scopes.js +15 -6
  184. package/dist/domain/registry/list-scopes.js.map +1 -1
  185. package/dist/domain/registry/named-namespaces.d.ts +18 -8
  186. package/dist/domain/registry/named-namespaces.js +11 -3
  187. package/dist/domain/registry/named-namespaces.js.map +1 -1
  188. package/dist/domain/registry/ports.d.ts +20 -0
  189. package/dist/domain/registry/public.d.ts +2 -0
  190. package/dist/domain/registry/public.js +2 -0
  191. package/dist/domain/registry/public.js.map +1 -1
  192. package/dist/domain/registry/remove-scope.d.ts +29 -0
  193. package/dist/domain/registry/remove-scope.js +32 -0
  194. package/dist/domain/registry/remove-scope.js.map +1 -0
  195. package/dist/domain/registry/resolve-label-selection.d.ts +20 -0
  196. package/dist/domain/registry/resolve-label-selection.js +26 -0
  197. package/dist/domain/registry/resolve-label-selection.js.map +1 -0
  198. package/dist/domain/registry/retire-ship.d.ts +5 -2
  199. package/dist/domain/registry/retire-ship.js +6 -1
  200. package/dist/domain/registry/retire-ship.js.map +1 -1
  201. package/dist/domain/registry/scope-grant.d.ts +6 -2
  202. package/dist/domain/registry/scope-grant.js +9 -5
  203. package/dist/domain/registry/scope-grant.js.map +1 -1
  204. package/dist/domain/registry/scope-namespace.d.ts +5 -1
  205. package/dist/domain/registry/scope-namespace.js +9 -2
  206. package/dist/domain/registry/scope-namespace.js.map +1 -1
  207. package/dist/domain/registry/set-fleet-limits.d.ts +8 -5
  208. package/dist/domain/registry/set-fleet-limits.js +38 -6
  209. package/dist/domain/registry/set-fleet-limits.js.map +1 -1
  210. package/dist/domain/registry/set-installation-settings.d.ts +4 -4
  211. package/dist/domain/registry/set-installation-settings.js +21 -15
  212. package/dist/domain/registry/set-installation-settings.js.map +1 -1
  213. package/dist/domain/registry/ship.d.ts +2 -0
  214. package/dist/domain/registry/ship.js +1 -1
  215. package/dist/domain/registry/ship.js.map +1 -1
  216. package/dist/domain/shared/delivery-way.d.ts +4 -0
  217. package/dist/domain/shared/delivery-way.js +5 -2
  218. package/dist/domain/shared/delivery-way.js.map +1 -1
  219. package/dist/domain/shared/errors.d.ts +1 -1
  220. package/dist/domain/shared/errors.js.map +1 -1
  221. package/dist/domain/shared/history-pruning.d.ts +130 -0
  222. package/dist/domain/shared/history-pruning.js +74 -0
  223. package/dist/domain/shared/history-pruning.js.map +1 -0
  224. package/dist/domain/shared/history.d.ts +33 -5
  225. package/dist/domain/shared/history.js +3 -1
  226. package/dist/domain/shared/history.js.map +1 -1
  227. package/dist/domain/shared/prune-history.d.ts +39 -0
  228. package/dist/domain/shared/prune-history.js +98 -0
  229. package/dist/domain/shared/prune-history.js.map +1 -0
  230. package/dist/domain/shared/read-fleet-limits.d.ts +14 -4
  231. package/dist/domain/shared/read-fleet-limits.js +8 -4
  232. package/dist/domain/shared/read-fleet-limits.js.map +1 -1
  233. package/dist/domain/shared/read-message-deliveries.d.ts +30 -0
  234. package/dist/domain/shared/read-message-deliveries.js +24 -0
  235. package/dist/domain/shared/read-message-deliveries.js.map +1 -0
  236. package/dist/domain/shared/read-message.d.ts +4 -1
  237. package/dist/domain/shared/read-message.js +3 -2
  238. package/dist/domain/shared/read-message.js.map +1 -1
  239. package/dist/domain/shared/read-sent-message.d.ts +21 -7
  240. package/dist/domain/shared/read-sent-message.js +19 -6
  241. package/dist/domain/shared/read-sent-message.js.map +1 -1
  242. package/dist/domain/shared/selector.d.ts +21 -8
  243. package/dist/domain/shared/stuck.d.ts +3 -2
  244. package/dist/domain/shared/stuck.js +1 -1
  245. package/dist/domain/shared/stuck.js.map +1 -1
  246. package/dist/schedule-timer.d.ts +22 -0
  247. package/dist/schedule-timer.js +78 -0
  248. package/dist/schedule-timer.js.map +1 -0
  249. package/dist/testing/temporal-setup.d.ts +1 -0
  250. package/dist/testing/temporal-setup.js +7 -0
  251. package/dist/testing/temporal-setup.js.map +1 -0
  252. package/dist/wiring.d.ts +26 -0
  253. package/dist/wiring.js +27 -1
  254. package/dist/wiring.js.map +1 -1
  255. package/package.json +3 -2
  256. package/src/adapters/prisma/migrations/20261025090000_scheduled_messages_envelope/migration.sql +5 -0
  257. package/src/adapters/prisma/migrations/20261025090100_schedules/migration.sql +109 -0
  258. package/src/adapters/prisma/migrations/20261025120000_repeating_schedules/migration.sql +40 -0
  259. package/src/adapters/prisma/migrations/20261025130000_schedule_limits/migration.sql +11 -0
  260. package/src/adapters/prisma/migrations/20261025140000_send_to_a_label/migration.sql +16 -0
  261. package/src/adapters/prisma/migrations/20261025150000_define_scope/migration.sql +64 -0
  262. package/src/adapters/prisma/migrations/20261025150100_defined_scopes/migration.sql +15 -0
  263. package/src/adapters/prisma/migrations/20261025160000_retention/migration.sql +7 -0
  264. package/src/adapters/prisma/migrations/20261025170000_message_deliveries_page/migration.sql +7 -0
  265. package/src/adapters/prisma/migrations/20261025180000_history_pruning/migration.sql +25 -0
  266. package/src/adapters/prisma/migrations/20261025190000_history_pruning_crew_events/migration.sql +2 -0
  267. package/src/adapters/prisma/migrations/20261025200000_schedule_to_a_label/migration.sql +12 -0
  268. package/src/adapters/prisma/schema.prisma +179 -26
@@ -0,0 +1,1110 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model DefinedScope
5
+ * One of the fleet's own scopes (design gateway-scopes, 4.1), with its one-line description.
6
+ */
7
+ export type DefinedScopeModel = runtime.Types.Result.DefaultSelection<Prisma.$DefinedScopePayload>;
8
+ export type AggregateDefinedScope = {
9
+ _count: DefinedScopeCountAggregateOutputType | null;
10
+ _min: DefinedScopeMinAggregateOutputType | null;
11
+ _max: DefinedScopeMaxAggregateOutputType | null;
12
+ };
13
+ export type DefinedScopeMinAggregateOutputType = {
14
+ fleetId: string | null;
15
+ scope: string | null;
16
+ description: string | null;
17
+ };
18
+ export type DefinedScopeMaxAggregateOutputType = {
19
+ fleetId: string | null;
20
+ scope: string | null;
21
+ description: string | null;
22
+ };
23
+ export type DefinedScopeCountAggregateOutputType = {
24
+ fleetId: number;
25
+ scope: number;
26
+ description: number;
27
+ _all: number;
28
+ };
29
+ export type DefinedScopeMinAggregateInputType = {
30
+ fleetId?: true;
31
+ scope?: true;
32
+ description?: true;
33
+ };
34
+ export type DefinedScopeMaxAggregateInputType = {
35
+ fleetId?: true;
36
+ scope?: true;
37
+ description?: true;
38
+ };
39
+ export type DefinedScopeCountAggregateInputType = {
40
+ fleetId?: true;
41
+ scope?: true;
42
+ description?: true;
43
+ _all?: true;
44
+ };
45
+ export type DefinedScopeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
46
+ /**
47
+ * Filter which DefinedScope to aggregate.
48
+ */
49
+ where?: Prisma.DefinedScopeWhereInput;
50
+ /**
51
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
52
+ *
53
+ * Determine the order of DefinedScopes to fetch.
54
+ */
55
+ orderBy?: Prisma.DefinedScopeOrderByWithRelationInput | Prisma.DefinedScopeOrderByWithRelationInput[];
56
+ /**
57
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
58
+ *
59
+ * Sets the start position
60
+ */
61
+ cursor?: Prisma.DefinedScopeWhereUniqueInput;
62
+ /**
63
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
64
+ *
65
+ * Take `±n` DefinedScopes from the position of the cursor.
66
+ */
67
+ take?: number;
68
+ /**
69
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
70
+ *
71
+ * Skip the first `n` DefinedScopes.
72
+ */
73
+ skip?: number;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
76
+ *
77
+ * Count returned DefinedScopes
78
+ **/
79
+ _count?: true | DefinedScopeCountAggregateInputType;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
82
+ *
83
+ * Select which fields to find the minimum value
84
+ **/
85
+ _min?: DefinedScopeMinAggregateInputType;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
88
+ *
89
+ * Select which fields to find the maximum value
90
+ **/
91
+ _max?: DefinedScopeMaxAggregateInputType;
92
+ };
93
+ export type GetDefinedScopeAggregateType<T extends DefinedScopeAggregateArgs> = {
94
+ [P in keyof T & keyof AggregateDefinedScope]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDefinedScope[P]> : Prisma.GetScalarType<T[P], AggregateDefinedScope[P]>;
95
+ };
96
+ export type DefinedScopeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
97
+ where?: Prisma.DefinedScopeWhereInput;
98
+ orderBy?: Prisma.DefinedScopeOrderByWithAggregationInput | Prisma.DefinedScopeOrderByWithAggregationInput[];
99
+ by: Prisma.DefinedScopeScalarFieldEnum[] | Prisma.DefinedScopeScalarFieldEnum;
100
+ having?: Prisma.DefinedScopeScalarWhereWithAggregatesInput;
101
+ take?: number;
102
+ skip?: number;
103
+ _count?: DefinedScopeCountAggregateInputType | true;
104
+ _min?: DefinedScopeMinAggregateInputType;
105
+ _max?: DefinedScopeMaxAggregateInputType;
106
+ };
107
+ export type DefinedScopeGroupByOutputType = {
108
+ fleetId: string;
109
+ scope: string;
110
+ description: string;
111
+ _count: DefinedScopeCountAggregateOutputType | null;
112
+ _min: DefinedScopeMinAggregateOutputType | null;
113
+ _max: DefinedScopeMaxAggregateOutputType | null;
114
+ };
115
+ export type GetDefinedScopeGroupByPayload<T extends DefinedScopeGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<DefinedScopeGroupByOutputType, T['by']> & {
116
+ [P in ((keyof T) & (keyof DefinedScopeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], DefinedScopeGroupByOutputType[P]> : Prisma.GetScalarType<T[P], DefinedScopeGroupByOutputType[P]>;
117
+ }>>;
118
+ export type DefinedScopeWhereInput = {
119
+ AND?: Prisma.DefinedScopeWhereInput | Prisma.DefinedScopeWhereInput[];
120
+ OR?: Prisma.DefinedScopeWhereInput[];
121
+ NOT?: Prisma.DefinedScopeWhereInput | Prisma.DefinedScopeWhereInput[];
122
+ fleetId?: Prisma.StringFilter<"DefinedScope"> | string;
123
+ scope?: Prisma.StringFilter<"DefinedScope"> | string;
124
+ description?: Prisma.StringFilter<"DefinedScope"> | string;
125
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
126
+ };
127
+ export type DefinedScopeOrderByWithRelationInput = {
128
+ fleetId?: Prisma.SortOrder;
129
+ scope?: Prisma.SortOrder;
130
+ description?: Prisma.SortOrder;
131
+ fleet?: Prisma.FleetOrderByWithRelationInput;
132
+ };
133
+ export type DefinedScopeWhereUniqueInput = Prisma.AtLeast<{
134
+ fleetId_scope?: Prisma.DefinedScopeFleetIdScopeCompoundUniqueInput;
135
+ AND?: Prisma.DefinedScopeWhereInput | Prisma.DefinedScopeWhereInput[];
136
+ OR?: Prisma.DefinedScopeWhereInput[];
137
+ NOT?: Prisma.DefinedScopeWhereInput | Prisma.DefinedScopeWhereInput[];
138
+ fleetId?: Prisma.StringFilter<"DefinedScope"> | string;
139
+ scope?: Prisma.StringFilter<"DefinedScope"> | string;
140
+ description?: Prisma.StringFilter<"DefinedScope"> | string;
141
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
142
+ }, "fleetId_scope">;
143
+ export type DefinedScopeOrderByWithAggregationInput = {
144
+ fleetId?: Prisma.SortOrder;
145
+ scope?: Prisma.SortOrder;
146
+ description?: Prisma.SortOrder;
147
+ _count?: Prisma.DefinedScopeCountOrderByAggregateInput;
148
+ _max?: Prisma.DefinedScopeMaxOrderByAggregateInput;
149
+ _min?: Prisma.DefinedScopeMinOrderByAggregateInput;
150
+ };
151
+ export type DefinedScopeScalarWhereWithAggregatesInput = {
152
+ AND?: Prisma.DefinedScopeScalarWhereWithAggregatesInput | Prisma.DefinedScopeScalarWhereWithAggregatesInput[];
153
+ OR?: Prisma.DefinedScopeScalarWhereWithAggregatesInput[];
154
+ NOT?: Prisma.DefinedScopeScalarWhereWithAggregatesInput | Prisma.DefinedScopeScalarWhereWithAggregatesInput[];
155
+ fleetId?: Prisma.StringWithAggregatesFilter<"DefinedScope"> | string;
156
+ scope?: Prisma.StringWithAggregatesFilter<"DefinedScope"> | string;
157
+ description?: Prisma.StringWithAggregatesFilter<"DefinedScope"> | string;
158
+ };
159
+ export type DefinedScopeCreateInput = {
160
+ scope: string;
161
+ description: string;
162
+ fleet: Prisma.FleetCreateNestedOneWithoutDefinedScopesInput;
163
+ };
164
+ export type DefinedScopeUncheckedCreateInput = {
165
+ fleetId: string;
166
+ scope: string;
167
+ description: string;
168
+ };
169
+ export type DefinedScopeUpdateInput = {
170
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
171
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
172
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutDefinedScopesNestedInput;
173
+ };
174
+ export type DefinedScopeUncheckedUpdateInput = {
175
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
176
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
177
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
178
+ };
179
+ export type DefinedScopeCreateManyInput = {
180
+ fleetId: string;
181
+ scope: string;
182
+ description: string;
183
+ };
184
+ export type DefinedScopeUpdateManyMutationInput = {
185
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
186
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
187
+ };
188
+ export type DefinedScopeUncheckedUpdateManyInput = {
189
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
190
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
191
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
192
+ };
193
+ export type DefinedScopeListRelationFilter = {
194
+ every?: Prisma.DefinedScopeWhereInput;
195
+ some?: Prisma.DefinedScopeWhereInput;
196
+ none?: Prisma.DefinedScopeWhereInput;
197
+ };
198
+ export type DefinedScopeOrderByRelationAggregateInput = {
199
+ _count?: Prisma.SortOrder;
200
+ };
201
+ export type DefinedScopeFleetIdScopeCompoundUniqueInput = {
202
+ fleetId: string;
203
+ scope: string;
204
+ };
205
+ export type DefinedScopeCountOrderByAggregateInput = {
206
+ fleetId?: Prisma.SortOrder;
207
+ scope?: Prisma.SortOrder;
208
+ description?: Prisma.SortOrder;
209
+ };
210
+ export type DefinedScopeMaxOrderByAggregateInput = {
211
+ fleetId?: Prisma.SortOrder;
212
+ scope?: Prisma.SortOrder;
213
+ description?: Prisma.SortOrder;
214
+ };
215
+ export type DefinedScopeMinOrderByAggregateInput = {
216
+ fleetId?: Prisma.SortOrder;
217
+ scope?: Prisma.SortOrder;
218
+ description?: Prisma.SortOrder;
219
+ };
220
+ export type DefinedScopeCreateNestedManyWithoutFleetInput = {
221
+ create?: Prisma.XOR<Prisma.DefinedScopeCreateWithoutFleetInput, Prisma.DefinedScopeUncheckedCreateWithoutFleetInput> | Prisma.DefinedScopeCreateWithoutFleetInput[] | Prisma.DefinedScopeUncheckedCreateWithoutFleetInput[];
222
+ connectOrCreate?: Prisma.DefinedScopeCreateOrConnectWithoutFleetInput | Prisma.DefinedScopeCreateOrConnectWithoutFleetInput[];
223
+ createMany?: Prisma.DefinedScopeCreateManyFleetInputEnvelope;
224
+ connect?: Prisma.DefinedScopeWhereUniqueInput | Prisma.DefinedScopeWhereUniqueInput[];
225
+ };
226
+ export type DefinedScopeUncheckedCreateNestedManyWithoutFleetInput = {
227
+ create?: Prisma.XOR<Prisma.DefinedScopeCreateWithoutFleetInput, Prisma.DefinedScopeUncheckedCreateWithoutFleetInput> | Prisma.DefinedScopeCreateWithoutFleetInput[] | Prisma.DefinedScopeUncheckedCreateWithoutFleetInput[];
228
+ connectOrCreate?: Prisma.DefinedScopeCreateOrConnectWithoutFleetInput | Prisma.DefinedScopeCreateOrConnectWithoutFleetInput[];
229
+ createMany?: Prisma.DefinedScopeCreateManyFleetInputEnvelope;
230
+ connect?: Prisma.DefinedScopeWhereUniqueInput | Prisma.DefinedScopeWhereUniqueInput[];
231
+ };
232
+ export type DefinedScopeUpdateManyWithoutFleetNestedInput = {
233
+ create?: Prisma.XOR<Prisma.DefinedScopeCreateWithoutFleetInput, Prisma.DefinedScopeUncheckedCreateWithoutFleetInput> | Prisma.DefinedScopeCreateWithoutFleetInput[] | Prisma.DefinedScopeUncheckedCreateWithoutFleetInput[];
234
+ connectOrCreate?: Prisma.DefinedScopeCreateOrConnectWithoutFleetInput | Prisma.DefinedScopeCreateOrConnectWithoutFleetInput[];
235
+ upsert?: Prisma.DefinedScopeUpsertWithWhereUniqueWithoutFleetInput | Prisma.DefinedScopeUpsertWithWhereUniqueWithoutFleetInput[];
236
+ createMany?: Prisma.DefinedScopeCreateManyFleetInputEnvelope;
237
+ set?: Prisma.DefinedScopeWhereUniqueInput | Prisma.DefinedScopeWhereUniqueInput[];
238
+ disconnect?: Prisma.DefinedScopeWhereUniqueInput | Prisma.DefinedScopeWhereUniqueInput[];
239
+ delete?: Prisma.DefinedScopeWhereUniqueInput | Prisma.DefinedScopeWhereUniqueInput[];
240
+ connect?: Prisma.DefinedScopeWhereUniqueInput | Prisma.DefinedScopeWhereUniqueInput[];
241
+ update?: Prisma.DefinedScopeUpdateWithWhereUniqueWithoutFleetInput | Prisma.DefinedScopeUpdateWithWhereUniqueWithoutFleetInput[];
242
+ updateMany?: Prisma.DefinedScopeUpdateManyWithWhereWithoutFleetInput | Prisma.DefinedScopeUpdateManyWithWhereWithoutFleetInput[];
243
+ deleteMany?: Prisma.DefinedScopeScalarWhereInput | Prisma.DefinedScopeScalarWhereInput[];
244
+ };
245
+ export type DefinedScopeUncheckedUpdateManyWithoutFleetNestedInput = {
246
+ create?: Prisma.XOR<Prisma.DefinedScopeCreateWithoutFleetInput, Prisma.DefinedScopeUncheckedCreateWithoutFleetInput> | Prisma.DefinedScopeCreateWithoutFleetInput[] | Prisma.DefinedScopeUncheckedCreateWithoutFleetInput[];
247
+ connectOrCreate?: Prisma.DefinedScopeCreateOrConnectWithoutFleetInput | Prisma.DefinedScopeCreateOrConnectWithoutFleetInput[];
248
+ upsert?: Prisma.DefinedScopeUpsertWithWhereUniqueWithoutFleetInput | Prisma.DefinedScopeUpsertWithWhereUniqueWithoutFleetInput[];
249
+ createMany?: Prisma.DefinedScopeCreateManyFleetInputEnvelope;
250
+ set?: Prisma.DefinedScopeWhereUniqueInput | Prisma.DefinedScopeWhereUniqueInput[];
251
+ disconnect?: Prisma.DefinedScopeWhereUniqueInput | Prisma.DefinedScopeWhereUniqueInput[];
252
+ delete?: Prisma.DefinedScopeWhereUniqueInput | Prisma.DefinedScopeWhereUniqueInput[];
253
+ connect?: Prisma.DefinedScopeWhereUniqueInput | Prisma.DefinedScopeWhereUniqueInput[];
254
+ update?: Prisma.DefinedScopeUpdateWithWhereUniqueWithoutFleetInput | Prisma.DefinedScopeUpdateWithWhereUniqueWithoutFleetInput[];
255
+ updateMany?: Prisma.DefinedScopeUpdateManyWithWhereWithoutFleetInput | Prisma.DefinedScopeUpdateManyWithWhereWithoutFleetInput[];
256
+ deleteMany?: Prisma.DefinedScopeScalarWhereInput | Prisma.DefinedScopeScalarWhereInput[];
257
+ };
258
+ export type DefinedScopeCreateWithoutFleetInput = {
259
+ scope: string;
260
+ description: string;
261
+ };
262
+ export type DefinedScopeUncheckedCreateWithoutFleetInput = {
263
+ scope: string;
264
+ description: string;
265
+ };
266
+ export type DefinedScopeCreateOrConnectWithoutFleetInput = {
267
+ where: Prisma.DefinedScopeWhereUniqueInput;
268
+ create: Prisma.XOR<Prisma.DefinedScopeCreateWithoutFleetInput, Prisma.DefinedScopeUncheckedCreateWithoutFleetInput>;
269
+ };
270
+ export type DefinedScopeCreateManyFleetInputEnvelope = {
271
+ data: Prisma.DefinedScopeCreateManyFleetInput | Prisma.DefinedScopeCreateManyFleetInput[];
272
+ skipDuplicates?: boolean;
273
+ };
274
+ export type DefinedScopeUpsertWithWhereUniqueWithoutFleetInput = {
275
+ where: Prisma.DefinedScopeWhereUniqueInput;
276
+ update: Prisma.XOR<Prisma.DefinedScopeUpdateWithoutFleetInput, Prisma.DefinedScopeUncheckedUpdateWithoutFleetInput>;
277
+ create: Prisma.XOR<Prisma.DefinedScopeCreateWithoutFleetInput, Prisma.DefinedScopeUncheckedCreateWithoutFleetInput>;
278
+ };
279
+ export type DefinedScopeUpdateWithWhereUniqueWithoutFleetInput = {
280
+ where: Prisma.DefinedScopeWhereUniqueInput;
281
+ data: Prisma.XOR<Prisma.DefinedScopeUpdateWithoutFleetInput, Prisma.DefinedScopeUncheckedUpdateWithoutFleetInput>;
282
+ };
283
+ export type DefinedScopeUpdateManyWithWhereWithoutFleetInput = {
284
+ where: Prisma.DefinedScopeScalarWhereInput;
285
+ data: Prisma.XOR<Prisma.DefinedScopeUpdateManyMutationInput, Prisma.DefinedScopeUncheckedUpdateManyWithoutFleetInput>;
286
+ };
287
+ export type DefinedScopeScalarWhereInput = {
288
+ AND?: Prisma.DefinedScopeScalarWhereInput | Prisma.DefinedScopeScalarWhereInput[];
289
+ OR?: Prisma.DefinedScopeScalarWhereInput[];
290
+ NOT?: Prisma.DefinedScopeScalarWhereInput | Prisma.DefinedScopeScalarWhereInput[];
291
+ fleetId?: Prisma.StringFilter<"DefinedScope"> | string;
292
+ scope?: Prisma.StringFilter<"DefinedScope"> | string;
293
+ description?: Prisma.StringFilter<"DefinedScope"> | string;
294
+ };
295
+ export type DefinedScopeCreateManyFleetInput = {
296
+ scope: string;
297
+ description: string;
298
+ };
299
+ export type DefinedScopeUpdateWithoutFleetInput = {
300
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
301
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
302
+ };
303
+ export type DefinedScopeUncheckedUpdateWithoutFleetInput = {
304
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
305
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
306
+ };
307
+ export type DefinedScopeUncheckedUpdateManyWithoutFleetInput = {
308
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
309
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
310
+ };
311
+ export type DefinedScopeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
312
+ fleetId?: boolean;
313
+ scope?: boolean;
314
+ description?: boolean;
315
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
316
+ }, ExtArgs["result"]["definedScope"]>;
317
+ export type DefinedScopeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
318
+ fleetId?: boolean;
319
+ scope?: boolean;
320
+ description?: boolean;
321
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
322
+ }, ExtArgs["result"]["definedScope"]>;
323
+ export type DefinedScopeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
324
+ fleetId?: boolean;
325
+ scope?: boolean;
326
+ description?: boolean;
327
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
328
+ }, ExtArgs["result"]["definedScope"]>;
329
+ export type DefinedScopeSelectScalar = {
330
+ fleetId?: boolean;
331
+ scope?: boolean;
332
+ description?: boolean;
333
+ };
334
+ export type DefinedScopeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"fleetId" | "scope" | "description", ExtArgs["result"]["definedScope"]>;
335
+ export type DefinedScopeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
336
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
337
+ };
338
+ export type DefinedScopeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
339
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
340
+ };
341
+ export type DefinedScopeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
342
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
343
+ };
344
+ export type $DefinedScopePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
345
+ name: "DefinedScope";
346
+ objects: {
347
+ fleet: Prisma.$FleetPayload<ExtArgs>;
348
+ };
349
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
350
+ fleetId: string;
351
+ scope: string;
352
+ description: string;
353
+ }, ExtArgs["result"]["definedScope"]>;
354
+ composites: {};
355
+ };
356
+ export type DefinedScopeGetPayload<S extends boolean | null | undefined | DefinedScopeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DefinedScopePayload, S>;
357
+ export type DefinedScopeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<DefinedScopeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
358
+ select?: DefinedScopeCountAggregateInputType | true;
359
+ };
360
+ export interface DefinedScopeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
361
+ [K: symbol]: {
362
+ types: Prisma.TypeMap<ExtArgs>['model']['DefinedScope'];
363
+ meta: {
364
+ name: 'DefinedScope';
365
+ };
366
+ };
367
+ /**
368
+ * Find zero or one DefinedScope that matches the filter.
369
+ * @param {DefinedScopeFindUniqueArgs} args - Arguments to find a DefinedScope
370
+ * @example
371
+ * // Get one DefinedScope
372
+ * const definedScope = await prisma.definedScope.findUnique({
373
+ * where: {
374
+ * // ... provide filter here
375
+ * }
376
+ * })
377
+ */
378
+ findUnique<T extends DefinedScopeFindUniqueArgs>(args: Prisma.SelectSubset<T, DefinedScopeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DefinedScopeClient<runtime.Types.Result.GetResult<Prisma.$DefinedScopePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
379
+ /**
380
+ * Find one DefinedScope that matches the filter or throw an error with `error.code='P2025'`
381
+ * if no matches were found.
382
+ * @param {DefinedScopeFindUniqueOrThrowArgs} args - Arguments to find a DefinedScope
383
+ * @example
384
+ * // Get one DefinedScope
385
+ * const definedScope = await prisma.definedScope.findUniqueOrThrow({
386
+ * where: {
387
+ * // ... provide filter here
388
+ * }
389
+ * })
390
+ */
391
+ findUniqueOrThrow<T extends DefinedScopeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DefinedScopeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DefinedScopeClient<runtime.Types.Result.GetResult<Prisma.$DefinedScopePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
392
+ /**
393
+ * Find the first DefinedScope that matches the filter.
394
+ * Note, that providing `undefined` is treated as the value not being there.
395
+ * Read more here: https://pris.ly/d/null-undefined
396
+ * @param {DefinedScopeFindFirstArgs} args - Arguments to find a DefinedScope
397
+ * @example
398
+ * // Get one DefinedScope
399
+ * const definedScope = await prisma.definedScope.findFirst({
400
+ * where: {
401
+ * // ... provide filter here
402
+ * }
403
+ * })
404
+ */
405
+ findFirst<T extends DefinedScopeFindFirstArgs>(args?: Prisma.SelectSubset<T, DefinedScopeFindFirstArgs<ExtArgs>>): Prisma.Prisma__DefinedScopeClient<runtime.Types.Result.GetResult<Prisma.$DefinedScopePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
406
+ /**
407
+ * Find the first DefinedScope that matches the filter or
408
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
409
+ * Note, that providing `undefined` is treated as the value not being there.
410
+ * Read more here: https://pris.ly/d/null-undefined
411
+ * @param {DefinedScopeFindFirstOrThrowArgs} args - Arguments to find a DefinedScope
412
+ * @example
413
+ * // Get one DefinedScope
414
+ * const definedScope = await prisma.definedScope.findFirstOrThrow({
415
+ * where: {
416
+ * // ... provide filter here
417
+ * }
418
+ * })
419
+ */
420
+ findFirstOrThrow<T extends DefinedScopeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DefinedScopeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DefinedScopeClient<runtime.Types.Result.GetResult<Prisma.$DefinedScopePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
421
+ /**
422
+ * Find zero or more DefinedScopes that matches the filter.
423
+ * Note, that providing `undefined` is treated as the value not being there.
424
+ * Read more here: https://pris.ly/d/null-undefined
425
+ * @param {DefinedScopeFindManyArgs} args - Arguments to filter and select certain fields only.
426
+ * @example
427
+ * // Get all DefinedScopes
428
+ * const definedScopes = await prisma.definedScope.findMany()
429
+ *
430
+ * // Get first 10 DefinedScopes
431
+ * const definedScopes = await prisma.definedScope.findMany({ take: 10 })
432
+ *
433
+ * // Only select the `fleetId`
434
+ * const definedScopeWithFleetIdOnly = await prisma.definedScope.findMany({ select: { fleetId: true } })
435
+ *
436
+ */
437
+ findMany<T extends DefinedScopeFindManyArgs>(args?: Prisma.SelectSubset<T, DefinedScopeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DefinedScopePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
438
+ /**
439
+ * Create a DefinedScope.
440
+ * @param {DefinedScopeCreateArgs} args - Arguments to create a DefinedScope.
441
+ * @example
442
+ * // Create one DefinedScope
443
+ * const DefinedScope = await prisma.definedScope.create({
444
+ * data: {
445
+ * // ... data to create a DefinedScope
446
+ * }
447
+ * })
448
+ *
449
+ */
450
+ create<T extends DefinedScopeCreateArgs>(args: Prisma.SelectSubset<T, DefinedScopeCreateArgs<ExtArgs>>): Prisma.Prisma__DefinedScopeClient<runtime.Types.Result.GetResult<Prisma.$DefinedScopePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
451
+ /**
452
+ * Create many DefinedScopes.
453
+ * @param {DefinedScopeCreateManyArgs} args - Arguments to create many DefinedScopes.
454
+ * @example
455
+ * // Create many DefinedScopes
456
+ * const definedScope = await prisma.definedScope.createMany({
457
+ * data: [
458
+ * // ... provide data here
459
+ * ]
460
+ * })
461
+ *
462
+ */
463
+ createMany<T extends DefinedScopeCreateManyArgs>(args?: Prisma.SelectSubset<T, DefinedScopeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
464
+ /**
465
+ * Create many DefinedScopes and returns the data saved in the database.
466
+ * @param {DefinedScopeCreateManyAndReturnArgs} args - Arguments to create many DefinedScopes.
467
+ * @example
468
+ * // Create many DefinedScopes
469
+ * const definedScope = await prisma.definedScope.createManyAndReturn({
470
+ * data: [
471
+ * // ... provide data here
472
+ * ]
473
+ * })
474
+ *
475
+ * // Create many DefinedScopes and only return the `fleetId`
476
+ * const definedScopeWithFleetIdOnly = await prisma.definedScope.createManyAndReturn({
477
+ * select: { fleetId: true },
478
+ * data: [
479
+ * // ... provide data here
480
+ * ]
481
+ * })
482
+ * Note, that providing `undefined` is treated as the value not being there.
483
+ * Read more here: https://pris.ly/d/null-undefined
484
+ *
485
+ */
486
+ createManyAndReturn<T extends DefinedScopeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DefinedScopeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DefinedScopePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
487
+ /**
488
+ * Delete a DefinedScope.
489
+ * @param {DefinedScopeDeleteArgs} args - Arguments to delete one DefinedScope.
490
+ * @example
491
+ * // Delete one DefinedScope
492
+ * const DefinedScope = await prisma.definedScope.delete({
493
+ * where: {
494
+ * // ... filter to delete one DefinedScope
495
+ * }
496
+ * })
497
+ *
498
+ */
499
+ delete<T extends DefinedScopeDeleteArgs>(args: Prisma.SelectSubset<T, DefinedScopeDeleteArgs<ExtArgs>>): Prisma.Prisma__DefinedScopeClient<runtime.Types.Result.GetResult<Prisma.$DefinedScopePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
500
+ /**
501
+ * Update one DefinedScope.
502
+ * @param {DefinedScopeUpdateArgs} args - Arguments to update one DefinedScope.
503
+ * @example
504
+ * // Update one DefinedScope
505
+ * const definedScope = await prisma.definedScope.update({
506
+ * where: {
507
+ * // ... provide filter here
508
+ * },
509
+ * data: {
510
+ * // ... provide data here
511
+ * }
512
+ * })
513
+ *
514
+ */
515
+ update<T extends DefinedScopeUpdateArgs>(args: Prisma.SelectSubset<T, DefinedScopeUpdateArgs<ExtArgs>>): Prisma.Prisma__DefinedScopeClient<runtime.Types.Result.GetResult<Prisma.$DefinedScopePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
516
+ /**
517
+ * Delete zero or more DefinedScopes.
518
+ * @param {DefinedScopeDeleteManyArgs} args - Arguments to filter DefinedScopes to delete.
519
+ * @example
520
+ * // Delete a few DefinedScopes
521
+ * const { count } = await prisma.definedScope.deleteMany({
522
+ * where: {
523
+ * // ... provide filter here
524
+ * }
525
+ * })
526
+ *
527
+ */
528
+ deleteMany<T extends DefinedScopeDeleteManyArgs>(args?: Prisma.SelectSubset<T, DefinedScopeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
529
+ /**
530
+ * Update zero or more DefinedScopes.
531
+ * Note, that providing `undefined` is treated as the value not being there.
532
+ * Read more here: https://pris.ly/d/null-undefined
533
+ * @param {DefinedScopeUpdateManyArgs} args - Arguments to update one or more rows.
534
+ * @example
535
+ * // Update many DefinedScopes
536
+ * const definedScope = await prisma.definedScope.updateMany({
537
+ * where: {
538
+ * // ... provide filter here
539
+ * },
540
+ * data: {
541
+ * // ... provide data here
542
+ * }
543
+ * })
544
+ *
545
+ */
546
+ updateMany<T extends DefinedScopeUpdateManyArgs>(args: Prisma.SelectSubset<T, DefinedScopeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
547
+ /**
548
+ * Update zero or more DefinedScopes and returns the data updated in the database.
549
+ * @param {DefinedScopeUpdateManyAndReturnArgs} args - Arguments to update many DefinedScopes.
550
+ * @example
551
+ * // Update many DefinedScopes
552
+ * const definedScope = await prisma.definedScope.updateManyAndReturn({
553
+ * where: {
554
+ * // ... provide filter here
555
+ * },
556
+ * data: [
557
+ * // ... provide data here
558
+ * ]
559
+ * })
560
+ *
561
+ * // Update zero or more DefinedScopes and only return the `fleetId`
562
+ * const definedScopeWithFleetIdOnly = await prisma.definedScope.updateManyAndReturn({
563
+ * select: { fleetId: true },
564
+ * where: {
565
+ * // ... provide filter here
566
+ * },
567
+ * data: [
568
+ * // ... provide data here
569
+ * ]
570
+ * })
571
+ * Note, that providing `undefined` is treated as the value not being there.
572
+ * Read more here: https://pris.ly/d/null-undefined
573
+ *
574
+ */
575
+ updateManyAndReturn<T extends DefinedScopeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DefinedScopeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DefinedScopePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
576
+ /**
577
+ * Create or update one DefinedScope.
578
+ * @param {DefinedScopeUpsertArgs} args - Arguments to update or create a DefinedScope.
579
+ * @example
580
+ * // Update or create a DefinedScope
581
+ * const definedScope = await prisma.definedScope.upsert({
582
+ * create: {
583
+ * // ... data to create a DefinedScope
584
+ * },
585
+ * update: {
586
+ * // ... in case it already exists, update
587
+ * },
588
+ * where: {
589
+ * // ... the filter for the DefinedScope we want to update
590
+ * }
591
+ * })
592
+ */
593
+ upsert<T extends DefinedScopeUpsertArgs>(args: Prisma.SelectSubset<T, DefinedScopeUpsertArgs<ExtArgs>>): Prisma.Prisma__DefinedScopeClient<runtime.Types.Result.GetResult<Prisma.$DefinedScopePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
594
+ /**
595
+ * Count the number of DefinedScopes.
596
+ * Note, that providing `undefined` is treated as the value not being there.
597
+ * Read more here: https://pris.ly/d/null-undefined
598
+ * @param {DefinedScopeCountArgs} args - Arguments to filter DefinedScopes to count.
599
+ * @example
600
+ * // Count the number of DefinedScopes
601
+ * const count = await prisma.definedScope.count({
602
+ * where: {
603
+ * // ... the filter for the DefinedScopes we want to count
604
+ * }
605
+ * })
606
+ **/
607
+ count<T extends DefinedScopeCountArgs>(args?: Prisma.Subset<T, DefinedScopeCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], DefinedScopeCountAggregateOutputType> : number>;
608
+ /**
609
+ * Allows you to perform aggregations operations on a DefinedScope.
610
+ * Note, that providing `undefined` is treated as the value not being there.
611
+ * Read more here: https://pris.ly/d/null-undefined
612
+ * @param {DefinedScopeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
613
+ * @example
614
+ * // Ordered by age ascending
615
+ * // Where email contains prisma.io
616
+ * // Limited to the 10 users
617
+ * const aggregations = await prisma.user.aggregate({
618
+ * _avg: {
619
+ * age: true,
620
+ * },
621
+ * where: {
622
+ * email: {
623
+ * contains: "prisma.io",
624
+ * },
625
+ * },
626
+ * orderBy: {
627
+ * age: "asc",
628
+ * },
629
+ * take: 10,
630
+ * })
631
+ **/
632
+ aggregate<T extends DefinedScopeAggregateArgs>(args: Prisma.Subset<T, DefinedScopeAggregateArgs>): Prisma.PrismaPromise<GetDefinedScopeAggregateType<T>>;
633
+ /**
634
+ * Group by DefinedScope.
635
+ * Note, that providing `undefined` is treated as the value not being there.
636
+ * Read more here: https://pris.ly/d/null-undefined
637
+ * @param {DefinedScopeGroupByArgs} args - Group by arguments.
638
+ * @example
639
+ * // Group by city, order by createdAt, get count
640
+ * const result = await prisma.user.groupBy({
641
+ * by: ['city', 'createdAt'],
642
+ * orderBy: {
643
+ * createdAt: true
644
+ * },
645
+ * _count: {
646
+ * _all: true
647
+ * },
648
+ * })
649
+ *
650
+ **/
651
+ groupBy<T extends DefinedScopeGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
652
+ orderBy: DefinedScopeGroupByArgs['orderBy'];
653
+ } : {
654
+ orderBy?: DefinedScopeGroupByArgs['orderBy'];
655
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
656
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
657
+ Error,
658
+ 'Field ',
659
+ P,
660
+ ` in "having" needs to be provided in "by"`
661
+ ];
662
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
663
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
664
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
665
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
666
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
667
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
668
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, DefinedScopeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDefinedScopeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
669
+ /**
670
+ * Fields of the DefinedScope model
671
+ */
672
+ readonly fields: DefinedScopeFieldRefs;
673
+ }
674
+ /**
675
+ * The delegate class that acts as a "Promise-like" for DefinedScope.
676
+ * Why is this prefixed with `Prisma__`?
677
+ * Because we want to prevent naming conflicts as mentioned in
678
+ * https://github.com/prisma/prisma-client-js/issues/707
679
+ */
680
+ export interface Prisma__DefinedScopeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
681
+ readonly [Symbol.toStringTag]: "PrismaPromise";
682
+ fleet<T extends Prisma.FleetDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FleetDefaultArgs<ExtArgs>>): Prisma.Prisma__FleetClient<runtime.Types.Result.GetResult<Prisma.$FleetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
683
+ /**
684
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
685
+ * @param onfulfilled The callback to execute when the Promise is resolved.
686
+ * @param onrejected The callback to execute when the Promise is rejected.
687
+ * @returns A Promise for the completion of which ever callback is executed.
688
+ */
689
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
690
+ /**
691
+ * Attaches a callback for only the rejection of the Promise.
692
+ * @param onrejected The callback to execute when the Promise is rejected.
693
+ * @returns A Promise for the completion of the callback.
694
+ */
695
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
696
+ /**
697
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
698
+ * resolved value cannot be modified from the callback.
699
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
700
+ * @returns A Promise for the completion of the callback.
701
+ */
702
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
703
+ }
704
+ /**
705
+ * Fields of the DefinedScope model
706
+ */
707
+ export interface DefinedScopeFieldRefs {
708
+ readonly fleetId: Prisma.FieldRef<"DefinedScope", 'String'>;
709
+ readonly scope: Prisma.FieldRef<"DefinedScope", 'String'>;
710
+ readonly description: Prisma.FieldRef<"DefinedScope", 'String'>;
711
+ }
712
+ /**
713
+ * DefinedScope findUnique
714
+ */
715
+ export type DefinedScopeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
716
+ /**
717
+ * Select specific fields to fetch from the DefinedScope
718
+ */
719
+ select?: Prisma.DefinedScopeSelect<ExtArgs> | null;
720
+ /**
721
+ * Omit specific fields from the DefinedScope
722
+ */
723
+ omit?: Prisma.DefinedScopeOmit<ExtArgs> | null;
724
+ /**
725
+ * Choose, which related nodes to fetch as well
726
+ */
727
+ include?: Prisma.DefinedScopeInclude<ExtArgs> | null;
728
+ /**
729
+ * Filter, which DefinedScope to fetch.
730
+ */
731
+ where: Prisma.DefinedScopeWhereUniqueInput;
732
+ };
733
+ /**
734
+ * DefinedScope findUniqueOrThrow
735
+ */
736
+ export type DefinedScopeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
737
+ /**
738
+ * Select specific fields to fetch from the DefinedScope
739
+ */
740
+ select?: Prisma.DefinedScopeSelect<ExtArgs> | null;
741
+ /**
742
+ * Omit specific fields from the DefinedScope
743
+ */
744
+ omit?: Prisma.DefinedScopeOmit<ExtArgs> | null;
745
+ /**
746
+ * Choose, which related nodes to fetch as well
747
+ */
748
+ include?: Prisma.DefinedScopeInclude<ExtArgs> | null;
749
+ /**
750
+ * Filter, which DefinedScope to fetch.
751
+ */
752
+ where: Prisma.DefinedScopeWhereUniqueInput;
753
+ };
754
+ /**
755
+ * DefinedScope findFirst
756
+ */
757
+ export type DefinedScopeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
758
+ /**
759
+ * Select specific fields to fetch from the DefinedScope
760
+ */
761
+ select?: Prisma.DefinedScopeSelect<ExtArgs> | null;
762
+ /**
763
+ * Omit specific fields from the DefinedScope
764
+ */
765
+ omit?: Prisma.DefinedScopeOmit<ExtArgs> | null;
766
+ /**
767
+ * Choose, which related nodes to fetch as well
768
+ */
769
+ include?: Prisma.DefinedScopeInclude<ExtArgs> | null;
770
+ /**
771
+ * Filter, which DefinedScope to fetch.
772
+ */
773
+ where?: Prisma.DefinedScopeWhereInput;
774
+ /**
775
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
776
+ *
777
+ * Determine the order of DefinedScopes to fetch.
778
+ */
779
+ orderBy?: Prisma.DefinedScopeOrderByWithRelationInput | Prisma.DefinedScopeOrderByWithRelationInput[];
780
+ /**
781
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
782
+ *
783
+ * Sets the position for searching for DefinedScopes.
784
+ */
785
+ cursor?: Prisma.DefinedScopeWhereUniqueInput;
786
+ /**
787
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
788
+ *
789
+ * Take `±n` DefinedScopes from the position of the cursor.
790
+ */
791
+ take?: number;
792
+ /**
793
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
794
+ *
795
+ * Skip the first `n` DefinedScopes.
796
+ */
797
+ skip?: number;
798
+ /**
799
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
800
+ *
801
+ * Filter by unique combinations of DefinedScopes.
802
+ */
803
+ distinct?: Prisma.DefinedScopeScalarFieldEnum | Prisma.DefinedScopeScalarFieldEnum[];
804
+ };
805
+ /**
806
+ * DefinedScope findFirstOrThrow
807
+ */
808
+ export type DefinedScopeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
809
+ /**
810
+ * Select specific fields to fetch from the DefinedScope
811
+ */
812
+ select?: Prisma.DefinedScopeSelect<ExtArgs> | null;
813
+ /**
814
+ * Omit specific fields from the DefinedScope
815
+ */
816
+ omit?: Prisma.DefinedScopeOmit<ExtArgs> | null;
817
+ /**
818
+ * Choose, which related nodes to fetch as well
819
+ */
820
+ include?: Prisma.DefinedScopeInclude<ExtArgs> | null;
821
+ /**
822
+ * Filter, which DefinedScope to fetch.
823
+ */
824
+ where?: Prisma.DefinedScopeWhereInput;
825
+ /**
826
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
827
+ *
828
+ * Determine the order of DefinedScopes to fetch.
829
+ */
830
+ orderBy?: Prisma.DefinedScopeOrderByWithRelationInput | Prisma.DefinedScopeOrderByWithRelationInput[];
831
+ /**
832
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
833
+ *
834
+ * Sets the position for searching for DefinedScopes.
835
+ */
836
+ cursor?: Prisma.DefinedScopeWhereUniqueInput;
837
+ /**
838
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
839
+ *
840
+ * Take `±n` DefinedScopes from the position of the cursor.
841
+ */
842
+ take?: number;
843
+ /**
844
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
845
+ *
846
+ * Skip the first `n` DefinedScopes.
847
+ */
848
+ skip?: number;
849
+ /**
850
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
851
+ *
852
+ * Filter by unique combinations of DefinedScopes.
853
+ */
854
+ distinct?: Prisma.DefinedScopeScalarFieldEnum | Prisma.DefinedScopeScalarFieldEnum[];
855
+ };
856
+ /**
857
+ * DefinedScope findMany
858
+ */
859
+ export type DefinedScopeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
860
+ /**
861
+ * Select specific fields to fetch from the DefinedScope
862
+ */
863
+ select?: Prisma.DefinedScopeSelect<ExtArgs> | null;
864
+ /**
865
+ * Omit specific fields from the DefinedScope
866
+ */
867
+ omit?: Prisma.DefinedScopeOmit<ExtArgs> | null;
868
+ /**
869
+ * Choose, which related nodes to fetch as well
870
+ */
871
+ include?: Prisma.DefinedScopeInclude<ExtArgs> | null;
872
+ /**
873
+ * Filter, which DefinedScopes to fetch.
874
+ */
875
+ where?: Prisma.DefinedScopeWhereInput;
876
+ /**
877
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
878
+ *
879
+ * Determine the order of DefinedScopes to fetch.
880
+ */
881
+ orderBy?: Prisma.DefinedScopeOrderByWithRelationInput | Prisma.DefinedScopeOrderByWithRelationInput[];
882
+ /**
883
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
884
+ *
885
+ * Sets the position for listing DefinedScopes.
886
+ */
887
+ cursor?: Prisma.DefinedScopeWhereUniqueInput;
888
+ /**
889
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
890
+ *
891
+ * Take `±n` DefinedScopes from the position of the cursor.
892
+ */
893
+ take?: number;
894
+ /**
895
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
896
+ *
897
+ * Skip the first `n` DefinedScopes.
898
+ */
899
+ skip?: number;
900
+ /**
901
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
902
+ *
903
+ * Filter by unique combinations of DefinedScopes.
904
+ */
905
+ distinct?: Prisma.DefinedScopeScalarFieldEnum | Prisma.DefinedScopeScalarFieldEnum[];
906
+ };
907
+ /**
908
+ * DefinedScope create
909
+ */
910
+ export type DefinedScopeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
911
+ /**
912
+ * Select specific fields to fetch from the DefinedScope
913
+ */
914
+ select?: Prisma.DefinedScopeSelect<ExtArgs> | null;
915
+ /**
916
+ * Omit specific fields from the DefinedScope
917
+ */
918
+ omit?: Prisma.DefinedScopeOmit<ExtArgs> | null;
919
+ /**
920
+ * Choose, which related nodes to fetch as well
921
+ */
922
+ include?: Prisma.DefinedScopeInclude<ExtArgs> | null;
923
+ /**
924
+ * The data needed to create a DefinedScope.
925
+ */
926
+ data: Prisma.XOR<Prisma.DefinedScopeCreateInput, Prisma.DefinedScopeUncheckedCreateInput>;
927
+ };
928
+ /**
929
+ * DefinedScope createMany
930
+ */
931
+ export type DefinedScopeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
932
+ /**
933
+ * The data used to create many DefinedScopes.
934
+ */
935
+ data: Prisma.DefinedScopeCreateManyInput | Prisma.DefinedScopeCreateManyInput[];
936
+ skipDuplicates?: boolean;
937
+ };
938
+ /**
939
+ * DefinedScope createManyAndReturn
940
+ */
941
+ export type DefinedScopeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
942
+ /**
943
+ * Select specific fields to fetch from the DefinedScope
944
+ */
945
+ select?: Prisma.DefinedScopeSelectCreateManyAndReturn<ExtArgs> | null;
946
+ /**
947
+ * Omit specific fields from the DefinedScope
948
+ */
949
+ omit?: Prisma.DefinedScopeOmit<ExtArgs> | null;
950
+ /**
951
+ * The data used to create many DefinedScopes.
952
+ */
953
+ data: Prisma.DefinedScopeCreateManyInput | Prisma.DefinedScopeCreateManyInput[];
954
+ skipDuplicates?: boolean;
955
+ /**
956
+ * Choose, which related nodes to fetch as well
957
+ */
958
+ include?: Prisma.DefinedScopeIncludeCreateManyAndReturn<ExtArgs> | null;
959
+ };
960
+ /**
961
+ * DefinedScope update
962
+ */
963
+ export type DefinedScopeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
964
+ /**
965
+ * Select specific fields to fetch from the DefinedScope
966
+ */
967
+ select?: Prisma.DefinedScopeSelect<ExtArgs> | null;
968
+ /**
969
+ * Omit specific fields from the DefinedScope
970
+ */
971
+ omit?: Prisma.DefinedScopeOmit<ExtArgs> | null;
972
+ /**
973
+ * Choose, which related nodes to fetch as well
974
+ */
975
+ include?: Prisma.DefinedScopeInclude<ExtArgs> | null;
976
+ /**
977
+ * The data needed to update a DefinedScope.
978
+ */
979
+ data: Prisma.XOR<Prisma.DefinedScopeUpdateInput, Prisma.DefinedScopeUncheckedUpdateInput>;
980
+ /**
981
+ * Choose, which DefinedScope to update.
982
+ */
983
+ where: Prisma.DefinedScopeWhereUniqueInput;
984
+ };
985
+ /**
986
+ * DefinedScope updateMany
987
+ */
988
+ export type DefinedScopeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
989
+ /**
990
+ * The data used to update DefinedScopes.
991
+ */
992
+ data: Prisma.XOR<Prisma.DefinedScopeUpdateManyMutationInput, Prisma.DefinedScopeUncheckedUpdateManyInput>;
993
+ /**
994
+ * Filter which DefinedScopes to update
995
+ */
996
+ where?: Prisma.DefinedScopeWhereInput;
997
+ /**
998
+ * Limit how many DefinedScopes to update.
999
+ */
1000
+ limit?: number;
1001
+ };
1002
+ /**
1003
+ * DefinedScope updateManyAndReturn
1004
+ */
1005
+ export type DefinedScopeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1006
+ /**
1007
+ * Select specific fields to fetch from the DefinedScope
1008
+ */
1009
+ select?: Prisma.DefinedScopeSelectUpdateManyAndReturn<ExtArgs> | null;
1010
+ /**
1011
+ * Omit specific fields from the DefinedScope
1012
+ */
1013
+ omit?: Prisma.DefinedScopeOmit<ExtArgs> | null;
1014
+ /**
1015
+ * The data used to update DefinedScopes.
1016
+ */
1017
+ data: Prisma.XOR<Prisma.DefinedScopeUpdateManyMutationInput, Prisma.DefinedScopeUncheckedUpdateManyInput>;
1018
+ /**
1019
+ * Filter which DefinedScopes to update
1020
+ */
1021
+ where?: Prisma.DefinedScopeWhereInput;
1022
+ /**
1023
+ * Limit how many DefinedScopes to update.
1024
+ */
1025
+ limit?: number;
1026
+ /**
1027
+ * Choose, which related nodes to fetch as well
1028
+ */
1029
+ include?: Prisma.DefinedScopeIncludeUpdateManyAndReturn<ExtArgs> | null;
1030
+ };
1031
+ /**
1032
+ * DefinedScope upsert
1033
+ */
1034
+ export type DefinedScopeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1035
+ /**
1036
+ * Select specific fields to fetch from the DefinedScope
1037
+ */
1038
+ select?: Prisma.DefinedScopeSelect<ExtArgs> | null;
1039
+ /**
1040
+ * Omit specific fields from the DefinedScope
1041
+ */
1042
+ omit?: Prisma.DefinedScopeOmit<ExtArgs> | null;
1043
+ /**
1044
+ * Choose, which related nodes to fetch as well
1045
+ */
1046
+ include?: Prisma.DefinedScopeInclude<ExtArgs> | null;
1047
+ /**
1048
+ * The filter to search for the DefinedScope to update in case it exists.
1049
+ */
1050
+ where: Prisma.DefinedScopeWhereUniqueInput;
1051
+ /**
1052
+ * In case the DefinedScope found by the `where` argument doesn't exist, create a new DefinedScope with this data.
1053
+ */
1054
+ create: Prisma.XOR<Prisma.DefinedScopeCreateInput, Prisma.DefinedScopeUncheckedCreateInput>;
1055
+ /**
1056
+ * In case the DefinedScope was found with the provided `where` argument, update it with this data.
1057
+ */
1058
+ update: Prisma.XOR<Prisma.DefinedScopeUpdateInput, Prisma.DefinedScopeUncheckedUpdateInput>;
1059
+ };
1060
+ /**
1061
+ * DefinedScope delete
1062
+ */
1063
+ export type DefinedScopeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1064
+ /**
1065
+ * Select specific fields to fetch from the DefinedScope
1066
+ */
1067
+ select?: Prisma.DefinedScopeSelect<ExtArgs> | null;
1068
+ /**
1069
+ * Omit specific fields from the DefinedScope
1070
+ */
1071
+ omit?: Prisma.DefinedScopeOmit<ExtArgs> | null;
1072
+ /**
1073
+ * Choose, which related nodes to fetch as well
1074
+ */
1075
+ include?: Prisma.DefinedScopeInclude<ExtArgs> | null;
1076
+ /**
1077
+ * Filter which DefinedScope to delete.
1078
+ */
1079
+ where: Prisma.DefinedScopeWhereUniqueInput;
1080
+ };
1081
+ /**
1082
+ * DefinedScope deleteMany
1083
+ */
1084
+ export type DefinedScopeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1085
+ /**
1086
+ * Filter which DefinedScopes to delete
1087
+ */
1088
+ where?: Prisma.DefinedScopeWhereInput;
1089
+ /**
1090
+ * Limit how many DefinedScopes to delete.
1091
+ */
1092
+ limit?: number;
1093
+ };
1094
+ /**
1095
+ * DefinedScope without action
1096
+ */
1097
+ export type DefinedScopeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1098
+ /**
1099
+ * Select specific fields to fetch from the DefinedScope
1100
+ */
1101
+ select?: Prisma.DefinedScopeSelect<ExtArgs> | null;
1102
+ /**
1103
+ * Omit specific fields from the DefinedScope
1104
+ */
1105
+ omit?: Prisma.DefinedScopeOmit<ExtArgs> | null;
1106
+ /**
1107
+ * Choose, which related nodes to fetch as well
1108
+ */
1109
+ include?: Prisma.DefinedScopeInclude<ExtArgs> | null;
1110
+ };