Socket
Socket
Sign inDemoInstall

@esri/hub-discussions

Package Overview
Dependencies
11
Maintainers
41
Versions
276
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-beta.2 to 1.0.0-beta.3

105

dist/es2017/types.js

@@ -7,7 +7,6 @@ /**

*/
export var SortOrder;
(function (SortOrder) {
SortOrder["ASC"] = "ASC";
SortOrder["DESC"] = "DESC";
})(SortOrder || (SortOrder = {}));
export const SortOrder = {
ASC: "ASC",
DESC: "DESC"
};
/**

@@ -19,13 +18,12 @@ * reactions to posts

*/
export var PostReaction;
(function (PostReaction) {
PostReaction["THUMBS_UP"] = "thumbs_up";
PostReaction["THUMBS_DOWN"] = "thumbs_down";
PostReaction["THINKING"] = "thinking";
PostReaction["HEART"] = "heart";
PostReaction["ONE_HUNDRED"] = "one_hundred";
PostReaction["SAD"] = "sad";
PostReaction["LAUGH"] = "laugh";
PostReaction["SURPRISED"] = "surprised";
})(PostReaction || (PostReaction = {}));
export const PostReaction = {
THUMBS_UP: "thumbs_up",
THUMBS_DOWN: "thumbs_down",
THINKING: "thinking",
HEART: "heart",
ONE_HUNDRED: "one_hundred",
SAD: "sad",
LAUGH: "laugh",
SURPRISED: "surprised"
};
/**

@@ -37,8 +35,7 @@ * platform sharing access values

*/
export var SharingAccess;
(function (SharingAccess) {
SharingAccess["PUBLIC"] = "public";
SharingAccess["ORG"] = "org";
SharingAccess["PRIVATE"] = "private";
})(SharingAccess || (SharingAccess = {}));
export const SharingAccess = {
PUBLIC: "public",
ORG: "org",
PRIVATE: "private"
};
/**

@@ -50,10 +47,9 @@ * possible statuses of a post

*/
export var PostStatus;
(function (PostStatus) {
PostStatus["PENDING"] = "pending";
PostStatus["APPROVED"] = "approved";
PostStatus["REJECTED"] = "rejected";
PostStatus["DELETED"] = "deleted";
PostStatus["HIDDEN"] = "hidden";
})(PostStatus || (PostStatus = {}));
export const PostStatus = {
PENDING: "pending",
APPROVED: "approved",
REJECTED: "rejected",
DELETED: "deleted",
HIDDEN: "hidden"
};
/**

@@ -65,8 +61,7 @@ * possible discussionn content types, i.e. a post can be about an item, dataset, or group

*/
export var DiscussionType;
(function (DiscussionType) {
DiscussionType["DATASET"] = "dataset";
DiscussionType["ITEM"] = "item";
DiscussionType["GROUP"] = "group";
})(DiscussionType || (DiscussionType = {}));
export const DiscussionType = {
DATASET: "dataset",
ITEM: "item",
GROUP: "group"
};
/**

@@ -78,8 +73,7 @@ * source of a post, i.e. app context

*/
export var DiscussionSource;
(function (DiscussionSource) {
DiscussionSource["HUB"] = "hub";
DiscussionSource["AGO"] = "ago";
DiscussionSource["URBAN"] = "urban";
})(DiscussionSource || (DiscussionSource = {}));
export const DiscussionSource = {
HUB: "hub",
AGO: "ago",
URBAN: "urban"
};
/**

@@ -91,9 +85,8 @@ * relations of post entity

*/
export var PostRelation;
(function (PostRelation) {
PostRelation["REPLIES"] = "replies";
PostRelation["REACTIONS"] = "reactions";
PostRelation["PARENT"] = "parent";
PostRelation["CHANNEL"] = "channel";
})(PostRelation || (PostRelation = {}));
export const PostRelation = {
REPLIES: "replies",
REACTIONS: "reactions",
PARENT: "parent",
CHANNEL: "channel"
};
/**

@@ -105,6 +98,5 @@ * relations of channel entity

*/
export var ChannelRelation;
(function (ChannelRelation) {
ChannelRelation["SETTINGS"] = "settings";
})(ChannelRelation || (ChannelRelation = {}));
export const ChannelRelation = {
SETTINGS: "settings"
};
/**

@@ -116,6 +108,5 @@ * relations of reaction entity

*/
export var ReactionRelation;
(function (ReactionRelation) {
ReactionRelation["POST"] = "post";
})(ReactionRelation || (ReactionRelation = {}));
export const ReactionRelation = {
POST: "post"
};
//# sourceMappingURL=types.js.map

@@ -7,7 +7,6 @@ /**

*/
export var SortOrder;
(function (SortOrder) {
SortOrder["ASC"] = "ASC";
SortOrder["DESC"] = "DESC";
})(SortOrder || (SortOrder = {}));
export var SortOrder = {
ASC: "ASC",
DESC: "DESC"
};
/**

@@ -19,13 +18,12 @@ * reactions to posts

*/
export var PostReaction;
(function (PostReaction) {
PostReaction["THUMBS_UP"] = "thumbs_up";
PostReaction["THUMBS_DOWN"] = "thumbs_down";
PostReaction["THINKING"] = "thinking";
PostReaction["HEART"] = "heart";
PostReaction["ONE_HUNDRED"] = "one_hundred";
PostReaction["SAD"] = "sad";
PostReaction["LAUGH"] = "laugh";
PostReaction["SURPRISED"] = "surprised";
})(PostReaction || (PostReaction = {}));
export var PostReaction = {
THUMBS_UP: "thumbs_up",
THUMBS_DOWN: "thumbs_down",
THINKING: "thinking",
HEART: "heart",
ONE_HUNDRED: "one_hundred",
SAD: "sad",
LAUGH: "laugh",
SURPRISED: "surprised"
};
/**

@@ -37,8 +35,7 @@ * platform sharing access values

*/
export var SharingAccess;
(function (SharingAccess) {
SharingAccess["PUBLIC"] = "public";
SharingAccess["ORG"] = "org";
SharingAccess["PRIVATE"] = "private";
})(SharingAccess || (SharingAccess = {}));
export var SharingAccess = {
PUBLIC: "public",
ORG: "org",
PRIVATE: "private"
};
/**

@@ -50,10 +47,9 @@ * possible statuses of a post

*/
export var PostStatus;
(function (PostStatus) {
PostStatus["PENDING"] = "pending";
PostStatus["APPROVED"] = "approved";
PostStatus["REJECTED"] = "rejected";
PostStatus["DELETED"] = "deleted";
PostStatus["HIDDEN"] = "hidden";
})(PostStatus || (PostStatus = {}));
export var PostStatus = {
PENDING: "pending",
APPROVED: "approved",
REJECTED: "rejected",
DELETED: "deleted",
HIDDEN: "hidden"
};
/**

@@ -65,8 +61,7 @@ * possible discussionn content types, i.e. a post can be about an item, dataset, or group

*/
export var DiscussionType;
(function (DiscussionType) {
DiscussionType["DATASET"] = "dataset";
DiscussionType["ITEM"] = "item";
DiscussionType["GROUP"] = "group";
})(DiscussionType || (DiscussionType = {}));
export var DiscussionType = {
DATASET: "dataset",
ITEM: "item",
GROUP: "group"
};
/**

@@ -78,8 +73,7 @@ * source of a post, i.e. app context

*/
export var DiscussionSource;
(function (DiscussionSource) {
DiscussionSource["HUB"] = "hub";
DiscussionSource["AGO"] = "ago";
DiscussionSource["URBAN"] = "urban";
})(DiscussionSource || (DiscussionSource = {}));
export var DiscussionSource = {
HUB: "hub",
AGO: "ago",
URBAN: "urban"
};
/**

@@ -91,9 +85,8 @@ * relations of post entity

*/
export var PostRelation;
(function (PostRelation) {
PostRelation["REPLIES"] = "replies";
PostRelation["REACTIONS"] = "reactions";
PostRelation["PARENT"] = "parent";
PostRelation["CHANNEL"] = "channel";
})(PostRelation || (PostRelation = {}));
export var PostRelation = {
REPLIES: "replies",
REACTIONS: "reactions",
PARENT: "parent",
CHANNEL: "channel"
};
/**

@@ -105,6 +98,5 @@ * relations of channel entity

*/
export var ChannelRelation;
(function (ChannelRelation) {
ChannelRelation["SETTINGS"] = "settings";
})(ChannelRelation || (ChannelRelation = {}));
export var ChannelRelation = {
SETTINGS: "settings"
};
/**

@@ -116,6 +108,5 @@ * relations of reaction entity

*/
export var ReactionRelation;
(function (ReactionRelation) {
ReactionRelation["POST"] = "post";
})(ReactionRelation || (ReactionRelation = {}));
export var ReactionRelation = {
POST: "post"
};
//# sourceMappingURL=types.js.map

@@ -9,7 +9,6 @@ "use strict";

*/
var SortOrder;
(function (SortOrder) {
SortOrder["ASC"] = "ASC";
SortOrder["DESC"] = "DESC";
})(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
exports.SortOrder = {
ASC: "ASC",
DESC: "DESC"
};
/**

@@ -21,13 +20,12 @@ * reactions to posts

*/
var PostReaction;
(function (PostReaction) {
PostReaction["THUMBS_UP"] = "thumbs_up";
PostReaction["THUMBS_DOWN"] = "thumbs_down";
PostReaction["THINKING"] = "thinking";
PostReaction["HEART"] = "heart";
PostReaction["ONE_HUNDRED"] = "one_hundred";
PostReaction["SAD"] = "sad";
PostReaction["LAUGH"] = "laugh";
PostReaction["SURPRISED"] = "surprised";
})(PostReaction = exports.PostReaction || (exports.PostReaction = {}));
exports.PostReaction = {
THUMBS_UP: "thumbs_up",
THUMBS_DOWN: "thumbs_down",
THINKING: "thinking",
HEART: "heart",
ONE_HUNDRED: "one_hundred",
SAD: "sad",
LAUGH: "laugh",
SURPRISED: "surprised"
};
/**

@@ -39,8 +37,7 @@ * platform sharing access values

*/
var SharingAccess;
(function (SharingAccess) {
SharingAccess["PUBLIC"] = "public";
SharingAccess["ORG"] = "org";
SharingAccess["PRIVATE"] = "private";
})(SharingAccess = exports.SharingAccess || (exports.SharingAccess = {}));
exports.SharingAccess = {
PUBLIC: "public",
ORG: "org",
PRIVATE: "private"
};
/**

@@ -52,10 +49,9 @@ * possible statuses of a post

*/
var PostStatus;
(function (PostStatus) {
PostStatus["PENDING"] = "pending";
PostStatus["APPROVED"] = "approved";
PostStatus["REJECTED"] = "rejected";
PostStatus["DELETED"] = "deleted";
PostStatus["HIDDEN"] = "hidden";
})(PostStatus = exports.PostStatus || (exports.PostStatus = {}));
exports.PostStatus = {
PENDING: "pending",
APPROVED: "approved",
REJECTED: "rejected",
DELETED: "deleted",
HIDDEN: "hidden"
};
/**

@@ -67,8 +63,7 @@ * possible discussionn content types, i.e. a post can be about an item, dataset, or group

*/
var DiscussionType;
(function (DiscussionType) {
DiscussionType["DATASET"] = "dataset";
DiscussionType["ITEM"] = "item";
DiscussionType["GROUP"] = "group";
})(DiscussionType = exports.DiscussionType || (exports.DiscussionType = {}));
exports.DiscussionType = {
DATASET: "dataset",
ITEM: "item",
GROUP: "group"
};
/**

@@ -80,8 +75,7 @@ * source of a post, i.e. app context

*/
var DiscussionSource;
(function (DiscussionSource) {
DiscussionSource["HUB"] = "hub";
DiscussionSource["AGO"] = "ago";
DiscussionSource["URBAN"] = "urban";
})(DiscussionSource = exports.DiscussionSource || (exports.DiscussionSource = {}));
exports.DiscussionSource = {
HUB: "hub",
AGO: "ago",
URBAN: "urban"
};
/**

@@ -93,9 +87,8 @@ * relations of post entity

*/
var PostRelation;
(function (PostRelation) {
PostRelation["REPLIES"] = "replies";
PostRelation["REACTIONS"] = "reactions";
PostRelation["PARENT"] = "parent";
PostRelation["CHANNEL"] = "channel";
})(PostRelation = exports.PostRelation || (exports.PostRelation = {}));
exports.PostRelation = {
REPLIES: "replies",
REACTIONS: "reactions",
PARENT: "parent",
CHANNEL: "channel"
};
/**

@@ -107,6 +100,5 @@ * relations of channel entity

*/
var ChannelRelation;
(function (ChannelRelation) {
ChannelRelation["SETTINGS"] = "settings";
})(ChannelRelation = exports.ChannelRelation || (exports.ChannelRelation = {}));
exports.ChannelRelation = {
SETTINGS: "settings"
};
/**

@@ -118,6 +110,5 @@ * relations of reaction entity

*/
var ReactionRelation;
(function (ReactionRelation) {
ReactionRelation["POST"] = "post";
})(ReactionRelation = exports.ReactionRelation || (exports.ReactionRelation = {}));
exports.ReactionRelation = {
POST: "post"
};
//# sourceMappingURL=types.js.map

@@ -10,6 +10,7 @@ import { IHubRequestOptions as _IHubRequestOptions } from "@esri/hub-common";

*/
export declare enum SortOrder {
ASC = "ASC",
DESC = "DESC"
}
export declare const SortOrder: {
readonly ASC: "ASC";
readonly DESC: "DESC";
};
export declare type SortOrder = typeof SortOrder[keyof typeof SortOrder];
/**

@@ -21,12 +22,13 @@ * reactions to posts

*/
export declare enum PostReaction {
THUMBS_UP = "thumbs_up",
THUMBS_DOWN = "thumbs_down",
THINKING = "thinking",
HEART = "heart",
ONE_HUNDRED = "one_hundred",
SAD = "sad",
LAUGH = "laugh",
SURPRISED = "surprised"
}
export declare const PostReaction: {
readonly THUMBS_UP: "thumbs_up";
readonly THUMBS_DOWN: "thumbs_down";
readonly THINKING: "thinking";
readonly HEART: "heart";
readonly ONE_HUNDRED: "one_hundred";
readonly SAD: "sad";
readonly LAUGH: "laugh";
readonly SURPRISED: "surprised";
};
export declare type PostReaction = typeof PostReaction[keyof typeof PostReaction];
/**

@@ -38,7 +40,8 @@ * platform sharing access values

*/
export declare enum SharingAccess {
PUBLIC = "public",
ORG = "org",
PRIVATE = "private"
}
export declare const SharingAccess: {
readonly PUBLIC: "public";
readonly ORG: "org";
readonly PRIVATE: "private";
};
export declare type SharingAccess = typeof SharingAccess[keyof typeof SharingAccess];
/**

@@ -62,9 +65,10 @@ * representation of AGOL platform sharing ACL

*/
export declare enum PostStatus {
PENDING = "pending",
APPROVED = "approved",
REJECTED = "rejected",
DELETED = "deleted",
HIDDEN = "hidden"
}
export declare const PostStatus: {
readonly PENDING: "pending";
readonly APPROVED: "approved";
readonly REJECTED: "rejected";
readonly DELETED: "deleted";
readonly HIDDEN: "hidden";
};
export declare type PostStatus = typeof PostStatus[keyof typeof PostStatus];
/**

@@ -76,7 +80,8 @@ * possible discussionn content types, i.e. a post can be about an item, dataset, or group

*/
export declare enum DiscussionType {
DATASET = "dataset",
ITEM = "item",
GROUP = "group"
}
export declare const DiscussionType: {
readonly DATASET: "dataset";
readonly ITEM: "item";
readonly GROUP: "group";
};
export declare type DiscussionType = typeof DiscussionType[keyof typeof DiscussionType];
/**

@@ -88,7 +93,8 @@ * source of a post, i.e. app context

*/
export declare enum DiscussionSource {
HUB = "hub",
AGO = "ago",
URBAN = "urban"
}
export declare const DiscussionSource: {
readonly HUB: "hub";
readonly AGO: "ago";
readonly URBAN: "urban";
};
export declare type DiscussionSource = typeof DiscussionSource[keyof typeof DiscussionSource];
/**

@@ -116,8 +122,9 @@ * component parts of a parsed discussion uri, following this uri convention:

*/
export declare enum PostRelation {
REPLIES = "replies",
REACTIONS = "reactions",
PARENT = "parent",
CHANNEL = "channel"
}
export declare const PostRelation: {
readonly REPLIES: "replies";
readonly REACTIONS: "reactions";
readonly PARENT: "parent";
readonly CHANNEL: "channel";
};
export declare type PostRelation = typeof PostRelation[keyof typeof PostRelation];
/**

@@ -129,5 +136,6 @@ * relations of channel entity

*/
export declare enum ChannelRelation {
SETTINGS = "settings"
}
export declare const ChannelRelation: {
readonly SETTINGS: "settings";
};
export declare type ChannelRelation = typeof ChannelRelation[keyof typeof ChannelRelation];
/**

@@ -139,5 +147,6 @@ * relations of reaction entity

*/
export declare enum ReactionRelation {
POST = "post"
}
export declare const ReactionRelation: {
readonly POST: "post";
};
export declare type ReactionRelation = typeof ReactionRelation[keyof typeof ReactionRelation];
/**

@@ -144,0 +153,0 @@ * authoring properties

/* @preserve
* @esri/hub-discussions - v1.0.0-beta.2 - Mon Mar 22 2021 16:43:00 GMT-0400 (Eastern Daylight Time)
* @esri/hub-discussions - v1.0.0-beta.3 - Tue Mar 23 2021 09:22:09 GMT-0400 (Eastern Daylight Time)
* Copyright (c) 2021 Environmental Systems Research Institute, Inc.

@@ -308,50 +308,98 @@ * Apache-2.0

*/
(function (SortOrder) {
SortOrder["ASC"] = "ASC";
SortOrder["DESC"] = "DESC";
})(exports.SortOrder || (exports.SortOrder = {}));
(function (PostReaction) {
PostReaction["THUMBS_UP"] = "thumbs_up";
PostReaction["THUMBS_DOWN"] = "thumbs_down";
PostReaction["THINKING"] = "thinking";
PostReaction["HEART"] = "heart";
PostReaction["ONE_HUNDRED"] = "one_hundred";
PostReaction["SAD"] = "sad";
PostReaction["LAUGH"] = "laugh";
PostReaction["SURPRISED"] = "surprised";
})(exports.PostReaction || (exports.PostReaction = {}));
(function (SharingAccess) {
SharingAccess["PUBLIC"] = "public";
SharingAccess["ORG"] = "org";
SharingAccess["PRIVATE"] = "private";
})(exports.SharingAccess || (exports.SharingAccess = {}));
(function (PostStatus) {
PostStatus["PENDING"] = "pending";
PostStatus["APPROVED"] = "approved";
PostStatus["REJECTED"] = "rejected";
PostStatus["DELETED"] = "deleted";
PostStatus["HIDDEN"] = "hidden";
})(exports.PostStatus || (exports.PostStatus = {}));
(function (DiscussionType) {
DiscussionType["DATASET"] = "dataset";
DiscussionType["ITEM"] = "item";
DiscussionType["GROUP"] = "group";
})(exports.DiscussionType || (exports.DiscussionType = {}));
(function (DiscussionSource) {
DiscussionSource["HUB"] = "hub";
DiscussionSource["AGO"] = "ago";
DiscussionSource["URBAN"] = "urban";
})(exports.DiscussionSource || (exports.DiscussionSource = {}));
(function (PostRelation) {
PostRelation["REPLIES"] = "replies";
PostRelation["REACTIONS"] = "reactions";
PostRelation["PARENT"] = "parent";
PostRelation["CHANNEL"] = "channel";
})(exports.PostRelation || (exports.PostRelation = {}));
(function (ChannelRelation) {
ChannelRelation["SETTINGS"] = "settings";
})(exports.ChannelRelation || (exports.ChannelRelation = {}));
(function (ReactionRelation) {
ReactionRelation["POST"] = "post";
})(exports.ReactionRelation || (exports.ReactionRelation = {}));
var SortOrder = {
ASC: "ASC",
DESC: "DESC"
};
/**
* reactions to posts
*
* @export
* @enum {number}
*/
var PostReaction = {
THUMBS_UP: "thumbs_up",
THUMBS_DOWN: "thumbs_down",
THINKING: "thinking",
HEART: "heart",
ONE_HUNDRED: "one_hundred",
SAD: "sad",
LAUGH: "laugh",
SURPRISED: "surprised"
};
/**
* platform sharing access values
*
* @export
* @enum {number}
*/
var SharingAccess = {
PUBLIC: "public",
ORG: "org",
PRIVATE: "private"
};
/**
* possible statuses of a post
*
* @export
* @enum {number}
*/
var PostStatus = {
PENDING: "pending",
APPROVED: "approved",
REJECTED: "rejected",
DELETED: "deleted",
HIDDEN: "hidden"
};
/**
* possible discussionn content types, i.e. a post can be about an item, dataset, or group
*
* @export
* @enum {number}
*/
var DiscussionType = {
DATASET: "dataset",
ITEM: "item",
GROUP: "group"
};
/**
* source of a post, i.e. app context
*
* @export
* @enum {number}
*/
var DiscussionSource = {
HUB: "hub",
AGO: "ago",
URBAN: "urban"
};
/**
* relations of post entity
*
* @export
* @enum {number}
*/
var PostRelation = {
REPLIES: "replies",
REACTIONS: "reactions",
PARENT: "parent",
CHANNEL: "channel"
};
/**
* relations of channel entity
*
* @export
* @enum {number}
*/
var ChannelRelation = {
SETTINGS: "settings"
};
/**
* relations of reaction entity
*
* @export
* @enum {number}
*/
var ReactionRelation = {
POST: "post"
};

@@ -1209,2 +1257,11 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};

exports.ChannelRelation = ChannelRelation;
exports.DiscussionSource = DiscussionSource;
exports.DiscussionType = DiscussionType;
exports.PostReaction = PostReaction;
exports.PostRelation = PostRelation;
exports.PostStatus = PostStatus;
exports.ReactionRelation = ReactionRelation;
exports.SharingAccess = SharingAccess;
exports.SortOrder = SortOrder;
exports.canCreateChannel = canCreateChannel;

@@ -1211,0 +1268,0 @@ exports.canCreateReaction = canCreateReaction;

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).arcgisHub=e.arcgisHub||{})}(this,function(e){"use strict";function r(t,n){return function(e){var t=e.token,n=e.authentication,r=function(){return Promise.resolve(t)};return n&&(r=n.getToken.bind(n,n.portal)),r()}(n).then(function(e){return function(e,t,n){var r=new Headers;r.append("Content-Type","application/json"),n&&r.append("Authorization","Bearer "+n);var o={headers:r,method:t.httpMethod||"GET",mode:"cors",cache:"no-cache",credentials:"include"},s=t.hubApiUrl;return t.params&&("GET"===t.httpMethod?e+="?"+new URLSearchParams(t.params).toString():o.body=JSON.stringify(t.params)),fetch([s,e.replace(/^\//,"")].join("/"),o).then(function(e){return e.json()})}(t,n,e)})}var t,n,o,s,a,c,i;(t=e.SortOrder||(e.SortOrder={})).ASC="ASC",t.DESC="DESC",(n=e.PostReaction||(e.PostReaction={})).THUMBS_UP="thumbs_up",n.THUMBS_DOWN="thumbs_down",n.THINKING="thinking",n.HEART="heart",n.ONE_HUNDRED="one_hundred",n.SAD="sad",n.LAUGH="laugh",n.SURPRISED="surprised",(o=e.SharingAccess||(e.SharingAccess={})).PUBLIC="public",o.ORG="org",o.PRIVATE="private",(s=e.PostStatus||(e.PostStatus={})).PENDING="pending",s.APPROVED="approved",s.REJECTED="rejected",s.DELETED="deleted",s.HIDDEN="hidden",(a=e.DiscussionType||(e.DiscussionType={})).DATASET="dataset",a.ITEM="item",a.GROUP="group",(c=e.DiscussionSource||(e.DiscussionSource={})).HUB="hub",c.AGO="ago",c.URBAN="urban",(i=e.PostRelation||(e.PostRelation={})).REPLIES="replies",i.REACTIONS="reactions",i.PARENT="parent",i.CHANNEL="channel",(e.ChannelRelation||(e.ChannelRelation={})).SETTINGS="settings",(e.ReactionRelation||(e.ReactionRelation={})).POST="post";var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e},h=Object.prototype.hasOwnProperty;function p(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function l(e){try{return encodeURIComponent(e)}catch(e){return null}}var f={stringify:function(e,t){t=t||"";var n,r,o=[];for(r in"string"!=typeof t&&(t="?"),e)if(h.call(e,r)){if((n=e[r])||null!=n&&!isNaN(n)||(n=""),r=l(r),n=l(n),null===r||null===n)continue;o.push(r+"="+n)}return o.length?t+o.join("&"):""},parse:function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,r={};t=n.exec(e);){var o=p(t[1]),s=p(t[2]);null===o||null===s||o in r||(r[o]=s)}return r}},m=/^[A-Za-z][A-Za-z0-9+-.]*:[\\/]+/,g=/^([a-z][a-z0-9.+-]*:)?([\\/]{1,})?([\S\s]*)/i,y=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function v(e){return(e||"").toString().replace(y,"")}var b=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],w={hash:1,query:1};function I(e){var t,n=("undefined"!=typeof window?window:void 0!==u?u:"undefined"!=typeof self?self:{}).location||{},r={},o=typeof(e=e||n);if("blob:"===e.protocol)r=new E(unescape(e.pathname),{});else if("string"==o)for(t in r=new E(e,{}),w)delete r[t];else if("object"==o){for(t in e)t in w||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=m.test(e.href))}return r}function P(e){e=v(e);var t=g.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!(t[2]&&2<=t[2].length),rest:t[2]&&1===t[2].length?"/"+t[3]:t[3]}}function E(e,t,n){if(e=v(e),!(this instanceof E))return new E(e,t,n);var r,o,s,a,c,i,u=b.slice(),h=typeof t,p=this,l=0;for("object"!=h&&"string"!=h&&(n=t,t=null),n&&"function"!=typeof n&&(n=f.parse),t=I(t),r=!(o=P(e||"")).protocol&&!o.slashes,p.slashes=o.slashes||r&&t.slashes,p.protocol=o.protocol||t.protocol||"",e=o.rest,o.slashes||(u[3]=[/(.*)/,"pathname"]);l<u.length;l++)"function"!=typeof(a=u[l])?(s=a[0],i=a[1],s!=s?p[i]=e:"string"==typeof s?~(c=e.indexOf(s))&&(e="number"==typeof a[2]?(p[i]=e.slice(0,c),e.slice(c+a[2])):(p[i]=e.slice(c),e.slice(0,c))):(c=s.exec(e))&&(p[i]=c[1],e=e.slice(0,c.index)),p[i]=p[i]||r&&a[3]&&t[i]||"",a[4]&&(p[i]=p[i].toLowerCase())):e=a(e);n&&(p.query=n(p.query)),r&&t.slashes&&"/"!==p.pathname.charAt(0)&&(""!==p.pathname||""!==t.pathname)&&(p.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],s=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(s=!0),n.splice(r,1),a--);return s&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(p.pathname,t.pathname)),"/"!==p.pathname.charAt(0)&&p.hostname&&(p.pathname="/"+p.pathname),d(p.port,p.protocol)||(p.host=p.hostname,p.port=""),p.username=p.password="",p.auth&&(a=p.auth.split(":"),p.username=a[0]||"",p.password=a[1]||""),p.origin=p.protocol&&p.host&&"file:"!==p.protocol?p.protocol+"//"+p.host:"null",p.href=p.toString()}E.prototype={set:function(e,t,n){var r=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||f.parse)(t)),r[e]=t;break;case"port":r[e]=t,d(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,/:\d+$/.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";r[e]=t.charAt(0)!==o?o+t:t}else r[e]=t;break;default:r[e]=t}for(var s=0;s<b.length;s++){var a=b[s];a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.origin=r.protocol&&r.host&&"file:"!==r.protocol?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(e){e&&"function"==typeof e||(e=f.stringify);var t,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var o=r+(n.slashes?"//":"");return n.username&&(o+=n.username,n.password&&(o+=":"+n.password),o+="@"),o+=n.host+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(o+=n.hash),o}},E.extractProtocol=P,E.location=I,E.trimLeft=v,E.qs=f;var T=E,O=Object.freeze(Object.assign(Object.create(null),T,{default:T}));function S(n){return function(e,t){return-1<n.indexOf(t.userMembership.memberType)&&e.push(t.id),e}}function R(e){return"org_admin"===e.role&&!e.roleId}function A(o,s){return function(e,t){var n=t.groups,r=e.groups.reduce(S(o),[]);return n[s?"every":"some"](function(e){return-1<r.indexOf(e)})}}function C(e,t){return 1===e.orgs.length&&-1<e.orgs.indexOf(t.orgId)}function D(e,t){return R(t)&&-1<e.orgs.indexOf(t.orgId)}e.canCreateChannel=function(e,t){return"private"===e.access?A(["owner","admin","member"],!0)(t,e):D(e,t)},e.canCreateReaction=function(e,t){var n=e.allowReaction,r=e.allowedReactions;return!!n&&(!r||-1<r.indexOf(t))},e.canModifyChannel=function(e,t){return"private"===e.access?A(["owner","admin"])(t,e):D(e,t)},e.canPostToChannel=function(e,t){return"private"===e.access?A(["owner","admin","member"])(t,e):"org"===e.access?C(e,t):"anonymous"!==t.username||e.allowAnonymous},e.canReadFromChannel=function(e,t){return"private"===e.access?A(["member","owner","admin"])(t,e):"org"!==e.access||C(e,t)},e.createChannel=function(e){return e.httpMethod="POST",r("/channels",e)},e.createPost=function(e){var t="/posts";return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="POST",r(t,e)},e.createReaction=function(e){var t=e.postId;return e.httpMethod="POST",r("/posts/"+t+"/reactions",e)},e.createReply=function(e){var t="/posts/"+e.postId+"/reply";return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="POST",r(t,e)},e.fetchChannel=function(e){return e.httpMethod="GET",r("/channels/"+e.channelId,e)},e.fetchPost=function(e){var t="/posts/"+e.postId;return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="GET",r(t,e)},e.isChannelInclusive=function(t,e){var n,r;if("private"===t.access&&1===t.groups.length?(n="private"===e.access&&e.groups[0]===t.groups[0])||(r="replies to private post must be shared to same team"):"private"===t.access?(n="private"===e.access&&e.groups.every(function(e){return-1<t.groups.indexOf(e)}))||(r="replies to shared post must be shared to subset of same teams"):"org"===t.access&&"org"===e.access?(n=e.orgs.every(function(e){return-1<t.orgs.indexOf(e)}))||(r="replies to org post must be shared to subset of same orgs"):"org"===t.access&&((n="public"!==e.access)||(r="replies to org post cannot be shared to public")),r)throw new Error(r);return n},e.isGroupDiscussable=function(e){return!0},e.isItemDiscussable=function(e){return!0},e.isOrgAdmin=R,e.parseDiscussionURI=function(e){var t=new URL(e)&&new O(e),n=t.protocol.slice(0,-1),r=t.hostname,o=t.pathname.split("/")[1].split("_"),s=o[0],a=o[1],c=void 0===a?null:a,i=new URLSearchParams(t.query);return{source:n,type:r,id:s||null,layer:c,features:i.has("id")&&i.get("id").split(",")||null,attribute:i.has("attribute")&&i.get("attribute")||null}},e.reduceByGroupMembership=S,e.removeChannel=function(e){return e.httpMethod="DELETE",r("/channels/"+e.channelId,e)},e.removePost=function(e){var t="/posts/"+e.postId;return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="DELETE",r(t,e)},e.removeReaction=function(e){var t=e.postId,n=e.reactionId;return e.httpMethod="DELETE",r("/posts/"+t+"/reactions/"+n,e)},e.searchChannels=function(e){return e.httpMethod="GET",r("/channels",e)},e.searchPosts=function(e){var t="/posts";return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="GET",r(t,e)},e.updateChannel=function(e){return e.httpMethod="PATCH",r("/channels/"+e.channelId,e)},e.updatePost=function(e){var t="/posts/"+e.postId;return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="PATCH",r(t,e)},e.updatePostSharing=function(e){var t="/posts/"+e.postId+"/sharing";return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="PATCH",r(t,e)},e.updatePostStatus=function(e){var t="/posts/"+e.postId+"/status";return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="PATCH",r(t,e)},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).arcgisHub=e.arcgisHub||{})}(this,function(e){"use strict";function r(t,n){return function(e){var t=e.token,n=e.authentication,r=function(){return Promise.resolve(t)};return n&&(r=n.getToken.bind(n,n.portal)),r()}(n).then(function(e){return function(e,t,n){var r=new Headers;r.append("Content-Type","application/json"),n&&r.append("Authorization","Bearer "+n);var o={headers:r,method:t.httpMethod||"GET",mode:"cors",cache:"no-cache",credentials:"include"},s=t.hubApiUrl;return t.params&&("GET"===t.httpMethod?e+="?"+new URLSearchParams(t.params).toString():o.body=JSON.stringify(t.params)),fetch([s,e.replace(/^\//,"")].join("/"),o).then(function(e){return e.json()})}(t,n,e)})}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e},a=Object.prototype.hasOwnProperty;function c(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function i(e){try{return encodeURIComponent(e)}catch(e){return null}}var f={stringify:function(e,t){t=t||"";var n,r,o=[];for(r in"string"!=typeof t&&(t="?"),e)if(a.call(e,r)){if((n=e[r])||null!=n&&!isNaN(n)||(n=""),r=i(r),n=i(n),null===r||null===n)continue;o.push(r+"="+n)}return o.length?t+o.join("&"):""},parse:function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,r={};t=n.exec(e);){var o=c(t[1]),s=c(t[2]);null===o||null===s||o in r||(r[o]=s)}return r}},u=/^[A-Za-z][A-Za-z0-9+-.]*:[\\/]+/,n=/^([a-z][a-z0-9.+-]*:)?([\\/]{1,})?([\S\s]*)/i,t=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function m(e){return(e||"").toString().replace(t,"")}var g=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function y(e){var t,n=("undefined"!=typeof window?window:void 0!==s?s:"undefined"!=typeof self?self:{}).location||{},r={},o=typeof(e=e||n);if("blob:"===e.protocol)r=new b(unescape(e.pathname),{});else if("string"==o)for(t in r=new b(e,{}),h)delete r[t];else if("object"==o){for(t in e)t in h||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=u.test(e.href))}return r}function v(e){e=m(e);var t=n.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!(t[2]&&2<=t[2].length),rest:t[2]&&1===t[2].length?"/"+t[3]:t[3]}}function b(e,t,n){if(e=m(e),!(this instanceof b))return new b(e,t,n);var r,o,s,a,c,i,u=g.slice(),h=typeof t,p=this,l=0;for("object"!=h&&"string"!=h&&(n=t,t=null),n&&"function"!=typeof n&&(n=f.parse),t=y(t),r=!(o=v(e||"")).protocol&&!o.slashes,p.slashes=o.slashes||r&&t.slashes,p.protocol=o.protocol||t.protocol||"",e=o.rest,o.slashes||(u[3]=[/(.*)/,"pathname"]);l<u.length;l++)"function"!=typeof(a=u[l])?(s=a[0],i=a[1],s!=s?p[i]=e:"string"==typeof s?~(c=e.indexOf(s))&&(e="number"==typeof a[2]?(p[i]=e.slice(0,c),e.slice(c+a[2])):(p[i]=e.slice(c),e.slice(0,c))):(c=s.exec(e))&&(p[i]=c[1],e=e.slice(0,c.index)),p[i]=p[i]||r&&a[3]&&t[i]||"",a[4]&&(p[i]=p[i].toLowerCase())):e=a(e);n&&(p.query=n(p.query)),r&&t.slashes&&"/"!==p.pathname.charAt(0)&&(""!==p.pathname||""!==t.pathname)&&(p.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],s=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(s=!0),n.splice(r,1),a--);return s&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(p.pathname,t.pathname)),"/"!==p.pathname.charAt(0)&&p.hostname&&(p.pathname="/"+p.pathname),d(p.port,p.protocol)||(p.host=p.hostname,p.port=""),p.username=p.password="",p.auth&&(a=p.auth.split(":"),p.username=a[0]||"",p.password=a[1]||""),p.origin=p.protocol&&p.host&&"file:"!==p.protocol?p.protocol+"//"+p.host:"null",p.href=p.toString()}b.prototype={set:function(e,t,n){var r=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||f.parse)(t)),r[e]=t;break;case"port":r[e]=t,d(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,/:\d+$/.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";r[e]=t.charAt(0)!==o?o+t:t}else r[e]=t;break;default:r[e]=t}for(var s=0;s<g.length;s++){var a=g[s];a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.origin=r.protocol&&r.host&&"file:"!==r.protocol?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(e){e&&"function"==typeof e||(e=f.stringify);var t,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var o=r+(n.slashes?"//":"");return n.username&&(o+=n.username,n.password&&(o+=":"+n.password),o+="@"),o+=n.host+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(o+=n.hash),o}},b.extractProtocol=v,b.location=y,b.trimLeft=m,b.qs=f;var o=b,p=Object.freeze(Object.assign(Object.create(null),o,{default:o}));function l(n){return function(e,t){return-1<n.indexOf(t.userMembership.memberType)&&e.push(t.id),e}}function w(e){return"org_admin"===e.role&&!e.roleId}function I(o,s){return function(e,t){var n=t.groups,r=e.groups.reduce(l(o),[]);return n[s?"every":"some"](function(e){return-1<r.indexOf(e)})}}function P(e,t){return 1===e.orgs.length&&-1<e.orgs.indexOf(t.orgId)}function E(e,t){return w(t)&&-1<e.orgs.indexOf(t.orgId)}e.ChannelRelation={SETTINGS:"settings"},e.DiscussionSource={HUB:"hub",AGO:"ago",URBAN:"urban"},e.DiscussionType={DATASET:"dataset",ITEM:"item",GROUP:"group"},e.PostReaction={THUMBS_UP:"thumbs_up",THUMBS_DOWN:"thumbs_down",THINKING:"thinking",HEART:"heart",ONE_HUNDRED:"one_hundred",SAD:"sad",LAUGH:"laugh",SURPRISED:"surprised"},e.PostRelation={REPLIES:"replies",REACTIONS:"reactions",PARENT:"parent",CHANNEL:"channel"},e.PostStatus={PENDING:"pending",APPROVED:"approved",REJECTED:"rejected",DELETED:"deleted",HIDDEN:"hidden"},e.ReactionRelation={POST:"post"},e.SharingAccess={PUBLIC:"public",ORG:"org",PRIVATE:"private"},e.SortOrder={ASC:"ASC",DESC:"DESC"},e.canCreateChannel=function(e,t){return"private"===e.access?I(["owner","admin","member"],!0)(t,e):E(e,t)},e.canCreateReaction=function(e,t){var n=e.allowReaction,r=e.allowedReactions;return!!n&&(!r||-1<r.indexOf(t))},e.canModifyChannel=function(e,t){return"private"===e.access?I(["owner","admin"])(t,e):E(e,t)},e.canPostToChannel=function(e,t){return"private"===e.access?I(["owner","admin","member"])(t,e):"org"===e.access?P(e,t):"anonymous"!==t.username||e.allowAnonymous},e.canReadFromChannel=function(e,t){return"private"===e.access?I(["member","owner","admin"])(t,e):"org"!==e.access||P(e,t)},e.createChannel=function(e){return e.httpMethod="POST",r("/channels",e)},e.createPost=function(e){var t="/posts";return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="POST",r(t,e)},e.createReaction=function(e){var t=e.postId;return e.httpMethod="POST",r("/posts/"+t+"/reactions",e)},e.createReply=function(e){var t="/posts/"+e.postId+"/reply";return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="POST",r(t,e)},e.fetchChannel=function(e){return e.httpMethod="GET",r("/channels/"+e.channelId,e)},e.fetchPost=function(e){var t="/posts/"+e.postId;return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="GET",r(t,e)},e.isChannelInclusive=function(t,e){var n,r;if("private"===t.access&&1===t.groups.length?(n="private"===e.access&&e.groups[0]===t.groups[0])||(r="replies to private post must be shared to same team"):"private"===t.access?(n="private"===e.access&&e.groups.every(function(e){return-1<t.groups.indexOf(e)}))||(r="replies to shared post must be shared to subset of same teams"):"org"===t.access&&"org"===e.access?(n=e.orgs.every(function(e){return-1<t.orgs.indexOf(e)}))||(r="replies to org post must be shared to subset of same orgs"):"org"===t.access&&((n="public"!==e.access)||(r="replies to org post cannot be shared to public")),r)throw new Error(r);return n},e.isGroupDiscussable=function(e){return!0},e.isItemDiscussable=function(e){return!0},e.isOrgAdmin=w,e.parseDiscussionURI=function(e){var t=new URL(e)&&new p(e),n=t.protocol.slice(0,-1),r=t.hostname,o=t.pathname.split("/")[1].split("_"),s=o[0],a=o[1],c=void 0===a?null:a,i=new URLSearchParams(t.query);return{source:n,type:r,id:s||null,layer:c,features:i.has("id")&&i.get("id").split(",")||null,attribute:i.has("attribute")&&i.get("attribute")||null}},e.reduceByGroupMembership=l,e.removeChannel=function(e){return e.httpMethod="DELETE",r("/channels/"+e.channelId,e)},e.removePost=function(e){var t="/posts/"+e.postId;return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="DELETE",r(t,e)},e.removeReaction=function(e){var t=e.postId,n=e.reactionId;return e.httpMethod="DELETE",r("/posts/"+t+"/reactions/"+n,e)},e.searchChannels=function(e){return e.httpMethod="GET",r("/channels",e)},e.searchPosts=function(e){var t="/posts";return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="GET",r(t,e)},e.updateChannel=function(e){return e.httpMethod="PATCH",r("/channels/"+e.channelId,e)},e.updatePost=function(e){var t="/posts/"+e.postId;return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="PATCH",r(t,e)},e.updatePostSharing=function(e){var t="/posts/"+e.postId+"/sharing";return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="PATCH",r(t,e)},e.updatePostStatus=function(e){var t="/posts/"+e.postId+"/status";return e.hasOwnProperty("channelId")&&(t="/channels/"+e.channelId+t),e.httpMethod="PATCH",r(t,e)},Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=discussions.umd.min.js.map
{
"name": "@esri/hub-discussions",
"version": "1.0.0-beta.2",
"version": "1.0.0-beta.3",
"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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc