@updraft-solutions/mcrit-sdk 0.15.2 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
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 FBO_OPERATING_DAYS, j as FBO_SYSTEM_ROLES, k as FieldLabel, l as FieldLabelSchema, m as FormFieldType, n as FormSubmission, o as FormSubmissionSchema, p as FormSubmissionShare, q as FormSubmissionShareBase, r as FormSubmissionShareBaseSchema, s as FormSubmissionShareSchema, t as FormSubmissionSource, u as FormSubmissionStatus, v as FormTemplate, w as FormTemplateAssignment, x as FormTemplateAssignmentSchema, y as FormTemplateSchema, z as FuelUnit, G as GradeHistoryItem, D as GradingScale, H as GradingScaleForm, I as GradingScaleFormSchema, J as GradingScalePoint, K as ImpersonationParticipant, L as ImpersonationState, M as InvalidateTrainingRecordResponse, R as ReorderSyllabusElementItem, N as ReorderSyllabusElementItemSchema, O as RequiredForm, P as RequiredFormSchema, Q as RequiredFormVia, S as RequiredFormViaCrew, T as RequiredFormViaCrewSchema, U as RequiredFormViaSchema, V as ReviewFormSubmissionInput, W as SchemaField, X as SchemaFieldSchema, Y as SchemaSection, Z as SchemaSectionSchema, _ as ShowWhen, $ as ShowWhenSchema, a0 as SignOffTrainingElementForm, a1 as SignOffTrainingElementFormSchema, a2 as Signature, a3 as SignatureSchema, a4 as StoreSyllabusForm, a5 as StoreSyllabusFormSchema, a6 as SubmissionFile, a7 as SubmissionFileSchema, a8 as Syllabus, a9 as SyllabusElement, aa as SyllabusElementMutationResult, ab as SyllabusKind, ac as SyllabusKindEnum, ad as SyllabusRolloutResult, ae as SyllabusRolloutResultItem, af as SyllabusRolloutSkippedItem, ag as TemplateSchema, ah as TemplateSchemaSchema, ai as TrainingElement, aj as TrainingElementForm, ak as TrainingElementFormSchema, al as TrainingElementKind, am as TrainingElementKindEnum, an as TrainingRecord, ao as TrainingRecordEntry, ap as TrainingRecordEntryInput, aq as TrainingRecordResult, ar as TrainingRecordResultEnum, as as TrainingRecordStatus, at as TrainingRecordStatusEnum, au as TrainingSignature, av as TrainingTemplatePack, aw as UpdateFormTemplateInput, ax as UpdateSyllabusElementForm, ay as UpdateSyllabusElementFormSchema, az as UpdateSyllabusForm, aA as UpdateSyllabusFormSchema, aB as UpsertTrainingRecordForm, aC as UpsertTrainingRecordFormSchema, aD as UsedByCourse, aE as activitySchema, aF as addressSchema, aG as aircraftPositionSchema, aH as aircraftRatingSchema, aI as airplaneIssueSchema, aJ as airplaneIssueSeverityEnum, aK as airplaneIssueStatusEnum, aL as airplanePermissionSchema, aM as airplaneSchema, aN as airplaneShareInviteSchema, aO as airportSchema, aP as alertSchema, aQ as allowedDocumentTypeSchema, aR as approachTypeSchema, aS as availSchema, aT as baseMembershipSchema, aU as billingProfileSchema, aV as bookingSchema, aW as bookingWaypointSchema, aX as commentSchema, aY as companyIdentitySchema, aZ as companySchema, a_ as contactAttributeSchema, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, b1 as courseEnrollmentSchema, b2 as courseFeeSchema, b3 as courseSchema, b4 as createSyllabusFromTemplateResultSchema, b5 as documentComplianceStatus, b6 as documentRequirement, b7 as documentRequirementGroup, b8 as documentRequirementGroupAssignment, b9 as documentSchema, ba as documentShareSchema, bb as documentType, bc as enrollmentTrainingElementSchema, bd as eventSchema, be as expenseItemSchema, bf as expenseSchema, bg as extendedAirplaneSchema, bh as fboAcceptanceAxisSchema, bi as fboAcceptanceStatusSchema, bj as fboActivityCauserSchema, bk as fboActivityChangesSchema, bl as fboActivitySchema, bm as fboCompanyGrantInputSchema, bn as fboCompanyGrantSchema, bo as fboCompanyMemberSchema, bp as fboCompanyProfileSchema, bq as fboCompanySchema, br as fboDecisionAxisSchema, bs as fboDecisionInputSchema, bt as fboDecisionSchema, bu as fboDutyAffectedSchema, bv as fboDutySchema, bw as fboDutySeriesResponseSchema, bx as fboFlightCanSchema, by as fboFlightDocumentSchema, bz as fboFlightSchema, bA as fboFlightStatusSchema, bB as fboFlightTypeSchema, bC as fboGrantAbilityOptionSchema, bD as fboGrantAbilitySchema, bE as fboGrantCompanyRefSchema, bF as fboGroundServicesSchema, bG as fboLandingsSummarySchema, bH as fboMaterialiseResultSchema, bI as fboMetaSchema, bJ as fboNextDutySchema, bK as fboOccupationSchema, bL as fboOperationsSchema, bM as fboPersonSchema, bN as fboPobSchema, bO as fboRecurrenceSchema, bP as fboRecurrenceTypeSchema, bQ as fboRecurringFlightSchema, bR as fboRoleSchema, bS as fboRowCanSchema, bT as fboStatisticsSchema, bU as fboSystemRoleSchema, bV as fboTrafficLayerInputSchema, bW as fboTrafficRowSchema, bX as fboTrafficRowTypeSchema, bY as fboTrafficSourceSchema, bZ as fboVisibilitySchema, b_ as fboWeeklyLandingSchema, b$ as feeCategoryOptionsSchema, c0 as feeSchema, c1 as flightLogSchema, c2 as flightRequestAvailabilitySchema, c3 as flightRequestBusyIntervalSchema, c4 as flightRequestResponseSchema, c5 as flightRequestResponseStatusSchema, c6 as flightRequestSchema, c7 as flightRequestSeatSchema, c8 as flightRequestStatusSchema, c9 as flightRequestWindowSchema, ca as fuelUnitSchema, cb as gradeHistoryItemSchema, cc as gradingScalePointSchema, cd as gradingScaleSchema, ce as impersonationParticipantSchema, cf as impersonationStateSchema, cg as invalidateTrainingRecordResponseSchema, ch as invoiceSchema, ci as landingFeeSchema, cj as landingSchema, ck as maintenanceEventEstimationSchema, cl as maintenanceEventSchema, cm as maintenanceStatusSchema, cn as mediaCollection, co as mediaSchema, cp as membershipIdentitySchema, cq as membershipSchema, cr as membershipSignupSchema, cs as nestedMembershipSchema, ct as postSchema, cu as postSubjectSchema, cv as prePaidPackageAssignmentSchema, cw as prePaidPackageSchema, cx as priceSchema, cy as qualificationSchema, cz as recurringFlightSchema, cA as roleSchema, cB as runwaySchema, cC as scheduledFlightSchema, cD as settingSchema, cE as specialFlightSchema, cF as syllabusElementMutationResultSchema, cG as syllabusElementSchema, cH as syllabusRolloutResultItemSchema, cI as syllabusRolloutResultSchema, cJ as syllabusRolloutSkippedItemSchema, cK as syllabusSchema, cL as tagSchema, cM as teachingPermissionSchema, cN as ticketSchema, cO as trainingElementSchema, cP as trainingRecordEntryInputSchema, cQ as trainingRecordEntrySchema, cR as trainingRecordSchema, cS as trainingSignatureSchema, cT as trainingTemplatePackSchema, cU as usedByCourseSchema, cV as userAircraftRatingSchema, cW as userQualificationSchema, cX as userSchema, cY as waypointSchema, cZ as zContactDTO, c_ as zMoneyObject, c$ as zNetGross, d0 as zNullableBool } from '../fbo-8TJiRqg1.cjs';
1
+ import { m as FormFieldType, u as FormSubmissionStatus, t as FormSubmissionSource } from '../conversation-CJlHvwCn.cjs';
2
+ 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 FBO_OPERATING_DAYS, j as FBO_SYSTEM_ROLES, k as FieldLabel, l as FieldLabelSchema, n as FormSubmission, o as FormSubmissionSchema, p as FormSubmissionShare, q as FormSubmissionShareBase, r as FormSubmissionShareBaseSchema, s as FormSubmissionShareSchema, v as FormTemplate, w as FormTemplateAssignment, x as FormTemplateAssignmentSchema, y as FormTemplateSchema, z as FuelUnit, G as GradeHistoryItem, D as GradingScale, H as GradingScaleForm, I as GradingScaleFormSchema, J as GradingScalePoint, K as ImpersonationParticipant, L as ImpersonationState, M as InvalidateTrainingRecordResponse, R as ReorderSyllabusElementItem, N as ReorderSyllabusElementItemSchema, O as RequiredForm, P as RequiredFormSchema, Q as RequiredFormVia, S as RequiredFormViaCrew, T as RequiredFormViaCrewSchema, U as RequiredFormViaSchema, V as ReviewFormSubmissionInput, W as SchemaField, X as SchemaFieldSchema, Y as SchemaSection, Z as SchemaSectionSchema, _ as ShowWhen, $ as ShowWhenSchema, a0 as SignOffTrainingElementForm, a1 as SignOffTrainingElementFormSchema, a2 as Signature, a3 as SignatureSchema, a4 as StoreSyllabusForm, a5 as StoreSyllabusFormSchema, a6 as SubmissionFile, a7 as SubmissionFileSchema, a8 as Syllabus, a9 as SyllabusElement, aa as SyllabusElementMutationResult, ab as SyllabusKind, ac as SyllabusKindEnum, ad as SyllabusRolloutResult, ae as SyllabusRolloutResultItem, af as SyllabusRolloutSkippedItem, ag as TemplateSchema, ah as TemplateSchemaSchema, ai as TrainingElement, aj as TrainingElementForm, ak as TrainingElementFormSchema, al as TrainingElementKind, am as TrainingElementKindEnum, an as TrainingRecord, ao as TrainingRecordEntry, ap as TrainingRecordEntryInput, aq as TrainingRecordResult, ar as TrainingRecordResultEnum, as as TrainingRecordStatus, at as TrainingRecordStatusEnum, au as TrainingSignature, av as TrainingTemplatePack, aw as UpdateFormTemplateInput, ax as UpdateSyllabusElementForm, ay as UpdateSyllabusElementFormSchema, az as UpdateSyllabusForm, aA as UpdateSyllabusFormSchema, aB as UpsertTrainingRecordForm, aC as UpsertTrainingRecordFormSchema, aD as UsedByCourse, aE as activitySchema, aF as addressSchema, aG as aircraftPositionSchema, aH as aircraftRatingSchema, aI as airplaneIssueSchema, aJ as airplaneIssueSeverityEnum, aK as airplaneIssueStatusEnum, aL as airplanePermissionSchema, aM as airplaneSchema, aN as airplaneShareInviteSchema, aO as airportSchema, aP as alertSchema, aQ as allowedDocumentTypeSchema, aR as approachTypeSchema, aS as availSchema, aT as baseMembershipSchema, aU as billingProfileSchema, aV as bookingSchema, aW as bookingWaypointSchema, aX as commentSchema, aY as companyIdentitySchema, aZ as companySchema, a_ as contactAttributeSchema, a$ as conversationKindSchema, b0 as conversationMessageSchema, b1 as conversationMessageSentEventSchema, b2 as conversationParticipantSchema, b3 as conversationReadEventSchema, b4 as conversationRecipientSchema, b5 as conversationSchema, b6 as conversationUnreadSummarySchema, b7 as courseCheckSyllabusSchema, b8 as courseEnrollmentMetricsSchema, b9 as courseEnrollmentSchema, ba as courseFeeSchema, bb as courseSchema, bc as createSyllabusFromTemplateResultSchema, bd as documentComplianceStatus, be as documentRequirement, bf as documentRequirementGroup, bg as documentRequirementGroupAssignment, bh as documentSchema, bi as documentShareSchema, bj as documentType, bk as enrollmentTrainingElementSchema, bl as eventSchema, bm as expenseItemSchema, bn as expenseSchema, bo as extendedAirplaneSchema, bp as fboAcceptanceAxisSchema, bq as fboAcceptanceStatusSchema, br as fboActivityCauserSchema, bs as fboActivityChangesSchema, bt as fboActivitySchema, bu as fboCompanyGrantInputSchema, bv as fboCompanyGrantSchema, bw as fboCompanyMemberSchema, bx as fboCompanyProfileSchema, by as fboCompanySchema, bz as fboDecisionAxisSchema, bA as fboDecisionInputSchema, bB as fboDecisionSchema, bC as fboDutyAffectedSchema, bD as fboDutySchema, bE as fboDutySeriesResponseSchema, bF as fboFlightCanSchema, bG as fboFlightDocumentSchema, bH as fboFlightSchema, bI as fboFlightStatusSchema, bJ as fboFlightTypeSchema, bK as fboGrantAbilityOptionSchema, bL as fboGrantAbilitySchema, bM as fboGrantCompanyRefSchema, bN as fboGroundServicesSchema, bO as fboLandingsSummarySchema, bP as fboMaterialiseResultSchema, bQ as fboMetaSchema, bR as fboNextDutySchema, bS as fboOccupationSchema, bT as fboOperationsSchema, bU as fboPersonSchema, bV as fboPobSchema, bW as fboRecurrenceSchema, bX as fboRecurrenceTypeSchema, bY as fboRecurringFlightSchema, bZ as fboRoleSchema, b_ as fboRowCanSchema, b$ as fboStatisticsSchema, c0 as fboSystemRoleSchema, c1 as fboTrafficLayerInputSchema, c2 as fboTrafficRowSchema, c3 as fboTrafficRowTypeSchema, c4 as fboTrafficSourceSchema, c5 as fboVisibilitySchema, c6 as fboWeeklyLandingSchema, c7 as feeCategoryOptionsSchema, c8 as feeSchema, c9 as flightLogSchema, ca as flightRequestAvailabilitySchema, cb as flightRequestBusyIntervalSchema, cc as flightRequestResponseSchema, cd as flightRequestResponseStatusSchema, ce as flightRequestSchema, cf as flightRequestSeatSchema, cg as flightRequestStatusSchema, ch as flightRequestWindowSchema, ci as fuelUnitSchema, cj as gradeHistoryItemSchema, ck as gradingScalePointSchema, cl as gradingScaleSchema, cm as impersonationParticipantSchema, cn as impersonationStateSchema, co as invalidateTrainingRecordResponseSchema, cp as invoiceSchema, cq as landingFeeSchema, cr as landingSchema, cs as maintenanceEventEstimationSchema, ct as maintenanceEventSchema, cu as maintenanceStatusSchema, cv as mediaCollection, cw as mediaSchema, cx as membershipIdentitySchema, cy as membershipSchema, cz as membershipSignupSchema, cA as nestedMembershipSchema, cB as postSchema, cC as postSubjectSchema, cD as prePaidPackageAssignmentSchema, cE as prePaidPackageSchema, cF as priceSchema, cG as qualificationSchema, cH as recurringFlightSchema, cI as roleSchema, cJ as runwaySchema, cK as scheduledFlightSchema, cL as settingSchema, cM as specialFlightSchema, cN as syllabusElementMutationResultSchema, cO as syllabusElementSchema, cP as syllabusRolloutResultItemSchema, cQ as syllabusRolloutResultSchema, cR as syllabusRolloutSkippedItemSchema, cS as syllabusSchema, cT as tagSchema, cU as teachingPermissionSchema, cV as ticketSchema, cW as trainingElementSchema, cX as trainingRecordEntryInputSchema, cY as trainingRecordEntrySchema, cZ as trainingRecordSchema, c_ as trainingSignatureSchema, c$ as trainingTemplatePackSchema, d0 as usedByCourseSchema, d1 as userAircraftRatingSchema, d2 as userQualificationSchema, d3 as userSchema, d4 as waypointSchema, d5 as zContactDTO, d6 as zMoneyObject, d7 as zNetGross, d8 as zNullableBool } from '../conversation-CJlHvwCn.cjs';
2
3
  import { z } from 'zod';
3
4
 
4
5
  declare enum FaqStatus {
@@ -29,26 +30,26 @@ declare const FaqSchema: z.ZodObject<{
29
30
  name: z.ZodNullable<z.ZodString>;
30
31
  email: z.ZodNullable<z.ZodString>;
31
32
  }, "strip", z.ZodTypeAny, {
33
+ id: number;
32
34
  name: string | null;
33
35
  email: string | null;
34
- id: number;
35
36
  }, {
37
+ id: number;
36
38
  name: string | null;
37
39
  email: string | null;
38
- id: number;
39
40
  }>>>;
40
41
  reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
42
  id: z.ZodNumber;
42
43
  name: z.ZodNullable<z.ZodString>;
43
44
  email: z.ZodNullable<z.ZodString>;
44
45
  }, "strip", z.ZodTypeAny, {
46
+ id: number;
45
47
  name: string | null;
46
48
  email: string | null;
47
- id: number;
48
49
  }, {
50
+ id: number;
49
51
  name: string | null;
50
52
  email: string | null;
51
- id: number;
52
53
  }>>>;
53
54
  is_pending: z.ZodOptional<z.ZodBoolean>;
54
55
  is_user_submitted: z.ZodOptional<z.ZodBoolean>;
@@ -72,9 +73,9 @@ declare const FaqSchema: z.ZodObject<{
72
73
  submit?: boolean | undefined;
73
74
  }>>;
74
75
  }, "strip", z.ZodTypeAny, {
76
+ id: number;
75
77
  type: "faq";
76
78
  status: "pending" | "approved" | "rejected";
77
- id: number;
78
79
  created_at: string;
79
80
  updated_at: string;
80
81
  is_active: boolean;
@@ -97,21 +98,21 @@ declare const FaqSchema: z.ZodObject<{
97
98
  submit?: boolean | undefined;
98
99
  } | undefined;
99
100
  submitter?: {
101
+ id: number;
100
102
  name: string | null;
101
103
  email: string | null;
102
- id: number;
103
104
  } | null | undefined;
104
105
  reviewer?: {
106
+ id: number;
105
107
  name: string | null;
106
108
  email: string | null;
107
- id: number;
108
109
  } | null | undefined;
109
110
  is_pending?: boolean | undefined;
110
111
  is_user_submitted?: boolean | undefined;
111
112
  }, {
113
+ id: number;
112
114
  type: "faq";
113
115
  status: "pending" | "approved" | "rejected";
114
- id: number;
115
116
  created_at: string;
116
117
  updated_at: string;
117
118
  is_active: boolean;
@@ -134,14 +135,14 @@ declare const FaqSchema: z.ZodObject<{
134
135
  submit?: boolean | undefined;
135
136
  } | undefined;
136
137
  submitter?: {
138
+ id: number;
137
139
  name: string | null;
138
140
  email: string | null;
139
- id: number;
140
141
  } | null | undefined;
141
142
  reviewer?: {
143
+ id: number;
142
144
  name: string | null;
143
145
  email: string | null;
144
- id: number;
145
146
  } | null | undefined;
146
147
  is_pending?: boolean | undefined;
147
148
  is_user_submitted?: boolean | undefined;
@@ -214,21 +215,21 @@ declare const SafetyReportCategorySchema: z.ZodObject<{
214
215
  created_at: z.ZodOptional<z.ZodString>;
215
216
  updated_at: z.ZodOptional<z.ZodString>;
216
217
  }, "strip", z.ZodTypeAny, {
217
- name: string;
218
+ sort_order: number;
218
219
  id: number;
220
+ name: string;
219
221
  description: string | null;
220
222
  is_active: boolean;
221
- sort_order: number;
222
223
  color: string;
223
224
  created_at?: string | undefined;
224
225
  updated_at?: string | undefined;
225
226
  is_global?: boolean | undefined;
226
227
  }, {
227
- name: string;
228
+ sort_order: number;
228
229
  id: number;
230
+ name: string;
229
231
  description: string | null;
230
232
  is_active: boolean;
231
- sort_order: number;
232
233
  color: string;
233
234
  created_at?: string | undefined;
234
235
  updated_at?: string | undefined;
@@ -243,15 +244,15 @@ declare const SafetyReportCategoryFormSchema: z.ZodObject<{
243
244
  is_active: z.ZodOptional<z.ZodBoolean>;
244
245
  }, "strip", z.ZodTypeAny, {
245
246
  name: string;
247
+ sort_order?: number | undefined;
246
248
  description?: string | null | undefined;
247
249
  is_active?: boolean | undefined;
248
- sort_order?: number | undefined;
249
250
  color?: string | null | undefined;
250
251
  }, {
251
252
  name: string;
253
+ sort_order?: number | undefined;
252
254
  description?: string | null | undefined;
253
255
  is_active?: boolean | undefined;
254
- sort_order?: number | undefined;
255
256
  color?: string | null | undefined;
256
257
  }>;
257
258
  type SafetyReportCategoryForm = z.infer<typeof SafetyReportCategoryFormSchema>;
@@ -293,21 +294,21 @@ declare const SafetyReportSchema: z.ZodObject<{
293
294
  created_at: z.ZodOptional<z.ZodString>;
294
295
  updated_at: z.ZodOptional<z.ZodString>;
295
296
  }, "strip", z.ZodTypeAny, {
296
- name: string;
297
+ sort_order: number;
297
298
  id: number;
299
+ name: string;
298
300
  description: string | null;
299
301
  is_active: boolean;
300
- sort_order: number;
301
302
  color: string;
302
303
  created_at?: string | undefined;
303
304
  updated_at?: string | undefined;
304
305
  is_global?: boolean | undefined;
305
306
  }, {
306
- name: string;
307
+ sort_order: number;
307
308
  id: number;
309
+ name: string;
308
310
  description: string | null;
309
311
  is_active: boolean;
310
- sort_order: number;
311
312
  color: string;
312
313
  created_at?: string | undefined;
313
314
  updated_at?: string | undefined;
@@ -337,8 +338,8 @@ declare const SafetyReportSchema: z.ZodObject<{
337
338
  updated_at: z.ZodString;
338
339
  can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
339
340
  }, "strip", z.ZodTypeAny, {
340
- status: "closed" | "new" | "under_review" | "action_taken";
341
341
  id: number;
342
+ status: "closed" | "new" | "under_review" | "action_taken";
342
343
  created_at: string;
343
344
  updated_at: string;
344
345
  description: string;
@@ -347,11 +348,11 @@ declare const SafetyReportSchema: z.ZodObject<{
347
348
  location: string | null;
348
349
  can?: Record<string, boolean> | undefined;
349
350
  category?: {
350
- name: string;
351
+ sort_order: number;
351
352
  id: number;
353
+ name: string;
352
354
  description: string | null;
353
355
  is_active: boolean;
354
- sort_order: number;
355
356
  color: string;
356
357
  created_at?: string | undefined;
357
358
  updated_at?: string | undefined;
@@ -366,8 +367,8 @@ declare const SafetyReportSchema: z.ZodObject<{
366
367
  }[] | undefined;
367
368
  attachments_count?: number | undefined;
368
369
  }, {
369
- status: "closed" | "new" | "under_review" | "action_taken";
370
370
  id: number;
371
+ status: "closed" | "new" | "under_review" | "action_taken";
371
372
  created_at: string;
372
373
  updated_at: string;
373
374
  description: string;
@@ -376,11 +377,11 @@ declare const SafetyReportSchema: z.ZodObject<{
376
377
  location: string | null;
377
378
  can?: Record<string, boolean> | undefined;
378
379
  category?: {
379
- name: string;
380
+ sort_order: number;
380
381
  id: number;
382
+ name: string;
381
383
  description: string | null;
382
384
  is_active: boolean;
383
- sort_order: number;
384
385
  color: string;
385
386
  created_at?: string | undefined;
386
387
  updated_at?: string | undefined;
@@ -415,21 +416,21 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
415
416
  created_at: z.ZodOptional<z.ZodString>;
416
417
  updated_at: z.ZodOptional<z.ZodString>;
417
418
  }, "strip", z.ZodTypeAny, {
418
- name: string;
419
+ sort_order: number;
419
420
  id: number;
421
+ name: string;
420
422
  description: string | null;
421
423
  is_active: boolean;
422
- sort_order: number;
423
424
  color: string;
424
425
  created_at?: string | undefined;
425
426
  updated_at?: string | undefined;
426
427
  is_global?: boolean | undefined;
427
428
  }, {
428
- name: string;
429
+ sort_order: number;
429
430
  id: number;
431
+ name: string;
430
432
  description: string | null;
431
433
  is_active: boolean;
432
- sort_order: number;
433
434
  color: string;
434
435
  created_at?: string | undefined;
435
436
  updated_at?: string | undefined;
@@ -459,8 +460,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
459
460
  updated_at: z.ZodString;
460
461
  can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
461
462
  }, "strip", z.ZodTypeAny, {
462
- status: "closed" | "new" | "under_review" | "action_taken";
463
463
  id: number;
464
+ status: "closed" | "new" | "under_review" | "action_taken";
464
465
  created_at: string;
465
466
  updated_at: string;
466
467
  description: string;
@@ -469,11 +470,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
469
470
  location: string | null;
470
471
  can?: Record<string, boolean> | undefined;
471
472
  category?: {
472
- name: string;
473
+ sort_order: number;
473
474
  id: number;
475
+ name: string;
474
476
  description: string | null;
475
477
  is_active: boolean;
476
- sort_order: number;
477
478
  color: string;
478
479
  created_at?: string | undefined;
479
480
  updated_at?: string | undefined;
@@ -488,8 +489,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
488
489
  }[] | undefined;
489
490
  attachments_count?: number | undefined;
490
491
  }, {
491
- status: "closed" | "new" | "under_review" | "action_taken";
492
492
  id: number;
493
+ status: "closed" | "new" | "under_review" | "action_taken";
493
494
  created_at: string;
494
495
  updated_at: string;
495
496
  description: string;
@@ -498,11 +499,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
498
499
  location: string | null;
499
500
  can?: Record<string, boolean> | undefined;
500
501
  category?: {
501
- name: string;
502
+ sort_order: number;
502
503
  id: number;
504
+ name: string;
503
505
  description: string | null;
504
506
  is_active: boolean;
505
- sort_order: number;
506
507
  color: string;
507
508
  created_at?: string | undefined;
508
509
  updated_at?: string | undefined;
@@ -557,8 +558,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
557
558
  }>>;
558
559
  }, "strip", z.ZodTypeAny, {
559
560
  data: {
560
- status: "closed" | "new" | "under_review" | "action_taken";
561
561
  id: number;
562
+ status: "closed" | "new" | "under_review" | "action_taken";
562
563
  created_at: string;
563
564
  updated_at: string;
564
565
  description: string;
@@ -567,11 +568,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
567
568
  location: string | null;
568
569
  can?: Record<string, boolean> | undefined;
569
570
  category?: {
570
- name: string;
571
+ sort_order: number;
571
572
  id: number;
573
+ name: string;
572
574
  description: string | null;
573
575
  is_active: boolean;
574
- sort_order: number;
575
576
  color: string;
576
577
  created_at?: string | undefined;
577
578
  updated_at?: string | undefined;
@@ -602,8 +603,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
602
603
  } | undefined;
603
604
  }, {
604
605
  data: {
605
- status: "closed" | "new" | "under_review" | "action_taken";
606
606
  id: number;
607
+ status: "closed" | "new" | "under_review" | "action_taken";
607
608
  created_at: string;
608
609
  updated_at: string;
609
610
  description: string;
@@ -612,11 +613,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
612
613
  location: string | null;
613
614
  can?: Record<string, boolean> | undefined;
614
615
  category?: {
615
- name: string;
616
+ sort_order: number;
616
617
  id: number;
618
+ name: string;
617
619
  description: string | null;
618
620
  is_active: boolean;
619
- sort_order: number;
620
621
  color: string;
621
622
  created_at?: string | undefined;
622
623
  updated_at?: string | undefined;
@@ -978,10 +979,10 @@ declare const courseMilestoneSchema: z.ZodObject<{
978
979
  delete?: boolean | null | undefined;
979
980
  }>>;
980
981
  }, "strip", z.ZodTypeAny, {
981
- name: string;
982
+ sort_order: number;
982
983
  id: number;
984
+ name: string;
983
985
  kind: string;
984
- sort_order: number;
985
986
  course_id: number;
986
987
  is_prerequisite: boolean;
987
988
  type?: "courseMilestone" | undefined;
@@ -999,10 +1000,10 @@ declare const courseMilestoneSchema: z.ZodObject<{
999
1000
  } | null | undefined;
1000
1001
  completion_rule?: Record<string, unknown> | null | undefined;
1001
1002
  }, {
1002
- name: string;
1003
+ sort_order: number;
1003
1004
  id: number;
1005
+ name: string;
1004
1006
  kind: string;
1005
- sort_order: number;
1006
1007
  course_id: number;
1007
1008
  is_prerequisite: boolean;
1008
1009
  type?: "courseMilestone" | undefined;
@@ -1033,15 +1034,15 @@ declare const CourseMilestoneFormSchema: z.ZodObject<{
1033
1034
  name: string;
1034
1035
  kind: string;
1035
1036
  is_prerequisite: boolean;
1036
- description?: string | null | undefined;
1037
1037
  sort_order?: number | undefined;
1038
+ description?: string | null | undefined;
1038
1039
  requires_form_template_id?: number | null | undefined;
1039
1040
  completion_rule?: Record<string, unknown> | null | undefined;
1040
1041
  }, {
1041
1042
  name: string;
1043
+ sort_order?: number | undefined;
1042
1044
  description?: string | null | undefined;
1043
1045
  kind?: string | undefined;
1044
- sort_order?: number | undefined;
1045
1046
  is_prerequisite?: boolean | undefined;
1046
1047
  requires_form_template_id?: number | null | undefined;
1047
1048
  completion_rule?: Record<string, unknown> | null | undefined;
@@ -1086,10 +1087,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1086
1087
  delete?: boolean | null | undefined;
1087
1088
  }>>;
1088
1089
  }, "strip", z.ZodTypeAny, {
1089
- name: string;
1090
+ sort_order: number;
1090
1091
  id: number;
1092
+ name: string;
1091
1093
  kind: string;
1092
- sort_order: number;
1093
1094
  course_id: number;
1094
1095
  is_prerequisite: boolean;
1095
1096
  type?: "courseMilestone" | undefined;
@@ -1107,10 +1108,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1107
1108
  } | null | undefined;
1108
1109
  completion_rule?: Record<string, unknown> | null | undefined;
1109
1110
  }, {
1110
- name: string;
1111
+ sort_order: number;
1111
1112
  id: number;
1113
+ name: string;
1112
1114
  kind: string;
1113
- sort_order: number;
1114
1115
  course_id: number;
1115
1116
  is_prerequisite: boolean;
1116
1117
  type?: "courseMilestone" | undefined;
@@ -1176,10 +1177,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1176
1177
  } | undefined;
1177
1178
  notes?: string | null | undefined;
1178
1179
  milestone?: {
1179
- name: string;
1180
+ sort_order: number;
1180
1181
  id: number;
1182
+ name: string;
1181
1183
  kind: string;
1182
- sort_order: number;
1183
1184
  course_id: number;
1184
1185
  is_prerequisite: boolean;
1185
1186
  type?: "courseMilestone" | undefined;
@@ -1218,10 +1219,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1218
1219
  } | undefined;
1219
1220
  notes?: string | null | undefined;
1220
1221
  milestone?: {
1221
- name: string;
1222
+ sort_order: number;
1222
1223
  id: number;
1224
+ name: string;
1223
1225
  kind: string;
1224
- sort_order: number;
1225
1226
  course_id: number;
1226
1227
  is_prerequisite: boolean;
1227
1228
  type?: "courseMilestone" | undefined;
@@ -1261,14 +1262,14 @@ declare const equipmentSchema: z.ZodObject<{
1261
1262
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1262
1263
  manual_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1263
1264
  }, "strip", z.ZodTypeAny, {
1264
- name: string;
1265
1265
  id: number;
1266
+ name: string;
1266
1267
  type?: "equipment" | undefined;
1267
1268
  description?: string | null | undefined;
1268
1269
  manual_url?: string | null | undefined;
1269
1270
  }, {
1270
- name: string;
1271
1271
  id: number;
1272
+ name: string;
1272
1273
  type?: "equipment" | undefined;
1273
1274
  description?: string | null | undefined;
1274
1275
  manual_url?: string | null | undefined;
@@ -1464,11 +1465,11 @@ declare const NewsletterCategorySchema: z.ZodObject<{
1464
1465
  created_at: z.ZodOptional<z.ZodString>;
1465
1466
  updated_at: z.ZodOptional<z.ZodString>;
1466
1467
  }, "strip", z.ZodTypeAny, {
1467
- name: string;
1468
+ sort_order: number;
1468
1469
  id: number;
1470
+ name: string;
1469
1471
  key: string;
1470
1472
  is_active: boolean;
1471
- sort_order: number;
1472
1473
  is_mandatory: boolean;
1473
1474
  type?: "newsletter_category" | undefined;
1474
1475
  created_at?: string | undefined;
@@ -1477,11 +1478,11 @@ declare const NewsletterCategorySchema: z.ZodObject<{
1477
1478
  default_opt_in?: boolean | undefined;
1478
1479
  is_internal?: boolean | undefined;
1479
1480
  }, {
1480
- name: string;
1481
+ sort_order: number;
1481
1482
  id: number;
1483
+ name: string;
1482
1484
  key: string;
1483
1485
  is_active: boolean;
1484
- sort_order: number;
1485
1486
  is_mandatory: boolean;
1486
1487
  type?: "newsletter_category" | undefined;
1487
1488
  created_at?: string | undefined;
@@ -1639,11 +1640,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1639
1640
  created_at: z.ZodOptional<z.ZodString>;
1640
1641
  updated_at: z.ZodOptional<z.ZodString>;
1641
1642
  }, "strip", z.ZodTypeAny, {
1642
- name: string;
1643
+ sort_order: number;
1643
1644
  id: number;
1645
+ name: string;
1644
1646
  key: string;
1645
1647
  is_active: boolean;
1646
- sort_order: number;
1647
1648
  is_mandatory: boolean;
1648
1649
  type?: "newsletter_category" | undefined;
1649
1650
  created_at?: string | undefined;
@@ -1652,11 +1653,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1652
1653
  default_opt_in?: boolean | undefined;
1653
1654
  is_internal?: boolean | undefined;
1654
1655
  }, {
1655
- name: string;
1656
+ sort_order: number;
1656
1657
  id: number;
1658
+ name: string;
1657
1659
  key: string;
1658
1660
  is_active: boolean;
1659
- sort_order: number;
1660
1661
  is_mandatory: boolean;
1661
1662
  type?: "newsletter_category" | undefined;
1662
1663
  created_at?: string | undefined;
@@ -1803,12 +1804,12 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1803
1804
  name: z.ZodString;
1804
1805
  email: z.ZodOptional<z.ZodString>;
1805
1806
  }, "strip", z.ZodTypeAny, {
1806
- name: string;
1807
1807
  id: number;
1808
+ name: string;
1808
1809
  email?: string | undefined;
1809
1810
  }, {
1810
- name: string;
1811
1811
  id: number;
1812
+ name: string;
1812
1813
  email?: string | undefined;
1813
1814
  }>>>;
1814
1815
  can: z.ZodOptional<z.ZodObject<{
@@ -1827,8 +1828,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1827
1828
  created_at: z.ZodOptional<z.ZodString>;
1828
1829
  updated_at: z.ZodOptional<z.ZodString>;
1829
1830
  }, "strip", z.ZodTypeAny, {
1830
- name: string;
1831
1831
  id: number;
1832
+ name: string;
1832
1833
  is_active: boolean;
1833
1834
  company_id: number | null;
1834
1835
  schema_version: number;
@@ -1872,11 +1873,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1872
1873
  duplicate?: boolean | undefined;
1873
1874
  } | undefined;
1874
1875
  category?: {
1875
- name: string;
1876
+ sort_order: number;
1876
1877
  id: number;
1878
+ name: string;
1877
1879
  key: string;
1878
1880
  is_active: boolean;
1879
- sort_order: number;
1880
1881
  is_mandatory: boolean;
1881
1882
  type?: "newsletter_category" | undefined;
1882
1883
  created_at?: string | undefined;
@@ -1888,14 +1889,14 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1888
1889
  created_by?: number | null | undefined;
1889
1890
  is_system?: boolean | undefined;
1890
1891
  creator?: {
1891
- name: string;
1892
1892
  id: number;
1893
+ name: string;
1893
1894
  email?: string | undefined;
1894
1895
  } | null | undefined;
1895
1896
  preheader?: string | null | undefined;
1896
1897
  }, {
1897
- name: string;
1898
1898
  id: number;
1899
+ name: string;
1899
1900
  is_active: boolean;
1900
1901
  company_id: number | null;
1901
1902
  schema_version: number;
@@ -1939,11 +1940,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1939
1940
  duplicate?: boolean | undefined;
1940
1941
  } | undefined;
1941
1942
  category?: {
1942
- name: string;
1943
+ sort_order: number;
1943
1944
  id: number;
1945
+ name: string;
1944
1946
  key: string;
1945
1947
  is_active: boolean;
1946
- sort_order: number;
1947
1948
  is_mandatory: boolean;
1948
1949
  type?: "newsletter_category" | undefined;
1949
1950
  created_at?: string | undefined;
@@ -1955,8 +1956,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1955
1956
  created_by?: number | null | undefined;
1956
1957
  is_system?: boolean | undefined;
1957
1958
  creator?: {
1958
- name: string;
1959
1959
  id: number;
1960
+ name: string;
1960
1961
  email?: string | undefined;
1961
1962
  } | null | undefined;
1962
1963
  preheader?: string | null | undefined;
@@ -2339,11 +2340,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2339
2340
  created_at: z.ZodOptional<z.ZodString>;
2340
2341
  updated_at: z.ZodOptional<z.ZodString>;
2341
2342
  }, "strip", z.ZodTypeAny, {
2342
- name: string;
2343
+ sort_order: number;
2343
2344
  id: number;
2345
+ name: string;
2344
2346
  key: string;
2345
2347
  is_active: boolean;
2346
- sort_order: number;
2347
2348
  is_mandatory: boolean;
2348
2349
  type?: "newsletter_category" | undefined;
2349
2350
  created_at?: string | undefined;
@@ -2352,11 +2353,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2352
2353
  default_opt_in?: boolean | undefined;
2353
2354
  is_internal?: boolean | undefined;
2354
2355
  }, {
2355
- name: string;
2356
+ sort_order: number;
2356
2357
  id: number;
2358
+ name: string;
2357
2359
  key: string;
2358
2360
  is_active: boolean;
2359
- sort_order: number;
2360
2361
  is_mandatory: boolean;
2361
2362
  type?: "newsletter_category" | undefined;
2362
2363
  created_at?: string | undefined;
@@ -2503,12 +2504,12 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2503
2504
  name: z.ZodString;
2504
2505
  email: z.ZodOptional<z.ZodString>;
2505
2506
  }, "strip", z.ZodTypeAny, {
2506
- name: string;
2507
2507
  id: number;
2508
+ name: string;
2508
2509
  email?: string | undefined;
2509
2510
  }, {
2510
- name: string;
2511
2511
  id: number;
2512
+ name: string;
2512
2513
  email?: string | undefined;
2513
2514
  }>>>>;
2514
2515
  can: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -2527,9 +2528,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2527
2528
  created_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2528
2529
  updated_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2529
2530
  }, "strip", z.ZodTypeAny, {
2531
+ id?: number | undefined;
2530
2532
  name?: string | undefined;
2531
2533
  type?: "newsletter_template" | undefined;
2532
- id?: number | undefined;
2533
2534
  created_at?: string | undefined;
2534
2535
  updated_at?: string | undefined;
2535
2536
  description?: string | null | undefined;
@@ -2542,11 +2543,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2542
2543
  company_id?: number | null | undefined;
2543
2544
  schema_version?: number | undefined;
2544
2545
  category?: {
2545
- name: string;
2546
+ sort_order: number;
2546
2547
  id: number;
2548
+ name: string;
2547
2549
  key: string;
2548
2550
  is_active: boolean;
2549
- sort_order: number;
2550
2551
  is_mandatory: boolean;
2551
2552
  type?: "newsletter_category" | undefined;
2552
2553
  created_at?: string | undefined;
@@ -2586,17 +2587,17 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2586
2587
  } | undefined;
2587
2588
  is_system?: boolean | undefined;
2588
2589
  creator?: {
2589
- name: string;
2590
2590
  id: number;
2591
+ name: string;
2591
2592
  email?: string | undefined;
2592
2593
  } | null | undefined;
2593
2594
  newsletter_category_id?: number | undefined;
2594
2595
  subject?: string | undefined;
2595
2596
  preheader?: string | null | undefined;
2596
2597
  }, {
2598
+ id?: number | undefined;
2597
2599
  name?: string | undefined;
2598
2600
  type?: "newsletter_template" | undefined;
2599
- id?: number | undefined;
2600
2601
  created_at?: string | undefined;
2601
2602
  updated_at?: string | undefined;
2602
2603
  description?: string | null | undefined;
@@ -2609,11 +2610,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2609
2610
  company_id?: number | null | undefined;
2610
2611
  schema_version?: number | undefined;
2611
2612
  category?: {
2612
- name: string;
2613
+ sort_order: number;
2613
2614
  id: number;
2615
+ name: string;
2614
2616
  key: string;
2615
2617
  is_active: boolean;
2616
- sort_order: number;
2617
2618
  is_mandatory: boolean;
2618
2619
  type?: "newsletter_category" | undefined;
2619
2620
  created_at?: string | undefined;
@@ -2653,8 +2654,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2653
2654
  } | undefined;
2654
2655
  is_system?: boolean | undefined;
2655
2656
  creator?: {
2656
- name: string;
2657
2657
  id: number;
2658
+ name: string;
2658
2659
  email?: string | undefined;
2659
2660
  } | null | undefined;
2660
2661
  newsletter_category_id?: number | undefined;
@@ -2678,11 +2679,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2678
2679
  created_at: z.ZodOptional<z.ZodString>;
2679
2680
  updated_at: z.ZodOptional<z.ZodString>;
2680
2681
  }, "strip", z.ZodTypeAny, {
2681
- name: string;
2682
+ sort_order: number;
2682
2683
  id: number;
2684
+ name: string;
2683
2685
  key: string;
2684
2686
  is_active: boolean;
2685
- sort_order: number;
2686
2687
  is_mandatory: boolean;
2687
2688
  type?: "newsletter_category" | undefined;
2688
2689
  created_at?: string | undefined;
@@ -2691,11 +2692,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2691
2692
  default_opt_in?: boolean | undefined;
2692
2693
  is_internal?: boolean | undefined;
2693
2694
  }, {
2694
- name: string;
2695
+ sort_order: number;
2695
2696
  id: number;
2697
+ name: string;
2696
2698
  key: string;
2697
2699
  is_active: boolean;
2698
- sort_order: number;
2699
2700
  is_mandatory: boolean;
2700
2701
  type?: "newsletter_category" | undefined;
2701
2702
  created_at?: string | undefined;
@@ -2931,12 +2932,12 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2931
2932
  name: z.ZodString;
2932
2933
  email: z.ZodOptional<z.ZodString>;
2933
2934
  }, "strip", z.ZodTypeAny, {
2934
- name: string;
2935
2935
  id: number;
2936
+ name: string;
2936
2937
  email?: string | undefined;
2937
2938
  }, {
2938
- name: string;
2939
2939
  id: number;
2940
+ name: string;
2940
2941
  email?: string | undefined;
2941
2942
  }>>>;
2942
2943
  can: z.ZodOptional<z.ZodObject<{
@@ -2964,9 +2965,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2964
2965
  created_at: z.ZodOptional<z.ZodString>;
2965
2966
  updated_at: z.ZodOptional<z.ZodString>;
2966
2967
  }, "strip", z.ZodTypeAny, {
2968
+ id: number;
2967
2969
  name: string;
2968
2970
  status: NewsletterCampaignStatus;
2969
- id: number;
2970
2971
  company_id: number | null;
2971
2972
  schema_snapshot: {
2972
2973
  blocks: ({
@@ -3034,11 +3035,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3034
3035
  test_send?: boolean | undefined;
3035
3036
  } | undefined;
3036
3037
  category?: {
3037
- name: string;
3038
+ sort_order: number;
3038
3039
  id: number;
3040
+ name: string;
3039
3041
  key: string;
3040
3042
  is_active: boolean;
3041
- sort_order: number;
3042
3043
  is_mandatory: boolean;
3043
3044
  type?: "newsletter_category" | undefined;
3044
3045
  created_at?: string | undefined;
@@ -3050,9 +3051,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3050
3051
  scheduled_at?: string | null | undefined;
3051
3052
  is_system?: boolean | undefined;
3052
3053
  template?: {
3054
+ id?: number | undefined;
3053
3055
  name?: string | undefined;
3054
3056
  type?: "newsletter_template" | undefined;
3055
- id?: number | undefined;
3056
3057
  created_at?: string | undefined;
3057
3058
  updated_at?: string | undefined;
3058
3059
  description?: string | null | undefined;
@@ -3065,11 +3066,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3065
3066
  company_id?: number | null | undefined;
3066
3067
  schema_version?: number | undefined;
3067
3068
  category?: {
3068
- name: string;
3069
+ sort_order: number;
3069
3070
  id: number;
3071
+ name: string;
3070
3072
  key: string;
3071
3073
  is_active: boolean;
3072
- sort_order: number;
3073
3074
  is_mandatory: boolean;
3074
3075
  type?: "newsletter_category" | undefined;
3075
3076
  created_at?: string | undefined;
@@ -3109,8 +3110,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3109
3110
  } | undefined;
3110
3111
  is_system?: boolean | undefined;
3111
3112
  creator?: {
3112
- name: string;
3113
3113
  id: number;
3114
+ name: string;
3114
3115
  email?: string | undefined;
3115
3116
  } | null | undefined;
3116
3117
  newsletter_category_id?: number | undefined;
@@ -3123,14 +3124,14 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3123
3124
  cancelled_at?: string | null | undefined;
3124
3125
  sent_by_user_id?: number | null | undefined;
3125
3126
  sent_by?: {
3126
- name: string;
3127
3127
  id: number;
3128
+ name: string;
3128
3129
  email?: string | undefined;
3129
3130
  } | null | undefined;
3130
3131
  }, {
3132
+ id: number;
3131
3133
  name: string;
3132
3134
  status: NewsletterCampaignStatus;
3133
- id: number;
3134
3135
  company_id: number | null;
3135
3136
  schema_snapshot: {
3136
3137
  blocks: ({
@@ -3198,11 +3199,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3198
3199
  test_send?: boolean | undefined;
3199
3200
  } | undefined;
3200
3201
  category?: {
3201
- name: string;
3202
+ sort_order: number;
3202
3203
  id: number;
3204
+ name: string;
3203
3205
  key: string;
3204
3206
  is_active: boolean;
3205
- sort_order: number;
3206
3207
  is_mandatory: boolean;
3207
3208
  type?: "newsletter_category" | undefined;
3208
3209
  created_at?: string | undefined;
@@ -3214,9 +3215,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3214
3215
  scheduled_at?: string | null | undefined;
3215
3216
  is_system?: boolean | undefined;
3216
3217
  template?: {
3218
+ id?: number | undefined;
3217
3219
  name?: string | undefined;
3218
3220
  type?: "newsletter_template" | undefined;
3219
- id?: number | undefined;
3220
3221
  created_at?: string | undefined;
3221
3222
  updated_at?: string | undefined;
3222
3223
  description?: string | null | undefined;
@@ -3229,11 +3230,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3229
3230
  company_id?: number | null | undefined;
3230
3231
  schema_version?: number | undefined;
3231
3232
  category?: {
3232
- name: string;
3233
+ sort_order: number;
3233
3234
  id: number;
3235
+ name: string;
3234
3236
  key: string;
3235
3237
  is_active: boolean;
3236
- sort_order: number;
3237
3238
  is_mandatory: boolean;
3238
3239
  type?: "newsletter_category" | undefined;
3239
3240
  created_at?: string | undefined;
@@ -3273,8 +3274,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3273
3274
  } | undefined;
3274
3275
  is_system?: boolean | undefined;
3275
3276
  creator?: {
3276
- name: string;
3277
3277
  id: number;
3278
+ name: string;
3278
3279
  email?: string | undefined;
3279
3280
  } | null | undefined;
3280
3281
  newsletter_category_id?: number | undefined;
@@ -3287,8 +3288,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3287
3288
  cancelled_at?: string | null | undefined;
3288
3289
  sent_by_user_id?: number | null | undefined;
3289
3290
  sent_by?: {
3290
- name: string;
3291
3291
  id: number;
3292
+ name: string;
3292
3293
  email?: string | undefined;
3293
3294
  } | null | undefined;
3294
3295
  }>;
@@ -3616,12 +3617,12 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3616
3617
  name: z.ZodString;
3617
3618
  email: z.ZodOptional<z.ZodString>;
3618
3619
  }, "strip", z.ZodTypeAny, {
3619
- name: string;
3620
3620
  id: number;
3621
+ name: string;
3621
3622
  email?: string | undefined;
3622
3623
  }, {
3623
- name: string;
3624
3624
  id: number;
3625
+ name: string;
3625
3626
  email?: string | undefined;
3626
3627
  }>>>;
3627
3628
  email: z.ZodString;
@@ -3633,15 +3634,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3633
3634
  bounced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3634
3635
  complained_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3635
3636
  }, "strip", z.ZodTypeAny, {
3637
+ id: number;
3636
3638
  email: string;
3637
3639
  status: NewsletterRecipientStatus;
3638
- id: number;
3639
3640
  user_id: number | null;
3640
3641
  newsletter_campaign_id: number;
3641
3642
  type?: "newsletter_campaign_recipient" | undefined;
3642
3643
  user?: {
3643
- name: string;
3644
3644
  id: number;
3645
+ name: string;
3645
3646
  email?: string | undefined;
3646
3647
  } | null | undefined;
3647
3648
  error?: string | null | undefined;
@@ -3651,15 +3652,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3651
3652
  bounced_at?: string | null | undefined;
3652
3653
  complained_at?: string | null | undefined;
3653
3654
  }, {
3655
+ id: number;
3654
3656
  email: string;
3655
3657
  status: NewsletterRecipientStatus;
3656
- id: number;
3657
3658
  user_id: number | null;
3658
3659
  newsletter_campaign_id: number;
3659
3660
  type?: "newsletter_campaign_recipient" | undefined;
3660
3661
  user?: {
3661
- name: string;
3662
3662
  id: number;
3663
+ name: string;
3663
3664
  email?: string | undefined;
3664
3665
  } | null | undefined;
3665
3666
  error?: string | null | undefined;
@@ -4078,16 +4079,18 @@ declare const TodoActionSchema: z.ZodObject<{
4078
4079
  target: string;
4079
4080
  params?: Record<string, any> | undefined;
4080
4081
  }>;
4081
- declare const TodoKey: z.ZodEnum<["fill_form", "sign_form", "review_form", "log_booking", "add_address", "add_required_documents", "share_document", "fill_training_record", "sign_training_record"]>;
4082
+ declare const TodoKey: z.ZodEnum<["fill_form", "sign_form", "review_form", "log_booking", "add_address", "add_required_documents", "share_document", "fill_training_record", "sign_training_record", "handle_ticket"]>;
4083
+ declare const TodoPrioritySchema: z.ZodEnum<["critical", "high", "normal", "low"]>;
4084
+ type TodoPriority = z.infer<typeof TodoPrioritySchema>;
4082
4085
  declare const TodoSchema: z.ZodObject<{
4083
- key: z.ZodEnum<["fill_form", "sign_form", "review_form", "log_booking", "add_address", "add_required_documents", "share_document", "fill_training_record", "sign_training_record"]>;
4086
+ key: z.ZodEnum<["fill_form", "sign_form", "review_form", "log_booking", "add_address", "add_required_documents", "share_document", "fill_training_record", "sign_training_record", "handle_ticket"]>;
4084
4087
  ref_type: z.ZodString;
4085
4088
  ref_id: z.ZodNumber;
4086
4089
  title: z.ZodString;
4087
4090
  subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4088
4091
  due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4089
4092
  is_overdue: z.ZodDefault<z.ZodBoolean>;
4090
- priority: z.ZodDefault<z.ZodEnum<["low", "normal", "high"]>>;
4093
+ priority: z.ZodDefault<z.ZodEnum<["critical", "high", "normal", "low"]>>;
4091
4094
  company_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4092
4095
  action: z.ZodObject<{
4093
4096
  type: z.ZodEnum<["open_dialog", "navigate"]>;
@@ -4104,9 +4107,9 @@ declare const TodoSchema: z.ZodObject<{
4104
4107
  }>;
4105
4108
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4106
4109
  }, "strip", z.ZodTypeAny, {
4107
- key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
4108
4110
  title: string;
4109
- priority: "low" | "normal" | "high";
4111
+ key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record" | "handle_ticket";
4112
+ priority: "critical" | "high" | "normal" | "low";
4110
4113
  is_overdue: boolean;
4111
4114
  ref_type: string;
4112
4115
  ref_id: number;
@@ -4120,8 +4123,8 @@ declare const TodoSchema: z.ZodObject<{
4120
4123
  due_date?: string | null | undefined;
4121
4124
  subtitle?: string | null | undefined;
4122
4125
  }, {
4123
- key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
4124
4126
  title: string;
4127
+ key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record" | "handle_ticket";
4125
4128
  ref_type: string;
4126
4129
  ref_id: number;
4127
4130
  action: {
@@ -4133,7 +4136,7 @@ declare const TodoSchema: z.ZodObject<{
4133
4136
  meta?: Record<string, any> | undefined;
4134
4137
  due_date?: string | null | undefined;
4135
4138
  subtitle?: string | null | undefined;
4136
- priority?: "low" | "normal" | "high" | undefined;
4139
+ priority?: "critical" | "high" | "normal" | "low" | undefined;
4137
4140
  is_overdue?: boolean | undefined;
4138
4141
  }>;
4139
4142
  type Todo = z.infer<typeof TodoSchema>;
@@ -4149,4 +4152,1926 @@ interface TodoAcceptedAlternative {
4149
4152
  form_template_name: string | null;
4150
4153
  }
4151
4154
 
4152
- export { ALLOWED_GEOMETRY_TYPES, ALLOWED_NEWSLETTER_VARIABLES, type AircraftUtilization, AllUsersBucketSchema, type AllowedGeometryType, type AllowedNewsletterVariable, type AudienceBucket, AudienceBucketSchema, AudienceBucketType, type BookingsData, type ButtonBlock, ButtonBlockSchema, type CompanyDevelopmentReportData, CompanyUsersBucketSchema, type CourseEnrollmentMilestone, type CourseMilestone, type CourseMilestoneForm, CourseMilestoneFormSchema, type CourseMilestoneKind, CourseMilestoneKindEnum, type CreateFaqInput, type CreateLocationMapFeatureInput, CreateLocationMapFeatureSchema, type CreateLocationMapInput, CreateLocationMapSchema, type CreateNewsletterCampaignInput, CreateNewsletterCampaignInputSchema, type CreateNewsletterTemplateInput, CreateNewsletterTemplateInputSchema, type DividerBlock, DividerBlockSchema, type Equipment, type EquipmentEntry, type ExpenseData, type Faq, FaqSchema, FaqStatus, type FinancialReportData, type FinancialSummaryData, type FlightHoursData, type GeoJsonFeature, type GeoJsonFeatureCollection, type GeoJsonGeometry, GeometrySchema, type HeadingBlock, HeadingBlockSchema, type ImportFeaturesInput, ImportFeaturesSchema, type InstructorData, type InstructorEfficiencyReportData, type InstructorSummaryData, type InvoiceData, type LandingsData, LocationFeatureVisibility, type LocationMap, type LocationMapFeature, type LocationMapFeatureGeoJson, type LocationMapGeoJson, type LocationMapGeoJsonProperties, LocationMapKind, type Media, type MemberActivityData, type NewsletterAudience, NewsletterAudienceSchema, type NewsletterBlock, NewsletterBlockSchema, NewsletterBlockType, type NewsletterCampaign, type NewsletterCampaignRecipient, NewsletterCampaignRecipientSchema, NewsletterCampaignSchema, NewsletterCampaignStatus, type NewsletterCategory, NewsletterCategorySchema, type NewsletterPreferenceRow, NewsletterPreferenceRowSchema, NewsletterRecipientStatus, type NewsletterTemplate, type NewsletterTemplateDoc, NewsletterTemplateSchema, NewsletterTemplateSchemaSchema, type OperationalReportData, type ParagraphBlock, ParagraphBlockSchema, type PeriodData, type PrepaidPackageData, type Report, type ReportData, type ReportGenerationParams, type ReportGenerationResponse, type ReportGranularity, type ReportListItem, type ReportMedia, type ReportMetadata, type ReportParameters, type ReportStatus, type ReportStatusResponse, type ReportType, type RevenueData, type ReviewFaqInput, ReviewFaqSchema, RoleMembersBucketSchema, SAFETY_REPORT_STATUS_COLORS, SAFETY_REPORT_STATUS_LABELS, type SafetyReport, type SafetyReportCategory, type SafetyReportCategoryForm, SafetyReportCategoryFormSchema, SafetyReportCategorySchema, type SafetyReportFilter, SafetyReportFilterSchema, type SafetyReportForm, SafetyReportFormSchema, type SafetyReportListResponse, SafetyReportListResponseSchema, type SafetyReportMedia, SafetyReportMediaSchema, SafetyReportSchema, type SafetyReportStatus, SafetyReportStatusEnum, type SafetyReportSubmissionResponse, SafetyReportSubmissionResponseSchema, type SafetyReportUpdate, SafetyReportUpdateSchema, type SubmitFaqQuestionInput, SubmitFaqQuestionSchema, type TipTapNode, TipTapNodeSchema, type Todo, type TodoAcceptedAlternative, type TodoAction, TodoActionSchema, TodoKey, TodoSchema, type UpdateFaqInput, type UpdateLocationMapFeatureInput, UpdateLocationMapFeatureSchema, type UpdateLocationMapInput, UpdateLocationMapSchema, type UpdateNewsletterCampaignInput, type UpdateNewsletterTemplateInput, type Viewport, ViewportSchema, companyAudienceInclude, courseEnrollmentMilestoneSchema, courseMilestoneSchema, equipmentSchema };
4155
+ /** State of a company for the CURRENT version of a system contract. */
4156
+ declare const SystemContractStateSchema: z.ZodEnum<["signed", "open", "overdue", "not_issued"]>;
4157
+ type SystemContractState = z.infer<typeof SystemContractStateSchema>;
4158
+ declare const SystemContractRegisterRowSchema: z.ZodObject<{
4159
+ company_id: z.ZodNumber;
4160
+ company_name: z.ZodString;
4161
+ state: z.ZodEnum<["signed", "open", "overdue", "not_issued"]>;
4162
+ /** Highest version this company ever signed — may be older than the current one. */
4163
+ signed_version: z.ZodNullable<z.ZodNumber>;
4164
+ due_date: z.ZodNullable<z.ZodString>;
4165
+ signed_at: z.ZodNullable<z.ZodString>;
4166
+ signed_by: z.ZodNullable<z.ZodString>;
4167
+ submission_id: z.ZodNullable<z.ZodNumber>;
4168
+ }, "strip", z.ZodTypeAny, {
4169
+ company_id: number;
4170
+ signed_at: string | null;
4171
+ company_name: string;
4172
+ state: "signed" | "open" | "overdue" | "not_issued";
4173
+ due_date: string | null;
4174
+ signed_version: number | null;
4175
+ signed_by: string | null;
4176
+ submission_id: number | null;
4177
+ }, {
4178
+ company_id: number;
4179
+ signed_at: string | null;
4180
+ company_name: string;
4181
+ state: "signed" | "open" | "overdue" | "not_issued";
4182
+ due_date: string | null;
4183
+ signed_version: number | null;
4184
+ signed_by: string | null;
4185
+ submission_id: number | null;
4186
+ }>;
4187
+ type SystemContractRegisterRow = z.infer<typeof SystemContractRegisterRowSchema>;
4188
+ declare const SystemContractRegisterEntrySchema: z.ZodObject<{
4189
+ slug: z.ZodString;
4190
+ name: z.ZodString;
4191
+ current_version: z.ZodNumber;
4192
+ companies: z.ZodArray<z.ZodObject<{
4193
+ company_id: z.ZodNumber;
4194
+ company_name: z.ZodString;
4195
+ state: z.ZodEnum<["signed", "open", "overdue", "not_issued"]>;
4196
+ /** Highest version this company ever signed — may be older than the current one. */
4197
+ signed_version: z.ZodNullable<z.ZodNumber>;
4198
+ due_date: z.ZodNullable<z.ZodString>;
4199
+ signed_at: z.ZodNullable<z.ZodString>;
4200
+ signed_by: z.ZodNullable<z.ZodString>;
4201
+ submission_id: z.ZodNullable<z.ZodNumber>;
4202
+ }, "strip", z.ZodTypeAny, {
4203
+ company_id: number;
4204
+ signed_at: string | null;
4205
+ company_name: string;
4206
+ state: "signed" | "open" | "overdue" | "not_issued";
4207
+ due_date: string | null;
4208
+ signed_version: number | null;
4209
+ signed_by: string | null;
4210
+ submission_id: number | null;
4211
+ }, {
4212
+ company_id: number;
4213
+ signed_at: string | null;
4214
+ company_name: string;
4215
+ state: "signed" | "open" | "overdue" | "not_issued";
4216
+ due_date: string | null;
4217
+ signed_version: number | null;
4218
+ signed_by: string | null;
4219
+ submission_id: number | null;
4220
+ }>, "many">;
4221
+ }, "strip", z.ZodTypeAny, {
4222
+ name: string;
4223
+ slug: string;
4224
+ companies: {
4225
+ company_id: number;
4226
+ signed_at: string | null;
4227
+ company_name: string;
4228
+ state: "signed" | "open" | "overdue" | "not_issued";
4229
+ due_date: string | null;
4230
+ signed_version: number | null;
4231
+ signed_by: string | null;
4232
+ submission_id: number | null;
4233
+ }[];
4234
+ current_version: number;
4235
+ }, {
4236
+ name: string;
4237
+ slug: string;
4238
+ companies: {
4239
+ company_id: number;
4240
+ signed_at: string | null;
4241
+ company_name: string;
4242
+ state: "signed" | "open" | "overdue" | "not_issued";
4243
+ due_date: string | null;
4244
+ signed_version: number | null;
4245
+ signed_by: string | null;
4246
+ submission_id: number | null;
4247
+ }[];
4248
+ current_version: number;
4249
+ }>;
4250
+ type SystemContractRegisterEntry = z.infer<typeof SystemContractRegisterEntrySchema>;
4251
+ declare const SystemContractRegisterResponseSchema: z.ZodObject<{
4252
+ data: z.ZodArray<z.ZodObject<{
4253
+ slug: z.ZodString;
4254
+ name: z.ZodString;
4255
+ current_version: z.ZodNumber;
4256
+ companies: z.ZodArray<z.ZodObject<{
4257
+ company_id: z.ZodNumber;
4258
+ company_name: z.ZodString;
4259
+ state: z.ZodEnum<["signed", "open", "overdue", "not_issued"]>;
4260
+ /** Highest version this company ever signed — may be older than the current one. */
4261
+ signed_version: z.ZodNullable<z.ZodNumber>;
4262
+ due_date: z.ZodNullable<z.ZodString>;
4263
+ signed_at: z.ZodNullable<z.ZodString>;
4264
+ signed_by: z.ZodNullable<z.ZodString>;
4265
+ submission_id: z.ZodNullable<z.ZodNumber>;
4266
+ }, "strip", z.ZodTypeAny, {
4267
+ company_id: number;
4268
+ signed_at: string | null;
4269
+ company_name: string;
4270
+ state: "signed" | "open" | "overdue" | "not_issued";
4271
+ due_date: string | null;
4272
+ signed_version: number | null;
4273
+ signed_by: string | null;
4274
+ submission_id: number | null;
4275
+ }, {
4276
+ company_id: number;
4277
+ signed_at: string | null;
4278
+ company_name: string;
4279
+ state: "signed" | "open" | "overdue" | "not_issued";
4280
+ due_date: string | null;
4281
+ signed_version: number | null;
4282
+ signed_by: string | null;
4283
+ submission_id: number | null;
4284
+ }>, "many">;
4285
+ }, "strip", z.ZodTypeAny, {
4286
+ name: string;
4287
+ slug: string;
4288
+ companies: {
4289
+ company_id: number;
4290
+ signed_at: string | null;
4291
+ company_name: string;
4292
+ state: "signed" | "open" | "overdue" | "not_issued";
4293
+ due_date: string | null;
4294
+ signed_version: number | null;
4295
+ signed_by: string | null;
4296
+ submission_id: number | null;
4297
+ }[];
4298
+ current_version: number;
4299
+ }, {
4300
+ name: string;
4301
+ slug: string;
4302
+ companies: {
4303
+ company_id: number;
4304
+ signed_at: string | null;
4305
+ company_name: string;
4306
+ state: "signed" | "open" | "overdue" | "not_issued";
4307
+ due_date: string | null;
4308
+ signed_version: number | null;
4309
+ signed_by: string | null;
4310
+ submission_id: number | null;
4311
+ }[];
4312
+ current_version: number;
4313
+ }>, "many">;
4314
+ }, "strip", z.ZodTypeAny, {
4315
+ data: {
4316
+ name: string;
4317
+ slug: string;
4318
+ companies: {
4319
+ company_id: number;
4320
+ signed_at: string | null;
4321
+ company_name: string;
4322
+ state: "signed" | "open" | "overdue" | "not_issued";
4323
+ due_date: string | null;
4324
+ signed_version: number | null;
4325
+ signed_by: string | null;
4326
+ submission_id: number | null;
4327
+ }[];
4328
+ current_version: number;
4329
+ }[];
4330
+ }, {
4331
+ data: {
4332
+ name: string;
4333
+ slug: string;
4334
+ companies: {
4335
+ company_id: number;
4336
+ signed_at: string | null;
4337
+ company_name: string;
4338
+ state: "signed" | "open" | "overdue" | "not_issued";
4339
+ due_date: string | null;
4340
+ signed_version: number | null;
4341
+ signed_by: string | null;
4342
+ submission_id: number | null;
4343
+ }[];
4344
+ current_version: number;
4345
+ }[];
4346
+ }>;
4347
+ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4348
+ data: z.ZodArray<z.ZodObject<{
4349
+ type: z.ZodLiteral<"form_submission">;
4350
+ id: z.ZodNumber;
4351
+ form_template_id: z.ZodNumber;
4352
+ schema_version: z.ZodNumber;
4353
+ schema_snapshot: z.ZodObject<{
4354
+ sections: z.ZodArray<z.ZodObject<{
4355
+ key: z.ZodString;
4356
+ title: z.ZodString;
4357
+ order: z.ZodNumber;
4358
+ fields: z.ZodArray<z.ZodObject<{
4359
+ key: z.ZodString;
4360
+ type: z.ZodNativeEnum<typeof FormFieldType>;
4361
+ label: z.ZodOptional<z.ZodObject<{
4362
+ de: z.ZodOptional<z.ZodString>;
4363
+ en: z.ZodString;
4364
+ no: z.ZodOptional<z.ZodString>;
4365
+ }, "strip", z.ZodTypeAny, {
4366
+ en: string;
4367
+ de?: string | undefined;
4368
+ no?: string | undefined;
4369
+ }, {
4370
+ en: string;
4371
+ de?: string | undefined;
4372
+ no?: string | undefined;
4373
+ }>>;
4374
+ content: z.ZodOptional<z.ZodObject<{
4375
+ de: z.ZodOptional<z.ZodString>;
4376
+ en: z.ZodString;
4377
+ no: z.ZodOptional<z.ZodString>;
4378
+ }, "strip", z.ZodTypeAny, {
4379
+ en: string;
4380
+ de?: string | undefined;
4381
+ no?: string | undefined;
4382
+ }, {
4383
+ en: string;
4384
+ de?: string | undefined;
4385
+ no?: string | undefined;
4386
+ }>>;
4387
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4388
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4389
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4390
+ col_span: z.ZodOptional<z.ZodNumber>;
4391
+ order: z.ZodNumber;
4392
+ show_when: z.ZodOptional<z.ZodObject<{
4393
+ field: z.ZodString;
4394
+ operator: z.ZodEnum<["eq", "neq", "in", "not_in", "gt", "lt", "gte", "lte"]>;
4395
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>;
4396
+ }, "strip", z.ZodTypeAny, {
4397
+ value: string | number | boolean | string[];
4398
+ field: string;
4399
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4400
+ }, {
4401
+ value: string | number | boolean | string[];
4402
+ field: string;
4403
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4404
+ }>>;
4405
+ signer_membership_field: z.ZodOptional<z.ZodString>;
4406
+ signer_permission: z.ZodOptional<z.ZodString>;
4407
+ signer_source: z.ZodOptional<z.ZodString>;
4408
+ prefill_source: z.ZodOptional<z.ZodString>;
4409
+ }, "strip", z.ZodTypeAny, {
4410
+ type: FormFieldType;
4411
+ key: string;
4412
+ required: boolean;
4413
+ order: number;
4414
+ options?: Record<string, any> | undefined;
4415
+ validation?: Record<string, any> | undefined;
4416
+ label?: {
4417
+ en: string;
4418
+ de?: string | undefined;
4419
+ no?: string | undefined;
4420
+ } | undefined;
4421
+ content?: {
4422
+ en: string;
4423
+ de?: string | undefined;
4424
+ no?: string | undefined;
4425
+ } | undefined;
4426
+ col_span?: number | undefined;
4427
+ show_when?: {
4428
+ value: string | number | boolean | string[];
4429
+ field: string;
4430
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4431
+ } | undefined;
4432
+ signer_membership_field?: string | undefined;
4433
+ signer_permission?: string | undefined;
4434
+ signer_source?: string | undefined;
4435
+ prefill_source?: string | undefined;
4436
+ }, {
4437
+ type: FormFieldType;
4438
+ key: string;
4439
+ order: number;
4440
+ options?: Record<string, any> | undefined;
4441
+ validation?: Record<string, any> | undefined;
4442
+ label?: {
4443
+ en: string;
4444
+ de?: string | undefined;
4445
+ no?: string | undefined;
4446
+ } | undefined;
4447
+ required?: boolean | undefined;
4448
+ content?: {
4449
+ en: string;
4450
+ de?: string | undefined;
4451
+ no?: string | undefined;
4452
+ } | undefined;
4453
+ col_span?: number | undefined;
4454
+ show_when?: {
4455
+ value: string | number | boolean | string[];
4456
+ field: string;
4457
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4458
+ } | undefined;
4459
+ signer_membership_field?: string | undefined;
4460
+ signer_permission?: string | undefined;
4461
+ signer_source?: string | undefined;
4462
+ prefill_source?: string | undefined;
4463
+ }>, "many">;
4464
+ }, "strip", z.ZodTypeAny, {
4465
+ title: string;
4466
+ key: string;
4467
+ order: number;
4468
+ fields: {
4469
+ type: FormFieldType;
4470
+ key: string;
4471
+ required: boolean;
4472
+ order: number;
4473
+ options?: Record<string, any> | undefined;
4474
+ validation?: Record<string, any> | undefined;
4475
+ label?: {
4476
+ en: string;
4477
+ de?: string | undefined;
4478
+ no?: string | undefined;
4479
+ } | undefined;
4480
+ content?: {
4481
+ en: string;
4482
+ de?: string | undefined;
4483
+ no?: string | undefined;
4484
+ } | undefined;
4485
+ col_span?: number | undefined;
4486
+ show_when?: {
4487
+ value: string | number | boolean | string[];
4488
+ field: string;
4489
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4490
+ } | undefined;
4491
+ signer_membership_field?: string | undefined;
4492
+ signer_permission?: string | undefined;
4493
+ signer_source?: string | undefined;
4494
+ prefill_source?: string | undefined;
4495
+ }[];
4496
+ }, {
4497
+ title: string;
4498
+ key: string;
4499
+ order: number;
4500
+ fields: {
4501
+ type: FormFieldType;
4502
+ key: string;
4503
+ order: number;
4504
+ options?: Record<string, any> | undefined;
4505
+ validation?: Record<string, any> | undefined;
4506
+ label?: {
4507
+ en: string;
4508
+ de?: string | undefined;
4509
+ no?: string | undefined;
4510
+ } | undefined;
4511
+ required?: boolean | undefined;
4512
+ content?: {
4513
+ en: string;
4514
+ de?: string | undefined;
4515
+ no?: string | undefined;
4516
+ } | undefined;
4517
+ col_span?: number | undefined;
4518
+ show_when?: {
4519
+ value: string | number | boolean | string[];
4520
+ field: string;
4521
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4522
+ } | undefined;
4523
+ signer_membership_field?: string | undefined;
4524
+ signer_permission?: string | undefined;
4525
+ signer_source?: string | undefined;
4526
+ prefill_source?: string | undefined;
4527
+ }[];
4528
+ }>, "many">;
4529
+ }, "strip", z.ZodTypeAny, {
4530
+ sections: {
4531
+ title: string;
4532
+ key: string;
4533
+ order: number;
4534
+ fields: {
4535
+ type: FormFieldType;
4536
+ key: string;
4537
+ required: boolean;
4538
+ order: number;
4539
+ options?: Record<string, any> | undefined;
4540
+ validation?: Record<string, any> | undefined;
4541
+ label?: {
4542
+ en: string;
4543
+ de?: string | undefined;
4544
+ no?: string | undefined;
4545
+ } | undefined;
4546
+ content?: {
4547
+ en: string;
4548
+ de?: string | undefined;
4549
+ no?: string | undefined;
4550
+ } | undefined;
4551
+ col_span?: number | undefined;
4552
+ show_when?: {
4553
+ value: string | number | boolean | string[];
4554
+ field: string;
4555
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4556
+ } | undefined;
4557
+ signer_membership_field?: string | undefined;
4558
+ signer_permission?: string | undefined;
4559
+ signer_source?: string | undefined;
4560
+ prefill_source?: string | undefined;
4561
+ }[];
4562
+ }[];
4563
+ }, {
4564
+ sections: {
4565
+ title: string;
4566
+ key: string;
4567
+ order: number;
4568
+ fields: {
4569
+ type: FormFieldType;
4570
+ key: string;
4571
+ order: number;
4572
+ options?: Record<string, any> | undefined;
4573
+ validation?: Record<string, any> | undefined;
4574
+ label?: {
4575
+ en: string;
4576
+ de?: string | undefined;
4577
+ no?: string | undefined;
4578
+ } | undefined;
4579
+ required?: boolean | undefined;
4580
+ content?: {
4581
+ en: string;
4582
+ de?: string | undefined;
4583
+ no?: string | undefined;
4584
+ } | undefined;
4585
+ col_span?: number | undefined;
4586
+ show_when?: {
4587
+ value: string | number | boolean | string[];
4588
+ field: string;
4589
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4590
+ } | undefined;
4591
+ signer_membership_field?: string | undefined;
4592
+ signer_permission?: string | undefined;
4593
+ signer_source?: string | undefined;
4594
+ prefill_source?: string | undefined;
4595
+ }[];
4596
+ }[];
4597
+ }>;
4598
+ submittable_type: z.ZodString;
4599
+ submittable_id: z.ZodNumber;
4600
+ submittable_summary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4601
+ type: z.ZodString;
4602
+ id: z.ZodNumber;
4603
+ name: z.ZodNullable<z.ZodString>;
4604
+ email: z.ZodNullable<z.ZodString>;
4605
+ }, "strip", z.ZodTypeAny, {
4606
+ id: number;
4607
+ name: string | null;
4608
+ email: string | null;
4609
+ type: string;
4610
+ }, {
4611
+ id: number;
4612
+ name: string | null;
4613
+ email: string | null;
4614
+ type: string;
4615
+ }>>>;
4616
+ submitted_by: z.ZodNumber;
4617
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
4618
+ data_resolved_names: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
4619
+ required_signers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>>;
4620
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
4621
+ type: z.ZodOptional<z.ZodLiteral<"signature">>;
4622
+ id: z.ZodNumber;
4623
+ signable_type: z.ZodOptional<z.ZodString>;
4624
+ signable_id: z.ZodOptional<z.ZodNumber>;
4625
+ field_key: z.ZodString;
4626
+ status: z.ZodEnum<["pending", "signed", "revoked"]>;
4627
+ required_signer_membership_id: z.ZodNullable<z.ZodNumber>;
4628
+ required_signer_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4629
+ required_signer_permission: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4630
+ signed_by_user_id: z.ZodNullable<z.ZodNumber>;
4631
+ signed_by_membership_id: z.ZodNullable<z.ZodNumber>;
4632
+ signed_by_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4633
+ is_current_user_designated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4634
+ signed_at: z.ZodNullable<z.ZodString>;
4635
+ image: z.ZodNullable<z.ZodString>;
4636
+ data_hash: z.ZodNullable<z.ZodString>;
4637
+ schema_version: z.ZodNullable<z.ZodNumber>;
4638
+ schema_hash: z.ZodNullable<z.ZodString>;
4639
+ consent_text_hash: z.ZodNullable<z.ZodString>;
4640
+ auth_method: z.ZodNullable<z.ZodString>;
4641
+ auth_verified_at: z.ZodNullable<z.ZodString>;
4642
+ ip_address: z.ZodNullable<z.ZodString>;
4643
+ user_agent: z.ZodNullable<z.ZodString>;
4644
+ geo_country: z.ZodNullable<z.ZodString>;
4645
+ signing_event_id: z.ZodNullable<z.ZodString>;
4646
+ created_at: z.ZodOptional<z.ZodString>;
4647
+ updated_at: z.ZodOptional<z.ZodString>;
4648
+ }, "strip", z.ZodTypeAny, {
4649
+ id: number;
4650
+ status: "signed" | "pending" | "revoked";
4651
+ field_key: string;
4652
+ required_signer_membership_id: number | null;
4653
+ signed_by_user_id: number | null;
4654
+ signed_by_membership_id: number | null;
4655
+ is_current_user_designated: boolean;
4656
+ signed_at: string | null;
4657
+ image: string | null;
4658
+ data_hash: string | null;
4659
+ schema_version: number | null;
4660
+ schema_hash: string | null;
4661
+ consent_text_hash: string | null;
4662
+ auth_method: string | null;
4663
+ auth_verified_at: string | null;
4664
+ ip_address: string | null;
4665
+ user_agent: string | null;
4666
+ geo_country: string | null;
4667
+ signing_event_id: string | null;
4668
+ type?: "signature" | undefined;
4669
+ created_at?: string | undefined;
4670
+ updated_at?: string | undefined;
4671
+ signable_type?: string | undefined;
4672
+ signable_id?: number | undefined;
4673
+ required_signer_name?: string | null | undefined;
4674
+ required_signer_permission?: string | null | undefined;
4675
+ signed_by_name?: string | null | undefined;
4676
+ }, {
4677
+ id: number;
4678
+ status: "signed" | "pending" | "revoked";
4679
+ field_key: string;
4680
+ required_signer_membership_id: number | null;
4681
+ signed_by_user_id: number | null;
4682
+ signed_by_membership_id: number | null;
4683
+ signed_at: string | null;
4684
+ image: string | null;
4685
+ data_hash: string | null;
4686
+ schema_version: number | null;
4687
+ schema_hash: string | null;
4688
+ consent_text_hash: string | null;
4689
+ auth_method: string | null;
4690
+ auth_verified_at: string | null;
4691
+ ip_address: string | null;
4692
+ user_agent: string | null;
4693
+ geo_country: string | null;
4694
+ signing_event_id: string | null;
4695
+ type?: "signature" | undefined;
4696
+ created_at?: string | undefined;
4697
+ updated_at?: string | undefined;
4698
+ signable_type?: string | undefined;
4699
+ signable_id?: number | undefined;
4700
+ required_signer_name?: string | null | undefined;
4701
+ required_signer_permission?: string | null | undefined;
4702
+ signed_by_name?: string | null | undefined;
4703
+ is_current_user_designated?: boolean | undefined;
4704
+ }>, "many">>;
4705
+ status: z.ZodNativeEnum<typeof FormSubmissionStatus>;
4706
+ submitted_at: z.ZodNullable<z.ZodString>;
4707
+ reviewed_by: z.ZodNullable<z.ZodNumber>;
4708
+ reviewed_at: z.ZodNullable<z.ZodString>;
4709
+ review_comment: z.ZodNullable<z.ZodString>;
4710
+ is_final: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4711
+ is_mutable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4712
+ is_signable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4713
+ has_signature_fields: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4714
+ all_signatures_collected: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4715
+ can: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodBoolean>>>>;
4716
+ source: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof FormSubmissionSource>>>;
4717
+ due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4718
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4719
+ requested_by_user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4720
+ is_overdue: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4721
+ days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4722
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4723
+ notification_days_before: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4724
+ notifications_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4725
+ is_expired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4726
+ files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
4727
+ id: z.ZodNumber;
4728
+ file_name: z.ZodString;
4729
+ size: z.ZodNumber;
4730
+ mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4731
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4732
+ conversions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
4733
+ }, "strip", z.ZodTypeAny, {
4734
+ id: number;
4735
+ file_name: string;
4736
+ size: number;
4737
+ conversions?: Record<string, string | null> | undefined;
4738
+ url?: string | null | undefined;
4739
+ mime_type?: string | null | undefined;
4740
+ }, {
4741
+ id: number;
4742
+ file_name: string;
4743
+ size: number;
4744
+ conversions?: Record<string, string | null> | undefined;
4745
+ url?: string | null | undefined;
4746
+ mime_type?: string | null | undefined;
4747
+ }>>>>;
4748
+ form_template: z.ZodOptional<z.ZodObject<{
4749
+ type: z.ZodLiteral<"form_template">;
4750
+ id: z.ZodNumber;
4751
+ company_id: z.ZodNullable<z.ZodNumber>;
4752
+ name: z.ZodString;
4753
+ slug: z.ZodString;
4754
+ description: z.ZodNullable<z.ZodString>;
4755
+ schema: z.ZodObject<{
4756
+ sections: z.ZodArray<z.ZodObject<{
4757
+ key: z.ZodString;
4758
+ title: z.ZodString;
4759
+ order: z.ZodNumber;
4760
+ fields: z.ZodArray<z.ZodObject<{
4761
+ key: z.ZodString;
4762
+ type: z.ZodNativeEnum<typeof FormFieldType>;
4763
+ label: z.ZodOptional<z.ZodObject<{
4764
+ de: z.ZodOptional<z.ZodString>;
4765
+ en: z.ZodString;
4766
+ no: z.ZodOptional<z.ZodString>;
4767
+ }, "strip", z.ZodTypeAny, {
4768
+ en: string;
4769
+ de?: string | undefined;
4770
+ no?: string | undefined;
4771
+ }, {
4772
+ en: string;
4773
+ de?: string | undefined;
4774
+ no?: string | undefined;
4775
+ }>>;
4776
+ content: z.ZodOptional<z.ZodObject<{
4777
+ de: z.ZodOptional<z.ZodString>;
4778
+ en: z.ZodString;
4779
+ no: z.ZodOptional<z.ZodString>;
4780
+ }, "strip", z.ZodTypeAny, {
4781
+ en: string;
4782
+ de?: string | undefined;
4783
+ no?: string | undefined;
4784
+ }, {
4785
+ en: string;
4786
+ de?: string | undefined;
4787
+ no?: string | undefined;
4788
+ }>>;
4789
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4790
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4791
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4792
+ col_span: z.ZodOptional<z.ZodNumber>;
4793
+ order: z.ZodNumber;
4794
+ show_when: z.ZodOptional<z.ZodObject<{
4795
+ field: z.ZodString;
4796
+ operator: z.ZodEnum<["eq", "neq", "in", "not_in", "gt", "lt", "gte", "lte"]>;
4797
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>;
4798
+ }, "strip", z.ZodTypeAny, {
4799
+ value: string | number | boolean | string[];
4800
+ field: string;
4801
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4802
+ }, {
4803
+ value: string | number | boolean | string[];
4804
+ field: string;
4805
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4806
+ }>>;
4807
+ signer_membership_field: z.ZodOptional<z.ZodString>;
4808
+ signer_permission: z.ZodOptional<z.ZodString>;
4809
+ signer_source: z.ZodOptional<z.ZodString>;
4810
+ prefill_source: z.ZodOptional<z.ZodString>;
4811
+ }, "strip", z.ZodTypeAny, {
4812
+ type: FormFieldType;
4813
+ key: string;
4814
+ required: boolean;
4815
+ order: number;
4816
+ options?: Record<string, any> | undefined;
4817
+ validation?: Record<string, any> | undefined;
4818
+ label?: {
4819
+ en: string;
4820
+ de?: string | undefined;
4821
+ no?: string | undefined;
4822
+ } | undefined;
4823
+ content?: {
4824
+ en: string;
4825
+ de?: string | undefined;
4826
+ no?: string | undefined;
4827
+ } | undefined;
4828
+ col_span?: number | undefined;
4829
+ show_when?: {
4830
+ value: string | number | boolean | string[];
4831
+ field: string;
4832
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4833
+ } | undefined;
4834
+ signer_membership_field?: string | undefined;
4835
+ signer_permission?: string | undefined;
4836
+ signer_source?: string | undefined;
4837
+ prefill_source?: string | undefined;
4838
+ }, {
4839
+ type: FormFieldType;
4840
+ key: string;
4841
+ order: number;
4842
+ options?: Record<string, any> | undefined;
4843
+ validation?: Record<string, any> | undefined;
4844
+ label?: {
4845
+ en: string;
4846
+ de?: string | undefined;
4847
+ no?: string | undefined;
4848
+ } | undefined;
4849
+ required?: boolean | undefined;
4850
+ content?: {
4851
+ en: string;
4852
+ de?: string | undefined;
4853
+ no?: string | undefined;
4854
+ } | undefined;
4855
+ col_span?: number | undefined;
4856
+ show_when?: {
4857
+ value: string | number | boolean | string[];
4858
+ field: string;
4859
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4860
+ } | undefined;
4861
+ signer_membership_field?: string | undefined;
4862
+ signer_permission?: string | undefined;
4863
+ signer_source?: string | undefined;
4864
+ prefill_source?: string | undefined;
4865
+ }>, "many">;
4866
+ }, "strip", z.ZodTypeAny, {
4867
+ title: string;
4868
+ key: string;
4869
+ order: number;
4870
+ fields: {
4871
+ type: FormFieldType;
4872
+ key: string;
4873
+ required: boolean;
4874
+ order: number;
4875
+ options?: Record<string, any> | undefined;
4876
+ validation?: Record<string, any> | undefined;
4877
+ label?: {
4878
+ en: string;
4879
+ de?: string | undefined;
4880
+ no?: string | undefined;
4881
+ } | undefined;
4882
+ content?: {
4883
+ en: string;
4884
+ de?: string | undefined;
4885
+ no?: string | undefined;
4886
+ } | undefined;
4887
+ col_span?: number | undefined;
4888
+ show_when?: {
4889
+ value: string | number | boolean | string[];
4890
+ field: string;
4891
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4892
+ } | undefined;
4893
+ signer_membership_field?: string | undefined;
4894
+ signer_permission?: string | undefined;
4895
+ signer_source?: string | undefined;
4896
+ prefill_source?: string | undefined;
4897
+ }[];
4898
+ }, {
4899
+ title: string;
4900
+ key: string;
4901
+ order: number;
4902
+ fields: {
4903
+ type: FormFieldType;
4904
+ key: string;
4905
+ order: number;
4906
+ options?: Record<string, any> | undefined;
4907
+ validation?: Record<string, any> | undefined;
4908
+ label?: {
4909
+ en: string;
4910
+ de?: string | undefined;
4911
+ no?: string | undefined;
4912
+ } | undefined;
4913
+ required?: boolean | undefined;
4914
+ content?: {
4915
+ en: string;
4916
+ de?: string | undefined;
4917
+ no?: string | undefined;
4918
+ } | undefined;
4919
+ col_span?: number | undefined;
4920
+ show_when?: {
4921
+ value: string | number | boolean | string[];
4922
+ field: string;
4923
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4924
+ } | undefined;
4925
+ signer_membership_field?: string | undefined;
4926
+ signer_permission?: string | undefined;
4927
+ signer_source?: string | undefined;
4928
+ prefill_source?: string | undefined;
4929
+ }[];
4930
+ }>, "many">;
4931
+ }, "strip", z.ZodTypeAny, {
4932
+ sections: {
4933
+ title: string;
4934
+ key: string;
4935
+ order: number;
4936
+ fields: {
4937
+ type: FormFieldType;
4938
+ key: string;
4939
+ required: boolean;
4940
+ order: number;
4941
+ options?: Record<string, any> | undefined;
4942
+ validation?: Record<string, any> | undefined;
4943
+ label?: {
4944
+ en: string;
4945
+ de?: string | undefined;
4946
+ no?: string | undefined;
4947
+ } | undefined;
4948
+ content?: {
4949
+ en: string;
4950
+ de?: string | undefined;
4951
+ no?: string | undefined;
4952
+ } | undefined;
4953
+ col_span?: number | undefined;
4954
+ show_when?: {
4955
+ value: string | number | boolean | string[];
4956
+ field: string;
4957
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4958
+ } | undefined;
4959
+ signer_membership_field?: string | undefined;
4960
+ signer_permission?: string | undefined;
4961
+ signer_source?: string | undefined;
4962
+ prefill_source?: string | undefined;
4963
+ }[];
4964
+ }[];
4965
+ }, {
4966
+ sections: {
4967
+ title: string;
4968
+ key: string;
4969
+ order: number;
4970
+ fields: {
4971
+ type: FormFieldType;
4972
+ key: string;
4973
+ order: number;
4974
+ options?: Record<string, any> | undefined;
4975
+ validation?: Record<string, any> | undefined;
4976
+ label?: {
4977
+ en: string;
4978
+ de?: string | undefined;
4979
+ no?: string | undefined;
4980
+ } | undefined;
4981
+ required?: boolean | undefined;
4982
+ content?: {
4983
+ en: string;
4984
+ de?: string | undefined;
4985
+ no?: string | undefined;
4986
+ } | undefined;
4987
+ col_span?: number | undefined;
4988
+ show_when?: {
4989
+ value: string | number | boolean | string[];
4990
+ field: string;
4991
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
4992
+ } | undefined;
4993
+ signer_membership_field?: string | undefined;
4994
+ signer_permission?: string | undefined;
4995
+ signer_source?: string | undefined;
4996
+ prefill_source?: string | undefined;
4997
+ }[];
4998
+ }[];
4999
+ }>;
5000
+ schema_version: z.ZodNumber;
5001
+ pdf_view: z.ZodNullable<z.ZodString>;
5002
+ requires_review: z.ZodBoolean;
5003
+ is_active: z.ZodBoolean;
5004
+ is_singleton: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5005
+ is_sign_only: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5006
+ is_requirable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5007
+ is_onboarding: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5008
+ onboarding_role_keys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
5009
+ is_system: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5010
+ applies_to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5011
+ has_expiry: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5012
+ default_notification_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5013
+ created_by: z.ZodNullable<z.ZodNumber>;
5014
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5015
+ id: z.ZodNumber;
5016
+ name: z.ZodString;
5017
+ email: z.ZodOptional<z.ZodString>;
5018
+ }, "strip", z.ZodTypeAny, {
5019
+ id: number;
5020
+ name: string;
5021
+ email?: string | undefined;
5022
+ }, {
5023
+ id: number;
5024
+ name: string;
5025
+ email?: string | undefined;
5026
+ }>>>;
5027
+ assignments: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
5028
+ created_at: z.ZodString;
5029
+ updated_at: z.ZodString;
5030
+ }, "strip", z.ZodTypeAny, {
5031
+ id: number;
5032
+ name: string;
5033
+ type: "form_template";
5034
+ created_at: string;
5035
+ updated_at: string;
5036
+ description: string | null;
5037
+ is_active: boolean;
5038
+ company_id: number | null;
5039
+ schema_version: number;
5040
+ created_by: number | null;
5041
+ slug: string;
5042
+ schema: {
5043
+ sections: {
5044
+ title: string;
5045
+ key: string;
5046
+ order: number;
5047
+ fields: {
5048
+ type: FormFieldType;
5049
+ key: string;
5050
+ required: boolean;
5051
+ order: number;
5052
+ options?: Record<string, any> | undefined;
5053
+ validation?: Record<string, any> | undefined;
5054
+ label?: {
5055
+ en: string;
5056
+ de?: string | undefined;
5057
+ no?: string | undefined;
5058
+ } | undefined;
5059
+ content?: {
5060
+ en: string;
5061
+ de?: string | undefined;
5062
+ no?: string | undefined;
5063
+ } | undefined;
5064
+ col_span?: number | undefined;
5065
+ show_when?: {
5066
+ value: string | number | boolean | string[];
5067
+ field: string;
5068
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
5069
+ } | undefined;
5070
+ signer_membership_field?: string | undefined;
5071
+ signer_permission?: string | undefined;
5072
+ signer_source?: string | undefined;
5073
+ prefill_source?: string | undefined;
5074
+ }[];
5075
+ }[];
5076
+ };
5077
+ pdf_view: string | null;
5078
+ requires_review: boolean;
5079
+ is_singleton: boolean;
5080
+ is_sign_only: boolean;
5081
+ is_requirable: boolean;
5082
+ is_onboarding: boolean;
5083
+ is_system: boolean;
5084
+ has_expiry: boolean;
5085
+ onboarding_role_keys?: string[] | null | undefined;
5086
+ applies_to?: string | null | undefined;
5087
+ default_notification_days?: number | null | undefined;
5088
+ creator?: {
5089
+ id: number;
5090
+ name: string;
5091
+ email?: string | undefined;
5092
+ } | null | undefined;
5093
+ assignments?: any[] | undefined;
5094
+ }, {
5095
+ id: number;
5096
+ name: string;
5097
+ type: "form_template";
5098
+ created_at: string;
5099
+ updated_at: string;
5100
+ description: string | null;
5101
+ is_active: boolean;
5102
+ company_id: number | null;
5103
+ schema_version: number;
5104
+ created_by: number | null;
5105
+ slug: string;
5106
+ schema: {
5107
+ sections: {
5108
+ title: string;
5109
+ key: string;
5110
+ order: number;
5111
+ fields: {
5112
+ type: FormFieldType;
5113
+ key: string;
5114
+ order: number;
5115
+ options?: Record<string, any> | undefined;
5116
+ validation?: Record<string, any> | undefined;
5117
+ label?: {
5118
+ en: string;
5119
+ de?: string | undefined;
5120
+ no?: string | undefined;
5121
+ } | undefined;
5122
+ required?: boolean | undefined;
5123
+ content?: {
5124
+ en: string;
5125
+ de?: string | undefined;
5126
+ no?: string | undefined;
5127
+ } | undefined;
5128
+ col_span?: number | undefined;
5129
+ show_when?: {
5130
+ value: string | number | boolean | string[];
5131
+ field: string;
5132
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
5133
+ } | undefined;
5134
+ signer_membership_field?: string | undefined;
5135
+ signer_permission?: string | undefined;
5136
+ signer_source?: string | undefined;
5137
+ prefill_source?: string | undefined;
5138
+ }[];
5139
+ }[];
5140
+ };
5141
+ pdf_view: string | null;
5142
+ requires_review: boolean;
5143
+ is_singleton?: boolean | undefined;
5144
+ is_sign_only?: boolean | undefined;
5145
+ is_requirable?: boolean | undefined;
5146
+ is_onboarding?: boolean | undefined;
5147
+ onboarding_role_keys?: string[] | null | undefined;
5148
+ is_system?: boolean | undefined;
5149
+ applies_to?: string | null | undefined;
5150
+ has_expiry?: boolean | undefined;
5151
+ default_notification_days?: number | null | undefined;
5152
+ creator?: {
5153
+ id: number;
5154
+ name: string;
5155
+ email?: string | undefined;
5156
+ } | null | undefined;
5157
+ assignments?: any[] | undefined;
5158
+ }>>;
5159
+ submitter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5160
+ id: z.ZodNumber;
5161
+ name: z.ZodString;
5162
+ email: z.ZodOptional<z.ZodString>;
5163
+ }, "strip", z.ZodTypeAny, {
5164
+ id: number;
5165
+ name: string;
5166
+ email?: string | undefined;
5167
+ }, {
5168
+ id: number;
5169
+ name: string;
5170
+ email?: string | undefined;
5171
+ }>>>;
5172
+ reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5173
+ id: z.ZodNumber;
5174
+ name: z.ZodString;
5175
+ email: z.ZodOptional<z.ZodString>;
5176
+ }, "strip", z.ZodTypeAny, {
5177
+ id: number;
5178
+ name: string;
5179
+ email?: string | undefined;
5180
+ }, {
5181
+ id: number;
5182
+ name: string;
5183
+ email?: string | undefined;
5184
+ }>>>;
5185
+ requester: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5186
+ id: z.ZodNumber;
5187
+ name: z.ZodString;
5188
+ email: z.ZodOptional<z.ZodString>;
5189
+ }, "strip", z.ZodTypeAny, {
5190
+ id: number;
5191
+ name: string;
5192
+ email?: string | undefined;
5193
+ }, {
5194
+ id: number;
5195
+ name: string;
5196
+ email?: string | undefined;
5197
+ }>>>;
5198
+ shares: z.ZodOptional<z.ZodArray<z.ZodObject<{
5199
+ type: z.ZodOptional<z.ZodLiteral<"form_submission_share">>;
5200
+ id: z.ZodNumber;
5201
+ form_submission_id: z.ZodNumber;
5202
+ company_id: z.ZodNumber;
5203
+ shared_by: z.ZodNumber;
5204
+ company: z.ZodOptional<z.ZodObject<{
5205
+ id: z.ZodNumber;
5206
+ name: z.ZodString;
5207
+ }, "strip", z.ZodTypeAny, {
5208
+ id: number;
5209
+ name: string;
5210
+ }, {
5211
+ id: number;
5212
+ name: string;
5213
+ }>>;
5214
+ created_at: z.ZodString;
5215
+ }, "strip", z.ZodTypeAny, {
5216
+ id: number;
5217
+ created_at: string;
5218
+ company_id: number;
5219
+ shared_by: number;
5220
+ form_submission_id: number;
5221
+ company?: {
5222
+ id: number;
5223
+ name: string;
5224
+ } | undefined;
5225
+ type?: "form_submission_share" | undefined;
5226
+ }, {
5227
+ id: number;
5228
+ created_at: string;
5229
+ company_id: number;
5230
+ shared_by: number;
5231
+ form_submission_id: number;
5232
+ company?: {
5233
+ id: number;
5234
+ name: string;
5235
+ } | undefined;
5236
+ type?: "form_submission_share" | undefined;
5237
+ }>, "many">>;
5238
+ created_at: z.ZodString;
5239
+ updated_at: z.ZodString;
5240
+ }, "strip", z.ZodTypeAny, {
5241
+ id: number;
5242
+ type: "form_submission";
5243
+ status: FormSubmissionStatus;
5244
+ created_at: string;
5245
+ updated_at: string;
5246
+ can: Record<string, boolean | null>;
5247
+ schema_version: number;
5248
+ data: Record<string, any>;
5249
+ form_template_id: number;
5250
+ submitted_by: number;
5251
+ reviewed_by: number | null;
5252
+ reviewed_at: string | null;
5253
+ schema_snapshot: {
5254
+ sections: {
5255
+ title: string;
5256
+ key: string;
5257
+ order: number;
5258
+ fields: {
5259
+ type: FormFieldType;
5260
+ key: string;
5261
+ required: boolean;
5262
+ order: number;
5263
+ options?: Record<string, any> | undefined;
5264
+ validation?: Record<string, any> | undefined;
5265
+ label?: {
5266
+ en: string;
5267
+ de?: string | undefined;
5268
+ no?: string | undefined;
5269
+ } | undefined;
5270
+ content?: {
5271
+ en: string;
5272
+ de?: string | undefined;
5273
+ no?: string | undefined;
5274
+ } | undefined;
5275
+ col_span?: number | undefined;
5276
+ show_when?: {
5277
+ value: string | number | boolean | string[];
5278
+ field: string;
5279
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
5280
+ } | undefined;
5281
+ signer_membership_field?: string | undefined;
5282
+ signer_permission?: string | undefined;
5283
+ signer_source?: string | undefined;
5284
+ prefill_source?: string | undefined;
5285
+ }[];
5286
+ }[];
5287
+ };
5288
+ submittable_type: string;
5289
+ submittable_id: number;
5290
+ data_resolved_names: Record<string, string>;
5291
+ submitted_at: string | null;
5292
+ review_comment: string | null;
5293
+ is_final: boolean;
5294
+ is_mutable: boolean;
5295
+ is_signable: boolean;
5296
+ has_signature_fields: boolean;
5297
+ all_signatures_collected: boolean;
5298
+ source: FormSubmissionSource;
5299
+ is_overdue: boolean;
5300
+ notifications_enabled: boolean;
5301
+ is_expired: boolean;
5302
+ expires_at?: string | null | undefined;
5303
+ signatures?: {
5304
+ id: number;
5305
+ status: "signed" | "pending" | "revoked";
5306
+ field_key: string;
5307
+ required_signer_membership_id: number | null;
5308
+ signed_by_user_id: number | null;
5309
+ signed_by_membership_id: number | null;
5310
+ is_current_user_designated: boolean;
5311
+ signed_at: string | null;
5312
+ image: string | null;
5313
+ data_hash: string | null;
5314
+ schema_version: number | null;
5315
+ schema_hash: string | null;
5316
+ consent_text_hash: string | null;
5317
+ auth_method: string | null;
5318
+ auth_verified_at: string | null;
5319
+ ip_address: string | null;
5320
+ user_agent: string | null;
5321
+ geo_country: string | null;
5322
+ signing_event_id: string | null;
5323
+ type?: "signature" | undefined;
5324
+ created_at?: string | undefined;
5325
+ updated_at?: string | undefined;
5326
+ signable_type?: string | undefined;
5327
+ signable_id?: number | undefined;
5328
+ required_signer_name?: string | null | undefined;
5329
+ required_signer_permission?: string | null | undefined;
5330
+ signed_by_name?: string | null | undefined;
5331
+ }[] | undefined;
5332
+ note?: string | null | undefined;
5333
+ form_template?: {
5334
+ id: number;
5335
+ name: string;
5336
+ type: "form_template";
5337
+ created_at: string;
5338
+ updated_at: string;
5339
+ description: string | null;
5340
+ is_active: boolean;
5341
+ company_id: number | null;
5342
+ schema_version: number;
5343
+ created_by: number | null;
5344
+ slug: string;
5345
+ schema: {
5346
+ sections: {
5347
+ title: string;
5348
+ key: string;
5349
+ order: number;
5350
+ fields: {
5351
+ type: FormFieldType;
5352
+ key: string;
5353
+ required: boolean;
5354
+ order: number;
5355
+ options?: Record<string, any> | undefined;
5356
+ validation?: Record<string, any> | undefined;
5357
+ label?: {
5358
+ en: string;
5359
+ de?: string | undefined;
5360
+ no?: string | undefined;
5361
+ } | undefined;
5362
+ content?: {
5363
+ en: string;
5364
+ de?: string | undefined;
5365
+ no?: string | undefined;
5366
+ } | undefined;
5367
+ col_span?: number | undefined;
5368
+ show_when?: {
5369
+ value: string | number | boolean | string[];
5370
+ field: string;
5371
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
5372
+ } | undefined;
5373
+ signer_membership_field?: string | undefined;
5374
+ signer_permission?: string | undefined;
5375
+ signer_source?: string | undefined;
5376
+ prefill_source?: string | undefined;
5377
+ }[];
5378
+ }[];
5379
+ };
5380
+ pdf_view: string | null;
5381
+ requires_review: boolean;
5382
+ is_singleton: boolean;
5383
+ is_sign_only: boolean;
5384
+ is_requirable: boolean;
5385
+ is_onboarding: boolean;
5386
+ is_system: boolean;
5387
+ has_expiry: boolean;
5388
+ onboarding_role_keys?: string[] | null | undefined;
5389
+ applies_to?: string | null | undefined;
5390
+ default_notification_days?: number | null | undefined;
5391
+ creator?: {
5392
+ id: number;
5393
+ name: string;
5394
+ email?: string | undefined;
5395
+ } | null | undefined;
5396
+ assignments?: any[] | undefined;
5397
+ } | undefined;
5398
+ due_date?: string | null | undefined;
5399
+ submitter?: {
5400
+ id: number;
5401
+ name: string;
5402
+ email?: string | undefined;
5403
+ } | null | undefined;
5404
+ reviewer?: {
5405
+ id: number;
5406
+ name: string;
5407
+ email?: string | undefined;
5408
+ } | null | undefined;
5409
+ submittable_summary?: {
5410
+ id: number;
5411
+ name: string | null;
5412
+ email: string | null;
5413
+ type: string;
5414
+ } | null | undefined;
5415
+ required_signers?: Record<string, number> | null | undefined;
5416
+ requested_by_user_id?: number | null | undefined;
5417
+ days_until_due?: number | null | undefined;
5418
+ notification_days_before?: number | null | undefined;
5419
+ files?: Record<string, {
5420
+ id: number;
5421
+ file_name: string;
5422
+ size: number;
5423
+ conversions?: Record<string, string | null> | undefined;
5424
+ url?: string | null | undefined;
5425
+ mime_type?: string | null | undefined;
5426
+ } | null> | undefined;
5427
+ requester?: {
5428
+ id: number;
5429
+ name: string;
5430
+ email?: string | undefined;
5431
+ } | null | undefined;
5432
+ shares?: {
5433
+ id: number;
5434
+ created_at: string;
5435
+ company_id: number;
5436
+ shared_by: number;
5437
+ form_submission_id: number;
5438
+ company?: {
5439
+ id: number;
5440
+ name: string;
5441
+ } | undefined;
5442
+ type?: "form_submission_share" | undefined;
5443
+ }[] | undefined;
5444
+ }, {
5445
+ id: number;
5446
+ type: "form_submission";
5447
+ status: FormSubmissionStatus;
5448
+ created_at: string;
5449
+ updated_at: string;
5450
+ schema_version: number;
5451
+ data: Record<string, any>;
5452
+ form_template_id: number;
5453
+ submitted_by: number;
5454
+ reviewed_by: number | null;
5455
+ reviewed_at: string | null;
5456
+ schema_snapshot: {
5457
+ sections: {
5458
+ title: string;
5459
+ key: string;
5460
+ order: number;
5461
+ fields: {
5462
+ type: FormFieldType;
5463
+ key: string;
5464
+ order: number;
5465
+ options?: Record<string, any> | undefined;
5466
+ validation?: Record<string, any> | undefined;
5467
+ label?: {
5468
+ en: string;
5469
+ de?: string | undefined;
5470
+ no?: string | undefined;
5471
+ } | undefined;
5472
+ required?: boolean | undefined;
5473
+ content?: {
5474
+ en: string;
5475
+ de?: string | undefined;
5476
+ no?: string | undefined;
5477
+ } | undefined;
5478
+ col_span?: number | undefined;
5479
+ show_when?: {
5480
+ value: string | number | boolean | string[];
5481
+ field: string;
5482
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
5483
+ } | undefined;
5484
+ signer_membership_field?: string | undefined;
5485
+ signer_permission?: string | undefined;
5486
+ signer_source?: string | undefined;
5487
+ prefill_source?: string | undefined;
5488
+ }[];
5489
+ }[];
5490
+ };
5491
+ submittable_type: string;
5492
+ submittable_id: number;
5493
+ submitted_at: string | null;
5494
+ review_comment: string | null;
5495
+ expires_at?: string | null | undefined;
5496
+ can?: Record<string, boolean | null> | undefined;
5497
+ signatures?: {
5498
+ id: number;
5499
+ status: "signed" | "pending" | "revoked";
5500
+ field_key: string;
5501
+ required_signer_membership_id: number | null;
5502
+ signed_by_user_id: number | null;
5503
+ signed_by_membership_id: number | null;
5504
+ signed_at: string | null;
5505
+ image: string | null;
5506
+ data_hash: string | null;
5507
+ schema_version: number | null;
5508
+ schema_hash: string | null;
5509
+ consent_text_hash: string | null;
5510
+ auth_method: string | null;
5511
+ auth_verified_at: string | null;
5512
+ ip_address: string | null;
5513
+ user_agent: string | null;
5514
+ geo_country: string | null;
5515
+ signing_event_id: string | null;
5516
+ type?: "signature" | undefined;
5517
+ created_at?: string | undefined;
5518
+ updated_at?: string | undefined;
5519
+ signable_type?: string | undefined;
5520
+ signable_id?: number | undefined;
5521
+ required_signer_name?: string | null | undefined;
5522
+ required_signer_permission?: string | null | undefined;
5523
+ signed_by_name?: string | null | undefined;
5524
+ is_current_user_designated?: boolean | undefined;
5525
+ }[] | undefined;
5526
+ note?: string | null | undefined;
5527
+ form_template?: {
5528
+ id: number;
5529
+ name: string;
5530
+ type: "form_template";
5531
+ created_at: string;
5532
+ updated_at: string;
5533
+ description: string | null;
5534
+ is_active: boolean;
5535
+ company_id: number | null;
5536
+ schema_version: number;
5537
+ created_by: number | null;
5538
+ slug: string;
5539
+ schema: {
5540
+ sections: {
5541
+ title: string;
5542
+ key: string;
5543
+ order: number;
5544
+ fields: {
5545
+ type: FormFieldType;
5546
+ key: string;
5547
+ order: number;
5548
+ options?: Record<string, any> | undefined;
5549
+ validation?: Record<string, any> | undefined;
5550
+ label?: {
5551
+ en: string;
5552
+ de?: string | undefined;
5553
+ no?: string | undefined;
5554
+ } | undefined;
5555
+ required?: boolean | undefined;
5556
+ content?: {
5557
+ en: string;
5558
+ de?: string | undefined;
5559
+ no?: string | undefined;
5560
+ } | undefined;
5561
+ col_span?: number | undefined;
5562
+ show_when?: {
5563
+ value: string | number | boolean | string[];
5564
+ field: string;
5565
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
5566
+ } | undefined;
5567
+ signer_membership_field?: string | undefined;
5568
+ signer_permission?: string | undefined;
5569
+ signer_source?: string | undefined;
5570
+ prefill_source?: string | undefined;
5571
+ }[];
5572
+ }[];
5573
+ };
5574
+ pdf_view: string | null;
5575
+ requires_review: boolean;
5576
+ is_singleton?: boolean | undefined;
5577
+ is_sign_only?: boolean | undefined;
5578
+ is_requirable?: boolean | undefined;
5579
+ is_onboarding?: boolean | undefined;
5580
+ onboarding_role_keys?: string[] | null | undefined;
5581
+ is_system?: boolean | undefined;
5582
+ applies_to?: string | null | undefined;
5583
+ has_expiry?: boolean | undefined;
5584
+ default_notification_days?: number | null | undefined;
5585
+ creator?: {
5586
+ id: number;
5587
+ name: string;
5588
+ email?: string | undefined;
5589
+ } | null | undefined;
5590
+ assignments?: any[] | undefined;
5591
+ } | undefined;
5592
+ due_date?: string | null | undefined;
5593
+ submitter?: {
5594
+ id: number;
5595
+ name: string;
5596
+ email?: string | undefined;
5597
+ } | null | undefined;
5598
+ reviewer?: {
5599
+ id: number;
5600
+ name: string;
5601
+ email?: string | undefined;
5602
+ } | null | undefined;
5603
+ submittable_summary?: {
5604
+ id: number;
5605
+ name: string | null;
5606
+ email: string | null;
5607
+ type: string;
5608
+ } | null | undefined;
5609
+ data_resolved_names?: Record<string, string> | undefined;
5610
+ required_signers?: Record<string, number> | null | undefined;
5611
+ is_final?: boolean | undefined;
5612
+ is_mutable?: boolean | undefined;
5613
+ is_signable?: boolean | undefined;
5614
+ has_signature_fields?: boolean | undefined;
5615
+ all_signatures_collected?: boolean | undefined;
5616
+ source?: FormSubmissionSource | undefined;
5617
+ requested_by_user_id?: number | null | undefined;
5618
+ is_overdue?: boolean | undefined;
5619
+ days_until_due?: number | null | undefined;
5620
+ notification_days_before?: number | null | undefined;
5621
+ notifications_enabled?: boolean | undefined;
5622
+ is_expired?: boolean | undefined;
5623
+ files?: Record<string, {
5624
+ id: number;
5625
+ file_name: string;
5626
+ size: number;
5627
+ conversions?: Record<string, string | null> | undefined;
5628
+ url?: string | null | undefined;
5629
+ mime_type?: string | null | undefined;
5630
+ } | null> | undefined;
5631
+ requester?: {
5632
+ id: number;
5633
+ name: string;
5634
+ email?: string | undefined;
5635
+ } | null | undefined;
5636
+ shares?: {
5637
+ id: number;
5638
+ created_at: string;
5639
+ company_id: number;
5640
+ shared_by: number;
5641
+ form_submission_id: number;
5642
+ company?: {
5643
+ id: number;
5644
+ name: string;
5645
+ } | undefined;
5646
+ type?: "form_submission_share" | undefined;
5647
+ }[] | undefined;
5648
+ }>, "many">;
5649
+ meta: z.ZodObject<{
5650
+ current_versions: z.ZodRecord<z.ZodString, z.ZodNumber>;
5651
+ }, "strip", z.ZodTypeAny, {
5652
+ current_versions: Record<string, number>;
5653
+ }, {
5654
+ current_versions: Record<string, number>;
5655
+ }>;
5656
+ }, "strip", z.ZodTypeAny, {
5657
+ data: {
5658
+ id: number;
5659
+ type: "form_submission";
5660
+ status: FormSubmissionStatus;
5661
+ created_at: string;
5662
+ updated_at: string;
5663
+ can: Record<string, boolean | null>;
5664
+ schema_version: number;
5665
+ data: Record<string, any>;
5666
+ form_template_id: number;
5667
+ submitted_by: number;
5668
+ reviewed_by: number | null;
5669
+ reviewed_at: string | null;
5670
+ schema_snapshot: {
5671
+ sections: {
5672
+ title: string;
5673
+ key: string;
5674
+ order: number;
5675
+ fields: {
5676
+ type: FormFieldType;
5677
+ key: string;
5678
+ required: boolean;
5679
+ order: number;
5680
+ options?: Record<string, any> | undefined;
5681
+ validation?: Record<string, any> | undefined;
5682
+ label?: {
5683
+ en: string;
5684
+ de?: string | undefined;
5685
+ no?: string | undefined;
5686
+ } | undefined;
5687
+ content?: {
5688
+ en: string;
5689
+ de?: string | undefined;
5690
+ no?: string | undefined;
5691
+ } | undefined;
5692
+ col_span?: number | undefined;
5693
+ show_when?: {
5694
+ value: string | number | boolean | string[];
5695
+ field: string;
5696
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
5697
+ } | undefined;
5698
+ signer_membership_field?: string | undefined;
5699
+ signer_permission?: string | undefined;
5700
+ signer_source?: string | undefined;
5701
+ prefill_source?: string | undefined;
5702
+ }[];
5703
+ }[];
5704
+ };
5705
+ submittable_type: string;
5706
+ submittable_id: number;
5707
+ data_resolved_names: Record<string, string>;
5708
+ submitted_at: string | null;
5709
+ review_comment: string | null;
5710
+ is_final: boolean;
5711
+ is_mutable: boolean;
5712
+ is_signable: boolean;
5713
+ has_signature_fields: boolean;
5714
+ all_signatures_collected: boolean;
5715
+ source: FormSubmissionSource;
5716
+ is_overdue: boolean;
5717
+ notifications_enabled: boolean;
5718
+ is_expired: boolean;
5719
+ expires_at?: string | null | undefined;
5720
+ signatures?: {
5721
+ id: number;
5722
+ status: "signed" | "pending" | "revoked";
5723
+ field_key: string;
5724
+ required_signer_membership_id: number | null;
5725
+ signed_by_user_id: number | null;
5726
+ signed_by_membership_id: number | null;
5727
+ is_current_user_designated: boolean;
5728
+ signed_at: string | null;
5729
+ image: string | null;
5730
+ data_hash: string | null;
5731
+ schema_version: number | null;
5732
+ schema_hash: string | null;
5733
+ consent_text_hash: string | null;
5734
+ auth_method: string | null;
5735
+ auth_verified_at: string | null;
5736
+ ip_address: string | null;
5737
+ user_agent: string | null;
5738
+ geo_country: string | null;
5739
+ signing_event_id: string | null;
5740
+ type?: "signature" | undefined;
5741
+ created_at?: string | undefined;
5742
+ updated_at?: string | undefined;
5743
+ signable_type?: string | undefined;
5744
+ signable_id?: number | undefined;
5745
+ required_signer_name?: string | null | undefined;
5746
+ required_signer_permission?: string | null | undefined;
5747
+ signed_by_name?: string | null | undefined;
5748
+ }[] | undefined;
5749
+ note?: string | null | undefined;
5750
+ form_template?: {
5751
+ id: number;
5752
+ name: string;
5753
+ type: "form_template";
5754
+ created_at: string;
5755
+ updated_at: string;
5756
+ description: string | null;
5757
+ is_active: boolean;
5758
+ company_id: number | null;
5759
+ schema_version: number;
5760
+ created_by: number | null;
5761
+ slug: string;
5762
+ schema: {
5763
+ sections: {
5764
+ title: string;
5765
+ key: string;
5766
+ order: number;
5767
+ fields: {
5768
+ type: FormFieldType;
5769
+ key: string;
5770
+ required: boolean;
5771
+ order: number;
5772
+ options?: Record<string, any> | undefined;
5773
+ validation?: Record<string, any> | undefined;
5774
+ label?: {
5775
+ en: string;
5776
+ de?: string | undefined;
5777
+ no?: string | undefined;
5778
+ } | undefined;
5779
+ content?: {
5780
+ en: string;
5781
+ de?: string | undefined;
5782
+ no?: string | undefined;
5783
+ } | undefined;
5784
+ col_span?: number | undefined;
5785
+ show_when?: {
5786
+ value: string | number | boolean | string[];
5787
+ field: string;
5788
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
5789
+ } | undefined;
5790
+ signer_membership_field?: string | undefined;
5791
+ signer_permission?: string | undefined;
5792
+ signer_source?: string | undefined;
5793
+ prefill_source?: string | undefined;
5794
+ }[];
5795
+ }[];
5796
+ };
5797
+ pdf_view: string | null;
5798
+ requires_review: boolean;
5799
+ is_singleton: boolean;
5800
+ is_sign_only: boolean;
5801
+ is_requirable: boolean;
5802
+ is_onboarding: boolean;
5803
+ is_system: boolean;
5804
+ has_expiry: boolean;
5805
+ onboarding_role_keys?: string[] | null | undefined;
5806
+ applies_to?: string | null | undefined;
5807
+ default_notification_days?: number | null | undefined;
5808
+ creator?: {
5809
+ id: number;
5810
+ name: string;
5811
+ email?: string | undefined;
5812
+ } | null | undefined;
5813
+ assignments?: any[] | undefined;
5814
+ } | undefined;
5815
+ due_date?: string | null | undefined;
5816
+ submitter?: {
5817
+ id: number;
5818
+ name: string;
5819
+ email?: string | undefined;
5820
+ } | null | undefined;
5821
+ reviewer?: {
5822
+ id: number;
5823
+ name: string;
5824
+ email?: string | undefined;
5825
+ } | null | undefined;
5826
+ submittable_summary?: {
5827
+ id: number;
5828
+ name: string | null;
5829
+ email: string | null;
5830
+ type: string;
5831
+ } | null | undefined;
5832
+ required_signers?: Record<string, number> | null | undefined;
5833
+ requested_by_user_id?: number | null | undefined;
5834
+ days_until_due?: number | null | undefined;
5835
+ notification_days_before?: number | null | undefined;
5836
+ files?: Record<string, {
5837
+ id: number;
5838
+ file_name: string;
5839
+ size: number;
5840
+ conversions?: Record<string, string | null> | undefined;
5841
+ url?: string | null | undefined;
5842
+ mime_type?: string | null | undefined;
5843
+ } | null> | undefined;
5844
+ requester?: {
5845
+ id: number;
5846
+ name: string;
5847
+ email?: string | undefined;
5848
+ } | null | undefined;
5849
+ shares?: {
5850
+ id: number;
5851
+ created_at: string;
5852
+ company_id: number;
5853
+ shared_by: number;
5854
+ form_submission_id: number;
5855
+ company?: {
5856
+ id: number;
5857
+ name: string;
5858
+ } | undefined;
5859
+ type?: "form_submission_share" | undefined;
5860
+ }[] | undefined;
5861
+ }[];
5862
+ meta: {
5863
+ current_versions: Record<string, number>;
5864
+ };
5865
+ }, {
5866
+ data: {
5867
+ id: number;
5868
+ type: "form_submission";
5869
+ status: FormSubmissionStatus;
5870
+ created_at: string;
5871
+ updated_at: string;
5872
+ schema_version: number;
5873
+ data: Record<string, any>;
5874
+ form_template_id: number;
5875
+ submitted_by: number;
5876
+ reviewed_by: number | null;
5877
+ reviewed_at: string | null;
5878
+ schema_snapshot: {
5879
+ sections: {
5880
+ title: string;
5881
+ key: string;
5882
+ order: number;
5883
+ fields: {
5884
+ type: FormFieldType;
5885
+ key: string;
5886
+ order: number;
5887
+ options?: Record<string, any> | undefined;
5888
+ validation?: Record<string, any> | undefined;
5889
+ label?: {
5890
+ en: string;
5891
+ de?: string | undefined;
5892
+ no?: string | undefined;
5893
+ } | undefined;
5894
+ required?: boolean | undefined;
5895
+ content?: {
5896
+ en: string;
5897
+ de?: string | undefined;
5898
+ no?: string | undefined;
5899
+ } | undefined;
5900
+ col_span?: number | undefined;
5901
+ show_when?: {
5902
+ value: string | number | boolean | string[];
5903
+ field: string;
5904
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
5905
+ } | undefined;
5906
+ signer_membership_field?: string | undefined;
5907
+ signer_permission?: string | undefined;
5908
+ signer_source?: string | undefined;
5909
+ prefill_source?: string | undefined;
5910
+ }[];
5911
+ }[];
5912
+ };
5913
+ submittable_type: string;
5914
+ submittable_id: number;
5915
+ submitted_at: string | null;
5916
+ review_comment: string | null;
5917
+ expires_at?: string | null | undefined;
5918
+ can?: Record<string, boolean | null> | undefined;
5919
+ signatures?: {
5920
+ id: number;
5921
+ status: "signed" | "pending" | "revoked";
5922
+ field_key: string;
5923
+ required_signer_membership_id: number | null;
5924
+ signed_by_user_id: number | null;
5925
+ signed_by_membership_id: number | null;
5926
+ signed_at: string | null;
5927
+ image: string | null;
5928
+ data_hash: string | null;
5929
+ schema_version: number | null;
5930
+ schema_hash: string | null;
5931
+ consent_text_hash: string | null;
5932
+ auth_method: string | null;
5933
+ auth_verified_at: string | null;
5934
+ ip_address: string | null;
5935
+ user_agent: string | null;
5936
+ geo_country: string | null;
5937
+ signing_event_id: string | null;
5938
+ type?: "signature" | undefined;
5939
+ created_at?: string | undefined;
5940
+ updated_at?: string | undefined;
5941
+ signable_type?: string | undefined;
5942
+ signable_id?: number | undefined;
5943
+ required_signer_name?: string | null | undefined;
5944
+ required_signer_permission?: string | null | undefined;
5945
+ signed_by_name?: string | null | undefined;
5946
+ is_current_user_designated?: boolean | undefined;
5947
+ }[] | undefined;
5948
+ note?: string | null | undefined;
5949
+ form_template?: {
5950
+ id: number;
5951
+ name: string;
5952
+ type: "form_template";
5953
+ created_at: string;
5954
+ updated_at: string;
5955
+ description: string | null;
5956
+ is_active: boolean;
5957
+ company_id: number | null;
5958
+ schema_version: number;
5959
+ created_by: number | null;
5960
+ slug: string;
5961
+ schema: {
5962
+ sections: {
5963
+ title: string;
5964
+ key: string;
5965
+ order: number;
5966
+ fields: {
5967
+ type: FormFieldType;
5968
+ key: string;
5969
+ order: number;
5970
+ options?: Record<string, any> | undefined;
5971
+ validation?: Record<string, any> | undefined;
5972
+ label?: {
5973
+ en: string;
5974
+ de?: string | undefined;
5975
+ no?: string | undefined;
5976
+ } | undefined;
5977
+ required?: boolean | undefined;
5978
+ content?: {
5979
+ en: string;
5980
+ de?: string | undefined;
5981
+ no?: string | undefined;
5982
+ } | undefined;
5983
+ col_span?: number | undefined;
5984
+ show_when?: {
5985
+ value: string | number | boolean | string[];
5986
+ field: string;
5987
+ operator: "eq" | "neq" | "in" | "not_in" | "gt" | "lt" | "gte" | "lte";
5988
+ } | undefined;
5989
+ signer_membership_field?: string | undefined;
5990
+ signer_permission?: string | undefined;
5991
+ signer_source?: string | undefined;
5992
+ prefill_source?: string | undefined;
5993
+ }[];
5994
+ }[];
5995
+ };
5996
+ pdf_view: string | null;
5997
+ requires_review: boolean;
5998
+ is_singleton?: boolean | undefined;
5999
+ is_sign_only?: boolean | undefined;
6000
+ is_requirable?: boolean | undefined;
6001
+ is_onboarding?: boolean | undefined;
6002
+ onboarding_role_keys?: string[] | null | undefined;
6003
+ is_system?: boolean | undefined;
6004
+ applies_to?: string | null | undefined;
6005
+ has_expiry?: boolean | undefined;
6006
+ default_notification_days?: number | null | undefined;
6007
+ creator?: {
6008
+ id: number;
6009
+ name: string;
6010
+ email?: string | undefined;
6011
+ } | null | undefined;
6012
+ assignments?: any[] | undefined;
6013
+ } | undefined;
6014
+ due_date?: string | null | undefined;
6015
+ submitter?: {
6016
+ id: number;
6017
+ name: string;
6018
+ email?: string | undefined;
6019
+ } | null | undefined;
6020
+ reviewer?: {
6021
+ id: number;
6022
+ name: string;
6023
+ email?: string | undefined;
6024
+ } | null | undefined;
6025
+ submittable_summary?: {
6026
+ id: number;
6027
+ name: string | null;
6028
+ email: string | null;
6029
+ type: string;
6030
+ } | null | undefined;
6031
+ data_resolved_names?: Record<string, string> | undefined;
6032
+ required_signers?: Record<string, number> | null | undefined;
6033
+ is_final?: boolean | undefined;
6034
+ is_mutable?: boolean | undefined;
6035
+ is_signable?: boolean | undefined;
6036
+ has_signature_fields?: boolean | undefined;
6037
+ all_signatures_collected?: boolean | undefined;
6038
+ source?: FormSubmissionSource | undefined;
6039
+ requested_by_user_id?: number | null | undefined;
6040
+ is_overdue?: boolean | undefined;
6041
+ days_until_due?: number | null | undefined;
6042
+ notification_days_before?: number | null | undefined;
6043
+ notifications_enabled?: boolean | undefined;
6044
+ is_expired?: boolean | undefined;
6045
+ files?: Record<string, {
6046
+ id: number;
6047
+ file_name: string;
6048
+ size: number;
6049
+ conversions?: Record<string, string | null> | undefined;
6050
+ url?: string | null | undefined;
6051
+ mime_type?: string | null | undefined;
6052
+ } | null> | undefined;
6053
+ requester?: {
6054
+ id: number;
6055
+ name: string;
6056
+ email?: string | undefined;
6057
+ } | null | undefined;
6058
+ shares?: {
6059
+ id: number;
6060
+ created_at: string;
6061
+ company_id: number;
6062
+ shared_by: number;
6063
+ form_submission_id: number;
6064
+ company?: {
6065
+ id: number;
6066
+ name: string;
6067
+ } | undefined;
6068
+ type?: "form_submission_share" | undefined;
6069
+ }[] | undefined;
6070
+ }[];
6071
+ meta: {
6072
+ current_versions: Record<string, number>;
6073
+ };
6074
+ }>;
6075
+ type CompanySystemContractsResponse = z.infer<typeof CompanySystemContractsResponseSchema>;
6076
+
6077
+ export { ALLOWED_GEOMETRY_TYPES, ALLOWED_NEWSLETTER_VARIABLES, type AircraftUtilization, AllUsersBucketSchema, type AllowedGeometryType, type AllowedNewsletterVariable, type AudienceBucket, AudienceBucketSchema, AudienceBucketType, type BookingsData, type ButtonBlock, ButtonBlockSchema, type CompanyDevelopmentReportData, type CompanySystemContractsResponse, CompanySystemContractsResponseSchema, CompanyUsersBucketSchema, type CourseEnrollmentMilestone, type CourseMilestone, type CourseMilestoneForm, CourseMilestoneFormSchema, type CourseMilestoneKind, CourseMilestoneKindEnum, type CreateFaqInput, type CreateLocationMapFeatureInput, CreateLocationMapFeatureSchema, type CreateLocationMapInput, CreateLocationMapSchema, type CreateNewsletterCampaignInput, CreateNewsletterCampaignInputSchema, type CreateNewsletterTemplateInput, CreateNewsletterTemplateInputSchema, type DividerBlock, DividerBlockSchema, type Equipment, type EquipmentEntry, type ExpenseData, type Faq, FaqSchema, FaqStatus, type FinancialReportData, type FinancialSummaryData, type FlightHoursData, FormFieldType, FormSubmissionSource, FormSubmissionStatus, type GeoJsonFeature, type GeoJsonFeatureCollection, type GeoJsonGeometry, GeometrySchema, type HeadingBlock, HeadingBlockSchema, type ImportFeaturesInput, ImportFeaturesSchema, type InstructorData, type InstructorEfficiencyReportData, type InstructorSummaryData, type InvoiceData, type LandingsData, LocationFeatureVisibility, type LocationMap, type LocationMapFeature, type LocationMapFeatureGeoJson, type LocationMapGeoJson, type LocationMapGeoJsonProperties, LocationMapKind, type Media, type MemberActivityData, type NewsletterAudience, NewsletterAudienceSchema, type NewsletterBlock, NewsletterBlockSchema, NewsletterBlockType, type NewsletterCampaign, type NewsletterCampaignRecipient, NewsletterCampaignRecipientSchema, NewsletterCampaignSchema, NewsletterCampaignStatus, type NewsletterCategory, NewsletterCategorySchema, type NewsletterPreferenceRow, NewsletterPreferenceRowSchema, NewsletterRecipientStatus, type NewsletterTemplate, type NewsletterTemplateDoc, NewsletterTemplateSchema, NewsletterTemplateSchemaSchema, type OperationalReportData, type ParagraphBlock, ParagraphBlockSchema, type PeriodData, type PrepaidPackageData, type Report, type ReportData, type ReportGenerationParams, type ReportGenerationResponse, type ReportGranularity, type ReportListItem, type ReportMedia, type ReportMetadata, type ReportParameters, type ReportStatus, type ReportStatusResponse, type ReportType, type RevenueData, type ReviewFaqInput, ReviewFaqSchema, RoleMembersBucketSchema, SAFETY_REPORT_STATUS_COLORS, SAFETY_REPORT_STATUS_LABELS, type SafetyReport, type SafetyReportCategory, type SafetyReportCategoryForm, SafetyReportCategoryFormSchema, SafetyReportCategorySchema, type SafetyReportFilter, SafetyReportFilterSchema, type SafetyReportForm, SafetyReportFormSchema, type SafetyReportListResponse, SafetyReportListResponseSchema, type SafetyReportMedia, SafetyReportMediaSchema, SafetyReportSchema, type SafetyReportStatus, SafetyReportStatusEnum, type SafetyReportSubmissionResponse, SafetyReportSubmissionResponseSchema, type SafetyReportUpdate, SafetyReportUpdateSchema, type SubmitFaqQuestionInput, SubmitFaqQuestionSchema, type SystemContractRegisterEntry, SystemContractRegisterEntrySchema, SystemContractRegisterResponseSchema, type SystemContractRegisterRow, SystemContractRegisterRowSchema, type SystemContractState, SystemContractStateSchema, type TipTapNode, TipTapNodeSchema, type Todo, type TodoAcceptedAlternative, type TodoAction, TodoActionSchema, TodoKey, type TodoPriority, TodoPrioritySchema, TodoSchema, type UpdateFaqInput, type UpdateLocationMapFeatureInput, UpdateLocationMapFeatureSchema, type UpdateLocationMapInput, UpdateLocationMapSchema, type UpdateNewsletterCampaignInput, type UpdateNewsletterTemplateInput, type Viewport, ViewportSchema, companyAudienceInclude, courseEnrollmentMilestoneSchema, courseMilestoneSchema, equipmentSchema };