@esri/solution-feature-layer 5.5.0 → 5.6.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.
|
@@ -41,21 +41,18 @@ function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication,
|
|
|
41
41
|
const template = common.createInitializedItemTemplate(itemInfo);
|
|
42
42
|
const hasInvalidDesignations = common.hasInvalidGroupDesignations(itemInfo.groupDesignations);
|
|
43
43
|
if (hasInvalidDesignations) {
|
|
44
|
-
common
|
|
45
|
-
.updateTemplateForInvalidDesignations(template, srcAuthentication)
|
|
46
|
-
.then(_template => resolve(_template), e => reject(common.fail(e)));
|
|
44
|
+
common.updateTemplateForInvalidDesignations(template, srcAuthentication).then((_template) => resolve(_template), (e) => reject(common.fail(e)));
|
|
47
45
|
}
|
|
48
46
|
else {
|
|
49
47
|
// Update the estimated cost factor to deploy this item
|
|
50
48
|
template.estimatedDeploymentCostFactor = 10;
|
|
51
49
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
52
|
-
common.getItemDataAsJson(template.item.id, srcAuthentication).then(data => {
|
|
50
|
+
common.getItemDataAsJson(template.item.id, srcAuthentication).then((data) => {
|
|
53
51
|
template.data = data;
|
|
54
|
-
common.getServiceLayersAndTables(template, srcAuthentication).then(itemTemplate => {
|
|
52
|
+
common.getServiceLayersAndTables(template, srcAuthentication).then((itemTemplate) => {
|
|
55
53
|
// Update item's modified date to the latest of its modified date and the last edit date
|
|
56
54
|
// 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));
|
|
55
|
+
itemTemplate.item.modified = Math.max(itemTemplate.item.modified, _mostRecentlyEditedLayer(template.properties.layers), _mostRecentlyEditedLayer(template.properties.tables));
|
|
59
56
|
// Extract dependencies
|
|
60
57
|
common.extractDependencies(itemTemplate, srcAuthentication).then((dependencies) => {
|
|
61
58
|
// set the dependencies as an array of IDs from the array of IDependency
|
|
@@ -63,7 +60,7 @@ function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication,
|
|
|
63
60
|
// resolve the template with templatized values
|
|
64
61
|
resolve(common.templatize(itemTemplate, dependencies, false, templateDictionary));
|
|
65
62
|
}, (e) => reject(common.fail(e)));
|
|
66
|
-
}, e => reject(common.fail(e)));
|
|
63
|
+
}, (e) => reject(common.fail(e)));
|
|
67
64
|
});
|
|
68
65
|
}
|
|
69
66
|
});
|
|
@@ -83,7 +80,7 @@ exports.convertItemToTemplate = convertItemToTemplate;
|
|
|
83
80
|
* @private
|
|
84
81
|
*/
|
|
85
82
|
function createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback) {
|
|
86
|
-
return new Promise(resolve => {
|
|
83
|
+
return new Promise((resolve) => {
|
|
87
84
|
// Interrupt process if progress callback returns `false`
|
|
88
85
|
if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Started, 0)) {
|
|
89
86
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Ignored, 0);
|
|
@@ -100,16 +97,12 @@ function createItemFromTemplate(template, templateDictionary, destinationAuthent
|
|
|
100
97
|
// cache the popup info to be added later
|
|
101
98
|
const popupInfos = common.cachePopupInfos(newItemTemplate.data);
|
|
102
99
|
// Create the item, then update its URL with its new id
|
|
103
|
-
common
|
|
104
|
-
.createFeatureService(newItemTemplate, destinationAuthentication, templateDictionary)
|
|
105
|
-
.then(createResponse => {
|
|
100
|
+
common.createFeatureService(newItemTemplate, destinationAuthentication, templateDictionary).then((createResponse) => {
|
|
106
101
|
if (createResponse.success) {
|
|
107
102
|
// Interrupt process if progress callback returns `false`
|
|
108
103
|
if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Created, template.estimatedDeploymentCostFactor / 2, createResponse.serviceItemId)) {
|
|
109
104
|
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)));
|
|
105
|
+
common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
113
106
|
}
|
|
114
107
|
else {
|
|
115
108
|
// Detemplatize what we can now that the service has been created
|
|
@@ -123,21 +116,17 @@ function createItemFromTemplate(template, templateDictionary, destinationAuthent
|
|
|
123
116
|
common
|
|
124
117
|
.updateItemExtended({
|
|
125
118
|
...newItemTemplate.item,
|
|
126
|
-
url: undefined // can't update the URL of a feature service
|
|
119
|
+
url: undefined, // can't update the URL of a feature service
|
|
127
120
|
}, newItemTemplate.data, destinationAuthentication, template.item.thumbnail, undefined, templateDictionary)
|
|
128
121
|
.then(() => {
|
|
129
122
|
// Interrupt process if progress callback returns `false`
|
|
130
123
|
if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Finished, template.estimatedDeploymentCostFactor / 2, createResponse.serviceItemId)) {
|
|
131
124
|
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)));
|
|
125
|
+
common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
135
126
|
}
|
|
136
127
|
else {
|
|
137
128
|
// Update the template to match what we've stored in AGO
|
|
138
|
-
common
|
|
139
|
-
.getItemBase(newItemTemplate.itemId, destinationAuthentication)
|
|
140
|
-
.then(updatedItem => {
|
|
129
|
+
common.getItemBase(newItemTemplate.itemId, destinationAuthentication).then((updatedItem) => {
|
|
141
130
|
newItemTemplate.item = updatedItem;
|
|
142
131
|
/* istanbul ignore else */
|
|
143
132
|
if (common.getProp(newItemTemplate, "item.url") &&
|
|
@@ -150,32 +139,22 @@ function createItemFromTemplate(template, templateDictionary, destinationAuthent
|
|
|
150
139
|
type: newItemTemplate.type,
|
|
151
140
|
postProcess: common.hasUnresolvedVariables({
|
|
152
141
|
item: newItemTemplate.item,
|
|
153
|
-
data: newItemTemplate.data
|
|
154
|
-
}) ||
|
|
155
|
-
common.isWorkforceProject(newItemTemplate)
|
|
142
|
+
data: newItemTemplate.data,
|
|
143
|
+
}) || common.isWorkforceProject(newItemTemplate),
|
|
156
144
|
});
|
|
157
145
|
}, () => {
|
|
158
146
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
|
|
159
|
-
common
|
|
160
|
-
|
|
161
|
-
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
162
|
-
} // fails to update item
|
|
163
|
-
);
|
|
147
|
+
common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
148
|
+
});
|
|
164
149
|
}
|
|
165
150
|
}, () => {
|
|
166
151
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
|
|
167
|
-
common
|
|
168
|
-
|
|
169
|
-
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
170
|
-
} // fails to update item
|
|
171
|
-
);
|
|
152
|
+
common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
153
|
+
});
|
|
172
154
|
}, () => {
|
|
173
155
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
|
|
174
|
-
common
|
|
175
|
-
|
|
176
|
-
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
177
|
-
} // fails to add service layers and/or tables
|
|
178
|
-
);
|
|
156
|
+
common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
157
|
+
});
|
|
179
158
|
}
|
|
180
159
|
}
|
|
181
160
|
else {
|
|
@@ -201,9 +180,7 @@ exports.createItemFromTemplate = createItemFromTemplate;
|
|
|
201
180
|
*/
|
|
202
181
|
function postProcess(itemId, type, itemInfos, template, templates, templateDictionary, authentication) {
|
|
203
182
|
return new Promise((resolve, reject) => {
|
|
204
|
-
common
|
|
205
|
-
.updateItemTemplateFromDictionary(itemId, templateDictionary, authentication)
|
|
206
|
-
.then(results => {
|
|
183
|
+
common.updateItemTemplateFromDictionary(itemId, templateDictionary, authentication).then((results) => {
|
|
207
184
|
if (common.isWorkforceProject(template)) {
|
|
208
185
|
template = common.replaceInTemplate(template, templateDictionary);
|
|
209
186
|
common
|
|
@@ -223,10 +200,9 @@ exports.postProcess = postProcess;
|
|
|
223
200
|
function _mostRecentlyEditedLayer(layerOrTableList) {
|
|
224
201
|
let mostRecentlyEdited = 0;
|
|
225
202
|
layerOrTableList.forEach((layer) => {
|
|
226
|
-
mostRecentlyEdited =
|
|
227
|
-
layer.editingInfo
|
|
228
|
-
|
|
229
|
-
mostRecentlyEdited;
|
|
203
|
+
mostRecentlyEdited = layer.editingInfo?.lastEditDate
|
|
204
|
+
? Math.max(mostRecentlyEdited, layer.editingInfo.lastEditDate)
|
|
205
|
+
: mostRecentlyEdited;
|
|
230
206
|
});
|
|
231
207
|
return mostRecentlyEdited;
|
|
232
208
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-layer.js","sourceRoot":"","sources":["../../src/feature-layer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH;;;;GAIG;AAEH,kHAAk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BAAgB,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"}
|
|
@@ -37,21 +37,18 @@ export function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentic
|
|
|
37
37
|
const template = common.createInitializedItemTemplate(itemInfo);
|
|
38
38
|
const hasInvalidDesignations = common.hasInvalidGroupDesignations(itemInfo.groupDesignations);
|
|
39
39
|
if (hasInvalidDesignations) {
|
|
40
|
-
common
|
|
41
|
-
.updateTemplateForInvalidDesignations(template, srcAuthentication)
|
|
42
|
-
.then(_template => resolve(_template), e => reject(common.fail(e)));
|
|
40
|
+
common.updateTemplateForInvalidDesignations(template, srcAuthentication).then((_template) => resolve(_template), (e) => reject(common.fail(e)));
|
|
43
41
|
}
|
|
44
42
|
else {
|
|
45
43
|
// Update the estimated cost factor to deploy this item
|
|
46
44
|
template.estimatedDeploymentCostFactor = 10;
|
|
47
45
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
48
|
-
common.getItemDataAsJson(template.item.id, srcAuthentication).then(data => {
|
|
46
|
+
common.getItemDataAsJson(template.item.id, srcAuthentication).then((data) => {
|
|
49
47
|
template.data = data;
|
|
50
|
-
common.getServiceLayersAndTables(template, srcAuthentication).then(itemTemplate => {
|
|
48
|
+
common.getServiceLayersAndTables(template, srcAuthentication).then((itemTemplate) => {
|
|
51
49
|
// Update item's modified date to the latest of its modified date and the last edit date
|
|
52
50
|
// of each of its layers or tables
|
|
53
|
-
itemTemplate.item.modified =
|
|
54
|
-
Math.max(itemTemplate.item.modified, _mostRecentlyEditedLayer(template.properties.layers), _mostRecentlyEditedLayer(template.properties.tables));
|
|
51
|
+
itemTemplate.item.modified = Math.max(itemTemplate.item.modified, _mostRecentlyEditedLayer(template.properties.layers), _mostRecentlyEditedLayer(template.properties.tables));
|
|
55
52
|
// Extract dependencies
|
|
56
53
|
common.extractDependencies(itemTemplate, srcAuthentication).then((dependencies) => {
|
|
57
54
|
// set the dependencies as an array of IDs from the array of IDependency
|
|
@@ -59,7 +56,7 @@ export function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentic
|
|
|
59
56
|
// resolve the template with templatized values
|
|
60
57
|
resolve(common.templatize(itemTemplate, dependencies, false, templateDictionary));
|
|
61
58
|
}, (e) => reject(common.fail(e)));
|
|
62
|
-
}, e => reject(common.fail(e)));
|
|
59
|
+
}, (e) => reject(common.fail(e)));
|
|
63
60
|
});
|
|
64
61
|
}
|
|
65
62
|
});
|
|
@@ -78,7 +75,7 @@ export function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentic
|
|
|
78
75
|
* @private
|
|
79
76
|
*/
|
|
80
77
|
export function createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback) {
|
|
81
|
-
return new Promise(resolve => {
|
|
78
|
+
return new Promise((resolve) => {
|
|
82
79
|
// Interrupt process if progress callback returns `false`
|
|
83
80
|
if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Started, 0)) {
|
|
84
81
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Ignored, 0);
|
|
@@ -95,16 +92,12 @@ export function createItemFromTemplate(template, templateDictionary, destination
|
|
|
95
92
|
// cache the popup info to be added later
|
|
96
93
|
const popupInfos = common.cachePopupInfos(newItemTemplate.data);
|
|
97
94
|
// Create the item, then update its URL with its new id
|
|
98
|
-
common
|
|
99
|
-
.createFeatureService(newItemTemplate, destinationAuthentication, templateDictionary)
|
|
100
|
-
.then(createResponse => {
|
|
95
|
+
common.createFeatureService(newItemTemplate, destinationAuthentication, templateDictionary).then((createResponse) => {
|
|
101
96
|
if (createResponse.success) {
|
|
102
97
|
// Interrupt process if progress callback returns `false`
|
|
103
98
|
if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Created, template.estimatedDeploymentCostFactor / 2, createResponse.serviceItemId)) {
|
|
104
99
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
|
|
105
|
-
common
|
|
106
|
-
.removeItem(createResponse.serviceItemId, destinationAuthentication)
|
|
107
|
-
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
100
|
+
common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
108
101
|
}
|
|
109
102
|
else {
|
|
110
103
|
// Detemplatize what we can now that the service has been created
|
|
@@ -118,21 +111,17 @@ export function createItemFromTemplate(template, templateDictionary, destination
|
|
|
118
111
|
common
|
|
119
112
|
.updateItemExtended({
|
|
120
113
|
...newItemTemplate.item,
|
|
121
|
-
url: undefined // can't update the URL of a feature service
|
|
114
|
+
url: undefined, // can't update the URL of a feature service
|
|
122
115
|
}, newItemTemplate.data, destinationAuthentication, template.item.thumbnail, undefined, templateDictionary)
|
|
123
116
|
.then(() => {
|
|
124
117
|
// Interrupt process if progress callback returns `false`
|
|
125
118
|
if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Finished, template.estimatedDeploymentCostFactor / 2, createResponse.serviceItemId)) {
|
|
126
119
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
|
|
127
|
-
common
|
|
128
|
-
.removeItem(createResponse.serviceItemId, destinationAuthentication)
|
|
129
|
-
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
120
|
+
common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
130
121
|
}
|
|
131
122
|
else {
|
|
132
123
|
// Update the template to match what we've stored in AGO
|
|
133
|
-
common
|
|
134
|
-
.getItemBase(newItemTemplate.itemId, destinationAuthentication)
|
|
135
|
-
.then(updatedItem => {
|
|
124
|
+
common.getItemBase(newItemTemplate.itemId, destinationAuthentication).then((updatedItem) => {
|
|
136
125
|
newItemTemplate.item = updatedItem;
|
|
137
126
|
/* istanbul ignore else */
|
|
138
127
|
if (common.getProp(newItemTemplate, "item.url") &&
|
|
@@ -145,32 +134,22 @@ export function createItemFromTemplate(template, templateDictionary, destination
|
|
|
145
134
|
type: newItemTemplate.type,
|
|
146
135
|
postProcess: common.hasUnresolvedVariables({
|
|
147
136
|
item: newItemTemplate.item,
|
|
148
|
-
data: newItemTemplate.data
|
|
149
|
-
}) ||
|
|
150
|
-
common.isWorkforceProject(newItemTemplate)
|
|
137
|
+
data: newItemTemplate.data,
|
|
138
|
+
}) || common.isWorkforceProject(newItemTemplate),
|
|
151
139
|
});
|
|
152
140
|
}, () => {
|
|
153
141
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
|
|
154
|
-
common
|
|
155
|
-
|
|
156
|
-
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
157
|
-
} // fails to update item
|
|
158
|
-
);
|
|
142
|
+
common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
143
|
+
});
|
|
159
144
|
}
|
|
160
145
|
}, () => {
|
|
161
146
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
|
|
162
|
-
common
|
|
163
|
-
|
|
164
|
-
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
165
|
-
} // fails to update item
|
|
166
|
-
);
|
|
147
|
+
common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
148
|
+
});
|
|
167
149
|
}, () => {
|
|
168
150
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
|
|
169
|
-
common
|
|
170
|
-
|
|
171
|
-
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
172
|
-
} // fails to add service layers and/or tables
|
|
173
|
-
);
|
|
151
|
+
common.removeItem(createResponse.serviceItemId, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
152
|
+
});
|
|
174
153
|
}
|
|
175
154
|
}
|
|
176
155
|
else {
|
|
@@ -195,9 +174,7 @@ export function createItemFromTemplate(template, templateDictionary, destination
|
|
|
195
174
|
*/
|
|
196
175
|
export function postProcess(itemId, type, itemInfos, template, templates, templateDictionary, authentication) {
|
|
197
176
|
return new Promise((resolve, reject) => {
|
|
198
|
-
common
|
|
199
|
-
.updateItemTemplateFromDictionary(itemId, templateDictionary, authentication)
|
|
200
|
-
.then(results => {
|
|
177
|
+
common.updateItemTemplateFromDictionary(itemId, templateDictionary, authentication).then((results) => {
|
|
201
178
|
if (common.isWorkforceProject(template)) {
|
|
202
179
|
template = common.replaceInTemplate(template, templateDictionary);
|
|
203
180
|
common
|
|
@@ -216,10 +193,9 @@ export function postProcess(itemId, type, itemInfos, template, templates, templa
|
|
|
216
193
|
export function _mostRecentlyEditedLayer(layerOrTableList) {
|
|
217
194
|
let mostRecentlyEdited = 0;
|
|
218
195
|
layerOrTableList.forEach((layer) => {
|
|
219
|
-
mostRecentlyEdited =
|
|
220
|
-
layer.editingInfo
|
|
221
|
-
|
|
222
|
-
mostRecentlyEdited;
|
|
196
|
+
mostRecentlyEdited = layer.editingInfo?.lastEditDate
|
|
197
|
+
? Math.max(mostRecentlyEdited, layer.editingInfo.lastEditDate)
|
|
198
|
+
: mostRecentlyEdited;
|
|
223
199
|
});
|
|
224
200
|
return mostRecentlyEdited;
|
|
225
201
|
}
|
|
@@ -1 +1 @@
|
|
|
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,QAAQ,GAAyB,MAAM,CAAC,6BAA6B,
|
|
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,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,CAA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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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/solution-feature-layer",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
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",
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
"dist/**"
|
|
19
19
|
],
|
|
20
20
|
"devDependencies": {
|
|
21
|
+
"@types/jasmine": "^5.1.4",
|
|
22
|
+
"jasmine": "^5.2.0",
|
|
23
|
+
"jasmine-core": "^5.2.0",
|
|
24
|
+
"npm-check-updates": "^16.14.20"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
21
27
|
"@esri/arcgis-rest-auth": "^3.7.0",
|
|
22
28
|
"@esri/arcgis-rest-feature-layer": "^3.7.0",
|
|
23
29
|
"@esri/arcgis-rest-portal": "^3.7.0",
|
|
@@ -27,14 +33,7 @@
|
|
|
27
33
|
"@esri/hub-initiatives": "^14.0.0",
|
|
28
34
|
"@esri/hub-sites": "^15.0.0",
|
|
29
35
|
"@esri/hub-teams": "^14.1.1",
|
|
30
|
-
"@esri/solution-common": "^5.
|
|
31
|
-
"@types/jasmine": "^5.1.4",
|
|
32
|
-
"fetch-mock": "^7.7.3",
|
|
33
|
-
"jasmine": "^5.1.0",
|
|
34
|
-
"jasmine-core": "^5.1.2",
|
|
35
|
-
"npm-check-updates": "^16.14.20"
|
|
36
|
-
},
|
|
37
|
-
"dependencies": {
|
|
36
|
+
"@esri/solution-common": "^5.6.0",
|
|
38
37
|
"tslib": "1.14.1"
|
|
39
38
|
},
|
|
40
39
|
"scripts": {
|
|
@@ -88,5 +87,5 @@
|
|
|
88
87
|
"esri",
|
|
89
88
|
"ES6"
|
|
90
89
|
],
|
|
91
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "c6d0e558d919035883389ee28e15ea6e2fc07201"
|
|
92
91
|
}
|