diff --git a/src/client.ts b/src/client.ts index 68323ae..5e81957 100644 --- a/src/client.ts +++ b/src/client.ts @@ -270,12 +270,13 @@ export class SDKSignerClient { /** * Update a process */ - async updateProcess(processId: string, stateId: string, data: any): Promise { + async updateProcess(processId: string, newData: { [label: string]: any }, privateFields: string[], roles: any | null): Promise { const message: ClientMessage = { type: MessageType.UPDATE_PROCESS, processId, - stateId, - ...data, + newData, + privateFields, + roles, messageId: this.generateMessageId() };