@aeolus-fleet/core 0.19.0 → 0.20.1

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