Version 16.0.3

@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@11.23.3 

Module Import:

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