twitter-openapi-typescript 0.0.4 → 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.
Files changed (53) hide show
  1. package/README.md +37 -11
  2. package/dist/src/api.d.ts +41 -33
  3. package/dist/src/api.d.ts.map +1 -1
  4. package/dist/src/api.js +239 -151
  5. package/dist/src/api.js.map +1 -1
  6. package/dist/src/apis/defaultApi.d.ts +17 -17
  7. package/dist/src/apis/defaultApi.js +106 -106
  8. package/dist/src/apis/index.d.ts +9 -9
  9. package/dist/src/apis/index.js +21 -21
  10. package/dist/src/apis/initialStateApi.d.ts +2 -2
  11. package/dist/src/apis/initialStateApi.js +9 -9
  12. package/dist/src/apis/postApi.d.ts +51 -51
  13. package/dist/src/apis/postApi.js +236 -236
  14. package/dist/src/apis/tweetApi.d.ts +88 -88
  15. package/dist/src/apis/tweetApi.js +277 -277
  16. package/dist/src/apis/userApi.d.ts +17 -17
  17. package/dist/src/apis/userApi.js +101 -101
  18. package/dist/src/apis/userListApi.d.ts +28 -28
  19. package/dist/src/apis/userListApi.js +135 -135
  20. package/dist/src/apis/v11GetApi.d.ts +7 -7
  21. package/dist/src/apis/v11GetApi.js +11 -11
  22. package/dist/src/apis/v11PostApi.d.ts +22 -22
  23. package/dist/src/apis/v11PostApi.js +93 -93
  24. package/dist/src/apis/v20GetApi.d.ts +7 -7
  25. package/dist/src/apis/v20GetApi.js +11 -11
  26. package/dist/src/index.d.ts +4 -4
  27. package/dist/src/index.js +20 -20
  28. package/dist/src/models/api.d.ts +17 -17
  29. package/dist/src/models/api.js +130 -130
  30. package/dist/src/models/index.d.ts +2 -2
  31. package/dist/src/models/index.js +18 -18
  32. package/dist/src/models/type.d.ts +15 -15
  33. package/dist/src/models/type.js +2 -2
  34. package/dist/src/types/flag.d.ts +5 -5
  35. package/dist/src/types/flag.js +2 -2
  36. package/dist/src/types/header.d.ts +14 -14
  37. package/dist/src/types/header.js +2 -2
  38. package/dist/src/types/index.d.ts +7 -7
  39. package/dist/src/types/index.js +23 -23
  40. package/dist/src/types/response.d.ts +9 -9
  41. package/dist/src/types/response.js +2 -2
  42. package/dist/src/types/timeline.d.ts +10 -10
  43. package/dist/src/types/timeline.js +2 -2
  44. package/dist/src/types/tweet.d.ts +17 -17
  45. package/dist/src/types/tweet.js +2 -2
  46. package/dist/src/types/user.d.ts +10 -10
  47. package/dist/src/types/user.js +2 -2
  48. package/dist/src/types/user_list.d.ts +12 -12
  49. package/dist/src/types/user_list.js +2 -2
  50. package/package.json +4 -4
  51. package/src/api.ts +91 -35
  52. package/test/api/defaultApi.test.ts +0 -1
  53. package/test/init.ts +2 -2
@@ -1,237 +1,237 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
- return new (P || (P = Promise))(function (resolve, reject) {
16
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
- step((generator = generator.apply(thisArg, _arguments || [])).next());
20
- });
21
- };
22
- var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
- function verb(n) { return function (v) { return step([n, v]); }; }
26
- function step(op) {
27
- if (f) throw new TypeError("Generator is already executing.");
28
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
- if (y = 0, t) op = [op[0] & 2, t.value];
31
- switch (op[0]) {
32
- case 0: case 1: t = op; break;
33
- case 4: _.label++; return { value: op[1], done: false };
34
- case 5: _.label++; y = op[1]; op = [0]; continue;
35
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
- default:
37
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
- if (t[2]) _.ops.pop();
42
- _.trys.pop(); continue;
43
- }
44
- op = body.call(thisArg, _);
45
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
- }
48
- };
49
- Object.defineProperty(exports, "__esModule", { value: true });
50
- exports.PostApiUtils = void 0;
51
- var i = require("twitter-openapi-typescript-generated");
52
- var models_1 = require("../models");
53
- var PostApiUtils = /** @class */ (function () {
54
- function PostApiUtils(api, flag) {
55
- this.api = api;
56
- this.flag = flag;
57
- }
58
- PostApiUtils.prototype.postCreateTweet = function (param) {
59
- return __awaiter(this, void 0, void 0, function () {
60
- var args, queryId, features, variables, response;
61
- var _a;
62
- return __generator(this, function (_b) {
63
- switch (_b.label) {
64
- case 0:
65
- args = __assign({ tweetText: param.tweetText }, param.extraParam);
66
- queryId = 'CreateTweet';
67
- features = i.PostCreateTweetRequestFeaturesFromJSON(this.flag[queryId]['features']);
68
- variables = i.PostCreateTweetRequestVariablesFromJSON(this.flag[queryId]['variables']);
69
- return [4 /*yield*/, this.api.postCreateTweetRaw({
70
- postCreateTweetRequest: {
71
- queryId: queryId,
72
- features: features,
73
- variables: __assign(__assign({}, variables), args),
74
- },
75
- })];
76
- case 1:
77
- response = _b.sent();
78
- _a = {
79
- raw: { response: response.raw },
80
- header: (0, models_1.buildHeader)(response.raw.headers)
81
- };
82
- return [4 /*yield*/, response.value()];
83
- case 2: return [2 /*return*/, (_a.data = _b.sent(),
84
- _a)];
85
- }
86
- });
87
- });
88
- };
89
- PostApiUtils.prototype.postDeleteTweet = function (param) {
90
- return __awaiter(this, void 0, void 0, function () {
91
- var args, queryId, variables, response;
92
- var _a;
93
- return __generator(this, function (_b) {
94
- switch (_b.label) {
95
- case 0:
96
- args = __assign({ tweetId: param.tweetId }, param.extraParam);
97
- queryId = 'DeleteTweet';
98
- variables = i.PostDeleteTweetRequestVariablesFromJSON(this.flag[queryId]['variables']);
99
- return [4 /*yield*/, this.api.postDeleteTweetRaw({
100
- postDeleteTweetRequest: {
101
- queryId: queryId,
102
- variables: __assign(__assign({}, variables), args),
103
- },
104
- })];
105
- case 1:
106
- response = _b.sent();
107
- _a = {
108
- raw: { response: response.raw },
109
- header: (0, models_1.buildHeader)(response.raw.headers)
110
- };
111
- return [4 /*yield*/, response.value()];
112
- case 2: return [2 /*return*/, (_a.data = _b.sent(),
113
- _a)];
114
- }
115
- });
116
- });
117
- };
118
- PostApiUtils.prototype.postCreateRetweet = function (param) {
119
- return __awaiter(this, void 0, void 0, function () {
120
- var args, queryId, variables, response;
121
- var _a;
122
- return __generator(this, function (_b) {
123
- switch (_b.label) {
124
- case 0:
125
- args = __assign({ tweetId: param.tweetId }, param.extraParam);
126
- queryId = 'CreateRetweet';
127
- variables = i.PostCreateTweetRequestVariablesFromJSON(this.flag[queryId]['variables']);
128
- return [4 /*yield*/, this.api.postCreateRetweetRaw({
129
- postCreateRetweetRequest: {
130
- queryId: queryId,
131
- variables: __assign(__assign({}, variables), args),
132
- },
133
- })];
134
- case 1:
135
- response = _b.sent();
136
- _a = {
137
- raw: { response: response.raw },
138
- header: (0, models_1.buildHeader)(response.raw.headers)
139
- };
140
- return [4 /*yield*/, response.value()];
141
- case 2: return [2 /*return*/, (_a.data = _b.sent(),
142
- _a)];
143
- }
144
- });
145
- });
146
- };
147
- PostApiUtils.prototype.postDeleteRetweet = function (param) {
148
- return __awaiter(this, void 0, void 0, function () {
149
- var args, queryId, variables, response;
150
- var _a;
151
- return __generator(this, function (_b) {
152
- switch (_b.label) {
153
- case 0:
154
- args = __assign({ sourceTweetId: param.sourceTweetId }, param.extraParam);
155
- queryId = 'DeleteRetweet';
156
- variables = i.PostDeleteRetweetRequestVariablesFromJSON(this.flag[queryId]['variables']);
157
- return [4 /*yield*/, this.api.postDeleteRetweetRaw({
158
- postDeleteRetweetRequest: {
159
- queryId: queryId,
160
- variables: __assign(__assign({}, variables), args),
161
- },
162
- })];
163
- case 1:
164
- response = _b.sent();
165
- _a = {
166
- raw: { response: response.raw },
167
- header: (0, models_1.buildHeader)(response.raw.headers)
168
- };
169
- return [4 /*yield*/, response.value()];
170
- case 2: return [2 /*return*/, (_a.data = _b.sent(),
171
- _a)];
172
- }
173
- });
174
- });
175
- };
176
- PostApiUtils.prototype.postFavoriteTweet = function (param) {
177
- return __awaiter(this, void 0, void 0, function () {
178
- var args, queryId, variables, response;
179
- var _a;
180
- return __generator(this, function (_b) {
181
- switch (_b.label) {
182
- case 0:
183
- args = __assign({ tweetId: param.tweetId }, param.extraParam);
184
- queryId = 'FavoriteTweet';
185
- variables = i.PostDeleteTweetRequestVariablesFromJSON(this.flag[queryId]['variables']);
186
- return [4 /*yield*/, this.api.postFavoriteTweetRaw({
187
- postFavoriteTweetRequest: {
188
- queryId: queryId,
189
- variables: __assign(__assign({}, variables), args),
190
- },
191
- })];
192
- case 1:
193
- response = _b.sent();
194
- _a = {
195
- raw: { response: response.raw },
196
- header: (0, models_1.buildHeader)(response.raw.headers)
197
- };
198
- return [4 /*yield*/, response.value()];
199
- case 2: return [2 /*return*/, (_a.data = _b.sent(),
200
- _a)];
201
- }
202
- });
203
- });
204
- };
205
- PostApiUtils.prototype.postUnfavoriteTweet = function (param) {
206
- return __awaiter(this, void 0, void 0, function () {
207
- var args, queryId, variables, response;
208
- var _a;
209
- return __generator(this, function (_b) {
210
- switch (_b.label) {
211
- case 0:
212
- args = __assign({ tweetId: param.tweetId }, param.extraParam);
213
- queryId = 'UnfavoriteTweet';
214
- variables = i.PostDeleteTweetRequestVariablesFromJSON(this.flag[queryId]['variables']);
215
- return [4 /*yield*/, this.api.postUnfavoriteTweetRaw({
216
- postUnfavoriteTweetRequest: {
217
- queryId: queryId,
218
- variables: __assign(__assign({}, variables), args),
219
- },
220
- })];
221
- case 1:
222
- response = _b.sent();
223
- _a = {
224
- raw: { response: response.raw },
225
- header: (0, models_1.buildHeader)(response.raw.headers)
226
- };
227
- return [4 /*yield*/, response.value()];
228
- case 2: return [2 /*return*/, (_a.data = _b.sent(),
229
- _a)];
230
- }
231
- });
232
- });
233
- };
234
- return PostApiUtils;
235
- }());
236
- exports.PostApiUtils = PostApiUtils;
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
+ return new (P || (P = Promise))(function (resolve, reject) {
16
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20
+ });
21
+ };
22
+ var __generator = (this && this.__generator) || function (thisArg, body) {
23
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
+ function verb(n) { return function (v) { return step([n, v]); }; }
26
+ function step(op) {
27
+ if (f) throw new TypeError("Generator is already executing.");
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
+ if (y = 0, t) op = [op[0] & 2, t.value];
31
+ switch (op[0]) {
32
+ case 0: case 1: t = op; break;
33
+ case 4: _.label++; return { value: op[1], done: false };
34
+ case 5: _.label++; y = op[1]; op = [0]; continue;
35
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
+ default:
37
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
+ if (t[2]) _.ops.pop();
42
+ _.trys.pop(); continue;
43
+ }
44
+ op = body.call(thisArg, _);
45
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
+ }
48
+ };
49
+ Object.defineProperty(exports, "__esModule", { value: true });
50
+ exports.PostApiUtils = void 0;
51
+ var i = require("twitter-openapi-typescript-generated");
52
+ var models_1 = require("../models");
53
+ var PostApiUtils = /** @class */ (function () {
54
+ function PostApiUtils(api, flag) {
55
+ this.api = api;
56
+ this.flag = flag;
57
+ }
58
+ PostApiUtils.prototype.postCreateTweet = function (param) {
59
+ return __awaiter(this, void 0, void 0, function () {
60
+ var args, queryId, features, variables, response;
61
+ var _a;
62
+ return __generator(this, function (_b) {
63
+ switch (_b.label) {
64
+ case 0:
65
+ args = __assign({ tweetText: param.tweetText }, param.extraParam);
66
+ queryId = 'CreateTweet';
67
+ features = i.PostCreateTweetRequestFeaturesFromJSON(this.flag[queryId]['features']);
68
+ variables = i.PostCreateTweetRequestVariablesFromJSON(this.flag[queryId]['variables']);
69
+ return [4 /*yield*/, this.api.postCreateTweetRaw({
70
+ postCreateTweetRequest: {
71
+ queryId: queryId,
72
+ features: features,
73
+ variables: __assign(__assign({}, variables), args),
74
+ },
75
+ })];
76
+ case 1:
77
+ response = _b.sent();
78
+ _a = {
79
+ raw: { response: response.raw },
80
+ header: (0, models_1.buildHeader)(response.raw.headers)
81
+ };
82
+ return [4 /*yield*/, response.value()];
83
+ case 2: return [2 /*return*/, (_a.data = _b.sent(),
84
+ _a)];
85
+ }
86
+ });
87
+ });
88
+ };
89
+ PostApiUtils.prototype.postDeleteTweet = function (param) {
90
+ return __awaiter(this, void 0, void 0, function () {
91
+ var args, queryId, variables, response;
92
+ var _a;
93
+ return __generator(this, function (_b) {
94
+ switch (_b.label) {
95
+ case 0:
96
+ args = __assign({ tweetId: param.tweetId }, param.extraParam);
97
+ queryId = 'DeleteTweet';
98
+ variables = i.PostDeleteTweetRequestVariablesFromJSON(this.flag[queryId]['variables']);
99
+ return [4 /*yield*/, this.api.postDeleteTweetRaw({
100
+ postDeleteTweetRequest: {
101
+ queryId: queryId,
102
+ variables: __assign(__assign({}, variables), args),
103
+ },
104
+ })];
105
+ case 1:
106
+ response = _b.sent();
107
+ _a = {
108
+ raw: { response: response.raw },
109
+ header: (0, models_1.buildHeader)(response.raw.headers)
110
+ };
111
+ return [4 /*yield*/, response.value()];
112
+ case 2: return [2 /*return*/, (_a.data = _b.sent(),
113
+ _a)];
114
+ }
115
+ });
116
+ });
117
+ };
118
+ PostApiUtils.prototype.postCreateRetweet = function (param) {
119
+ return __awaiter(this, void 0, void 0, function () {
120
+ var args, queryId, variables, response;
121
+ var _a;
122
+ return __generator(this, function (_b) {
123
+ switch (_b.label) {
124
+ case 0:
125
+ args = __assign({ tweetId: param.tweetId }, param.extraParam);
126
+ queryId = 'CreateRetweet';
127
+ variables = i.PostCreateTweetRequestVariablesFromJSON(this.flag[queryId]['variables']);
128
+ return [4 /*yield*/, this.api.postCreateRetweetRaw({
129
+ postCreateRetweetRequest: {
130
+ queryId: queryId,
131
+ variables: __assign(__assign({}, variables), args),
132
+ },
133
+ })];
134
+ case 1:
135
+ response = _b.sent();
136
+ _a = {
137
+ raw: { response: response.raw },
138
+ header: (0, models_1.buildHeader)(response.raw.headers)
139
+ };
140
+ return [4 /*yield*/, response.value()];
141
+ case 2: return [2 /*return*/, (_a.data = _b.sent(),
142
+ _a)];
143
+ }
144
+ });
145
+ });
146
+ };
147
+ PostApiUtils.prototype.postDeleteRetweet = function (param) {
148
+ return __awaiter(this, void 0, void 0, function () {
149
+ var args, queryId, variables, response;
150
+ var _a;
151
+ return __generator(this, function (_b) {
152
+ switch (_b.label) {
153
+ case 0:
154
+ args = __assign({ sourceTweetId: param.sourceTweetId }, param.extraParam);
155
+ queryId = 'DeleteRetweet';
156
+ variables = i.PostDeleteRetweetRequestVariablesFromJSON(this.flag[queryId]['variables']);
157
+ return [4 /*yield*/, this.api.postDeleteRetweetRaw({
158
+ postDeleteRetweetRequest: {
159
+ queryId: queryId,
160
+ variables: __assign(__assign({}, variables), args),
161
+ },
162
+ })];
163
+ case 1:
164
+ response = _b.sent();
165
+ _a = {
166
+ raw: { response: response.raw },
167
+ header: (0, models_1.buildHeader)(response.raw.headers)
168
+ };
169
+ return [4 /*yield*/, response.value()];
170
+ case 2: return [2 /*return*/, (_a.data = _b.sent(),
171
+ _a)];
172
+ }
173
+ });
174
+ });
175
+ };
176
+ PostApiUtils.prototype.postFavoriteTweet = function (param) {
177
+ return __awaiter(this, void 0, void 0, function () {
178
+ var args, queryId, variables, response;
179
+ var _a;
180
+ return __generator(this, function (_b) {
181
+ switch (_b.label) {
182
+ case 0:
183
+ args = __assign({ tweetId: param.tweetId }, param.extraParam);
184
+ queryId = 'FavoriteTweet';
185
+ variables = i.PostDeleteTweetRequestVariablesFromJSON(this.flag[queryId]['variables']);
186
+ return [4 /*yield*/, this.api.postFavoriteTweetRaw({
187
+ postFavoriteTweetRequest: {
188
+ queryId: queryId,
189
+ variables: __assign(__assign({}, variables), args),
190
+ },
191
+ })];
192
+ case 1:
193
+ response = _b.sent();
194
+ _a = {
195
+ raw: { response: response.raw },
196
+ header: (0, models_1.buildHeader)(response.raw.headers)
197
+ };
198
+ return [4 /*yield*/, response.value()];
199
+ case 2: return [2 /*return*/, (_a.data = _b.sent(),
200
+ _a)];
201
+ }
202
+ });
203
+ });
204
+ };
205
+ PostApiUtils.prototype.postUnfavoriteTweet = function (param) {
206
+ return __awaiter(this, void 0, void 0, function () {
207
+ var args, queryId, variables, response;
208
+ var _a;
209
+ return __generator(this, function (_b) {
210
+ switch (_b.label) {
211
+ case 0:
212
+ args = __assign({ tweetId: param.tweetId }, param.extraParam);
213
+ queryId = 'UnfavoriteTweet';
214
+ variables = i.PostDeleteTweetRequestVariablesFromJSON(this.flag[queryId]['variables']);
215
+ return [4 /*yield*/, this.api.postUnfavoriteTweetRaw({
216
+ postUnfavoriteTweetRequest: {
217
+ queryId: queryId,
218
+ variables: __assign(__assign({}, variables), args),
219
+ },
220
+ })];
221
+ case 1:
222
+ response = _b.sent();
223
+ _a = {
224
+ raw: { response: response.raw },
225
+ header: (0, models_1.buildHeader)(response.raw.headers)
226
+ };
227
+ return [4 /*yield*/, response.value()];
228
+ case 2: return [2 /*return*/, (_a.data = _b.sent(),
229
+ _a)];
230
+ }
231
+ });
232
+ });
233
+ };
234
+ return PostApiUtils;
235
+ }());
236
+ exports.PostApiUtils = PostApiUtils;
237
237
  //# sourceMappingURL=postApi.js.map
@@ -1,89 +1,89 @@
1
- import * as i from 'twitter-openapi-typescript-generated';
2
- import { DefaultFlag, TweetListApiUtilsResponse } from '../types';
3
- import { RequestParam } from '../models';
4
- type GetTweetDetailParam = {
5
- focalTweetId: string;
6
- cursor?: string;
7
- controllerData?: string;
8
- extraParam?: {
9
- [key: string]: any;
10
- };
11
- };
12
- type GetHomeTimelineParam = {
13
- couser?: string;
14
- count?: number;
15
- extraParam?: {
16
- [key: string]: any;
17
- };
18
- };
19
- type GetHomeLatestTimelineParam = {
20
- cursor?: string;
21
- count?: number;
22
- extraParam?: {
23
- [key: string]: any;
24
- };
25
- };
26
- type GetListLatestTweetsTimelineParam = {
27
- listId: string;
28
- cursor?: string;
29
- count?: number;
30
- extraParam?: {
31
- [key: string]: any;
32
- };
33
- };
34
- type GetUserTweetsParam = {
35
- userId: string;
36
- cursor?: string;
37
- count?: number;
38
- extraParam?: {
39
- [key: string]: any;
40
- };
41
- };
42
- type GetUserTweetsAndRepliesParam = {
43
- userId: string;
44
- cursor?: string;
45
- count?: number;
46
- extraParam?: {
47
- [key: string]: any;
48
- };
49
- };
50
- type GetUserMediaParam = {
51
- userId: string;
52
- cursor?: string;
53
- count?: number;
54
- extraParam?: {
55
- [key: string]: any;
56
- };
57
- };
58
- type GetLikesParam = {
59
- userId: string;
60
- cursor?: string;
61
- count?: number;
62
- extraParam?: {
63
- [key: string]: any;
64
- };
65
- };
66
- type GetBookmarksParam = {
67
- cursor?: string;
68
- count?: number;
69
- extraParam?: {
70
- [key: string]: any;
71
- };
72
- };
73
- export declare class TweetApiUtils {
74
- api: i.TweetApi;
75
- flag: DefaultFlag;
76
- constructor(api: i.TweetApi, flag: DefaultFlag);
77
- request<T>(param: RequestParam<i.InstructionUnion[], T>): Promise<TweetListApiUtilsResponse>;
78
- getTweetDetail(param: GetTweetDetailParam): Promise<TweetListApiUtilsResponse>;
79
- getHomeTimeline(param?: GetHomeTimelineParam): Promise<TweetListApiUtilsResponse>;
80
- getHomeLatestTimeline(param?: GetHomeLatestTimelineParam): Promise<TweetListApiUtilsResponse>;
81
- getListLatestTweetsTimeline(param: GetListLatestTweetsTimelineParam): Promise<TweetListApiUtilsResponse>;
82
- getUserTweets(param: GetUserTweetsParam): Promise<TweetListApiUtilsResponse>;
83
- getUserTweetsAndReplies(param: GetUserTweetsAndRepliesParam): Promise<TweetListApiUtilsResponse>;
84
- getUserMedia(param: GetUserMediaParam): Promise<TweetListApiUtilsResponse>;
85
- getLikes(param: GetLikesParam): Promise<TweetListApiUtilsResponse>;
86
- getBookmarks(param?: GetBookmarksParam): Promise<TweetListApiUtilsResponse>;
87
- }
88
- export {};
1
+ import * as i from 'twitter-openapi-typescript-generated';
2
+ import { DefaultFlag, TweetListApiUtilsResponse } from '../types';
3
+ import { RequestParam } from '../models';
4
+ type GetTweetDetailParam = {
5
+ focalTweetId: string;
6
+ cursor?: string;
7
+ controllerData?: string;
8
+ extraParam?: {
9
+ [key: string]: any;
10
+ };
11
+ };
12
+ type GetHomeTimelineParam = {
13
+ couser?: string;
14
+ count?: number;
15
+ extraParam?: {
16
+ [key: string]: any;
17
+ };
18
+ };
19
+ type GetHomeLatestTimelineParam = {
20
+ cursor?: string;
21
+ count?: number;
22
+ extraParam?: {
23
+ [key: string]: any;
24
+ };
25
+ };
26
+ type GetListLatestTweetsTimelineParam = {
27
+ listId: string;
28
+ cursor?: string;
29
+ count?: number;
30
+ extraParam?: {
31
+ [key: string]: any;
32
+ };
33
+ };
34
+ type GetUserTweetsParam = {
35
+ userId: string;
36
+ cursor?: string;
37
+ count?: number;
38
+ extraParam?: {
39
+ [key: string]: any;
40
+ };
41
+ };
42
+ type GetUserTweetsAndRepliesParam = {
43
+ userId: string;
44
+ cursor?: string;
45
+ count?: number;
46
+ extraParam?: {
47
+ [key: string]: any;
48
+ };
49
+ };
50
+ type GetUserMediaParam = {
51
+ userId: string;
52
+ cursor?: string;
53
+ count?: number;
54
+ extraParam?: {
55
+ [key: string]: any;
56
+ };
57
+ };
58
+ type GetLikesParam = {
59
+ userId: string;
60
+ cursor?: string;
61
+ count?: number;
62
+ extraParam?: {
63
+ [key: string]: any;
64
+ };
65
+ };
66
+ type GetBookmarksParam = {
67
+ cursor?: string;
68
+ count?: number;
69
+ extraParam?: {
70
+ [key: string]: any;
71
+ };
72
+ };
73
+ export declare class TweetApiUtils {
74
+ api: i.TweetApi;
75
+ flag: DefaultFlag;
76
+ constructor(api: i.TweetApi, flag: DefaultFlag);
77
+ request<T>(param: RequestParam<i.InstructionUnion[], T>): Promise<TweetListApiUtilsResponse>;
78
+ getTweetDetail(param: GetTweetDetailParam): Promise<TweetListApiUtilsResponse>;
79
+ getHomeTimeline(param?: GetHomeTimelineParam): Promise<TweetListApiUtilsResponse>;
80
+ getHomeLatestTimeline(param?: GetHomeLatestTimelineParam): Promise<TweetListApiUtilsResponse>;
81
+ getListLatestTweetsTimeline(param: GetListLatestTweetsTimelineParam): Promise<TweetListApiUtilsResponse>;
82
+ getUserTweets(param: GetUserTweetsParam): Promise<TweetListApiUtilsResponse>;
83
+ getUserTweetsAndReplies(param: GetUserTweetsAndRepliesParam): Promise<TweetListApiUtilsResponse>;
84
+ getUserMedia(param: GetUserMediaParam): Promise<TweetListApiUtilsResponse>;
85
+ getLikes(param: GetLikesParam): Promise<TweetListApiUtilsResponse>;
86
+ getBookmarks(param?: GetBookmarksParam): Promise<TweetListApiUtilsResponse>;
87
+ }
88
+ export {};
89
89
  //# sourceMappingURL=tweetApi.d.ts.map