@updraft-solutions/mcrit-sdk 0.1.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.
Files changed (79) hide show
  1. package/README.md +240 -0
  2. package/dist/chunk-2DRKSYW4.cjs +99 -0
  3. package/dist/chunk-2M32EOYI.js +145 -0
  4. package/dist/chunk-AN55SAGU.js +1189 -0
  5. package/dist/chunk-D5DUVW34.js +176 -0
  6. package/dist/chunk-HQSF3WGF.cjs +14 -0
  7. package/dist/chunk-JGIAOBZI.js +99 -0
  8. package/dist/chunk-JRVRIKNM.cjs +168 -0
  9. package/dist/chunk-LVTDNDWE.cjs +124 -0
  10. package/dist/chunk-LXNCAKJZ.js +0 -0
  11. package/dist/chunk-MF7G76QS.cjs +176 -0
  12. package/dist/chunk-MI4YBENQ.cjs +145 -0
  13. package/dist/chunk-MOOGM3DW.cjs +1 -0
  14. package/dist/chunk-NQV2D3FJ.js +14 -0
  15. package/dist/chunk-TJXWL42D.js +124 -0
  16. package/dist/chunk-VYT5KQWF.js +168 -0
  17. package/dist/chunk-XKZQ5W7E.cjs +1189 -0
  18. package/dist/courses/index.cjs +7 -0
  19. package/dist/courses/index.d.cts +58 -0
  20. package/dist/courses/index.d.ts +58 -0
  21. package/dist/courses/index.js +7 -0
  22. package/dist/crew/index.cjs +10 -0
  23. package/dist/crew/index.d.cts +102 -0
  24. package/dist/crew/index.d.ts +102 -0
  25. package/dist/crew/index.js +10 -0
  26. package/dist/crew/vue.cjs +34 -0
  27. package/dist/crew/vue.d.cts +31 -0
  28. package/dist/crew/vue.d.ts +31 -0
  29. package/dist/crew/vue.js +34 -0
  30. package/dist/format/index.cjs +44 -0
  31. package/dist/format/index.d.cts +69 -0
  32. package/dist/format/index.d.ts +69 -0
  33. package/dist/format/index.js +44 -0
  34. package/dist/index.cjs +261 -0
  35. package/dist/index.d.cts +11 -0
  36. package/dist/index.d.ts +11 -0
  37. package/dist/index.js +261 -0
  38. package/dist/media/index.cjs +30 -0
  39. package/dist/media/index.d.cts +89 -0
  40. package/dist/media/index.d.ts +89 -0
  41. package/dist/media/index.js +30 -0
  42. package/dist/models-CY3MmvCg.d.cts +33801 -0
  43. package/dist/models-CY3MmvCg.d.ts +33801 -0
  44. package/dist/money/index.cjs +18 -0
  45. package/dist/money/index.d.cts +66 -0
  46. package/dist/money/index.d.ts +66 -0
  47. package/dist/money/index.js +18 -0
  48. package/dist/pagination/index.cjs +6 -0
  49. package/dist/pagination/index.d.cts +16 -0
  50. package/dist/pagination/index.d.ts +16 -0
  51. package/dist/pagination/index.js +6 -0
  52. package/dist/schemas/index.cjs +158 -0
  53. package/dist/schemas/index.d.cts +1019 -0
  54. package/dist/schemas/index.d.ts +1019 -0
  55. package/dist/schemas/index.js +158 -0
  56. package/dist/types/index.cjs +1 -0
  57. package/dist/types/index.d.cts +143 -0
  58. package/dist/types/index.d.ts +143 -0
  59. package/dist/types/index.js +1 -0
  60. package/package.json +171 -0
  61. package/src/courses/index.ts +202 -0
  62. package/src/crew/index.ts +255 -0
  63. package/src/crew/vue.ts +70 -0
  64. package/src/format/index.ts +265 -0
  65. package/src/index.ts +76 -0
  66. package/src/media/index.ts +224 -0
  67. package/src/money/index.ts +168 -0
  68. package/src/pagination/index.ts +27 -0
  69. package/src/schemas/common.ts +73 -0
  70. package/src/schemas/faq.ts +94 -0
  71. package/src/schemas/fee.ts +37 -0
  72. package/src/schemas/index.ts +6 -0
  73. package/src/schemas/models.ts +996 -0
  74. package/src/schemas/report.ts +306 -0
  75. package/src/schemas/safety-report.ts +163 -0
  76. package/src/types/api.ts +37 -0
  77. package/src/types/compliance.ts +44 -0
  78. package/src/types/index.ts +3 -0
  79. package/src/types/models.ts +124 -0
@@ -0,0 +1,158 @@
1
+ import {
2
+ BaseModel,
3
+ FaqSchema,
4
+ FaqStatus,
5
+ FeeCategoryOptionsSchema,
6
+ FeeSchema,
7
+ ReviewFaqSchema,
8
+ SAFETY_REPORT_STATUS_COLORS,
9
+ SAFETY_REPORT_STATUS_LABELS,
10
+ SafetyReportCategoryFormSchema,
11
+ SafetyReportCategorySchema,
12
+ SafetyReportFilterSchema,
13
+ SafetyReportFormSchema,
14
+ SafetyReportListResponseSchema,
15
+ SafetyReportMediaSchema,
16
+ SafetyReportSchema,
17
+ SafetyReportStatusEnum,
18
+ SafetyReportSubmissionResponseSchema,
19
+ SafetyReportUpdateSchema,
20
+ SubmitFaqQuestionSchema,
21
+ addressSchema,
22
+ aircraftRatingSchema,
23
+ airplanePermissionSchema,
24
+ airplaneSchema,
25
+ airportSchema,
26
+ alertSchema,
27
+ allowedDocumentTypeSchema,
28
+ approachTypeSchema,
29
+ availSchema,
30
+ baseMembershipSchema,
31
+ bookingSchema,
32
+ commentSchema,
33
+ companySchema,
34
+ contactAttributeSchema,
35
+ courseEnrollmentSchema,
36
+ courseFeeSchema,
37
+ courseSchema,
38
+ documentComplianceStatus,
39
+ documentRequirement,
40
+ documentRequirementGroup,
41
+ documentRequirementGroupAssignment,
42
+ documentSchema,
43
+ documentShareSchema,
44
+ documentType,
45
+ eventSchema,
46
+ expenseItemSchema,
47
+ expenseSchema,
48
+ extendedAirplaneSchema,
49
+ feeSchema,
50
+ flightLogSchema,
51
+ invoiceSchema,
52
+ landingFeeSchema,
53
+ landingSchema,
54
+ maintenanceEventEstimationSchema,
55
+ maintenanceEventSchema,
56
+ maintenanceStatusSchema,
57
+ mediaCollection,
58
+ mediaSchema,
59
+ membershipSchema,
60
+ postSchema,
61
+ prePaidPackageSchema,
62
+ priceSchema,
63
+ qualificationSchema,
64
+ recurringFlightSchema,
65
+ roleSchema,
66
+ runwaySchema,
67
+ scheduledFlightSchema,
68
+ settingSchema,
69
+ specialFlightSchema,
70
+ ticketSchema,
71
+ userAircraftRatingSchema,
72
+ userQualificationSchema,
73
+ userSchema,
74
+ waypointSchema,
75
+ zContactDTO,
76
+ zNetGross,
77
+ zNullableBool,
78
+ zPhpMoneyObject
79
+ } from "../chunk-AN55SAGU.js";
80
+ export {
81
+ BaseModel,
82
+ FaqSchema,
83
+ FaqStatus,
84
+ FeeCategoryOptionsSchema,
85
+ FeeSchema,
86
+ ReviewFaqSchema,
87
+ SAFETY_REPORT_STATUS_COLORS,
88
+ SAFETY_REPORT_STATUS_LABELS,
89
+ SafetyReportCategoryFormSchema,
90
+ SafetyReportCategorySchema,
91
+ SafetyReportFilterSchema,
92
+ SafetyReportFormSchema,
93
+ SafetyReportListResponseSchema,
94
+ SafetyReportMediaSchema,
95
+ SafetyReportSchema,
96
+ SafetyReportStatusEnum,
97
+ SafetyReportSubmissionResponseSchema,
98
+ SafetyReportUpdateSchema,
99
+ SubmitFaqQuestionSchema,
100
+ addressSchema,
101
+ aircraftRatingSchema,
102
+ airplanePermissionSchema,
103
+ airplaneSchema,
104
+ airportSchema,
105
+ alertSchema,
106
+ allowedDocumentTypeSchema,
107
+ approachTypeSchema,
108
+ availSchema,
109
+ baseMembershipSchema,
110
+ bookingSchema,
111
+ commentSchema,
112
+ companySchema,
113
+ contactAttributeSchema,
114
+ courseEnrollmentSchema,
115
+ courseFeeSchema,
116
+ courseSchema,
117
+ documentComplianceStatus,
118
+ documentRequirement,
119
+ documentRequirementGroup,
120
+ documentRequirementGroupAssignment,
121
+ documentSchema,
122
+ documentShareSchema,
123
+ documentType,
124
+ eventSchema,
125
+ expenseItemSchema,
126
+ expenseSchema,
127
+ extendedAirplaneSchema,
128
+ feeSchema,
129
+ flightLogSchema,
130
+ invoiceSchema,
131
+ landingFeeSchema,
132
+ landingSchema,
133
+ maintenanceEventEstimationSchema,
134
+ maintenanceEventSchema,
135
+ maintenanceStatusSchema,
136
+ mediaCollection,
137
+ mediaSchema,
138
+ membershipSchema,
139
+ postSchema,
140
+ prePaidPackageSchema,
141
+ priceSchema,
142
+ qualificationSchema,
143
+ recurringFlightSchema,
144
+ roleSchema,
145
+ runwaySchema,
146
+ scheduledFlightSchema,
147
+ settingSchema,
148
+ specialFlightSchema,
149
+ ticketSchema,
150
+ userAircraftRatingSchema,
151
+ userQualificationSchema,
152
+ userSchema,
153
+ waypointSchema,
154
+ zContactDTO,
155
+ zNetGross,
156
+ zNullableBool,
157
+ zPhpMoneyObject
158
+ };
@@ -0,0 +1 @@
1
+ "use strict";require('../chunk-MOOGM3DW.cjs');
@@ -0,0 +1,143 @@
1
+ import { z } from 'zod';
2
+ import { a as addressSchema, b as aircraftRatingSchema, d as airplaneSchema, c as airplanePermissionSchema, e as airportSchema, f as alertSchema, g as allowedDocumentTypeSchema, h as approachTypeSchema, i as availSchema, j as baseMembershipSchema, k as bookingSchema, l as commentSchema, m as companySchema, q as courseSchema, o as courseEnrollmentSchema, p as courseFeeSchema, v as documentSchema, r as documentComplianceStatus, s as documentRequirement, t as documentRequirementGroup, u as documentRequirementGroupAssignment, w as documentShareSchema, x as documentType, y as eventSchema, A as expenseSchema, z as expenseItemSchema, C as extendedAirplaneSchema, E as flightLogSchema, F as invoiceSchema, H as landingSchema, G as landingFeeSchema, J as maintenanceEventSchema, I as maintenanceEventEstimationSchema, K as maintenanceStatusSchema, L as mediaCollection, N as membershipSchema, O as postSchema, P as prePaidPackageSchema, Q as priceSchema, R as qualificationSchema, S as recurringFlightSchema, T as roleSchema, U as runwaySchema, V as scheduledFlightSchema, W as settingSchema, X as specialFlightSchema, Y as ticketSchema, $ as userSchema, Z as userAircraftRatingSchema, _ as userQualificationSchema, a0 as waypointSchema, B as BaseModel$1, D as feeSchema, M as mediaSchema } from '../models-CY3MmvCg.cjs';
3
+
4
+ type BaseModel = z.infer<typeof BaseModel$1>;
5
+ type User = z.infer<typeof userSchema>;
6
+ type Company = z.infer<typeof companySchema>;
7
+ type Media = z.infer<typeof mediaSchema>;
8
+ type MediaCollection = z.infer<typeof mediaCollection>;
9
+ type BaseMembership = z.infer<typeof baseMembershipSchema>;
10
+ type Membership = z.infer<typeof membershipSchema>;
11
+ type Airplane = z.infer<typeof airplaneSchema>;
12
+ type ExtendedAirplane = z.infer<typeof extendedAirplaneSchema>;
13
+ type AirplanePermission = z.infer<typeof airplanePermissionSchema>;
14
+ type LandingFee = z.infer<typeof landingFeeSchema>;
15
+ type AircraftRating = z.infer<typeof aircraftRatingSchema>;
16
+ type UserAircraftRating = z.infer<typeof userAircraftRatingSchema>;
17
+ type UserQualification = z.infer<typeof userQualificationSchema>;
18
+ type Airport = z.infer<typeof airportSchema>;
19
+ type RecurringFlight = z.infer<typeof recurringFlightSchema>;
20
+ type Fee = z.infer<typeof feeSchema>;
21
+ type CourseFee = z.infer<typeof courseFeeSchema>;
22
+ type Price = z.infer<typeof priceSchema>;
23
+ type MaintenanceEvent = z.infer<typeof maintenanceEventSchema>;
24
+ type MaintenanceStatus = z.infer<typeof maintenanceStatusSchema>;
25
+ type MaintenanceEventEstimation = z.infer<typeof maintenanceEventEstimationSchema>;
26
+ type Avail = z.infer<typeof availSchema>;
27
+ type Alert = z.infer<typeof alertSchema>;
28
+ type Booking = z.infer<typeof bookingSchema>;
29
+ type Document = z.infer<typeof documentSchema>;
30
+ type DocumentType = z.infer<typeof documentType>;
31
+ type DocumentRequirement = z.infer<typeof documentRequirement>;
32
+ type DocumentRequirementGroup = z.infer<typeof documentRequirementGroup>;
33
+ type DocumentRequirementGroupAssignment = z.infer<typeof documentRequirementGroupAssignment>;
34
+ type DocumentComplianceStatus = z.infer<typeof documentComplianceStatus>;
35
+ type DocumentShare = z.infer<typeof documentShareSchema>;
36
+ type AllowedDocumentType = z.infer<typeof allowedDocumentTypeSchema>;
37
+ type FlightLog = z.infer<typeof flightLogSchema>;
38
+ type ScheduledFlight = z.infer<typeof scheduledFlightSchema>;
39
+ type Landing = z.infer<typeof landingSchema>;
40
+ type ApproachType = z.infer<typeof approachTypeSchema>;
41
+ type Waypoint = z.infer<typeof waypointSchema>;
42
+ type Invoice = z.infer<typeof invoiceSchema>;
43
+ type Expense = z.infer<typeof expenseSchema>;
44
+ type ExpenseItem = z.infer<typeof expenseItemSchema>;
45
+ type SpecialFlight = z.infer<typeof specialFlightSchema>;
46
+ type PrePaidPackage = z.infer<typeof prePaidPackageSchema>;
47
+ type Qualification = z.infer<typeof qualificationSchema>;
48
+ type Course = z.infer<typeof courseSchema>;
49
+ type CourseEnrollment = z.infer<typeof courseEnrollmentSchema>;
50
+ type Event = z.infer<typeof eventSchema>;
51
+ type Ticket = z.infer<typeof ticketSchema>;
52
+ type Post = z.infer<typeof postSchema>;
53
+ type Comment = z.infer<typeof commentSchema>;
54
+ interface CreateCommentInput {
55
+ body: string;
56
+ parent_id?: number;
57
+ title?: string;
58
+ }
59
+ interface UpdateCommentInput {
60
+ body?: string;
61
+ title?: string;
62
+ }
63
+ type Address = z.infer<typeof addressSchema>;
64
+ type Runway = z.infer<typeof runwaySchema>;
65
+ type Role = z.infer<typeof roleSchema>;
66
+ type Setting = z.infer<typeof settingSchema>;
67
+
68
+ /**
69
+ * Generic response wrapper for data with optional metadata
70
+ * @template T - The data type
71
+ * @template M - The metadata type (optional)
72
+ */
73
+ interface DataWrappedResponse<T, M = undefined> {
74
+ data: T;
75
+ meta?: M;
76
+ }
77
+ interface PaginatedResponse<T = any> {
78
+ data: T[];
79
+ meta: {
80
+ current_page: number;
81
+ from: number;
82
+ last_page: number;
83
+ per_page: number;
84
+ to: number;
85
+ total: number;
86
+ };
87
+ links?: {
88
+ first?: string | null;
89
+ last?: string | null;
90
+ prev?: string | null;
91
+ next?: string | null;
92
+ };
93
+ }
94
+ interface Resource {
95
+ id: number;
96
+ type: string;
97
+ }
98
+ interface ToggleFavoriteResponse {
99
+ id: number;
100
+ hasFavorited: boolean;
101
+ }
102
+
103
+ interface ComplianceRequirement {
104
+ requirement_id: number;
105
+ document_type_class: string;
106
+ document_type_label: string;
107
+ logical_group: string;
108
+ is_satisfied: boolean;
109
+ document: any | null;
110
+ }
111
+ interface ComplianceRequirementGroup {
112
+ group_name: string;
113
+ group_operator: "AND" | "OR";
114
+ group_satisfied: boolean;
115
+ requirements: ComplianceRequirement[];
116
+ }
117
+ interface ComplianceGroup {
118
+ group_id: number;
119
+ group_name: string;
120
+ overall_satisfied: boolean;
121
+ requirement_groups: ComplianceRequirementGroup[];
122
+ }
123
+ interface ComplianceSummary {
124
+ total_groups: number;
125
+ satisfied_groups: number;
126
+ failed_groups: number;
127
+ }
128
+ interface ComplianceData {
129
+ overall_satisfied: boolean;
130
+ requirement_groups: ComplianceGroup[];
131
+ summary: ComplianceSummary;
132
+ }
133
+ interface ComplianceResponse {
134
+ data: ComplianceData;
135
+ meta: {
136
+ model_id: string;
137
+ model_type: string;
138
+ target_model_id: string;
139
+ target_model_type: string;
140
+ };
141
+ }
142
+
143
+ export type { Address, AircraftRating, Airplane, AirplanePermission, Airport, Alert, AllowedDocumentType, ApproachType, Avail, BaseMembership, BaseModel, Booking, Comment, Company, ComplianceData, ComplianceGroup, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Course, CourseEnrollment, 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 };
@@ -0,0 +1,143 @@
1
+ import { z } from 'zod';
2
+ import { a as addressSchema, b as aircraftRatingSchema, d as airplaneSchema, c as airplanePermissionSchema, e as airportSchema, f as alertSchema, g as allowedDocumentTypeSchema, h as approachTypeSchema, i as availSchema, j as baseMembershipSchema, k as bookingSchema, l as commentSchema, m as companySchema, q as courseSchema, o as courseEnrollmentSchema, p as courseFeeSchema, v as documentSchema, r as documentComplianceStatus, s as documentRequirement, t as documentRequirementGroup, u as documentRequirementGroupAssignment, w as documentShareSchema, x as documentType, y as eventSchema, A as expenseSchema, z as expenseItemSchema, C as extendedAirplaneSchema, E as flightLogSchema, F as invoiceSchema, H as landingSchema, G as landingFeeSchema, J as maintenanceEventSchema, I as maintenanceEventEstimationSchema, K as maintenanceStatusSchema, L as mediaCollection, N as membershipSchema, O as postSchema, P as prePaidPackageSchema, Q as priceSchema, R as qualificationSchema, S as recurringFlightSchema, T as roleSchema, U as runwaySchema, V as scheduledFlightSchema, W as settingSchema, X as specialFlightSchema, Y as ticketSchema, $ as userSchema, Z as userAircraftRatingSchema, _ as userQualificationSchema, a0 as waypointSchema, B as BaseModel$1, D as feeSchema, M as mediaSchema } from '../models-CY3MmvCg.js';
3
+
4
+ type BaseModel = z.infer<typeof BaseModel$1>;
5
+ type User = z.infer<typeof userSchema>;
6
+ type Company = z.infer<typeof companySchema>;
7
+ type Media = z.infer<typeof mediaSchema>;
8
+ type MediaCollection = z.infer<typeof mediaCollection>;
9
+ type BaseMembership = z.infer<typeof baseMembershipSchema>;
10
+ type Membership = z.infer<typeof membershipSchema>;
11
+ type Airplane = z.infer<typeof airplaneSchema>;
12
+ type ExtendedAirplane = z.infer<typeof extendedAirplaneSchema>;
13
+ type AirplanePermission = z.infer<typeof airplanePermissionSchema>;
14
+ type LandingFee = z.infer<typeof landingFeeSchema>;
15
+ type AircraftRating = z.infer<typeof aircraftRatingSchema>;
16
+ type UserAircraftRating = z.infer<typeof userAircraftRatingSchema>;
17
+ type UserQualification = z.infer<typeof userQualificationSchema>;
18
+ type Airport = z.infer<typeof airportSchema>;
19
+ type RecurringFlight = z.infer<typeof recurringFlightSchema>;
20
+ type Fee = z.infer<typeof feeSchema>;
21
+ type CourseFee = z.infer<typeof courseFeeSchema>;
22
+ type Price = z.infer<typeof priceSchema>;
23
+ type MaintenanceEvent = z.infer<typeof maintenanceEventSchema>;
24
+ type MaintenanceStatus = z.infer<typeof maintenanceStatusSchema>;
25
+ type MaintenanceEventEstimation = z.infer<typeof maintenanceEventEstimationSchema>;
26
+ type Avail = z.infer<typeof availSchema>;
27
+ type Alert = z.infer<typeof alertSchema>;
28
+ type Booking = z.infer<typeof bookingSchema>;
29
+ type Document = z.infer<typeof documentSchema>;
30
+ type DocumentType = z.infer<typeof documentType>;
31
+ type DocumentRequirement = z.infer<typeof documentRequirement>;
32
+ type DocumentRequirementGroup = z.infer<typeof documentRequirementGroup>;
33
+ type DocumentRequirementGroupAssignment = z.infer<typeof documentRequirementGroupAssignment>;
34
+ type DocumentComplianceStatus = z.infer<typeof documentComplianceStatus>;
35
+ type DocumentShare = z.infer<typeof documentShareSchema>;
36
+ type AllowedDocumentType = z.infer<typeof allowedDocumentTypeSchema>;
37
+ type FlightLog = z.infer<typeof flightLogSchema>;
38
+ type ScheduledFlight = z.infer<typeof scheduledFlightSchema>;
39
+ type Landing = z.infer<typeof landingSchema>;
40
+ type ApproachType = z.infer<typeof approachTypeSchema>;
41
+ type Waypoint = z.infer<typeof waypointSchema>;
42
+ type Invoice = z.infer<typeof invoiceSchema>;
43
+ type Expense = z.infer<typeof expenseSchema>;
44
+ type ExpenseItem = z.infer<typeof expenseItemSchema>;
45
+ type SpecialFlight = z.infer<typeof specialFlightSchema>;
46
+ type PrePaidPackage = z.infer<typeof prePaidPackageSchema>;
47
+ type Qualification = z.infer<typeof qualificationSchema>;
48
+ type Course = z.infer<typeof courseSchema>;
49
+ type CourseEnrollment = z.infer<typeof courseEnrollmentSchema>;
50
+ type Event = z.infer<typeof eventSchema>;
51
+ type Ticket = z.infer<typeof ticketSchema>;
52
+ type Post = z.infer<typeof postSchema>;
53
+ type Comment = z.infer<typeof commentSchema>;
54
+ interface CreateCommentInput {
55
+ body: string;
56
+ parent_id?: number;
57
+ title?: string;
58
+ }
59
+ interface UpdateCommentInput {
60
+ body?: string;
61
+ title?: string;
62
+ }
63
+ type Address = z.infer<typeof addressSchema>;
64
+ type Runway = z.infer<typeof runwaySchema>;
65
+ type Role = z.infer<typeof roleSchema>;
66
+ type Setting = z.infer<typeof settingSchema>;
67
+
68
+ /**
69
+ * Generic response wrapper for data with optional metadata
70
+ * @template T - The data type
71
+ * @template M - The metadata type (optional)
72
+ */
73
+ interface DataWrappedResponse<T, M = undefined> {
74
+ data: T;
75
+ meta?: M;
76
+ }
77
+ interface PaginatedResponse<T = any> {
78
+ data: T[];
79
+ meta: {
80
+ current_page: number;
81
+ from: number;
82
+ last_page: number;
83
+ per_page: number;
84
+ to: number;
85
+ total: number;
86
+ };
87
+ links?: {
88
+ first?: string | null;
89
+ last?: string | null;
90
+ prev?: string | null;
91
+ next?: string | null;
92
+ };
93
+ }
94
+ interface Resource {
95
+ id: number;
96
+ type: string;
97
+ }
98
+ interface ToggleFavoriteResponse {
99
+ id: number;
100
+ hasFavorited: boolean;
101
+ }
102
+
103
+ interface ComplianceRequirement {
104
+ requirement_id: number;
105
+ document_type_class: string;
106
+ document_type_label: string;
107
+ logical_group: string;
108
+ is_satisfied: boolean;
109
+ document: any | null;
110
+ }
111
+ interface ComplianceRequirementGroup {
112
+ group_name: string;
113
+ group_operator: "AND" | "OR";
114
+ group_satisfied: boolean;
115
+ requirements: ComplianceRequirement[];
116
+ }
117
+ interface ComplianceGroup {
118
+ group_id: number;
119
+ group_name: string;
120
+ overall_satisfied: boolean;
121
+ requirement_groups: ComplianceRequirementGroup[];
122
+ }
123
+ interface ComplianceSummary {
124
+ total_groups: number;
125
+ satisfied_groups: number;
126
+ failed_groups: number;
127
+ }
128
+ interface ComplianceData {
129
+ overall_satisfied: boolean;
130
+ requirement_groups: ComplianceGroup[];
131
+ summary: ComplianceSummary;
132
+ }
133
+ interface ComplianceResponse {
134
+ data: ComplianceData;
135
+ meta: {
136
+ model_id: string;
137
+ model_type: string;
138
+ target_model_id: string;
139
+ target_model_type: string;
140
+ };
141
+ }
142
+
143
+ export type { Address, AircraftRating, Airplane, AirplanePermission, Airport, Alert, AllowedDocumentType, ApproachType, Avail, BaseMembership, BaseModel, Booking, Comment, Company, ComplianceData, ComplianceGroup, ComplianceRequirement, ComplianceRequirementGroup, ComplianceResponse, ComplianceSummary, Course, CourseEnrollment, 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 };
@@ -0,0 +1 @@
1
+ import "../chunk-LXNCAKJZ.js";
package/package.json ADDED
@@ -0,0 +1,171 @@
1
+ {
2
+ "name": "@updraft-solutions/mcrit-sdk",
3
+ "version": "0.1.0",
4
+ "description": "Shared TypeScript types, Zod schemas, and pure helpers for the MCRIT aviation fleet management platform",
5
+ "homepage": "https://github.com/updraft-solutions/mcrit-sdk#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/updraft-solutions/mcrit-sdk/issues"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/updraft-solutions/mcrit-sdk.git"
12
+ },
13
+ "author": "Updraft Solutions <info@updraft-solutions.de>",
14
+ "license": "UNLICENSED",
15
+ "type": "module",
16
+ "main": "./dist/index.cjs",
17
+ "module": "./dist/index.js",
18
+ "types": "./dist/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "source": "./src/index.ts",
22
+ "import": {
23
+ "types": "./dist/index.d.ts",
24
+ "default": "./dist/index.js"
25
+ },
26
+ "require": {
27
+ "types": "./dist/index.d.cts",
28
+ "default": "./dist/index.cjs"
29
+ }
30
+ },
31
+ "./schemas": {
32
+ "source": "./src/schemas/index.ts",
33
+ "import": {
34
+ "types": "./dist/schemas/index.d.ts",
35
+ "default": "./dist/schemas/index.js"
36
+ },
37
+ "require": {
38
+ "types": "./dist/schemas/index.d.cts",
39
+ "default": "./dist/schemas/index.cjs"
40
+ }
41
+ },
42
+ "./types": {
43
+ "source": "./src/types/index.ts",
44
+ "import": {
45
+ "types": "./dist/types/index.d.ts",
46
+ "default": "./dist/types/index.js"
47
+ },
48
+ "require": {
49
+ "types": "./dist/types/index.d.cts",
50
+ "default": "./dist/types/index.cjs"
51
+ }
52
+ },
53
+ "./money": {
54
+ "source": "./src/money/index.ts",
55
+ "import": {
56
+ "types": "./dist/money/index.d.ts",
57
+ "default": "./dist/money/index.js"
58
+ },
59
+ "require": {
60
+ "types": "./dist/money/index.d.cts",
61
+ "default": "./dist/money/index.cjs"
62
+ }
63
+ },
64
+ "./courses": {
65
+ "source": "./src/courses/index.ts",
66
+ "import": {
67
+ "types": "./dist/courses/index.d.ts",
68
+ "default": "./dist/courses/index.js"
69
+ },
70
+ "require": {
71
+ "types": "./dist/courses/index.d.cts",
72
+ "default": "./dist/courses/index.cjs"
73
+ }
74
+ },
75
+ "./format": {
76
+ "source": "./src/format/index.ts",
77
+ "import": {
78
+ "types": "./dist/format/index.d.ts",
79
+ "default": "./dist/format/index.js"
80
+ },
81
+ "require": {
82
+ "types": "./dist/format/index.d.cts",
83
+ "default": "./dist/format/index.cjs"
84
+ }
85
+ },
86
+ "./crew": {
87
+ "source": "./src/crew/index.ts",
88
+ "import": {
89
+ "types": "./dist/crew/index.d.ts",
90
+ "default": "./dist/crew/index.js"
91
+ },
92
+ "require": {
93
+ "types": "./dist/crew/index.d.cts",
94
+ "default": "./dist/crew/index.cjs"
95
+ }
96
+ },
97
+ "./crew/vue": {
98
+ "source": "./src/crew/vue.ts",
99
+ "import": {
100
+ "types": "./dist/crew/vue.d.ts",
101
+ "default": "./dist/crew/vue.js"
102
+ },
103
+ "require": {
104
+ "types": "./dist/crew/vue.d.cts",
105
+ "default": "./dist/crew/vue.cjs"
106
+ }
107
+ },
108
+ "./media": {
109
+ "source": "./src/media/index.ts",
110
+ "import": {
111
+ "types": "./dist/media/index.d.ts",
112
+ "default": "./dist/media/index.js"
113
+ },
114
+ "require": {
115
+ "types": "./dist/media/index.d.cts",
116
+ "default": "./dist/media/index.cjs"
117
+ }
118
+ },
119
+ "./pagination": {
120
+ "source": "./src/pagination/index.ts",
121
+ "import": {
122
+ "types": "./dist/pagination/index.d.ts",
123
+ "default": "./dist/pagination/index.js"
124
+ },
125
+ "require": {
126
+ "types": "./dist/pagination/index.d.cts",
127
+ "default": "./dist/pagination/index.cjs"
128
+ }
129
+ }
130
+ },
131
+ "files": [
132
+ "dist",
133
+ "src",
134
+ "README.md"
135
+ ],
136
+ "publishConfig": {
137
+ "access": "public"
138
+ },
139
+ "dependencies": {
140
+ "dinero.js": "^1.9.1",
141
+ "lodash-es": "^4.17.21",
142
+ "zod": "^3.25.0"
143
+ },
144
+ "peerDependencies": {
145
+ "moment-timezone": "^0.5.45",
146
+ "vue": "^3.5.0"
147
+ },
148
+ "peerDependenciesMeta": {
149
+ "moment-timezone": {
150
+ "optional": true
151
+ },
152
+ "vue": {
153
+ "optional": true
154
+ }
155
+ },
156
+ "devDependencies": {
157
+ "@types/dinero.js": "^1.9.4",
158
+ "@types/lodash-es": "^4.17.12",
159
+ "moment-timezone": "^0.5.45",
160
+ "tsup": "^8.4.0",
161
+ "typescript": "^5.7.0",
162
+ "vitest": "^3.0.0",
163
+ "vue": "^3.5.0"
164
+ },
165
+ "scripts": {
166
+ "build": "tsup",
167
+ "dev": "tsup --watch",
168
+ "typecheck": "tsc --noEmit",
169
+ "test": "vitest run"
170
+ }
171
+ }