From a2e4145ff73bf5bdb3e618c0ec00ba03f8a1f2d5 Mon Sep 17 00:00:00 2001 From: Behzad Rabiei <53224485+Behzad-rabiei@users.noreply.github.com> Date: Fri, 6 Sep 2024 17:17:52 +0400 Subject: [PATCH] feat: add discourse platform and violationDetection module --- package.json | 2 +- src/config/enums.ts | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index b5bf714..d14596a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@togethercrew.dev/db", - "version": "3.0.64", + "version": "3.0.70", "description": "All interactions with DB", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/config/enums.ts b/src/config/enums.ts index 27f9167..ab38256 100644 --- a/src/config/enums.ts +++ b/src/config/enums.ts @@ -5,18 +5,23 @@ export enum PlatformNames { Notion = 'notion', MediaWiki = 'mediaWiki', Twitter = 'twitter', + Discourse = 'discourse', } export enum ModuleNames { Hivemind = 'hivemind', + ViolationDetection = 'violationDetection', } export enum HivemindPlatformNames { - Discord = 'discord', - Google = 'google', - GitHub = 'github', - Notion = 'notion', - MediaWiki = 'mediaWiki', + Discord = PlatformNames.Discord, + Google = PlatformNames.Google, + GitHub = PlatformNames.GitHub, + Notion = PlatformNames.Notion, + MediaWiki = PlatformNames.MediaWiki, +} +export enum ViolationDetectionPlatformNames { + Discourse = PlatformNames.Discourse, } export enum TokenTypeNames {