twitter-openapi-typescript-generated 0.0.2 → 0.0.4

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 (334) hide show
  1. package/.openapi-generator/FILES +0 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/.openapi-generator-ignore +2 -1
  4. package/README.md +2 -2
  5. package/package.json +1 -1
  6. package/src/apis/DefaultApi.ts +4 -0
  7. package/src/apis/OtherApi.ts +4 -0
  8. package/src/apis/PostApi.ts +24 -0
  9. package/src/apis/TweetApi.ts +36 -0
  10. package/src/apis/UserApi.ts +4 -0
  11. package/src/apis/UserListApi.ts +8 -0
  12. package/src/apis/V11GetApi.ts +8 -0
  13. package/src/apis/V11PostApi.ts +8 -0
  14. package/src/apis/V20GetApi.ts +4 -0
  15. package/tools/openapi-generator-config.yaml +1 -1
  16. package/tools/win/replace.py +13 -0
  17. package/tsconfig.json +22 -20
  18. package/twitter-openapi/src/openapi/openapi-3.0.yaml +8 -1
  19. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  20. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  21. package/dist/apis/DefaultApi.d.ts +0 -31
  22. package/dist/apis/DefaultApi.js +0 -163
  23. package/dist/apis/OtherApi.d.ts +0 -26
  24. package/dist/apis/OtherApi.js +0 -145
  25. package/dist/apis/PostApi.d.ts +0 -84
  26. package/dist/apis/PostApi.js +0 -500
  27. package/dist/apis/TweetApi.d.ts +0 -135
  28. package/dist/apis/TweetApi.js +0 -827
  29. package/dist/apis/UserApi.d.ts +0 -31
  30. package/dist/apis/UserApi.js +0 -163
  31. package/dist/apis/UserListApi.d.ts +0 -44
  32. package/dist/apis/UserListApi.js +0 -246
  33. package/dist/apis/V11GetApi.d.ts +0 -60
  34. package/dist/apis/V11GetApi.js +0 -343
  35. package/dist/apis/V11PostApi.d.ts +0 -65
  36. package/dist/apis/V11PostApi.js +0 -399
  37. package/dist/apis/V20GetApi.d.ts +0 -64
  38. package/dist/apis/V20GetApi.js +0 -364
  39. package/dist/apis/index.d.ts +0 -9
  40. package/dist/apis/index.js +0 -27
  41. package/dist/index.d.ts +0 -3
  42. package/dist/index.js +0 -21
  43. package/dist/models/BookmarksResponse.d.ts +0 -32
  44. package/dist/models/BookmarksResponse.js +0 -51
  45. package/dist/models/BookmarksResponseData.d.ts +0 -32
  46. package/dist/models/BookmarksResponseData.js +0 -51
  47. package/dist/models/BookmarksTimeline.d.ts +0 -32
  48. package/dist/models/BookmarksTimeline.js +0 -51
  49. package/dist/models/CommunitiesActions.d.ts +0 -31
  50. package/dist/models/CommunitiesActions.js +0 -50
  51. package/dist/models/ContentEntryType.d.ts +0 -24
  52. package/dist/models/ContentEntryType.js +0 -37
  53. package/dist/models/ContentItemType.d.ts +0 -24
  54. package/dist/models/ContentItemType.js +0 -37
  55. package/dist/models/ContentUnion.d.ts +0 -29
  56. package/dist/models/ContentUnion.js +0 -69
  57. package/dist/models/CreateRetweet.d.ts +0 -32
  58. package/dist/models/CreateRetweet.js +0 -51
  59. package/dist/models/CreateRetweetResponse.d.ts +0 -32
  60. package/dist/models/CreateRetweetResponse.js +0 -51
  61. package/dist/models/CreateRetweetResponseData.d.ts +0 -32
  62. package/dist/models/CreateRetweetResponseData.js +0 -51
  63. package/dist/models/CreateRetweetResponseResult.d.ts +0 -32
  64. package/dist/models/CreateRetweetResponseResult.js +0 -51
  65. package/dist/models/CreateTweet.d.ts +0 -32
  66. package/dist/models/CreateTweet.js +0 -51
  67. package/dist/models/CreateTweetResponse.d.ts +0 -32
  68. package/dist/models/CreateTweetResponse.js +0 -51
  69. package/dist/models/CreateTweetResponseData.d.ts +0 -32
  70. package/dist/models/CreateTweetResponseData.js +0 -51
  71. package/dist/models/CreateTweetResponseResult.d.ts +0 -32
  72. package/dist/models/CreateTweetResponseResult.js +0 -51
  73. package/dist/models/DeleteRetweetResponse.d.ts +0 -32
  74. package/dist/models/DeleteRetweetResponse.js +0 -51
  75. package/dist/models/DeleteRetweetResponseData.d.ts +0 -32
  76. package/dist/models/DeleteRetweetResponseData.js +0 -51
  77. package/dist/models/DeleteTweetResponse.d.ts +0 -32
  78. package/dist/models/DeleteTweetResponse.js +0 -51
  79. package/dist/models/DeleteTweetResponseData.d.ts +0 -32
  80. package/dist/models/DeleteTweetResponseData.js +0 -51
  81. package/dist/models/DeleteTweetResponseResult.d.ts +0 -31
  82. package/dist/models/DeleteTweetResponseResult.js +0 -50
  83. package/dist/models/Entities.d.ts +0 -56
  84. package/dist/models/Entities.js +0 -63
  85. package/dist/models/ExtendedEntities.d.ts +0 -32
  86. package/dist/models/ExtendedEntities.js +0 -51
  87. package/dist/models/FavoriteTweet.d.ts +0 -31
  88. package/dist/models/FavoriteTweet.js +0 -50
  89. package/dist/models/FavoriteTweetResponseData.d.ts +0 -32
  90. package/dist/models/FavoriteTweetResponseData.js +0 -51
  91. package/dist/models/FollowResponse.d.ts +0 -32
  92. package/dist/models/FollowResponse.js +0 -51
  93. package/dist/models/FollowResponseData.d.ts +0 -32
  94. package/dist/models/FollowResponseData.js +0 -51
  95. package/dist/models/FollowResponseResult.d.ts +0 -39
  96. package/dist/models/FollowResponseResult.js +0 -55
  97. package/dist/models/FollowResponseUser.d.ts +0 -32
  98. package/dist/models/FollowResponseUser.js +0 -51
  99. package/dist/models/FollowTimeline.d.ts +0 -32
  100. package/dist/models/FollowTimeline.js +0 -51
  101. package/dist/models/HomeTimelineHome.d.ts +0 -32
  102. package/dist/models/HomeTimelineHome.js +0 -51
  103. package/dist/models/HomeTimelineResponseData.d.ts +0 -32
  104. package/dist/models/HomeTimelineResponseData.js +0 -51
  105. package/dist/models/InstructionType.d.ts +0 -25
  106. package/dist/models/InstructionType.js +0 -38
  107. package/dist/models/InstructionUnion.d.ts +0 -32
  108. package/dist/models/InstructionUnion.js +0 -74
  109. package/dist/models/ItemContentUnion.d.ts +0 -29
  110. package/dist/models/ItemContentUnion.js +0 -69
  111. package/dist/models/ItemResult.d.ts +0 -39
  112. package/dist/models/ItemResult.js +0 -55
  113. package/dist/models/ListTweetsTimeline.d.ts +0 -32
  114. package/dist/models/ListTweetsTimeline.js +0 -51
  115. package/dist/models/ListTweetsTimelineData.d.ts +0 -32
  116. package/dist/models/ListTweetsTimelineData.js +0 -51
  117. package/dist/models/ListTweetsTimelineList.d.ts +0 -32
  118. package/dist/models/ListTweetsTimelineList.js +0 -51
  119. package/dist/models/ListTweetsTimelineResponse.d.ts +0 -32
  120. package/dist/models/ListTweetsTimelineResponse.js +0 -51
  121. package/dist/models/Media.d.ts +0 -92
  122. package/dist/models/Media.js +0 -80
  123. package/dist/models/MediaOriginalInfo.d.ts +0 -43
  124. package/dist/models/MediaOriginalInfo.js +0 -54
  125. package/dist/models/ModuleEntry.d.ts +0 -38
  126. package/dist/models/ModuleEntry.js +0 -54
  127. package/dist/models/ModuleItem.d.ts +0 -38
  128. package/dist/models/ModuleItem.js +0 -54
  129. package/dist/models/OneFactorLoginEligibility.d.ts +0 -31
  130. package/dist/models/OneFactorLoginEligibility.js +0 -50
  131. package/dist/models/OtherResponse.d.ts +0 -32
  132. package/dist/models/OtherResponse.js +0 -51
  133. package/dist/models/PostCreateRetweetRequest.d.ts +0 -38
  134. package/dist/models/PostCreateRetweetRequest.js +0 -54
  135. package/dist/models/PostCreateTweetRequest.d.ts +0 -45
  136. package/dist/models/PostCreateTweetRequest.js +0 -58
  137. package/dist/models/PostCreateTweetRequestFeatures.d.ts +0 -139
  138. package/dist/models/PostCreateTweetRequestFeatures.js +0 -104
  139. package/dist/models/PostCreateTweetRequestVariables.d.ts +0 -50
  140. package/dist/models/PostCreateTweetRequestVariables.js +0 -60
  141. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +0 -37
  142. package/dist/models/PostCreateTweetRequestVariablesMedia.js +0 -53
  143. package/dist/models/PostDeleteRetweetRequest.d.ts +0 -38
  144. package/dist/models/PostDeleteRetweetRequest.js +0 -54
  145. package/dist/models/PostDeleteRetweetRequestVariables.d.ts +0 -37
  146. package/dist/models/PostDeleteRetweetRequestVariables.js +0 -53
  147. package/dist/models/PostDeleteTweetRequest.d.ts +0 -38
  148. package/dist/models/PostDeleteTweetRequest.js +0 -54
  149. package/dist/models/PostDeleteTweetRequestVariables.d.ts +0 -37
  150. package/dist/models/PostDeleteTweetRequestVariables.js +0 -53
  151. package/dist/models/PostFavoriteTweetRequest.d.ts +0 -38
  152. package/dist/models/PostFavoriteTweetRequest.js +0 -54
  153. package/dist/models/PostUnfavoriteTweetRequest.d.ts +0 -38
  154. package/dist/models/PostUnfavoriteTweetRequest.js +0 -54
  155. package/dist/models/ProfileResponse.d.ts +0 -32
  156. package/dist/models/ProfileResponse.js +0 -51
  157. package/dist/models/ProfileResponseData.d.ts +0 -32
  158. package/dist/models/ProfileResponseData.js +0 -51
  159. package/dist/models/Retweet.d.ts +0 -38
  160. package/dist/models/Retweet.js +0 -54
  161. package/dist/models/RetweetLegacy.d.ts +0 -31
  162. package/dist/models/RetweetLegacy.js +0 -50
  163. package/dist/models/Session.d.ts +0 -112
  164. package/dist/models/Session.js +0 -92
  165. package/dist/models/SocialContext.d.ts +0 -43
  166. package/dist/models/SocialContext.js +0 -54
  167. package/dist/models/Timeline.d.ts +0 -44
  168. package/dist/models/Timeline.js +0 -56
  169. package/dist/models/TimelineAddEntries.d.ts +0 -39
  170. package/dist/models/TimelineAddEntries.js +0 -55
  171. package/dist/models/TimelineAddEntry.d.ts +0 -44
  172. package/dist/models/TimelineAddEntry.js +0 -57
  173. package/dist/models/TimelineClearCache.d.ts +0 -32
  174. package/dist/models/TimelineClearCache.js +0 -51
  175. package/dist/models/TimelinePinEntry.d.ts +0 -39
  176. package/dist/models/TimelinePinEntry.js +0 -55
  177. package/dist/models/TimelineResponse.d.ts +0 -32
  178. package/dist/models/TimelineResponse.js +0 -51
  179. package/dist/models/TimelineTerminateTimeline.d.ts +0 -46
  180. package/dist/models/TimelineTerminateTimeline.js +0 -61
  181. package/dist/models/TimelineTimelineCursor.d.ts +0 -68
  182. package/dist/models/TimelineTimelineCursor.js +0 -73
  183. package/dist/models/TimelineTimelineItem.d.ts +0 -58
  184. package/dist/models/TimelineTimelineItem.js +0 -64
  185. package/dist/models/TimelineTimelineModule.d.ts +0 -70
  186. package/dist/models/TimelineTimelineModule.js +0 -69
  187. package/dist/models/TimelineTweet.d.ts +0 -65
  188. package/dist/models/TimelineTweet.js +0 -68
  189. package/dist/models/TimelineUser.d.ts +0 -59
  190. package/dist/models/TimelineUser.js +0 -66
  191. package/dist/models/TimelineV2.d.ts +0 -32
  192. package/dist/models/TimelineV2.js +0 -51
  193. package/dist/models/Tweet.d.ts +0 -92
  194. package/dist/models/Tweet.js +0 -82
  195. package/dist/models/TweetDetailResponse.d.ts +0 -32
  196. package/dist/models/TweetDetailResponse.js +0 -51
  197. package/dist/models/TweetDetailResponseData.d.ts +0 -32
  198. package/dist/models/TweetDetailResponseData.js +0 -51
  199. package/dist/models/TweetEditControl.d.ts +0 -49
  200. package/dist/models/TweetEditControl.js +0 -56
  201. package/dist/models/TweetEditPrespective.d.ts +0 -37
  202. package/dist/models/TweetEditPrespective.js +0 -52
  203. package/dist/models/TweetLegacy.d.ts +0 -154
  204. package/dist/models/TweetLegacy.js +0 -110
  205. package/dist/models/TweetTombstone.d.ts +0 -32
  206. package/dist/models/TweetTombstone.js +0 -51
  207. package/dist/models/TweetUnion.d.ts +0 -29
  208. package/dist/models/TweetUnion.js +0 -69
  209. package/dist/models/TweetViews.d.ts +0 -37
  210. package/dist/models/TweetViews.js +0 -52
  211. package/dist/models/TweetWithVisibilityResults.d.ts +0 -39
  212. package/dist/models/TweetWithVisibilityResults.js +0 -55
  213. package/dist/models/TypeName.d.ts +0 -30
  214. package/dist/models/TypeName.js +0 -43
  215. package/dist/models/UnfavoriteTweet.d.ts +0 -31
  216. package/dist/models/UnfavoriteTweet.js +0 -50
  217. package/dist/models/UnfavoriteTweetResponseData.d.ts +0 -32
  218. package/dist/models/UnfavoriteTweetResponseData.js +0 -51
  219. package/dist/models/User.d.ts +0 -99
  220. package/dist/models/User.js +0 -83
  221. package/dist/models/UserFeatures.d.ts +0 -31
  222. package/dist/models/UserFeatures.js +0 -50
  223. package/dist/models/UserLegacy.d.ts +0 -259
  224. package/dist/models/UserLegacy.js +0 -161
  225. package/dist/models/UserResponse.d.ts +0 -32
  226. package/dist/models/UserResponse.js +0 -51
  227. package/dist/models/UserResponseData.d.ts +0 -32
  228. package/dist/models/UserResponseData.js +0 -51
  229. package/dist/models/UserResultByScreenName.d.ts +0 -38
  230. package/dist/models/UserResultByScreenName.js +0 -54
  231. package/dist/models/UserResultByScreenNameLegacy.d.ts +0 -67
  232. package/dist/models/UserResultByScreenNameLegacy.js +0 -62
  233. package/dist/models/UserResultByScreenNameResult.d.ts +0 -57
  234. package/dist/models/UserResultByScreenNameResult.js +0 -64
  235. package/dist/models/UserResultCore.d.ts +0 -32
  236. package/dist/models/UserResultCore.js +0 -51
  237. package/dist/models/UserResults.d.ts +0 -32
  238. package/dist/models/UserResults.js +0 -51
  239. package/dist/models/UserTweetsData.d.ts +0 -32
  240. package/dist/models/UserTweetsData.js +0 -51
  241. package/dist/models/UserTweetsResponse.d.ts +0 -32
  242. package/dist/models/UserTweetsResponse.js +0 -51
  243. package/dist/models/UserTweetsResult.d.ts +0 -39
  244. package/dist/models/UserTweetsResult.js +0 -55
  245. package/dist/models/UserTweetsUser.d.ts +0 -32
  246. package/dist/models/UserTweetsUser.js +0 -51
  247. package/dist/models/index.d.ts +0 -102
  248. package/dist/models/index.js +0 -120
  249. package/dist/runtime.d.ts +0 -182
  250. package/dist/runtime.js +0 -555
  251. package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -111
  252. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -134
  253. package/twitter-openapi/dist/dart/paths/follow.yaml +0 -262
  254. package/twitter-openapi/dist/dart/paths/other.yaml +0 -96
  255. package/twitter-openapi/dist/dart/paths/post.yaml +0 -834
  256. package/twitter-openapi/dist/dart/paths/profile.yaml +0 -152
  257. package/twitter-openapi/dist/dart/paths/timeline.yaml +0 -380
  258. package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -134
  259. package/twitter-openapi/dist/dart/paths/user.yaml +0 -112
  260. package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -484
  261. package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
  262. package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
  263. package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
  264. package/twitter-openapi/dist/dart/response/error.yaml +0 -90
  265. package/twitter-openapi/dist/dart/schemas/content.yaml +0 -181
  266. package/twitter-openapi/dist/dart/schemas/general.yaml +0 -13
  267. package/twitter-openapi/dist/dart/schemas/instruction.yaml +0 -83
  268. package/twitter-openapi/dist/dart/schemas/timeline.yaml +0 -25
  269. package/twitter-openapi/dist/dart/schemas/tweet.yaml +0 -251
  270. package/twitter-openapi/dist/dart/schemas/typename.yaml +0 -19
  271. package/twitter-openapi/dist/dart/schemas/user.yaml +0 -206
  272. package/twitter-openapi/dist/docs/openapi-3.0.yaml +0 -135
  273. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -248
  274. package/twitter-openapi/dist/docs/paths/follow.yaml +0 -486
  275. package/twitter-openapi/dist/docs/paths/other.yaml +0 -96
  276. package/twitter-openapi/dist/docs/paths/post.yaml +0 -638
  277. package/twitter-openapi/dist/docs/paths/profile.yaml +0 -159
  278. package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -730
  279. package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -272
  280. package/twitter-openapi/dist/docs/paths/user.yaml +0 -152
  281. package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -1010
  282. package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +0 -242
  283. package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +0 -237
  284. package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +0 -302
  285. package/twitter-openapi/dist/docs/response/error.yaml +0 -90
  286. package/twitter-openapi/dist/docs/schemas/content.yaml +0 -181
  287. package/twitter-openapi/dist/docs/schemas/general.yaml +0 -13
  288. package/twitter-openapi/dist/docs/schemas/instruction.yaml +0 -83
  289. package/twitter-openapi/dist/docs/schemas/timeline.yaml +0 -25
  290. package/twitter-openapi/dist/docs/schemas/tweet.yaml +0 -251
  291. package/twitter-openapi/dist/docs/schemas/typename.yaml +0 -19
  292. package/twitter-openapi/dist/docs/schemas/user.yaml +0 -206
  293. package/twitter-openapi/dist/test/openapi-3.0.yaml +0 -135
  294. package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -105
  295. package/twitter-openapi/dist/test/paths/follow.yaml +0 -204
  296. package/twitter-openapi/dist/test/paths/other.yaml +0 -96
  297. package/twitter-openapi/dist/test/paths/post.yaml +0 -485
  298. package/twitter-openapi/dist/test/paths/profile.yaml +0 -123
  299. package/twitter-openapi/dist/test/paths/timeline.yaml +0 -293
  300. package/twitter-openapi/dist/test/paths/tweet.yaml +0 -105
  301. package/twitter-openapi/dist/test/paths/user.yaml +0 -83
  302. package/twitter-openapi/dist/test/paths/usertweets.yaml +0 -368
  303. package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
  304. package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
  305. package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
  306. package/twitter-openapi/dist/test/response/error.yaml +0 -90
  307. package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
  308. package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
  309. package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
  310. package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
  311. package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -251
  312. package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
  313. package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
  314. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -135
  315. package/twitter-openapi/dist/typescript/paths/bookmarks.yaml +0 -105
  316. package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -204
  317. package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
  318. package/twitter-openapi/dist/typescript/paths/post.yaml +0 -660
  319. package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -123
  320. package/twitter-openapi/dist/typescript/paths/timeline.yaml +0 -293
  321. package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -105
  322. package/twitter-openapi/dist/typescript/paths/user.yaml +0 -83
  323. package/twitter-openapi/dist/typescript/paths/usertweets.yaml +0 -368
  324. package/twitter-openapi/dist/typescript/paths/v1.1-get.yaml +0 -242
  325. package/twitter-openapi/dist/typescript/paths/v1.1-post.yaml +0 -237
  326. package/twitter-openapi/dist/typescript/paths/v2.0-get.yaml +0 -302
  327. package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
  328. package/twitter-openapi/dist/typescript/schemas/content.yaml +0 -181
  329. package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
  330. package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
  331. package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
  332. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -251
  333. package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
  334. package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
@@ -1,69 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Twitter OpenAPI
6
- * Twitter OpenAPI(Swagger) specification
7
- *
8
- * The version of the OpenAPI document: 0.0.1
9
- * Contact: yuki@yuki0311.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __assign = (this && this.__assign) || function () {
16
- __assign = Object.assign || function(t) {
17
- for (var s, i = 1, n = arguments.length; i < n; i++) {
18
- s = arguments[i];
19
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
- t[p] = s[p];
21
- }
22
- return t;
23
- };
24
- return __assign.apply(this, arguments);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.TweetUnionToJSON = exports.TweetUnionFromJSONTyped = exports.TweetUnionFromJSON = void 0;
28
- var Tweet_1 = require("./Tweet");
29
- var TweetTombstone_1 = require("./TweetTombstone");
30
- var TweetWithVisibilityResults_1 = require("./TweetWithVisibilityResults");
31
- function TweetUnionFromJSON(json) {
32
- return TweetUnionFromJSONTyped(json, false);
33
- }
34
- exports.TweetUnionFromJSON = TweetUnionFromJSON;
35
- function TweetUnionFromJSONTyped(json, ignoreDiscriminator) {
36
- if ((json === undefined) || (json === null)) {
37
- return json;
38
- }
39
- switch (json['__typename']) {
40
- case 'Tweet':
41
- return __assign(__assign({}, (0, Tweet_1.TweetFromJSONTyped)(json, true)), { typename: 'Tweet' });
42
- case 'TweetTombstone':
43
- return __assign(__assign({}, (0, TweetTombstone_1.TweetTombstoneFromJSONTyped)(json, true)), { typename: 'TweetTombstone' });
44
- case 'TweetWithVisibilityResults':
45
- return __assign(__assign({}, (0, TweetWithVisibilityResults_1.TweetWithVisibilityResultsFromJSONTyped)(json, true)), { typename: 'TweetWithVisibilityResults' });
46
- default:
47
- throw new Error("No variant of TweetUnion exists with 'typename=".concat(json['__typename'], "'"));
48
- }
49
- }
50
- exports.TweetUnionFromJSONTyped = TweetUnionFromJSONTyped;
51
- function TweetUnionToJSON(value) {
52
- if (value === undefined) {
53
- return undefined;
54
- }
55
- if (value === null) {
56
- return null;
57
- }
58
- switch (value['typename']) {
59
- case 'Tweet':
60
- return (0, Tweet_1.TweetToJSON)(value);
61
- case 'TweetTombstone':
62
- return (0, TweetTombstone_1.TweetTombstoneToJSON)(value);
63
- case 'TweetWithVisibilityResults':
64
- return (0, TweetWithVisibilityResults_1.TweetWithVisibilityResultsToJSON)(value);
65
- default:
66
- throw new Error("No variant of TweetUnion exists with 'typename=".concat(value['typename'], "'"));
67
- }
68
- }
69
- exports.TweetUnionToJSON = TweetUnionToJSON;
@@ -1,37 +0,0 @@
1
- /**
2
- * Twitter OpenAPI
3
- * Twitter OpenAPI(Swagger) specification
4
- *
5
- * The version of the OpenAPI document: 0.0.1
6
- * Contact: yuki@yuki0311.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface TweetViews
16
- */
17
- export interface TweetViews {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof TweetViews
22
- */
23
- count?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof TweetViews
28
- */
29
- state?: string;
30
- }
31
- /**
32
- * Check if a given object implements the TweetViews interface.
33
- */
34
- export declare function instanceOfTweetViews(value: object): boolean;
35
- export declare function TweetViewsFromJSON(json: any): TweetViews;
36
- export declare function TweetViewsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetViews;
37
- export declare function TweetViewsToJSON(value?: TweetViews | null): any;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Twitter OpenAPI
6
- * Twitter OpenAPI(Swagger) specification
7
- *
8
- * The version of the OpenAPI document: 0.0.1
9
- * Contact: yuki@yuki0311.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.TweetViewsToJSON = exports.TweetViewsFromJSONTyped = exports.TweetViewsFromJSON = exports.instanceOfTweetViews = void 0;
17
- var runtime_1 = require("../runtime");
18
- /**
19
- * Check if a given object implements the TweetViews interface.
20
- */
21
- function instanceOfTweetViews(value) {
22
- var isInstance = true;
23
- return isInstance;
24
- }
25
- exports.instanceOfTweetViews = instanceOfTweetViews;
26
- function TweetViewsFromJSON(json) {
27
- return TweetViewsFromJSONTyped(json, false);
28
- }
29
- exports.TweetViewsFromJSON = TweetViewsFromJSON;
30
- function TweetViewsFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
32
- return json;
33
- }
34
- return {
35
- 'count': !(0, runtime_1.exists)(json, 'count') ? undefined : json['count'],
36
- 'state': !(0, runtime_1.exists)(json, 'state') ? undefined : json['state'],
37
- };
38
- }
39
- exports.TweetViewsFromJSONTyped = TweetViewsFromJSONTyped;
40
- function TweetViewsToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
46
- }
47
- return {
48
- 'count': value.count,
49
- 'state': value.state,
50
- };
51
- }
52
- exports.TweetViewsToJSON = TweetViewsToJSON;
@@ -1,39 +0,0 @@
1
- /**
2
- * Twitter OpenAPI
3
- * Twitter OpenAPI(Swagger) specification
4
- *
5
- * The version of the OpenAPI document: 0.0.1
6
- * Contact: yuki@yuki0311.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { Tweet } from './Tweet';
13
- import type { TypeName } from './TypeName';
14
- /**
15
- *
16
- * @export
17
- * @interface TweetWithVisibilityResults
18
- */
19
- export interface TweetWithVisibilityResults {
20
- /**
21
- *
22
- * @type {TypeName}
23
- * @memberof TweetWithVisibilityResults
24
- */
25
- typename: TypeName;
26
- /**
27
- *
28
- * @type {Tweet}
29
- * @memberof TweetWithVisibilityResults
30
- */
31
- tweet: Tweet;
32
- }
33
- /**
34
- * Check if a given object implements the TweetWithVisibilityResults interface.
35
- */
36
- export declare function instanceOfTweetWithVisibilityResults(value: object): boolean;
37
- export declare function TweetWithVisibilityResultsFromJSON(json: any): TweetWithVisibilityResults;
38
- export declare function TweetWithVisibilityResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetWithVisibilityResults;
39
- export declare function TweetWithVisibilityResultsToJSON(value?: TweetWithVisibilityResults | null): any;
@@ -1,55 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Twitter OpenAPI
6
- * Twitter OpenAPI(Swagger) specification
7
- *
8
- * The version of the OpenAPI document: 0.0.1
9
- * Contact: yuki@yuki0311.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.TweetWithVisibilityResultsToJSON = exports.TweetWithVisibilityResultsFromJSONTyped = exports.TweetWithVisibilityResultsFromJSON = exports.instanceOfTweetWithVisibilityResults = void 0;
17
- var Tweet_1 = require("./Tweet");
18
- var TypeName_1 = require("./TypeName");
19
- /**
20
- * Check if a given object implements the TweetWithVisibilityResults interface.
21
- */
22
- function instanceOfTweetWithVisibilityResults(value) {
23
- var isInstance = true;
24
- isInstance = isInstance && "typename" in value;
25
- isInstance = isInstance && "tweet" in value;
26
- return isInstance;
27
- }
28
- exports.instanceOfTweetWithVisibilityResults = instanceOfTweetWithVisibilityResults;
29
- function TweetWithVisibilityResultsFromJSON(json) {
30
- return TweetWithVisibilityResultsFromJSONTyped(json, false);
31
- }
32
- exports.TweetWithVisibilityResultsFromJSON = TweetWithVisibilityResultsFromJSON;
33
- function TweetWithVisibilityResultsFromJSONTyped(json, ignoreDiscriminator) {
34
- if ((json === undefined) || (json === null)) {
35
- return json;
36
- }
37
- return {
38
- 'typename': (0, TypeName_1.TypeNameFromJSON)(json['__typename']),
39
- 'tweet': (0, Tweet_1.TweetFromJSON)(json['tweet']),
40
- };
41
- }
42
- exports.TweetWithVisibilityResultsFromJSONTyped = TweetWithVisibilityResultsFromJSONTyped;
43
- function TweetWithVisibilityResultsToJSON(value) {
44
- if (value === undefined) {
45
- return undefined;
46
- }
47
- if (value === null) {
48
- return null;
49
- }
50
- return {
51
- '__typename': (0, TypeName_1.TypeNameToJSON)(value.typename),
52
- 'tweet': (0, Tweet_1.TweetToJSON)(value.tweet),
53
- };
54
- }
55
- exports.TweetWithVisibilityResultsToJSON = TweetWithVisibilityResultsToJSON;
@@ -1,30 +0,0 @@
1
- /**
2
- * Twitter OpenAPI
3
- * Twitter OpenAPI(Swagger) specification
4
- *
5
- * The version of the OpenAPI document: 0.0.1
6
- * Contact: yuki@yuki0311.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- */
16
- export declare const TypeName: {
17
- readonly TimelineTweet: "TimelineTweet";
18
- readonly TimelineTimelineItem: "TimelineTimelineItem";
19
- readonly TimelineUser: "TimelineUser";
20
- readonly TimelineTimelineCursor: "TimelineTimelineCursor";
21
- readonly TweetWithVisibilityResults: "TweetWithVisibilityResults";
22
- readonly TimelineTimelineModule: "TimelineTimelineModule";
23
- readonly TweetTombstone: "TweetTombstone";
24
- readonly Tweet: "Tweet";
25
- readonly User: "User";
26
- };
27
- export type TypeName = typeof TypeName[keyof typeof TypeName];
28
- export declare function TypeNameFromJSON(json: any): TypeName;
29
- export declare function TypeNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypeName;
30
- export declare function TypeNameToJSON(value?: TypeName | null): any;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Twitter OpenAPI
6
- * Twitter OpenAPI(Swagger) specification
7
- *
8
- * The version of the OpenAPI document: 0.0.1
9
- * Contact: yuki@yuki0311.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.TypeNameToJSON = exports.TypeNameFromJSONTyped = exports.TypeNameFromJSON = exports.TypeName = void 0;
17
- /**
18
- *
19
- * @export
20
- */
21
- exports.TypeName = {
22
- TimelineTweet: 'TimelineTweet',
23
- TimelineTimelineItem: 'TimelineTimelineItem',
24
- TimelineUser: 'TimelineUser',
25
- TimelineTimelineCursor: 'TimelineTimelineCursor',
26
- TweetWithVisibilityResults: 'TweetWithVisibilityResults',
27
- TimelineTimelineModule: 'TimelineTimelineModule',
28
- TweetTombstone: 'TweetTombstone',
29
- Tweet: 'Tweet',
30
- User: 'User'
31
- };
32
- function TypeNameFromJSON(json) {
33
- return TypeNameFromJSONTyped(json, false);
34
- }
35
- exports.TypeNameFromJSON = TypeNameFromJSON;
36
- function TypeNameFromJSONTyped(json, ignoreDiscriminator) {
37
- return json;
38
- }
39
- exports.TypeNameFromJSONTyped = TypeNameFromJSONTyped;
40
- function TypeNameToJSON(value) {
41
- return value;
42
- }
43
- exports.TypeNameToJSON = TypeNameToJSON;
@@ -1,31 +0,0 @@
1
- /**
2
- * Twitter OpenAPI
3
- * Twitter OpenAPI(Swagger) specification
4
- *
5
- * The version of the OpenAPI document: 0.0.1
6
- * Contact: yuki@yuki0311.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface UnfavoriteTweet
16
- */
17
- export interface UnfavoriteTweet {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof UnfavoriteTweet
22
- */
23
- unfavoriteTweet: string;
24
- }
25
- /**
26
- * Check if a given object implements the UnfavoriteTweet interface.
27
- */
28
- export declare function instanceOfUnfavoriteTweet(value: object): boolean;
29
- export declare function UnfavoriteTweetFromJSON(json: any): UnfavoriteTweet;
30
- export declare function UnfavoriteTweetFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnfavoriteTweet;
31
- export declare function UnfavoriteTweetToJSON(value?: UnfavoriteTweet | null): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Twitter OpenAPI
6
- * Twitter OpenAPI(Swagger) specification
7
- *
8
- * The version of the OpenAPI document: 0.0.1
9
- * Contact: yuki@yuki0311.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UnfavoriteTweetToJSON = exports.UnfavoriteTweetFromJSONTyped = exports.UnfavoriteTweetFromJSON = exports.instanceOfUnfavoriteTweet = void 0;
17
- /**
18
- * Check if a given object implements the UnfavoriteTweet interface.
19
- */
20
- function instanceOfUnfavoriteTweet(value) {
21
- var isInstance = true;
22
- isInstance = isInstance && "unfavoriteTweet" in value;
23
- return isInstance;
24
- }
25
- exports.instanceOfUnfavoriteTweet = instanceOfUnfavoriteTweet;
26
- function UnfavoriteTweetFromJSON(json) {
27
- return UnfavoriteTweetFromJSONTyped(json, false);
28
- }
29
- exports.UnfavoriteTweetFromJSON = UnfavoriteTweetFromJSON;
30
- function UnfavoriteTweetFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
32
- return json;
33
- }
34
- return {
35
- 'unfavoriteTweet': json['unfavorite_tweet'],
36
- };
37
- }
38
- exports.UnfavoriteTweetFromJSONTyped = UnfavoriteTweetFromJSONTyped;
39
- function UnfavoriteTweetToJSON(value) {
40
- if (value === undefined) {
41
- return undefined;
42
- }
43
- if (value === null) {
44
- return null;
45
- }
46
- return {
47
- 'unfavorite_tweet': value.unfavoriteTweet,
48
- };
49
- }
50
- exports.UnfavoriteTweetToJSON = UnfavoriteTweetToJSON;
@@ -1,32 +0,0 @@
1
- /**
2
- * Twitter OpenAPI
3
- * Twitter OpenAPI(Swagger) specification
4
- *
5
- * The version of the OpenAPI document: 0.0.1
6
- * Contact: yuki@yuki0311.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { UnfavoriteTweet } from './UnfavoriteTweet';
13
- /**
14
- *
15
- * @export
16
- * @interface UnfavoriteTweetResponseData
17
- */
18
- export interface UnfavoriteTweetResponseData {
19
- /**
20
- *
21
- * @type {UnfavoriteTweet}
22
- * @memberof UnfavoriteTweetResponseData
23
- */
24
- data: UnfavoriteTweet;
25
- }
26
- /**
27
- * Check if a given object implements the UnfavoriteTweetResponseData interface.
28
- */
29
- export declare function instanceOfUnfavoriteTweetResponseData(value: object): boolean;
30
- export declare function UnfavoriteTweetResponseDataFromJSON(json: any): UnfavoriteTweetResponseData;
31
- export declare function UnfavoriteTweetResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnfavoriteTweetResponseData;
32
- export declare function UnfavoriteTweetResponseDataToJSON(value?: UnfavoriteTweetResponseData | null): any;
@@ -1,51 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Twitter OpenAPI
6
- * Twitter OpenAPI(Swagger) specification
7
- *
8
- * The version of the OpenAPI document: 0.0.1
9
- * Contact: yuki@yuki0311.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UnfavoriteTweetResponseDataToJSON = exports.UnfavoriteTweetResponseDataFromJSONTyped = exports.UnfavoriteTweetResponseDataFromJSON = exports.instanceOfUnfavoriteTweetResponseData = void 0;
17
- var UnfavoriteTweet_1 = require("./UnfavoriteTweet");
18
- /**
19
- * Check if a given object implements the UnfavoriteTweetResponseData interface.
20
- */
21
- function instanceOfUnfavoriteTweetResponseData(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "data" in value;
24
- return isInstance;
25
- }
26
- exports.instanceOfUnfavoriteTweetResponseData = instanceOfUnfavoriteTweetResponseData;
27
- function UnfavoriteTweetResponseDataFromJSON(json) {
28
- return UnfavoriteTweetResponseDataFromJSONTyped(json, false);
29
- }
30
- exports.UnfavoriteTweetResponseDataFromJSON = UnfavoriteTweetResponseDataFromJSON;
31
- function UnfavoriteTweetResponseDataFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
33
- return json;
34
- }
35
- return {
36
- 'data': (0, UnfavoriteTweet_1.UnfavoriteTweetFromJSON)(json['data']),
37
- };
38
- }
39
- exports.UnfavoriteTweetResponseDataFromJSONTyped = UnfavoriteTweetResponseDataFromJSONTyped;
40
- function UnfavoriteTweetResponseDataToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
46
- }
47
- return {
48
- 'data': (0, UnfavoriteTweet_1.UnfavoriteTweetToJSON)(value.data),
49
- };
50
- }
51
- exports.UnfavoriteTweetResponseDataToJSON = UnfavoriteTweetResponseDataToJSON;
@@ -1,99 +0,0 @@
1
- /**
2
- * Twitter OpenAPI
3
- * Twitter OpenAPI(Swagger) specification
4
- *
5
- * The version of the OpenAPI document: 0.0.1
6
- * Contact: yuki@yuki0311.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { TypeName } from './TypeName';
13
- import type { UserLegacy } from './UserLegacy';
14
- /**
15
- *
16
- * @export
17
- * @interface User
18
- */
19
- export interface User {
20
- /**
21
- *
22
- * @type {TypeName}
23
- * @memberof User
24
- */
25
- typename: TypeName;
26
- /**
27
- *
28
- * @type {object}
29
- * @memberof User
30
- */
31
- affiliatesHighlightedLabel: object;
32
- /**
33
- *
34
- * @type {object}
35
- * @memberof User
36
- */
37
- businessAccount?: object;
38
- /**
39
- *
40
- * @type {boolean}
41
- * @memberof User
42
- */
43
- hasGraduatedAccess?: boolean;
44
- /**
45
- *
46
- * @type {boolean}
47
- * @memberof User
48
- */
49
- hasNftAvatar?: boolean;
50
- /**
51
- *
52
- * @type {string}
53
- * @memberof User
54
- */
55
- id: string;
56
- /**
57
- *
58
- * @type {boolean}
59
- * @memberof User
60
- */
61
- isBlueVerified: boolean;
62
- /**
63
- *
64
- * @type {UserLegacy}
65
- * @memberof User
66
- */
67
- legacy: UserLegacy;
68
- /**
69
- *
70
- * @type {string}
71
- * @memberof User
72
- */
73
- restId: string;
74
- /**
75
- *
76
- * @type {boolean}
77
- * @memberof User
78
- */
79
- superFollowEligible: boolean;
80
- /**
81
- *
82
- * @type {boolean}
83
- * @memberof User
84
- */
85
- superFollowedBy: boolean;
86
- /**
87
- *
88
- * @type {boolean}
89
- * @memberof User
90
- */
91
- superFollowing: boolean;
92
- }
93
- /**
94
- * Check if a given object implements the User interface.
95
- */
96
- export declare function instanceOfUser(value: object): boolean;
97
- export declare function UserFromJSON(json: any): User;
98
- export declare function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User;
99
- export declare function UserToJSON(value?: User | null): any;
@@ -1,83 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Twitter OpenAPI
6
- * Twitter OpenAPI(Swagger) specification
7
- *
8
- * The version of the OpenAPI document: 0.0.1
9
- * Contact: yuki@yuki0311.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UserToJSON = exports.UserFromJSONTyped = exports.UserFromJSON = exports.instanceOfUser = void 0;
17
- var runtime_1 = require("../runtime");
18
- var TypeName_1 = require("./TypeName");
19
- var UserLegacy_1 = require("./UserLegacy");
20
- /**
21
- * Check if a given object implements the User interface.
22
- */
23
- function instanceOfUser(value) {
24
- var isInstance = true;
25
- isInstance = isInstance && "typename" in value;
26
- isInstance = isInstance && "affiliatesHighlightedLabel" in value;
27
- isInstance = isInstance && "id" in value;
28
- isInstance = isInstance && "isBlueVerified" in value;
29
- isInstance = isInstance && "legacy" in value;
30
- isInstance = isInstance && "restId" in value;
31
- isInstance = isInstance && "superFollowEligible" in value;
32
- isInstance = isInstance && "superFollowedBy" in value;
33
- isInstance = isInstance && "superFollowing" in value;
34
- return isInstance;
35
- }
36
- exports.instanceOfUser = instanceOfUser;
37
- function UserFromJSON(json) {
38
- return UserFromJSONTyped(json, false);
39
- }
40
- exports.UserFromJSON = UserFromJSON;
41
- function UserFromJSONTyped(json, ignoreDiscriminator) {
42
- if ((json === undefined) || (json === null)) {
43
- return json;
44
- }
45
- return {
46
- 'typename': (0, TypeName_1.TypeNameFromJSON)(json['__typename']),
47
- 'affiliatesHighlightedLabel': json['affiliates_highlighted_label'],
48
- 'businessAccount': !(0, runtime_1.exists)(json, 'business_account') ? undefined : json['business_account'],
49
- 'hasGraduatedAccess': !(0, runtime_1.exists)(json, 'has_graduated_access') ? undefined : json['has_graduated_access'],
50
- 'hasNftAvatar': !(0, runtime_1.exists)(json, 'has_nft_avatar') ? undefined : json['has_nft_avatar'],
51
- 'id': json['id'],
52
- 'isBlueVerified': json['is_blue_verified'],
53
- 'legacy': (0, UserLegacy_1.UserLegacyFromJSON)(json['legacy']),
54
- 'restId': json['rest_id'],
55
- 'superFollowEligible': json['super_follow_eligible'],
56
- 'superFollowedBy': json['super_followed_by'],
57
- 'superFollowing': json['super_following'],
58
- };
59
- }
60
- exports.UserFromJSONTyped = UserFromJSONTyped;
61
- function UserToJSON(value) {
62
- if (value === undefined) {
63
- return undefined;
64
- }
65
- if (value === null) {
66
- return null;
67
- }
68
- return {
69
- '__typename': (0, TypeName_1.TypeNameToJSON)(value.typename),
70
- 'affiliates_highlighted_label': value.affiliatesHighlightedLabel,
71
- 'business_account': value.businessAccount,
72
- 'has_graduated_access': value.hasGraduatedAccess,
73
- 'has_nft_avatar': value.hasNftAvatar,
74
- 'id': value.id,
75
- 'is_blue_verified': value.isBlueVerified,
76
- 'legacy': (0, UserLegacy_1.UserLegacyToJSON)(value.legacy),
77
- 'rest_id': value.restId,
78
- 'super_follow_eligible': value.superFollowEligible,
79
- 'super_followed_by': value.superFollowedBy,
80
- 'super_following': value.superFollowing,
81
- };
82
- }
83
- exports.UserToJSON = UserToJSON;