@aeolus-fleet/core 0.20.2 → 0.20.4

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