Index

src/main.ts

bootstrap
bootstrap()

Bootstrap function to initialize the NestJS application.

src/utils/config-printer/helpers.ts

extractConditionsFromKeyDesc
extractConditionsFromKeyDesc(keyDesc: any)

Extracts the conditions from a given key description.

Parameters :
Name Type Optional Description
keyDesc any No

The key description object to extract conditions from.

Returns : string[]

An array of strings representing the extracted conditions.

flattenMetas
flattenMetas(desc: any)

Flattens the meta information from a given description object.

Parameters :
Name Type Optional Description
desc any No

The description object to extract meta information from.

Returns : Record<string, any>

A record containing the flattened meta information.

isEffectivelyRequired
isEffectivelyRequired(key: string, rawEnv: Record)

Tests if a config key is effectively required in the current environment.

Parameters :
Name Type Optional Description
key string No

The config key to test.

rawEnv Record No

The raw environment variables.

Returns : boolean

True if the key is effectively required, false otherwise.

summarizeFlags
summarizeFlags(flags?: any)

Summarizes the flags for a given configuration key.

Parameters :
Name Type Optional Description
flags any Yes

The flags object to summarize.

Returns : string

A string representation of the flags.

summarizeSchemaShape
summarizeSchemaShape(s?: any)

Summarizes the shape of a given schema.

Parameters :
Name Type Optional Description
s any Yes

The schema object to summarize.

Returns : string

A string representation of the schema shape.

summarizeWhenEntry
summarizeWhenEntry(w: any)

Summarizes the conditions for a given "when" entry.

Parameters :
Name Type Optional Description
w any No

The "when" entry object to summarize.

Returns : string

A string representation of the "when" entry.

src/issuer/oid4vci/util.ts

getHeadersFromRequest
getHeadersFromRequest(req: Request)

Utility function to extract headers from an Express request

Parameters :
Name Type Optional
req Request No
Returns : globalThis.Headers

src/auth/roles/role.enum.ts

getRoles
getRoles(type)
Parameters :
Name Optional
type No

src/auth/secure.decorator.ts

Secured
Secured(roles)
Parameters :
Name Optional
roles No

src/session/session.decorator.ts

SessionEntity
SessionEntity()
Returns : ParameterDecorator

results matching ""

    No results matching ""