src/configuration/entities/metadata/application-metadata.entity.intf.ts
Metadata that describes the current application build. An implementation should be instantiated and be available under the name defined in the constants.
Properties |
| buildTimestamp |
buildTimestamp:
|
Type : string
|
|
Timestamp when the current build was generated |
| deploymentTimestamp |
deploymentTimestamp:
|
Type : string
|
|
Timestamp when the current build was deployed |
| description |
description:
|
Type : string
|
|
Description |
| environment |
environment:
|
Type : string
|
|
Target environment of the current build: Production, Development, ... |
| name |
name:
|
Type : string
|
|
Application name |
| supportedLanguages |
supportedLanguages:
|
Type : StarkLanguage[]
|
|
Array of StarkLanguage objects to be supported in the application |
| version |
version:
|
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[];
}