@updraft-solutions/mcrit-sdk 0.14.18 → 0.15.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-GQE6KHZG.cjs → chunk-RV3PRG5G.cjs} +93 -1
- package/dist/{chunk-2TZ63XWR.js → chunk-TCTCQKLD.js} +92 -0
- package/dist/{fbo-3nV_Rerj.d.cts → fbo-C2ehSfwd.d.cts} +4687 -841
- package/dist/{fbo-3nV_Rerj.d.ts → fbo-C2ehSfwd.d.ts} +4687 -841
- package/dist/index.cjs +16 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +22 -10
- package/dist/schemas/index.cjs +14 -2
- package/dist/schemas/index.d.cts +15 -15
- package/dist/schemas/index.d.ts +15 -15
- package/dist/schemas/index.js +13 -1
- package/dist/types/index.d.cts +8 -2
- package/dist/types/index.d.ts +8 -2
- package/package.json +1 -1
- package/src/index.ts +6 -0
- package/src/schemas/models.ts +98 -0
- package/src/types/models.ts +16 -0
package/dist/schemas/index.d.ts
CHANGED
|
@@ -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 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
|
|
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 flightRequestResponseSchema, c3 as flightRequestResponseStatusSchema, c4 as flightRequestSchema, c5 as flightRequestSeatSchema, c6 as flightRequestStatusSchema, c7 as flightRequestWindowSchema, c8 as fuelUnitSchema, c9 as gradeHistoryItemSchema, ca as gradingScalePointSchema, cb as gradingScaleSchema, cc as impersonationParticipantSchema, cd as impersonationStateSchema, ce as invalidateTrainingRecordResponseSchema, cf as invoiceSchema, cg as landingFeeSchema, ch as landingSchema, ci as maintenanceEventEstimationSchema, cj as maintenanceEventSchema, ck as maintenanceStatusSchema, cl as mediaCollection, cm as mediaSchema, cn as membershipIdentitySchema, co as membershipSchema, cp as membershipSignupSchema, cq as nestedMembershipSchema, cr as postSchema, cs as postSubjectSchema, ct as prePaidPackageAssignmentSchema, cu as prePaidPackageSchema, cv as priceSchema, cw as qualificationSchema, cx as recurringFlightSchema, cy as roleSchema, cz as runwaySchema, cA as scheduledFlightSchema, cB as settingSchema, cC as specialFlightSchema, cD as syllabusElementMutationResultSchema, cE as syllabusElementSchema, cF as syllabusRolloutResultItemSchema, cG as syllabusRolloutResultSchema, cH as syllabusRolloutSkippedItemSchema, cI as syllabusSchema, cJ as tagSchema, cK as teachingPermissionSchema, cL as ticketSchema, cM as trainingElementSchema, cN as trainingRecordEntryInputSchema, cO as trainingRecordEntrySchema, cP as trainingRecordSchema, cQ as trainingSignatureSchema, cR as trainingTemplatePackSchema, cS as usedByCourseSchema, cT as userAircraftRatingSchema, cU as userQualificationSchema, cV as userSchema, cW as waypointSchema, cX as zContactDTO, cY as zMoneyObject, cZ as zNetGross, c_ as zNullableBool } from '../fbo-C2ehSfwd.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum FaqStatus {
|
|
@@ -337,7 +337,7 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
337
337
|
updated_at: z.ZodString;
|
|
338
338
|
can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
339
339
|
}, "strip", z.ZodTypeAny, {
|
|
340
|
-
status: "
|
|
340
|
+
status: "closed" | "new" | "under_review" | "action_taken";
|
|
341
341
|
id: number;
|
|
342
342
|
created_at: string;
|
|
343
343
|
updated_at: string;
|
|
@@ -366,7 +366,7 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
366
366
|
}[] | undefined;
|
|
367
367
|
attachments_count?: number | undefined;
|
|
368
368
|
}, {
|
|
369
|
-
status: "
|
|
369
|
+
status: "closed" | "new" | "under_review" | "action_taken";
|
|
370
370
|
id: number;
|
|
371
371
|
created_at: string;
|
|
372
372
|
updated_at: string;
|
|
@@ -459,7 +459,7 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
459
459
|
updated_at: z.ZodString;
|
|
460
460
|
can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
461
461
|
}, "strip", z.ZodTypeAny, {
|
|
462
|
-
status: "
|
|
462
|
+
status: "closed" | "new" | "under_review" | "action_taken";
|
|
463
463
|
id: number;
|
|
464
464
|
created_at: string;
|
|
465
465
|
updated_at: string;
|
|
@@ -488,7 +488,7 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
488
488
|
}[] | undefined;
|
|
489
489
|
attachments_count?: number | undefined;
|
|
490
490
|
}, {
|
|
491
|
-
status: "
|
|
491
|
+
status: "closed" | "new" | "under_review" | "action_taken";
|
|
492
492
|
id: number;
|
|
493
493
|
created_at: string;
|
|
494
494
|
updated_at: string;
|
|
@@ -557,7 +557,7 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
557
557
|
}>>;
|
|
558
558
|
}, "strip", z.ZodTypeAny, {
|
|
559
559
|
data: {
|
|
560
|
-
status: "
|
|
560
|
+
status: "closed" | "new" | "under_review" | "action_taken";
|
|
561
561
|
id: number;
|
|
562
562
|
created_at: string;
|
|
563
563
|
updated_at: string;
|
|
@@ -602,7 +602,7 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
602
602
|
} | undefined;
|
|
603
603
|
}, {
|
|
604
604
|
data: {
|
|
605
|
-
status: "
|
|
605
|
+
status: "closed" | "new" | "under_review" | "action_taken";
|
|
606
606
|
id: number;
|
|
607
607
|
created_at: string;
|
|
608
608
|
updated_at: string;
|
|
@@ -665,10 +665,10 @@ declare const SafetyReportUpdateSchema: z.ZodObject<{
|
|
|
665
665
|
status: z.ZodOptional<z.ZodEnum<["new", "under_review", "action_taken", "closed"]>>;
|
|
666
666
|
category_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
667
667
|
}, "strip", z.ZodTypeAny, {
|
|
668
|
-
status?: "
|
|
668
|
+
status?: "closed" | "new" | "under_review" | "action_taken" | undefined;
|
|
669
669
|
category_id?: number | null | undefined;
|
|
670
670
|
}, {
|
|
671
|
-
status?: "
|
|
671
|
+
status?: "closed" | "new" | "under_review" | "action_taken" | undefined;
|
|
672
672
|
category_id?: number | null | undefined;
|
|
673
673
|
}>;
|
|
674
674
|
type SafetyReportUpdate = z.infer<typeof SafetyReportUpdateSchema>;
|
|
@@ -685,7 +685,7 @@ declare const SafetyReportFilterSchema: z.ZodObject<{
|
|
|
685
685
|
page: z.ZodOptional<z.ZodNumber>;
|
|
686
686
|
}, "strip", z.ZodTypeAny, {
|
|
687
687
|
sort?: "status" | "created_at" | "incident_date" | undefined;
|
|
688
|
-
status?: "
|
|
688
|
+
status?: "closed" | "new" | "under_review" | "action_taken" | undefined;
|
|
689
689
|
per_page?: number | undefined;
|
|
690
690
|
category_id?: number | undefined;
|
|
691
691
|
date_from?: string | undefined;
|
|
@@ -696,7 +696,7 @@ declare const SafetyReportFilterSchema: z.ZodObject<{
|
|
|
696
696
|
page?: number | undefined;
|
|
697
697
|
}, {
|
|
698
698
|
sort?: "status" | "created_at" | "incident_date" | undefined;
|
|
699
|
-
status?: "
|
|
699
|
+
status?: "closed" | "new" | "under_review" | "action_taken" | undefined;
|
|
700
700
|
per_page?: number | undefined;
|
|
701
701
|
category_id?: number | undefined;
|
|
702
702
|
date_from?: string | undefined;
|
|
@@ -2949,16 +2949,16 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2949
2949
|
}, "strip", z.ZodTypeAny, {
|
|
2950
2950
|
update?: boolean | undefined;
|
|
2951
2951
|
delete?: boolean | undefined;
|
|
2952
|
+
cancel?: boolean | undefined;
|
|
2952
2953
|
schedule?: boolean | undefined;
|
|
2953
2954
|
send?: boolean | undefined;
|
|
2954
|
-
cancel?: boolean | undefined;
|
|
2955
2955
|
test_send?: boolean | undefined;
|
|
2956
2956
|
}, {
|
|
2957
2957
|
update?: boolean | undefined;
|
|
2958
2958
|
delete?: boolean | undefined;
|
|
2959
|
+
cancel?: boolean | undefined;
|
|
2959
2960
|
schedule?: boolean | undefined;
|
|
2960
2961
|
send?: boolean | undefined;
|
|
2961
|
-
cancel?: boolean | undefined;
|
|
2962
2962
|
test_send?: boolean | undefined;
|
|
2963
2963
|
}>>;
|
|
2964
2964
|
created_at: z.ZodOptional<z.ZodString>;
|
|
@@ -3028,9 +3028,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3028
3028
|
can?: {
|
|
3029
3029
|
update?: boolean | undefined;
|
|
3030
3030
|
delete?: boolean | undefined;
|
|
3031
|
+
cancel?: boolean | undefined;
|
|
3031
3032
|
schedule?: boolean | undefined;
|
|
3032
3033
|
send?: boolean | undefined;
|
|
3033
|
-
cancel?: boolean | undefined;
|
|
3034
3034
|
test_send?: boolean | undefined;
|
|
3035
3035
|
} | undefined;
|
|
3036
3036
|
category?: {
|
|
@@ -3192,9 +3192,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3192
3192
|
can?: {
|
|
3193
3193
|
update?: boolean | undefined;
|
|
3194
3194
|
delete?: boolean | undefined;
|
|
3195
|
+
cancel?: boolean | undefined;
|
|
3195
3196
|
schedule?: boolean | undefined;
|
|
3196
3197
|
send?: boolean | undefined;
|
|
3197
|
-
cancel?: boolean | undefined;
|
|
3198
3198
|
test_send?: boolean | undefined;
|
|
3199
3199
|
} | undefined;
|
|
3200
3200
|
category?: {
|
package/dist/schemas/index.js
CHANGED
|
@@ -184,6 +184,12 @@ import {
|
|
|
184
184
|
feeCategoryOptionsSchema,
|
|
185
185
|
feeSchema,
|
|
186
186
|
flightLogSchema,
|
|
187
|
+
flightRequestResponseSchema,
|
|
188
|
+
flightRequestResponseStatusSchema,
|
|
189
|
+
flightRequestSchema,
|
|
190
|
+
flightRequestSeatSchema,
|
|
191
|
+
flightRequestStatusSchema,
|
|
192
|
+
flightRequestWindowSchema,
|
|
187
193
|
fuelUnitSchema,
|
|
188
194
|
gradeHistoryItemSchema,
|
|
189
195
|
gradingScalePointSchema,
|
|
@@ -239,7 +245,7 @@ import {
|
|
|
239
245
|
zMoneyObject,
|
|
240
246
|
zNetGross,
|
|
241
247
|
zNullableBool
|
|
242
|
-
} from "../chunk-
|
|
248
|
+
} from "../chunk-TCTCQKLD.js";
|
|
243
249
|
export {
|
|
244
250
|
ALLOWED_GEOMETRY_TYPES,
|
|
245
251
|
ALLOWED_NEWSLETTER_VARIABLES,
|
|
@@ -426,6 +432,12 @@ export {
|
|
|
426
432
|
feeCategoryOptionsSchema,
|
|
427
433
|
feeSchema,
|
|
428
434
|
flightLogSchema,
|
|
435
|
+
flightRequestResponseSchema,
|
|
436
|
+
flightRequestResponseStatusSchema,
|
|
437
|
+
flightRequestSchema,
|
|
438
|
+
flightRequestSeatSchema,
|
|
439
|
+
flightRequestStatusSchema,
|
|
440
|
+
flightRequestWindowSchema,
|
|
429
441
|
fuelUnitSchema,
|
|
430
442
|
gradeHistoryItemSchema,
|
|
431
443
|
gradingScalePointSchema,
|
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, c0 as feeSchema, b$ as feeCategoryOptionsSchema, c1 as flightLogSchema,
|
|
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, c4 as flightRequestSchema, c2 as flightRequestResponseSchema, c3 as flightRequestResponseStatusSchema, c5 as flightRequestSeatSchema, c6 as flightRequestStatusSchema, c7 as flightRequestWindowSchema, cf as invoiceSchema, ch as landingSchema, cg as landingFeeSchema, cj as maintenanceEventSchema, ci as maintenanceEventEstimationSchema, ck as maintenanceStatusSchema, cl as mediaCollection, co as membershipSchema, cp as membershipSignupSchema, cr as postSchema, cs as postSubjectSchema, cu as prePaidPackageSchema, cv as priceSchema, cw as qualificationSchema, cx as recurringFlightSchema, cy as roleSchema, cz as runwaySchema, cA as scheduledFlightSchema, cB as settingSchema, cC as specialFlightSchema, cJ as tagSchema, cK as teachingPermissionSchema, cL as ticketSchema, cV as userSchema, cT as userAircraftRatingSchema, cU as userQualificationSchema, cW as waypointSchema, aI as airplaneIssueSchema, aK as airplaneIssueStatusEnum, B as BaseModel$1, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, cm 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-C2ehSfwd.cjs';
|
|
3
3
|
|
|
4
4
|
type BaseModel = z.infer<typeof BaseModel$1>;
|
|
5
5
|
type User = z.infer<typeof userSchema>;
|
|
@@ -12,6 +12,12 @@ type Airplane = z.infer<typeof airplaneSchema>;
|
|
|
12
12
|
type ExtendedAirplane = z.infer<typeof extendedAirplaneSchema>;
|
|
13
13
|
type AirplanePermission = z.infer<typeof airplanePermissionSchema>;
|
|
14
14
|
type TeachingPermission = z.infer<typeof teachingPermissionSchema>;
|
|
15
|
+
type FlightRequest = z.infer<typeof flightRequestSchema>;
|
|
16
|
+
type FlightRequestResponse = z.infer<typeof flightRequestResponseSchema>;
|
|
17
|
+
type FlightRequestWindow = z.infer<typeof flightRequestWindowSchema>;
|
|
18
|
+
type FlightRequestSeat = z.infer<typeof flightRequestSeatSchema>;
|
|
19
|
+
type FlightRequestStatus = z.infer<typeof flightRequestStatusSchema>;
|
|
20
|
+
type FlightRequestResponseStatus = z.infer<typeof flightRequestResponseStatusSchema>;
|
|
15
21
|
type AirplaneShareInvite = z.infer<typeof airplaneShareInviteSchema>;
|
|
16
22
|
type LandingFee = z.infer<typeof landingFeeSchema>;
|
|
17
23
|
type AircraftRating = z.infer<typeof aircraftRatingSchema>;
|
|
@@ -624,4 +630,4 @@ type FboCompanyGrantInput = z.infer<typeof fboCompanyGrantInputSchema>;
|
|
|
624
630
|
type FboMeta = z.infer<typeof fboMetaSchema>;
|
|
625
631
|
type FboCompany = z.infer<typeof fboCompanySchema>;
|
|
626
632
|
|
|
627
|
-
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, TeachingPermission, Ticket, TimeAnchor, ToggleFavoriteResponse, UpdateAirplaneIssueInput, UpdateCommentInput, UpdatePostInput, User, UserAircraftRating, UserQualification, Waypoint };
|
|
633
|
+
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, FlightRequest, FlightRequestResponse, FlightRequestResponseStatus, FlightRequestSeat, FlightRequestStatus, FlightRequestWindow, 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, TeachingPermission, 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, c0 as feeSchema, b$ as feeCategoryOptionsSchema, c1 as flightLogSchema,
|
|
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, c4 as flightRequestSchema, c2 as flightRequestResponseSchema, c3 as flightRequestResponseStatusSchema, c5 as flightRequestSeatSchema, c6 as flightRequestStatusSchema, c7 as flightRequestWindowSchema, cf as invoiceSchema, ch as landingSchema, cg as landingFeeSchema, cj as maintenanceEventSchema, ci as maintenanceEventEstimationSchema, ck as maintenanceStatusSchema, cl as mediaCollection, co as membershipSchema, cp as membershipSignupSchema, cr as postSchema, cs as postSubjectSchema, cu as prePaidPackageSchema, cv as priceSchema, cw as qualificationSchema, cx as recurringFlightSchema, cy as roleSchema, cz as runwaySchema, cA as scheduledFlightSchema, cB as settingSchema, cC as specialFlightSchema, cJ as tagSchema, cK as teachingPermissionSchema, cL as ticketSchema, cV as userSchema, cT as userAircraftRatingSchema, cU as userQualificationSchema, cW as waypointSchema, aI as airplaneIssueSchema, aK as airplaneIssueStatusEnum, B as BaseModel$1, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, cm 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-C2ehSfwd.js';
|
|
3
3
|
|
|
4
4
|
type BaseModel = z.infer<typeof BaseModel$1>;
|
|
5
5
|
type User = z.infer<typeof userSchema>;
|
|
@@ -12,6 +12,12 @@ type Airplane = z.infer<typeof airplaneSchema>;
|
|
|
12
12
|
type ExtendedAirplane = z.infer<typeof extendedAirplaneSchema>;
|
|
13
13
|
type AirplanePermission = z.infer<typeof airplanePermissionSchema>;
|
|
14
14
|
type TeachingPermission = z.infer<typeof teachingPermissionSchema>;
|
|
15
|
+
type FlightRequest = z.infer<typeof flightRequestSchema>;
|
|
16
|
+
type FlightRequestResponse = z.infer<typeof flightRequestResponseSchema>;
|
|
17
|
+
type FlightRequestWindow = z.infer<typeof flightRequestWindowSchema>;
|
|
18
|
+
type FlightRequestSeat = z.infer<typeof flightRequestSeatSchema>;
|
|
19
|
+
type FlightRequestStatus = z.infer<typeof flightRequestStatusSchema>;
|
|
20
|
+
type FlightRequestResponseStatus = z.infer<typeof flightRequestResponseStatusSchema>;
|
|
15
21
|
type AirplaneShareInvite = z.infer<typeof airplaneShareInviteSchema>;
|
|
16
22
|
type LandingFee = z.infer<typeof landingFeeSchema>;
|
|
17
23
|
type AircraftRating = z.infer<typeof aircraftRatingSchema>;
|
|
@@ -624,4 +630,4 @@ type FboCompanyGrantInput = z.infer<typeof fboCompanyGrantInputSchema>;
|
|
|
624
630
|
type FboMeta = z.infer<typeof fboMetaSchema>;
|
|
625
631
|
type FboCompany = z.infer<typeof fboCompanySchema>;
|
|
626
632
|
|
|
627
|
-
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, TeachingPermission, Ticket, TimeAnchor, ToggleFavoriteResponse, UpdateAirplaneIssueInput, UpdateCommentInput, UpdatePostInput, User, UserAircraftRating, UserQualification, Waypoint };
|
|
633
|
+
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, FlightRequest, FlightRequestResponse, FlightRequestResponseStatus, FlightRequestSeat, FlightRequestStatus, FlightRequestWindow, 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, TeachingPermission, 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.
|
|
3
|
+
"version": "0.15.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/index.ts
CHANGED
|
@@ -10,6 +10,12 @@ export {
|
|
|
10
10
|
type ExtendedAirplane,
|
|
11
11
|
type AirplanePermission,
|
|
12
12
|
type TeachingPermission,
|
|
13
|
+
type FlightRequest,
|
|
14
|
+
type FlightRequestResponse,
|
|
15
|
+
type FlightRequestWindow,
|
|
16
|
+
type FlightRequestSeat,
|
|
17
|
+
type FlightRequestStatus,
|
|
18
|
+
type FlightRequestResponseStatus,
|
|
13
19
|
type AirplaneShareInvite,
|
|
14
20
|
type LandingFee,
|
|
15
21
|
type Fee,
|
package/src/schemas/models.ts
CHANGED
|
@@ -338,6 +338,100 @@ export const teachingPermissionSchema = z.object({
|
|
|
338
338
|
.optional(),
|
|
339
339
|
});
|
|
340
340
|
|
|
341
|
+
export const flightRequestStatusSchema = z.enum(["draft", "open", "fulfilled", "cancelled", "expired"]);
|
|
342
|
+
export const flightRequestResponseStatusSchema = z.enum(["pending", "accepted", "declined", "withdrawn", "closed"]);
|
|
343
|
+
|
|
344
|
+
export const flightRequestWindowSchema = z.object({
|
|
345
|
+
id: z.number(),
|
|
346
|
+
etdZ: z.string(),
|
|
347
|
+
etaZ: z.string(),
|
|
348
|
+
position: z.number(),
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
export const flightRequestSeatSchema = z.object({
|
|
352
|
+
role: z.string(),
|
|
353
|
+
count: z.number(),
|
|
354
|
+
filled: z.number(),
|
|
355
|
+
remaining: z.number(),
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
export const flightRequestResponseSchema = z.object({
|
|
359
|
+
type: z.literal("flight_request_response"),
|
|
360
|
+
id: z.number(),
|
|
361
|
+
flight_request_id: z.number(),
|
|
362
|
+
membership_id: z.number(),
|
|
363
|
+
membership: membershipIdentitySchema.optional(),
|
|
364
|
+
role: z.string(),
|
|
365
|
+
airplane_id: z.number().nullable(),
|
|
366
|
+
airplane: z.object({ id: z.number(), registration: z.string() }).nullable().optional(),
|
|
367
|
+
etdZ: z.string().nullable(),
|
|
368
|
+
etaZ: z.string().nullable(),
|
|
369
|
+
message: z.string().nullable(),
|
|
370
|
+
status: flightRequestResponseStatusSchema,
|
|
371
|
+
decided_at: z.string().nullable(),
|
|
372
|
+
created_at: z.string().nullable(),
|
|
373
|
+
preview: z
|
|
374
|
+
.object({
|
|
375
|
+
airplane_permission: z.boolean().nullable(),
|
|
376
|
+
compliance: z.object({ compliant: z.boolean(), missing: z.array(z.string()) }).nullable(),
|
|
377
|
+
})
|
|
378
|
+
.optional(),
|
|
379
|
+
can: z.object({ withdraw: zNullableBool, decide: zNullableBool }).optional(),
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
export const flightRequestSchema = z.object({
|
|
383
|
+
type: z.literal("flight_request"),
|
|
384
|
+
id: z.number(),
|
|
385
|
+
company_id: z.number(),
|
|
386
|
+
membership_id: z.number(),
|
|
387
|
+
membership: membershipIdentitySchema.optional(),
|
|
388
|
+
created_by_id: z.number().nullable(),
|
|
389
|
+
role: z.string(),
|
|
390
|
+
course_enrollment_id: z.number().nullable(),
|
|
391
|
+
course: z.object({ id: z.number(), name: z.string().nullable(), title: z.string().nullable() }).nullable().optional(),
|
|
392
|
+
booking_id: z.number().nullable(),
|
|
393
|
+
is_pinned: z.boolean(),
|
|
394
|
+
status: flightRequestStatusSchema,
|
|
395
|
+
note: z.string().nullable(),
|
|
396
|
+
published_at: z.string().nullable(),
|
|
397
|
+
closed_at: z.string().nullable(),
|
|
398
|
+
windows: z.array(flightRequestWindowSchema),
|
|
399
|
+
airplanes: z.array(z.object({ id: z.number(), registration: z.string(), model: z.string().nullable() })),
|
|
400
|
+
seats: z.array(flightRequestSeatSchema),
|
|
401
|
+
pending_responses_count: z.number(),
|
|
402
|
+
my_response: flightRequestResponseSchema.nullable(),
|
|
403
|
+
is_invited: z.boolean(),
|
|
404
|
+
booking: z
|
|
405
|
+
.object({
|
|
406
|
+
id: z.number(),
|
|
407
|
+
airplane_id: z.number(),
|
|
408
|
+
registration: z.string().nullable(),
|
|
409
|
+
etdZ: z.string().nullable(),
|
|
410
|
+
etaZ: z.string().nullable(),
|
|
411
|
+
})
|
|
412
|
+
.nullable()
|
|
413
|
+
.optional(),
|
|
414
|
+
responses: z.array(flightRequestResponseSchema).optional(),
|
|
415
|
+
invitees: z.array(membershipIdentitySchema).optional(),
|
|
416
|
+
created_at: z.string().nullable(),
|
|
417
|
+
updated_at: z.string().nullable(),
|
|
418
|
+
can: z
|
|
419
|
+
.object({
|
|
420
|
+
view: zNullableBool,
|
|
421
|
+
update: zNullableBool,
|
|
422
|
+
delete: zNullableBool,
|
|
423
|
+
publish: zNullableBool,
|
|
424
|
+
cancel: zNullableBool,
|
|
425
|
+
invite: zNullableBool,
|
|
426
|
+
accept: zNullableBool,
|
|
427
|
+
respond: zNullableBool,
|
|
428
|
+
viewComments: zNullableBool,
|
|
429
|
+
createComments: zNullableBool,
|
|
430
|
+
viewResponses: zNullableBool,
|
|
431
|
+
})
|
|
432
|
+
.optional(),
|
|
433
|
+
});
|
|
434
|
+
|
|
341
435
|
export const landingFeeSchema = z.object({
|
|
342
436
|
id: z.number(),
|
|
343
437
|
airplane_id: z.number(),
|
|
@@ -1100,6 +1194,9 @@ export const courseEnrollmentSchema = z.object({
|
|
|
1100
1194
|
membership_id: z.number(),
|
|
1101
1195
|
company_id: z.number(),
|
|
1102
1196
|
mentor_id: z.number().nullable().optional(),
|
|
1197
|
+
// Default billing profile of the enrollment (null = the member's default);
|
|
1198
|
+
// the initial-fee items are billed to it.
|
|
1199
|
+
billing_profile_id: z.number().nullable().optional(),
|
|
1103
1200
|
status: z.enum(["enrolled", "completed", "cancelled", "suspended"]),
|
|
1104
1201
|
enrollment_date: z.string(),
|
|
1105
1202
|
completion_date: z.string().nullable().optional(),
|
|
@@ -1117,6 +1214,7 @@ export const courseEnrollmentSchema = z.object({
|
|
|
1117
1214
|
course: courseSchema.optional(),
|
|
1118
1215
|
membership: nestedMembershipSchema.optional(),
|
|
1119
1216
|
mentor: userSchema.optional(),
|
|
1217
|
+
billingProfile: billingProfileSchema.nullable().optional(),
|
|
1120
1218
|
// Present when eager-loaded (BaseCourseEnrollmentResource). Lazy: both
|
|
1121
1219
|
// schemas are declared later in this file; there is no true cycle.
|
|
1122
1220
|
expense_items: z.array(z.lazy(() => expenseItemSchema)).optional(),
|
package/src/types/models.ts
CHANGED
|
@@ -25,6 +25,22 @@ export type AirplanePermission = z.infer<
|
|
|
25
25
|
export type TeachingPermission = z.infer<
|
|
26
26
|
typeof ModelSchemas.teachingPermissionSchema
|
|
27
27
|
>;
|
|
28
|
+
export type FlightRequest = z.infer<typeof ModelSchemas.flightRequestSchema>;
|
|
29
|
+
export type FlightRequestResponse = z.infer<
|
|
30
|
+
typeof ModelSchemas.flightRequestResponseSchema
|
|
31
|
+
>;
|
|
32
|
+
export type FlightRequestWindow = z.infer<
|
|
33
|
+
typeof ModelSchemas.flightRequestWindowSchema
|
|
34
|
+
>;
|
|
35
|
+
export type FlightRequestSeat = z.infer<
|
|
36
|
+
typeof ModelSchemas.flightRequestSeatSchema
|
|
37
|
+
>;
|
|
38
|
+
export type FlightRequestStatus = z.infer<
|
|
39
|
+
typeof ModelSchemas.flightRequestStatusSchema
|
|
40
|
+
>;
|
|
41
|
+
export type FlightRequestResponseStatus = z.infer<
|
|
42
|
+
typeof ModelSchemas.flightRequestResponseStatusSchema
|
|
43
|
+
>;
|
|
28
44
|
export type AirplaneShareInvite = z.infer<
|
|
29
45
|
typeof ModelSchemas.airplaneShareInviteSchema
|
|
30
46
|
>;
|