@aeolus-fleet/core 0.38.1 → 0.38.2

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