rettiwt-api 7.0.2 → 7.1.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/README.md +38 -10
- package/dist/collections/Extractors.d.ts +14 -0
- package/dist/collections/Extractors.js +7 -0
- package/dist/collections/Extractors.js.map +1 -1
- package/dist/collections/Groups.js +7 -0
- package/dist/collections/Groups.js.map +1 -1
- package/dist/collections/Requests.js +7 -0
- package/dist/collections/Requests.js.map +1 -1
- package/dist/commands/List.js +87 -0
- package/dist/commands/List.js.map +1 -1
- package/dist/commands/Tweet.js +14 -0
- package/dist/commands/Tweet.js.map +1 -1
- package/dist/commands/User.js +13 -0
- package/dist/commands/User.js.map +1 -1
- package/dist/enums/Resource.d.ts +7 -0
- package/dist/enums/Resource.js +7 -0
- package/dist/enums/Resource.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js.map +1 -1
- package/dist/models/args/PostArgs.d.ts +31 -1
- package/dist/models/args/PostArgs.js +43 -1
- package/dist/models/args/PostArgs.js.map +1 -1
- package/dist/requests/List.d.ts +22 -0
- package/dist/requests/List.js +106 -0
- package/dist/requests/List.js.map +1 -1
- package/dist/requests/Tweet.d.ts +4 -0
- package/dist/requests/Tweet.js +59 -0
- package/dist/requests/Tweet.js.map +1 -1
- package/dist/requests/User.d.ts +4 -0
- package/dist/requests/User.js +56 -34
- package/dist/requests/User.js.map +1 -1
- package/dist/services/public/ListService.d.ts +136 -0
- package/dist/services/public/ListService.js +175 -0
- package/dist/services/public/ListService.js.map +1 -1
- package/dist/services/public/TweetService.d.ts +26 -0
- package/dist/services/public/TweetService.js +33 -0
- package/dist/services/public/TweetService.js.map +1 -1
- package/dist/services/public/UserService.d.ts +28 -0
- package/dist/services/public/UserService.js +35 -0
- package/dist/services/public/UserService.js.map +1 -1
- package/dist/types/args/PostArgs.d.ts +50 -0
- package/dist/types/raw/list/Create.d.ts +14 -0
- package/dist/types/raw/list/Create.js +4 -0
- package/dist/types/raw/list/Create.js.map +1 -0
- package/dist/types/raw/list/Delete.d.ts +10 -0
- package/dist/types/raw/list/Delete.js +4 -0
- package/dist/types/raw/list/Delete.js.map +1 -0
- package/dist/types/raw/list/Mute.d.ts +10 -0
- package/dist/types/raw/list/Mute.js +3 -0
- package/dist/types/raw/list/Mute.js.map +1 -0
- package/dist/types/raw/list/Unmute.d.ts +10 -0
- package/dist/types/raw/list/Unmute.js +3 -0
- package/dist/types/raw/list/Unmute.js.map +1 -0
- package/dist/types/raw/list/Update.d.ts +11 -0
- package/dist/types/raw/list/Update.js +3 -0
- package/dist/types/raw/list/Update.js.map +1 -0
- package/dist/types/raw/tweet/History.d.ts +48 -0
- package/dist/types/raw/tweet/History.js +4 -0
- package/dist/types/raw/tweet/History.js.map +1 -0
- package/dist/types/raw/user/RemoveFollower.d.ts +13 -0
- package/dist/types/raw/user/RemoveFollower.js +4 -0
- package/dist/types/raw/user/RemoveFollower.js.map +1 -0
- package/package.json +1 -1
- package/src/collections/Extractors.ts +16 -0
- package/src/collections/Groups.ts +7 -0
- package/src/collections/Requests.ts +7 -0
- package/src/commands/List.ts +100 -0
- package/src/commands/Tweet.ts +14 -0
- package/src/commands/User.ts +13 -0
- package/src/enums/Resource.ts +7 -0
- package/src/index.ts +7 -1
- package/src/models/args/PostArgs.ts +53 -1
- package/src/requests/List.ts +117 -0
- package/src/requests/Tweet.ts +60 -0
- package/src/requests/User.ts +61 -34
- package/src/services/public/ListService.ts +201 -0
- package/src/services/public/TweetService.ts +38 -0
- package/src/services/public/UserService.ts +40 -0
- package/src/types/args/PostArgs.ts +58 -0
- package/src/types/raw/list/Create.ts +16 -0
- package/src/types/raw/list/Delete.ts +12 -0
- package/src/types/raw/list/Mute.ts +10 -0
- package/src/types/raw/list/Unmute.ts +10 -0
- package/src/types/raw/list/Update.ts +12 -0
- package/src/types/raw/tweet/History.ts +57 -0
- package/src/types/raw/user/RemoveFollower.ts +15 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
import { ITimelineTweet } from '../composite/TimelineTweet';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Represents the raw response received when fetching a tweet's edit history.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export interface ITweetHistoryResponse {
|
|
11
|
+
data?: {
|
|
12
|
+
tweet_result_by_rest_id?: {
|
|
13
|
+
result?: {
|
|
14
|
+
edit_history_timeline?: {
|
|
15
|
+
timeline?: ITweetHistoryTimeline;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ITweetHistoryTimeline {
|
|
23
|
+
instructions?: ITweetHistoryInstruction[];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface ITweetHistoryInstruction {
|
|
27
|
+
direction?: string;
|
|
28
|
+
entries?: ITweetHistoryEntry[];
|
|
29
|
+
type: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface ITweetHistoryEntry {
|
|
33
|
+
content?: ITweetHistoryModule;
|
|
34
|
+
entryId: string;
|
|
35
|
+
sortIndex?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface ITweetHistoryModule {
|
|
39
|
+
__typename: string;
|
|
40
|
+
displayType: string;
|
|
41
|
+
entryType: string;
|
|
42
|
+
header?: ITweetHistoryHeader;
|
|
43
|
+
items?: ITweetHistoryItem[];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ITweetHistoryHeader {
|
|
47
|
+
displayType: string;
|
|
48
|
+
sticky: boolean;
|
|
49
|
+
text: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface ITweetHistoryItem {
|
|
53
|
+
entryId: string;
|
|
54
|
+
item: {
|
|
55
|
+
itemContent: ITimelineTweet;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The raw data received when removing a given user from the authenticated user's followers.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface IUserRemoveFollowerResponse {
|
|
9
|
+
data?: {
|
|
10
|
+
remove_follower?: {
|
|
11
|
+
__typename?: string;
|
|
12
|
+
unfollow_success_reason?: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
}
|