@updraft-solutions/mcrit-sdk 0.10.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +11 -25
  2. package/dist/{chunk-IDEPTVFF.cjs → chunk-HHQ7PFX2.cjs} +40 -28
  3. package/dist/{chunk-ZKXYKICY.js → chunk-VFCUI2TH.js} +40 -28
  4. package/dist/crew/index.d.cts +1 -1
  5. package/dist/crew/index.d.ts +1 -1
  6. package/dist/index.cjs +9 -5
  7. package/dist/index.d.cts +3 -3
  8. package/dist/index.d.ts +3 -3
  9. package/dist/index.js +25 -21
  10. package/dist/media/index.d.cts +2 -2
  11. package/dist/media/index.d.ts +2 -2
  12. package/dist/money/index.d.cts +5 -5
  13. package/dist/money/index.d.ts +5 -5
  14. package/dist/sanitize/index.d.cts +1 -1
  15. package/dist/sanitize/index.d.ts +1 -1
  16. package/dist/schemas/index.cjs +6 -2
  17. package/dist/schemas/index.d.cts +122 -123
  18. package/dist/schemas/index.d.ts +122 -123
  19. package/dist/schemas/index.js +9 -5
  20. package/dist/{training-DRuphnSP.d.cts → training-BNAGw2Te.d.cts} +17671 -17657
  21. package/dist/{training-DRuphnSP.d.ts → training-BNAGw2Te.d.ts} +17671 -17657
  22. package/dist/types/index.cjs +1 -1
  23. package/dist/types/index.d.cts +137 -2
  24. package/dist/types/index.d.ts +137 -2
  25. package/dist/types/index.js +1 -1
  26. package/package.json +3 -2
  27. package/src/crew/index.ts +1 -1
  28. package/src/index.ts +18 -0
  29. package/src/media/index.ts +2 -2
  30. package/src/money/index.ts +4 -4
  31. package/src/sanitize/index.ts +1 -1
  32. package/src/schemas/common.ts +1 -1
  33. package/src/schemas/equipment.ts +1 -2
  34. package/src/schemas/form-template.ts +1 -1
  35. package/src/schemas/models.ts +51 -33
  36. package/src/schemas/training.ts +2 -2
  37. package/src/types/compliance.ts +1 -1
  38. package/src/types/index.ts +1 -0
  39. package/src/types/models.ts +1 -0
  40. package/src/types/operating-hours.ts +163 -0
  41. /package/dist/{chunk-2WJHTRIE.js → chunk-UV5JLKAL.js} +0 -0
  42. /package/dist/{chunk-DCEOET63.cjs → chunk-YVC6Q3YU.cjs} +0 -0
@@ -1,4 +1,4 @@
1
- export { A as AttachSyllabusElementForm, a as AttachSyllabusElementFormSchema, B as BaseModel, C as CourseCheckSyllabus, b as CreateFormSubmissionInput, c as CreateFormTemplateAssignmentInput, d as CreateFormTemplateInput, e as CreateSyllabusFromTemplateForm, f as CreateSyllabusFromTemplateFormSchema, g as CreateSyllabusFromTemplateResult, E as EnrollmentTrainingElement, h as EnrollmentTrainingStatus, i as EnrollmentTrainingStatusEnum, F as FieldLabel, j as FieldLabelSchema, k as FormFieldType, l as FormSubmission, m as FormSubmissionSchema, n as FormSubmissionShare, o as FormSubmissionShareBase, p as FormSubmissionShareBaseSchema, q as FormSubmissionShareSchema, r as FormSubmissionSource, s as FormSubmissionStatus, t as FormTemplate, u as FormTemplateAssignment, v as FormTemplateAssignmentSchema, w as FormTemplateSchema, G as GradeHistoryItem, x as GradingScale, y as GradingScaleForm, z as GradingScaleFormSchema, D as GradingScalePoint, I as ImpersonationParticipant, H as ImpersonationState, J as InvalidateTrainingRecordResponse, R as ReorderSyllabusElementItem, K as ReorderSyllabusElementItemSchema, L as RequiredForm, M as RequiredFormSchema, N as RequiredFormVia, O as RequiredFormViaCrew, P as RequiredFormViaCrewSchema, Q as RequiredFormViaSchema, S as ReviewFormSubmissionInput, T as SchemaField, U as SchemaFieldSchema, V as SchemaSection, W as SchemaSectionSchema, X as ShowWhen, Y as ShowWhenSchema, Z as SignOffTrainingElementForm, _ as SignOffTrainingElementFormSchema, $ as Signature, a0 as SignatureSchema, a1 as StoreSyllabusForm, a2 as StoreSyllabusFormSchema, a3 as SubmissionFile, a4 as SubmissionFileSchema, a5 as Syllabus, a6 as SyllabusElement, a7 as SyllabusElementMutationResult, a8 as SyllabusKind, a9 as SyllabusKindEnum, aa as SyllabusRolloutResult, ab as SyllabusRolloutResultItem, ac as SyllabusRolloutSkippedItem, ad as TemplateSchema, ae as TemplateSchemaSchema, af as TrainingElement, ag as TrainingElementForm, ah as TrainingElementFormSchema, ai as TrainingElementKind, aj as TrainingElementKindEnum, ak as TrainingRecord, al as TrainingRecordEntry, am as TrainingRecordEntryInput, an as TrainingRecordResult, ao as TrainingRecordResultEnum, ap as TrainingRecordStatus, aq as TrainingRecordStatusEnum, ar as TrainingSignature, as as TrainingTemplatePack, at as UpdateFormTemplateInput, au as UpdateSyllabusElementForm, av as UpdateSyllabusElementFormSchema, aw as UpdateSyllabusForm, ax as UpdateSyllabusFormSchema, ay as UpsertTrainingRecordForm, az as UpsertTrainingRecordFormSchema, aA as UsedByCourse, aB as activitySchema, aC as addressSchema, aD as aircraftPositionSchema, aE as aircraftRatingSchema, aF as airplaneIssueSchema, aG as airplaneIssueSeverityEnum, aH as airplaneIssueStatusEnum, aI as airplanePermissionSchema, aJ as airplaneSchema, aK as airplaneShareInviteSchema, aL as airportSchema, aM as alertSchema, aN as allowedDocumentTypeSchema, aO as approachTypeSchema, aP as availSchema, aQ as baseMembershipSchema, aR as billingProfileSchema, aS as bookingSchema, aT as bookingWaypointSchema, aU as commentSchema, aV as companySchema, aW as contactAttributeSchema, aX as courseCheckSyllabusSchema, aY as courseEnrollmentMetricsSchema, aZ as courseEnrollmentSchema, a_ as courseFeeSchema, a$ as courseSchema, b0 as createSyllabusFromTemplateResultSchema, b1 as documentComplianceStatus, b2 as documentRequirement, b3 as documentRequirementGroup, b4 as documentRequirementGroupAssignment, b5 as documentSchema, b6 as documentShareSchema, b7 as documentType, b8 as enrollmentTrainingElementSchema, b9 as eventSchema, ba as expenseItemSchema, bb as expenseSchema, bc as extendedAirplaneSchema, bd as feeCategoryOptionsSchema, be as feeSchema, bf as flightLogSchema, bg as gradeHistoryItemSchema, bh as gradingScalePointSchema, bi as gradingScaleSchema, bj as impersonationParticipantSchema, bk as impersonationStateSchema, bl as invalidateTrainingRecordResponseSchema, bm as invoiceSchema, bn as landingFeeSchema, bo as landingSchema, bp as maintenanceEventEstimationSchema, bq as maintenanceEventSchema, br as maintenanceStatusSchema, bs as mediaCollection, bt as mediaSchema, bu as membershipSchema, bv as membershipSignupSchema, bw as postSchema, bx as prePaidPackageAssignmentSchema, by as prePaidPackageSchema, bz as priceSchema, bA as qualificationSchema, bB as recurringFlightSchema, bC as roleSchema, bD as runwaySchema, bE as scheduledFlightSchema, bF as settingSchema, bG as specialFlightSchema, bH as syllabusElementMutationResultSchema, bI as syllabusElementSchema, bJ as syllabusRolloutResultItemSchema, bK as syllabusRolloutResultSchema, bL as syllabusRolloutSkippedItemSchema, bM as syllabusSchema, bN as tagSchema, bO as ticketSchema, bP as trainingElementSchema, bQ as trainingRecordEntryInputSchema, bR as trainingRecordEntrySchema, bS as trainingRecordSchema, bT as trainingSignatureSchema, bU as trainingTemplatePackSchema, bV as usedByCourseSchema, bW as userAircraftRatingSchema, bX as userQualificationSchema, bY as userSchema, bZ as waypointSchema, b_ as zContactDTO, b$ as zNetGross, c0 as zNullableBool, c1 as zPhpMoneyObject } from '../training-DRuphnSP.js';
1
+ export { A as AttachSyllabusElementForm, a as AttachSyllabusElementFormSchema, B as BaseModel, C as CourseCheckSyllabus, b as CreateFormSubmissionInput, c as CreateFormTemplateAssignmentInput, d as CreateFormTemplateInput, e as CreateSyllabusFromTemplateForm, f as CreateSyllabusFromTemplateFormSchema, g as CreateSyllabusFromTemplateResult, E as EnrollmentTrainingElement, h as EnrollmentTrainingStatus, i as EnrollmentTrainingStatusEnum, F as FieldLabel, j as FieldLabelSchema, k as FormFieldType, l as FormSubmission, m as FormSubmissionSchema, n as FormSubmissionShare, o as FormSubmissionShareBase, p as FormSubmissionShareBaseSchema, q as FormSubmissionShareSchema, r as FormSubmissionSource, s as FormSubmissionStatus, t as FormTemplate, u as FormTemplateAssignment, v as FormTemplateAssignmentSchema, w as FormTemplateSchema, x as FuelUnit, G as GradeHistoryItem, y as GradingScale, z as GradingScaleForm, D as GradingScaleFormSchema, H as GradingScalePoint, I as ImpersonationParticipant, J as ImpersonationState, K as InvalidateTrainingRecordResponse, R as ReorderSyllabusElementItem, L as ReorderSyllabusElementItemSchema, M as RequiredForm, N as RequiredFormSchema, O as RequiredFormVia, P as RequiredFormViaCrew, Q as RequiredFormViaCrewSchema, S as RequiredFormViaSchema, T as ReviewFormSubmissionInput, U as SchemaField, V as SchemaFieldSchema, W as SchemaSection, X as SchemaSectionSchema, Y as ShowWhen, Z as ShowWhenSchema, _ as SignOffTrainingElementForm, $ as SignOffTrainingElementFormSchema, a0 as Signature, a1 as SignatureSchema, a2 as StoreSyllabusForm, a3 as StoreSyllabusFormSchema, a4 as SubmissionFile, a5 as SubmissionFileSchema, a6 as Syllabus, a7 as SyllabusElement, a8 as SyllabusElementMutationResult, a9 as SyllabusKind, aa as SyllabusKindEnum, ab as SyllabusRolloutResult, ac as SyllabusRolloutResultItem, ad as SyllabusRolloutSkippedItem, ae as TemplateSchema, af as TemplateSchemaSchema, ag as TrainingElement, ah as TrainingElementForm, ai as TrainingElementFormSchema, aj as TrainingElementKind, ak as TrainingElementKindEnum, al as TrainingRecord, am as TrainingRecordEntry, an as TrainingRecordEntryInput, ao as TrainingRecordResult, ap as TrainingRecordResultEnum, aq as TrainingRecordStatus, ar as TrainingRecordStatusEnum, as as TrainingSignature, at as TrainingTemplatePack, au as UpdateFormTemplateInput, av as UpdateSyllabusElementForm, aw as UpdateSyllabusElementFormSchema, ax as UpdateSyllabusForm, ay as UpdateSyllabusFormSchema, az as UpsertTrainingRecordForm, aA as UpsertTrainingRecordFormSchema, aB as UsedByCourse, aC as activitySchema, aD as addressSchema, aE as aircraftPositionSchema, aF as aircraftRatingSchema, aG as airplaneIssueSchema, aH as airplaneIssueSeverityEnum, aI as airplaneIssueStatusEnum, aJ as airplanePermissionSchema, aK as airplaneSchema, aL as airplaneShareInviteSchema, aM as airportSchema, aN as alertSchema, aO as allowedDocumentTypeSchema, aP as approachTypeSchema, aQ as availSchema, aR as baseMembershipSchema, aS as billingProfileSchema, aT as bookingSchema, aU as bookingWaypointSchema, aV as commentSchema, aW as companySchema, aX as contactAttributeSchema, aY as courseCheckSyllabusSchema, aZ as courseEnrollmentMetricsSchema, a_ as courseEnrollmentSchema, a$ as courseFeeSchema, b0 as courseSchema, b1 as createSyllabusFromTemplateResultSchema, b2 as documentComplianceStatus, b3 as documentRequirement, b4 as documentRequirementGroup, b5 as documentRequirementGroupAssignment, b6 as documentSchema, b7 as documentShareSchema, b8 as documentType, b9 as enrollmentTrainingElementSchema, ba as eventSchema, bb as expenseItemSchema, bc as expenseSchema, bd as extendedAirplaneSchema, be as feeCategoryOptionsSchema, bf as feeSchema, bg as flightLogSchema, bh as fuelUnitSchema, bi as gradeHistoryItemSchema, bj as gradingScalePointSchema, bk as gradingScaleSchema, bl as impersonationParticipantSchema, bm as impersonationStateSchema, bn as invalidateTrainingRecordResponseSchema, bo as invoiceSchema, bp as landingFeeSchema, bq as landingSchema, br as maintenanceEventEstimationSchema, bs as maintenanceEventSchema, bt as maintenanceStatusSchema, bu as mediaCollection, bv as mediaSchema, bw as membershipSchema, bx as membershipSignupSchema, by as postSchema, bz as postSubjectSchema, bA as prePaidPackageAssignmentSchema, bB as prePaidPackageSchema, bC as priceSchema, bD as qualificationSchema, bE as recurringFlightSchema, bF as roleSchema, bG as runwaySchema, bH as scheduledFlightSchema, bI as settingSchema, bJ as specialFlightSchema, bK as syllabusElementMutationResultSchema, bL as syllabusElementSchema, bM as syllabusRolloutResultItemSchema, bN as syllabusRolloutResultSchema, bO as syllabusRolloutSkippedItemSchema, bP as syllabusSchema, bQ as tagSchema, bR as ticketSchema, bS as trainingElementSchema, bT as trainingRecordEntryInputSchema, bU as trainingRecordEntrySchema, bV as trainingRecordSchema, bW as trainingSignatureSchema, bX as trainingTemplatePackSchema, bY as usedByCourseSchema, bZ as userAircraftRatingSchema, b_ as userQualificationSchema, b$ as userSchema, c0 as waypointSchema, c1 as zContactDTO, c2 as zMoneyObject, c3 as zNetGross, c4 as zNullableBool } from '../training-BNAGw2Te.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
  is_active: boolean;
@@ -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
  is_active: boolean;
@@ -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;
@@ -214,21 +214,21 @@ declare const SafetyReportCategorySchema: z.ZodObject<{
214
214
  created_at: z.ZodOptional<z.ZodString>;
215
215
  updated_at: z.ZodOptional<z.ZodString>;
216
216
  }, "strip", z.ZodTypeAny, {
217
- name: string;
217
+ sort_order: number;
218
218
  id: number;
219
+ name: string;
219
220
  description: string | null;
220
221
  is_active: boolean;
221
- sort_order: number;
222
222
  color: string;
223
223
  created_at?: string | undefined;
224
224
  updated_at?: string | undefined;
225
225
  is_global?: boolean | undefined;
226
226
  }, {
227
- name: string;
227
+ sort_order: number;
228
228
  id: number;
229
+ name: string;
229
230
  description: string | null;
230
231
  is_active: boolean;
231
- sort_order: number;
232
232
  color: string;
233
233
  created_at?: string | undefined;
234
234
  updated_at?: string | undefined;
@@ -243,15 +243,15 @@ declare const SafetyReportCategoryFormSchema: z.ZodObject<{
243
243
  is_active: z.ZodOptional<z.ZodBoolean>;
244
244
  }, "strip", z.ZodTypeAny, {
245
245
  name: string;
246
+ sort_order?: number | undefined;
246
247
  description?: string | null | undefined;
247
248
  is_active?: boolean | undefined;
248
- sort_order?: number | undefined;
249
249
  color?: string | null | undefined;
250
250
  }, {
251
251
  name: string;
252
+ sort_order?: number | undefined;
252
253
  description?: string | null | undefined;
253
254
  is_active?: boolean | undefined;
254
- sort_order?: number | undefined;
255
255
  color?: string | null | undefined;
256
256
  }>;
257
257
  type SafetyReportCategoryForm = z.infer<typeof SafetyReportCategoryFormSchema>;
@@ -293,21 +293,21 @@ declare const SafetyReportSchema: z.ZodObject<{
293
293
  created_at: z.ZodOptional<z.ZodString>;
294
294
  updated_at: z.ZodOptional<z.ZodString>;
295
295
  }, "strip", z.ZodTypeAny, {
296
- name: string;
296
+ sort_order: number;
297
297
  id: number;
298
+ name: string;
298
299
  description: string | null;
299
300
  is_active: boolean;
300
- sort_order: number;
301
301
  color: string;
302
302
  created_at?: string | undefined;
303
303
  updated_at?: string | undefined;
304
304
  is_global?: boolean | undefined;
305
305
  }, {
306
- name: string;
306
+ sort_order: number;
307
307
  id: number;
308
+ name: string;
308
309
  description: string | null;
309
310
  is_active: boolean;
310
- sort_order: number;
311
311
  color: string;
312
312
  created_at?: string | undefined;
313
313
  updated_at?: string | undefined;
@@ -337,8 +337,8 @@ declare const SafetyReportSchema: z.ZodObject<{
337
337
  updated_at: z.ZodString;
338
338
  can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
339
339
  }, "strip", z.ZodTypeAny, {
340
- status: "new" | "under_review" | "action_taken" | "closed";
341
340
  id: number;
341
+ status: "new" | "under_review" | "action_taken" | "closed";
342
342
  created_at: string;
343
343
  updated_at: string;
344
344
  description: string;
@@ -347,11 +347,11 @@ declare const SafetyReportSchema: z.ZodObject<{
347
347
  location: string | null;
348
348
  can?: Record<string, boolean> | undefined;
349
349
  category?: {
350
- name: string;
350
+ sort_order: number;
351
351
  id: number;
352
+ name: string;
352
353
  description: string | null;
353
354
  is_active: boolean;
354
- sort_order: number;
355
355
  color: string;
356
356
  created_at?: string | undefined;
357
357
  updated_at?: string | undefined;
@@ -366,8 +366,8 @@ declare const SafetyReportSchema: z.ZodObject<{
366
366
  }[] | undefined;
367
367
  attachments_count?: number | undefined;
368
368
  }, {
369
- status: "new" | "under_review" | "action_taken" | "closed";
370
369
  id: number;
370
+ status: "new" | "under_review" | "action_taken" | "closed";
371
371
  created_at: string;
372
372
  updated_at: string;
373
373
  description: string;
@@ -376,11 +376,11 @@ declare const SafetyReportSchema: z.ZodObject<{
376
376
  location: string | null;
377
377
  can?: Record<string, boolean> | undefined;
378
378
  category?: {
379
- name: string;
379
+ sort_order: number;
380
380
  id: number;
381
+ name: string;
381
382
  description: string | null;
382
383
  is_active: boolean;
383
- sort_order: number;
384
384
  color: string;
385
385
  created_at?: string | undefined;
386
386
  updated_at?: string | undefined;
@@ -415,21 +415,21 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
415
415
  created_at: z.ZodOptional<z.ZodString>;
416
416
  updated_at: z.ZodOptional<z.ZodString>;
417
417
  }, "strip", z.ZodTypeAny, {
418
- name: string;
418
+ sort_order: number;
419
419
  id: number;
420
+ name: string;
420
421
  description: string | null;
421
422
  is_active: boolean;
422
- sort_order: number;
423
423
  color: string;
424
424
  created_at?: string | undefined;
425
425
  updated_at?: string | undefined;
426
426
  is_global?: boolean | undefined;
427
427
  }, {
428
- name: string;
428
+ sort_order: number;
429
429
  id: number;
430
+ name: string;
430
431
  description: string | null;
431
432
  is_active: boolean;
432
- sort_order: number;
433
433
  color: string;
434
434
  created_at?: string | undefined;
435
435
  updated_at?: string | undefined;
@@ -459,8 +459,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
459
459
  updated_at: z.ZodString;
460
460
  can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
461
461
  }, "strip", z.ZodTypeAny, {
462
- status: "new" | "under_review" | "action_taken" | "closed";
463
462
  id: number;
463
+ status: "new" | "under_review" | "action_taken" | "closed";
464
464
  created_at: string;
465
465
  updated_at: string;
466
466
  description: string;
@@ -469,11 +469,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
469
469
  location: string | null;
470
470
  can?: Record<string, boolean> | undefined;
471
471
  category?: {
472
- name: string;
472
+ sort_order: number;
473
473
  id: number;
474
+ name: string;
474
475
  description: string | null;
475
476
  is_active: boolean;
476
- sort_order: number;
477
477
  color: string;
478
478
  created_at?: string | undefined;
479
479
  updated_at?: string | undefined;
@@ -488,8 +488,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
488
488
  }[] | undefined;
489
489
  attachments_count?: number | undefined;
490
490
  }, {
491
- status: "new" | "under_review" | "action_taken" | "closed";
492
491
  id: number;
492
+ status: "new" | "under_review" | "action_taken" | "closed";
493
493
  created_at: string;
494
494
  updated_at: string;
495
495
  description: string;
@@ -498,11 +498,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
498
498
  location: string | null;
499
499
  can?: Record<string, boolean> | undefined;
500
500
  category?: {
501
- name: string;
501
+ sort_order: number;
502
502
  id: number;
503
+ name: string;
503
504
  description: string | null;
504
505
  is_active: boolean;
505
- sort_order: number;
506
506
  color: string;
507
507
  created_at?: string | undefined;
508
508
  updated_at?: string | undefined;
@@ -557,8 +557,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
557
557
  }>>;
558
558
  }, "strip", z.ZodTypeAny, {
559
559
  data: {
560
- status: "new" | "under_review" | "action_taken" | "closed";
561
560
  id: number;
561
+ status: "new" | "under_review" | "action_taken" | "closed";
562
562
  created_at: string;
563
563
  updated_at: string;
564
564
  description: string;
@@ -567,11 +567,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
567
567
  location: string | null;
568
568
  can?: Record<string, boolean> | undefined;
569
569
  category?: {
570
- name: string;
570
+ sort_order: number;
571
571
  id: number;
572
+ name: string;
572
573
  description: string | null;
573
574
  is_active: boolean;
574
- sort_order: number;
575
575
  color: string;
576
576
  created_at?: string | undefined;
577
577
  updated_at?: string | undefined;
@@ -602,8 +602,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
602
602
  } | undefined;
603
603
  }, {
604
604
  data: {
605
- status: "new" | "under_review" | "action_taken" | "closed";
606
605
  id: number;
606
+ status: "new" | "under_review" | "action_taken" | "closed";
607
607
  created_at: string;
608
608
  updated_at: string;
609
609
  description: string;
@@ -612,11 +612,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
612
612
  location: string | null;
613
613
  can?: Record<string, boolean> | undefined;
614
614
  category?: {
615
- name: string;
615
+ sort_order: number;
616
616
  id: number;
617
+ name: string;
617
618
  description: string | null;
618
619
  is_active: boolean;
619
- sort_order: number;
620
620
  color: string;
621
621
  created_at?: string | undefined;
622
622
  updated_at?: string | undefined;
@@ -978,10 +978,10 @@ declare const courseMilestoneSchema: z.ZodObject<{
978
978
  delete?: boolean | null | undefined;
979
979
  }>>;
980
980
  }, "strip", z.ZodTypeAny, {
981
- name: string;
981
+ sort_order: number;
982
982
  id: number;
983
+ name: string;
983
984
  kind: string;
984
- sort_order: number;
985
985
  course_id: number;
986
986
  is_prerequisite: boolean;
987
987
  type?: "courseMilestone" | undefined;
@@ -999,10 +999,10 @@ declare const courseMilestoneSchema: z.ZodObject<{
999
999
  } | null | undefined;
1000
1000
  completion_rule?: Record<string, unknown> | null | undefined;
1001
1001
  }, {
1002
- name: string;
1002
+ sort_order: number;
1003
1003
  id: number;
1004
+ name: string;
1004
1005
  kind: string;
1005
- sort_order: number;
1006
1006
  course_id: number;
1007
1007
  is_prerequisite: boolean;
1008
1008
  type?: "courseMilestone" | undefined;
@@ -1033,15 +1033,15 @@ declare const CourseMilestoneFormSchema: z.ZodObject<{
1033
1033
  name: string;
1034
1034
  kind: string;
1035
1035
  is_prerequisite: boolean;
1036
- description?: string | null | undefined;
1037
1036
  sort_order?: number | undefined;
1037
+ description?: string | null | undefined;
1038
1038
  requires_form_template_id?: number | null | undefined;
1039
1039
  completion_rule?: Record<string, unknown> | null | undefined;
1040
1040
  }, {
1041
1041
  name: string;
1042
+ sort_order?: number | undefined;
1042
1043
  description?: string | null | undefined;
1043
1044
  kind?: string | undefined;
1044
- sort_order?: number | undefined;
1045
1045
  is_prerequisite?: boolean | undefined;
1046
1046
  requires_form_template_id?: number | null | undefined;
1047
1047
  completion_rule?: Record<string, unknown> | null | undefined;
@@ -1086,10 +1086,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1086
1086
  delete?: boolean | null | undefined;
1087
1087
  }>>;
1088
1088
  }, "strip", z.ZodTypeAny, {
1089
- name: string;
1089
+ sort_order: number;
1090
1090
  id: number;
1091
+ name: string;
1091
1092
  kind: string;
1092
- sort_order: number;
1093
1093
  course_id: number;
1094
1094
  is_prerequisite: boolean;
1095
1095
  type?: "courseMilestone" | undefined;
@@ -1107,10 +1107,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1107
1107
  } | null | undefined;
1108
1108
  completion_rule?: Record<string, unknown> | null | undefined;
1109
1109
  }, {
1110
- name: string;
1110
+ sort_order: number;
1111
1111
  id: number;
1112
+ name: string;
1112
1113
  kind: string;
1113
- sort_order: number;
1114
1114
  course_id: number;
1115
1115
  is_prerequisite: boolean;
1116
1116
  type?: "courseMilestone" | undefined;
@@ -1176,10 +1176,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1176
1176
  } | undefined;
1177
1177
  notes?: string | null | undefined;
1178
1178
  milestone?: {
1179
- name: string;
1179
+ sort_order: number;
1180
1180
  id: number;
1181
+ name: string;
1181
1182
  kind: string;
1182
- sort_order: number;
1183
1183
  course_id: number;
1184
1184
  is_prerequisite: boolean;
1185
1185
  type?: "courseMilestone" | undefined;
@@ -1218,10 +1218,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1218
1218
  } | undefined;
1219
1219
  notes?: string | null | undefined;
1220
1220
  milestone?: {
1221
- name: string;
1221
+ sort_order: number;
1222
1222
  id: number;
1223
+ name: string;
1223
1224
  kind: string;
1224
- sort_order: number;
1225
1225
  course_id: number;
1226
1226
  is_prerequisite: boolean;
1227
1227
  type?: "courseMilestone" | undefined;
@@ -1251,8 +1251,7 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1251
1251
  type CourseEnrollmentMilestone = z.infer<typeof courseEnrollmentMilestoneSchema>;
1252
1252
 
1253
1253
  /**
1254
- * Company-scoped equipment catalog entry (m-crit-api
1255
- * docs/features/airplane-equipment.md). Assigned to airplanes via the
1254
+ * Company-scoped equipment catalog entry, assigned to airplanes via the
1256
1255
  * airplane PATCH `equipment` array.
1257
1256
  */
1258
1257
  declare const equipmentSchema: z.ZodObject<{
@@ -1262,14 +1261,14 @@ declare const equipmentSchema: z.ZodObject<{
1262
1261
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1263
1262
  manual_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1264
1263
  }, "strip", z.ZodTypeAny, {
1265
- name: string;
1266
1264
  id: number;
1265
+ name: string;
1267
1266
  type?: "equipment" | undefined;
1268
1267
  description?: string | null | undefined;
1269
1268
  manual_url?: string | null | undefined;
1270
1269
  }, {
1271
- name: string;
1272
1270
  id: number;
1271
+ name: string;
1273
1272
  type?: "equipment" | undefined;
1274
1273
  description?: string | null | undefined;
1275
1274
  manual_url?: string | null | undefined;
@@ -1461,22 +1460,22 @@ declare const NewsletterCategorySchema: z.ZodObject<{
1461
1460
  created_at: z.ZodOptional<z.ZodString>;
1462
1461
  updated_at: z.ZodOptional<z.ZodString>;
1463
1462
  }, "strip", z.ZodTypeAny, {
1464
- name: string;
1463
+ sort_order: number;
1465
1464
  id: number;
1465
+ name: string;
1466
1466
  key: string;
1467
1467
  is_active: boolean;
1468
- sort_order: number;
1469
1468
  is_mandatory: boolean;
1470
1469
  type?: "newsletter_category" | undefined;
1471
1470
  created_at?: string | undefined;
1472
1471
  updated_at?: string | undefined;
1473
1472
  description?: string | null | undefined;
1474
1473
  }, {
1475
- name: string;
1474
+ sort_order: number;
1476
1475
  id: number;
1476
+ name: string;
1477
1477
  key: string;
1478
1478
  is_active: boolean;
1479
- sort_order: number;
1480
1479
  is_mandatory: boolean;
1481
1480
  type?: "newsletter_category" | undefined;
1482
1481
  created_at?: string | undefined;
@@ -1628,22 +1627,22 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1628
1627
  created_at: z.ZodOptional<z.ZodString>;
1629
1628
  updated_at: z.ZodOptional<z.ZodString>;
1630
1629
  }, "strip", z.ZodTypeAny, {
1631
- name: string;
1630
+ sort_order: number;
1632
1631
  id: number;
1632
+ name: string;
1633
1633
  key: string;
1634
1634
  is_active: boolean;
1635
- sort_order: number;
1636
1635
  is_mandatory: boolean;
1637
1636
  type?: "newsletter_category" | undefined;
1638
1637
  created_at?: string | undefined;
1639
1638
  updated_at?: string | undefined;
1640
1639
  description?: string | null | undefined;
1641
1640
  }, {
1642
- name: string;
1641
+ sort_order: number;
1643
1642
  id: number;
1643
+ name: string;
1644
1644
  key: string;
1645
1645
  is_active: boolean;
1646
- sort_order: number;
1647
1646
  is_mandatory: boolean;
1648
1647
  type?: "newsletter_category" | undefined;
1649
1648
  created_at?: string | undefined;
@@ -1788,19 +1787,19 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1788
1787
  name: z.ZodString;
1789
1788
  email: z.ZodOptional<z.ZodString>;
1790
1789
  }, "strip", z.ZodTypeAny, {
1791
- name: string;
1792
1790
  id: number;
1791
+ name: string;
1793
1792
  email?: string | undefined;
1794
1793
  }, {
1795
- name: string;
1796
1794
  id: number;
1795
+ name: string;
1797
1796
  email?: string | undefined;
1798
1797
  }>>>;
1799
1798
  created_at: z.ZodOptional<z.ZodString>;
1800
1799
  updated_at: z.ZodOptional<z.ZodString>;
1801
1800
  }, "strip", z.ZodTypeAny, {
1802
- name: string;
1803
1801
  id: number;
1802
+ name: string;
1804
1803
  is_active: boolean;
1805
1804
  company_id: number | null;
1806
1805
  schema_version: number;
@@ -1839,11 +1838,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1839
1838
  updated_at?: string | undefined;
1840
1839
  description?: string | null | undefined;
1841
1840
  category?: {
1842
- name: string;
1841
+ sort_order: number;
1843
1842
  id: number;
1843
+ name: string;
1844
1844
  key: string;
1845
1845
  is_active: boolean;
1846
- sort_order: number;
1847
1846
  is_mandatory: boolean;
1848
1847
  type?: "newsletter_category" | undefined;
1849
1848
  created_at?: string | undefined;
@@ -1853,14 +1852,14 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1853
1852
  created_by?: number | null | undefined;
1854
1853
  is_system?: boolean | undefined;
1855
1854
  creator?: {
1856
- name: string;
1857
1855
  id: number;
1856
+ name: string;
1858
1857
  email?: string | undefined;
1859
1858
  } | null | undefined;
1860
1859
  preheader?: string | null | undefined;
1861
1860
  }, {
1862
- name: string;
1863
1861
  id: number;
1862
+ name: string;
1864
1863
  is_active: boolean;
1865
1864
  company_id: number | null;
1866
1865
  schema_version: number;
@@ -1899,11 +1898,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1899
1898
  updated_at?: string | undefined;
1900
1899
  description?: string | null | undefined;
1901
1900
  category?: {
1902
- name: string;
1901
+ sort_order: number;
1903
1902
  id: number;
1903
+ name: string;
1904
1904
  key: string;
1905
1905
  is_active: boolean;
1906
- sort_order: number;
1907
1906
  is_mandatory: boolean;
1908
1907
  type?: "newsletter_category" | undefined;
1909
1908
  created_at?: string | undefined;
@@ -1913,8 +1912,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1913
1912
  created_by?: number | null | undefined;
1914
1913
  is_system?: boolean | undefined;
1915
1914
  creator?: {
1916
- name: string;
1917
1915
  id: number;
1916
+ name: string;
1918
1917
  email?: string | undefined;
1919
1918
  } | null | undefined;
1920
1919
  preheader?: string | null | undefined;
@@ -2293,22 +2292,22 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2293
2292
  created_at: z.ZodOptional<z.ZodString>;
2294
2293
  updated_at: z.ZodOptional<z.ZodString>;
2295
2294
  }, "strip", z.ZodTypeAny, {
2296
- name: string;
2295
+ sort_order: number;
2297
2296
  id: number;
2297
+ name: string;
2298
2298
  key: string;
2299
2299
  is_active: boolean;
2300
- sort_order: number;
2301
2300
  is_mandatory: boolean;
2302
2301
  type?: "newsletter_category" | undefined;
2303
2302
  created_at?: string | undefined;
2304
2303
  updated_at?: string | undefined;
2305
2304
  description?: string | null | undefined;
2306
2305
  }, {
2307
- name: string;
2306
+ sort_order: number;
2308
2307
  id: number;
2308
+ name: string;
2309
2309
  key: string;
2310
2310
  is_active: boolean;
2311
- sort_order: number;
2312
2311
  is_mandatory: boolean;
2313
2312
  type?: "newsletter_category" | undefined;
2314
2313
  created_at?: string | undefined;
@@ -2453,20 +2452,20 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2453
2452
  name: z.ZodString;
2454
2453
  email: z.ZodOptional<z.ZodString>;
2455
2454
  }, "strip", z.ZodTypeAny, {
2456
- name: string;
2457
2455
  id: number;
2456
+ name: string;
2458
2457
  email?: string | undefined;
2459
2458
  }, {
2460
- name: string;
2461
2459
  id: number;
2460
+ name: string;
2462
2461
  email?: string | undefined;
2463
2462
  }>>>>;
2464
2463
  created_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2465
2464
  updated_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2466
2465
  }, "strip", z.ZodTypeAny, {
2466
+ id?: number | undefined;
2467
2467
  name?: string | undefined;
2468
2468
  type?: "newsletter_template" | undefined;
2469
- id?: number | undefined;
2470
2469
  created_at?: string | undefined;
2471
2470
  updated_at?: string | undefined;
2472
2471
  description?: string | null | undefined;
@@ -2474,11 +2473,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2474
2473
  company_id?: number | null | undefined;
2475
2474
  schema_version?: number | undefined;
2476
2475
  category?: {
2477
- name: string;
2476
+ sort_order: number;
2478
2477
  id: number;
2478
+ name: string;
2479
2479
  key: string;
2480
2480
  is_active: boolean;
2481
- sort_order: number;
2482
2481
  is_mandatory: boolean;
2483
2482
  type?: "newsletter_category" | undefined;
2484
2483
  created_at?: string | undefined;
@@ -2516,17 +2515,17 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2516
2515
  } | undefined;
2517
2516
  is_system?: boolean | undefined;
2518
2517
  creator?: {
2519
- name: string;
2520
2518
  id: number;
2519
+ name: string;
2521
2520
  email?: string | undefined;
2522
2521
  } | null | undefined;
2523
2522
  newsletter_category_id?: number | undefined;
2524
2523
  subject?: string | undefined;
2525
2524
  preheader?: string | null | undefined;
2526
2525
  }, {
2526
+ id?: number | undefined;
2527
2527
  name?: string | undefined;
2528
2528
  type?: "newsletter_template" | undefined;
2529
- id?: number | undefined;
2530
2529
  created_at?: string | undefined;
2531
2530
  updated_at?: string | undefined;
2532
2531
  description?: string | null | undefined;
@@ -2534,11 +2533,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2534
2533
  company_id?: number | null | undefined;
2535
2534
  schema_version?: number | undefined;
2536
2535
  category?: {
2537
- name: string;
2536
+ sort_order: number;
2538
2537
  id: number;
2538
+ name: string;
2539
2539
  key: string;
2540
2540
  is_active: boolean;
2541
- sort_order: number;
2542
2541
  is_mandatory: boolean;
2543
2542
  type?: "newsletter_category" | undefined;
2544
2543
  created_at?: string | undefined;
@@ -2576,8 +2575,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2576
2575
  } | undefined;
2577
2576
  is_system?: boolean | undefined;
2578
2577
  creator?: {
2579
- name: string;
2580
2578
  id: number;
2579
+ name: string;
2581
2580
  email?: string | undefined;
2582
2581
  } | null | undefined;
2583
2582
  newsletter_category_id?: number | undefined;
@@ -2597,22 +2596,22 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2597
2596
  created_at: z.ZodOptional<z.ZodString>;
2598
2597
  updated_at: z.ZodOptional<z.ZodString>;
2599
2598
  }, "strip", z.ZodTypeAny, {
2600
- name: string;
2599
+ sort_order: number;
2601
2600
  id: number;
2601
+ name: string;
2602
2602
  key: string;
2603
2603
  is_active: boolean;
2604
- sort_order: number;
2605
2604
  is_mandatory: boolean;
2606
2605
  type?: "newsletter_category" | undefined;
2607
2606
  created_at?: string | undefined;
2608
2607
  updated_at?: string | undefined;
2609
2608
  description?: string | null | undefined;
2610
2609
  }, {
2611
- name: string;
2610
+ sort_order: number;
2612
2611
  id: number;
2612
+ name: string;
2613
2613
  key: string;
2614
2614
  is_active: boolean;
2615
- sort_order: number;
2616
2615
  is_mandatory: boolean;
2617
2616
  type?: "newsletter_category" | undefined;
2618
2617
  created_at?: string | undefined;
@@ -2846,12 +2845,12 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2846
2845
  name: z.ZodString;
2847
2846
  email: z.ZodOptional<z.ZodString>;
2848
2847
  }, "strip", z.ZodTypeAny, {
2849
- name: string;
2850
2848
  id: number;
2849
+ name: string;
2851
2850
  email?: string | undefined;
2852
2851
  }, {
2853
- name: string;
2854
2852
  id: number;
2853
+ name: string;
2855
2854
  email?: string | undefined;
2856
2855
  }>>>;
2857
2856
  can: z.ZodOptional<z.ZodObject<{
@@ -2879,9 +2878,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2879
2878
  created_at: z.ZodOptional<z.ZodString>;
2880
2879
  updated_at: z.ZodOptional<z.ZodString>;
2881
2880
  }, "strip", z.ZodTypeAny, {
2881
+ id: number;
2882
2882
  name: string;
2883
2883
  status: NewsletterCampaignStatus;
2884
- id: number;
2885
2884
  company_id: number | null;
2886
2885
  schema_snapshot: {
2887
2886
  blocks: ({
@@ -2949,11 +2948,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2949
2948
  test_send?: boolean | undefined;
2950
2949
  } | undefined;
2951
2950
  category?: {
2952
- name: string;
2951
+ sort_order: number;
2953
2952
  id: number;
2953
+ name: string;
2954
2954
  key: string;
2955
2955
  is_active: boolean;
2956
- sort_order: number;
2957
2956
  is_mandatory: boolean;
2958
2957
  type?: "newsletter_category" | undefined;
2959
2958
  created_at?: string | undefined;
@@ -2963,9 +2962,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2963
2962
  scheduled_at?: string | null | undefined;
2964
2963
  is_system?: boolean | undefined;
2965
2964
  template?: {
2965
+ id?: number | undefined;
2966
2966
  name?: string | undefined;
2967
2967
  type?: "newsletter_template" | undefined;
2968
- id?: number | undefined;
2969
2968
  created_at?: string | undefined;
2970
2969
  updated_at?: string | undefined;
2971
2970
  description?: string | null | undefined;
@@ -2973,11 +2972,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2973
2972
  company_id?: number | null | undefined;
2974
2973
  schema_version?: number | undefined;
2975
2974
  category?: {
2976
- name: string;
2975
+ sort_order: number;
2977
2976
  id: number;
2977
+ name: string;
2978
2978
  key: string;
2979
2979
  is_active: boolean;
2980
- sort_order: number;
2981
2980
  is_mandatory: boolean;
2982
2981
  type?: "newsletter_category" | undefined;
2983
2982
  created_at?: string | undefined;
@@ -3015,8 +3014,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3015
3014
  } | undefined;
3016
3015
  is_system?: boolean | undefined;
3017
3016
  creator?: {
3018
- name: string;
3019
3017
  id: number;
3018
+ name: string;
3020
3019
  email?: string | undefined;
3021
3020
  } | null | undefined;
3022
3021
  newsletter_category_id?: number | undefined;
@@ -3029,14 +3028,14 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3029
3028
  cancelled_at?: string | null | undefined;
3030
3029
  sent_by_user_id?: number | null | undefined;
3031
3030
  sent_by?: {
3032
- name: string;
3033
3031
  id: number;
3032
+ name: string;
3034
3033
  email?: string | undefined;
3035
3034
  } | null | undefined;
3036
3035
  }, {
3036
+ id: number;
3037
3037
  name: string;
3038
3038
  status: NewsletterCampaignStatus;
3039
- id: number;
3040
3039
  company_id: number | null;
3041
3040
  schema_snapshot: {
3042
3041
  blocks: ({
@@ -3104,11 +3103,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3104
3103
  test_send?: boolean | undefined;
3105
3104
  } | undefined;
3106
3105
  category?: {
3107
- name: string;
3106
+ sort_order: number;
3108
3107
  id: number;
3108
+ name: string;
3109
3109
  key: string;
3110
3110
  is_active: boolean;
3111
- sort_order: number;
3112
3111
  is_mandatory: boolean;
3113
3112
  type?: "newsletter_category" | undefined;
3114
3113
  created_at?: string | undefined;
@@ -3118,9 +3117,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3118
3117
  scheduled_at?: string | null | undefined;
3119
3118
  is_system?: boolean | undefined;
3120
3119
  template?: {
3120
+ id?: number | undefined;
3121
3121
  name?: string | undefined;
3122
3122
  type?: "newsletter_template" | undefined;
3123
- id?: number | undefined;
3124
3123
  created_at?: string | undefined;
3125
3124
  updated_at?: string | undefined;
3126
3125
  description?: string | null | undefined;
@@ -3128,11 +3127,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3128
3127
  company_id?: number | null | undefined;
3129
3128
  schema_version?: number | undefined;
3130
3129
  category?: {
3131
- name: string;
3130
+ sort_order: number;
3132
3131
  id: number;
3132
+ name: string;
3133
3133
  key: string;
3134
3134
  is_active: boolean;
3135
- sort_order: number;
3136
3135
  is_mandatory: boolean;
3137
3136
  type?: "newsletter_category" | undefined;
3138
3137
  created_at?: string | undefined;
@@ -3170,8 +3169,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3170
3169
  } | undefined;
3171
3170
  is_system?: boolean | undefined;
3172
3171
  creator?: {
3173
- name: string;
3174
3172
  id: number;
3173
+ name: string;
3175
3174
  email?: string | undefined;
3176
3175
  } | null | undefined;
3177
3176
  newsletter_category_id?: number | undefined;
@@ -3184,8 +3183,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3184
3183
  cancelled_at?: string | null | undefined;
3185
3184
  sent_by_user_id?: number | null | undefined;
3186
3185
  sent_by?: {
3187
- name: string;
3188
3186
  id: number;
3187
+ name: string;
3189
3188
  email?: string | undefined;
3190
3189
  } | null | undefined;
3191
3190
  }>;
@@ -3512,12 +3511,12 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3512
3511
  name: z.ZodString;
3513
3512
  email: z.ZodOptional<z.ZodString>;
3514
3513
  }, "strip", z.ZodTypeAny, {
3515
- name: string;
3516
3514
  id: number;
3515
+ name: string;
3517
3516
  email?: string | undefined;
3518
3517
  }, {
3519
- name: string;
3520
3518
  id: number;
3519
+ name: string;
3521
3520
  email?: string | undefined;
3522
3521
  }>>>;
3523
3522
  email: z.ZodString;
@@ -3529,15 +3528,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3529
3528
  bounced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3530
3529
  complained_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3531
3530
  }, "strip", z.ZodTypeAny, {
3531
+ id: number;
3532
3532
  email: string;
3533
3533
  status: NewsletterRecipientStatus;
3534
- id: number;
3535
3534
  user_id: number | null;
3536
3535
  newsletter_campaign_id: number;
3537
3536
  type?: "newsletter_campaign_recipient" | undefined;
3538
3537
  user?: {
3539
- name: string;
3540
3538
  id: number;
3539
+ name: string;
3541
3540
  email?: string | undefined;
3542
3541
  } | null | undefined;
3543
3542
  error?: string | null | undefined;
@@ -3547,15 +3546,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3547
3546
  bounced_at?: string | null | undefined;
3548
3547
  complained_at?: string | null | undefined;
3549
3548
  }, {
3549
+ id: number;
3550
3550
  email: string;
3551
3551
  status: NewsletterRecipientStatus;
3552
- id: number;
3553
3552
  user_id: number | null;
3554
3553
  newsletter_campaign_id: number;
3555
3554
  type?: "newsletter_campaign_recipient" | undefined;
3556
3555
  user?: {
3557
- name: string;
3558
3556
  id: number;
3557
+ name: string;
3559
3558
  email?: string | undefined;
3560
3559
  } | null | undefined;
3561
3560
  error?: string | null | undefined;
@@ -4000,8 +3999,8 @@ declare const TodoSchema: z.ZodObject<{
4000
3999
  }>;
4001
4000
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4002
4001
  }, "strip", z.ZodTypeAny, {
4003
- key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
4004
4002
  title: string;
4003
+ key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
4005
4004
  priority: "low" | "normal" | "high";
4006
4005
  is_overdue: boolean;
4007
4006
  ref_type: string;
@@ -4016,8 +4015,8 @@ declare const TodoSchema: z.ZodObject<{
4016
4015
  due_date?: string | null | undefined;
4017
4016
  subtitle?: string | null | undefined;
4018
4017
  }, {
4019
- key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
4020
4018
  title: string;
4019
+ key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
4021
4020
  ref_type: string;
4022
4021
  ref_id: number;
4023
4022
  action: {