@updraft-solutions/mcrit-sdk 0.20.1 → 0.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.js +15 -15
- package/dist/types/index.d.cts +16 -0
- package/dist/types/index.d.ts +16 -0
- package/package.json +1 -1
- package/src/types/ai.ts +13 -0
package/dist/index.cjs
CHANGED
|
@@ -285,7 +285,6 @@ var _chunkMI4YBENQcjs = require('./chunk-MI4YBENQ.cjs');
|
|
|
285
285
|
|
|
286
286
|
|
|
287
287
|
|
|
288
|
-
var _chunkJRVRIKNMcjs = require('./chunk-JRVRIKNM.cjs');
|
|
289
288
|
|
|
290
289
|
|
|
291
290
|
|
|
@@ -293,6 +292,7 @@ var _chunkJRVRIKNMcjs = require('./chunk-JRVRIKNM.cjs');
|
|
|
293
292
|
|
|
294
293
|
|
|
295
294
|
|
|
295
|
+
var _chunkIVMOR5SWcjs = require('./chunk-IVMOR5SW.cjs');
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
|
|
@@ -307,7 +307,7 @@ var _chunkJRVRIKNMcjs = require('./chunk-JRVRIKNM.cjs');
|
|
|
307
307
|
|
|
308
308
|
|
|
309
309
|
|
|
310
|
-
var
|
|
310
|
+
var _chunkJRVRIKNMcjs = require('./chunk-JRVRIKNM.cjs');
|
|
311
311
|
|
|
312
312
|
|
|
313
313
|
|
package/dist/index.js
CHANGED
|
@@ -271,21 +271,6 @@ import {
|
|
|
271
271
|
defaultCrewRoleForMembership,
|
|
272
272
|
hasMembershipRole
|
|
273
273
|
} from "./chunk-2M32EOYI.js";
|
|
274
|
-
import {
|
|
275
|
-
AvatarConversion,
|
|
276
|
-
DocumentConversion,
|
|
277
|
-
HeaderConversion,
|
|
278
|
-
ImageConversion,
|
|
279
|
-
MediaType,
|
|
280
|
-
MimeTypes,
|
|
281
|
-
ThumbnailConversion,
|
|
282
|
-
canPreview,
|
|
283
|
-
getDocumentIcon,
|
|
284
|
-
getMediaDisplayName,
|
|
285
|
-
getMediaIcon,
|
|
286
|
-
getMediaType,
|
|
287
|
-
mapMediaConversions
|
|
288
|
-
} from "./chunk-VYT5KQWF.js";
|
|
289
274
|
import {
|
|
290
275
|
DATE_FORMATS,
|
|
291
276
|
TIME_FORMATS,
|
|
@@ -308,6 +293,21 @@ import {
|
|
|
308
293
|
timeUntil,
|
|
309
294
|
yearString
|
|
310
295
|
} from "./chunk-KIMCBEY7.js";
|
|
296
|
+
import {
|
|
297
|
+
AvatarConversion,
|
|
298
|
+
DocumentConversion,
|
|
299
|
+
HeaderConversion,
|
|
300
|
+
ImageConversion,
|
|
301
|
+
MediaType,
|
|
302
|
+
MimeTypes,
|
|
303
|
+
ThumbnailConversion,
|
|
304
|
+
canPreview,
|
|
305
|
+
getDocumentIcon,
|
|
306
|
+
getMediaDisplayName,
|
|
307
|
+
getMediaIcon,
|
|
308
|
+
getMediaType,
|
|
309
|
+
mapMediaConversions
|
|
310
|
+
} from "./chunk-VYT5KQWF.js";
|
|
311
311
|
import {
|
|
312
312
|
displayFee,
|
|
313
313
|
formatToEuroString,
|
package/dist/types/index.d.cts
CHANGED
|
@@ -223,6 +223,19 @@ interface AircraftLogbookRowMeta extends LogbookSuggestionMeta {
|
|
|
223
223
|
deviations: AircraftLogbookDeviation[];
|
|
224
224
|
} | null;
|
|
225
225
|
dismiss_reason?: "already_logged" | "unreadable" | "manual" | null;
|
|
226
|
+
/** Ids of stored rows of the same aircraft whose window intersects this row's. */
|
|
227
|
+
overlaps?: number[];
|
|
228
|
+
/** Flight logs that overlap in time but do not match start + landing exactly. */
|
|
229
|
+
overlapping_flight_log_ids?: number[];
|
|
230
|
+
/** Best member match for the handwritten PIC name (pure string ranking, no model). */
|
|
231
|
+
pic_proposal?: AircraftLogbookCrewProposal | null;
|
|
232
|
+
/** Best member match per person in the PIC column. */
|
|
233
|
+
pic_proposals?: AircraftLogbookCrewProposal[];
|
|
234
|
+
/** Vertical position of the row in the page image (fractions of the image height), as estimated by the reader. */
|
|
235
|
+
row_band?: {
|
|
236
|
+
top: number;
|
|
237
|
+
bottom: number;
|
|
238
|
+
} | null;
|
|
226
239
|
}
|
|
227
240
|
type AircraftLogbookRow = AiSuggestion<LogbookFlightLogPayload> & {
|
|
228
241
|
meta?: AircraftLogbookRowMeta;
|
|
@@ -281,6 +294,9 @@ interface AircraftLogbookCrewProposal {
|
|
|
281
294
|
membership_id: number;
|
|
282
295
|
name: string;
|
|
283
296
|
score: number;
|
|
297
|
+
/** Which person of the handwritten PIC text this ranks ("Bau / Steiner" → parts 0 and 1). */
|
|
298
|
+
part?: number;
|
|
299
|
+
part_text?: string;
|
|
284
300
|
}
|
|
285
301
|
interface AircraftLogbookBulkAcceptResult {
|
|
286
302
|
applied: number[];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -223,6 +223,19 @@ interface AircraftLogbookRowMeta extends LogbookSuggestionMeta {
|
|
|
223
223
|
deviations: AircraftLogbookDeviation[];
|
|
224
224
|
} | null;
|
|
225
225
|
dismiss_reason?: "already_logged" | "unreadable" | "manual" | null;
|
|
226
|
+
/** Ids of stored rows of the same aircraft whose window intersects this row's. */
|
|
227
|
+
overlaps?: number[];
|
|
228
|
+
/** Flight logs that overlap in time but do not match start + landing exactly. */
|
|
229
|
+
overlapping_flight_log_ids?: number[];
|
|
230
|
+
/** Best member match for the handwritten PIC name (pure string ranking, no model). */
|
|
231
|
+
pic_proposal?: AircraftLogbookCrewProposal | null;
|
|
232
|
+
/** Best member match per person in the PIC column. */
|
|
233
|
+
pic_proposals?: AircraftLogbookCrewProposal[];
|
|
234
|
+
/** Vertical position of the row in the page image (fractions of the image height), as estimated by the reader. */
|
|
235
|
+
row_band?: {
|
|
236
|
+
top: number;
|
|
237
|
+
bottom: number;
|
|
238
|
+
} | null;
|
|
226
239
|
}
|
|
227
240
|
type AircraftLogbookRow = AiSuggestion<LogbookFlightLogPayload> & {
|
|
228
241
|
meta?: AircraftLogbookRowMeta;
|
|
@@ -281,6 +294,9 @@ interface AircraftLogbookCrewProposal {
|
|
|
281
294
|
membership_id: number;
|
|
282
295
|
name: string;
|
|
283
296
|
score: number;
|
|
297
|
+
/** Which person of the handwritten PIC text this ranks ("Bau / Steiner" → parts 0 and 1). */
|
|
298
|
+
part?: number;
|
|
299
|
+
part_text?: string;
|
|
284
300
|
}
|
|
285
301
|
interface AircraftLogbookBulkAcceptResult {
|
|
286
302
|
applied: number[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@updraft-solutions/mcrit-sdk",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.3",
|
|
4
4
|
"description": "Shared TypeScript types, Zod schemas, and pure helpers for the MCRIT aviation fleet management platform",
|
|
5
5
|
"homepage": "https://github.com/updraft-solutions/mcrit-sdk#readme",
|
|
6
6
|
"bugs": {
|
package/src/types/ai.ts
CHANGED
|
@@ -122,6 +122,16 @@ export interface AircraftLogbookRowMeta extends LogbookSuggestionMeta {
|
|
|
122
122
|
score_reasons?: AircraftLogbookScoreReason[];
|
|
123
123
|
reconciliation?: { flight_log_id: number; deviations: AircraftLogbookDeviation[] } | null;
|
|
124
124
|
dismiss_reason?: "already_logged" | "unreadable" | "manual" | null;
|
|
125
|
+
/** Ids of stored rows of the same aircraft whose window intersects this row's. */
|
|
126
|
+
overlaps?: number[];
|
|
127
|
+
/** Flight logs that overlap in time but do not match start + landing exactly. */
|
|
128
|
+
overlapping_flight_log_ids?: number[];
|
|
129
|
+
/** Best member match for the handwritten PIC name (pure string ranking, no model). */
|
|
130
|
+
pic_proposal?: AircraftLogbookCrewProposal | null;
|
|
131
|
+
/** Best member match per person in the PIC column. */
|
|
132
|
+
pic_proposals?: AircraftLogbookCrewProposal[];
|
|
133
|
+
/** Vertical position of the row in the page image (fractions of the image height), as estimated by the reader. */
|
|
134
|
+
row_band?: { top: number; bottom: number } | null;
|
|
125
135
|
}
|
|
126
136
|
|
|
127
137
|
export type AircraftLogbookRow = AiSuggestion<LogbookFlightLogPayload> & {
|
|
@@ -168,6 +178,9 @@ export interface AircraftLogbookCrewProposal {
|
|
|
168
178
|
membership_id: number;
|
|
169
179
|
name: string;
|
|
170
180
|
score: number;
|
|
181
|
+
/** Which person of the handwritten PIC text this ranks ("Bau / Steiner" → parts 0 and 1). */
|
|
182
|
+
part?: number;
|
|
183
|
+
part_text?: string;
|
|
171
184
|
}
|
|
172
185
|
|
|
173
186
|
export interface AircraftLogbookBulkAcceptResult {
|