feat: initial implementation (#2409)

This commit is contained in:
Wyatt Johnson
2019-07-23 17:20:40 +00:00
committed by GitHub
parent fc464bd7c9
commit b1732f8a00
24 changed files with 646 additions and 70 deletions
+9 -1
View File
@@ -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.
+1
View File
@@ -158,6 +158,7 @@ export async function createTenant(
},
email: {
enabled: false,
smtp: {},
},
karma: {
enabled: true,