Skip to content

Commit

Permalink
Add Accessibility#rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
opyh committed Aug 15, 2023
1 parent 32e97c9 commit aaa071a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Accessibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { getPersonalProfileSchemaDefinition, PersonalProfile } from './PersonalP
import { getPrefixedQuantitySchemaDefinition, Volume, VolumeSchema } from './Quantity.js';
import { getQueueSystemSchemaDefinition, QueueSystem } from './QueueSystem.js';
import { getRestroomSchemaDefinition, Restroom } from './Restroom.js';
import { getRoomSchemaDefinition, Room } from './Room.js';
import { getSignageSchemaDefinition, Signage } from './Signage.js';
import { smokingPolicies, SmokingPolicy } from './SmokingPolicy.js';
import { getStaffSchemaDefinition, Staff } from './Staff.js';
Expand Down Expand Up @@ -238,10 +239,15 @@ export interface Accessibility extends Interactable<GenericInteraction> {
desks?: Desk[] | null;

/**
* Describes the accessibility of restrooms in the place.
* Describes the accessibility of restrooms that belong to the place.
*/
restrooms?: Restroom[] | null;

/**
* Describes the accessibility of rooms that belong to the place.
*/
rooms?: Room[] | null;

/**
* Information about payment at the place.
* `null` indicates there is no payment possible/required,
Expand Down Expand Up @@ -326,6 +332,7 @@ export const getAccessibilitySchemaDefinition: () => SchemaDefinition = () => ({
...getPrefixedArraySchemaDefinition('signageSystems', getSignageSchemaDefinition()),
...getPrefixedArraySchemaDefinition('entrances', getEntranceSchemaDefinition()),
...getPrefixedArraySchemaDefinition('restrooms', getRestroomSchemaDefinition()),
...getPrefixedArraySchemaDefinition('rooms', getRoomSchemaDefinition()),
...getPrefixedQuantitySchemaDefinition('ambientNoiseLevel', VolumeSchema),
...getLocalizedStringSchemaDefinition('serviceContact'),
...getInteractableSchemaDefinition(GenericInteractionsSet),
Expand Down
2 changes: 2 additions & 0 deletions src/accessibilityFixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import paymentFixture from './paymentFixture.js';
import personalProfileFixture from './personalProfileFixture.js';
import queueSystemFixture from './queueSystemFixture.js';
import restroomFixture from './restroomFixture.js';
import roomFixture from './roomFixture.js';
import signageFixture from './signageFixture.js';
import staffFixture from './staffFixture.js';
import surfaceFixture from './surfaceFixture.js';
Expand Down Expand Up @@ -45,6 +46,7 @@ const accessibilityFixture: Complete<Accessibility> = {
payment: paymentFixture,
entrances: [entranceFixture, entranceFixture],
restrooms: [restroomFixture, restroomFixture],
rooms: [roomFixture],
signageSystems: [signageFixture],
pathways: pathwaysFixture,
pathwaysInside: pathwaysFixture,
Expand Down

0 comments on commit aaa071a

Please sign in to comment.