bb-fca 2.0.0 → 2.0.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/dist/deltas/apis/posting/friend.js +319 -52
- package/dist/deltas/apis/posting/friend.js.map +1 -1
- package/dist/index.d.ts +41 -2
- package/dist/types/deltas/apis/posting/friend.d.ts +12 -3
- package/package.json +1 -1
- package/src/deltas/apis/posting/friend.ts +518 -158
- package/src/types/index.d.ts +41 -2
package/src/types/index.d.ts
CHANGED
|
@@ -123,6 +123,27 @@ export interface UploadPhotoResult {
|
|
|
123
123
|
data: any;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
export interface CurrentFriendInfo {
|
|
127
|
+
userID: string;
|
|
128
|
+
name: string;
|
|
129
|
+
shortName: string;
|
|
130
|
+
gender: string;
|
|
131
|
+
profilePicture: string;
|
|
132
|
+
profileUrl: string;
|
|
133
|
+
friendshipStatus: string;
|
|
134
|
+
subscribeStatus: string;
|
|
135
|
+
socialContext: string;
|
|
136
|
+
mutualFriends: any[];
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface FriendListItem {
|
|
140
|
+
userID: string;
|
|
141
|
+
name: string;
|
|
142
|
+
profilePicture: string;
|
|
143
|
+
socialContext: string;
|
|
144
|
+
url: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
126
147
|
export interface Attachment {
|
|
127
148
|
type:
|
|
128
149
|
| 'photo'
|
|
@@ -604,8 +625,26 @@ export interface API {
|
|
|
604
625
|
/** Follow or unfollow a user. */
|
|
605
626
|
follow(senderID: UserID, follow: boolean, callback?: Callback): void;
|
|
606
627
|
|
|
607
|
-
/**
|
|
608
|
-
friend
|
|
628
|
+
/** Friend-related API methods. */
|
|
629
|
+
friend: {
|
|
630
|
+
requests(callback?: Callback<FriendListItem[]>): Promise<FriendListItem[]>;
|
|
631
|
+
accept(identifier: string, callback?: Callback): Promise<any>;
|
|
632
|
+
delete(identifier: string, callback?: Callback): Promise<any>;
|
|
633
|
+
list(
|
|
634
|
+
userID?: UserID,
|
|
635
|
+
callback?: Callback<FriendListItem[]>,
|
|
636
|
+
): Promise<FriendListItem[]>;
|
|
637
|
+
getCurrentFriends(
|
|
638
|
+
callback?: Callback<CurrentFriendInfo[]>,
|
|
639
|
+
): Promise<CurrentFriendInfo[]>;
|
|
640
|
+
suggest: {
|
|
641
|
+
list(
|
|
642
|
+
limit?: number,
|
|
643
|
+
callback?: Callback<FriendListItem[]>,
|
|
644
|
+
): Promise<FriendListItem[]>;
|
|
645
|
+
request(userID: UserID, callback?: Callback): Promise<any>;
|
|
646
|
+
};
|
|
647
|
+
};
|
|
609
648
|
|
|
610
649
|
// ── Stickers ───────────────────────────────────────────────────
|
|
611
650
|
|