Skip to content

Commit

Permalink
fix: fix resendWebhooks and resendTransactionWebhooksById return types
Browse files Browse the repository at this point in the history
  • Loading branch information
ehamery committed Jun 23, 2022
1 parent a77c80b commit 5fa77bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import {
WalletContainerResponse,
SetFeePayerConfiguration,
FeePayerConfiguration,
ResendWebhooksByIdResponse,
} from "./types";

export * from "./types";
Expand Down Expand Up @@ -990,7 +991,7 @@ export class FireblocksSDK {
* @param resendStatusUpdated If true a webhook will be sent for the status of the transaction
* @param requestOptions
*/
public async resendTransactionWebhooksById(txId: string, resendCreated?: boolean, resendStatusUpdated?: boolean, requestOptions?: RequestOptions): Promise<ResendWebhooksResponse> {
public async resendTransactionWebhooksById(txId: string, resendCreated?: boolean, resendStatusUpdated?: boolean, requestOptions?: RequestOptions): Promise<ResendWebhooksByIdResponse> {
const body = { resendCreated, resendStatusUpdated };
return await this.apiClient.issuePostRequest(`/v1/webhooks/resend/${txId}`, body, requestOptions);
}
Expand Down
6 changes: 5 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,11 @@ export interface User {
}

export interface ResendWebhooksResponse {
webhooksCount: number;
messagesCount: number;
}

export interface ResendWebhooksByIdResponse {
success: boolean;
}

export interface OffExchangeEntityResponse {
Expand Down

0 comments on commit 5fa77bc

Please sign in to comment.