rettiwt-api 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-docs.yml +27 -0
- package/README.md +3 -1
- package/dist/Test.d.ts +0 -0
- package/dist/Test.js +2 -0
- package/dist/Test.js.map +1 -0
- package/dist/index.d.ts +16 -5
- package/dist/index.js +22 -8
- package/dist/index.js.map +1 -1
- package/dist/models/graphql/Global.d.ts +4 -0
- package/dist/models/graphql/Global.js +13 -0
- package/dist/models/graphql/Global.js.map +1 -0
- package/dist/models/graphql/TweetTypes.d.ts +6 -0
- package/dist/models/graphql/TweetTypes.js +156 -0
- package/dist/models/graphql/TweetTypes.js.map +1 -0
- package/dist/models/graphql/UserTypes.d.ts +3 -0
- package/dist/models/graphql/UserTypes.js +139 -0
- package/dist/models/graphql/UserTypes.js.map +1 -0
- package/dist/queries/RootQuery.d.ts +4 -0
- package/dist/queries/RootQuery.js +70 -0
- package/dist/queries/RootQuery.js.map +1 -0
- package/dist/resolvers/AccountResolver.d.ts +12 -0
- package/dist/resolvers/AccountResolver.js +84 -0
- package/dist/resolvers/AccountResolver.js.map +1 -0
- package/dist/resolvers/ResolverBase.d.ts +5 -0
- package/dist/resolvers/ResolverBase.js +11 -0
- package/dist/resolvers/ResolverBase.js.map +1 -0
- package/dist/resolvers/TweetResolver.d.ts +54 -0
- package/dist/resolvers/TweetResolver.js +332 -0
- package/dist/resolvers/TweetResolver.js.map +1 -0
- package/dist/resolvers/UserResolver.d.ts +38 -0
- package/dist/resolvers/UserResolver.js +253 -0
- package/dist/resolvers/UserResolver.js.map +1 -0
- package/dist/services/AuthService.d.ts +6 -2
- package/dist/services/AuthService.js +4 -3
- package/dist/services/AuthService.js.map +1 -1
- package/dist/services/CacheService.d.ts +12 -7
- package/dist/services/CacheService.js +12 -7
- package/dist/services/CacheService.js.map +1 -1
- package/dist/services/FetcherService.d.ts +32 -12
- package/dist/services/FetcherService.js +45 -14
- package/dist/services/FetcherService.js.map +1 -1
- package/dist/services/accounts/AccountService.d.ts +23 -6
- package/dist/services/accounts/AccountService.js +48 -9
- package/dist/services/accounts/AccountService.js.map +1 -1
- package/dist/services/data/TrendService.d.ts +17 -0
- package/dist/services/data/TrendService.js +116 -0
- package/dist/services/data/TrendService.js.map +1 -0
- package/dist/services/data/TweetService.d.ts +22 -15
- package/dist/services/data/TweetService.js +22 -15
- package/dist/services/data/TweetService.js.map +1 -1
- package/dist/services/data/UserAccountService.d.ts +42 -0
- package/dist/services/data/UserAccountService.js +239 -0
- package/dist/services/data/UserAccountService.js.map +1 -0
- package/dist/services/data/UserService.d.ts +21 -15
- package/dist/services/data/UserService.js +21 -15
- package/dist/services/data/UserService.js.map +1 -1
- package/dist/services/helper/Deserializers.d.ts +19 -0
- package/dist/services/helper/Deserializers.js +115 -0
- package/dist/services/helper/Deserializers.js.map +1 -0
- package/dist/services/helper/Extractors.d.ts +104 -0
- package/dist/services/helper/Extractors.js +432 -0
- package/dist/services/helper/Extractors.js.map +1 -0
- package/dist/services/helper/Urls.d.ts +85 -0
- package/dist/services/helper/Urls.js +130 -0
- package/dist/services/helper/Urls.js.map +1 -0
- package/dist/services/helper/extractors/Trends.d.ts +3 -0
- package/dist/services/helper/extractors/Trends.js +51 -0
- package/dist/services/helper/extractors/Trends.js.map +1 -0
- package/dist/services/helper/urls/Trends.d.ts +7 -0
- package/dist/services/helper/urls/Trends.js +13 -0
- package/dist/services/helper/urls/Trends.js.map +1 -0
- package/dist/types/Authentication.d.ts +27 -2
- package/dist/types/Authentication.js.map +1 -1
- package/dist/types/HTTP.d.ts +3 -1
- package/dist/types/HTTP.js +3 -1
- package/dist/types/HTTP.js.map +1 -1
- package/dist/types/Resolvers.d.ts +6 -1
- package/dist/types/Service.d.ts +30 -0
- package/dist/types/Service.js +19 -0
- package/dist/types/Service.js.map +1 -0
- package/dist/types/Trends.d.ts +50 -0
- package/dist/types/Trends.js +3 -0
- package/dist/types/Trends.js.map +1 -0
- package/dist/types/Tweet.d.ts +40 -0
- package/dist/types/Tweet.js +5 -0
- package/dist/types/Tweet.js.map +1 -0
- package/dist/types/UserAccount.d.ts +19 -0
- package/dist/types/UserAccount.js +4 -0
- package/dist/types/UserAccount.js.map +1 -0
- package/dist/types/data/Errors.d.ts +13 -4
- package/dist/types/data/Errors.js +12 -3
- package/dist/types/data/Errors.js.map +1 -1
- package/dist/types/data/Service.d.ts +19 -5
- package/dist/types/data/Service.js +6 -3
- package/dist/types/data/Service.js.map +1 -1
- package/dist/types/data/Tweet.d.ts +60 -3
- package/dist/types/data/Tweet.js +0 -1
- package/dist/types/data/Tweet.js.map +1 -1
- package/dist/types/data/User.d.ts +20 -1
- package/dist/types/data/User.js +0 -1
- package/dist/types/data/User.js.map +1 -1
- package/dist/types/graphql/Errors.d.ts +15 -0
- package/dist/types/graphql/Errors.js +23 -0
- package/dist/types/graphql/Errors.js.map +1 -0
- package/dist/types/raw/general/Trends.d.ts +324 -0
- package/dist/types/raw/general/Trends.js +3 -0
- package/dist/types/raw/general/Trends.js.map +1 -0
- package/dist/types/raw/user/Tweets.d.ts +2428 -0
- package/dist/types/raw/user/Tweets.js +3 -0
- package/dist/types/raw/user/Tweets.js.map +1 -0
- package/package.json +5 -4
- package/src/index.ts +19 -6
- package/src/services/AuthService.ts +13 -7
- package/src/services/CacheService.ts +12 -7
- package/src/services/FetcherService.ts +62 -21
- package/src/services/accounts/AccountService.ts +61 -12
- package/src/services/data/TweetService.ts +25 -18
- package/src/services/data/UserService.ts +21 -15
- package/src/types/Authentication.ts +27 -2
- package/src/types/HTTP.ts +4 -2
- package/src/types/Resolvers.ts +14 -6
- package/src/types/data/Errors.ts +13 -4
- package/src/types/data/Service.ts +28 -11
- package/src/types/data/Tweet.ts +109 -31
- package/src/types/data/User.ts +47 -17
|
@@ -2,28 +2,42 @@ import { AccountService } from "../../services/accounts/AccountService";
|
|
|
2
2
|
import { TweetService } from "../../services/data/TweetService";
|
|
3
3
|
import { UserService } from "../../services/data/UserService";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* The cursor to the batch of data to be fetched.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
6
8
|
*/
|
|
7
9
|
export declare class Cursor {
|
|
10
|
+
/** The cursor string. */
|
|
8
11
|
value: string;
|
|
9
12
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
13
|
+
* Initializes a new cursor from the given cursor string.
|
|
14
|
+
*
|
|
15
|
+
* @param cursorStr The string representation of the cursor.
|
|
12
16
|
*/
|
|
13
17
|
constructor(cursorStr: string);
|
|
14
18
|
}
|
|
15
19
|
/**
|
|
16
|
-
*
|
|
20
|
+
* The data that us fetched batch-wise along with a cursor.
|
|
21
|
+
*
|
|
22
|
+
* @typeParam Type - The type of data present in the list.
|
|
23
|
+
* @public
|
|
17
24
|
*/
|
|
18
25
|
export interface CursoredData<Type> {
|
|
26
|
+
/** The list of data of the given type. */
|
|
19
27
|
list: Type[];
|
|
28
|
+
/** The cursor to the next batch of data. */
|
|
20
29
|
next: Cursor;
|
|
21
30
|
}
|
|
22
31
|
/**
|
|
23
|
-
*
|
|
32
|
+
* The data context from where data is to be fetched.
|
|
33
|
+
*
|
|
34
|
+
* @public
|
|
24
35
|
*/
|
|
25
36
|
export interface DataContext {
|
|
37
|
+
/** Handles data related to users. */
|
|
26
38
|
users: UserService;
|
|
39
|
+
/** Handles data related to tweets. */
|
|
27
40
|
tweets: TweetService;
|
|
41
|
+
/** Handles account related operations. */
|
|
28
42
|
account: AccountService;
|
|
29
43
|
}
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
exports.__esModule = true;
|
|
3
3
|
exports.Cursor = void 0;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* The cursor to the batch of data to be fetched.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
6
8
|
*/
|
|
7
9
|
var Cursor = /** @class */ (function () {
|
|
8
10
|
// MEMBER DATA
|
|
9
11
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
+
* Initializes a new cursor from the given cursor string.
|
|
13
|
+
*
|
|
14
|
+
* @param cursorStr The string representation of the cursor.
|
|
12
15
|
*/
|
|
13
16
|
function Cursor(cursorStr) {
|
|
14
17
|
this.value = cursorStr;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Service.js","sourceRoot":"","sources":["../../../src/types/data/Service.ts"],"names":[],"mappings":";;;AAKA
|
|
1
|
+
{"version":3,"file":"Service.js","sourceRoot":"","sources":["../../../src/types/data/Service.ts"],"names":[],"mappings":";;;AAKA;;;;GAIG;AACH;IAKI,cAAc;IACd;;;;OAIG;IACH,gBAAY,SAAiB;QACzB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IAC3B,CAAC;IACL,aAAC;AAAD,CAAC,AAdD,IAcC;AAdY,wBAAM"}
|
|
@@ -1,41 +1,98 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The filter to be used for fetching tweets from Twitter.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
3
5
|
*/
|
|
4
6
|
export interface TweetFilter {
|
|
7
|
+
/** The list of words to search. */
|
|
5
8
|
words?: string[];
|
|
9
|
+
/** The list of hashtags to search.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* '#' must be excluded from the hashtag!
|
|
13
|
+
*/
|
|
6
14
|
hashtags?: string[];
|
|
15
|
+
/** The list of usernames whose tweets are to be searched.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* '@' must be excluded from the username!
|
|
19
|
+
*/
|
|
7
20
|
fromUsers?: string[];
|
|
21
|
+
/** The list of username to whom the tweets to be searched, are adressed.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* '@' must be excluded from the username!
|
|
25
|
+
*/
|
|
8
26
|
toUsers?: string[];
|
|
27
|
+
/** The list of username mentioned in the tweets to search.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* '@' must be excluded from the username!
|
|
31
|
+
*/
|
|
9
32
|
mentions?: string[];
|
|
33
|
+
/** The date starting from which tweets are to be searched.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Must be in the format YYYY-MM-DD.
|
|
37
|
+
*/
|
|
10
38
|
startDate?: string;
|
|
39
|
+
/** The date upto which tweets are to be searched.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* Must be in the format YYYY-MM-DD.
|
|
43
|
+
*/
|
|
11
44
|
endDate?: string;
|
|
45
|
+
/** The id of the tweet, after which the tweets are to be searched. */
|
|
12
46
|
sinceId?: string;
|
|
47
|
+
/** The id of the tweet which is quoted in the tweets to search. */
|
|
13
48
|
quoted?: string;
|
|
49
|
+
/** Whether to fetch tweets that are links or not.
|
|
50
|
+
*
|
|
51
|
+
* @defaultValue false
|
|
52
|
+
*/
|
|
14
53
|
links?: boolean;
|
|
15
54
|
}
|
|
16
55
|
/**
|
|
17
|
-
*
|
|
56
|
+
* The different types parsed entities like urls, media, mentions, hashtags, etc.
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
18
59
|
*/
|
|
19
60
|
export interface TweetEntities {
|
|
61
|
+
/** The list of hashtags mentioned in the tweet. */
|
|
20
62
|
hashtags: string[];
|
|
63
|
+
/** The list of urls mentioned in the tweet. */
|
|
21
64
|
urls: string[];
|
|
65
|
+
/** The list of IDs of users mentioned in the tweet. */
|
|
22
66
|
mentionedUsers: string[];
|
|
67
|
+
/** The list of urls to various media mentioned in the tweet. */
|
|
23
68
|
media: string[];
|
|
24
69
|
}
|
|
25
70
|
/**
|
|
26
|
-
*
|
|
71
|
+
* The details of a single Tweet.
|
|
27
72
|
*/
|
|
28
73
|
export interface Tweet {
|
|
74
|
+
/** The rest id of the tweet. */
|
|
29
75
|
id: string;
|
|
76
|
+
/** The rest id of the user who made the tweet. */
|
|
30
77
|
tweetBy: string;
|
|
78
|
+
/** The date and time of creation of the tweet, in UTC string format. */
|
|
31
79
|
createdAt: string;
|
|
80
|
+
/** Additional tweet entities like urls, mentions, etc. */
|
|
32
81
|
entities: TweetEntities;
|
|
82
|
+
/** The rest id of the tweet which is quoted in the tweet. */
|
|
33
83
|
quoted: string;
|
|
84
|
+
/** The full text content of the tweet. */
|
|
34
85
|
fullText: string;
|
|
86
|
+
/** The rest id of the user to which the tweet is a reply. */
|
|
35
87
|
replyTo: string;
|
|
88
|
+
/** The language in which the tweet is written. */
|
|
36
89
|
lang: string;
|
|
90
|
+
/** The number of quotes of the tweet. */
|
|
37
91
|
quoteCount: number;
|
|
92
|
+
/** The number of replies to the tweet. */
|
|
38
93
|
replyCount: number;
|
|
94
|
+
/** The number of retweets of the tweet. */
|
|
39
95
|
retweetCount: number;
|
|
96
|
+
/** The number of likes of the tweet. */
|
|
40
97
|
likeCount: number;
|
|
41
98
|
}
|
package/dist/types/data/Tweet.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tweet.js","sourceRoot":"","sources":["../../../src/types/data/Tweet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tweet.js","sourceRoot":"","sources":["../../../src/types/data/Tweet.ts"],"names":[],"mappings":";;AA8DC,CAAC"}
|
|
@@ -1,19 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The details of a single user.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
3
5
|
*/
|
|
4
6
|
export interface User {
|
|
7
|
+
/** The rest id of the user. */
|
|
5
8
|
id: string;
|
|
9
|
+
/** The username/screenname of the user. */
|
|
6
10
|
userName: string;
|
|
11
|
+
/** The full name of the user. */
|
|
7
12
|
fullName: string;
|
|
13
|
+
/** The creation date of user's account. */
|
|
8
14
|
createdAt: string;
|
|
15
|
+
/** The user's description. */
|
|
9
16
|
description: string;
|
|
17
|
+
/** Whether the account is verified or not. */
|
|
10
18
|
isVerified: boolean;
|
|
19
|
+
/** The number of tweets liked by the user. */
|
|
11
20
|
favouritesCount: number;
|
|
21
|
+
/** The number of followers of the user. */
|
|
12
22
|
followersCount: number;
|
|
23
|
+
/** The number of following of the user. */
|
|
13
24
|
followingsCount: number;
|
|
25
|
+
/** The number of tweets made by the user.
|
|
26
|
+
*
|
|
27
|
+
* @remarks This includes original tweets along with retweets.
|
|
28
|
+
*/
|
|
14
29
|
statusesCount: number;
|
|
30
|
+
/** The location of user as provided by user. */
|
|
15
31
|
location: string;
|
|
32
|
+
/** The rest id of the tweet pinned in the user's profile. */
|
|
16
33
|
pinnedTweet: string;
|
|
34
|
+
/** The url of the profile banner image. */
|
|
17
35
|
profileBanner: string;
|
|
36
|
+
/** The url of the profile image. */
|
|
18
37
|
profileImage: string;
|
|
19
38
|
}
|
package/dist/types/data/User.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../src/types/data/User.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../src/types/data/User.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @summary Collection of different types of validation errors
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ValidationErrors {
|
|
5
|
+
InvalidTweetFilter = "Atleast one of fromUsers/toUsers/mentions/hashtags/words argument is required",
|
|
6
|
+
NoUserIdentification = "Either userName or id must be given"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @summary Stores all the different type of error messages that are returned by services
|
|
10
|
+
*/
|
|
11
|
+
export declare enum DataErrors {
|
|
12
|
+
UserNotFound = "An account with given username/id was not found",
|
|
13
|
+
TweetNotFound = "A tweet with the given id was not found",
|
|
14
|
+
NoTweetsFound = "No tweets matching the given criteria found"
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.DataErrors = exports.ValidationErrors = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @summary Collection of different types of validation errors
|
|
6
|
+
*/
|
|
7
|
+
var ValidationErrors;
|
|
8
|
+
(function (ValidationErrors) {
|
|
9
|
+
ValidationErrors["InvalidTweetFilter"] = "Atleast one of fromUsers/toUsers/mentions/hashtags/words argument is required";
|
|
10
|
+
ValidationErrors["NoUserIdentification"] = "Either userName or id must be given";
|
|
11
|
+
})(ValidationErrors = exports.ValidationErrors || (exports.ValidationErrors = {}));
|
|
12
|
+
;
|
|
13
|
+
/**
|
|
14
|
+
* @summary Stores all the different type of error messages that are returned by services
|
|
15
|
+
*/
|
|
16
|
+
var DataErrors;
|
|
17
|
+
(function (DataErrors) {
|
|
18
|
+
DataErrors["UserNotFound"] = "An account with given username/id was not found";
|
|
19
|
+
DataErrors["TweetNotFound"] = "A tweet with the given id was not found";
|
|
20
|
+
DataErrors["NoTweetsFound"] = "No tweets matching the given criteria found";
|
|
21
|
+
})(DataErrors = exports.DataErrors || (exports.DataErrors = {}));
|
|
22
|
+
;
|
|
23
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../../src/types/graphql/Errors.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,wHAAoG,CAAA;IACpG,gFAA4D,CAAA;AAChE,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAAA,CAAC;AAEF;;GAEG;AACH,IAAY,UAIX;AAJD,WAAY,UAAU;IAClB,8EAAgE,CAAA;IAChE,uEAAyD,CAAA;IACzD,2EAA6D,CAAA;AACjE,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB;AAAA,CAAC"}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
export default interface Root {
|
|
2
|
+
globalObjects: GlobalObjects;
|
|
3
|
+
timeline: Timeline;
|
|
4
|
+
pageConfiguration: PageConfiguration;
|
|
5
|
+
}
|
|
6
|
+
export interface GlobalObjects {
|
|
7
|
+
tweets: Tweets;
|
|
8
|
+
users: Users;
|
|
9
|
+
moments: Moments;
|
|
10
|
+
cards: Cards;
|
|
11
|
+
places: Places;
|
|
12
|
+
media: Media;
|
|
13
|
+
broadcasts: Broadcasts;
|
|
14
|
+
topics: Topics;
|
|
15
|
+
lists: Lists;
|
|
16
|
+
}
|
|
17
|
+
export interface Tweets {
|
|
18
|
+
}
|
|
19
|
+
export interface Users {
|
|
20
|
+
}
|
|
21
|
+
export interface Moments {
|
|
22
|
+
}
|
|
23
|
+
export interface Cards {
|
|
24
|
+
}
|
|
25
|
+
export interface Places {
|
|
26
|
+
}
|
|
27
|
+
export interface Media {
|
|
28
|
+
}
|
|
29
|
+
export interface Broadcasts {
|
|
30
|
+
}
|
|
31
|
+
export interface Topics {
|
|
32
|
+
}
|
|
33
|
+
export interface Lists {
|
|
34
|
+
}
|
|
35
|
+
export interface Timeline {
|
|
36
|
+
id: string;
|
|
37
|
+
instructions: Instruction[];
|
|
38
|
+
responseObjects: ResponseObjects;
|
|
39
|
+
}
|
|
40
|
+
export interface Instruction {
|
|
41
|
+
clearCache?: ClearCache;
|
|
42
|
+
addEntries?: AddEntries;
|
|
43
|
+
terminateTimeline?: TerminateTimeline;
|
|
44
|
+
}
|
|
45
|
+
export interface ClearCache {
|
|
46
|
+
}
|
|
47
|
+
export interface AddEntries {
|
|
48
|
+
entries: Entry[];
|
|
49
|
+
}
|
|
50
|
+
export interface Entry {
|
|
51
|
+
entryId: string;
|
|
52
|
+
sortIndex: string;
|
|
53
|
+
content: Content;
|
|
54
|
+
}
|
|
55
|
+
export interface Content {
|
|
56
|
+
operation?: Operation;
|
|
57
|
+
timelineModule?: TimelineModule;
|
|
58
|
+
}
|
|
59
|
+
export interface Operation {
|
|
60
|
+
cursor: Cursor;
|
|
61
|
+
}
|
|
62
|
+
export interface Cursor {
|
|
63
|
+
value: string;
|
|
64
|
+
cursorType: string;
|
|
65
|
+
}
|
|
66
|
+
export interface TimelineModule {
|
|
67
|
+
items: Item[];
|
|
68
|
+
displayType: string;
|
|
69
|
+
header: Header;
|
|
70
|
+
clientEventInfo: ClientEventInfo3;
|
|
71
|
+
}
|
|
72
|
+
export interface Item {
|
|
73
|
+
entryId: string;
|
|
74
|
+
item: Item2;
|
|
75
|
+
}
|
|
76
|
+
export interface Item2 {
|
|
77
|
+
content: Content2;
|
|
78
|
+
clientEventInfo: ClientEventInfo;
|
|
79
|
+
feedbackInfo: FeedbackInfo;
|
|
80
|
+
}
|
|
81
|
+
export interface Content2 {
|
|
82
|
+
trend: Trend;
|
|
83
|
+
}
|
|
84
|
+
export interface Trend {
|
|
85
|
+
name: string;
|
|
86
|
+
url: Url;
|
|
87
|
+
associatedCardUrls: any[];
|
|
88
|
+
trendMetadata: TrendMetadata;
|
|
89
|
+
rank: string;
|
|
90
|
+
}
|
|
91
|
+
export interface Url {
|
|
92
|
+
urlType: string;
|
|
93
|
+
url: string;
|
|
94
|
+
urtEndpointOptions: UrtEndpointOptions;
|
|
95
|
+
}
|
|
96
|
+
export interface UrtEndpointOptions {
|
|
97
|
+
requestParams: RequestParams;
|
|
98
|
+
}
|
|
99
|
+
export interface RequestParams {
|
|
100
|
+
cd: string;
|
|
101
|
+
}
|
|
102
|
+
export interface TrendMetadata {
|
|
103
|
+
metaDescription?: string;
|
|
104
|
+
url: Url2;
|
|
105
|
+
domainContext: string;
|
|
106
|
+
}
|
|
107
|
+
export interface Url2 {
|
|
108
|
+
urlType: string;
|
|
109
|
+
url: string;
|
|
110
|
+
urtEndpointOptions: UrtEndpointOptions2;
|
|
111
|
+
}
|
|
112
|
+
export interface UrtEndpointOptions2 {
|
|
113
|
+
requestParams: RequestParams2;
|
|
114
|
+
}
|
|
115
|
+
export interface RequestParams2 {
|
|
116
|
+
cd: string;
|
|
117
|
+
}
|
|
118
|
+
export interface ClientEventInfo {
|
|
119
|
+
component: string;
|
|
120
|
+
element: string;
|
|
121
|
+
details: Details;
|
|
122
|
+
}
|
|
123
|
+
export interface Details {
|
|
124
|
+
guideDetails: GuideDetails;
|
|
125
|
+
}
|
|
126
|
+
export interface GuideDetails {
|
|
127
|
+
identifier: string;
|
|
128
|
+
token: string;
|
|
129
|
+
transparentGuideDetails: TransparentGuideDetails;
|
|
130
|
+
}
|
|
131
|
+
export interface TransparentGuideDetails {
|
|
132
|
+
trendMetadata: TrendMetadata2;
|
|
133
|
+
}
|
|
134
|
+
export interface TrendMetadata2 {
|
|
135
|
+
impressionId: string;
|
|
136
|
+
impressionToken: string;
|
|
137
|
+
position: number;
|
|
138
|
+
trendName: string;
|
|
139
|
+
relatedTerms?: string[];
|
|
140
|
+
clusterId?: string;
|
|
141
|
+
associatedCuratedTweetIds: any[];
|
|
142
|
+
containsCuratedTitle: boolean;
|
|
143
|
+
topicIds?: string[];
|
|
144
|
+
displayedTopicId?: string;
|
|
145
|
+
}
|
|
146
|
+
export interface FeedbackInfo {
|
|
147
|
+
feedbackKeys: string[];
|
|
148
|
+
feedbackMetadata: string;
|
|
149
|
+
clientEventInfo: ClientEventInfo2;
|
|
150
|
+
}
|
|
151
|
+
export interface ClientEventInfo2 {
|
|
152
|
+
component: string;
|
|
153
|
+
element: string;
|
|
154
|
+
action: string;
|
|
155
|
+
}
|
|
156
|
+
export interface Header {
|
|
157
|
+
text: string;
|
|
158
|
+
sticky: boolean;
|
|
159
|
+
displayType: string;
|
|
160
|
+
}
|
|
161
|
+
export interface ClientEventInfo3 {
|
|
162
|
+
component: string;
|
|
163
|
+
details: Details2;
|
|
164
|
+
}
|
|
165
|
+
export interface Details2 {
|
|
166
|
+
guideDetails: GuideDetails2;
|
|
167
|
+
}
|
|
168
|
+
export interface GuideDetails2 {
|
|
169
|
+
identifier: string;
|
|
170
|
+
}
|
|
171
|
+
export interface TerminateTimeline {
|
|
172
|
+
direction: string;
|
|
173
|
+
}
|
|
174
|
+
export interface ResponseObjects {
|
|
175
|
+
feedbackActions: FeedbackActions;
|
|
176
|
+
}
|
|
177
|
+
export interface FeedbackActions {
|
|
178
|
+
trend_irrelevant_content_feedback_key: TrendIrrelevantContentFeedbackKey;
|
|
179
|
+
spotlight_dismiss_feedback_key: SpotlightDismissFeedbackKey;
|
|
180
|
+
trend_abusive_feedback_key: TrendAbusiveFeedbackKey;
|
|
181
|
+
guide_not_interested_feedback_key: GuideNotInterestedFeedbackKey;
|
|
182
|
+
guide_see_more_feedback_key: GuideSeeMoreFeedbackKey;
|
|
183
|
+
trend_spam_feedback_key: TrendSpamFeedbackKey;
|
|
184
|
+
trend_low_quality_feedback_key: TrendLowQualityFeedbackKey;
|
|
185
|
+
guide_see_less_feedback_key: GuideSeeLessFeedbackKey;
|
|
186
|
+
trend_not_interested_in_this_feedback_key: TrendNotInterestedInThisFeedbackKey;
|
|
187
|
+
trend_abusive_or_harmful_feedback_key: TrendAbusiveOrHarmfulFeedbackKey;
|
|
188
|
+
guide_hide_topic_key: GuideHideTopicKey;
|
|
189
|
+
trend_duplicate_feedback_key: TrendDuplicateFeedbackKey;
|
|
190
|
+
}
|
|
191
|
+
export interface TrendIrrelevantContentFeedbackKey {
|
|
192
|
+
feedbackType: string;
|
|
193
|
+
prompt: string;
|
|
194
|
+
confirmation: string;
|
|
195
|
+
feedbackUrl: string;
|
|
196
|
+
hasUndoAction: boolean;
|
|
197
|
+
confirmationDisplayType: string;
|
|
198
|
+
}
|
|
199
|
+
export interface SpotlightDismissFeedbackKey {
|
|
200
|
+
feedbackType: string;
|
|
201
|
+
prompt: string;
|
|
202
|
+
confirmation: string;
|
|
203
|
+
hasUndoAction: boolean;
|
|
204
|
+
confirmationDisplayType: string;
|
|
205
|
+
}
|
|
206
|
+
export interface TrendAbusiveFeedbackKey {
|
|
207
|
+
feedbackType: string;
|
|
208
|
+
prompt: string;
|
|
209
|
+
confirmation: string;
|
|
210
|
+
feedbackUrl: string;
|
|
211
|
+
hasUndoAction: boolean;
|
|
212
|
+
confirmationDisplayType: string;
|
|
213
|
+
}
|
|
214
|
+
export interface GuideNotInterestedFeedbackKey {
|
|
215
|
+
feedbackType: string;
|
|
216
|
+
prompt: string;
|
|
217
|
+
confirmation: string;
|
|
218
|
+
feedbackUrl: string;
|
|
219
|
+
hasUndoAction: boolean;
|
|
220
|
+
confirmationDisplayType: string;
|
|
221
|
+
icon: string;
|
|
222
|
+
}
|
|
223
|
+
export interface GuideSeeMoreFeedbackKey {
|
|
224
|
+
feedbackType: string;
|
|
225
|
+
prompt: string;
|
|
226
|
+
confirmation: string;
|
|
227
|
+
feedbackUrl: string;
|
|
228
|
+
hasUndoAction: boolean;
|
|
229
|
+
confirmationDisplayType: string;
|
|
230
|
+
}
|
|
231
|
+
export interface TrendSpamFeedbackKey {
|
|
232
|
+
feedbackType: string;
|
|
233
|
+
prompt: string;
|
|
234
|
+
confirmation: string;
|
|
235
|
+
feedbackUrl: string;
|
|
236
|
+
hasUndoAction: boolean;
|
|
237
|
+
confirmationDisplayType: string;
|
|
238
|
+
}
|
|
239
|
+
export interface TrendLowQualityFeedbackKey {
|
|
240
|
+
feedbackType: string;
|
|
241
|
+
prompt: string;
|
|
242
|
+
confirmation: string;
|
|
243
|
+
feedbackUrl: string;
|
|
244
|
+
hasUndoAction: boolean;
|
|
245
|
+
confirmationDisplayType: string;
|
|
246
|
+
}
|
|
247
|
+
export interface GuideSeeLessFeedbackKey {
|
|
248
|
+
feedbackType: string;
|
|
249
|
+
prompt: string;
|
|
250
|
+
confirmation: string;
|
|
251
|
+
feedbackUrl: string;
|
|
252
|
+
hasUndoAction: boolean;
|
|
253
|
+
confirmationDisplayType: string;
|
|
254
|
+
}
|
|
255
|
+
export interface TrendNotInterestedInThisFeedbackKey {
|
|
256
|
+
feedbackType: string;
|
|
257
|
+
prompt: string;
|
|
258
|
+
confirmation: string;
|
|
259
|
+
feedbackUrl: string;
|
|
260
|
+
hasUndoAction: boolean;
|
|
261
|
+
confirmationDisplayType: string;
|
|
262
|
+
}
|
|
263
|
+
export interface TrendAbusiveOrHarmfulFeedbackKey {
|
|
264
|
+
feedbackType: string;
|
|
265
|
+
prompt: string;
|
|
266
|
+
confirmation: string;
|
|
267
|
+
feedbackUrl: string;
|
|
268
|
+
hasUndoAction: boolean;
|
|
269
|
+
confirmationDisplayType: string;
|
|
270
|
+
}
|
|
271
|
+
export interface GuideHideTopicKey {
|
|
272
|
+
feedbackType: string;
|
|
273
|
+
prompt: string;
|
|
274
|
+
confirmation: string;
|
|
275
|
+
feedbackUrl: string;
|
|
276
|
+
hasUndoAction: boolean;
|
|
277
|
+
confirmationDisplayType: string;
|
|
278
|
+
icon: string;
|
|
279
|
+
}
|
|
280
|
+
export interface TrendDuplicateFeedbackKey {
|
|
281
|
+
feedbackType: string;
|
|
282
|
+
prompt: string;
|
|
283
|
+
confirmation: string;
|
|
284
|
+
feedbackUrl: string;
|
|
285
|
+
hasUndoAction: boolean;
|
|
286
|
+
confirmationDisplayType: string;
|
|
287
|
+
}
|
|
288
|
+
export interface PageConfiguration {
|
|
289
|
+
id: string;
|
|
290
|
+
title: string;
|
|
291
|
+
tabs: Tabs;
|
|
292
|
+
scribeConfig: ScribeConfig2;
|
|
293
|
+
}
|
|
294
|
+
export interface Tabs {
|
|
295
|
+
tabs: Tab[];
|
|
296
|
+
initialTabId: string;
|
|
297
|
+
}
|
|
298
|
+
export interface Tab {
|
|
299
|
+
id: string;
|
|
300
|
+
labelText: string;
|
|
301
|
+
urtEndpoint: UrtEndpoint;
|
|
302
|
+
scribeConfig: ScribeConfig;
|
|
303
|
+
}
|
|
304
|
+
export interface UrtEndpoint {
|
|
305
|
+
urlType: string;
|
|
306
|
+
url: string;
|
|
307
|
+
urtEndpointOptions: UrtEndpointOptions3;
|
|
308
|
+
}
|
|
309
|
+
export interface UrtEndpointOptions3 {
|
|
310
|
+
requestParams: RequestParams3;
|
|
311
|
+
cacheId?: string;
|
|
312
|
+
}
|
|
313
|
+
export interface RequestParams3 {
|
|
314
|
+
tab_category: string;
|
|
315
|
+
sc_category_id?: string;
|
|
316
|
+
}
|
|
317
|
+
export interface ScribeConfig {
|
|
318
|
+
page: string;
|
|
319
|
+
section: string;
|
|
320
|
+
}
|
|
321
|
+
export interface ScribeConfig2 {
|
|
322
|
+
page: string;
|
|
323
|
+
section: string;
|
|
324
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Trends.js","sourceRoot":"","sources":["../../../../src/types/raw/general/Trends.ts"],"names":[],"mappings":""}
|