Update to the latest APIs

This commit is contained in:
Paul Frazee 2022-11-04 17:39:54 -05:00
parent 8ae6e67eea
commit f333a90fab
165 changed files with 2963 additions and 4747 deletions

View file

@ -1,6 +1,6 @@
import {makeAutoObservable, runInAction} from 'mobx'
import {AtUri} from '../../third-party/uri'
import * as GetRepostedBy from '../../third-party/api/src/types/app/bsky/getRepostedBy'
import * as GetRepostedBy from '../../third-party/api/src/client/types/app/bsky/feed/getRepostedBy'
import {RootStoreModel} from './root-store'
type RepostedByItem = GetRepostedBy.OutputSchema['repostedBy'][number]
@ -11,7 +11,7 @@ export class RepostedByViewItemModel implements RepostedByItem {
// data
did: string = ''
name: string = ''
handle: string = ''
displayName: string = ''
createdAt?: string
indexedAt: string = ''
@ -113,7 +113,7 @@ export class RepostedByViewModel {
private async _fetch(isRefreshing = false) {
this._xLoading(isRefreshing)
try {
const res = await this.rootStore.api.app.bsky.getRepostedBy(
const res = await this.rootStore.api.app.bsky.feed.getRepostedBy(
Object.assign({}, this.params, {uri: this.resolvedUri}),
)
this._replaceAll(res)