Creates a new place record.
input fields for creating a place
the created place record
InvalidArgumentError if parent is not provided for types requiring a parent or is not the
identifier of a valid contact. The parent contact's type must be one of the supported parent contact
types for the new place.
Returns a generator for fetching all places with the given type.
Returns a place by its UUID.
Returns a place by its UUID along with the place's parent lineage.
the UUID of the place to retrieve
the place or null if no place is found for the UUID
Returns an array of places for the provided page specifications.
the type of place to return
Optionalcursor: Nullable<string>the token identifying which page to retrieve. A null value indicates the first page should be
returned. Subsequent pages can be retrieved by providing the cursor returned with the previous page.
Optionallimit: number | `${number}`the maximum number of place to return. Default is 100.
a page of places for the provided specifications
InvalidArgumentError if no type is provided or if the type is not a supported place contact type
getByType which provides the same data, but without having to manually account for paging
Updates an existing place to have the provided data.
the updated place data. The complete data for the place must be provided. Existing fields not included in the updated data will be removed from the place. If the provided parent/contact lineage is hydrated (e.g. for a v1.PlaceWithLineage), the lineage will be properly dehydrated before being stored.
the updated place with the new _rev value
Operations for working with places.