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,107 +1,107 @@
|
|
|
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.DefaultApiUtils = void 0;
|
|
51
|
-
var
|
|
52
|
-
var DefaultApiUtils = /** @class */ (function () {
|
|
53
|
-
function DefaultApiUtils(api, flag) {
|
|
54
|
-
this.api = api;
|
|
55
|
-
this.flag = flag;
|
|
56
|
-
}
|
|
57
|
-
DefaultApiUtils.prototype.request = function (param) {
|
|
58
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
59
|
-
var apiFn, response, data, _a, _b;
|
|
60
|
-
return __generator(this, function (_c) {
|
|
61
|
-
switch (_c.label) {
|
|
62
|
-
case 0:
|
|
63
|
-
apiFn = param.apiFn.bind(this.api);
|
|
64
|
-
return [4 /*yield*/, apiFn({
|
|
65
|
-
queryId: this.flag[param.key]['queryId'],
|
|
66
|
-
variables: JSON.stringify(__assign(__assign({}, this.flag[param.key]['variables']), param)),
|
|
67
|
-
features: JSON.stringify(this.flag[param.key]['features']),
|
|
68
|
-
})];
|
|
69
|
-
case 1:
|
|
70
|
-
response = _c.sent();
|
|
71
|
-
_b = (_a = param).convertFn;
|
|
72
|
-
return [4 /*yield*/, response.value()];
|
|
73
|
-
case 2:
|
|
74
|
-
data = _b.apply(_a, [_c.sent()]);
|
|
75
|
-
return [2 /*return*/, {
|
|
76
|
-
raw: { response: response.raw },
|
|
77
|
-
header: (0,
|
|
78
|
-
data: data,
|
|
79
|
-
}];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
DefaultApiUtils.prototype.getProfileSpotlightsQuery = function (param) {
|
|
85
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
86
|
-
var args, response;
|
|
87
|
-
return __generator(this, function (_a) {
|
|
88
|
-
switch (_a.label) {
|
|
89
|
-
case 0:
|
|
90
|
-
args = __assign({ screenName: param.screenName }, param.extraParam);
|
|
91
|
-
return [4 /*yield*/, this.request({
|
|
92
|
-
key: 'ProfileSpotlightsQuery',
|
|
93
|
-
apiFn: this.api.getProfileSpotlightsQueryRaw,
|
|
94
|
-
convertFn: function (value) { return value.data.userResultByScreenName; },
|
|
95
|
-
param: args,
|
|
96
|
-
})];
|
|
97
|
-
case 1:
|
|
98
|
-
response = _a.sent();
|
|
99
|
-
return [2 /*return*/, response];
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
|
-
return DefaultApiUtils;
|
|
105
|
-
}());
|
|
106
|
-
exports.DefaultApiUtils = DefaultApiUtils;
|
|
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.DefaultApiUtils = void 0;
|
|
51
|
+
var utils_1 = require("../utils");
|
|
52
|
+
var DefaultApiUtils = /** @class */ (function () {
|
|
53
|
+
function DefaultApiUtils(api, flag) {
|
|
54
|
+
this.api = api;
|
|
55
|
+
this.flag = flag;
|
|
56
|
+
}
|
|
57
|
+
DefaultApiUtils.prototype.request = function (param) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
59
|
+
var apiFn, response, data, _a, _b;
|
|
60
|
+
return __generator(this, function (_c) {
|
|
61
|
+
switch (_c.label) {
|
|
62
|
+
case 0:
|
|
63
|
+
apiFn = param.apiFn.bind(this.api);
|
|
64
|
+
return [4 /*yield*/, apiFn({
|
|
65
|
+
queryId: this.flag[param.key]['queryId'],
|
|
66
|
+
variables: JSON.stringify(__assign(__assign({}, this.flag[param.key]['variables']), param)),
|
|
67
|
+
features: JSON.stringify(this.flag[param.key]['features']),
|
|
68
|
+
})];
|
|
69
|
+
case 1:
|
|
70
|
+
response = _c.sent();
|
|
71
|
+
_b = (_a = param).convertFn;
|
|
72
|
+
return [4 /*yield*/, response.value()];
|
|
73
|
+
case 2:
|
|
74
|
+
data = _b.apply(_a, [_c.sent()]);
|
|
75
|
+
return [2 /*return*/, {
|
|
76
|
+
raw: { response: response.raw },
|
|
77
|
+
header: (0, utils_1.buildHeader)(response.raw.headers),
|
|
78
|
+
data: data,
|
|
79
|
+
}];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
DefaultApiUtils.prototype.getProfileSpotlightsQuery = function (param) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
86
|
+
var args, response;
|
|
87
|
+
return __generator(this, function (_a) {
|
|
88
|
+
switch (_a.label) {
|
|
89
|
+
case 0:
|
|
90
|
+
args = __assign({ screenName: param.screenName }, param.extraParam);
|
|
91
|
+
return [4 /*yield*/, this.request({
|
|
92
|
+
key: 'ProfileSpotlightsQuery',
|
|
93
|
+
apiFn: this.api.getProfileSpotlightsQueryRaw,
|
|
94
|
+
convertFn: function (value) { return value.data.userResultByScreenName; },
|
|
95
|
+
param: args,
|
|
96
|
+
})];
|
|
97
|
+
case 1:
|
|
98
|
+
response = _a.sent();
|
|
99
|
+
return [2 /*return*/, response];
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
return DefaultApiUtils;
|
|
105
|
+
}());
|
|
106
|
+
exports.DefaultApiUtils = DefaultApiUtils;
|
|
107
107
|
//# sourceMappingURL=defaultApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultApi.js","sourceRoot":"","sources":["../../../src/apis/defaultApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;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kC;;;;;;wBAE5B,IAAI,cACR,UAAU,EAAE,KAAK,CAAC,UAAU,IACzB,KAAK,CAAC,UAAU,CACpB,CAAC;wBACe,qBAAM,IAAI,CAAC,OAAO,CAAC;gCAClC,GAAG,EAAE,wBAAwB;gCAC7B,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,4BAA4B;gCAC5C,SAAS,EAAE,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,IAAI,CAAC,sBAAsB,EAAjC,CAAiC;gCACvD,KAAK,EAAE,IAAI;6BACZ,CAAC,EAAA;;wBALI,QAAQ,GAAG,SAKf;wBAEF,sBAAO,QAAQ,EAAC;;;;KACjB;IACH,sBAAC;AAAD,CAAC,AAxCD,IAwCC;AAxCY,0CAAe"}
|
package/dist/src/apis/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { DefaultApiUtils } from './defaultApi';
|
|
2
|
-
export { TweetApiUtils } from './tweetApi';
|
|
3
|
-
export { PostApiUtils } from './postApi';
|
|
4
|
-
export { UserApiUtils } from './userApi';
|
|
5
|
-
export { UserListApiUtils } from './userListApi';
|
|
6
|
-
export { V11GetApiUtils } from './v11GetApi';
|
|
7
|
-
export { V11PostApiUtils } from './v11PostApi';
|
|
8
|
-
export { V20GetApiUtils } from './v20GetApi';
|
|
9
|
-
export { InitialStateApiUtils } from './initialStateApi';
|
|
1
|
+
export { DefaultApiUtils } from './defaultApi';
|
|
2
|
+
export { TweetApiUtils } from './tweetApi';
|
|
3
|
+
export { PostApiUtils } from './postApi';
|
|
4
|
+
export { UserApiUtils } from './userApi';
|
|
5
|
+
export { UserListApiUtils } from './userListApi';
|
|
6
|
+
export { V11GetApiUtils } from './v11GetApi';
|
|
7
|
+
export { V11PostApiUtils } from './v11PostApi';
|
|
8
|
+
export { V20GetApiUtils } from './v20GetApi';
|
|
9
|
+
export { InitialStateApiUtils } from './initialStateApi';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/apis/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InitialStateApiUtils = exports.V20GetApiUtils = exports.V11PostApiUtils = exports.V11GetApiUtils = exports.UserListApiUtils = exports.UserApiUtils = exports.PostApiUtils = exports.TweetApiUtils = exports.DefaultApiUtils = void 0;
|
|
4
|
-
var defaultApi_1 = require("./defaultApi");
|
|
5
|
-
Object.defineProperty(exports, "DefaultApiUtils", { enumerable: true, get: function () { return defaultApi_1.DefaultApiUtils; } });
|
|
6
|
-
var tweetApi_1 = require("./tweetApi");
|
|
7
|
-
Object.defineProperty(exports, "TweetApiUtils", { enumerable: true, get: function () { return tweetApi_1.TweetApiUtils; } });
|
|
8
|
-
var postApi_1 = require("./postApi");
|
|
9
|
-
Object.defineProperty(exports, "PostApiUtils", { enumerable: true, get: function () { return postApi_1.PostApiUtils; } });
|
|
10
|
-
var userApi_1 = require("./userApi");
|
|
11
|
-
Object.defineProperty(exports, "UserApiUtils", { enumerable: true, get: function () { return userApi_1.UserApiUtils; } });
|
|
12
|
-
var userListApi_1 = require("./userListApi");
|
|
13
|
-
Object.defineProperty(exports, "UserListApiUtils", { enumerable: true, get: function () { return userListApi_1.UserListApiUtils; } });
|
|
14
|
-
var v11GetApi_1 = require("./v11GetApi");
|
|
15
|
-
Object.defineProperty(exports, "V11GetApiUtils", { enumerable: true, get: function () { return v11GetApi_1.V11GetApiUtils; } });
|
|
16
|
-
var v11PostApi_1 = require("./v11PostApi");
|
|
17
|
-
Object.defineProperty(exports, "V11PostApiUtils", { enumerable: true, get: function () { return v11PostApi_1.V11PostApiUtils; } });
|
|
18
|
-
var v20GetApi_1 = require("./v20GetApi");
|
|
19
|
-
Object.defineProperty(exports, "V20GetApiUtils", { enumerable: true, get: function () { return v20GetApi_1.V20GetApiUtils; } });
|
|
20
|
-
var initialStateApi_1 = require("./initialStateApi");
|
|
21
|
-
Object.defineProperty(exports, "InitialStateApiUtils", { enumerable: true, get: function () { return initialStateApi_1.InitialStateApiUtils; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InitialStateApiUtils = exports.V20GetApiUtils = exports.V11PostApiUtils = exports.V11GetApiUtils = exports.UserListApiUtils = exports.UserApiUtils = exports.PostApiUtils = exports.TweetApiUtils = exports.DefaultApiUtils = void 0;
|
|
4
|
+
var defaultApi_1 = require("./defaultApi");
|
|
5
|
+
Object.defineProperty(exports, "DefaultApiUtils", { enumerable: true, get: function () { return defaultApi_1.DefaultApiUtils; } });
|
|
6
|
+
var tweetApi_1 = require("./tweetApi");
|
|
7
|
+
Object.defineProperty(exports, "TweetApiUtils", { enumerable: true, get: function () { return tweetApi_1.TweetApiUtils; } });
|
|
8
|
+
var postApi_1 = require("./postApi");
|
|
9
|
+
Object.defineProperty(exports, "PostApiUtils", { enumerable: true, get: function () { return postApi_1.PostApiUtils; } });
|
|
10
|
+
var userApi_1 = require("./userApi");
|
|
11
|
+
Object.defineProperty(exports, "UserApiUtils", { enumerable: true, get: function () { return userApi_1.UserApiUtils; } });
|
|
12
|
+
var userListApi_1 = require("./userListApi");
|
|
13
|
+
Object.defineProperty(exports, "UserListApiUtils", { enumerable: true, get: function () { return userListApi_1.UserListApiUtils; } });
|
|
14
|
+
var v11GetApi_1 = require("./v11GetApi");
|
|
15
|
+
Object.defineProperty(exports, "V11GetApiUtils", { enumerable: true, get: function () { return v11GetApi_1.V11GetApiUtils; } });
|
|
16
|
+
var v11PostApi_1 = require("./v11PostApi");
|
|
17
|
+
Object.defineProperty(exports, "V11PostApiUtils", { enumerable: true, get: function () { return v11PostApi_1.V11PostApiUtils; } });
|
|
18
|
+
var v20GetApi_1 = require("./v20GetApi");
|
|
19
|
+
Object.defineProperty(exports, "V20GetApiUtils", { enumerable: true, get: function () { return v20GetApi_1.V20GetApiUtils; } });
|
|
20
|
+
var initialStateApi_1 = require("./initialStateApi");
|
|
21
|
+
Object.defineProperty(exports, "InitialStateApiUtils", { enumerable: true, get: function () { return initialStateApi_1.InitialStateApiUtils; } });
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare class InitialStateApiUtils {
|
|
2
|
-
}
|
|
1
|
+
export declare class InitialStateApiUtils {
|
|
2
|
+
}
|
|
3
3
|
//# sourceMappingURL=initialStateApi.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InitialStateApiUtils = void 0;
|
|
4
|
-
var InitialStateApiUtils = /** @class */ (function () {
|
|
5
|
-
function InitialStateApiUtils() {
|
|
6
|
-
}
|
|
7
|
-
return InitialStateApiUtils;
|
|
8
|
-
}());
|
|
9
|
-
exports.InitialStateApiUtils = InitialStateApiUtils;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InitialStateApiUtils = void 0;
|
|
4
|
+
var InitialStateApiUtils = /** @class */ (function () {
|
|
5
|
+
function InitialStateApiUtils() {
|
|
6
|
+
}
|
|
7
|
+
return InitialStateApiUtils;
|
|
8
|
+
}());
|
|
9
|
+
exports.InitialStateApiUtils = InitialStateApiUtils;
|
|
10
10
|
//# sourceMappingURL=initialStateApi.js.map
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import * as i from 'twitter-openapi-typescript-generated';
|
|
2
|
-
import { DefaultFlag } from '../
|
|
3
|
-
import { TwitterApiUtilsResponse } from '../
|
|
4
|
-
type PostCreateTweetParam = {
|
|
5
|
-
tweetText: string;
|
|
6
|
-
extraParam?: {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
type PostDeleteTweetParam = {
|
|
11
|
-
tweetId: string;
|
|
12
|
-
extraParam?: {
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
type PostCreateRetweetParam = {
|
|
17
|
-
tweetId: string;
|
|
18
|
-
extraParam?: {
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
type PostDeleteRetweetParam = {
|
|
23
|
-
sourceTweetId: string;
|
|
24
|
-
extraParam?: {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
type PostFavoriteTweetParam = {
|
|
29
|
-
tweetId: string;
|
|
30
|
-
extraParam?: {
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
type PostUnfavoriteTweetParam = {
|
|
35
|
-
tweetId: string;
|
|
36
|
-
extraParam?: {
|
|
37
|
-
[key: string]: any;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export declare class PostApiUtils {
|
|
41
|
-
api: i.PostApi;
|
|
42
|
-
flag: DefaultFlag;
|
|
43
|
-
constructor(api: i.PostApi, flag: DefaultFlag);
|
|
44
|
-
postCreateTweet(param: PostCreateTweetParam): Promise<TwitterApiUtilsResponse<i.CreateTweetResponse>>;
|
|
45
|
-
postDeleteTweet(param: PostDeleteTweetParam): Promise<TwitterApiUtilsResponse<i.DeleteTweetResponse>>;
|
|
46
|
-
postCreateRetweet(param: PostCreateRetweetParam): Promise<TwitterApiUtilsResponse<i.CreateRetweetResponse>>;
|
|
47
|
-
postDeleteRetweet(param: PostDeleteRetweetParam): Promise<TwitterApiUtilsResponse<i.DeleteRetweetResponse>>;
|
|
48
|
-
postFavoriteTweet(param: PostFavoriteTweetParam): Promise<TwitterApiUtilsResponse<i.FavoriteTweetResponseData>>;
|
|
49
|
-
postUnfavoriteTweet(param: PostUnfavoriteTweetParam): Promise<TwitterApiUtilsResponse<i.UnfavoriteTweetResponseData>>;
|
|
50
|
-
}
|
|
51
|
-
export {};
|
|
1
|
+
import * as i from 'twitter-openapi-typescript-generated';
|
|
2
|
+
import { DefaultFlag } from '../models';
|
|
3
|
+
import { TwitterApiUtilsResponse } from '../models';
|
|
4
|
+
type PostCreateTweetParam = {
|
|
5
|
+
tweetText: string;
|
|
6
|
+
extraParam?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
type PostDeleteTweetParam = {
|
|
11
|
+
tweetId: string;
|
|
12
|
+
extraParam?: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
type PostCreateRetweetParam = {
|
|
17
|
+
tweetId: string;
|
|
18
|
+
extraParam?: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type PostDeleteRetweetParam = {
|
|
23
|
+
sourceTweetId: string;
|
|
24
|
+
extraParam?: {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type PostFavoriteTweetParam = {
|
|
29
|
+
tweetId: string;
|
|
30
|
+
extraParam?: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type PostUnfavoriteTweetParam = {
|
|
35
|
+
tweetId: string;
|
|
36
|
+
extraParam?: {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare class PostApiUtils {
|
|
41
|
+
api: i.PostApi;
|
|
42
|
+
flag: DefaultFlag;
|
|
43
|
+
constructor(api: i.PostApi, flag: DefaultFlag);
|
|
44
|
+
postCreateTweet(param: PostCreateTweetParam): Promise<TwitterApiUtilsResponse<i.CreateTweetResponse>>;
|
|
45
|
+
postDeleteTweet(param: PostDeleteTweetParam): Promise<TwitterApiUtilsResponse<i.DeleteTweetResponse>>;
|
|
46
|
+
postCreateRetweet(param: PostCreateRetweetParam): Promise<TwitterApiUtilsResponse<i.CreateRetweetResponse>>;
|
|
47
|
+
postDeleteRetweet(param: PostDeleteRetweetParam): Promise<TwitterApiUtilsResponse<i.DeleteRetweetResponse>>;
|
|
48
|
+
postFavoriteTweet(param: PostFavoriteTweetParam): Promise<TwitterApiUtilsResponse<i.FavoriteTweetResponseData>>;
|
|
49
|
+
postUnfavoriteTweet(param: PostUnfavoriteTweetParam): Promise<TwitterApiUtilsResponse<i.UnfavoriteTweetResponseData>>;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
52
52
|
//# sourceMappingURL=postApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postApi.d.ts","sourceRoot":"","sources":["../../../src/apis/postApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,sCAAsC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"postApi.d.ts","sourceRoot":"","sources":["../../../src/apis/postApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,sCAAsC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACrC,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACrC,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACrC,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAA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