Skip to main content

Class: NextDrupalHealthCheck

Hierarchy

  • DrupalHealthCheck

    NextDrupalHealthCheck

Constructors

constructor

new NextDrupalHealthCheck(env)

Resolves .env file if it exists and check for required environment variables, and sets the endpoint

Parameters

NameTypeDescription
envObjectprocess.env
env.envProcessEnv-

Overrides

DrupalHealthCheck.constructor

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:26

Properties

#access_token

Private #access_token: undefined | string = undefined

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:20


#clientSecret

Private #clientSecret: undefined | string

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:16


#previewSecret

Private #previewSecret: undefined | string

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:17


clientID

clientID: undefined | string

Overrides

DrupalHealthCheck.clientID

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:15


endpoint

endpoint: string

Overrides

DrupalHealthCheck.endpoint

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:13


envVar

envVar: string

Overrides

DrupalHealthCheck.envVar

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:14


hasUmami

hasUmami: boolean = false

Overrides

DrupalHealthCheck.hasUmami

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:19


log

log: Object = logger

Type declaration

NameType
success(message: string) => void
suggest(message: string) => void
warn(message: string) => void

Overrides

DrupalHealthCheck.log

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:18

Methods

checkFor200

checkFor200(url): Promise<boolean>

Parameters

NameType
urlURL

Returns

Promise<boolean>

Overrides

DrupalHealthCheck.checkFor200

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:87


checkForUmami

checkForUmami(): Promise<void>

Returns

Promise<void>

Overrides

DrupalHealthCheck.checkForUmami

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:99


getURL

getURL(): URL

Returns

URL

Overrides

DrupalHealthCheck.getURL

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:84


validateAuth

validateAuth(): Promise<NextDrupalHealthCheck>

Returns

Promise<NextDrupalHealthCheck>

Overrides

DrupalHealthCheck.validateAuth

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:158


validateEndpoint

validateEndpoint(): Promise<NextDrupalHealthCheck>

Returns

Promise<NextDrupalHealthCheck>

Overrides

DrupalHealthCheck.validateEndpoint

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:105


validateMenu

validateMenu(): Promise<NextDrupalHealthCheck>

Returns

Promise<NextDrupalHealthCheck>

Overrides

DrupalHealthCheck.validateMenu

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:119


validatePreview

validatePreview(): Promise<NextDrupalHealthCheck>

Returns

Promise<NextDrupalHealthCheck>

Overrides

DrupalHealthCheck.validatePreview

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:207


validateRouter

validateRouter(): Promise<NextDrupalHealthCheck>

Returns

Promise<NextDrupalHealthCheck>

Overrides

DrupalHealthCheck.validateRouter

Defined in

packages/decoupled-kit-health-check/src/classes/NextDrupalHealthCheck.ts:133