2021-07-16 04:42:24 -04:00
|
|
|
import { BulkRemoveCommentsOfBody, HttpStatusCode } from '@shared/models'
|
2021-07-06 03:55:05 -04:00
|
|
|
import { AbstractCommand, OverrideCommandOptions } from '../shared'
|
2021-07-05 08:57:03 -04:00
|
|
|
|
2021-07-06 03:55:05 -04:00
|
|
|
export class BulkCommand extends AbstractCommand {
|
2020-05-14 10:56:15 -04:00
|
|
|
|
2021-07-06 03:55:05 -04:00
|
|
|
removeCommentsOf (options: OverrideCommandOptions & {
|
2021-07-05 08:57:03 -04:00
|
|
|
attributes: BulkRemoveCommentsOfBody
|
|
|
|
}) {
|
|
|
|
const { attributes } = options
|
2020-05-14 10:56:15 -04:00
|
|
|
|
2021-07-05 08:57:03 -04:00
|
|
|
return this.postBodyRequest({
|
|
|
|
...options,
|
2021-07-08 04:55:16 -04:00
|
|
|
|
2021-07-05 08:57:03 -04:00
|
|
|
path: '/api/v1/bulk/remove-comments-of',
|
|
|
|
fields: attributes,
|
2021-07-08 04:55:16 -04:00
|
|
|
implicitToken: true,
|
2021-07-05 08:57:03 -04:00
|
|
|
defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
|
|
|
|
})
|
|
|
|
}
|
2020-05-14 10:56:15 -04:00
|
|
|
}
|