@financial-times/content-curation-client 6.3.0 → 7.0.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/_tsup-dts-rollup.d.cts +1467 -11853
- package/dist/_tsup-dts-rollup.d.ts +1467 -11853
- package/dist/index.cjs +166 -143
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +158 -135
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -190,8 +190,11 @@ function readStringProperty(error, property) {
|
|
|
190
190
|
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
+
// src/internal/response-handling.ts
|
|
194
|
+
import { z as z2 } from "zod/v4";
|
|
195
|
+
|
|
193
196
|
// src/schemas/response.ts
|
|
194
|
-
import { z } from "zod";
|
|
197
|
+
import { z } from "zod/v4";
|
|
195
198
|
var ApiErrorCode = z.enum([
|
|
196
199
|
"UNAUTHORIZED",
|
|
197
200
|
"NOT_FOUND",
|
|
@@ -228,6 +231,7 @@ function ApiResponseSchema(dataSchema) {
|
|
|
228
231
|
// src/internal/response-handling.ts
|
|
229
232
|
var GATEWAY_STATUS_CODES = /* @__PURE__ */ new Set([499, 502, 503]);
|
|
230
233
|
var MAX_DIAGNOSTIC_BODY_LENGTH = 2e3;
|
|
234
|
+
var ApiSuccessEnvelopeCandidateSchema = ApiSuccessResponseSchema(z2.unknown());
|
|
231
235
|
function isGatewayStatusCode(statusCode) {
|
|
232
236
|
return GATEWAY_STATUS_CODES.has(statusCode);
|
|
233
237
|
}
|
|
@@ -271,8 +275,27 @@ function parseApiResponse(responseDataSchema, responseBody) {
|
|
|
271
275
|
if (responseBody.json === void 0) {
|
|
272
276
|
return null;
|
|
273
277
|
}
|
|
274
|
-
|
|
275
|
-
|
|
278
|
+
if (hasOwnDataProperty(responseBody.json)) {
|
|
279
|
+
const parsedSuccess = ApiSuccessEnvelopeCandidateSchema.safeParse(responseBody.json);
|
|
280
|
+
if (!parsedSuccess.success) {
|
|
281
|
+
return null;
|
|
282
|
+
}
|
|
283
|
+
const parsedData = responseDataSchema.safeParse(parsedSuccess.data.data);
|
|
284
|
+
if (!parsedData.success) {
|
|
285
|
+
return null;
|
|
286
|
+
}
|
|
287
|
+
return {
|
|
288
|
+
status: "success",
|
|
289
|
+
statusCode: parsedSuccess.data.statusCode,
|
|
290
|
+
requestId: parsedSuccess.data.requestId,
|
|
291
|
+
data: parsedData.data
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
const parsedError = ApiErrorResponseSchema.safeParse(responseBody.json);
|
|
295
|
+
return parsedError.success ? parsedError.data : null;
|
|
296
|
+
}
|
|
297
|
+
function hasOwnDataProperty(value) {
|
|
298
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) && Object.hasOwn(value, "data");
|
|
276
299
|
}
|
|
277
300
|
function parseApiErrorResponse(responseBody) {
|
|
278
301
|
if (responseBody.json === void 0) {
|
|
@@ -416,7 +439,7 @@ function parseSuccessfulResponse(path, url, response, responseBody, responseData
|
|
|
416
439
|
requestId: getResponseRequestId(response)
|
|
417
440
|
});
|
|
418
441
|
}
|
|
419
|
-
if ("error"
|
|
442
|
+
if (parsedResponse.status === "error") {
|
|
420
443
|
throw new ApiServiceError(
|
|
421
444
|
parsedResponse.error,
|
|
422
445
|
parsedResponse.statusCode,
|
|
@@ -524,131 +547,131 @@ function trimTrailingSlashes(value) {
|
|
|
524
547
|
}
|
|
525
548
|
|
|
526
549
|
// src/schemas/ftpink/legacyHubPage/index.ts
|
|
527
|
-
import { z as
|
|
528
|
-
var LegacyFlourishChildSchema =
|
|
529
|
-
source:
|
|
530
|
-
properties:
|
|
531
|
-
id:
|
|
550
|
+
import { z as z3 } from "zod/v4";
|
|
551
|
+
var LegacyFlourishChildSchema = z3.object({
|
|
552
|
+
source: z3.literal("flourish"),
|
|
553
|
+
properties: z3.object({
|
|
554
|
+
id: z3.string().min(1)
|
|
532
555
|
// e.g. "visualisation/21901162"
|
|
533
556
|
})
|
|
534
557
|
});
|
|
535
|
-
var LegacyListChildSchema =
|
|
536
|
-
source:
|
|
537
|
-
properties:
|
|
538
|
-
id:
|
|
539
|
-
maxItems:
|
|
558
|
+
var LegacyListChildSchema = z3.object({
|
|
559
|
+
source: z3.literal("list"),
|
|
560
|
+
properties: z3.object({
|
|
561
|
+
id: z3.string().uuid(),
|
|
562
|
+
maxItems: z3.number().optional()
|
|
540
563
|
})
|
|
541
564
|
});
|
|
542
|
-
var LegacyContentChildSchema =
|
|
543
|
-
source:
|
|
544
|
-
properties:
|
|
545
|
-
ids:
|
|
565
|
+
var LegacyContentChildSchema = z3.object({
|
|
566
|
+
source: z3.literal("content"),
|
|
567
|
+
properties: z3.object({
|
|
568
|
+
ids: z3.array(z3.string()).nonempty()
|
|
546
569
|
})
|
|
547
570
|
});
|
|
548
|
-
var LegacyContainerChildSchema =
|
|
571
|
+
var LegacyContainerChildSchema = z3.discriminatedUnion("source", [
|
|
549
572
|
LegacyFlourishChildSchema,
|
|
550
573
|
LegacyListChildSchema,
|
|
551
574
|
LegacyContentChildSchema
|
|
552
575
|
]);
|
|
553
|
-
var LegacyTopperSchema =
|
|
554
|
-
type:
|
|
555
|
-
properties:
|
|
556
|
-
title:
|
|
557
|
-
sponsorText:
|
|
558
|
-
sponsorImage:
|
|
576
|
+
var LegacyTopperSchema = z3.object({
|
|
577
|
+
type: z3.literal("topper-basic"),
|
|
578
|
+
properties: z3.object({
|
|
579
|
+
title: z3.string(),
|
|
580
|
+
sponsorText: z3.string().optional(),
|
|
581
|
+
sponsorImage: z3.string().url().optional()
|
|
559
582
|
})
|
|
560
583
|
});
|
|
561
|
-
var LegacyInfoBoxSchema =
|
|
562
|
-
type:
|
|
563
|
-
properties:
|
|
564
|
-
bodyHTML:
|
|
565
|
-
title:
|
|
584
|
+
var LegacyInfoBoxSchema = z3.object({
|
|
585
|
+
type: z3.literal("info-box"),
|
|
586
|
+
properties: z3.object({
|
|
587
|
+
bodyHTML: z3.string(),
|
|
588
|
+
title: z3.string().optional()
|
|
566
589
|
})
|
|
567
590
|
});
|
|
568
|
-
var LegacyContainerSchema =
|
|
569
|
-
type:
|
|
570
|
-
children:
|
|
571
|
-
properties:
|
|
572
|
-
title:
|
|
573
|
-
design:
|
|
574
|
-
backgroundColor:
|
|
591
|
+
var LegacyContainerSchema = z3.object({
|
|
592
|
+
type: z3.literal("container"),
|
|
593
|
+
children: z3.array(LegacyContainerChildSchema).min(1),
|
|
594
|
+
properties: z3.object({
|
|
595
|
+
title: z3.string().optional(),
|
|
596
|
+
design: z3.enum(["chart", "four-story", "freeform", "hero-lead"]).default("freeform"),
|
|
597
|
+
backgroundColor: z3.string().optional()
|
|
575
598
|
})
|
|
576
599
|
});
|
|
577
|
-
var LegacyExperimentSchema =
|
|
578
|
-
type:
|
|
579
|
-
children:
|
|
580
|
-
properties:
|
|
581
|
-
experimentName:
|
|
582
|
-
id:
|
|
583
|
-
title:
|
|
584
|
-
config:
|
|
585
|
-
value:
|
|
600
|
+
var LegacyExperimentSchema = z3.object({
|
|
601
|
+
type: z3.literal("experiment"),
|
|
602
|
+
children: z3.tuple([]),
|
|
603
|
+
properties: z3.object({
|
|
604
|
+
experimentName: z3.string(),
|
|
605
|
+
id: z3.string(),
|
|
606
|
+
title: z3.string().optional(),
|
|
607
|
+
config: z3.object({
|
|
608
|
+
value: z3.unknown().optional(),
|
|
586
609
|
// Hub pages support experiments with HTML and Text.
|
|
587
610
|
// For now we just support JSON. As we migrate pages, this may change.
|
|
588
|
-
format:
|
|
611
|
+
format: z3.enum(["json"]).default("json")
|
|
589
612
|
}).partial().optional()
|
|
590
613
|
})
|
|
591
614
|
});
|
|
592
|
-
var LegacyBlockSchema =
|
|
615
|
+
var LegacyBlockSchema = z3.discriminatedUnion("type", [
|
|
593
616
|
LegacyTopperSchema,
|
|
594
617
|
LegacyInfoBoxSchema,
|
|
595
618
|
LegacyContainerSchema,
|
|
596
619
|
LegacyExperimentSchema
|
|
597
620
|
]);
|
|
598
|
-
var LegacyPageStructureOutputSchema =
|
|
599
|
-
uuid:
|
|
600
|
-
title:
|
|
601
|
-
conceptId:
|
|
602
|
-
themeName:
|
|
603
|
-
metaDescription:
|
|
604
|
-
blocks:
|
|
621
|
+
var LegacyPageStructureOutputSchema = z3.object({
|
|
622
|
+
uuid: z3.string().uuid(),
|
|
623
|
+
title: z3.string(),
|
|
624
|
+
conceptId: z3.string().uuid().optional(),
|
|
625
|
+
themeName: z3.string().optional(),
|
|
626
|
+
metaDescription: z3.string().optional(),
|
|
627
|
+
blocks: z3.array(LegacyBlockSchema)
|
|
605
628
|
});
|
|
606
629
|
|
|
607
630
|
// src/schemas/ftpink/page/index.ts
|
|
608
|
-
import { z as
|
|
631
|
+
import { z as z5 } from "zod/v4";
|
|
609
632
|
|
|
610
633
|
// src/schemas/prosemirror.ts
|
|
611
|
-
import { z as
|
|
612
|
-
var HrefSchema =
|
|
634
|
+
import { z as z4 } from "zod/v4";
|
|
635
|
+
var HrefSchema = z4.string().refine((v) => /^(https?:\/\/|mailto:).+/.test(v), {
|
|
613
636
|
message: "Expected http(s):// or mailto: URL"
|
|
614
637
|
});
|
|
615
|
-
var ProseMirrorLinkMark =
|
|
616
|
-
type:
|
|
617
|
-
attrs:
|
|
638
|
+
var ProseMirrorLinkMark = z4.object({
|
|
639
|
+
type: z4.literal("link"),
|
|
640
|
+
attrs: z4.object({
|
|
618
641
|
href: HrefSchema
|
|
619
642
|
})
|
|
620
643
|
});
|
|
621
|
-
var ProseMirrorMark =
|
|
644
|
+
var ProseMirrorMark = z4.discriminatedUnion("type", [
|
|
622
645
|
ProseMirrorLinkMark,
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
646
|
+
z4.object({ type: z4.literal("bold") }),
|
|
647
|
+
z4.object({ type: z4.literal("italic") }),
|
|
648
|
+
z4.object({ type: z4.literal("underline") }),
|
|
649
|
+
z4.object({ type: z4.literal("strike") })
|
|
627
650
|
]);
|
|
628
|
-
var ProseMirrorTextNode =
|
|
629
|
-
type:
|
|
630
|
-
text:
|
|
631
|
-
marks:
|
|
651
|
+
var ProseMirrorTextNode = z4.object({
|
|
652
|
+
type: z4.literal("text"),
|
|
653
|
+
text: z4.string(),
|
|
654
|
+
marks: z4.array(ProseMirrorMark).optional()
|
|
632
655
|
});
|
|
633
|
-
var ProseMirrorParagraphNode =
|
|
634
|
-
type:
|
|
635
|
-
content:
|
|
656
|
+
var ProseMirrorParagraphNode = z4.object({
|
|
657
|
+
type: z4.literal("paragraph"),
|
|
658
|
+
content: z4.array(ProseMirrorTextNode)
|
|
636
659
|
});
|
|
637
|
-
var ProseMirrorNode =
|
|
638
|
-
var ProseMirrorDocSchema =
|
|
639
|
-
type:
|
|
640
|
-
content:
|
|
660
|
+
var ProseMirrorNode = z4.union([ProseMirrorParagraphNode, ProseMirrorTextNode]);
|
|
661
|
+
var ProseMirrorDocSchema = z4.object({
|
|
662
|
+
type: z4.literal("doc"),
|
|
663
|
+
content: z4.array(ProseMirrorNode).min(1, { message: "Document must contain at least one paragraph" })
|
|
641
664
|
});
|
|
642
665
|
|
|
643
666
|
// src/schemas/ftpink/page/index.ts
|
|
644
|
-
var HeadingSchema =
|
|
645
|
-
text:
|
|
646
|
-
href:
|
|
667
|
+
var HeadingSchema = z5.object({
|
|
668
|
+
text: z5.string(),
|
|
669
|
+
href: z5.string().url().optional()
|
|
647
670
|
});
|
|
648
|
-
var BasePageItemProps =
|
|
671
|
+
var BasePageItemProps = z5.object({
|
|
649
672
|
heading: HeadingSchema.optional()
|
|
650
673
|
});
|
|
651
|
-
var ValidJSONStringSchema =
|
|
674
|
+
var ValidJSONStringSchema = z5.string().refine(
|
|
652
675
|
(val) => {
|
|
653
676
|
try {
|
|
654
677
|
JSON.parse(val);
|
|
@@ -661,36 +684,36 @@ var ValidJSONStringSchema = z4.string().refine(
|
|
|
661
684
|
);
|
|
662
685
|
function defineSliceSchema(options) {
|
|
663
686
|
const { typeName, propsShape } = options;
|
|
664
|
-
const BaseSchema =
|
|
665
|
-
type:
|
|
666
|
-
hidden:
|
|
687
|
+
const BaseSchema = z5.object({
|
|
688
|
+
type: z5.literal(typeName),
|
|
689
|
+
hidden: z5.boolean().optional(),
|
|
667
690
|
properties: propsShape
|
|
668
691
|
});
|
|
669
692
|
const InputSchema = BaseSchema.extend({
|
|
670
|
-
sliceId:
|
|
693
|
+
sliceId: z5.string().uuid().optional()
|
|
671
694
|
});
|
|
672
695
|
const OutputSchema = BaseSchema.extend({
|
|
673
|
-
sliceId:
|
|
696
|
+
sliceId: z5.string().uuid()
|
|
674
697
|
});
|
|
675
698
|
return { InputSchema, OutputSchema };
|
|
676
699
|
}
|
|
677
700
|
var InteractiveSlice = defineSliceSchema({
|
|
678
701
|
typeName: "Interactive",
|
|
679
702
|
propsShape: BasePageItemProps.extend({
|
|
680
|
-
flourishDescription:
|
|
703
|
+
flourishDescription: z5.string().optional(),
|
|
681
704
|
// Optional description for the Flourish graphic
|
|
682
|
-
flourishId:
|
|
683
|
-
flourishAltText:
|
|
684
|
-
storyUUID:
|
|
685
|
-
theme:
|
|
705
|
+
flourishId: z5.string().nonempty(),
|
|
706
|
+
flourishAltText: z5.string().nonempty(),
|
|
707
|
+
storyUUID: z5.string().uuid().optional(),
|
|
708
|
+
theme: z5.string().optional()
|
|
686
709
|
})
|
|
687
710
|
});
|
|
688
711
|
var ExperimentSlice = defineSliceSchema({
|
|
689
712
|
typeName: "Experiment",
|
|
690
713
|
propsShape: BasePageItemProps.extend({
|
|
691
|
-
experimentId:
|
|
714
|
+
experimentId: z5.string().nonempty(),
|
|
692
715
|
// Unique ID for the experiment
|
|
693
|
-
experimentName:
|
|
716
|
+
experimentName: z5.string().nonempty(),
|
|
694
717
|
// Human-readable name of the experiment
|
|
695
718
|
contentJson: ValidJSONStringSchema
|
|
696
719
|
// The experiment’s JSON payload as a valid JSON string
|
|
@@ -699,9 +722,9 @@ var ExperimentSlice = defineSliceSchema({
|
|
|
699
722
|
var StripSlice = defineSliceSchema({
|
|
700
723
|
typeName: "Strip",
|
|
701
724
|
propsShape: BasePageItemProps.extend({
|
|
702
|
-
listId:
|
|
725
|
+
listId: z5.string().uuid(),
|
|
703
726
|
// The ID of the strip to display
|
|
704
|
-
maxStories:
|
|
727
|
+
maxStories: z5.number().int().min(1).max(20)
|
|
705
728
|
// Maximum number of stories to display in the strip
|
|
706
729
|
})
|
|
707
730
|
});
|
|
@@ -709,25 +732,25 @@ var TopperSlice = defineSliceSchema({
|
|
|
709
732
|
typeName: "Topper",
|
|
710
733
|
propsShape: BasePageItemProps.extend({
|
|
711
734
|
description: ProseMirrorDocSchema,
|
|
712
|
-
strapline:
|
|
735
|
+
strapline: z5.string().optional()
|
|
713
736
|
})
|
|
714
737
|
});
|
|
715
738
|
var HeroSlice = defineSliceSchema({
|
|
716
739
|
typeName: "Hero",
|
|
717
740
|
propsShape: BasePageItemProps.extend({
|
|
718
|
-
listId:
|
|
741
|
+
listId: z5.string().uuid(),
|
|
719
742
|
// The ID of the spark list to display
|
|
720
|
-
maxStories:
|
|
743
|
+
maxStories: z5.number().int().min(1).max(20)
|
|
721
744
|
// Maximum number of stories to display in the hero
|
|
722
745
|
})
|
|
723
746
|
});
|
|
724
747
|
var StoryGroupSlice = defineSliceSchema({
|
|
725
748
|
typeName: "StoryGroup",
|
|
726
749
|
propsShape: BasePageItemProps.extend({
|
|
727
|
-
storySlots:
|
|
750
|
+
storySlots: z5.array(z5.string().uuid()).nonempty()
|
|
728
751
|
})
|
|
729
752
|
});
|
|
730
|
-
var SliceApiInputSchema =
|
|
753
|
+
var SliceApiInputSchema = z5.discriminatedUnion("type", [
|
|
731
754
|
InteractiveSlice.InputSchema,
|
|
732
755
|
ExperimentSlice.InputSchema,
|
|
733
756
|
StripSlice.InputSchema,
|
|
@@ -735,7 +758,7 @@ var SliceApiInputSchema = z4.discriminatedUnion("type", [
|
|
|
735
758
|
HeroSlice.InputSchema,
|
|
736
759
|
StoryGroupSlice.InputSchema
|
|
737
760
|
]);
|
|
738
|
-
var SliceApiOutputSchema =
|
|
761
|
+
var SliceApiOutputSchema = z5.discriminatedUnion("type", [
|
|
739
762
|
InteractiveSlice.OutputSchema,
|
|
740
763
|
ExperimentSlice.OutputSchema,
|
|
741
764
|
StripSlice.OutputSchema,
|
|
@@ -743,56 +766,56 @@ var SliceApiOutputSchema = z4.discriminatedUnion("type", [
|
|
|
743
766
|
HeroSlice.OutputSchema,
|
|
744
767
|
StoryGroupSlice.OutputSchema
|
|
745
768
|
]);
|
|
746
|
-
var BasePagePropertiesSchema =
|
|
747
|
-
title:
|
|
748
|
-
pageId:
|
|
749
|
-
publicationId:
|
|
750
|
-
conceptId:
|
|
751
|
-
metaDescription:
|
|
752
|
-
pageTheme:
|
|
753
|
-
sponsorText:
|
|
754
|
-
sponsorImage:
|
|
755
|
-
pageCategory:
|
|
769
|
+
var BasePagePropertiesSchema = z5.object({
|
|
770
|
+
title: z5.string(),
|
|
771
|
+
pageId: z5.string().uuid(),
|
|
772
|
+
publicationId: z5.string(),
|
|
773
|
+
conceptId: z5.string().uuid().optional(),
|
|
774
|
+
metaDescription: z5.string().optional(),
|
|
775
|
+
pageTheme: z5.string().optional(),
|
|
776
|
+
sponsorText: z5.string().optional(),
|
|
777
|
+
sponsorImage: z5.string().url().optional(),
|
|
778
|
+
pageCategory: z5.string().optional()
|
|
756
779
|
});
|
|
757
780
|
var PageStructureOutputPropertiesSchema = BasePagePropertiesSchema.extend({
|
|
758
|
-
lastPublishedDate:
|
|
781
|
+
lastPublishedDate: z5.string().datetime().optional()
|
|
759
782
|
});
|
|
760
|
-
var PageStructureInputSchema =
|
|
783
|
+
var PageStructureInputSchema = z5.object({
|
|
761
784
|
properties: BasePagePropertiesSchema,
|
|
762
|
-
children:
|
|
785
|
+
children: z5.array(SliceApiInputSchema)
|
|
763
786
|
});
|
|
764
|
-
var PageStructureOutputSchema =
|
|
765
|
-
type:
|
|
766
|
-
schemaVersion:
|
|
787
|
+
var PageStructureOutputSchema = z5.object({
|
|
788
|
+
type: z5.literal("Page"),
|
|
789
|
+
schemaVersion: z5.number(),
|
|
767
790
|
properties: PageStructureOutputPropertiesSchema,
|
|
768
|
-
children:
|
|
791
|
+
children: z5.array(SliceApiOutputSchema)
|
|
769
792
|
});
|
|
770
|
-
var ListPagesOutputSchema =
|
|
793
|
+
var ListPagesOutputSchema = z5.array(PageStructureOutputSchema);
|
|
771
794
|
|
|
772
795
|
// src/schemas/ftpink/draft/index.ts
|
|
773
|
-
import { z as
|
|
774
|
-
var DraftContributorInputSchema =
|
|
775
|
-
userId:
|
|
776
|
-
displayName:
|
|
777
|
-
email:
|
|
796
|
+
import { z as z6 } from "zod/v4";
|
|
797
|
+
var DraftContributorInputSchema = z6.object({
|
|
798
|
+
userId: z6.string().min(1),
|
|
799
|
+
displayName: z6.string().min(1),
|
|
800
|
+
email: z6.string().email().optional()
|
|
778
801
|
});
|
|
779
802
|
var DraftContributorSchema = DraftContributorInputSchema.extend({
|
|
780
|
-
userId:
|
|
781
|
-
displayName:
|
|
782
|
-
firstTouchedAt:
|
|
783
|
-
lastTouchedAt:
|
|
803
|
+
userId: z6.string().min(1),
|
|
804
|
+
displayName: z6.string().min(1),
|
|
805
|
+
firstTouchedAt: z6.string().datetime(),
|
|
806
|
+
lastTouchedAt: z6.string().datetime()
|
|
784
807
|
});
|
|
785
|
-
var DraftMetadataSchema =
|
|
786
|
-
draftId:
|
|
787
|
-
createdAt:
|
|
788
|
-
updatedAt:
|
|
789
|
-
contributors:
|
|
808
|
+
var DraftMetadataSchema = z6.object({
|
|
809
|
+
draftId: z6.string().uuid(),
|
|
810
|
+
createdAt: z6.string().datetime(),
|
|
811
|
+
updatedAt: z6.string().datetime(),
|
|
812
|
+
contributors: z6.array(DraftContributorSchema)
|
|
790
813
|
});
|
|
791
814
|
var PageDraftSchema = DraftMetadataSchema.extend({
|
|
792
815
|
structure: PageStructureOutputSchema
|
|
793
816
|
});
|
|
794
817
|
var DraftSchema = PageDraftSchema;
|
|
795
|
-
var PersistPageDraftInputSchema =
|
|
818
|
+
var PersistPageDraftInputSchema = z6.object({
|
|
796
819
|
structure: PageStructureInputSchema,
|
|
797
820
|
contributor: DraftContributorInputSchema
|
|
798
821
|
});
|