@esri/arcgis-rest-portal 4.4.1 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/portal.esm.js +97 -46
- package/dist/bundled/portal.esm.js.map +1 -1
- package/dist/bundled/portal.esm.min.js +4 -4
- package/dist/bundled/portal.esm.min.js.map +1 -1
- package/dist/bundled/portal.umd.js +98 -45
- package/dist/bundled/portal.umd.js.map +1 -1
- package/dist/bundled/portal.umd.min.js +4 -4
- package/dist/bundled/portal.umd.min.js.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/items/helpers.js.map +1 -1
- package/dist/cjs/items/remove.js +25 -1
- package/dist/cjs/items/remove.js.map +1 -1
- package/dist/cjs/sharing/access.js +5 -4
- package/dist/cjs/sharing/access.js.map +1 -1
- package/dist/cjs/sharing/helpers.js +8 -9
- package/dist/cjs/sharing/helpers.js.map +1 -1
- package/dist/cjs/sharing/share-item-with-group.js +6 -5
- package/dist/cjs/sharing/share-item-with-group.js.map +1 -1
- package/dist/cjs/sharing/unshare-item-with-group.js +5 -4
- package/dist/cjs/sharing/unshare-item-with-group.js.map +1 -1
- package/dist/cjs/users/get-user-tags.js +4 -3
- package/dist/cjs/users/get-user-tags.js.map +1 -1
- package/dist/cjs/users/get-user-url.js +1 -0
- package/dist/cjs/users/get-user-url.js.map +1 -1
- package/dist/cjs/users/get-user.js +4 -3
- package/dist/cjs/users/get-user.js.map +1 -1
- package/dist/cjs/users/invitation.js +9 -8
- package/dist/cjs/users/invitation.js.map +1 -1
- package/dist/cjs/users/notification.js +5 -4
- package/dist/cjs/users/notification.js.map +1 -1
- package/dist/cjs/users/update.js +3 -2
- package/dist/cjs/users/update.js.map +1 -1
- package/dist/cjs/util/determine-username.js +28 -0
- package/dist/cjs/util/determine-username.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/items/helpers.d.ts +3 -3
- package/dist/esm/items/helpers.js.map +1 -1
- package/dist/esm/items/remove.d.ts +20 -0
- package/dist/esm/items/remove.js +23 -0
- package/dist/esm/items/remove.js.map +1 -1
- package/dist/esm/sharing/access.js +5 -4
- package/dist/esm/sharing/access.js.map +1 -1
- package/dist/esm/sharing/helpers.d.ts +2 -2
- package/dist/esm/sharing/helpers.js +8 -9
- package/dist/esm/sharing/helpers.js.map +1 -1
- package/dist/esm/sharing/share-item-with-group.js +6 -5
- package/dist/esm/sharing/share-item-with-group.js.map +1 -1
- package/dist/esm/sharing/unshare-item-with-group.js +5 -4
- package/dist/esm/sharing/unshare-item-with-group.js.map +1 -1
- package/dist/esm/users/get-user-tags.js +4 -3
- package/dist/esm/users/get-user-tags.js.map +1 -1
- package/dist/esm/users/get-user-url.d.ts +1 -0
- package/dist/esm/users/get-user-url.js +1 -0
- package/dist/esm/users/get-user-url.js.map +1 -1
- package/dist/esm/users/get-user.d.ts +2 -2
- package/dist/esm/users/get-user.js +4 -3
- package/dist/esm/users/get-user.js.map +1 -1
- package/dist/esm/users/invitation.js +9 -8
- package/dist/esm/users/invitation.js.map +1 -1
- package/dist/esm/users/notification.js +5 -4
- package/dist/esm/users/notification.js.map +1 -1
- package/dist/esm/users/update.js +3 -2
- package/dist/esm/users/update.js.map +1 -1
- package/dist/esm/util/determine-username.d.ts +16 -0
- package/dist/esm/util/determine-username.js +24 -0
- package/dist/esm/util/determine-username.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @preserve
|
|
2
|
-
* @esri/arcgis-rest-portal - v4.
|
|
3
|
-
* Copyright (c) 2017-
|
|
4
|
-
*
|
|
2
|
+
* @esri/arcgis-rest-portal - v4.5.0 - Apache-2.0
|
|
3
|
+
* Copyright (c) 2017-2025 Esri, Inc.
|
|
4
|
+
* Mon Apr 07 2025 17:49:09 GMT+0000 (Coordinated Universal Time)
|
|
5
5
|
*/
|
|
6
6
|
import { cleanUrl, request, appendCustomParams, warn } from '@esri/arcgis-rest-request';
|
|
7
7
|
|
|
@@ -866,15 +866,15 @@ function searchGroupUsers(id, searchOptions) {
|
|
|
866
866
|
|
|
867
867
|
/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.
|
|
868
868
|
* Apache-2.0 */
|
|
869
|
-
function getSharingUrl(requestOptions) {
|
|
870
|
-
const
|
|
871
|
-
const owner = requestOptions.owner ||
|
|
869
|
+
function getSharingUrl(requestOptions, username) {
|
|
870
|
+
const providedUsername = username || requestOptions.authentication.username; // as any workaround for backward compatibility for discovering username from provided auth method
|
|
871
|
+
const owner = requestOptions.owner || providedUsername;
|
|
872
872
|
return `${getPortalUrl(requestOptions)}/content/users/${encodeURIComponent(owner)}/items/${requestOptions.id}/share`;
|
|
873
873
|
}
|
|
874
|
-
function isItemOwner(requestOptions) {
|
|
875
|
-
const
|
|
876
|
-
const owner = requestOptions.owner ||
|
|
877
|
-
return owner ===
|
|
874
|
+
function isItemOwner(requestOptions, username) {
|
|
875
|
+
const providedUsername = username || requestOptions.authentication.username; // as any workaround for backward compatibility for discovering username from provided auth method
|
|
876
|
+
const owner = requestOptions.owner || providedUsername;
|
|
877
|
+
return owner === providedUsername;
|
|
878
878
|
}
|
|
879
879
|
/**
|
|
880
880
|
* Check it the user is a full org_admin
|
|
@@ -882,8 +882,7 @@ function isItemOwner(requestOptions) {
|
|
|
882
882
|
* @returns Promise resolving in a boolean indicating if the user is an ArcGIS Organization administrator
|
|
883
883
|
*/
|
|
884
884
|
function isOrgAdmin(requestOptions) {
|
|
885
|
-
|
|
886
|
-
return session.getUser(requestOptions).then((user) => {
|
|
885
|
+
return requestOptions.authentication.getUser().then((user) => {
|
|
887
886
|
return user && user.role === "org_admin" && !user.roleId;
|
|
888
887
|
});
|
|
889
888
|
}
|
|
@@ -1031,6 +1030,29 @@ function removeFolder(requestOptions) {
|
|
|
1031
1030
|
return request(url, requestOptions);
|
|
1032
1031
|
});
|
|
1033
1032
|
}
|
|
1033
|
+
/**
|
|
1034
|
+
* Delete an item's thumbnail. See the [REST Documentation](https://developers.arcgis.com/rest/users-groups-and-items/delete-item-thumbnail.htm) for more information.
|
|
1035
|
+
*
|
|
1036
|
+
* ```js
|
|
1037
|
+
* import { removeItemThumbnail } from "@esri/arcgis-rest-portal";
|
|
1038
|
+
*
|
|
1039
|
+
* removeItemThumbnail({
|
|
1040
|
+
* id: "3ef",
|
|
1041
|
+
* owner: "c@sey",
|
|
1042
|
+
* authentication
|
|
1043
|
+
* })
|
|
1044
|
+
* .then(response)
|
|
1045
|
+
* ```
|
|
1046
|
+
*
|
|
1047
|
+
* @param requestOptions - Options for the request
|
|
1048
|
+
* @returns A Promise that deletes a thumbnail.
|
|
1049
|
+
*/
|
|
1050
|
+
function removeItemThumbnail(requestOptions) {
|
|
1051
|
+
return determineOwner(requestOptions).then((owner) => {
|
|
1052
|
+
const url = `${getPortalUrl(requestOptions)}/content/users/${owner}/items/${requestOptions.id}/deleteThumbnail`;
|
|
1053
|
+
return request(url, requestOptions);
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1034
1056
|
|
|
1035
1057
|
/* Copyright (c) 2018-2021 Environmental Systems Research Institute, Inc.
|
|
1036
1058
|
* Apache-2.0 */
|
|
@@ -2075,6 +2097,30 @@ function _combineResults(responses) {
|
|
|
2075
2097
|
return combined;
|
|
2076
2098
|
}
|
|
2077
2099
|
|
|
2100
|
+
/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.
|
|
2101
|
+
* Apache-2.0 */
|
|
2102
|
+
/**
|
|
2103
|
+
* Used to determine the username to use in a request. Will use the `username` passed in the
|
|
2104
|
+
* `requestOptions` if present, otherwise will use the username from the `authentication` option.
|
|
2105
|
+
* This method is used internally to determine the username to use in a request and is async to
|
|
2106
|
+
* support the case where the username is not immediately available.
|
|
2107
|
+
*
|
|
2108
|
+
* @param requestOptions the requests options
|
|
2109
|
+
* @returns the authentecated users username encoded for use in a URL.
|
|
2110
|
+
*/
|
|
2111
|
+
async function determineUsername(requestOptions) {
|
|
2112
|
+
var _a;
|
|
2113
|
+
if (requestOptions.username) {
|
|
2114
|
+
return encodeURIComponent(requestOptions.username);
|
|
2115
|
+
}
|
|
2116
|
+
if ((_a = requestOptions.authentication) === null || _a === void 0 ? void 0 : _a.username) {
|
|
2117
|
+
return encodeURIComponent(requestOptions.authentication.username);
|
|
2118
|
+
}
|
|
2119
|
+
if (requestOptions.authentication) {
|
|
2120
|
+
return requestOptions.authentication.getUsername().then(encodeURIComponent);
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2078
2124
|
/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.
|
|
2079
2125
|
* Apache-2.0 */
|
|
2080
2126
|
/**
|
|
@@ -2091,7 +2137,7 @@ function _combineResults(responses) {
|
|
|
2091
2137
|
* @param requestOptions - options to pass through in the request
|
|
2092
2138
|
* @returns A Promise that will resolve with metadata about the user
|
|
2093
2139
|
*/
|
|
2094
|
-
function getUser(requestOptions) {
|
|
2140
|
+
async function getUser(requestOptions) {
|
|
2095
2141
|
let url;
|
|
2096
2142
|
let options = { httpMethod: "GET" };
|
|
2097
2143
|
// if a username is passed, assume ArcGIS Online
|
|
@@ -2100,8 +2146,8 @@ function getUser(requestOptions) {
|
|
|
2100
2146
|
}
|
|
2101
2147
|
else {
|
|
2102
2148
|
// if an authenticated session is passed, default to that user/portal unless another username is provided manually
|
|
2103
|
-
const username =
|
|
2104
|
-
url = `${getPortalUrl(requestOptions)}/community/users/${
|
|
2149
|
+
const username = await determineUsername(requestOptions);
|
|
2150
|
+
url = `${getPortalUrl(requestOptions)}/community/users/${username}`;
|
|
2105
2151
|
options = Object.assign(Object.assign({}, requestOptions), options);
|
|
2106
2152
|
}
|
|
2107
2153
|
// send the request
|
|
@@ -2126,9 +2172,9 @@ function getUser(requestOptions) {
|
|
|
2126
2172
|
* @param IGetUserOptions - options to pass through in the request
|
|
2127
2173
|
* @returns A Promise that will resolve with the user tag array
|
|
2128
2174
|
*/
|
|
2129
|
-
function getUserTags(requestOptions) {
|
|
2130
|
-
const username =
|
|
2131
|
-
const url = `${getPortalUrl(requestOptions)}/community/users/${
|
|
2175
|
+
async function getUserTags(requestOptions) {
|
|
2176
|
+
const username = await determineUsername(requestOptions);
|
|
2177
|
+
const url = `${getPortalUrl(requestOptions)}/community/users/${username}/tags`;
|
|
2132
2178
|
// send the request
|
|
2133
2179
|
return request(url, requestOptions);
|
|
2134
2180
|
}
|
|
@@ -2140,6 +2186,7 @@ function getUserTags(requestOptions) {
|
|
|
2140
2186
|
*
|
|
2141
2187
|
* @param session
|
|
2142
2188
|
* @returns User url to be used in API requests.
|
|
2189
|
+
* @deprecated This function requires a synchronous `username` on the session object which is not guaranteed. Use `getUser` instead. This function will be removed in the next release.
|
|
2143
2190
|
*/
|
|
2144
2191
|
function getUserUrl(session) {
|
|
2145
2192
|
return `${getPortalUrl(session)}/community/users/${encodeURIComponent(session.username)}`;
|
|
@@ -2160,9 +2207,9 @@ function getUserUrl(session) {
|
|
|
2160
2207
|
* @param requestOptions - options to pass through in the request
|
|
2161
2208
|
* @returns A Promise that will resolve with the user's invitations
|
|
2162
2209
|
*/
|
|
2163
|
-
function getUserInvitations(requestOptions) {
|
|
2210
|
+
async function getUserInvitations(requestOptions) {
|
|
2164
2211
|
let options = { httpMethod: "GET" };
|
|
2165
|
-
const username =
|
|
2212
|
+
const username = await determineUsername(requestOptions);
|
|
2166
2213
|
const portalUrl = getPortalUrl(requestOptions);
|
|
2167
2214
|
const url = `${portalUrl}/community/users/${username}/invitations`;
|
|
2168
2215
|
options = Object.assign(Object.assign({}, requestOptions), options);
|
|
@@ -2185,8 +2232,8 @@ function getUserInvitations(requestOptions) {
|
|
|
2185
2232
|
* @param requestOptions - options to pass through in the request
|
|
2186
2233
|
* @returns A Promise that will resolve with the invitation
|
|
2187
2234
|
*/
|
|
2188
|
-
function getUserInvitation(requestOptions) {
|
|
2189
|
-
const username =
|
|
2235
|
+
async function getUserInvitation(requestOptions) {
|
|
2236
|
+
const username = await determineUsername(requestOptions);
|
|
2190
2237
|
const portalUrl = getPortalUrl(requestOptions);
|
|
2191
2238
|
const url = `${portalUrl}/community/users/${username}/invitations/${requestOptions.invitationId}`;
|
|
2192
2239
|
let options = { httpMethod: "GET" };
|
|
@@ -2210,8 +2257,8 @@ function getUserInvitation(requestOptions) {
|
|
|
2210
2257
|
* @param requestOptions - Options for the request
|
|
2211
2258
|
* @returns A Promise that will resolve with the success/failure status of the request
|
|
2212
2259
|
*/
|
|
2213
|
-
function acceptInvitation(requestOptions) {
|
|
2214
|
-
const username =
|
|
2260
|
+
async function acceptInvitation(requestOptions) {
|
|
2261
|
+
const username = await determineUsername(requestOptions);
|
|
2215
2262
|
const portalUrl = getPortalUrl(requestOptions);
|
|
2216
2263
|
const url = `${portalUrl}/community/users/${username}/invitations/${requestOptions.invitationId}/accept`;
|
|
2217
2264
|
const options = Object.assign({}, requestOptions);
|
|
@@ -2233,8 +2280,8 @@ function acceptInvitation(requestOptions) {
|
|
|
2233
2280
|
* @param requestOptions - Options for the request
|
|
2234
2281
|
* @returns A Promise that will resolve with the success/failure status of the request
|
|
2235
2282
|
*/
|
|
2236
|
-
function declineInvitation(requestOptions) {
|
|
2237
|
-
const username =
|
|
2283
|
+
async function declineInvitation(requestOptions) {
|
|
2284
|
+
const username = await determineUsername(requestOptions);
|
|
2238
2285
|
const portalUrl = getPortalUrl(requestOptions);
|
|
2239
2286
|
const url = `${portalUrl}/community/users/${username}/invitations/${requestOptions.invitationId}/decline`;
|
|
2240
2287
|
const options = Object.assign({}, requestOptions);
|
|
@@ -2257,9 +2304,9 @@ function declineInvitation(requestOptions) {
|
|
|
2257
2304
|
* @param requestOptions - options to pass through in the request
|
|
2258
2305
|
* @returns A Promise that will resolve with the user's notifications
|
|
2259
2306
|
*/
|
|
2260
|
-
function getUserNotifications(requestOptions) {
|
|
2307
|
+
async function getUserNotifications(requestOptions) {
|
|
2261
2308
|
let options = { httpMethod: "GET" };
|
|
2262
|
-
const username =
|
|
2309
|
+
const username = await determineUsername(requestOptions);
|
|
2263
2310
|
const portalUrl = getPortalUrl(requestOptions);
|
|
2264
2311
|
const url = `${portalUrl}/community/users/${username}/notifications`;
|
|
2265
2312
|
options = Object.assign(Object.assign({}, requestOptions), options);
|
|
@@ -2272,8 +2319,8 @@ function getUserNotifications(requestOptions) {
|
|
|
2272
2319
|
* @param requestOptions - Options for the request
|
|
2273
2320
|
* @returns A Promise that will resolve with the success/failure status of the request
|
|
2274
2321
|
*/
|
|
2275
|
-
function removeNotification(requestOptions) {
|
|
2276
|
-
const username =
|
|
2322
|
+
async function removeNotification(requestOptions) {
|
|
2323
|
+
const username = await determineUsername(requestOptions);
|
|
2277
2324
|
const portalUrl = getPortalUrl(requestOptions);
|
|
2278
2325
|
const url = `${portalUrl}/community/users/${username}/notifications/${requestOptions.id}/delete`;
|
|
2279
2326
|
return request(url, requestOptions);
|
|
@@ -2338,9 +2385,10 @@ function searchCommunityUsers(search) {
|
|
|
2338
2385
|
* @param requestOptions - options to pass through in the request
|
|
2339
2386
|
* @returns A Promise that will resolve with metadata about the user
|
|
2340
2387
|
*/
|
|
2341
|
-
function updateUser(requestOptions) {
|
|
2388
|
+
async function updateUser(requestOptions) {
|
|
2342
2389
|
// default to the authenticated username unless another username is provided manually
|
|
2343
|
-
const username = requestOptions.user.username ||
|
|
2390
|
+
const username = requestOptions.user.username ||
|
|
2391
|
+
(await requestOptions.authentication.getUsername());
|
|
2344
2392
|
const updateUrl = `${getPortalUrl(requestOptions)}/community/users/${encodeURIComponent(username)}/update`;
|
|
2345
2393
|
// mixin custom params and the user information, then drop the user info
|
|
2346
2394
|
requestOptions.params = Object.assign(Object.assign({}, requestOptions.user), requestOptions.params);
|
|
@@ -2409,9 +2457,10 @@ async function setUserProperties(username, properties, requestOptions) {
|
|
|
2409
2457
|
* @param requestOptions - Options for the request.
|
|
2410
2458
|
* @returns A Promise that will resolve with the data from the response.
|
|
2411
2459
|
*/
|
|
2412
|
-
function setItemAccess(requestOptions) {
|
|
2413
|
-
const
|
|
2414
|
-
|
|
2460
|
+
async function setItemAccess(requestOptions) {
|
|
2461
|
+
const username = await requestOptions.authentication.getUsername();
|
|
2462
|
+
const url = getSharingUrl(requestOptions, username);
|
|
2463
|
+
if (isItemOwner(requestOptions, username)) {
|
|
2415
2464
|
// if the user owns the item, proceed
|
|
2416
2465
|
return updateItemAccess(url, requestOptions);
|
|
2417
2466
|
}
|
|
@@ -2423,7 +2472,7 @@ function setItemAccess(requestOptions) {
|
|
|
2423
2472
|
}
|
|
2424
2473
|
else {
|
|
2425
2474
|
// if neither, updating the sharing isnt possible
|
|
2426
|
-
throw Error(`This item can not be shared by ${
|
|
2475
|
+
throw Error(`This item can not be shared by ${username}. They are neither the item owner nor an organization admin.`);
|
|
2427
2476
|
}
|
|
2428
2477
|
});
|
|
2429
2478
|
}
|
|
@@ -2504,9 +2553,9 @@ function isItemSharedWithGroup(requestOptions) {
|
|
|
2504
2553
|
* @param requestOptions - Options for the request.
|
|
2505
2554
|
* @returns A Promise that will resolve with the data from the response.
|
|
2506
2555
|
*/
|
|
2507
|
-
function shareItemWithGroup(requestOptions) {
|
|
2556
|
+
async function shareItemWithGroup(requestOptions) {
|
|
2508
2557
|
return isItemSharedWithGroup(requestOptions)
|
|
2509
|
-
.then((isShared) => {
|
|
2558
|
+
.then(async (isShared) => {
|
|
2510
2559
|
if (isShared) {
|
|
2511
2560
|
// already shared, exit early with success response
|
|
2512
2561
|
return {
|
|
@@ -2515,7 +2564,8 @@ function shareItemWithGroup(requestOptions) {
|
|
|
2515
2564
|
notSharedWith: []
|
|
2516
2565
|
};
|
|
2517
2566
|
}
|
|
2518
|
-
const {
|
|
2567
|
+
const { owner, confirmItemControl } = requestOptions;
|
|
2568
|
+
const username = await requestOptions.authentication.getUsername();
|
|
2519
2569
|
const itemOwner = owner || username;
|
|
2520
2570
|
// non-item owner
|
|
2521
2571
|
if (itemOwner !== username) {
|
|
@@ -2604,8 +2654,8 @@ function getMembershipAdjustments(currentUser, isSharedEditingGroup, membership,
|
|
|
2604
2654
|
}
|
|
2605
2655
|
return membershipGuarantees;
|
|
2606
2656
|
}
|
|
2607
|
-
function shareToGroup(requestOptions, isAdmin = false, isCrossOrgSharing = false) {
|
|
2608
|
-
const username = requestOptions.authentication.
|
|
2657
|
+
async function shareToGroup(requestOptions, isAdmin = false, isCrossOrgSharing = false) {
|
|
2658
|
+
const username = await requestOptions.authentication.getUsername();
|
|
2609
2659
|
const itemOwner = requestOptions.owner || username;
|
|
2610
2660
|
// decide what url to use
|
|
2611
2661
|
// default to the non-owner url...
|
|
@@ -2742,7 +2792,7 @@ function ensureMembership(currentUser, ownerUser, shouldPromote, errorMessage, r
|
|
|
2742
2792
|
* @returns A Promise that will resolve with the data from the response.
|
|
2743
2793
|
*/
|
|
2744
2794
|
function unshareItemWithGroup(requestOptions) {
|
|
2745
|
-
return isItemSharedWithGroup(requestOptions).then((isShared) => {
|
|
2795
|
+
return isItemSharedWithGroup(requestOptions).then(async (isShared) => {
|
|
2746
2796
|
// not shared
|
|
2747
2797
|
if (!isShared) {
|
|
2748
2798
|
// exit early with success response
|
|
@@ -2752,7 +2802,8 @@ function unshareItemWithGroup(requestOptions) {
|
|
|
2752
2802
|
notUnsharedFrom: []
|
|
2753
2803
|
});
|
|
2754
2804
|
}
|
|
2755
|
-
const {
|
|
2805
|
+
const { owner } = requestOptions;
|
|
2806
|
+
const username = await requestOptions.authentication.getUsername();
|
|
2756
2807
|
// next check if the user is a member of the group
|
|
2757
2808
|
return Promise.all([
|
|
2758
2809
|
getUserMembership(requestOptions),
|
|
@@ -2785,8 +2836,8 @@ function unshareItemWithGroup(requestOptions) {
|
|
|
2785
2836
|
});
|
|
2786
2837
|
});
|
|
2787
2838
|
}
|
|
2788
|
-
function unshareFromGroup(requestOptions) {
|
|
2789
|
-
const username = requestOptions.authentication.
|
|
2839
|
+
async function unshareFromGroup(requestOptions) {
|
|
2840
|
+
const username = await requestOptions.authentication.getUsername();
|
|
2790
2841
|
const itemOwner = requestOptions.owner || username;
|
|
2791
2842
|
// decide what url to use
|
|
2792
2843
|
// default to the non-owner url...
|
|
@@ -2914,5 +2965,5 @@ function getPortalSettings(id, requestOptions) {
|
|
|
2914
2965
|
return request(url, options);
|
|
2915
2966
|
}
|
|
2916
2967
|
|
|
2917
|
-
export { SearchQueryBuilder, acceptInvitation, addGroupUsers, addItemData, addItemPart, addItemRelationship, addItemResource, bboxToString, cancelItemUpload, commitItemUpload, createFolder, createGroup, createGroupNotification, createItem, createItemInFolder, createOrgNotification, declineInvitation, determineOwner, ensureMembership, exportItem, getGroup, getGroupCategorySchema, getGroupContent, getGroupUsers, getItem, getItemBaseUrl, getItemData, getItemGroups, getItemInfo, getItemMetadata, getItemParts, getItemResource, getItemResources, getItemStatus, getPortal, getPortalSettings, getPortalUrl, getRelatedItems, getSelf, getSharingUrl, getUniqueServiceName, getUser, getUserContent, getUserInvitation, getUserInvitations, getUserMembership, getUserNotifications, getUserProperties, getUserTags, getUserUrl, inviteGroupUsers, isBBox, isItemOwner, isItemSharedWithGroup, isOrgAdmin, isServiceNameAvailable, joinGroup, leaveGroup, moveItem, protectGroup, protectItem, reassignItem, removeFolder, removeGroup, removeGroupUsers, removeItem, removeItemRelationship, removeItemResource, removeNotification, scrubControlChars, searchCommunityUsers, searchGroupContent, searchGroupUsers, searchGroups, searchItems, searchUsers, setItemAccess, setUserProperties, shareItemWithGroup, unprotectGroup, unprotectItem, unshareItemWithGroup, updateGroup, updateItem, updateItemInfo, updateItemResource, updateUser, updateUserMemberships };
|
|
2968
|
+
export { SearchQueryBuilder, acceptInvitation, addGroupUsers, addItemData, addItemPart, addItemRelationship, addItemResource, bboxToString, cancelItemUpload, commitItemUpload, createFolder, createGroup, createGroupNotification, createItem, createItemInFolder, createOrgNotification, declineInvitation, determineOwner, determineUsername, ensureMembership, exportItem, getGroup, getGroupCategorySchema, getGroupContent, getGroupUsers, getItem, getItemBaseUrl, getItemData, getItemGroups, getItemInfo, getItemMetadata, getItemParts, getItemResource, getItemResources, getItemStatus, getPortal, getPortalSettings, getPortalUrl, getRelatedItems, getSelf, getSharingUrl, getUniqueServiceName, getUser, getUserContent, getUserInvitation, getUserInvitations, getUserMembership, getUserNotifications, getUserProperties, getUserTags, getUserUrl, inviteGroupUsers, isBBox, isItemOwner, isItemSharedWithGroup, isOrgAdmin, isServiceNameAvailable, joinGroup, leaveGroup, moveItem, protectGroup, protectItem, reassignItem, removeFolder, removeGroup, removeGroupUsers, removeItem, removeItemRelationship, removeItemResource, removeItemThumbnail, removeNotification, scrubControlChars, searchCommunityUsers, searchGroupContent, searchGroupUsers, searchGroups, searchItems, searchUsers, setItemAccess, setUserProperties, shareItemWithGroup, unprotectGroup, unprotectItem, unshareItemWithGroup, updateGroup, updateItem, updateItemInfo, updateItemResource, updateUser, updateUserMemberships };
|
|
2918
2969
|
//# sourceMappingURL=portal.esm.js.map
|