twitter-openapi-typescript-generated 0.0.5 → 0.0.7
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 +7 -1
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +1 -1
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +3 -6
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts +6 -0
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +24 -6
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +9 -9
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +27 -54
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +1 -1
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +3 -6
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +2 -2
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +6 -12
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/models/Entities.d.ts +3 -2
- package/dist/models/Entities.d.ts.map +1 -1
- package/dist/models/Entities.js +3 -2
- package/dist/models/Entities.js.map +1 -1
- package/dist/models/PostCreateRetweetRequest.d.ts +3 -3
- package/dist/models/PostCreateRetweetRequest.d.ts.map +1 -1
- package/dist/models/PostCreateRetweetRequest.js +3 -3
- package/dist/models/PostCreateRetweetRequest.js.map +1 -1
- package/dist/models/PostCreateRetweetRequestVariables.d.ts +38 -0
- package/dist/models/PostCreateRetweetRequestVariables.d.ts.map +1 -0
- package/dist/models/PostCreateRetweetRequestVariables.js +54 -0
- package/dist/models/PostCreateRetweetRequestVariables.js.map +1 -0
- package/dist/models/PostDeleteTweetRequest.d.ts +3 -3
- package/dist/models/PostDeleteTweetRequest.d.ts.map +1 -1
- package/dist/models/PostDeleteTweetRequest.js +3 -3
- package/dist/models/PostDeleteTweetRequest.js.map +1 -1
- package/dist/models/PostFavoriteTweetRequest.d.ts +3 -3
- package/dist/models/PostFavoriteTweetRequest.d.ts.map +1 -1
- package/dist/models/PostFavoriteTweetRequest.js +3 -3
- package/dist/models/PostFavoriteTweetRequest.js.map +1 -1
- package/dist/models/PostUnfavoriteTweetRequest.d.ts +3 -3
- package/dist/models/PostUnfavoriteTweetRequest.d.ts.map +1 -1
- package/dist/models/PostUnfavoriteTweetRequest.js +3 -3
- package/dist/models/PostUnfavoriteTweetRequest.js.map +1 -1
- package/dist/models/Tweet.d.ts +7 -0
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +3 -0
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetCard.d.ts +39 -0
- package/dist/models/TweetCard.d.ts.map +1 -0
- package/dist/models/TweetCard.js +54 -0
- package/dist/models/TweetCard.js.map +1 -0
- package/dist/models/TweetCardLegacy.d.ts +45 -0
- package/dist/models/TweetCardLegacy.d.ts.map +1 -0
- package/dist/models/TweetCardLegacy.js +58 -0
- package/dist/models/TweetCardLegacy.js.map +1 -0
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts +39 -0
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts.map +1 -0
- package/dist/models/TweetCardLegacyBindingValuesInner.js +55 -0
- package/dist/models/TweetCardLegacyBindingValuesInner.js.map +1 -0
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts +50 -0
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts.map +1 -0
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.js +58 -0
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.js.map +1 -0
- package/dist/models/TweetLegacy.d.ts +7 -0
- package/dist/models/TweetLegacy.d.ts.map +1 -1
- package/dist/models/TweetLegacy.js +3 -0
- package/dist/models/TweetLegacy.js.map +1 -1
- package/dist/models/TweetLegacySelfThread.d.ts +32 -0
- package/dist/models/TweetLegacySelfThread.d.ts.map +1 -0
- package/dist/models/TweetLegacySelfThread.js +51 -0
- package/dist/models/TweetLegacySelfThread.js.map +1 -0
- package/dist/models/Url.d.ts +50 -0
- package/dist/models/Url.d.ts.map +1 -0
- package/dist/models/Url.js +60 -0
- package/dist/models/Url.js.map +1 -0
- package/dist/models/index.d.ts +7 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +7 -1
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +4 -8
- package/src/apis/PostApi.ts +36 -6
- package/src/apis/TweetApi.ts +36 -72
- package/src/apis/UserApi.ts +4 -8
- package/src/apis/UserListApi.ts +8 -16
- package/src/models/Entities.ts +10 -4
- package/src/models/PostCreateRetweetRequest.ts +9 -9
- package/src/models/{PostDeleteTweetRequestVariables.ts → PostCreateRetweetRequestVariables.ts} +10 -10
- package/src/models/PostDeleteTweetRequest.ts +9 -9
- package/src/models/PostFavoriteTweetRequest.ts +9 -9
- package/src/models/PostUnfavoriteTweetRequest.ts +9 -9
- package/src/models/Tweet.ts +14 -0
- package/src/models/TweetCard.ts +80 -0
- package/src/models/TweetCardLegacy.ts +91 -0
- package/src/models/TweetCardLegacyBindingValuesInner.ts +82 -0
- package/src/models/TweetCardLegacyBindingValuesInnerValue.ts +90 -0
- package/src/models/TweetLegacy.ts +14 -0
- package/src/models/TweetLegacySelfThread.ts +66 -0
- package/src/models/Url.ts +93 -0
- package/src/models/index.ts +7 -1
- package/tools/openapi-generator-config.yaml +2 -2
- package/tools/win/replace.py +20 -20
- package/twitter-openapi/README.md +4 -6
- package/twitter-openapi/dist/{test → compatible}/openapi-3.0.yaml +38 -38
- package/twitter-openapi/dist/{typescript → compatible}/paths/bookmarks.yaml +5 -5
- package/twitter-openapi/dist/{test → compatible}/paths/follow.yaml +14 -14
- package/twitter-openapi/dist/{typescript → compatible}/paths/post.yaml +135 -93
- package/twitter-openapi/dist/{test → compatible}/paths/profile.yaml +5 -5
- package/twitter-openapi/dist/{typescript → compatible}/paths/timeline.yaml +25 -25
- package/twitter-openapi/dist/{test → compatible}/paths/tweet.yaml +5 -5
- package/twitter-openapi/dist/{test → compatible}/paths/user.yaml +5 -5
- package/twitter-openapi/dist/{test → compatible}/paths/usertweets.yaml +36 -36
- package/twitter-openapi/dist/compatible/resources/parameters.yaml +13 -0
- package/twitter-openapi/dist/{dart → compatible}/schemas/tweet.yaml +65 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +38 -38
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +7 -56
- package/twitter-openapi/dist/docs/paths/follow.yaml +18 -116
- package/twitter-openapi/dist/docs/paths/post.yaml +124 -82
- package/twitter-openapi/dist/docs/paths/profile.yaml +7 -35
- package/twitter-openapi/dist/docs/paths/timeline.yaml +43 -192
- package/twitter-openapi/dist/docs/paths/tweet.yaml +7 -61
- package/twitter-openapi/dist/docs/paths/user.yaml +7 -41
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +53 -263
- package/twitter-openapi/dist/docs/resources/parameters.yaml +13 -0
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +65 -0
- package/twitter-openapi/src/openapi/paths/bookmarks.yaml +1 -1
- package/twitter-openapi/src/openapi/paths/follow.yaml +2 -2
- package/twitter-openapi/src/openapi/paths/post.yaml +6 -6
- package/twitter-openapi/src/openapi/paths/profile.yaml +1 -1
- package/twitter-openapi/src/openapi/paths/timeline.yaml +3 -3
- package/twitter-openapi/src/openapi/paths/tweet.yaml +1 -1
- package/twitter-openapi/src/openapi/paths/user.yaml +1 -1
- package/twitter-openapi/src/openapi/paths/usertweets.yaml +4 -4
- package/twitter-openapi/src/openapi/resources/parameters.yaml +15 -0
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +66 -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/twitter-openapi/tools/build_config.py +67 -190
- package/twitter-openapi/tools/hooks.py +58 -13
- package/dist/models/PostDeleteTweetRequestVariables.d.ts +0 -38
- package/dist/models/PostDeleteTweetRequestVariables.d.ts.map +0 -1
- package/dist/models/PostDeleteTweetRequestVariables.js +0 -54
- package/dist/models/PostDeleteTweetRequestVariables.js.map +0 -1
- package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -117
- 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/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/test/paths/bookmarks.yaml +0 -105
- 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/timeline.yaml +0 -293
- 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 -141
- 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/profile.yaml +0 -123
- 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/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
- /package/twitter-openapi/dist/{dart → compatible}/paths/other.yaml +0 -0
- /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-get.yaml +0 -0
- /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-post.yaml +0 -0
- /package/twitter-openapi/dist/{typescript → compatible}/paths/v2.0-get.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/response/error.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/content.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/general.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/instruction.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/timeline.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/typename.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/user.yaml +0 -0
package/dist/models/index.js
CHANGED
|
@@ -62,6 +62,7 @@ __exportStar(require("./ModuleItem"), exports);
|
|
|
62
62
|
__exportStar(require("./OneFactorLoginEligibility"), exports);
|
|
63
63
|
__exportStar(require("./OtherResponse"), exports);
|
|
64
64
|
__exportStar(require("./PostCreateRetweetRequest"), exports);
|
|
65
|
+
__exportStar(require("./PostCreateRetweetRequestVariables"), exports);
|
|
65
66
|
__exportStar(require("./PostCreateTweetRequest"), exports);
|
|
66
67
|
__exportStar(require("./PostCreateTweetRequestFeatures"), exports);
|
|
67
68
|
__exportStar(require("./PostCreateTweetRequestVariables"), exports);
|
|
@@ -69,7 +70,6 @@ __exportStar(require("./PostCreateTweetRequestVariablesMedia"), exports);
|
|
|
69
70
|
__exportStar(require("./PostDeleteRetweetRequest"), exports);
|
|
70
71
|
__exportStar(require("./PostDeleteRetweetRequestVariables"), exports);
|
|
71
72
|
__exportStar(require("./PostDeleteTweetRequest"), exports);
|
|
72
|
-
__exportStar(require("./PostDeleteTweetRequestVariables"), exports);
|
|
73
73
|
__exportStar(require("./PostFavoriteTweetRequest"), exports);
|
|
74
74
|
__exportStar(require("./PostUnfavoriteTweetRequest"), exports);
|
|
75
75
|
__exportStar(require("./ProfileResponse"), exports);
|
|
@@ -92,11 +92,16 @@ __exportStar(require("./TimelineTweet"), exports);
|
|
|
92
92
|
__exportStar(require("./TimelineUser"), exports);
|
|
93
93
|
__exportStar(require("./TimelineV2"), exports);
|
|
94
94
|
__exportStar(require("./Tweet"), exports);
|
|
95
|
+
__exportStar(require("./TweetCard"), exports);
|
|
96
|
+
__exportStar(require("./TweetCardLegacy"), exports);
|
|
97
|
+
__exportStar(require("./TweetCardLegacyBindingValuesInner"), exports);
|
|
98
|
+
__exportStar(require("./TweetCardLegacyBindingValuesInnerValue"), exports);
|
|
95
99
|
__exportStar(require("./TweetDetailResponse"), exports);
|
|
96
100
|
__exportStar(require("./TweetDetailResponseData"), exports);
|
|
97
101
|
__exportStar(require("./TweetEditControl"), exports);
|
|
98
102
|
__exportStar(require("./TweetEditPrespective"), exports);
|
|
99
103
|
__exportStar(require("./TweetLegacy"), exports);
|
|
104
|
+
__exportStar(require("./TweetLegacySelfThread"), exports);
|
|
100
105
|
__exportStar(require("./TweetTombstone"), exports);
|
|
101
106
|
__exportStar(require("./TweetUnion"), exports);
|
|
102
107
|
__exportStar(require("./TweetViews"), exports);
|
|
@@ -104,6 +109,7 @@ __exportStar(require("./TweetWithVisibilityResults"), exports);
|
|
|
104
109
|
__exportStar(require("./TypeName"), exports);
|
|
105
110
|
__exportStar(require("./UnfavoriteTweet"), exports);
|
|
106
111
|
__exportStar(require("./UnfavoriteTweetResponseData"), exports);
|
|
112
|
+
__exportStar(require("./Url"), exports);
|
|
107
113
|
__exportStar(require("./User"), exports);
|
|
108
114
|
__exportStar(require("./UserFeatures"), exports);
|
|
109
115
|
__exportStar(require("./UserLegacy"), exports);
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,uDAAqC;AACrC,qDAAmC;AACnC,oDAAkC;AAClC,iDAA+B;AAC/B,kDAAgC;AAChC,0DAAwC;AACxC,8DAA4C;AAC5C,gEAA8C;AAC9C,gDAA8B;AAC9B,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,0DAAwC;AACxC,8DAA4C;AAC5C,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,6CAA2B;AAC3B,qDAAmC;AACnC,kDAAgC;AAChC,8DAA4C;AAC5C,mDAAiC;AACjC,uDAAqC;AACrC,yDAAuC;AACvC,uDAAqC;AACrC,mDAAiC;AACjC,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,+CAA6B;AAC7B,uDAAqC;AACrC,2DAAyC;AACzC,2DAAyC;AACzC,+DAA6C;AAC7C,0CAAwB;AACxB,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,8DAA4C;AAC5C,kDAAgC;AAChC,6DAA2C;AAC3C,2DAAyC;AACzC,mEAAiD;AACjD,oEAAkD;AAClD,yEAAuD;AACvD,6DAA2C;AAC3C,sEAAoD;AACpD,2DAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,uDAAqC;AACrC,qDAAmC;AACnC,oDAAkC;AAClC,iDAA+B;AAC/B,kDAAgC;AAChC,0DAAwC;AACxC,8DAA4C;AAC5C,gEAA8C;AAC9C,gDAA8B;AAC9B,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,0DAAwC;AACxC,8DAA4C;AAC5C,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,6CAA2B;AAC3B,qDAAmC;AACnC,kDAAgC;AAChC,8DAA4C;AAC5C,mDAAiC;AACjC,uDAAqC;AACrC,yDAAuC;AACvC,uDAAqC;AACrC,mDAAiC;AACjC,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,+CAA6B;AAC7B,uDAAqC;AACrC,2DAAyC;AACzC,2DAAyC;AACzC,+DAA6C;AAC7C,0CAAwB;AACxB,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,8DAA4C;AAC5C,kDAAgC;AAChC,6DAA2C;AAC3C,sEAAoD;AACpD,2DAAyC;AACzC,mEAAiD;AACjD,oEAAkD;AAClD,yEAAuD;AACvD,6DAA2C;AAC3C,sEAAoD;AACpD,2DAAyC;AACzC,6DAA2C;AAC3C,+DAA6C;AAC7C,oDAAkC;AAClC,wDAAsC;AACtC,4CAA0B;AAC1B,kDAAgC;AAChC,4CAA0B;AAC1B,kDAAgC;AAChC,6CAA2B;AAC3B,uDAAqC;AACrC,qDAAmC;AACnC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,8DAA4C;AAC5C,2DAAyC;AACzC,yDAAuC;AACvC,2DAAyC;AACzC,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,0CAAwB;AACxB,8CAA4B;AAC5B,oDAAkC;AAClC,sEAAoD;AACpD,2EAAyD;AACzD,wDAAsC;AACtC,4DAA0C;AAC1C,qDAAmC;AACnC,yDAAuC;AACvC,gDAA8B;AAC9B,0DAAwC;AACxC,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,+DAA6C;AAC7C,6CAA2B;AAC3B,oDAAkC;AAClC,gEAA8C;AAC9C,wCAAsB;AACtB,yCAAuB;AACvB,iDAA+B;AAC/B,+CAA6B;AAC7B,iDAA+B;AAC/B,qDAAmC;AACnC,2DAAyC;AACzC,iEAA+C;AAC/C,iEAA+C;AAC/C,mDAAiC;AACjC,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,mDAAiC"}
|
package/package.json
CHANGED
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from '../models';
|
|
24
24
|
|
|
25
25
|
export interface GetProfileSpotlightsQueryRequest {
|
|
26
|
-
|
|
26
|
+
pathQueryId: string;
|
|
27
27
|
variables: string;
|
|
28
28
|
features: string;
|
|
29
29
|
}
|
|
@@ -37,8 +37,8 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
37
37
|
* get user by screen name
|
|
38
38
|
*/
|
|
39
39
|
async getProfileSpotlightsQueryRaw(requestParameters: GetProfileSpotlightsQueryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProfileResponse>> {
|
|
40
|
-
if (requestParameters.
|
|
41
|
-
throw new runtime.RequiredError('
|
|
40
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
41
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getProfileSpotlightsQuery.');
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
@@ -51,10 +51,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
51
51
|
|
|
52
52
|
const queryParameters: any = {};
|
|
53
53
|
|
|
54
|
-
if (requestParameters.queryId !== undefined) {
|
|
55
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
54
|
if (requestParameters.variables !== undefined) {
|
|
59
55
|
queryParameters['variables'] = requestParameters.variables;
|
|
60
56
|
}
|
|
@@ -98,7 +94,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
98
94
|
}
|
|
99
95
|
}
|
|
100
96
|
const response = await this.request({
|
|
101
|
-
path: `/graphql/
|
|
97
|
+
path: `/graphql/{pathQueryId}/ProfileSpotlightsQuery`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
102
98
|
method: 'GET',
|
|
103
99
|
headers: headerParameters,
|
|
104
100
|
query: queryParameters,
|
package/src/apis/PostApi.ts
CHANGED
|
@@ -56,26 +56,32 @@ import {
|
|
|
56
56
|
} from '../models';
|
|
57
57
|
|
|
58
58
|
export interface PostCreateRetweetOperationRequest {
|
|
59
|
+
pathQueryId: string;
|
|
59
60
|
postCreateRetweetRequest: PostCreateRetweetRequest;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
export interface PostCreateTweetOperationRequest {
|
|
64
|
+
pathQueryId: string;
|
|
63
65
|
postCreateTweetRequest: PostCreateTweetRequest;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
export interface PostDeleteRetweetOperationRequest {
|
|
69
|
+
pathQueryId: string;
|
|
67
70
|
postDeleteRetweetRequest: PostDeleteRetweetRequest;
|
|
68
71
|
}
|
|
69
72
|
|
|
70
73
|
export interface PostDeleteTweetOperationRequest {
|
|
74
|
+
pathQueryId: string;
|
|
71
75
|
postDeleteTweetRequest: PostDeleteTweetRequest;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
export interface PostFavoriteTweetOperationRequest {
|
|
79
|
+
pathQueryId: string;
|
|
75
80
|
postFavoriteTweetRequest: PostFavoriteTweetRequest;
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
export interface PostUnfavoriteTweetOperationRequest {
|
|
84
|
+
pathQueryId: string;
|
|
79
85
|
postUnfavoriteTweetRequest: PostUnfavoriteTweetRequest;
|
|
80
86
|
}
|
|
81
87
|
|
|
@@ -88,6 +94,10 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
88
94
|
* create Retweet
|
|
89
95
|
*/
|
|
90
96
|
async postCreateRetweetRaw(requestParameters: PostCreateRetweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateRetweetResponse>> {
|
|
97
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
98
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling postCreateRetweet.');
|
|
99
|
+
}
|
|
100
|
+
|
|
91
101
|
if (requestParameters.postCreateRetweetRequest === null || requestParameters.postCreateRetweetRequest === undefined) {
|
|
92
102
|
throw new runtime.RequiredError('postCreateRetweetRequest','Required parameter requestParameters.postCreateRetweetRequest was null or undefined when calling postCreateRetweet.');
|
|
93
103
|
}
|
|
@@ -131,7 +141,7 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
131
141
|
}
|
|
132
142
|
}
|
|
133
143
|
const response = await this.request({
|
|
134
|
-
path: `/graphql/
|
|
144
|
+
path: `/graphql/{pathQueryId}/CreateRetweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
135
145
|
method: 'POST',
|
|
136
146
|
headers: headerParameters,
|
|
137
147
|
query: queryParameters,
|
|
@@ -153,6 +163,10 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
153
163
|
* create Tweet
|
|
154
164
|
*/
|
|
155
165
|
async postCreateTweetRaw(requestParameters: PostCreateTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateTweetResponse>> {
|
|
166
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
167
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling postCreateTweet.');
|
|
168
|
+
}
|
|
169
|
+
|
|
156
170
|
if (requestParameters.postCreateTweetRequest === null || requestParameters.postCreateTweetRequest === undefined) {
|
|
157
171
|
throw new runtime.RequiredError('postCreateTweetRequest','Required parameter requestParameters.postCreateTweetRequest was null or undefined when calling postCreateTweet.');
|
|
158
172
|
}
|
|
@@ -196,7 +210,7 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
196
210
|
}
|
|
197
211
|
}
|
|
198
212
|
const response = await this.request({
|
|
199
|
-
path: `/graphql/
|
|
213
|
+
path: `/graphql/{pathQueryId}/CreateTweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
200
214
|
method: 'POST',
|
|
201
215
|
headers: headerParameters,
|
|
202
216
|
query: queryParameters,
|
|
@@ -218,6 +232,10 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
218
232
|
* delete Retweet
|
|
219
233
|
*/
|
|
220
234
|
async postDeleteRetweetRaw(requestParameters: PostDeleteRetweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteRetweetResponse>> {
|
|
235
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
236
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling postDeleteRetweet.');
|
|
237
|
+
}
|
|
238
|
+
|
|
221
239
|
if (requestParameters.postDeleteRetweetRequest === null || requestParameters.postDeleteRetweetRequest === undefined) {
|
|
222
240
|
throw new runtime.RequiredError('postDeleteRetweetRequest','Required parameter requestParameters.postDeleteRetweetRequest was null or undefined when calling postDeleteRetweet.');
|
|
223
241
|
}
|
|
@@ -261,7 +279,7 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
261
279
|
}
|
|
262
280
|
}
|
|
263
281
|
const response = await this.request({
|
|
264
|
-
path: `/graphql/
|
|
282
|
+
path: `/graphql/{pathQueryId}/DeleteRetweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
265
283
|
method: 'POST',
|
|
266
284
|
headers: headerParameters,
|
|
267
285
|
query: queryParameters,
|
|
@@ -283,6 +301,10 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
283
301
|
* delete Retweet
|
|
284
302
|
*/
|
|
285
303
|
async postDeleteTweetRaw(requestParameters: PostDeleteTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteTweetResponse>> {
|
|
304
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
305
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling postDeleteTweet.');
|
|
306
|
+
}
|
|
307
|
+
|
|
286
308
|
if (requestParameters.postDeleteTweetRequest === null || requestParameters.postDeleteTweetRequest === undefined) {
|
|
287
309
|
throw new runtime.RequiredError('postDeleteTweetRequest','Required parameter requestParameters.postDeleteTweetRequest was null or undefined when calling postDeleteTweet.');
|
|
288
310
|
}
|
|
@@ -326,7 +348,7 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
326
348
|
}
|
|
327
349
|
}
|
|
328
350
|
const response = await this.request({
|
|
329
|
-
path: `/graphql/
|
|
351
|
+
path: `/graphql/{pathQueryId}/DeleteTweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
330
352
|
method: 'POST',
|
|
331
353
|
headers: headerParameters,
|
|
332
354
|
query: queryParameters,
|
|
@@ -348,6 +370,10 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
348
370
|
* favorite Tweet
|
|
349
371
|
*/
|
|
350
372
|
async postFavoriteTweetRaw(requestParameters: PostFavoriteTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FavoriteTweetResponseData>> {
|
|
373
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
374
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling postFavoriteTweet.');
|
|
375
|
+
}
|
|
376
|
+
|
|
351
377
|
if (requestParameters.postFavoriteTweetRequest === null || requestParameters.postFavoriteTweetRequest === undefined) {
|
|
352
378
|
throw new runtime.RequiredError('postFavoriteTweetRequest','Required parameter requestParameters.postFavoriteTweetRequest was null or undefined when calling postFavoriteTweet.');
|
|
353
379
|
}
|
|
@@ -391,7 +417,7 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
391
417
|
}
|
|
392
418
|
}
|
|
393
419
|
const response = await this.request({
|
|
394
|
-
path: `/graphql/
|
|
420
|
+
path: `/graphql/{pathQueryId}/FavoriteTweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
395
421
|
method: 'POST',
|
|
396
422
|
headers: headerParameters,
|
|
397
423
|
query: queryParameters,
|
|
@@ -413,6 +439,10 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
413
439
|
* unfavorite Tweet
|
|
414
440
|
*/
|
|
415
441
|
async postUnfavoriteTweetRaw(requestParameters: PostUnfavoriteTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UnfavoriteTweetResponseData>> {
|
|
442
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
443
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling postUnfavoriteTweet.');
|
|
444
|
+
}
|
|
445
|
+
|
|
416
446
|
if (requestParameters.postUnfavoriteTweetRequest === null || requestParameters.postUnfavoriteTweetRequest === undefined) {
|
|
417
447
|
throw new runtime.RequiredError('postUnfavoriteTweetRequest','Required parameter requestParameters.postUnfavoriteTweetRequest was null or undefined when calling postUnfavoriteTweet.');
|
|
418
448
|
}
|
|
@@ -456,7 +486,7 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
456
486
|
}
|
|
457
487
|
}
|
|
458
488
|
const response = await this.request({
|
|
459
|
-
path: `/graphql/
|
|
489
|
+
path: `/graphql/{pathQueryId}/UnfavoriteTweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
460
490
|
method: 'POST',
|
|
461
491
|
headers: headerParameters,
|
|
462
492
|
query: queryParameters,
|
package/src/apis/TweetApi.ts
CHANGED
|
@@ -35,55 +35,55 @@ import {
|
|
|
35
35
|
} from '../models';
|
|
36
36
|
|
|
37
37
|
export interface GetBookmarksRequest {
|
|
38
|
-
|
|
38
|
+
pathQueryId: string;
|
|
39
39
|
variables: string;
|
|
40
40
|
features: string;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export interface GetHomeLatestTimelineRequest {
|
|
44
|
-
|
|
44
|
+
pathQueryId: string;
|
|
45
45
|
variables: string;
|
|
46
46
|
features: string;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export interface GetHomeTimelineRequest {
|
|
50
|
-
|
|
50
|
+
pathQueryId: string;
|
|
51
51
|
variables: string;
|
|
52
52
|
features: string;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export interface GetLikesRequest {
|
|
56
|
-
|
|
56
|
+
pathQueryId: string;
|
|
57
57
|
variables: string;
|
|
58
58
|
features: string;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export interface GetListLatestTweetsTimelineRequest {
|
|
62
|
-
|
|
62
|
+
pathQueryId: string;
|
|
63
63
|
variables: string;
|
|
64
64
|
features: string;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export interface GetTweetDetailRequest {
|
|
68
|
-
|
|
68
|
+
pathQueryId: string;
|
|
69
69
|
variables: string;
|
|
70
70
|
features: string;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
export interface GetUserMediaRequest {
|
|
74
|
-
|
|
74
|
+
pathQueryId: string;
|
|
75
75
|
variables: string;
|
|
76
76
|
features: string;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
export interface GetUserTweetsRequest {
|
|
80
|
-
|
|
80
|
+
pathQueryId: string;
|
|
81
81
|
variables: string;
|
|
82
82
|
features: string;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export interface GetUserTweetsAndRepliesRequest {
|
|
86
|
-
|
|
86
|
+
pathQueryId: string;
|
|
87
87
|
variables: string;
|
|
88
88
|
features: string;
|
|
89
89
|
}
|
|
@@ -97,8 +97,8 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
97
97
|
* get bookmarks
|
|
98
98
|
*/
|
|
99
99
|
async getBookmarksRaw(requestParameters: GetBookmarksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BookmarksResponse>> {
|
|
100
|
-
if (requestParameters.
|
|
101
|
-
throw new runtime.RequiredError('
|
|
100
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
101
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getBookmarks.');
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
@@ -111,10 +111,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
111
111
|
|
|
112
112
|
const queryParameters: any = {};
|
|
113
113
|
|
|
114
|
-
if (requestParameters.queryId !== undefined) {
|
|
115
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
114
|
if (requestParameters.variables !== undefined) {
|
|
119
115
|
queryParameters['variables'] = requestParameters.variables;
|
|
120
116
|
}
|
|
@@ -158,7 +154,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
158
154
|
}
|
|
159
155
|
}
|
|
160
156
|
const response = await this.request({
|
|
161
|
-
path: `/graphql/
|
|
157
|
+
path: `/graphql/{pathQueryId}/Bookmarks`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
162
158
|
method: 'GET',
|
|
163
159
|
headers: headerParameters,
|
|
164
160
|
query: queryParameters,
|
|
@@ -179,8 +175,8 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
179
175
|
* get tweet list of timeline
|
|
180
176
|
*/
|
|
181
177
|
async getHomeLatestTimelineRaw(requestParameters: GetHomeLatestTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimelineResponse>> {
|
|
182
|
-
if (requestParameters.
|
|
183
|
-
throw new runtime.RequiredError('
|
|
178
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
179
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getHomeLatestTimeline.');
|
|
184
180
|
}
|
|
185
181
|
|
|
186
182
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
@@ -193,10 +189,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
193
189
|
|
|
194
190
|
const queryParameters: any = {};
|
|
195
191
|
|
|
196
|
-
if (requestParameters.queryId !== undefined) {
|
|
197
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
192
|
if (requestParameters.variables !== undefined) {
|
|
201
193
|
queryParameters['variables'] = requestParameters.variables;
|
|
202
194
|
}
|
|
@@ -240,7 +232,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
240
232
|
}
|
|
241
233
|
}
|
|
242
234
|
const response = await this.request({
|
|
243
|
-
path: `/graphql/
|
|
235
|
+
path: `/graphql/{pathQueryId}/HomeLatestTimeline`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
244
236
|
method: 'GET',
|
|
245
237
|
headers: headerParameters,
|
|
246
238
|
query: queryParameters,
|
|
@@ -261,8 +253,8 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
261
253
|
* get tweet list of timeline
|
|
262
254
|
*/
|
|
263
255
|
async getHomeTimelineRaw(requestParameters: GetHomeTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimelineResponse>> {
|
|
264
|
-
if (requestParameters.
|
|
265
|
-
throw new runtime.RequiredError('
|
|
256
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
257
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getHomeTimeline.');
|
|
266
258
|
}
|
|
267
259
|
|
|
268
260
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
@@ -275,10 +267,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
275
267
|
|
|
276
268
|
const queryParameters: any = {};
|
|
277
269
|
|
|
278
|
-
if (requestParameters.queryId !== undefined) {
|
|
279
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
270
|
if (requestParameters.variables !== undefined) {
|
|
283
271
|
queryParameters['variables'] = requestParameters.variables;
|
|
284
272
|
}
|
|
@@ -322,7 +310,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
322
310
|
}
|
|
323
311
|
}
|
|
324
312
|
const response = await this.request({
|
|
325
|
-
path: `/graphql/
|
|
313
|
+
path: `/graphql/{pathQueryId}/HomeTimeline`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
326
314
|
method: 'GET',
|
|
327
315
|
headers: headerParameters,
|
|
328
316
|
query: queryParameters,
|
|
@@ -343,8 +331,8 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
343
331
|
* get user likes tweets
|
|
344
332
|
*/
|
|
345
333
|
async getLikesRaw(requestParameters: GetLikesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserTweetsResponse>> {
|
|
346
|
-
if (requestParameters.
|
|
347
|
-
throw new runtime.RequiredError('
|
|
334
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
335
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getLikes.');
|
|
348
336
|
}
|
|
349
337
|
|
|
350
338
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
@@ -357,10 +345,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
357
345
|
|
|
358
346
|
const queryParameters: any = {};
|
|
359
347
|
|
|
360
|
-
if (requestParameters.queryId !== undefined) {
|
|
361
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
348
|
if (requestParameters.variables !== undefined) {
|
|
365
349
|
queryParameters['variables'] = requestParameters.variables;
|
|
366
350
|
}
|
|
@@ -404,7 +388,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
404
388
|
}
|
|
405
389
|
}
|
|
406
390
|
const response = await this.request({
|
|
407
|
-
path: `/graphql/
|
|
391
|
+
path: `/graphql/{pathQueryId}/Likes`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
408
392
|
method: 'GET',
|
|
409
393
|
headers: headerParameters,
|
|
410
394
|
query: queryParameters,
|
|
@@ -425,8 +409,8 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
425
409
|
* get tweet list of timeline
|
|
426
410
|
*/
|
|
427
411
|
async getListLatestTweetsTimelineRaw(requestParameters: GetListLatestTweetsTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListTweetsTimelineResponse>> {
|
|
428
|
-
if (requestParameters.
|
|
429
|
-
throw new runtime.RequiredError('
|
|
412
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
413
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getListLatestTweetsTimeline.');
|
|
430
414
|
}
|
|
431
415
|
|
|
432
416
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
@@ -439,10 +423,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
439
423
|
|
|
440
424
|
const queryParameters: any = {};
|
|
441
425
|
|
|
442
|
-
if (requestParameters.queryId !== undefined) {
|
|
443
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
426
|
if (requestParameters.variables !== undefined) {
|
|
447
427
|
queryParameters['variables'] = requestParameters.variables;
|
|
448
428
|
}
|
|
@@ -486,7 +466,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
486
466
|
}
|
|
487
467
|
}
|
|
488
468
|
const response = await this.request({
|
|
489
|
-
path: `/graphql/
|
|
469
|
+
path: `/graphql/{pathQueryId}/ListLatestTweetsTimeline`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
490
470
|
method: 'GET',
|
|
491
471
|
headers: headerParameters,
|
|
492
472
|
query: queryParameters,
|
|
@@ -507,8 +487,8 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
507
487
|
* get TweetDetail
|
|
508
488
|
*/
|
|
509
489
|
async getTweetDetailRaw(requestParameters: GetTweetDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TweetDetailResponse>> {
|
|
510
|
-
if (requestParameters.
|
|
511
|
-
throw new runtime.RequiredError('
|
|
490
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
491
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getTweetDetail.');
|
|
512
492
|
}
|
|
513
493
|
|
|
514
494
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
@@ -521,10 +501,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
521
501
|
|
|
522
502
|
const queryParameters: any = {};
|
|
523
503
|
|
|
524
|
-
if (requestParameters.queryId !== undefined) {
|
|
525
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
504
|
if (requestParameters.variables !== undefined) {
|
|
529
505
|
queryParameters['variables'] = requestParameters.variables;
|
|
530
506
|
}
|
|
@@ -568,7 +544,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
568
544
|
}
|
|
569
545
|
}
|
|
570
546
|
const response = await this.request({
|
|
571
|
-
path: `/graphql/
|
|
547
|
+
path: `/graphql/{pathQueryId}/TweetDetail`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
572
548
|
method: 'GET',
|
|
573
549
|
headers: headerParameters,
|
|
574
550
|
query: queryParameters,
|
|
@@ -589,8 +565,8 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
589
565
|
* get user media tweets
|
|
590
566
|
*/
|
|
591
567
|
async getUserMediaRaw(requestParameters: GetUserMediaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserTweetsResponse>> {
|
|
592
|
-
if (requestParameters.
|
|
593
|
-
throw new runtime.RequiredError('
|
|
568
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
569
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserMedia.');
|
|
594
570
|
}
|
|
595
571
|
|
|
596
572
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
@@ -603,10 +579,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
603
579
|
|
|
604
580
|
const queryParameters: any = {};
|
|
605
581
|
|
|
606
|
-
if (requestParameters.queryId !== undefined) {
|
|
607
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
582
|
if (requestParameters.variables !== undefined) {
|
|
611
583
|
queryParameters['variables'] = requestParameters.variables;
|
|
612
584
|
}
|
|
@@ -650,7 +622,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
650
622
|
}
|
|
651
623
|
}
|
|
652
624
|
const response = await this.request({
|
|
653
|
-
path: `/graphql/
|
|
625
|
+
path: `/graphql/{pathQueryId}/UserMedia`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
654
626
|
method: 'GET',
|
|
655
627
|
headers: headerParameters,
|
|
656
628
|
query: queryParameters,
|
|
@@ -671,8 +643,8 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
671
643
|
* get user tweets
|
|
672
644
|
*/
|
|
673
645
|
async getUserTweetsRaw(requestParameters: GetUserTweetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserTweetsResponse>> {
|
|
674
|
-
if (requestParameters.
|
|
675
|
-
throw new runtime.RequiredError('
|
|
646
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
647
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserTweets.');
|
|
676
648
|
}
|
|
677
649
|
|
|
678
650
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
@@ -685,10 +657,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
685
657
|
|
|
686
658
|
const queryParameters: any = {};
|
|
687
659
|
|
|
688
|
-
if (requestParameters.queryId !== undefined) {
|
|
689
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
660
|
if (requestParameters.variables !== undefined) {
|
|
693
661
|
queryParameters['variables'] = requestParameters.variables;
|
|
694
662
|
}
|
|
@@ -732,7 +700,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
732
700
|
}
|
|
733
701
|
}
|
|
734
702
|
const response = await this.request({
|
|
735
|
-
path: `/graphql/
|
|
703
|
+
path: `/graphql/{pathQueryId}/UserTweets`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
736
704
|
method: 'GET',
|
|
737
705
|
headers: headerParameters,
|
|
738
706
|
query: queryParameters,
|
|
@@ -753,8 +721,8 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
753
721
|
* get user replies tweets
|
|
754
722
|
*/
|
|
755
723
|
async getUserTweetsAndRepliesRaw(requestParameters: GetUserTweetsAndRepliesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserTweetsResponse>> {
|
|
756
|
-
if (requestParameters.
|
|
757
|
-
throw new runtime.RequiredError('
|
|
724
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
725
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserTweetsAndReplies.');
|
|
758
726
|
}
|
|
759
727
|
|
|
760
728
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
@@ -767,10 +735,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
767
735
|
|
|
768
736
|
const queryParameters: any = {};
|
|
769
737
|
|
|
770
|
-
if (requestParameters.queryId !== undefined) {
|
|
771
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
738
|
if (requestParameters.variables !== undefined) {
|
|
775
739
|
queryParameters['variables'] = requestParameters.variables;
|
|
776
740
|
}
|
|
@@ -814,7 +778,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
814
778
|
}
|
|
815
779
|
}
|
|
816
780
|
const response = await this.request({
|
|
817
|
-
path: `/graphql/
|
|
781
|
+
path: `/graphql/{pathQueryId}/UserTweetsAndReplies`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
818
782
|
method: 'GET',
|
|
819
783
|
headers: headerParameters,
|
|
820
784
|
query: queryParameters,
|
package/src/apis/UserApi.ts
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from '../models';
|
|
24
24
|
|
|
25
25
|
export interface GetUserByScreenNameRequest {
|
|
26
|
-
|
|
26
|
+
pathQueryId: string;
|
|
27
27
|
variables: string;
|
|
28
28
|
features: string;
|
|
29
29
|
}
|
|
@@ -37,8 +37,8 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
37
37
|
* get user by screen name
|
|
38
38
|
*/
|
|
39
39
|
async getUserByScreenNameRaw(requestParameters: GetUserByScreenNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
|
|
40
|
-
if (requestParameters.
|
|
41
|
-
throw new runtime.RequiredError('
|
|
40
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
41
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserByScreenName.');
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
@@ -51,10 +51,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
51
51
|
|
|
52
52
|
const queryParameters: any = {};
|
|
53
53
|
|
|
54
|
-
if (requestParameters.queryId !== undefined) {
|
|
55
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
54
|
if (requestParameters.variables !== undefined) {
|
|
59
55
|
queryParameters['variables'] = requestParameters.variables;
|
|
60
56
|
}
|
|
@@ -98,7 +94,7 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
98
94
|
}
|
|
99
95
|
}
|
|
100
96
|
const response = await this.request({
|
|
101
|
-
path: `/graphql/
|
|
97
|
+
path: `/graphql/{pathQueryId}/UserByScreenName`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
102
98
|
method: 'GET',
|
|
103
99
|
headers: headerParameters,
|
|
104
100
|
query: queryParameters,
|