create qr-codes by tg bot
This commit is contained in:
@@ -0,0 +1 @@
|
||||
dist
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "@hereconnect/constants",
|
||||
"version": "1.0.0",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"files": ["dist/**/*"],
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"lint": "tsc --noEmit src/index.ts",
|
||||
"build": "tsc",
|
||||
"prepare": "npm run build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@hereconnect/types": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "~5.6.3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export const EPOCH = 1731661630981;
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from "./qrCodePlacements";
|
||||
export * from "./EPOCH";
|
||||
@@ -0,0 +1,12 @@
|
||||
import { type QRCodeDocument } from '@hereconnect/types'
|
||||
|
||||
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 }[]
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"target": "ES2020",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"outDir": "./dist",
|
||||
"strict": true,
|
||||
"types": [],
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": ["src/index.ts"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
Reference in New Issue
Block a user