@updraft-solutions/mcrit-sdk 0.14.14 → 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.
@@ -1,4 +1,4 @@
1
- export { A as AttachSyllabusElementForm, a as AttachSyllabusElementFormSchema, B as BaseModel, C as CourseCheckSyllabus, b as CreateFormSubmissionInput, c as CreateFormTemplateAssignmentInput, d as CreateFormTemplateInput, e as CreateSyllabusFromTemplateForm, f as CreateSyllabusFromTemplateFormSchema, g as CreateSyllabusFromTemplateResult, E as EnrollmentTrainingElement, h as EnrollmentTrainingStatus, i as EnrollmentTrainingStatusEnum, F as FBO_OPERATING_DAYS, j as FBO_SYSTEM_ROLES, k as FieldLabel, l as FieldLabelSchema, m as FormFieldType, n as FormSubmission, o as FormSubmissionSchema, p as FormSubmissionShare, q as FormSubmissionShareBase, r as FormSubmissionShareBaseSchema, s as FormSubmissionShareSchema, t as FormSubmissionSource, u as FormSubmissionStatus, v as FormTemplate, w as FormTemplateAssignment, x as FormTemplateAssignmentSchema, y as FormTemplateSchema, z as FuelUnit, G as GradeHistoryItem, D as GradingScale, H as GradingScaleForm, I as GradingScaleFormSchema, J as GradingScalePoint, K as ImpersonationParticipant, L as ImpersonationState, M as InvalidateTrainingRecordResponse, R as ReorderSyllabusElementItem, N as ReorderSyllabusElementItemSchema, O as RequiredForm, P as RequiredFormSchema, Q as RequiredFormVia, S as RequiredFormViaCrew, T as RequiredFormViaCrewSchema, U as RequiredFormViaSchema, V as ReviewFormSubmissionInput, W as SchemaField, X as SchemaFieldSchema, Y as SchemaSection, Z as SchemaSectionSchema, _ as ShowWhen, $ as ShowWhenSchema, a0 as SignOffTrainingElementForm, a1 as SignOffTrainingElementFormSchema, a2 as Signature, a3 as SignatureSchema, a4 as StoreSyllabusForm, a5 as StoreSyllabusFormSchema, a6 as SubmissionFile, a7 as SubmissionFileSchema, a8 as Syllabus, a9 as SyllabusElement, aa as SyllabusElementMutationResult, ab as SyllabusKind, ac as SyllabusKindEnum, ad as SyllabusRolloutResult, ae as SyllabusRolloutResultItem, af as SyllabusRolloutSkippedItem, ag as TemplateSchema, ah as TemplateSchemaSchema, ai as TrainingElement, aj as TrainingElementForm, ak as TrainingElementFormSchema, al as TrainingElementKind, am as TrainingElementKindEnum, an as TrainingRecord, ao as TrainingRecordEntry, ap as TrainingRecordEntryInput, aq as TrainingRecordResult, ar as TrainingRecordResultEnum, as as TrainingRecordStatus, at as TrainingRecordStatusEnum, au as TrainingSignature, av as TrainingTemplatePack, aw as UpdateFormTemplateInput, ax as UpdateSyllabusElementForm, ay as UpdateSyllabusElementFormSchema, az as UpdateSyllabusForm, aA as UpdateSyllabusFormSchema, aB as UpsertTrainingRecordForm, aC as UpsertTrainingRecordFormSchema, aD as UsedByCourse, aE as activitySchema, aF as addressSchema, aG as aircraftPositionSchema, aH as aircraftRatingSchema, aI as airplaneIssueSchema, aJ as airplaneIssueSeverityEnum, aK as airplaneIssueStatusEnum, aL as airplanePermissionSchema, aM as airplaneSchema, aN as airplaneShareInviteSchema, aO as airportSchema, aP as alertSchema, aQ as allowedDocumentTypeSchema, aR as approachTypeSchema, aS as availSchema, aT as baseMembershipSchema, aU as billingProfileSchema, aV as bookingSchema, aW as bookingWaypointSchema, aX as commentSchema, aY as companyIdentitySchema, aZ as companySchema, a_ as contactAttributeSchema, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, b1 as courseEnrollmentSchema, b2 as courseFeeSchema, b3 as courseSchema, b4 as createSyllabusFromTemplateResultSchema, b5 as documentComplianceStatus, b6 as documentRequirement, b7 as documentRequirementGroup, b8 as documentRequirementGroupAssignment, b9 as documentSchema, ba as documentShareSchema, bb as documentType, bc as enrollmentTrainingElementSchema, bd as eventSchema, be as expenseItemSchema, bf as expenseSchema, bg as extendedAirplaneSchema, bh as fboAcceptanceAxisSchema, bi as fboAcceptanceStatusSchema, bj as fboActivityCauserSchema, bk as fboActivityChangesSchema, bl as fboActivitySchema, bm as fboCompanyGrantInputSchema, bn as fboCompanyGrantSchema, bo as fboCompanyMemberSchema, bp as fboCompanyProfileSchema, bq as fboCompanySchema, br as fboDecisionAxisSchema, bs as fboDecisionInputSchema, bt as fboDecisionSchema, bu as fboDutyAffectedSchema, bv as fboDutySchema, bw as fboDutySeriesResponseSchema, bx as fboFlightCanSchema, by as fboFlightDocumentSchema, bz as fboFlightSchema, bA as fboFlightStatusSchema, bB as fboFlightTypeSchema, bC as fboGrantAbilityOptionSchema, bD as fboGrantAbilitySchema, 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, bS as fboRowCanSchema, bT as fboStatisticsSchema, bU as fboSystemRoleSchema, bV as fboTrafficRowSchema, bW as fboTrafficRowTypeSchema, bX as fboTrafficSourceSchema, bY as fboVisibilitySchema, bZ as fboWeeklyLandingSchema, b_ as feeCategoryOptionsSchema, b$ as feeSchema, c0 as flightLogSchema, c1 as fuelUnitSchema, c2 as gradeHistoryItemSchema, c3 as gradingScalePointSchema, c4 as gradingScaleSchema, c5 as impersonationParticipantSchema, c6 as impersonationStateSchema, c7 as invalidateTrainingRecordResponseSchema, c8 as invoiceSchema, c9 as landingFeeSchema, ca as landingSchema, cb as maintenanceEventEstimationSchema, cc as maintenanceEventSchema, cd as maintenanceStatusSchema, ce as mediaCollection, cf as mediaSchema, cg as membershipIdentitySchema, ch as membershipSchema, ci as membershipSignupSchema, cj as nestedMembershipSchema, ck as postSchema, cl as postSubjectSchema, cm as prePaidPackageAssignmentSchema, cn as prePaidPackageSchema, co as priceSchema, cp as qualificationSchema, cq as recurringFlightSchema, cr as roleSchema, cs as runwaySchema, ct as scheduledFlightSchema, cu as settingSchema, cv as specialFlightSchema, cw as syllabusElementMutationResultSchema, cx as syllabusElementSchema, cy as syllabusRolloutResultItemSchema, cz as syllabusRolloutResultSchema, cA as syllabusRolloutSkippedItemSchema, cB as syllabusSchema, cC as tagSchema, cD as ticketSchema, cE as trainingElementSchema, cF as trainingRecordEntryInputSchema, cG as trainingRecordEntrySchema, cH as trainingRecordSchema, cI as trainingSignatureSchema, cJ as trainingTemplatePackSchema, cK as usedByCourseSchema, cL as userAircraftRatingSchema, cM as userQualificationSchema, cN as userSchema, cO as waypointSchema, cP as zContactDTO, cQ as zMoneyObject, cR as zNetGross, cS as zNullableBool } from '../fbo-W-37-8KP.js';
1
+ export { A as AttachSyllabusElementForm, a as AttachSyllabusElementFormSchema, B as BaseModel, C as CourseCheckSyllabus, b as CreateFormSubmissionInput, c as CreateFormTemplateAssignmentInput, d as CreateFormTemplateInput, e as CreateSyllabusFromTemplateForm, f as CreateSyllabusFromTemplateFormSchema, g as CreateSyllabusFromTemplateResult, E as EnrollmentTrainingElement, h as EnrollmentTrainingStatus, i as EnrollmentTrainingStatusEnum, F as FBO_OPERATING_DAYS, j as FBO_SYSTEM_ROLES, k as FieldLabel, l as FieldLabelSchema, m as FormFieldType, n as FormSubmission, o as FormSubmissionSchema, p as FormSubmissionShare, q as FormSubmissionShareBase, r as FormSubmissionShareBaseSchema, s as FormSubmissionShareSchema, t as FormSubmissionSource, u as FormSubmissionStatus, v as FormTemplate, w as FormTemplateAssignment, x as FormTemplateAssignmentSchema, y as FormTemplateSchema, z as FuelUnit, G as GradeHistoryItem, D as GradingScale, H as GradingScaleForm, I as GradingScaleFormSchema, J as GradingScalePoint, K as ImpersonationParticipant, L as ImpersonationState, M as InvalidateTrainingRecordResponse, R as ReorderSyllabusElementItem, N as ReorderSyllabusElementItemSchema, O as RequiredForm, P as RequiredFormSchema, Q as RequiredFormVia, S as RequiredFormViaCrew, T as RequiredFormViaCrewSchema, U as RequiredFormViaSchema, V as ReviewFormSubmissionInput, W as SchemaField, X as SchemaFieldSchema, Y as SchemaSection, Z as SchemaSectionSchema, _ as ShowWhen, $ as ShowWhenSchema, a0 as SignOffTrainingElementForm, a1 as SignOffTrainingElementFormSchema, a2 as Signature, a3 as SignatureSchema, a4 as StoreSyllabusForm, a5 as StoreSyllabusFormSchema, a6 as SubmissionFile, a7 as SubmissionFileSchema, a8 as Syllabus, a9 as SyllabusElement, aa as SyllabusElementMutationResult, ab as SyllabusKind, ac as SyllabusKindEnum, ad as SyllabusRolloutResult, ae as SyllabusRolloutResultItem, af as SyllabusRolloutSkippedItem, ag as TemplateSchema, ah as TemplateSchemaSchema, ai as TrainingElement, aj as TrainingElementForm, ak as TrainingElementFormSchema, al as TrainingElementKind, am as TrainingElementKindEnum, an as TrainingRecord, ao as TrainingRecordEntry, ap as TrainingRecordEntryInput, aq as TrainingRecordResult, ar as TrainingRecordResultEnum, as as TrainingRecordStatus, at as TrainingRecordStatusEnum, au as TrainingSignature, av as TrainingTemplatePack, aw as UpdateFormTemplateInput, ax as UpdateSyllabusElementForm, ay as UpdateSyllabusElementFormSchema, az as UpdateSyllabusForm, aA as UpdateSyllabusFormSchema, aB as UpsertTrainingRecordForm, aC as UpsertTrainingRecordFormSchema, aD as UsedByCourse, aE as activitySchema, aF as addressSchema, aG as aircraftPositionSchema, aH as aircraftRatingSchema, aI as airplaneIssueSchema, aJ as airplaneIssueSeverityEnum, aK as airplaneIssueStatusEnum, aL as airplanePermissionSchema, aM as airplaneSchema, aN as airplaneShareInviteSchema, aO as airportSchema, aP as alertSchema, aQ as allowedDocumentTypeSchema, aR as approachTypeSchema, aS as availSchema, aT as baseMembershipSchema, aU as billingProfileSchema, aV as bookingSchema, aW as bookingWaypointSchema, aX as commentSchema, aY as companyIdentitySchema, aZ as companySchema, a_ as contactAttributeSchema, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, b1 as courseEnrollmentSchema, b2 as courseFeeSchema, b3 as courseSchema, b4 as createSyllabusFromTemplateResultSchema, b5 as documentComplianceStatus, b6 as documentRequirement, b7 as documentRequirementGroup, b8 as documentRequirementGroupAssignment, b9 as documentSchema, ba as documentShareSchema, bb as documentType, bc as enrollmentTrainingElementSchema, bd as eventSchema, be as expenseItemSchema, bf as expenseSchema, bg as extendedAirplaneSchema, bh as fboAcceptanceAxisSchema, bi as fboAcceptanceStatusSchema, bj as fboActivityCauserSchema, bk as fboActivityChangesSchema, bl as fboActivitySchema, bm as fboCompanyGrantInputSchema, bn as fboCompanyGrantSchema, bo as fboCompanyMemberSchema, bp as fboCompanyProfileSchema, bq as fboCompanySchema, br as fboDecisionAxisSchema, bs as fboDecisionInputSchema, bt as fboDecisionSchema, bu as fboDutyAffectedSchema, bv as fboDutySchema, bw as fboDutySeriesResponseSchema, bx as fboFlightCanSchema, by as fboFlightDocumentSchema, bz as fboFlightSchema, bA as fboFlightStatusSchema, bB as fboFlightTypeSchema, bC as fboGrantAbilityOptionSchema, bD as fboGrantAbilitySchema, 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, bS as fboRowCanSchema, bT as fboStatisticsSchema, bU as fboSystemRoleSchema, bV as fboTrafficLayerInputSchema, bW as fboTrafficRowSchema, bX as fboTrafficRowTypeSchema, bY as fboTrafficSourceSchema, bZ as fboVisibilitySchema, b_ as fboWeeklyLandingSchema, b$ as feeCategoryOptionsSchema, c0 as feeSchema, c1 as flightLogSchema, c2 as fuelUnitSchema, c3 as gradeHistoryItemSchema, c4 as gradingScalePointSchema, c5 as gradingScaleSchema, c6 as impersonationParticipantSchema, c7 as impersonationStateSchema, c8 as invalidateTrainingRecordResponseSchema, c9 as invoiceSchema, ca as landingFeeSchema, cb as landingSchema, cc as maintenanceEventEstimationSchema, cd as maintenanceEventSchema, ce as maintenanceStatusSchema, cf as mediaCollection, cg as mediaSchema, ch as membershipIdentitySchema, ci as membershipSchema, cj as membershipSignupSchema, ck as nestedMembershipSchema, cl as postSchema, cm as postSubjectSchema, cn as prePaidPackageAssignmentSchema, 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, cx as syllabusElementMutationResultSchema, cy as syllabusElementSchema, cz as syllabusRolloutResultItemSchema, cA as syllabusRolloutResultSchema, cB as syllabusRolloutSkippedItemSchema, cC as syllabusSchema, cD as tagSchema, cE as ticketSchema, cF as trainingElementSchema, cG as trainingRecordEntryInputSchema, cH as trainingRecordEntrySchema, cI as trainingRecordSchema, cJ as trainingSignatureSchema, cK as trainingTemplatePackSchema, cL as usedByCourseSchema, cM as userAircraftRatingSchema, cN as userQualificationSchema, cO as userSchema, cP as waypointSchema, cQ as zContactDTO, cR as zMoneyObject, cS as zNetGross, cT as zNullableBool } from '../fbo-B-SGYEy-.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare enum FaqStatus {
@@ -978,9 +978,9 @@ declare const courseMilestoneSchema: z.ZodObject<{
978
978
  delete?: boolean | null | undefined;
979
979
  }>>;
980
980
  }, "strip", z.ZodTypeAny, {
981
- kind: string;
982
981
  name: string;
983
982
  id: number;
983
+ kind: string;
984
984
  sort_order: number;
985
985
  course_id: number;
986
986
  is_prerequisite: boolean;
@@ -999,9 +999,9 @@ declare const courseMilestoneSchema: z.ZodObject<{
999
999
  } | null | undefined;
1000
1000
  completion_rule?: Record<string, unknown> | null | undefined;
1001
1001
  }, {
1002
- kind: string;
1003
1002
  name: string;
1004
1003
  id: number;
1004
+ kind: string;
1005
1005
  sort_order: number;
1006
1006
  course_id: number;
1007
1007
  is_prerequisite: boolean;
@@ -1030,8 +1030,8 @@ declare const CourseMilestoneFormSchema: z.ZodObject<{
1030
1030
  completion_rule: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1031
1031
  sort_order: z.ZodOptional<z.ZodNumber>;
1032
1032
  }, "strip", z.ZodTypeAny, {
1033
- kind: string;
1034
1033
  name: string;
1034
+ kind: string;
1035
1035
  is_prerequisite: boolean;
1036
1036
  description?: string | null | undefined;
1037
1037
  sort_order?: number | undefined;
@@ -1039,8 +1039,8 @@ declare const CourseMilestoneFormSchema: z.ZodObject<{
1039
1039
  completion_rule?: Record<string, unknown> | null | undefined;
1040
1040
  }, {
1041
1041
  name: string;
1042
- kind?: string | undefined;
1043
1042
  description?: string | null | undefined;
1043
+ kind?: string | undefined;
1044
1044
  sort_order?: number | undefined;
1045
1045
  is_prerequisite?: boolean | undefined;
1046
1046
  requires_form_template_id?: number | null | undefined;
@@ -1086,9 +1086,9 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1086
1086
  delete?: boolean | null | undefined;
1087
1087
  }>>;
1088
1088
  }, "strip", z.ZodTypeAny, {
1089
- kind: string;
1090
1089
  name: string;
1091
1090
  id: number;
1091
+ kind: string;
1092
1092
  sort_order: number;
1093
1093
  course_id: number;
1094
1094
  is_prerequisite: boolean;
@@ -1107,9 +1107,9 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1107
1107
  } | null | undefined;
1108
1108
  completion_rule?: Record<string, unknown> | null | undefined;
1109
1109
  }, {
1110
- kind: string;
1111
1110
  name: string;
1112
1111
  id: number;
1112
+ kind: string;
1113
1113
  sort_order: number;
1114
1114
  course_id: number;
1115
1115
  is_prerequisite: boolean;
@@ -1176,9 +1176,9 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1176
1176
  } | undefined;
1177
1177
  notes?: string | null | undefined;
1178
1178
  milestone?: {
1179
- kind: string;
1180
1179
  name: string;
1181
1180
  id: number;
1181
+ kind: string;
1182
1182
  sort_order: number;
1183
1183
  course_id: number;
1184
1184
  is_prerequisite: boolean;
@@ -1218,9 +1218,9 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1218
1218
  } | undefined;
1219
1219
  notes?: string | null | undefined;
1220
1220
  milestone?: {
1221
- kind: string;
1222
1221
  name: string;
1223
1222
  id: number;
1223
+ kind: string;
1224
1224
  sort_order: number;
1225
1225
  course_id: number;
1226
1226
  is_prerequisite: boolean;
@@ -3814,8 +3814,8 @@ declare const CreateLocationMapSchema: z.ZodObject<{
3814
3814
  is_active: z.ZodOptional<z.ZodBoolean>;
3815
3815
  }, "strip", z.ZodTypeAny, {
3816
3816
  name: string;
3817
- kind?: string | undefined;
3818
3817
  description?: string | null | undefined;
3818
+ kind?: string | undefined;
3819
3819
  is_active?: boolean | undefined;
3820
3820
  slug?: string | undefined;
3821
3821
  default_viewport?: {
@@ -3827,8 +3827,8 @@ declare const CreateLocationMapSchema: z.ZodObject<{
3827
3827
  } | null | undefined;
3828
3828
  }, {
3829
3829
  name: string;
3830
- kind?: string | undefined;
3831
3830
  description?: string | null | undefined;
3831
+ kind?: string | undefined;
3832
3832
  is_active?: boolean | undefined;
3833
3833
  slug?: string | undefined;
3834
3834
  default_viewport?: {
@@ -3866,9 +3866,9 @@ declare const UpdateLocationMapSchema: z.ZodObject<{
3866
3866
  }>>>>;
3867
3867
  is_active: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3868
3868
  }, "strip", z.ZodTypeAny, {
3869
- kind?: string | undefined;
3870
3869
  name?: string | undefined;
3871
3870
  description?: string | null | undefined;
3871
+ kind?: string | undefined;
3872
3872
  is_active?: boolean | undefined;
3873
3873
  slug?: string | undefined;
3874
3874
  default_viewport?: {
@@ -3879,9 +3879,9 @@ declare const UpdateLocationMapSchema: z.ZodObject<{
3879
3879
  bearing?: number | undefined;
3880
3880
  } | null | undefined;
3881
3881
  }, {
3882
- kind?: string | undefined;
3883
3882
  name?: string | undefined;
3884
3883
  description?: string | null | undefined;
3884
+ kind?: string | undefined;
3885
3885
  is_active?: boolean | undefined;
3886
3886
  slug?: string | undefined;
3887
3887
  default_viewport?: {
@@ -3963,8 +3963,8 @@ declare const UpdateLocationMapFeatureSchema: z.ZodObject<{
3963
3963
  coordinates: unknown[];
3964
3964
  }>>;
3965
3965
  }, "strip", z.ZodTypeAny, {
3966
- kind?: string | undefined;
3967
3966
  name?: string | null | undefined;
3967
+ kind?: string | undefined;
3968
3968
  properties?: Record<string, unknown> | null | undefined;
3969
3969
  visibility?: LocationFeatureVisibility | undefined;
3970
3970
  geometry?: {
@@ -3973,8 +3973,8 @@ declare const UpdateLocationMapFeatureSchema: z.ZodObject<{
3973
3973
  } | undefined;
3974
3974
  display_order?: number | undefined;
3975
3975
  }, {
3976
- kind?: string | undefined;
3977
3976
  name?: string | null | undefined;
3977
+ kind?: string | undefined;
3978
3978
  properties?: Record<string, unknown> | null | undefined;
3979
3979
  visibility?: LocationFeatureVisibility | undefined;
3980
3980
  geometry?: {
@@ -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-6QUSSX7K.js";
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,
@@ -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, b$ as feeSchema, b_ as feeCategoryOptionsSchema, c0 as flightLogSchema, c8 as invoiceSchema, ca as landingSchema, c9 as landingFeeSchema, cc as maintenanceEventSchema, cb as maintenanceEventEstimationSchema, cd as maintenanceStatusSchema, ce as mediaCollection, ch as membershipSchema, ci as membershipSignupSchema, ck as postSchema, cl as postSubjectSchema, cn as prePaidPackageSchema, co as priceSchema, cp as qualificationSchema, cq as recurringFlightSchema, cr as roleSchema, cs as runwaySchema, ct as scheduledFlightSchema, cu as settingSchema, cv as specialFlightSchema, cC as tagSchema, cD as ticketSchema, cN as userSchema, cL as userAircraftRatingSchema, cM as userQualificationSchema, cO as waypointSchema, aI as airplaneIssueSchema, aK as airplaneIssueStatusEnum, B as BaseModel$1, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, cf 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 fboTrafficRowSchema, bX as fboTrafficSourceSchema, bY as fboVisibilitySchema, bZ as fboWeeklyLandingSchema } from '../fbo-W-37-8KP.cjs';
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>;
@@ -331,6 +331,13 @@ interface RoleListItem {
331
331
  has_duties: boolean;
332
332
  company_id: number | null;
333
333
  permissions_count: number;
334
+ /**
335
+ * Which domain the role belongs to. FBO roles come only from the FBO role
336
+ * listing, non-FBO (system + company custom) roles only from the company
337
+ * one — the two never overlap. Optional: a payload from an API that does
338
+ * not tag roles yet is still a valid row.
339
+ */
340
+ is_fbo?: boolean;
334
341
  }
335
342
  interface PermissionItem {
336
343
  id: number;
@@ -595,6 +602,7 @@ type FboDecisionInput = z.infer<typeof fboDecisionInputSchema>;
595
602
  type FboVisibility = z.infer<typeof fboVisibilitySchema>;
596
603
  type FboTrafficSource = z.infer<typeof fboTrafficSourceSchema>;
597
604
  type FboTrafficRow = z.infer<typeof fboTrafficRowSchema>;
605
+ type FboTrafficLayerInput = z.infer<typeof fboTrafficLayerInputSchema>;
598
606
  type FboSystemRole = z.infer<typeof fboSystemRoleSchema>;
599
607
  type FboCompanyMember = z.infer<typeof fboCompanyMemberSchema>;
600
608
  type FboNextDuty = z.infer<typeof fboNextDutySchema>;
@@ -614,4 +622,4 @@ type FboCompanyGrantInput = z.infer<typeof fboCompanyGrantInputSchema>;
614
622
  type FboMeta = z.infer<typeof fboMetaSchema>;
615
623
  type FboCompany = z.infer<typeof fboCompanySchema>;
616
624
 
617
- 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 };
@@ -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, b$ as feeSchema, b_ as feeCategoryOptionsSchema, c0 as flightLogSchema, c8 as invoiceSchema, ca as landingSchema, c9 as landingFeeSchema, cc as maintenanceEventSchema, cb as maintenanceEventEstimationSchema, cd as maintenanceStatusSchema, ce as mediaCollection, ch as membershipSchema, ci as membershipSignupSchema, ck as postSchema, cl as postSubjectSchema, cn as prePaidPackageSchema, co as priceSchema, cp as qualificationSchema, cq as recurringFlightSchema, cr as roleSchema, cs as runwaySchema, ct as scheduledFlightSchema, cu as settingSchema, cv as specialFlightSchema, cC as tagSchema, cD as ticketSchema, cN as userSchema, cL as userAircraftRatingSchema, cM as userQualificationSchema, cO as waypointSchema, aI as airplaneIssueSchema, aK as airplaneIssueStatusEnum, B as BaseModel$1, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, cf 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 fboTrafficRowSchema, bX as fboTrafficSourceSchema, bY as fboVisibilitySchema, bZ as fboWeeklyLandingSchema } from '../fbo-W-37-8KP.js';
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>;
@@ -331,6 +331,13 @@ interface RoleListItem {
331
331
  has_duties: boolean;
332
332
  company_id: number | null;
333
333
  permissions_count: number;
334
+ /**
335
+ * Which domain the role belongs to. FBO roles come only from the FBO role
336
+ * listing, non-FBO (system + company custom) roles only from the company
337
+ * one — the two never overlap. Optional: a payload from an API that does
338
+ * not tag roles yet is still a valid row.
339
+ */
340
+ is_fbo?: boolean;
334
341
  }
335
342
  interface PermissionItem {
336
343
  id: number;
@@ -595,6 +602,7 @@ type FboDecisionInput = z.infer<typeof fboDecisionInputSchema>;
595
602
  type FboVisibility = z.infer<typeof fboVisibilitySchema>;
596
603
  type FboTrafficSource = z.infer<typeof fboTrafficSourceSchema>;
597
604
  type FboTrafficRow = z.infer<typeof fboTrafficRowSchema>;
605
+ type FboTrafficLayerInput = z.infer<typeof fboTrafficLayerInputSchema>;
598
606
  type FboSystemRole = z.infer<typeof fboSystemRoleSchema>;
599
607
  type FboCompanyMember = z.infer<typeof fboCompanyMemberSchema>;
600
608
  type FboNextDuty = z.infer<typeof fboNextDutySchema>;
@@ -614,4 +622,4 @@ type FboCompanyGrantInput = z.infer<typeof fboCompanyGrantInputSchema>;
614
622
  type FboMeta = z.infer<typeof fboMetaSchema>;
615
623
  type FboCompany = z.infer<typeof fboCompanySchema>;
616
624
 
617
- 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.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
@@ -152,6 +152,7 @@ export {
152
152
  type FboVisibility,
153
153
  type FboTrafficSource,
154
154
  type FboTrafficRow,
155
+ type FboTrafficLayerInput,
155
156
  type FboSystemRole,
156
157
  type FboCompanyMember,
157
158
  type FboNextDuty,
@@ -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 = {
@@ -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",
@@ -1173,6 +1173,13 @@ export const roleSchema = z.object({
1173
1173
  name: z.string(),
1174
1174
  description: z.string().nullable().optional(),
1175
1175
  permissions: z.array(z.string()).optional(),
1176
+ /**
1177
+ * Which domain the role belongs to. FBO roles are assignable only on the
1178
+ * FBO surfaces and are kept out of the flight-school role lists (and vice
1179
+ * versa) — the two role listings never overlap. Optional: a payload from
1180
+ * an API that does not tag roles yet is still a valid role.
1181
+ */
1182
+ is_fbo: z.boolean().optional(),
1176
1183
  created_at: z.string(),
1177
1184
  updated_at: z.string(),
1178
1185
  });
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>;
@@ -8,6 +8,13 @@ export interface RoleListItem {
8
8
  has_duties: boolean;
9
9
  company_id: number | null;
10
10
  permissions_count: number;
11
+ /**
12
+ * Which domain the role belongs to. FBO roles come only from the FBO role
13
+ * listing, non-FBO (system + company custom) roles only from the company
14
+ * one — the two never overlap. Optional: a payload from an API that does
15
+ * not tag roles yet is still a valid row.
16
+ */
17
+ is_fbo?: boolean;
11
18
  }
12
19
 
13
20
  export interface PermissionItem {