1 import { Commit, type DocumentUpdate } from '../Generated'
2 import type { CommitVersion } from '../Version'
3 import { CreateDocumentUpdateArray } from './CreateDocumentUpdateArray'
5 export function CreateCommit(dto: { updates: DocumentUpdate[]; version: CommitVersion; lockId: string }): Commit {
6 const updatesArray = CreateDocumentUpdateArray({
10 const commit = new Commit({
11 updates: updatesArray,