@updraft-solutions/mcrit-sdk 0.16.0 → 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,5 +1,5 @@
1
- import { m as FormFieldType, u as FormSubmissionStatus, t as FormSubmissionSource } from '../fbo-TbdcUaI9.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 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-TbdcUaI9.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';
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;
33
34
  name: string | null;
34
35
  email: string | null;
35
- id: number;
36
36
  }, {
37
+ id: number;
37
38
  name: string | null;
38
39
  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;
46
47
  name: string | null;
47
48
  email: string | null;
48
- id: number;
49
49
  }, {
50
+ id: number;
50
51
  name: string | null;
51
52
  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;
76
77
  type: "faq";
77
78
  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;
101
102
  name: string | null;
102
103
  email: string | null;
103
- id: number;
104
104
  } | null | undefined;
105
105
  reviewer?: {
106
+ id: number;
106
107
  name: string | null;
107
108
  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;
113
114
  type: "faq";
114
115
  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;
138
139
  name: string | null;
139
140
  email: string | null;
140
- id: number;
141
141
  } | null | undefined;
142
142
  reviewer?: {
143
+ id: number;
143
144
  name: string | null;
144
145
  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
- name: string;
218
+ sort_order: number;
219
219
  id: number;
220
+ name: string;
220
221
  description: string | null;
221
222
  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
- name: string;
228
+ sort_order: number;
229
229
  id: number;
230
+ name: string;
230
231
  description: string | null;
231
232
  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;
247
248
  description?: string | null | undefined;
248
249
  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;
253
254
  description?: string | null | undefined;
254
255
  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
- name: string;
297
+ sort_order: number;
298
298
  id: number;
299
+ name: string;
299
300
  description: string | null;
300
301
  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
- name: string;
307
+ sort_order: number;
308
308
  id: number;
309
+ name: string;
309
310
  description: string | null;
310
311
  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
- status: "closed" | "new" | "under_review" | "action_taken";
342
341
  id: number;
342
+ status: "closed" | "new" | "under_review" | "action_taken";
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
- name: string;
351
+ sort_order: number;
352
352
  id: number;
353
+ name: string;
353
354
  description: string | null;
354
355
  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
- status: "closed" | "new" | "under_review" | "action_taken";
371
370
  id: number;
371
+ status: "closed" | "new" | "under_review" | "action_taken";
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
- name: string;
380
+ sort_order: number;
381
381
  id: number;
382
+ name: string;
382
383
  description: string | null;
383
384
  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
- name: string;
419
+ sort_order: number;
420
420
  id: number;
421
+ name: string;
421
422
  description: string | null;
422
423
  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
- name: string;
429
+ sort_order: number;
430
430
  id: number;
431
+ name: string;
431
432
  description: string | null;
432
433
  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
- status: "closed" | "new" | "under_review" | "action_taken";
464
463
  id: number;
464
+ status: "closed" | "new" | "under_review" | "action_taken";
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
- name: string;
473
+ sort_order: number;
474
474
  id: number;
475
+ name: string;
475
476
  description: string | null;
476
477
  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
- status: "closed" | "new" | "under_review" | "action_taken";
493
492
  id: number;
493
+ status: "closed" | "new" | "under_review" | "action_taken";
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
- name: string;
502
+ sort_order: number;
503
503
  id: number;
504
+ name: string;
504
505
  description: string | null;
505
506
  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
- status: "closed" | "new" | "under_review" | "action_taken";
562
561
  id: number;
562
+ status: "closed" | "new" | "under_review" | "action_taken";
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
- name: string;
571
+ sort_order: number;
572
572
  id: number;
573
+ name: string;
573
574
  description: string | null;
574
575
  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
- status: "closed" | "new" | "under_review" | "action_taken";
607
606
  id: number;
607
+ status: "closed" | "new" | "under_review" | "action_taken";
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
- name: string;
616
+ sort_order: number;
617
617
  id: number;
618
+ name: string;
618
619
  description: string | null;
619
620
  is_active: boolean;
620
- sort_order: number;
621
621
  color: string;
622
622
  created_at?: string | undefined;
623
623
  updated_at?: string | undefined;
@@ -979,10 +979,10 @@ declare const courseMilestoneSchema: z.ZodObject<{
979
979
  delete?: boolean | null | undefined;
980
980
  }>>;
981
981
  }, "strip", z.ZodTypeAny, {
982
- name: string;
982
+ sort_order: number;
983
983
  id: number;
984
+ name: string;
984
985
  kind: string;
985
- sort_order: number;
986
986
  course_id: number;
987
987
  is_prerequisite: boolean;
988
988
  type?: "courseMilestone" | undefined;
@@ -1000,10 +1000,10 @@ declare const courseMilestoneSchema: z.ZodObject<{
1000
1000
  } | null | undefined;
1001
1001
  completion_rule?: Record<string, unknown> | null | undefined;
1002
1002
  }, {
1003
- name: string;
1003
+ sort_order: number;
1004
1004
  id: number;
1005
+ name: string;
1005
1006
  kind: string;
1006
- sort_order: number;
1007
1007
  course_id: number;
1008
1008
  is_prerequisite: boolean;
1009
1009
  type?: "courseMilestone" | undefined;
@@ -1034,15 +1034,15 @@ declare const CourseMilestoneFormSchema: z.ZodObject<{
1034
1034
  name: string;
1035
1035
  kind: string;
1036
1036
  is_prerequisite: boolean;
1037
- description?: string | null | undefined;
1038
1037
  sort_order?: number | undefined;
1038
+ description?: string | null | undefined;
1039
1039
  requires_form_template_id?: number | null | undefined;
1040
1040
  completion_rule?: Record<string, unknown> | null | undefined;
1041
1041
  }, {
1042
1042
  name: string;
1043
+ sort_order?: number | undefined;
1043
1044
  description?: string | null | undefined;
1044
1045
  kind?: string | undefined;
1045
- sort_order?: number | undefined;
1046
1046
  is_prerequisite?: boolean | undefined;
1047
1047
  requires_form_template_id?: number | null | undefined;
1048
1048
  completion_rule?: Record<string, unknown> | null | undefined;
@@ -1087,10 +1087,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1087
1087
  delete?: boolean | null | undefined;
1088
1088
  }>>;
1089
1089
  }, "strip", z.ZodTypeAny, {
1090
- name: string;
1090
+ sort_order: number;
1091
1091
  id: number;
1092
+ name: string;
1092
1093
  kind: string;
1093
- sort_order: number;
1094
1094
  course_id: number;
1095
1095
  is_prerequisite: boolean;
1096
1096
  type?: "courseMilestone" | undefined;
@@ -1108,10 +1108,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1108
1108
  } | null | undefined;
1109
1109
  completion_rule?: Record<string, unknown> | null | undefined;
1110
1110
  }, {
1111
- name: string;
1111
+ sort_order: number;
1112
1112
  id: number;
1113
+ name: string;
1113
1114
  kind: string;
1114
- sort_order: number;
1115
1115
  course_id: number;
1116
1116
  is_prerequisite: boolean;
1117
1117
  type?: "courseMilestone" | undefined;
@@ -1177,10 +1177,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1177
1177
  } | undefined;
1178
1178
  notes?: string | null | undefined;
1179
1179
  milestone?: {
1180
- name: string;
1180
+ sort_order: number;
1181
1181
  id: number;
1182
+ name: string;
1182
1183
  kind: string;
1183
- sort_order: number;
1184
1184
  course_id: number;
1185
1185
  is_prerequisite: boolean;
1186
1186
  type?: "courseMilestone" | undefined;
@@ -1219,10 +1219,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
1219
1219
  } | undefined;
1220
1220
  notes?: string | null | undefined;
1221
1221
  milestone?: {
1222
- name: string;
1222
+ sort_order: number;
1223
1223
  id: number;
1224
+ name: string;
1224
1225
  kind: string;
1225
- sort_order: number;
1226
1226
  course_id: number;
1227
1227
  is_prerequisite: boolean;
1228
1228
  type?: "courseMilestone" | undefined;
@@ -1262,14 +1262,14 @@ declare const equipmentSchema: z.ZodObject<{
1262
1262
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1263
1263
  manual_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1264
1264
  }, "strip", z.ZodTypeAny, {
1265
- name: string;
1266
1265
  id: number;
1266
+ name: string;
1267
1267
  type?: "equipment" | undefined;
1268
1268
  description?: string | null | undefined;
1269
1269
  manual_url?: string | null | undefined;
1270
1270
  }, {
1271
- name: string;
1272
1271
  id: number;
1272
+ name: string;
1273
1273
  type?: "equipment" | undefined;
1274
1274
  description?: string | null | undefined;
1275
1275
  manual_url?: string | null | undefined;
@@ -1465,11 +1465,11 @@ declare const NewsletterCategorySchema: z.ZodObject<{
1465
1465
  created_at: z.ZodOptional<z.ZodString>;
1466
1466
  updated_at: z.ZodOptional<z.ZodString>;
1467
1467
  }, "strip", z.ZodTypeAny, {
1468
- name: string;
1468
+ sort_order: number;
1469
1469
  id: number;
1470
+ name: string;
1470
1471
  key: string;
1471
1472
  is_active: boolean;
1472
- sort_order: number;
1473
1473
  is_mandatory: boolean;
1474
1474
  type?: "newsletter_category" | undefined;
1475
1475
  created_at?: string | undefined;
@@ -1478,11 +1478,11 @@ declare const NewsletterCategorySchema: z.ZodObject<{
1478
1478
  default_opt_in?: boolean | undefined;
1479
1479
  is_internal?: boolean | undefined;
1480
1480
  }, {
1481
- name: string;
1481
+ sort_order: number;
1482
1482
  id: number;
1483
+ name: string;
1483
1484
  key: string;
1484
1485
  is_active: boolean;
1485
- sort_order: number;
1486
1486
  is_mandatory: boolean;
1487
1487
  type?: "newsletter_category" | undefined;
1488
1488
  created_at?: string | undefined;
@@ -1640,11 +1640,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1640
1640
  created_at: z.ZodOptional<z.ZodString>;
1641
1641
  updated_at: z.ZodOptional<z.ZodString>;
1642
1642
  }, "strip", z.ZodTypeAny, {
1643
- name: string;
1643
+ sort_order: number;
1644
1644
  id: number;
1645
+ name: string;
1645
1646
  key: string;
1646
1647
  is_active: boolean;
1647
- sort_order: number;
1648
1648
  is_mandatory: boolean;
1649
1649
  type?: "newsletter_category" | undefined;
1650
1650
  created_at?: string | undefined;
@@ -1653,11 +1653,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1653
1653
  default_opt_in?: boolean | undefined;
1654
1654
  is_internal?: boolean | undefined;
1655
1655
  }, {
1656
- name: string;
1656
+ sort_order: number;
1657
1657
  id: number;
1658
+ name: string;
1658
1659
  key: string;
1659
1660
  is_active: boolean;
1660
- sort_order: number;
1661
1661
  is_mandatory: boolean;
1662
1662
  type?: "newsletter_category" | undefined;
1663
1663
  created_at?: string | undefined;
@@ -1804,12 +1804,12 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1804
1804
  name: z.ZodString;
1805
1805
  email: z.ZodOptional<z.ZodString>;
1806
1806
  }, "strip", z.ZodTypeAny, {
1807
- name: string;
1808
1807
  id: number;
1808
+ name: string;
1809
1809
  email?: string | undefined;
1810
1810
  }, {
1811
- name: string;
1812
1811
  id: number;
1812
+ name: string;
1813
1813
  email?: string | undefined;
1814
1814
  }>>>;
1815
1815
  can: z.ZodOptional<z.ZodObject<{
@@ -1828,8 +1828,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1828
1828
  created_at: z.ZodOptional<z.ZodString>;
1829
1829
  updated_at: z.ZodOptional<z.ZodString>;
1830
1830
  }, "strip", z.ZodTypeAny, {
1831
- name: string;
1832
1831
  id: number;
1832
+ name: string;
1833
1833
  is_active: boolean;
1834
1834
  company_id: number | null;
1835
1835
  schema_version: number;
@@ -1873,11 +1873,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1873
1873
  duplicate?: boolean | undefined;
1874
1874
  } | undefined;
1875
1875
  category?: {
1876
- name: string;
1876
+ sort_order: number;
1877
1877
  id: number;
1878
+ name: string;
1878
1879
  key: string;
1879
1880
  is_active: boolean;
1880
- sort_order: number;
1881
1881
  is_mandatory: boolean;
1882
1882
  type?: "newsletter_category" | undefined;
1883
1883
  created_at?: string | undefined;
@@ -1889,14 +1889,14 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1889
1889
  created_by?: number | null | undefined;
1890
1890
  is_system?: boolean | undefined;
1891
1891
  creator?: {
1892
- name: string;
1893
1892
  id: number;
1893
+ name: string;
1894
1894
  email?: string | undefined;
1895
1895
  } | null | undefined;
1896
1896
  preheader?: string | null | undefined;
1897
1897
  }, {
1898
- name: string;
1899
1898
  id: number;
1899
+ name: string;
1900
1900
  is_active: boolean;
1901
1901
  company_id: number | null;
1902
1902
  schema_version: number;
@@ -1940,11 +1940,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1940
1940
  duplicate?: boolean | undefined;
1941
1941
  } | undefined;
1942
1942
  category?: {
1943
- name: string;
1943
+ sort_order: number;
1944
1944
  id: number;
1945
+ name: string;
1945
1946
  key: string;
1946
1947
  is_active: boolean;
1947
- sort_order: number;
1948
1948
  is_mandatory: boolean;
1949
1949
  type?: "newsletter_category" | undefined;
1950
1950
  created_at?: string | undefined;
@@ -1956,8 +1956,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
1956
1956
  created_by?: number | null | undefined;
1957
1957
  is_system?: boolean | undefined;
1958
1958
  creator?: {
1959
- name: string;
1960
1959
  id: number;
1960
+ name: string;
1961
1961
  email?: string | undefined;
1962
1962
  } | null | undefined;
1963
1963
  preheader?: string | null | undefined;
@@ -2340,11 +2340,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2340
2340
  created_at: z.ZodOptional<z.ZodString>;
2341
2341
  updated_at: z.ZodOptional<z.ZodString>;
2342
2342
  }, "strip", z.ZodTypeAny, {
2343
- name: string;
2343
+ sort_order: number;
2344
2344
  id: number;
2345
+ name: string;
2345
2346
  key: string;
2346
2347
  is_active: boolean;
2347
- sort_order: number;
2348
2348
  is_mandatory: boolean;
2349
2349
  type?: "newsletter_category" | undefined;
2350
2350
  created_at?: string | undefined;
@@ -2353,11 +2353,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2353
2353
  default_opt_in?: boolean | undefined;
2354
2354
  is_internal?: boolean | undefined;
2355
2355
  }, {
2356
- name: string;
2356
+ sort_order: number;
2357
2357
  id: number;
2358
+ name: string;
2358
2359
  key: string;
2359
2360
  is_active: boolean;
2360
- sort_order: number;
2361
2361
  is_mandatory: boolean;
2362
2362
  type?: "newsletter_category" | undefined;
2363
2363
  created_at?: string | undefined;
@@ -2504,12 +2504,12 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2504
2504
  name: z.ZodString;
2505
2505
  email: z.ZodOptional<z.ZodString>;
2506
2506
  }, "strip", z.ZodTypeAny, {
2507
- name: string;
2508
2507
  id: number;
2508
+ name: string;
2509
2509
  email?: string | undefined;
2510
2510
  }, {
2511
- name: string;
2512
2511
  id: number;
2512
+ name: string;
2513
2513
  email?: string | undefined;
2514
2514
  }>>>>;
2515
2515
  can: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -2528,9 +2528,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2528
2528
  created_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2529
2529
  updated_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2530
2530
  }, "strip", z.ZodTypeAny, {
2531
+ id?: number | undefined;
2531
2532
  name?: string | undefined;
2532
2533
  type?: "newsletter_template" | undefined;
2533
- id?: number | undefined;
2534
2534
  created_at?: string | undefined;
2535
2535
  updated_at?: string | undefined;
2536
2536
  description?: string | null | undefined;
@@ -2543,11 +2543,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2543
2543
  company_id?: number | null | undefined;
2544
2544
  schema_version?: number | undefined;
2545
2545
  category?: {
2546
- name: string;
2546
+ sort_order: number;
2547
2547
  id: number;
2548
+ name: string;
2548
2549
  key: string;
2549
2550
  is_active: boolean;
2550
- sort_order: number;
2551
2551
  is_mandatory: boolean;
2552
2552
  type?: "newsletter_category" | undefined;
2553
2553
  created_at?: string | undefined;
@@ -2587,17 +2587,17 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2587
2587
  } | undefined;
2588
2588
  is_system?: boolean | undefined;
2589
2589
  creator?: {
2590
- name: string;
2591
2590
  id: number;
2591
+ name: string;
2592
2592
  email?: string | undefined;
2593
2593
  } | null | undefined;
2594
2594
  newsletter_category_id?: number | undefined;
2595
2595
  subject?: string | undefined;
2596
2596
  preheader?: string | null | undefined;
2597
2597
  }, {
2598
+ id?: number | undefined;
2598
2599
  name?: string | undefined;
2599
2600
  type?: "newsletter_template" | undefined;
2600
- id?: number | undefined;
2601
2601
  created_at?: string | undefined;
2602
2602
  updated_at?: string | undefined;
2603
2603
  description?: string | null | undefined;
@@ -2610,11 +2610,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2610
2610
  company_id?: number | null | undefined;
2611
2611
  schema_version?: number | undefined;
2612
2612
  category?: {
2613
- name: string;
2613
+ sort_order: number;
2614
2614
  id: number;
2615
+ name: string;
2615
2616
  key: string;
2616
2617
  is_active: boolean;
2617
- sort_order: number;
2618
2618
  is_mandatory: boolean;
2619
2619
  type?: "newsletter_category" | undefined;
2620
2620
  created_at?: string | undefined;
@@ -2654,8 +2654,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2654
2654
  } | undefined;
2655
2655
  is_system?: boolean | undefined;
2656
2656
  creator?: {
2657
- name: string;
2658
2657
  id: number;
2658
+ name: string;
2659
2659
  email?: string | undefined;
2660
2660
  } | null | undefined;
2661
2661
  newsletter_category_id?: number | undefined;
@@ -2679,11 +2679,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2679
2679
  created_at: z.ZodOptional<z.ZodString>;
2680
2680
  updated_at: z.ZodOptional<z.ZodString>;
2681
2681
  }, "strip", z.ZodTypeAny, {
2682
- name: string;
2682
+ sort_order: number;
2683
2683
  id: number;
2684
+ name: string;
2684
2685
  key: string;
2685
2686
  is_active: boolean;
2686
- sort_order: number;
2687
2687
  is_mandatory: boolean;
2688
2688
  type?: "newsletter_category" | undefined;
2689
2689
  created_at?: string | undefined;
@@ -2692,11 +2692,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2692
2692
  default_opt_in?: boolean | undefined;
2693
2693
  is_internal?: boolean | undefined;
2694
2694
  }, {
2695
- name: string;
2695
+ sort_order: number;
2696
2696
  id: number;
2697
+ name: string;
2697
2698
  key: string;
2698
2699
  is_active: boolean;
2699
- sort_order: number;
2700
2700
  is_mandatory: boolean;
2701
2701
  type?: "newsletter_category" | undefined;
2702
2702
  created_at?: string | undefined;
@@ -2932,12 +2932,12 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2932
2932
  name: z.ZodString;
2933
2933
  email: z.ZodOptional<z.ZodString>;
2934
2934
  }, "strip", z.ZodTypeAny, {
2935
- name: string;
2936
2935
  id: number;
2936
+ name: string;
2937
2937
  email?: string | undefined;
2938
2938
  }, {
2939
- name: string;
2940
2939
  id: number;
2940
+ name: string;
2941
2941
  email?: string | undefined;
2942
2942
  }>>>;
2943
2943
  can: z.ZodOptional<z.ZodObject<{
@@ -2965,9 +2965,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
2965
2965
  created_at: z.ZodOptional<z.ZodString>;
2966
2966
  updated_at: z.ZodOptional<z.ZodString>;
2967
2967
  }, "strip", z.ZodTypeAny, {
2968
+ id: number;
2968
2969
  name: string;
2969
2970
  status: NewsletterCampaignStatus;
2970
- id: number;
2971
2971
  company_id: number | null;
2972
2972
  schema_snapshot: {
2973
2973
  blocks: ({
@@ -3035,11 +3035,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3035
3035
  test_send?: boolean | undefined;
3036
3036
  } | undefined;
3037
3037
  category?: {
3038
- name: string;
3038
+ sort_order: number;
3039
3039
  id: number;
3040
+ name: string;
3040
3041
  key: string;
3041
3042
  is_active: boolean;
3042
- sort_order: number;
3043
3043
  is_mandatory: boolean;
3044
3044
  type?: "newsletter_category" | undefined;
3045
3045
  created_at?: string | undefined;
@@ -3051,9 +3051,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3051
3051
  scheduled_at?: string | null | undefined;
3052
3052
  is_system?: boolean | undefined;
3053
3053
  template?: {
3054
+ id?: number | undefined;
3054
3055
  name?: string | undefined;
3055
3056
  type?: "newsletter_template" | undefined;
3056
- id?: number | undefined;
3057
3057
  created_at?: string | undefined;
3058
3058
  updated_at?: string | undefined;
3059
3059
  description?: string | null | undefined;
@@ -3066,11 +3066,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3066
3066
  company_id?: number | null | undefined;
3067
3067
  schema_version?: number | undefined;
3068
3068
  category?: {
3069
- name: string;
3069
+ sort_order: number;
3070
3070
  id: number;
3071
+ name: string;
3071
3072
  key: string;
3072
3073
  is_active: boolean;
3073
- sort_order: number;
3074
3074
  is_mandatory: boolean;
3075
3075
  type?: "newsletter_category" | undefined;
3076
3076
  created_at?: string | undefined;
@@ -3110,8 +3110,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3110
3110
  } | undefined;
3111
3111
  is_system?: boolean | undefined;
3112
3112
  creator?: {
3113
- name: string;
3114
3113
  id: number;
3114
+ name: string;
3115
3115
  email?: string | undefined;
3116
3116
  } | null | undefined;
3117
3117
  newsletter_category_id?: number | undefined;
@@ -3124,14 +3124,14 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3124
3124
  cancelled_at?: string | null | undefined;
3125
3125
  sent_by_user_id?: number | null | undefined;
3126
3126
  sent_by?: {
3127
- name: string;
3128
3127
  id: number;
3128
+ name: string;
3129
3129
  email?: string | undefined;
3130
3130
  } | null | undefined;
3131
3131
  }, {
3132
+ id: number;
3132
3133
  name: string;
3133
3134
  status: NewsletterCampaignStatus;
3134
- id: number;
3135
3135
  company_id: number | null;
3136
3136
  schema_snapshot: {
3137
3137
  blocks: ({
@@ -3199,11 +3199,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3199
3199
  test_send?: boolean | undefined;
3200
3200
  } | undefined;
3201
3201
  category?: {
3202
- name: string;
3202
+ sort_order: number;
3203
3203
  id: number;
3204
+ name: string;
3204
3205
  key: string;
3205
3206
  is_active: boolean;
3206
- sort_order: number;
3207
3207
  is_mandatory: boolean;
3208
3208
  type?: "newsletter_category" | undefined;
3209
3209
  created_at?: string | undefined;
@@ -3215,9 +3215,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3215
3215
  scheduled_at?: string | null | undefined;
3216
3216
  is_system?: boolean | undefined;
3217
3217
  template?: {
3218
+ id?: number | undefined;
3218
3219
  name?: string | undefined;
3219
3220
  type?: "newsletter_template" | undefined;
3220
- id?: number | undefined;
3221
3221
  created_at?: string | undefined;
3222
3222
  updated_at?: string | undefined;
3223
3223
  description?: string | null | undefined;
@@ -3230,11 +3230,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3230
3230
  company_id?: number | null | undefined;
3231
3231
  schema_version?: number | undefined;
3232
3232
  category?: {
3233
- name: string;
3233
+ sort_order: number;
3234
3234
  id: number;
3235
+ name: string;
3235
3236
  key: string;
3236
3237
  is_active: boolean;
3237
- sort_order: number;
3238
3238
  is_mandatory: boolean;
3239
3239
  type?: "newsletter_category" | undefined;
3240
3240
  created_at?: string | undefined;
@@ -3274,8 +3274,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3274
3274
  } | undefined;
3275
3275
  is_system?: boolean | undefined;
3276
3276
  creator?: {
3277
- name: string;
3278
3277
  id: number;
3278
+ name: string;
3279
3279
  email?: string | undefined;
3280
3280
  } | null | undefined;
3281
3281
  newsletter_category_id?: number | undefined;
@@ -3288,8 +3288,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
3288
3288
  cancelled_at?: string | null | undefined;
3289
3289
  sent_by_user_id?: number | null | undefined;
3290
3290
  sent_by?: {
3291
- name: string;
3292
3291
  id: number;
3292
+ name: string;
3293
3293
  email?: string | undefined;
3294
3294
  } | null | undefined;
3295
3295
  }>;
@@ -3617,12 +3617,12 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3617
3617
  name: z.ZodString;
3618
3618
  email: z.ZodOptional<z.ZodString>;
3619
3619
  }, "strip", z.ZodTypeAny, {
3620
- name: string;
3621
3620
  id: number;
3621
+ name: string;
3622
3622
  email?: string | undefined;
3623
3623
  }, {
3624
- name: string;
3625
3624
  id: number;
3625
+ name: string;
3626
3626
  email?: string | undefined;
3627
3627
  }>>>;
3628
3628
  email: z.ZodString;
@@ -3634,15 +3634,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3634
3634
  bounced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3635
3635
  complained_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3636
3636
  }, "strip", z.ZodTypeAny, {
3637
+ id: number;
3637
3638
  email: string;
3638
3639
  status: NewsletterRecipientStatus;
3639
- id: number;
3640
3640
  user_id: number | null;
3641
3641
  newsletter_campaign_id: number;
3642
3642
  type?: "newsletter_campaign_recipient" | undefined;
3643
3643
  user?: {
3644
- name: string;
3645
3644
  id: number;
3645
+ name: string;
3646
3646
  email?: string | undefined;
3647
3647
  } | null | undefined;
3648
3648
  error?: string | null | undefined;
@@ -3652,15 +3652,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
3652
3652
  bounced_at?: string | null | undefined;
3653
3653
  complained_at?: string | null | undefined;
3654
3654
  }, {
3655
+ id: number;
3655
3656
  email: string;
3656
3657
  status: NewsletterRecipientStatus;
3657
- id: number;
3658
3658
  user_id: number | null;
3659
3659
  newsletter_campaign_id: number;
3660
3660
  type?: "newsletter_campaign_recipient" | undefined;
3661
3661
  user?: {
3662
- name: string;
3663
3662
  id: number;
3663
+ name: string;
3664
3664
  email?: string | undefined;
3665
3665
  } | null | undefined;
3666
3666
  error?: string | null | undefined;
@@ -4107,8 +4107,8 @@ declare const TodoSchema: z.ZodObject<{
4107
4107
  }>;
4108
4108
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4109
4109
  }, "strip", z.ZodTypeAny, {
4110
- key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record" | "handle_ticket";
4111
4110
  title: string;
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
4112
  priority: "critical" | "high" | "normal" | "low";
4113
4113
  is_overdue: boolean;
4114
4114
  ref_type: string;
@@ -4123,8 +4123,8 @@ declare const TodoSchema: z.ZodObject<{
4123
4123
  due_date?: string | null | undefined;
4124
4124
  subtitle?: string | null | undefined;
4125
4125
  }, {
4126
- key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record" | "handle_ticket";
4127
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";
4128
4128
  ref_type: string;
4129
4129
  ref_id: number;
4130
4130
  action: {
@@ -4462,8 +4462,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4462
4462
  prefill_source?: string | undefined;
4463
4463
  }>, "many">;
4464
4464
  }, "strip", z.ZodTypeAny, {
4465
- key: string;
4466
4465
  title: string;
4466
+ key: string;
4467
4467
  order: number;
4468
4468
  fields: {
4469
4469
  type: FormFieldType;
@@ -4494,8 +4494,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4494
4494
  prefill_source?: string | undefined;
4495
4495
  }[];
4496
4496
  }, {
4497
- key: string;
4498
4497
  title: string;
4498
+ key: string;
4499
4499
  order: number;
4500
4500
  fields: {
4501
4501
  type: FormFieldType;
@@ -4528,8 +4528,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4528
4528
  }>, "many">;
4529
4529
  }, "strip", z.ZodTypeAny, {
4530
4530
  sections: {
4531
- key: string;
4532
4531
  title: string;
4532
+ key: string;
4533
4533
  order: number;
4534
4534
  fields: {
4535
4535
  type: FormFieldType;
@@ -4562,8 +4562,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4562
4562
  }[];
4563
4563
  }, {
4564
4564
  sections: {
4565
- key: string;
4566
4565
  title: string;
4566
+ key: string;
4567
4567
  order: number;
4568
4568
  fields: {
4569
4569
  type: FormFieldType;
@@ -4603,15 +4603,15 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4603
4603
  name: z.ZodNullable<z.ZodString>;
4604
4604
  email: z.ZodNullable<z.ZodString>;
4605
4605
  }, "strip", z.ZodTypeAny, {
4606
+ id: number;
4606
4607
  name: string | null;
4607
4608
  email: string | null;
4608
4609
  type: string;
4609
- id: number;
4610
4610
  }, {
4611
+ id: number;
4611
4612
  name: string | null;
4612
4613
  email: string | null;
4613
4614
  type: string;
4614
- id: number;
4615
4615
  }>>>;
4616
4616
  submitted_by: z.ZodNumber;
4617
4617
  data: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -4646,8 +4646,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4646
4646
  created_at: z.ZodOptional<z.ZodString>;
4647
4647
  updated_at: z.ZodOptional<z.ZodString>;
4648
4648
  }, "strip", z.ZodTypeAny, {
4649
- status: "signed" | "pending" | "revoked";
4650
4649
  id: number;
4650
+ status: "signed" | "pending" | "revoked";
4651
4651
  field_key: string;
4652
4652
  required_signer_membership_id: number | null;
4653
4653
  signed_by_user_id: number | null;
@@ -4674,8 +4674,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4674
4674
  required_signer_permission?: string | null | undefined;
4675
4675
  signed_by_name?: string | null | undefined;
4676
4676
  }, {
4677
- status: "signed" | "pending" | "revoked";
4678
4677
  id: number;
4678
+ status: "signed" | "pending" | "revoked";
4679
4679
  field_key: string;
4680
4680
  required_signer_membership_id: number | null;
4681
4681
  signed_by_user_id: number | null;
@@ -4864,8 +4864,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4864
4864
  prefill_source?: string | undefined;
4865
4865
  }>, "many">;
4866
4866
  }, "strip", z.ZodTypeAny, {
4867
- key: string;
4868
4867
  title: string;
4868
+ key: string;
4869
4869
  order: number;
4870
4870
  fields: {
4871
4871
  type: FormFieldType;
@@ -4896,8 +4896,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4896
4896
  prefill_source?: string | undefined;
4897
4897
  }[];
4898
4898
  }, {
4899
- key: string;
4900
4899
  title: string;
4900
+ key: string;
4901
4901
  order: number;
4902
4902
  fields: {
4903
4903
  type: FormFieldType;
@@ -4930,8 +4930,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4930
4930
  }>, "many">;
4931
4931
  }, "strip", z.ZodTypeAny, {
4932
4932
  sections: {
4933
- key: string;
4934
4933
  title: string;
4934
+ key: string;
4935
4935
  order: number;
4936
4936
  fields: {
4937
4937
  type: FormFieldType;
@@ -4964,8 +4964,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
4964
4964
  }[];
4965
4965
  }, {
4966
4966
  sections: {
4967
- key: string;
4968
4967
  title: string;
4968
+ key: string;
4969
4969
  order: number;
4970
4970
  fields: {
4971
4971
  type: FormFieldType;
@@ -5016,21 +5016,21 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5016
5016
  name: z.ZodString;
5017
5017
  email: z.ZodOptional<z.ZodString>;
5018
5018
  }, "strip", z.ZodTypeAny, {
5019
- name: string;
5020
5019
  id: number;
5020
+ name: string;
5021
5021
  email?: string | undefined;
5022
5022
  }, {
5023
- name: string;
5024
5023
  id: number;
5024
+ name: string;
5025
5025
  email?: string | undefined;
5026
5026
  }>>>;
5027
5027
  assignments: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
5028
5028
  created_at: z.ZodString;
5029
5029
  updated_at: z.ZodString;
5030
5030
  }, "strip", z.ZodTypeAny, {
5031
+ id: number;
5031
5032
  name: string;
5032
5033
  type: "form_template";
5033
- id: number;
5034
5034
  created_at: string;
5035
5035
  updated_at: string;
5036
5036
  description: string | null;
@@ -5041,8 +5041,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5041
5041
  slug: string;
5042
5042
  schema: {
5043
5043
  sections: {
5044
- key: string;
5045
5044
  title: string;
5045
+ key: string;
5046
5046
  order: number;
5047
5047
  fields: {
5048
5048
  type: FormFieldType;
@@ -5086,15 +5086,15 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5086
5086
  applies_to?: string | null | undefined;
5087
5087
  default_notification_days?: number | null | undefined;
5088
5088
  creator?: {
5089
- name: string;
5090
5089
  id: number;
5090
+ name: string;
5091
5091
  email?: string | undefined;
5092
5092
  } | null | undefined;
5093
5093
  assignments?: any[] | undefined;
5094
5094
  }, {
5095
+ id: number;
5095
5096
  name: string;
5096
5097
  type: "form_template";
5097
- id: number;
5098
5098
  created_at: string;
5099
5099
  updated_at: string;
5100
5100
  description: string | null;
@@ -5105,8 +5105,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5105
5105
  slug: string;
5106
5106
  schema: {
5107
5107
  sections: {
5108
- key: string;
5109
5108
  title: string;
5109
+ key: string;
5110
5110
  order: number;
5111
5111
  fields: {
5112
5112
  type: FormFieldType;
@@ -5150,8 +5150,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5150
5150
  has_expiry?: boolean | undefined;
5151
5151
  default_notification_days?: number | null | undefined;
5152
5152
  creator?: {
5153
- name: string;
5154
5153
  id: number;
5154
+ name: string;
5155
5155
  email?: string | undefined;
5156
5156
  } | null | undefined;
5157
5157
  assignments?: any[] | undefined;
@@ -5161,12 +5161,12 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5161
5161
  name: z.ZodString;
5162
5162
  email: z.ZodOptional<z.ZodString>;
5163
5163
  }, "strip", z.ZodTypeAny, {
5164
- name: string;
5165
5164
  id: number;
5165
+ name: string;
5166
5166
  email?: string | undefined;
5167
5167
  }, {
5168
- name: string;
5169
5168
  id: number;
5169
+ name: string;
5170
5170
  email?: string | undefined;
5171
5171
  }>>>;
5172
5172
  reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -5174,12 +5174,12 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5174
5174
  name: z.ZodString;
5175
5175
  email: z.ZodOptional<z.ZodString>;
5176
5176
  }, "strip", z.ZodTypeAny, {
5177
- name: string;
5178
5177
  id: number;
5178
+ name: string;
5179
5179
  email?: string | undefined;
5180
5180
  }, {
5181
- name: string;
5182
5181
  id: number;
5182
+ name: string;
5183
5183
  email?: string | undefined;
5184
5184
  }>>>;
5185
5185
  requester: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -5187,12 +5187,12 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5187
5187
  name: z.ZodString;
5188
5188
  email: z.ZodOptional<z.ZodString>;
5189
5189
  }, "strip", z.ZodTypeAny, {
5190
- name: string;
5191
5190
  id: number;
5191
+ name: string;
5192
5192
  email?: string | undefined;
5193
5193
  }, {
5194
- name: string;
5195
5194
  id: number;
5195
+ name: string;
5196
5196
  email?: string | undefined;
5197
5197
  }>>>;
5198
5198
  shares: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -5205,11 +5205,11 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5205
5205
  id: z.ZodNumber;
5206
5206
  name: z.ZodString;
5207
5207
  }, "strip", z.ZodTypeAny, {
5208
- name: string;
5209
5208
  id: number;
5210
- }, {
5211
5209
  name: string;
5210
+ }, {
5212
5211
  id: number;
5212
+ name: string;
5213
5213
  }>>;
5214
5214
  created_at: z.ZodString;
5215
5215
  }, "strip", z.ZodTypeAny, {
@@ -5219,8 +5219,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5219
5219
  shared_by: number;
5220
5220
  form_submission_id: number;
5221
5221
  company?: {
5222
- name: string;
5223
5222
  id: number;
5223
+ name: string;
5224
5224
  } | undefined;
5225
5225
  type?: "form_submission_share" | undefined;
5226
5226
  }, {
@@ -5230,17 +5230,17 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5230
5230
  shared_by: number;
5231
5231
  form_submission_id: number;
5232
5232
  company?: {
5233
- name: string;
5234
5233
  id: number;
5234
+ name: string;
5235
5235
  } | undefined;
5236
5236
  type?: "form_submission_share" | undefined;
5237
5237
  }>, "many">>;
5238
5238
  created_at: z.ZodString;
5239
5239
  updated_at: z.ZodString;
5240
5240
  }, "strip", z.ZodTypeAny, {
5241
+ id: number;
5241
5242
  type: "form_submission";
5242
5243
  status: FormSubmissionStatus;
5243
- id: number;
5244
5244
  created_at: string;
5245
5245
  updated_at: string;
5246
5246
  can: Record<string, boolean | null>;
@@ -5252,8 +5252,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5252
5252
  reviewed_at: string | null;
5253
5253
  schema_snapshot: {
5254
5254
  sections: {
5255
- key: string;
5256
5255
  title: string;
5256
+ key: string;
5257
5257
  order: number;
5258
5258
  fields: {
5259
5259
  type: FormFieldType;
@@ -5301,8 +5301,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5301
5301
  is_expired: boolean;
5302
5302
  expires_at?: string | null | undefined;
5303
5303
  signatures?: {
5304
- status: "signed" | "pending" | "revoked";
5305
5304
  id: number;
5305
+ status: "signed" | "pending" | "revoked";
5306
5306
  field_key: string;
5307
5307
  required_signer_membership_id: number | null;
5308
5308
  signed_by_user_id: number | null;
@@ -5331,9 +5331,9 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5331
5331
  }[] | undefined;
5332
5332
  note?: string | null | undefined;
5333
5333
  form_template?: {
5334
+ id: number;
5334
5335
  name: string;
5335
5336
  type: "form_template";
5336
- id: number;
5337
5337
  created_at: string;
5338
5338
  updated_at: string;
5339
5339
  description: string | null;
@@ -5344,8 +5344,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5344
5344
  slug: string;
5345
5345
  schema: {
5346
5346
  sections: {
5347
- key: string;
5348
5347
  title: string;
5348
+ key: string;
5349
5349
  order: number;
5350
5350
  fields: {
5351
5351
  type: FormFieldType;
@@ -5389,28 +5389,28 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5389
5389
  applies_to?: string | null | undefined;
5390
5390
  default_notification_days?: number | null | undefined;
5391
5391
  creator?: {
5392
- name: string;
5393
5392
  id: number;
5393
+ name: string;
5394
5394
  email?: string | undefined;
5395
5395
  } | null | undefined;
5396
5396
  assignments?: any[] | undefined;
5397
5397
  } | undefined;
5398
5398
  due_date?: string | null | undefined;
5399
5399
  submitter?: {
5400
- name: string;
5401
5400
  id: number;
5401
+ name: string;
5402
5402
  email?: string | undefined;
5403
5403
  } | null | undefined;
5404
5404
  reviewer?: {
5405
- name: string;
5406
5405
  id: number;
5406
+ name: string;
5407
5407
  email?: string | undefined;
5408
5408
  } | null | undefined;
5409
5409
  submittable_summary?: {
5410
+ id: number;
5410
5411
  name: string | null;
5411
5412
  email: string | null;
5412
5413
  type: string;
5413
- id: number;
5414
5414
  } | null | undefined;
5415
5415
  required_signers?: Record<string, number> | null | undefined;
5416
5416
  requested_by_user_id?: number | null | undefined;
@@ -5425,8 +5425,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5425
5425
  mime_type?: string | null | undefined;
5426
5426
  } | null> | undefined;
5427
5427
  requester?: {
5428
- name: string;
5429
5428
  id: number;
5429
+ name: string;
5430
5430
  email?: string | undefined;
5431
5431
  } | null | undefined;
5432
5432
  shares?: {
@@ -5436,15 +5436,15 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5436
5436
  shared_by: number;
5437
5437
  form_submission_id: number;
5438
5438
  company?: {
5439
- name: string;
5440
5439
  id: number;
5440
+ name: string;
5441
5441
  } | undefined;
5442
5442
  type?: "form_submission_share" | undefined;
5443
5443
  }[] | undefined;
5444
5444
  }, {
5445
+ id: number;
5445
5446
  type: "form_submission";
5446
5447
  status: FormSubmissionStatus;
5447
- id: number;
5448
5448
  created_at: string;
5449
5449
  updated_at: string;
5450
5450
  schema_version: number;
@@ -5455,8 +5455,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5455
5455
  reviewed_at: string | null;
5456
5456
  schema_snapshot: {
5457
5457
  sections: {
5458
- key: string;
5459
5458
  title: string;
5459
+ key: string;
5460
5460
  order: number;
5461
5461
  fields: {
5462
5462
  type: FormFieldType;
@@ -5495,8 +5495,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5495
5495
  expires_at?: string | null | undefined;
5496
5496
  can?: Record<string, boolean | null> | undefined;
5497
5497
  signatures?: {
5498
- status: "signed" | "pending" | "revoked";
5499
5498
  id: number;
5499
+ status: "signed" | "pending" | "revoked";
5500
5500
  field_key: string;
5501
5501
  required_signer_membership_id: number | null;
5502
5502
  signed_by_user_id: number | null;
@@ -5525,9 +5525,9 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5525
5525
  }[] | undefined;
5526
5526
  note?: string | null | undefined;
5527
5527
  form_template?: {
5528
+ id: number;
5528
5529
  name: string;
5529
5530
  type: "form_template";
5530
- id: number;
5531
5531
  created_at: string;
5532
5532
  updated_at: string;
5533
5533
  description: string | null;
@@ -5538,8 +5538,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5538
5538
  slug: string;
5539
5539
  schema: {
5540
5540
  sections: {
5541
- key: string;
5542
5541
  title: string;
5542
+ key: string;
5543
5543
  order: number;
5544
5544
  fields: {
5545
5545
  type: FormFieldType;
@@ -5583,28 +5583,28 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5583
5583
  has_expiry?: boolean | undefined;
5584
5584
  default_notification_days?: number | null | undefined;
5585
5585
  creator?: {
5586
- name: string;
5587
5586
  id: number;
5587
+ name: string;
5588
5588
  email?: string | undefined;
5589
5589
  } | null | undefined;
5590
5590
  assignments?: any[] | undefined;
5591
5591
  } | undefined;
5592
5592
  due_date?: string | null | undefined;
5593
5593
  submitter?: {
5594
- name: string;
5595
5594
  id: number;
5595
+ name: string;
5596
5596
  email?: string | undefined;
5597
5597
  } | null | undefined;
5598
5598
  reviewer?: {
5599
- name: string;
5600
5599
  id: number;
5600
+ name: string;
5601
5601
  email?: string | undefined;
5602
5602
  } | null | undefined;
5603
5603
  submittable_summary?: {
5604
+ id: number;
5604
5605
  name: string | null;
5605
5606
  email: string | null;
5606
5607
  type: string;
5607
- id: number;
5608
5608
  } | null | undefined;
5609
5609
  data_resolved_names?: Record<string, string> | undefined;
5610
5610
  required_signers?: Record<string, number> | null | undefined;
@@ -5629,8 +5629,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5629
5629
  mime_type?: string | null | undefined;
5630
5630
  } | null> | undefined;
5631
5631
  requester?: {
5632
- name: string;
5633
5632
  id: number;
5633
+ name: string;
5634
5634
  email?: string | undefined;
5635
5635
  } | null | undefined;
5636
5636
  shares?: {
@@ -5640,8 +5640,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5640
5640
  shared_by: number;
5641
5641
  form_submission_id: number;
5642
5642
  company?: {
5643
- name: string;
5644
5643
  id: number;
5644
+ name: string;
5645
5645
  } | undefined;
5646
5646
  type?: "form_submission_share" | undefined;
5647
5647
  }[] | undefined;
@@ -5655,9 +5655,9 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5655
5655
  }>;
5656
5656
  }, "strip", z.ZodTypeAny, {
5657
5657
  data: {
5658
+ id: number;
5658
5659
  type: "form_submission";
5659
5660
  status: FormSubmissionStatus;
5660
- id: number;
5661
5661
  created_at: string;
5662
5662
  updated_at: string;
5663
5663
  can: Record<string, boolean | null>;
@@ -5669,8 +5669,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5669
5669
  reviewed_at: string | null;
5670
5670
  schema_snapshot: {
5671
5671
  sections: {
5672
- key: string;
5673
5672
  title: string;
5673
+ key: string;
5674
5674
  order: number;
5675
5675
  fields: {
5676
5676
  type: FormFieldType;
@@ -5718,8 +5718,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5718
5718
  is_expired: boolean;
5719
5719
  expires_at?: string | null | undefined;
5720
5720
  signatures?: {
5721
- status: "signed" | "pending" | "revoked";
5722
5721
  id: number;
5722
+ status: "signed" | "pending" | "revoked";
5723
5723
  field_key: string;
5724
5724
  required_signer_membership_id: number | null;
5725
5725
  signed_by_user_id: number | null;
@@ -5748,9 +5748,9 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5748
5748
  }[] | undefined;
5749
5749
  note?: string | null | undefined;
5750
5750
  form_template?: {
5751
+ id: number;
5751
5752
  name: string;
5752
5753
  type: "form_template";
5753
- id: number;
5754
5754
  created_at: string;
5755
5755
  updated_at: string;
5756
5756
  description: string | null;
@@ -5761,8 +5761,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5761
5761
  slug: string;
5762
5762
  schema: {
5763
5763
  sections: {
5764
- key: string;
5765
5764
  title: string;
5765
+ key: string;
5766
5766
  order: number;
5767
5767
  fields: {
5768
5768
  type: FormFieldType;
@@ -5806,28 +5806,28 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5806
5806
  applies_to?: string | null | undefined;
5807
5807
  default_notification_days?: number | null | undefined;
5808
5808
  creator?: {
5809
- name: string;
5810
5809
  id: number;
5810
+ name: string;
5811
5811
  email?: string | undefined;
5812
5812
  } | null | undefined;
5813
5813
  assignments?: any[] | undefined;
5814
5814
  } | undefined;
5815
5815
  due_date?: string | null | undefined;
5816
5816
  submitter?: {
5817
- name: string;
5818
5817
  id: number;
5818
+ name: string;
5819
5819
  email?: string | undefined;
5820
5820
  } | null | undefined;
5821
5821
  reviewer?: {
5822
- name: string;
5823
5822
  id: number;
5823
+ name: string;
5824
5824
  email?: string | undefined;
5825
5825
  } | null | undefined;
5826
5826
  submittable_summary?: {
5827
+ id: number;
5827
5828
  name: string | null;
5828
5829
  email: string | null;
5829
5830
  type: string;
5830
- id: number;
5831
5831
  } | null | undefined;
5832
5832
  required_signers?: Record<string, number> | null | undefined;
5833
5833
  requested_by_user_id?: number | null | undefined;
@@ -5842,8 +5842,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5842
5842
  mime_type?: string | null | undefined;
5843
5843
  } | null> | undefined;
5844
5844
  requester?: {
5845
- name: string;
5846
5845
  id: number;
5846
+ name: string;
5847
5847
  email?: string | undefined;
5848
5848
  } | null | undefined;
5849
5849
  shares?: {
@@ -5853,8 +5853,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5853
5853
  shared_by: number;
5854
5854
  form_submission_id: number;
5855
5855
  company?: {
5856
- name: string;
5857
5856
  id: number;
5857
+ name: string;
5858
5858
  } | undefined;
5859
5859
  type?: "form_submission_share" | undefined;
5860
5860
  }[] | undefined;
@@ -5864,9 +5864,9 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5864
5864
  };
5865
5865
  }, {
5866
5866
  data: {
5867
+ id: number;
5867
5868
  type: "form_submission";
5868
5869
  status: FormSubmissionStatus;
5869
- id: number;
5870
5870
  created_at: string;
5871
5871
  updated_at: string;
5872
5872
  schema_version: number;
@@ -5877,8 +5877,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5877
5877
  reviewed_at: string | null;
5878
5878
  schema_snapshot: {
5879
5879
  sections: {
5880
- key: string;
5881
5880
  title: string;
5881
+ key: string;
5882
5882
  order: number;
5883
5883
  fields: {
5884
5884
  type: FormFieldType;
@@ -5917,8 +5917,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5917
5917
  expires_at?: string | null | undefined;
5918
5918
  can?: Record<string, boolean | null> | undefined;
5919
5919
  signatures?: {
5920
- status: "signed" | "pending" | "revoked";
5921
5920
  id: number;
5921
+ status: "signed" | "pending" | "revoked";
5922
5922
  field_key: string;
5923
5923
  required_signer_membership_id: number | null;
5924
5924
  signed_by_user_id: number | null;
@@ -5947,9 +5947,9 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5947
5947
  }[] | undefined;
5948
5948
  note?: string | null | undefined;
5949
5949
  form_template?: {
5950
+ id: number;
5950
5951
  name: string;
5951
5952
  type: "form_template";
5952
- id: number;
5953
5953
  created_at: string;
5954
5954
  updated_at: string;
5955
5955
  description: string | null;
@@ -5960,8 +5960,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
5960
5960
  slug: string;
5961
5961
  schema: {
5962
5962
  sections: {
5963
- key: string;
5964
5963
  title: string;
5964
+ key: string;
5965
5965
  order: number;
5966
5966
  fields: {
5967
5967
  type: FormFieldType;
@@ -6005,28 +6005,28 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
6005
6005
  has_expiry?: boolean | undefined;
6006
6006
  default_notification_days?: number | null | undefined;
6007
6007
  creator?: {
6008
- name: string;
6009
6008
  id: number;
6009
+ name: string;
6010
6010
  email?: string | undefined;
6011
6011
  } | null | undefined;
6012
6012
  assignments?: any[] | undefined;
6013
6013
  } | undefined;
6014
6014
  due_date?: string | null | undefined;
6015
6015
  submitter?: {
6016
- name: string;
6017
6016
  id: number;
6017
+ name: string;
6018
6018
  email?: string | undefined;
6019
6019
  } | null | undefined;
6020
6020
  reviewer?: {
6021
- name: string;
6022
6021
  id: number;
6022
+ name: string;
6023
6023
  email?: string | undefined;
6024
6024
  } | null | undefined;
6025
6025
  submittable_summary?: {
6026
+ id: number;
6026
6027
  name: string | null;
6027
6028
  email: string | null;
6028
6029
  type: string;
6029
- id: number;
6030
6030
  } | null | undefined;
6031
6031
  data_resolved_names?: Record<string, string> | undefined;
6032
6032
  required_signers?: Record<string, number> | null | undefined;
@@ -6051,8 +6051,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
6051
6051
  mime_type?: string | null | undefined;
6052
6052
  } | null> | undefined;
6053
6053
  requester?: {
6054
- name: string;
6055
6054
  id: number;
6055
+ name: string;
6056
6056
  email?: string | undefined;
6057
6057
  } | null | undefined;
6058
6058
  shares?: {
@@ -6062,8 +6062,8 @@ declare const CompanySystemContractsResponseSchema: z.ZodObject<{
6062
6062
  shared_by: number;
6063
6063
  form_submission_id: number;
6064
6064
  company?: {
6065
- name: string;
6066
6065
  id: number;
6066
+ name: string;
6067
6067
  } | undefined;
6068
6068
  type?: "form_submission_share" | undefined;
6069
6069
  }[] | undefined;