rettiwt-api 1.1.2 → 1.1.5

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.
Files changed (271) hide show
  1. package/README.md +32 -7
  2. package/dist/endpoints/Endpoints.d.ts +14 -0
  3. package/dist/endpoints/Endpoints.js +20 -0
  4. package/dist/endpoints/Endpoints.js.map +1 -0
  5. package/dist/endpoints/Url.d.ts +5 -0
  6. package/dist/endpoints/Url.js +12 -0
  7. package/dist/endpoints/Url.js.map +1 -0
  8. package/dist/enums/Endpoints.d.ts +25 -0
  9. package/dist/enums/Endpoints.js +31 -0
  10. package/dist/enums/Endpoints.js.map +1 -0
  11. package/dist/enums/Errors.d.ts +20 -0
  12. package/dist/enums/Errors.js +28 -0
  13. package/dist/enums/Errors.js.map +1 -0
  14. package/dist/enums/HTTP.d.ts +17 -0
  15. package/dist/enums/HTTP.js +23 -0
  16. package/dist/enums/HTTP.js.map +1 -0
  17. package/dist/graphql/enums/Errors.d.ts +20 -0
  18. package/dist/graphql/enums/Errors.js +28 -0
  19. package/dist/graphql/enums/Errors.js.map +1 -0
  20. package/dist/graphql/queries/RootQuery.js +10 -3
  21. package/dist/graphql/queries/RootQuery.js.map +1 -1
  22. package/dist/graphql/resolvers/AccountResolver.d.ts +3 -3
  23. package/dist/graphql/resolvers/AccountResolver.js.map +1 -1
  24. package/dist/graphql/resolvers/ResolverBase.d.ts +14 -3
  25. package/dist/graphql/resolvers/ResolverBase.js +13 -1
  26. package/dist/graphql/resolvers/ResolverBase.js.map +1 -1
  27. package/dist/graphql/resolvers/TweetResolver.d.ts +3 -3
  28. package/dist/graphql/resolvers/TweetResolver.js +30 -18
  29. package/dist/graphql/resolvers/TweetResolver.js.map +1 -1
  30. package/dist/graphql/resolvers/UserResolver.d.ts +4 -4
  31. package/dist/graphql/resolvers/UserResolver.js +23 -19
  32. package/dist/graphql/resolvers/UserResolver.js.map +1 -1
  33. package/dist/graphql/types/Errors.d.ts +20 -0
  34. package/dist/graphql/types/Errors.js +28 -0
  35. package/dist/graphql/types/Errors.js.map +1 -0
  36. package/dist/graphql/types/TweetTypes.js +2 -2
  37. package/dist/graphql/types/TweetTypes.js.map +1 -1
  38. package/dist/index.d.ts +31 -15
  39. package/dist/index.js +32 -17
  40. package/dist/index.js.map +1 -1
  41. package/dist/middlewares/Authentication.d.ts +0 -0
  42. package/dist/middlewares/Authentication.js +2 -0
  43. package/dist/middlewares/Authentication.js.map +1 -0
  44. package/dist/models/args/TweetFilter.d.ts +59 -0
  45. package/dist/models/args/TweetFilter.js +101 -0
  46. package/dist/models/args/TweetFilter.js.map +1 -0
  47. package/dist/models/args/TweetListArgs.d.ts +21 -0
  48. package/dist/models/args/TweetListArgs.js +54 -0
  49. package/dist/models/args/TweetListArgs.js.map +1 -0
  50. package/dist/models/args/UserListArgs.d.ts +21 -0
  51. package/dist/models/args/UserListArgs.js +54 -0
  52. package/dist/models/args/UserListArgs.js.map +1 -0
  53. package/dist/models/auth/AuthCookie.d.ts +21 -0
  54. package/dist/models/auth/AuthCookie.js +33 -0
  55. package/dist/models/auth/AuthCookie.js.map +1 -0
  56. package/dist/models/data/CursoredData.d.ts +34 -0
  57. package/dist/models/data/CursoredData.js +42 -0
  58. package/dist/models/data/CursoredData.js.map +1 -0
  59. package/dist/models/data/DataValidationError.d.ts +18 -0
  60. package/dist/models/data/DataValidationError.js +21 -0
  61. package/dist/models/data/DataValidationError.js.map +1 -0
  62. package/dist/models/data/Errors.d.ts +18 -0
  63. package/dist/models/data/Errors.js +21 -0
  64. package/dist/models/data/Errors.js.map +1 -0
  65. package/dist/models/data/Service.d.ts +33 -0
  66. package/dist/models/data/Service.js +41 -0
  67. package/dist/models/data/Service.js.map +1 -0
  68. package/dist/models/data/Tweet.d.ts +53 -0
  69. package/dist/models/data/Tweet.js +104 -0
  70. package/dist/models/data/Tweet.js.map +1 -0
  71. package/dist/models/data/User.d.ts +41 -0
  72. package/dist/models/data/User.js +32 -0
  73. package/dist/models/data/User.js.map +1 -0
  74. package/dist/models/errors/DataValidationError.d.ts +20 -0
  75. package/dist/models/errors/DataValidationError.js +23 -0
  76. package/dist/models/errors/DataValidationError.js.map +1 -0
  77. package/dist/models/query/Variables.d.ts +2 -0
  78. package/dist/models/query/Variables.js +10 -0
  79. package/dist/models/query/Variables.js.map +1 -0
  80. package/dist/requests/Url.d.ts +5 -0
  81. package/dist/requests/Url.js +12 -0
  82. package/dist/requests/Url.js.map +1 -0
  83. package/dist/server.d.ts +1 -1
  84. package/dist/server.js +9 -10
  85. package/dist/server.js.map +1 -1
  86. package/dist/services/accounts/AccountService.d.ts +6 -0
  87. package/dist/services/accounts/AccountService.js +6 -0
  88. package/dist/services/accounts/AccountService.js.map +1 -1
  89. package/dist/services/auth/AccountService.d.ts +88 -0
  90. package/dist/services/auth/AccountService.js +392 -0
  91. package/dist/services/auth/AccountService.js.map +1 -0
  92. package/dist/services/auth/AuthService.d.ts +31 -0
  93. package/dist/services/auth/AuthService.js +118 -0
  94. package/dist/services/auth/AuthService.js.map +1 -0
  95. package/dist/services/auth/LoginFlows.d.ts +77 -0
  96. package/dist/services/auth/LoginFlows.js +92 -0
  97. package/dist/services/auth/LoginFlows.js.map +1 -0
  98. package/dist/services/data/TweetService.d.ts +46 -16
  99. package/dist/services/data/TweetService.js +71 -54
  100. package/dist/services/data/TweetService.js.map +1 -1
  101. package/dist/services/data/UserService.d.ts +45 -21
  102. package/dist/services/data/UserService.js +78 -75
  103. package/dist/services/data/UserService.js.map +1 -1
  104. package/dist/services/helper/Headers.d.ts +4 -4
  105. package/dist/services/helper/Headers.js.map +1 -1
  106. package/dist/services/helper/Parser.d.ts +2 -2
  107. package/dist/services/helper/Parser.js.map +1 -1
  108. package/dist/services/helper/extractors/Tweets.d.ts +6 -6
  109. package/dist/services/helper/extractors/Tweets.js +1 -1
  110. package/dist/services/helper/extractors/Tweets.js.map +1 -1
  111. package/dist/services/helper/extractors/Users.d.ts +4 -4
  112. package/dist/services/helper/extractors/Users.js +1 -1
  113. package/dist/services/helper/extractors/Users.js.map +1 -1
  114. package/dist/services/helper/payloads/LoginFlows.d.ts +77 -0
  115. package/dist/services/helper/payloads/LoginFlows.js +92 -0
  116. package/dist/services/helper/payloads/LoginFlows.js.map +1 -0
  117. package/dist/services/util/CacheService.d.ts +33 -0
  118. package/dist/services/util/CacheService.js +96 -0
  119. package/dist/services/util/CacheService.js.map +1 -0
  120. package/dist/services/util/FetcherService.d.ts +65 -0
  121. package/dist/services/util/FetcherService.js +214 -0
  122. package/dist/services/util/FetcherService.js.map +1 -0
  123. package/dist/types/Args.d.ts +38 -0
  124. package/dist/types/Args.js +5 -0
  125. package/dist/types/Args.js.map +1 -0
  126. package/dist/types/Authentication.d.ts +17 -2
  127. package/dist/types/Authentication.js +1 -0
  128. package/dist/types/Authentication.js.map +1 -1
  129. package/dist/types/Resolvers.d.ts +5 -4
  130. package/dist/types/Rettiwt.d.ts +16 -0
  131. package/dist/types/Rettiwt.js +3 -0
  132. package/dist/types/Rettiwt.js.map +1 -0
  133. package/dist/types/Service.d.ts +15 -23
  134. package/dist/types/Service.js +2 -16
  135. package/dist/types/Service.js.map +1 -1
  136. package/dist/types/Tweet.d.ts +25 -19
  137. package/dist/types/Tweet.js +0 -2
  138. package/dist/types/Tweet.js.map +1 -1
  139. package/dist/types/User.d.ts +35 -0
  140. package/dist/types/User.js +3 -0
  141. package/dist/types/User.js.map +1 -0
  142. package/dist/types/args/TweetFilter.d.ts +54 -0
  143. package/dist/types/args/TweetFilter.js +96 -0
  144. package/dist/types/args/TweetFilter.js.map +1 -0
  145. package/dist/types/args/TweetListArg.d.ts +10 -0
  146. package/dist/types/args/TweetListArg.js +42 -0
  147. package/dist/types/args/TweetListArg.js.map +1 -0
  148. package/dist/types/args/TweetListArgs.d.ts +20 -0
  149. package/dist/types/args/TweetListArgs.js +52 -0
  150. package/dist/types/args/TweetListArgs.js.map +1 -0
  151. package/dist/types/args/UserListArgs.d.ts +16 -0
  152. package/dist/types/args/UserListArgs.js +48 -0
  153. package/dist/types/args/UserListArgs.js.map +1 -0
  154. package/dist/types/data/TweetFilter.d.ts +49 -0
  155. package/dist/types/data/TweetFilter.js +63 -0
  156. package/dist/types/data/TweetFilter.js.map +1 -0
  157. package/dist/types/interfaces/Args.d.ts +38 -0
  158. package/dist/types/interfaces/Args.js +5 -0
  159. package/dist/types/interfaces/Args.js.map +1 -0
  160. package/dist/types/interfaces/Authentication.d.ts +40 -0
  161. package/dist/types/interfaces/Authentication.js +5 -0
  162. package/dist/types/interfaces/Authentication.js.map +1 -0
  163. package/dist/types/interfaces/Resolvers.d.ts +14 -0
  164. package/dist/types/interfaces/Resolvers.js +3 -0
  165. package/dist/types/interfaces/Resolvers.js.map +1 -0
  166. package/dist/types/interfaces/Rettiwt.d.ts +16 -0
  167. package/dist/types/interfaces/Rettiwt.js +3 -0
  168. package/dist/types/interfaces/Rettiwt.js.map +1 -0
  169. package/dist/types/interfaces/Service.d.ts +13 -0
  170. package/dist/types/interfaces/Service.js +3 -0
  171. package/dist/types/interfaces/Service.js.map +1 -0
  172. package/dist/types/interfaces/Services.d.ts +13 -0
  173. package/dist/types/interfaces/Services.js +3 -0
  174. package/dist/types/interfaces/Services.js.map +1 -0
  175. package/dist/types/interfaces/Tweet.d.ts +46 -0
  176. package/dist/types/interfaces/Tweet.js +3 -0
  177. package/dist/types/interfaces/Tweet.js.map +1 -0
  178. package/dist/types/interfaces/TweetFilter.d.ts +0 -0
  179. package/dist/types/interfaces/TweetFilter.js +2 -0
  180. package/dist/types/interfaces/TweetFilter.js.map +1 -0
  181. package/{src/types/data/User.ts → dist/types/interfaces/User.d.ts} +35 -51
  182. package/dist/types/interfaces/User.js +3 -0
  183. package/dist/types/interfaces/User.js.map +1 -0
  184. package/dist/types/raw/query/tweet/TweetDetails.d.ts +34 -0
  185. package/dist/types/raw/query/tweet/TweetDetails.js +5 -0
  186. package/dist/types/raw/query/tweet/TweetDetails.js.map +1 -0
  187. package/dist/types/raw/user/User.js.map +1 -1
  188. package/dist/types/services/args/TweetFilter.d.ts +50 -0
  189. package/dist/types/services/args/TweetFilter.js +76 -0
  190. package/dist/types/services/args/TweetFilter.js.map +1 -0
  191. package/docs/.nojekyll +1 -0
  192. package/docs/assets/highlight.css +64 -0
  193. package/docs/assets/main.js +58 -0
  194. package/docs/assets/search.js +1 -0
  195. package/docs/assets/style.css +1280 -0
  196. package/docs/classes/AccountService.html +303 -0
  197. package/docs/classes/AuthCookie.html +146 -0
  198. package/docs/classes/AuthService.html +147 -0
  199. package/docs/classes/CacheService.html +157 -0
  200. package/docs/classes/Cursor.html +102 -0
  201. package/docs/classes/CursoredData.html +126 -0
  202. package/docs/classes/DataValidationError.html +119 -0
  203. package/docs/classes/FetcherService.html +225 -0
  204. package/docs/classes/Tweet.html +210 -0
  205. package/docs/classes/TweetEntities.html +128 -0
  206. package/docs/classes/TweetFilter.html +204 -0
  207. package/docs/classes/TweetListArgs.html +118 -0
  208. package/docs/classes/TweetService.html +313 -0
  209. package/docs/classes/User.html +230 -0
  210. package/docs/classes/UserListArgs.html +118 -0
  211. package/docs/classes/UserService.html +315 -0
  212. package/docs/enums/HttpMethods.html +74 -0
  213. package/docs/functions/Rettiwt.html +99 -0
  214. package/docs/index.html +161 -0
  215. package/docs/interfaces/IAuthCookie.html +104 -0
  216. package/docs/interfaces/ICursor.html +77 -0
  217. package/docs/interfaces/ICursoredData.html +93 -0
  218. package/docs/interfaces/IDataContext.html +91 -0
  219. package/docs/interfaces/IListArgs.html +87 -0
  220. package/docs/interfaces/ITweet.html +176 -0
  221. package/docs/interfaces/ITweetEntities.html +104 -0
  222. package/docs/interfaces/ITweetFilter.html +158 -0
  223. package/docs/interfaces/IUser.html +194 -0
  224. package/docs/modules.html +109 -0
  225. package/package.json +5 -2
  226. package/src/enums/Errors.ts +21 -0
  227. package/src/graphql/enums/Errors.ts +21 -0
  228. package/src/graphql/queries/RootQuery.ts +11 -4
  229. package/src/graphql/resolvers/AccountResolver.ts +3 -3
  230. package/src/graphql/resolvers/ResolverBase.ts +19 -5
  231. package/src/graphql/resolvers/TweetResolver.ts +26 -17
  232. package/src/graphql/resolvers/UserResolver.ts +18 -20
  233. package/src/graphql/types/TweetTypes.ts +2 -2
  234. package/src/graphql/types/UserTypes.ts +1 -1
  235. package/src/index.ts +39 -17
  236. package/src/models/args/TweetFilter.ts +119 -0
  237. package/src/models/args/TweetListArgs.ts +47 -0
  238. package/src/models/args/UserListArgs.ts +47 -0
  239. package/src/models/auth/AuthCookie.ts +43 -0
  240. package/src/models/data/CursoredData.ts +45 -0
  241. package/src/models/data/Tweet.ts +118 -0
  242. package/src/models/data/User.ts +72 -0
  243. package/src/models/errors/DataValidationError.ts +29 -0
  244. package/src/server.ts +9 -10
  245. package/src/services/{accounts → auth}/AccountService.ts +71 -19
  246. package/src/services/auth/AuthService.ts +81 -0
  247. package/src/services/data/TweetService.ts +77 -58
  248. package/src/services/data/UserService.ts +93 -89
  249. package/src/services/helper/Headers.ts +4 -4
  250. package/src/services/helper/Parser.ts +2 -2
  251. package/src/services/helper/extractors/Tweets.ts +7 -7
  252. package/src/services/helper/extractors/Users.ts +5 -5
  253. package/src/services/{CacheService.ts → util/CacheService.ts} +4 -1
  254. package/src/services/{FetcherService.ts → util/FetcherService.ts} +19 -11
  255. package/src/types/Args.ts +49 -0
  256. package/src/types/Authentication.ts +29 -7
  257. package/src/types/Resolvers.ts +5 -4
  258. package/src/types/Rettiwt.ts +20 -0
  259. package/src/types/Service.ts +24 -0
  260. package/src/types/Tweet.ts +61 -0
  261. package/src/types/User.ts +48 -0
  262. package/tsconfig.json +2 -2
  263. package/src/services/AuthService.ts +0 -68
  264. package/src/services/helper/deserializers/Tweets.ts +0 -70
  265. package/src/services/helper/deserializers/Users.ts +0 -26
  266. package/src/types/data/Errors.ts +0 -37
  267. package/src/types/data/Service.ts +0 -55
  268. package/src/types/data/Tweet.ts +0 -123
  269. package/src/types/raw/auth/Cookie.ts +0 -16
  270. /package/src/{types → enums}/HTTP.ts +0 -0
  271. /package/src/services/{accounts → helper/payloads}/LoginFlows.ts +0 -0
@@ -1,30 +1,22 @@
1
- import { AccountService } from "../services/accounts/AccountService";
2
- import { TweetService } from "../services/data/TweetService";
3
- import { UserAccountService } from "../services/data/UserAccountService";
4
1
  /**
5
- * @summary Stores the cursor to the batch of data
2
+ * The cursor to the batch of data to be fetched.
3
+ *
4
+ * @public
6
5
  */
7
- export declare class Cursor {
6
+ export interface ICursor {
7
+ /** The cursor string. */
8
8
  value: string;
9
- /**
10
- * @summary Initializes a new cursor from the given cursor string
11
- * @param cursorStr The string representation of the cursor
12
- */
13
- constructor(cursorStr: string);
14
9
  }
15
10
  /**
16
- * @summary Stores cursored data that is returned by services
11
+ * The data that us fetched batch-wise along with a cursor.
12
+ *
13
+ * @typeParam Type - The type of data present in the list.
14
+ *
15
+ * @public
17
16
  */
18
- export interface CursoredData<Type> {
19
- list?: Type[];
20
- next?: Cursor;
21
- error?: Error;
22
- }
23
- /**
24
- * @summary Stores the data context from where data is to be fetched
25
- */
26
- export interface DataContext {
27
- users: UserAccountService;
28
- tweets: TweetService;
29
- account: AccountService;
17
+ export interface ICursoredData<Type> {
18
+ /** The list of data of the given type. */
19
+ list: Type[];
20
+ /** The cursor to the next batch of data. */
21
+ next: ICursor;
30
22
  }
@@ -1,19 +1,5 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
- exports.Cursor = void 0;
4
- /**
5
- * @summary Stores the cursor to the batch of data
6
- */
7
- var Cursor = /** @class */ (function () {
8
- // MEMBER DATA
9
- /**
10
- * @summary Initializes a new cursor from the given cursor string
11
- * @param cursorStr The string representation of the cursor
12
- */
13
- function Cursor(cursorStr) {
14
- this.value = cursorStr;
15
- }
16
- return Cursor;
17
- }());
18
- exports.Cursor = Cursor;
3
+ ;
4
+ ;
19
5
  //# sourceMappingURL=Service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Service.js","sourceRoot":"","sources":["../../src/types/Service.ts"],"names":[],"mappings":";;;AAKA;;GAEG;AACH;IAII,cAAc;IACd;;;OAGG;IACH,gBAAY,SAAiB;QACzB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IAC3B,CAAC;IACL,aAAC;AAAD,CAAC,AAZD,IAYC;AAZY,wBAAM"}
1
+ {"version":3,"file":"Service.js","sourceRoot":"","sources":["../../src/types/Service.ts"],"names":[],"mappings":";;AAQC,CAAC;AAeD,CAAC"}
@@ -1,40 +1,46 @@
1
1
  /**
2
- * @summary Stores the filter to be used for fetching tweets from TwitterAPI
2
+ * The different types parsed entities like urls, media, mentions, hashtags, etc.
3
+ *
4
+ * @public
3
5
  */
4
- export interface TweetFilter {
5
- words?: string[];
6
- hashtags?: string[];
7
- fromUsers?: string[];
8
- toUsers?: string[];
9
- mentions?: string[];
10
- startDate?: string;
11
- endDate?: string;
12
- quoted?: string;
13
- links?: boolean;
14
- }
15
- /**
16
- * @summary Stores the different types of tweet elements like urls, media, mentions, hashtags, etc
17
- */
18
- export interface TweetEntities {
6
+ export interface ITweetEntities {
7
+ /** The list of hashtags mentioned in the tweet. */
19
8
  hashtags: string[];
9
+ /** The list of urls mentioned in the tweet. */
20
10
  urls: string[];
11
+ /** The list of IDs of users mentioned in the tweet. */
21
12
  mentionedUsers: string[];
13
+ /** The list of urls to various media mentioned in the tweet. */
22
14
  media: string[];
23
15
  }
24
16
  /**
25
- * @summary Stores a single tweet
17
+ * The details of a single Tweet.
18
+ *
19
+ * @public
26
20
  */
27
- export interface Tweet {
21
+ export interface ITweet {
22
+ /** The rest id of the tweet. */
28
23
  id: string;
24
+ /** The rest id of the user who made the tweet. */
29
25
  tweetBy: string;
26
+ /** The date and time of creation of the tweet, in UTC string format. */
30
27
  createdAt: string;
31
- entities: TweetEntities;
28
+ /** Additional tweet entities like urls, mentions, etc. */
29
+ entities: ITweetEntities;
30
+ /** The rest id of the tweet which is quoted in the tweet. */
32
31
  quoted: string;
32
+ /** The full text content of the tweet. */
33
33
  fullText: string;
34
+ /** The rest id of the user to which the tweet is a reply. */
34
35
  replyTo: string;
36
+ /** The language in which the tweet is written. */
35
37
  lang: string;
38
+ /** The number of quotes of the tweet. */
36
39
  quoteCount: number;
40
+ /** The number of replies to the tweet. */
37
41
  replyCount: number;
42
+ /** The number of retweets of the tweet. */
38
43
  retweetCount: number;
44
+ /** The number of likes of the tweet. */
39
45
  likeCount: number;
40
46
  }
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- // This file contains various objects related to handling of Tweets made by a user
3
2
  exports.__esModule = true;
4
- ;
5
3
  //# sourceMappingURL=Tweet.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tweet.js","sourceRoot":"","sources":["../../src/types/Tweet.ts"],"names":[],"mappings":";AAAA,kFAAkF;;AAejF,CAAC"}
1
+ {"version":3,"file":"Tweet.js","sourceRoot":"","sources":["../../src/types/Tweet.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * The details of a single user.
3
+ *
4
+ * @public
5
+ */
6
+ export interface IUser {
7
+ /** The rest id of the user. */
8
+ id: string;
9
+ /** The username/screenname of the user. */
10
+ userName: string;
11
+ /** The full name of the user. */
12
+ fullName: string;
13
+ /** The creation date of user's account. */
14
+ createdAt: string;
15
+ /** The user's description. */
16
+ description: string;
17
+ /** Whether the account is verified or not. */
18
+ isVerified: boolean;
19
+ /** The number of tweets liked by the user. */
20
+ favouritesCount: number;
21
+ /** The number of followers of the user. */
22
+ followersCount: number;
23
+ /** The number of following of the user. */
24
+ followingsCount: number;
25
+ /** The number of tweets made by the user. */
26
+ statusesCount: number;
27
+ /** The location of user as provided by user. */
28
+ location: string;
29
+ /** The rest id of the tweet pinned in the user's profile. */
30
+ pinnedTweet: string;
31
+ /** The url of the profile banner image. */
32
+ profileBanner: string;
33
+ /** The url of the profile image. */
34
+ profileImage: string;
35
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ //# sourceMappingURL=User.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"User.js","sourceRoot":"","sources":["../../src/types/User.ts"],"names":[],"mappings":""}
@@ -0,0 +1,54 @@
1
+ import { TweetFilterInterface } from '../interfaces/Args';
2
+ export declare class TweetFilter implements TweetFilterInterface {
3
+ /** The list of words to search. */
4
+ words?: string[];
5
+ /** The list of hashtags to search.
6
+ *
7
+ * @remarks
8
+ * '#' must be excluded from the hashtag!
9
+ */
10
+ hashtags?: string[];
11
+ /** The list of usernames whose tweets are to be searched.
12
+ *
13
+ * @remarks
14
+ * '@' must be excluded from the username!
15
+ */
16
+ fromUsers?: string[];
17
+ /** The list of username to whom the tweets to be searched, are adressed.
18
+ *
19
+ * @remarks
20
+ * '@' must be excluded from the username!
21
+ */
22
+ toUsers?: string[];
23
+ /** The list of username mentioned in the tweets to search.
24
+ *
25
+ * @remarks
26
+ * '@' must be excluded from the username!
27
+ */
28
+ mentions?: string[];
29
+ /** The date starting from which tweets are to be searched.
30
+ *
31
+ * @remarks
32
+ * Must be in the format YYYY-MM-DD.
33
+ */
34
+ startDate?: string;
35
+ /** The date upto which tweets are to be searched.
36
+ *
37
+ * @remarks
38
+ * Must be in the format YYYY-MM-DD.
39
+ */
40
+ endDate?: string;
41
+ /** The id of the tweet, after which the tweets are to be searched. */
42
+ sinceId?: string;
43
+ /** The id of the tweet which is quoted in the tweets to search. */
44
+ quoted?: string;
45
+ /** Whether to fetch tweets that are links or not.
46
+ *
47
+ * @defaultValue false
48
+ */
49
+ links?: boolean;
50
+ /**
51
+ * @param filter The incoming filter in JSON format.
52
+ */
53
+ constructor(filter: TweetFilter);
54
+ }
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ exports.__esModule = true;
12
+ exports.TweetFilter = void 0;
13
+ // PACKAGE
14
+ var class_validator_1 = require("class-validator");
15
+ var Errors_1 = require("../data/Errors");
16
+ var TweetFilter = /** @class */ (function () {
17
+ /**
18
+ * @param filter The incoming filter in JSON format.
19
+ */
20
+ function TweetFilter(filter) {
21
+ this.endDate = filter.endDate;
22
+ this.fromUsers = filter.fromUsers;
23
+ this.hashtags = filter.hashtags;
24
+ this.links = filter.links;
25
+ this.mentions = filter.mentions;
26
+ this.quoted = filter.quoted;
27
+ this.sinceId = filter.sinceId;
28
+ this.startDate = filter.startDate;
29
+ this.toUsers = filter.toUsers;
30
+ this.words = filter.words;
31
+ // Validating the filter
32
+ var validationResult = (0, class_validator_1.validateSync)(this);
33
+ // If valiation error occured
34
+ if (validationResult.length) {
35
+ throw new Errors_1.DataValidationError(validationResult);
36
+ }
37
+ }
38
+ __decorate([
39
+ (0, class_validator_1.IsArray)(),
40
+ (0, class_validator_1.IsString)({ each: true }),
41
+ (0, class_validator_1.IsOptional)(),
42
+ __metadata("design:type", Array)
43
+ ], TweetFilter.prototype, "words");
44
+ __decorate([
45
+ (0, class_validator_1.IsArray)(),
46
+ (0, class_validator_1.IsString)({ each: true }),
47
+ (0, class_validator_1.IsOptional)(),
48
+ __metadata("design:type", Array)
49
+ ], TweetFilter.prototype, "hashtags");
50
+ __decorate([
51
+ (0, class_validator_1.IsArray)(),
52
+ (0, class_validator_1.IsString)({ each: true }),
53
+ (0, class_validator_1.IsOptional)(),
54
+ __metadata("design:type", Array)
55
+ ], TweetFilter.prototype, "fromUsers");
56
+ __decorate([
57
+ (0, class_validator_1.IsArray)(),
58
+ (0, class_validator_1.IsString)({ each: true }),
59
+ (0, class_validator_1.IsOptional)(),
60
+ __metadata("design:type", Array)
61
+ ], TweetFilter.prototype, "toUsers");
62
+ __decorate([
63
+ (0, class_validator_1.IsArray)(),
64
+ (0, class_validator_1.IsString)({ each: true }),
65
+ (0, class_validator_1.IsOptional)(),
66
+ __metadata("design:type", Array)
67
+ ], TweetFilter.prototype, "mentions");
68
+ __decorate([
69
+ (0, class_validator_1.IsOptional)(),
70
+ (0, class_validator_1.IsDateString)(),
71
+ __metadata("design:type", String)
72
+ ], TweetFilter.prototype, "startDate");
73
+ __decorate([
74
+ (0, class_validator_1.IsOptional)(),
75
+ (0, class_validator_1.IsDateString)(),
76
+ __metadata("design:type", String)
77
+ ], TweetFilter.prototype, "endDate");
78
+ __decorate([
79
+ (0, class_validator_1.IsNumberString)(),
80
+ (0, class_validator_1.IsOptional)(),
81
+ __metadata("design:type", String)
82
+ ], TweetFilter.prototype, "sinceId");
83
+ __decorate([
84
+ (0, class_validator_1.IsNumberString)(),
85
+ (0, class_validator_1.IsOptional)(),
86
+ __metadata("design:type", String)
87
+ ], TweetFilter.prototype, "quoted");
88
+ __decorate([
89
+ (0, class_validator_1.IsBoolean)(),
90
+ (0, class_validator_1.IsOptional)(),
91
+ __metadata("design:type", Boolean)
92
+ ], TweetFilter.prototype, "links");
93
+ return TweetFilter;
94
+ }());
95
+ exports.TweetFilter = TweetFilter;
96
+ //# sourceMappingURL=TweetFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TweetFilter.js","sourceRoot":"","sources":["../../../src/types/args/TweetFilter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,UAAU;AACV,mDAAuH;AAIvH,yCAAqD;AAErD;IAmFI;;OAEG;IACH,qBAAY,MAAmB;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE1B,wBAAwB;QACxB,IAAM,gBAAgB,GAAG,IAAA,8BAAY,EAAC,IAAI,CAAC,CAAC;QAE5C,6BAA6B;QAC7B,IAAI,gBAAgB,CAAC,MAAM,EAAE;YACzB,MAAM,IAAI,4BAAmB,CAAC,gBAAgB,CAAC,CAAC;SACnD;IACL,CAAC;IApGD;QAHC,IAAA,yBAAO,GAAE;QACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACxB,IAAA,4BAAU,GAAE;;sCACI;IAUjB;QAHC,IAAA,yBAAO,GAAE;QACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACxB,IAAA,4BAAU,GAAE;;yCACO;IAUpB;QAHC,IAAA,yBAAO,GAAE;QACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACxB,IAAA,4BAAU,GAAE;;0CACQ;IAUrB;QAHC,IAAA,yBAAO,GAAE;QACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACxB,IAAA,4BAAU,GAAE;;wCACM;IAUnB;QAHC,IAAA,yBAAO,GAAE;QACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACxB,IAAA,4BAAU,GAAE;;yCACO;IASpB;QAFC,IAAA,4BAAU,GAAE;QACZ,IAAA,8BAAY,GAAE;;0CACI;IASnB;QAFC,IAAA,4BAAU,GAAE;QACZ,IAAA,8BAAY,GAAE;;wCACE;IAKjB;QAFC,IAAA,gCAAc,GAAE;QAChB,IAAA,4BAAU,GAAE;;wCACI;IAKjB;QAFC,IAAA,gCAAc,GAAE;QAChB,IAAA,4BAAU,GAAE;;uCACG;IAQhB;QAFC,IAAA,2BAAS,GAAE;QACX,IAAA,4BAAU,GAAE;;sCACG;IAyBpB,kBAAC;CAAA,AA1GD,IA0GC;AA1GY,kCAAW"}
@@ -0,0 +1,10 @@
1
+ export declare class TweetListArgs {
2
+ /** The number of data items to fetch.
3
+ *
4
+ * @defaultValue 10
5
+ * @remarks Must be >= 10
6
+ */
7
+ count?: number;
8
+ /** The cursor to the batch of data to fetch. */
9
+ cursor?: string;
10
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ exports.__esModule = true;
12
+ exports.TweetListArgs = void 0;
13
+ // PACKAGES
14
+ var class_transformer_1 = require("class-transformer");
15
+ var class_validator_1 = require("class-validator");
16
+ var TweetListArgs = /** @class */ (function () {
17
+ function TweetListArgs() {
18
+ /** The number of data items to fetch.
19
+ *
20
+ * @defaultValue 10
21
+ * @remarks Must be >= 10
22
+ */
23
+ this.count = 10;
24
+ /** The cursor to the batch of data to fetch. */
25
+ this.cursor = '';
26
+ }
27
+ __decorate([
28
+ (0, class_transformer_1.Type)(function () { return Number; }),
29
+ (0, class_validator_1.IsInt)(),
30
+ (0, class_validator_1.IsOptional)(),
31
+ (0, class_validator_1.Min)(10),
32
+ __metadata("design:type", Number)
33
+ ], TweetListArgs.prototype, "count");
34
+ __decorate([
35
+ (0, class_validator_1.IsString)(),
36
+ (0, class_validator_1.IsOptional)(),
37
+ __metadata("design:type", String)
38
+ ], TweetListArgs.prototype, "cursor");
39
+ return TweetListArgs;
40
+ }());
41
+ exports.TweetListArgs = TweetListArgs;
42
+ //# sourceMappingURL=TweetListArg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TweetListArg.js","sourceRoot":"","sources":["../../../src/types/args/TweetListArg.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,WAAW;AACX,uDAAyC;AACzC,mDAAmE;AAEnE;IAAA;QACI;;;;WAIG;QAKH,UAAK,GAAY,EAAE,CAAC;QAEpB,gDAAgD;QAGhD,WAAM,GAAY,EAAE,CAAC;IACzB,CAAC;IANG;QAJC,IAAA,wBAAI,EAAC,cAAM,OAAA,MAAM,EAAN,CAAM,CAAC;QAClB,IAAA,uBAAK,GAAE;QACP,IAAA,4BAAU,GAAE;QACZ,IAAA,qBAAG,EAAC,EAAE,CAAC;;wCACY;IAKpB;QAFC,IAAA,0BAAQ,GAAE;QACV,IAAA,4BAAU,GAAE;;yCACQ;IACzB,oBAAC;CAAA,AAhBD,IAgBC;AAhBY,sCAAa"}
@@ -0,0 +1,20 @@
1
+ import { ListArgs } from '../interfaces/Args';
2
+ /**
3
+ * @param count The number of data items to fetch.
4
+ * @param cursor The cursor to the next batch of data.
5
+ */
6
+ export declare class TweetListArgs implements ListArgs {
7
+ /** The number of data items to fetch.
8
+ *
9
+ * @defaultValue 10
10
+ * @remarks Must be >= 10 and <= 100
11
+ */
12
+ count: number;
13
+ /** The cursor to the batch of data to fetch. */
14
+ cursor: string;
15
+ /**
16
+ * @param count The number of data items to fetch.
17
+ * @param cursor The cursor to the batch of data to fetch.
18
+ */
19
+ constructor(count?: number, cursor?: string);
20
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ exports.__esModule = true;
12
+ exports.TweetListArgs = void 0;
13
+ // PACKAGES
14
+ var class_validator_1 = require("class-validator");
15
+ var Errors_1 = require("../data/Errors");
16
+ /**
17
+ * @param count The number of data items to fetch.
18
+ * @param cursor The cursor to the next batch of data.
19
+ */
20
+ var TweetListArgs = /** @class */ (function () {
21
+ /**
22
+ * @param count The number of data items to fetch.
23
+ * @param cursor The cursor to the batch of data to fetch.
24
+ */
25
+ function TweetListArgs(count, cursor) {
26
+ if (count === void 0) { count = 10; }
27
+ if (cursor === void 0) { cursor = ''; }
28
+ this.count = count;
29
+ this.cursor = cursor;
30
+ // Validating the arguments
31
+ var validationResult = (0, class_validator_1.validateSync)(this);
32
+ // If valiation error occured
33
+ if (validationResult.length) {
34
+ throw new Errors_1.DataValidationError(validationResult);
35
+ }
36
+ }
37
+ __decorate([
38
+ (0, class_validator_1.IsInt)(),
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.Min)(10),
41
+ (0, class_validator_1.Max)(100),
42
+ __metadata("design:type", Number)
43
+ ], TweetListArgs.prototype, "count");
44
+ __decorate([
45
+ (0, class_validator_1.IsString)(),
46
+ (0, class_validator_1.IsOptional)(),
47
+ __metadata("design:type", String)
48
+ ], TweetListArgs.prototype, "cursor");
49
+ return TweetListArgs;
50
+ }());
51
+ exports.TweetListArgs = TweetListArgs;
52
+ //# sourceMappingURL=TweetListArgs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TweetListArgs.js","sourceRoot":"","sources":["../../../src/types/args/TweetListArgs.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,WAAW;AACX,mDAAsF;AAItF,yCAAqD;AAErD;;;GAGG;AACH;IAiBI;;;OAGG;IACH,uBAAY,KAAkB,EAAE,MAAmB;QAAvC,sBAAA,EAAA,UAAkB;QAAE,uBAAA,EAAA,WAAmB;QAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,2BAA2B;QAC3B,IAAM,gBAAgB,GAAG,IAAA,8BAAY,EAAC,IAAI,CAAC,CAAC;QAE5C,6BAA6B;QAC7B,IAAI,gBAAgB,CAAC,MAAM,EAAE;YACzB,MAAM,IAAI,4BAAmB,CAAC,gBAAgB,CAAC,CAAC;SACnD;IACL,CAAC;IAtBD;QAJC,IAAA,uBAAK,GAAE;QACP,IAAA,4BAAU,GAAE;QACZ,IAAA,qBAAG,EAAC,EAAE,CAAC;QACP,IAAA,qBAAG,EAAC,GAAG,CAAC;;wCACK;IAKd;QAFC,IAAA,0BAAQ,GAAE;QACV,IAAA,4BAAU,GAAE;;yCACE;IAkBnB,oBAAC;CAAA,AAjCD,IAiCC;AAjCY,sCAAa"}
@@ -0,0 +1,16 @@
1
+ import { ListArgs } from '../interfaces/Args';
2
+ export declare class UserListArgs implements ListArgs {
3
+ /** The number of data items to fetch.
4
+ *
5
+ * @defaultValue 40
6
+ * @remarks Must be >= 40 and <= 100
7
+ */
8
+ count: number;
9
+ /** The cursor to the batch of data to fetch. */
10
+ cursor: string;
11
+ /**
12
+ * @param count The number of data items to fetch.
13
+ * @param cursor The cursor to the batch of data to fetch.
14
+ */
15
+ constructor(count?: number, cursor?: string);
16
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ exports.__esModule = true;
12
+ exports.UserListArgs = void 0;
13
+ // PACKAGES
14
+ var class_validator_1 = require("class-validator");
15
+ var Errors_1 = require("../data/Errors");
16
+ var UserListArgs = /** @class */ (function () {
17
+ /**
18
+ * @param count The number of data items to fetch.
19
+ * @param cursor The cursor to the batch of data to fetch.
20
+ */
21
+ function UserListArgs(count, cursor) {
22
+ if (count === void 0) { count = 40; }
23
+ if (cursor === void 0) { cursor = ''; }
24
+ this.count = count;
25
+ this.cursor = cursor;
26
+ // Validating the arguments
27
+ var validationResult = (0, class_validator_1.validateSync)(this);
28
+ // If valiation error occured
29
+ if (validationResult.length) {
30
+ throw new Errors_1.DataValidationError(validationResult);
31
+ }
32
+ }
33
+ __decorate([
34
+ (0, class_validator_1.IsInt)(),
35
+ (0, class_validator_1.IsOptional)(),
36
+ (0, class_validator_1.Min)(40),
37
+ (0, class_validator_1.Max)(100),
38
+ __metadata("design:type", Number)
39
+ ], UserListArgs.prototype, "count");
40
+ __decorate([
41
+ (0, class_validator_1.IsString)(),
42
+ (0, class_validator_1.IsOptional)(),
43
+ __metadata("design:type", String)
44
+ ], UserListArgs.prototype, "cursor");
45
+ return UserListArgs;
46
+ }());
47
+ exports.UserListArgs = UserListArgs;
48
+ //# sourceMappingURL=UserListArgs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserListArgs.js","sourceRoot":"","sources":["../../../src/types/args/UserListArgs.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,WAAW;AACX,mDAAsF;AAItF,yCAAqD;AAErD;IAiBI;;;OAGG;IACH,sBAAY,KAAkB,EAAE,MAAmB;QAAvC,sBAAA,EAAA,UAAkB;QAAE,uBAAA,EAAA,WAAmB;QAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,2BAA2B;QAC3B,IAAM,gBAAgB,GAAG,IAAA,8BAAY,EAAC,IAAI,CAAC,CAAC;QAE5C,6BAA6B;QAC7B,IAAI,gBAAgB,CAAC,MAAM,EAAE;YACzB,MAAM,IAAI,4BAAmB,CAAC,gBAAgB,CAAC,CAAC;SACnD;IACL,CAAC;IAtBD;QAJC,IAAA,uBAAK,GAAE;QACP,IAAA,4BAAU,GAAE;QACZ,IAAA,qBAAG,EAAC,EAAE,CAAC;QACP,IAAA,qBAAG,EAAC,GAAG,CAAC;;uCACK;IAKd;QAFC,IAAA,0BAAQ,GAAE;QACV,IAAA,4BAAU,GAAE;;wCACE;IAkBnB,mBAAC;CAAA,AAjCD,IAiCC;AAjCY,oCAAY"}
@@ -0,0 +1,49 @@
1
+ export declare class TweetFilter {
2
+ /** The list of words to search. */
3
+ words?: string[];
4
+ /** The list of hashtags to search.
5
+ *
6
+ * @remarks
7
+ * '#' must be excluded from the hashtag!
8
+ */
9
+ hashtags?: string[];
10
+ /** The list of usernames whose tweets are to be searched.
11
+ *
12
+ * @remarks
13
+ * '@' must be excluded from the username!
14
+ */
15
+ fromUsers?: string[];
16
+ /** The list of username to whom the tweets to be searched, are adressed.
17
+ *
18
+ * @remarks
19
+ * '@' must be excluded from the username!
20
+ */
21
+ toUsers?: string[];
22
+ /** The list of username mentioned in the tweets to search.
23
+ *
24
+ * @remarks
25
+ * '@' must be excluded from the username!
26
+ */
27
+ mentions?: string[];
28
+ /** The date starting from which tweets are to be searched.
29
+ *
30
+ * @remarks
31
+ * Must be in the format YYYY-MM-DD.
32
+ */
33
+ startDate?: string;
34
+ /** The date upto which tweets are to be searched.
35
+ *
36
+ * @remarks
37
+ * Must be in the format YYYY-MM-DD.
38
+ */
39
+ endDate?: string;
40
+ /** The id of the tweet, after which the tweets are to be searched. */
41
+ sinceId?: string;
42
+ /** The id of the tweet which is quoted in the tweets to search. */
43
+ quoted?: string;
44
+ /** Whether to fetch tweets that are links or not.
45
+ *
46
+ * @defaultValue false
47
+ */
48
+ links?: boolean;
49
+ }