@aeolus-fleet/core 0.34.0 → 0.36.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 (174) hide show
  1. package/README.md +5 -4
  2. package/dist/adapters/prisma/alerts.d.ts +21 -0
  3. package/dist/adapters/prisma/alerts.js +61 -0
  4. package/dist/adapters/prisma/alerts.js.map +1 -0
  5. package/dist/adapters/prisma/expectations.d.ts +19 -0
  6. package/dist/adapters/prisma/expectations.js +46 -0
  7. package/dist/adapters/prisma/expectations.js.map +1 -0
  8. package/dist/adapters/prisma/generated/browser.d.ts +18 -1
  9. package/dist/adapters/prisma/generated/client.d.ts +18 -1
  10. package/dist/adapters/prisma/generated/commonInputTypes.d.ts +30 -0
  11. package/dist/adapters/prisma/generated/enums.d.ts +7 -0
  12. package/dist/adapters/prisma/generated/enums.js +6 -0
  13. package/dist/adapters/prisma/generated/enums.js.map +1 -1
  14. package/dist/adapters/prisma/generated/internal/class.d.ts +22 -0
  15. package/dist/adapters/prisma/generated/internal/class.js +4 -4
  16. package/dist/adapters/prisma/generated/internal/class.js.map +1 -1
  17. package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +197 -1
  18. package/dist/adapters/prisma/generated/internal/prismaNamespace.js +36 -0
  19. package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -1
  20. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +38 -0
  21. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +36 -0
  22. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -1
  23. package/dist/adapters/prisma/generated/models/Alert.d.ts +1527 -0
  24. package/dist/adapters/prisma/generated/models/Alert.js +2 -0
  25. package/dist/adapters/prisma/generated/models/Alert.js.map +1 -0
  26. package/dist/adapters/prisma/generated/models/Fleet.d.ts +1068 -118
  27. package/dist/adapters/prisma/generated/models/Lease.d.ts +509 -2
  28. package/dist/adapters/prisma/generated/models/Message.d.ts +1 -1
  29. package/dist/adapters/prisma/generated/models/Ship.d.ts +939 -1
  30. package/dist/adapters/prisma/generated/models/ShipExpectations.d.ts +1468 -0
  31. package/dist/adapters/prisma/generated/models/ShipExpectations.js +2 -0
  32. package/dist/adapters/prisma/generated/models/ShipExpectations.js.map +1 -0
  33. package/dist/adapters/prisma/generated/models.d.ts +2 -0
  34. package/dist/adapters/prisma/history-pruner.js +24 -2
  35. package/dist/adapters/prisma/history-pruner.js.map +1 -1
  36. package/dist/adapters/prisma/history.js +9 -2
  37. package/dist/adapters/prisma/history.js.map +1 -1
  38. package/dist/adapters/prisma/messaging.js +39 -0
  39. package/dist/adapters/prisma/messaging.js.map +1 -1
  40. package/dist/adapters/prisma/overdue.js +1 -1
  41. package/dist/adapters/prisma/registry.d.ts +2 -1
  42. package/dist/adapters/prisma/registry.js +66 -14
  43. package/dist/adapters/prisma/registry.js.map +1 -1
  44. package/dist/adapters/prisma/rows.d.ts +3 -0
  45. package/dist/adapters/prisma/rows.js +40 -4
  46. package/dist/adapters/prisma/rows.js.map +1 -1
  47. package/dist/adapters/prisma/unit-of-work.d.ts +3 -1
  48. package/dist/adapters/prisma/unit-of-work.js +4 -0
  49. package/dist/adapters/prisma/unit-of-work.js.map +1 -1
  50. package/dist/adapters/trpc/alert-output.d.ts +4 -0
  51. package/dist/adapters/trpc/alert-output.js +15 -0
  52. package/dist/adapters/trpc/alert-output.js.map +1 -0
  53. package/dist/adapters/trpc/context.d.ts +14 -0
  54. package/dist/adapters/trpc/fleet.d.ts +479 -5
  55. package/dist/adapters/trpc/fleet.js +123 -10
  56. package/dist/adapters/trpc/fleet.js.map +1 -1
  57. package/dist/adapters/trpc/router.d.ts +542 -4
  58. package/dist/adapters/trpc/ship-contract.js +5 -0
  59. package/dist/adapters/trpc/ship-contract.js.map +1 -1
  60. package/dist/adapters/trpc/ship-protocol.js +4 -2
  61. package/dist/adapters/trpc/ship-protocol.js.map +1 -1
  62. package/dist/adapters/trpc/ship.d.ts +80 -3
  63. package/dist/adapters/trpc/ship.js +42 -8
  64. package/dist/adapters/trpc/ship.js.map +1 -1
  65. package/dist/adapters/trpc/trpc.js +4 -0
  66. package/dist/adapters/trpc/trpc.js.map +1 -1
  67. package/dist/domain/messaging/delivery.d.ts +8 -3
  68. package/dist/domain/messaging/delivery.js +15 -2
  69. package/dist/domain/messaging/delivery.js.map +1 -1
  70. package/dist/domain/messaging/message.d.ts +5 -1
  71. package/dist/domain/messaging/message.js.map +1 -1
  72. package/dist/domain/messaging/overdue.d.ts +4 -1
  73. package/dist/domain/messaging/overdue.js +3 -3
  74. package/dist/domain/messaging/overdue.js.map +1 -1
  75. package/dist/domain/messaging/payload.d.ts +1 -1
  76. package/dist/domain/messaging/payload.js +2 -2
  77. package/dist/domain/messaging/payload.js.map +1 -1
  78. package/dist/domain/messaging/ports.d.ts +15 -0
  79. package/dist/domain/messaging/read-record.d.ts +38 -0
  80. package/dist/domain/messaging/read-record.js +59 -0
  81. package/dist/domain/messaging/read-record.js.map +1 -0
  82. package/dist/domain/messaging/sealed-payload.js +1 -1
  83. package/dist/domain/messaging/send-message.d.ts +1 -1
  84. package/dist/domain/messaging/send-message.js +1 -1
  85. package/dist/domain/registry/alert.d.ts +75 -0
  86. package/dist/domain/registry/alert.js +71 -0
  87. package/dist/domain/registry/alert.js.map +1 -0
  88. package/dist/domain/registry/claim-ship.d.ts +2 -1
  89. package/dist/domain/registry/claim-ship.js +1 -1
  90. package/dist/domain/registry/claim-ship.js.map +1 -1
  91. package/dist/domain/registry/clear-alert.d.ts +32 -0
  92. package/dist/domain/registry/clear-alert.js +40 -0
  93. package/dist/domain/registry/clear-alert.js.map +1 -0
  94. package/dist/domain/registry/crew-request.d.ts +9 -0
  95. package/dist/domain/registry/crew-request.js +7 -0
  96. package/dist/domain/registry/crew-request.js.map +1 -1
  97. package/dist/domain/registry/expectations.d.ts +68 -0
  98. package/dist/domain/registry/expectations.js +84 -0
  99. package/dist/domain/registry/expectations.js.map +1 -0
  100. package/dist/domain/registry/get-ship.d.ts +9 -1
  101. package/dist/domain/registry/get-ship.js +10 -2
  102. package/dist/domain/registry/get-ship.js.map +1 -1
  103. package/dist/domain/registry/lease-activity.d.ts +15 -0
  104. package/dist/domain/registry/lease-activity.js +2 -0
  105. package/dist/domain/registry/lease-activity.js.map +1 -0
  106. package/dist/domain/registry/lease.d.ts +1 -1
  107. package/dist/domain/registry/list-fleet.d.ts +6 -1
  108. package/dist/domain/registry/list-fleet.js +5 -3
  109. package/dist/domain/registry/list-fleet.js.map +1 -1
  110. package/dist/domain/registry/ports.d.ts +61 -1
  111. package/dist/domain/registry/public.d.ts +2 -0
  112. package/dist/domain/registry/public.js +1 -0
  113. package/dist/domain/registry/public.js.map +1 -1
  114. package/dist/domain/registry/raise-alert.d.ts +31 -0
  115. package/dist/domain/registry/raise-alert.js +43 -0
  116. package/dist/domain/registry/raise-alert.js.map +1 -0
  117. package/dist/domain/registry/read-open-alerts.d.ts +23 -0
  118. package/dist/domain/registry/read-open-alerts.js +21 -0
  119. package/dist/domain/registry/read-open-alerts.js.map +1 -0
  120. package/dist/domain/registry/report-activity.d.ts +41 -0
  121. package/dist/domain/registry/report-activity.js +43 -0
  122. package/dist/domain/registry/report-activity.js.map +1 -0
  123. package/dist/domain/registry/report-step.d.ts +8 -0
  124. package/dist/domain/registry/report-step.js +16 -0
  125. package/dist/domain/registry/report-step.js.map +1 -0
  126. package/dist/domain/registry/report-task.d.ts +14 -0
  127. package/dist/domain/registry/report-task.js +39 -0
  128. package/dist/domain/registry/report-task.js.map +1 -0
  129. package/dist/domain/registry/report.d.ts +2 -2
  130. package/dist/domain/registry/report.js.map +1 -1
  131. package/dist/domain/registry/retire-ship.d.ts +6 -2
  132. package/dist/domain/registry/retire-ship.js +12 -1
  133. package/dist/domain/registry/retire-ship.js.map +1 -1
  134. package/dist/domain/registry/set-expectations.d.ts +33 -0
  135. package/dist/domain/registry/set-expectations.js +47 -0
  136. package/dist/domain/registry/set-expectations.js.map +1 -0
  137. package/dist/domain/registry/ship-report.d.ts +24 -7
  138. package/dist/domain/registry/ship-report.js +41 -5
  139. package/dist/domain/registry/ship-report.js.map +1 -1
  140. package/dist/domain/registry/ship.d.ts +7 -1
  141. package/dist/domain/registry/ship.js +3 -0
  142. package/dist/domain/registry/ship.js.map +1 -1
  143. package/dist/domain/shared/errors.d.ts +1 -1
  144. package/dist/domain/shared/errors.js.map +1 -1
  145. package/dist/domain/shared/history-pruning.d.ts +19 -2
  146. package/dist/domain/shared/history-pruning.js +1 -1
  147. package/dist/domain/shared/history-pruning.js.map +1 -1
  148. package/dist/domain/shared/history.d.ts +2 -1
  149. package/dist/domain/shared/history.js.map +1 -1
  150. package/dist/domain/shared/prune-history.d.ts +2 -1
  151. package/dist/domain/shared/prune-history.js +8 -6
  152. package/dist/domain/shared/prune-history.js.map +1 -1
  153. package/dist/domain/shared/read-message-deliveries.d.ts +2 -1
  154. package/dist/domain/shared/read-message-deliveries.js +4 -3
  155. package/dist/domain/shared/read-message-deliveries.js.map +1 -1
  156. package/dist/domain/shared/read-message.d.ts +2 -1
  157. package/dist/domain/shared/read-message.js +6 -3
  158. package/dist/domain/shared/read-message.js.map +1 -1
  159. package/dist/domain/shared/read-report-tasks.d.ts +10 -0
  160. package/dist/domain/shared/read-report-tasks.js +24 -0
  161. package/dist/domain/shared/read-report-tasks.js.map +1 -0
  162. package/dist/wiring.d.ts +14 -0
  163. package/dist/wiring.js +14 -0
  164. package/dist/wiring.js.map +1 -1
  165. package/package.json +2 -2
  166. package/src/adapters/prisma/migrations/20261103090000_removed_ships/migration.sql +21 -0
  167. package/src/adapters/prisma/migrations/20261104090000_report_task_step/migration.sql +10 -0
  168. package/src/adapters/prisma/migrations/20261105090000_payload_limit_256kb/migration.sql +15 -0
  169. package/src/adapters/prisma/migrations/20261106090000_lease_activity/migration.sql +11 -0
  170. package/src/adapters/prisma/migrations/20261107090000_alert_scope/migration.sql +64 -0
  171. package/src/adapters/prisma/migrations/20261107100000_alerts/migration.sql +33 -0
  172. package/src/adapters/prisma/migrations/20261108090000_ship_expectations/migration.sql +22 -0
  173. package/src/adapters/prisma/migrations/20261108100000_delivery_record_index/migration.sql +4 -0
  174. package/src/adapters/prisma/schema.prisma +108 -23
@@ -0,0 +1,1527 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Alert
5
+ * An alert on a ship (decision 0071): what the watch raised when a fact and
6
+ * its signal parted, open until the watch clears it or the ship retires.
7
+ * Ids start with alt_. One per ship, signal and occurrence, open or cleared,
8
+ * so an occurrence is raised once. facts holds the signal's facts at raise,
9
+ * as common's schema gives them.
10
+ */
11
+ export type AlertModel = runtime.Types.Result.DefaultSelection<Prisma.$AlertPayload>;
12
+ export type AggregateAlert = {
13
+ _count: AlertCountAggregateOutputType | null;
14
+ _min: AlertMinAggregateOutputType | null;
15
+ _max: AlertMaxAggregateOutputType | null;
16
+ };
17
+ export type AlertMinAggregateOutputType = {
18
+ id: string | null;
19
+ fleetId: string | null;
20
+ shipId: string | null;
21
+ signal: string | null;
22
+ occurrenceKey: string | null;
23
+ ownerShipId: string | null;
24
+ since: Date | null;
25
+ raisedAt: Date | null;
26
+ clearedAt: Date | null;
27
+ clearedWhy: string | null;
28
+ };
29
+ export type AlertMaxAggregateOutputType = {
30
+ id: string | null;
31
+ fleetId: string | null;
32
+ shipId: string | null;
33
+ signal: string | null;
34
+ occurrenceKey: string | null;
35
+ ownerShipId: string | null;
36
+ since: Date | null;
37
+ raisedAt: Date | null;
38
+ clearedAt: Date | null;
39
+ clearedWhy: string | null;
40
+ };
41
+ export type AlertCountAggregateOutputType = {
42
+ id: number;
43
+ fleetId: number;
44
+ shipId: number;
45
+ signal: number;
46
+ occurrenceKey: number;
47
+ facts: number;
48
+ ownerShipId: number;
49
+ since: number;
50
+ raisedAt: number;
51
+ clearedAt: number;
52
+ clearedWhy: number;
53
+ _all: number;
54
+ };
55
+ export type AlertMinAggregateInputType = {
56
+ id?: true;
57
+ fleetId?: true;
58
+ shipId?: true;
59
+ signal?: true;
60
+ occurrenceKey?: true;
61
+ ownerShipId?: true;
62
+ since?: true;
63
+ raisedAt?: true;
64
+ clearedAt?: true;
65
+ clearedWhy?: true;
66
+ };
67
+ export type AlertMaxAggregateInputType = {
68
+ id?: true;
69
+ fleetId?: true;
70
+ shipId?: true;
71
+ signal?: true;
72
+ occurrenceKey?: true;
73
+ ownerShipId?: true;
74
+ since?: true;
75
+ raisedAt?: true;
76
+ clearedAt?: true;
77
+ clearedWhy?: true;
78
+ };
79
+ export type AlertCountAggregateInputType = {
80
+ id?: true;
81
+ fleetId?: true;
82
+ shipId?: true;
83
+ signal?: true;
84
+ occurrenceKey?: true;
85
+ facts?: true;
86
+ ownerShipId?: true;
87
+ since?: true;
88
+ raisedAt?: true;
89
+ clearedAt?: true;
90
+ clearedWhy?: true;
91
+ _all?: true;
92
+ };
93
+ export type AlertAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
94
+ /**
95
+ * Filter which Alert to aggregate.
96
+ */
97
+ where?: Prisma.AlertWhereInput;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
100
+ *
101
+ * Determine the order of Alerts to fetch.
102
+ */
103
+ orderBy?: Prisma.AlertOrderByWithRelationInput | Prisma.AlertOrderByWithRelationInput[];
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
106
+ *
107
+ * Sets the start position
108
+ */
109
+ cursor?: Prisma.AlertWhereUniqueInput;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
112
+ *
113
+ * Take `±n` Alerts from the position of the cursor.
114
+ */
115
+ take?: number;
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
118
+ *
119
+ * Skip the first `n` Alerts.
120
+ */
121
+ skip?: number;
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
124
+ *
125
+ * Count returned Alerts
126
+ **/
127
+ _count?: true | AlertCountAggregateInputType;
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
130
+ *
131
+ * Select which fields to find the minimum value
132
+ **/
133
+ _min?: AlertMinAggregateInputType;
134
+ /**
135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
136
+ *
137
+ * Select which fields to find the maximum value
138
+ **/
139
+ _max?: AlertMaxAggregateInputType;
140
+ };
141
+ export type GetAlertAggregateType<T extends AlertAggregateArgs> = {
142
+ [P in keyof T & keyof AggregateAlert]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAlert[P]> : Prisma.GetScalarType<T[P], AggregateAlert[P]>;
143
+ };
144
+ export type AlertGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
145
+ where?: Prisma.AlertWhereInput;
146
+ orderBy?: Prisma.AlertOrderByWithAggregationInput | Prisma.AlertOrderByWithAggregationInput[];
147
+ by: Prisma.AlertScalarFieldEnum[] | Prisma.AlertScalarFieldEnum;
148
+ having?: Prisma.AlertScalarWhereWithAggregatesInput;
149
+ take?: number;
150
+ skip?: number;
151
+ _count?: AlertCountAggregateInputType | true;
152
+ _min?: AlertMinAggregateInputType;
153
+ _max?: AlertMaxAggregateInputType;
154
+ };
155
+ export type AlertGroupByOutputType = {
156
+ id: string;
157
+ fleetId: string;
158
+ shipId: string;
159
+ signal: string;
160
+ occurrenceKey: string;
161
+ facts: runtime.JsonValue;
162
+ ownerShipId: string | null;
163
+ since: Date;
164
+ raisedAt: Date;
165
+ clearedAt: Date | null;
166
+ clearedWhy: string | null;
167
+ _count: AlertCountAggregateOutputType | null;
168
+ _min: AlertMinAggregateOutputType | null;
169
+ _max: AlertMaxAggregateOutputType | null;
170
+ };
171
+ export type GetAlertGroupByPayload<T extends AlertGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AlertGroupByOutputType, T['by']> & {
172
+ [P in ((keyof T) & (keyof AlertGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AlertGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AlertGroupByOutputType[P]>;
173
+ }>>;
174
+ export type AlertWhereInput = {
175
+ AND?: Prisma.AlertWhereInput | Prisma.AlertWhereInput[];
176
+ OR?: Prisma.AlertWhereInput[];
177
+ NOT?: Prisma.AlertWhereInput | Prisma.AlertWhereInput[];
178
+ id?: Prisma.StringFilter<"Alert"> | string;
179
+ fleetId?: Prisma.StringFilter<"Alert"> | string;
180
+ shipId?: Prisma.StringFilter<"Alert"> | string;
181
+ signal?: Prisma.StringFilter<"Alert"> | string;
182
+ occurrenceKey?: Prisma.StringFilter<"Alert"> | string;
183
+ facts?: Prisma.JsonFilter<"Alert">;
184
+ ownerShipId?: Prisma.StringNullableFilter<"Alert"> | string | null;
185
+ since?: Prisma.DateTimeFilter<"Alert"> | Date | string;
186
+ raisedAt?: Prisma.DateTimeFilter<"Alert"> | Date | string;
187
+ clearedAt?: Prisma.DateTimeNullableFilter<"Alert"> | Date | string | null;
188
+ clearedWhy?: Prisma.StringNullableFilter<"Alert"> | string | null;
189
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
190
+ ship?: Prisma.XOR<Prisma.ShipScalarRelationFilter, Prisma.ShipWhereInput>;
191
+ };
192
+ export type AlertOrderByWithRelationInput = {
193
+ id?: Prisma.SortOrder;
194
+ fleetId?: Prisma.SortOrder;
195
+ shipId?: Prisma.SortOrder;
196
+ signal?: Prisma.SortOrder;
197
+ occurrenceKey?: Prisma.SortOrder;
198
+ facts?: Prisma.SortOrder;
199
+ ownerShipId?: Prisma.SortOrderInput | Prisma.SortOrder;
200
+ since?: Prisma.SortOrder;
201
+ raisedAt?: Prisma.SortOrder;
202
+ clearedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
203
+ clearedWhy?: Prisma.SortOrderInput | Prisma.SortOrder;
204
+ fleet?: Prisma.FleetOrderByWithRelationInput;
205
+ ship?: Prisma.ShipOrderByWithRelationInput;
206
+ };
207
+ export type AlertWhereUniqueInput = Prisma.AtLeast<{
208
+ id?: string;
209
+ fleetId_shipId_signal_occurrenceKey?: Prisma.AlertFleetIdShipIdSignalOccurrenceKeyCompoundUniqueInput;
210
+ AND?: Prisma.AlertWhereInput | Prisma.AlertWhereInput[];
211
+ OR?: Prisma.AlertWhereInput[];
212
+ NOT?: Prisma.AlertWhereInput | Prisma.AlertWhereInput[];
213
+ fleetId?: Prisma.StringFilter<"Alert"> | string;
214
+ shipId?: Prisma.StringFilter<"Alert"> | string;
215
+ signal?: Prisma.StringFilter<"Alert"> | string;
216
+ occurrenceKey?: Prisma.StringFilter<"Alert"> | string;
217
+ facts?: Prisma.JsonFilter<"Alert">;
218
+ ownerShipId?: Prisma.StringNullableFilter<"Alert"> | string | null;
219
+ since?: Prisma.DateTimeFilter<"Alert"> | Date | string;
220
+ raisedAt?: Prisma.DateTimeFilter<"Alert"> | Date | string;
221
+ clearedAt?: Prisma.DateTimeNullableFilter<"Alert"> | Date | string | null;
222
+ clearedWhy?: Prisma.StringNullableFilter<"Alert"> | string | null;
223
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
224
+ ship?: Prisma.XOR<Prisma.ShipScalarRelationFilter, Prisma.ShipWhereInput>;
225
+ }, "id" | "fleetId_shipId_signal_occurrenceKey">;
226
+ export type AlertOrderByWithAggregationInput = {
227
+ id?: Prisma.SortOrder;
228
+ fleetId?: Prisma.SortOrder;
229
+ shipId?: Prisma.SortOrder;
230
+ signal?: Prisma.SortOrder;
231
+ occurrenceKey?: Prisma.SortOrder;
232
+ facts?: Prisma.SortOrder;
233
+ ownerShipId?: Prisma.SortOrderInput | Prisma.SortOrder;
234
+ since?: Prisma.SortOrder;
235
+ raisedAt?: Prisma.SortOrder;
236
+ clearedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
237
+ clearedWhy?: Prisma.SortOrderInput | Prisma.SortOrder;
238
+ _count?: Prisma.AlertCountOrderByAggregateInput;
239
+ _max?: Prisma.AlertMaxOrderByAggregateInput;
240
+ _min?: Prisma.AlertMinOrderByAggregateInput;
241
+ };
242
+ export type AlertScalarWhereWithAggregatesInput = {
243
+ AND?: Prisma.AlertScalarWhereWithAggregatesInput | Prisma.AlertScalarWhereWithAggregatesInput[];
244
+ OR?: Prisma.AlertScalarWhereWithAggregatesInput[];
245
+ NOT?: Prisma.AlertScalarWhereWithAggregatesInput | Prisma.AlertScalarWhereWithAggregatesInput[];
246
+ id?: Prisma.StringWithAggregatesFilter<"Alert"> | string;
247
+ fleetId?: Prisma.StringWithAggregatesFilter<"Alert"> | string;
248
+ shipId?: Prisma.StringWithAggregatesFilter<"Alert"> | string;
249
+ signal?: Prisma.StringWithAggregatesFilter<"Alert"> | string;
250
+ occurrenceKey?: Prisma.StringWithAggregatesFilter<"Alert"> | string;
251
+ facts?: Prisma.JsonWithAggregatesFilter<"Alert">;
252
+ ownerShipId?: Prisma.StringNullableWithAggregatesFilter<"Alert"> | string | null;
253
+ since?: Prisma.DateTimeWithAggregatesFilter<"Alert"> | Date | string;
254
+ raisedAt?: Prisma.DateTimeWithAggregatesFilter<"Alert"> | Date | string;
255
+ clearedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Alert"> | Date | string | null;
256
+ clearedWhy?: Prisma.StringNullableWithAggregatesFilter<"Alert"> | string | null;
257
+ };
258
+ export type AlertCreateInput = {
259
+ id: string;
260
+ signal: string;
261
+ occurrenceKey: string;
262
+ facts: Prisma.JsonNullValueInput | runtime.InputJsonValue;
263
+ ownerShipId?: string | null;
264
+ since: Date | string;
265
+ raisedAt: Date | string;
266
+ clearedAt?: Date | string | null;
267
+ clearedWhy?: string | null;
268
+ fleet: Prisma.FleetCreateNestedOneWithoutAlertsInput;
269
+ ship: Prisma.ShipCreateNestedOneWithoutAlertsInput;
270
+ };
271
+ export type AlertUncheckedCreateInput = {
272
+ id: string;
273
+ fleetId: string;
274
+ shipId: string;
275
+ signal: string;
276
+ occurrenceKey: string;
277
+ facts: Prisma.JsonNullValueInput | runtime.InputJsonValue;
278
+ ownerShipId?: string | null;
279
+ since: Date | string;
280
+ raisedAt: Date | string;
281
+ clearedAt?: Date | string | null;
282
+ clearedWhy?: string | null;
283
+ };
284
+ export type AlertUpdateInput = {
285
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
286
+ signal?: Prisma.StringFieldUpdateOperationsInput | string;
287
+ occurrenceKey?: Prisma.StringFieldUpdateOperationsInput | string;
288
+ facts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
289
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
290
+ since?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
291
+ raisedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
292
+ clearedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
293
+ clearedWhy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
294
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutAlertsNestedInput;
295
+ ship?: Prisma.ShipUpdateOneRequiredWithoutAlertsNestedInput;
296
+ };
297
+ export type AlertUncheckedUpdateInput = {
298
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
299
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
300
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
301
+ signal?: Prisma.StringFieldUpdateOperationsInput | string;
302
+ occurrenceKey?: Prisma.StringFieldUpdateOperationsInput | string;
303
+ facts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
304
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
305
+ since?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
306
+ raisedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
307
+ clearedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
308
+ clearedWhy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
309
+ };
310
+ export type AlertCreateManyInput = {
311
+ id: string;
312
+ fleetId: string;
313
+ shipId: string;
314
+ signal: string;
315
+ occurrenceKey: string;
316
+ facts: Prisma.JsonNullValueInput | runtime.InputJsonValue;
317
+ ownerShipId?: string | null;
318
+ since: Date | string;
319
+ raisedAt: Date | string;
320
+ clearedAt?: Date | string | null;
321
+ clearedWhy?: string | null;
322
+ };
323
+ export type AlertUpdateManyMutationInput = {
324
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
325
+ signal?: Prisma.StringFieldUpdateOperationsInput | string;
326
+ occurrenceKey?: Prisma.StringFieldUpdateOperationsInput | string;
327
+ facts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
328
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
329
+ since?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
330
+ raisedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
331
+ clearedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
332
+ clearedWhy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
333
+ };
334
+ export type AlertUncheckedUpdateManyInput = {
335
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
336
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
337
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
338
+ signal?: Prisma.StringFieldUpdateOperationsInput | string;
339
+ occurrenceKey?: Prisma.StringFieldUpdateOperationsInput | string;
340
+ facts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
341
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
342
+ since?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
343
+ raisedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
344
+ clearedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
345
+ clearedWhy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
346
+ };
347
+ export type AlertListRelationFilter = {
348
+ every?: Prisma.AlertWhereInput;
349
+ some?: Prisma.AlertWhereInput;
350
+ none?: Prisma.AlertWhereInput;
351
+ };
352
+ export type AlertOrderByRelationAggregateInput = {
353
+ _count?: Prisma.SortOrder;
354
+ };
355
+ export type AlertFleetIdShipIdSignalOccurrenceKeyCompoundUniqueInput = {
356
+ fleetId: string;
357
+ shipId: string;
358
+ signal: string;
359
+ occurrenceKey: string;
360
+ };
361
+ export type AlertCountOrderByAggregateInput = {
362
+ id?: Prisma.SortOrder;
363
+ fleetId?: Prisma.SortOrder;
364
+ shipId?: Prisma.SortOrder;
365
+ signal?: Prisma.SortOrder;
366
+ occurrenceKey?: Prisma.SortOrder;
367
+ facts?: Prisma.SortOrder;
368
+ ownerShipId?: Prisma.SortOrder;
369
+ since?: Prisma.SortOrder;
370
+ raisedAt?: Prisma.SortOrder;
371
+ clearedAt?: Prisma.SortOrder;
372
+ clearedWhy?: Prisma.SortOrder;
373
+ };
374
+ export type AlertMaxOrderByAggregateInput = {
375
+ id?: Prisma.SortOrder;
376
+ fleetId?: Prisma.SortOrder;
377
+ shipId?: Prisma.SortOrder;
378
+ signal?: Prisma.SortOrder;
379
+ occurrenceKey?: Prisma.SortOrder;
380
+ ownerShipId?: Prisma.SortOrder;
381
+ since?: Prisma.SortOrder;
382
+ raisedAt?: Prisma.SortOrder;
383
+ clearedAt?: Prisma.SortOrder;
384
+ clearedWhy?: Prisma.SortOrder;
385
+ };
386
+ export type AlertMinOrderByAggregateInput = {
387
+ id?: Prisma.SortOrder;
388
+ fleetId?: Prisma.SortOrder;
389
+ shipId?: Prisma.SortOrder;
390
+ signal?: Prisma.SortOrder;
391
+ occurrenceKey?: Prisma.SortOrder;
392
+ ownerShipId?: Prisma.SortOrder;
393
+ since?: Prisma.SortOrder;
394
+ raisedAt?: Prisma.SortOrder;
395
+ clearedAt?: Prisma.SortOrder;
396
+ clearedWhy?: Prisma.SortOrder;
397
+ };
398
+ export type AlertCreateNestedManyWithoutFleetInput = {
399
+ create?: Prisma.XOR<Prisma.AlertCreateWithoutFleetInput, Prisma.AlertUncheckedCreateWithoutFleetInput> | Prisma.AlertCreateWithoutFleetInput[] | Prisma.AlertUncheckedCreateWithoutFleetInput[];
400
+ connectOrCreate?: Prisma.AlertCreateOrConnectWithoutFleetInput | Prisma.AlertCreateOrConnectWithoutFleetInput[];
401
+ createMany?: Prisma.AlertCreateManyFleetInputEnvelope;
402
+ connect?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
403
+ };
404
+ export type AlertUncheckedCreateNestedManyWithoutFleetInput = {
405
+ create?: Prisma.XOR<Prisma.AlertCreateWithoutFleetInput, Prisma.AlertUncheckedCreateWithoutFleetInput> | Prisma.AlertCreateWithoutFleetInput[] | Prisma.AlertUncheckedCreateWithoutFleetInput[];
406
+ connectOrCreate?: Prisma.AlertCreateOrConnectWithoutFleetInput | Prisma.AlertCreateOrConnectWithoutFleetInput[];
407
+ createMany?: Prisma.AlertCreateManyFleetInputEnvelope;
408
+ connect?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
409
+ };
410
+ export type AlertUpdateManyWithoutFleetNestedInput = {
411
+ create?: Prisma.XOR<Prisma.AlertCreateWithoutFleetInput, Prisma.AlertUncheckedCreateWithoutFleetInput> | Prisma.AlertCreateWithoutFleetInput[] | Prisma.AlertUncheckedCreateWithoutFleetInput[];
412
+ connectOrCreate?: Prisma.AlertCreateOrConnectWithoutFleetInput | Prisma.AlertCreateOrConnectWithoutFleetInput[];
413
+ upsert?: Prisma.AlertUpsertWithWhereUniqueWithoutFleetInput | Prisma.AlertUpsertWithWhereUniqueWithoutFleetInput[];
414
+ createMany?: Prisma.AlertCreateManyFleetInputEnvelope;
415
+ set?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
416
+ disconnect?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
417
+ delete?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
418
+ connect?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
419
+ update?: Prisma.AlertUpdateWithWhereUniqueWithoutFleetInput | Prisma.AlertUpdateWithWhereUniqueWithoutFleetInput[];
420
+ updateMany?: Prisma.AlertUpdateManyWithWhereWithoutFleetInput | Prisma.AlertUpdateManyWithWhereWithoutFleetInput[];
421
+ deleteMany?: Prisma.AlertScalarWhereInput | Prisma.AlertScalarWhereInput[];
422
+ };
423
+ export type AlertUncheckedUpdateManyWithoutFleetNestedInput = {
424
+ create?: Prisma.XOR<Prisma.AlertCreateWithoutFleetInput, Prisma.AlertUncheckedCreateWithoutFleetInput> | Prisma.AlertCreateWithoutFleetInput[] | Prisma.AlertUncheckedCreateWithoutFleetInput[];
425
+ connectOrCreate?: Prisma.AlertCreateOrConnectWithoutFleetInput | Prisma.AlertCreateOrConnectWithoutFleetInput[];
426
+ upsert?: Prisma.AlertUpsertWithWhereUniqueWithoutFleetInput | Prisma.AlertUpsertWithWhereUniqueWithoutFleetInput[];
427
+ createMany?: Prisma.AlertCreateManyFleetInputEnvelope;
428
+ set?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
429
+ disconnect?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
430
+ delete?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
431
+ connect?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
432
+ update?: Prisma.AlertUpdateWithWhereUniqueWithoutFleetInput | Prisma.AlertUpdateWithWhereUniqueWithoutFleetInput[];
433
+ updateMany?: Prisma.AlertUpdateManyWithWhereWithoutFleetInput | Prisma.AlertUpdateManyWithWhereWithoutFleetInput[];
434
+ deleteMany?: Prisma.AlertScalarWhereInput | Prisma.AlertScalarWhereInput[];
435
+ };
436
+ export type AlertCreateNestedManyWithoutShipInput = {
437
+ create?: Prisma.XOR<Prisma.AlertCreateWithoutShipInput, Prisma.AlertUncheckedCreateWithoutShipInput> | Prisma.AlertCreateWithoutShipInput[] | Prisma.AlertUncheckedCreateWithoutShipInput[];
438
+ connectOrCreate?: Prisma.AlertCreateOrConnectWithoutShipInput | Prisma.AlertCreateOrConnectWithoutShipInput[];
439
+ createMany?: Prisma.AlertCreateManyShipInputEnvelope;
440
+ connect?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
441
+ };
442
+ export type AlertUncheckedCreateNestedManyWithoutShipInput = {
443
+ create?: Prisma.XOR<Prisma.AlertCreateWithoutShipInput, Prisma.AlertUncheckedCreateWithoutShipInput> | Prisma.AlertCreateWithoutShipInput[] | Prisma.AlertUncheckedCreateWithoutShipInput[];
444
+ connectOrCreate?: Prisma.AlertCreateOrConnectWithoutShipInput | Prisma.AlertCreateOrConnectWithoutShipInput[];
445
+ createMany?: Prisma.AlertCreateManyShipInputEnvelope;
446
+ connect?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
447
+ };
448
+ export type AlertUpdateManyWithoutShipNestedInput = {
449
+ create?: Prisma.XOR<Prisma.AlertCreateWithoutShipInput, Prisma.AlertUncheckedCreateWithoutShipInput> | Prisma.AlertCreateWithoutShipInput[] | Prisma.AlertUncheckedCreateWithoutShipInput[];
450
+ connectOrCreate?: Prisma.AlertCreateOrConnectWithoutShipInput | Prisma.AlertCreateOrConnectWithoutShipInput[];
451
+ upsert?: Prisma.AlertUpsertWithWhereUniqueWithoutShipInput | Prisma.AlertUpsertWithWhereUniqueWithoutShipInput[];
452
+ createMany?: Prisma.AlertCreateManyShipInputEnvelope;
453
+ set?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
454
+ disconnect?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
455
+ delete?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
456
+ connect?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
457
+ update?: Prisma.AlertUpdateWithWhereUniqueWithoutShipInput | Prisma.AlertUpdateWithWhereUniqueWithoutShipInput[];
458
+ updateMany?: Prisma.AlertUpdateManyWithWhereWithoutShipInput | Prisma.AlertUpdateManyWithWhereWithoutShipInput[];
459
+ deleteMany?: Prisma.AlertScalarWhereInput | Prisma.AlertScalarWhereInput[];
460
+ };
461
+ export type AlertUncheckedUpdateManyWithoutShipNestedInput = {
462
+ create?: Prisma.XOR<Prisma.AlertCreateWithoutShipInput, Prisma.AlertUncheckedCreateWithoutShipInput> | Prisma.AlertCreateWithoutShipInput[] | Prisma.AlertUncheckedCreateWithoutShipInput[];
463
+ connectOrCreate?: Prisma.AlertCreateOrConnectWithoutShipInput | Prisma.AlertCreateOrConnectWithoutShipInput[];
464
+ upsert?: Prisma.AlertUpsertWithWhereUniqueWithoutShipInput | Prisma.AlertUpsertWithWhereUniqueWithoutShipInput[];
465
+ createMany?: Prisma.AlertCreateManyShipInputEnvelope;
466
+ set?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
467
+ disconnect?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
468
+ delete?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
469
+ connect?: Prisma.AlertWhereUniqueInput | Prisma.AlertWhereUniqueInput[];
470
+ update?: Prisma.AlertUpdateWithWhereUniqueWithoutShipInput | Prisma.AlertUpdateWithWhereUniqueWithoutShipInput[];
471
+ updateMany?: Prisma.AlertUpdateManyWithWhereWithoutShipInput | Prisma.AlertUpdateManyWithWhereWithoutShipInput[];
472
+ deleteMany?: Prisma.AlertScalarWhereInput | Prisma.AlertScalarWhereInput[];
473
+ };
474
+ export type AlertCreateWithoutFleetInput = {
475
+ id: string;
476
+ signal: string;
477
+ occurrenceKey: string;
478
+ facts: Prisma.JsonNullValueInput | runtime.InputJsonValue;
479
+ ownerShipId?: string | null;
480
+ since: Date | string;
481
+ raisedAt: Date | string;
482
+ clearedAt?: Date | string | null;
483
+ clearedWhy?: string | null;
484
+ ship: Prisma.ShipCreateNestedOneWithoutAlertsInput;
485
+ };
486
+ export type AlertUncheckedCreateWithoutFleetInput = {
487
+ id: string;
488
+ shipId: string;
489
+ signal: string;
490
+ occurrenceKey: string;
491
+ facts: Prisma.JsonNullValueInput | runtime.InputJsonValue;
492
+ ownerShipId?: string | null;
493
+ since: Date | string;
494
+ raisedAt: Date | string;
495
+ clearedAt?: Date | string | null;
496
+ clearedWhy?: string | null;
497
+ };
498
+ export type AlertCreateOrConnectWithoutFleetInput = {
499
+ where: Prisma.AlertWhereUniqueInput;
500
+ create: Prisma.XOR<Prisma.AlertCreateWithoutFleetInput, Prisma.AlertUncheckedCreateWithoutFleetInput>;
501
+ };
502
+ export type AlertCreateManyFleetInputEnvelope = {
503
+ data: Prisma.AlertCreateManyFleetInput | Prisma.AlertCreateManyFleetInput[];
504
+ skipDuplicates?: boolean;
505
+ };
506
+ export type AlertUpsertWithWhereUniqueWithoutFleetInput = {
507
+ where: Prisma.AlertWhereUniqueInput;
508
+ update: Prisma.XOR<Prisma.AlertUpdateWithoutFleetInput, Prisma.AlertUncheckedUpdateWithoutFleetInput>;
509
+ create: Prisma.XOR<Prisma.AlertCreateWithoutFleetInput, Prisma.AlertUncheckedCreateWithoutFleetInput>;
510
+ };
511
+ export type AlertUpdateWithWhereUniqueWithoutFleetInput = {
512
+ where: Prisma.AlertWhereUniqueInput;
513
+ data: Prisma.XOR<Prisma.AlertUpdateWithoutFleetInput, Prisma.AlertUncheckedUpdateWithoutFleetInput>;
514
+ };
515
+ export type AlertUpdateManyWithWhereWithoutFleetInput = {
516
+ where: Prisma.AlertScalarWhereInput;
517
+ data: Prisma.XOR<Prisma.AlertUpdateManyMutationInput, Prisma.AlertUncheckedUpdateManyWithoutFleetInput>;
518
+ };
519
+ export type AlertScalarWhereInput = {
520
+ AND?: Prisma.AlertScalarWhereInput | Prisma.AlertScalarWhereInput[];
521
+ OR?: Prisma.AlertScalarWhereInput[];
522
+ NOT?: Prisma.AlertScalarWhereInput | Prisma.AlertScalarWhereInput[];
523
+ id?: Prisma.StringFilter<"Alert"> | string;
524
+ fleetId?: Prisma.StringFilter<"Alert"> | string;
525
+ shipId?: Prisma.StringFilter<"Alert"> | string;
526
+ signal?: Prisma.StringFilter<"Alert"> | string;
527
+ occurrenceKey?: Prisma.StringFilter<"Alert"> | string;
528
+ facts?: Prisma.JsonFilter<"Alert">;
529
+ ownerShipId?: Prisma.StringNullableFilter<"Alert"> | string | null;
530
+ since?: Prisma.DateTimeFilter<"Alert"> | Date | string;
531
+ raisedAt?: Prisma.DateTimeFilter<"Alert"> | Date | string;
532
+ clearedAt?: Prisma.DateTimeNullableFilter<"Alert"> | Date | string | null;
533
+ clearedWhy?: Prisma.StringNullableFilter<"Alert"> | string | null;
534
+ };
535
+ export type AlertCreateWithoutShipInput = {
536
+ id: string;
537
+ signal: string;
538
+ occurrenceKey: string;
539
+ facts: Prisma.JsonNullValueInput | runtime.InputJsonValue;
540
+ ownerShipId?: string | null;
541
+ since: Date | string;
542
+ raisedAt: Date | string;
543
+ clearedAt?: Date | string | null;
544
+ clearedWhy?: string | null;
545
+ fleet: Prisma.FleetCreateNestedOneWithoutAlertsInput;
546
+ };
547
+ export type AlertUncheckedCreateWithoutShipInput = {
548
+ id: string;
549
+ signal: string;
550
+ occurrenceKey: string;
551
+ facts: Prisma.JsonNullValueInput | runtime.InputJsonValue;
552
+ ownerShipId?: string | null;
553
+ since: Date | string;
554
+ raisedAt: Date | string;
555
+ clearedAt?: Date | string | null;
556
+ clearedWhy?: string | null;
557
+ };
558
+ export type AlertCreateOrConnectWithoutShipInput = {
559
+ where: Prisma.AlertWhereUniqueInput;
560
+ create: Prisma.XOR<Prisma.AlertCreateWithoutShipInput, Prisma.AlertUncheckedCreateWithoutShipInput>;
561
+ };
562
+ export type AlertCreateManyShipInputEnvelope = {
563
+ data: Prisma.AlertCreateManyShipInput | Prisma.AlertCreateManyShipInput[];
564
+ skipDuplicates?: boolean;
565
+ };
566
+ export type AlertUpsertWithWhereUniqueWithoutShipInput = {
567
+ where: Prisma.AlertWhereUniqueInput;
568
+ update: Prisma.XOR<Prisma.AlertUpdateWithoutShipInput, Prisma.AlertUncheckedUpdateWithoutShipInput>;
569
+ create: Prisma.XOR<Prisma.AlertCreateWithoutShipInput, Prisma.AlertUncheckedCreateWithoutShipInput>;
570
+ };
571
+ export type AlertUpdateWithWhereUniqueWithoutShipInput = {
572
+ where: Prisma.AlertWhereUniqueInput;
573
+ data: Prisma.XOR<Prisma.AlertUpdateWithoutShipInput, Prisma.AlertUncheckedUpdateWithoutShipInput>;
574
+ };
575
+ export type AlertUpdateManyWithWhereWithoutShipInput = {
576
+ where: Prisma.AlertScalarWhereInput;
577
+ data: Prisma.XOR<Prisma.AlertUpdateManyMutationInput, Prisma.AlertUncheckedUpdateManyWithoutShipInput>;
578
+ };
579
+ export type AlertCreateManyFleetInput = {
580
+ id: string;
581
+ shipId: string;
582
+ signal: string;
583
+ occurrenceKey: string;
584
+ facts: Prisma.JsonNullValueInput | runtime.InputJsonValue;
585
+ ownerShipId?: string | null;
586
+ since: Date | string;
587
+ raisedAt: Date | string;
588
+ clearedAt?: Date | string | null;
589
+ clearedWhy?: string | null;
590
+ };
591
+ export type AlertUpdateWithoutFleetInput = {
592
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
593
+ signal?: Prisma.StringFieldUpdateOperationsInput | string;
594
+ occurrenceKey?: Prisma.StringFieldUpdateOperationsInput | string;
595
+ facts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
596
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
597
+ since?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
598
+ raisedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
599
+ clearedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
600
+ clearedWhy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
601
+ ship?: Prisma.ShipUpdateOneRequiredWithoutAlertsNestedInput;
602
+ };
603
+ export type AlertUncheckedUpdateWithoutFleetInput = {
604
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
605
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
606
+ signal?: Prisma.StringFieldUpdateOperationsInput | string;
607
+ occurrenceKey?: Prisma.StringFieldUpdateOperationsInput | string;
608
+ facts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
609
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
610
+ since?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
611
+ raisedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
612
+ clearedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
613
+ clearedWhy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
614
+ };
615
+ export type AlertUncheckedUpdateManyWithoutFleetInput = {
616
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
617
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
618
+ signal?: Prisma.StringFieldUpdateOperationsInput | string;
619
+ occurrenceKey?: Prisma.StringFieldUpdateOperationsInput | string;
620
+ facts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
621
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
622
+ since?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
623
+ raisedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
624
+ clearedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
625
+ clearedWhy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
626
+ };
627
+ export type AlertCreateManyShipInput = {
628
+ id: string;
629
+ signal: string;
630
+ occurrenceKey: string;
631
+ facts: Prisma.JsonNullValueInput | runtime.InputJsonValue;
632
+ ownerShipId?: string | null;
633
+ since: Date | string;
634
+ raisedAt: Date | string;
635
+ clearedAt?: Date | string | null;
636
+ clearedWhy?: string | null;
637
+ };
638
+ export type AlertUpdateWithoutShipInput = {
639
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
640
+ signal?: Prisma.StringFieldUpdateOperationsInput | string;
641
+ occurrenceKey?: Prisma.StringFieldUpdateOperationsInput | string;
642
+ facts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
643
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
644
+ since?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
645
+ raisedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
646
+ clearedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
647
+ clearedWhy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
648
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutAlertsNestedInput;
649
+ };
650
+ export type AlertUncheckedUpdateWithoutShipInput = {
651
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
652
+ signal?: Prisma.StringFieldUpdateOperationsInput | string;
653
+ occurrenceKey?: Prisma.StringFieldUpdateOperationsInput | string;
654
+ facts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
655
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
656
+ since?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
657
+ raisedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
658
+ clearedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
659
+ clearedWhy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
660
+ };
661
+ export type AlertUncheckedUpdateManyWithoutShipInput = {
662
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
663
+ signal?: Prisma.StringFieldUpdateOperationsInput | string;
664
+ occurrenceKey?: Prisma.StringFieldUpdateOperationsInput | string;
665
+ facts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
666
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
667
+ since?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
668
+ raisedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
669
+ clearedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
670
+ clearedWhy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
671
+ };
672
+ export type AlertSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
673
+ id?: boolean;
674
+ fleetId?: boolean;
675
+ shipId?: boolean;
676
+ signal?: boolean;
677
+ occurrenceKey?: boolean;
678
+ facts?: boolean;
679
+ ownerShipId?: boolean;
680
+ since?: boolean;
681
+ raisedAt?: boolean;
682
+ clearedAt?: boolean;
683
+ clearedWhy?: boolean;
684
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
685
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
686
+ }, ExtArgs["result"]["alert"]>;
687
+ export type AlertSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
688
+ id?: boolean;
689
+ fleetId?: boolean;
690
+ shipId?: boolean;
691
+ signal?: boolean;
692
+ occurrenceKey?: boolean;
693
+ facts?: boolean;
694
+ ownerShipId?: boolean;
695
+ since?: boolean;
696
+ raisedAt?: boolean;
697
+ clearedAt?: boolean;
698
+ clearedWhy?: boolean;
699
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
700
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
701
+ }, ExtArgs["result"]["alert"]>;
702
+ export type AlertSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
703
+ id?: boolean;
704
+ fleetId?: boolean;
705
+ shipId?: boolean;
706
+ signal?: boolean;
707
+ occurrenceKey?: boolean;
708
+ facts?: boolean;
709
+ ownerShipId?: boolean;
710
+ since?: boolean;
711
+ raisedAt?: boolean;
712
+ clearedAt?: boolean;
713
+ clearedWhy?: boolean;
714
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
715
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
716
+ }, ExtArgs["result"]["alert"]>;
717
+ export type AlertSelectScalar = {
718
+ id?: boolean;
719
+ fleetId?: boolean;
720
+ shipId?: boolean;
721
+ signal?: boolean;
722
+ occurrenceKey?: boolean;
723
+ facts?: boolean;
724
+ ownerShipId?: boolean;
725
+ since?: boolean;
726
+ raisedAt?: boolean;
727
+ clearedAt?: boolean;
728
+ clearedWhy?: boolean;
729
+ };
730
+ export type AlertOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "fleetId" | "shipId" | "signal" | "occurrenceKey" | "facts" | "ownerShipId" | "since" | "raisedAt" | "clearedAt" | "clearedWhy", ExtArgs["result"]["alert"]>;
731
+ export type AlertInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
732
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
733
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
734
+ };
735
+ export type AlertIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
736
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
737
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
738
+ };
739
+ export type AlertIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
740
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
741
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
742
+ };
743
+ export type $AlertPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
744
+ name: "Alert";
745
+ objects: {
746
+ fleet: Prisma.$FleetPayload<ExtArgs>;
747
+ ship: Prisma.$ShipPayload<ExtArgs>;
748
+ };
749
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
750
+ id: string;
751
+ fleetId: string;
752
+ shipId: string;
753
+ signal: string;
754
+ occurrenceKey: string;
755
+ facts: runtime.JsonValue;
756
+ ownerShipId: string | null;
757
+ since: Date;
758
+ raisedAt: Date;
759
+ clearedAt: Date | null;
760
+ clearedWhy: string | null;
761
+ }, ExtArgs["result"]["alert"]>;
762
+ composites: {};
763
+ };
764
+ export type AlertGetPayload<S extends boolean | null | undefined | AlertDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AlertPayload, S>;
765
+ export type AlertCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AlertFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
766
+ select?: AlertCountAggregateInputType | true;
767
+ };
768
+ export interface AlertDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
769
+ [K: symbol]: {
770
+ types: Prisma.TypeMap<ExtArgs>['model']['Alert'];
771
+ meta: {
772
+ name: 'Alert';
773
+ };
774
+ };
775
+ /**
776
+ * Find zero or one Alert that matches the filter.
777
+ * @param {AlertFindUniqueArgs} args - Arguments to find a Alert
778
+ * @example
779
+ * // Get one Alert
780
+ * const alert = await prisma.alert.findUnique({
781
+ * where: {
782
+ * // ... provide filter here
783
+ * }
784
+ * })
785
+ */
786
+ findUnique<T extends AlertFindUniqueArgs>(args: Prisma.SelectSubset<T, AlertFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AlertClient<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
787
+ /**
788
+ * Find one Alert that matches the filter or throw an error with `error.code='P2025'`
789
+ * if no matches were found.
790
+ * @param {AlertFindUniqueOrThrowArgs} args - Arguments to find a Alert
791
+ * @example
792
+ * // Get one Alert
793
+ * const alert = await prisma.alert.findUniqueOrThrow({
794
+ * where: {
795
+ * // ... provide filter here
796
+ * }
797
+ * })
798
+ */
799
+ findUniqueOrThrow<T extends AlertFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AlertFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AlertClient<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
800
+ /**
801
+ * Find the first Alert that matches the filter.
802
+ * Note, that providing `undefined` is treated as the value not being there.
803
+ * Read more here: https://pris.ly/d/null-undefined
804
+ * @param {AlertFindFirstArgs} args - Arguments to find a Alert
805
+ * @example
806
+ * // Get one Alert
807
+ * const alert = await prisma.alert.findFirst({
808
+ * where: {
809
+ * // ... provide filter here
810
+ * }
811
+ * })
812
+ */
813
+ findFirst<T extends AlertFindFirstArgs>(args?: Prisma.SelectSubset<T, AlertFindFirstArgs<ExtArgs>>): Prisma.Prisma__AlertClient<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
814
+ /**
815
+ * Find the first Alert that matches the filter or
816
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
817
+ * Note, that providing `undefined` is treated as the value not being there.
818
+ * Read more here: https://pris.ly/d/null-undefined
819
+ * @param {AlertFindFirstOrThrowArgs} args - Arguments to find a Alert
820
+ * @example
821
+ * // Get one Alert
822
+ * const alert = await prisma.alert.findFirstOrThrow({
823
+ * where: {
824
+ * // ... provide filter here
825
+ * }
826
+ * })
827
+ */
828
+ findFirstOrThrow<T extends AlertFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AlertFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AlertClient<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
829
+ /**
830
+ * Find zero or more Alerts that matches the filter.
831
+ * Note, that providing `undefined` is treated as the value not being there.
832
+ * Read more here: https://pris.ly/d/null-undefined
833
+ * @param {AlertFindManyArgs} args - Arguments to filter and select certain fields only.
834
+ * @example
835
+ * // Get all Alerts
836
+ * const alerts = await prisma.alert.findMany()
837
+ *
838
+ * // Get first 10 Alerts
839
+ * const alerts = await prisma.alert.findMany({ take: 10 })
840
+ *
841
+ * // Only select the `id`
842
+ * const alertWithIdOnly = await prisma.alert.findMany({ select: { id: true } })
843
+ *
844
+ */
845
+ findMany<T extends AlertFindManyArgs>(args?: Prisma.SelectSubset<T, AlertFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
846
+ /**
847
+ * Create a Alert.
848
+ * @param {AlertCreateArgs} args - Arguments to create a Alert.
849
+ * @example
850
+ * // Create one Alert
851
+ * const Alert = await prisma.alert.create({
852
+ * data: {
853
+ * // ... data to create a Alert
854
+ * }
855
+ * })
856
+ *
857
+ */
858
+ create<T extends AlertCreateArgs>(args: Prisma.SelectSubset<T, AlertCreateArgs<ExtArgs>>): Prisma.Prisma__AlertClient<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
859
+ /**
860
+ * Create many Alerts.
861
+ * @param {AlertCreateManyArgs} args - Arguments to create many Alerts.
862
+ * @example
863
+ * // Create many Alerts
864
+ * const alert = await prisma.alert.createMany({
865
+ * data: [
866
+ * // ... provide data here
867
+ * ]
868
+ * })
869
+ *
870
+ */
871
+ createMany<T extends AlertCreateManyArgs>(args?: Prisma.SelectSubset<T, AlertCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
872
+ /**
873
+ * Create many Alerts and returns the data saved in the database.
874
+ * @param {AlertCreateManyAndReturnArgs} args - Arguments to create many Alerts.
875
+ * @example
876
+ * // Create many Alerts
877
+ * const alert = await prisma.alert.createManyAndReturn({
878
+ * data: [
879
+ * // ... provide data here
880
+ * ]
881
+ * })
882
+ *
883
+ * // Create many Alerts and only return the `id`
884
+ * const alertWithIdOnly = await prisma.alert.createManyAndReturn({
885
+ * select: { id: true },
886
+ * data: [
887
+ * // ... provide data here
888
+ * ]
889
+ * })
890
+ * Note, that providing `undefined` is treated as the value not being there.
891
+ * Read more here: https://pris.ly/d/null-undefined
892
+ *
893
+ */
894
+ createManyAndReturn<T extends AlertCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AlertCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
895
+ /**
896
+ * Delete a Alert.
897
+ * @param {AlertDeleteArgs} args - Arguments to delete one Alert.
898
+ * @example
899
+ * // Delete one Alert
900
+ * const Alert = await prisma.alert.delete({
901
+ * where: {
902
+ * // ... filter to delete one Alert
903
+ * }
904
+ * })
905
+ *
906
+ */
907
+ delete<T extends AlertDeleteArgs>(args: Prisma.SelectSubset<T, AlertDeleteArgs<ExtArgs>>): Prisma.Prisma__AlertClient<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
908
+ /**
909
+ * Update one Alert.
910
+ * @param {AlertUpdateArgs} args - Arguments to update one Alert.
911
+ * @example
912
+ * // Update one Alert
913
+ * const alert = await prisma.alert.update({
914
+ * where: {
915
+ * // ... provide filter here
916
+ * },
917
+ * data: {
918
+ * // ... provide data here
919
+ * }
920
+ * })
921
+ *
922
+ */
923
+ update<T extends AlertUpdateArgs>(args: Prisma.SelectSubset<T, AlertUpdateArgs<ExtArgs>>): Prisma.Prisma__AlertClient<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
924
+ /**
925
+ * Delete zero or more Alerts.
926
+ * @param {AlertDeleteManyArgs} args - Arguments to filter Alerts to delete.
927
+ * @example
928
+ * // Delete a few Alerts
929
+ * const { count } = await prisma.alert.deleteMany({
930
+ * where: {
931
+ * // ... provide filter here
932
+ * }
933
+ * })
934
+ *
935
+ */
936
+ deleteMany<T extends AlertDeleteManyArgs>(args?: Prisma.SelectSubset<T, AlertDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
937
+ /**
938
+ * Update zero or more Alerts.
939
+ * Note, that providing `undefined` is treated as the value not being there.
940
+ * Read more here: https://pris.ly/d/null-undefined
941
+ * @param {AlertUpdateManyArgs} args - Arguments to update one or more rows.
942
+ * @example
943
+ * // Update many Alerts
944
+ * const alert = await prisma.alert.updateMany({
945
+ * where: {
946
+ * // ... provide filter here
947
+ * },
948
+ * data: {
949
+ * // ... provide data here
950
+ * }
951
+ * })
952
+ *
953
+ */
954
+ updateMany<T extends AlertUpdateManyArgs>(args: Prisma.SelectSubset<T, AlertUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
955
+ /**
956
+ * Update zero or more Alerts and returns the data updated in the database.
957
+ * @param {AlertUpdateManyAndReturnArgs} args - Arguments to update many Alerts.
958
+ * @example
959
+ * // Update many Alerts
960
+ * const alert = await prisma.alert.updateManyAndReturn({
961
+ * where: {
962
+ * // ... provide filter here
963
+ * },
964
+ * data: [
965
+ * // ... provide data here
966
+ * ]
967
+ * })
968
+ *
969
+ * // Update zero or more Alerts and only return the `id`
970
+ * const alertWithIdOnly = await prisma.alert.updateManyAndReturn({
971
+ * select: { id: true },
972
+ * where: {
973
+ * // ... provide filter here
974
+ * },
975
+ * data: [
976
+ * // ... provide data here
977
+ * ]
978
+ * })
979
+ * Note, that providing `undefined` is treated as the value not being there.
980
+ * Read more here: https://pris.ly/d/null-undefined
981
+ *
982
+ */
983
+ updateManyAndReturn<T extends AlertUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AlertUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
984
+ /**
985
+ * Create or update one Alert.
986
+ * @param {AlertUpsertArgs} args - Arguments to update or create a Alert.
987
+ * @example
988
+ * // Update or create a Alert
989
+ * const alert = await prisma.alert.upsert({
990
+ * create: {
991
+ * // ... data to create a Alert
992
+ * },
993
+ * update: {
994
+ * // ... in case it already exists, update
995
+ * },
996
+ * where: {
997
+ * // ... the filter for the Alert we want to update
998
+ * }
999
+ * })
1000
+ */
1001
+ upsert<T extends AlertUpsertArgs>(args: Prisma.SelectSubset<T, AlertUpsertArgs<ExtArgs>>): Prisma.Prisma__AlertClient<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1002
+ /**
1003
+ * Count the number of Alerts.
1004
+ * Note, that providing `undefined` is treated as the value not being there.
1005
+ * Read more here: https://pris.ly/d/null-undefined
1006
+ * @param {AlertCountArgs} args - Arguments to filter Alerts to count.
1007
+ * @example
1008
+ * // Count the number of Alerts
1009
+ * const count = await prisma.alert.count({
1010
+ * where: {
1011
+ * // ... the filter for the Alerts we want to count
1012
+ * }
1013
+ * })
1014
+ **/
1015
+ count<T extends AlertCountArgs>(args?: Prisma.Subset<T, AlertCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AlertCountAggregateOutputType> : number>;
1016
+ /**
1017
+ * Allows you to perform aggregations operations on a Alert.
1018
+ * Note, that providing `undefined` is treated as the value not being there.
1019
+ * Read more here: https://pris.ly/d/null-undefined
1020
+ * @param {AlertAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1021
+ * @example
1022
+ * // Ordered by age ascending
1023
+ * // Where email contains prisma.io
1024
+ * // Limited to the 10 users
1025
+ * const aggregations = await prisma.user.aggregate({
1026
+ * _avg: {
1027
+ * age: true,
1028
+ * },
1029
+ * where: {
1030
+ * email: {
1031
+ * contains: "prisma.io",
1032
+ * },
1033
+ * },
1034
+ * orderBy: {
1035
+ * age: "asc",
1036
+ * },
1037
+ * take: 10,
1038
+ * })
1039
+ **/
1040
+ aggregate<T extends AlertAggregateArgs>(args: Prisma.Subset<T, AlertAggregateArgs>): Prisma.PrismaPromise<GetAlertAggregateType<T>>;
1041
+ /**
1042
+ * Group by Alert.
1043
+ * Note, that providing `undefined` is treated as the value not being there.
1044
+ * Read more here: https://pris.ly/d/null-undefined
1045
+ * @param {AlertGroupByArgs} args - Group by arguments.
1046
+ * @example
1047
+ * // Group by city, order by createdAt, get count
1048
+ * const result = await prisma.user.groupBy({
1049
+ * by: ['city', 'createdAt'],
1050
+ * orderBy: {
1051
+ * createdAt: true
1052
+ * },
1053
+ * _count: {
1054
+ * _all: true
1055
+ * },
1056
+ * })
1057
+ *
1058
+ **/
1059
+ groupBy<T extends AlertGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1060
+ orderBy: AlertGroupByArgs['orderBy'];
1061
+ } : {
1062
+ orderBy?: AlertGroupByArgs['orderBy'];
1063
+ }, 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 ? {
1064
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1065
+ Error,
1066
+ 'Field ',
1067
+ P,
1068
+ ` in "having" needs to be provided in "by"`
1069
+ ];
1070
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1071
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1072
+ }[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 ? {} : {
1073
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1074
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1075
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1076
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, AlertGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAlertGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1077
+ /**
1078
+ * Fields of the Alert model
1079
+ */
1080
+ readonly fields: AlertFieldRefs;
1081
+ }
1082
+ /**
1083
+ * The delegate class that acts as a "Promise-like" for Alert.
1084
+ * Why is this prefixed with `Prisma__`?
1085
+ * Because we want to prevent naming conflicts as mentioned in
1086
+ * https://github.com/prisma/prisma-client-js/issues/707
1087
+ */
1088
+ export interface Prisma__AlertClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1089
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1090
+ 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>;
1091
+ ship<T extends Prisma.ShipDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ShipDefaultArgs<ExtArgs>>): Prisma.Prisma__ShipClient<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1092
+ /**
1093
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1094
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1095
+ * @param onrejected The callback to execute when the Promise is rejected.
1096
+ * @returns A Promise for the completion of which ever callback is executed.
1097
+ */
1098
+ 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>;
1099
+ /**
1100
+ * Attaches a callback for only the rejection of the Promise.
1101
+ * @param onrejected The callback to execute when the Promise is rejected.
1102
+ * @returns A Promise for the completion of the callback.
1103
+ */
1104
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1105
+ /**
1106
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1107
+ * resolved value cannot be modified from the callback.
1108
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1109
+ * @returns A Promise for the completion of the callback.
1110
+ */
1111
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1112
+ }
1113
+ /**
1114
+ * Fields of the Alert model
1115
+ */
1116
+ export interface AlertFieldRefs {
1117
+ readonly id: Prisma.FieldRef<"Alert", 'String'>;
1118
+ readonly fleetId: Prisma.FieldRef<"Alert", 'String'>;
1119
+ readonly shipId: Prisma.FieldRef<"Alert", 'String'>;
1120
+ readonly signal: Prisma.FieldRef<"Alert", 'String'>;
1121
+ readonly occurrenceKey: Prisma.FieldRef<"Alert", 'String'>;
1122
+ readonly facts: Prisma.FieldRef<"Alert", 'Json'>;
1123
+ readonly ownerShipId: Prisma.FieldRef<"Alert", 'String'>;
1124
+ readonly since: Prisma.FieldRef<"Alert", 'DateTime'>;
1125
+ readonly raisedAt: Prisma.FieldRef<"Alert", 'DateTime'>;
1126
+ readonly clearedAt: Prisma.FieldRef<"Alert", 'DateTime'>;
1127
+ readonly clearedWhy: Prisma.FieldRef<"Alert", 'String'>;
1128
+ }
1129
+ /**
1130
+ * Alert findUnique
1131
+ */
1132
+ export type AlertFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1133
+ /**
1134
+ * Select specific fields to fetch from the Alert
1135
+ */
1136
+ select?: Prisma.AlertSelect<ExtArgs> | null;
1137
+ /**
1138
+ * Omit specific fields from the Alert
1139
+ */
1140
+ omit?: Prisma.AlertOmit<ExtArgs> | null;
1141
+ /**
1142
+ * Choose, which related nodes to fetch as well
1143
+ */
1144
+ include?: Prisma.AlertInclude<ExtArgs> | null;
1145
+ /**
1146
+ * Filter, which Alert to fetch.
1147
+ */
1148
+ where: Prisma.AlertWhereUniqueInput;
1149
+ };
1150
+ /**
1151
+ * Alert findUniqueOrThrow
1152
+ */
1153
+ export type AlertFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1154
+ /**
1155
+ * Select specific fields to fetch from the Alert
1156
+ */
1157
+ select?: Prisma.AlertSelect<ExtArgs> | null;
1158
+ /**
1159
+ * Omit specific fields from the Alert
1160
+ */
1161
+ omit?: Prisma.AlertOmit<ExtArgs> | null;
1162
+ /**
1163
+ * Choose, which related nodes to fetch as well
1164
+ */
1165
+ include?: Prisma.AlertInclude<ExtArgs> | null;
1166
+ /**
1167
+ * Filter, which Alert to fetch.
1168
+ */
1169
+ where: Prisma.AlertWhereUniqueInput;
1170
+ };
1171
+ /**
1172
+ * Alert findFirst
1173
+ */
1174
+ export type AlertFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1175
+ /**
1176
+ * Select specific fields to fetch from the Alert
1177
+ */
1178
+ select?: Prisma.AlertSelect<ExtArgs> | null;
1179
+ /**
1180
+ * Omit specific fields from the Alert
1181
+ */
1182
+ omit?: Prisma.AlertOmit<ExtArgs> | null;
1183
+ /**
1184
+ * Choose, which related nodes to fetch as well
1185
+ */
1186
+ include?: Prisma.AlertInclude<ExtArgs> | null;
1187
+ /**
1188
+ * Filter, which Alert to fetch.
1189
+ */
1190
+ where?: Prisma.AlertWhereInput;
1191
+ /**
1192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1193
+ *
1194
+ * Determine the order of Alerts to fetch.
1195
+ */
1196
+ orderBy?: Prisma.AlertOrderByWithRelationInput | Prisma.AlertOrderByWithRelationInput[];
1197
+ /**
1198
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1199
+ *
1200
+ * Sets the position for searching for Alerts.
1201
+ */
1202
+ cursor?: Prisma.AlertWhereUniqueInput;
1203
+ /**
1204
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1205
+ *
1206
+ * Take `±n` Alerts from the position of the cursor.
1207
+ */
1208
+ take?: number;
1209
+ /**
1210
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1211
+ *
1212
+ * Skip the first `n` Alerts.
1213
+ */
1214
+ skip?: number;
1215
+ /**
1216
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1217
+ *
1218
+ * Filter by unique combinations of Alerts.
1219
+ */
1220
+ distinct?: Prisma.AlertScalarFieldEnum | Prisma.AlertScalarFieldEnum[];
1221
+ };
1222
+ /**
1223
+ * Alert findFirstOrThrow
1224
+ */
1225
+ export type AlertFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1226
+ /**
1227
+ * Select specific fields to fetch from the Alert
1228
+ */
1229
+ select?: Prisma.AlertSelect<ExtArgs> | null;
1230
+ /**
1231
+ * Omit specific fields from the Alert
1232
+ */
1233
+ omit?: Prisma.AlertOmit<ExtArgs> | null;
1234
+ /**
1235
+ * Choose, which related nodes to fetch as well
1236
+ */
1237
+ include?: Prisma.AlertInclude<ExtArgs> | null;
1238
+ /**
1239
+ * Filter, which Alert to fetch.
1240
+ */
1241
+ where?: Prisma.AlertWhereInput;
1242
+ /**
1243
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1244
+ *
1245
+ * Determine the order of Alerts to fetch.
1246
+ */
1247
+ orderBy?: Prisma.AlertOrderByWithRelationInput | Prisma.AlertOrderByWithRelationInput[];
1248
+ /**
1249
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1250
+ *
1251
+ * Sets the position for searching for Alerts.
1252
+ */
1253
+ cursor?: Prisma.AlertWhereUniqueInput;
1254
+ /**
1255
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1256
+ *
1257
+ * Take `±n` Alerts from the position of the cursor.
1258
+ */
1259
+ take?: number;
1260
+ /**
1261
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1262
+ *
1263
+ * Skip the first `n` Alerts.
1264
+ */
1265
+ skip?: number;
1266
+ /**
1267
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1268
+ *
1269
+ * Filter by unique combinations of Alerts.
1270
+ */
1271
+ distinct?: Prisma.AlertScalarFieldEnum | Prisma.AlertScalarFieldEnum[];
1272
+ };
1273
+ /**
1274
+ * Alert findMany
1275
+ */
1276
+ export type AlertFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1277
+ /**
1278
+ * Select specific fields to fetch from the Alert
1279
+ */
1280
+ select?: Prisma.AlertSelect<ExtArgs> | null;
1281
+ /**
1282
+ * Omit specific fields from the Alert
1283
+ */
1284
+ omit?: Prisma.AlertOmit<ExtArgs> | null;
1285
+ /**
1286
+ * Choose, which related nodes to fetch as well
1287
+ */
1288
+ include?: Prisma.AlertInclude<ExtArgs> | null;
1289
+ /**
1290
+ * Filter, which Alerts to fetch.
1291
+ */
1292
+ where?: Prisma.AlertWhereInput;
1293
+ /**
1294
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1295
+ *
1296
+ * Determine the order of Alerts to fetch.
1297
+ */
1298
+ orderBy?: Prisma.AlertOrderByWithRelationInput | Prisma.AlertOrderByWithRelationInput[];
1299
+ /**
1300
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1301
+ *
1302
+ * Sets the position for listing Alerts.
1303
+ */
1304
+ cursor?: Prisma.AlertWhereUniqueInput;
1305
+ /**
1306
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1307
+ *
1308
+ * Take `±n` Alerts from the position of the cursor.
1309
+ */
1310
+ take?: number;
1311
+ /**
1312
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1313
+ *
1314
+ * Skip the first `n` Alerts.
1315
+ */
1316
+ skip?: number;
1317
+ /**
1318
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1319
+ *
1320
+ * Filter by unique combinations of Alerts.
1321
+ */
1322
+ distinct?: Prisma.AlertScalarFieldEnum | Prisma.AlertScalarFieldEnum[];
1323
+ };
1324
+ /**
1325
+ * Alert create
1326
+ */
1327
+ export type AlertCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1328
+ /**
1329
+ * Select specific fields to fetch from the Alert
1330
+ */
1331
+ select?: Prisma.AlertSelect<ExtArgs> | null;
1332
+ /**
1333
+ * Omit specific fields from the Alert
1334
+ */
1335
+ omit?: Prisma.AlertOmit<ExtArgs> | null;
1336
+ /**
1337
+ * Choose, which related nodes to fetch as well
1338
+ */
1339
+ include?: Prisma.AlertInclude<ExtArgs> | null;
1340
+ /**
1341
+ * The data needed to create a Alert.
1342
+ */
1343
+ data: Prisma.XOR<Prisma.AlertCreateInput, Prisma.AlertUncheckedCreateInput>;
1344
+ };
1345
+ /**
1346
+ * Alert createMany
1347
+ */
1348
+ export type AlertCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1349
+ /**
1350
+ * The data used to create many Alerts.
1351
+ */
1352
+ data: Prisma.AlertCreateManyInput | Prisma.AlertCreateManyInput[];
1353
+ skipDuplicates?: boolean;
1354
+ };
1355
+ /**
1356
+ * Alert createManyAndReturn
1357
+ */
1358
+ export type AlertCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1359
+ /**
1360
+ * Select specific fields to fetch from the Alert
1361
+ */
1362
+ select?: Prisma.AlertSelectCreateManyAndReturn<ExtArgs> | null;
1363
+ /**
1364
+ * Omit specific fields from the Alert
1365
+ */
1366
+ omit?: Prisma.AlertOmit<ExtArgs> | null;
1367
+ /**
1368
+ * The data used to create many Alerts.
1369
+ */
1370
+ data: Prisma.AlertCreateManyInput | Prisma.AlertCreateManyInput[];
1371
+ skipDuplicates?: boolean;
1372
+ /**
1373
+ * Choose, which related nodes to fetch as well
1374
+ */
1375
+ include?: Prisma.AlertIncludeCreateManyAndReturn<ExtArgs> | null;
1376
+ };
1377
+ /**
1378
+ * Alert update
1379
+ */
1380
+ export type AlertUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1381
+ /**
1382
+ * Select specific fields to fetch from the Alert
1383
+ */
1384
+ select?: Prisma.AlertSelect<ExtArgs> | null;
1385
+ /**
1386
+ * Omit specific fields from the Alert
1387
+ */
1388
+ omit?: Prisma.AlertOmit<ExtArgs> | null;
1389
+ /**
1390
+ * Choose, which related nodes to fetch as well
1391
+ */
1392
+ include?: Prisma.AlertInclude<ExtArgs> | null;
1393
+ /**
1394
+ * The data needed to update a Alert.
1395
+ */
1396
+ data: Prisma.XOR<Prisma.AlertUpdateInput, Prisma.AlertUncheckedUpdateInput>;
1397
+ /**
1398
+ * Choose, which Alert to update.
1399
+ */
1400
+ where: Prisma.AlertWhereUniqueInput;
1401
+ };
1402
+ /**
1403
+ * Alert updateMany
1404
+ */
1405
+ export type AlertUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1406
+ /**
1407
+ * The data used to update Alerts.
1408
+ */
1409
+ data: Prisma.XOR<Prisma.AlertUpdateManyMutationInput, Prisma.AlertUncheckedUpdateManyInput>;
1410
+ /**
1411
+ * Filter which Alerts to update
1412
+ */
1413
+ where?: Prisma.AlertWhereInput;
1414
+ /**
1415
+ * Limit how many Alerts to update.
1416
+ */
1417
+ limit?: number;
1418
+ };
1419
+ /**
1420
+ * Alert updateManyAndReturn
1421
+ */
1422
+ export type AlertUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1423
+ /**
1424
+ * Select specific fields to fetch from the Alert
1425
+ */
1426
+ select?: Prisma.AlertSelectUpdateManyAndReturn<ExtArgs> | null;
1427
+ /**
1428
+ * Omit specific fields from the Alert
1429
+ */
1430
+ omit?: Prisma.AlertOmit<ExtArgs> | null;
1431
+ /**
1432
+ * The data used to update Alerts.
1433
+ */
1434
+ data: Prisma.XOR<Prisma.AlertUpdateManyMutationInput, Prisma.AlertUncheckedUpdateManyInput>;
1435
+ /**
1436
+ * Filter which Alerts to update
1437
+ */
1438
+ where?: Prisma.AlertWhereInput;
1439
+ /**
1440
+ * Limit how many Alerts to update.
1441
+ */
1442
+ limit?: number;
1443
+ /**
1444
+ * Choose, which related nodes to fetch as well
1445
+ */
1446
+ include?: Prisma.AlertIncludeUpdateManyAndReturn<ExtArgs> | null;
1447
+ };
1448
+ /**
1449
+ * Alert upsert
1450
+ */
1451
+ export type AlertUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1452
+ /**
1453
+ * Select specific fields to fetch from the Alert
1454
+ */
1455
+ select?: Prisma.AlertSelect<ExtArgs> | null;
1456
+ /**
1457
+ * Omit specific fields from the Alert
1458
+ */
1459
+ omit?: Prisma.AlertOmit<ExtArgs> | null;
1460
+ /**
1461
+ * Choose, which related nodes to fetch as well
1462
+ */
1463
+ include?: Prisma.AlertInclude<ExtArgs> | null;
1464
+ /**
1465
+ * The filter to search for the Alert to update in case it exists.
1466
+ */
1467
+ where: Prisma.AlertWhereUniqueInput;
1468
+ /**
1469
+ * In case the Alert found by the `where` argument doesn't exist, create a new Alert with this data.
1470
+ */
1471
+ create: Prisma.XOR<Prisma.AlertCreateInput, Prisma.AlertUncheckedCreateInput>;
1472
+ /**
1473
+ * In case the Alert was found with the provided `where` argument, update it with this data.
1474
+ */
1475
+ update: Prisma.XOR<Prisma.AlertUpdateInput, Prisma.AlertUncheckedUpdateInput>;
1476
+ };
1477
+ /**
1478
+ * Alert delete
1479
+ */
1480
+ export type AlertDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1481
+ /**
1482
+ * Select specific fields to fetch from the Alert
1483
+ */
1484
+ select?: Prisma.AlertSelect<ExtArgs> | null;
1485
+ /**
1486
+ * Omit specific fields from the Alert
1487
+ */
1488
+ omit?: Prisma.AlertOmit<ExtArgs> | null;
1489
+ /**
1490
+ * Choose, which related nodes to fetch as well
1491
+ */
1492
+ include?: Prisma.AlertInclude<ExtArgs> | null;
1493
+ /**
1494
+ * Filter which Alert to delete.
1495
+ */
1496
+ where: Prisma.AlertWhereUniqueInput;
1497
+ };
1498
+ /**
1499
+ * Alert deleteMany
1500
+ */
1501
+ export type AlertDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1502
+ /**
1503
+ * Filter which Alerts to delete
1504
+ */
1505
+ where?: Prisma.AlertWhereInput;
1506
+ /**
1507
+ * Limit how many Alerts to delete.
1508
+ */
1509
+ limit?: number;
1510
+ };
1511
+ /**
1512
+ * Alert without action
1513
+ */
1514
+ export type AlertDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1515
+ /**
1516
+ * Select specific fields to fetch from the Alert
1517
+ */
1518
+ select?: Prisma.AlertSelect<ExtArgs> | null;
1519
+ /**
1520
+ * Omit specific fields from the Alert
1521
+ */
1522
+ omit?: Prisma.AlertOmit<ExtArgs> | null;
1523
+ /**
1524
+ * Choose, which related nodes to fetch as well
1525
+ */
1526
+ include?: Prisma.AlertInclude<ExtArgs> | null;
1527
+ };