Skip to content

Commit

Permalink
Add 2 properties to EquipmentProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
opyh committed Jun 27, 2023
1 parent 8873c2e commit 91270d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/EquipmentProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,17 @@ export interface EquipmentProperties extends Interactable<EquipmentInteraction>
*/
hasLandings?: boolean;

/**
* `true` if the equipment's height is adjustable, `false` if not.
*/
hasAdjustableHeight?: boolean;

/**
* `true` if the equipment is fully operatable for/by a person in a wheelchair, `false` if not.
* If you can, please don't use this attribute. Instead, use more specific attributes.
*/
isAccessibleWithWheelchair?: boolean;

/**
* Languages of the equipment’s visible controls and/or voice output.
*/
Expand Down Expand Up @@ -435,6 +446,7 @@ export const getEquipmentPropertiesSchemaDefinition: () => SchemaDefinition = ()
hasQRCode: BooleanField,
isIndoors: BooleanField,
hasLandings: BooleanField,
hasAdjustableHeight: BooleanField,
isAccessibleWithWheelchair: BooleanField,
isSuitableForBicycles: BooleanField,
hasExternalFloorSelection: BooleanField,
Expand Down
4 changes: 3 additions & 1 deletion src/equipmentPropertiesFixture.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { EquipmentProperties } from './EquipmentProperties.js';
import { Complete } from './Complete.js';
import doorFixture from './doorFixture.js';
import { EquipmentProperties } from './EquipmentProperties.js';
import intercomFixture from './intercomFixture.js';
import seatFixture from './seatFixture.js';

Expand All @@ -19,6 +19,8 @@ const equipmentPropertiesFixture: Complete<EquipmentProperties> = {
hasDoorsInBothDirections: true,
hasDoorsAtRightAngles: false,
hasMirror: true,
hasAdjustableHeight: true,
isAccessibleWithWheelchair: true,
hasExternalFloorSelection: true,
isSuitableForBicycles: true,
isIndoors: true,
Expand Down

0 comments on commit 91270d3

Please sign in to comment.