@esri/solution-workflow 5.2.1 → 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/README.md +3 -6
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/{workflow/src/workflow.d.ts → workflow.d.ts} +12 -3
- package/dist/esm/workflow.js +112 -0
- package/dist/esm/workflow.js.map +1 -0
- package/package.json +3 -3
- package/dist/cjs/common/src/generalHelpers.d.ts +0 -400
- package/dist/cjs/common/src/generalHelpers.js +0 -877
- package/dist/cjs/common/src/generalHelpers.js.map +0 -1
- package/dist/cjs/common/src/getItemTypeAbbrev.d.ts +0 -19
- package/dist/cjs/common/src/getItemTypeAbbrev.js +0 -186
- package/dist/cjs/common/src/getItemTypeAbbrev.js.map +0 -1
- package/dist/cjs/common/src/interfaces.d.ts +0 -1344
- package/dist/cjs/common/src/interfaces.js +0 -77
- package/dist/cjs/common/src/interfaces.js.map +0 -1
- package/dist/cjs/common/src/libConnectors.d.ts +0 -73
- package/dist/cjs/common/src/libConnectors.js +0 -115
- package/dist/cjs/common/src/libConnectors.js.map +0 -1
- package/dist/cjs/common/test/mocks/templates.d.ts +0 -71
- package/dist/cjs/common/test/mocks/templates.js +0 -1220
- package/dist/cjs/common/test/mocks/templates.js.map +0 -1
- package/dist/cjs/common/test/mocks/utils.d.ts +0 -605
- package/dist/cjs/common/test/mocks/utils.js +0 -1222
- package/dist/cjs/common/test/mocks/utils.js.map +0 -1
- package/dist/cjs/workflow/src/index.js +0 -25
- package/dist/cjs/workflow/src/index.js.map +0 -1
- package/dist/cjs/workflow/src/workflow.d.ts +0 -32
- package/dist/cjs/workflow/src/workflow.js +0 -51
- package/dist/cjs/workflow/src/workflow.js.map +0 -1
- package/dist/esm/common/src/generalHelpers.d.ts +0 -400
- package/dist/esm/common/src/generalHelpers.js +0 -829
- package/dist/esm/common/src/generalHelpers.js.map +0 -1
- package/dist/esm/common/src/getItemTypeAbbrev.d.ts +0 -19
- package/dist/esm/common/src/getItemTypeAbbrev.js +0 -182
- package/dist/esm/common/src/getItemTypeAbbrev.js.map +0 -1
- package/dist/esm/common/src/interfaces.d.ts +0 -1344
- package/dist/esm/common/src/interfaces.js +0 -72
- package/dist/esm/common/src/interfaces.js.map +0 -1
- package/dist/esm/common/src/libConnectors.d.ts +0 -73
- package/dist/esm/common/src/libConnectors.js +0 -105
- package/dist/esm/common/src/libConnectors.js.map +0 -1
- package/dist/esm/common/test/mocks/templates.d.ts +0 -71
- package/dist/esm/common/test/mocks/templates.js +0 -1195
- package/dist/esm/common/test/mocks/templates.js.map +0 -1
- package/dist/esm/common/test/mocks/utils.d.ts +0 -605
- package/dist/esm/common/test/mocks/utils.js +0 -1177
- package/dist/esm/common/test/mocks/utils.js.map +0 -1
- package/dist/esm/workflow/src/index.d.ts +0 -21
- package/dist/esm/workflow/src/index.js.map +0 -1
- package/dist/esm/workflow/src/workflow.js +0 -45
- package/dist/esm/workflow/src/workflow.js.map +0 -1
- /package/dist/{cjs/workflow/src → esm}/index.d.ts +0 -0
- /package/dist/esm/{workflow/src/index.js → index.js} +0 -0
|
@@ -1,1222 +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.returnOnNthCall = exports.getCreateServiceResponse = exports.getSearchResponse = exports.getGroupResponse = exports.getContentUser = exports.getUserResponse = exports.getPortalsSelfResponse = exports.setMockDateTime = exports.removeNameField = exports.removeItemFcns = exports.jsonClone = exports.createRuntimeMockUserSession = exports.createMockSettings = exports.checkForArcgisRestSuccessRequestError = exports.getShareResponse = exports.getSuccessResponse = exports.getFailureResponse = exports.getCreateGroupResponse = exports.getCreateFolderResponse = exports.getProjectResponse = exports.getTransformationsResponse = exports.getTokenResponse = exports.getSampleZipFile = exports.getSampleZip = exports.getSampleTextAsFile = exports.getSampleTextAsBlob = exports.getSampleQCProjectJsonFile = exports.getSampleQCJsonData = exports.getSampleJsonAsFile = exports.getSampleJsonAsBlob = exports.getSampleJson = exports.getSampleImageAsFile = exports.getSampleImageAsBlob = exports.xmlToBlob = exports.jsonToBlob = exports.getSampleMetadataAsFile = exports.getSampleMetadataAsBlob = exports.getSampleGroupToAdd = exports.createFailingItemProgressCallbackOnNthCall = exports.SOLUTION_PROGRESS_CALLBACK = exports.ITEM_PROGRESS_CALLBACK = exports.PORTAL_SUBSET = exports.UTILITY_SERVER_INFO = exports.SERVER_INFO = exports.ArcgisRestSuccessFailStruct = exports.ArcgisRestSuccessFailSimple = exports.YESTERDAY = exports.TOMORROW = exports.PORTAL_URL = exports.ORG_URL = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const interfaces = tslib_1.__importStar(require("../../src/interfaces"));
|
|
21
|
-
const generalHelpers = tslib_1.__importStar(require("../../src/generalHelpers"));
|
|
22
|
-
// -------------------------------------------------------------------------------------------------------------------//
|
|
23
|
-
exports.ORG_URL = "https://myorg.maps.arcgis.com";
|
|
24
|
-
exports.PORTAL_URL = "https://myorg.maps.arcgis.com";
|
|
25
|
-
exports.TOMORROW = (function () {
|
|
26
|
-
const now = new Date();
|
|
27
|
-
now.setDate(now.getDate() + 1);
|
|
28
|
-
return now;
|
|
29
|
-
})();
|
|
30
|
-
exports.YESTERDAY = (function () {
|
|
31
|
-
const now = new Date();
|
|
32
|
-
now.setDate(now.getDate() - 1);
|
|
33
|
-
return now;
|
|
34
|
-
})();
|
|
35
|
-
exports.ArcgisRestSuccessFailSimple = {
|
|
36
|
-
success: false
|
|
37
|
-
};
|
|
38
|
-
exports.ArcgisRestSuccessFailStruct = {
|
|
39
|
-
success: false,
|
|
40
|
-
error: {
|
|
41
|
-
success: false
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
exports.SERVER_INFO = {
|
|
45
|
-
currentVersion: 10.71,
|
|
46
|
-
fullVersion: "10.7.1",
|
|
47
|
-
soapUrl: "http://server/arcgis/services",
|
|
48
|
-
secureSoapUrl: "https://server/arcgis/services",
|
|
49
|
-
owningSystemUrl: exports.PORTAL_URL,
|
|
50
|
-
authInfo: {}
|
|
51
|
-
};
|
|
52
|
-
exports.UTILITY_SERVER_INFO = {
|
|
53
|
-
currentVersion: 10.71,
|
|
54
|
-
fullVersion: "10.7.1",
|
|
55
|
-
soapUrl: "https://utility.arcgisonline.com/arcgis/services",
|
|
56
|
-
secureSoapUrl: "https://utility.arcgisonline.com/arcgis/services",
|
|
57
|
-
authInfo: {
|
|
58
|
-
isTokenBasedSecurity: true,
|
|
59
|
-
tokenServicesUrl: "https://utility.arcgisonline.com/arcgis/tokens/",
|
|
60
|
-
shortLivedTokenValidity: 60
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
exports.PORTAL_SUBSET = {
|
|
64
|
-
name: "Deployment Test",
|
|
65
|
-
id: "abCDefG123456",
|
|
66
|
-
restUrl: exports.PORTAL_URL + "/sharing/rest",
|
|
67
|
-
portalUrl: exports.PORTAL_URL,
|
|
68
|
-
urlKey: "deploymentTest"
|
|
69
|
-
};
|
|
70
|
-
const ITEM_PROGRESS_CALLBACK = function (
|
|
71
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
72
|
-
itemId,
|
|
73
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
74
|
-
status,
|
|
75
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
76
|
-
costUsed,
|
|
77
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
78
|
-
createdItemId // supplied when status is EItemProgressStatus.Created or .Finished
|
|
79
|
-
) {
|
|
80
|
-
return true;
|
|
81
|
-
};
|
|
82
|
-
exports.ITEM_PROGRESS_CALLBACK = ITEM_PROGRESS_CALLBACK;
|
|
83
|
-
const SOLUTION_PROGRESS_CALLBACK = function (
|
|
84
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
85
|
-
percentDone,
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
87
|
-
jobId,
|
|
88
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
89
|
-
progressEvent) { };
|
|
90
|
-
exports.SOLUTION_PROGRESS_CALLBACK = SOLUTION_PROGRESS_CALLBACK;
|
|
91
|
-
/**
|
|
92
|
-
* Provides a successful progress callback until the nth call.
|
|
93
|
-
*
|
|
94
|
-
* @param callToFailOn 1-based call to fail on; before this call, function returns true
|
|
95
|
-
* @return Callback function that tracks calls and fails when specified
|
|
96
|
-
*/
|
|
97
|
-
function createFailingItemProgressCallbackOnNthCall(callToFailOn) {
|
|
98
|
-
let numCalls = 0;
|
|
99
|
-
return function () {
|
|
100
|
-
return callToFailOn !== ++numCalls;
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
exports.createFailingItemProgressCallbackOnNthCall = createFailingItemProgressCallbackOnNthCall;
|
|
104
|
-
function getSampleGroupToAdd(title) {
|
|
105
|
-
return {
|
|
106
|
-
title: title,
|
|
107
|
-
access: "private",
|
|
108
|
-
owner: "casey",
|
|
109
|
-
tags: ["test"],
|
|
110
|
-
description: "",
|
|
111
|
-
thumbnail: null,
|
|
112
|
-
snippet: ""
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
exports.getSampleGroupToAdd = getSampleGroupToAdd;
|
|
116
|
-
function getSampleMetadataAsBlob(mimeType = "text/xml") {
|
|
117
|
-
const xml = `<?xml version="1.0" encoding="UTF-8" standalone="no"?><metadata xml:lang="en">
|
|
118
|
-
<dataIdInfo>
|
|
119
|
-
<idCitation>
|
|
120
|
-
<resTitle>Map with metadata</resTitle>
|
|
121
|
-
</idCitation>
|
|
122
|
-
<dataChar>
|
|
123
|
-
<CharSetCd value="004"/>
|
|
124
|
-
</dataChar>
|
|
125
|
-
<searchKeys>
|
|
126
|
-
<keyword>test</keyword></searchKeys>
|
|
127
|
-
</dataIdInfo>
|
|
128
|
-
<Esri>
|
|
129
|
-
<ArcGISstyle>ISO 19139 Metadata Implementation Specification GML3.2</ArcGISstyle>
|
|
130
|
-
<CreaDate>2019-06-17</CreaDate>
|
|
131
|
-
<CreaTime>15:06:36.83</CreaTime>
|
|
132
|
-
<ModDate>2019-09-16</ModDate>
|
|
133
|
-
<ModTime>12:41:35.43</ModTime>
|
|
134
|
-
<ArcGISFormat>1.0</ArcGISFormat>
|
|
135
|
-
<ArcGISProfile>ISO19139</ArcGISProfile>
|
|
136
|
-
<PublishStatus>editor:esri.dijit.metadata.editor</PublishStatus>
|
|
137
|
-
</Esri>
|
|
138
|
-
<mdDateSt>2019-06-17</mdDateSt>
|
|
139
|
-
<mdFileID>c67325516f3c47198727263bb6e299f1</mdFileID>
|
|
140
|
-
<mdChar>
|
|
141
|
-
<CharSetCd value="004"/>
|
|
142
|
-
</mdChar>
|
|
143
|
-
<mdContact>
|
|
144
|
-
<role>
|
|
145
|
-
<RoleCd value="007"/>
|
|
146
|
-
</role>
|
|
147
|
-
</mdContact>
|
|
148
|
-
</metadata>`;
|
|
149
|
-
return xmlToBlob(xml, mimeType);
|
|
150
|
-
}
|
|
151
|
-
exports.getSampleMetadataAsBlob = getSampleMetadataAsBlob;
|
|
152
|
-
function getSampleMetadataAsFile(filename = "metadata.xml", mimeType = "text/xml") {
|
|
153
|
-
return new File([getSampleMetadataAsBlob(mimeType)], filename, {
|
|
154
|
-
type: mimeType
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
exports.getSampleMetadataAsFile = getSampleMetadataAsFile;
|
|
158
|
-
function jsonToBlob(json) {
|
|
159
|
-
return new Blob([JSON.stringify(json)], { type: "application/json" });
|
|
160
|
-
}
|
|
161
|
-
exports.jsonToBlob = jsonToBlob;
|
|
162
|
-
function xmlToBlob(xml, mimeType = "text/xml") {
|
|
163
|
-
return new Blob([xml], { type: mimeType });
|
|
164
|
-
}
|
|
165
|
-
exports.xmlToBlob = xmlToBlob;
|
|
166
|
-
function getSampleImageAsBlob() {
|
|
167
|
-
// Decode base-64 to binary, then binary to character codes as Uint8
|
|
168
|
-
return _imageDataToBlob(_binaryToUint8CharCodes(atob(_imageAsDataUri(false))));
|
|
169
|
-
}
|
|
170
|
-
exports.getSampleImageAsBlob = getSampleImageAsBlob;
|
|
171
|
-
function getSampleImageAsFile(filename = "sampleImage") {
|
|
172
|
-
return generalHelpers.blobToFile(getSampleImageAsBlob(), filename);
|
|
173
|
-
}
|
|
174
|
-
exports.getSampleImageAsFile = getSampleImageAsFile;
|
|
175
|
-
function _binaryToUint8CharCodes(binaryData) {
|
|
176
|
-
const array16 = [];
|
|
177
|
-
for (let i = 0; i < binaryData.length; i++) {
|
|
178
|
-
array16.push(binaryData.charCodeAt(i));
|
|
179
|
-
}
|
|
180
|
-
return new Uint8Array(array16);
|
|
181
|
-
}
|
|
182
|
-
function getSampleJson() {
|
|
183
|
-
return {
|
|
184
|
-
a: "a",
|
|
185
|
-
b: 1,
|
|
186
|
-
c: {
|
|
187
|
-
d: "d"
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
exports.getSampleJson = getSampleJson;
|
|
192
|
-
function getSampleJsonAsBlob() {
|
|
193
|
-
return jsonToBlob(getSampleJson());
|
|
194
|
-
}
|
|
195
|
-
exports.getSampleJsonAsBlob = getSampleJsonAsBlob;
|
|
196
|
-
function getSampleJsonAsFile(filename, mimeType = "application/json") {
|
|
197
|
-
return new File([getSampleJsonAsBlob()], filename, {
|
|
198
|
-
type: mimeType
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
exports.getSampleJsonAsFile = getSampleJsonAsFile;
|
|
202
|
-
function getSampleQCJsonData() {
|
|
203
|
-
return {
|
|
204
|
-
application: {
|
|
205
|
-
basemap: {
|
|
206
|
-
type: "Web Map",
|
|
207
|
-
itemId: "map1234567890",
|
|
208
|
-
mapAreas: [],
|
|
209
|
-
required: true,
|
|
210
|
-
useDefaultBasemap: false,
|
|
211
|
-
zoomLevel: null
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
name: "qc.project.json"
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
exports.getSampleQCJsonData = getSampleQCJsonData;
|
|
218
|
-
function getSampleQCProjectJsonFile() {
|
|
219
|
-
return new File([jsonToBlob({
|
|
220
|
-
basemap: {
|
|
221
|
-
type: "Web Map",
|
|
222
|
-
itemId: "map1234567890",
|
|
223
|
-
mapAreas: [],
|
|
224
|
-
required: true,
|
|
225
|
-
useDefaultBasemap: false,
|
|
226
|
-
zoomLevel: null
|
|
227
|
-
}
|
|
228
|
-
})], "qc.project.json", {
|
|
229
|
-
type: "application/json"
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
exports.getSampleQCProjectJsonFile = getSampleQCProjectJsonFile;
|
|
233
|
-
function getSampleTextAsBlob(mimeType = "text/plain") {
|
|
234
|
-
return new Blob(["this is some text"], { type: mimeType });
|
|
235
|
-
}
|
|
236
|
-
exports.getSampleTextAsBlob = getSampleTextAsBlob;
|
|
237
|
-
function getSampleTextAsFile(filename, mimeType = "text/plain") {
|
|
238
|
-
return new File([getSampleTextAsBlob(mimeType)], filename, {
|
|
239
|
-
type: mimeType
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
exports.getSampleTextAsFile = getSampleTextAsFile;
|
|
243
|
-
function getSampleZip(mimeType = "application/zip") {
|
|
244
|
-
const zipContents = "504B0304 0A000000 0000C045 D9424437\
|
|
245
|
-
EB352600 00002600 00000700 00006373\
|
|
246
|
-
762E6373 76746869 732C6973 2C612C63\
|
|
247
|
-
6F6D6D61 2C736570 61726174 65642C76\
|
|
248
|
-
616C7565 2C66696C 650D0A50 4B010214\
|
|
249
|
-
000A0000 000000C0 45D94244 37EB3526\
|
|
250
|
-
00000026 00000007000000000 00000000\
|
|
251
|
-
00200000 00000000 00637376 2E637376\
|
|
252
|
-
504B0506 00000000 01000100 35000000\
|
|
253
|
-
4B000000 0000";
|
|
254
|
-
const bytes = new Uint8Array(Math.ceil(zipContents.length / 2));
|
|
255
|
-
for (let i = 0; i < bytes.length; i++) {
|
|
256
|
-
bytes[i] = parseInt(zipContents.substr(i * 2, 2), 16);
|
|
257
|
-
}
|
|
258
|
-
return new Blob([bytes], { type: mimeType });
|
|
259
|
-
}
|
|
260
|
-
exports.getSampleZip = getSampleZip;
|
|
261
|
-
function getSampleZipFile(name) {
|
|
262
|
-
return new File([getSampleZip()], name, {
|
|
263
|
-
type: "application/zip"
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
exports.getSampleZipFile = getSampleZipFile;
|
|
267
|
-
function _imageDataToBlob(data) {
|
|
268
|
-
return new Blob([data], { type: "image/png" });
|
|
269
|
-
}
|
|
270
|
-
function getTokenResponse(token = "fake-token") {
|
|
271
|
-
return { token: token };
|
|
272
|
-
}
|
|
273
|
-
exports.getTokenResponse = getTokenResponse;
|
|
274
|
-
function getTransformationsResponse(hasTransformation = false) {
|
|
275
|
-
return hasTransformation
|
|
276
|
-
? '{"transformations":[{wkid: 4326}]}'
|
|
277
|
-
: '{"transformations":[]}';
|
|
278
|
-
}
|
|
279
|
-
exports.getTransformationsResponse = getTransformationsResponse;
|
|
280
|
-
function getProjectResponse() {
|
|
281
|
-
return {
|
|
282
|
-
geometries: [
|
|
283
|
-
{
|
|
284
|
-
x: -88.226,
|
|
285
|
-
y: 41.708
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
x: -88.009,
|
|
289
|
-
y: 41.844
|
|
290
|
-
}
|
|
291
|
-
]
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
exports.getProjectResponse = getProjectResponse;
|
|
295
|
-
function getCreateFolderResponse(folderId = "a4468da125a64526b359b70d8ba4a9dd") {
|
|
296
|
-
return getSuccessResponse({
|
|
297
|
-
folder: {
|
|
298
|
-
username: "casey",
|
|
299
|
-
id: folderId,
|
|
300
|
-
title: "Test Deployment"
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
exports.getCreateFolderResponse = getCreateFolderResponse;
|
|
305
|
-
function getCreateGroupResponse(id = "ebb41907d02742f2aef72adb6d393019") {
|
|
306
|
-
return getSuccessResponse({
|
|
307
|
-
group: {
|
|
308
|
-
id: id,
|
|
309
|
-
title: "Group Name",
|
|
310
|
-
isInvitationOnly: true,
|
|
311
|
-
owner: "casey",
|
|
312
|
-
description: "description",
|
|
313
|
-
snippet: "snippet",
|
|
314
|
-
tags: ["tag"],
|
|
315
|
-
phone: null,
|
|
316
|
-
sortField: "title",
|
|
317
|
-
sortOrder: "asc",
|
|
318
|
-
isViewOnly: true,
|
|
319
|
-
thumbnail: null,
|
|
320
|
-
created: 1582844507759,
|
|
321
|
-
modified: 1582844507761,
|
|
322
|
-
access: "private",
|
|
323
|
-
capabilities: [],
|
|
324
|
-
isFav: false,
|
|
325
|
-
isReadOnly: false,
|
|
326
|
-
protected: false,
|
|
327
|
-
autoJoin: false,
|
|
328
|
-
notificationsEnabled: false,
|
|
329
|
-
provider: null,
|
|
330
|
-
providerGroupName: null,
|
|
331
|
-
leavingDisallowed: false,
|
|
332
|
-
hiddenMembers: false,
|
|
333
|
-
displaySettings: {
|
|
334
|
-
itemTypes: ""
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
exports.getCreateGroupResponse = getCreateGroupResponse;
|
|
340
|
-
function getFailureResponse(args) {
|
|
341
|
-
const response = { success: false };
|
|
342
|
-
return Object.assign(response, args || {});
|
|
343
|
-
}
|
|
344
|
-
exports.getFailureResponse = getFailureResponse;
|
|
345
|
-
function getSuccessResponse(args) {
|
|
346
|
-
const response = { success: true };
|
|
347
|
-
return Object.assign(response, args || {});
|
|
348
|
-
}
|
|
349
|
-
exports.getSuccessResponse = getSuccessResponse;
|
|
350
|
-
function getShareResponse(id) {
|
|
351
|
-
return {
|
|
352
|
-
notSharedWith: [],
|
|
353
|
-
itemId: id
|
|
354
|
-
};
|
|
355
|
-
}
|
|
356
|
-
exports.getShareResponse = getShareResponse;
|
|
357
|
-
function checkForArcgisRestSuccessRequestError(error) {
|
|
358
|
-
return ((error &&
|
|
359
|
-
typeof error.success === "boolean" &&
|
|
360
|
-
error.success === false &&
|
|
361
|
-
typeof error.error === "object" &&
|
|
362
|
-
error.error.name === "ArcGISRequestError") ||
|
|
363
|
-
(error && typeof error.success === "boolean" && error.success === false));
|
|
364
|
-
}
|
|
365
|
-
exports.checkForArcgisRestSuccessRequestError = checkForArcgisRestSuccessRequestError;
|
|
366
|
-
function createMockSettings(solutionName = "", folderId = null, access = "private") {
|
|
367
|
-
const settings = {
|
|
368
|
-
organization: getPortalsSelfResponse(),
|
|
369
|
-
portalBaseUrl: exports.ORG_URL,
|
|
370
|
-
solutionName,
|
|
371
|
-
folderId,
|
|
372
|
-
access
|
|
373
|
-
};
|
|
374
|
-
return settings;
|
|
375
|
-
}
|
|
376
|
-
exports.createMockSettings = createMockSettings;
|
|
377
|
-
function createRuntimeMockUserSession(now, portalUrl) {
|
|
378
|
-
if (now === undefined) {
|
|
379
|
-
now = Date.now();
|
|
380
|
-
}
|
|
381
|
-
const tomorrow = new Date(now + 86400000);
|
|
382
|
-
return new interfaces.UserSession({
|
|
383
|
-
clientId: "clientId",
|
|
384
|
-
redirectUri: "https://example-app.com/redirect-uri",
|
|
385
|
-
token: "fake-token",
|
|
386
|
-
tokenExpires: tomorrow,
|
|
387
|
-
refreshToken: "refreshToken",
|
|
388
|
-
refreshTokenExpires: tomorrow,
|
|
389
|
-
refreshTokenTTL: 1440,
|
|
390
|
-
username: "casey",
|
|
391
|
-
password: "123456",
|
|
392
|
-
portal: (portalUrl || exports.PORTAL_URL) + "/sharing/rest"
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
exports.createRuntimeMockUserSession = createRuntimeMockUserSession;
|
|
396
|
-
function jsonClone(obj) {
|
|
397
|
-
return JSON.parse(JSON.stringify(obj));
|
|
398
|
-
}
|
|
399
|
-
exports.jsonClone = jsonClone;
|
|
400
|
-
/**
|
|
401
|
-
* Removes item-specific functions from templates.
|
|
402
|
-
*
|
|
403
|
-
* @param solutionTemplateItem Solution template
|
|
404
|
-
*/
|
|
405
|
-
function removeItemFcns(solutionTemplateItem) {
|
|
406
|
-
const templates = generalHelpers.getProp(solutionTemplateItem, "data.templates");
|
|
407
|
-
if (templates) {
|
|
408
|
-
if (Array.isArray(templates)) {
|
|
409
|
-
templates.forEach(template => {
|
|
410
|
-
delete template.fcns;
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
else {
|
|
414
|
-
delete templates.fcns;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
exports.removeItemFcns = removeItemFcns;
|
|
419
|
-
function removeNameField(layerOrTable) {
|
|
420
|
-
layerOrTable.name = null;
|
|
421
|
-
return layerOrTable;
|
|
422
|
-
}
|
|
423
|
-
exports.removeNameField = removeNameField;
|
|
424
|
-
/**
|
|
425
|
-
* Replaces the browser clock with a mock clock.
|
|
426
|
-
*
|
|
427
|
-
* @param now Time to use to set Jasmine clock
|
|
428
|
-
* @note Be sure to call `jasmine.clock().uninstall()` after using this function in a test
|
|
429
|
-
*/
|
|
430
|
-
function setMockDateTime(now) {
|
|
431
|
-
jasmine.clock().install();
|
|
432
|
-
jasmine.clock().mockDate(new Date(now));
|
|
433
|
-
return now;
|
|
434
|
-
}
|
|
435
|
-
exports.setMockDateTime = setMockDateTime;
|
|
436
|
-
function getPortalsSelfResponse() {
|
|
437
|
-
// https://developers.arcgis.com/rest/users-groups-and-items/portal-self.htm
|
|
438
|
-
return {
|
|
439
|
-
access: "public",
|
|
440
|
-
allSSL: true,
|
|
441
|
-
allowedRedirectUris: [],
|
|
442
|
-
analysisLayersGroupQuery: 'title:"Living Atlas Analysis Layers" AND owner:esri',
|
|
443
|
-
authorizedCrossOriginDomains: [
|
|
444
|
-
"https://ec2-18-219-57-96.us-east-2.compute.amazonaws.com"
|
|
445
|
-
],
|
|
446
|
-
backgroundImage: "images/arcgis_background.jpg",
|
|
447
|
-
basemapGalleryGroupQuery: 'title:"United States Basemaps" AND owner:Esri_cy_US',
|
|
448
|
-
bingKey: "AmMpS0SyUPJSy2uXeMLn5aAEdhqKNSwWyBLsKEqF4Sb_knUpLbvjny8z1b2SoxXz",
|
|
449
|
-
colorSetsGroupQuery: 'title:"Esri Colors" AND owner:esri_en',
|
|
450
|
-
commentsEnabled: false,
|
|
451
|
-
contentCategorySetsGroupQuery: 'title:"ArcGIS Online Content Category Sets" AND owner:esri_en',
|
|
452
|
-
culture: "en",
|
|
453
|
-
cultureFormat: "us",
|
|
454
|
-
customBaseUrl: "maps.arcgis.com",
|
|
455
|
-
defaultBasemap: {
|
|
456
|
-
baseMapLayers: [
|
|
457
|
-
{
|
|
458
|
-
url: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",
|
|
459
|
-
layerType: "ArcGISTiledMapServiceLayer",
|
|
460
|
-
resourceInfo: {
|
|
461
|
-
currentVersion: 10.3,
|
|
462
|
-
mapName: "Layers",
|
|
463
|
-
supportsDynamicLayers: false,
|
|
464
|
-
layers: [
|
|
465
|
-
{
|
|
466
|
-
id: 0,
|
|
467
|
-
name: "Citations",
|
|
468
|
-
parentLayerId: -1,
|
|
469
|
-
defaultVisibility: false,
|
|
470
|
-
subLayerIds: undefined,
|
|
471
|
-
minScale: 0,
|
|
472
|
-
maxScale: 0
|
|
473
|
-
}
|
|
474
|
-
],
|
|
475
|
-
tables: [],
|
|
476
|
-
spatialReference: {
|
|
477
|
-
wkid: 102100,
|
|
478
|
-
latestWkid: 3857
|
|
479
|
-
},
|
|
480
|
-
singleFusedMapCache: true,
|
|
481
|
-
tileInfo: {
|
|
482
|
-
rows: 256,
|
|
483
|
-
cols: 256,
|
|
484
|
-
dpi: 96,
|
|
485
|
-
format: "JPEG",
|
|
486
|
-
compressionQuality: 90,
|
|
487
|
-
origin: {
|
|
488
|
-
x: -20037508.342787,
|
|
489
|
-
y: 20037508.342787
|
|
490
|
-
},
|
|
491
|
-
spatialReference: {
|
|
492
|
-
wkid: 102100,
|
|
493
|
-
latestWkid: 3857
|
|
494
|
-
},
|
|
495
|
-
lods: [
|
|
496
|
-
{
|
|
497
|
-
level: 0,
|
|
498
|
-
resolution: 156543.03392800014,
|
|
499
|
-
scale: 591657527.591555
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
level: 1,
|
|
503
|
-
resolution: 78271.51696399994,
|
|
504
|
-
scale: 295828763.795777
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
level: 2,
|
|
508
|
-
resolution: 39135.75848200009,
|
|
509
|
-
scale: 147914381.897889
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
level: 3,
|
|
513
|
-
resolution: 19567.87924099992,
|
|
514
|
-
scale: 73957190.948944
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
level: 4,
|
|
518
|
-
resolution: 9783.93962049996,
|
|
519
|
-
scale: 36978595.474472
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
level: 5,
|
|
523
|
-
resolution: 4891.96981024998,
|
|
524
|
-
scale: 18489297.737236
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
level: 6,
|
|
528
|
-
resolution: 2445.98490512499,
|
|
529
|
-
scale: 9244648.868618
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
level: 7,
|
|
533
|
-
resolution: 1222.992452562495,
|
|
534
|
-
scale: 4622324.434309
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
level: 8,
|
|
538
|
-
resolution: 611.4962262813797,
|
|
539
|
-
scale: 2311162.217155
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
level: 9,
|
|
543
|
-
resolution: 305.74811314055756,
|
|
544
|
-
scale: 1155581.108577
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
level: 10,
|
|
548
|
-
resolution: 152.87405657041106,
|
|
549
|
-
scale: 577790.554289
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
level: 11,
|
|
553
|
-
resolution: 76.43702828507324,
|
|
554
|
-
scale: 288895.277144
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
level: 12,
|
|
558
|
-
resolution: 38.21851414253662,
|
|
559
|
-
scale: 144447.638572
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
level: 13,
|
|
563
|
-
resolution: 19.10925707126831,
|
|
564
|
-
scale: 72223.819286
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
level: 14,
|
|
568
|
-
resolution: 9.554628535634155,
|
|
569
|
-
scale: 36111.909643
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
level: 15,
|
|
573
|
-
resolution: 4.77731426794937,
|
|
574
|
-
scale: 18055.954822
|
|
575
|
-
},
|
|
576
|
-
{
|
|
577
|
-
level: 16,
|
|
578
|
-
resolution: 2.388657133974685,
|
|
579
|
-
scale: 9027.977411
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
level: 17,
|
|
583
|
-
resolution: 1.1943285668550503,
|
|
584
|
-
scale: 4513.988705
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
level: 18,
|
|
588
|
-
resolution: 0.5971642835598172,
|
|
589
|
-
scale: 2256.994353
|
|
590
|
-
},
|
|
591
|
-
{
|
|
592
|
-
level: 19,
|
|
593
|
-
resolution: 0.29858214164761665,
|
|
594
|
-
scale: 1128.497176
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
level: 20,
|
|
598
|
-
resolution: 0.14929107082380833,
|
|
599
|
-
scale: 564.248588
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
level: 21,
|
|
603
|
-
resolution: 0.07464553541190416,
|
|
604
|
-
scale: 282.124294
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
level: 22,
|
|
608
|
-
resolution: 0.03732276770595208,
|
|
609
|
-
scale: 141.062147
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
level: 23,
|
|
613
|
-
resolution: 0.01866138385297604,
|
|
614
|
-
scale: 70.5310735
|
|
615
|
-
}
|
|
616
|
-
]
|
|
617
|
-
},
|
|
618
|
-
initialExtent: {
|
|
619
|
-
xmin: -28848255.049479112,
|
|
620
|
-
ymin: -2077452.082122866,
|
|
621
|
-
xmax: 28848255.049479112,
|
|
622
|
-
ymax: 16430757.376790084,
|
|
623
|
-
spatialReference: {
|
|
624
|
-
wkid: 102100,
|
|
625
|
-
latestWkid: 3857
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
fullExtent: {
|
|
629
|
-
xmin: -20037507.067161843,
|
|
630
|
-
ymin: -19971868.880408604,
|
|
631
|
-
xmax: 20037507.067161843,
|
|
632
|
-
ymax: 19971868.88040863,
|
|
633
|
-
spatialReference: {
|
|
634
|
-
wkid: 102100,
|
|
635
|
-
latestWkid: 3857
|
|
636
|
-
}
|
|
637
|
-
},
|
|
638
|
-
minScale: 591657527.591555,
|
|
639
|
-
maxScale: 70.5310735,
|
|
640
|
-
units: "esriMeters",
|
|
641
|
-
supportedImageFormatTypes: "PNG32,PNG24,PNG,JPG,DIB,TIFF,EMF,PS,PDF,GIF,SVG,SVGZ,BMP",
|
|
642
|
-
capabilities: "Map,Tilemap,Query,Data",
|
|
643
|
-
supportedQueryFormats: "JSON, AMF",
|
|
644
|
-
exportTilesAllowed: false,
|
|
645
|
-
maxRecordCount: 100,
|
|
646
|
-
maxImageHeight: 4096,
|
|
647
|
-
maxImageWidth: 4096,
|
|
648
|
-
supportedExtensions: "KmlServer"
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
],
|
|
652
|
-
title: "Topographic"
|
|
653
|
-
},
|
|
654
|
-
defaultExtent: {
|
|
655
|
-
xmin: -9821384.714217981,
|
|
656
|
-
ymin: 5117339.123090005,
|
|
657
|
-
xmax: -9797228.384715842,
|
|
658
|
-
ymax: 5137789.39951188,
|
|
659
|
-
spatialReference: {
|
|
660
|
-
wkid: 102100
|
|
661
|
-
}
|
|
662
|
-
},
|
|
663
|
-
defaultVectorBasemap: {
|
|
664
|
-
baseMapLayers: [
|
|
665
|
-
{
|
|
666
|
-
id: "World_Hillshade_3805",
|
|
667
|
-
layerType: "ArcGISTiledMapServiceLayer",
|
|
668
|
-
url: "https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",
|
|
669
|
-
visibility: true,
|
|
670
|
-
opacity: 1,
|
|
671
|
-
title: "World Hillshade"
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
id: "VectorTile_2333",
|
|
675
|
-
type: "VectorTileLayer",
|
|
676
|
-
layerType: "VectorTileLayer",
|
|
677
|
-
title: "World Topographic Map",
|
|
678
|
-
styleUrl: "https://cdn.arcgis.com/sharing/rest/content/items/vts1234567890/resources/styles/root.json",
|
|
679
|
-
visibility: true,
|
|
680
|
-
opacity: 1
|
|
681
|
-
}
|
|
682
|
-
],
|
|
683
|
-
title: "Topographic"
|
|
684
|
-
},
|
|
685
|
-
description: "<br>",
|
|
686
|
-
eueiEnabled: false,
|
|
687
|
-
featuredGroups: [
|
|
688
|
-
{
|
|
689
|
-
title: "Community Basemaps",
|
|
690
|
-
owner: "esri"
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
title: "ArcGIS for Local Government",
|
|
694
|
-
owner: "ArcGISTeamLocalGov"
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
title: "ArcGIS for Local Government Try It Live Services",
|
|
698
|
-
owner: "lind5149_lg",
|
|
699
|
-
id: "72b563693f6f402c9bcfb94d1be38916"
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
title: "Vector Basemap",
|
|
703
|
-
owner: "chri4849_lg",
|
|
704
|
-
id: "09a0c2935b6841f381db54e0566a2aaa"
|
|
705
|
-
}
|
|
706
|
-
],
|
|
707
|
-
featuredGroupsId: "",
|
|
708
|
-
featuredItemsGroupQuery: "",
|
|
709
|
-
galleryTemplatesGroupQuery: 'title:"Gallery Templates" AND owner:esri_en',
|
|
710
|
-
hasCategorySchema: true,
|
|
711
|
-
helpBase: "https://doc.arcgis.com/en/arcgis-online/",
|
|
712
|
-
helperServices: {
|
|
713
|
-
asyncClosestFacility: {
|
|
714
|
-
url: "https://logistics.arcgis.com/arcgis/rest/services/World/ClosestFacility/GPServer/FindClosestFacilities",
|
|
715
|
-
defaultTravelMode: "FEgifRtFndKNcJMJ"
|
|
716
|
-
},
|
|
717
|
-
asyncLocationAllocation: {
|
|
718
|
-
url: "https://logistics.arcgis.com/arcgis/rest/services/World/LocationAllocation/GPServer",
|
|
719
|
-
defaultTravelMode: "FEgifRtFndKNcJMJ"
|
|
720
|
-
},
|
|
721
|
-
asyncODCostMatrix: {
|
|
722
|
-
url: "https://logistics.arcgis.com/arcgis/rest/services/World/OriginDestinationCostMatrix/GPServer",
|
|
723
|
-
defaultTravelMode: "FEgifRtFndKNcJMJ"
|
|
724
|
-
},
|
|
725
|
-
asyncRoute: {
|
|
726
|
-
url: "https://logistics.arcgis.com/arcgis/rest/services/World/Route/GPServer",
|
|
727
|
-
defaultTravelMode: "FEgifRtFndKNcJMJ"
|
|
728
|
-
},
|
|
729
|
-
asyncServiceArea: {
|
|
730
|
-
url: "https://logistics.arcgis.com/arcgis/rest/services/World/ServiceAreas/GPServer/GenerateServiceAreas",
|
|
731
|
-
defaultTravelMode: "FEgifRtFndKNcJMJ"
|
|
732
|
-
},
|
|
733
|
-
asyncVRP: {
|
|
734
|
-
url: "https://logistics.arcgis.com/arcgis/rest/services/World/VehicleRoutingProblem/GPServer/SolveVehicleRoutingProblem",
|
|
735
|
-
defaultTravelMode: "FEgifRtFndKNcJMJ"
|
|
736
|
-
},
|
|
737
|
-
closestFacility: {
|
|
738
|
-
url: "https://route.arcgis.com/arcgis/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World",
|
|
739
|
-
defaultTravelMode: "FEgifRtFndKNcJMJ"
|
|
740
|
-
},
|
|
741
|
-
defaultElevationLayers: [
|
|
742
|
-
{
|
|
743
|
-
url: "https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer",
|
|
744
|
-
id: "globalElevation",
|
|
745
|
-
layerType: "ArcGISTiledElevationServiceLayer"
|
|
746
|
-
}
|
|
747
|
-
],
|
|
748
|
-
elevation: {
|
|
749
|
-
url: "https://elevation.arcgis.com/arcgis/rest/services/Tools/Elevation/GPServer"
|
|
750
|
-
},
|
|
751
|
-
elevationSync: {
|
|
752
|
-
url: "https://elevation.arcgis.com/arcgis/rest/services/Tools/ElevationSync/GPServer"
|
|
753
|
-
},
|
|
754
|
-
geocode: [
|
|
755
|
-
{
|
|
756
|
-
url: "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer",
|
|
757
|
-
northLat: "Ymax",
|
|
758
|
-
southLat: "Ymin",
|
|
759
|
-
eastLon: "Xmax",
|
|
760
|
-
westLon: "Xmin",
|
|
761
|
-
name: "ArcGIS World Geocoding Service",
|
|
762
|
-
zoomScale: 10000,
|
|
763
|
-
suggest: true,
|
|
764
|
-
placefinding: true,
|
|
765
|
-
batch: true
|
|
766
|
-
}
|
|
767
|
-
],
|
|
768
|
-
geometry: {
|
|
769
|
-
url: "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer"
|
|
770
|
-
},
|
|
771
|
-
hydrology: {
|
|
772
|
-
url: "https://hydro.arcgis.com/arcgis/rest/services/Tools/Hydrology/GPServer"
|
|
773
|
-
},
|
|
774
|
-
orthomappingElevation: {
|
|
775
|
-
url: "https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer"
|
|
776
|
-
},
|
|
777
|
-
packaging: {
|
|
778
|
-
url: "https://packaging.arcgis.com/arcgis/rest/services/OfflinePackaging/GPServer"
|
|
779
|
-
},
|
|
780
|
-
printTask: {
|
|
781
|
-
url: "https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
|
|
782
|
-
},
|
|
783
|
-
route: {
|
|
784
|
-
url: "https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",
|
|
785
|
-
defaultTravelMode: "FEgifRtFndKNcJMJ"
|
|
786
|
-
},
|
|
787
|
-
routingUtilities: {
|
|
788
|
-
url: "https://logistics.arcgis.com/arcgis/rest/services/World/Utilities/GPServer"
|
|
789
|
-
},
|
|
790
|
-
serviceArea: {
|
|
791
|
-
url: "https://route.arcgis.com/arcgis/rest/services/World/ServiceAreas/NAServer/ServiceArea_World",
|
|
792
|
-
defaultTravelMode: "FEgifRtFndKNcJMJ"
|
|
793
|
-
},
|
|
794
|
-
syncVRP: {
|
|
795
|
-
url: "https://logistics.arcgis.com/arcgis/rest/services/World/VehicleRoutingProblemSync/GPServer/EditVehicleRoutingProblem",
|
|
796
|
-
defaultTravelMode: "FEgifRtFndKNcJMJ"
|
|
797
|
-
},
|
|
798
|
-
traffic: {
|
|
799
|
-
url: "https://traffic.arcgis.com/arcgis/rest/services/World/Traffic/MapServer"
|
|
800
|
-
},
|
|
801
|
-
trafficData: {
|
|
802
|
-
url: "https://traffic.arcgis.com/arcgis/rest/services/World/TrafficFeeds/GPServer"
|
|
803
|
-
},
|
|
804
|
-
analysis: {
|
|
805
|
-
url: "https://analysis.arcgis.com/arcgis/rest/services/tasks/GPServer"
|
|
806
|
-
},
|
|
807
|
-
geoenrichment: {
|
|
808
|
-
url: "https://geoenrich.arcgis.com/arcgis/rest/services/World/GeoenrichmentServer"
|
|
809
|
-
},
|
|
810
|
-
asyncGeocode: {
|
|
811
|
-
url: "https://analysis.arcgis.com/arcgis/rest/services/tasks/GPServer"
|
|
812
|
-
},
|
|
813
|
-
creditEstimation: {
|
|
814
|
-
url: "https://analysis.arcgis.com/arcgis/rest/services/Estimate/GPServer"
|
|
815
|
-
}
|
|
816
|
-
},
|
|
817
|
-
homePageFeaturedContent: "id:f292c6105dc243a2ad1377245722e312",
|
|
818
|
-
homePageFeaturedContentCount: 12,
|
|
819
|
-
id: "org1234567890",
|
|
820
|
-
isPortal: false,
|
|
821
|
-
layerTemplatesGroupQuery: 'title:"Esri Layer Templates" AND owner:esri_en',
|
|
822
|
-
livingAtlasGroupQuery: 'title:"LAW Search" AND owner:Esri_LivingAtlas',
|
|
823
|
-
metadataEditable: true,
|
|
824
|
-
metadataFormats: ["iso19139"],
|
|
825
|
-
name: "ArcGIS Team Local Gov",
|
|
826
|
-
portalHostname: "www.arcgis.com",
|
|
827
|
-
portalMode: "multitenant",
|
|
828
|
-
portalName: "ArcGIS Online",
|
|
829
|
-
portalProperties: {
|
|
830
|
-
openData: {
|
|
831
|
-
enabled: true,
|
|
832
|
-
settings: {
|
|
833
|
-
groupId: "0472bb819e9741809373812a6400dade",
|
|
834
|
-
migrations: {
|
|
835
|
-
siteToItems: true
|
|
836
|
-
},
|
|
837
|
-
appVersion: "2.1"
|
|
838
|
-
}
|
|
839
|
-
},
|
|
840
|
-
sharedTheme: {
|
|
841
|
-
logo: {
|
|
842
|
-
small: undefined
|
|
843
|
-
},
|
|
844
|
-
button: {
|
|
845
|
-
background: "#ebebeb",
|
|
846
|
-
text: "#1a1a1a"
|
|
847
|
-
},
|
|
848
|
-
body: {
|
|
849
|
-
link: "#004da8",
|
|
850
|
-
background: "#ebebeb",
|
|
851
|
-
text: "#474747"
|
|
852
|
-
},
|
|
853
|
-
header: {
|
|
854
|
-
background: "#999999",
|
|
855
|
-
text: "#242424"
|
|
856
|
-
}
|
|
857
|
-
},
|
|
858
|
-
links: {
|
|
859
|
-
contactUs: {
|
|
860
|
-
url: "mailto:arcgisteamlocalgov@esri.com",
|
|
861
|
-
visible: false
|
|
862
|
-
}
|
|
863
|
-
},
|
|
864
|
-
showSocialMediaLinks: true,
|
|
865
|
-
hub: {
|
|
866
|
-
enabled: true,
|
|
867
|
-
settings: {
|
|
868
|
-
orgType: "enterprise",
|
|
869
|
-
communityOrg: {
|
|
870
|
-
orgId: "hcOb9dpllCwWSJAh",
|
|
871
|
-
portalHostname: "gov-solutions.maps.arcgis.com"
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
},
|
|
875
|
-
revertStdSqlEndDate: 1554993043785,
|
|
876
|
-
revertHttpsEndDate: 1558907781119
|
|
877
|
-
},
|
|
878
|
-
portalThumbnail: undefined,
|
|
879
|
-
rasterFunctionTemplatesGroupQuery: 'title:"Raster Function Templates" AND owner:esri_en',
|
|
880
|
-
region: "WO",
|
|
881
|
-
rotatorPanels: [
|
|
882
|
-
{
|
|
883
|
-
id: "banner-3",
|
|
884
|
-
innerHTML: "<img src='images/banner-3.jpg' style='-webkit-border-radius:0 0 10px 10px; -moz-border-radius:0 0 10px 10px; -o-border-radius:0 0 10px 10px; border-radius:0 0 10px 10px; margin-top:0; width:960px; height:180px;'/><div style='position:absolute; bottom:80px; left:80px; max-height:65px; width:660px; margin:0;'><span style='position:absolute; bottom:0; margin-bottom:0; line-height:normal; font-family:HelveticaNeue,Verdana; font-weight:600; font-size:32px; color:#fff;'>ArcGIS Team Local Gov</span></div>"
|
|
885
|
-
}
|
|
886
|
-
],
|
|
887
|
-
showHomePageDescription: true,
|
|
888
|
-
staticImagesUrl: "https://static.arcgis.com/images",
|
|
889
|
-
stylesGroupQuery: 'title:"Esri Styles" AND owner:esri_en',
|
|
890
|
-
supportsHostedServices: true,
|
|
891
|
-
symbolSetsGroupQuery: 'title:"Esri Symbols" AND owner:esri_en',
|
|
892
|
-
templatesGroupQuery: 'title:"Web Application Templates" AND owner:esri_en',
|
|
893
|
-
thumbnail: "",
|
|
894
|
-
units: "english",
|
|
895
|
-
urlKey: "myorg",
|
|
896
|
-
useVectorBasemaps: true,
|
|
897
|
-
vectorBasemapGalleryGroupQuery: 'title:"United States Vector Basemaps" AND owner:Esri_cy_US',
|
|
898
|
-
publicSubscriptionInfo: {
|
|
899
|
-
companionOrganizations: [
|
|
900
|
-
{
|
|
901
|
-
type: "Community",
|
|
902
|
-
organizationUrl: "gov-solutions.maps.arcgis.com"
|
|
903
|
-
}
|
|
904
|
-
]
|
|
905
|
-
},
|
|
906
|
-
ipCntryCode: "US",
|
|
907
|
-
httpPort: 80,
|
|
908
|
-
httpsPort: 443,
|
|
909
|
-
supportsOAuth: true,
|
|
910
|
-
currentVersion: "7.2",
|
|
911
|
-
allowedOrigins: []
|
|
912
|
-
};
|
|
913
|
-
}
|
|
914
|
-
exports.getPortalsSelfResponse = getPortalsSelfResponse;
|
|
915
|
-
function getUserResponse() {
|
|
916
|
-
return {
|
|
917
|
-
username: "LocalGovDeployCasey",
|
|
918
|
-
id: "7f7dfdd4d9184e188eb44c2356ad74d9",
|
|
919
|
-
fullName: "Casey Jones",
|
|
920
|
-
firstName: "Casey",
|
|
921
|
-
lastName: "Jones",
|
|
922
|
-
preferredView: "GIS",
|
|
923
|
-
description: null,
|
|
924
|
-
email: "casey@esri.com",
|
|
925
|
-
userType: "arcgisonly",
|
|
926
|
-
idpUsername: null,
|
|
927
|
-
favGroupId: "318a6b072baa453bba5383cd103d8628",
|
|
928
|
-
lastLogin: 1573839621000,
|
|
929
|
-
mfaEnabled: false,
|
|
930
|
-
access: "org",
|
|
931
|
-
storageUsage: 2069559555,
|
|
932
|
-
storageQuota: 2199023255552,
|
|
933
|
-
orgId: "org1234567890",
|
|
934
|
-
role: "org_admin",
|
|
935
|
-
privileges: [
|
|
936
|
-
"features:user:edit",
|
|
937
|
-
"features:user:fullEdit",
|
|
938
|
-
"marketplace:admin:manage",
|
|
939
|
-
"marketplace:admin:purchase",
|
|
940
|
-
"marketplace:admin:startTrial",
|
|
941
|
-
"opendata:user:designateGroup",
|
|
942
|
-
"opendata:user:openDataAdmin",
|
|
943
|
-
"portal:admin:assignToGroups",
|
|
944
|
-
"portal:admin:categorizeItems",
|
|
945
|
-
"portal:admin:changeUserRoles",
|
|
946
|
-
"portal:admin:createUpdateCapableGroup",
|
|
947
|
-
"portal:admin:deleteEmptyGroups",
|
|
948
|
-
"portal:admin:deleteItems",
|
|
949
|
-
"portal:admin:deleteUsers",
|
|
950
|
-
"portal:admin:disableUsers",
|
|
951
|
-
"portal:admin:inviteUsers",
|
|
952
|
-
"portal:admin:manageCollaborations",
|
|
953
|
-
"portal:admin:manageCredits",
|
|
954
|
-
"portal:admin:manageEnterpriseGroups",
|
|
955
|
-
"portal:admin:manageLicenses",
|
|
956
|
-
"portal:admin:manageRoles",
|
|
957
|
-
"portal:admin:manageSecurity",
|
|
958
|
-
"portal:admin:manageServers",
|
|
959
|
-
"portal:admin:manageUtilityServices",
|
|
960
|
-
"portal:admin:manageWebsite",
|
|
961
|
-
"portal:admin:reassignGroups",
|
|
962
|
-
"portal:admin:reassignItems",
|
|
963
|
-
"portal:admin:reassignUsers",
|
|
964
|
-
"portal:admin:shareToGroup",
|
|
965
|
-
"portal:admin:shareToOrg",
|
|
966
|
-
"portal:admin:shareToPublic",
|
|
967
|
-
"portal:admin:updateGroups",
|
|
968
|
-
"portal:admin:updateItemCategorySchema",
|
|
969
|
-
"portal:admin:updateItems",
|
|
970
|
-
"portal:admin:updateUsers",
|
|
971
|
-
"portal:admin:viewGroups",
|
|
972
|
-
"portal:admin:viewItems",
|
|
973
|
-
"portal:admin:viewUsers",
|
|
974
|
-
"portal:publisher:bulkPublishFromDataStores",
|
|
975
|
-
"portal:publisher:publishFeatures",
|
|
976
|
-
"portal:publisher:publishScenes",
|
|
977
|
-
"portal:publisher:publishServerGPServices",
|
|
978
|
-
"portal:publisher:publishServerServices",
|
|
979
|
-
"portal:publisher:publishTiles",
|
|
980
|
-
"portal:publisher:registerDataStores",
|
|
981
|
-
"portal:user:categorizeItems",
|
|
982
|
-
"portal:user:createGroup",
|
|
983
|
-
"portal:user:createItem",
|
|
984
|
-
"portal:user:joinGroup",
|
|
985
|
-
"portal:user:joinNonOrgGroup",
|
|
986
|
-
"portal:user:shareGroupToOrg",
|
|
987
|
-
"portal:user:shareGroupToPublic",
|
|
988
|
-
"portal:user:shareToGroup",
|
|
989
|
-
"portal:user:shareToOrg",
|
|
990
|
-
"portal:user:shareToPublic",
|
|
991
|
-
"portal:user:viewOrgGroups",
|
|
992
|
-
"portal:user:viewOrgItems",
|
|
993
|
-
"portal:user:viewOrgUsers",
|
|
994
|
-
"portal:user:viewTracks",
|
|
995
|
-
"premium:publisher:createAdvancedNotebooks",
|
|
996
|
-
"premium:publisher:createNotebooks",
|
|
997
|
-
"premium:publisher:geoanalytics",
|
|
998
|
-
"premium:publisher:rasteranalysis",
|
|
999
|
-
"premium:user:demographics",
|
|
1000
|
-
"premium:user:elevation",
|
|
1001
|
-
"premium:user:featurereport",
|
|
1002
|
-
"premium:user:geocode",
|
|
1003
|
-
"premium:user:geoenrichment",
|
|
1004
|
-
"premium:user:networkanalysis",
|
|
1005
|
-
"premium:user:spatialanalysis"
|
|
1006
|
-
],
|
|
1007
|
-
level: "2",
|
|
1008
|
-
userLicenseTypeId: "creatorUT",
|
|
1009
|
-
disabled: false,
|
|
1010
|
-
tags: [],
|
|
1011
|
-
culture: "en-US",
|
|
1012
|
-
cultureFormat: "us",
|
|
1013
|
-
region: "US",
|
|
1014
|
-
units: "english",
|
|
1015
|
-
thumbnail: null,
|
|
1016
|
-
created: 1551469472000,
|
|
1017
|
-
modified: 1559775285000,
|
|
1018
|
-
provider: "arcgis",
|
|
1019
|
-
groups: [
|
|
1020
|
-
{
|
|
1021
|
-
id: "22547723baa14ba89ea3845f8b7b4e79",
|
|
1022
|
-
title: "Homeless Activity Manager_811d0bbc9a4942fe9f1375088c4ed099",
|
|
1023
|
-
isInvitationOnly: true,
|
|
1024
|
-
owner: "LocalGovDeployCasey",
|
|
1025
|
-
description: "This group is required to configure the Crowdsource Manager application and used to share maps with health and human service personnel to manage reports of homeless individuals and encampments in the community.",
|
|
1026
|
-
snippet: "This group is required to configure the Crowdsource Manager application and used to share maps with health and human service personnel to manage reports of homeless individuals and encampments in the community.",
|
|
1027
|
-
tags: [
|
|
1028
|
-
"Homelessness",
|
|
1029
|
-
"Health and Human Services",
|
|
1030
|
-
"Public Safety",
|
|
1031
|
-
"Homeless Activity",
|
|
1032
|
-
"Encampments"
|
|
1033
|
-
],
|
|
1034
|
-
phone: null,
|
|
1035
|
-
sortField: "title",
|
|
1036
|
-
sortOrder: "asc",
|
|
1037
|
-
isViewOnly: true,
|
|
1038
|
-
thumbnail: null,
|
|
1039
|
-
created: 1573600936000,
|
|
1040
|
-
modified: 1573600937000,
|
|
1041
|
-
access: "private",
|
|
1042
|
-
capabilities: [],
|
|
1043
|
-
isFav: false,
|
|
1044
|
-
isReadOnly: false,
|
|
1045
|
-
protected: false,
|
|
1046
|
-
autoJoin: false,
|
|
1047
|
-
notificationsEnabled: false,
|
|
1048
|
-
provider: null,
|
|
1049
|
-
providerGroupName: null,
|
|
1050
|
-
leavingDisallowed: false,
|
|
1051
|
-
hiddenMembers: false,
|
|
1052
|
-
displaySettings: {
|
|
1053
|
-
itemTypes: ""
|
|
1054
|
-
},
|
|
1055
|
-
userMembership: {
|
|
1056
|
-
username: "casey",
|
|
1057
|
-
memberType: "owner",
|
|
1058
|
-
applications: 0
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
]
|
|
1062
|
-
};
|
|
1063
|
-
}
|
|
1064
|
-
exports.getUserResponse = getUserResponse;
|
|
1065
|
-
function getContentUser() {
|
|
1066
|
-
return {
|
|
1067
|
-
username: "LocalGovDeployCasey",
|
|
1068
|
-
total: 17,
|
|
1069
|
-
start: 1,
|
|
1070
|
-
num: 17,
|
|
1071
|
-
nextStart: -1,
|
|
1072
|
-
currentFolder: null,
|
|
1073
|
-
items: [
|
|
1074
|
-
{
|
|
1075
|
-
id: "cd502cb019cb4c8cb7be297eab5ea47c",
|
|
1076
|
-
owner: "LocalGovDeployCasey",
|
|
1077
|
-
created: 1564508371000,
|
|
1078
|
-
isOrgItem: true,
|
|
1079
|
-
modified: 1564508374000,
|
|
1080
|
-
guid: null,
|
|
1081
|
-
name: null,
|
|
1082
|
-
title: "Test",
|
|
1083
|
-
type: "Application",
|
|
1084
|
-
typeKeywords: ["Application", "Registered App"],
|
|
1085
|
-
description: null,
|
|
1086
|
-
tags: ["test"],
|
|
1087
|
-
snippet: null,
|
|
1088
|
-
thumbnail: "thumbnail/ago_downloaded.png",
|
|
1089
|
-
documentation: null,
|
|
1090
|
-
extent: [],
|
|
1091
|
-
categories: [],
|
|
1092
|
-
spatialReference: null,
|
|
1093
|
-
accessInformation: null,
|
|
1094
|
-
licenseInfo: null,
|
|
1095
|
-
culture: "en-us",
|
|
1096
|
-
properties: null,
|
|
1097
|
-
url: null,
|
|
1098
|
-
proxyFilter: null,
|
|
1099
|
-
access: "private",
|
|
1100
|
-
size: 0,
|
|
1101
|
-
appCategories: [],
|
|
1102
|
-
industries: [],
|
|
1103
|
-
languages: [],
|
|
1104
|
-
largeThumbnail: null,
|
|
1105
|
-
banner: null,
|
|
1106
|
-
screenshots: [],
|
|
1107
|
-
listed: false,
|
|
1108
|
-
ownerFolder: null,
|
|
1109
|
-
protected: false,
|
|
1110
|
-
numComments: 0,
|
|
1111
|
-
numRatings: 0,
|
|
1112
|
-
avgRating: 0,
|
|
1113
|
-
numViews: 0,
|
|
1114
|
-
scoreCompleteness: 33,
|
|
1115
|
-
groupDesignations: null
|
|
1116
|
-
}
|
|
1117
|
-
],
|
|
1118
|
-
folders: []
|
|
1119
|
-
};
|
|
1120
|
-
}
|
|
1121
|
-
exports.getContentUser = getContentUser;
|
|
1122
|
-
function getGroupResponse(query, hasResult) {
|
|
1123
|
-
return {
|
|
1124
|
-
query: query,
|
|
1125
|
-
total: 1,
|
|
1126
|
-
start: 1,
|
|
1127
|
-
num: 10,
|
|
1128
|
-
nextStart: -1,
|
|
1129
|
-
results: !hasResult
|
|
1130
|
-
? []
|
|
1131
|
-
: [
|
|
1132
|
-
{
|
|
1133
|
-
id: "2146ddb18dbe4fe1bb11dc9594164549",
|
|
1134
|
-
title: query,
|
|
1135
|
-
isInvitationOnly: false,
|
|
1136
|
-
owner: "casey",
|
|
1137
|
-
description: "",
|
|
1138
|
-
snippet: "",
|
|
1139
|
-
tags: ["test"],
|
|
1140
|
-
phone: "123-456-7890",
|
|
1141
|
-
sortField: "title",
|
|
1142
|
-
sortOrder: "asc",
|
|
1143
|
-
isViewOnly: false,
|
|
1144
|
-
isFav: false,
|
|
1145
|
-
thumbnail: "test.jpg",
|
|
1146
|
-
created: 1258061693000,
|
|
1147
|
-
access: "public"
|
|
1148
|
-
}
|
|
1149
|
-
]
|
|
1150
|
-
};
|
|
1151
|
-
}
|
|
1152
|
-
exports.getGroupResponse = getGroupResponse;
|
|
1153
|
-
function getSearchResponse(query, start, num, nextStart, total, numOfResults) {
|
|
1154
|
-
return {
|
|
1155
|
-
query,
|
|
1156
|
-
start,
|
|
1157
|
-
num,
|
|
1158
|
-
nextStart,
|
|
1159
|
-
total,
|
|
1160
|
-
results: Array(numOfResults).fill({ id: "1", title: "a" })
|
|
1161
|
-
};
|
|
1162
|
-
}
|
|
1163
|
-
exports.getSearchResponse = getSearchResponse;
|
|
1164
|
-
function getCreateServiceResponse(url = "https://services123.arcgis.com/org1234567890/arcgis/rest/services/ROWPermits_publiccomment/FeatureServer", id = "svc1234567890", isView = false) {
|
|
1165
|
-
const name = url
|
|
1166
|
-
.replace(/.+services[/]/, "")
|
|
1167
|
-
.replace("/FeatureServer", "");
|
|
1168
|
-
return getSuccessResponse({
|
|
1169
|
-
encodedServiceURL: url,
|
|
1170
|
-
itemId: id,
|
|
1171
|
-
name: name,
|
|
1172
|
-
serviceItemId: id,
|
|
1173
|
-
serviceurl: url,
|
|
1174
|
-
size: -1,
|
|
1175
|
-
type: "Feature Service",
|
|
1176
|
-
isView: isView
|
|
1177
|
-
});
|
|
1178
|
-
}
|
|
1179
|
-
exports.getCreateServiceResponse = getCreateServiceResponse;
|
|
1180
|
-
/**
|
|
1181
|
-
* Provides a supplied item with the nth call.
|
|
1182
|
-
*
|
|
1183
|
-
* @param trigger 1-based call count on which to start returning itemForNthCall; before this call,
|
|
1184
|
-
* function returns itemBeforeNthCall
|
|
1185
|
-
* @param itemForNthCall Item to return when trigger reached
|
|
1186
|
-
* @param itemBeforeNthCall Item to return before trigger reached
|
|
1187
|
-
* @return Function that tracks calls and provides items
|
|
1188
|
-
*/
|
|
1189
|
-
function returnOnNthCall(trigger, itemForNthCall, itemBeforeNthCall) {
|
|
1190
|
-
let numCalls = 0;
|
|
1191
|
-
return function () {
|
|
1192
|
-
return ++numCalls < trigger ? itemBeforeNthCall : itemForNthCall;
|
|
1193
|
-
};
|
|
1194
|
-
}
|
|
1195
|
-
exports.returnOnNthCall = returnOnNthCall;
|
|
1196
|
-
function _imageAsDataUri(withUri) {
|
|
1197
|
-
let uri = "";
|
|
1198
|
-
if (withUri) {
|
|
1199
|
-
uri = "data:image/png;charset=utf-8;base64,";
|
|
1200
|
-
}
|
|
1201
|
-
uri +=
|
|
1202
|
-
"\
|
|
1203
|
-
iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAADKklEQVQ4T6XUf1DMeRzH8edu\
|
|
1204
|
-
53ZVZ6vLxmo2Q0Y7rtJZJT8abQmdysjETVEWMxgGOzF2/IhkCqNT8qPyo8PE6fzIj/y4qYlU\
|
|
1205
|
-
E6MfIottFcLmRyIq1Ne4neGa+ufG57/354/H+/3H6/0WCYIg8J1P1BNSkJ/PpXO5tLa187q5\
|
|
1206
|
-
mTFqL6ZFzMRxgEuP7boh00JCcbB3IGZfFuM8f8PbfSD1IyIR3byI8uFVJoxRk5C4uQvWBfHx\
|
|
1207
|
-
VHO44jKqcC0/BKgQ7tbzIS0LhvhDX3d400DkSAUFZ3MwPXyAVCr9F/uKhAaHkpqbQkhGEAa9\
|
|
1208
|
-
EZeRcmpVOlCFQVwMbvqpLPA/QoruHnYSV+4V1tHS/vYbcqv6Fv4af6zVtsismnB0FmM9qQZB\
|
|
1209
|
-
ZsuNljdMtttN+fIEtMcm0NgqJmtZGevnJmGqqCNxc6JlktjYWNKT9zIxU463jxKjIYmm65ex\
|
|
1210
|
-
cfWi7Nga+nSWUV4k4DxchlQuobbCzJYjyRxYkEVVTZUFCZsShlTexnXvEXgN30RHzjZyk1cQ\
|
|
1211
|
-
vjIV57FP6a/4B5NBoOxsI+rFbhhN7yjfaGC0Us3pvDMWJDI8gvczPTgVfwOeVhC8NJ7G0nME\
|
|
1212
|
-
xf1JbWsREg5gZ99E9qxiNJl+PGn7xP3974myH8WGTXEWZFKAhqZ+7lzLTsX6xB1G/dSbj49f\
|
|
1213
|
-
U5O9lbeD1Xy4dAGxqB7pCwMSNwc6nKywFfkSoXDmj107LUjE1BCkwToO7dEzPuoFbn5OFCWZ\
|
|
1214
|
-
uX28FqavA1UgWDkhM6+gQ2agRTkam5SXaAa1czrvogUpLb5Kys59/BXox4+rtIhteuM51xUH\
|
|
1215
|
-
p07Op6nhdz20ixHJVyMUXIEwHZq8Z8wJ+oWoGO23nPj+6kGgLo0E7Xysx5pxiffl1RMfzGsr\
|
|
1216
|
-
Yag7PKgGaQnUP2f8koU4ltSRcz6va9i+VErHPizKNaDfmApt2yFwPuwogcZyWFsFvQpZKDFy\
|
|
1217
|
-
91Qlh/4+ikKh6I58+fH2GIZXgIbS6mKq8+8jOfiIwXWFPDu5C130DNYtm8ejhoavQJfY/3ej\
|
|
1218
|
-
blZWkpGegclk5FPzc2ztfqa1o5OoWdFEzo7utsk9noL/e14+AxP0YqryqgPxAAAAAElFTkSu\
|
|
1219
|
-
QmCC";
|
|
1220
|
-
return uri;
|
|
1221
|
-
}
|
|
1222
|
-
//# sourceMappingURL=utils.js.map
|