@esri/solution-group 5.2.2 → 5.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solution-group",
3
- "version": "5.2.2",
3
+ "version": "5.2.3",
4
4
  "description": "Manages the creation and deployment of group item types for @esri/solution.js.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -23,11 +23,11 @@
23
23
  "@esri/arcgis-rest-portal": "^3.7.0",
24
24
  "@esri/arcgis-rest-request": "^3.7.0",
25
25
  "@esri/arcgis-rest-service-admin": "^3.7.0",
26
- "@esri/hub-common": "^14.84.0",
26
+ "@esri/hub-common": "^14.97.0",
27
27
  "@esri/hub-initiatives": "^14.0.0",
28
28
  "@esri/hub-sites": "^14.2.2",
29
29
  "@esri/hub-teams": "^14.1.0",
30
- "@esri/solution-common": "^5.2.2",
30
+ "@esri/solution-common": "^5.2.3",
31
31
  "@types/jasmine": "^5.1.4",
32
32
  "fetch-mock": "^7.7.3",
33
33
  "jasmine": "^5.1.0",
@@ -88,5 +88,5 @@
88
88
  "esri",
89
89
  "ES6"
90
90
  ],
91
- "gitHead": "d92c1d8e3e6df12fda59df3ecc395d7570fa60dd"
91
+ "gitHead": "bcf0907f47cf8a2970f8da38f8e1e2a4ac7beccb"
92
92
  }
@@ -1,45 +0,0 @@
1
- /** @license
2
- * Copyright 2019 Esri
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- /**
17
- * Manages the creation and deployment of groups.
18
- *
19
- * @module group
20
- */
21
- import * as common from "@esri/solution-common";
22
- /**
23
- * Converts a group item into a template.
24
- *
25
- * @param itemInfo Info about the item
26
- * @param destAuthentication Credentials for requests to the destination organization
27
- * @param srcAuthentication Credentials for requests to source items
28
- * @returns A promise that will resolve when the template has been created
29
- */
30
- export declare function convertItemToTemplate(itemInfo: any, destAuthentication: common.UserSession, srcAuthentication: common.UserSession): Promise<common.IItemTemplate>;
31
- export declare function createItemFromTemplate(template: common.IItemTemplate, templateDictionary: any, destinationAuthentication: common.UserSession, itemProgressCallback: common.IItemProgressCallback): Promise<common.ICreateItemFromTemplateResponse>;
32
- /**
33
- * Group post-processing actions
34
- *
35
- * @param {string} id The item ID
36
- * @param {string} type The template type
37
- * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
38
- * @param {common.IItemTemplate} template The original template
39
- * @param {common.IItemTemplate[]} templates The original templates
40
- * @param {any} templateDictionary The template dictionary
41
- * @param {UserSession} authentication The destination session info
42
- * @returns Promise resolving to successfulness of update
43
- */
44
- export declare function postProcess(id: string, type: string, itemInfos: any[], template: common.IItemTemplate, templates: common.IItemTemplate[], templateDictionary: any, authentication: any): Promise<any>;
45
- export declare function _initializeNewGroup(sourceGroup: common.IItemGeneralized): common.IGroupAdd;
package/dist/cjs/group.js DELETED
@@ -1,237 +0,0 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2019 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports._initializeNewGroup = exports.postProcess = exports.createItemFromTemplate = exports.convertItemToTemplate = void 0;
19
- const tslib_1 = require("tslib");
20
- /**
21
- * Manages the creation and deployment of groups.
22
- *
23
- * @module group
24
- */
25
- const common = tslib_1.__importStar(require("@esri/solution-common"));
26
- // ------------------------------------------------------------------------------------------------------------------ //
27
- /**
28
- * Converts a group item into a template.
29
- *
30
- * @param itemInfo Info about the item
31
- * @param destAuthentication Credentials for requests to the destination organization
32
- * @param srcAuthentication Credentials for requests to source items
33
- * @returns A promise that will resolve when the template has been created
34
- */
35
- function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication) {
36
- return new Promise(resolve => {
37
- // Init template
38
- const itemTemplate = common.createInitializedGroupTemplate(itemInfo);
39
- // Templatize item info property values
40
- itemTemplate.item.id = common.templatizeTerm(itemTemplate.item.id, itemTemplate.item.id, ".itemId");
41
- // Get the group's items--its dependencies
42
- common.getGroupContents(itemInfo.id, srcAuthentication).then(groupContents => {
43
- itemTemplate.type = "Group";
44
- common.getGroupBase(itemInfo.id, srcAuthentication).then(groupResponse => {
45
- groupResponse.id = itemTemplate.item.id;
46
- itemTemplate.item = {
47
- ...groupResponse,
48
- type: "Group"
49
- };
50
- // Does the group contain groups?
51
- itemTemplate.dependencies = groupContents.concat(common.getSubgroupIds(groupResponse.tags));
52
- resolve(itemTemplate);
53
- }, () => resolve(itemTemplate));
54
- }, () => resolve(itemTemplate));
55
- });
56
- }
57
- exports.convertItemToTemplate = convertItemToTemplate;
58
- function createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback) {
59
- return new Promise(resolve => {
60
- // Interrupt process if progress callback returns `false`
61
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Started, 0)) {
62
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Ignored, 0);
63
- resolve(common.generateEmptyCreationResponse(template.type));
64
- return;
65
- }
66
- // Replace the templatized symbols in a copy of the template
67
- let newItemTemplate = common.cloneObject(template);
68
- newItemTemplate = common.replaceInTemplate(newItemTemplate, templateDictionary);
69
- // Need to manually reset thumbnail because adlib in replaceInTemplate breaks it
70
- newItemTemplate.item.thumbnail = template.item.thumbnail;
71
- // Set up properties needed to create group
72
- const newGroup = _initializeNewGroup(newItemTemplate.item);
73
- // Create a group, appending a sequential suffix to its name if the group exists, e.g.,
74
- // * Manage Right of Way Activities
75
- // * Manage Right of Way Activities 1
76
- // * Manage Right of Way Activities 2
77
- common
78
- .createUniqueGroup(newGroup.title, newGroup, templateDictionary, destinationAuthentication, common.isTrackingViewGroup(newItemTemplate) ? templateDictionary.locationTracking.owner : undefined)
79
- .then((createResponse) => {
80
- if (createResponse.success) {
81
- // Interrupt process if progress callback returns `false`
82
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Created, template.estimatedDeploymentCostFactor / 2, createResponse.group.id)) {
83
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
84
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
85
- common
86
- .removeGroup(createResponse.group.id, destinationAuthentication)
87
- .then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
88
- }
89
- else {
90
- newItemTemplate.itemId = createResponse.group.id;
91
- templateDictionary[template.itemId] = {
92
- itemId: createResponse.group.id
93
- };
94
- // Update the template again now that we have the new item id
95
- newItemTemplate = common.replaceInTemplate(newItemTemplate, templateDictionary);
96
- // Update the template dictionary with the new id
97
- templateDictionary[template.itemId].itemId =
98
- createResponse.group.id;
99
- // Interrupt process if progress callback returns `false`
100
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Finished, template.estimatedDeploymentCostFactor / 2, createResponse.group.id)) {
101
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
102
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
103
- common
104
- .removeGroup(createResponse.group.id, destinationAuthentication)
105
- .then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
106
- }
107
- else {
108
- if (common.isTrackingViewGroup(newItemTemplate)) {
109
- const owner = templateDictionary.locationTracking.owner;
110
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
111
- common.reassignGroup(createResponse.group.id, owner, destinationAuthentication).then(assignResults => {
112
- if (assignResults.success) {
113
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Created, template.estimatedDeploymentCostFactor / 2, createResponse.group.id)) {
114
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
115
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
116
- common
117
- .removeGroup(createResponse.group.id, destinationAuthentication)
118
- .then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
119
- }
120
- else {
121
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
122
- common.removeUsers(createResponse.group.id, [destinationAuthentication.username], destinationAuthentication).then(removeResults => {
123
- if (Array.isArray(removeResults.notRemoved) && removeResults.notRemoved.length === 0) {
124
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Created, template.estimatedDeploymentCostFactor / 2, createResponse.group.id)) {
125
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
126
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
127
- common
128
- .removeGroup(createResponse.group.id, destinationAuthentication)
129
- .then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
130
- }
131
- else {
132
- resolve({
133
- item: newItemTemplate,
134
- id: createResponse.group.id,
135
- type: newItemTemplate.type,
136
- postProcess: common.hasUnresolvedVariables(newItemTemplate)
137
- });
138
- }
139
- }
140
- else {
141
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
142
- resolve(common.generateEmptyCreationResponse(template.type)); // fails to create item
143
- }
144
- });
145
- }
146
- }
147
- else {
148
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
149
- resolve(common.generateEmptyCreationResponse(template.type)); // fails to create item
150
- }
151
- });
152
- }
153
- else {
154
- resolve({
155
- item: newItemTemplate,
156
- id: createResponse.group.id,
157
- type: newItemTemplate.type,
158
- postProcess: common.hasUnresolvedVariables(newItemTemplate)
159
- });
160
- }
161
- }
162
- }
163
- }
164
- else {
165
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
166
- resolve(common.generateEmptyCreationResponse(template.type)); // fails to create item
167
- }
168
- }, () => {
169
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
170
- resolve(common.generateEmptyCreationResponse(template.type)); // fails to create item
171
- });
172
- });
173
- }
174
- exports.createItemFromTemplate = createItemFromTemplate;
175
- /**
176
- * Group post-processing actions
177
- *
178
- * @param {string} id The item ID
179
- * @param {string} type The template type
180
- * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
181
- * @param {common.IItemTemplate} template The original template
182
- * @param {common.IItemTemplate[]} templates The original templates
183
- * @param {any} templateDictionary The template dictionary
184
- * @param {UserSession} authentication The destination session info
185
- * @returns Promise resolving to successfulness of update
186
- */
187
- function postProcess(id, type, itemInfos, template, templates, templateDictionary, authentication) {
188
- let promise = Promise.resolve({ success: true });
189
- itemInfos.some(t => {
190
- /* istanbul ignore else */
191
- if (t.id === id) {
192
- let group = t.item.item;
193
- /* istanbul ignore else */
194
- if (common.hasUnresolvedVariables(group)) {
195
- group = common.replaceInTemplate(group, templateDictionary);
196
- // update the group
197
- promise = common.updateGroup(group, authentication);
198
- }
199
- return true;
200
- }
201
- });
202
- return promise;
203
- }
204
- exports.postProcess = postProcess;
205
- function _initializeNewGroup(sourceGroup) {
206
- // Set up properties needed to create group
207
- const newGroup = {
208
- access: "private",
209
- description: sourceGroup.description,
210
- owner: sourceGroup.owner,
211
- snippet: sourceGroup.snippet,
212
- tags: sourceGroup.tags,
213
- thumbnail: sourceGroup.thumbnail,
214
- title: sourceGroup.title || "",
215
- typeKeywords: sourceGroup.typeKeywords
216
- };
217
- const props = [
218
- "autoJoin",
219
- "displaySettings",
220
- "isInvitationOnly",
221
- "isOpenData",
222
- "isViewOnly",
223
- "membershipAccess",
224
- "properties",
225
- "sortField",
226
- "sortOrder"
227
- ];
228
- props.forEach(p => {
229
- /* istanbul ignore else */
230
- if (sourceGroup.hasOwnProperty(p)) {
231
- newGroup[p] = sourceGroup[p];
232
- }
233
- });
234
- return newGroup;
235
- }
236
- exports._initializeNewGroup = _initializeNewGroup;
237
- //# sourceMappingURL=group.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.js","sourceRoot":"","sources":["../../src/group.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH;;;;GAIG;AAEH,sEAAgD;AAEhD,wHAAwH;AAExH;;;;;;;GAOG;AACH,SAAgB,qBAAqB,CACnC,QAAa,EACb,kBAAsC,EACtC,iBAAqC;IAErC,OAAO,IAAI,OAAO,CAAuB,OAAO,CAAC,EAAE;QACjD,gBAAgB;QAChB,MAAM,YAAY,GAAyB,MAAM,CAAC,8BAA8B,CAC9E,QAAQ,CACT,CAAC;QAEF,uCAAuC;QACvC,YAAY,CAAC,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,cAAc,CAC1C,YAAY,CAAC,IAAI,CAAC,EAAE,EACpB,YAAY,CAAC,IAAI,CAAC,EAAE,EACpB,SAAS,CACV,CAAC;QAEF,0CAA0C;QAC1C,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAC,IAAI,CAC1D,aAAa,CAAC,EAAE;YACd,YAAY,CAAC,IAAI,GAAG,OAAO,CAAC;YAC5B,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAC,IAAI,CACtD,aAAa,CAAC,EAAE;gBACd,aAAa,CAAC,EAAE,GAAG,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;gBACxC,YAAY,CAAC,IAAI,GAAG;oBAClB,GAAG,aAAa;oBAChB,IAAI,EAAE,OA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AC,SAAS;QAChC,KAAK,EAAE,WAAW,CAAC,KAAK,IAAI,EAAE;QAC9B,YAAY,EAAE,WAAW,CAAC,YAAY;KACvC,CAAC;IAEF,MAAM,KAAK,GAAa;QACtB,UAAU;QACV,iBAAiB;QACjB,kBAAkB;QAClB,YAAY;QACZ,YAAY;QACZ,kBAAkB;QAClB,YAAY;QACZ,WAAW;QACX,WAAW;KACZ,CAAC;IACF,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QAChB,0BAA0B;QAC1B,IAAI,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;YACjC,QAAQ,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;SAC9B;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC;AAlCD,kDAkCC"}
@@ -1,21 +0,0 @@
1
- /** @license
2
- * Copyright 2018 Esri
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- /**
17
- * Manages the creation and deployment of simple item types.
18
- *
19
- * @module simple-types
20
- */
21
- export * from "./group";
package/dist/cjs/index.js DELETED
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2018 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const tslib_1 = require("tslib");
19
- /**
20
- * Manages the creation and deployment of simple item types.
21
- *
22
- * @module simple-types
23
- */
24
- tslib_1.__exportStar(require("./group"), exports);
25
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH;;;;GAIG;AAEH,kDAAwB"}