Skip to content

AppAddress

AppAddress = { calendar?: CalendarView; display?: string; filter?: string; filterLayout?: FilterLayout; kind: "list"; list?: string; map?: MapView; orderBy?: string; resource: string; savedSearch?: string; timeline?: TimelineView; } | { call?: "join"; edit?: boolean; file?: string; key: KeyValue | readonly KeyValue[]; kind: "record"; open?: readonly string[]; panel?: string; resource: string; run?: string; standard?: boolean; tab?: string; thread?: string; version?: number; } | { kind: "create"; resource: string; values?: Readonly<Record<string, string>>; } | { kind: "page"; page: string; params?: Readonly<Record<string, string>>; tab?: string; }

Defined in: packages/schema/src/model.ts:292

A place in the app: a resource’s list, one of its records, its create form, or a composed page. A record’s key is its one value or its parts, as the record API takes them; readAppPath gives it back as the API’s text form. A create form’s values fill in fields of the new record by name, as text ({ listing_id: '42' }). A list’s map is where its map display looks, its calendar the month or week its calendar display shows, and its timeline the period its timeline display shows. See Addresses.

{ calendar?: CalendarView; display?: string; filter?: string; filterLayout?: FilterLayout; kind: "list"; list?: string; map?: MapView; orderBy?: string; resource: string; savedSearch?: string; timeline?: TimelineView; }

optional calendar?: CalendarView

The month or week its calendar display shows.

optional display?: string

The display the list shows in, by name; its default when omitted.

optional filter?: string

An AIP-160 filter on the list.

optional filterLayout?: FilterLayout

Where its filters sit.

kind: "list"

A resource’s list.

optional list?: string

A named list of the resource’s view (.namedList(...)); its own list when omitted.

optional map?: MapView

Where its map display looks.

optional orderBy?: string

An AIP-132 order of the list.

resource: string

The resource listed.

optional savedSearch?: string

The saved search the list was opened from, by its key in the text form the record API takes: while the list’s filter differs from the search’s, the list offers to update the search.

optional timeline?: TimelineView

The week, month or quarter its timeline display shows.


{ call?: "join"; edit?: boolean; file?: string; key: KeyValue | readonly KeyValue[]; kind: "record"; open?: readonly string[]; panel?: string; resource: string; run?: string; standard?: boolean; tab?: string; thread?: string; version?: number; }

optional call?: "join"

join when the page joins the record’s call, as a ring’s Accept and a call mark’s Join open it.

optional edit?: boolean

The record’s form, on a view whose record page opens as a read view or locked (.recordMode(...)): the page that Edit opens. A view whose record page is always editable ignores it.

optional file?: string

A file field of the record, by name, opened in the viewer the admin app has for its file’s media type (?file=), in place of the record page; the plain record page without a viewer for it.

key: KeyValue | readonly KeyValue[]

The record’s key: its value, or its parts for a composite key.

kind: "record"

One record.

optional open?: readonly string[]

The titles of the record page’s collapsed groups that are open.

optional panel?: string

The panel a focus page opens with, by a name its surface knows (?panel=).

resource: string

The record’s resource.

optional run?: string

The run a workflow’s page shows on its graph, by its key, on the version it ran on; {{field}} takes it from a record.

optional standard?: boolean

The record’s standard page, with its form, related records, Edit and Delete, on a view whose record page is a component of the app’s own (.record({ component })). A view without one ignores it.

optional tab?: string

The title of the record page’s tab shown; the first tab when omitted.

optional thread?: string

The message whose thread a conversation page opens beside it, by its key (?thread=).

optional version?: number

An earlier saved version of the record, by its number, as a field type that keeps versions draws it, such as a workflow’s graph: the record page shows it read-only, as its read view.


{ kind: "create"; resource: string; values?: Readonly<Record<string, string>>; }

kind: "create"

The form for a new record.

resource: string

The resource the record is created in.

optional values?: Readonly<Record<string, string>>

Fields of the new record filled in by name, as text; a start the person can change.


{ kind: "page"; page: string; params?: Readonly<Record<string, string>>; tab?: string; }

kind: "page"

A composed page.

page: string

The page’s name.

optional params?: Readonly<Record<string, string>>

The page’s parameters by name, as its SelectInputs and a block’s select write them into the query: ?window=7d.

optional tab?: string

The name of the page’s tab shown (<Tab name>); the first tab when omitted.