@newpeak/barista-cli 0.2.325 → 0.2.327

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4246,6 +4246,31 @@ export const apiClient = {
4246
4246
  return handleApiErrorTeamIssueComment(error);
4247
4247
  }
4248
4248
  },
4249
+ async deleteTeamIssueComment(environment, tenant, teamIssueCommentId) {
4250
+ try {
4251
+ const token = await tokenManager.getToken({ service: 'liberica', environment, tenant });
4252
+ if (!token) {
4253
+ return {
4254
+ success: false,
4255
+ error: {
4256
+ code: 'NO_TOKEN',
4257
+ message: 'Not logged in. Run: barista auth login --service liberica --env ' + environment,
4258
+ },
4259
+ };
4260
+ }
4261
+ const client = createAPIClient('liberica', environment, tenant);
4262
+ client.setAuthToken(token);
4263
+ const response = await client
4264
+ .getClient()
4265
+ .post('/api/enterprise/team/issue/comment/delete', {
4266
+ teamIssueCommentId,
4267
+ });
4268
+ return response.data;
4269
+ }
4270
+ catch (error) {
4271
+ return handleApiErrorTeamIssueComment(error);
4272
+ }
4273
+ },
4249
4274
  async listTeamIssueComments(environment, tenant, params) {
4250
4275
  try {
4251
4276
  const token = await tokenManager.getToken({ service: 'liberica', environment, tenant });