|
@ -64,4 +64,33 @@ const AssembleIngestionPluviometer = ({ |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
}; |
|
|
}; |
|
|
export { AssembleIngestionObject, AssembleIngestionPluviometer }; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const AssembleIngestionPluvRegistration = ({date, time, user}) => { |
|
|
|
|
|
const pluvResgistrationObject = { |
|
|
|
|
|
responseData: { |
|
|
|
|
|
array_to_json: [ |
|
|
|
|
|
{ |
|
|
|
|
|
formcode: "PLUVIOMETER_REGISTRATION", |
|
|
|
|
|
formsanswersuserinformer: "admin@wpd.com", //user
|
|
|
|
|
|
fieldsanswerslongitude: -46.5637, //location["longitude"],
|
|
|
|
|
|
fieldsanswerslatitude: -23.6230,//location["latitude"],
|
|
|
|
|
|
fields: [ |
|
|
|
|
|
{ |
|
|
|
|
|
fieldsanswerseventaddress: "Rua Rio de Janeiros, 81",//address
|
|
|
|
|
|
fieldsanswerseventdate: moment(date).format("DD-MM-YYYY"), |
|
|
|
|
|
fieldsanswerseventtime: moment(time).format("HH:mm"), |
|
|
|
|
|
fieldsanswersinstitutename: "E. E. Vagner", |
|
|
|
|
|
fieldsanswerrinstitutetype: "Escola", |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
}; |
|
|
|
|
|
const a = sendFormAnswer(ingestionObject); |
|
|
|
|
|
}; |
|
|
|
|
|
export { |
|
|
|
|
|
AssembleIngestionObject, |
|
|
|
|
|
AssembleIngestionPluviometer, |
|
|
|
|
|
AssembleIngestionPluvRegistration, |
|
|
|
|
|
}; |