@aeolus-fleet/core 0.19.0 → 0.20.0

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