waygraph / ManifestBlock
Interface: ManifestBlock
Defined in: src/manifest/manifest.ts:32
Properties
checks
checks:
object
Defined in: src/manifest/manifest.ts:62
What it checks before acting and on arrival: each Trait as data, or "dynamic" when a function builds them.
precondition
precondition:
ManifestCheck[] |"dynamic"
verify
verify:
ManifestCheck[] |"dynamic"
description
description:
string
Defined in: src/manifest/manifest.ts:40
expect
expect:
string[]
Defined in: src/manifest/manifest.ts:45
What the Block promises wherever it's used (its expect), in words; per outcome as "if Tag: ...".
exportName
exportName:
string
Defined in: src/manifest/manifest.ts:38
file
file:
string
Defined in: src/manifest/manifest.ts:46
for?
optionalfor?:string[]
Defined in: src/manifest/manifest.ts:66
The accounts it's given (for): who can open a page, who has a Method's button, who sees a layout's link.
from
from:
string[]
Defined in: src/manifest/manifest.ts:41
group?
optionalgroup?:"do"|"expects"|"links"
Defined in: src/manifest/manifest.ts:56
A Block written in a page: which group of it (do, expects, links), the page's id, and its key there.
id
id:
string
Defined in: src/manifest/manifest.ts:36
file#exportName, unique across the project.
key?
optionalkey?:string
Defined in: src/manifest/manifest.ts:58
kind
kind:
BlockKind
Defined in: src/manifest/manifest.ts:39
map?
optionalmap?:string
Defined in: src/manifest/manifest.ts:48
The src/map/ group folder the Block lives in (e.g. (external)/hoppscotch), or the map package it came from.
name
name:
string
Defined in: src/manifest/manifest.ts:37
opens?
optionalopens?:true
Defined in: src/manifest/manifest.ts:52
A Page Block that opens itself (it has a url or a click): a way in, as a Nav is.
owner?
optionalowner?:string
Defined in: src/manifest/manifest.ts:57
query?
optionalquery?:string[]
Defined in: src/manifest/manifest.ts:54
The query params a Page Block keeps in its address (?tab=): state of the page.
requires
requires:
string[]
Defined in: src/manifest/manifest.ts:43
selectors
selectors:
SelectorEntry[]
Defined in: src/manifest/manifest.ts:64
The selector entries its definition reads (LoginSel.submit), from the project's selector files.
sets?
optionalsets?:object[]
Defined in: src/manifest/manifest.ts:34
The states it changes when it lands; on when that depends on where it lands.
key
key:
string
on?
optionalon?:string
value
value:
string|boolean
source?
optionalsource?:SourceSpan
Defined in: src/manifest/manifest.ts:60
The lines of file that define it.
to
to:
string[]
Defined in: src/manifest/manifest.ts:42
url?
optionalurl?:string
Defined in: src/manifest/manifest.ts:50
Where a Nav or Page Block goes by url: the url, or the pattern a url built from mem makes (/requests/:id).