Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@esri/hub-discussions

Package Overview
Dependencies
Maintainers
42
Versions
290
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esri/hub-discussions - npm Package Compare versions

Comparing version 15.2.1 to 16.0.0

1

dist/esm/channels/types.js
/**
* Channel sorting fields
*
* @export
* @enum {string}

@@ -5,0 +6,0 @@ */

@@ -20,2 +20,14 @@ /**

})(PostSort || (PostSort = {}));
/**
* Post types
*
* @enum{string}
*/
export var PostType;
(function (PostType) {
PostType["Text"] = "text";
PostType["Announcement"] = "announcement";
PostType["Poll"] = "poll";
PostType["Question"] = "question";
})(PostType || (PostType = {}));
//# sourceMappingURL=types.js.map

@@ -7,2 +7,3 @@ "use strict";

*
* @export
* @enum {string}

@@ -9,0 +10,0 @@ */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PostSort = void 0;
exports.PostType = exports.PostSort = void 0;
/**

@@ -23,2 +23,14 @@ * Post sorting fields

})(PostSort = exports.PostSort || (exports.PostSort = {}));
/**
* Post types
*
* @enum{string}
*/
var PostType;
(function (PostType) {
PostType["Text"] = "text";
PostType["Announcement"] = "announcement";
PostType["Poll"] = "poll";
PostType["Question"] = "question";
})(PostType = exports.PostType || (exports.PostType = {}));
//# sourceMappingURL=types.js.map
import { IPagingParams } from "@esri/arcgis-rest-types";
import { ChannelFilter, IDiscussionsRequestOptions, IWithAuthor, IWithEditor, IWithFiltering, IWithSorting, IWithTimeQueries, IWithTimestamps, PostReaction, PostStatus, Role, SharingAccess } from "../shared/types";
import { IPost } from "../posts/types";
/**
* Channel sorting fields
*
* @export
* @enum {string}

@@ -67,3 +69,3 @@ */

orgs?: AclGroupDefinitionMap;
users?: {
users: {
[key: string]: IAclPermissionDefinition;

@@ -129,3 +131,3 @@ };

allowedReactions?: PostReaction[];
blockwords?: string[];
blockWords?: string[];
}

@@ -150,2 +152,3 @@ /**

* @extends {ICreateChannelSettings}
* @extends {ICreateChannelPermissions}
*/

@@ -159,3 +162,2 @@ export interface ICreateChannel extends ICreateChannelSettings, ICreateChannelPermissions {

* @interface IChannel
* @extends {Required<Omit<ICreateChannel, 'acl'>>}
* @extends {IWithAuthor}

@@ -165,4 +167,16 @@ * @extends {IWithEditor}

*/
export interface IChannel extends Required<Omit<ICreateChannel, "acl">>, IWithAuthor, IWithEditor, IWithTimestamps {
export interface IChannel extends IWithAuthor, IWithEditor, IWithTimestamps {
id: string;
posts?: IPost[];
allowReply: boolean;
allowAnonymous: boolean;
softDelete: boolean;
defaultPostStatus: PostStatus;
allowReaction: boolean;
allowedReactions: PostReaction[] | null;
blockWords: string[] | null;
name: string | null;
access: SharingAccess;
orgs: string[];
groups: string[];
acl: IChannelAcl;

@@ -169,0 +183,0 @@ }

37

dist/types/posts/types.d.ts

@@ -5,3 +5,3 @@ import { IPagingParams } from "@esri/arcgis-rest-types";

import { IReaction } from "../reactions";
import { IDiscussionsRequestOptions, IPagedResponse, IWithAuthor, IWithEditor, IWithSorting, IWithTimeQueries, IWithTimestamps, PostRelation, PostStatus, SharingAccess } from "../shared/types";
import { IDiscussionsRequestOptions, IPagedResponse, IWithAuthor, IWithEditor, IWithSorting, IWithTimeQueries, IWithTimestamps, PostReaction, PostRelation, PostStatus, SharingAccess } from "../shared/types";
/**

@@ -26,4 +26,18 @@ * Post sorting fields

/**
* representation of post entity
* Post types
*
* @enum{string}
*/
export declare enum PostType {
Text = "text",
Announcement = "announcement",
Poll = "poll",
Question = "question"
}
export declare type PostReactionSummary = {
[key in PostReaction]: string[];
};
/**
* representation of post from service
*
* @export

@@ -37,16 +51,17 @@ * @interface IPost

id: string;
title: string | null;
body: string;
channelId: string;
channel: IChannel;
title?: string;
discussion?: string;
geometry?: Geometry;
featureGeometry?: Geometry;
appInfo?: string;
status: PostStatus;
appInfo: string | null;
discussion: string | null;
geometry: Geometry | null;
featureGeometry: Geometry | null;
postType: PostType;
channelId?: string;
channel?: IChannel;
parentId?: string;
parent?: IPost;
parent?: IPost | null;
replies?: IPost[] | IPagedResponse<IPost>;
replyCount?: number;
reactions?: IReaction[];
reactions?: PostReactionSummary;
userReactions?: IReaction[];

@@ -53,0 +68,0 @@ }

import { IPost } from "../posts";
import { IDiscussionsRequestOptions, IWithAuthor, IWithEditor, IWithTimestamps, PostReaction } from "../shared/types";
/**
* representation of reaction entity
* representation of reaction from the service
*

@@ -6,0 +6,0 @@ * @export

{
"name": "@esri/hub-discussions",
"version": "15.2.1",
"version": "16.0.0",
"description": "Module to interact with ArcGIS Hub Discussions API in Node.js and modern browsers.",

@@ -5,0 +5,0 @@ "main": "dist/node/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc