@updraft-solutions/mcrit-sdk 0.2.0 → 0.3.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-TTJCPQSZ.js → chunk-4A2CDUAO.js} +20 -0
- package/dist/{chunk-MZV7HMDC.cjs → chunk-S632QB2N.cjs} +21 -1
- package/dist/index.cjs +4 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -1
- package/dist/{models-B3GM-4AA.d.cts → models-DOcMz5Pd.d.cts} +6036 -5417
- package/dist/{models-B3GM-4AA.d.ts → models-DOcMz5Pd.d.ts} +6036 -5417
- package/dist/schemas/index.cjs +4 -2
- package/dist/schemas/index.d.cts +49 -49
- package/dist/schemas/index.d.ts +49 -49
- package/dist/schemas/index.js +3 -1
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.ts +3 -2
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/schemas/models.ts +22 -0
- package/src/types/models.ts +3 -0
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BaseModel, a as addressSchema, b as aircraftRatingSchema, c as airplaneIssueSchema, d as airplaneIssueSeverityEnum, e as airplaneIssueStatusEnum, f as airplanePermissionSchema, g as airplaneSchema, h as
|
|
1
|
+
export { B as BaseModel, a as addressSchema, b as aircraftRatingSchema, c as airplaneIssueSchema, d as airplaneIssueSeverityEnum, e as airplaneIssueStatusEnum, f as airplanePermissionSchema, g as airplaneSchema, h as airplaneShareInviteSchema, i as airportSchema, j as alertSchema, k as allowedDocumentTypeSchema, l as approachTypeSchema, m as availSchema, n as baseMembershipSchema, o as bookingSchema, p as commentSchema, q as companySchema, r as contactAttributeSchema, s as courseEnrollmentMetricsSchema, t as courseEnrollmentSchema, u as courseFeeSchema, v as courseSchema, w as documentComplianceStatus, x as documentRequirement, y as documentRequirementGroup, z as documentRequirementGroupAssignment, A as documentSchema, C as documentShareSchema, D as documentType, E as eventSchema, F as expenseItemSchema, G as expenseSchema, H as extendedAirplaneSchema, I as feeSchema, J as flightLogSchema, K as invoiceSchema, L as landingFeeSchema, M as landingSchema, N as maintenanceEventEstimationSchema, O as maintenanceEventSchema, P as maintenanceStatusSchema, Q as mediaCollection, R as mediaSchema, S as membershipSchema, T as postSchema, U as prePaidPackageSchema, V as priceSchema, W as qualificationSchema, X as recurringFlightSchema, Y as roleSchema, Z as runwaySchema, _ as scheduledFlightSchema, $ as settingSchema, a0 as specialFlightSchema, a1 as ticketSchema, a2 as userAircraftRatingSchema, a3 as userQualificationSchema, a4 as userSchema, a5 as waypointSchema, a6 as zContactDTO, a7 as zNetGross, a8 as zNullableBool, a9 as zPhpMoneyObject } from '../models-DOcMz5Pd.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum FaqStatus {
|
|
@@ -29,26 +29,26 @@ declare const FaqSchema: z.ZodObject<{
|
|
|
29
29
|
name: z.ZodString;
|
|
30
30
|
email: z.ZodString;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
id: number;
|
|
32
33
|
name: string;
|
|
33
34
|
email: string;
|
|
34
|
-
id: number;
|
|
35
35
|
}, {
|
|
36
|
+
id: number;
|
|
36
37
|
name: string;
|
|
37
38
|
email: string;
|
|
38
|
-
id: number;
|
|
39
39
|
}>>>;
|
|
40
40
|
reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
41
41
|
id: z.ZodNumber;
|
|
42
42
|
name: z.ZodString;
|
|
43
43
|
email: z.ZodString;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
id: number;
|
|
45
46
|
name: string;
|
|
46
47
|
email: string;
|
|
47
|
-
id: number;
|
|
48
48
|
}, {
|
|
49
|
+
id: number;
|
|
49
50
|
name: string;
|
|
50
51
|
email: string;
|
|
51
|
-
id: number;
|
|
52
52
|
}>>>;
|
|
53
53
|
is_pending: z.ZodOptional<z.ZodBoolean>;
|
|
54
54
|
is_user_submitted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -72,9 +72,9 @@ declare const FaqSchema: z.ZodObject<{
|
|
|
72
72
|
submit?: boolean | undefined;
|
|
73
73
|
}>>;
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
id: number;
|
|
75
76
|
type: "faq";
|
|
76
77
|
status: "pending" | "approved" | "rejected";
|
|
77
|
-
id: number;
|
|
78
78
|
created_at: string;
|
|
79
79
|
updated_at: string;
|
|
80
80
|
company_id: number | null;
|
|
@@ -97,21 +97,21 @@ declare const FaqSchema: z.ZodObject<{
|
|
|
97
97
|
submit?: boolean | undefined;
|
|
98
98
|
} | undefined;
|
|
99
99
|
submitter?: {
|
|
100
|
+
id: number;
|
|
100
101
|
name: string;
|
|
101
102
|
email: string;
|
|
102
|
-
id: number;
|
|
103
103
|
} | null | undefined;
|
|
104
104
|
reviewer?: {
|
|
105
|
+
id: number;
|
|
105
106
|
name: string;
|
|
106
107
|
email: string;
|
|
107
|
-
id: number;
|
|
108
108
|
} | null | undefined;
|
|
109
109
|
is_pending?: boolean | undefined;
|
|
110
110
|
is_user_submitted?: boolean | undefined;
|
|
111
111
|
}, {
|
|
112
|
+
id: number;
|
|
112
113
|
type: "faq";
|
|
113
114
|
status: "pending" | "approved" | "rejected";
|
|
114
|
-
id: number;
|
|
115
115
|
created_at: string;
|
|
116
116
|
updated_at: string;
|
|
117
117
|
company_id: number | null;
|
|
@@ -134,14 +134,14 @@ declare const FaqSchema: z.ZodObject<{
|
|
|
134
134
|
submit?: boolean | undefined;
|
|
135
135
|
} | undefined;
|
|
136
136
|
submitter?: {
|
|
137
|
+
id: number;
|
|
137
138
|
name: string;
|
|
138
139
|
email: string;
|
|
139
|
-
id: number;
|
|
140
140
|
} | null | undefined;
|
|
141
141
|
reviewer?: {
|
|
142
|
+
id: number;
|
|
142
143
|
name: string;
|
|
143
144
|
email: string;
|
|
144
|
-
id: number;
|
|
145
145
|
} | null | undefined;
|
|
146
146
|
is_pending?: boolean | undefined;
|
|
147
147
|
is_user_submitted?: boolean | undefined;
|
|
@@ -227,16 +227,16 @@ declare const FeeSchema: z.ZodObject<{
|
|
|
227
227
|
}>>;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
id: number;
|
|
230
|
+
title: string;
|
|
230
231
|
company_id: number;
|
|
231
232
|
category: string;
|
|
232
|
-
|
|
233
|
+
price?: any;
|
|
234
|
+
prices?: any[] | undefined;
|
|
233
235
|
type?: "fee" | undefined;
|
|
234
236
|
can?: {
|
|
235
237
|
update?: boolean | undefined;
|
|
236
238
|
delete?: boolean | undefined;
|
|
237
239
|
} | undefined;
|
|
238
|
-
price?: any;
|
|
239
|
-
prices?: any[] | undefined;
|
|
240
240
|
provider?: string | null | undefined;
|
|
241
241
|
subcategory?: string | null | undefined;
|
|
242
242
|
relation?: ("instructor" | "booking" | "invoice" | "flightlog")[] | null | undefined;
|
|
@@ -245,16 +245,16 @@ declare const FeeSchema: z.ZodObject<{
|
|
|
245
245
|
display_title?: string | undefined;
|
|
246
246
|
}, {
|
|
247
247
|
id: number;
|
|
248
|
+
title: string;
|
|
248
249
|
company_id: number;
|
|
249
250
|
category: string;
|
|
250
|
-
|
|
251
|
+
price?: any;
|
|
252
|
+
prices?: any[] | undefined;
|
|
251
253
|
type?: "fee" | undefined;
|
|
252
254
|
can?: {
|
|
253
255
|
update?: boolean | undefined;
|
|
254
256
|
delete?: boolean | undefined;
|
|
255
257
|
} | undefined;
|
|
256
|
-
price?: any;
|
|
257
|
-
prices?: any[] | undefined;
|
|
258
258
|
provider?: string | null | undefined;
|
|
259
259
|
subcategory?: string | null | undefined;
|
|
260
260
|
relation?: ("instructor" | "booking" | "invoice" | "flightlog")[] | null | undefined;
|
|
@@ -288,22 +288,22 @@ declare const SafetyReportCategorySchema: z.ZodObject<{
|
|
|
288
288
|
created_at: z.ZodOptional<z.ZodString>;
|
|
289
289
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
290
290
|
}, "strip", z.ZodTypeAny, {
|
|
291
|
-
|
|
291
|
+
sort_order: number;
|
|
292
292
|
id: number;
|
|
293
|
+
name: string;
|
|
293
294
|
description: string | null;
|
|
294
295
|
is_active: boolean;
|
|
295
296
|
color: string;
|
|
296
|
-
sort_order: number;
|
|
297
297
|
created_at?: string | undefined;
|
|
298
298
|
updated_at?: string | undefined;
|
|
299
299
|
is_global?: boolean | undefined;
|
|
300
300
|
}, {
|
|
301
|
-
|
|
301
|
+
sort_order: number;
|
|
302
302
|
id: number;
|
|
303
|
+
name: string;
|
|
303
304
|
description: string | null;
|
|
304
305
|
is_active: boolean;
|
|
305
306
|
color: string;
|
|
306
|
-
sort_order: number;
|
|
307
307
|
created_at?: string | undefined;
|
|
308
308
|
updated_at?: string | undefined;
|
|
309
309
|
is_global?: boolean | undefined;
|
|
@@ -317,16 +317,16 @@ declare const SafetyReportCategoryFormSchema: z.ZodObject<{
|
|
|
317
317
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
318
318
|
}, "strip", z.ZodTypeAny, {
|
|
319
319
|
name: string;
|
|
320
|
+
sort_order?: number | undefined;
|
|
320
321
|
description?: string | null | undefined;
|
|
321
322
|
is_active?: boolean | undefined;
|
|
322
323
|
color?: string | null | undefined;
|
|
323
|
-
sort_order?: number | undefined;
|
|
324
324
|
}, {
|
|
325
325
|
name: string;
|
|
326
|
+
sort_order?: number | undefined;
|
|
326
327
|
description?: string | null | undefined;
|
|
327
328
|
is_active?: boolean | undefined;
|
|
328
329
|
color?: string | null | undefined;
|
|
329
|
-
sort_order?: number | undefined;
|
|
330
330
|
}>;
|
|
331
331
|
type SafetyReportCategoryForm = z.infer<typeof SafetyReportCategoryFormSchema>;
|
|
332
332
|
declare const SafetyReportMediaSchema: z.ZodObject<{
|
|
@@ -367,22 +367,22 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
367
367
|
created_at: z.ZodOptional<z.ZodString>;
|
|
368
368
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
369
369
|
}, "strip", z.ZodTypeAny, {
|
|
370
|
-
|
|
370
|
+
sort_order: number;
|
|
371
371
|
id: number;
|
|
372
|
+
name: string;
|
|
372
373
|
description: string | null;
|
|
373
374
|
is_active: boolean;
|
|
374
375
|
color: string;
|
|
375
|
-
sort_order: number;
|
|
376
376
|
created_at?: string | undefined;
|
|
377
377
|
updated_at?: string | undefined;
|
|
378
378
|
is_global?: boolean | undefined;
|
|
379
379
|
}, {
|
|
380
|
-
|
|
380
|
+
sort_order: number;
|
|
381
381
|
id: number;
|
|
382
|
+
name: string;
|
|
382
383
|
description: string | null;
|
|
383
384
|
is_active: boolean;
|
|
384
385
|
color: string;
|
|
385
|
-
sort_order: number;
|
|
386
386
|
created_at?: string | undefined;
|
|
387
387
|
updated_at?: string | undefined;
|
|
388
388
|
is_global?: boolean | undefined;
|
|
@@ -411,8 +411,8 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
411
411
|
updated_at: z.ZodString;
|
|
412
412
|
can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
413
413
|
}, "strip", z.ZodTypeAny, {
|
|
414
|
-
status: "new" | "under_review" | "action_taken" | "closed";
|
|
415
414
|
id: number;
|
|
415
|
+
status: "new" | "under_review" | "action_taken" | "closed";
|
|
416
416
|
created_at: string;
|
|
417
417
|
updated_at: string;
|
|
418
418
|
description: string;
|
|
@@ -421,12 +421,12 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
421
421
|
is_archived: boolean;
|
|
422
422
|
can?: Record<string, boolean> | undefined;
|
|
423
423
|
category?: {
|
|
424
|
-
|
|
424
|
+
sort_order: number;
|
|
425
425
|
id: number;
|
|
426
|
+
name: string;
|
|
426
427
|
description: string | null;
|
|
427
428
|
is_active: boolean;
|
|
428
429
|
color: string;
|
|
429
|
-
sort_order: number;
|
|
430
430
|
created_at?: string | undefined;
|
|
431
431
|
updated_at?: string | undefined;
|
|
432
432
|
is_global?: boolean | undefined;
|
|
@@ -440,8 +440,8 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
440
440
|
}[] | undefined;
|
|
441
441
|
attachments_count?: number | undefined;
|
|
442
442
|
}, {
|
|
443
|
-
status: "new" | "under_review" | "action_taken" | "closed";
|
|
444
443
|
id: number;
|
|
444
|
+
status: "new" | "under_review" | "action_taken" | "closed";
|
|
445
445
|
created_at: string;
|
|
446
446
|
updated_at: string;
|
|
447
447
|
description: string;
|
|
@@ -450,12 +450,12 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
450
450
|
is_archived: boolean;
|
|
451
451
|
can?: Record<string, boolean> | undefined;
|
|
452
452
|
category?: {
|
|
453
|
-
|
|
453
|
+
sort_order: number;
|
|
454
454
|
id: number;
|
|
455
|
+
name: string;
|
|
455
456
|
description: string | null;
|
|
456
457
|
is_active: boolean;
|
|
457
458
|
color: string;
|
|
458
|
-
sort_order: number;
|
|
459
459
|
created_at?: string | undefined;
|
|
460
460
|
updated_at?: string | undefined;
|
|
461
461
|
is_global?: boolean | undefined;
|
|
@@ -489,22 +489,22 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
489
489
|
created_at: z.ZodOptional<z.ZodString>;
|
|
490
490
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
491
491
|
}, "strip", z.ZodTypeAny, {
|
|
492
|
-
|
|
492
|
+
sort_order: number;
|
|
493
493
|
id: number;
|
|
494
|
+
name: string;
|
|
494
495
|
description: string | null;
|
|
495
496
|
is_active: boolean;
|
|
496
497
|
color: string;
|
|
497
|
-
sort_order: number;
|
|
498
498
|
created_at?: string | undefined;
|
|
499
499
|
updated_at?: string | undefined;
|
|
500
500
|
is_global?: boolean | undefined;
|
|
501
501
|
}, {
|
|
502
|
-
|
|
502
|
+
sort_order: number;
|
|
503
503
|
id: number;
|
|
504
|
+
name: string;
|
|
504
505
|
description: string | null;
|
|
505
506
|
is_active: boolean;
|
|
506
507
|
color: string;
|
|
507
|
-
sort_order: number;
|
|
508
508
|
created_at?: string | undefined;
|
|
509
509
|
updated_at?: string | undefined;
|
|
510
510
|
is_global?: boolean | undefined;
|
|
@@ -533,8 +533,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
533
533
|
updated_at: z.ZodString;
|
|
534
534
|
can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
535
535
|
}, "strip", z.ZodTypeAny, {
|
|
536
|
-
status: "new" | "under_review" | "action_taken" | "closed";
|
|
537
536
|
id: number;
|
|
537
|
+
status: "new" | "under_review" | "action_taken" | "closed";
|
|
538
538
|
created_at: string;
|
|
539
539
|
updated_at: string;
|
|
540
540
|
description: string;
|
|
@@ -543,12 +543,12 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
543
543
|
is_archived: boolean;
|
|
544
544
|
can?: Record<string, boolean> | undefined;
|
|
545
545
|
category?: {
|
|
546
|
-
|
|
546
|
+
sort_order: number;
|
|
547
547
|
id: number;
|
|
548
|
+
name: string;
|
|
548
549
|
description: string | null;
|
|
549
550
|
is_active: boolean;
|
|
550
551
|
color: string;
|
|
551
|
-
sort_order: number;
|
|
552
552
|
created_at?: string | undefined;
|
|
553
553
|
updated_at?: string | undefined;
|
|
554
554
|
is_global?: boolean | undefined;
|
|
@@ -562,8 +562,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
562
562
|
}[] | undefined;
|
|
563
563
|
attachments_count?: number | undefined;
|
|
564
564
|
}, {
|
|
565
|
-
status: "new" | "under_review" | "action_taken" | "closed";
|
|
566
565
|
id: number;
|
|
566
|
+
status: "new" | "under_review" | "action_taken" | "closed";
|
|
567
567
|
created_at: string;
|
|
568
568
|
updated_at: string;
|
|
569
569
|
description: string;
|
|
@@ -572,12 +572,12 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
572
572
|
is_archived: boolean;
|
|
573
573
|
can?: Record<string, boolean> | undefined;
|
|
574
574
|
category?: {
|
|
575
|
-
|
|
575
|
+
sort_order: number;
|
|
576
576
|
id: number;
|
|
577
|
+
name: string;
|
|
577
578
|
description: string | null;
|
|
578
579
|
is_active: boolean;
|
|
579
580
|
color: string;
|
|
580
|
-
sort_order: number;
|
|
581
581
|
created_at?: string | undefined;
|
|
582
582
|
updated_at?: string | undefined;
|
|
583
583
|
is_global?: boolean | undefined;
|
|
@@ -631,8 +631,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
631
631
|
}>>;
|
|
632
632
|
}, "strip", z.ZodTypeAny, {
|
|
633
633
|
data: {
|
|
634
|
-
status: "new" | "under_review" | "action_taken" | "closed";
|
|
635
634
|
id: number;
|
|
635
|
+
status: "new" | "under_review" | "action_taken" | "closed";
|
|
636
636
|
created_at: string;
|
|
637
637
|
updated_at: string;
|
|
638
638
|
description: string;
|
|
@@ -641,12 +641,12 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
641
641
|
is_archived: boolean;
|
|
642
642
|
can?: Record<string, boolean> | undefined;
|
|
643
643
|
category?: {
|
|
644
|
-
|
|
644
|
+
sort_order: number;
|
|
645
645
|
id: number;
|
|
646
|
+
name: string;
|
|
646
647
|
description: string | null;
|
|
647
648
|
is_active: boolean;
|
|
648
649
|
color: string;
|
|
649
|
-
sort_order: number;
|
|
650
650
|
created_at?: string | undefined;
|
|
651
651
|
updated_at?: string | undefined;
|
|
652
652
|
is_global?: boolean | undefined;
|
|
@@ -676,8 +676,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
676
676
|
} | undefined;
|
|
677
677
|
}, {
|
|
678
678
|
data: {
|
|
679
|
-
status: "new" | "under_review" | "action_taken" | "closed";
|
|
680
679
|
id: number;
|
|
680
|
+
status: "new" | "under_review" | "action_taken" | "closed";
|
|
681
681
|
created_at: string;
|
|
682
682
|
updated_at: string;
|
|
683
683
|
description: string;
|
|
@@ -686,12 +686,12 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
686
686
|
is_archived: boolean;
|
|
687
687
|
can?: Record<string, boolean> | undefined;
|
|
688
688
|
category?: {
|
|
689
|
-
|
|
689
|
+
sort_order: number;
|
|
690
690
|
id: number;
|
|
691
|
+
name: string;
|
|
691
692
|
description: string | null;
|
|
692
693
|
is_active: boolean;
|
|
693
694
|
color: string;
|
|
694
|
-
sort_order: number;
|
|
695
695
|
created_at?: string | undefined;
|
|
696
696
|
updated_at?: string | undefined;
|
|
697
697
|
is_global?: boolean | undefined;
|
package/dist/schemas/index.js
CHANGED
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
airplaneIssueStatusEnum,
|
|
26
26
|
airplanePermissionSchema,
|
|
27
27
|
airplaneSchema,
|
|
28
|
+
airplaneShareInviteSchema,
|
|
28
29
|
airportSchema,
|
|
29
30
|
alertSchema,
|
|
30
31
|
allowedDocumentTypeSchema,
|
|
@@ -80,7 +81,7 @@ import {
|
|
|
80
81
|
zNetGross,
|
|
81
82
|
zNullableBool,
|
|
82
83
|
zPhpMoneyObject
|
|
83
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-4A2CDUAO.js";
|
|
84
85
|
export {
|
|
85
86
|
BaseModel,
|
|
86
87
|
FaqSchema,
|
|
@@ -108,6 +109,7 @@ export {
|
|
|
108
109
|
airplaneIssueStatusEnum,
|
|
109
110
|
airplanePermissionSchema,
|
|
110
111
|
airplaneSchema,
|
|
112
|
+
airplaneShareInviteSchema,
|
|
111
113
|
airportSchema,
|
|
112
114
|
alertSchema,
|
|
113
115
|
allowedDocumentTypeSchema,
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as addressSchema, b as aircraftRatingSchema, g as airplaneSchema, f as airplanePermissionSchema, h as
|
|
2
|
+
import { a as addressSchema, b as aircraftRatingSchema, g as airplaneSchema, f as airplanePermissionSchema, h as airplaneShareInviteSchema, i as airportSchema, j as alertSchema, k as allowedDocumentTypeSchema, l as approachTypeSchema, m as availSchema, n as baseMembershipSchema, o as bookingSchema, p as commentSchema, q as companySchema, v as courseSchema, t as courseEnrollmentSchema, u as courseFeeSchema, A as documentSchema, w as documentComplianceStatus, x as documentRequirement, y as documentRequirementGroup, z as documentRequirementGroupAssignment, C as documentShareSchema, D as documentType, E as eventSchema, G as expenseSchema, F as expenseItemSchema, H as extendedAirplaneSchema, J as flightLogSchema, K as invoiceSchema, M as landingSchema, L as landingFeeSchema, O as maintenanceEventSchema, N as maintenanceEventEstimationSchema, P as maintenanceStatusSchema, Q as mediaCollection, S as membershipSchema, T as postSchema, U as prePaidPackageSchema, V as priceSchema, W as qualificationSchema, X as recurringFlightSchema, Y as roleSchema, Z as runwaySchema, _ as scheduledFlightSchema, $ as settingSchema, a0 as specialFlightSchema, a1 as ticketSchema, a4 as userSchema, a2 as userAircraftRatingSchema, a3 as userQualificationSchema, a5 as waypointSchema, c as airplaneIssueSchema, d as airplaneIssueSeverityEnum, e as airplaneIssueStatusEnum, B as BaseModel$1, s as courseEnrollmentMetricsSchema, I as feeSchema, R as mediaSchema } from '../models-DOcMz5Pd.cjs';
|
|
3
3
|
|
|
4
4
|
type BaseModel = z.infer<typeof BaseModel$1>;
|
|
5
5
|
type User = z.infer<typeof userSchema>;
|
|
@@ -11,6 +11,7 @@ type Membership = z.infer<typeof membershipSchema>;
|
|
|
11
11
|
type Airplane = z.infer<typeof airplaneSchema>;
|
|
12
12
|
type ExtendedAirplane = z.infer<typeof extendedAirplaneSchema>;
|
|
13
13
|
type AirplanePermission = z.infer<typeof airplanePermissionSchema>;
|
|
14
|
+
type AirplaneShareInvite = z.infer<typeof airplaneShareInviteSchema>;
|
|
14
15
|
type LandingFee = z.infer<typeof landingFeeSchema>;
|
|
15
16
|
type AircraftRating = z.infer<typeof aircraftRatingSchema>;
|
|
16
17
|
type UserAircraftRating = z.infer<typeof userAircraftRatingSchema>;
|
|
@@ -144,4 +145,4 @@ interface ComplianceResponse {
|
|
|
144
145
|
};
|
|
145
146
|
}
|
|
146
147
|
|
|
147
|
-
export type { Address, AircraftRating, Airplane, AirplaneIssue, AirplaneIssueSeverity, AirplaneIssueStatus, AirplanePermission, Airport, Alert, AllowedDocumentType, ApproachType, Avail, BaseMembership, BaseModel, Booking, Comment, Company, ComplianceData, ComplianceGroup, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Course, CourseEnrollment, CourseEnrollmentMetrics, CourseFee, CreateCommentInput, DataWrappedResponse, Document, DocumentComplianceStatus, DocumentRequirement, DocumentRequirementGroup, DocumentRequirementGroupAssignment, DocumentShare, DocumentType, Event, Expense, ExpenseItem, ExtendedAirplane, Fee, FlightLog, Invoice, Landing, LandingFee, MaintenanceEvent, MaintenanceEventEstimation, MaintenanceStatus, Media, MediaCollection, Membership, PaginatedResponse, Post, PrePaidPackage, Price, Qualification, RecurringFlight, Resource, Role, Runway, ScheduledFlight, Setting, SpecialFlight, Ticket, ToggleFavoriteResponse, UpdateCommentInput, User, UserAircraftRating, UserQualification, Waypoint };
|
|
148
|
+
export type { Address, AircraftRating, Airplane, AirplaneIssue, AirplaneIssueSeverity, AirplaneIssueStatus, AirplanePermission, AirplaneShareInvite, Airport, Alert, AllowedDocumentType, ApproachType, Avail, BaseMembership, BaseModel, Booking, Comment, Company, ComplianceData, ComplianceGroup, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Course, CourseEnrollment, CourseEnrollmentMetrics, CourseFee, CreateCommentInput, DataWrappedResponse, Document, DocumentComplianceStatus, DocumentRequirement, DocumentRequirementGroup, DocumentRequirementGroupAssignment, DocumentShare, DocumentType, Event, Expense, ExpenseItem, ExtendedAirplane, Fee, FlightLog, Invoice, Landing, LandingFee, MaintenanceEvent, MaintenanceEventEstimation, MaintenanceStatus, Media, MediaCollection, Membership, PaginatedResponse, Post, PrePaidPackage, Price, Qualification, RecurringFlight, Resource, Role, Runway, ScheduledFlight, Setting, SpecialFlight, Ticket, ToggleFavoriteResponse, UpdateCommentInput, User, UserAircraftRating, UserQualification, Waypoint };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as addressSchema, b as aircraftRatingSchema, g as airplaneSchema, f as airplanePermissionSchema, h as
|
|
2
|
+
import { a as addressSchema, b as aircraftRatingSchema, g as airplaneSchema, f as airplanePermissionSchema, h as airplaneShareInviteSchema, i as airportSchema, j as alertSchema, k as allowedDocumentTypeSchema, l as approachTypeSchema, m as availSchema, n as baseMembershipSchema, o as bookingSchema, p as commentSchema, q as companySchema, v as courseSchema, t as courseEnrollmentSchema, u as courseFeeSchema, A as documentSchema, w as documentComplianceStatus, x as documentRequirement, y as documentRequirementGroup, z as documentRequirementGroupAssignment, C as documentShareSchema, D as documentType, E as eventSchema, G as expenseSchema, F as expenseItemSchema, H as extendedAirplaneSchema, J as flightLogSchema, K as invoiceSchema, M as landingSchema, L as landingFeeSchema, O as maintenanceEventSchema, N as maintenanceEventEstimationSchema, P as maintenanceStatusSchema, Q as mediaCollection, S as membershipSchema, T as postSchema, U as prePaidPackageSchema, V as priceSchema, W as qualificationSchema, X as recurringFlightSchema, Y as roleSchema, Z as runwaySchema, _ as scheduledFlightSchema, $ as settingSchema, a0 as specialFlightSchema, a1 as ticketSchema, a4 as userSchema, a2 as userAircraftRatingSchema, a3 as userQualificationSchema, a5 as waypointSchema, c as airplaneIssueSchema, d as airplaneIssueSeverityEnum, e as airplaneIssueStatusEnum, B as BaseModel$1, s as courseEnrollmentMetricsSchema, I as feeSchema, R as mediaSchema } from '../models-DOcMz5Pd.js';
|
|
3
3
|
|
|
4
4
|
type BaseModel = z.infer<typeof BaseModel$1>;
|
|
5
5
|
type User = z.infer<typeof userSchema>;
|
|
@@ -11,6 +11,7 @@ type Membership = z.infer<typeof membershipSchema>;
|
|
|
11
11
|
type Airplane = z.infer<typeof airplaneSchema>;
|
|
12
12
|
type ExtendedAirplane = z.infer<typeof extendedAirplaneSchema>;
|
|
13
13
|
type AirplanePermission = z.infer<typeof airplanePermissionSchema>;
|
|
14
|
+
type AirplaneShareInvite = z.infer<typeof airplaneShareInviteSchema>;
|
|
14
15
|
type LandingFee = z.infer<typeof landingFeeSchema>;
|
|
15
16
|
type AircraftRating = z.infer<typeof aircraftRatingSchema>;
|
|
16
17
|
type UserAircraftRating = z.infer<typeof userAircraftRatingSchema>;
|
|
@@ -144,4 +145,4 @@ interface ComplianceResponse {
|
|
|
144
145
|
};
|
|
145
146
|
}
|
|
146
147
|
|
|
147
|
-
export type { Address, AircraftRating, Airplane, AirplaneIssue, AirplaneIssueSeverity, AirplaneIssueStatus, AirplanePermission, Airport, Alert, AllowedDocumentType, ApproachType, Avail, BaseMembership, BaseModel, Booking, Comment, Company, ComplianceData, ComplianceGroup, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Course, CourseEnrollment, CourseEnrollmentMetrics, CourseFee, CreateCommentInput, DataWrappedResponse, Document, DocumentComplianceStatus, DocumentRequirement, DocumentRequirementGroup, DocumentRequirementGroupAssignment, DocumentShare, DocumentType, Event, Expense, ExpenseItem, ExtendedAirplane, Fee, FlightLog, Invoice, Landing, LandingFee, MaintenanceEvent, MaintenanceEventEstimation, MaintenanceStatus, Media, MediaCollection, Membership, PaginatedResponse, Post, PrePaidPackage, Price, Qualification, RecurringFlight, Resource, Role, Runway, ScheduledFlight, Setting, SpecialFlight, Ticket, ToggleFavoriteResponse, UpdateCommentInput, User, UserAircraftRating, UserQualification, Waypoint };
|
|
148
|
+
export type { Address, AircraftRating, Airplane, AirplaneIssue, AirplaneIssueSeverity, AirplaneIssueStatus, AirplanePermission, AirplaneShareInvite, Airport, Alert, AllowedDocumentType, ApproachType, Avail, BaseMembership, BaseModel, Booking, Comment, Company, ComplianceData, ComplianceGroup, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Course, CourseEnrollment, CourseEnrollmentMetrics, CourseFee, CreateCommentInput, DataWrappedResponse, Document, DocumentComplianceStatus, DocumentRequirement, DocumentRequirementGroup, DocumentRequirementGroupAssignment, DocumentShare, DocumentType, Event, Expense, ExpenseItem, ExtendedAirplane, Fee, FlightLog, Invoice, Landing, LandingFee, MaintenanceEvent, MaintenanceEventEstimation, MaintenanceStatus, Media, MediaCollection, Membership, PaginatedResponse, Post, PrePaidPackage, Price, Qualification, RecurringFlight, Resource, Role, Runway, ScheduledFlight, Setting, SpecialFlight, Ticket, ToggleFavoriteResponse, UpdateCommentInput, 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.3.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
package/src/schemas/models.ts
CHANGED
|
@@ -154,6 +154,12 @@ export const airplaneSchema = BaseModel.extend({
|
|
|
154
154
|
length: z.string().optional(),
|
|
155
155
|
ato: z.boolean().optional(),
|
|
156
156
|
restricted_access: z.boolean().optional(),
|
|
157
|
+
global_airplane_id: z.number().nullable().optional(),
|
|
158
|
+
is_master: z.boolean().optional(),
|
|
159
|
+
master_company_id: z.number().nullable().optional(),
|
|
160
|
+
shared_companies: z
|
|
161
|
+
.array(z.object({ id: z.number(), name: z.string() }))
|
|
162
|
+
.optional(),
|
|
157
163
|
can: z.object({
|
|
158
164
|
view: zNullableBool,
|
|
159
165
|
update: zNullableBool,
|
|
@@ -164,6 +170,20 @@ export const airplaneSchema = BaseModel.extend({
|
|
|
164
170
|
}),
|
|
165
171
|
});
|
|
166
172
|
|
|
173
|
+
export const airplaneShareInviteSchema = z.object({
|
|
174
|
+
id: z.number(),
|
|
175
|
+
status: z.enum(["pending", "accepted", "declined", "withdrawn"]),
|
|
176
|
+
responded_at: z.string().nullable().optional(),
|
|
177
|
+
created_at: z.string().optional(),
|
|
178
|
+
global_airplane: z.object({
|
|
179
|
+
id: z.number(),
|
|
180
|
+
registration: z.string(),
|
|
181
|
+
model: z.string(),
|
|
182
|
+
}),
|
|
183
|
+
master_company: z.object({ id: z.number(), name: z.string() }),
|
|
184
|
+
invited_company: z.object({ id: z.number(), name: z.string() }),
|
|
185
|
+
});
|
|
186
|
+
|
|
167
187
|
export const airplanePermissionSchema = z.object({
|
|
168
188
|
type: z.literal("airplane_permission"),
|
|
169
189
|
id: z.number(),
|
|
@@ -329,6 +349,7 @@ export const extendedAirplaneSchema = airplaneSchema.extend({
|
|
|
329
349
|
documents: z.array(z.any()).optional(),
|
|
330
350
|
})
|
|
331
351
|
.optional(),
|
|
352
|
+
master_media: mediaCollection.optional(),
|
|
332
353
|
can: z
|
|
333
354
|
.object({
|
|
334
355
|
update: zNullableBool,
|
|
@@ -357,6 +378,7 @@ export const bookingSchema = BaseModel.extend({
|
|
|
357
378
|
airplane_id: z.number(),
|
|
358
379
|
author: userSchema.optional(),
|
|
359
380
|
company_id: z.number(),
|
|
381
|
+
company_name: z.string().nullable().optional(),
|
|
360
382
|
company: companySchema.optional(),
|
|
361
383
|
airplane: airplaneSchema.optional(),
|
|
362
384
|
etdZ: z.string(),
|
package/src/types/models.ts
CHANGED
|
@@ -21,6 +21,9 @@ export type ExtendedAirplane = z.infer<
|
|
|
21
21
|
export type AirplanePermission = z.infer<
|
|
22
22
|
typeof ModelSchemas.airplanePermissionSchema
|
|
23
23
|
>;
|
|
24
|
+
export type AirplaneShareInvite = z.infer<
|
|
25
|
+
typeof ModelSchemas.airplaneShareInviteSchema
|
|
26
|
+
>;
|
|
24
27
|
export type LandingFee = z.infer<typeof ModelSchemas.landingFeeSchema>;
|
|
25
28
|
export type AircraftRating = z.infer<typeof ModelSchemas.aircraftRatingSchema>;
|
|
26
29
|
export type UserAircraftRating = z.infer<
|