@cristian-israel/giganet_lib_conecta 1.0.149 → 1.0.150
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/index.js +8 -4
- package/dist/index.mjs +8 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -709,7 +709,12 @@ function parseOnuSignalSummaryHtml(html) {
|
|
|
709
709
|
temperature: toNumberOrNull(get(map, "Temperatura")),
|
|
710
710
|
voltage: toNumberOrNull(get(map, "Voltagem")),
|
|
711
711
|
txSignal: toNumberOrNull(get(map, "Sinal Tx", "SinalTx")),
|
|
712
|
-
signalStatus: get(
|
|
712
|
+
signalStatus: get(
|
|
713
|
+
map,
|
|
714
|
+
"Status pot\xEAncia",
|
|
715
|
+
"Statuspot\xEAncia",
|
|
716
|
+
"Statuspot\xEAncia"
|
|
717
|
+
),
|
|
713
718
|
fsp: get(map, "F/s/p"),
|
|
714
719
|
onuId: get(map, "Onu id", "Onuid"),
|
|
715
720
|
controlFlag: get(map, "Control flag", "Controlflag"),
|
|
@@ -745,10 +750,9 @@ var OnuSignalSummaryResource = class {
|
|
|
745
750
|
*/
|
|
746
751
|
async get(data) {
|
|
747
752
|
const payload = {
|
|
748
|
-
id: data.id
|
|
753
|
+
id: String(data.id)
|
|
749
754
|
};
|
|
750
|
-
const html = await this.client.post(this.endpoint, {
|
|
751
|
-
data: payload,
|
|
755
|
+
const html = await this.client.post(this.endpoint, payload, {
|
|
752
756
|
headers: {
|
|
753
757
|
"Content-Type": "application/json"
|
|
754
758
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -656,7 +656,12 @@ function parseOnuSignalSummaryHtml(html) {
|
|
|
656
656
|
temperature: toNumberOrNull(get(map, "Temperatura")),
|
|
657
657
|
voltage: toNumberOrNull(get(map, "Voltagem")),
|
|
658
658
|
txSignal: toNumberOrNull(get(map, "Sinal Tx", "SinalTx")),
|
|
659
|
-
signalStatus: get(
|
|
659
|
+
signalStatus: get(
|
|
660
|
+
map,
|
|
661
|
+
"Status pot\xEAncia",
|
|
662
|
+
"Statuspot\xEAncia",
|
|
663
|
+
"Statuspot\xEAncia"
|
|
664
|
+
),
|
|
660
665
|
fsp: get(map, "F/s/p"),
|
|
661
666
|
onuId: get(map, "Onu id", "Onuid"),
|
|
662
667
|
controlFlag: get(map, "Control flag", "Controlflag"),
|
|
@@ -692,10 +697,9 @@ var OnuSignalSummaryResource = class {
|
|
|
692
697
|
*/
|
|
693
698
|
async get(data) {
|
|
694
699
|
const payload = {
|
|
695
|
-
id: data.id
|
|
700
|
+
id: String(data.id)
|
|
696
701
|
};
|
|
697
|
-
const html = await this.client.post(this.endpoint, {
|
|
698
|
-
data: payload,
|
|
702
|
+
const html = await this.client.post(this.endpoint, payload, {
|
|
699
703
|
headers: {
|
|
700
704
|
"Content-Type": "application/json"
|
|
701
705
|
}
|