twitter-openapi-typescript-generated 0.0.1
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.
- package/.openapi-generator/FILES +120 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +4 -0
- package/LICENSE.txt +661 -0
- package/README.md +45 -0
- package/dist/apis/DefaultApi.d.ts +31 -0
- package/dist/apis/DefaultApi.js +163 -0
- package/dist/apis/OtherApi.d.ts +26 -0
- package/dist/apis/OtherApi.js +145 -0
- package/dist/apis/PostApi.d.ts +84 -0
- package/dist/apis/PostApi.js +500 -0
- package/dist/apis/TweetApi.d.ts +135 -0
- package/dist/apis/TweetApi.js +827 -0
- package/dist/apis/UserApi.d.ts +31 -0
- package/dist/apis/UserApi.js +163 -0
- package/dist/apis/UserListApi.d.ts +44 -0
- package/dist/apis/UserListApi.js +246 -0
- package/dist/apis/V11GetApi.d.ts +60 -0
- package/dist/apis/V11GetApi.js +343 -0
- package/dist/apis/V11PostApi.d.ts +65 -0
- package/dist/apis/V11PostApi.js +399 -0
- package/dist/apis/V20GetApi.d.ts +64 -0
- package/dist/apis/V20GetApi.js +364 -0
- package/dist/apis/index.d.ts +9 -0
- package/dist/apis/index.js +27 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/BookmarksResponse.d.ts +32 -0
- package/dist/models/BookmarksResponse.js +51 -0
- package/dist/models/BookmarksResponseData.d.ts +32 -0
- package/dist/models/BookmarksResponseData.js +51 -0
- package/dist/models/BookmarksTimeline.d.ts +32 -0
- package/dist/models/BookmarksTimeline.js +51 -0
- package/dist/models/CommunitiesActions.d.ts +31 -0
- package/dist/models/CommunitiesActions.js +50 -0
- package/dist/models/ContentEntryType.d.ts +24 -0
- package/dist/models/ContentEntryType.js +37 -0
- package/dist/models/ContentItemType.d.ts +24 -0
- package/dist/models/ContentItemType.js +37 -0
- package/dist/models/ContentUnion.d.ts +29 -0
- package/dist/models/ContentUnion.js +69 -0
- package/dist/models/CreateRetweet.d.ts +32 -0
- package/dist/models/CreateRetweet.js +51 -0
- package/dist/models/CreateRetweetResponse.d.ts +32 -0
- package/dist/models/CreateRetweetResponse.js +51 -0
- package/dist/models/CreateRetweetResponseData.d.ts +32 -0
- package/dist/models/CreateRetweetResponseData.js +51 -0
- package/dist/models/CreateRetweetResponseResult.d.ts +32 -0
- package/dist/models/CreateRetweetResponseResult.js +51 -0
- package/dist/models/CreateTweet.d.ts +32 -0
- package/dist/models/CreateTweet.js +51 -0
- package/dist/models/CreateTweetResponse.d.ts +32 -0
- package/dist/models/CreateTweetResponse.js +51 -0
- package/dist/models/CreateTweetResponseData.d.ts +32 -0
- package/dist/models/CreateTweetResponseData.js +51 -0
- package/dist/models/CreateTweetResponseResult.d.ts +32 -0
- package/dist/models/CreateTweetResponseResult.js +51 -0
- package/dist/models/DeleteRetweetResponse.d.ts +32 -0
- package/dist/models/DeleteRetweetResponse.js +51 -0
- package/dist/models/DeleteRetweetResponseData.d.ts +32 -0
- package/dist/models/DeleteRetweetResponseData.js +51 -0
- package/dist/models/DeleteTweetResponse.d.ts +32 -0
- package/dist/models/DeleteTweetResponse.js +51 -0
- package/dist/models/DeleteTweetResponseData.d.ts +32 -0
- package/dist/models/DeleteTweetResponseData.js +51 -0
- package/dist/models/DeleteTweetResponseResult.d.ts +31 -0
- package/dist/models/DeleteTweetResponseResult.js +50 -0
- package/dist/models/Entities.d.ts +56 -0
- package/dist/models/Entities.js +63 -0
- package/dist/models/ExtendedEntities.d.ts +32 -0
- package/dist/models/ExtendedEntities.js +51 -0
- package/dist/models/FavoriteTweet.d.ts +31 -0
- package/dist/models/FavoriteTweet.js +50 -0
- package/dist/models/FavoriteTweetResponseData.d.ts +32 -0
- package/dist/models/FavoriteTweetResponseData.js +51 -0
- package/dist/models/FollowResponse.d.ts +32 -0
- package/dist/models/FollowResponse.js +51 -0
- package/dist/models/FollowResponseData.d.ts +32 -0
- package/dist/models/FollowResponseData.js +51 -0
- package/dist/models/FollowResponseResult.d.ts +39 -0
- package/dist/models/FollowResponseResult.js +55 -0
- package/dist/models/FollowResponseUser.d.ts +32 -0
- package/dist/models/FollowResponseUser.js +51 -0
- package/dist/models/FollowTimeline.d.ts +32 -0
- package/dist/models/FollowTimeline.js +51 -0
- package/dist/models/HomeTimelineHome.d.ts +32 -0
- package/dist/models/HomeTimelineHome.js +51 -0
- package/dist/models/HomeTimelineResponseData.d.ts +32 -0
- package/dist/models/HomeTimelineResponseData.js +51 -0
- package/dist/models/InstructionType.d.ts +25 -0
- package/dist/models/InstructionType.js +38 -0
- package/dist/models/InstructionUnion.d.ts +32 -0
- package/dist/models/InstructionUnion.js +74 -0
- package/dist/models/ItemContentUnion.d.ts +29 -0
- package/dist/models/ItemContentUnion.js +69 -0
- package/dist/models/ItemResult.d.ts +39 -0
- package/dist/models/ItemResult.js +55 -0
- package/dist/models/ListTweetsTimeline.d.ts +32 -0
- package/dist/models/ListTweetsTimeline.js +51 -0
- package/dist/models/ListTweetsTimelineData.d.ts +32 -0
- package/dist/models/ListTweetsTimelineData.js +51 -0
- package/dist/models/ListTweetsTimelineList.d.ts +32 -0
- package/dist/models/ListTweetsTimelineList.js +51 -0
- package/dist/models/ListTweetsTimelineResponse.d.ts +32 -0
- package/dist/models/ListTweetsTimelineResponse.js +51 -0
- package/dist/models/Media.d.ts +92 -0
- package/dist/models/Media.js +80 -0
- package/dist/models/MediaOriginalInfo.d.ts +43 -0
- package/dist/models/MediaOriginalInfo.js +54 -0
- package/dist/models/ModuleEntry.d.ts +38 -0
- package/dist/models/ModuleEntry.js +54 -0
- package/dist/models/ModuleItem.d.ts +38 -0
- package/dist/models/ModuleItem.js +54 -0
- package/dist/models/OneFactorLoginEligibility.d.ts +31 -0
- package/dist/models/OneFactorLoginEligibility.js +50 -0
- package/dist/models/OtherResponse.d.ts +32 -0
- package/dist/models/OtherResponse.js +51 -0
- package/dist/models/PostCreateRetweetRequest.d.ts +38 -0
- package/dist/models/PostCreateRetweetRequest.js +54 -0
- package/dist/models/PostCreateTweetRequest.d.ts +45 -0
- package/dist/models/PostCreateTweetRequest.js +58 -0
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +139 -0
- package/dist/models/PostCreateTweetRequestFeatures.js +104 -0
- package/dist/models/PostCreateTweetRequestVariables.d.ts +50 -0
- package/dist/models/PostCreateTweetRequestVariables.js +60 -0
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +37 -0
- package/dist/models/PostCreateTweetRequestVariablesMedia.js +53 -0
- package/dist/models/PostDeleteRetweetRequest.d.ts +38 -0
- package/dist/models/PostDeleteRetweetRequest.js +54 -0
- package/dist/models/PostDeleteRetweetRequestVariables.d.ts +37 -0
- package/dist/models/PostDeleteRetweetRequestVariables.js +53 -0
- package/dist/models/PostDeleteTweetRequest.d.ts +38 -0
- package/dist/models/PostDeleteTweetRequest.js +54 -0
- package/dist/models/PostDeleteTweetRequestVariables.d.ts +37 -0
- package/dist/models/PostDeleteTweetRequestVariables.js +53 -0
- package/dist/models/PostFavoriteTweetRequest.d.ts +38 -0
- package/dist/models/PostFavoriteTweetRequest.js +54 -0
- package/dist/models/PostUnfavoriteTweetRequest.d.ts +38 -0
- package/dist/models/PostUnfavoriteTweetRequest.js +54 -0
- package/dist/models/ProfileResponse.d.ts +32 -0
- package/dist/models/ProfileResponse.js +51 -0
- package/dist/models/ProfileResponseData.d.ts +32 -0
- package/dist/models/ProfileResponseData.js +51 -0
- package/dist/models/Retweet.d.ts +38 -0
- package/dist/models/Retweet.js +54 -0
- package/dist/models/RetweetLegacy.d.ts +31 -0
- package/dist/models/RetweetLegacy.js +50 -0
- package/dist/models/Session.d.ts +112 -0
- package/dist/models/Session.js +92 -0
- package/dist/models/SocialContext.d.ts +43 -0
- package/dist/models/SocialContext.js +54 -0
- package/dist/models/Timeline.d.ts +44 -0
- package/dist/models/Timeline.js +56 -0
- package/dist/models/TimelineAddEntries.d.ts +39 -0
- package/dist/models/TimelineAddEntries.js +55 -0
- package/dist/models/TimelineAddEntry.d.ts +44 -0
- package/dist/models/TimelineAddEntry.js +57 -0
- package/dist/models/TimelineClearCache.d.ts +32 -0
- package/dist/models/TimelineClearCache.js +51 -0
- package/dist/models/TimelinePinEntry.d.ts +39 -0
- package/dist/models/TimelinePinEntry.js +55 -0
- package/dist/models/TimelineResponse.d.ts +32 -0
- package/dist/models/TimelineResponse.js +51 -0
- package/dist/models/TimelineTerminateTimeline.d.ts +46 -0
- package/dist/models/TimelineTerminateTimeline.js +61 -0
- package/dist/models/TimelineTimelineCursor.d.ts +68 -0
- package/dist/models/TimelineTimelineCursor.js +73 -0
- package/dist/models/TimelineTimelineItem.d.ts +58 -0
- package/dist/models/TimelineTimelineItem.js +64 -0
- package/dist/models/TimelineTimelineModule.d.ts +70 -0
- package/dist/models/TimelineTimelineModule.js +69 -0
- package/dist/models/TimelineTweet.d.ts +65 -0
- package/dist/models/TimelineTweet.js +68 -0
- package/dist/models/TimelineUser.d.ts +59 -0
- package/dist/models/TimelineUser.js +66 -0
- package/dist/models/TimelineV2.d.ts +32 -0
- package/dist/models/TimelineV2.js +51 -0
- package/dist/models/Tweet.d.ts +92 -0
- package/dist/models/Tweet.js +82 -0
- package/dist/models/TweetDetailResponse.d.ts +32 -0
- package/dist/models/TweetDetailResponse.js +51 -0
- package/dist/models/TweetDetailResponseData.d.ts +32 -0
- package/dist/models/TweetDetailResponseData.js +51 -0
- package/dist/models/TweetEditControl.d.ts +49 -0
- package/dist/models/TweetEditControl.js +56 -0
- package/dist/models/TweetEditPrespective.d.ts +37 -0
- package/dist/models/TweetEditPrespective.js +52 -0
- package/dist/models/TweetLegacy.d.ts +154 -0
- package/dist/models/TweetLegacy.js +110 -0
- package/dist/models/TweetTombstone.d.ts +32 -0
- package/dist/models/TweetTombstone.js +51 -0
- package/dist/models/TweetUnion.d.ts +29 -0
- package/dist/models/TweetUnion.js +69 -0
- package/dist/models/TweetViews.d.ts +37 -0
- package/dist/models/TweetViews.js +52 -0
- package/dist/models/TweetWithVisibilityResults.d.ts +39 -0
- package/dist/models/TweetWithVisibilityResults.js +55 -0
- package/dist/models/TypeName.d.ts +30 -0
- package/dist/models/TypeName.js +43 -0
- package/dist/models/UnfavoriteTweet.d.ts +31 -0
- package/dist/models/UnfavoriteTweet.js +50 -0
- package/dist/models/UnfavoriteTweetResponseData.d.ts +32 -0
- package/dist/models/UnfavoriteTweetResponseData.js +51 -0
- package/dist/models/User.d.ts +99 -0
- package/dist/models/User.js +83 -0
- package/dist/models/UserFeatures.d.ts +31 -0
- package/dist/models/UserFeatures.js +50 -0
- package/dist/models/UserLegacy.d.ts +259 -0
- package/dist/models/UserLegacy.js +161 -0
- package/dist/models/UserResponse.d.ts +32 -0
- package/dist/models/UserResponse.js +51 -0
- package/dist/models/UserResponseData.d.ts +32 -0
- package/dist/models/UserResponseData.js +51 -0
- package/dist/models/UserResultByScreenName.d.ts +38 -0
- package/dist/models/UserResultByScreenName.js +54 -0
- package/dist/models/UserResultByScreenNameLegacy.d.ts +67 -0
- package/dist/models/UserResultByScreenNameLegacy.js +62 -0
- package/dist/models/UserResultByScreenNameResult.d.ts +57 -0
- package/dist/models/UserResultByScreenNameResult.js +64 -0
- package/dist/models/UserResultCore.d.ts +32 -0
- package/dist/models/UserResultCore.js +51 -0
- package/dist/models/UserResults.d.ts +32 -0
- package/dist/models/UserResults.js +51 -0
- package/dist/models/UserTweetsData.d.ts +32 -0
- package/dist/models/UserTweetsData.js +51 -0
- package/dist/models/UserTweetsResponse.d.ts +32 -0
- package/dist/models/UserTweetsResponse.js +51 -0
- package/dist/models/UserTweetsResult.d.ts +39 -0
- package/dist/models/UserTweetsResult.js +55 -0
- package/dist/models/UserTweetsUser.d.ts +32 -0
- package/dist/models/UserTweetsUser.js +51 -0
- package/dist/models/index.d.ts +102 -0
- package/dist/models/index.js +120 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +555 -0
- package/package.json +26 -0
- package/src/apis/DefaultApi.ts +114 -0
- package/src/apis/OtherApi.ts +84 -0
- package/src/apis/PostApi.ts +453 -0
- package/src/apis/TweetApi.ts +798 -0
- package/src/apis/UserApi.ts +114 -0
- package/src/apis/UserListApi.ts +198 -0
- package/src/apis/V11GetApi.ts +342 -0
- package/src/apis/V11PostApi.ts +417 -0
- package/src/apis/V20GetApi.ts +412 -0
- package/src/apis/index.ts +11 -0
- package/src/index.ts +5 -0
- package/src/models/BookmarksResponse.ts +73 -0
- package/src/models/BookmarksResponseData.ts +73 -0
- package/src/models/BookmarksTimeline.ts +73 -0
- package/src/models/CommunitiesActions.ts +66 -0
- package/src/models/ContentEntryType.ts +39 -0
- package/src/models/ContentItemType.ts +39 -0
- package/src/models/ContentUnion.ts +83 -0
- package/src/models/CreateRetweet.ts +73 -0
- package/src/models/CreateRetweetResponse.ts +73 -0
- package/src/models/CreateRetweetResponseData.ts +73 -0
- package/src/models/CreateRetweetResponseResult.ts +73 -0
- package/src/models/CreateTweet.ts +73 -0
- package/src/models/CreateTweetResponse.ts +73 -0
- package/src/models/CreateTweetResponseData.ts +73 -0
- package/src/models/CreateTweetResponseResult.ts +73 -0
- package/src/models/DeleteRetweetResponse.ts +73 -0
- package/src/models/DeleteRetweetResponseData.ts +72 -0
- package/src/models/DeleteTweetResponse.ts +73 -0
- package/src/models/DeleteTweetResponseData.ts +72 -0
- package/src/models/DeleteTweetResponseResult.ts +66 -0
- package/src/models/Entities.ts +108 -0
- package/src/models/ExtendedEntities.ts +73 -0
- package/src/models/FavoriteTweet.ts +66 -0
- package/src/models/FavoriteTweetResponseData.ts +73 -0
- package/src/models/FollowResponse.ts +73 -0
- package/src/models/FollowResponseData.ts +73 -0
- package/src/models/FollowResponseResult.ts +88 -0
- package/src/models/FollowResponseUser.ts +73 -0
- package/src/models/FollowTimeline.ts +73 -0
- package/src/models/HomeTimelineHome.ts +73 -0
- package/src/models/HomeTimelineResponseData.ts +73 -0
- package/src/models/InstructionType.ts +40 -0
- package/src/models/InstructionUnion.ts +94 -0
- package/src/models/ItemContentUnion.ts +83 -0
- package/src/models/ItemResult.ts +87 -0
- package/src/models/ListTweetsTimeline.ts +73 -0
- package/src/models/ListTweetsTimelineData.ts +73 -0
- package/src/models/ListTweetsTimelineList.ts +73 -0
- package/src/models/ListTweetsTimelineResponse.ts +73 -0
- package/src/models/Media.ts +161 -0
- package/src/models/MediaOriginalInfo.ts +81 -0
- package/src/models/ModuleEntry.ts +82 -0
- package/src/models/ModuleItem.ts +82 -0
- package/src/models/OneFactorLoginEligibility.ts +66 -0
- package/src/models/OtherResponse.ts +72 -0
- package/src/models/PostCreateRetweetRequest.ts +82 -0
- package/src/models/PostCreateTweetRequest.ts +97 -0
- package/src/models/PostCreateTweetRequestFeatures.ts +228 -0
- package/src/models/PostCreateTweetRequestVariables.ts +100 -0
- package/src/models/PostCreateTweetRequestVariablesMedia.ts +75 -0
- package/src/models/PostDeleteRetweetRequest.ts +82 -0
- package/src/models/PostDeleteRetweetRequestVariables.ts +75 -0
- package/src/models/PostDeleteTweetRequest.ts +82 -0
- package/src/models/PostDeleteTweetRequestVariables.ts +75 -0
- package/src/models/PostFavoriteTweetRequest.ts +82 -0
- package/src/models/PostUnfavoriteTweetRequest.ts +82 -0
- package/src/models/ProfileResponse.ts +73 -0
- package/src/models/ProfileResponseData.ts +73 -0
- package/src/models/Retweet.ts +82 -0
- package/src/models/RetweetLegacy.ts +66 -0
- package/src/models/Session.ts +201 -0
- package/src/models/SocialContext.ts +81 -0
- package/src/models/Timeline.ts +89 -0
- package/src/models/TimelineAddEntries.ts +88 -0
- package/src/models/TimelineAddEntry.ts +91 -0
- package/src/models/TimelineClearCache.ts +73 -0
- package/src/models/TimelinePinEntry.ts +88 -0
- package/src/models/TimelineResponse.ts +73 -0
- package/src/models/TimelineTerminateTimeline.ts +93 -0
- package/src/models/TimelineTimelineCursor.ts +127 -0
- package/src/models/TimelineTimelineItem.ts +119 -0
- package/src/models/TimelineTimelineModule.ts +136 -0
- package/src/models/TimelineTweet.ts +134 -0
- package/src/models/TimelineUser.ts +126 -0
- package/src/models/TimelineV2.ts +73 -0
- package/src/models/Tweet.ts +187 -0
- package/src/models/TweetDetailResponse.ts +73 -0
- package/src/models/TweetDetailResponseData.ts +73 -0
- package/src/models/TweetEditControl.ts +89 -0
- package/src/models/TweetEditPrespective.ts +73 -0
- package/src/models/TweetLegacy.ts +261 -0
- package/src/models/TweetTombstone.ts +72 -0
- package/src/models/TweetUnion.ts +83 -0
- package/src/models/TweetViews.ts +73 -0
- package/src/models/TweetWithVisibilityResults.ts +88 -0
- package/src/models/TypeName.ts +45 -0
- package/src/models/UnfavoriteTweet.ts +66 -0
- package/src/models/UnfavoriteTweetResponseData.ts +73 -0
- package/src/models/User.ts +175 -0
- package/src/models/UserFeatures.ts +66 -0
- package/src/models/UserLegacy.ts +404 -0
- package/src/models/UserResponse.ts +73 -0
- package/src/models/UserResponseData.ts +73 -0
- package/src/models/UserResultByScreenName.ts +82 -0
- package/src/models/UserResultByScreenNameLegacy.ts +113 -0
- package/src/models/UserResultByScreenNameResult.ts +115 -0
- package/src/models/UserResultCore.ts +73 -0
- package/src/models/UserResults.ts +73 -0
- package/src/models/UserTweetsData.ts +73 -0
- package/src/models/UserTweetsResponse.ts +73 -0
- package/src/models/UserTweetsResult.ts +88 -0
- package/src/models/UserTweetsUser.ts +73 -0
- package/src/models/index.ts +104 -0
- package/src/runtime.ts +425 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Entities } from './Entities';
|
|
17
|
+
import {
|
|
18
|
+
EntitiesFromJSON,
|
|
19
|
+
EntitiesFromJSONTyped,
|
|
20
|
+
EntitiesToJSON,
|
|
21
|
+
} from './Entities';
|
|
22
|
+
import type { ExtendedEntities } from './ExtendedEntities';
|
|
23
|
+
import {
|
|
24
|
+
ExtendedEntitiesFromJSON,
|
|
25
|
+
ExtendedEntitiesFromJSONTyped,
|
|
26
|
+
ExtendedEntitiesToJSON,
|
|
27
|
+
} from './ExtendedEntities';
|
|
28
|
+
import type { ItemResult } from './ItemResult';
|
|
29
|
+
import {
|
|
30
|
+
ItemResultFromJSON,
|
|
31
|
+
ItemResultFromJSONTyped,
|
|
32
|
+
ItemResultToJSON,
|
|
33
|
+
} from './ItemResult';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface TweetLegacy
|
|
39
|
+
*/
|
|
40
|
+
export interface TweetLegacy {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof TweetLegacy
|
|
45
|
+
*/
|
|
46
|
+
bookmarkCount: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof TweetLegacy
|
|
51
|
+
*/
|
|
52
|
+
bookmarked: boolean;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof TweetLegacy
|
|
57
|
+
*/
|
|
58
|
+
conversationIdStr: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof TweetLegacy
|
|
63
|
+
*/
|
|
64
|
+
createdAt: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Array<number>}
|
|
68
|
+
* @memberof TweetLegacy
|
|
69
|
+
*/
|
|
70
|
+
displayTextRange: Array<number>;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Entities}
|
|
74
|
+
* @memberof TweetLegacy
|
|
75
|
+
*/
|
|
76
|
+
entities: Entities;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {ExtendedEntities}
|
|
80
|
+
* @memberof TweetLegacy
|
|
81
|
+
*/
|
|
82
|
+
extendedEntities?: ExtendedEntities;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof TweetLegacy
|
|
87
|
+
*/
|
|
88
|
+
favoriteCount: number;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {boolean}
|
|
92
|
+
* @memberof TweetLegacy
|
|
93
|
+
*/
|
|
94
|
+
favorited: boolean;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof TweetLegacy
|
|
99
|
+
*/
|
|
100
|
+
fullText: string;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof TweetLegacy
|
|
105
|
+
*/
|
|
106
|
+
idStr: string;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {boolean}
|
|
110
|
+
* @memberof TweetLegacy
|
|
111
|
+
*/
|
|
112
|
+
isQuoteStatus: boolean;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof TweetLegacy
|
|
117
|
+
*/
|
|
118
|
+
lang: string;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {boolean}
|
|
122
|
+
* @memberof TweetLegacy
|
|
123
|
+
*/
|
|
124
|
+
possiblySensitive?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {boolean}
|
|
128
|
+
* @memberof TweetLegacy
|
|
129
|
+
*/
|
|
130
|
+
possiblySensitiveEditable?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {number}
|
|
134
|
+
* @memberof TweetLegacy
|
|
135
|
+
*/
|
|
136
|
+
quoteCount: number;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {number}
|
|
140
|
+
* @memberof TweetLegacy
|
|
141
|
+
*/
|
|
142
|
+
replyCount: number;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @type {number}
|
|
146
|
+
* @memberof TweetLegacy
|
|
147
|
+
*/
|
|
148
|
+
retweetCount: number;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @type {boolean}
|
|
152
|
+
* @memberof TweetLegacy
|
|
153
|
+
*/
|
|
154
|
+
retweeted: boolean;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @type {ItemResult}
|
|
158
|
+
* @memberof TweetLegacy
|
|
159
|
+
*/
|
|
160
|
+
retweetedStatusResult?: ItemResult;
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @type {string}
|
|
164
|
+
* @memberof TweetLegacy
|
|
165
|
+
*/
|
|
166
|
+
userIdStr: string;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Check if a given object implements the TweetLegacy interface.
|
|
171
|
+
*/
|
|
172
|
+
export function instanceOfTweetLegacy(value: object): boolean {
|
|
173
|
+
let isInstance = true;
|
|
174
|
+
isInstance = isInstance && "bookmarkCount" in value;
|
|
175
|
+
isInstance = isInstance && "bookmarked" in value;
|
|
176
|
+
isInstance = isInstance && "conversationIdStr" in value;
|
|
177
|
+
isInstance = isInstance && "createdAt" in value;
|
|
178
|
+
isInstance = isInstance && "displayTextRange" in value;
|
|
179
|
+
isInstance = isInstance && "entities" in value;
|
|
180
|
+
isInstance = isInstance && "favoriteCount" in value;
|
|
181
|
+
isInstance = isInstance && "favorited" in value;
|
|
182
|
+
isInstance = isInstance && "fullText" in value;
|
|
183
|
+
isInstance = isInstance && "idStr" in value;
|
|
184
|
+
isInstance = isInstance && "isQuoteStatus" in value;
|
|
185
|
+
isInstance = isInstance && "lang" in value;
|
|
186
|
+
isInstance = isInstance && "quoteCount" in value;
|
|
187
|
+
isInstance = isInstance && "replyCount" in value;
|
|
188
|
+
isInstance = isInstance && "retweetCount" in value;
|
|
189
|
+
isInstance = isInstance && "retweeted" in value;
|
|
190
|
+
isInstance = isInstance && "userIdStr" in value;
|
|
191
|
+
|
|
192
|
+
return isInstance;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export function TweetLegacyFromJSON(json: any): TweetLegacy {
|
|
196
|
+
return TweetLegacyFromJSONTyped(json, false);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export function TweetLegacyFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetLegacy {
|
|
200
|
+
if ((json === undefined) || (json === null)) {
|
|
201
|
+
return json;
|
|
202
|
+
}
|
|
203
|
+
return {
|
|
204
|
+
|
|
205
|
+
'bookmarkCount': json['bookmark_count'],
|
|
206
|
+
'bookmarked': json['bookmarked'],
|
|
207
|
+
'conversationIdStr': json['conversation_id_str'],
|
|
208
|
+
'createdAt': json['created_at'],
|
|
209
|
+
'displayTextRange': json['display_text_range'],
|
|
210
|
+
'entities': EntitiesFromJSON(json['entities']),
|
|
211
|
+
'extendedEntities': !exists(json, 'extended_entities') ? undefined : ExtendedEntitiesFromJSON(json['extended_entities']),
|
|
212
|
+
'favoriteCount': json['favorite_count'],
|
|
213
|
+
'favorited': json['favorited'],
|
|
214
|
+
'fullText': json['full_text'],
|
|
215
|
+
'idStr': json['id_str'],
|
|
216
|
+
'isQuoteStatus': json['is_quote_status'],
|
|
217
|
+
'lang': json['lang'],
|
|
218
|
+
'possiblySensitive': !exists(json, 'possibly_sensitive') ? undefined : json['possibly_sensitive'],
|
|
219
|
+
'possiblySensitiveEditable': !exists(json, 'possibly_sensitive_editable') ? undefined : json['possibly_sensitive_editable'],
|
|
220
|
+
'quoteCount': json['quote_count'],
|
|
221
|
+
'replyCount': json['reply_count'],
|
|
222
|
+
'retweetCount': json['retweet_count'],
|
|
223
|
+
'retweeted': json['retweeted'],
|
|
224
|
+
'retweetedStatusResult': !exists(json, 'retweeted_status_result') ? undefined : ItemResultFromJSON(json['retweeted_status_result']),
|
|
225
|
+
'userIdStr': json['user_id_str'],
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export function TweetLegacyToJSON(value?: TweetLegacy | null): any {
|
|
230
|
+
if (value === undefined) {
|
|
231
|
+
return undefined;
|
|
232
|
+
}
|
|
233
|
+
if (value === null) {
|
|
234
|
+
return null;
|
|
235
|
+
}
|
|
236
|
+
return {
|
|
237
|
+
|
|
238
|
+
'bookmark_count': value.bookmarkCount,
|
|
239
|
+
'bookmarked': value.bookmarked,
|
|
240
|
+
'conversation_id_str': value.conversationIdStr,
|
|
241
|
+
'created_at': value.createdAt,
|
|
242
|
+
'display_text_range': value.displayTextRange,
|
|
243
|
+
'entities': EntitiesToJSON(value.entities),
|
|
244
|
+
'extended_entities': ExtendedEntitiesToJSON(value.extendedEntities),
|
|
245
|
+
'favorite_count': value.favoriteCount,
|
|
246
|
+
'favorited': value.favorited,
|
|
247
|
+
'full_text': value.fullText,
|
|
248
|
+
'id_str': value.idStr,
|
|
249
|
+
'is_quote_status': value.isQuoteStatus,
|
|
250
|
+
'lang': value.lang,
|
|
251
|
+
'possibly_sensitive': value.possiblySensitive,
|
|
252
|
+
'possibly_sensitive_editable': value.possiblySensitiveEditable,
|
|
253
|
+
'quote_count': value.quoteCount,
|
|
254
|
+
'reply_count': value.replyCount,
|
|
255
|
+
'retweet_count': value.retweetCount,
|
|
256
|
+
'retweeted': value.retweeted,
|
|
257
|
+
'retweeted_status_result': ItemResultToJSON(value.retweetedStatusResult),
|
|
258
|
+
'user_id_str': value.userIdStr,
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { TypeName } from './TypeName';
|
|
17
|
+
import {
|
|
18
|
+
TypeNameFromJSON,
|
|
19
|
+
TypeNameFromJSONTyped,
|
|
20
|
+
TypeNameToJSON,
|
|
21
|
+
} from './TypeName';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TweetTombstone
|
|
27
|
+
*/
|
|
28
|
+
export interface TweetTombstone {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TypeName}
|
|
32
|
+
* @memberof TweetTombstone
|
|
33
|
+
*/
|
|
34
|
+
typename?: TypeName;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TweetTombstone interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTweetTombstone(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
|
|
43
|
+
return isInstance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function TweetTombstoneFromJSON(json: any): TweetTombstone {
|
|
47
|
+
return TweetTombstoneFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function TweetTombstoneFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetTombstone {
|
|
51
|
+
if ((json === undefined) || (json === null)) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'typename': !exists(json, '__typename') ? undefined : TypeNameFromJSON(json['__typename']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function TweetTombstoneToJSON(value?: TweetTombstone | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'__typename': TypeNameToJSON(value.typename),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import {
|
|
16
|
+
Tweet,
|
|
17
|
+
instanceOfTweet,
|
|
18
|
+
TweetFromJSON,
|
|
19
|
+
TweetFromJSONTyped,
|
|
20
|
+
TweetToJSON,
|
|
21
|
+
} from './Tweet';
|
|
22
|
+
import {
|
|
23
|
+
TweetTombstone,
|
|
24
|
+
instanceOfTweetTombstone,
|
|
25
|
+
TweetTombstoneFromJSON,
|
|
26
|
+
TweetTombstoneFromJSONTyped,
|
|
27
|
+
TweetTombstoneToJSON,
|
|
28
|
+
} from './TweetTombstone';
|
|
29
|
+
import {
|
|
30
|
+
TweetWithVisibilityResults,
|
|
31
|
+
instanceOfTweetWithVisibilityResults,
|
|
32
|
+
TweetWithVisibilityResultsFromJSON,
|
|
33
|
+
TweetWithVisibilityResultsFromJSONTyped,
|
|
34
|
+
TweetWithVisibilityResultsToJSON,
|
|
35
|
+
} from './TweetWithVisibilityResults';
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @type TweetUnion
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
export type TweetUnion = { typename: 'Tweet' } & Tweet | { typename: 'TweetTombstone' } & TweetTombstone | { typename: 'TweetWithVisibilityResults' } & TweetWithVisibilityResults;
|
|
43
|
+
|
|
44
|
+
export function TweetUnionFromJSON(json: any): TweetUnion {
|
|
45
|
+
return TweetUnionFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function TweetUnionFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetUnion {
|
|
49
|
+
if ((json === undefined) || (json === null)) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
switch (json['__typename']) {
|
|
53
|
+
case 'Tweet':
|
|
54
|
+
return {...TweetFromJSONTyped(json, true), typename: 'Tweet'};
|
|
55
|
+
case 'TweetTombstone':
|
|
56
|
+
return {...TweetTombstoneFromJSONTyped(json, true), typename: 'TweetTombstone'};
|
|
57
|
+
case 'TweetWithVisibilityResults':
|
|
58
|
+
return {...TweetWithVisibilityResultsFromJSONTyped(json, true), typename: 'TweetWithVisibilityResults'};
|
|
59
|
+
default:
|
|
60
|
+
throw new Error(`No variant of TweetUnion exists with 'typename=${json['__typename']}'`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function TweetUnionToJSON(value?: TweetUnion | null): any {
|
|
65
|
+
if (value === undefined) {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
if (value === null) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
switch (value['typename']) {
|
|
72
|
+
case 'Tweet':
|
|
73
|
+
return TweetToJSON(value);
|
|
74
|
+
case 'TweetTombstone':
|
|
75
|
+
return TweetTombstoneToJSON(value);
|
|
76
|
+
case 'TweetWithVisibilityResults':
|
|
77
|
+
return TweetWithVisibilityResultsToJSON(value);
|
|
78
|
+
default:
|
|
79
|
+
throw new Error(`No variant of TweetUnion exists with 'typename=${value['typename']}'`);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TweetViews
|
|
20
|
+
*/
|
|
21
|
+
export interface TweetViews {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TweetViews
|
|
26
|
+
*/
|
|
27
|
+
count?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TweetViews
|
|
32
|
+
*/
|
|
33
|
+
state?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the TweetViews interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfTweetViews(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
|
|
42
|
+
return isInstance;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function TweetViewsFromJSON(json: any): TweetViews {
|
|
46
|
+
return TweetViewsFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function TweetViewsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetViews {
|
|
50
|
+
if ((json === undefined) || (json === null)) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
56
|
+
'state': !exists(json, 'state') ? undefined : json['state'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function TweetViewsToJSON(value?: TweetViews | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'count': value.count,
|
|
70
|
+
'state': value.state,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Tweet } from './Tweet';
|
|
17
|
+
import {
|
|
18
|
+
TweetFromJSON,
|
|
19
|
+
TweetFromJSONTyped,
|
|
20
|
+
TweetToJSON,
|
|
21
|
+
} from './Tweet';
|
|
22
|
+
import type { TypeName } from './TypeName';
|
|
23
|
+
import {
|
|
24
|
+
TypeNameFromJSON,
|
|
25
|
+
TypeNameFromJSONTyped,
|
|
26
|
+
TypeNameToJSON,
|
|
27
|
+
} from './TypeName';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface TweetWithVisibilityResults
|
|
33
|
+
*/
|
|
34
|
+
export interface TweetWithVisibilityResults {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {TypeName}
|
|
38
|
+
* @memberof TweetWithVisibilityResults
|
|
39
|
+
*/
|
|
40
|
+
typename: TypeName;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Tweet}
|
|
44
|
+
* @memberof TweetWithVisibilityResults
|
|
45
|
+
*/
|
|
46
|
+
tweet: Tweet;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the TweetWithVisibilityResults interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfTweetWithVisibilityResults(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "typename" in value;
|
|
55
|
+
isInstance = isInstance && "tweet" in value;
|
|
56
|
+
|
|
57
|
+
return isInstance;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function TweetWithVisibilityResultsFromJSON(json: any): TweetWithVisibilityResults {
|
|
61
|
+
return TweetWithVisibilityResultsFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function TweetWithVisibilityResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetWithVisibilityResults {
|
|
65
|
+
if ((json === undefined) || (json === null)) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'typename': TypeNameFromJSON(json['__typename']),
|
|
71
|
+
'tweet': TweetFromJSON(json['tweet']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function TweetWithVisibilityResultsToJSON(value?: TweetWithVisibilityResults | null): any {
|
|
76
|
+
if (value === undefined) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
if (value === null) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'__typename': TypeNameToJSON(value.typename),
|
|
85
|
+
'tweet': TweetToJSON(value.tweet),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const TypeName = {
|
|
21
|
+
TimelineTweet: 'TimelineTweet',
|
|
22
|
+
TimelineTimelineItem: 'TimelineTimelineItem',
|
|
23
|
+
TimelineUser: 'TimelineUser',
|
|
24
|
+
TimelineTimelineCursor: 'TimelineTimelineCursor',
|
|
25
|
+
TweetWithVisibilityResults: 'TweetWithVisibilityResults',
|
|
26
|
+
TimelineTimelineModule: 'TimelineTimelineModule',
|
|
27
|
+
TweetTombstone: 'TweetTombstone',
|
|
28
|
+
Tweet: 'Tweet',
|
|
29
|
+
User: 'User'
|
|
30
|
+
} as const;
|
|
31
|
+
export type TypeName = typeof TypeName[keyof typeof TypeName];
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export function TypeNameFromJSON(json: any): TypeName {
|
|
35
|
+
return TypeNameFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function TypeNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypeName {
|
|
39
|
+
return json as TypeName;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function TypeNameToJSON(value?: TypeName | null): any {
|
|
43
|
+
return value as any;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UnfavoriteTweet
|
|
20
|
+
*/
|
|
21
|
+
export interface UnfavoriteTweet {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UnfavoriteTweet
|
|
26
|
+
*/
|
|
27
|
+
unfavoriteTweet: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UnfavoriteTweet interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUnfavoriteTweet(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "unfavoriteTweet" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function UnfavoriteTweetFromJSON(json: any): UnfavoriteTweet {
|
|
41
|
+
return UnfavoriteTweetFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function UnfavoriteTweetFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnfavoriteTweet {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'unfavoriteTweet': json['unfavorite_tweet'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function UnfavoriteTweetToJSON(value?: UnfavoriteTweet | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'unfavorite_tweet': value.unfavoriteTweet,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|