twitter-openapi-typescript-generated 0.0.38 → 0.0.40
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/README.md +692 -28
- package/dist/apis/DefaultApi.d.ts +10 -1
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +64 -25
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.d.ts +5 -1
- package/dist/apis/OtherApi.d.ts.map +1 -1
- package/dist/apis/OtherApi.js +31 -13
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts +48 -1
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +272 -105
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +71 -1
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +476 -181
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +9 -1
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +63 -25
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +40 -1
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +394 -61
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts +5 -1
- package/dist/apis/UsersApi.d.ts.map +1 -1
- package/dist/apis/UsersApi.js +32 -13
- package/dist/apis/UsersApi.js.map +1 -1
- package/dist/apis/V11GetApi.d.ts +8 -0
- package/dist/apis/V11GetApi.d.ts.map +1 -1
- package/dist/apis/V11GetApi.js +58 -22
- package/dist/apis/V11GetApi.js.map +1 -1
- package/dist/apis/V11PostApi.d.ts +8 -0
- package/dist/apis/V11PostApi.d.ts.map +1 -1
- package/dist/apis/V11PostApi.js +50 -16
- package/dist/apis/V11PostApi.js.map +1 -1
- package/dist/apis/V20GetApi.d.ts +4 -0
- package/dist/apis/V20GetApi.d.ts.map +1 -1
- package/dist/apis/V20GetApi.js +29 -11
- package/dist/apis/V20GetApi.js.map +1 -1
- package/dist/models/ArticlePreview.d.ts +52 -0
- package/dist/models/ArticlePreview.d.ts.map +1 -0
- package/dist/models/ArticlePreview.js +63 -0
- package/dist/models/ArticlePreview.js.map +1 -0
- package/dist/models/ArticleResult.d.ts +21 -1
- package/dist/models/ArticleResult.d.ts.map +1 -1
- package/dist/models/ArticleResult.js +7 -3
- package/dist/models/ArticleResult.js.map +1 -1
- package/dist/models/AuthorCommunityRelationship.d.ts +5 -4
- package/dist/models/AuthorCommunityRelationship.d.ts.map +1 -1
- package/dist/models/AuthorCommunityRelationship.js +5 -4
- package/dist/models/AuthorCommunityRelationship.js.map +1 -1
- package/dist/models/BirdwatchEntityRef.d.ts +2 -2
- package/dist/models/BirdwatchPivot.d.ts +16 -2
- package/dist/models/BirdwatchPivot.d.ts.map +1 -1
- package/dist/models/BirdwatchPivot.js +11 -2
- package/dist/models/BirdwatchPivot.js.map +1 -1
- package/dist/models/BirdwatchPivotNote.d.ts +19 -0
- package/dist/models/BirdwatchPivotNote.d.ts.map +1 -1
- package/dist/models/BirdwatchPivotNote.js +7 -0
- package/dist/models/BirdwatchPivotNote.js.map +1 -1
- package/dist/models/Community.d.ts +189 -3
- package/dist/models/Community.d.ts.map +1 -1
- package/dist/models/Community.js +82 -4
- package/dist/models/Community.js.map +1 -1
- package/dist/models/CommunityDeleteActionResult.d.ts +1 -1
- package/dist/models/CommunityInvitesResult.d.ts +1 -1
- package/dist/models/CommunityJoinActionResultUnion.d.ts.map +1 -1
- package/dist/models/CommunityJoinActionResultUnion.js +2 -2
- package/dist/models/CommunityJoinActionResultUnion.js.map +1 -1
- package/dist/models/CommunityJoinActionUnavailable.d.ts +1 -1
- package/dist/models/CommunityLeaveActionResult.d.ts +1 -1
- package/dist/models/CommunityResult.d.ts +34 -0
- package/dist/models/CommunityResult.d.ts.map +1 -0
- package/dist/models/CommunityResult.js +53 -0
- package/dist/models/CommunityResult.js.map +1 -0
- package/dist/models/CommunityUnavailable.d.ts +34 -0
- package/dist/models/CommunityUnavailable.d.ts.map +1 -0
- package/dist/models/CommunityUnavailable.js +53 -0
- package/dist/models/CommunityUnavailable.js.map +1 -0
- package/dist/models/CommunityUnion.d.ts +28 -0
- package/dist/models/CommunityUnion.d.ts.map +1 -0
- package/dist/models/CommunityUnion.js +55 -0
- package/dist/models/CommunityUnion.js.map +1 -0
- package/dist/models/ContentDisclosure.d.ts +41 -0
- package/dist/models/ContentDisclosure.d.ts.map +1 -0
- package/dist/models/ContentDisclosure.js +54 -0
- package/dist/models/ContentDisclosure.js.map +1 -0
- package/dist/models/ContentDisclosureAdvertisingDisclosure.d.ts +33 -0
- package/dist/models/ContentDisclosureAdvertisingDisclosure.d.ts.map +1 -0
- package/dist/models/ContentDisclosureAdvertisingDisclosure.js +52 -0
- package/dist/models/ContentDisclosureAdvertisingDisclosure.js.map +1 -0
- package/dist/models/ContentDisclosureAiGeneratedDisclosure.d.ts +54 -0
- package/dist/models/ContentDisclosureAiGeneratedDisclosure.d.ts.map +1 -0
- package/dist/models/ContentDisclosureAiGeneratedDisclosure.js +67 -0
- package/dist/models/ContentDisclosureAiGeneratedDisclosure.js.map +1 -0
- package/dist/models/ContentUnion.d.ts.map +1 -1
- package/dist/models/ContentUnion.js +2 -2
- package/dist/models/ContentUnion.js.map +1 -1
- package/dist/models/ConversationControl.d.ts +1 -1
- package/dist/models/CoverCta.d.ts +1 -1
- package/dist/models/CtaClientEventInfo.d.ts +1 -1
- package/dist/models/Entities.d.ts +11 -4
- package/dist/models/Entities.d.ts.map +1 -1
- package/dist/models/Entities.js +8 -13
- package/dist/models/Entities.js.map +1 -1
- package/dist/models/ErrorResponse.d.ts +3 -2
- package/dist/models/ErrorResponse.d.ts.map +1 -1
- package/dist/models/ErrorResponse.js +3 -2
- package/dist/models/ErrorResponse.js.map +1 -1
- package/dist/models/ErrorResponsePathInner.d.ts +22 -0
- package/dist/models/ErrorResponsePathInner.d.ts.map +1 -0
- package/dist/models/ErrorResponsePathInner.js +51 -0
- package/dist/models/ErrorResponsePathInner.js.map +1 -0
- package/dist/models/ExtMediaAvailability.d.ts +1 -1
- package/dist/models/GrokAnnotation.d.ts +33 -0
- package/dist/models/GrokAnnotation.d.ts.map +1 -0
- package/dist/models/GrokAnnotation.js +50 -0
- package/dist/models/GrokAnnotation.js.map +1 -0
- package/dist/models/GrokEntity.d.ts +46 -0
- package/dist/models/GrokEntity.d.ts.map +1 -0
- package/dist/models/GrokEntity.js +61 -0
- package/dist/models/GrokEntity.js.map +1 -0
- package/dist/models/GrokEntityRef.d.ts +78 -0
- package/dist/models/GrokEntityRef.d.ts.map +1 -0
- package/dist/models/GrokEntityRef.js +76 -0
- package/dist/models/GrokEntityRef.js.map +1 -0
- package/dist/models/GrokShareAttachmentItem.d.ts +8 -0
- package/dist/models/GrokShareAttachmentItem.d.ts.map +1 -1
- package/dist/models/GrokShareAttachmentItem.js +2 -0
- package/dist/models/GrokShareAttachmentItem.js.map +1 -1
- package/dist/models/GrokTranslatedCommunityNote.d.ts +58 -0
- package/dist/models/GrokTranslatedCommunityNote.d.ts.map +1 -0
- package/dist/models/GrokTranslatedCommunityNote.js +67 -0
- package/dist/models/GrokTranslatedCommunityNote.js.map +1 -0
- package/dist/models/GrokTranslatedCommunityNoteWithAvailability.d.ts +40 -0
- package/dist/models/GrokTranslatedCommunityNoteWithAvailability.d.ts.map +1 -0
- package/dist/models/GrokTranslatedCommunityNoteWithAvailability.js +55 -0
- package/dist/models/GrokTranslatedCommunityNoteWithAvailability.js.map +1 -0
- package/dist/models/GrokTranslatedPost.d.ts +66 -0
- package/dist/models/GrokTranslatedPost.d.ts.map +1 -0
- package/dist/models/GrokTranslatedPost.js +61 -0
- package/dist/models/GrokTranslatedPost.js.map +1 -0
- package/dist/models/GrokTranslatedPostWithAvailability.d.ts +40 -0
- package/dist/models/GrokTranslatedPostWithAvailability.d.ts.map +1 -0
- package/dist/models/GrokTranslatedPostWithAvailability.js +55 -0
- package/dist/models/GrokTranslatedPostWithAvailability.js.map +1 -0
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js +2 -2
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +2 -2
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/LimitedActionResultsData.d.ts +1 -1
- package/dist/models/Media.d.ts +7 -1
- package/dist/models/Media.d.ts.map +1 -1
- package/dist/models/Media.js +2 -0
- package/dist/models/Media.js.map +1 -1
- package/dist/models/MediaExtended.d.ts +7 -1
- package/dist/models/MediaExtended.d.ts.map +1 -1
- package/dist/models/MediaExtended.js +2 -0
- package/dist/models/MediaExtended.js.map +1 -1
- package/dist/models/MediaSize.d.ts +1 -1
- package/dist/models/NoteTweet.d.ts +1 -1
- package/dist/models/NoteTweet.d.ts.map +1 -1
- package/dist/models/NoteTweet.js +1 -3
- package/dist/models/NoteTweet.js.map +1 -1
- package/dist/models/NoteTweetResultRichTextTag.d.ts +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +50 -8
- package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.js +39 -11
- package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
- package/dist/models/PostCta.d.ts +58 -0
- package/dist/models/PostCta.d.ts.map +1 -0
- package/dist/models/PostCta.js +69 -0
- package/dist/models/PostCta.js.map +1 -0
- package/dist/models/PostCtaTitleText.d.ts +40 -0
- package/dist/models/PostCtaTitleText.d.ts.map +1 -0
- package/dist/models/PostCtaTitleText.js +57 -0
- package/dist/models/PostCtaTitleText.js.map +1 -0
- package/dist/models/PostCtaTitleTextEntity.d.ts +46 -0
- package/dist/models/PostCtaTitleTextEntity.d.ts.map +1 -0
- package/dist/models/PostCtaTitleTextEntity.js +61 -0
- package/dist/models/PostCtaTitleTextEntity.js.map +1 -0
- package/dist/models/PostCtaTitleTextEntityRef.d.ts +41 -0
- package/dist/models/PostCtaTitleTextEntityRef.d.ts.map +1 -0
- package/dist/models/PostCtaTitleTextEntityRef.js +56 -0
- package/dist/models/PostCtaTitleTextEntityRef.js.map +1 -0
- package/dist/models/PostCtaUserResults.d.ts +34 -0
- package/dist/models/PostCtaUserResults.d.ts.map +1 -0
- package/dist/models/PostCtaUserResults.js +53 -0
- package/dist/models/PostCtaUserResults.js.map +1 -0
- package/dist/models/PostCtaUserResultsAvatar.d.ts +33 -0
- package/dist/models/PostCtaUserResultsAvatar.d.ts.map +1 -0
- package/dist/models/PostCtaUserResultsAvatar.js +52 -0
- package/dist/models/PostCtaUserResultsAvatar.js.map +1 -0
- package/dist/models/PostCtaUserResultsResult.d.ts +41 -0
- package/dist/models/PostCtaUserResultsResult.d.ts.map +1 -0
- package/dist/models/PostCtaUserResultsResult.js +58 -0
- package/dist/models/PostCtaUserResultsResult.js.map +1 -0
- package/dist/models/ProfileBio.d.ts +33 -0
- package/dist/models/ProfileBio.d.ts.map +1 -0
- package/dist/models/ProfileBio.js +52 -0
- package/dist/models/ProfileBio.js.map +1 -0
- package/dist/models/Session.d.ts +1 -1
- package/dist/models/Smarttag.d.ts +46 -0
- package/dist/models/Smarttag.d.ts.map +1 -0
- package/dist/models/Smarttag.js +61 -0
- package/dist/models/Smarttag.js.map +1 -0
- package/dist/models/SmarttagTag.d.ts +35 -0
- package/dist/models/SmarttagTag.d.ts.map +1 -0
- package/dist/models/SmarttagTag.js +52 -0
- package/dist/models/SmarttagTag.js.map +1 -0
- package/dist/models/SocialContextLandingUrl.d.ts +1 -1
- package/dist/models/SocialContextUnion.d.ts.map +1 -1
- package/dist/models/SocialContextUnion.js +2 -2
- package/dist/models/SocialContextUnion.js.map +1 -1
- package/dist/models/SuperFollowUserProfile.d.ts +33 -0
- package/dist/models/SuperFollowUserProfile.d.ts.map +1 -0
- package/dist/models/SuperFollowUserProfile.js +52 -0
- package/dist/models/SuperFollowUserProfile.js.map +1 -0
- package/dist/models/SuperFollowsReplyUserResultCore.d.ts +33 -0
- package/dist/models/SuperFollowsReplyUserResultCore.d.ts.map +1 -0
- package/dist/models/SuperFollowsReplyUserResultCore.js +52 -0
- package/dist/models/SuperFollowsReplyUserResultCore.js.map +1 -0
- package/dist/models/SuperFollowsReplyUserResultData.d.ts +3 -3
- package/dist/models/SuperFollowsReplyUserResultData.d.ts.map +1 -1
- package/dist/models/SuperFollowsReplyUserResultData.js +3 -5
- package/dist/models/SuperFollowsReplyUserResultData.js.map +1 -1
- package/dist/models/TextEntityRef.d.ts +2 -2
- package/dist/models/TimelineCoverBehavior.d.ts +1 -1
- package/dist/models/TimelineCoverBehaviorUrl.d.ts +1 -1
- package/dist/models/TimelineGeneralContext.d.ts +1 -1
- package/dist/models/TimelineHalfCover.d.ts +2 -2
- package/dist/models/TimelineShowAlert.d.ts +9 -2
- package/dist/models/TimelineShowAlert.d.ts.map +1 -1
- package/dist/models/TimelineShowAlert.js +3 -0
- package/dist/models/TimelineShowAlert.js.map +1 -1
- package/dist/models/TimelineTerminateTimeline.d.ts +1 -1
- package/dist/models/TimelineTombstone.d.ts +1 -1
- package/dist/models/TimelineTopicContext.d.ts +1 -1
- package/dist/models/TimelineTweet.d.ts +1 -1
- package/dist/models/TimelineUser.d.ts +1 -1
- package/dist/models/TombstoneRef.d.ts +2 -2
- package/dist/models/Tweet.d.ts +43 -3
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +19 -3
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetCardPlatformAudience.d.ts +1 -1
- package/dist/models/TweetInterstitial.d.ts +2 -1
- package/dist/models/TweetInterstitial.d.ts.map +1 -1
- package/dist/models/TweetInterstitial.js +2 -1
- package/dist/models/TweetInterstitial.js.map +1 -1
- package/dist/models/TweetInterstitialTextEntityRef.d.ts +2 -2
- package/dist/models/TweetLegacy.d.ts +2 -2
- package/dist/models/TweetLegacy.d.ts.map +1 -1
- package/dist/models/TweetLegacy.js +1 -3
- package/dist/models/TweetLegacy.js.map +1 -1
- package/dist/models/TweetPostCta.d.ts +55 -0
- package/dist/models/TweetPostCta.d.ts.map +1 -0
- package/dist/models/TweetPostCta.js +68 -0
- package/dist/models/TweetPostCta.js.map +1 -0
- package/dist/models/TweetPreviewDisplayCtaUrl.d.ts +1 -1
- package/dist/models/TweetPreviewDisplayTweet.d.ts +7 -0
- package/dist/models/TweetPreviewDisplayTweet.d.ts.map +1 -1
- package/dist/models/TweetPreviewDisplayTweet.js +3 -0
- package/dist/models/TweetPreviewDisplayTweet.js.map +1 -1
- package/dist/models/TweetUnion.d.ts.map +1 -1
- package/dist/models/TweetUnion.js +2 -2
- package/dist/models/TweetUnion.js.map +1 -1
- package/dist/models/TweetView.d.ts +1 -1
- package/dist/models/TypeName.d.ts +2 -0
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +3 -1
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/UnifiedCard.d.ts +1 -1
- package/dist/models/User.d.ts +92 -3
- package/dist/models/User.d.ts.map +1 -1
- package/dist/models/User.js +40 -3
- package/dist/models/User.js.map +1 -1
- package/dist/models/UserAvatar.d.ts +33 -0
- package/dist/models/UserAvatar.d.ts.map +1 -0
- package/dist/models/UserAvatar.js +52 -0
- package/dist/models/UserAvatar.js.map +1 -0
- package/dist/models/UserCore.d.ts +45 -0
- package/dist/models/UserCore.d.ts.map +1 -0
- package/dist/models/UserCore.js +60 -0
- package/dist/models/UserCore.js.map +1 -0
- package/dist/models/UserDmPermissions.d.ts +33 -0
- package/dist/models/UserDmPermissions.d.ts.map +1 -0
- package/dist/models/UserDmPermissions.js +52 -0
- package/dist/models/UserDmPermissions.js.map +1 -0
- package/dist/models/UserLegacy.d.ts +32 -8
- package/dist/models/UserLegacy.d.ts.map +1 -1
- package/dist/models/UserLegacy.js +22 -20
- package/dist/models/UserLegacy.js.map +1 -1
- package/dist/models/UserLegacyExtendedProfileBirthdate.d.ts +2 -2
- package/dist/models/UserLocation.d.ts +33 -0
- package/dist/models/UserLocation.d.ts.map +1 -0
- package/dist/models/UserLocation.js +52 -0
- package/dist/models/UserLocation.js.map +1 -0
- package/dist/models/UserMediaPermissions.d.ts +33 -0
- package/dist/models/UserMediaPermissions.d.ts.map +1 -0
- package/dist/models/UserMediaPermissions.js +52 -0
- package/dist/models/UserMediaPermissions.js.map +1 -0
- package/dist/models/UserPrivacy.d.ts +33 -0
- package/dist/models/UserPrivacy.d.ts.map +1 -0
- package/dist/models/UserPrivacy.js +52 -0
- package/dist/models/UserPrivacy.js.map +1 -0
- package/dist/models/UserProfessional.d.ts +2 -2
- package/dist/models/UserProfessional.d.ts.map +1 -1
- package/dist/models/UserProfessional.js +2 -4
- package/dist/models/UserProfessional.js.map +1 -1
- package/dist/models/UserProfile.d.ts +34 -0
- package/dist/models/UserProfile.d.ts.map +1 -0
- package/dist/models/UserProfile.js +53 -0
- package/dist/models/UserProfile.js.map +1 -0
- package/dist/models/UserRelationshipPerspectives.d.ts +51 -0
- package/dist/models/UserRelationshipPerspectives.d.ts.map +1 -0
- package/dist/models/UserRelationshipPerspectives.js +56 -0
- package/dist/models/UserRelationshipPerspectives.js.map +1 -0
- package/dist/models/UserResultByScreenNameCore.d.ts +39 -0
- package/dist/models/UserResultByScreenNameCore.d.ts.map +1 -0
- package/dist/models/UserResultByScreenNameCore.js +56 -0
- package/dist/models/UserResultByScreenNameCore.js.map +1 -0
- package/dist/models/UserResultByScreenNameResult.d.ts +22 -1
- package/dist/models/UserResultByScreenNameResult.d.ts.map +1 -1
- package/dist/models/UserResultByScreenNameResult.js +15 -2
- package/dist/models/UserResultByScreenNameResult.js.map +1 -1
- package/dist/models/UserResultPrivacy.d.ts +33 -0
- package/dist/models/UserResultPrivacy.d.ts.map +1 -0
- package/dist/models/UserResultPrivacy.js +52 -0
- package/dist/models/UserResultPrivacy.js.map +1 -0
- package/dist/models/UserResultRelationshipPerspectives.d.ts +51 -0
- package/dist/models/UserResultRelationshipPerspectives.d.ts.map +1 -0
- package/dist/models/UserResultRelationshipPerspectives.js +56 -0
- package/dist/models/UserResultRelationshipPerspectives.js.map +1 -0
- package/dist/models/UserUnion.d.ts.map +1 -1
- package/dist/models/UserUnion.js +2 -2
- package/dist/models/UserUnion.js.map +1 -1
- package/dist/models/UserVerification.d.ts +47 -0
- package/dist/models/UserVerification.d.ts.map +1 -0
- package/dist/models/UserVerification.js +62 -0
- package/dist/models/UserVerification.js.map +1 -0
- package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +1 -1
- package/dist/models/index.d.ts +40 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +40 -1
- package/dist/models/index.js.map +1 -1
- package/dist/runtime.d.ts +3 -1
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +25 -5
- package/dist/runtime.js.map +1 -1
- package/package.json +2 -2
- package/dist/models/CommunityData.d.ts +0 -220
- package/dist/models/CommunityData.d.ts.map +0 -1
- package/dist/models/CommunityData.js +0 -133
- package/dist/models/CommunityData.js.map +0 -1
package/dist/apis/PostApi.js
CHANGED
|
@@ -66,7 +66,22 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
67
|
exports.PostApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
|
-
var
|
|
69
|
+
var CreateBookmarkResponse_1 = require("../models/CreateBookmarkResponse");
|
|
70
|
+
var CreateRetweetResponse_1 = require("../models/CreateRetweetResponse");
|
|
71
|
+
var CreateTweetResponse_1 = require("../models/CreateTweetResponse");
|
|
72
|
+
var DeleteBookmarkResponse_1 = require("../models/DeleteBookmarkResponse");
|
|
73
|
+
var DeleteRetweetResponse_1 = require("../models/DeleteRetweetResponse");
|
|
74
|
+
var DeleteTweetResponse_1 = require("../models/DeleteTweetResponse");
|
|
75
|
+
var FavoriteTweetResponse_1 = require("../models/FavoriteTweetResponse");
|
|
76
|
+
var PostCreateBookmarkRequest_1 = require("../models/PostCreateBookmarkRequest");
|
|
77
|
+
var PostCreateRetweetRequest_1 = require("../models/PostCreateRetweetRequest");
|
|
78
|
+
var PostCreateTweetRequest_1 = require("../models/PostCreateTweetRequest");
|
|
79
|
+
var PostDeleteBookmarkRequest_1 = require("../models/PostDeleteBookmarkRequest");
|
|
80
|
+
var PostDeleteRetweetRequest_1 = require("../models/PostDeleteRetweetRequest");
|
|
81
|
+
var PostDeleteTweetRequest_1 = require("../models/PostDeleteTweetRequest");
|
|
82
|
+
var PostFavoriteTweetRequest_1 = require("../models/PostFavoriteTweetRequest");
|
|
83
|
+
var PostUnfavoriteTweetRequest_1 = require("../models/PostUnfavoriteTweetRequest");
|
|
84
|
+
var UnfavoriteTweetResponse_1 = require("../models/UnfavoriteTweetResponse");
|
|
70
85
|
/**
|
|
71
86
|
*
|
|
72
87
|
*/
|
|
@@ -76,11 +91,11 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
76
91
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
92
|
}
|
|
78
93
|
/**
|
|
79
|
-
*
|
|
94
|
+
* Creates request options for postCreateBookmark without sending the request
|
|
80
95
|
*/
|
|
81
|
-
PostApi.prototype.
|
|
96
|
+
PostApi.prototype.postCreateBookmarkRequestOpts = function (requestParameters) {
|
|
82
97
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
98
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
84
99
|
return __generator(this, function (_14) {
|
|
85
100
|
switch (_14.label) {
|
|
86
101
|
case 0:
|
|
@@ -254,16 +269,35 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
254
269
|
case 39:
|
|
255
270
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
256
271
|
_14.label = 40;
|
|
257
|
-
case 40:
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
272
|
+
case 40:
|
|
273
|
+
urlPath = "/graphql/{pathQueryId}/CreateBookmark";
|
|
274
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
275
|
+
return [2 /*return*/, {
|
|
276
|
+
path: urlPath,
|
|
277
|
+
method: 'POST',
|
|
278
|
+
headers: headerParameters,
|
|
279
|
+
query: queryParameters,
|
|
280
|
+
body: (0, PostCreateBookmarkRequest_1.PostCreateBookmarkRequestToJSON)(requestParameters['postCreateBookmarkRequest']),
|
|
281
|
+
}];
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* create Bookmark
|
|
288
|
+
*/
|
|
289
|
+
PostApi.prototype.postCreateBookmarkRaw = function (requestParameters, initOverrides) {
|
|
290
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
291
|
+
var requestOptions, response;
|
|
292
|
+
return __generator(this, function (_a) {
|
|
293
|
+
switch (_a.label) {
|
|
294
|
+
case 0: return [4 /*yield*/, this.postCreateBookmarkRequestOpts(requestParameters)];
|
|
295
|
+
case 1:
|
|
296
|
+
requestOptions = _a.sent();
|
|
297
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
298
|
+
case 2:
|
|
299
|
+
response = _a.sent();
|
|
300
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateBookmarkResponse_1.CreateBookmarkResponseFromJSON)(jsonValue); })];
|
|
267
301
|
}
|
|
268
302
|
});
|
|
269
303
|
});
|
|
@@ -286,11 +320,11 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
286
320
|
});
|
|
287
321
|
};
|
|
288
322
|
/**
|
|
289
|
-
*
|
|
323
|
+
* Creates request options for postCreateRetweet without sending the request
|
|
290
324
|
*/
|
|
291
|
-
PostApi.prototype.
|
|
325
|
+
PostApi.prototype.postCreateRetweetRequestOpts = function (requestParameters) {
|
|
292
326
|
return __awaiter(this, void 0, void 0, function () {
|
|
293
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
327
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
294
328
|
return __generator(this, function (_14) {
|
|
295
329
|
switch (_14.label) {
|
|
296
330
|
case 0:
|
|
@@ -464,16 +498,35 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
464
498
|
case 39:
|
|
465
499
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
466
500
|
_14.label = 40;
|
|
467
|
-
case 40:
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
501
|
+
case 40:
|
|
502
|
+
urlPath = "/graphql/{pathQueryId}/CreateRetweet";
|
|
503
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
504
|
+
return [2 /*return*/, {
|
|
505
|
+
path: urlPath,
|
|
506
|
+
method: 'POST',
|
|
507
|
+
headers: headerParameters,
|
|
508
|
+
query: queryParameters,
|
|
509
|
+
body: (0, PostCreateRetweetRequest_1.PostCreateRetweetRequestToJSON)(requestParameters['postCreateRetweetRequest']),
|
|
510
|
+
}];
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
});
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* create Retweet
|
|
517
|
+
*/
|
|
518
|
+
PostApi.prototype.postCreateRetweetRaw = function (requestParameters, initOverrides) {
|
|
519
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
520
|
+
var requestOptions, response;
|
|
521
|
+
return __generator(this, function (_a) {
|
|
522
|
+
switch (_a.label) {
|
|
523
|
+
case 0: return [4 /*yield*/, this.postCreateRetweetRequestOpts(requestParameters)];
|
|
524
|
+
case 1:
|
|
525
|
+
requestOptions = _a.sent();
|
|
526
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
527
|
+
case 2:
|
|
528
|
+
response = _a.sent();
|
|
529
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateRetweetResponse_1.CreateRetweetResponseFromJSON)(jsonValue); })];
|
|
477
530
|
}
|
|
478
531
|
});
|
|
479
532
|
});
|
|
@@ -496,11 +549,11 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
496
549
|
});
|
|
497
550
|
};
|
|
498
551
|
/**
|
|
499
|
-
*
|
|
552
|
+
* Creates request options for postCreateTweet without sending the request
|
|
500
553
|
*/
|
|
501
|
-
PostApi.prototype.
|
|
554
|
+
PostApi.prototype.postCreateTweetRequestOpts = function (requestParameters) {
|
|
502
555
|
return __awaiter(this, void 0, void 0, function () {
|
|
503
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
556
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
504
557
|
return __generator(this, function (_14) {
|
|
505
558
|
switch (_14.label) {
|
|
506
559
|
case 0:
|
|
@@ -674,16 +727,35 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
674
727
|
case 39:
|
|
675
728
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
676
729
|
_14.label = 40;
|
|
677
|
-
case 40:
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
730
|
+
case 40:
|
|
731
|
+
urlPath = "/graphql/{pathQueryId}/CreateTweet";
|
|
732
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
733
|
+
return [2 /*return*/, {
|
|
734
|
+
path: urlPath,
|
|
735
|
+
method: 'POST',
|
|
736
|
+
headers: headerParameters,
|
|
737
|
+
query: queryParameters,
|
|
738
|
+
body: (0, PostCreateTweetRequest_1.PostCreateTweetRequestToJSON)(requestParameters['postCreateTweetRequest']),
|
|
739
|
+
}];
|
|
740
|
+
}
|
|
741
|
+
});
|
|
742
|
+
});
|
|
743
|
+
};
|
|
744
|
+
/**
|
|
745
|
+
* create Tweet
|
|
746
|
+
*/
|
|
747
|
+
PostApi.prototype.postCreateTweetRaw = function (requestParameters, initOverrides) {
|
|
748
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
749
|
+
var requestOptions, response;
|
|
750
|
+
return __generator(this, function (_a) {
|
|
751
|
+
switch (_a.label) {
|
|
752
|
+
case 0: return [4 /*yield*/, this.postCreateTweetRequestOpts(requestParameters)];
|
|
753
|
+
case 1:
|
|
754
|
+
requestOptions = _a.sent();
|
|
755
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
756
|
+
case 2:
|
|
757
|
+
response = _a.sent();
|
|
758
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateTweetResponse_1.CreateTweetResponseFromJSON)(jsonValue); })];
|
|
687
759
|
}
|
|
688
760
|
});
|
|
689
761
|
});
|
|
@@ -706,11 +778,11 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
706
778
|
});
|
|
707
779
|
};
|
|
708
780
|
/**
|
|
709
|
-
*
|
|
781
|
+
* Creates request options for postDeleteBookmark without sending the request
|
|
710
782
|
*/
|
|
711
|
-
PostApi.prototype.
|
|
783
|
+
PostApi.prototype.postDeleteBookmarkRequestOpts = function (requestParameters) {
|
|
712
784
|
return __awaiter(this, void 0, void 0, function () {
|
|
713
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
785
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
714
786
|
return __generator(this, function (_14) {
|
|
715
787
|
switch (_14.label) {
|
|
716
788
|
case 0:
|
|
@@ -884,16 +956,35 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
884
956
|
case 39:
|
|
885
957
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
886
958
|
_14.label = 40;
|
|
887
|
-
case 40:
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
959
|
+
case 40:
|
|
960
|
+
urlPath = "/graphql/{pathQueryId}/DeleteBookmark";
|
|
961
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
962
|
+
return [2 /*return*/, {
|
|
963
|
+
path: urlPath,
|
|
964
|
+
method: 'POST',
|
|
965
|
+
headers: headerParameters,
|
|
966
|
+
query: queryParameters,
|
|
967
|
+
body: (0, PostDeleteBookmarkRequest_1.PostDeleteBookmarkRequestToJSON)(requestParameters['postDeleteBookmarkRequest']),
|
|
968
|
+
}];
|
|
969
|
+
}
|
|
970
|
+
});
|
|
971
|
+
});
|
|
972
|
+
};
|
|
973
|
+
/**
|
|
974
|
+
* delete Bookmark
|
|
975
|
+
*/
|
|
976
|
+
PostApi.prototype.postDeleteBookmarkRaw = function (requestParameters, initOverrides) {
|
|
977
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
978
|
+
var requestOptions, response;
|
|
979
|
+
return __generator(this, function (_a) {
|
|
980
|
+
switch (_a.label) {
|
|
981
|
+
case 0: return [4 /*yield*/, this.postDeleteBookmarkRequestOpts(requestParameters)];
|
|
982
|
+
case 1:
|
|
983
|
+
requestOptions = _a.sent();
|
|
984
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
985
|
+
case 2:
|
|
986
|
+
response = _a.sent();
|
|
987
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, DeleteBookmarkResponse_1.DeleteBookmarkResponseFromJSON)(jsonValue); })];
|
|
897
988
|
}
|
|
898
989
|
});
|
|
899
990
|
});
|
|
@@ -916,11 +1007,11 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
916
1007
|
});
|
|
917
1008
|
};
|
|
918
1009
|
/**
|
|
919
|
-
*
|
|
1010
|
+
* Creates request options for postDeleteRetweet without sending the request
|
|
920
1011
|
*/
|
|
921
|
-
PostApi.prototype.
|
|
1012
|
+
PostApi.prototype.postDeleteRetweetRequestOpts = function (requestParameters) {
|
|
922
1013
|
return __awaiter(this, void 0, void 0, function () {
|
|
923
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
1014
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
924
1015
|
return __generator(this, function (_14) {
|
|
925
1016
|
switch (_14.label) {
|
|
926
1017
|
case 0:
|
|
@@ -1094,16 +1185,35 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1094
1185
|
case 39:
|
|
1095
1186
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
1096
1187
|
_14.label = 40;
|
|
1097
|
-
case 40:
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1188
|
+
case 40:
|
|
1189
|
+
urlPath = "/graphql/{pathQueryId}/DeleteRetweet";
|
|
1190
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1191
|
+
return [2 /*return*/, {
|
|
1192
|
+
path: urlPath,
|
|
1193
|
+
method: 'POST',
|
|
1194
|
+
headers: headerParameters,
|
|
1195
|
+
query: queryParameters,
|
|
1196
|
+
body: (0, PostDeleteRetweetRequest_1.PostDeleteRetweetRequestToJSON)(requestParameters['postDeleteRetweetRequest']),
|
|
1197
|
+
}];
|
|
1198
|
+
}
|
|
1199
|
+
});
|
|
1200
|
+
});
|
|
1201
|
+
};
|
|
1202
|
+
/**
|
|
1203
|
+
* delete Retweet
|
|
1204
|
+
*/
|
|
1205
|
+
PostApi.prototype.postDeleteRetweetRaw = function (requestParameters, initOverrides) {
|
|
1206
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1207
|
+
var requestOptions, response;
|
|
1208
|
+
return __generator(this, function (_a) {
|
|
1209
|
+
switch (_a.label) {
|
|
1210
|
+
case 0: return [4 /*yield*/, this.postDeleteRetweetRequestOpts(requestParameters)];
|
|
1211
|
+
case 1:
|
|
1212
|
+
requestOptions = _a.sent();
|
|
1213
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1214
|
+
case 2:
|
|
1215
|
+
response = _a.sent();
|
|
1216
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, DeleteRetweetResponse_1.DeleteRetweetResponseFromJSON)(jsonValue); })];
|
|
1107
1217
|
}
|
|
1108
1218
|
});
|
|
1109
1219
|
});
|
|
@@ -1126,11 +1236,11 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1126
1236
|
});
|
|
1127
1237
|
};
|
|
1128
1238
|
/**
|
|
1129
|
-
*
|
|
1239
|
+
* Creates request options for postDeleteTweet without sending the request
|
|
1130
1240
|
*/
|
|
1131
|
-
PostApi.prototype.
|
|
1241
|
+
PostApi.prototype.postDeleteTweetRequestOpts = function (requestParameters) {
|
|
1132
1242
|
return __awaiter(this, void 0, void 0, function () {
|
|
1133
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
1243
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
1134
1244
|
return __generator(this, function (_14) {
|
|
1135
1245
|
switch (_14.label) {
|
|
1136
1246
|
case 0:
|
|
@@ -1304,16 +1414,35 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1304
1414
|
case 39:
|
|
1305
1415
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
1306
1416
|
_14.label = 40;
|
|
1307
|
-
case 40:
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1417
|
+
case 40:
|
|
1418
|
+
urlPath = "/graphql/{pathQueryId}/DeleteTweet";
|
|
1419
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1420
|
+
return [2 /*return*/, {
|
|
1421
|
+
path: urlPath,
|
|
1422
|
+
method: 'POST',
|
|
1423
|
+
headers: headerParameters,
|
|
1424
|
+
query: queryParameters,
|
|
1425
|
+
body: (0, PostDeleteTweetRequest_1.PostDeleteTweetRequestToJSON)(requestParameters['postDeleteTweetRequest']),
|
|
1426
|
+
}];
|
|
1427
|
+
}
|
|
1428
|
+
});
|
|
1429
|
+
});
|
|
1430
|
+
};
|
|
1431
|
+
/**
|
|
1432
|
+
* delete Retweet
|
|
1433
|
+
*/
|
|
1434
|
+
PostApi.prototype.postDeleteTweetRaw = function (requestParameters, initOverrides) {
|
|
1435
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1436
|
+
var requestOptions, response;
|
|
1437
|
+
return __generator(this, function (_a) {
|
|
1438
|
+
switch (_a.label) {
|
|
1439
|
+
case 0: return [4 /*yield*/, this.postDeleteTweetRequestOpts(requestParameters)];
|
|
1440
|
+
case 1:
|
|
1441
|
+
requestOptions = _a.sent();
|
|
1442
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1443
|
+
case 2:
|
|
1444
|
+
response = _a.sent();
|
|
1445
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, DeleteTweetResponse_1.DeleteTweetResponseFromJSON)(jsonValue); })];
|
|
1317
1446
|
}
|
|
1318
1447
|
});
|
|
1319
1448
|
});
|
|
@@ -1336,11 +1465,11 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1336
1465
|
});
|
|
1337
1466
|
};
|
|
1338
1467
|
/**
|
|
1339
|
-
*
|
|
1468
|
+
* Creates request options for postFavoriteTweet without sending the request
|
|
1340
1469
|
*/
|
|
1341
|
-
PostApi.prototype.
|
|
1470
|
+
PostApi.prototype.postFavoriteTweetRequestOpts = function (requestParameters) {
|
|
1342
1471
|
return __awaiter(this, void 0, void 0, function () {
|
|
1343
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
1472
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
1344
1473
|
return __generator(this, function (_14) {
|
|
1345
1474
|
switch (_14.label) {
|
|
1346
1475
|
case 0:
|
|
@@ -1514,16 +1643,35 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1514
1643
|
case 39:
|
|
1515
1644
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
1516
1645
|
_14.label = 40;
|
|
1517
|
-
case 40:
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1646
|
+
case 40:
|
|
1647
|
+
urlPath = "/graphql/{pathQueryId}/FavoriteTweet";
|
|
1648
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1649
|
+
return [2 /*return*/, {
|
|
1650
|
+
path: urlPath,
|
|
1651
|
+
method: 'POST',
|
|
1652
|
+
headers: headerParameters,
|
|
1653
|
+
query: queryParameters,
|
|
1654
|
+
body: (0, PostFavoriteTweetRequest_1.PostFavoriteTweetRequestToJSON)(requestParameters['postFavoriteTweetRequest']),
|
|
1655
|
+
}];
|
|
1656
|
+
}
|
|
1657
|
+
});
|
|
1658
|
+
});
|
|
1659
|
+
};
|
|
1660
|
+
/**
|
|
1661
|
+
* favorite Tweet
|
|
1662
|
+
*/
|
|
1663
|
+
PostApi.prototype.postFavoriteTweetRaw = function (requestParameters, initOverrides) {
|
|
1664
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1665
|
+
var requestOptions, response;
|
|
1666
|
+
return __generator(this, function (_a) {
|
|
1667
|
+
switch (_a.label) {
|
|
1668
|
+
case 0: return [4 /*yield*/, this.postFavoriteTweetRequestOpts(requestParameters)];
|
|
1669
|
+
case 1:
|
|
1670
|
+
requestOptions = _a.sent();
|
|
1671
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1672
|
+
case 2:
|
|
1673
|
+
response = _a.sent();
|
|
1674
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FavoriteTweetResponse_1.FavoriteTweetResponseFromJSON)(jsonValue); })];
|
|
1527
1675
|
}
|
|
1528
1676
|
});
|
|
1529
1677
|
});
|
|
@@ -1546,11 +1694,11 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1546
1694
|
});
|
|
1547
1695
|
};
|
|
1548
1696
|
/**
|
|
1549
|
-
*
|
|
1697
|
+
* Creates request options for postUnfavoriteTweet without sending the request
|
|
1550
1698
|
*/
|
|
1551
|
-
PostApi.prototype.
|
|
1699
|
+
PostApi.prototype.postUnfavoriteTweetRequestOpts = function (requestParameters) {
|
|
1552
1700
|
return __awaiter(this, void 0, void 0, function () {
|
|
1553
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
1701
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
1554
1702
|
return __generator(this, function (_14) {
|
|
1555
1703
|
switch (_14.label) {
|
|
1556
1704
|
case 0:
|
|
@@ -1724,16 +1872,35 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1724
1872
|
case 39:
|
|
1725
1873
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
1726
1874
|
_14.label = 40;
|
|
1727
|
-
case 40:
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1875
|
+
case 40:
|
|
1876
|
+
urlPath = "/graphql/{pathQueryId}/UnfavoriteTweet";
|
|
1877
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1878
|
+
return [2 /*return*/, {
|
|
1879
|
+
path: urlPath,
|
|
1880
|
+
method: 'POST',
|
|
1881
|
+
headers: headerParameters,
|
|
1882
|
+
query: queryParameters,
|
|
1883
|
+
body: (0, PostUnfavoriteTweetRequest_1.PostUnfavoriteTweetRequestToJSON)(requestParameters['postUnfavoriteTweetRequest']),
|
|
1884
|
+
}];
|
|
1885
|
+
}
|
|
1886
|
+
});
|
|
1887
|
+
});
|
|
1888
|
+
};
|
|
1889
|
+
/**
|
|
1890
|
+
* unfavorite Tweet
|
|
1891
|
+
*/
|
|
1892
|
+
PostApi.prototype.postUnfavoriteTweetRaw = function (requestParameters, initOverrides) {
|
|
1893
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1894
|
+
var requestOptions, response;
|
|
1895
|
+
return __generator(this, function (_a) {
|
|
1896
|
+
switch (_a.label) {
|
|
1897
|
+
case 0: return [4 /*yield*/, this.postUnfavoriteTweetRequestOpts(requestParameters)];
|
|
1898
|
+
case 1:
|
|
1899
|
+
requestOptions = _a.sent();
|
|
1900
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1901
|
+
case 2:
|
|
1902
|
+
response = _a.sent();
|
|
1903
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UnfavoriteTweetResponse_1.UnfavoriteTweetResponseFromJSON)(jsonValue); })];
|
|
1737
1904
|
}
|
|
1738
1905
|
});
|
|
1739
1906
|
});
|