@updraft-solutions/mcrit-sdk 0.20.3 → 0.20.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/schemas/index.d.cts +196 -196
- package/dist/schemas/index.d.ts +196 -196
- package/dist/types/index.d.cts +7 -3
- package/dist/types/index.d.ts +7 -3
- package/package.json +1 -1
- package/src/types/ai.ts +5 -2
- package/dist/{conversation-JmrIujrU.d.cts → conversation-Be76HoQk.d.cts} +21338 -21338
- package/dist/{conversation-JmrIujrU.d.ts → conversation-Be76HoQk.d.ts} +21338 -21338
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a9 as FormSubmission, cB as fboAcceptanceAxisSchema, cC as fboAcceptanceStatusSchema, cF as fboActivitySchema, cD as fboActivityCauserSchema, cE as fboActivityChangesSchema, cK as fboCompanySchema, cH as fboCompanyGrantSchema, cG as fboCompanyGrantInputSchema, cI as fboCompanyMemberSchema, cJ as fboCompanyProfileSchema, cN as fboDecisionSchema, cL as fboDecisionAxisSchema, cM as fboDecisionInputSchema, cP as fboDutySchema, cO as fboDutyAffectedSchema, cQ as fboDutySeriesResponseSchema, cT as fboFlightSchema, cS as fboFlightDocumentSchema, cU as fboFlightStatusSchema, cV as fboFlightTypeSchema, cX as fboGrantAbilitySchema, cW as fboGrantAbilityOptionSchema, cY as fboGrantCompanyRefSchema, cZ as fboGroundServicesSchema, c_ as fboLandingsSummarySchema, c$ as fboMaterialiseResultSchema, d0 as fboMetaSchema, d1 as fboNextDutySchema, d2 as fboOccupationSchema, d3 as fboOperationsSchema, d4 as fboPersonSchema, d5 as fboPobSchema, d6 as fboRecurrenceSchema, d7 as fboRecurrenceTypeSchema, d8 as fboRecurringFlightSchema, d9 as fboRoleSchema, db as fboStatisticsSchema, dc as fboSystemRoleSchema, dd as fboTrafficLayerInputSchema, de as fboTrafficRowSchema, dg as fboTrafficSourceSchema, dh as fboVisibilitySchema, di as fboWeeklyLandingSchema, ch as conversationSchema, cb as conversationKindSchema, cc as conversationMessageSchema, cd as conversationMessageSentEventSchema, ce as conversationParticipantSchema, cf as conversationReadEventSchema, cg as conversationRecipientSchema, ci as conversationUnreadSummarySchema } from '../conversation-
|
|
2
|
-
export { A as Activity, a as Address, b as AircraftPosition, c as AircraftRating, d as Airplane, en as AirplaneIssue, eo as AirplaneIssueSeverity, ep as AirplaneIssueStatus, e as AirplanePermission, f as AirplaneShareInvite, g as Airport, h as Alert, i as AllowedDocumentType, j as ApproachType, m as Avail, B as BaseMembership, eq as BaseModel, o as Booking, C as Comment, p as Company, q as Course, er as CourseCheckSyllabus, s as CourseEnrollment, es as CourseEnrollmentMetrics, t as CourseFee, u as CreateAirplaneIssueInput, v as CreateCommentInput, z as CreatePostInput, G as DeferAirplaneIssueInput, H as Document, I as DocumentComplianceStatus, J as DocumentRequirement, K as DocumentRequirementGroup, L as DocumentRequirementGroupAssignment, M as DocumentShare, N as DocumentType, R as Event, S as Expense, T as ExpenseItem, U as ExtendedAirplane, X as Fee, Y as FeeCategoryOptions, $ as FlightLog, a0 as FlightRequest, a1 as FlightRequestAvailability, a2 as FlightRequestBusyInterval, a3 as FlightRequestResponse, a4 as FlightRequestResponseStatus, a5 as FlightRequestSeat, a6 as FlightRequestStatus, a7 as FlightRequestWindow, au as Invoice, av as Landing, aw as LandingFee, ax as MaintenanceEvent, ay as MaintenanceEventEstimation, az as MaintenanceStatus, em as Media, aA as MediaCollection, aB as Membership, aC as MembershipSignup, aD as Post, aE as PostSubject, aF as PrePaidPackage, aG as Price, aH as Qualification, aI as RecurringFlight, aR as ResolveAirplaneIssueInput, aT as Role, aU as Runway, aV as ScheduledFlight, a_ as Setting, b5 as SpecialFlight, bi as Tag, et as TagSyncEntry, bj as TeachingPermission, bm as Ticket, bB as UpdateAirplaneIssueInput, bC as UpdateCommentInput, bE as UpdatePostInput, bM as User, bN as UserAircraftRating, bO as UserQualification, bP as Waypoint } from '../conversation-
|
|
1
|
+
import { a9 as FormSubmission, cB as fboAcceptanceAxisSchema, cC as fboAcceptanceStatusSchema, cF as fboActivitySchema, cD as fboActivityCauserSchema, cE as fboActivityChangesSchema, cK as fboCompanySchema, cH as fboCompanyGrantSchema, cG as fboCompanyGrantInputSchema, cI as fboCompanyMemberSchema, cJ as fboCompanyProfileSchema, cN as fboDecisionSchema, cL as fboDecisionAxisSchema, cM as fboDecisionInputSchema, cP as fboDutySchema, cO as fboDutyAffectedSchema, cQ as fboDutySeriesResponseSchema, cT as fboFlightSchema, cS as fboFlightDocumentSchema, cU as fboFlightStatusSchema, cV as fboFlightTypeSchema, cX as fboGrantAbilitySchema, cW as fboGrantAbilityOptionSchema, cY as fboGrantCompanyRefSchema, cZ as fboGroundServicesSchema, c_ as fboLandingsSummarySchema, c$ as fboMaterialiseResultSchema, d0 as fboMetaSchema, d1 as fboNextDutySchema, d2 as fboOccupationSchema, d3 as fboOperationsSchema, d4 as fboPersonSchema, d5 as fboPobSchema, d6 as fboRecurrenceSchema, d7 as fboRecurrenceTypeSchema, d8 as fboRecurringFlightSchema, d9 as fboRoleSchema, db as fboStatisticsSchema, dc as fboSystemRoleSchema, dd as fboTrafficLayerInputSchema, de as fboTrafficRowSchema, dg as fboTrafficSourceSchema, dh as fboVisibilitySchema, di as fboWeeklyLandingSchema, ch as conversationSchema, cb as conversationKindSchema, cc as conversationMessageSchema, cd as conversationMessageSentEventSchema, ce as conversationParticipantSchema, cf as conversationReadEventSchema, cg as conversationRecipientSchema, ci as conversationUnreadSummarySchema } from '../conversation-Be76HoQk.cjs';
|
|
2
|
+
export { A as Activity, a as Address, b as AircraftPosition, c as AircraftRating, d as Airplane, en as AirplaneIssue, eo as AirplaneIssueSeverity, ep as AirplaneIssueStatus, e as AirplanePermission, f as AirplaneShareInvite, g as Airport, h as Alert, i as AllowedDocumentType, j as ApproachType, m as Avail, B as BaseMembership, eq as BaseModel, o as Booking, C as Comment, p as Company, q as Course, er as CourseCheckSyllabus, s as CourseEnrollment, es as CourseEnrollmentMetrics, t as CourseFee, u as CreateAirplaneIssueInput, v as CreateCommentInput, z as CreatePostInput, G as DeferAirplaneIssueInput, H as Document, I as DocumentComplianceStatus, J as DocumentRequirement, K as DocumentRequirementGroup, L as DocumentRequirementGroupAssignment, M as DocumentShare, N as DocumentType, R as Event, S as Expense, T as ExpenseItem, U as ExtendedAirplane, X as Fee, Y as FeeCategoryOptions, $ as FlightLog, a0 as FlightRequest, a1 as FlightRequestAvailability, a2 as FlightRequestBusyInterval, a3 as FlightRequestResponse, a4 as FlightRequestResponseStatus, a5 as FlightRequestSeat, a6 as FlightRequestStatus, a7 as FlightRequestWindow, au as Invoice, av as Landing, aw as LandingFee, ax as MaintenanceEvent, ay as MaintenanceEventEstimation, az as MaintenanceStatus, em as Media, aA as MediaCollection, aB as Membership, aC as MembershipSignup, aD as Post, aE as PostSubject, aF as PrePaidPackage, aG as Price, aH as Qualification, aI as RecurringFlight, aR as ResolveAirplaneIssueInput, aT as Role, aU as Runway, aV as ScheduledFlight, a_ as Setting, b5 as SpecialFlight, bi as Tag, et as TagSyncEntry, bj as TeachingPermission, bm as Ticket, bB as UpdateAirplaneIssueInput, bC as UpdateCommentInput, bE as UpdatePostInput, bM as User, bN as UserAircraftRating, bO as UserQualification, bP as Waypoint } from '../conversation-Be76HoQk.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -201,7 +201,7 @@ interface LogbookStageResult {
|
|
|
201
201
|
routed: Record<string, number> | number[];
|
|
202
202
|
discarded: DiscardedRow[];
|
|
203
203
|
}
|
|
204
|
-
type AircraftLogbookScoreReason = "duration_mismatch" | "totals_mismatch" | "date_out_of_order" | "missing_airport" | "unreadable_time" | "match_low"
|
|
204
|
+
type AircraftLogbookScoreReason = "duration_mismatch" | "totals_mismatch" | "date_out_of_order" | "missing_airport" | "unreadable_time" | "match_low";
|
|
205
205
|
type AircraftLogbookUiStatus = "unmatched" | "matched" | "ready_with_gaps" | "logged" | "applied" | "dismissed";
|
|
206
206
|
interface AircraftLogbookDeviation {
|
|
207
207
|
field: "etdZ" | "etaZ" | "landings" | "departure" | "destination";
|
|
@@ -236,6 +236,8 @@ interface AircraftLogbookRowMeta extends LogbookSuggestionMeta {
|
|
|
236
236
|
top: number;
|
|
237
237
|
bottom: number;
|
|
238
238
|
} | null;
|
|
239
|
+
/** Payload fields the admin corrected by hand (score recomputed from the corrected values). */
|
|
240
|
+
corrected?: string[];
|
|
239
241
|
}
|
|
240
242
|
type AircraftLogbookRow = AiSuggestion<LogbookFlightLogPayload> & {
|
|
241
243
|
meta?: AircraftLogbookRowMeta;
|
|
@@ -297,6 +299,8 @@ interface AircraftLogbookCrewProposal {
|
|
|
297
299
|
/** Which person of the handwritten PIC text this ranks ("Bau / Steiner" → parts 0 and 1). */
|
|
298
300
|
part?: number;
|
|
299
301
|
part_text?: string;
|
|
302
|
+
/** How the candidate was found: surname similarity, initials, or the crew of a booking the same PIC text was attached to before. */
|
|
303
|
+
source?: "name" | "initials" | "history";
|
|
300
304
|
}
|
|
301
305
|
interface AircraftLogbookBulkAcceptResult {
|
|
302
306
|
applied: number[];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a9 as FormSubmission, cB as fboAcceptanceAxisSchema, cC as fboAcceptanceStatusSchema, cF as fboActivitySchema, cD as fboActivityCauserSchema, cE as fboActivityChangesSchema, cK as fboCompanySchema, cH as fboCompanyGrantSchema, cG as fboCompanyGrantInputSchema, cI as fboCompanyMemberSchema, cJ as fboCompanyProfileSchema, cN as fboDecisionSchema, cL as fboDecisionAxisSchema, cM as fboDecisionInputSchema, cP as fboDutySchema, cO as fboDutyAffectedSchema, cQ as fboDutySeriesResponseSchema, cT as fboFlightSchema, cS as fboFlightDocumentSchema, cU as fboFlightStatusSchema, cV as fboFlightTypeSchema, cX as fboGrantAbilitySchema, cW as fboGrantAbilityOptionSchema, cY as fboGrantCompanyRefSchema, cZ as fboGroundServicesSchema, c_ as fboLandingsSummarySchema, c$ as fboMaterialiseResultSchema, d0 as fboMetaSchema, d1 as fboNextDutySchema, d2 as fboOccupationSchema, d3 as fboOperationsSchema, d4 as fboPersonSchema, d5 as fboPobSchema, d6 as fboRecurrenceSchema, d7 as fboRecurrenceTypeSchema, d8 as fboRecurringFlightSchema, d9 as fboRoleSchema, db as fboStatisticsSchema, dc as fboSystemRoleSchema, dd as fboTrafficLayerInputSchema, de as fboTrafficRowSchema, dg as fboTrafficSourceSchema, dh as fboVisibilitySchema, di as fboWeeklyLandingSchema, ch as conversationSchema, cb as conversationKindSchema, cc as conversationMessageSchema, cd as conversationMessageSentEventSchema, ce as conversationParticipantSchema, cf as conversationReadEventSchema, cg as conversationRecipientSchema, ci as conversationUnreadSummarySchema } from '../conversation-
|
|
2
|
-
export { A as Activity, a as Address, b as AircraftPosition, c as AircraftRating, d as Airplane, en as AirplaneIssue, eo as AirplaneIssueSeverity, ep as AirplaneIssueStatus, e as AirplanePermission, f as AirplaneShareInvite, g as Airport, h as Alert, i as AllowedDocumentType, j as ApproachType, m as Avail, B as BaseMembership, eq as BaseModel, o as Booking, C as Comment, p as Company, q as Course, er as CourseCheckSyllabus, s as CourseEnrollment, es as CourseEnrollmentMetrics, t as CourseFee, u as CreateAirplaneIssueInput, v as CreateCommentInput, z as CreatePostInput, G as DeferAirplaneIssueInput, H as Document, I as DocumentComplianceStatus, J as DocumentRequirement, K as DocumentRequirementGroup, L as DocumentRequirementGroupAssignment, M as DocumentShare, N as DocumentType, R as Event, S as Expense, T as ExpenseItem, U as ExtendedAirplane, X as Fee, Y as FeeCategoryOptions, $ as FlightLog, a0 as FlightRequest, a1 as FlightRequestAvailability, a2 as FlightRequestBusyInterval, a3 as FlightRequestResponse, a4 as FlightRequestResponseStatus, a5 as FlightRequestSeat, a6 as FlightRequestStatus, a7 as FlightRequestWindow, au as Invoice, av as Landing, aw as LandingFee, ax as MaintenanceEvent, ay as MaintenanceEventEstimation, az as MaintenanceStatus, em as Media, aA as MediaCollection, aB as Membership, aC as MembershipSignup, aD as Post, aE as PostSubject, aF as PrePaidPackage, aG as Price, aH as Qualification, aI as RecurringFlight, aR as ResolveAirplaneIssueInput, aT as Role, aU as Runway, aV as ScheduledFlight, a_ as Setting, b5 as SpecialFlight, bi as Tag, et as TagSyncEntry, bj as TeachingPermission, bm as Ticket, bB as UpdateAirplaneIssueInput, bC as UpdateCommentInput, bE as UpdatePostInput, bM as User, bN as UserAircraftRating, bO as UserQualification, bP as Waypoint } from '../conversation-
|
|
1
|
+
import { a9 as FormSubmission, cB as fboAcceptanceAxisSchema, cC as fboAcceptanceStatusSchema, cF as fboActivitySchema, cD as fboActivityCauserSchema, cE as fboActivityChangesSchema, cK as fboCompanySchema, cH as fboCompanyGrantSchema, cG as fboCompanyGrantInputSchema, cI as fboCompanyMemberSchema, cJ as fboCompanyProfileSchema, cN as fboDecisionSchema, cL as fboDecisionAxisSchema, cM as fboDecisionInputSchema, cP as fboDutySchema, cO as fboDutyAffectedSchema, cQ as fboDutySeriesResponseSchema, cT as fboFlightSchema, cS as fboFlightDocumentSchema, cU as fboFlightStatusSchema, cV as fboFlightTypeSchema, cX as fboGrantAbilitySchema, cW as fboGrantAbilityOptionSchema, cY as fboGrantCompanyRefSchema, cZ as fboGroundServicesSchema, c_ as fboLandingsSummarySchema, c$ as fboMaterialiseResultSchema, d0 as fboMetaSchema, d1 as fboNextDutySchema, d2 as fboOccupationSchema, d3 as fboOperationsSchema, d4 as fboPersonSchema, d5 as fboPobSchema, d6 as fboRecurrenceSchema, d7 as fboRecurrenceTypeSchema, d8 as fboRecurringFlightSchema, d9 as fboRoleSchema, db as fboStatisticsSchema, dc as fboSystemRoleSchema, dd as fboTrafficLayerInputSchema, de as fboTrafficRowSchema, dg as fboTrafficSourceSchema, dh as fboVisibilitySchema, di as fboWeeklyLandingSchema, ch as conversationSchema, cb as conversationKindSchema, cc as conversationMessageSchema, cd as conversationMessageSentEventSchema, ce as conversationParticipantSchema, cf as conversationReadEventSchema, cg as conversationRecipientSchema, ci as conversationUnreadSummarySchema } from '../conversation-Be76HoQk.js';
|
|
2
|
+
export { A as Activity, a as Address, b as AircraftPosition, c as AircraftRating, d as Airplane, en as AirplaneIssue, eo as AirplaneIssueSeverity, ep as AirplaneIssueStatus, e as AirplanePermission, f as AirplaneShareInvite, g as Airport, h as Alert, i as AllowedDocumentType, j as ApproachType, m as Avail, B as BaseMembership, eq as BaseModel, o as Booking, C as Comment, p as Company, q as Course, er as CourseCheckSyllabus, s as CourseEnrollment, es as CourseEnrollmentMetrics, t as CourseFee, u as CreateAirplaneIssueInput, v as CreateCommentInput, z as CreatePostInput, G as DeferAirplaneIssueInput, H as Document, I as DocumentComplianceStatus, J as DocumentRequirement, K as DocumentRequirementGroup, L as DocumentRequirementGroupAssignment, M as DocumentShare, N as DocumentType, R as Event, S as Expense, T as ExpenseItem, U as ExtendedAirplane, X as Fee, Y as FeeCategoryOptions, $ as FlightLog, a0 as FlightRequest, a1 as FlightRequestAvailability, a2 as FlightRequestBusyInterval, a3 as FlightRequestResponse, a4 as FlightRequestResponseStatus, a5 as FlightRequestSeat, a6 as FlightRequestStatus, a7 as FlightRequestWindow, au as Invoice, av as Landing, aw as LandingFee, ax as MaintenanceEvent, ay as MaintenanceEventEstimation, az as MaintenanceStatus, em as Media, aA as MediaCollection, aB as Membership, aC as MembershipSignup, aD as Post, aE as PostSubject, aF as PrePaidPackage, aG as Price, aH as Qualification, aI as RecurringFlight, aR as ResolveAirplaneIssueInput, aT as Role, aU as Runway, aV as ScheduledFlight, a_ as Setting, b5 as SpecialFlight, bi as Tag, et as TagSyncEntry, bj as TeachingPermission, bm as Ticket, bB as UpdateAirplaneIssueInput, bC as UpdateCommentInput, bE as UpdatePostInput, bM as User, bN as UserAircraftRating, bO as UserQualification, bP as Waypoint } from '../conversation-Be76HoQk.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -201,7 +201,7 @@ interface LogbookStageResult {
|
|
|
201
201
|
routed: Record<string, number> | number[];
|
|
202
202
|
discarded: DiscardedRow[];
|
|
203
203
|
}
|
|
204
|
-
type AircraftLogbookScoreReason = "duration_mismatch" | "totals_mismatch" | "date_out_of_order" | "missing_airport" | "unreadable_time" | "match_low"
|
|
204
|
+
type AircraftLogbookScoreReason = "duration_mismatch" | "totals_mismatch" | "date_out_of_order" | "missing_airport" | "unreadable_time" | "match_low";
|
|
205
205
|
type AircraftLogbookUiStatus = "unmatched" | "matched" | "ready_with_gaps" | "logged" | "applied" | "dismissed";
|
|
206
206
|
interface AircraftLogbookDeviation {
|
|
207
207
|
field: "etdZ" | "etaZ" | "landings" | "departure" | "destination";
|
|
@@ -236,6 +236,8 @@ interface AircraftLogbookRowMeta extends LogbookSuggestionMeta {
|
|
|
236
236
|
top: number;
|
|
237
237
|
bottom: number;
|
|
238
238
|
} | null;
|
|
239
|
+
/** Payload fields the admin corrected by hand (score recomputed from the corrected values). */
|
|
240
|
+
corrected?: string[];
|
|
239
241
|
}
|
|
240
242
|
type AircraftLogbookRow = AiSuggestion<LogbookFlightLogPayload> & {
|
|
241
243
|
meta?: AircraftLogbookRowMeta;
|
|
@@ -297,6 +299,8 @@ interface AircraftLogbookCrewProposal {
|
|
|
297
299
|
/** Which person of the handwritten PIC text this ranks ("Bau / Steiner" → parts 0 and 1). */
|
|
298
300
|
part?: number;
|
|
299
301
|
part_text?: string;
|
|
302
|
+
/** How the candidate was found: surname similarity, initials, or the crew of a booking the same PIC text was attached to before. */
|
|
303
|
+
source?: "name" | "initials" | "history";
|
|
300
304
|
}
|
|
301
305
|
interface AircraftLogbookBulkAcceptResult {
|
|
302
306
|
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.5",
|
|
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
|
@@ -93,8 +93,7 @@ export type AircraftLogbookScoreReason =
|
|
|
93
93
|
| "date_out_of_order"
|
|
94
94
|
| "missing_airport"
|
|
95
95
|
| "unreadable_time"
|
|
96
|
-
| "match_low"
|
|
97
|
-
| "match_none";
|
|
96
|
+
| "match_low";
|
|
98
97
|
|
|
99
98
|
export type AircraftLogbookUiStatus =
|
|
100
99
|
| "unmatched"
|
|
@@ -132,6 +131,8 @@ export interface AircraftLogbookRowMeta extends LogbookSuggestionMeta {
|
|
|
132
131
|
pic_proposals?: AircraftLogbookCrewProposal[];
|
|
133
132
|
/** Vertical position of the row in the page image (fractions of the image height), as estimated by the reader. */
|
|
134
133
|
row_band?: { top: number; bottom: number } | null;
|
|
134
|
+
/** Payload fields the admin corrected by hand (score recomputed from the corrected values). */
|
|
135
|
+
corrected?: string[];
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
export type AircraftLogbookRow = AiSuggestion<LogbookFlightLogPayload> & {
|
|
@@ -181,6 +182,8 @@ export interface AircraftLogbookCrewProposal {
|
|
|
181
182
|
/** Which person of the handwritten PIC text this ranks ("Bau / Steiner" → parts 0 and 1). */
|
|
182
183
|
part?: number;
|
|
183
184
|
part_text?: string;
|
|
185
|
+
/** How the candidate was found: surname similarity, initials, or the crew of a booking the same PIC text was attached to before. */
|
|
186
|
+
source?: "name" | "initials" | "history";
|
|
184
187
|
}
|
|
185
188
|
|
|
186
189
|
export interface AircraftLogbookBulkAcceptResult {
|