rettiwt-api 1.1.8 → 1.2.0

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 (454) hide show
  1. package/.github/workflows/build-docs.yml +22 -21
  2. package/.github/workflows/publish-to-npm.yml +29 -0
  3. package/README.md +52 -40
  4. package/dist/config/env.d.ts +5 -5
  5. package/dist/config/env.js +8 -8
  6. package/dist/enums/Errors.d.ts +20 -20
  7. package/dist/enums/Errors.js +27 -27
  8. package/dist/enums/HTTP.d.ts +17 -17
  9. package/dist/enums/HTTP.js +22 -22
  10. package/dist/graphql/enums/Errors.d.ts +21 -21
  11. package/dist/graphql/enums/Errors.js +28 -28
  12. package/dist/graphql/queries/RootQuery.d.ts +4 -4
  13. package/dist/graphql/queries/RootQuery.js +77 -77
  14. package/dist/graphql/resolvers/AccountResolver.d.ts +12 -12
  15. package/dist/graphql/resolvers/AccountResolver.js +83 -83
  16. package/dist/graphql/resolvers/ResolverBase.d.ts +16 -16
  17. package/dist/graphql/resolvers/ResolverBase.js +22 -22
  18. package/dist/graphql/resolvers/TweetResolver.d.ts +46 -46
  19. package/dist/graphql/resolvers/TweetResolver.js +311 -311
  20. package/dist/graphql/resolvers/UserResolver.d.ts +48 -48
  21. package/dist/graphql/resolvers/UserResolver.js +333 -333
  22. package/dist/graphql/resolvers/UserResolver.js.map +1 -1
  23. package/dist/graphql/types/Global.d.ts +4 -4
  24. package/dist/graphql/types/Global.js +12 -12
  25. package/dist/graphql/types/TweetTypes.d.ts +4 -4
  26. package/dist/graphql/types/TweetTypes.js +159 -159
  27. package/dist/graphql/types/UserTypes.d.ts +3 -3
  28. package/dist/graphql/types/UserTypes.js +136 -136
  29. package/dist/graphql/types/UserTypes.js.map +1 -1
  30. package/dist/index.d.ts +43 -43
  31. package/dist/index.js +70 -70
  32. package/dist/models/args/TweetFilter.d.ts +65 -59
  33. package/dist/models/args/TweetFilter.js +120 -100
  34. package/dist/models/args/TweetFilter.js.map +1 -1
  35. package/dist/models/args/TweetListArgs.d.ts +21 -21
  36. package/dist/models/args/TweetListArgs.js +53 -53
  37. package/dist/models/args/UserListArgs.d.ts +21 -21
  38. package/dist/models/args/UserListArgs.js +53 -53
  39. package/dist/models/auth/AuthCookie.d.ts +21 -21
  40. package/dist/models/auth/AuthCookie.js +32 -32
  41. package/dist/models/data/CursoredData.d.ts +34 -34
  42. package/dist/models/data/CursoredData.js +41 -41
  43. package/dist/models/data/Tweet.d.ts +53 -53
  44. package/dist/models/data/Tweet.js +103 -103
  45. package/dist/models/data/User.d.ts +41 -41
  46. package/dist/models/data/User.js +31 -31
  47. package/dist/models/errors/DataValidationError.d.ts +20 -20
  48. package/dist/models/errors/DataValidationError.js +22 -22
  49. package/dist/server.d.ts +1 -1
  50. package/dist/server.js +75 -75
  51. package/dist/services/auth/AccountService.d.ts +83 -83
  52. package/dist/services/auth/AccountService.js +411 -411
  53. package/dist/services/auth/AuthService.d.ts +31 -31
  54. package/dist/services/auth/AuthService.js +117 -117
  55. package/dist/services/data/TweetService.d.ts +60 -74
  56. package/dist/services/data/TweetService.js +251 -254
  57. package/dist/services/data/TweetService.js.map +1 -1
  58. package/dist/services/data/UserService.d.ts +71 -87
  59. package/dist/services/data/UserService.js +287 -296
  60. package/dist/services/data/UserService.js.map +1 -1
  61. package/dist/services/helper/Headers.d.ts +19 -19
  62. package/dist/services/helper/Headers.js +61 -61
  63. package/dist/services/helper/Parser.d.ts +22 -28
  64. package/dist/services/helper/Parser.js +83 -104
  65. package/dist/services/helper/Parser.js.map +1 -1
  66. package/dist/services/helper/extractors/Tweets.d.ts +32 -32
  67. package/dist/services/helper/extractors/Tweets.js +263 -263
  68. package/dist/services/helper/extractors/Users.d.ts +26 -26
  69. package/dist/services/helper/extractors/Users.js +202 -202
  70. package/dist/services/helper/payloads/LoginFlows.d.ts +77 -77
  71. package/dist/services/helper/payloads/LoginFlows.js +91 -91
  72. package/dist/services/helper/urls/Authentication.d.ts +4 -4
  73. package/dist/services/helper/urls/Authentication.js +10 -10
  74. package/dist/services/util/CacheService.d.ts +33 -33
  75. package/dist/services/util/CacheService.js +95 -95
  76. package/dist/services/util/FetcherService.d.ts +65 -65
  77. package/dist/services/util/FetcherService.js +213 -213
  78. package/dist/twitter/Url.d.ts +22 -0
  79. package/dist/twitter/Url.js +32 -0
  80. package/dist/twitter/Url.js.map +1 -0
  81. package/dist/twitter/enums/Resources.d.ts +15 -0
  82. package/dist/twitter/enums/Resources.js +21 -0
  83. package/dist/twitter/enums/Resources.js.map +1 -0
  84. package/dist/twitter/params/Query.d.ts +67 -0
  85. package/dist/twitter/params/Query.js +64 -0
  86. package/dist/twitter/params/Query.js.map +1 -0
  87. package/dist/twitter/payloads/Args.d.ts +16 -0
  88. package/dist/twitter/payloads/Args.js +16 -0
  89. package/dist/twitter/payloads/Args.js.map +1 -0
  90. package/dist/{types/raw/query/tweet/Engagements.d.ts → twitter/payloads/Features.d.ts} +28 -29
  91. package/dist/twitter/payloads/Features.js +37 -0
  92. package/dist/twitter/payloads/Features.js.map +1 -0
  93. package/dist/twitter/payloads/Variables.d.ts +41 -0
  94. package/dist/twitter/payloads/Variables.js +64 -0
  95. package/dist/twitter/payloads/Variables.js.map +1 -0
  96. package/dist/{types → twitter/types/request}/Query.d.ts +86 -80
  97. package/dist/{types/data/Tweet.js → twitter/types/request/Query.js} +4 -4
  98. package/dist/twitter/types/request/Query.js.map +1 -0
  99. package/dist/{types/raw/data → twitter/types}/tweet/Favouriters.d.ts +164 -164
  100. package/dist/twitter/types/tweet/Favouriters.js +3 -0
  101. package/dist/twitter/types/tweet/Favouriters.js.map +1 -0
  102. package/dist/{types/raw → twitter/types}/tweet/Retweeters.d.ts +171 -171
  103. package/dist/{types/Trends.js → twitter/types/tweet/Retweeters.js} +3 -3
  104. package/dist/twitter/types/tweet/Retweeters.js.map +1 -0
  105. package/dist/{types/raw/data → twitter/types}/tweet/Tweet.d.ts +746 -746
  106. package/dist/{types/data/User.js → twitter/types/tweet/Tweet.js} +3 -3
  107. package/dist/twitter/types/tweet/Tweet.js.map +1 -0
  108. package/dist/{types/raw → twitter/types}/tweet/Tweets.d.ts +386 -386
  109. package/dist/{types/raw/user/User.js → twitter/types/tweet/Tweets.js} +3 -3
  110. package/dist/twitter/types/tweet/Tweets.js.map +1 -0
  111. package/dist/{types/raw → twitter/types}/user/Followers.d.ts +176 -176
  112. package/dist/{types/interfaces/Rettiwt.js → twitter/types/user/Followers.js} +3 -3
  113. package/dist/twitter/types/user/Followers.js.map +1 -0
  114. package/dist/{types/raw → twitter/types}/user/Following.d.ts +176 -176
  115. package/dist/{types/Query.js → twitter/types/user/Following.js} +3 -3
  116. package/dist/twitter/types/user/Following.js.map +1 -0
  117. package/dist/{types/raw/data → twitter/types}/user/Likes.d.ts +1059 -1059
  118. package/dist/{types/interfaces/User.js → twitter/types/user/Likes.js} +3 -3
  119. package/dist/twitter/types/user/Likes.js.map +1 -0
  120. package/dist/{types/raw → twitter/types}/user/Tweets.d.ts +1512 -1512
  121. package/dist/twitter/types/user/Tweets.js +3 -0
  122. package/dist/twitter/types/user/Tweets.js.map +1 -0
  123. package/dist/{types/raw → twitter/types}/user/User.d.ts +117 -117
  124. package/dist/{types/raw/data → twitter/types}/user/User.js +2 -2
  125. package/dist/{types/data → twitter/types/user}/User.js.map +1 -1
  126. package/dist/types/Args.d.ts +38 -38
  127. package/dist/types/Args.js +4 -4
  128. package/dist/types/Authentication.d.ts +55 -55
  129. package/dist/types/Authentication.js +5 -5
  130. package/dist/types/Resolvers.d.ts +15 -15
  131. package/dist/types/Resolvers.js +2 -2
  132. package/dist/types/Rettiwt.d.ts +16 -16
  133. package/dist/types/Rettiwt.js +2 -2
  134. package/dist/types/Service.d.ts +22 -22
  135. package/dist/types/Service.js +4 -4
  136. package/dist/types/Tweet.d.ts +46 -46
  137. package/dist/types/Tweet.js +2 -2
  138. package/dist/types/User.d.ts +35 -35
  139. package/dist/types/User.js +2 -2
  140. package/docs/.nojekyll +1 -0
  141. package/docs/assets/highlight.css +64 -0
  142. package/docs/assets/main.js +58 -0
  143. package/docs/assets/search.js +1 -0
  144. package/docs/assets/style.css +1280 -0
  145. package/docs/classes/AccountService.html +286 -0
  146. package/docs/classes/AuthCookie.html +146 -0
  147. package/docs/classes/AuthService.html +147 -0
  148. package/docs/classes/CacheService.html +157 -0
  149. package/docs/classes/Cursor.html +102 -0
  150. package/docs/classes/CursoredData.html +126 -0
  151. package/docs/classes/DataValidationError.html +119 -0
  152. package/docs/classes/FetcherService.html +225 -0
  153. package/docs/classes/Tweet.html +210 -0
  154. package/docs/classes/TweetEntities.html +128 -0
  155. package/docs/classes/TweetFilter.html +221 -0
  156. package/docs/classes/TweetListArgs.html +118 -0
  157. package/docs/classes/TweetService.html +319 -0
  158. package/docs/classes/User.html +230 -0
  159. package/docs/classes/UserListArgs.html +118 -0
  160. package/docs/classes/UserService.html +355 -0
  161. package/docs/enums/HttpMethods.html +74 -0
  162. package/docs/functions/Rettiwt.html +99 -0
  163. package/docs/index.html +158 -0
  164. package/docs/interfaces/IAuthCookie.html +104 -0
  165. package/docs/interfaces/ICursor.html +77 -0
  166. package/docs/interfaces/ICursoredData.html +93 -0
  167. package/docs/interfaces/IDataContext.html +91 -0
  168. package/docs/interfaces/IListArgs.html +87 -0
  169. package/docs/interfaces/ITweet.html +176 -0
  170. package/docs/interfaces/ITweetEntities.html +104 -0
  171. package/docs/interfaces/ITweetFilter.html +158 -0
  172. package/docs/interfaces/IUser.html +194 -0
  173. package/docs/modules.html +109 -0
  174. package/package.json +2 -2
  175. package/src/graphql/resolvers/UserResolver.ts +4 -4
  176. package/src/graphql/types/UserTypes.ts +1 -1
  177. package/src/models/args/TweetFilter.ts +25 -4
  178. package/src/models/data/Tweet.ts +1 -1
  179. package/src/models/data/User.ts +1 -1
  180. package/src/services/data/TweetService.ts +35 -65
  181. package/src/services/data/UserService.ts +42 -48
  182. package/src/services/helper/Parser.ts +3 -24
  183. package/src/services/helper/extractors/Tweets.ts +4 -4
  184. package/src/services/helper/extractors/Users.ts +5 -5
  185. package/src/services/util/FetcherService.ts +4 -4
  186. package/src/twitter/Url.ts +37 -0
  187. package/src/twitter/enums/Resources.ts +15 -0
  188. package/src/twitter/params/Query.ts +100 -0
  189. package/src/twitter/payloads/Args.ts +21 -0
  190. package/src/twitter/payloads/Features.ts +33 -0
  191. package/src/twitter/payloads/Variables.ts +73 -0
  192. package/src/twitter/types/request/Query.ts +91 -0
  193. package/src/{types/raw → twitter/types}/user/Tweets.ts +1747 -1747
  194. package/src/types/Args.ts +1 -1
  195. package/dist/Test.d.ts +0 -0
  196. package/dist/Test.js +0 -2
  197. package/dist/Test.js.map +0 -1
  198. package/dist/endpoints/Endpoints.d.ts +0 -14
  199. package/dist/endpoints/Endpoints.js +0 -20
  200. package/dist/endpoints/Endpoints.js.map +0 -1
  201. package/dist/endpoints/Url.d.ts +0 -5
  202. package/dist/endpoints/Url.js +0 -12
  203. package/dist/endpoints/Url.js.map +0 -1
  204. package/dist/enums/Endpoints.d.ts +0 -25
  205. package/dist/enums/Endpoints.js +0 -31
  206. package/dist/enums/Endpoints.js.map +0 -1
  207. package/dist/graphql/types/Errors.d.ts +0 -20
  208. package/dist/graphql/types/Errors.js +0 -28
  209. package/dist/graphql/types/Errors.js.map +0 -1
  210. package/dist/middlewares/Authentication.d.ts +0 -0
  211. package/dist/middlewares/Authentication.js +0 -2
  212. package/dist/middlewares/Authentication.js.map +0 -1
  213. package/dist/models/data/DataValidationError.d.ts +0 -18
  214. package/dist/models/data/DataValidationError.js +0 -21
  215. package/dist/models/data/DataValidationError.js.map +0 -1
  216. package/dist/models/data/Errors.d.ts +0 -18
  217. package/dist/models/data/Errors.js +0 -21
  218. package/dist/models/data/Errors.js.map +0 -1
  219. package/dist/models/data/Service.d.ts +0 -33
  220. package/dist/models/data/Service.js +0 -41
  221. package/dist/models/data/Service.js.map +0 -1
  222. package/dist/models/graphql/Global.d.ts +0 -4
  223. package/dist/models/graphql/Global.js +0 -13
  224. package/dist/models/graphql/Global.js.map +0 -1
  225. package/dist/models/graphql/TweetTypes.d.ts +0 -6
  226. package/dist/models/graphql/TweetTypes.js +0 -156
  227. package/dist/models/graphql/TweetTypes.js.map +0 -1
  228. package/dist/models/graphql/UserTypes.d.ts +0 -3
  229. package/dist/models/graphql/UserTypes.js +0 -139
  230. package/dist/models/graphql/UserTypes.js.map +0 -1
  231. package/dist/models/query/Variables.d.ts +0 -2
  232. package/dist/models/query/Variables.js +0 -10
  233. package/dist/models/query/Variables.js.map +0 -1
  234. package/dist/queries/RootQuery.d.ts +0 -4
  235. package/dist/queries/RootQuery.js +0 -70
  236. package/dist/queries/RootQuery.js.map +0 -1
  237. package/dist/requests/Url.d.ts +0 -5
  238. package/dist/requests/Url.js +0 -12
  239. package/dist/requests/Url.js.map +0 -1
  240. package/dist/requests/payloads/Variables.d.ts +0 -23
  241. package/dist/requests/payloads/Variables.js +0 -24
  242. package/dist/requests/payloads/Variables.js.map +0 -1
  243. package/dist/resolvers/AccountResolver.d.ts +0 -12
  244. package/dist/resolvers/AccountResolver.js +0 -84
  245. package/dist/resolvers/AccountResolver.js.map +0 -1
  246. package/dist/resolvers/ResolverBase.d.ts +0 -5
  247. package/dist/resolvers/ResolverBase.js +0 -11
  248. package/dist/resolvers/ResolverBase.js.map +0 -1
  249. package/dist/resolvers/TweetResolver.d.ts +0 -54
  250. package/dist/resolvers/TweetResolver.js +0 -332
  251. package/dist/resolvers/TweetResolver.js.map +0 -1
  252. package/dist/resolvers/UserResolver.d.ts +0 -38
  253. package/dist/resolvers/UserResolver.js +0 -253
  254. package/dist/resolvers/UserResolver.js.map +0 -1
  255. package/dist/services/AuthService.d.ts +0 -22
  256. package/dist/services/AuthService.js +0 -106
  257. package/dist/services/AuthService.js.map +0 -1
  258. package/dist/services/CacheService.d.ts +0 -30
  259. package/dist/services/CacheService.js +0 -93
  260. package/dist/services/CacheService.js.map +0 -1
  261. package/dist/services/FetcherService.d.ts +0 -61
  262. package/dist/services/FetcherService.js +0 -209
  263. package/dist/services/FetcherService.js.map +0 -1
  264. package/dist/services/accounts/AccountService.d.ts +0 -65
  265. package/dist/services/accounts/AccountService.js +0 -336
  266. package/dist/services/accounts/AccountService.js.map +0 -1
  267. package/dist/services/accounts/LoginFlows.d.ts +0 -77
  268. package/dist/services/accounts/LoginFlows.js +0 -92
  269. package/dist/services/accounts/LoginFlows.js.map +0 -1
  270. package/dist/services/auth/LoginFlows.d.ts +0 -77
  271. package/dist/services/auth/LoginFlows.js +0 -92
  272. package/dist/services/auth/LoginFlows.js.map +0 -1
  273. package/dist/services/data/TrendService.d.ts +0 -17
  274. package/dist/services/data/TrendService.js +0 -116
  275. package/dist/services/data/TrendService.js.map +0 -1
  276. package/dist/services/data/UserAccountService.d.ts +0 -42
  277. package/dist/services/data/UserAccountService.js +0 -239
  278. package/dist/services/data/UserAccountService.js.map +0 -1
  279. package/dist/services/helper/Deserializers.d.ts +0 -19
  280. package/dist/services/helper/Deserializers.js +0 -115
  281. package/dist/services/helper/Deserializers.js.map +0 -1
  282. package/dist/services/helper/Extractors.d.ts +0 -104
  283. package/dist/services/helper/Extractors.js +0 -432
  284. package/dist/services/helper/Extractors.js.map +0 -1
  285. package/dist/services/helper/Urls.d.ts +0 -85
  286. package/dist/services/helper/Urls.js +0 -130
  287. package/dist/services/helper/Urls.js.map +0 -1
  288. package/dist/services/helper/deserializers/Tweets.d.ts +0 -12
  289. package/dist/services/helper/deserializers/Tweets.js +0 -92
  290. package/dist/services/helper/deserializers/Tweets.js.map +0 -1
  291. package/dist/services/helper/deserializers/Users.d.ts +0 -7
  292. package/dist/services/helper/deserializers/Users.js +0 -27
  293. package/dist/services/helper/deserializers/Users.js.map +0 -1
  294. package/dist/services/helper/extractors/Trends.d.ts +0 -3
  295. package/dist/services/helper/extractors/Trends.js +0 -51
  296. package/dist/services/helper/extractors/Trends.js.map +0 -1
  297. package/dist/services/helper/urls/Trends.d.ts +0 -7
  298. package/dist/services/helper/urls/Trends.js +0 -13
  299. package/dist/services/helper/urls/Trends.js.map +0 -1
  300. package/dist/services/helper/urls/Tweets.d.ts +0 -32
  301. package/dist/services/helper/urls/Tweets.js +0 -51
  302. package/dist/services/helper/urls/Tweets.js.map +0 -1
  303. package/dist/services/helper/urls/Users.d.ts +0 -38
  304. package/dist/services/helper/urls/Users.js +0 -76
  305. package/dist/services/helper/urls/Users.js.map +0 -1
  306. package/dist/types/HTTP.d.ts +0 -17
  307. package/dist/types/HTTP.js +0 -23
  308. package/dist/types/HTTP.js.map +0 -1
  309. package/dist/types/Query.js.map +0 -1
  310. package/dist/types/Trends.d.ts +0 -50
  311. package/dist/types/Trends.js.map +0 -1
  312. package/dist/types/UserAccount.d.ts +0 -19
  313. package/dist/types/UserAccount.js +0 -4
  314. package/dist/types/UserAccount.js.map +0 -1
  315. package/dist/types/args/TweetFilter.d.ts +0 -54
  316. package/dist/types/args/TweetFilter.js +0 -96
  317. package/dist/types/args/TweetFilter.js.map +0 -1
  318. package/dist/types/args/TweetListArg.d.ts +0 -10
  319. package/dist/types/args/TweetListArg.js +0 -42
  320. package/dist/types/args/TweetListArg.js.map +0 -1
  321. package/dist/types/args/TweetListArgs.d.ts +0 -20
  322. package/dist/types/args/TweetListArgs.js +0 -52
  323. package/dist/types/args/TweetListArgs.js.map +0 -1
  324. package/dist/types/args/UserListArgs.d.ts +0 -16
  325. package/dist/types/args/UserListArgs.js +0 -48
  326. package/dist/types/args/UserListArgs.js.map +0 -1
  327. package/dist/types/data/Errors.d.ts +0 -35
  328. package/dist/types/data/Errors.js +0 -45
  329. package/dist/types/data/Errors.js.map +0 -1
  330. package/dist/types/data/Service.d.ts +0 -43
  331. package/dist/types/data/Service.js +0 -22
  332. package/dist/types/data/Service.js.map +0 -1
  333. package/dist/types/data/Tweet.d.ts +0 -98
  334. package/dist/types/data/Tweet.js.map +0 -1
  335. package/dist/types/data/TweetFilter.d.ts +0 -49
  336. package/dist/types/data/TweetFilter.js +0 -63
  337. package/dist/types/data/TweetFilter.js.map +0 -1
  338. package/dist/types/data/User.d.ts +0 -38
  339. package/dist/types/graphql/Errors.d.ts +0 -15
  340. package/dist/types/graphql/Errors.js +0 -23
  341. package/dist/types/graphql/Errors.js.map +0 -1
  342. package/dist/types/interfaces/Args.d.ts +0 -38
  343. package/dist/types/interfaces/Args.js +0 -5
  344. package/dist/types/interfaces/Args.js.map +0 -1
  345. package/dist/types/interfaces/Authentication.d.ts +0 -40
  346. package/dist/types/interfaces/Authentication.js +0 -5
  347. package/dist/types/interfaces/Authentication.js.map +0 -1
  348. package/dist/types/interfaces/Resolvers.d.ts +0 -14
  349. package/dist/types/interfaces/Resolvers.js +0 -3
  350. package/dist/types/interfaces/Resolvers.js.map +0 -1
  351. package/dist/types/interfaces/Rettiwt.d.ts +0 -16
  352. package/dist/types/interfaces/Rettiwt.js.map +0 -1
  353. package/dist/types/interfaces/Service.d.ts +0 -13
  354. package/dist/types/interfaces/Service.js +0 -3
  355. package/dist/types/interfaces/Service.js.map +0 -1
  356. package/dist/types/interfaces/Services.d.ts +0 -13
  357. package/dist/types/interfaces/Services.js +0 -3
  358. package/dist/types/interfaces/Services.js.map +0 -1
  359. package/dist/types/interfaces/Tweet.d.ts +0 -46
  360. package/dist/types/interfaces/Tweet.js +0 -3
  361. package/dist/types/interfaces/Tweet.js.map +0 -1
  362. package/dist/types/interfaces/TweetFilter.d.ts +0 -0
  363. package/dist/types/interfaces/TweetFilter.js +0 -2
  364. package/dist/types/interfaces/TweetFilter.js.map +0 -1
  365. package/dist/types/interfaces/User.d.ts +0 -35
  366. package/dist/types/interfaces/User.js.map +0 -1
  367. package/dist/types/raw/auth/Cookie.d.ts +0 -16
  368. package/dist/types/raw/auth/Cookie.js +0 -3
  369. package/dist/types/raw/auth/Cookie.js.map +0 -1
  370. package/dist/types/raw/data/tweet/Favouriters.js +0 -3
  371. package/dist/types/raw/data/tweet/Favouriters.js.map +0 -1
  372. package/dist/types/raw/data/tweet/Retweeters.d.ts +0 -171
  373. package/dist/types/raw/data/tweet/Retweeters.js +0 -3
  374. package/dist/types/raw/data/tweet/Retweeters.js.map +0 -1
  375. package/dist/types/raw/data/tweet/Tweet.js +0 -3
  376. package/dist/types/raw/data/tweet/Tweet.js.map +0 -1
  377. package/dist/types/raw/data/tweet/Tweets.d.ts +0 -386
  378. package/dist/types/raw/data/tweet/Tweets.js +0 -3
  379. package/dist/types/raw/data/tweet/Tweets.js.map +0 -1
  380. package/dist/types/raw/data/user/Followers.d.ts +0 -176
  381. package/dist/types/raw/data/user/Followers.js +0 -3
  382. package/dist/types/raw/data/user/Followers.js.map +0 -1
  383. package/dist/types/raw/data/user/Following.d.ts +0 -176
  384. package/dist/types/raw/data/user/Following.js +0 -3
  385. package/dist/types/raw/data/user/Following.js.map +0 -1
  386. package/dist/types/raw/data/user/Likes.js +0 -3
  387. package/dist/types/raw/data/user/Likes.js.map +0 -1
  388. package/dist/types/raw/data/user/User.d.ts +0 -117
  389. package/dist/types/raw/data/user/User.js.map +0 -1
  390. package/dist/types/raw/general/Trends.d.ts +0 -324
  391. package/dist/types/raw/general/Trends.js +0 -3
  392. package/dist/types/raw/general/Trends.js.map +0 -1
  393. package/dist/types/raw/query/tweet/Details.d.ts +0 -80
  394. package/dist/types/raw/query/tweet/Details.js +0 -5
  395. package/dist/types/raw/query/tweet/Details.js.map +0 -1
  396. package/dist/types/raw/query/tweet/Engagements.js +0 -3
  397. package/dist/types/raw/query/tweet/Engagements.js.map +0 -1
  398. package/dist/types/raw/query/tweet/Likes.d.ts +0 -29
  399. package/dist/types/raw/query/tweet/Likes.js +0 -3
  400. package/dist/types/raw/query/tweet/Likes.js.map +0 -1
  401. package/dist/types/raw/query/tweet/Retweets.d.ts +0 -29
  402. package/dist/types/raw/query/tweet/Retweets.js +0 -3
  403. package/dist/types/raw/query/tweet/Retweets.js.map +0 -1
  404. package/dist/types/raw/query/tweet/Search.d.ts +0 -40
  405. package/dist/types/raw/query/tweet/Search.js +0 -3
  406. package/dist/types/raw/query/tweet/Search.js.map +0 -1
  407. package/dist/types/raw/query/tweet/TweetDetails.d.ts +0 -34
  408. package/dist/types/raw/query/tweet/TweetDetails.js +0 -5
  409. package/dist/types/raw/query/tweet/TweetDetails.js.map +0 -1
  410. package/dist/types/raw/query/tweet/TweetLike.d.ts +0 -29
  411. package/dist/types/raw/query/tweet/TweetLike.js +0 -3
  412. package/dist/types/raw/query/tweet/TweetLike.js.map +0 -1
  413. package/dist/types/raw/query/tweet/TweetLikes.d.ts +0 -29
  414. package/dist/types/raw/query/tweet/TweetLikes.js +0 -3
  415. package/dist/types/raw/query/tweet/TweetLikes.js.map +0 -1
  416. package/dist/types/raw/query/tweet/TweetRetweets.d.ts +0 -0
  417. package/dist/types/raw/query/tweet/TweetRetweets.js +0 -2
  418. package/dist/types/raw/query/tweet/TweetRetweets.js.map +0 -1
  419. package/dist/types/raw/query/user/Details.d.ts +0 -34
  420. package/dist/types/raw/query/user/Details.js +0 -3
  421. package/dist/types/raw/query/user/Details.js.map +0 -1
  422. package/dist/types/raw/tweet/Favouriters.d.ts +0 -164
  423. package/dist/types/raw/tweet/Favouriters.js +0 -3
  424. package/dist/types/raw/tweet/Favouriters.js.map +0 -1
  425. package/dist/types/raw/tweet/Retweeters.js +0 -3
  426. package/dist/types/raw/tweet/Retweeters.js.map +0 -1
  427. package/dist/types/raw/tweet/Tweet.d.ts +0 -746
  428. package/dist/types/raw/tweet/Tweet.js +0 -3
  429. package/dist/types/raw/tweet/Tweet.js.map +0 -1
  430. package/dist/types/raw/tweet/Tweets.js +0 -3
  431. package/dist/types/raw/tweet/Tweets.js.map +0 -1
  432. package/dist/types/raw/user/Followers.js +0 -3
  433. package/dist/types/raw/user/Followers.js.map +0 -1
  434. package/dist/types/raw/user/Following.js +0 -3
  435. package/dist/types/raw/user/Following.js.map +0 -1
  436. package/dist/types/raw/user/Likes.d.ts +0 -1059
  437. package/dist/types/raw/user/Likes.js +0 -3
  438. package/dist/types/raw/user/Likes.js.map +0 -1
  439. package/dist/types/raw/user/Tweets.js +0 -3
  440. package/dist/types/raw/user/Tweets.js.map +0 -1
  441. package/dist/types/raw/user/User.js.map +0 -1
  442. package/dist/types/services/args/TweetFilter.d.ts +0 -50
  443. package/dist/types/services/args/TweetFilter.js +0 -76
  444. package/dist/types/services/args/TweetFilter.js.map +0 -1
  445. package/src/services/helper/urls/Tweets.ts +0 -46
  446. package/src/services/helper/urls/Users.ts +0 -78
  447. /package/src/{types/raw → twitter/types}/tweet/Favouriters.ts +0 -0
  448. /package/src/{types/raw → twitter/types}/tweet/Retweeters.ts +0 -0
  449. /package/src/{types/raw → twitter/types}/tweet/Tweet.ts +0 -0
  450. /package/src/{types/raw → twitter/types}/tweet/Tweets.ts +0 -0
  451. /package/src/{types/raw → twitter/types}/user/Followers.ts +0 -0
  452. /package/src/{types/raw → twitter/types}/user/Following.ts +0 -0
  453. /package/src/{types/raw → twitter/types}/user/Likes.ts +0 -0
  454. /package/src/{types/raw → twitter/types}/user/User.ts +0 -0
@@ -1,332 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (_) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- var __importDefault = (this && this.__importDefault) || function (mod) {
54
- return (mod && mod.__esModule) ? mod : { "default": mod };
55
- };
56
- exports.__esModule = true;
57
- // RESOLVERS
58
- var ResolverBase_1 = __importDefault(require("./ResolverBase"));
59
- var Service_1 = require("../types/Service");
60
- // HELPERS
61
- var Errors_1 = require("../types/graphql/Errors");
62
- var TweetResolver = /** @class */ (function (_super) {
63
- __extends(TweetResolver, _super);
64
- // MEMBER METHODS
65
- function TweetResolver(context) {
66
- return _super.call(this, context) || this;
67
- }
68
- /**
69
- * @returns The details of the tweet with the given id
70
- * @param id The id of the tweet which is to be fetched
71
- */
72
- TweetResolver.prototype.resolveTweet = function (id) {
73
- return __awaiter(this, void 0, void 0, function () {
74
- var res;
75
- return __generator(this, function (_a) {
76
- switch (_a.label) {
77
- case 0: return [4 /*yield*/, this.context.tweets.getTweetById(id)];
78
- case 1:
79
- res = _a.sent();
80
- // Evaluating response
81
- return [2 /*return*/, res];
82
- }
83
- });
84
- });
85
- };
86
- /**
87
- * @returns The list of tweets matching the given filter
88
- * @param filter The filter to be used for fetching matching tweets
89
- * @param count The number of tweets to fetch
90
- * @param cursor The cursor to the batch of tweets to fetch
91
- */
92
- TweetResolver.prototype.resolveTweets = function (filter, count, cursor) {
93
- var _a;
94
- return __awaiter(this, void 0, void 0, function () {
95
- var tweets, next, total, batchSize, res;
96
- return __generator(this, function (_b) {
97
- switch (_b.label) {
98
- case 0:
99
- tweets = [];
100
- next = new Service_1.Cursor(cursor);
101
- total = 0;
102
- batchSize = 20;
103
- // Checking if the given tweet filter is valid or not
104
- if (!(filter.fromUsers || filter.toUsers || filter.words || filter.hashtags || filter.mentions || filter.quoted)) {
105
- throw new Error(Errors_1.ValidationErrors.InvalidTweetFilter);
106
- }
107
- // If required count less than batch size, setting batch size to required count
108
- batchSize = (count < batchSize) ? count : batchSize;
109
- _b.label = 1;
110
- case 1:
111
- if (!(total < count)) return [3 /*break*/, 3];
112
- // If this is the last batch, change batch size to number of remaining tweets
113
- batchSize = ((count - total) < batchSize) ? (count - total) : batchSize;
114
- return [4 /*yield*/, this.context.tweets.getTweets(filter, count, next.value)];
115
- case 2:
116
- res = _b.sent();
117
- // If data is available
118
- if ((_a = res.list) === null || _a === void 0 ? void 0 : _a.length) {
119
- // Adding fetched tweets to list of tweets
120
- tweets = tweets.concat(res.list);
121
- // Updating total tweets fetched
122
- total = tweets.length;
123
- // Getting cursor to next batch
124
- next = res.next;
125
- }
126
- // If no more data is available
127
- else {
128
- return [3 /*break*/, 3];
129
- }
130
- return [3 /*break*/, 1];
131
- case 3:
132
- // Adding the cursor to the end of list of data
133
- tweets.push(next);
134
- return [2 /*return*/, tweets];
135
- }
136
- });
137
- });
138
- };
139
- /**
140
- * @returns The list of quotes of the given tweet
141
- * @param id The id of the tweet whose quotes are to be fetched
142
- * @param count The number of quotes to be fetched
143
- * @param all Whether to fetch all quotes or not
144
- * @param cursor The cursor to the batch of tweet quotes to fetch
145
- * @param quoteCount The total number of quotes of the given tweet
146
- */
147
- TweetResolver.prototype.resolveTweetQuotes = function (id, count, all, cursor, quoteCount) {
148
- return __awaiter(this, void 0, void 0, function () {
149
- var quotes, filter;
150
- return __generator(this, function (_a) {
151
- switch (_a.label) {
152
- case 0:
153
- quotes = [];
154
- // If all tweets are to be fetched
155
- count = (all || count > quoteCount) ? quoteCount : count;
156
- filter = {
157
- words: [],
158
- hashtags: [],
159
- fromUsers: [],
160
- toUsers: [],
161
- mentions: [],
162
- startDate: '',
163
- endDate: '',
164
- quoted: id
165
- };
166
- return [4 /*yield*/, this.resolveTweets(filter, count, cursor)];
167
- case 1:
168
- // Fetching the quotes using resolveTweets method
169
- quotes = _a.sent();
170
- return [2 /*return*/, quotes];
171
- }
172
- });
173
- });
174
- };
175
- /**
176
- * @returns The list of likers of the given tweet
177
- * @param id The id of the tweet whose likers are to be fetched
178
- * @param count The total number of likers to fetch
179
- * @param all Whether to fetch all the likers of the tweet
180
- * @param cursor The cursor to the batch of likers to fetch
181
- * @param likesCount The total number of like of the tweet
182
- */
183
- TweetResolver.prototype.resolveTweetLikers = function (id, count, all, cursor, likesCount) {
184
- var _a;
185
- return __awaiter(this, void 0, void 0, function () {
186
- var likers, next, total, batchSize, res;
187
- return __generator(this, function (_b) {
188
- switch (_b.label) {
189
- case 0:
190
- likers = [];
191
- next = new Service_1.Cursor(cursor);
192
- total = 0;
193
- batchSize = 20;
194
- // If all likers are to be fetched
195
- count = (all || count > likesCount) ? likesCount : count;
196
- // If required count less than batch size, setting batch size to required count
197
- batchSize = (count < batchSize) ? count : batchSize;
198
- _b.label = 1;
199
- case 1:
200
- if (!(total < count)) return [3 /*break*/, 3];
201
- // If this is the last batch, change batch size to number of remaining likers
202
- batchSize = ((count - total) < batchSize) ? (count - total) : batchSize;
203
- return [4 /*yield*/, this.context.tweets.getTweetLikers(id, count, next.value)];
204
- case 2:
205
- res = _b.sent();
206
- // If data is available
207
- if ((_a = res.list) === null || _a === void 0 ? void 0 : _a.length) {
208
- // Adding fetched likers to list of likers
209
- likers = likers.concat(res.list);
210
- // Updating total likers fetched
211
- total = likers.length;
212
- // Getting cursor to next batch
213
- next = res.next;
214
- }
215
- // If no more data is available
216
- else {
217
- return [3 /*break*/, 3];
218
- }
219
- return [3 /*break*/, 1];
220
- case 3:
221
- // Adding the cursor to the end of list of data
222
- likers.push(next);
223
- return [2 /*return*/, likers];
224
- }
225
- });
226
- });
227
- };
228
- /**
229
- * @returns The list of retweeters of the given tweet
230
- * @param id The id of the tweet whose retweeters are to be fetched
231
- * @param count The total number of retweeters to fetch
232
- * @param all Whether to fetch all retweeters
233
- * @param cursor The cursor to the batch of retweeters to fetch
234
- * @param retweetsCount The total number of retweets of the
235
- */
236
- TweetResolver.prototype.resolveTweetRetweeters = function (id, count, all, cursor, retweetsCount) {
237
- var _a;
238
- return __awaiter(this, void 0, void 0, function () {
239
- var retweeters, next, total, batchSize, res;
240
- return __generator(this, function (_b) {
241
- switch (_b.label) {
242
- case 0:
243
- retweeters = [];
244
- next = new Service_1.Cursor(cursor);
245
- total = 0;
246
- batchSize = 20;
247
- // If all retweeters are to be fetched
248
- count = (all || count > retweetsCount) ? retweetsCount : count;
249
- // If required count less than batch size, setting batch size to required count
250
- batchSize = (count < batchSize) ? count : batchSize;
251
- _b.label = 1;
252
- case 1:
253
- if (!(total < count)) return [3 /*break*/, 3];
254
- // If this is the last batch, change batch size to number of remaining retweeters
255
- batchSize = ((count - total) < batchSize) ? (count - total) : batchSize;
256
- return [4 /*yield*/, this.context.tweets.getTweetRetweeters(id, count, next.value)];
257
- case 2:
258
- res = _b.sent();
259
- // If data is available
260
- if ((_a = res.list) === null || _a === void 0 ? void 0 : _a.length) {
261
- // Adding fetched retweeters to list of retweeters
262
- retweeters = retweeters.concat(res.list);
263
- // Updating total retweeters fetched
264
- total = retweeters.length;
265
- // Getting cursor to next batch
266
- next = res.next;
267
- }
268
- // If no more data is available
269
- else {
270
- return [3 /*break*/, 3];
271
- }
272
- return [3 /*break*/, 1];
273
- case 3:
274
- // Adding the cursor to the end of list of data
275
- retweeters.push(next);
276
- return [2 /*return*/, retweeters];
277
- }
278
- });
279
- });
280
- };
281
- /**
282
- * @returns The list of replies of the given tweet
283
- * @param id The id of the tweet whose replies are to be fetched
284
- * @param count The total number of replies to fetch
285
- * @param all Whether to fetch list of all replies
286
- * @param cursor The cursor to the batch of replies to fetch
287
- * @param repliesCount The total number of replies to the target tweet
288
- */
289
- TweetResolver.prototype.resolveTweetReplies = function (id, count, all, cursor, repliesCount) {
290
- var _a;
291
- return __awaiter(this, void 0, void 0, function () {
292
- var replies, next, total, res;
293
- return __generator(this, function (_b) {
294
- switch (_b.label) {
295
- case 0:
296
- replies = [];
297
- next = new Service_1.Cursor(cursor);
298
- total = 0;
299
- // If all replies are to be fetched
300
- count = (all || count > repliesCount) ? repliesCount : count;
301
- _b.label = 1;
302
- case 1:
303
- if (!(total < count)) return [3 /*break*/, 3];
304
- return [4 /*yield*/, this.context.tweets.getTweetReplies(id, next.value)];
305
- case 2:
306
- res = _b.sent();
307
- // If data is available
308
- if ((_a = res.list) === null || _a === void 0 ? void 0 : _a.length) {
309
- // Adding fetched replies to list of replies
310
- replies = replies.concat(res.list);
311
- // Updating total replies fetched
312
- total = replies.length;
313
- // Getting cursor to next batch
314
- next = res.next;
315
- }
316
- // If no more data is available
317
- else {
318
- return [3 /*break*/, 3];
319
- }
320
- return [3 /*break*/, 1];
321
- case 3:
322
- // Adding the cursor to the end of list of data
323
- replies.push(next);
324
- return [2 /*return*/, replies];
325
- }
326
- });
327
- });
328
- };
329
- return TweetResolver;
330
- }(ResolverBase_1["default"]));
331
- exports["default"] = TweetResolver;
332
- //# sourceMappingURL=TweetResolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TweetResolver.js","sourceRoot":"","sources":["../../src/resolvers/TweetResolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAY;AACZ,gEAA0C;AAI1C,4CAAuD;AAEvD,UAAU;AACV,kDAA2D;AAE3D;IAA2C,iCAAY;IACnD,iBAAiB;IACjB,uBAAY,OAAoB;eAC5B,kBAAM,OAAO,CAAC;IAClB,CAAC;IAED;;;OAGG;IACG,oCAAY,GAAlB,UAAmB,EAAU;;;;;4BAEf,qBAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,EAAA;;wBAAhD,GAAG,GAAG,SAA0C;wBAEpD,sBAAsB;wBACtB,sBAAO,GAAG,EAAC;;;;KACd;IAED;;;;;OAKG;IACG,qCAAa,GAAnB,UAAoB,MAAmB,EAAE,KAAa,EAAE,MAAc;;;;;;;wBAC9D,MAAM,GAAU,EAAE,CAAC;wBACnB,IAAI,GAAW,IAAI,gBAAM,CAAC,MAAM,CAAC,CAAC;wBAClC,KAAK,GAAW,CAAC,CAAC;wBAClB,SAAS,GAAW,EAAE,CAAC;wBAE3B,qDAAqD;wBACrD,IAAI,CAAC,CAAC,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,IAAI,MAAM,C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C5C,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;4BAEnC,iCAAiC;4BACjC,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;4BAEvB,+BAA+B;4BAC/B,IAAI,GAAG,GAAG,CAAC,IAAc,CAAC;yBAC7B;wBACD,+BAA+B;6BAC1B;4BACD,wBAAM;yBACT;;;wBAGL,+CAA+C;wBAC/C,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;wBAEnB,sBAAO,OAAO,EAAC;;;;KAClB;IACL,oBAAC;AAAD,CAAC,AAtPD,CAA2C,yBAAY,GAsPtD"}
@@ -1,38 +0,0 @@
1
- import ResolverBase from './ResolverBase';
2
- import { DataContext } from '../types/Service';
3
- export default class UserResolver extends ResolverBase {
4
- constructor(context: DataContext);
5
- /**
6
- * @returns The details of the target twitter user
7
- * @param userName The user name of the target twitter user
8
- * @param id The id of the target twitter user
9
- */
10
- resolveUserDetails(userName: string, id: string): Promise<any>;
11
- /**
12
- * @returns The list of tweets liked by the given user
13
- * @param id The id of the user whose likes are to be fetched
14
- * @param count The number of likes to fetch
15
- * @param all Whether to fetch list of all tweets liked by user
16
- * @param cursor The cursor to the batch of likes to fetch
17
- * @param favouritesCount The total number of tweets liked by target user
18
- */
19
- resolveUserLikes(id: string, count: number, all: boolean, cursor: string, favouritesCount: number): Promise<any>;
20
- /**
21
- * @returns The list of followers of the given twiiter user
22
- * @param id The id of the user whose followers are to be fetched
23
- * @param count The number of followers to fetch
24
- * @param all Whether to fetch all followers list
25
- * @param cursor The cursor to the batch of followers to fetch
26
- * @param followerCount The total number of followers of the target user
27
- */
28
- resolveUserFollowers(id: string, count: number, all: boolean, cursor: string, followersCount: number): Promise<any>;
29
- /**
30
- * @returns The list of following of the given twiiter user
31
- * @param id The id of the user whose followings are to be fetched
32
- * @param count The number of following to fetch
33
- * @param all Whether to fetch list of all followings
34
- * @param cursor The cursor to the batch of followings to fetch
35
- * @param followingsCount The total number of followings of the target user
36
- */
37
- resolveUserFollowing(id: string, count: number, all: boolean, cursor: string, followingsCount: number): Promise<any>;
38
- }
@@ -1,253 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (_) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- var __importDefault = (this && this.__importDefault) || function (mod) {
54
- return (mod && mod.__esModule) ? mod : { "default": mod };
55
- };
56
- exports.__esModule = true;
57
- // RESOLVERS
58
- var ResolverBase_1 = __importDefault(require("./ResolverBase"));
59
- // TYPES
60
- var Service_1 = require("../types/Service");
61
- // HELPERS
62
- var Errors_1 = require("../types/graphql/Errors");
63
- var UserResolver = /** @class */ (function (_super) {
64
- __extends(UserResolver, _super);
65
- // MEMBER METHODS
66
- function UserResolver(context) {
67
- return _super.call(this, context) || this;
68
- }
69
- /**
70
- * @returns The details of the target twitter user
71
- * @param userName The user name of the target twitter user
72
- * @param id The id of the target twitter user
73
- */
74
- UserResolver.prototype.resolveUserDetails = function (userName, id) {
75
- return __awaiter(this, void 0, void 0, function () {
76
- return __generator(this, function (_a) {
77
- switch (_a.label) {
78
- case 0:
79
- if (!userName) return [3 /*break*/, 2];
80
- return [4 /*yield*/, this.context.users.getUserAccountDetails(userName)];
81
- case 1: return [2 /*return*/, _a.sent()];
82
- case 2:
83
- if (!id) return [3 /*break*/, 4];
84
- return [4 /*yield*/, this.context.users.getUserAccountDetailsById(id)];
85
- case 3: return [2 /*return*/, _a.sent()];
86
- case 4: throw new Error(Errors_1.ValidationErrors.NoUserIdentification);
87
- }
88
- });
89
- });
90
- };
91
- /**
92
- * @returns The list of tweets liked by the given user
93
- * @param id The id of the user whose likes are to be fetched
94
- * @param count The number of likes to fetch
95
- * @param all Whether to fetch list of all tweets liked by user
96
- * @param cursor The cursor to the batch of likes to fetch
97
- * @param favouritesCount The total number of tweets liked by target user
98
- */
99
- UserResolver.prototype.resolveUserLikes = function (id, count, all, cursor, favouritesCount) {
100
- var _a;
101
- return __awaiter(this, void 0, void 0, function () {
102
- var likes, next, total, batchSize, res;
103
- return __generator(this, function (_b) {
104
- switch (_b.label) {
105
- case 0:
106
- likes = [];
107
- next = new Service_1.Cursor(cursor);
108
- total = 0;
109
- batchSize = 20;
110
- // If all liked tweets are to be fetched
111
- count = all ? favouritesCount : count;
112
- // If required count less than batch size, setting batch size to required count
113
- batchSize = (count < batchSize) ? count : batchSize;
114
- _b.label = 1;
115
- case 1:
116
- if (!(total < count)) return [3 /*break*/, 3];
117
- // If this is the last batch, change batch size to number of remaining tweets
118
- batchSize = ((count - total) < batchSize) ? (count - total) : batchSize;
119
- return [4 /*yield*/, this.context.users.getUserLikes(id, count, next.value)];
120
- case 2:
121
- res = _b.sent();
122
- // If data is available
123
- if ((_a = res.list) === null || _a === void 0 ? void 0 : _a.length) {
124
- // Adding fetched tweets to list of tweets
125
- likes = likes.concat(res.list);
126
- // Updating total tweets fetched
127
- total = likes.length;
128
- // Getting cursor to next batch
129
- next = res.next;
130
- }
131
- // If no more data is available
132
- else {
133
- return [3 /*break*/, 3];
134
- }
135
- return [3 /*break*/, 1];
136
- case 3:
137
- // Adding the cursor to the end of list of data
138
- likes.push(next);
139
- return [2 /*return*/, likes];
140
- }
141
- });
142
- });
143
- };
144
- /**
145
- * @returns The list of followers of the given twiiter user
146
- * @param id The id of the user whose followers are to be fetched
147
- * @param count The number of followers to fetch
148
- * @param all Whether to fetch all followers list
149
- * @param cursor The cursor to the batch of followers to fetch
150
- * @param followerCount The total number of followers of the target user
151
- */
152
- UserResolver.prototype.resolveUserFollowers = function (id, count, all, cursor, followersCount) {
153
- var _a;
154
- return __awaiter(this, void 0, void 0, function () {
155
- var followers, next, total, batchSize, res;
156
- return __generator(this, function (_b) {
157
- switch (_b.label) {
158
- case 0:
159
- followers = [];
160
- next = new Service_1.Cursor(cursor);
161
- total = 0;
162
- batchSize = 20;
163
- // If all followers are to be fetched
164
- count = (all || count > followersCount) ? followersCount : count;
165
- // If required count less than batch size, setting batch size to required count
166
- batchSize = (count < batchSize) ? count : batchSize;
167
- _b.label = 1;
168
- case 1:
169
- if (!(total < count)) return [3 /*break*/, 3];
170
- // If this is the last batch, change batch size to number of remaining followers
171
- batchSize = ((count - total) < batchSize) ? (count - total) : batchSize;
172
- return [4 /*yield*/, this.context.users.getUserFollowers(id, count, next.value)];
173
- case 2:
174
- res = _b.sent();
175
- // If data is available
176
- if ((_a = res.list) === null || _a === void 0 ? void 0 : _a.length) {
177
- // Adding fetched followers to list of followers
178
- followers = followers.concat(res.list);
179
- // Updating total followers fetched
180
- total = followers.length;
181
- // Getting cursor to next batch
182
- next = res.next;
183
- }
184
- // If no more data is available
185
- else {
186
- return [3 /*break*/, 3];
187
- }
188
- return [3 /*break*/, 1];
189
- case 3:
190
- // Adding the cursor to the end of list of data
191
- followers.push(next);
192
- return [2 /*return*/, followers];
193
- }
194
- });
195
- });
196
- };
197
- /**
198
- * @returns The list of following of the given twiiter user
199
- * @param id The id of the user whose followings are to be fetched
200
- * @param count The number of following to fetch
201
- * @param all Whether to fetch list of all followings
202
- * @param cursor The cursor to the batch of followings to fetch
203
- * @param followingsCount The total number of followings of the target user
204
- */
205
- UserResolver.prototype.resolveUserFollowing = function (id, count, all, cursor, followingsCount) {
206
- var _a;
207
- return __awaiter(this, void 0, void 0, function () {
208
- var following, next, total, batchSize, res;
209
- return __generator(this, function (_b) {
210
- switch (_b.label) {
211
- case 0:
212
- following = [];
213
- next = new Service_1.Cursor(cursor);
214
- total = 0;
215
- batchSize = 20;
216
- // If all followings are to be fetched
217
- count = (all || count > followingsCount) ? followingsCount : count;
218
- // If required count less than batch size, setting batch size to required count
219
- batchSize = (count < batchSize) ? count : batchSize;
220
- _b.label = 1;
221
- case 1:
222
- if (!(total < count)) return [3 /*break*/, 3];
223
- // If this is the last batch, change batch size to number of remaining following
224
- batchSize = ((count - total) < batchSize) ? (count - total) : batchSize;
225
- return [4 /*yield*/, this.context.users.getUserFollowing(id, count, next.value)];
226
- case 2:
227
- res = _b.sent();
228
- // If data is available
229
- if ((_a = res.list) === null || _a === void 0 ? void 0 : _a.length) {
230
- // Adding fetched following to list of following
231
- following = following.concat(res.list);
232
- // Updating total following fetched
233
- total = following.length;
234
- // Getting cursor to next batch
235
- next = res.next;
236
- }
237
- // If no more data is available
238
- else {
239
- return [3 /*break*/, 3];
240
- }
241
- return [3 /*break*/, 1];
242
- case 3:
243
- // Adding the cursor to the end of list of data
244
- following.push(next);
245
- return [2 /*return*/, following];
246
- }
247
- });
248
- });
249
- };
250
- return UserResolver;
251
- }(ResolverBase_1["default"]));
252
- exports["default"] = UserResolver;
253
- //# sourceMappingURL=UserResolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserResolver.js","sourceRoot":"","sources":["../../src/resolvers/UserResolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAY;AACZ,gEAA0C;AAE1C,QAAQ;AACR,4CAAuD;AAEvD,UAAU;AACV,kDAA2D;AAE3D;IAA0C,gCAAY;IAClD,iBAAiB;IACjB,sBAAY,OAAoB;eAC5B,kBAAM,OAAO,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACG,yCAAkB,GAAxB,UAAyB,QAAgB,EAAE,EAAU;;;;;6BAE7C,QAAQ,EAAR,w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