Skip to content

Commit

Permalink
feat(SPV-1143): fix return type for old contacts admin (#1092)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzolt-4chain authored Oct 29, 2024
1 parent 3944891 commit 97c4091
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bsv/spv-wallet-js-client",
"version": "1.0.0-beta.22",
"version": "1.0.0-beta.23",
"description": "TypeScript library for connecting to a SPV Wallet server",
"repository": {
"type": "git",
Expand Down
10 changes: 6 additions & 4 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
AdminKey,
ClientOptions,
Contact,
Contacts,
DraftTransactionConfig,
DraftTx,
ExclusiveStartKeyPage,
Expand All @@ -21,7 +20,6 @@ import {
OldAccessKeys,
OldContact,
OldDestinations,
OldContacts,
OldPaymailAddress,
OldTxs,
OldUtxos,
Expand Down Expand Up @@ -188,9 +186,13 @@ export class SpvWalletClient {
* @param {ContactFilter} conditions Key value object to use to filter the documents
* @param {Metadata} metadata Key value object to use to filter the documents by the metadata
* @param {OldQueryParams} params Database query parameters for page, page size and sorting
* @return {OldContacts}
* @return {PageModel<OldContact>}
*/
async AdminGetContacts(conditions: ContactFilter, metadata: Metadata, params: OldQueryParams): Promise<OldContacts> {
async AdminGetContacts(
conditions: ContactFilter,
metadata: Metadata,
params: OldQueryParams,
): Promise<PageModel<OldContact>> {
return await this.http.adminRequest(`admin/contact/search`, 'POST', {
conditions,
metadata,
Expand Down

0 comments on commit 97c4091

Please sign in to comment.