@updraft-solutions/mcrit-sdk 0.11.1 → 0.11.2

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.
@@ -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, 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';
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-D3dneyB8.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;
33
32
  name: string;
34
33
  email: string;
35
- }, {
36
34
  id: number;
35
+ }, {
37
36
  name: string;
38
37
  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;
46
45
  name: string;
47
46
  email: string;
48
- }, {
49
47
  id: number;
48
+ }, {
50
49
  name: string;
51
50
  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;
76
75
  type: "faq";
77
76
  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;
101
100
  name: string;
102
101
  email: string;
102
+ id: number;
103
103
  } | null | undefined;
104
104
  reviewer?: {
105
- id: number;
106
105
  name: string;
107
106
  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;
113
112
  type: "faq";
114
113
  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;
138
137
  name: string;
139
138
  email: string;
139
+ id: number;
140
140
  } | null | undefined;
141
141
  reviewer?: {
142
- id: number;
143
142
  name: string;
144
143
  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
- sort_order: number;
218
- id: number;
219
217
  name: string;
218
+ id: number;
220
219
  description: string | null;
221
220
  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
- sort_order: number;
228
- id: number;
229
227
  name: string;
228
+ id: number;
230
229
  description: string | null;
231
230
  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;
247
246
  description?: string | null | undefined;
248
247
  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;
253
252
  description?: string | null | undefined;
254
253
  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
- sort_order: number;
297
- id: number;
298
296
  name: string;
297
+ id: number;
299
298
  description: string | null;
300
299
  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
- sort_order: number;
307
- id: number;
308
306
  name: string;
307
+ id: number;
309
308
  description: string | null;
310
309
  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
- id: number;
341
340
  status: "new" | "under_review" | "action_taken" | "closed";
341
+ id: number;
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
- sort_order: number;
351
- id: number;
352
350
  name: string;
351
+ id: number;
353
352
  description: string | null;
354
353
  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
- id: number;
370
369
  status: "new" | "under_review" | "action_taken" | "closed";
370
+ id: number;
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
- sort_order: number;
380
- id: number;
381
379
  name: string;
380
+ id: number;
382
381
  description: string | null;
383
382
  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
- sort_order: number;
419
- id: number;
420
418
  name: string;
419
+ id: number;
421
420
  description: string | null;
422
421
  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
- sort_order: number;
429
- id: number;
430
428
  name: string;
429
+ id: number;
431
430
  description: string | null;
432
431
  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
- id: number;
463
462
  status: "new" | "under_review" | "action_taken" | "closed";
463
+ id: number;
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
- sort_order: number;
473
- id: number;
474
472
  name: string;
473
+ id: number;
475
474
  description: string | null;
476
475
  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
- id: number;
492
491
  status: "new" | "under_review" | "action_taken" | "closed";
492
+ id: number;
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
- sort_order: number;
502
- id: number;
503
501
  name: string;
502
+ id: number;
504
503
  description: string | null;
505
504
  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
- id: number;
561
560
  status: "new" | "under_review" | "action_taken" | "closed";
561
+ id: number;
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
- sort_order: number;
571
- id: number;
572
570
  name: string;
571
+ id: number;
573
572
  description: string | null;
574
573
  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
- id: number;
606
605
  status: "new" | "under_review" | "action_taken" | "closed";
606
+ id: number;
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
- sort_order: number;
616
- id: number;
617
615
  name: string;
616
+ id: number;
618
617
  description: string | null;
619
618
  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
- sort_order: number;
982
- id: number;
983
- name: string;
984
981
  kind: string;
982
+ name: string;
983
+ id: number;
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
- sort_order: number;
1003
- id: number;
1004
- name: string;
1005
1002
  kind: string;
1003
+ name: string;
1004
+ id: number;
1005
+ sort_order: number;
1006
1006
  course_id: number;
1007
1007
  is_prerequisite: boolean;
1008
1008
  type?: "courseMilestone" | undefined;
@@ -1030,18 +1030,18 @@ declare const CourseMilestoneFormSchema: z.ZodObject<{
1030
1030
  completion_rule: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1031
1031
  sort_order: z.ZodOptional<z.ZodNumber>;
1032
1032
  }, "strip", z.ZodTypeAny, {
1033
- name: string;
1034
1033
  kind: string;
1034
+ name: string;
1035
1035
  is_prerequisite: boolean;
1036
- sort_order?: number | undefined;
1037
1036
  description?: string | null | undefined;
1037
+ sort_order?: number | 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;
1043
- description?: string | null | undefined;
1044
1042
  kind?: string | undefined;
1043
+ description?: string | null | 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
- sort_order: number;
1090
- id: number;
1091
- name: string;
1092
1089
  kind: string;
1090
+ name: string;
1091
+ id: number;
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
- sort_order: number;
1111
- id: number;
1112
- name: string;
1113
1110
  kind: string;
1111
+ name: string;
1112
+ id: number;
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
- sort_order: number;
1180
- id: number;
1181
- name: string;
1182
1179
  kind: string;
1180
+ name: string;
1181
+ id: number;
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
- sort_order: number;
1222
- id: number;
1223
- name: string;
1224
1221
  kind: string;
1222
+ name: string;
1223
+ id: number;
1224
+ sort_order: number;
1225
1225
  course_id: number;
1226
1226
  is_prerequisite: boolean;
1227
1227
  type?: "courseMilestone" | undefined;
@@ -1261,14 +1261,14 @@ declare const equipmentSchema: z.ZodObject<{
1261
1261
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1262
1262
  manual_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1263
1263
  }, "strip", z.ZodTypeAny, {
1264
- id: number;
1265
1264
  name: string;
1265
+ id: number;
1266
1266
  type?: "equipment" | undefined;
1267
1267
  description?: string | null | undefined;
1268
1268
  manual_url?: string | null | undefined;
1269
1269
  }, {
1270
- id: number;
1271
1270
  name: string;
1271
+ id: number;
1272
1272
  type?: "equipment" | undefined;
1273
1273
  description?: string | null | undefined;
1274
1274
  manual_url?: string | null | undefined;
@@ -1455,32 +1455,40 @@ declare const NewsletterCategorySchema: z.ZodObject<{
1455
1455
  name: z.ZodString;
1456
1456
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1457
1457
  is_mandatory: z.ZodBoolean;
1458
+ /** Missing preference row → opted in (true) or opted out (false). */
1459
+ default_opt_in: z.ZodOptional<z.ZodBoolean>;
1460
+ /** Reserved for application notifications — never selectable for campaigns. */
1461
+ is_internal: z.ZodOptional<z.ZodBoolean>;
1458
1462
  is_active: z.ZodBoolean;
1459
1463
  sort_order: z.ZodNumber;
1460
1464
  created_at: z.ZodOptional<z.ZodString>;
1461
1465
  updated_at: z.ZodOptional<z.ZodString>;
1462
1466
  }, "strip", z.ZodTypeAny, {
1463
- sort_order: number;
1464
- id: number;
1465
1467
  name: string;
1468
+ id: number;
1466
1469
  key: string;
1467
1470
  is_active: boolean;
1471
+ sort_order: number;
1468
1472
  is_mandatory: boolean;
1469
1473
  type?: "newsletter_category" | undefined;
1470
1474
  created_at?: string | undefined;
1471
1475
  updated_at?: string | undefined;
1472
1476
  description?: string | null | undefined;
1477
+ default_opt_in?: boolean | undefined;
1478
+ is_internal?: boolean | undefined;
1473
1479
  }, {
1474
- sort_order: number;
1475
- id: number;
1476
1480
  name: string;
1481
+ id: number;
1477
1482
  key: string;
1478
1483
  is_active: boolean;
1484
+ sort_order: number;
1479
1485
  is_mandatory: boolean;
1480
1486
  type?: "newsletter_category" | undefined;
1481
1487
  created_at?: string | undefined;
1482
1488
  updated_at?: string | undefined;
1483
1489
  description?: string | null | undefined;
1490
+ default_opt_in?: boolean | undefined;
1491
+ is_internal?: boolean | undefined;
1484
1492
  }>;
1485
1493
  type NewsletterCategory = z.infer<typeof NewsletterCategorySchema>;
1486
1494
  declare const NewsletterTemplateSchemaSchema: z.ZodObject<{
@@ -1622,32 +1630,40 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1622
1630
  name: z.ZodString;
1623
1631
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1624
1632
  is_mandatory: z.ZodBoolean;
1633
+ /** Missing preference row → opted in (true) or opted out (false). */
1634
+ default_opt_in: z.ZodOptional<z.ZodBoolean>;
1635
+ /** Reserved for application notifications — never selectable for campaigns. */
1636
+ is_internal: z.ZodOptional<z.ZodBoolean>;
1625
1637
  is_active: z.ZodBoolean;
1626
1638
  sort_order: z.ZodNumber;
1627
1639
  created_at: z.ZodOptional<z.ZodString>;
1628
1640
  updated_at: z.ZodOptional<z.ZodString>;
1629
1641
  }, "strip", z.ZodTypeAny, {
1630
- sort_order: number;
1631
- id: number;
1632
1642
  name: string;
1643
+ id: number;
1633
1644
  key: string;
1634
1645
  is_active: boolean;
1646
+ sort_order: number;
1635
1647
  is_mandatory: boolean;
1636
1648
  type?: "newsletter_category" | undefined;
1637
1649
  created_at?: string | undefined;
1638
1650
  updated_at?: string | undefined;
1639
1651
  description?: string | null | undefined;
1652
+ default_opt_in?: boolean | undefined;
1653
+ is_internal?: boolean | undefined;
1640
1654
  }, {
1641
- sort_order: number;
1642
- id: number;
1643
1655
  name: string;
1656
+ id: number;
1644
1657
  key: string;
1645
1658
  is_active: boolean;
1659
+ sort_order: number;
1646
1660
  is_mandatory: boolean;
1647
1661
  type?: "newsletter_category" | undefined;
1648
1662
  created_at?: string | undefined;
1649
1663
  updated_at?: string | undefined;
1650
1664
  description?: string | null | undefined;
1665
+ default_opt_in?: boolean | undefined;
1666
+ is_internal?: boolean | undefined;
1651
1667
  }>>>;
1652
1668
  name: z.ZodString;
1653
1669
  slug: z.ZodString;
@@ -1787,19 +1803,32 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1787
1803
  name: z.ZodString;
1788
1804
  email: z.ZodOptional<z.ZodString>;
1789
1805
  }, "strip", z.ZodTypeAny, {
1790
- id: number;
1791
1806
  name: string;
1807
+ id: number;
1792
1808
  email?: string | undefined;
1793
1809
  }, {
1794
- id: number;
1795
1810
  name: string;
1811
+ id: number;
1796
1812
  email?: string | undefined;
1797
1813
  }>>>;
1814
+ can: z.ZodOptional<z.ZodObject<{
1815
+ update: z.ZodOptional<z.ZodBoolean>;
1816
+ delete: z.ZodOptional<z.ZodBoolean>;
1817
+ duplicate: z.ZodOptional<z.ZodBoolean>;
1818
+ }, "strip", z.ZodTypeAny, {
1819
+ update?: boolean | undefined;
1820
+ delete?: boolean | undefined;
1821
+ duplicate?: boolean | undefined;
1822
+ }, {
1823
+ update?: boolean | undefined;
1824
+ delete?: boolean | undefined;
1825
+ duplicate?: boolean | undefined;
1826
+ }>>;
1798
1827
  created_at: z.ZodOptional<z.ZodString>;
1799
1828
  updated_at: z.ZodOptional<z.ZodString>;
1800
1829
  }, "strip", z.ZodTypeAny, {
1801
- id: number;
1802
1830
  name: string;
1831
+ id: number;
1803
1832
  is_active: boolean;
1804
1833
  company_id: number | null;
1805
1834
  schema_version: number;
@@ -1837,29 +1866,36 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1837
1866
  created_at?: string | undefined;
1838
1867
  updated_at?: string | undefined;
1839
1868
  description?: string | null | undefined;
1869
+ can?: {
1870
+ update?: boolean | undefined;
1871
+ delete?: boolean | undefined;
1872
+ duplicate?: boolean | undefined;
1873
+ } | undefined;
1840
1874
  category?: {
1841
- sort_order: number;
1842
- id: number;
1843
1875
  name: string;
1876
+ id: number;
1844
1877
  key: string;
1845
1878
  is_active: boolean;
1879
+ sort_order: number;
1846
1880
  is_mandatory: boolean;
1847
1881
  type?: "newsletter_category" | undefined;
1848
1882
  created_at?: string | undefined;
1849
1883
  updated_at?: string | undefined;
1850
1884
  description?: string | null | undefined;
1885
+ default_opt_in?: boolean | undefined;
1886
+ is_internal?: boolean | undefined;
1851
1887
  } | null | undefined;
1852
1888
  created_by?: number | null | undefined;
1853
1889
  is_system?: boolean | undefined;
1854
1890
  creator?: {
1855
- id: number;
1856
1891
  name: string;
1892
+ id: number;
1857
1893
  email?: string | undefined;
1858
1894
  } | null | undefined;
1859
1895
  preheader?: string | null | undefined;
1860
1896
  }, {
1861
- id: number;
1862
1897
  name: string;
1898
+ id: number;
1863
1899
  is_active: boolean;
1864
1900
  company_id: number | null;
1865
1901
  schema_version: number;
@@ -1897,23 +1933,30 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1897
1933
  created_at?: string | undefined;
1898
1934
  updated_at?: string | undefined;
1899
1935
  description?: string | null | undefined;
1936
+ can?: {
1937
+ update?: boolean | undefined;
1938
+ delete?: boolean | undefined;
1939
+ duplicate?: boolean | undefined;
1940
+ } | undefined;
1900
1941
  category?: {
1901
- sort_order: number;
1902
- id: number;
1903
1942
  name: string;
1943
+ id: number;
1904
1944
  key: string;
1905
1945
  is_active: boolean;
1946
+ sort_order: number;
1906
1947
  is_mandatory: boolean;
1907
1948
  type?: "newsletter_category" | undefined;
1908
1949
  created_at?: string | undefined;
1909
1950
  updated_at?: string | undefined;
1910
1951
  description?: string | null | undefined;
1952
+ default_opt_in?: boolean | undefined;
1953
+ is_internal?: boolean | undefined;
1911
1954
  } | null | undefined;
1912
1955
  created_by?: number | null | undefined;
1913
1956
  is_system?: boolean | undefined;
1914
1957
  creator?: {
1915
- id: number;
1916
1958
  name: string;
1959
+ id: number;
1917
1960
  email?: string | undefined;
1918
1961
  } | null | undefined;
1919
1962
  preheader?: string | null | undefined;
@@ -2287,32 +2330,40 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2287
2330
  name: z.ZodString;
2288
2331
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2289
2332
  is_mandatory: z.ZodBoolean;
2333
+ /** Missing preference row → opted in (true) or opted out (false). */
2334
+ default_opt_in: z.ZodOptional<z.ZodBoolean>;
2335
+ /** Reserved for application notifications — never selectable for campaigns. */
2336
+ is_internal: z.ZodOptional<z.ZodBoolean>;
2290
2337
  is_active: z.ZodBoolean;
2291
2338
  sort_order: z.ZodNumber;
2292
2339
  created_at: z.ZodOptional<z.ZodString>;
2293
2340
  updated_at: z.ZodOptional<z.ZodString>;
2294
2341
  }, "strip", z.ZodTypeAny, {
2295
- sort_order: number;
2296
- id: number;
2297
2342
  name: string;
2343
+ id: number;
2298
2344
  key: string;
2299
2345
  is_active: boolean;
2346
+ sort_order: number;
2300
2347
  is_mandatory: boolean;
2301
2348
  type?: "newsletter_category" | undefined;
2302
2349
  created_at?: string | undefined;
2303
2350
  updated_at?: string | undefined;
2304
2351
  description?: string | null | undefined;
2352
+ default_opt_in?: boolean | undefined;
2353
+ is_internal?: boolean | undefined;
2305
2354
  }, {
2306
- sort_order: number;
2307
- id: number;
2308
2355
  name: string;
2356
+ id: number;
2309
2357
  key: string;
2310
2358
  is_active: boolean;
2359
+ sort_order: number;
2311
2360
  is_mandatory: boolean;
2312
2361
  type?: "newsletter_category" | undefined;
2313
2362
  created_at?: string | undefined;
2314
2363
  updated_at?: string | undefined;
2315
2364
  description?: string | null | undefined;
2365
+ default_opt_in?: boolean | undefined;
2366
+ is_internal?: boolean | undefined;
2316
2367
  }>>>>;
2317
2368
  name: z.ZodOptional<z.ZodString>;
2318
2369
  slug: z.ZodOptional<z.ZodString>;
@@ -2452,37 +2503,57 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2452
2503
  name: z.ZodString;
2453
2504
  email: z.ZodOptional<z.ZodString>;
2454
2505
  }, "strip", z.ZodTypeAny, {
2455
- id: number;
2456
2506
  name: string;
2507
+ id: number;
2457
2508
  email?: string | undefined;
2458
2509
  }, {
2459
- id: number;
2460
2510
  name: string;
2511
+ id: number;
2461
2512
  email?: string | undefined;
2462
2513
  }>>>>;
2514
+ can: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2515
+ update: z.ZodOptional<z.ZodBoolean>;
2516
+ delete: z.ZodOptional<z.ZodBoolean>;
2517
+ duplicate: z.ZodOptional<z.ZodBoolean>;
2518
+ }, "strip", z.ZodTypeAny, {
2519
+ update?: boolean | undefined;
2520
+ delete?: boolean | undefined;
2521
+ duplicate?: boolean | undefined;
2522
+ }, {
2523
+ update?: boolean | undefined;
2524
+ delete?: boolean | undefined;
2525
+ duplicate?: boolean | undefined;
2526
+ }>>>;
2463
2527
  created_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2464
2528
  updated_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2465
2529
  }, "strip", z.ZodTypeAny, {
2466
- id?: number | undefined;
2467
2530
  name?: string | undefined;
2468
2531
  type?: "newsletter_template" | undefined;
2532
+ id?: number | undefined;
2469
2533
  created_at?: string | undefined;
2470
2534
  updated_at?: string | undefined;
2471
2535
  description?: string | null | undefined;
2536
+ can?: {
2537
+ update?: boolean | undefined;
2538
+ delete?: boolean | undefined;
2539
+ duplicate?: boolean | undefined;
2540
+ } | undefined;
2472
2541
  is_active?: boolean | undefined;
2473
2542
  company_id?: number | null | undefined;
2474
2543
  schema_version?: number | undefined;
2475
2544
  category?: {
2476
- sort_order: number;
2477
- id: number;
2478
2545
  name: string;
2546
+ id: number;
2479
2547
  key: string;
2480
2548
  is_active: boolean;
2549
+ sort_order: number;
2481
2550
  is_mandatory: boolean;
2482
2551
  type?: "newsletter_category" | undefined;
2483
2552
  created_at?: string | undefined;
2484
2553
  updated_at?: string | undefined;
2485
2554
  description?: string | null | undefined;
2555
+ default_opt_in?: boolean | undefined;
2556
+ is_internal?: boolean | undefined;
2486
2557
  } | null | undefined;
2487
2558
  created_by?: number | null | undefined;
2488
2559
  slug?: string | undefined;
@@ -2515,34 +2586,41 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2515
2586
  } | undefined;
2516
2587
  is_system?: boolean | undefined;
2517
2588
  creator?: {
2518
- id: number;
2519
2589
  name: string;
2590
+ id: number;
2520
2591
  email?: string | undefined;
2521
2592
  } | null | undefined;
2522
2593
  newsletter_category_id?: number | undefined;
2523
2594
  subject?: string | undefined;
2524
2595
  preheader?: string | null | undefined;
2525
2596
  }, {
2526
- id?: number | undefined;
2527
2597
  name?: string | undefined;
2528
2598
  type?: "newsletter_template" | undefined;
2599
+ id?: number | undefined;
2529
2600
  created_at?: string | undefined;
2530
2601
  updated_at?: string | undefined;
2531
2602
  description?: string | null | undefined;
2603
+ can?: {
2604
+ update?: boolean | undefined;
2605
+ delete?: boolean | undefined;
2606
+ duplicate?: boolean | undefined;
2607
+ } | undefined;
2532
2608
  is_active?: boolean | undefined;
2533
2609
  company_id?: number | null | undefined;
2534
2610
  schema_version?: number | undefined;
2535
2611
  category?: {
2536
- sort_order: number;
2537
- id: number;
2538
2612
  name: string;
2613
+ id: number;
2539
2614
  key: string;
2540
2615
  is_active: boolean;
2616
+ sort_order: number;
2541
2617
  is_mandatory: boolean;
2542
2618
  type?: "newsletter_category" | undefined;
2543
2619
  created_at?: string | undefined;
2544
2620
  updated_at?: string | undefined;
2545
2621
  description?: string | null | undefined;
2622
+ default_opt_in?: boolean | undefined;
2623
+ is_internal?: boolean | undefined;
2546
2624
  } | null | undefined;
2547
2625
  created_by?: number | null | undefined;
2548
2626
  slug?: string | undefined;
@@ -2575,8 +2653,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2575
2653
  } | undefined;
2576
2654
  is_system?: boolean | undefined;
2577
2655
  creator?: {
2578
- id: number;
2579
2656
  name: string;
2657
+ id: number;
2580
2658
  email?: string | undefined;
2581
2659
  } | null | undefined;
2582
2660
  newsletter_category_id?: number | undefined;
@@ -2591,32 +2669,40 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2591
2669
  name: z.ZodString;
2592
2670
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2593
2671
  is_mandatory: z.ZodBoolean;
2672
+ /** Missing preference row → opted in (true) or opted out (false). */
2673
+ default_opt_in: z.ZodOptional<z.ZodBoolean>;
2674
+ /** Reserved for application notifications — never selectable for campaigns. */
2675
+ is_internal: z.ZodOptional<z.ZodBoolean>;
2594
2676
  is_active: z.ZodBoolean;
2595
2677
  sort_order: z.ZodNumber;
2596
2678
  created_at: z.ZodOptional<z.ZodString>;
2597
2679
  updated_at: z.ZodOptional<z.ZodString>;
2598
2680
  }, "strip", z.ZodTypeAny, {
2599
- sort_order: number;
2600
- id: number;
2601
2681
  name: string;
2682
+ id: number;
2602
2683
  key: string;
2603
2684
  is_active: boolean;
2685
+ sort_order: number;
2604
2686
  is_mandatory: boolean;
2605
2687
  type?: "newsletter_category" | undefined;
2606
2688
  created_at?: string | undefined;
2607
2689
  updated_at?: string | undefined;
2608
2690
  description?: string | null | undefined;
2691
+ default_opt_in?: boolean | undefined;
2692
+ is_internal?: boolean | undefined;
2609
2693
  }, {
2610
- sort_order: number;
2611
- id: number;
2612
2694
  name: string;
2695
+ id: number;
2613
2696
  key: string;
2614
2697
  is_active: boolean;
2698
+ sort_order: number;
2615
2699
  is_mandatory: boolean;
2616
2700
  type?: "newsletter_category" | undefined;
2617
2701
  created_at?: string | undefined;
2618
2702
  updated_at?: string | undefined;
2619
2703
  description?: string | null | undefined;
2704
+ default_opt_in?: boolean | undefined;
2705
+ is_internal?: boolean | undefined;
2620
2706
  }>>>;
2621
2707
  name: z.ZodString;
2622
2708
  subject: z.ZodString;
@@ -2845,12 +2931,12 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2845
2931
  name: z.ZodString;
2846
2932
  email: z.ZodOptional<z.ZodString>;
2847
2933
  }, "strip", z.ZodTypeAny, {
2848
- id: number;
2849
2934
  name: string;
2935
+ id: number;
2850
2936
  email?: string | undefined;
2851
2937
  }, {
2852
- id: number;
2853
2938
  name: string;
2939
+ id: number;
2854
2940
  email?: string | undefined;
2855
2941
  }>>>;
2856
2942
  can: z.ZodOptional<z.ZodObject<{
@@ -2878,9 +2964,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2878
2964
  created_at: z.ZodOptional<z.ZodString>;
2879
2965
  updated_at: z.ZodOptional<z.ZodString>;
2880
2966
  }, "strip", z.ZodTypeAny, {
2881
- id: number;
2882
2967
  name: string;
2883
2968
  status: NewsletterCampaignStatus;
2969
+ id: number;
2884
2970
  company_id: number | null;
2885
2971
  schema_snapshot: {
2886
2972
  blocks: ({
@@ -2948,40 +3034,49 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2948
3034
  test_send?: boolean | undefined;
2949
3035
  } | undefined;
2950
3036
  category?: {
2951
- sort_order: number;
2952
- id: number;
2953
3037
  name: string;
3038
+ id: number;
2954
3039
  key: string;
2955
3040
  is_active: boolean;
3041
+ sort_order: number;
2956
3042
  is_mandatory: boolean;
2957
3043
  type?: "newsletter_category" | undefined;
2958
3044
  created_at?: string | undefined;
2959
3045
  updated_at?: string | undefined;
2960
3046
  description?: string | null | undefined;
3047
+ default_opt_in?: boolean | undefined;
3048
+ is_internal?: boolean | undefined;
2961
3049
  } | null | undefined;
2962
3050
  scheduled_at?: string | null | undefined;
2963
3051
  is_system?: boolean | undefined;
2964
3052
  template?: {
2965
- id?: number | undefined;
2966
3053
  name?: string | undefined;
2967
3054
  type?: "newsletter_template" | undefined;
3055
+ id?: number | undefined;
2968
3056
  created_at?: string | undefined;
2969
3057
  updated_at?: string | undefined;
2970
3058
  description?: string | null | undefined;
3059
+ can?: {
3060
+ update?: boolean | undefined;
3061
+ delete?: boolean | undefined;
3062
+ duplicate?: boolean | undefined;
3063
+ } | undefined;
2971
3064
  is_active?: boolean | undefined;
2972
3065
  company_id?: number | null | undefined;
2973
3066
  schema_version?: number | undefined;
2974
3067
  category?: {
2975
- sort_order: number;
2976
- id: number;
2977
3068
  name: string;
3069
+ id: number;
2978
3070
  key: string;
2979
3071
  is_active: boolean;
3072
+ sort_order: number;
2980
3073
  is_mandatory: boolean;
2981
3074
  type?: "newsletter_category" | undefined;
2982
3075
  created_at?: string | undefined;
2983
3076
  updated_at?: string | undefined;
2984
3077
  description?: string | null | undefined;
3078
+ default_opt_in?: boolean | undefined;
3079
+ is_internal?: boolean | undefined;
2985
3080
  } | null | undefined;
2986
3081
  created_by?: number | null | undefined;
2987
3082
  slug?: string | undefined;
@@ -3014,8 +3109,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3014
3109
  } | undefined;
3015
3110
  is_system?: boolean | undefined;
3016
3111
  creator?: {
3017
- id: number;
3018
3112
  name: string;
3113
+ id: number;
3019
3114
  email?: string | undefined;
3020
3115
  } | null | undefined;
3021
3116
  newsletter_category_id?: number | undefined;
@@ -3028,14 +3123,14 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3028
3123
  cancelled_at?: string | null | undefined;
3029
3124
  sent_by_user_id?: number | null | undefined;
3030
3125
  sent_by?: {
3031
- id: number;
3032
3126
  name: string;
3127
+ id: number;
3033
3128
  email?: string | undefined;
3034
3129
  } | null | undefined;
3035
3130
  }, {
3036
- id: number;
3037
3131
  name: string;
3038
3132
  status: NewsletterCampaignStatus;
3133
+ id: number;
3039
3134
  company_id: number | null;
3040
3135
  schema_snapshot: {
3041
3136
  blocks: ({
@@ -3103,40 +3198,49 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3103
3198
  test_send?: boolean | undefined;
3104
3199
  } | undefined;
3105
3200
  category?: {
3106
- sort_order: number;
3107
- id: number;
3108
3201
  name: string;
3202
+ id: number;
3109
3203
  key: string;
3110
3204
  is_active: boolean;
3205
+ sort_order: number;
3111
3206
  is_mandatory: boolean;
3112
3207
  type?: "newsletter_category" | undefined;
3113
3208
  created_at?: string | undefined;
3114
3209
  updated_at?: string | undefined;
3115
3210
  description?: string | null | undefined;
3211
+ default_opt_in?: boolean | undefined;
3212
+ is_internal?: boolean | undefined;
3116
3213
  } | null | undefined;
3117
3214
  scheduled_at?: string | null | undefined;
3118
3215
  is_system?: boolean | undefined;
3119
3216
  template?: {
3120
- id?: number | undefined;
3121
3217
  name?: string | undefined;
3122
3218
  type?: "newsletter_template" | undefined;
3219
+ id?: number | undefined;
3123
3220
  created_at?: string | undefined;
3124
3221
  updated_at?: string | undefined;
3125
3222
  description?: string | null | undefined;
3223
+ can?: {
3224
+ update?: boolean | undefined;
3225
+ delete?: boolean | undefined;
3226
+ duplicate?: boolean | undefined;
3227
+ } | undefined;
3126
3228
  is_active?: boolean | undefined;
3127
3229
  company_id?: number | null | undefined;
3128
3230
  schema_version?: number | undefined;
3129
3231
  category?: {
3130
- sort_order: number;
3131
- id: number;
3132
3232
  name: string;
3233
+ id: number;
3133
3234
  key: string;
3134
3235
  is_active: boolean;
3236
+ sort_order: number;
3135
3237
  is_mandatory: boolean;
3136
3238
  type?: "newsletter_category" | undefined;
3137
3239
  created_at?: string | undefined;
3138
3240
  updated_at?: string | undefined;
3139
3241
  description?: string | null | undefined;
3242
+ default_opt_in?: boolean | undefined;
3243
+ is_internal?: boolean | undefined;
3140
3244
  } | null | undefined;
3141
3245
  created_by?: number | null | undefined;
3142
3246
  slug?: string | undefined;
@@ -3169,8 +3273,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3169
3273
  } | undefined;
3170
3274
  is_system?: boolean | undefined;
3171
3275
  creator?: {
3172
- id: number;
3173
3276
  name: string;
3277
+ id: number;
3174
3278
  email?: string | undefined;
3175
3279
  } | null | undefined;
3176
3280
  newsletter_category_id?: number | undefined;
@@ -3183,8 +3287,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3183
3287
  cancelled_at?: string | null | undefined;
3184
3288
  sent_by_user_id?: number | null | undefined;
3185
3289
  sent_by?: {
3186
- id: number;
3187
3290
  name: string;
3291
+ id: number;
3188
3292
  email?: string | undefined;
3189
3293
  } | null | undefined;
3190
3294
  }>;
@@ -3499,7 +3603,8 @@ declare enum NewsletterRecipientStatus {
3499
3603
  Bounced = "bounced",
3500
3604
  Complained = "complained",
3501
3605
  Suppressed = "suppressed",
3502
- OptedOut = "opted_out"
3606
+ OptedOut = "opted_out",
3607
+ Cancelled = "cancelled"
3503
3608
  }
3504
3609
  declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3505
3610
  type: z.ZodOptional<z.ZodLiteral<"newsletter_campaign_recipient">>;
@@ -3511,12 +3616,12 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3511
3616
  name: z.ZodString;
3512
3617
  email: z.ZodOptional<z.ZodString>;
3513
3618
  }, "strip", z.ZodTypeAny, {
3514
- id: number;
3515
3619
  name: string;
3620
+ id: number;
3516
3621
  email?: string | undefined;
3517
3622
  }, {
3518
- id: number;
3519
3623
  name: string;
3624
+ id: number;
3520
3625
  email?: string | undefined;
3521
3626
  }>>>;
3522
3627
  email: z.ZodString;
@@ -3528,15 +3633,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3528
3633
  bounced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3529
3634
  complained_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3530
3635
  }, "strip", z.ZodTypeAny, {
3531
- id: number;
3532
3636
  email: string;
3533
3637
  status: NewsletterRecipientStatus;
3638
+ id: number;
3534
3639
  user_id: number | null;
3535
3640
  newsletter_campaign_id: number;
3536
3641
  type?: "newsletter_campaign_recipient" | undefined;
3537
3642
  user?: {
3538
- id: number;
3539
3643
  name: string;
3644
+ id: number;
3540
3645
  email?: string | undefined;
3541
3646
  } | null | undefined;
3542
3647
  error?: string | null | undefined;
@@ -3546,15 +3651,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3546
3651
  bounced_at?: string | null | undefined;
3547
3652
  complained_at?: string | null | undefined;
3548
3653
  }, {
3549
- id: number;
3550
3654
  email: string;
3551
3655
  status: NewsletterRecipientStatus;
3656
+ id: number;
3552
3657
  user_id: number | null;
3553
3658
  newsletter_campaign_id: number;
3554
3659
  type?: "newsletter_campaign_recipient" | undefined;
3555
3660
  user?: {
3556
- id: number;
3557
3661
  name: string;
3662
+ id: number;
3558
3663
  email?: string | undefined;
3559
3664
  } | null | undefined;
3560
3665
  error?: string | null | undefined;
@@ -3709,8 +3814,8 @@ declare const CreateLocationMapSchema: z.ZodObject<{
3709
3814
  is_active: z.ZodOptional<z.ZodBoolean>;
3710
3815
  }, "strip", z.ZodTypeAny, {
3711
3816
  name: string;
3712
- description?: string | null | undefined;
3713
3817
  kind?: string | undefined;
3818
+ description?: string | null | undefined;
3714
3819
  is_active?: boolean | undefined;
3715
3820
  slug?: string | undefined;
3716
3821
  default_viewport?: {
@@ -3722,8 +3827,8 @@ declare const CreateLocationMapSchema: z.ZodObject<{
3722
3827
  } | null | undefined;
3723
3828
  }, {
3724
3829
  name: string;
3725
- description?: string | null | undefined;
3726
3830
  kind?: string | undefined;
3831
+ description?: string | null | undefined;
3727
3832
  is_active?: boolean | undefined;
3728
3833
  slug?: string | undefined;
3729
3834
  default_viewport?: {
@@ -3761,9 +3866,9 @@ declare const UpdateLocationMapSchema: z.ZodObject<{
3761
3866
  }>>>>;
3762
3867
  is_active: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3763
3868
  }, "strip", z.ZodTypeAny, {
3869
+ kind?: string | undefined;
3764
3870
  name?: string | undefined;
3765
3871
  description?: string | null | undefined;
3766
- kind?: string | undefined;
3767
3872
  is_active?: boolean | undefined;
3768
3873
  slug?: string | undefined;
3769
3874
  default_viewport?: {
@@ -3774,9 +3879,9 @@ declare const UpdateLocationMapSchema: z.ZodObject<{
3774
3879
  bearing?: number | undefined;
3775
3880
  } | null | undefined;
3776
3881
  }, {
3882
+ kind?: string | undefined;
3777
3883
  name?: string | undefined;
3778
3884
  description?: string | null | undefined;
3779
- kind?: string | undefined;
3780
3885
  is_active?: boolean | undefined;
3781
3886
  slug?: string | undefined;
3782
3887
  default_viewport?: {
@@ -3858,8 +3963,8 @@ declare const UpdateLocationMapFeatureSchema: z.ZodObject<{
3858
3963
  coordinates: unknown[];
3859
3964
  }>>;
3860
3965
  }, "strip", z.ZodTypeAny, {
3861
- name?: string | null | undefined;
3862
3966
  kind?: string | undefined;
3967
+ name?: string | null | undefined;
3863
3968
  properties?: Record<string, unknown> | null | undefined;
3864
3969
  visibility?: LocationFeatureVisibility | undefined;
3865
3970
  geometry?: {
@@ -3868,8 +3973,8 @@ declare const UpdateLocationMapFeatureSchema: z.ZodObject<{
3868
3973
  } | undefined;
3869
3974
  display_order?: number | undefined;
3870
3975
  }, {
3871
- name?: string | null | undefined;
3872
3976
  kind?: string | undefined;
3977
+ name?: string | null | undefined;
3873
3978
  properties?: Record<string, unknown> | null | undefined;
3874
3979
  visibility?: LocationFeatureVisibility | undefined;
3875
3980
  geometry?: {
@@ -3999,8 +4104,8 @@ declare const TodoSchema: z.ZodObject<{
3999
4104
  }>;
4000
4105
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4001
4106
  }, "strip", z.ZodTypeAny, {
4002
- title: string;
4003
4107
  key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
4108
+ title: string;
4004
4109
  priority: "low" | "normal" | "high";
4005
4110
  is_overdue: boolean;
4006
4111
  ref_type: string;
@@ -4015,8 +4120,8 @@ declare const TodoSchema: z.ZodObject<{
4015
4120
  due_date?: string | null | undefined;
4016
4121
  subtitle?: string | null | undefined;
4017
4122
  }, {
4018
- title: string;
4019
4123
  key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
4124
+ title: string;
4020
4125
  ref_type: string;
4021
4126
  ref_id: number;
4022
4127
  action: {