brendmanager/src/channels.js

22 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Таблица каналов (BRM-56). Только то, что известно; остальное — «нужно уточнить» (null), без догадок.
// Тексты — в locales (ch.*), здесь только коды.
export const AUTO = ["no", "pending", "yes"]; // yes сейчас нет ни у одного канала
export const PRIORITIES = ["P0", "P1", "P2"];
const unknown = { audience: null, goal: null, role: null, metrics: null };
const base = (id, extra = {}) => ({
id, ...unknown, access: "unconfirmed", auto: "no", status: "unconfirmed", priority: null, link: null, ...extra,
});
export const CHANNELS = [
base("linkedin", { access: "profile", auto: "pending", status: "known", priority: "P0", link: null }),
base("instagram"), base("facebook"),
base("telegram", { auto: "pending", priority: "P0" }),
base("site", { access: "site", status: "known", priority: "P0", link: "https://growconsult.kz" }),
base("youtube"), base("tiktok"), base("threadsx"), base("email"),
base("media"), base("whatsapp"), base("search"),
];
export const channelView = (c) => ({ ...c, manualTask: c.auto !== "yes" });
export const listChannels = () => CHANNELS.map(channelView);