feat: implement deleteListItemById method

This commit is contained in:
StevanFreeborn
2023-02-07 23:00:55 -06:00
parent 1b2c0e3e42
commit 48f62a80e9
2 changed files with 231 additions and 81 deletions
+9 -1
View File
@@ -267,7 +267,6 @@ export class OnspringClient {
);
const apiResponse = await this.delete<any>(endpoint);
return apiResponse;
}
@@ -292,6 +291,15 @@ export class OnspringClient {
return apiResponse.asListItemResponseType();
}
public async deleteListItemById(
listId: number,
itemId: string
): Promise<ApiResponse<any>> {
const endpoint = EndpointFactory.getDeleteListItemEndpoint(listId, itemId);
const apiResponse = await this.delete<any>(endpoint);
return apiResponse;
}
/**
* @method get - Makes a GET request to the specified endpoint.
* @param {string} endpoint - The endpoint that will be used to make the request.