mirror of
https://github.com/wassname/talk.git
synced 2026-07-26 13:37:38 +08:00
feat: initial implementation (#2409)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Omit } from "coral-common/types";
|
||||
import {
|
||||
GQLAuth,
|
||||
GQLEmailConfiguration,
|
||||
GQLFacebookAuthIntegration,
|
||||
GQLGoogleAuthIntegration,
|
||||
GQLLiveConfiguration,
|
||||
@@ -13,6 +14,8 @@ import {
|
||||
|
||||
export type LiveConfiguration = Omit<GQLLiveConfiguration, "configurable">;
|
||||
|
||||
export type EmailConfiguration = GQLEmailConfiguration;
|
||||
|
||||
export interface GlobalModerationSettings {
|
||||
live: LiveConfiguration;
|
||||
moderation: GQLMODERATION_MODE;
|
||||
@@ -77,7 +80,6 @@ export type Settings = GlobalModerationSettings &
|
||||
Pick<
|
||||
GQLSettings,
|
||||
| "charCount"
|
||||
| "email"
|
||||
| "karma"
|
||||
| "wordList"
|
||||
| "integrations"
|
||||
@@ -93,6 +95,12 @@ export type Settings = GlobalModerationSettings &
|
||||
*/
|
||||
auth: Auth;
|
||||
|
||||
/**
|
||||
* email is the set of credentials and settings associated with the
|
||||
* organization.
|
||||
*/
|
||||
email: EmailConfiguration;
|
||||
|
||||
/**
|
||||
* closeCommenting contains settings related to the automatic closing of commenting on
|
||||
* Stories.
|
||||
|
||||
@@ -158,6 +158,7 @@ export async function createTenant(
|
||||
},
|
||||
email: {
|
||||
enabled: false,
|
||||
smtp: {},
|
||||
},
|
||||
karma: {
|
||||
enabled: true,
|
||||
|
||||
Reference in New Issue
Block a user