mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 13:23:04 +00:00
feat(collections): edit a saved place's provider ids, website, phone and price (#2646)
The update contract takes google_place_id, google_ftid, osm_id, website, phone, price and currency like saving does, website with the same normalisation and refusal. REST and update_collection_place share it, so an agent can correct a place instead of re-saving it and losing its labels, ratings, position and id. The assistant's change card names the new fields.
This commit is contained in:
@@ -77,6 +77,13 @@ const FIELD_OF: Readonly<Record<string, (typeof COLLECTION_CARD_FIELDS)[number]>
|
||||
category_id: 'category',
|
||||
links: 'link',
|
||||
image_url: 'photo',
|
||||
website: 'website',
|
||||
phone: 'phone',
|
||||
price: 'price',
|
||||
currency: 'price',
|
||||
google_place_id: 'mapEntry',
|
||||
google_ftid: 'mapEntry',
|
||||
osm_id: 'mapEntry',
|
||||
};
|
||||
|
||||
function fieldsOf(args: ToolArgs): CollectionCardDelta['fields'] {
|
||||
|
||||
Reference in New Issue
Block a user