un-cli 0.0.67 → 0.0.70
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/adminlog.mjs +12 -3
- package/cmd.txt +1 -2
- package/index.html +677 -0
- package/index.mjs +221 -147
- package/logger.mjs +8 -1
- package/makerequest.mjs +14 -2
- package/package.json +2 -4
- package/portal.mjs +5 -4
- package/utilitynetwork.node.mjs +11 -7
package/utilitynetwork.node.mjs
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
/*
|
|
9
9
|
import fetch from "node-fetch"
|
|
10
10
|
*/
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
11
|
+
import logger from "./logger.mjs"
|
|
12
|
+
import { makeRequest } from "./makerequest.mjs"
|
|
13
|
+
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
export class UtilityNetwork {
|
|
@@ -122,6 +122,7 @@ export class UtilityNetwork {
|
|
|
122
122
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
/*
|
|
125
126
|
//a function that detects associations with from/to globalId that don't exist in the source tables.
|
|
126
127
|
//if one of the endpoints do not exists fails..
|
|
127
128
|
returnInvalidAssociations() {
|
|
@@ -178,7 +179,7 @@ export class UtilityNetwork {
|
|
|
178
179
|
|
|
179
180
|
|
|
180
181
|
}
|
|
181
|
-
|
|
182
|
+
*/
|
|
182
183
|
queryMoment(moment = ["definitionModification"]) {
|
|
183
184
|
|
|
184
185
|
let thisObj = this;
|
|
@@ -275,7 +276,7 @@ export class UtilityNetwork {
|
|
|
275
276
|
|
|
276
277
|
}
|
|
277
278
|
|
|
278
|
-
queryDistinct(layerId, field, where) {
|
|
279
|
+
queryDistinct(layerId, field, where, orderby) {
|
|
279
280
|
|
|
280
281
|
let queryJson = {
|
|
281
282
|
f: "json",
|
|
@@ -283,7 +284,9 @@ export class UtilityNetwork {
|
|
|
283
284
|
outFields: field,
|
|
284
285
|
where: where,
|
|
285
286
|
gdbVersion:this.gdbVersion,
|
|
286
|
-
returnDistinctValues: true
|
|
287
|
+
returnDistinctValues: true,
|
|
288
|
+
orderByFields: orderby,
|
|
289
|
+
|
|
287
290
|
}
|
|
288
291
|
|
|
289
292
|
queryJson.layerId = layerId
|
|
@@ -1084,6 +1087,7 @@ export class UtilityNetwork {
|
|
|
1084
1087
|
|
|
1085
1088
|
|
|
1086
1089
|
|
|
1090
|
+
/*
|
|
1087
1091
|
//Makes a request
|
|
1088
1092
|
function makeRequest (opts) {
|
|
1089
1093
|
|
|
@@ -1132,7 +1136,7 @@ export class UtilityNetwork {
|
|
|
1132
1136
|
|
|
1133
1137
|
});
|
|
1134
1138
|
}
|
|
1135
|
-
|
|
1139
|
+
*/
|
|
1136
1140
|
|
|
1137
1141
|
|
|
1138
1142
|
const v = (o, f, vIfNotFound=null) => {
|