Skip to main content
References

Dashboard Types

Type Aliases

APIFunction()

type APIFunction = (apiImplementation, tenantId, options, userContext) => Promise<any>;

Defined in: recipe/dashboard/types.ts:68

Parameters

ParameterType
apiImplementationAPIInterface
tenantIdstring
optionsAPIOptions
userContextUserContext

Returns

Promise<any>

APIInterface

type APIInterface = object;

Defined in: recipe/dashboard/types.ts:64

Properties

PropertyTypeDefined in
dashboardGETundefined | (input) => Promise<string>recipe/dashboard/types.ts:65

APIOptions

type APIOptions = object;

Defined in: recipe/dashboard/types.ts:54

Properties

AuthMode

type AuthMode = "api-key" | "email-password";

Defined in: recipe/dashboard/types.ts:77

CoreConfigFieldInfo

type CoreConfigFieldInfo = object;

Defined in: recipe/dashboard/types.ts:84

Properties

PropertyTypeDefined in
defaultValuestring | number | boolean | nullrecipe/dashboard/types.ts:92
descriptionstringrecipe/dashboard/types.ts:88
isDifferentAcrossTenantsbooleanrecipe/dashboard/types.ts:89
isNullablebooleanrecipe/dashboard/types.ts:91
isPluginPropertybooleanrecipe/dashboard/types.ts:93
isPluginPropertyEditablebooleanrecipe/dashboard/types.ts:94
keystringrecipe/dashboard/types.ts:85
possibleValues?string[]recipe/dashboard/types.ts:90
valuestring | number | boolean | nullrecipe/dashboard/types.ts:87
valueType"string" | "boolean" | "number"recipe/dashboard/types.ts:86

RecipeIdForUser

type RecipeIdForUser = "emailpassword" | "thirdparty" | "passwordless" | "webauthn";

Defined in: recipe/dashboard/types.ts:75

RecipeInterface

type RecipeInterface = object;

Defined in: recipe/dashboard/types.ts:45

Methods

getDashboardBundleLocation()
getDashboardBundleLocation(input): Promise<string>;

Defined in: recipe/dashboard/types.ts:46

Parameters
ParameterType
input{ userContext: UserContext; }
input.userContextUserContext
Returns

Promise<string>

shouldAllowAccess()
shouldAllowAccess(input): Promise<boolean>;

Defined in: recipe/dashboard/types.ts:47

Parameters
ParameterType
input{ config: TypeNormalisedInput; req: BaseRequest; userContext: UserContext; }
input.configTypeNormalisedInput
input.reqBaseRequest
input.userContextUserContext
Returns

Promise<boolean>

TypeInput

type TypeInput = object;

Defined in: recipe/dashboard/types.ts:20

Properties

PropertyTypeDefined in
admins?string[]recipe/dashboard/types.ts:22
apiKey?stringrecipe/dashboard/types.ts:21
override?objectrecipe/dashboard/types.ts:23
override.apis?(originalImplementation, builder) => APIInterfacerecipe/dashboard/types.ts:28
override.functions?(originalImplementation, builder) => RecipeInterfacerecipe/dashboard/types.ts:24

TypeNormalisedInput

type TypeNormalisedInput = object;

Defined in: recipe/dashboard/types.ts:32

Properties

PropertyTypeDefined in
admins?string[]recipe/dashboard/types.ts:34
apiKey?stringrecipe/dashboard/types.ts:33
authModeAuthModerecipe/dashboard/types.ts:35
overrideobjectrecipe/dashboard/types.ts:36
override.apis(originalImplementation, builder) => APIInterfacerecipe/dashboard/types.ts:41
override.functions(originalImplementation, builder) => RecipeInterfacerecipe/dashboard/types.ts:37

UserWithFirstAndLastName

type UserWithFirstAndLastName = User & object;

Defined in: recipe/dashboard/types.ts:79

Type Declaration

NameTypeDefined in
firstName?stringrecipe/dashboard/types.ts:80
lastName?stringrecipe/dashboard/types.ts:81