@updraft-solutions/mcrit-sdk 0.14.14 → 0.14.15
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-6QUSSX7K.js → chunk-CKSRCSJF.js} +7 -0
- package/dist/{chunk-CPCRSUAV.cjs → chunk-ZZ5K2JAN.cjs} +7 -0
- package/dist/{fbo-W-37-8KP.d.cts → fbo-8VPwfme5.d.cts} +17863 -17854
- package/dist/{fbo-W-37-8KP.d.ts → fbo-8VPwfme5.d.ts} +17863 -17854
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -13
- package/dist/schemas/index.cjs +2 -2
- package/dist/schemas/index.d.cts +135 -135
- package/dist/schemas/index.d.ts +135 -135
- package/dist/schemas/index.js +1 -1
- package/dist/types/index.d.cts +8 -1
- package/dist/types/index.d.ts +8 -1
- package/package.json +1 -1
- package/src/schemas/models.ts +7 -0
- package/src/types/roles.ts +7 -0
package/dist/schemas/index.js
CHANGED
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, b$ as feeSchema, b_ as feeCategoryOptionsSchema, c0 as flightLogSchema, c8 as invoiceSchema, ca as landingSchema, c9 as landingFeeSchema, cc as maintenanceEventSchema, cb as maintenanceEventEstimationSchema, cd as maintenanceStatusSchema, ce as mediaCollection, ch as membershipSchema, ci as membershipSignupSchema, ck as postSchema, cl as postSubjectSchema, cn as prePaidPackageSchema, co as priceSchema, cp as qualificationSchema, cq as recurringFlightSchema, cr as roleSchema, cs as runwaySchema, ct as scheduledFlightSchema, cu as settingSchema, cv as specialFlightSchema, cC as tagSchema, cD as ticketSchema, cN as userSchema, cL as userAircraftRatingSchema, cM as userQualificationSchema, cO as waypointSchema, aI as airplaneIssueSchema, aK as airplaneIssueStatusEnum, B as BaseModel$1, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, cf as mediaSchema, n as FormSubmission, bh as fboAcceptanceAxisSchema, bi as fboAcceptanceStatusSchema, bl as fboActivitySchema, bj as fboActivityCauserSchema, bk as fboActivityChangesSchema, bq as fboCompanySchema, bn as fboCompanyGrantSchema, bm as fboCompanyGrantInputSchema, bo as fboCompanyMemberSchema, bp as fboCompanyProfileSchema, bt as fboDecisionSchema, br as fboDecisionAxisSchema, bs as fboDecisionInputSchema, bv as fboDutySchema, bu as fboDutyAffectedSchema, bw as fboDutySeriesResponseSchema, bz as fboFlightSchema, by as fboFlightDocumentSchema, bA as fboFlightStatusSchema, bB as fboFlightTypeSchema, bD as fboGrantAbilitySchema, bC as fboGrantAbilityOptionSchema, bE as fboGrantCompanyRefSchema, bF as fboGroundServicesSchema, bG as fboLandingsSummarySchema, bH as fboMaterialiseResultSchema, bI as fboMetaSchema, bJ as fboNextDutySchema, bK as fboOccupationSchema, bL as fboOperationsSchema, bM as fboPersonSchema, bN as fboPobSchema, bO as fboRecurrenceSchema, bP as fboRecurrenceTypeSchema, bQ as fboRecurringFlightSchema, bR as fboRoleSchema, bT as fboStatisticsSchema, bU as fboSystemRoleSchema, bV as fboTrafficRowSchema, bX as fboTrafficSourceSchema, bY as fboVisibilitySchema, bZ as fboWeeklyLandingSchema } from '../fbo-
|
|
2
|
+
import { aE as activitySchema, aF as addressSchema, aG as aircraftPositionSchema, aH as aircraftRatingSchema, aM as airplaneSchema, aL as airplanePermissionSchema, aN as airplaneShareInviteSchema, aO as airportSchema, aP as alertSchema, aQ as allowedDocumentTypeSchema, aR as approachTypeSchema, aS as availSchema, aT as baseMembershipSchema, aV as bookingSchema, aX as commentSchema, aZ as companySchema, b3 as courseSchema, b1 as courseEnrollmentSchema, b2 as courseFeeSchema, aJ as airplaneIssueSeverityEnum, b9 as documentSchema, b5 as documentComplianceStatus, b6 as documentRequirement, b7 as documentRequirementGroup, b8 as documentRequirementGroupAssignment, ba as documentShareSchema, bb as documentType, bd as eventSchema, bf as expenseSchema, be as expenseItemSchema, bg as extendedAirplaneSchema, b$ as feeSchema, b_ as feeCategoryOptionsSchema, c0 as flightLogSchema, c8 as invoiceSchema, ca as landingSchema, c9 as landingFeeSchema, cc as maintenanceEventSchema, cb as maintenanceEventEstimationSchema, cd as maintenanceStatusSchema, ce as mediaCollection, ch as membershipSchema, ci as membershipSignupSchema, ck as postSchema, cl as postSubjectSchema, cn as prePaidPackageSchema, co as priceSchema, cp as qualificationSchema, cq as recurringFlightSchema, cr as roleSchema, cs as runwaySchema, ct as scheduledFlightSchema, cu as settingSchema, cv as specialFlightSchema, cC as tagSchema, cD as ticketSchema, cN as userSchema, cL as userAircraftRatingSchema, cM as userQualificationSchema, cO as waypointSchema, aI as airplaneIssueSchema, aK as airplaneIssueStatusEnum, B as BaseModel$1, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, cf as mediaSchema, n as FormSubmission, bh as fboAcceptanceAxisSchema, bi as fboAcceptanceStatusSchema, bl as fboActivitySchema, bj as fboActivityCauserSchema, bk as fboActivityChangesSchema, bq as fboCompanySchema, bn as fboCompanyGrantSchema, bm as fboCompanyGrantInputSchema, bo as fboCompanyMemberSchema, bp as fboCompanyProfileSchema, bt as fboDecisionSchema, br as fboDecisionAxisSchema, bs as fboDecisionInputSchema, bv as fboDutySchema, bu as fboDutyAffectedSchema, bw as fboDutySeriesResponseSchema, bz as fboFlightSchema, by as fboFlightDocumentSchema, bA as fboFlightStatusSchema, bB as fboFlightTypeSchema, bD as fboGrantAbilitySchema, bC as fboGrantAbilityOptionSchema, bE as fboGrantCompanyRefSchema, bF as fboGroundServicesSchema, bG as fboLandingsSummarySchema, bH as fboMaterialiseResultSchema, bI as fboMetaSchema, bJ as fboNextDutySchema, bK as fboOccupationSchema, bL as fboOperationsSchema, bM as fboPersonSchema, bN as fboPobSchema, bO as fboRecurrenceSchema, bP as fboRecurrenceTypeSchema, bQ as fboRecurringFlightSchema, bR as fboRoleSchema, bT as fboStatisticsSchema, bU as fboSystemRoleSchema, bV as fboTrafficRowSchema, bX as fboTrafficSourceSchema, bY as fboVisibilitySchema, bZ as fboWeeklyLandingSchema } from '../fbo-8VPwfme5.cjs';
|
|
3
3
|
|
|
4
4
|
type BaseModel = z.infer<typeof BaseModel$1>;
|
|
5
5
|
type User = z.infer<typeof userSchema>;
|
|
@@ -331,6 +331,13 @@ interface RoleListItem {
|
|
|
331
331
|
has_duties: boolean;
|
|
332
332
|
company_id: number | null;
|
|
333
333
|
permissions_count: number;
|
|
334
|
+
/**
|
|
335
|
+
* Which domain the role belongs to. FBO roles come only from the FBO role
|
|
336
|
+
* listing, non-FBO (system + company custom) roles only from the company
|
|
337
|
+
* one — the two never overlap. Optional: a payload from an API that does
|
|
338
|
+
* not tag roles yet is still a valid row.
|
|
339
|
+
*/
|
|
340
|
+
is_fbo?: boolean;
|
|
334
341
|
}
|
|
335
342
|
interface PermissionItem {
|
|
336
343
|
id: number;
|
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, b$ as feeSchema, b_ as feeCategoryOptionsSchema, c0 as flightLogSchema, c8 as invoiceSchema, ca as landingSchema, c9 as landingFeeSchema, cc as maintenanceEventSchema, cb as maintenanceEventEstimationSchema, cd as maintenanceStatusSchema, ce as mediaCollection, ch as membershipSchema, ci as membershipSignupSchema, ck as postSchema, cl as postSubjectSchema, cn as prePaidPackageSchema, co as priceSchema, cp as qualificationSchema, cq as recurringFlightSchema, cr as roleSchema, cs as runwaySchema, ct as scheduledFlightSchema, cu as settingSchema, cv as specialFlightSchema, cC as tagSchema, cD as ticketSchema, cN as userSchema, cL as userAircraftRatingSchema, cM as userQualificationSchema, cO as waypointSchema, aI as airplaneIssueSchema, aK as airplaneIssueStatusEnum, B as BaseModel$1, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, cf as mediaSchema, n as FormSubmission, bh as fboAcceptanceAxisSchema, bi as fboAcceptanceStatusSchema, bl as fboActivitySchema, bj as fboActivityCauserSchema, bk as fboActivityChangesSchema, bq as fboCompanySchema, bn as fboCompanyGrantSchema, bm as fboCompanyGrantInputSchema, bo as fboCompanyMemberSchema, bp as fboCompanyProfileSchema, bt as fboDecisionSchema, br as fboDecisionAxisSchema, bs as fboDecisionInputSchema, bv as fboDutySchema, bu as fboDutyAffectedSchema, bw as fboDutySeriesResponseSchema, bz as fboFlightSchema, by as fboFlightDocumentSchema, bA as fboFlightStatusSchema, bB as fboFlightTypeSchema, bD as fboGrantAbilitySchema, bC as fboGrantAbilityOptionSchema, bE as fboGrantCompanyRefSchema, bF as fboGroundServicesSchema, bG as fboLandingsSummarySchema, bH as fboMaterialiseResultSchema, bI as fboMetaSchema, bJ as fboNextDutySchema, bK as fboOccupationSchema, bL as fboOperationsSchema, bM as fboPersonSchema, bN as fboPobSchema, bO as fboRecurrenceSchema, bP as fboRecurrenceTypeSchema, bQ as fboRecurringFlightSchema, bR as fboRoleSchema, bT as fboStatisticsSchema, bU as fboSystemRoleSchema, bV as fboTrafficRowSchema, bX as fboTrafficSourceSchema, bY as fboVisibilitySchema, bZ as fboWeeklyLandingSchema } from '../fbo-
|
|
2
|
+
import { aE as activitySchema, aF as addressSchema, aG as aircraftPositionSchema, aH as aircraftRatingSchema, aM as airplaneSchema, aL as airplanePermissionSchema, aN as airplaneShareInviteSchema, aO as airportSchema, aP as alertSchema, aQ as allowedDocumentTypeSchema, aR as approachTypeSchema, aS as availSchema, aT as baseMembershipSchema, aV as bookingSchema, aX as commentSchema, aZ as companySchema, b3 as courseSchema, b1 as courseEnrollmentSchema, b2 as courseFeeSchema, aJ as airplaneIssueSeverityEnum, b9 as documentSchema, b5 as documentComplianceStatus, b6 as documentRequirement, b7 as documentRequirementGroup, b8 as documentRequirementGroupAssignment, ba as documentShareSchema, bb as documentType, bd as eventSchema, bf as expenseSchema, be as expenseItemSchema, bg as extendedAirplaneSchema, b$ as feeSchema, b_ as feeCategoryOptionsSchema, c0 as flightLogSchema, c8 as invoiceSchema, ca as landingSchema, c9 as landingFeeSchema, cc as maintenanceEventSchema, cb as maintenanceEventEstimationSchema, cd as maintenanceStatusSchema, ce as mediaCollection, ch as membershipSchema, ci as membershipSignupSchema, ck as postSchema, cl as postSubjectSchema, cn as prePaidPackageSchema, co as priceSchema, cp as qualificationSchema, cq as recurringFlightSchema, cr as roleSchema, cs as runwaySchema, ct as scheduledFlightSchema, cu as settingSchema, cv as specialFlightSchema, cC as tagSchema, cD as ticketSchema, cN as userSchema, cL as userAircraftRatingSchema, cM as userQualificationSchema, cO as waypointSchema, aI as airplaneIssueSchema, aK as airplaneIssueStatusEnum, B as BaseModel$1, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, cf as mediaSchema, n as FormSubmission, bh as fboAcceptanceAxisSchema, bi as fboAcceptanceStatusSchema, bl as fboActivitySchema, bj as fboActivityCauserSchema, bk as fboActivityChangesSchema, bq as fboCompanySchema, bn as fboCompanyGrantSchema, bm as fboCompanyGrantInputSchema, bo as fboCompanyMemberSchema, bp as fboCompanyProfileSchema, bt as fboDecisionSchema, br as fboDecisionAxisSchema, bs as fboDecisionInputSchema, bv as fboDutySchema, bu as fboDutyAffectedSchema, bw as fboDutySeriesResponseSchema, bz as fboFlightSchema, by as fboFlightDocumentSchema, bA as fboFlightStatusSchema, bB as fboFlightTypeSchema, bD as fboGrantAbilitySchema, bC as fboGrantAbilityOptionSchema, bE as fboGrantCompanyRefSchema, bF as fboGroundServicesSchema, bG as fboLandingsSummarySchema, bH as fboMaterialiseResultSchema, bI as fboMetaSchema, bJ as fboNextDutySchema, bK as fboOccupationSchema, bL as fboOperationsSchema, bM as fboPersonSchema, bN as fboPobSchema, bO as fboRecurrenceSchema, bP as fboRecurrenceTypeSchema, bQ as fboRecurringFlightSchema, bR as fboRoleSchema, bT as fboStatisticsSchema, bU as fboSystemRoleSchema, bV as fboTrafficRowSchema, bX as fboTrafficSourceSchema, bY as fboVisibilitySchema, bZ as fboWeeklyLandingSchema } from '../fbo-8VPwfme5.js';
|
|
3
3
|
|
|
4
4
|
type BaseModel = z.infer<typeof BaseModel$1>;
|
|
5
5
|
type User = z.infer<typeof userSchema>;
|
|
@@ -331,6 +331,13 @@ interface RoleListItem {
|
|
|
331
331
|
has_duties: boolean;
|
|
332
332
|
company_id: number | null;
|
|
333
333
|
permissions_count: number;
|
|
334
|
+
/**
|
|
335
|
+
* Which domain the role belongs to. FBO roles come only from the FBO role
|
|
336
|
+
* listing, non-FBO (system + company custom) roles only from the company
|
|
337
|
+
* one — the two never overlap. Optional: a payload from an API that does
|
|
338
|
+
* not tag roles yet is still a valid row.
|
|
339
|
+
*/
|
|
340
|
+
is_fbo?: boolean;
|
|
334
341
|
}
|
|
335
342
|
interface PermissionItem {
|
|
336
343
|
id: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@updraft-solutions/mcrit-sdk",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.15",
|
|
4
4
|
"description": "Shared TypeScript types, Zod schemas, and pure helpers for the MCRIT aviation fleet management platform",
|
|
5
5
|
"homepage": "https://github.com/updraft-solutions/mcrit-sdk#readme",
|
|
6
6
|
"bugs": {
|
package/src/schemas/models.ts
CHANGED
|
@@ -1173,6 +1173,13 @@ export const roleSchema = z.object({
|
|
|
1173
1173
|
name: z.string(),
|
|
1174
1174
|
description: z.string().nullable().optional(),
|
|
1175
1175
|
permissions: z.array(z.string()).optional(),
|
|
1176
|
+
/**
|
|
1177
|
+
* Which domain the role belongs to. FBO roles are assignable only on the
|
|
1178
|
+
* FBO surfaces and are kept out of the flight-school role lists (and vice
|
|
1179
|
+
* versa) — the two role listings never overlap. Optional: a payload from
|
|
1180
|
+
* an API that does not tag roles yet is still a valid role.
|
|
1181
|
+
*/
|
|
1182
|
+
is_fbo: z.boolean().optional(),
|
|
1176
1183
|
created_at: z.string(),
|
|
1177
1184
|
updated_at: z.string(),
|
|
1178
1185
|
});
|
package/src/types/roles.ts
CHANGED
|
@@ -8,6 +8,13 @@ export interface RoleListItem {
|
|
|
8
8
|
has_duties: boolean;
|
|
9
9
|
company_id: number | null;
|
|
10
10
|
permissions_count: number;
|
|
11
|
+
/**
|
|
12
|
+
* Which domain the role belongs to. FBO roles come only from the FBO role
|
|
13
|
+
* listing, non-FBO (system + company custom) roles only from the company
|
|
14
|
+
* one — the two never overlap. Optional: a payload from an API that does
|
|
15
|
+
* not tag roles yet is still a valid row.
|
|
16
|
+
*/
|
|
17
|
+
is_fbo?: boolean;
|
|
11
18
|
}
|
|
12
19
|
|
|
13
20
|
export interface PermissionItem {
|