twitter-openapi-typescript 0.0.5 → 0.0.7
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/README.md +38 -17
- package/dist/src/api.d.ts +41 -33
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/api.js +239 -151
- package/dist/src/api.js.map +1 -1
- package/dist/src/apis/defaultApi.d.ts +15 -17
- package/dist/src/apis/defaultApi.d.ts.map +1 -1
- package/dist/src/apis/defaultApi.js +106 -106
- package/dist/src/apis/defaultApi.js.map +1 -1
- package/dist/src/apis/index.d.ts +9 -9
- package/dist/src/apis/index.js +21 -21
- package/dist/src/apis/initialStateApi.d.ts +2 -2
- package/dist/src/apis/initialStateApi.js +9 -9
- package/dist/src/apis/postApi.d.ts +51 -51
- package/dist/src/apis/postApi.d.ts.map +1 -1
- package/dist/src/apis/postApi.js +236 -236
- package/dist/src/apis/postApi.js.map +1 -1
- package/dist/src/apis/tweetApi.d.ts +87 -88
- package/dist/src/apis/tweetApi.d.ts.map +1 -1
- package/dist/src/apis/tweetApi.js +277 -277
- package/dist/src/apis/tweetApi.js.map +1 -1
- package/dist/src/apis/userApi.d.ts +16 -17
- package/dist/src/apis/userApi.d.ts.map +1 -1
- package/dist/src/apis/userApi.js +101 -101
- package/dist/src/apis/userApi.js.map +1 -1
- package/dist/src/apis/userListApi.d.ts +27 -28
- package/dist/src/apis/userListApi.d.ts.map +1 -1
- package/dist/src/apis/userListApi.js +135 -135
- package/dist/src/apis/userListApi.js.map +1 -1
- package/dist/src/apis/v11GetApi.d.ts +7 -7
- package/dist/src/apis/v11GetApi.d.ts.map +1 -1
- package/dist/src/apis/v11GetApi.js +11 -11
- package/dist/src/apis/v11PostApi.d.ts +22 -22
- package/dist/src/apis/v11PostApi.d.ts.map +1 -1
- package/dist/src/apis/v11PostApi.js +93 -93
- package/dist/src/apis/v11PostApi.js.map +1 -1
- package/dist/src/apis/v20GetApi.d.ts +7 -7
- package/dist/src/apis/v20GetApi.d.ts.map +1 -1
- package/dist/src/apis/v20GetApi.js +11 -11
- package/dist/src/index.d.ts +4 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +20 -20
- package/dist/src/index.js.map +1 -1
- package/dist/src/{types → models}/flag.d.ts +5 -5
- package/dist/src/models/flag.d.ts.map +1 -0
- package/dist/src/{types → models}/flag.js +2 -2
- package/dist/src/{types → models}/flag.js.map +1 -1
- package/dist/src/{types → models}/header.d.ts +14 -14
- package/dist/src/models/header.d.ts.map +1 -0
- package/dist/src/models/{type.js → header.js} +3 -3
- package/dist/src/{types → models}/header.js.map +1 -1
- package/dist/src/models/index.d.ts +8 -2
- package/dist/src/models/index.d.ts.map +1 -1
- package/dist/src/models/index.js +24 -18
- package/dist/src/models/index.js.map +1 -1
- package/dist/src/{types → models}/response.d.ts +9 -9
- package/dist/src/models/response.d.ts.map +1 -0
- package/dist/src/{types/header.js → models/response.js} +3 -3
- package/dist/src/{types → models}/response.js.map +1 -1
- package/dist/src/{types → models}/timeline.d.ts +10 -10
- package/dist/src/models/timeline.d.ts.map +1 -0
- package/dist/src/models/timeline.js +3 -0
- package/dist/src/{types → models}/timeline.js.map +1 -1
- package/dist/src/{types → models}/tweet.d.ts +17 -17
- package/dist/src/models/tweet.d.ts.map +1 -0
- package/dist/src/{types → models}/tweet.js +2 -2
- package/dist/src/{types → models}/tweet.js.map +1 -1
- package/dist/src/{types → models}/user.d.ts +10 -10
- package/dist/src/models/user.d.ts.map +1 -0
- package/dist/src/{types → models}/user.js +2 -2
- package/dist/src/{types → models}/user.js.map +1 -1
- package/dist/src/{types → models}/user_list.d.ts +12 -12
- package/dist/src/models/user_list.d.ts.map +1 -0
- package/dist/src/models/user_list.js +3 -0
- package/dist/src/{types → models}/user_list.js.map +1 -1
- package/dist/src/models/{type.d.ts → utils.d.ts} +16 -16
- package/dist/src/models/utils.d.ts.map +1 -0
- package/dist/src/models/utils.js +3 -0
- package/dist/src/models/utils.js.map +1 -0
- package/dist/src/{models → utils}/api.d.ts +17 -17
- package/dist/src/utils/api.d.ts.map +1 -0
- package/dist/src/{models → utils}/api.js +130 -130
- package/dist/src/utils/api.js.map +1 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/{types → utils}/index.js +17 -23
- package/dist/src/utils/index.js.map +1 -0
- package/package.json +4 -4
- package/src/api.ts +92 -36
- package/src/apis/defaultApi.ts +2 -3
- package/src/apis/postApi.ts +3 -3
- package/src/apis/tweetApi.ts +2 -2
- package/src/apis/userApi.ts +2 -2
- package/src/apis/userListApi.ts +2 -9
- package/src/apis/v11GetApi.ts +1 -1
- package/src/apis/v11PostApi.ts +2 -2
- package/src/apis/v20GetApi.ts +1 -1
- package/src/index.ts +1 -1
- package/src/models/index.ts +8 -2
- package/src/{types → models}/response.ts +1 -1
- package/src/{types → models}/tweet.ts +1 -1
- package/src/{types → models}/user.ts +1 -1
- package/src/{types → models}/user_list.ts +1 -1
- package/src/{models → utils}/api.ts +1 -1
- package/src/utils/index.ts +1 -0
- package/test/api/defaultApi.test.ts +0 -1
- package/test/init.ts +2 -2
- package/test/util.ts +1 -1
- package/dist/src/models/api.d.ts.map +0 -1
- package/dist/src/models/api.js.map +0 -1
- package/dist/src/models/type.d.ts.map +0 -1
- package/dist/src/models/type.js.map +0 -1
- package/dist/src/types/flag.d.ts.map +0 -1
- package/dist/src/types/header.d.ts.map +0 -1
- package/dist/src/types/index.d.ts +0 -8
- package/dist/src/types/index.d.ts.map +0 -1
- package/dist/src/types/index.js.map +0 -1
- package/dist/src/types/response.d.ts.map +0 -1
- package/dist/src/types/response.js +0 -3
- package/dist/src/types/timeline.d.ts.map +0 -1
- package/dist/src/types/timeline.js +0 -3
- package/dist/src/types/tweet.d.ts.map +0 -1
- package/dist/src/types/user.d.ts.map +0 -1
- package/dist/src/types/user_list.d.ts.map +0 -1
- package/dist/src/types/user_list.js +0 -3
- package/src/types/index.ts +0 -7
- /package/src/{types → models}/flag.ts +0 -0
- /package/src/{types → models}/header.ts +0 -0
- /package/src/{types → models}/timeline.ts +0 -0
- /package/src/models/{type.ts → utils.ts} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as i from 'twitter-openapi-typescript-generated';
|
|
2
|
-
import { DefaultFlag, TwitterApiUtilsResponse } from '../
|
|
3
|
-
type PostCreateFriendshipsParam = {
|
|
4
|
-
userId: string;
|
|
5
|
-
extraParam?: {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
type PostDestroyFriendshipsParam = {
|
|
10
|
-
userId: string;
|
|
11
|
-
extraParam?: {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export declare class V11PostApiUtils {
|
|
16
|
-
api: i.V11PostApi;
|
|
17
|
-
flag: DefaultFlag;
|
|
18
|
-
constructor(api: i.V11PostApi, flag: DefaultFlag);
|
|
19
|
-
postCreateFriendships(param: PostCreateFriendshipsParam): Promise<TwitterApiUtilsResponse<undefined>>;
|
|
20
|
-
postDestroyFriendships(param: PostDestroyFriendshipsParam): Promise<TwitterApiUtilsResponse<undefined>>;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
1
|
+
import * as i from 'twitter-openapi-typescript-generated';
|
|
2
|
+
import { DefaultFlag, TwitterApiUtilsResponse } from '../models';
|
|
3
|
+
type PostCreateFriendshipsParam = {
|
|
4
|
+
userId: string;
|
|
5
|
+
extraParam?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
type PostDestroyFriendshipsParam = {
|
|
10
|
+
userId: string;
|
|
11
|
+
extraParam?: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare class V11PostApiUtils {
|
|
16
|
+
api: i.V11PostApi;
|
|
17
|
+
flag: DefaultFlag;
|
|
18
|
+
constructor(api: i.V11PostApi, flag: DefaultFlag);
|
|
19
|
+
postCreateFriendships(param: PostCreateFriendshipsParam): Promise<TwitterApiUtilsResponse<undefined>>;
|
|
20
|
+
postDestroyFriendships(param: PostDestroyFriendshipsParam): Promise<TwitterApiUtilsResponse<undefined>>;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
23
23
|
//# sourceMappingURL=v11PostApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v11PostApi.d.ts","sourceRoot":"","sources":["../../../src/apis/v11PostApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,sCAAsC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"v11PostApi.d.ts","sourceRoot":"","sources":["../../../src/apis/v11PostApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,sCAAsC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAGhE,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACrC,CAAC;AAEF,KAAK,2BAA2B,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACrC,CAAC;AAEF,qBAAa,eAAe;IAC1B,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC;gBAEN,GAAG,EAAE,CAAC,CAAC,UAAU,EAAE,IAAI,EAAE,WAAW;IAK1C,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAyBrG,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,GAAG,OAAO,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;CAwB9G"}
|
|
@@ -1,94 +1,94 @@
|
|
|
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.V11PostApiUtils = void 0;
|
|
51
|
-
var
|
|
52
|
-
var V11PostApiUtils = /** @class */ (function () {
|
|
53
|
-
function V11PostApiUtils(api, flag) {
|
|
54
|
-
this.api = api;
|
|
55
|
-
this.flag = flag;
|
|
56
|
-
}
|
|
57
|
-
V11PostApiUtils.prototype.postCreateFriendships = function (param) {
|
|
58
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
59
|
-
var response;
|
|
60
|
-
return __generator(this, function (_a) {
|
|
61
|
-
switch (_a.label) {
|
|
62
|
-
case 0: return [4 /*yield*/, this.api.postCreateFriendshipsRaw(__assign({ includeBlockedBy: 1, includeBlocking: 1, includeCanDm: 1, includeCanMediaTag: 1, includeExtHasNftAvatar: 1, includeExtIsBlueVerified: 1, includeExtProfileImageShape: 1, includeExtVerifiedType: 1, includeFollowedBy: 1, includeMuteEdge: 1, includeProfileInterstitialType: 1, includeWantRetweets: 1, skipStatus: 1, userId: param.userId }, param.extraParam))];
|
|
63
|
-
case 1:
|
|
64
|
-
response = _a.sent();
|
|
65
|
-
return [2 /*return*/, {
|
|
66
|
-
raw: { response: response.raw },
|
|
67
|
-
header: (0,
|
|
68
|
-
data: undefined,
|
|
69
|
-
}];
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
V11PostApiUtils.prototype.postDestroyFriendships = function (param) {
|
|
75
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
76
|
-
var response;
|
|
77
|
-
return __generator(this, function (_a) {
|
|
78
|
-
switch (_a.label) {
|
|
79
|
-
case 0: return [4 /*yield*/, this.api.postDestroyFriendshipsRaw(__assign({ includeBlockedBy: 0, includeBlocking: 0, includeCanDm: 0, includeCanMediaTag: 0, includeExtHasNftAvatar: 0, includeExtIsBlueVerified: 0, includeExtProfileImageShape: 0, includeExtVerifiedType: 0, includeFollowedBy: 0, includeMuteEdge: 0, includeProfileInterstitialType: 0, includeWantRetweets: 0, skipStatus: 0, userId: param.userId }, param.extraParam))];
|
|
80
|
-
case 1:
|
|
81
|
-
response = _a.sent();
|
|
82
|
-
return [2 /*return*/, {
|
|
83
|
-
raw: { response: response.raw },
|
|
84
|
-
header: (0,
|
|
85
|
-
data: undefined,
|
|
86
|
-
}];
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
return V11PostApiUtils;
|
|
92
|
-
}());
|
|
93
|
-
exports.V11PostApiUtils = V11PostApiUtils;
|
|
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.V11PostApiUtils = void 0;
|
|
51
|
+
var utils_1 = require("../utils");
|
|
52
|
+
var V11PostApiUtils = /** @class */ (function () {
|
|
53
|
+
function V11PostApiUtils(api, flag) {
|
|
54
|
+
this.api = api;
|
|
55
|
+
this.flag = flag;
|
|
56
|
+
}
|
|
57
|
+
V11PostApiUtils.prototype.postCreateFriendships = function (param) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
59
|
+
var response;
|
|
60
|
+
return __generator(this, function (_a) {
|
|
61
|
+
switch (_a.label) {
|
|
62
|
+
case 0: return [4 /*yield*/, this.api.postCreateFriendshipsRaw(__assign({ includeBlockedBy: 1, includeBlocking: 1, includeCanDm: 1, includeCanMediaTag: 1, includeExtHasNftAvatar: 1, includeExtIsBlueVerified: 1, includeExtProfileImageShape: 1, includeExtVerifiedType: 1, includeFollowedBy: 1, includeMuteEdge: 1, includeProfileInterstitialType: 1, includeWantRetweets: 1, skipStatus: 1, userId: param.userId }, param.extraParam))];
|
|
63
|
+
case 1:
|
|
64
|
+
response = _a.sent();
|
|
65
|
+
return [2 /*return*/, {
|
|
66
|
+
raw: { response: response.raw },
|
|
67
|
+
header: (0, utils_1.buildHeader)(response.raw.headers),
|
|
68
|
+
data: undefined,
|
|
69
|
+
}];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
V11PostApiUtils.prototype.postDestroyFriendships = function (param) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
76
|
+
var response;
|
|
77
|
+
return __generator(this, function (_a) {
|
|
78
|
+
switch (_a.label) {
|
|
79
|
+
case 0: return [4 /*yield*/, this.api.postDestroyFriendshipsRaw(__assign({ includeBlockedBy: 0, includeBlocking: 0, includeCanDm: 0, includeCanMediaTag: 0, includeExtHasNftAvatar: 0, includeExtIsBlueVerified: 0, includeExtProfileImageShape: 0, includeExtVerifiedType: 0, includeFollowedBy: 0, includeMuteEdge: 0, includeProfileInterstitialType: 0, includeWantRetweets: 0, skipStatus: 0, userId: param.userId }, param.extraParam))];
|
|
80
|
+
case 1:
|
|
81
|
+
response = _a.sent();
|
|
82
|
+
return [2 /*return*/, {
|
|
83
|
+
raw: { response: response.raw },
|
|
84
|
+
header: (0, utils_1.buildHeader)(response.raw.headers),
|
|
85
|
+
data: undefined,
|
|
86
|
+
}];
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
return V11PostApiUtils;
|
|
92
|
+
}());
|
|
93
|
+
exports.V11PostApiUtils = V11PostApiUtils;
|
|
94
94
|
//# sourceMappingURL=v11PostApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v11PostApi.js","sourceRoot":"","sources":["../../../src/apis/v11PostApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,
|
|
1
|
+
{"version":3,"file":"v11PostApi.js","sourceRoot":"","sources":["../../../src/apis/v11PostApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,iCAAsC;AAYtC;IAIE,yBAAY,GAAiB,EAAE,IAAiB;QAC9C,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEK,+CAAqB,GAA3B,UAA4B,KAAiC;;;;;4BAC1C,qBAAM,IAAI,CAAC,GAAG,CAAC,wBAAwB,YACtD,gBAAgB,EAAE,CAAC,EACnB,eAAe,EAAE,CAAC,EAClB,YAAY,EAAE,CAAC,EACf,kBAAkB,EAAE,CAAC,EACrB,sBAAsB,EAAE,CAAC,EACzB,wBAAwB,EAAE,CAAC,EAC3B,2BAA2B,EAAE,CAAC,EAC9B,sBAAsB,EAAE,CAAC,EACzB,iBAAiB,EAAE,CAAC,EACpB,eAAe,EAAE,CAAC,EAClB,8BAA8B,EAAE,CAAC,EACjC,mBAAmB,EAAE,CAAC,EACtB,UAAU,EAAE,CAAC,EACb,MAAM,EAAE,KAAK,CAAC,MAAM,IACjB,KAAK,CAAC,UAAU,EACnB,EAAA;;wBAhBI,QAAQ,GAAG,SAgBf;wBACF,sBAAO;gCACL,GAAG,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE;gCAC/B,MAAM,EAAE,IAAA,mBAAW,EAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC;gCACzC,IAAI,EAAE,SAAS;6BAChB,EAAC;;;;KACH;IAEK,gDAAsB,GAA5B,UAA6B,KAAkC;;;;;4BAC5C,qBAAM,IAAI,CAAC,GAAG,CAAC,yBAAyB,YACvD,gBAAgB,EAAE,CAAC,EACnB,eAAe,EAAE,CAAC,EAClB,YAAY,EAAE,CAAC,EACf,kBAAkB,EAAE,CAAC,EACrB,sBAAsB,EAAE,CAAC,EACzB,wBAAwB,EAAE,CAAC,EAC3B,2BAA2B,EAAE,CAAC,EAC9B,sBAAsB,EAAE,CAAC,EACzB,iBAAiB,EAAE,CAAC,EACpB,eAAe,EAAE,CAAC,EAClB,8BAA8B,EAAE,CAAC,EACjC,mBAAmB,EAAE,CAAC,EACtB,UAAU,EAAE,CAAC,EACb,MAAM,EAAE,KAAK,CAAC,MAAM,IACjB,KAAK,CAAC,UAAU,EACnB,EAAA;;wBAhBI,QAAQ,GAAG,SAgBf;wBACF,sBAAO;gCACL,GAAG,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE;gCAC/B,MAAM,EAAE,IAAA,mBAAW,EAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC;gCACzC,IAAI,EAAE,SAAS;6BAChB,EAAC;;;;KACH;IACH,sBAAC;AAAD,CAAC,AA1DD,IA0DC;AA1DY,0CAAe"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as i from 'twitter-openapi-typescript-generated';
|
|
2
|
-
import { DefaultFlag } from '../
|
|
3
|
-
export declare class V20GetApiUtils {
|
|
4
|
-
api: i.V20GetApi;
|
|
5
|
-
flag: DefaultFlag;
|
|
6
|
-
constructor(api: i.V20GetApi, flag: DefaultFlag);
|
|
7
|
-
}
|
|
1
|
+
import * as i from 'twitter-openapi-typescript-generated';
|
|
2
|
+
import { DefaultFlag } from '../models';
|
|
3
|
+
export declare class V20GetApiUtils {
|
|
4
|
+
api: i.V20GetApi;
|
|
5
|
+
flag: DefaultFlag;
|
|
6
|
+
constructor(api: i.V20GetApi, flag: DefaultFlag);
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=v20GetApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v20GetApi.d.ts","sourceRoot":"","sources":["../../../src/apis/v20GetApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,sCAAsC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"v20GetApi.d.ts","sourceRoot":"","sources":["../../../src/apis/v20GetApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,sCAAsC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,qBAAa,cAAc;IACzB,GAAG,EAAE,CAAC,CAAC,SAAS,CAAC;IACjB,IAAI,EAAE,WAAW,CAAC;gBAEN,GAAG,EAAE,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,WAAW;CAIhD"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.V20GetApiUtils = void 0;
|
|
4
|
-
var V20GetApiUtils = /** @class */ (function () {
|
|
5
|
-
function V20GetApiUtils(api, flag) {
|
|
6
|
-
this.api = api;
|
|
7
|
-
this.flag = flag;
|
|
8
|
-
}
|
|
9
|
-
return V20GetApiUtils;
|
|
10
|
-
}());
|
|
11
|
-
exports.V20GetApiUtils = V20GetApiUtils;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.V20GetApiUtils = void 0;
|
|
4
|
+
var V20GetApiUtils = /** @class */ (function () {
|
|
5
|
+
function V20GetApiUtils(api, flag) {
|
|
6
|
+
this.api = api;
|
|
7
|
+
this.flag = flag;
|
|
8
|
+
}
|
|
9
|
+
return V20GetApiUtils;
|
|
10
|
+
}());
|
|
11
|
+
exports.V20GetApiUtils = V20GetApiUtils;
|
|
12
12
|
//# sourceMappingURL=v20GetApi.js.map
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './apis';
|
|
2
|
-
export * from './models';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './api';
|
|
1
|
+
export * from './apis';
|
|
2
|
+
export * from './models';
|
|
3
|
+
export * from './models';
|
|
4
|
+
export * from './api';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./apis"), exports);
|
|
18
|
-
__exportStar(require("./models"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./api"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./apis"), exports);
|
|
18
|
+
__exportStar(require("./models"), exports);
|
|
19
|
+
__exportStar(require("./models"), exports);
|
|
20
|
+
__exportStar(require("./api"), exports);
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,wCAAsB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type DefaultFlag = {
|
|
2
|
-
[key: string]: {
|
|
3
|
-
[key: string]: any;
|
|
4
|
-
};
|
|
5
|
-
};
|
|
1
|
+
export type DefaultFlag = {
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
6
|
//# sourceMappingURL=flag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flag.d.ts","sourceRoot":"","sources":["../../../src/models/flag.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=flag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flag.js","sourceRoot":"","sources":["../../../src/
|
|
1
|
+
{"version":3,"file":"flag.js","sourceRoot":"","sources":["../../../src/models/flag.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export type ApiUtilsHeader = {
|
|
2
|
-
raw: Headers;
|
|
3
|
-
connectionHash: string | null;
|
|
4
|
-
contentTypeOptions: string | null;
|
|
5
|
-
frameOptions: string | null;
|
|
6
|
-
rateLimitLimit: number;
|
|
7
|
-
rateLimitRemaining: number;
|
|
8
|
-
rateLimitReset: number;
|
|
9
|
-
responseTime: number;
|
|
10
|
-
tfePreserveBody: boolean;
|
|
11
|
-
transactionId: string | null;
|
|
12
|
-
twitterResponseTags: string | null;
|
|
13
|
-
xssProtection: number;
|
|
14
|
-
};
|
|
1
|
+
export type ApiUtilsHeader = {
|
|
2
|
+
raw: Headers;
|
|
3
|
+
connectionHash: string | null;
|
|
4
|
+
contentTypeOptions: string | null;
|
|
5
|
+
frameOptions: string | null;
|
|
6
|
+
rateLimitLimit: number;
|
|
7
|
+
rateLimitRemaining: number;
|
|
8
|
+
rateLimitReset: number;
|
|
9
|
+
responseTime: number;
|
|
10
|
+
tfePreserveBody: boolean;
|
|
11
|
+
transactionId: string | null;
|
|
12
|
+
twitterResponseTags: string | null;
|
|
13
|
+
xssProtection: number;
|
|
14
|
+
};
|
|
15
15
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/models/header.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,OAAO,CAAC;IACb,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/
|
|
1
|
+
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/models/header.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './flag';
|
|
2
|
+
export * from './header';
|
|
3
|
+
export * from './timeline';
|
|
4
|
+
export * from './tweet';
|
|
5
|
+
export * from './user_list';
|
|
6
|
+
export * from './user';
|
|
7
|
+
export * from './response';
|
|
8
|
+
export * from './utils';
|
|
3
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
package/dist/src/models/index.js
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./flag"), exports);
|
|
18
|
+
__exportStar(require("./header"), exports);
|
|
19
|
+
__exportStar(require("./timeline"), exports);
|
|
20
|
+
__exportStar(require("./tweet"), exports);
|
|
21
|
+
__exportStar(require("./user_list"), exports);
|
|
22
|
+
__exportStar(require("./user"), exports);
|
|
23
|
+
__exportStar(require("./response"), exports);
|
|
24
|
+
__exportStar(require("./utils"), exports);
|
|
19
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,yCAAuB;AACvB,6CAA2B;AAC3B,0CAAwB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ApiUtilsHeader } from './';
|
|
2
|
-
export type TwitterApiUtilsResponse<T> = {
|
|
3
|
-
raw: TwitterApiUtilsRaw;
|
|
4
|
-
header: ApiUtilsHeader;
|
|
5
|
-
data: T;
|
|
6
|
-
};
|
|
7
|
-
export type TwitterApiUtilsRaw = {
|
|
8
|
-
response: Response;
|
|
9
|
-
};
|
|
1
|
+
import { ApiUtilsHeader } from './';
|
|
2
|
+
export type TwitterApiUtilsResponse<T> = {
|
|
3
|
+
raw: TwitterApiUtilsRaw;
|
|
4
|
+
header: ApiUtilsHeader;
|
|
5
|
+
data: T;
|
|
6
|
+
};
|
|
7
|
+
export type TwitterApiUtilsRaw = {
|
|
8
|
+
response: Response;
|
|
9
|
+
};
|
|
10
10
|
//# sourceMappingURL=response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../src/models/response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI;IACvC,GAAG,EAAE,kBAAkB,CAAC;IACxB,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=response.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/models/response.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as i from 'twitter-openapi-typescript-generated';
|
|
2
|
-
export type CursorApiUtilsResponse = {
|
|
3
|
-
bottom?: i.TimelineTimelineCursor;
|
|
4
|
-
top?: i.TimelineTimelineCursor;
|
|
5
|
-
};
|
|
6
|
-
export type ApiUtilsRaw = {
|
|
7
|
-
response: Response;
|
|
8
|
-
instruction: i.InstructionUnion[];
|
|
9
|
-
entry: i.TimelineAddEntry[];
|
|
10
|
-
};
|
|
1
|
+
import * as i from 'twitter-openapi-typescript-generated';
|
|
2
|
+
export type CursorApiUtilsResponse = {
|
|
3
|
+
bottom?: i.TimelineTimelineCursor;
|
|
4
|
+
top?: i.TimelineTimelineCursor;
|
|
5
|
+
};
|
|
6
|
+
export type ApiUtilsRaw = {
|
|
7
|
+
response: Response;
|
|
8
|
+
instruction: i.InstructionUnion[];
|
|
9
|
+
entry: i.TimelineAddEntry[];
|
|
10
|
+
};
|
|
11
11
|
//# sourceMappingURL=timeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.d.ts","sourceRoot":"","sources":["../../../src/models/timeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,sCAAsC,CAAC;AAE1D,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,CAAC,EAAE,CAAC,CAAC,sBAAsB,CAAC;IAClC,GAAG,CAAC,EAAE,CAAC,CAAC,sBAAsB,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAClC,KAAK,EAAE,CAAC,CAAC,gBAAgB,EAAE,CAAC;CAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline.js","sourceRoot":"","sources":["../../../src/
|
|
1
|
+
{"version":3,"file":"timeline.js","sourceRoot":"","sources":["../../../src/models/timeline.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as i from 'twitter-openapi-typescript-generated';
|
|
2
|
-
import { CursorApiUtilsResponse, ApiUtilsRaw, ApiUtilsHeader } from './';
|
|
3
|
-
export type TweetListApiUtilsResponse = {
|
|
4
|
-
raw: ApiUtilsRaw;
|
|
5
|
-
header: ApiUtilsHeader;
|
|
6
|
-
cursor: CursorApiUtilsResponse;
|
|
7
|
-
data: TweetApiUtilsData[];
|
|
8
|
-
};
|
|
9
|
-
export type TweetApiUtilsData = {
|
|
10
|
-
raw: i.ItemResult;
|
|
11
|
-
tweet: i.Tweet;
|
|
12
|
-
user: i.User;
|
|
13
|
-
reply: TweetApiUtilsData[];
|
|
14
|
-
quoted?: TweetApiUtilsData;
|
|
15
|
-
retweeted?: TweetApiUtilsData;
|
|
16
|
-
promotedMetadata?: any;
|
|
17
|
-
};
|
|
1
|
+
import * as i from 'twitter-openapi-typescript-generated';
|
|
2
|
+
import { CursorApiUtilsResponse, ApiUtilsRaw, ApiUtilsHeader } from './';
|
|
3
|
+
export type TweetListApiUtilsResponse = {
|
|
4
|
+
raw: ApiUtilsRaw;
|
|
5
|
+
header: ApiUtilsHeader;
|
|
6
|
+
cursor: CursorApiUtilsResponse;
|
|
7
|
+
data: TweetApiUtilsData[];
|
|
8
|
+
};
|
|
9
|
+
export type TweetApiUtilsData = {
|
|
10
|
+
raw: i.ItemResult;
|
|
11
|
+
tweet: i.Tweet;
|
|
12
|
+
user: i.User;
|
|
13
|
+
reply: TweetApiUtilsData[];
|
|
14
|
+
quoted?: TweetApiUtilsData;
|
|
15
|
+
retweeted?: TweetApiUtilsData;
|
|
16
|
+
promotedMetadata?: any;
|
|
17
|
+
};
|
|
18
18
|
//# sourceMappingURL=tweet.d.ts.map
|