@esri/hub-common 16.0.2 → 16.2.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/esm/core/schemas/internal/discussions/EntityUiSchemaDiscussionsSettings.js +141 -0
- package/dist/esm/core/schemas/internal/discussions/EntityUiSchemaDiscussionsSettings.js.map +1 -0
- package/dist/esm/core/schemas/internal/getEditorSchemas.js +1 -0
- package/dist/esm/core/schemas/internal/getEditorSchemas.js.map +1 -1
- package/dist/esm/discussions/_internal/DiscussionBusinessRules.js +7 -2
- package/dist/esm/discussions/_internal/DiscussionBusinessRules.js.map +1 -1
- package/dist/esm/discussions/_internal/DiscussionSchema.js +19 -0
- package/dist/esm/discussions/_internal/DiscussionSchema.js.map +1 -1
- package/dist/esm/discussions/_internal/DiscussionUiSchemaSettings.js +0 -23
- package/dist/esm/discussions/_internal/DiscussionUiSchemaSettings.js.map +1 -1
- package/dist/esm/discussions/edit.js +16 -2
- package/dist/esm/discussions/edit.js.map +1 -1
- package/dist/esm/events/api/orval/api/orval-events.js +38 -6
- package/dist/esm/events/api/orval/api/orval-events.js.map +1 -1
- package/dist/esm/search/_internal/hubDiscussionsHelpers/channelResultsToSearchResults.js +33 -0
- package/dist/esm/search/_internal/hubDiscussionsHelpers/channelResultsToSearchResults.js.map +1 -0
- package/dist/esm/search/_internal/hubDiscussionsHelpers/processChannelFilters.js +45 -0
- package/dist/esm/search/_internal/hubDiscussionsHelpers/processChannelFilters.js.map +1 -0
- package/dist/esm/search/_internal/hubDiscussionsHelpers/processChannelOptions.js +35 -0
- package/dist/esm/search/_internal/hubDiscussionsHelpers/processChannelOptions.js.map +1 -0
- package/dist/esm/search/_internal/hubSearchChannels.js +15 -120
- package/dist/esm/search/_internal/hubSearchChannels.js.map +1 -1
- package/dist/esm/users/_internal/UserBusinessRules.js +0 -7
- package/dist/esm/users/_internal/UserBusinessRules.js.map +1 -1
- package/dist/esm/utils/_array.js +18 -0
- package/dist/esm/utils/_array.js.map +1 -1
- package/dist/esm/utils/batch.js +2 -10
- package/dist/esm/utils/batch.js.map +1 -1
- package/dist/node/core/schemas/internal/discussions/EntityUiSchemaDiscussionsSettings.js +144 -0
- package/dist/node/core/schemas/internal/discussions/EntityUiSchemaDiscussionsSettings.js.map +1 -0
- package/dist/node/core/schemas/internal/getEditorSchemas.js +1 -0
- package/dist/node/core/schemas/internal/getEditorSchemas.js.map +1 -1
- package/dist/node/discussions/_internal/DiscussionBusinessRules.js +7 -2
- package/dist/node/discussions/_internal/DiscussionBusinessRules.js.map +1 -1
- package/dist/node/discussions/_internal/DiscussionSchema.js +19 -0
- package/dist/node/discussions/_internal/DiscussionSchema.js.map +1 -1
- package/dist/node/discussions/_internal/DiscussionUiSchemaSettings.js +0 -23
- package/dist/node/discussions/_internal/DiscussionUiSchemaSettings.js.map +1 -1
- package/dist/node/discussions/edit.js +16 -2
- package/dist/node/discussions/edit.js.map +1 -1
- package/dist/node/events/api/orval/api/orval-events.js +39 -7
- package/dist/node/events/api/orval/api/orval-events.js.map +1 -1
- package/dist/node/search/_internal/hubDiscussionsHelpers/channelResultsToSearchResults.js +37 -0
- package/dist/node/search/_internal/hubDiscussionsHelpers/channelResultsToSearchResults.js.map +1 -0
- package/dist/node/search/_internal/hubDiscussionsHelpers/processChannelFilters.js +49 -0
- package/dist/node/search/_internal/hubDiscussionsHelpers/processChannelFilters.js.map +1 -0
- package/dist/node/search/_internal/hubDiscussionsHelpers/processChannelOptions.js +39 -0
- package/dist/node/search/_internal/hubDiscussionsHelpers/processChannelOptions.js.map +1 -0
- package/dist/node/search/_internal/hubSearchChannels.js +16 -121
- package/dist/node/search/_internal/hubSearchChannels.js.map +1 -1
- package/dist/node/users/_internal/UserBusinessRules.js +0 -7
- package/dist/node/users/_internal/UserBusinessRules.js.map +1 -1
- package/dist/node/utils/_array.js +20 -1
- package/dist/node/utils/_array.js.map +1 -1
- package/dist/node/utils/batch.js +2 -10
- package/dist/node/utils/batch.js.map +1 -1
- package/dist/types/core/schemas/internal/discussions/EntityUiSchemaDiscussionsSettings.d.ts +11 -0
- package/dist/types/core/schemas/types.d.ts +2 -2
- package/dist/types/discussions/_internal/DiscussionBusinessRules.d.ts +1 -1
- package/dist/types/discussions/_internal/DiscussionSchema.d.ts +1 -1
- package/dist/types/events/api/orval/api/orval-events.d.ts +39 -6
- package/dist/types/search/_internal/hubDiscussionsHelpers/channelResultsToSearchResults.d.ts +11 -0
- package/dist/types/search/_internal/hubDiscussionsHelpers/processChannelFilters.d.ts +10 -0
- package/dist/types/search/_internal/hubDiscussionsHelpers/processChannelOptions.d.ts +10 -0
- package/dist/types/search/_internal/hubSearchChannels.d.ts +5 -26
- package/dist/types/users/_internal/UserBusinessRules.d.ts +1 -1
- package/dist/types/utils/_array.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.js","sourceRoot":"","sources":["../../../src/utils/batch.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"batch.js","sourceRoot":"","sources":["../../../src/utils/batch.ts"],"names":[],"mappings":";;;AACA,qCAA8C;AAE9C;;;;;;;GAOG;AACH,SAAgB,KAAK,CACnB,MAAc,EACd,EAAmB,EACnB,YAAoB,CAAC;IAErB,MAAM,kBAAkB,GAAG,CACzB,OAAqB,EACrB,aAAqB,EACP,EAAE;QAChB,MAAM,YAAY,GAAG,CAAC,WAAkB,EAAE,EAAE;YAC1C,MAAM,YAAY,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;YACvD,OAAO,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAChD,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAC5B,CAAC;QACJ,CAAC,CAAC;QACF,OAAO,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACpC,CAAC,CAAC;IAEF,sCAAsC;IACtC,MAAM,OAAO,GAAG,2BAAkB,CAAS,MAAM,EAAE,SAAS,CAAC,CAAC;IAE9D,0CAA0C;IAC1C,0CAA0C;IAC1C,OAAO,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;AACjE,CAAC;AAxBD,sBAwBC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IArcGISContext } from "../../../../types/IArcGISContext";
|
|
2
|
+
import { IUiSchema } from "../../types";
|
|
3
|
+
import { EntityEditorOptions } from "../EditorOptions";
|
|
4
|
+
/**
|
|
5
|
+
* Builds the UI Schema for the "settings => discussions" workspace pane
|
|
6
|
+
* @param i18nScope the i18n scope for translations
|
|
7
|
+
* @param options an EntityEditorOptions object
|
|
8
|
+
* @param context an IArcGISContext object
|
|
9
|
+
* @returns a promise that resolves a UI Schema object
|
|
10
|
+
*/
|
|
11
|
+
export declare const buildUiSchema: (i18nScope: string, options: EntityEditorOptions, context: IArcGISContext) => Promise<IUiSchema>;
|
|
@@ -12,7 +12,7 @@ export interface IEditorConfig {
|
|
|
12
12
|
* to the supported/defined uiSchema configurations
|
|
13
13
|
*/
|
|
14
14
|
export declare type EntityEditorType = (typeof validEntityEditorTypes)[number];
|
|
15
|
-
export declare const validEntityEditorTypes: readonly ["hub:project:create", "hub:project:create2", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:create2", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:page:create", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:group:create", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:registrants", "hub:user:settings", "hub:channel:create", "hub:channel:edit"];
|
|
15
|
+
export declare const validEntityEditorTypes: readonly ["hub:project:create", "hub:project:create2", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:create2", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:discussion:settings:discussions", "hub:page:edit", "hub:page:create", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:group:create", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:registrants", "hub:user:settings", "hub:channel:create", "hub:channel:edit"];
|
|
16
16
|
/** Defines the possible editor type values for a stat card. These
|
|
17
17
|
* correspond to the supported/defined uiSchema configurations. This should
|
|
18
18
|
* have its own signature in the getEditorConfig function.
|
|
@@ -42,7 +42,7 @@ export declare const validCardEditorTypes: readonly ["hub:card:stat", "hub:card:
|
|
|
42
42
|
* to defined schema/uiSchema configurations
|
|
43
43
|
*/
|
|
44
44
|
export declare type EditorType = (typeof validEditorTypes)[number];
|
|
45
|
-
export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:create2", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:create2", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:page:create", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:group:create", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:registrants", "hub:user:settings", "hub:channel:create", "hub:channel:edit", "hub:card:stat", "hub:card:follow", "hub:card:eventGallery"];
|
|
45
|
+
export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:create2", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:create2", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:discussion:settings:discussions", "hub:page:edit", "hub:page:create", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:group:create", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:registrants", "hub:user:settings", "hub:channel:create", "hub:channel:edit", "hub:card:stat", "hub:card:follow", "hub:card:eventGallery"];
|
|
46
46
|
/**
|
|
47
47
|
* An editor's module when dynamically imported depending on the EditorType. This
|
|
48
48
|
* will always have a buildUiSchema function, and sometimes it will have a
|
|
@@ -4,7 +4,7 @@ import { IPermissionPolicy } from "../../permissions";
|
|
|
4
4
|
* These define the requirements any user must meet to perform related actions
|
|
5
5
|
* @private
|
|
6
6
|
*/
|
|
7
|
-
export declare const DiscussionPermissions: readonly ["hub:discussion", "hub:discussion:create", "hub:discussion:delete", "hub:discussion:edit", "hub:discussion:view", "hub:discussion:owner", "hub:discussion:canChangeAccess", "hub:discussion:workspace:overview", "hub:discussion:workspace:dashboard", "hub:discussion:workspace:details", "hub:discussion:workspace:settings", "hub:discussion:workspace:collaborators", "hub:discussion:workspace:discussion", "hub:discussion:workspace:metrics", "hub:discussion:manage", "temp:hub:discussion:create"];
|
|
7
|
+
export declare const DiscussionPermissions: readonly ["hub:discussion", "hub:discussion:create", "hub:discussion:delete", "hub:discussion:edit", "hub:discussion:view", "hub:discussion:owner", "hub:discussion:canChangeAccess", "hub:discussion:workspace:overview", "hub:discussion:workspace:dashboard", "hub:discussion:workspace:details", "hub:discussion:workspace:settings", "hub:discussion:workspace:collaborators", "hub:discussion:workspace:discussion", "hub:discussion:workspace:metrics", "hub:discussion:workspace:settings:discussions", "hub:discussion:manage", "temp:hub:discussion:create"];
|
|
8
8
|
/**
|
|
9
9
|
* Discussion permission policies
|
|
10
10
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IConfigurationSchema } from "../../core";
|
|
2
2
|
export declare type DiscussionEditorType = (typeof DiscussionEditorTypes)[number];
|
|
3
|
-
export declare const DiscussionEditorTypes: readonly ["hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings"];
|
|
3
|
+
export declare const DiscussionEditorTypes: readonly ["hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:discussion:settings:discussions"];
|
|
4
4
|
/**
|
|
5
5
|
* defines the JSON schema for a Discussion's editable fields
|
|
6
6
|
*/
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v6.24.0 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Hub Events Service
|
|
5
|
-
* OpenAPI spec version: 0.0.1
|
|
6
|
-
*/
|
|
7
1
|
/**
|
|
8
2
|
* Generated by orval v6.24.0 🍺
|
|
9
3
|
* Do not edit manually.
|
|
@@ -287,6 +281,10 @@ export declare enum GetEventsInclude {
|
|
|
287
281
|
onlineMeeting = "onlineMeeting",
|
|
288
282
|
registrations = "registrations"
|
|
289
283
|
}
|
|
284
|
+
export declare enum EventsSearchFormat {
|
|
285
|
+
csv = "csv",
|
|
286
|
+
json = "json"
|
|
287
|
+
}
|
|
290
288
|
export interface IPagedEventResponse {
|
|
291
289
|
items: IEvent[];
|
|
292
290
|
nextStart: number;
|
|
@@ -325,6 +323,8 @@ export interface ISearchEvents {
|
|
|
325
323
|
entityTypes?: EventAssociationEntityType[];
|
|
326
324
|
/** Array of event ids */
|
|
327
325
|
eventIds?: string[];
|
|
326
|
+
/** response data format. Example: csv,json */
|
|
327
|
+
f?: EventsSearchFormat;
|
|
328
328
|
/** esri geometry object */
|
|
329
329
|
geometry?: ISearchEventsGeometry;
|
|
330
330
|
/** Array of relation fields to include in response. Example: associations,creator,location,onlineMeeting,registrations */
|
|
@@ -651,16 +651,49 @@ export declare enum EventAccess {
|
|
|
651
651
|
PUBLIC = "PUBLIC"
|
|
652
652
|
}
|
|
653
653
|
declare type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
|
|
654
|
+
/**
|
|
655
|
+
* Create a new event.
|
|
656
|
+
*/
|
|
654
657
|
export declare const createEvent: (iCreateEvent: ICreateEvent, options?: SecondParameter<typeof customClient>) => Promise<IEvent>;
|
|
658
|
+
/**
|
|
659
|
+
* Get a list of events matching request criteria.
|
|
660
|
+
*/
|
|
655
661
|
export declare const getEvents: (params?: GetEventsParams, options?: SecondParameter<typeof customClient>) => Promise<IPagedEventResponse>;
|
|
662
|
+
/**
|
|
663
|
+
* Search for events matching request criteria.
|
|
664
|
+
*/
|
|
656
665
|
export declare const searchEvents: (iSearchEvents: ISearchEvents, options?: SecondParameter<typeof customClient>) => Promise<IPagedEventResponse>;
|
|
666
|
+
/**
|
|
667
|
+
* Get a single event.
|
|
668
|
+
*/
|
|
657
669
|
export declare const getEvent: (id: string, options?: SecondParameter<typeof customClient>) => Promise<IEvent>;
|
|
670
|
+
/**
|
|
671
|
+
* Update an existing event.
|
|
672
|
+
*/
|
|
658
673
|
export declare const updateEvent: (id: string, iUpdateEvent: IUpdateEvent, options?: SecondParameter<typeof customClient>) => Promise<IEvent>;
|
|
674
|
+
/**
|
|
675
|
+
* Delete an existing event.
|
|
676
|
+
*/
|
|
659
677
|
export declare const deleteEvent: (id: string, options?: SecondParameter<typeof customClient>) => Promise<IEvent>;
|
|
678
|
+
/**
|
|
679
|
+
* Create a new registration.
|
|
680
|
+
*/
|
|
660
681
|
export declare const createRegistration: (iCreateRegistration: ICreateRegistration, options?: SecondParameter<typeof customClient>) => Promise<IRegistration>;
|
|
682
|
+
/**
|
|
683
|
+
* Get a list of registrations matching request criteria.
|
|
684
|
+
*/
|
|
661
685
|
export declare const getRegistrations: (params?: GetRegistrationsParams, options?: SecondParameter<typeof customClient>) => Promise<IPagedRegistrationResponse>;
|
|
686
|
+
/**
|
|
687
|
+
* Get a registration by id.
|
|
688
|
+
*/
|
|
662
689
|
export declare const getRegistration: (id: string, options?: SecondParameter<typeof customClient>) => Promise<IRegistration>;
|
|
690
|
+
/**
|
|
691
|
+
* Update a registration by id.
|
|
692
|
+
*/
|
|
663
693
|
export declare const updateRegistration: (id: string, iUpdateRegistration: IUpdateRegistration, options?: SecondParameter<typeof customClient>) => Promise<IRegistration>;
|
|
694
|
+
/**
|
|
695
|
+
* Delete a registration by id.
|
|
696
|
+
*/
|
|
664
697
|
export declare const deleteRegistration: (id: string, options?: SecondParameter<typeof customClient>) => Promise<IRegistration>;
|
|
665
698
|
export declare type CreateEventResult = NonNullable<Awaited<ReturnType<typeof createEvent>>>;
|
|
666
699
|
export declare type GetEventsResult = NonNullable<Awaited<ReturnType<typeof getEvents>>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IHubSearchOptions, IHubSearchResult } from "../../types";
|
|
2
|
+
import { IChannel } from "../../../discussions/api/types";
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* Convert an array of Discussions API channel search results into an
|
|
6
|
+
* array of IHubSearchResult objects
|
|
7
|
+
* @param channels An array of IChannel objects
|
|
8
|
+
* @param options an IHubSearchOptions object
|
|
9
|
+
* @returns a promise that resolves an array of IHubSearchResult objects
|
|
10
|
+
*/
|
|
11
|
+
export declare function channelResultsToSearchResults(channels: IChannel[], options: IHubSearchOptions): Promise<IHubSearchResult[]>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ISearchChannels } from "../../../discussions/api/types";
|
|
2
|
+
import { IFilter } from "../../types/IHubCatalog";
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* Converts an IFilter array into a partial ISearchChannels
|
|
6
|
+
* object of filter parameters
|
|
7
|
+
* @param filters An array of IFilter objects
|
|
8
|
+
* @returns a partial ISearchChannels object
|
|
9
|
+
*/
|
|
10
|
+
export declare function processChannelFilters(filters: IFilter[]): Partial<ISearchChannels>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ISearchChannels } from "../../../discussions/api/types";
|
|
2
|
+
import { IHubSearchOptions } from "../../types/IHubSearchOptions";
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* Converts an IHubSearchOptions object into a partial ISearchChannels
|
|
6
|
+
* object of paging & sort parameters
|
|
7
|
+
* @param options An IHubSearchOptions object
|
|
8
|
+
* @returns a partial ISearchChannels object
|
|
9
|
+
*/
|
|
10
|
+
export declare function processChannelOptions(options: IHubSearchOptions): Partial<ISearchChannels>;
|
|
@@ -1,30 +1,9 @@
|
|
|
1
1
|
import { IHubSearchOptions, IHubSearchResponse, IHubSearchResult, IQuery } from "../types";
|
|
2
|
-
import { IChannel, IPagedResponse, ISearchChannelsParams } from "../../discussions";
|
|
3
2
|
/**
|
|
4
3
|
* @private
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
9
|
-
* @param {IQuery} query
|
|
10
|
-
* @returns ISearchChannelParams
|
|
4
|
+
* Executes a Discussions API channel search and resolves an IHubSearchResponse<IHubSearchResult> for the channel results
|
|
5
|
+
* @param query an IQuery object
|
|
6
|
+
* @param options an IHubSearchOptions object
|
|
7
|
+
* @returns a promise that resolves an HubSearchResponse<IHubSearchResult> object
|
|
11
8
|
*/
|
|
12
|
-
export declare const
|
|
13
|
-
/**
|
|
14
|
-
* @private
|
|
15
|
-
* Convert the Discussions API searchChannels response into an
|
|
16
|
-
* IHubSearchResponse necessary for supporting hubSearch results
|
|
17
|
-
* @param {IPagedResponse{IChannel}} channelsResponse
|
|
18
|
-
* @param {IQuery} query
|
|
19
|
-
* @param {IHubSearchOptions} options
|
|
20
|
-
* @returns IHubSearchResponse<IHubSearchResult>
|
|
21
|
-
*/
|
|
22
|
-
export declare const toHubSearchResults: (channelsResponse: IPagedResponse<IChannel>, query: IQuery, options: IHubSearchOptions) => Promise<IHubSearchResponse<IHubSearchResult>>;
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
* Execute channel search against the Discussions API
|
|
26
|
-
* @param query
|
|
27
|
-
* @param options
|
|
28
|
-
* @returns
|
|
29
|
-
*/
|
|
30
|
-
export declare const hubSearchChannels: (query: IQuery, options: IHubSearchOptions) => Promise<IHubSearchResponse<IHubSearchResult>>;
|
|
9
|
+
export declare const hubSearchChannels: (query: IQuery, searchOptions: IHubSearchOptions) => Promise<IHubSearchResponse<IHubSearchResult>>;
|
|
@@ -4,7 +4,7 @@ import { IPermissionPolicy } from "../../permissions";
|
|
|
4
4
|
* These define the requirements any user must meet to perform related actions
|
|
5
5
|
* @private
|
|
6
6
|
*/
|
|
7
|
-
export declare const UserPermissions: readonly ["hub:user", "hub:user:view", "hub:user:edit", "hub:user:owner", "hub:user:workspace", "hub:user:workspace:overview", "hub:user:workspace:settings", "hub:user:workspace:content", "hub:user:workspace:groups", "hub:user:workspace:events", "hub:user:workspace:
|
|
7
|
+
export declare const UserPermissions: readonly ["hub:user", "hub:user:view", "hub:user:edit", "hub:user:owner", "hub:user:workspace", "hub:user:workspace:overview", "hub:user:workspace:settings", "hub:user:workspace:content", "hub:user:workspace:groups", "hub:user:workspace:events", "hub:user:workspace:shared-with-me", "hub:user:manage"];
|
|
8
8
|
/**
|
|
9
9
|
* User permission policies
|
|
10
10
|
* @private
|
|
@@ -7,3 +7,11 @@
|
|
|
7
7
|
* @private
|
|
8
8
|
*/
|
|
9
9
|
export declare const maybeConcat: (arrays: any[][]) => any[];
|
|
10
|
+
/**
|
|
11
|
+
* Splits a single array into many arrays of a given max length.
|
|
12
|
+
* E.g. splitArrayByLength(['a', 'b', 'c'], 2); // => [['a', 'b'], ['c']]
|
|
13
|
+
* @param originalValues The original array of values
|
|
14
|
+
* @param length The max length of the resulting arrays
|
|
15
|
+
* @returns an array of arrays
|
|
16
|
+
*/
|
|
17
|
+
export declare function splitArrayByLength<T>(originalValues: T[], length: number): T[][];
|