добавлен placement document и key
This commit is contained in:
@@ -10,7 +10,9 @@ export const defaultMessages = {
|
||||
"Произошло ДТП",
|
||||
],
|
||||
pet: ["Нашёлся ваш питомец"],
|
||||
door: ["Я рядом с дверью"],
|
||||
document: ["Нашли ваши документы"],
|
||||
key: ["Нашли ваши ключи"],
|
||||
door: ["Я рядом с дверью", "Ваш заказ доставлен"],
|
||||
store: ["Подойдите к кассе", "Вопрос по товару", "Помощь с покупкой"],
|
||||
restaurant_table: [
|
||||
"Позовите официанта",
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
import { type QRCodeDocument } from '@hereconnect/types'
|
||||
import { type QRCodeDocument } from "@hereconnect/types";
|
||||
|
||||
export type QrCodePlacement = QRCodeDocument['placement']
|
||||
export type QrCodePlacement = QRCodeDocument["placement"];
|
||||
|
||||
export const qrCodePlacements = [
|
||||
{ type: 'car', label: 'Автомобиль' },
|
||||
{ type: 'pet', label: 'Питомец' },
|
||||
{ type: 'door', label: 'Входная дверь дома или квартиры' },
|
||||
{ type: 'store', label: 'Магазин' },
|
||||
{ type: 'restaurant_table', label: 'Стол в кафе или ресторане' },
|
||||
{ type: 'other', label: 'Другое' },
|
||||
] as const satisfies { type: QrCodePlacement; label: string }[]
|
||||
{ type: "car", label: "Автомобиль" },
|
||||
{ type: "pet", label: "Питомец" },
|
||||
{ type: "document", label: "Документ (паспорт, права, и т.д.)" },
|
||||
{ type: "key", label: "Ключи" },
|
||||
{ type: "door", label: "Входная дверь дома или квартиры" },
|
||||
{ type: "store", label: "Магазин" },
|
||||
{ type: "restaurant_table", label: "Стол в кафе или ресторане" },
|
||||
{ type: "other", label: "Другое" },
|
||||
] as const satisfies { type: QrCodePlacement; label: string }[];
|
||||
|
||||
@@ -38,7 +38,15 @@ export interface QRCodeDocument extends BaseDocument {
|
||||
messageDeliveryMethod: "telegram" | "webPush";
|
||||
|
||||
/** Тип объекта, для которого создан QR‑код, например "car" */
|
||||
placement: "car" | "pet" | "door" | "store" | "restaurant_table" | "other";
|
||||
placement:
|
||||
| "car"
|
||||
| "pet"
|
||||
| "document"
|
||||
| "key"
|
||||
| "door"
|
||||
| "store"
|
||||
| "restaurant_table"
|
||||
| "other";
|
||||
|
||||
/** Доступные действия для гостей (например, ["sendMessage"]) */
|
||||
actions: ("sendMessage" | "viewContactInfo")[];
|
||||
|
||||
Reference in New Issue
Block a user