rettiwt-api 6.0.8 → 6.1.1
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/.github/ISSUE_TEMPLATE/bug-report.yml +57 -0
- package/.github/ISSUE_TEMPLATE/feature-request.yml +20 -0
- package/.github/ISSUE_TEMPLATE/question.yml +15 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +32 -0
- package/.github/workflows/ci.yml +33 -0
- package/.nvmrc +1 -0
- package/README.md +30 -6
- package/dist/Rettiwt.d.ts +3 -0
- package/dist/Rettiwt.js +4 -0
- package/dist/Rettiwt.js.map +1 -1
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/collections/Extractors.d.ts +24 -0
- package/dist/collections/Extractors.js +14 -0
- package/dist/collections/Extractors.js.map +1 -1
- package/dist/collections/Groups.js +11 -0
- package/dist/collections/Groups.js.map +1 -1
- package/dist/collections/Requests.js +12 -0
- package/dist/collections/Requests.js.map +1 -1
- package/dist/commands/DirectMessage.d.ts +10 -0
- package/dist/commands/DirectMessage.js +57 -0
- package/dist/commands/DirectMessage.js.map +1 -0
- package/dist/commands/List.js +44 -3
- package/dist/commands/List.js.map +1 -1
- package/dist/commands/Tweet.js +29 -1
- package/dist/commands/Tweet.js.map +1 -1
- package/dist/commands/User.js +39 -1
- package/dist/commands/User.js.map +1 -1
- package/dist/enums/Data.d.ts +3 -1
- package/dist/enums/Data.js +2 -0
- package/dist/enums/Data.js.map +1 -1
- package/dist/enums/Resource.d.ts +11 -0
- package/dist/enums/Resource.js +12 -0
- package/dist/enums/Resource.js.map +1 -1
- package/dist/enums/raw/Analytics.d.ts +6 -3
- package/dist/enums/raw/Analytics.js +5 -2
- package/dist/enums/raw/Analytics.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/models/args/FetchArgs.d.ts +9 -0
- package/dist/models/args/FetchArgs.js +16 -0
- package/dist/models/args/FetchArgs.js.map +1 -1
- package/dist/models/args/PostArgs.d.ts +1 -0
- package/dist/models/args/PostArgs.js +2 -0
- package/dist/models/args/PostArgs.js.map +1 -1
- package/dist/models/data/Analytics.d.ts +43 -0
- package/dist/models/data/Analytics.js +92 -0
- package/dist/models/data/Analytics.js.map +1 -0
- package/dist/models/data/Conversation.d.ts +93 -0
- package/dist/models/data/Conversation.js +293 -0
- package/dist/models/data/Conversation.js.map +1 -0
- package/dist/models/data/CursoredData.d.ts +2 -1
- package/dist/models/data/CursoredData.js +6 -1
- package/dist/models/data/CursoredData.js.map +1 -1
- package/dist/models/data/DirectMessage.d.ts +105 -0
- package/dist/models/data/DirectMessage.js +284 -0
- package/dist/models/data/DirectMessage.js.map +1 -0
- package/dist/models/data/Inbox.d.ts +44 -0
- package/dist/models/data/Inbox.js +106 -0
- package/dist/models/data/Inbox.js.map +1 -0
- package/dist/models/data/List.d.ts +20 -0
- package/dist/models/data/List.js +50 -1
- package/dist/models/data/List.js.map +1 -1
- package/dist/models/data/Tweet.d.ts +6 -6
- package/dist/models/data/Tweet.js +4 -2
- package/dist/models/data/Tweet.js.map +1 -1
- package/dist/models/data/User.d.ts +2 -0
- package/dist/models/data/User.js +6 -0
- package/dist/models/data/User.js.map +1 -1
- package/dist/requests/DirectMessage.d.ts +28 -0
- package/dist/requests/DirectMessage.js +149 -0
- package/dist/requests/DirectMessage.js.map +1 -0
- package/dist/requests/List.d.ts +10 -0
- package/dist/requests/List.js +52 -0
- package/dist/requests/List.js.map +1 -1
- package/dist/requests/Tweet.d.ts +8 -0
- package/dist/requests/Tweet.js +30 -0
- package/dist/requests/Tweet.js.map +1 -1
- package/dist/requests/User.d.ts +8 -1
- package/dist/requests/User.js +67 -8
- package/dist/requests/User.js.map +1 -1
- package/dist/services/public/DirectMessageService.d.ts +100 -0
- package/dist/services/public/DirectMessageService.js +143 -0
- package/dist/services/public/DirectMessageService.js.map +1 -0
- package/dist/services/public/FetcherService.d.ts +2 -2
- package/dist/services/public/FetcherService.js +4 -4
- package/dist/services/public/FetcherService.js.map +1 -1
- package/dist/services/public/ListService.d.ts +85 -0
- package/dist/services/public/ListService.js +111 -0
- package/dist/services/public/ListService.js.map +1 -1
- package/dist/services/public/TweetService.d.ts +56 -0
- package/dist/services/public/TweetService.js +72 -0
- package/dist/services/public/TweetService.js.map +1 -1
- package/dist/services/public/UserService.d.ts +61 -2
- package/dist/services/public/UserService.js +89 -0
- package/dist/services/public/UserService.js.map +1 -1
- package/dist/types/args/FetchArgs.d.ts +69 -12
- package/dist/types/args/PostArgs.d.ts +29 -11
- package/dist/types/data/Analytics.d.ts +42 -0
- package/dist/types/data/Analytics.js +3 -0
- package/dist/types/data/Analytics.js.map +1 -0
- package/dist/types/data/Conversation.d.ts +32 -0
- package/dist/types/data/Conversation.js +3 -0
- package/dist/types/data/Conversation.js.map +1 -0
- package/dist/types/data/CursoredData.d.ts +4 -1
- package/dist/types/data/DirectMessage.d.ts +25 -0
- package/dist/types/data/DirectMessage.js +3 -0
- package/dist/types/data/DirectMessage.js.map +1 -0
- package/dist/types/data/Inbox.d.ts +18 -0
- package/dist/types/data/Inbox.js +3 -0
- package/dist/types/data/Inbox.js.map +1 -0
- package/dist/types/data/List.d.ts +5 -1
- package/dist/types/data/Tweet.d.ts +6 -6
- package/dist/types/data/User.d.ts +4 -0
- package/dist/types/raw/base/Analytic.d.ts +6 -1
- package/dist/types/raw/base/Message.d.ts +16 -0
- package/dist/types/raw/base/Message.js +4 -0
- package/dist/types/raw/base/Message.js.map +1 -0
- package/dist/types/raw/base/Tweet.d.ts +6 -6
- package/dist/types/raw/base/User.d.ts +2 -1
- package/dist/types/raw/composite/TimelineList.d.ts +9 -0
- package/dist/types/raw/composite/TimelineList.js +3 -0
- package/dist/types/raw/composite/TimelineList.js.map +1 -0
- package/dist/types/raw/dm/Conversation.d.ts +55 -0
- package/dist/types/raw/dm/Conversation.js +4 -0
- package/dist/types/raw/dm/Conversation.js.map +1 -0
- package/dist/types/raw/dm/InboxInitial.d.ts +137 -0
- package/dist/types/raw/dm/InboxInitial.js +4 -0
- package/dist/types/raw/dm/InboxInitial.js.map +1 -0
- package/dist/types/raw/dm/InboxTimeline.d.ts +287 -0
- package/dist/types/raw/dm/InboxTimeline.js +4 -0
- package/dist/types/raw/dm/InboxTimeline.js.map +1 -0
- package/dist/types/raw/dm/UserUpdates.d.ts +41 -0
- package/dist/types/raw/dm/UserUpdates.js +4 -0
- package/dist/types/raw/dm/UserUpdates.js.map +1 -0
- package/dist/types/raw/list/AddMember.d.ts +151 -0
- package/dist/types/raw/list/AddMember.js +4 -0
- package/dist/types/raw/list/AddMember.js.map +1 -0
- package/dist/types/raw/list/Details.d.ts +44 -13
- package/dist/types/raw/list/RemoveMember.d.ts +150 -0
- package/dist/types/raw/list/RemoveMember.js +4 -0
- package/dist/types/raw/list/RemoveMember.js.map +1 -0
- package/dist/types/raw/tweet/Bookmark.d.ts +12 -0
- package/dist/types/raw/tweet/Bookmark.js +4 -0
- package/dist/types/raw/tweet/Bookmark.js.map +1 -0
- package/dist/types/raw/tweet/Unbookmark.d.ts +11 -0
- package/dist/types/raw/tweet/Unbookmark.js +4 -0
- package/dist/types/raw/tweet/Unbookmark.js.map +1 -0
- package/dist/types/raw/user/Analytics.d.ts +6 -18
- package/dist/types/raw/user/Analytics.js +0 -1
- package/dist/types/raw/user/Analytics.js.map +1 -1
- package/dist/types/raw/user/Lists.d.ts +319 -0
- package/dist/types/raw/user/Lists.js +4 -0
- package/dist/types/raw/user/Lists.js.map +1 -0
- package/eslint.config.mjs +1 -1
- package/package.json +11 -6
- package/playground/.env.example +1 -0
- package/playground/README.md +53 -0
- package/playground/index.js +15 -0
- package/playground/package.json +15 -0
- package/src/Rettiwt.ts +5 -0
- package/src/cli.ts +2 -0
- package/src/collections/Extractors.ts +29 -0
- package/src/collections/Groups.ts +11 -0
- package/src/collections/Requests.ts +20 -0
- package/src/commands/DirectMessage.ts +62 -0
- package/src/commands/List.ts +44 -3
- package/src/commands/Tweet.ts +29 -1
- package/src/commands/User.ts +65 -1
- package/src/enums/Data.ts +2 -0
- package/src/enums/Resource.ts +13 -0
- package/src/enums/raw/Analytics.ts +5 -2
- package/src/index.ts +15 -0
- package/src/models/args/FetchArgs.ts +17 -0
- package/src/models/args/PostArgs.ts +2 -0
- package/src/models/data/Analytics.ts +97 -0
- package/src/models/data/Conversation.ts +344 -0
- package/src/models/data/CursoredData.ts +7 -2
- package/src/models/data/DirectMessage.ts +335 -0
- package/src/models/data/Inbox.ts +124 -0
- package/src/models/data/List.ts +60 -1
- package/src/models/data/Tweet.ts +10 -8
- package/src/models/data/User.ts +6 -0
- package/src/requests/DirectMessage.ts +233 -0
- package/src/requests/List.ts +58 -0
- package/src/requests/Tweet.ts +32 -0
- package/src/requests/User.ts +70 -7
- package/src/services/public/DirectMessageService.ts +159 -0
- package/src/services/public/FetcherService.ts +3 -3
- package/src/services/public/ListService.ts +127 -0
- package/src/services/public/TweetService.ts +82 -0
- package/src/services/public/UserService.ts +110 -2
- package/src/types/args/FetchArgs.ts +77 -12
- package/src/types/args/PostArgs.ts +31 -11
- package/src/types/data/Analytics.ts +58 -0
- package/src/types/data/Conversation.ts +44 -0
- package/src/types/data/CursoredData.ts +4 -1
- package/src/types/data/DirectMessage.ts +33 -0
- package/src/types/data/Inbox.ts +23 -0
- package/src/types/data/List.ts +7 -1
- package/src/types/data/Tweet.ts +6 -6
- package/src/types/data/User.ts +6 -0
- package/src/types/raw/base/Analytic.ts +7 -1
- package/src/types/raw/base/Message.ts +22 -0
- package/src/types/raw/base/Tweet.ts +6 -6
- package/src/types/raw/base/User.ts +2 -1
- package/src/types/raw/composite/TimelineList.ts +10 -0
- package/src/types/raw/dm/Conversation.ts +59 -0
- package/src/types/raw/dm/InboxInitial.ts +155 -0
- package/src/types/raw/dm/InboxTimeline.ts +301 -0
- package/src/types/raw/dm/UserUpdates.ts +46 -0
- package/src/types/raw/list/AddMember.ts +175 -0
- package/src/types/raw/list/Details.ts +52 -13
- package/src/types/raw/list/RemoveMember.ts +174 -0
- package/src/types/raw/tweet/Bookmark.ts +14 -0
- package/src/types/raw/tweet/Unbookmark.ts +14 -0
- package/src/types/raw/user/Analytics.ts +6 -22
- package/src/types/raw/user/Lists.ts +378 -0
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: '🐛 Bug report'
|
|
2
|
+
description: Report a bug to help us improve Rettiwt-API.
|
|
3
|
+
labels: ['triage', 'bug']
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
Before reporting a bug, please make sure you have read through our [documentation](https://rishikant181.github.io/Rettiwt-API/) and checked existing [issues](https://github.com/Rishikant181/Rettiwt-API/issues?q=is%3Aissue%20is%3Aopen%20sort%3Aupdated-desc).
|
|
9
|
+
- type: textarea
|
|
10
|
+
id: env
|
|
11
|
+
attributes:
|
|
12
|
+
label: Environment
|
|
13
|
+
description: Please provide your environment details. You can use `node -v` and `npm list rettiwt-api` to fill this section.
|
|
14
|
+
placeholder: |
|
|
15
|
+
- Operating System: `Windows/Linux/macOS`
|
|
16
|
+
- Node Version: `v22.x.x` (Rettiwt-API requires NodeJS 20+)
|
|
17
|
+
- Rettiwt-API Version: `x.x.x`
|
|
18
|
+
- Package Manager: `npm/yarn/pnpm`
|
|
19
|
+
- CLI or Dependency: `CLI` or `Dependency`
|
|
20
|
+
validations:
|
|
21
|
+
required: true
|
|
22
|
+
- type: textarea
|
|
23
|
+
id: reproduction
|
|
24
|
+
attributes:
|
|
25
|
+
label: Reproduction
|
|
26
|
+
description: Please provide a minimal code snippet or CLI command that reproduces the issue. If possible, include the API_KEY usage and any relevant configuration. If the report is vague and has no reproduction, it may be closed automatically.
|
|
27
|
+
placeholder: |
|
|
28
|
+
```ts
|
|
29
|
+
import { Rettiwt } from 'rettiwt-api';
|
|
30
|
+
const rettiwt = new Rettiwt({ apiKey: '<API_KEY>' });
|
|
31
|
+
// ...
|
|
32
|
+
```
|
|
33
|
+
or
|
|
34
|
+
```sh
|
|
35
|
+
rettiwt <command> -k <API_KEY>
|
|
36
|
+
```
|
|
37
|
+
validations:
|
|
38
|
+
required: true
|
|
39
|
+
- type: textarea
|
|
40
|
+
id: description
|
|
41
|
+
attributes:
|
|
42
|
+
label: Description
|
|
43
|
+
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, mention it here.
|
|
44
|
+
validations:
|
|
45
|
+
required: true
|
|
46
|
+
- type: textarea
|
|
47
|
+
id: additional
|
|
48
|
+
attributes:
|
|
49
|
+
label: Additional context
|
|
50
|
+
description: If applicable, add any other context, configuration, or screenshots here.
|
|
51
|
+
- type: textarea
|
|
52
|
+
id: logs
|
|
53
|
+
attributes:
|
|
54
|
+
label: Logs
|
|
55
|
+
description: |
|
|
56
|
+
Please copy-paste any error logs or stack traces here. Avoid screenshots if possible.
|
|
57
|
+
render: shell-script
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: '🚀 Feature request (Rettiwt-API)'
|
|
2
|
+
description: Suggest an idea or enhancement for Rettiwt-API.
|
|
3
|
+
labels: ['triage', 'enhancement', 'feature-request']
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
Before requesting a feature, please make sure you have read through our [documentation](https://rishikant181.github.io/Rettiwt-API/) and checked existing [issues](https://github.com/Rishikant181/Rettiwt-API/issues?q=is%3Aissue%20is%3Aopen%20sort%3Aupdated-desc).
|
|
9
|
+
- type: textarea
|
|
10
|
+
id: description
|
|
11
|
+
attributes:
|
|
12
|
+
label: Description
|
|
13
|
+
description: A clear and concise description of the feature or enhancement. Include possible use cases, alternatives, and links to any prototype or related module.
|
|
14
|
+
validations:
|
|
15
|
+
required: true
|
|
16
|
+
- type: textarea
|
|
17
|
+
id: additional
|
|
18
|
+
attributes:
|
|
19
|
+
label: Additional context
|
|
20
|
+
description: If applicable, add any other context, configuration, or screenshots here.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: '💬 Question (Rettiwt-API)'
|
|
2
|
+
description: Ask a question about Rettiwt-API.
|
|
3
|
+
labels: ['question']
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
Before asking a question, please make sure you have read through our [documentation](https://rishikant181.github.io/Rettiwt-API/) and checked existing [issues](https://github.com/Rishikant181/Rettiwt-API/issues?q=is%3Aissue%20is%3Aopen%20sort%3Aupdated-desc).
|
|
9
|
+
- type: textarea
|
|
10
|
+
id: description
|
|
11
|
+
attributes:
|
|
12
|
+
label: Description
|
|
13
|
+
description: Please provide a clear and concise question. Include any relevant context, code snippets, or links to documentation.
|
|
14
|
+
validations:
|
|
15
|
+
required: true
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
## 🔗 Related Issue
|
|
2
|
+
|
|
3
|
+
<!-- Reference any related issue or discussion, e.g. "Closes #123" -->
|
|
4
|
+
|
|
5
|
+
## ❓ Type of Change
|
|
6
|
+
|
|
7
|
+
<!-- Select all that apply -->
|
|
8
|
+
|
|
9
|
+
- [ ] 📖 Documentation (docs, README, or comments)
|
|
10
|
+
- [ ] 🐞 Bug fix (non-breaking fix for an issue)
|
|
11
|
+
- [ ] 👌 Enhancement (improvement to existing functionality)
|
|
12
|
+
- [ ] ✨ New feature (adds new functionality)
|
|
13
|
+
- [ ] 🧹 Chore (build, tooling, dependencies)
|
|
14
|
+
- [ ] ⚠️ Breaking change (affects existing usage)
|
|
15
|
+
|
|
16
|
+
## 📚 Description
|
|
17
|
+
|
|
18
|
+
<!--
|
|
19
|
+
Describe your changes and their motivation.
|
|
20
|
+
What problem does this solve? Any relevant context for Rettiwt-API?
|
|
21
|
+
-->
|
|
22
|
+
|
|
23
|
+
## 📝 Checklist
|
|
24
|
+
|
|
25
|
+
- [ ] Issue/discussion linked above.
|
|
26
|
+
- [ ] Documentation updated (if needed).
|
|
27
|
+
- [ ] Code follows project conventions and ESLint rules.
|
|
28
|
+
- [ ] No sensitive data or credentials are included.
|
|
29
|
+
|
|
30
|
+
<!--
|
|
31
|
+
If you need help, mention @Rishikant181 or ask in the discussions.
|
|
32
|
+
-->
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- dev
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- dev
|
|
10
|
+
jobs:
|
|
11
|
+
ci:
|
|
12
|
+
runs-on: ${{ matrix.os }}
|
|
13
|
+
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
os: [ubuntu-latest]
|
|
17
|
+
node: [22]
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Checkout
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
- name: Install node
|
|
24
|
+
uses: actions/setup-node@v4
|
|
25
|
+
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: npm install
|
|
28
|
+
|
|
29
|
+
- name: Run Format check
|
|
30
|
+
run: npm run format:check
|
|
31
|
+
|
|
32
|
+
- name: Run Lint check
|
|
33
|
+
run: npm run lint:check
|
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
22.21.0
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ A CLI tool and an API for fetching data from Twitter for free!
|
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
|
7
|
-
- NodeJS
|
|
7
|
+
- NodeJS 22
|
|
8
8
|
- A working Twitter account (optional)
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
@@ -29,9 +29,16 @@ Rettiwt-API can be used with or without logging in to Twitter. As such, the two
|
|
|
29
29
|
|
|
30
30
|
- 'User' authentication (logging in) grants access to the following resources/actions:
|
|
31
31
|
|
|
32
|
+
- Direct Message Inbox
|
|
33
|
+
- Direct Message Conversations
|
|
34
|
+
- Direct Message Delete Conversation
|
|
35
|
+
- List Add Member
|
|
36
|
+
- List Details
|
|
32
37
|
- List Members
|
|
38
|
+
- List Remove Member
|
|
33
39
|
- List Tweets
|
|
34
40
|
- Tweet Details - Single and Bulk
|
|
41
|
+
- Tweet Bookmark
|
|
35
42
|
- Tweet Like
|
|
36
43
|
- Tweet Likers
|
|
37
44
|
- Tweet Media Upload
|
|
@@ -42,11 +49,13 @@ Rettiwt-API can be used with or without logging in to Twitter. As such, the two
|
|
|
42
49
|
- Tweet Schedule
|
|
43
50
|
- Tweet Search
|
|
44
51
|
- Tweet Stream
|
|
52
|
+
- Tweet Unbookmark
|
|
45
53
|
- Tweet Unlike
|
|
46
54
|
- Tweet Unpost
|
|
47
55
|
- Tweet Unretweet
|
|
48
56
|
- Tweet Unschedule
|
|
49
57
|
- User Affiliates
|
|
58
|
+
- User Analytics (Only for Premium accounts)
|
|
50
59
|
- User Bookmarks
|
|
51
60
|
- User Details - Single (by ID and Username) and Bulk (by ID only)
|
|
52
61
|
- User Follow
|
|
@@ -55,6 +64,7 @@ Rettiwt-API can be used with or without logging in to Twitter. As such, the two
|
|
|
55
64
|
- User Following
|
|
56
65
|
- User Highlights
|
|
57
66
|
- User Likes
|
|
67
|
+
- User Lists
|
|
58
68
|
- User Media
|
|
59
69
|
- User Notification
|
|
60
70
|
- User Recommended Feed
|
|
@@ -124,9 +134,10 @@ A new Rettiwt instance can be initialized using the following code snippets:
|
|
|
124
134
|
- `const rettiwt = new Rettiwt()` (for 'guest' authentication)
|
|
125
135
|
- `const rettiwt = new Rettiwt({ apiKey: API_KEY })` (for 'user' authentication)
|
|
126
136
|
|
|
127
|
-
The Rettiwt class has
|
|
137
|
+
The Rettiwt class has four members:
|
|
128
138
|
|
|
129
|
-
- `
|
|
139
|
+
- `dm` member, for accessing resources related to direct messages.
|
|
140
|
+
- `list` member, for accessing resources related to lists.
|
|
130
141
|
- `tweet` member, for accessing resources related to tweets.
|
|
131
142
|
- `user` member, for accessing resources related to users.
|
|
132
143
|
|
|
@@ -399,7 +410,7 @@ rettiwt.user.details('<username>')
|
|
|
399
410
|
However, if further control over the raw response is required, Rettiwt-API provides the [`FetcherService`](https://rishikant181.github.io/Rettiwt-API/classes/FetcherService.html) class which provides direct access to the raw response, but keep in mind, this delegates the task of parsing and filtering the results to the consumer of the library. The following example demonstrates using the `FetcherService` class:
|
|
400
411
|
|
|
401
412
|
```ts
|
|
402
|
-
import { RettiwtConfig, FetcherService,
|
|
413
|
+
import { RettiwtConfig, FetcherService, ResourceType, IUserDetailsResponse } from 'rettiwt-api';
|
|
403
414
|
|
|
404
415
|
// Creating the configuration for Rettiwt
|
|
405
416
|
const config = new RettiwtConfig({ apiKey: '<API_KEY>' });
|
|
@@ -409,7 +420,7 @@ const fetcher = new FetcherService(config);
|
|
|
409
420
|
|
|
410
421
|
// Fetching the details of the given user
|
|
411
422
|
fetcher
|
|
412
|
-
.request<IUserDetailsResponse>(
|
|
423
|
+
.request<IUserDetailsResponse>(ResourceType.USER_DETAILS_BY_USERNAME, { id: 'user1' })
|
|
413
424
|
.then((res) => {
|
|
414
425
|
console.log(res);
|
|
415
426
|
})
|
|
@@ -418,7 +429,7 @@ fetcher
|
|
|
418
429
|
});
|
|
419
430
|
```
|
|
420
431
|
|
|
421
|
-
As demonstrated by the example, the raw data can be accessed by using the `request` method of the `FetcherService` class, which takes two parameters. The first parameter is the name of the requested resource, while the second is an object specifying the associated arguments required for the given resource. The complete list of resource type can be checked [here](https://rishikant181.github.io/Rettiwt-API/enums/AuthService.html#
|
|
432
|
+
As demonstrated by the example, the raw data can be accessed by using the `request` method of the `FetcherService` class, which takes two parameters. The first parameter is the name of the requested resource, while the second is an object specifying the associated arguments required for the given resource. The complete list of resource type can be checked [here](https://rishikant181.github.io/Rettiwt-API/enums/AuthService.html#ResourceType). As for the resource specific argurments, they are the same as that of the methods of `Rettiwt` class' methods for the respective resources, but structured as an object. Notice how the `FetcherService` class takes the same arguments as the `Rettiwt` class, and the arguments have the same effects as they have in case of `Rettiwt` class.
|
|
422
433
|
|
|
423
434
|
#### Notes:
|
|
424
435
|
|
|
@@ -434,13 +445,23 @@ For handling and processing of data returned by the functions, it's always advis
|
|
|
434
445
|
|
|
435
446
|
So far, the following operations are supported:
|
|
436
447
|
|
|
448
|
+
### Direct Messages
|
|
449
|
+
|
|
450
|
+
- [Getting the DM inbox](https://rishikant181.github.io/Rettiwt-API/classes/DirectMessageService.html#inbox)
|
|
451
|
+
- [Getting a specific conversation with full message history](https://rishikant181.github.io/Rettiwt-API/classes/DirectMessageService.html#conversation)
|
|
452
|
+
- [Deleting a conversation](https://rishikant181.github.io/Rettiwt-API/classes/DirectMessageService.html#deleteConversation)
|
|
453
|
+
|
|
437
454
|
### List
|
|
438
455
|
|
|
456
|
+
- [Adding a member to a given Twitter list](https://rishikant181.github.io/Rettiwt-API/classes/ListService.html#addMember)
|
|
457
|
+
- [Getting the details of a given Twitter list](https://rishikant181.github.io/Rettiwt-API/classes/ListService.html#details)
|
|
439
458
|
- [Getting the members of a given Twitter list](https://rishikant181.github.io/Rettiwt-API/classes/ListService.html#members)
|
|
459
|
+
- [Removing a member from a given Twitter list](https://rishikant181.github.io/Rettiwt-API/classes/ListService.html#removeMember)
|
|
440
460
|
- [Getting the list of tweets from a given Twitter list](https://rishikant181.github.io/Rettiwt-API/classes/ListService.html#tweets)
|
|
441
461
|
|
|
442
462
|
### Tweets
|
|
443
463
|
|
|
464
|
+
- [Bookmarking a tweet](https://rishikant181.github.io/Rettiwt-API/classes/TweetService.html#bookmark)
|
|
444
465
|
- [Getting the details of a tweet/multiple tweets](https://rishikant181.github.io/Rettiwt-API/classes/TweetService.html#details)
|
|
445
466
|
- [Liking a tweet](https://rishikant181.github.io/Rettiwt-API/classes/TweetService.html#like)
|
|
446
467
|
- [Getting the list of users who liked your tweet](https://rishikant181.github.io/Rettiwt-API/classes/TweetService.html#likers)
|
|
@@ -451,6 +472,7 @@ So far, the following operations are supported:
|
|
|
451
472
|
- [Scheduling a new tweet](https://rishikant181.github.io/Rettiwt-API/classes/TweetService.html#schedule)
|
|
452
473
|
- [Searching for the list of tweets that match a given filter](https://rishikant181.github.io/Rettiwt-API/classes/TweetService.html#search)
|
|
453
474
|
- [Streaming filtered tweets in pseudo-realtime](https://rishikant181.github.io/Rettiwt-API/classes/TweetService.html#stream)
|
|
475
|
+
- [Unbookmarking a tweet](https://rishikant181.github.io/Rettiwt-API/classes/TweetService.html#unbookmark)
|
|
454
476
|
- [Unliking a tweet](https://rishikant181.github.io/Rettiwt-API/classes/TweetService.html#unlike)
|
|
455
477
|
- [Unposting a tweet](https://rishikant181.github.io/Rettiwt-API/classes/TweetService.html#unpost)
|
|
456
478
|
- [Unretweeting a tweet](https://rishikant181.github.io/Rettiwt-API/classes/TweetService.html#unretweet)
|
|
@@ -460,6 +482,7 @@ So far, the following operations are supported:
|
|
|
460
482
|
### Users
|
|
461
483
|
|
|
462
484
|
- [Getting the list of users affiliated with the given user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#affiliates)
|
|
485
|
+
- [Getting the analytics of the logged-in user (premium accounts only)](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#analytics)
|
|
463
486
|
- [Getting the list of tweets bookmarked by the logged-in user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#bookmarks)
|
|
464
487
|
- [Getting the details of a user/multiple users](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#details)
|
|
465
488
|
- [Following a given user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#follow)
|
|
@@ -468,6 +491,7 @@ So far, the following operations are supported:
|
|
|
468
491
|
- [Getting the list of users who are followed by the given user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#following)
|
|
469
492
|
- [Getting the list of highlighted tweets of the given user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#highlights)
|
|
470
493
|
- [Getting the list of tweets liked by the logged-in user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#likes)
|
|
494
|
+
- [Getting the lists of the logged-in user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#lists)
|
|
471
495
|
- [Getting the media timeline of the given user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#media)
|
|
472
496
|
- [Streaming notifications of the logged-in user in pseudo-realtime](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#notifications)
|
|
473
497
|
- [Getting the recommended feed of the logged-in user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#recommended)
|
package/dist/Rettiwt.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DirectMessageService } from './services/public/DirectMessageService';
|
|
1
2
|
import { ListService } from './services/public/ListService';
|
|
2
3
|
import { TweetService } from './services/public/TweetService';
|
|
3
4
|
import { UserService } from './services/public/UserService';
|
|
@@ -46,6 +47,8 @@ import { IRettiwtConfig } from './types/RettiwtConfig';
|
|
|
46
47
|
export declare class Rettiwt {
|
|
47
48
|
/** The configuration for Rettiwt. */
|
|
48
49
|
private _config;
|
|
50
|
+
/** The instance used to fetch data related to direct messages. */
|
|
51
|
+
dm: DirectMessageService;
|
|
49
52
|
/** The instance used to fetch data related to lists. */
|
|
50
53
|
list: ListService;
|
|
51
54
|
/** The instance used to fetch data related to tweets. */
|
package/dist/Rettiwt.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Rettiwt = void 0;
|
|
4
4
|
const RettiwtConfig_1 = require("./models/RettiwtConfig");
|
|
5
|
+
const DirectMessageService_1 = require("./services/public/DirectMessageService");
|
|
5
6
|
const ListService_1 = require("./services/public/ListService");
|
|
6
7
|
const TweetService_1 = require("./services/public/TweetService");
|
|
7
8
|
const UserService_1 = require("./services/public/UserService");
|
|
@@ -49,6 +50,8 @@ const UserService_1 = require("./services/public/UserService");
|
|
|
49
50
|
class Rettiwt {
|
|
50
51
|
/** The configuration for Rettiwt. */
|
|
51
52
|
_config;
|
|
53
|
+
/** The instance used to fetch data related to direct messages. */
|
|
54
|
+
dm;
|
|
52
55
|
/** The instance used to fetch data related to lists. */
|
|
53
56
|
list;
|
|
54
57
|
/** The instance used to fetch data related to tweets. */
|
|
@@ -62,6 +65,7 @@ class Rettiwt {
|
|
|
62
65
|
*/
|
|
63
66
|
constructor(config) {
|
|
64
67
|
this._config = new RettiwtConfig_1.RettiwtConfig(config);
|
|
68
|
+
this.dm = new DirectMessageService_1.DirectMessageService(this._config);
|
|
65
69
|
this.list = new ListService_1.ListService(this._config);
|
|
66
70
|
this.tweet = new TweetService_1.TweetService(this._config);
|
|
67
71
|
this.user = new UserService_1.UserService(this._config);
|
package/dist/Rettiwt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rettiwt.js","sourceRoot":"","sources":["../src/Rettiwt.ts"],"names":[],"mappings":";;;AAAA,0DAAuD;AACvD,+DAA4D;AAC5D,iEAA8D;AAC9D,+DAA4D;AAG5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,OAAO;IACnB,qCAAqC;IAC7B,OAAO,CAAgB;IAE/B,wDAAwD;IACjD,IAAI,CAAc;IAEzB,yDAAyD;IAClD,KAAK,CAAe;IAE3B,wDAAwD;IACjD,IAAI,CAAc;IAEzB;;;;OAIG;IACH,YAAmB,MAAuB;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,6BAAa,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,yBAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,KAAK,GAAG,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,IAAI,GAAG,IAAI,yBAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,6DAA6D;IAC7D,IAAW,MAAM;QAChB,OAAO,IAAI,CAAC,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6DAA6D;IAC7D,IAAW,MAAM;QAChB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;IAC5B,CAAC;IAED,gDAAgD;IAChD,IAAW,MAAM,CAAC,MAA0B;QAC3C,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;IAC9B,CAAC;IAED,uDAAuD;IACvD,IAAW,OAAO,CAAC,OAAkC;QACpD,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;IAChC,CAAC;IAED,kDAAkD;IAClD,IAAW,QAAQ,CAAC,QAAa;QAChC,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAClC,CAAC;CACD;AAhDD,0BAgDC"}
|
package/dist/cli.js
CHANGED
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const commander_1 = require("commander");
|
|
8
|
+
const DirectMessage_1 = __importDefault(require("./commands/DirectMessage"));
|
|
8
9
|
const List_1 = __importDefault(require("./commands/List"));
|
|
9
10
|
const Tweet_1 = __importDefault(require("./commands/Tweet"));
|
|
10
11
|
const User_1 = __importDefault(require("./commands/User"));
|
|
@@ -33,6 +34,7 @@ const RettiwtInstance = new Rettiwt_1.Rettiwt({
|
|
|
33
34
|
delay: Program.opts().delay,
|
|
34
35
|
});
|
|
35
36
|
// Adding sub-commands
|
|
37
|
+
Program.addCommand((0, DirectMessage_1.default)(RettiwtInstance));
|
|
36
38
|
Program.addCommand((0, List_1.default)(RettiwtInstance));
|
|
37
39
|
Program.addCommand((0, Tweet_1.default)(RettiwtInstance));
|
|
38
40
|
Program.addCommand((0, User_1.default)(RettiwtInstance));
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;AAEA,yCAA0C;A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O,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;IAC5E,UAAU,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,OAAiB;IAC5C,KAAK,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,KAAe;CACrC,CAAC,CAAC;AAEH,sBAAsB;AACtB,OAAO,CAAC,UAAU,CAAC,IAAA,uBAAE,EAAC,eAAe,CAAC,CAAC,CAAC;AACxC,OAAO,CAAC,UAAU,CAAC,IAAA,cAAI,EAAC,eAAe,CAAC,CAAC,CAAC;AAC1C,OAAO,CAAC,UAAU,CAAC,IAAA,eAAK,EAAC,eAAe,CAAC,CAAC,CAAC;AAC3C,OAAO,CAAC,UAAU,CAAC,IAAA,cAAI,EAAC,eAAe,CAAC,CAAC,CAAC;AAE1C,qBAAqB;AACrB,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
+
import { Analytics } from '../models/data/Analytics';
|
|
2
|
+
import { Conversation } from '../models/data/Conversation';
|
|
1
3
|
import { CursoredData } from '../models/data/CursoredData';
|
|
4
|
+
import { Inbox } from '../models/data/Inbox';
|
|
5
|
+
import { List } from '../models/data/List';
|
|
2
6
|
import { Notification } from '../models/data/Notification';
|
|
3
7
|
import { Tweet } from '../models/data/Tweet';
|
|
4
8
|
import { User } from '../models/data/User';
|
|
9
|
+
import { IConversationTimelineResponse } from '../types/raw/dm/Conversation';
|
|
10
|
+
import { IInboxInitialResponse } from '../types/raw/dm/InboxInitial';
|
|
11
|
+
import { IInboxTimelineResponse } from '../types/raw/dm/InboxTimeline';
|
|
12
|
+
import { IListMemberAddResponse } from '../types/raw/list/AddMember';
|
|
13
|
+
import { IListDetailsResponse } from '../types/raw/list/Details';
|
|
5
14
|
import { IListMembersResponse } from '../types/raw/list/Members';
|
|
15
|
+
import { IListMemberRemoveResponse } from '../types/raw/list/RemoveMember';
|
|
6
16
|
import { IListTweetsResponse } from '../types/raw/list/Tweets';
|
|
7
17
|
import { IMediaInitializeUploadResponse } from '../types/raw/media/InitalizeUpload';
|
|
18
|
+
import { ITweetBookmarkResponse } from '../types/raw/tweet/Bookmark';
|
|
8
19
|
import { ITweetDetailsResponse } from '../types/raw/tweet/Details';
|
|
9
20
|
import { ITweetDetailsBulkResponse } from '../types/raw/tweet/DetailsBulk';
|
|
10
21
|
import { ITweetLikeResponse } from '../types/raw/tweet/Like';
|
|
@@ -15,11 +26,13 @@ import { ITweetRetweetResponse } from '../types/raw/tweet/Retweet';
|
|
|
15
26
|
import { ITweetRetweetersResponse } from '../types/raw/tweet/Retweeters';
|
|
16
27
|
import { ITweetScheduleResponse } from '../types/raw/tweet/Schedule';
|
|
17
28
|
import { ITweetSearchResponse } from '../types/raw/tweet/Search';
|
|
29
|
+
import { ITweetUnbookmarkResponse } from '../types/raw/tweet/Unbookmark';
|
|
18
30
|
import { ITweetUnlikeResponse } from '../types/raw/tweet/Unlike';
|
|
19
31
|
import { ITweetUnpostResponse } from '../types/raw/tweet/Unpost';
|
|
20
32
|
import { ITweetUnretweetResponse } from '../types/raw/tweet/Unretweet';
|
|
21
33
|
import { ITweetUnscheduleResponse } from '../types/raw/tweet/Unschedule';
|
|
22
34
|
import { IUserAffiliatesResponse } from '../types/raw/user/Affiliates';
|
|
35
|
+
import { IUserAnalyticsResponse } from '../types/raw/user/Analytics';
|
|
23
36
|
import { IUserBookmarksResponse } from '../types/raw/user/Bookmarks';
|
|
24
37
|
import { IUserDetailsResponse } from '../types/raw/user/Details';
|
|
25
38
|
import { IUserDetailsBulkResponse } from '../types/raw/user/DetailsBulk';
|
|
@@ -29,6 +42,7 @@ import { IUserFollowersResponse } from '../types/raw/user/Followers';
|
|
|
29
42
|
import { IUserFollowingResponse } from '../types/raw/user/Following';
|
|
30
43
|
import { IUserHighlightsResponse } from '../types/raw/user/Highlights';
|
|
31
44
|
import { IUserLikesResponse } from '../types/raw/user/Likes';
|
|
45
|
+
import { IUserListsResponse } from '../types/raw/user/Lists';
|
|
32
46
|
import { IUserMediaResponse } from '../types/raw/user/Media';
|
|
33
47
|
import { IUserNotificationsResponse } from '../types/raw/user/Notifications';
|
|
34
48
|
import { IUserRecommendedResponse } from '../types/raw/user/Recommended';
|
|
@@ -42,11 +56,18 @@ import { IUserUnfollowResponse } from '../types/raw/user/Unfollow';
|
|
|
42
56
|
* @internal
|
|
43
57
|
*/
|
|
44
58
|
export declare const Extractors: {
|
|
59
|
+
LIST_DETAILS: (response: IListDetailsResponse, id: string) => List | undefined;
|
|
45
60
|
LIST_MEMBERS: (response: IListMembersResponse) => CursoredData<User>;
|
|
61
|
+
LIST_MEMBER_ADD: (response: IListMemberAddResponse) => number | undefined;
|
|
62
|
+
LIST_MEMBER_REMOVE: (response: IListMemberRemoveResponse) => number | undefined;
|
|
46
63
|
LIST_TWEETS: (response: IListTweetsResponse) => CursoredData<Tweet>;
|
|
47
64
|
MEDIA_UPLOAD_APPEND: () => void;
|
|
48
65
|
MEDIA_UPLOAD_FINALIZE: () => void;
|
|
49
66
|
MEDIA_UPLOAD_INITIALIZE: (response: IMediaInitializeUploadResponse) => string;
|
|
67
|
+
DM_CONVERSATION: (response: IConversationTimelineResponse) => Conversation | undefined;
|
|
68
|
+
DM_INBOX_INITIAL_STATE: (response: IInboxInitialResponse) => Inbox;
|
|
69
|
+
DM_INBOX_TIMELINE: (response: IInboxTimelineResponse) => Inbox;
|
|
70
|
+
TWEET_BOOKMARK: (response: ITweetBookmarkResponse) => boolean;
|
|
50
71
|
TWEET_DETAILS: (response: ITweetDetailsResponse, id: string) => Tweet | undefined;
|
|
51
72
|
TWEET_DETAILS_ALT: (response: ITweetRepliesResponse, id: string) => Tweet | undefined;
|
|
52
73
|
TWEET_DETAILS_BULK: (response: ITweetDetailsBulkResponse, ids: string[]) => Tweet[];
|
|
@@ -58,11 +79,13 @@ export declare const Extractors: {
|
|
|
58
79
|
TWEET_RETWEETERS: (response: ITweetRetweetersResponse) => CursoredData<User>;
|
|
59
80
|
TWEET_SCHEDULE: (response: ITweetScheduleResponse) => string;
|
|
60
81
|
TWEET_SEARCH: (response: ITweetSearchResponse) => CursoredData<Tweet>;
|
|
82
|
+
TWEET_UNBOOKMARK: (response: ITweetUnbookmarkResponse) => boolean;
|
|
61
83
|
TWEET_UNLIKE: (response: ITweetUnlikeResponse) => boolean;
|
|
62
84
|
TWEET_UNPOST: (response: ITweetUnpostResponse) => boolean;
|
|
63
85
|
TWEET_UNRETWEET: (response: ITweetUnretweetResponse) => boolean;
|
|
64
86
|
TWEET_UNSCHEDULE: (response: ITweetUnscheduleResponse) => boolean;
|
|
65
87
|
USER_AFFILIATES: (response: IUserAffiliatesResponse) => CursoredData<User>;
|
|
88
|
+
USER_ANALYTICS: (response: IUserAnalyticsResponse) => Analytics;
|
|
66
89
|
USER_BOOKMARKS: (response: IUserBookmarksResponse) => CursoredData<Tweet>;
|
|
67
90
|
USER_DETAILS_BY_USERNAME: (response: IUserDetailsResponse) => User | undefined;
|
|
68
91
|
USER_DETAILS_BY_ID: (response: IUserDetailsResponse) => User | undefined;
|
|
@@ -73,6 +96,7 @@ export declare const Extractors: {
|
|
|
73
96
|
USER_FOLLOWING: (response: IUserFollowingResponse) => CursoredData<User>;
|
|
74
97
|
USER_FOLLOWERS: (response: IUserFollowersResponse) => CursoredData<User>;
|
|
75
98
|
USER_HIGHLIGHTS: (response: IUserHighlightsResponse) => CursoredData<Tweet>;
|
|
99
|
+
USER_LISTS: (response: IUserListsResponse) => CursoredData<List>;
|
|
76
100
|
USER_LIKES: (response: IUserLikesResponse) => CursoredData<Tweet>;
|
|
77
101
|
USER_MEDIA: (response: IUserMediaResponse) => CursoredData<Tweet>;
|
|
78
102
|
USER_NOTIFICATIONS: (response: IUserNotificationsResponse) => CursoredData<Notification>;
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Extractors = void 0;
|
|
4
4
|
const Data_1 = require("../enums/Data");
|
|
5
|
+
const Analytics_1 = require("../models/data/Analytics");
|
|
6
|
+
const Conversation_1 = require("../models/data/Conversation");
|
|
5
7
|
const CursoredData_1 = require("../models/data/CursoredData");
|
|
8
|
+
const Inbox_1 = require("../models/data/Inbox");
|
|
9
|
+
const List_1 = require("../models/data/List");
|
|
6
10
|
const Tweet_1 = require("../models/data/Tweet");
|
|
7
11
|
const User_1 = require("../models/data/User");
|
|
8
12
|
/**
|
|
@@ -12,11 +16,18 @@ const User_1 = require("../models/data/User");
|
|
|
12
16
|
*/
|
|
13
17
|
exports.Extractors = {
|
|
14
18
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
19
|
+
LIST_DETAILS: (response, id) => List_1.List.single(response, id),
|
|
15
20
|
LIST_MEMBERS: (response) => new CursoredData_1.CursoredData(response, Data_1.BaseType.USER),
|
|
21
|
+
LIST_MEMBER_ADD: (response) => response.data?.list?.member_count ?? undefined,
|
|
22
|
+
LIST_MEMBER_REMOVE: (response) => response.data?.list?.member_count ?? undefined,
|
|
16
23
|
LIST_TWEETS: (response) => new CursoredData_1.CursoredData(response, Data_1.BaseType.TWEET),
|
|
17
24
|
MEDIA_UPLOAD_APPEND: () => undefined,
|
|
18
25
|
MEDIA_UPLOAD_FINALIZE: () => undefined,
|
|
19
26
|
MEDIA_UPLOAD_INITIALIZE: (response) => response.media_id_string ?? undefined,
|
|
27
|
+
DM_CONVERSATION: (response) => Conversation_1.Conversation.fromConversationTimeline(response),
|
|
28
|
+
DM_INBOX_INITIAL_STATE: (response) => new Inbox_1.Inbox(response),
|
|
29
|
+
DM_INBOX_TIMELINE: (response) => new Inbox_1.Inbox(response),
|
|
30
|
+
TWEET_BOOKMARK: (response) => response?.data?.tweet_bookmark_put === 'Done',
|
|
20
31
|
TWEET_DETAILS: (response, id) => Tweet_1.Tweet.single(response, id),
|
|
21
32
|
TWEET_DETAILS_ALT: (response, id) => Tweet_1.Tweet.single(response, id),
|
|
22
33
|
TWEET_DETAILS_BULK: (response, ids) => Tweet_1.Tweet.multiple(response, ids),
|
|
@@ -28,11 +39,13 @@ exports.Extractors = {
|
|
|
28
39
|
TWEET_RETWEETERS: (response) => new CursoredData_1.CursoredData(response, Data_1.BaseType.USER),
|
|
29
40
|
TWEET_SCHEDULE: (response) => response?.data?.tweet?.rest_id ?? undefined,
|
|
30
41
|
TWEET_SEARCH: (response) => new CursoredData_1.CursoredData(response, Data_1.BaseType.TWEET),
|
|
42
|
+
TWEET_UNBOOKMARK: (response) => response?.data?.tweet_bookmark_delete === 'Done',
|
|
31
43
|
TWEET_UNLIKE: (response) => (response?.data?.unfavorite_tweet ? true : false),
|
|
32
44
|
TWEET_UNPOST: (response) => (response?.data?.delete_tweet ? true : false),
|
|
33
45
|
TWEET_UNRETWEET: (response) => response?.data?.unretweet?.source_tweet_results?.result ? true : false,
|
|
34
46
|
TWEET_UNSCHEDULE: (response) => response?.data?.scheduledtweet_delete == 'Done',
|
|
35
47
|
USER_AFFILIATES: (response) => new CursoredData_1.CursoredData(response, Data_1.BaseType.USER),
|
|
48
|
+
USER_ANALYTICS: (response) => new Analytics_1.Analytics(response.data.viewer_v2.user_results.result),
|
|
36
49
|
USER_BOOKMARKS: (response) => new CursoredData_1.CursoredData(response, Data_1.BaseType.TWEET),
|
|
37
50
|
USER_DETAILS_BY_USERNAME: (response) => User_1.User.single(response),
|
|
38
51
|
USER_DETAILS_BY_ID: (response) => User_1.User.single(response),
|
|
@@ -43,6 +56,7 @@ exports.Extractors = {
|
|
|
43
56
|
USER_FOLLOWING: (response) => new CursoredData_1.CursoredData(response, Data_1.BaseType.USER),
|
|
44
57
|
USER_FOLLOWERS: (response) => new CursoredData_1.CursoredData(response, Data_1.BaseType.USER),
|
|
45
58
|
USER_HIGHLIGHTS: (response) => new CursoredData_1.CursoredData(response, Data_1.BaseType.TWEET),
|
|
59
|
+
USER_LISTS: (response) => new CursoredData_1.CursoredData(response, Data_1.BaseType.LIST),
|
|
46
60
|
USER_LIKES: (response) => new CursoredData_1.CursoredData(response, Data_1.BaseType.TWEET),
|
|
47
61
|
USER_MEDIA: (response) => new CursoredData_1.CursoredData(response, Data_1.BaseType.TWEET),
|
|
48
62
|
USER_NOTIFICATIONS: (response) => new CursoredData_1.CursoredData(response, Data_1.BaseType.NOTIFICATION),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Extractors.js","sourceRoot":"","sources":["../../src/collections/Extractors.ts"],"names":[],"mappings":";;;AAAA,wCAAyC;AACzC,8DAA2D;
|
|
1
|
+
{"version":3,"file":"Extractors.js","sourceRoot":"","sources":["../../src/collections/Extractors.ts"],"names":[],"mappings":";;;AAAA,wCAAyC;AACzC,wDAAqD;AACrD,8DAA2D;AAC3D,8DAA2D;AAC3D,gDAA6C;AAC7C,8CAA2C;AAE3C,gDAA6C;AAC7C,8CAA2C;AA8C3C;;;;GAIG;AACU,QAAA,UAAU,GAAG;IACzB,yDAAyD;IAEzD,YAAY,EAAE,CAAC,QAA8B,EAAE,EAAU,EAAoB,EAAE,CAAC,WAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC;IACzG,YAAY,EAAE,CAAC,QAA8B,EAAsB,EAAE,CACpE,IAAI,2BAAY,CAAO,QAAQ,EAAE,eAAQ,CAAC,IAAI,CAAC;IAChD,eAAe,EAAE,CAAC,QAAgC,EAAsB,EAAE,CACzE,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,IAAI,SAAS;IAC/C,kBAAkB,EAAE,CAAC,QAAmC,EAAsB,EAAE,CAC/E,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,IAAI,SAAS;IAC/C,WAAW,EAAE,CAAC,QAA6B,EAAuB,EAAE,CACnE,IAAI,2BAAY,CAAQ,QAAQ,EAAE,eAAQ,CAAC,KAAK,CAAC;IAElD,mBAAmB,EAAE,GAAS,EAAE,CAAC,SAAS;IAC1C,qBAAqB,EAAE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Q,EAAE,eAAQ,CAAC,KAAK,CAAC;IAClD,UAAU,EAAE,CAAC,QAA4B,EAAsB,EAAE,CAAC,IAAI,2BAAY,CAAO,QAAQ,EAAE,eAAQ,CAAC,IAAI,CAAC;IACjH,UAAU,EAAE,CAAC,QAA4B,EAAuB,EAAE,CACjE,IAAI,2BAAY,CAAQ,QAAQ,EAAE,eAAQ,CAAC,KAAK,CAAC;IAClD,UAAU,EAAE,CAAC,QAA4B,EAAuB,EAAE,CACjE,IAAI,2BAAY,CAAQ,QAAQ,EAAE,eAAQ,CAAC,KAAK,CAAC;IAClD,kBAAkB,EAAE,CAAC,QAAoC,EAA8B,EAAE,CACxF,IAAI,2BAAY,CAAe,QAAQ,EAAE,eAAQ,CAAC,YAAY,CAAC;IAChE,kBAAkB,EAAE,CAAC,QAAoC,EAAsB,EAAE,CAChF,IAAI,2BAAY,CAAO,QAAQ,EAAE,eAAQ,CAAC,IAAI,CAAC;IAChD,aAAa,EAAE,CAAC,QAA6B,EAAuB,EAAE,CACrE,IAAI,2BAAY,CAAQ,QAAQ,EAAE,eAAQ,CAAC,KAAK,CAAC;IAClD,yBAAyB,EAAE,CAAC,QAAuC,EAAuB,EAAE,CAC3F,IAAI,2BAAY,CAAQ,QAAQ,EAAE,eAAQ,CAAC,KAAK,CAAC;IAClD,aAAa,EAAE,CAAC,QAA+B,EAAW,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAE1F,wDAAwD;CACxD,CAAC"}
|
|
@@ -18,8 +18,12 @@ exports.AllowGuestAuthenticationGroup = [
|
|
|
18
18
|
* @internal
|
|
19
19
|
*/
|
|
20
20
|
exports.FetchResourcesGroup = [
|
|
21
|
+
Resource_1.ResourceType.LIST_DETAILS,
|
|
21
22
|
Resource_1.ResourceType.LIST_MEMBERS,
|
|
22
23
|
Resource_1.ResourceType.LIST_TWEETS,
|
|
24
|
+
Resource_1.ResourceType.DM_CONVERSATION,
|
|
25
|
+
Resource_1.ResourceType.DM_INBOX_INITIAL_STATE,
|
|
26
|
+
Resource_1.ResourceType.DM_INBOX_TIMELINE,
|
|
23
27
|
Resource_1.ResourceType.TWEET_DETAILS,
|
|
24
28
|
Resource_1.ResourceType.TWEET_DETAILS_ALT,
|
|
25
29
|
Resource_1.ResourceType.TWEET_DETAILS_BULK,
|
|
@@ -28,6 +32,7 @@ exports.FetchResourcesGroup = [
|
|
|
28
32
|
Resource_1.ResourceType.TWEET_RETWEETERS,
|
|
29
33
|
Resource_1.ResourceType.TWEET_SEARCH,
|
|
30
34
|
Resource_1.ResourceType.USER_AFFILIATES,
|
|
35
|
+
Resource_1.ResourceType.USER_ANALYTICS,
|
|
31
36
|
Resource_1.ResourceType.USER_BOOKMARKS,
|
|
32
37
|
Resource_1.ResourceType.USER_DETAILS_BY_USERNAME,
|
|
33
38
|
Resource_1.ResourceType.USER_DETAILS_BY_ID,
|
|
@@ -38,6 +43,7 @@ exports.FetchResourcesGroup = [
|
|
|
38
43
|
Resource_1.ResourceType.USER_FOLLOWERS,
|
|
39
44
|
Resource_1.ResourceType.USER_HIGHLIGHTS,
|
|
40
45
|
Resource_1.ResourceType.USER_LIKES,
|
|
46
|
+
Resource_1.ResourceType.USER_LISTS,
|
|
41
47
|
Resource_1.ResourceType.USER_MEDIA,
|
|
42
48
|
Resource_1.ResourceType.USER_NOTIFICATIONS,
|
|
43
49
|
Resource_1.ResourceType.USER_SUBSCRIPTIONS,
|
|
@@ -50,13 +56,18 @@ exports.FetchResourcesGroup = [
|
|
|
50
56
|
* @internal
|
|
51
57
|
*/
|
|
52
58
|
exports.PostResourcesGroup = [
|
|
59
|
+
Resource_1.ResourceType.LIST_MEMBER_ADD,
|
|
60
|
+
Resource_1.ResourceType.LIST_MEMBER_REMOVE,
|
|
53
61
|
Resource_1.ResourceType.MEDIA_UPLOAD_APPEND,
|
|
54
62
|
Resource_1.ResourceType.MEDIA_UPLOAD_FINALIZE,
|
|
55
63
|
Resource_1.ResourceType.MEDIA_UPLOAD_INITIALIZE,
|
|
64
|
+
Resource_1.ResourceType.DM_DELETE_CONVERSATION,
|
|
65
|
+
Resource_1.ResourceType.TWEET_BOOKMARK,
|
|
56
66
|
Resource_1.ResourceType.TWEET_LIKE,
|
|
57
67
|
Resource_1.ResourceType.TWEET_POST,
|
|
58
68
|
Resource_1.ResourceType.TWEET_RETWEET,
|
|
59
69
|
Resource_1.ResourceType.TWEET_SCHEDULE,
|
|
70
|
+
Resource_1.ResourceType.TWEET_UNBOOKMARK,
|
|
60
71
|
Resource_1.ResourceType.TWEET_UNLIKE,
|
|
61
72
|
Resource_1.ResourceType.TWEET_UNPOST,
|
|
62
73
|
Resource_1.ResourceType.TWEET_UNRETWEET,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Groups.js","sourceRoot":"","sources":["../../src/collections/Groups.ts"],"names":[],"mappings":";;;AAAA,gDAAiD;AAEjD;;;;GAIG;AACU,QAAA,6BAA6B,GAAG;IAC5C,uBAAY,CAAC,aAAa;IAC1B,uBAAY,CAAC,wBAAwB;IACrC,uBAAY,CAAC,aAAa;CAC1B,CAAC;AAEF;;;;GAIG;AACU,QAAA,mBAAmB,GAAG;IAClC,uBAAY,CAAC,YAAY;IACzB,uBAAY,CAAC,WAAW;IACxB,uBAAY,CAAC,aAAa;IAC1B,uBAAY,CAAC,iBAAiB;IAC9B,uBAAY,CAAC,kBAAkB;IAC/B,uBAAY,CAAC,YAAY;IACzB,uBAAY,CAAC,aAAa;IAC1B,uBAAY,CAAC,gBAAgB;IAC7B,uBAAY,CAAC,YAAY;IACzB,uBAAY,CAAC,eAAe;IAC5B,uBAAY,CAAC,cAAc;IAC3B,uBAAY,CAAC,wBAAwB;IACrC,uBAAY,CAAC,kBAAkB;IAC/B,uBAAY,CAAC,wBAAwB;IACrC,uBAAY,CAAC,kBAAkB;IAC/B,uBAAY,CAAC,qBAAqB;IAClC,uBAAY,CAAC,cAAc;IAC3B,u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