Skip to content

Commit

Permalink
Rename getHomeFeed to getTimeline to improve some semantic clarity (b…
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee authored Nov 2, 2022
1 parent c986066 commit 9289ce1
Show file tree
Hide file tree
Showing 13 changed files with 788 additions and 788 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"lexicon": 1,
"id": "app.bsky.getHomeFeed",
"id": "app.bsky.getTimeline",
"type": "query",
"description": "A view of the user's home feed",
"description": "A view of the user's home timeline",
"parameters": {
"algorithm": {"type": "string"},
"limit": {"type": "number", "maximum": 100},
Expand Down
26 changes: 13 additions & 13 deletions packages/api/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ import * as ComAtprotoSyncUpdateRepo from './types/com/atproto/syncUpdateRepo'
import * as AppBskyDeclaration from './types/app/bsky/declaration'
import * as AppBskyFollow from './types/app/bsky/follow'
import * as AppBskyGetAuthorFeed from './types/app/bsky/getAuthorFeed'
import * as AppBskyGetHomeFeed from './types/app/bsky/getHomeFeed'
import * as AppBskyGetLikedBy from './types/app/bsky/getLikedBy'
import * as AppBskyGetNotificationCount from './types/app/bsky/getNotificationCount'
import * as AppBskyGetNotifications from './types/app/bsky/getNotifications'
import * as AppBskyGetPostThread from './types/app/bsky/getPostThread'
import * as AppBskyGetProfile from './types/app/bsky/getProfile'
import * as AppBskyGetRepostedBy from './types/app/bsky/getRepostedBy'
import * as AppBskyGetTimeline from './types/app/bsky/getTimeline'
import * as AppBskyGetUserFollowers from './types/app/bsky/getUserFollowers'
import * as AppBskyGetUserFollows from './types/app/bsky/getUserFollows'
import * as AppBskyGetUsersSearch from './types/app/bsky/getUsersSearch'
Expand Down Expand Up @@ -77,13 +77,13 @@ export * as ComAtprotoSyncUpdateRepo from './types/com/atproto/syncUpdateRepo'
export * as AppBskyDeclaration from './types/app/bsky/declaration'
export * as AppBskyFollow from './types/app/bsky/follow'
export * as AppBskyGetAuthorFeed from './types/app/bsky/getAuthorFeed'
export * as AppBskyGetHomeFeed from './types/app/bsky/getHomeFeed'
export * as AppBskyGetLikedBy from './types/app/bsky/getLikedBy'
export * as AppBskyGetNotificationCount from './types/app/bsky/getNotificationCount'
export * as AppBskyGetNotifications from './types/app/bsky/getNotifications'
export * as AppBskyGetPostThread from './types/app/bsky/getPostThread'
export * as AppBskyGetProfile from './types/app/bsky/getProfile'
export * as AppBskyGetRepostedBy from './types/app/bsky/getRepostedBy'
export * as AppBskyGetTimeline from './types/app/bsky/getTimeline'
export * as AppBskyGetUserFollowers from './types/app/bsky/getUserFollowers'
export * as AppBskyGetUserFollows from './types/app/bsky/getUserFollows'
export * as AppBskyGetUsersSearch from './types/app/bsky/getUsersSearch'
Expand Down Expand Up @@ -442,17 +442,6 @@ export class BskyNS {
})
}

getHomeFeed(
params?: AppBskyGetHomeFeed.QueryParams,
opts?: AppBskyGetHomeFeed.CallOptions
): Promise<AppBskyGetHomeFeed.Response> {
return this._service.xrpc
.call('app.bsky.getHomeFeed', params, undefined, opts)
.catch((e) => {
throw AppBskyGetHomeFeed.toKnownErr(e)
})
}

getLikedBy(
params?: AppBskyGetLikedBy.QueryParams,
opts?: AppBskyGetLikedBy.CallOptions
Expand Down Expand Up @@ -519,6 +508,17 @@ export class BskyNS {
})
}

getTimeline(
params?: AppBskyGetTimeline.QueryParams,
opts?: AppBskyGetTimeline.CallOptions
): Promise<AppBskyGetTimeline.Response> {
return this._service.xrpc
.call('app.bsky.getTimeline', params, undefined, opts)
.catch((e) => {
throw AppBskyGetTimeline.toKnownErr(e)
})
}

getUserFollowers(
params?: AppBskyGetUserFollowers.QueryParams,
opts?: AppBskyGetUserFollowers.CallOptions
Expand Down
Loading

0 comments on commit 9289ce1

Please sign in to comment.