Update to latest APIs
This commit is contained in:
parent
349cfe7177
commit
1983512fef
74 changed files with 2334 additions and 525 deletions
|
@ -1,4 +1,4 @@
|
|||
import {AdxUri} from '../../third-party/uri'
|
||||
import {AtUri} from '../../third-party/uri'
|
||||
import {Entity as Entities} from '../../third-party/api/src/types/app/bsky/post'
|
||||
|
||||
type Entity = Entities[0]
|
||||
|
@ -16,12 +16,12 @@ export function pluralize(n: number, base: string, plural?: string): string {
|
|||
export function makeRecordUri(
|
||||
didOrName: string,
|
||||
collection: string,
|
||||
recordKey: string,
|
||||
rkey: string,
|
||||
) {
|
||||
const urip = new AdxUri(`adx://host/`)
|
||||
const urip = new AtUri(`at://host/`)
|
||||
urip.host = didOrName
|
||||
urip.collection = collection
|
||||
urip.recordKey = recordKey
|
||||
urip.rkey = rkey
|
||||
return urip.toString()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue