-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #321 from mvdicarlo/develop
v3.1.41
- Loading branch information
Showing
27 changed files
with
1,226 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
commons/src/interfaces/websites/twitter/twitter.account.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export interface TwitterAccountData { | ||
key: string; | ||
secret: string; | ||
user_id: number; | ||
screen_name: string; | ||
oauth_token: string; | ||
oauth_token_secret: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Expose } from 'class-transformer'; | ||
import { IsString } from 'class-validator'; | ||
import { DefaultFileOptions } from '../../interfaces/submission/default-options.interface'; | ||
import { TwitterFileOptions } from '../../interfaces/websites/twitter/twitter.file.options.interface'; | ||
import { DefaultFileOptionsEntity } from '../../models/default-file-options.entity'; | ||
|
||
export class TwitterFileOptionsEntity | ||
extends DefaultFileOptionsEntity | ||
implements TwitterFileOptions | ||
{ | ||
@Expose() | ||
@IsString() | ||
contentBlur?: 'other' | 'graphic_violence' | 'adult_content'; | ||
|
||
constructor(entity?: Partial<TwitterFileOptions>) { | ||
super(entity as DefaultFileOptions); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { DefaultOptionsEntity } from '../../models/default-options.entity'; | ||
import { TwitterFileOptionsEntity } from './twitter.file.options'; | ||
|
||
export class Twitter { | ||
static readonly FileOptions = TwitterFileOptionsEntity; | ||
static readonly NotificationOptions = DefaultOptionsEntity; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.