@esri/solution-feature-layer 6.0.2-alpha.24 → 6.0.2-alpha.250423

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-feature-layer",
3
- "version": "6.0.2-alpha.24",
3
+ "version": "6.0.2-alpha.250423",
4
4
  "description": "Manages the creation and deployment of feature layers and services for @esri/solution.js.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -22,7 +22,7 @@
22
22
  "npm-check-updates": "^17.1.0"
23
23
  },
24
24
  "dependencies": {
25
- "@esri/solution-common": "^6.0.2-alpha.24",
25
+ "@esri/solution-common": "^6.0.2-alpha.250423",
26
26
  "tslib": "1.14.1"
27
27
  },
28
28
  "scripts": {
@@ -77,5 +77,5 @@
77
77
  "esri",
78
78
  "ES6"
79
79
  ],
80
- "gitHead": "537a2fada8d1c7b83128617037daf5589d3ef018"
80
+ "gitHead": "168358265a32ec53b2a718e3809001b15cddffe1"
81
81
  }
@@ -1,55 +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 feature layers and services.
18
- *
19
- * @module feature-layer
20
- */
21
- import * as common from "@esri/solution-common";
22
- /**
23
- * Fills in missing data, including full layer and table definitions, in a feature services' definition.
24
- *
25
- * @param itemInfo Feature service item
26
- * @param destAuthentication Credentials for requests to the destination organization
27
- * @param srcAuthentication Credentials for requests to source items
28
- * @param templateDictionary Hash mapping property names to replacement values
29
- * @returns A promise that will resolve when fullItem has been updated
30
- */
31
- export declare function convertItemToTemplate(itemInfo: any, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary?: any): Promise<common.IItemTemplate>;
32
- /**
33
- * Creates an item in a specified folder (except for Group item type).
34
- *
35
- * @param itemTemplate Item to be created; n.b.: this item is modified
36
- * @param folderId Id of folder to receive item; null indicates that the item goes into the root
37
- * folder; ignored for Group item type
38
- * @param settings Hash mapping property names to replacement values
39
- * @param authentication Credentials for the request
40
- * @returns A promise that will resolve with the id of the created item
41
- * @private
42
- */
43
- export declare function createItemFromTemplate(template: common.IItemTemplate, templateDictionary: any, destinationAuthentication: common.UserSession, itemProgressCallback: common.IItemProgressCallback): Promise<common.ICreateItemFromTemplateResponse>;
44
- /**
45
- * Feature Layer post-processing actions
46
- *
47
- * @param {string} itemId The item ID
48
- * @param {string} type The template type
49
- * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
50
- * @param {any} templateDictionary The template dictionary
51
- * @param {UserSession} authentication The destination session info
52
- * @returns Promise resolving to successfulness of update
53
- */
54
- export declare function postProcess(itemId: string, type: string, itemInfos: any[], template: common.IItemTemplate, templates: common.IItemTemplate[], templateDictionary: any, authentication: common.UserSession): Promise<common.IUpdateItemResponse>;
55
- export declare function _mostRecentlyEditedLayer(layerOrTableList: any[]): any;
@@ -1,211 +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
- exports._mostRecentlyEditedLayer = exports.postProcess = exports.createItemFromTemplate = exports.convertItemToTemplate = void 0;
19
- const tslib_1 = require("tslib");
20
- /**
21
- * Manages the creation and deployment of feature layers and services.
22
- *
23
- * @module feature-layer
24
- */
25
- //#region Imports ----------------------------------------------------------------------------------------------//
26
- const common = tslib_1.__importStar(require("@esri/solution-common"));
27
- //#endregion
28
- //#region Publish Process --------------------------------------------------------------------------------------//
29
- /**
30
- * Fills in missing data, including full layer and table definitions, in a feature services' definition.
31
- *
32
- * @param itemInfo Feature service item
33
- * @param destAuthentication Credentials for requests to the destination organization
34
- * @param srcAuthentication Credentials for requests to source items
35
- * @param templateDictionary Hash mapping property names to replacement values
36
- * @returns A promise that will resolve when fullItem has been updated
37
- */
38
- function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
39
- return new Promise((resolve, reject) => {
40
- // Init template
41
- const template = common.createInitializedItemTemplate(itemInfo);
42
- const hasInvalidDesignations = common.hasInvalidGroupDesignations(itemInfo.groupDesignations);
43
- if (hasInvalidDesignations) {
44
- common.updateTemplateForInvalidDesignations(template, srcAuthentication).then((_template) => resolve(_template), (e) => reject(common.fail(e)));
45
- }
46
- else {
47
- // Update the estimated cost factor to deploy this item
48
- template.estimatedDeploymentCostFactor = 10;
49
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
50
- common.getItemDataAsJson(template.item.id, srcAuthentication).then((data) => {
51
- template.data = data;
52
- common.getServiceLayersAndTables(template, srcAuthentication).then((itemTemplate) => {
53
- // Update item's modified date to the latest of its modified date and the last edit date
54
- // of each of its layers or tables
55
- itemTemplate.item.modified = Math.max(itemTemplate.item.modified, _mostRecentlyEditedLayer(template.properties.layers), _mostRecentlyEditedLayer(template.properties.tables));
56
- // Extract dependencies
57
- common.extractDependencies(itemTemplate, srcAuthentication).then((dependencies) => {
58
- // set the dependencies as an array of IDs from the array of IDependency
59
- itemTemplate.dependencies = dependencies.map((dep) => dep.id);
60
- // resolve the template with templatized values
61
- resolve(common.templatize(itemTemplate, dependencies, false, templateDictionary));
62
- }, (e) => reject(common.fail(e)));
63
- }, (e) => reject(common.fail(e)));
64
- });
65
- }
66
- });
67
- }
68
- exports.convertItemToTemplate = convertItemToTemplate;
69
- //#endregion
70
- //#region Deploy Process ---------------------------------------------------------------------------------------//
71
- /**
72
- * Creates an item in a specified folder (except for Group item type).
73
- *
74
- * @param itemTemplate Item to be created; n.b.: this item is modified
75
- * @param folderId Id of folder to receive item; null indicates that the item goes into the root
76
- * folder; ignored for Group item type
77
- * @param settings Hash mapping property names to replacement values
78
- * @param authentication Credentials for the request
79
- * @returns A promise that will resolve with the id of the created item
80
- * @private
81
- */
82
- function createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback) {
83
- return new Promise((resolve) => {
84
- // Interrupt process if progress callback returns `false`
85
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Started, 0)) {
86
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Ignored, 0);
87
- resolve(common.generateEmptyCreationResponse(template.type));
88
- return;
89
- }
90
- // Replace the templatized symbols in a copy of the template
91
- let newItemTemplate = common.cloneObject(template);
92
- newItemTemplate = common.replaceInTemplate(newItemTemplate, templateDictionary);
93
- // Thumbnail has to be updated separately; doesn't work in create service call
94
- delete newItemTemplate.item.thumbnail;
95
- // added for issue #928
96
- common.deleteProp(newItemTemplate, "properties.service.size");
97
- // cache the popup info to be added later
98
- const popupInfos = common.cachePopupInfos(newItemTemplate.data);
99
- // Create the item, then update its URL with its new id
100
- common.createFeatureService(newItemTemplate, destinationAuthentication, templateDictionary).then((createResponse) => {
101
- if (createResponse.success) {
102
- // Interrupt process if progress callback returns `false`
103
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Created, template.estimatedDeploymentCostFactor / 2, createResponse.serviceItemId)) {
104
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
105
- common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
106
- }
107
- else {
108
- // Detemplatize what we can now that the service has been created
109
- newItemTemplate = common.updateTemplate(newItemTemplate, templateDictionary, createResponse);
110
- // Add the layers and tables to the feature service
111
- common
112
- .addFeatureServiceLayersAndTables(newItemTemplate, templateDictionary, popupInfos, destinationAuthentication)
113
- .then(() => {
114
- newItemTemplate = common.updateTemplate(newItemTemplate, templateDictionary, createResponse);
115
- // Update the item with snippet, description, popupInfo, etc.
116
- common
117
- .updateItemExtended({
118
- ...newItemTemplate.item,
119
- url: undefined, // can't update the URL of a feature service
120
- }, newItemTemplate.data, destinationAuthentication, template.item.thumbnail, undefined, templateDictionary)
121
- .then(() => {
122
- // Interrupt process if progress callback returns `false`
123
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Finished, template.estimatedDeploymentCostFactor / 2, createResponse.serviceItemId)) {
124
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
125
- common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
126
- }
127
- else {
128
- // Update the template to match what we've stored in AGO
129
- common.getItemBase(newItemTemplate.itemId, destinationAuthentication).then((updatedItem) => {
130
- newItemTemplate.item = updatedItem;
131
- /* istanbul ignore else */
132
- if (common.getProp(newItemTemplate, "item.url") &&
133
- !newItemTemplate.item.url.endsWith("/")) {
134
- newItemTemplate.item.url += "/";
135
- }
136
- resolve({
137
- item: newItemTemplate,
138
- id: createResponse.serviceItemId,
139
- type: newItemTemplate.type,
140
- postProcess: common.hasUnresolvedVariables({
141
- item: newItemTemplate.item,
142
- data: newItemTemplate.data,
143
- }) || common.isWorkforceProject(newItemTemplate),
144
- });
145
- }, () => {
146
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
147
- common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
148
- });
149
- }
150
- }, () => {
151
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
152
- common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
153
- });
154
- }, () => {
155
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
156
- common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
157
- });
158
- }
159
- }
160
- else {
161
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
162
- resolve(common.generateEmptyCreationResponse(template.type)); // fails to create item
163
- }
164
- }, () => {
165
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
166
- resolve(common.generateEmptyCreationResponse(template.type)); // fails to create item
167
- });
168
- });
169
- }
170
- exports.createItemFromTemplate = createItemFromTemplate;
171
- /**
172
- * Feature Layer post-processing actions
173
- *
174
- * @param {string} itemId The item ID
175
- * @param {string} type The template type
176
- * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
177
- * @param {any} templateDictionary The template dictionary
178
- * @param {UserSession} authentication The destination session info
179
- * @returns Promise resolving to successfulness of update
180
- */
181
- function postProcess(itemId, type, itemInfos, template, templates, templateDictionary, authentication) {
182
- return new Promise((resolve, reject) => {
183
- common.updateItemTemplateFromDictionary(itemId, templateDictionary, authentication).then((results) => {
184
- if (common.isWorkforceProject(template)) {
185
- template = common.replaceInTemplate(template, templateDictionary);
186
- common
187
- .fineTuneCreatedWorkforceItem(template, authentication, template.item.url, templateDictionary)
188
- .then(resolve, reject);
189
- }
190
- else {
191
- resolve(results);
192
- }
193
- }, reject);
194
- });
195
- }
196
- exports.postProcess = postProcess;
197
- //#endregion
198
- //#region Internal functions -----------------------------------------------------------------------------------------//
199
- //TODO: function doc
200
- function _mostRecentlyEditedLayer(layerOrTableList) {
201
- let mostRecentlyEdited = 0;
202
- layerOrTableList.forEach((layer) => {
203
- mostRecentlyEdited = layer.editingInfo?.lastEditDate
204
- ? Math.max(mostRecentlyEdited, layer.editingInfo.lastEditDate)
205
- : mostRecentlyEdited;
206
- });
207
- return mostRecentlyEdited;
208
- }
209
- exports._mostRecentlyEditedLayer = _mostRecentlyEditedLayer;
210
- //#endregion
211
- //# sourceMappingURL=feature-layer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feature-layer.js","sourceRoot":"","sources":["../../src/feature-layer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH;;;;GAIG;AAEH,kHAAkH;AAElH,sEAAgD;AAEhD,YAAY;AAEZ,kHAAkH;AAElH;;;;;;;;GAQG;AACH,SAAgB,qBAAqB,CACnC,QAAa,EACb,kBAAsC,EACtC,iBAAqC,EACrC,kBAAwB;IAExB,OAAO,IAAI,OAAO,CAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC3D,gBAAgB;QAChB,MAAM,QAAQ,GAAyB,MAAM,CAAC,6BAA6B,CAAC,QAAQ,CAAC,CAAC;QAEtF,MAAM,sBAAsB,GAAY,MAAM,CAAC,2BAA2B,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;QACvG,IAAI,sBAAsB,EAAE;YAC1B,MAAM,CAAC,oCAAoC,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,IAAI,CAC3E,CAAC,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,EACjC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAC9B,CAAC;SACH;aAAM;YACL,uDAAuD;YACvD,QAAQ,CAAC,6BAA6B,GAAG,EAAE,CAAC;YAE5C,mEAAmE;YACnE,MAAM,CAAC,iBAAiB,CAAC,QAAQ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;IAC9D,IAAI,kBAAkB,GAAG,CAAC,CAAC;IAC3B,gBAAgB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACjC,kBAAkB,GAAG,KAAK,CAAC,WAAW,EAAE,YAAY;YAClD,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,KAAK,CAAC,WAAW,CAAC,YAAY,CAAC;YAC9D,CAAC,CAAC,kBAAkB,CAAC;IACzB,CAAC,CAAC,CAAC;IACH,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AARD,4DAQC;AAED,YAAY"}
@@ -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 feature layers and services.
18
- *
19
- * @module feature-layer
20
- */
21
- export * from "./feature-layer";
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 feature layers and services.
21
- *
22
- * @module feature-layer
23
- */
24
- tslib_1.__exportStar(require("./feature-layer"), 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,0DAAgC"}
@@ -1,55 +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 feature layers and services.
18
- *
19
- * @module feature-layer
20
- */
21
- import * as common from "@esri/solution-common";
22
- /**
23
- * Fills in missing data, including full layer and table definitions, in a feature services' definition.
24
- *
25
- * @param itemInfo Feature service item
26
- * @param destAuthentication Credentials for requests to the destination organization
27
- * @param srcAuthentication Credentials for requests to source items
28
- * @param templateDictionary Hash mapping property names to replacement values
29
- * @returns A promise that will resolve when fullItem has been updated
30
- */
31
- export declare function convertItemToTemplate(itemInfo: any, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary?: any): Promise<common.IItemTemplate>;
32
- /**
33
- * Creates an item in a specified folder (except for Group item type).
34
- *
35
- * @param itemTemplate Item to be created; n.b.: this item is modified
36
- * @param folderId Id of folder to receive item; null indicates that the item goes into the root
37
- * folder; ignored for Group item type
38
- * @param settings Hash mapping property names to replacement values
39
- * @param authentication Credentials for the request
40
- * @returns A promise that will resolve with the id of the created item
41
- * @private
42
- */
43
- export declare function createItemFromTemplate(template: common.IItemTemplate, templateDictionary: any, destinationAuthentication: common.UserSession, itemProgressCallback: common.IItemProgressCallback): Promise<common.ICreateItemFromTemplateResponse>;
44
- /**
45
- * Feature Layer post-processing actions
46
- *
47
- * @param {string} itemId The item ID
48
- * @param {string} type The template type
49
- * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
50
- * @param {any} templateDictionary The template dictionary
51
- * @param {UserSession} authentication The destination session info
52
- * @returns Promise resolving to successfulness of update
53
- */
54
- export declare function postProcess(itemId: string, type: string, itemInfos: any[], template: common.IItemTemplate, templates: common.IItemTemplate[], templateDictionary: any, authentication: common.UserSession): Promise<common.IUpdateItemResponse>;
55
- export declare function _mostRecentlyEditedLayer(layerOrTableList: any[]): any;
@@ -1,203 +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 feature layers and services.
18
- *
19
- * @module feature-layer
20
- */
21
- //#region Imports ----------------------------------------------------------------------------------------------//
22
- import * as common from "@esri/solution-common";
23
- //#endregion
24
- //#region Publish Process --------------------------------------------------------------------------------------//
25
- /**
26
- * Fills in missing data, including full layer and table definitions, in a feature services' definition.
27
- *
28
- * @param itemInfo Feature service item
29
- * @param destAuthentication Credentials for requests to the destination organization
30
- * @param srcAuthentication Credentials for requests to source items
31
- * @param templateDictionary Hash mapping property names to replacement values
32
- * @returns A promise that will resolve when fullItem has been updated
33
- */
34
- export function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
35
- return new Promise((resolve, reject) => {
36
- // Init template
37
- const template = common.createInitializedItemTemplate(itemInfo);
38
- const hasInvalidDesignations = common.hasInvalidGroupDesignations(itemInfo.groupDesignations);
39
- if (hasInvalidDesignations) {
40
- common.updateTemplateForInvalidDesignations(template, srcAuthentication).then((_template) => resolve(_template), (e) => reject(common.fail(e)));
41
- }
42
- else {
43
- // Update the estimated cost factor to deploy this item
44
- template.estimatedDeploymentCostFactor = 10;
45
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
46
- common.getItemDataAsJson(template.item.id, srcAuthentication).then((data) => {
47
- template.data = data;
48
- common.getServiceLayersAndTables(template, srcAuthentication).then((itemTemplate) => {
49
- // Update item's modified date to the latest of its modified date and the last edit date
50
- // of each of its layers or tables
51
- itemTemplate.item.modified = Math.max(itemTemplate.item.modified, _mostRecentlyEditedLayer(template.properties.layers), _mostRecentlyEditedLayer(template.properties.tables));
52
- // Extract dependencies
53
- common.extractDependencies(itemTemplate, srcAuthentication).then((dependencies) => {
54
- // set the dependencies as an array of IDs from the array of IDependency
55
- itemTemplate.dependencies = dependencies.map((dep) => dep.id);
56
- // resolve the template with templatized values
57
- resolve(common.templatize(itemTemplate, dependencies, false, templateDictionary));
58
- }, (e) => reject(common.fail(e)));
59
- }, (e) => reject(common.fail(e)));
60
- });
61
- }
62
- });
63
- }
64
- //#endregion
65
- //#region Deploy Process ---------------------------------------------------------------------------------------//
66
- /**
67
- * Creates an item in a specified folder (except for Group item type).
68
- *
69
- * @param itemTemplate Item to be created; n.b.: this item is modified
70
- * @param folderId Id of folder to receive item; null indicates that the item goes into the root
71
- * folder; ignored for Group item type
72
- * @param settings Hash mapping property names to replacement values
73
- * @param authentication Credentials for the request
74
- * @returns A promise that will resolve with the id of the created item
75
- * @private
76
- */
77
- export function createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback) {
78
- return new Promise((resolve) => {
79
- // Interrupt process if progress callback returns `false`
80
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Started, 0)) {
81
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Ignored, 0);
82
- resolve(common.generateEmptyCreationResponse(template.type));
83
- return;
84
- }
85
- // Replace the templatized symbols in a copy of the template
86
- let newItemTemplate = common.cloneObject(template);
87
- newItemTemplate = common.replaceInTemplate(newItemTemplate, templateDictionary);
88
- // Thumbnail has to be updated separately; doesn't work in create service call
89
- delete newItemTemplate.item.thumbnail;
90
- // added for issue #928
91
- common.deleteProp(newItemTemplate, "properties.service.size");
92
- // cache the popup info to be added later
93
- const popupInfos = common.cachePopupInfos(newItemTemplate.data);
94
- // Create the item, then update its URL with its new id
95
- common.createFeatureService(newItemTemplate, destinationAuthentication, templateDictionary).then((createResponse) => {
96
- if (createResponse.success) {
97
- // Interrupt process if progress callback returns `false`
98
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Created, template.estimatedDeploymentCostFactor / 2, createResponse.serviceItemId)) {
99
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
100
- common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
101
- }
102
- else {
103
- // Detemplatize what we can now that the service has been created
104
- newItemTemplate = common.updateTemplate(newItemTemplate, templateDictionary, createResponse);
105
- // Add the layers and tables to the feature service
106
- common
107
- .addFeatureServiceLayersAndTables(newItemTemplate, templateDictionary, popupInfos, destinationAuthentication)
108
- .then(() => {
109
- newItemTemplate = common.updateTemplate(newItemTemplate, templateDictionary, createResponse);
110
- // Update the item with snippet, description, popupInfo, etc.
111
- common
112
- .updateItemExtended({
113
- ...newItemTemplate.item,
114
- url: undefined, // can't update the URL of a feature service
115
- }, newItemTemplate.data, destinationAuthentication, template.item.thumbnail, undefined, templateDictionary)
116
- .then(() => {
117
- // Interrupt process if progress callback returns `false`
118
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Finished, template.estimatedDeploymentCostFactor / 2, createResponse.serviceItemId)) {
119
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
120
- common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
121
- }
122
- else {
123
- // Update the template to match what we've stored in AGO
124
- common.getItemBase(newItemTemplate.itemId, destinationAuthentication).then((updatedItem) => {
125
- newItemTemplate.item = updatedItem;
126
- /* istanbul ignore else */
127
- if (common.getProp(newItemTemplate, "item.url") &&
128
- !newItemTemplate.item.url.endsWith("/")) {
129
- newItemTemplate.item.url += "/";
130
- }
131
- resolve({
132
- item: newItemTemplate,
133
- id: createResponse.serviceItemId,
134
- type: newItemTemplate.type,
135
- postProcess: common.hasUnresolvedVariables({
136
- item: newItemTemplate.item,
137
- data: newItemTemplate.data,
138
- }) || common.isWorkforceProject(newItemTemplate),
139
- });
140
- }, () => {
141
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
142
- common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
143
- });
144
- }
145
- }, () => {
146
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
147
- common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
148
- });
149
- }, () => {
150
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
151
- common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
152
- });
153
- }
154
- }
155
- else {
156
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
157
- resolve(common.generateEmptyCreationResponse(template.type)); // fails to create item
158
- }
159
- }, () => {
160
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
161
- resolve(common.generateEmptyCreationResponse(template.type)); // fails to create item
162
- });
163
- });
164
- }
165
- /**
166
- * Feature Layer post-processing actions
167
- *
168
- * @param {string} itemId The item ID
169
- * @param {string} type The template type
170
- * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
171
- * @param {any} templateDictionary The template dictionary
172
- * @param {UserSession} authentication The destination session info
173
- * @returns Promise resolving to successfulness of update
174
- */
175
- export function postProcess(itemId, type, itemInfos, template, templates, templateDictionary, authentication) {
176
- return new Promise((resolve, reject) => {
177
- common.updateItemTemplateFromDictionary(itemId, templateDictionary, authentication).then((results) => {
178
- if (common.isWorkforceProject(template)) {
179
- template = common.replaceInTemplate(template, templateDictionary);
180
- common
181
- .fineTuneCreatedWorkforceItem(template, authentication, template.item.url, templateDictionary)
182
- .then(resolve, reject);
183
- }
184
- else {
185
- resolve(results);
186
- }
187
- }, reject);
188
- });
189
- }
190
- //#endregion
191
- //#region Internal functions -----------------------------------------------------------------------------------------//
192
- //TODO: function doc
193
- export function _mostRecentlyEditedLayer(layerOrTableList) {
194
- let mostRecentlyEdited = 0;
195
- layerOrTableList.forEach((layer) => {
196
- mostRecentlyEdited = layer.editingInfo?.lastEditDate
197
- ? Math.max(mostRecentlyEdited, layer.editingInfo.lastEditDate)
198
- : mostRecentlyEdited;
199
- });
200
- return mostRecentlyEdited;
201
- }
202
- //#endregion
203
- //# sourceMappingURL=feature-layer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feature-layer.js","sourceRoot":"","sources":["../../src/feature-layer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;GAIG;AAEH,kHAAkH;AAElH,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAEhD,YAAY;AAEZ,kHAAkH;AAElH;;;;;;;;GAQG;AACH,MAAM,UAAU,qBAAqB,CACnC,QAAa,EACb,kBAAsC,EACtC,iBAAqC,EACrC,kBAAwB;IAExB,OAAO,IAAI,OAAO,CAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC3D,gBAAgB;QAChB,MAAM,QA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nG,IAAI,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE;gBACvC,QAAQ,GAAG,MAAM,CAAC,iBAAiB,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;gBAClE,MAAM;qBACH,4BAA4B,CAAC,QAAQ,EAAE,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,kBAAkB,CAAC;qBAC7F,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;aAC1B;iBAAM;gBACL,OAAO,CAAC,OAAO,CAAC,CAAC;aAClB;QACH,CAAC,EAAE,MAAM,CAAC,CAAC;IACb,CAAC,CAAC,CAAC;AACL,CAAC;AAED,YAAY;AAEZ,wHAAwH;AAExH,oBAAoB;AACpB,MAAM,UAAU,wBAAwB,CAAC,gBAAuB;IAC9D,IAAI,kBAAkB,GAAG,CAAC,CAAC;IAC3B,gBAAgB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACjC,kBAAkB,GAAG,KAAK,CAAC,WAAW,EAAE,YAAY;YAClD,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,KAAK,CAAC,WAAW,CAAC,YAAY,CAAC;YAC9D,CAAC,CAAC,kBAAkB,CAAC;IACzB,CAAC,CAAC,CAAC;IACH,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AAED,YAAY"}
@@ -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 feature layers and services.
18
- *
19
- * @module feature-layer
20
- */
21
- export * from "./feature-layer";
package/dist/esm/index.js DELETED
@@ -1,22 +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 feature layers and services.
18
- *
19
- * @module feature-layer
20
- */
21
- export * from "./feature-layer";
22
- //# 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,cAAc,iBAAiB,CAAC"}