Version 27.0.1

@esri/hub-discussions

Module to interact with ArcGIS Hub Discussions API in Node.js and modern browsers.

npm install:

npm install @esri/hub-discussions @esri/arcgis-rest-auth@^2.14.0 || 3  @esri/arcgis-rest-request@^2.14.0 || 3  @esri/hub-common@^14.0.0 

Module Import:

import {
  apiRequest,
  authenticateRequest,
  canCreateChannel,
  canCreateReaction,
  canDeletePost,
  canModifyChannel,
  canModifyPost,
  canModifyPostStatus,
  canPostToChannel,
  canReadChannel,
  canReadFromChannel,
  createChannel,
  createChannelNotificationOptOut,
  createPost,
  createReaction,
  createReply,
  fetchChannel,
  fetchChannelNotifcationOptOut,
  fetchPost,
  isOrgAdmin,
  parseDiscussionURI,
  parseMentionedUsers,
  reduceByGroupMembership,
  removeChannel,
  removeChannelActivity,
  removeChannelNotificationOptOut,
  removePost,
  removeReaction,
  request,
  searchPosts,
  updateChannel,
  updatePost,
  updatePostStatus,
  ChannelPermission,
  RemoteServerError,
} from "@esri/hub-discussions";