feat: improve monorepo dev experience

This commit is contained in:
2023-10-27 22:45:44 +02:00
parent f618725598
commit c6ab4ae48b
124 changed files with 2647 additions and 2857 deletions

View File

@@ -13,7 +13,6 @@
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {SCMetaTranslations, SCTranslations} from '../general/i18n.js';
import {SCMap} from '../general/map.js';
import {SCPlace, SCPlaceWithoutReferences, SCPlaceWithoutReferencesMeta} from './abstract/place.js';
import {SCThingMeta, SCThingType} from './abstract/thing.js';
@@ -58,15 +57,14 @@ export interface SCRoomWithoutReferences
SCThingWithCategoriesWithoutReferences<SCRoomCategories, SCRoomSpecificValues> {
/**
* The name of the floor in which the room is in.
* @filterable
* @text
* @elasticsearch text filterable
*/
floorName?: string;
/**
* The inventory of the place/room as a list of items and their quantity.
*/
inventory?: SCMap<number>;
inventory?: Record<string, number>;
/**
* Translations of specific values of the object
@@ -76,7 +74,8 @@ export interface SCRoomWithoutReferences
translations?: SCTranslations<SCThingWithCategoriesTranslatableProperties>;
/**
* Type of the room
* Type discriminator
* @elasticsearch type
*/
type: SCThingType.Room;
}
@@ -84,7 +83,7 @@ export interface SCRoomWithoutReferences
/**
* A room
* @validatable
* @indexable
* @elasticsearch indexable
*/
export interface SCRoom
extends SCRoomWithoutReferences,
@@ -100,7 +99,8 @@ export interface SCRoom
translations?: SCTranslations<SCThingWithCategoriesTranslatableProperties>;
/**
* Type of the room
* Type discriminator
* @elasticsearch type
*/
type: SCThingType.Room;
}
@@ -111,14 +111,12 @@ export interface SCRoom
export interface SCRoomSpecificValues extends SCThingWithCategoriesSpecificValues {
/**
* Category specific opening hours of the room
* @keyword
*/
openingHours?: string;
/**
* Category specific service hours of the room (e.g. cooked food serving hours)
* @see http://wiki.openstreetmap.org/wiki/Key:opening_hours/specification
* @keyword
*/
serviceHours?: string;
}