feat: add 'other' product type for miscellaneous sites (tracking only, no remote control)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -89,7 +89,7 @@ function hostFromUrl(url?: string | null) {
|
||||
}
|
||||
|
||||
function classifyProduct(row: SourceUser, domains: string[]): {
|
||||
product: ProductType;
|
||||
product: Exclude<ProductType, 'other'>;
|
||||
confident: boolean;
|
||||
reason: string;
|
||||
} {
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
-- AlterEnum
|
||||
ALTER TYPE "public"."ProductType" ADD VALUE IF NOT EXISTS 'other';
|
||||
@@ -8,9 +8,11 @@ datasource db {
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
/// other = سایتهای متفرقه: فقط ثبت مشخصات و پیگیری سرور/افزونه/پشتیبانی/پیامک؛ بدون کنترل ریموت و بدون get_user.
|
||||
enum ProductType {
|
||||
hamkar
|
||||
khanegi
|
||||
other
|
||||
}
|
||||
|
||||
/// Khanegi front-end appearance family (ignored for hamkar).
|
||||
|
||||
Reference in New Issue
Block a user