Skip to content

Commit

Permalink
Some properties in the Firestore Document are output only
Browse files Browse the repository at this point in the history
  • Loading branch information
aajanki committed Jan 4, 2025
1 parent 8a12336 commit bf3cef9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/workflowslib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export declare namespace googleapis {
interface Document {
createTime: string
fields: Record<string, Value>
name: string
name?: string
updateTime: string
}
interface DocumentMask {
Expand Down Expand Up @@ -557,7 +557,7 @@ export declare namespace googleapis {
currentDocument?: Precondition
delete?: string
transform?: DocumentTransform
update?: Document
update?: Pick<Document, 'fields' | 'name'>
updateMask?: DocumentMask
updateTransforms?: FieldTransform[]
}
Expand Down Expand Up @@ -626,7 +626,7 @@ export declare namespace googleapis {
export function createDocument(
collectionId: string,
parent: string,
body: Document,
body: Pick<Document, 'fields' | 'name'>,
documentId?: string,
mask?: DocumentMask,
): Document
Expand Down Expand Up @@ -661,7 +661,7 @@ export declare namespace googleapis {
currentDocument: Precondition,
mask: DocumentMask,
updateMask: DocumentMask,
body: Document,
body: Pick<Document, 'fields' | 'name'>,
): Document
export function rollback(
database: string,
Expand Down

0 comments on commit bf3cef9

Please sign in to comment.