@esri/solution-feature-layer 5.2.3 → 5.2.4
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/cjs/feature-layer.d.ts +55 -0
- package/dist/cjs/feature-layer.js +235 -0
- package/dist/cjs/feature-layer.js.map +1 -0
- package/dist/cjs/index.d.ts +21 -0
- package/dist/cjs/index.js +25 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/esm/package.json +3 -0
- package/package.json +3 -3
|
@@ -0,0 +1,55 @@
|
|
|
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;
|
|
@@ -0,0 +1,235 @@
|
|
|
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
|
|
45
|
+
.updateTemplateForInvalidDesignations(template, srcAuthentication)
|
|
46
|
+
.then(_template => resolve(_template), e => reject(common.fail(e)));
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
// Update the estimated cost factor to deploy this item
|
|
50
|
+
template.estimatedDeploymentCostFactor = 10;
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
52
|
+
common.getItemDataAsJson(template.item.id, srcAuthentication).then(data => {
|
|
53
|
+
template.data = data;
|
|
54
|
+
common.getServiceLayersAndTables(template, srcAuthentication).then(itemTemplate => {
|
|
55
|
+
// Update item's modified date to the latest of its modified date and the last edit date
|
|
56
|
+
// of each of its layers or tables
|
|
57
|
+
itemTemplate.item.modified =
|
|
58
|
+
Math.max(itemTemplate.item.modified, _mostRecentlyEditedLayer(template.properties.layers), _mostRecentlyEditedLayer(template.properties.tables));
|
|
59
|
+
// Extract dependencies
|
|
60
|
+
common.extractDependencies(itemTemplate, srcAuthentication).then((dependencies) => {
|
|
61
|
+
// set the dependencies as an array of IDs from the array of IDependency
|
|
62
|
+
itemTemplate.dependencies = dependencies.map((dep) => dep.id);
|
|
63
|
+
// resolve the template with templatized values
|
|
64
|
+
resolve(common.templatize(itemTemplate, dependencies, false, templateDictionary));
|
|
65
|
+
}, (e) => reject(common.fail(e)));
|
|
66
|
+
}, e => reject(common.fail(e)));
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
exports.convertItemToTemplate = convertItemToTemplate;
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region Deploy Process ---------------------------------------------------------------------------------------//
|
|
74
|
+
/**
|
|
75
|
+
* Creates an item in a specified folder (except for Group item type).
|
|
76
|
+
*
|
|
77
|
+
* @param itemTemplate Item to be created; n.b.: this item is modified
|
|
78
|
+
* @param folderId Id of folder to receive item; null indicates that the item goes into the root
|
|
79
|
+
* folder; ignored for Group item type
|
|
80
|
+
* @param settings Hash mapping property names to replacement values
|
|
81
|
+
* @param authentication Credentials for the request
|
|
82
|
+
* @returns A promise that will resolve with the id of the created item
|
|
83
|
+
* @private
|
|
84
|
+
*/
|
|
85
|
+
function createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback) {
|
|
86
|
+
return new Promise(resolve => {
|
|
87
|
+
// Interrupt process if progress callback returns `false`
|
|
88
|
+
if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Started, 0)) {
|
|
89
|
+
itemProgressCallback(template.itemId, common.EItemProgressStatus.Ignored, 0);
|
|
90
|
+
resolve(common.generateEmptyCreationResponse(template.type));
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
// Replace the templatized symbols in a copy of the template
|
|
94
|
+
let newItemTemplate = common.cloneObject(template);
|
|
95
|
+
newItemTemplate = common.replaceInTemplate(newItemTemplate, templateDictionary);
|
|
96
|
+
// Thumbnail has to be updated separately; doesn't work in create service call
|
|
97
|
+
delete newItemTemplate.item.thumbnail;
|
|
98
|
+
// added for issue #928
|
|
99
|
+
common.deleteProp(newItemTemplate, "properties.service.size");
|
|
100
|
+
// cache the popup info to be added later
|
|
101
|
+
const popupInfos = common.cachePopupInfos(newItemTemplate.data);
|
|
102
|
+
// Create the item, then update its URL with its new id
|
|
103
|
+
common
|
|
104
|
+
.createFeatureService(newItemTemplate, destinationAuthentication, templateDictionary)
|
|
105
|
+
.then(createResponse => {
|
|
106
|
+
if (createResponse.success) {
|
|
107
|
+
// Interrupt process if progress callback returns `false`
|
|
108
|
+
if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Created, template.estimatedDeploymentCostFactor / 2, createResponse.serviceItemId)) {
|
|
109
|
+
itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
|
|
110
|
+
common
|
|
111
|
+
.removeItem(createResponse.serviceItemId, destinationAuthentication)
|
|
112
|
+
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
// Detemplatize what we can now that the service has been created
|
|
116
|
+
newItemTemplate = common.updateTemplate(newItemTemplate, templateDictionary, createResponse);
|
|
117
|
+
// Add the layers and tables to the feature service
|
|
118
|
+
common
|
|
119
|
+
.addFeatureServiceLayersAndTables(newItemTemplate, templateDictionary, popupInfos, destinationAuthentication)
|
|
120
|
+
.then(() => {
|
|
121
|
+
newItemTemplate = common.updateTemplate(newItemTemplate, templateDictionary, createResponse);
|
|
122
|
+
// Update the item with snippet, description, popupInfo, etc.
|
|
123
|
+
common
|
|
124
|
+
.updateItemExtended({
|
|
125
|
+
...newItemTemplate.item,
|
|
126
|
+
url: undefined // can't update the URL of a feature service
|
|
127
|
+
}, newItemTemplate.data, destinationAuthentication, template.item.thumbnail, undefined, templateDictionary)
|
|
128
|
+
.then(() => {
|
|
129
|
+
// Interrupt process if progress callback returns `false`
|
|
130
|
+
if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Finished, template.estimatedDeploymentCostFactor / 2, createResponse.serviceItemId)) {
|
|
131
|
+
itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
|
|
132
|
+
common
|
|
133
|
+
.removeItem(createResponse.serviceItemId, destinationAuthentication)
|
|
134
|
+
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
// Update the template to match what we've stored in AGO
|
|
138
|
+
common
|
|
139
|
+
.getItemBase(newItemTemplate.itemId, destinationAuthentication)
|
|
140
|
+
.then(updatedItem => {
|
|
141
|
+
newItemTemplate.item = updatedItem;
|
|
142
|
+
/* istanbul ignore else */
|
|
143
|
+
if (common.getProp(newItemTemplate, "item.url") &&
|
|
144
|
+
!newItemTemplate.item.url.endsWith("/")) {
|
|
145
|
+
newItemTemplate.item.url += "/";
|
|
146
|
+
}
|
|
147
|
+
resolve({
|
|
148
|
+
item: newItemTemplate,
|
|
149
|
+
id: createResponse.serviceItemId,
|
|
150
|
+
type: newItemTemplate.type,
|
|
151
|
+
postProcess: common.hasUnresolvedVariables({
|
|
152
|
+
item: newItemTemplate.item,
|
|
153
|
+
data: newItemTemplate.data
|
|
154
|
+
}) ||
|
|
155
|
+
common.isWorkforceProject(newItemTemplate)
|
|
156
|
+
});
|
|
157
|
+
}, () => {
|
|
158
|
+
itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
|
|
159
|
+
common
|
|
160
|
+
.removeItem(createResponse.serviceItemId, destinationAuthentication)
|
|
161
|
+
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
162
|
+
} // fails to update item
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
}, () => {
|
|
166
|
+
itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
|
|
167
|
+
common
|
|
168
|
+
.removeItem(createResponse.serviceItemId, destinationAuthentication)
|
|
169
|
+
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
170
|
+
} // fails to update item
|
|
171
|
+
);
|
|
172
|
+
}, () => {
|
|
173
|
+
itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
|
|
174
|
+
common
|
|
175
|
+
.removeItem(createResponse.serviceItemId, destinationAuthentication)
|
|
176
|
+
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
177
|
+
} // fails to add service layers and/or tables
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
|
|
183
|
+
resolve(common.generateEmptyCreationResponse(template.type)); // fails to create item
|
|
184
|
+
}
|
|
185
|
+
}, () => {
|
|
186
|
+
itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
|
|
187
|
+
resolve(common.generateEmptyCreationResponse(template.type)); // fails to create item
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
exports.createItemFromTemplate = createItemFromTemplate;
|
|
192
|
+
/**
|
|
193
|
+
* Feature Layer post-processing actions
|
|
194
|
+
*
|
|
195
|
+
* @param {string} itemId The item ID
|
|
196
|
+
* @param {string} type The template type
|
|
197
|
+
* @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
|
|
198
|
+
* @param {any} templateDictionary The template dictionary
|
|
199
|
+
* @param {UserSession} authentication The destination session info
|
|
200
|
+
* @returns Promise resolving to successfulness of update
|
|
201
|
+
*/
|
|
202
|
+
function postProcess(itemId, type, itemInfos, template, templates, templateDictionary, authentication) {
|
|
203
|
+
return new Promise((resolve, reject) => {
|
|
204
|
+
common
|
|
205
|
+
.updateItemTemplateFromDictionary(itemId, templateDictionary, authentication)
|
|
206
|
+
.then(results => {
|
|
207
|
+
if (common.isWorkforceProject(template)) {
|
|
208
|
+
template = common.replaceInTemplate(template, templateDictionary);
|
|
209
|
+
common
|
|
210
|
+
.fineTuneCreatedWorkforceItem(template, authentication, template.item.url, templateDictionary)
|
|
211
|
+
.then(resolve, reject);
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
resolve(results);
|
|
215
|
+
}
|
|
216
|
+
}, reject);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
exports.postProcess = postProcess;
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region Internal functions -----------------------------------------------------------------------------------------//
|
|
222
|
+
//TODO: function doc
|
|
223
|
+
function _mostRecentlyEditedLayer(layerOrTableList) {
|
|
224
|
+
let mostRecentlyEdited = 0;
|
|
225
|
+
layerOrTableList.forEach((layer) => {
|
|
226
|
+
mostRecentlyEdited =
|
|
227
|
+
layer.editingInfo?.lastEditDate ?
|
|
228
|
+
Math.max(mostRecentlyEdited, layer.editingInfo.lastEditDate) :
|
|
229
|
+
mostRecentlyEdited;
|
|
230
|
+
});
|
|
231
|
+
return mostRecentlyEdited;
|
|
232
|
+
}
|
|
233
|
+
exports._mostRecentlyEditedLayer = _mostRecentlyEditedLayer;
|
|
234
|
+
//#endregion
|
|
235
|
+
//# sourceMappingURL=feature-layer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,CACzE,QAAQ,CACT,CAAC;QAEF,MAAM,sBAAsB,GAAY,MAAM,CAAC,2BAA2B,CACxE,QAAQ,CAAC,iBAAiB,CAC3B,CAAC;QACF,IAAI,sBAAsB,EAAE;YAC1B,MAAM;iBACH,oCAAoC,CAAC,QAAQ,EAAE,iBAAiB,CAAC;iBACjE,IAAI,CACH,SAAS,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,EAC/B,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAC5B,CAAC;SACL;aAAM;YACL,uDAAuD;YACvD,QAAQ,CAAC,6BAA6B,GAAG,EAAE,CAAC;YAE5C,mEAAmE;YACnE,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACxE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;gBACrB,MAAM,CAAC,yBAAyB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,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kB,CAAC;AAC5B,CAAC;AAbD,4DAaC;AAED,YAAY"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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";
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH;;;;GAIG;AAEH,0DAAgC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/solution-feature-layer",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.4",
|
|
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",
|
|
@@ -27,7 +27,7 @@
|
|
|
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.
|
|
30
|
+
"@esri/solution-common": "^5.2.4",
|
|
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": "
|
|
91
|
+
"gitHead": "c3329c6814c1d7b898eb130bf3a7feeda12f074f"
|
|
92
92
|
}
|