@updraft-solutions/mcrit-sdk 0.14.3 → 0.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-S3FZQ66N.js → chunk-CDLXKNMA.js} +34 -1
- package/dist/{chunk-562POFCT.cjs → chunk-JLIYDBW4.cjs} +34 -1
- package/dist/{fbo-CsOm51Z3.d.cts → fbo-CbJQnC91.d.cts} +18181 -17692
- package/dist/{fbo-CsOm51Z3.d.ts → fbo-CbJQnC91.d.ts} +18181 -17692
- package/dist/index.cjs +18 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +18 -6
- package/dist/{operating-hours-zg95Qlxz.d.cts → operating-hours-B_S7kQ98.d.cts} +1 -1
- package/dist/{operating-hours-c3SukLvt.d.ts → operating-hours-mt1E3mkW.d.ts} +1 -1
- package/dist/schemas/index.cjs +14 -2
- package/dist/schemas/index.d.cts +123 -123
- package/dist/schemas/index.d.ts +123 -123
- package/dist/schemas/index.js +13 -1
- package/dist/types/index.d.cts +8 -3
- package/dist/types/index.d.ts +8 -3
- package/package.json +1 -1
- package/src/schemas/fbo.spec.ts +61 -2
- package/src/schemas/fbo.ts +51 -2
- package/src/types/fbo.ts +5 -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_SYSTEM_ROLES, j as FieldLabel, k as FieldLabelSchema, l as FormFieldType, m as FormSubmission, n as FormSubmissionSchema, o as FormSubmissionShare, p as FormSubmissionShareBase, q as FormSubmissionShareBaseSchema, r as FormSubmissionShareSchema, s as FormSubmissionSource, t as FormSubmissionStatus, u as FormTemplate, v as FormTemplateAssignment, w as FormTemplateAssignmentSchema, x as FormTemplateSchema, y as FuelUnit, G as GradeHistoryItem, z as GradingScale, D as GradingScaleForm, H as GradingScaleFormSchema, I as GradingScalePoint, J as ImpersonationParticipant, K as ImpersonationState, L as InvalidateTrainingRecordResponse, R as ReorderSyllabusElementItem, M as ReorderSyllabusElementItemSchema, N as RequiredForm, O as RequiredFormSchema, P as RequiredFormVia, Q as RequiredFormViaCrew, S as RequiredFormViaCrewSchema, T as RequiredFormViaSchema, U as ReviewFormSubmissionInput, V as SchemaField, W as SchemaFieldSchema, X as SchemaSection, Y as SchemaSectionSchema, Z as ShowWhen, _ as ShowWhenSchema, $ as SignOffTrainingElementForm, a0 as SignOffTrainingElementFormSchema, a1 as Signature, a2 as SignatureSchema, a3 as StoreSyllabusForm, a4 as StoreSyllabusFormSchema, a5 as SubmissionFile, a6 as SubmissionFileSchema, a7 as Syllabus, a8 as SyllabusElement, a9 as SyllabusElementMutationResult, aa as SyllabusKind, ab as SyllabusKindEnum, ac as SyllabusRolloutResult, ad as SyllabusRolloutResultItem, ae as SyllabusRolloutSkippedItem, af as TemplateSchema, ag as TemplateSchemaSchema, ah as TrainingElement, ai as TrainingElementForm, aj as TrainingElementFormSchema, ak as TrainingElementKind, al as TrainingElementKindEnum, am as TrainingRecord, an as TrainingRecordEntry, ao as TrainingRecordEntryInput, ap as TrainingRecordResult, aq as TrainingRecordResultEnum, ar as TrainingRecordStatus, as as TrainingRecordStatusEnum, at as TrainingSignature, au as TrainingTemplatePack, av as UpdateFormTemplateInput, aw as UpdateSyllabusElementForm, ax as UpdateSyllabusElementFormSchema, ay as UpdateSyllabusForm, az as UpdateSyllabusFormSchema, aA as UpsertTrainingRecordForm, aB as UpsertTrainingRecordFormSchema, aC as UsedByCourse, aD as activitySchema, aE as addressSchema, aF as aircraftPositionSchema, aG as aircraftRatingSchema, aH as airplaneIssueSchema, aI as airplaneIssueSeverityEnum, aJ as airplaneIssueStatusEnum, aK as airplanePermissionSchema, aL as airplaneSchema, aM as airplaneShareInviteSchema, aN as airportSchema, aO as alertSchema, aP as allowedDocumentTypeSchema, aQ as approachTypeSchema, aR as availSchema, aS as baseMembershipSchema, aT as billingProfileSchema, aU as bookingSchema, aV as bookingWaypointSchema, aW as commentSchema, aX as companyIdentitySchema, aY as companySchema, aZ as contactAttributeSchema, a_ as courseCheckSyllabusSchema, a$ as courseEnrollmentMetricsSchema, b0 as courseEnrollmentSchema, b1 as courseFeeSchema, b2 as courseSchema, b3 as createSyllabusFromTemplateResultSchema, b4 as documentComplianceStatus, b5 as documentRequirement, b6 as documentRequirementGroup, b7 as documentRequirementGroupAssignment, b8 as documentSchema, b9 as documentShareSchema, ba as documentType, bb as enrollmentTrainingElementSchema, bc as eventSchema, bd as expenseItemSchema, be as expenseSchema, bf as extendedAirplaneSchema, bg as fboAcceptanceAxisSchema, bh as fboAcceptanceStatusSchema, bi as fboCompanyMemberSchema, bj as fboCompanyProfileSchema, bk as fboDecisionAxisSchema, bl as fboDecisionInputSchema, bm as fboDecisionSchema, bn as fboDutySchema, bo as fboFlightCanSchema, bp as fboFlightSchema, bq as fboFlightStatusSchema, br as fboFlightTypeSchema, bs as fboGroundServicesSchema, bt as fboOccupationSchema, bu as fboRoleSchema, bv as fboRowCanSchema, bw as fboSystemRoleSchema, bx as fboTrafficRowSchema, by as fboTrafficSourceSchema, bz as fboVisibilitySchema, bA as feeCategoryOptionsSchema, bB as feeSchema, bC as flightLogSchema, bD as fuelUnitSchema, bE as gradeHistoryItemSchema, bF as gradingScalePointSchema, bG as gradingScaleSchema, bH as impersonationParticipantSchema, bI as impersonationStateSchema, bJ as invalidateTrainingRecordResponseSchema, bK as invoiceSchema, bL as landingFeeSchema, bM as landingSchema, bN as maintenanceEventEstimationSchema, bO as maintenanceEventSchema, bP as maintenanceStatusSchema, bQ as mediaCollection, bR as mediaSchema, bS as membershipIdentitySchema, bT as membershipSchema, bU as membershipSignupSchema, bV as nestedMembershipSchema, bW as postSchema, bX as postSubjectSchema, bY as prePaidPackageAssignmentSchema, bZ as prePaidPackageSchema, b_ as priceSchema, b$ as qualificationSchema, c0 as recurringFlightSchema, c1 as roleSchema, c2 as runwaySchema, c3 as scheduledFlightSchema, c4 as settingSchema, c5 as specialFlightSchema, c6 as syllabusElementMutationResultSchema, c7 as syllabusElementSchema, c8 as syllabusRolloutResultItemSchema, c9 as syllabusRolloutResultSchema, ca as syllabusRolloutSkippedItemSchema, cb as syllabusSchema, cc as tagSchema, cd as ticketSchema, ce as trainingElementSchema, cf as trainingRecordEntryInputSchema, cg as trainingRecordEntrySchema, ch as trainingRecordSchema, ci as trainingSignatureSchema, cj as trainingTemplatePackSchema, ck as usedByCourseSchema, cl as userAircraftRatingSchema, cm as userQualificationSchema, cn as userSchema, co as waypointSchema, cp as zContactDTO, cq as zMoneyObject, cr as zNetGross, cs as zNullableBool } from '../fbo-CbJQnC91.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;
|
|
33
32
|
name: string;
|
|
34
33
|
email: string;
|
|
35
|
-
}, {
|
|
36
34
|
id: number;
|
|
35
|
+
}, {
|
|
37
36
|
name: string;
|
|
38
37
|
email: string;
|
|
38
|
+
id: number;
|
|
39
39
|
}>>>;
|
|
40
40
|
reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
41
41
|
id: z.ZodNumber;
|
|
42
42
|
name: z.ZodString;
|
|
43
43
|
email: z.ZodString;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
id: number;
|
|
46
45
|
name: string;
|
|
47
46
|
email: string;
|
|
48
|
-
}, {
|
|
49
47
|
id: number;
|
|
48
|
+
}, {
|
|
50
49
|
name: string;
|
|
51
50
|
email: string;
|
|
51
|
+
id: number;
|
|
52
52
|
}>>>;
|
|
53
53
|
is_pending: z.ZodOptional<z.ZodBoolean>;
|
|
54
54
|
is_user_submitted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -72,9 +72,9 @@ declare const FaqSchema: z.ZodObject<{
|
|
|
72
72
|
submit?: boolean | undefined;
|
|
73
73
|
}>>;
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
|
-
id: number;
|
|
76
75
|
type: "faq";
|
|
77
76
|
status: "pending" | "approved" | "rejected";
|
|
77
|
+
id: number;
|
|
78
78
|
created_at: string;
|
|
79
79
|
updated_at: string;
|
|
80
80
|
is_active: boolean;
|
|
@@ -97,21 +97,21 @@ declare const FaqSchema: z.ZodObject<{
|
|
|
97
97
|
submit?: boolean | undefined;
|
|
98
98
|
} | undefined;
|
|
99
99
|
submitter?: {
|
|
100
|
-
id: number;
|
|
101
100
|
name: string;
|
|
102
101
|
email: string;
|
|
102
|
+
id: number;
|
|
103
103
|
} | null | undefined;
|
|
104
104
|
reviewer?: {
|
|
105
|
-
id: number;
|
|
106
105
|
name: string;
|
|
107
106
|
email: string;
|
|
107
|
+
id: number;
|
|
108
108
|
} | null | undefined;
|
|
109
109
|
is_pending?: boolean | undefined;
|
|
110
110
|
is_user_submitted?: boolean | undefined;
|
|
111
111
|
}, {
|
|
112
|
-
id: number;
|
|
113
112
|
type: "faq";
|
|
114
113
|
status: "pending" | "approved" | "rejected";
|
|
114
|
+
id: number;
|
|
115
115
|
created_at: string;
|
|
116
116
|
updated_at: string;
|
|
117
117
|
is_active: boolean;
|
|
@@ -134,14 +134,14 @@ declare const FaqSchema: z.ZodObject<{
|
|
|
134
134
|
submit?: boolean | undefined;
|
|
135
135
|
} | undefined;
|
|
136
136
|
submitter?: {
|
|
137
|
-
id: number;
|
|
138
137
|
name: string;
|
|
139
138
|
email: string;
|
|
139
|
+
id: number;
|
|
140
140
|
} | null | undefined;
|
|
141
141
|
reviewer?: {
|
|
142
|
-
id: number;
|
|
143
142
|
name: string;
|
|
144
143
|
email: string;
|
|
144
|
+
id: number;
|
|
145
145
|
} | null | undefined;
|
|
146
146
|
is_pending?: boolean | undefined;
|
|
147
147
|
is_user_submitted?: boolean | undefined;
|
|
@@ -214,21 +214,21 @@ declare const SafetyReportCategorySchema: z.ZodObject<{
|
|
|
214
214
|
created_at: z.ZodOptional<z.ZodString>;
|
|
215
215
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
216
216
|
}, "strip", z.ZodTypeAny, {
|
|
217
|
-
sort_order: number;
|
|
218
|
-
id: number;
|
|
219
217
|
name: string;
|
|
218
|
+
id: number;
|
|
220
219
|
description: string | null;
|
|
221
220
|
is_active: boolean;
|
|
221
|
+
sort_order: number;
|
|
222
222
|
color: string;
|
|
223
223
|
created_at?: string | undefined;
|
|
224
224
|
updated_at?: string | undefined;
|
|
225
225
|
is_global?: boolean | undefined;
|
|
226
226
|
}, {
|
|
227
|
-
sort_order: number;
|
|
228
|
-
id: number;
|
|
229
227
|
name: string;
|
|
228
|
+
id: number;
|
|
230
229
|
description: string | null;
|
|
231
230
|
is_active: boolean;
|
|
231
|
+
sort_order: number;
|
|
232
232
|
color: string;
|
|
233
233
|
created_at?: string | undefined;
|
|
234
234
|
updated_at?: string | undefined;
|
|
@@ -243,15 +243,15 @@ declare const SafetyReportCategoryFormSchema: z.ZodObject<{
|
|
|
243
243
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
244
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
245
|
name: string;
|
|
246
|
-
sort_order?: number | undefined;
|
|
247
246
|
description?: string | null | undefined;
|
|
248
247
|
is_active?: boolean | undefined;
|
|
248
|
+
sort_order?: number | undefined;
|
|
249
249
|
color?: string | null | undefined;
|
|
250
250
|
}, {
|
|
251
251
|
name: string;
|
|
252
|
-
sort_order?: number | undefined;
|
|
253
252
|
description?: string | null | undefined;
|
|
254
253
|
is_active?: boolean | undefined;
|
|
254
|
+
sort_order?: number | undefined;
|
|
255
255
|
color?: string | null | undefined;
|
|
256
256
|
}>;
|
|
257
257
|
type SafetyReportCategoryForm = z.infer<typeof SafetyReportCategoryFormSchema>;
|
|
@@ -293,21 +293,21 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
293
293
|
created_at: z.ZodOptional<z.ZodString>;
|
|
294
294
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
295
295
|
}, "strip", z.ZodTypeAny, {
|
|
296
|
-
sort_order: number;
|
|
297
|
-
id: number;
|
|
298
296
|
name: string;
|
|
297
|
+
id: number;
|
|
299
298
|
description: string | null;
|
|
300
299
|
is_active: boolean;
|
|
300
|
+
sort_order: number;
|
|
301
301
|
color: string;
|
|
302
302
|
created_at?: string | undefined;
|
|
303
303
|
updated_at?: string | undefined;
|
|
304
304
|
is_global?: boolean | undefined;
|
|
305
305
|
}, {
|
|
306
|
-
sort_order: number;
|
|
307
|
-
id: number;
|
|
308
306
|
name: string;
|
|
307
|
+
id: number;
|
|
309
308
|
description: string | null;
|
|
310
309
|
is_active: boolean;
|
|
310
|
+
sort_order: number;
|
|
311
311
|
color: string;
|
|
312
312
|
created_at?: string | undefined;
|
|
313
313
|
updated_at?: string | undefined;
|
|
@@ -337,8 +337,8 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
337
337
|
updated_at: z.ZodString;
|
|
338
338
|
can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
339
339
|
}, "strip", z.ZodTypeAny, {
|
|
340
|
-
id: number;
|
|
341
340
|
status: "new" | "under_review" | "action_taken" | "closed";
|
|
341
|
+
id: number;
|
|
342
342
|
created_at: string;
|
|
343
343
|
updated_at: string;
|
|
344
344
|
description: string;
|
|
@@ -347,11 +347,11 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
347
347
|
location: string | null;
|
|
348
348
|
can?: Record<string, boolean> | undefined;
|
|
349
349
|
category?: {
|
|
350
|
-
sort_order: number;
|
|
351
|
-
id: number;
|
|
352
350
|
name: string;
|
|
351
|
+
id: number;
|
|
353
352
|
description: string | null;
|
|
354
353
|
is_active: boolean;
|
|
354
|
+
sort_order: number;
|
|
355
355
|
color: string;
|
|
356
356
|
created_at?: string | undefined;
|
|
357
357
|
updated_at?: string | undefined;
|
|
@@ -366,8 +366,8 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
366
366
|
}[] | undefined;
|
|
367
367
|
attachments_count?: number | undefined;
|
|
368
368
|
}, {
|
|
369
|
-
id: number;
|
|
370
369
|
status: "new" | "under_review" | "action_taken" | "closed";
|
|
370
|
+
id: number;
|
|
371
371
|
created_at: string;
|
|
372
372
|
updated_at: string;
|
|
373
373
|
description: string;
|
|
@@ -376,11 +376,11 @@ declare const SafetyReportSchema: z.ZodObject<{
|
|
|
376
376
|
location: string | null;
|
|
377
377
|
can?: Record<string, boolean> | undefined;
|
|
378
378
|
category?: {
|
|
379
|
-
sort_order: number;
|
|
380
|
-
id: number;
|
|
381
379
|
name: string;
|
|
380
|
+
id: number;
|
|
382
381
|
description: string | null;
|
|
383
382
|
is_active: boolean;
|
|
383
|
+
sort_order: number;
|
|
384
384
|
color: string;
|
|
385
385
|
created_at?: string | undefined;
|
|
386
386
|
updated_at?: string | undefined;
|
|
@@ -415,21 +415,21 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
415
415
|
created_at: z.ZodOptional<z.ZodString>;
|
|
416
416
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
417
417
|
}, "strip", z.ZodTypeAny, {
|
|
418
|
-
sort_order: number;
|
|
419
|
-
id: number;
|
|
420
418
|
name: string;
|
|
419
|
+
id: number;
|
|
421
420
|
description: string | null;
|
|
422
421
|
is_active: boolean;
|
|
422
|
+
sort_order: number;
|
|
423
423
|
color: string;
|
|
424
424
|
created_at?: string | undefined;
|
|
425
425
|
updated_at?: string | undefined;
|
|
426
426
|
is_global?: boolean | undefined;
|
|
427
427
|
}, {
|
|
428
|
-
sort_order: number;
|
|
429
|
-
id: number;
|
|
430
428
|
name: string;
|
|
429
|
+
id: number;
|
|
431
430
|
description: string | null;
|
|
432
431
|
is_active: boolean;
|
|
432
|
+
sort_order: number;
|
|
433
433
|
color: string;
|
|
434
434
|
created_at?: string | undefined;
|
|
435
435
|
updated_at?: string | undefined;
|
|
@@ -459,8 +459,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
459
459
|
updated_at: z.ZodString;
|
|
460
460
|
can: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
461
461
|
}, "strip", z.ZodTypeAny, {
|
|
462
|
-
id: number;
|
|
463
462
|
status: "new" | "under_review" | "action_taken" | "closed";
|
|
463
|
+
id: number;
|
|
464
464
|
created_at: string;
|
|
465
465
|
updated_at: string;
|
|
466
466
|
description: string;
|
|
@@ -469,11 +469,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
469
469
|
location: string | null;
|
|
470
470
|
can?: Record<string, boolean> | undefined;
|
|
471
471
|
category?: {
|
|
472
|
-
sort_order: number;
|
|
473
|
-
id: number;
|
|
474
472
|
name: string;
|
|
473
|
+
id: number;
|
|
475
474
|
description: string | null;
|
|
476
475
|
is_active: boolean;
|
|
476
|
+
sort_order: number;
|
|
477
477
|
color: string;
|
|
478
478
|
created_at?: string | undefined;
|
|
479
479
|
updated_at?: string | undefined;
|
|
@@ -488,8 +488,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
488
488
|
}[] | undefined;
|
|
489
489
|
attachments_count?: number | undefined;
|
|
490
490
|
}, {
|
|
491
|
-
id: number;
|
|
492
491
|
status: "new" | "under_review" | "action_taken" | "closed";
|
|
492
|
+
id: number;
|
|
493
493
|
created_at: string;
|
|
494
494
|
updated_at: string;
|
|
495
495
|
description: string;
|
|
@@ -498,11 +498,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
498
498
|
location: string | null;
|
|
499
499
|
can?: Record<string, boolean> | undefined;
|
|
500
500
|
category?: {
|
|
501
|
-
sort_order: number;
|
|
502
|
-
id: number;
|
|
503
501
|
name: string;
|
|
502
|
+
id: number;
|
|
504
503
|
description: string | null;
|
|
505
504
|
is_active: boolean;
|
|
505
|
+
sort_order: number;
|
|
506
506
|
color: string;
|
|
507
507
|
created_at?: string | undefined;
|
|
508
508
|
updated_at?: string | undefined;
|
|
@@ -557,8 +557,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
557
557
|
}>>;
|
|
558
558
|
}, "strip", z.ZodTypeAny, {
|
|
559
559
|
data: {
|
|
560
|
-
id: number;
|
|
561
560
|
status: "new" | "under_review" | "action_taken" | "closed";
|
|
561
|
+
id: number;
|
|
562
562
|
created_at: string;
|
|
563
563
|
updated_at: string;
|
|
564
564
|
description: string;
|
|
@@ -567,11 +567,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
567
567
|
location: string | null;
|
|
568
568
|
can?: Record<string, boolean> | undefined;
|
|
569
569
|
category?: {
|
|
570
|
-
sort_order: number;
|
|
571
|
-
id: number;
|
|
572
570
|
name: string;
|
|
571
|
+
id: number;
|
|
573
572
|
description: string | null;
|
|
574
573
|
is_active: boolean;
|
|
574
|
+
sort_order: number;
|
|
575
575
|
color: string;
|
|
576
576
|
created_at?: string | undefined;
|
|
577
577
|
updated_at?: string | undefined;
|
|
@@ -602,8 +602,8 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
602
602
|
} | undefined;
|
|
603
603
|
}, {
|
|
604
604
|
data: {
|
|
605
|
-
id: number;
|
|
606
605
|
status: "new" | "under_review" | "action_taken" | "closed";
|
|
606
|
+
id: number;
|
|
607
607
|
created_at: string;
|
|
608
608
|
updated_at: string;
|
|
609
609
|
description: string;
|
|
@@ -612,11 +612,11 @@ declare const SafetyReportListResponseSchema: z.ZodObject<{
|
|
|
612
612
|
location: string | null;
|
|
613
613
|
can?: Record<string, boolean> | undefined;
|
|
614
614
|
category?: {
|
|
615
|
-
sort_order: number;
|
|
616
|
-
id: number;
|
|
617
615
|
name: string;
|
|
616
|
+
id: number;
|
|
618
617
|
description: string | null;
|
|
619
618
|
is_active: boolean;
|
|
619
|
+
sort_order: number;
|
|
620
620
|
color: string;
|
|
621
621
|
created_at?: string | undefined;
|
|
622
622
|
updated_at?: string | undefined;
|
|
@@ -978,10 +978,10 @@ declare const courseMilestoneSchema: z.ZodObject<{
|
|
|
978
978
|
delete?: boolean | null | undefined;
|
|
979
979
|
}>>;
|
|
980
980
|
}, "strip", z.ZodTypeAny, {
|
|
981
|
-
sort_order: number;
|
|
982
|
-
id: number;
|
|
983
981
|
name: string;
|
|
982
|
+
id: number;
|
|
984
983
|
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
|
-
sort_order: number;
|
|
1003
|
-
id: number;
|
|
1004
1002
|
name: string;
|
|
1003
|
+
id: number;
|
|
1005
1004
|
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
|
-
sort_order?: number | undefined;
|
|
1037
1036
|
description?: string | null | undefined;
|
|
1037
|
+
sort_order?: number | undefined;
|
|
1038
1038
|
requires_form_template_id?: number | null | undefined;
|
|
1039
1039
|
completion_rule?: Record<string, unknown> | null | undefined;
|
|
1040
1040
|
}, {
|
|
1041
1041
|
name: string;
|
|
1042
|
-
sort_order?: number | undefined;
|
|
1043
1042
|
description?: string | null | undefined;
|
|
1044
1043
|
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
|
-
sort_order: number;
|
|
1090
|
-
id: number;
|
|
1091
1089
|
name: string;
|
|
1090
|
+
id: number;
|
|
1092
1091
|
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
|
-
sort_order: number;
|
|
1111
|
-
id: number;
|
|
1112
1110
|
name: string;
|
|
1111
|
+
id: number;
|
|
1113
1112
|
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
|
-
sort_order: number;
|
|
1180
|
-
id: number;
|
|
1181
1179
|
name: string;
|
|
1180
|
+
id: number;
|
|
1182
1181
|
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
|
-
sort_order: number;
|
|
1222
|
-
id: number;
|
|
1223
1221
|
name: string;
|
|
1222
|
+
id: number;
|
|
1224
1223
|
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
|
-
id: number;
|
|
1265
1264
|
name: string;
|
|
1265
|
+
id: number;
|
|
1266
1266
|
type?: "equipment" | undefined;
|
|
1267
1267
|
description?: string | null | undefined;
|
|
1268
1268
|
manual_url?: string | null | undefined;
|
|
1269
1269
|
}, {
|
|
1270
|
-
id: number;
|
|
1271
1270
|
name: string;
|
|
1271
|
+
id: number;
|
|
1272
1272
|
type?: "equipment" | undefined;
|
|
1273
1273
|
description?: string | null | undefined;
|
|
1274
1274
|
manual_url?: string | null | undefined;
|
|
@@ -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
|
-
sort_order: number;
|
|
1468
|
-
id: number;
|
|
1469
1467
|
name: string;
|
|
1468
|
+
id: number;
|
|
1470
1469
|
key: string;
|
|
1471
1470
|
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
|
-
sort_order: number;
|
|
1481
|
-
id: number;
|
|
1482
1480
|
name: string;
|
|
1481
|
+
id: number;
|
|
1483
1482
|
key: string;
|
|
1484
1483
|
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
|
-
sort_order: number;
|
|
1643
|
-
id: number;
|
|
1644
1642
|
name: string;
|
|
1643
|
+
id: number;
|
|
1645
1644
|
key: string;
|
|
1646
1645
|
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
|
-
sort_order: number;
|
|
1656
|
-
id: number;
|
|
1657
1655
|
name: string;
|
|
1656
|
+
id: number;
|
|
1658
1657
|
key: string;
|
|
1659
1658
|
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
|
-
id: number;
|
|
1807
1806
|
name: string;
|
|
1807
|
+
id: number;
|
|
1808
1808
|
email?: string | undefined;
|
|
1809
1809
|
}, {
|
|
1810
|
-
id: number;
|
|
1811
1810
|
name: string;
|
|
1811
|
+
id: number;
|
|
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
|
-
id: number;
|
|
1831
1830
|
name: string;
|
|
1831
|
+
id: number;
|
|
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
|
-
sort_order: number;
|
|
1876
|
-
id: number;
|
|
1877
1875
|
name: string;
|
|
1876
|
+
id: number;
|
|
1878
1877
|
key: string;
|
|
1879
1878
|
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
|
-
id: number;
|
|
1892
1891
|
name: string;
|
|
1892
|
+
id: number;
|
|
1893
1893
|
email?: string | undefined;
|
|
1894
1894
|
} | null | undefined;
|
|
1895
1895
|
preheader?: string | null | undefined;
|
|
1896
1896
|
}, {
|
|
1897
|
-
id: number;
|
|
1898
1897
|
name: string;
|
|
1898
|
+
id: number;
|
|
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
|
-
sort_order: number;
|
|
1943
|
-
id: number;
|
|
1944
1942
|
name: string;
|
|
1943
|
+
id: number;
|
|
1945
1944
|
key: string;
|
|
1946
1945
|
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
|
-
id: number;
|
|
1959
1958
|
name: string;
|
|
1959
|
+
id: number;
|
|
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
|
-
sort_order: number;
|
|
2343
|
-
id: number;
|
|
2344
2342
|
name: string;
|
|
2343
|
+
id: number;
|
|
2345
2344
|
key: string;
|
|
2346
2345
|
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
|
-
sort_order: number;
|
|
2356
|
-
id: number;
|
|
2357
2355
|
name: string;
|
|
2356
|
+
id: number;
|
|
2358
2357
|
key: string;
|
|
2359
2358
|
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
|
-
id: number;
|
|
2507
2506
|
name: string;
|
|
2507
|
+
id: number;
|
|
2508
2508
|
email?: string | undefined;
|
|
2509
2509
|
}, {
|
|
2510
|
-
id: number;
|
|
2511
2510
|
name: string;
|
|
2511
|
+
id: number;
|
|
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;
|
|
2531
2530
|
name?: string | undefined;
|
|
2532
2531
|
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
|
-
sort_order: number;
|
|
2546
|
-
id: number;
|
|
2547
2545
|
name: string;
|
|
2546
|
+
id: number;
|
|
2548
2547
|
key: string;
|
|
2549
2548
|
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
|
-
id: number;
|
|
2590
2589
|
name: string;
|
|
2590
|
+
id: number;
|
|
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;
|
|
2598
2597
|
name?: string | undefined;
|
|
2599
2598
|
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
|
-
sort_order: number;
|
|
2613
|
-
id: number;
|
|
2614
2612
|
name: string;
|
|
2613
|
+
id: number;
|
|
2615
2614
|
key: string;
|
|
2616
2615
|
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
|
-
id: number;
|
|
2657
2656
|
name: string;
|
|
2657
|
+
id: number;
|
|
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
|
-
sort_order: number;
|
|
2682
|
-
id: number;
|
|
2683
2681
|
name: string;
|
|
2682
|
+
id: number;
|
|
2684
2683
|
key: string;
|
|
2685
2684
|
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
|
-
sort_order: number;
|
|
2695
|
-
id: number;
|
|
2696
2694
|
name: string;
|
|
2695
|
+
id: number;
|
|
2697
2696
|
key: string;
|
|
2698
2697
|
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
|
-
id: number;
|
|
2935
2934
|
name: string;
|
|
2935
|
+
id: number;
|
|
2936
2936
|
email?: string | undefined;
|
|
2937
2937
|
}, {
|
|
2938
|
-
id: number;
|
|
2939
2938
|
name: string;
|
|
2939
|
+
id: number;
|
|
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;
|
|
2968
2967
|
name: string;
|
|
2969
2968
|
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
|
-
sort_order: number;
|
|
3038
|
-
id: number;
|
|
3039
3037
|
name: string;
|
|
3038
|
+
id: number;
|
|
3040
3039
|
key: string;
|
|
3041
3040
|
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;
|
|
3054
3053
|
name?: string | undefined;
|
|
3055
3054
|
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
|
-
sort_order: number;
|
|
3069
|
-
id: number;
|
|
3070
3068
|
name: string;
|
|
3069
|
+
id: number;
|
|
3071
3070
|
key: string;
|
|
3072
3071
|
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
|
-
id: number;
|
|
3113
3112
|
name: string;
|
|
3113
|
+
id: number;
|
|
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
|
-
id: number;
|
|
3127
3126
|
name: string;
|
|
3127
|
+
id: number;
|
|
3128
3128
|
email?: string | undefined;
|
|
3129
3129
|
} | null | undefined;
|
|
3130
3130
|
}, {
|
|
3131
|
-
id: number;
|
|
3132
3131
|
name: string;
|
|
3133
3132
|
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
|
-
sort_order: number;
|
|
3202
|
-
id: number;
|
|
3203
3201
|
name: string;
|
|
3202
|
+
id: number;
|
|
3204
3203
|
key: string;
|
|
3205
3204
|
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;
|
|
3218
3217
|
name?: string | undefined;
|
|
3219
3218
|
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
|
-
sort_order: number;
|
|
3233
|
-
id: number;
|
|
3234
3232
|
name: string;
|
|
3233
|
+
id: number;
|
|
3235
3234
|
key: string;
|
|
3236
3235
|
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
|
-
id: number;
|
|
3277
3276
|
name: string;
|
|
3277
|
+
id: number;
|
|
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
|
-
id: number;
|
|
3291
3290
|
name: string;
|
|
3291
|
+
id: number;
|
|
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
|
-
id: number;
|
|
3620
3619
|
name: string;
|
|
3620
|
+
id: number;
|
|
3621
3621
|
email?: string | undefined;
|
|
3622
3622
|
}, {
|
|
3623
|
-
id: number;
|
|
3624
3623
|
name: string;
|
|
3624
|
+
id: number;
|
|
3625
3625
|
email?: string | undefined;
|
|
3626
3626
|
}>>>;
|
|
3627
3627
|
email: z.ZodString;
|
|
@@ -3633,36 +3633,36 @@ 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;
|
|
3637
3636
|
email: string;
|
|
3638
3637
|
status: NewsletterRecipientStatus;
|
|
3638
|
+
id: number;
|
|
3639
3639
|
user_id: number | null;
|
|
3640
3640
|
newsletter_campaign_id: number;
|
|
3641
|
+
error?: string | null | undefined;
|
|
3641
3642
|
type?: "newsletter_campaign_recipient" | undefined;
|
|
3642
3643
|
user?: {
|
|
3643
|
-
id: number;
|
|
3644
3644
|
name: string;
|
|
3645
|
+
id: number;
|
|
3645
3646
|
email?: string | undefined;
|
|
3646
3647
|
} | null | undefined;
|
|
3647
|
-
error?: string | null | undefined;
|
|
3648
3648
|
message_id?: string | null | undefined;
|
|
3649
3649
|
queued_at?: string | null | undefined;
|
|
3650
3650
|
sent_at?: string | null | undefined;
|
|
3651
3651
|
bounced_at?: string | null | undefined;
|
|
3652
3652
|
complained_at?: string | null | undefined;
|
|
3653
3653
|
}, {
|
|
3654
|
-
id: number;
|
|
3655
3654
|
email: string;
|
|
3656
3655
|
status: NewsletterRecipientStatus;
|
|
3656
|
+
id: number;
|
|
3657
3657
|
user_id: number | null;
|
|
3658
3658
|
newsletter_campaign_id: number;
|
|
3659
|
+
error?: string | null | undefined;
|
|
3659
3660
|
type?: "newsletter_campaign_recipient" | undefined;
|
|
3660
3661
|
user?: {
|
|
3661
|
-
id: number;
|
|
3662
3662
|
name: string;
|
|
3663
|
+
id: number;
|
|
3663
3664
|
email?: string | undefined;
|
|
3664
3665
|
} | null | undefined;
|
|
3665
|
-
error?: string | null | undefined;
|
|
3666
3666
|
message_id?: string | null | undefined;
|
|
3667
3667
|
queued_at?: string | null | undefined;
|
|
3668
3668
|
sent_at?: 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
|
-
title: string;
|
|
4108
4107
|
key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
|
|
4108
|
+
title: string;
|
|
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
|
-
title: string;
|
|
4124
4123
|
key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "share_document" | "fill_training_record" | "sign_training_record";
|
|
4124
|
+
title: string;
|
|
4125
4125
|
ref_type: string;
|
|
4126
4126
|
ref_id: number;
|
|
4127
4127
|
action: {
|