добавлен placement document и key
This commit is contained in:
@@ -10,7 +10,9 @@ export const defaultMessages = {
|
|||||||
"Произошло ДТП",
|
"Произошло ДТП",
|
||||||
],
|
],
|
||||||
pet: ["Нашёлся ваш питомец"],
|
pet: ["Нашёлся ваш питомец"],
|
||||||
door: ["Я рядом с дверью"],
|
document: ["Нашли ваши документы"],
|
||||||
|
key: ["Нашли ваши ключи"],
|
||||||
|
door: ["Я рядом с дверью", "Ваш заказ доставлен"],
|
||||||
store: ["Подойдите к кассе", "Вопрос по товару", "Помощь с покупкой"],
|
store: ["Подойдите к кассе", "Вопрос по товару", "Помощь с покупкой"],
|
||||||
restaurant_table: [
|
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 = [
|
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")[];
|
||||||
|
|||||||
Reference in New Issue
Block a user