rettiwt-api 1.1.2 → 1.1.7

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 (301) 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 +21 -0
  18. package/dist/graphql/enums/Errors.js +29 -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 +13 -4
  31. package/dist/graphql/resolvers/UserResolver.js +83 -18
  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/graphql/types/UserTypes.js +1 -1
  39. package/dist/graphql/types/UserTypes.js.map +1 -1
  40. package/dist/index.d.ts +31 -15
  41. package/dist/index.js +32 -17
  42. package/dist/index.js.map +1 -1
  43. package/dist/middlewares/Authentication.d.ts +0 -0
  44. package/dist/middlewares/Authentication.js +2 -0
  45. package/dist/middlewares/Authentication.js.map +1 -0
  46. package/dist/models/args/TweetFilter.d.ts +59 -0
  47. package/dist/models/args/TweetFilter.js +101 -0
  48. package/dist/models/args/TweetFilter.js.map +1 -0
  49. package/dist/models/args/TweetListArgs.d.ts +21 -0
  50. package/dist/models/args/TweetListArgs.js +54 -0
  51. package/dist/models/args/TweetListArgs.js.map +1 -0
  52. package/dist/models/args/UserListArgs.d.ts +21 -0
  53. package/dist/models/args/UserListArgs.js +54 -0
  54. package/dist/models/args/UserListArgs.js.map +1 -0
  55. package/dist/models/auth/AuthCookie.d.ts +21 -0
  56. package/dist/models/auth/AuthCookie.js +33 -0
  57. package/dist/models/auth/AuthCookie.js.map +1 -0
  58. package/dist/models/data/CursoredData.d.ts +34 -0
  59. package/dist/models/data/CursoredData.js +42 -0
  60. package/dist/models/data/CursoredData.js.map +1 -0
  61. package/dist/models/data/DataValidationError.d.ts +18 -0
  62. package/dist/models/data/DataValidationError.js +21 -0
  63. package/dist/models/data/DataValidationError.js.map +1 -0
  64. package/dist/models/data/Errors.d.ts +18 -0
  65. package/dist/models/data/Errors.js +21 -0
  66. package/dist/models/data/Errors.js.map +1 -0
  67. package/dist/models/data/Service.d.ts +33 -0
  68. package/dist/models/data/Service.js +41 -0
  69. package/dist/models/data/Service.js.map +1 -0
  70. package/dist/models/data/Tweet.d.ts +53 -0
  71. package/dist/models/data/Tweet.js +104 -0
  72. package/dist/models/data/Tweet.js.map +1 -0
  73. package/dist/models/data/User.d.ts +41 -0
  74. package/dist/models/data/User.js +32 -0
  75. package/dist/models/data/User.js.map +1 -0
  76. package/dist/models/errors/DataValidationError.d.ts +20 -0
  77. package/dist/models/errors/DataValidationError.js +23 -0
  78. package/dist/models/errors/DataValidationError.js.map +1 -0
  79. package/dist/models/query/Variables.d.ts +2 -0
  80. package/dist/models/query/Variables.js +10 -0
  81. package/dist/models/query/Variables.js.map +1 -0
  82. package/dist/requests/Url.d.ts +5 -0
  83. package/dist/requests/Url.js +12 -0
  84. package/dist/requests/Url.js.map +1 -0
  85. package/dist/requests/payloads/Variables.d.ts +23 -0
  86. package/dist/requests/payloads/Variables.js +24 -0
  87. package/dist/requests/payloads/Variables.js.map +1 -0
  88. package/dist/server.d.ts +1 -1
  89. package/dist/server.js +9 -10
  90. package/dist/server.js.map +1 -1
  91. package/dist/services/accounts/AccountService.d.ts +6 -0
  92. package/dist/services/accounts/AccountService.js +6 -0
  93. package/dist/services/accounts/AccountService.js.map +1 -1
  94. package/dist/services/auth/AccountService.d.ts +88 -0
  95. package/dist/services/auth/AccountService.js +392 -0
  96. package/dist/services/auth/AccountService.js.map +1 -0
  97. package/dist/services/auth/AuthService.d.ts +31 -0
  98. package/dist/services/auth/AuthService.js +118 -0
  99. package/dist/services/auth/AuthService.js.map +1 -0
  100. package/dist/services/auth/LoginFlows.d.ts +77 -0
  101. package/dist/services/auth/LoginFlows.js +92 -0
  102. package/dist/services/auth/LoginFlows.js.map +1 -0
  103. package/dist/services/data/TweetService.d.ts +46 -16
  104. package/dist/services/data/TweetService.js +71 -54
  105. package/dist/services/data/TweetService.js.map +1 -1
  106. package/dist/services/data/UserService.d.ts +58 -19
  107. package/dist/services/data/UserService.js +104 -68
  108. package/dist/services/data/UserService.js.map +1 -1
  109. package/dist/services/helper/Headers.d.ts +4 -4
  110. package/dist/services/helper/Headers.js.map +1 -1
  111. package/dist/services/helper/Parser.d.ts +2 -2
  112. package/dist/services/helper/Parser.js.map +1 -1
  113. package/dist/services/helper/extractors/Tweets.d.ts +6 -6
  114. package/dist/services/helper/extractors/Tweets.js +1 -1
  115. package/dist/services/helper/extractors/Tweets.js.map +1 -1
  116. package/dist/services/helper/extractors/Users.d.ts +10 -4
  117. package/dist/services/helper/extractors/Users.js +54 -2
  118. package/dist/services/helper/extractors/Users.js.map +1 -1
  119. package/dist/services/helper/payloads/LoginFlows.d.ts +77 -0
  120. package/dist/services/helper/payloads/LoginFlows.js +92 -0
  121. package/dist/services/helper/payloads/LoginFlows.js.map +1 -0
  122. package/dist/services/helper/urls/Users.d.ts +8 -1
  123. package/dist/services/helper/urls/Users.js +12 -2
  124. package/dist/services/helper/urls/Users.js.map +1 -1
  125. package/dist/services/util/CacheService.d.ts +33 -0
  126. package/dist/services/util/CacheService.js +96 -0
  127. package/dist/services/util/CacheService.js.map +1 -0
  128. package/dist/services/util/FetcherService.d.ts +65 -0
  129. package/dist/services/util/FetcherService.js +214 -0
  130. package/dist/services/util/FetcherService.js.map +1 -0
  131. package/dist/types/Args.d.ts +38 -0
  132. package/dist/types/Args.js +5 -0
  133. package/dist/types/Args.js.map +1 -0
  134. package/dist/types/Authentication.d.ts +17 -2
  135. package/dist/types/Authentication.js +1 -0
  136. package/dist/types/Authentication.js.map +1 -1
  137. package/dist/types/Query.d.ts +80 -0
  138. package/dist/types/Query.js +3 -0
  139. package/dist/types/Query.js.map +1 -0
  140. package/dist/types/Resolvers.d.ts +5 -4
  141. package/dist/types/Rettiwt.d.ts +16 -0
  142. package/dist/types/Rettiwt.js +3 -0
  143. package/dist/types/Rettiwt.js.map +1 -0
  144. package/dist/types/Service.d.ts +15 -23
  145. package/dist/types/Service.js +2 -16
  146. package/dist/types/Service.js.map +1 -1
  147. package/dist/types/Tweet.d.ts +25 -19
  148. package/dist/types/Tweet.js +0 -2
  149. package/dist/types/Tweet.js.map +1 -1
  150. package/dist/types/User.d.ts +35 -0
  151. package/dist/types/User.js +3 -0
  152. package/dist/types/User.js.map +1 -0
  153. package/dist/types/args/TweetFilter.d.ts +54 -0
  154. package/dist/types/args/TweetFilter.js +96 -0
  155. package/dist/types/args/TweetFilter.js.map +1 -0
  156. package/dist/types/args/TweetListArg.d.ts +10 -0
  157. package/dist/types/args/TweetListArg.js +42 -0
  158. package/dist/types/args/TweetListArg.js.map +1 -0
  159. package/dist/types/args/TweetListArgs.d.ts +20 -0
  160. package/dist/types/args/TweetListArgs.js +52 -0
  161. package/dist/types/args/TweetListArgs.js.map +1 -0
  162. package/dist/types/args/UserListArgs.d.ts +16 -0
  163. package/dist/types/args/UserListArgs.js +48 -0
  164. package/dist/types/args/UserListArgs.js.map +1 -0
  165. package/dist/types/data/TweetFilter.d.ts +49 -0
  166. package/dist/types/data/TweetFilter.js +63 -0
  167. package/dist/types/data/TweetFilter.js.map +1 -0
  168. package/dist/types/interfaces/Args.d.ts +38 -0
  169. package/dist/types/interfaces/Args.js +5 -0
  170. package/dist/types/interfaces/Args.js.map +1 -0
  171. package/dist/types/interfaces/Authentication.d.ts +40 -0
  172. package/dist/types/interfaces/Authentication.js +5 -0
  173. package/dist/types/interfaces/Authentication.js.map +1 -0
  174. package/dist/types/interfaces/Resolvers.d.ts +14 -0
  175. package/dist/types/interfaces/Resolvers.js +3 -0
  176. package/dist/types/interfaces/Resolvers.js.map +1 -0
  177. package/dist/types/interfaces/Rettiwt.d.ts +16 -0
  178. package/dist/types/interfaces/Rettiwt.js +3 -0
  179. package/dist/types/interfaces/Rettiwt.js.map +1 -0
  180. package/dist/types/interfaces/Service.d.ts +13 -0
  181. package/dist/types/interfaces/Service.js +3 -0
  182. package/dist/types/interfaces/Service.js.map +1 -0
  183. package/dist/types/interfaces/Services.d.ts +13 -0
  184. package/dist/types/interfaces/Services.js +3 -0
  185. package/dist/types/interfaces/Services.js.map +1 -0
  186. package/dist/types/interfaces/Tweet.d.ts +46 -0
  187. package/dist/types/interfaces/Tweet.js +3 -0
  188. package/dist/types/interfaces/Tweet.js.map +1 -0
  189. package/dist/types/interfaces/TweetFilter.d.ts +0 -0
  190. package/dist/types/interfaces/TweetFilter.js +2 -0
  191. package/dist/types/interfaces/TweetFilter.js.map +1 -0
  192. package/{src/types/data/User.ts → dist/types/interfaces/User.d.ts} +35 -51
  193. package/dist/types/interfaces/User.js +3 -0
  194. package/dist/types/interfaces/User.js.map +1 -0
  195. package/dist/types/raw/data/tweet/Favouriters.d.ts +164 -0
  196. package/dist/types/raw/data/tweet/Favouriters.js +3 -0
  197. package/dist/types/raw/data/tweet/Favouriters.js.map +1 -0
  198. package/dist/types/raw/data/tweet/Retweeters.d.ts +171 -0
  199. package/dist/types/raw/data/tweet/Retweeters.js +3 -0
  200. package/dist/types/raw/data/tweet/Retweeters.js.map +1 -0
  201. package/dist/types/raw/data/tweet/Tweet.d.ts +746 -0
  202. package/dist/types/raw/data/tweet/Tweet.js +3 -0
  203. package/dist/types/raw/data/tweet/Tweet.js.map +1 -0
  204. package/dist/types/raw/data/tweet/Tweets.d.ts +386 -0
  205. package/dist/types/raw/data/tweet/Tweets.js +3 -0
  206. package/dist/types/raw/data/tweet/Tweets.js.map +1 -0
  207. package/dist/types/raw/data/user/Followers.d.ts +176 -0
  208. package/dist/types/raw/data/user/Followers.js +3 -0
  209. package/dist/types/raw/data/user/Followers.js.map +1 -0
  210. package/dist/types/raw/data/user/Following.d.ts +176 -0
  211. package/dist/types/raw/data/user/Following.js +3 -0
  212. package/dist/types/raw/data/user/Following.js.map +1 -0
  213. package/dist/types/raw/data/user/Likes.d.ts +1059 -0
  214. package/dist/types/raw/data/user/Likes.js +3 -0
  215. package/dist/types/raw/data/user/Likes.js.map +1 -0
  216. package/dist/types/raw/data/user/User.d.ts +117 -0
  217. package/dist/types/raw/data/user/User.js +3 -0
  218. package/dist/types/raw/data/user/User.js.map +1 -0
  219. package/dist/types/raw/query/tweet/Details.d.ts +80 -0
  220. package/dist/types/raw/query/tweet/Details.js +5 -0
  221. package/dist/types/raw/query/tweet/Details.js.map +1 -0
  222. package/dist/types/raw/query/tweet/Engagements.d.ts +29 -0
  223. package/dist/types/raw/query/tweet/Engagements.js +3 -0
  224. package/dist/types/raw/query/tweet/Engagements.js.map +1 -0
  225. package/dist/types/raw/query/tweet/Likes.d.ts +29 -0
  226. package/dist/types/raw/query/tweet/Likes.js +3 -0
  227. package/dist/types/raw/query/tweet/Likes.js.map +1 -0
  228. package/dist/types/raw/query/tweet/Retweets.d.ts +29 -0
  229. package/dist/types/raw/query/tweet/Retweets.js +3 -0
  230. package/dist/types/raw/query/tweet/Retweets.js.map +1 -0
  231. package/dist/types/raw/query/tweet/Search.d.ts +40 -0
  232. package/dist/types/raw/query/tweet/Search.js +3 -0
  233. package/dist/types/raw/query/tweet/Search.js.map +1 -0
  234. package/dist/types/raw/query/tweet/TweetDetails.d.ts +34 -0
  235. package/dist/types/raw/query/tweet/TweetDetails.js +5 -0
  236. package/dist/types/raw/query/tweet/TweetDetails.js.map +1 -0
  237. package/dist/types/raw/query/tweet/TweetLike.d.ts +29 -0
  238. package/dist/types/raw/query/tweet/TweetLike.js +3 -0
  239. package/dist/types/raw/query/tweet/TweetLike.js.map +1 -0
  240. package/dist/types/raw/query/tweet/TweetLikes.d.ts +29 -0
  241. package/dist/types/raw/query/tweet/TweetLikes.js +3 -0
  242. package/dist/types/raw/query/tweet/TweetLikes.js.map +1 -0
  243. package/dist/types/raw/query/tweet/TweetRetweets.d.ts +0 -0
  244. package/dist/types/raw/query/tweet/TweetRetweets.js +2 -0
  245. package/dist/types/raw/query/tweet/TweetRetweets.js.map +1 -0
  246. package/dist/types/raw/query/user/Details.d.ts +34 -0
  247. package/dist/types/raw/query/user/Details.js +3 -0
  248. package/dist/types/raw/query/user/Details.js.map +1 -0
  249. package/dist/types/raw/user/Tweets.d.ts +668 -1584
  250. package/dist/types/services/args/TweetFilter.d.ts +50 -0
  251. package/dist/types/services/args/TweetFilter.js +76 -0
  252. package/dist/types/services/args/TweetFilter.js.map +1 -0
  253. package/package.json +6 -3
  254. package/src/enums/Errors.ts +21 -0
  255. package/src/graphql/enums/Errors.ts +22 -0
  256. package/src/graphql/queries/RootQuery.ts +11 -4
  257. package/src/graphql/resolvers/AccountResolver.ts +3 -3
  258. package/src/graphql/resolvers/ResolverBase.ts +19 -5
  259. package/src/graphql/resolvers/TweetResolver.ts +26 -17
  260. package/src/graphql/resolvers/UserResolver.ts +75 -20
  261. package/src/graphql/types/TweetTypes.ts +2 -2
  262. package/src/graphql/types/UserTypes.ts +4 -4
  263. package/src/index.ts +39 -17
  264. package/src/models/args/TweetFilter.ts +119 -0
  265. package/src/models/args/TweetListArgs.ts +47 -0
  266. package/src/models/args/UserListArgs.ts +47 -0
  267. package/src/models/auth/AuthCookie.ts +43 -0
  268. package/src/models/data/CursoredData.ts +45 -0
  269. package/src/models/data/Tweet.ts +118 -0
  270. package/src/models/data/User.ts +72 -0
  271. package/src/models/errors/DataValidationError.ts +29 -0
  272. package/src/server.ts +9 -10
  273. package/src/services/{accounts → auth}/AccountService.ts +71 -19
  274. package/src/services/auth/AuthService.ts +81 -0
  275. package/src/services/data/TweetService.ts +81 -62
  276. package/src/services/data/UserService.ts +118 -80
  277. package/src/services/helper/Headers.ts +4 -4
  278. package/src/services/helper/Parser.ts +2 -2
  279. package/src/services/helper/extractors/Tweets.ts +7 -7
  280. package/src/services/helper/extractors/Users.ts +60 -5
  281. package/src/services/helper/urls/Users.ts +39 -23
  282. package/src/services/{CacheService.ts → util/CacheService.ts} +4 -1
  283. package/src/services/{FetcherService.ts → util/FetcherService.ts} +19 -11
  284. package/src/types/Args.ts +49 -0
  285. package/src/types/Authentication.ts +29 -7
  286. package/src/types/Resolvers.ts +5 -4
  287. package/src/types/Rettiwt.ts +20 -0
  288. package/src/types/Service.ts +24 -0
  289. package/src/types/Tweet.ts +61 -0
  290. package/src/types/User.ts +48 -0
  291. package/src/types/raw/user/Tweets.ts +1747 -0
  292. package/tsconfig.json +2 -2
  293. package/src/services/AuthService.ts +0 -68
  294. package/src/services/helper/deserializers/Tweets.ts +0 -70
  295. package/src/services/helper/deserializers/Users.ts +0 -26
  296. package/src/types/data/Errors.ts +0 -37
  297. package/src/types/data/Service.ts +0 -55
  298. package/src/types/data/Tweet.ts +0 -123
  299. package/src/types/raw/auth/Cookie.ts +0 -16
  300. /package/src/{types → enums}/HTTP.ts +0 -0
  301. /package/src/services/{accounts → helper/payloads}/LoginFlows.ts +0 -0
@@ -0,0 +1,38 @@
1
+ /**
2
+ * The filter to be used for fetching tweets from Twitter.
3
+ *
4
+ * @public
5
+ */
6
+ export interface ITweetFilter {
7
+ /** The list of words to search. */
8
+ words?: string[];
9
+ /** The list of hashtags to search. */
10
+ hashtags?: string[];
11
+ /** The list of usernames whose tweets are to be searched. */
12
+ fromUsers?: string[];
13
+ /** The list of username to whom the tweets to be searched, are adressed. */
14
+ toUsers?: string[];
15
+ /** The list of username mentioned in the tweets to search. */
16
+ mentions?: string[];
17
+ /** The date starting from which tweets are to be searched. */
18
+ startDate?: string;
19
+ /** The date upto which tweets are to be searched. */
20
+ endDate?: string;
21
+ /** The id of the tweet, after which the tweets are to be searched. */
22
+ sinceId?: string;
23
+ /** The id of the tweet which is quoted in the tweets to search. */
24
+ quoted?: string;
25
+ /** Whether to fetch tweets that are links or not. */
26
+ links?: boolean;
27
+ }
28
+ /**
29
+ * The arguments for fetching cursored list.
30
+ *
31
+ * @public
32
+ */
33
+ export interface IListArgs {
34
+ /** The number of data items to fetch. */
35
+ count?: number;
36
+ /** The cursor to the batch of data to fetch. */
37
+ cursor?: string;
38
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ ;
4
+ ;
5
+ //# sourceMappingURL=Args.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Args.js","sourceRoot":"","sources":["../../src/types/Args.ts"],"names":[],"mappings":";;AAmCC,CAAC;AAaD,CAAC"}
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @internal
5
5
  */
6
- export interface GuestCredentials {
6
+ export interface IGuestCredentials {
7
7
  /** The bearer token from twitter.com.
8
8
  *
9
9
  * @remarks This is a static bearer token from twitter.com.
@@ -20,7 +20,7 @@ export interface GuestCredentials {
20
20
  *
21
21
  * @internal
22
22
  */
23
- export interface AuthCredentials {
23
+ export interface IAuthCredentials {
24
24
  /** The bearer token from twitter.com.
25
25
  *
26
26
  * @remarks This is a static bearer token from twitter.com.
@@ -38,3 +38,18 @@ export interface AuthCredentials {
38
38
  */
39
39
  cookie: string;
40
40
  }
41
+ /**
42
+ * The cookie containing the tokens that are used to authenticate against Twitter.
43
+ *
44
+ * @public
45
+ */
46
+ export interface IAuthCookie {
47
+ /** Token used to authenticate a device. */
48
+ kdt: string;
49
+ /** Token used to authenticate a user using a Twitter ID. */
50
+ twid: string;
51
+ /** The CSRF token of the session. */
52
+ ct0: string;
53
+ /** The authentication token used while logging in to the account. */
54
+ auth_token: string;
55
+ }
@@ -2,4 +2,5 @@
2
2
  exports.__esModule = true;
3
3
  ;
4
4
  ;
5
+ ;
5
6
  //# sourceMappingURL=Authentication.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Authentication.js","sourceRoot":"","sources":["../../src/types/Authentication.ts"],"names":[],"mappings":";;AAgBC,CAAC;AAwBD,CAAC"}
1
+ {"version":3,"file":"Authentication.js","sourceRoot":"","sources":["../../src/types/Authentication.ts"],"names":[],"mappings":";;AAiBC,CAAC;AA0BD,CAAC;AAmBD,CAAC"}
@@ -0,0 +1,80 @@
1
+ export interface IVariables {
2
+ tweetId?: string;
3
+ focalTweetId?: string;
4
+ userId?: string;
5
+ screen_name?: string;
6
+ count?: number;
7
+ cursor?: string;
8
+ referrer: string;
9
+ with_rux_injections: boolean;
10
+ includePromotedContent: boolean;
11
+ withCommunity: boolean;
12
+ withQuickPromoteEligibilityTweetFields: boolean;
13
+ withBirdwatchNotes: boolean;
14
+ withSuperFollowsUserFields: boolean;
15
+ withDownvotePerspective: boolean;
16
+ withReactionsMetadata: boolean;
17
+ withReactionsPerspective: boolean;
18
+ withSuperFollowsTweetFields: boolean;
19
+ withClientEventToken: boolean;
20
+ withVoice: boolean;
21
+ withV2Timeline: boolean;
22
+ }
23
+ export interface IFeatures {
24
+ responsive_web_twitter_blue_verified_badge_is_enabled: boolean;
25
+ verified_phone_label_enabled: boolean;
26
+ responsive_web_graphql_timeline_navigation_enabled: boolean;
27
+ view_counts_public_visibility_enabled: boolean;
28
+ longform_notetweets_consumption_enabled: boolean;
29
+ tweetypie_unmention_optimization_enabled: boolean;
30
+ responsive_web_uc_gql_enabled: boolean;
31
+ vibe_api_enabled: boolean;
32
+ responsive_web_edit_tweet_api_enabled: boolean;
33
+ graphql_is_translatable_rweb_tweet_is_translatable_enabled: boolean;
34
+ view_counts_everywhere_api_enabled: boolean;
35
+ standardized_nudges_misinfo: boolean;
36
+ tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: boolean;
37
+ interactive_text_enabled: boolean;
38
+ responsive_web_text_conversations_enabled: boolean;
39
+ responsive_web_enhance_cards_enabled: boolean;
40
+ }
41
+ export interface IParams {
42
+ cards_platform: string;
43
+ count: number;
44
+ cursor: string;
45
+ ext: string;
46
+ include_blocked_by: number;
47
+ include_blocking: number;
48
+ include_can_dm: number;
49
+ include_can_media_tag: number;
50
+ include_cards: number;
51
+ include_entities: boolean;
52
+ include_ext_alt_text: boolean;
53
+ include_ext_collab_control: boolean;
54
+ include_ext_edit_control: boolean;
55
+ include_ext_has_nft_avatar: number;
56
+ include_ext_is_blue_verified: number;
57
+ include_ext_limited_action_results: boolean;
58
+ include_ext_media_availability: boolean;
59
+ include_ext_media_color: boolean;
60
+ include_ext_sensitive_media_warning: boolean;
61
+ include_ext_trusted_friends_metadata: boolean;
62
+ include_ext_verified_type: number;
63
+ include_ext_views: boolean;
64
+ include_followed_by: number;
65
+ include_mute_edge: number;
66
+ include_profile_interstitial_type: number;
67
+ include_quote_count: boolean;
68
+ include_reply_count: number;
69
+ include_user_entities: boolean;
70
+ include_want_retweets: number;
71
+ pc: number;
72
+ q: string;
73
+ query_source: string;
74
+ send_error_codes: boolean;
75
+ simple_quoted_tweet: boolean;
76
+ skip_status: number;
77
+ spelling_corrections: number;
78
+ tweet_mode: string;
79
+ tweet_search_mode: string;
80
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ //# sourceMappingURL=Query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../src/types/Query.ts"],"names":[],"mappings":""}
@@ -1,14 +1,15 @@
1
1
  /**
2
2
  * The data returned from extractor methods.
3
+ *
3
4
  * @internal
4
5
  */
5
- export interface DataExtract {
6
+ export interface IDataExtract {
6
7
  /** The required data. */
7
- required: any;
8
+ required: any[];
8
9
  /** The cursor string to the next batch of data. */
9
10
  cursor: string;
10
11
  /** Additional extracted user details. */
11
- users: any;
12
+ users: any[];
12
13
  /** Additional extracted tweet details */
13
- tweets: any;
14
+ tweets: any[];
14
15
  }
@@ -0,0 +1,16 @@
1
+ import { AccountService } from "../services/auth/AccountService";
2
+ import { TweetService } from "../services/data/TweetService";
3
+ import { UserService } from "../services/data/UserService";
4
+ /**
5
+ * The data context from where data is to be fetched.
6
+ *
7
+ * @public
8
+ */
9
+ export interface IDataContext {
10
+ /** Handles data related to users. */
11
+ users: UserService;
12
+ /** Handles data related to tweets. */
13
+ tweets: TweetService;
14
+ /** Handles account related operations. */
15
+ account: AccountService;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ //# sourceMappingURL=Rettiwt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rettiwt.js","sourceRoot":"","sources":["../../src/types/Rettiwt.ts"],"names":[],"mappings":""}
@@ -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"}