Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
})
.filter((hashId) => hashId !== undefined),
}),
+ ...(responsesStatus === ResponseStatus.FAILURE && {
+ responsesFailed: this.responses
+ .get(uuid)
+ ?.responses.map((response) => {
+ if (response.status === ResponseStatus.FAILURE) {
+ return response;
+ }
+ })
+ .filter((response) => response !== undefined),
+ }),
};
}
import type { JsonObject } from './JsonType';
+import type { BroadcastChannelResponsePayload } from './WorkerBroadcastChannel';
export enum Protocol {
UI = 'ui',
status: ResponseStatus;
hashIdsSucceeded?: string[];
hashIdsFailed?: string[];
+ responsesFailed?: BroadcastChannelResponsePayload[];
}