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
289
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 17.0.0-alpha.1 to 17.0.0

13

dist/esm/types.js

@@ -195,2 +195,15 @@ /**

})(ChannelRelation || (ChannelRelation = {}));
export var AclCategory;
(function (AclCategory) {
AclCategory["GROUP"] = "group";
AclCategory["ORG"] = "org";
AclCategory["USER"] = "user";
AclCategory["ANONYMOUS_USER"] = "anonymousUser";
AclCategory["AUTHENTICATED_USER"] = "authenticatedUser";
})(AclCategory || (AclCategory = {}));
export var AclSubCategory;
(function (AclSubCategory) {
AclSubCategory["ADMIN"] = "admin";
AclSubCategory["MEMBER"] = "member";
})(AclSubCategory || (AclSubCategory = {}));
//# sourceMappingURL=types.js.map

15

dist/node/types.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChannelRelation = exports.ChannelSort = exports.PostType = exports.PostSort = exports.Role = exports.CommonSort = exports.ChannelFilter = exports.ReactionRelation = exports.PostRelation = exports.DiscussionSource = exports.DiscussionType = exports.PostStatus = exports.SharingAccess = exports.PostReaction = exports.SortOrder = void 0;
exports.AclSubCategory = exports.AclCategory = exports.ChannelRelation = exports.ChannelSort = exports.PostType = exports.PostSort = exports.Role = exports.CommonSort = exports.ChannelFilter = exports.ReactionRelation = exports.PostRelation = exports.DiscussionSource = exports.DiscussionType = exports.PostStatus = exports.SharingAccess = exports.PostReaction = exports.SortOrder = void 0;
/**

@@ -198,2 +198,15 @@ * sort orders

})(ChannelRelation = exports.ChannelRelation || (exports.ChannelRelation = {}));
var AclCategory;
(function (AclCategory) {
AclCategory["GROUP"] = "group";
AclCategory["ORG"] = "org";
AclCategory["USER"] = "user";
AclCategory["ANONYMOUS_USER"] = "anonymousUser";
AclCategory["AUTHENTICATED_USER"] = "authenticatedUser";
})(AclCategory = exports.AclCategory || (exports.AclCategory = {}));
var AclSubCategory;
(function (AclSubCategory) {
AclSubCategory["ADMIN"] = "admin";
AclSubCategory["MEMBER"] = "member";
})(AclSubCategory = exports.AclSubCategory || (exports.AclSubCategory = {}));
//# sourceMappingURL=types.js.map

@@ -658,5 +658,5 @@ import { IPagingParams, IPagedResponse as IRestPagedResponse, IUser } from "@esri/arcgis-rest-types";

* @export
* @interface IChannelAclDefinition
* @interface IChannelAclObjectDefinition
*/
export interface IChannelAclDefinition {
export interface IChannelAclObjectDefinition {
anonymous?: IAclPermissionDefinition;

@@ -702,7 +702,8 @@ authenticated?: IAclPermissionDefinition;

* channel access control list
* DEPRECATING! Will be removed after permissions refactor
*
* @export
* @interface IChannelAcl
* @interface IChannelAclObject
*/
export interface IChannelAcl {
export interface IChannelAclObject {
anonymous?: IAclPermission;

@@ -714,3 +715,39 @@ authenticated?: IAclPermission;

}
export declare enum AclCategory {
GROUP = "group",
ORG = "org",
USER = "user",
ANONYMOUS_USER = "anonymousUser",
AUTHENTICATED_USER = "authenticatedUser"
}
export declare enum AclSubCategory {
ADMIN = "admin",
MEMBER = "member"
}
/**
* request option for creating a channel ACL permission
*/
export interface IChannelAclPermissionDefinition {
channelId: string;
category: AclCategory;
subCategory: AclSubCategory | null;
key: string | null;
role: Role;
restrictedBefore?: Date;
}
/**
* representation of channel Acl permission from service
*
* @export
* @interface IChannelAclPermission
* @extends {IChannelAclDefinition}
* @extends {IWithAuthor}
* @extends {IWithEditor}
* @extends {IWithTimestamps}
*/
export interface IChannelAclPermission extends Omit<IChannelAclPermissionDefinition, "restrictedBefore">, IWithAuthor, IWithEditor, IWithTimestamps {
id: string;
restrictedBefore: Date;
}
/**
* parameters/options for creating a channel

@@ -741,3 +778,4 @@ *

orgs?: string[];
acl?: IChannelAclDefinition;
acl?: IChannelAclObjectDefinition;
channelAcl?: IChannelAclPermissionDefinition[];
}

@@ -755,3 +793,3 @@ /**

/**
* representation of channel entity
* representation of channel from service
*

@@ -778,3 +816,4 @@ * @export

groups: string[];
acl: IChannelAcl;
acl: IChannelAclObject;
channelAcl?: IChannelAclPermission[];
}

@@ -781,0 +820,0 @@ /**

6

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

@@ -16,3 +16,3 @@ "main": "dist/node/index.js",

"@esri/arcgis-rest-request": "^2.14.0 || 3",
"@esri/hub-common": "12.0.0-alpha.1"
"@esri/hub-common": "11.23.3"
},

@@ -23,3 +23,3 @@ "devDependencies": {

"@esri/arcgis-rest-types": "^3.1.1",
"@esri/hub-common": "12.0.0-alpha.1",
"@esri/hub-common": "11.23.3",
"@types/geojson": "^7946.0.7",

@@ -26,0 +26,0 @@ "typescript": "^3.8.1"

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