Skip to content
@archipel/platform-core Auto-generated

@breadstone/archipel-platform-core

Namespaces

NamespaceDescription
ISseEventDataRepresents the data of a Server-Sent Event.

Classes

ClassDescription
AppHealthIndicatorHealth indicator for the application.
BooleanUtilsBoolean Utility Class. This class provides static methods to parse and format boolean values.
CasingInterceptorGlobal NestJS interceptor that normalizes property casing across the HTTP boundary.
CatchUtils-
ContentTemplateEngineThe ContentTemplateEngine class.
CUIDGeneratorCUID Generator class
DateTimeUtilsTimeSpan Utility Class. Provides methods to parse and format time span values.
DeviceParserServiceThe DeviceParserService class.
ErrorTemplateServiceService for rendering error page templates.
EventHubProvides a strongly typed event hub that can publish and subscribe to events.
EventModuleModule that provides event hub services.
GlobalExceptionFilterA global exception filter that handles all uncaught exceptions in the application. Returns HTML error pages for browser requests and JSON for API requests.
GUIDGeneratorGUID Generator class
HostModuleThe HostModule provides host-related services globally.
HostServiceThe HostService class.
HttpLoggerMiddleware-
IdentifierModule-
IdGeneratorBaseAbstract base class for ID Generators
LimitRequestSizeMiddleware-
LocalizedTextRequestRequest DTO for a single localized text entry.
LocalizedTextResponseBase class for localized text responses.
NormalizedUtilsUtility functions for normalizing data.
PageableRequestBase class describing pagination query parameters shared across endpoints.
PageableResponseBase class describing pagination metadata returned alongside list payloads.
ProblemDetailExceptionA NestJS HttpException that represents a Problem Detail as per RFC 7807.
ProblemDetailExceptionFilterA NestJS exception filter that transforms exceptions into Problem Details compliant responses as per RFC 7807.
ProblemDetailResponseOpenAPI schema class representing a Problem Detail response as per RFC 9457.
QuantityResponseBase class for quantity responses.
ResponseReturn-
SseHubRepresents a server-sent event service.
SseModuleRepresents the SseModule class.
TimeStampResponseThe base class for all time stamp responses.
UserAvatarGeneratorServiceService for generating GitHub-style identicon avatars.
UserNameGeneratorServiceRandom user name generator class
UUIDGeneratorUUID Generator class

Interfaces

InterfaceDescription
IDeviceInfoInterface for parsed device information
IErrorPageParamsParameters for generating error page content.
IEventKeyRepresents a strongly typed event key that encodes the payload type.
IEventMapRepresents the shape of the event map used by the EventHub.
IHostContentParamsParameters for generating host content.
IIdGeneratorInterface for ID generators
ISseEventDataRepresents the data of a Server-Sent Event.
ISseHubRepresents a server-sent event service.

Type Aliases

Type AliasDescription
CamelCase-
ProblemDetailA Problem Detail object as per RFC 7807.
ProblemDetailTypeUrlResolverA function that resolves a type URL for a given HTTP status code and title.
SetOptionalSets the specified keys of T as optional.
StringValue-

Variables

VariableDescription
APP_NAMEHuman-readable name of the application.
APP_PORTHTTP port the application listens on.
APP_URLBase URL the application is served from (e.g. https://example.com).
APP_VERSIONSemantic version of the running application (e.g. 1.2.3).
GIT_COMMITGit commit SHA of the current build.
ID_GENERATOR_TOKENInterface for ID generators
IpAddressExtracts the client IP address from the current HTTP request. Handles IPv6 (::1), proxy headers (X-Forwarded-For), and normalizes the output.
IS_PUBLIC_KEY-
LangExtracts the first language token from the Accept-Language header.
NODE_ENVThe current Node.js environment (development, production, etc.).
PLATFORM_CORE_CONFIG_ENTRIESAll configuration entries required by platform-core.
UserAgentExtracts the User-Agent header from the incoming HTTP request.

Functions

FunctionDescription
createEventKeyCreates a branded event key for the EventHub.
envMarker function for environment strings.
getMimeTypeByFileNameOrExtensionGet MIME type by file name or extension.
maskSensitiveSerializes a value to a JSON string with sensitive keys masked.
maskSensitiveFieldsRecursively masks values of sensitive keys in a plain object for safe logging.
PublicThe Public decorator.

Released under the MIT License.