Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Accessors

id

  • get id(): number

isActive

  • get isActive(): boolean

licensedUntil

  • get licensedUntil(): Date

onModelChangeEvent

Methods

applyLicense

createFacilityEmployeeUser

  • createFacilityEmployeeUser(params: { birthday?: Date; email: string; employeeRole: string; gender?: Gender; language?: string; member?: boolean; memberIdentifier?: string; memberSecret?: string; name: string; units?: Units }): Promise<FacilityUserEmployeeRelationship>
  • Parameters

    • params: { birthday?: Date; email: string; employeeRole: string; gender?: Gender; language?: string; member?: boolean; memberIdentifier?: string; memberSecret?: string; name: string; units?: Units }
      • Optional birthday?: Date
      • email: string
      • employeeRole: string
      • Optional gender?: Gender
      • Optional language?: string
      • Optional member?: boolean
      • Optional memberIdentifier?: string
      • Optional memberSecret?: string
      • name: string
      • Optional units?: Units

    Returns Promise<FacilityUserEmployeeRelationship>

createFacilityInitiatedRelationshipRequest

createFacilityMemberUser

  • createFacilityMemberUser(params: { birthday?: Date; email: string; employeeRole?: null | string; gender?: Gender; language?: string; memberIdentifier?: string; memberSecret?: string; name: string; units?: Units }): Promise<FacilityUserMemberRelationship>
  • Parameters

    • params: { birthday?: Date; email: string; employeeRole?: null | string; gender?: Gender; language?: string; memberIdentifier?: string; memberSecret?: string; name: string; units?: Units }
      • Optional birthday?: Date
      • email: string
      • Optional employeeRole?: null | string
      • Optional gender?: Gender
      • Optional language?: string
      • Optional memberIdentifier?: string
      • Optional memberSecret?: string
      • name: string
      • Optional units?: Units

    Returns Promise<FacilityUserMemberRelationship>

createFacilityStrengthMachine

  • createFacilityStrengthMachine(params: { location?: string; model: string; serial: string; strengthMachineId: number; version: string }): Promise<FacilityStrengthMachine>
  • Parameters

    • params: { location?: string; model: string; serial: string; strengthMachineId: number; version: string }
      • Optional location?: string
      • model: string
      • serial: string
      • strengthMachineId: number
      • version: string

    Returns Promise<FacilityStrengthMachine>

createFacilityStrengthMachinesFromEChip

createKioskSession

createUserInitiatedRelationshipRequest

eagerFacilityProfile

ejectData

getAccessControl

getConfiguration

getEmployeeRelationship

getEmployeeRelationships

getExportCsv

  • getExportCsv(params: { from: Date; to: Date }): string

getFacilityReportCheckIn

  • getFacilityReportCheckIn(params: { from: Date; group: ReportGrouping; to: Date }): string

getFacilityStrengthMachine

getFacilityStrengthMachineConfiguration

getFacilityStrengthMachineInitializerJWTToken

getFacilityStrengthMachineInitializerOTPToken

getFacilityStrengthMachines

getMemberRelationship

getMemberRelationships

getRelationship

getRelationshipRequest

getRelationshipRequests

getRelationships

  • Parameters

    • options: { ascending?: boolean; employee?: boolean; includeSession?: boolean; limit?: number; member?: boolean; memberIdentifier?: string; name?: string; offset?: number; sort?: FacilityUserRelationshipSorting } = {}
      • Optional ascending?: boolean
      • Optional employee?: boolean
      • Optional includeSession?: boolean
      • Optional limit?: number
      • Optional member?: boolean
      • Optional memberIdentifier?: string
      • Optional name?: string
      • Optional offset?: number
      • Optional sort?: FacilityUserRelationshipSorting

    Returns Promise<FacilityUserRelationships>

getSession

  • getSession(params: (Without<{ id: number }, { echipId: string }> & { echipId: string }) | (Without<{ echipId: string }, { id: number }> & { id: number })): Promise<FacilitySession>

getSessions

  • getSessions(options?: { ascending?: boolean; from?: Date; limit?: number; name?: string; offset?: number; open?: boolean; sort?: SessionSorting; to?: Date }): Promise<FacilitySessions>
  • Parameters

    • options: { ascending?: boolean; from?: Date; limit?: number; name?: string; offset?: number; open?: boolean; sort?: SessionSorting; to?: Date } = {}
      • Optional ascending?: boolean
      • Optional from?: Date
      • Optional limit?: number
      • Optional name?: string
      • Optional offset?: number
      • Optional open?: boolean
      • Optional sort?: SessionSorting
      • Optional to?: Date

    Returns Promise<FacilitySessions>

reload

setActive

  • setActive(): Promise<void>