@updraft-solutions/mcrit-sdk 0.19.1 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-Q3UDPXPZ.js → chunk-2ANGTHWL.js} +4 -1
- package/dist/{chunk-SAOBEPQN.cjs → chunk-IF42MXAB.cjs} +4 -1
- package/dist/{conversation-CWH383yh.d.cts → conversation-Be76HoQk.d.cts} +12818 -2150
- package/dist/{conversation-CWH383yh.d.ts → conversation-Be76HoQk.d.ts} +12818 -2150
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/schemas/index.cjs +2 -2
- package/dist/schemas/index.d.cts +16 -16
- package/dist/schemas/index.d.ts +16 -16
- package/dist/schemas/index.js +1 -1
- package/dist/types/index.d.cts +91 -3
- package/dist/types/index.d.ts +91 -3
- package/package.json +1 -1
- package/src/schemas/common.ts +3 -0
- package/src/types/ai.ts +90 -0
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { em as Media, a8 as FormFieldType, ag as FormSubmissionStatus, af as FormSubmissionSource } from '../conversation-
|
|
2
|
-
export { k as AttachSyllabusElementForm, l as AttachSyllabusElementFormSchema, n as BaseModel, r as CourseCheckSyllabus, w as CreateFormSubmissionInput, x as CreateFormTemplateAssignmentInput, y as CreateFormTemplateInput, D as CreateSyllabusFromTemplateForm, E as CreateSyllabusFromTemplateFormSchema, F as CreateSyllabusFromTemplateResult, O as EnrollmentTrainingElement, P as EnrollmentTrainingStatus, Q as EnrollmentTrainingStatusEnum, V as FBO_OPERATING_DAYS, W as FBO_SYSTEM_ROLES, Z as FieldLabel, _ as FieldLabelSchema, a9 as FormSubmission, aa as FormSubmissionSchema, ab as FormSubmissionShare, ac as FormSubmissionShareBase, ad as FormSubmissionShareBaseSchema, ae as FormSubmissionShareSchema, ah as FormTemplate, ai as FormTemplateAssignment, aj as FormTemplateAssignmentSchema, ak as FormTemplateSchema, al as FuelUnit, am as GradeHistoryItem, an as GradingScale, ao as GradingScaleForm, ap as GradingScaleFormSchema, aq as GradingScalePoint, ar as ImpersonationParticipant, as as ImpersonationState, at as InvalidateTrainingRecordResponse, aJ as ReorderSyllabusElementItem, aK as ReorderSyllabusElementItemSchema, aL as RequiredForm, aM as RequiredFormSchema, aN as RequiredFormVia, aO as RequiredFormViaCrew, aP as RequiredFormViaCrewSchema, aQ as RequiredFormViaSchema, aS as ReviewFormSubmissionInput, aW as SchemaField, aX as SchemaFieldSchema, aY as SchemaSection, aZ as SchemaSectionSchema, a$ as ShowWhen, b0 as ShowWhenSchema, b1 as SignOffTrainingElementForm, b2 as SignOffTrainingElementFormSchema, b3 as Signature, b4 as SignatureSchema, b6 as StoreSyllabusForm, b7 as StoreSyllabusFormSchema, b8 as SubmissionFile, b9 as SubmissionFileSchema, ba as Syllabus, bb as SyllabusElement, bc as SyllabusElementMutationResult, bd as SyllabusKind, be as SyllabusKindEnum, bf as SyllabusRolloutResult, bg as SyllabusRolloutResultItem, bh as SyllabusRolloutSkippedItem, bk as TemplateSchema, bl as TemplateSchemaSchema, bn as TrainingElement, bo as TrainingElementForm, bp as TrainingElementFormSchema, bq as TrainingElementKind, br as TrainingElementKindEnum, bs as TrainingRecord, bt as TrainingRecordEntry, bu as TrainingRecordEntryInput, bv as TrainingRecordResult, bw as TrainingRecordResultEnum, bx as TrainingRecordStatus, by as TrainingRecordStatusEnum, bz as TrainingSignature, bA as TrainingTemplatePack, bD as UpdateFormTemplateInput, bF as UpdateSyllabusElementForm, bG as UpdateSyllabusElementFormSchema, bH as UpdateSyllabusForm, bI as UpdateSyllabusFormSchema, bJ as UpsertTrainingRecordForm, bK as UpsertTrainingRecordFormSchema, bL as UsedByCourse, bQ as activitySchema, bR as addressSchema, bS as aircraftPositionSchema, bT as aircraftRatingSchema, bU as airplaneIssueSchema, bV as airplaneIssueSeverityEnum, bW as airplaneIssueStatusEnum, bX as airplanePermissionSchema, bY as airplaneSchema, bZ as airplaneShareInviteSchema, b_ as airportSchema, b$ as alertSchema, c0 as allowedDocumentTypeSchema, c1 as approachTypeSchema, c2 as availSchema, c3 as baseMembershipSchema, c4 as billingProfileSchema, c5 as bookingSchema, c6 as bookingWaypointSchema, c7 as commentSchema, c8 as companyIdentitySchema, c9 as companySchema, ca as contactAttributeSchema, cb as conversationKindSchema, cc as conversationMessageSchema, cd as conversationMessageSentEventSchema, ce as conversationParticipantSchema, cf as conversationReadEventSchema, cg as conversationRecipientSchema, ch as conversationSchema, ci as conversationUnreadSummarySchema, cj as courseCheckSyllabusSchema, ck as courseEnrollmentMetricsSchema, cl as courseEnrollmentSchema, cm as courseFeeSchema, cn as courseSchema, co as createSyllabusFromTemplateResultSchema, cp as documentComplianceStatus, cq as documentRequirement, cr as documentRequirementGroup, cs as documentRequirementGroupAssignment, ct as documentSchema, cu as documentShareSchema, cv as documentType, cw as enrollmentTrainingElementSchema, cx as eventSchema, cy as expenseItemSchema, cz as expenseSchema, cA as extendedAirplaneSchema, cB as fboAcceptanceAxisSchema, cC as fboAcceptanceStatusSchema, cD as fboActivityCauserSchema, cE as fboActivityChangesSchema, cF as fboActivitySchema, cG as fboCompanyGrantInputSchema, cH as fboCompanyGrantSchema, cI as fboCompanyMemberSchema, cJ as fboCompanyProfileSchema, cK as fboCompanySchema, cL as fboDecisionAxisSchema, cM as fboDecisionInputSchema, cN as fboDecisionSchema, cO as fboDutyAffectedSchema, cP as fboDutySchema, cQ as fboDutySeriesResponseSchema, cR as fboFlightCanSchema, cS as fboFlightDocumentSchema, cT as fboFlightSchema, cU as fboFlightStatusSchema, cV as fboFlightTypeSchema, cW as fboGrantAbilityOptionSchema, cX as fboGrantAbilitySchema, 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, da as fboRowCanSchema, db as fboStatisticsSchema, dc as fboSystemRoleSchema, dd as fboTrafficLayerInputSchema, de as fboTrafficRowSchema, df as fboTrafficRowTypeSchema, dg as fboTrafficSourceSchema, dh as fboVisibilitySchema, di as fboWeeklyLandingSchema, dj as feeCategoryOptionsSchema, dk as feeSchema, dl as flightLogSchema, dm as flightRequestAvailabilitySchema, dn as flightRequestBusyIntervalSchema, dp as flightRequestResponseSchema, dq as flightRequestResponseStatusSchema, dr as flightRequestSchema, ds as flightRequestSeatSchema, dt as flightRequestStatusSchema, du as flightRequestWindowSchema, dv as fuelUnitSchema, dw as gradeHistoryItemSchema, dx as gradingScalePointSchema, dy as gradingScaleSchema, dz as impersonationParticipantSchema, dA as impersonationStateSchema, dB as invalidateTrainingRecordResponseSchema, dC as invoiceSchema, dD as landingFeeSchema, dE as landingSchema, dF as maintenanceEventEstimationSchema, dG as maintenanceEventSchema, dH as maintenanceStatusSchema, dI as mediaCollection, dJ as mediaSchema, dK as membershipIdentitySchema, dL as membershipSchema, dM as membershipSignupSchema, dN as nestedMembershipSchema, dO as postSchema, dP as postSubjectSchema, dQ as prePaidPackageAssignmentSchema, dR as prePaidPackageSchema, dS as priceSchema, dT as qualificationSchema, dU as recurringFlightSchema, dV as roleSchema, dW as runwaySchema, dX as scheduledFlightSchema, dY as settingSchema, dZ as specialFlightSchema, d_ as syllabusElementMutationResultSchema, d$ as syllabusElementSchema, e0 as syllabusRolloutResultItemSchema, e1 as syllabusRolloutResultSchema, e2 as syllabusRolloutSkippedItemSchema, e3 as syllabusSchema, e4 as tagSchema, e5 as teachingPermissionSchema, e6 as ticketSchema, e7 as trainingElementSchema, e8 as trainingRecordEntryInputSchema, e9 as trainingRecordEntrySchema, ea as trainingRecordSchema, eb as trainingSignatureSchema, ec as trainingTemplatePackSchema, ed as usedByCourseSchema, ee as userAircraftRatingSchema, ef as userQualificationSchema, eg as userSchema, eh as waypointSchema, ei as zContactDTO, ej as zMoneyObject, ek as zNetGross, el as zNullableBool } from '../conversation-
|
|
1
|
+
import { em as Media, a8 as FormFieldType, ag as FormSubmissionStatus, af as FormSubmissionSource } from '../conversation-Be76HoQk.js';
|
|
2
|
+
export { k as AttachSyllabusElementForm, l as AttachSyllabusElementFormSchema, n as BaseModel, r as CourseCheckSyllabus, w as CreateFormSubmissionInput, x as CreateFormTemplateAssignmentInput, y as CreateFormTemplateInput, D as CreateSyllabusFromTemplateForm, E as CreateSyllabusFromTemplateFormSchema, F as CreateSyllabusFromTemplateResult, O as EnrollmentTrainingElement, P as EnrollmentTrainingStatus, Q as EnrollmentTrainingStatusEnum, V as FBO_OPERATING_DAYS, W as FBO_SYSTEM_ROLES, Z as FieldLabel, _ as FieldLabelSchema, a9 as FormSubmission, aa as FormSubmissionSchema, ab as FormSubmissionShare, ac as FormSubmissionShareBase, ad as FormSubmissionShareBaseSchema, ae as FormSubmissionShareSchema, ah as FormTemplate, ai as FormTemplateAssignment, aj as FormTemplateAssignmentSchema, ak as FormTemplateSchema, al as FuelUnit, am as GradeHistoryItem, an as GradingScale, ao as GradingScaleForm, ap as GradingScaleFormSchema, aq as GradingScalePoint, ar as ImpersonationParticipant, as as ImpersonationState, at as InvalidateTrainingRecordResponse, aJ as ReorderSyllabusElementItem, aK as ReorderSyllabusElementItemSchema, aL as RequiredForm, aM as RequiredFormSchema, aN as RequiredFormVia, aO as RequiredFormViaCrew, aP as RequiredFormViaCrewSchema, aQ as RequiredFormViaSchema, aS as ReviewFormSubmissionInput, aW as SchemaField, aX as SchemaFieldSchema, aY as SchemaSection, aZ as SchemaSectionSchema, a$ as ShowWhen, b0 as ShowWhenSchema, b1 as SignOffTrainingElementForm, b2 as SignOffTrainingElementFormSchema, b3 as Signature, b4 as SignatureSchema, b6 as StoreSyllabusForm, b7 as StoreSyllabusFormSchema, b8 as SubmissionFile, b9 as SubmissionFileSchema, ba as Syllabus, bb as SyllabusElement, bc as SyllabusElementMutationResult, bd as SyllabusKind, be as SyllabusKindEnum, bf as SyllabusRolloutResult, bg as SyllabusRolloutResultItem, bh as SyllabusRolloutSkippedItem, bk as TemplateSchema, bl as TemplateSchemaSchema, bn as TrainingElement, bo as TrainingElementForm, bp as TrainingElementFormSchema, bq as TrainingElementKind, br as TrainingElementKindEnum, bs as TrainingRecord, bt as TrainingRecordEntry, bu as TrainingRecordEntryInput, bv as TrainingRecordResult, bw as TrainingRecordResultEnum, bx as TrainingRecordStatus, by as TrainingRecordStatusEnum, bz as TrainingSignature, bA as TrainingTemplatePack, bD as UpdateFormTemplateInput, bF as UpdateSyllabusElementForm, bG as UpdateSyllabusElementFormSchema, bH as UpdateSyllabusForm, bI as UpdateSyllabusFormSchema, bJ as UpsertTrainingRecordForm, bK as UpsertTrainingRecordFormSchema, bL as UsedByCourse, bQ as activitySchema, bR as addressSchema, bS as aircraftPositionSchema, bT as aircraftRatingSchema, bU as airplaneIssueSchema, bV as airplaneIssueSeverityEnum, bW as airplaneIssueStatusEnum, bX as airplanePermissionSchema, bY as airplaneSchema, bZ as airplaneShareInviteSchema, b_ as airportSchema, b$ as alertSchema, c0 as allowedDocumentTypeSchema, c1 as approachTypeSchema, c2 as availSchema, c3 as baseMembershipSchema, c4 as billingProfileSchema, c5 as bookingSchema, c6 as bookingWaypointSchema, c7 as commentSchema, c8 as companyIdentitySchema, c9 as companySchema, ca as contactAttributeSchema, cb as conversationKindSchema, cc as conversationMessageSchema, cd as conversationMessageSentEventSchema, ce as conversationParticipantSchema, cf as conversationReadEventSchema, cg as conversationRecipientSchema, ch as conversationSchema, ci as conversationUnreadSummarySchema, cj as courseCheckSyllabusSchema, ck as courseEnrollmentMetricsSchema, cl as courseEnrollmentSchema, cm as courseFeeSchema, cn as courseSchema, co as createSyllabusFromTemplateResultSchema, cp as documentComplianceStatus, cq as documentRequirement, cr as documentRequirementGroup, cs as documentRequirementGroupAssignment, ct as documentSchema, cu as documentShareSchema, cv as documentType, cw as enrollmentTrainingElementSchema, cx as eventSchema, cy as expenseItemSchema, cz as expenseSchema, cA as extendedAirplaneSchema, cB as fboAcceptanceAxisSchema, cC as fboAcceptanceStatusSchema, cD as fboActivityCauserSchema, cE as fboActivityChangesSchema, cF as fboActivitySchema, cG as fboCompanyGrantInputSchema, cH as fboCompanyGrantSchema, cI as fboCompanyMemberSchema, cJ as fboCompanyProfileSchema, cK as fboCompanySchema, cL as fboDecisionAxisSchema, cM as fboDecisionInputSchema, cN as fboDecisionSchema, cO as fboDutyAffectedSchema, cP as fboDutySchema, cQ as fboDutySeriesResponseSchema, cR as fboFlightCanSchema, cS as fboFlightDocumentSchema, cT as fboFlightSchema, cU as fboFlightStatusSchema, cV as fboFlightTypeSchema, cW as fboGrantAbilityOptionSchema, cX as fboGrantAbilitySchema, 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, da as fboRowCanSchema, db as fboStatisticsSchema, dc as fboSystemRoleSchema, dd as fboTrafficLayerInputSchema, de as fboTrafficRowSchema, df as fboTrafficRowTypeSchema, dg as fboTrafficSourceSchema, dh as fboVisibilitySchema, di as fboWeeklyLandingSchema, dj as feeCategoryOptionsSchema, dk as feeSchema, dl as flightLogSchema, dm as flightRequestAvailabilitySchema, dn as flightRequestBusyIntervalSchema, dp as flightRequestResponseSchema, dq as flightRequestResponseStatusSchema, dr as flightRequestSchema, ds as flightRequestSeatSchema, dt as flightRequestStatusSchema, du as flightRequestWindowSchema, dv as fuelUnitSchema, dw as gradeHistoryItemSchema, dx as gradingScalePointSchema, dy as gradingScaleSchema, dz as impersonationParticipantSchema, dA as impersonationStateSchema, dB as invalidateTrainingRecordResponseSchema, dC as invoiceSchema, dD as landingFeeSchema, dE as landingSchema, dF as maintenanceEventEstimationSchema, dG as maintenanceEventSchema, dH as maintenanceStatusSchema, dI as mediaCollection, dJ as mediaSchema, dK as membershipIdentitySchema, dL as membershipSchema, dM as membershipSignupSchema, dN as nestedMembershipSchema, dO as postSchema, dP as postSubjectSchema, dQ as prePaidPackageAssignmentSchema, dR as prePaidPackageSchema, dS as priceSchema, dT as qualificationSchema, dU as recurringFlightSchema, dV as roleSchema, dW as runwaySchema, dX as scheduledFlightSchema, dY as settingSchema, dZ as specialFlightSchema, d_ as syllabusElementMutationResultSchema, d$ as syllabusElementSchema, e0 as syllabusRolloutResultItemSchema, e1 as syllabusRolloutResultSchema, e2 as syllabusRolloutSkippedItemSchema, e3 as syllabusSchema, e4 as tagSchema, e5 as teachingPermissionSchema, e6 as ticketSchema, e7 as trainingElementSchema, e8 as trainingRecordEntryInputSchema, e9 as trainingRecordEntrySchema, ea as trainingRecordSchema, eb as trainingSignatureSchema, ec as trainingTemplatePackSchema, ed as usedByCourseSchema, ee as userAircraftRatingSchema, ef as userQualificationSchema, eg as userSchema, eh as waypointSchema, ei as zContactDTO, ej as zMoneyObject, ek as zNetGross, el as zNullableBool } from '../conversation-Be76HoQk.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare enum FaqStatus {
|
|
@@ -889,9 +889,9 @@ declare const courseMilestoneSchema: z.ZodObject<{
|
|
|
889
889
|
delete?: boolean | null | undefined;
|
|
890
890
|
}>>;
|
|
891
891
|
}, "strip", z.ZodTypeAny, {
|
|
892
|
-
kind: string;
|
|
893
892
|
name: string;
|
|
894
893
|
id: number;
|
|
894
|
+
kind: string;
|
|
895
895
|
sort_order: number;
|
|
896
896
|
course_id: number;
|
|
897
897
|
is_prerequisite: boolean;
|
|
@@ -910,9 +910,9 @@ declare const courseMilestoneSchema: z.ZodObject<{
|
|
|
910
910
|
} | null | undefined;
|
|
911
911
|
completion_rule?: Record<string, unknown> | null | undefined;
|
|
912
912
|
}, {
|
|
913
|
-
kind: string;
|
|
914
913
|
name: string;
|
|
915
914
|
id: number;
|
|
915
|
+
kind: string;
|
|
916
916
|
sort_order: number;
|
|
917
917
|
course_id: number;
|
|
918
918
|
is_prerequisite: boolean;
|
|
@@ -941,8 +941,8 @@ declare const CourseMilestoneFormSchema: z.ZodObject<{
|
|
|
941
941
|
completion_rule: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
942
942
|
sort_order: z.ZodOptional<z.ZodNumber>;
|
|
943
943
|
}, "strip", z.ZodTypeAny, {
|
|
944
|
-
kind: string;
|
|
945
944
|
name: string;
|
|
945
|
+
kind: string;
|
|
946
946
|
is_prerequisite: boolean;
|
|
947
947
|
description?: string | null | undefined;
|
|
948
948
|
sort_order?: number | undefined;
|
|
@@ -950,8 +950,8 @@ declare const CourseMilestoneFormSchema: z.ZodObject<{
|
|
|
950
950
|
completion_rule?: Record<string, unknown> | null | undefined;
|
|
951
951
|
}, {
|
|
952
952
|
name: string;
|
|
953
|
-
kind?: string | undefined;
|
|
954
953
|
description?: string | null | undefined;
|
|
954
|
+
kind?: string | undefined;
|
|
955
955
|
sort_order?: number | undefined;
|
|
956
956
|
is_prerequisite?: boolean | undefined;
|
|
957
957
|
requires_form_template_id?: number | null | undefined;
|
|
@@ -997,9 +997,9 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
|
|
|
997
997
|
delete?: boolean | null | undefined;
|
|
998
998
|
}>>;
|
|
999
999
|
}, "strip", z.ZodTypeAny, {
|
|
1000
|
-
kind: string;
|
|
1001
1000
|
name: string;
|
|
1002
1001
|
id: number;
|
|
1002
|
+
kind: string;
|
|
1003
1003
|
sort_order: number;
|
|
1004
1004
|
course_id: number;
|
|
1005
1005
|
is_prerequisite: boolean;
|
|
@@ -1018,9 +1018,9 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
|
|
|
1018
1018
|
} | null | undefined;
|
|
1019
1019
|
completion_rule?: Record<string, unknown> | null | undefined;
|
|
1020
1020
|
}, {
|
|
1021
|
-
kind: string;
|
|
1022
1021
|
name: string;
|
|
1023
1022
|
id: number;
|
|
1023
|
+
kind: string;
|
|
1024
1024
|
sort_order: number;
|
|
1025
1025
|
course_id: number;
|
|
1026
1026
|
is_prerequisite: boolean;
|
|
@@ -1087,9 +1087,9 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
|
|
|
1087
1087
|
} | undefined;
|
|
1088
1088
|
notes?: string | null | undefined;
|
|
1089
1089
|
milestone?: {
|
|
1090
|
-
kind: string;
|
|
1091
1090
|
name: string;
|
|
1092
1091
|
id: number;
|
|
1092
|
+
kind: string;
|
|
1093
1093
|
sort_order: number;
|
|
1094
1094
|
course_id: number;
|
|
1095
1095
|
is_prerequisite: boolean;
|
|
@@ -1129,9 +1129,9 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
|
|
|
1129
1129
|
} | undefined;
|
|
1130
1130
|
notes?: string | null | undefined;
|
|
1131
1131
|
milestone?: {
|
|
1132
|
-
kind: string;
|
|
1133
1132
|
name: string;
|
|
1134
1133
|
id: number;
|
|
1134
|
+
kind: string;
|
|
1135
1135
|
sort_order: number;
|
|
1136
1136
|
course_id: number;
|
|
1137
1137
|
is_prerequisite: boolean;
|
|
@@ -3725,8 +3725,8 @@ declare const CreateLocationMapSchema: z.ZodObject<{
|
|
|
3725
3725
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
3726
3726
|
}, "strip", z.ZodTypeAny, {
|
|
3727
3727
|
name: string;
|
|
3728
|
-
kind?: string | undefined;
|
|
3729
3728
|
description?: string | null | undefined;
|
|
3729
|
+
kind?: string | undefined;
|
|
3730
3730
|
is_active?: boolean | undefined;
|
|
3731
3731
|
slug?: string | undefined;
|
|
3732
3732
|
default_viewport?: {
|
|
@@ -3738,8 +3738,8 @@ declare const CreateLocationMapSchema: z.ZodObject<{
|
|
|
3738
3738
|
} | null | undefined;
|
|
3739
3739
|
}, {
|
|
3740
3740
|
name: string;
|
|
3741
|
-
kind?: string | undefined;
|
|
3742
3741
|
description?: string | null | undefined;
|
|
3742
|
+
kind?: string | undefined;
|
|
3743
3743
|
is_active?: boolean | undefined;
|
|
3744
3744
|
slug?: string | undefined;
|
|
3745
3745
|
default_viewport?: {
|
|
@@ -3777,9 +3777,9 @@ declare const UpdateLocationMapSchema: z.ZodObject<{
|
|
|
3777
3777
|
}>>>>;
|
|
3778
3778
|
is_active: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3779
3779
|
}, "strip", z.ZodTypeAny, {
|
|
3780
|
-
kind?: string | undefined;
|
|
3781
3780
|
name?: string | undefined;
|
|
3782
3781
|
description?: string | null | undefined;
|
|
3782
|
+
kind?: string | undefined;
|
|
3783
3783
|
is_active?: boolean | undefined;
|
|
3784
3784
|
slug?: string | undefined;
|
|
3785
3785
|
default_viewport?: {
|
|
@@ -3790,9 +3790,9 @@ declare const UpdateLocationMapSchema: z.ZodObject<{
|
|
|
3790
3790
|
bearing?: number | undefined;
|
|
3791
3791
|
} | null | undefined;
|
|
3792
3792
|
}, {
|
|
3793
|
-
kind?: string | undefined;
|
|
3794
3793
|
name?: string | undefined;
|
|
3795
3794
|
description?: string | null | undefined;
|
|
3795
|
+
kind?: string | undefined;
|
|
3796
3796
|
is_active?: boolean | undefined;
|
|
3797
3797
|
slug?: string | undefined;
|
|
3798
3798
|
default_viewport?: {
|
|
@@ -3874,8 +3874,8 @@ declare const UpdateLocationMapFeatureSchema: z.ZodObject<{
|
|
|
3874
3874
|
coordinates: unknown[];
|
|
3875
3875
|
}>>;
|
|
3876
3876
|
}, "strip", z.ZodTypeAny, {
|
|
3877
|
-
kind?: string | undefined;
|
|
3878
3877
|
name?: string | null | undefined;
|
|
3878
|
+
kind?: string | undefined;
|
|
3879
3879
|
properties?: Record<string, unknown> | null | undefined;
|
|
3880
3880
|
visibility?: LocationFeatureVisibility | undefined;
|
|
3881
3881
|
geometry?: {
|
|
@@ -3884,8 +3884,8 @@ declare const UpdateLocationMapFeatureSchema: z.ZodObject<{
|
|
|
3884
3884
|
} | undefined;
|
|
3885
3885
|
display_order?: number | undefined;
|
|
3886
3886
|
}, {
|
|
3887
|
-
kind?: string | undefined;
|
|
3888
3887
|
name?: string | null | undefined;
|
|
3888
|
+
kind?: string | undefined;
|
|
3889
3889
|
properties?: Record<string, unknown> | null | undefined;
|
|
3890
3890
|
visibility?: LocationFeatureVisibility | undefined;
|
|
3891
3891
|
geometry?: {
|
package/dist/schemas/index.js
CHANGED
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,6 +201,94 @@ 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" | "match_none";
|
|
205
|
+
type AircraftLogbookUiStatus = "unmatched" | "matched" | "ready_with_gaps" | "logged" | "applied" | "dismissed";
|
|
206
|
+
interface AircraftLogbookDeviation {
|
|
207
|
+
field: "etdZ" | "etaZ" | "landings" | "departure" | "destination";
|
|
208
|
+
logbook: string | number | null;
|
|
209
|
+
flight_log: string | number | null;
|
|
210
|
+
}
|
|
211
|
+
interface AircraftLogbookRowMeta extends LogbookSuggestionMeta {
|
|
212
|
+
pic_text?: string | null;
|
|
213
|
+
crew_count?: number | null;
|
|
214
|
+
pax_count?: number | null;
|
|
215
|
+
block_minutes?: number | null;
|
|
216
|
+
page_index?: number;
|
|
217
|
+
row_index?: number;
|
|
218
|
+
leg_group?: string;
|
|
219
|
+
score?: number;
|
|
220
|
+
score_reasons?: AircraftLogbookScoreReason[];
|
|
221
|
+
reconciliation?: {
|
|
222
|
+
flight_log_id: number;
|
|
223
|
+
deviations: AircraftLogbookDeviation[];
|
|
224
|
+
} | null;
|
|
225
|
+
dismiss_reason?: "already_logged" | "unreadable" | "manual" | null;
|
|
226
|
+
}
|
|
227
|
+
type AircraftLogbookRow = AiSuggestion<LogbookFlightLogPayload> & {
|
|
228
|
+
meta?: AircraftLogbookRowMeta;
|
|
229
|
+
batch_id: number | null;
|
|
230
|
+
ui_status: AircraftLogbookUiStatus;
|
|
231
|
+
booking: {
|
|
232
|
+
id: number;
|
|
233
|
+
etdZ: string | null;
|
|
234
|
+
etaZ: string | null;
|
|
235
|
+
crew: string;
|
|
236
|
+
} | null;
|
|
237
|
+
flight_log: {
|
|
238
|
+
id: number;
|
|
239
|
+
etdZ: string | null;
|
|
240
|
+
etaZ: string | null;
|
|
241
|
+
} | null;
|
|
242
|
+
};
|
|
243
|
+
type LogbookImportBatchStatus = "queued" | "processing" | "completed" | "failed";
|
|
244
|
+
interface LogbookImportBatch {
|
|
245
|
+
type: "logbook_import_batch";
|
|
246
|
+
id: number;
|
|
247
|
+
airplane_id: number;
|
|
248
|
+
company_id: number;
|
|
249
|
+
status: LogbookImportBatchStatus;
|
|
250
|
+
year_hint: number;
|
|
251
|
+
page_count: number;
|
|
252
|
+
row_count: number;
|
|
253
|
+
logged_count: number;
|
|
254
|
+
matched_count: number;
|
|
255
|
+
unmatched_count: number;
|
|
256
|
+
duplicate_count: number;
|
|
257
|
+
failed_pages: {
|
|
258
|
+
file: string;
|
|
259
|
+
page: number | null;
|
|
260
|
+
reason: string;
|
|
261
|
+
}[];
|
|
262
|
+
task_uuid: string | null;
|
|
263
|
+
requested_by: number | null;
|
|
264
|
+
created_at: string;
|
|
265
|
+
}
|
|
266
|
+
interface AircraftLogbookImportResult {
|
|
267
|
+
batch_id: number;
|
|
268
|
+
pages: number;
|
|
269
|
+
rows: number;
|
|
270
|
+
logged: number;
|
|
271
|
+
duplicates: number;
|
|
272
|
+
attached: number;
|
|
273
|
+
unmatched: number;
|
|
274
|
+
failed_pages: {
|
|
275
|
+
file: string;
|
|
276
|
+
page: number | null;
|
|
277
|
+
reason: string;
|
|
278
|
+
}[];
|
|
279
|
+
}
|
|
280
|
+
interface AircraftLogbookCrewProposal {
|
|
281
|
+
membership_id: number;
|
|
282
|
+
name: string;
|
|
283
|
+
score: number;
|
|
284
|
+
}
|
|
285
|
+
interface AircraftLogbookBulkAcceptResult {
|
|
286
|
+
applied: number[];
|
|
287
|
+
failed: {
|
|
288
|
+
id: number;
|
|
289
|
+
errors: Record<string, string[]>;
|
|
290
|
+
}[];
|
|
291
|
+
}
|
|
204
292
|
|
|
205
293
|
interface RoleListItem {
|
|
206
294
|
id: number;
|
|
@@ -515,4 +603,4 @@ type ConversationUnreadSummary = z.infer<typeof conversationUnreadSummarySchema>
|
|
|
515
603
|
type ConversationMessageSentEvent = z.infer<typeof conversationMessageSentEventSchema>;
|
|
516
604
|
type ConversationReadEvent = z.infer<typeof conversationReadEventSchema>;
|
|
517
605
|
|
|
518
|
-
export type { AiSuggestedMilestone, AiSuggestion, AiSuggestionStatus, AircraftBlock, AircraftBlockReason, ApiResponse, BackgroundTask, BackgroundTaskStatus, ComplianceData, ComplianceGroup, ComplianceGroupSource, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Conversation, ConversationKind, ConversationMessage, ConversationMessageSentEvent, ConversationParticipant, ConversationReadEvent, ConversationRecipient, ConversationUnreadSummary, CourseDescriptionSuggestionPayload, DataWrappedResponse, DiscardedRow, FboAcceptanceAxis, FboAcceptanceStatus, FboActivity, FboActivityCauser, FboActivityChanges, FboCompany, FboCompanyGrant, FboCompanyGrantInput, FboCompanyMember, FboCompanyProfile, FboDecision, FboDecisionAxis, FboDecisionInput, FboDuty, FboDutyAffected, FboDutySeriesResponse, FboFlight, FboFlightDocument, FboFlightStatus, FboFlightType, FboGrantAbility, FboGrantAbilityOption, FboGrantCompanyRef, FboGroundServices, FboLandingsSummary, FboMaterialiseResult, FboMeta, FboNextDuty, FboOccupation, FboOperations, FboPerson, FboPob, FboRecurrence, FboRecurrenceType, FboRecurringFlight, FboRole, FboStatistics, FboSystemRole, FboTrafficLayerInput, FboTrafficRow, FboTrafficSource, FboVisibility, FboWeeklyLanding, GroupedPermissions, LandingFeeImportResult, LandingFeeInvoiceApplyPayload, LandingFeeInvoiceApplyResult, LandingFeeInvoicePreview, LandingFeeInvoicePreviewRow, LandingFeeTemplateParams, LogbookFlightLogPayload, LogbookStageResult, LogbookSuggestion, LogbookSuggestionMeta, OperatingHourDay, OperatingHourException, OperatingHourExceptionInput, OperatingHourInterval, OperatingHourKind, OperatingHourResolvedDate, OperatingHourSchedule, OperatingHourScheduleInput, OperatingHourStatusEntry, OperatingHourWindow, OperatingHoursMeta, OperatingHoursNextOpenEntry, OperatingHoursNextOpenResponse, OperatingHoursStatusResponse, OperatingStatusValue, PaginatedResponse, PermissionItem, Resource, RoleDetail, RoleListItem, TimeAnchor, ToggleFavoriteResponse };
|
|
606
|
+
export type { AiSuggestedMilestone, AiSuggestion, AiSuggestionStatus, AircraftBlock, AircraftBlockReason, AircraftLogbookBulkAcceptResult, AircraftLogbookCrewProposal, AircraftLogbookDeviation, AircraftLogbookImportResult, AircraftLogbookRow, AircraftLogbookRowMeta, AircraftLogbookScoreReason, AircraftLogbookUiStatus, ApiResponse, BackgroundTask, BackgroundTaskStatus, ComplianceData, ComplianceGroup, ComplianceGroupSource, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Conversation, ConversationKind, ConversationMessage, ConversationMessageSentEvent, ConversationParticipant, ConversationReadEvent, ConversationRecipient, ConversationUnreadSummary, CourseDescriptionSuggestionPayload, DataWrappedResponse, DiscardedRow, FboAcceptanceAxis, FboAcceptanceStatus, FboActivity, FboActivityCauser, FboActivityChanges, FboCompany, FboCompanyGrant, FboCompanyGrantInput, FboCompanyMember, FboCompanyProfile, FboDecision, FboDecisionAxis, FboDecisionInput, FboDuty, FboDutyAffected, FboDutySeriesResponse, FboFlight, FboFlightDocument, FboFlightStatus, FboFlightType, FboGrantAbility, FboGrantAbilityOption, FboGrantCompanyRef, FboGroundServices, FboLandingsSummary, FboMaterialiseResult, FboMeta, FboNextDuty, FboOccupation, FboOperations, FboPerson, FboPob, FboRecurrence, FboRecurrenceType, FboRecurringFlight, FboRole, FboStatistics, FboSystemRole, FboTrafficLayerInput, FboTrafficRow, FboTrafficSource, FboVisibility, FboWeeklyLanding, GroupedPermissions, LandingFeeImportResult, LandingFeeInvoiceApplyPayload, LandingFeeInvoiceApplyResult, LandingFeeInvoicePreview, LandingFeeInvoicePreviewRow, LandingFeeTemplateParams, LogbookFlightLogPayload, LogbookImportBatch, LogbookImportBatchStatus, LogbookStageResult, LogbookSuggestion, LogbookSuggestionMeta, OperatingHourDay, OperatingHourException, OperatingHourExceptionInput, OperatingHourInterval, OperatingHourKind, OperatingHourResolvedDate, OperatingHourSchedule, OperatingHourScheduleInput, OperatingHourStatusEntry, OperatingHourWindow, OperatingHoursMeta, OperatingHoursNextOpenEntry, OperatingHoursNextOpenResponse, OperatingHoursStatusResponse, OperatingStatusValue, PaginatedResponse, PermissionItem, Resource, RoleDetail, RoleListItem, TimeAnchor, ToggleFavoriteResponse };
|
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,6 +201,94 @@ 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" | "match_none";
|
|
205
|
+
type AircraftLogbookUiStatus = "unmatched" | "matched" | "ready_with_gaps" | "logged" | "applied" | "dismissed";
|
|
206
|
+
interface AircraftLogbookDeviation {
|
|
207
|
+
field: "etdZ" | "etaZ" | "landings" | "departure" | "destination";
|
|
208
|
+
logbook: string | number | null;
|
|
209
|
+
flight_log: string | number | null;
|
|
210
|
+
}
|
|
211
|
+
interface AircraftLogbookRowMeta extends LogbookSuggestionMeta {
|
|
212
|
+
pic_text?: string | null;
|
|
213
|
+
crew_count?: number | null;
|
|
214
|
+
pax_count?: number | null;
|
|
215
|
+
block_minutes?: number | null;
|
|
216
|
+
page_index?: number;
|
|
217
|
+
row_index?: number;
|
|
218
|
+
leg_group?: string;
|
|
219
|
+
score?: number;
|
|
220
|
+
score_reasons?: AircraftLogbookScoreReason[];
|
|
221
|
+
reconciliation?: {
|
|
222
|
+
flight_log_id: number;
|
|
223
|
+
deviations: AircraftLogbookDeviation[];
|
|
224
|
+
} | null;
|
|
225
|
+
dismiss_reason?: "already_logged" | "unreadable" | "manual" | null;
|
|
226
|
+
}
|
|
227
|
+
type AircraftLogbookRow = AiSuggestion<LogbookFlightLogPayload> & {
|
|
228
|
+
meta?: AircraftLogbookRowMeta;
|
|
229
|
+
batch_id: number | null;
|
|
230
|
+
ui_status: AircraftLogbookUiStatus;
|
|
231
|
+
booking: {
|
|
232
|
+
id: number;
|
|
233
|
+
etdZ: string | null;
|
|
234
|
+
etaZ: string | null;
|
|
235
|
+
crew: string;
|
|
236
|
+
} | null;
|
|
237
|
+
flight_log: {
|
|
238
|
+
id: number;
|
|
239
|
+
etdZ: string | null;
|
|
240
|
+
etaZ: string | null;
|
|
241
|
+
} | null;
|
|
242
|
+
};
|
|
243
|
+
type LogbookImportBatchStatus = "queued" | "processing" | "completed" | "failed";
|
|
244
|
+
interface LogbookImportBatch {
|
|
245
|
+
type: "logbook_import_batch";
|
|
246
|
+
id: number;
|
|
247
|
+
airplane_id: number;
|
|
248
|
+
company_id: number;
|
|
249
|
+
status: LogbookImportBatchStatus;
|
|
250
|
+
year_hint: number;
|
|
251
|
+
page_count: number;
|
|
252
|
+
row_count: number;
|
|
253
|
+
logged_count: number;
|
|
254
|
+
matched_count: number;
|
|
255
|
+
unmatched_count: number;
|
|
256
|
+
duplicate_count: number;
|
|
257
|
+
failed_pages: {
|
|
258
|
+
file: string;
|
|
259
|
+
page: number | null;
|
|
260
|
+
reason: string;
|
|
261
|
+
}[];
|
|
262
|
+
task_uuid: string | null;
|
|
263
|
+
requested_by: number | null;
|
|
264
|
+
created_at: string;
|
|
265
|
+
}
|
|
266
|
+
interface AircraftLogbookImportResult {
|
|
267
|
+
batch_id: number;
|
|
268
|
+
pages: number;
|
|
269
|
+
rows: number;
|
|
270
|
+
logged: number;
|
|
271
|
+
duplicates: number;
|
|
272
|
+
attached: number;
|
|
273
|
+
unmatched: number;
|
|
274
|
+
failed_pages: {
|
|
275
|
+
file: string;
|
|
276
|
+
page: number | null;
|
|
277
|
+
reason: string;
|
|
278
|
+
}[];
|
|
279
|
+
}
|
|
280
|
+
interface AircraftLogbookCrewProposal {
|
|
281
|
+
membership_id: number;
|
|
282
|
+
name: string;
|
|
283
|
+
score: number;
|
|
284
|
+
}
|
|
285
|
+
interface AircraftLogbookBulkAcceptResult {
|
|
286
|
+
applied: number[];
|
|
287
|
+
failed: {
|
|
288
|
+
id: number;
|
|
289
|
+
errors: Record<string, string[]>;
|
|
290
|
+
}[];
|
|
291
|
+
}
|
|
204
292
|
|
|
205
293
|
interface RoleListItem {
|
|
206
294
|
id: number;
|
|
@@ -515,4 +603,4 @@ type ConversationUnreadSummary = z.infer<typeof conversationUnreadSummarySchema>
|
|
|
515
603
|
type ConversationMessageSentEvent = z.infer<typeof conversationMessageSentEventSchema>;
|
|
516
604
|
type ConversationReadEvent = z.infer<typeof conversationReadEventSchema>;
|
|
517
605
|
|
|
518
|
-
export type { AiSuggestedMilestone, AiSuggestion, AiSuggestionStatus, AircraftBlock, AircraftBlockReason, ApiResponse, BackgroundTask, BackgroundTaskStatus, ComplianceData, ComplianceGroup, ComplianceGroupSource, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Conversation, ConversationKind, ConversationMessage, ConversationMessageSentEvent, ConversationParticipant, ConversationReadEvent, ConversationRecipient, ConversationUnreadSummary, CourseDescriptionSuggestionPayload, DataWrappedResponse, DiscardedRow, FboAcceptanceAxis, FboAcceptanceStatus, FboActivity, FboActivityCauser, FboActivityChanges, FboCompany, FboCompanyGrant, FboCompanyGrantInput, FboCompanyMember, FboCompanyProfile, FboDecision, FboDecisionAxis, FboDecisionInput, FboDuty, FboDutyAffected, FboDutySeriesResponse, FboFlight, FboFlightDocument, FboFlightStatus, FboFlightType, FboGrantAbility, FboGrantAbilityOption, FboGrantCompanyRef, FboGroundServices, FboLandingsSummary, FboMaterialiseResult, FboMeta, FboNextDuty, FboOccupation, FboOperations, FboPerson, FboPob, FboRecurrence, FboRecurrenceType, FboRecurringFlight, FboRole, FboStatistics, FboSystemRole, FboTrafficLayerInput, FboTrafficRow, FboTrafficSource, FboVisibility, FboWeeklyLanding, GroupedPermissions, LandingFeeImportResult, LandingFeeInvoiceApplyPayload, LandingFeeInvoiceApplyResult, LandingFeeInvoicePreview, LandingFeeInvoicePreviewRow, LandingFeeTemplateParams, LogbookFlightLogPayload, LogbookStageResult, LogbookSuggestion, LogbookSuggestionMeta, OperatingHourDay, OperatingHourException, OperatingHourExceptionInput, OperatingHourInterval, OperatingHourKind, OperatingHourResolvedDate, OperatingHourSchedule, OperatingHourScheduleInput, OperatingHourStatusEntry, OperatingHourWindow, OperatingHoursMeta, OperatingHoursNextOpenEntry, OperatingHoursNextOpenResponse, OperatingHoursStatusResponse, OperatingStatusValue, PaginatedResponse, PermissionItem, Resource, RoleDetail, RoleListItem, TimeAnchor, ToggleFavoriteResponse };
|
|
606
|
+
export type { AiSuggestedMilestone, AiSuggestion, AiSuggestionStatus, AircraftBlock, AircraftBlockReason, AircraftLogbookBulkAcceptResult, AircraftLogbookCrewProposal, AircraftLogbookDeviation, AircraftLogbookImportResult, AircraftLogbookRow, AircraftLogbookRowMeta, AircraftLogbookScoreReason, AircraftLogbookUiStatus, ApiResponse, BackgroundTask, BackgroundTaskStatus, ComplianceData, ComplianceGroup, ComplianceGroupSource, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Conversation, ConversationKind, ConversationMessage, ConversationMessageSentEvent, ConversationParticipant, ConversationReadEvent, ConversationRecipient, ConversationUnreadSummary, CourseDescriptionSuggestionPayload, DataWrappedResponse, DiscardedRow, FboAcceptanceAxis, FboAcceptanceStatus, FboActivity, FboActivityCauser, FboActivityChanges, FboCompany, FboCompanyGrant, FboCompanyGrantInput, FboCompanyMember, FboCompanyProfile, FboDecision, FboDecisionAxis, FboDecisionInput, FboDuty, FboDutyAffected, FboDutySeriesResponse, FboFlight, FboFlightDocument, FboFlightStatus, FboFlightType, FboGrantAbility, FboGrantAbilityOption, FboGrantCompanyRef, FboGroundServices, FboLandingsSummary, FboMaterialiseResult, FboMeta, FboNextDuty, FboOccupation, FboOperations, FboPerson, FboPob, FboRecurrence, FboRecurrenceType, FboRecurringFlight, FboRole, FboStatistics, FboSystemRole, FboTrafficLayerInput, FboTrafficRow, FboTrafficSource, FboVisibility, FboWeeklyLanding, GroupedPermissions, LandingFeeImportResult, LandingFeeInvoiceApplyPayload, LandingFeeInvoiceApplyResult, LandingFeeInvoicePreview, LandingFeeInvoicePreviewRow, LandingFeeTemplateParams, LogbookFlightLogPayload, LogbookImportBatch, LogbookImportBatchStatus, LogbookStageResult, LogbookSuggestion, LogbookSuggestionMeta, OperatingHourDay, OperatingHourException, OperatingHourExceptionInput, OperatingHourInterval, OperatingHourKind, OperatingHourResolvedDate, OperatingHourSchedule, OperatingHourScheduleInput, OperatingHourStatusEntry, OperatingHourWindow, OperatingHoursMeta, OperatingHoursNextOpenEntry, OperatingHoursNextOpenResponse, OperatingHoursStatusResponse, OperatingStatusValue, PaginatedResponse, PermissionItem, Resource, RoleDetail, RoleListItem, TimeAnchor, ToggleFavoriteResponse };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@updraft-solutions/mcrit-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
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/schemas/common.ts
CHANGED
|
@@ -55,6 +55,9 @@ export const mediaCollection = z
|
|
|
55
55
|
header: mediaSchema.nullable().optional(),
|
|
56
56
|
images: z.array(mediaSchema).nullable().optional(),
|
|
57
57
|
documents: z.array(mediaSchema).nullable().optional(),
|
|
58
|
+
// Course-only public tier: emitted on the web feed and to any viewer,
|
|
59
|
+
// while `documents` is omitted for non-members (members-only tier).
|
|
60
|
+
public_documents: z.array(mediaSchema).nullable().optional(),
|
|
58
61
|
})
|
|
59
62
|
.nullable()
|
|
60
63
|
.optional();
|
package/src/types/ai.ts
CHANGED
|
@@ -84,3 +84,93 @@ export interface LogbookStageResult {
|
|
|
84
84
|
routed: Record<string, number> | number[];
|
|
85
85
|
discarded: DiscardedRow[];
|
|
86
86
|
}
|
|
87
|
+
|
|
88
|
+
// Aircraft logbook (Bordbuch) batch import — admin, airplane-scoped.
|
|
89
|
+
|
|
90
|
+
export type AircraftLogbookScoreReason =
|
|
91
|
+
| "duration_mismatch"
|
|
92
|
+
| "totals_mismatch"
|
|
93
|
+
| "date_out_of_order"
|
|
94
|
+
| "missing_airport"
|
|
95
|
+
| "unreadable_time"
|
|
96
|
+
| "match_low"
|
|
97
|
+
| "match_none";
|
|
98
|
+
|
|
99
|
+
export type AircraftLogbookUiStatus =
|
|
100
|
+
| "unmatched"
|
|
101
|
+
| "matched"
|
|
102
|
+
| "ready_with_gaps"
|
|
103
|
+
| "logged"
|
|
104
|
+
| "applied"
|
|
105
|
+
| "dismissed";
|
|
106
|
+
|
|
107
|
+
export interface AircraftLogbookDeviation {
|
|
108
|
+
field: "etdZ" | "etaZ" | "landings" | "departure" | "destination";
|
|
109
|
+
logbook: string | number | null;
|
|
110
|
+
flight_log: string | number | null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface AircraftLogbookRowMeta extends LogbookSuggestionMeta {
|
|
114
|
+
pic_text?: string | null;
|
|
115
|
+
crew_count?: number | null;
|
|
116
|
+
pax_count?: number | null;
|
|
117
|
+
block_minutes?: number | null;
|
|
118
|
+
page_index?: number;
|
|
119
|
+
row_index?: number;
|
|
120
|
+
leg_group?: string;
|
|
121
|
+
score?: number;
|
|
122
|
+
score_reasons?: AircraftLogbookScoreReason[];
|
|
123
|
+
reconciliation?: { flight_log_id: number; deviations: AircraftLogbookDeviation[] } | null;
|
|
124
|
+
dismiss_reason?: "already_logged" | "unreadable" | "manual" | null;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type AircraftLogbookRow = AiSuggestion<LogbookFlightLogPayload> & {
|
|
128
|
+
meta?: AircraftLogbookRowMeta;
|
|
129
|
+
batch_id: number | null;
|
|
130
|
+
ui_status: AircraftLogbookUiStatus;
|
|
131
|
+
booking: { id: number; etdZ: string | null; etaZ: string | null; crew: string } | null;
|
|
132
|
+
flight_log: { id: number; etdZ: string | null; etaZ: string | null } | null;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export type LogbookImportBatchStatus = "queued" | "processing" | "completed" | "failed";
|
|
136
|
+
|
|
137
|
+
export interface LogbookImportBatch {
|
|
138
|
+
type: "logbook_import_batch";
|
|
139
|
+
id: number;
|
|
140
|
+
airplane_id: number;
|
|
141
|
+
company_id: number;
|
|
142
|
+
status: LogbookImportBatchStatus;
|
|
143
|
+
year_hint: number;
|
|
144
|
+
page_count: number;
|
|
145
|
+
row_count: number;
|
|
146
|
+
logged_count: number;
|
|
147
|
+
matched_count: number;
|
|
148
|
+
unmatched_count: number;
|
|
149
|
+
duplicate_count: number;
|
|
150
|
+
failed_pages: { file: string; page: number | null; reason: string }[];
|
|
151
|
+
task_uuid: string | null;
|
|
152
|
+
requested_by: number | null;
|
|
153
|
+
created_at: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface AircraftLogbookImportResult {
|
|
157
|
+
batch_id: number;
|
|
158
|
+
pages: number;
|
|
159
|
+
rows: number;
|
|
160
|
+
logged: number;
|
|
161
|
+
duplicates: number;
|
|
162
|
+
attached: number;
|
|
163
|
+
unmatched: number;
|
|
164
|
+
failed_pages: { file: string; page: number | null; reason: string }[];
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface AircraftLogbookCrewProposal {
|
|
168
|
+
membership_id: number;
|
|
169
|
+
name: string;
|
|
170
|
+
score: number;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface AircraftLogbookBulkAcceptResult {
|
|
174
|
+
applied: number[];
|
|
175
|
+
failed: { id: number; errors: Record<string, string[]> }[];
|
|
176
|
+
}
|