Перейти к содержимому
FastOffice

DTO · api-edit.ts · часть 2

Часть 2 из 6: 55 интерфейсов и 5 псевдонимов типов shell-contract — правка документа: текстовые транзакции, форматирование, таблицы, буфер обмена, история и команды меню.

Источник: apps/fastdoc-shell/src/shell-contract/api-edit.ts.

Каталог разбит на несколько страниц: часть 1 · часть 2 · часть 3 · часть 4 · часть 5 · часть 6.

Типы на этой странице — 60

TypeAliasDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1005

type EditorV0MailMergeCommandAction = "start-mail-merge" | "select-recipients" | "edit-recipient-list" | "filter-recipients" | "insert-merge-field" | "insert-greeting-line" | "insert-rule-if" | "update-labels" | "preview-results" | "first-record" | "previous-record" | "next-record" | "last-record" | "finish-merge";

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1021

interface EditorV0MailMergeCommandRequest {
action: EditorV0MailMergeCommandAction;
recordIndex?: number | null;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

TypeAliasDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1028

type EditorV0FormsFieldsBusinessAction = "insert-form-controls" | "protect-forms" | "fill-form-values" | "attempt-body-edit-while-protected" | "unprotect-forms" | "insert-business-fields" | "update-business-fields" | "insert-merge-placeholders" | "merge-from-data";

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1039

interface EditorV0FormsFieldsBusinessRequest {
action: EditorV0FormsFieldsBusinessAction;
dataSourcePath?: string | null;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

TypeAliasDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1046

type EditorV0AddTextLevel = "none" | "1" | "2" | "3";

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1048

interface EditorV0AddTextRequest {
paragraphIndex: number;
level: EditorV0AddTextLevel;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

TypeAliasDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1055

type OutlineMasterDocumentOperation = "inspect" | "set-level" | "promote" | "demote" | "move-up" | "move-down" | "collapse" | "expand" | "create-subdocument" | "insert-subdocument" | "expand-subdocument" | "collapse-subdocument" | "split-subdocument" | "merge-subdocuments" | "unlink-subdocument" | "update-link";

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1073

interface OutlineMasterDocumentRequest {
operation: OutlineMasterDocumentOperation;
paragraphIndex?: number | null;
level?: number | null;
subdocumentIndex?: number | null;
sourcePath?: string | null;
splitParagraphIndex?: number | null;
searchQuery?: string | null;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1085

interface OutlineMasterDocumentOutlineItem {
paragraph_index: number;
body_child_index: number;
text: string;
style_id: string | null;
level: number | null;
is_body_text: boolean;
has_children: boolean;
collapsed: boolean;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1096

interface OutlineMasterDocumentSubdocument {
subdocument_index: number;
relationship_id: string;
source_path: string;
source_identity: string;
source_status: string;
linked: boolean;
expanded: boolean;
paragraph_start: number;
paragraph_end: number | null;
paragraph_count: number | null;
merge_group: string | null;
editable: boolean;
conflicts: Array<{
kind: string;
identifier: string;
message: string;
}>;
outline_items: OutlineMasterDocumentOutlineItem[];
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1113

interface OutlineMasterDocumentSnapshot {
schema: "fastdoc.outline-master-document.snapshot.v1";
operation_kind: string;
result_kind: string;
outline_items: OutlineMasterDocumentOutlineItem[];
subdocuments: OutlineMasterDocumentSubdocument[];
search_results: Array<{
document_kind: string;
subdocument_index: number | null;
paragraph_index: number;
text: string;
source_identity: string | null;
}>;
heading_levels_supported: number[];
source_documents_unchanged: boolean;
fail_closed: boolean;
styles_preserved: boolean;
numbering_preserved: boolean;
bookmarks_preserved: boolean;
sections_preserved: boolean;
headers_footers_preserved: boolean;
comments_preserved: boolean;
tracked_changes_preserved: boolean;
word_parity_claim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1139

interface OutlineMasterDocumentResult {
schema: "fastdoc.shell.outline-master-document-action.v1";
operationKind: OutlineMasterDocumentOperation;
applied: boolean;
documentPath: string | null;
outputPath: string | null;
documentPathAfterReopen: string | null;
currentDocumentReopened: boolean;
resultKind: string;
writebackResultKind: string | null;
transactionCommitted: boolean;
sourceDocumentsUnchanged: boolean;
snapshot: OutlineMasterDocumentSnapshot;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1154

interface EditorV0UpdateTableRequest {
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1159

interface EditorV0TableOfFiguresRequest {
captionLabel?: string | null;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1165

interface EditorV0InsertEndnoteRequest {
paragraphIndex: number;
offset?: number | null;
noteText?: string | null;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1173

interface EditorV0InsertHyperlinkRequest {
paragraphIndex: number;
offset?: number | null;
deleteCount?: number | null;
hyperlinkUrl: string;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1182

interface EditorV0InsertBookmarkRequest {
paragraphIndex: number;
offset: number;
deleteCount: number;
bookmarkName: string;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1191

interface EditorV0InsertImageObjectResult {
schema: "fastdoc.shell.editor-v0-insert-image-object-action.v1";
operationKind: "insert-image-object";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
imagePath: string | null;
paragraphIndex: number;
mediaPartName: string | null;
relationshipId: string | null;
contentKind: string | null;
sourceUnchanged: boolean | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1213

interface EditorV0InsertEquationObjectResult {
schema: "fastdoc.shell.editor-v0-insert-equation-object-action.v1";
operationKind: "insert-equation-object";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
paragraphIndex: number | null;
equationIndex: number | null;
beforeText: string | null;
afterText: string | null;
sourceUnchanged: boolean | null;
resultKind?: string | null;
authoringOperationKind?: string | null;
changedPartName?: string | null;
canonicalLinearInput?: string | null;
equationInventory?: unknown[];
preservedUnknownSubtreeHashes?: string[];
packageVerifiedAfterReopen?: boolean | null;
historyDepth?: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

TypeAliasDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1242

type EditorV0EquationSymbolAuthoringResult = EditorV0InsertEquationObjectResult;

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1244

interface EditorV0EditEquationObjectResult {
schema: "fastdoc.shell.editor-v0-edit-equation-object-action.v1";
operationKind: "edit-equation-object";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
paragraphIndex: number | null;
equationIndex: number | null;
beforeText: string | null;
afterText: string | null;
sourceUnchanged: boolean | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1265

interface EditorV0InsertDropCapResult {
schema: "fastdoc.shell.editor-v0-insert-drop-cap-action.v1";
operationKind: "set-paragraph-drop-cap";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
paragraphIndex: number;
dropCapKind: EditorV0InsertDropCapKind;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1284

interface EditorV0InsertTextBoxObjectResult {
schema: "fastdoc.shell.editor-v0-insert-textbox-object-action.v1";
operationKind: "insert-textbox-object";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
paragraphIndex: number;
text: string;
displayName: string;
widthEmu: number | null;
heightEmu: number | null;
sourceUnchanged: boolean | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1306

interface EditorV0InsertShapeObjectResult {
schema: "fastdoc.shell.editor-v0-insert-shape-object-action.v1";
operationKind: "insert-shape-object";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
paragraphIndex: number;
shape: string;
displayName: string;
text: string | null;
widthEmu: number | null;
heightEmu: number | null;
sourceUnchanged: boolean | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1329

interface EditorV0EditDrawingObjectTextResult {
schema: "fastdoc.shell.editor-v0-edit-drawing-object-text-action.v1";
operationKind: "edit-drawing-object-text";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
objectLocation: string | null;
sourceLocation: string | null;
textSourcePath: string | null;
textFromFile: boolean;
beforeText: string | null;
afterText: string | null;
objectKind: string | null;
displayName: string | null;
sourceUnchanged: boolean | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1354

interface EditorV0InsertDateFieldResult {
schema: "fastdoc.shell.editor-v0-insert-date-field-action.v1";
operationKind: "insert-date-field";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
paragraphIndex: number;
offset: number;
isoDate: string;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1376

interface EditorV0InsertDateTimeFieldResult {
schema: "fastdoc.shell.editor-v0-insert-date-time-field-action.v1";
operationKind: "insert-date-time-field";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
paragraphIndex: number;
offset: number;
isoDateTime: string;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1398

interface EditorV0UpdateDateFieldResultResult {
schema: "fastdoc.shell.editor-v0-update-date-field-result-action.v1";
operationKind: "update-date-field-result";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
paragraphIndex: number;
fieldKind: EditorV0DateFieldKind;
currentResult: string;
updatedResult: string;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1421

interface EditorV0ResizeDrawingObjectResult {
schema: "fastdoc.shell.editor-v0-resize-drawing-object-action.v1";
operationKind: "resize-drawing-object";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
objectLocation: string | null;
sourceLocation: string | null;
widthEmu: number | null;
heightEmu: number | null;
beforeWpExtentEmu: Record<string, unknown> | null;
beforeShapeExtentEmu: Record<string, unknown> | null;
afterWpExtentEmu: Record<string, unknown> | null;
afterShapeExtentEmu: Record<string, unknown> | null;
sourceUnchanged: boolean | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1446

interface EditorV0InsertFootnoteResult {
schema: "fastdoc.shell.editor-v0-insert-footnote-action.v1";
operationKind: "insert-footnote";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
paragraphIndex: number;
offset: number;
noteText: string;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1466

interface EditorV0ManageNoteResult {
schema: "fastdoc.shell.editor-v0-manage-note-action.v1";
operationKind: "edit-footnote" | "delete-footnote" | "edit-endnote" | "delete-endnote";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
kind: EditorV0ManageNoteKind;
action: EditorV0ManageNoteAction;
noteId: number;
noteText: string | null;
previousText: string;
noteCountBefore: number;
noteCountAfter: number;
referenceCountBefore: number;
referenceCountAfter: number;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1492

interface EditorV0InsertTableCaptionResult {
schema: "fastdoc.shell.editor-v0-insert-table-caption-action.v1";
operationKind: "insert-table-caption";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
bodyBlockIndex: number;
label: string;
captionText: string;
captionPosition: string;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1513

interface EditorV0InsertCrossReferenceResult {
schema: "fastdoc.shell.editor-v0-insert-cross-reference-action.v1";
operationKind: "insert-cross-reference";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
paragraphIndex: number;
fieldKind: EditorV0CrossReferenceFieldKind;
targetBookmark: string;
resultText: string;
targetKind: "bookmark" | "caption";
referenceKind: "stored-result" | "only-label-and-number";
captionLabel: string | null;
captionParagraphIndex: number | null;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1538

interface EditorV0UpdateCrossReferenceFieldResultResult {
schema: "fastdoc.shell.editor-v0-update-cross-reference-field-result-action.v1";
operationKind: "update-cross-reference-field-result";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
paragraphIndex: number;
fieldKind: EditorV0CrossReferenceFieldKind;
targetBookmark: string;
currentResult: string;
updatedResult: string;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1562

interface EditorV0UpdateSequenceFieldResultResult {
schema: "fastdoc.shell.editor-v0-update-sequence-field-result-action.v1";
operationKind: "update-sequence-field-result";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
paragraphIndex: number;
fieldLabel: string;
currentResult: string;
updatedResult: string;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1585

interface EditorV0BibliographyStyleResult {
schema: "fastdoc.shell.editor-v0-bibliography-style-action.v1";
operationKind: "set-bibliography-style";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
selectedStyle: string;
previousStyle: string | null;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1604

interface EditorV0BibliographyCommandResult {
schema: "fastdoc.shell.editor-v0-bibliography-command-action.v1";
operationKind: "bibliography-command";
action: EditorV0BibliographyCommandAction;
applied: boolean;
documentPath: string | null;
outputPath: string | null;
documentPathAfterReopen: string | null;
currentDocumentReopened: boolean;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
sourceCountBefore: number | null;
sourceCountAfter: number | null;
fieldCountBefore: number | null;
fieldCountAfter: number | null;
citationFieldCountBefore: number | null;
citationFieldCountAfter: number | null;
bibliographyFieldCountBefore: number | null;
bibliographyFieldCountAfter: number | null;
insertedCitationTag: string | null;
insertedCitationResultText: string | null;
addedSourceTag: string | null;
insertedBibliographyResultText: string | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1636

interface EditorV0IndexAuthoritiesCommandResult {
schema: "fastdoc.shell.editor-v0-index-authorities-command-action.v1";
operationKind: "index-authorities-command";
action: EditorV0IndexAuthoritiesCommandAction;
applied: boolean;
documentPath: string | null;
outputPath: string | null;
documentPathAfterReopen: string | null;
currentDocumentReopened: boolean;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
fieldCountBefore: number | null;
fieldCountAfter: number | null;
xeFieldCountBefore: number | null;
xeFieldCountAfter: number | null;
indexFieldCountBefore: number | null;
indexFieldCountAfter: number | null;
taFieldCountBefore: number | null;
taFieldCountAfter: number | null;
toaFieldCountBefore: number | null;
toaFieldCountAfter: number | null;
insertedIndexEntryText: string | null;
insertedIndexResultText: string | null;
updatedIndexResultText: string | null;
insertedAuthorityEntryText: string | null;
insertedTableOfAuthoritiesResultText: string | null;
updatedTableOfAuthoritiesResultText: string | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
fullWordFieldEngineClaim: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1673

interface EditorV0MailMergeCommandResult {
schema: "fastdoc.shell.editor-v0-mail-merge-command-action.v1";
operationKind: "mail-merge-command";
action: EditorV0MailMergeCommandAction;
applied: boolean;
documentPath: string | null;
outputPath: string | null;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
fieldCountBefore: number | null;
fieldCountAfter: number | null;
mergeFieldCountBefore: number | null;
mergeFieldCountAfter: number | null;
ifFieldCountBefore: number | null;
ifFieldCountAfter: number | null;
settingsMailMergeBefore: boolean | null;
settingsMailMergeAfter: boolean | null;
recipientCount: number | null;
activeRecordIndexBefore: number | null;
activeRecordIndexAfter: number | null;
activeRecordDisplayText: string | null;
insertedMergeFieldNames: string[];
previewRecordIndex: number | null;
previewResultText: string | null;
finishRecordIndex: number | null;
finishResultText: string | null;
labelsResultText: string | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
externalDataSourceClaim: false;
outlookDeliveryClaim: false;
fullWordMailMergeEngineClaim: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1712

interface EditorV0UpdateTableResult {
schema: "fastdoc.shell.editor-v0-update-table-action.v1";
operationKind: "update-toc";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
documentPathAfterReopen: string | null;
currentDocumentReopened: boolean;
currentResultText: string | null;
updatedResultText: string | null;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1733

interface EditorV0FormsFieldsBusinessResult {
schema: "fastdoc.shell.editor-v0-forms-fields-business-action.v1";
operationKind: "forms-fields-business-command";
action: EditorV0FormsFieldsBusinessAction;
applied: boolean;
documentPath: string | null;
outputPath: string | null;
dataSourcePath: string | null;
documentPathAfterReopen: string | null;
currentDocumentReopened: boolean;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
formTextInputCountAfter: number | null;
formCheckboxCountAfter: number | null;
formDropdownCountAfter: number | null;
formValueCountAfter: number | null;
protectionEditAfter: string | null;
bodyEditBlocked: boolean | null;
unprotectRestoresEditing: boolean | null;
dateFieldCountAfter: number | null;
documentPropertyFieldCountAfter: number | null;
refFieldCountAfter: number | null;
calculatedFieldCountAfter: number | null;
fieldsUpdated: boolean | null;
mergePlaceholderCountAfter: number | null;
mergeRecordCount: number | null;
mergeTemplatePreserved: boolean | null;
mergeOutputDocxTruth: boolean | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
passwordOrEncryptionParityClaim: false;
fullWordFieldEngineClaim: false;
fullWordMailMergeEngineClaim: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1773

interface EditorV0ContentControlsRequest {
request: Record<string, unknown>;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1779

interface EditorV0ContentControlsResult {
schema: "fastdoc.shell.editor-v0-content-controls-action.v1";
operationKind: "content-controls-command";
action: string;
applied: boolean;
documentPath: string | null;
outputPath: string | null;
documentPathAfterReopen: string | null;
currentDocumentReopened: boolean;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
controlCountAfter: number;
boundControlCountAfter: number;
protectionEditAfter: string | null;
controls: Array<Record<string, unknown>>;
snapshot: Record<string, unknown>;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1798

interface EditorV0AddTextResult {
schema: "fastdoc.shell.editor-v0-add-text-action.v1";
operationKind: "set-toc-entry-level";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
paragraphIndex: number;
level: EditorV0AddTextLevel;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1817

interface EditorV0TableOfFiguresResult {
schema: "fastdoc.shell.editor-v0-table-of-figures-action.v1";
operationKind: "insert-table-of-figures";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
documentPathAfterReopen: string | null;
currentDocumentReopened: boolean;
captionLabel: string | null;
captionCount: number | null;
existingTableOfFiguresCount: number | null;
insertedInstructionText: string | null;
insertedResultText: string | null;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1841

interface EditorV0UpdateTableOfFiguresResult {
schema: "fastdoc.shell.editor-v0-update-table-of-figures-action.v1";
operationKind: "update-table-of-figures";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
documentPathAfterReopen: string | null;
currentDocumentReopened: boolean;
captionLabel: string | null;
captionCount: number | null;
existingTableOfFiguresCount: number | null;
currentResultText: string | null;
updatedResultText: string | null;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1865

interface EditorV0InsertTocResult {
schema: "fastdoc.shell.editor-v0-insert-toc-action.v1";
operationKind: "insert-toc";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
documentPathAfterReopen: string | null;
currentDocumentReopened: boolean;
insertedInstructionText: string | null;
insertedResultText: string | null;
tocFieldCountBefore: number | null;
tocFieldCountAfter: number | null;
headingCount: number | null;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1889

interface EditorV0RemoveTocResult {
schema: "fastdoc.shell.editor-v0-remove-toc-action.v1";
operationKind: "remove-toc";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
documentPathAfterReopen: string | null;
currentDocumentReopened: boolean;
removedResultText: string | null;
removedBlockIndex: number | null;
tocFieldCountBefore: number | null;
tocFieldCountAfter: number | null;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1912

interface EditorV0InsertEndnoteResult {
schema: "fastdoc.shell.editor-v0-insert-endnote-action.v1";
operationKind: "insert-endnote";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
paragraphIndex: number;
offset: number;
noteText: string;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1932

interface EditorV0InsertHyperlinkResult {
schema: "fastdoc.shell.editor-v0-insert-hyperlink-action.v1";
operationKind: "auto-create-hyperlink";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
paragraphIndex: number;
offset: number;
deleteCount: number;
hyperlinkUrl: string;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1953

interface EditorV0InsertBookmarkResult {
schema: "fastdoc.shell.editor-v0-insert-bookmark-action.v1";
operationKind: "insert-bookmark";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
paragraphIndex: number;
offset: number;
deleteCount: number;
bookmarkName: string;
resultKind: string | null;
writebackResultKind: string | null;
writebackChangedPartCount: number | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1974

interface D37TableMouseDrawSemanticRequest {
bodyBlockIndex: number;
rowCount: number;
columnCount: number;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:1982

interface D37TableMouseDrawSemanticResult {
schema: "fastdoc.shell.d37-table-mouse-draw-semantic.v1";
operationKind: "create-drawn-simple-table";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
bodyBlockIndex: number;
rowCount: number | null;
columnCount: number | null;
requestedRowCount: number;
requestedColumnCount: number;
tableInputProvenance: string | null;
resultKind: string | null;
writebackResultKind: string | null;
mutatedTableCount: number | null;
snapshot: unknown;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:2000

interface EditorV0MoveDrawingObjectResult {
schema: "fastdoc.shell.editor-v0-move-drawing-object-action.v1";
operationKind: "move-drawing-object";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
objectLocation: string | null;
sourceLocation: string | null;
xOffsetEmu: number | null;
yOffsetEmu: number | null;
xRelativeFrom: string | null;
yRelativeFrom: string | null;
beforePosition: Record<string, unknown> | null;
afterPosition: Record<string, unknown> | null;
compositionApplied?: boolean;
compositionMutations?: string[];
duplicated?: boolean;
targetPart?: string | null;
targetStory?: string | null;
uniqueDrawingIds?: boolean | null;
sourceUnchanged: boolean | null;
snapshot: unknown;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:2026

interface EditorV0DistributeDrawingObjectsResult {
schema: "fastdoc.shell.editor-v0-distribute-drawing-objects-action.v1";
operationKind: "distribute-drawing-objects-horizontal" | "distribute-drawing-objects-vertical";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
axis: "horizontal" | "vertical";
requestedLocations: string[];
resolvedLocations: string[];
objectCount: number | null;
beforePrimaryOffsetsEmu: number[];
afterPrimaryOffsetsEmu: number[];
computedGapEmu: number | null;
sourceUnchanged: boolean | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:2050

interface EditorV0SetDrawingObjectStyleResult {
schema: "fastdoc.shell.editor-v0-set-drawing-object-style-action.v1";
operationKind: "set-drawing-object-style";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
objectLocation: string | null;
sourceLocation: string | null;
fillRgb: string | null;
fillOpacityPercent: number | null;
outlineRgb: string | null;
outlineWidthEmu: number | null;
outlineOpacityPercent: number | null;
textDirection: "horizontal" | "vertical" | "vertical-270" | null;
textAutofit: "none" | "resize-shape" | "shrink-text" | null;
beforeFillRgb: string | null;
beforeFillOpacityPercent: number | null;
beforeOutlineRgb: string | null;
beforeOutlineWidthEmu: number | null;
beforeOutlineOpacityPercent: number | null;
beforeTextDirection: string | null;
beforeTextAutofit: string | null;
afterFillRgb: string | null;
afterFillOpacityPercent: number | null;
afterOutlineRgb: string | null;
afterOutlineWidthEmu: number | null;
afterOutlineOpacityPercent: number | null;
afterTextDirection: string | null;
afterTextAutofit: string | null;
objectKind: string | null;
displayName: string | null;
displayNameBefore: string | null;
displayNameAfter: string | null;
displayNameChanged: boolean | null;
sourceUnchanged: boolean | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:2095

interface EditorV0DeleteDrawingObjectResult {
schema: "fastdoc.shell.editor-v0-delete-drawing-object-action.v1";
operationKind: "delete-drawing-object";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
objectLocation: string | null;
sourceLocation: string | null;
objectKind: string | null;
displayName: string | null;
shapePreset: string | null;
deleted: boolean;
sourceUnchanged: boolean | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:2118

interface EditorV0SetDrawingObjectAnchorLockResult {
schema: "fastdoc.shell.editor-v0-set-drawing-object-anchor-lock-action.v1";
operationKind: "set-drawing-object-anchor-lock";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
objectLocation: string | null;
sourceLocation: string | null;
objectKind: string | null;
displayName: string | null;
shapePreset: string | null;
requestedLocked: boolean;
beforeAnchorPresent: boolean | null;
beforeLocked: string | null;
afterAnchorPresent: boolean | null;
afterLocked: string | null;
anchorLocked: boolean;
sourceUnchanged: boolean | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:2146

interface EditorV0GroupDrawingObjectsResult {
schema: "fastdoc.shell.editor-v0-group-drawing-objects-action.v1";
operationKind: "group-drawing-objects";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
requestedLocations: string[];
resolvedLocations: string[];
groupedObjectCount: number | null;
ungroupedObjectCount: number | null;
sourceUnchanged: boolean | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

InterfaceDeclaration · apps/fastdoc-shell/src/shell-contract/api-edit.ts:2167

interface EditorV0UngroupDrawingObjectResult {
schema: "fastdoc.shell.editor-v0-ungroup-drawing-object-action.v1";
operationKind: "ungroup-drawing-object";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
reopenAfterWrite: boolean;
reopenedDocumentPath: string | null;
objectLocation: string | null;
sourceLocation: string | null;
requestedLocations: string[];
resolvedLocations: string[];
groupedObjectCount: number | null;
ungroupedObjectCount: number | null;
sourceUnchanged: boolean | null;
snapshot: unknown;
popupWarningShown: false;
technicalPanelAdded: false;
wordParityClaim: false;
pixelParityClaim: false;
muscleMemoryParityClaim: false;
}

Ассистент документации

Ответ собран из документации и может быть неточным — сверяйтесь с источниками.