import type { WebComponentAttributeDoc } from "../MobilityMap/MobilityMapAttributes";
const geopsApiLink = `geOps API key`;
const geopsMocoApiLink = `geOps MOCO API`;
export type MobilityNotificationAttributeName =
| "apikey"
| "lang"
| "notificationid"
| "notificationlang"
| "notificationtenant"
| "notificationurl";
export type MobilityNotificationAttributes = Record<
MobilityNotificationAttributeName,
WebComponentAttributeDoc
>;
const attrs: MobilityNotificationAttributes = {
apikey: {
description: `Your ${geopsApiLink}`,
public: false,
},
lang: {
defaultValue: "de",
description: "The language to use for the notifications.",
public: true,
},
notificationid: {
description:
"An ISO date string used to display active notification at this date in the notification layer. If not defined the current date will be used.
Ex: 2025-08-01T00:00:00Z .",
public: false,
},
notificationlang: {
defaultValue: "en,de,fr",
description:
"A comma separated list of languages supported by the notification, if a textual content is not available in the current lang it will try to display the content in one of these languages. Order is important.
Supported languages are: en,de,fr,it",
public: true,
},
notificationtenant: {
defaultValue: "rvf",
description: `The ${geopsMocoApiLink} tenant to get the notification from.`,
public: false,
},
notificationurl: {
defaultValue: "https://moco.geops.io/api/v2/",
description: `The ${geopsMocoApiLink} url to use.`,
public: false,
},
};
export default attrs;