@updraft-solutions/mcrit-sdk 0.20.3 → 0.20.4

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,5 +1,5 @@
1
- import { em as Media, a8 as FormFieldType, ag as FormSubmissionStatus, af as FormSubmissionSource } from '../conversation-JmrIujrU.cjs';
2
- export { k as AttachSyllabusElementForm, l as AttachSyllabusElementFormSchema, n as BaseModel, r as CourseCheckSyllabus, w as CreateFormSubmissionInput, x as CreateFormTemplateAssignmentInput, y as CreateFormTemplateInput, D as CreateSyllabusFromTemplateForm, E as CreateSyllabusFromTemplateFormSchema, F as CreateSyllabusFromTemplateResult, O as EnrollmentTrainingElement, P as EnrollmentTrainingStatus, Q as EnrollmentTrainingStatusEnum, V as FBO_OPERATING_DAYS, W as FBO_SYSTEM_ROLES, Z as FieldLabel, _ as FieldLabelSchema, a9 as FormSubmission, aa as FormSubmissionSchema, ab as FormSubmissionShare, ac as FormSubmissionShareBase, ad as FormSubmissionShareBaseSchema, ae as FormSubmissionShareSchema, ah as FormTemplate, ai as FormTemplateAssignment, aj as FormTemplateAssignmentSchema, ak as FormTemplateSchema, al as FuelUnit, am as GradeHistoryItem, an as GradingScale, ao as GradingScaleForm, ap as GradingScaleFormSchema, aq as GradingScalePoint, ar as ImpersonationParticipant, as as ImpersonationState, at as InvalidateTrainingRecordResponse, aJ as ReorderSyllabusElementItem, aK as ReorderSyllabusElementItemSchema, aL as RequiredForm, aM as RequiredFormSchema, aN as RequiredFormVia, aO as RequiredFormViaCrew, aP as RequiredFormViaCrewSchema, aQ as RequiredFormViaSchema, aS as ReviewFormSubmissionInput, aW as SchemaField, aX as SchemaFieldSchema, aY as SchemaSection, aZ as SchemaSectionSchema, a$ as ShowWhen, b0 as ShowWhenSchema, b1 as SignOffTrainingElementForm, b2 as SignOffTrainingElementFormSchema, b3 as Signature, b4 as SignatureSchema, b6 as StoreSyllabusForm, b7 as StoreSyllabusFormSchema, b8 as SubmissionFile, b9 as SubmissionFileSchema, ba as Syllabus, bb as SyllabusElement, bc as SyllabusElementMutationResult, bd as SyllabusKind, be as SyllabusKindEnum, bf as SyllabusRolloutResult, bg as SyllabusRolloutResultItem, bh as SyllabusRolloutSkippedItem, bk as TemplateSchema, bl as TemplateSchemaSchema, bn as TrainingElement, bo as TrainingElementForm, bp as TrainingElementFormSchema, bq as TrainingElementKind, br as TrainingElementKindEnum, bs as TrainingRecord, bt as TrainingRecordEntry, bu as TrainingRecordEntryInput, bv as TrainingRecordResult, bw as TrainingRecordResultEnum, bx as TrainingRecordStatus, by as TrainingRecordStatusEnum, bz as TrainingSignature, bA as TrainingTemplatePack, bD as UpdateFormTemplateInput, bF as UpdateSyllabusElementForm, bG as UpdateSyllabusElementFormSchema, bH as UpdateSyllabusForm, bI as UpdateSyllabusFormSchema, bJ as UpsertTrainingRecordForm, bK as UpsertTrainingRecordFormSchema, bL as UsedByCourse, bQ as activitySchema, bR as addressSchema, bS as aircraftPositionSchema, bT as aircraftRatingSchema, bU as airplaneIssueSchema, bV as airplaneIssueSeverityEnum, bW as airplaneIssueStatusEnum, bX as airplanePermissionSchema, bY as airplaneSchema, bZ as airplaneShareInviteSchema, b_ as airportSchema, b$ as alertSchema, c0 as allowedDocumentTypeSchema, c1 as approachTypeSchema, c2 as availSchema, c3 as baseMembershipSchema, c4 as billingProfileSchema, c5 as bookingSchema, c6 as bookingWaypointSchema, c7 as commentSchema, c8 as companyIdentitySchema, c9 as companySchema, ca as contactAttributeSchema, cb as conversationKindSchema, cc as conversationMessageSchema, cd as conversationMessageSentEventSchema, ce as conversationParticipantSchema, cf as conversationReadEventSchema, cg as conversationRecipientSchema, ch as conversationSchema, ci as conversationUnreadSummarySchema, cj as courseCheckSyllabusSchema, ck as courseEnrollmentMetricsSchema, cl as courseEnrollmentSchema, cm as courseFeeSchema, cn as courseSchema, co as createSyllabusFromTemplateResultSchema, cp as documentComplianceStatus, cq as documentRequirement, cr as documentRequirementGroup, cs as documentRequirementGroupAssignment, ct as documentSchema, cu as documentShareSchema, cv as documentType, cw as enrollmentTrainingElementSchema, cx as eventSchema, cy as expenseItemSchema, cz as expenseSchema, cA as extendedAirplaneSchema, cB as fboAcceptanceAxisSchema, cC as fboAcceptanceStatusSchema, cD as fboActivityCauserSchema, cE as fboActivityChangesSchema, cF as fboActivitySchema, cG as fboCompanyGrantInputSchema, cH as fboCompanyGrantSchema, cI as fboCompanyMemberSchema, cJ as fboCompanyProfileSchema, cK as fboCompanySchema, cL as fboDecisionAxisSchema, cM as fboDecisionInputSchema, cN as fboDecisionSchema, cO as fboDutyAffectedSchema, cP as fboDutySchema, cQ as fboDutySeriesResponseSchema, cR as fboFlightCanSchema, cS as fboFlightDocumentSchema, cT as fboFlightSchema, cU as fboFlightStatusSchema, cV as fboFlightTypeSchema, cW as fboGrantAbilityOptionSchema, cX as fboGrantAbilitySchema, cY as fboGrantCompanyRefSchema, cZ as fboGroundServicesSchema, c_ as fboLandingsSummarySchema, c$ as fboMaterialiseResultSchema, d0 as fboMetaSchema, d1 as fboNextDutySchema, d2 as fboOccupationSchema, d3 as fboOperationsSchema, d4 as fboPersonSchema, d5 as fboPobSchema, d6 as fboRecurrenceSchema, d7 as fboRecurrenceTypeSchema, d8 as fboRecurringFlightSchema, d9 as fboRoleSchema, da as fboRowCanSchema, db as fboStatisticsSchema, dc as fboSystemRoleSchema, dd as fboTrafficLayerInputSchema, de as fboTrafficRowSchema, df as fboTrafficRowTypeSchema, dg as fboTrafficSourceSchema, dh as fboVisibilitySchema, di as fboWeeklyLandingSchema, dj as feeCategoryOptionsSchema, dk as feeSchema, dl as flightLogSchema, dm as flightRequestAvailabilitySchema, dn as flightRequestBusyIntervalSchema, dp as flightRequestResponseSchema, dq as flightRequestResponseStatusSchema, dr as flightRequestSchema, ds as flightRequestSeatSchema, dt as flightRequestStatusSchema, du as flightRequestWindowSchema, dv as fuelUnitSchema, dw as gradeHistoryItemSchema, dx as gradingScalePointSchema, dy as gradingScaleSchema, dz as impersonationParticipantSchema, dA as impersonationStateSchema, dB as invalidateTrainingRecordResponseSchema, dC as invoiceSchema, dD as landingFeeSchema, dE as landingSchema, dF as maintenanceEventEstimationSchema, dG as maintenanceEventSchema, dH as maintenanceStatusSchema, dI as mediaCollection, dJ as mediaSchema, dK as membershipIdentitySchema, dL as membershipSchema, dM as membershipSignupSchema, dN as nestedMembershipSchema, dO as postSchema, dP as postSubjectSchema, dQ as prePaidPackageAssignmentSchema, dR as prePaidPackageSchema, dS as priceSchema, dT as qualificationSchema, dU as recurringFlightSchema, dV as roleSchema, dW as runwaySchema, dX as scheduledFlightSchema, dY as settingSchema, dZ as specialFlightSchema, d_ as syllabusElementMutationResultSchema, d$ as syllabusElementSchema, e0 as syllabusRolloutResultItemSchema, e1 as syllabusRolloutResultSchema, e2 as syllabusRolloutSkippedItemSchema, e3 as syllabusSchema, e4 as tagSchema, e5 as teachingPermissionSchema, e6 as ticketSchema, e7 as trainingElementSchema, e8 as trainingRecordEntryInputSchema, e9 as trainingRecordEntrySchema, ea as trainingRecordSchema, eb as trainingSignatureSchema, ec as trainingTemplatePackSchema, ed as usedByCourseSchema, ee as userAircraftRatingSchema, ef as userQualificationSchema, eg as userSchema, eh as waypointSchema, ei as zContactDTO, ej as zMoneyObject, ek as zNetGross, el as zNullableBool } from '../conversation-JmrIujrU.cjs';
1
+ import { em as Media, a8 as FormFieldType, ag as FormSubmissionStatus, af as FormSubmissionSource } from '../conversation-Be76HoQk.cjs';
2
+ export { k as AttachSyllabusElementForm, l as AttachSyllabusElementFormSchema, n as BaseModel, r as CourseCheckSyllabus, w as CreateFormSubmissionInput, x as CreateFormTemplateAssignmentInput, y as CreateFormTemplateInput, D as CreateSyllabusFromTemplateForm, E as CreateSyllabusFromTemplateFormSchema, F as CreateSyllabusFromTemplateResult, O as EnrollmentTrainingElement, P as EnrollmentTrainingStatus, Q as EnrollmentTrainingStatusEnum, V as FBO_OPERATING_DAYS, W as FBO_SYSTEM_ROLES, Z as FieldLabel, _ as FieldLabelSchema, a9 as FormSubmission, aa as FormSubmissionSchema, ab as FormSubmissionShare, ac as FormSubmissionShareBase, ad as FormSubmissionShareBaseSchema, ae as FormSubmissionShareSchema, ah as FormTemplate, ai as FormTemplateAssignment, aj as FormTemplateAssignmentSchema, ak as FormTemplateSchema, al as FuelUnit, am as GradeHistoryItem, an as GradingScale, ao as GradingScaleForm, ap as GradingScaleFormSchema, aq as GradingScalePoint, ar as ImpersonationParticipant, as as ImpersonationState, at as InvalidateTrainingRecordResponse, aJ as ReorderSyllabusElementItem, aK as ReorderSyllabusElementItemSchema, aL as RequiredForm, aM as RequiredFormSchema, aN as RequiredFormVia, aO as RequiredFormViaCrew, aP as RequiredFormViaCrewSchema, aQ as RequiredFormViaSchema, aS as ReviewFormSubmissionInput, aW as SchemaField, aX as SchemaFieldSchema, aY as SchemaSection, aZ as SchemaSectionSchema, a$ as ShowWhen, b0 as ShowWhenSchema, b1 as SignOffTrainingElementForm, b2 as SignOffTrainingElementFormSchema, b3 as Signature, b4 as SignatureSchema, b6 as StoreSyllabusForm, b7 as StoreSyllabusFormSchema, b8 as SubmissionFile, b9 as SubmissionFileSchema, ba as Syllabus, bb as SyllabusElement, bc as SyllabusElementMutationResult, bd as SyllabusKind, be as SyllabusKindEnum, bf as SyllabusRolloutResult, bg as SyllabusRolloutResultItem, bh as SyllabusRolloutSkippedItem, bk as TemplateSchema, bl as TemplateSchemaSchema, bn as TrainingElement, bo as TrainingElementForm, bp as TrainingElementFormSchema, bq as TrainingElementKind, br as TrainingElementKindEnum, bs as TrainingRecord, bt as TrainingRecordEntry, bu as TrainingRecordEntryInput, bv as TrainingRecordResult, bw as TrainingRecordResultEnum, bx as TrainingRecordStatus, by as TrainingRecordStatusEnum, bz as TrainingSignature, bA as TrainingTemplatePack, bD as UpdateFormTemplateInput, bF as UpdateSyllabusElementForm, bG as UpdateSyllabusElementFormSchema, bH as UpdateSyllabusForm, bI as UpdateSyllabusFormSchema, bJ as UpsertTrainingRecordForm, bK as UpsertTrainingRecordFormSchema, bL as UsedByCourse, bQ as activitySchema, bR as addressSchema, bS as aircraftPositionSchema, bT as aircraftRatingSchema, bU as airplaneIssueSchema, bV as airplaneIssueSeverityEnum, bW as airplaneIssueStatusEnum, bX as airplanePermissionSchema, bY as airplaneSchema, bZ as airplaneShareInviteSchema, b_ as airportSchema, b$ as alertSchema, c0 as allowedDocumentTypeSchema, c1 as approachTypeSchema, c2 as availSchema, c3 as baseMembershipSchema, c4 as billingProfileSchema, c5 as bookingSchema, c6 as bookingWaypointSchema, c7 as commentSchema, c8 as companyIdentitySchema, c9 as companySchema, ca as contactAttributeSchema, cb as conversationKindSchema, cc as conversationMessageSchema, cd as conversationMessageSentEventSchema, ce as conversationParticipantSchema, cf as conversationReadEventSchema, cg as conversationRecipientSchema, ch as conversationSchema, ci as conversationUnreadSummarySchema, cj as courseCheckSyllabusSchema, ck as courseEnrollmentMetricsSchema, cl as courseEnrollmentSchema, cm as courseFeeSchema, cn as courseSchema, co as createSyllabusFromTemplateResultSchema, cp as documentComplianceStatus, cq as documentRequirement, cr as documentRequirementGroup, cs as documentRequirementGroupAssignment, ct as documentSchema, cu as documentShareSchema, cv as documentType, cw as enrollmentTrainingElementSchema, cx as eventSchema, cy as expenseItemSchema, cz as expenseSchema, cA as extendedAirplaneSchema, cB as fboAcceptanceAxisSchema, cC as fboAcceptanceStatusSchema, cD as fboActivityCauserSchema, cE as fboActivityChangesSchema, cF as fboActivitySchema, cG as fboCompanyGrantInputSchema, cH as fboCompanyGrantSchema, cI as fboCompanyMemberSchema, cJ as fboCompanyProfileSchema, cK as fboCompanySchema, cL as fboDecisionAxisSchema, cM as fboDecisionInputSchema, cN as fboDecisionSchema, cO as fboDutyAffectedSchema, cP as fboDutySchema, cQ as fboDutySeriesResponseSchema, cR as fboFlightCanSchema, cS as fboFlightDocumentSchema, cT as fboFlightSchema, cU as fboFlightStatusSchema, cV as fboFlightTypeSchema, cW as fboGrantAbilityOptionSchema, cX as fboGrantAbilitySchema, cY as fboGrantCompanyRefSchema, cZ as fboGroundServicesSchema, c_ as fboLandingsSummarySchema, c$ as fboMaterialiseResultSchema, d0 as fboMetaSchema, d1 as fboNextDutySchema, d2 as fboOccupationSchema, d3 as fboOperationsSchema, d4 as fboPersonSchema, d5 as fboPobSchema, d6 as fboRecurrenceSchema, d7 as fboRecurrenceTypeSchema, d8 as fboRecurringFlightSchema, d9 as fboRoleSchema, da as fboRowCanSchema, db as fboStatisticsSchema, dc as fboSystemRoleSchema, dd as fboTrafficLayerInputSchema, de as fboTrafficRowSchema, df as fboTrafficRowTypeSchema, dg as fboTrafficSourceSchema, dh as fboVisibilitySchema, di as fboWeeklyLandingSchema, dj as feeCategoryOptionsSchema, dk as feeSchema, dl as flightLogSchema, dm as flightRequestAvailabilitySchema, dn as flightRequestBusyIntervalSchema, dp as flightRequestResponseSchema, dq as flightRequestResponseStatusSchema, dr as flightRequestSchema, ds as flightRequestSeatSchema, dt as flightRequestStatusSchema, du as flightRequestWindowSchema, dv as fuelUnitSchema, dw as gradeHistoryItemSchema, dx as gradingScalePointSchema, dy as gradingScaleSchema, dz as impersonationParticipantSchema, dA as impersonationStateSchema, dB as invalidateTrainingRecordResponseSchema, dC as invoiceSchema, dD as landingFeeSchema, dE as landingSchema, dF as maintenanceEventEstimationSchema, dG as maintenanceEventSchema, dH as maintenanceStatusSchema, dI as mediaCollection, dJ as mediaSchema, dK as membershipIdentitySchema, dL as membershipSchema, dM as membershipSignupSchema, dN as nestedMembershipSchema, dO as postSchema, dP as postSubjectSchema, dQ as prePaidPackageAssignmentSchema, dR as prePaidPackageSchema, dS as priceSchema, dT as qualificationSchema, dU as recurringFlightSchema, dV as roleSchema, dW as runwaySchema, dX as scheduledFlightSchema, dY as settingSchema, dZ as specialFlightSchema, d_ as syllabusElementMutationResultSchema, d$ as syllabusElementSchema, e0 as syllabusRolloutResultItemSchema, e1 as syllabusRolloutResultSchema, e2 as syllabusRolloutSkippedItemSchema, e3 as syllabusSchema, e4 as tagSchema, e5 as teachingPermissionSchema, e6 as ticketSchema, e7 as trainingElementSchema, e8 as trainingRecordEntryInputSchema, e9 as trainingRecordEntrySchema, ea as trainingRecordSchema, eb as trainingSignatureSchema, ec as trainingTemplatePackSchema, ed as usedByCourseSchema, ee as userAircraftRatingSchema, ef as userQualificationSchema, eg as userSchema, eh as waypointSchema, ei as zContactDTO, ej as zMoneyObject, ek as zNetGross, el as zNullableBool } from '../conversation-Be76HoQk.cjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  declare enum FaqStatus {
@@ -30,26 +30,26 @@ declare const FaqSchema: z.ZodObject<{
30
30
  name: z.ZodNullable<z.ZodString>;
31
31
  email: z.ZodNullable<z.ZodString>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- id: number;
34
33
  name: string | null;
35
34
  email: string | null;
36
- }, {
37
35
  id: number;
36
+ }, {
38
37
  name: string | null;
39
38
  email: string | null;
39
+ id: number;
40
40
  }>>>;
41
41
  reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
42
  id: z.ZodNumber;
43
43
  name: z.ZodNullable<z.ZodString>;
44
44
  email: z.ZodNullable<z.ZodString>;
45
45
  }, "strip", z.ZodTypeAny, {
46
- id: number;
47
46
  name: string | null;
48
47
  email: string | null;
49
- }, {
50
48
  id: number;
49
+ }, {
51
50
  name: string | null;
52
51
  email: string | null;
52
+ id: number;
53
53
  }>>>;
54
54
  is_pending: z.ZodOptional<z.ZodBoolean>;
55
55
  is_user_submitted: z.ZodOptional<z.ZodBoolean>;
@@ -73,9 +73,9 @@ declare const FaqSchema: z.ZodObject<{
73
73
  submit?: boolean | undefined;
74
74
  }>>;
75
75
  }, "strip", z.ZodTypeAny, {
76
- id: number;
77
76
  type: "faq";
78
77
  status: "pending" | "approved" | "rejected";
78
+ id: number;
79
79
  created_at: string;
80
80
  updated_at: string;
81
81
  is_active: boolean;
@@ -98,21 +98,21 @@ declare const FaqSchema: z.ZodObject<{
98
98
  submit?: boolean | undefined;
99
99
  } | undefined;
100
100
  submitter?: {
101
- id: number;
102
101
  name: string | null;
103
102
  email: string | null;
103
+ id: number;
104
104
  } | null | undefined;
105
105
  reviewer?: {
106
- id: number;
107
106
  name: string | null;
108
107
  email: string | null;
108
+ id: number;
109
109
  } | null | undefined;
110
110
  is_pending?: boolean | undefined;
111
111
  is_user_submitted?: boolean | undefined;
112
112
  }, {
113
- id: number;
114
113
  type: "faq";
115
114
  status: "pending" | "approved" | "rejected";
115
+ id: number;
116
116
  created_at: string;
117
117
  updated_at: string;
118
118
  is_active: boolean;
@@ -135,14 +135,14 @@ declare const FaqSchema: z.ZodObject<{
135
135
  submit?: boolean | undefined;
136
136
  } | undefined;
137
137
  submitter?: {
138
- id: number;
139
138
  name: string | null;
140
139
  email: string | null;
140
+ id: number;
141
141
  } | null | undefined;
142
142
  reviewer?: {
143
- id: number;
144
143
  name: string | null;
145
144
  email: string | null;
145
+ id: number;
146
146
  } | null | undefined;
147
147
  is_pending?: boolean | undefined;
148
148
  is_user_submitted?: boolean | undefined;
@@ -215,21 +215,21 @@ declare const SafetyReportCategorySchema: z.ZodObject<{
215
215
  created_at: z.ZodOptional<z.ZodString>;
216
216
  updated_at: z.ZodOptional<z.ZodString>;
217
217
  }, "strip", z.ZodTypeAny, {
218
- sort_order: number;
219
- id: number;
220
218
  name: string;
219
+ id: number;
221
220
  description: string | null;
222
221
  is_active: boolean;
222
+ sort_order: number;
223
223
  color: string;
224
224
  created_at?: string | undefined;
225
225
  updated_at?: string | undefined;
226
226
  is_global?: boolean | undefined;
227
227
  }, {
228
- sort_order: number;
229
- id: number;
230
228
  name: string;
229
+ id: number;
231
230
  description: string | null;
232
231
  is_active: boolean;
232
+ sort_order: number;
233
233
  color: string;
234
234
  created_at?: string | undefined;
235
235
  updated_at?: string | undefined;
@@ -244,15 +244,15 @@ declare const SafetyReportCategoryFormSchema: z.ZodObject<{
244
244
  is_active: z.ZodOptional<z.ZodBoolean>;
245
245
  }, "strip", z.ZodTypeAny, {
246
246
  name: string;
247
- sort_order?: number | undefined;
248
247
  description?: string | null | undefined;
249
248
  is_active?: boolean | undefined;
249
+ sort_order?: number | undefined;
250
250
  color?: string | null | undefined;
251
251
  }, {
252
252
  name: string;
253
- sort_order?: number | undefined;
254
253
  description?: string | null | undefined;
255
254
  is_active?: boolean | undefined;
255
+ sort_order?: number | undefined;
256
256
  color?: string | null | undefined;
257
257
  }>;
258
258
  type SafetyReportCategoryForm = z.infer<typeof SafetyReportCategoryFormSchema>;
@@ -294,21 +294,21 @@ declare const SafetyReportSchema: z.ZodObject<{
294
294
  created_at: z.ZodOptional<z.ZodString>;
295
295
  updated_at: z.ZodOptional<z.ZodString>;
296
296
  }, "strip", z.ZodTypeAny, {
297
- sort_order: number;
298
- id: number;
299
297
  name: string;
298
+ id: number;
300
299
  description: string | null;
301
300
  is_active: boolean;
301
+ sort_order: number;
302
302
  color: string;
303
303
  created_at?: string | undefined;
304
304
  updated_at?: string | undefined;
305
305
  is_global?: boolean | undefined;
306
306
  }, {
307
- sort_order: number;
308
- id: number;
309
307
  name: string;
308
+ id: number;
310
309
  description: string | null;
311
310
  is_active: boolean;
311
+ sort_order: number;
312
312
  color: string;
313
313
  created_at?: string | undefined;
314
314
  updated_at?: string | undefined;
@@ -338,8 +338,8 @@ declare const SafetyReportSchema: z.ZodObject<{
338
338
  updated_at: z.ZodString;
339
339
  can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
340
340
  }, "strip", z.ZodTypeAny, {
341
- id: number;
342
341
  status: "closed" | "new" | "under_review" | "action_taken";
342
+ id: number;
343
343
  created_at: string;
344
344
  updated_at: string;
345
345
  description: string;
@@ -348,11 +348,11 @@ declare const SafetyReportSchema: z.ZodObject<{
348
348
  location: string | null;
349
349
  can?: Record<string, boolean> | undefined;
350
350
  category?: {
351
- sort_order: number;
352
- id: number;
353
351
  name: string;
352
+ id: number;
354
353
  description: string | null;
355
354
  is_active: boolean;
355
+ sort_order: number;
356
356
  color: string;
357
357
  created_at?: string | undefined;
358
358
  updated_at?: string | undefined;
@@ -367,8 +367,8 @@ declare const SafetyReportSchema: z.ZodObject<{
367
367
  }[] | undefined;
368
368
  attachments_count?: number | undefined;
369
369
  }, {
370
- id: number;
371
370
  status: "closed" | "new" | "under_review" | "action_taken";
371
+ id: number;
372
372
  created_at: string;
373
373
  updated_at: string;
374
374
  description: string;
@@ -377,11 +377,11 @@ declare const SafetyReportSchema: z.ZodObject<{
377
377
  location: string | null;
378
378
  can?: Record<string, boolean> | undefined;
379
379
  category?: {
380
- sort_order: number;
381
- id: number;
382
380
  name: string;
381
+ id: number;
383
382
  description: string | null;
384
383
  is_active: boolean;
384
+ sort_order: number;
385
385
  color: string;
386
386
  created_at?: string | undefined;
387
387
  updated_at?: string | undefined;
@@ -416,21 +416,21 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
416
416
  created_at: z.ZodOptional<z.ZodString>;
417
417
  updated_at: z.ZodOptional<z.ZodString>;
418
418
  }, "strip", z.ZodTypeAny, {
419
- sort_order: number;
420
- id: number;
421
419
  name: string;
420
+ id: number;
422
421
  description: string | null;
423
422
  is_active: boolean;
423
+ sort_order: number;
424
424
  color: string;
425
425
  created_at?: string | undefined;
426
426
  updated_at?: string | undefined;
427
427
  is_global?: boolean | undefined;
428
428
  }, {
429
- sort_order: number;
430
- id: number;
431
429
  name: string;
430
+ id: number;
432
431
  description: string | null;
433
432
  is_active: boolean;
433
+ sort_order: number;
434
434
  color: string;
435
435
  created_at?: string | undefined;
436
436
  updated_at?: string | undefined;
@@ -460,8 +460,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
460
460
  updated_at: z.ZodString;
461
461
  can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
462
462
  }, "strip", z.ZodTypeAny, {
463
- id: number;
464
463
  status: "closed" | "new" | "under_review" | "action_taken";
464
+ id: number;
465
465
  created_at: string;
466
466
  updated_at: string;
467
467
  description: string;
@@ -470,11 +470,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
470
470
  location: string | null;
471
471
  can?: Record<string, boolean> | undefined;
472
472
  category?: {
473
- sort_order: number;
474
- id: number;
475
473
  name: string;
474
+ id: number;
476
475
  description: string | null;
477
476
  is_active: boolean;
477
+ sort_order: number;
478
478
  color: string;
479
479
  created_at?: string | undefined;
480
480
  updated_at?: string | undefined;
@@ -489,8 +489,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
489
489
  }[] | undefined;
490
490
  attachments_count?: number | undefined;
491
491
  }, {
492
- id: number;
493
492
  status: "closed" | "new" | "under_review" | "action_taken";
493
+ id: number;
494
494
  created_at: string;
495
495
  updated_at: string;
496
496
  description: string;
@@ -499,11 +499,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
499
499
  location: string | null;
500
500
  can?: Record<string, boolean> | undefined;
501
501
  category?: {
502
- sort_order: number;
503
- id: number;
504
502
  name: string;
503
+ id: number;
505
504
  description: string | null;
506
505
  is_active: boolean;
506
+ sort_order: number;
507
507
  color: string;
508
508
  created_at?: string | undefined;
509
509
  updated_at?: string | undefined;
@@ -558,8 +558,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
558
558
  }>>;
559
559
  }, "strip", z.ZodTypeAny, {
560
560
  data: {
561
- id: number;
562
561
  status: "closed" | "new" | "under_review" | "action_taken";
562
+ id: number;
563
563
  created_at: string;
564
564
  updated_at: string;
565
565
  description: string;
@@ -568,11 +568,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
568
568
  location: string | null;
569
569
  can?: Record<string, boolean> | undefined;
570
570
  category?: {
571
- sort_order: number;
572
- id: number;
573
571
  name: string;
572
+ id: number;
574
573
  description: string | null;
575
574
  is_active: boolean;
575
+ sort_order: number;
576
576
  color: string;
577
577
  created_at?: string | undefined;
578
578
  updated_at?: string | undefined;
@@ -603,8 +603,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
603
603
  } | undefined;
604
604
  }, {
605
605
  data: {
606
- id: number;
607
606
  status: "closed" | "new" | "under_review" | "action_taken";
607
+ id: number;
608
608
  created_at: string;
609
609
  updated_at: string;
610
610
  description: string;
@@ -613,11 +613,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
613
613
  location: string | null;
614
614
  can?: Record<string, boolean> | undefined;
615
615
  category?: {
616
- sort_order: number;
617
- id: number;
618
616
  name: string;
617
+ id: number;
619
618
  description: string | null;
620
619
  is_active: boolean;
620
+ sort_order: number;
621
621
  color: string;
622
622
  created_at?: string | undefined;
623
623
  updated_at?: string | undefined;
@@ -889,10 +889,10 @@ declare const courseMilestoneSchema: z.ZodObject<{
889
889
  delete?: boolean | null | undefined;
890
890
  }>>;
891
891
  }, "strip", z.ZodTypeAny, {
892
- sort_order: number;
893
- id: number;
894
892
  name: string;
893
+ id: number;
895
894
  kind: string;
895
+ sort_order: number;
896
896
  course_id: number;
897
897
  is_prerequisite: boolean;
898
898
  type?: "courseMilestone" | undefined;
@@ -910,10 +910,10 @@ declare const courseMilestoneSchema: z.ZodObject<{
910
910
  } | null | undefined;
911
911
  completion_rule?: Record<string, unknown> | null | undefined;
912
912
  }, {
913
- sort_order: number;
914
- id: number;
915
913
  name: string;
914
+ id: number;
916
915
  kind: string;
916
+ sort_order: number;
917
917
  course_id: number;
918
918
  is_prerequisite: boolean;
919
919
  type?: "courseMilestone" | undefined;
@@ -944,15 +944,15 @@ declare const CourseMilestoneFormSchema: z.ZodObject<{
944
944
  name: string;
945
945
  kind: string;
946
946
  is_prerequisite: boolean;
947
- sort_order?: number | undefined;
948
947
  description?: string | null | undefined;
948
+ sort_order?: number | undefined;
949
949
  requires_form_template_id?: number | null | undefined;
950
950
  completion_rule?: Record<string, unknown> | null | undefined;
951
951
  }, {
952
952
  name: string;
953
- sort_order?: number | undefined;
954
953
  description?: string | null | undefined;
955
954
  kind?: string | undefined;
955
+ sort_order?: number | undefined;
956
956
  is_prerequisite?: boolean | undefined;
957
957
  requires_form_template_id?: number | null | undefined;
958
958
  completion_rule?: Record<string, unknown> | null | undefined;
@@ -997,10 +997,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
997
997
  delete?: boolean | null | undefined;
998
998
  }>>;
999
999
  }, "strip", z.ZodTypeAny, {
1000
- sort_order: number;
1001
- id: number;
1002
1000
  name: string;
1001
+ id: number;
1003
1002
  kind: string;
1003
+ sort_order: number;
1004
1004
  course_id: number;
1005
1005
  is_prerequisite: boolean;
1006
1006
  type?: "courseMilestone" | undefined;
@@ -1018,10 +1018,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1018
1018
  } | null | undefined;
1019
1019
  completion_rule?: Record<string, unknown> | null | undefined;
1020
1020
  }, {
1021
- sort_order: number;
1022
- id: number;
1023
1021
  name: string;
1022
+ id: number;
1024
1023
  kind: string;
1024
+ sort_order: number;
1025
1025
  course_id: number;
1026
1026
  is_prerequisite: boolean;
1027
1027
  type?: "courseMilestone" | undefined;
@@ -1087,10 +1087,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1087
1087
  } | undefined;
1088
1088
  notes?: string | null | undefined;
1089
1089
  milestone?: {
1090
- sort_order: number;
1091
- id: number;
1092
1090
  name: string;
1091
+ id: number;
1093
1092
  kind: string;
1093
+ sort_order: number;
1094
1094
  course_id: number;
1095
1095
  is_prerequisite: boolean;
1096
1096
  type?: "courseMilestone" | undefined;
@@ -1129,10 +1129,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1129
1129
  } | undefined;
1130
1130
  notes?: string | null | undefined;
1131
1131
  milestone?: {
1132
- sort_order: number;
1133
- id: number;
1134
1132
  name: string;
1133
+ id: number;
1135
1134
  kind: string;
1135
+ sort_order: number;
1136
1136
  course_id: number;
1137
1137
  is_prerequisite: boolean;
1138
1138
  type?: "courseMilestone" | undefined;
@@ -1172,14 +1172,14 @@ declare const equipmentSchema: z.ZodObject<{
1172
1172
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1173
1173
  manual_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1174
1174
  }, "strip", z.ZodTypeAny, {
1175
- id: number;
1176
1175
  name: string;
1176
+ id: number;
1177
1177
  type?: "equipment" | undefined;
1178
1178
  description?: string | null | undefined;
1179
1179
  manual_url?: string | null | undefined;
1180
1180
  }, {
1181
- id: number;
1182
1181
  name: string;
1182
+ id: number;
1183
1183
  type?: "equipment" | undefined;
1184
1184
  description?: string | null | undefined;
1185
1185
  manual_url?: string | null | undefined;
@@ -1375,11 +1375,11 @@ declare const NewsletterCategorySchema: z.ZodObject<{
1375
1375
  created_at: z.ZodOptional<z.ZodString>;
1376
1376
  updated_at: z.ZodOptional<z.ZodString>;
1377
1377
  }, "strip", z.ZodTypeAny, {
1378
- sort_order: number;
1379
- id: number;
1380
1378
  name: string;
1379
+ id: number;
1381
1380
  key: string;
1382
1381
  is_active: boolean;
1382
+ sort_order: number;
1383
1383
  is_mandatory: boolean;
1384
1384
  type?: "newsletter_category" | undefined;
1385
1385
  created_at?: string | undefined;
@@ -1388,11 +1388,11 @@ declare const NewsletterCategorySchema: z.ZodObject<{
1388
1388
  default_opt_in?: boolean | undefined;
1389
1389
  is_internal?: boolean | undefined;
1390
1390
  }, {
1391
- sort_order: number;
1392
- id: number;
1393
1391
  name: string;
1392
+ id: number;
1394
1393
  key: string;
1395
1394
  is_active: boolean;
1395
+ sort_order: number;
1396
1396
  is_mandatory: boolean;
1397
1397
  type?: "newsletter_category" | undefined;
1398
1398
  created_at?: string | undefined;
@@ -1550,11 +1550,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1550
1550
  created_at: z.ZodOptional<z.ZodString>;
1551
1551
  updated_at: z.ZodOptional<z.ZodString>;
1552
1552
  }, "strip", z.ZodTypeAny, {
1553
- sort_order: number;
1554
- id: number;
1555
1553
  name: string;
1554
+ id: number;
1556
1555
  key: string;
1557
1556
  is_active: boolean;
1557
+ sort_order: number;
1558
1558
  is_mandatory: boolean;
1559
1559
  type?: "newsletter_category" | undefined;
1560
1560
  created_at?: string | undefined;
@@ -1563,11 +1563,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1563
1563
  default_opt_in?: boolean | undefined;
1564
1564
  is_internal?: boolean | undefined;
1565
1565
  }, {
1566
- sort_order: number;
1567
- id: number;
1568
1566
  name: string;
1567
+ id: number;
1569
1568
  key: string;
1570
1569
  is_active: boolean;
1570
+ sort_order: number;
1571
1571
  is_mandatory: boolean;
1572
1572
  type?: "newsletter_category" | undefined;
1573
1573
  created_at?: string | undefined;
@@ -1714,12 +1714,12 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1714
1714
  name: z.ZodString;
1715
1715
  email: z.ZodOptional<z.ZodString>;
1716
1716
  }, "strip", z.ZodTypeAny, {
1717
- id: number;
1718
1717
  name: string;
1718
+ id: number;
1719
1719
  email?: string | undefined;
1720
1720
  }, {
1721
- id: number;
1722
1721
  name: string;
1722
+ id: number;
1723
1723
  email?: string | undefined;
1724
1724
  }>>>;
1725
1725
  can: z.ZodOptional<z.ZodObject<{
@@ -1738,8 +1738,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1738
1738
  created_at: z.ZodOptional<z.ZodString>;
1739
1739
  updated_at: z.ZodOptional<z.ZodString>;
1740
1740
  }, "strip", z.ZodTypeAny, {
1741
- id: number;
1742
1741
  name: string;
1742
+ id: number;
1743
1743
  is_active: boolean;
1744
1744
  company_id: number | null;
1745
1745
  schema_version: number;
@@ -1783,11 +1783,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1783
1783
  duplicate?: boolean | undefined;
1784
1784
  } | undefined;
1785
1785
  category?: {
1786
- sort_order: number;
1787
- id: number;
1788
1786
  name: string;
1787
+ id: number;
1789
1788
  key: string;
1790
1789
  is_active: boolean;
1790
+ sort_order: number;
1791
1791
  is_mandatory: boolean;
1792
1792
  type?: "newsletter_category" | undefined;
1793
1793
  created_at?: string | undefined;
@@ -1799,14 +1799,14 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1799
1799
  created_by?: number | null | undefined;
1800
1800
  is_system?: boolean | undefined;
1801
1801
  creator?: {
1802
- id: number;
1803
1802
  name: string;
1803
+ id: number;
1804
1804
  email?: string | undefined;
1805
1805
  } | null | undefined;
1806
1806
  preheader?: string | null | undefined;
1807
1807
  }, {
1808
- id: number;
1809
1808
  name: string;
1809
+ id: number;
1810
1810
  is_active: boolean;
1811
1811
  company_id: number | null;
1812
1812
  schema_version: number;
@@ -1850,11 +1850,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1850
1850
  duplicate?: boolean | undefined;
1851
1851
  } | undefined;
1852
1852
  category?: {
1853
- sort_order: number;
1854
- id: number;
1855
1853
  name: string;
1854
+ id: number;
1856
1855
  key: string;
1857
1856
  is_active: boolean;
1857
+ sort_order: number;
1858
1858
  is_mandatory: boolean;
1859
1859
  type?: "newsletter_category" | undefined;
1860
1860
  created_at?: string | undefined;
@@ -1866,8 +1866,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1866
1866
  created_by?: number | null | undefined;
1867
1867
  is_system?: boolean | undefined;
1868
1868
  creator?: {
1869
- id: number;
1870
1869
  name: string;
1870
+ id: number;
1871
1871
  email?: string | undefined;
1872
1872
  } | null | undefined;
1873
1873
  preheader?: string | null | undefined;
@@ -2250,11 +2250,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2250
2250
  created_at: z.ZodOptional<z.ZodString>;
2251
2251
  updated_at: z.ZodOptional<z.ZodString>;
2252
2252
  }, "strip", z.ZodTypeAny, {
2253
- sort_order: number;
2254
- id: number;
2255
2253
  name: string;
2254
+ id: number;
2256
2255
  key: string;
2257
2256
  is_active: boolean;
2257
+ sort_order: number;
2258
2258
  is_mandatory: boolean;
2259
2259
  type?: "newsletter_category" | undefined;
2260
2260
  created_at?: string | undefined;
@@ -2263,11 +2263,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2263
2263
  default_opt_in?: boolean | undefined;
2264
2264
  is_internal?: boolean | undefined;
2265
2265
  }, {
2266
- sort_order: number;
2267
- id: number;
2268
2266
  name: string;
2267
+ id: number;
2269
2268
  key: string;
2270
2269
  is_active: boolean;
2270
+ sort_order: number;
2271
2271
  is_mandatory: boolean;
2272
2272
  type?: "newsletter_category" | undefined;
2273
2273
  created_at?: string | undefined;
@@ -2414,12 +2414,12 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2414
2414
  name: z.ZodString;
2415
2415
  email: z.ZodOptional<z.ZodString>;
2416
2416
  }, "strip", z.ZodTypeAny, {
2417
- id: number;
2418
2417
  name: string;
2418
+ id: number;
2419
2419
  email?: string | undefined;
2420
2420
  }, {
2421
- id: number;
2422
2421
  name: string;
2422
+ id: number;
2423
2423
  email?: string | undefined;
2424
2424
  }>>>>;
2425
2425
  can: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -2438,9 +2438,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2438
2438
  created_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2439
2439
  updated_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2440
2440
  }, "strip", z.ZodTypeAny, {
2441
- id?: number | undefined;
2442
2441
  name?: string | undefined;
2443
2442
  type?: "newsletter_template" | undefined;
2443
+ id?: number | undefined;
2444
2444
  created_at?: string | undefined;
2445
2445
  updated_at?: string | undefined;
2446
2446
  description?: string | null | undefined;
@@ -2453,11 +2453,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2453
2453
  company_id?: number | null | undefined;
2454
2454
  schema_version?: number | undefined;
2455
2455
  category?: {
2456
- sort_order: number;
2457
- id: number;
2458
2456
  name: string;
2457
+ id: number;
2459
2458
  key: string;
2460
2459
  is_active: boolean;
2460
+ sort_order: number;
2461
2461
  is_mandatory: boolean;
2462
2462
  type?: "newsletter_category" | undefined;
2463
2463
  created_at?: string | undefined;
@@ -2497,17 +2497,17 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2497
2497
  } | undefined;
2498
2498
  is_system?: boolean | undefined;
2499
2499
  creator?: {
2500
- id: number;
2501
2500
  name: string;
2501
+ id: number;
2502
2502
  email?: string | undefined;
2503
2503
  } | null | undefined;
2504
2504
  newsletter_category_id?: number | undefined;
2505
2505
  subject?: string | undefined;
2506
2506
  preheader?: string | null | undefined;
2507
2507
  }, {
2508
- id?: number | undefined;
2509
2508
  name?: string | undefined;
2510
2509
  type?: "newsletter_template" | undefined;
2510
+ id?: number | undefined;
2511
2511
  created_at?: string | undefined;
2512
2512
  updated_at?: string | undefined;
2513
2513
  description?: string | null | undefined;
@@ -2520,11 +2520,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2520
2520
  company_id?: number | null | undefined;
2521
2521
  schema_version?: number | undefined;
2522
2522
  category?: {
2523
- sort_order: number;
2524
- id: number;
2525
2523
  name: string;
2524
+ id: number;
2526
2525
  key: string;
2527
2526
  is_active: boolean;
2527
+ sort_order: number;
2528
2528
  is_mandatory: boolean;
2529
2529
  type?: "newsletter_category" | undefined;
2530
2530
  created_at?: string | undefined;
@@ -2564,8 +2564,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2564
2564
  } | undefined;
2565
2565
  is_system?: boolean | undefined;
2566
2566
  creator?: {
2567
- id: number;
2568
2567
  name: string;
2568
+ id: number;
2569
2569
  email?: string | undefined;
2570
2570
  } | null | undefined;
2571
2571
  newsletter_category_id?: number | undefined;
@@ -2589,11 +2589,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2589
2589
  created_at: z.ZodOptional<z.ZodString>;
2590
2590
  updated_at: z.ZodOptional<z.ZodString>;
2591
2591
  }, "strip", z.ZodTypeAny, {
2592
- sort_order: number;
2593
- id: number;
2594
2592
  name: string;
2593
+ id: number;
2595
2594
  key: string;
2596
2595
  is_active: boolean;
2596
+ sort_order: number;
2597
2597
  is_mandatory: boolean;
2598
2598
  type?: "newsletter_category" | undefined;
2599
2599
  created_at?: string | undefined;
@@ -2602,11 +2602,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2602
2602
  default_opt_in?: boolean | undefined;
2603
2603
  is_internal?: boolean | undefined;
2604
2604
  }, {
2605
- sort_order: number;
2606
- id: number;
2607
2605
  name: string;
2606
+ id: number;
2608
2607
  key: string;
2609
2608
  is_active: boolean;
2609
+ sort_order: number;
2610
2610
  is_mandatory: boolean;
2611
2611
  type?: "newsletter_category" | undefined;
2612
2612
  created_at?: string | undefined;
@@ -2842,12 +2842,12 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2842
2842
  name: z.ZodString;
2843
2843
  email: z.ZodOptional<z.ZodString>;
2844
2844
  }, "strip", z.ZodTypeAny, {
2845
- id: number;
2846
2845
  name: string;
2846
+ id: number;
2847
2847
  email?: string | undefined;
2848
2848
  }, {
2849
- id: number;
2850
2849
  name: string;
2850
+ id: number;
2851
2851
  email?: string | undefined;
2852
2852
  }>>>;
2853
2853
  can: z.ZodOptional<z.ZodObject<{
@@ -2875,9 +2875,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2875
2875
  created_at: z.ZodOptional<z.ZodString>;
2876
2876
  updated_at: z.ZodOptional<z.ZodString>;
2877
2877
  }, "strip", z.ZodTypeAny, {
2878
- id: number;
2879
2878
  name: string;
2880
2879
  status: NewsletterCampaignStatus;
2880
+ id: number;
2881
2881
  company_id: number | null;
2882
2882
  schema_snapshot: {
2883
2883
  blocks: ({
@@ -2945,11 +2945,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2945
2945
  test_send?: boolean | undefined;
2946
2946
  } | undefined;
2947
2947
  category?: {
2948
- sort_order: number;
2949
- id: number;
2950
2948
  name: string;
2949
+ id: number;
2951
2950
  key: string;
2952
2951
  is_active: boolean;
2952
+ sort_order: number;
2953
2953
  is_mandatory: boolean;
2954
2954
  type?: "newsletter_category" | undefined;
2955
2955
  created_at?: string | undefined;
@@ -2961,9 +2961,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2961
2961
  scheduled_at?: string | null | undefined;
2962
2962
  is_system?: boolean | undefined;
2963
2963
  template?: {
2964
- id?: number | undefined;
2965
2964
  name?: string | undefined;
2966
2965
  type?: "newsletter_template" | undefined;
2966
+ id?: number | undefined;
2967
2967
  created_at?: string | undefined;
2968
2968
  updated_at?: string | undefined;
2969
2969
  description?: string | null | undefined;
@@ -2976,11 +2976,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2976
2976
  company_id?: number | null | undefined;
2977
2977
  schema_version?: number | undefined;
2978
2978
  category?: {
2979
- sort_order: number;
2980
- id: number;
2981
2979
  name: string;
2980
+ id: number;
2982
2981
  key: string;
2983
2982
  is_active: boolean;
2983
+ sort_order: number;
2984
2984
  is_mandatory: boolean;
2985
2985
  type?: "newsletter_category" | undefined;
2986
2986
  created_at?: string | undefined;
@@ -3020,8 +3020,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3020
3020
  } | undefined;
3021
3021
  is_system?: boolean | undefined;
3022
3022
  creator?: {
3023
- id: number;
3024
3023
  name: string;
3024
+ id: number;
3025
3025
  email?: string | undefined;
3026
3026
  } | null | undefined;
3027
3027
  newsletter_category_id?: number | undefined;
@@ -3034,14 +3034,14 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3034
3034
  cancelled_at?: string | null | undefined;
3035
3035
  sent_by_user_id?: number | null | undefined;
3036
3036
  sent_by?: {
3037
- id: number;
3038
3037
  name: string;
3038
+ id: number;
3039
3039
  email?: string | undefined;
3040
3040
  } | null | undefined;
3041
3041
  }, {
3042
- id: number;
3043
3042
  name: string;
3044
3043
  status: NewsletterCampaignStatus;
3044
+ id: number;
3045
3045
  company_id: number | null;
3046
3046
  schema_snapshot: {
3047
3047
  blocks: ({
@@ -3109,11 +3109,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3109
3109
  test_send?: boolean | undefined;
3110
3110
  } | undefined;
3111
3111
  category?: {
3112
- sort_order: number;
3113
- id: number;
3114
3112
  name: string;
3113
+ id: number;
3115
3114
  key: string;
3116
3115
  is_active: boolean;
3116
+ sort_order: number;
3117
3117
  is_mandatory: boolean;
3118
3118
  type?: "newsletter_category" | undefined;
3119
3119
  created_at?: string | undefined;
@@ -3125,9 +3125,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3125
3125
  scheduled_at?: string | null | undefined;
3126
3126
  is_system?: boolean | undefined;
3127
3127
  template?: {
3128
- id?: number | undefined;
3129
3128
  name?: string | undefined;
3130
3129
  type?: "newsletter_template" | undefined;
3130
+ id?: number | undefined;
3131
3131
  created_at?: string | undefined;
3132
3132
  updated_at?: string | undefined;
3133
3133
  description?: string | null | undefined;
@@ -3140,11 +3140,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3140
3140
  company_id?: number | null | undefined;
3141
3141
  schema_version?: number | undefined;
3142
3142
  category?: {
3143
- sort_order: number;
3144
- id: number;
3145
3143
  name: string;
3144
+ id: number;
3146
3145
  key: string;
3147
3146
  is_active: boolean;
3147
+ sort_order: number;
3148
3148
  is_mandatory: boolean;
3149
3149
  type?: "newsletter_category" | undefined;
3150
3150
  created_at?: string | undefined;
@@ -3184,8 +3184,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3184
3184
  } | undefined;
3185
3185
  is_system?: boolean | undefined;
3186
3186
  creator?: {
3187
- id: number;
3188
3187
  name: string;
3188
+ id: number;
3189
3189
  email?: string | undefined;
3190
3190
  } | null | undefined;
3191
3191
  newsletter_category_id?: number | undefined;
@@ -3198,8 +3198,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3198
3198
  cancelled_at?: string | null | undefined;
3199
3199
  sent_by_user_id?: number | null | undefined;
3200
3200
  sent_by?: {
3201
- id: number;
3202
3201
  name: string;
3202
+ id: number;
3203
3203
  email?: string | undefined;
3204
3204
  } | null | undefined;
3205
3205
  }>;
@@ -3527,12 +3527,12 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3527
3527
  name: z.ZodString;
3528
3528
  email: z.ZodOptional<z.ZodString>;
3529
3529
  }, "strip", z.ZodTypeAny, {
3530
- id: number;
3531
3530
  name: string;
3531
+ id: number;
3532
3532
  email?: string | undefined;
3533
3533
  }, {
3534
- id: number;
3535
3534
  name: string;
3535
+ id: number;
3536
3536
  email?: string | undefined;
3537
3537
  }>>>;
3538
3538
  email: z.ZodString;
@@ -3544,15 +3544,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3544
3544
  bounced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3545
3545
  complained_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3546
3546
  }, "strip", z.ZodTypeAny, {
3547
- id: number;
3548
3547
  email: string;
3549
3548
  status: NewsletterRecipientStatus;
3549
+ id: number;
3550
3550
  user_id: number | null;
3551
3551
  newsletter_campaign_id: number;
3552
3552
  type?: "newsletter_campaign_recipient" | undefined;
3553
3553
  user?: {
3554
- id: number;
3555
3554
  name: string;
3555
+ id: number;
3556
3556
  email?: string | undefined;
3557
3557
  } | null | undefined;
3558
3558
  error?: string | null | undefined;
@@ -3562,15 +3562,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3562
3562
  bounced_at?: string | null | undefined;
3563
3563
  complained_at?: string | null | undefined;
3564
3564
  }, {
3565
- id: number;
3566
3565
  email: string;
3567
3566
  status: NewsletterRecipientStatus;
3567
+ id: number;
3568
3568
  user_id: number | null;
3569
3569
  newsletter_campaign_id: number;
3570
3570
  type?: "newsletter_campaign_recipient" | undefined;
3571
3571
  user?: {
3572
- id: number;
3573
3572
  name: string;
3573
+ id: number;
3574
3574
  email?: string | undefined;
3575
3575
  } | null | undefined;
3576
3576
  error?: string | null | undefined;
@@ -4017,8 +4017,8 @@ declare const TodoSchema: z.ZodObject<{
4017
4017
  }>;
4018
4018
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4019
4019
  }, "strip", z.ZodTypeAny, {
4020
- title: string;
4021
4020
  key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record" | "handle_ticket";
4021
+ title: string;
4022
4022
  priority: "critical" | "high" | "normal" | "low";
4023
4023
  is_overdue: boolean;
4024
4024
  ref_type: string;
@@ -4033,8 +4033,8 @@ declare const TodoSchema: z.ZodObject<{
4033
4033
  due_date?: string | null | undefined;
4034
4034
  subtitle?: string | null | undefined;
4035
4035
  }, {
4036
- title: string;
4037
4036
  key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record" | "handle_ticket";
4037
+ title: string;
4038
4038
  ref_type: string;
4039
4039
  ref_id: number;
4040
4040
  action: {
@@ -4372,8 +4372,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4372
4372
  prefill_source?: string | undefined;
4373
4373
  }>, "many">;
4374
4374
  }, "strip", z.ZodTypeAny, {
4375
- title: string;
4376
4375
  key: string;
4376
+ title: string;
4377
4377
  order: number;
4378
4378
  fields: {
4379
4379
  type: FormFieldType;
@@ -4404,8 +4404,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4404
4404
  prefill_source?: string | undefined;
4405
4405
  }[];
4406
4406
  }, {
4407
- title: string;
4408
4407
  key: string;
4408
+ title: string;
4409
4409
  order: number;
4410
4410
  fields: {
4411
4411
  type: FormFieldType;
@@ -4438,8 +4438,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4438
4438
  }>, "many">;
4439
4439
  }, "strip", z.ZodTypeAny, {
4440
4440
  sections: {
4441
- title: string;
4442
4441
  key: string;
4442
+ title: string;
4443
4443
  order: number;
4444
4444
  fields: {
4445
4445
  type: FormFieldType;
@@ -4472,8 +4472,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4472
4472
  }[];
4473
4473
  }, {
4474
4474
  sections: {
4475
- title: string;
4476
4475
  key: string;
4476
+ title: string;
4477
4477
  order: number;
4478
4478
  fields: {
4479
4479
  type: FormFieldType;
@@ -4513,15 +4513,15 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4513
4513
  name: z.ZodNullable<z.ZodString>;
4514
4514
  email: z.ZodNullable<z.ZodString>;
4515
4515
  }, "strip", z.ZodTypeAny, {
4516
- id: number;
4517
4516
  name: string | null;
4518
4517
  email: string | null;
4519
4518
  type: string;
4520
- }, {
4521
4519
  id: number;
4520
+ }, {
4522
4521
  name: string | null;
4523
4522
  email: string | null;
4524
4523
  type: string;
4524
+ id: number;
4525
4525
  }>>>;
4526
4526
  submitted_by: z.ZodNumber;
4527
4527
  data: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -4556,8 +4556,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4556
4556
  created_at: z.ZodOptional<z.ZodString>;
4557
4557
  updated_at: z.ZodOptional<z.ZodString>;
4558
4558
  }, "strip", z.ZodTypeAny, {
4559
- id: number;
4560
4559
  status: "signed" | "pending" | "revoked";
4560
+ id: number;
4561
4561
  field_key: string;
4562
4562
  required_signer_membership_id: number | null;
4563
4563
  signed_by_user_id: number | null;
@@ -4584,8 +4584,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4584
4584
  required_signer_permission?: string | null | undefined;
4585
4585
  signed_by_name?: string | null | undefined;
4586
4586
  }, {
4587
- id: number;
4588
4587
  status: "signed" | "pending" | "revoked";
4588
+ id: number;
4589
4589
  field_key: string;
4590
4590
  required_signer_membership_id: number | null;
4591
4591
  signed_by_user_id: number | null;
@@ -4774,8 +4774,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4774
4774
  prefill_source?: string | undefined;
4775
4775
  }>, "many">;
4776
4776
  }, "strip", z.ZodTypeAny, {
4777
- title: string;
4778
4777
  key: string;
4778
+ title: string;
4779
4779
  order: number;
4780
4780
  fields: {
4781
4781
  type: FormFieldType;
@@ -4806,8 +4806,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4806
4806
  prefill_source?: string | undefined;
4807
4807
  }[];
4808
4808
  }, {
4809
- title: string;
4810
4809
  key: string;
4810
+ title: string;
4811
4811
  order: number;
4812
4812
  fields: {
4813
4813
  type: FormFieldType;
@@ -4840,8 +4840,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4840
4840
  }>, "many">;
4841
4841
  }, "strip", z.ZodTypeAny, {
4842
4842
  sections: {
4843
- title: string;
4844
4843
  key: string;
4844
+ title: string;
4845
4845
  order: number;
4846
4846
  fields: {
4847
4847
  type: FormFieldType;
@@ -4874,8 +4874,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4874
4874
  }[];
4875
4875
  }, {
4876
4876
  sections: {
4877
- title: string;
4878
4877
  key: string;
4878
+ title: string;
4879
4879
  order: number;
4880
4880
  fields: {
4881
4881
  type: FormFieldType;
@@ -4926,21 +4926,21 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4926
4926
  name: z.ZodString;
4927
4927
  email: z.ZodOptional<z.ZodString>;
4928
4928
  }, "strip", z.ZodTypeAny, {
4929
- id: number;
4930
4929
  name: string;
4930
+ id: number;
4931
4931
  email?: string | undefined;
4932
4932
  }, {
4933
- id: number;
4934
4933
  name: string;
4934
+ id: number;
4935
4935
  email?: string | undefined;
4936
4936
  }>>>;
4937
4937
  assignments: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
4938
4938
  created_at: z.ZodString;
4939
4939
  updated_at: z.ZodString;
4940
4940
  }, "strip", z.ZodTypeAny, {
4941
- id: number;
4942
4941
  name: string;
4943
4942
  type: "form_template";
4943
+ id: number;
4944
4944
  created_at: string;
4945
4945
  updated_at: string;
4946
4946
  description: string | null;
@@ -4951,8 +4951,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4951
4951
  slug: string;
4952
4952
  schema: {
4953
4953
  sections: {
4954
- title: string;
4955
4954
  key: string;
4955
+ title: string;
4956
4956
  order: number;
4957
4957
  fields: {
4958
4958
  type: FormFieldType;
@@ -4996,15 +4996,15 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4996
4996
  applies_to?: string | null | undefined;
4997
4997
  default_notification_days?: number | null | undefined;
4998
4998
  creator?: {
4999
- id: number;
5000
4999
  name: string;
5000
+ id: number;
5001
5001
  email?: string | undefined;
5002
5002
  } | null | undefined;
5003
5003
  assignments?: any[] | undefined;
5004
5004
  }, {
5005
- id: number;
5006
5005
  name: string;
5007
5006
  type: "form_template";
5007
+ id: number;
5008
5008
  created_at: string;
5009
5009
  updated_at: string;
5010
5010
  description: string | null;
@@ -5015,8 +5015,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5015
5015
  slug: string;
5016
5016
  schema: {
5017
5017
  sections: {
5018
- title: string;
5019
5018
  key: string;
5019
+ title: string;
5020
5020
  order: number;
5021
5021
  fields: {
5022
5022
  type: FormFieldType;
@@ -5060,8 +5060,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5060
5060
  has_expiry?: boolean | undefined;
5061
5061
  default_notification_days?: number | null | undefined;
5062
5062
  creator?: {
5063
- id: number;
5064
5063
  name: string;
5064
+ id: number;
5065
5065
  email?: string | undefined;
5066
5066
  } | null | undefined;
5067
5067
  assignments?: any[] | undefined;
@@ -5071,12 +5071,12 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5071
5071
  name: z.ZodString;
5072
5072
  email: z.ZodOptional<z.ZodString>;
5073
5073
  }, "strip", z.ZodTypeAny, {
5074
- id: number;
5075
5074
  name: string;
5075
+ id: number;
5076
5076
  email?: string | undefined;
5077
5077
  }, {
5078
- id: number;
5079
5078
  name: string;
5079
+ id: number;
5080
5080
  email?: string | undefined;
5081
5081
  }>>>;
5082
5082
  reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -5084,12 +5084,12 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5084
5084
  name: z.ZodString;
5085
5085
  email: z.ZodOptional<z.ZodString>;
5086
5086
  }, "strip", z.ZodTypeAny, {
5087
- id: number;
5088
5087
  name: string;
5088
+ id: number;
5089
5089
  email?: string | undefined;
5090
5090
  }, {
5091
- id: number;
5092
5091
  name: string;
5092
+ id: number;
5093
5093
  email?: string | undefined;
5094
5094
  }>>>;
5095
5095
  requester: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -5097,12 +5097,12 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5097
5097
  name: z.ZodString;
5098
5098
  email: z.ZodOptional<z.ZodString>;
5099
5099
  }, "strip", z.ZodTypeAny, {
5100
- id: number;
5101
5100
  name: string;
5101
+ id: number;
5102
5102
  email?: string | undefined;
5103
5103
  }, {
5104
- id: number;
5105
5104
  name: string;
5105
+ id: number;
5106
5106
  email?: string | undefined;
5107
5107
  }>>>;
5108
5108
  shares: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -5115,11 +5115,11 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5115
5115
  id: z.ZodNumber;
5116
5116
  name: z.ZodString;
5117
5117
  }, "strip", z.ZodTypeAny, {
5118
- id: number;
5119
5118
  name: string;
5120
- }, {
5121
5119
  id: number;
5120
+ }, {
5122
5121
  name: string;
5122
+ id: number;
5123
5123
  }>>;
5124
5124
  created_at: z.ZodString;
5125
5125
  }, "strip", z.ZodTypeAny, {
@@ -5129,8 +5129,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5129
5129
  shared_by: number;
5130
5130
  form_submission_id: number;
5131
5131
  company?: {
5132
- id: number;
5133
5132
  name: string;
5133
+ id: number;
5134
5134
  } | undefined;
5135
5135
  type?: "form_submission_share" | undefined;
5136
5136
  }, {
@@ -5140,17 +5140,17 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5140
5140
  shared_by: number;
5141
5141
  form_submission_id: number;
5142
5142
  company?: {
5143
- id: number;
5144
5143
  name: string;
5144
+ id: number;
5145
5145
  } | undefined;
5146
5146
  type?: "form_submission_share" | undefined;
5147
5147
  }>, "many">>;
5148
5148
  created_at: z.ZodString;
5149
5149
  updated_at: z.ZodString;
5150
5150
  }, "strip", z.ZodTypeAny, {
5151
- id: number;
5152
5151
  type: "form_submission";
5153
5152
  status: FormSubmissionStatus;
5153
+ id: number;
5154
5154
  created_at: string;
5155
5155
  updated_at: string;
5156
5156
  can: Record<string, boolean | null>;
@@ -5162,8 +5162,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5162
5162
  reviewed_at: string | null;
5163
5163
  schema_snapshot: {
5164
5164
  sections: {
5165
- title: string;
5166
5165
  key: string;
5166
+ title: string;
5167
5167
  order: number;
5168
5168
  fields: {
5169
5169
  type: FormFieldType;
@@ -5211,8 +5211,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5211
5211
  is_expired: boolean;
5212
5212
  expires_at?: string | null | undefined;
5213
5213
  signatures?: {
5214
- id: number;
5215
5214
  status: "signed" | "pending" | "revoked";
5215
+ id: number;
5216
5216
  field_key: string;
5217
5217
  required_signer_membership_id: number | null;
5218
5218
  signed_by_user_id: number | null;
@@ -5241,9 +5241,9 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5241
5241
  }[] | undefined;
5242
5242
  note?: string | null | undefined;
5243
5243
  form_template?: {
5244
- id: number;
5245
5244
  name: string;
5246
5245
  type: "form_template";
5246
+ id: number;
5247
5247
  created_at: string;
5248
5248
  updated_at: string;
5249
5249
  description: string | null;
@@ -5254,8 +5254,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5254
5254
  slug: string;
5255
5255
  schema: {
5256
5256
  sections: {
5257
- title: string;
5258
5257
  key: string;
5258
+ title: string;
5259
5259
  order: number;
5260
5260
  fields: {
5261
5261
  type: FormFieldType;
@@ -5299,28 +5299,28 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5299
5299
  applies_to?: string | null | undefined;
5300
5300
  default_notification_days?: number | null | undefined;
5301
5301
  creator?: {
5302
- id: number;
5303
5302
  name: string;
5303
+ id: number;
5304
5304
  email?: string | undefined;
5305
5305
  } | null | undefined;
5306
5306
  assignments?: any[] | undefined;
5307
5307
  } | undefined;
5308
5308
  due_date?: string | null | undefined;
5309
5309
  submitter?: {
5310
- id: number;
5311
5310
  name: string;
5311
+ id: number;
5312
5312
  email?: string | undefined;
5313
5313
  } | null | undefined;
5314
5314
  reviewer?: {
5315
- id: number;
5316
5315
  name: string;
5316
+ id: number;
5317
5317
  email?: string | undefined;
5318
5318
  } | null | undefined;
5319
5319
  submittable_summary?: {
5320
- id: number;
5321
5320
  name: string | null;
5322
5321
  email: string | null;
5323
5322
  type: string;
5323
+ id: number;
5324
5324
  } | null | undefined;
5325
5325
  required_signers?: Record<string, number> | null | undefined;
5326
5326
  requested_by_user_id?: number | null | undefined;
@@ -5335,8 +5335,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5335
5335
  mime_type?: string | null | undefined;
5336
5336
  } | null> | undefined;
5337
5337
  requester?: {
5338
- id: number;
5339
5338
  name: string;
5339
+ id: number;
5340
5340
  email?: string | undefined;
5341
5341
  } | null | undefined;
5342
5342
  shares?: {
@@ -5346,15 +5346,15 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5346
5346
  shared_by: number;
5347
5347
  form_submission_id: number;
5348
5348
  company?: {
5349
- id: number;
5350
5349
  name: string;
5350
+ id: number;
5351
5351
  } | undefined;
5352
5352
  type?: "form_submission_share" | undefined;
5353
5353
  }[] | undefined;
5354
5354
  }, {
5355
- id: number;
5356
5355
  type: "form_submission";
5357
5356
  status: FormSubmissionStatus;
5357
+ id: number;
5358
5358
  created_at: string;
5359
5359
  updated_at: string;
5360
5360
  schema_version: number;
@@ -5365,8 +5365,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5365
5365
  reviewed_at: string | null;
5366
5366
  schema_snapshot: {
5367
5367
  sections: {
5368
- title: string;
5369
5368
  key: string;
5369
+ title: string;
5370
5370
  order: number;
5371
5371
  fields: {
5372
5372
  type: FormFieldType;
@@ -5405,8 +5405,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5405
5405
  expires_at?: string | null | undefined;
5406
5406
  can?: Record<string, boolean | null> | undefined;
5407
5407
  signatures?: {
5408
- id: number;
5409
5408
  status: "signed" | "pending" | "revoked";
5409
+ id: number;
5410
5410
  field_key: string;
5411
5411
  required_signer_membership_id: number | null;
5412
5412
  signed_by_user_id: number | null;
@@ -5435,9 +5435,9 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5435
5435
  }[] | undefined;
5436
5436
  note?: string | null | undefined;
5437
5437
  form_template?: {
5438
- id: number;
5439
5438
  name: string;
5440
5439
  type: "form_template";
5440
+ id: number;
5441
5441
  created_at: string;
5442
5442
  updated_at: string;
5443
5443
  description: string | null;
@@ -5448,8 +5448,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5448
5448
  slug: string;
5449
5449
  schema: {
5450
5450
  sections: {
5451
- title: string;
5452
5451
  key: string;
5452
+ title: string;
5453
5453
  order: number;
5454
5454
  fields: {
5455
5455
  type: FormFieldType;
@@ -5493,28 +5493,28 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5493
5493
  has_expiry?: boolean | undefined;
5494
5494
  default_notification_days?: number | null | undefined;
5495
5495
  creator?: {
5496
- id: number;
5497
5496
  name: string;
5497
+ id: number;
5498
5498
  email?: string | undefined;
5499
5499
  } | null | undefined;
5500
5500
  assignments?: any[] | undefined;
5501
5501
  } | undefined;
5502
5502
  due_date?: string | null | undefined;
5503
5503
  submitter?: {
5504
- id: number;
5505
5504
  name: string;
5505
+ id: number;
5506
5506
  email?: string | undefined;
5507
5507
  } | null | undefined;
5508
5508
  reviewer?: {
5509
- id: number;
5510
5509
  name: string;
5510
+ id: number;
5511
5511
  email?: string | undefined;
5512
5512
  } | null | undefined;
5513
5513
  submittable_summary?: {
5514
- id: number;
5515
5514
  name: string | null;
5516
5515
  email: string | null;
5517
5516
  type: string;
5517
+ id: number;
5518
5518
  } | null | undefined;
5519
5519
  data_resolved_names?: Record<string, string> | undefined;
5520
5520
  required_signers?: Record<string, number> | null | undefined;
@@ -5539,8 +5539,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5539
5539
  mime_type?: string | null | undefined;
5540
5540
  } | null> | undefined;
5541
5541
  requester?: {
5542
- id: number;
5543
5542
  name: string;
5543
+ id: number;
5544
5544
  email?: string | undefined;
5545
5545
  } | null | undefined;
5546
5546
  shares?: {
@@ -5550,8 +5550,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5550
5550
  shared_by: number;
5551
5551
  form_submission_id: number;
5552
5552
  company?: {
5553
- id: number;
5554
5553
  name: string;
5554
+ id: number;
5555
5555
  } | undefined;
5556
5556
  type?: "form_submission_share" | undefined;
5557
5557
  }[] | undefined;
@@ -5565,9 +5565,9 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5565
5565
  }>;
5566
5566
  }, "strip", z.ZodTypeAny, {
5567
5567
  data: {
5568
- id: number;
5569
5568
  type: "form_submission";
5570
5569
  status: FormSubmissionStatus;
5570
+ id: number;
5571
5571
  created_at: string;
5572
5572
  updated_at: string;
5573
5573
  can: Record<string, boolean | null>;
@@ -5579,8 +5579,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5579
5579
  reviewed_at: string | null;
5580
5580
  schema_snapshot: {
5581
5581
  sections: {
5582
- title: string;
5583
5582
  key: string;
5583
+ title: string;
5584
5584
  order: number;
5585
5585
  fields: {
5586
5586
  type: FormFieldType;
@@ -5628,8 +5628,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5628
5628
  is_expired: boolean;
5629
5629
  expires_at?: string | null | undefined;
5630
5630
  signatures?: {
5631
- id: number;
5632
5631
  status: "signed" | "pending" | "revoked";
5632
+ id: number;
5633
5633
  field_key: string;
5634
5634
  required_signer_membership_id: number | null;
5635
5635
  signed_by_user_id: number | null;
@@ -5658,9 +5658,9 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5658
5658
  }[] | undefined;
5659
5659
  note?: string | null | undefined;
5660
5660
  form_template?: {
5661
- id: number;
5662
5661
  name: string;
5663
5662
  type: "form_template";
5663
+ id: number;
5664
5664
  created_at: string;
5665
5665
  updated_at: string;
5666
5666
  description: string | null;
@@ -5671,8 +5671,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5671
5671
  slug: string;
5672
5672
  schema: {
5673
5673
  sections: {
5674
- title: string;
5675
5674
  key: string;
5675
+ title: string;
5676
5676
  order: number;
5677
5677
  fields: {
5678
5678
  type: FormFieldType;
@@ -5716,28 +5716,28 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5716
5716
  applies_to?: string | null | undefined;
5717
5717
  default_notification_days?: number | null | undefined;
5718
5718
  creator?: {
5719
- id: number;
5720
5719
  name: string;
5720
+ id: number;
5721
5721
  email?: string | undefined;
5722
5722
  } | null | undefined;
5723
5723
  assignments?: any[] | undefined;
5724
5724
  } | undefined;
5725
5725
  due_date?: string | null | undefined;
5726
5726
  submitter?: {
5727
- id: number;
5728
5727
  name: string;
5728
+ id: number;
5729
5729
  email?: string | undefined;
5730
5730
  } | null | undefined;
5731
5731
  reviewer?: {
5732
- id: number;
5733
5732
  name: string;
5733
+ id: number;
5734
5734
  email?: string | undefined;
5735
5735
  } | null | undefined;
5736
5736
  submittable_summary?: {
5737
- id: number;
5738
5737
  name: string | null;
5739
5738
  email: string | null;
5740
5739
  type: string;
5740
+ id: number;
5741
5741
  } | null | undefined;
5742
5742
  required_signers?: Record<string, number> | null | undefined;
5743
5743
  requested_by_user_id?: number | null | undefined;
@@ -5752,8 +5752,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5752
5752
  mime_type?: string | null | undefined;
5753
5753
  } | null> | undefined;
5754
5754
  requester?: {
5755
- id: number;
5756
5755
  name: string;
5756
+ id: number;
5757
5757
  email?: string | undefined;
5758
5758
  } | null | undefined;
5759
5759
  shares?: {
@@ -5763,8 +5763,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5763
5763
  shared_by: number;
5764
5764
  form_submission_id: number;
5765
5765
  company?: {
5766
- id: number;
5767
5766
  name: string;
5767
+ id: number;
5768
5768
  } | undefined;
5769
5769
  type?: "form_submission_share" | undefined;
5770
5770
  }[] | undefined;
@@ -5774,9 +5774,9 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5774
5774
  };
5775
5775
  }, {
5776
5776
  data: {
5777
- id: number;
5778
5777
  type: "form_submission";
5779
5778
  status: FormSubmissionStatus;
5779
+ id: number;
5780
5780
  created_at: string;
5781
5781
  updated_at: string;
5782
5782
  schema_version: number;
@@ -5787,8 +5787,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5787
5787
  reviewed_at: string | null;
5788
5788
  schema_snapshot: {
5789
5789
  sections: {
5790
- title: string;
5791
5790
  key: string;
5791
+ title: string;
5792
5792
  order: number;
5793
5793
  fields: {
5794
5794
  type: FormFieldType;
@@ -5827,8 +5827,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5827
5827
  expires_at?: string | null | undefined;
5828
5828
  can?: Record<string, boolean | null> | undefined;
5829
5829
  signatures?: {
5830
- id: number;
5831
5830
  status: "signed" | "pending" | "revoked";
5831
+ id: number;
5832
5832
  field_key: string;
5833
5833
  required_signer_membership_id: number | null;
5834
5834
  signed_by_user_id: number | null;
@@ -5857,9 +5857,9 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5857
5857
  }[] | undefined;
5858
5858
  note?: string | null | undefined;
5859
5859
  form_template?: {
5860
- id: number;
5861
5860
  name: string;
5862
5861
  type: "form_template";
5862
+ id: number;
5863
5863
  created_at: string;
5864
5864
  updated_at: string;
5865
5865
  description: string | null;
@@ -5870,8 +5870,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5870
5870
  slug: string;
5871
5871
  schema: {
5872
5872
  sections: {
5873
- title: string;
5874
5873
  key: string;
5874
+ title: string;
5875
5875
  order: number;
5876
5876
  fields: {
5877
5877
  type: FormFieldType;
@@ -5915,28 +5915,28 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5915
5915
  has_expiry?: boolean | undefined;
5916
5916
  default_notification_days?: number | null | undefined;
5917
5917
  creator?: {
5918
- id: number;
5919
5918
  name: string;
5919
+ id: number;
5920
5920
  email?: string | undefined;
5921
5921
  } | null | undefined;
5922
5922
  assignments?: any[] | undefined;
5923
5923
  } | undefined;
5924
5924
  due_date?: string | null | undefined;
5925
5925
  submitter?: {
5926
- id: number;
5927
5926
  name: string;
5927
+ id: number;
5928
5928
  email?: string | undefined;
5929
5929
  } | null | undefined;
5930
5930
  reviewer?: {
5931
- id: number;
5932
5931
  name: string;
5932
+ id: number;
5933
5933
  email?: string | undefined;
5934
5934
  } | null | undefined;
5935
5935
  submittable_summary?: {
5936
- id: number;
5937
5936
  name: string | null;
5938
5937
  email: string | null;
5939
5938
  type: string;
5939
+ id: number;
5940
5940
  } | null | undefined;
5941
5941
  data_resolved_names?: Record<string, string> | undefined;
5942
5942
  required_signers?: Record<string, number> | null | undefined;
@@ -5961,8 +5961,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5961
5961
  mime_type?: string | null | undefined;
5962
5962
  } | null> | undefined;
5963
5963
  requester?: {
5964
- id: number;
5965
5964
  name: string;
5965
+ id: number;
5966
5966
  email?: string | undefined;
5967
5967
  } | null | undefined;
5968
5968
  shares?: {
@@ -5972,8 +5972,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5972
5972
  shared_by: number;
5973
5973
  form_submission_id: number;
5974
5974
  company?: {
5975
- id: number;
5976
5975
  name: string;
5976
+ id: number;
5977
5977
  } | undefined;
5978
5978
  type?: "form_submission_share" | undefined;
5979
5979
  }[] | undefined;