File

src/configuration/entities/metadata/application-metadata.entity.intf.ts

Description

Metadata that describes the current application build. An implementation should be instantiated and be available under the name defined in the constants.

Index

Properties

Properties

buildTimestamp
buildTimestamp: string
Type : string

Timestamp when the current build was generated

deploymentTimestamp
deploymentTimestamp: string
Type : string

Timestamp when the current build was deployed

description
description: string
Type : string

Description

environment
environment: string
Type : string

Target environment of the current build: Production, Development, ...

name
name: string
Type : string

Application name

supportedLanguages
supportedLanguages: StarkLanguage[]
Type : StarkLanguage[]

Array of StarkLanguage objects to be supported in the application

version
version: string
Type : string

Application version

import { StarkLanguage } from "../language";
import { InjectionToken } from "@angular/core";

/**
 * {@link https://v12.angular.io/api/core/InjectionToken|InjectionToken} used to provide the {@link StarkApplicationMetadata}
 */
export const STARK_APP_METADATA: InjectionToken<StarkApplicationMetadata> = new InjectionToken<StarkApplicationMetadata>(
	"STARK_APP_METADATA"
);

/**
 * Metadata that describes the current application build.
 * An implementation should be instantiated and be available under the name defined in the constants.
 */
export interface StarkApplicationMetadata {
	/**
	 * Application name
	 */
	name: string;

	/**
	 * Description
	 */
	description: string;

	/**
	 * Application version
	 */
	version: string;

	/**
	 * Target environment of the current build: Production, Development, ...
	 */
	environment: string;

	/**
	 * Timestamp when the current build was generated
	 */
	buildTimestamp: string;

	/**
	 * Timestamp when the current build was deployed
	 */
	deploymentTimestamp: string;

	/**
	 * Array of {@link StarkLanguage} objects to be supported in the application
	 */
	supportedLanguages: StarkLanguage[];
}

results matching ""

    No results matching ""