create qr-codes by tg bot
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
{
|
||||
"name": "@hereconnect/types",
|
||||
"version": "1.0.0",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./src/index.ts",
|
||||
"default": "./src/index.ts"
|
||||
"import": "./dist/index.d.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"files": ["src/**/*"],
|
||||
"files": ["dist/**/*"],
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"lint": "tsc --noEmit src/index.ts",
|
||||
"build": "pnpm run lint"
|
||||
"build": "tsc",
|
||||
"prepare": "npm run build"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "~5.6.3",
|
||||
|
||||
@@ -27,7 +27,10 @@ export interface QRCodeDocument extends BaseDocument {
|
||||
user_uuid: string;
|
||||
|
||||
/** Идентификатор браузера, через который был создан QR-код */
|
||||
browser_uuid: string;
|
||||
browser_uuid?: string;
|
||||
|
||||
/** Идентификатор телеграм-аккаунта, через который был создан QR-код */
|
||||
telegram_id?: string;
|
||||
|
||||
/** Название объекта, для которого создан QR‑код, например "Мой автомобиль" */
|
||||
name: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { BaseDocument } from './BaseDocument'
|
||||
import type { BaseDocument } from "./BaseDocument";
|
||||
|
||||
/**
|
||||
* Интерфейс для документа пользователя.
|
||||
@@ -6,20 +6,23 @@ import type { BaseDocument } from './BaseDocument'
|
||||
*/
|
||||
export interface UserDocument extends BaseDocument {
|
||||
/** Тип документа, всегда 'user' */
|
||||
type: 'user'
|
||||
type: "user";
|
||||
|
||||
/** Telegram ID пользователя */
|
||||
telegram_id?: number;
|
||||
|
||||
/** Имя пользователя */
|
||||
name: string
|
||||
name: string;
|
||||
|
||||
/** Уникальный UUID пользователя, не связанный с _id */
|
||||
user_uuid: string
|
||||
user_uuid: string;
|
||||
|
||||
/** Email пользователя */
|
||||
email: string
|
||||
email?: string;
|
||||
|
||||
/** Роли пользователя (например, ['admin', 'user']) */
|
||||
roles: string[]
|
||||
roles: string[];
|
||||
|
||||
/** Пароль пользователя (должен храниться в зашифрованном виде) */
|
||||
password: string
|
||||
password: string;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "./dist",
|
||||
"strict": true
|
||||
"target": "ES2020",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"types": ["web-push"],
|
||||
},
|
||||
"include": ["index.ts"]
|
||||
"include": ["src/index.ts"],
|
||||
"exclude": ["node_modules", "dist"],
|
||||
}
|
||||
Reference in New Issue
Block a user