create qr-codes by tg bot
Deploy app frontend / app frontend (push) Failing after 48s
Deploy db-migrations / db-migrations (push) Failing after 35s
Deploy service message-delivery-method-web-push / service message-delivery-method-web-push (push) Failing after 53s

This commit is contained in:
2024-12-10 13:21:38 +02:00
parent e9b3df38fe
commit 1810c550ba
91 changed files with 3317 additions and 1909 deletions
+8 -6
View File
@@ -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;
+10 -7
View File
@@ -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;
}
+8 -3
View File
@@ -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"],
}