@aeolus-fleet/core 0.20.4 → 0.20.5
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.
- package/dist/adapters/prisma/generated/internal/class.js +4 -4
- package/dist/adapters/prisma/generated/internal/class.js.map +1 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +5 -0
- package/dist/adapters/prisma/generated/internal/prismaNamespace.js +8 -3
- package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +5 -0
- package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +8 -3
- package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -1
- package/dist/adapters/prisma/generated/models/CrewRequest.d.ts +53 -1
- package/dist/adapters/prisma/generated/models/NetworkSettings.d.ts +107 -1
- package/dist/adapters/prisma/generated/models/ReachRefusal.d.ts +40 -1
- package/dist/adapters/prisma/network.js +30 -10
- package/dist/adapters/prisma/network.js.map +1 -1
- package/dist/adapters/prisma/registry.js +13 -6
- package/dist/adapters/prisma/registry.js.map +1 -1
- package/dist/adapters/prisma/rows.d.ts +2 -0
- package/dist/adapters/prisma/rows.js +8 -1
- package/dist/adapters/prisma/rows.js.map +1 -1
- package/dist/adapters/trpc/context.d.ts +4 -0
- package/dist/adapters/trpc/fleet.d.ts +23 -3
- package/dist/adapters/trpc/fleet.js +26 -2
- package/dist/adapters/trpc/fleet.js.map +1 -1
- package/dist/adapters/trpc/router.d.ts +21 -3
- package/dist/adapters/trpc/ship-contract.js +2 -0
- package/dist/adapters/trpc/ship-contract.js.map +1 -1
- package/dist/adapters/trpc/trpc.js +2 -0
- package/dist/adapters/trpc/trpc.js.map +1 -1
- package/dist/domain/registry/check-reach.d.ts +5 -1
- package/dist/domain/registry/check-reach.js +18 -4
- package/dist/domain/registry/check-reach.js.map +1 -1
- package/dist/domain/registry/crew-request.d.ts +9 -3
- package/dist/domain/registry/crew-request.js +18 -6
- package/dist/domain/registry/crew-request.js.map +1 -1
- package/dist/domain/registry/network-settings.d.ts +70 -6
- package/dist/domain/registry/network-settings.js +97 -4
- package/dist/domain/registry/network-settings.js.map +1 -1
- package/dist/domain/registry/ports.d.ts +6 -0
- package/dist/domain/registry/reach-refusal.d.ts +3 -1
- package/dist/domain/registry/register-network-plugin.d.ts +28 -0
- package/dist/domain/registry/register-network-plugin.js +26 -0
- package/dist/domain/registry/register-network-plugin.js.map +1 -0
- package/dist/domain/registry/retire-ship.d.ts +7 -4
- package/dist/domain/registry/retire-ship.js +14 -3
- package/dist/domain/registry/retire-ship.js.map +1 -1
- package/dist/domain/registry/set-network-rules.js +1 -1
- package/dist/domain/registry/set-network-rules.js.map +1 -1
- package/dist/domain/registry/unregister-network-plugin.d.ts +27 -0
- package/dist/domain/registry/unregister-network-plugin.js +25 -0
- package/dist/domain/registry/unregister-network-plugin.js.map +1 -0
- package/dist/domain/shared/errors.d.ts +1 -1
- package/dist/domain/shared/errors.js.map +1 -1
- package/dist/wiring.d.ts +4 -0
- package/dist/wiring.js +4 -0
- package/dist/wiring.js.map +1 -1
- package/package.json +2 -2
- package/src/adapters/prisma/migrations/20261010070000_crew_request_is_final/migration.sql +7 -0
- package/src/adapters/prisma/migrations/20261010080000_network_plugin/migration.sql +21 -0
- package/src/adapters/prisma/schema.prisma +13 -3
|
@@ -16,42 +16,64 @@ export type AggregateNetworkSettings = {
|
|
|
16
16
|
};
|
|
17
17
|
export type NetworkSettingsAvgAggregateOutputType = {
|
|
18
18
|
version: number | null;
|
|
19
|
+
pluginNotRespondingAfterSeconds: number | null;
|
|
19
20
|
};
|
|
20
21
|
export type NetworkSettingsSumAggregateOutputType = {
|
|
21
22
|
version: number | null;
|
|
23
|
+
pluginNotRespondingAfterSeconds: number | null;
|
|
22
24
|
};
|
|
23
25
|
export type NetworkSettingsMinAggregateOutputType = {
|
|
24
26
|
fleetId: string | null;
|
|
25
27
|
version: number | null;
|
|
28
|
+
pluginShipId: string | null;
|
|
29
|
+
pluginWhileUnavailable: string | null;
|
|
30
|
+
pluginNotRespondingAfterSeconds: number | null;
|
|
26
31
|
};
|
|
27
32
|
export type NetworkSettingsMaxAggregateOutputType = {
|
|
28
33
|
fleetId: string | null;
|
|
29
34
|
version: number | null;
|
|
35
|
+
pluginShipId: string | null;
|
|
36
|
+
pluginWhileUnavailable: string | null;
|
|
37
|
+
pluginNotRespondingAfterSeconds: number | null;
|
|
30
38
|
};
|
|
31
39
|
export type NetworkSettingsCountAggregateOutputType = {
|
|
32
40
|
fleetId: number;
|
|
33
41
|
rules: number;
|
|
34
42
|
version: number;
|
|
43
|
+
pluginShipId: number;
|
|
44
|
+
pluginWhileUnavailable: number;
|
|
45
|
+
pluginNotRespondingAfterSeconds: number;
|
|
35
46
|
_all: number;
|
|
36
47
|
};
|
|
37
48
|
export type NetworkSettingsAvgAggregateInputType = {
|
|
38
49
|
version?: true;
|
|
50
|
+
pluginNotRespondingAfterSeconds?: true;
|
|
39
51
|
};
|
|
40
52
|
export type NetworkSettingsSumAggregateInputType = {
|
|
41
53
|
version?: true;
|
|
54
|
+
pluginNotRespondingAfterSeconds?: true;
|
|
42
55
|
};
|
|
43
56
|
export type NetworkSettingsMinAggregateInputType = {
|
|
44
57
|
fleetId?: true;
|
|
45
58
|
version?: true;
|
|
59
|
+
pluginShipId?: true;
|
|
60
|
+
pluginWhileUnavailable?: true;
|
|
61
|
+
pluginNotRespondingAfterSeconds?: true;
|
|
46
62
|
};
|
|
47
63
|
export type NetworkSettingsMaxAggregateInputType = {
|
|
48
64
|
fleetId?: true;
|
|
49
65
|
version?: true;
|
|
66
|
+
pluginShipId?: true;
|
|
67
|
+
pluginWhileUnavailable?: true;
|
|
68
|
+
pluginNotRespondingAfterSeconds?: true;
|
|
50
69
|
};
|
|
51
70
|
export type NetworkSettingsCountAggregateInputType = {
|
|
52
71
|
fleetId?: true;
|
|
53
72
|
rules?: true;
|
|
54
73
|
version?: true;
|
|
74
|
+
pluginShipId?: true;
|
|
75
|
+
pluginWhileUnavailable?: true;
|
|
76
|
+
pluginNotRespondingAfterSeconds?: true;
|
|
55
77
|
_all?: true;
|
|
56
78
|
};
|
|
57
79
|
export type NetworkSettingsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
@@ -134,6 +156,9 @@ export type NetworkSettingsGroupByOutputType = {
|
|
|
134
156
|
fleetId: string;
|
|
135
157
|
rules: runtime.JsonValue | null;
|
|
136
158
|
version: number;
|
|
159
|
+
pluginShipId: string | null;
|
|
160
|
+
pluginWhileUnavailable: string | null;
|
|
161
|
+
pluginNotRespondingAfterSeconds: number | null;
|
|
137
162
|
_count: NetworkSettingsCountAggregateOutputType | null;
|
|
138
163
|
_avg: NetworkSettingsAvgAggregateOutputType | null;
|
|
139
164
|
_sum: NetworkSettingsSumAggregateOutputType | null;
|
|
@@ -150,12 +175,18 @@ export type NetworkSettingsWhereInput = {
|
|
|
150
175
|
fleetId?: Prisma.StringFilter<"NetworkSettings"> | string;
|
|
151
176
|
rules?: Prisma.JsonNullableFilter<"NetworkSettings">;
|
|
152
177
|
version?: Prisma.IntFilter<"NetworkSettings"> | number;
|
|
178
|
+
pluginShipId?: Prisma.StringNullableFilter<"NetworkSettings"> | string | null;
|
|
179
|
+
pluginWhileUnavailable?: Prisma.StringNullableFilter<"NetworkSettings"> | string | null;
|
|
180
|
+
pluginNotRespondingAfterSeconds?: Prisma.IntNullableFilter<"NetworkSettings"> | number | null;
|
|
153
181
|
fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
|
|
154
182
|
};
|
|
155
183
|
export type NetworkSettingsOrderByWithRelationInput = {
|
|
156
184
|
fleetId?: Prisma.SortOrder;
|
|
157
185
|
rules?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
158
186
|
version?: Prisma.SortOrder;
|
|
187
|
+
pluginShipId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
188
|
+
pluginWhileUnavailable?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
189
|
+
pluginNotRespondingAfterSeconds?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
159
190
|
fleet?: Prisma.FleetOrderByWithRelationInput;
|
|
160
191
|
};
|
|
161
192
|
export type NetworkSettingsWhereUniqueInput = Prisma.AtLeast<{
|
|
@@ -165,12 +196,18 @@ export type NetworkSettingsWhereUniqueInput = Prisma.AtLeast<{
|
|
|
165
196
|
NOT?: Prisma.NetworkSettingsWhereInput | Prisma.NetworkSettingsWhereInput[];
|
|
166
197
|
rules?: Prisma.JsonNullableFilter<"NetworkSettings">;
|
|
167
198
|
version?: Prisma.IntFilter<"NetworkSettings"> | number;
|
|
199
|
+
pluginShipId?: Prisma.StringNullableFilter<"NetworkSettings"> | string | null;
|
|
200
|
+
pluginWhileUnavailable?: Prisma.StringNullableFilter<"NetworkSettings"> | string | null;
|
|
201
|
+
pluginNotRespondingAfterSeconds?: Prisma.IntNullableFilter<"NetworkSettings"> | number | null;
|
|
168
202
|
fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
|
|
169
203
|
}, "fleetId">;
|
|
170
204
|
export type NetworkSettingsOrderByWithAggregationInput = {
|
|
171
205
|
fleetId?: Prisma.SortOrder;
|
|
172
206
|
rules?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
173
207
|
version?: Prisma.SortOrder;
|
|
208
|
+
pluginShipId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
209
|
+
pluginWhileUnavailable?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
210
|
+
pluginNotRespondingAfterSeconds?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
174
211
|
_count?: Prisma.NetworkSettingsCountOrderByAggregateInput;
|
|
175
212
|
_avg?: Prisma.NetworkSettingsAvgOrderByAggregateInput;
|
|
176
213
|
_max?: Prisma.NetworkSettingsMaxOrderByAggregateInput;
|
|
@@ -184,40 +221,64 @@ export type NetworkSettingsScalarWhereWithAggregatesInput = {
|
|
|
184
221
|
fleetId?: Prisma.StringWithAggregatesFilter<"NetworkSettings"> | string;
|
|
185
222
|
rules?: Prisma.JsonNullableWithAggregatesFilter<"NetworkSettings">;
|
|
186
223
|
version?: Prisma.IntWithAggregatesFilter<"NetworkSettings"> | number;
|
|
224
|
+
pluginShipId?: Prisma.StringNullableWithAggregatesFilter<"NetworkSettings"> | string | null;
|
|
225
|
+
pluginWhileUnavailable?: Prisma.StringNullableWithAggregatesFilter<"NetworkSettings"> | string | null;
|
|
226
|
+
pluginNotRespondingAfterSeconds?: Prisma.IntNullableWithAggregatesFilter<"NetworkSettings"> | number | null;
|
|
187
227
|
};
|
|
188
228
|
export type NetworkSettingsCreateInput = {
|
|
189
229
|
rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
190
230
|
version: number;
|
|
231
|
+
pluginShipId?: string | null;
|
|
232
|
+
pluginWhileUnavailable?: string | null;
|
|
233
|
+
pluginNotRespondingAfterSeconds?: number | null;
|
|
191
234
|
fleet: Prisma.FleetCreateNestedOneWithoutNetworkSettingsInput;
|
|
192
235
|
};
|
|
193
236
|
export type NetworkSettingsUncheckedCreateInput = {
|
|
194
237
|
fleetId: string;
|
|
195
238
|
rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
196
239
|
version: number;
|
|
240
|
+
pluginShipId?: string | null;
|
|
241
|
+
pluginWhileUnavailable?: string | null;
|
|
242
|
+
pluginNotRespondingAfterSeconds?: number | null;
|
|
197
243
|
};
|
|
198
244
|
export type NetworkSettingsUpdateInput = {
|
|
199
245
|
rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
200
246
|
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
247
|
+
pluginShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
248
|
+
pluginWhileUnavailable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
249
|
+
pluginNotRespondingAfterSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
201
250
|
fleet?: Prisma.FleetUpdateOneRequiredWithoutNetworkSettingsNestedInput;
|
|
202
251
|
};
|
|
203
252
|
export type NetworkSettingsUncheckedUpdateInput = {
|
|
204
253
|
fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
205
254
|
rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
206
255
|
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
256
|
+
pluginShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
257
|
+
pluginWhileUnavailable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
258
|
+
pluginNotRespondingAfterSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
207
259
|
};
|
|
208
260
|
export type NetworkSettingsCreateManyInput = {
|
|
209
261
|
fleetId: string;
|
|
210
262
|
rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
211
263
|
version: number;
|
|
264
|
+
pluginShipId?: string | null;
|
|
265
|
+
pluginWhileUnavailable?: string | null;
|
|
266
|
+
pluginNotRespondingAfterSeconds?: number | null;
|
|
212
267
|
};
|
|
213
268
|
export type NetworkSettingsUpdateManyMutationInput = {
|
|
214
269
|
rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
215
270
|
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
271
|
+
pluginShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
272
|
+
pluginWhileUnavailable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
273
|
+
pluginNotRespondingAfterSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
216
274
|
};
|
|
217
275
|
export type NetworkSettingsUncheckedUpdateManyInput = {
|
|
218
276
|
fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
219
277
|
rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
220
278
|
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
279
|
+
pluginShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
280
|
+
pluginWhileUnavailable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
281
|
+
pluginNotRespondingAfterSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
221
282
|
};
|
|
222
283
|
export type NetworkSettingsNullableScalarRelationFilter = {
|
|
223
284
|
is?: Prisma.NetworkSettingsWhereInput | null;
|
|
@@ -227,20 +288,31 @@ export type NetworkSettingsCountOrderByAggregateInput = {
|
|
|
227
288
|
fleetId?: Prisma.SortOrder;
|
|
228
289
|
rules?: Prisma.SortOrder;
|
|
229
290
|
version?: Prisma.SortOrder;
|
|
291
|
+
pluginShipId?: Prisma.SortOrder;
|
|
292
|
+
pluginWhileUnavailable?: Prisma.SortOrder;
|
|
293
|
+
pluginNotRespondingAfterSeconds?: Prisma.SortOrder;
|
|
230
294
|
};
|
|
231
295
|
export type NetworkSettingsAvgOrderByAggregateInput = {
|
|
232
296
|
version?: Prisma.SortOrder;
|
|
297
|
+
pluginNotRespondingAfterSeconds?: Prisma.SortOrder;
|
|
233
298
|
};
|
|
234
299
|
export type NetworkSettingsMaxOrderByAggregateInput = {
|
|
235
300
|
fleetId?: Prisma.SortOrder;
|
|
236
301
|
version?: Prisma.SortOrder;
|
|
302
|
+
pluginShipId?: Prisma.SortOrder;
|
|
303
|
+
pluginWhileUnavailable?: Prisma.SortOrder;
|
|
304
|
+
pluginNotRespondingAfterSeconds?: Prisma.SortOrder;
|
|
237
305
|
};
|
|
238
306
|
export type NetworkSettingsMinOrderByAggregateInput = {
|
|
239
307
|
fleetId?: Prisma.SortOrder;
|
|
240
308
|
version?: Prisma.SortOrder;
|
|
309
|
+
pluginShipId?: Prisma.SortOrder;
|
|
310
|
+
pluginWhileUnavailable?: Prisma.SortOrder;
|
|
311
|
+
pluginNotRespondingAfterSeconds?: Prisma.SortOrder;
|
|
241
312
|
};
|
|
242
313
|
export type NetworkSettingsSumOrderByAggregateInput = {
|
|
243
314
|
version?: Prisma.SortOrder;
|
|
315
|
+
pluginNotRespondingAfterSeconds?: Prisma.SortOrder;
|
|
244
316
|
};
|
|
245
317
|
export type NetworkSettingsCreateNestedOneWithoutFleetInput = {
|
|
246
318
|
create?: Prisma.XOR<Prisma.NetworkSettingsCreateWithoutFleetInput, Prisma.NetworkSettingsUncheckedCreateWithoutFleetInput>;
|
|
@@ -273,10 +345,16 @@ export type NetworkSettingsUncheckedUpdateOneWithoutFleetNestedInput = {
|
|
|
273
345
|
export type NetworkSettingsCreateWithoutFleetInput = {
|
|
274
346
|
rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
275
347
|
version: number;
|
|
348
|
+
pluginShipId?: string | null;
|
|
349
|
+
pluginWhileUnavailable?: string | null;
|
|
350
|
+
pluginNotRespondingAfterSeconds?: number | null;
|
|
276
351
|
};
|
|
277
352
|
export type NetworkSettingsUncheckedCreateWithoutFleetInput = {
|
|
278
353
|
rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
279
354
|
version: number;
|
|
355
|
+
pluginShipId?: string | null;
|
|
356
|
+
pluginWhileUnavailable?: string | null;
|
|
357
|
+
pluginNotRespondingAfterSeconds?: number | null;
|
|
280
358
|
};
|
|
281
359
|
export type NetworkSettingsCreateOrConnectWithoutFleetInput = {
|
|
282
360
|
where: Prisma.NetworkSettingsWhereUniqueInput;
|
|
@@ -294,35 +372,53 @@ export type NetworkSettingsUpdateToOneWithWhereWithoutFleetInput = {
|
|
|
294
372
|
export type NetworkSettingsUpdateWithoutFleetInput = {
|
|
295
373
|
rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
296
374
|
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
375
|
+
pluginShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
376
|
+
pluginWhileUnavailable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
377
|
+
pluginNotRespondingAfterSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
297
378
|
};
|
|
298
379
|
export type NetworkSettingsUncheckedUpdateWithoutFleetInput = {
|
|
299
380
|
rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
300
381
|
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
382
|
+
pluginShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
383
|
+
pluginWhileUnavailable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
384
|
+
pluginNotRespondingAfterSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
301
385
|
};
|
|
302
386
|
export type NetworkSettingsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
303
387
|
fleetId?: boolean;
|
|
304
388
|
rules?: boolean;
|
|
305
389
|
version?: boolean;
|
|
390
|
+
pluginShipId?: boolean;
|
|
391
|
+
pluginWhileUnavailable?: boolean;
|
|
392
|
+
pluginNotRespondingAfterSeconds?: boolean;
|
|
306
393
|
fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
|
|
307
394
|
}, ExtArgs["result"]["networkSettings"]>;
|
|
308
395
|
export type NetworkSettingsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
309
396
|
fleetId?: boolean;
|
|
310
397
|
rules?: boolean;
|
|
311
398
|
version?: boolean;
|
|
399
|
+
pluginShipId?: boolean;
|
|
400
|
+
pluginWhileUnavailable?: boolean;
|
|
401
|
+
pluginNotRespondingAfterSeconds?: boolean;
|
|
312
402
|
fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
|
|
313
403
|
}, ExtArgs["result"]["networkSettings"]>;
|
|
314
404
|
export type NetworkSettingsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
315
405
|
fleetId?: boolean;
|
|
316
406
|
rules?: boolean;
|
|
317
407
|
version?: boolean;
|
|
408
|
+
pluginShipId?: boolean;
|
|
409
|
+
pluginWhileUnavailable?: boolean;
|
|
410
|
+
pluginNotRespondingAfterSeconds?: boolean;
|
|
318
411
|
fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
|
|
319
412
|
}, ExtArgs["result"]["networkSettings"]>;
|
|
320
413
|
export type NetworkSettingsSelectScalar = {
|
|
321
414
|
fleetId?: boolean;
|
|
322
415
|
rules?: boolean;
|
|
323
416
|
version?: boolean;
|
|
417
|
+
pluginShipId?: boolean;
|
|
418
|
+
pluginWhileUnavailable?: boolean;
|
|
419
|
+
pluginNotRespondingAfterSeconds?: boolean;
|
|
324
420
|
};
|
|
325
|
-
export type NetworkSettingsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"fleetId" | "rules" | "version", ExtArgs["result"]["networkSettings"]>;
|
|
421
|
+
export type NetworkSettingsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"fleetId" | "rules" | "version" | "pluginShipId" | "pluginWhileUnavailable" | "pluginNotRespondingAfterSeconds", ExtArgs["result"]["networkSettings"]>;
|
|
326
422
|
export type NetworkSettingsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
327
423
|
fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
|
|
328
424
|
};
|
|
@@ -341,6 +437,13 @@ export type $NetworkSettingsPayload<ExtArgs extends runtime.Types.Extensions.Int
|
|
|
341
437
|
fleetId: string;
|
|
342
438
|
rules: runtime.JsonValue | null;
|
|
343
439
|
version: number;
|
|
440
|
+
/**
|
|
441
|
+
* The fleet's networking plugin (decision 0035): its ship and what it
|
|
442
|
+
* declared, all three set or none.
|
|
443
|
+
*/
|
|
444
|
+
pluginShipId: string | null;
|
|
445
|
+
pluginWhileUnavailable: string | null;
|
|
446
|
+
pluginNotRespondingAfterSeconds: number | null;
|
|
344
447
|
}, ExtArgs["result"]["networkSettings"]>;
|
|
345
448
|
composites: {};
|
|
346
449
|
};
|
|
@@ -699,6 +802,9 @@ export interface NetworkSettingsFieldRefs {
|
|
|
699
802
|
readonly fleetId: Prisma.FieldRef<"NetworkSettings", 'String'>;
|
|
700
803
|
readonly rules: Prisma.FieldRef<"NetworkSettings", 'Json'>;
|
|
701
804
|
readonly version: Prisma.FieldRef<"NetworkSettings", 'Int'>;
|
|
805
|
+
readonly pluginShipId: Prisma.FieldRef<"NetworkSettings", 'String'>;
|
|
806
|
+
readonly pluginWhileUnavailable: Prisma.FieldRef<"NetworkSettings", 'String'>;
|
|
807
|
+
readonly pluginNotRespondingAfterSeconds: Prisma.FieldRef<"NetworkSettings", 'Int'>;
|
|
702
808
|
}
|
|
703
809
|
/**
|
|
704
810
|
* NetworkSettings findUnique
|
|
@@ -26,12 +26,14 @@ export type ReachRefusalMinAggregateOutputType = {
|
|
|
26
26
|
fleetId: string | null;
|
|
27
27
|
at: Date | null;
|
|
28
28
|
settingsVersion: number | null;
|
|
29
|
+
whilePluginUnavailable: string | null;
|
|
29
30
|
};
|
|
30
31
|
export type ReachRefusalMaxAggregateOutputType = {
|
|
31
32
|
id: string | null;
|
|
32
33
|
fleetId: string | null;
|
|
33
34
|
at: Date | null;
|
|
34
35
|
settingsVersion: number | null;
|
|
36
|
+
whilePluginUnavailable: string | null;
|
|
35
37
|
};
|
|
36
38
|
export type ReachRefusalCountAggregateOutputType = {
|
|
37
39
|
id: number;
|
|
@@ -40,6 +42,7 @@ export type ReachRefusalCountAggregateOutputType = {
|
|
|
40
42
|
sender: number;
|
|
41
43
|
recipient: number;
|
|
42
44
|
settingsVersion: number;
|
|
45
|
+
whilePluginUnavailable: number;
|
|
43
46
|
_all: number;
|
|
44
47
|
};
|
|
45
48
|
export type ReachRefusalAvgAggregateInputType = {
|
|
@@ -53,12 +56,14 @@ export type ReachRefusalMinAggregateInputType = {
|
|
|
53
56
|
fleetId?: true;
|
|
54
57
|
at?: true;
|
|
55
58
|
settingsVersion?: true;
|
|
59
|
+
whilePluginUnavailable?: true;
|
|
56
60
|
};
|
|
57
61
|
export type ReachRefusalMaxAggregateInputType = {
|
|
58
62
|
id?: true;
|
|
59
63
|
fleetId?: true;
|
|
60
64
|
at?: true;
|
|
61
65
|
settingsVersion?: true;
|
|
66
|
+
whilePluginUnavailable?: true;
|
|
62
67
|
};
|
|
63
68
|
export type ReachRefusalCountAggregateInputType = {
|
|
64
69
|
id?: true;
|
|
@@ -67,6 +72,7 @@ export type ReachRefusalCountAggregateInputType = {
|
|
|
67
72
|
sender?: true;
|
|
68
73
|
recipient?: true;
|
|
69
74
|
settingsVersion?: true;
|
|
75
|
+
whilePluginUnavailable?: true;
|
|
70
76
|
_all?: true;
|
|
71
77
|
};
|
|
72
78
|
export type ReachRefusalAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
@@ -152,6 +158,7 @@ export type ReachRefusalGroupByOutputType = {
|
|
|
152
158
|
sender: runtime.JsonValue;
|
|
153
159
|
recipient: runtime.JsonValue;
|
|
154
160
|
settingsVersion: number;
|
|
161
|
+
whilePluginUnavailable: string | null;
|
|
155
162
|
_count: ReachRefusalCountAggregateOutputType | null;
|
|
156
163
|
_avg: ReachRefusalAvgAggregateOutputType | null;
|
|
157
164
|
_sum: ReachRefusalSumAggregateOutputType | null;
|
|
@@ -171,6 +178,7 @@ export type ReachRefusalWhereInput = {
|
|
|
171
178
|
sender?: Prisma.JsonFilter<"ReachRefusal">;
|
|
172
179
|
recipient?: Prisma.JsonFilter<"ReachRefusal">;
|
|
173
180
|
settingsVersion?: Prisma.IntFilter<"ReachRefusal"> | number;
|
|
181
|
+
whilePluginUnavailable?: Prisma.StringNullableFilter<"ReachRefusal"> | string | null;
|
|
174
182
|
fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
|
|
175
183
|
};
|
|
176
184
|
export type ReachRefusalOrderByWithRelationInput = {
|
|
@@ -180,6 +188,7 @@ export type ReachRefusalOrderByWithRelationInput = {
|
|
|
180
188
|
sender?: Prisma.SortOrder;
|
|
181
189
|
recipient?: Prisma.SortOrder;
|
|
182
190
|
settingsVersion?: Prisma.SortOrder;
|
|
191
|
+
whilePluginUnavailable?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
183
192
|
fleet?: Prisma.FleetOrderByWithRelationInput;
|
|
184
193
|
};
|
|
185
194
|
export type ReachRefusalWhereUniqueInput = Prisma.AtLeast<{
|
|
@@ -192,6 +201,7 @@ export type ReachRefusalWhereUniqueInput = Prisma.AtLeast<{
|
|
|
192
201
|
sender?: Prisma.JsonFilter<"ReachRefusal">;
|
|
193
202
|
recipient?: Prisma.JsonFilter<"ReachRefusal">;
|
|
194
203
|
settingsVersion?: Prisma.IntFilter<"ReachRefusal"> | number;
|
|
204
|
+
whilePluginUnavailable?: Prisma.StringNullableFilter<"ReachRefusal"> | string | null;
|
|
195
205
|
fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
|
|
196
206
|
}, "id">;
|
|
197
207
|
export type ReachRefusalOrderByWithAggregationInput = {
|
|
@@ -201,6 +211,7 @@ export type ReachRefusalOrderByWithAggregationInput = {
|
|
|
201
211
|
sender?: Prisma.SortOrder;
|
|
202
212
|
recipient?: Prisma.SortOrder;
|
|
203
213
|
settingsVersion?: Prisma.SortOrder;
|
|
214
|
+
whilePluginUnavailable?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
204
215
|
_count?: Prisma.ReachRefusalCountOrderByAggregateInput;
|
|
205
216
|
_avg?: Prisma.ReachRefusalAvgOrderByAggregateInput;
|
|
206
217
|
_max?: Prisma.ReachRefusalMaxOrderByAggregateInput;
|
|
@@ -217,6 +228,7 @@ export type ReachRefusalScalarWhereWithAggregatesInput = {
|
|
|
217
228
|
sender?: Prisma.JsonWithAggregatesFilter<"ReachRefusal">;
|
|
218
229
|
recipient?: Prisma.JsonWithAggregatesFilter<"ReachRefusal">;
|
|
219
230
|
settingsVersion?: Prisma.IntWithAggregatesFilter<"ReachRefusal"> | number;
|
|
231
|
+
whilePluginUnavailable?: Prisma.StringNullableWithAggregatesFilter<"ReachRefusal"> | string | null;
|
|
220
232
|
};
|
|
221
233
|
export type ReachRefusalCreateInput = {
|
|
222
234
|
id: string;
|
|
@@ -224,6 +236,7 @@ export type ReachRefusalCreateInput = {
|
|
|
224
236
|
sender: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
225
237
|
recipient: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
226
238
|
settingsVersion: number;
|
|
239
|
+
whilePluginUnavailable?: string | null;
|
|
227
240
|
fleet: Prisma.FleetCreateNestedOneWithoutReachRefusalsInput;
|
|
228
241
|
};
|
|
229
242
|
export type ReachRefusalUncheckedCreateInput = {
|
|
@@ -233,6 +246,7 @@ export type ReachRefusalUncheckedCreateInput = {
|
|
|
233
246
|
sender: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
234
247
|
recipient: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
235
248
|
settingsVersion: number;
|
|
249
|
+
whilePluginUnavailable?: string | null;
|
|
236
250
|
};
|
|
237
251
|
export type ReachRefusalUpdateInput = {
|
|
238
252
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -240,6 +254,7 @@ export type ReachRefusalUpdateInput = {
|
|
|
240
254
|
sender?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
241
255
|
recipient?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
242
256
|
settingsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
257
|
+
whilePluginUnavailable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
243
258
|
fleet?: Prisma.FleetUpdateOneRequiredWithoutReachRefusalsNestedInput;
|
|
244
259
|
};
|
|
245
260
|
export type ReachRefusalUncheckedUpdateInput = {
|
|
@@ -249,6 +264,7 @@ export type ReachRefusalUncheckedUpdateInput = {
|
|
|
249
264
|
sender?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
250
265
|
recipient?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
251
266
|
settingsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
267
|
+
whilePluginUnavailable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
252
268
|
};
|
|
253
269
|
export type ReachRefusalCreateManyInput = {
|
|
254
270
|
id: string;
|
|
@@ -257,6 +273,7 @@ export type ReachRefusalCreateManyInput = {
|
|
|
257
273
|
sender: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
258
274
|
recipient: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
259
275
|
settingsVersion: number;
|
|
276
|
+
whilePluginUnavailable?: string | null;
|
|
260
277
|
};
|
|
261
278
|
export type ReachRefusalUpdateManyMutationInput = {
|
|
262
279
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -264,6 +281,7 @@ export type ReachRefusalUpdateManyMutationInput = {
|
|
|
264
281
|
sender?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
265
282
|
recipient?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
266
283
|
settingsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
284
|
+
whilePluginUnavailable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
267
285
|
};
|
|
268
286
|
export type ReachRefusalUncheckedUpdateManyInput = {
|
|
269
287
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -272,6 +290,7 @@ export type ReachRefusalUncheckedUpdateManyInput = {
|
|
|
272
290
|
sender?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
273
291
|
recipient?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
274
292
|
settingsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
293
|
+
whilePluginUnavailable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
275
294
|
};
|
|
276
295
|
export type ReachRefusalListRelationFilter = {
|
|
277
296
|
every?: Prisma.ReachRefusalWhereInput;
|
|
@@ -288,6 +307,7 @@ export type ReachRefusalCountOrderByAggregateInput = {
|
|
|
288
307
|
sender?: Prisma.SortOrder;
|
|
289
308
|
recipient?: Prisma.SortOrder;
|
|
290
309
|
settingsVersion?: Prisma.SortOrder;
|
|
310
|
+
whilePluginUnavailable?: Prisma.SortOrder;
|
|
291
311
|
};
|
|
292
312
|
export type ReachRefusalAvgOrderByAggregateInput = {
|
|
293
313
|
settingsVersion?: Prisma.SortOrder;
|
|
@@ -297,12 +317,14 @@ export type ReachRefusalMaxOrderByAggregateInput = {
|
|
|
297
317
|
fleetId?: Prisma.SortOrder;
|
|
298
318
|
at?: Prisma.SortOrder;
|
|
299
319
|
settingsVersion?: Prisma.SortOrder;
|
|
320
|
+
whilePluginUnavailable?: Prisma.SortOrder;
|
|
300
321
|
};
|
|
301
322
|
export type ReachRefusalMinOrderByAggregateInput = {
|
|
302
323
|
id?: Prisma.SortOrder;
|
|
303
324
|
fleetId?: Prisma.SortOrder;
|
|
304
325
|
at?: Prisma.SortOrder;
|
|
305
326
|
settingsVersion?: Prisma.SortOrder;
|
|
327
|
+
whilePluginUnavailable?: Prisma.SortOrder;
|
|
306
328
|
};
|
|
307
329
|
export type ReachRefusalSumOrderByAggregateInput = {
|
|
308
330
|
settingsVersion?: Prisma.SortOrder;
|
|
@@ -351,6 +373,7 @@ export type ReachRefusalCreateWithoutFleetInput = {
|
|
|
351
373
|
sender: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
352
374
|
recipient: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
353
375
|
settingsVersion: number;
|
|
376
|
+
whilePluginUnavailable?: string | null;
|
|
354
377
|
};
|
|
355
378
|
export type ReachRefusalUncheckedCreateWithoutFleetInput = {
|
|
356
379
|
id: string;
|
|
@@ -358,6 +381,7 @@ export type ReachRefusalUncheckedCreateWithoutFleetInput = {
|
|
|
358
381
|
sender: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
359
382
|
recipient: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
360
383
|
settingsVersion: number;
|
|
384
|
+
whilePluginUnavailable?: string | null;
|
|
361
385
|
};
|
|
362
386
|
export type ReachRefusalCreateOrConnectWithoutFleetInput = {
|
|
363
387
|
where: Prisma.ReachRefusalWhereUniqueInput;
|
|
@@ -390,6 +414,7 @@ export type ReachRefusalScalarWhereInput = {
|
|
|
390
414
|
sender?: Prisma.JsonFilter<"ReachRefusal">;
|
|
391
415
|
recipient?: Prisma.JsonFilter<"ReachRefusal">;
|
|
392
416
|
settingsVersion?: Prisma.IntFilter<"ReachRefusal"> | number;
|
|
417
|
+
whilePluginUnavailable?: Prisma.StringNullableFilter<"ReachRefusal"> | string | null;
|
|
393
418
|
};
|
|
394
419
|
export type ReachRefusalCreateManyFleetInput = {
|
|
395
420
|
id: string;
|
|
@@ -397,6 +422,7 @@ export type ReachRefusalCreateManyFleetInput = {
|
|
|
397
422
|
sender: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
398
423
|
recipient: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
399
424
|
settingsVersion: number;
|
|
425
|
+
whilePluginUnavailable?: string | null;
|
|
400
426
|
};
|
|
401
427
|
export type ReachRefusalUpdateWithoutFleetInput = {
|
|
402
428
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -404,6 +430,7 @@ export type ReachRefusalUpdateWithoutFleetInput = {
|
|
|
404
430
|
sender?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
405
431
|
recipient?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
406
432
|
settingsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
433
|
+
whilePluginUnavailable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
407
434
|
};
|
|
408
435
|
export type ReachRefusalUncheckedUpdateWithoutFleetInput = {
|
|
409
436
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -411,6 +438,7 @@ export type ReachRefusalUncheckedUpdateWithoutFleetInput = {
|
|
|
411
438
|
sender?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
412
439
|
recipient?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
413
440
|
settingsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
441
|
+
whilePluginUnavailable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
414
442
|
};
|
|
415
443
|
export type ReachRefusalUncheckedUpdateManyWithoutFleetInput = {
|
|
416
444
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -418,6 +446,7 @@ export type ReachRefusalUncheckedUpdateManyWithoutFleetInput = {
|
|
|
418
446
|
sender?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
419
447
|
recipient?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
420
448
|
settingsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
449
|
+
whilePluginUnavailable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
421
450
|
};
|
|
422
451
|
export type ReachRefusalSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
423
452
|
id?: boolean;
|
|
@@ -426,6 +455,7 @@ export type ReachRefusalSelect<ExtArgs extends runtime.Types.Extensions.Internal
|
|
|
426
455
|
sender?: boolean;
|
|
427
456
|
recipient?: boolean;
|
|
428
457
|
settingsVersion?: boolean;
|
|
458
|
+
whilePluginUnavailable?: boolean;
|
|
429
459
|
fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
|
|
430
460
|
}, ExtArgs["result"]["reachRefusal"]>;
|
|
431
461
|
export type ReachRefusalSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
@@ -435,6 +465,7 @@ export type ReachRefusalSelectCreateManyAndReturn<ExtArgs extends runtime.Types.
|
|
|
435
465
|
sender?: boolean;
|
|
436
466
|
recipient?: boolean;
|
|
437
467
|
settingsVersion?: boolean;
|
|
468
|
+
whilePluginUnavailable?: boolean;
|
|
438
469
|
fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
|
|
439
470
|
}, ExtArgs["result"]["reachRefusal"]>;
|
|
440
471
|
export type ReachRefusalSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
@@ -444,6 +475,7 @@ export type ReachRefusalSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.
|
|
|
444
475
|
sender?: boolean;
|
|
445
476
|
recipient?: boolean;
|
|
446
477
|
settingsVersion?: boolean;
|
|
478
|
+
whilePluginUnavailable?: boolean;
|
|
447
479
|
fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
|
|
448
480
|
}, ExtArgs["result"]["reachRefusal"]>;
|
|
449
481
|
export type ReachRefusalSelectScalar = {
|
|
@@ -453,8 +485,9 @@ export type ReachRefusalSelectScalar = {
|
|
|
453
485
|
sender?: boolean;
|
|
454
486
|
recipient?: boolean;
|
|
455
487
|
settingsVersion?: boolean;
|
|
488
|
+
whilePluginUnavailable?: boolean;
|
|
456
489
|
};
|
|
457
|
-
export type ReachRefusalOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "fleetId" | "at" | "sender" | "recipient" | "settingsVersion", ExtArgs["result"]["reachRefusal"]>;
|
|
490
|
+
export type ReachRefusalOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "fleetId" | "at" | "sender" | "recipient" | "settingsVersion" | "whilePluginUnavailable", ExtArgs["result"]["reachRefusal"]>;
|
|
458
491
|
export type ReachRefusalInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
459
492
|
fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
|
|
460
493
|
};
|
|
@@ -476,6 +509,11 @@ export type $ReachRefusalPayload<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
476
509
|
sender: runtime.JsonValue;
|
|
477
510
|
recipient: runtime.JsonValue;
|
|
478
511
|
settingsVersion: number;
|
|
512
|
+
/**
|
|
513
|
+
* What the networking plugin declared, when it refused while the plugin
|
|
514
|
+
* was not responding (decision 0035): block-all or keep-latest.
|
|
515
|
+
*/
|
|
516
|
+
whilePluginUnavailable: string | null;
|
|
479
517
|
}, ExtArgs["result"]["reachRefusal"]>;
|
|
480
518
|
composites: {};
|
|
481
519
|
};
|
|
@@ -837,6 +875,7 @@ export interface ReachRefusalFieldRefs {
|
|
|
837
875
|
readonly sender: Prisma.FieldRef<"ReachRefusal", 'Json'>;
|
|
838
876
|
readonly recipient: Prisma.FieldRef<"ReachRefusal", 'Json'>;
|
|
839
877
|
readonly settingsVersion: Prisma.FieldRef<"ReachRefusal", 'Int'>;
|
|
878
|
+
readonly whilePluginUnavailable: Prisma.FieldRef<"ReachRefusal", 'String'>;
|
|
840
879
|
}
|
|
841
880
|
/**
|
|
842
881
|
* ReachRefusal findUnique
|
|
@@ -8,11 +8,17 @@
|
|
|
8
8
|
* rules. The settings are read after the lock, so they are the latest
|
|
9
9
|
* committed.
|
|
10
10
|
*/
|
|
11
|
-
import { carriedLabelSchema, idSchema, networkRuleSchema } from '@aeolus-fleet/common';
|
|
11
|
+
import { carriedLabelSchema, idSchema, networkRuleSchema, WHILE_UNAVAILABLE } from '@aeolus-fleet/common';
|
|
12
12
|
import { z } from 'zod';
|
|
13
13
|
import { noNetworkSettings } from '../../domain/registry/network-settings.js';
|
|
14
14
|
import { Prisma } from './generated/client.js';
|
|
15
|
-
const settingsRowSchema = z.object({
|
|
15
|
+
const settingsRowSchema = z.object({
|
|
16
|
+
rules: z.array(networkRuleSchema).nullable(),
|
|
17
|
+
version: z.number().int().min(0),
|
|
18
|
+
pluginShipId: idSchema('ship').nullable(),
|
|
19
|
+
pluginWhileUnavailable: z.enum(WHILE_UNAVAILABLE).nullable(),
|
|
20
|
+
pluginNotRespondingAfterSeconds: z.number().int().nullable(),
|
|
21
|
+
});
|
|
16
22
|
const refusedShipSchema = z.object({ id: idSchema('ship'), name: z.string(), labels: z.array(carriedLabelSchema) });
|
|
17
23
|
const refusalRowSchema = z.object({
|
|
18
24
|
id: idSchema('reachRefusal'),
|
|
@@ -24,15 +30,23 @@ const refusalRowSchema = z.object({
|
|
|
24
30
|
z.object({ kind: z.literal('type'), type: z.string(), ships: z.array(refusedShipSchema) }),
|
|
25
31
|
]),
|
|
26
32
|
settingsVersion: z.number().int().min(1),
|
|
33
|
+
whilePluginUnavailable: z.enum(['block-all', 'keep-latest']).nullable(),
|
|
27
34
|
});
|
|
28
35
|
export function createPrismaNetworkSettingsRepository(db) {
|
|
29
36
|
const read = async (fleetId) => {
|
|
30
|
-
const row = await db.networkSettings.findUnique({
|
|
37
|
+
const row = await db.networkSettings.findUnique({
|
|
38
|
+
where: { fleetId },
|
|
39
|
+
select: { rules: true, version: true, pluginShipId: true, pluginWhileUnavailable: true, pluginNotRespondingAfterSeconds: true },
|
|
40
|
+
});
|
|
31
41
|
if (!row) {
|
|
32
42
|
return noNetworkSettings(fleetId);
|
|
33
43
|
}
|
|
34
|
-
const { rules, version } = settingsRowSchema.parse(row);
|
|
35
|
-
|
|
44
|
+
const { rules, version, pluginShipId, pluginWhileUnavailable, pluginNotRespondingAfterSeconds } = settingsRowSchema.parse(row);
|
|
45
|
+
// The table's check keeps the three set together or none.
|
|
46
|
+
const plugin = pluginShipId !== null && pluginWhileUnavailable !== null && pluginNotRespondingAfterSeconds !== null
|
|
47
|
+
? { shipId: pluginShipId, whileUnavailable: pluginWhileUnavailable, notRespondingAfterSeconds: pluginNotRespondingAfterSeconds }
|
|
48
|
+
: null;
|
|
49
|
+
return { fleetId, rules, version, plugin };
|
|
36
50
|
};
|
|
37
51
|
return {
|
|
38
52
|
findForShare: async (fleetId) => {
|
|
@@ -43,16 +57,22 @@ export function createPrismaNetworkSettingsRepository(db) {
|
|
|
43
57
|
await db.$executeRaw `SELECT pg_advisory_xact_lock(hashtext(${fleetId}), hashtext('network-settings'))`;
|
|
44
58
|
return read(fleetId);
|
|
45
59
|
},
|
|
46
|
-
save: async ({ fleetId, rules, version }) => {
|
|
47
|
-
const kept =
|
|
48
|
-
|
|
60
|
+
save: async ({ fleetId, rules, version, plugin }) => {
|
|
61
|
+
const kept = {
|
|
62
|
+
rules: rules === null ? Prisma.DbNull : rules.map((rule) => ({ from: [...rule.from], to: [...rule.to] })),
|
|
63
|
+
version,
|
|
64
|
+
pluginShipId: plugin?.shipId ?? null,
|
|
65
|
+
pluginWhileUnavailable: plugin?.whileUnavailable ?? null,
|
|
66
|
+
pluginNotRespondingAfterSeconds: plugin?.notRespondingAfterSeconds ?? null,
|
|
67
|
+
};
|
|
68
|
+
await db.networkSettings.upsert({ where: { fleetId }, create: { fleetId, ...kept }, update: kept });
|
|
49
69
|
},
|
|
50
70
|
};
|
|
51
71
|
}
|
|
52
72
|
export function createPrismaReachRefusalRepository(db) {
|
|
53
73
|
return {
|
|
54
|
-
record: async ({ id, fleetId, at, sender, recipient, settingsVersion }) => {
|
|
55
|
-
await db.reachRefusal.create({ data: { id, fleetId, at, sender: shipJson(sender), recipient: recipientJson(recipient), settingsVersion } });
|
|
74
|
+
record: async ({ id, fleetId, at, sender, recipient, settingsVersion, whilePluginUnavailable }) => {
|
|
75
|
+
await db.reachRefusal.create({ data: { id, fleetId, at, sender: shipJson(sender), recipient: recipientJson(recipient), settingsVersion, whilePluginUnavailable } });
|
|
56
76
|
},
|
|
57
77
|
latest: async (fleetId, limit) => {
|
|
58
78
|
const rows = await db.reachRefusal.findMany({ where: { fleetId }, orderBy: [{ at: 'desc' }, { id: 'desc' }], take: limit });
|