RePort function that handles the reporting logic based on the provided parameters.

This method checks the current state of the recording process and updates the screen states accordingly. It also compares active names and screen states based on the provided parameters.

The options for the rePort function.

Flag indicating whether to restart the process.

The parameters object containing various states and functions.

Function to get updated parameters.

The current level of the process.

The person on the main screen.

Flag indicating if admin is on the main screen.

Flag indicating if the main screen is filled.

Flag indicating if recording has started.

Flag indicating if recording has stopped.

Flag indicating if recording is paused.

Flag indicating if recording has resumed.

Array of current screen states.

Function to update the current screen states.

Function to update the previous screen states.

Function to compare active names.

Function to compare screen states.

A promise that resolves when the reporting process is complete.

Throws an error if there is an issue during the reporting process.

const options = {
restart: false,
parameters: {
islevel: '1',
mainScreenPerson: 'John Doe',
adminOnMainScreen: false,
mainScreenFilled: true,
recordStarted: true,
screenStates: [],
updateScreenStates: (states) => { console.log(updated) },
compareActiveNames: async (opts) => { },
compareScreenStates: async (opts) => { },
},
};

await rePort(options);

Constructors

Methods

Constructors

Methods

  • RePort function that handles the reporting logic based on the provided parameters.

    Parameters

    Returns Promise<void>

    A promise that resolves when the reporting process is complete.

    Throws an error if there is an issue during the reporting process.