@updraft-solutions/mcrit-sdk 0.14.6 → 0.14.9
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.
- package/dist/{chunk-RC7DU3ED.js → chunk-7BDZMKTO.js} +97 -1
- package/dist/{chunk-4S6QG75Y.cjs → chunk-HNDGMWM5.cjs} +97 -1
- package/dist/{fbo-BNakExWI.d.cts → fbo-BYdFXRZn.d.cts} +17252 -16751
- package/dist/{fbo-BNakExWI.d.ts → fbo-BYdFXRZn.d.ts} +17252 -16751
- package/dist/index.cjs +28 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +32 -10
- package/dist/{operating-hours-Q2bwqbwy.d.cts → operating-hours-CSwAonXW.d.cts} +1 -1
- package/dist/{operating-hours-RI1V-uup.d.ts → operating-hours-DBu1OrvF.d.ts} +1 -1
- package/dist/schemas/index.cjs +24 -2
- package/dist/schemas/index.d.cts +121 -121
- package/dist/schemas/index.d.ts +121 -121
- package/dist/schemas/index.js +23 -1
- package/dist/types/index.d.cts +13 -3
- package/dist/types/index.d.ts +13 -3
- package/package.json +1 -1
- package/src/schemas/fbo.spec.ts +157 -0
- package/src/schemas/fbo.ts +126 -0
- package/src/types/fbo.ts +10 -0
package/dist/schemas/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AttachSyllabusElementForm, a as AttachSyllabusElementFormSchema, B as BaseModel, C as CourseCheckSyllabus, b as CreateFormSubmissionInput, c as CreateFormTemplateAssignmentInput, d as CreateFormTemplateInput, e as CreateSyllabusFromTemplateForm, f as CreateSyllabusFromTemplateFormSchema, g as CreateSyllabusFromTemplateResult, E as EnrollmentTrainingElement, h as EnrollmentTrainingStatus, i as EnrollmentTrainingStatusEnum, F as
|
|
1
|
+
export { A as AttachSyllabusElementForm, a as AttachSyllabusElementFormSchema, B as BaseModel, C as CourseCheckSyllabus, b as CreateFormSubmissionInput, c as CreateFormTemplateAssignmentInput, d as CreateFormTemplateInput, e as CreateSyllabusFromTemplateForm, f as CreateSyllabusFromTemplateFormSchema, g as CreateSyllabusFromTemplateResult, E as EnrollmentTrainingElement, h as EnrollmentTrainingStatus, i as EnrollmentTrainingStatusEnum, F as FBO_OPERATING_DAYS, j as FBO_SYSTEM_ROLES, k as FieldLabel, l as FieldLabelSchema, m as FormFieldType, n as FormSubmission, o as FormSubmissionSchema, p as FormSubmissionShare, q as FormSubmissionShareBase, r as FormSubmissionShareBaseSchema, s as FormSubmissionShareSchema, t as FormSubmissionSource, u as FormSubmissionStatus, v as FormTemplate, w as FormTemplateAssignment, x as FormTemplateAssignmentSchema, y as FormTemplateSchema, z as FuelUnit, G as GradeHistoryItem, D as GradingScale, H as GradingScaleForm, I as GradingScaleFormSchema, J as GradingScalePoint, K as ImpersonationParticipant, L as ImpersonationState, M as InvalidateTrainingRecordResponse, R as ReorderSyllabusElementItem, N as ReorderSyllabusElementItemSchema, O as RequiredForm, P as RequiredFormSchema, Q as RequiredFormVia, S as RequiredFormViaCrew, T as RequiredFormViaCrewSchema, U as RequiredFormViaSchema, V as ReviewFormSubmissionInput, W as SchemaField, X as SchemaFieldSchema, Y as SchemaSection, Z as SchemaSectionSchema, _ as ShowWhen, $ as ShowWhenSchema, a0 as SignOffTrainingElementForm, a1 as SignOffTrainingElementFormSchema, a2 as Signature, a3 as SignatureSchema, a4 as StoreSyllabusForm, a5 as StoreSyllabusFormSchema, a6 as SubmissionFile, a7 as SubmissionFileSchema, a8 as Syllabus, a9 as SyllabusElement, aa as SyllabusElementMutationResult, ab as SyllabusKind, ac as SyllabusKindEnum, ad as SyllabusRolloutResult, ae as SyllabusRolloutResultItem, af as SyllabusRolloutSkippedItem, ag as TemplateSchema, ah as TemplateSchemaSchema, ai as TrainingElement, aj as TrainingElementForm, ak as TrainingElementFormSchema, al as TrainingElementKind, am as TrainingElementKindEnum, an as TrainingRecord, ao as TrainingRecordEntry, ap as TrainingRecordEntryInput, aq as TrainingRecordResult, ar as TrainingRecordResultEnum, as as TrainingRecordStatus, at as TrainingRecordStatusEnum, au as TrainingSignature, av as TrainingTemplatePack, aw as UpdateFormTemplateInput, ax as UpdateSyllabusElementForm, ay as UpdateSyllabusElementFormSchema, az as UpdateSyllabusForm, aA as UpdateSyllabusFormSchema, aB as UpsertTrainingRecordForm, aC as UpsertTrainingRecordFormSchema, aD as UsedByCourse, aE as activitySchema, aF as addressSchema, aG as aircraftPositionSchema, aH as aircraftRatingSchema, aI as airplaneIssueSchema, aJ as airplaneIssueSeverityEnum, aK as airplaneIssueStatusEnum, aL as airplanePermissionSchema, aM as airplaneSchema, aN as airplaneShareInviteSchema, aO as airportSchema, aP as alertSchema, aQ as allowedDocumentTypeSchema, aR as approachTypeSchema, aS as availSchema, aT as baseMembershipSchema, aU as billingProfileSchema, aV as bookingSchema, aW as bookingWaypointSchema, aX as commentSchema, aY as companyIdentitySchema, aZ as companySchema, a_ as contactAttributeSchema, a$ as courseCheckSyllabusSchema, b0 as courseEnrollmentMetricsSchema, b1 as courseEnrollmentSchema, b2 as courseFeeSchema, b3 as courseSchema, b4 as createSyllabusFromTemplateResultSchema, b5 as documentComplianceStatus, b6 as documentRequirement, b7 as documentRequirementGroup, b8 as documentRequirementGroupAssignment, b9 as documentSchema, ba as documentShareSchema, bb as documentType, bc as enrollmentTrainingElementSchema, bd as eventSchema, be as expenseItemSchema, bf as expenseSchema, bg as extendedAirplaneSchema, bh as fboAcceptanceAxisSchema, bi as fboAcceptanceStatusSchema, bj as fboActivityCauserSchema, bk as fboActivityChangesSchema, bl as fboActivitySchema, bm as fboCompanyMemberSchema, bn as fboCompanyProfileSchema, bo as fboDecisionAxisSchema, bp as fboDecisionInputSchema, bq as fboDecisionSchema, br as fboDutyAffectedSchema, bs as fboDutySchema, bt as fboDutySeriesResponseSchema, bu as fboFlightCanSchema, bv as fboFlightSchema, bw as fboFlightStatusSchema, bx as fboFlightTypeSchema, by as fboGroundServicesSchema, bz as fboLandingsSummarySchema, bA as fboMaterialiseResultSchema, bB as fboNextDutySchema, bC as fboOccupationSchema, bD as fboOperationsSchema, bE as fboRecurrenceSchema, bF as fboRecurrenceTypeSchema, bG as fboRecurringFlightSchema, bH as fboRoleSchema, bI as fboRowCanSchema, bJ as fboStatisticsSchema, bK as fboSystemRoleSchema, bL as fboTrafficRowSchema, bM as fboTrafficRowTypeSchema, bN as fboTrafficSourceSchema, bO as fboVisibilitySchema, bP as fboWeeklyLandingSchema, bQ as feeCategoryOptionsSchema, bR as feeSchema, bS as flightLogSchema, bT as fuelUnitSchema, bU as gradeHistoryItemSchema, bV as gradingScalePointSchema, bW as gradingScaleSchema, bX as impersonationParticipantSchema, bY as impersonationStateSchema, bZ as invalidateTrainingRecordResponseSchema, b_ as invoiceSchema, b$ as landingFeeSchema, c0 as landingSchema, c1 as maintenanceEventEstimationSchema, c2 as maintenanceEventSchema, c3 as maintenanceStatusSchema, c4 as mediaCollection, c5 as mediaSchema, c6 as membershipIdentitySchema, c7 as membershipSchema, c8 as membershipSignupSchema, c9 as nestedMembershipSchema, ca as postSchema, cb as postSubjectSchema, cc as prePaidPackageAssignmentSchema, cd as prePaidPackageSchema, ce as priceSchema, cf as qualificationSchema, cg as recurringFlightSchema, ch as roleSchema, ci as runwaySchema, cj as scheduledFlightSchema, ck as settingSchema, cl as specialFlightSchema, cm as syllabusElementMutationResultSchema, cn as syllabusElementSchema, co as syllabusRolloutResultItemSchema, cp as syllabusRolloutResultSchema, cq as syllabusRolloutSkippedItemSchema, cr as syllabusSchema, cs as tagSchema, ct as ticketSchema, cu as trainingElementSchema, cv as trainingRecordEntryInputSchema, cw as trainingRecordEntrySchema, cx as trainingRecordSchema, cy as trainingSignatureSchema, cz as trainingTemplatePackSchema, cA as usedByCourseSchema, cB as userAircraftRatingSchema, cC as userQualificationSchema, cD as userSchema, cE as waypointSchema, cF as zContactDTO, cG as zMoneyObject, cH as zNetGross, cI as zNullableBool } from '../fbo-BYdFXRZn.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum FaqStatus {
|
|
@@ -29,26 +29,26 @@ declare const FaqSchema: z.ZodObject<{
|
|
|
29
29
|
name: z.ZodString;
|
|
30
30
|
email: z.ZodString;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
id: number;
|
|
32
33
|
name: string;
|
|
33
34
|
email: string;
|
|
34
|
-
id: number;
|
|
35
35
|
}, {
|
|
36
|
+
id: number;
|
|
36
37
|
name: string;
|
|
37
38
|
email: string;
|
|
38
|
-
id: number;
|
|
39
39
|
}>>>;
|
|
40
40
|
reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
41
41
|
id: z.ZodNumber;
|
|
42
42
|
name: z.ZodString;
|
|
43
43
|
email: z.ZodString;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
id: number;
|
|
45
46
|
name: string;
|
|
46
47
|
email: string;
|
|
47
|
-
id: number;
|
|
48
48
|
}, {
|
|
49
|
+
id: number;
|
|
49
50
|
name: string;
|
|
50
51
|
email: string;
|
|
51
|
-
id: number;
|
|
52
52
|
}>>>;
|
|
53
53
|
is_pending: z.ZodOptional<z.ZodBoolean>;
|
|
54
54
|
is_user_submitted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -72,9 +72,9 @@ declare const FaqSchema: z.ZodObject<{
|
|
|
72
72
|
submit?: boolean | undefined;
|
|
73
73
|
}>>;
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
id: number;
|
|
75
76
|
type: "faq";
|
|
76
77
|
status: "pending" | "approved" | "rejected";
|
|
77
|
-
id: number;
|
|
78
78
|
created_at: string;
|
|
79
79
|
updated_at: string;
|
|
80
80
|
is_active: boolean;
|
|
@@ -97,21 +97,21 @@ declare const FaqSchema: z.ZodObject<{
|
|
|
97
97
|
submit?: boolean | undefined;
|
|
98
98
|
} | undefined;
|
|
99
99
|
submitter?: {
|
|
100
|
+
id: number;
|
|
100
101
|
name: string;
|
|
101
102
|
email: string;
|
|
102
|
-
id: number;
|
|
103
103
|
} | null | undefined;
|
|
104
104
|
reviewer?: {
|
|
105
|
+
id: number;
|
|
105
106
|
name: string;
|
|
106
107
|
email: string;
|
|
107
|
-
id: number;
|
|
108
108
|
} | null | undefined;
|
|
109
109
|
is_pending?: boolean | undefined;
|
|
110
110
|
is_user_submitted?: boolean | undefined;
|
|
111
111
|
}, {
|
|
112
|
+
id: number;
|
|
112
113
|
type: "faq";
|
|
113
114
|
status: "pending" | "approved" | "rejected";
|
|
114
|
-
id: number;
|
|
115
115
|
created_at: string;
|
|
116
116
|
updated_at: string;
|
|
117
117
|
is_active: boolean;
|
|
@@ -134,14 +134,14 @@ declare const FaqSchema: z.ZodObject<{
|
|
|
134
134
|
submit?: boolean | undefined;
|
|
135
135
|
} | undefined;
|
|
136
136
|
submitter?: {
|
|
137
|
+
id: number;
|
|
137
138
|
name: string;
|
|
138
139
|
email: string;
|
|
139
|
-
id: number;
|
|
140
140
|
} | null | undefined;
|
|
141
141
|
reviewer?: {
|
|
142
|
+
id: number;
|
|
142
143
|
name: string;
|
|
143
144
|
email: string;
|
|
144
|
-
id: number;
|
|
145
145
|
} | null | undefined;
|
|
146
146
|
is_pending?: boolean | undefined;
|
|
147
147
|
is_user_submitted?: boolean | undefined;
|
|
@@ -214,21 +214,21 @@ declare const SafetyReportCategorySchema: z.ZodObject<{
|
|
|
214
214
|
created_at: z.ZodOptional<z.ZodString>;
|
|
215
215
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
216
216
|
}, "strip", z.ZodTypeAny, {
|
|
217
|
-
|
|
217
|
+
sort_order: number;
|
|
218
218
|
id: number;
|
|
219
|
+
name: string;
|
|
219
220
|
description: string | null;
|
|
220
221
|
is_active: boolean;
|
|
221
|
-
sort_order: number;
|
|
222
222
|
color: string;
|
|
223
223
|
created_at?: string | undefined;
|
|
224
224
|
updated_at?: string | undefined;
|
|
225
225
|
is_global?: boolean | undefined;
|
|
226
226
|
}, {
|
|
227
|
-
|
|
227
|
+
sort_order: number;
|
|
228
228
|
id: number;
|
|
229
|
+
name: string;
|
|
229
230
|
description: string | null;
|
|
230
231
|
is_active: boolean;
|
|
231
|
-
sort_order: number;
|
|
232
232
|
color: string;
|
|
233
233
|
created_at?: string | undefined;
|
|
234
234
|
updated_at?: string | undefined;
|
|
@@ -243,15 +243,15 @@ declare const SafetyReportCategoryFormSchema: z.ZodObject<{
|
|
|
243
243
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
244
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
245
|
name: string;
|
|
246
|
+
sort_order?: number | undefined;
|
|
246
247
|
description?: string | null | undefined;
|
|
247
248
|
is_active?: boolean | undefined;
|
|
248
|
-
sort_order?: number | undefined;
|
|
249
249
|
color?: string | null | undefined;
|
|
250
250
|
}, {
|
|
251
251
|
name: string;
|
|
252
|
+
sort_order?: number | undefined;
|
|
252
253
|
description?: string | null | undefined;
|
|
253
254
|
is_active?: boolean | undefined;
|
|
254
|
-
sort_order?: number | undefined;
|
|
255
255
|
color?: string | null | undefined;
|
|
256
256
|
}>;
|
|
257
257
|
type SafetyReportCategoryForm = z.infer<typeof SafetyReportCategoryFormSchema>;
|
|
@@ -293,21 +293,21 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
293
293
|
created_at: z.ZodOptional<z.ZodString>;
|
|
294
294
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
295
295
|
}, "strip", z.ZodTypeAny, {
|
|
296
|
-
|
|
296
|
+
sort_order: number;
|
|
297
297
|
id: number;
|
|
298
|
+
name: string;
|
|
298
299
|
description: string | null;
|
|
299
300
|
is_active: boolean;
|
|
300
|
-
sort_order: number;
|
|
301
301
|
color: string;
|
|
302
302
|
created_at?: string | undefined;
|
|
303
303
|
updated_at?: string | undefined;
|
|
304
304
|
is_global?: boolean | undefined;
|
|
305
305
|
}, {
|
|
306
|
-
|
|
306
|
+
sort_order: number;
|
|
307
307
|
id: number;
|
|
308
|
+
name: string;
|
|
308
309
|
description: string | null;
|
|
309
310
|
is_active: boolean;
|
|
310
|
-
sort_order: number;
|
|
311
311
|
color: string;
|
|
312
312
|
created_at?: string | undefined;
|
|
313
313
|
updated_at?: string | undefined;
|
|
@@ -337,8 +337,8 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
337
337
|
updated_at: z.ZodString;
|
|
338
338
|
can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
339
339
|
}, "strip", z.ZodTypeAny, {
|
|
340
|
-
status: "new" | "under_review" | "action_taken" | "closed";
|
|
341
340
|
id: number;
|
|
341
|
+
status: "new" | "under_review" | "action_taken" | "closed";
|
|
342
342
|
created_at: string;
|
|
343
343
|
updated_at: string;
|
|
344
344
|
description: string;
|
|
@@ -347,11 +347,11 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
347
347
|
location: string | null;
|
|
348
348
|
can?: Record<string, boolean> | undefined;
|
|
349
349
|
category?: {
|
|
350
|
-
|
|
350
|
+
sort_order: number;
|
|
351
351
|
id: number;
|
|
352
|
+
name: string;
|
|
352
353
|
description: string | null;
|
|
353
354
|
is_active: boolean;
|
|
354
|
-
sort_order: number;
|
|
355
355
|
color: string;
|
|
356
356
|
created_at?: string | undefined;
|
|
357
357
|
updated_at?: string | undefined;
|
|
@@ -366,8 +366,8 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
366
366
|
}[] | undefined;
|
|
367
367
|
attachments_count?: number | undefined;
|
|
368
368
|
}, {
|
|
369
|
-
status: "new" | "under_review" | "action_taken" | "closed";
|
|
370
369
|
id: number;
|
|
370
|
+
status: "new" | "under_review" | "action_taken" | "closed";
|
|
371
371
|
created_at: string;
|
|
372
372
|
updated_at: string;
|
|
373
373
|
description: string;
|
|
@@ -376,11 +376,11 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
376
376
|
location: string | null;
|
|
377
377
|
can?: Record<string, boolean> | undefined;
|
|
378
378
|
category?: {
|
|
379
|
-
|
|
379
|
+
sort_order: number;
|
|
380
380
|
id: number;
|
|
381
|
+
name: string;
|
|
381
382
|
description: string | null;
|
|
382
383
|
is_active: boolean;
|
|
383
|
-
sort_order: number;
|
|
384
384
|
color: string;
|
|
385
385
|
created_at?: string | undefined;
|
|
386
386
|
updated_at?: string | undefined;
|
|
@@ -415,21 +415,21 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
415
415
|
created_at: z.ZodOptional<z.ZodString>;
|
|
416
416
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
417
417
|
}, "strip", z.ZodTypeAny, {
|
|
418
|
-
|
|
418
|
+
sort_order: number;
|
|
419
419
|
id: number;
|
|
420
|
+
name: string;
|
|
420
421
|
description: string | null;
|
|
421
422
|
is_active: boolean;
|
|
422
|
-
sort_order: number;
|
|
423
423
|
color: string;
|
|
424
424
|
created_at?: string | undefined;
|
|
425
425
|
updated_at?: string | undefined;
|
|
426
426
|
is_global?: boolean | undefined;
|
|
427
427
|
}, {
|
|
428
|
-
|
|
428
|
+
sort_order: number;
|
|
429
429
|
id: number;
|
|
430
|
+
name: string;
|
|
430
431
|
description: string | null;
|
|
431
432
|
is_active: boolean;
|
|
432
|
-
sort_order: number;
|
|
433
433
|
color: string;
|
|
434
434
|
created_at?: string | undefined;
|
|
435
435
|
updated_at?: string | undefined;
|
|
@@ -459,8 +459,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
459
459
|
updated_at: z.ZodString;
|
|
460
460
|
can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
461
461
|
}, "strip", z.ZodTypeAny, {
|
|
462
|
-
status: "new" | "under_review" | "action_taken" | "closed";
|
|
463
462
|
id: number;
|
|
463
|
+
status: "new" | "under_review" | "action_taken" | "closed";
|
|
464
464
|
created_at: string;
|
|
465
465
|
updated_at: string;
|
|
466
466
|
description: string;
|
|
@@ -469,11 +469,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
469
469
|
location: string | null;
|
|
470
470
|
can?: Record<string, boolean> | undefined;
|
|
471
471
|
category?: {
|
|
472
|
-
|
|
472
|
+
sort_order: number;
|
|
473
473
|
id: number;
|
|
474
|
+
name: string;
|
|
474
475
|
description: string | null;
|
|
475
476
|
is_active: boolean;
|
|
476
|
-
sort_order: number;
|
|
477
477
|
color: string;
|
|
478
478
|
created_at?: string | undefined;
|
|
479
479
|
updated_at?: string | undefined;
|
|
@@ -488,8 +488,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
488
488
|
}[] | undefined;
|
|
489
489
|
attachments_count?: number | undefined;
|
|
490
490
|
}, {
|
|
491
|
-
status: "new" | "under_review" | "action_taken" | "closed";
|
|
492
491
|
id: number;
|
|
492
|
+
status: "new" | "under_review" | "action_taken" | "closed";
|
|
493
493
|
created_at: string;
|
|
494
494
|
updated_at: string;
|
|
495
495
|
description: string;
|
|
@@ -498,11 +498,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
498
498
|
location: string | null;
|
|
499
499
|
can?: Record<string, boolean> | undefined;
|
|
500
500
|
category?: {
|
|
501
|
-
|
|
501
|
+
sort_order: number;
|
|
502
502
|
id: number;
|
|
503
|
+
name: string;
|
|
503
504
|
description: string | null;
|
|
504
505
|
is_active: boolean;
|
|
505
|
-
sort_order: number;
|
|
506
506
|
color: string;
|
|
507
507
|
created_at?: string | undefined;
|
|
508
508
|
updated_at?: string | undefined;
|
|
@@ -557,8 +557,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
557
557
|
}>>;
|
|
558
558
|
}, "strip", z.ZodTypeAny, {
|
|
559
559
|
data: {
|
|
560
|
-
status: "new" | "under_review" | "action_taken" | "closed";
|
|
561
560
|
id: number;
|
|
561
|
+
status: "new" | "under_review" | "action_taken" | "closed";
|
|
562
562
|
created_at: string;
|
|
563
563
|
updated_at: string;
|
|
564
564
|
description: string;
|
|
@@ -567,11 +567,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
567
567
|
location: string | null;
|
|
568
568
|
can?: Record<string, boolean> | undefined;
|
|
569
569
|
category?: {
|
|
570
|
-
|
|
570
|
+
sort_order: number;
|
|
571
571
|
id: number;
|
|
572
|
+
name: string;
|
|
572
573
|
description: string | null;
|
|
573
574
|
is_active: boolean;
|
|
574
|
-
sort_order: number;
|
|
575
575
|
color: string;
|
|
576
576
|
created_at?: string | undefined;
|
|
577
577
|
updated_at?: string | undefined;
|
|
@@ -602,8 +602,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
602
602
|
} | undefined;
|
|
603
603
|
}, {
|
|
604
604
|
data: {
|
|
605
|
-
status: "new" | "under_review" | "action_taken" | "closed";
|
|
606
605
|
id: number;
|
|
606
|
+
status: "new" | "under_review" | "action_taken" | "closed";
|
|
607
607
|
created_at: string;
|
|
608
608
|
updated_at: string;
|
|
609
609
|
description: string;
|
|
@@ -612,11 +612,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
612
612
|
location: string | null;
|
|
613
613
|
can?: Record<string, boolean> | undefined;
|
|
614
614
|
category?: {
|
|
615
|
-
|
|
615
|
+
sort_order: number;
|
|
616
616
|
id: number;
|
|
617
|
+
name: string;
|
|
617
618
|
description: string | null;
|
|
618
619
|
is_active: boolean;
|
|
619
|
-
sort_order: number;
|
|
620
620
|
color: string;
|
|
621
621
|
created_at?: string | undefined;
|
|
622
622
|
updated_at?: string | undefined;
|
|
@@ -978,10 +978,10 @@ declare const courseMilestoneSchema: z.ZodObject<{
|
|
|
978
978
|
delete?: boolean | null | undefined;
|
|
979
979
|
}>>;
|
|
980
980
|
}, "strip", z.ZodTypeAny, {
|
|
981
|
-
|
|
981
|
+
sort_order: number;
|
|
982
982
|
id: number;
|
|
983
|
+
name: string;
|
|
983
984
|
kind: string;
|
|
984
|
-
sort_order: number;
|
|
985
985
|
course_id: number;
|
|
986
986
|
is_prerequisite: boolean;
|
|
987
987
|
type?: "courseMilestone" | undefined;
|
|
@@ -999,10 +999,10 @@ declare const courseMilestoneSchema: z.ZodObject<{
|
|
|
999
999
|
} | null | undefined;
|
|
1000
1000
|
completion_rule?: Record<string, unknown> | null | undefined;
|
|
1001
1001
|
}, {
|
|
1002
|
-
|
|
1002
|
+
sort_order: number;
|
|
1003
1003
|
id: number;
|
|
1004
|
+
name: string;
|
|
1004
1005
|
kind: string;
|
|
1005
|
-
sort_order: number;
|
|
1006
1006
|
course_id: number;
|
|
1007
1007
|
is_prerequisite: boolean;
|
|
1008
1008
|
type?: "courseMilestone" | undefined;
|
|
@@ -1033,15 +1033,15 @@ declare const CourseMilestoneFormSchema: z.ZodObject<{
|
|
|
1033
1033
|
name: string;
|
|
1034
1034
|
kind: string;
|
|
1035
1035
|
is_prerequisite: boolean;
|
|
1036
|
-
description?: string | null | undefined;
|
|
1037
1036
|
sort_order?: number | undefined;
|
|
1037
|
+
description?: string | null | undefined;
|
|
1038
1038
|
requires_form_template_id?: number | null | undefined;
|
|
1039
1039
|
completion_rule?: Record<string, unknown> | null | undefined;
|
|
1040
1040
|
}, {
|
|
1041
1041
|
name: string;
|
|
1042
|
+
sort_order?: number | undefined;
|
|
1042
1043
|
description?: string | null | undefined;
|
|
1043
1044
|
kind?: string | undefined;
|
|
1044
|
-
sort_order?: number | undefined;
|
|
1045
1045
|
is_prerequisite?: boolean | undefined;
|
|
1046
1046
|
requires_form_template_id?: number | null | undefined;
|
|
1047
1047
|
completion_rule?: Record<string, unknown> | null | undefined;
|
|
@@ -1086,10 +1086,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
|
|
|
1086
1086
|
delete?: boolean | null | undefined;
|
|
1087
1087
|
}>>;
|
|
1088
1088
|
}, "strip", z.ZodTypeAny, {
|
|
1089
|
-
|
|
1089
|
+
sort_order: number;
|
|
1090
1090
|
id: number;
|
|
1091
|
+
name: string;
|
|
1091
1092
|
kind: string;
|
|
1092
|
-
sort_order: number;
|
|
1093
1093
|
course_id: number;
|
|
1094
1094
|
is_prerequisite: boolean;
|
|
1095
1095
|
type?: "courseMilestone" | undefined;
|
|
@@ -1107,10 +1107,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
|
|
|
1107
1107
|
} | null | undefined;
|
|
1108
1108
|
completion_rule?: Record<string, unknown> | null | undefined;
|
|
1109
1109
|
}, {
|
|
1110
|
-
|
|
1110
|
+
sort_order: number;
|
|
1111
1111
|
id: number;
|
|
1112
|
+
name: string;
|
|
1112
1113
|
kind: string;
|
|
1113
|
-
sort_order: number;
|
|
1114
1114
|
course_id: number;
|
|
1115
1115
|
is_prerequisite: boolean;
|
|
1116
1116
|
type?: "courseMilestone" | undefined;
|
|
@@ -1176,10 +1176,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
|
|
|
1176
1176
|
} | undefined;
|
|
1177
1177
|
notes?: string | null | undefined;
|
|
1178
1178
|
milestone?: {
|
|
1179
|
-
|
|
1179
|
+
sort_order: number;
|
|
1180
1180
|
id: number;
|
|
1181
|
+
name: string;
|
|
1181
1182
|
kind: string;
|
|
1182
|
-
sort_order: number;
|
|
1183
1183
|
course_id: number;
|
|
1184
1184
|
is_prerequisite: boolean;
|
|
1185
1185
|
type?: "courseMilestone" | undefined;
|
|
@@ -1218,10 +1218,10 @@ declare const courseEnrollmentMilestoneSchema: z.ZodObject<{
|
|
|
1218
1218
|
} | undefined;
|
|
1219
1219
|
notes?: string | null | undefined;
|
|
1220
1220
|
milestone?: {
|
|
1221
|
-
|
|
1221
|
+
sort_order: number;
|
|
1222
1222
|
id: number;
|
|
1223
|
+
name: string;
|
|
1223
1224
|
kind: string;
|
|
1224
|
-
sort_order: number;
|
|
1225
1225
|
course_id: number;
|
|
1226
1226
|
is_prerequisite: boolean;
|
|
1227
1227
|
type?: "courseMilestone" | undefined;
|
|
@@ -1261,14 +1261,14 @@ declare const equipmentSchema: z.ZodObject<{
|
|
|
1261
1261
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1262
1262
|
manual_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1263
1263
|
}, "strip", z.ZodTypeAny, {
|
|
1264
|
-
name: string;
|
|
1265
1264
|
id: number;
|
|
1265
|
+
name: string;
|
|
1266
1266
|
type?: "equipment" | undefined;
|
|
1267
1267
|
description?: string | null | undefined;
|
|
1268
1268
|
manual_url?: string | null | undefined;
|
|
1269
1269
|
}, {
|
|
1270
|
-
name: string;
|
|
1271
1270
|
id: number;
|
|
1271
|
+
name: string;
|
|
1272
1272
|
type?: "equipment" | undefined;
|
|
1273
1273
|
description?: string | null | undefined;
|
|
1274
1274
|
manual_url?: string | null | undefined;
|
|
@@ -1464,11 +1464,11 @@ declare const NewsletterCategorySchema: z.ZodObject<{
|
|
|
1464
1464
|
created_at: z.ZodOptional<z.ZodString>;
|
|
1465
1465
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
1466
1466
|
}, "strip", z.ZodTypeAny, {
|
|
1467
|
-
|
|
1467
|
+
sort_order: number;
|
|
1468
1468
|
id: number;
|
|
1469
|
+
name: string;
|
|
1469
1470
|
key: string;
|
|
1470
1471
|
is_active: boolean;
|
|
1471
|
-
sort_order: number;
|
|
1472
1472
|
is_mandatory: boolean;
|
|
1473
1473
|
type?: "newsletter_category" | undefined;
|
|
1474
1474
|
created_at?: string | undefined;
|
|
@@ -1477,11 +1477,11 @@ declare const NewsletterCategorySchema: z.ZodObject<{
|
|
|
1477
1477
|
default_opt_in?: boolean | undefined;
|
|
1478
1478
|
is_internal?: boolean | undefined;
|
|
1479
1479
|
}, {
|
|
1480
|
-
|
|
1480
|
+
sort_order: number;
|
|
1481
1481
|
id: number;
|
|
1482
|
+
name: string;
|
|
1482
1483
|
key: string;
|
|
1483
1484
|
is_active: boolean;
|
|
1484
|
-
sort_order: number;
|
|
1485
1485
|
is_mandatory: boolean;
|
|
1486
1486
|
type?: "newsletter_category" | undefined;
|
|
1487
1487
|
created_at?: string | undefined;
|
|
@@ -1639,11 +1639,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1639
1639
|
created_at: z.ZodOptional<z.ZodString>;
|
|
1640
1640
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
1641
1641
|
}, "strip", z.ZodTypeAny, {
|
|
1642
|
-
|
|
1642
|
+
sort_order: number;
|
|
1643
1643
|
id: number;
|
|
1644
|
+
name: string;
|
|
1644
1645
|
key: string;
|
|
1645
1646
|
is_active: boolean;
|
|
1646
|
-
sort_order: number;
|
|
1647
1647
|
is_mandatory: boolean;
|
|
1648
1648
|
type?: "newsletter_category" | undefined;
|
|
1649
1649
|
created_at?: string | undefined;
|
|
@@ -1652,11 +1652,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1652
1652
|
default_opt_in?: boolean | undefined;
|
|
1653
1653
|
is_internal?: boolean | undefined;
|
|
1654
1654
|
}, {
|
|
1655
|
-
|
|
1655
|
+
sort_order: number;
|
|
1656
1656
|
id: number;
|
|
1657
|
+
name: string;
|
|
1657
1658
|
key: string;
|
|
1658
1659
|
is_active: boolean;
|
|
1659
|
-
sort_order: number;
|
|
1660
1660
|
is_mandatory: boolean;
|
|
1661
1661
|
type?: "newsletter_category" | undefined;
|
|
1662
1662
|
created_at?: string | undefined;
|
|
@@ -1803,12 +1803,12 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1803
1803
|
name: z.ZodString;
|
|
1804
1804
|
email: z.ZodOptional<z.ZodString>;
|
|
1805
1805
|
}, "strip", z.ZodTypeAny, {
|
|
1806
|
-
name: string;
|
|
1807
1806
|
id: number;
|
|
1807
|
+
name: string;
|
|
1808
1808
|
email?: string | undefined;
|
|
1809
1809
|
}, {
|
|
1810
|
-
name: string;
|
|
1811
1810
|
id: number;
|
|
1811
|
+
name: string;
|
|
1812
1812
|
email?: string | undefined;
|
|
1813
1813
|
}>>>;
|
|
1814
1814
|
can: z.ZodOptional<z.ZodObject<{
|
|
@@ -1827,8 +1827,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1827
1827
|
created_at: z.ZodOptional<z.ZodString>;
|
|
1828
1828
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
1829
1829
|
}, "strip", z.ZodTypeAny, {
|
|
1830
|
-
name: string;
|
|
1831
1830
|
id: number;
|
|
1831
|
+
name: string;
|
|
1832
1832
|
is_active: boolean;
|
|
1833
1833
|
company_id: number | null;
|
|
1834
1834
|
schema_version: number;
|
|
@@ -1872,11 +1872,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1872
1872
|
duplicate?: boolean | undefined;
|
|
1873
1873
|
} | undefined;
|
|
1874
1874
|
category?: {
|
|
1875
|
-
|
|
1875
|
+
sort_order: number;
|
|
1876
1876
|
id: number;
|
|
1877
|
+
name: string;
|
|
1877
1878
|
key: string;
|
|
1878
1879
|
is_active: boolean;
|
|
1879
|
-
sort_order: number;
|
|
1880
1880
|
is_mandatory: boolean;
|
|
1881
1881
|
type?: "newsletter_category" | undefined;
|
|
1882
1882
|
created_at?: string | undefined;
|
|
@@ -1888,14 +1888,14 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1888
1888
|
created_by?: number | null | undefined;
|
|
1889
1889
|
is_system?: boolean | undefined;
|
|
1890
1890
|
creator?: {
|
|
1891
|
-
name: string;
|
|
1892
1891
|
id: number;
|
|
1892
|
+
name: string;
|
|
1893
1893
|
email?: string | undefined;
|
|
1894
1894
|
} | null | undefined;
|
|
1895
1895
|
preheader?: string | null | undefined;
|
|
1896
1896
|
}, {
|
|
1897
|
-
name: string;
|
|
1898
1897
|
id: number;
|
|
1898
|
+
name: string;
|
|
1899
1899
|
is_active: boolean;
|
|
1900
1900
|
company_id: number | null;
|
|
1901
1901
|
schema_version: number;
|
|
@@ -1939,11 +1939,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1939
1939
|
duplicate?: boolean | undefined;
|
|
1940
1940
|
} | undefined;
|
|
1941
1941
|
category?: {
|
|
1942
|
-
|
|
1942
|
+
sort_order: number;
|
|
1943
1943
|
id: number;
|
|
1944
|
+
name: string;
|
|
1944
1945
|
key: string;
|
|
1945
1946
|
is_active: boolean;
|
|
1946
|
-
sort_order: number;
|
|
1947
1947
|
is_mandatory: boolean;
|
|
1948
1948
|
type?: "newsletter_category" | undefined;
|
|
1949
1949
|
created_at?: string | undefined;
|
|
@@ -1955,8 +1955,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1955
1955
|
created_by?: number | null | undefined;
|
|
1956
1956
|
is_system?: boolean | undefined;
|
|
1957
1957
|
creator?: {
|
|
1958
|
-
name: string;
|
|
1959
1958
|
id: number;
|
|
1959
|
+
name: string;
|
|
1960
1960
|
email?: string | undefined;
|
|
1961
1961
|
} | null | undefined;
|
|
1962
1962
|
preheader?: string | null | undefined;
|
|
@@ -2339,11 +2339,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2339
2339
|
created_at: z.ZodOptional<z.ZodString>;
|
|
2340
2340
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
2341
2341
|
}, "strip", z.ZodTypeAny, {
|
|
2342
|
-
|
|
2342
|
+
sort_order: number;
|
|
2343
2343
|
id: number;
|
|
2344
|
+
name: string;
|
|
2344
2345
|
key: string;
|
|
2345
2346
|
is_active: boolean;
|
|
2346
|
-
sort_order: number;
|
|
2347
2347
|
is_mandatory: boolean;
|
|
2348
2348
|
type?: "newsletter_category" | undefined;
|
|
2349
2349
|
created_at?: string | undefined;
|
|
@@ -2352,11 +2352,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2352
2352
|
default_opt_in?: boolean | undefined;
|
|
2353
2353
|
is_internal?: boolean | undefined;
|
|
2354
2354
|
}, {
|
|
2355
|
-
|
|
2355
|
+
sort_order: number;
|
|
2356
2356
|
id: number;
|
|
2357
|
+
name: string;
|
|
2357
2358
|
key: string;
|
|
2358
2359
|
is_active: boolean;
|
|
2359
|
-
sort_order: number;
|
|
2360
2360
|
is_mandatory: boolean;
|
|
2361
2361
|
type?: "newsletter_category" | undefined;
|
|
2362
2362
|
created_at?: string | undefined;
|
|
@@ -2503,12 +2503,12 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2503
2503
|
name: z.ZodString;
|
|
2504
2504
|
email: z.ZodOptional<z.ZodString>;
|
|
2505
2505
|
}, "strip", z.ZodTypeAny, {
|
|
2506
|
-
name: string;
|
|
2507
2506
|
id: number;
|
|
2507
|
+
name: string;
|
|
2508
2508
|
email?: string | undefined;
|
|
2509
2509
|
}, {
|
|
2510
|
-
name: string;
|
|
2511
2510
|
id: number;
|
|
2511
|
+
name: string;
|
|
2512
2512
|
email?: string | undefined;
|
|
2513
2513
|
}>>>>;
|
|
2514
2514
|
can: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -2527,9 +2527,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2527
2527
|
created_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2528
2528
|
updated_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2529
2529
|
}, "strip", z.ZodTypeAny, {
|
|
2530
|
+
id?: number | undefined;
|
|
2530
2531
|
name?: string | undefined;
|
|
2531
2532
|
type?: "newsletter_template" | undefined;
|
|
2532
|
-
id?: number | undefined;
|
|
2533
2533
|
created_at?: string | undefined;
|
|
2534
2534
|
updated_at?: string | undefined;
|
|
2535
2535
|
description?: string | null | undefined;
|
|
@@ -2542,11 +2542,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2542
2542
|
company_id?: number | null | undefined;
|
|
2543
2543
|
schema_version?: number | undefined;
|
|
2544
2544
|
category?: {
|
|
2545
|
-
|
|
2545
|
+
sort_order: number;
|
|
2546
2546
|
id: number;
|
|
2547
|
+
name: string;
|
|
2547
2548
|
key: string;
|
|
2548
2549
|
is_active: boolean;
|
|
2549
|
-
sort_order: number;
|
|
2550
2550
|
is_mandatory: boolean;
|
|
2551
2551
|
type?: "newsletter_category" | undefined;
|
|
2552
2552
|
created_at?: string | undefined;
|
|
@@ -2586,17 +2586,17 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2586
2586
|
} | undefined;
|
|
2587
2587
|
is_system?: boolean | undefined;
|
|
2588
2588
|
creator?: {
|
|
2589
|
-
name: string;
|
|
2590
2589
|
id: number;
|
|
2590
|
+
name: string;
|
|
2591
2591
|
email?: string | undefined;
|
|
2592
2592
|
} | null | undefined;
|
|
2593
2593
|
newsletter_category_id?: number | undefined;
|
|
2594
2594
|
subject?: string | undefined;
|
|
2595
2595
|
preheader?: string | null | undefined;
|
|
2596
2596
|
}, {
|
|
2597
|
+
id?: number | undefined;
|
|
2597
2598
|
name?: string | undefined;
|
|
2598
2599
|
type?: "newsletter_template" | undefined;
|
|
2599
|
-
id?: number | undefined;
|
|
2600
2600
|
created_at?: string | undefined;
|
|
2601
2601
|
updated_at?: string | undefined;
|
|
2602
2602
|
description?: string | null | undefined;
|
|
@@ -2609,11 +2609,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2609
2609
|
company_id?: number | null | undefined;
|
|
2610
2610
|
schema_version?: number | undefined;
|
|
2611
2611
|
category?: {
|
|
2612
|
-
|
|
2612
|
+
sort_order: number;
|
|
2613
2613
|
id: number;
|
|
2614
|
+
name: string;
|
|
2614
2615
|
key: string;
|
|
2615
2616
|
is_active: boolean;
|
|
2616
|
-
sort_order: number;
|
|
2617
2617
|
is_mandatory: boolean;
|
|
2618
2618
|
type?: "newsletter_category" | undefined;
|
|
2619
2619
|
created_at?: string | undefined;
|
|
@@ -2653,8 +2653,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2653
2653
|
} | undefined;
|
|
2654
2654
|
is_system?: boolean | undefined;
|
|
2655
2655
|
creator?: {
|
|
2656
|
-
name: string;
|
|
2657
2656
|
id: number;
|
|
2657
|
+
name: string;
|
|
2658
2658
|
email?: string | undefined;
|
|
2659
2659
|
} | null | undefined;
|
|
2660
2660
|
newsletter_category_id?: number | undefined;
|
|
@@ -2678,11 +2678,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2678
2678
|
created_at: z.ZodOptional<z.ZodString>;
|
|
2679
2679
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
2680
2680
|
}, "strip", z.ZodTypeAny, {
|
|
2681
|
-
|
|
2681
|
+
sort_order: number;
|
|
2682
2682
|
id: number;
|
|
2683
|
+
name: string;
|
|
2683
2684
|
key: string;
|
|
2684
2685
|
is_active: boolean;
|
|
2685
|
-
sort_order: number;
|
|
2686
2686
|
is_mandatory: boolean;
|
|
2687
2687
|
type?: "newsletter_category" | undefined;
|
|
2688
2688
|
created_at?: string | undefined;
|
|
@@ -2691,11 +2691,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2691
2691
|
default_opt_in?: boolean | undefined;
|
|
2692
2692
|
is_internal?: boolean | undefined;
|
|
2693
2693
|
}, {
|
|
2694
|
-
|
|
2694
|
+
sort_order: number;
|
|
2695
2695
|
id: number;
|
|
2696
|
+
name: string;
|
|
2696
2697
|
key: string;
|
|
2697
2698
|
is_active: boolean;
|
|
2698
|
-
sort_order: number;
|
|
2699
2699
|
is_mandatory: boolean;
|
|
2700
2700
|
type?: "newsletter_category" | undefined;
|
|
2701
2701
|
created_at?: string | undefined;
|
|
@@ -2931,12 +2931,12 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2931
2931
|
name: z.ZodString;
|
|
2932
2932
|
email: z.ZodOptional<z.ZodString>;
|
|
2933
2933
|
}, "strip", z.ZodTypeAny, {
|
|
2934
|
-
name: string;
|
|
2935
2934
|
id: number;
|
|
2935
|
+
name: string;
|
|
2936
2936
|
email?: string | undefined;
|
|
2937
2937
|
}, {
|
|
2938
|
-
name: string;
|
|
2939
2938
|
id: number;
|
|
2939
|
+
name: string;
|
|
2940
2940
|
email?: string | undefined;
|
|
2941
2941
|
}>>>;
|
|
2942
2942
|
can: z.ZodOptional<z.ZodObject<{
|
|
@@ -2964,9 +2964,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2964
2964
|
created_at: z.ZodOptional<z.ZodString>;
|
|
2965
2965
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
2966
2966
|
}, "strip", z.ZodTypeAny, {
|
|
2967
|
+
id: number;
|
|
2967
2968
|
name: string;
|
|
2968
2969
|
status: NewsletterCampaignStatus;
|
|
2969
|
-
id: number;
|
|
2970
2970
|
company_id: number | null;
|
|
2971
2971
|
schema_snapshot: {
|
|
2972
2972
|
blocks: ({
|
|
@@ -3034,11 +3034,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3034
3034
|
test_send?: boolean | undefined;
|
|
3035
3035
|
} | undefined;
|
|
3036
3036
|
category?: {
|
|
3037
|
-
|
|
3037
|
+
sort_order: number;
|
|
3038
3038
|
id: number;
|
|
3039
|
+
name: string;
|
|
3039
3040
|
key: string;
|
|
3040
3041
|
is_active: boolean;
|
|
3041
|
-
sort_order: number;
|
|
3042
3042
|
is_mandatory: boolean;
|
|
3043
3043
|
type?: "newsletter_category" | undefined;
|
|
3044
3044
|
created_at?: string | undefined;
|
|
@@ -3050,9 +3050,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3050
3050
|
scheduled_at?: string | null | undefined;
|
|
3051
3051
|
is_system?: boolean | undefined;
|
|
3052
3052
|
template?: {
|
|
3053
|
+
id?: number | undefined;
|
|
3053
3054
|
name?: string | undefined;
|
|
3054
3055
|
type?: "newsletter_template" | undefined;
|
|
3055
|
-
id?: number | undefined;
|
|
3056
3056
|
created_at?: string | undefined;
|
|
3057
3057
|
updated_at?: string | undefined;
|
|
3058
3058
|
description?: string | null | undefined;
|
|
@@ -3065,11 +3065,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3065
3065
|
company_id?: number | null | undefined;
|
|
3066
3066
|
schema_version?: number | undefined;
|
|
3067
3067
|
category?: {
|
|
3068
|
-
|
|
3068
|
+
sort_order: number;
|
|
3069
3069
|
id: number;
|
|
3070
|
+
name: string;
|
|
3070
3071
|
key: string;
|
|
3071
3072
|
is_active: boolean;
|
|
3072
|
-
sort_order: number;
|
|
3073
3073
|
is_mandatory: boolean;
|
|
3074
3074
|
type?: "newsletter_category" | undefined;
|
|
3075
3075
|
created_at?: string | undefined;
|
|
@@ -3109,8 +3109,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3109
3109
|
} | undefined;
|
|
3110
3110
|
is_system?: boolean | undefined;
|
|
3111
3111
|
creator?: {
|
|
3112
|
-
name: string;
|
|
3113
3112
|
id: number;
|
|
3113
|
+
name: string;
|
|
3114
3114
|
email?: string | undefined;
|
|
3115
3115
|
} | null | undefined;
|
|
3116
3116
|
newsletter_category_id?: number | undefined;
|
|
@@ -3123,14 +3123,14 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3123
3123
|
cancelled_at?: string | null | undefined;
|
|
3124
3124
|
sent_by_user_id?: number | null | undefined;
|
|
3125
3125
|
sent_by?: {
|
|
3126
|
-
name: string;
|
|
3127
3126
|
id: number;
|
|
3127
|
+
name: string;
|
|
3128
3128
|
email?: string | undefined;
|
|
3129
3129
|
} | null | undefined;
|
|
3130
3130
|
}, {
|
|
3131
|
+
id: number;
|
|
3131
3132
|
name: string;
|
|
3132
3133
|
status: NewsletterCampaignStatus;
|
|
3133
|
-
id: number;
|
|
3134
3134
|
company_id: number | null;
|
|
3135
3135
|
schema_snapshot: {
|
|
3136
3136
|
blocks: ({
|
|
@@ -3198,11 +3198,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3198
3198
|
test_send?: boolean | undefined;
|
|
3199
3199
|
} | undefined;
|
|
3200
3200
|
category?: {
|
|
3201
|
-
|
|
3201
|
+
sort_order: number;
|
|
3202
3202
|
id: number;
|
|
3203
|
+
name: string;
|
|
3203
3204
|
key: string;
|
|
3204
3205
|
is_active: boolean;
|
|
3205
|
-
sort_order: number;
|
|
3206
3206
|
is_mandatory: boolean;
|
|
3207
3207
|
type?: "newsletter_category" | undefined;
|
|
3208
3208
|
created_at?: string | undefined;
|
|
@@ -3214,9 +3214,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3214
3214
|
scheduled_at?: string | null | undefined;
|
|
3215
3215
|
is_system?: boolean | undefined;
|
|
3216
3216
|
template?: {
|
|
3217
|
+
id?: number | undefined;
|
|
3217
3218
|
name?: string | undefined;
|
|
3218
3219
|
type?: "newsletter_template" | undefined;
|
|
3219
|
-
id?: number | undefined;
|
|
3220
3220
|
created_at?: string | undefined;
|
|
3221
3221
|
updated_at?: string | undefined;
|
|
3222
3222
|
description?: string | null | undefined;
|
|
@@ -3229,11 +3229,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3229
3229
|
company_id?: number | null | undefined;
|
|
3230
3230
|
schema_version?: number | undefined;
|
|
3231
3231
|
category?: {
|
|
3232
|
-
|
|
3232
|
+
sort_order: number;
|
|
3233
3233
|
id: number;
|
|
3234
|
+
name: string;
|
|
3234
3235
|
key: string;
|
|
3235
3236
|
is_active: boolean;
|
|
3236
|
-
sort_order: number;
|
|
3237
3237
|
is_mandatory: boolean;
|
|
3238
3238
|
type?: "newsletter_category" | undefined;
|
|
3239
3239
|
created_at?: string | undefined;
|
|
@@ -3273,8 +3273,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3273
3273
|
} | undefined;
|
|
3274
3274
|
is_system?: boolean | undefined;
|
|
3275
3275
|
creator?: {
|
|
3276
|
-
name: string;
|
|
3277
3276
|
id: number;
|
|
3277
|
+
name: string;
|
|
3278
3278
|
email?: string | undefined;
|
|
3279
3279
|
} | null | undefined;
|
|
3280
3280
|
newsletter_category_id?: number | undefined;
|
|
@@ -3287,8 +3287,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3287
3287
|
cancelled_at?: string | null | undefined;
|
|
3288
3288
|
sent_by_user_id?: number | null | undefined;
|
|
3289
3289
|
sent_by?: {
|
|
3290
|
-
name: string;
|
|
3291
3290
|
id: number;
|
|
3291
|
+
name: string;
|
|
3292
3292
|
email?: string | undefined;
|
|
3293
3293
|
} | null | undefined;
|
|
3294
3294
|
}>;
|
|
@@ -3616,12 +3616,12 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
|
|
|
3616
3616
|
name: z.ZodString;
|
|
3617
3617
|
email: z.ZodOptional<z.ZodString>;
|
|
3618
3618
|
}, "strip", z.ZodTypeAny, {
|
|
3619
|
-
name: string;
|
|
3620
3619
|
id: number;
|
|
3620
|
+
name: string;
|
|
3621
3621
|
email?: string | undefined;
|
|
3622
3622
|
}, {
|
|
3623
|
-
name: string;
|
|
3624
3623
|
id: number;
|
|
3624
|
+
name: string;
|
|
3625
3625
|
email?: string | undefined;
|
|
3626
3626
|
}>>>;
|
|
3627
3627
|
email: z.ZodString;
|
|
@@ -3633,15 +3633,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
|
|
|
3633
3633
|
bounced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3634
3634
|
complained_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3635
3635
|
}, "strip", z.ZodTypeAny, {
|
|
3636
|
+
id: number;
|
|
3636
3637
|
email: string;
|
|
3637
3638
|
status: NewsletterRecipientStatus;
|
|
3638
|
-
id: number;
|
|
3639
3639
|
user_id: number | null;
|
|
3640
3640
|
newsletter_campaign_id: number;
|
|
3641
3641
|
type?: "newsletter_campaign_recipient" | undefined;
|
|
3642
3642
|
user?: {
|
|
3643
|
-
name: string;
|
|
3644
3643
|
id: number;
|
|
3644
|
+
name: string;
|
|
3645
3645
|
email?: string | undefined;
|
|
3646
3646
|
} | null | undefined;
|
|
3647
3647
|
error?: string | null | undefined;
|
|
@@ -3651,15 +3651,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
|
|
|
3651
3651
|
bounced_at?: string | null | undefined;
|
|
3652
3652
|
complained_at?: string | null | undefined;
|
|
3653
3653
|
}, {
|
|
3654
|
+
id: number;
|
|
3654
3655
|
email: string;
|
|
3655
3656
|
status: NewsletterRecipientStatus;
|
|
3656
|
-
id: number;
|
|
3657
3657
|
user_id: number | null;
|
|
3658
3658
|
newsletter_campaign_id: number;
|
|
3659
3659
|
type?: "newsletter_campaign_recipient" | undefined;
|
|
3660
3660
|
user?: {
|
|
3661
|
-
name: string;
|
|
3662
3661
|
id: number;
|
|
3662
|
+
name: string;
|
|
3663
3663
|
email?: string | undefined;
|
|
3664
3664
|
} | null | undefined;
|
|
3665
3665
|
error?: string | null | undefined;
|
|
@@ -4104,8 +4104,8 @@ declare const TodoSchema: z.ZodObject<{
|
|
|
4104
4104
|
}>;
|
|
4105
4105
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4106
4106
|
}, "strip", z.ZodTypeAny, {
|
|
4107
|
-
key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
|
|
4108
4107
|
title: string;
|
|
4108
|
+
key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
|
|
4109
4109
|
priority: "low" | "normal" | "high";
|
|
4110
4110
|
is_overdue: boolean;
|
|
4111
4111
|
ref_type: string;
|
|
@@ -4120,8 +4120,8 @@ declare const TodoSchema: z.ZodObject<{
|
|
|
4120
4120
|
due_date?: string | null | undefined;
|
|
4121
4121
|
subtitle?: string | null | undefined;
|
|
4122
4122
|
}, {
|
|
4123
|
-
key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
|
|
4124
4123
|
title: string;
|
|
4124
|
+
key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
|
|
4125
4125
|
ref_type: string;
|
|
4126
4126
|
ref_id: number;
|
|
4127
4127
|
action: {
|