Skip to content

Commit d8c3bf2

Browse files
authored
Merge pull request #17 from fa0311/dev
update package version 0.0.7
2 parents 42ae8bb + e76e142 commit d8c3bf2

File tree

14 files changed

+91
-126
lines changed

14 files changed

+91
-126
lines changed

twitter-openapi-typescript-generated/.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ src/models/TweetDetailResponseData.ts
9797
src/models/TweetEditControl.ts
9898
src/models/TweetEditPrespective.ts
9999
src/models/TweetLegacy.ts
100+
src/models/TweetLegacySelfThread.ts
100101
src/models/TweetTombstone.ts
101102
src/models/TweetUnion.ts
102103
src/models/TweetViews.ts

twitter-openapi-typescript-generated/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## twitter-openapi-typescript-generated@0.0.6
1+
## twitter-openapi-typescript-generated@0.0.7
22

33
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
44

@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
3636
_published:_
3737

3838
```
39-
npm install twitter-openapi-typescript-generated@0.0.6 --save
39+
npm install twitter-openapi-typescript-generated@0.0.7 --save
4040
```
4141

4242
_unPublished (not recommended):_

twitter-openapi-typescript-generated/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

twitter-openapi-typescript-generated/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twitter-openapi-typescript-generated",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "OpenAPI client for twitter-openapi-typescript-generated",
55
"author": "fa0311",
66
"repository": {

twitter-openapi-typescript-generated/src/apis/DefaultApi.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {
2424

2525
export interface GetProfileSpotlightsQueryRequest {
2626
pathQueryId: string;
27-
queryId: string;
2827
variables: string;
2928
features: string;
3029
}
@@ -42,10 +41,6 @@ export class DefaultApi extends runtime.BaseAPI {
4241
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getProfileSpotlightsQuery.');
4342
}
4443

45-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
46-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getProfileSpotlightsQuery.');
47-
}
48-
4944
if (requestParameters.variables === null || requestParameters.variables === undefined) {
5045
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getProfileSpotlightsQuery.');
5146
}
@@ -56,10 +51,6 @@ export class DefaultApi extends runtime.BaseAPI {
5651

5752
const queryParameters: any = {};
5853

59-
if (requestParameters.queryId !== undefined) {
60-
queryParameters['queryId'] = requestParameters.queryId;
61-
}
62-
6354
if (requestParameters.variables !== undefined) {
6455
queryParameters['variables'] = requestParameters.variables;
6556
}

twitter-openapi-typescript-generated/src/apis/TweetApi.ts

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -36,63 +36,54 @@ import {
3636

3737
export interface GetBookmarksRequest {
3838
pathQueryId: string;
39-
queryId: string;
4039
variables: string;
4140
features: string;
4241
}
4342

4443
export interface GetHomeLatestTimelineRequest {
4544
pathQueryId: string;
46-
queryId: string;
4745
variables: string;
4846
features: string;
4947
}
5048

5149
export interface GetHomeTimelineRequest {
5250
pathQueryId: string;
53-
queryId: string;
5451
variables: string;
5552
features: string;
5653
}
5754

5855
export interface GetLikesRequest {
5956
pathQueryId: string;
60-
queryId: string;
6157
variables: string;
6258
features: string;
6359
}
6460

6561
export interface GetListLatestTweetsTimelineRequest {
6662
pathQueryId: string;
67-
queryId: string;
6863
variables: string;
6964
features: string;
7065
}
7166

7267
export interface GetTweetDetailRequest {
7368
pathQueryId: string;
74-
queryId: string;
7569
variables: string;
7670
features: string;
7771
}
7872

7973
export interface GetUserMediaRequest {
8074
pathQueryId: string;
81-
queryId: string;
8275
variables: string;
8376
features: string;
8477
}
8578

8679
export interface GetUserTweetsRequest {
8780
pathQueryId: string;
88-
queryId: string;
8981
variables: string;
9082
features: string;
9183
}
9284

9385
export interface GetUserTweetsAndRepliesRequest {
9486
pathQueryId: string;
95-
queryId: string;
9687
variables: string;
9788
features: string;
9889
}
@@ -110,10 +101,6 @@ export class TweetApi extends runtime.BaseAPI {
110101
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getBookmarks.');
111102
}
112103

113-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
114-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getBookmarks.');
115-
}
116-
117104
if (requestParameters.variables === null || requestParameters.variables === undefined) {
118105
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getBookmarks.');
119106
}
@@ -124,10 +111,6 @@ export class TweetApi extends runtime.BaseAPI {
124111

125112
const queryParameters: any = {};
126113

127-
if (requestParameters.queryId !== undefined) {
128-
queryParameters['queryId'] = requestParameters.queryId;
129-
}
130-
131114
if (requestParameters.variables !== undefined) {
132115
queryParameters['variables'] = requestParameters.variables;
133116
}
@@ -196,10 +179,6 @@ export class TweetApi extends runtime.BaseAPI {
196179
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getHomeLatestTimeline.');
197180
}
198181

199-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
200-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getHomeLatestTimeline.');
201-
}
202-
203182
if (requestParameters.variables === null || requestParameters.variables === undefined) {
204183
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getHomeLatestTimeline.');
205184
}
@@ -210,10 +189,6 @@ export class TweetApi extends runtime.BaseAPI {
210189

211190
const queryParameters: any = {};
212191

213-
if (requestParameters.queryId !== undefined) {
214-
queryParameters['queryId'] = requestParameters.queryId;
215-
}
216-
217192
if (requestParameters.variables !== undefined) {
218193
queryParameters['variables'] = requestParameters.variables;
219194
}
@@ -282,10 +257,6 @@ export class TweetApi extends runtime.BaseAPI {
282257
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getHomeTimeline.');
283258
}
284259

285-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
286-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getHomeTimeline.');
287-
}
288-
289260
if (requestParameters.variables === null || requestParameters.variables === undefined) {
290261
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getHomeTimeline.');
291262
}
@@ -296,10 +267,6 @@ export class TweetApi extends runtime.BaseAPI {
296267

297268
const queryParameters: any = {};
298269

299-
if (requestParameters.queryId !== undefined) {
300-
queryParameters['queryId'] = requestParameters.queryId;
301-
}
302-
303270
if (requestParameters.variables !== undefined) {
304271
queryParameters['variables'] = requestParameters.variables;
305272
}
@@ -368,10 +335,6 @@ export class TweetApi extends runtime.BaseAPI {
368335
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getLikes.');
369336
}
370337

371-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
372-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getLikes.');
373-
}
374-
375338
if (requestParameters.variables === null || requestParameters.variables === undefined) {
376339
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getLikes.');
377340
}
@@ -382,10 +345,6 @@ export class TweetApi extends runtime.BaseAPI {
382345

383346
const queryParameters: any = {};
384347

385-
if (requestParameters.queryId !== undefined) {
386-
queryParameters['queryId'] = requestParameters.queryId;
387-
}
388-
389348
if (requestParameters.variables !== undefined) {
390349
queryParameters['variables'] = requestParameters.variables;
391350
}
@@ -454,10 +413,6 @@ export class TweetApi extends runtime.BaseAPI {
454413
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getListLatestTweetsTimeline.');
455414
}
456415

457-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
458-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getListLatestTweetsTimeline.');
459-
}
460-
461416
if (requestParameters.variables === null || requestParameters.variables === undefined) {
462417
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getListLatestTweetsTimeline.');
463418
}
@@ -468,10 +423,6 @@ export class TweetApi extends runtime.BaseAPI {
468423

469424
const queryParameters: any = {};
470425

471-
if (requestParameters.queryId !== undefined) {
472-
queryParameters['queryId'] = requestParameters.queryId;
473-
}
474-
475426
if (requestParameters.variables !== undefined) {
476427
queryParameters['variables'] = requestParameters.variables;
477428
}
@@ -540,10 +491,6 @@ export class TweetApi extends runtime.BaseAPI {
540491
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getTweetDetail.');
541492
}
542493

543-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
544-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getTweetDetail.');
545-
}
546-
547494
if (requestParameters.variables === null || requestParameters.variables === undefined) {
548495
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getTweetDetail.');
549496
}
@@ -554,10 +501,6 @@ export class TweetApi extends runtime.BaseAPI {
554501

555502
const queryParameters: any = {};
556503

557-
if (requestParameters.queryId !== undefined) {
558-
queryParameters['queryId'] = requestParameters.queryId;
559-
}
560-
561504
if (requestParameters.variables !== undefined) {
562505
queryParameters['variables'] = requestParameters.variables;
563506
}
@@ -626,10 +569,6 @@ export class TweetApi extends runtime.BaseAPI {
626569
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserMedia.');
627570
}
628571

629-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
630-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getUserMedia.');
631-
}
632-
633572
if (requestParameters.variables === null || requestParameters.variables === undefined) {
634573
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getUserMedia.');
635574
}
@@ -640,10 +579,6 @@ export class TweetApi extends runtime.BaseAPI {
640579

641580
const queryParameters: any = {};
642581

643-
if (requestParameters.queryId !== undefined) {
644-
queryParameters['queryId'] = requestParameters.queryId;
645-
}
646-
647582
if (requestParameters.variables !== undefined) {
648583
queryParameters['variables'] = requestParameters.variables;
649584
}
@@ -712,10 +647,6 @@ export class TweetApi extends runtime.BaseAPI {
712647
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserTweets.');
713648
}
714649

715-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
716-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getUserTweets.');
717-
}
718-
719650
if (requestParameters.variables === null || requestParameters.variables === undefined) {
720651
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getUserTweets.');
721652
}
@@ -726,10 +657,6 @@ export class TweetApi extends runtime.BaseAPI {
726657

727658
const queryParameters: any = {};
728659

729-
if (requestParameters.queryId !== undefined) {
730-
queryParameters['queryId'] = requestParameters.queryId;
731-
}
732-
733660
if (requestParameters.variables !== undefined) {
734661
queryParameters['variables'] = requestParameters.variables;
735662
}
@@ -798,10 +725,6 @@ export class TweetApi extends runtime.BaseAPI {
798725
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserTweetsAndReplies.');
799726
}
800727

801-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
802-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getUserTweetsAndReplies.');
803-
}
804-
805728
if (requestParameters.variables === null || requestParameters.variables === undefined) {
806729
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getUserTweetsAndReplies.');
807730
}
@@ -812,10 +735,6 @@ export class TweetApi extends runtime.BaseAPI {
812735

813736
const queryParameters: any = {};
814737

815-
if (requestParameters.queryId !== undefined) {
816-
queryParameters['queryId'] = requestParameters.queryId;
817-
}
818-
819738
if (requestParameters.variables !== undefined) {
820739
queryParameters['variables'] = requestParameters.variables;
821740
}

twitter-openapi-typescript-generated/src/apis/UserApi.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {
2424

2525
export interface GetUserByScreenNameRequest {
2626
pathQueryId: string;
27-
queryId: string;
2827
variables: string;
2928
features: string;
3029
}
@@ -42,10 +41,6 @@ export class UserApi extends runtime.BaseAPI {
4241
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserByScreenName.');
4342
}
4443

45-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
46-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getUserByScreenName.');
47-
}
48-
4944
if (requestParameters.variables === null || requestParameters.variables === undefined) {
5045
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getUserByScreenName.');
5146
}
@@ -56,10 +51,6 @@ export class UserApi extends runtime.BaseAPI {
5651

5752
const queryParameters: any = {};
5853

59-
if (requestParameters.queryId !== undefined) {
60-
queryParameters['queryId'] = requestParameters.queryId;
61-
}
62-
6354
if (requestParameters.variables !== undefined) {
6455
queryParameters['variables'] = requestParameters.variables;
6556
}

0 commit comments

Comments
 (0)