@updraft-solutions/mcrit-sdk 0.6.0 → 0.7.1
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-EE4YY3AU.js → chunk-VNEXO6QQ.js} +19 -1
- package/dist/{chunk-H4CJ2YEQ.cjs → chunk-Y26FRSPZ.cjs} +20 -2
- package/dist/index.cjs +7 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +23 -21
- package/dist/schemas/index.cjs +4 -2
- package/dist/schemas/index.d.cts +121 -121
- package/dist/schemas/index.d.ts +121 -121
- package/dist/schemas/index.js +3 -1
- package/dist/{training-C9rIBUeV.d.cts → training-BibD4HsC.d.cts} +17392 -15997
- package/dist/{training-C9rIBUeV.d.ts → training-BibD4HsC.d.ts} +17392 -15997
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/schemas/training.ts +30 -0
package/dist/schemas/index.d.ts
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 FieldLabel, j as FieldLabelSchema, k as FormFieldType, l as FormSubmission, m as FormSubmissionSchema, n as FormSubmissionShare, o as FormSubmissionShareBase, p as FormSubmissionShareBaseSchema, q as FormSubmissionShareSchema, r as FormSubmissionSource, s as FormSubmissionStatus, t as FormTemplate, u as FormTemplateAssignment, v as FormTemplateAssignmentSchema, w as FormTemplateSchema, G as GradeHistoryItem, x as GradingScale, y as GradingScaleForm, z as GradingScaleFormSchema, D as GradingScalePoint, I as ImpersonationParticipant, H as ImpersonationState, R as ReorderSyllabusElementItem,
|
|
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 FieldLabel, j as FieldLabelSchema, k as FormFieldType, l as FormSubmission, m as FormSubmissionSchema, n as FormSubmissionShare, o as FormSubmissionShareBase, p as FormSubmissionShareBaseSchema, q as FormSubmissionShareSchema, r as FormSubmissionSource, s as FormSubmissionStatus, t as FormTemplate, u as FormTemplateAssignment, v as FormTemplateAssignmentSchema, w as FormTemplateSchema, G as GradeHistoryItem, x as GradingScale, y as GradingScaleForm, z as GradingScaleFormSchema, D as GradingScalePoint, I as ImpersonationParticipant, H as ImpersonationState, J as InvalidateTrainingRecordResponse, R as ReorderSyllabusElementItem, K as ReorderSyllabusElementItemSchema, L as RequiredForm, M as RequiredFormSchema, N as RequiredFormVia, O as RequiredFormViaCrew, P as RequiredFormViaCrewSchema, Q as RequiredFormViaSchema, S as ReviewFormSubmissionInput, T as SchemaField, U as SchemaFieldSchema, V as SchemaSection, W as SchemaSectionSchema, X as ShowWhen, Y as ShowWhenSchema, Z as SignOffTrainingElementForm, _ as SignOffTrainingElementFormSchema, $ as Signature, a0 as SignatureSchema, a1 as StoreSyllabusForm, a2 as StoreSyllabusFormSchema, a3 as SubmissionFile, a4 as SubmissionFileSchema, a5 as Syllabus, a6 as SyllabusElement, a7 as SyllabusElementMutationResult, a8 as SyllabusKind, a9 as SyllabusKindEnum, aa as SyllabusRolloutResult, ab as SyllabusRolloutResultItem, ac as SyllabusRolloutSkippedItem, ad as TemplateSchema, ae as TemplateSchemaSchema, af as TrainingElement, ag as TrainingElementForm, ah as TrainingElementFormSchema, ai as TrainingElementKind, aj as TrainingElementKindEnum, ak as TrainingRecord, al as TrainingRecordEntry, am as TrainingRecordEntryInput, an as TrainingRecordResult, ao as TrainingRecordResultEnum, ap as TrainingRecordStatus, aq as TrainingRecordStatusEnum, ar as TrainingSignature, as as TrainingTemplatePack, at as UpdateFormTemplateInput, au as UpdateSyllabusElementForm, av as UpdateSyllabusElementFormSchema, aw as UpdateSyllabusForm, ax as UpdateSyllabusFormSchema, ay as UpsertTrainingRecordForm, az as UpsertTrainingRecordFormSchema, aA as UsedByCourse, aB as activitySchema, aC as addressSchema, aD as aircraftPositionSchema, aE as aircraftRatingSchema, aF as airplaneIssueSchema, aG as airplaneIssueSeverityEnum, aH as airplaneIssueStatusEnum, aI as airplanePermissionSchema, aJ as airplaneSchema, aK as airplaneShareInviteSchema, aL as airportSchema, aM as alertSchema, aN as allowedDocumentTypeSchema, aO as approachTypeSchema, aP as availSchema, aQ as baseMembershipSchema, aR as bookingSchema, aS as bookingWaypointSchema, aT as commentSchema, aU as companySchema, aV as contactAttributeSchema, aW as courseCheckSyllabusSchema, aX as courseEnrollmentMetricsSchema, aY as courseEnrollmentSchema, aZ as courseFeeSchema, a_ as courseSchema, a$ as createSyllabusFromTemplateResultSchema, b0 as documentComplianceStatus, b1 as documentRequirement, b2 as documentRequirementGroup, b3 as documentRequirementGroupAssignment, b4 as documentSchema, b5 as documentShareSchema, b6 as documentType, b7 as enrollmentTrainingElementSchema, b8 as eventSchema, b9 as expenseItemSchema, ba as expenseSchema, bb as extendedAirplaneSchema, bc as feeCategoryOptionsSchema, bd as feeSchema, be as flightLogSchema, bf as gradeHistoryItemSchema, bg as gradingScalePointSchema, bh as gradingScaleSchema, bi as impersonationParticipantSchema, bj as impersonationStateSchema, bk as invalidateTrainingRecordResponseSchema, bl as invoiceSchema, bm as landingFeeSchema, bn as landingSchema, bo as maintenanceEventEstimationSchema, bp as maintenanceEventSchema, bq as maintenanceStatusSchema, br as mediaCollection, bs as mediaSchema, bt as membershipSchema, bu as membershipSignupSchema, bv as postSchema, bw as prePaidPackageSchema, bx as priceSchema, by as qualificationSchema, bz as recurringFlightSchema, bA as roleSchema, bB as runwaySchema, bC as scheduledFlightSchema, bD as settingSchema, bE as specialFlightSchema, bF as syllabusElementMutationResultSchema, bG as syllabusElementSchema, bH as syllabusRolloutResultItemSchema, bI as syllabusRolloutResultSchema, bJ as syllabusRolloutSkippedItemSchema, bK as syllabusSchema, bL as tagSchema, bM as ticketSchema, bN as trainingElementSchema, bO as trainingRecordEntryInputSchema, bP as trainingRecordEntrySchema, bQ as trainingRecordSchema, bR as trainingSignatureSchema, bS as trainingTemplatePackSchema, bT as usedByCourseSchema, bU as userAircraftRatingSchema, bV as userQualificationSchema, bW as userSchema, bX as waypointSchema, bY as zContactDTO, bZ as zNetGross, b_ as zNullableBool, b$ as zPhpMoneyObject } from '../training-BibD4HsC.js';
|
|
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;
|
|
@@ -1262,14 +1262,14 @@ declare const equipmentSchema: z.ZodObject<{
|
|
|
1262
1262
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1263
1263
|
manual_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1264
1264
|
}, "strip", z.ZodTypeAny, {
|
|
1265
|
-
id: number;
|
|
1266
1265
|
name: string;
|
|
1266
|
+
id: number;
|
|
1267
1267
|
type?: "equipment" | undefined;
|
|
1268
1268
|
description?: string | null | undefined;
|
|
1269
1269
|
manual_url?: string | null | undefined;
|
|
1270
1270
|
}, {
|
|
1271
|
-
id: number;
|
|
1272
1271
|
name: string;
|
|
1272
|
+
id: number;
|
|
1273
1273
|
type?: "equipment" | undefined;
|
|
1274
1274
|
description?: string | null | undefined;
|
|
1275
1275
|
manual_url?: string | null | undefined;
|
|
@@ -1461,22 +1461,22 @@ declare const NewsletterCategorySchema: z.ZodObject<{
|
|
|
1461
1461
|
created_at: z.ZodOptional<z.ZodString>;
|
|
1462
1462
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
1463
1463
|
}, "strip", z.ZodTypeAny, {
|
|
1464
|
-
sort_order: number;
|
|
1465
|
-
id: number;
|
|
1466
1464
|
name: string;
|
|
1465
|
+
id: number;
|
|
1467
1466
|
key: string;
|
|
1468
1467
|
is_active: boolean;
|
|
1468
|
+
sort_order: number;
|
|
1469
1469
|
is_mandatory: boolean;
|
|
1470
1470
|
type?: "newsletter_category" | undefined;
|
|
1471
1471
|
created_at?: string | undefined;
|
|
1472
1472
|
updated_at?: string | undefined;
|
|
1473
1473
|
description?: string | null | undefined;
|
|
1474
1474
|
}, {
|
|
1475
|
-
sort_order: number;
|
|
1476
|
-
id: number;
|
|
1477
1475
|
name: string;
|
|
1476
|
+
id: number;
|
|
1478
1477
|
key: string;
|
|
1479
1478
|
is_active: boolean;
|
|
1479
|
+
sort_order: number;
|
|
1480
1480
|
is_mandatory: boolean;
|
|
1481
1481
|
type?: "newsletter_category" | undefined;
|
|
1482
1482
|
created_at?: string | undefined;
|
|
@@ -1628,22 +1628,22 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1628
1628
|
created_at: z.ZodOptional<z.ZodString>;
|
|
1629
1629
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
1630
1630
|
}, "strip", z.ZodTypeAny, {
|
|
1631
|
-
sort_order: number;
|
|
1632
|
-
id: number;
|
|
1633
1631
|
name: string;
|
|
1632
|
+
id: number;
|
|
1634
1633
|
key: string;
|
|
1635
1634
|
is_active: boolean;
|
|
1635
|
+
sort_order: number;
|
|
1636
1636
|
is_mandatory: boolean;
|
|
1637
1637
|
type?: "newsletter_category" | undefined;
|
|
1638
1638
|
created_at?: string | undefined;
|
|
1639
1639
|
updated_at?: string | undefined;
|
|
1640
1640
|
description?: string | null | undefined;
|
|
1641
1641
|
}, {
|
|
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;
|
|
@@ -1788,19 +1788,19 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1788
1788
|
name: z.ZodString;
|
|
1789
1789
|
email: z.ZodOptional<z.ZodString>;
|
|
1790
1790
|
}, "strip", z.ZodTypeAny, {
|
|
1791
|
-
id: number;
|
|
1792
1791
|
name: string;
|
|
1792
|
+
id: number;
|
|
1793
1793
|
email?: string | undefined;
|
|
1794
1794
|
}, {
|
|
1795
|
-
id: number;
|
|
1796
1795
|
name: string;
|
|
1796
|
+
id: number;
|
|
1797
1797
|
email?: string | undefined;
|
|
1798
1798
|
}>>>;
|
|
1799
1799
|
created_at: z.ZodOptional<z.ZodString>;
|
|
1800
1800
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
1801
1801
|
}, "strip", z.ZodTypeAny, {
|
|
1802
|
-
id: number;
|
|
1803
1802
|
name: string;
|
|
1803
|
+
id: number;
|
|
1804
1804
|
is_active: boolean;
|
|
1805
1805
|
company_id: number | null;
|
|
1806
1806
|
schema_version: number;
|
|
@@ -1839,11 +1839,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1839
1839
|
updated_at?: string | undefined;
|
|
1840
1840
|
description?: string | null | undefined;
|
|
1841
1841
|
category?: {
|
|
1842
|
-
sort_order: number;
|
|
1843
|
-
id: number;
|
|
1844
1842
|
name: string;
|
|
1843
|
+
id: number;
|
|
1845
1844
|
key: string;
|
|
1846
1845
|
is_active: boolean;
|
|
1846
|
+
sort_order: number;
|
|
1847
1847
|
is_mandatory: boolean;
|
|
1848
1848
|
type?: "newsletter_category" | undefined;
|
|
1849
1849
|
created_at?: string | undefined;
|
|
@@ -1853,14 +1853,14 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1853
1853
|
created_by?: number | null | undefined;
|
|
1854
1854
|
is_system?: boolean | undefined;
|
|
1855
1855
|
creator?: {
|
|
1856
|
-
id: number;
|
|
1857
1856
|
name: string;
|
|
1857
|
+
id: number;
|
|
1858
1858
|
email?: string | undefined;
|
|
1859
1859
|
} | null | undefined;
|
|
1860
1860
|
preheader?: string | null | undefined;
|
|
1861
1861
|
}, {
|
|
1862
|
-
id: number;
|
|
1863
1862
|
name: string;
|
|
1863
|
+
id: number;
|
|
1864
1864
|
is_active: boolean;
|
|
1865
1865
|
company_id: number | null;
|
|
1866
1866
|
schema_version: number;
|
|
@@ -1899,11 +1899,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1899
1899
|
updated_at?: string | undefined;
|
|
1900
1900
|
description?: string | null | undefined;
|
|
1901
1901
|
category?: {
|
|
1902
|
-
sort_order: number;
|
|
1903
|
-
id: number;
|
|
1904
1902
|
name: string;
|
|
1903
|
+
id: number;
|
|
1905
1904
|
key: string;
|
|
1906
1905
|
is_active: boolean;
|
|
1906
|
+
sort_order: number;
|
|
1907
1907
|
is_mandatory: boolean;
|
|
1908
1908
|
type?: "newsletter_category" | undefined;
|
|
1909
1909
|
created_at?: string | undefined;
|
|
@@ -1913,8 +1913,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1913
1913
|
created_by?: number | null | undefined;
|
|
1914
1914
|
is_system?: boolean | undefined;
|
|
1915
1915
|
creator?: {
|
|
1916
|
-
id: number;
|
|
1917
1916
|
name: string;
|
|
1917
|
+
id: number;
|
|
1918
1918
|
email?: string | undefined;
|
|
1919
1919
|
} | null | undefined;
|
|
1920
1920
|
preheader?: string | null | undefined;
|
|
@@ -2293,22 +2293,22 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2293
2293
|
created_at: z.ZodOptional<z.ZodString>;
|
|
2294
2294
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
2295
2295
|
}, "strip", z.ZodTypeAny, {
|
|
2296
|
-
sort_order: number;
|
|
2297
|
-
id: number;
|
|
2298
2296
|
name: string;
|
|
2297
|
+
id: number;
|
|
2299
2298
|
key: string;
|
|
2300
2299
|
is_active: boolean;
|
|
2300
|
+
sort_order: number;
|
|
2301
2301
|
is_mandatory: boolean;
|
|
2302
2302
|
type?: "newsletter_category" | undefined;
|
|
2303
2303
|
created_at?: string | undefined;
|
|
2304
2304
|
updated_at?: string | undefined;
|
|
2305
2305
|
description?: string | null | undefined;
|
|
2306
2306
|
}, {
|
|
2307
|
-
sort_order: number;
|
|
2308
|
-
id: number;
|
|
2309
2307
|
name: string;
|
|
2308
|
+
id: number;
|
|
2310
2309
|
key: string;
|
|
2311
2310
|
is_active: boolean;
|
|
2311
|
+
sort_order: number;
|
|
2312
2312
|
is_mandatory: boolean;
|
|
2313
2313
|
type?: "newsletter_category" | undefined;
|
|
2314
2314
|
created_at?: string | undefined;
|
|
@@ -2453,20 +2453,20 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2453
2453
|
name: z.ZodString;
|
|
2454
2454
|
email: z.ZodOptional<z.ZodString>;
|
|
2455
2455
|
}, "strip", z.ZodTypeAny, {
|
|
2456
|
-
id: number;
|
|
2457
2456
|
name: string;
|
|
2457
|
+
id: number;
|
|
2458
2458
|
email?: string | undefined;
|
|
2459
2459
|
}, {
|
|
2460
|
-
id: number;
|
|
2461
2460
|
name: string;
|
|
2461
|
+
id: number;
|
|
2462
2462
|
email?: string | undefined;
|
|
2463
2463
|
}>>>>;
|
|
2464
2464
|
created_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2465
2465
|
updated_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2466
2466
|
}, "strip", z.ZodTypeAny, {
|
|
2467
|
-
id?: number | undefined;
|
|
2468
2467
|
name?: string | undefined;
|
|
2469
2468
|
type?: "newsletter_template" | undefined;
|
|
2469
|
+
id?: number | undefined;
|
|
2470
2470
|
created_at?: string | undefined;
|
|
2471
2471
|
updated_at?: string | undefined;
|
|
2472
2472
|
description?: string | null | undefined;
|
|
@@ -2474,11 +2474,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2474
2474
|
company_id?: number | null | undefined;
|
|
2475
2475
|
schema_version?: number | undefined;
|
|
2476
2476
|
category?: {
|
|
2477
|
-
sort_order: number;
|
|
2478
|
-
id: number;
|
|
2479
2477
|
name: string;
|
|
2478
|
+
id: number;
|
|
2480
2479
|
key: string;
|
|
2481
2480
|
is_active: boolean;
|
|
2481
|
+
sort_order: number;
|
|
2482
2482
|
is_mandatory: boolean;
|
|
2483
2483
|
type?: "newsletter_category" | undefined;
|
|
2484
2484
|
created_at?: string | undefined;
|
|
@@ -2516,17 +2516,17 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2516
2516
|
} | undefined;
|
|
2517
2517
|
is_system?: boolean | undefined;
|
|
2518
2518
|
creator?: {
|
|
2519
|
-
id: number;
|
|
2520
2519
|
name: string;
|
|
2520
|
+
id: number;
|
|
2521
2521
|
email?: string | undefined;
|
|
2522
2522
|
} | null | undefined;
|
|
2523
2523
|
newsletter_category_id?: number | undefined;
|
|
2524
2524
|
subject?: string | undefined;
|
|
2525
2525
|
preheader?: string | null | undefined;
|
|
2526
2526
|
}, {
|
|
2527
|
-
id?: number | undefined;
|
|
2528
2527
|
name?: string | undefined;
|
|
2529
2528
|
type?: "newsletter_template" | undefined;
|
|
2529
|
+
id?: number | undefined;
|
|
2530
2530
|
created_at?: string | undefined;
|
|
2531
2531
|
updated_at?: string | undefined;
|
|
2532
2532
|
description?: string | null | undefined;
|
|
@@ -2534,11 +2534,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2534
2534
|
company_id?: number | null | undefined;
|
|
2535
2535
|
schema_version?: number | undefined;
|
|
2536
2536
|
category?: {
|
|
2537
|
-
sort_order: number;
|
|
2538
|
-
id: number;
|
|
2539
2537
|
name: string;
|
|
2538
|
+
id: number;
|
|
2540
2539
|
key: string;
|
|
2541
2540
|
is_active: boolean;
|
|
2541
|
+
sort_order: number;
|
|
2542
2542
|
is_mandatory: boolean;
|
|
2543
2543
|
type?: "newsletter_category" | undefined;
|
|
2544
2544
|
created_at?: string | undefined;
|
|
@@ -2576,8 +2576,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2576
2576
|
} | undefined;
|
|
2577
2577
|
is_system?: boolean | undefined;
|
|
2578
2578
|
creator?: {
|
|
2579
|
-
id: number;
|
|
2580
2579
|
name: string;
|
|
2580
|
+
id: number;
|
|
2581
2581
|
email?: string | undefined;
|
|
2582
2582
|
} | null | undefined;
|
|
2583
2583
|
newsletter_category_id?: number | undefined;
|
|
@@ -2597,22 +2597,22 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2597
2597
|
created_at: z.ZodOptional<z.ZodString>;
|
|
2598
2598
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
2599
2599
|
}, "strip", z.ZodTypeAny, {
|
|
2600
|
-
sort_order: number;
|
|
2601
|
-
id: number;
|
|
2602
2600
|
name: string;
|
|
2601
|
+
id: number;
|
|
2603
2602
|
key: string;
|
|
2604
2603
|
is_active: boolean;
|
|
2604
|
+
sort_order: number;
|
|
2605
2605
|
is_mandatory: boolean;
|
|
2606
2606
|
type?: "newsletter_category" | undefined;
|
|
2607
2607
|
created_at?: string | undefined;
|
|
2608
2608
|
updated_at?: string | undefined;
|
|
2609
2609
|
description?: string | null | undefined;
|
|
2610
2610
|
}, {
|
|
2611
|
-
sort_order: number;
|
|
2612
|
-
id: number;
|
|
2613
2611
|
name: string;
|
|
2612
|
+
id: number;
|
|
2614
2613
|
key: string;
|
|
2615
2614
|
is_active: boolean;
|
|
2615
|
+
sort_order: number;
|
|
2616
2616
|
is_mandatory: boolean;
|
|
2617
2617
|
type?: "newsletter_category" | undefined;
|
|
2618
2618
|
created_at?: string | undefined;
|
|
@@ -2846,12 +2846,12 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2846
2846
|
name: z.ZodString;
|
|
2847
2847
|
email: z.ZodOptional<z.ZodString>;
|
|
2848
2848
|
}, "strip", z.ZodTypeAny, {
|
|
2849
|
-
id: number;
|
|
2850
2849
|
name: string;
|
|
2850
|
+
id: number;
|
|
2851
2851
|
email?: string | undefined;
|
|
2852
2852
|
}, {
|
|
2853
|
-
id: number;
|
|
2854
2853
|
name: string;
|
|
2854
|
+
id: number;
|
|
2855
2855
|
email?: string | undefined;
|
|
2856
2856
|
}>>>;
|
|
2857
2857
|
can: z.ZodOptional<z.ZodObject<{
|
|
@@ -2879,9 +2879,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2879
2879
|
created_at: z.ZodOptional<z.ZodString>;
|
|
2880
2880
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
2881
2881
|
}, "strip", z.ZodTypeAny, {
|
|
2882
|
-
id: number;
|
|
2883
2882
|
name: string;
|
|
2884
2883
|
status: NewsletterCampaignStatus;
|
|
2884
|
+
id: number;
|
|
2885
2885
|
company_id: number | null;
|
|
2886
2886
|
schema_snapshot: {
|
|
2887
2887
|
blocks: ({
|
|
@@ -2949,11 +2949,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2949
2949
|
test_send?: boolean | undefined;
|
|
2950
2950
|
} | undefined;
|
|
2951
2951
|
category?: {
|
|
2952
|
-
sort_order: number;
|
|
2953
|
-
id: number;
|
|
2954
2952
|
name: string;
|
|
2953
|
+
id: number;
|
|
2955
2954
|
key: string;
|
|
2956
2955
|
is_active: boolean;
|
|
2956
|
+
sort_order: number;
|
|
2957
2957
|
is_mandatory: boolean;
|
|
2958
2958
|
type?: "newsletter_category" | undefined;
|
|
2959
2959
|
created_at?: string | undefined;
|
|
@@ -2963,9 +2963,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2963
2963
|
scheduled_at?: string | null | undefined;
|
|
2964
2964
|
is_system?: boolean | undefined;
|
|
2965
2965
|
template?: {
|
|
2966
|
-
id?: number | undefined;
|
|
2967
2966
|
name?: string | undefined;
|
|
2968
2967
|
type?: "newsletter_template" | undefined;
|
|
2968
|
+
id?: number | undefined;
|
|
2969
2969
|
created_at?: string | undefined;
|
|
2970
2970
|
updated_at?: string | undefined;
|
|
2971
2971
|
description?: string | null | undefined;
|
|
@@ -2973,11 +2973,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2973
2973
|
company_id?: number | null | undefined;
|
|
2974
2974
|
schema_version?: number | undefined;
|
|
2975
2975
|
category?: {
|
|
2976
|
-
sort_order: number;
|
|
2977
|
-
id: number;
|
|
2978
2976
|
name: string;
|
|
2977
|
+
id: number;
|
|
2979
2978
|
key: string;
|
|
2980
2979
|
is_active: boolean;
|
|
2980
|
+
sort_order: number;
|
|
2981
2981
|
is_mandatory: boolean;
|
|
2982
2982
|
type?: "newsletter_category" | undefined;
|
|
2983
2983
|
created_at?: string | undefined;
|
|
@@ -3015,8 +3015,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3015
3015
|
} | undefined;
|
|
3016
3016
|
is_system?: boolean | undefined;
|
|
3017
3017
|
creator?: {
|
|
3018
|
-
id: number;
|
|
3019
3018
|
name: string;
|
|
3019
|
+
id: number;
|
|
3020
3020
|
email?: string | undefined;
|
|
3021
3021
|
} | null | undefined;
|
|
3022
3022
|
newsletter_category_id?: number | undefined;
|
|
@@ -3029,14 +3029,14 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3029
3029
|
cancelled_at?: string | null | undefined;
|
|
3030
3030
|
sent_by_user_id?: number | null | undefined;
|
|
3031
3031
|
sent_by?: {
|
|
3032
|
-
id: number;
|
|
3033
3032
|
name: string;
|
|
3033
|
+
id: number;
|
|
3034
3034
|
email?: string | undefined;
|
|
3035
3035
|
} | null | undefined;
|
|
3036
3036
|
}, {
|
|
3037
|
-
id: number;
|
|
3038
3037
|
name: string;
|
|
3039
3038
|
status: NewsletterCampaignStatus;
|
|
3039
|
+
id: number;
|
|
3040
3040
|
company_id: number | null;
|
|
3041
3041
|
schema_snapshot: {
|
|
3042
3042
|
blocks: ({
|
|
@@ -3104,11 +3104,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3104
3104
|
test_send?: boolean | undefined;
|
|
3105
3105
|
} | undefined;
|
|
3106
3106
|
category?: {
|
|
3107
|
-
sort_order: number;
|
|
3108
|
-
id: number;
|
|
3109
3107
|
name: string;
|
|
3108
|
+
id: number;
|
|
3110
3109
|
key: string;
|
|
3111
3110
|
is_active: boolean;
|
|
3111
|
+
sort_order: number;
|
|
3112
3112
|
is_mandatory: boolean;
|
|
3113
3113
|
type?: "newsletter_category" | undefined;
|
|
3114
3114
|
created_at?: string | undefined;
|
|
@@ -3118,9 +3118,9 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3118
3118
|
scheduled_at?: string | null | undefined;
|
|
3119
3119
|
is_system?: boolean | undefined;
|
|
3120
3120
|
template?: {
|
|
3121
|
-
id?: number | undefined;
|
|
3122
3121
|
name?: string | undefined;
|
|
3123
3122
|
type?: "newsletter_template" | undefined;
|
|
3123
|
+
id?: number | undefined;
|
|
3124
3124
|
created_at?: string | undefined;
|
|
3125
3125
|
updated_at?: string | undefined;
|
|
3126
3126
|
description?: string | null | undefined;
|
|
@@ -3128,11 +3128,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3128
3128
|
company_id?: number | null | undefined;
|
|
3129
3129
|
schema_version?: number | undefined;
|
|
3130
3130
|
category?: {
|
|
3131
|
-
sort_order: number;
|
|
3132
|
-
id: number;
|
|
3133
3131
|
name: string;
|
|
3132
|
+
id: number;
|
|
3134
3133
|
key: string;
|
|
3135
3134
|
is_active: boolean;
|
|
3135
|
+
sort_order: number;
|
|
3136
3136
|
is_mandatory: boolean;
|
|
3137
3137
|
type?: "newsletter_category" | undefined;
|
|
3138
3138
|
created_at?: string | undefined;
|
|
@@ -3170,8 +3170,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3170
3170
|
} | undefined;
|
|
3171
3171
|
is_system?: boolean | undefined;
|
|
3172
3172
|
creator?: {
|
|
3173
|
-
id: number;
|
|
3174
3173
|
name: string;
|
|
3174
|
+
id: number;
|
|
3175
3175
|
email?: string | undefined;
|
|
3176
3176
|
} | null | undefined;
|
|
3177
3177
|
newsletter_category_id?: number | undefined;
|
|
@@ -3184,8 +3184,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3184
3184
|
cancelled_at?: string | null | undefined;
|
|
3185
3185
|
sent_by_user_id?: number | null | undefined;
|
|
3186
3186
|
sent_by?: {
|
|
3187
|
-
id: number;
|
|
3188
3187
|
name: string;
|
|
3188
|
+
id: number;
|
|
3189
3189
|
email?: string | undefined;
|
|
3190
3190
|
} | null | undefined;
|
|
3191
3191
|
}>;
|
|
@@ -3512,12 +3512,12 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
|
|
|
3512
3512
|
name: z.ZodString;
|
|
3513
3513
|
email: z.ZodOptional<z.ZodString>;
|
|
3514
3514
|
}, "strip", z.ZodTypeAny, {
|
|
3515
|
-
id: number;
|
|
3516
3515
|
name: string;
|
|
3516
|
+
id: number;
|
|
3517
3517
|
email?: string | undefined;
|
|
3518
3518
|
}, {
|
|
3519
|
-
id: number;
|
|
3520
3519
|
name: string;
|
|
3520
|
+
id: number;
|
|
3521
3521
|
email?: string | undefined;
|
|
3522
3522
|
}>>>;
|
|
3523
3523
|
email: z.ZodString;
|
|
@@ -3529,15 +3529,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
|
|
|
3529
3529
|
bounced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3530
3530
|
complained_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3531
3531
|
}, "strip", z.ZodTypeAny, {
|
|
3532
|
-
id: number;
|
|
3533
3532
|
email: string;
|
|
3534
3533
|
status: NewsletterRecipientStatus;
|
|
3534
|
+
id: number;
|
|
3535
3535
|
user_id: number | null;
|
|
3536
3536
|
newsletter_campaign_id: number;
|
|
3537
3537
|
type?: "newsletter_campaign_recipient" | undefined;
|
|
3538
3538
|
user?: {
|
|
3539
|
-
id: number;
|
|
3540
3539
|
name: string;
|
|
3540
|
+
id: number;
|
|
3541
3541
|
email?: string | undefined;
|
|
3542
3542
|
} | null | undefined;
|
|
3543
3543
|
error?: string | null | undefined;
|
|
@@ -3547,15 +3547,15 @@ declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
|
|
|
3547
3547
|
bounced_at?: string | null | undefined;
|
|
3548
3548
|
complained_at?: string | null | undefined;
|
|
3549
3549
|
}, {
|
|
3550
|
-
id: number;
|
|
3551
3550
|
email: string;
|
|
3552
3551
|
status: NewsletterRecipientStatus;
|
|
3552
|
+
id: number;
|
|
3553
3553
|
user_id: number | null;
|
|
3554
3554
|
newsletter_campaign_id: number;
|
|
3555
3555
|
type?: "newsletter_campaign_recipient" | undefined;
|
|
3556
3556
|
user?: {
|
|
3557
|
-
id: number;
|
|
3558
3557
|
name: string;
|
|
3558
|
+
id: number;
|
|
3559
3559
|
email?: string | undefined;
|
|
3560
3560
|
} | null | undefined;
|
|
3561
3561
|
error?: string | null | undefined;
|
|
@@ -4000,8 +4000,8 @@ declare const TodoSchema: z.ZodObject<{
|
|
|
4000
4000
|
}>;
|
|
4001
4001
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4002
4002
|
}, "strip", z.ZodTypeAny, {
|
|
4003
|
-
title: string;
|
|
4004
4003
|
key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "fill_training_record" | "sign_training_record";
|
|
4004
|
+
title: string;
|
|
4005
4005
|
priority: "low" | "normal" | "high";
|
|
4006
4006
|
is_overdue: boolean;
|
|
4007
4007
|
ref_type: string;
|
|
@@ -4016,8 +4016,8 @@ declare const TodoSchema: z.ZodObject<{
|
|
|
4016
4016
|
subtitle?: string | null | undefined;
|
|
4017
4017
|
meta?: Record<string, any> | undefined;
|
|
4018
4018
|
}, {
|
|
4019
|
-
title: string;
|
|
4020
4019
|
key: "fill_form" | "sign_form" | "review_form" | "log_booking" | "add_address" | "add_required_documents" | "fill_training_record" | "sign_training_record";
|
|
4020
|
+
title: string;
|
|
4021
4021
|
ref_type: string;
|
|
4022
4022
|
ref_id: number;
|
|
4023
4023
|
action: {
|