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,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Twitter OpenAPI
|
|
6
|
-
* Twitter OpenAPI(Swagger) specification
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.0.1
|
|
9
|
-
* Contact: yuki@yuki0311.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.TimelineTimelineModuleToJSON = exports.TimelineTimelineModuleFromJSONTyped = exports.TimelineTimelineModuleFromJSON = exports.instanceOfTimelineTimelineModule = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
var ContentEntryType_1 = require("./ContentEntryType");
|
|
19
|
-
var ModuleItem_1 = require("./ModuleItem");
|
|
20
|
-
var TypeName_1 = require("./TypeName");
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the TimelineTimelineModule interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfTimelineTimelineModule(value) {
|
|
25
|
-
var isInstance = true;
|
|
26
|
-
isInstance = isInstance && "typename" in value;
|
|
27
|
-
isInstance = isInstance && "clientEventInfo" in value;
|
|
28
|
-
isInstance = isInstance && "displayType" in value;
|
|
29
|
-
isInstance = isInstance && "entryType" in value;
|
|
30
|
-
return isInstance;
|
|
31
|
-
}
|
|
32
|
-
exports.instanceOfTimelineTimelineModule = instanceOfTimelineTimelineModule;
|
|
33
|
-
function TimelineTimelineModuleFromJSON(json) {
|
|
34
|
-
return TimelineTimelineModuleFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
exports.TimelineTimelineModuleFromJSON = TimelineTimelineModuleFromJSON;
|
|
37
|
-
function TimelineTimelineModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
-
if ((json === undefined) || (json === null)) {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'typename': (0, TypeName_1.TypeNameFromJSON)(json['__typename']),
|
|
43
|
-
'clientEventInfo': json['clientEventInfo'],
|
|
44
|
-
'displayType': json['displayType'],
|
|
45
|
-
'entryType': (0, ContentEntryType_1.ContentEntryTypeFromJSON)(json['entryType']),
|
|
46
|
-
'footer': !(0, runtime_1.exists)(json, 'footer') ? undefined : json['footer'],
|
|
47
|
-
'header': !(0, runtime_1.exists)(json, 'header') ? undefined : json['header'],
|
|
48
|
-
'items': !(0, runtime_1.exists)(json, 'items') ? undefined : (json['items'].map(ModuleItem_1.ModuleItemFromJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.TimelineTimelineModuleFromJSONTyped = TimelineTimelineModuleFromJSONTyped;
|
|
52
|
-
function TimelineTimelineModuleToJSON(value) {
|
|
53
|
-
if (value === undefined) {
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
56
|
-
if (value === null) {
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
'__typename': (0, TypeName_1.TypeNameToJSON)(value.typename),
|
|
61
|
-
'clientEventInfo': value.clientEventInfo,
|
|
62
|
-
'displayType': value.displayType,
|
|
63
|
-
'entryType': (0, ContentEntryType_1.ContentEntryTypeToJSON)(value.entryType),
|
|
64
|
-
'footer': value.footer,
|
|
65
|
-
'header': value.header,
|
|
66
|
-
'items': value.items === undefined ? undefined : (value.items.map(ModuleItem_1.ModuleItemToJSON)),
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
exports.TimelineTimelineModuleToJSON = TimelineTimelineModuleToJSON;
|
|
@@ -1,65 +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 { ContentItemType } from './ContentItemType';
|
|
13
|
-
import type { ItemResult } from './ItemResult';
|
|
14
|
-
import type { SocialContext } from './SocialContext';
|
|
15
|
-
import type { TypeName } from './TypeName';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface TimelineTweet
|
|
20
|
-
*/
|
|
21
|
-
export interface TimelineTweet {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {SocialContext}
|
|
25
|
-
* @memberof TimelineTweet
|
|
26
|
-
*/
|
|
27
|
-
socialContext?: SocialContext;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {TypeName}
|
|
31
|
-
* @memberof TimelineTweet
|
|
32
|
-
*/
|
|
33
|
-
typename: TypeName;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {ContentItemType}
|
|
37
|
-
* @memberof TimelineTweet
|
|
38
|
-
*/
|
|
39
|
-
itemType: ContentItemType;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {object}
|
|
43
|
-
* @memberof TimelineTweet
|
|
44
|
-
*/
|
|
45
|
-
promotedMetadata?: object;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof TimelineTweet
|
|
50
|
-
*/
|
|
51
|
-
tweetDisplayType: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {ItemResult}
|
|
55
|
-
* @memberof TimelineTweet
|
|
56
|
-
*/
|
|
57
|
-
tweetResults: ItemResult;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Check if a given object implements the TimelineTweet interface.
|
|
61
|
-
*/
|
|
62
|
-
export declare function instanceOfTimelineTweet(value: object): boolean;
|
|
63
|
-
export declare function TimelineTweetFromJSON(json: any): TimelineTweet;
|
|
64
|
-
export declare function TimelineTweetFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineTweet;
|
|
65
|
-
export declare function TimelineTweetToJSON(value?: TimelineTweet | null): any;
|
|
@@ -1,68 +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.TimelineTweetToJSON = exports.TimelineTweetFromJSONTyped = exports.TimelineTweetFromJSON = exports.instanceOfTimelineTweet = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
var ContentItemType_1 = require("./ContentItemType");
|
|
19
|
-
var ItemResult_1 = require("./ItemResult");
|
|
20
|
-
var SocialContext_1 = require("./SocialContext");
|
|
21
|
-
var TypeName_1 = require("./TypeName");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the TimelineTweet interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfTimelineTweet(value) {
|
|
26
|
-
var isInstance = true;
|
|
27
|
-
isInstance = isInstance && "typename" in value;
|
|
28
|
-
isInstance = isInstance && "itemType" in value;
|
|
29
|
-
isInstance = isInstance && "tweetDisplayType" in value;
|
|
30
|
-
isInstance = isInstance && "tweetResults" in value;
|
|
31
|
-
return isInstance;
|
|
32
|
-
}
|
|
33
|
-
exports.instanceOfTimelineTweet = instanceOfTimelineTweet;
|
|
34
|
-
function TimelineTweetFromJSON(json) {
|
|
35
|
-
return TimelineTweetFromJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
exports.TimelineTweetFromJSON = TimelineTweetFromJSON;
|
|
38
|
-
function TimelineTweetFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if ((json === undefined) || (json === null)) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'socialContext': !(0, runtime_1.exists)(json, 'SocialContext') ? undefined : (0, SocialContext_1.SocialContextFromJSON)(json['SocialContext']),
|
|
44
|
-
'typename': (0, TypeName_1.TypeNameFromJSON)(json['__typename']),
|
|
45
|
-
'itemType': (0, ContentItemType_1.ContentItemTypeFromJSON)(json['itemType']),
|
|
46
|
-
'promotedMetadata': !(0, runtime_1.exists)(json, 'promotedMetadata') ? undefined : json['promotedMetadata'],
|
|
47
|
-
'tweetDisplayType': json['tweetDisplayType'],
|
|
48
|
-
'tweetResults': (0, ItemResult_1.ItemResultFromJSON)(json['tweet_results']),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.TimelineTweetFromJSONTyped = TimelineTweetFromJSONTyped;
|
|
52
|
-
function TimelineTweetToJSON(value) {
|
|
53
|
-
if (value === undefined) {
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
56
|
-
if (value === null) {
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
'SocialContext': (0, SocialContext_1.SocialContextToJSON)(value.socialContext),
|
|
61
|
-
'__typename': (0, TypeName_1.TypeNameToJSON)(value.typename),
|
|
62
|
-
'itemType': (0, ContentItemType_1.ContentItemTypeToJSON)(value.itemType),
|
|
63
|
-
'promotedMetadata': value.promotedMetadata,
|
|
64
|
-
'tweetDisplayType': value.tweetDisplayType,
|
|
65
|
-
'tweet_results': (0, ItemResult_1.ItemResultToJSON)(value.tweetResults),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
exports.TimelineTweetToJSON = TimelineTweetToJSON;
|
|
@@ -1,59 +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 { ContentItemType } from './ContentItemType';
|
|
13
|
-
import type { SocialContext } from './SocialContext';
|
|
14
|
-
import type { TypeName } from './TypeName';
|
|
15
|
-
import type { UserResults } from './UserResults';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface TimelineUser
|
|
20
|
-
*/
|
|
21
|
-
export interface TimelineUser {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {SocialContext}
|
|
25
|
-
* @memberof TimelineUser
|
|
26
|
-
*/
|
|
27
|
-
socialContext?: SocialContext;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {TypeName}
|
|
31
|
-
* @memberof TimelineUser
|
|
32
|
-
*/
|
|
33
|
-
typename: TypeName;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {ContentItemType}
|
|
37
|
-
* @memberof TimelineUser
|
|
38
|
-
*/
|
|
39
|
-
itemType: ContentItemType;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof TimelineUser
|
|
44
|
-
*/
|
|
45
|
-
userDisplayType: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {UserResults}
|
|
49
|
-
* @memberof TimelineUser
|
|
50
|
-
*/
|
|
51
|
-
userResults: UserResults;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Check if a given object implements the TimelineUser interface.
|
|
55
|
-
*/
|
|
56
|
-
export declare function instanceOfTimelineUser(value: object): boolean;
|
|
57
|
-
export declare function TimelineUserFromJSON(json: any): TimelineUser;
|
|
58
|
-
export declare function TimelineUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineUser;
|
|
59
|
-
export declare function TimelineUserToJSON(value?: TimelineUser | null): any;
|
|
@@ -1,66 +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.TimelineUserToJSON = exports.TimelineUserFromJSONTyped = exports.TimelineUserFromJSON = exports.instanceOfTimelineUser = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
var ContentItemType_1 = require("./ContentItemType");
|
|
19
|
-
var SocialContext_1 = require("./SocialContext");
|
|
20
|
-
var TypeName_1 = require("./TypeName");
|
|
21
|
-
var UserResults_1 = require("./UserResults");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the TimelineUser interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfTimelineUser(value) {
|
|
26
|
-
var isInstance = true;
|
|
27
|
-
isInstance = isInstance && "typename" in value;
|
|
28
|
-
isInstance = isInstance && "itemType" in value;
|
|
29
|
-
isInstance = isInstance && "userDisplayType" in value;
|
|
30
|
-
isInstance = isInstance && "userResults" in value;
|
|
31
|
-
return isInstance;
|
|
32
|
-
}
|
|
33
|
-
exports.instanceOfTimelineUser = instanceOfTimelineUser;
|
|
34
|
-
function TimelineUserFromJSON(json) {
|
|
35
|
-
return TimelineUserFromJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
exports.TimelineUserFromJSON = TimelineUserFromJSON;
|
|
38
|
-
function TimelineUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if ((json === undefined) || (json === null)) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'socialContext': !(0, runtime_1.exists)(json, 'SocialContext') ? undefined : (0, SocialContext_1.SocialContextFromJSON)(json['SocialContext']),
|
|
44
|
-
'typename': (0, TypeName_1.TypeNameFromJSON)(json['__typename']),
|
|
45
|
-
'itemType': (0, ContentItemType_1.ContentItemTypeFromJSON)(json['itemType']),
|
|
46
|
-
'userDisplayType': json['userDisplayType'],
|
|
47
|
-
'userResults': (0, UserResults_1.UserResultsFromJSON)(json['user_results']),
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
exports.TimelineUserFromJSONTyped = TimelineUserFromJSONTyped;
|
|
51
|
-
function TimelineUserToJSON(value) {
|
|
52
|
-
if (value === undefined) {
|
|
53
|
-
return undefined;
|
|
54
|
-
}
|
|
55
|
-
if (value === null) {
|
|
56
|
-
return null;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
'SocialContext': (0, SocialContext_1.SocialContextToJSON)(value.socialContext),
|
|
60
|
-
'__typename': (0, TypeName_1.TypeNameToJSON)(value.typename),
|
|
61
|
-
'itemType': (0, ContentItemType_1.ContentItemTypeToJSON)(value.itemType),
|
|
62
|
-
'userDisplayType': value.userDisplayType,
|
|
63
|
-
'user_results': (0, UserResults_1.UserResultsToJSON)(value.userResults),
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
exports.TimelineUserToJSON = TimelineUserToJSON;
|
|
@@ -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 TimelineV2
|
|
17
|
-
*/
|
|
18
|
-
export interface TimelineV2 {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Timeline}
|
|
22
|
-
* @memberof TimelineV2
|
|
23
|
-
*/
|
|
24
|
-
timeline: Timeline;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the TimelineV2 interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfTimelineV2(value: object): boolean;
|
|
30
|
-
export declare function TimelineV2FromJSON(json: any): TimelineV2;
|
|
31
|
-
export declare function TimelineV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineV2;
|
|
32
|
-
export declare function TimelineV2ToJSON(value?: TimelineV2 | 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.TimelineV2ToJSON = exports.TimelineV2FromJSONTyped = exports.TimelineV2FromJSON = exports.instanceOfTimelineV2 = void 0;
|
|
17
|
-
var Timeline_1 = require("./Timeline");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the TimelineV2 interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfTimelineV2(value) {
|
|
22
|
-
var isInstance = true;
|
|
23
|
-
isInstance = isInstance && "timeline" in value;
|
|
24
|
-
return isInstance;
|
|
25
|
-
}
|
|
26
|
-
exports.instanceOfTimelineV2 = instanceOfTimelineV2;
|
|
27
|
-
function TimelineV2FromJSON(json) {
|
|
28
|
-
return TimelineV2FromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
exports.TimelineV2FromJSON = TimelineV2FromJSON;
|
|
31
|
-
function TimelineV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if ((json === undefined) || (json === null)) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'timeline': (0, Timeline_1.TimelineFromJSON)(json['timeline']),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.TimelineV2FromJSONTyped = TimelineV2FromJSONTyped;
|
|
40
|
-
function TimelineV2ToJSON(value) {
|
|
41
|
-
if (value === undefined) {
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'timeline': (0, Timeline_1.TimelineToJSON)(value.timeline),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.TimelineV2ToJSON = TimelineV2ToJSON;
|
package/dist/models/Tweet.d.ts
DELETED
|
@@ -1,92 +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 { ItemResult } from './ItemResult';
|
|
13
|
-
import type { TweetEditControl } from './TweetEditControl';
|
|
14
|
-
import type { TweetEditPrespective } from './TweetEditPrespective';
|
|
15
|
-
import type { TweetLegacy } from './TweetLegacy';
|
|
16
|
-
import type { TweetViews } from './TweetViews';
|
|
17
|
-
import type { TypeName } from './TypeName';
|
|
18
|
-
import type { UserResultCore } from './UserResultCore';
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @interface Tweet
|
|
23
|
-
*/
|
|
24
|
-
export interface Tweet {
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {TypeName}
|
|
28
|
-
* @memberof Tweet
|
|
29
|
-
*/
|
|
30
|
-
typename?: TypeName;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {UserResultCore}
|
|
34
|
-
* @memberof Tweet
|
|
35
|
-
*/
|
|
36
|
-
core: UserResultCore;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {TweetEditControl}
|
|
40
|
-
* @memberof Tweet
|
|
41
|
-
*/
|
|
42
|
-
editControl: TweetEditControl;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {TweetEditPrespective}
|
|
46
|
-
* @memberof Tweet
|
|
47
|
-
*/
|
|
48
|
-
editPrespective: TweetEditPrespective;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {boolean}
|
|
52
|
-
* @memberof Tweet
|
|
53
|
-
*/
|
|
54
|
-
isTranslatable: boolean;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {TweetLegacy}
|
|
58
|
-
* @memberof Tweet
|
|
59
|
-
*/
|
|
60
|
-
legacy: TweetLegacy;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {ItemResult}
|
|
64
|
-
* @memberof Tweet
|
|
65
|
-
*/
|
|
66
|
-
quotedStatusResult?: ItemResult;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof Tweet
|
|
71
|
-
*/
|
|
72
|
-
restId: string;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {object}
|
|
76
|
-
* @memberof Tweet
|
|
77
|
-
*/
|
|
78
|
-
unmentionData?: object;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {TweetViews}
|
|
82
|
-
* @memberof Tweet
|
|
83
|
-
*/
|
|
84
|
-
views: TweetViews;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Check if a given object implements the Tweet interface.
|
|
88
|
-
*/
|
|
89
|
-
export declare function instanceOfTweet(value: object): boolean;
|
|
90
|
-
export declare function TweetFromJSON(json: any): Tweet;
|
|
91
|
-
export declare function TweetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tweet;
|
|
92
|
-
export declare function TweetToJSON(value?: Tweet | null): any;
|
package/dist/models/Tweet.js
DELETED
|
@@ -1,82 +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.TweetToJSON = exports.TweetFromJSONTyped = exports.TweetFromJSON = exports.instanceOfTweet = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
var ItemResult_1 = require("./ItemResult");
|
|
19
|
-
var TweetEditControl_1 = require("./TweetEditControl");
|
|
20
|
-
var TweetEditPrespective_1 = require("./TweetEditPrespective");
|
|
21
|
-
var TweetLegacy_1 = require("./TweetLegacy");
|
|
22
|
-
var TweetViews_1 = require("./TweetViews");
|
|
23
|
-
var TypeName_1 = require("./TypeName");
|
|
24
|
-
var UserResultCore_1 = require("./UserResultCore");
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the Tweet interface.
|
|
27
|
-
*/
|
|
28
|
-
function instanceOfTweet(value) {
|
|
29
|
-
var isInstance = true;
|
|
30
|
-
isInstance = isInstance && "core" in value;
|
|
31
|
-
isInstance = isInstance && "editControl" in value;
|
|
32
|
-
isInstance = isInstance && "editPrespective" in value;
|
|
33
|
-
isInstance = isInstance && "isTranslatable" in value;
|
|
34
|
-
isInstance = isInstance && "legacy" in value;
|
|
35
|
-
isInstance = isInstance && "restId" in value;
|
|
36
|
-
isInstance = isInstance && "views" in value;
|
|
37
|
-
return isInstance;
|
|
38
|
-
}
|
|
39
|
-
exports.instanceOfTweet = instanceOfTweet;
|
|
40
|
-
function TweetFromJSON(json) {
|
|
41
|
-
return TweetFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
exports.TweetFromJSON = TweetFromJSON;
|
|
44
|
-
function TweetFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
-
if ((json === undefined) || (json === null)) {
|
|
46
|
-
return json;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'typename': !(0, runtime_1.exists)(json, '__typename') ? undefined : (0, TypeName_1.TypeNameFromJSON)(json['__typename']),
|
|
50
|
-
'core': (0, UserResultCore_1.UserResultCoreFromJSON)(json['core']),
|
|
51
|
-
'editControl': (0, TweetEditControl_1.TweetEditControlFromJSON)(json['edit_control']),
|
|
52
|
-
'editPrespective': (0, TweetEditPrespective_1.TweetEditPrespectiveFromJSON)(json['edit_prespective']),
|
|
53
|
-
'isTranslatable': json['is_translatable'],
|
|
54
|
-
'legacy': (0, TweetLegacy_1.TweetLegacyFromJSON)(json['legacy']),
|
|
55
|
-
'quotedStatusResult': !(0, runtime_1.exists)(json, 'quoted_status_result') ? undefined : (0, ItemResult_1.ItemResultFromJSON)(json['quoted_status_result']),
|
|
56
|
-
'restId': json['rest_id'],
|
|
57
|
-
'unmentionData': !(0, runtime_1.exists)(json, 'unmention_data') ? undefined : json['unmention_data'],
|
|
58
|
-
'views': (0, TweetViews_1.TweetViewsFromJSON)(json['views']),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
exports.TweetFromJSONTyped = TweetFromJSONTyped;
|
|
62
|
-
function TweetToJSON(value) {
|
|
63
|
-
if (value === undefined) {
|
|
64
|
-
return undefined;
|
|
65
|
-
}
|
|
66
|
-
if (value === null) {
|
|
67
|
-
return null;
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
'__typename': (0, TypeName_1.TypeNameToJSON)(value.typename),
|
|
71
|
-
'core': (0, UserResultCore_1.UserResultCoreToJSON)(value.core),
|
|
72
|
-
'edit_control': (0, TweetEditControl_1.TweetEditControlToJSON)(value.editControl),
|
|
73
|
-
'edit_prespective': (0, TweetEditPrespective_1.TweetEditPrespectiveToJSON)(value.editPrespective),
|
|
74
|
-
'is_translatable': value.isTranslatable,
|
|
75
|
-
'legacy': (0, TweetLegacy_1.TweetLegacyToJSON)(value.legacy),
|
|
76
|
-
'quoted_status_result': (0, ItemResult_1.ItemResultToJSON)(value.quotedStatusResult),
|
|
77
|
-
'rest_id': value.restId,
|
|
78
|
-
'unmention_data': value.unmentionData,
|
|
79
|
-
'views': (0, TweetViews_1.TweetViewsToJSON)(value.views),
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
exports.TweetToJSON = TweetToJSON;
|
|
@@ -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 { TweetDetailResponseData } from './TweetDetailResponseData';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface TweetDetailResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface TweetDetailResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {TweetDetailResponseData}
|
|
22
|
-
* @memberof TweetDetailResponse
|
|
23
|
-
*/
|
|
24
|
-
data: TweetDetailResponseData;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the TweetDetailResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfTweetDetailResponse(value: object): boolean;
|
|
30
|
-
export declare function TweetDetailResponseFromJSON(json: any): TweetDetailResponse;
|
|
31
|
-
export declare function TweetDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetDetailResponse;
|
|
32
|
-
export declare function TweetDetailResponseToJSON(value?: TweetDetailResponse | 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.TweetDetailResponseToJSON = exports.TweetDetailResponseFromJSONTyped = exports.TweetDetailResponseFromJSON = exports.instanceOfTweetDetailResponse = void 0;
|
|
17
|
-
var TweetDetailResponseData_1 = require("./TweetDetailResponseData");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the TweetDetailResponse interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfTweetDetailResponse(value) {
|
|
22
|
-
var isInstance = true;
|
|
23
|
-
isInstance = isInstance && "data" in value;
|
|
24
|
-
return isInstance;
|
|
25
|
-
}
|
|
26
|
-
exports.instanceOfTweetDetailResponse = instanceOfTweetDetailResponse;
|
|
27
|
-
function TweetDetailResponseFromJSON(json) {
|
|
28
|
-
return TweetDetailResponseFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
exports.TweetDetailResponseFromJSON = TweetDetailResponseFromJSON;
|
|
31
|
-
function TweetDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if ((json === undefined) || (json === null)) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': (0, TweetDetailResponseData_1.TweetDetailResponseDataFromJSON)(json['data']),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.TweetDetailResponseFromJSONTyped = TweetDetailResponseFromJSONTyped;
|
|
40
|
-
function TweetDetailResponseToJSON(value) {
|
|
41
|
-
if (value === undefined) {
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'data': (0, TweetDetailResponseData_1.TweetDetailResponseDataToJSON)(value.data),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.TweetDetailResponseToJSON = TweetDetailResponseToJSON;
|