@esri/hub-common 14.5.2 → 14.7.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/content/_internal/computeProps.js +12 -1
- package/dist/esm/content/_internal/computeProps.js.map +1 -1
- package/dist/esm/groups/_internal/AddOrInviteUsersToGroupUtils.js +195 -0
- package/dist/esm/groups/_internal/AddOrInviteUsersToGroupUtils.js.map +1 -0
- package/dist/esm/groups/_internal/autoAddUsersAsAdmins.js +24 -0
- package/dist/esm/groups/_internal/autoAddUsersAsAdmins.js.map +1 -0
- package/dist/esm/groups/_internal/processAutoAddUsers.js +62 -0
- package/dist/esm/groups/_internal/processAutoAddUsers.js.map +1 -0
- package/dist/esm/groups/_internal/processEmailUsers.js +50 -0
- package/dist/esm/groups/_internal/processEmailUsers.js.map +1 -0
- package/dist/esm/groups/_internal/processInviteUsers.js +51 -0
- package/dist/esm/groups/_internal/processInviteUsers.js.map +1 -0
- package/dist/esm/groups/add-users-workflow/add-users-to-group.js +1 -1
- package/dist/esm/groups/add-users-workflow/add-users-to-group.js.map +1 -1
- package/dist/esm/groups/add-users-workflow/index.js +0 -1
- package/dist/esm/groups/add-users-workflow/index.js.map +1 -1
- package/dist/esm/groups/add-users-workflow/output-processors/_process-auto-add.js +2 -2
- package/dist/esm/groups/add-users-workflow/output-processors/_process-auto-add.js.map +1 -1
- package/dist/esm/groups/add-users-workflow/output-processors/_process-invite.js +2 -2
- package/dist/esm/groups/add-users-workflow/output-processors/_process-invite.js.map +1 -1
- package/dist/esm/groups/add-users-workflow/output-processors/_process-primary-email.js +2 -2
- package/dist/esm/groups/add-users-workflow/output-processors/_process-primary-email.js.map +1 -1
- package/dist/esm/groups/add-users-workflow/output-processors/_process-secondary-email.js +3 -3
- package/dist/esm/groups/add-users-workflow/output-processors/_process-secondary-email.js.map +1 -1
- package/dist/esm/groups/addOrInviteUsersToGroup.js +67 -0
- package/dist/esm/groups/addOrInviteUsersToGroup.js.map +1 -0
- package/dist/esm/groups/addOrInviteUsersToGroups.js +51 -0
- package/dist/esm/groups/addOrInviteUsersToGroups.js.map +1 -0
- package/dist/esm/groups/{add-users-workflow/workflow-sections/auto-add-users.js → autoAddUsers.js} +4 -4
- package/dist/esm/groups/autoAddUsers.js.map +1 -0
- package/dist/esm/groups/{add-users-workflow/workflow-sections/email-org-users.js → emailOrgUsers.js} +3 -3
- package/dist/esm/groups/emailOrgUsers.js.map +1 -0
- package/dist/esm/groups/index.js +8 -0
- package/dist/esm/groups/index.js.map +1 -1
- package/dist/esm/groups/{add-users-workflow/workflow-sections/invite-users.js → inviteUsers.js} +1 -1
- package/dist/esm/groups/inviteUsers.js.map +1 -0
- package/dist/esm/groups/types/index.js +1 -0
- package/dist/esm/groups/types/index.js.map +1 -1
- package/dist/esm/groups/types/types.js +1 -0
- package/dist/esm/groups/types/types.js.map +1 -0
- package/dist/esm/pages/_internal/computeProps.js +12 -1
- package/dist/esm/pages/_internal/computeProps.js.map +1 -1
- package/dist/esm/sites/_internal/computeProps.js +12 -1
- package/dist/esm/sites/_internal/computeProps.js.map +1 -1
- package/dist/node/content/_internal/computeProps.js +12 -1
- package/dist/node/content/_internal/computeProps.js.map +1 -1
- package/dist/node/groups/_internal/AddOrInviteUsersToGroupUtils.js +205 -0
- package/dist/node/groups/_internal/AddOrInviteUsersToGroupUtils.js.map +1 -0
- package/dist/node/groups/_internal/autoAddUsersAsAdmins.js +28 -0
- package/dist/node/groups/_internal/autoAddUsersAsAdmins.js.map +1 -0
- package/dist/node/groups/_internal/processAutoAddUsers.js +66 -0
- package/dist/node/groups/_internal/processAutoAddUsers.js.map +1 -0
- package/dist/node/groups/_internal/processEmailUsers.js +54 -0
- package/dist/node/groups/_internal/processEmailUsers.js.map +1 -0
- package/dist/node/groups/_internal/processInviteUsers.js +55 -0
- package/dist/node/groups/_internal/processInviteUsers.js.map +1 -0
- package/dist/node/groups/add-users-workflow/add-users-to-group.js +1 -1
- package/dist/node/groups/add-users-workflow/add-users-to-group.js.map +1 -1
- package/dist/node/groups/add-users-workflow/index.js +0 -1
- package/dist/node/groups/add-users-workflow/index.js.map +1 -1
- package/dist/node/groups/add-users-workflow/output-processors/_process-auto-add.js +2 -2
- package/dist/node/groups/add-users-workflow/output-processors/_process-auto-add.js.map +1 -1
- package/dist/node/groups/add-users-workflow/output-processors/_process-invite.js +2 -2
- package/dist/node/groups/add-users-workflow/output-processors/_process-invite.js.map +1 -1
- package/dist/node/groups/add-users-workflow/output-processors/_process-primary-email.js +2 -2
- package/dist/node/groups/add-users-workflow/output-processors/_process-primary-email.js.map +1 -1
- package/dist/node/groups/add-users-workflow/output-processors/_process-secondary-email.js +3 -3
- package/dist/node/groups/add-users-workflow/output-processors/_process-secondary-email.js.map +1 -1
- package/dist/node/groups/addOrInviteUsersToGroup.js +71 -0
- package/dist/node/groups/addOrInviteUsersToGroup.js.map +1 -0
- package/dist/node/groups/addOrInviteUsersToGroups.js +55 -0
- package/dist/node/groups/addOrInviteUsersToGroups.js.map +1 -0
- package/dist/node/groups/{add-users-workflow/workflow-sections/auto-add-users.js → autoAddUsers.js} +3 -3
- package/dist/node/groups/autoAddUsers.js.map +1 -0
- package/dist/node/groups/{add-users-workflow/workflow-sections/email-org-users.js → emailOrgUsers.js} +2 -2
- package/dist/node/groups/emailOrgUsers.js.map +1 -0
- package/dist/node/groups/index.js +8 -0
- package/dist/node/groups/index.js.map +1 -1
- package/dist/node/groups/{add-users-workflow/workflow-sections/invite-users.js → inviteUsers.js} +1 -1
- package/dist/node/groups/inviteUsers.js.map +1 -0
- package/dist/node/groups/types/index.js +1 -0
- package/dist/node/groups/types/index.js.map +1 -1
- package/dist/node/groups/types/types.js +3 -0
- package/dist/node/groups/types/types.js.map +1 -0
- package/dist/node/pages/_internal/computeProps.js +12 -1
- package/dist/node/pages/_internal/computeProps.js.map +1 -1
- package/dist/node/sites/_internal/computeProps.js +12 -1
- package/dist/node/sites/_internal/computeProps.js.map +1 -1
- package/dist/types/content/_internal/computeProps.d.ts +2 -1
- package/dist/types/content/_internal/internalContentUtils.d.ts +8 -0
- package/dist/types/core/types/IHubEntityBase.d.ts +49 -2
- package/dist/types/core/types/IHubItemEntity.d.ts +5 -1
- package/dist/types/groups/_internal/AddOrInviteUsersToGroupUtils.d.ts +82 -0
- package/dist/types/groups/_internal/autoAddUsersAsAdmins.d.ts +13 -0
- package/dist/types/groups/_internal/processAutoAddUsers.d.ts +15 -0
- package/dist/types/groups/_internal/processEmailUsers.d.ts +14 -0
- package/dist/types/groups/_internal/processInviteUsers.d.ts +13 -0
- package/dist/types/groups/add-users-workflow/add-users-to-group.d.ts +2 -1
- package/dist/types/groups/add-users-workflow/index.d.ts +0 -1
- package/dist/types/groups/add-users-workflow/interfaces.d.ts +1 -5
- package/dist/types/groups/addOrInviteUsersToGroup.d.ts +18 -0
- package/dist/types/groups/addOrInviteUsersToGroups.d.ts +30 -0
- package/dist/types/groups/{add-users-workflow/workflow-sections/auto-add-users.d.ts → autoAddUsers.d.ts} +1 -1
- package/dist/types/groups/{add-users-workflow/workflow-sections/email-org-users.d.ts → emailOrgUsers.d.ts} +2 -2
- package/dist/types/groups/index.d.ts +5 -0
- package/dist/types/groups/{add-users-workflow/workflow-sections/invite-users.d.ts → inviteUsers.d.ts} +1 -1
- package/dist/types/groups/types/index.d.ts +1 -0
- package/dist/types/groups/types/types.d.ts +72 -0
- package/dist/types/pages/_internal/computeProps.d.ts +1 -1
- package/dist/types/search/types/IHubSearchResult.d.ts +0 -40
- package/dist/types/sites/_internal/computeProps.d.ts +1 -1
- package/package.json +1 -1
- package/dist/esm/groups/add-users-workflow/workflow-sections/auto-add-users.js.map +0 -1
- package/dist/esm/groups/add-users-workflow/workflow-sections/email-org-users.js.map +0 -1
- package/dist/esm/groups/add-users-workflow/workflow-sections/index.js +0 -4
- package/dist/esm/groups/add-users-workflow/workflow-sections/index.js.map +0 -1
- package/dist/esm/groups/add-users-workflow/workflow-sections/invite-users.js.map +0 -1
- package/dist/node/groups/add-users-workflow/workflow-sections/auto-add-users.js.map +0 -1
- package/dist/node/groups/add-users-workflow/workflow-sections/email-org-users.js.map +0 -1
- package/dist/node/groups/add-users-workflow/workflow-sections/index.js +0 -7
- package/dist/node/groups/add-users-workflow/workflow-sections/index.js.map +0 -1
- package/dist/node/groups/add-users-workflow/workflow-sections/invite-users.js.map +0 -1
- package/dist/types/groups/add-users-workflow/workflow-sections/index.d.ts +0 -3
|
@@ -6,6 +6,8 @@ const upgradeCatalogSchema_1 = require("../../search/upgradeCatalogSchema");
|
|
|
6
6
|
const discussions_1 = require("../../discussions");
|
|
7
7
|
const processEntityFeatures_1 = require("../../permissions/_internal/processEntityFeatures");
|
|
8
8
|
const SiteBusinessRules_1 = require("./SiteBusinessRules");
|
|
9
|
+
const get_item_home_url_1 = require("../../urls/get-item-home-url");
|
|
10
|
+
const getRelativeWorkspaceUrl_1 = require("../../core/getRelativeWorkspaceUrl");
|
|
9
11
|
/**
|
|
10
12
|
* Given a model and a site, set various computed properties that can't be directly mapped
|
|
11
13
|
* @private
|
|
@@ -22,7 +24,16 @@ function computeProps(model, site, requestOptions) {
|
|
|
22
24
|
token = session.token;
|
|
23
25
|
}
|
|
24
26
|
// thumbnail url
|
|
25
|
-
|
|
27
|
+
const thumbnailUrl = resources_1.getItemThumbnailUrl(model.item, requestOptions, token);
|
|
28
|
+
// TODO: Remove this once opendata-ui starts using `links.thumbnail` instead
|
|
29
|
+
site.thumbnailUrl = thumbnailUrl;
|
|
30
|
+
site.links = {
|
|
31
|
+
self: get_item_home_url_1.getItemHomeUrl(site.id, requestOptions),
|
|
32
|
+
siteRelative: "/",
|
|
33
|
+
workspaceRelative: getRelativeWorkspaceUrl_1.getRelativeWorkspaceUrl("site", site.id),
|
|
34
|
+
layoutRelative: "/edit",
|
|
35
|
+
thumbnail: thumbnailUrl,
|
|
36
|
+
};
|
|
26
37
|
// Handle Dates
|
|
27
38
|
site.createdDate = new Date(model.item.created);
|
|
28
39
|
site.createdDateSource = "item.created";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeProps.js","sourceRoot":"","sources":["../../../../src/sites/_internal/computeProps.ts"],"names":[],"mappings":";;;AAEA,+CAAsD;
|
|
1
|
+
{"version":3,"file":"computeProps.js","sourceRoot":"","sources":["../../../../src/sites/_internal/computeProps.ts"],"names":[],"mappings":";;;AAEA,+CAAsD;AAEtD,4EAAyE;AACzE,mDAAkD;AAClD,6FAA0F;AAC1F,2DAA0D;AAC1D,oEAA8D;AAE9D,gFAA6E;AAE7E;;;;;;;GAOG;AACH,SAAgB,YAAY,CAC1B,KAAa,EACb,IAAuB,EACvB,cAA+B;;IAE/B,IAAI,KAAa,CAAC;IAClB,IAAI,cAAc,CAAC,cAAc,EAAE;QACjC,MAAM,OAAO,GAAgB,cAAc,CAAC,cAA6B,CAAC;QAC1E,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;KACvB;IACD,gBAAgB;IAChB,MAAM,YAAY,GAAG,+BAAmB,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;IAC5E,4EAA4E;IAC5E,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACjC,IAAI,CAAC,KAAK,GAAG;QACX,IAAI,EAAE,kCAAc,CAAC,IAAI,CAAC,EAAE,EAAE,cAAc,CAAC;QAC7C,YAAY,EAAE,GAAG;QACjB,iBAAiB,EAAE,iDAAuB,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC;QAC3D,cAAc,EAAE,OAAO;QACvB,SAAS,EAAE,YAAY;KACxB,CAAC;IAEF,eAAe;IACf,IAAI,CAAC,WAAW,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChD,IAAI,CAAC,iBAAiB,GAAG,cAAc,CAAC;IACxC,IAAI,CAAC,WAAW,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,IAAI,CAAC,iBAAiB,GAAG,eAAe,CAAC;IACzC,IAAI,CAAC,aAAa,GAAG,2BAAa,CAAC,IAAI,CAAC,CAAC;IACzC;;OAEG;IACH,IAAI,CAAC,QAAQ,GAAG,6CAAqB,CACnC,OAAA,KAAK,CAAC,IAAI,CAAC,QAAQ,0CAAE,QAAQ,KAAI,EAAE,EACnC,uCAAmB,CACpB,CAAC;IAEF,uDAAuD;IACvD,IAAI,CAAC,OAAO,GAAG,2CAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAElD,wDAAwD;IACxD,OAAO,IAAgB,CAAC;AAC1B,CAAC;AAzCD,oCAyCC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
-
import { IHubEditableContent, IHubLocation } from "../../core";
|
|
3
2
|
import { IModel } from "../../types";
|
|
4
3
|
import { IExtent } from "@esri/arcgis-rest-types";
|
|
4
|
+
import { IHubLocation } from "../../core/types/IHubLocation";
|
|
5
|
+
import { IHubEditableContent } from "../../core/types/IHubEditableContent";
|
|
5
6
|
export declare const getItemExtent: (itemExtent: number[][]) => IExtent;
|
|
6
7
|
export declare function deriveLocationFromItemExtent(itemExtent?: number[][]): IHubLocation;
|
|
7
8
|
export declare function computeProps(model: IModel, content: Partial<IHubEditableContent>, requestOptions: IRequestOptions): IHubEditableContent;
|
|
@@ -102,6 +102,14 @@ export declare const setContentBoundary: (content: IHubContent, boundary: Geogra
|
|
|
102
102
|
createdDateSource: string;
|
|
103
103
|
updatedDate: Date;
|
|
104
104
|
updatedDateSource: string;
|
|
105
|
+
links?: {
|
|
106
|
+
[key: string]: string | import("../../core").ILink;
|
|
107
|
+
thumbnail?: string;
|
|
108
|
+
self: string;
|
|
109
|
+
siteRelative?: string;
|
|
110
|
+
workspaceRelative?: string;
|
|
111
|
+
layoutRelative?: string;
|
|
112
|
+
};
|
|
105
113
|
features?: import("../..").IFeatureFlags;
|
|
106
114
|
isDiscussable?: boolean;
|
|
107
115
|
statistics?: any;
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple interface for Links
|
|
3
|
+
*/
|
|
4
|
+
export interface ILink {
|
|
5
|
+
/**
|
|
6
|
+
* Link url
|
|
7
|
+
*/
|
|
8
|
+
href: string;
|
|
9
|
+
/**
|
|
10
|
+
* Additional optional properties
|
|
11
|
+
*/
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
}
|
|
1
14
|
/**
|
|
2
15
|
* Base properties for Hub Entities
|
|
3
|
-
* This
|
|
4
|
-
* models that are not backed by items.
|
|
16
|
+
* This includes a subset of `IItem`, that can apply to
|
|
17
|
+
* models that are not backed by items. It also includes
|
|
18
|
+
* properties that can be derived for all entity types,
|
|
19
|
+
* such as `links`
|
|
5
20
|
*/
|
|
6
21
|
export interface IHubEntityBase {
|
|
7
22
|
/**
|
|
@@ -48,4 +63,36 @@ export interface IHubEntityBase {
|
|
|
48
63
|
* result to be attributed to something other than "owner"
|
|
49
64
|
*/
|
|
50
65
|
source?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Links to related things
|
|
68
|
+
*/
|
|
69
|
+
links?: {
|
|
70
|
+
/**
|
|
71
|
+
* Url to Thumbnail. May not include a token
|
|
72
|
+
* TODO: Why should we not include the token?
|
|
73
|
+
*/
|
|
74
|
+
thumbnail?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Url to the entities canonical "self"
|
|
77
|
+
* For Items/Groups/Users, this will be the Home App url
|
|
78
|
+
* For other entities, it will be the canonical url
|
|
79
|
+
*/
|
|
80
|
+
self: string;
|
|
81
|
+
/**
|
|
82
|
+
* Relative url of the entity, within a site
|
|
83
|
+
*/
|
|
84
|
+
siteRelative?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Relative workspace url of the entity, within a site
|
|
87
|
+
*/
|
|
88
|
+
workspaceRelative?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Relative url to the entity's layout editing experience
|
|
91
|
+
*/
|
|
92
|
+
layoutRelative?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Additional urls
|
|
95
|
+
*/
|
|
96
|
+
[key: string]: string | ILink;
|
|
97
|
+
};
|
|
51
98
|
}
|
|
@@ -44,6 +44,9 @@ export interface IHubItemEntity extends IHubEntityBase, IWithPermissions, IWithD
|
|
|
44
44
|
*/
|
|
45
45
|
owner: string;
|
|
46
46
|
/**
|
|
47
|
+
* TODO: change this property to store item.url. Store the
|
|
48
|
+
* canonical url in IHubEntityBase.links.self instead.
|
|
49
|
+
*
|
|
47
50
|
* Canonical Url for the Entity
|
|
48
51
|
*/
|
|
49
52
|
url?: string;
|
|
@@ -57,7 +60,8 @@ export interface IHubItemEntity extends IHubEntityBase, IWithPermissions, IWithD
|
|
|
57
60
|
*/
|
|
58
61
|
tags: string[];
|
|
59
62
|
/**
|
|
60
|
-
*
|
|
63
|
+
* TODO: Deprecate this in favor of IHubEntityBase.links.thumbnail
|
|
64
|
+
* Thumbnail Url (read-only)
|
|
61
65
|
*/
|
|
62
66
|
thumbnailUrl?: string;
|
|
63
67
|
/**
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { IAddOrInviteContext, IAddOrInviteResponse, IUserOrgRelationship, IUserWithOrgType } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* Handles add/invite logic for collaboration coordinators inside partnered orgs.
|
|
5
|
+
* This is intentionally split out from the invitation of partnered org normal members,
|
|
6
|
+
* because the two types of partnered org usres (regular and collaboration coordinator)
|
|
7
|
+
* always come from the same 'bucket', however have distinctly different add paths Invite vs auto add.
|
|
8
|
+
* It returns either an empty instance of the addOrInviteResponse
|
|
9
|
+
* object, or their response from auto adding users.
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @param {IAddOrInviteContext} context context object
|
|
13
|
+
* @return {IAddOrInviteResponse} response object
|
|
14
|
+
*/
|
|
15
|
+
export declare function addOrInviteCollaborationCoordinators(context: IAddOrInviteContext): Promise<IAddOrInviteResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
* Handles add/invite logic for community users
|
|
19
|
+
* It returns either an empty instance of the addOrInviteResponse
|
|
20
|
+
* object, or either ther esponse from processing auto adding
|
|
21
|
+
* users or inviting users. If an email has been passed in it also notifies
|
|
22
|
+
* processAutoAddUsers that emails should be sent.
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
* @param {IAddOrInviteContext} context context object
|
|
26
|
+
* @return {IAddOrInviteResponse} response object
|
|
27
|
+
*/
|
|
28
|
+
export declare function addOrInviteCommunityUsers(context: IAddOrInviteContext): Promise<IAddOrInviteResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* @private
|
|
31
|
+
* Handles add/invite logic for Org users
|
|
32
|
+
* It returns either an empty instance of the addOrInviteResponse
|
|
33
|
+
* object, or either ther esponse from processing auto adding a users or inviting a user
|
|
34
|
+
*
|
|
35
|
+
* @export
|
|
36
|
+
* @param {IAddOrInviteContext} context context object
|
|
37
|
+
* @return {IAddOrInviteResponse} response object
|
|
38
|
+
*/
|
|
39
|
+
export declare function addOrInviteOrgUsers(context: IAddOrInviteContext): Promise<IAddOrInviteResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* @private
|
|
42
|
+
* Handles add/invite logic for partnered org users.
|
|
43
|
+
* It returns either an empty instance of the addOrInviteResponse
|
|
44
|
+
* object, or their response from inviting users.
|
|
45
|
+
*
|
|
46
|
+
* @export
|
|
47
|
+
* @param {IAddOrInviteContext} context context object
|
|
48
|
+
* @return {IAddOrInviteResponse} response object
|
|
49
|
+
*/
|
|
50
|
+
export declare function addOrInvitePartneredUsers(context: IAddOrInviteContext): Promise<IAddOrInviteResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* @private
|
|
53
|
+
* Handles add/invite logic for world users
|
|
54
|
+
* It either returns an empty instance of the add/invite response
|
|
55
|
+
* object, or a populated version from processInviteUsers
|
|
56
|
+
*
|
|
57
|
+
* @export
|
|
58
|
+
* @param {IAddOrInviteContext} context Context object
|
|
59
|
+
* @return {IAddOrInviteResponse} Response object
|
|
60
|
+
*/
|
|
61
|
+
export declare function addOrInviteWorldUsers(context: IAddOrInviteContext): Promise<IAddOrInviteResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* @private
|
|
64
|
+
* Returns an empty instance of the addorinviteresponse object.
|
|
65
|
+
* We are using this because if you leave out any of the props
|
|
66
|
+
* from the final object and you are concatting together arrays you can concat
|
|
67
|
+
* an undeifined inside an array which will throw off array lengths.
|
|
68
|
+
*
|
|
69
|
+
* @export
|
|
70
|
+
* @return {IAddOrInviteResponse}
|
|
71
|
+
*/
|
|
72
|
+
export declare function handleNoUsers(context?: IAddOrInviteContext, userType?: "world" | "org" | "community" | "partnered", shouldEmail?: boolean): Promise<IAddOrInviteResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* @private
|
|
75
|
+
* Takes users array and sorts them into an object by the type of user they are
|
|
76
|
+
* based on the orgType prop (world|org|community)
|
|
77
|
+
*
|
|
78
|
+
* @export
|
|
79
|
+
* @param {IUserWithOrgType[]} users array of users
|
|
80
|
+
* @return {IUserOrgRelationship} Object of users sorted by type (world, org, community)
|
|
81
|
+
*/
|
|
82
|
+
export declare function groupUsersByOrgRelationship(users: IUserWithOrgType[]): IUserOrgRelationship;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IAddGroupUsersResult, IUser } from "@esri/arcgis-rest-portal";
|
|
2
|
+
import { IAuthenticationManager } from "@esri/arcgis-rest-request";
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* Auto add N users to a single group, with users added as admins of that group
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @param {string} id Group ID
|
|
9
|
+
* @param {IUser[]} admins array of users to add to group as admin
|
|
10
|
+
* @param {IAuthenticationManager} authentication authentication manager
|
|
11
|
+
* @return {IAddGroupUsersResult} Result of the transaction (null if no users are passed in)
|
|
12
|
+
*/
|
|
13
|
+
export declare function autoAddUsersAsAdmins(id: string, admins: IUser[], authentication: IAuthenticationManager): Promise<IAddGroupUsersResult | null>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IAddOrInviteContext, IAddOrInviteResponse } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* Governs logic for automatically adding N users to a group.
|
|
5
|
+
* Users are added as either a regular user OR as an administrator of the group
|
|
6
|
+
* depending on the addUserAsGroupAdmin prop on the IAddOrInviteContext.
|
|
7
|
+
* If there is an email object on the IAddOrInviteContext, then email notifications are sent.
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @param {IAddOrInviteContext} context context object
|
|
11
|
+
* @param {string} userType what type of user is it: org | world | community
|
|
12
|
+
* @param {boolean} [shouldEmail=false] should the user be emailed?
|
|
13
|
+
* @return {IAddOrInviteResponse} response object
|
|
14
|
+
*/
|
|
15
|
+
export declare function processAutoAddUsers(context: IAddOrInviteContext, userType: "world" | "org" | "community" | "partnered" | "collaborationCoordinator", shouldEmail?: boolean): Promise<IAddOrInviteResponse>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IAddOrInviteContext, IAddOrInviteResponse } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* Governs the logic for emailing N users. It acts under the assumption
|
|
5
|
+
* that all the 'community' users are the ones being emailed (this is due to platform rules we conform to)
|
|
6
|
+
* Function is called upstream depending on if an email object is attached to the context.
|
|
7
|
+
* Email object contains its own auth as it'll require the community admin to send the email itself.
|
|
8
|
+
* An individual email call goes out for each user due to how the response of multiple users in a single call works.
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @param {IAddOrInviteContext} context context object
|
|
12
|
+
* @return {IAddOrInviteResponse} response object
|
|
13
|
+
*/
|
|
14
|
+
export declare function processEmailUsers(context: IAddOrInviteContext): Promise<IAddOrInviteResponse>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IAddOrInviteContext, IAddOrInviteResponse } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* Governs the logic for inviting N users to a single group.
|
|
5
|
+
* An individual invite call goes out for each user and the results are consolidated.
|
|
6
|
+
* See comment in function about the for...of loop which explains reasoning.
|
|
7
|
+
*
|
|
8
|
+
* @export
|
|
9
|
+
* @param {IAddOrInviteContext} context context object
|
|
10
|
+
* @param {string} userType what type of user is it: org | world | community
|
|
11
|
+
* @return {IAddOrInviteResponse} response object
|
|
12
|
+
*/
|
|
13
|
+
export declare function processInviteUsers(context: IAddOrInviteContext, userType: "world" | "org" | "community" | "partnered"): Promise<IAddOrInviteResponse>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IUser } from "@esri/arcgis-rest-portal";
|
|
2
2
|
import { IHubRequestOptions } from "../../types";
|
|
3
|
-
import { IConsolidatedResult
|
|
3
|
+
import { IConsolidatedResult } from "./interfaces";
|
|
4
|
+
import { IEmail } from "../types";
|
|
4
5
|
/**
|
|
5
6
|
* Adds, invites or emails users about joining a group
|
|
6
7
|
* based on the permissions of the requesting user. The
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { ICreateOrgNotificationResult, IInviteGroupUsersResult, IUser } from "@esri/arcgis-rest-portal";
|
|
2
2
|
import { ArcGISRequestError } from "@esri/arcgis-rest-request";
|
|
3
3
|
import { IHubRequestOptions } from "../../types";
|
|
4
|
-
|
|
5
|
-
subject?: string;
|
|
6
|
-
body?: string;
|
|
7
|
-
copyMe?: boolean;
|
|
8
|
-
}
|
|
4
|
+
import { IEmail } from "../types";
|
|
9
5
|
export interface IConsolidatedResult {
|
|
10
6
|
success: boolean;
|
|
11
7
|
autoAdd?: ISimpleResult;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IAuthenticationManager } from "@esri/arcgis-rest-request";
|
|
2
|
+
import { IAddOrInviteEmail, IAddOrInviteToGroupResult, IUserWithOrgType } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Add or invite N users to a single group
|
|
5
|
+
* Org|community|world logic flows are run even if there are no users applicable for that particular path.
|
|
6
|
+
* Results from each path are consolidated and surfaced in the return object as failures and errors are of
|
|
7
|
+
* more importance than successes.
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @param {string} groupId Group we are adding users to
|
|
11
|
+
* @param {IUserWithOrgType[]} users array of users to add
|
|
12
|
+
* @param {IAuthenticationManager} primaryRO primary requestOptions
|
|
13
|
+
* @param {boolean} canAutoAddUser Can we automatically add a user to the group?
|
|
14
|
+
* @param {boolean} addUserAsGroupAdmin Should the user be added as a group administrator
|
|
15
|
+
* @param {IAddOrInviteEmail} email Email object
|
|
16
|
+
* @return {IAddOrInviteToGroupResult} Result object
|
|
17
|
+
*/
|
|
18
|
+
export declare function addOrInviteUsersToGroup(groupId: string, users: IUserWithOrgType[], primaryRO: IAuthenticationManager, canAutoAddUser: boolean, addUserAsGroupAdmin: boolean, email: IAddOrInviteEmail): Promise<IAddOrInviteToGroupResult>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ArcGISRequestError, IAuthenticationManager } from "@esri/arcgis-rest-request";
|
|
2
|
+
import { IAddOrInviteEmail, IAddOrInviteToGroupResult, IUserWithOrgType } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* addOrInviteUsersToGroups adds/invites N users to N groups
|
|
5
|
+
* Initial entry point function for add/invite members flow
|
|
6
|
+
* when dealing with multiple groups.
|
|
7
|
+
* Responses from each group are then consolidated into the final returned object.
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @param {string[]} groupIds array of groups we are adding users to
|
|
11
|
+
* @param {IUserWithOrgType[]} users array of users to add to those groups
|
|
12
|
+
* @param {IAuthenticationManager} primaryRO primary requestOptions
|
|
13
|
+
* @param {boolean} [canAutoAddUser=false] Can we automatically add a user to the group?
|
|
14
|
+
* @param {boolean} [addUserAsGroupAdmin=false] Can the user be added to a group as an administrator of that group?
|
|
15
|
+
* @param {IAddOrInviteEmail} [email] Email object contains auth for the email && the email object itself
|
|
16
|
+
* @return {*} {Promise<{
|
|
17
|
+
* notAdded: string[];
|
|
18
|
+
* notInvited: string[];
|
|
19
|
+
* notEmailed: string[];
|
|
20
|
+
* errors: ArcGISRequestError[];
|
|
21
|
+
* responses: IAddOrInviteToGroupResult[];
|
|
22
|
+
* }>} Results object
|
|
23
|
+
*/
|
|
24
|
+
export declare function addOrInviteUsersToGroups(groupIds: string[], users: IUserWithOrgType[], primaryRO: IAuthenticationManager, canAutoAddUser?: boolean, addUserAsGroupAdmin?: boolean, email?: IAddOrInviteEmail): Promise<{
|
|
25
|
+
notAdded: string[];
|
|
26
|
+
notInvited: string[];
|
|
27
|
+
notEmailed: string[];
|
|
28
|
+
errors: ArcGISRequestError[];
|
|
29
|
+
responses: IAddOrInviteToGroupResult[];
|
|
30
|
+
}>;
|
|
@@ -11,4 +11,4 @@ import { IAuthenticationManager } from "@esri/arcgis-rest-request";
|
|
|
11
11
|
*
|
|
12
12
|
* @returns {IAddGroupUsersResult|null} Result of the transaction (null if no users are passed in)
|
|
13
13
|
*/
|
|
14
|
-
export declare function autoAddUsers(id: string, users: IUser[], authentication: IAuthenticationManager): Promise<IAddGroupUsersResult>;
|
|
14
|
+
export declare function autoAddUsers(id: string, users: IUser[], authentication: IAuthenticationManager): Promise<IAddGroupUsersResult | null>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IUser } from "@esri/arcgis-rest-auth";
|
|
2
2
|
import { ICreateOrgNotificationResult } from "@esri/arcgis-rest-portal";
|
|
3
3
|
import { IAuthenticationManager } from "@esri/arcgis-rest-request";
|
|
4
|
-
import { IEmail } from "
|
|
4
|
+
import { IEmail } from "./types";
|
|
5
5
|
/**
|
|
6
6
|
* Attempts to email members of the requesting user's organization.
|
|
7
7
|
*
|
|
@@ -12,4 +12,4 @@ import { IEmail } from "../interfaces";
|
|
|
12
12
|
*
|
|
13
13
|
* @returns {object|null} A promise that resolves to the result of the transaction (null if no users are passed in)
|
|
14
14
|
*/
|
|
15
|
-
export declare function emailOrgUsers(users: IUser[], email: IEmail, authentication: IAuthenticationManager, isOrgAdmin: boolean): Promise<ICreateOrgNotificationResult>;
|
|
15
|
+
export declare function emailOrgUsers(users: IUser[], email: IEmail, authentication: IAuthenticationManager, isOrgAdmin: boolean): Promise<ICreateOrgNotificationResult | null>;
|
|
@@ -3,3 +3,8 @@ export * from "./add-users-workflow";
|
|
|
3
3
|
export * from "./types";
|
|
4
4
|
export * from "./HubGroups";
|
|
5
5
|
export * from "./HubGroup";
|
|
6
|
+
export * from "./addOrInviteUsersToGroup";
|
|
7
|
+
export * from "./addOrInviteUsersToGroups";
|
|
8
|
+
export * from "./autoAddUsers";
|
|
9
|
+
export * from "./inviteUsers";
|
|
10
|
+
export * from "./emailOrgUsers";
|
|
@@ -14,4 +14,4 @@ import { IAuthenticationManager } from "@esri/arcgis-rest-request";
|
|
|
14
14
|
* @returns {object|null} Result of the transaction (null if no users are passed in)
|
|
15
15
|
*/
|
|
16
16
|
export declare function inviteUsers(id: string, users: IUser[], authentication: IAuthenticationManager, expiration?: number, // default to 2 week expiration TODO: is this actually 2 weeks?
|
|
17
|
-
role?: "group_member" | "group_admin"): Promise<IInviteGroupUsersResult>;
|
|
17
|
+
role?: "group_member" | "group_admin"): Promise<IInviteGroupUsersResult | null>;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ArcGISRequestError, IAuthenticationManager } from "@esri/arcgis-rest-request";
|
|
2
|
+
import { IUser } from "@esri/arcgis-rest-types";
|
|
3
|
+
export interface IEmail {
|
|
4
|
+
subject?: string;
|
|
5
|
+
body?: string;
|
|
6
|
+
copyMe?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* User object returned from add users modal in ember application
|
|
10
|
+
* It extends the IUser interface with an additional property
|
|
11
|
+
* that denotes what org relationship the user might have (world|org|community|partnered|collaborationCoordinator)
|
|
12
|
+
*/
|
|
13
|
+
export interface IUserWithOrgType extends IUser {
|
|
14
|
+
orgType: "world" | "org" | "community" | "partnered" | "collaborationCoordinator";
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* User org relationship interface
|
|
18
|
+
* Object contains users parsed by their org relationship (world|org|community|partnered|collaborationCoordinator)
|
|
19
|
+
*/
|
|
20
|
+
export interface IUserOrgRelationship {
|
|
21
|
+
world: IUserWithOrgType[];
|
|
22
|
+
org: IUserWithOrgType[];
|
|
23
|
+
community: IUserWithOrgType[];
|
|
24
|
+
partnered: IUserWithOrgType[];
|
|
25
|
+
collaborationCoordinator: IUserWithOrgType[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Interface governing the add or invite response out of process auto add / invite / emailing users
|
|
29
|
+
*/
|
|
30
|
+
export interface IAddOrInviteResponse {
|
|
31
|
+
users: string[];
|
|
32
|
+
errors: ArcGISRequestError[];
|
|
33
|
+
notAdded: string[];
|
|
34
|
+
notInvited: string[];
|
|
35
|
+
notEmailed: string[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Email input object for add/invite flow
|
|
39
|
+
* contains both the IEmail object and auth for the email.
|
|
40
|
+
*/
|
|
41
|
+
export interface IAddOrInviteEmail {
|
|
42
|
+
message: IEmail;
|
|
43
|
+
auth: IAuthenticationManager;
|
|
44
|
+
groupId?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Add or invite flow context - object that contains all the needed
|
|
48
|
+
* inputs for org/world/community users
|
|
49
|
+
*/
|
|
50
|
+
export interface IAddOrInviteContext extends IUserOrgRelationship {
|
|
51
|
+
groupId: string;
|
|
52
|
+
primaryRO: IAuthenticationManager;
|
|
53
|
+
allUsers: IUserWithOrgType[];
|
|
54
|
+
canAutoAddUser: boolean;
|
|
55
|
+
addUserAsGroupAdmin: boolean;
|
|
56
|
+
email: IAddOrInviteEmail;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Interface for result object out of addOrInviteUsersToGroup.
|
|
60
|
+
*/
|
|
61
|
+
export interface IAddOrInviteToGroupResult {
|
|
62
|
+
errors: ArcGISRequestError[];
|
|
63
|
+
notAdded: string[];
|
|
64
|
+
notInvited: string[];
|
|
65
|
+
notEmailed: string[];
|
|
66
|
+
community: IAddOrInviteResponse;
|
|
67
|
+
org: IAddOrInviteResponse;
|
|
68
|
+
world: IAddOrInviteResponse;
|
|
69
|
+
partnered: IAddOrInviteResponse;
|
|
70
|
+
collaborationCoordinator: IAddOrInviteResponse;
|
|
71
|
+
groupId: string;
|
|
72
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
-
import { IHubPage } from "../../core";
|
|
3
2
|
import { IModel } from "../../types";
|
|
3
|
+
import { IHubPage } from "../../core/types/IHubPage";
|
|
4
4
|
/**
|
|
5
5
|
* Given a model and a page, set various computed properties that can't be directly mapped
|
|
6
6
|
* @private
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { AccessLevel, IHubEntityBase } from "../../core";
|
|
2
2
|
import { HubFamily, IHubGeography } from "../../types";
|
|
3
|
-
/**
|
|
4
|
-
* Simple interface for Links
|
|
5
|
-
*/
|
|
6
|
-
export interface ILink {
|
|
7
|
-
/**
|
|
8
|
-
* Link url
|
|
9
|
-
*/
|
|
10
|
-
href: string;
|
|
11
|
-
/**
|
|
12
|
-
* Additional optional properties
|
|
13
|
-
*/
|
|
14
|
-
[key: string]: string;
|
|
15
|
-
}
|
|
16
3
|
/**
|
|
17
4
|
* Standardized light-weight search result structure, applicable to all
|
|
18
5
|
* types of search results - users, groups, content, events etc
|
|
@@ -42,33 +29,6 @@ export interface IHubSearchResult extends IHubEntityBase {
|
|
|
42
29
|
* TypeKeywords; Applies to Items
|
|
43
30
|
*/
|
|
44
31
|
typeKeywords?: string[];
|
|
45
|
-
/**
|
|
46
|
-
* Links to related things
|
|
47
|
-
*/
|
|
48
|
-
links?: {
|
|
49
|
-
/**
|
|
50
|
-
* Url to Thumbnail. Will not include a token
|
|
51
|
-
*/
|
|
52
|
-
thumbnail?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Url to the entities canonical "self"
|
|
55
|
-
* For Items/Groups/Users, this will be the Home App url
|
|
56
|
-
* For other entities, it will be the canonical url
|
|
57
|
-
*/
|
|
58
|
-
self: string;
|
|
59
|
-
/**
|
|
60
|
-
* Relative url of the entity, within a site
|
|
61
|
-
*/
|
|
62
|
-
siteRelative: string;
|
|
63
|
-
/**
|
|
64
|
-
* Relative workspace url of the entity, within a site
|
|
65
|
-
*/
|
|
66
|
-
workspaceRelative?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Additional urls
|
|
69
|
-
*/
|
|
70
|
-
[key: string]: string | ILink;
|
|
71
|
-
};
|
|
72
32
|
/**
|
|
73
33
|
* Geometry connected to this entity
|
|
74
34
|
* For items, it will default to the extent,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
-
import { IHubSite } from "../../core";
|
|
3
2
|
import { IModel } from "../../types";
|
|
3
|
+
import { IHubSite } from "../../core/types/IHubSite";
|
|
4
4
|
/**
|
|
5
5
|
* Given a model and a site, set various computed properties that can't be directly mapped
|
|
6
6
|
* @private
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto-add-users.js","sourceRoot":"","sources":["../../../../../src/groups/add-users-workflow/workflow-sections/auto-add-users.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,aAAa,EACd,MAAM,0BAA0B,CAAC;AAGlC;;;;;;;;;GASG;AACH,MAAM,UAAU,YAAY,CAC1B,EAAU,EACV,KAAc,EACd,cAAsC;IAEtC,IAAI,QAAQ,GAAkC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACpE,IAAI,KAAK,CAAC,MAAM,EAAE;QAChB,MAAM,IAAI,GAA0B;YAClC,EAAE;YACF,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;YACjC,cAAc;SACf,CAAC;QACF,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;KAChC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"email-org-users.js","sourceRoot":"","sources":["../../../../../src/groups/add-users-workflow/workflow-sections/email-org-users.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,qBAAqB,EACtB,MAAM,0BAA0B,CAAC;AAIlC;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAC3B,KAAc,EACd,KAAa,EACb,cAAsC,EACtC,UAAmB;IAEnB,IAAI,QAAQ,GAA0C,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5E,IAAI,KAAK,CAAC,MAAM,EAAE;QAChB,MAAM,IAAI,GAAkC;YAC1C,cAAc;YACd,OAAO,EAAE,KAAK,CAAC,IAAI;YACnB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,uBAAuB,EAAE,OAAO;YAChC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;SAClC,CAAC;QACF,IAAI,CAAC,UAAU,EAAE;YACf,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;SACpB;QACD,QAAQ,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;KACxC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/groups/add-users-workflow/workflow-sections/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invite-users.js","sourceRoot":"","sources":["../../../../../src/groups/add-users-workflow/workflow-sections/invite-users.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAGlC;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,WAAW,CACzB,EAAU,EACV,KAAc,EACd,cAAsC,EACtC,UAAU,GAAG,KAAK,EAAE,+DAA+D;AACnF,OAAuC,cAAc,CAAC,4DAA4D;;IAElH,IAAI,QAAQ,GAAqC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE,IAAI,KAAK,CAAC,MAAM,EAAE;QAChB,MAAM,IAAI,GAA6B;YACrC,EAAE;YACF,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;YACnC,cAAc;YACd,IAAI;YACJ,UAAU;SACX,CAAC;QAEF,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;KACnC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto-add-users.js","sourceRoot":"","sources":["../../../../../src/groups/add-users-workflow/workflow-sections/auto-add-users.ts"],"names":[],"mappings":";;;AACA,iEAIkC;AAGlC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,EAAU,EACV,KAAc,EACd,cAAsC;IAEtC,IAAI,QAAQ,GAAkC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACpE,IAAI,KAAK,CAAC,MAAM,EAAE;QAChB,MAAM,IAAI,GAA0B;YAClC,EAAE;YACF,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;YACjC,cAAc;SACf,CAAC;QACF,QAAQ,GAAG,kCAAa,CAAC,IAAI,CAAC,CAAC;KAChC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAhBD,oCAgBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"email-org-users.js","sourceRoot":"","sources":["../../../../../src/groups/add-users-workflow/workflow-sections/email-org-users.ts"],"names":[],"mappings":";;;AACA,iEAIkC;AAIlC;;;;;;;;;GASG;AACH,SAAgB,aAAa,CAC3B,KAAc,EACd,KAAa,EACb,cAAsC,EACtC,UAAmB;IAEnB,IAAI,QAAQ,GAA0C,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5E,IAAI,KAAK,CAAC,MAAM,EAAE;QAChB,MAAM,IAAI,GAAkC;YAC1C,cAAc;YACd,OAAO,EAAE,KAAK,CAAC,IAAI;YACnB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,uBAAuB,EAAE,OAAO;YAChC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;SAClC,CAAC;QACF,IAAI,CAAC,UAAU,EAAE;YACf,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;SACpB;QACD,QAAQ,GAAG,0CAAqB,CAAC,IAAI,CAAC,CAAC;KACxC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAtBD,sCAsBC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./auto-add-users"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./email-org-users"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./invite-users"), exports);
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/groups/add-users-workflow/workflow-sections/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,4DAAkC;AAClC,yDAA+B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invite-users.js","sourceRoot":"","sources":["../../../../../src/groups/add-users-workflow/workflow-sections/invite-users.ts"],"names":[],"mappings":";;;AACA,iEAIkC;AAGlC;;;;;;;;;;;GAWG;AACH,SAAgB,WAAW,CACzB,EAAU,EACV,KAAc,EACd,cAAsC,EACtC,UAAU,GAAG,KAAK,EAAE,+DAA+D;AACnF,OAAuC,cAAc,CAAC,4DAA4D;;IAElH,IAAI,QAAQ,GAAqC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE,IAAI,KAAK,CAAC,MAAM,EAAE;QAChB,MAAM,IAAI,GAA6B;YACrC,EAAE;YACF,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;YACnC,cAAc;YACd,IAAI;YACJ,UAAU;SACX,CAAC;QAEF,QAAQ,GAAG,qCAAgB,CAAC,IAAI,CAAC,CAAC;KACnC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AArBD,kCAqBC"}
|