rettiwt-api 1.1.7 → 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 (456) 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 -88
  52. package/dist/services/auth/AccountService.js +411 -391
  53. package/dist/services/auth/AccountService.js.map +1 -1
  54. package/dist/services/auth/AuthService.d.ts +31 -31
  55. package/dist/services/auth/AuthService.js +117 -117
  56. package/dist/services/data/TweetService.d.ts +60 -74
  57. package/dist/services/data/TweetService.js +251 -254
  58. package/dist/services/data/TweetService.js.map +1 -1
  59. package/dist/services/data/UserService.d.ts +71 -87
  60. package/dist/services/data/UserService.js +287 -296
  61. package/dist/services/data/UserService.js.map +1 -1
  62. package/dist/services/helper/Headers.d.ts +19 -19
  63. package/dist/services/helper/Headers.js +61 -61
  64. package/dist/services/helper/Parser.d.ts +22 -28
  65. package/dist/services/helper/Parser.js +83 -104
  66. package/dist/services/helper/Parser.js.map +1 -1
  67. package/dist/services/helper/extractors/Tweets.d.ts +32 -32
  68. package/dist/services/helper/extractors/Tweets.js +263 -263
  69. package/dist/services/helper/extractors/Users.d.ts +26 -26
  70. package/dist/services/helper/extractors/Users.js +202 -202
  71. package/dist/services/helper/payloads/LoginFlows.d.ts +77 -77
  72. package/dist/services/helper/payloads/LoginFlows.js +91 -91
  73. package/dist/services/helper/urls/Authentication.d.ts +4 -4
  74. package/dist/services/helper/urls/Authentication.js +10 -10
  75. package/dist/services/util/CacheService.d.ts +33 -33
  76. package/dist/services/util/CacheService.js +95 -95
  77. package/dist/services/util/FetcherService.d.ts +65 -65
  78. package/dist/services/util/FetcherService.js +213 -213
  79. package/dist/twitter/Url.d.ts +22 -0
  80. package/dist/twitter/Url.js +32 -0
  81. package/dist/twitter/Url.js.map +1 -0
  82. package/dist/twitter/enums/Resources.d.ts +15 -0
  83. package/dist/twitter/enums/Resources.js +21 -0
  84. package/dist/twitter/enums/Resources.js.map +1 -0
  85. package/dist/twitter/params/Query.d.ts +67 -0
  86. package/dist/twitter/params/Query.js +64 -0
  87. package/dist/twitter/params/Query.js.map +1 -0
  88. package/dist/twitter/payloads/Args.d.ts +16 -0
  89. package/dist/twitter/payloads/Args.js +16 -0
  90. package/dist/twitter/payloads/Args.js.map +1 -0
  91. package/dist/{types/raw/query/tweet/Engagements.d.ts → twitter/payloads/Features.d.ts} +28 -29
  92. package/dist/twitter/payloads/Features.js +37 -0
  93. package/dist/twitter/payloads/Features.js.map +1 -0
  94. package/dist/twitter/payloads/Variables.d.ts +41 -0
  95. package/dist/twitter/payloads/Variables.js +64 -0
  96. package/dist/twitter/payloads/Variables.js.map +1 -0
  97. package/dist/{types → twitter/types/request}/Query.d.ts +86 -80
  98. package/dist/{types/data/Tweet.js → twitter/types/request/Query.js} +4 -4
  99. package/dist/twitter/types/request/Query.js.map +1 -0
  100. package/dist/{types/raw/data → twitter/types}/tweet/Favouriters.d.ts +164 -164
  101. package/dist/twitter/types/tweet/Favouriters.js +3 -0
  102. package/dist/twitter/types/tweet/Favouriters.js.map +1 -0
  103. package/dist/{types/raw → twitter/types}/tweet/Retweeters.d.ts +171 -171
  104. package/dist/{types/Trends.js → twitter/types/tweet/Retweeters.js} +3 -3
  105. package/dist/twitter/types/tweet/Retweeters.js.map +1 -0
  106. package/dist/{types/raw/data → twitter/types}/tweet/Tweet.d.ts +746 -746
  107. package/dist/{types/data/User.js → twitter/types/tweet/Tweet.js} +3 -3
  108. package/dist/twitter/types/tweet/Tweet.js.map +1 -0
  109. package/dist/{types/raw → twitter/types}/tweet/Tweets.d.ts +386 -386
  110. package/dist/{types/raw/user/User.js → twitter/types/tweet/Tweets.js} +3 -3
  111. package/dist/twitter/types/tweet/Tweets.js.map +1 -0
  112. package/dist/{types/raw → twitter/types}/user/Followers.d.ts +176 -176
  113. package/dist/{types/interfaces/Rettiwt.js → twitter/types/user/Followers.js} +3 -3
  114. package/dist/twitter/types/user/Followers.js.map +1 -0
  115. package/dist/{types/raw → twitter/types}/user/Following.d.ts +176 -176
  116. package/dist/{types/Query.js → twitter/types/user/Following.js} +3 -3
  117. package/dist/twitter/types/user/Following.js.map +1 -0
  118. package/dist/{types/raw/data → twitter/types}/user/Likes.d.ts +1059 -1059
  119. package/dist/{types/interfaces/User.js → twitter/types/user/Likes.js} +3 -3
  120. package/dist/twitter/types/user/Likes.js.map +1 -0
  121. package/dist/{types/raw → twitter/types}/user/Tweets.d.ts +1512 -1512
  122. package/dist/twitter/types/user/Tweets.js +3 -0
  123. package/dist/twitter/types/user/Tweets.js.map +1 -0
  124. package/dist/{types/raw → twitter/types}/user/User.d.ts +117 -117
  125. package/dist/{types/raw/data → twitter/types}/user/User.js +2 -2
  126. package/dist/{types/data → twitter/types/user}/User.js.map +1 -1
  127. package/dist/types/Args.d.ts +38 -38
  128. package/dist/types/Args.js +4 -4
  129. package/dist/types/Authentication.d.ts +55 -55
  130. package/dist/types/Authentication.js +5 -5
  131. package/dist/types/Resolvers.d.ts +15 -15
  132. package/dist/types/Resolvers.js +2 -2
  133. package/dist/types/Rettiwt.d.ts +16 -16
  134. package/dist/types/Rettiwt.js +2 -2
  135. package/dist/types/Service.d.ts +22 -22
  136. package/dist/types/Service.js +4 -4
  137. package/dist/types/Tweet.d.ts +46 -46
  138. package/dist/types/Tweet.js +2 -2
  139. package/dist/types/User.d.ts +35 -35
  140. package/dist/types/User.js +2 -2
  141. package/docs/.nojekyll +1 -0
  142. package/docs/assets/highlight.css +64 -0
  143. package/docs/assets/main.js +58 -0
  144. package/docs/assets/search.js +1 -0
  145. package/docs/assets/style.css +1280 -0
  146. package/docs/classes/AccountService.html +286 -0
  147. package/docs/classes/AuthCookie.html +146 -0
  148. package/docs/classes/AuthService.html +147 -0
  149. package/docs/classes/CacheService.html +157 -0
  150. package/docs/classes/Cursor.html +102 -0
  151. package/docs/classes/CursoredData.html +126 -0
  152. package/docs/classes/DataValidationError.html +119 -0
  153. package/docs/classes/FetcherService.html +225 -0
  154. package/docs/classes/Tweet.html +210 -0
  155. package/docs/classes/TweetEntities.html +128 -0
  156. package/docs/classes/TweetFilter.html +221 -0
  157. package/docs/classes/TweetListArgs.html +118 -0
  158. package/docs/classes/TweetService.html +319 -0
  159. package/docs/classes/User.html +230 -0
  160. package/docs/classes/UserListArgs.html +118 -0
  161. package/docs/classes/UserService.html +355 -0
  162. package/docs/enums/HttpMethods.html +74 -0
  163. package/docs/functions/Rettiwt.html +99 -0
  164. package/docs/index.html +158 -0
  165. package/docs/interfaces/IAuthCookie.html +104 -0
  166. package/docs/interfaces/ICursor.html +77 -0
  167. package/docs/interfaces/ICursoredData.html +93 -0
  168. package/docs/interfaces/IDataContext.html +91 -0
  169. package/docs/interfaces/IListArgs.html +87 -0
  170. package/docs/interfaces/ITweet.html +176 -0
  171. package/docs/interfaces/ITweetEntities.html +104 -0
  172. package/docs/interfaces/ITweetFilter.html +158 -0
  173. package/docs/interfaces/IUser.html +194 -0
  174. package/docs/modules.html +109 -0
  175. package/package.json +2 -2
  176. package/src/graphql/resolvers/UserResolver.ts +4 -4
  177. package/src/graphql/types/UserTypes.ts +1 -1
  178. package/src/models/args/TweetFilter.ts +25 -4
  179. package/src/models/data/Tweet.ts +1 -1
  180. package/src/models/data/User.ts +1 -1
  181. package/src/services/auth/AccountService.ts +79 -53
  182. package/src/services/data/TweetService.ts +35 -65
  183. package/src/services/data/UserService.ts +42 -48
  184. package/src/services/helper/Parser.ts +3 -24
  185. package/src/services/helper/extractors/Tweets.ts +4 -4
  186. package/src/services/helper/extractors/Users.ts +5 -5
  187. package/src/services/util/FetcherService.ts +4 -4
  188. package/src/twitter/Url.ts +37 -0
  189. package/src/twitter/enums/Resources.ts +15 -0
  190. package/src/twitter/params/Query.ts +100 -0
  191. package/src/twitter/payloads/Args.ts +21 -0
  192. package/src/twitter/payloads/Features.ts +33 -0
  193. package/src/twitter/payloads/Variables.ts +73 -0
  194. package/src/twitter/types/request/Query.ts +91 -0
  195. package/src/{types/raw → twitter/types}/user/Tweets.ts +1747 -1747
  196. package/src/types/Args.ts +1 -1
  197. package/dist/Test.d.ts +0 -0
  198. package/dist/Test.js +0 -2
  199. package/dist/Test.js.map +0 -1
  200. package/dist/endpoints/Endpoints.d.ts +0 -14
  201. package/dist/endpoints/Endpoints.js +0 -20
  202. package/dist/endpoints/Endpoints.js.map +0 -1
  203. package/dist/endpoints/Url.d.ts +0 -5
  204. package/dist/endpoints/Url.js +0 -12
  205. package/dist/endpoints/Url.js.map +0 -1
  206. package/dist/enums/Endpoints.d.ts +0 -25
  207. package/dist/enums/Endpoints.js +0 -31
  208. package/dist/enums/Endpoints.js.map +0 -1
  209. package/dist/graphql/types/Errors.d.ts +0 -20
  210. package/dist/graphql/types/Errors.js +0 -28
  211. package/dist/graphql/types/Errors.js.map +0 -1
  212. package/dist/middlewares/Authentication.d.ts +0 -0
  213. package/dist/middlewares/Authentication.js +0 -2
  214. package/dist/middlewares/Authentication.js.map +0 -1
  215. package/dist/models/data/DataValidationError.d.ts +0 -18
  216. package/dist/models/data/DataValidationError.js +0 -21
  217. package/dist/models/data/DataValidationError.js.map +0 -1
  218. package/dist/models/data/Errors.d.ts +0 -18
  219. package/dist/models/data/Errors.js +0 -21
  220. package/dist/models/data/Errors.js.map +0 -1
  221. package/dist/models/data/Service.d.ts +0 -33
  222. package/dist/models/data/Service.js +0 -41
  223. package/dist/models/data/Service.js.map +0 -1
  224. package/dist/models/graphql/Global.d.ts +0 -4
  225. package/dist/models/graphql/Global.js +0 -13
  226. package/dist/models/graphql/Global.js.map +0 -1
  227. package/dist/models/graphql/TweetTypes.d.ts +0 -6
  228. package/dist/models/graphql/TweetTypes.js +0 -156
  229. package/dist/models/graphql/TweetTypes.js.map +0 -1
  230. package/dist/models/graphql/UserTypes.d.ts +0 -3
  231. package/dist/models/graphql/UserTypes.js +0 -139
  232. package/dist/models/graphql/UserTypes.js.map +0 -1
  233. package/dist/models/query/Variables.d.ts +0 -2
  234. package/dist/models/query/Variables.js +0 -10
  235. package/dist/models/query/Variables.js.map +0 -1
  236. package/dist/queries/RootQuery.d.ts +0 -4
  237. package/dist/queries/RootQuery.js +0 -70
  238. package/dist/queries/RootQuery.js.map +0 -1
  239. package/dist/requests/Url.d.ts +0 -5
  240. package/dist/requests/Url.js +0 -12
  241. package/dist/requests/Url.js.map +0 -1
  242. package/dist/requests/payloads/Variables.d.ts +0 -23
  243. package/dist/requests/payloads/Variables.js +0 -24
  244. package/dist/requests/payloads/Variables.js.map +0 -1
  245. package/dist/resolvers/AccountResolver.d.ts +0 -12
  246. package/dist/resolvers/AccountResolver.js +0 -84
  247. package/dist/resolvers/AccountResolver.js.map +0 -1
  248. package/dist/resolvers/ResolverBase.d.ts +0 -5
  249. package/dist/resolvers/ResolverBase.js +0 -11
  250. package/dist/resolvers/ResolverBase.js.map +0 -1
  251. package/dist/resolvers/TweetResolver.d.ts +0 -54
  252. package/dist/resolvers/TweetResolver.js +0 -332
  253. package/dist/resolvers/TweetResolver.js.map +0 -1
  254. package/dist/resolvers/UserResolver.d.ts +0 -38
  255. package/dist/resolvers/UserResolver.js +0 -253
  256. package/dist/resolvers/UserResolver.js.map +0 -1
  257. package/dist/services/AuthService.d.ts +0 -22
  258. package/dist/services/AuthService.js +0 -106
  259. package/dist/services/AuthService.js.map +0 -1
  260. package/dist/services/CacheService.d.ts +0 -30
  261. package/dist/services/CacheService.js +0 -93
  262. package/dist/services/CacheService.js.map +0 -1
  263. package/dist/services/FetcherService.d.ts +0 -61
  264. package/dist/services/FetcherService.js +0 -209
  265. package/dist/services/FetcherService.js.map +0 -1
  266. package/dist/services/accounts/AccountService.d.ts +0 -65
  267. package/dist/services/accounts/AccountService.js +0 -336
  268. package/dist/services/accounts/AccountService.js.map +0 -1
  269. package/dist/services/accounts/LoginFlows.d.ts +0 -77
  270. package/dist/services/accounts/LoginFlows.js +0 -92
  271. package/dist/services/accounts/LoginFlows.js.map +0 -1
  272. package/dist/services/auth/LoginFlows.d.ts +0 -77
  273. package/dist/services/auth/LoginFlows.js +0 -92
  274. package/dist/services/auth/LoginFlows.js.map +0 -1
  275. package/dist/services/data/TrendService.d.ts +0 -17
  276. package/dist/services/data/TrendService.js +0 -116
  277. package/dist/services/data/TrendService.js.map +0 -1
  278. package/dist/services/data/UserAccountService.d.ts +0 -42
  279. package/dist/services/data/UserAccountService.js +0 -239
  280. package/dist/services/data/UserAccountService.js.map +0 -1
  281. package/dist/services/helper/Deserializers.d.ts +0 -19
  282. package/dist/services/helper/Deserializers.js +0 -115
  283. package/dist/services/helper/Deserializers.js.map +0 -1
  284. package/dist/services/helper/Extractors.d.ts +0 -104
  285. package/dist/services/helper/Extractors.js +0 -432
  286. package/dist/services/helper/Extractors.js.map +0 -1
  287. package/dist/services/helper/Urls.d.ts +0 -85
  288. package/dist/services/helper/Urls.js +0 -130
  289. package/dist/services/helper/Urls.js.map +0 -1
  290. package/dist/services/helper/deserializers/Tweets.d.ts +0 -12
  291. package/dist/services/helper/deserializers/Tweets.js +0 -92
  292. package/dist/services/helper/deserializers/Tweets.js.map +0 -1
  293. package/dist/services/helper/deserializers/Users.d.ts +0 -7
  294. package/dist/services/helper/deserializers/Users.js +0 -27
  295. package/dist/services/helper/deserializers/Users.js.map +0 -1
  296. package/dist/services/helper/extractors/Trends.d.ts +0 -3
  297. package/dist/services/helper/extractors/Trends.js +0 -51
  298. package/dist/services/helper/extractors/Trends.js.map +0 -1
  299. package/dist/services/helper/urls/Trends.d.ts +0 -7
  300. package/dist/services/helper/urls/Trends.js +0 -13
  301. package/dist/services/helper/urls/Trends.js.map +0 -1
  302. package/dist/services/helper/urls/Tweets.d.ts +0 -32
  303. package/dist/services/helper/urls/Tweets.js +0 -51
  304. package/dist/services/helper/urls/Tweets.js.map +0 -1
  305. package/dist/services/helper/urls/Users.d.ts +0 -38
  306. package/dist/services/helper/urls/Users.js +0 -76
  307. package/dist/services/helper/urls/Users.js.map +0 -1
  308. package/dist/types/HTTP.d.ts +0 -17
  309. package/dist/types/HTTP.js +0 -23
  310. package/dist/types/HTTP.js.map +0 -1
  311. package/dist/types/Query.js.map +0 -1
  312. package/dist/types/Trends.d.ts +0 -50
  313. package/dist/types/Trends.js.map +0 -1
  314. package/dist/types/UserAccount.d.ts +0 -19
  315. package/dist/types/UserAccount.js +0 -4
  316. package/dist/types/UserAccount.js.map +0 -1
  317. package/dist/types/args/TweetFilter.d.ts +0 -54
  318. package/dist/types/args/TweetFilter.js +0 -96
  319. package/dist/types/args/TweetFilter.js.map +0 -1
  320. package/dist/types/args/TweetListArg.d.ts +0 -10
  321. package/dist/types/args/TweetListArg.js +0 -42
  322. package/dist/types/args/TweetListArg.js.map +0 -1
  323. package/dist/types/args/TweetListArgs.d.ts +0 -20
  324. package/dist/types/args/TweetListArgs.js +0 -52
  325. package/dist/types/args/TweetListArgs.js.map +0 -1
  326. package/dist/types/args/UserListArgs.d.ts +0 -16
  327. package/dist/types/args/UserListArgs.js +0 -48
  328. package/dist/types/args/UserListArgs.js.map +0 -1
  329. package/dist/types/data/Errors.d.ts +0 -35
  330. package/dist/types/data/Errors.js +0 -45
  331. package/dist/types/data/Errors.js.map +0 -1
  332. package/dist/types/data/Service.d.ts +0 -43
  333. package/dist/types/data/Service.js +0 -22
  334. package/dist/types/data/Service.js.map +0 -1
  335. package/dist/types/data/Tweet.d.ts +0 -98
  336. package/dist/types/data/Tweet.js.map +0 -1
  337. package/dist/types/data/TweetFilter.d.ts +0 -49
  338. package/dist/types/data/TweetFilter.js +0 -63
  339. package/dist/types/data/TweetFilter.js.map +0 -1
  340. package/dist/types/data/User.d.ts +0 -38
  341. package/dist/types/graphql/Errors.d.ts +0 -15
  342. package/dist/types/graphql/Errors.js +0 -23
  343. package/dist/types/graphql/Errors.js.map +0 -1
  344. package/dist/types/interfaces/Args.d.ts +0 -38
  345. package/dist/types/interfaces/Args.js +0 -5
  346. package/dist/types/interfaces/Args.js.map +0 -1
  347. package/dist/types/interfaces/Authentication.d.ts +0 -40
  348. package/dist/types/interfaces/Authentication.js +0 -5
  349. package/dist/types/interfaces/Authentication.js.map +0 -1
  350. package/dist/types/interfaces/Resolvers.d.ts +0 -14
  351. package/dist/types/interfaces/Resolvers.js +0 -3
  352. package/dist/types/interfaces/Resolvers.js.map +0 -1
  353. package/dist/types/interfaces/Rettiwt.d.ts +0 -16
  354. package/dist/types/interfaces/Rettiwt.js.map +0 -1
  355. package/dist/types/interfaces/Service.d.ts +0 -13
  356. package/dist/types/interfaces/Service.js +0 -3
  357. package/dist/types/interfaces/Service.js.map +0 -1
  358. package/dist/types/interfaces/Services.d.ts +0 -13
  359. package/dist/types/interfaces/Services.js +0 -3
  360. package/dist/types/interfaces/Services.js.map +0 -1
  361. package/dist/types/interfaces/Tweet.d.ts +0 -46
  362. package/dist/types/interfaces/Tweet.js +0 -3
  363. package/dist/types/interfaces/Tweet.js.map +0 -1
  364. package/dist/types/interfaces/TweetFilter.d.ts +0 -0
  365. package/dist/types/interfaces/TweetFilter.js +0 -2
  366. package/dist/types/interfaces/TweetFilter.js.map +0 -1
  367. package/dist/types/interfaces/User.d.ts +0 -35
  368. package/dist/types/interfaces/User.js.map +0 -1
  369. package/dist/types/raw/auth/Cookie.d.ts +0 -16
  370. package/dist/types/raw/auth/Cookie.js +0 -3
  371. package/dist/types/raw/auth/Cookie.js.map +0 -1
  372. package/dist/types/raw/data/tweet/Favouriters.js +0 -3
  373. package/dist/types/raw/data/tweet/Favouriters.js.map +0 -1
  374. package/dist/types/raw/data/tweet/Retweeters.d.ts +0 -171
  375. package/dist/types/raw/data/tweet/Retweeters.js +0 -3
  376. package/dist/types/raw/data/tweet/Retweeters.js.map +0 -1
  377. package/dist/types/raw/data/tweet/Tweet.js +0 -3
  378. package/dist/types/raw/data/tweet/Tweet.js.map +0 -1
  379. package/dist/types/raw/data/tweet/Tweets.d.ts +0 -386
  380. package/dist/types/raw/data/tweet/Tweets.js +0 -3
  381. package/dist/types/raw/data/tweet/Tweets.js.map +0 -1
  382. package/dist/types/raw/data/user/Followers.d.ts +0 -176
  383. package/dist/types/raw/data/user/Followers.js +0 -3
  384. package/dist/types/raw/data/user/Followers.js.map +0 -1
  385. package/dist/types/raw/data/user/Following.d.ts +0 -176
  386. package/dist/types/raw/data/user/Following.js +0 -3
  387. package/dist/types/raw/data/user/Following.js.map +0 -1
  388. package/dist/types/raw/data/user/Likes.js +0 -3
  389. package/dist/types/raw/data/user/Likes.js.map +0 -1
  390. package/dist/types/raw/data/user/User.d.ts +0 -117
  391. package/dist/types/raw/data/user/User.js.map +0 -1
  392. package/dist/types/raw/general/Trends.d.ts +0 -324
  393. package/dist/types/raw/general/Trends.js +0 -3
  394. package/dist/types/raw/general/Trends.js.map +0 -1
  395. package/dist/types/raw/query/tweet/Details.d.ts +0 -80
  396. package/dist/types/raw/query/tweet/Details.js +0 -5
  397. package/dist/types/raw/query/tweet/Details.js.map +0 -1
  398. package/dist/types/raw/query/tweet/Engagements.js +0 -3
  399. package/dist/types/raw/query/tweet/Engagements.js.map +0 -1
  400. package/dist/types/raw/query/tweet/Likes.d.ts +0 -29
  401. package/dist/types/raw/query/tweet/Likes.js +0 -3
  402. package/dist/types/raw/query/tweet/Likes.js.map +0 -1
  403. package/dist/types/raw/query/tweet/Retweets.d.ts +0 -29
  404. package/dist/types/raw/query/tweet/Retweets.js +0 -3
  405. package/dist/types/raw/query/tweet/Retweets.js.map +0 -1
  406. package/dist/types/raw/query/tweet/Search.d.ts +0 -40
  407. package/dist/types/raw/query/tweet/Search.js +0 -3
  408. package/dist/types/raw/query/tweet/Search.js.map +0 -1
  409. package/dist/types/raw/query/tweet/TweetDetails.d.ts +0 -34
  410. package/dist/types/raw/query/tweet/TweetDetails.js +0 -5
  411. package/dist/types/raw/query/tweet/TweetDetails.js.map +0 -1
  412. package/dist/types/raw/query/tweet/TweetLike.d.ts +0 -29
  413. package/dist/types/raw/query/tweet/TweetLike.js +0 -3
  414. package/dist/types/raw/query/tweet/TweetLike.js.map +0 -1
  415. package/dist/types/raw/query/tweet/TweetLikes.d.ts +0 -29
  416. package/dist/types/raw/query/tweet/TweetLikes.js +0 -3
  417. package/dist/types/raw/query/tweet/TweetLikes.js.map +0 -1
  418. package/dist/types/raw/query/tweet/TweetRetweets.d.ts +0 -0
  419. package/dist/types/raw/query/tweet/TweetRetweets.js +0 -2
  420. package/dist/types/raw/query/tweet/TweetRetweets.js.map +0 -1
  421. package/dist/types/raw/query/user/Details.d.ts +0 -34
  422. package/dist/types/raw/query/user/Details.js +0 -3
  423. package/dist/types/raw/query/user/Details.js.map +0 -1
  424. package/dist/types/raw/tweet/Favouriters.d.ts +0 -164
  425. package/dist/types/raw/tweet/Favouriters.js +0 -3
  426. package/dist/types/raw/tweet/Favouriters.js.map +0 -1
  427. package/dist/types/raw/tweet/Retweeters.js +0 -3
  428. package/dist/types/raw/tweet/Retweeters.js.map +0 -1
  429. package/dist/types/raw/tweet/Tweet.d.ts +0 -746
  430. package/dist/types/raw/tweet/Tweet.js +0 -3
  431. package/dist/types/raw/tweet/Tweet.js.map +0 -1
  432. package/dist/types/raw/tweet/Tweets.js +0 -3
  433. package/dist/types/raw/tweet/Tweets.js.map +0 -1
  434. package/dist/types/raw/user/Followers.js +0 -3
  435. package/dist/types/raw/user/Followers.js.map +0 -1
  436. package/dist/types/raw/user/Following.js +0 -3
  437. package/dist/types/raw/user/Following.js.map +0 -1
  438. package/dist/types/raw/user/Likes.d.ts +0 -1059
  439. package/dist/types/raw/user/Likes.js +0 -3
  440. package/dist/types/raw/user/Likes.js.map +0 -1
  441. package/dist/types/raw/user/Tweets.js +0 -3
  442. package/dist/types/raw/user/Tweets.js.map +0 -1
  443. package/dist/types/raw/user/User.js.map +0 -1
  444. package/dist/types/services/args/TweetFilter.d.ts +0 -50
  445. package/dist/types/services/args/TweetFilter.js +0 -76
  446. package/dist/types/services/args/TweetFilter.js.map +0 -1
  447. package/src/services/helper/urls/Tweets.ts +0 -46
  448. package/src/services/helper/urls/Users.ts +0 -78
  449. /package/src/{types/raw → twitter/types}/tweet/Favouriters.ts +0 -0
  450. /package/src/{types/raw → twitter/types}/tweet/Retweeters.ts +0 -0
  451. /package/src/{types/raw → twitter/types}/tweet/Tweet.ts +0 -0
  452. /package/src/{types/raw → twitter/types}/tweet/Tweets.ts +0 -0
  453. /package/src/{types/raw → twitter/types}/user/Followers.ts +0 -0
  454. /package/src/{types/raw → twitter/types}/user/Following.ts +0 -0
  455. /package/src/{types/raw → twitter/types}/user/Likes.ts +0 -0
  456. /package/src/{types/raw → twitter/types}/user/User.ts +0 -0
@@ -1,27 +1,28 @@
1
1
  name: build-documentation
2
2
  run-name: Building the documentation for the release
3
3
  on:
4
- push:
5
- branches:
6
- release
4
+ push:
5
+ branches: release
6
+
7
7
  jobs:
8
- documentation:
9
- runs-on: ubuntu-latest
10
- permissions:
11
- contents: write
12
- steps:
13
- - uses: actions/checkout@v3
14
- - uses: actions/setup-node@v3
15
- with:
16
- node-version: '18.x'
17
- # Installing dependencies
18
- - run: npm install
8
+ # Creating the documentation
9
+ documentation:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: actions/setup-node@v3
16
+ with:
17
+ node-version: '18.x'
18
+ # Installing dependencies
19
+ - run: npm install
19
20
 
20
- # Generating documentations
21
- - run: npx typedoc src/index.ts
21
+ # Generating documentations
22
+ - run: npx typedoc src/index.ts
22
23
 
23
- # Commiting the documentations
24
- - uses: stefanzweifel/git-auto-commit-action@v4
25
- with:
26
- commit_message: Updated documentations
27
- branch: release
24
+ # Commiting the documentations
25
+ - uses: stefanzweifel/git-auto-commit-action@v4
26
+ with:
27
+ commit_message: Updated documentations
28
+ branch: release
@@ -0,0 +1,29 @@
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name: Publish Node.js Package to NPM
5
+
6
+ on:
7
+ release:
8
+ types: [created]
9
+
10
+ jobs:
11
+ # Pulishes this package to npm
12
+ publish-npm:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v3
16
+ - uses: actions/setup-node@v3
17
+ with:
18
+ node-version: '18.x'
19
+ registry-url: https://registry.npmjs.org/
20
+ # Installing dependencies
21
+ - run: npm install
22
+
23
+ # Building the package
24
+ - run: npm run build
25
+
26
+ # Publishing
27
+ - run: npm publish
28
+ env:
29
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
package/README.md CHANGED
@@ -1,72 +1,84 @@
1
1
  # Rettiwt-API
2
+
2
3
  An API for fetching data from TwitterAPI, without any rate limits!
3
4
 
4
- #### **This API is not a replacement of official Twitter API, since it does not scale**
5
- #### **It works well for small applications like the one side project you started and are never gonna finish**
6
- #### **If you want something that will scale as you application grows, Twitter API is the way to go**
5
+ #### **This API is not a replacement of official Twitter API, since it does not scale**
6
+
7
+ #### **It works well for small applications like the one side project you started and are never gonna finish**
8
+
9
+ #### **If you want something that will scale as you application grows, Twitter API is the way to go**
7
10
 
8
11
  #### **The API can either be used as a GraphQL Server or as a standalone npm library**
9
12
 
10
13
  #### **For complete documentation and API reference, head over to the [documentation](https://rishikant181.github.io/Rettiwt-API/)**
11
14
 
12
15
  ## 1. GraphQL Server
16
+
13
17
  Using the API as a GraphQL enables complex nested queries to fetch data from twitter.
14
18
  To use the API as a server,
15
19
 
16
20
  1. Clone the repo's release branch
17
- 2. Build the project using 'npm run build'
18
- 3. Set the environment variables:
19
- - APP_PORT -> The port number where the server will listen to
20
- - DEVELOPMENT -> Whether to run the server in development mode or not
21
- 4. Start the server using 'npm run start'
21
+ 2. Build the project using 'npm run build'
22
+ 3. Set the environment variables:
23
+ - APP_PORT -> The port number where the server will listen to
24
+ - DEVELOPMENT -> Whether to run the server in development mode or not
25
+ 4. Start the server using 'npm run start'
22
26
  5. Make graphql requests to server listening on localhost:port/graphql
23
27
 
24
28
  **You can go to localhost:port/graphql to see the graphql schema**
25
29
 
26
30
  ## 2. NPM Package
31
+
27
32
  The API can also be used as a standalone npm package.
28
33
  The limitation is that, large number of data cannot be fetched automatically, and the data needs to fetched in batches, by using cursors.
29
34
  Further nested queries are not possible.
30
35
  To use the API as an npm package,
31
36
 
32
- 1. In your node project, install the package using 'npm install --save rettiwt-api'.
33
- 2. import { Rettiwt } from 'rettiwt-api'.
34
- const rettiwt = Rettiwt().
35
- 3. Use the created [Rettiwt](https://rishikant181.github.io/Rettiwt-API/functions/Rettiwt.html) instance to fetch data from Twitter.
37
+ 1. In your node project, install the package using 'npm install --save rettiwt-api'.
38
+ 2. import { Rettiwt } from 'rettiwt-api'.
39
+ ```
40
+ const rettiwt = Rettiwt({
41
+ <put your authentication tokens here. For details, refer to section below>
42
+ }).
43
+ ```
44
+ 3. Use the created [Rettiwt](https://rishikant181.github.io/Rettiwt-API/functions/Rettiwt.html) instance to fetch data from Twitter.
45
+
46
+ **The authentication tokens can be generated in the following way:**
36
47
 
37
- This creates an instance of Rettiwt which can be used to fetch data from Twitter. This instance works as guest and no form of authentication is used. However, guest mode implies functionalities such fetching of user followings, followers, likes and tweet likes, retweets, quotes and replies is not possible. Whatever data can be viewed in Twitter without loggin in, can be accessed this way.
48
+ #### A. GraphQL Server:
38
49
 
39
- If you wan't full functionality, you need to use the cookie of a logged in Twitter account, which can be retrieved in the following way:
50
+ 1. Make the following query to the GraphQL server:
40
51
 
41
- #### A. GraphQL Server:
42
- 1. Make the following query to the GraphQL server:
43
52
  ```
44
- query {
45
- Login(email: "your_twitter_email", userName: "your_twitter_username", password: "your_twitter_password") {
46
- auth_token
47
- ct0
48
- kdt
49
- twid
50
- }
51
- }
53
+ query {
54
+ Login(email: "your_twitter_email", userName: "your_twitter_username", password: "your_twitter_password") {
55
+ auth_token
56
+ ct0
57
+ kdt
58
+ twid
59
+ }
60
+ }
52
61
  ```
53
- 1. This will give you 4 tokens: 'auth_token', 'ct0', 'kdt' and 'twid'.
54
- 2. Pass the four tokens in the headers while making any request made to the GraphQL server for fetching data.
55
62
 
56
- #### B. NPM Library:
57
- 1. Use the [Rettiwt().account.login](https://rishikant181.github.io/Rettiwt-API/classes/AccountService.html#login) method to get back 4 tokens: 'auth_token', 'ct0', 'kdt' and 'twid'.
58
- 2. Use these four tokens to initialize a new [Rettiwt](https://rishikant181.github.io/Rettiwt-API/functions/Rettiwt.html) instance as follows:
63
+ 1. This will give you 4 tokens: 'auth_token', 'ct0', 'kdt' and 'twid'.
64
+ 2. Pass the four tokens in the headers while making any request made to the GraphQL server for fetching data.
65
+
66
+ #### B. NPM Library:
67
+
68
+ 1. Use the [Rettiwt().account.login](https://rishikant181.github.io/Rettiwt-API/classes/AccountService.html#login) method to get back 4 tokens: 'auth_token', 'ct0', 'kdt' and 'twid'.
69
+ 2. Use these four tokens to initialize a new [Rettiwt](https://rishikant181.github.io/Rettiwt-API/functions/Rettiwt.html) instance as follows:
70
+
59
71
  ```
60
- const rettiwt = new Rettiwt({
61
- auth_token: "received_auth_token",
62
- ct0: "received_ct0_token",
63
- kdt: "received_kdt_token",
64
- twid: "received_twid_token"
65
- });
72
+ const rettiwt = new Rettiwt({
73
+ auth_token: "received_auth_token",
74
+ ct0: "received_ct0_token",
75
+ kdt: "received_kdt_token",
76
+ twid: "received_twid_token"
77
+ });
66
78
  ```
67
- 3. Use the created [Rettiwt](https://rishikant181.github.io/Rettiwt-API/functions/Rettiwt.html) instance to fetch data.
68
79
 
69
- ### **If you don't want to risk your twitter account getting banned, using cookies is completely optional and you can omit passing cookie and use the API as guest**
70
- ### **No likes, followers, followings, retweets, replies, tweet likes, quotes can be fetched without using cookie!**
71
- ### **It's completely safe to use the API as a guest and not using cookies, since that way, no form of authentication is used**
72
- ### **If you decide to use cookies for full functionality, I'M NOT RESPONSIBLE IF YOU GET YOUR TWITTER ACCOUNT BANNED!**
80
+ 3. Use the created [Rettiwt](https://rishikant181.github.io/Rettiwt-API/functions/Rettiwt.html) instance to fetch data.
81
+
82
+ ### **Due to changes in Twitter API, all methods now require logging in and using the tokens for authentication**
83
+
84
+ ### **I'M NOT RESPONSIBLE IF YOU GET YOUR TWITTER ACCOUNT BANNED!**
@@ -1,5 +1,5 @@
1
- export declare const config: {
2
- port: number;
3
- is_development: boolean;
4
- twitter_auth_token: string;
5
- };
1
+ export declare const config: {
2
+ port: number;
3
+ is_development: boolean;
4
+ twitter_auth_token: string;
5
+ };
@@ -1,9 +1,9 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.config = void 0;
4
- exports.config = {
5
- port: Number(process.env.APP_PORT),
6
- is_development: (process.env.DEVELOPMENT == 'true'),
7
- twitter_auth_token: 'Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA'
8
- };
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.config = void 0;
4
+ exports.config = {
5
+ port: Number(process.env.APP_PORT),
6
+ is_development: (process.env.DEVELOPMENT == 'true'),
7
+ twitter_auth_token: 'Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA'
8
+ };
9
9
  //# sourceMappingURL=env.js.map
@@ -1,20 +1,20 @@
1
- /**
2
- * Different types of error messages related to authentication returned by services.
3
- *
4
- * @public
5
- */
6
- export declare enum AuthenticationErrors {
7
- NotAuthenticated = "Cannot fetch this data without authentication",
8
- InvalidEmail = "No Twitter account found for the given email address",
9
- InvalidUsername = "Incorrect username given for the given Twitter account",
10
- InvalidPassword = "Incorrect password given for the given Twitter account"
11
- }
12
- /**
13
- * Different type of error messages related to data that are returned by services.
14
- *
15
- * @public
16
- */
17
- export declare enum DataErrors {
18
- UserNotFound = "An account with given username/id was not found",
19
- TweetNotFound = "A tweet with the given id was not found"
20
- }
1
+ /**
2
+ * Different types of error messages related to authentication returned by services.
3
+ *
4
+ * @public
5
+ */
6
+ export declare enum AuthenticationErrors {
7
+ NotAuthenticated = "Cannot fetch this data without authentication",
8
+ InvalidEmail = "No Twitter account found for the given email address",
9
+ InvalidUsername = "Incorrect username given for the given Twitter account",
10
+ InvalidPassword = "Incorrect password given for the given Twitter account"
11
+ }
12
+ /**
13
+ * Different type of error messages related to data that are returned by services.
14
+ *
15
+ * @public
16
+ */
17
+ export declare enum DataErrors {
18
+ UserNotFound = "An account with given username/id was not found",
19
+ TweetNotFound = "A tweet with the given id was not found"
20
+ }
@@ -1,28 +1,28 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.DataErrors = exports.AuthenticationErrors = void 0;
4
- /**
5
- * Different types of error messages related to authentication returned by services.
6
- *
7
- * @public
8
- */
9
- var AuthenticationErrors;
10
- (function (AuthenticationErrors) {
11
- AuthenticationErrors["NotAuthenticated"] = "Cannot fetch this data without authentication";
12
- AuthenticationErrors["InvalidEmail"] = "No Twitter account found for the given email address";
13
- AuthenticationErrors["InvalidUsername"] = "Incorrect username given for the given Twitter account";
14
- AuthenticationErrors["InvalidPassword"] = "Incorrect password given for the given Twitter account";
15
- })(AuthenticationErrors = exports.AuthenticationErrors || (exports.AuthenticationErrors = {}));
16
- ;
17
- /**
18
- * Different type of error messages related to data that are returned by services.
19
- *
20
- * @public
21
- */
22
- var DataErrors;
23
- (function (DataErrors) {
24
- DataErrors["UserNotFound"] = "An account with given username/id was not found";
25
- DataErrors["TweetNotFound"] = "A tweet with the given id was not found";
26
- })(DataErrors = exports.DataErrors || (exports.DataErrors = {}));
27
- ;
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.DataErrors = exports.AuthenticationErrors = void 0;
4
+ /**
5
+ * Different types of error messages related to authentication returned by services.
6
+ *
7
+ * @public
8
+ */
9
+ var AuthenticationErrors;
10
+ (function (AuthenticationErrors) {
11
+ AuthenticationErrors["NotAuthenticated"] = "Cannot fetch this data without authentication";
12
+ AuthenticationErrors["InvalidEmail"] = "No Twitter account found for the given email address";
13
+ AuthenticationErrors["InvalidUsername"] = "Incorrect username given for the given Twitter account";
14
+ AuthenticationErrors["InvalidPassword"] = "Incorrect password given for the given Twitter account";
15
+ })(AuthenticationErrors = exports.AuthenticationErrors || (exports.AuthenticationErrors = {}));
16
+ ;
17
+ /**
18
+ * Different type of error messages related to data that are returned by services.
19
+ *
20
+ * @public
21
+ */
22
+ var DataErrors;
23
+ (function (DataErrors) {
24
+ DataErrors["UserNotFound"] = "An account with given username/id was not found";
25
+ DataErrors["TweetNotFound"] = "A tweet with the given id was not found";
26
+ })(DataErrors = exports.DataErrors || (exports.DataErrors = {}));
27
+ ;
28
28
  //# sourceMappingURL=Errors.js.map
@@ -1,17 +1,17 @@
1
- /**
2
- * The different types of http status codes
3
- *
4
- * @internal
5
- */
6
- export declare enum HttpStatus {
7
- BadRequest = 400,
8
- Unauthorized = 401,
9
- Forbidden = 403,
10
- NotFound = 404,
11
- MethodNotAllowed = 405,
12
- RequestTimeout = 408,
13
- TooManyRequests = 429,
14
- InternalServerError = 500,
15
- BadGateway = 502,
16
- ServiceUnavailable = 503
17
- }
1
+ /**
2
+ * The different types of http status codes
3
+ *
4
+ * @internal
5
+ */
6
+ export declare enum HttpStatus {
7
+ BadRequest = 400,
8
+ Unauthorized = 401,
9
+ Forbidden = 403,
10
+ NotFound = 404,
11
+ MethodNotAllowed = 405,
12
+ RequestTimeout = 408,
13
+ TooManyRequests = 429,
14
+ InternalServerError = 500,
15
+ BadGateway = 502,
16
+ ServiceUnavailable = 503
17
+ }
@@ -1,23 +1,23 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.HttpStatus = void 0;
4
- /**
5
- * The different types of http status codes
6
- *
7
- * @internal
8
- */
9
- var HttpStatus;
10
- (function (HttpStatus) {
11
- HttpStatus[HttpStatus["BadRequest"] = 400] = "BadRequest";
12
- HttpStatus[HttpStatus["Unauthorized"] = 401] = "Unauthorized";
13
- HttpStatus[HttpStatus["Forbidden"] = 403] = "Forbidden";
14
- HttpStatus[HttpStatus["NotFound"] = 404] = "NotFound";
15
- HttpStatus[HttpStatus["MethodNotAllowed"] = 405] = "MethodNotAllowed";
16
- HttpStatus[HttpStatus["RequestTimeout"] = 408] = "RequestTimeout";
17
- HttpStatus[HttpStatus["TooManyRequests"] = 429] = "TooManyRequests";
18
- HttpStatus[HttpStatus["InternalServerError"] = 500] = "InternalServerError";
19
- HttpStatus[HttpStatus["BadGateway"] = 502] = "BadGateway";
20
- HttpStatus[HttpStatus["ServiceUnavailable"] = 503] = "ServiceUnavailable";
21
- })(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
22
- ;
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.HttpStatus = void 0;
4
+ /**
5
+ * The different types of http status codes
6
+ *
7
+ * @internal
8
+ */
9
+ var HttpStatus;
10
+ (function (HttpStatus) {
11
+ HttpStatus[HttpStatus["BadRequest"] = 400] = "BadRequest";
12
+ HttpStatus[HttpStatus["Unauthorized"] = 401] = "Unauthorized";
13
+ HttpStatus[HttpStatus["Forbidden"] = 403] = "Forbidden";
14
+ HttpStatus[HttpStatus["NotFound"] = 404] = "NotFound";
15
+ HttpStatus[HttpStatus["MethodNotAllowed"] = 405] = "MethodNotAllowed";
16
+ HttpStatus[HttpStatus["RequestTimeout"] = 408] = "RequestTimeout";
17
+ HttpStatus[HttpStatus["TooManyRequests"] = 429] = "TooManyRequests";
18
+ HttpStatus[HttpStatus["InternalServerError"] = 500] = "InternalServerError";
19
+ HttpStatus[HttpStatus["BadGateway"] = 502] = "BadGateway";
20
+ HttpStatus[HttpStatus["ServiceUnavailable"] = 503] = "ServiceUnavailable";
21
+ })(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
22
+ ;
23
23
  //# sourceMappingURL=HTTP.js.map
@@ -1,21 +1,21 @@
1
- /**
2
- * Different types error messages for validation errors returned by GraphQL API.
3
- *
4
- * @public
5
- */
6
- export declare enum ValidationErrors {
7
- NoUserIdentification = "Either userName or id must be given"
8
- }
9
- /**
10
- * Different type of error messages related to data that are returned by GraphQL API.
11
- *
12
- * @public
13
- */
14
- export declare enum DataErrors {
15
- NoTweetsFound = "No tweets matching the given criteria found",
16
- NoLikersFound = "No likers found for the tweet with the given id",
17
- NoRetweetersFound = "No retweeters found for the tweet with the given id",
18
- NoUserTweetsFound = "No tweets were found for the user with the given id",
19
- NoFollowsFound = "No follow details were found for the user with the given id",
20
- NoLikedTweetsFound = "No liked tweets were found for the user with the given id"
21
- }
1
+ /**
2
+ * Different types error messages for validation errors returned by GraphQL API.
3
+ *
4
+ * @public
5
+ */
6
+ export declare enum ValidationErrors {
7
+ NoUserIdentification = "Either userName or id must be given"
8
+ }
9
+ /**
10
+ * Different type of error messages related to data that are returned by GraphQL API.
11
+ *
12
+ * @public
13
+ */
14
+ export declare enum DataErrors {
15
+ NoTweetsFound = "No tweets matching the given criteria found",
16
+ NoLikersFound = "No likers found for the tweet with the given id",
17
+ NoRetweetersFound = "No retweeters found for the tweet with the given id",
18
+ NoUserTweetsFound = "No tweets were found for the user with the given id",
19
+ NoFollowsFound = "No follow details were found for the user with the given id",
20
+ NoLikedTweetsFound = "No liked tweets were found for the user with the given id"
21
+ }
@@ -1,29 +1,29 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.DataErrors = exports.ValidationErrors = void 0;
4
- /**
5
- * Different types error messages for validation errors returned by GraphQL API.
6
- *
7
- * @public
8
- */
9
- var ValidationErrors;
10
- (function (ValidationErrors) {
11
- ValidationErrors["NoUserIdentification"] = "Either userName or id must be given";
12
- })(ValidationErrors = exports.ValidationErrors || (exports.ValidationErrors = {}));
13
- ;
14
- /**
15
- * Different type of error messages related to data that are returned by GraphQL API.
16
- *
17
- * @public
18
- */
19
- var DataErrors;
20
- (function (DataErrors) {
21
- DataErrors["NoTweetsFound"] = "No tweets matching the given criteria found";
22
- DataErrors["NoLikersFound"] = "No likers found for the tweet with the given id";
23
- DataErrors["NoRetweetersFound"] = "No retweeters found for the tweet with the given id";
24
- DataErrors["NoUserTweetsFound"] = "No tweets were found for the user with the given id";
25
- DataErrors["NoFollowsFound"] = "No follow details were found for the user with the given id";
26
- DataErrors["NoLikedTweetsFound"] = "No liked tweets were found for the user with the given id";
27
- })(DataErrors = exports.DataErrors || (exports.DataErrors = {}));
28
- ;
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.DataErrors = exports.ValidationErrors = void 0;
4
+ /**
5
+ * Different types error messages for validation errors returned by GraphQL API.
6
+ *
7
+ * @public
8
+ */
9
+ var ValidationErrors;
10
+ (function (ValidationErrors) {
11
+ ValidationErrors["NoUserIdentification"] = "Either userName or id must be given";
12
+ })(ValidationErrors = exports.ValidationErrors || (exports.ValidationErrors = {}));
13
+ ;
14
+ /**
15
+ * Different type of error messages related to data that are returned by GraphQL API.
16
+ *
17
+ * @public
18
+ */
19
+ var DataErrors;
20
+ (function (DataErrors) {
21
+ DataErrors["NoTweetsFound"] = "No tweets matching the given criteria found";
22
+ DataErrors["NoLikersFound"] = "No likers found for the tweet with the given id";
23
+ DataErrors["NoRetweetersFound"] = "No retweeters found for the tweet with the given id";
24
+ DataErrors["NoUserTweetsFound"] = "No tweets were found for the user with the given id";
25
+ DataErrors["NoFollowsFound"] = "No follow details were found for the user with the given id";
26
+ DataErrors["NoLikedTweetsFound"] = "No liked tweets were found for the user with the given id";
27
+ })(DataErrors = exports.DataErrors || (exports.DataErrors = {}));
28
+ ;
29
29
  //# sourceMappingURL=Errors.js.map
@@ -1,4 +1,4 @@
1
- import { GraphQLObjectType } from 'graphql';
2
- export declare const rootQuery: GraphQLObjectType<any, any, {
3
- [key: string]: any;
4
- }>;
1
+ import { GraphQLObjectType } from 'graphql';
2
+ export declare const rootQuery: GraphQLObjectType<any, any, {
3
+ [key: string]: any;
4
+ }>;