@updraft-solutions/mcrit-sdk 0.11.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-VFCUI2TH.js → chunk-Q73PQFAM.js} +55 -11
- package/dist/{chunk-HHQ7PFX2.cjs → chunk-T7J6XEV7.cjs} +56 -12
- package/dist/index.cjs +10 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +22 -16
- package/dist/schemas/index.cjs +8 -2
- package/dist/schemas/index.d.cts +107 -2
- package/dist/schemas/index.d.ts +107 -2
- package/dist/schemas/index.js +7 -1
- package/dist/{training-BNAGw2Te.d.cts → training-B5bsRTKy.d.cts} +3384 -9474
- package/dist/{training-BNAGw2Te.d.ts → training-B5bsRTKy.d.ts} +3384 -9474
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/schemas/common.ts +23 -0
- package/src/schemas/models.ts +43 -10
- package/src/schemas/newsletter.ts +13 -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, x as FuelUnit, G as GradeHistoryItem, y as GradingScale, z as GradingScaleForm, D as GradingScaleFormSchema, H as GradingScalePoint, I as ImpersonationParticipant, J as ImpersonationState, K as InvalidateTrainingRecordResponse, R as ReorderSyllabusElementItem, L as ReorderSyllabusElementItemSchema, M as RequiredForm, N as RequiredFormSchema, O as RequiredFormVia, P as RequiredFormViaCrew, Q as RequiredFormViaCrewSchema, S as RequiredFormViaSchema, T as ReviewFormSubmissionInput, U as SchemaField, V as SchemaFieldSchema, W as SchemaSection, X as SchemaSectionSchema, Y as ShowWhen, Z as ShowWhenSchema, _ as SignOffTrainingElementForm, $ as SignOffTrainingElementFormSchema, a0 as Signature, a1 as SignatureSchema, a2 as StoreSyllabusForm, a3 as StoreSyllabusFormSchema, a4 as SubmissionFile, a5 as SubmissionFileSchema, a6 as Syllabus, a7 as SyllabusElement, a8 as SyllabusElementMutationResult, a9 as SyllabusKind, aa as SyllabusKindEnum, ab as SyllabusRolloutResult, ac as SyllabusRolloutResultItem, ad as SyllabusRolloutSkippedItem, ae as TemplateSchema, af as TemplateSchemaSchema, ag as TrainingElement, ah as TrainingElementForm, ai as TrainingElementFormSchema, aj as TrainingElementKind, ak as TrainingElementKindEnum, al as TrainingRecord, am as TrainingRecordEntry, an as TrainingRecordEntryInput, ao as TrainingRecordResult, ap as TrainingRecordResultEnum, aq as TrainingRecordStatus, ar as TrainingRecordStatusEnum, as as TrainingSignature, at as TrainingTemplatePack, au as UpdateFormTemplateInput, av as UpdateSyllabusElementForm, aw as UpdateSyllabusElementFormSchema, ax as UpdateSyllabusForm, ay as UpdateSyllabusFormSchema, az as UpsertTrainingRecordForm, aA as UpsertTrainingRecordFormSchema, aB as UsedByCourse, aC as activitySchema, aD as addressSchema, aE as aircraftPositionSchema, aF as aircraftRatingSchema, aG as airplaneIssueSchema, aH as airplaneIssueSeverityEnum, aI as airplaneIssueStatusEnum, aJ as airplanePermissionSchema, aK as airplaneSchema, aL as airplaneShareInviteSchema, aM as airportSchema, aN as alertSchema, aO as allowedDocumentTypeSchema, aP as approachTypeSchema, aQ as availSchema, aR as baseMembershipSchema, aS as billingProfileSchema, aT as bookingSchema, aU as bookingWaypointSchema, aV as commentSchema, aW 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 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, x as FuelUnit, G as GradeHistoryItem, y as GradingScale, z as GradingScaleForm, D as GradingScaleFormSchema, H as GradingScalePoint, I as ImpersonationParticipant, J as ImpersonationState, K as InvalidateTrainingRecordResponse, R as ReorderSyllabusElementItem, L as ReorderSyllabusElementItemSchema, M as RequiredForm, N as RequiredFormSchema, O as RequiredFormVia, P as RequiredFormViaCrew, Q as RequiredFormViaCrewSchema, S as RequiredFormViaSchema, T as ReviewFormSubmissionInput, U as SchemaField, V as SchemaFieldSchema, W as SchemaSection, X as SchemaSectionSchema, Y as ShowWhen, Z as ShowWhenSchema, _ as SignOffTrainingElementForm, $ as SignOffTrainingElementFormSchema, a0 as Signature, a1 as SignatureSchema, a2 as StoreSyllabusForm, a3 as StoreSyllabusFormSchema, a4 as SubmissionFile, a5 as SubmissionFileSchema, a6 as Syllabus, a7 as SyllabusElement, a8 as SyllabusElementMutationResult, a9 as SyllabusKind, aa as SyllabusKindEnum, ab as SyllabusRolloutResult, ac as SyllabusRolloutResultItem, ad as SyllabusRolloutSkippedItem, ae as TemplateSchema, af as TemplateSchemaSchema, ag as TrainingElement, ah as TrainingElementForm, ai as TrainingElementFormSchema, aj as TrainingElementKind, ak as TrainingElementKindEnum, al as TrainingRecord, am as TrainingRecordEntry, an as TrainingRecordEntryInput, ao as TrainingRecordResult, ap as TrainingRecordResultEnum, aq as TrainingRecordStatus, ar as TrainingRecordStatusEnum, as as TrainingSignature, at as TrainingTemplatePack, au as UpdateFormTemplateInput, av as UpdateSyllabusElementForm, aw as UpdateSyllabusElementFormSchema, ax as UpdateSyllabusForm, ay as UpdateSyllabusFormSchema, az as UpsertTrainingRecordForm, aA as UpsertTrainingRecordFormSchema, aB as UsedByCourse, aC as activitySchema, aD as addressSchema, aE as aircraftPositionSchema, aF as aircraftRatingSchema, aG as airplaneIssueSchema, aH as airplaneIssueSeverityEnum, aI as airplaneIssueStatusEnum, aJ as airplanePermissionSchema, aK as airplaneSchema, aL as airplaneShareInviteSchema, aM as airportSchema, aN as alertSchema, aO as allowedDocumentTypeSchema, aP as approachTypeSchema, aQ as availSchema, aR as baseMembershipSchema, aS as billingProfileSchema, aT as bookingSchema, aU as bookingWaypointSchema, aV as commentSchema, aW as companyIdentitySchema, aX as companySchema, aY as contactAttributeSchema, aZ as courseCheckSyllabusSchema, a_ as courseEnrollmentMetricsSchema, a$ as courseEnrollmentSchema, b0 as courseFeeSchema, b1 as courseSchema, b2 as createSyllabusFromTemplateResultSchema, b3 as documentComplianceStatus, b4 as documentRequirement, b5 as documentRequirementGroup, b6 as documentRequirementGroupAssignment, b7 as documentSchema, b8 as documentShareSchema, b9 as documentType, ba as enrollmentTrainingElementSchema, bb as eventSchema, bc as expenseItemSchema, bd as expenseSchema, be as extendedAirplaneSchema, bf as feeCategoryOptionsSchema, bg as feeSchema, bh as flightLogSchema, bi as fuelUnitSchema, bj as gradeHistoryItemSchema, bk as gradingScalePointSchema, bl as gradingScaleSchema, bm as impersonationParticipantSchema, bn as impersonationStateSchema, bo as invalidateTrainingRecordResponseSchema, bp as invoiceSchema, bq as landingFeeSchema, br as landingSchema, bs as maintenanceEventEstimationSchema, bt as maintenanceEventSchema, bu as maintenanceStatusSchema, bv as mediaCollection, bw as mediaSchema, bx as membershipIdentitySchema, by as membershipSchema, bz as membershipSignupSchema, bA as nestedMembershipSchema, bB as postSchema, bC as postSubjectSchema, bD as prePaidPackageAssignmentSchema, bE as prePaidPackageSchema, bF as priceSchema, bG as qualificationSchema, bH as recurringFlightSchema, bI as roleSchema, bJ as runwaySchema, bK as scheduledFlightSchema, bL as settingSchema, bM as specialFlightSchema, bN as syllabusElementMutationResultSchema, bO as syllabusElementSchema, bP as syllabusRolloutResultItemSchema, bQ as syllabusRolloutResultSchema, bR as syllabusRolloutSkippedItemSchema, bS as syllabusSchema, bT as tagSchema, bU as ticketSchema, bV as trainingElementSchema, bW as trainingRecordEntryInputSchema, bX as trainingRecordEntrySchema, bY as trainingRecordSchema, bZ as trainingSignatureSchema, b_ as trainingTemplatePackSchema, b$ as usedByCourseSchema, c0 as userAircraftRatingSchema, c1 as userQualificationSchema, c2 as userSchema, c3 as waypointSchema, c4 as zContactDTO, c5 as zMoneyObject, c6 as zNetGross, c7 as zNullableBool } from '../training-B5bsRTKy.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum FaqStatus {
|
|
@@ -1455,6 +1455,10 @@ declare const NewsletterCategorySchema: z.ZodObject<{
|
|
|
1455
1455
|
name: z.ZodString;
|
|
1456
1456
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1457
1457
|
is_mandatory: z.ZodBoolean;
|
|
1458
|
+
/** Missing preference row → opted in (true) or opted out (false). */
|
|
1459
|
+
default_opt_in: z.ZodOptional<z.ZodBoolean>;
|
|
1460
|
+
/** Reserved for application notifications — never selectable for campaigns. */
|
|
1461
|
+
is_internal: z.ZodOptional<z.ZodBoolean>;
|
|
1458
1462
|
is_active: z.ZodBoolean;
|
|
1459
1463
|
sort_order: z.ZodNumber;
|
|
1460
1464
|
created_at: z.ZodOptional<z.ZodString>;
|
|
@@ -1470,6 +1474,8 @@ declare const NewsletterCategorySchema: z.ZodObject<{
|
|
|
1470
1474
|
created_at?: string | undefined;
|
|
1471
1475
|
updated_at?: string | undefined;
|
|
1472
1476
|
description?: string | null | undefined;
|
|
1477
|
+
default_opt_in?: boolean | undefined;
|
|
1478
|
+
is_internal?: boolean | undefined;
|
|
1473
1479
|
}, {
|
|
1474
1480
|
sort_order: number;
|
|
1475
1481
|
id: number;
|
|
@@ -1481,6 +1487,8 @@ declare const NewsletterCategorySchema: z.ZodObject<{
|
|
|
1481
1487
|
created_at?: string | undefined;
|
|
1482
1488
|
updated_at?: string | undefined;
|
|
1483
1489
|
description?: string | null | undefined;
|
|
1490
|
+
default_opt_in?: boolean | undefined;
|
|
1491
|
+
is_internal?: boolean | undefined;
|
|
1484
1492
|
}>;
|
|
1485
1493
|
type NewsletterCategory = z.infer<typeof NewsletterCategorySchema>;
|
|
1486
1494
|
declare const NewsletterTemplateSchemaSchema: z.ZodObject<{
|
|
@@ -1622,6 +1630,10 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1622
1630
|
name: z.ZodString;
|
|
1623
1631
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1624
1632
|
is_mandatory: z.ZodBoolean;
|
|
1633
|
+
/** Missing preference row → opted in (true) or opted out (false). */
|
|
1634
|
+
default_opt_in: z.ZodOptional<z.ZodBoolean>;
|
|
1635
|
+
/** Reserved for application notifications — never selectable for campaigns. */
|
|
1636
|
+
is_internal: z.ZodOptional<z.ZodBoolean>;
|
|
1625
1637
|
is_active: z.ZodBoolean;
|
|
1626
1638
|
sort_order: z.ZodNumber;
|
|
1627
1639
|
created_at: z.ZodOptional<z.ZodString>;
|
|
@@ -1637,6 +1649,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1637
1649
|
created_at?: string | undefined;
|
|
1638
1650
|
updated_at?: string | undefined;
|
|
1639
1651
|
description?: string | null | undefined;
|
|
1652
|
+
default_opt_in?: boolean | undefined;
|
|
1653
|
+
is_internal?: boolean | undefined;
|
|
1640
1654
|
}, {
|
|
1641
1655
|
sort_order: number;
|
|
1642
1656
|
id: number;
|
|
@@ -1648,6 +1662,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1648
1662
|
created_at?: string | undefined;
|
|
1649
1663
|
updated_at?: string | undefined;
|
|
1650
1664
|
description?: string | null | undefined;
|
|
1665
|
+
default_opt_in?: boolean | undefined;
|
|
1666
|
+
is_internal?: boolean | undefined;
|
|
1651
1667
|
}>>>;
|
|
1652
1668
|
name: z.ZodString;
|
|
1653
1669
|
slug: z.ZodString;
|
|
@@ -1795,6 +1811,19 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1795
1811
|
name: string;
|
|
1796
1812
|
email?: string | undefined;
|
|
1797
1813
|
}>>>;
|
|
1814
|
+
can: z.ZodOptional<z.ZodObject<{
|
|
1815
|
+
update: z.ZodOptional<z.ZodBoolean>;
|
|
1816
|
+
delete: z.ZodOptional<z.ZodBoolean>;
|
|
1817
|
+
duplicate: z.ZodOptional<z.ZodBoolean>;
|
|
1818
|
+
}, "strip", z.ZodTypeAny, {
|
|
1819
|
+
update?: boolean | undefined;
|
|
1820
|
+
delete?: boolean | undefined;
|
|
1821
|
+
duplicate?: boolean | undefined;
|
|
1822
|
+
}, {
|
|
1823
|
+
update?: boolean | undefined;
|
|
1824
|
+
delete?: boolean | undefined;
|
|
1825
|
+
duplicate?: boolean | undefined;
|
|
1826
|
+
}>>;
|
|
1798
1827
|
created_at: z.ZodOptional<z.ZodString>;
|
|
1799
1828
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
1800
1829
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1837,6 +1866,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1837
1866
|
created_at?: string | undefined;
|
|
1838
1867
|
updated_at?: string | undefined;
|
|
1839
1868
|
description?: string | null | undefined;
|
|
1869
|
+
can?: {
|
|
1870
|
+
update?: boolean | undefined;
|
|
1871
|
+
delete?: boolean | undefined;
|
|
1872
|
+
duplicate?: boolean | undefined;
|
|
1873
|
+
} | undefined;
|
|
1840
1874
|
category?: {
|
|
1841
1875
|
sort_order: number;
|
|
1842
1876
|
id: number;
|
|
@@ -1848,6 +1882,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1848
1882
|
created_at?: string | undefined;
|
|
1849
1883
|
updated_at?: string | undefined;
|
|
1850
1884
|
description?: string | null | undefined;
|
|
1885
|
+
default_opt_in?: boolean | undefined;
|
|
1886
|
+
is_internal?: boolean | undefined;
|
|
1851
1887
|
} | null | undefined;
|
|
1852
1888
|
created_by?: number | null | undefined;
|
|
1853
1889
|
is_system?: boolean | undefined;
|
|
@@ -1897,6 +1933,11 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1897
1933
|
created_at?: string | undefined;
|
|
1898
1934
|
updated_at?: string | undefined;
|
|
1899
1935
|
description?: string | null | undefined;
|
|
1936
|
+
can?: {
|
|
1937
|
+
update?: boolean | undefined;
|
|
1938
|
+
delete?: boolean | undefined;
|
|
1939
|
+
duplicate?: boolean | undefined;
|
|
1940
|
+
} | undefined;
|
|
1900
1941
|
category?: {
|
|
1901
1942
|
sort_order: number;
|
|
1902
1943
|
id: number;
|
|
@@ -1908,6 +1949,8 @@ declare const NewsletterTemplateSchema: z.ZodObject<{
|
|
|
1908
1949
|
created_at?: string | undefined;
|
|
1909
1950
|
updated_at?: string | undefined;
|
|
1910
1951
|
description?: string | null | undefined;
|
|
1952
|
+
default_opt_in?: boolean | undefined;
|
|
1953
|
+
is_internal?: boolean | undefined;
|
|
1911
1954
|
} | null | undefined;
|
|
1912
1955
|
created_by?: number | null | undefined;
|
|
1913
1956
|
is_system?: boolean | undefined;
|
|
@@ -2287,6 +2330,10 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2287
2330
|
name: z.ZodString;
|
|
2288
2331
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2289
2332
|
is_mandatory: z.ZodBoolean;
|
|
2333
|
+
/** Missing preference row → opted in (true) or opted out (false). */
|
|
2334
|
+
default_opt_in: z.ZodOptional<z.ZodBoolean>;
|
|
2335
|
+
/** Reserved for application notifications — never selectable for campaigns. */
|
|
2336
|
+
is_internal: z.ZodOptional<z.ZodBoolean>;
|
|
2290
2337
|
is_active: z.ZodBoolean;
|
|
2291
2338
|
sort_order: z.ZodNumber;
|
|
2292
2339
|
created_at: z.ZodOptional<z.ZodString>;
|
|
@@ -2302,6 +2349,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2302
2349
|
created_at?: string | undefined;
|
|
2303
2350
|
updated_at?: string | undefined;
|
|
2304
2351
|
description?: string | null | undefined;
|
|
2352
|
+
default_opt_in?: boolean | undefined;
|
|
2353
|
+
is_internal?: boolean | undefined;
|
|
2305
2354
|
}, {
|
|
2306
2355
|
sort_order: number;
|
|
2307
2356
|
id: number;
|
|
@@ -2313,6 +2362,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2313
2362
|
created_at?: string | undefined;
|
|
2314
2363
|
updated_at?: string | undefined;
|
|
2315
2364
|
description?: string | null | undefined;
|
|
2365
|
+
default_opt_in?: boolean | undefined;
|
|
2366
|
+
is_internal?: boolean | undefined;
|
|
2316
2367
|
}>>>>;
|
|
2317
2368
|
name: z.ZodOptional<z.ZodString>;
|
|
2318
2369
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2460,6 +2511,19 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2460
2511
|
name: string;
|
|
2461
2512
|
email?: string | undefined;
|
|
2462
2513
|
}>>>>;
|
|
2514
|
+
can: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2515
|
+
update: z.ZodOptional<z.ZodBoolean>;
|
|
2516
|
+
delete: z.ZodOptional<z.ZodBoolean>;
|
|
2517
|
+
duplicate: z.ZodOptional<z.ZodBoolean>;
|
|
2518
|
+
}, "strip", z.ZodTypeAny, {
|
|
2519
|
+
update?: boolean | undefined;
|
|
2520
|
+
delete?: boolean | undefined;
|
|
2521
|
+
duplicate?: boolean | undefined;
|
|
2522
|
+
}, {
|
|
2523
|
+
update?: boolean | undefined;
|
|
2524
|
+
delete?: boolean | undefined;
|
|
2525
|
+
duplicate?: boolean | undefined;
|
|
2526
|
+
}>>>;
|
|
2463
2527
|
created_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2464
2528
|
updated_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2465
2529
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2469,6 +2533,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2469
2533
|
created_at?: string | undefined;
|
|
2470
2534
|
updated_at?: string | undefined;
|
|
2471
2535
|
description?: string | null | undefined;
|
|
2536
|
+
can?: {
|
|
2537
|
+
update?: boolean | undefined;
|
|
2538
|
+
delete?: boolean | undefined;
|
|
2539
|
+
duplicate?: boolean | undefined;
|
|
2540
|
+
} | undefined;
|
|
2472
2541
|
is_active?: boolean | undefined;
|
|
2473
2542
|
company_id?: number | null | undefined;
|
|
2474
2543
|
schema_version?: number | undefined;
|
|
@@ -2483,6 +2552,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2483
2552
|
created_at?: string | undefined;
|
|
2484
2553
|
updated_at?: string | undefined;
|
|
2485
2554
|
description?: string | null | undefined;
|
|
2555
|
+
default_opt_in?: boolean | undefined;
|
|
2556
|
+
is_internal?: boolean | undefined;
|
|
2486
2557
|
} | null | undefined;
|
|
2487
2558
|
created_by?: number | null | undefined;
|
|
2488
2559
|
slug?: string | undefined;
|
|
@@ -2529,6 +2600,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2529
2600
|
created_at?: string | undefined;
|
|
2530
2601
|
updated_at?: string | undefined;
|
|
2531
2602
|
description?: string | null | undefined;
|
|
2603
|
+
can?: {
|
|
2604
|
+
update?: boolean | undefined;
|
|
2605
|
+
delete?: boolean | undefined;
|
|
2606
|
+
duplicate?: boolean | undefined;
|
|
2607
|
+
} | undefined;
|
|
2532
2608
|
is_active?: boolean | undefined;
|
|
2533
2609
|
company_id?: number | null | undefined;
|
|
2534
2610
|
schema_version?: number | undefined;
|
|
@@ -2543,6 +2619,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2543
2619
|
created_at?: string | undefined;
|
|
2544
2620
|
updated_at?: string | undefined;
|
|
2545
2621
|
description?: string | null | undefined;
|
|
2622
|
+
default_opt_in?: boolean | undefined;
|
|
2623
|
+
is_internal?: boolean | undefined;
|
|
2546
2624
|
} | null | undefined;
|
|
2547
2625
|
created_by?: number | null | undefined;
|
|
2548
2626
|
slug?: string | undefined;
|
|
@@ -2591,6 +2669,10 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2591
2669
|
name: z.ZodString;
|
|
2592
2670
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2593
2671
|
is_mandatory: z.ZodBoolean;
|
|
2672
|
+
/** Missing preference row → opted in (true) or opted out (false). */
|
|
2673
|
+
default_opt_in: z.ZodOptional<z.ZodBoolean>;
|
|
2674
|
+
/** Reserved for application notifications — never selectable for campaigns. */
|
|
2675
|
+
is_internal: z.ZodOptional<z.ZodBoolean>;
|
|
2594
2676
|
is_active: z.ZodBoolean;
|
|
2595
2677
|
sort_order: z.ZodNumber;
|
|
2596
2678
|
created_at: z.ZodOptional<z.ZodString>;
|
|
@@ -2606,6 +2688,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2606
2688
|
created_at?: string | undefined;
|
|
2607
2689
|
updated_at?: string | undefined;
|
|
2608
2690
|
description?: string | null | undefined;
|
|
2691
|
+
default_opt_in?: boolean | undefined;
|
|
2692
|
+
is_internal?: boolean | undefined;
|
|
2609
2693
|
}, {
|
|
2610
2694
|
sort_order: number;
|
|
2611
2695
|
id: number;
|
|
@@ -2617,6 +2701,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2617
2701
|
created_at?: string | undefined;
|
|
2618
2702
|
updated_at?: string | undefined;
|
|
2619
2703
|
description?: string | null | undefined;
|
|
2704
|
+
default_opt_in?: boolean | undefined;
|
|
2705
|
+
is_internal?: boolean | undefined;
|
|
2620
2706
|
}>>>;
|
|
2621
2707
|
name: z.ZodString;
|
|
2622
2708
|
subject: z.ZodString;
|
|
@@ -2958,6 +3044,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2958
3044
|
created_at?: string | undefined;
|
|
2959
3045
|
updated_at?: string | undefined;
|
|
2960
3046
|
description?: string | null | undefined;
|
|
3047
|
+
default_opt_in?: boolean | undefined;
|
|
3048
|
+
is_internal?: boolean | undefined;
|
|
2961
3049
|
} | null | undefined;
|
|
2962
3050
|
scheduled_at?: string | null | undefined;
|
|
2963
3051
|
is_system?: boolean | undefined;
|
|
@@ -2968,6 +3056,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2968
3056
|
created_at?: string | undefined;
|
|
2969
3057
|
updated_at?: string | undefined;
|
|
2970
3058
|
description?: string | null | undefined;
|
|
3059
|
+
can?: {
|
|
3060
|
+
update?: boolean | undefined;
|
|
3061
|
+
delete?: boolean | undefined;
|
|
3062
|
+
duplicate?: boolean | undefined;
|
|
3063
|
+
} | undefined;
|
|
2971
3064
|
is_active?: boolean | undefined;
|
|
2972
3065
|
company_id?: number | null | undefined;
|
|
2973
3066
|
schema_version?: number | undefined;
|
|
@@ -2982,6 +3075,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
2982
3075
|
created_at?: string | undefined;
|
|
2983
3076
|
updated_at?: string | undefined;
|
|
2984
3077
|
description?: string | null | undefined;
|
|
3078
|
+
default_opt_in?: boolean | undefined;
|
|
3079
|
+
is_internal?: boolean | undefined;
|
|
2985
3080
|
} | null | undefined;
|
|
2986
3081
|
created_by?: number | null | undefined;
|
|
2987
3082
|
slug?: string | undefined;
|
|
@@ -3113,6 +3208,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3113
3208
|
created_at?: string | undefined;
|
|
3114
3209
|
updated_at?: string | undefined;
|
|
3115
3210
|
description?: string | null | undefined;
|
|
3211
|
+
default_opt_in?: boolean | undefined;
|
|
3212
|
+
is_internal?: boolean | undefined;
|
|
3116
3213
|
} | null | undefined;
|
|
3117
3214
|
scheduled_at?: string | null | undefined;
|
|
3118
3215
|
is_system?: boolean | undefined;
|
|
@@ -3123,6 +3220,11 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3123
3220
|
created_at?: string | undefined;
|
|
3124
3221
|
updated_at?: string | undefined;
|
|
3125
3222
|
description?: string | null | undefined;
|
|
3223
|
+
can?: {
|
|
3224
|
+
update?: boolean | undefined;
|
|
3225
|
+
delete?: boolean | undefined;
|
|
3226
|
+
duplicate?: boolean | undefined;
|
|
3227
|
+
} | undefined;
|
|
3126
3228
|
is_active?: boolean | undefined;
|
|
3127
3229
|
company_id?: number | null | undefined;
|
|
3128
3230
|
schema_version?: number | undefined;
|
|
@@ -3137,6 +3239,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
|
|
|
3137
3239
|
created_at?: string | undefined;
|
|
3138
3240
|
updated_at?: string | undefined;
|
|
3139
3241
|
description?: string | null | undefined;
|
|
3242
|
+
default_opt_in?: boolean | undefined;
|
|
3243
|
+
is_internal?: boolean | undefined;
|
|
3140
3244
|
} | null | undefined;
|
|
3141
3245
|
created_by?: number | null | undefined;
|
|
3142
3246
|
slug?: string | undefined;
|
|
@@ -3499,7 +3603,8 @@ declare enum NewsletterRecipientStatus {
|
|
|
3499
3603
|
Bounced = "bounced",
|
|
3500
3604
|
Complained = "complained",
|
|
3501
3605
|
Suppressed = "suppressed",
|
|
3502
|
-
OptedOut = "opted_out"
|
|
3606
|
+
OptedOut = "opted_out",
|
|
3607
|
+
Cancelled = "cancelled"
|
|
3503
3608
|
}
|
|
3504
3609
|
declare const NewsletterCampaignRecipientSchema: z.ZodObject<{
|
|
3505
3610
|
type: z.ZodOptional<z.ZodLiteral<"newsletter_campaign_recipient">>;
|
package/dist/schemas/index.js
CHANGED
|
@@ -109,6 +109,7 @@ import {
|
|
|
109
109
|
bookingWaypointSchema,
|
|
110
110
|
commentSchema,
|
|
111
111
|
companyAudienceInclude,
|
|
112
|
+
companyIdentitySchema,
|
|
112
113
|
companySchema,
|
|
113
114
|
contactAttributeSchema,
|
|
114
115
|
courseCheckSyllabusSchema,
|
|
@@ -150,8 +151,10 @@ import {
|
|
|
150
151
|
maintenanceStatusSchema,
|
|
151
152
|
mediaCollection,
|
|
152
153
|
mediaSchema,
|
|
154
|
+
membershipIdentitySchema,
|
|
153
155
|
membershipSchema,
|
|
154
156
|
membershipSignupSchema,
|
|
157
|
+
nestedMembershipSchema,
|
|
155
158
|
postSchema,
|
|
156
159
|
postSubjectSchema,
|
|
157
160
|
prePaidPackageAssignmentSchema,
|
|
@@ -187,7 +190,7 @@ import {
|
|
|
187
190
|
zMoneyObject,
|
|
188
191
|
zNetGross,
|
|
189
192
|
zNullableBool
|
|
190
|
-
} from "../chunk-
|
|
193
|
+
} from "../chunk-Q73PQFAM.js";
|
|
191
194
|
export {
|
|
192
195
|
ALLOWED_GEOMETRY_TYPES,
|
|
193
196
|
ALLOWED_NEWSLETTER_VARIABLES,
|
|
@@ -299,6 +302,7 @@ export {
|
|
|
299
302
|
bookingWaypointSchema,
|
|
300
303
|
commentSchema,
|
|
301
304
|
companyAudienceInclude,
|
|
305
|
+
companyIdentitySchema,
|
|
302
306
|
companySchema,
|
|
303
307
|
contactAttributeSchema,
|
|
304
308
|
courseCheckSyllabusSchema,
|
|
@@ -340,8 +344,10 @@ export {
|
|
|
340
344
|
maintenanceStatusSchema,
|
|
341
345
|
mediaCollection,
|
|
342
346
|
mediaSchema,
|
|
347
|
+
membershipIdentitySchema,
|
|
343
348
|
membershipSchema,
|
|
344
349
|
membershipSignupSchema,
|
|
350
|
+
nestedMembershipSchema,
|
|
345
351
|
postSchema,
|
|
346
352
|
postSubjectSchema,
|
|
347
353
|
prePaidPackageAssignmentSchema,
|