This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

version bump + formatting

+35 -8
+1 -1
src/packages/semble-pds-client/package.json
··· 1 1 { 2 2 "name": "@cosmik.network/semble-pds-client", 3 - "version": "0.0.5", 3 + "version": "0.0.6", 4 4 "description": "A lightweight PDS client and AtpAgent wrapper for creating and reading Semble records (Cards, Collections, CollectionLinks) directly to your PDS", 5 5 "main": "dist/index.js", 6 6 "types": "dist/index.d.ts",
+12 -2
src/packages/semble-pds-client/src/cards/CardManager.ts
··· 1 1 import { AtpAgent } from '@atproto/api'; 2 - import { StrongRef, CreateCardOptions, CreateCardResult, CardRecord, ListQueryParams, GetCardsResult } from '../types'; 2 + import { 3 + StrongRef, 4 + CreateCardOptions, 5 + CreateCardResult, 6 + CardRecord, 7 + ListQueryParams, 8 + GetCardsResult, 9 + } from '../types'; 3 10 import { MetadataFetcher } from '../metadata/MetadataFetcher'; 4 11 5 12 export class CardManager { ··· 209 216 }; 210 217 } 211 218 212 - async getForUser(did: string, params?: ListQueryParams): Promise<GetCardsResult> { 219 + async getForUser( 220 + did: string, 221 + params?: ListQueryParams, 222 + ): Promise<GetCardsResult> { 213 223 const response = await this.agent.com.atproto.repo.listRecords({ 214 224 repo: did, 215 225 collection: this.cardCollection,
+8 -2
src/packages/semble-pds-client/src/collection-link/CollectionLinkManager.ts
··· 1 1 import { AtpAgent } from '@atproto/api'; 2 - import { StrongRef, AddCardsToCollectionOptions, BatchCreateResult } from '../types'; 2 + import { 3 + StrongRef, 4 + AddCardsToCollectionOptions, 5 + BatchCreateResult, 6 + } from '../types'; 3 7 4 8 export class CollectionLinkManager { 5 9 constructor( ··· 67 71 }); 68 72 } 69 73 70 - async addCardsToCollection(options: AddCardsToCollectionOptions): Promise<BatchCreateResult> { 74 + async addCardsToCollection( 75 + options: AddCardsToCollectionOptions, 76 + ): Promise<BatchCreateResult> { 71 77 if (!this.agent.session) { 72 78 throw new Error('Not authenticated. Call login() first.'); 73 79 }
+3 -1
src/packages/semble-pds-client/src/collections/CollectionBatchManager.ts
··· 7 7 private collectionCollection: string, 8 8 ) {} 9 9 10 - async createCollections(options: CreateCollectionsOptions): Promise<BatchCreateResult> { 10 + async createCollections( 11 + options: CreateCollectionsOptions, 12 + ): Promise<BatchCreateResult> { 11 13 if (!this.agent.session) { 12 14 throw new Error('Not authenticated. Call login() first.'); 13 15 }
+11 -2
src/packages/semble-pds-client/src/collections/CollectionManager.ts
··· 1 1 import { AtpAgent } from '@atproto/api'; 2 - import { StrongRef, CreateCollectionOptions, CollectionRecord, ListQueryParams, GetCollectionsResult } from '../types'; 2 + import { 3 + StrongRef, 4 + CreateCollectionOptions, 5 + CollectionRecord, 6 + ListQueryParams, 7 + GetCollectionsResult, 8 + } from '../types'; 3 9 4 10 export class CollectionManager { 5 11 constructor( ··· 120 126 }; 121 127 } 122 128 123 - async getForUser(did: string, params?: ListQueryParams): Promise<GetCollectionsResult> { 129 + async getForUser( 130 + did: string, 131 + params?: ListQueryParams, 132 + ): Promise<GetCollectionsResult> { 124 133 const response = await this.agent.com.atproto.repo.listRecords({ 125 134 repo: did, 126 135 collection: this.collectionCollection,