rettiwt-api 2.4.1 → 2.5.0
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/.eslintrc.js +5 -0
- package/.github/workflows/documentation.yml +1 -1
- package/.github/workflows/publish.yml +1 -1
- package/.prettierrc +1 -1
- package/README.md +118 -60
- package/dist/Rettiwt.d.ts +7 -4
- package/dist/Rettiwt.js +4 -2
- package/dist/Rettiwt.js.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/Auth.d.ts +2 -1
- package/dist/commands/Auth.js +10 -17
- package/dist/commands/Auth.js.map +1 -1
- package/dist/commands/Tweet.js +36 -3
- package/dist/commands/Tweet.js.map +1 -1
- package/dist/enums/{ApiErrors.js → Api.js} +1 -1
- package/dist/enums/Api.js.map +1 -0
- package/dist/enums/Http.d.ts +68 -0
- package/dist/enums/Http.js +73 -0
- package/dist/enums/Http.js.map +1 -0
- package/dist/enums/Logging.d.ts +1 -0
- package/dist/enums/Logging.js +1 -0
- package/dist/enums/Logging.js.map +1 -1
- package/dist/index.d.ts +15 -14
- package/dist/index.js +21 -17
- package/dist/index.js.map +1 -1
- package/dist/models/{public → data}/CursoredData.d.ts +5 -3
- package/dist/models/{public → data}/CursoredData.js +1 -0
- package/dist/models/data/CursoredData.js.map +1 -0
- package/dist/{types/public → models/data}/List.d.ts +8 -1
- package/dist/models/data/List.js.map +1 -0
- package/dist/models/data/Media.d.ts +14 -0
- package/dist/models/data/Media.js +19 -0
- package/dist/models/data/Media.js.map +1 -0
- package/dist/{types/public → models/data}/Tweet.d.ts +26 -8
- package/dist/models/{public → data}/Tweet.js +4 -0
- package/dist/models/data/Tweet.js.map +1 -0
- package/dist/{types/public → models/data}/User.d.ts +8 -1
- package/dist/models/data/User.js.map +1 -0
- package/dist/models/errors/ApiError.d.ts +17 -0
- package/dist/models/errors/ApiError.js +42 -0
- package/dist/models/errors/ApiError.js.map +1 -0
- package/dist/models/errors/HttpError.d.ts +17 -0
- package/dist/models/errors/HttpError.js +42 -0
- package/dist/models/errors/HttpError.js.map +1 -0
- package/dist/models/errors/RettiwtError.d.ts +8 -0
- package/dist/models/errors/RettiwtError.js +34 -0
- package/dist/models/errors/RettiwtError.js.map +1 -0
- package/dist/models/errors/TimeoutError.d.ts +14 -0
- package/dist/models/errors/TimeoutError.js +39 -0
- package/dist/models/errors/TimeoutError.js.map +1 -0
- package/dist/services/internal/ErrorService.d.ts +85 -0
- package/dist/services/internal/ErrorService.js +144 -0
- package/dist/services/internal/ErrorService.js.map +1 -0
- package/dist/services/internal/FetcherService.d.ts +22 -24
- package/dist/services/internal/FetcherService.js +79 -59
- package/dist/services/internal/FetcherService.js.map +1 -1
- package/dist/services/public/AuthService.d.ts +66 -0
- package/dist/services/public/AuthService.js +160 -0
- package/dist/services/public/AuthService.js.map +1 -0
- package/dist/services/public/TweetService.d.ts +27 -8
- package/dist/services/public/TweetService.js +40 -5
- package/dist/services/public/TweetService.js.map +1 -1
- package/dist/services/public/UserService.d.ts +5 -5
- package/dist/services/public/UserService.js.map +1 -1
- package/dist/types/ErrorHandler.d.ts +13 -0
- package/dist/types/{public/User.js → ErrorHandler.js} +1 -1
- package/dist/types/ErrorHandler.js.map +1 -0
- package/dist/types/RettiwtConfig.d.ts +32 -0
- package/dist/types/RettiwtConfig.js.map +1 -0
- package/dist/types/args/TweetMediaArgs.d.ts +15 -0
- package/dist/types/{public/CursoredData.js → args/TweetMediaArgs.js} +1 -1
- package/dist/types/args/TweetMediaArgs.js.map +1 -0
- package/package.json +5 -5
- package/src/Rettiwt.ts +10 -5
- package/src/cli.ts +1 -1
- package/src/commands/Auth.ts +5 -16
- package/src/commands/Tweet.ts +56 -3
- package/src/enums/Http.ts +68 -0
- package/src/enums/Logging.ts +1 -0
- package/src/index.ts +23 -18
- package/src/models/{public → data}/CursoredData.ts +6 -5
- package/src/models/{public → data}/List.ts +14 -4
- package/src/models/data/Media.ts +19 -0
- package/src/models/{public → data}/Tweet.ts +39 -5
- package/src/models/{public → data}/User.ts +28 -4
- package/src/models/errors/ApiError.ts +24 -0
- package/src/models/errors/HttpError.ts +24 -0
- package/src/models/errors/RettiwtError.ts +12 -0
- package/src/models/errors/TimeoutError.ts +18 -0
- package/src/services/internal/ErrorService.ts +158 -0
- package/src/services/internal/FetcherService.ts +94 -80
- package/src/services/public/AuthService.ts +97 -0
- package/src/services/public/TweetService.ts +45 -10
- package/src/services/public/UserService.ts +7 -5
- package/src/types/ErrorHandler.ts +13 -0
- package/src/types/RettiwtConfig.ts +40 -0
- package/src/types/args/TweetMediaArgs.ts +16 -0
- package/dist/enums/ApiErrors.js.map +0 -1
- package/dist/enums/HTTP.d.ts +0 -17
- package/dist/enums/HTTP.js +0 -22
- package/dist/enums/HTTP.js.map +0 -1
- package/dist/models/internal/RettiwtConfig.d.ts +0 -18
- package/dist/models/internal/RettiwtConfig.js +0 -24
- package/dist/models/internal/RettiwtConfig.js.map +0 -1
- package/dist/models/public/CursoredData.js.map +0 -1
- package/dist/models/public/List.d.ts +0 -22
- package/dist/models/public/List.js.map +0 -1
- package/dist/models/public/Tweet.d.ts +0 -62
- package/dist/models/public/Tweet.js.map +0 -1
- package/dist/models/public/User.d.ts +0 -29
- package/dist/models/public/User.js.map +0 -1
- package/dist/types/internal/RettiwtConfig.d.ts +0 -15
- package/dist/types/internal/RettiwtConfig.js.map +0 -1
- package/dist/types/public/CursoredData.d.ts +0 -22
- package/dist/types/public/CursoredData.js.map +0 -1
- package/dist/types/public/List.js +0 -3
- package/dist/types/public/List.js.map +0 -1
- package/dist/types/public/Tweet.js +0 -3
- package/dist/types/public/Tweet.js.map +0 -1
- package/dist/types/public/User.js.map +0 -1
- package/src/enums/HTTP.ts +0 -17
- package/src/models/internal/RettiwtConfig.ts +0 -26
- package/src/types/internal/RettiwtConfig.ts +0 -18
- package/src/types/public/CursoredData.ts +0 -24
- package/src/types/public/List.ts +0 -27
- package/src/types/public/Tweet.ts +0 -86
- package/src/types/public/User.ts +0 -48
- /package/dist/enums/{ApiErrors.d.ts → Api.d.ts} +0 -0
- /package/dist/models/{public → data}/List.js +0 -0
- /package/dist/models/{public → data}/User.js +0 -0
- /package/dist/types/{internal/RettiwtConfig.js → RettiwtConfig.js} +0 -0
- /package/src/enums/{ApiErrors.ts → Api.ts} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// TYPES
|
|
2
|
+
import { IErrorHandler } from './ErrorHandler';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The configuration for initializing a new Rettiwt instance.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export interface IRettiwtConfig {
|
|
10
|
+
/** The apiKey (cookie) to use for authenticating Rettiwt against Twitter API. */
|
|
11
|
+
apiKey?: string;
|
|
12
|
+
|
|
13
|
+
/** The guestKey (guest token) to use for guest access to Twitter API. */
|
|
14
|
+
guestKey?: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Optional URL to proxy server to use for requests to Twitter API.
|
|
18
|
+
*
|
|
19
|
+
* @remarks When deploying to cloud platforms, if setting {@link IRettiwtConfig.authProxyUrl} does not resolve Error 429, then this might be required.
|
|
20
|
+
*/
|
|
21
|
+
proxyUrl?: URL;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Optional URL to proxy server to use for authentication against Twitter API.
|
|
25
|
+
*
|
|
26
|
+
* @remarks Required when deploying to cloud platforms to bypass Error 429.
|
|
27
|
+
*
|
|
28
|
+
* @defaultValue Same as {@link IRettiwtConfig.proxyUrl}
|
|
29
|
+
*/
|
|
30
|
+
authProxyUrl?: URL;
|
|
31
|
+
|
|
32
|
+
/** The max wait time (in milli-seconds) for a response; if not set, Twitter server timeout is used. */
|
|
33
|
+
timeout?: number;
|
|
34
|
+
|
|
35
|
+
/** Whether to write logs to console or not. */
|
|
36
|
+
logging?: boolean;
|
|
37
|
+
|
|
38
|
+
/** Optional custom error handler to define error conditions and process API/HTTP errors in responses. */
|
|
39
|
+
errorHandler?: IErrorHandler;
|
|
40
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The arguments specifying the media to be posted in a single tweet.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface ITweetMediaArgs {
|
|
7
|
+
/**
|
|
8
|
+
* The path to the media file.
|
|
9
|
+
*
|
|
10
|
+
* @remarks The size of the media file must be \<= 5242880 bytes.
|
|
11
|
+
*/
|
|
12
|
+
path: string;
|
|
13
|
+
|
|
14
|
+
/** The list usernames of users to be tagged in the media. */
|
|
15
|
+
tags?: string[];
|
|
16
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiErrors.js","sourceRoot":"","sources":["../../src/enums/ApiErrors.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,IAAY,UAwBX;AAxBD,WAAY,UAAU;IACrB,+DAAiD,CAAA;IACjD,iEAAmD,CAAA;IACnD,2DAA6C,CAAA;IAC7C,yDAA2C,CAAA;IAC3C,kEAAoD,CAAA;IACpD,8DAAgD,CAAA;IAChD,yDAA2C,CAAA;IAC3C,sDAAwC,CAAA;IACxC,6DAA+C,CAAA;IAC/C,2DAA6C,CAAA;IAC7C,6DAA+C,CAAA;IAC/C,6DAA+C,CAAA;IAC/C,+EAAiE,CAAA;IACjE,0EAA4D,CAAA;IAC5D,uDAAyC,CAAA;IACzC,gEAAkD,CAAA;IAClD,kFAAoE,CAAA;IACpE,oEAAsD,CAAA;IACtD,wDAA0C,CAAA;IAC1C,2DAA6C,CAAA;IAC7C,2DAA6C,CAAA;IAC7C,0FAA4E,CAAA;IAC5E,+EAAiE,CAAA;AAClE,CAAC,EAxBW,UAAU,0BAAV,UAAU,QAwBrB"}
|
package/dist/enums/HTTP.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The different types of http status codes
|
|
3
|
-
*
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare enum EHttpStatus {
|
|
7
|
-
BAD_REQUEST = 400,
|
|
8
|
-
UNAUTHORIZED = 401,
|
|
9
|
-
FORBIDDEN = 403,
|
|
10
|
-
NOT_FOUND = 404,
|
|
11
|
-
METHOD_NOT_ALLOWED = 405,
|
|
12
|
-
REQUEST_TIMEOUT = 408,
|
|
13
|
-
TOO_MANY_REQUESTS = 429,
|
|
14
|
-
INTERNAL_SERVER_ERROR = 500,
|
|
15
|
-
BAD_GATEWAY = 502,
|
|
16
|
-
SERVICE_UNAVAILABLE = 503
|
|
17
|
-
}
|
package/dist/enums/HTTP.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EHttpStatus = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* The different types of http status codes
|
|
6
|
-
*
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
var EHttpStatus;
|
|
10
|
-
(function (EHttpStatus) {
|
|
11
|
-
EHttpStatus[EHttpStatus["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
12
|
-
EHttpStatus[EHttpStatus["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
13
|
-
EHttpStatus[EHttpStatus["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
14
|
-
EHttpStatus[EHttpStatus["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
15
|
-
EHttpStatus[EHttpStatus["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
16
|
-
EHttpStatus[EHttpStatus["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
17
|
-
EHttpStatus[EHttpStatus["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
18
|
-
EHttpStatus[EHttpStatus["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
19
|
-
EHttpStatus[EHttpStatus["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
20
|
-
EHttpStatus[EHttpStatus["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
21
|
-
})(EHttpStatus || (exports.EHttpStatus = EHttpStatus = {}));
|
|
22
|
-
//# sourceMappingURL=HTTP.js.map
|
package/dist/enums/HTTP.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HTTP.js","sourceRoot":"","sources":["../../src/enums/HTTP.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,IAAY,WAWX;AAXD,WAAY,WAAW;IACtB,6DAAiB,CAAA;IACjB,+DAAkB,CAAA;IAClB,yDAAe,CAAA;IACf,yDAAe,CAAA;IACf,2EAAwB,CAAA;IACxB,qEAAqB,CAAA;IACrB,yEAAuB,CAAA;IACvB,iFAA2B,CAAA;IAC3B,6DAAiB,CAAA;IACjB,6EAAyB,CAAA;AAC1B,CAAC,EAXW,WAAW,2BAAX,WAAW,QAWtB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IRettiwtConfig } from '../../types/internal/RettiwtConfig';
|
|
2
|
-
/**
|
|
3
|
-
* The configuration for initializing a new Rettiwt instance.
|
|
4
|
-
*
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class RettiwtConfig implements IRettiwtConfig {
|
|
8
|
-
apiKey?: string;
|
|
9
|
-
guestKey?: string;
|
|
10
|
-
proxyUrl?: URL;
|
|
11
|
-
logging?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Initializes a new configuration object from the given config.
|
|
14
|
-
*
|
|
15
|
-
* @param config - The configuration object.
|
|
16
|
-
*/
|
|
17
|
-
constructor(config: RettiwtConfig);
|
|
18
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RettiwtConfig = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* The configuration for initializing a new Rettiwt instance.
|
|
6
|
-
*
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
var RettiwtConfig = /** @class */ (function () {
|
|
10
|
-
/**
|
|
11
|
-
* Initializes a new configuration object from the given config.
|
|
12
|
-
*
|
|
13
|
-
* @param config - The configuration object.
|
|
14
|
-
*/
|
|
15
|
-
function RettiwtConfig(config) {
|
|
16
|
-
this.apiKey = config.apiKey;
|
|
17
|
-
this.guestKey = config.guestKey;
|
|
18
|
-
this.proxyUrl = config.proxyUrl;
|
|
19
|
-
this.logging = config.logging;
|
|
20
|
-
}
|
|
21
|
-
return RettiwtConfig;
|
|
22
|
-
}());
|
|
23
|
-
exports.RettiwtConfig = RettiwtConfig;
|
|
24
|
-
//# sourceMappingURL=RettiwtConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RettiwtConfig.js","sourceRoot":"","sources":["../../../src/models/internal/RettiwtConfig.ts"],"names":[],"mappings":";;;AAGA;;;;GAIG;AACH;IAMC;;;;OAIG;IACH,uBAAmB,MAAqB;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;IAC/B,CAAC;IACF,oBAAC;AAAD,CAAC,AAjBD,IAiBC;AAjBY,sCAAa"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CursoredData.js","sourceRoot":"","sources":["../../../src/models/public/CursoredData.ts"],"names":[],"mappings":";;;AAOA;;;;;;GAMG;AACH;IAIC;;;OAGG;IACH,sBAAmB,IAAc,EAAE,IAAiB;QAAjC,qBAAA,EAAA,SAAc;QAAE,qBAAA,EAAA,SAAiB;QAP7C,SAAI,GAAQ,EAAE,CAAC;QAQrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IACF,mBAAC;AAAD,CAAC,AAZD,IAYC;AAZY,oCAAY;AAczB;;;;GAIG;AACH;IAGC;;;;OAIG;IACH,gBAAmB,SAAiB;QACnC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IACxB,CAAC;IACF,aAAC;AAAD,CAAC,AAXD,IAWC;AAXY,wBAAM"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IList as IRawList } from 'rettiwt-core';
|
|
2
|
-
import { IList } from '../../types/public/List';
|
|
3
|
-
/**
|
|
4
|
-
* The details of a single Twitter List.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare class List implements IList {
|
|
9
|
-
id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
createdAt: string;
|
|
12
|
-
description: string;
|
|
13
|
-
memberCount: number;
|
|
14
|
-
subscriberCount: number;
|
|
15
|
-
createdBy: string;
|
|
16
|
-
/**
|
|
17
|
-
* Initializes a new Tweet List from the given raw list data.
|
|
18
|
-
*
|
|
19
|
-
* @param list - list The raw tweet list data.
|
|
20
|
-
*/
|
|
21
|
-
constructor(list: IRawList);
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/models/public/List.ts"],"names":[],"mappings":";;;AAMA;;;;GAIG;AACH;IASC;;;;OAIG;IACH,cAAmB,IAAc;QAChC,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC;QACzD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC;QACrC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC7C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;IAC9C,CAAC;IACF,WAAC;AAAD,CAAC,AAvBD,IAuBC;AAvBY,oBAAI"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ITweet as IRawTweet, IEntities as IRawTweetEntities, IExtendedMedia as IRawExtendedMedia, EMediaType } from 'rettiwt-core';
|
|
2
|
-
import { ITweet, ITweetEntities } from '../../types/public/Tweet';
|
|
3
|
-
import { User } from './User';
|
|
4
|
-
/**
|
|
5
|
-
* The details of a single Tweet.
|
|
6
|
-
*
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export declare class Tweet implements ITweet {
|
|
10
|
-
id: string;
|
|
11
|
-
tweetBy: User;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
entities: TweetEntities;
|
|
14
|
-
media: TweetMedia[];
|
|
15
|
-
quoted: string;
|
|
16
|
-
fullText: string;
|
|
17
|
-
replyTo: string;
|
|
18
|
-
lang: string;
|
|
19
|
-
quoteCount: number;
|
|
20
|
-
replyCount: number;
|
|
21
|
-
retweetCount: number;
|
|
22
|
-
likeCount: number;
|
|
23
|
-
viewCount: number;
|
|
24
|
-
bookmarkCount: number;
|
|
25
|
-
/**
|
|
26
|
-
* Initializes a new Tweet from the given raw tweet data.
|
|
27
|
-
*
|
|
28
|
-
* @param tweet - The raw tweet data.
|
|
29
|
-
*/
|
|
30
|
-
constructor(tweet: IRawTweet);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* The different types parsed entities like urls, media, mentions, hashtags, etc.
|
|
34
|
-
*
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
export declare class TweetEntities implements ITweetEntities {
|
|
38
|
-
hashtags: string[];
|
|
39
|
-
urls: string[];
|
|
40
|
-
mentionedUsers: string[];
|
|
41
|
-
/**
|
|
42
|
-
* Initializes the TweetEntities from the raw tweet entities.
|
|
43
|
-
*
|
|
44
|
-
* @param entities - The raw tweet entities.
|
|
45
|
-
*/
|
|
46
|
-
constructor(entities: IRawTweetEntities);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* A single media content.
|
|
50
|
-
*
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
export declare class TweetMedia {
|
|
54
|
-
type: EMediaType;
|
|
55
|
-
url: string;
|
|
56
|
-
/**
|
|
57
|
-
* Initializes the TweetMedia from the raw tweet media.
|
|
58
|
-
*
|
|
59
|
-
* @param media - The raw tweet media.
|
|
60
|
-
*/
|
|
61
|
-
constructor(media: IRawExtendedMedia);
|
|
62
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tweet.js","sourceRoot":"","sources":["../../../src/models/public/Tweet.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { IUser as IRawUser } from 'rettiwt-core';
|
|
2
|
-
import { IUser } from '../../types/public/User';
|
|
3
|
-
/**
|
|
4
|
-
* The details of a single user.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare class User implements IUser {
|
|
9
|
-
id: string;
|
|
10
|
-
userName: string;
|
|
11
|
-
fullName: string;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
description: string;
|
|
14
|
-
isVerified: boolean;
|
|
15
|
-
favouritesCount: number;
|
|
16
|
-
followersCount: number;
|
|
17
|
-
followingsCount: number;
|
|
18
|
-
statusesCount: number;
|
|
19
|
-
location: string;
|
|
20
|
-
pinnedTweet: string;
|
|
21
|
-
profileBanner: string;
|
|
22
|
-
profileImage: string;
|
|
23
|
-
/**
|
|
24
|
-
* Initializes a new User from the given raw user data.
|
|
25
|
-
*
|
|
26
|
-
* @param user - The raw user data.
|
|
27
|
-
*/
|
|
28
|
-
constructor(user: IRawUser);
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../src/models/public/User.ts"],"names":[],"mappings":";;;AAMA;;;;GAIG;AACH;IAgBC;;;;OAIG;IACH,cAAmB,IAAc;QAChC,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;QACxC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;QACjC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;QAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;QACvC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;QACpD,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;QAClD,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC;QACjD,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;QACvD,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC;QACpD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,uBAAuB,CAAC;IACzD,CAAC;IACF,WAAC;AAAD,CAAC,AArCD,IAqCC;AArCY,oBAAI"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The configuration for initializing a new Rettiwt instance.
|
|
3
|
-
*
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export interface IRettiwtConfig {
|
|
7
|
-
/** The apiKey (cookie) to use for authenticating Rettiwt against Twitter API. */
|
|
8
|
-
apiKey?: string;
|
|
9
|
-
/** The guestKey (guest token) to use for guest access to Twitter API. */
|
|
10
|
-
guestKey?: string;
|
|
11
|
-
/** Optional URL with proxy configuration to use for requests to Twitter API. */
|
|
12
|
-
proxyUrl?: URL;
|
|
13
|
-
/** Whether to write logs to console or not. */
|
|
14
|
-
logging?: boolean;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RettiwtConfig.js","sourceRoot":"","sources":["../../../src/types/internal/RettiwtConfig.ts"],"names":[],"mappings":""}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The data that us fetched batch-wise along with a cursor.
|
|
3
|
-
*
|
|
4
|
-
* @typeParam T - Type of data present in the list.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export interface ICursoredData<T> {
|
|
9
|
-
/** The list of data of the given type. */
|
|
10
|
-
list: T[];
|
|
11
|
-
/** The cursor to the next batch of data. */
|
|
12
|
-
next: ICursor;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The cursor to the batch of data to be fetched.
|
|
16
|
-
*
|
|
17
|
-
* @public
|
|
18
|
-
*/
|
|
19
|
-
export interface ICursor {
|
|
20
|
-
/** The cursor string. */
|
|
21
|
-
value: string;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CursoredData.js","sourceRoot":"","sources":["../../../src/types/public/CursoredData.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/types/public/List.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tweet.js","sourceRoot":"","sources":["../../../src/types/public/Tweet.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../src/types/public/User.ts"],"names":[],"mappings":""}
|
package/src/enums/HTTP.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The different types of http status codes
|
|
3
|
-
*
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export enum EHttpStatus {
|
|
7
|
-
BAD_REQUEST = 400,
|
|
8
|
-
UNAUTHORIZED = 401,
|
|
9
|
-
FORBIDDEN = 403,
|
|
10
|
-
NOT_FOUND = 404,
|
|
11
|
-
METHOD_NOT_ALLOWED = 405,
|
|
12
|
-
REQUEST_TIMEOUT = 408,
|
|
13
|
-
TOO_MANY_REQUESTS = 429,
|
|
14
|
-
INTERNAL_SERVER_ERROR = 500,
|
|
15
|
-
BAD_GATEWAY = 502,
|
|
16
|
-
SERVICE_UNAVAILABLE = 503,
|
|
17
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// TYPES
|
|
2
|
-
import { IRettiwtConfig } from '../../types/internal/RettiwtConfig';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* The configuration for initializing a new Rettiwt instance.
|
|
6
|
-
*
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export class RettiwtConfig implements IRettiwtConfig {
|
|
10
|
-
public apiKey?: string;
|
|
11
|
-
public guestKey?: string;
|
|
12
|
-
public proxyUrl?: URL;
|
|
13
|
-
public logging?: boolean;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Initializes a new configuration object from the given config.
|
|
17
|
-
*
|
|
18
|
-
* @param config - The configuration object.
|
|
19
|
-
*/
|
|
20
|
-
public constructor(config: RettiwtConfig) {
|
|
21
|
-
this.apiKey = config.apiKey;
|
|
22
|
-
this.guestKey = config.guestKey;
|
|
23
|
-
this.proxyUrl = config.proxyUrl;
|
|
24
|
-
this.logging = config.logging;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The configuration for initializing a new Rettiwt instance.
|
|
3
|
-
*
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export interface IRettiwtConfig {
|
|
7
|
-
/** The apiKey (cookie) to use for authenticating Rettiwt against Twitter API. */
|
|
8
|
-
apiKey?: string;
|
|
9
|
-
|
|
10
|
-
/** The guestKey (guest token) to use for guest access to Twitter API. */
|
|
11
|
-
guestKey?: string;
|
|
12
|
-
|
|
13
|
-
/** Optional URL with proxy configuration to use for requests to Twitter API. */
|
|
14
|
-
proxyUrl?: URL;
|
|
15
|
-
|
|
16
|
-
/** Whether to write logs to console or not. */
|
|
17
|
-
logging?: boolean;
|
|
18
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The data that us fetched batch-wise along with a cursor.
|
|
3
|
-
*
|
|
4
|
-
* @typeParam T - Type of data present in the list.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export interface ICursoredData<T> {
|
|
9
|
-
/** The list of data of the given type. */
|
|
10
|
-
list: T[];
|
|
11
|
-
|
|
12
|
-
/** The cursor to the next batch of data. */
|
|
13
|
-
next: ICursor;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The cursor to the batch of data to be fetched.
|
|
18
|
-
*
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
21
|
-
export interface ICursor {
|
|
22
|
-
/** The cursor string. */
|
|
23
|
-
value: string;
|
|
24
|
-
}
|
package/src/types/public/List.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The details of a single Twitter List.
|
|
3
|
-
*
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface IList {
|
|
7
|
-
/** The rest id of the list. */
|
|
8
|
-
id: string;
|
|
9
|
-
|
|
10
|
-
/** The name of the list. */
|
|
11
|
-
name: string;
|
|
12
|
-
|
|
13
|
-
/** The date and time of creation of the list, int UTC string format. */
|
|
14
|
-
createdAt: string;
|
|
15
|
-
|
|
16
|
-
/** The list description. */
|
|
17
|
-
description: string;
|
|
18
|
-
|
|
19
|
-
/** The number of memeber of the list. */
|
|
20
|
-
memberCount: number;
|
|
21
|
-
|
|
22
|
-
/** The number of subscribers of the list. */
|
|
23
|
-
subscriberCount: number;
|
|
24
|
-
|
|
25
|
-
/** The rest id of the user who created the list. */
|
|
26
|
-
createdBy: string;
|
|
27
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
// PACKAGES
|
|
2
|
-
import { EMediaType } from 'rettiwt-core';
|
|
3
|
-
|
|
4
|
-
// TYPES
|
|
5
|
-
import { IUser } from './User';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The details of a single Tweet.
|
|
9
|
-
*
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export interface ITweet {
|
|
13
|
-
/** The rest id of the tweet. */
|
|
14
|
-
id: string;
|
|
15
|
-
|
|
16
|
-
/** The details of the user who made the tweet. */
|
|
17
|
-
tweetBy: IUser;
|
|
18
|
-
|
|
19
|
-
/** The date and time of creation of the tweet, in UTC string format. */
|
|
20
|
-
createdAt: string;
|
|
21
|
-
|
|
22
|
-
/** Additional tweet entities like urls, mentions, etc. */
|
|
23
|
-
entities: ITweetEntities;
|
|
24
|
-
|
|
25
|
-
/** The urls of the media contents of the tweet (if any). */
|
|
26
|
-
media: ITweetMedia[];
|
|
27
|
-
|
|
28
|
-
/** The rest id of the tweet which is quoted in the tweet. */
|
|
29
|
-
quoted: string;
|
|
30
|
-
|
|
31
|
-
/** The full text content of the tweet. */
|
|
32
|
-
fullText: string;
|
|
33
|
-
|
|
34
|
-
/** The rest id of the user to which the tweet is a reply. */
|
|
35
|
-
replyTo: string;
|
|
36
|
-
|
|
37
|
-
/** The language in which the tweet is written. */
|
|
38
|
-
lang: string;
|
|
39
|
-
|
|
40
|
-
/** The number of quotes of the tweet. */
|
|
41
|
-
quoteCount: number;
|
|
42
|
-
|
|
43
|
-
/** The number of replies to the tweet. */
|
|
44
|
-
replyCount: number;
|
|
45
|
-
|
|
46
|
-
/** The number of retweets of the tweet. */
|
|
47
|
-
retweetCount: number;
|
|
48
|
-
|
|
49
|
-
/** The number of likes of the tweet. */
|
|
50
|
-
likeCount: number;
|
|
51
|
-
|
|
52
|
-
/** The number of views of a tweet. */
|
|
53
|
-
viewCount: number;
|
|
54
|
-
|
|
55
|
-
/** The number of bookmarks of a tweet. */
|
|
56
|
-
bookmarkCount: number;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* The different types parsed entities like urls, media, mentions, hashtags, etc.
|
|
61
|
-
*
|
|
62
|
-
* @public
|
|
63
|
-
*/
|
|
64
|
-
export interface ITweetEntities {
|
|
65
|
-
/** The list of hashtags mentioned in the tweet. */
|
|
66
|
-
hashtags: string[];
|
|
67
|
-
|
|
68
|
-
/** The list of urls mentioned in the tweet. */
|
|
69
|
-
urls: string[];
|
|
70
|
-
|
|
71
|
-
/** The list of IDs of users mentioned in the tweet. */
|
|
72
|
-
mentionedUsers: string[];
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* A single media content.
|
|
77
|
-
*
|
|
78
|
-
* @public
|
|
79
|
-
*/
|
|
80
|
-
export interface ITweetMedia {
|
|
81
|
-
/** The type of media. */
|
|
82
|
-
type: EMediaType;
|
|
83
|
-
|
|
84
|
-
/** The direct URL to the media. */
|
|
85
|
-
url: string;
|
|
86
|
-
}
|
package/src/types/public/User.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The details of a single user.
|
|
3
|
-
*
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface IUser {
|
|
7
|
-
/** The rest id of the user. */
|
|
8
|
-
id: string;
|
|
9
|
-
|
|
10
|
-
/** The username/screenname of the user. */
|
|
11
|
-
userName: string;
|
|
12
|
-
|
|
13
|
-
/** The full name of the user. */
|
|
14
|
-
fullName: string;
|
|
15
|
-
|
|
16
|
-
/** The creation date of user's account. */
|
|
17
|
-
createdAt: string;
|
|
18
|
-
|
|
19
|
-
/** The user's description. */
|
|
20
|
-
description: string;
|
|
21
|
-
|
|
22
|
-
/** Whether the account is verified or not. */
|
|
23
|
-
isVerified: boolean;
|
|
24
|
-
|
|
25
|
-
/** The number of tweets liked by the user. */
|
|
26
|
-
favouritesCount: number;
|
|
27
|
-
|
|
28
|
-
/** The number of followers of the user. */
|
|
29
|
-
followersCount: number;
|
|
30
|
-
|
|
31
|
-
/** The number of following of the user. */
|
|
32
|
-
followingsCount: number;
|
|
33
|
-
|
|
34
|
-
/** The number of tweets made by the user. */
|
|
35
|
-
statusesCount: number;
|
|
36
|
-
|
|
37
|
-
/** The location of user as provided by user. */
|
|
38
|
-
location: string;
|
|
39
|
-
|
|
40
|
-
/** The rest id of the tweet pinned in the user's profile. */
|
|
41
|
-
pinnedTweet: string;
|
|
42
|
-
|
|
43
|
-
/** The url of the profile banner image. */
|
|
44
|
-
profileBanner: string;
|
|
45
|
-
|
|
46
|
-
/** The url of the profile image. */
|
|
47
|
-
profileImage: string;
|
|
48
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|