feat: implement deleteListItemById method
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user