Socket
Book a DemoInstallSign in
Socket

@mappedin/mvf-cms

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mappedin/mvf-cms

The CMS Extension adds a number of properties to the MVF, all under the base `cms` property This extra data is only available to certain CMS clients, and should not be used directly without discussing the implications with your Mappedin representative.

latest
Source
npmnpm
Version
3.0.0-beta.10
Version published
Maintainers
0
Created
Source

MVF CMS Extension

The CMS Extension adds a number of properties to the MVF, all under the base cms property This extra data is only available to certain CMS clients, and should not be used directly without discussing the implications with your Mappedin representative.

In particular, everything in this extension is OPTIONAL, because much of it will eventually be promoted to better, more standard MVF extensions, and deprecated out of this one. Others are only for use by the SDK.

If there is a piece of information available in the CMS Extension and another extension, USE THE OTHER EXTENSION.

Common Sub-Schemas

Most likely, if the CMS Extension is used, it will be for one of the following sub-schemas:

  • EnterpriseLocations
  • EnterpriseLocationInstance
  • EnterpriseVenue
  • EnterpriseLayers

Enterprise Venue

An Enterprise Venue adds extra enterprise data to the Enterprise Venue the MVF describes. The slug is the unique identifier for the venue.

type cms: {
	venue: {
		id: EnterpriseVenueId,
		slug: string,
		defaultLanguage: Language,
		languages: Language[],
		countrycode: string,
		logo: string,
		mappedinWebUrl: string,
		topLocations: EnterpriseLocationId[],
		operationHours: OpeningHoursSpecification[],
		coverImage: string,
	},
	& WithDetails(['name']),
	& WithExtra,
}

Enterprise Categories

Enterprise Categories add extra data to an existing LocationCategory.

They MUST link to a LocationCategory by categoryId, they do not replace them.

type cms: {
	categories: {
		id: EnterpriseCategoryId,
		categoryId: LocationCategoryId,
		color: string,
		sortOrder: number,
		iconFromDefaultList: string,
		picture: string,
	}[],
};

Enterprise Locations

Enterprise Locations add extra enterprise data to an existing Location. They MUST link to a Location by locationId, they do not replace them.

type cms: {
	locations: {
		id: EnterpriseLocationId,
		locationId: LocationId,
		type: string,
		sortOrder: number,
		tags: string[],
		picture: string,
		states: {
			start: string,
			end: string,
			type: LocationStateType,
		}[],
		siblingGroups: {
			label: string,
			siblings: LocationId[], // Note this links to the LocationId, not the EnterpriseLocationId.
		}[],
		gallery: { caption: string, image: string, embeddedUrl: string }[],
		showFloatingLabelWhenImagePresent: boolean,
		amenity: string,
		showLogo: boolean,
	}[],
};

Enterprise Layers

Enterprise Layers describe the logical/stlyistic "layer" that a geometry is on. It is a simple per floor mapping of GeometryId to layer name.

Typically, all geometries on the same layer will have the same overall visual style, though individual properties like altitude can be different.

The layer name can also be used to identify groups of geometries that are related in some way, for example to hide all geometries on the "Pillars" layer. There may or may not be a standard layer convention for a given venue or organization, but it is set and implemented by person making the map and not enforced by the system.

Enterprise Layers are similar in concept to "layers" in image editing software, except there is no visual order or hierarchy. Ie: The "Room" layer is neither above nor below the "Wall" layer. What will be visible is determined by the altitude and heights of the styles applied to the individual geometries.

type cms: {
	layers: {
		f_1: {
			g_1: 'Floor',
			g_2: 'Floor',
			g_3: 'Wall
		}
	}
};

FAQs

Package last updated on 26 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts