@updraft-solutions/mcrit-sdk 0.14.15 → 0.14.16
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-CKSRCSJF.js → chunk-7Q7G5R47.js} +7 -0
- package/dist/{chunk-ZZ5K2JAN.cjs → chunk-VQAVNMFC.cjs} +8 -1
- package/dist/{fbo-8VPwfme5.d.cts → fbo-B-SGYEy-.d.cts} +17913 -17823
- package/dist/{fbo-8VPwfme5.d.ts → fbo-B-SGYEy-.d.ts} +17913 -17823
- package/dist/index.cjs +7 -5
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -13
- package/dist/schemas/index.cjs +4 -2
- package/dist/schemas/index.d.cts +121 -121
- package/dist/schemas/index.d.ts +121 -121
- package/dist/schemas/index.js +3 -1
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.ts +3 -2
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/schemas/fbo.spec.ts +66 -0
- package/src/schemas/fbo.ts +21 -0
- package/src/types/fbo.ts +1 -0
package/dist/schemas/index.js
CHANGED
|
@@ -175,6 +175,7 @@ import {
|
|
|
175
175
|
fboRowCanSchema,
|
|
176
176
|
fboStatisticsSchema,
|
|
177
177
|
fboSystemRoleSchema,
|
|
178
|
+
fboTrafficLayerInputSchema,
|
|
178
179
|
fboTrafficRowSchema,
|
|
179
180
|
fboTrafficRowTypeSchema,
|
|
180
181
|
fboTrafficSourceSchema,
|
|
@@ -237,7 +238,7 @@ import {
|
|
|
237
238
|
zMoneyObject,
|
|
238
239
|
zNetGross,
|
|
239
240
|
zNullableBool
|
|
240
|
-
} from "../chunk-
|
|
241
|
+
} from "../chunk-7Q7G5R47.js";
|
|
241
242
|
export {
|
|
242
243
|
ALLOWED_GEOMETRY_TYPES,
|
|
243
244
|
ALLOWED_NEWSLETTER_VARIABLES,
|
|
@@ -415,6 +416,7 @@ export {
|
|
|
415
416
|
fboRowCanSchema,
|
|
416
417
|
fboStatisticsSchema,
|
|
417
418
|
fboSystemRoleSchema,
|
|
419
|
+
fboTrafficLayerInputSchema,
|
|
418
420
|
fboTrafficRowSchema,
|
|
419
421
|
fboTrafficRowTypeSchema,
|
|
420
422
|
fboTrafficSourceSchema,
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { aE as activitySchema, aF as addressSchema, aG as aircraftPositionSchema, aH as aircraftRatingSchema, aM as airplaneSchema, aL as airplanePermissionSchema, aN as airplaneShareInviteSchema, aO as airportSchema, aP as alertSchema, aQ as allowedDocumentTypeSchema, aR as approachTypeSchema, aS as availSchema, aT as baseMembershipSchema, aV as bookingSchema, aX as commentSchema, aZ as companySchema, b3 as courseSchema, b1 as courseEnrollmentSchema, b2 as courseFeeSchema, aJ as airplaneIssueSeverityEnum, b9 as documentSchema, b5 as documentComplianceStatus, b6 as documentRequirement, b7 as documentRequirementGroup, b8 as documentRequirementGroupAssignment, ba as documentShareSchema, bb as documentType, bd as eventSchema, bf as expenseSchema, be as expenseItemSchema, bg as extendedAirplaneSchema,
|
|
2
|
+
import { aE as activitySchema, aF as addressSchema, aG as aircraftPositionSchema, aH as aircraftRatingSchema, aM as airplaneSchema, aL as airplanePermissionSchema, aN as airplaneShareInviteSchema, aO as airportSchema, aP as alertSchema, aQ as allowedDocumentTypeSchema, aR as approachTypeSchema, aS as availSchema, aT as baseMembershipSchema, aV as bookingSchema, aX as commentSchema, aZ as companySchema, b3 as courseSchema, b1 as courseEnrollmentSchema, b2 as courseFeeSchema, aJ as airplaneIssueSeverityEnum, b9 as documentSchema, b5 as documentComplianceStatus, b6 as documentRequirement, b7 as documentRequirementGroup, b8 as documentRequirementGroupAssignment, ba as documentShareSchema, bb as documentType, bd as eventSchema, bf as expenseSchema, be as expenseItemSchema, bg as extendedAirplaneSchema, c0 as feeSchema, b$ as feeCategoryOptionsSchema, c1 as flightLogSchema, c9 as invoiceSchema, cb as landingSchema, ca as landingFeeSchema, cd as maintenanceEventSchema, cc as maintenanceEventEstimationSchema, ce as maintenanceStatusSchema, cf as mediaCollection, ci as membershipSchema, cj as membershipSignupSchema, cl as postSchema, cm as postSubjectSchema, co as prePaidPackageSchema, cp as priceSchema, cq as qualificationSchema, cr as recurringFlightSchema, cs as roleSchema, ct as runwaySchema, cu as scheduledFlightSchema, cv as settingSchema, cw as specialFlightSchema, cD as tagSchema, cE as ticketSchema, cO as userSchema, cM as userAircraftRatingSchema, cN as userQualificationSchema, cP as waypointSchema, aI as airplaneIssueSchema, aK as airplaneIssueStatusEnum, B as BaseModel$1, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, cg as mediaSchema, n as FormSubmission, bh as fboAcceptanceAxisSchema, bi as fboAcceptanceStatusSchema, bl as fboActivitySchema, bj as fboActivityCauserSchema, bk as fboActivityChangesSchema, bq as fboCompanySchema, bn as fboCompanyGrantSchema, bm as fboCompanyGrantInputSchema, bo as fboCompanyMemberSchema, bp as fboCompanyProfileSchema, bt as fboDecisionSchema, br as fboDecisionAxisSchema, bs as fboDecisionInputSchema, bv as fboDutySchema, bu as fboDutyAffectedSchema, bw as fboDutySeriesResponseSchema, bz as fboFlightSchema, by as fboFlightDocumentSchema, bA as fboFlightStatusSchema, bB as fboFlightTypeSchema, bD as fboGrantAbilitySchema, bC as fboGrantAbilityOptionSchema, bE as fboGrantCompanyRefSchema, bF as fboGroundServicesSchema, bG as fboLandingsSummarySchema, bH as fboMaterialiseResultSchema, bI as fboMetaSchema, bJ as fboNextDutySchema, bK as fboOccupationSchema, bL as fboOperationsSchema, bM as fboPersonSchema, bN as fboPobSchema, bO as fboRecurrenceSchema, bP as fboRecurrenceTypeSchema, bQ as fboRecurringFlightSchema, bR as fboRoleSchema, bT as fboStatisticsSchema, bU as fboSystemRoleSchema, bV as fboTrafficLayerInputSchema, bW as fboTrafficRowSchema, bY as fboTrafficSourceSchema, bZ as fboVisibilitySchema, b_ as fboWeeklyLandingSchema } from '../fbo-B-SGYEy-.cjs';
|
|
3
3
|
|
|
4
4
|
type BaseModel = z.infer<typeof BaseModel$1>;
|
|
5
5
|
type User = z.infer<typeof userSchema>;
|
|
@@ -602,6 +602,7 @@ type FboDecisionInput = z.infer<typeof fboDecisionInputSchema>;
|
|
|
602
602
|
type FboVisibility = z.infer<typeof fboVisibilitySchema>;
|
|
603
603
|
type FboTrafficSource = z.infer<typeof fboTrafficSourceSchema>;
|
|
604
604
|
type FboTrafficRow = z.infer<typeof fboTrafficRowSchema>;
|
|
605
|
+
type FboTrafficLayerInput = z.infer<typeof fboTrafficLayerInputSchema>;
|
|
605
606
|
type FboSystemRole = z.infer<typeof fboSystemRoleSchema>;
|
|
606
607
|
type FboCompanyMember = z.infer<typeof fboCompanyMemberSchema>;
|
|
607
608
|
type FboNextDuty = z.infer<typeof fboNextDutySchema>;
|
|
@@ -621,4 +622,4 @@ type FboCompanyGrantInput = z.infer<typeof fboCompanyGrantInputSchema>;
|
|
|
621
622
|
type FboMeta = z.infer<typeof fboMetaSchema>;
|
|
622
623
|
type FboCompany = z.infer<typeof fboCompanySchema>;
|
|
623
624
|
|
|
624
|
-
export type { Activity, Address, AiSuggestedMilestone, AiSuggestion, AiSuggestionStatus, AircraftBlock, AircraftBlockReason, AircraftPosition, AircraftRating, Airplane, AirplaneIssue, AirplaneIssueSeverity, AirplaneIssueStatus, AirplanePermission, AirplaneShareInvite, Airport, Alert, AllowedDocumentType, ApiResponse, ApproachType, Avail, BackgroundTask, BackgroundTaskStatus, BaseMembership, BaseModel, Booking, Comment, Company, ComplianceData, ComplianceGroup, ComplianceGroupSource, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Course, CourseCheckSyllabus, CourseDescriptionSuggestionPayload, CourseEnrollment, CourseEnrollmentMetrics, CourseFee, CreateAirplaneIssueInput, CreateCommentInput, CreatePostInput, DataWrappedResponse, DeferAirplaneIssueInput, DiscardedRow, Document, DocumentComplianceStatus, DocumentRequirement, DocumentRequirementGroup, DocumentRequirementGroupAssignment, DocumentShare, DocumentType, Event, Expense, ExpenseItem, ExtendedAirplane, 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, FboTrafficRow, FboTrafficSource, FboVisibility, FboWeeklyLanding, Fee, FeeCategoryOptions, FlightLog, GroupedPermissions, Invoice, Landing, LandingFee, LandingFeeImportResult, LandingFeeInvoiceApplyPayload, LandingFeeInvoiceApplyResult, LandingFeeInvoicePreview, LandingFeeInvoicePreviewRow, LandingFeeTemplateParams, LogbookFlightLogPayload, LogbookStageResult, LogbookSuggestion, LogbookSuggestionMeta, MaintenanceEvent, MaintenanceEventEstimation, MaintenanceStatus, Media, MediaCollection, Membership, MembershipSignup, OperatingHourDay, OperatingHourException, OperatingHourExceptionInput, OperatingHourInterval, OperatingHourKind, OperatingHourResolvedDate, OperatingHourSchedule, OperatingHourScheduleInput, OperatingHourStatusEntry, OperatingHourWindow, OperatingHoursMeta, OperatingHoursNextOpenEntry, OperatingHoursNextOpenResponse, OperatingHoursStatusResponse, OperatingStatusValue, PaginatedResponse, PermissionItem, Post, PostSubject, PrePaidPackage, Price, Qualification, RecurringFlight, ResolveAirplaneIssueInput, Resource, Role, RoleDetail, RoleListItem, Runway, ScheduledFlight, Setting, SpecialFlight, Tag, TagSyncEntry, Ticket, TimeAnchor, ToggleFavoriteResponse, UpdateAirplaneIssueInput, UpdateCommentInput, UpdatePostInput, User, UserAircraftRating, UserQualification, Waypoint };
|
|
625
|
+
export type { Activity, Address, AiSuggestedMilestone, AiSuggestion, AiSuggestionStatus, AircraftBlock, AircraftBlockReason, AircraftPosition, AircraftRating, Airplane, AirplaneIssue, AirplaneIssueSeverity, AirplaneIssueStatus, AirplanePermission, AirplaneShareInvite, Airport, Alert, AllowedDocumentType, ApiResponse, ApproachType, Avail, BackgroundTask, BackgroundTaskStatus, BaseMembership, BaseModel, Booking, Comment, Company, ComplianceData, ComplianceGroup, ComplianceGroupSource, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Course, CourseCheckSyllabus, CourseDescriptionSuggestionPayload, CourseEnrollment, CourseEnrollmentMetrics, CourseFee, CreateAirplaneIssueInput, CreateCommentInput, CreatePostInput, DataWrappedResponse, DeferAirplaneIssueInput, DiscardedRow, Document, DocumentComplianceStatus, DocumentRequirement, DocumentRequirementGroup, DocumentRequirementGroupAssignment, DocumentShare, DocumentType, Event, Expense, ExpenseItem, ExtendedAirplane, 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, Fee, FeeCategoryOptions, FlightLog, GroupedPermissions, Invoice, Landing, LandingFee, LandingFeeImportResult, LandingFeeInvoiceApplyPayload, LandingFeeInvoiceApplyResult, LandingFeeInvoicePreview, LandingFeeInvoicePreviewRow, LandingFeeTemplateParams, LogbookFlightLogPayload, LogbookStageResult, LogbookSuggestion, LogbookSuggestionMeta, MaintenanceEvent, MaintenanceEventEstimation, MaintenanceStatus, Media, MediaCollection, Membership, MembershipSignup, OperatingHourDay, OperatingHourException, OperatingHourExceptionInput, OperatingHourInterval, OperatingHourKind, OperatingHourResolvedDate, OperatingHourSchedule, OperatingHourScheduleInput, OperatingHourStatusEntry, OperatingHourWindow, OperatingHoursMeta, OperatingHoursNextOpenEntry, OperatingHoursNextOpenResponse, OperatingHoursStatusResponse, OperatingStatusValue, PaginatedResponse, PermissionItem, Post, PostSubject, PrePaidPackage, Price, Qualification, RecurringFlight, ResolveAirplaneIssueInput, Resource, Role, RoleDetail, RoleListItem, Runway, ScheduledFlight, Setting, SpecialFlight, Tag, TagSyncEntry, Ticket, TimeAnchor, ToggleFavoriteResponse, UpdateAirplaneIssueInput, UpdateCommentInput, UpdatePostInput, User, UserAircraftRating, UserQualification, Waypoint };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { aE as activitySchema, aF as addressSchema, aG as aircraftPositionSchema, aH as aircraftRatingSchema, aM as airplaneSchema, aL as airplanePermissionSchema, aN as airplaneShareInviteSchema, aO as airportSchema, aP as alertSchema, aQ as allowedDocumentTypeSchema, aR as approachTypeSchema, aS as availSchema, aT as baseMembershipSchema, aV as bookingSchema, aX as commentSchema, aZ as companySchema, b3 as courseSchema, b1 as courseEnrollmentSchema, b2 as courseFeeSchema, aJ as airplaneIssueSeverityEnum, b9 as documentSchema, b5 as documentComplianceStatus, b6 as documentRequirement, b7 as documentRequirementGroup, b8 as documentRequirementGroupAssignment, ba as documentShareSchema, bb as documentType, bd as eventSchema, bf as expenseSchema, be as expenseItemSchema, bg as extendedAirplaneSchema,
|
|
2
|
+
import { aE as activitySchema, aF as addressSchema, aG as aircraftPositionSchema, aH as aircraftRatingSchema, aM as airplaneSchema, aL as airplanePermissionSchema, aN as airplaneShareInviteSchema, aO as airportSchema, aP as alertSchema, aQ as allowedDocumentTypeSchema, aR as approachTypeSchema, aS as availSchema, aT as baseMembershipSchema, aV as bookingSchema, aX as commentSchema, aZ as companySchema, b3 as courseSchema, b1 as courseEnrollmentSchema, b2 as courseFeeSchema, aJ as airplaneIssueSeverityEnum, b9 as documentSchema, b5 as documentComplianceStatus, b6 as documentRequirement, b7 as documentRequirementGroup, b8 as documentRequirementGroupAssignment, ba as documentShareSchema, bb as documentType, bd as eventSchema, bf as expenseSchema, be as expenseItemSchema, bg as extendedAirplaneSchema, c0 as feeSchema, b$ as feeCategoryOptionsSchema, c1 as flightLogSchema, c9 as invoiceSchema, cb as landingSchema, ca as landingFeeSchema, cd as maintenanceEventSchema, cc as maintenanceEventEstimationSchema, ce as maintenanceStatusSchema, cf as mediaCollection, ci as membershipSchema, cj as membershipSignupSchema, cl as postSchema, cm as postSubjectSchema, co as prePaidPackageSchema, cp as priceSchema, cq as qualificationSchema, cr as recurringFlightSchema, cs as roleSchema, ct as runwaySchema, cu as scheduledFlightSchema, cv as settingSchema, cw as specialFlightSchema, cD as tagSchema, cE as ticketSchema, cO as userSchema, cM as userAircraftRatingSchema, cN as userQualificationSchema, cP as waypointSchema, aI as airplaneIssueSchema, aK as airplaneIssueStatusEnum, B as BaseModel$1, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, cg as mediaSchema, n as FormSubmission, bh as fboAcceptanceAxisSchema, bi as fboAcceptanceStatusSchema, bl as fboActivitySchema, bj as fboActivityCauserSchema, bk as fboActivityChangesSchema, bq as fboCompanySchema, bn as fboCompanyGrantSchema, bm as fboCompanyGrantInputSchema, bo as fboCompanyMemberSchema, bp as fboCompanyProfileSchema, bt as fboDecisionSchema, br as fboDecisionAxisSchema, bs as fboDecisionInputSchema, bv as fboDutySchema, bu as fboDutyAffectedSchema, bw as fboDutySeriesResponseSchema, bz as fboFlightSchema, by as fboFlightDocumentSchema, bA as fboFlightStatusSchema, bB as fboFlightTypeSchema, bD as fboGrantAbilitySchema, bC as fboGrantAbilityOptionSchema, bE as fboGrantCompanyRefSchema, bF as fboGroundServicesSchema, bG as fboLandingsSummarySchema, bH as fboMaterialiseResultSchema, bI as fboMetaSchema, bJ as fboNextDutySchema, bK as fboOccupationSchema, bL as fboOperationsSchema, bM as fboPersonSchema, bN as fboPobSchema, bO as fboRecurrenceSchema, bP as fboRecurrenceTypeSchema, bQ as fboRecurringFlightSchema, bR as fboRoleSchema, bT as fboStatisticsSchema, bU as fboSystemRoleSchema, bV as fboTrafficLayerInputSchema, bW as fboTrafficRowSchema, bY as fboTrafficSourceSchema, bZ as fboVisibilitySchema, b_ as fboWeeklyLandingSchema } from '../fbo-B-SGYEy-.js';
|
|
3
3
|
|
|
4
4
|
type BaseModel = z.infer<typeof BaseModel$1>;
|
|
5
5
|
type User = z.infer<typeof userSchema>;
|
|
@@ -602,6 +602,7 @@ type FboDecisionInput = z.infer<typeof fboDecisionInputSchema>;
|
|
|
602
602
|
type FboVisibility = z.infer<typeof fboVisibilitySchema>;
|
|
603
603
|
type FboTrafficSource = z.infer<typeof fboTrafficSourceSchema>;
|
|
604
604
|
type FboTrafficRow = z.infer<typeof fboTrafficRowSchema>;
|
|
605
|
+
type FboTrafficLayerInput = z.infer<typeof fboTrafficLayerInputSchema>;
|
|
605
606
|
type FboSystemRole = z.infer<typeof fboSystemRoleSchema>;
|
|
606
607
|
type FboCompanyMember = z.infer<typeof fboCompanyMemberSchema>;
|
|
607
608
|
type FboNextDuty = z.infer<typeof fboNextDutySchema>;
|
|
@@ -621,4 +622,4 @@ type FboCompanyGrantInput = z.infer<typeof fboCompanyGrantInputSchema>;
|
|
|
621
622
|
type FboMeta = z.infer<typeof fboMetaSchema>;
|
|
622
623
|
type FboCompany = z.infer<typeof fboCompanySchema>;
|
|
623
624
|
|
|
624
|
-
export type { Activity, Address, AiSuggestedMilestone, AiSuggestion, AiSuggestionStatus, AircraftBlock, AircraftBlockReason, AircraftPosition, AircraftRating, Airplane, AirplaneIssue, AirplaneIssueSeverity, AirplaneIssueStatus, AirplanePermission, AirplaneShareInvite, Airport, Alert, AllowedDocumentType, ApiResponse, ApproachType, Avail, BackgroundTask, BackgroundTaskStatus, BaseMembership, BaseModel, Booking, Comment, Company, ComplianceData, ComplianceGroup, ComplianceGroupSource, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Course, CourseCheckSyllabus, CourseDescriptionSuggestionPayload, CourseEnrollment, CourseEnrollmentMetrics, CourseFee, CreateAirplaneIssueInput, CreateCommentInput, CreatePostInput, DataWrappedResponse, DeferAirplaneIssueInput, DiscardedRow, Document, DocumentComplianceStatus, DocumentRequirement, DocumentRequirementGroup, DocumentRequirementGroupAssignment, DocumentShare, DocumentType, Event, Expense, ExpenseItem, ExtendedAirplane, 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, FboTrafficRow, FboTrafficSource, FboVisibility, FboWeeklyLanding, Fee, FeeCategoryOptions, FlightLog, GroupedPermissions, Invoice, Landing, LandingFee, LandingFeeImportResult, LandingFeeInvoiceApplyPayload, LandingFeeInvoiceApplyResult, LandingFeeInvoicePreview, LandingFeeInvoicePreviewRow, LandingFeeTemplateParams, LogbookFlightLogPayload, LogbookStageResult, LogbookSuggestion, LogbookSuggestionMeta, MaintenanceEvent, MaintenanceEventEstimation, MaintenanceStatus, Media, MediaCollection, Membership, MembershipSignup, OperatingHourDay, OperatingHourException, OperatingHourExceptionInput, OperatingHourInterval, OperatingHourKind, OperatingHourResolvedDate, OperatingHourSchedule, OperatingHourScheduleInput, OperatingHourStatusEntry, OperatingHourWindow, OperatingHoursMeta, OperatingHoursNextOpenEntry, OperatingHoursNextOpenResponse, OperatingHoursStatusResponse, OperatingStatusValue, PaginatedResponse, PermissionItem, Post, PostSubject, PrePaidPackage, Price, Qualification, RecurringFlight, ResolveAirplaneIssueInput, Resource, Role, RoleDetail, RoleListItem, Runway, ScheduledFlight, Setting, SpecialFlight, Tag, TagSyncEntry, Ticket, TimeAnchor, ToggleFavoriteResponse, UpdateAirplaneIssueInput, UpdateCommentInput, UpdatePostInput, User, UserAircraftRating, UserQualification, Waypoint };
|
|
625
|
+
export type { Activity, Address, AiSuggestedMilestone, AiSuggestion, AiSuggestionStatus, AircraftBlock, AircraftBlockReason, AircraftPosition, AircraftRating, Airplane, AirplaneIssue, AirplaneIssueSeverity, AirplaneIssueStatus, AirplanePermission, AirplaneShareInvite, Airport, Alert, AllowedDocumentType, ApiResponse, ApproachType, Avail, BackgroundTask, BackgroundTaskStatus, BaseMembership, BaseModel, Booking, Comment, Company, ComplianceData, ComplianceGroup, ComplianceGroupSource, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Course, CourseCheckSyllabus, CourseDescriptionSuggestionPayload, CourseEnrollment, CourseEnrollmentMetrics, CourseFee, CreateAirplaneIssueInput, CreateCommentInput, CreatePostInput, DataWrappedResponse, DeferAirplaneIssueInput, DiscardedRow, Document, DocumentComplianceStatus, DocumentRequirement, DocumentRequirementGroup, DocumentRequirementGroupAssignment, DocumentShare, DocumentType, Event, Expense, ExpenseItem, ExtendedAirplane, 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, Fee, FeeCategoryOptions, FlightLog, GroupedPermissions, Invoice, Landing, LandingFee, LandingFeeImportResult, LandingFeeInvoiceApplyPayload, LandingFeeInvoiceApplyResult, LandingFeeInvoicePreview, LandingFeeInvoicePreviewRow, LandingFeeTemplateParams, LogbookFlightLogPayload, LogbookStageResult, LogbookSuggestion, LogbookSuggestionMeta, MaintenanceEvent, MaintenanceEventEstimation, MaintenanceStatus, Media, MediaCollection, Membership, MembershipSignup, OperatingHourDay, OperatingHourException, OperatingHourExceptionInput, OperatingHourInterval, OperatingHourKind, OperatingHourResolvedDate, OperatingHourSchedule, OperatingHourScheduleInput, OperatingHourStatusEntry, OperatingHourWindow, OperatingHoursMeta, OperatingHoursNextOpenEntry, OperatingHoursNextOpenResponse, OperatingHoursStatusResponse, OperatingStatusValue, PaginatedResponse, PermissionItem, Post, PostSubject, PrePaidPackage, Price, Qualification, RecurringFlight, ResolveAirplaneIssueInput, Resource, Role, RoleDetail, RoleListItem, Runway, ScheduledFlight, Setting, SpecialFlight, Tag, TagSyncEntry, Ticket, TimeAnchor, ToggleFavoriteResponse, UpdateAirplaneIssueInput, UpdateCommentInput, UpdatePostInput, User, UserAircraftRating, UserQualification, Waypoint };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@updraft-solutions/mcrit-sdk",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.16",
|
|
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/index.ts
CHANGED
package/src/schemas/fbo.spec.ts
CHANGED
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
fboRecurringFlightSchema,
|
|
22
22
|
fboStatisticsSchema,
|
|
23
23
|
fboSystemRoleSchema,
|
|
24
|
+
fboTrafficLayerInputSchema,
|
|
24
25
|
fboTrafficRowSchema,
|
|
25
26
|
} from "./fbo";
|
|
26
27
|
|
|
@@ -176,6 +177,42 @@ describe("fboTrafficRowSchema", () => {
|
|
|
176
177
|
expect(fboTrafficRowSchema.safeParse({ id: 1, visibility: "secret", source: "movement", flight_status: "active" }).success).toBe(false);
|
|
177
178
|
});
|
|
178
179
|
|
|
180
|
+
it("parses a decidable booking row — the FBO's own layer plus the gates ride along", () => {
|
|
181
|
+
// The Own tier of `GET|PATCH traffic/{id}?source=booking` as a root
|
|
182
|
+
// decider reads it: the flight is the school's, the four layer keys and
|
|
183
|
+
// `can` are the FBO's.
|
|
184
|
+
const bookingRow = {
|
|
185
|
+
id: 4711,
|
|
186
|
+
type: "booking",
|
|
187
|
+
source: "booking",
|
|
188
|
+
visibility: "own",
|
|
189
|
+
flight_status: "active",
|
|
190
|
+
company_id: 22,
|
|
191
|
+
company: { id: 22, name: "Flugschule Nord" },
|
|
192
|
+
ac_call: "D-EABC",
|
|
193
|
+
etdZ: "2026-09-01T08:00:00.000000Z",
|
|
194
|
+
etaZ: "2026-09-01T09:00:00.000000Z",
|
|
195
|
+
contact: null,
|
|
196
|
+
operations: { dz_start: null, dz_end: null, apron: "North" },
|
|
197
|
+
ground_services: { stairs: false, hangar: true, car_access: false, lifter: false, rental_car: false, refueling: true, gpu: false },
|
|
198
|
+
acceptance_status: {
|
|
199
|
+
fbo: { status: "accepted", is_required: false, decided_by_id: 7, updated_at: "2026-08-30T10:00:00.000000Z" },
|
|
200
|
+
airport: { status: "unknown", is_required: false, decided_by_id: null, updated_at: null },
|
|
201
|
+
customs: { status: "pending", is_required: true, decided_by_id: null, updated_at: null },
|
|
202
|
+
},
|
|
203
|
+
fbo_notes: "park on stand 3",
|
|
204
|
+
assigned_user_ids: [42, 43],
|
|
205
|
+
can: { update: true, delete: false, decide: true },
|
|
206
|
+
};
|
|
207
|
+
const parsed = fboTrafficRowSchema.parse(bookingRow);
|
|
208
|
+
expect(parsed.operations).toEqual({ dz_start: null, dz_end: null, apron: "North" });
|
|
209
|
+
expect(parsed.ground_services?.hangar).toBe(true);
|
|
210
|
+
expect(parsed.fbo_notes).toBe("park on stand 3");
|
|
211
|
+
expect(parsed.assigned_user_ids).toEqual([42, 43]);
|
|
212
|
+
expect(parsed.can).toEqual({ update: true, delete: false, decide: true });
|
|
213
|
+
expect(parsed.acceptance_status?.fbo.status).toBe("accepted");
|
|
214
|
+
});
|
|
215
|
+
|
|
179
216
|
it("parses an assigned-company booking row — type widens to 'booking', company_id nulled", () => {
|
|
180
217
|
const bookingRow = {
|
|
181
218
|
id: 900,
|
|
@@ -194,6 +231,35 @@ describe("fboTrafficRowSchema", () => {
|
|
|
194
231
|
});
|
|
195
232
|
});
|
|
196
233
|
|
|
234
|
+
describe("fboTrafficLayerInputSchema", () => {
|
|
235
|
+
const layer = {
|
|
236
|
+
fbo_notes: "park on stand 3",
|
|
237
|
+
assigned_user_ids: [42, 43],
|
|
238
|
+
operations: { dz_start: null, dz_end: null, apron: "North" },
|
|
239
|
+
ground_services: { stairs: false, hangar: true, car_access: false, lifter: false, rental_car: false, refueling: true, gpu: false },
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
it("parses the four writable keys of the FBO's layer on a booking", () => {
|
|
243
|
+
expect(fboTrafficLayerInputSchema.parse(layer)).toEqual(layer);
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
it("accepts a cleared note and a cleared roster — null is how the layer is emptied", () => {
|
|
247
|
+
expect(fboTrafficLayerInputSchema.parse({ ...layer, fbo_notes: null, assigned_user_ids: null }).fbo_notes).toBeNull();
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
it("rejects a partial operations bag — the object is replaced wholesale, never merged", () => {
|
|
251
|
+
expect(fboTrafficLayerInputSchema.safeParse({ ...layer, operations: { apron: "North" } }).success).toBe(false);
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
it("rejects a partial ground-services bag for the same reason", () => {
|
|
255
|
+
expect(fboTrafficLayerInputSchema.safeParse({ ...layer, ground_services: { hangar: true } }).success).toBe(false);
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
it("allows a partial patch through .partial() — every key is `sometimes` on the API", () => {
|
|
259
|
+
expect(fboTrafficLayerInputSchema.partial().safeParse({ fbo_notes: "just the note" }).success).toBe(true);
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
|
|
197
263
|
describe("fboCompanyMemberSchema", () => {
|
|
198
264
|
it("parses a member row with its assigned roles", () => {
|
|
199
265
|
const member = {
|
package/src/schemas/fbo.ts
CHANGED
|
@@ -313,6 +313,27 @@ export const fboTrafficRowSchema = fboFlightSchema.partial().extend({
|
|
|
313
313
|
flight_status: fboFlightStatusSchema,
|
|
314
314
|
});
|
|
315
315
|
|
|
316
|
+
/**
|
|
317
|
+
* The FBO's own LAYER on a flight-school booking that sits on its board —
|
|
318
|
+
* the write shape of `PATCH companies/{fbo}/fbo/traffic/{id}?source=booking`.
|
|
319
|
+
*
|
|
320
|
+
* Everything about the flight itself (aircraft, route, times, remarks,
|
|
321
|
+
* status, acceptance) stays the school's: the API answers a 422 NAMING the
|
|
322
|
+
* key for anything outside these four, so a payload is built from this shape
|
|
323
|
+
* rather than from the row it was read out of.
|
|
324
|
+
*
|
|
325
|
+
* `operations` and `ground_services` are schemaless bags replaced WHOLESALE
|
|
326
|
+
* — send the full object you want to end up with. The API takes every key as
|
|
327
|
+
* `sometimes`, so a partial patch (`fboTrafficLayerInputSchema.partial()`) is
|
|
328
|
+
* equally valid; clients that edit the layer as one form send all four.
|
|
329
|
+
*/
|
|
330
|
+
export const fboTrafficLayerInputSchema = z.object({
|
|
331
|
+
fbo_notes: z.string().nullable(),
|
|
332
|
+
assigned_user_ids: z.array(z.number()).nullable(),
|
|
333
|
+
operations: fboOperationsSchema,
|
|
334
|
+
ground_services: fboGroundServicesSchema,
|
|
335
|
+
});
|
|
336
|
+
|
|
316
337
|
/** System roles served by `GET companies/{id}/fbo/meta` for role-assignment UI. */
|
|
317
338
|
export const FBO_SYSTEM_ROLES = [
|
|
318
339
|
"fboOperator",
|
package/src/types/fbo.ts
CHANGED
|
@@ -25,6 +25,7 @@ export type FboDecisionInput = z.infer<typeof Fbo.fboDecisionInputSchema>;
|
|
|
25
25
|
export type FboVisibility = z.infer<typeof Fbo.fboVisibilitySchema>;
|
|
26
26
|
export type FboTrafficSource = z.infer<typeof Fbo.fboTrafficSourceSchema>;
|
|
27
27
|
export type FboTrafficRow = z.infer<typeof Fbo.fboTrafficRowSchema>;
|
|
28
|
+
export type FboTrafficLayerInput = z.infer<typeof Fbo.fboTrafficLayerInputSchema>;
|
|
28
29
|
export type FboSystemRole = z.infer<typeof Fbo.fboSystemRoleSchema>;
|
|
29
30
|
export type FboCompanyMember = z.infer<typeof Fbo.fboCompanyMemberSchema>;
|
|
30
31
|
export type FboNextDuty = z.infer<typeof Fbo.fboNextDutySchema>;
|