]>
Commit | Line | Data |
---|---|---|
a6a79eae C |
1 | |
2 | import { BulkRemoveCommentsOfBody } from '@shared/models/bulk/bulk-remove-comments-of-body.model' | |
2d53be02 | 3 | import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' |
a6a79eae C |
4 | import { AbstractCommand, CommonCommandOptions } from '../shared' |
5 | ||
6 | class BulkCommand extends AbstractCommand { | |
444c0a0e | 7 | |
a6a79eae C |
8 | removeCommentsOf (options: CommonCommandOptions & { |
9 | attributes: BulkRemoveCommentsOfBody | |
10 | }) { | |
11 | const { attributes } = options | |
444c0a0e | 12 | |
a6a79eae C |
13 | return this.postBodyRequest({ |
14 | ...options, | |
15 | path: '/api/v1/bulk/remove-comments-of', | |
16 | fields: attributes, | |
17 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 | |
18 | }) | |
19 | } | |
444c0a0e C |
20 | } |
21 | ||
22 | export { | |
a6a79eae | 23 | BulkCommand |
444c0a0e | 24 | } |