Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Document

import type { Document } from "https://googleapis.deno.dev/v1/docs:v1.ts";

A Google Docs document.

interface Document {
body?: Body;
documentId?: string;
documentStyle?: DocumentStyle;
footers?: {
[key: string]: Footer;
}
;
footnotes?: {
[key: string]: Footnote;
}
;
headers?: {
[key: string]: Header;
}
;
inlineObjects?: {
[key: string]: InlineObject;
}
;
lists?: {
[key: string]: List;
}
;
namedRanges?: {
[key: string]: NamedRanges;
}
;
namedStyles?: NamedStyles;
positionedObjects?: {
[key: string]: PositionedObject;
}
;
revisionId?: string;
suggestedDocumentStyleChanges?: {
[key: string]: SuggestedDocumentStyle;
}
;
suggestedNamedStylesChanges?: {
[key: string]: SuggestedNamedStyles;
}
;
suggestionsViewMode?:
| "DEFAULT_FOR_CURRENT_ACCESS"
| "SUGGESTIONS_INLINE"
| "PREVIEW_SUGGESTIONS_ACCEPTED"
| "PREVIEW_WITHOUT_SUGGESTIONS";
title?: string;
}

§Properties

§
body?: Body
[src]

Output only. The main body of the document.

§
documentId?: string
[src]

Output only. The ID of the document.

§
documentStyle?: DocumentStyle
[src]

Output only. The style of the document.

§
footers?: {
[key: string]: Footer;
}
[src]

Output only. The footers in the document, keyed by footer ID.

§
footnotes?: {
[key: string]: Footnote;
}
[src]

Output only. The footnotes in the document, keyed by footnote ID.

§
headers?: {
[key: string]: Header;
}
[src]

Output only. The headers in the document, keyed by header ID.

§
inlineObjects?: {
[key: string]: InlineObject;
}
[src]

Output only. The inline objects in the document, keyed by object ID.

§
lists?: {
[key: string]: List;
}
[src]

Output only. The lists in the document, keyed by list ID.

§
namedRanges?: {
[key: string]: NamedRanges;
}
[src]

Output only. The named ranges in the document, keyed by name.

§
namedStyles?: NamedStyles
[src]

Output only. The named styles of the document.

§
positionedObjects?: {
[key: string]: PositionedObject;
}
[src]

Output only. The positioned objects in the document, keyed by object ID.

§
revisionId?: string
[src]

Output only. The revision ID of the document. Can be used in update requests to specify which revision of a document to apply updates to and how the request should behave if the document has been edited since that revision. Only populated if the user has edit access to the document. The revision ID is not a sequential number but an opaque string. The format of the revision ID might change over time. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the document has not changed. Conversely, a changed ID (for the same document and user) usually means the document has been updated. However, a changed ID can also be due to internal factors such as ID format changes.

§
suggestedDocumentStyleChanges?: {
[key: string]: SuggestedDocumentStyle;
}
[src]

Output only. The suggested changes to the style of the document, keyed by suggestion ID.

§
suggestedNamedStylesChanges?: {
[key: string]: SuggestedNamedStyles;
}
[src]

Output only. The suggested changes to the named styles of the document, keyed by suggestion ID.

§
suggestionsViewMode?: "DEFAULT_FOR_CURRENT_ACCESS" | "SUGGESTIONS_INLINE" | "PREVIEW_SUGGESTIONS_ACCEPTED" | "PREVIEW_WITHOUT_SUGGESTIONS"
[src]

Output only. The suggestions view mode applied to the document. Note: When editing a document, changes must be based on a document with SUGGESTIONS_INLINE.

§
title?: string
[src]

The title of the document.