@updraft-solutions/mcrit-sdk 0.14.6 → 0.14.11
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-4S6QG75Y.cjs → chunk-FNIZXT5C.cjs} +97 -1
- package/dist/{chunk-RC7DU3ED.js → chunk-RUNBP37X.js} +97 -1
- package/dist/{fbo-BNakExWI.d.cts → fbo-DlZNor1r.d.cts} +502 -1
- package/dist/{fbo-BNakExWI.d.ts → fbo-DlZNor1r.d.ts} +502 -1
- package/dist/index.cjs +28 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +37 -15
- package/dist/{operating-hours-Q2bwqbwy.d.cts → operating-hours-CMhR5S8y.d.cts} +1 -1
- package/dist/{operating-hours-RI1V-uup.d.ts → operating-hours-CgEKmXSK.d.ts} +1 -1
- package/dist/schemas/index.cjs +24 -2
- package/dist/schemas/index.d.cts +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +23 -1
- package/dist/types/index.d.cts +13 -3
- package/dist/types/index.d.ts +13 -3
- package/package.json +1 -1
- package/src/schemas/fbo.spec.ts +167 -0
- package/src/schemas/fbo.ts +126 -0
- package/src/types/fbo.ts +10 -0
|
@@ -108536,6 +108536,24 @@ declare const fboGroundServicesSchema: z.ZodObject<{
|
|
|
108536
108536
|
}>;
|
|
108537
108537
|
declare const fboFlightTypeSchema: z.ZodEnum<["scheduledFlight", "ppr"]>;
|
|
108538
108538
|
declare const fboFlightStatusSchema: z.ZodEnum<["active", "pending", "rejected", "cancelled"]>;
|
|
108539
|
+
/**
|
|
108540
|
+
* Dropzone window and apron note — `OperationsData`'s shape, a schemaless
|
|
108541
|
+
* attribute on the flight. Own/details tiers only (`TrafficMovementResource::DETAILS_KEYS`);
|
|
108542
|
+
* `limited` traffic rows never carry it. `dz_start`/`dz_end` are ISO UTC.
|
|
108543
|
+
*/
|
|
108544
|
+
declare const fboOperationsSchema: z.ZodObject<{
|
|
108545
|
+
dz_start: z.ZodNullable<z.ZodString>;
|
|
108546
|
+
dz_end: z.ZodNullable<z.ZodString>;
|
|
108547
|
+
apron: z.ZodNullable<z.ZodString>;
|
|
108548
|
+
}, "strip", z.ZodTypeAny, {
|
|
108549
|
+
dz_start: string | null;
|
|
108550
|
+
dz_end: string | null;
|
|
108551
|
+
apron: string | null;
|
|
108552
|
+
}, {
|
|
108553
|
+
dz_start: string | null;
|
|
108554
|
+
dz_end: string | null;
|
|
108555
|
+
apron: string | null;
|
|
108556
|
+
}>;
|
|
108539
108557
|
/** Per-row action gates on a flight. Optional for forward-compat; every current FBO row sends it. */
|
|
108540
108558
|
declare const fboFlightCanSchema: z.ZodObject<{
|
|
108541
108559
|
update: z.ZodBoolean;
|
|
@@ -108777,6 +108795,31 @@ declare const fboFlightSchema: z.ZodObject<{
|
|
|
108777
108795
|
decided_by_id: number | null;
|
|
108778
108796
|
};
|
|
108779
108797
|
}>;
|
|
108798
|
+
/** Own/details tier. `null` when neither dropzone window nor apron is set. */
|
|
108799
|
+
operations: z.ZodNullable<z.ZodObject<{
|
|
108800
|
+
dz_start: z.ZodNullable<z.ZodString>;
|
|
108801
|
+
dz_end: z.ZodNullable<z.ZodString>;
|
|
108802
|
+
apron: z.ZodNullable<z.ZodString>;
|
|
108803
|
+
}, "strip", z.ZodTypeAny, {
|
|
108804
|
+
dz_start: string | null;
|
|
108805
|
+
dz_end: string | null;
|
|
108806
|
+
apron: string | null;
|
|
108807
|
+
}, {
|
|
108808
|
+
dz_start: string | null;
|
|
108809
|
+
dz_end: string | null;
|
|
108810
|
+
apron: string | null;
|
|
108811
|
+
}>>;
|
|
108812
|
+
/** Ties every leg of a multi-leg PPR (or a materialised recurring batch) together; `null` on a standalone flight. */
|
|
108813
|
+
batch_uuid: z.ZodNullable<z.ZodString>;
|
|
108814
|
+
/** Count of live rows sharing `batch_uuid`; `1` when `batch_uuid` is null. */
|
|
108815
|
+
legs_count: z.ZodNumber;
|
|
108816
|
+
/**
|
|
108817
|
+
* Root tier — present only when the requesting user holds `fbo.flight.decide`
|
|
108818
|
+
* for the row's company; absent (key omitted) for everyone else, including
|
|
108819
|
+
* traffic-board `details`/`limited` viewers. Writable only by deciders.
|
|
108820
|
+
*/
|
|
108821
|
+
fbo_notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108822
|
+
assigned_user_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
108780
108823
|
/**
|
|
108781
108824
|
* Where the row comes from: the FBO's own filing (`fbo`, default) or a
|
|
108782
108825
|
* flight-school booking of a company assigned to the FBO (`booking`) —
|
|
@@ -108827,6 +108870,7 @@ declare const fboFlightSchema: z.ZodObject<{
|
|
|
108827
108870
|
} | null;
|
|
108828
108871
|
ifr: boolean;
|
|
108829
108872
|
etaZ: string | null;
|
|
108873
|
+
batch_uuid: string | null;
|
|
108830
108874
|
ac_call: string | null;
|
|
108831
108875
|
ac_type: string | null;
|
|
108832
108876
|
ac_reg: string | null;
|
|
@@ -108867,6 +108911,12 @@ declare const fboFlightSchema: z.ZodObject<{
|
|
|
108867
108911
|
decided_by_id: number | null;
|
|
108868
108912
|
};
|
|
108869
108913
|
};
|
|
108914
|
+
operations: {
|
|
108915
|
+
dz_start: string | null;
|
|
108916
|
+
dz_end: string | null;
|
|
108917
|
+
apron: string | null;
|
|
108918
|
+
} | null;
|
|
108919
|
+
legs_count: number;
|
|
108870
108920
|
company?: {
|
|
108871
108921
|
name: string | null;
|
|
108872
108922
|
id: number | null;
|
|
@@ -108899,6 +108949,8 @@ declare const fboFlightSchema: z.ZodObject<{
|
|
|
108899
108949
|
country?: string | undefined;
|
|
108900
108950
|
} | undefined;
|
|
108901
108951
|
source?: "booking" | "fbo" | undefined;
|
|
108952
|
+
fbo_notes?: string | null | undefined;
|
|
108953
|
+
assigned_user_ids?: number[] | null | undefined;
|
|
108902
108954
|
}, {
|
|
108903
108955
|
type: "scheduledFlight" | "ppr";
|
|
108904
108956
|
id: number;
|
|
@@ -108918,6 +108970,7 @@ declare const fboFlightSchema: z.ZodObject<{
|
|
|
108918
108970
|
} | null;
|
|
108919
108971
|
ifr: boolean;
|
|
108920
108972
|
etaZ: string | null;
|
|
108973
|
+
batch_uuid: string | null;
|
|
108921
108974
|
ac_call: string | null;
|
|
108922
108975
|
ac_type: string | null;
|
|
108923
108976
|
ac_reg: string | null;
|
|
@@ -108958,6 +109011,12 @@ declare const fboFlightSchema: z.ZodObject<{
|
|
|
108958
109011
|
decided_by_id: number | null;
|
|
108959
109012
|
};
|
|
108960
109013
|
};
|
|
109014
|
+
operations: {
|
|
109015
|
+
dz_start: string | null;
|
|
109016
|
+
dz_end: string | null;
|
|
109017
|
+
apron: string | null;
|
|
109018
|
+
} | null;
|
|
109019
|
+
legs_count: number;
|
|
108961
109020
|
company?: {
|
|
108962
109021
|
name: string | null;
|
|
108963
109022
|
id: number | null;
|
|
@@ -108990,6 +109049,8 @@ declare const fboFlightSchema: z.ZodObject<{
|
|
|
108990
109049
|
country?: string | undefined;
|
|
108991
109050
|
} | undefined;
|
|
108992
109051
|
source?: "booking" | "fbo" | undefined;
|
|
109052
|
+
fbo_notes?: string | null | undefined;
|
|
109053
|
+
assigned_user_ids?: number[] | null | undefined;
|
|
108993
109054
|
}>;
|
|
108994
109055
|
declare const fboOccupationSchema: z.ZodObject<{
|
|
108995
109056
|
id: z.ZodNumber;
|
|
@@ -109743,6 +109804,23 @@ declare const fboTrafficRowSchema: z.ZodObject<{
|
|
|
109743
109804
|
decided_by_id: number | null;
|
|
109744
109805
|
};
|
|
109745
109806
|
}>>;
|
|
109807
|
+
operations: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
109808
|
+
dz_start: z.ZodNullable<z.ZodString>;
|
|
109809
|
+
dz_end: z.ZodNullable<z.ZodString>;
|
|
109810
|
+
apron: z.ZodNullable<z.ZodString>;
|
|
109811
|
+
}, "strip", z.ZodTypeAny, {
|
|
109812
|
+
dz_start: string | null;
|
|
109813
|
+
dz_end: string | null;
|
|
109814
|
+
apron: string | null;
|
|
109815
|
+
}, {
|
|
109816
|
+
dz_start: string | null;
|
|
109817
|
+
dz_end: string | null;
|
|
109818
|
+
apron: string | null;
|
|
109819
|
+
}>>>;
|
|
109820
|
+
batch_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109821
|
+
legs_count: z.ZodOptional<z.ZodNumber>;
|
|
109822
|
+
fbo_notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
109823
|
+
assigned_user_ids: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>>;
|
|
109746
109824
|
company: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
109747
109825
|
id: z.ZodNullable<z.ZodNumber>;
|
|
109748
109826
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -109828,6 +109906,7 @@ declare const fboTrafficRowSchema: z.ZodObject<{
|
|
|
109828
109906
|
} | null | undefined;
|
|
109829
109907
|
ifr?: boolean | undefined;
|
|
109830
109908
|
etaZ?: string | null | undefined;
|
|
109909
|
+
batch_uuid?: string | null | undefined;
|
|
109831
109910
|
ac_call?: string | null | undefined;
|
|
109832
109911
|
ac_type?: string | null | undefined;
|
|
109833
109912
|
ac_reg?: string | null | undefined;
|
|
@@ -109867,6 +109946,14 @@ declare const fboTrafficRowSchema: z.ZodObject<{
|
|
|
109867
109946
|
decided_by_id: number | null;
|
|
109868
109947
|
};
|
|
109869
109948
|
} | undefined;
|
|
109949
|
+
operations?: {
|
|
109950
|
+
dz_start: string | null;
|
|
109951
|
+
dz_end: string | null;
|
|
109952
|
+
apron: string | null;
|
|
109953
|
+
} | null | undefined;
|
|
109954
|
+
legs_count?: number | undefined;
|
|
109955
|
+
fbo_notes?: string | null | undefined;
|
|
109956
|
+
assigned_user_ids?: number[] | null | undefined;
|
|
109870
109957
|
}, {
|
|
109871
109958
|
id: number;
|
|
109872
109959
|
source: "booking" | "movement";
|
|
@@ -109920,6 +110007,7 @@ declare const fboTrafficRowSchema: z.ZodObject<{
|
|
|
109920
110007
|
} | null | undefined;
|
|
109921
110008
|
ifr?: boolean | undefined;
|
|
109922
110009
|
etaZ?: string | null | undefined;
|
|
110010
|
+
batch_uuid?: string | null | undefined;
|
|
109923
110011
|
ac_call?: string | null | undefined;
|
|
109924
110012
|
ac_type?: string | null | undefined;
|
|
109925
110013
|
ac_reg?: string | null | undefined;
|
|
@@ -109959,6 +110047,14 @@ declare const fboTrafficRowSchema: z.ZodObject<{
|
|
|
109959
110047
|
decided_by_id: number | null;
|
|
109960
110048
|
};
|
|
109961
110049
|
} | undefined;
|
|
110050
|
+
operations?: {
|
|
110051
|
+
dz_start: string | null;
|
|
110052
|
+
dz_end: string | null;
|
|
110053
|
+
apron: string | null;
|
|
110054
|
+
} | null | undefined;
|
|
110055
|
+
legs_count?: number | undefined;
|
|
110056
|
+
fbo_notes?: string | null | undefined;
|
|
110057
|
+
assigned_user_ids?: number[] | null | undefined;
|
|
109962
110058
|
}>;
|
|
109963
110059
|
/** System roles served by `GET companies/{id}/fbo/meta` for role-assignment UI. */
|
|
109964
110060
|
declare const FBO_SYSTEM_ROLES: readonly ["fboOperator", "fboFlightManager", "fboDutyPlanner", "fboDutyViewer", "fboTrafficViewer", "fboTrafficObserver", "fboSelfApprover"];
|
|
@@ -110004,5 +110100,410 @@ declare const fboCompanyMemberSchema: z.ZodObject<{
|
|
|
110004
110100
|
delete: boolean;
|
|
110005
110101
|
} | undefined;
|
|
110006
110102
|
}>;
|
|
110103
|
+
/** The caller's next duty (from now) in the subtree — `GET fbo/statistics`'s `next_duty`. */
|
|
110104
|
+
declare const fboNextDutySchema: z.ZodObject<{
|
|
110105
|
+
start: z.ZodString;
|
|
110106
|
+
end: z.ZodString;
|
|
110107
|
+
occupation: z.ZodNullable<z.ZodString>;
|
|
110108
|
+
}, "strip", z.ZodTypeAny, {
|
|
110109
|
+
start: string;
|
|
110110
|
+
end: string;
|
|
110111
|
+
occupation: string | null;
|
|
110112
|
+
}, {
|
|
110113
|
+
start: string;
|
|
110114
|
+
end: string;
|
|
110115
|
+
occupation: string | null;
|
|
110116
|
+
}>;
|
|
110117
|
+
/** One day's landing count in `GET fbo/statistics`'s `weekly` (ISO week of the queried date, 7 entries). */
|
|
110118
|
+
declare const fboWeeklyLandingSchema: z.ZodObject<{
|
|
110119
|
+
date: z.ZodString;
|
|
110120
|
+
count: z.ZodNumber;
|
|
110121
|
+
}, "strip", z.ZodTypeAny, {
|
|
110122
|
+
date: string;
|
|
110123
|
+
count: number;
|
|
110124
|
+
}, {
|
|
110125
|
+
date: string;
|
|
110126
|
+
count: number;
|
|
110127
|
+
}>;
|
|
110128
|
+
/** `GET fbo/statistics`'s `landings` block — home-side landings in the root's timezone. */
|
|
110129
|
+
declare const fboLandingsSummarySchema: z.ZodObject<{
|
|
110130
|
+
today: z.ZodNumber;
|
|
110131
|
+
this_year: z.ZodNumber;
|
|
110132
|
+
last_year: z.ZodNumber;
|
|
110133
|
+
}, "strip", z.ZodTypeAny, {
|
|
110134
|
+
today: number;
|
|
110135
|
+
this_year: number;
|
|
110136
|
+
last_year: number;
|
|
110137
|
+
}, {
|
|
110138
|
+
today: number;
|
|
110139
|
+
this_year: number;
|
|
110140
|
+
last_year: number;
|
|
110141
|
+
}>;
|
|
110142
|
+
/**
|
|
110143
|
+
* `GET companies/{id}/fbo/statistics?date=`. `next_duty` is `null` when the
|
|
110144
|
+
* caller has no upcoming duty in the subtree.
|
|
110145
|
+
*/
|
|
110146
|
+
declare const fboStatisticsSchema: z.ZodObject<{
|
|
110147
|
+
landings: z.ZodObject<{
|
|
110148
|
+
today: z.ZodNumber;
|
|
110149
|
+
this_year: z.ZodNumber;
|
|
110150
|
+
last_year: z.ZodNumber;
|
|
110151
|
+
}, "strip", z.ZodTypeAny, {
|
|
110152
|
+
today: number;
|
|
110153
|
+
this_year: number;
|
|
110154
|
+
last_year: number;
|
|
110155
|
+
}, {
|
|
110156
|
+
today: number;
|
|
110157
|
+
this_year: number;
|
|
110158
|
+
last_year: number;
|
|
110159
|
+
}>;
|
|
110160
|
+
next_duty: z.ZodNullable<z.ZodObject<{
|
|
110161
|
+
start: z.ZodString;
|
|
110162
|
+
end: z.ZodString;
|
|
110163
|
+
occupation: z.ZodNullable<z.ZodString>;
|
|
110164
|
+
}, "strip", z.ZodTypeAny, {
|
|
110165
|
+
start: string;
|
|
110166
|
+
end: string;
|
|
110167
|
+
occupation: string | null;
|
|
110168
|
+
}, {
|
|
110169
|
+
start: string;
|
|
110170
|
+
end: string;
|
|
110171
|
+
occupation: string | null;
|
|
110172
|
+
}>>;
|
|
110173
|
+
weekly: z.ZodArray<z.ZodObject<{
|
|
110174
|
+
date: z.ZodString;
|
|
110175
|
+
count: z.ZodNumber;
|
|
110176
|
+
}, "strip", z.ZodTypeAny, {
|
|
110177
|
+
date: string;
|
|
110178
|
+
count: number;
|
|
110179
|
+
}, {
|
|
110180
|
+
date: string;
|
|
110181
|
+
count: number;
|
|
110182
|
+
}>, "many">;
|
|
110183
|
+
}, "strip", z.ZodTypeAny, {
|
|
110184
|
+
weekly: {
|
|
110185
|
+
date: string;
|
|
110186
|
+
count: number;
|
|
110187
|
+
}[];
|
|
110188
|
+
landings: {
|
|
110189
|
+
today: number;
|
|
110190
|
+
this_year: number;
|
|
110191
|
+
last_year: number;
|
|
110192
|
+
};
|
|
110193
|
+
next_duty: {
|
|
110194
|
+
start: string;
|
|
110195
|
+
end: string;
|
|
110196
|
+
occupation: string | null;
|
|
110197
|
+
} | null;
|
|
110198
|
+
}, {
|
|
110199
|
+
weekly: {
|
|
110200
|
+
date: string;
|
|
110201
|
+
count: number;
|
|
110202
|
+
}[];
|
|
110203
|
+
landings: {
|
|
110204
|
+
today: number;
|
|
110205
|
+
this_year: number;
|
|
110206
|
+
last_year: number;
|
|
110207
|
+
};
|
|
110208
|
+
next_duty: {
|
|
110209
|
+
start: string;
|
|
110210
|
+
end: string;
|
|
110211
|
+
occupation: string | null;
|
|
110212
|
+
} | null;
|
|
110213
|
+
}>;
|
|
110214
|
+
/** Identity tier only — `ActivityResource`'s `causer` block. */
|
|
110215
|
+
declare const fboActivityCauserSchema: z.ZodObject<{
|
|
110216
|
+
id: z.ZodNumber;
|
|
110217
|
+
name: z.ZodString;
|
|
110218
|
+
}, "strip", z.ZodTypeAny, {
|
|
110219
|
+
name: string;
|
|
110220
|
+
id: number;
|
|
110221
|
+
}, {
|
|
110222
|
+
name: string;
|
|
110223
|
+
id: number;
|
|
110224
|
+
}>;
|
|
110225
|
+
/** Logged attribute diff — only the keys `LogOptions` actually recorded (never `pobs`/`contact`/`fbo_notes`). */
|
|
110226
|
+
declare const fboActivityChangesSchema: z.ZodObject<{
|
|
110227
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
110228
|
+
old: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
110229
|
+
}, "strip", z.ZodTypeAny, {
|
|
110230
|
+
attributes: Record<string, unknown>;
|
|
110231
|
+
old: Record<string, unknown>;
|
|
110232
|
+
}, {
|
|
110233
|
+
attributes: Record<string, unknown>;
|
|
110234
|
+
old: Record<string, unknown>;
|
|
110235
|
+
}>;
|
|
110236
|
+
/**
|
|
110237
|
+
* One activity-log row over an FBO model (`ScheduledFlight`, `Duty`,
|
|
110238
|
+
* `Occupation`, `CompanyProfile`) — `GET fbo/flights/{id}?include=activities`
|
|
110239
|
+
* and `GET fbo/activities`. Distinct from the generic `activitySchema` in
|
|
110240
|
+
* `models.ts`: this shape carries `changes` (attributes/old) instead of
|
|
110241
|
+
* `properties`, and a trimmed `{id, name}` `causer` instead of a full user.
|
|
110242
|
+
*/
|
|
110243
|
+
declare const fboActivitySchema: z.ZodObject<{
|
|
110244
|
+
id: z.ZodNumber;
|
|
110245
|
+
description: z.ZodString;
|
|
110246
|
+
event: z.ZodNullable<z.ZodString>;
|
|
110247
|
+
causer: z.ZodNullable<z.ZodObject<{
|
|
110248
|
+
id: z.ZodNumber;
|
|
110249
|
+
name: z.ZodString;
|
|
110250
|
+
}, "strip", z.ZodTypeAny, {
|
|
110251
|
+
name: string;
|
|
110252
|
+
id: number;
|
|
110253
|
+
}, {
|
|
110254
|
+
name: string;
|
|
110255
|
+
id: number;
|
|
110256
|
+
}>>;
|
|
110257
|
+
subject_type: z.ZodString;
|
|
110258
|
+
subject_id: z.ZodNumber;
|
|
110259
|
+
changes: z.ZodObject<{
|
|
110260
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
110261
|
+
old: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
110262
|
+
}, "strip", z.ZodTypeAny, {
|
|
110263
|
+
attributes: Record<string, unknown>;
|
|
110264
|
+
old: Record<string, unknown>;
|
|
110265
|
+
}, {
|
|
110266
|
+
attributes: Record<string, unknown>;
|
|
110267
|
+
old: Record<string, unknown>;
|
|
110268
|
+
}>;
|
|
110269
|
+
created_at: z.ZodString;
|
|
110270
|
+
}, "strip", z.ZodTypeAny, {
|
|
110271
|
+
id: number;
|
|
110272
|
+
created_at: string;
|
|
110273
|
+
description: string;
|
|
110274
|
+
event: string | null;
|
|
110275
|
+
subject_type: string;
|
|
110276
|
+
subject_id: number;
|
|
110277
|
+
causer: {
|
|
110278
|
+
name: string;
|
|
110279
|
+
id: number;
|
|
110280
|
+
} | null;
|
|
110281
|
+
changes: {
|
|
110282
|
+
attributes: Record<string, unknown>;
|
|
110283
|
+
old: Record<string, unknown>;
|
|
110284
|
+
};
|
|
110285
|
+
}, {
|
|
110286
|
+
id: number;
|
|
110287
|
+
created_at: string;
|
|
110288
|
+
description: string;
|
|
110289
|
+
event: string | null;
|
|
110290
|
+
subject_type: string;
|
|
110291
|
+
subject_id: number;
|
|
110292
|
+
causer: {
|
|
110293
|
+
name: string;
|
|
110294
|
+
id: number;
|
|
110295
|
+
} | null;
|
|
110296
|
+
changes: {
|
|
110297
|
+
attributes: Record<string, unknown>;
|
|
110298
|
+
old: Record<string, unknown>;
|
|
110299
|
+
};
|
|
110300
|
+
}>;
|
|
110301
|
+
/** ISO weekday numbering (1 = Monday … 7 = Sunday) used by `RecurringFlight.operating_days`. */
|
|
110302
|
+
declare const FBO_OPERATING_DAYS: readonly [1, 2, 3, 4, 5, 6, 7];
|
|
110303
|
+
/**
|
|
110304
|
+
* A per-tenant recurring flight template (the generalised PrivateWings
|
|
110305
|
+
* timetable) — `RecurringFlightResource`. `dep_time`/`arr_time` are local
|
|
110306
|
+
* `HH:MM` in `timezone`; `POST …/recurring-flights/materialise` expands a
|
|
110307
|
+
* template's `operating_days` (ISO 1..7) over an ISO week into real flights.
|
|
110308
|
+
*/
|
|
110309
|
+
declare const fboRecurringFlightSchema: z.ZodObject<{
|
|
110310
|
+
id: z.ZodNumber;
|
|
110311
|
+
company_id: z.ZodNumber;
|
|
110312
|
+
ac_call: z.ZodNullable<z.ZodString>;
|
|
110313
|
+
ac_reg: z.ZodNullable<z.ZodString>;
|
|
110314
|
+
ac_type: z.ZodNullable<z.ZodString>;
|
|
110315
|
+
operator: z.ZodNullable<z.ZodString>;
|
|
110316
|
+
departure_airport_id: z.ZodNullable<z.ZodNumber>;
|
|
110317
|
+
departure_airport: z.ZodOptional<z.ZodObject<{
|
|
110318
|
+
type: z.ZodOptional<z.ZodLiteral<"airport">>;
|
|
110319
|
+
id: z.ZodNumber;
|
|
110320
|
+
ident: z.ZodString;
|
|
110321
|
+
name: z.ZodString;
|
|
110322
|
+
country: z.ZodOptional<z.ZodString>;
|
|
110323
|
+
municipality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110324
|
+
iso_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110325
|
+
latitude_deg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
110326
|
+
longitude_deg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
110327
|
+
}, "strip", z.ZodTypeAny, {
|
|
110328
|
+
name: string;
|
|
110329
|
+
id: number;
|
|
110330
|
+
ident: string;
|
|
110331
|
+
type?: "airport" | undefined;
|
|
110332
|
+
municipality?: string | null | undefined;
|
|
110333
|
+
iso_country?: string | null | undefined;
|
|
110334
|
+
latitude_deg?: number | null | undefined;
|
|
110335
|
+
longitude_deg?: number | null | undefined;
|
|
110336
|
+
country?: string | undefined;
|
|
110337
|
+
}, {
|
|
110338
|
+
name: string;
|
|
110339
|
+
id: number;
|
|
110340
|
+
ident: string;
|
|
110341
|
+
type?: "airport" | undefined;
|
|
110342
|
+
municipality?: string | null | undefined;
|
|
110343
|
+
iso_country?: string | null | undefined;
|
|
110344
|
+
latitude_deg?: number | null | undefined;
|
|
110345
|
+
longitude_deg?: number | null | undefined;
|
|
110346
|
+
country?: string | undefined;
|
|
110347
|
+
}>>;
|
|
110348
|
+
destination_airport_id: z.ZodNullable<z.ZodNumber>;
|
|
110349
|
+
destination_airport: z.ZodOptional<z.ZodObject<{
|
|
110350
|
+
type: z.ZodOptional<z.ZodLiteral<"airport">>;
|
|
110351
|
+
id: z.ZodNumber;
|
|
110352
|
+
ident: z.ZodString;
|
|
110353
|
+
name: z.ZodString;
|
|
110354
|
+
country: z.ZodOptional<z.ZodString>;
|
|
110355
|
+
municipality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110356
|
+
iso_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110357
|
+
latitude_deg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
110358
|
+
longitude_deg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
110359
|
+
}, "strip", z.ZodTypeAny, {
|
|
110360
|
+
name: string;
|
|
110361
|
+
id: number;
|
|
110362
|
+
ident: string;
|
|
110363
|
+
type?: "airport" | undefined;
|
|
110364
|
+
municipality?: string | null | undefined;
|
|
110365
|
+
iso_country?: string | null | undefined;
|
|
110366
|
+
latitude_deg?: number | null | undefined;
|
|
110367
|
+
longitude_deg?: number | null | undefined;
|
|
110368
|
+
country?: string | undefined;
|
|
110369
|
+
}, {
|
|
110370
|
+
name: string;
|
|
110371
|
+
id: number;
|
|
110372
|
+
ident: string;
|
|
110373
|
+
type?: "airport" | undefined;
|
|
110374
|
+
municipality?: string | null | undefined;
|
|
110375
|
+
iso_country?: string | null | undefined;
|
|
110376
|
+
latitude_deg?: number | null | undefined;
|
|
110377
|
+
longitude_deg?: number | null | undefined;
|
|
110378
|
+
country?: string | undefined;
|
|
110379
|
+
}>>;
|
|
110380
|
+
dep_time: z.ZodNullable<z.ZodString>;
|
|
110381
|
+
arr_time: z.ZodNullable<z.ZodString>;
|
|
110382
|
+
operating_days: z.ZodArray<z.ZodNumber, "many">;
|
|
110383
|
+
timezone: z.ZodString;
|
|
110384
|
+
ifr: z.ZodBoolean;
|
|
110385
|
+
wx: z.ZodBoolean;
|
|
110386
|
+
landings: z.ZodNumber;
|
|
110387
|
+
remarks: z.ZodNullable<z.ZodString>;
|
|
110388
|
+
author_id: z.ZodNullable<z.ZodNumber>;
|
|
110389
|
+
created_at: z.ZodString;
|
|
110390
|
+
updated_at: z.ZodString;
|
|
110391
|
+
can: z.ZodOptional<z.ZodObject<{
|
|
110392
|
+
update: z.ZodBoolean;
|
|
110393
|
+
delete: z.ZodBoolean;
|
|
110394
|
+
}, "strip", z.ZodTypeAny, {
|
|
110395
|
+
update: boolean;
|
|
110396
|
+
delete: boolean;
|
|
110397
|
+
}, {
|
|
110398
|
+
update: boolean;
|
|
110399
|
+
delete: boolean;
|
|
110400
|
+
}>>;
|
|
110401
|
+
}, "strip", z.ZodTypeAny, {
|
|
110402
|
+
id: number;
|
|
110403
|
+
created_at: string;
|
|
110404
|
+
updated_at: string;
|
|
110405
|
+
timezone: string;
|
|
110406
|
+
company_id: number;
|
|
110407
|
+
remarks: string | null;
|
|
110408
|
+
departure_airport_id: number | null;
|
|
110409
|
+
destination_airport_id: number | null;
|
|
110410
|
+
dep_time: string | null;
|
|
110411
|
+
arr_time: string | null;
|
|
110412
|
+
ifr: boolean;
|
|
110413
|
+
ac_call: string | null;
|
|
110414
|
+
ac_type: string | null;
|
|
110415
|
+
ac_reg: string | null;
|
|
110416
|
+
author_id: number | null;
|
|
110417
|
+
operator: string | null;
|
|
110418
|
+
wx: boolean;
|
|
110419
|
+
landings: number;
|
|
110420
|
+
operating_days: number[];
|
|
110421
|
+
can?: {
|
|
110422
|
+
update: boolean;
|
|
110423
|
+
delete: boolean;
|
|
110424
|
+
} | undefined;
|
|
110425
|
+
departure_airport?: {
|
|
110426
|
+
name: string;
|
|
110427
|
+
id: number;
|
|
110428
|
+
ident: string;
|
|
110429
|
+
type?: "airport" | undefined;
|
|
110430
|
+
municipality?: string | null | undefined;
|
|
110431
|
+
iso_country?: string | null | undefined;
|
|
110432
|
+
latitude_deg?: number | null | undefined;
|
|
110433
|
+
longitude_deg?: number | null | undefined;
|
|
110434
|
+
country?: string | undefined;
|
|
110435
|
+
} | undefined;
|
|
110436
|
+
destination_airport?: {
|
|
110437
|
+
name: string;
|
|
110438
|
+
id: number;
|
|
110439
|
+
ident: string;
|
|
110440
|
+
type?: "airport" | undefined;
|
|
110441
|
+
municipality?: string | null | undefined;
|
|
110442
|
+
iso_country?: string | null | undefined;
|
|
110443
|
+
latitude_deg?: number | null | undefined;
|
|
110444
|
+
longitude_deg?: number | null | undefined;
|
|
110445
|
+
country?: string | undefined;
|
|
110446
|
+
} | undefined;
|
|
110447
|
+
}, {
|
|
110448
|
+
id: number;
|
|
110449
|
+
created_at: string;
|
|
110450
|
+
updated_at: string;
|
|
110451
|
+
timezone: string;
|
|
110452
|
+
company_id: number;
|
|
110453
|
+
remarks: string | null;
|
|
110454
|
+
departure_airport_id: number | null;
|
|
110455
|
+
destination_airport_id: number | null;
|
|
110456
|
+
dep_time: string | null;
|
|
110457
|
+
arr_time: string | null;
|
|
110458
|
+
ifr: boolean;
|
|
110459
|
+
ac_call: string | null;
|
|
110460
|
+
ac_type: string | null;
|
|
110461
|
+
ac_reg: string | null;
|
|
110462
|
+
author_id: number | null;
|
|
110463
|
+
operator: string | null;
|
|
110464
|
+
wx: boolean;
|
|
110465
|
+
landings: number;
|
|
110466
|
+
operating_days: number[];
|
|
110467
|
+
can?: {
|
|
110468
|
+
update: boolean;
|
|
110469
|
+
delete: boolean;
|
|
110470
|
+
} | undefined;
|
|
110471
|
+
departure_airport?: {
|
|
110472
|
+
name: string;
|
|
110473
|
+
id: number;
|
|
110474
|
+
ident: string;
|
|
110475
|
+
type?: "airport" | undefined;
|
|
110476
|
+
municipality?: string | null | undefined;
|
|
110477
|
+
iso_country?: string | null | undefined;
|
|
110478
|
+
latitude_deg?: number | null | undefined;
|
|
110479
|
+
longitude_deg?: number | null | undefined;
|
|
110480
|
+
country?: string | undefined;
|
|
110481
|
+
} | undefined;
|
|
110482
|
+
destination_airport?: {
|
|
110483
|
+
name: string;
|
|
110484
|
+
id: number;
|
|
110485
|
+
ident: string;
|
|
110486
|
+
type?: "airport" | undefined;
|
|
110487
|
+
municipality?: string | null | undefined;
|
|
110488
|
+
iso_country?: string | null | undefined;
|
|
110489
|
+
latitude_deg?: number | null | undefined;
|
|
110490
|
+
longitude_deg?: number | null | undefined;
|
|
110491
|
+
country?: string | undefined;
|
|
110492
|
+
} | undefined;
|
|
110493
|
+
}>;
|
|
110494
|
+
/** `POST …/recurring-flights/materialise` response — counts over the requested week. */
|
|
110495
|
+
declare const fboMaterialiseResultSchema: z.ZodObject<{
|
|
110496
|
+
created: z.ZodNumber;
|
|
110497
|
+
skipped_existing: z.ZodNumber;
|
|
110498
|
+
skipped_closed: z.ZodNumber;
|
|
110499
|
+
}, "strip", z.ZodTypeAny, {
|
|
110500
|
+
created: number;
|
|
110501
|
+
skipped_existing: number;
|
|
110502
|
+
skipped_closed: number;
|
|
110503
|
+
}, {
|
|
110504
|
+
created: number;
|
|
110505
|
+
skipped_existing: number;
|
|
110506
|
+
skipped_closed: number;
|
|
110507
|
+
}>;
|
|
110007
110508
|
|
|
110008
|
-
export {
|
|
110509
|
+
export { ShowWhenSchema as $, type AttachSyllabusElementForm as A, BaseModel as B, type CourseCheckSyllabus as C, type GradingScale as D, type EnrollmentTrainingElement as E, FBO_OPERATING_DAYS as F, type GradeHistoryItem as G, type GradingScaleForm as H, GradingScaleFormSchema as I, type GradingScalePoint as J, type ImpersonationParticipant as K, type ImpersonationState as L, type InvalidateTrainingRecordResponse as M, ReorderSyllabusElementItemSchema as N, type RequiredForm as O, RequiredFormSchema as P, type RequiredFormVia as Q, type ReorderSyllabusElementItem as R, type RequiredFormViaCrew as S, RequiredFormViaCrewSchema as T, RequiredFormViaSchema as U, type ReviewFormSubmissionInput as V, type SchemaField as W, SchemaFieldSchema as X, type SchemaSection as Y, SchemaSectionSchema as Z, type ShowWhen as _, AttachSyllabusElementFormSchema as a, courseCheckSyllabusSchema as a$, type SignOffTrainingElementForm as a0, SignOffTrainingElementFormSchema as a1, type Signature as a2, SignatureSchema as a3, type StoreSyllabusForm as a4, StoreSyllabusFormSchema as a5, type SubmissionFile as a6, SubmissionFileSchema as a7, type Syllabus as a8, type SyllabusElement as a9, UpdateSyllabusFormSchema as aA, type UpsertTrainingRecordForm as aB, UpsertTrainingRecordFormSchema as aC, type UsedByCourse as aD, activitySchema as aE, addressSchema as aF, aircraftPositionSchema as aG, aircraftRatingSchema as aH, airplaneIssueSchema as aI, airplaneIssueSeverityEnum as aJ, airplaneIssueStatusEnum as aK, airplanePermissionSchema as aL, airplaneSchema as aM, airplaneShareInviteSchema as aN, airportSchema as aO, alertSchema as aP, allowedDocumentTypeSchema as aQ, approachTypeSchema as aR, availSchema as aS, baseMembershipSchema as aT, billingProfileSchema as aU, bookingSchema as aV, bookingWaypointSchema as aW, commentSchema as aX, companyIdentitySchema as aY, companySchema as aZ, contactAttributeSchema as a_, type SyllabusElementMutationResult as aa, type SyllabusKind as ab, SyllabusKindEnum as ac, type SyllabusRolloutResult as ad, type SyllabusRolloutResultItem as ae, type SyllabusRolloutSkippedItem as af, type TemplateSchema as ag, TemplateSchemaSchema as ah, type TrainingElement as ai, type TrainingElementForm as aj, TrainingElementFormSchema as ak, type TrainingElementKind as al, TrainingElementKindEnum as am, type TrainingRecord as an, type TrainingRecordEntry as ao, type TrainingRecordEntryInput as ap, type TrainingRecordResult as aq, TrainingRecordResultEnum as ar, type TrainingRecordStatus as as, TrainingRecordStatusEnum as at, type TrainingSignature as au, type TrainingTemplatePack as av, type UpdateFormTemplateInput as aw, type UpdateSyllabusElementForm as ax, UpdateSyllabusElementFormSchema as ay, type UpdateSyllabusForm as az, type CreateFormSubmissionInput as b, landingFeeSchema as b$, courseEnrollmentMetricsSchema as b0, courseEnrollmentSchema as b1, courseFeeSchema as b2, courseSchema as b3, createSyllabusFromTemplateResultSchema as b4, documentComplianceStatus as b5, documentRequirement as b6, documentRequirementGroup as b7, documentRequirementGroupAssignment as b8, documentSchema as b9, fboMaterialiseResultSchema as bA, fboNextDutySchema as bB, fboOccupationSchema as bC, fboOperationsSchema as bD, fboRecurrenceSchema as bE, fboRecurrenceTypeSchema as bF, fboRecurringFlightSchema as bG, fboRoleSchema as bH, fboRowCanSchema as bI, fboStatisticsSchema as bJ, fboSystemRoleSchema as bK, fboTrafficRowSchema as bL, fboTrafficRowTypeSchema as bM, fboTrafficSourceSchema as bN, fboVisibilitySchema as bO, fboWeeklyLandingSchema as bP, feeCategoryOptionsSchema as bQ, feeSchema as bR, flightLogSchema as bS, fuelUnitSchema as bT, gradeHistoryItemSchema as bU, gradingScalePointSchema as bV, gradingScaleSchema as bW, impersonationParticipantSchema as bX, impersonationStateSchema as bY, invalidateTrainingRecordResponseSchema as bZ, invoiceSchema as b_, documentShareSchema as ba, documentType as bb, enrollmentTrainingElementSchema as bc, eventSchema as bd, expenseItemSchema as be, expenseSchema as bf, extendedAirplaneSchema as bg, fboAcceptanceAxisSchema as bh, fboAcceptanceStatusSchema as bi, fboActivityCauserSchema as bj, fboActivityChangesSchema as bk, fboActivitySchema as bl, fboCompanyMemberSchema as bm, fboCompanyProfileSchema as bn, fboDecisionAxisSchema as bo, fboDecisionInputSchema as bp, fboDecisionSchema as bq, fboDutyAffectedSchema as br, fboDutySchema as bs, fboDutySeriesResponseSchema as bt, fboFlightCanSchema as bu, fboFlightSchema as bv, fboFlightStatusSchema as bw, fboFlightTypeSchema as bx, fboGroundServicesSchema as by, fboLandingsSummarySchema as bz, type CreateFormTemplateAssignmentInput as c, landingSchema as c0, maintenanceEventEstimationSchema as c1, maintenanceEventSchema as c2, maintenanceStatusSchema as c3, mediaCollection as c4, mediaSchema as c5, membershipIdentitySchema as c6, membershipSchema as c7, membershipSignupSchema as c8, nestedMembershipSchema as c9, usedByCourseSchema as cA, userAircraftRatingSchema as cB, userQualificationSchema as cC, userSchema as cD, waypointSchema as cE, zContactDTO as cF, zMoneyObject as cG, zNetGross as cH, zNullableBool as cI, postSchema as ca, postSubjectSchema as cb, prePaidPackageAssignmentSchema as cc, prePaidPackageSchema as cd, priceSchema as ce, qualificationSchema as cf, recurringFlightSchema as cg, roleSchema as ch, runwaySchema as ci, scheduledFlightSchema as cj, settingSchema as ck, specialFlightSchema as cl, syllabusElementMutationResultSchema as cm, syllabusElementSchema as cn, syllabusRolloutResultItemSchema as co, syllabusRolloutResultSchema as cp, syllabusRolloutSkippedItemSchema as cq, syllabusSchema as cr, tagSchema as cs, ticketSchema as ct, trainingElementSchema as cu, trainingRecordEntryInputSchema as cv, trainingRecordEntrySchema as cw, trainingRecordSchema as cx, trainingSignatureSchema as cy, trainingTemplatePackSchema as cz, type CreateFormTemplateInput as d, type CreateSyllabusFromTemplateForm as e, CreateSyllabusFromTemplateFormSchema as f, type CreateSyllabusFromTemplateResult as g, type EnrollmentTrainingStatus as h, EnrollmentTrainingStatusEnum as i, FBO_SYSTEM_ROLES as j, type FieldLabel as k, FieldLabelSchema as l, FormFieldType as m, type FormSubmission as n, FormSubmissionSchema as o, type FormSubmissionShare as p, type FormSubmissionShareBase as q, FormSubmissionShareBaseSchema as r, FormSubmissionShareSchema as s, FormSubmissionSource as t, FormSubmissionStatus as u, type FormTemplate as v, type FormTemplateAssignment as w, FormTemplateAssignmentSchema as x, FormTemplateSchema as y, type FuelUnit as z };
|