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,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
|
+
import type { UnfavoriteTweet } from './UnfavoriteTweet';
|
|
17
|
+
import {
|
|
18
|
+
UnfavoriteTweetFromJSON,
|
|
19
|
+
UnfavoriteTweetFromJSONTyped,
|
|
20
|
+
UnfavoriteTweetToJSON,
|
|
21
|
+
} from './UnfavoriteTweet';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface UnfavoriteTweetResponseData
|
|
27
|
+
*/
|
|
28
|
+
export interface UnfavoriteTweetResponseData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {UnfavoriteTweet}
|
|
32
|
+
* @memberof UnfavoriteTweetResponseData
|
|
33
|
+
*/
|
|
34
|
+
data: UnfavoriteTweet;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UnfavoriteTweetResponseData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfUnfavoriteTweetResponseData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "data" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UnfavoriteTweetResponseDataFromJSON(json: any): UnfavoriteTweetResponseData {
|
|
48
|
+
return UnfavoriteTweetResponseDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UnfavoriteTweetResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnfavoriteTweetResponseData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'data': UnfavoriteTweetFromJSON(json['data']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function UnfavoriteTweetResponseDataToJSON(value?: UnfavoriteTweetResponseData | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': UnfavoriteTweetToJSON(value.data),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,175 @@
|
|
|
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
|
+
import type { UserLegacy } from './UserLegacy';
|
|
23
|
+
import {
|
|
24
|
+
UserLegacyFromJSON,
|
|
25
|
+
UserLegacyFromJSONTyped,
|
|
26
|
+
UserLegacyToJSON,
|
|
27
|
+
} from './UserLegacy';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface User
|
|
33
|
+
*/
|
|
34
|
+
export interface User {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {TypeName}
|
|
38
|
+
* @memberof User
|
|
39
|
+
*/
|
|
40
|
+
typename: TypeName;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {object}
|
|
44
|
+
* @memberof User
|
|
45
|
+
*/
|
|
46
|
+
affiliatesHighlightedLabel: object;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {object}
|
|
50
|
+
* @memberof User
|
|
51
|
+
*/
|
|
52
|
+
businessAccount?: object;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {boolean}
|
|
56
|
+
* @memberof User
|
|
57
|
+
*/
|
|
58
|
+
hasGraduatedAccess?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof User
|
|
63
|
+
*/
|
|
64
|
+
hasNftAvatar?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof User
|
|
69
|
+
*/
|
|
70
|
+
id: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof User
|
|
75
|
+
*/
|
|
76
|
+
isBlueVerified: boolean;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {UserLegacy}
|
|
80
|
+
* @memberof User
|
|
81
|
+
*/
|
|
82
|
+
legacy: UserLegacy;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof User
|
|
87
|
+
*/
|
|
88
|
+
restId: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {boolean}
|
|
92
|
+
* @memberof User
|
|
93
|
+
*/
|
|
94
|
+
superFollowEligible: boolean;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {boolean}
|
|
98
|
+
* @memberof User
|
|
99
|
+
*/
|
|
100
|
+
superFollowedBy: boolean;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {boolean}
|
|
104
|
+
* @memberof User
|
|
105
|
+
*/
|
|
106
|
+
superFollowing: boolean;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the User interface.
|
|
111
|
+
*/
|
|
112
|
+
export function instanceOfUser(value: object): boolean {
|
|
113
|
+
let isInstance = true;
|
|
114
|
+
isInstance = isInstance && "typename" in value;
|
|
115
|
+
isInstance = isInstance && "affiliatesHighlightedLabel" in value;
|
|
116
|
+
isInstance = isInstance && "id" in value;
|
|
117
|
+
isInstance = isInstance && "isBlueVerified" in value;
|
|
118
|
+
isInstance = isInstance && "legacy" in value;
|
|
119
|
+
isInstance = isInstance && "restId" in value;
|
|
120
|
+
isInstance = isInstance && "superFollowEligible" in value;
|
|
121
|
+
isInstance = isInstance && "superFollowedBy" in value;
|
|
122
|
+
isInstance = isInstance && "superFollowing" in value;
|
|
123
|
+
|
|
124
|
+
return isInstance;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function UserFromJSON(json: any): User {
|
|
128
|
+
return UserFromJSONTyped(json, false);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User {
|
|
132
|
+
if ((json === undefined) || (json === null)) {
|
|
133
|
+
return json;
|
|
134
|
+
}
|
|
135
|
+
return {
|
|
136
|
+
|
|
137
|
+
'typename': TypeNameFromJSON(json['__typename']),
|
|
138
|
+
'affiliatesHighlightedLabel': json['affiliates_highlighted_label'],
|
|
139
|
+
'businessAccount': !exists(json, 'business_account') ? undefined : json['business_account'],
|
|
140
|
+
'hasGraduatedAccess': !exists(json, 'has_graduated_access') ? undefined : json['has_graduated_access'],
|
|
141
|
+
'hasNftAvatar': !exists(json, 'has_nft_avatar') ? undefined : json['has_nft_avatar'],
|
|
142
|
+
'id': json['id'],
|
|
143
|
+
'isBlueVerified': json['is_blue_verified'],
|
|
144
|
+
'legacy': UserLegacyFromJSON(json['legacy']),
|
|
145
|
+
'restId': json['rest_id'],
|
|
146
|
+
'superFollowEligible': json['super_follow_eligible'],
|
|
147
|
+
'superFollowedBy': json['super_followed_by'],
|
|
148
|
+
'superFollowing': json['super_following'],
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function UserToJSON(value?: User | null): any {
|
|
153
|
+
if (value === undefined) {
|
|
154
|
+
return undefined;
|
|
155
|
+
}
|
|
156
|
+
if (value === null) {
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
|
|
161
|
+
'__typename': TypeNameToJSON(value.typename),
|
|
162
|
+
'affiliates_highlighted_label': value.affiliatesHighlightedLabel,
|
|
163
|
+
'business_account': value.businessAccount,
|
|
164
|
+
'has_graduated_access': value.hasGraduatedAccess,
|
|
165
|
+
'has_nft_avatar': value.hasNftAvatar,
|
|
166
|
+
'id': value.id,
|
|
167
|
+
'is_blue_verified': value.isBlueVerified,
|
|
168
|
+
'legacy': UserLegacyToJSON(value.legacy),
|
|
169
|
+
'rest_id': value.restId,
|
|
170
|
+
'super_follow_eligible': value.superFollowEligible,
|
|
171
|
+
'super_followed_by': value.superFollowedBy,
|
|
172
|
+
'super_following': value.superFollowing,
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
@@ -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 UserFeatures
|
|
20
|
+
*/
|
|
21
|
+
export interface UserFeatures {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UserFeatures
|
|
26
|
+
*/
|
|
27
|
+
mediatoolStudioLibrary: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UserFeatures interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUserFeatures(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "mediatoolStudioLibrary" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function UserFeaturesFromJSON(json: any): UserFeatures {
|
|
41
|
+
return UserFeaturesFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function UserFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserFeatures {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'mediatoolStudioLibrary': json['mediatool_studio_library'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function UserFeaturesToJSON(value?: UserFeatures | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'mediatool_studio_library': value.mediatoolStudioLibrary,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,404 @@
|
|
|
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 UserLegacy
|
|
20
|
+
*/
|
|
21
|
+
export interface UserLegacy {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UserLegacy
|
|
26
|
+
*/
|
|
27
|
+
blockedBy: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof UserLegacy
|
|
32
|
+
*/
|
|
33
|
+
blocking: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof UserLegacy
|
|
38
|
+
*/
|
|
39
|
+
canDm: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof UserLegacy
|
|
44
|
+
*/
|
|
45
|
+
canMediaTag: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UserLegacy
|
|
50
|
+
*/
|
|
51
|
+
createdAt: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof UserLegacy
|
|
56
|
+
*/
|
|
57
|
+
defaultProfile: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof UserLegacy
|
|
62
|
+
*/
|
|
63
|
+
defaultProfileImage: boolean;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof UserLegacy
|
|
68
|
+
*/
|
|
69
|
+
description: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {object}
|
|
73
|
+
* @memberof UserLegacy
|
|
74
|
+
*/
|
|
75
|
+
entities: object;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof UserLegacy
|
|
80
|
+
*/
|
|
81
|
+
fastFollowersCount: number;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof UserLegacy
|
|
86
|
+
*/
|
|
87
|
+
favouritesCount: number;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof UserLegacy
|
|
92
|
+
*/
|
|
93
|
+
followRequestSent: boolean;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof UserLegacy
|
|
98
|
+
*/
|
|
99
|
+
followedBy: boolean;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof UserLegacy
|
|
104
|
+
*/
|
|
105
|
+
followersCount: number;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {boolean}
|
|
109
|
+
* @memberof UserLegacy
|
|
110
|
+
*/
|
|
111
|
+
following: boolean;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof UserLegacy
|
|
116
|
+
*/
|
|
117
|
+
friendsCount: number;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {boolean}
|
|
121
|
+
* @memberof UserLegacy
|
|
122
|
+
*/
|
|
123
|
+
hasCustomTimelines: boolean;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {boolean}
|
|
127
|
+
* @memberof UserLegacy
|
|
128
|
+
*/
|
|
129
|
+
isTranslator: boolean;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {number}
|
|
133
|
+
* @memberof UserLegacy
|
|
134
|
+
*/
|
|
135
|
+
listedCount: number;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof UserLegacy
|
|
140
|
+
*/
|
|
141
|
+
location: string;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {number}
|
|
145
|
+
* @memberof UserLegacy
|
|
146
|
+
*/
|
|
147
|
+
mediaCount: number;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {boolean}
|
|
151
|
+
* @memberof UserLegacy
|
|
152
|
+
*/
|
|
153
|
+
muting: boolean;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof UserLegacy
|
|
158
|
+
*/
|
|
159
|
+
name: string;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {number}
|
|
163
|
+
* @memberof UserLegacy
|
|
164
|
+
*/
|
|
165
|
+
normalFollowersCount: number;
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @type {boolean}
|
|
169
|
+
* @memberof UserLegacy
|
|
170
|
+
*/
|
|
171
|
+
notifications: boolean;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @type {Array<string>}
|
|
175
|
+
* @memberof UserLegacy
|
|
176
|
+
*/
|
|
177
|
+
pinnedTweetIdsStr: Array<string>;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {boolean}
|
|
181
|
+
* @memberof UserLegacy
|
|
182
|
+
*/
|
|
183
|
+
possiblySensitive: boolean;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {object}
|
|
187
|
+
* @memberof UserLegacy
|
|
188
|
+
*/
|
|
189
|
+
profileBannerExtensions?: object;
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @type {string}
|
|
193
|
+
* @memberof UserLegacy
|
|
194
|
+
*/
|
|
195
|
+
profileBannerUrl?: string;
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @type {object}
|
|
199
|
+
* @memberof UserLegacy
|
|
200
|
+
*/
|
|
201
|
+
profileImageExtensions?: object;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @type {string}
|
|
205
|
+
* @memberof UserLegacy
|
|
206
|
+
*/
|
|
207
|
+
profileImageUrlHttps: string;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @type {string}
|
|
211
|
+
* @memberof UserLegacy
|
|
212
|
+
*/
|
|
213
|
+
profileInterstitialType: string;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {boolean}
|
|
217
|
+
* @memberof UserLegacy
|
|
218
|
+
*/
|
|
219
|
+
_protected: boolean;
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @type {string}
|
|
223
|
+
* @memberof UserLegacy
|
|
224
|
+
*/
|
|
225
|
+
screenName: string;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @type {number}
|
|
229
|
+
* @memberof UserLegacy
|
|
230
|
+
*/
|
|
231
|
+
statusesCount: number;
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @type {string}
|
|
235
|
+
* @memberof UserLegacy
|
|
236
|
+
*/
|
|
237
|
+
translatorType: string;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @type {string}
|
|
241
|
+
* @memberof UserLegacy
|
|
242
|
+
*/
|
|
243
|
+
url?: string;
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @type {boolean}
|
|
247
|
+
* @memberof UserLegacy
|
|
248
|
+
*/
|
|
249
|
+
verified: boolean;
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @type {boolean}
|
|
253
|
+
* @memberof UserLegacy
|
|
254
|
+
*/
|
|
255
|
+
wantRetweets: boolean;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Check if a given object implements the UserLegacy interface.
|
|
260
|
+
*/
|
|
261
|
+
export function instanceOfUserLegacy(value: object): boolean {
|
|
262
|
+
let isInstance = true;
|
|
263
|
+
isInstance = isInstance && "blockedBy" in value;
|
|
264
|
+
isInstance = isInstance && "blocking" in value;
|
|
265
|
+
isInstance = isInstance && "canDm" in value;
|
|
266
|
+
isInstance = isInstance && "canMediaTag" in value;
|
|
267
|
+
isInstance = isInstance && "createdAt" in value;
|
|
268
|
+
isInstance = isInstance && "defaultProfile" in value;
|
|
269
|
+
isInstance = isInstance && "defaultProfileImage" in value;
|
|
270
|
+
isInstance = isInstance && "description" in value;
|
|
271
|
+
isInstance = isInstance && "entities" in value;
|
|
272
|
+
isInstance = isInstance && "fastFollowersCount" in value;
|
|
273
|
+
isInstance = isInstance && "favouritesCount" in value;
|
|
274
|
+
isInstance = isInstance && "followRequestSent" in value;
|
|
275
|
+
isInstance = isInstance && "followedBy" in value;
|
|
276
|
+
isInstance = isInstance && "followersCount" in value;
|
|
277
|
+
isInstance = isInstance && "following" in value;
|
|
278
|
+
isInstance = isInstance && "friendsCount" in value;
|
|
279
|
+
isInstance = isInstance && "hasCustomTimelines" in value;
|
|
280
|
+
isInstance = isInstance && "isTranslator" in value;
|
|
281
|
+
isInstance = isInstance && "listedCount" in value;
|
|
282
|
+
isInstance = isInstance && "location" in value;
|
|
283
|
+
isInstance = isInstance && "mediaCount" in value;
|
|
284
|
+
isInstance = isInstance && "muting" in value;
|
|
285
|
+
isInstance = isInstance && "name" in value;
|
|
286
|
+
isInstance = isInstance && "normalFollowersCount" in value;
|
|
287
|
+
isInstance = isInstance && "notifications" in value;
|
|
288
|
+
isInstance = isInstance && "pinnedTweetIdsStr" in value;
|
|
289
|
+
isInstance = isInstance && "possiblySensitive" in value;
|
|
290
|
+
isInstance = isInstance && "profileImageUrlHttps" in value;
|
|
291
|
+
isInstance = isInstance && "profileInterstitialType" in value;
|
|
292
|
+
isInstance = isInstance && "_protected" in value;
|
|
293
|
+
isInstance = isInstance && "screenName" in value;
|
|
294
|
+
isInstance = isInstance && "statusesCount" in value;
|
|
295
|
+
isInstance = isInstance && "translatorType" in value;
|
|
296
|
+
isInstance = isInstance && "verified" in value;
|
|
297
|
+
isInstance = isInstance && "wantRetweets" in value;
|
|
298
|
+
|
|
299
|
+
return isInstance;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export function UserLegacyFromJSON(json: any): UserLegacy {
|
|
303
|
+
return UserLegacyFromJSONTyped(json, false);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export function UserLegacyFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLegacy {
|
|
307
|
+
if ((json === undefined) || (json === null)) {
|
|
308
|
+
return json;
|
|
309
|
+
}
|
|
310
|
+
return {
|
|
311
|
+
|
|
312
|
+
'blockedBy': json['blocked_by'],
|
|
313
|
+
'blocking': json['blocking'],
|
|
314
|
+
'canDm': json['can_dm'],
|
|
315
|
+
'canMediaTag': json['can_media_tag'],
|
|
316
|
+
'createdAt': json['created_at'],
|
|
317
|
+
'defaultProfile': json['default_profile'],
|
|
318
|
+
'defaultProfileImage': json['default_profile_image'],
|
|
319
|
+
'description': json['description'],
|
|
320
|
+
'entities': json['entities'],
|
|
321
|
+
'fastFollowersCount': json['fast_followers_count'],
|
|
322
|
+
'favouritesCount': json['favourites_count'],
|
|
323
|
+
'followRequestSent': json['follow_request_sent'],
|
|
324
|
+
'followedBy': json['followed_by'],
|
|
325
|
+
'followersCount': json['followers_count'],
|
|
326
|
+
'following': json['following'],
|
|
327
|
+
'friendsCount': json['friends_count'],
|
|
328
|
+
'hasCustomTimelines': json['has_custom_timelines'],
|
|
329
|
+
'isTranslator': json['is_translator'],
|
|
330
|
+
'listedCount': json['listed_count'],
|
|
331
|
+
'location': json['location'],
|
|
332
|
+
'mediaCount': json['media_count'],
|
|
333
|
+
'muting': json['muting'],
|
|
334
|
+
'name': json['name'],
|
|
335
|
+
'normalFollowersCount': json['normal_followers_count'],
|
|
336
|
+
'notifications': json['notifications'],
|
|
337
|
+
'pinnedTweetIdsStr': json['pinned_tweet_ids_str'],
|
|
338
|
+
'possiblySensitive': json['possibly_sensitive'],
|
|
339
|
+
'profileBannerExtensions': !exists(json, 'profile_banner_extensions') ? undefined : json['profile_banner_extensions'],
|
|
340
|
+
'profileBannerUrl': !exists(json, 'profile_banner_url') ? undefined : json['profile_banner_url'],
|
|
341
|
+
'profileImageExtensions': !exists(json, 'profile_image_extensions') ? undefined : json['profile_image_extensions'],
|
|
342
|
+
'profileImageUrlHttps': json['profile_image_url_https'],
|
|
343
|
+
'profileInterstitialType': json['profile_interstitial_type'],
|
|
344
|
+
'_protected': json['protected'],
|
|
345
|
+
'screenName': json['screen_name'],
|
|
346
|
+
'statusesCount': json['statuses_count'],
|
|
347
|
+
'translatorType': json['translator_type'],
|
|
348
|
+
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
349
|
+
'verified': json['verified'],
|
|
350
|
+
'wantRetweets': json['want_retweets'],
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export function UserLegacyToJSON(value?: UserLegacy | null): any {
|
|
355
|
+
if (value === undefined) {
|
|
356
|
+
return undefined;
|
|
357
|
+
}
|
|
358
|
+
if (value === null) {
|
|
359
|
+
return null;
|
|
360
|
+
}
|
|
361
|
+
return {
|
|
362
|
+
|
|
363
|
+
'blocked_by': value.blockedBy,
|
|
364
|
+
'blocking': value.blocking,
|
|
365
|
+
'can_dm': value.canDm,
|
|
366
|
+
'can_media_tag': value.canMediaTag,
|
|
367
|
+
'created_at': value.createdAt,
|
|
368
|
+
'default_profile': value.defaultProfile,
|
|
369
|
+
'default_profile_image': value.defaultProfileImage,
|
|
370
|
+
'description': value.description,
|
|
371
|
+
'entities': value.entities,
|
|
372
|
+
'fast_followers_count': value.fastFollowersCount,
|
|
373
|
+
'favourites_count': value.favouritesCount,
|
|
374
|
+
'follow_request_sent': value.followRequestSent,
|
|
375
|
+
'followed_by': value.followedBy,
|
|
376
|
+
'followers_count': value.followersCount,
|
|
377
|
+
'following': value.following,
|
|
378
|
+
'friends_count': value.friendsCount,
|
|
379
|
+
'has_custom_timelines': value.hasCustomTimelines,
|
|
380
|
+
'is_translator': value.isTranslator,
|
|
381
|
+
'listed_count': value.listedCount,
|
|
382
|
+
'location': value.location,
|
|
383
|
+
'media_count': value.mediaCount,
|
|
384
|
+
'muting': value.muting,
|
|
385
|
+
'name': value.name,
|
|
386
|
+
'normal_followers_count': value.normalFollowersCount,
|
|
387
|
+
'notifications': value.notifications,
|
|
388
|
+
'pinned_tweet_ids_str': value.pinnedTweetIdsStr,
|
|
389
|
+
'possibly_sensitive': value.possiblySensitive,
|
|
390
|
+
'profile_banner_extensions': value.profileBannerExtensions,
|
|
391
|
+
'profile_banner_url': value.profileBannerUrl,
|
|
392
|
+
'profile_image_extensions': value.profileImageExtensions,
|
|
393
|
+
'profile_image_url_https': value.profileImageUrlHttps,
|
|
394
|
+
'profile_interstitial_type': value.profileInterstitialType,
|
|
395
|
+
'protected': value._protected,
|
|
396
|
+
'screen_name': value.screenName,
|
|
397
|
+
'statuses_count': value.statusesCount,
|
|
398
|
+
'translator_type': value.translatorType,
|
|
399
|
+
'url': value.url,
|
|
400
|
+
'verified': value.verified,
|
|
401
|
+
'want_retweets': value.wantRetweets,
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
|