@dgac/nmb2b-client
Version:
EUROCONTROL Network Manager B2B SOAP client
21 lines (19 loc) • 892 B
JavaScript
import { prepareSerializer } from "../utils/transformers/serializer.js";
import "../utils/transformers/index.js";
import { instrument } from "../utils/instrumentation/index.js";
import { injectSendTime, responseStatusHandler } from "../utils/internals.js";
//#region src/Flow/updateOTMVPlan.ts
function prepareUpdateOTMVPlan(client) {
const schema = client.describe().TacticalUpdatesService.TacticalUpdatesPort.updateOTMVPlan.input;
const serializer = prepareSerializer(schema);
return instrument({
service: "Flow",
query: "updateOTMVPlan"
})((values, options) => new Promise((resolve, reject) => {
console.log(JSON.stringify(serializer(injectSendTime(values)), null, 2));
client.updateOTMVPlan(serializer(injectSendTime(values)), options, responseStatusHandler(resolve, reject));
}));
}
//#endregion
export { prepareUpdateOTMVPlan };
//# sourceMappingURL=updateOTMVPlan.js.map