@updraft-solutions/mcrit-sdk 0.17.0 → 0.18.1
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-RKSVNZQ7.cjs → chunk-CY7AQXVQ.cjs} +55 -22
- package/dist/{chunk-Q2UPZUCE.js → chunk-SEJODI3S.js} +55 -22
- package/dist/{conversation-CJlHvwCn.d.cts → conversation-B-7Wh8pC.d.cts} +33210 -19434
- package/dist/{conversation-CJlHvwCn.d.ts → conversation-B-7Wh8pC.d.ts} +33210 -19434
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +59 -59
- package/dist/schemas/index.cjs +2 -2
- package/dist/schemas/index.d.cts +198 -198
- package/dist/schemas/index.d.ts +198 -198
- package/dist/schemas/index.js +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/schemas/common.ts +7 -0
- package/src/schemas/conversation.spec.ts +1 -0
- package/src/schemas/conversation.ts +2 -0
- package/src/schemas/models.ts +53 -22
|
@@ -122,7 +122,14 @@ var companySchema = _zod.z.object({
|
|
|
122
122
|
longitude_deg: _zod.z.number().nullable().optional()
|
|
123
123
|
}).nullable().optional(),
|
|
124
124
|
icao: _zod.z.string().nullable().optional(),
|
|
125
|
-
distance_in_km: _zod.z.number().optional()
|
|
125
|
+
distance_in_km: _zod.z.number().optional(),
|
|
126
|
+
// Tax details: `tax_number` only reaches users who may view company
|
|
127
|
+
// details (like `vat`); the VAT-exemption fields + `vat_exemption_codes`
|
|
128
|
+
// come from the super-admin AdminCompanyResource.
|
|
129
|
+
tax_number: _zod.z.string().nullable().optional(),
|
|
130
|
+
vat_exemption_code: _zod.z.string().nullable().optional(),
|
|
131
|
+
vat_exemption_text: _zod.z.string().nullable().optional(),
|
|
132
|
+
vat_exemption_codes: _zod.z.array(_zod.z.string()).optional()
|
|
126
133
|
});
|
|
127
134
|
|
|
128
135
|
// src/schemas/models.ts
|
|
@@ -1795,25 +1802,6 @@ var specialFlightSchema = _zod.z.object({
|
|
|
1795
1802
|
created_at: _zod.z.string(),
|
|
1796
1803
|
updated_at: _zod.z.string()
|
|
1797
1804
|
});
|
|
1798
|
-
var prePaidPackageSchema = _zod.z.object({
|
|
1799
|
-
type: _zod.z.literal("prePaidPackage"),
|
|
1800
|
-
id: _zod.z.number(),
|
|
1801
|
-
company_id: _zod.z.number(),
|
|
1802
|
-
company: companySchema.optional(),
|
|
1803
|
-
name: _zod.z.string(),
|
|
1804
|
-
description: _zod.z.string().nullable().optional(),
|
|
1805
|
-
balance: zMoneyObject,
|
|
1806
|
-
initial_amount: zMoneyObject,
|
|
1807
|
-
discount_percentage: _zod.z.number().nullable().optional(),
|
|
1808
|
-
valid_until: _zod.z.string().nullable().optional(),
|
|
1809
|
-
created_at: _zod.z.string(),
|
|
1810
|
-
updated_at: _zod.z.string(),
|
|
1811
|
-
can: _zod.z.object({
|
|
1812
|
-
update: zNullableBool,
|
|
1813
|
-
delete: zNullableBool,
|
|
1814
|
-
assign: zNullableBool
|
|
1815
|
-
}).optional()
|
|
1816
|
-
});
|
|
1817
1805
|
var prePaidPackageAssignmentSchema = _zod.z.object({
|
|
1818
1806
|
id: _zod.z.number(),
|
|
1819
1807
|
flight_log_id: _zod.z.number().nullable().optional(),
|
|
@@ -1884,6 +1872,49 @@ var expenseItemSchema = _zod.z.object({
|
|
|
1884
1872
|
// a live ExpenseItemResource payload.
|
|
1885
1873
|
is_snapshot: _zod.z.boolean().optional()
|
|
1886
1874
|
});
|
|
1875
|
+
var prePaidPackageSchema = _zod.z.object({
|
|
1876
|
+
type: _zod.z.literal("prePaidPackage"),
|
|
1877
|
+
id: _zod.z.number(),
|
|
1878
|
+
membership_id: _zod.z.number(),
|
|
1879
|
+
membership: membershipIdentitySchema.optional(),
|
|
1880
|
+
invoice_id: _zod.z.number().nullable(),
|
|
1881
|
+
company_id: _zod.z.number(),
|
|
1882
|
+
billable: _zod.z.boolean(),
|
|
1883
|
+
billing_profile_id: _zod.z.number().nullable(),
|
|
1884
|
+
billingProfile: billingProfileSchema.optional(),
|
|
1885
|
+
allowed_billing_profile_ids: _zod.z.array(_zod.z.number()).optional(),
|
|
1886
|
+
allowedBillingProfiles: _zod.z.array(billingProfileSchema).optional(),
|
|
1887
|
+
covers_school_flights: _zod.z.boolean(),
|
|
1888
|
+
allowed_course_enrollment_ids: _zod.z.array(_zod.z.number()).optional(),
|
|
1889
|
+
allowedCourseEnrollments: _zod.z.array(
|
|
1890
|
+
_zod.z.object({
|
|
1891
|
+
id: _zod.z.number(),
|
|
1892
|
+
course_id: _zod.z.number(),
|
|
1893
|
+
course_name: _zod.z.string().nullable().optional()
|
|
1894
|
+
})
|
|
1895
|
+
).optional(),
|
|
1896
|
+
flightLogs: _zod.z.array(flightLogSchema).optional(),
|
|
1897
|
+
expenseItems: _zod.z.array(expenseItemSchema).optional(),
|
|
1898
|
+
assignedExpenseItems: _zod.z.array(expenseItemSchema).optional(),
|
|
1899
|
+
prePaidPackageAssignments: _zod.z.array(prePaidPackageAssignmentSchema).optional(),
|
|
1900
|
+
remarks: _zod.z.string().nullable(),
|
|
1901
|
+
// Two-decimal amount, serialised as a string ("120.00").
|
|
1902
|
+
total: _zod.z.union([_zod.z.string(), _zod.z.number()]),
|
|
1903
|
+
remaining_gross_value: zMoneyObject,
|
|
1904
|
+
initial_gross_value: zMoneyObject,
|
|
1905
|
+
approved_applications: _zod.z.array(_zod.z.string()),
|
|
1906
|
+
usage: _zod.z.number(),
|
|
1907
|
+
valid_from: _zod.z.string().nullable(),
|
|
1908
|
+
expires_at: _zod.z.string().nullable(),
|
|
1909
|
+
created_at: _zod.z.string(),
|
|
1910
|
+
refunded_at: _zod.z.string().nullable(),
|
|
1911
|
+
refunded_gross_value: zMoneyObject.nullable(),
|
|
1912
|
+
refund_gross_total: zMoneyObject.nullable(),
|
|
1913
|
+
refund_reason: _zod.z.string().nullable().optional(),
|
|
1914
|
+
refund_reference: _zod.z.string().nullable().optional(),
|
|
1915
|
+
refundedBy: _zod.z.object({ id: _zod.z.number(), name: _zod.z.string() }).nullable().optional(),
|
|
1916
|
+
can: _zod.z.record(_zod.z.string(), _zod.z.boolean().nullable()).optional()
|
|
1917
|
+
});
|
|
1887
1918
|
var waypointSchema = _zod.z.object({
|
|
1888
1919
|
type: _zod.z.literal("waypoint"),
|
|
1889
1920
|
id: _zod.z.number(),
|
|
@@ -3195,7 +3226,9 @@ var conversationRecipientSchema = _zod.z.object({
|
|
|
3195
3226
|
});
|
|
3196
3227
|
var conversationUnreadSummarySchema = _zod.z.object({
|
|
3197
3228
|
company_id: _zod.z.number(),
|
|
3198
|
-
unread_conversations: _zod.z.number()
|
|
3229
|
+
unread_conversations: _zod.z.number(),
|
|
3230
|
+
/** Whether the viewer may start a conversation at this company. */
|
|
3231
|
+
can_create: _zod.z.boolean().optional()
|
|
3199
3232
|
});
|
|
3200
3233
|
var conversationMessageSentEventSchema = _zod.z.object({
|
|
3201
3234
|
company_id: _zod.z.number(),
|
|
@@ -3473,4 +3506,4 @@ var conversationReadEventSchema = _zod.z.object({
|
|
|
3473
3506
|
|
|
3474
3507
|
|
|
3475
3508
|
|
|
3476
|
-
exports.zNullableBool = zNullableBool; exports.zNetGross = zNetGross; exports.zContactDTO = zContactDTO; exports.zMoneyObject = zMoneyObject; exports.contactAttributeSchema = contactAttributeSchema; exports.BaseModel = BaseModel; exports.mediaSchema = mediaSchema; exports.mediaCollection = mediaCollection; exports.impersonationParticipantSchema = impersonationParticipantSchema; exports.impersonationStateSchema = impersonationStateSchema; exports.userSchema = userSchema; exports.companyIdentitySchema = companyIdentitySchema; exports.companySchema = companySchema; exports.equipmentSchema = equipmentSchema; exports.gradingScalePointSchema = gradingScalePointSchema; exports.gradingScaleSchema = gradingScaleSchema; exports.GradingScaleFormSchema = GradingScaleFormSchema; exports.TrainingElementKindEnum = TrainingElementKindEnum; exports.trainingElementSchema = trainingElementSchema; exports.TrainingElementFormSchema = TrainingElementFormSchema; exports.SyllabusKindEnum = SyllabusKindEnum; exports.syllabusElementSchema = syllabusElementSchema; exports.AttachSyllabusElementFormSchema = AttachSyllabusElementFormSchema; exports.UpdateSyllabusElementFormSchema = UpdateSyllabusElementFormSchema; exports.ReorderSyllabusElementItemSchema = ReorderSyllabusElementItemSchema; exports.usedByCourseSchema = usedByCourseSchema; exports.syllabusSchema = syllabusSchema; exports.StoreSyllabusFormSchema = StoreSyllabusFormSchema; exports.UpdateSyllabusFormSchema = UpdateSyllabusFormSchema; exports.courseCheckSyllabusSchema = courseCheckSyllabusSchema; exports.syllabusElementMutationResultSchema = syllabusElementMutationResultSchema; exports.syllabusRolloutResultItemSchema = syllabusRolloutResultItemSchema; exports.syllabusRolloutSkippedItemSchema = syllabusRolloutSkippedItemSchema; exports.syllabusRolloutResultSchema = syllabusRolloutResultSchema; exports.EnrollmentTrainingStatusEnum = EnrollmentTrainingStatusEnum; exports.gradeHistoryItemSchema = gradeHistoryItemSchema; exports.enrollmentTrainingElementSchema = enrollmentTrainingElementSchema; exports.SignOffTrainingElementFormSchema = SignOffTrainingElementFormSchema; exports.TrainingRecordStatusEnum = TrainingRecordStatusEnum; exports.TrainingRecordResultEnum = TrainingRecordResultEnum; exports.trainingRecordEntrySchema = trainingRecordEntrySchema; exports.trainingRecordEntryInputSchema = trainingRecordEntryInputSchema; exports.trainingSignatureSchema = trainingSignatureSchema; exports.trainingRecordSchema = trainingRecordSchema; exports.UpsertTrainingRecordFormSchema = UpsertTrainingRecordFormSchema; exports.invalidateTrainingRecordResponseSchema = invalidateTrainingRecordResponseSchema; exports.trainingTemplatePackSchema = trainingTemplatePackSchema; exports.CreateSyllabusFromTemplateFormSchema = CreateSyllabusFromTemplateFormSchema; exports.createSyllabusFromTemplateResultSchema = createSyllabusFromTemplateResultSchema; exports.membershipIdentitySchema = membershipIdentitySchema; exports.nestedMembershipSchema = nestedMembershipSchema; exports.baseMembershipSchema = baseMembershipSchema; exports.membershipSchema = membershipSchema; exports.documentType = documentType; exports.priceSchema = priceSchema; exports.feeSchema = feeSchema; exports.feeCategoryOptionsSchema = feeCategoryOptionsSchema; exports.courseFeeSchema = courseFeeSchema; exports.fuelUnitSchema = fuelUnitSchema; exports.airplaneSchema = airplaneSchema; exports.aircraftPositionSchema = aircraftPositionSchema; exports.airplaneShareInviteSchema = airplaneShareInviteSchema; exports.airplanePermissionSchema = airplanePermissionSchema; exports.teachingPermissionSchema = teachingPermissionSchema; exports.flightRequestStatusSchema = flightRequestStatusSchema; exports.flightRequestResponseStatusSchema = flightRequestResponseStatusSchema; exports.flightRequestWindowSchema = flightRequestWindowSchema; exports.flightRequestBusyIntervalSchema = flightRequestBusyIntervalSchema; exports.flightRequestAvailabilitySchema = flightRequestAvailabilitySchema; exports.flightRequestSeatSchema = flightRequestSeatSchema; exports.flightRequestResponseSchema = flightRequestResponseSchema; exports.flightRequestSchema = flightRequestSchema; exports.landingFeeSchema = landingFeeSchema; exports.aircraftRatingSchema = aircraftRatingSchema; exports.userAircraftRatingSchema = userAircraftRatingSchema; exports.userQualificationSchema = userQualificationSchema; exports.airportSchema = airportSchema; exports.recurringFlightSchema = recurringFlightSchema; exports.maintenanceEventSchema = maintenanceEventSchema; exports.maintenanceEventEstimationSchema = maintenanceEventEstimationSchema; exports.maintenanceStatusSchema = maintenanceStatusSchema; exports.extendedAirplaneSchema = extendedAirplaneSchema; exports.availSchema = availSchema; exports.bookingWaypointSchema = bookingWaypointSchema; exports.activitySchema = activitySchema; exports.bookingSchema = bookingSchema; exports.alertSchema = alertSchema; exports.documentSchema = documentSchema; exports.documentRequirement = documentRequirement; exports.documentRequirementGroup = documentRequirementGroup; exports.documentRequirementGroupAssignment = documentRequirementGroupAssignment; exports.documentComplianceStatus = documentComplianceStatus; exports.documentShareSchema = documentShareSchema; exports.allowedDocumentTypeSchema = allowedDocumentTypeSchema; exports.billingProfileSchema = billingProfileSchema; exports.flightLogSchema = flightLogSchema; exports.invoiceSchema = invoiceSchema; exports.scheduledFlightSchema = scheduledFlightSchema; exports.qualificationSchema = qualificationSchema; exports.expenseSchema = expenseSchema; exports.tagSchema = tagSchema; exports.courseSchema = courseSchema; exports.courseEnrollmentMetricsSchema = courseEnrollmentMetricsSchema; exports.courseEnrollmentSchema = courseEnrollmentSchema; exports.membershipSignupSchema = membershipSignupSchema; exports.eventSchema = eventSchema; exports.addressSchema = addressSchema; exports.roleSchema = roleSchema; exports.landingSchema = landingSchema; exports.ticketSchema = ticketSchema; exports.runwaySchema = runwaySchema; exports.settingSchema = settingSchema; exports.postSubjectSchema = postSubjectSchema; exports.postSchema = postSchema; exports.commentSchema = commentSchema; exports.airplaneIssueSeverityEnum = airplaneIssueSeverityEnum; exports.airplaneIssueStatusEnum = airplaneIssueStatusEnum; exports.airplaneIssueSchema = airplaneIssueSchema; exports.specialFlightSchema = specialFlightSchema; exports.prePaidPackageSchema = prePaidPackageSchema; exports.prePaidPackageAssignmentSchema = prePaidPackageAssignmentSchema; exports.expenseItemSchema = expenseItemSchema; exports.waypointSchema = waypointSchema; exports.approachTypeSchema = approachTypeSchema; exports.FaqStatus = FaqStatus; exports.FaqSchema = FaqSchema; exports.SubmitFaqQuestionSchema = SubmitFaqQuestionSchema; exports.ReviewFaqSchema = ReviewFaqSchema; exports.SafetyReportStatusEnum = SafetyReportStatusEnum; exports.SafetyReportCategorySchema = SafetyReportCategorySchema; exports.SafetyReportCategoryFormSchema = SafetyReportCategoryFormSchema; exports.SafetyReportMediaSchema = SafetyReportMediaSchema; exports.SafetyReportSchema = SafetyReportSchema; exports.SafetyReportListResponseSchema = SafetyReportListResponseSchema; exports.SafetyReportFormSchema = SafetyReportFormSchema; exports.SafetyReportUpdateSchema = SafetyReportUpdateSchema; exports.SafetyReportFilterSchema = SafetyReportFilterSchema; exports.SafetyReportSubmissionResponseSchema = SafetyReportSubmissionResponseSchema; exports.SAFETY_REPORT_STATUS_LABELS = SAFETY_REPORT_STATUS_LABELS; exports.SAFETY_REPORT_STATUS_COLORS = SAFETY_REPORT_STATUS_COLORS; exports.FormFieldType = FormFieldType; exports.FormSubmissionStatus = FormSubmissionStatus; exports.FormSubmissionSource = FormSubmissionSource; exports.FieldLabelSchema = FieldLabelSchema; exports.ShowWhenSchema = ShowWhenSchema; exports.SchemaFieldSchema = SchemaFieldSchema; exports.SchemaSectionSchema = SchemaSectionSchema; exports.TemplateSchemaSchema = TemplateSchemaSchema; exports.FormTemplateSchema = FormTemplateSchema; exports.FormTemplateAssignmentSchema = FormTemplateAssignmentSchema; exports.SignatureSchema = SignatureSchema; exports.SubmissionFileSchema = SubmissionFileSchema; exports.FormSubmissionShareBaseSchema = FormSubmissionShareBaseSchema; exports.FormSubmissionSchema = FormSubmissionSchema; exports.FormSubmissionShareSchema = FormSubmissionShareSchema; exports.RequiredFormViaCrewSchema = RequiredFormViaCrewSchema; exports.RequiredFormViaSchema = RequiredFormViaSchema; exports.RequiredFormSchema = RequiredFormSchema; exports.CourseMilestoneKindEnum = CourseMilestoneKindEnum; exports.courseMilestoneSchema = courseMilestoneSchema; exports.CourseMilestoneFormSchema = CourseMilestoneFormSchema; exports.courseEnrollmentMilestoneSchema = courseEnrollmentMilestoneSchema; exports.NewsletterBlockType = NewsletterBlockType; exports.TipTapNodeSchema = TipTapNodeSchema; exports.HeadingBlockSchema = HeadingBlockSchema; exports.ParagraphBlockSchema = ParagraphBlockSchema; exports.ButtonBlockSchema = ButtonBlockSchema; exports.DividerBlockSchema = DividerBlockSchema; exports.NewsletterBlockSchema = NewsletterBlockSchema; exports.NewsletterCategorySchema = NewsletterCategorySchema; exports.NewsletterTemplateSchemaSchema = NewsletterTemplateSchemaSchema; exports.NewsletterTemplateSchema = NewsletterTemplateSchema; exports.CreateNewsletterTemplateInputSchema = CreateNewsletterTemplateInputSchema; exports.AudienceBucketType = AudienceBucketType; exports.AllUsersBucketSchema = AllUsersBucketSchema; exports.CompanyUsersBucketSchema = CompanyUsersBucketSchema; exports.RoleMembersBucketSchema = RoleMembersBucketSchema; exports.AudienceBucketSchema = AudienceBucketSchema; exports.NewsletterAudienceSchema = NewsletterAudienceSchema; exports.companyAudienceInclude = companyAudienceInclude; exports.NewsletterCampaignStatus = NewsletterCampaignStatus; exports.NewsletterCampaignSchema = NewsletterCampaignSchema; exports.CreateNewsletterCampaignInputSchema = CreateNewsletterCampaignInputSchema; exports.NewsletterRecipientStatus = NewsletterRecipientStatus; exports.NewsletterCampaignRecipientSchema = NewsletterCampaignRecipientSchema; exports.NewsletterPreferenceRowSchema = NewsletterPreferenceRowSchema; exports.ALLOWED_NEWSLETTER_VARIABLES = ALLOWED_NEWSLETTER_VARIABLES; exports.LocationMapKind = LocationMapKind; exports.LocationFeatureVisibility = LocationFeatureVisibility; exports.ALLOWED_GEOMETRY_TYPES = ALLOWED_GEOMETRY_TYPES; exports.ViewportSchema = ViewportSchema; exports.GeometrySchema = GeometrySchema; exports.CreateLocationMapSchema = CreateLocationMapSchema; exports.UpdateLocationMapSchema = UpdateLocationMapSchema; exports.CreateLocationMapFeatureSchema = CreateLocationMapFeatureSchema; exports.UpdateLocationMapFeatureSchema = UpdateLocationMapFeatureSchema; exports.ImportFeaturesSchema = ImportFeaturesSchema; exports.TodoActionSchema = TodoActionSchema; exports.TodoKey = TodoKey; exports.TodoPrioritySchema = TodoPrioritySchema; exports.TodoSchema = TodoSchema; exports.fboAcceptanceAxisSchema = fboAcceptanceAxisSchema; exports.fboAcceptanceStatusSchema = fboAcceptanceStatusSchema; exports.fboGroundServicesSchema = fboGroundServicesSchema; exports.fboFlightTypeSchema = fboFlightTypeSchema; exports.fboFlightStatusSchema = fboFlightStatusSchema; exports.fboOperationsSchema = fboOperationsSchema; exports.fboFlightCanSchema = fboFlightCanSchema; exports.fboRowCanSchema = fboRowCanSchema; exports.fboPobSchema = fboPobSchema; exports.fboPersonSchema = fboPersonSchema; exports.fboFlightDocumentSchema = fboFlightDocumentSchema; exports.fboFlightSchema = fboFlightSchema; exports.fboOccupationSchema = fboOccupationSchema; exports.fboRecurrenceTypeSchema = fboRecurrenceTypeSchema; exports.fboRecurrenceSchema = fboRecurrenceSchema; exports.fboDutyAffectedSchema = fboDutyAffectedSchema; exports.fboDutySchema = fboDutySchema; exports.fboDutySeriesResponseSchema = fboDutySeriesResponseSchema; exports.fboRoleSchema = fboRoleSchema; exports.fboCompanyProfileSchema = fboCompanyProfileSchema; exports.fboDecisionAxisSchema = fboDecisionAxisSchema; exports.fboDecisionSchema = fboDecisionSchema; exports.fboDecisionInputSchema = fboDecisionInputSchema; exports.fboVisibilitySchema = fboVisibilitySchema; exports.fboTrafficSourceSchema = fboTrafficSourceSchema; exports.fboTrafficRowTypeSchema = fboTrafficRowTypeSchema; exports.fboTrafficRowSchema = fboTrafficRowSchema; exports.fboTrafficLayerInputSchema = fboTrafficLayerInputSchema; exports.FBO_SYSTEM_ROLES = FBO_SYSTEM_ROLES; exports.fboSystemRoleSchema = fboSystemRoleSchema; exports.fboCompanyMemberSchema = fboCompanyMemberSchema; exports.fboNextDutySchema = fboNextDutySchema; exports.fboWeeklyLandingSchema = fboWeeklyLandingSchema; exports.fboLandingsSummarySchema = fboLandingsSummarySchema; exports.fboStatisticsSchema = fboStatisticsSchema; exports.fboActivityCauserSchema = fboActivityCauserSchema; exports.fboActivityChangesSchema = fboActivityChangesSchema; exports.fboActivitySchema = fboActivitySchema; exports.FBO_OPERATING_DAYS = FBO_OPERATING_DAYS; exports.fboRecurringFlightSchema = fboRecurringFlightSchema; exports.fboMaterialiseResultSchema = fboMaterialiseResultSchema; exports.fboGrantAbilitySchema = fboGrantAbilitySchema; exports.fboGrantAbilityOptionSchema = fboGrantAbilityOptionSchema; exports.fboGrantCompanyRefSchema = fboGrantCompanyRefSchema; exports.fboCompanyGrantSchema = fboCompanyGrantSchema; exports.fboCompanyGrantInputSchema = fboCompanyGrantInputSchema; exports.fboMetaSchema = fboMetaSchema; exports.fboCompanySchema = fboCompanySchema; exports.SystemContractStateSchema = SystemContractStateSchema; exports.SystemContractRegisterRowSchema = SystemContractRegisterRowSchema; exports.SystemContractRegisterEntrySchema = SystemContractRegisterEntrySchema; exports.SystemContractRegisterResponseSchema = SystemContractRegisterResponseSchema; exports.CompanySystemContractsResponseSchema = CompanySystemContractsResponseSchema; exports.conversationKindSchema = conversationKindSchema; exports.conversationMessageSchema = conversationMessageSchema; exports.conversationParticipantSchema = conversationParticipantSchema; exports.conversationSchema = conversationSchema; exports.conversationRecipientSchema = conversationRecipientSchema; exports.conversationUnreadSummarySchema = conversationUnreadSummarySchema; exports.conversationMessageSentEventSchema = conversationMessageSentEventSchema; exports.conversationReadEventSchema = conversationReadEventSchema;
|
|
3509
|
+
exports.zNullableBool = zNullableBool; exports.zNetGross = zNetGross; exports.zContactDTO = zContactDTO; exports.zMoneyObject = zMoneyObject; exports.contactAttributeSchema = contactAttributeSchema; exports.BaseModel = BaseModel; exports.mediaSchema = mediaSchema; exports.mediaCollection = mediaCollection; exports.impersonationParticipantSchema = impersonationParticipantSchema; exports.impersonationStateSchema = impersonationStateSchema; exports.userSchema = userSchema; exports.companyIdentitySchema = companyIdentitySchema; exports.companySchema = companySchema; exports.equipmentSchema = equipmentSchema; exports.gradingScalePointSchema = gradingScalePointSchema; exports.gradingScaleSchema = gradingScaleSchema; exports.GradingScaleFormSchema = GradingScaleFormSchema; exports.TrainingElementKindEnum = TrainingElementKindEnum; exports.trainingElementSchema = trainingElementSchema; exports.TrainingElementFormSchema = TrainingElementFormSchema; exports.SyllabusKindEnum = SyllabusKindEnum; exports.syllabusElementSchema = syllabusElementSchema; exports.AttachSyllabusElementFormSchema = AttachSyllabusElementFormSchema; exports.UpdateSyllabusElementFormSchema = UpdateSyllabusElementFormSchema; exports.ReorderSyllabusElementItemSchema = ReorderSyllabusElementItemSchema; exports.usedByCourseSchema = usedByCourseSchema; exports.syllabusSchema = syllabusSchema; exports.StoreSyllabusFormSchema = StoreSyllabusFormSchema; exports.UpdateSyllabusFormSchema = UpdateSyllabusFormSchema; exports.courseCheckSyllabusSchema = courseCheckSyllabusSchema; exports.syllabusElementMutationResultSchema = syllabusElementMutationResultSchema; exports.syllabusRolloutResultItemSchema = syllabusRolloutResultItemSchema; exports.syllabusRolloutSkippedItemSchema = syllabusRolloutSkippedItemSchema; exports.syllabusRolloutResultSchema = syllabusRolloutResultSchema; exports.EnrollmentTrainingStatusEnum = EnrollmentTrainingStatusEnum; exports.gradeHistoryItemSchema = gradeHistoryItemSchema; exports.enrollmentTrainingElementSchema = enrollmentTrainingElementSchema; exports.SignOffTrainingElementFormSchema = SignOffTrainingElementFormSchema; exports.TrainingRecordStatusEnum = TrainingRecordStatusEnum; exports.TrainingRecordResultEnum = TrainingRecordResultEnum; exports.trainingRecordEntrySchema = trainingRecordEntrySchema; exports.trainingRecordEntryInputSchema = trainingRecordEntryInputSchema; exports.trainingSignatureSchema = trainingSignatureSchema; exports.trainingRecordSchema = trainingRecordSchema; exports.UpsertTrainingRecordFormSchema = UpsertTrainingRecordFormSchema; exports.invalidateTrainingRecordResponseSchema = invalidateTrainingRecordResponseSchema; exports.trainingTemplatePackSchema = trainingTemplatePackSchema; exports.CreateSyllabusFromTemplateFormSchema = CreateSyllabusFromTemplateFormSchema; exports.createSyllabusFromTemplateResultSchema = createSyllabusFromTemplateResultSchema; exports.membershipIdentitySchema = membershipIdentitySchema; exports.nestedMembershipSchema = nestedMembershipSchema; exports.baseMembershipSchema = baseMembershipSchema; exports.membershipSchema = membershipSchema; exports.documentType = documentType; exports.priceSchema = priceSchema; exports.feeSchema = feeSchema; exports.feeCategoryOptionsSchema = feeCategoryOptionsSchema; exports.courseFeeSchema = courseFeeSchema; exports.fuelUnitSchema = fuelUnitSchema; exports.airplaneSchema = airplaneSchema; exports.aircraftPositionSchema = aircraftPositionSchema; exports.airplaneShareInviteSchema = airplaneShareInviteSchema; exports.airplanePermissionSchema = airplanePermissionSchema; exports.teachingPermissionSchema = teachingPermissionSchema; exports.flightRequestStatusSchema = flightRequestStatusSchema; exports.flightRequestResponseStatusSchema = flightRequestResponseStatusSchema; exports.flightRequestWindowSchema = flightRequestWindowSchema; exports.flightRequestBusyIntervalSchema = flightRequestBusyIntervalSchema; exports.flightRequestAvailabilitySchema = flightRequestAvailabilitySchema; exports.flightRequestSeatSchema = flightRequestSeatSchema; exports.flightRequestResponseSchema = flightRequestResponseSchema; exports.flightRequestSchema = flightRequestSchema; exports.landingFeeSchema = landingFeeSchema; exports.aircraftRatingSchema = aircraftRatingSchema; exports.userAircraftRatingSchema = userAircraftRatingSchema; exports.userQualificationSchema = userQualificationSchema; exports.airportSchema = airportSchema; exports.recurringFlightSchema = recurringFlightSchema; exports.maintenanceEventSchema = maintenanceEventSchema; exports.maintenanceEventEstimationSchema = maintenanceEventEstimationSchema; exports.maintenanceStatusSchema = maintenanceStatusSchema; exports.extendedAirplaneSchema = extendedAirplaneSchema; exports.availSchema = availSchema; exports.bookingWaypointSchema = bookingWaypointSchema; exports.activitySchema = activitySchema; exports.bookingSchema = bookingSchema; exports.alertSchema = alertSchema; exports.documentSchema = documentSchema; exports.documentRequirement = documentRequirement; exports.documentRequirementGroup = documentRequirementGroup; exports.documentRequirementGroupAssignment = documentRequirementGroupAssignment; exports.documentComplianceStatus = documentComplianceStatus; exports.documentShareSchema = documentShareSchema; exports.allowedDocumentTypeSchema = allowedDocumentTypeSchema; exports.billingProfileSchema = billingProfileSchema; exports.flightLogSchema = flightLogSchema; exports.invoiceSchema = invoiceSchema; exports.scheduledFlightSchema = scheduledFlightSchema; exports.qualificationSchema = qualificationSchema; exports.expenseSchema = expenseSchema; exports.tagSchema = tagSchema; exports.courseSchema = courseSchema; exports.courseEnrollmentMetricsSchema = courseEnrollmentMetricsSchema; exports.courseEnrollmentSchema = courseEnrollmentSchema; exports.membershipSignupSchema = membershipSignupSchema; exports.eventSchema = eventSchema; exports.addressSchema = addressSchema; exports.roleSchema = roleSchema; exports.landingSchema = landingSchema; exports.ticketSchema = ticketSchema; exports.runwaySchema = runwaySchema; exports.settingSchema = settingSchema; exports.postSubjectSchema = postSubjectSchema; exports.postSchema = postSchema; exports.commentSchema = commentSchema; exports.airplaneIssueSeverityEnum = airplaneIssueSeverityEnum; exports.airplaneIssueStatusEnum = airplaneIssueStatusEnum; exports.airplaneIssueSchema = airplaneIssueSchema; exports.specialFlightSchema = specialFlightSchema; exports.prePaidPackageAssignmentSchema = prePaidPackageAssignmentSchema; exports.expenseItemSchema = expenseItemSchema; exports.prePaidPackageSchema = prePaidPackageSchema; exports.waypointSchema = waypointSchema; exports.approachTypeSchema = approachTypeSchema; exports.FaqStatus = FaqStatus; exports.FaqSchema = FaqSchema; exports.SubmitFaqQuestionSchema = SubmitFaqQuestionSchema; exports.ReviewFaqSchema = ReviewFaqSchema; exports.SafetyReportStatusEnum = SafetyReportStatusEnum; exports.SafetyReportCategorySchema = SafetyReportCategorySchema; exports.SafetyReportCategoryFormSchema = SafetyReportCategoryFormSchema; exports.SafetyReportMediaSchema = SafetyReportMediaSchema; exports.SafetyReportSchema = SafetyReportSchema; exports.SafetyReportListResponseSchema = SafetyReportListResponseSchema; exports.SafetyReportFormSchema = SafetyReportFormSchema; exports.SafetyReportUpdateSchema = SafetyReportUpdateSchema; exports.SafetyReportFilterSchema = SafetyReportFilterSchema; exports.SafetyReportSubmissionResponseSchema = SafetyReportSubmissionResponseSchema; exports.SAFETY_REPORT_STATUS_LABELS = SAFETY_REPORT_STATUS_LABELS; exports.SAFETY_REPORT_STATUS_COLORS = SAFETY_REPORT_STATUS_COLORS; exports.FormFieldType = FormFieldType; exports.FormSubmissionStatus = FormSubmissionStatus; exports.FormSubmissionSource = FormSubmissionSource; exports.FieldLabelSchema = FieldLabelSchema; exports.ShowWhenSchema = ShowWhenSchema; exports.SchemaFieldSchema = SchemaFieldSchema; exports.SchemaSectionSchema = SchemaSectionSchema; exports.TemplateSchemaSchema = TemplateSchemaSchema; exports.FormTemplateSchema = FormTemplateSchema; exports.FormTemplateAssignmentSchema = FormTemplateAssignmentSchema; exports.SignatureSchema = SignatureSchema; exports.SubmissionFileSchema = SubmissionFileSchema; exports.FormSubmissionShareBaseSchema = FormSubmissionShareBaseSchema; exports.FormSubmissionSchema = FormSubmissionSchema; exports.FormSubmissionShareSchema = FormSubmissionShareSchema; exports.RequiredFormViaCrewSchema = RequiredFormViaCrewSchema; exports.RequiredFormViaSchema = RequiredFormViaSchema; exports.RequiredFormSchema = RequiredFormSchema; exports.CourseMilestoneKindEnum = CourseMilestoneKindEnum; exports.courseMilestoneSchema = courseMilestoneSchema; exports.CourseMilestoneFormSchema = CourseMilestoneFormSchema; exports.courseEnrollmentMilestoneSchema = courseEnrollmentMilestoneSchema; exports.NewsletterBlockType = NewsletterBlockType; exports.TipTapNodeSchema = TipTapNodeSchema; exports.HeadingBlockSchema = HeadingBlockSchema; exports.ParagraphBlockSchema = ParagraphBlockSchema; exports.ButtonBlockSchema = ButtonBlockSchema; exports.DividerBlockSchema = DividerBlockSchema; exports.NewsletterBlockSchema = NewsletterBlockSchema; exports.NewsletterCategorySchema = NewsletterCategorySchema; exports.NewsletterTemplateSchemaSchema = NewsletterTemplateSchemaSchema; exports.NewsletterTemplateSchema = NewsletterTemplateSchema; exports.CreateNewsletterTemplateInputSchema = CreateNewsletterTemplateInputSchema; exports.AudienceBucketType = AudienceBucketType; exports.AllUsersBucketSchema = AllUsersBucketSchema; exports.CompanyUsersBucketSchema = CompanyUsersBucketSchema; exports.RoleMembersBucketSchema = RoleMembersBucketSchema; exports.AudienceBucketSchema = AudienceBucketSchema; exports.NewsletterAudienceSchema = NewsletterAudienceSchema; exports.companyAudienceInclude = companyAudienceInclude; exports.NewsletterCampaignStatus = NewsletterCampaignStatus; exports.NewsletterCampaignSchema = NewsletterCampaignSchema; exports.CreateNewsletterCampaignInputSchema = CreateNewsletterCampaignInputSchema; exports.NewsletterRecipientStatus = NewsletterRecipientStatus; exports.NewsletterCampaignRecipientSchema = NewsletterCampaignRecipientSchema; exports.NewsletterPreferenceRowSchema = NewsletterPreferenceRowSchema; exports.ALLOWED_NEWSLETTER_VARIABLES = ALLOWED_NEWSLETTER_VARIABLES; exports.LocationMapKind = LocationMapKind; exports.LocationFeatureVisibility = LocationFeatureVisibility; exports.ALLOWED_GEOMETRY_TYPES = ALLOWED_GEOMETRY_TYPES; exports.ViewportSchema = ViewportSchema; exports.GeometrySchema = GeometrySchema; exports.CreateLocationMapSchema = CreateLocationMapSchema; exports.UpdateLocationMapSchema = UpdateLocationMapSchema; exports.CreateLocationMapFeatureSchema = CreateLocationMapFeatureSchema; exports.UpdateLocationMapFeatureSchema = UpdateLocationMapFeatureSchema; exports.ImportFeaturesSchema = ImportFeaturesSchema; exports.TodoActionSchema = TodoActionSchema; exports.TodoKey = TodoKey; exports.TodoPrioritySchema = TodoPrioritySchema; exports.TodoSchema = TodoSchema; exports.fboAcceptanceAxisSchema = fboAcceptanceAxisSchema; exports.fboAcceptanceStatusSchema = fboAcceptanceStatusSchema; exports.fboGroundServicesSchema = fboGroundServicesSchema; exports.fboFlightTypeSchema = fboFlightTypeSchema; exports.fboFlightStatusSchema = fboFlightStatusSchema; exports.fboOperationsSchema = fboOperationsSchema; exports.fboFlightCanSchema = fboFlightCanSchema; exports.fboRowCanSchema = fboRowCanSchema; exports.fboPobSchema = fboPobSchema; exports.fboPersonSchema = fboPersonSchema; exports.fboFlightDocumentSchema = fboFlightDocumentSchema; exports.fboFlightSchema = fboFlightSchema; exports.fboOccupationSchema = fboOccupationSchema; exports.fboRecurrenceTypeSchema = fboRecurrenceTypeSchema; exports.fboRecurrenceSchema = fboRecurrenceSchema; exports.fboDutyAffectedSchema = fboDutyAffectedSchema; exports.fboDutySchema = fboDutySchema; exports.fboDutySeriesResponseSchema = fboDutySeriesResponseSchema; exports.fboRoleSchema = fboRoleSchema; exports.fboCompanyProfileSchema = fboCompanyProfileSchema; exports.fboDecisionAxisSchema = fboDecisionAxisSchema; exports.fboDecisionSchema = fboDecisionSchema; exports.fboDecisionInputSchema = fboDecisionInputSchema; exports.fboVisibilitySchema = fboVisibilitySchema; exports.fboTrafficSourceSchema = fboTrafficSourceSchema; exports.fboTrafficRowTypeSchema = fboTrafficRowTypeSchema; exports.fboTrafficRowSchema = fboTrafficRowSchema; exports.fboTrafficLayerInputSchema = fboTrafficLayerInputSchema; exports.FBO_SYSTEM_ROLES = FBO_SYSTEM_ROLES; exports.fboSystemRoleSchema = fboSystemRoleSchema; exports.fboCompanyMemberSchema = fboCompanyMemberSchema; exports.fboNextDutySchema = fboNextDutySchema; exports.fboWeeklyLandingSchema = fboWeeklyLandingSchema; exports.fboLandingsSummarySchema = fboLandingsSummarySchema; exports.fboStatisticsSchema = fboStatisticsSchema; exports.fboActivityCauserSchema = fboActivityCauserSchema; exports.fboActivityChangesSchema = fboActivityChangesSchema; exports.fboActivitySchema = fboActivitySchema; exports.FBO_OPERATING_DAYS = FBO_OPERATING_DAYS; exports.fboRecurringFlightSchema = fboRecurringFlightSchema; exports.fboMaterialiseResultSchema = fboMaterialiseResultSchema; exports.fboGrantAbilitySchema = fboGrantAbilitySchema; exports.fboGrantAbilityOptionSchema = fboGrantAbilityOptionSchema; exports.fboGrantCompanyRefSchema = fboGrantCompanyRefSchema; exports.fboCompanyGrantSchema = fboCompanyGrantSchema; exports.fboCompanyGrantInputSchema = fboCompanyGrantInputSchema; exports.fboMetaSchema = fboMetaSchema; exports.fboCompanySchema = fboCompanySchema; exports.SystemContractStateSchema = SystemContractStateSchema; exports.SystemContractRegisterRowSchema = SystemContractRegisterRowSchema; exports.SystemContractRegisterEntrySchema = SystemContractRegisterEntrySchema; exports.SystemContractRegisterResponseSchema = SystemContractRegisterResponseSchema; exports.CompanySystemContractsResponseSchema = CompanySystemContractsResponseSchema; exports.conversationKindSchema = conversationKindSchema; exports.conversationMessageSchema = conversationMessageSchema; exports.conversationParticipantSchema = conversationParticipantSchema; exports.conversationSchema = conversationSchema; exports.conversationRecipientSchema = conversationRecipientSchema; exports.conversationUnreadSummarySchema = conversationUnreadSummarySchema; exports.conversationMessageSentEventSchema = conversationMessageSentEventSchema; exports.conversationReadEventSchema = conversationReadEventSchema;
|
|
@@ -122,7 +122,14 @@ var companySchema = z.object({
|
|
|
122
122
|
longitude_deg: z.number().nullable().optional()
|
|
123
123
|
}).nullable().optional(),
|
|
124
124
|
icao: z.string().nullable().optional(),
|
|
125
|
-
distance_in_km: z.number().optional()
|
|
125
|
+
distance_in_km: z.number().optional(),
|
|
126
|
+
// Tax details: `tax_number` only reaches users who may view company
|
|
127
|
+
// details (like `vat`); the VAT-exemption fields + `vat_exemption_codes`
|
|
128
|
+
// come from the super-admin AdminCompanyResource.
|
|
129
|
+
tax_number: z.string().nullable().optional(),
|
|
130
|
+
vat_exemption_code: z.string().nullable().optional(),
|
|
131
|
+
vat_exemption_text: z.string().nullable().optional(),
|
|
132
|
+
vat_exemption_codes: z.array(z.string()).optional()
|
|
126
133
|
});
|
|
127
134
|
|
|
128
135
|
// src/schemas/models.ts
|
|
@@ -1795,25 +1802,6 @@ var specialFlightSchema = z4.object({
|
|
|
1795
1802
|
created_at: z4.string(),
|
|
1796
1803
|
updated_at: z4.string()
|
|
1797
1804
|
});
|
|
1798
|
-
var prePaidPackageSchema = z4.object({
|
|
1799
|
-
type: z4.literal("prePaidPackage"),
|
|
1800
|
-
id: z4.number(),
|
|
1801
|
-
company_id: z4.number(),
|
|
1802
|
-
company: companySchema.optional(),
|
|
1803
|
-
name: z4.string(),
|
|
1804
|
-
description: z4.string().nullable().optional(),
|
|
1805
|
-
balance: zMoneyObject,
|
|
1806
|
-
initial_amount: zMoneyObject,
|
|
1807
|
-
discount_percentage: z4.number().nullable().optional(),
|
|
1808
|
-
valid_until: z4.string().nullable().optional(),
|
|
1809
|
-
created_at: z4.string(),
|
|
1810
|
-
updated_at: z4.string(),
|
|
1811
|
-
can: z4.object({
|
|
1812
|
-
update: zNullableBool,
|
|
1813
|
-
delete: zNullableBool,
|
|
1814
|
-
assign: zNullableBool
|
|
1815
|
-
}).optional()
|
|
1816
|
-
});
|
|
1817
1805
|
var prePaidPackageAssignmentSchema = z4.object({
|
|
1818
1806
|
id: z4.number(),
|
|
1819
1807
|
flight_log_id: z4.number().nullable().optional(),
|
|
@@ -1884,6 +1872,49 @@ var expenseItemSchema = z4.object({
|
|
|
1884
1872
|
// a live ExpenseItemResource payload.
|
|
1885
1873
|
is_snapshot: z4.boolean().optional()
|
|
1886
1874
|
});
|
|
1875
|
+
var prePaidPackageSchema = z4.object({
|
|
1876
|
+
type: z4.literal("prePaidPackage"),
|
|
1877
|
+
id: z4.number(),
|
|
1878
|
+
membership_id: z4.number(),
|
|
1879
|
+
membership: membershipIdentitySchema.optional(),
|
|
1880
|
+
invoice_id: z4.number().nullable(),
|
|
1881
|
+
company_id: z4.number(),
|
|
1882
|
+
billable: z4.boolean(),
|
|
1883
|
+
billing_profile_id: z4.number().nullable(),
|
|
1884
|
+
billingProfile: billingProfileSchema.optional(),
|
|
1885
|
+
allowed_billing_profile_ids: z4.array(z4.number()).optional(),
|
|
1886
|
+
allowedBillingProfiles: z4.array(billingProfileSchema).optional(),
|
|
1887
|
+
covers_school_flights: z4.boolean(),
|
|
1888
|
+
allowed_course_enrollment_ids: z4.array(z4.number()).optional(),
|
|
1889
|
+
allowedCourseEnrollments: z4.array(
|
|
1890
|
+
z4.object({
|
|
1891
|
+
id: z4.number(),
|
|
1892
|
+
course_id: z4.number(),
|
|
1893
|
+
course_name: z4.string().nullable().optional()
|
|
1894
|
+
})
|
|
1895
|
+
).optional(),
|
|
1896
|
+
flightLogs: z4.array(flightLogSchema).optional(),
|
|
1897
|
+
expenseItems: z4.array(expenseItemSchema).optional(),
|
|
1898
|
+
assignedExpenseItems: z4.array(expenseItemSchema).optional(),
|
|
1899
|
+
prePaidPackageAssignments: z4.array(prePaidPackageAssignmentSchema).optional(),
|
|
1900
|
+
remarks: z4.string().nullable(),
|
|
1901
|
+
// Two-decimal amount, serialised as a string ("120.00").
|
|
1902
|
+
total: z4.union([z4.string(), z4.number()]),
|
|
1903
|
+
remaining_gross_value: zMoneyObject,
|
|
1904
|
+
initial_gross_value: zMoneyObject,
|
|
1905
|
+
approved_applications: z4.array(z4.string()),
|
|
1906
|
+
usage: z4.number(),
|
|
1907
|
+
valid_from: z4.string().nullable(),
|
|
1908
|
+
expires_at: z4.string().nullable(),
|
|
1909
|
+
created_at: z4.string(),
|
|
1910
|
+
refunded_at: z4.string().nullable(),
|
|
1911
|
+
refunded_gross_value: zMoneyObject.nullable(),
|
|
1912
|
+
refund_gross_total: zMoneyObject.nullable(),
|
|
1913
|
+
refund_reason: z4.string().nullable().optional(),
|
|
1914
|
+
refund_reference: z4.string().nullable().optional(),
|
|
1915
|
+
refundedBy: z4.object({ id: z4.number(), name: z4.string() }).nullable().optional(),
|
|
1916
|
+
can: z4.record(z4.string(), z4.boolean().nullable()).optional()
|
|
1917
|
+
});
|
|
1887
1918
|
var waypointSchema = z4.object({
|
|
1888
1919
|
type: z4.literal("waypoint"),
|
|
1889
1920
|
id: z4.number(),
|
|
@@ -3195,7 +3226,9 @@ var conversationRecipientSchema = z14.object({
|
|
|
3195
3226
|
});
|
|
3196
3227
|
var conversationUnreadSummarySchema = z14.object({
|
|
3197
3228
|
company_id: z14.number(),
|
|
3198
|
-
unread_conversations: z14.number()
|
|
3229
|
+
unread_conversations: z14.number(),
|
|
3230
|
+
/** Whether the viewer may start a conversation at this company. */
|
|
3231
|
+
can_create: z14.boolean().optional()
|
|
3199
3232
|
});
|
|
3200
3233
|
var conversationMessageSentEventSchema = z14.object({
|
|
3201
3234
|
company_id: z14.number(),
|
|
@@ -3330,9 +3363,9 @@ export {
|
|
|
3330
3363
|
airplaneIssueStatusEnum,
|
|
3331
3364
|
airplaneIssueSchema,
|
|
3332
3365
|
specialFlightSchema,
|
|
3333
|
-
prePaidPackageSchema,
|
|
3334
3366
|
prePaidPackageAssignmentSchema,
|
|
3335
3367
|
expenseItemSchema,
|
|
3368
|
+
prePaidPackageSchema,
|
|
3336
3369
|
waypointSchema,
|
|
3337
3370
|
approachTypeSchema,
|
|
3338
3371
|
FaqStatus,
|