Interface IEmployeeService

Represents a service for managing employees.

Template

The type of employee object.

Hierarchy

Implemented by

Properties

db: Dexie
moduleName: string

Methods

  • Changes the password of the user with the given user UID.

    Parameters

    • userUid: string

      The UID of the user whose password should be changed.

    • oldPassword: string

      The user's current password.

    • newPassword: string

      The new password to set for the user.

    Returns Promise<boolean>

    A promise that resolves to true if the password was changed successfully, or false otherwise.

  • Retrieves multiple entities with optional pagination and filtering.

    Parameters

    • params: any

      [UNUSED PARAMETER, KEPT FOR POSSIBLE FUTURE USE] Filtering parameters.

    • options: {
          page?: number;
          pageSize?: number;
      }

      Query options including pagination.

      • Optional page?: number
      • Optional pageSize?: number

    Returns Promise<{
        count: number;
        list: IEmployeeEntity[];
        page: number;
        pageSize: number;
    }>

    An object containing the retrieved entities and total count.

  • Logs in a user with the given user uid and password.

    Parameters

    • userUid: string

      The uid of the user to log in.

    • password: string

      The password of the user to log in.

    Returns Promise<boolean>

    A promise that resolves to true if the login was successful, or false otherwise.

Generated using TypeDoc