/**
 * Processing Activities — Marketing & Finance Templates
 */

import { ProcessingActivityTemplate } from './types'

export const MARKETING_TEMPLATES: ProcessingActivityTemplate[] = [
  {
    id: 'tpl-marketing-newsletter',
    category: 'MARKETING',
    name: {
      de: 'Newsletter-Versand',
      en: 'Newsletter Distribution',
    },
    description: {
      de: 'Versand von E-Mail-Newslettern und Marketing-Kommunikation',
      en: 'Sending email newsletters and marketing communications',
    },
    purposes: [
      { de: 'Versand von Newsletter und Marketing-E-Mails', en: 'Sending newsletters and marketing emails' },
      { de: 'Messung von Öffnungs- und Klickraten', en: 'Measuring open and click rates' },
    ],
    dataSubjectCategories: ['NEWSLETTER_SUBSCRIBERS', 'CUSTOMERS'],
    personalDataCategories: ['NAME', 'CONTACT', 'USAGE_DATA'],
    suggestedLegalBasis: ['CONSENT'],
    suggestedRetentionYears: 0,
    suggestedProtectionLevel: 'LOW',
    dpiaLikely: false,
    commonSystems: ['Mailchimp', 'CleverReach', 'Sendinblue'],
    commonVendorCategories: ['EMAIL', 'MARKETING'],
  },
  {
    id: 'tpl-marketing-advertising',
    category: 'MARKETING',
    name: {
      de: 'Online-Werbung',
      en: 'Online Advertising',
    },
    description: {
      de: 'Schaltung und Auswertung von Online-Werbeanzeigen',
      en: 'Running and analyzing online advertisements',
    },
    purposes: [
      { de: 'Schaltung von Online-Werbung', en: 'Running online advertisements' },
      { de: 'Conversion-Tracking', en: 'Conversion tracking' },
      { de: 'Retargeting', en: 'Retargeting' },
    ],
    dataSubjectCategories: ['WEBSITE_USERS'],
    personalDataCategories: ['IP_ADDRESS', 'DEVICE_ID', 'USAGE_DATA'],
    suggestedLegalBasis: ['CONSENT'],
    suggestedRetentionYears: 1,
    suggestedProtectionLevel: 'MEDIUM',
    dpiaLikely: true,
    commonSystems: ['Google Ads', 'Meta Ads', 'LinkedIn Ads'],
    commonVendorCategories: ['MARKETING', 'ANALYTICS'],
  },
  {
    id: 'tpl-marketing-events',
    category: 'MARKETING',
    name: {
      de: 'Veranstaltungsmanagement',
      en: 'Event Management',
    },
    description: {
      de: 'Organisation und Durchführung von Veranstaltungen, Messen und Webinaren',
      en: 'Organizing and conducting events, trade shows, and webinars',
    },
    purposes: [
      { de: 'Teilnehmerregistrierung', en: 'Participant registration' },
      { de: 'Veranstaltungsdurchführung', en: 'Event execution' },
      { de: 'Nachbereitung und Follow-up', en: 'Follow-up activities' },
    ],
    dataSubjectCategories: ['CUSTOMERS', 'PROSPECTIVE_CUSTOMERS', 'BUSINESS_PARTNERS'],
    personalDataCategories: ['NAME', 'CONTACT', 'ADDRESS', 'PHOTO_VIDEO'],
    suggestedLegalBasis: ['CONTRACT', 'CONSENT'],
    suggestedRetentionYears: 2,
    suggestedProtectionLevel: 'LOW',
    dpiaLikely: false,
    commonSystems: ['Eventbrite', 'GoToWebinar', 'Zoom'],
    commonVendorCategories: ['MARKETING', 'COMMUNICATION'],
  },
]

export const FINANCE_TEMPLATES: ProcessingActivityTemplate[] = [
  {
    id: 'tpl-finance-accounting',
    category: 'FINANCE',
    name: {
      de: 'Finanzbuchhaltung',
      en: 'Financial Accounting',
    },
    description: {
      de: 'Führung der Finanzbuchhaltung, Rechnungsstellung und Zahlungsabwicklung',
      en: 'Financial accounting, invoicing, and payment processing',
    },
    purposes: [
      { de: 'Buchführung und Rechnungswesen', en: 'Bookkeeping and accounting' },
      { de: 'Rechnungsstellung', en: 'Invoicing' },
      { de: 'Zahlungsabwicklung', en: 'Payment processing' },
    ],
    dataSubjectCategories: ['CUSTOMERS', 'SUPPLIERS', 'BUSINESS_PARTNERS'],
    personalDataCategories: [
      'NAME', 'ADDRESS', 'BANK_ACCOUNT', 'PAYMENT_DATA', 'CONTRACT_DATA', 'TAX_ID',
    ],
    suggestedLegalBasis: ['CONTRACT', 'LEGAL_OBLIGATION'],
    suggestedRetentionYears: 10,
    suggestedProtectionLevel: 'HIGH',
    dpiaLikely: false,
    commonSystems: ['DATEV', 'SAP', 'Lexware', 'Xero'],
    commonVendorCategories: ['ACCOUNTING', 'ERP'],
  },
  {
    id: 'tpl-finance-debt-collection',
    category: 'FINANCE',
    name: {
      de: 'Forderungsmanagement',
      en: 'Debt Collection',
    },
    description: {
      de: 'Verwaltung offener Forderungen und Mahnwesen',
      en: 'Managing outstanding receivables and dunning',
    },
    purposes: [
      { de: 'Überwachung offener Forderungen', en: 'Monitoring outstanding receivables' },
      { de: 'Mahnwesen', en: 'Dunning process' },
      { de: 'Inkasso bei Bedarf', en: 'Debt collection if necessary' },
    ],
    dataSubjectCategories: ['CUSTOMERS'],
    personalDataCategories: ['NAME', 'ADDRESS', 'CONTACT', 'PAYMENT_DATA', 'CONTRACT_DATA'],
    suggestedLegalBasis: ['CONTRACT', 'LEGITIMATE_INTEREST'],
    suggestedRetentionYears: 10,
    suggestedProtectionLevel: 'MEDIUM',
    dpiaLikely: false,
    commonSystems: ['ERP', 'Inkasso-Software'],
    commonVendorCategories: ['ACCOUNTING', 'LEGAL'],
  },
]
