добавлен placement document и key
Deploy app frontend / app frontend (push) Successful in 2m44s
Deploy service tg-bot / service tg-bot (push) Has been cancelled

This commit is contained in:
2025-01-02 11:29:32 +02:00
parent 36e3292f03
commit e29c7c1ff4
3 changed files with 23 additions and 11 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ export const defaultMessages = {
"Произошло ДТП", "Произошло ДТП",
], ],
pet: ["Нашёлся ваш питомец"], pet: ["Нашёлся ваш питомец"],
door: ["Я рядом с дверью"], document: ["Нашли ваши документы"],
key: ["Нашли ваши ключи"],
door: ["Я рядом с дверью", "Ваш заказ доставлен"],
store: ["Подойдите к кассе", "Вопрос по товару", "Помощь с покупкой"], store: ["Подойдите к кассе", "Вопрос по товару", "Помощь с покупкой"],
restaurant_table: [ restaurant_table: [
"Позовите официанта", "Позовите официанта",
+11 -9
View File
@@ -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 = [ export const qrCodePlacements = [
{ type: 'car', label: 'Автомобиль' }, { type: "car", label: "Автомобиль" },
{ type: 'pet', label: 'Питомец' }, { type: "pet", label: "Питомец" },
{ type: 'door', label: 'Входная дверь дома или квартиры' }, { type: "document", label: "Документ (паспорт, права, и т.д.)" },
{ type: 'store', label: 'Магазин' }, { type: "key", label: "Ключи" },
{ type: 'restaurant_table', label: 'Стол в кафе или ресторане' }, { type: "door", label: "Входная дверь дома или квартиры" },
{ type: 'other', label: 'Другое' }, { type: "store", label: "Магазин" },
] as const satisfies { type: QrCodePlacement; label: string }[] { 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"; messageDeliveryMethod: "telegram" | "webPush";
/** Тип объекта, для которого создан QR‑код, например "car" */ /** Тип объекта, для которого создан QR‑код, например "car" */
placement: "car" | "pet" | "door" | "store" | "restaurant_table" | "other"; placement:
| "car"
| "pet"
| "document"
| "key"
| "door"
| "store"
| "restaurant_table"
| "other";
/** Доступные действия для гостей (например, ["sendMessage"]) */ /** Доступные действия для гостей (например, ["sendMessage"]) */
actions: ("sendMessage" | "viewContactInfo")[]; actions: ("sendMessage" | "viewContactInfo")[];