Browse Source

correcting the pluviometer form insert

master
analuizaff 3 years ago
parent
commit
78f24b569f
  1. 4
      db/2.wp6.create_config_tables.sql
  2. 3
      db/wp6.sample.pluviometer-api.json
  3. 53
      src/package-lock.json

4
db/2.wp6.create_config_tables.sql

@ -180,9 +180,9 @@ BEGIN
WHERE fo.name = 'WP6.MobileApp'
RETURNING id INTO idpluvform;
--situação
--qtd de chuva
INSERT INTO formsfields(id, idforms, idfields, active)
VALUES (DEFAULT, idpluvform, idfieldsituationcode, 1);
VALUES (DEFAULT, idpluvform, idfieldsvalue, 1);
--local (lat, log e endereço)
INSERT INTO formsfields(id, idforms, idfields, active)

3
db/wp6.sample.pluviometer-api.json

@ -9,11 +9,12 @@ ws: //waterproofing.geog.uni-heidelberg.de/wss/hot/data?type=PLUVIOMETERS_FORM
"fieldsanswerslatitude": 4.750550953715424,
"fieldsanswerslongitude": -74.1179903701844
},
{
"formcode": "PLUVIOMETERS_FORM",
"formsanswersuserinformer": "admin222@wpd.com",
"fieldsanswerslatitude": 4.23876482872188,
"fieldsanswerslongitude": -79.1179903701844
}
]
}
}
}

53
src/package-lock.json

@ -4121,6 +4121,15 @@
"normalize-path": "^2.1.1"
}
},
"apisauce": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/apisauce/-/apisauce-2.1.1.tgz",
"integrity": "sha512-P4SsLvmsH8BLLruBn/nsO+65j+ChZlGQ2zC5avCIjbWstYS4PgjxeVWtbeVwFGEWX7dEkLp85OvdapGXy1zS8g==",
"requires": {
"axios": "^0.21.1",
"ramda": "^0.25.0"
}
},
"arch": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz",
@ -4398,6 +4407,14 @@
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz",
"integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA=="
},
"axios": {
"version": "0.21.1",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz",
"integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==",
"requires": {
"follow-redirects": "^1.10.0"
}
},
"babel-code-frame": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz",
@ -8451,6 +8468,11 @@
"resolved": "https://registry.npmjs.org/fn-name/-/fn-name-3.0.0.tgz",
"integrity": "sha512-eNMNr5exLoavuAMhIUVsOKF79SWd/zG104ef6sxBTSw+cZc6BXdQXDvYcGvp0VbxVVSp1XDUNoz7mg1xMtSznA=="
},
"follow-redirects": {
"version": "1.14.1",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.1.tgz",
"integrity": "sha512-HWqDgT7ZEkqRzBvc2s64vSZ/hfOceEol3ac/7tKwzuvEyWx3/4UegXh5oBOIotkGsObyk3xznnSRVADBgWSQVg=="
},
"fontfaceobserver": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/fontfaceobserver/-/fontfaceobserver-2.1.0.tgz",
@ -16101,6 +16123,24 @@
"resolved": "https://registry.npmjs.org/point-in-polygon/-/point-in-polygon-1.1.0.tgz",
"integrity": "sha512-3ojrFwjnnw8Q9242TzgXuTD+eKiutbzyslcq1ydfu82Db2y+Ogbmyrkpv0Hgj31qwT3lbS9+QAAO/pIQM35XRw=="
},
"polished": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/polished/-/polished-4.1.3.tgz",
"integrity": "sha512-ocPAcVBUOryJEKe0z2KLd1l9EBa1r5mSwlKpExmrLzsnIzJo4axsoU9O2BjOTkDGDT4mZ0WFE5XKTlR3nLnZOA==",
"requires": {
"@babel/runtime": "^7.14.0"
},
"dependencies": {
"@babel/runtime": {
"version": "7.15.3",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.15.3.tgz",
"integrity": "sha512-OvwMLqNXkCXSz1kSm58sEsNuhqOx/fKpnUnKnFB5v8uDda5bLNEHNgKPvhDN6IU0LDcnHQ90LlJ0Q6jnyBSIBA==",
"requires": {
"regenerator-runtime": "^0.13.4"
}
}
}
},
"posix-character-classes": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz",
@ -16293,6 +16333,11 @@
"integrity": "sha1-635iZ1SN3t+4mcG5Dlc3RVnN234=",
"dev": true
},
"ramda": {
"version": "0.25.0",
"resolved": "https://registry.npmjs.org/ramda/-/ramda-0.25.0.tgz",
"integrity": "sha512-GXpfrYVPwx3K7RQ6aYT8KPS8XViSXUVJT1ONhoKPE9VAleW42YE+U+8VEyGWt41EnEQW7gwecYJriTI0pKoecQ=="
},
"randexp": {
"version": "0.4.6",
"resolved": "https://registry.npmjs.org/randexp/-/randexp-0.4.6.tgz",
@ -16739,6 +16784,14 @@
"resolved": "https://registry.npmjs.org/react-native-searchable-dropdown/-/react-native-searchable-dropdown-1.1.3.tgz",
"integrity": "sha512-ip6YwjKED/h27oRQGN3f62usFMj5IfS6tr/zZWfQItCAV/XAq5E9P0Exvg/86gSlcGJnnZdoixK+PS1sElxcyA=="
},
"react-native-shadow-2": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/react-native-shadow-2/-/react-native-shadow-2-3.0.0.tgz",
"integrity": "sha512-ihN578sYXuqfbnjwRqAnbeKKcSH9w87iHnr8wC7qZaM//xM1DMA2Z8g5vKHU95fYWXkOJaaKuNtaQLcBxzKxow==",
"requires": {
"polished": "^4.1.3"
}
},
"react-native-simple-dialogs": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/react-native-simple-dialogs/-/react-native-simple-dialogs-1.4.0.tgz",

Loading…
Cancel
Save