twitter-openapi-typescript-generated 0.0.38 → 0.0.39
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 +652 -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 +23 -1
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +158 -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/AuthorCommunityRelationship.d.ts +1 -1
- package/dist/models/BirdwatchEntityRef.d.ts +2 -2
- package/dist/models/BirdwatchPivot.d.ts +2 -2
- package/dist/models/CommunityData.d.ts +3 -3
- 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/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/ExtMediaAvailability.d.ts +1 -1
- 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 +1 -1
- package/dist/models/MediaExtended.d.ts +1 -1
- package/dist/models/MediaSize.d.ts +1 -1
- package/dist/models/NoteTweetResultRichTextTag.d.ts +1 -1
- package/dist/models/Session.d.ts +1 -1
- 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/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 +2 -2
- 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/TweetCardPlatformAudience.d.ts +1 -1
- package/dist/models/TweetInterstitial.d.ts +1 -1
- package/dist/models/TweetInterstitialTextEntityRef.d.ts +2 -2
- package/dist/models/TweetLegacy.d.ts +1 -1
- package/dist/models/TweetPreviewDisplayCtaUrl.d.ts +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/UnifiedCard.d.ts +1 -1
- package/dist/models/User.d.ts +2 -2
- package/dist/models/UserLegacy.d.ts +1 -1
- package/dist/models/UserLegacyExtendedProfileBirthdate.d.ts +2 -2
- package/dist/models/UserProfessional.d.ts +1 -1
- 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/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +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/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
|
});
|