AppAddress
AppAddress = {
calendar?:CalendarView;display?:string;filter?:string;filterLayout?:FilterLayout;kind:"list";list?:string;map?:MapView;orderBy?:string;resource:string;savedSearch?:string; } | {edit?:boolean;key:KeyValue| readonlyKeyValue[];kind:"record";open?: readonlystring[];resource:string; } | {kind:"create";resource:string;values?:Readonly<Record<string,string>>; } | {kind:"page";page:string; }
Defined in: packages/schema/src/model.ts:203
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, and its calendar the month or week its calendar display shows. See Addresses.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ calendar?: CalendarView; display?: string; filter?: string; filterLayout?: FilterLayout; kind: "list"; list?: string; map?: MapView; orderBy?: string; resource: string; savedSearch?: string; }
calendar?
Section titled “calendar?”
optionalcalendar?:CalendarView
The month or week its calendar display shows.
display?
Section titled “display?”
optionaldisplay?:string
The display the list shows in, by name; its default when omitted.
filter?
Section titled “filter?”
optionalfilter?:string
An AIP-160 filter on the list.
filterLayout?
Section titled “filterLayout?”
optionalfilterLayout?:FilterLayout
Where its filters sit.
kind:
"list"
A resource’s list.
optionallist?:string
A named list of the resource’s view (.namedList(...)); its own list when omitted.
optionalmap?:MapView
Where its map display looks.
orderBy?
Section titled “orderBy?”
optionalorderBy?:string
An AIP-132 order of the list.
resource
Section titled “resource”resource:
string
The resource listed.
savedSearch?
Section titled “savedSearch?”
optionalsavedSearch?: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.
Type Literal
Section titled “Type Literal”{ edit?: boolean; key: KeyValue | readonly KeyValue[]; kind: "record"; open?: readonly string[]; resource: string; }
optionaledit?: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.
The record’s key: its value, or its parts for a composite key.
kind:
"record"
One record.
optionalopen?: readonlystring[]
The titles of the record page’s collapsed groups that are open.
resource
Section titled “resource”resource:
string
The record’s resource.
Type Literal
Section titled “Type Literal”{ kind: "create"; resource: string; values?: Readonly<Record<string, string>>; }
kind:
"create"
The form for a new record.
resource
Section titled “resource”resource:
string
The resource the record is created in.
values?
Section titled “values?”
optionalvalues?:Readonly<Record<string,string>>
Fields of the new record filled in by name, as text; a start the person can change.
Type Literal
Section titled “Type Literal”{ kind: "page"; page: string; }
kind:
"page"
A composed page.
page:
string
The page’s name.