@vcp-dev/contracts 0.4.9 → 0.6.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/index.d.ts +39 -32
- package/dist/index.js +1 -1
- package/dist/site-edit-class-name-source.d.ts +3 -98
- package/dist/site-edit-event.d.ts +20 -2
- package/dist/site-edit-history-status.d.ts +120 -0
- package/dist/site-edit-materialization.d.ts +49 -0
- package/dist/site-edit-mutation-context.d.ts +24 -0
- package/dist/site-edit-operation.d.ts +465 -52
- package/dist/site-edit-page-composition.d.ts +971 -0
- package/dist/site-edit-render-document.d.ts +73 -138
- package/dist/site-edit-render-page-composition.d.ts +84 -0
- package/dist/site-edit-session.d.ts +15 -0
- package/dist/site-edit-version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8,38 +8,65 @@ export declare const SiteEditOperationSummarySchema: z.ZodObject<{
|
|
|
8
8
|
export type SiteEditOperationSummary = z.infer<typeof SiteEditOperationSummarySchema>;
|
|
9
9
|
export declare const SiteEditRenderEntrySchema: z.ZodObject<{
|
|
10
10
|
key: z.ZodString;
|
|
11
|
-
|
|
12
|
-
label: z.ZodString;
|
|
13
|
-
parentKey: z.ZodNullable<z.ZodString>;
|
|
14
|
-
childKeys: z.ZodArray<z.ZodString>;
|
|
11
|
+
pageCompositionUnitKey: z.ZodOptional<z.ZodString>;
|
|
15
12
|
operationSummary: z.ZodObject<{
|
|
16
13
|
canUpdateText: z.ZodBoolean;
|
|
17
14
|
canInsertChild: z.ZodBoolean;
|
|
18
15
|
canMove: z.ZodBoolean;
|
|
19
16
|
canRemove: z.ZodBoolean;
|
|
20
17
|
}, z.core.$strip>;
|
|
21
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$strict>;
|
|
22
19
|
export type SiteEditRenderEntry = z.infer<typeof SiteEditRenderEntrySchema>;
|
|
23
20
|
export declare const SiteEditRenderDocumentSchema: z.ZodObject<{
|
|
24
21
|
siteId: z.ZodString;
|
|
25
22
|
snapshotId: z.ZodString;
|
|
26
23
|
routeId: z.ZodString;
|
|
27
24
|
version: z.ZodNumber;
|
|
28
|
-
rootKeys: z.ZodArray<z.ZodString>;
|
|
29
25
|
entries: z.ZodArray<z.ZodObject<{
|
|
30
26
|
key: z.ZodString;
|
|
31
|
-
|
|
32
|
-
label: z.ZodString;
|
|
33
|
-
parentKey: z.ZodNullable<z.ZodString>;
|
|
34
|
-
childKeys: z.ZodArray<z.ZodString>;
|
|
27
|
+
pageCompositionUnitKey: z.ZodOptional<z.ZodString>;
|
|
35
28
|
operationSummary: z.ZodObject<{
|
|
36
29
|
canUpdateText: z.ZodBoolean;
|
|
37
30
|
canInsertChild: z.ZodBoolean;
|
|
38
31
|
canMove: z.ZodBoolean;
|
|
39
32
|
canRemove: z.ZodBoolean;
|
|
40
33
|
}, z.core.$strip>;
|
|
41
|
-
}, z.core.$
|
|
42
|
-
|
|
34
|
+
}, z.core.$strict>>;
|
|
35
|
+
pageComposition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
+
status: z.ZodLiteral<"supported">;
|
|
37
|
+
containerKey: z.ZodString;
|
|
38
|
+
hasBusinessMembers: z.ZodBoolean;
|
|
39
|
+
placementUnitKeys: z.ZodArray<z.ZodString>;
|
|
40
|
+
placements: z.ZodArray<z.ZodObject<{
|
|
41
|
+
placementKey: z.ZodString;
|
|
42
|
+
placementUnitKey: z.ZodString;
|
|
43
|
+
relation: z.ZodEnum<{
|
|
44
|
+
before: "before";
|
|
45
|
+
after: "after";
|
|
46
|
+
prepend: "prepend";
|
|
47
|
+
append: "append";
|
|
48
|
+
}>;
|
|
49
|
+
}, z.core.$strict>>;
|
|
50
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
|
+
status: z.ZodLiteral<"unsupported">;
|
|
52
|
+
reason: z.ZodEnum<{
|
|
53
|
+
VERSION_STALE: "VERSION_STALE";
|
|
54
|
+
RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
|
|
55
|
+
MULTIPLE_PAGE_RETURNS: "MULTIPLE_PAGE_RETURNS";
|
|
56
|
+
INDIRECT_RETURN_ONLY: "INDIRECT_RETURN_ONLY";
|
|
57
|
+
PAGE_CONTAINER_AMBIGUOUS: "PAGE_CONTAINER_AMBIGUOUS";
|
|
58
|
+
NO_SAFE_PAGE_PLACEMENT: "NO_SAFE_PAGE_PLACEMENT";
|
|
59
|
+
MEMBER_NOT_INDEPENDENT: "MEMBER_NOT_INDEPENDENT";
|
|
60
|
+
UNSUPPORTED_ROUTE_STRUCTURE: "UNSUPPORTED_ROUTE_STRUCTURE";
|
|
61
|
+
RUNTIME_ANCHOR_UNRESOLVED: "RUNTIME_ANCHOR_UNRESOLVED";
|
|
62
|
+
ROUTE_RETURN_NOT_FOUND: "ROUTE_RETURN_NOT_FOUND";
|
|
63
|
+
}>;
|
|
64
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
65
|
+
code: z.ZodString;
|
|
66
|
+
message: z.ZodString;
|
|
67
|
+
}, z.core.$strict>>;
|
|
68
|
+
}, z.core.$strict>], "status">;
|
|
69
|
+
}, z.core.$strict>;
|
|
43
70
|
export type SiteEditRenderDocument = z.infer<typeof SiteEditRenderDocumentSchema>;
|
|
44
71
|
export declare const SiteEditExternalSourceKindSchema: z.ZodEnum<{
|
|
45
72
|
"api-field": "api-field";
|
|
@@ -260,6 +287,7 @@ export declare const SiteEditStyleModelSchema: z.ZodUnion<readonly [z.ZodRecord<
|
|
|
260
287
|
transform: "transform";
|
|
261
288
|
width: "width";
|
|
262
289
|
height: "height";
|
|
290
|
+
order: "order";
|
|
263
291
|
display: "display";
|
|
264
292
|
position: "position";
|
|
265
293
|
top: "top";
|
|
@@ -272,7 +300,6 @@ export declare const SiteEditStyleModelSchema: z.ZodUnion<readonly [z.ZodRecord<
|
|
|
272
300
|
flexGrow: "flexGrow";
|
|
273
301
|
flexShrink: "flexShrink";
|
|
274
302
|
flexBasis: "flexBasis";
|
|
275
|
-
order: "order";
|
|
276
303
|
gridTemplateColumns: "gridTemplateColumns";
|
|
277
304
|
gridTemplateRows: "gridTemplateRows";
|
|
278
305
|
columns: "columns";
|
|
@@ -376,10 +403,10 @@ export declare const SiteEditStyleModelSchema: z.ZodUnion<readonly [z.ZodRecord<
|
|
|
376
403
|
message: z.ZodString;
|
|
377
404
|
}, z.core.$strip>>>;
|
|
378
405
|
operationBoundary: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
406
|
+
"insert-child": "insert-child";
|
|
379
407
|
"update-text": "update-text";
|
|
380
408
|
"update-array-item": "update-array-item";
|
|
381
409
|
"remove-node": "remove-node";
|
|
382
|
-
"insert-child": "insert-child";
|
|
383
410
|
"move-node": "move-node";
|
|
384
411
|
"set-class-name-source": "set-class-name-source";
|
|
385
412
|
"set-props": "set-props";
|
|
@@ -394,16 +421,16 @@ export declare const SiteEditStyleSourceSchema: z.ZodObject<{
|
|
|
394
421
|
className: z.ZodString;
|
|
395
422
|
sourceKind: z.ZodEnum<{
|
|
396
423
|
missing: "missing";
|
|
424
|
+
"dynamic-expression": "dynamic-expression";
|
|
397
425
|
"static-attribute": "static-attribute";
|
|
398
426
|
"static-expression": "static-expression";
|
|
399
|
-
"dynamic-expression": "dynamic-expression";
|
|
400
427
|
}>;
|
|
401
428
|
editable: z.ZodBoolean;
|
|
402
429
|
operationBoundary: z.ZodArray<z.ZodEnum<{
|
|
430
|
+
"insert-child": "insert-child";
|
|
403
431
|
"update-text": "update-text";
|
|
404
432
|
"update-array-item": "update-array-item";
|
|
405
433
|
"remove-node": "remove-node";
|
|
406
|
-
"insert-child": "insert-child";
|
|
407
434
|
"move-node": "move-node";
|
|
408
435
|
"set-class-name-source": "set-class-name-source";
|
|
409
436
|
"set-props": "set-props";
|
|
@@ -626,16 +653,16 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
626
653
|
className: z.ZodString;
|
|
627
654
|
sourceKind: z.ZodEnum<{
|
|
628
655
|
missing: "missing";
|
|
656
|
+
"dynamic-expression": "dynamic-expression";
|
|
629
657
|
"static-attribute": "static-attribute";
|
|
630
658
|
"static-expression": "static-expression";
|
|
631
|
-
"dynamic-expression": "dynamic-expression";
|
|
632
659
|
}>;
|
|
633
660
|
editable: z.ZodBoolean;
|
|
634
661
|
operationBoundary: z.ZodArray<z.ZodEnum<{
|
|
662
|
+
"insert-child": "insert-child";
|
|
635
663
|
"update-text": "update-text";
|
|
636
664
|
"update-array-item": "update-array-item";
|
|
637
665
|
"remove-node": "remove-node";
|
|
638
|
-
"insert-child": "insert-child";
|
|
639
666
|
"move-node": "move-node";
|
|
640
667
|
"set-class-name-source": "set-class-name-source";
|
|
641
668
|
"set-props": "set-props";
|
|
@@ -749,6 +776,26 @@ export declare const SiteEditObjectSummarySchema: z.ZodObject<{
|
|
|
749
776
|
export type SiteEditObjectSummary = z.infer<typeof SiteEditObjectSummarySchema>;
|
|
750
777
|
export declare const SiteEditObjectEditContextSchema: z.ZodObject<{
|
|
751
778
|
key: z.ZodString;
|
|
779
|
+
tag: z.ZodString;
|
|
780
|
+
label: z.ZodString;
|
|
781
|
+
sourceLocator: z.ZodOptional<z.ZodObject<{
|
|
782
|
+
sourceFile: z.ZodString;
|
|
783
|
+
componentName: z.ZodString;
|
|
784
|
+
openingElementRange: z.ZodObject<{
|
|
785
|
+
startLine: z.ZodNumber;
|
|
786
|
+
startColumn: z.ZodNumber;
|
|
787
|
+
endLine: z.ZodNumber;
|
|
788
|
+
endColumn: z.ZodNumber;
|
|
789
|
+
}, z.core.$strip>;
|
|
790
|
+
structuralPath: z.ZodString;
|
|
791
|
+
textPreview: z.ZodOptional<z.ZodString>;
|
|
792
|
+
}, z.core.$strip>>;
|
|
793
|
+
isOpaque: z.ZodBoolean;
|
|
794
|
+
ancestors: z.ZodArray<z.ZodObject<{
|
|
795
|
+
key: z.ZodString;
|
|
796
|
+
label: z.ZodString;
|
|
797
|
+
tag: z.ZodString;
|
|
798
|
+
}, z.core.$strip>>;
|
|
752
799
|
componentName: z.ZodString;
|
|
753
800
|
sourceFile: z.ZodString;
|
|
754
801
|
capabilities: z.ZodObject<{
|
|
@@ -813,91 +860,7 @@ export declare const SiteEditObjectEditContextSchema: z.ZodObject<{
|
|
|
813
860
|
message: z.ZodString;
|
|
814
861
|
}, z.core.$strip>>;
|
|
815
862
|
}, z.core.$strip>;
|
|
816
|
-
writeTarget: z.ZodObject<{
|
|
817
|
-
kind: z.ZodEnum<{
|
|
818
|
-
"jsx-node": "jsx-node";
|
|
819
|
-
"component-proxy": "component-proxy";
|
|
820
|
-
"value-binding": "value-binding";
|
|
821
|
-
"route-export": "route-export";
|
|
822
|
-
}>;
|
|
823
|
-
file: z.ZodString;
|
|
824
|
-
componentName: z.ZodString;
|
|
825
|
-
isProxy: z.ZodBoolean;
|
|
826
|
-
}, z.core.$strip>;
|
|
827
|
-
effectiveWriteTarget: z.ZodOptional<z.ZodObject<{
|
|
828
|
-
kind: z.ZodEnum<{
|
|
829
|
-
"jsx-node": "jsx-node";
|
|
830
|
-
"route-export": "route-export";
|
|
831
|
-
"value-path": "value-path";
|
|
832
|
-
"external-entry": "external-entry";
|
|
833
|
-
}>;
|
|
834
|
-
file: z.ZodOptional<z.ZodString>;
|
|
835
|
-
isProxy: z.ZodBoolean;
|
|
836
|
-
displayPath: z.ZodOptional<z.ZodString>;
|
|
837
|
-
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
838
|
-
"api-field": "api-field";
|
|
839
|
-
"cms-field": "cms-field";
|
|
840
|
-
"i18n-message": "i18n-message";
|
|
841
|
-
"config-entry": "config-entry";
|
|
842
|
-
}>>;
|
|
843
|
-
sourceId: z.ZodOptional<z.ZodString>;
|
|
844
|
-
}, z.core.$strip>>;
|
|
845
863
|
provenanceChain: z.ZodOptional<z.ZodObject<{
|
|
846
|
-
finalSource: z.ZodNullable<z.ZodObject<{
|
|
847
|
-
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
848
|
-
binding: "binding";
|
|
849
|
-
"imported-binding": "imported-binding";
|
|
850
|
-
"repeat-template": "repeat-template";
|
|
851
|
-
"jsx-literal": "jsx-literal";
|
|
852
|
-
"component-prop": "component-prop";
|
|
853
|
-
"object-field": "object-field";
|
|
854
|
-
"array-item": "array-item";
|
|
855
|
-
"conditional-branch": "conditional-branch";
|
|
856
|
-
}>, z.ZodEnum<{
|
|
857
|
-
"api-field": "api-field";
|
|
858
|
-
"cms-field": "cms-field";
|
|
859
|
-
"i18n-message": "i18n-message";
|
|
860
|
-
"config-entry": "config-entry";
|
|
861
|
-
}>]>;
|
|
862
|
-
file: z.ZodString;
|
|
863
|
-
displayPath: z.ZodString;
|
|
864
|
-
externalSource: z.ZodOptional<z.ZodObject<{
|
|
865
|
-
sourceType: z.ZodEnum<{
|
|
866
|
-
"api-field": "api-field";
|
|
867
|
-
"cms-field": "cms-field";
|
|
868
|
-
"i18n-message": "i18n-message";
|
|
869
|
-
"config-entry": "config-entry";
|
|
870
|
-
}>;
|
|
871
|
-
sourceId: z.ZodString;
|
|
872
|
-
adapterId: z.ZodOptional<z.ZodString>;
|
|
873
|
-
}, z.core.$strip>>;
|
|
874
|
-
}, z.core.$strip>>;
|
|
875
|
-
chain: z.ZodArray<z.ZodObject<{
|
|
876
|
-
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
877
|
-
binding: "binding";
|
|
878
|
-
"imported-binding": "imported-binding";
|
|
879
|
-
"repeat-template": "repeat-template";
|
|
880
|
-
"jsx-literal": "jsx-literal";
|
|
881
|
-
"component-prop": "component-prop";
|
|
882
|
-
"object-field": "object-field";
|
|
883
|
-
"array-item": "array-item";
|
|
884
|
-
"conditional-branch": "conditional-branch";
|
|
885
|
-
}>, z.ZodEnum<{
|
|
886
|
-
"api-field": "api-field";
|
|
887
|
-
"cms-field": "cms-field";
|
|
888
|
-
"i18n-message": "i18n-message";
|
|
889
|
-
"config-entry": "config-entry";
|
|
890
|
-
}>]>;
|
|
891
|
-
file: z.ZodString;
|
|
892
|
-
displayName: z.ZodString;
|
|
893
|
-
canEditHere: z.ZodBoolean;
|
|
894
|
-
}, z.core.$strip>>;
|
|
895
|
-
confidence: z.ZodEnum<{
|
|
896
|
-
unknown: "unknown";
|
|
897
|
-
exact: "exact";
|
|
898
|
-
"safe-derived": "safe-derived";
|
|
899
|
-
partial: "partial";
|
|
900
|
-
}>;
|
|
901
864
|
editMode: z.ZodEnum<{
|
|
902
865
|
readonly: "readonly";
|
|
903
866
|
direct: "direct";
|
|
@@ -910,23 +873,15 @@ export declare const SiteEditObjectEditContextSchema: z.ZodObject<{
|
|
|
910
873
|
message: z.ZodString;
|
|
911
874
|
}, z.core.$strip>>;
|
|
912
875
|
}, z.core.$strip>>;
|
|
913
|
-
componentSemantic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
914
876
|
textSegments: z.ZodArray<z.ZodObject<{
|
|
915
877
|
index: z.ZodNumber;
|
|
916
|
-
value: z.ZodString;
|
|
917
878
|
editable: z.ZodBoolean;
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
}>;
|
|
925
|
-
file: z.ZodString;
|
|
926
|
-
expression: z.ZodString;
|
|
927
|
-
bindingName: z.ZodOptional<z.ZodString>;
|
|
928
|
-
path: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
929
|
-
}, z.core.$strip>>;
|
|
879
|
+
sourceKind: z.ZodNullable<z.ZodEnum<{
|
|
880
|
+
literal: "literal";
|
|
881
|
+
binding: "binding";
|
|
882
|
+
"imported-binding": "imported-binding";
|
|
883
|
+
"repeat-template": "repeat-template";
|
|
884
|
+
}>>;
|
|
930
885
|
}, z.core.$strip>>;
|
|
931
886
|
boundaryKind: z.ZodNullable<z.ZodEnum<{
|
|
932
887
|
"component-boundary": "component-boundary";
|
|
@@ -935,16 +890,6 @@ export declare const SiteEditObjectEditContextSchema: z.ZodObject<{
|
|
|
935
890
|
"fragment-region": "fragment-region";
|
|
936
891
|
"opaque-region": "opaque-region";
|
|
937
892
|
}>>;
|
|
938
|
-
children: z.ZodArray<z.ZodObject<{
|
|
939
|
-
key: z.ZodString;
|
|
940
|
-
label: z.ZodString;
|
|
941
|
-
tag: z.ZodString;
|
|
942
|
-
}, z.core.$strip>>;
|
|
943
|
-
siblings: z.ZodArray<z.ZodObject<{
|
|
944
|
-
key: z.ZodString;
|
|
945
|
-
label: z.ZodString;
|
|
946
|
-
tag: z.ZodString;
|
|
947
|
-
}, z.core.$strip>>;
|
|
948
893
|
}, z.core.$strip>;
|
|
949
894
|
export type SiteEditObjectEditContext = z.infer<typeof SiteEditObjectEditContextSchema>;
|
|
950
895
|
export declare const SiteEditObjectStyleDetailSchema: z.ZodObject<{
|
|
@@ -955,16 +900,16 @@ export declare const SiteEditObjectStyleDetailSchema: z.ZodObject<{
|
|
|
955
900
|
className: z.ZodString;
|
|
956
901
|
sourceKind: z.ZodEnum<{
|
|
957
902
|
missing: "missing";
|
|
903
|
+
"dynamic-expression": "dynamic-expression";
|
|
958
904
|
"static-attribute": "static-attribute";
|
|
959
905
|
"static-expression": "static-expression";
|
|
960
|
-
"dynamic-expression": "dynamic-expression";
|
|
961
906
|
}>;
|
|
962
907
|
editable: z.ZodBoolean;
|
|
963
908
|
operationBoundary: z.ZodArray<z.ZodEnum<{
|
|
909
|
+
"insert-child": "insert-child";
|
|
964
910
|
"update-text": "update-text";
|
|
965
911
|
"update-array-item": "update-array-item";
|
|
966
912
|
"remove-node": "remove-node";
|
|
967
|
-
"insert-child": "insert-child";
|
|
968
913
|
"move-node": "move-node";
|
|
969
914
|
"set-class-name-source": "set-class-name-source";
|
|
970
915
|
"set-props": "set-props";
|
|
@@ -983,13 +928,3 @@ export declare const SiteEditObjectStyleDetailSchema: z.ZodObject<{
|
|
|
983
928
|
}, z.core.$strip>>;
|
|
984
929
|
}, z.core.$strip>;
|
|
985
930
|
export type SiteEditObjectStyleDetail = z.infer<typeof SiteEditObjectStyleDetailSchema>;
|
|
986
|
-
export declare const SiteEditObjectContentDetailSchema: z.ZodObject<{
|
|
987
|
-
key: z.ZodString;
|
|
988
|
-
contentModel: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
989
|
-
}, z.core.$strip>;
|
|
990
|
-
export type SiteEditObjectContentDetail = z.infer<typeof SiteEditObjectContentDetailSchema>;
|
|
991
|
-
export declare const SiteEditObjectMediaDetailSchema: z.ZodObject<{
|
|
992
|
-
key: z.ZodString;
|
|
993
|
-
mediaModel: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
994
|
-
}, z.core.$strip>;
|
|
995
|
-
export type SiteEditObjectMediaDetail = z.infer<typeof SiteEditObjectMediaDetailSchema>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SiteEditRenderPagePlacementSchema: z.ZodObject<{
|
|
3
|
+
placementKey: z.ZodString;
|
|
4
|
+
placementUnitKey: z.ZodString;
|
|
5
|
+
relation: z.ZodEnum<{
|
|
6
|
+
before: "before";
|
|
7
|
+
after: "after";
|
|
8
|
+
prepend: "prepend";
|
|
9
|
+
append: "append";
|
|
10
|
+
}>;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
export type SiteEditRenderPagePlacement = z.infer<typeof SiteEditRenderPagePlacementSchema>;
|
|
13
|
+
export declare const SiteEditRenderPageCompositionSupportedSchema: z.ZodObject<{
|
|
14
|
+
status: z.ZodLiteral<"supported">;
|
|
15
|
+
containerKey: z.ZodString;
|
|
16
|
+
hasBusinessMembers: z.ZodBoolean;
|
|
17
|
+
placementUnitKeys: z.ZodArray<z.ZodString>;
|
|
18
|
+
placements: z.ZodArray<z.ZodObject<{
|
|
19
|
+
placementKey: z.ZodString;
|
|
20
|
+
placementUnitKey: z.ZodString;
|
|
21
|
+
relation: z.ZodEnum<{
|
|
22
|
+
before: "before";
|
|
23
|
+
after: "after";
|
|
24
|
+
prepend: "prepend";
|
|
25
|
+
append: "append";
|
|
26
|
+
}>;
|
|
27
|
+
}, z.core.$strict>>;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
export type SiteEditRenderPageCompositionSupported = z.infer<typeof SiteEditRenderPageCompositionSupportedSchema>;
|
|
30
|
+
export declare const SiteEditRenderPageCompositionUnsupportedSchema: z.ZodObject<{
|
|
31
|
+
status: z.ZodLiteral<"unsupported">;
|
|
32
|
+
reason: z.ZodEnum<{
|
|
33
|
+
VERSION_STALE: "VERSION_STALE";
|
|
34
|
+
RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
|
|
35
|
+
MULTIPLE_PAGE_RETURNS: "MULTIPLE_PAGE_RETURNS";
|
|
36
|
+
INDIRECT_RETURN_ONLY: "INDIRECT_RETURN_ONLY";
|
|
37
|
+
PAGE_CONTAINER_AMBIGUOUS: "PAGE_CONTAINER_AMBIGUOUS";
|
|
38
|
+
NO_SAFE_PAGE_PLACEMENT: "NO_SAFE_PAGE_PLACEMENT";
|
|
39
|
+
MEMBER_NOT_INDEPENDENT: "MEMBER_NOT_INDEPENDENT";
|
|
40
|
+
UNSUPPORTED_ROUTE_STRUCTURE: "UNSUPPORTED_ROUTE_STRUCTURE";
|
|
41
|
+
RUNTIME_ANCHOR_UNRESOLVED: "RUNTIME_ANCHOR_UNRESOLVED";
|
|
42
|
+
ROUTE_RETURN_NOT_FOUND: "ROUTE_RETURN_NOT_FOUND";
|
|
43
|
+
}>;
|
|
44
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
45
|
+
code: z.ZodString;
|
|
46
|
+
message: z.ZodString;
|
|
47
|
+
}, z.core.$strict>>;
|
|
48
|
+
}, z.core.$strict>;
|
|
49
|
+
export type SiteEditRenderPageCompositionUnsupported = z.infer<typeof SiteEditRenderPageCompositionUnsupportedSchema>;
|
|
50
|
+
export declare const SiteEditRenderPageCompositionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51
|
+
status: z.ZodLiteral<"supported">;
|
|
52
|
+
containerKey: z.ZodString;
|
|
53
|
+
hasBusinessMembers: z.ZodBoolean;
|
|
54
|
+
placementUnitKeys: z.ZodArray<z.ZodString>;
|
|
55
|
+
placements: z.ZodArray<z.ZodObject<{
|
|
56
|
+
placementKey: z.ZodString;
|
|
57
|
+
placementUnitKey: z.ZodString;
|
|
58
|
+
relation: z.ZodEnum<{
|
|
59
|
+
before: "before";
|
|
60
|
+
after: "after";
|
|
61
|
+
prepend: "prepend";
|
|
62
|
+
append: "append";
|
|
63
|
+
}>;
|
|
64
|
+
}, z.core.$strict>>;
|
|
65
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
66
|
+
status: z.ZodLiteral<"unsupported">;
|
|
67
|
+
reason: z.ZodEnum<{
|
|
68
|
+
VERSION_STALE: "VERSION_STALE";
|
|
69
|
+
RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
|
|
70
|
+
MULTIPLE_PAGE_RETURNS: "MULTIPLE_PAGE_RETURNS";
|
|
71
|
+
INDIRECT_RETURN_ONLY: "INDIRECT_RETURN_ONLY";
|
|
72
|
+
PAGE_CONTAINER_AMBIGUOUS: "PAGE_CONTAINER_AMBIGUOUS";
|
|
73
|
+
NO_SAFE_PAGE_PLACEMENT: "NO_SAFE_PAGE_PLACEMENT";
|
|
74
|
+
MEMBER_NOT_INDEPENDENT: "MEMBER_NOT_INDEPENDENT";
|
|
75
|
+
UNSUPPORTED_ROUTE_STRUCTURE: "UNSUPPORTED_ROUTE_STRUCTURE";
|
|
76
|
+
RUNTIME_ANCHOR_UNRESOLVED: "RUNTIME_ANCHOR_UNRESOLVED";
|
|
77
|
+
ROUTE_RETURN_NOT_FOUND: "ROUTE_RETURN_NOT_FOUND";
|
|
78
|
+
}>;
|
|
79
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
80
|
+
code: z.ZodString;
|
|
81
|
+
message: z.ZodString;
|
|
82
|
+
}, z.core.$strict>>;
|
|
83
|
+
}, z.core.$strict>], "status">;
|
|
84
|
+
export type SiteEditRenderPageComposition = z.infer<typeof SiteEditRenderPageCompositionSchema>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Activates one route before returning its first coherent document/history
|
|
4
|
+
* view. mutationContext is accepted only for compatibility and ignored.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SiteEditInitializeSessionInputSchema: z.ZodObject<{
|
|
7
|
+
routeId: z.ZodString;
|
|
8
|
+
mutationContext: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
editingSessionId: z.ZodString;
|
|
10
|
+
lockId: z.ZodString;
|
|
11
|
+
ownerId: z.ZodString;
|
|
12
|
+
leaseAssertion: z.ZodString;
|
|
13
|
+
}, z.core.$strict>>;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
export type SiteEditInitializeSessionInput = z.infer<typeof SiteEditInitializeSessionInputSchema>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* 由 release-edit-engine-packages.ts 在 bump 版本时自动更新。
|
|
7
7
|
*/
|
|
8
|
-
export declare const CURRENT_EDIT_ENGINE_VERSION = "0.
|
|
8
|
+
export declare const CURRENT_EDIT_ENGINE_VERSION = "0.6.1";
|
|
9
9
|
export declare const EDIT_ENGINE_VERSION_HEADER = "x-vcp-edit-engine-version";
|
|
10
10
|
export declare const EDIT_ENGINE_VERSION_SOURCE_HEADER = "x-vcp-edit-engine-version-source";
|
|
11
11
|
export type EditEngineVersionSource = "explicit" | "fallback_current" | "system_current";
|