twitter-openapi-typescript-generated 0.0.5 → 0.0.6
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 +6 -1
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +1 -0
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +4 -1
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts +6 -0
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +24 -6
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +9 -0
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +36 -9
- 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 +4 -1
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +2 -0
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +8 -2
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/models/Entities.d.ts +3 -2
- package/dist/models/Entities.d.ts.map +1 -1
- package/dist/models/Entities.js +3 -2
- package/dist/models/Entities.js.map +1 -1
- package/dist/models/PostCreateRetweetRequest.d.ts +3 -3
- package/dist/models/PostCreateRetweetRequest.d.ts.map +1 -1
- package/dist/models/PostCreateRetweetRequest.js +3 -3
- package/dist/models/PostCreateRetweetRequest.js.map +1 -1
- package/dist/models/PostCreateRetweetRequestVariables.d.ts +38 -0
- package/dist/models/PostCreateRetweetRequestVariables.d.ts.map +1 -0
- package/dist/models/PostCreateRetweetRequestVariables.js +54 -0
- package/dist/models/PostCreateRetweetRequestVariables.js.map +1 -0
- package/dist/models/PostDeleteTweetRequest.d.ts +3 -3
- package/dist/models/PostDeleteTweetRequest.d.ts.map +1 -1
- package/dist/models/PostDeleteTweetRequest.js +3 -3
- package/dist/models/PostDeleteTweetRequest.js.map +1 -1
- package/dist/models/PostFavoriteTweetRequest.d.ts +3 -3
- package/dist/models/PostFavoriteTweetRequest.d.ts.map +1 -1
- package/dist/models/PostFavoriteTweetRequest.js +3 -3
- package/dist/models/PostFavoriteTweetRequest.js.map +1 -1
- package/dist/models/PostUnfavoriteTweetRequest.d.ts +3 -3
- package/dist/models/PostUnfavoriteTweetRequest.d.ts.map +1 -1
- package/dist/models/PostUnfavoriteTweetRequest.js +3 -3
- package/dist/models/PostUnfavoriteTweetRequest.js.map +1 -1
- package/dist/models/Tweet.d.ts +7 -0
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +3 -0
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetCard.d.ts +39 -0
- package/dist/models/TweetCard.d.ts.map +1 -0
- package/dist/models/TweetCard.js +54 -0
- package/dist/models/TweetCard.js.map +1 -0
- package/dist/models/TweetCardLegacy.d.ts +45 -0
- package/dist/models/TweetCardLegacy.d.ts.map +1 -0
- package/dist/models/TweetCardLegacy.js +58 -0
- package/dist/models/TweetCardLegacy.js.map +1 -0
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts +39 -0
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts.map +1 -0
- package/dist/models/TweetCardLegacyBindingValuesInner.js +55 -0
- package/dist/models/TweetCardLegacyBindingValuesInner.js.map +1 -0
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts +50 -0
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts.map +1 -0
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.js +58 -0
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.js.map +1 -0
- package/dist/models/Url.d.ts +50 -0
- package/dist/models/Url.d.ts.map +1 -0
- package/dist/models/Url.js +60 -0
- package/dist/models/Url.js.map +1 -0
- package/dist/models/index.d.ts +6 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +6 -1
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +6 -1
- package/src/apis/PostApi.ts +36 -6
- package/src/apis/TweetApi.ts +54 -9
- package/src/apis/UserApi.ts +6 -1
- package/src/apis/UserListApi.ts +12 -2
- package/src/models/Entities.ts +10 -4
- package/src/models/PostCreateRetweetRequest.ts +9 -9
- package/src/models/{PostDeleteTweetRequestVariables.ts → PostCreateRetweetRequestVariables.ts} +10 -10
- package/src/models/PostDeleteTweetRequest.ts +9 -9
- package/src/models/PostFavoriteTweetRequest.ts +9 -9
- package/src/models/PostUnfavoriteTweetRequest.ts +9 -9
- package/src/models/Tweet.ts +14 -0
- package/src/models/TweetCard.ts +80 -0
- package/src/models/TweetCardLegacy.ts +91 -0
- package/src/models/TweetCardLegacyBindingValuesInner.ts +82 -0
- package/src/models/TweetCardLegacyBindingValuesInnerValue.ts +90 -0
- package/src/models/Url.ts +93 -0
- package/src/models/index.ts +6 -1
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/replace.py +20 -20
- package/twitter-openapi/README.md +4 -6
- package/twitter-openapi/dist/dart/openapi-3.0.yaml +38 -38
- package/twitter-openapi/dist/dart/paths/bookmarks.yaml +8 -1
- package/twitter-openapi/dist/dart/paths/follow.yaml +24 -10
- package/twitter-openapi/dist/dart/paths/post.yaml +157 -115
- package/twitter-openapi/dist/dart/paths/profile.yaml +8 -1
- package/twitter-openapi/dist/dart/paths/timeline.yaml +38 -17
- package/twitter-openapi/dist/dart/paths/tweet.yaml +8 -1
- package/twitter-openapi/dist/dart/paths/user.yaml +8 -1
- package/twitter-openapi/dist/dart/paths/usertweets.yaml +54 -26
- package/twitter-openapi/dist/dart/resources/parameters.yaml +13 -0
- package/twitter-openapi/dist/dart/schemas/tweet.yaml +57 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +38 -38
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +8 -1
- package/twitter-openapi/dist/docs/paths/follow.yaml +60 -46
- package/twitter-openapi/dist/docs/paths/post.yaml +124 -82
- package/twitter-openapi/dist/docs/paths/profile.yaml +8 -1
- package/twitter-openapi/dist/docs/paths/timeline.yaml +92 -71
- package/twitter-openapi/dist/docs/paths/tweet.yaml +8 -1
- package/twitter-openapi/dist/docs/paths/user.yaml +8 -1
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +122 -94
- package/twitter-openapi/dist/docs/resources/parameters.yaml +13 -0
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +57 -0
- package/twitter-openapi/dist/test/openapi-3.0.yaml +38 -38
- package/twitter-openapi/dist/test/paths/bookmarks.yaml +8 -1
- package/twitter-openapi/dist/test/paths/follow.yaml +24 -10
- package/twitter-openapi/dist/test/paths/post.yaml +108 -66
- package/twitter-openapi/dist/test/paths/profile.yaml +8 -1
- package/twitter-openapi/dist/test/paths/timeline.yaml +38 -17
- package/twitter-openapi/dist/test/paths/tweet.yaml +8 -1
- package/twitter-openapi/dist/test/paths/user.yaml +8 -1
- package/twitter-openapi/dist/test/paths/usertweets.yaml +54 -26
- package/twitter-openapi/dist/test/resources/parameters.yaml +13 -0
- package/twitter-openapi/dist/test/schemas/tweet.yaml +57 -0
- package/twitter-openapi/dist/typescript/openapi-3.0.yaml +38 -38
- package/twitter-openapi/dist/typescript/paths/bookmarks.yaml +8 -1
- package/twitter-openapi/dist/typescript/paths/follow.yaml +24 -10
- package/twitter-openapi/dist/typescript/paths/post.yaml +135 -93
- package/twitter-openapi/dist/typescript/paths/profile.yaml +8 -1
- package/twitter-openapi/dist/typescript/paths/timeline.yaml +38 -17
- package/twitter-openapi/dist/typescript/paths/tweet.yaml +8 -1
- package/twitter-openapi/dist/typescript/paths/user.yaml +8 -1
- package/twitter-openapi/dist/typescript/paths/usertweets.yaml +54 -26
- package/twitter-openapi/dist/typescript/resources/parameters.yaml +13 -0
- package/twitter-openapi/dist/typescript/schemas/tweet.yaml +57 -0
- package/twitter-openapi/src/openapi/paths/bookmarks.yaml +1 -1
- package/twitter-openapi/src/openapi/paths/follow.yaml +2 -2
- package/twitter-openapi/src/openapi/paths/post.yaml +6 -6
- package/twitter-openapi/src/openapi/paths/profile.yaml +1 -1
- package/twitter-openapi/src/openapi/paths/timeline.yaml +3 -3
- package/twitter-openapi/src/openapi/paths/tweet.yaml +1 -1
- package/twitter-openapi/src/openapi/paths/user.yaml +1 -1
- package/twitter-openapi/src/openapi/paths/usertweets.yaml +4 -4
- package/twitter-openapi/src/openapi/resources/parameters.yaml +15 -0
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +58 -1
- package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/build_config.py +12 -12
- package/twitter-openapi/tools/hooks.py +30 -6
- package/dist/models/PostDeleteTweetRequestVariables.d.ts +0 -38
- package/dist/models/PostDeleteTweetRequestVariables.d.ts.map +0 -1
- package/dist/models/PostDeleteTweetRequestVariables.js +0 -54
- package/dist/models/PostDeleteTweetRequestVariables.js.map +0 -1
|
@@ -10,11 +10,11 @@ class Config:
|
|
|
10
10
|
"docs": {
|
|
11
11
|
"openapi": [AddSecuritySchemesOnSecuritySchemes()],
|
|
12
12
|
"schemas": [],
|
|
13
|
-
"other":[],
|
|
13
|
+
"other": [],
|
|
14
14
|
"request": {
|
|
15
15
|
key: [
|
|
16
|
-
ReplaceQueryIdPlaceholder(split=-1),
|
|
17
16
|
SetResponsesHeader(suffix=None),
|
|
17
|
+
AddPathQueryIdOnParameters(split=-1),
|
|
18
18
|
AddParametersOnContent(
|
|
19
19
|
split=-1, contentType="application/json"
|
|
20
20
|
),
|
|
@@ -23,8 +23,8 @@ class Config:
|
|
|
23
23
|
}
|
|
24
24
|
| {
|
|
25
25
|
key: [
|
|
26
|
-
ReplaceQueryIdPlaceholder(split=-1),
|
|
27
26
|
SetResponsesHeader(suffix=None),
|
|
27
|
+
AddPathQueryIdOnParameters(split=-1),
|
|
28
28
|
AddParametersOnParameters(
|
|
29
29
|
split=-1,
|
|
30
30
|
schemaType=None,
|
|
@@ -58,12 +58,12 @@ class Config:
|
|
|
58
58
|
"dart": {
|
|
59
59
|
"openapi": [],
|
|
60
60
|
"schemas": [],
|
|
61
|
-
"other":[],
|
|
61
|
+
"other": [],
|
|
62
62
|
"request": {
|
|
63
63
|
key: [
|
|
64
|
-
ReplaceQueryIdPlaceholder(split=-1),
|
|
65
64
|
AddSecuritySchemesOnHeader(split=-1),
|
|
66
65
|
SetResponsesHeader(suffix=None),
|
|
66
|
+
AddPathQueryIdOnParameters(split=-1),
|
|
67
67
|
AddParametersOnParameters(
|
|
68
68
|
split=-1,
|
|
69
69
|
schemaType="string",
|
|
@@ -73,9 +73,9 @@ class Config:
|
|
|
73
73
|
}
|
|
74
74
|
| {
|
|
75
75
|
key: [
|
|
76
|
-
ReplaceQueryIdPlaceholder(split=-1),
|
|
77
76
|
AddSecuritySchemesOnHeader(split=-1),
|
|
78
77
|
SetResponsesHeader(suffix=None),
|
|
78
|
+
AddPathQueryIdOnParameters(split=-1),
|
|
79
79
|
AddParametersOnBody(
|
|
80
80
|
split=-1,
|
|
81
81
|
schemaType=None,
|
|
@@ -112,11 +112,11 @@ class Config:
|
|
|
112
112
|
"typescript": {
|
|
113
113
|
"openapi": [AddSecuritySchemesOnSecuritySchemes()],
|
|
114
114
|
"schemas": [],
|
|
115
|
-
"other":[],
|
|
115
|
+
"other": [],
|
|
116
116
|
"request": {
|
|
117
117
|
key: [
|
|
118
|
-
ReplaceQueryIdPlaceholder(split=-1),
|
|
119
118
|
SetResponsesHeader(suffix=None),
|
|
119
|
+
AddPathQueryIdOnParameters(split=-1),
|
|
120
120
|
AddParametersOnParameters(
|
|
121
121
|
split=-1,
|
|
122
122
|
schemaType="string",
|
|
@@ -126,8 +126,8 @@ class Config:
|
|
|
126
126
|
}
|
|
127
127
|
| {
|
|
128
128
|
key: [
|
|
129
|
-
ReplaceQueryIdPlaceholder(split=-1),
|
|
130
129
|
SetResponsesHeader(suffix=None),
|
|
130
|
+
AddPathQueryIdOnParameters(split=-1),
|
|
131
131
|
AddParametersOnBody(
|
|
132
132
|
split=-1,
|
|
133
133
|
schemaType=None,
|
|
@@ -162,11 +162,11 @@ class Config:
|
|
|
162
162
|
"test": {
|
|
163
163
|
"openapi": [AddSecuritySchemesOnSecuritySchemes()],
|
|
164
164
|
"schemas": [],
|
|
165
|
-
"other":[],
|
|
165
|
+
"other": [],
|
|
166
166
|
"request": {
|
|
167
167
|
key: [
|
|
168
|
-
ReplaceQueryIdPlaceholder(split=-1),
|
|
169
168
|
SetResponsesHeader(suffix=None),
|
|
169
|
+
AddPathQueryIdOnParameters(split=-1),
|
|
170
170
|
AddParametersOnParameters(
|
|
171
171
|
split=-1,
|
|
172
172
|
schemaType="string",
|
|
@@ -176,8 +176,8 @@ class Config:
|
|
|
176
176
|
}
|
|
177
177
|
| {
|
|
178
178
|
key: [
|
|
179
|
-
ReplaceQueryIdPlaceholder(split=-1),
|
|
180
179
|
SetResponsesHeader(suffix=None),
|
|
180
|
+
AddPathQueryIdOnParameters(split=-1),
|
|
181
181
|
AddParametersOnParameters(
|
|
182
182
|
split=-1,
|
|
183
183
|
schemaType="string",
|
|
@@ -58,15 +58,17 @@ class HookBase:
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
class OpenapiHookBase(HookBase):
|
|
61
|
-
def hook(self, value: dict)->dict:
|
|
61
|
+
def hook(self, value: dict) -> dict:
|
|
62
62
|
return value
|
|
63
63
|
|
|
64
|
+
|
|
64
65
|
class OtherHookBase(HookBase):
|
|
65
|
-
def hook(self)->tuple[str, dict]:
|
|
66
|
-
return
|
|
66
|
+
def hook(self) -> tuple[str, dict]:
|
|
67
|
+
return "", {}
|
|
68
|
+
|
|
67
69
|
|
|
68
70
|
class SchemasHookBase(HookBase):
|
|
69
|
-
def hook(self, value: dict)->dict:
|
|
71
|
+
def hook(self, value: dict) -> dict:
|
|
70
72
|
return value
|
|
71
73
|
|
|
72
74
|
|
|
@@ -78,7 +80,7 @@ class RequestHookBase(HookBase):
|
|
|
78
80
|
super().__init__()
|
|
79
81
|
self.split = split
|
|
80
82
|
|
|
81
|
-
def hook(self, path: str, value: dict)->tuple[str, dict]:
|
|
83
|
+
def hook(self, path: str, value: dict) -> tuple[str, dict]:
|
|
82
84
|
value["parameters"] = value.get("parameters", [])
|
|
83
85
|
self.path_name = "/".join(path.split("/")[self.split :])
|
|
84
86
|
return path, value
|
|
@@ -123,7 +125,7 @@ class ReplaceQueryIdPlaceholder(RequestHookBase):
|
|
|
123
125
|
def hook(self, path: str, value: dict):
|
|
124
126
|
path, value = super().hook(path, value)
|
|
125
127
|
new = self.PLACEHOLDER[self.path_name]["queryId"]
|
|
126
|
-
return path.replace(r"{
|
|
128
|
+
return path.replace(r"{pathQueryId}", new), value
|
|
127
129
|
|
|
128
130
|
|
|
129
131
|
class SetResponsesHeader(RequestHookBase):
|
|
@@ -140,6 +142,28 @@ class SetResponsesHeader(RequestHookBase):
|
|
|
140
142
|
return path, value
|
|
141
143
|
|
|
142
144
|
|
|
145
|
+
class AddPathQueryIdOnParameters(RequestHookBase):
|
|
146
|
+
def __init__(self, split: str = 1):
|
|
147
|
+
super().__init__(split=split)
|
|
148
|
+
|
|
149
|
+
def hook(self, path: str, value: dict):
|
|
150
|
+
path, value = super().hook(path, value)
|
|
151
|
+
data = self.PLACEHOLDER[self.path_name]
|
|
152
|
+
value["parameters"].append(
|
|
153
|
+
{
|
|
154
|
+
"in": "path",
|
|
155
|
+
"name": "pathQueryId",
|
|
156
|
+
"required": True,
|
|
157
|
+
"schema": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"default": data["queryId"],
|
|
160
|
+
"example": data["queryId"],
|
|
161
|
+
},
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
return path, value
|
|
165
|
+
|
|
166
|
+
|
|
143
167
|
# OnParameters
|
|
144
168
|
|
|
145
169
|
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Twitter OpenAPI
|
|
3
|
-
* Twitter OpenAPI(Swagger) specification
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.0.1
|
|
6
|
-
* Contact: yuki@yuki0311.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface PostDeleteTweetRequestVariables
|
|
16
|
-
*/
|
|
17
|
-
export interface PostDeleteTweetRequestVariables {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {boolean}
|
|
21
|
-
* @memberof PostDeleteTweetRequestVariables
|
|
22
|
-
*/
|
|
23
|
-
darkRequest: boolean;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof PostDeleteTweetRequestVariables
|
|
28
|
-
*/
|
|
29
|
-
tweetId: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the PostDeleteTweetRequestVariables interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfPostDeleteTweetRequestVariables(value: object): boolean;
|
|
35
|
-
export declare function PostDeleteTweetRequestVariablesFromJSON(json: any): PostDeleteTweetRequestVariables;
|
|
36
|
-
export declare function PostDeleteTweetRequestVariablesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDeleteTweetRequestVariables;
|
|
37
|
-
export declare function PostDeleteTweetRequestVariablesToJSON(value?: PostDeleteTweetRequestVariables | null): any;
|
|
38
|
-
//# sourceMappingURL=PostDeleteTweetRequestVariables.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PostDeleteTweetRequestVariables.d.ts","sourceRoot":"","sources":["../../src/models/PostDeleteTweetRequestVariables.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,yCAAyC,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAMhF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,GAAG,+BAA+B,CAElG;AAED,wBAAgB,4CAA4C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,+BAA+B,CASrI;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,+BAA+B,GAAG,IAAI,GAAG,GAAG,CAYzG"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Twitter OpenAPI
|
|
6
|
-
* Twitter OpenAPI(Swagger) specification
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.0.1
|
|
9
|
-
* Contact: yuki@yuki0311.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PostDeleteTweetRequestVariablesToJSON = exports.PostDeleteTweetRequestVariablesFromJSONTyped = exports.PostDeleteTweetRequestVariablesFromJSON = exports.instanceOfPostDeleteTweetRequestVariables = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the PostDeleteTweetRequestVariables interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfPostDeleteTweetRequestVariables(value) {
|
|
21
|
-
var isInstance = true;
|
|
22
|
-
isInstance = isInstance && "darkRequest" in value;
|
|
23
|
-
isInstance = isInstance && "tweetId" in value;
|
|
24
|
-
return isInstance;
|
|
25
|
-
}
|
|
26
|
-
exports.instanceOfPostDeleteTweetRequestVariables = instanceOfPostDeleteTweetRequestVariables;
|
|
27
|
-
function PostDeleteTweetRequestVariablesFromJSON(json) {
|
|
28
|
-
return PostDeleteTweetRequestVariablesFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
exports.PostDeleteTweetRequestVariablesFromJSON = PostDeleteTweetRequestVariablesFromJSON;
|
|
31
|
-
function PostDeleteTweetRequestVariablesFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if ((json === undefined) || (json === null)) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'darkRequest': json['dark_request'],
|
|
37
|
-
'tweetId': json['tweet_id'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
exports.PostDeleteTweetRequestVariablesFromJSONTyped = PostDeleteTweetRequestVariablesFromJSONTyped;
|
|
41
|
-
function PostDeleteTweetRequestVariablesToJSON(value) {
|
|
42
|
-
if (value === undefined) {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'dark_request': value.darkRequest,
|
|
50
|
-
'tweet_id': value.tweetId,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
exports.PostDeleteTweetRequestVariablesToJSON = PostDeleteTweetRequestVariablesToJSON;
|
|
54
|
-
//# sourceMappingURL=PostDeleteTweetRequestVariables.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PostDeleteTweetRequestVariables.js","sourceRoot":"","sources":["../../src/models/PostDeleteTweetRequestVariables.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAuBH;;GAEG;AACH,SAAgB,yCAAyC,CAAC,KAAa;IACnE,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,aAAa,IAAI,KAAK,CAAC;IAClD,UAAU,GAAG,UAAU,IAAI,SAAS,IAAI,KAAK,CAAC;IAE9C,OAAO,UAAU,CAAC;AACtB,CAAC;AAND,8FAMC;AAED,SAAgB,uCAAuC,CAAC,IAAS;IAC7D,OAAO,4CAA4C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrE,CAAC;AAFD,0FAEC;AAED,SAAgB,4CAA4C,CAAC,IAAS,EAAE,mBAA4B;IAChG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,aAAa,EAAE,IAAI,CAAC,cAAc,CAAC;QACnC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC;KAC9B,CAAC;AACN,CAAC;AATD,oGASC;AAED,SAAgB,qCAAqC,CAAC,KAA8C;IAChG,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,cAAc,EAAE,KAAK,CAAC,WAAW;QACjC,UAAU,EAAE,KAAK,CAAC,OAAO;KAC5B,CAAC;AACN,CAAC;AAZD,sFAYC"}
|