twitter-openapi-typescript-generated 0.0.11 → 0.0.13
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 -0
- package/LICENSE +31 -31
- package/LICENSE.AGPL +660 -660
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +86 -18
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.d.ts.map +1 -1
- package/dist/apis/OtherApi.js +43 -9
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +264 -60
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +1 -2
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +479 -111
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +1 -0
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +92 -18
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +0 -1
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +215 -51
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts.map +1 -1
- package/dist/apis/UsersApi.js +43 -9
- package/dist/apis/UsersApi.js.map +1 -1
- package/dist/apis/V11GetApi.d.ts.map +1 -1
- package/dist/apis/V11GetApi.js +86 -18
- package/dist/apis/V11GetApi.js.map +1 -1
- package/dist/apis/V11PostApi.d.ts.map +1 -1
- package/dist/apis/V11PostApi.js +72 -6
- package/dist/apis/V11PostApi.js.map +1 -1
- package/dist/apis/V20GetApi.d.ts.map +1 -1
- package/dist/apis/V20GetApi.js +43 -9
- package/dist/apis/V20GetApi.js.map +1 -1
- package/dist/models/BirdwatchEntity.d.ts +45 -0
- package/dist/models/BirdwatchEntity.d.ts.map +1 -0
- package/dist/models/BirdwatchEntity.js +58 -0
- package/dist/models/BirdwatchEntity.js.map +1 -0
- package/dist/models/BirdwatchEntityRef.d.ts +58 -0
- package/dist/models/BirdwatchEntityRef.d.ts.map +1 -0
- package/dist/models/BirdwatchEntityRef.js +69 -0
- package/dist/models/BirdwatchEntityRef.js.map +1 -0
- package/dist/models/BirdwatchPivot.d.ts +91 -0
- package/dist/models/BirdwatchPivot.d.ts.map +1 -0
- package/dist/models/BirdwatchPivot.js +87 -0
- package/dist/models/BirdwatchPivot.js.map +1 -0
- package/dist/models/BirdwatchPivotFooter.d.ts +39 -0
- package/dist/models/BirdwatchPivotFooter.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotFooter.js +55 -0
- package/dist/models/BirdwatchPivotFooter.js.map +1 -0
- package/dist/models/BirdwatchPivotNote.d.ts +32 -0
- package/dist/models/BirdwatchPivotNote.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotNote.js +51 -0
- package/dist/models/BirdwatchPivotNote.js.map +1 -0
- package/dist/models/BirdwatchPivotSubtitle.d.ts +39 -0
- package/dist/models/BirdwatchPivotSubtitle.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotSubtitle.js +55 -0
- package/dist/models/BirdwatchPivotSubtitle.js.map +1 -0
- package/dist/models/ContentItemType.d.ts +1 -0
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentItemType.js +2 -1
- package/dist/models/ContentItemType.js.map +1 -1
- package/dist/models/CoverCta.d.ts +1 -1
- package/dist/models/CoverCta.d.ts.map +1 -1
- package/dist/models/CoverCta.js +1 -2
- package/dist/models/CoverCta.js.map +1 -1
- package/dist/models/DeleteRetweet.d.ts +33 -0
- package/dist/models/DeleteRetweet.d.ts.map +1 -0
- package/dist/models/DeleteRetweet.js +52 -0
- package/dist/models/DeleteRetweet.js.map +1 -0
- package/dist/models/DeleteRetweetResponseResult.d.ts +33 -0
- package/dist/models/DeleteRetweetResponseResult.d.ts.map +1 -0
- package/dist/models/DeleteRetweetResponseResult.js +52 -0
- package/dist/models/DeleteRetweetResponseResult.js.map +1 -0
- package/dist/models/ErrorResponse.d.ts +33 -0
- package/dist/models/ErrorResponse.d.ts.map +1 -0
- package/dist/models/ErrorResponse.js +52 -0
- package/dist/models/ErrorResponse.js.map +1 -0
- package/dist/models/ExtMediaAvailability.d.ts +7 -0
- package/dist/models/ExtMediaAvailability.d.ts.map +1 -1
- package/dist/models/ExtMediaAvailability.js +4 -1
- package/dist/models/ExtMediaAvailability.js.map +1 -1
- package/dist/models/Extensions.d.ts +57 -0
- package/dist/models/Extensions.d.ts.map +1 -0
- package/dist/models/Extensions.js +64 -0
- package/dist/models/Extensions.js.map +1 -0
- package/dist/models/ItemContentUnion.d.ts +3 -0
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +5 -0
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/ListTweetsTimeline.d.ts +1 -1
- package/dist/models/ListTweetsTimeline.d.ts.map +1 -1
- package/dist/models/ListTweetsTimeline.js +2 -2
- package/dist/models/ListTweetsTimeline.js.map +1 -1
- package/dist/models/MediaExtended.d.ts +1 -1
- package/dist/models/MediaExtended.d.ts.map +1 -1
- package/dist/models/MediaExtended.js +1 -2
- package/dist/models/MediaExtended.js.map +1 -1
- package/dist/models/NoteTweet.d.ts +39 -0
- package/dist/models/NoteTweet.d.ts.map +1 -0
- package/dist/models/NoteTweet.js +55 -0
- package/dist/models/NoteTweet.js.map +1 -0
- package/dist/models/NoteTweetResult.d.ts +33 -0
- package/dist/models/NoteTweetResult.d.ts.map +1 -0
- package/dist/models/NoteTweetResult.js +52 -0
- package/dist/models/NoteTweetResult.js.map +1 -0
- package/dist/models/NoteTweetResultData.d.ts +59 -0
- package/dist/models/NoteTweetResultData.d.ts.map +1 -0
- package/dist/models/NoteTweetResultData.js +65 -0
- package/dist/models/NoteTweetResultData.js.map +1 -0
- package/dist/models/NoteTweetResultMedia.d.ts +32 -0
- package/dist/models/NoteTweetResultMedia.d.ts.map +1 -0
- package/dist/models/NoteTweetResultMedia.js +51 -0
- package/dist/models/NoteTweetResultMedia.js.map +1 -0
- package/dist/models/NoteTweetResultRichText.d.ts +33 -0
- package/dist/models/NoteTweetResultRichText.d.ts.map +1 -0
- package/dist/models/NoteTweetResultRichText.js +52 -0
- package/dist/models/NoteTweetResultRichText.js.map +1 -0
- package/dist/models/NoteTweetResultRichTextTag.d.ts +52 -0
- package/dist/models/NoteTweetResultRichTextTag.d.ts.map +1 -0
- package/dist/models/NoteTweetResultRichTextTag.js +64 -0
- package/dist/models/NoteTweetResultRichTextTag.js.map +1 -0
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +9 -15
- package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.js +9 -12
- package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +3 -2
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.js +3 -2
- package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +38 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts.map +1 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +54 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +1 -0
- package/dist/models/TimelineCommunity.d.ts +34 -0
- package/dist/models/TimelineCommunity.d.ts.map +1 -0
- package/dist/models/TimelineCommunity.js +59 -0
- package/dist/models/TimelineCommunity.js.map +1 -0
- package/dist/models/Tweet.d.ts +20 -0
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +8 -0
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TypeName.d.ts +1 -0
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +1 -0
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/UserResults.d.ts +1 -1
- package/dist/models/UserResults.d.ts.map +1 -1
- package/dist/models/UserResults.js +2 -2
- package/dist/models/UserResults.js.map +1 -1
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +18 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +2 -3
- package/src/apis/DefaultApi.ts +94 -6
- package/src/apis/OtherApi.ts +47 -3
- package/src/apis/PostApi.ts +282 -18
- package/src/apis/TweetApi.ts +526 -51
- package/src/apis/UserApi.ts +103 -6
- package/src/apis/UserListApi.ts +235 -24
- package/src/apis/UsersApi.ts +47 -3
- package/src/apis/V11GetApi.ts +94 -6
- package/src/apis/V11PostApi.ts +94 -6
- package/src/apis/V20GetApi.ts +47 -3
- package/src/models/BirdwatchEntity.ts +91 -0
- package/src/models/BirdwatchEntityRef.ts +102 -0
- package/src/models/BirdwatchPivot.ts +165 -0
- package/src/models/BirdwatchPivotFooter.ts +82 -0
- package/src/models/BirdwatchPivotNote.ts +66 -0
- package/src/models/BirdwatchPivotSubtitle.ts +82 -0
- package/src/models/ContentItemType.ts +2 -1
- package/src/models/CoverCta.ts +2 -3
- package/src/models/DeleteRetweet.ts +73 -0
- package/src/models/DeleteRetweetResponseResult.ts +72 -0
- package/src/models/ErrorResponse.ts +73 -0
- package/src/models/ExtMediaAvailability.ts +10 -1
- package/src/models/Extensions.ts +109 -0
- package/src/models/ItemContentUnion.ts +12 -1
- package/src/models/ListTweetsTimeline.ts +2 -3
- package/src/models/MediaExtended.ts +2 -3
- package/src/models/NoteTweet.ts +82 -0
- package/src/models/NoteTweetResult.ts +73 -0
- package/src/models/NoteTweetResultData.ts +119 -0
- package/src/models/NoteTweetResultMedia.ts +66 -0
- package/src/models/NoteTweetResultRichText.ts +73 -0
- package/src/models/NoteTweetResultRichTextTag.ts +95 -0
- package/src/models/PostCreateTweetRequestFeatures.ts +18 -27
- package/src/models/PostCreateTweetRequestVariablesMedia.ts +11 -4
- package/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.ts +75 -0
- package/src/models/TimelineCommunity.ts +75 -0
- package/src/models/Tweet.ts +36 -0
- package/src/models/TypeName.ts +1 -0
- package/src/models/UserResults.ts +2 -3
- package/src/models/index.ts +18 -0
- package/tools/openapi-generator-config.yaml +1 -1
- package/twitter-openapi/.vscode/launch.json +8 -0
- package/twitter-openapi/README.md +2 -0
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +5189 -34
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +6987 -34
- package/twitter-openapi/src/config/component/security_schemes.yaml +148 -0
- package/twitter-openapi/src/config/placeholder.json +145 -112
- package/twitter-openapi/src/openapi/paths/timeline.yaml +0 -2
- package/twitter-openapi/src/openapi/schemas/content.yaml +9 -1
- package/twitter-openapi/src/openapi/schemas/general.yaml +2 -2
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +0 -1
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +169 -2
- package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
- package/twitter-openapi/src/openapi/schemas/user.yaml +0 -2
- package/twitter-openapi/test/python/test_serialize.py +24 -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.py +35 -31
- package/twitter-openapi/tools/build_config.py +7 -10
- package/twitter-openapi/dist/compatible/paths/bookmarks.yaml +0 -107
- package/twitter-openapi/dist/compatible/paths/follow.yaml +0 -301
- package/twitter-openapi/dist/compatible/paths/other.yaml +0 -99
- package/twitter-openapi/dist/compatible/paths/post.yaml +0 -714
- package/twitter-openapi/dist/compatible/paths/profile.yaml +0 -126
- package/twitter-openapi/dist/compatible/paths/timeline.yaml +0 -416
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +0 -397
- package/twitter-openapi/dist/compatible/paths/user.yaml +0 -233
- package/twitter-openapi/dist/compatible/paths/usertweets.yaml +0 -504
- package/twitter-openapi/dist/compatible/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/compatible/paths/v1.1-post.yaml +0 -237
- package/twitter-openapi/dist/compatible/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/compatible/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/compatible/response/error.yaml +0 -90
- package/twitter-openapi/dist/compatible/schemas/content.yaml +0 -214
- package/twitter-openapi/dist/compatible/schemas/error.yaml +0 -94
- package/twitter-openapi/dist/compatible/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +0 -286
- package/twitter-openapi/dist/compatible/schemas/timeline.yaml +0 -27
- package/twitter-openapi/dist/compatible/schemas/tweet.yaml +0 -508
- package/twitter-openapi/dist/compatible/schemas/typename.yaml +0 -23
- package/twitter-openapi/dist/compatible/schemas/user.yaml +0 -222
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -201
- package/twitter-openapi/dist/docs/paths/follow.yaml +0 -587
- package/twitter-openapi/dist/docs/paths/other.yaml +0 -99
- package/twitter-openapi/dist/docs/paths/post.yaml +0 -692
- package/twitter-openapi/dist/docs/paths/profile.yaml +0 -134
- package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -811
- package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -797
- package/twitter-openapi/dist/docs/paths/user.yaml +0 -338
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -1046
- package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +0 -237
- package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/docs/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/docs/response/error.yaml +0 -90
- package/twitter-openapi/dist/docs/schemas/content.yaml +0 -214
- package/twitter-openapi/dist/docs/schemas/error.yaml +0 -94
- package/twitter-openapi/dist/docs/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +0 -286
- package/twitter-openapi/dist/docs/schemas/timeline.yaml +0 -27
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +0 -508
- package/twitter-openapi/dist/docs/schemas/typename.yaml +0 -23
- package/twitter-openapi/dist/docs/schemas/user.yaml +0 -222
|
@@ -0,0 +1,165 @@
|
|
|
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 { BirdwatchPivotFooter } from './BirdwatchPivotFooter';
|
|
17
|
+
import {
|
|
18
|
+
BirdwatchPivotFooterFromJSON,
|
|
19
|
+
BirdwatchPivotFooterFromJSONTyped,
|
|
20
|
+
BirdwatchPivotFooterToJSON,
|
|
21
|
+
} from './BirdwatchPivotFooter';
|
|
22
|
+
import type { BirdwatchPivotNote } from './BirdwatchPivotNote';
|
|
23
|
+
import {
|
|
24
|
+
BirdwatchPivotNoteFromJSON,
|
|
25
|
+
BirdwatchPivotNoteFromJSONTyped,
|
|
26
|
+
BirdwatchPivotNoteToJSON,
|
|
27
|
+
} from './BirdwatchPivotNote';
|
|
28
|
+
import type { BirdwatchPivotSubtitle } from './BirdwatchPivotSubtitle';
|
|
29
|
+
import {
|
|
30
|
+
BirdwatchPivotSubtitleFromJSON,
|
|
31
|
+
BirdwatchPivotSubtitleFromJSONTyped,
|
|
32
|
+
BirdwatchPivotSubtitleToJSON,
|
|
33
|
+
} from './BirdwatchPivotSubtitle';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface BirdwatchPivot
|
|
39
|
+
*/
|
|
40
|
+
export interface BirdwatchPivot {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof BirdwatchPivot
|
|
45
|
+
*/
|
|
46
|
+
destinationUrl: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {BirdwatchPivotFooter}
|
|
50
|
+
* @memberof BirdwatchPivot
|
|
51
|
+
*/
|
|
52
|
+
footer: BirdwatchPivotFooter;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof BirdwatchPivot
|
|
57
|
+
*/
|
|
58
|
+
iconType: BirdwatchPivotIconTypeEnum;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {BirdwatchPivotNote}
|
|
62
|
+
* @memberof BirdwatchPivot
|
|
63
|
+
*/
|
|
64
|
+
note: BirdwatchPivotNote;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof BirdwatchPivot
|
|
69
|
+
*/
|
|
70
|
+
shorttitle: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {BirdwatchPivotSubtitle}
|
|
74
|
+
* @memberof BirdwatchPivot
|
|
75
|
+
*/
|
|
76
|
+
subtitle: BirdwatchPivotSubtitle;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof BirdwatchPivot
|
|
81
|
+
*/
|
|
82
|
+
title: string;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof BirdwatchPivot
|
|
87
|
+
*/
|
|
88
|
+
visualStyle?: BirdwatchPivotVisualStyleEnum;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
export const BirdwatchPivotIconTypeEnum = {
|
|
96
|
+
BirdwatchV1Icon: 'BirdwatchV1Icon'
|
|
97
|
+
} as const;
|
|
98
|
+
export type BirdwatchPivotIconTypeEnum = typeof BirdwatchPivotIconTypeEnum[keyof typeof BirdwatchPivotIconTypeEnum];
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export const BirdwatchPivotVisualStyleEnum = {
|
|
104
|
+
Default: 'Default'
|
|
105
|
+
} as const;
|
|
106
|
+
export type BirdwatchPivotVisualStyleEnum = typeof BirdwatchPivotVisualStyleEnum[keyof typeof BirdwatchPivotVisualStyleEnum];
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the BirdwatchPivot interface.
|
|
111
|
+
*/
|
|
112
|
+
export function instanceOfBirdwatchPivot(value: object): boolean {
|
|
113
|
+
let isInstance = true;
|
|
114
|
+
isInstance = isInstance && "destinationUrl" in value;
|
|
115
|
+
isInstance = isInstance && "footer" in value;
|
|
116
|
+
isInstance = isInstance && "iconType" in value;
|
|
117
|
+
isInstance = isInstance && "note" in value;
|
|
118
|
+
isInstance = isInstance && "shorttitle" in value;
|
|
119
|
+
isInstance = isInstance && "subtitle" in value;
|
|
120
|
+
isInstance = isInstance && "title" in value;
|
|
121
|
+
|
|
122
|
+
return isInstance;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function BirdwatchPivotFromJSON(json: any): BirdwatchPivot {
|
|
126
|
+
return BirdwatchPivotFromJSONTyped(json, false);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function BirdwatchPivotFromJSONTyped(json: any, ignoreDiscriminator: boolean): BirdwatchPivot {
|
|
130
|
+
if ((json === undefined) || (json === null)) {
|
|
131
|
+
return json;
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'destinationUrl': json['destinationUrl'],
|
|
136
|
+
'footer': BirdwatchPivotFooterFromJSON(json['footer']),
|
|
137
|
+
'iconType': json['iconType'],
|
|
138
|
+
'note': BirdwatchPivotNoteFromJSON(json['note']),
|
|
139
|
+
'shorttitle': json['shorttitle'],
|
|
140
|
+
'subtitle': BirdwatchPivotSubtitleFromJSON(json['subtitle']),
|
|
141
|
+
'title': json['title'],
|
|
142
|
+
'visualStyle': !exists(json, 'visualStyle') ? undefined : json['visualStyle'],
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function BirdwatchPivotToJSON(value?: BirdwatchPivot | null): any {
|
|
147
|
+
if (value === undefined) {
|
|
148
|
+
return undefined;
|
|
149
|
+
}
|
|
150
|
+
if (value === null) {
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
|
|
155
|
+
'destinationUrl': value.destinationUrl,
|
|
156
|
+
'footer': BirdwatchPivotFooterToJSON(value.footer),
|
|
157
|
+
'iconType': value.iconType,
|
|
158
|
+
'note': BirdwatchPivotNoteToJSON(value.note),
|
|
159
|
+
'shorttitle': value.shorttitle,
|
|
160
|
+
'subtitle': BirdwatchPivotSubtitleToJSON(value.subtitle),
|
|
161
|
+
'title': value.title,
|
|
162
|
+
'visualStyle': value.visualStyle,
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { BirdwatchEntity } from './BirdwatchEntity';
|
|
17
|
+
import {
|
|
18
|
+
BirdwatchEntityFromJSON,
|
|
19
|
+
BirdwatchEntityFromJSONTyped,
|
|
20
|
+
BirdwatchEntityToJSON,
|
|
21
|
+
} from './BirdwatchEntity';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface BirdwatchPivotFooter
|
|
27
|
+
*/
|
|
28
|
+
export interface BirdwatchPivotFooter {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<BirdwatchEntity>}
|
|
32
|
+
* @memberof BirdwatchPivotFooter
|
|
33
|
+
*/
|
|
34
|
+
entities: Array<BirdwatchEntity>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof BirdwatchPivotFooter
|
|
39
|
+
*/
|
|
40
|
+
text: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the BirdwatchPivotFooter interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfBirdwatchPivotFooter(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "entities" in value;
|
|
49
|
+
isInstance = isInstance && "text" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function BirdwatchPivotFooterFromJSON(json: any): BirdwatchPivotFooter {
|
|
55
|
+
return BirdwatchPivotFooterFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function BirdwatchPivotFooterFromJSONTyped(json: any, ignoreDiscriminator: boolean): BirdwatchPivotFooter {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'entities': ((json['entities'] as Array<any>).map(BirdwatchEntityFromJSON)),
|
|
65
|
+
'text': json['text'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function BirdwatchPivotFooterToJSON(value?: BirdwatchPivotFooter | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'entities': ((value.entities as Array<any>).map(BirdwatchEntityToJSON)),
|
|
79
|
+
'text': value.text,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -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 BirdwatchPivotNote
|
|
20
|
+
*/
|
|
21
|
+
export interface BirdwatchPivotNote {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BirdwatchPivotNote
|
|
26
|
+
*/
|
|
27
|
+
restId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the BirdwatchPivotNote interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfBirdwatchPivotNote(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "restId" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function BirdwatchPivotNoteFromJSON(json: any): BirdwatchPivotNote {
|
|
41
|
+
return BirdwatchPivotNoteFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function BirdwatchPivotNoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): BirdwatchPivotNote {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'restId': json['rest_id'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function BirdwatchPivotNoteToJSON(value?: BirdwatchPivotNote | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'rest_id': value.restId,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { BirdwatchEntity } from './BirdwatchEntity';
|
|
17
|
+
import {
|
|
18
|
+
BirdwatchEntityFromJSON,
|
|
19
|
+
BirdwatchEntityFromJSONTyped,
|
|
20
|
+
BirdwatchEntityToJSON,
|
|
21
|
+
} from './BirdwatchEntity';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface BirdwatchPivotSubtitle
|
|
27
|
+
*/
|
|
28
|
+
export interface BirdwatchPivotSubtitle {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<BirdwatchEntity>}
|
|
32
|
+
* @memberof BirdwatchPivotSubtitle
|
|
33
|
+
*/
|
|
34
|
+
entities: Array<BirdwatchEntity>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof BirdwatchPivotSubtitle
|
|
39
|
+
*/
|
|
40
|
+
text: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the BirdwatchPivotSubtitle interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfBirdwatchPivotSubtitle(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "entities" in value;
|
|
49
|
+
isInstance = isInstance && "text" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function BirdwatchPivotSubtitleFromJSON(json: any): BirdwatchPivotSubtitle {
|
|
55
|
+
return BirdwatchPivotSubtitleFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function BirdwatchPivotSubtitleFromJSONTyped(json: any, ignoreDiscriminator: boolean): BirdwatchPivotSubtitle {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'entities': ((json['entities'] as Array<any>).map(BirdwatchEntityFromJSON)),
|
|
65
|
+
'text': json['text'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function BirdwatchPivotSubtitleToJSON(value?: BirdwatchPivotSubtitle | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'entities': ((value.entities as Array<any>).map(BirdwatchEntityToJSON)),
|
|
79
|
+
'text': value.text,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -22,7 +22,8 @@ export const ContentItemType = {
|
|
|
22
22
|
TimelineTimelineCursor: 'TimelineTimelineCursor',
|
|
23
23
|
TimelineUser: 'TimelineUser',
|
|
24
24
|
TimelinePrompt: 'TimelinePrompt',
|
|
25
|
-
TimelineMessagePrompt: 'TimelineMessagePrompt'
|
|
25
|
+
TimelineMessagePrompt: 'TimelineMessagePrompt',
|
|
26
|
+
TimelineCommunity: 'TimelineCommunity'
|
|
26
27
|
} as const;
|
|
27
28
|
export type ContentItemType = typeof ContentItemType[keyof typeof ContentItemType];
|
|
28
29
|
|
package/src/models/CoverCta.ts
CHANGED
|
@@ -49,7 +49,7 @@ export interface CoverCta {
|
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof CoverCta
|
|
51
51
|
*/
|
|
52
|
-
buttonStyle
|
|
52
|
+
buttonStyle?: CoverCtaButtonStyleEnum;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {Array<Callback>}
|
|
@@ -85,7 +85,6 @@ export type CoverCtaButtonStyleEnum = typeof CoverCtaButtonStyleEnum[keyof typeo
|
|
|
85
85
|
*/
|
|
86
86
|
export function instanceOfCoverCta(value: object): boolean {
|
|
87
87
|
let isInstance = true;
|
|
88
|
-
isInstance = isInstance && "buttonStyle" in value;
|
|
89
88
|
isInstance = isInstance && "callbacks" in value;
|
|
90
89
|
isInstance = isInstance && "clientEventInfo" in value;
|
|
91
90
|
isInstance = isInstance && "ctaBehavior" in value;
|
|
@@ -104,7 +103,7 @@ export function CoverCtaFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
104
103
|
return {
|
|
105
104
|
|
|
106
105
|
'text': !exists(json, 'Text') ? undefined : json['Text'],
|
|
107
|
-
'buttonStyle': json['buttonStyle'],
|
|
106
|
+
'buttonStyle': !exists(json, 'buttonStyle') ? undefined : json['buttonStyle'],
|
|
108
107
|
'callbacks': ((json['callbacks'] as Array<any>).map(CallbackFromJSON)),
|
|
109
108
|
'clientEventInfo': CtaClientEventInfoFromJSON(json['clientEventInfo']),
|
|
110
109
|
'ctaBehavior': TimelineCoverBehaviorFromJSON(json['ctaBehavior']),
|
|
@@ -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 { Retweet } from './Retweet';
|
|
17
|
+
import {
|
|
18
|
+
RetweetFromJSON,
|
|
19
|
+
RetweetFromJSONTyped,
|
|
20
|
+
RetweetToJSON,
|
|
21
|
+
} from './Retweet';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface DeleteRetweet
|
|
27
|
+
*/
|
|
28
|
+
export interface DeleteRetweet {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<Retweet>}
|
|
32
|
+
* @memberof DeleteRetweet
|
|
33
|
+
*/
|
|
34
|
+
result: Array<Retweet>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the DeleteRetweet interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfDeleteRetweet(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "result" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function DeleteRetweetFromJSON(json: any): DeleteRetweet {
|
|
48
|
+
return DeleteRetweetFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function DeleteRetweetFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRetweet {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'result': ((json['result'] as Array<any>).map(RetweetFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function DeleteRetweetToJSON(value?: DeleteRetweet | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'result': ((value.result as Array<any>).map(RetweetToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { DeleteRetweet } from './DeleteRetweet';
|
|
17
|
+
import {
|
|
18
|
+
DeleteRetweetFromJSON,
|
|
19
|
+
DeleteRetweetFromJSONTyped,
|
|
20
|
+
DeleteRetweetToJSON,
|
|
21
|
+
} from './DeleteRetweet';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface DeleteRetweetResponseResult
|
|
27
|
+
*/
|
|
28
|
+
export interface DeleteRetweetResponseResult {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {DeleteRetweet}
|
|
32
|
+
* @memberof DeleteRetweetResponseResult
|
|
33
|
+
*/
|
|
34
|
+
retweetResults?: DeleteRetweet;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the DeleteRetweetResponseResult interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfDeleteRetweetResponseResult(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
|
|
43
|
+
return isInstance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function DeleteRetweetResponseResultFromJSON(json: any): DeleteRetweetResponseResult {
|
|
47
|
+
return DeleteRetweetResponseResultFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function DeleteRetweetResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRetweetResponseResult {
|
|
51
|
+
if ((json === undefined) || (json === null)) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'retweetResults': !exists(json, 'retweet_results') ? undefined : DeleteRetweetFromJSON(json['retweet_results']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function DeleteRetweetResponseResultToJSON(value?: DeleteRetweetResponseResult | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'retweet_results': DeleteRetweetToJSON(value.retweetResults),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -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 { Errors } from './Errors';
|
|
17
|
+
import {
|
|
18
|
+
ErrorsFromJSON,
|
|
19
|
+
ErrorsFromJSONTyped,
|
|
20
|
+
ErrorsToJSON,
|
|
21
|
+
} from './Errors';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ErrorResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface ErrorResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Errors}
|
|
32
|
+
* @memberof ErrorResponse
|
|
33
|
+
*/
|
|
34
|
+
errors: Errors;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ErrorResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfErrorResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "errors" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ErrorResponseFromJSON(json: any): ErrorResponse {
|
|
48
|
+
return ErrorResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'errors': ErrorsFromJSON(json['errors']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ErrorResponseToJSON(value?: ErrorResponse | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'errors': ErrorsToJSON(value.errors),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface ExtMediaAvailability
|
|
20
20
|
*/
|
|
21
21
|
export interface ExtMediaAvailability {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ExtMediaAvailability
|
|
26
|
+
*/
|
|
27
|
+
reason?: string;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {string}
|
|
@@ -32,7 +38,8 @@ export interface ExtMediaAvailability {
|
|
|
32
38
|
* @export
|
|
33
39
|
*/
|
|
34
40
|
export const ExtMediaAvailabilityStatusEnum = {
|
|
35
|
-
Available: 'Available'
|
|
41
|
+
Available: 'Available',
|
|
42
|
+
Unavailable: 'Unavailable'
|
|
36
43
|
} as const;
|
|
37
44
|
export type ExtMediaAvailabilityStatusEnum = typeof ExtMediaAvailabilityStatusEnum[keyof typeof ExtMediaAvailabilityStatusEnum];
|
|
38
45
|
|
|
@@ -56,6 +63,7 @@ export function ExtMediaAvailabilityFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
56
63
|
}
|
|
57
64
|
return {
|
|
58
65
|
|
|
66
|
+
'reason': !exists(json, 'reason') ? undefined : json['reason'],
|
|
59
67
|
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
60
68
|
};
|
|
61
69
|
}
|
|
@@ -69,6 +77,7 @@ export function ExtMediaAvailabilityToJSON(value?: ExtMediaAvailability | null):
|
|
|
69
77
|
}
|
|
70
78
|
return {
|
|
71
79
|
|
|
80
|
+
'reason': value.reason,
|
|
72
81
|
'status': value.status,
|
|
73
82
|
};
|
|
74
83
|
}
|