twitter-openapi-typescript-generated 0.0.6 → 0.0.8
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 +18 -1
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +0 -1
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +0 -6
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +17 -12
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +90 -55
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +27 -2
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +166 -6
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +41 -3
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +255 -12
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/models/ContentItemType.d.ts +2 -0
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentItemType.js +3 -1
- package/dist/models/ContentItemType.js.map +1 -1
- package/dist/models/InstructionType.d.ts +3 -0
- package/dist/models/InstructionType.d.ts.map +1 -1
- package/dist/models/InstructionType.js +3 -0
- package/dist/models/InstructionType.js.map +1 -1
- package/dist/models/InstructionUnion.d.ts +9 -0
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js +15 -0
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemContentUnion.d.ts +6 -0
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +10 -0
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts +33 -0
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -0
- package/dist/models/ListLatestTweetsTimelineResponse.js +52 -0
- package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -0
- package/dist/models/SearchByRawQuery.d.ts +33 -0
- package/dist/models/SearchByRawQuery.d.ts.map +1 -0
- package/dist/models/SearchByRawQuery.js +52 -0
- package/dist/models/SearchByRawQuery.js.map +1 -0
- package/dist/models/SearchTimeline.d.ts +33 -0
- package/dist/models/SearchTimeline.d.ts.map +1 -0
- package/dist/models/SearchTimeline.js +52 -0
- package/dist/models/SearchTimeline.js.map +1 -0
- package/dist/models/SearchTimelineData.d.ts +33 -0
- package/dist/models/SearchTimelineData.d.ts.map +1 -0
- package/dist/models/SearchTimelineData.js +52 -0
- package/dist/models/SearchTimelineData.js.map +1 -0
- package/dist/models/SearchTimelineResponse.d.ts +33 -0
- package/dist/models/SearchTimelineResponse.d.ts.map +1 -0
- package/dist/models/SearchTimelineResponse.js +52 -0
- package/dist/models/SearchTimelineResponse.js.map +1 -0
- package/dist/models/TimelineAddToModule.d.ts +52 -0
- package/dist/models/TimelineAddToModule.d.ts.map +1 -0
- package/dist/models/TimelineAddToModule.js +62 -0
- package/dist/models/TimelineAddToModule.js.map +1 -0
- package/dist/models/TimelineMessagePrompt.d.ts +33 -0
- package/dist/models/TimelineMessagePrompt.d.ts.map +1 -0
- package/dist/models/TimelineMessagePrompt.js +52 -0
- package/dist/models/TimelineMessagePrompt.js.map +1 -0
- package/dist/models/TimelinePrompt.d.ts +33 -0
- package/dist/models/TimelinePrompt.d.ts.map +1 -0
- package/dist/models/TimelinePrompt.js +52 -0
- package/dist/models/TimelinePrompt.js.map +1 -0
- package/dist/models/TimelineReplaceEntry.d.ts +46 -0
- package/dist/models/TimelineReplaceEntry.d.ts.map +1 -0
- package/dist/models/TimelineReplaceEntry.js +59 -0
- package/dist/models/TimelineReplaceEntry.js.map +1 -0
- package/dist/models/TimelineShowAlert.d.ts +97 -0
- package/dist/models/TimelineShowAlert.d.ts.map +1 -0
- package/dist/models/TimelineShowAlert.js +85 -0
- package/dist/models/TimelineShowAlert.js.map +1 -0
- package/dist/models/TimelineShowAlertRichText.d.ts +38 -0
- package/dist/models/TimelineShowAlertRichText.d.ts.map +1 -0
- package/dist/models/TimelineShowAlertRichText.js +53 -0
- package/dist/models/TimelineShowAlertRichText.js.map +1 -0
- package/dist/models/TweetFavoritersResponse.d.ts +33 -0
- package/dist/models/TweetFavoritersResponse.d.ts.map +1 -0
- package/dist/models/TweetFavoritersResponse.js +52 -0
- package/dist/models/TweetFavoritersResponse.js.map +1 -0
- package/dist/models/TweetFavoritersResponseData.d.ts +33 -0
- package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -0
- package/dist/models/TweetFavoritersResponseData.js +52 -0
- package/dist/models/TweetFavoritersResponseData.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/TweetRetweetersResponse.d.ts +33 -0
- package/dist/models/TweetRetweetersResponse.d.ts.map +1 -0
- package/dist/models/TweetRetweetersResponse.js +52 -0
- package/dist/models/TweetRetweetersResponse.js.map +1 -0
- package/dist/models/TweetRetweetersResponseData.d.ts +33 -0
- package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -0
- package/dist/models/TweetRetweetersResponseData.js +52 -0
- package/dist/models/TweetRetweetersResponseData.js.map +1 -0
- package/dist/models/UsersResponse.d.ts +33 -0
- package/dist/models/UsersResponse.d.ts.map +1 -0
- package/dist/models/UsersResponse.js +52 -0
- package/dist/models/UsersResponse.js.map +1 -0
- package/dist/models/UsersResponseData.d.ts +33 -0
- package/dist/models/UsersResponseData.d.ts.map +1 -0
- package/dist/models/UsersResponseData.js +52 -0
- package/dist/models/UsersResponseData.js.map +1 -0
- package/dist/models/index.d.ts +18 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +18 -1
- package/dist/models/index.js.map +1 -1
- package/package.json +3 -2
- package/src/apis/DefaultApi.ts +0 -9
- package/src/apis/TweetApi.ts +102 -87
- package/src/apis/UserApi.ts +171 -9
- package/src/apis/UserListApi.ts +267 -18
- package/src/models/ContentItemType.ts +3 -1
- package/src/models/InstructionType.ts +3 -0
- package/src/models/InstructionUnion.ts +34 -1
- package/src/models/ItemContentUnion.ts +23 -1
- package/src/models/{ListTweetsTimelineResponse.ts → ListLatestTweetsTimelineResponse.ts} +9 -9
- package/src/models/SearchByRawQuery.ts +73 -0
- package/src/models/SearchTimeline.ts +73 -0
- package/src/models/SearchTimelineData.ts +73 -0
- package/src/models/SearchTimelineResponse.ts +73 -0
- package/src/models/TimelineAddToModule.ts +105 -0
- package/src/models/TimelineMessagePrompt.ts +72 -0
- package/src/models/TimelinePrompt.ts +72 -0
- package/src/models/TimelineReplaceEntry.ts +97 -0
- package/src/models/TimelineShowAlert.ts +169 -0
- package/src/models/TimelineShowAlertRichText.ts +73 -0
- package/src/models/TweetFavoritersResponse.ts +73 -0
- package/src/models/TweetFavoritersResponseData.ts +73 -0
- package/src/models/TweetLegacy.ts +14 -0
- package/src/models/TweetLegacySelfThread.ts +66 -0
- package/src/models/TweetRetweetersResponse.ts +73 -0
- package/src/models/TweetRetweetersResponseData.ts +73 -0
- package/src/models/UsersResponse.ts +73 -0
- package/src/models/UsersResponseData.ts +73 -0
- package/src/models/index.ts +18 -1
- package/tools/openapi-generator-config.yaml +2 -2
- package/tools/win/replace.py +1 -1
- package/twitter-openapi/dist/{test → compatible}/openapi-3.0.yaml +12 -0
- package/twitter-openapi/dist/{typescript → compatible}/paths/bookmarks.yaml +0 -7
- package/twitter-openapi/dist/{dart → compatible}/paths/follow.yaml +82 -63
- package/twitter-openapi/dist/{test → compatible}/paths/profile.yaml +0 -7
- package/twitter-openapi/dist/{dart → compatible}/paths/timeline.yaml +118 -111
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +297 -0
- package/twitter-openapi/dist/compatible/paths/user.yaml +227 -0
- package/twitter-openapi/dist/{test → compatible}/paths/usertweets.yaml +0 -28
- package/twitter-openapi/dist/{typescript → compatible}/schemas/content.yaml +14 -0
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +160 -0
- package/twitter-openapi/dist/{dart → compatible}/schemas/tweet.yaml +8 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +12 -0
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -56
- package/twitter-openapi/dist/docs/paths/follow.yaml +193 -112
- package/twitter-openapi/dist/docs/paths/profile.yaml +0 -35
- package/twitter-openapi/dist/docs/paths/timeline.yaml +225 -173
- package/twitter-openapi/dist/docs/paths/tweet.yaml +382 -61
- package/twitter-openapi/dist/docs/paths/user.yaml +214 -41
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -238
- package/twitter-openapi/dist/docs/schemas/content.yaml +14 -0
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +77 -0
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +8 -0
- package/twitter-openapi/src/config/placeholder.json +155 -0
- package/twitter-openapi/src/openapi/paths/follow.yaml +14 -0
- package/twitter-openapi/src/openapi/paths/timeline.yaml +44 -2
- package/twitter-openapi/src/openapi/paths/tweet.yaml +56 -0
- package/twitter-openapi/src/openapi/paths/user.yaml +44 -0
- package/twitter-openapi/src/openapi/schemas/content.yaml +23 -1
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +78 -0
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +8 -0
- 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 +28 -7
- package/dist/models/ListTweetsTimelineResponse.d.ts +0 -33
- package/dist/models/ListTweetsTimelineResponse.d.ts.map +0 -1
- package/dist/models/ListTweetsTimelineResponse.js +0 -52
- package/dist/models/ListTweetsTimelineResponse.js.map +0 -1
- package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -117
- package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -141
- package/twitter-openapi/dist/dart/paths/post.yaml +0 -876
- package/twitter-openapi/dist/dart/paths/profile.yaml +0 -159
- package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -141
- package/twitter-openapi/dist/dart/paths/user.yaml +0 -119
- package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -512
- package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
- package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
- package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
- package/twitter-openapi/dist/dart/schemas/content.yaml +0 -181
- package/twitter-openapi/dist/dart/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -112
- package/twitter-openapi/dist/test/paths/follow.yaml +0 -218
- package/twitter-openapi/dist/test/paths/other.yaml +0 -96
- package/twitter-openapi/dist/test/paths/post.yaml +0 -527
- package/twitter-openapi/dist/test/paths/timeline.yaml +0 -314
- package/twitter-openapi/dist/test/paths/tweet.yaml +0 -112
- package/twitter-openapi/dist/test/paths/user.yaml +0 -90
- 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/resources/parameters.yaml +0 -13
- 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 -308
- 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 -218
- package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
- package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -130
- package/twitter-openapi/dist/typescript/paths/timeline.yaml +0 -314
- package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -112
- package/twitter-openapi/dist/typescript/paths/user.yaml +0 -90
- package/twitter-openapi/dist/typescript/paths/usertweets.yaml +0 -396
- package/twitter-openapi/dist/typescript/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
- 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 -308
- 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/post.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}/resources/parameters.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/response/error.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/general.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
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { InstructionType } from './InstructionType';
|
|
17
|
+
import {
|
|
18
|
+
InstructionTypeFromJSON,
|
|
19
|
+
InstructionTypeFromJSONTyped,
|
|
20
|
+
InstructionTypeToJSON,
|
|
21
|
+
} from './InstructionType';
|
|
22
|
+
import type { TimelineAddEntry } from './TimelineAddEntry';
|
|
23
|
+
import {
|
|
24
|
+
TimelineAddEntryFromJSON,
|
|
25
|
+
TimelineAddEntryFromJSONTyped,
|
|
26
|
+
TimelineAddEntryToJSON,
|
|
27
|
+
} from './TimelineAddEntry';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface TimelineReplaceEntry
|
|
33
|
+
*/
|
|
34
|
+
export interface TimelineReplaceEntry {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {TimelineAddEntry}
|
|
38
|
+
* @memberof TimelineReplaceEntry
|
|
39
|
+
*/
|
|
40
|
+
entry: TimelineAddEntry;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof TimelineReplaceEntry
|
|
45
|
+
*/
|
|
46
|
+
entryIdToReplace: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {InstructionType}
|
|
50
|
+
* @memberof TimelineReplaceEntry
|
|
51
|
+
*/
|
|
52
|
+
type: InstructionType;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the TimelineReplaceEntry interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfTimelineReplaceEntry(value: object): boolean {
|
|
59
|
+
let isInstance = true;
|
|
60
|
+
isInstance = isInstance && "entry" in value;
|
|
61
|
+
isInstance = isInstance && "entryIdToReplace" in value;
|
|
62
|
+
isInstance = isInstance && "type" in value;
|
|
63
|
+
|
|
64
|
+
return isInstance;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function TimelineReplaceEntryFromJSON(json: any): TimelineReplaceEntry {
|
|
68
|
+
return TimelineReplaceEntryFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function TimelineReplaceEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineReplaceEntry {
|
|
72
|
+
if ((json === undefined) || (json === null)) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'entry': TimelineAddEntryFromJSON(json['entry']),
|
|
78
|
+
'entryIdToReplace': json['entry_id_to_replace'],
|
|
79
|
+
'type': InstructionTypeFromJSON(json['type']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function TimelineReplaceEntryToJSON(value?: TimelineReplaceEntry | null): any {
|
|
84
|
+
if (value === undefined) {
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
if (value === null) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'entry': TimelineAddEntryToJSON(value.entry),
|
|
93
|
+
'entry_id_to_replace': value.entryIdToReplace,
|
|
94
|
+
'type': InstructionTypeToJSON(value.type),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { InstructionType } from './InstructionType';
|
|
17
|
+
import {
|
|
18
|
+
InstructionTypeFromJSON,
|
|
19
|
+
InstructionTypeFromJSONTyped,
|
|
20
|
+
InstructionTypeToJSON,
|
|
21
|
+
} from './InstructionType';
|
|
22
|
+
import type { TimelineShowAlertRichText } from './TimelineShowAlertRichText';
|
|
23
|
+
import {
|
|
24
|
+
TimelineShowAlertRichTextFromJSON,
|
|
25
|
+
TimelineShowAlertRichTextFromJSONTyped,
|
|
26
|
+
TimelineShowAlertRichTextToJSON,
|
|
27
|
+
} from './TimelineShowAlertRichText';
|
|
28
|
+
import type { UserResults } from './UserResults';
|
|
29
|
+
import {
|
|
30
|
+
UserResultsFromJSON,
|
|
31
|
+
UserResultsFromJSONTyped,
|
|
32
|
+
UserResultsToJSON,
|
|
33
|
+
} from './UserResults';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface TimelineShowAlert
|
|
39
|
+
*/
|
|
40
|
+
export interface TimelineShowAlert {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof TimelineShowAlert
|
|
45
|
+
*/
|
|
46
|
+
alertType?: TimelineShowAlertAlertTypeEnum;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {object}
|
|
50
|
+
* @memberof TimelineShowAlert
|
|
51
|
+
*/
|
|
52
|
+
colorConfig?: object;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof TimelineShowAlert
|
|
57
|
+
*/
|
|
58
|
+
displayDurationMs?: number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof TimelineShowAlert
|
|
63
|
+
*/
|
|
64
|
+
displayLocation?: TimelineShowAlertDisplayLocationEnum;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {object}
|
|
68
|
+
* @memberof TimelineShowAlert
|
|
69
|
+
*/
|
|
70
|
+
iconDisplayInfo?: object;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {TimelineShowAlertRichText}
|
|
74
|
+
* @memberof TimelineShowAlert
|
|
75
|
+
*/
|
|
76
|
+
richText: TimelineShowAlertRichText;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof TimelineShowAlert
|
|
81
|
+
*/
|
|
82
|
+
triggerDelayMs?: number;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {InstructionType}
|
|
86
|
+
* @memberof TimelineShowAlert
|
|
87
|
+
*/
|
|
88
|
+
type: InstructionType;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Array<UserResults>}
|
|
92
|
+
* @memberof TimelineShowAlert
|
|
93
|
+
*/
|
|
94
|
+
usersResults: Array<UserResults>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export const TimelineShowAlertAlertTypeEnum = {
|
|
102
|
+
NewTweets: 'NewTweets'
|
|
103
|
+
} as const;
|
|
104
|
+
export type TimelineShowAlertAlertTypeEnum = typeof TimelineShowAlertAlertTypeEnum[keyof typeof TimelineShowAlertAlertTypeEnum];
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export const TimelineShowAlertDisplayLocationEnum = {
|
|
110
|
+
Top: 'Top'
|
|
111
|
+
} as const;
|
|
112
|
+
export type TimelineShowAlertDisplayLocationEnum = typeof TimelineShowAlertDisplayLocationEnum[keyof typeof TimelineShowAlertDisplayLocationEnum];
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Check if a given object implements the TimelineShowAlert interface.
|
|
117
|
+
*/
|
|
118
|
+
export function instanceOfTimelineShowAlert(value: object): boolean {
|
|
119
|
+
let isInstance = true;
|
|
120
|
+
isInstance = isInstance && "richText" in value;
|
|
121
|
+
isInstance = isInstance && "type" in value;
|
|
122
|
+
isInstance = isInstance && "usersResults" in value;
|
|
123
|
+
|
|
124
|
+
return isInstance;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function TimelineShowAlertFromJSON(json: any): TimelineShowAlert {
|
|
128
|
+
return TimelineShowAlertFromJSONTyped(json, false);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function TimelineShowAlertFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineShowAlert {
|
|
132
|
+
if ((json === undefined) || (json === null)) {
|
|
133
|
+
return json;
|
|
134
|
+
}
|
|
135
|
+
return {
|
|
136
|
+
|
|
137
|
+
'alertType': !exists(json, 'alertType') ? undefined : json['alertType'],
|
|
138
|
+
'colorConfig': !exists(json, 'colorConfig') ? undefined : json['colorConfig'],
|
|
139
|
+
'displayDurationMs': !exists(json, 'displayDurationMs') ? undefined : json['displayDurationMs'],
|
|
140
|
+
'displayLocation': !exists(json, 'displayLocation') ? undefined : json['displayLocation'],
|
|
141
|
+
'iconDisplayInfo': !exists(json, 'iconDisplayInfo') ? undefined : json['iconDisplayInfo'],
|
|
142
|
+
'richText': TimelineShowAlertRichTextFromJSON(json['richText']),
|
|
143
|
+
'triggerDelayMs': !exists(json, 'triggerDelayMs') ? undefined : json['triggerDelayMs'],
|
|
144
|
+
'type': InstructionTypeFromJSON(json['type']),
|
|
145
|
+
'usersResults': ((json['usersResults'] as Array<any>).map(UserResultsFromJSON)),
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function TimelineShowAlertToJSON(value?: TimelineShowAlert | null): any {
|
|
150
|
+
if (value === undefined) {
|
|
151
|
+
return undefined;
|
|
152
|
+
}
|
|
153
|
+
if (value === null) {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
return {
|
|
157
|
+
|
|
158
|
+
'alertType': value.alertType,
|
|
159
|
+
'colorConfig': value.colorConfig,
|
|
160
|
+
'displayDurationMs': value.displayDurationMs,
|
|
161
|
+
'displayLocation': value.displayLocation,
|
|
162
|
+
'iconDisplayInfo': value.iconDisplayInfo,
|
|
163
|
+
'richText': TimelineShowAlertRichTextToJSON(value.richText),
|
|
164
|
+
'triggerDelayMs': value.triggerDelayMs,
|
|
165
|
+
'type': InstructionTypeToJSON(value.type),
|
|
166
|
+
'usersResults': ((value.usersResults as Array<any>).map(UserResultsToJSON)),
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TimelineShowAlertRichText
|
|
20
|
+
*/
|
|
21
|
+
export interface TimelineShowAlertRichText {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<object>}
|
|
25
|
+
* @memberof TimelineShowAlertRichText
|
|
26
|
+
*/
|
|
27
|
+
entities?: Array<object>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TimelineShowAlertRichText
|
|
32
|
+
*/
|
|
33
|
+
text?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the TimelineShowAlertRichText interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfTimelineShowAlertRichText(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
|
|
42
|
+
return isInstance;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function TimelineShowAlertRichTextFromJSON(json: any): TimelineShowAlertRichText {
|
|
46
|
+
return TimelineShowAlertRichTextFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function TimelineShowAlertRichTextFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineShowAlertRichText {
|
|
50
|
+
if ((json === undefined) || (json === null)) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'entities': !exists(json, 'entities') ? undefined : json['entities'],
|
|
56
|
+
'text': !exists(json, 'text') ? undefined : json['text'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function TimelineShowAlertRichTextToJSON(value?: TimelineShowAlertRichText | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'entities': value.entities,
|
|
70
|
+
'text': value.text,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { TweetFavoritersResponseData } from './TweetFavoritersResponseData';
|
|
17
|
+
import {
|
|
18
|
+
TweetFavoritersResponseDataFromJSON,
|
|
19
|
+
TweetFavoritersResponseDataFromJSONTyped,
|
|
20
|
+
TweetFavoritersResponseDataToJSON,
|
|
21
|
+
} from './TweetFavoritersResponseData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TweetFavoritersResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface TweetFavoritersResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TweetFavoritersResponseData}
|
|
32
|
+
* @memberof TweetFavoritersResponse
|
|
33
|
+
*/
|
|
34
|
+
data: TweetFavoritersResponseData;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TweetFavoritersResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTweetFavoritersResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "data" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TweetFavoritersResponseFromJSON(json: any): TweetFavoritersResponse {
|
|
48
|
+
return TweetFavoritersResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TweetFavoritersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetFavoritersResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'data': TweetFavoritersResponseDataFromJSON(json['data']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetFavoritersResponseToJSON(value?: TweetFavoritersResponse | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': TweetFavoritersResponseDataToJSON(value.data),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { TimelineV2 } from './TimelineV2';
|
|
17
|
+
import {
|
|
18
|
+
TimelineV2FromJSON,
|
|
19
|
+
TimelineV2FromJSONTyped,
|
|
20
|
+
TimelineV2ToJSON,
|
|
21
|
+
} from './TimelineV2';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TweetFavoritersResponseData
|
|
27
|
+
*/
|
|
28
|
+
export interface TweetFavoritersResponseData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TimelineV2}
|
|
32
|
+
* @memberof TweetFavoritersResponseData
|
|
33
|
+
*/
|
|
34
|
+
favoritersTimeline: TimelineV2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TweetFavoritersResponseData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTweetFavoritersResponseData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "favoritersTimeline" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TweetFavoritersResponseDataFromJSON(json: any): TweetFavoritersResponseData {
|
|
48
|
+
return TweetFavoritersResponseDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TweetFavoritersResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetFavoritersResponseData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'favoritersTimeline': TimelineV2FromJSON(json['favoriters_timeline']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetFavoritersResponseDataToJSON(value?: TweetFavoritersResponseData | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'favoriters_timeline': TimelineV2ToJSON(value.favoritersTimeline),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -31,6 +31,12 @@ import {
|
|
|
31
31
|
ItemResultFromJSONTyped,
|
|
32
32
|
ItemResultToJSON,
|
|
33
33
|
} from './ItemResult';
|
|
34
|
+
import type { TweetLegacySelfThread } from './TweetLegacySelfThread';
|
|
35
|
+
import {
|
|
36
|
+
TweetLegacySelfThreadFromJSON,
|
|
37
|
+
TweetLegacySelfThreadFromJSONTyped,
|
|
38
|
+
TweetLegacySelfThreadToJSON,
|
|
39
|
+
} from './TweetLegacySelfThread';
|
|
34
40
|
|
|
35
41
|
/**
|
|
36
42
|
*
|
|
@@ -158,6 +164,12 @@ export interface TweetLegacy {
|
|
|
158
164
|
* @memberof TweetLegacy
|
|
159
165
|
*/
|
|
160
166
|
retweetedStatusResult?: ItemResult;
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @type {TweetLegacySelfThread}
|
|
170
|
+
* @memberof TweetLegacy
|
|
171
|
+
*/
|
|
172
|
+
selfThread?: TweetLegacySelfThread;
|
|
161
173
|
/**
|
|
162
174
|
*
|
|
163
175
|
* @type {string}
|
|
@@ -222,6 +234,7 @@ export function TweetLegacyFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
222
234
|
'retweetCount': json['retweet_count'],
|
|
223
235
|
'retweeted': json['retweeted'],
|
|
224
236
|
'retweetedStatusResult': !exists(json, 'retweeted_status_result') ? undefined : ItemResultFromJSON(json['retweeted_status_result']),
|
|
237
|
+
'selfThread': !exists(json, 'self_thread') ? undefined : TweetLegacySelfThreadFromJSON(json['self_thread']),
|
|
225
238
|
'userIdStr': json['user_id_str'],
|
|
226
239
|
};
|
|
227
240
|
}
|
|
@@ -255,6 +268,7 @@ export function TweetLegacyToJSON(value?: TweetLegacy | null): any {
|
|
|
255
268
|
'retweet_count': value.retweetCount,
|
|
256
269
|
'retweeted': value.retweeted,
|
|
257
270
|
'retweeted_status_result': ItemResultToJSON(value.retweetedStatusResult),
|
|
271
|
+
'self_thread': TweetLegacySelfThreadToJSON(value.selfThread),
|
|
258
272
|
'user_id_str': value.userIdStr,
|
|
259
273
|
};
|
|
260
274
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TweetLegacySelfThread
|
|
20
|
+
*/
|
|
21
|
+
export interface TweetLegacySelfThread {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TweetLegacySelfThread
|
|
26
|
+
*/
|
|
27
|
+
idStr: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the TweetLegacySelfThread interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfTweetLegacySelfThread(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "idStr" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function TweetLegacySelfThreadFromJSON(json: any): TweetLegacySelfThread {
|
|
41
|
+
return TweetLegacySelfThreadFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function TweetLegacySelfThreadFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetLegacySelfThread {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'idStr': json['id_str'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function TweetLegacySelfThreadToJSON(value?: TweetLegacySelfThread | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'id_str': value.idStr,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { TweetRetweetersResponseData } from './TweetRetweetersResponseData';
|
|
17
|
+
import {
|
|
18
|
+
TweetRetweetersResponseDataFromJSON,
|
|
19
|
+
TweetRetweetersResponseDataFromJSONTyped,
|
|
20
|
+
TweetRetweetersResponseDataToJSON,
|
|
21
|
+
} from './TweetRetweetersResponseData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TweetRetweetersResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface TweetRetweetersResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TweetRetweetersResponseData}
|
|
32
|
+
* @memberof TweetRetweetersResponse
|
|
33
|
+
*/
|
|
34
|
+
data: TweetRetweetersResponseData;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TweetRetweetersResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTweetRetweetersResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "data" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TweetRetweetersResponseFromJSON(json: any): TweetRetweetersResponse {
|
|
48
|
+
return TweetRetweetersResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TweetRetweetersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetRetweetersResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'data': TweetRetweetersResponseDataFromJSON(json['data']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetRetweetersResponseToJSON(value?: TweetRetweetersResponse | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': TweetRetweetersResponseDataToJSON(value.data),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|