@aeolus-fleet/core 0.38.4 → 0.38.6

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 (41) hide show
  1. package/dist/adapters/prisma/generated/browser.d.ts +8 -0
  2. package/dist/adapters/prisma/generated/client.d.ts +8 -0
  3. package/dist/adapters/prisma/generated/internal/class.d.ts +11 -0
  4. package/dist/adapters/prisma/generated/internal/class.js +4 -4
  5. package/dist/adapters/prisma/generated/internal/class.js.map +1 -1
  6. package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +84 -1
  7. package/dist/adapters/prisma/generated/internal/prismaNamespace.js +7 -0
  8. package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -1
  9. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +8 -0
  10. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +7 -0
  11. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -1
  12. package/dist/adapters/prisma/generated/models/Fleet.d.ts +495 -0
  13. package/dist/adapters/prisma/generated/models/PrunedExchange.d.ts +1339 -0
  14. package/dist/adapters/prisma/generated/models/PrunedExchange.js +2 -0
  15. package/dist/adapters/prisma/generated/models/PrunedExchange.js.map +1 -0
  16. package/dist/adapters/prisma/generated/models/Ship.d.ts +854 -0
  17. package/dist/adapters/prisma/generated/models.d.ts +1 -0
  18. package/dist/adapters/prisma/history-pruner.js +14 -1
  19. package/dist/adapters/prisma/history-pruner.js.map +1 -1
  20. package/dist/adapters/prisma/pruned-exchanges.d.ts +16 -0
  21. package/dist/adapters/prisma/pruned-exchanges.js +18 -0
  22. package/dist/adapters/prisma/pruned-exchanges.js.map +1 -0
  23. package/dist/adapters/prisma/registry.js +1 -0
  24. package/dist/adapters/prisma/registry.js.map +1 -1
  25. package/dist/adapters/prisma/unit-of-work.d.ts +2 -1
  26. package/dist/adapters/prisma/unit-of-work.js +2 -0
  27. package/dist/adapters/prisma/unit-of-work.js.map +1 -1
  28. package/dist/adapters/trpc/router.d.ts +1 -0
  29. package/dist/adapters/trpc/ship-protocol.js +2 -2
  30. package/dist/adapters/trpc/ship-protocol.js.map +1 -1
  31. package/dist/adapters/trpc/ship.d.ts +1 -0
  32. package/dist/adapters/trpc/ship.js +7 -1
  33. package/dist/adapters/trpc/ship.js.map +1 -1
  34. package/dist/domain/messaging/ports.d.ts +12 -0
  35. package/dist/domain/messaging/read-exchange.d.ts +12 -3
  36. package/dist/domain/messaging/read-exchange.js +6 -2
  37. package/dist/domain/messaging/read-exchange.js.map +1 -1
  38. package/dist/domain/shared/history-pruning.d.ts +3 -1
  39. package/package.json +2 -2
  40. package/src/adapters/prisma/migrations/20261110100000_pruned_exchanges/migration.sql +18 -0
  41. package/src/adapters/prisma/schema.prisma +23 -0
@@ -0,0 +1,1339 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model PrunedExchange
5
+ * How far pruning went in one exchange (docs/design/exchange-history): the send time of the newest
6
+ * message of the two ships' exchange that pruning removed, only ever moved forward. One row per pair,
7
+ * the lower ship id first; a ship's exchange with itself names it twice. Written only by the pruning
8
+ * batch, in its transaction. No foreign key to a message: what it points at is gone.
9
+ */
10
+ export type PrunedExchangeModel = runtime.Types.Result.DefaultSelection<Prisma.$PrunedExchangePayload>;
11
+ export type AggregatePrunedExchange = {
12
+ _count: PrunedExchangeCountAggregateOutputType | null;
13
+ _min: PrunedExchangeMinAggregateOutputType | null;
14
+ _max: PrunedExchangeMaxAggregateOutputType | null;
15
+ };
16
+ export type PrunedExchangeMinAggregateOutputType = {
17
+ fleetId: string | null;
18
+ shipId: string | null;
19
+ otherShipId: string | null;
20
+ prunedUpTo: Date | null;
21
+ };
22
+ export type PrunedExchangeMaxAggregateOutputType = {
23
+ fleetId: string | null;
24
+ shipId: string | null;
25
+ otherShipId: string | null;
26
+ prunedUpTo: Date | null;
27
+ };
28
+ export type PrunedExchangeCountAggregateOutputType = {
29
+ fleetId: number;
30
+ shipId: number;
31
+ otherShipId: number;
32
+ prunedUpTo: number;
33
+ _all: number;
34
+ };
35
+ export type PrunedExchangeMinAggregateInputType = {
36
+ fleetId?: true;
37
+ shipId?: true;
38
+ otherShipId?: true;
39
+ prunedUpTo?: true;
40
+ };
41
+ export type PrunedExchangeMaxAggregateInputType = {
42
+ fleetId?: true;
43
+ shipId?: true;
44
+ otherShipId?: true;
45
+ prunedUpTo?: true;
46
+ };
47
+ export type PrunedExchangeCountAggregateInputType = {
48
+ fleetId?: true;
49
+ shipId?: true;
50
+ otherShipId?: true;
51
+ prunedUpTo?: true;
52
+ _all?: true;
53
+ };
54
+ export type PrunedExchangeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
55
+ /**
56
+ * Filter which PrunedExchange to aggregate.
57
+ */
58
+ where?: Prisma.PrunedExchangeWhereInput;
59
+ /**
60
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
61
+ *
62
+ * Determine the order of PrunedExchanges to fetch.
63
+ */
64
+ orderBy?: Prisma.PrunedExchangeOrderByWithRelationInput | Prisma.PrunedExchangeOrderByWithRelationInput[];
65
+ /**
66
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
67
+ *
68
+ * Sets the start position
69
+ */
70
+ cursor?: Prisma.PrunedExchangeWhereUniqueInput;
71
+ /**
72
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
73
+ *
74
+ * Take `±n` PrunedExchanges from the position of the cursor.
75
+ */
76
+ take?: number;
77
+ /**
78
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
79
+ *
80
+ * Skip the first `n` PrunedExchanges.
81
+ */
82
+ skip?: number;
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
85
+ *
86
+ * Count returned PrunedExchanges
87
+ **/
88
+ _count?: true | PrunedExchangeCountAggregateInputType;
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
91
+ *
92
+ * Select which fields to find the minimum value
93
+ **/
94
+ _min?: PrunedExchangeMinAggregateInputType;
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
97
+ *
98
+ * Select which fields to find the maximum value
99
+ **/
100
+ _max?: PrunedExchangeMaxAggregateInputType;
101
+ };
102
+ export type GetPrunedExchangeAggregateType<T extends PrunedExchangeAggregateArgs> = {
103
+ [P in keyof T & keyof AggregatePrunedExchange]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePrunedExchange[P]> : Prisma.GetScalarType<T[P], AggregatePrunedExchange[P]>;
104
+ };
105
+ export type PrunedExchangeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
106
+ where?: Prisma.PrunedExchangeWhereInput;
107
+ orderBy?: Prisma.PrunedExchangeOrderByWithAggregationInput | Prisma.PrunedExchangeOrderByWithAggregationInput[];
108
+ by: Prisma.PrunedExchangeScalarFieldEnum[] | Prisma.PrunedExchangeScalarFieldEnum;
109
+ having?: Prisma.PrunedExchangeScalarWhereWithAggregatesInput;
110
+ take?: number;
111
+ skip?: number;
112
+ _count?: PrunedExchangeCountAggregateInputType | true;
113
+ _min?: PrunedExchangeMinAggregateInputType;
114
+ _max?: PrunedExchangeMaxAggregateInputType;
115
+ };
116
+ export type PrunedExchangeGroupByOutputType = {
117
+ fleetId: string;
118
+ shipId: string;
119
+ otherShipId: string;
120
+ prunedUpTo: Date;
121
+ _count: PrunedExchangeCountAggregateOutputType | null;
122
+ _min: PrunedExchangeMinAggregateOutputType | null;
123
+ _max: PrunedExchangeMaxAggregateOutputType | null;
124
+ };
125
+ export type GetPrunedExchangeGroupByPayload<T extends PrunedExchangeGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PrunedExchangeGroupByOutputType, T['by']> & {
126
+ [P in ((keyof T) & (keyof PrunedExchangeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PrunedExchangeGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PrunedExchangeGroupByOutputType[P]>;
127
+ }>>;
128
+ export type PrunedExchangeWhereInput = {
129
+ AND?: Prisma.PrunedExchangeWhereInput | Prisma.PrunedExchangeWhereInput[];
130
+ OR?: Prisma.PrunedExchangeWhereInput[];
131
+ NOT?: Prisma.PrunedExchangeWhereInput | Prisma.PrunedExchangeWhereInput[];
132
+ fleetId?: Prisma.StringFilter<"PrunedExchange"> | string;
133
+ shipId?: Prisma.StringFilter<"PrunedExchange"> | string;
134
+ otherShipId?: Prisma.StringFilter<"PrunedExchange"> | string;
135
+ prunedUpTo?: Prisma.DateTimeFilter<"PrunedExchange"> | Date | string;
136
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
137
+ ship?: Prisma.XOR<Prisma.ShipScalarRelationFilter, Prisma.ShipWhereInput>;
138
+ otherShip?: Prisma.XOR<Prisma.ShipScalarRelationFilter, Prisma.ShipWhereInput>;
139
+ };
140
+ export type PrunedExchangeOrderByWithRelationInput = {
141
+ fleetId?: Prisma.SortOrder;
142
+ shipId?: Prisma.SortOrder;
143
+ otherShipId?: Prisma.SortOrder;
144
+ prunedUpTo?: Prisma.SortOrder;
145
+ fleet?: Prisma.FleetOrderByWithRelationInput;
146
+ ship?: Prisma.ShipOrderByWithRelationInput;
147
+ otherShip?: Prisma.ShipOrderByWithRelationInput;
148
+ };
149
+ export type PrunedExchangeWhereUniqueInput = Prisma.AtLeast<{
150
+ fleetId_shipId_otherShipId?: Prisma.PrunedExchangeFleetIdShipIdOtherShipIdCompoundUniqueInput;
151
+ AND?: Prisma.PrunedExchangeWhereInput | Prisma.PrunedExchangeWhereInput[];
152
+ OR?: Prisma.PrunedExchangeWhereInput[];
153
+ NOT?: Prisma.PrunedExchangeWhereInput | Prisma.PrunedExchangeWhereInput[];
154
+ fleetId?: Prisma.StringFilter<"PrunedExchange"> | string;
155
+ shipId?: Prisma.StringFilter<"PrunedExchange"> | string;
156
+ otherShipId?: Prisma.StringFilter<"PrunedExchange"> | string;
157
+ prunedUpTo?: Prisma.DateTimeFilter<"PrunedExchange"> | Date | string;
158
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
159
+ ship?: Prisma.XOR<Prisma.ShipScalarRelationFilter, Prisma.ShipWhereInput>;
160
+ otherShip?: Prisma.XOR<Prisma.ShipScalarRelationFilter, Prisma.ShipWhereInput>;
161
+ }, "fleetId_shipId_otherShipId">;
162
+ export type PrunedExchangeOrderByWithAggregationInput = {
163
+ fleetId?: Prisma.SortOrder;
164
+ shipId?: Prisma.SortOrder;
165
+ otherShipId?: Prisma.SortOrder;
166
+ prunedUpTo?: Prisma.SortOrder;
167
+ _count?: Prisma.PrunedExchangeCountOrderByAggregateInput;
168
+ _max?: Prisma.PrunedExchangeMaxOrderByAggregateInput;
169
+ _min?: Prisma.PrunedExchangeMinOrderByAggregateInput;
170
+ };
171
+ export type PrunedExchangeScalarWhereWithAggregatesInput = {
172
+ AND?: Prisma.PrunedExchangeScalarWhereWithAggregatesInput | Prisma.PrunedExchangeScalarWhereWithAggregatesInput[];
173
+ OR?: Prisma.PrunedExchangeScalarWhereWithAggregatesInput[];
174
+ NOT?: Prisma.PrunedExchangeScalarWhereWithAggregatesInput | Prisma.PrunedExchangeScalarWhereWithAggregatesInput[];
175
+ fleetId?: Prisma.StringWithAggregatesFilter<"PrunedExchange"> | string;
176
+ shipId?: Prisma.StringWithAggregatesFilter<"PrunedExchange"> | string;
177
+ otherShipId?: Prisma.StringWithAggregatesFilter<"PrunedExchange"> | string;
178
+ prunedUpTo?: Prisma.DateTimeWithAggregatesFilter<"PrunedExchange"> | Date | string;
179
+ };
180
+ export type PrunedExchangeCreateInput = {
181
+ prunedUpTo: Date | string;
182
+ fleet: Prisma.FleetCreateNestedOneWithoutPrunedExchangesInput;
183
+ ship: Prisma.ShipCreateNestedOneWithoutPrunedExchangesInput;
184
+ otherShip: Prisma.ShipCreateNestedOneWithoutPrunedExchangesWithInput;
185
+ };
186
+ export type PrunedExchangeUncheckedCreateInput = {
187
+ fleetId: string;
188
+ shipId: string;
189
+ otherShipId: string;
190
+ prunedUpTo: Date | string;
191
+ };
192
+ export type PrunedExchangeUpdateInput = {
193
+ prunedUpTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
194
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutPrunedExchangesNestedInput;
195
+ ship?: Prisma.ShipUpdateOneRequiredWithoutPrunedExchangesNestedInput;
196
+ otherShip?: Prisma.ShipUpdateOneRequiredWithoutPrunedExchangesWithNestedInput;
197
+ };
198
+ export type PrunedExchangeUncheckedUpdateInput = {
199
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
200
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
201
+ otherShipId?: Prisma.StringFieldUpdateOperationsInput | string;
202
+ prunedUpTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
203
+ };
204
+ export type PrunedExchangeCreateManyInput = {
205
+ fleetId: string;
206
+ shipId: string;
207
+ otherShipId: string;
208
+ prunedUpTo: Date | string;
209
+ };
210
+ export type PrunedExchangeUpdateManyMutationInput = {
211
+ prunedUpTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
212
+ };
213
+ export type PrunedExchangeUncheckedUpdateManyInput = {
214
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
215
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
216
+ otherShipId?: Prisma.StringFieldUpdateOperationsInput | string;
217
+ prunedUpTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
218
+ };
219
+ export type PrunedExchangeListRelationFilter = {
220
+ every?: Prisma.PrunedExchangeWhereInput;
221
+ some?: Prisma.PrunedExchangeWhereInput;
222
+ none?: Prisma.PrunedExchangeWhereInput;
223
+ };
224
+ export type PrunedExchangeOrderByRelationAggregateInput = {
225
+ _count?: Prisma.SortOrder;
226
+ };
227
+ export type PrunedExchangeFleetIdShipIdOtherShipIdCompoundUniqueInput = {
228
+ fleetId: string;
229
+ shipId: string;
230
+ otherShipId: string;
231
+ };
232
+ export type PrunedExchangeCountOrderByAggregateInput = {
233
+ fleetId?: Prisma.SortOrder;
234
+ shipId?: Prisma.SortOrder;
235
+ otherShipId?: Prisma.SortOrder;
236
+ prunedUpTo?: Prisma.SortOrder;
237
+ };
238
+ export type PrunedExchangeMaxOrderByAggregateInput = {
239
+ fleetId?: Prisma.SortOrder;
240
+ shipId?: Prisma.SortOrder;
241
+ otherShipId?: Prisma.SortOrder;
242
+ prunedUpTo?: Prisma.SortOrder;
243
+ };
244
+ export type PrunedExchangeMinOrderByAggregateInput = {
245
+ fleetId?: Prisma.SortOrder;
246
+ shipId?: Prisma.SortOrder;
247
+ otherShipId?: Prisma.SortOrder;
248
+ prunedUpTo?: Prisma.SortOrder;
249
+ };
250
+ export type PrunedExchangeCreateNestedManyWithoutFleetInput = {
251
+ create?: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutFleetInput, Prisma.PrunedExchangeUncheckedCreateWithoutFleetInput> | Prisma.PrunedExchangeCreateWithoutFleetInput[] | Prisma.PrunedExchangeUncheckedCreateWithoutFleetInput[];
252
+ connectOrCreate?: Prisma.PrunedExchangeCreateOrConnectWithoutFleetInput | Prisma.PrunedExchangeCreateOrConnectWithoutFleetInput[];
253
+ createMany?: Prisma.PrunedExchangeCreateManyFleetInputEnvelope;
254
+ connect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
255
+ };
256
+ export type PrunedExchangeUncheckedCreateNestedManyWithoutFleetInput = {
257
+ create?: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutFleetInput, Prisma.PrunedExchangeUncheckedCreateWithoutFleetInput> | Prisma.PrunedExchangeCreateWithoutFleetInput[] | Prisma.PrunedExchangeUncheckedCreateWithoutFleetInput[];
258
+ connectOrCreate?: Prisma.PrunedExchangeCreateOrConnectWithoutFleetInput | Prisma.PrunedExchangeCreateOrConnectWithoutFleetInput[];
259
+ createMany?: Prisma.PrunedExchangeCreateManyFleetInputEnvelope;
260
+ connect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
261
+ };
262
+ export type PrunedExchangeUpdateManyWithoutFleetNestedInput = {
263
+ create?: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutFleetInput, Prisma.PrunedExchangeUncheckedCreateWithoutFleetInput> | Prisma.PrunedExchangeCreateWithoutFleetInput[] | Prisma.PrunedExchangeUncheckedCreateWithoutFleetInput[];
264
+ connectOrCreate?: Prisma.PrunedExchangeCreateOrConnectWithoutFleetInput | Prisma.PrunedExchangeCreateOrConnectWithoutFleetInput[];
265
+ upsert?: Prisma.PrunedExchangeUpsertWithWhereUniqueWithoutFleetInput | Prisma.PrunedExchangeUpsertWithWhereUniqueWithoutFleetInput[];
266
+ createMany?: Prisma.PrunedExchangeCreateManyFleetInputEnvelope;
267
+ set?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
268
+ disconnect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
269
+ delete?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
270
+ connect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
271
+ update?: Prisma.PrunedExchangeUpdateWithWhereUniqueWithoutFleetInput | Prisma.PrunedExchangeUpdateWithWhereUniqueWithoutFleetInput[];
272
+ updateMany?: Prisma.PrunedExchangeUpdateManyWithWhereWithoutFleetInput | Prisma.PrunedExchangeUpdateManyWithWhereWithoutFleetInput[];
273
+ deleteMany?: Prisma.PrunedExchangeScalarWhereInput | Prisma.PrunedExchangeScalarWhereInput[];
274
+ };
275
+ export type PrunedExchangeUncheckedUpdateManyWithoutFleetNestedInput = {
276
+ create?: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutFleetInput, Prisma.PrunedExchangeUncheckedCreateWithoutFleetInput> | Prisma.PrunedExchangeCreateWithoutFleetInput[] | Prisma.PrunedExchangeUncheckedCreateWithoutFleetInput[];
277
+ connectOrCreate?: Prisma.PrunedExchangeCreateOrConnectWithoutFleetInput | Prisma.PrunedExchangeCreateOrConnectWithoutFleetInput[];
278
+ upsert?: Prisma.PrunedExchangeUpsertWithWhereUniqueWithoutFleetInput | Prisma.PrunedExchangeUpsertWithWhereUniqueWithoutFleetInput[];
279
+ createMany?: Prisma.PrunedExchangeCreateManyFleetInputEnvelope;
280
+ set?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
281
+ disconnect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
282
+ delete?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
283
+ connect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
284
+ update?: Prisma.PrunedExchangeUpdateWithWhereUniqueWithoutFleetInput | Prisma.PrunedExchangeUpdateWithWhereUniqueWithoutFleetInput[];
285
+ updateMany?: Prisma.PrunedExchangeUpdateManyWithWhereWithoutFleetInput | Prisma.PrunedExchangeUpdateManyWithWhereWithoutFleetInput[];
286
+ deleteMany?: Prisma.PrunedExchangeScalarWhereInput | Prisma.PrunedExchangeScalarWhereInput[];
287
+ };
288
+ export type PrunedExchangeCreateNestedManyWithoutShipInput = {
289
+ create?: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutShipInput, Prisma.PrunedExchangeUncheckedCreateWithoutShipInput> | Prisma.PrunedExchangeCreateWithoutShipInput[] | Prisma.PrunedExchangeUncheckedCreateWithoutShipInput[];
290
+ connectOrCreate?: Prisma.PrunedExchangeCreateOrConnectWithoutShipInput | Prisma.PrunedExchangeCreateOrConnectWithoutShipInput[];
291
+ createMany?: Prisma.PrunedExchangeCreateManyShipInputEnvelope;
292
+ connect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
293
+ };
294
+ export type PrunedExchangeCreateNestedManyWithoutOtherShipInput = {
295
+ create?: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutOtherShipInput, Prisma.PrunedExchangeUncheckedCreateWithoutOtherShipInput> | Prisma.PrunedExchangeCreateWithoutOtherShipInput[] | Prisma.PrunedExchangeUncheckedCreateWithoutOtherShipInput[];
296
+ connectOrCreate?: Prisma.PrunedExchangeCreateOrConnectWithoutOtherShipInput | Prisma.PrunedExchangeCreateOrConnectWithoutOtherShipInput[];
297
+ createMany?: Prisma.PrunedExchangeCreateManyOtherShipInputEnvelope;
298
+ connect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
299
+ };
300
+ export type PrunedExchangeUncheckedCreateNestedManyWithoutShipInput = {
301
+ create?: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutShipInput, Prisma.PrunedExchangeUncheckedCreateWithoutShipInput> | Prisma.PrunedExchangeCreateWithoutShipInput[] | Prisma.PrunedExchangeUncheckedCreateWithoutShipInput[];
302
+ connectOrCreate?: Prisma.PrunedExchangeCreateOrConnectWithoutShipInput | Prisma.PrunedExchangeCreateOrConnectWithoutShipInput[];
303
+ createMany?: Prisma.PrunedExchangeCreateManyShipInputEnvelope;
304
+ connect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
305
+ };
306
+ export type PrunedExchangeUncheckedCreateNestedManyWithoutOtherShipInput = {
307
+ create?: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutOtherShipInput, Prisma.PrunedExchangeUncheckedCreateWithoutOtherShipInput> | Prisma.PrunedExchangeCreateWithoutOtherShipInput[] | Prisma.PrunedExchangeUncheckedCreateWithoutOtherShipInput[];
308
+ connectOrCreate?: Prisma.PrunedExchangeCreateOrConnectWithoutOtherShipInput | Prisma.PrunedExchangeCreateOrConnectWithoutOtherShipInput[];
309
+ createMany?: Prisma.PrunedExchangeCreateManyOtherShipInputEnvelope;
310
+ connect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
311
+ };
312
+ export type PrunedExchangeUpdateManyWithoutShipNestedInput = {
313
+ create?: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutShipInput, Prisma.PrunedExchangeUncheckedCreateWithoutShipInput> | Prisma.PrunedExchangeCreateWithoutShipInput[] | Prisma.PrunedExchangeUncheckedCreateWithoutShipInput[];
314
+ connectOrCreate?: Prisma.PrunedExchangeCreateOrConnectWithoutShipInput | Prisma.PrunedExchangeCreateOrConnectWithoutShipInput[];
315
+ upsert?: Prisma.PrunedExchangeUpsertWithWhereUniqueWithoutShipInput | Prisma.PrunedExchangeUpsertWithWhereUniqueWithoutShipInput[];
316
+ createMany?: Prisma.PrunedExchangeCreateManyShipInputEnvelope;
317
+ set?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
318
+ disconnect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
319
+ delete?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
320
+ connect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
321
+ update?: Prisma.PrunedExchangeUpdateWithWhereUniqueWithoutShipInput | Prisma.PrunedExchangeUpdateWithWhereUniqueWithoutShipInput[];
322
+ updateMany?: Prisma.PrunedExchangeUpdateManyWithWhereWithoutShipInput | Prisma.PrunedExchangeUpdateManyWithWhereWithoutShipInput[];
323
+ deleteMany?: Prisma.PrunedExchangeScalarWhereInput | Prisma.PrunedExchangeScalarWhereInput[];
324
+ };
325
+ export type PrunedExchangeUpdateManyWithoutOtherShipNestedInput = {
326
+ create?: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutOtherShipInput, Prisma.PrunedExchangeUncheckedCreateWithoutOtherShipInput> | Prisma.PrunedExchangeCreateWithoutOtherShipInput[] | Prisma.PrunedExchangeUncheckedCreateWithoutOtherShipInput[];
327
+ connectOrCreate?: Prisma.PrunedExchangeCreateOrConnectWithoutOtherShipInput | Prisma.PrunedExchangeCreateOrConnectWithoutOtherShipInput[];
328
+ upsert?: Prisma.PrunedExchangeUpsertWithWhereUniqueWithoutOtherShipInput | Prisma.PrunedExchangeUpsertWithWhereUniqueWithoutOtherShipInput[];
329
+ createMany?: Prisma.PrunedExchangeCreateManyOtherShipInputEnvelope;
330
+ set?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
331
+ disconnect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
332
+ delete?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
333
+ connect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
334
+ update?: Prisma.PrunedExchangeUpdateWithWhereUniqueWithoutOtherShipInput | Prisma.PrunedExchangeUpdateWithWhereUniqueWithoutOtherShipInput[];
335
+ updateMany?: Prisma.PrunedExchangeUpdateManyWithWhereWithoutOtherShipInput | Prisma.PrunedExchangeUpdateManyWithWhereWithoutOtherShipInput[];
336
+ deleteMany?: Prisma.PrunedExchangeScalarWhereInput | Prisma.PrunedExchangeScalarWhereInput[];
337
+ };
338
+ export type PrunedExchangeUncheckedUpdateManyWithoutShipNestedInput = {
339
+ create?: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutShipInput, Prisma.PrunedExchangeUncheckedCreateWithoutShipInput> | Prisma.PrunedExchangeCreateWithoutShipInput[] | Prisma.PrunedExchangeUncheckedCreateWithoutShipInput[];
340
+ connectOrCreate?: Prisma.PrunedExchangeCreateOrConnectWithoutShipInput | Prisma.PrunedExchangeCreateOrConnectWithoutShipInput[];
341
+ upsert?: Prisma.PrunedExchangeUpsertWithWhereUniqueWithoutShipInput | Prisma.PrunedExchangeUpsertWithWhereUniqueWithoutShipInput[];
342
+ createMany?: Prisma.PrunedExchangeCreateManyShipInputEnvelope;
343
+ set?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
344
+ disconnect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
345
+ delete?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
346
+ connect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
347
+ update?: Prisma.PrunedExchangeUpdateWithWhereUniqueWithoutShipInput | Prisma.PrunedExchangeUpdateWithWhereUniqueWithoutShipInput[];
348
+ updateMany?: Prisma.PrunedExchangeUpdateManyWithWhereWithoutShipInput | Prisma.PrunedExchangeUpdateManyWithWhereWithoutShipInput[];
349
+ deleteMany?: Prisma.PrunedExchangeScalarWhereInput | Prisma.PrunedExchangeScalarWhereInput[];
350
+ };
351
+ export type PrunedExchangeUncheckedUpdateManyWithoutOtherShipNestedInput = {
352
+ create?: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutOtherShipInput, Prisma.PrunedExchangeUncheckedCreateWithoutOtherShipInput> | Prisma.PrunedExchangeCreateWithoutOtherShipInput[] | Prisma.PrunedExchangeUncheckedCreateWithoutOtherShipInput[];
353
+ connectOrCreate?: Prisma.PrunedExchangeCreateOrConnectWithoutOtherShipInput | Prisma.PrunedExchangeCreateOrConnectWithoutOtherShipInput[];
354
+ upsert?: Prisma.PrunedExchangeUpsertWithWhereUniqueWithoutOtherShipInput | Prisma.PrunedExchangeUpsertWithWhereUniqueWithoutOtherShipInput[];
355
+ createMany?: Prisma.PrunedExchangeCreateManyOtherShipInputEnvelope;
356
+ set?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
357
+ disconnect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
358
+ delete?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
359
+ connect?: Prisma.PrunedExchangeWhereUniqueInput | Prisma.PrunedExchangeWhereUniqueInput[];
360
+ update?: Prisma.PrunedExchangeUpdateWithWhereUniqueWithoutOtherShipInput | Prisma.PrunedExchangeUpdateWithWhereUniqueWithoutOtherShipInput[];
361
+ updateMany?: Prisma.PrunedExchangeUpdateManyWithWhereWithoutOtherShipInput | Prisma.PrunedExchangeUpdateManyWithWhereWithoutOtherShipInput[];
362
+ deleteMany?: Prisma.PrunedExchangeScalarWhereInput | Prisma.PrunedExchangeScalarWhereInput[];
363
+ };
364
+ export type PrunedExchangeCreateWithoutFleetInput = {
365
+ prunedUpTo: Date | string;
366
+ ship: Prisma.ShipCreateNestedOneWithoutPrunedExchangesInput;
367
+ otherShip: Prisma.ShipCreateNestedOneWithoutPrunedExchangesWithInput;
368
+ };
369
+ export type PrunedExchangeUncheckedCreateWithoutFleetInput = {
370
+ shipId: string;
371
+ otherShipId: string;
372
+ prunedUpTo: Date | string;
373
+ };
374
+ export type PrunedExchangeCreateOrConnectWithoutFleetInput = {
375
+ where: Prisma.PrunedExchangeWhereUniqueInput;
376
+ create: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutFleetInput, Prisma.PrunedExchangeUncheckedCreateWithoutFleetInput>;
377
+ };
378
+ export type PrunedExchangeCreateManyFleetInputEnvelope = {
379
+ data: Prisma.PrunedExchangeCreateManyFleetInput | Prisma.PrunedExchangeCreateManyFleetInput[];
380
+ skipDuplicates?: boolean;
381
+ };
382
+ export type PrunedExchangeUpsertWithWhereUniqueWithoutFleetInput = {
383
+ where: Prisma.PrunedExchangeWhereUniqueInput;
384
+ update: Prisma.XOR<Prisma.PrunedExchangeUpdateWithoutFleetInput, Prisma.PrunedExchangeUncheckedUpdateWithoutFleetInput>;
385
+ create: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutFleetInput, Prisma.PrunedExchangeUncheckedCreateWithoutFleetInput>;
386
+ };
387
+ export type PrunedExchangeUpdateWithWhereUniqueWithoutFleetInput = {
388
+ where: Prisma.PrunedExchangeWhereUniqueInput;
389
+ data: Prisma.XOR<Prisma.PrunedExchangeUpdateWithoutFleetInput, Prisma.PrunedExchangeUncheckedUpdateWithoutFleetInput>;
390
+ };
391
+ export type PrunedExchangeUpdateManyWithWhereWithoutFleetInput = {
392
+ where: Prisma.PrunedExchangeScalarWhereInput;
393
+ data: Prisma.XOR<Prisma.PrunedExchangeUpdateManyMutationInput, Prisma.PrunedExchangeUncheckedUpdateManyWithoutFleetInput>;
394
+ };
395
+ export type PrunedExchangeScalarWhereInput = {
396
+ AND?: Prisma.PrunedExchangeScalarWhereInput | Prisma.PrunedExchangeScalarWhereInput[];
397
+ OR?: Prisma.PrunedExchangeScalarWhereInput[];
398
+ NOT?: Prisma.PrunedExchangeScalarWhereInput | Prisma.PrunedExchangeScalarWhereInput[];
399
+ fleetId?: Prisma.StringFilter<"PrunedExchange"> | string;
400
+ shipId?: Prisma.StringFilter<"PrunedExchange"> | string;
401
+ otherShipId?: Prisma.StringFilter<"PrunedExchange"> | string;
402
+ prunedUpTo?: Prisma.DateTimeFilter<"PrunedExchange"> | Date | string;
403
+ };
404
+ export type PrunedExchangeCreateWithoutShipInput = {
405
+ prunedUpTo: Date | string;
406
+ fleet: Prisma.FleetCreateNestedOneWithoutPrunedExchangesInput;
407
+ otherShip: Prisma.ShipCreateNestedOneWithoutPrunedExchangesWithInput;
408
+ };
409
+ export type PrunedExchangeUncheckedCreateWithoutShipInput = {
410
+ otherShipId: string;
411
+ prunedUpTo: Date | string;
412
+ };
413
+ export type PrunedExchangeCreateOrConnectWithoutShipInput = {
414
+ where: Prisma.PrunedExchangeWhereUniqueInput;
415
+ create: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutShipInput, Prisma.PrunedExchangeUncheckedCreateWithoutShipInput>;
416
+ };
417
+ export type PrunedExchangeCreateManyShipInputEnvelope = {
418
+ data: Prisma.PrunedExchangeCreateManyShipInput | Prisma.PrunedExchangeCreateManyShipInput[];
419
+ skipDuplicates?: boolean;
420
+ };
421
+ export type PrunedExchangeCreateWithoutOtherShipInput = {
422
+ prunedUpTo: Date | string;
423
+ fleet: Prisma.FleetCreateNestedOneWithoutPrunedExchangesInput;
424
+ ship: Prisma.ShipCreateNestedOneWithoutPrunedExchangesInput;
425
+ };
426
+ export type PrunedExchangeUncheckedCreateWithoutOtherShipInput = {
427
+ shipId: string;
428
+ prunedUpTo: Date | string;
429
+ };
430
+ export type PrunedExchangeCreateOrConnectWithoutOtherShipInput = {
431
+ where: Prisma.PrunedExchangeWhereUniqueInput;
432
+ create: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutOtherShipInput, Prisma.PrunedExchangeUncheckedCreateWithoutOtherShipInput>;
433
+ };
434
+ export type PrunedExchangeCreateManyOtherShipInputEnvelope = {
435
+ data: Prisma.PrunedExchangeCreateManyOtherShipInput | Prisma.PrunedExchangeCreateManyOtherShipInput[];
436
+ skipDuplicates?: boolean;
437
+ };
438
+ export type PrunedExchangeUpsertWithWhereUniqueWithoutShipInput = {
439
+ where: Prisma.PrunedExchangeWhereUniqueInput;
440
+ update: Prisma.XOR<Prisma.PrunedExchangeUpdateWithoutShipInput, Prisma.PrunedExchangeUncheckedUpdateWithoutShipInput>;
441
+ create: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutShipInput, Prisma.PrunedExchangeUncheckedCreateWithoutShipInput>;
442
+ };
443
+ export type PrunedExchangeUpdateWithWhereUniqueWithoutShipInput = {
444
+ where: Prisma.PrunedExchangeWhereUniqueInput;
445
+ data: Prisma.XOR<Prisma.PrunedExchangeUpdateWithoutShipInput, Prisma.PrunedExchangeUncheckedUpdateWithoutShipInput>;
446
+ };
447
+ export type PrunedExchangeUpdateManyWithWhereWithoutShipInput = {
448
+ where: Prisma.PrunedExchangeScalarWhereInput;
449
+ data: Prisma.XOR<Prisma.PrunedExchangeUpdateManyMutationInput, Prisma.PrunedExchangeUncheckedUpdateManyWithoutShipInput>;
450
+ };
451
+ export type PrunedExchangeUpsertWithWhereUniqueWithoutOtherShipInput = {
452
+ where: Prisma.PrunedExchangeWhereUniqueInput;
453
+ update: Prisma.XOR<Prisma.PrunedExchangeUpdateWithoutOtherShipInput, Prisma.PrunedExchangeUncheckedUpdateWithoutOtherShipInput>;
454
+ create: Prisma.XOR<Prisma.PrunedExchangeCreateWithoutOtherShipInput, Prisma.PrunedExchangeUncheckedCreateWithoutOtherShipInput>;
455
+ };
456
+ export type PrunedExchangeUpdateWithWhereUniqueWithoutOtherShipInput = {
457
+ where: Prisma.PrunedExchangeWhereUniqueInput;
458
+ data: Prisma.XOR<Prisma.PrunedExchangeUpdateWithoutOtherShipInput, Prisma.PrunedExchangeUncheckedUpdateWithoutOtherShipInput>;
459
+ };
460
+ export type PrunedExchangeUpdateManyWithWhereWithoutOtherShipInput = {
461
+ where: Prisma.PrunedExchangeScalarWhereInput;
462
+ data: Prisma.XOR<Prisma.PrunedExchangeUpdateManyMutationInput, Prisma.PrunedExchangeUncheckedUpdateManyWithoutOtherShipInput>;
463
+ };
464
+ export type PrunedExchangeCreateManyFleetInput = {
465
+ shipId: string;
466
+ otherShipId: string;
467
+ prunedUpTo: Date | string;
468
+ };
469
+ export type PrunedExchangeUpdateWithoutFleetInput = {
470
+ prunedUpTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
471
+ ship?: Prisma.ShipUpdateOneRequiredWithoutPrunedExchangesNestedInput;
472
+ otherShip?: Prisma.ShipUpdateOneRequiredWithoutPrunedExchangesWithNestedInput;
473
+ };
474
+ export type PrunedExchangeUncheckedUpdateWithoutFleetInput = {
475
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
476
+ otherShipId?: Prisma.StringFieldUpdateOperationsInput | string;
477
+ prunedUpTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
478
+ };
479
+ export type PrunedExchangeUncheckedUpdateManyWithoutFleetInput = {
480
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
481
+ otherShipId?: Prisma.StringFieldUpdateOperationsInput | string;
482
+ prunedUpTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
483
+ };
484
+ export type PrunedExchangeCreateManyShipInput = {
485
+ otherShipId: string;
486
+ prunedUpTo: Date | string;
487
+ };
488
+ export type PrunedExchangeCreateManyOtherShipInput = {
489
+ shipId: string;
490
+ prunedUpTo: Date | string;
491
+ };
492
+ export type PrunedExchangeUpdateWithoutShipInput = {
493
+ prunedUpTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
494
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutPrunedExchangesNestedInput;
495
+ otherShip?: Prisma.ShipUpdateOneRequiredWithoutPrunedExchangesWithNestedInput;
496
+ };
497
+ export type PrunedExchangeUncheckedUpdateWithoutShipInput = {
498
+ otherShipId?: Prisma.StringFieldUpdateOperationsInput | string;
499
+ prunedUpTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
500
+ };
501
+ export type PrunedExchangeUncheckedUpdateManyWithoutShipInput = {
502
+ otherShipId?: Prisma.StringFieldUpdateOperationsInput | string;
503
+ prunedUpTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
504
+ };
505
+ export type PrunedExchangeUpdateWithoutOtherShipInput = {
506
+ prunedUpTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
507
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutPrunedExchangesNestedInput;
508
+ ship?: Prisma.ShipUpdateOneRequiredWithoutPrunedExchangesNestedInput;
509
+ };
510
+ export type PrunedExchangeUncheckedUpdateWithoutOtherShipInput = {
511
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
512
+ prunedUpTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
513
+ };
514
+ export type PrunedExchangeUncheckedUpdateManyWithoutOtherShipInput = {
515
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
516
+ prunedUpTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
517
+ };
518
+ export type PrunedExchangeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
519
+ fleetId?: boolean;
520
+ shipId?: boolean;
521
+ otherShipId?: boolean;
522
+ prunedUpTo?: boolean;
523
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
524
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
525
+ otherShip?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
526
+ }, ExtArgs["result"]["prunedExchange"]>;
527
+ export type PrunedExchangeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
528
+ fleetId?: boolean;
529
+ shipId?: boolean;
530
+ otherShipId?: boolean;
531
+ prunedUpTo?: boolean;
532
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
533
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
534
+ otherShip?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
535
+ }, ExtArgs["result"]["prunedExchange"]>;
536
+ export type PrunedExchangeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
537
+ fleetId?: boolean;
538
+ shipId?: boolean;
539
+ otherShipId?: boolean;
540
+ prunedUpTo?: boolean;
541
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
542
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
543
+ otherShip?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
544
+ }, ExtArgs["result"]["prunedExchange"]>;
545
+ export type PrunedExchangeSelectScalar = {
546
+ fleetId?: boolean;
547
+ shipId?: boolean;
548
+ otherShipId?: boolean;
549
+ prunedUpTo?: boolean;
550
+ };
551
+ export type PrunedExchangeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"fleetId" | "shipId" | "otherShipId" | "prunedUpTo", ExtArgs["result"]["prunedExchange"]>;
552
+ export type PrunedExchangeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
553
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
554
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
555
+ otherShip?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
556
+ };
557
+ export type PrunedExchangeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
558
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
559
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
560
+ otherShip?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
561
+ };
562
+ export type PrunedExchangeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
563
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
564
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
565
+ otherShip?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
566
+ };
567
+ export type $PrunedExchangePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
568
+ name: "PrunedExchange";
569
+ objects: {
570
+ fleet: Prisma.$FleetPayload<ExtArgs>;
571
+ ship: Prisma.$ShipPayload<ExtArgs>;
572
+ otherShip: Prisma.$ShipPayload<ExtArgs>;
573
+ };
574
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
575
+ fleetId: string;
576
+ shipId: string;
577
+ otherShipId: string;
578
+ prunedUpTo: Date;
579
+ }, ExtArgs["result"]["prunedExchange"]>;
580
+ composites: {};
581
+ };
582
+ export type PrunedExchangeGetPayload<S extends boolean | null | undefined | PrunedExchangeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PrunedExchangePayload, S>;
583
+ export type PrunedExchangeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PrunedExchangeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
584
+ select?: PrunedExchangeCountAggregateInputType | true;
585
+ };
586
+ export interface PrunedExchangeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
587
+ [K: symbol]: {
588
+ types: Prisma.TypeMap<ExtArgs>['model']['PrunedExchange'];
589
+ meta: {
590
+ name: 'PrunedExchange';
591
+ };
592
+ };
593
+ /**
594
+ * Find zero or one PrunedExchange that matches the filter.
595
+ * @param {PrunedExchangeFindUniqueArgs} args - Arguments to find a PrunedExchange
596
+ * @example
597
+ * // Get one PrunedExchange
598
+ * const prunedExchange = await prisma.prunedExchange.findUnique({
599
+ * where: {
600
+ * // ... provide filter here
601
+ * }
602
+ * })
603
+ */
604
+ findUnique<T extends PrunedExchangeFindUniqueArgs>(args: Prisma.SelectSubset<T, PrunedExchangeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PrunedExchangeClient<runtime.Types.Result.GetResult<Prisma.$PrunedExchangePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
605
+ /**
606
+ * Find one PrunedExchange that matches the filter or throw an error with `error.code='P2025'`
607
+ * if no matches were found.
608
+ * @param {PrunedExchangeFindUniqueOrThrowArgs} args - Arguments to find a PrunedExchange
609
+ * @example
610
+ * // Get one PrunedExchange
611
+ * const prunedExchange = await prisma.prunedExchange.findUniqueOrThrow({
612
+ * where: {
613
+ * // ... provide filter here
614
+ * }
615
+ * })
616
+ */
617
+ findUniqueOrThrow<T extends PrunedExchangeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PrunedExchangeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PrunedExchangeClient<runtime.Types.Result.GetResult<Prisma.$PrunedExchangePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
618
+ /**
619
+ * Find the first PrunedExchange that matches the filter.
620
+ * Note, that providing `undefined` is treated as the value not being there.
621
+ * Read more here: https://pris.ly/d/null-undefined
622
+ * @param {PrunedExchangeFindFirstArgs} args - Arguments to find a PrunedExchange
623
+ * @example
624
+ * // Get one PrunedExchange
625
+ * const prunedExchange = await prisma.prunedExchange.findFirst({
626
+ * where: {
627
+ * // ... provide filter here
628
+ * }
629
+ * })
630
+ */
631
+ findFirst<T extends PrunedExchangeFindFirstArgs>(args?: Prisma.SelectSubset<T, PrunedExchangeFindFirstArgs<ExtArgs>>): Prisma.Prisma__PrunedExchangeClient<runtime.Types.Result.GetResult<Prisma.$PrunedExchangePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
632
+ /**
633
+ * Find the first PrunedExchange that matches the filter or
634
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
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 {PrunedExchangeFindFirstOrThrowArgs} args - Arguments to find a PrunedExchange
638
+ * @example
639
+ * // Get one PrunedExchange
640
+ * const prunedExchange = await prisma.prunedExchange.findFirstOrThrow({
641
+ * where: {
642
+ * // ... provide filter here
643
+ * }
644
+ * })
645
+ */
646
+ findFirstOrThrow<T extends PrunedExchangeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PrunedExchangeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PrunedExchangeClient<runtime.Types.Result.GetResult<Prisma.$PrunedExchangePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
647
+ /**
648
+ * Find zero or more PrunedExchanges that matches the filter.
649
+ * Note, that providing `undefined` is treated as the value not being there.
650
+ * Read more here: https://pris.ly/d/null-undefined
651
+ * @param {PrunedExchangeFindManyArgs} args - Arguments to filter and select certain fields only.
652
+ * @example
653
+ * // Get all PrunedExchanges
654
+ * const prunedExchanges = await prisma.prunedExchange.findMany()
655
+ *
656
+ * // Get first 10 PrunedExchanges
657
+ * const prunedExchanges = await prisma.prunedExchange.findMany({ take: 10 })
658
+ *
659
+ * // Only select the `fleetId`
660
+ * const prunedExchangeWithFleetIdOnly = await prisma.prunedExchange.findMany({ select: { fleetId: true } })
661
+ *
662
+ */
663
+ findMany<T extends PrunedExchangeFindManyArgs>(args?: Prisma.SelectSubset<T, PrunedExchangeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PrunedExchangePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
664
+ /**
665
+ * Create a PrunedExchange.
666
+ * @param {PrunedExchangeCreateArgs} args - Arguments to create a PrunedExchange.
667
+ * @example
668
+ * // Create one PrunedExchange
669
+ * const PrunedExchange = await prisma.prunedExchange.create({
670
+ * data: {
671
+ * // ... data to create a PrunedExchange
672
+ * }
673
+ * })
674
+ *
675
+ */
676
+ create<T extends PrunedExchangeCreateArgs>(args: Prisma.SelectSubset<T, PrunedExchangeCreateArgs<ExtArgs>>): Prisma.Prisma__PrunedExchangeClient<runtime.Types.Result.GetResult<Prisma.$PrunedExchangePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
677
+ /**
678
+ * Create many PrunedExchanges.
679
+ * @param {PrunedExchangeCreateManyArgs} args - Arguments to create many PrunedExchanges.
680
+ * @example
681
+ * // Create many PrunedExchanges
682
+ * const prunedExchange = await prisma.prunedExchange.createMany({
683
+ * data: [
684
+ * // ... provide data here
685
+ * ]
686
+ * })
687
+ *
688
+ */
689
+ createMany<T extends PrunedExchangeCreateManyArgs>(args?: Prisma.SelectSubset<T, PrunedExchangeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
690
+ /**
691
+ * Create many PrunedExchanges and returns the data saved in the database.
692
+ * @param {PrunedExchangeCreateManyAndReturnArgs} args - Arguments to create many PrunedExchanges.
693
+ * @example
694
+ * // Create many PrunedExchanges
695
+ * const prunedExchange = await prisma.prunedExchange.createManyAndReturn({
696
+ * data: [
697
+ * // ... provide data here
698
+ * ]
699
+ * })
700
+ *
701
+ * // Create many PrunedExchanges and only return the `fleetId`
702
+ * const prunedExchangeWithFleetIdOnly = await prisma.prunedExchange.createManyAndReturn({
703
+ * select: { fleetId: true },
704
+ * data: [
705
+ * // ... provide data here
706
+ * ]
707
+ * })
708
+ * Note, that providing `undefined` is treated as the value not being there.
709
+ * Read more here: https://pris.ly/d/null-undefined
710
+ *
711
+ */
712
+ createManyAndReturn<T extends PrunedExchangeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PrunedExchangeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PrunedExchangePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
713
+ /**
714
+ * Delete a PrunedExchange.
715
+ * @param {PrunedExchangeDeleteArgs} args - Arguments to delete one PrunedExchange.
716
+ * @example
717
+ * // Delete one PrunedExchange
718
+ * const PrunedExchange = await prisma.prunedExchange.delete({
719
+ * where: {
720
+ * // ... filter to delete one PrunedExchange
721
+ * }
722
+ * })
723
+ *
724
+ */
725
+ delete<T extends PrunedExchangeDeleteArgs>(args: Prisma.SelectSubset<T, PrunedExchangeDeleteArgs<ExtArgs>>): Prisma.Prisma__PrunedExchangeClient<runtime.Types.Result.GetResult<Prisma.$PrunedExchangePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
726
+ /**
727
+ * Update one PrunedExchange.
728
+ * @param {PrunedExchangeUpdateArgs} args - Arguments to update one PrunedExchange.
729
+ * @example
730
+ * // Update one PrunedExchange
731
+ * const prunedExchange = await prisma.prunedExchange.update({
732
+ * where: {
733
+ * // ... provide filter here
734
+ * },
735
+ * data: {
736
+ * // ... provide data here
737
+ * }
738
+ * })
739
+ *
740
+ */
741
+ update<T extends PrunedExchangeUpdateArgs>(args: Prisma.SelectSubset<T, PrunedExchangeUpdateArgs<ExtArgs>>): Prisma.Prisma__PrunedExchangeClient<runtime.Types.Result.GetResult<Prisma.$PrunedExchangePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
742
+ /**
743
+ * Delete zero or more PrunedExchanges.
744
+ * @param {PrunedExchangeDeleteManyArgs} args - Arguments to filter PrunedExchanges to delete.
745
+ * @example
746
+ * // Delete a few PrunedExchanges
747
+ * const { count } = await prisma.prunedExchange.deleteMany({
748
+ * where: {
749
+ * // ... provide filter here
750
+ * }
751
+ * })
752
+ *
753
+ */
754
+ deleteMany<T extends PrunedExchangeDeleteManyArgs>(args?: Prisma.SelectSubset<T, PrunedExchangeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
755
+ /**
756
+ * Update zero or more PrunedExchanges.
757
+ * Note, that providing `undefined` is treated as the value not being there.
758
+ * Read more here: https://pris.ly/d/null-undefined
759
+ * @param {PrunedExchangeUpdateManyArgs} args - Arguments to update one or more rows.
760
+ * @example
761
+ * // Update many PrunedExchanges
762
+ * const prunedExchange = await prisma.prunedExchange.updateMany({
763
+ * where: {
764
+ * // ... provide filter here
765
+ * },
766
+ * data: {
767
+ * // ... provide data here
768
+ * }
769
+ * })
770
+ *
771
+ */
772
+ updateMany<T extends PrunedExchangeUpdateManyArgs>(args: Prisma.SelectSubset<T, PrunedExchangeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
773
+ /**
774
+ * Update zero or more PrunedExchanges and returns the data updated in the database.
775
+ * @param {PrunedExchangeUpdateManyAndReturnArgs} args - Arguments to update many PrunedExchanges.
776
+ * @example
777
+ * // Update many PrunedExchanges
778
+ * const prunedExchange = await prisma.prunedExchange.updateManyAndReturn({
779
+ * where: {
780
+ * // ... provide filter here
781
+ * },
782
+ * data: [
783
+ * // ... provide data here
784
+ * ]
785
+ * })
786
+ *
787
+ * // Update zero or more PrunedExchanges and only return the `fleetId`
788
+ * const prunedExchangeWithFleetIdOnly = await prisma.prunedExchange.updateManyAndReturn({
789
+ * select: { fleetId: true },
790
+ * where: {
791
+ * // ... provide filter here
792
+ * },
793
+ * data: [
794
+ * // ... provide data here
795
+ * ]
796
+ * })
797
+ * Note, that providing `undefined` is treated as the value not being there.
798
+ * Read more here: https://pris.ly/d/null-undefined
799
+ *
800
+ */
801
+ updateManyAndReturn<T extends PrunedExchangeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PrunedExchangeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PrunedExchangePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
802
+ /**
803
+ * Create or update one PrunedExchange.
804
+ * @param {PrunedExchangeUpsertArgs} args - Arguments to update or create a PrunedExchange.
805
+ * @example
806
+ * // Update or create a PrunedExchange
807
+ * const prunedExchange = await prisma.prunedExchange.upsert({
808
+ * create: {
809
+ * // ... data to create a PrunedExchange
810
+ * },
811
+ * update: {
812
+ * // ... in case it already exists, update
813
+ * },
814
+ * where: {
815
+ * // ... the filter for the PrunedExchange we want to update
816
+ * }
817
+ * })
818
+ */
819
+ upsert<T extends PrunedExchangeUpsertArgs>(args: Prisma.SelectSubset<T, PrunedExchangeUpsertArgs<ExtArgs>>): Prisma.Prisma__PrunedExchangeClient<runtime.Types.Result.GetResult<Prisma.$PrunedExchangePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
820
+ /**
821
+ * Count the number of PrunedExchanges.
822
+ * Note, that providing `undefined` is treated as the value not being there.
823
+ * Read more here: https://pris.ly/d/null-undefined
824
+ * @param {PrunedExchangeCountArgs} args - Arguments to filter PrunedExchanges to count.
825
+ * @example
826
+ * // Count the number of PrunedExchanges
827
+ * const count = await prisma.prunedExchange.count({
828
+ * where: {
829
+ * // ... the filter for the PrunedExchanges we want to count
830
+ * }
831
+ * })
832
+ **/
833
+ count<T extends PrunedExchangeCountArgs>(args?: Prisma.Subset<T, PrunedExchangeCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PrunedExchangeCountAggregateOutputType> : number>;
834
+ /**
835
+ * Allows you to perform aggregations operations on a PrunedExchange.
836
+ * Note, that providing `undefined` is treated as the value not being there.
837
+ * Read more here: https://pris.ly/d/null-undefined
838
+ * @param {PrunedExchangeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
839
+ * @example
840
+ * // Ordered by age ascending
841
+ * // Where email contains prisma.io
842
+ * // Limited to the 10 users
843
+ * const aggregations = await prisma.user.aggregate({
844
+ * _avg: {
845
+ * age: true,
846
+ * },
847
+ * where: {
848
+ * email: {
849
+ * contains: "prisma.io",
850
+ * },
851
+ * },
852
+ * orderBy: {
853
+ * age: "asc",
854
+ * },
855
+ * take: 10,
856
+ * })
857
+ **/
858
+ aggregate<T extends PrunedExchangeAggregateArgs>(args: Prisma.Subset<T, PrunedExchangeAggregateArgs>): Prisma.PrismaPromise<GetPrunedExchangeAggregateType<T>>;
859
+ /**
860
+ * Group by PrunedExchange.
861
+ * Note, that providing `undefined` is treated as the value not being there.
862
+ * Read more here: https://pris.ly/d/null-undefined
863
+ * @param {PrunedExchangeGroupByArgs} args - Group by arguments.
864
+ * @example
865
+ * // Group by city, order by createdAt, get count
866
+ * const result = await prisma.user.groupBy({
867
+ * by: ['city', 'createdAt'],
868
+ * orderBy: {
869
+ * createdAt: true
870
+ * },
871
+ * _count: {
872
+ * _all: true
873
+ * },
874
+ * })
875
+ *
876
+ **/
877
+ groupBy<T extends PrunedExchangeGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
878
+ orderBy: PrunedExchangeGroupByArgs['orderBy'];
879
+ } : {
880
+ orderBy?: PrunedExchangeGroupByArgs['orderBy'];
881
+ }, 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 ? {
882
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
883
+ Error,
884
+ 'Field ',
885
+ P,
886
+ ` in "having" needs to be provided in "by"`
887
+ ];
888
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
889
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
890
+ }[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 ? {} : {
891
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
892
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
893
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
894
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, PrunedExchangeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPrunedExchangeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
895
+ /**
896
+ * Fields of the PrunedExchange model
897
+ */
898
+ readonly fields: PrunedExchangeFieldRefs;
899
+ }
900
+ /**
901
+ * The delegate class that acts as a "Promise-like" for PrunedExchange.
902
+ * Why is this prefixed with `Prisma__`?
903
+ * Because we want to prevent naming conflicts as mentioned in
904
+ * https://github.com/prisma/prisma-client-js/issues/707
905
+ */
906
+ export interface Prisma__PrunedExchangeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
907
+ readonly [Symbol.toStringTag]: "PrismaPromise";
908
+ 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>;
909
+ 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>;
910
+ otherShip<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>;
911
+ /**
912
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
913
+ * @param onfulfilled The callback to execute when the Promise is resolved.
914
+ * @param onrejected The callback to execute when the Promise is rejected.
915
+ * @returns A Promise for the completion of which ever callback is executed.
916
+ */
917
+ 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>;
918
+ /**
919
+ * Attaches a callback for only the rejection of the Promise.
920
+ * @param onrejected The callback to execute when the Promise is rejected.
921
+ * @returns A Promise for the completion of the callback.
922
+ */
923
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
924
+ /**
925
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
926
+ * resolved value cannot be modified from the callback.
927
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
928
+ * @returns A Promise for the completion of the callback.
929
+ */
930
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
931
+ }
932
+ /**
933
+ * Fields of the PrunedExchange model
934
+ */
935
+ export interface PrunedExchangeFieldRefs {
936
+ readonly fleetId: Prisma.FieldRef<"PrunedExchange", 'String'>;
937
+ readonly shipId: Prisma.FieldRef<"PrunedExchange", 'String'>;
938
+ readonly otherShipId: Prisma.FieldRef<"PrunedExchange", 'String'>;
939
+ readonly prunedUpTo: Prisma.FieldRef<"PrunedExchange", 'DateTime'>;
940
+ }
941
+ /**
942
+ * PrunedExchange findUnique
943
+ */
944
+ export type PrunedExchangeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
945
+ /**
946
+ * Select specific fields to fetch from the PrunedExchange
947
+ */
948
+ select?: Prisma.PrunedExchangeSelect<ExtArgs> | null;
949
+ /**
950
+ * Omit specific fields from the PrunedExchange
951
+ */
952
+ omit?: Prisma.PrunedExchangeOmit<ExtArgs> | null;
953
+ /**
954
+ * Choose, which related nodes to fetch as well
955
+ */
956
+ include?: Prisma.PrunedExchangeInclude<ExtArgs> | null;
957
+ /**
958
+ * Filter, which PrunedExchange to fetch.
959
+ */
960
+ where: Prisma.PrunedExchangeWhereUniqueInput;
961
+ };
962
+ /**
963
+ * PrunedExchange findUniqueOrThrow
964
+ */
965
+ export type PrunedExchangeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
966
+ /**
967
+ * Select specific fields to fetch from the PrunedExchange
968
+ */
969
+ select?: Prisma.PrunedExchangeSelect<ExtArgs> | null;
970
+ /**
971
+ * Omit specific fields from the PrunedExchange
972
+ */
973
+ omit?: Prisma.PrunedExchangeOmit<ExtArgs> | null;
974
+ /**
975
+ * Choose, which related nodes to fetch as well
976
+ */
977
+ include?: Prisma.PrunedExchangeInclude<ExtArgs> | null;
978
+ /**
979
+ * Filter, which PrunedExchange to fetch.
980
+ */
981
+ where: Prisma.PrunedExchangeWhereUniqueInput;
982
+ };
983
+ /**
984
+ * PrunedExchange findFirst
985
+ */
986
+ export type PrunedExchangeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
987
+ /**
988
+ * Select specific fields to fetch from the PrunedExchange
989
+ */
990
+ select?: Prisma.PrunedExchangeSelect<ExtArgs> | null;
991
+ /**
992
+ * Omit specific fields from the PrunedExchange
993
+ */
994
+ omit?: Prisma.PrunedExchangeOmit<ExtArgs> | null;
995
+ /**
996
+ * Choose, which related nodes to fetch as well
997
+ */
998
+ include?: Prisma.PrunedExchangeInclude<ExtArgs> | null;
999
+ /**
1000
+ * Filter, which PrunedExchange to fetch.
1001
+ */
1002
+ where?: Prisma.PrunedExchangeWhereInput;
1003
+ /**
1004
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1005
+ *
1006
+ * Determine the order of PrunedExchanges to fetch.
1007
+ */
1008
+ orderBy?: Prisma.PrunedExchangeOrderByWithRelationInput | Prisma.PrunedExchangeOrderByWithRelationInput[];
1009
+ /**
1010
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1011
+ *
1012
+ * Sets the position for searching for PrunedExchanges.
1013
+ */
1014
+ cursor?: Prisma.PrunedExchangeWhereUniqueInput;
1015
+ /**
1016
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1017
+ *
1018
+ * Take `±n` PrunedExchanges from the position of the cursor.
1019
+ */
1020
+ take?: number;
1021
+ /**
1022
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1023
+ *
1024
+ * Skip the first `n` PrunedExchanges.
1025
+ */
1026
+ skip?: number;
1027
+ /**
1028
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1029
+ *
1030
+ * Filter by unique combinations of PrunedExchanges.
1031
+ */
1032
+ distinct?: Prisma.PrunedExchangeScalarFieldEnum | Prisma.PrunedExchangeScalarFieldEnum[];
1033
+ };
1034
+ /**
1035
+ * PrunedExchange findFirstOrThrow
1036
+ */
1037
+ export type PrunedExchangeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1038
+ /**
1039
+ * Select specific fields to fetch from the PrunedExchange
1040
+ */
1041
+ select?: Prisma.PrunedExchangeSelect<ExtArgs> | null;
1042
+ /**
1043
+ * Omit specific fields from the PrunedExchange
1044
+ */
1045
+ omit?: Prisma.PrunedExchangeOmit<ExtArgs> | null;
1046
+ /**
1047
+ * Choose, which related nodes to fetch as well
1048
+ */
1049
+ include?: Prisma.PrunedExchangeInclude<ExtArgs> | null;
1050
+ /**
1051
+ * Filter, which PrunedExchange to fetch.
1052
+ */
1053
+ where?: Prisma.PrunedExchangeWhereInput;
1054
+ /**
1055
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1056
+ *
1057
+ * Determine the order of PrunedExchanges to fetch.
1058
+ */
1059
+ orderBy?: Prisma.PrunedExchangeOrderByWithRelationInput | Prisma.PrunedExchangeOrderByWithRelationInput[];
1060
+ /**
1061
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1062
+ *
1063
+ * Sets the position for searching for PrunedExchanges.
1064
+ */
1065
+ cursor?: Prisma.PrunedExchangeWhereUniqueInput;
1066
+ /**
1067
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1068
+ *
1069
+ * Take `±n` PrunedExchanges from the position of the cursor.
1070
+ */
1071
+ take?: number;
1072
+ /**
1073
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1074
+ *
1075
+ * Skip the first `n` PrunedExchanges.
1076
+ */
1077
+ skip?: number;
1078
+ /**
1079
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1080
+ *
1081
+ * Filter by unique combinations of PrunedExchanges.
1082
+ */
1083
+ distinct?: Prisma.PrunedExchangeScalarFieldEnum | Prisma.PrunedExchangeScalarFieldEnum[];
1084
+ };
1085
+ /**
1086
+ * PrunedExchange findMany
1087
+ */
1088
+ export type PrunedExchangeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1089
+ /**
1090
+ * Select specific fields to fetch from the PrunedExchange
1091
+ */
1092
+ select?: Prisma.PrunedExchangeSelect<ExtArgs> | null;
1093
+ /**
1094
+ * Omit specific fields from the PrunedExchange
1095
+ */
1096
+ omit?: Prisma.PrunedExchangeOmit<ExtArgs> | null;
1097
+ /**
1098
+ * Choose, which related nodes to fetch as well
1099
+ */
1100
+ include?: Prisma.PrunedExchangeInclude<ExtArgs> | null;
1101
+ /**
1102
+ * Filter, which PrunedExchanges to fetch.
1103
+ */
1104
+ where?: Prisma.PrunedExchangeWhereInput;
1105
+ /**
1106
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1107
+ *
1108
+ * Determine the order of PrunedExchanges to fetch.
1109
+ */
1110
+ orderBy?: Prisma.PrunedExchangeOrderByWithRelationInput | Prisma.PrunedExchangeOrderByWithRelationInput[];
1111
+ /**
1112
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1113
+ *
1114
+ * Sets the position for listing PrunedExchanges.
1115
+ */
1116
+ cursor?: Prisma.PrunedExchangeWhereUniqueInput;
1117
+ /**
1118
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1119
+ *
1120
+ * Take `±n` PrunedExchanges from the position of the cursor.
1121
+ */
1122
+ take?: number;
1123
+ /**
1124
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1125
+ *
1126
+ * Skip the first `n` PrunedExchanges.
1127
+ */
1128
+ skip?: number;
1129
+ /**
1130
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1131
+ *
1132
+ * Filter by unique combinations of PrunedExchanges.
1133
+ */
1134
+ distinct?: Prisma.PrunedExchangeScalarFieldEnum | Prisma.PrunedExchangeScalarFieldEnum[];
1135
+ };
1136
+ /**
1137
+ * PrunedExchange create
1138
+ */
1139
+ export type PrunedExchangeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1140
+ /**
1141
+ * Select specific fields to fetch from the PrunedExchange
1142
+ */
1143
+ select?: Prisma.PrunedExchangeSelect<ExtArgs> | null;
1144
+ /**
1145
+ * Omit specific fields from the PrunedExchange
1146
+ */
1147
+ omit?: Prisma.PrunedExchangeOmit<ExtArgs> | null;
1148
+ /**
1149
+ * Choose, which related nodes to fetch as well
1150
+ */
1151
+ include?: Prisma.PrunedExchangeInclude<ExtArgs> | null;
1152
+ /**
1153
+ * The data needed to create a PrunedExchange.
1154
+ */
1155
+ data: Prisma.XOR<Prisma.PrunedExchangeCreateInput, Prisma.PrunedExchangeUncheckedCreateInput>;
1156
+ };
1157
+ /**
1158
+ * PrunedExchange createMany
1159
+ */
1160
+ export type PrunedExchangeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1161
+ /**
1162
+ * The data used to create many PrunedExchanges.
1163
+ */
1164
+ data: Prisma.PrunedExchangeCreateManyInput | Prisma.PrunedExchangeCreateManyInput[];
1165
+ skipDuplicates?: boolean;
1166
+ };
1167
+ /**
1168
+ * PrunedExchange createManyAndReturn
1169
+ */
1170
+ export type PrunedExchangeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1171
+ /**
1172
+ * Select specific fields to fetch from the PrunedExchange
1173
+ */
1174
+ select?: Prisma.PrunedExchangeSelectCreateManyAndReturn<ExtArgs> | null;
1175
+ /**
1176
+ * Omit specific fields from the PrunedExchange
1177
+ */
1178
+ omit?: Prisma.PrunedExchangeOmit<ExtArgs> | null;
1179
+ /**
1180
+ * The data used to create many PrunedExchanges.
1181
+ */
1182
+ data: Prisma.PrunedExchangeCreateManyInput | Prisma.PrunedExchangeCreateManyInput[];
1183
+ skipDuplicates?: boolean;
1184
+ /**
1185
+ * Choose, which related nodes to fetch as well
1186
+ */
1187
+ include?: Prisma.PrunedExchangeIncludeCreateManyAndReturn<ExtArgs> | null;
1188
+ };
1189
+ /**
1190
+ * PrunedExchange update
1191
+ */
1192
+ export type PrunedExchangeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1193
+ /**
1194
+ * Select specific fields to fetch from the PrunedExchange
1195
+ */
1196
+ select?: Prisma.PrunedExchangeSelect<ExtArgs> | null;
1197
+ /**
1198
+ * Omit specific fields from the PrunedExchange
1199
+ */
1200
+ omit?: Prisma.PrunedExchangeOmit<ExtArgs> | null;
1201
+ /**
1202
+ * Choose, which related nodes to fetch as well
1203
+ */
1204
+ include?: Prisma.PrunedExchangeInclude<ExtArgs> | null;
1205
+ /**
1206
+ * The data needed to update a PrunedExchange.
1207
+ */
1208
+ data: Prisma.XOR<Prisma.PrunedExchangeUpdateInput, Prisma.PrunedExchangeUncheckedUpdateInput>;
1209
+ /**
1210
+ * Choose, which PrunedExchange to update.
1211
+ */
1212
+ where: Prisma.PrunedExchangeWhereUniqueInput;
1213
+ };
1214
+ /**
1215
+ * PrunedExchange updateMany
1216
+ */
1217
+ export type PrunedExchangeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1218
+ /**
1219
+ * The data used to update PrunedExchanges.
1220
+ */
1221
+ data: Prisma.XOR<Prisma.PrunedExchangeUpdateManyMutationInput, Prisma.PrunedExchangeUncheckedUpdateManyInput>;
1222
+ /**
1223
+ * Filter which PrunedExchanges to update
1224
+ */
1225
+ where?: Prisma.PrunedExchangeWhereInput;
1226
+ /**
1227
+ * Limit how many PrunedExchanges to update.
1228
+ */
1229
+ limit?: number;
1230
+ };
1231
+ /**
1232
+ * PrunedExchange updateManyAndReturn
1233
+ */
1234
+ export type PrunedExchangeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1235
+ /**
1236
+ * Select specific fields to fetch from the PrunedExchange
1237
+ */
1238
+ select?: Prisma.PrunedExchangeSelectUpdateManyAndReturn<ExtArgs> | null;
1239
+ /**
1240
+ * Omit specific fields from the PrunedExchange
1241
+ */
1242
+ omit?: Prisma.PrunedExchangeOmit<ExtArgs> | null;
1243
+ /**
1244
+ * The data used to update PrunedExchanges.
1245
+ */
1246
+ data: Prisma.XOR<Prisma.PrunedExchangeUpdateManyMutationInput, Prisma.PrunedExchangeUncheckedUpdateManyInput>;
1247
+ /**
1248
+ * Filter which PrunedExchanges to update
1249
+ */
1250
+ where?: Prisma.PrunedExchangeWhereInput;
1251
+ /**
1252
+ * Limit how many PrunedExchanges to update.
1253
+ */
1254
+ limit?: number;
1255
+ /**
1256
+ * Choose, which related nodes to fetch as well
1257
+ */
1258
+ include?: Prisma.PrunedExchangeIncludeUpdateManyAndReturn<ExtArgs> | null;
1259
+ };
1260
+ /**
1261
+ * PrunedExchange upsert
1262
+ */
1263
+ export type PrunedExchangeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1264
+ /**
1265
+ * Select specific fields to fetch from the PrunedExchange
1266
+ */
1267
+ select?: Prisma.PrunedExchangeSelect<ExtArgs> | null;
1268
+ /**
1269
+ * Omit specific fields from the PrunedExchange
1270
+ */
1271
+ omit?: Prisma.PrunedExchangeOmit<ExtArgs> | null;
1272
+ /**
1273
+ * Choose, which related nodes to fetch as well
1274
+ */
1275
+ include?: Prisma.PrunedExchangeInclude<ExtArgs> | null;
1276
+ /**
1277
+ * The filter to search for the PrunedExchange to update in case it exists.
1278
+ */
1279
+ where: Prisma.PrunedExchangeWhereUniqueInput;
1280
+ /**
1281
+ * In case the PrunedExchange found by the `where` argument doesn't exist, create a new PrunedExchange with this data.
1282
+ */
1283
+ create: Prisma.XOR<Prisma.PrunedExchangeCreateInput, Prisma.PrunedExchangeUncheckedCreateInput>;
1284
+ /**
1285
+ * In case the PrunedExchange was found with the provided `where` argument, update it with this data.
1286
+ */
1287
+ update: Prisma.XOR<Prisma.PrunedExchangeUpdateInput, Prisma.PrunedExchangeUncheckedUpdateInput>;
1288
+ };
1289
+ /**
1290
+ * PrunedExchange delete
1291
+ */
1292
+ export type PrunedExchangeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1293
+ /**
1294
+ * Select specific fields to fetch from the PrunedExchange
1295
+ */
1296
+ select?: Prisma.PrunedExchangeSelect<ExtArgs> | null;
1297
+ /**
1298
+ * Omit specific fields from the PrunedExchange
1299
+ */
1300
+ omit?: Prisma.PrunedExchangeOmit<ExtArgs> | null;
1301
+ /**
1302
+ * Choose, which related nodes to fetch as well
1303
+ */
1304
+ include?: Prisma.PrunedExchangeInclude<ExtArgs> | null;
1305
+ /**
1306
+ * Filter which PrunedExchange to delete.
1307
+ */
1308
+ where: Prisma.PrunedExchangeWhereUniqueInput;
1309
+ };
1310
+ /**
1311
+ * PrunedExchange deleteMany
1312
+ */
1313
+ export type PrunedExchangeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1314
+ /**
1315
+ * Filter which PrunedExchanges to delete
1316
+ */
1317
+ where?: Prisma.PrunedExchangeWhereInput;
1318
+ /**
1319
+ * Limit how many PrunedExchanges to delete.
1320
+ */
1321
+ limit?: number;
1322
+ };
1323
+ /**
1324
+ * PrunedExchange without action
1325
+ */
1326
+ export type PrunedExchangeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1327
+ /**
1328
+ * Select specific fields to fetch from the PrunedExchange
1329
+ */
1330
+ select?: Prisma.PrunedExchangeSelect<ExtArgs> | null;
1331
+ /**
1332
+ * Omit specific fields from the PrunedExchange
1333
+ */
1334
+ omit?: Prisma.PrunedExchangeOmit<ExtArgs> | null;
1335
+ /**
1336
+ * Choose, which related nodes to fetch as well
1337
+ */
1338
+ include?: Prisma.PrunedExchangeInclude<ExtArgs> | null;
1339
+ };