]>
Commit | Line | Data |
---|---|---|
c0e8b12e | 1 | import { BulkRemoveCommentsOfBody, HttpStatusCode } from '@shared/models' |
e8bd7ce7 | 2 | import { AbstractCommand, OverrideCommandOptions } from '../shared' |
a6a79eae | 3 | |
e8bd7ce7 | 4 | export class BulkCommand extends AbstractCommand { |
444c0a0e | 5 | |
e8bd7ce7 | 6 | removeCommentsOf (options: OverrideCommandOptions & { |
a6a79eae C |
7 | attributes: BulkRemoveCommentsOfBody |
8 | }) { | |
9 | const { attributes } = options | |
444c0a0e | 10 | |
a6a79eae C |
11 | return this.postBodyRequest({ |
12 | ...options, | |
a1637fa1 | 13 | |
a6a79eae C |
14 | path: '/api/v1/bulk/remove-comments-of', |
15 | fields: attributes, | |
a1637fa1 | 16 | implicitToken: true, |
a6a79eae C |
17 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 |
18 | }) | |
19 | } | |
444c0a0e | 20 | } |