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.
- package/.openapi-generator/FILES +0 -1
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +2 -1
- package/README.md +2 -2
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +4 -0
- package/src/apis/OtherApi.ts +4 -0
- package/src/apis/PostApi.ts +24 -0
- package/src/apis/TweetApi.ts +36 -0
- package/src/apis/UserApi.ts +4 -0
- package/src/apis/UserListApi.ts +8 -0
- package/src/apis/V11GetApi.ts +8 -0
- package/src/apis/V11PostApi.ts +8 -0
- package/src/apis/V20GetApi.ts +4 -0
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/replace.py +13 -0
- package/tsconfig.json +22 -20
- package/twitter-openapi/src/openapi/openapi-3.0.yaml +8 -1
- package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
- package/dist/apis/DefaultApi.d.ts +0 -31
- package/dist/apis/DefaultApi.js +0 -163
- package/dist/apis/OtherApi.d.ts +0 -26
- package/dist/apis/OtherApi.js +0 -145
- package/dist/apis/PostApi.d.ts +0 -84
- package/dist/apis/PostApi.js +0 -500
- package/dist/apis/TweetApi.d.ts +0 -135
- package/dist/apis/TweetApi.js +0 -827
- package/dist/apis/UserApi.d.ts +0 -31
- package/dist/apis/UserApi.js +0 -163
- package/dist/apis/UserListApi.d.ts +0 -44
- package/dist/apis/UserListApi.js +0 -246
- package/dist/apis/V11GetApi.d.ts +0 -60
- package/dist/apis/V11GetApi.js +0 -343
- package/dist/apis/V11PostApi.d.ts +0 -65
- package/dist/apis/V11PostApi.js +0 -399
- package/dist/apis/V20GetApi.d.ts +0 -64
- package/dist/apis/V20GetApi.js +0 -364
- package/dist/apis/index.d.ts +0 -9
- package/dist/apis/index.js +0 -27
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -21
- package/dist/models/BookmarksResponse.d.ts +0 -32
- package/dist/models/BookmarksResponse.js +0 -51
- package/dist/models/BookmarksResponseData.d.ts +0 -32
- package/dist/models/BookmarksResponseData.js +0 -51
- package/dist/models/BookmarksTimeline.d.ts +0 -32
- package/dist/models/BookmarksTimeline.js +0 -51
- package/dist/models/CommunitiesActions.d.ts +0 -31
- package/dist/models/CommunitiesActions.js +0 -50
- package/dist/models/ContentEntryType.d.ts +0 -24
- package/dist/models/ContentEntryType.js +0 -37
- package/dist/models/ContentItemType.d.ts +0 -24
- package/dist/models/ContentItemType.js +0 -37
- package/dist/models/ContentUnion.d.ts +0 -29
- package/dist/models/ContentUnion.js +0 -69
- package/dist/models/CreateRetweet.d.ts +0 -32
- package/dist/models/CreateRetweet.js +0 -51
- package/dist/models/CreateRetweetResponse.d.ts +0 -32
- package/dist/models/CreateRetweetResponse.js +0 -51
- package/dist/models/CreateRetweetResponseData.d.ts +0 -32
- package/dist/models/CreateRetweetResponseData.js +0 -51
- package/dist/models/CreateRetweetResponseResult.d.ts +0 -32
- package/dist/models/CreateRetweetResponseResult.js +0 -51
- package/dist/models/CreateTweet.d.ts +0 -32
- package/dist/models/CreateTweet.js +0 -51
- package/dist/models/CreateTweetResponse.d.ts +0 -32
- package/dist/models/CreateTweetResponse.js +0 -51
- package/dist/models/CreateTweetResponseData.d.ts +0 -32
- package/dist/models/CreateTweetResponseData.js +0 -51
- package/dist/models/CreateTweetResponseResult.d.ts +0 -32
- package/dist/models/CreateTweetResponseResult.js +0 -51
- package/dist/models/DeleteRetweetResponse.d.ts +0 -32
- package/dist/models/DeleteRetweetResponse.js +0 -51
- package/dist/models/DeleteRetweetResponseData.d.ts +0 -32
- package/dist/models/DeleteRetweetResponseData.js +0 -51
- package/dist/models/DeleteTweetResponse.d.ts +0 -32
- package/dist/models/DeleteTweetResponse.js +0 -51
- package/dist/models/DeleteTweetResponseData.d.ts +0 -32
- package/dist/models/DeleteTweetResponseData.js +0 -51
- package/dist/models/DeleteTweetResponseResult.d.ts +0 -31
- package/dist/models/DeleteTweetResponseResult.js +0 -50
- package/dist/models/Entities.d.ts +0 -56
- package/dist/models/Entities.js +0 -63
- package/dist/models/ExtendedEntities.d.ts +0 -32
- package/dist/models/ExtendedEntities.js +0 -51
- package/dist/models/FavoriteTweet.d.ts +0 -31
- package/dist/models/FavoriteTweet.js +0 -50
- package/dist/models/FavoriteTweetResponseData.d.ts +0 -32
- package/dist/models/FavoriteTweetResponseData.js +0 -51
- package/dist/models/FollowResponse.d.ts +0 -32
- package/dist/models/FollowResponse.js +0 -51
- package/dist/models/FollowResponseData.d.ts +0 -32
- package/dist/models/FollowResponseData.js +0 -51
- package/dist/models/FollowResponseResult.d.ts +0 -39
- package/dist/models/FollowResponseResult.js +0 -55
- package/dist/models/FollowResponseUser.d.ts +0 -32
- package/dist/models/FollowResponseUser.js +0 -51
- package/dist/models/FollowTimeline.d.ts +0 -32
- package/dist/models/FollowTimeline.js +0 -51
- package/dist/models/HomeTimelineHome.d.ts +0 -32
- package/dist/models/HomeTimelineHome.js +0 -51
- package/dist/models/HomeTimelineResponseData.d.ts +0 -32
- package/dist/models/HomeTimelineResponseData.js +0 -51
- package/dist/models/InstructionType.d.ts +0 -25
- package/dist/models/InstructionType.js +0 -38
- package/dist/models/InstructionUnion.d.ts +0 -32
- package/dist/models/InstructionUnion.js +0 -74
- package/dist/models/ItemContentUnion.d.ts +0 -29
- package/dist/models/ItemContentUnion.js +0 -69
- package/dist/models/ItemResult.d.ts +0 -39
- package/dist/models/ItemResult.js +0 -55
- package/dist/models/ListTweetsTimeline.d.ts +0 -32
- package/dist/models/ListTweetsTimeline.js +0 -51
- package/dist/models/ListTweetsTimelineData.d.ts +0 -32
- package/dist/models/ListTweetsTimelineData.js +0 -51
- package/dist/models/ListTweetsTimelineList.d.ts +0 -32
- package/dist/models/ListTweetsTimelineList.js +0 -51
- package/dist/models/ListTweetsTimelineResponse.d.ts +0 -32
- package/dist/models/ListTweetsTimelineResponse.js +0 -51
- package/dist/models/Media.d.ts +0 -92
- package/dist/models/Media.js +0 -80
- package/dist/models/MediaOriginalInfo.d.ts +0 -43
- package/dist/models/MediaOriginalInfo.js +0 -54
- package/dist/models/ModuleEntry.d.ts +0 -38
- package/dist/models/ModuleEntry.js +0 -54
- package/dist/models/ModuleItem.d.ts +0 -38
- package/dist/models/ModuleItem.js +0 -54
- package/dist/models/OneFactorLoginEligibility.d.ts +0 -31
- package/dist/models/OneFactorLoginEligibility.js +0 -50
- package/dist/models/OtherResponse.d.ts +0 -32
- package/dist/models/OtherResponse.js +0 -51
- package/dist/models/PostCreateRetweetRequest.d.ts +0 -38
- package/dist/models/PostCreateRetweetRequest.js +0 -54
- package/dist/models/PostCreateTweetRequest.d.ts +0 -45
- package/dist/models/PostCreateTweetRequest.js +0 -58
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +0 -139
- package/dist/models/PostCreateTweetRequestFeatures.js +0 -104
- package/dist/models/PostCreateTweetRequestVariables.d.ts +0 -50
- package/dist/models/PostCreateTweetRequestVariables.js +0 -60
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +0 -37
- package/dist/models/PostCreateTweetRequestVariablesMedia.js +0 -53
- package/dist/models/PostDeleteRetweetRequest.d.ts +0 -38
- package/dist/models/PostDeleteRetweetRequest.js +0 -54
- package/dist/models/PostDeleteRetweetRequestVariables.d.ts +0 -37
- package/dist/models/PostDeleteRetweetRequestVariables.js +0 -53
- package/dist/models/PostDeleteTweetRequest.d.ts +0 -38
- package/dist/models/PostDeleteTweetRequest.js +0 -54
- package/dist/models/PostDeleteTweetRequestVariables.d.ts +0 -37
- package/dist/models/PostDeleteTweetRequestVariables.js +0 -53
- package/dist/models/PostFavoriteTweetRequest.d.ts +0 -38
- package/dist/models/PostFavoriteTweetRequest.js +0 -54
- package/dist/models/PostUnfavoriteTweetRequest.d.ts +0 -38
- package/dist/models/PostUnfavoriteTweetRequest.js +0 -54
- package/dist/models/ProfileResponse.d.ts +0 -32
- package/dist/models/ProfileResponse.js +0 -51
- package/dist/models/ProfileResponseData.d.ts +0 -32
- package/dist/models/ProfileResponseData.js +0 -51
- package/dist/models/Retweet.d.ts +0 -38
- package/dist/models/Retweet.js +0 -54
- package/dist/models/RetweetLegacy.d.ts +0 -31
- package/dist/models/RetweetLegacy.js +0 -50
- package/dist/models/Session.d.ts +0 -112
- package/dist/models/Session.js +0 -92
- package/dist/models/SocialContext.d.ts +0 -43
- package/dist/models/SocialContext.js +0 -54
- package/dist/models/Timeline.d.ts +0 -44
- package/dist/models/Timeline.js +0 -56
- package/dist/models/TimelineAddEntries.d.ts +0 -39
- package/dist/models/TimelineAddEntries.js +0 -55
- package/dist/models/TimelineAddEntry.d.ts +0 -44
- package/dist/models/TimelineAddEntry.js +0 -57
- package/dist/models/TimelineClearCache.d.ts +0 -32
- package/dist/models/TimelineClearCache.js +0 -51
- package/dist/models/TimelinePinEntry.d.ts +0 -39
- package/dist/models/TimelinePinEntry.js +0 -55
- package/dist/models/TimelineResponse.d.ts +0 -32
- package/dist/models/TimelineResponse.js +0 -51
- package/dist/models/TimelineTerminateTimeline.d.ts +0 -46
- package/dist/models/TimelineTerminateTimeline.js +0 -61
- package/dist/models/TimelineTimelineCursor.d.ts +0 -68
- package/dist/models/TimelineTimelineCursor.js +0 -73
- package/dist/models/TimelineTimelineItem.d.ts +0 -58
- package/dist/models/TimelineTimelineItem.js +0 -64
- package/dist/models/TimelineTimelineModule.d.ts +0 -70
- package/dist/models/TimelineTimelineModule.js +0 -69
- package/dist/models/TimelineTweet.d.ts +0 -65
- package/dist/models/TimelineTweet.js +0 -68
- package/dist/models/TimelineUser.d.ts +0 -59
- package/dist/models/TimelineUser.js +0 -66
- package/dist/models/TimelineV2.d.ts +0 -32
- package/dist/models/TimelineV2.js +0 -51
- package/dist/models/Tweet.d.ts +0 -92
- package/dist/models/Tweet.js +0 -82
- package/dist/models/TweetDetailResponse.d.ts +0 -32
- package/dist/models/TweetDetailResponse.js +0 -51
- package/dist/models/TweetDetailResponseData.d.ts +0 -32
- package/dist/models/TweetDetailResponseData.js +0 -51
- package/dist/models/TweetEditControl.d.ts +0 -49
- package/dist/models/TweetEditControl.js +0 -56
- package/dist/models/TweetEditPrespective.d.ts +0 -37
- package/dist/models/TweetEditPrespective.js +0 -52
- package/dist/models/TweetLegacy.d.ts +0 -154
- package/dist/models/TweetLegacy.js +0 -110
- package/dist/models/TweetTombstone.d.ts +0 -32
- package/dist/models/TweetTombstone.js +0 -51
- package/dist/models/TweetUnion.d.ts +0 -29
- package/dist/models/TweetUnion.js +0 -69
- package/dist/models/TweetViews.d.ts +0 -37
- package/dist/models/TweetViews.js +0 -52
- package/dist/models/TweetWithVisibilityResults.d.ts +0 -39
- package/dist/models/TweetWithVisibilityResults.js +0 -55
- package/dist/models/TypeName.d.ts +0 -30
- package/dist/models/TypeName.js +0 -43
- package/dist/models/UnfavoriteTweet.d.ts +0 -31
- package/dist/models/UnfavoriteTweet.js +0 -50
- package/dist/models/UnfavoriteTweetResponseData.d.ts +0 -32
- package/dist/models/UnfavoriteTweetResponseData.js +0 -51
- package/dist/models/User.d.ts +0 -99
- package/dist/models/User.js +0 -83
- package/dist/models/UserFeatures.d.ts +0 -31
- package/dist/models/UserFeatures.js +0 -50
- package/dist/models/UserLegacy.d.ts +0 -259
- package/dist/models/UserLegacy.js +0 -161
- package/dist/models/UserResponse.d.ts +0 -32
- package/dist/models/UserResponse.js +0 -51
- package/dist/models/UserResponseData.d.ts +0 -32
- package/dist/models/UserResponseData.js +0 -51
- package/dist/models/UserResultByScreenName.d.ts +0 -38
- package/dist/models/UserResultByScreenName.js +0 -54
- package/dist/models/UserResultByScreenNameLegacy.d.ts +0 -67
- package/dist/models/UserResultByScreenNameLegacy.js +0 -62
- package/dist/models/UserResultByScreenNameResult.d.ts +0 -57
- package/dist/models/UserResultByScreenNameResult.js +0 -64
- package/dist/models/UserResultCore.d.ts +0 -32
- package/dist/models/UserResultCore.js +0 -51
- package/dist/models/UserResults.d.ts +0 -32
- package/dist/models/UserResults.js +0 -51
- package/dist/models/UserTweetsData.d.ts +0 -32
- package/dist/models/UserTweetsData.js +0 -51
- package/dist/models/UserTweetsResponse.d.ts +0 -32
- package/dist/models/UserTweetsResponse.js +0 -51
- package/dist/models/UserTweetsResult.d.ts +0 -39
- package/dist/models/UserTweetsResult.js +0 -55
- package/dist/models/UserTweetsUser.d.ts +0 -32
- package/dist/models/UserTweetsUser.js +0 -51
- package/dist/models/index.d.ts +0 -102
- package/dist/models/index.js +0 -120
- package/dist/runtime.d.ts +0 -182
- package/dist/runtime.js +0 -555
- package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -111
- package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -134
- package/twitter-openapi/dist/dart/paths/follow.yaml +0 -262
- package/twitter-openapi/dist/dart/paths/other.yaml +0 -96
- package/twitter-openapi/dist/dart/paths/post.yaml +0 -834
- package/twitter-openapi/dist/dart/paths/profile.yaml +0 -152
- package/twitter-openapi/dist/dart/paths/timeline.yaml +0 -380
- package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -134
- package/twitter-openapi/dist/dart/paths/user.yaml +0 -112
- package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -484
- package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
- package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
- package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
- package/twitter-openapi/dist/dart/response/error.yaml +0 -90
- package/twitter-openapi/dist/dart/schemas/content.yaml +0 -181
- package/twitter-openapi/dist/dart/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/dart/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/dart/schemas/timeline.yaml +0 -25
- package/twitter-openapi/dist/dart/schemas/tweet.yaml +0 -251
- package/twitter-openapi/dist/dart/schemas/typename.yaml +0 -19
- package/twitter-openapi/dist/dart/schemas/user.yaml +0 -206
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +0 -135
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -248
- package/twitter-openapi/dist/docs/paths/follow.yaml +0 -486
- package/twitter-openapi/dist/docs/paths/other.yaml +0 -96
- package/twitter-openapi/dist/docs/paths/post.yaml +0 -638
- package/twitter-openapi/dist/docs/paths/profile.yaml +0 -159
- package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -730
- package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -272
- package/twitter-openapi/dist/docs/paths/user.yaml +0 -152
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -1010
- package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +0 -237
- package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/docs/response/error.yaml +0 -90
- package/twitter-openapi/dist/docs/schemas/content.yaml +0 -181
- package/twitter-openapi/dist/docs/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/docs/schemas/timeline.yaml +0 -25
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +0 -251
- package/twitter-openapi/dist/docs/schemas/typename.yaml +0 -19
- package/twitter-openapi/dist/docs/schemas/user.yaml +0 -206
- package/twitter-openapi/dist/test/openapi-3.0.yaml +0 -135
- package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -105
- package/twitter-openapi/dist/test/paths/follow.yaml +0 -204
- package/twitter-openapi/dist/test/paths/other.yaml +0 -96
- package/twitter-openapi/dist/test/paths/post.yaml +0 -485
- package/twitter-openapi/dist/test/paths/profile.yaml +0 -123
- package/twitter-openapi/dist/test/paths/timeline.yaml +0 -293
- package/twitter-openapi/dist/test/paths/tweet.yaml +0 -105
- package/twitter-openapi/dist/test/paths/user.yaml +0 -83
- package/twitter-openapi/dist/test/paths/usertweets.yaml +0 -368
- package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
- package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/test/response/error.yaml +0 -90
- package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
- package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
- package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -251
- package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
- package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
- package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -135
- package/twitter-openapi/dist/typescript/paths/bookmarks.yaml +0 -105
- package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -204
- package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
- package/twitter-openapi/dist/typescript/paths/post.yaml +0 -660
- package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -123
- package/twitter-openapi/dist/typescript/paths/timeline.yaml +0 -293
- package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -105
- package/twitter-openapi/dist/typescript/paths/user.yaml +0 -83
- package/twitter-openapi/dist/typescript/paths/usertweets.yaml +0 -368
- package/twitter-openapi/dist/typescript/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/typescript/paths/v1.1-post.yaml +0 -237
- package/twitter-openapi/dist/typescript/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
- package/twitter-openapi/dist/typescript/schemas/content.yaml +0 -181
- package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
- package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -251
- package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
- package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
|
@@ -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 { Timeline } from './Timeline';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface TweetDetailResponseData
|
|
17
|
-
*/
|
|
18
|
-
export interface TweetDetailResponseData {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Timeline}
|
|
22
|
-
* @memberof TweetDetailResponseData
|
|
23
|
-
*/
|
|
24
|
-
threadedConversationWithInjectionsV2: Timeline;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the TweetDetailResponseData interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfTweetDetailResponseData(value: object): boolean;
|
|
30
|
-
export declare function TweetDetailResponseDataFromJSON(json: any): TweetDetailResponseData;
|
|
31
|
-
export declare function TweetDetailResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetDetailResponseData;
|
|
32
|
-
export declare function TweetDetailResponseDataToJSON(value?: TweetDetailResponseData | 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.TweetDetailResponseDataToJSON = exports.TweetDetailResponseDataFromJSONTyped = exports.TweetDetailResponseDataFromJSON = exports.instanceOfTweetDetailResponseData = void 0;
|
|
17
|
-
var Timeline_1 = require("./Timeline");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the TweetDetailResponseData interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfTweetDetailResponseData(value) {
|
|
22
|
-
var isInstance = true;
|
|
23
|
-
isInstance = isInstance && "threadedConversationWithInjectionsV2" in value;
|
|
24
|
-
return isInstance;
|
|
25
|
-
}
|
|
26
|
-
exports.instanceOfTweetDetailResponseData = instanceOfTweetDetailResponseData;
|
|
27
|
-
function TweetDetailResponseDataFromJSON(json) {
|
|
28
|
-
return TweetDetailResponseDataFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
exports.TweetDetailResponseDataFromJSON = TweetDetailResponseDataFromJSON;
|
|
31
|
-
function TweetDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if ((json === undefined) || (json === null)) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'threadedConversationWithInjectionsV2': (0, Timeline_1.TimelineFromJSON)(json['threaded_conversation_with_injections_v2']),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.TweetDetailResponseDataFromJSONTyped = TweetDetailResponseDataFromJSONTyped;
|
|
40
|
-
function TweetDetailResponseDataToJSON(value) {
|
|
41
|
-
if (value === undefined) {
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'threaded_conversation_with_injections_v2': (0, Timeline_1.TimelineToJSON)(value.threadedConversationWithInjectionsV2),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.TweetDetailResponseDataToJSON = TweetDetailResponseDataToJSON;
|
|
@@ -1,49 +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 TweetEditControl
|
|
16
|
-
*/
|
|
17
|
-
export interface TweetEditControl {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {Array<string>}
|
|
21
|
-
* @memberof TweetEditControl
|
|
22
|
-
*/
|
|
23
|
-
editTweetIds?: Array<string>;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof TweetEditControl
|
|
28
|
-
*/
|
|
29
|
-
editableUntilMsecs?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof TweetEditControl
|
|
34
|
-
*/
|
|
35
|
-
editsRemaining?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {boolean}
|
|
39
|
-
* @memberof TweetEditControl
|
|
40
|
-
*/
|
|
41
|
-
isEditEligible?: boolean;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the TweetEditControl interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfTweetEditControl(value: object): boolean;
|
|
47
|
-
export declare function TweetEditControlFromJSON(json: any): TweetEditControl;
|
|
48
|
-
export declare function TweetEditControlFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetEditControl;
|
|
49
|
-
export declare function TweetEditControlToJSON(value?: TweetEditControl | null): any;
|
|
@@ -1,56 +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.TweetEditControlToJSON = exports.TweetEditControlFromJSONTyped = exports.TweetEditControlFromJSON = exports.instanceOfTweetEditControl = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the TweetEditControl interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfTweetEditControl(value) {
|
|
22
|
-
var isInstance = true;
|
|
23
|
-
return isInstance;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfTweetEditControl = instanceOfTweetEditControl;
|
|
26
|
-
function TweetEditControlFromJSON(json) {
|
|
27
|
-
return TweetEditControlFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.TweetEditControlFromJSON = TweetEditControlFromJSON;
|
|
30
|
-
function TweetEditControlFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if ((json === undefined) || (json === null)) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'editTweetIds': !(0, runtime_1.exists)(json, 'edit_tweet_ids') ? undefined : json['edit_tweet_ids'],
|
|
36
|
-
'editableUntilMsecs': !(0, runtime_1.exists)(json, 'editable_until_msecs') ? undefined : json['editable_until_msecs'],
|
|
37
|
-
'editsRemaining': !(0, runtime_1.exists)(json, 'edits_remaining') ? undefined : json['edits_remaining'],
|
|
38
|
-
'isEditEligible': !(0, runtime_1.exists)(json, 'is_edit_eligible') ? undefined : json['is_edit_eligible'],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
exports.TweetEditControlFromJSONTyped = TweetEditControlFromJSONTyped;
|
|
42
|
-
function TweetEditControlToJSON(value) {
|
|
43
|
-
if (value === undefined) {
|
|
44
|
-
return undefined;
|
|
45
|
-
}
|
|
46
|
-
if (value === null) {
|
|
47
|
-
return null;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'edit_tweet_ids': value.editTweetIds,
|
|
51
|
-
'editable_until_msecs': value.editableUntilMsecs,
|
|
52
|
-
'edits_remaining': value.editsRemaining,
|
|
53
|
-
'is_edit_eligible': value.isEditEligible,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
exports.TweetEditControlToJSON = TweetEditControlToJSON;
|
|
@@ -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 TweetEditPrespective
|
|
16
|
-
*/
|
|
17
|
-
export interface TweetEditPrespective {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {boolean}
|
|
21
|
-
* @memberof TweetEditPrespective
|
|
22
|
-
*/
|
|
23
|
-
favorited?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {boolean}
|
|
27
|
-
* @memberof TweetEditPrespective
|
|
28
|
-
*/
|
|
29
|
-
retweeted?: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the TweetEditPrespective interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfTweetEditPrespective(value: object): boolean;
|
|
35
|
-
export declare function TweetEditPrespectiveFromJSON(json: any): TweetEditPrespective;
|
|
36
|
-
export declare function TweetEditPrespectiveFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetEditPrespective;
|
|
37
|
-
export declare function TweetEditPrespectiveToJSON(value?: TweetEditPrespective | 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.TweetEditPrespectiveToJSON = exports.TweetEditPrespectiveFromJSONTyped = exports.TweetEditPrespectiveFromJSON = exports.instanceOfTweetEditPrespective = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the TweetEditPrespective interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfTweetEditPrespective(value) {
|
|
22
|
-
var isInstance = true;
|
|
23
|
-
return isInstance;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfTweetEditPrespective = instanceOfTweetEditPrespective;
|
|
26
|
-
function TweetEditPrespectiveFromJSON(json) {
|
|
27
|
-
return TweetEditPrespectiveFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.TweetEditPrespectiveFromJSON = TweetEditPrespectiveFromJSON;
|
|
30
|
-
function TweetEditPrespectiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if ((json === undefined) || (json === null)) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'favorited': !(0, runtime_1.exists)(json, 'favorited') ? undefined : json['favorited'],
|
|
36
|
-
'retweeted': !(0, runtime_1.exists)(json, 'retweeted') ? undefined : json['retweeted'],
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.TweetEditPrespectiveFromJSONTyped = TweetEditPrespectiveFromJSONTyped;
|
|
40
|
-
function TweetEditPrespectiveToJSON(value) {
|
|
41
|
-
if (value === undefined) {
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'favorited': value.favorited,
|
|
49
|
-
'retweeted': value.retweeted,
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
exports.TweetEditPrespectiveToJSON = TweetEditPrespectiveToJSON;
|
|
@@ -1,154 +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 { Entities } from './Entities';
|
|
13
|
-
import type { ExtendedEntities } from './ExtendedEntities';
|
|
14
|
-
import type { ItemResult } from './ItemResult';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
* @interface TweetLegacy
|
|
19
|
-
*/
|
|
20
|
-
export interface TweetLegacy {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {number}
|
|
24
|
-
* @memberof TweetLegacy
|
|
25
|
-
*/
|
|
26
|
-
bookmarkCount: number;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {boolean}
|
|
30
|
-
* @memberof TweetLegacy
|
|
31
|
-
*/
|
|
32
|
-
bookmarked: boolean;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof TweetLegacy
|
|
37
|
-
*/
|
|
38
|
-
conversationIdStr: string;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof TweetLegacy
|
|
43
|
-
*/
|
|
44
|
-
createdAt: string;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {Array<number>}
|
|
48
|
-
* @memberof TweetLegacy
|
|
49
|
-
*/
|
|
50
|
-
displayTextRange: Array<number>;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {Entities}
|
|
54
|
-
* @memberof TweetLegacy
|
|
55
|
-
*/
|
|
56
|
-
entities: Entities;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {ExtendedEntities}
|
|
60
|
-
* @memberof TweetLegacy
|
|
61
|
-
*/
|
|
62
|
-
extendedEntities?: ExtendedEntities;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {number}
|
|
66
|
-
* @memberof TweetLegacy
|
|
67
|
-
*/
|
|
68
|
-
favoriteCount: number;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {boolean}
|
|
72
|
-
* @memberof TweetLegacy
|
|
73
|
-
*/
|
|
74
|
-
favorited: boolean;
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {string}
|
|
78
|
-
* @memberof TweetLegacy
|
|
79
|
-
*/
|
|
80
|
-
fullText: string;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @type {string}
|
|
84
|
-
* @memberof TweetLegacy
|
|
85
|
-
*/
|
|
86
|
-
idStr: string;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @type {boolean}
|
|
90
|
-
* @memberof TweetLegacy
|
|
91
|
-
*/
|
|
92
|
-
isQuoteStatus: boolean;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @type {string}
|
|
96
|
-
* @memberof TweetLegacy
|
|
97
|
-
*/
|
|
98
|
-
lang: string;
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @type {boolean}
|
|
102
|
-
* @memberof TweetLegacy
|
|
103
|
-
*/
|
|
104
|
-
possiblySensitive?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {boolean}
|
|
108
|
-
* @memberof TweetLegacy
|
|
109
|
-
*/
|
|
110
|
-
possiblySensitiveEditable?: boolean;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {number}
|
|
114
|
-
* @memberof TweetLegacy
|
|
115
|
-
*/
|
|
116
|
-
quoteCount: number;
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @type {number}
|
|
120
|
-
* @memberof TweetLegacy
|
|
121
|
-
*/
|
|
122
|
-
replyCount: number;
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
* @type {number}
|
|
126
|
-
* @memberof TweetLegacy
|
|
127
|
-
*/
|
|
128
|
-
retweetCount: number;
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @type {boolean}
|
|
132
|
-
* @memberof TweetLegacy
|
|
133
|
-
*/
|
|
134
|
-
retweeted: boolean;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @type {ItemResult}
|
|
138
|
-
* @memberof TweetLegacy
|
|
139
|
-
*/
|
|
140
|
-
retweetedStatusResult?: ItemResult;
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @type {string}
|
|
144
|
-
* @memberof TweetLegacy
|
|
145
|
-
*/
|
|
146
|
-
userIdStr: string;
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Check if a given object implements the TweetLegacy interface.
|
|
150
|
-
*/
|
|
151
|
-
export declare function instanceOfTweetLegacy(value: object): boolean;
|
|
152
|
-
export declare function TweetLegacyFromJSON(json: any): TweetLegacy;
|
|
153
|
-
export declare function TweetLegacyFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetLegacy;
|
|
154
|
-
export declare function TweetLegacyToJSON(value?: TweetLegacy | null): any;
|
|
@@ -1,110 +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.TweetLegacyToJSON = exports.TweetLegacyFromJSONTyped = exports.TweetLegacyFromJSON = exports.instanceOfTweetLegacy = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
var Entities_1 = require("./Entities");
|
|
19
|
-
var ExtendedEntities_1 = require("./ExtendedEntities");
|
|
20
|
-
var ItemResult_1 = require("./ItemResult");
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the TweetLegacy interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfTweetLegacy(value) {
|
|
25
|
-
var isInstance = true;
|
|
26
|
-
isInstance = isInstance && "bookmarkCount" in value;
|
|
27
|
-
isInstance = isInstance && "bookmarked" in value;
|
|
28
|
-
isInstance = isInstance && "conversationIdStr" in value;
|
|
29
|
-
isInstance = isInstance && "createdAt" in value;
|
|
30
|
-
isInstance = isInstance && "displayTextRange" in value;
|
|
31
|
-
isInstance = isInstance && "entities" in value;
|
|
32
|
-
isInstance = isInstance && "favoriteCount" in value;
|
|
33
|
-
isInstance = isInstance && "favorited" in value;
|
|
34
|
-
isInstance = isInstance && "fullText" in value;
|
|
35
|
-
isInstance = isInstance && "idStr" in value;
|
|
36
|
-
isInstance = isInstance && "isQuoteStatus" in value;
|
|
37
|
-
isInstance = isInstance && "lang" in value;
|
|
38
|
-
isInstance = isInstance && "quoteCount" in value;
|
|
39
|
-
isInstance = isInstance && "replyCount" in value;
|
|
40
|
-
isInstance = isInstance && "retweetCount" in value;
|
|
41
|
-
isInstance = isInstance && "retweeted" in value;
|
|
42
|
-
isInstance = isInstance && "userIdStr" in value;
|
|
43
|
-
return isInstance;
|
|
44
|
-
}
|
|
45
|
-
exports.instanceOfTweetLegacy = instanceOfTweetLegacy;
|
|
46
|
-
function TweetLegacyFromJSON(json) {
|
|
47
|
-
return TweetLegacyFromJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
exports.TweetLegacyFromJSON = TweetLegacyFromJSON;
|
|
50
|
-
function TweetLegacyFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
-
if ((json === undefined) || (json === null)) {
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'bookmarkCount': json['bookmark_count'],
|
|
56
|
-
'bookmarked': json['bookmarked'],
|
|
57
|
-
'conversationIdStr': json['conversation_id_str'],
|
|
58
|
-
'createdAt': json['created_at'],
|
|
59
|
-
'displayTextRange': json['display_text_range'],
|
|
60
|
-
'entities': (0, Entities_1.EntitiesFromJSON)(json['entities']),
|
|
61
|
-
'extendedEntities': !(0, runtime_1.exists)(json, 'extended_entities') ? undefined : (0, ExtendedEntities_1.ExtendedEntitiesFromJSON)(json['extended_entities']),
|
|
62
|
-
'favoriteCount': json['favorite_count'],
|
|
63
|
-
'favorited': json['favorited'],
|
|
64
|
-
'fullText': json['full_text'],
|
|
65
|
-
'idStr': json['id_str'],
|
|
66
|
-
'isQuoteStatus': json['is_quote_status'],
|
|
67
|
-
'lang': json['lang'],
|
|
68
|
-
'possiblySensitive': !(0, runtime_1.exists)(json, 'possibly_sensitive') ? undefined : json['possibly_sensitive'],
|
|
69
|
-
'possiblySensitiveEditable': !(0, runtime_1.exists)(json, 'possibly_sensitive_editable') ? undefined : json['possibly_sensitive_editable'],
|
|
70
|
-
'quoteCount': json['quote_count'],
|
|
71
|
-
'replyCount': json['reply_count'],
|
|
72
|
-
'retweetCount': json['retweet_count'],
|
|
73
|
-
'retweeted': json['retweeted'],
|
|
74
|
-
'retweetedStatusResult': !(0, runtime_1.exists)(json, 'retweeted_status_result') ? undefined : (0, ItemResult_1.ItemResultFromJSON)(json['retweeted_status_result']),
|
|
75
|
-
'userIdStr': json['user_id_str'],
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
exports.TweetLegacyFromJSONTyped = TweetLegacyFromJSONTyped;
|
|
79
|
-
function TweetLegacyToJSON(value) {
|
|
80
|
-
if (value === undefined) {
|
|
81
|
-
return undefined;
|
|
82
|
-
}
|
|
83
|
-
if (value === null) {
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
return {
|
|
87
|
-
'bookmark_count': value.bookmarkCount,
|
|
88
|
-
'bookmarked': value.bookmarked,
|
|
89
|
-
'conversation_id_str': value.conversationIdStr,
|
|
90
|
-
'created_at': value.createdAt,
|
|
91
|
-
'display_text_range': value.displayTextRange,
|
|
92
|
-
'entities': (0, Entities_1.EntitiesToJSON)(value.entities),
|
|
93
|
-
'extended_entities': (0, ExtendedEntities_1.ExtendedEntitiesToJSON)(value.extendedEntities),
|
|
94
|
-
'favorite_count': value.favoriteCount,
|
|
95
|
-
'favorited': value.favorited,
|
|
96
|
-
'full_text': value.fullText,
|
|
97
|
-
'id_str': value.idStr,
|
|
98
|
-
'is_quote_status': value.isQuoteStatus,
|
|
99
|
-
'lang': value.lang,
|
|
100
|
-
'possibly_sensitive': value.possiblySensitive,
|
|
101
|
-
'possibly_sensitive_editable': value.possiblySensitiveEditable,
|
|
102
|
-
'quote_count': value.quoteCount,
|
|
103
|
-
'reply_count': value.replyCount,
|
|
104
|
-
'retweet_count': value.retweetCount,
|
|
105
|
-
'retweeted': value.retweeted,
|
|
106
|
-
'retweeted_status_result': (0, ItemResult_1.ItemResultToJSON)(value.retweetedStatusResult),
|
|
107
|
-
'user_id_str': value.userIdStr,
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
exports.TweetLegacyToJSON = TweetLegacyToJSON;
|
|
@@ -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 { TypeName } from './TypeName';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface TweetTombstone
|
|
17
|
-
*/
|
|
18
|
-
export interface TweetTombstone {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {TypeName}
|
|
22
|
-
* @memberof TweetTombstone
|
|
23
|
-
*/
|
|
24
|
-
typename?: TypeName;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the TweetTombstone interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfTweetTombstone(value: object): boolean;
|
|
30
|
-
export declare function TweetTombstoneFromJSON(json: any): TweetTombstone;
|
|
31
|
-
export declare function TweetTombstoneFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetTombstone;
|
|
32
|
-
export declare function TweetTombstoneToJSON(value?: TweetTombstone | 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.TweetTombstoneToJSON = exports.TweetTombstoneFromJSONTyped = exports.TweetTombstoneFromJSON = exports.instanceOfTweetTombstone = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
var TypeName_1 = require("./TypeName");
|
|
19
|
-
/**
|
|
20
|
-
* Check if a given object implements the TweetTombstone interface.
|
|
21
|
-
*/
|
|
22
|
-
function instanceOfTweetTombstone(value) {
|
|
23
|
-
var isInstance = true;
|
|
24
|
-
return isInstance;
|
|
25
|
-
}
|
|
26
|
-
exports.instanceOfTweetTombstone = instanceOfTweetTombstone;
|
|
27
|
-
function TweetTombstoneFromJSON(json) {
|
|
28
|
-
return TweetTombstoneFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
exports.TweetTombstoneFromJSON = TweetTombstoneFromJSON;
|
|
31
|
-
function TweetTombstoneFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if ((json === undefined) || (json === null)) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'typename': !(0, runtime_1.exists)(json, '__typename') ? undefined : (0, TypeName_1.TypeNameFromJSON)(json['__typename']),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.TweetTombstoneFromJSONTyped = TweetTombstoneFromJSONTyped;
|
|
40
|
-
function TweetTombstoneToJSON(value) {
|
|
41
|
-
if (value === undefined) {
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'__typename': (0, TypeName_1.TypeNameToJSON)(value.typename),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.TweetTombstoneToJSON = TweetTombstoneToJSON;
|
|
@@ -1,29 +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 { Tweet } from './Tweet';
|
|
13
|
-
import { TweetTombstone } from './TweetTombstone';
|
|
14
|
-
import { TweetWithVisibilityResults } from './TweetWithVisibilityResults';
|
|
15
|
-
/**
|
|
16
|
-
* @type TweetUnion
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export type TweetUnion = {
|
|
21
|
-
typename: 'Tweet';
|
|
22
|
-
} & Tweet | {
|
|
23
|
-
typename: 'TweetTombstone';
|
|
24
|
-
} & TweetTombstone | {
|
|
25
|
-
typename: 'TweetWithVisibilityResults';
|
|
26
|
-
} & TweetWithVisibilityResults;
|
|
27
|
-
export declare function TweetUnionFromJSON(json: any): TweetUnion;
|
|
28
|
-
export declare function TweetUnionFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetUnion;
|
|
29
|
-
export declare function TweetUnionToJSON(value?: TweetUnion | null): any;
|