Update updateProcess definition

This commit is contained in:
Sosthene 2025-08-27 17:56:34 +02:00
parent a110c2896d
commit 760ba21175

View File

@ -270,12 +270,13 @@ export class SDKSignerClient {
/** /**
* Update a process * Update a process
*/ */
async updateProcess(processId: string, stateId: string, data: any): Promise<ServerResponse> { async updateProcess(processId: string, newData: { [label: string]: any }, privateFields: string[], roles: any | null): Promise<ServerResponse> {
const message: ClientMessage = { const message: ClientMessage = {
type: MessageType.UPDATE_PROCESS, type: MessageType.UPDATE_PROCESS,
processId, processId,
stateId, newData,
...data, privateFields,
roles,
messageId: this.generateMessageId() messageId: this.generateMessageId()
}; };